~ubuntu-branches/ubuntu/hoary/gedit/hoary-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-10-10 21:24:57 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041010212457-f7q85htgynmslwf4
Tags: 2.8.1-0ubuntu1
* New upstream release:
  - do not try to open non regular files.
  - allow opening file by drag and drop on read only documents.
  - open dropped files in the right target gedit window.
  - do not change active document when closing an unmodified tab.
  - fix crash when trying to open an invalid sftp uri.
* debian/patches/01_relibtoolise.patch:
  - removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
 
#
 
3
# Generated by GNU Autoconf 2.59 for gedit 2.8.1.
 
4
#
 
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gedit>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
7
8
# This configure script is free software; the Free Software Foundation
8
9
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
12
410
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --enable-maintainer-mode enable make rules and dependencies not useful
16
 
                          (and sometimes confusing) to the casual installer"
17
 
ac_help="$ac_help
18
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
19
 
ac_help="$ac_help
20
 
  --enable-static[=PKGS]  build static libraries [default=yes]"
21
 
ac_help="$ac_help
22
 
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
23
 
ac_help="$ac_help
24
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
25
 
ac_help="$ac_help
26
 
  --disable-libtool-lock  avoid locking (might break parallel builds)"
27
 
ac_help="$ac_help
28
 
  --with-gnome-includes   Specify location of GNOME headers"
29
 
ac_help="$ac_help
30
 
  --with-gnome-libs       Specify location of GNOME libs"
31
 
ac_help="$ac_help
32
 
  --with-gnome            Specify prefix for GNOME files"
33
 
ac_help="$ac_help
34
 
  --enable-compile-warnings=[no/minimum/yes]    Turn on compiler warnings."
35
 
ac_help="$ac_help
36
 
  --enable-iso-c          Try to warn if code is not ISO C "
37
 
ac_help="$ac_help
38
 
  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
39
 
ac_help="$ac_help
40
 
  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
41
 
ac_help="$ac_help
42
 
  --disable-gtktest       Do not try to compile and run a test GTK program"
43
 
ac_help="$ac_help
44
 
  --disable-nls           do not use Native Language Support"
45
 
ac_help="$ac_help
46
 
  --with-catgets          use catgets functions if available"
47
 
ac_help="$ac_help
48
 
  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
49
 
ac_help="$ac_help
50
 
  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
51
 
ac_help="$ac_help
52
 
  --disable-gtktest       Do not try to compile and run a test GTK program"
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='gedit'
 
425
PACKAGE_TARNAME='gedit'
 
426
PACKAGE_VERSION='2.8.1'
 
427
PACKAGE_STRING='gedit 2.8.1'
 
428
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gedit'
 
429
 
 
430
ac_unique_file="gedit/gedit2.c"
 
431
# Factoring default headers for most tests.
 
432
ac_includes_default="\
 
433
#include <stdio.h>
 
434
#if HAVE_SYS_TYPES_H
 
435
# include <sys/types.h>
 
436
#endif
 
437
#if HAVE_SYS_STAT_H
 
438
# include <sys/stat.h>
 
439
#endif
 
440
#if STDC_HEADERS
 
441
# include <stdlib.h>
 
442
# include <stddef.h>
 
443
#else
 
444
# if HAVE_STDLIB_H
 
445
#  include <stdlib.h>
 
446
# endif
 
447
#endif
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
 
450
#  include <memory.h>
 
451
# endif
 
452
# include <string.h>
 
453
#endif
 
454
#if HAVE_STRINGS_H
 
455
# include <strings.h>
 
456
#endif
 
457
#if HAVE_INTTYPES_H
 
458
# include <inttypes.h>
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
 
465
# include <unistd.h>
 
466
#endif"
 
467
 
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot GEDIT_MAJOR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GCONFTOOL 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 ICONV MSGFMT MSGMERGE XGETTEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ACLOCAL_AMFLAGS GETTEXT_PACKAGE USE_NLS GMSGFMT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS SPELL_PLUGIN_DIR PSPELL_LIBS PKG_CONFIG GEDIT_CFLAGS GEDIT_LIBS GCONF_SCHEMA_CONFIG_SOURCE GCONF_SCHEMA_FILE_DIR GCONF_SCHEMAS_INSTALL_TRUE GCONF_SCHEMAS_INSTALL_FALSE pixmapsdir GLIB_GENMARSHAL WARN_CFLAGS DISABLE_DEPRECATED_CFLAGS ORBIT_IDL LIBBONOBO_IDL BONOBO_ACTIVATION_IDL PLUGIN_LIBTOOL_FLAGS LIBOBJS LTLIBOBJS'
 
469
ac_subst_files=''
53
470
 
54
471
# Initialize some variables set by options.
 
472
ac_init_help=
 
473
ac_init_version=false
55
474
# The variables have the same names as the options, with
56
475
# dashes changed to underlines.
57
 
build=NONE
58
 
cache_file=./config.cache
 
476
cache_file=/dev/null
59
477
exec_prefix=NONE
60
 
host=NONE
61
478
no_create=
62
 
nonopt=NONE
63
479
no_recursion=
64
480
prefix=NONE
65
481
program_prefix=NONE
68
484
silent=
69
485
site=
70
486
srcdir=
71
 
target=NONE
72
487
verbose=
73
488
x_includes=NONE
74
489
x_libraries=NONE
 
490
 
 
491
# Installation directory options.
 
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
493
# and all the variables that are supposed to be based on exec_prefix
 
494
# by default will actually change.
 
495
# Use braces instead of parens because sh, perl, etc. also accept them.
75
496
bindir='${exec_prefix}/bin'
76
497
sbindir='${exec_prefix}/sbin'
77
498
libexecdir='${exec_prefix}/libexec'
85
506
infodir='${prefix}/info'
86
507
mandir='${prefix}/man'
87
508
 
88
 
# Initialize some other variables.
89
 
subdirs=
90
 
MFLAGS= MAKEFLAGS=
91
 
SHELL=${CONFIG_SHELL-/bin/sh}
92
 
# Maximum number of lines to put in a shell here document.
93
 
ac_max_here_lines=12
94
 
 
95
509
ac_prev=
96
510
for ac_option
97
511
do
98
 
 
99
512
  # If the previous option needs an argument, assign it.
100
513
  if test -n "$ac_prev"; then
101
514
    eval "$ac_prev=\$ac_option"
103
516
    continue
104
517
  fi
105
518
 
106
 
  case "$ac_option" in
107
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108
 
  *) ac_optarg= ;;
109
 
  esac
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
110
520
 
111
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
112
522
 
113
 
  case "$ac_option" in
 
523
  case $ac_option in
114
524
 
115
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
116
526
    ac_prev=bindir ;;
117
527
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
118
 
    bindir="$ac_optarg" ;;
 
528
    bindir=$ac_optarg ;;
119
529
 
120
530
  -build | --build | --buil | --bui | --bu)
121
 
    ac_prev=build ;;
 
531
    ac_prev=build_alias ;;
122
532
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
123
 
    build="$ac_optarg" ;;
 
533
    build_alias=$ac_optarg ;;
124
534
 
125
535
  -cache-file | --cache-file | --cache-fil | --cache-fi \
126
536
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
127
537
    ac_prev=cache_file ;;
128
538
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
129
539
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
130
 
    cache_file="$ac_optarg" ;;
 
540
    cache_file=$ac_optarg ;;
 
541
 
 
542
  --config-cache | -C)
 
543
    cache_file=config.cache ;;
131
544
 
132
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133
546
    ac_prev=datadir ;;
134
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135
548
  | --da=*)
136
 
    datadir="$ac_optarg" ;;
 
549
    datadir=$ac_optarg ;;
137
550
 
138
551
  -disable-* | --disable-*)
139
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
140
553
    # Reject names that are not valid shell variable names.
141
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143
 
    fi
144
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145
 
    eval "enable_${ac_feature}=no" ;;
 
554
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
556
   { (exit 1); exit 1; }; }
 
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
558
    eval "enable_$ac_feature=no" ;;
146
559
 
147
560
  -enable-* | --enable-*)
148
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
149
562
    # Reject names that are not valid shell variable names.
150
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152
 
    fi
153
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154
 
    case "$ac_option" in
155
 
      *=*) ;;
 
563
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
565
   { (exit 1); exit 1; }; }
 
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
156
569
      *) ac_optarg=yes ;;
157
570
    esac
158
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
159
572
 
160
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
161
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164
577
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
165
578
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
166
579
  | --exec=* | --exe=* | --ex=*)
167
 
    exec_prefix="$ac_optarg" ;;
 
580
    exec_prefix=$ac_optarg ;;
168
581
 
169
582
  -gas | --gas | --ga | --g)
170
583
    # Obsolete; use --with-gas.
171
584
    with_gas=yes ;;
172
585
 
173
 
  -help | --help | --hel | --he)
174
 
    # Omit some internal or obsolete options to make the list less imposing.
175
 
    # This message is too long to be a string in the A/UX 3.1 sh.
176
 
    cat << EOF
177
 
Usage: configure [options] [host]
178
 
Options: [defaults in brackets after descriptions]
179
 
Configuration:
180
 
  --cache-file=FILE       cache test results in FILE
181
 
  --help                  print this message
182
 
  --no-create             do not create output files
183
 
  --quiet, --silent       do not print \`checking...' messages
184
 
  --version               print the version of autoconf that created configure
185
 
Directory and file names:
186
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
187
 
                          [$ac_default_prefix]
188
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
189
 
                          [same as prefix]
190
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
191
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
192
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
193
 
  --datadir=DIR           read-only architecture-independent data in DIR
194
 
                          [PREFIX/share]
195
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
196
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
197
 
                          [PREFIX/com]
198
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
199
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
200
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
201
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
202
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
203
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
204
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
205
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
206
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
207
 
  --program-transform-name=PROGRAM
208
 
                          run sed PROGRAM on installed program names
209
 
EOF
210
 
    cat << EOF
211
 
Host type:
212
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
213
 
  --host=HOST             configure for HOST [guessed]
214
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
215
 
Features and packages:
216
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
217
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
218
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
219
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
220
 
  --x-includes=DIR        X include files are in DIR
221
 
  --x-libraries=DIR       X library files are in DIR
222
 
EOF
223
 
    if test -n "$ac_help"; then
224
 
      echo "--enable and --with options recognized:$ac_help"
225
 
    fi
226
 
    exit 0 ;;
 
586
  -help | --help | --hel | --he | -h)
 
587
    ac_init_help=long ;;
 
588
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
589
    ac_init_help=recursive ;;
 
590
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
591
    ac_init_help=short ;;
227
592
 
228
593
  -host | --host | --hos | --ho)
229
 
    ac_prev=host ;;
 
594
    ac_prev=host_alias ;;
230
595
  -host=* | --host=* | --hos=* | --ho=*)
231
 
    host="$ac_optarg" ;;
 
596
    host_alias=$ac_optarg ;;
232
597
 
233
598
  -includedir | --includedir | --includedi | --included | --include \
234
599
  | --includ | --inclu | --incl | --inc)
235
600
    ac_prev=includedir ;;
236
601
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
237
602
  | --includ=* | --inclu=* | --incl=* | --inc=*)
238
 
    includedir="$ac_optarg" ;;
 
603
    includedir=$ac_optarg ;;
239
604
 
240
605
  -infodir | --infodir | --infodi | --infod | --info | --inf)
241
606
    ac_prev=infodir ;;
242
607
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
243
 
    infodir="$ac_optarg" ;;
 
608
    infodir=$ac_optarg ;;
244
609
 
245
610
  -libdir | --libdir | --libdi | --libd)
246
611
    ac_prev=libdir ;;
247
612
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
248
 
    libdir="$ac_optarg" ;;
 
613
    libdir=$ac_optarg ;;
249
614
 
250
615
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
251
616
  | --libexe | --libex | --libe)
252
617
    ac_prev=libexecdir ;;
253
618
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
254
619
  | --libexe=* | --libex=* | --libe=*)
255
 
    libexecdir="$ac_optarg" ;;
 
620
    libexecdir=$ac_optarg ;;
256
621
 
257
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
258
623
  | --localstate | --localstat | --localsta | --localst \
261
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
262
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
263
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
264
 
    localstatedir="$ac_optarg" ;;
 
629
    localstatedir=$ac_optarg ;;
265
630
 
266
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267
632
    ac_prev=mandir ;;
268
633
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
269
 
    mandir="$ac_optarg" ;;
 
634
    mandir=$ac_optarg ;;
270
635
 
271
636
  -nfp | --nfp | --nf)
272
637
    # Obsolete; use --without-fp.
273
638
    with_fp=no ;;
274
639
 
275
640
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276
 
  | --no-cr | --no-c)
 
641
  | --no-cr | --no-c | -n)
277
642
    no_create=yes ;;
278
643
 
279
644
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287
652
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
288
653
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
289
654
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
290
 
    oldincludedir="$ac_optarg" ;;
 
655
    oldincludedir=$ac_optarg ;;
291
656
 
292
657
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293
658
    ac_prev=prefix ;;
294
659
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
295
 
    prefix="$ac_optarg" ;;
 
660
    prefix=$ac_optarg ;;
296
661
 
297
662
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
298
663
  | --program-pre | --program-pr | --program-p)
299
664
    ac_prev=program_prefix ;;
300
665
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
301
666
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
302
 
    program_prefix="$ac_optarg" ;;
 
667
    program_prefix=$ac_optarg ;;
303
668
 
304
669
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
305
670
  | --program-suf | --program-su | --program-s)
306
671
    ac_prev=program_suffix ;;
307
672
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
308
673
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
309
 
    program_suffix="$ac_optarg" ;;
 
674
    program_suffix=$ac_optarg ;;
310
675
 
311
676
  -program-transform-name | --program-transform-name \
312
677
  | --program-transform-nam | --program-transform-na \
323
688
  | --program-transfo=* | --program-transf=* \
324
689
  | --program-trans=* | --program-tran=* \
325
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
326
 
    program_transform_name="$ac_optarg" ;;
 
691
    program_transform_name=$ac_optarg ;;
327
692
 
328
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
329
694
  | -silent | --silent | --silen | --sile | --sil)
333
698
    ac_prev=sbindir ;;
334
699
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335
700
  | --sbi=* | --sb=*)
336
 
    sbindir="$ac_optarg" ;;
 
701
    sbindir=$ac_optarg ;;
337
702
 
338
703
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
339
704
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344
709
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
345
710
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346
711
  | --sha=* | --sh=*)
347
 
    sharedstatedir="$ac_optarg" ;;
 
712
    sharedstatedir=$ac_optarg ;;
348
713
 
349
714
  -site | --site | --sit)
350
715
    ac_prev=site ;;
351
716
  -site=* | --site=* | --sit=*)
352
 
    site="$ac_optarg" ;;
 
717
    site=$ac_optarg ;;
353
718
 
354
719
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355
720
    ac_prev=srcdir ;;
356
721
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
357
 
    srcdir="$ac_optarg" ;;
 
722
    srcdir=$ac_optarg ;;
358
723
 
359
724
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
360
725
  | --syscon | --sysco | --sysc | --sys | --sy)
361
726
    ac_prev=sysconfdir ;;
362
727
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
363
728
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
364
 
    sysconfdir="$ac_optarg" ;;
 
729
    sysconfdir=$ac_optarg ;;
365
730
 
366
731
  -target | --target | --targe | --targ | --tar | --ta | --t)
367
 
    ac_prev=target ;;
 
732
    ac_prev=target_alias ;;
368
733
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
369
 
    target="$ac_optarg" ;;
 
734
    target_alias=$ac_optarg ;;
370
735
 
371
736
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
372
737
    verbose=yes ;;
373
738
 
374
 
  -version | --version | --versio | --versi | --vers)
375
 
    echo "configure generated by autoconf version 2.13"
376
 
    exit 0 ;;
 
739
  -version | --version | --versio | --versi | --vers | -V)
 
740
    ac_init_version=: ;;
377
741
 
378
742
  -with-* | --with-*)
379
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
380
744
    # Reject names that are not valid shell variable names.
381
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383
 
    fi
 
745
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
747
   { (exit 1); exit 1; }; }
384
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
385
 
    case "$ac_option" in
386
 
      *=*) ;;
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
387
751
      *) ac_optarg=yes ;;
388
752
    esac
389
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
390
754
 
391
755
  -without-* | --without-*)
392
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
393
757
    # Reject names that are not valid shell variable names.
394
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396
 
    fi
397
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
398
 
    eval "with_${ac_package}=no" ;;
 
758
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
760
   { (exit 1); exit 1; }; }
 
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
762
    eval "with_$ac_package=no" ;;
399
763
 
400
764
  --x)
401
765
    # Obsolete; use --with-x.
406
770
    ac_prev=x_includes ;;
407
771
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
408
772
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
409
 
    x_includes="$ac_optarg" ;;
 
773
    x_includes=$ac_optarg ;;
410
774
 
411
775
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
412
776
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
413
777
    ac_prev=x_libraries ;;
414
778
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
415
779
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
416
 
    x_libraries="$ac_optarg" ;;
 
780
    x_libraries=$ac_optarg ;;
417
781
 
418
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
782
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
783
Try \`$0 --help' for more information." >&2
 
784
   { (exit 1); exit 1; }; }
419
785
    ;;
420
786
 
 
787
  *=*)
 
788
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
789
    # Reject names that are not valid shell variable names.
 
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
792
   { (exit 1); exit 1; }; }
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
 
795
    export $ac_envvar ;;
 
796
 
421
797
  *)
422
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
424
 
    fi
425
 
    if test "x$nonopt" != xNONE; then
426
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427
 
    fi
428
 
    nonopt="$ac_option"
 
798
    # FIXME: should be removed in autoconf 3.0.
 
799
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
800
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
801
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
802
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
429
803
    ;;
430
804
 
431
805
  esac
432
806
done
433
807
 
434
808
if test -n "$ac_prev"; then
435
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436
 
fi
437
 
 
438
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439
 
 
440
 
# File descriptor usage:
441
 
# 0 standard input
442
 
# 1 file creation
443
 
# 2 errors and warnings
444
 
# 3 some systems may open it to /dev/tty
445
 
# 4 used on the Kubota Titan
446
 
# 6 checking for... messages and results
447
 
# 5 compiler messages saved in config.log
448
 
if test "$silent" = yes; then
449
 
  exec 6>/dev/null
450
 
else
451
 
  exec 6>&1
452
 
fi
453
 
exec 5>./config.log
454
 
 
455
 
echo "\
456
 
This file contains any messages produced by compilers while
457
 
running configure, to aid debugging if configure makes a mistake.
458
 
" 1>&5
459
 
 
460
 
# Strip out --no-create and --no-recursion so they do not pile up.
461
 
# Also quote any args containing shell metacharacters.
462
 
ac_configure_args=
463
 
for ac_arg
464
 
do
465
 
  case "$ac_arg" in
466
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467
 
  | --no-cr | --no-c) ;;
468
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
469
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
470
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
472
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
473
 
  esac
474
 
done
475
 
 
476
 
# NLS nuisances.
477
 
# Only set these to C if already set.  These must not be set unconditionally
478
 
# because not all systems understand e.g. LANG=C (notably SCO).
479
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480
 
# Non-C LC_CTYPE values break the ctype check.
481
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
482
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
483
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
484
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
485
 
 
486
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
487
 
rm -rf conftest* confdefs.h
488
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
489
 
echo > confdefs.h
490
 
 
491
 
# A filename unique to this package, relative to the directory that
492
 
# configure is in, which we can look for to find out if srcdir is correct.
493
 
ac_unique_file=src/gedit.c
 
809
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
810
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
811
   { (exit 1); exit 1; }; }
 
812
fi
 
813
 
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
 
835
done
 
836
 
 
837
# There might be people who depend on the old broken behavior: `$host'
 
838
# used to hold the argument of --host etc.
 
839
# FIXME: To remove some day.
 
840
build=$build_alias
 
841
host=$host_alias
 
842
target=$target_alias
 
843
 
 
844
# FIXME: To remove some day.
 
845
if test "x$host_alias" != x; then
 
846
  if test "x$build_alias" = x; then
 
847
    cross_compiling=maybe
 
848
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
849
    If a cross compiler is detected then cross compile mode will be used." >&2
 
850
  elif test "x$build_alias" != "x$host_alias"; then
 
851
    cross_compiling=yes
 
852
  fi
 
853
fi
 
854
 
 
855
ac_tool_prefix=
 
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
857
 
 
858
test "$silent" = yes && exec 6>/dev/null
 
859
 
494
860
 
495
861
# Find the source files, if location was not specified.
496
862
if test -z "$srcdir"; then
497
863
  ac_srcdir_defaulted=yes
498
864
  # Try the directory containing this script, then its parent.
499
 
  ac_prog=$0
500
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
867
         X"$0" : 'X\(//\)[^/]' \| \
 
868
         X"$0" : 'X\(//\)$' \| \
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
 
871
echo X"$0" |
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
502
877
  srcdir=$ac_confdir
503
878
  if test ! -r $srcdir/$ac_unique_file; then
504
879
    srcdir=..
508
883
fi
509
884
if test ! -r $srcdir/$ac_unique_file; then
510
885
  if test "$ac_srcdir_defaulted" = yes; then
511
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
512
888
  else
513
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
514
891
  fi
515
892
fi
516
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517
 
 
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CC_set=${CC+set}
 
910
ac_env_CC_value=$CC
 
911
ac_cv_env_CC_set=${CC+set}
 
912
ac_cv_env_CC_value=$CC
 
913
ac_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_env_CFLAGS_value=$CFLAGS
 
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_cv_env_CFLAGS_value=$CFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CPP_set=${CPP+set}
 
926
ac_env_CPP_value=$CPP
 
927
ac_cv_env_CPP_set=${CPP+set}
 
928
ac_cv_env_CPP_value=$CPP
 
929
ac_env_CXX_set=${CXX+set}
 
930
ac_env_CXX_value=$CXX
 
931
ac_cv_env_CXX_set=${CXX+set}
 
932
ac_cv_env_CXX_value=$CXX
 
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
937
ac_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_env_CXXCPP_value=$CXXCPP
 
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_cv_env_CXXCPP_value=$CXXCPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
 
949
 
 
950
#
 
951
# Report the --help message.
 
952
#
 
953
if test "$ac_init_help" = "long"; then
 
954
  # Omit some internal or obsolete options to make the list less imposing.
 
955
  # This message is too long to be a string in the A/UX 3.1 sh.
 
956
  cat <<_ACEOF
 
957
\`configure' configures gedit 2.8.1 to adapt to many kinds of systems.
 
958
 
 
959
Usage: $0 [OPTION]... [VAR=VALUE]...
 
960
 
 
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
962
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
963
 
 
964
Defaults for the options are specified in brackets.
 
965
 
 
966
Configuration:
 
967
  -h, --help              display this help and exit
 
968
      --help=short        display options specific to this package
 
969
      --help=recursive    display the short help of all the included packages
 
970
  -V, --version           display version information and exit
 
971
  -q, --quiet, --silent   do not print \`checking...' messages
 
972
      --cache-file=FILE   cache test results in FILE [disabled]
 
973
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
974
  -n, --no-create         do not create output files
 
975
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
976
 
 
977
_ACEOF
 
978
 
 
979
  cat <<_ACEOF
 
980
Installation directories:
 
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
982
                          [$ac_default_prefix]
 
983
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
984
                          [PREFIX]
 
985
 
 
986
By default, \`make install' will install all the files in
 
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
989
for instance \`--prefix=\$HOME'.
 
990
 
 
991
For better control, use the options below.
 
992
 
 
993
Fine tuning of the installation directories:
 
994
  --bindir=DIR           user executables [EPREFIX/bin]
 
995
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
996
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
997
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
998
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
999
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1000
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1001
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1002
  --includedir=DIR       C header files [PREFIX/include]
 
1003
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1004
  --infodir=DIR          info documentation [PREFIX/info]
 
1005
  --mandir=DIR           man documentation [PREFIX/man]
 
1006
_ACEOF
 
1007
 
 
1008
  cat <<\_ACEOF
 
1009
 
 
1010
Program names:
 
1011
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1012
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1013
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1014
 
 
1015
System types:
 
1016
  --build=BUILD     configure for building on BUILD [guessed]
 
1017
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1018
_ACEOF
 
1019
fi
 
1020
 
 
1021
if test -n "$ac_init_help"; then
 
1022
  case $ac_init_help in
 
1023
     short | recursive ) echo "Configuration of gedit 2.8.1:";;
 
1024
   esac
 
1025
  cat <<\_ACEOF
 
1026
 
 
1027
Optional Features:
 
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1030
  --enable-maintainer-mode enable make rules and dependencies not useful
 
1031
                          (and sometimes confusing) to the casual installer
 
1032
  --enable-static[=PKGS]
 
1033
                          build static libraries [default=no]
 
1034
  --enable-shared[=PKGS]
 
1035
                          build shared libraries [default=yes]
 
1036
  --enable-fast-install[=PKGS]
 
1037
                          optimize for fast installation [default=yes]
 
1038
  --disable-dependency-tracking Speeds up one-time builds
 
1039
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1040
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1041
  --disable-schemas-install     Disable the schemas installation
 
1042
  --enable-compile-warnings=[no/minimum/yes/maximum/error]
 
1043
                          Turn on compiler warnings
 
1044
  --enable-iso-c          Try to warn if code is not ISO C
 
1045
  --enable-deprecations   warn about deprecated usages [default=no]
 
1046
 
 
1047
Optional Packages:
 
1048
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1049
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1050
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1051
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1052
                          both]
 
1053
  --with-tags[=TAGS]
 
1054
                          include additional configurations [automatic]
 
1055
  --with-gconf-source=sourceaddress      Config database for installing schema files.
 
1056
  --with-gconf-schema-file-dir=dir        Directory for installing schema files.
 
1057
 
 
1058
Some influential environment variables:
 
1059
  CC          C compiler command
 
1060
  CFLAGS      C compiler flags
 
1061
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1062
              nonstandard directory <lib dir>
 
1063
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1064
              headers in a nonstandard directory <include dir>
 
1065
  CPP         C preprocessor
 
1066
  CXX         C++ compiler command
 
1067
  CXXFLAGS    C++ compiler flags
 
1068
  CXXCPP      C++ preprocessor
 
1069
  F77         Fortran 77 compiler command
 
1070
  FFLAGS      Fortran 77 compiler flags
 
1071
 
 
1072
Use these variables to override the choices made by `configure' or to help
 
1073
it to find libraries and programs with nonstandard names/locations.
 
1074
 
 
1075
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gedit>.
 
1076
_ACEOF
 
1077
fi
 
1078
 
 
1079
if test "$ac_init_help" = "recursive"; then
 
1080
  # If there are subdirs, report their specific --help.
 
1081
  ac_popdir=`pwd`
 
1082
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1083
    test -d $ac_dir || continue
 
1084
    ac_builddir=.
 
1085
 
 
1086
if test "$ac_dir" != .; then
 
1087
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1088
  # A "../" for each directory in $ac_dir_suffix.
 
1089
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1090
else
 
1091
  ac_dir_suffix= ac_top_builddir=
 
1092
fi
 
1093
 
 
1094
case $srcdir in
 
1095
  .)  # No --srcdir option.  We are building in place.
 
1096
    ac_srcdir=.
 
1097
    if test -z "$ac_top_builddir"; then
 
1098
       ac_top_srcdir=.
 
1099
    else
 
1100
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1101
    fi ;;
 
1102
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1103
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1104
    ac_top_srcdir=$srcdir ;;
 
1105
  *) # Relative path.
 
1106
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1107
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1108
esac
 
1109
 
 
1110
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1111
# the directories may not exist.
 
1112
case `pwd` in
 
1113
.) ac_abs_builddir="$ac_dir";;
 
1114
*)
 
1115
  case "$ac_dir" in
 
1116
  .) ac_abs_builddir=`pwd`;;
 
1117
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1118
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1119
  esac;;
 
1120
esac
 
1121
case $ac_abs_builddir in
 
1122
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1123
*)
 
1124
  case ${ac_top_builddir}. in
 
1125
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1126
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1127
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1128
  esac;;
 
1129
esac
 
1130
case $ac_abs_builddir in
 
1131
.) ac_abs_srcdir=$ac_srcdir;;
 
1132
*)
 
1133
  case $ac_srcdir in
 
1134
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1135
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1136
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1137
  esac;;
 
1138
esac
 
1139
case $ac_abs_builddir in
 
1140
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1141
*)
 
1142
  case $ac_top_srcdir in
 
1143
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1144
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1145
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1146
  esac;;
 
1147
esac
 
1148
 
 
1149
    cd $ac_dir
 
1150
    # Check for guested configure; otherwise get Cygnus style configure.
 
1151
    if test -f $ac_srcdir/configure.gnu; then
 
1152
      echo
 
1153
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1154
    elif test -f $ac_srcdir/configure; then
 
1155
      echo
 
1156
      $SHELL $ac_srcdir/configure  --help=recursive
 
1157
    elif test -f $ac_srcdir/configure.ac ||
 
1158
           test -f $ac_srcdir/configure.in; then
 
1159
      echo
 
1160
      $ac_configure --help
 
1161
    else
 
1162
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1163
    fi
 
1164
    cd $ac_popdir
 
1165
  done
 
1166
fi
 
1167
 
 
1168
test -n "$ac_init_help" && exit 0
 
1169
if $ac_init_version; then
 
1170
  cat <<\_ACEOF
 
1171
gedit configure 2.8.1
 
1172
generated by GNU Autoconf 2.59
 
1173
 
 
1174
Copyright (C) 2003 Free Software Foundation, Inc.
 
1175
This configure script is free software; the Free Software Foundation
 
1176
gives unlimited permission to copy, distribute and modify it.
 
1177
_ACEOF
 
1178
  exit 0
 
1179
fi
 
1180
exec 5>config.log
 
1181
cat >&5 <<_ACEOF
 
1182
This file contains any messages produced by compilers while
 
1183
running configure, to aid debugging if configure makes a mistake.
 
1184
 
 
1185
It was created by gedit $as_me 2.8.1, which was
 
1186
generated by GNU Autoconf 2.59.  Invocation command line was
 
1187
 
 
1188
  $ $0 $@
 
1189
 
 
1190
_ACEOF
 
1191
{
 
1192
cat <<_ASUNAME
 
1193
## --------- ##
 
1194
## Platform. ##
 
1195
## --------- ##
 
1196
 
 
1197
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1198
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1199
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1200
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1201
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1202
 
 
1203
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1204
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1205
 
 
1206
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1207
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1208
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1209
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1210
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1211
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1212
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1213
 
 
1214
_ASUNAME
 
1215
 
 
1216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1217
for as_dir in $PATH
 
1218
do
 
1219
  IFS=$as_save_IFS
 
1220
  test -z "$as_dir" && as_dir=.
 
1221
  echo "PATH: $as_dir"
 
1222
done
 
1223
 
 
1224
} >&5
 
1225
 
 
1226
cat >&5 <<_ACEOF
 
1227
 
 
1228
 
 
1229
## ----------- ##
 
1230
## Core tests. ##
 
1231
## ----------- ##
 
1232
 
 
1233
_ACEOF
 
1234
 
 
1235
 
 
1236
# Keep a trace of the command line.
 
1237
# Strip out --no-create and --no-recursion so they do not pile up.
 
1238
# Strip out --silent because we don't want to record it for future runs.
 
1239
# Also quote any args containing shell meta-characters.
 
1240
# Make two passes to allow for proper duplicate-argument suppression.
 
1241
ac_configure_args=
 
1242
ac_configure_args0=
 
1243
ac_configure_args1=
 
1244
ac_sep=
 
1245
ac_must_keep_next=false
 
1246
for ac_pass in 1 2
 
1247
do
 
1248
  for ac_arg
 
1249
  do
 
1250
    case $ac_arg in
 
1251
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1252
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1253
    | -silent | --silent | --silen | --sile | --sil)
 
1254
      continue ;;
 
1255
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1256
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1257
    esac
 
1258
    case $ac_pass in
 
1259
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1260
    2)
 
1261
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1262
      if test $ac_must_keep_next = true; then
 
1263
        ac_must_keep_next=false # Got value, back to normal.
 
1264
      else
 
1265
        case $ac_arg in
 
1266
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1267
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1268
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1269
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1270
            case "$ac_configure_args0 " in
 
1271
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1272
            esac
 
1273
            ;;
 
1274
          -* ) ac_must_keep_next=true ;;
 
1275
        esac
 
1276
      fi
 
1277
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1278
      # Get rid of the leading space.
 
1279
      ac_sep=" "
 
1280
      ;;
 
1281
    esac
 
1282
  done
 
1283
done
 
1284
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1285
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1286
 
 
1287
# When interrupted or exit'd, cleanup temporary files, and complete
 
1288
# config.log.  We remove comments because anyway the quotes in there
 
1289
# would cause problems or look ugly.
 
1290
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1291
# such as our DU 5.0 friend, will then `close' the trap.
 
1292
trap 'exit_status=$?
 
1293
  # Save into config.log some information that might help in debugging.
 
1294
  {
 
1295
    echo
 
1296
 
 
1297
    cat <<\_ASBOX
 
1298
## ---------------- ##
 
1299
## Cache variables. ##
 
1300
## ---------------- ##
 
1301
_ASBOX
 
1302
    echo
 
1303
    # The following way of writing the cache mishandles newlines in values,
 
1304
{
 
1305
  (set) 2>&1 |
 
1306
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1307
    *ac_space=\ *)
 
1308
      sed -n \
 
1309
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1310
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1311
      ;;
 
1312
    *)
 
1313
      sed -n \
 
1314
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1315
      ;;
 
1316
    esac;
 
1317
}
 
1318
    echo
 
1319
 
 
1320
    cat <<\_ASBOX
 
1321
## ----------------- ##
 
1322
## Output variables. ##
 
1323
## ----------------- ##
 
1324
_ASBOX
 
1325
    echo
 
1326
    for ac_var in $ac_subst_vars
 
1327
    do
 
1328
      eval ac_val=$`echo $ac_var`
 
1329
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1330
    done | sort
 
1331
    echo
 
1332
 
 
1333
    if test -n "$ac_subst_files"; then
 
1334
      cat <<\_ASBOX
 
1335
## ------------- ##
 
1336
## Output files. ##
 
1337
## ------------- ##
 
1338
_ASBOX
 
1339
      echo
 
1340
      for ac_var in $ac_subst_files
 
1341
      do
 
1342
        eval ac_val=$`echo $ac_var`
 
1343
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1344
      done | sort
 
1345
      echo
 
1346
    fi
 
1347
 
 
1348
    if test -s confdefs.h; then
 
1349
      cat <<\_ASBOX
 
1350
## ----------- ##
 
1351
## confdefs.h. ##
 
1352
## ----------- ##
 
1353
_ASBOX
 
1354
      echo
 
1355
      sed "/^$/d" confdefs.h | sort
 
1356
      echo
 
1357
    fi
 
1358
    test "$ac_signal" != 0 &&
 
1359
      echo "$as_me: caught signal $ac_signal"
 
1360
    echo "$as_me: exit $exit_status"
 
1361
  } >&5
 
1362
  rm -f core *.core &&
 
1363
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1364
    exit $exit_status
 
1365
     ' 0
 
1366
for ac_signal in 1 2 13 15; do
 
1367
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1368
done
 
1369
ac_signal=0
 
1370
 
 
1371
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1372
rm -rf conftest* confdefs.h
 
1373
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1374
echo >confdefs.h
 
1375
 
 
1376
# Predefined preprocessor variables.
 
1377
 
 
1378
cat >>confdefs.h <<_ACEOF
 
1379
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1380
_ACEOF
 
1381
 
 
1382
 
 
1383
cat >>confdefs.h <<_ACEOF
 
1384
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1385
_ACEOF
 
1386
 
 
1387
 
 
1388
cat >>confdefs.h <<_ACEOF
 
1389
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1390
_ACEOF
 
1391
 
 
1392
 
 
1393
cat >>confdefs.h <<_ACEOF
 
1394
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1395
_ACEOF
 
1396
 
 
1397
 
 
1398
cat >>confdefs.h <<_ACEOF
 
1399
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1400
_ACEOF
 
1401
 
 
1402
 
 
1403
# Let the site file select an alternate cache file if it wants to.
518
1404
# Prefer explicitly selected file to automatically selected ones.
519
1405
if test -z "$CONFIG_SITE"; then
520
1406
  if test "x$prefix" != xNONE; then
525
1411
fi
526
1412
for ac_site_file in $CONFIG_SITE; do
527
1413
  if test -r "$ac_site_file"; then
528
 
    echo "loading site script $ac_site_file"
 
1414
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1415
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1416
    sed 's/^/| /' "$ac_site_file" >&5
529
1417
    . "$ac_site_file"
530
1418
  fi
531
1419
done
532
1420
 
533
1421
if test -r "$cache_file"; then
534
 
  echo "loading cache $cache_file"
535
 
  . $cache_file
 
1422
  # Some versions of bash will fail to source /dev/null (special
 
1423
  # files actually), so we avoid doing that.
 
1424
  if test -f "$cache_file"; then
 
1425
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1426
echo "$as_me: loading cache $cache_file" >&6;}
 
1427
    case $cache_file in
 
1428
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1429
      *)                      . ./$cache_file;;
 
1430
    esac
 
1431
  fi
536
1432
else
537
 
  echo "creating cache $cache_file"
538
 
  > $cache_file
 
1433
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1434
echo "$as_me: creating cache $cache_file" >&6;}
 
1435
  >$cache_file
 
1436
fi
 
1437
 
 
1438
# Check that the precious variables saved in the cache have kept the same
 
1439
# value.
 
1440
ac_cache_corrupted=false
 
1441
for ac_var in `(set) 2>&1 |
 
1442
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1443
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1444
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1445
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1446
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1447
  case $ac_old_set,$ac_new_set in
 
1448
    set,)
 
1449
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1450
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1451
      ac_cache_corrupted=: ;;
 
1452
    ,set)
 
1453
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1454
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1455
      ac_cache_corrupted=: ;;
 
1456
    ,);;
 
1457
    *)
 
1458
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1459
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1460
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1461
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1462
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1463
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1464
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1465
        ac_cache_corrupted=:
 
1466
      fi;;
 
1467
  esac
 
1468
  # Pass precious variables to config.status.
 
1469
  if test "$ac_new_set" = set; then
 
1470
    case $ac_new_val in
 
1471
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1472
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1473
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1474
    esac
 
1475
    case " $ac_configure_args " in
 
1476
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1477
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1478
    esac
 
1479
  fi
 
1480
done
 
1481
if $ac_cache_corrupted; then
 
1482
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1483
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1484
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1485
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1486
   { (exit 1); exit 1; }; }
539
1487
fi
540
1488
 
541
1489
ac_ext=c
542
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543
1490
ac_cpp='$CPP $CPPFLAGS'
544
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546
 
cross_compiling=$ac_cv_prog_cc_cross
547
 
 
548
 
ac_exeext=
549
 
ac_objext=o
550
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
551
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
553
 
    ac_n= ac_c='
554
 
' ac_t='        '
555
 
  else
556
 
    ac_n=-n ac_c= ac_t=
557
 
  fi
558
 
else
559
 
  ac_n= ac_c='\c' ac_t=
560
 
fi
561
 
 
562
 
 
563
 
 
564
 
 
565
 
 
566
 
 
 
1491
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1492
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1493
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
am__api_version="1.7"
567
1523
ac_aux_dir=
568
1524
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
569
1525
  if test -f $ac_dir/install-sh; then
574
1530
    ac_aux_dir=$ac_dir
575
1531
    ac_install_sh="$ac_aux_dir/install.sh -c"
576
1532
    break
 
1533
  elif test -f $ac_dir/shtool; then
 
1534
    ac_aux_dir=$ac_dir
 
1535
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1536
    break
577
1537
  fi
578
1538
done
579
1539
if test -z "$ac_aux_dir"; then
580
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
1540
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1541
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1542
   { (exit 1); exit 1; }; }
581
1543
fi
582
 
ac_config_guess=$ac_aux_dir/config.guess
583
 
ac_config_sub=$ac_aux_dir/config.sub
584
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
1544
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1545
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1546
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
585
1547
 
586
1548
# Find a good install program.  We prefer a C program (faster),
587
1549
# so one script is as good as another.  But avoid the broken or
590
1552
# SunOS /usr/etc/install
591
1553
# IRIX /sbin/install
592
1554
# AIX /bin/install
 
1555
# AmigaOS /C/install, which installs bootblocks on floppy discs
593
1556
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
594
1557
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
595
1558
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1559
# OS/2's system install, which has a completely different semantic
596
1560
# ./install, which can be erroneously created by make from ./install.sh.
597
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
598
 
echo "configure:599: checking for a BSD compatible install" >&5
 
1561
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1562
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
599
1563
if test -z "$INSTALL"; then
600
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
601
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1564
if test "${ac_cv_path_install+set}" = set; then
 
1565
  echo $ECHO_N "(cached) $ECHO_C" >&6
602
1566
else
603
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
604
 
  for ac_dir in $PATH; do
605
 
    # Account for people who put trailing slashes in PATH elements.
606
 
    case "$ac_dir/" in
607
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
608
 
    *)
609
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
610
 
      # Don't use installbsd from OSF since it installs stuff as root
611
 
      # by default.
612
 
      for ac_prog in ginstall scoinst install; do
613
 
        if test -f $ac_dir/$ac_prog; then
 
1567
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1568
for as_dir in $PATH
 
1569
do
 
1570
  IFS=$as_save_IFS
 
1571
  test -z "$as_dir" && as_dir=.
 
1572
  # Account for people who put trailing slashes in PATH elements.
 
1573
case $as_dir/ in
 
1574
  ./ | .// | /cC/* | \
 
1575
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1576
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1577
  /usr/ucb/* ) ;;
 
1578
  *)
 
1579
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1580
    # Don't use installbsd from OSF since it installs stuff as root
 
1581
    # by default.
 
1582
    for ac_prog in ginstall scoinst install; do
 
1583
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1584
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
614
1585
          if test $ac_prog = install &&
615
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1586
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
616
1587
            # AIX install.  It has an incompatible calling convention.
617
1588
            :
 
1589
          elif test $ac_prog = install &&
 
1590
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1591
            # program-specific install script used by HP pwplus--don't use.
 
1592
            :
618
1593
          else
619
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
620
 
            break 2
 
1594
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1595
            break 3
621
1596
          fi
622
1597
        fi
623
1598
      done
624
 
      ;;
625
 
    esac
626
 
  done
627
 
  IFS="$ac_save_IFS"
 
1599
    done
 
1600
    ;;
 
1601
esac
 
1602
done
 
1603
 
628
1604
 
629
1605
fi
630
1606
  if test "${ac_cv_path_install+set}" = set; then
631
 
    INSTALL="$ac_cv_path_install"
 
1607
    INSTALL=$ac_cv_path_install
632
1608
  else
633
1609
    # As a last resort, use the slow shell script.  We don't cache a
634
1610
    # path for INSTALL within a source directory, because that will
635
1611
    # break other packages using the cache if that directory is
636
1612
    # removed, or if the path is relative.
637
 
    INSTALL="$ac_install_sh"
 
1613
    INSTALL=$ac_install_sh
638
1614
  fi
639
1615
fi
640
 
echo "$ac_t""$INSTALL" 1>&6
 
1616
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1617
echo "${ECHO_T}$INSTALL" >&6
641
1618
 
642
1619
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
643
1620
# It thinks the first close brace ends the variable substitution.
644
1621
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
645
1622
 
646
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1623
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
647
1624
 
648
1625
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
649
1626
 
650
 
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
651
 
echo "configure:652: checking whether build environment is sane" >&5
 
1627
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1628
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
652
1629
# Just in case
653
1630
sleep 1
654
 
echo timestamp > conftestfile
 
1631
echo timestamp > conftest.file
655
1632
# Do `set' in a subshell so we don't clobber the current shell's
656
1633
# arguments.  Must try -L first in case configure is actually a
657
1634
# symlink; some systems play weird games with the mod time of symlinks
658
1635
# (eg FreeBSD returns the mod time of the symlink's containing
659
1636
# directory).
660
1637
if (
661
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1638
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
662
1639
   if test "$*" = "X"; then
663
1640
      # -L didn't work.
664
 
      set X `ls -t $srcdir/configure conftestfile`
 
1641
      set X `ls -t $srcdir/configure conftest.file`
665
1642
   fi
666
 
   if test "$*" != "X $srcdir/configure conftestfile" \
667
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1643
   rm -f conftest.file
 
1644
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1645
      && test "$*" != "X conftest.file $srcdir/configure"; then
668
1646
 
669
1647
      # If neither matched, then we have a broken ls.  This can happen
670
1648
      # if, for instance, CONFIG_SHELL is bash and it inherits a
671
1649
      # broken ls alias from the environment.  This has actually
672
1650
      # happened.  Such a system could not be considered "sane".
673
 
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
674
 
alias in your environment" 1>&2; exit 1; }
 
1651
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1652
alias in your environment" >&5
 
1653
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1654
alias in your environment" >&2;}
 
1655
   { (exit 1); exit 1; }; }
675
1656
   fi
676
1657
 
677
 
   test "$2" = conftestfile
 
1658
   test "$2" = conftest.file
678
1659
   )
679
1660
then
680
1661
   # Ok.
681
1662
   :
682
1663
else
683
 
   { echo "configure: error: newly created file is older than distributed files!
684
 
Check your system clock" 1>&2; exit 1; }
685
 
fi
686
 
rm -f conftest*
687
 
echo "$ac_t""yes" 1>&6
688
 
if test "$program_transform_name" = s,x,x,; then
689
 
  program_transform_name=
690
 
else
691
 
  # Double any \ or $.  echo might interpret backslashes.
692
 
  cat <<\EOF_SED > conftestsed
693
 
s,\\,\\\\,g; s,\$,$$,g
694
 
EOF_SED
695
 
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
696
 
  rm -f conftestsed
697
 
fi
 
1664
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1665
Check your system clock" >&5
 
1666
echo "$as_me: error: newly created file is older than distributed files!
 
1667
Check your system clock" >&2;}
 
1668
   { (exit 1); exit 1; }; }
 
1669
fi
 
1670
echo "$as_me:$LINENO: result: yes" >&5
 
1671
echo "${ECHO_T}yes" >&6
698
1672
test "$program_prefix" != NONE &&
699
 
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
1673
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
700
1674
# Use a double $ so make ignores it.
701
1675
test "$program_suffix" != NONE &&
702
 
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
703
 
 
704
 
# sed with no file args requires a program.
705
 
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
706
 
 
707
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
708
 
echo "configure:709: checking whether ${MAKE-make} sets \${MAKE}" >&5
709
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
710
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
711
 
  echo $ac_n "(cached) $ac_c" 1>&6
712
 
else
713
 
  cat > conftestmake <<\EOF
 
1676
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1677
# Double any \ or $.  echo might interpret backslashes.
 
1678
# By default was `s,x,x', remove it if useless.
 
1679
cat <<\_ACEOF >conftest.sed
 
1680
s/[\\$]/&&/g;s/;s,x,x,$//
 
1681
_ACEOF
 
1682
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1683
rm conftest.sed
 
1684
 
 
1685
 
 
1686
# expand $ac_aux_dir to an absolute path
 
1687
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1688
 
 
1689
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1690
# Use eval to expand $SHELL
 
1691
if eval "$MISSING --run true"; then
 
1692
  am_missing_run="$MISSING --run "
 
1693
else
 
1694
  am_missing_run=
 
1695
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1696
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1697
fi
 
1698
 
 
1699
for ac_prog in gawk mawk nawk awk
 
1700
do
 
1701
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1702
set dummy $ac_prog; ac_word=$2
 
1703
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1705
if test "${ac_cv_prog_AWK+set}" = set; then
 
1706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1707
else
 
1708
  if test -n "$AWK"; then
 
1709
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1710
else
 
1711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1712
for as_dir in $PATH
 
1713
do
 
1714
  IFS=$as_save_IFS
 
1715
  test -z "$as_dir" && as_dir=.
 
1716
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1717
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1718
    ac_cv_prog_AWK="$ac_prog"
 
1719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1720
    break 2
 
1721
  fi
 
1722
done
 
1723
done
 
1724
 
 
1725
fi
 
1726
fi
 
1727
AWK=$ac_cv_prog_AWK
 
1728
if test -n "$AWK"; then
 
1729
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1730
echo "${ECHO_T}$AWK" >&6
 
1731
else
 
1732
  echo "$as_me:$LINENO: result: no" >&5
 
1733
echo "${ECHO_T}no" >&6
 
1734
fi
 
1735
 
 
1736
  test -n "$AWK" && break
 
1737
done
 
1738
 
 
1739
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1740
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1741
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1742
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1744
else
 
1745
  cat >conftest.make <<\_ACEOF
714
1746
all:
715
 
        @echo 'ac_maketemp="${MAKE}"'
716
 
EOF
 
1747
        @echo 'ac_maketemp="$(MAKE)"'
 
1748
_ACEOF
717
1749
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
718
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
1750
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
719
1751
if test -n "$ac_maketemp"; then
720
1752
  eval ac_cv_prog_make_${ac_make}_set=yes
721
1753
else
722
1754
  eval ac_cv_prog_make_${ac_make}_set=no
723
1755
fi
724
 
rm -f conftestmake
 
1756
rm -f conftest.make
725
1757
fi
726
1758
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
727
 
  echo "$ac_t""yes" 1>&6
 
1759
  echo "$as_me:$LINENO: result: yes" >&5
 
1760
echo "${ECHO_T}yes" >&6
728
1761
  SET_MAKE=
729
1762
else
730
 
  echo "$ac_t""no" 1>&6
 
1763
  echo "$as_me:$LINENO: result: no" >&5
 
1764
echo "${ECHO_T}no" >&6
731
1765
  SET_MAKE="MAKE=${MAKE-make}"
732
1766
fi
733
1767
 
734
 
 
735
 
PACKAGE=gedit
736
 
 
737
 
VERSION=0.9.6
738
 
 
739
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
740
 
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
741
 
fi
742
 
cat >> confdefs.h <<EOF
 
1768
rm -rf .tst 2>/dev/null
 
1769
mkdir .tst 2>/dev/null
 
1770
if test -d .tst; then
 
1771
  am__leading_dot=.
 
1772
else
 
1773
  am__leading_dot=_
 
1774
fi
 
1775
rmdir .tst 2>/dev/null
 
1776
 
 
1777
 # test to see if srcdir already configured
 
1778
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1779
   test -f $srcdir/config.status; then
 
1780
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1781
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1782
   { (exit 1); exit 1; }; }
 
1783
fi
 
1784
 
 
1785
# test whether we have cygpath
 
1786
if test -z "$CYGPATH_W"; then
 
1787
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1788
    CYGPATH_W='cygpath -w'
 
1789
  else
 
1790
    CYGPATH_W=echo
 
1791
  fi
 
1792
fi
 
1793
 
 
1794
 
 
1795
# Define the identity of the package.
 
1796
 PACKAGE=gedit
 
1797
 VERSION=2.8.1
 
1798
 
 
1799
 
 
1800
cat >>confdefs.h <<_ACEOF
743
1801
#define PACKAGE "$PACKAGE"
744
 
EOF
745
 
 
746
 
cat >> confdefs.h <<EOF
 
1802
_ACEOF
 
1803
 
 
1804
 
 
1805
cat >>confdefs.h <<_ACEOF
747
1806
#define VERSION "$VERSION"
748
 
EOF
749
 
 
750
 
 
751
 
 
752
 
missing_dir=`cd $ac_aux_dir && pwd`
753
 
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
754
 
echo "configure:755: checking for working aclocal" >&5
755
 
# Run test in a subshell; some versions of sh will print an error if
756
 
# an executable is not found, even if stderr is redirected.
757
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
758
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
759
 
   ACLOCAL=aclocal
760
 
   echo "$ac_t""found" 1>&6
761
 
else
762
 
   ACLOCAL="$missing_dir/missing aclocal"
763
 
   echo "$ac_t""missing" 1>&6
764
 
fi
765
 
 
766
 
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
767
 
echo "configure:768: checking for working autoconf" >&5
768
 
# Run test in a subshell; some versions of sh will print an error if
769
 
# an executable is not found, even if stderr is redirected.
770
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
771
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
772
 
   AUTOCONF=autoconf
773
 
   echo "$ac_t""found" 1>&6
774
 
else
775
 
   AUTOCONF="$missing_dir/missing autoconf"
776
 
   echo "$ac_t""missing" 1>&6
777
 
fi
778
 
 
779
 
echo $ac_n "checking for working automake""... $ac_c" 1>&6
780
 
echo "configure:781: checking for working automake" >&5
781
 
# Run test in a subshell; some versions of sh will print an error if
782
 
# an executable is not found, even if stderr is redirected.
783
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
784
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
785
 
   AUTOMAKE=automake
786
 
   echo "$ac_t""found" 1>&6
787
 
else
788
 
   AUTOMAKE="$missing_dir/missing automake"
789
 
   echo "$ac_t""missing" 1>&6
790
 
fi
791
 
 
792
 
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
793
 
echo "configure:794: checking for working autoheader" >&5
794
 
# Run test in a subshell; some versions of sh will print an error if
795
 
# an executable is not found, even if stderr is redirected.
796
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
797
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
798
 
   AUTOHEADER=autoheader
799
 
   echo "$ac_t""found" 1>&6
800
 
else
801
 
   AUTOHEADER="$missing_dir/missing autoheader"
802
 
   echo "$ac_t""missing" 1>&6
803
 
fi
804
 
 
805
 
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
806
 
echo "configure:807: checking for working makeinfo" >&5
807
 
# Run test in a subshell; some versions of sh will print an error if
808
 
# an executable is not found, even if stderr is redirected.
809
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
810
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
811
 
   MAKEINFO=makeinfo
812
 
   echo "$ac_t""found" 1>&6
813
 
else
814
 
   MAKEINFO="$missing_dir/missing makeinfo"
815
 
   echo "$ac_t""missing" 1>&6
816
 
fi
817
 
 
818
 
 
819
 
 
820
 
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
821
 
echo "configure:822: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1807
_ACEOF
 
1808
 
 
1809
# Some tools Automake needs.
 
1810
 
 
1811
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1812
 
 
1813
 
 
1814
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1815
 
 
1816
 
 
1817
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1818
 
 
1819
 
 
1820
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1821
 
 
1822
 
 
1823
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1824
 
 
1825
 
 
1826
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1827
 
 
1828
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1829
 
 
1830
# Installed binaries are usually stripped using `strip' when the user
 
1831
# run `make install-strip'.  However `strip' might not be the right
 
1832
# tool to use in cross-compilation environments, therefore Automake
 
1833
# will honor the `STRIP' environment variable to overrule this program.
 
1834
if test "$cross_compiling" != no; then
 
1835
  if test -n "$ac_tool_prefix"; then
 
1836
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1837
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1838
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1839
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1840
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1842
else
 
1843
  if test -n "$STRIP"; then
 
1844
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1845
else
 
1846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1847
for as_dir in $PATH
 
1848
do
 
1849
  IFS=$as_save_IFS
 
1850
  test -z "$as_dir" && as_dir=.
 
1851
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1852
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1853
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1854
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1855
    break 2
 
1856
  fi
 
1857
done
 
1858
done
 
1859
 
 
1860
fi
 
1861
fi
 
1862
STRIP=$ac_cv_prog_STRIP
 
1863
if test -n "$STRIP"; then
 
1864
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1865
echo "${ECHO_T}$STRIP" >&6
 
1866
else
 
1867
  echo "$as_me:$LINENO: result: no" >&5
 
1868
echo "${ECHO_T}no" >&6
 
1869
fi
 
1870
 
 
1871
fi
 
1872
if test -z "$ac_cv_prog_STRIP"; then
 
1873
  ac_ct_STRIP=$STRIP
 
1874
  # Extract the first word of "strip", so it can be a program name with args.
 
1875
set dummy strip; ac_word=$2
 
1876
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1878
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1880
else
 
1881
  if test -n "$ac_ct_STRIP"; then
 
1882
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1883
else
 
1884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1885
for as_dir in $PATH
 
1886
do
 
1887
  IFS=$as_save_IFS
 
1888
  test -z "$as_dir" && as_dir=.
 
1889
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1890
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1891
    ac_cv_prog_ac_ct_STRIP="strip"
 
1892
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1893
    break 2
 
1894
  fi
 
1895
done
 
1896
done
 
1897
 
 
1898
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1899
fi
 
1900
fi
 
1901
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1902
if test -n "$ac_ct_STRIP"; then
 
1903
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1904
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1905
else
 
1906
  echo "$as_me:$LINENO: result: no" >&5
 
1907
echo "${ECHO_T}no" >&6
 
1908
fi
 
1909
 
 
1910
  STRIP=$ac_ct_STRIP
 
1911
else
 
1912
  STRIP="$ac_cv_prog_STRIP"
 
1913
fi
 
1914
 
 
1915
fi
 
1916
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1917
 
 
1918
# We need awk for the "check" target.  The system "awk" is bad on
 
1919
# some platforms.
 
1920
 
 
1921
 
 
1922
 
 
1923
 
 
1924
GEDIT_MAJOR=2.8
 
1925
 
 
1926
 
 
1927
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1928
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
822
1929
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
823
1930
if test "${enable_maintainer_mode+set}" = set; then
824
1931
  enableval="$enable_maintainer_mode"
825
1932
  USE_MAINTAINER_MODE=$enableval
826
1933
else
827
1934
  USE_MAINTAINER_MODE=no
828
 
fi
 
1935
fi;
 
1936
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1937
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
829
1938
 
830
 
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
831
 
  
832
1939
 
833
1940
if test $USE_MAINTAINER_MODE = yes; then
834
1941
  MAINTAINER_MODE_TRUE=
837
1944
  MAINTAINER_MODE_TRUE='#'
838
1945
  MAINTAINER_MODE_FALSE=
839
1946
fi
 
1947
 
840
1948
  MAINT=$MAINTAINER_MODE_TRUE
841
 
  
842
 
 
843
 
 
844
 
        
845
 
 
846
 
if test x = y; then
847
 
  INSIDE_GNOME_COMMON_TRUE=
848
 
  INSIDE_GNOME_COMMON_FALSE='#'
849
 
else
850
 
  INSIDE_GNOME_COMMON_TRUE='#'
851
 
  INSIDE_GNOME_COMMON_FALSE=
852
 
fi
853
 
 
854
 
        test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
855
 
 
856
 
        for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
857
 
 
858
 
 
859
 
# Extract the first word of "gcc", so it can be a program name with args.
860
 
set dummy gcc; ac_word=$2
861
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862
 
echo "configure:863: checking for $ac_word" >&5
863
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864
 
  echo $ac_n "(cached) $ac_c" 1>&6
865
 
else
866
 
  if test -n "$CC"; then
867
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
868
 
else
869
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
870
 
  ac_dummy="$PATH"
871
 
  for ac_dir in $ac_dummy; do
872
 
    test -z "$ac_dir" && ac_dir=.
873
 
    if test -f $ac_dir/$ac_word; then
874
 
      ac_cv_prog_CC="gcc"
875
 
      break
876
 
    fi
877
 
  done
878
 
  IFS="$ac_save_ifs"
879
 
fi
880
 
fi
881
 
CC="$ac_cv_prog_CC"
882
 
if test -n "$CC"; then
883
 
  echo "$ac_t""$CC" 1>&6
884
 
else
885
 
  echo "$ac_t""no" 1>&6
886
 
fi
887
 
 
888
 
if test -z "$CC"; then
889
 
  # Extract the first word of "cc", so it can be a program name with args.
890
 
set dummy cc; ac_word=$2
891
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892
 
echo "configure:893: checking for $ac_word" >&5
893
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
894
 
  echo $ac_n "(cached) $ac_c" 1>&6
895
 
else
896
 
  if test -n "$CC"; then
897
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
898
 
else
899
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
900
 
  ac_prog_rejected=no
901
 
  ac_dummy="$PATH"
902
 
  for ac_dir in $ac_dummy; do
903
 
    test -z "$ac_dir" && ac_dir=.
904
 
    if test -f $ac_dir/$ac_word; then
905
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
906
 
        ac_prog_rejected=yes
907
 
        continue
908
 
      fi
909
 
      ac_cv_prog_CC="cc"
910
 
      break
911
 
    fi
912
 
  done
913
 
  IFS="$ac_save_ifs"
914
 
if test $ac_prog_rejected = yes; then
915
 
  # We found a bogon in the path, so make sure we never use it.
916
 
  set dummy $ac_cv_prog_CC
917
 
  shift
918
 
  if test $# -gt 0; then
919
 
    # We chose a different compiler from the bogus one.
920
 
    # However, it has the same basename, so the bogon will be chosen
921
 
    # first if we set CC to just the basename; use the full file name.
922
 
    shift
923
 
    set dummy "$ac_dir/$ac_word" "$@"
924
 
    shift
925
 
    ac_cv_prog_CC="$@"
926
 
  fi
927
 
fi
928
 
fi
929
 
fi
930
 
CC="$ac_cv_prog_CC"
931
 
if test -n "$CC"; then
932
 
  echo "$ac_t""$CC" 1>&6
933
 
else
934
 
  echo "$ac_t""no" 1>&6
935
 
fi
936
 
 
937
 
  if test -z "$CC"; then
938
 
    case "`uname -s`" in
939
 
    *win32* | *WIN32*)
940
 
      # Extract the first word of "cl", so it can be a program name with args.
941
 
set dummy cl; ac_word=$2
942
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
943
 
echo "configure:944: checking for $ac_word" >&5
944
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
945
 
  echo $ac_n "(cached) $ac_c" 1>&6
946
 
else
947
 
  if test -n "$CC"; then
948
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
949
 
else
950
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
951
 
  ac_dummy="$PATH"
952
 
  for ac_dir in $ac_dummy; do
953
 
    test -z "$ac_dir" && ac_dir=.
954
 
    if test -f $ac_dir/$ac_word; then
955
 
      ac_cv_prog_CC="cl"
956
 
      break
957
 
    fi
958
 
  done
959
 
  IFS="$ac_save_ifs"
960
 
fi
961
 
fi
962
 
CC="$ac_cv_prog_CC"
963
 
if test -n "$CC"; then
964
 
  echo "$ac_t""$CC" 1>&6
965
 
else
966
 
  echo "$ac_t""no" 1>&6
967
 
fi
968
 
 ;;
969
 
    esac
970
 
  fi
971
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
972
 
fi
973
 
 
974
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
975
 
echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
976
 
 
977
 
ac_ext=c
978
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
979
 
ac_cpp='$CPP $CPPFLAGS'
980
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
981
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
982
 
cross_compiling=$ac_cv_prog_cc_cross
983
 
 
984
 
cat > conftest.$ac_ext << EOF
985
 
 
986
 
#line 987 "configure"
987
 
#include "confdefs.h"
988
 
 
989
 
main(){return(0);}
990
 
EOF
991
 
if { (eval echo configure:992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
992
 
  ac_cv_prog_cc_works=yes
993
 
  # If we can't run a trivial program, we are probably using a cross compiler.
994
 
  if (./conftest; exit) 2>/dev/null; then
995
 
    ac_cv_prog_cc_cross=no
996
 
  else
997
 
    ac_cv_prog_cc_cross=yes
998
 
  fi
999
 
else
1000
 
  echo "configure: failed program was:" >&5
1001
 
  cat conftest.$ac_ext >&5
1002
 
  ac_cv_prog_cc_works=no
1003
 
fi
1004
 
rm -fr conftest*
1005
 
ac_ext=c
1006
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1007
 
ac_cpp='$CPP $CPPFLAGS'
1008
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1009
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1010
 
cross_compiling=$ac_cv_prog_cc_cross
1011
 
 
1012
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1013
 
if test $ac_cv_prog_cc_works = no; then
1014
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1015
 
fi
1016
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1017
 
echo "configure:1018: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1018
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1019
 
cross_compiling=$ac_cv_prog_cc_cross
1020
 
 
1021
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1022
 
echo "configure:1023: checking whether we are using GNU C" >&5
1023
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1024
 
  echo $ac_n "(cached) $ac_c" 1>&6
1025
 
else
1026
 
  cat > conftest.c <<EOF
1027
 
#ifdef __GNUC__
1028
 
  yes;
1029
 
#endif
1030
 
EOF
1031
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1032
 
  ac_cv_prog_gcc=yes
1033
 
else
1034
 
  ac_cv_prog_gcc=no
1035
 
fi
1036
 
fi
1037
 
 
1038
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1039
 
 
1040
 
if test $ac_cv_prog_gcc = yes; then
1041
 
  GCC=yes
1042
 
else
1043
 
  GCC=
1044
 
fi
1045
 
 
1046
 
ac_test_CFLAGS="${CFLAGS+set}"
1047
 
ac_save_CFLAGS="$CFLAGS"
1048
 
CFLAGS=
1049
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1050
 
echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5
1051
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1052
 
  echo $ac_n "(cached) $ac_c" 1>&6
1053
 
else
1054
 
  echo 'void f(){}' > conftest.c
1055
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1056
 
  ac_cv_prog_cc_g=yes
1057
 
else
1058
 
  ac_cv_prog_cc_g=no
1059
 
fi
1060
 
rm -f conftest*
1061
 
 
1062
 
fi
1063
 
 
1064
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1065
 
if test "$ac_test_CFLAGS" = set; then
1066
 
  CFLAGS="$ac_save_CFLAGS"
1067
 
elif test $ac_cv_prog_cc_g = yes; then
1068
 
  if test "$GCC" = yes; then
1069
 
    CFLAGS="-g -O2"
1070
 
  else
1071
 
    CFLAGS="-g"
1072
 
  fi
1073
 
else
1074
 
  if test "$GCC" = yes; then
1075
 
    CFLAGS="-O2"
1076
 
  else
1077
 
    CFLAGS=
1078
 
  fi
1079
 
fi
1080
 
 
1081
 
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1082
 
echo "configure:1083: checking for POSIXized ISC" >&5
1083
 
if test -d /etc/conf/kconfig.d &&
1084
 
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1085
 
then
1086
 
  echo "$ac_t""yes" 1>&6
1087
 
  ISC=yes # If later tests want to check for ISC.
1088
 
  cat >> confdefs.h <<\EOF
1089
 
#define _POSIX_SOURCE 1
1090
 
EOF
1091
 
 
1092
 
  if test "$GCC" = yes; then
1093
 
    CC="$CC -posix"
1094
 
  else
1095
 
    CC="$CC -Xp"
1096
 
  fi
1097
 
else
1098
 
  echo "$ac_t""no" 1>&6
1099
 
  ISC=
1100
 
fi
1101
 
 
1102
 
# Extract the first word of "gcc", so it can be a program name with args.
1103
 
set dummy gcc; ac_word=$2
1104
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105
 
echo "configure:1106: checking for $ac_word" >&5
1106
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1107
 
  echo $ac_n "(cached) $ac_c" 1>&6
1108
 
else
1109
 
  if test -n "$CC"; then
1110
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1111
 
else
1112
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1113
 
  ac_dummy="$PATH"
1114
 
  for ac_dir in $ac_dummy; do
1115
 
    test -z "$ac_dir" && ac_dir=.
1116
 
    if test -f $ac_dir/$ac_word; then
1117
 
      ac_cv_prog_CC="gcc"
1118
 
      break
1119
 
    fi
1120
 
  done
1121
 
  IFS="$ac_save_ifs"
1122
 
fi
1123
 
fi
1124
 
CC="$ac_cv_prog_CC"
1125
 
if test -n "$CC"; then
1126
 
  echo "$ac_t""$CC" 1>&6
1127
 
else
1128
 
  echo "$ac_t""no" 1>&6
1129
 
fi
1130
 
 
1131
 
if test -z "$CC"; then
1132
 
  # Extract the first word of "cc", so it can be a program name with args.
1133
 
set dummy cc; ac_word=$2
1134
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135
 
echo "configure:1136: checking for $ac_word" >&5
1136
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1137
 
  echo $ac_n "(cached) $ac_c" 1>&6
1138
 
else
1139
 
  if test -n "$CC"; then
1140
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1141
 
else
1142
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1143
 
  ac_prog_rejected=no
1144
 
  ac_dummy="$PATH"
1145
 
  for ac_dir in $ac_dummy; do
1146
 
    test -z "$ac_dir" && ac_dir=.
1147
 
    if test -f $ac_dir/$ac_word; then
1148
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1149
 
        ac_prog_rejected=yes
1150
 
        continue
1151
 
      fi
1152
 
      ac_cv_prog_CC="cc"
1153
 
      break
1154
 
    fi
1155
 
  done
1156
 
  IFS="$ac_save_ifs"
1157
 
if test $ac_prog_rejected = yes; then
1158
 
  # We found a bogon in the path, so make sure we never use it.
1159
 
  set dummy $ac_cv_prog_CC
1160
 
  shift
1161
 
  if test $# -gt 0; then
1162
 
    # We chose a different compiler from the bogus one.
1163
 
    # However, it has the same basename, so the bogon will be chosen
1164
 
    # first if we set CC to just the basename; use the full file name.
1165
 
    shift
1166
 
    set dummy "$ac_dir/$ac_word" "$@"
1167
 
    shift
1168
 
    ac_cv_prog_CC="$@"
1169
 
  fi
1170
 
fi
1171
 
fi
1172
 
fi
1173
 
CC="$ac_cv_prog_CC"
1174
 
if test -n "$CC"; then
1175
 
  echo "$ac_t""$CC" 1>&6
1176
 
else
1177
 
  echo "$ac_t""no" 1>&6
1178
 
fi
1179
 
 
1180
 
  if test -z "$CC"; then
1181
 
    case "`uname -s`" in
1182
 
    *win32* | *WIN32*)
1183
 
      # Extract the first word of "cl", so it can be a program name with args.
1184
 
set dummy cl; ac_word=$2
1185
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1186
 
echo "configure:1187: checking for $ac_word" >&5
1187
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1188
 
  echo $ac_n "(cached) $ac_c" 1>&6
1189
 
else
1190
 
  if test -n "$CC"; then
1191
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1192
 
else
1193
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1194
 
  ac_dummy="$PATH"
1195
 
  for ac_dir in $ac_dummy; do
1196
 
    test -z "$ac_dir" && ac_dir=.
1197
 
    if test -f $ac_dir/$ac_word; then
1198
 
      ac_cv_prog_CC="cl"
1199
 
      break
1200
 
    fi
1201
 
  done
1202
 
  IFS="$ac_save_ifs"
1203
 
fi
1204
 
fi
1205
 
CC="$ac_cv_prog_CC"
1206
 
if test -n "$CC"; then
1207
 
  echo "$ac_t""$CC" 1>&6
1208
 
else
1209
 
  echo "$ac_t""no" 1>&6
1210
 
fi
1211
 
 ;;
1212
 
    esac
1213
 
  fi
1214
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1215
 
fi
1216
 
 
1217
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1218
 
echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1219
 
 
1220
 
ac_ext=c
1221
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1222
 
ac_cpp='$CPP $CPPFLAGS'
1223
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1224
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1225
 
cross_compiling=$ac_cv_prog_cc_cross
1226
 
 
1227
 
cat > conftest.$ac_ext << EOF
1228
 
 
1229
 
#line 1230 "configure"
1230
 
#include "confdefs.h"
1231
 
 
1232
 
main(){return(0);}
1233
 
EOF
1234
 
if { (eval echo configure:1235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1235
 
  ac_cv_prog_cc_works=yes
1236
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1237
 
  if (./conftest; exit) 2>/dev/null; then
1238
 
    ac_cv_prog_cc_cross=no
1239
 
  else
1240
 
    ac_cv_prog_cc_cross=yes
1241
 
  fi
1242
 
else
1243
 
  echo "configure: failed program was:" >&5
1244
 
  cat conftest.$ac_ext >&5
1245
 
  ac_cv_prog_cc_works=no
1246
 
fi
1247
 
rm -fr conftest*
1248
 
ac_ext=c
1249
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1250
 
ac_cpp='$CPP $CPPFLAGS'
1251
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1252
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1253
 
cross_compiling=$ac_cv_prog_cc_cross
1254
 
 
1255
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1256
 
if test $ac_cv_prog_cc_works = no; then
1257
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1258
 
fi
1259
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1260
 
echo "configure:1261: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1261
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1262
 
cross_compiling=$ac_cv_prog_cc_cross
1263
 
 
1264
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1265
 
echo "configure:1266: checking whether we are using GNU C" >&5
1266
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1267
 
  echo $ac_n "(cached) $ac_c" 1>&6
1268
 
else
1269
 
  cat > conftest.c <<EOF
1270
 
#ifdef __GNUC__
1271
 
  yes;
1272
 
#endif
1273
 
EOF
1274
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1275
 
  ac_cv_prog_gcc=yes
1276
 
else
1277
 
  ac_cv_prog_gcc=no
1278
 
fi
1279
 
fi
1280
 
 
1281
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1282
 
 
1283
 
if test $ac_cv_prog_gcc = yes; then
1284
 
  GCC=yes
1285
 
else
1286
 
  GCC=
1287
 
fi
1288
 
 
1289
 
ac_test_CFLAGS="${CFLAGS+set}"
1290
 
ac_save_CFLAGS="$CFLAGS"
1291
 
CFLAGS=
1292
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1293
 
echo "configure:1294: checking whether ${CC-cc} accepts -g" >&5
1294
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1295
 
  echo $ac_n "(cached) $ac_c" 1>&6
1296
 
else
1297
 
  echo 'void f(){}' > conftest.c
1298
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1299
 
  ac_cv_prog_cc_g=yes
1300
 
else
1301
 
  ac_cv_prog_cc_g=no
1302
 
fi
1303
 
rm -f conftest*
1304
 
 
1305
 
fi
1306
 
 
1307
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1308
 
if test "$ac_test_CFLAGS" = set; then
1309
 
  CFLAGS="$ac_save_CFLAGS"
1310
 
elif test $ac_cv_prog_cc_g = yes; then
1311
 
  if test "$GCC" = yes; then
1312
 
    CFLAGS="-g -O2"
1313
 
  else
1314
 
    CFLAGS="-g"
1315
 
  fi
1316
 
else
1317
 
  if test "$GCC" = yes; then
1318
 
    CFLAGS="-O2"
1319
 
  else
1320
 
    CFLAGS=
1321
 
  fi
1322
 
fi
1323
 
 
1324
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1325
 
echo "configure:1326: checking how to run the C preprocessor" >&5
1326
 
# On Suns, sometimes $CPP names a directory.
1327
 
if test -n "$CPP" && test -d "$CPP"; then
1328
 
  CPP=
1329
 
fi
1330
 
if test -z "$CPP"; then
1331
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1332
 
  echo $ac_n "(cached) $ac_c" 1>&6
1333
 
else
1334
 
    # This must be in double quotes, not single quotes, because CPP may get
1335
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1336
 
  CPP="${CC-cc} -E"
1337
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1338
 
  # not just through cpp.
1339
 
  cat > conftest.$ac_ext <<EOF
1340
 
#line 1341 "configure"
1341
 
#include "confdefs.h"
1342
 
#include <assert.h>
1343
 
Syntax Error
1344
 
EOF
1345
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346
 
{ (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1347
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1348
 
if test -z "$ac_err"; then
1349
 
  :
1350
 
else
1351
 
  echo "$ac_err" >&5
1352
 
  echo "configure: failed program was:" >&5
1353
 
  cat conftest.$ac_ext >&5
1354
 
  rm -rf conftest*
1355
 
  CPP="${CC-cc} -E -traditional-cpp"
1356
 
  cat > conftest.$ac_ext <<EOF
1357
 
#line 1358 "configure"
1358
 
#include "confdefs.h"
1359
 
#include <assert.h>
1360
 
Syntax Error
1361
 
EOF
1362
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363
 
{ (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1365
 
if test -z "$ac_err"; then
1366
 
  :
1367
 
else
1368
 
  echo "$ac_err" >&5
1369
 
  echo "configure: failed program was:" >&5
1370
 
  cat conftest.$ac_ext >&5
1371
 
  rm -rf conftest*
1372
 
  CPP="${CC-cc} -nologo -E"
1373
 
  cat > conftest.$ac_ext <<EOF
1374
 
#line 1375 "configure"
1375
 
#include "confdefs.h"
1376
 
#include <assert.h>
1377
 
Syntax Error
1378
 
EOF
1379
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1380
 
{ (eval echo configure:1381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1381
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1382
 
if test -z "$ac_err"; then
1383
 
  :
1384
 
else
1385
 
  echo "$ac_err" >&5
1386
 
  echo "configure: failed program was:" >&5
1387
 
  cat conftest.$ac_ext >&5
1388
 
  rm -rf conftest*
1389
 
  CPP=/lib/cpp
1390
 
fi
1391
 
rm -f conftest*
1392
 
fi
1393
 
rm -f conftest*
1394
 
fi
1395
 
rm -f conftest*
1396
 
  ac_cv_prog_CPP="$CPP"
1397
 
fi
1398
 
  CPP="$ac_cv_prog_CPP"
1399
 
else
1400
 
  ac_cv_prog_CPP="$CPP"
1401
 
fi
1402
 
echo "$ac_t""$CPP" 1>&6
1403
 
 
1404
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1405
 
echo "configure:1406: checking for ANSI C header files" >&5
1406
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1407
 
  echo $ac_n "(cached) $ac_c" 1>&6
1408
 
else
1409
 
  cat > conftest.$ac_ext <<EOF
1410
 
#line 1411 "configure"
1411
 
#include "confdefs.h"
1412
 
#include <stdlib.h>
1413
 
#include <stdarg.h>
1414
 
#include <string.h>
1415
 
#include <float.h>
1416
 
EOF
1417
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1418
 
{ (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1419
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1420
 
if test -z "$ac_err"; then
1421
 
  rm -rf conftest*
1422
 
  ac_cv_header_stdc=yes
1423
 
else
1424
 
  echo "$ac_err" >&5
1425
 
  echo "configure: failed program was:" >&5
1426
 
  cat conftest.$ac_ext >&5
1427
 
  rm -rf conftest*
1428
 
  ac_cv_header_stdc=no
1429
 
fi
1430
 
rm -f conftest*
1431
 
 
1432
 
if test $ac_cv_header_stdc = yes; then
1433
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1434
 
cat > conftest.$ac_ext <<EOF
1435
 
#line 1436 "configure"
1436
 
#include "confdefs.h"
1437
 
#include <string.h>
1438
 
EOF
1439
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1440
 
  egrep "memchr" >/dev/null 2>&1; then
1441
 
  :
1442
 
else
1443
 
  rm -rf conftest*
1444
 
  ac_cv_header_stdc=no
1445
 
fi
1446
 
rm -f conftest*
1447
 
 
1448
 
fi
1449
 
 
1450
 
if test $ac_cv_header_stdc = yes; then
1451
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1452
 
cat > conftest.$ac_ext <<EOF
1453
 
#line 1454 "configure"
1454
 
#include "confdefs.h"
1455
 
#include <stdlib.h>
1456
 
EOF
1457
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1458
 
  egrep "free" >/dev/null 2>&1; then
1459
 
  :
1460
 
else
1461
 
  rm -rf conftest*
1462
 
  ac_cv_header_stdc=no
1463
 
fi
1464
 
rm -f conftest*
1465
 
 
1466
 
fi
1467
 
 
1468
 
if test $ac_cv_header_stdc = yes; then
1469
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1470
 
if test "$cross_compiling" = yes; then
1471
 
  :
1472
 
else
1473
 
  cat > conftest.$ac_ext <<EOF
1474
 
#line 1475 "configure"
1475
 
#include "confdefs.h"
1476
 
#include <ctype.h>
1477
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1478
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1479
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1480
 
int main () { int i; for (i = 0; i < 256; i++)
1481
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1482
 
exit (0); }
1483
 
 
1484
 
EOF
1485
 
if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1486
 
then
1487
 
  :
1488
 
else
1489
 
  echo "configure: failed program was:" >&5
1490
 
  cat conftest.$ac_ext >&5
1491
 
  rm -fr conftest*
1492
 
  ac_cv_header_stdc=no
1493
 
fi
1494
 
rm -fr conftest*
1495
 
fi
1496
 
 
1497
 
fi
1498
 
fi
1499
 
 
1500
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1501
 
if test $ac_cv_header_stdc = yes; then
1502
 
  cat >> confdefs.h <<\EOF
1503
 
#define STDC_HEADERS 1
1504
 
EOF
1505
 
 
1506
 
fi
1507
 
 
1508
 
if test "$program_transform_name" = s,x,x,; then
1509
 
  program_transform_name=
1510
 
else
1511
 
  # Double any \ or $.  echo might interpret backslashes.
1512
 
  cat <<\EOF_SED > conftestsed
1513
 
s,\\,\\\\,g; s,\$,$$,g
1514
 
EOF_SED
1515
 
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1516
 
  rm -f conftestsed
1517
 
fi
1518
 
test "$program_prefix" != NONE &&
1519
 
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1520
 
# Use a double $ so make ignores it.
1521
 
test "$program_suffix" != NONE &&
1522
 
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1523
 
 
1524
 
# sed with no file args requires a program.
1525
 
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
1949
 
 
1950
 
 
1951
          ac_config_headers="$ac_config_headers config.h"
 
1952
 
 
1953
# Check whether --enable-static or --disable-static was given.
 
1954
if test "${enable_static+set}" = set; then
 
1955
  enableval="$enable_static"
 
1956
  p=${PACKAGE-default}
 
1957
    case $enableval in
 
1958
    yes) enable_static=yes ;;
 
1959
    no) enable_static=no ;;
 
1960
    *)
 
1961
     enable_static=no
 
1962
      # Look at the argument we got.  We use all the common list separators.
 
1963
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1964
      for pkg in $enableval; do
 
1965
        IFS="$lt_save_ifs"
 
1966
        if test "X$pkg" = "X$p"; then
 
1967
          enable_static=yes
 
1968
        fi
 
1969
      done
 
1970
      IFS="$lt_save_ifs"
 
1971
      ;;
 
1972
    esac
 
1973
else
 
1974
  enable_static=no
 
1975
fi;
 
1976
 
 
1977
 
 
1978
 
 
1979
# Extract the first word of "gconftool-2", so it can be a program name with args.
 
1980
set dummy gconftool-2; ac_word=$2
 
1981
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1982
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1983
if test "${ac_cv_path_GCONFTOOL+set}" = set; then
 
1984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1985
else
 
1986
  case $GCONFTOOL in
 
1987
  [\\/]* | ?:[\\/]*)
 
1988
  ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
 
1989
  ;;
 
1990
  *)
 
1991
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1992
for as_dir in $PATH
 
1993
do
 
1994
  IFS=$as_save_IFS
 
1995
  test -z "$as_dir" && as_dir=.
 
1996
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1997
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1998
    ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
 
1999
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2000
    break 2
 
2001
  fi
 
2002
done
 
2003
done
 
2004
 
 
2005
  ;;
 
2006
esac
 
2007
fi
 
2008
GCONFTOOL=$ac_cv_path_GCONFTOOL
 
2009
 
 
2010
if test -n "$GCONFTOOL"; then
 
2011
  echo "$as_me:$LINENO: result: $GCONFTOOL" >&5
 
2012
echo "${ECHO_T}$GCONFTOOL" >&6
 
2013
else
 
2014
  echo "$as_me:$LINENO: result: no" >&5
 
2015
echo "${ECHO_T}no" >&6
 
2016
fi
 
2017
 
 
2018
 
 
2019
 
 
2020
if test -n "0.31"; then
 
2021
    echo "$as_me:$LINENO: checking for intltool >= 0.31" >&5
 
2022
echo $ECHO_N "checking for intltool >= 0.31... $ECHO_C" >&6
 
2023
 
 
2024
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.31 | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
 
2025
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
 
2026
 
 
2027
    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`
 
2028
 
 
2029
 
 
2030
    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
 
2031
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
2032
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
 
2033
    else
 
2034
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.31 or later." >&5
 
2035
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.31 or later." >&6
 
2036
        exit 1
 
2037
    fi
 
2038
fi
 
2039
 
 
2040
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2041
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2042
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2043
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2044
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
 
2045
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2046
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2047
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2048
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2049
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2050
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2051
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2052
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2053
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2054
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2055
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
2056
 
 
2057
 
 
2058
 
 
2059
 
 
2060
 
 
2061
 
 
2062
 
 
2063
 
 
2064
 
 
2065
 
 
2066
 
 
2067
 
 
2068
 
 
2069
 
 
2070
 
 
2071
 
 
2072
 
 
2073
 
 
2074
# Use the tools built into the package, not the ones that are installed.
 
2075
 
 
2076
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
 
2077
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
 
2078
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
 
2079
 
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
# Extract the first word of "perl", so it can be a program name with args.
 
2085
set dummy perl; ac_word=$2
 
2086
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2088
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
 
2089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2090
else
 
2091
  case $INTLTOOL_PERL in
 
2092
  [\\/]* | ?:[\\/]*)
 
2093
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
2094
  ;;
 
2095
  *)
 
2096
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2097
for as_dir in $PATH
 
2098
do
 
2099
  IFS=$as_save_IFS
 
2100
  test -z "$as_dir" && as_dir=.
 
2101
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2102
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2103
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
2104
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2105
    break 2
 
2106
  fi
 
2107
done
 
2108
done
 
2109
 
 
2110
  ;;
 
2111
esac
 
2112
fi
 
2113
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
2114
 
 
2115
if test -n "$INTLTOOL_PERL"; then
 
2116
  echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
 
2117
echo "${ECHO_T}$INTLTOOL_PERL" >&6
 
2118
else
 
2119
  echo "$as_me:$LINENO: result: no" >&5
 
2120
echo "${ECHO_T}no" >&6
 
2121
fi
 
2122
 
 
2123
if test -z "$INTLTOOL_PERL"; then
 
2124
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
 
2125
echo "$as_me: error: perl not found; required for intltool" >&2;}
 
2126
   { (exit 1); exit 1; }; }
 
2127
fi
 
2128
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
2129
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
 
2130
echo "$as_me: error: perl 5.x required for intltool" >&2;}
 
2131
   { (exit 1); exit 1; }; }
 
2132
fi
 
2133
if test "x" != "xno-xml"; then
 
2134
   echo "$as_me:$LINENO: checking for XML::Parser" >&5
 
2135
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
 
2136
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
2137
       echo "$as_me:$LINENO: result: ok" >&5
 
2138
echo "${ECHO_T}ok" >&6
 
2139
   else
 
2140
       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
 
2141
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
 
2142
   { (exit 1); exit 1; }; }
 
2143
   fi
 
2144
fi
 
2145
 
 
2146
# Extract the first word of "iconv", so it can be a program name with args.
 
2147
set dummy iconv; ac_word=$2
 
2148
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2149
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2150
if test "${ac_cv_path_ICONV+set}" = set; then
 
2151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2152
else
 
2153
  case $ICONV in
 
2154
  [\\/]* | ?:[\\/]*)
 
2155
  ac_cv_path_ICONV="$ICONV" # Let the user override the test with a path.
 
2156
  ;;
 
2157
  *)
 
2158
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2159
for as_dir in $PATH
 
2160
do
 
2161
  IFS=$as_save_IFS
 
2162
  test -z "$as_dir" && as_dir=.
 
2163
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2164
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2165
    ac_cv_path_ICONV="$as_dir/$ac_word$ac_exec_ext"
 
2166
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2167
    break 2
 
2168
  fi
 
2169
done
 
2170
done
 
2171
 
 
2172
  test -z "$ac_cv_path_ICONV" && ac_cv_path_ICONV="iconv"
 
2173
  ;;
 
2174
esac
 
2175
fi
 
2176
ICONV=$ac_cv_path_ICONV
 
2177
 
 
2178
if test -n "$ICONV"; then
 
2179
  echo "$as_me:$LINENO: result: $ICONV" >&5
 
2180
echo "${ECHO_T}$ICONV" >&6
 
2181
else
 
2182
  echo "$as_me:$LINENO: result: no" >&5
 
2183
echo "${ECHO_T}no" >&6
 
2184
fi
 
2185
 
 
2186
# Extract the first word of "msgfmt", so it can be a program name with args.
 
2187
set dummy msgfmt; ac_word=$2
 
2188
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2190
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
2191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2192
else
 
2193
  case $MSGFMT in
 
2194
  [\\/]* | ?:[\\/]*)
 
2195
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2196
  ;;
 
2197
  *)
 
2198
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2199
for as_dir in $PATH
 
2200
do
 
2201
  IFS=$as_save_IFS
 
2202
  test -z "$as_dir" && as_dir=.
 
2203
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2204
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2205
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
2206
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2207
    break 2
 
2208
  fi
 
2209
done
 
2210
done
 
2211
 
 
2212
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
2213
  ;;
 
2214
esac
 
2215
fi
 
2216
MSGFMT=$ac_cv_path_MSGFMT
 
2217
 
 
2218
if test -n "$MSGFMT"; then
 
2219
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
2220
echo "${ECHO_T}$MSGFMT" >&6
 
2221
else
 
2222
  echo "$as_me:$LINENO: result: no" >&5
 
2223
echo "${ECHO_T}no" >&6
 
2224
fi
 
2225
 
 
2226
# Extract the first word of "msgmerge", so it can be a program name with args.
 
2227
set dummy msgmerge; ac_word=$2
 
2228
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2229
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2230
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
2231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2232
else
 
2233
  case $MSGMERGE in
 
2234
  [\\/]* | ?:[\\/]*)
 
2235
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
2236
  ;;
 
2237
  *)
 
2238
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2239
for as_dir in $PATH
 
2240
do
 
2241
  IFS=$as_save_IFS
 
2242
  test -z "$as_dir" && as_dir=.
 
2243
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2244
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2245
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
2246
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2247
    break 2
 
2248
  fi
 
2249
done
 
2250
done
 
2251
 
 
2252
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="msgmerge"
 
2253
  ;;
 
2254
esac
 
2255
fi
 
2256
MSGMERGE=$ac_cv_path_MSGMERGE
 
2257
 
 
2258
if test -n "$MSGMERGE"; then
 
2259
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
2260
echo "${ECHO_T}$MSGMERGE" >&6
 
2261
else
 
2262
  echo "$as_me:$LINENO: result: no" >&5
 
2263
echo "${ECHO_T}no" >&6
 
2264
fi
 
2265
 
 
2266
# Extract the first word of "xgettext", so it can be a program name with args.
 
2267
set dummy xgettext; ac_word=$2
 
2268
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2270
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
2271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2272
else
 
2273
  case $XGETTEXT in
 
2274
  [\\/]* | ?:[\\/]*)
 
2275
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2276
  ;;
 
2277
  *)
 
2278
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2279
for as_dir in $PATH
 
2280
do
 
2281
  IFS=$as_save_IFS
 
2282
  test -z "$as_dir" && as_dir=.
 
2283
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2284
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2285
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
2286
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2287
    break 2
 
2288
  fi
 
2289
done
 
2290
done
 
2291
 
 
2292
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
 
2293
  ;;
 
2294
esac
 
2295
fi
 
2296
XGETTEXT=$ac_cv_path_XGETTEXT
 
2297
 
 
2298
if test -n "$XGETTEXT"; then
 
2299
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
2300
echo "${ECHO_T}$XGETTEXT" >&6
 
2301
else
 
2302
  echo "$as_me:$LINENO: result: no" >&5
 
2303
echo "${ECHO_T}no" >&6
 
2304
fi
 
2305
 
 
2306
 
 
2307
# Remove file type tags (using []) from po/POTFILES.
 
2308
 
 
2309
 
 
2310
 
 
2311
 
 
2312
 
 
2313
 
 
2314
 
 
2315
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
 
2316
 
 
2317
          ac_config_commands="$ac_config_commands intltool"
 
2318
 
 
2319
 
 
2320
 
1526
2321
 
1527
2322
# Check whether --enable-shared or --disable-shared was given.
1528
2323
if test "${enable_shared+set}" = set; then
1529
2324
  enableval="$enable_shared"
1530
2325
  p=${PACKAGE-default}
1531
 
case "$enableval" in
1532
 
yes) enable_shared=yes ;;
1533
 
no) enable_shared=no ;;
1534
 
*)
1535
 
  enable_shared=no
1536
 
  # Look at the argument we got.  We use all the common list separators.
1537
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1538
 
  for pkg in $enableval; do
1539
 
    if test "X$pkg" = "X$p"; then
1540
 
      enable_shared=yes
1541
 
    fi
1542
 
  done
1543
 
  IFS="$ac_save_ifs"
1544
 
  ;;
1545
 
esac
 
2326
    case $enableval in
 
2327
    yes) enable_shared=yes ;;
 
2328
    no) enable_shared=no ;;
 
2329
    *)
 
2330
      enable_shared=no
 
2331
      # Look at the argument we got.  We use all the common list separators.
 
2332
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2333
      for pkg in $enableval; do
 
2334
        IFS="$lt_save_ifs"
 
2335
        if test "X$pkg" = "X$p"; then
 
2336
          enable_shared=yes
 
2337
        fi
 
2338
      done
 
2339
      IFS="$lt_save_ifs"
 
2340
      ;;
 
2341
    esac
1546
2342
else
1547
2343
  enable_shared=yes
1548
 
fi
1549
 
 
1550
 
# Check whether --enable-static or --disable-static was given.
1551
 
if test "${enable_static+set}" = set; then
1552
 
  enableval="$enable_static"
1553
 
  p=${PACKAGE-default}
1554
 
case "$enableval" in
1555
 
yes) enable_static=yes ;;
1556
 
no) enable_static=no ;;
1557
 
*)
1558
 
  enable_static=no
1559
 
  # Look at the argument we got.  We use all the common list separators.
1560
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1561
 
  for pkg in $enableval; do
1562
 
    if test "X$pkg" = "X$p"; then
1563
 
      enable_static=yes
1564
 
    fi
1565
 
  done
1566
 
  IFS="$ac_save_ifs"
1567
 
  ;;
1568
 
esac
1569
 
else
1570
 
  enable_static=yes
1571
 
fi
 
2344
fi;
1572
2345
 
1573
2346
# Check whether --enable-fast-install or --disable-fast-install was given.
1574
2347
if test "${enable_fast_install+set}" = set; then
1575
2348
  enableval="$enable_fast_install"
1576
2349
  p=${PACKAGE-default}
1577
 
case "$enableval" in
1578
 
yes) enable_fast_install=yes ;;
1579
 
no) enable_fast_install=no ;;
1580
 
*)
1581
 
  enable_fast_install=no
1582
 
  # Look at the argument we got.  We use all the common list separators.
1583
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1584
 
  for pkg in $enableval; do
1585
 
    if test "X$pkg" = "X$p"; then
1586
 
      enable_fast_install=yes
1587
 
    fi
1588
 
  done
1589
 
  IFS="$ac_save_ifs"
1590
 
  ;;
1591
 
esac
 
2350
    case $enableval in
 
2351
    yes) enable_fast_install=yes ;;
 
2352
    no) enable_fast_install=no ;;
 
2353
    *)
 
2354
      enable_fast_install=no
 
2355
      # Look at the argument we got.  We use all the common list separators.
 
2356
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2357
      for pkg in $enableval; do
 
2358
        IFS="$lt_save_ifs"
 
2359
        if test "X$pkg" = "X$p"; then
 
2360
          enable_fast_install=yes
 
2361
        fi
 
2362
      done
 
2363
      IFS="$lt_save_ifs"
 
2364
      ;;
 
2365
    esac
1592
2366
else
1593
2367
  enable_fast_install=yes
1594
 
fi
1595
 
 
 
2368
fi;
1596
2369
 
1597
2370
# Make sure we can run config.sub.
1598
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1599
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1600
 
fi
1601
 
 
1602
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
1603
 
echo "configure:1604: checking host system type" >&5
1604
 
 
1605
 
host_alias=$host
1606
 
case "$host_alias" in
1607
 
NONE)
1608
 
  case $nonopt in
1609
 
  NONE)
1610
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1611
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1612
 
    fi ;;
1613
 
  *) host_alias=$nonopt ;;
1614
 
  esac ;;
1615
 
esac
1616
 
 
1617
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1618
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
 
echo "$ac_t""$host" 1>&6
1622
 
 
1623
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
1624
 
echo "configure:1625: checking build system type" >&5
1625
 
 
1626
 
build_alias=$build
1627
 
case "$build_alias" in
1628
 
NONE)
1629
 
  case $nonopt in
1630
 
  NONE) build_alias=$host_alias ;;
1631
 
  *) build_alias=$nonopt ;;
1632
 
  esac ;;
1633
 
esac
1634
 
 
1635
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1636
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
 
echo "$ac_t""$build" 1>&6
1640
 
 
1641
 
# Extract the first word of "ranlib", so it can be a program name with args.
1642
 
set dummy ranlib; ac_word=$2
1643
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644
 
echo "configure:1645: checking for $ac_word" >&5
1645
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1646
 
  echo $ac_n "(cached) $ac_c" 1>&6
1647
 
else
1648
 
  if test -n "$RANLIB"; then
1649
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1650
 
else
1651
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1652
 
  ac_dummy="$PATH"
1653
 
  for ac_dir in $ac_dummy; do
1654
 
    test -z "$ac_dir" && ac_dir=.
1655
 
    if test -f $ac_dir/$ac_word; then
1656
 
      ac_cv_prog_RANLIB="ranlib"
1657
 
      break
1658
 
    fi
1659
 
  done
1660
 
  IFS="$ac_save_ifs"
1661
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1662
 
fi
1663
 
fi
1664
 
RANLIB="$ac_cv_prog_RANLIB"
1665
 
if test -n "$RANLIB"; then
1666
 
  echo "$ac_t""$RANLIB" 1>&6
1667
 
else
1668
 
  echo "$ac_t""no" 1>&6
1669
 
fi
 
2371
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2372
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2373
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2374
   { (exit 1); exit 1; }; }
 
2375
 
 
2376
echo "$as_me:$LINENO: checking build system type" >&5
 
2377
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2378
if test "${ac_cv_build+set}" = set; then
 
2379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2380
else
 
2381
  ac_cv_build_alias=$build_alias
 
2382
test -z "$ac_cv_build_alias" &&
 
2383
  ac_cv_build_alias=`$ac_config_guess`
 
2384
test -z "$ac_cv_build_alias" &&
 
2385
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2386
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2387
   { (exit 1); exit 1; }; }
 
2388
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2389
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2390
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2391
   { (exit 1); exit 1; }; }
 
2392
 
 
2393
fi
 
2394
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2395
echo "${ECHO_T}$ac_cv_build" >&6
 
2396
build=$ac_cv_build
 
2397
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2398
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2399
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2400
 
 
2401
 
 
2402
echo "$as_me:$LINENO: checking host system type" >&5
 
2403
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2404
if test "${ac_cv_host+set}" = set; then
 
2405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2406
else
 
2407
  ac_cv_host_alias=$host_alias
 
2408
test -z "$ac_cv_host_alias" &&
 
2409
  ac_cv_host_alias=$ac_cv_build_alias
 
2410
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2411
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2412
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2413
   { (exit 1); exit 1; }; }
 
2414
 
 
2415
fi
 
2416
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2417
echo "${ECHO_T}$ac_cv_host" >&6
 
2418
host=$ac_cv_host
 
2419
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2420
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2421
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2422
 
 
2423
 
 
2424
DEPDIR="${am__leading_dot}deps"
 
2425
 
 
2426
          ac_config_commands="$ac_config_commands depfiles"
 
2427
 
 
2428
 
 
2429
am_make=${MAKE-make}
 
2430
cat > confinc << 'END'
 
2431
am__doit:
 
2432
        @echo done
 
2433
.PHONY: am__doit
 
2434
END
 
2435
# If we don't find an include directive, just comment out the code.
 
2436
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2437
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2438
am__include="#"
 
2439
am__quote=
 
2440
_am_result=none
 
2441
# First try GNU make style include.
 
2442
echo "include confinc" > confmf
 
2443
# We grep out `Entering directory' and `Leaving directory'
 
2444
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2445
# In particular we don't look at `^make:' because GNU make might
 
2446
# be invoked under some other name (usually "gmake"), in which
 
2447
# case it prints its new name instead of `make'.
 
2448
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2449
   am__include=include
 
2450
   am__quote=
 
2451
   _am_result=GNU
 
2452
fi
 
2453
# Now try BSD make style include.
 
2454
if test "$am__include" = "#"; then
 
2455
   echo '.include "confinc"' > confmf
 
2456
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2457
      am__include=.include
 
2458
      am__quote="\""
 
2459
      _am_result=BSD
 
2460
   fi
 
2461
fi
 
2462
 
 
2463
 
 
2464
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2465
echo "${ECHO_T}$_am_result" >&6
 
2466
rm -f confinc confmf
 
2467
 
 
2468
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2469
if test "${enable_dependency_tracking+set}" = set; then
 
2470
  enableval="$enable_dependency_tracking"
 
2471
 
 
2472
fi;
 
2473
if test "x$enable_dependency_tracking" != xno; then
 
2474
  am_depcomp="$ac_aux_dir/depcomp"
 
2475
  AMDEPBACKSLASH='\'
 
2476
fi
 
2477
 
 
2478
 
 
2479
if test "x$enable_dependency_tracking" != xno; then
 
2480
  AMDEP_TRUE=
 
2481
  AMDEP_FALSE='#'
 
2482
else
 
2483
  AMDEP_TRUE='#'
 
2484
  AMDEP_FALSE=
 
2485
fi
 
2486
 
 
2487
 
 
2488
 
 
2489
ac_ext=c
 
2490
ac_cpp='$CPP $CPPFLAGS'
 
2491
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2492
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2493
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2494
if test -n "$ac_tool_prefix"; then
 
2495
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2496
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2497
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2499
if test "${ac_cv_prog_CC+set}" = set; then
 
2500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2501
else
 
2502
  if test -n "$CC"; then
 
2503
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2504
else
 
2505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2506
for as_dir in $PATH
 
2507
do
 
2508
  IFS=$as_save_IFS
 
2509
  test -z "$as_dir" && as_dir=.
 
2510
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2511
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2512
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2514
    break 2
 
2515
  fi
 
2516
done
 
2517
done
 
2518
 
 
2519
fi
 
2520
fi
 
2521
CC=$ac_cv_prog_CC
 
2522
if test -n "$CC"; then
 
2523
  echo "$as_me:$LINENO: result: $CC" >&5
 
2524
echo "${ECHO_T}$CC" >&6
 
2525
else
 
2526
  echo "$as_me:$LINENO: result: no" >&5
 
2527
echo "${ECHO_T}no" >&6
 
2528
fi
 
2529
 
 
2530
fi
 
2531
if test -z "$ac_cv_prog_CC"; then
 
2532
  ac_ct_CC=$CC
 
2533
  # Extract the first word of "gcc", so it can be a program name with args.
 
2534
set dummy gcc; ac_word=$2
 
2535
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2537
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2539
else
 
2540
  if test -n "$ac_ct_CC"; then
 
2541
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2542
else
 
2543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2544
for as_dir in $PATH
 
2545
do
 
2546
  IFS=$as_save_IFS
 
2547
  test -z "$as_dir" && as_dir=.
 
2548
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2549
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2550
    ac_cv_prog_ac_ct_CC="gcc"
 
2551
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2552
    break 2
 
2553
  fi
 
2554
done
 
2555
done
 
2556
 
 
2557
fi
 
2558
fi
 
2559
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2560
if test -n "$ac_ct_CC"; then
 
2561
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2562
echo "${ECHO_T}$ac_ct_CC" >&6
 
2563
else
 
2564
  echo "$as_me:$LINENO: result: no" >&5
 
2565
echo "${ECHO_T}no" >&6
 
2566
fi
 
2567
 
 
2568
  CC=$ac_ct_CC
 
2569
else
 
2570
  CC="$ac_cv_prog_CC"
 
2571
fi
 
2572
 
 
2573
if test -z "$CC"; then
 
2574
  if test -n "$ac_tool_prefix"; then
 
2575
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2576
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2577
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2578
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2579
if test "${ac_cv_prog_CC+set}" = set; then
 
2580
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2581
else
 
2582
  if test -n "$CC"; then
 
2583
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2584
else
 
2585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2586
for as_dir in $PATH
 
2587
do
 
2588
  IFS=$as_save_IFS
 
2589
  test -z "$as_dir" && as_dir=.
 
2590
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2591
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2592
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2593
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2594
    break 2
 
2595
  fi
 
2596
done
 
2597
done
 
2598
 
 
2599
fi
 
2600
fi
 
2601
CC=$ac_cv_prog_CC
 
2602
if test -n "$CC"; then
 
2603
  echo "$as_me:$LINENO: result: $CC" >&5
 
2604
echo "${ECHO_T}$CC" >&6
 
2605
else
 
2606
  echo "$as_me:$LINENO: result: no" >&5
 
2607
echo "${ECHO_T}no" >&6
 
2608
fi
 
2609
 
 
2610
fi
 
2611
if test -z "$ac_cv_prog_CC"; then
 
2612
  ac_ct_CC=$CC
 
2613
  # Extract the first word of "cc", so it can be a program name with args.
 
2614
set dummy cc; ac_word=$2
 
2615
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2617
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2619
else
 
2620
  if test -n "$ac_ct_CC"; then
 
2621
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2622
else
 
2623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2624
for as_dir in $PATH
 
2625
do
 
2626
  IFS=$as_save_IFS
 
2627
  test -z "$as_dir" && as_dir=.
 
2628
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2629
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2630
    ac_cv_prog_ac_ct_CC="cc"
 
2631
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2632
    break 2
 
2633
  fi
 
2634
done
 
2635
done
 
2636
 
 
2637
fi
 
2638
fi
 
2639
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2640
if test -n "$ac_ct_CC"; then
 
2641
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2642
echo "${ECHO_T}$ac_ct_CC" >&6
 
2643
else
 
2644
  echo "$as_me:$LINENO: result: no" >&5
 
2645
echo "${ECHO_T}no" >&6
 
2646
fi
 
2647
 
 
2648
  CC=$ac_ct_CC
 
2649
else
 
2650
  CC="$ac_cv_prog_CC"
 
2651
fi
 
2652
 
 
2653
fi
 
2654
if test -z "$CC"; then
 
2655
  # Extract the first word of "cc", so it can be a program name with args.
 
2656
set dummy cc; ac_word=$2
 
2657
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2659
if test "${ac_cv_prog_CC+set}" = set; then
 
2660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2661
else
 
2662
  if test -n "$CC"; then
 
2663
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2664
else
 
2665
  ac_prog_rejected=no
 
2666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2667
for as_dir in $PATH
 
2668
do
 
2669
  IFS=$as_save_IFS
 
2670
  test -z "$as_dir" && as_dir=.
 
2671
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2672
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2673
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2674
       ac_prog_rejected=yes
 
2675
       continue
 
2676
     fi
 
2677
    ac_cv_prog_CC="cc"
 
2678
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2679
    break 2
 
2680
  fi
 
2681
done
 
2682
done
 
2683
 
 
2684
if test $ac_prog_rejected = yes; then
 
2685
  # We found a bogon in the path, so make sure we never use it.
 
2686
  set dummy $ac_cv_prog_CC
 
2687
  shift
 
2688
  if test $# != 0; then
 
2689
    # We chose a different compiler from the bogus one.
 
2690
    # However, it has the same basename, so the bogon will be chosen
 
2691
    # first if we set CC to just the basename; use the full file name.
 
2692
    shift
 
2693
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2694
  fi
 
2695
fi
 
2696
fi
 
2697
fi
 
2698
CC=$ac_cv_prog_CC
 
2699
if test -n "$CC"; then
 
2700
  echo "$as_me:$LINENO: result: $CC" >&5
 
2701
echo "${ECHO_T}$CC" >&6
 
2702
else
 
2703
  echo "$as_me:$LINENO: result: no" >&5
 
2704
echo "${ECHO_T}no" >&6
 
2705
fi
 
2706
 
 
2707
fi
 
2708
if test -z "$CC"; then
 
2709
  if test -n "$ac_tool_prefix"; then
 
2710
  for ac_prog in cl
 
2711
  do
 
2712
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2713
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2714
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2716
if test "${ac_cv_prog_CC+set}" = set; then
 
2717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2718
else
 
2719
  if test -n "$CC"; then
 
2720
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2721
else
 
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2723
for as_dir in $PATH
 
2724
do
 
2725
  IFS=$as_save_IFS
 
2726
  test -z "$as_dir" && as_dir=.
 
2727
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2728
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2729
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2731
    break 2
 
2732
  fi
 
2733
done
 
2734
done
 
2735
 
 
2736
fi
 
2737
fi
 
2738
CC=$ac_cv_prog_CC
 
2739
if test -n "$CC"; then
 
2740
  echo "$as_me:$LINENO: result: $CC" >&5
 
2741
echo "${ECHO_T}$CC" >&6
 
2742
else
 
2743
  echo "$as_me:$LINENO: result: no" >&5
 
2744
echo "${ECHO_T}no" >&6
 
2745
fi
 
2746
 
 
2747
    test -n "$CC" && break
 
2748
  done
 
2749
fi
 
2750
if test -z "$CC"; then
 
2751
  ac_ct_CC=$CC
 
2752
  for ac_prog in cl
 
2753
do
 
2754
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2755
set dummy $ac_prog; ac_word=$2
 
2756
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2757
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2758
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2760
else
 
2761
  if test -n "$ac_ct_CC"; then
 
2762
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2763
else
 
2764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2765
for as_dir in $PATH
 
2766
do
 
2767
  IFS=$as_save_IFS
 
2768
  test -z "$as_dir" && as_dir=.
 
2769
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2770
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2771
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2772
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2773
    break 2
 
2774
  fi
 
2775
done
 
2776
done
 
2777
 
 
2778
fi
 
2779
fi
 
2780
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2781
if test -n "$ac_ct_CC"; then
 
2782
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2783
echo "${ECHO_T}$ac_ct_CC" >&6
 
2784
else
 
2785
  echo "$as_me:$LINENO: result: no" >&5
 
2786
echo "${ECHO_T}no" >&6
 
2787
fi
 
2788
 
 
2789
  test -n "$ac_ct_CC" && break
 
2790
done
 
2791
 
 
2792
  CC=$ac_ct_CC
 
2793
fi
 
2794
 
 
2795
fi
 
2796
 
 
2797
 
 
2798
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2799
See \`config.log' for more details." >&5
 
2800
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2801
See \`config.log' for more details." >&2;}
 
2802
   { (exit 1); exit 1; }; }
 
2803
 
 
2804
# Provide some information about the compiler.
 
2805
echo "$as_me:$LINENO:" \
 
2806
     "checking for C compiler version" >&5
 
2807
ac_compiler=`set X $ac_compile; echo $2`
 
2808
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2809
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2810
  ac_status=$?
 
2811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2812
  (exit $ac_status); }
 
2813
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2814
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2815
  ac_status=$?
 
2816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2817
  (exit $ac_status); }
 
2818
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2819
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2820
  ac_status=$?
 
2821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2822
  (exit $ac_status); }
 
2823
 
 
2824
cat >conftest.$ac_ext <<_ACEOF
 
2825
/* confdefs.h.  */
 
2826
_ACEOF
 
2827
cat confdefs.h >>conftest.$ac_ext
 
2828
cat >>conftest.$ac_ext <<_ACEOF
 
2829
/* end confdefs.h.  */
 
2830
 
 
2831
int
 
2832
main ()
 
2833
{
 
2834
 
 
2835
  ;
 
2836
  return 0;
 
2837
}
 
2838
_ACEOF
 
2839
ac_clean_files_save=$ac_clean_files
 
2840
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2841
# Try to create an executable without -o first, disregard a.out.
 
2842
# It will help us diagnose broken compilers, and finding out an intuition
 
2843
# of exeext.
 
2844
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2845
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2846
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2847
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2848
  (eval $ac_link_default) 2>&5
 
2849
  ac_status=$?
 
2850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2851
  (exit $ac_status); }; then
 
2852
  # Find the output, starting from the most likely.  This scheme is
 
2853
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2854
# resort.
 
2855
 
 
2856
# Be careful to initialize this variable, since it used to be cached.
 
2857
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2858
ac_cv_exeext=
 
2859
# b.out is created by i960 compilers.
 
2860
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2861
do
 
2862
  test -f "$ac_file" || continue
 
2863
  case $ac_file in
 
2864
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2865
        ;;
 
2866
    conftest.$ac_ext )
 
2867
        # This is the source file.
 
2868
        ;;
 
2869
    [ab].out )
 
2870
        # We found the default executable, but exeext='' is most
 
2871
        # certainly right.
 
2872
        break;;
 
2873
    *.* )
 
2874
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2875
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2876
        # but it would be cool to find out if it's true.  Does anybody
 
2877
        # maintain Libtool? --akim.
 
2878
        export ac_cv_exeext
 
2879
        break;;
 
2880
    * )
 
2881
        break;;
 
2882
  esac
 
2883
done
 
2884
else
 
2885
  echo "$as_me: failed program was:" >&5
 
2886
sed 's/^/| /' conftest.$ac_ext >&5
 
2887
 
 
2888
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2889
See \`config.log' for more details." >&5
 
2890
echo "$as_me: error: C compiler cannot create executables
 
2891
See \`config.log' for more details." >&2;}
 
2892
   { (exit 77); exit 77; }; }
 
2893
fi
 
2894
 
 
2895
ac_exeext=$ac_cv_exeext
 
2896
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2897
echo "${ECHO_T}$ac_file" >&6
 
2898
 
 
2899
# Check the compiler produces executables we can run.  If not, either
 
2900
# the compiler is broken, or we cross compile.
 
2901
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2902
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2903
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2904
# If not cross compiling, check that we can run a simple program.
 
2905
if test "$cross_compiling" != yes; then
 
2906
  if { ac_try='./$ac_file'
 
2907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2908
  (eval $ac_try) 2>&5
 
2909
  ac_status=$?
 
2910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2911
  (exit $ac_status); }; }; then
 
2912
    cross_compiling=no
 
2913
  else
 
2914
    if test "$cross_compiling" = maybe; then
 
2915
        cross_compiling=yes
 
2916
    else
 
2917
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2918
If you meant to cross compile, use \`--host'.
 
2919
See \`config.log' for more details." >&5
 
2920
echo "$as_me: error: cannot run C compiled programs.
 
2921
If you meant to cross compile, use \`--host'.
 
2922
See \`config.log' for more details." >&2;}
 
2923
   { (exit 1); exit 1; }; }
 
2924
    fi
 
2925
  fi
 
2926
fi
 
2927
echo "$as_me:$LINENO: result: yes" >&5
 
2928
echo "${ECHO_T}yes" >&6
 
2929
 
 
2930
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2931
ac_clean_files=$ac_clean_files_save
 
2932
# Check the compiler produces executables we can run.  If not, either
 
2933
# the compiler is broken, or we cross compile.
 
2934
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2935
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2936
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2937
echo "${ECHO_T}$cross_compiling" >&6
 
2938
 
 
2939
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2940
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2942
  (eval $ac_link) 2>&5
 
2943
  ac_status=$?
 
2944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2945
  (exit $ac_status); }; then
 
2946
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2947
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2948
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2949
# `rm'.
 
2950
for ac_file in conftest.exe conftest conftest.*; do
 
2951
  test -f "$ac_file" || continue
 
2952
  case $ac_file in
 
2953
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2954
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2955
          export ac_cv_exeext
 
2956
          break;;
 
2957
    * ) break;;
 
2958
  esac
 
2959
done
 
2960
else
 
2961
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2962
See \`config.log' for more details." >&5
 
2963
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2964
See \`config.log' for more details." >&2;}
 
2965
   { (exit 1); exit 1; }; }
 
2966
fi
 
2967
 
 
2968
rm -f conftest$ac_cv_exeext
 
2969
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2970
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2971
 
 
2972
rm -f conftest.$ac_ext
 
2973
EXEEXT=$ac_cv_exeext
 
2974
ac_exeext=$EXEEXT
 
2975
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2976
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2977
if test "${ac_cv_objext+set}" = set; then
 
2978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2979
else
 
2980
  cat >conftest.$ac_ext <<_ACEOF
 
2981
/* confdefs.h.  */
 
2982
_ACEOF
 
2983
cat confdefs.h >>conftest.$ac_ext
 
2984
cat >>conftest.$ac_ext <<_ACEOF
 
2985
/* end confdefs.h.  */
 
2986
 
 
2987
int
 
2988
main ()
 
2989
{
 
2990
 
 
2991
  ;
 
2992
  return 0;
 
2993
}
 
2994
_ACEOF
 
2995
rm -f conftest.o conftest.obj
 
2996
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2997
  (eval $ac_compile) 2>&5
 
2998
  ac_status=$?
 
2999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3000
  (exit $ac_status); }; then
 
3001
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3002
  case $ac_file in
 
3003
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3004
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3005
       break;;
 
3006
  esac
 
3007
done
 
3008
else
 
3009
  echo "$as_me: failed program was:" >&5
 
3010
sed 's/^/| /' conftest.$ac_ext >&5
 
3011
 
 
3012
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3013
See \`config.log' for more details." >&5
 
3014
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3015
See \`config.log' for more details." >&2;}
 
3016
   { (exit 1); exit 1; }; }
 
3017
fi
 
3018
 
 
3019
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3020
fi
 
3021
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3022
echo "${ECHO_T}$ac_cv_objext" >&6
 
3023
OBJEXT=$ac_cv_objext
 
3024
ac_objext=$OBJEXT
 
3025
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3026
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3027
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3029
else
 
3030
  cat >conftest.$ac_ext <<_ACEOF
 
3031
/* confdefs.h.  */
 
3032
_ACEOF
 
3033
cat confdefs.h >>conftest.$ac_ext
 
3034
cat >>conftest.$ac_ext <<_ACEOF
 
3035
/* end confdefs.h.  */
 
3036
 
 
3037
int
 
3038
main ()
 
3039
{
 
3040
#ifndef __GNUC__
 
3041
       choke me
 
3042
#endif
 
3043
 
 
3044
  ;
 
3045
  return 0;
 
3046
}
 
3047
_ACEOF
 
3048
rm -f conftest.$ac_objext
 
3049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3050
  (eval $ac_compile) 2>conftest.er1
 
3051
  ac_status=$?
 
3052
  grep -v '^ *+' conftest.er1 >conftest.err
 
3053
  rm -f conftest.er1
 
3054
  cat conftest.err >&5
 
3055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3056
  (exit $ac_status); } &&
 
3057
         { ac_try='test -z "$ac_c_werror_flag"
 
3058
                         || test ! -s conftest.err'
 
3059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3060
  (eval $ac_try) 2>&5
 
3061
  ac_status=$?
 
3062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3063
  (exit $ac_status); }; } &&
 
3064
         { ac_try='test -s conftest.$ac_objext'
 
3065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3066
  (eval $ac_try) 2>&5
 
3067
  ac_status=$?
 
3068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3069
  (exit $ac_status); }; }; then
 
3070
  ac_compiler_gnu=yes
 
3071
else
 
3072
  echo "$as_me: failed program was:" >&5
 
3073
sed 's/^/| /' conftest.$ac_ext >&5
 
3074
 
 
3075
ac_compiler_gnu=no
 
3076
fi
 
3077
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3078
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3079
 
 
3080
fi
 
3081
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3082
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3083
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3084
ac_test_CFLAGS=${CFLAGS+set}
 
3085
ac_save_CFLAGS=$CFLAGS
 
3086
CFLAGS="-g"
 
3087
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3088
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3089
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3091
else
 
3092
  cat >conftest.$ac_ext <<_ACEOF
 
3093
/* confdefs.h.  */
 
3094
_ACEOF
 
3095
cat confdefs.h >>conftest.$ac_ext
 
3096
cat >>conftest.$ac_ext <<_ACEOF
 
3097
/* end confdefs.h.  */
 
3098
 
 
3099
int
 
3100
main ()
 
3101
{
 
3102
 
 
3103
  ;
 
3104
  return 0;
 
3105
}
 
3106
_ACEOF
 
3107
rm -f conftest.$ac_objext
 
3108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3109
  (eval $ac_compile) 2>conftest.er1
 
3110
  ac_status=$?
 
3111
  grep -v '^ *+' conftest.er1 >conftest.err
 
3112
  rm -f conftest.er1
 
3113
  cat conftest.err >&5
 
3114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3115
  (exit $ac_status); } &&
 
3116
         { ac_try='test -z "$ac_c_werror_flag"
 
3117
                         || test ! -s conftest.err'
 
3118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3119
  (eval $ac_try) 2>&5
 
3120
  ac_status=$?
 
3121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3122
  (exit $ac_status); }; } &&
 
3123
         { ac_try='test -s conftest.$ac_objext'
 
3124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3125
  (eval $ac_try) 2>&5
 
3126
  ac_status=$?
 
3127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3128
  (exit $ac_status); }; }; then
 
3129
  ac_cv_prog_cc_g=yes
 
3130
else
 
3131
  echo "$as_me: failed program was:" >&5
 
3132
sed 's/^/| /' conftest.$ac_ext >&5
 
3133
 
 
3134
ac_cv_prog_cc_g=no
 
3135
fi
 
3136
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3137
fi
 
3138
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3139
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3140
if test "$ac_test_CFLAGS" = set; then
 
3141
  CFLAGS=$ac_save_CFLAGS
 
3142
elif test $ac_cv_prog_cc_g = yes; then
 
3143
  if test "$GCC" = yes; then
 
3144
    CFLAGS="-g -O2"
 
3145
  else
 
3146
    CFLAGS="-g"
 
3147
  fi
 
3148
else
 
3149
  if test "$GCC" = yes; then
 
3150
    CFLAGS="-O2"
 
3151
  else
 
3152
    CFLAGS=
 
3153
  fi
 
3154
fi
 
3155
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3156
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3157
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3159
else
 
3160
  ac_cv_prog_cc_stdc=no
 
3161
ac_save_CC=$CC
 
3162
cat >conftest.$ac_ext <<_ACEOF
 
3163
/* confdefs.h.  */
 
3164
_ACEOF
 
3165
cat confdefs.h >>conftest.$ac_ext
 
3166
cat >>conftest.$ac_ext <<_ACEOF
 
3167
/* end confdefs.h.  */
 
3168
#include <stdarg.h>
 
3169
#include <stdio.h>
 
3170
#include <sys/types.h>
 
3171
#include <sys/stat.h>
 
3172
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3173
struct buf { int x; };
 
3174
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3175
static char *e (p, i)
 
3176
     char **p;
 
3177
     int i;
 
3178
{
 
3179
  return p[i];
 
3180
}
 
3181
static char *f (char * (*g) (char **, int), char **p, ...)
 
3182
{
 
3183
  char *s;
 
3184
  va_list v;
 
3185
  va_start (v,p);
 
3186
  s = g (p, va_arg (v,int));
 
3187
  va_end (v);
 
3188
  return s;
 
3189
}
 
3190
 
 
3191
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3192
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3193
   These don't provoke an error unfortunately, instead are silently treated
 
3194
   as 'x'.  The following induces an error, until -std1 is added to get
 
3195
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3196
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3197
   that's true only with -std1.  */
 
3198
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3199
 
 
3200
int test (int i, double x);
 
3201
struct s1 {int (*f) (int a);};
 
3202
struct s2 {int (*f) (double a);};
 
3203
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3204
int argc;
 
3205
char **argv;
 
3206
int
 
3207
main ()
 
3208
{
 
3209
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3210
  ;
 
3211
  return 0;
 
3212
}
 
3213
_ACEOF
 
3214
# Don't try gcc -ansi; that turns off useful extensions and
 
3215
# breaks some systems' header files.
 
3216
# AIX                   -qlanglvl=ansi
 
3217
# Ultrix and OSF/1      -std1
 
3218
# HP-UX 10.20 and later -Ae
 
3219
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3220
# SVR4                  -Xc -D__EXTENSIONS__
 
3221
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3222
do
 
3223
  CC="$ac_save_CC $ac_arg"
 
3224
  rm -f conftest.$ac_objext
 
3225
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3226
  (eval $ac_compile) 2>conftest.er1
 
3227
  ac_status=$?
 
3228
  grep -v '^ *+' conftest.er1 >conftest.err
 
3229
  rm -f conftest.er1
 
3230
  cat conftest.err >&5
 
3231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3232
  (exit $ac_status); } &&
 
3233
         { ac_try='test -z "$ac_c_werror_flag"
 
3234
                         || test ! -s conftest.err'
 
3235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3236
  (eval $ac_try) 2>&5
 
3237
  ac_status=$?
 
3238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3239
  (exit $ac_status); }; } &&
 
3240
         { ac_try='test -s conftest.$ac_objext'
 
3241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3242
  (eval $ac_try) 2>&5
 
3243
  ac_status=$?
 
3244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3245
  (exit $ac_status); }; }; then
 
3246
  ac_cv_prog_cc_stdc=$ac_arg
 
3247
break
 
3248
else
 
3249
  echo "$as_me: failed program was:" >&5
 
3250
sed 's/^/| /' conftest.$ac_ext >&5
 
3251
 
 
3252
fi
 
3253
rm -f conftest.err conftest.$ac_objext
 
3254
done
 
3255
rm -f conftest.$ac_ext conftest.$ac_objext
 
3256
CC=$ac_save_CC
 
3257
 
 
3258
fi
 
3259
 
 
3260
case "x$ac_cv_prog_cc_stdc" in
 
3261
  x|xno)
 
3262
    echo "$as_me:$LINENO: result: none needed" >&5
 
3263
echo "${ECHO_T}none needed" >&6 ;;
 
3264
  *)
 
3265
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3266
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3267
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3268
esac
 
3269
 
 
3270
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3271
# in C++ we need to declare it.  In case someone uses the same compiler
 
3272
# for both compiling C and C++ we need to have the C++ compiler decide
 
3273
# the declaration of exit, since it's the most demanding environment.
 
3274
cat >conftest.$ac_ext <<_ACEOF
 
3275
#ifndef __cplusplus
 
3276
  choke me
 
3277
#endif
 
3278
_ACEOF
 
3279
rm -f conftest.$ac_objext
 
3280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3281
  (eval $ac_compile) 2>conftest.er1
 
3282
  ac_status=$?
 
3283
  grep -v '^ *+' conftest.er1 >conftest.err
 
3284
  rm -f conftest.er1
 
3285
  cat conftest.err >&5
 
3286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3287
  (exit $ac_status); } &&
 
3288
         { ac_try='test -z "$ac_c_werror_flag"
 
3289
                         || test ! -s conftest.err'
 
3290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3291
  (eval $ac_try) 2>&5
 
3292
  ac_status=$?
 
3293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3294
  (exit $ac_status); }; } &&
 
3295
         { ac_try='test -s conftest.$ac_objext'
 
3296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3297
  (eval $ac_try) 2>&5
 
3298
  ac_status=$?
 
3299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3300
  (exit $ac_status); }; }; then
 
3301
  for ac_declaration in \
 
3302
   '' \
 
3303
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3304
   'extern "C" void std::exit (int); using std::exit;' \
 
3305
   'extern "C" void exit (int) throw ();' \
 
3306
   'extern "C" void exit (int);' \
 
3307
   'void exit (int);'
 
3308
do
 
3309
  cat >conftest.$ac_ext <<_ACEOF
 
3310
/* confdefs.h.  */
 
3311
_ACEOF
 
3312
cat confdefs.h >>conftest.$ac_ext
 
3313
cat >>conftest.$ac_ext <<_ACEOF
 
3314
/* end confdefs.h.  */
 
3315
$ac_declaration
 
3316
#include <stdlib.h>
 
3317
int
 
3318
main ()
 
3319
{
 
3320
exit (42);
 
3321
  ;
 
3322
  return 0;
 
3323
}
 
3324
_ACEOF
 
3325
rm -f conftest.$ac_objext
 
3326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3327
  (eval $ac_compile) 2>conftest.er1
 
3328
  ac_status=$?
 
3329
  grep -v '^ *+' conftest.er1 >conftest.err
 
3330
  rm -f conftest.er1
 
3331
  cat conftest.err >&5
 
3332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3333
  (exit $ac_status); } &&
 
3334
         { ac_try='test -z "$ac_c_werror_flag"
 
3335
                         || test ! -s conftest.err'
 
3336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3337
  (eval $ac_try) 2>&5
 
3338
  ac_status=$?
 
3339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3340
  (exit $ac_status); }; } &&
 
3341
         { ac_try='test -s conftest.$ac_objext'
 
3342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3343
  (eval $ac_try) 2>&5
 
3344
  ac_status=$?
 
3345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3346
  (exit $ac_status); }; }; then
 
3347
  :
 
3348
else
 
3349
  echo "$as_me: failed program was:" >&5
 
3350
sed 's/^/| /' conftest.$ac_ext >&5
 
3351
 
 
3352
continue
 
3353
fi
 
3354
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3355
  cat >conftest.$ac_ext <<_ACEOF
 
3356
/* confdefs.h.  */
 
3357
_ACEOF
 
3358
cat confdefs.h >>conftest.$ac_ext
 
3359
cat >>conftest.$ac_ext <<_ACEOF
 
3360
/* end confdefs.h.  */
 
3361
$ac_declaration
 
3362
int
 
3363
main ()
 
3364
{
 
3365
exit (42);
 
3366
  ;
 
3367
  return 0;
 
3368
}
 
3369
_ACEOF
 
3370
rm -f conftest.$ac_objext
 
3371
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3372
  (eval $ac_compile) 2>conftest.er1
 
3373
  ac_status=$?
 
3374
  grep -v '^ *+' conftest.er1 >conftest.err
 
3375
  rm -f conftest.er1
 
3376
  cat conftest.err >&5
 
3377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3378
  (exit $ac_status); } &&
 
3379
         { ac_try='test -z "$ac_c_werror_flag"
 
3380
                         || test ! -s conftest.err'
 
3381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3382
  (eval $ac_try) 2>&5
 
3383
  ac_status=$?
 
3384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3385
  (exit $ac_status); }; } &&
 
3386
         { ac_try='test -s conftest.$ac_objext'
 
3387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3388
  (eval $ac_try) 2>&5
 
3389
  ac_status=$?
 
3390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3391
  (exit $ac_status); }; }; then
 
3392
  break
 
3393
else
 
3394
  echo "$as_me: failed program was:" >&5
 
3395
sed 's/^/| /' conftest.$ac_ext >&5
 
3396
 
 
3397
fi
 
3398
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3399
done
 
3400
rm -f conftest*
 
3401
if test -n "$ac_declaration"; then
 
3402
  echo '#ifdef __cplusplus' >>confdefs.h
 
3403
  echo $ac_declaration      >>confdefs.h
 
3404
  echo '#endif'             >>confdefs.h
 
3405
fi
 
3406
 
 
3407
else
 
3408
  echo "$as_me: failed program was:" >&5
 
3409
sed 's/^/| /' conftest.$ac_ext >&5
 
3410
 
 
3411
fi
 
3412
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3413
ac_ext=c
 
3414
ac_cpp='$CPP $CPPFLAGS'
 
3415
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3416
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3417
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3418
 
 
3419
depcc="$CC"   am_compiler_list=
 
3420
 
 
3421
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3422
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3423
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3425
else
 
3426
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3427
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3428
  # making bogus files that we don't know about and never remove.  For
 
3429
  # instance it was reported that on HP-UX the gcc test will end up
 
3430
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3431
  # in D'.
 
3432
  mkdir conftest.dir
 
3433
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3434
  # using a relative directory.
 
3435
  cp "$am_depcomp" conftest.dir
 
3436
  cd conftest.dir
 
3437
  # We will build objects and dependencies in a subdirectory because
 
3438
  # it helps to detect inapplicable dependency modes.  For instance
 
3439
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3440
  # side effect of compilation, but ICC will put the dependencies in
 
3441
  # the current directory while Tru64 will put them in the object
 
3442
  # directory.
 
3443
  mkdir sub
 
3444
 
 
3445
  am_cv_CC_dependencies_compiler_type=none
 
3446
  if test "$am_compiler_list" = ""; then
 
3447
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3448
  fi
 
3449
  for depmode in $am_compiler_list; do
 
3450
    # Setup a source with many dependencies, because some compilers
 
3451
    # like to wrap large dependency lists on column 80 (with \), and
 
3452
    # we should not choose a depcomp mode which is confused by this.
 
3453
    #
 
3454
    # We need to recreate these files for each test, as the compiler may
 
3455
    # overwrite some of them when testing with obscure command lines.
 
3456
    # This happens at least with the AIX C compiler.
 
3457
    : > sub/conftest.c
 
3458
    for i in 1 2 3 4 5 6; do
 
3459
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3460
      : > sub/conftst$i.h
 
3461
    done
 
3462
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3463
 
 
3464
    case $depmode in
 
3465
    nosideeffect)
 
3466
      # after this tag, mechanisms are not by side-effect, so they'll
 
3467
      # only be used when explicitly requested
 
3468
      if test "x$enable_dependency_tracking" = xyes; then
 
3469
        continue
 
3470
      else
 
3471
        break
 
3472
      fi
 
3473
      ;;
 
3474
    none) break ;;
 
3475
    esac
 
3476
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3477
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3478
    # handle `-M -o', and we need to detect this.
 
3479
    if depmode=$depmode \
 
3480
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3481
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3482
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3483
         >/dev/null 2>conftest.err &&
 
3484
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3485
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3486
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3487
      # icc doesn't choke on unknown options, it will just issue warnings
 
3488
      # (even with -Werror).  So we grep stderr for any message
 
3489
      # that says an option was ignored.
 
3490
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3491
        am_cv_CC_dependencies_compiler_type=$depmode
 
3492
        break
 
3493
      fi
 
3494
    fi
 
3495
  done
 
3496
 
 
3497
  cd ..
 
3498
  rm -rf conftest.dir
 
3499
else
 
3500
  am_cv_CC_dependencies_compiler_type=none
 
3501
fi
 
3502
 
 
3503
fi
 
3504
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3505
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3506
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3507
 
 
3508
 
 
3509
 
 
3510
if
 
3511
  test "x$enable_dependency_tracking" != xno \
 
3512
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3513
  am__fastdepCC_TRUE=
 
3514
  am__fastdepCC_FALSE='#'
 
3515
else
 
3516
  am__fastdepCC_TRUE='#'
 
3517
  am__fastdepCC_FALSE=
 
3518
fi
 
3519
 
 
3520
 
 
3521
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3522
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3523
if test "${lt_cv_path_SED+set}" = set; then
 
3524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3525
else
 
3526
  # Loop through the user's path and test for sed and gsed.
 
3527
# Then use that list of sed's as ones to test for truncation.
 
3528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3529
for as_dir in $PATH
 
3530
do
 
3531
  IFS=$as_save_IFS
 
3532
  test -z "$as_dir" && as_dir=.
 
3533
  for lt_ac_prog in sed gsed; do
 
3534
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3535
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3536
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3537
      fi
 
3538
    done
 
3539
  done
 
3540
done
 
3541
lt_ac_max=0
 
3542
lt_ac_count=0
 
3543
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3544
# along with /bin/sed that truncates output.
 
3545
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3546
  test ! -f $lt_ac_sed && break
 
3547
  cat /dev/null > conftest.in
 
3548
  lt_ac_count=0
 
3549
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3550
  # Check for GNU sed and select it if it is found.
 
3551
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3552
    lt_cv_path_SED=$lt_ac_sed
 
3553
    break
 
3554
  fi
 
3555
  while true; do
 
3556
    cat conftest.in conftest.in >conftest.tmp
 
3557
    mv conftest.tmp conftest.in
 
3558
    cp conftest.in conftest.nl
 
3559
    echo >>conftest.nl
 
3560
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3561
    cmp -s conftest.out conftest.nl || break
 
3562
    # 10000 chars as input seems more than enough
 
3563
    test $lt_ac_count -gt 10 && break
 
3564
    lt_ac_count=`expr $lt_ac_count + 1`
 
3565
    if test $lt_ac_count -gt $lt_ac_max; then
 
3566
      lt_ac_max=$lt_ac_count
 
3567
      lt_cv_path_SED=$lt_ac_sed
 
3568
    fi
 
3569
  done
 
3570
done
 
3571
 
 
3572
fi
 
3573
 
 
3574
SED=$lt_cv_path_SED
 
3575
echo "$as_me:$LINENO: result: $SED" >&5
 
3576
echo "${ECHO_T}$SED" >&6
 
3577
 
 
3578
echo "$as_me:$LINENO: checking for egrep" >&5
 
3579
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3580
if test "${ac_cv_prog_egrep+set}" = set; then
 
3581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3582
else
 
3583
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3584
    then ac_cv_prog_egrep='grep -E'
 
3585
    else ac_cv_prog_egrep='egrep'
 
3586
    fi
 
3587
fi
 
3588
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3589
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3590
 EGREP=$ac_cv_prog_egrep
 
3591
 
 
3592
 
1670
3593
 
1671
3594
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1672
3595
if test "${with_gnu_ld+set}" = set; then
1674
3597
  test "$withval" = no || with_gnu_ld=yes
1675
3598
else
1676
3599
  with_gnu_ld=no
1677
 
fi
1678
 
 
 
3600
fi;
1679
3601
ac_prog=ld
1680
 
if test "$ac_cv_prog_gcc" = yes; then
 
3602
if test "$GCC" = yes; then
1681
3603
  # Check if gcc -print-prog-name=ld gives a path.
1682
 
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1683
 
echo "configure:1684: checking for ld used by GCC" >&5
1684
 
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1685
 
  case "$ac_prog" in
 
3604
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3605
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3606
  case $host in
 
3607
  *-*-mingw*)
 
3608
    # gcc leaves a trailing carriage return which upsets mingw
 
3609
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3610
  *)
 
3611
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3612
  esac
 
3613
  case $ac_prog in
1686
3614
    # Accept absolute paths.
1687
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
3615
    [\\/]* | ?:[\\/]*)
1688
3616
      re_direlt='/[^/][^/]*/\.\./'
1689
 
      # Canonicalize the path of ld
1690
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3617
      # Canonicalize the pathname of ld
 
3618
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1691
3619
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1692
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3620
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1693
3621
      done
1694
3622
      test -z "$LD" && LD="$ac_prog"
1695
3623
      ;;
1703
3631
    ;;
1704
3632
  esac
1705
3633
elif test "$with_gnu_ld" = yes; then
1706
 
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1707
 
echo "configure:1708: checking for GNU ld" >&5
 
3634
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3635
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1708
3636
else
1709
 
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1710
 
echo "configure:1711: checking for non-GNU ld" >&5
 
3637
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3638
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1711
3639
fi
1712
 
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1713
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3640
if test "${lt_cv_path_LD+set}" = set; then
 
3641
  echo $ECHO_N "(cached) $ECHO_C" >&6
1714
3642
else
1715
3643
  if test -z "$LD"; then
1716
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
3644
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1717
3645
  for ac_dir in $PATH; do
 
3646
    IFS="$lt_save_ifs"
1718
3647
    test -z "$ac_dir" && ac_dir=.
1719
3648
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1720
 
      ac_cv_path_LD="$ac_dir/$ac_prog"
 
3649
      lt_cv_path_LD="$ac_dir/$ac_prog"
1721
3650
      # Check to see if the program is GNU ld.  I'd rather use --version,
1722
3651
      # but apparently some GNU ld's only accept -v.
1723
3652
      # Break only if it was the GNU/non-GNU ld that we prefer.
1724
 
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3653
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3654
      *GNU* | *'with BFD'*)
1725
3655
        test "$with_gnu_ld" != no && break
1726
 
      else
 
3656
        ;;
 
3657
      *)
1727
3658
        test "$with_gnu_ld" != yes && break
1728
 
      fi
 
3659
        ;;
 
3660
      esac
1729
3661
    fi
1730
3662
  done
1731
 
  IFS="$ac_save_ifs"
 
3663
  IFS="$lt_save_ifs"
1732
3664
else
1733
 
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
 
3665
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1734
3666
fi
1735
3667
fi
1736
3668
 
1737
 
LD="$ac_cv_path_LD"
 
3669
LD="$lt_cv_path_LD"
1738
3670
if test -n "$LD"; then
1739
 
  echo "$ac_t""$LD" 1>&6
 
3671
  echo "$as_me:$LINENO: result: $LD" >&5
 
3672
echo "${ECHO_T}$LD" >&6
1740
3673
else
1741
 
  echo "$ac_t""no" 1>&6
 
3674
  echo "$as_me:$LINENO: result: no" >&5
 
3675
echo "${ECHO_T}no" >&6
1742
3676
fi
1743
 
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1744
 
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1745
 
echo "configure:1746: checking if the linker ($LD) is GNU ld" >&5
1746
 
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1747
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3677
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3678
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3679
   { (exit 1); exit 1; }; }
 
3680
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3681
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3682
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3683
  echo $ECHO_N "(cached) $ECHO_C" >&6
1748
3684
else
1749
3685
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1750
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1751
 
  ac_cv_prog_gnu_ld=yes
 
3686
case `$LD -v 2>&1 </dev/null` in
 
3687
*GNU* | *'with BFD'*)
 
3688
  lt_cv_prog_gnu_ld=yes
 
3689
  ;;
 
3690
*)
 
3691
  lt_cv_prog_gnu_ld=no
 
3692
  ;;
 
3693
esac
 
3694
fi
 
3695
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3696
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3697
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3698
 
 
3699
 
 
3700
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3701
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3702
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3703
  echo $ECHO_N "(cached) $ECHO_C" >&6
1752
3704
else
1753
 
  ac_cv_prog_gnu_ld=no
1754
 
fi
1755
 
fi
1756
 
 
1757
 
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1758
 
 
1759
 
 
1760
 
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1761
 
echo "configure:1762: checking for BSD-compatible nm" >&5
1762
 
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1763
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3705
  lt_cv_ld_reload_flag='-r'
 
3706
fi
 
3707
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3708
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3709
reload_flag=$lt_cv_ld_reload_flag
 
3710
case $reload_flag in
 
3711
"" | " "*) ;;
 
3712
*) reload_flag=" $reload_flag" ;;
 
3713
esac
 
3714
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3715
case $host_os in
 
3716
  darwin*)
 
3717
    if test "$GCC" = yes; then
 
3718
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
3719
    else
 
3720
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3721
    fi
 
3722
    ;;
 
3723
esac
 
3724
 
 
3725
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3726
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3727
if test "${lt_cv_path_NM+set}" = set; then
 
3728
  echo $ECHO_N "(cached) $ECHO_C" >&6
1764
3729
else
1765
3730
  if test -n "$NM"; then
1766
3731
  # Let the user override the test.
1767
 
  ac_cv_path_NM="$NM"
 
3732
  lt_cv_path_NM="$NM"
1768
3733
else
1769
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
3734
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1770
3735
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3736
    IFS="$lt_save_ifs"
1771
3737
    test -z "$ac_dir" && ac_dir=.
1772
 
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
 
3738
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3739
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1773
3740
      # Check to see if the nm accepts a BSD-compat flag.
1774
3741
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1775
3742
      #   nm: unknown option "B" ignored
1776
 
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1777
 
        ac_cv_path_NM="$ac_dir/nm -B"
1778
 
        break
1779
 
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1780
 
        ac_cv_path_NM="$ac_dir/nm -p"
1781
 
        break
1782
 
      else
1783
 
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1784
 
        continue # so that we can try to find one that supports BSD flags
1785
 
      fi
 
3743
      # Tru64's nm complains that /dev/null is an invalid object file
 
3744
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3745
      */dev/null* | *'Invalid file or object type'*)
 
3746
        lt_cv_path_NM="$tmp_nm -B"
 
3747
        break
 
3748
        ;;
 
3749
      *)
 
3750
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3751
        */dev/null*)
 
3752
          lt_cv_path_NM="$tmp_nm -p"
 
3753
          break
 
3754
          ;;
 
3755
        *)
 
3756
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3757
          continue # so that we can try to find one that supports BSD flags
 
3758
          ;;
 
3759
        esac
 
3760
      esac
1786
3761
    fi
1787
3762
  done
1788
 
  IFS="$ac_save_ifs"
1789
 
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1790
 
fi
1791
 
fi
1792
 
 
1793
 
NM="$ac_cv_path_NM"
1794
 
echo "$ac_t""$NM" 1>&6
1795
 
 
1796
 
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1797
 
echo "configure:1798: checking whether ln -s works" >&5
1798
 
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1799
 
  echo $ac_n "(cached) $ac_c" 1>&6
1800
 
else
1801
 
  rm -f conftestdata
1802
 
if ln -s X conftestdata 2>/dev/null
1803
 
then
1804
 
  rm -f conftestdata
1805
 
  ac_cv_prog_LN_S="ln -s"
1806
 
else
1807
 
  ac_cv_prog_LN_S=ln
1808
 
fi
1809
 
fi
1810
 
LN_S="$ac_cv_prog_LN_S"
1811
 
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1812
 
  echo "$ac_t""yes" 1>&6
1813
 
else
1814
 
  echo "$ac_t""no" 1>&6
1815
 
fi
1816
 
 
1817
 
 
1818
 
case "$target" in
1819
 
NONE) lt_target="$host" ;;
1820
 
*) lt_target="$target" ;;
 
3763
  IFS="$lt_save_ifs"
 
3764
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3765
fi
 
3766
fi
 
3767
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3768
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3769
NM="$lt_cv_path_NM"
 
3770
 
 
3771
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3772
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3773
LN_S=$as_ln_s
 
3774
if test "$LN_S" = "ln -s"; then
 
3775
  echo "$as_me:$LINENO: result: yes" >&5
 
3776
echo "${ECHO_T}yes" >&6
 
3777
else
 
3778
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3779
echo "${ECHO_T}no, using $LN_S" >&6
 
3780
fi
 
3781
 
 
3782
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3783
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3784
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3786
else
 
3787
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3788
lt_cv_file_magic_test_file=
 
3789
lt_cv_deplibs_check_method='unknown'
 
3790
# Need to set the preceding variable on all platforms that support
 
3791
# interlibrary dependencies.
 
3792
# 'none' -- dependencies not supported.
 
3793
# `unknown' -- same as none, but documents that we really don't know.
 
3794
# 'pass_all' -- all dependencies passed with no checks.
 
3795
# 'test_compile' -- check by making test program.
 
3796
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3797
# which responds to the $file_magic_cmd with a given extended regex.
 
3798
# If you have `file' or equivalent on your system and you're not sure
 
3799
# whether `pass_all' will *always* work, you probably want this one.
 
3800
 
 
3801
case $host_os in
 
3802
aix4* | aix5*)
 
3803
  lt_cv_deplibs_check_method=pass_all
 
3804
  ;;
 
3805
 
 
3806
beos*)
 
3807
  lt_cv_deplibs_check_method=pass_all
 
3808
  ;;
 
3809
 
 
3810
bsdi[45]*)
 
3811
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3812
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3813
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3814
  ;;
 
3815
 
 
3816
cygwin*)
 
3817
  # func_win32_libid is a shell function defined in ltmain.sh
 
3818
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3819
  lt_cv_file_magic_cmd='func_win32_libid'
 
3820
  ;;
 
3821
 
 
3822
mingw* | pw32*)
 
3823
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3824
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3825
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3826
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3827
  ;;
 
3828
 
 
3829
darwin* | rhapsody*)
 
3830
  lt_cv_deplibs_check_method=pass_all
 
3831
  ;;
 
3832
 
 
3833
freebsd* | kfreebsd*-gnu)
 
3834
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3835
    case $host_cpu in
 
3836
    i*86 )
 
3837
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3838
      # Let's accept both of them until this is cleared up.
 
3839
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3840
      lt_cv_file_magic_cmd=/usr/bin/file
 
3841
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3842
      ;;
 
3843
    esac
 
3844
  else
 
3845
    lt_cv_deplibs_check_method=pass_all
 
3846
  fi
 
3847
  ;;
 
3848
 
 
3849
gnu*)
 
3850
  lt_cv_deplibs_check_method=pass_all
 
3851
  ;;
 
3852
 
 
3853
hpux10.20* | hpux11*)
 
3854
  lt_cv_file_magic_cmd=/usr/bin/file
 
3855
  case "$host_cpu" in
 
3856
  ia64*)
 
3857
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3858
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3859
    ;;
 
3860
  hppa*64*)
 
3861
    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]'
 
3862
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3863
    ;;
 
3864
  *)
 
3865
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3866
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3867
    ;;
 
3868
  esac
 
3869
  ;;
 
3870
 
 
3871
irix5* | irix6* | nonstopux*)
 
3872
  case $LD in
 
3873
  *-32|*"-32 ") libmagic=32-bit;;
 
3874
  *-n32|*"-n32 ") libmagic=N32;;
 
3875
  *-64|*"-64 ") libmagic=64-bit;;
 
3876
  *) libmagic=never-match;;
 
3877
  esac
 
3878
  lt_cv_deplibs_check_method=pass_all
 
3879
  ;;
 
3880
 
 
3881
# This must be Linux ELF.
 
3882
linux*)
 
3883
  case $host_cpu in
 
3884
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
 
3885
    lt_cv_deplibs_check_method=pass_all ;;
 
3886
  *)
 
3887
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3888
    # this will be overridden with pass_all, but let us keep it just in case
 
3889
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
3890
  esac
 
3891
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3892
  lt_cv_deplibs_check_method=pass_all
 
3893
  ;;
 
3894
 
 
3895
netbsd*)
 
3896
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3897
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3898
  else
 
3899
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3900
  fi
 
3901
  ;;
 
3902
 
 
3903
newos6*)
 
3904
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3905
  lt_cv_file_magic_cmd=/usr/bin/file
 
3906
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3907
  ;;
 
3908
 
 
3909
nto-qnx*)
 
3910
  lt_cv_deplibs_check_method=unknown
 
3911
  ;;
 
3912
 
 
3913
openbsd*)
 
3914
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3915
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3916
  else
 
3917
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3918
  fi
 
3919
  ;;
 
3920
 
 
3921
osf3* | osf4* | osf5*)
 
3922
  lt_cv_deplibs_check_method=pass_all
 
3923
  ;;
 
3924
 
 
3925
sco3.2v5*)
 
3926
  lt_cv_deplibs_check_method=pass_all
 
3927
  ;;
 
3928
 
 
3929
solaris*)
 
3930
  lt_cv_deplibs_check_method=pass_all
 
3931
  ;;
 
3932
 
 
3933
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3934
  case $host_vendor in
 
3935
  motorola)
 
3936
    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]'
 
3937
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3938
    ;;
 
3939
  ncr)
 
3940
    lt_cv_deplibs_check_method=pass_all
 
3941
    ;;
 
3942
  sequent)
 
3943
    lt_cv_file_magic_cmd='/bin/file'
 
3944
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3945
    ;;
 
3946
  sni)
 
3947
    lt_cv_file_magic_cmd='/bin/file'
 
3948
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3949
    lt_cv_file_magic_test_file=/lib/libc.so
 
3950
    ;;
 
3951
  siemens)
 
3952
    lt_cv_deplibs_check_method=pass_all
 
3953
    ;;
 
3954
  esac
 
3955
  ;;
 
3956
 
 
3957
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3958
  lt_cv_deplibs_check_method=pass_all
 
3959
  ;;
1821
3960
esac
1822
3961
 
1823
 
# Check for any special flags to pass to ltconfig.
1824
 
#
1825
 
# the following will cause an existing older ltconfig to fail, so
1826
 
# we ignore this at the expense of the cache file... Checking this 
1827
 
# will just take longer ... bummer!
1828
 
#libtool_flags="--cache-file=$cache_file"
1829
 
#
1830
 
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1831
 
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1832
 
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1833
 
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1834
 
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
 
3962
fi
 
3963
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3964
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3965
file_magic_cmd=$lt_cv_file_magic_cmd
 
3966
deplibs_check_method=$lt_cv_deplibs_check_method
 
3967
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3968
 
 
3969
 
 
3970
 
 
3971
 
 
3972
# If no C compiler was specified, use CC.
 
3973
LTCC=${LTCC-"$CC"}
 
3974
 
 
3975
# Allow CC to be a program name with arguments.
 
3976
compiler=$CC
1835
3977
 
1836
3978
 
1837
3979
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1838
3980
if test "${enable_libtool_lock+set}" = set; then
1839
3981
  enableval="$enable_libtool_lock"
1840
 
  :
1841
 
fi
1842
3982
 
1843
 
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1844
 
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
 
3983
fi;
 
3984
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1845
3985
 
1846
3986
# Some flags need to be propagated to the compiler or linker for good
1847
3987
# libtool support.
1848
 
case "$lt_target" in
 
3988
case $host in
 
3989
ia64-*-hpux*)
 
3990
  # Find out which ABI we are using.
 
3991
  echo 'int i;' > conftest.$ac_ext
 
3992
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3993
  (eval $ac_compile) 2>&5
 
3994
  ac_status=$?
 
3995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3996
  (exit $ac_status); }; then
 
3997
    case `/usr/bin/file conftest.$ac_objext` in
 
3998
    *ELF-32*)
 
3999
      HPUX_IA64_MODE="32"
 
4000
      ;;
 
4001
    *ELF-64*)
 
4002
      HPUX_IA64_MODE="64"
 
4003
      ;;
 
4004
    esac
 
4005
  fi
 
4006
  rm -rf conftest*
 
4007
  ;;
1849
4008
*-*-irix6*)
1850
4009
  # Find out which ABI we are using.
1851
 
  echo '#line 1852 "configure"' > conftest.$ac_ext
1852
 
  if { (eval echo configure:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1853
 
    case "`/usr/bin/file conftest.o`" in
 
4010
  echo '#line 4010 "configure"' > conftest.$ac_ext
 
4011
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4012
  (eval $ac_compile) 2>&5
 
4013
  ac_status=$?
 
4014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4015
  (exit $ac_status); }; then
 
4016
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4017
    case `/usr/bin/file conftest.$ac_objext` in
 
4018
    *32-bit*)
 
4019
      LD="${LD-ld} -melf32bsmip"
 
4020
      ;;
 
4021
    *N32*)
 
4022
      LD="${LD-ld} -melf32bmipn32"
 
4023
      ;;
 
4024
    *64-bit*)
 
4025
      LD="${LD-ld} -melf64bmip"
 
4026
      ;;
 
4027
    esac
 
4028
   else
 
4029
    case `/usr/bin/file conftest.$ac_objext` in
1854
4030
    *32-bit*)
1855
4031
      LD="${LD-ld} -32"
1856
4032
      ;;
1861
4037
      LD="${LD-ld} -64"
1862
4038
      ;;
1863
4039
    esac
 
4040
   fi
 
4041
  fi
 
4042
  rm -rf conftest*
 
4043
  ;;
 
4044
 
 
4045
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4046
  # Find out which ABI we are using.
 
4047
  echo 'int i;' > conftest.$ac_ext
 
4048
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4049
  (eval $ac_compile) 2>&5
 
4050
  ac_status=$?
 
4051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4052
  (exit $ac_status); }; then
 
4053
    case "`/usr/bin/file conftest.o`" in
 
4054
    *32-bit*)
 
4055
      case $host in
 
4056
        x86_64-*linux*)
 
4057
          LD="${LD-ld} -m elf_i386"
 
4058
          ;;
 
4059
        ppc64-*linux*|powerpc64-*linux*)
 
4060
          LD="${LD-ld} -m elf32ppclinux"
 
4061
          ;;
 
4062
        s390x-*linux*)
 
4063
          LD="${LD-ld} -m elf_s390"
 
4064
          ;;
 
4065
        sparc64-*linux*)
 
4066
          LD="${LD-ld} -m elf32_sparc"
 
4067
          ;;
 
4068
      esac
 
4069
      ;;
 
4070
    *64-bit*)
 
4071
      case $host in
 
4072
        x86_64-*linux*)
 
4073
          LD="${LD-ld} -m elf_x86_64"
 
4074
          ;;
 
4075
        ppc*-*linux*|powerpc*-*linux*)
 
4076
          LD="${LD-ld} -m elf64ppc"
 
4077
          ;;
 
4078
        s390*-*linux*)
 
4079
          LD="${LD-ld} -m elf64_s390"
 
4080
          ;;
 
4081
        sparc*-*linux*)
 
4082
          LD="${LD-ld} -m elf64_sparc"
 
4083
          ;;
 
4084
      esac
 
4085
      ;;
 
4086
    esac
1864
4087
  fi
1865
4088
  rm -rf conftest*
1866
4089
  ;;
1869
4092
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1870
4093
  SAVE_CFLAGS="$CFLAGS"
1871
4094
  CFLAGS="$CFLAGS -belf"
1872
 
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1873
 
echo "configure:1874: checking whether the C compiler needs -belf" >&5
1874
 
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1875
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4095
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4096
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4097
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4098
  echo $ECHO_N "(cached) $ECHO_C" >&6
1876
4099
else
1877
 
  cat > conftest.$ac_ext <<EOF
1878
 
#line 1879 "configure"
1879
 
#include "confdefs.h"
1880
 
 
1881
 
int main() {
1882
 
 
1883
 
; return 0; }
1884
 
EOF
1885
 
if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1886
 
  rm -rf conftest*
 
4100
  ac_ext=c
 
4101
ac_cpp='$CPP $CPPFLAGS'
 
4102
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4103
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4104
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4105
 
 
4106
     cat >conftest.$ac_ext <<_ACEOF
 
4107
/* confdefs.h.  */
 
4108
_ACEOF
 
4109
cat confdefs.h >>conftest.$ac_ext
 
4110
cat >>conftest.$ac_ext <<_ACEOF
 
4111
/* end confdefs.h.  */
 
4112
 
 
4113
int
 
4114
main ()
 
4115
{
 
4116
 
 
4117
  ;
 
4118
  return 0;
 
4119
}
 
4120
_ACEOF
 
4121
rm -f conftest.$ac_objext conftest$ac_exeext
 
4122
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4123
  (eval $ac_link) 2>conftest.er1
 
4124
  ac_status=$?
 
4125
  grep -v '^ *+' conftest.er1 >conftest.err
 
4126
  rm -f conftest.er1
 
4127
  cat conftest.err >&5
 
4128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4129
  (exit $ac_status); } &&
 
4130
         { ac_try='test -z "$ac_c_werror_flag"
 
4131
                         || test ! -s conftest.err'
 
4132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4133
  (eval $ac_try) 2>&5
 
4134
  ac_status=$?
 
4135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4136
  (exit $ac_status); }; } &&
 
4137
         { ac_try='test -s conftest$ac_exeext'
 
4138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4139
  (eval $ac_try) 2>&5
 
4140
  ac_status=$?
 
4141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4142
  (exit $ac_status); }; }; then
1887
4143
  lt_cv_cc_needs_belf=yes
1888
4144
else
1889
 
  echo "configure: failed program was:" >&5
1890
 
  cat conftest.$ac_ext >&5
1891
 
  rm -rf conftest*
1892
 
  lt_cv_cc_needs_belf=no
1893
 
fi
1894
 
rm -f conftest*
1895
 
fi
1896
 
 
1897
 
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 
4145
  echo "$as_me: failed program was:" >&5
 
4146
sed 's/^/| /' conftest.$ac_ext >&5
 
4147
 
 
4148
lt_cv_cc_needs_belf=no
 
4149
fi
 
4150
rm -f conftest.err conftest.$ac_objext \
 
4151
      conftest$ac_exeext conftest.$ac_ext
 
4152
     ac_ext=c
 
4153
ac_cpp='$CPP $CPPFLAGS'
 
4154
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4155
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4156
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4157
 
 
4158
fi
 
4159
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4160
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1898
4161
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1899
4162
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1900
4163
    CFLAGS="$SAVE_CFLAGS"
1901
4164
  fi
1902
4165
  ;;
1903
4166
 
1904
 
 
1905
 
esac
1906
 
 
1907
 
 
1908
 
# Save cache, so that ltconfig can load it
1909
 
cat > confcache <<\EOF
1910
 
# This file is a shell script that caches the results of configure
1911
 
# tests run on this system so they can be shared between configure
1912
 
# scripts and configure runs.  It is not useful on other systems.
1913
 
# If it contains results you don't want to keep, you may remove or edit it.
1914
 
#
1915
 
# By default, configure uses ./config.cache as the cache file,
1916
 
# creating it if it does not exist already.  You can give configure
1917
 
# the --cache-file=FILE option to use a different cache file; that is
1918
 
# what configure does when it calls configure scripts in
1919
 
# subdirectories, so they share the cache.
1920
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1921
 
# config.status only pays attention to the cache file if you give it the
1922
 
# --recheck option to rerun configure.
1923
 
#
1924
 
EOF
1925
 
# The following way of writing the cache mishandles newlines in values,
1926
 
# but we know of no workaround that is simple, portable, and efficient.
1927
 
# So, don't put newlines in cache variables' values.
1928
 
# Ultrix sh set writes to stderr and can't be redirected directly,
1929
 
# and sets the high bit in the cache file unless we assign to the vars.
1930
 
(set) 2>&1 |
1931
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1932
 
  *ac_space=\ *)
1933
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
1934
 
    # turns \\\\ into \\, and sed turns \\ into \).
1935
 
    sed -n \
1936
 
      -e "s/'/'\\\\''/g" \
1937
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1938
 
    ;;
1939
 
  *)
1940
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1941
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1942
 
    ;;
1943
 
  esac >> confcache
1944
 
if cmp -s $cache_file confcache; then
1945
 
  :
1946
 
else
1947
 
  if test -w $cache_file; then
1948
 
    echo "updating cache $cache_file"
1949
 
    cat confcache > $cache_file
1950
 
  else
1951
 
    echo "not updating unwritable cache $cache_file"
1952
 
  fi
1953
 
fi
1954
 
rm -f confcache
1955
 
 
1956
 
 
1957
 
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1958
 
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1959
 
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1960
 
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1961
 
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1962
 
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1963
 
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1964
 
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1965
 
 
1966
 
# Reload cache, that may have been modified by ltconfig
1967
 
if test -r "$cache_file"; then
1968
 
  echo "loading cache $cache_file"
1969
 
  . $cache_file
1970
 
else
1971
 
  echo "creating cache $cache_file"
1972
 
  > $cache_file
1973
 
fi
 
4167
esac
 
4168
 
 
4169
need_locks="$enable_libtool_lock"
 
4170
 
 
4171
 
 
4172
ac_ext=c
 
4173
ac_cpp='$CPP $CPPFLAGS'
 
4174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4177
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4178
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4179
# On Suns, sometimes $CPP names a directory.
 
4180
if test -n "$CPP" && test -d "$CPP"; then
 
4181
  CPP=
 
4182
fi
 
4183
if test -z "$CPP"; then
 
4184
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4186
else
 
4187
      # Double quotes because CPP needs to be expanded
 
4188
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4189
    do
 
4190
      ac_preproc_ok=false
 
4191
for ac_c_preproc_warn_flag in '' yes
 
4192
do
 
4193
  # Use a header file that comes with gcc, so configuring glibc
 
4194
  # with a fresh cross-compiler works.
 
4195
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4196
  # <limits.h> exists even on freestanding compilers.
 
4197
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4198
  # not just through cpp. "Syntax error" is here to catch this case.
 
4199
  cat >conftest.$ac_ext <<_ACEOF
 
4200
/* confdefs.h.  */
 
4201
_ACEOF
 
4202
cat confdefs.h >>conftest.$ac_ext
 
4203
cat >>conftest.$ac_ext <<_ACEOF
 
4204
/* end confdefs.h.  */
 
4205
#ifdef __STDC__
 
4206
# include <limits.h>
 
4207
#else
 
4208
# include <assert.h>
 
4209
#endif
 
4210
                     Syntax error
 
4211
_ACEOF
 
4212
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4213
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4214
  ac_status=$?
 
4215
  grep -v '^ *+' conftest.er1 >conftest.err
 
4216
  rm -f conftest.er1
 
4217
  cat conftest.err >&5
 
4218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4219
  (exit $ac_status); } >/dev/null; then
 
4220
  if test -s conftest.err; then
 
4221
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4222
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4223
  else
 
4224
    ac_cpp_err=
 
4225
  fi
 
4226
else
 
4227
  ac_cpp_err=yes
 
4228
fi
 
4229
if test -z "$ac_cpp_err"; then
 
4230
  :
 
4231
else
 
4232
  echo "$as_me: failed program was:" >&5
 
4233
sed 's/^/| /' conftest.$ac_ext >&5
 
4234
 
 
4235
  # Broken: fails on valid input.
 
4236
continue
 
4237
fi
 
4238
rm -f conftest.err conftest.$ac_ext
 
4239
 
 
4240
  # OK, works on sane cases.  Now check whether non-existent headers
 
4241
  # can be detected and how.
 
4242
  cat >conftest.$ac_ext <<_ACEOF
 
4243
/* confdefs.h.  */
 
4244
_ACEOF
 
4245
cat confdefs.h >>conftest.$ac_ext
 
4246
cat >>conftest.$ac_ext <<_ACEOF
 
4247
/* end confdefs.h.  */
 
4248
#include <ac_nonexistent.h>
 
4249
_ACEOF
 
4250
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4251
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4252
  ac_status=$?
 
4253
  grep -v '^ *+' conftest.er1 >conftest.err
 
4254
  rm -f conftest.er1
 
4255
  cat conftest.err >&5
 
4256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4257
  (exit $ac_status); } >/dev/null; then
 
4258
  if test -s conftest.err; then
 
4259
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4260
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4261
  else
 
4262
    ac_cpp_err=
 
4263
  fi
 
4264
else
 
4265
  ac_cpp_err=yes
 
4266
fi
 
4267
if test -z "$ac_cpp_err"; then
 
4268
  # Broken: success on invalid input.
 
4269
continue
 
4270
else
 
4271
  echo "$as_me: failed program was:" >&5
 
4272
sed 's/^/| /' conftest.$ac_ext >&5
 
4273
 
 
4274
  # Passes both tests.
 
4275
ac_preproc_ok=:
 
4276
break
 
4277
fi
 
4278
rm -f conftest.err conftest.$ac_ext
 
4279
 
 
4280
done
 
4281
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4282
rm -f conftest.err conftest.$ac_ext
 
4283
if $ac_preproc_ok; then
 
4284
  break
 
4285
fi
 
4286
 
 
4287
    done
 
4288
    ac_cv_prog_CPP=$CPP
 
4289
 
 
4290
fi
 
4291
  CPP=$ac_cv_prog_CPP
 
4292
else
 
4293
  ac_cv_prog_CPP=$CPP
 
4294
fi
 
4295
echo "$as_me:$LINENO: result: $CPP" >&5
 
4296
echo "${ECHO_T}$CPP" >&6
 
4297
ac_preproc_ok=false
 
4298
for ac_c_preproc_warn_flag in '' yes
 
4299
do
 
4300
  # Use a header file that comes with gcc, so configuring glibc
 
4301
  # with a fresh cross-compiler works.
 
4302
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4303
  # <limits.h> exists even on freestanding compilers.
 
4304
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4305
  # not just through cpp. "Syntax error" is here to catch this case.
 
4306
  cat >conftest.$ac_ext <<_ACEOF
 
4307
/* confdefs.h.  */
 
4308
_ACEOF
 
4309
cat confdefs.h >>conftest.$ac_ext
 
4310
cat >>conftest.$ac_ext <<_ACEOF
 
4311
/* end confdefs.h.  */
 
4312
#ifdef __STDC__
 
4313
# include <limits.h>
 
4314
#else
 
4315
# include <assert.h>
 
4316
#endif
 
4317
                     Syntax error
 
4318
_ACEOF
 
4319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4320
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4321
  ac_status=$?
 
4322
  grep -v '^ *+' conftest.er1 >conftest.err
 
4323
  rm -f conftest.er1
 
4324
  cat conftest.err >&5
 
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4326
  (exit $ac_status); } >/dev/null; then
 
4327
  if test -s conftest.err; then
 
4328
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4329
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4330
  else
 
4331
    ac_cpp_err=
 
4332
  fi
 
4333
else
 
4334
  ac_cpp_err=yes
 
4335
fi
 
4336
if test -z "$ac_cpp_err"; then
 
4337
  :
 
4338
else
 
4339
  echo "$as_me: failed program was:" >&5
 
4340
sed 's/^/| /' conftest.$ac_ext >&5
 
4341
 
 
4342
  # Broken: fails on valid input.
 
4343
continue
 
4344
fi
 
4345
rm -f conftest.err conftest.$ac_ext
 
4346
 
 
4347
  # OK, works on sane cases.  Now check whether non-existent headers
 
4348
  # can be detected and how.
 
4349
  cat >conftest.$ac_ext <<_ACEOF
 
4350
/* confdefs.h.  */
 
4351
_ACEOF
 
4352
cat confdefs.h >>conftest.$ac_ext
 
4353
cat >>conftest.$ac_ext <<_ACEOF
 
4354
/* end confdefs.h.  */
 
4355
#include <ac_nonexistent.h>
 
4356
_ACEOF
 
4357
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4358
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4359
  ac_status=$?
 
4360
  grep -v '^ *+' conftest.er1 >conftest.err
 
4361
  rm -f conftest.er1
 
4362
  cat conftest.err >&5
 
4363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4364
  (exit $ac_status); } >/dev/null; then
 
4365
  if test -s conftest.err; then
 
4366
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4367
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4368
  else
 
4369
    ac_cpp_err=
 
4370
  fi
 
4371
else
 
4372
  ac_cpp_err=yes
 
4373
fi
 
4374
if test -z "$ac_cpp_err"; then
 
4375
  # Broken: success on invalid input.
 
4376
continue
 
4377
else
 
4378
  echo "$as_me: failed program was:" >&5
 
4379
sed 's/^/| /' conftest.$ac_ext >&5
 
4380
 
 
4381
  # Passes both tests.
 
4382
ac_preproc_ok=:
 
4383
break
 
4384
fi
 
4385
rm -f conftest.err conftest.$ac_ext
 
4386
 
 
4387
done
 
4388
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4389
rm -f conftest.err conftest.$ac_ext
 
4390
if $ac_preproc_ok; then
 
4391
  :
 
4392
else
 
4393
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4394
See \`config.log' for more details." >&5
 
4395
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4396
See \`config.log' for more details." >&2;}
 
4397
   { (exit 1); exit 1; }; }
 
4398
fi
 
4399
 
 
4400
ac_ext=c
 
4401
ac_cpp='$CPP $CPPFLAGS'
 
4402
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4403
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4404
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4405
 
 
4406
 
 
4407
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4408
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4409
if test "${ac_cv_header_stdc+set}" = set; then
 
4410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4411
else
 
4412
  cat >conftest.$ac_ext <<_ACEOF
 
4413
/* confdefs.h.  */
 
4414
_ACEOF
 
4415
cat confdefs.h >>conftest.$ac_ext
 
4416
cat >>conftest.$ac_ext <<_ACEOF
 
4417
/* end confdefs.h.  */
 
4418
#include <stdlib.h>
 
4419
#include <stdarg.h>
 
4420
#include <string.h>
 
4421
#include <float.h>
 
4422
 
 
4423
int
 
4424
main ()
 
4425
{
 
4426
 
 
4427
  ;
 
4428
  return 0;
 
4429
}
 
4430
_ACEOF
 
4431
rm -f conftest.$ac_objext
 
4432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4433
  (eval $ac_compile) 2>conftest.er1
 
4434
  ac_status=$?
 
4435
  grep -v '^ *+' conftest.er1 >conftest.err
 
4436
  rm -f conftest.er1
 
4437
  cat conftest.err >&5
 
4438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4439
  (exit $ac_status); } &&
 
4440
         { ac_try='test -z "$ac_c_werror_flag"
 
4441
                         || test ! -s conftest.err'
 
4442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4443
  (eval $ac_try) 2>&5
 
4444
  ac_status=$?
 
4445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4446
  (exit $ac_status); }; } &&
 
4447
         { ac_try='test -s conftest.$ac_objext'
 
4448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4449
  (eval $ac_try) 2>&5
 
4450
  ac_status=$?
 
4451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4452
  (exit $ac_status); }; }; then
 
4453
  ac_cv_header_stdc=yes
 
4454
else
 
4455
  echo "$as_me: failed program was:" >&5
 
4456
sed 's/^/| /' conftest.$ac_ext >&5
 
4457
 
 
4458
ac_cv_header_stdc=no
 
4459
fi
 
4460
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4461
 
 
4462
if test $ac_cv_header_stdc = yes; then
 
4463
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4464
  cat >conftest.$ac_ext <<_ACEOF
 
4465
/* confdefs.h.  */
 
4466
_ACEOF
 
4467
cat confdefs.h >>conftest.$ac_ext
 
4468
cat >>conftest.$ac_ext <<_ACEOF
 
4469
/* end confdefs.h.  */
 
4470
#include <string.h>
 
4471
 
 
4472
_ACEOF
 
4473
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4474
  $EGREP "memchr" >/dev/null 2>&1; then
 
4475
  :
 
4476
else
 
4477
  ac_cv_header_stdc=no
 
4478
fi
 
4479
rm -f conftest*
 
4480
 
 
4481
fi
 
4482
 
 
4483
if test $ac_cv_header_stdc = yes; then
 
4484
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4485
  cat >conftest.$ac_ext <<_ACEOF
 
4486
/* confdefs.h.  */
 
4487
_ACEOF
 
4488
cat confdefs.h >>conftest.$ac_ext
 
4489
cat >>conftest.$ac_ext <<_ACEOF
 
4490
/* end confdefs.h.  */
 
4491
#include <stdlib.h>
 
4492
 
 
4493
_ACEOF
 
4494
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4495
  $EGREP "free" >/dev/null 2>&1; then
 
4496
  :
 
4497
else
 
4498
  ac_cv_header_stdc=no
 
4499
fi
 
4500
rm -f conftest*
 
4501
 
 
4502
fi
 
4503
 
 
4504
if test $ac_cv_header_stdc = yes; then
 
4505
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4506
  if test "$cross_compiling" = yes; then
 
4507
  :
 
4508
else
 
4509
  cat >conftest.$ac_ext <<_ACEOF
 
4510
/* confdefs.h.  */
 
4511
_ACEOF
 
4512
cat confdefs.h >>conftest.$ac_ext
 
4513
cat >>conftest.$ac_ext <<_ACEOF
 
4514
/* end confdefs.h.  */
 
4515
#include <ctype.h>
 
4516
#if ((' ' & 0x0FF) == 0x020)
 
4517
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4518
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4519
#else
 
4520
# define ISLOWER(c) \
 
4521
                   (('a' <= (c) && (c) <= 'i') \
 
4522
                     || ('j' <= (c) && (c) <= 'r') \
 
4523
                     || ('s' <= (c) && (c) <= 'z'))
 
4524
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4525
#endif
 
4526
 
 
4527
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4528
int
 
4529
main ()
 
4530
{
 
4531
  int i;
 
4532
  for (i = 0; i < 256; i++)
 
4533
    if (XOR (islower (i), ISLOWER (i))
 
4534
        || toupper (i) != TOUPPER (i))
 
4535
      exit(2);
 
4536
  exit (0);
 
4537
}
 
4538
_ACEOF
 
4539
rm -f conftest$ac_exeext
 
4540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4541
  (eval $ac_link) 2>&5
 
4542
  ac_status=$?
 
4543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4544
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4546
  (eval $ac_try) 2>&5
 
4547
  ac_status=$?
 
4548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4549
  (exit $ac_status); }; }; then
 
4550
  :
 
4551
else
 
4552
  echo "$as_me: program exited with status $ac_status" >&5
 
4553
echo "$as_me: failed program was:" >&5
 
4554
sed 's/^/| /' conftest.$ac_ext >&5
 
4555
 
 
4556
( exit $ac_status )
 
4557
ac_cv_header_stdc=no
 
4558
fi
 
4559
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4560
fi
 
4561
fi
 
4562
fi
 
4563
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4564
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4565
if test $ac_cv_header_stdc = yes; then
 
4566
 
 
4567
cat >>confdefs.h <<\_ACEOF
 
4568
#define STDC_HEADERS 1
 
4569
_ACEOF
 
4570
 
 
4571
fi
 
4572
 
 
4573
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4574
 
 
4575
 
 
4576
 
 
4577
 
 
4578
 
 
4579
 
 
4580
 
 
4581
 
 
4582
 
 
4583
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4584
                  inttypes.h stdint.h unistd.h
 
4585
do
 
4586
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4587
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4588
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4589
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4591
else
 
4592
  cat >conftest.$ac_ext <<_ACEOF
 
4593
/* confdefs.h.  */
 
4594
_ACEOF
 
4595
cat confdefs.h >>conftest.$ac_ext
 
4596
cat >>conftest.$ac_ext <<_ACEOF
 
4597
/* end confdefs.h.  */
 
4598
$ac_includes_default
 
4599
 
 
4600
#include <$ac_header>
 
4601
_ACEOF
 
4602
rm -f conftest.$ac_objext
 
4603
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4604
  (eval $ac_compile) 2>conftest.er1
 
4605
  ac_status=$?
 
4606
  grep -v '^ *+' conftest.er1 >conftest.err
 
4607
  rm -f conftest.er1
 
4608
  cat conftest.err >&5
 
4609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4610
  (exit $ac_status); } &&
 
4611
         { ac_try='test -z "$ac_c_werror_flag"
 
4612
                         || test ! -s conftest.err'
 
4613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4614
  (eval $ac_try) 2>&5
 
4615
  ac_status=$?
 
4616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4617
  (exit $ac_status); }; } &&
 
4618
         { ac_try='test -s conftest.$ac_objext'
 
4619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4620
  (eval $ac_try) 2>&5
 
4621
  ac_status=$?
 
4622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4623
  (exit $ac_status); }; }; then
 
4624
  eval "$as_ac_Header=yes"
 
4625
else
 
4626
  echo "$as_me: failed program was:" >&5
 
4627
sed 's/^/| /' conftest.$ac_ext >&5
 
4628
 
 
4629
eval "$as_ac_Header=no"
 
4630
fi
 
4631
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4632
fi
 
4633
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4634
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4635
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4636
  cat >>confdefs.h <<_ACEOF
 
4637
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4638
_ACEOF
 
4639
 
 
4640
fi
 
4641
 
 
4642
done
 
4643
 
 
4644
 
 
4645
 
 
4646
for ac_header in dlfcn.h
 
4647
do
 
4648
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4649
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4650
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4651
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4652
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4654
fi
 
4655
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4656
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4657
else
 
4658
  # Is the header compilable?
 
4659
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4660
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4661
cat >conftest.$ac_ext <<_ACEOF
 
4662
/* confdefs.h.  */
 
4663
_ACEOF
 
4664
cat confdefs.h >>conftest.$ac_ext
 
4665
cat >>conftest.$ac_ext <<_ACEOF
 
4666
/* end confdefs.h.  */
 
4667
$ac_includes_default
 
4668
#include <$ac_header>
 
4669
_ACEOF
 
4670
rm -f conftest.$ac_objext
 
4671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4672
  (eval $ac_compile) 2>conftest.er1
 
4673
  ac_status=$?
 
4674
  grep -v '^ *+' conftest.er1 >conftest.err
 
4675
  rm -f conftest.er1
 
4676
  cat conftest.err >&5
 
4677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4678
  (exit $ac_status); } &&
 
4679
         { ac_try='test -z "$ac_c_werror_flag"
 
4680
                         || test ! -s conftest.err'
 
4681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4682
  (eval $ac_try) 2>&5
 
4683
  ac_status=$?
 
4684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4685
  (exit $ac_status); }; } &&
 
4686
         { ac_try='test -s conftest.$ac_objext'
 
4687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4688
  (eval $ac_try) 2>&5
 
4689
  ac_status=$?
 
4690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4691
  (exit $ac_status); }; }; then
 
4692
  ac_header_compiler=yes
 
4693
else
 
4694
  echo "$as_me: failed program was:" >&5
 
4695
sed 's/^/| /' conftest.$ac_ext >&5
 
4696
 
 
4697
ac_header_compiler=no
 
4698
fi
 
4699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4700
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4701
echo "${ECHO_T}$ac_header_compiler" >&6
 
4702
 
 
4703
# Is the header present?
 
4704
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4705
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4706
cat >conftest.$ac_ext <<_ACEOF
 
4707
/* confdefs.h.  */
 
4708
_ACEOF
 
4709
cat confdefs.h >>conftest.$ac_ext
 
4710
cat >>conftest.$ac_ext <<_ACEOF
 
4711
/* end confdefs.h.  */
 
4712
#include <$ac_header>
 
4713
_ACEOF
 
4714
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4715
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4716
  ac_status=$?
 
4717
  grep -v '^ *+' conftest.er1 >conftest.err
 
4718
  rm -f conftest.er1
 
4719
  cat conftest.err >&5
 
4720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4721
  (exit $ac_status); } >/dev/null; then
 
4722
  if test -s conftest.err; then
 
4723
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4724
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4725
  else
 
4726
    ac_cpp_err=
 
4727
  fi
 
4728
else
 
4729
  ac_cpp_err=yes
 
4730
fi
 
4731
if test -z "$ac_cpp_err"; then
 
4732
  ac_header_preproc=yes
 
4733
else
 
4734
  echo "$as_me: failed program was:" >&5
 
4735
sed 's/^/| /' conftest.$ac_ext >&5
 
4736
 
 
4737
  ac_header_preproc=no
 
4738
fi
 
4739
rm -f conftest.err conftest.$ac_ext
 
4740
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4741
echo "${ECHO_T}$ac_header_preproc" >&6
 
4742
 
 
4743
# So?  What about this header?
 
4744
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4745
  yes:no: )
 
4746
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4747
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4748
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4749
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4750
    ac_header_preproc=yes
 
4751
    ;;
 
4752
  no:yes:* )
 
4753
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4754
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4755
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4756
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4757
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4758
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4759
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4760
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4761
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4762
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4763
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4764
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4765
    (
 
4766
      cat <<\_ASBOX
 
4767
## -------------------------------------------------------------------- ##
 
4768
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
 
4769
## -------------------------------------------------------------------- ##
 
4770
_ASBOX
 
4771
    ) |
 
4772
      sed "s/^/$as_me: WARNING:     /" >&2
 
4773
    ;;
 
4774
esac
 
4775
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4777
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4779
else
 
4780
  eval "$as_ac_Header=\$ac_header_preproc"
 
4781
fi
 
4782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4784
 
 
4785
fi
 
4786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4787
  cat >>confdefs.h <<_ACEOF
 
4788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4789
_ACEOF
 
4790
 
 
4791
fi
 
4792
 
 
4793
done
 
4794
 
 
4795
ac_ext=cc
 
4796
ac_cpp='$CXXCPP $CPPFLAGS'
 
4797
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4798
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4799
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4800
if test -n "$ac_tool_prefix"; then
 
4801
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4802
  do
 
4803
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4804
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4805
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4806
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4807
if test "${ac_cv_prog_CXX+set}" = set; then
 
4808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4809
else
 
4810
  if test -n "$CXX"; then
 
4811
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4812
else
 
4813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4814
for as_dir in $PATH
 
4815
do
 
4816
  IFS=$as_save_IFS
 
4817
  test -z "$as_dir" && as_dir=.
 
4818
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4819
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4820
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4821
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4822
    break 2
 
4823
  fi
 
4824
done
 
4825
done
 
4826
 
 
4827
fi
 
4828
fi
 
4829
CXX=$ac_cv_prog_CXX
 
4830
if test -n "$CXX"; then
 
4831
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4832
echo "${ECHO_T}$CXX" >&6
 
4833
else
 
4834
  echo "$as_me:$LINENO: result: no" >&5
 
4835
echo "${ECHO_T}no" >&6
 
4836
fi
 
4837
 
 
4838
    test -n "$CXX" && break
 
4839
  done
 
4840
fi
 
4841
if test -z "$CXX"; then
 
4842
  ac_ct_CXX=$CXX
 
4843
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4844
do
 
4845
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4846
set dummy $ac_prog; ac_word=$2
 
4847
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4848
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4849
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4851
else
 
4852
  if test -n "$ac_ct_CXX"; then
 
4853
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4854
else
 
4855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4856
for as_dir in $PATH
 
4857
do
 
4858
  IFS=$as_save_IFS
 
4859
  test -z "$as_dir" && as_dir=.
 
4860
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4861
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4862
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4863
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4864
    break 2
 
4865
  fi
 
4866
done
 
4867
done
 
4868
 
 
4869
fi
 
4870
fi
 
4871
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4872
if test -n "$ac_ct_CXX"; then
 
4873
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4874
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4875
else
 
4876
  echo "$as_me:$LINENO: result: no" >&5
 
4877
echo "${ECHO_T}no" >&6
 
4878
fi
 
4879
 
 
4880
  test -n "$ac_ct_CXX" && break
 
4881
done
 
4882
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4883
 
 
4884
  CXX=$ac_ct_CXX
 
4885
fi
 
4886
 
 
4887
 
 
4888
# Provide some information about the compiler.
 
4889
echo "$as_me:$LINENO:" \
 
4890
     "checking for C++ compiler version" >&5
 
4891
ac_compiler=`set X $ac_compile; echo $2`
 
4892
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4893
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4894
  ac_status=$?
 
4895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4896
  (exit $ac_status); }
 
4897
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4898
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4899
  ac_status=$?
 
4900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4901
  (exit $ac_status); }
 
4902
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4903
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4904
  ac_status=$?
 
4905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4906
  (exit $ac_status); }
 
4907
 
 
4908
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4909
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4910
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4912
else
 
4913
  cat >conftest.$ac_ext <<_ACEOF
 
4914
/* confdefs.h.  */
 
4915
_ACEOF
 
4916
cat confdefs.h >>conftest.$ac_ext
 
4917
cat >>conftest.$ac_ext <<_ACEOF
 
4918
/* end confdefs.h.  */
 
4919
 
 
4920
int
 
4921
main ()
 
4922
{
 
4923
#ifndef __GNUC__
 
4924
       choke me
 
4925
#endif
 
4926
 
 
4927
  ;
 
4928
  return 0;
 
4929
}
 
4930
_ACEOF
 
4931
rm -f conftest.$ac_objext
 
4932
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4933
  (eval $ac_compile) 2>conftest.er1
 
4934
  ac_status=$?
 
4935
  grep -v '^ *+' conftest.er1 >conftest.err
 
4936
  rm -f conftest.er1
 
4937
  cat conftest.err >&5
 
4938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4939
  (exit $ac_status); } &&
 
4940
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4941
                         || test ! -s conftest.err'
 
4942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4943
  (eval $ac_try) 2>&5
 
4944
  ac_status=$?
 
4945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4946
  (exit $ac_status); }; } &&
 
4947
         { ac_try='test -s conftest.$ac_objext'
 
4948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4949
  (eval $ac_try) 2>&5
 
4950
  ac_status=$?
 
4951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4952
  (exit $ac_status); }; }; then
 
4953
  ac_compiler_gnu=yes
 
4954
else
 
4955
  echo "$as_me: failed program was:" >&5
 
4956
sed 's/^/| /' conftest.$ac_ext >&5
 
4957
 
 
4958
ac_compiler_gnu=no
 
4959
fi
 
4960
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4961
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4962
 
 
4963
fi
 
4964
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4965
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4966
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4967
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4968
ac_save_CXXFLAGS=$CXXFLAGS
 
4969
CXXFLAGS="-g"
 
4970
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4971
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4972
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4974
else
 
4975
  cat >conftest.$ac_ext <<_ACEOF
 
4976
/* confdefs.h.  */
 
4977
_ACEOF
 
4978
cat confdefs.h >>conftest.$ac_ext
 
4979
cat >>conftest.$ac_ext <<_ACEOF
 
4980
/* end confdefs.h.  */
 
4981
 
 
4982
int
 
4983
main ()
 
4984
{
 
4985
 
 
4986
  ;
 
4987
  return 0;
 
4988
}
 
4989
_ACEOF
 
4990
rm -f conftest.$ac_objext
 
4991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4992
  (eval $ac_compile) 2>conftest.er1
 
4993
  ac_status=$?
 
4994
  grep -v '^ *+' conftest.er1 >conftest.err
 
4995
  rm -f conftest.er1
 
4996
  cat conftest.err >&5
 
4997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4998
  (exit $ac_status); } &&
 
4999
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5000
                         || test ! -s conftest.err'
 
5001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5002
  (eval $ac_try) 2>&5
 
5003
  ac_status=$?
 
5004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5005
  (exit $ac_status); }; } &&
 
5006
         { ac_try='test -s conftest.$ac_objext'
 
5007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5008
  (eval $ac_try) 2>&5
 
5009
  ac_status=$?
 
5010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5011
  (exit $ac_status); }; }; then
 
5012
  ac_cv_prog_cxx_g=yes
 
5013
else
 
5014
  echo "$as_me: failed program was:" >&5
 
5015
sed 's/^/| /' conftest.$ac_ext >&5
 
5016
 
 
5017
ac_cv_prog_cxx_g=no
 
5018
fi
 
5019
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5020
fi
 
5021
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5022
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5023
if test "$ac_test_CXXFLAGS" = set; then
 
5024
  CXXFLAGS=$ac_save_CXXFLAGS
 
5025
elif test $ac_cv_prog_cxx_g = yes; then
 
5026
  if test "$GXX" = yes; then
 
5027
    CXXFLAGS="-g -O2"
 
5028
  else
 
5029
    CXXFLAGS="-g"
 
5030
  fi
 
5031
else
 
5032
  if test "$GXX" = yes; then
 
5033
    CXXFLAGS="-O2"
 
5034
  else
 
5035
    CXXFLAGS=
 
5036
  fi
 
5037
fi
 
5038
for ac_declaration in \
 
5039
   '' \
 
5040
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5041
   'extern "C" void std::exit (int); using std::exit;' \
 
5042
   'extern "C" void exit (int) throw ();' \
 
5043
   'extern "C" void exit (int);' \
 
5044
   'void exit (int);'
 
5045
do
 
5046
  cat >conftest.$ac_ext <<_ACEOF
 
5047
/* confdefs.h.  */
 
5048
_ACEOF
 
5049
cat confdefs.h >>conftest.$ac_ext
 
5050
cat >>conftest.$ac_ext <<_ACEOF
 
5051
/* end confdefs.h.  */
 
5052
$ac_declaration
 
5053
#include <stdlib.h>
 
5054
int
 
5055
main ()
 
5056
{
 
5057
exit (42);
 
5058
  ;
 
5059
  return 0;
 
5060
}
 
5061
_ACEOF
 
5062
rm -f conftest.$ac_objext
 
5063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5064
  (eval $ac_compile) 2>conftest.er1
 
5065
  ac_status=$?
 
5066
  grep -v '^ *+' conftest.er1 >conftest.err
 
5067
  rm -f conftest.er1
 
5068
  cat conftest.err >&5
 
5069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5070
  (exit $ac_status); } &&
 
5071
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5072
                         || test ! -s conftest.err'
 
5073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5074
  (eval $ac_try) 2>&5
 
5075
  ac_status=$?
 
5076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5077
  (exit $ac_status); }; } &&
 
5078
         { ac_try='test -s conftest.$ac_objext'
 
5079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5080
  (eval $ac_try) 2>&5
 
5081
  ac_status=$?
 
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5083
  (exit $ac_status); }; }; then
 
5084
  :
 
5085
else
 
5086
  echo "$as_me: failed program was:" >&5
 
5087
sed 's/^/| /' conftest.$ac_ext >&5
 
5088
 
 
5089
continue
 
5090
fi
 
5091
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5092
  cat >conftest.$ac_ext <<_ACEOF
 
5093
/* confdefs.h.  */
 
5094
_ACEOF
 
5095
cat confdefs.h >>conftest.$ac_ext
 
5096
cat >>conftest.$ac_ext <<_ACEOF
 
5097
/* end confdefs.h.  */
 
5098
$ac_declaration
 
5099
int
 
5100
main ()
 
5101
{
 
5102
exit (42);
 
5103
  ;
 
5104
  return 0;
 
5105
}
 
5106
_ACEOF
 
5107
rm -f conftest.$ac_objext
 
5108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5109
  (eval $ac_compile) 2>conftest.er1
 
5110
  ac_status=$?
 
5111
  grep -v '^ *+' conftest.er1 >conftest.err
 
5112
  rm -f conftest.er1
 
5113
  cat conftest.err >&5
 
5114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5115
  (exit $ac_status); } &&
 
5116
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5117
                         || test ! -s conftest.err'
 
5118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5119
  (eval $ac_try) 2>&5
 
5120
  ac_status=$?
 
5121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5122
  (exit $ac_status); }; } &&
 
5123
         { ac_try='test -s conftest.$ac_objext'
 
5124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5125
  (eval $ac_try) 2>&5
 
5126
  ac_status=$?
 
5127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5128
  (exit $ac_status); }; }; then
 
5129
  break
 
5130
else
 
5131
  echo "$as_me: failed program was:" >&5
 
5132
sed 's/^/| /' conftest.$ac_ext >&5
 
5133
 
 
5134
fi
 
5135
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5136
done
 
5137
rm -f conftest*
 
5138
if test -n "$ac_declaration"; then
 
5139
  echo '#ifdef __cplusplus' >>confdefs.h
 
5140
  echo $ac_declaration      >>confdefs.h
 
5141
  echo '#endif'             >>confdefs.h
 
5142
fi
 
5143
 
 
5144
ac_ext=cc
 
5145
ac_cpp='$CXXCPP $CPPFLAGS'
 
5146
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5147
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5148
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5149
 
 
5150
depcc="$CXX"  am_compiler_list=
 
5151
 
 
5152
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5153
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5154
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5156
else
 
5157
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5158
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5159
  # making bogus files that we don't know about and never remove.  For
 
5160
  # instance it was reported that on HP-UX the gcc test will end up
 
5161
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5162
  # in D'.
 
5163
  mkdir conftest.dir
 
5164
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5165
  # using a relative directory.
 
5166
  cp "$am_depcomp" conftest.dir
 
5167
  cd conftest.dir
 
5168
  # We will build objects and dependencies in a subdirectory because
 
5169
  # it helps to detect inapplicable dependency modes.  For instance
 
5170
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5171
  # side effect of compilation, but ICC will put the dependencies in
 
5172
  # the current directory while Tru64 will put them in the object
 
5173
  # directory.
 
5174
  mkdir sub
 
5175
 
 
5176
  am_cv_CXX_dependencies_compiler_type=none
 
5177
  if test "$am_compiler_list" = ""; then
 
5178
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5179
  fi
 
5180
  for depmode in $am_compiler_list; do
 
5181
    # Setup a source with many dependencies, because some compilers
 
5182
    # like to wrap large dependency lists on column 80 (with \), and
 
5183
    # we should not choose a depcomp mode which is confused by this.
 
5184
    #
 
5185
    # We need to recreate these files for each test, as the compiler may
 
5186
    # overwrite some of them when testing with obscure command lines.
 
5187
    # This happens at least with the AIX C compiler.
 
5188
    : > sub/conftest.c
 
5189
    for i in 1 2 3 4 5 6; do
 
5190
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5191
      : > sub/conftst$i.h
 
5192
    done
 
5193
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5194
 
 
5195
    case $depmode in
 
5196
    nosideeffect)
 
5197
      # after this tag, mechanisms are not by side-effect, so they'll
 
5198
      # only be used when explicitly requested
 
5199
      if test "x$enable_dependency_tracking" = xyes; then
 
5200
        continue
 
5201
      else
 
5202
        break
 
5203
      fi
 
5204
      ;;
 
5205
    none) break ;;
 
5206
    esac
 
5207
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5208
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5209
    # handle `-M -o', and we need to detect this.
 
5210
    if depmode=$depmode \
 
5211
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5212
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5213
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5214
         >/dev/null 2>conftest.err &&
 
5215
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5216
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5217
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5218
      # icc doesn't choke on unknown options, it will just issue warnings
 
5219
      # (even with -Werror).  So we grep stderr for any message
 
5220
      # that says an option was ignored.
 
5221
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
5222
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5223
        break
 
5224
      fi
 
5225
    fi
 
5226
  done
 
5227
 
 
5228
  cd ..
 
5229
  rm -rf conftest.dir
 
5230
else
 
5231
  am_cv_CXX_dependencies_compiler_type=none
 
5232
fi
 
5233
 
 
5234
fi
 
5235
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5236
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5237
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5238
 
 
5239
 
 
5240
 
 
5241
if
 
5242
  test "x$enable_dependency_tracking" != xno \
 
5243
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5244
  am__fastdepCXX_TRUE=
 
5245
  am__fastdepCXX_FALSE='#'
 
5246
else
 
5247
  am__fastdepCXX_TRUE='#'
 
5248
  am__fastdepCXX_FALSE=
 
5249
fi
 
5250
 
 
5251
 
 
5252
ac_ext=cc
 
5253
ac_cpp='$CXXCPP $CPPFLAGS'
 
5254
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5255
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5256
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5257
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5258
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5259
if test -z "$CXXCPP"; then
 
5260
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5262
else
 
5263
      # Double quotes because CXXCPP needs to be expanded
 
5264
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5265
    do
 
5266
      ac_preproc_ok=false
 
5267
for ac_cxx_preproc_warn_flag in '' yes
 
5268
do
 
5269
  # Use a header file that comes with gcc, so configuring glibc
 
5270
  # with a fresh cross-compiler works.
 
5271
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5272
  # <limits.h> exists even on freestanding compilers.
 
5273
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5274
  # not just through cpp. "Syntax error" is here to catch this case.
 
5275
  cat >conftest.$ac_ext <<_ACEOF
 
5276
/* confdefs.h.  */
 
5277
_ACEOF
 
5278
cat confdefs.h >>conftest.$ac_ext
 
5279
cat >>conftest.$ac_ext <<_ACEOF
 
5280
/* end confdefs.h.  */
 
5281
#ifdef __STDC__
 
5282
# include <limits.h>
 
5283
#else
 
5284
# include <assert.h>
 
5285
#endif
 
5286
                     Syntax error
 
5287
_ACEOF
 
5288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5289
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5290
  ac_status=$?
 
5291
  grep -v '^ *+' conftest.er1 >conftest.err
 
5292
  rm -f conftest.er1
 
5293
  cat conftest.err >&5
 
5294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5295
  (exit $ac_status); } >/dev/null; then
 
5296
  if test -s conftest.err; then
 
5297
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5298
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5299
  else
 
5300
    ac_cpp_err=
 
5301
  fi
 
5302
else
 
5303
  ac_cpp_err=yes
 
5304
fi
 
5305
if test -z "$ac_cpp_err"; then
 
5306
  :
 
5307
else
 
5308
  echo "$as_me: failed program was:" >&5
 
5309
sed 's/^/| /' conftest.$ac_ext >&5
 
5310
 
 
5311
  # Broken: fails on valid input.
 
5312
continue
 
5313
fi
 
5314
rm -f conftest.err conftest.$ac_ext
 
5315
 
 
5316
  # OK, works on sane cases.  Now check whether non-existent headers
 
5317
  # can be detected and how.
 
5318
  cat >conftest.$ac_ext <<_ACEOF
 
5319
/* confdefs.h.  */
 
5320
_ACEOF
 
5321
cat confdefs.h >>conftest.$ac_ext
 
5322
cat >>conftest.$ac_ext <<_ACEOF
 
5323
/* end confdefs.h.  */
 
5324
#include <ac_nonexistent.h>
 
5325
_ACEOF
 
5326
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5327
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5328
  ac_status=$?
 
5329
  grep -v '^ *+' conftest.er1 >conftest.err
 
5330
  rm -f conftest.er1
 
5331
  cat conftest.err >&5
 
5332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5333
  (exit $ac_status); } >/dev/null; then
 
5334
  if test -s conftest.err; then
 
5335
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5336
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5337
  else
 
5338
    ac_cpp_err=
 
5339
  fi
 
5340
else
 
5341
  ac_cpp_err=yes
 
5342
fi
 
5343
if test -z "$ac_cpp_err"; then
 
5344
  # Broken: success on invalid input.
 
5345
continue
 
5346
else
 
5347
  echo "$as_me: failed program was:" >&5
 
5348
sed 's/^/| /' conftest.$ac_ext >&5
 
5349
 
 
5350
  # Passes both tests.
 
5351
ac_preproc_ok=:
 
5352
break
 
5353
fi
 
5354
rm -f conftest.err conftest.$ac_ext
 
5355
 
 
5356
done
 
5357
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5358
rm -f conftest.err conftest.$ac_ext
 
5359
if $ac_preproc_ok; then
 
5360
  break
 
5361
fi
 
5362
 
 
5363
    done
 
5364
    ac_cv_prog_CXXCPP=$CXXCPP
 
5365
 
 
5366
fi
 
5367
  CXXCPP=$ac_cv_prog_CXXCPP
 
5368
else
 
5369
  ac_cv_prog_CXXCPP=$CXXCPP
 
5370
fi
 
5371
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5372
echo "${ECHO_T}$CXXCPP" >&6
 
5373
ac_preproc_ok=false
 
5374
for ac_cxx_preproc_warn_flag in '' yes
 
5375
do
 
5376
  # Use a header file that comes with gcc, so configuring glibc
 
5377
  # with a fresh cross-compiler works.
 
5378
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5379
  # <limits.h> exists even on freestanding compilers.
 
5380
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5381
  # not just through cpp. "Syntax error" is here to catch this case.
 
5382
  cat >conftest.$ac_ext <<_ACEOF
 
5383
/* confdefs.h.  */
 
5384
_ACEOF
 
5385
cat confdefs.h >>conftest.$ac_ext
 
5386
cat >>conftest.$ac_ext <<_ACEOF
 
5387
/* end confdefs.h.  */
 
5388
#ifdef __STDC__
 
5389
# include <limits.h>
 
5390
#else
 
5391
# include <assert.h>
 
5392
#endif
 
5393
                     Syntax error
 
5394
_ACEOF
 
5395
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5396
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5397
  ac_status=$?
 
5398
  grep -v '^ *+' conftest.er1 >conftest.err
 
5399
  rm -f conftest.er1
 
5400
  cat conftest.err >&5
 
5401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5402
  (exit $ac_status); } >/dev/null; then
 
5403
  if test -s conftest.err; then
 
5404
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5405
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5406
  else
 
5407
    ac_cpp_err=
 
5408
  fi
 
5409
else
 
5410
  ac_cpp_err=yes
 
5411
fi
 
5412
if test -z "$ac_cpp_err"; then
 
5413
  :
 
5414
else
 
5415
  echo "$as_me: failed program was:" >&5
 
5416
sed 's/^/| /' conftest.$ac_ext >&5
 
5417
 
 
5418
  # Broken: fails on valid input.
 
5419
continue
 
5420
fi
 
5421
rm -f conftest.err conftest.$ac_ext
 
5422
 
 
5423
  # OK, works on sane cases.  Now check whether non-existent headers
 
5424
  # can be detected and how.
 
5425
  cat >conftest.$ac_ext <<_ACEOF
 
5426
/* confdefs.h.  */
 
5427
_ACEOF
 
5428
cat confdefs.h >>conftest.$ac_ext
 
5429
cat >>conftest.$ac_ext <<_ACEOF
 
5430
/* end confdefs.h.  */
 
5431
#include <ac_nonexistent.h>
 
5432
_ACEOF
 
5433
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5434
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5435
  ac_status=$?
 
5436
  grep -v '^ *+' conftest.er1 >conftest.err
 
5437
  rm -f conftest.er1
 
5438
  cat conftest.err >&5
 
5439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5440
  (exit $ac_status); } >/dev/null; then
 
5441
  if test -s conftest.err; then
 
5442
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5443
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5444
  else
 
5445
    ac_cpp_err=
 
5446
  fi
 
5447
else
 
5448
  ac_cpp_err=yes
 
5449
fi
 
5450
if test -z "$ac_cpp_err"; then
 
5451
  # Broken: success on invalid input.
 
5452
continue
 
5453
else
 
5454
  echo "$as_me: failed program was:" >&5
 
5455
sed 's/^/| /' conftest.$ac_ext >&5
 
5456
 
 
5457
  # Passes both tests.
 
5458
ac_preproc_ok=:
 
5459
break
 
5460
fi
 
5461
rm -f conftest.err conftest.$ac_ext
 
5462
 
 
5463
done
 
5464
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5465
rm -f conftest.err conftest.$ac_ext
 
5466
if $ac_preproc_ok; then
 
5467
  :
 
5468
else
 
5469
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5470
See \`config.log' for more details." >&5
 
5471
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5472
See \`config.log' for more details." >&2;}
 
5473
   { (exit 1); exit 1; }; }
 
5474
fi
 
5475
 
 
5476
ac_ext=cc
 
5477
ac_cpp='$CXXCPP $CPPFLAGS'
 
5478
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5479
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5480
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5481
 
 
5482
 
 
5483
ac_ext=f
 
5484
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5485
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5486
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5487
if test -n "$ac_tool_prefix"; then
 
5488
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5489
  do
 
5490
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5491
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5492
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5494
if test "${ac_cv_prog_F77+set}" = set; then
 
5495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5496
else
 
5497
  if test -n "$F77"; then
 
5498
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5499
else
 
5500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5501
for as_dir in $PATH
 
5502
do
 
5503
  IFS=$as_save_IFS
 
5504
  test -z "$as_dir" && as_dir=.
 
5505
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5506
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5507
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5508
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5509
    break 2
 
5510
  fi
 
5511
done
 
5512
done
 
5513
 
 
5514
fi
 
5515
fi
 
5516
F77=$ac_cv_prog_F77
 
5517
if test -n "$F77"; then
 
5518
  echo "$as_me:$LINENO: result: $F77" >&5
 
5519
echo "${ECHO_T}$F77" >&6
 
5520
else
 
5521
  echo "$as_me:$LINENO: result: no" >&5
 
5522
echo "${ECHO_T}no" >&6
 
5523
fi
 
5524
 
 
5525
    test -n "$F77" && break
 
5526
  done
 
5527
fi
 
5528
if test -z "$F77"; then
 
5529
  ac_ct_F77=$F77
 
5530
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5531
do
 
5532
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5533
set dummy $ac_prog; ac_word=$2
 
5534
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5535
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5536
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5538
else
 
5539
  if test -n "$ac_ct_F77"; then
 
5540
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5541
else
 
5542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5543
for as_dir in $PATH
 
5544
do
 
5545
  IFS=$as_save_IFS
 
5546
  test -z "$as_dir" && as_dir=.
 
5547
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5548
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5549
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5550
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5551
    break 2
 
5552
  fi
 
5553
done
 
5554
done
 
5555
 
 
5556
fi
 
5557
fi
 
5558
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5559
if test -n "$ac_ct_F77"; then
 
5560
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5561
echo "${ECHO_T}$ac_ct_F77" >&6
 
5562
else
 
5563
  echo "$as_me:$LINENO: result: no" >&5
 
5564
echo "${ECHO_T}no" >&6
 
5565
fi
 
5566
 
 
5567
  test -n "$ac_ct_F77" && break
 
5568
done
 
5569
 
 
5570
  F77=$ac_ct_F77
 
5571
fi
 
5572
 
 
5573
 
 
5574
# Provide some information about the compiler.
 
5575
echo "$as_me:5575:" \
 
5576
     "checking for Fortran 77 compiler version" >&5
 
5577
ac_compiler=`set X $ac_compile; echo $2`
 
5578
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5579
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5580
  ac_status=$?
 
5581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5582
  (exit $ac_status); }
 
5583
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5584
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5585
  ac_status=$?
 
5586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5587
  (exit $ac_status); }
 
5588
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5589
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5590
  ac_status=$?
 
5591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5592
  (exit $ac_status); }
 
5593
rm -f a.out
 
5594
 
 
5595
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5596
# input file.  (Note that this only needs to work for GNU compilers.)
 
5597
ac_save_ext=$ac_ext
 
5598
ac_ext=F
 
5599
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5600
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5601
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5603
else
 
5604
  cat >conftest.$ac_ext <<_ACEOF
 
5605
      program main
 
5606
#ifndef __GNUC__
 
5607
       choke me
 
5608
#endif
 
5609
 
 
5610
      end
 
5611
_ACEOF
 
5612
rm -f conftest.$ac_objext
 
5613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5614
  (eval $ac_compile) 2>conftest.er1
 
5615
  ac_status=$?
 
5616
  grep -v '^ *+' conftest.er1 >conftest.err
 
5617
  rm -f conftest.er1
 
5618
  cat conftest.err >&5
 
5619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5620
  (exit $ac_status); } &&
 
5621
         { ac_try='test -z "$ac_f77_werror_flag"
 
5622
                         || test ! -s conftest.err'
 
5623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5624
  (eval $ac_try) 2>&5
 
5625
  ac_status=$?
 
5626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5627
  (exit $ac_status); }; } &&
 
5628
         { ac_try='test -s conftest.$ac_objext'
 
5629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5630
  (eval $ac_try) 2>&5
 
5631
  ac_status=$?
 
5632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5633
  (exit $ac_status); }; }; then
 
5634
  ac_compiler_gnu=yes
 
5635
else
 
5636
  echo "$as_me: failed program was:" >&5
 
5637
sed 's/^/| /' conftest.$ac_ext >&5
 
5638
 
 
5639
ac_compiler_gnu=no
 
5640
fi
 
5641
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5642
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5643
 
 
5644
fi
 
5645
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5646
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5647
ac_ext=$ac_save_ext
 
5648
ac_test_FFLAGS=${FFLAGS+set}
 
5649
ac_save_FFLAGS=$FFLAGS
 
5650
FFLAGS=
 
5651
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5652
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5653
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5655
else
 
5656
  FFLAGS=-g
 
5657
cat >conftest.$ac_ext <<_ACEOF
 
5658
      program main
 
5659
 
 
5660
      end
 
5661
_ACEOF
 
5662
rm -f conftest.$ac_objext
 
5663
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5664
  (eval $ac_compile) 2>conftest.er1
 
5665
  ac_status=$?
 
5666
  grep -v '^ *+' conftest.er1 >conftest.err
 
5667
  rm -f conftest.er1
 
5668
  cat conftest.err >&5
 
5669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5670
  (exit $ac_status); } &&
 
5671
         { ac_try='test -z "$ac_f77_werror_flag"
 
5672
                         || test ! -s conftest.err'
 
5673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5674
  (eval $ac_try) 2>&5
 
5675
  ac_status=$?
 
5676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5677
  (exit $ac_status); }; } &&
 
5678
         { ac_try='test -s conftest.$ac_objext'
 
5679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5680
  (eval $ac_try) 2>&5
 
5681
  ac_status=$?
 
5682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5683
  (exit $ac_status); }; }; then
 
5684
  ac_cv_prog_f77_g=yes
 
5685
else
 
5686
  echo "$as_me: failed program was:" >&5
 
5687
sed 's/^/| /' conftest.$ac_ext >&5
 
5688
 
 
5689
ac_cv_prog_f77_g=no
 
5690
fi
 
5691
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5692
 
 
5693
fi
 
5694
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5695
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5696
if test "$ac_test_FFLAGS" = set; then
 
5697
  FFLAGS=$ac_save_FFLAGS
 
5698
elif test $ac_cv_prog_f77_g = yes; then
 
5699
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5700
    FFLAGS="-g -O2"
 
5701
  else
 
5702
    FFLAGS="-g"
 
5703
  fi
 
5704
else
 
5705
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5706
    FFLAGS="-O2"
 
5707
  else
 
5708
    FFLAGS=
 
5709
  fi
 
5710
fi
 
5711
 
 
5712
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5713
ac_ext=c
 
5714
ac_cpp='$CPP $CPPFLAGS'
 
5715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5718
 
 
5719
 
 
5720
 
 
5721
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5722
 
 
5723
# find the maximum length of command line arguments
 
5724
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5725
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5726
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5728
else
 
5729
    i=0
 
5730
  teststring="ABCD"
 
5731
 
 
5732
  case $build_os in
 
5733
  msdosdjgpp*)
 
5734
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5735
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5736
    # during glob expansion).  Even if it were fixed, the result of this
 
5737
    # check would be larger than it should be.
 
5738
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5739
    ;;
 
5740
 
 
5741
  gnu*)
 
5742
    # Under GNU Hurd, this test is not required because there is
 
5743
    # no limit to the length of command line arguments.
 
5744
    # Libtool will interpret -1 as no limit whatsoever
 
5745
    lt_cv_sys_max_cmd_len=-1;
 
5746
    ;;
 
5747
 
 
5748
  cygwin* | mingw*)
 
5749
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5750
    # about 5 minutes as the teststring grows exponentially.
 
5751
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5752
    # you end up with a "frozen" computer, even though with patience
 
5753
    # the test eventually succeeds (with a max line length of 256k).
 
5754
    # Instead, let's just punt: use the minimum linelength reported by
 
5755
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5756
    lt_cv_sys_max_cmd_len=8192;
 
5757
    ;;
 
5758
 
 
5759
  amigaos*)
 
5760
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5761
    # So we just punt and use a minimum line length of 8192.
 
5762
    lt_cv_sys_max_cmd_len=8192;
 
5763
    ;;
 
5764
 
 
5765
  netbsd* | freebsd* | openbsd* | darwin* )
 
5766
    # This has been around since 386BSD, at least.  Likely further.
 
5767
    if test -x /sbin/sysctl; then
 
5768
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5769
    elif test -x /usr/sbin/sysctl; then
 
5770
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5771
    else
 
5772
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
5773
    fi
 
5774
    # And add a safety zone
 
5775
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5776
    ;;
 
5777
 
 
5778
 *)
 
5779
    # If test is not a shell built-in, we'll probably end up computing a
 
5780
    # maximum length that is only half of the actual maximum length, but
 
5781
    # we can't tell.
 
5782
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5783
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5784
               = "XX$teststring") >/dev/null 2>&1 &&
 
5785
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5786
            lt_cv_sys_max_cmd_len=$new_result &&
 
5787
            test $i != 17 # 1/2 MB should be enough
 
5788
    do
 
5789
      i=`expr $i + 1`
 
5790
      teststring=$teststring$teststring
 
5791
    done
 
5792
    teststring=
 
5793
    # Add a significant safety factor because C++ compilers can tack on massive
 
5794
    # amounts of additional arguments before passing them to the linker.
 
5795
    # It appears as though 1/2 is a usable value.
 
5796
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5797
    ;;
 
5798
  esac
 
5799
 
 
5800
fi
 
5801
 
 
5802
if test -n $lt_cv_sys_max_cmd_len ; then
 
5803
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5804
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5805
else
 
5806
  echo "$as_me:$LINENO: result: none" >&5
 
5807
echo "${ECHO_T}none" >&6
 
5808
fi
 
5809
 
 
5810
 
 
5811
 
 
5812
 
 
5813
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5814
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5815
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5816
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5818
else
 
5819
 
 
5820
# These are sane defaults that work on at least a few old systems.
 
5821
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5822
 
 
5823
# Character class describing NM global symbol codes.
 
5824
symcode='[BCDEGRST]'
 
5825
 
 
5826
# Regexp to match symbols that can be accessed directly from C.
 
5827
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5828
 
 
5829
# Transform the above into a raw symbol and a C symbol.
 
5830
symxfrm='\1 \2\3 \3'
 
5831
 
 
5832
# Transform an extracted symbol line into a proper C declaration
 
5833
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5834
 
 
5835
# Transform an extracted symbol line into symbol name and symbol address
 
5836
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'"
 
5837
 
 
5838
# Define system-specific variables.
 
5839
case $host_os in
 
5840
aix*)
 
5841
  symcode='[BCDT]'
 
5842
  ;;
 
5843
cygwin* | mingw* | pw32*)
 
5844
  symcode='[ABCDGISTW]'
 
5845
  ;;
 
5846
hpux*) # Its linker distinguishes data from code symbols
 
5847
  if test "$host_cpu" = ia64; then
 
5848
    symcode='[ABCDEGRST]'
 
5849
  fi
 
5850
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5851
  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'"
 
5852
  ;;
 
5853
irix* | nonstopux*)
 
5854
  symcode='[BCDEGRST]'
 
5855
  ;;
 
5856
osf*)
 
5857
  symcode='[BCDEGQRST]'
 
5858
  ;;
 
5859
solaris* | sysv5*)
 
5860
  symcode='[BDRT]'
 
5861
  ;;
 
5862
sysv4)
 
5863
  symcode='[DFNSTU]'
 
5864
  ;;
 
5865
esac
 
5866
 
 
5867
# Handle CRLF in mingw tool chain
 
5868
opt_cr=
 
5869
case $build_os in
 
5870
mingw*)
 
5871
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5872
  ;;
 
5873
esac
 
5874
 
 
5875
# If we're using GNU nm, then use its standard symbol codes.
 
5876
case `$NM -V 2>&1` in
 
5877
*GNU* | *'with BFD'*)
 
5878
  symcode='[ABCDGIRSTW]' ;;
 
5879
esac
 
5880
 
 
5881
# Try without a prefix undercore, then with it.
 
5882
for ac_symprfx in "" "_"; do
 
5883
 
 
5884
  # Write the raw and C identifiers.
 
5885
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5886
 
 
5887
  # Check to see that the pipe works correctly.
 
5888
  pipe_works=no
 
5889
 
 
5890
  rm -f conftest*
 
5891
  cat > conftest.$ac_ext <<EOF
 
5892
#ifdef __cplusplus
 
5893
extern "C" {
 
5894
#endif
 
5895
char nm_test_var;
 
5896
void nm_test_func(){}
 
5897
#ifdef __cplusplus
 
5898
}
 
5899
#endif
 
5900
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5901
EOF
 
5902
 
 
5903
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5904
  (eval $ac_compile) 2>&5
 
5905
  ac_status=$?
 
5906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5907
  (exit $ac_status); }; then
 
5908
    # Now try to grab the symbols.
 
5909
    nlist=conftest.nm
 
5910
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5911
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5912
  ac_status=$?
 
5913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5914
  (exit $ac_status); } && test -s "$nlist"; then
 
5915
      # Try sorting and uniquifying the output.
 
5916
      if sort "$nlist" | uniq > "$nlist"T; then
 
5917
        mv -f "$nlist"T "$nlist"
 
5918
      else
 
5919
        rm -f "$nlist"T
 
5920
      fi
 
5921
 
 
5922
      # Make sure that we snagged all the symbols we need.
 
5923
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5924
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5925
          cat <<EOF > conftest.$ac_ext
 
5926
#ifdef __cplusplus
 
5927
extern "C" {
 
5928
#endif
 
5929
 
 
5930
EOF
 
5931
          # Now generate the symbol file.
 
5932
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5933
 
 
5934
          cat <<EOF >> conftest.$ac_ext
 
5935
#if defined (__STDC__) && __STDC__
 
5936
# define lt_ptr_t void *
 
5937
#else
 
5938
# define lt_ptr_t char *
 
5939
# define const
 
5940
#endif
 
5941
 
 
5942
/* The mapping between symbol names and symbols. */
 
5943
const struct {
 
5944
  const char *name;
 
5945
  lt_ptr_t address;
 
5946
}
 
5947
lt_preloaded_symbols[] =
 
5948
{
 
5949
EOF
 
5950
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5951
          cat <<\EOF >> conftest.$ac_ext
 
5952
  {0, (lt_ptr_t) 0}
 
5953
};
 
5954
 
 
5955
#ifdef __cplusplus
 
5956
}
 
5957
#endif
 
5958
EOF
 
5959
          # Now try linking the two files.
 
5960
          mv conftest.$ac_objext conftstm.$ac_objext
 
5961
          lt_save_LIBS="$LIBS"
 
5962
          lt_save_CFLAGS="$CFLAGS"
 
5963
          LIBS="conftstm.$ac_objext"
 
5964
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5965
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5966
  (eval $ac_link) 2>&5
 
5967
  ac_status=$?
 
5968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5969
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5970
            pipe_works=yes
 
5971
          fi
 
5972
          LIBS="$lt_save_LIBS"
 
5973
          CFLAGS="$lt_save_CFLAGS"
 
5974
        else
 
5975
          echo "cannot find nm_test_func in $nlist" >&5
 
5976
        fi
 
5977
      else
 
5978
        echo "cannot find nm_test_var in $nlist" >&5
 
5979
      fi
 
5980
    else
 
5981
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5982
    fi
 
5983
  else
 
5984
    echo "$progname: failed program was:" >&5
 
5985
    cat conftest.$ac_ext >&5
 
5986
  fi
 
5987
  rm -f conftest* conftst*
 
5988
 
 
5989
  # Do not use the global_symbol_pipe unless it works.
 
5990
  if test "$pipe_works" = yes; then
 
5991
    break
 
5992
  else
 
5993
    lt_cv_sys_global_symbol_pipe=
 
5994
  fi
 
5995
done
 
5996
 
 
5997
fi
 
5998
 
 
5999
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6000
  lt_cv_sys_global_symbol_to_cdecl=
 
6001
fi
 
6002
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6003
  echo "$as_me:$LINENO: result: failed" >&5
 
6004
echo "${ECHO_T}failed" >&6
 
6005
else
 
6006
  echo "$as_me:$LINENO: result: ok" >&5
 
6007
echo "${ECHO_T}ok" >&6
 
6008
fi
 
6009
 
 
6010
echo "$as_me:$LINENO: checking for objdir" >&5
 
6011
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6012
if test "${lt_cv_objdir+set}" = set; then
 
6013
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6014
else
 
6015
  rm -f .libs 2>/dev/null
 
6016
mkdir .libs 2>/dev/null
 
6017
if test -d .libs; then
 
6018
  lt_cv_objdir=.libs
 
6019
else
 
6020
  # MS-DOS does not allow filenames that begin with a dot.
 
6021
  lt_cv_objdir=_libs
 
6022
fi
 
6023
rmdir .libs 2>/dev/null
 
6024
fi
 
6025
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6026
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6027
objdir=$lt_cv_objdir
 
6028
 
 
6029
 
 
6030
 
 
6031
 
 
6032
 
 
6033
case $host_os in
 
6034
aix3*)
 
6035
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6036
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6037
  # vanish in a puff of smoke.
 
6038
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6039
    COLLECT_NAMES=
 
6040
    export COLLECT_NAMES
 
6041
  fi
 
6042
  ;;
 
6043
esac
 
6044
 
 
6045
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6046
# metacharacters that are still active within double-quoted strings.
 
6047
Xsed='sed -e s/^X//'
 
6048
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6049
 
 
6050
# Same as above, but do not quote variable references.
 
6051
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6052
 
 
6053
# Sed substitution to delay expansion of an escaped shell variable in a
 
6054
# double_quote_subst'ed string.
 
6055
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6056
 
 
6057
# Sed substitution to avoid accidental globbing in evaled expressions
 
6058
no_glob_subst='s/\*/\\\*/g'
 
6059
 
 
6060
# Constants:
 
6061
rm="rm -f"
 
6062
 
 
6063
# Global variables:
 
6064
default_ofile=libtool
 
6065
can_build_shared=yes
 
6066
 
 
6067
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6068
# which needs '.lib').
 
6069
libext=a
 
6070
ltmain="$ac_aux_dir/ltmain.sh"
 
6071
ofile="$default_ofile"
 
6072
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6073
 
 
6074
if test -n "$ac_tool_prefix"; then
 
6075
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6076
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6077
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6078
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6079
if test "${ac_cv_prog_AR+set}" = set; then
 
6080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6081
else
 
6082
  if test -n "$AR"; then
 
6083
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6084
else
 
6085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6086
for as_dir in $PATH
 
6087
do
 
6088
  IFS=$as_save_IFS
 
6089
  test -z "$as_dir" && as_dir=.
 
6090
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6091
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6092
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6093
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6094
    break 2
 
6095
  fi
 
6096
done
 
6097
done
 
6098
 
 
6099
fi
 
6100
fi
 
6101
AR=$ac_cv_prog_AR
 
6102
if test -n "$AR"; then
 
6103
  echo "$as_me:$LINENO: result: $AR" >&5
 
6104
echo "${ECHO_T}$AR" >&6
 
6105
else
 
6106
  echo "$as_me:$LINENO: result: no" >&5
 
6107
echo "${ECHO_T}no" >&6
 
6108
fi
 
6109
 
 
6110
fi
 
6111
if test -z "$ac_cv_prog_AR"; then
 
6112
  ac_ct_AR=$AR
 
6113
  # Extract the first word of "ar", so it can be a program name with args.
 
6114
set dummy ar; ac_word=$2
 
6115
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6117
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6119
else
 
6120
  if test -n "$ac_ct_AR"; then
 
6121
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6122
else
 
6123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6124
for as_dir in $PATH
 
6125
do
 
6126
  IFS=$as_save_IFS
 
6127
  test -z "$as_dir" && as_dir=.
 
6128
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6129
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6130
    ac_cv_prog_ac_ct_AR="ar"
 
6131
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6132
    break 2
 
6133
  fi
 
6134
done
 
6135
done
 
6136
 
 
6137
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6138
fi
 
6139
fi
 
6140
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6141
if test -n "$ac_ct_AR"; then
 
6142
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6143
echo "${ECHO_T}$ac_ct_AR" >&6
 
6144
else
 
6145
  echo "$as_me:$LINENO: result: no" >&5
 
6146
echo "${ECHO_T}no" >&6
 
6147
fi
 
6148
 
 
6149
  AR=$ac_ct_AR
 
6150
else
 
6151
  AR="$ac_cv_prog_AR"
 
6152
fi
 
6153
 
 
6154
if test -n "$ac_tool_prefix"; then
 
6155
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6156
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6157
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6159
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6161
else
 
6162
  if test -n "$RANLIB"; then
 
6163
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6164
else
 
6165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6166
for as_dir in $PATH
 
6167
do
 
6168
  IFS=$as_save_IFS
 
6169
  test -z "$as_dir" && as_dir=.
 
6170
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6171
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6172
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6173
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6174
    break 2
 
6175
  fi
 
6176
done
 
6177
done
 
6178
 
 
6179
fi
 
6180
fi
 
6181
RANLIB=$ac_cv_prog_RANLIB
 
6182
if test -n "$RANLIB"; then
 
6183
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6184
echo "${ECHO_T}$RANLIB" >&6
 
6185
else
 
6186
  echo "$as_me:$LINENO: result: no" >&5
 
6187
echo "${ECHO_T}no" >&6
 
6188
fi
 
6189
 
 
6190
fi
 
6191
if test -z "$ac_cv_prog_RANLIB"; then
 
6192
  ac_ct_RANLIB=$RANLIB
 
6193
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6194
set dummy ranlib; ac_word=$2
 
6195
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6196
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6197
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6199
else
 
6200
  if test -n "$ac_ct_RANLIB"; then
 
6201
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6202
else
 
6203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6204
for as_dir in $PATH
 
6205
do
 
6206
  IFS=$as_save_IFS
 
6207
  test -z "$as_dir" && as_dir=.
 
6208
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6209
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6210
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6211
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6212
    break 2
 
6213
  fi
 
6214
done
 
6215
done
 
6216
 
 
6217
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6218
fi
 
6219
fi
 
6220
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6221
if test -n "$ac_ct_RANLIB"; then
 
6222
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6223
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6224
else
 
6225
  echo "$as_me:$LINENO: result: no" >&5
 
6226
echo "${ECHO_T}no" >&6
 
6227
fi
 
6228
 
 
6229
  RANLIB=$ac_ct_RANLIB
 
6230
else
 
6231
  RANLIB="$ac_cv_prog_RANLIB"
 
6232
fi
 
6233
 
 
6234
if test -n "$ac_tool_prefix"; then
 
6235
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6236
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6237
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6239
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6241
else
 
6242
  if test -n "$STRIP"; then
 
6243
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6244
else
 
6245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6246
for as_dir in $PATH
 
6247
do
 
6248
  IFS=$as_save_IFS
 
6249
  test -z "$as_dir" && as_dir=.
 
6250
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6251
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6252
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6253
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6254
    break 2
 
6255
  fi
 
6256
done
 
6257
done
 
6258
 
 
6259
fi
 
6260
fi
 
6261
STRIP=$ac_cv_prog_STRIP
 
6262
if test -n "$STRIP"; then
 
6263
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6264
echo "${ECHO_T}$STRIP" >&6
 
6265
else
 
6266
  echo "$as_me:$LINENO: result: no" >&5
 
6267
echo "${ECHO_T}no" >&6
 
6268
fi
 
6269
 
 
6270
fi
 
6271
if test -z "$ac_cv_prog_STRIP"; then
 
6272
  ac_ct_STRIP=$STRIP
 
6273
  # Extract the first word of "strip", so it can be a program name with args.
 
6274
set dummy strip; ac_word=$2
 
6275
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6276
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6277
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6279
else
 
6280
  if test -n "$ac_ct_STRIP"; then
 
6281
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6282
else
 
6283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6284
for as_dir in $PATH
 
6285
do
 
6286
  IFS=$as_save_IFS
 
6287
  test -z "$as_dir" && as_dir=.
 
6288
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6289
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6290
    ac_cv_prog_ac_ct_STRIP="strip"
 
6291
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6292
    break 2
 
6293
  fi
 
6294
done
 
6295
done
 
6296
 
 
6297
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6298
fi
 
6299
fi
 
6300
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6301
if test -n "$ac_ct_STRIP"; then
 
6302
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6303
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6304
else
 
6305
  echo "$as_me:$LINENO: result: no" >&5
 
6306
echo "${ECHO_T}no" >&6
 
6307
fi
 
6308
 
 
6309
  STRIP=$ac_ct_STRIP
 
6310
else
 
6311
  STRIP="$ac_cv_prog_STRIP"
 
6312
fi
 
6313
 
 
6314
 
 
6315
old_CC="$CC"
 
6316
old_CFLAGS="$CFLAGS"
 
6317
 
 
6318
# Set sane defaults for various variables
 
6319
test -z "$AR" && AR=ar
 
6320
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6321
test -z "$AS" && AS=as
 
6322
test -z "$CC" && CC=cc
 
6323
test -z "$LTCC" && LTCC=$CC
 
6324
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6325
test -z "$LD" && LD=ld
 
6326
test -z "$LN_S" && LN_S="ln -s"
 
6327
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6328
test -z "$NM" && NM=nm
 
6329
test -z "$SED" && SED=sed
 
6330
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6331
test -z "$RANLIB" && RANLIB=:
 
6332
test -z "$STRIP" && STRIP=:
 
6333
test -z "$ac_objext" && ac_objext=o
 
6334
 
 
6335
# Determine commands to create old-style static archives.
 
6336
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6337
old_postinstall_cmds='chmod 644 $oldlib'
 
6338
old_postuninstall_cmds=
 
6339
 
 
6340
if test -n "$RANLIB"; then
 
6341
  case $host_os in
 
6342
  openbsd*)
 
6343
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6344
    ;;
 
6345
  *)
 
6346
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6347
    ;;
 
6348
  esac
 
6349
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6350
fi
 
6351
 
 
6352
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
6353
 
 
6354
# Only perform the check for file, if the check method requires it
 
6355
case $deplibs_check_method in
 
6356
file_magic*)
 
6357
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6358
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6359
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6360
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6362
else
 
6363
  case $MAGIC_CMD in
 
6364
[\\/*] |  ?:[\\/]*)
 
6365
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6366
  ;;
 
6367
*)
 
6368
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6369
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6370
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6371
  for ac_dir in $ac_dummy; do
 
6372
    IFS="$lt_save_ifs"
 
6373
    test -z "$ac_dir" && ac_dir=.
 
6374
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6375
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6376
      if test -n "$file_magic_test_file"; then
 
6377
        case $deplibs_check_method in
 
6378
        "file_magic "*)
 
6379
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6380
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6381
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6382
            $EGREP "$file_magic_regex" > /dev/null; then
 
6383
            :
 
6384
          else
 
6385
            cat <<EOF 1>&2
 
6386
 
 
6387
*** Warning: the command libtool uses to detect shared libraries,
 
6388
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6389
*** The result is that libtool may fail to recognize shared libraries
 
6390
*** as such.  This will affect the creation of libtool libraries that
 
6391
*** depend on shared libraries, but programs linked with such libtool
 
6392
*** libraries will work regardless of this problem.  Nevertheless, you
 
6393
*** may want to report the problem to your system manager and/or to
 
6394
*** bug-libtool@gnu.org
 
6395
 
 
6396
EOF
 
6397
          fi ;;
 
6398
        esac
 
6399
      fi
 
6400
      break
 
6401
    fi
 
6402
  done
 
6403
  IFS="$lt_save_ifs"
 
6404
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6405
  ;;
 
6406
esac
 
6407
fi
 
6408
 
 
6409
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6410
if test -n "$MAGIC_CMD"; then
 
6411
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6412
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6413
else
 
6414
  echo "$as_me:$LINENO: result: no" >&5
 
6415
echo "${ECHO_T}no" >&6
 
6416
fi
 
6417
 
 
6418
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6419
  if test -n "$ac_tool_prefix"; then
 
6420
    echo "$as_me:$LINENO: checking for file" >&5
 
6421
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6422
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6424
else
 
6425
  case $MAGIC_CMD in
 
6426
[\\/*] |  ?:[\\/]*)
 
6427
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6428
  ;;
 
6429
*)
 
6430
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6431
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6432
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6433
  for ac_dir in $ac_dummy; do
 
6434
    IFS="$lt_save_ifs"
 
6435
    test -z "$ac_dir" && ac_dir=.
 
6436
    if test -f $ac_dir/file; then
 
6437
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6438
      if test -n "$file_magic_test_file"; then
 
6439
        case $deplibs_check_method in
 
6440
        "file_magic "*)
 
6441
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6442
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6443
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6444
            $EGREP "$file_magic_regex" > /dev/null; then
 
6445
            :
 
6446
          else
 
6447
            cat <<EOF 1>&2
 
6448
 
 
6449
*** Warning: the command libtool uses to detect shared libraries,
 
6450
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6451
*** The result is that libtool may fail to recognize shared libraries
 
6452
*** as such.  This will affect the creation of libtool libraries that
 
6453
*** depend on shared libraries, but programs linked with such libtool
 
6454
*** libraries will work regardless of this problem.  Nevertheless, you
 
6455
*** may want to report the problem to your system manager and/or to
 
6456
*** bug-libtool@gnu.org
 
6457
 
 
6458
EOF
 
6459
          fi ;;
 
6460
        esac
 
6461
      fi
 
6462
      break
 
6463
    fi
 
6464
  done
 
6465
  IFS="$lt_save_ifs"
 
6466
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6467
  ;;
 
6468
esac
 
6469
fi
 
6470
 
 
6471
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6472
if test -n "$MAGIC_CMD"; then
 
6473
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6474
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6475
else
 
6476
  echo "$as_me:$LINENO: result: no" >&5
 
6477
echo "${ECHO_T}no" >&6
 
6478
fi
 
6479
 
 
6480
  else
 
6481
    MAGIC_CMD=:
 
6482
  fi
 
6483
fi
 
6484
 
 
6485
  fi
 
6486
  ;;
 
6487
esac
 
6488
 
 
6489
enable_dlopen=no
 
6490
enable_win32_dll=no
 
6491
 
 
6492
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6493
if test "${enable_libtool_lock+set}" = set; then
 
6494
  enableval="$enable_libtool_lock"
 
6495
 
 
6496
fi;
 
6497
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6498
 
 
6499
 
 
6500
# Check whether --with-pic or --without-pic was given.
 
6501
if test "${with_pic+set}" = set; then
 
6502
  withval="$with_pic"
 
6503
  pic_mode="$withval"
 
6504
else
 
6505
  pic_mode=default
 
6506
fi;
 
6507
test -z "$pic_mode" && pic_mode=default
 
6508
 
 
6509
# Use C for the default configuration in the libtool script
 
6510
tagname=
 
6511
lt_save_CC="$CC"
 
6512
ac_ext=c
 
6513
ac_cpp='$CPP $CPPFLAGS'
 
6514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6517
 
 
6518
 
 
6519
# Source file extension for C test sources.
 
6520
ac_ext=c
 
6521
 
 
6522
# Object file extension for compiled C test sources.
 
6523
objext=o
 
6524
objext=$objext
 
6525
 
 
6526
# Code to be used in simple compile tests
 
6527
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6528
 
 
6529
# Code to be used in simple link tests
 
6530
lt_simple_link_test_code='int main(){return(0);}\n'
 
6531
 
 
6532
 
 
6533
# If no C compiler was specified, use CC.
 
6534
LTCC=${LTCC-"$CC"}
 
6535
 
 
6536
# Allow CC to be a program name with arguments.
 
6537
compiler=$CC
 
6538
 
 
6539
 
 
6540
#
 
6541
# Check for any special shared library compilation flags.
 
6542
#
 
6543
lt_prog_cc_shlib=
 
6544
if test "$GCC" = no; then
 
6545
  case $host_os in
 
6546
  sco3.2v5*)
 
6547
    lt_prog_cc_shlib='-belf'
 
6548
    ;;
 
6549
  esac
 
6550
fi
 
6551
if test -n "$lt_prog_cc_shlib"; then
 
6552
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6553
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6554
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6555
  else
 
6556
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6557
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6558
    lt_cv_prog_cc_can_build_shared=no
 
6559
  fi
 
6560
fi
 
6561
 
 
6562
 
 
6563
#
 
6564
# Check to make sure the static flag actually works.
 
6565
#
 
6566
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6567
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6568
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6570
else
 
6571
  lt_prog_compiler_static_works=no
 
6572
   save_LDFLAGS="$LDFLAGS"
 
6573
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6574
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6575
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6576
     # The compiler can only warn and ignore the option if not recognized
 
6577
     # So say no if there are warnings
 
6578
     if test -s conftest.err; then
 
6579
       # Append any errors to the config.log.
 
6580
       cat conftest.err 1>&5
 
6581
     else
 
6582
       lt_prog_compiler_static_works=yes
 
6583
     fi
 
6584
   fi
 
6585
   $rm conftest*
 
6586
   LDFLAGS="$save_LDFLAGS"
 
6587
 
 
6588
fi
 
6589
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6590
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6591
 
 
6592
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6593
    :
 
6594
else
 
6595
    lt_prog_compiler_static=
 
6596
fi
 
6597
 
 
6598
 
 
6599
 
 
6600
 
 
6601
lt_prog_compiler_no_builtin_flag=
 
6602
 
 
6603
if test "$GCC" = yes; then
 
6604
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6605
 
 
6606
 
 
6607
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6608
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6609
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6611
else
 
6612
  lt_cv_prog_compiler_rtti_exceptions=no
 
6613
  ac_outfile=conftest.$ac_objext
 
6614
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6615
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6616
   # Insert the option either (1) after the last *FLAGS variable, or
 
6617
   # (2) before a word containing "conftest.", or (3) at the end.
 
6618
   # Note that $ac_compile itself does not contain backslashes and begins
 
6619
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6620
   # The option is referenced via a variable to avoid confusing sed.
 
6621
   lt_compile=`echo "$ac_compile" | $SED \
 
6622
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6623
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6624
   -e 's:$: $lt_compiler_flag:'`
 
6625
   (eval echo "\"\$as_me:6625: $lt_compile\"" >&5)
 
6626
   (eval "$lt_compile" 2>conftest.err)
 
6627
   ac_status=$?
 
6628
   cat conftest.err >&5
 
6629
   echo "$as_me:6629: \$? = $ac_status" >&5
 
6630
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6631
     # The compiler can only warn and ignore the option if not recognized
 
6632
     # So say no if there are warnings
 
6633
     if test ! -s conftest.err; then
 
6634
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6635
     fi
 
6636
   fi
 
6637
   $rm conftest*
 
6638
 
 
6639
fi
 
6640
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6641
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6642
 
 
6643
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6644
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6645
else
 
6646
    :
 
6647
fi
 
6648
 
 
6649
fi
 
6650
 
 
6651
lt_prog_compiler_wl=
 
6652
lt_prog_compiler_pic=
 
6653
lt_prog_compiler_static=
 
6654
 
 
6655
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6656
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6657
 
 
6658
  if test "$GCC" = yes; then
 
6659
    lt_prog_compiler_wl='-Wl,'
 
6660
    lt_prog_compiler_static='-static'
 
6661
 
 
6662
    case $host_os in
 
6663
      aix*)
 
6664
      # All AIX code is PIC.
 
6665
      if test "$host_cpu" = ia64; then
 
6666
        # AIX 5 now supports IA64 processor
 
6667
        lt_prog_compiler_static='-Bstatic'
 
6668
      fi
 
6669
      ;;
 
6670
 
 
6671
    amigaos*)
 
6672
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6673
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6674
      # like `-m68040'.
 
6675
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6676
      ;;
 
6677
 
 
6678
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6679
      # PIC is the default for these OSes.
 
6680
      ;;
 
6681
 
 
6682
    mingw* | pw32* | os2*)
 
6683
      # This hack is so that the source file can tell whether it is being
 
6684
      # built for inclusion in a dll (and should export symbols for example).
 
6685
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6686
      ;;
 
6687
 
 
6688
    darwin* | rhapsody*)
 
6689
      # PIC is the default on this platform
 
6690
      # Common symbols not allowed in MH_DYLIB files
 
6691
      lt_prog_compiler_pic='-fno-common'
 
6692
      ;;
 
6693
 
 
6694
    msdosdjgpp*)
 
6695
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6696
      # on systems that don't support them.
 
6697
      lt_prog_compiler_can_build_shared=no
 
6698
      enable_shared=no
 
6699
      ;;
 
6700
 
 
6701
    sysv4*MP*)
 
6702
      if test -d /usr/nec; then
 
6703
        lt_prog_compiler_pic=-Kconform_pic
 
6704
      fi
 
6705
      ;;
 
6706
 
 
6707
    hpux*)
 
6708
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6709
      # not for PA HP-UX.
 
6710
      case "$host_cpu" in
 
6711
      hppa*64*|ia64*)
 
6712
        # +Z the default
 
6713
        ;;
 
6714
      *)
 
6715
        lt_prog_compiler_pic='-fPIC'
 
6716
        ;;
 
6717
      esac
 
6718
      ;;
 
6719
 
 
6720
    *)
 
6721
      lt_prog_compiler_pic='-fPIC'
 
6722
      ;;
 
6723
    esac
 
6724
  else
 
6725
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6726
    case $host_os in
 
6727
    aix*)
 
6728
      lt_prog_compiler_wl='-Wl,'
 
6729
      if test "$host_cpu" = ia64; then
 
6730
        # AIX 5 now supports IA64 processor
 
6731
        lt_prog_compiler_static='-Bstatic'
 
6732
      else
 
6733
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6734
      fi
 
6735
      ;;
 
6736
      darwin*)
 
6737
        # PIC is the default on this platform
 
6738
        # Common symbols not allowed in MH_DYLIB files
 
6739
       case "$cc_basename" in
 
6740
         xlc*)
 
6741
         lt_prog_compiler_pic='-qnocommon'
 
6742
         lt_prog_compiler_wl='-Wl,'
 
6743
         ;;
 
6744
       esac
 
6745
       ;;
 
6746
 
 
6747
    mingw* | pw32* | os2*)
 
6748
      # This hack is so that the source file can tell whether it is being
 
6749
      # built for inclusion in a dll (and should export symbols for example).
 
6750
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6751
      ;;
 
6752
 
 
6753
    hpux9* | hpux10* | hpux11*)
 
6754
      lt_prog_compiler_wl='-Wl,'
 
6755
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6756
      # not for PA HP-UX.
 
6757
      case "$host_cpu" in
 
6758
      hppa*64*|ia64*)
 
6759
        # +Z the default
 
6760
        ;;
 
6761
      *)
 
6762
        lt_prog_compiler_pic='+Z'
 
6763
        ;;
 
6764
      esac
 
6765
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6766
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6767
      ;;
 
6768
 
 
6769
    irix5* | irix6* | nonstopux*)
 
6770
      lt_prog_compiler_wl='-Wl,'
 
6771
      # PIC (with -KPIC) is the default.
 
6772
      lt_prog_compiler_static='-non_shared'
 
6773
      ;;
 
6774
 
 
6775
    newsos6)
 
6776
      lt_prog_compiler_pic='-KPIC'
 
6777
      lt_prog_compiler_static='-Bstatic'
 
6778
      ;;
 
6779
 
 
6780
    linux*)
 
6781
      case $CC in
 
6782
      icc* | ecc*)
 
6783
        lt_prog_compiler_wl='-Wl,'
 
6784
        lt_prog_compiler_pic='-KPIC'
 
6785
        lt_prog_compiler_static='-static'
 
6786
        ;;
 
6787
      ccc*)
 
6788
        lt_prog_compiler_wl='-Wl,'
 
6789
        # All Alpha code is PIC.
 
6790
        lt_prog_compiler_static='-non_shared'
 
6791
        ;;
 
6792
      esac
 
6793
      ;;
 
6794
 
 
6795
    osf3* | osf4* | osf5*)
 
6796
      lt_prog_compiler_wl='-Wl,'
 
6797
      # All OSF/1 code is PIC.
 
6798
      lt_prog_compiler_static='-non_shared'
 
6799
      ;;
 
6800
 
 
6801
    sco3.2v5*)
 
6802
      lt_prog_compiler_pic='-Kpic'
 
6803
      lt_prog_compiler_static='-dn'
 
6804
      ;;
 
6805
 
 
6806
    solaris*)
 
6807
      lt_prog_compiler_wl='-Wl,'
 
6808
      lt_prog_compiler_pic='-KPIC'
 
6809
      lt_prog_compiler_static='-Bstatic'
 
6810
      ;;
 
6811
 
 
6812
    sunos4*)
 
6813
      lt_prog_compiler_wl='-Qoption ld '
 
6814
      lt_prog_compiler_pic='-PIC'
 
6815
      lt_prog_compiler_static='-Bstatic'
 
6816
      ;;
 
6817
 
 
6818
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6819
      lt_prog_compiler_wl='-Wl,'
 
6820
      lt_prog_compiler_pic='-KPIC'
 
6821
      lt_prog_compiler_static='-Bstatic'
 
6822
      ;;
 
6823
 
 
6824
    sysv4*MP*)
 
6825
      if test -d /usr/nec ;then
 
6826
        lt_prog_compiler_pic='-Kconform_pic'
 
6827
        lt_prog_compiler_static='-Bstatic'
 
6828
      fi
 
6829
      ;;
 
6830
 
 
6831
    uts4*)
 
6832
      lt_prog_compiler_pic='-pic'
 
6833
      lt_prog_compiler_static='-Bstatic'
 
6834
      ;;
 
6835
 
 
6836
    *)
 
6837
      lt_prog_compiler_can_build_shared=no
 
6838
      ;;
 
6839
    esac
 
6840
  fi
 
6841
 
 
6842
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6843
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6844
 
 
6845
#
 
6846
# Check to make sure the PIC flag actually works.
 
6847
#
 
6848
if test -n "$lt_prog_compiler_pic"; then
 
6849
 
 
6850
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6851
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6852
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6854
else
 
6855
  lt_prog_compiler_pic_works=no
 
6856
  ac_outfile=conftest.$ac_objext
 
6857
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6858
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6859
   # Insert the option either (1) after the last *FLAGS variable, or
 
6860
   # (2) before a word containing "conftest.", or (3) at the end.
 
6861
   # Note that $ac_compile itself does not contain backslashes and begins
 
6862
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6863
   # The option is referenced via a variable to avoid confusing sed.
 
6864
   lt_compile=`echo "$ac_compile" | $SED \
 
6865
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6866
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6867
   -e 's:$: $lt_compiler_flag:'`
 
6868
   (eval echo "\"\$as_me:6868: $lt_compile\"" >&5)
 
6869
   (eval "$lt_compile" 2>conftest.err)
 
6870
   ac_status=$?
 
6871
   cat conftest.err >&5
 
6872
   echo "$as_me:6872: \$? = $ac_status" >&5
 
6873
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6874
     # The compiler can only warn and ignore the option if not recognized
 
6875
     # So say no if there are warnings
 
6876
     if test ! -s conftest.err; then
 
6877
       lt_prog_compiler_pic_works=yes
 
6878
     fi
 
6879
   fi
 
6880
   $rm conftest*
 
6881
 
 
6882
fi
 
6883
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6884
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6885
 
 
6886
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6887
    case $lt_prog_compiler_pic in
 
6888
     "" | " "*) ;;
 
6889
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6890
     esac
 
6891
else
 
6892
    lt_prog_compiler_pic=
 
6893
     lt_prog_compiler_can_build_shared=no
 
6894
fi
 
6895
 
 
6896
fi
 
6897
case "$host_os" in
 
6898
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6899
  *djgpp*)
 
6900
    lt_prog_compiler_pic=
 
6901
    ;;
 
6902
  *)
 
6903
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6904
    ;;
 
6905
esac
 
6906
 
 
6907
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6908
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6909
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6911
else
 
6912
  lt_cv_prog_compiler_c_o=no
 
6913
   $rm -r conftest 2>/dev/null
 
6914
   mkdir conftest
 
6915
   cd conftest
 
6916
   mkdir out
 
6917
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6918
 
 
6919
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6920
   # Insert the option either (1) after the last *FLAGS variable, or
 
6921
   # (2) before a word containing "conftest.", or (3) at the end.
 
6922
   # Note that $ac_compile itself does not contain backslashes and begins
 
6923
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6924
   lt_compile=`echo "$ac_compile" | $SED \
 
6925
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6926
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6927
   -e 's:$: $lt_compiler_flag:'`
 
6928
   (eval echo "\"\$as_me:6928: $lt_compile\"" >&5)
 
6929
   (eval "$lt_compile" 2>out/conftest.err)
 
6930
   ac_status=$?
 
6931
   cat out/conftest.err >&5
 
6932
   echo "$as_me:6932: \$? = $ac_status" >&5
 
6933
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6934
   then
 
6935
     # The compiler can only warn and ignore the option if not recognized
 
6936
     # So say no if there are warnings
 
6937
     if test ! -s out/conftest.err; then
 
6938
       lt_cv_prog_compiler_c_o=yes
 
6939
     fi
 
6940
   fi
 
6941
   chmod u+w .
 
6942
   $rm conftest*
 
6943
   # SGI C++ compiler will create directory out/ii_files/ for
 
6944
   # template instantiation
 
6945
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6946
   $rm out/* && rmdir out
 
6947
   cd ..
 
6948
   rmdir conftest
 
6949
   $rm conftest*
 
6950
 
 
6951
fi
 
6952
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6953
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6954
 
 
6955
 
 
6956
hard_links="nottested"
 
6957
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6958
  # do not overwrite the value of need_locks provided by the user
 
6959
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6960
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6961
  hard_links=yes
 
6962
  $rm conftest*
 
6963
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6964
  touch conftest.a
 
6965
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6966
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6967
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6968
echo "${ECHO_T}$hard_links" >&6
 
6969
  if test "$hard_links" = no; then
 
6970
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6971
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6972
    need_locks=warn
 
6973
  fi
 
6974
else
 
6975
  need_locks=no
 
6976
fi
 
6977
 
 
6978
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6979
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6980
 
 
6981
  runpath_var=
 
6982
  allow_undefined_flag=
 
6983
  enable_shared_with_static_runtimes=no
 
6984
  archive_cmds=
 
6985
  archive_expsym_cmds=
 
6986
  old_archive_From_new_cmds=
 
6987
  old_archive_from_expsyms_cmds=
 
6988
  export_dynamic_flag_spec=
 
6989
  whole_archive_flag_spec=
 
6990
  thread_safe_flag_spec=
 
6991
  hardcode_libdir_flag_spec=
 
6992
  hardcode_libdir_flag_spec_ld=
 
6993
  hardcode_libdir_separator=
 
6994
  hardcode_direct=no
 
6995
  hardcode_minus_L=no
 
6996
  hardcode_shlibpath_var=unsupported
 
6997
  link_all_deplibs=unknown
 
6998
  hardcode_automatic=no
 
6999
  module_cmds=
 
7000
  module_expsym_cmds=
 
7001
  always_export_symbols=no
 
7002
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7003
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7004
  # included in the symbol list
 
7005
  include_expsyms=
 
7006
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7007
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7008
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7009
  # as well as any symbol that contains `d'.
 
7010
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7011
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7012
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7013
  # the symbol is explicitly referenced.  Since portable code cannot
 
7014
  # rely on this symbol name, it's probably fine to never include it in
 
7015
  # preloaded symbol tables.
 
7016
  extract_expsyms_cmds=
 
7017
 
 
7018
  case $host_os in
 
7019
  cygwin* | mingw* | pw32*)
 
7020
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7021
    # When not using gcc, we currently assume that we are using
 
7022
    # Microsoft Visual C++.
 
7023
    if test "$GCC" != yes; then
 
7024
      with_gnu_ld=no
 
7025
    fi
 
7026
    ;;
 
7027
  openbsd*)
 
7028
    with_gnu_ld=no
 
7029
    ;;
 
7030
  esac
 
7031
 
 
7032
  ld_shlibs=yes
 
7033
  if test "$with_gnu_ld" = yes; then
 
7034
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7035
    wlarc='${wl}'
 
7036
 
 
7037
    # See if GNU ld supports shared libraries.
 
7038
    case $host_os in
 
7039
    aix3* | aix4* | aix5*)
 
7040
      # On AIX/PPC, the GNU linker is very broken
 
7041
      if test "$host_cpu" != ia64; then
 
7042
        ld_shlibs=no
 
7043
        cat <<EOF 1>&2
 
7044
 
 
7045
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7046
*** to be unable to reliably create shared libraries on AIX.
 
7047
*** Therefore, libtool is disabling shared libraries support.  If you
 
7048
*** really care for shared libraries, you may want to modify your PATH
 
7049
*** so that a non-GNU linker is found, and then restart.
 
7050
 
 
7051
EOF
 
7052
      fi
 
7053
      ;;
 
7054
 
 
7055
    amigaos*)
 
7056
      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)'
 
7057
      hardcode_libdir_flag_spec='-L$libdir'
 
7058
      hardcode_minus_L=yes
 
7059
 
 
7060
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7061
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7062
      # to version 4, is to share data among multiple programs linked
 
7063
      # with the same dynamic library.  Since this doesn't match the
 
7064
      # behavior of shared libraries on other platforms, we can't use
 
7065
      # them.
 
7066
      ld_shlibs=no
 
7067
      ;;
 
7068
 
 
7069
    beos*)
 
7070
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7071
        allow_undefined_flag=unsupported
 
7072
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7073
        # support --undefined.  This deserves some investigation.  FIXME
 
7074
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7075
      else
 
7076
        ld_shlibs=no
 
7077
      fi
 
7078
      ;;
 
7079
 
 
7080
    cygwin* | mingw* | pw32*)
 
7081
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7082
      # as there is no search path for DLLs.
 
7083
      hardcode_libdir_flag_spec='-L$libdir'
 
7084
      allow_undefined_flag=unsupported
 
7085
      always_export_symbols=no
 
7086
      enable_shared_with_static_runtimes=yes
 
7087
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7088
 
 
7089
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7090
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7091
        # If the export-symbols file already is a .def file (1st line
 
7092
        # is EXPORTS), use it as is; otherwise, prepend...
 
7093
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7094
          cp $export_symbols $output_objdir/$soname.def;
 
7095
        else
 
7096
          echo EXPORTS > $output_objdir/$soname.def;
 
7097
          cat $export_symbols >> $output_objdir/$soname.def;
 
7098
        fi~
 
7099
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7100
      else
 
7101
        ld_shlibs=no
 
7102
      fi
 
7103
      ;;
 
7104
 
 
7105
    netbsd*)
 
7106
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7107
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7108
        wlarc=
 
7109
      else
 
7110
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7111
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7112
      fi
 
7113
      ;;
 
7114
 
 
7115
    solaris* | sysv5*)
 
7116
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7117
        ld_shlibs=no
 
7118
        cat <<EOF 1>&2
 
7119
 
 
7120
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7121
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7122
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7123
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7124
*** your PATH or compiler configuration so that the native linker is
 
7125
*** used, and then restart.
 
7126
 
 
7127
EOF
 
7128
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7129
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7130
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7131
      else
 
7132
        ld_shlibs=no
 
7133
      fi
 
7134
      ;;
 
7135
 
 
7136
    sunos4*)
 
7137
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7138
      wlarc=
 
7139
      hardcode_direct=yes
 
7140
      hardcode_shlibpath_var=no
 
7141
      ;;
 
7142
 
 
7143
  linux*)
 
7144
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7145
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7146
        archive_cmds="$tmp_archive_cmds"
 
7147
      supports_anon_versioning=no
 
7148
      case `$LD -v 2>/dev/null` in
 
7149
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7150
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7151
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7152
        *\ 2.11.*) ;; # other 2.11 versions
 
7153
        *) supports_anon_versioning=yes ;;
 
7154
      esac
 
7155
      if test $supports_anon_versioning = yes; then
 
7156
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7157
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7158
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7159
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7160
      else
 
7161
        archive_expsym_cmds="$tmp_archive_cmds"
 
7162
      fi
 
7163
    else
 
7164
      ld_shlibs=no
 
7165
    fi
 
7166
    ;;
 
7167
 
 
7168
    *)
 
7169
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7170
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7171
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7172
      else
 
7173
        ld_shlibs=no
 
7174
      fi
 
7175
      ;;
 
7176
    esac
 
7177
 
 
7178
    if test "$ld_shlibs" = yes; then
 
7179
      runpath_var=LD_RUN_PATH
 
7180
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7181
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
7182
      # ancient GNU ld didn't support --whole-archive et. al.
 
7183
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7184
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7185
      else
 
7186
        whole_archive_flag_spec=
 
7187
      fi
 
7188
    fi
 
7189
  else
 
7190
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7191
    case $host_os in
 
7192
    aix3*)
 
7193
      allow_undefined_flag=unsupported
 
7194
      always_export_symbols=yes
 
7195
      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'
 
7196
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7197
      # are no directories specified by -L.
 
7198
      hardcode_minus_L=yes
 
7199
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7200
        # Neither direct hardcoding nor static linking is supported with a
 
7201
        # broken collect2.
 
7202
        hardcode_direct=unsupported
 
7203
      fi
 
7204
      ;;
 
7205
 
 
7206
    aix4* | aix5*)
 
7207
      if test "$host_cpu" = ia64; then
 
7208
        # On IA64, the linker does run time linking by default, so we don't
 
7209
        # have to do anything special.
 
7210
        aix_use_runtimelinking=no
 
7211
        exp_sym_flag='-Bexport'
 
7212
        no_entry_flag=""
 
7213
      else
 
7214
        # If we're using GNU nm, then we don't want the "-C" option.
 
7215
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7216
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7217
          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'
 
7218
        else
 
7219
          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'
 
7220
        fi
 
7221
        aix_use_runtimelinking=no
 
7222
 
 
7223
        # Test if we are trying to use run time linking or normal
 
7224
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7225
        # need to do runtime linking.
 
7226
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7227
          for ld_flag in $LDFLAGS; do
 
7228
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7229
            aix_use_runtimelinking=yes
 
7230
            break
 
7231
          fi
 
7232
          done
 
7233
        esac
 
7234
 
 
7235
        exp_sym_flag='-bexport'
 
7236
        no_entry_flag='-bnoentry'
 
7237
      fi
 
7238
 
 
7239
      # When large executables or shared objects are built, AIX ld can
 
7240
      # have problems creating the table of contents.  If linking a library
 
7241
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7242
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7243
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7244
 
 
7245
      archive_cmds=''
 
7246
      hardcode_direct=yes
 
7247
      hardcode_libdir_separator=':'
 
7248
      link_all_deplibs=yes
 
7249
 
 
7250
      if test "$GCC" = yes; then
 
7251
        case $host_os in aix4.012|aix4.012.*)
 
7252
        # We only want to do this on AIX 4.2 and lower, the check
 
7253
        # below for broken collect2 doesn't work under 4.3+
 
7254
          collect2name=`${CC} -print-prog-name=collect2`
 
7255
          if test -f "$collect2name" && \
 
7256
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7257
          then
 
7258
          # We have reworked collect2
 
7259
          hardcode_direct=yes
 
7260
          else
 
7261
          # We have old collect2
 
7262
          hardcode_direct=unsupported
 
7263
          # It fails to find uninstalled libraries when the uninstalled
 
7264
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7265
          # to unsupported forces relinking
 
7266
          hardcode_minus_L=yes
 
7267
          hardcode_libdir_flag_spec='-L$libdir'
 
7268
          hardcode_libdir_separator=
 
7269
          fi
 
7270
        esac
 
7271
        shared_flag='-shared'
 
7272
      else
 
7273
        # not using gcc
 
7274
        if test "$host_cpu" = ia64; then
 
7275
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7276
        # chokes on -Wl,-G. The following line is correct:
 
7277
          shared_flag='-G'
 
7278
        else
 
7279
        if test "$aix_use_runtimelinking" = yes; then
 
7280
            shared_flag='${wl}-G'
 
7281
          else
 
7282
            shared_flag='${wl}-bM:SRE'
 
7283
        fi
 
7284
        fi
 
7285
      fi
 
7286
 
 
7287
      # It seems that -bexpall does not export symbols beginning with
 
7288
      # underscore (_), so it is better to generate a list of symbols to export.
 
7289
      always_export_symbols=yes
 
7290
      if test "$aix_use_runtimelinking" = yes; then
 
7291
        # Warning - without using the other runtime loading flags (-brtl),
 
7292
        # -berok will link without error, but may produce a broken library.
 
7293
        allow_undefined_flag='-berok'
 
7294
       # Determine the default libpath from the value encoded in an empty executable.
 
7295
       cat >conftest.$ac_ext <<_ACEOF
 
7296
/* confdefs.h.  */
 
7297
_ACEOF
 
7298
cat confdefs.h >>conftest.$ac_ext
 
7299
cat >>conftest.$ac_ext <<_ACEOF
 
7300
/* end confdefs.h.  */
 
7301
 
 
7302
int
 
7303
main ()
 
7304
{
 
7305
 
 
7306
  ;
 
7307
  return 0;
 
7308
}
 
7309
_ACEOF
 
7310
rm -f conftest.$ac_objext conftest$ac_exeext
 
7311
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7312
  (eval $ac_link) 2>conftest.er1
 
7313
  ac_status=$?
 
7314
  grep -v '^ *+' conftest.er1 >conftest.err
 
7315
  rm -f conftest.er1
 
7316
  cat conftest.err >&5
 
7317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7318
  (exit $ac_status); } &&
 
7319
         { ac_try='test -z "$ac_c_werror_flag"
 
7320
                         || test ! -s conftest.err'
 
7321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7322
  (eval $ac_try) 2>&5
 
7323
  ac_status=$?
 
7324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7325
  (exit $ac_status); }; } &&
 
7326
         { ac_try='test -s conftest$ac_exeext'
 
7327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7328
  (eval $ac_try) 2>&5
 
7329
  ac_status=$?
 
7330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7331
  (exit $ac_status); }; }; then
 
7332
 
 
7333
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7334
}'`
 
7335
# Check for a 64-bit object if we didn't find anything.
 
7336
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; }
 
7337
}'`; fi
 
7338
else
 
7339
  echo "$as_me: failed program was:" >&5
 
7340
sed 's/^/| /' conftest.$ac_ext >&5
 
7341
 
 
7342
fi
 
7343
rm -f conftest.err conftest.$ac_objext \
 
7344
      conftest$ac_exeext conftest.$ac_ext
 
7345
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7346
 
 
7347
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7348
        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"
 
7349
       else
 
7350
        if test "$host_cpu" = ia64; then
 
7351
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7352
          allow_undefined_flag="-z nodefs"
 
7353
          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"
 
7354
        else
 
7355
         # Determine the default libpath from the value encoded in an empty executable.
 
7356
         cat >conftest.$ac_ext <<_ACEOF
 
7357
/* confdefs.h.  */
 
7358
_ACEOF
 
7359
cat confdefs.h >>conftest.$ac_ext
 
7360
cat >>conftest.$ac_ext <<_ACEOF
 
7361
/* end confdefs.h.  */
 
7362
 
 
7363
int
 
7364
main ()
 
7365
{
 
7366
 
 
7367
  ;
 
7368
  return 0;
 
7369
}
 
7370
_ACEOF
 
7371
rm -f conftest.$ac_objext conftest$ac_exeext
 
7372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7373
  (eval $ac_link) 2>conftest.er1
 
7374
  ac_status=$?
 
7375
  grep -v '^ *+' conftest.er1 >conftest.err
 
7376
  rm -f conftest.er1
 
7377
  cat conftest.err >&5
 
7378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7379
  (exit $ac_status); } &&
 
7380
         { ac_try='test -z "$ac_c_werror_flag"
 
7381
                         || test ! -s conftest.err'
 
7382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7383
  (eval $ac_try) 2>&5
 
7384
  ac_status=$?
 
7385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7386
  (exit $ac_status); }; } &&
 
7387
         { ac_try='test -s conftest$ac_exeext'
 
7388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7389
  (eval $ac_try) 2>&5
 
7390
  ac_status=$?
 
7391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7392
  (exit $ac_status); }; }; then
 
7393
 
 
7394
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7395
}'`
 
7396
# Check for a 64-bit object if we didn't find anything.
 
7397
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; }
 
7398
}'`; fi
 
7399
else
 
7400
  echo "$as_me: failed program was:" >&5
 
7401
sed 's/^/| /' conftest.$ac_ext >&5
 
7402
 
 
7403
fi
 
7404
rm -f conftest.err conftest.$ac_objext \
 
7405
      conftest$ac_exeext conftest.$ac_ext
 
7406
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7407
 
 
7408
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7409
          # Warning - without using the other run time loading flags,
 
7410
          # -berok will link without error, but may produce a broken library.
 
7411
          no_undefined_flag=' ${wl}-bernotok'
 
7412
          allow_undefined_flag=' ${wl}-berok'
 
7413
          # -bexpall does not export symbols beginning with underscore (_)
 
7414
          always_export_symbols=yes
 
7415
          # Exported symbols can be pulled into shared objects from archives
 
7416
          whole_archive_flag_spec=' '
 
7417
          archive_cmds_need_lc=yes
 
7418
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7419
          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'
 
7420
        fi
 
7421
      fi
 
7422
      ;;
 
7423
 
 
7424
    amigaos*)
 
7425
      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)'
 
7426
      hardcode_libdir_flag_spec='-L$libdir'
 
7427
      hardcode_minus_L=yes
 
7428
      # see comment about different semantics on the GNU ld section
 
7429
      ld_shlibs=no
 
7430
      ;;
 
7431
 
 
7432
    bsdi[45]*)
 
7433
      export_dynamic_flag_spec=-rdynamic
 
7434
      ;;
 
7435
 
 
7436
    cygwin* | mingw* | pw32*)
 
7437
      # When not using gcc, we currently assume that we are using
 
7438
      # Microsoft Visual C++.
 
7439
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7440
      # no search path for DLLs.
 
7441
      hardcode_libdir_flag_spec=' '
 
7442
      allow_undefined_flag=unsupported
 
7443
      # Tell ltmain to make .lib files, not .a files.
 
7444
      libext=lib
 
7445
      # Tell ltmain to make .dll files, not .so files.
 
7446
      shrext_cmds=".dll"
 
7447
      # FIXME: Setting linknames here is a bad hack.
 
7448
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7449
      # The linker will automatically build a .lib file if we build a DLL.
 
7450
      old_archive_From_new_cmds='true'
 
7451
      # FIXME: Should let the user specify the lib program.
 
7452
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7453
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7454
      enable_shared_with_static_runtimes=yes
 
7455
      ;;
 
7456
 
 
7457
    darwin* | rhapsody*)
 
7458
      case "$host_os" in
 
7459
        rhapsody* | darwin1.[012])
 
7460
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7461
         ;;
 
7462
       *) # Darwin 1.3 on
 
7463
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7464
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7465
         else
 
7466
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7467
             10.[012])
 
7468
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7469
               ;;
 
7470
             10.*)
 
7471
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7472
               ;;
 
7473
           esac
 
7474
         fi
 
7475
         ;;
 
7476
      esac
 
7477
      archive_cmds_need_lc=no
 
7478
      hardcode_direct=no
 
7479
      hardcode_automatic=yes
 
7480
      hardcode_shlibpath_var=unsupported
 
7481
      whole_archive_flag_spec=''
 
7482
      link_all_deplibs=yes
 
7483
    if test "$GCC" = yes ; then
 
7484
        output_verbose_link_cmd='echo'
 
7485
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7486
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7487
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7488
      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}'
 
7489
      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}'
 
7490
    else
 
7491
      case "$cc_basename" in
 
7492
        xlc*)
 
7493
         output_verbose_link_cmd='echo'
 
7494
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7495
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7496
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7497
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7498
          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}'
 
7499
          ;;
 
7500
       *)
 
7501
         ld_shlibs=no
 
7502
          ;;
 
7503
      esac
 
7504
    fi
 
7505
      ;;
 
7506
 
 
7507
    dgux*)
 
7508
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7509
      hardcode_libdir_flag_spec='-L$libdir'
 
7510
      hardcode_shlibpath_var=no
 
7511
      ;;
 
7512
 
 
7513
    freebsd1*)
 
7514
      ld_shlibs=no
 
7515
      ;;
 
7516
 
 
7517
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7518
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7519
    # does not break anything, and helps significantly (at the cost of a little
 
7520
    # extra space).
 
7521
    freebsd2.2*)
 
7522
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7523
      hardcode_libdir_flag_spec='-R$libdir'
 
7524
      hardcode_direct=yes
 
7525
      hardcode_shlibpath_var=no
 
7526
      ;;
 
7527
 
 
7528
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7529
    freebsd2*)
 
7530
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7531
      hardcode_direct=yes
 
7532
      hardcode_minus_L=yes
 
7533
      hardcode_shlibpath_var=no
 
7534
      ;;
 
7535
 
 
7536
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7537
    freebsd* | kfreebsd*-gnu)
 
7538
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7539
      hardcode_libdir_flag_spec='-R$libdir'
 
7540
      hardcode_direct=yes
 
7541
      hardcode_shlibpath_var=no
 
7542
      ;;
 
7543
 
 
7544
    hpux9*)
 
7545
      if test "$GCC" = yes; then
 
7546
        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'
 
7547
      else
 
7548
        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'
 
7549
      fi
 
7550
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7551
      hardcode_libdir_separator=:
 
7552
      hardcode_direct=yes
 
7553
 
 
7554
      # hardcode_minus_L: Not really in the search PATH,
 
7555
      # but as the default location of the library.
 
7556
      hardcode_minus_L=yes
 
7557
      export_dynamic_flag_spec='${wl}-E'
 
7558
      ;;
 
7559
 
 
7560
    hpux10* | hpux11*)
 
7561
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7562
        case "$host_cpu" in
 
7563
        hppa*64*|ia64*)
 
7564
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7565
          ;;
 
7566
        *)
 
7567
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7568
          ;;
 
7569
        esac
 
7570
      else
 
7571
        case "$host_cpu" in
 
7572
        hppa*64*|ia64*)
 
7573
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7574
          ;;
 
7575
        *)
 
7576
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7577
          ;;
 
7578
        esac
 
7579
      fi
 
7580
      if test "$with_gnu_ld" = no; then
 
7581
        case "$host_cpu" in
 
7582
        hppa*64*)
 
7583
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7584
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7585
          hardcode_libdir_separator=:
 
7586
          hardcode_direct=no
 
7587
          hardcode_shlibpath_var=no
 
7588
          ;;
 
7589
        ia64*)
 
7590
          hardcode_libdir_flag_spec='-L$libdir'
 
7591
          hardcode_direct=no
 
7592
          hardcode_shlibpath_var=no
 
7593
 
 
7594
          # hardcode_minus_L: Not really in the search PATH,
 
7595
          # but as the default location of the library.
 
7596
          hardcode_minus_L=yes
 
7597
          ;;
 
7598
        *)
 
7599
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7600
          hardcode_libdir_separator=:
 
7601
          hardcode_direct=yes
 
7602
          export_dynamic_flag_spec='${wl}-E'
 
7603
 
 
7604
          # hardcode_minus_L: Not really in the search PATH,
 
7605
          # but as the default location of the library.
 
7606
          hardcode_minus_L=yes
 
7607
          ;;
 
7608
        esac
 
7609
      fi
 
7610
      ;;
 
7611
 
 
7612
    irix5* | irix6* | nonstopux*)
 
7613
      if test "$GCC" = yes; then
 
7614
        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'
 
7615
      else
 
7616
        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'
 
7617
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7618
      fi
 
7619
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7620
      hardcode_libdir_separator=:
 
7621
      link_all_deplibs=yes
 
7622
      ;;
 
7623
 
 
7624
    netbsd*)
 
7625
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7626
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7627
      else
 
7628
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7629
      fi
 
7630
      hardcode_libdir_flag_spec='-R$libdir'
 
7631
      hardcode_direct=yes
 
7632
      hardcode_shlibpath_var=no
 
7633
      ;;
 
7634
 
 
7635
    newsos6)
 
7636
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7637
      hardcode_direct=yes
 
7638
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7639
      hardcode_libdir_separator=:
 
7640
      hardcode_shlibpath_var=no
 
7641
      ;;
 
7642
 
 
7643
    openbsd*)
 
7644
      hardcode_direct=yes
 
7645
      hardcode_shlibpath_var=no
 
7646
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7647
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7648
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7649
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7650
        export_dynamic_flag_spec='${wl}-E'
 
7651
      else
 
7652
       case $host_os in
 
7653
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7654
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7655
           hardcode_libdir_flag_spec='-R$libdir'
 
7656
           ;;
 
7657
         *)
 
7658
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7659
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7660
           ;;
 
7661
       esac
 
7662
      fi
 
7663
      ;;
 
7664
 
 
7665
    os2*)
 
7666
      hardcode_libdir_flag_spec='-L$libdir'
 
7667
      hardcode_minus_L=yes
 
7668
      allow_undefined_flag=unsupported
 
7669
      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'
 
7670
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7671
      ;;
 
7672
 
 
7673
    osf3*)
 
7674
      if test "$GCC" = yes; then
 
7675
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7676
        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'
 
7677
      else
 
7678
        allow_undefined_flag=' -expect_unresolved \*'
 
7679
        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'
 
7680
      fi
 
7681
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7682
      hardcode_libdir_separator=:
 
7683
      ;;
 
7684
 
 
7685
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7686
      if test "$GCC" = yes; then
 
7687
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7688
        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'
 
7689
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7690
      else
 
7691
        allow_undefined_flag=' -expect_unresolved \*'
 
7692
        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'
 
7693
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7694
        $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'
 
7695
 
 
7696
        # Both c and cxx compiler support -rpath directly
 
7697
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7698
      fi
 
7699
      hardcode_libdir_separator=:
 
7700
      ;;
 
7701
 
 
7702
    sco3.2v5*)
 
7703
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7704
      hardcode_shlibpath_var=no
 
7705
      export_dynamic_flag_spec='${wl}-Bexport'
 
7706
      runpath_var=LD_RUN_PATH
 
7707
      hardcode_runpath_var=yes
 
7708
      ;;
 
7709
 
 
7710
    solaris*)
 
7711
      no_undefined_flag=' -z text'
 
7712
      if test "$GCC" = yes; then
 
7713
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7714
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7715
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7716
      else
 
7717
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7718
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7719
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7720
      fi
 
7721
      hardcode_libdir_flag_spec='-R$libdir'
 
7722
      hardcode_shlibpath_var=no
 
7723
      case $host_os in
 
7724
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7725
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7726
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7727
      esac
 
7728
      link_all_deplibs=yes
 
7729
      ;;
 
7730
 
 
7731
    sunos4*)
 
7732
      if test "x$host_vendor" = xsequent; then
 
7733
        # Use $CC to link under sequent, because it throws in some extra .o
 
7734
        # files that make .init and .fini sections work.
 
7735
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7736
      else
 
7737
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7738
      fi
 
7739
      hardcode_libdir_flag_spec='-L$libdir'
 
7740
      hardcode_direct=yes
 
7741
      hardcode_minus_L=yes
 
7742
      hardcode_shlibpath_var=no
 
7743
      ;;
 
7744
 
 
7745
    sysv4)
 
7746
      case $host_vendor in
 
7747
        sni)
 
7748
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7749
          hardcode_direct=yes # is this really true???
 
7750
        ;;
 
7751
        siemens)
 
7752
          ## LD is ld it makes a PLAMLIB
 
7753
          ## CC just makes a GrossModule.
 
7754
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7755
          reload_cmds='$CC -r -o $output$reload_objs'
 
7756
          hardcode_direct=no
 
7757
        ;;
 
7758
        motorola)
 
7759
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7760
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7761
        ;;
 
7762
      esac
 
7763
      runpath_var='LD_RUN_PATH'
 
7764
      hardcode_shlibpath_var=no
 
7765
      ;;
 
7766
 
 
7767
    sysv4.3*)
 
7768
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7769
      hardcode_shlibpath_var=no
 
7770
      export_dynamic_flag_spec='-Bexport'
 
7771
      ;;
 
7772
 
 
7773
    sysv4*MP*)
 
7774
      if test -d /usr/nec; then
 
7775
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7776
        hardcode_shlibpath_var=no
 
7777
        runpath_var=LD_RUN_PATH
 
7778
        hardcode_runpath_var=yes
 
7779
        ld_shlibs=yes
 
7780
      fi
 
7781
      ;;
 
7782
 
 
7783
    sysv4.2uw2*)
 
7784
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7785
      hardcode_direct=yes
 
7786
      hardcode_minus_L=no
 
7787
      hardcode_shlibpath_var=no
 
7788
      hardcode_runpath_var=yes
 
7789
      runpath_var=LD_RUN_PATH
 
7790
      ;;
 
7791
 
 
7792
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7793
      no_undefined_flag='${wl}-z ${wl}text'
 
7794
      if test "$GCC" = yes; then
 
7795
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7796
      else
 
7797
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7798
      fi
 
7799
      runpath_var='LD_RUN_PATH'
 
7800
      hardcode_shlibpath_var=no
 
7801
      ;;
 
7802
 
 
7803
    sysv5*)
 
7804
      no_undefined_flag=' -z text'
 
7805
      # $CC -shared without GNU ld will not create a library from C++
 
7806
      # object files and a static libstdc++, better avoid it by now
 
7807
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7808
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7809
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7810
      hardcode_libdir_flag_spec=
 
7811
      hardcode_shlibpath_var=no
 
7812
      runpath_var='LD_RUN_PATH'
 
7813
      ;;
 
7814
 
 
7815
    uts4*)
 
7816
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7817
      hardcode_libdir_flag_spec='-L$libdir'
 
7818
      hardcode_shlibpath_var=no
 
7819
      ;;
 
7820
 
 
7821
    *)
 
7822
      ld_shlibs=no
 
7823
      ;;
 
7824
    esac
 
7825
  fi
 
7826
 
 
7827
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7828
echo "${ECHO_T}$ld_shlibs" >&6
 
7829
test "$ld_shlibs" = no && can_build_shared=no
 
7830
 
 
7831
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7832
if test "$GCC" = yes; then
 
7833
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7834
fi
 
7835
 
 
7836
#
 
7837
# Do we need to explicitly link libc?
 
7838
#
 
7839
case "x$archive_cmds_need_lc" in
 
7840
x|xyes)
 
7841
  # Assume -lc should be added
 
7842
  archive_cmds_need_lc=yes
 
7843
 
 
7844
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7845
    case $archive_cmds in
 
7846
    *'~'*)
 
7847
      # FIXME: we may have to deal with multi-command sequences.
 
7848
      ;;
 
7849
    '$CC '*)
 
7850
      # Test whether the compiler implicitly links with -lc since on some
 
7851
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7852
      # to ld, don't add -lc before -lgcc.
 
7853
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7854
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7855
      $rm conftest*
 
7856
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7857
 
 
7858
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7859
  (eval $ac_compile) 2>&5
 
7860
  ac_status=$?
 
7861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7862
  (exit $ac_status); } 2>conftest.err; then
 
7863
        soname=conftest
 
7864
        lib=conftest
 
7865
        libobjs=conftest.$ac_objext
 
7866
        deplibs=
 
7867
        wl=$lt_prog_compiler_wl
 
7868
        compiler_flags=-v
 
7869
        linker_flags=-v
 
7870
        verstring=
 
7871
        output_objdir=.
 
7872
        libname=conftest
 
7873
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7874
        allow_undefined_flag=
 
7875
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7876
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7877
  ac_status=$?
 
7878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7879
  (exit $ac_status); }
 
7880
        then
 
7881
          archive_cmds_need_lc=no
 
7882
        else
 
7883
          archive_cmds_need_lc=yes
 
7884
        fi
 
7885
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7886
      else
 
7887
        cat conftest.err 1>&5
 
7888
      fi
 
7889
      $rm conftest*
 
7890
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7891
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7892
      ;;
 
7893
    esac
 
7894
  fi
 
7895
  ;;
 
7896
esac
 
7897
 
 
7898
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7899
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7900
library_names_spec=
 
7901
libname_spec='lib$name'
 
7902
soname_spec=
 
7903
shrext_cmds=".so"
 
7904
postinstall_cmds=
 
7905
postuninstall_cmds=
 
7906
finish_cmds=
 
7907
finish_eval=
 
7908
shlibpath_var=
 
7909
shlibpath_overrides_runpath=unknown
 
7910
version_type=none
 
7911
dynamic_linker="$host_os ld.so"
 
7912
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7913
if test "$GCC" = yes; then
 
7914
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7915
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7916
    # if the path contains ";" then we assume it to be the separator
 
7917
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7918
    # assumed that no part of a normal pathname contains ";" but that should
 
7919
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7920
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7921
  else
 
7922
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7923
  fi
 
7924
else
 
7925
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7926
fi
 
7927
need_lib_prefix=unknown
 
7928
hardcode_into_libs=no
 
7929
 
 
7930
# when you set need_version to no, make sure it does not cause -set_version
 
7931
# flags to be left without arguments
 
7932
need_version=unknown
 
7933
 
 
7934
case $host_os in
 
7935
aix3*)
 
7936
  version_type=linux
 
7937
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7938
  shlibpath_var=LIBPATH
 
7939
 
 
7940
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7941
  soname_spec='${libname}${release}${shared_ext}$major'
 
7942
  ;;
 
7943
 
 
7944
aix4* | aix5*)
 
7945
  version_type=linux
 
7946
  need_lib_prefix=no
 
7947
  need_version=no
 
7948
  hardcode_into_libs=yes
 
7949
  if test "$host_cpu" = ia64; then
 
7950
    # AIX 5 supports IA64
 
7951
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7952
    shlibpath_var=LD_LIBRARY_PATH
 
7953
  else
 
7954
    # With GCC up to 2.95.x, collect2 would create an import file
 
7955
    # for dependence libraries.  The import file would start with
 
7956
    # the line `#! .'.  This would cause the generated library to
 
7957
    # depend on `.', always an invalid library.  This was fixed in
 
7958
    # development snapshots of GCC prior to 3.0.
 
7959
    case $host_os in
 
7960
      aix4 | aix4.[01] | aix4.[01].*)
 
7961
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7962
           echo ' yes '
 
7963
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7964
        :
 
7965
      else
 
7966
        can_build_shared=no
 
7967
      fi
 
7968
      ;;
 
7969
    esac
 
7970
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7971
    # soname into executable. Probably we can add versioning support to
 
7972
    # collect2, so additional links can be useful in future.
 
7973
    if test "$aix_use_runtimelinking" = yes; then
 
7974
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7975
      # instead of lib<name>.a to let people know that these are not
 
7976
      # typical AIX shared libraries.
 
7977
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7978
    else
 
7979
      # We preserve .a as extension for shared libraries through AIX4.2
 
7980
      # and later when we are not doing run time linking.
 
7981
      library_names_spec='${libname}${release}.a $libname.a'
 
7982
      soname_spec='${libname}${release}${shared_ext}$major'
 
7983
    fi
 
7984
    shlibpath_var=LIBPATH
 
7985
  fi
 
7986
  ;;
 
7987
 
 
7988
amigaos*)
 
7989
  library_names_spec='$libname.ixlibrary $libname.a'
 
7990
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7991
  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'
 
7992
  ;;
 
7993
 
 
7994
beos*)
 
7995
  library_names_spec='${libname}${shared_ext}'
 
7996
  dynamic_linker="$host_os ld.so"
 
7997
  shlibpath_var=LIBRARY_PATH
 
7998
  ;;
 
7999
 
 
8000
bsdi[45]*)
 
8001
  version_type=linux
 
8002
  need_version=no
 
8003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8004
  soname_spec='${libname}${release}${shared_ext}$major'
 
8005
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8006
  shlibpath_var=LD_LIBRARY_PATH
 
8007
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8008
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8009
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8010
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8011
  # libtool to hard-code these into programs
 
8012
  ;;
 
8013
 
 
8014
cygwin* | mingw* | pw32*)
 
8015
  version_type=windows
 
8016
  shrext_cmds=".dll"
 
8017
  need_version=no
 
8018
  need_lib_prefix=no
 
8019
 
 
8020
  case $GCC,$host_os in
 
8021
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8022
    library_names_spec='$libname.dll.a'
 
8023
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8024
    postinstall_cmds='base_file=`basename \${file}`~
 
8025
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8026
      dldir=$destdir/`dirname \$dlpath`~
 
8027
      test -d \$dldir || mkdir -p \$dldir~
 
8028
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8029
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8030
      dlpath=$dir/\$dldll~
 
8031
       $rm \$dlpath'
 
8032
    shlibpath_overrides_runpath=yes
 
8033
 
 
8034
    case $host_os in
 
8035
    cygwin*)
 
8036
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8037
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8038
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8039
      ;;
 
8040
    mingw*)
 
8041
      # MinGW DLLs use traditional 'lib' prefix
 
8042
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8043
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8044
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8045
        # It is most probably a Windows format PATH printed by
 
8046
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8047
        # path with ; separators, and with drive letters. We can handle the
 
8048
        # drive letters (cygwin fileutils understands them), so leave them,
 
8049
        # especially as we might pass files found there to a mingw objdump,
 
8050
        # which wouldn't understand a cygwinified path. Ahh.
 
8051
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8052
      else
 
8053
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8054
      fi
 
8055
      ;;
 
8056
    pw32*)
 
8057
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8058
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8059
      ;;
 
8060
    esac
 
8061
    ;;
 
8062
 
 
8063
  *)
 
8064
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8065
    ;;
 
8066
  esac
 
8067
  dynamic_linker='Win32 ld.exe'
 
8068
  # FIXME: first we should search . and the directory the executable is in
 
8069
  shlibpath_var=PATH
 
8070
  ;;
 
8071
 
 
8072
darwin* | rhapsody*)
 
8073
  dynamic_linker="$host_os dyld"
 
8074
  version_type=darwin
 
8075
  need_lib_prefix=no
 
8076
  need_version=no
 
8077
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8078
  soname_spec='${libname}${release}${major}$shared_ext'
 
8079
  shlibpath_overrides_runpath=yes
 
8080
  shlibpath_var=DYLD_LIBRARY_PATH
 
8081
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8082
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8083
  if test "$GCC" = yes; then
 
8084
    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"`
 
8085
  else
 
8086
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8087
  fi
 
8088
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8089
  ;;
 
8090
 
 
8091
dgux*)
 
8092
  version_type=linux
 
8093
  need_lib_prefix=no
 
8094
  need_version=no
 
8095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8096
  soname_spec='${libname}${release}${shared_ext}$major'
 
8097
  shlibpath_var=LD_LIBRARY_PATH
 
8098
  ;;
 
8099
 
 
8100
freebsd1*)
 
8101
  dynamic_linker=no
 
8102
  ;;
 
8103
 
 
8104
kfreebsd*-gnu)
 
8105
  version_type=linux
 
8106
  need_lib_prefix=no
 
8107
  need_version=no
 
8108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8109
  soname_spec='${libname}${release}${shared_ext}$major'
 
8110
  shlibpath_var=LD_LIBRARY_PATH
 
8111
  shlibpath_overrides_runpath=no
 
8112
  hardcode_into_libs=yes
 
8113
  dynamic_linker='GNU ld.so'
 
8114
  ;;
 
8115
 
 
8116
freebsd*)
 
8117
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8118
  version_type=freebsd-$objformat
 
8119
  case $version_type in
 
8120
    freebsd-elf*)
 
8121
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8122
      need_version=no
 
8123
      need_lib_prefix=no
 
8124
      ;;
 
8125
    freebsd-*)
 
8126
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8127
      need_version=yes
 
8128
      ;;
 
8129
  esac
 
8130
  shlibpath_var=LD_LIBRARY_PATH
 
8131
  case $host_os in
 
8132
  freebsd2*)
 
8133
    shlibpath_overrides_runpath=yes
 
8134
    ;;
 
8135
  freebsd3.01* | freebsdelf3.01*)
 
8136
    shlibpath_overrides_runpath=yes
 
8137
    hardcode_into_libs=yes
 
8138
    ;;
 
8139
  *) # from 3.2 on
 
8140
    shlibpath_overrides_runpath=no
 
8141
    hardcode_into_libs=yes
 
8142
    ;;
 
8143
  esac
 
8144
  ;;
 
8145
 
 
8146
gnu*)
 
8147
  version_type=linux
 
8148
  need_lib_prefix=no
 
8149
  need_version=no
 
8150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8151
  soname_spec='${libname}${release}${shared_ext}$major'
 
8152
  shlibpath_var=LD_LIBRARY_PATH
 
8153
  hardcode_into_libs=yes
 
8154
  ;;
 
8155
 
 
8156
hpux9* | hpux10* | hpux11*)
 
8157
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8158
  # link against other versions.
 
8159
  version_type=sunos
 
8160
  need_lib_prefix=no
 
8161
  need_version=no
 
8162
  case "$host_cpu" in
 
8163
  ia64*)
 
8164
    shrext_cmds='.so'
 
8165
    hardcode_into_libs=yes
 
8166
    dynamic_linker="$host_os dld.so"
 
8167
    shlibpath_var=LD_LIBRARY_PATH
 
8168
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8169
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8170
    soname_spec='${libname}${release}${shared_ext}$major'
 
8171
    if test "X$HPUX_IA64_MODE" = X32; then
 
8172
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8173
    else
 
8174
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8175
    fi
 
8176
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8177
    ;;
 
8178
   hppa*64*)
 
8179
     shrext_cmds='.sl'
 
8180
     hardcode_into_libs=yes
 
8181
     dynamic_linker="$host_os dld.sl"
 
8182
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8183
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8184
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8185
     soname_spec='${libname}${release}${shared_ext}$major'
 
8186
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8187
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8188
     ;;
 
8189
   *)
 
8190
    shrext_cmds='.sl'
 
8191
    dynamic_linker="$host_os dld.sl"
 
8192
    shlibpath_var=SHLIB_PATH
 
8193
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8194
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8195
    soname_spec='${libname}${release}${shared_ext}$major'
 
8196
    ;;
 
8197
  esac
 
8198
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8199
  postinstall_cmds='chmod 555 $lib'
 
8200
  ;;
 
8201
 
 
8202
irix5* | irix6* | nonstopux*)
 
8203
  case $host_os in
 
8204
    nonstopux*) version_type=nonstopux ;;
 
8205
    *)
 
8206
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8207
                version_type=linux
 
8208
        else
 
8209
                version_type=irix
 
8210
        fi ;;
 
8211
  esac
 
8212
  need_lib_prefix=no
 
8213
  need_version=no
 
8214
  soname_spec='${libname}${release}${shared_ext}$major'
 
8215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8216
  case $host_os in
 
8217
  irix5* | nonstopux*)
 
8218
    libsuff= shlibsuff=
 
8219
    ;;
 
8220
  *)
 
8221
    case $LD in # libtool.m4 will add one of these switches to LD
 
8222
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8223
      libsuff= shlibsuff= libmagic=32-bit;;
 
8224
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8225
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8226
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8227
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8228
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8229
    esac
 
8230
    ;;
 
8231
  esac
 
8232
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8233
  shlibpath_overrides_runpath=no
 
8234
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8235
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8236
  hardcode_into_libs=yes
 
8237
  ;;
 
8238
 
 
8239
# No shared lib support for Linux oldld, aout, or coff.
 
8240
linux*oldld* | linux*aout* | linux*coff*)
 
8241
  dynamic_linker=no
 
8242
  ;;
 
8243
 
 
8244
# This must be Linux ELF.
 
8245
linux*)
 
8246
  version_type=linux
 
8247
  need_lib_prefix=no
 
8248
  need_version=no
 
8249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8250
  soname_spec='${libname}${release}${shared_ext}$major'
 
8251
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8252
  shlibpath_var=LD_LIBRARY_PATH
 
8253
  shlibpath_overrides_runpath=no
 
8254
  # This implies no fast_install, which is unacceptable.
 
8255
  # Some rework will be needed to allow for fast_install
 
8256
  # before this can be enabled.
 
8257
  hardcode_into_libs=yes
 
8258
 
 
8259
  # find out which ABI we are using
 
8260
  libsuff=
 
8261
  case "$host_cpu" in
 
8262
  x86_64*|s390x*|powerpc64*)
 
8263
    echo '#line 8263 "configure"' > conftest.$ac_ext
 
8264
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8265
  (eval $ac_compile) 2>&5
 
8266
  ac_status=$?
 
8267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8268
  (exit $ac_status); }; then
 
8269
      case `/usr/bin/file conftest.$ac_objext` in
 
8270
      *64-bit*)
 
8271
        libsuff=64
 
8272
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
8273
        ;;
 
8274
      esac
 
8275
    fi
 
8276
    rm -rf conftest*
 
8277
    ;;
 
8278
  esac
 
8279
 
 
8280
  # Append ld.so.conf contents to the search path
 
8281
  if test -f /etc/ld.so.conf; then
 
8282
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8283
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
8284
  fi
 
8285
 
 
8286
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8287
  # powerpc, because MkLinux only supported shared libraries with the
 
8288
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8289
  # most powerpc-linux boxes support dynamic linking these days and
 
8290
  # people can always --disable-shared, the test was removed, and we
 
8291
  # assume the GNU/Linux dynamic linker is in use.
 
8292
  dynamic_linker='GNU/Linux ld.so'
 
8293
  ;;
 
8294
 
 
8295
knetbsd*-gnu)
 
8296
  version_type=linux
 
8297
  need_lib_prefix=no
 
8298
  need_version=no
 
8299
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8300
  soname_spec='${libname}${release}${shared_ext}$major'
 
8301
  shlibpath_var=LD_LIBRARY_PATH
 
8302
  shlibpath_overrides_runpath=no
 
8303
  hardcode_into_libs=yes
 
8304
  dynamic_linker='GNU ld.so'
 
8305
  ;;
 
8306
 
 
8307
netbsd*)
 
8308
  version_type=sunos
 
8309
  need_lib_prefix=no
 
8310
  need_version=no
 
8311
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8312
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8313
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8314
    dynamic_linker='NetBSD (a.out) ld.so'
 
8315
  else
 
8316
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8317
    soname_spec='${libname}${release}${shared_ext}$major'
 
8318
    dynamic_linker='NetBSD ld.elf_so'
 
8319
  fi
 
8320
  shlibpath_var=LD_LIBRARY_PATH
 
8321
  shlibpath_overrides_runpath=yes
 
8322
  hardcode_into_libs=yes
 
8323
  ;;
 
8324
 
 
8325
newsos6)
 
8326
  version_type=linux
 
8327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8328
  shlibpath_var=LD_LIBRARY_PATH
 
8329
  shlibpath_overrides_runpath=yes
 
8330
  ;;
 
8331
 
 
8332
nto-qnx*)
 
8333
  version_type=linux
 
8334
  need_lib_prefix=no
 
8335
  need_version=no
 
8336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8337
  soname_spec='${libname}${release}${shared_ext}$major'
 
8338
  shlibpath_var=LD_LIBRARY_PATH
 
8339
  shlibpath_overrides_runpath=yes
 
8340
  ;;
 
8341
 
 
8342
openbsd*)
 
8343
  version_type=sunos
 
8344
  need_lib_prefix=no
 
8345
  need_version=no
 
8346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8347
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8348
  shlibpath_var=LD_LIBRARY_PATH
 
8349
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8350
    case $host_os in
 
8351
      openbsd2.[89] | openbsd2.[89].*)
 
8352
        shlibpath_overrides_runpath=no
 
8353
        ;;
 
8354
      *)
 
8355
        shlibpath_overrides_runpath=yes
 
8356
        ;;
 
8357
      esac
 
8358
  else
 
8359
    shlibpath_overrides_runpath=yes
 
8360
  fi
 
8361
  ;;
 
8362
 
 
8363
os2*)
 
8364
  libname_spec='$name'
 
8365
  shrext_cmds=".dll"
 
8366
  need_lib_prefix=no
 
8367
  library_names_spec='$libname${shared_ext} $libname.a'
 
8368
  dynamic_linker='OS/2 ld.exe'
 
8369
  shlibpath_var=LIBPATH
 
8370
  ;;
 
8371
 
 
8372
osf3* | osf4* | osf5*)
 
8373
  version_type=osf
 
8374
  need_lib_prefix=no
 
8375
  need_version=no
 
8376
  soname_spec='${libname}${release}${shared_ext}$major'
 
8377
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8378
  shlibpath_var=LD_LIBRARY_PATH
 
8379
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8380
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8381
  ;;
 
8382
 
 
8383
sco3.2v5*)
 
8384
  version_type=osf
 
8385
  soname_spec='${libname}${release}${shared_ext}$major'
 
8386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8387
  shlibpath_var=LD_LIBRARY_PATH
 
8388
  ;;
 
8389
 
 
8390
solaris*)
 
8391
  version_type=linux
 
8392
  need_lib_prefix=no
 
8393
  need_version=no
 
8394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8395
  soname_spec='${libname}${release}${shared_ext}$major'
 
8396
  shlibpath_var=LD_LIBRARY_PATH
 
8397
  shlibpath_overrides_runpath=yes
 
8398
  hardcode_into_libs=yes
 
8399
  # ldd complains unless libraries are executable
 
8400
  postinstall_cmds='chmod +x $lib'
 
8401
  ;;
 
8402
 
 
8403
sunos4*)
 
8404
  version_type=sunos
 
8405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8406
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8407
  shlibpath_var=LD_LIBRARY_PATH
 
8408
  shlibpath_overrides_runpath=yes
 
8409
  if test "$with_gnu_ld" = yes; then
 
8410
    need_lib_prefix=no
 
8411
  fi
 
8412
  need_version=yes
 
8413
  ;;
 
8414
 
 
8415
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8416
  version_type=linux
 
8417
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8418
  soname_spec='${libname}${release}${shared_ext}$major'
 
8419
  shlibpath_var=LD_LIBRARY_PATH
 
8420
  case $host_vendor in
 
8421
    sni)
 
8422
      shlibpath_overrides_runpath=no
 
8423
      need_lib_prefix=no
 
8424
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8425
      runpath_var=LD_RUN_PATH
 
8426
      ;;
 
8427
    siemens)
 
8428
      need_lib_prefix=no
 
8429
      ;;
 
8430
    motorola)
 
8431
      need_lib_prefix=no
 
8432
      need_version=no
 
8433
      shlibpath_overrides_runpath=no
 
8434
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8435
      ;;
 
8436
  esac
 
8437
  ;;
 
8438
 
 
8439
sysv4*MP*)
 
8440
  if test -d /usr/nec ;then
 
8441
    version_type=linux
 
8442
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8443
    soname_spec='$libname${shared_ext}.$major'
 
8444
    shlibpath_var=LD_LIBRARY_PATH
 
8445
  fi
 
8446
  ;;
 
8447
 
 
8448
uts4*)
 
8449
  version_type=linux
 
8450
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8451
  soname_spec='${libname}${release}${shared_ext}$major'
 
8452
  shlibpath_var=LD_LIBRARY_PATH
 
8453
  ;;
 
8454
 
 
8455
*)
 
8456
  dynamic_linker=no
 
8457
  ;;
 
8458
esac
 
8459
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8460
echo "${ECHO_T}$dynamic_linker" >&6
 
8461
test "$dynamic_linker" = no && can_build_shared=no
 
8462
 
 
8463
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8464
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8465
hardcode_action=
 
8466
if test -n "$hardcode_libdir_flag_spec" || \
 
8467
   test -n "$runpath_var" || \
 
8468
   test "X$hardcode_automatic" = "Xyes" ; then
 
8469
 
 
8470
  # We can hardcode non-existant directories.
 
8471
  if test "$hardcode_direct" != no &&
 
8472
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8473
     # have to relink, otherwise we might link with an installed library
 
8474
     # when we should be linking with a yet-to-be-installed one
 
8475
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8476
     test "$hardcode_minus_L" != no; then
 
8477
    # Linking always hardcodes the temporary library directory.
 
8478
    hardcode_action=relink
 
8479
  else
 
8480
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8481
    hardcode_action=immediate
 
8482
  fi
 
8483
else
 
8484
  # We cannot hardcode anything, or else we can only hardcode existing
 
8485
  # directories.
 
8486
  hardcode_action=unsupported
 
8487
fi
 
8488
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8489
echo "${ECHO_T}$hardcode_action" >&6
 
8490
 
 
8491
if test "$hardcode_action" = relink; then
 
8492
  # Fast installation is not supported
 
8493
  enable_fast_install=no
 
8494
elif test "$shlibpath_overrides_runpath" = yes ||
 
8495
     test "$enable_shared" = no; then
 
8496
  # Fast installation is not necessary
 
8497
  enable_fast_install=needless
 
8498
fi
 
8499
 
 
8500
striplib=
 
8501
old_striplib=
 
8502
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8503
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8504
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8505
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8506
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8507
  echo "$as_me:$LINENO: result: yes" >&5
 
8508
echo "${ECHO_T}yes" >&6
 
8509
else
 
8510
# FIXME - insert some real tests, host_os isn't really good enough
 
8511
  case $host_os in
 
8512
   darwin*)
 
8513
       if test -n "$STRIP" ; then
 
8514
         striplib="$STRIP -x"
 
8515
         echo "$as_me:$LINENO: result: yes" >&5
 
8516
echo "${ECHO_T}yes" >&6
 
8517
       else
 
8518
  echo "$as_me:$LINENO: result: no" >&5
 
8519
echo "${ECHO_T}no" >&6
 
8520
fi
 
8521
       ;;
 
8522
   *)
 
8523
  echo "$as_me:$LINENO: result: no" >&5
 
8524
echo "${ECHO_T}no" >&6
 
8525
    ;;
 
8526
  esac
 
8527
fi
 
8528
 
 
8529
if test "x$enable_dlopen" != xyes; then
 
8530
  enable_dlopen=unknown
 
8531
  enable_dlopen_self=unknown
 
8532
  enable_dlopen_self_static=unknown
 
8533
else
 
8534
  lt_cv_dlopen=no
 
8535
  lt_cv_dlopen_libs=
 
8536
 
 
8537
  case $host_os in
 
8538
  beos*)
 
8539
    lt_cv_dlopen="load_add_on"
 
8540
    lt_cv_dlopen_libs=
 
8541
    lt_cv_dlopen_self=yes
 
8542
    ;;
 
8543
 
 
8544
  mingw* | pw32*)
 
8545
    lt_cv_dlopen="LoadLibrary"
 
8546
    lt_cv_dlopen_libs=
 
8547
   ;;
 
8548
 
 
8549
  cygwin*)
 
8550
    lt_cv_dlopen="dlopen"
 
8551
    lt_cv_dlopen_libs=
 
8552
   ;;
 
8553
 
 
8554
  darwin*)
 
8555
  # if libdl is installed we need to link against it
 
8556
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8557
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8558
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8560
else
 
8561
  ac_check_lib_save_LIBS=$LIBS
 
8562
LIBS="-ldl  $LIBS"
 
8563
cat >conftest.$ac_ext <<_ACEOF
 
8564
/* confdefs.h.  */
 
8565
_ACEOF
 
8566
cat confdefs.h >>conftest.$ac_ext
 
8567
cat >>conftest.$ac_ext <<_ACEOF
 
8568
/* end confdefs.h.  */
 
8569
 
 
8570
/* Override any gcc2 internal prototype to avoid an error.  */
 
8571
#ifdef __cplusplus
 
8572
extern "C"
 
8573
#endif
 
8574
/* We use char because int might match the return type of a gcc2
 
8575
   builtin and then its argument prototype would still apply.  */
 
8576
char dlopen ();
 
8577
int
 
8578
main ()
 
8579
{
 
8580
dlopen ();
 
8581
  ;
 
8582
  return 0;
 
8583
}
 
8584
_ACEOF
 
8585
rm -f conftest.$ac_objext conftest$ac_exeext
 
8586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8587
  (eval $ac_link) 2>conftest.er1
 
8588
  ac_status=$?
 
8589
  grep -v '^ *+' conftest.er1 >conftest.err
 
8590
  rm -f conftest.er1
 
8591
  cat conftest.err >&5
 
8592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8593
  (exit $ac_status); } &&
 
8594
         { ac_try='test -z "$ac_c_werror_flag"
 
8595
                         || test ! -s conftest.err'
 
8596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8597
  (eval $ac_try) 2>&5
 
8598
  ac_status=$?
 
8599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8600
  (exit $ac_status); }; } &&
 
8601
         { ac_try='test -s conftest$ac_exeext'
 
8602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8603
  (eval $ac_try) 2>&5
 
8604
  ac_status=$?
 
8605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8606
  (exit $ac_status); }; }; then
 
8607
  ac_cv_lib_dl_dlopen=yes
 
8608
else
 
8609
  echo "$as_me: failed program was:" >&5
 
8610
sed 's/^/| /' conftest.$ac_ext >&5
 
8611
 
 
8612
ac_cv_lib_dl_dlopen=no
 
8613
fi
 
8614
rm -f conftest.err conftest.$ac_objext \
 
8615
      conftest$ac_exeext conftest.$ac_ext
 
8616
LIBS=$ac_check_lib_save_LIBS
 
8617
fi
 
8618
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8619
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8620
if test $ac_cv_lib_dl_dlopen = yes; then
 
8621
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8622
else
 
8623
 
 
8624
    lt_cv_dlopen="dyld"
 
8625
    lt_cv_dlopen_libs=
 
8626
    lt_cv_dlopen_self=yes
 
8627
 
 
8628
fi
 
8629
 
 
8630
   ;;
 
8631
 
 
8632
  *)
 
8633
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8634
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8635
if test "${ac_cv_func_shl_load+set}" = set; then
 
8636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8637
else
 
8638
  cat >conftest.$ac_ext <<_ACEOF
 
8639
/* confdefs.h.  */
 
8640
_ACEOF
 
8641
cat confdefs.h >>conftest.$ac_ext
 
8642
cat >>conftest.$ac_ext <<_ACEOF
 
8643
/* end confdefs.h.  */
 
8644
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8645
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8646
#define shl_load innocuous_shl_load
 
8647
 
 
8648
/* System header to define __stub macros and hopefully few prototypes,
 
8649
    which can conflict with char shl_load (); below.
 
8650
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8651
    <limits.h> exists even on freestanding compilers.  */
 
8652
 
 
8653
#ifdef __STDC__
 
8654
# include <limits.h>
 
8655
#else
 
8656
# include <assert.h>
 
8657
#endif
 
8658
 
 
8659
#undef shl_load
 
8660
 
 
8661
/* Override any gcc2 internal prototype to avoid an error.  */
 
8662
#ifdef __cplusplus
 
8663
extern "C"
 
8664
{
 
8665
#endif
 
8666
/* We use char because int might match the return type of a gcc2
 
8667
   builtin and then its argument prototype would still apply.  */
 
8668
char shl_load ();
 
8669
/* The GNU C library defines this for functions which it implements
 
8670
    to always fail with ENOSYS.  Some functions are actually named
 
8671
    something starting with __ and the normal name is an alias.  */
 
8672
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8673
choke me
 
8674
#else
 
8675
char (*f) () = shl_load;
 
8676
#endif
 
8677
#ifdef __cplusplus
 
8678
}
 
8679
#endif
 
8680
 
 
8681
int
 
8682
main ()
 
8683
{
 
8684
return f != shl_load;
 
8685
  ;
 
8686
  return 0;
 
8687
}
 
8688
_ACEOF
 
8689
rm -f conftest.$ac_objext conftest$ac_exeext
 
8690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8691
  (eval $ac_link) 2>conftest.er1
 
8692
  ac_status=$?
 
8693
  grep -v '^ *+' conftest.er1 >conftest.err
 
8694
  rm -f conftest.er1
 
8695
  cat conftest.err >&5
 
8696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8697
  (exit $ac_status); } &&
 
8698
         { ac_try='test -z "$ac_c_werror_flag"
 
8699
                         || test ! -s conftest.err'
 
8700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8701
  (eval $ac_try) 2>&5
 
8702
  ac_status=$?
 
8703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8704
  (exit $ac_status); }; } &&
 
8705
         { ac_try='test -s conftest$ac_exeext'
 
8706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8707
  (eval $ac_try) 2>&5
 
8708
  ac_status=$?
 
8709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8710
  (exit $ac_status); }; }; then
 
8711
  ac_cv_func_shl_load=yes
 
8712
else
 
8713
  echo "$as_me: failed program was:" >&5
 
8714
sed 's/^/| /' conftest.$ac_ext >&5
 
8715
 
 
8716
ac_cv_func_shl_load=no
 
8717
fi
 
8718
rm -f conftest.err conftest.$ac_objext \
 
8719
      conftest$ac_exeext conftest.$ac_ext
 
8720
fi
 
8721
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8722
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8723
if test $ac_cv_func_shl_load = yes; then
 
8724
  lt_cv_dlopen="shl_load"
 
8725
else
 
8726
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8727
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8728
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8730
else
 
8731
  ac_check_lib_save_LIBS=$LIBS
 
8732
LIBS="-ldld  $LIBS"
 
8733
cat >conftest.$ac_ext <<_ACEOF
 
8734
/* confdefs.h.  */
 
8735
_ACEOF
 
8736
cat confdefs.h >>conftest.$ac_ext
 
8737
cat >>conftest.$ac_ext <<_ACEOF
 
8738
/* end confdefs.h.  */
 
8739
 
 
8740
/* Override any gcc2 internal prototype to avoid an error.  */
 
8741
#ifdef __cplusplus
 
8742
extern "C"
 
8743
#endif
 
8744
/* We use char because int might match the return type of a gcc2
 
8745
   builtin and then its argument prototype would still apply.  */
 
8746
char shl_load ();
 
8747
int
 
8748
main ()
 
8749
{
 
8750
shl_load ();
 
8751
  ;
 
8752
  return 0;
 
8753
}
 
8754
_ACEOF
 
8755
rm -f conftest.$ac_objext conftest$ac_exeext
 
8756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8757
  (eval $ac_link) 2>conftest.er1
 
8758
  ac_status=$?
 
8759
  grep -v '^ *+' conftest.er1 >conftest.err
 
8760
  rm -f conftest.er1
 
8761
  cat conftest.err >&5
 
8762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8763
  (exit $ac_status); } &&
 
8764
         { ac_try='test -z "$ac_c_werror_flag"
 
8765
                         || test ! -s conftest.err'
 
8766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8767
  (eval $ac_try) 2>&5
 
8768
  ac_status=$?
 
8769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8770
  (exit $ac_status); }; } &&
 
8771
         { ac_try='test -s conftest$ac_exeext'
 
8772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8773
  (eval $ac_try) 2>&5
 
8774
  ac_status=$?
 
8775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8776
  (exit $ac_status); }; }; then
 
8777
  ac_cv_lib_dld_shl_load=yes
 
8778
else
 
8779
  echo "$as_me: failed program was:" >&5
 
8780
sed 's/^/| /' conftest.$ac_ext >&5
 
8781
 
 
8782
ac_cv_lib_dld_shl_load=no
 
8783
fi
 
8784
rm -f conftest.err conftest.$ac_objext \
 
8785
      conftest$ac_exeext conftest.$ac_ext
 
8786
LIBS=$ac_check_lib_save_LIBS
 
8787
fi
 
8788
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8789
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8790
if test $ac_cv_lib_dld_shl_load = yes; then
 
8791
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8792
else
 
8793
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8794
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8795
if test "${ac_cv_func_dlopen+set}" = set; then
 
8796
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8797
else
 
8798
  cat >conftest.$ac_ext <<_ACEOF
 
8799
/* confdefs.h.  */
 
8800
_ACEOF
 
8801
cat confdefs.h >>conftest.$ac_ext
 
8802
cat >>conftest.$ac_ext <<_ACEOF
 
8803
/* end confdefs.h.  */
 
8804
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8805
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8806
#define dlopen innocuous_dlopen
 
8807
 
 
8808
/* System header to define __stub macros and hopefully few prototypes,
 
8809
    which can conflict with char dlopen (); below.
 
8810
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8811
    <limits.h> exists even on freestanding compilers.  */
 
8812
 
 
8813
#ifdef __STDC__
 
8814
# include <limits.h>
 
8815
#else
 
8816
# include <assert.h>
 
8817
#endif
 
8818
 
 
8819
#undef dlopen
 
8820
 
 
8821
/* Override any gcc2 internal prototype to avoid an error.  */
 
8822
#ifdef __cplusplus
 
8823
extern "C"
 
8824
{
 
8825
#endif
 
8826
/* We use char because int might match the return type of a gcc2
 
8827
   builtin and then its argument prototype would still apply.  */
 
8828
char dlopen ();
 
8829
/* The GNU C library defines this for functions which it implements
 
8830
    to always fail with ENOSYS.  Some functions are actually named
 
8831
    something starting with __ and the normal name is an alias.  */
 
8832
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8833
choke me
 
8834
#else
 
8835
char (*f) () = dlopen;
 
8836
#endif
 
8837
#ifdef __cplusplus
 
8838
}
 
8839
#endif
 
8840
 
 
8841
int
 
8842
main ()
 
8843
{
 
8844
return f != dlopen;
 
8845
  ;
 
8846
  return 0;
 
8847
}
 
8848
_ACEOF
 
8849
rm -f conftest.$ac_objext conftest$ac_exeext
 
8850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8851
  (eval $ac_link) 2>conftest.er1
 
8852
  ac_status=$?
 
8853
  grep -v '^ *+' conftest.er1 >conftest.err
 
8854
  rm -f conftest.er1
 
8855
  cat conftest.err >&5
 
8856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8857
  (exit $ac_status); } &&
 
8858
         { ac_try='test -z "$ac_c_werror_flag"
 
8859
                         || test ! -s conftest.err'
 
8860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8861
  (eval $ac_try) 2>&5
 
8862
  ac_status=$?
 
8863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8864
  (exit $ac_status); }; } &&
 
8865
         { ac_try='test -s conftest$ac_exeext'
 
8866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8867
  (eval $ac_try) 2>&5
 
8868
  ac_status=$?
 
8869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8870
  (exit $ac_status); }; }; then
 
8871
  ac_cv_func_dlopen=yes
 
8872
else
 
8873
  echo "$as_me: failed program was:" >&5
 
8874
sed 's/^/| /' conftest.$ac_ext >&5
 
8875
 
 
8876
ac_cv_func_dlopen=no
 
8877
fi
 
8878
rm -f conftest.err conftest.$ac_objext \
 
8879
      conftest$ac_exeext conftest.$ac_ext
 
8880
fi
 
8881
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8882
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8883
if test $ac_cv_func_dlopen = yes; then
 
8884
  lt_cv_dlopen="dlopen"
 
8885
else
 
8886
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8887
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8888
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8890
else
 
8891
  ac_check_lib_save_LIBS=$LIBS
 
8892
LIBS="-ldl  $LIBS"
 
8893
cat >conftest.$ac_ext <<_ACEOF
 
8894
/* confdefs.h.  */
 
8895
_ACEOF
 
8896
cat confdefs.h >>conftest.$ac_ext
 
8897
cat >>conftest.$ac_ext <<_ACEOF
 
8898
/* end confdefs.h.  */
 
8899
 
 
8900
/* Override any gcc2 internal prototype to avoid an error.  */
 
8901
#ifdef __cplusplus
 
8902
extern "C"
 
8903
#endif
 
8904
/* We use char because int might match the return type of a gcc2
 
8905
   builtin and then its argument prototype would still apply.  */
 
8906
char dlopen ();
 
8907
int
 
8908
main ()
 
8909
{
 
8910
dlopen ();
 
8911
  ;
 
8912
  return 0;
 
8913
}
 
8914
_ACEOF
 
8915
rm -f conftest.$ac_objext conftest$ac_exeext
 
8916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8917
  (eval $ac_link) 2>conftest.er1
 
8918
  ac_status=$?
 
8919
  grep -v '^ *+' conftest.er1 >conftest.err
 
8920
  rm -f conftest.er1
 
8921
  cat conftest.err >&5
 
8922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8923
  (exit $ac_status); } &&
 
8924
         { ac_try='test -z "$ac_c_werror_flag"
 
8925
                         || test ! -s conftest.err'
 
8926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8927
  (eval $ac_try) 2>&5
 
8928
  ac_status=$?
 
8929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8930
  (exit $ac_status); }; } &&
 
8931
         { ac_try='test -s conftest$ac_exeext'
 
8932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8933
  (eval $ac_try) 2>&5
 
8934
  ac_status=$?
 
8935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8936
  (exit $ac_status); }; }; then
 
8937
  ac_cv_lib_dl_dlopen=yes
 
8938
else
 
8939
  echo "$as_me: failed program was:" >&5
 
8940
sed 's/^/| /' conftest.$ac_ext >&5
 
8941
 
 
8942
ac_cv_lib_dl_dlopen=no
 
8943
fi
 
8944
rm -f conftest.err conftest.$ac_objext \
 
8945
      conftest$ac_exeext conftest.$ac_ext
 
8946
LIBS=$ac_check_lib_save_LIBS
 
8947
fi
 
8948
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8949
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8950
if test $ac_cv_lib_dl_dlopen = yes; then
 
8951
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8952
else
 
8953
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8954
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8955
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8957
else
 
8958
  ac_check_lib_save_LIBS=$LIBS
 
8959
LIBS="-lsvld  $LIBS"
 
8960
cat >conftest.$ac_ext <<_ACEOF
 
8961
/* confdefs.h.  */
 
8962
_ACEOF
 
8963
cat confdefs.h >>conftest.$ac_ext
 
8964
cat >>conftest.$ac_ext <<_ACEOF
 
8965
/* end confdefs.h.  */
 
8966
 
 
8967
/* Override any gcc2 internal prototype to avoid an error.  */
 
8968
#ifdef __cplusplus
 
8969
extern "C"
 
8970
#endif
 
8971
/* We use char because int might match the return type of a gcc2
 
8972
   builtin and then its argument prototype would still apply.  */
 
8973
char dlopen ();
 
8974
int
 
8975
main ()
 
8976
{
 
8977
dlopen ();
 
8978
  ;
 
8979
  return 0;
 
8980
}
 
8981
_ACEOF
 
8982
rm -f conftest.$ac_objext conftest$ac_exeext
 
8983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8984
  (eval $ac_link) 2>conftest.er1
 
8985
  ac_status=$?
 
8986
  grep -v '^ *+' conftest.er1 >conftest.err
 
8987
  rm -f conftest.er1
 
8988
  cat conftest.err >&5
 
8989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8990
  (exit $ac_status); } &&
 
8991
         { ac_try='test -z "$ac_c_werror_flag"
 
8992
                         || test ! -s conftest.err'
 
8993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8994
  (eval $ac_try) 2>&5
 
8995
  ac_status=$?
 
8996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8997
  (exit $ac_status); }; } &&
 
8998
         { ac_try='test -s conftest$ac_exeext'
 
8999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9000
  (eval $ac_try) 2>&5
 
9001
  ac_status=$?
 
9002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9003
  (exit $ac_status); }; }; then
 
9004
  ac_cv_lib_svld_dlopen=yes
 
9005
else
 
9006
  echo "$as_me: failed program was:" >&5
 
9007
sed 's/^/| /' conftest.$ac_ext >&5
 
9008
 
 
9009
ac_cv_lib_svld_dlopen=no
 
9010
fi
 
9011
rm -f conftest.err conftest.$ac_objext \
 
9012
      conftest$ac_exeext conftest.$ac_ext
 
9013
LIBS=$ac_check_lib_save_LIBS
 
9014
fi
 
9015
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9016
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9017
if test $ac_cv_lib_svld_dlopen = yes; then
 
9018
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9019
else
 
9020
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9021
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9022
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9024
else
 
9025
  ac_check_lib_save_LIBS=$LIBS
 
9026
LIBS="-ldld  $LIBS"
 
9027
cat >conftest.$ac_ext <<_ACEOF
 
9028
/* confdefs.h.  */
 
9029
_ACEOF
 
9030
cat confdefs.h >>conftest.$ac_ext
 
9031
cat >>conftest.$ac_ext <<_ACEOF
 
9032
/* end confdefs.h.  */
 
9033
 
 
9034
/* Override any gcc2 internal prototype to avoid an error.  */
 
9035
#ifdef __cplusplus
 
9036
extern "C"
 
9037
#endif
 
9038
/* We use char because int might match the return type of a gcc2
 
9039
   builtin and then its argument prototype would still apply.  */
 
9040
char dld_link ();
 
9041
int
 
9042
main ()
 
9043
{
 
9044
dld_link ();
 
9045
  ;
 
9046
  return 0;
 
9047
}
 
9048
_ACEOF
 
9049
rm -f conftest.$ac_objext conftest$ac_exeext
 
9050
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9051
  (eval $ac_link) 2>conftest.er1
 
9052
  ac_status=$?
 
9053
  grep -v '^ *+' conftest.er1 >conftest.err
 
9054
  rm -f conftest.er1
 
9055
  cat conftest.err >&5
 
9056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9057
  (exit $ac_status); } &&
 
9058
         { ac_try='test -z "$ac_c_werror_flag"
 
9059
                         || test ! -s conftest.err'
 
9060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9061
  (eval $ac_try) 2>&5
 
9062
  ac_status=$?
 
9063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9064
  (exit $ac_status); }; } &&
 
9065
         { ac_try='test -s conftest$ac_exeext'
 
9066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9067
  (eval $ac_try) 2>&5
 
9068
  ac_status=$?
 
9069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9070
  (exit $ac_status); }; }; then
 
9071
  ac_cv_lib_dld_dld_link=yes
 
9072
else
 
9073
  echo "$as_me: failed program was:" >&5
 
9074
sed 's/^/| /' conftest.$ac_ext >&5
 
9075
 
 
9076
ac_cv_lib_dld_dld_link=no
 
9077
fi
 
9078
rm -f conftest.err conftest.$ac_objext \
 
9079
      conftest$ac_exeext conftest.$ac_ext
 
9080
LIBS=$ac_check_lib_save_LIBS
 
9081
fi
 
9082
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9083
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9084
if test $ac_cv_lib_dld_dld_link = yes; then
 
9085
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9086
fi
 
9087
 
 
9088
 
 
9089
fi
 
9090
 
 
9091
 
 
9092
fi
 
9093
 
 
9094
 
 
9095
fi
 
9096
 
 
9097
 
 
9098
fi
 
9099
 
 
9100
 
 
9101
fi
 
9102
 
 
9103
    ;;
 
9104
  esac
 
9105
 
 
9106
  if test "x$lt_cv_dlopen" != xno; then
 
9107
    enable_dlopen=yes
 
9108
  else
 
9109
    enable_dlopen=no
 
9110
  fi
 
9111
 
 
9112
  case $lt_cv_dlopen in
 
9113
  dlopen)
 
9114
    save_CPPFLAGS="$CPPFLAGS"
 
9115
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9116
 
 
9117
    save_LDFLAGS="$LDFLAGS"
 
9118
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9119
 
 
9120
    save_LIBS="$LIBS"
 
9121
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9122
 
 
9123
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9124
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9125
if test "${lt_cv_dlopen_self+set}" = set; then
 
9126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9127
else
 
9128
          if test "$cross_compiling" = yes; then :
 
9129
  lt_cv_dlopen_self=cross
 
9130
else
 
9131
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9132
  lt_status=$lt_dlunknown
 
9133
  cat > conftest.$ac_ext <<EOF
 
9134
#line 9134 "configure"
 
9135
#include "confdefs.h"
 
9136
 
 
9137
#if HAVE_DLFCN_H
 
9138
#include <dlfcn.h>
 
9139
#endif
 
9140
 
 
9141
#include <stdio.h>
 
9142
 
 
9143
#ifdef RTLD_GLOBAL
 
9144
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9145
#else
 
9146
#  ifdef DL_GLOBAL
 
9147
#    define LT_DLGLOBAL         DL_GLOBAL
 
9148
#  else
 
9149
#    define LT_DLGLOBAL         0
 
9150
#  endif
 
9151
#endif
 
9152
 
 
9153
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9154
   find out it does not work in some platform. */
 
9155
#ifndef LT_DLLAZY_OR_NOW
 
9156
#  ifdef RTLD_LAZY
 
9157
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9158
#  else
 
9159
#    ifdef DL_LAZY
 
9160
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9161
#    else
 
9162
#      ifdef RTLD_NOW
 
9163
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9164
#      else
 
9165
#        ifdef DL_NOW
 
9166
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9167
#        else
 
9168
#          define LT_DLLAZY_OR_NOW      0
 
9169
#        endif
 
9170
#      endif
 
9171
#    endif
 
9172
#  endif
 
9173
#endif
 
9174
 
 
9175
#ifdef __cplusplus
 
9176
extern "C" void exit (int);
 
9177
#endif
 
9178
 
 
9179
void fnord() { int i=42;}
 
9180
int main ()
 
9181
{
 
9182
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9183
  int status = $lt_dlunknown;
 
9184
 
 
9185
  if (self)
 
9186
    {
 
9187
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9188
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9189
      /* dlclose (self); */
 
9190
    }
 
9191
 
 
9192
    exit (status);
 
9193
}
 
9194
EOF
 
9195
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9196
  (eval $ac_link) 2>&5
 
9197
  ac_status=$?
 
9198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9199
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9200
    (./conftest; exit; ) 2>/dev/null
 
9201
    lt_status=$?
 
9202
    case x$lt_status in
 
9203
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9204
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9205
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9206
    esac
 
9207
  else :
 
9208
    # compilation failed
 
9209
    lt_cv_dlopen_self=no
 
9210
  fi
 
9211
fi
 
9212
rm -fr conftest*
 
9213
 
 
9214
 
 
9215
fi
 
9216
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9217
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9218
 
 
9219
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9220
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9221
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9222
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9223
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9225
else
 
9226
          if test "$cross_compiling" = yes; then :
 
9227
  lt_cv_dlopen_self_static=cross
 
9228
else
 
9229
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9230
  lt_status=$lt_dlunknown
 
9231
  cat > conftest.$ac_ext <<EOF
 
9232
#line 9232 "configure"
 
9233
#include "confdefs.h"
 
9234
 
 
9235
#if HAVE_DLFCN_H
 
9236
#include <dlfcn.h>
 
9237
#endif
 
9238
 
 
9239
#include <stdio.h>
 
9240
 
 
9241
#ifdef RTLD_GLOBAL
 
9242
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9243
#else
 
9244
#  ifdef DL_GLOBAL
 
9245
#    define LT_DLGLOBAL         DL_GLOBAL
 
9246
#  else
 
9247
#    define LT_DLGLOBAL         0
 
9248
#  endif
 
9249
#endif
 
9250
 
 
9251
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9252
   find out it does not work in some platform. */
 
9253
#ifndef LT_DLLAZY_OR_NOW
 
9254
#  ifdef RTLD_LAZY
 
9255
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9256
#  else
 
9257
#    ifdef DL_LAZY
 
9258
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9259
#    else
 
9260
#      ifdef RTLD_NOW
 
9261
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9262
#      else
 
9263
#        ifdef DL_NOW
 
9264
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9265
#        else
 
9266
#          define LT_DLLAZY_OR_NOW      0
 
9267
#        endif
 
9268
#      endif
 
9269
#    endif
 
9270
#  endif
 
9271
#endif
 
9272
 
 
9273
#ifdef __cplusplus
 
9274
extern "C" void exit (int);
 
9275
#endif
 
9276
 
 
9277
void fnord() { int i=42;}
 
9278
int main ()
 
9279
{
 
9280
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9281
  int status = $lt_dlunknown;
 
9282
 
 
9283
  if (self)
 
9284
    {
 
9285
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9286
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9287
      /* dlclose (self); */
 
9288
    }
 
9289
 
 
9290
    exit (status);
 
9291
}
 
9292
EOF
 
9293
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9294
  (eval $ac_link) 2>&5
 
9295
  ac_status=$?
 
9296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9297
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9298
    (./conftest; exit; ) 2>/dev/null
 
9299
    lt_status=$?
 
9300
    case x$lt_status in
 
9301
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9302
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9303
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9304
    esac
 
9305
  else :
 
9306
    # compilation failed
 
9307
    lt_cv_dlopen_self_static=no
 
9308
  fi
 
9309
fi
 
9310
rm -fr conftest*
 
9311
 
 
9312
 
 
9313
fi
 
9314
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9315
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9316
    fi
 
9317
 
 
9318
    CPPFLAGS="$save_CPPFLAGS"
 
9319
    LDFLAGS="$save_LDFLAGS"
 
9320
    LIBS="$save_LIBS"
 
9321
    ;;
 
9322
  esac
 
9323
 
 
9324
  case $lt_cv_dlopen_self in
 
9325
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9326
  *) enable_dlopen_self=unknown ;;
 
9327
  esac
 
9328
 
 
9329
  case $lt_cv_dlopen_self_static in
 
9330
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9331
  *) enable_dlopen_self_static=unknown ;;
 
9332
  esac
 
9333
fi
 
9334
 
 
9335
 
 
9336
# Report which librarie types wil actually be built
 
9337
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9338
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9339
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9340
echo "${ECHO_T}$can_build_shared" >&6
 
9341
 
 
9342
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9343
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9344
test "$can_build_shared" = "no" && enable_shared=no
 
9345
 
 
9346
# On AIX, shared libraries and static libraries use the same namespace, and
 
9347
# are all built from PIC.
 
9348
case "$host_os" in
 
9349
aix3*)
 
9350
  test "$enable_shared" = yes && enable_static=no
 
9351
  if test -n "$RANLIB"; then
 
9352
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9353
    postinstall_cmds='$RANLIB $lib'
 
9354
  fi
 
9355
  ;;
 
9356
 
 
9357
aix4* | aix5*)
 
9358
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9359
    test "$enable_shared" = yes && enable_static=no
 
9360
  fi
 
9361
    ;;
 
9362
esac
 
9363
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9364
echo "${ECHO_T}$enable_shared" >&6
 
9365
 
 
9366
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9367
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9368
# Make sure either enable_shared or enable_static is yes.
 
9369
test "$enable_shared" = yes || enable_static=yes
 
9370
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9371
echo "${ECHO_T}$enable_static" >&6
 
9372
 
 
9373
# The else clause should only fire when bootstrapping the
 
9374
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9375
# with your package, and you will get complaints that there are
 
9376
# no rules to generate ltmain.sh.
 
9377
if test -f "$ltmain"; then
 
9378
  # See if we are running on zsh, and set the options which allow our commands through
 
9379
  # without removal of \ escapes.
 
9380
  if test -n "${ZSH_VERSION+set}" ; then
 
9381
    setopt NO_GLOB_SUBST
 
9382
  fi
 
9383
  # Now quote all the things that may contain metacharacters while being
 
9384
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9385
  # variables and quote the copies for generation of the libtool script.
 
9386
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9387
    SED SHELL STRIP \
 
9388
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9389
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9390
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9391
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9392
    lt_cv_sys_global_symbol_to_c_name_address \
 
9393
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9394
    old_postinstall_cmds old_postuninstall_cmds \
 
9395
    compiler \
 
9396
    CC \
 
9397
    LD \
 
9398
    lt_prog_compiler_wl \
 
9399
    lt_prog_compiler_pic \
 
9400
    lt_prog_compiler_static \
 
9401
    lt_prog_compiler_no_builtin_flag \
 
9402
    export_dynamic_flag_spec \
 
9403
    thread_safe_flag_spec \
 
9404
    whole_archive_flag_spec \
 
9405
    enable_shared_with_static_runtimes \
 
9406
    old_archive_cmds \
 
9407
    old_archive_from_new_cmds \
 
9408
    predep_objects \
 
9409
    postdep_objects \
 
9410
    predeps \
 
9411
    postdeps \
 
9412
    compiler_lib_search_path \
 
9413
    archive_cmds \
 
9414
    archive_expsym_cmds \
 
9415
    postinstall_cmds \
 
9416
    postuninstall_cmds \
 
9417
    old_archive_from_expsyms_cmds \
 
9418
    allow_undefined_flag \
 
9419
    no_undefined_flag \
 
9420
    export_symbols_cmds \
 
9421
    hardcode_libdir_flag_spec \
 
9422
    hardcode_libdir_flag_spec_ld \
 
9423
    hardcode_libdir_separator \
 
9424
    hardcode_automatic \
 
9425
    module_cmds \
 
9426
    module_expsym_cmds \
 
9427
    lt_cv_prog_compiler_c_o \
 
9428
    exclude_expsyms \
 
9429
    include_expsyms; do
 
9430
 
 
9431
    case $var in
 
9432
    old_archive_cmds | \
 
9433
    old_archive_from_new_cmds | \
 
9434
    archive_cmds | \
 
9435
    archive_expsym_cmds | \
 
9436
    module_cmds | \
 
9437
    module_expsym_cmds | \
 
9438
    old_archive_from_expsyms_cmds | \
 
9439
    export_symbols_cmds | \
 
9440
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9441
    postinstall_cmds | postuninstall_cmds | \
 
9442
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9443
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9444
      # Double-quote double-evaled strings.
 
9445
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9446
      ;;
 
9447
    *)
 
9448
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9449
      ;;
 
9450
    esac
 
9451
  done
 
9452
 
 
9453
  case $lt_echo in
 
9454
  *'\$0 --fallback-echo"')
 
9455
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9456
    ;;
 
9457
  esac
 
9458
 
 
9459
cfgfile="${ofile}T"
 
9460
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9461
  $rm -f "$cfgfile"
 
9462
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9463
echo "$as_me: creating $ofile" >&6;}
 
9464
 
 
9465
  cat <<__EOF__ >> "$cfgfile"
 
9466
#! $SHELL
 
9467
 
 
9468
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9469
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9470
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9471
#
 
9472
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9473
# Free Software Foundation, Inc.
 
9474
#
 
9475
# This file is part of GNU Libtool:
 
9476
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9477
#
 
9478
# This program is free software; you can redistribute it and/or modify
 
9479
# it under the terms of the GNU General Public License as published by
 
9480
# the Free Software Foundation; either version 2 of the License, or
 
9481
# (at your option) any later version.
 
9482
#
 
9483
# This program is distributed in the hope that it will be useful, but
 
9484
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9485
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9486
# General Public License for more details.
 
9487
#
 
9488
# You should have received a copy of the GNU General Public License
 
9489
# along with this program; if not, write to the Free Software
 
9490
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9491
#
 
9492
# As a special exception to the GNU General Public License, if you
 
9493
# distribute this file as part of a program that contains a
 
9494
# configuration script generated by Autoconf, you may include it under
 
9495
# the same distribution terms that you use for the rest of that program.
 
9496
 
 
9497
# A sed program that does not truncate output.
 
9498
SED=$lt_SED
 
9499
 
 
9500
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9501
Xsed="$SED -e s/^X//"
 
9502
 
 
9503
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9504
# if CDPATH is set.
 
9505
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9506
 
 
9507
# The names of the tagged configurations supported by this script.
 
9508
available_tags=
 
9509
 
 
9510
# ### BEGIN LIBTOOL CONFIG
 
9511
 
 
9512
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9513
 
 
9514
# Shell to use when invoking shell scripts.
 
9515
SHELL=$lt_SHELL
 
9516
 
 
9517
# Whether or not to build shared libraries.
 
9518
build_libtool_libs=$enable_shared
 
9519
 
 
9520
# Whether or not to build static libraries.
 
9521
build_old_libs=$enable_static
 
9522
 
 
9523
# Whether or not to add -lc for building shared libraries.
 
9524
build_libtool_need_lc=$archive_cmds_need_lc
 
9525
 
 
9526
# Whether or not to disallow shared libs when runtime libs are static
 
9527
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9528
 
 
9529
# Whether or not to optimize for fast installation.
 
9530
fast_install=$enable_fast_install
 
9531
 
 
9532
# The host system.
 
9533
host_alias=$host_alias
 
9534
host=$host
 
9535
 
 
9536
# An echo program that does not interpret backslashes.
 
9537
echo=$lt_echo
 
9538
 
 
9539
# The archiver.
 
9540
AR=$lt_AR
 
9541
AR_FLAGS=$lt_AR_FLAGS
 
9542
 
 
9543
# A C compiler.
 
9544
LTCC=$lt_LTCC
 
9545
 
 
9546
# A language-specific compiler.
 
9547
CC=$lt_compiler
 
9548
 
 
9549
# Is the compiler the GNU C compiler?
 
9550
with_gcc=$GCC
 
9551
 
 
9552
# An ERE matcher.
 
9553
EGREP=$lt_EGREP
 
9554
 
 
9555
# The linker used to build libraries.
 
9556
LD=$lt_LD
 
9557
 
 
9558
# Whether we need hard or soft links.
 
9559
LN_S=$lt_LN_S
 
9560
 
 
9561
# A BSD-compatible nm program.
 
9562
NM=$lt_NM
 
9563
 
 
9564
# A symbol stripping program
 
9565
STRIP=$lt_STRIP
 
9566
 
 
9567
# Used to examine libraries when file_magic_cmd begins "file"
 
9568
MAGIC_CMD=$MAGIC_CMD
 
9569
 
 
9570
# Used on cygwin: DLL creation program.
 
9571
DLLTOOL="$DLLTOOL"
 
9572
 
 
9573
# Used on cygwin: object dumper.
 
9574
OBJDUMP="$OBJDUMP"
 
9575
 
 
9576
# Used on cygwin: assembler.
 
9577
AS="$AS"
 
9578
 
 
9579
# The name of the directory that contains temporary libtool files.
 
9580
objdir=$objdir
 
9581
 
 
9582
# How to create reloadable object files.
 
9583
reload_flag=$lt_reload_flag
 
9584
reload_cmds=$lt_reload_cmds
 
9585
 
 
9586
# How to pass a linker flag through the compiler.
 
9587
wl=$lt_lt_prog_compiler_wl
 
9588
 
 
9589
# Object file suffix (normally "o").
 
9590
objext="$ac_objext"
 
9591
 
 
9592
# Old archive suffix (normally "a").
 
9593
libext="$libext"
 
9594
 
 
9595
# Shared library suffix (normally ".so").
 
9596
shrext_cmds='$shrext_cmds'
 
9597
 
 
9598
# Executable file suffix (normally "").
 
9599
exeext="$exeext"
 
9600
 
 
9601
# Additional compiler flags for building library objects.
 
9602
pic_flag=$lt_lt_prog_compiler_pic
 
9603
pic_mode=$pic_mode
 
9604
 
 
9605
# What is the maximum length of a command?
 
9606
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9607
 
 
9608
# Does compiler simultaneously support -c and -o options?
 
9609
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9610
 
 
9611
# Must we lock files when doing compilation ?
 
9612
need_locks=$lt_need_locks
 
9613
 
 
9614
# Do we need the lib prefix for modules?
 
9615
need_lib_prefix=$need_lib_prefix
 
9616
 
 
9617
# Do we need a version for libraries?
 
9618
need_version=$need_version
 
9619
 
 
9620
# Whether dlopen is supported.
 
9621
dlopen_support=$enable_dlopen
 
9622
 
 
9623
# Whether dlopen of programs is supported.
 
9624
dlopen_self=$enable_dlopen_self
 
9625
 
 
9626
# Whether dlopen of statically linked programs is supported.
 
9627
dlopen_self_static=$enable_dlopen_self_static
 
9628
 
 
9629
# Compiler flag to prevent dynamic linking.
 
9630
link_static_flag=$lt_lt_prog_compiler_static
 
9631
 
 
9632
# Compiler flag to turn off builtin functions.
 
9633
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9634
 
 
9635
# Compiler flag to allow reflexive dlopens.
 
9636
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9637
 
 
9638
# Compiler flag to generate shared objects directly from archives.
 
9639
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9640
 
 
9641
# Compiler flag to generate thread-safe objects.
 
9642
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9643
 
 
9644
# Library versioning type.
 
9645
version_type=$version_type
 
9646
 
 
9647
# Format of library name prefix.
 
9648
libname_spec=$lt_libname_spec
 
9649
 
 
9650
# List of archive names.  First name is the real one, the rest are links.
 
9651
# The last name is the one that the linker finds with -lNAME.
 
9652
library_names_spec=$lt_library_names_spec
 
9653
 
 
9654
# The coded name of the library, if different from the real name.
 
9655
soname_spec=$lt_soname_spec
 
9656
 
 
9657
# Commands used to build and install an old-style archive.
 
9658
RANLIB=$lt_RANLIB
 
9659
old_archive_cmds=$lt_old_archive_cmds
 
9660
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9661
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9662
 
 
9663
# Create an old-style archive from a shared archive.
 
9664
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9665
 
 
9666
# Create a temporary old-style archive to link instead of a shared archive.
 
9667
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9668
 
 
9669
# Commands used to build and install a shared archive.
 
9670
archive_cmds=$lt_archive_cmds
 
9671
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9672
postinstall_cmds=$lt_postinstall_cmds
 
9673
postuninstall_cmds=$lt_postuninstall_cmds
 
9674
 
 
9675
# Commands used to build a loadable module (assumed same as above if empty)
 
9676
module_cmds=$lt_module_cmds
 
9677
module_expsym_cmds=$lt_module_expsym_cmds
 
9678
 
 
9679
# Commands to strip libraries.
 
9680
old_striplib=$lt_old_striplib
 
9681
striplib=$lt_striplib
 
9682
 
 
9683
# Dependencies to place before the objects being linked to create a
 
9684
# shared library.
 
9685
predep_objects=$lt_predep_objects
 
9686
 
 
9687
# Dependencies to place after the objects being linked to create a
 
9688
# shared library.
 
9689
postdep_objects=$lt_postdep_objects
 
9690
 
 
9691
# Dependencies to place before the objects being linked to create a
 
9692
# shared library.
 
9693
predeps=$lt_predeps
 
9694
 
 
9695
# Dependencies to place after the objects being linked to create a
 
9696
# shared library.
 
9697
postdeps=$lt_postdeps
 
9698
 
 
9699
# The library search path used internally by the compiler when linking
 
9700
# a shared library.
 
9701
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9702
 
 
9703
# Method to check whether dependent libraries are shared objects.
 
9704
deplibs_check_method=$lt_deplibs_check_method
 
9705
 
 
9706
# Command to use when deplibs_check_method == file_magic.
 
9707
file_magic_cmd=$lt_file_magic_cmd
 
9708
 
 
9709
# Flag that allows shared libraries with undefined symbols to be built.
 
9710
allow_undefined_flag=$lt_allow_undefined_flag
 
9711
 
 
9712
# Flag that forces no undefined symbols.
 
9713
no_undefined_flag=$lt_no_undefined_flag
 
9714
 
 
9715
# Commands used to finish a libtool library installation in a directory.
 
9716
finish_cmds=$lt_finish_cmds
 
9717
 
 
9718
# Same as above, but a single script fragment to be evaled but not shown.
 
9719
finish_eval=$lt_finish_eval
 
9720
 
 
9721
# Take the output of nm and produce a listing of raw symbols and C names.
 
9722
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9723
 
 
9724
# Transform the output of nm in a proper C declaration
 
9725
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9726
 
 
9727
# Transform the output of nm in a C name address pair
 
9728
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9729
 
 
9730
# This is the shared library runtime path variable.
 
9731
runpath_var=$runpath_var
 
9732
 
 
9733
# This is the shared library path variable.
 
9734
shlibpath_var=$shlibpath_var
 
9735
 
 
9736
# Is shlibpath searched before the hard-coded library search path?
 
9737
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9738
 
 
9739
# How to hardcode a shared library path into an executable.
 
9740
hardcode_action=$hardcode_action
 
9741
 
 
9742
# Whether we should hardcode library paths into libraries.
 
9743
hardcode_into_libs=$hardcode_into_libs
 
9744
 
 
9745
# Flag to hardcode \$libdir into a binary during linking.
 
9746
# This must work even if \$libdir does not exist.
 
9747
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9748
 
 
9749
# If ld is used when linking, flag to hardcode \$libdir into
 
9750
# a binary during linking. This must work even if \$libdir does
 
9751
# not exist.
 
9752
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9753
 
 
9754
# Whether we need a single -rpath flag with a separated argument.
 
9755
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9756
 
 
9757
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9758
# resulting binary.
 
9759
hardcode_direct=$hardcode_direct
 
9760
 
 
9761
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9762
# resulting binary.
 
9763
hardcode_minus_L=$hardcode_minus_L
 
9764
 
 
9765
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9766
# the resulting binary.
 
9767
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9768
 
 
9769
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9770
# and all subsequent libraries and executables linked against it.
 
9771
hardcode_automatic=$hardcode_automatic
 
9772
 
 
9773
# Variables whose values should be saved in libtool wrapper scripts and
 
9774
# restored at relink time.
 
9775
variables_saved_for_relink="$variables_saved_for_relink"
 
9776
 
 
9777
# Whether libtool must link a program against all its dependency libraries.
 
9778
link_all_deplibs=$link_all_deplibs
 
9779
 
 
9780
# Compile-time system search path for libraries
 
9781
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9782
 
 
9783
# Run-time system search path for libraries
 
9784
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9785
 
 
9786
# Fix the shell variable \$srcfile for the compiler.
 
9787
fix_srcfile_path="$fix_srcfile_path"
 
9788
 
 
9789
# Set to yes if exported symbols are required.
 
9790
always_export_symbols=$always_export_symbols
 
9791
 
 
9792
# The commands to list exported symbols.
 
9793
export_symbols_cmds=$lt_export_symbols_cmds
 
9794
 
 
9795
# The commands to extract the exported symbol list from a shared archive.
 
9796
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9797
 
 
9798
# Symbols that should not be listed in the preloaded symbols.
 
9799
exclude_expsyms=$lt_exclude_expsyms
 
9800
 
 
9801
# Symbols that must always be exported.
 
9802
include_expsyms=$lt_include_expsyms
 
9803
 
 
9804
# ### END LIBTOOL CONFIG
 
9805
 
 
9806
__EOF__
 
9807
 
 
9808
 
 
9809
  case $host_os in
 
9810
  aix3*)
 
9811
    cat <<\EOF >> "$cfgfile"
 
9812
 
 
9813
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9814
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9815
# vanish in a puff of smoke.
 
9816
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9817
  COLLECT_NAMES=
 
9818
  export COLLECT_NAMES
 
9819
fi
 
9820
EOF
 
9821
    ;;
 
9822
  esac
 
9823
 
 
9824
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9825
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9826
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9827
  # is reportedly fixed, but why not run on old versions too?
 
9828
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9829
 
 
9830
  mv -f "$cfgfile" "$ofile" || \
 
9831
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9832
  chmod +x "$ofile"
 
9833
 
 
9834
else
 
9835
  # If there is no Makefile yet, we rely on a make rule to execute
 
9836
  # `config.status --recheck' to rerun these tests and create the
 
9837
  # libtool script then.
 
9838
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9839
  if test -f "$ltmain_in"; then
 
9840
    test -f Makefile && make "$ltmain"
 
9841
  fi
 
9842
fi
 
9843
 
 
9844
 
 
9845
ac_ext=c
 
9846
ac_cpp='$CPP $CPPFLAGS'
 
9847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9850
 
 
9851
CC="$lt_save_CC"
 
9852
 
 
9853
 
 
9854
# Check whether --with-tags or --without-tags was given.
 
9855
if test "${with_tags+set}" = set; then
 
9856
  withval="$with_tags"
 
9857
  tagnames="$withval"
 
9858
fi;
 
9859
 
 
9860
if test -f "$ltmain" && test -n "$tagnames"; then
 
9861
  if test ! -f "${ofile}"; then
 
9862
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9863
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9864
  fi
 
9865
 
 
9866
  if test -z "$LTCC"; then
 
9867
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9868
    if test -z "$LTCC"; then
 
9869
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9870
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9871
    else
 
9872
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9873
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9874
    fi
 
9875
  fi
 
9876
 
 
9877
  # Extract list of available tagged configurations in $ofile.
 
9878
  # Note that this assumes the entire list is on one line.
 
9879
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9880
 
 
9881
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9882
  for tagname in $tagnames; do
 
9883
    IFS="$lt_save_ifs"
 
9884
    # Check whether tagname contains only valid characters
 
9885
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9886
    "") ;;
 
9887
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9888
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9889
   { (exit 1); exit 1; }; }
 
9890
        ;;
 
9891
    esac
 
9892
 
 
9893
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9894
    then
 
9895
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9896
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9897
   { (exit 1); exit 1; }; }
 
9898
    fi
 
9899
 
 
9900
    # Update the list of available tags.
 
9901
    if test -n "$tagname"; then
 
9902
      echo appending configuration tag \"$tagname\" to $ofile
 
9903
 
 
9904
      case $tagname in
 
9905
      CXX)
 
9906
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9907
          ac_ext=cc
 
9908
ac_cpp='$CXXCPP $CPPFLAGS'
 
9909
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9910
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9911
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
archive_cmds_need_lc_CXX=no
 
9917
allow_undefined_flag_CXX=
 
9918
always_export_symbols_CXX=no
 
9919
archive_expsym_cmds_CXX=
 
9920
export_dynamic_flag_spec_CXX=
 
9921
hardcode_direct_CXX=no
 
9922
hardcode_libdir_flag_spec_CXX=
 
9923
hardcode_libdir_flag_spec_ld_CXX=
 
9924
hardcode_libdir_separator_CXX=
 
9925
hardcode_minus_L_CXX=no
 
9926
hardcode_automatic_CXX=no
 
9927
module_cmds_CXX=
 
9928
module_expsym_cmds_CXX=
 
9929
link_all_deplibs_CXX=unknown
 
9930
old_archive_cmds_CXX=$old_archive_cmds
 
9931
no_undefined_flag_CXX=
 
9932
whole_archive_flag_spec_CXX=
 
9933
enable_shared_with_static_runtimes_CXX=no
 
9934
 
 
9935
# Dependencies to place before and after the object being linked:
 
9936
predep_objects_CXX=
 
9937
postdep_objects_CXX=
 
9938
predeps_CXX=
 
9939
postdeps_CXX=
 
9940
compiler_lib_search_path_CXX=
 
9941
 
 
9942
# Source file extension for C++ test sources.
 
9943
ac_ext=cc
 
9944
 
 
9945
# Object file extension for compiled C++ test sources.
 
9946
objext=o
 
9947
objext_CXX=$objext
 
9948
 
 
9949
# Code to be used in simple compile tests
 
9950
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9951
 
 
9952
# Code to be used in simple link tests
 
9953
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9954
 
 
9955
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9956
 
 
9957
# If no C compiler was specified, use CC.
 
9958
LTCC=${LTCC-"$CC"}
 
9959
 
 
9960
# Allow CC to be a program name with arguments.
 
9961
compiler=$CC
 
9962
 
 
9963
 
 
9964
# Allow CC to be a program name with arguments.
 
9965
lt_save_CC=$CC
 
9966
lt_save_LD=$LD
 
9967
lt_save_GCC=$GCC
 
9968
GCC=$GXX
 
9969
lt_save_with_gnu_ld=$with_gnu_ld
 
9970
lt_save_path_LD=$lt_cv_path_LD
 
9971
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9972
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9973
else
 
9974
  unset lt_cv_prog_gnu_ld
 
9975
fi
 
9976
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9977
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9978
else
 
9979
  unset lt_cv_path_LD
 
9980
fi
 
9981
test -z "${LDCXX+set}" || LD=$LDCXX
 
9982
CC=${CXX-"c++"}
 
9983
compiler=$CC
 
9984
compiler_CXX=$CC
 
9985
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9986
 
 
9987
# We don't want -fno-exception wen compiling C++ code, so set the
 
9988
# no_builtin_flag separately
 
9989
if test "$GXX" = yes; then
 
9990
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9991
else
 
9992
  lt_prog_compiler_no_builtin_flag_CXX=
 
9993
fi
 
9994
 
 
9995
if test "$GXX" = yes; then
 
9996
  # Set up default GNU C++ configuration
 
9997
 
 
9998
 
 
9999
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10000
if test "${with_gnu_ld+set}" = set; then
 
10001
  withval="$with_gnu_ld"
 
10002
  test "$withval" = no || with_gnu_ld=yes
 
10003
else
 
10004
  with_gnu_ld=no
 
10005
fi;
 
10006
ac_prog=ld
 
10007
if test "$GCC" = yes; then
 
10008
  # Check if gcc -print-prog-name=ld gives a path.
 
10009
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10010
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10011
  case $host in
 
10012
  *-*-mingw*)
 
10013
    # gcc leaves a trailing carriage return which upsets mingw
 
10014
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10015
  *)
 
10016
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10017
  esac
 
10018
  case $ac_prog in
 
10019
    # Accept absolute paths.
 
10020
    [\\/]* | ?:[\\/]*)
 
10021
      re_direlt='/[^/][^/]*/\.\./'
 
10022
      # Canonicalize the pathname of ld
 
10023
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10024
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10025
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10026
      done
 
10027
      test -z "$LD" && LD="$ac_prog"
 
10028
      ;;
 
10029
  "")
 
10030
    # If it fails, then pretend we aren't using GCC.
 
10031
    ac_prog=ld
 
10032
    ;;
 
10033
  *)
 
10034
    # If it is relative, then search for the first ld in PATH.
 
10035
    with_gnu_ld=unknown
 
10036
    ;;
 
10037
  esac
 
10038
elif test "$with_gnu_ld" = yes; then
 
10039
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10040
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10041
else
 
10042
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10043
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10044
fi
 
10045
if test "${lt_cv_path_LD+set}" = set; then
 
10046
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10047
else
 
10048
  if test -z "$LD"; then
 
10049
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10050
  for ac_dir in $PATH; do
 
10051
    IFS="$lt_save_ifs"
 
10052
    test -z "$ac_dir" && ac_dir=.
 
10053
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10054
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10055
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10056
      # but apparently some GNU ld's only accept -v.
 
10057
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10058
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10059
      *GNU* | *'with BFD'*)
 
10060
        test "$with_gnu_ld" != no && break
 
10061
        ;;
 
10062
      *)
 
10063
        test "$with_gnu_ld" != yes && break
 
10064
        ;;
 
10065
      esac
 
10066
    fi
 
10067
  done
 
10068
  IFS="$lt_save_ifs"
 
10069
else
 
10070
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10071
fi
 
10072
fi
 
10073
 
 
10074
LD="$lt_cv_path_LD"
 
10075
if test -n "$LD"; then
 
10076
  echo "$as_me:$LINENO: result: $LD" >&5
 
10077
echo "${ECHO_T}$LD" >&6
 
10078
else
 
10079
  echo "$as_me:$LINENO: result: no" >&5
 
10080
echo "${ECHO_T}no" >&6
 
10081
fi
 
10082
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10083
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10084
   { (exit 1); exit 1; }; }
 
10085
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10086
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10087
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10089
else
 
10090
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10091
case `$LD -v 2>&1 </dev/null` in
 
10092
*GNU* | *'with BFD'*)
 
10093
  lt_cv_prog_gnu_ld=yes
 
10094
  ;;
 
10095
*)
 
10096
  lt_cv_prog_gnu_ld=no
 
10097
  ;;
 
10098
esac
 
10099
fi
 
10100
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10101
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10102
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10103
 
 
10104
 
 
10105
 
 
10106
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10107
  # archiving commands below assume that GNU ld is being used.
 
10108
  if test "$with_gnu_ld" = yes; then
 
10109
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10110
    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'
 
10111
 
 
10112
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10113
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10114
 
 
10115
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10116
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10117
    #     investigate it a little bit more. (MM)
 
10118
    wlarc='${wl}'
 
10119
 
 
10120
    # ancient GNU ld didn't support --whole-archive et. al.
 
10121
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10122
        grep 'no-whole-archive' > /dev/null; then
 
10123
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10124
    else
 
10125
      whole_archive_flag_spec_CXX=
 
10126
    fi
 
10127
  else
 
10128
    with_gnu_ld=no
 
10129
    wlarc=
 
10130
 
 
10131
    # A generic and very simple default shared library creation
 
10132
    # command for GNU C++ for the case where it uses the native
 
10133
    # linker, instead of GNU ld.  If possible, this setting should
 
10134
    # overridden to take advantage of the native linker features on
 
10135
    # the platform it is being used on.
 
10136
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10137
  fi
 
10138
 
 
10139
  # Commands to make compiler produce verbose output that lists
 
10140
  # what "hidden" libraries, object files and flags are used when
 
10141
  # linking a shared library.
 
10142
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10143
 
 
10144
else
 
10145
  GXX=no
 
10146
  with_gnu_ld=no
 
10147
  wlarc=
 
10148
fi
 
10149
 
 
10150
# PORTME: fill in a description of your system's C++ link characteristics
 
10151
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10152
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10153
ld_shlibs_CXX=yes
 
10154
case $host_os in
 
10155
  aix3*)
 
10156
    # FIXME: insert proper C++ library support
 
10157
    ld_shlibs_CXX=no
 
10158
    ;;
 
10159
  aix4* | aix5*)
 
10160
    if test "$host_cpu" = ia64; then
 
10161
      # On IA64, the linker does run time linking by default, so we don't
 
10162
      # have to do anything special.
 
10163
      aix_use_runtimelinking=no
 
10164
      exp_sym_flag='-Bexport'
 
10165
      no_entry_flag=""
 
10166
    else
 
10167
      aix_use_runtimelinking=no
 
10168
 
 
10169
      # Test if we are trying to use run time linking or normal
 
10170
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10171
      # need to do runtime linking.
 
10172
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10173
        for ld_flag in $LDFLAGS; do
 
10174
          case $ld_flag in
 
10175
          *-brtl*)
 
10176
            aix_use_runtimelinking=yes
 
10177
            break
 
10178
            ;;
 
10179
          esac
 
10180
        done
 
10181
      esac
 
10182
 
 
10183
      exp_sym_flag='-bexport'
 
10184
      no_entry_flag='-bnoentry'
 
10185
    fi
 
10186
 
 
10187
    # When large executables or shared objects are built, AIX ld can
 
10188
    # have problems creating the table of contents.  If linking a library
 
10189
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10190
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10191
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10192
 
 
10193
    archive_cmds_CXX=''
 
10194
    hardcode_direct_CXX=yes
 
10195
    hardcode_libdir_separator_CXX=':'
 
10196
    link_all_deplibs_CXX=yes
 
10197
 
 
10198
    if test "$GXX" = yes; then
 
10199
      case $host_os in aix4.012|aix4.012.*)
 
10200
      # We only want to do this on AIX 4.2 and lower, the check
 
10201
      # below for broken collect2 doesn't work under 4.3+
 
10202
        collect2name=`${CC} -print-prog-name=collect2`
 
10203
        if test -f "$collect2name" && \
 
10204
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10205
        then
 
10206
          # We have reworked collect2
 
10207
          hardcode_direct_CXX=yes
 
10208
        else
 
10209
          # We have old collect2
 
10210
          hardcode_direct_CXX=unsupported
 
10211
          # It fails to find uninstalled libraries when the uninstalled
 
10212
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10213
          # to unsupported forces relinking
 
10214
          hardcode_minus_L_CXX=yes
 
10215
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10216
          hardcode_libdir_separator_CXX=
 
10217
        fi
 
10218
      esac
 
10219
      shared_flag='-shared'
 
10220
    else
 
10221
      # not using gcc
 
10222
      if test "$host_cpu" = ia64; then
 
10223
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10224
        # chokes on -Wl,-G. The following line is correct:
 
10225
        shared_flag='-G'
 
10226
      else
 
10227
        if test "$aix_use_runtimelinking" = yes; then
 
10228
          shared_flag='${wl}-G'
 
10229
        else
 
10230
          shared_flag='${wl}-bM:SRE'
 
10231
        fi
 
10232
      fi
 
10233
    fi
 
10234
 
 
10235
    # It seems that -bexpall does not export symbols beginning with
 
10236
    # underscore (_), so it is better to generate a list of symbols to export.
 
10237
    always_export_symbols_CXX=yes
 
10238
    if test "$aix_use_runtimelinking" = yes; then
 
10239
      # Warning - without using the other runtime loading flags (-brtl),
 
10240
      # -berok will link without error, but may produce a broken library.
 
10241
      allow_undefined_flag_CXX='-berok'
 
10242
      # Determine the default libpath from the value encoded in an empty executable.
 
10243
      cat >conftest.$ac_ext <<_ACEOF
 
10244
/* confdefs.h.  */
 
10245
_ACEOF
 
10246
cat confdefs.h >>conftest.$ac_ext
 
10247
cat >>conftest.$ac_ext <<_ACEOF
 
10248
/* end confdefs.h.  */
 
10249
 
 
10250
int
 
10251
main ()
 
10252
{
 
10253
 
 
10254
  ;
 
10255
  return 0;
 
10256
}
 
10257
_ACEOF
 
10258
rm -f conftest.$ac_objext conftest$ac_exeext
 
10259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10260
  (eval $ac_link) 2>conftest.er1
 
10261
  ac_status=$?
 
10262
  grep -v '^ *+' conftest.er1 >conftest.err
 
10263
  rm -f conftest.er1
 
10264
  cat conftest.err >&5
 
10265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10266
  (exit $ac_status); } &&
 
10267
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10268
                         || test ! -s conftest.err'
 
10269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10270
  (eval $ac_try) 2>&5
 
10271
  ac_status=$?
 
10272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10273
  (exit $ac_status); }; } &&
 
10274
         { ac_try='test -s conftest$ac_exeext'
 
10275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10276
  (eval $ac_try) 2>&5
 
10277
  ac_status=$?
 
10278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10279
  (exit $ac_status); }; }; then
 
10280
 
 
10281
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10282
}'`
 
10283
# Check for a 64-bit object if we didn't find anything.
 
10284
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; }
 
10285
}'`; fi
 
10286
else
 
10287
  echo "$as_me: failed program was:" >&5
 
10288
sed 's/^/| /' conftest.$ac_ext >&5
 
10289
 
 
10290
fi
 
10291
rm -f conftest.err conftest.$ac_objext \
 
10292
      conftest$ac_exeext conftest.$ac_ext
 
10293
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10294
 
 
10295
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10296
 
 
10297
      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"
 
10298
     else
 
10299
      if test "$host_cpu" = ia64; then
 
10300
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10301
        allow_undefined_flag_CXX="-z nodefs"
 
10302
        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"
 
10303
      else
 
10304
        # Determine the default libpath from the value encoded in an empty executable.
 
10305
        cat >conftest.$ac_ext <<_ACEOF
 
10306
/* confdefs.h.  */
 
10307
_ACEOF
 
10308
cat confdefs.h >>conftest.$ac_ext
 
10309
cat >>conftest.$ac_ext <<_ACEOF
 
10310
/* end confdefs.h.  */
 
10311
 
 
10312
int
 
10313
main ()
 
10314
{
 
10315
 
 
10316
  ;
 
10317
  return 0;
 
10318
}
 
10319
_ACEOF
 
10320
rm -f conftest.$ac_objext conftest$ac_exeext
 
10321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10322
  (eval $ac_link) 2>conftest.er1
 
10323
  ac_status=$?
 
10324
  grep -v '^ *+' conftest.er1 >conftest.err
 
10325
  rm -f conftest.er1
 
10326
  cat conftest.err >&5
 
10327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10328
  (exit $ac_status); } &&
 
10329
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10330
                         || test ! -s conftest.err'
 
10331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10332
  (eval $ac_try) 2>&5
 
10333
  ac_status=$?
 
10334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10335
  (exit $ac_status); }; } &&
 
10336
         { ac_try='test -s conftest$ac_exeext'
 
10337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10338
  (eval $ac_try) 2>&5
 
10339
  ac_status=$?
 
10340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10341
  (exit $ac_status); }; }; then
 
10342
 
 
10343
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10344
}'`
 
10345
# Check for a 64-bit object if we didn't find anything.
 
10346
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; }
 
10347
}'`; fi
 
10348
else
 
10349
  echo "$as_me: failed program was:" >&5
 
10350
sed 's/^/| /' conftest.$ac_ext >&5
 
10351
 
 
10352
fi
 
10353
rm -f conftest.err conftest.$ac_objext \
 
10354
      conftest$ac_exeext conftest.$ac_ext
 
10355
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10356
 
 
10357
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10358
        # Warning - without using the other run time loading flags,
 
10359
        # -berok will link without error, but may produce a broken library.
 
10360
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10361
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10362
        # -bexpall does not export symbols beginning with underscore (_)
 
10363
        always_export_symbols_CXX=yes
 
10364
        # Exported symbols can be pulled into shared objects from archives
 
10365
        whole_archive_flag_spec_CXX=' '
 
10366
        archive_cmds_need_lc_CXX=yes
 
10367
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10368
        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'
 
10369
      fi
 
10370
    fi
 
10371
    ;;
 
10372
  chorus*)
 
10373
    case $cc_basename in
 
10374
      *)
 
10375
        # FIXME: insert proper C++ library support
 
10376
        ld_shlibs_CXX=no
 
10377
        ;;
 
10378
    esac
 
10379
    ;;
 
10380
 
 
10381
 
 
10382
  cygwin* | mingw* | pw32*)
 
10383
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10384
    # as there is no search path for DLLs.
 
10385
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10386
    allow_undefined_flag_CXX=unsupported
 
10387
    always_export_symbols_CXX=no
 
10388
    enable_shared_with_static_runtimes_CXX=yes
 
10389
 
 
10390
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10391
      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'
 
10392
      # If the export-symbols file already is a .def file (1st line
 
10393
      # is EXPORTS), use it as is; otherwise, prepend...
 
10394
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10395
        cp $export_symbols $output_objdir/$soname.def;
 
10396
      else
 
10397
        echo EXPORTS > $output_objdir/$soname.def;
 
10398
        cat $export_symbols >> $output_objdir/$soname.def;
 
10399
      fi~
 
10400
      $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'
 
10401
    else
 
10402
      ld_shlibs_CXX=no
 
10403
    fi
 
10404
  ;;
 
10405
      darwin* | rhapsody*)
 
10406
        case "$host_os" in
 
10407
        rhapsody* | darwin1.[012])
 
10408
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10409
         ;;
 
10410
       *) # Darwin 1.3 on
 
10411
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10412
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10413
         else
 
10414
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10415
             10.[012])
 
10416
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10417
               ;;
 
10418
             10.*)
 
10419
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10420
               ;;
 
10421
           esac
 
10422
         fi
 
10423
         ;;
 
10424
        esac
 
10425
      archive_cmds_need_lc_CXX=no
 
10426
      hardcode_direct_CXX=no
 
10427
      hardcode_automatic_CXX=yes
 
10428
      hardcode_shlibpath_var_CXX=unsupported
 
10429
      whole_archive_flag_spec_CXX=''
 
10430
      link_all_deplibs_CXX=yes
 
10431
 
 
10432
    if test "$GXX" = yes ; then
 
10433
      lt_int_apple_cc_single_mod=no
 
10434
      output_verbose_link_cmd='echo'
 
10435
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10436
       lt_int_apple_cc_single_mod=yes
 
10437
      fi
 
10438
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10439
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10440
      else
 
10441
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10442
        fi
 
10443
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10444
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10445
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10446
            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}'
 
10447
          else
 
10448
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10449
          fi
 
10450
            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}'
 
10451
      else
 
10452
      case "$cc_basename" in
 
10453
        xlc*)
 
10454
         output_verbose_link_cmd='echo'
 
10455
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10456
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10457
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10458
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10459
          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}'
 
10460
          ;;
 
10461
       *)
 
10462
         ld_shlibs_CXX=no
 
10463
          ;;
 
10464
      esac
 
10465
      fi
 
10466
        ;;
 
10467
 
 
10468
  dgux*)
 
10469
    case $cc_basename in
 
10470
      ec++)
 
10471
        # FIXME: insert proper C++ library support
 
10472
        ld_shlibs_CXX=no
 
10473
        ;;
 
10474
      ghcx)
 
10475
        # Green Hills C++ Compiler
 
10476
        # FIXME: insert proper C++ library support
 
10477
        ld_shlibs_CXX=no
 
10478
        ;;
 
10479
      *)
 
10480
        # FIXME: insert proper C++ library support
 
10481
        ld_shlibs_CXX=no
 
10482
        ;;
 
10483
    esac
 
10484
    ;;
 
10485
  freebsd12*)
 
10486
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10487
    ld_shlibs_CXX=no
 
10488
    ;;
 
10489
  freebsd-elf*)
 
10490
    archive_cmds_need_lc_CXX=no
 
10491
    ;;
 
10492
  freebsd* | kfreebsd*-gnu)
 
10493
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10494
    # conventions
 
10495
    ld_shlibs_CXX=yes
 
10496
    ;;
 
10497
  gnu*)
 
10498
    ;;
 
10499
  hpux9*)
 
10500
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10501
    hardcode_libdir_separator_CXX=:
 
10502
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10503
    hardcode_direct_CXX=yes
 
10504
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10505
                                # but as the default
 
10506
                                # location of the library.
 
10507
 
 
10508
    case $cc_basename in
 
10509
    CC)
 
10510
      # FIXME: insert proper C++ library support
 
10511
      ld_shlibs_CXX=no
 
10512
      ;;
 
10513
    aCC)
 
10514
      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'
 
10515
      # Commands to make compiler produce verbose output that lists
 
10516
      # what "hidden" libraries, object files and flags are used when
 
10517
      # linking a shared library.
 
10518
      #
 
10519
      # There doesn't appear to be a way to prevent this compiler from
 
10520
      # explicitly linking system object files so we need to strip them
 
10521
      # from the output so that they don't get included in the library
 
10522
      # dependencies.
 
10523
      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'
 
10524
      ;;
 
10525
    *)
 
10526
      if test "$GXX" = yes; then
 
10527
        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'
 
10528
      else
 
10529
        # FIXME: insert proper C++ library support
 
10530
        ld_shlibs_CXX=no
 
10531
      fi
 
10532
      ;;
 
10533
    esac
 
10534
    ;;
 
10535
  hpux10*|hpux11*)
 
10536
    if test $with_gnu_ld = no; then
 
10537
      case "$host_cpu" in
 
10538
      hppa*64*)
 
10539
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10540
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10541
        hardcode_libdir_separator_CXX=:
 
10542
        ;;
 
10543
      ia64*)
 
10544
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10545
        ;;
 
10546
      *)
 
10547
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10548
        hardcode_libdir_separator_CXX=:
 
10549
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10550
        ;;
 
10551
      esac
 
10552
    fi
 
10553
    case "$host_cpu" in
 
10554
    hppa*64*)
 
10555
      hardcode_direct_CXX=no
 
10556
      hardcode_shlibpath_var_CXX=no
 
10557
      ;;
 
10558
    ia64*)
 
10559
      hardcode_direct_CXX=no
 
10560
      hardcode_shlibpath_var_CXX=no
 
10561
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10562
                                              # but as the default
 
10563
                                              # location of the library.
 
10564
      ;;
 
10565
    *)
 
10566
      hardcode_direct_CXX=yes
 
10567
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10568
                                              # but as the default
 
10569
                                              # location of the library.
 
10570
      ;;
 
10571
    esac
 
10572
 
 
10573
    case $cc_basename in
 
10574
      CC)
 
10575
        # FIXME: insert proper C++ library support
 
10576
        ld_shlibs_CXX=no
 
10577
        ;;
 
10578
      aCC)
 
10579
        case "$host_cpu" in
 
10580
        hppa*64*|ia64*)
 
10581
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10582
          ;;
 
10583
        *)
 
10584
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10585
          ;;
 
10586
        esac
 
10587
        # Commands to make compiler produce verbose output that lists
 
10588
        # what "hidden" libraries, object files and flags are used when
 
10589
        # linking a shared library.
 
10590
        #
 
10591
        # There doesn't appear to be a way to prevent this compiler from
 
10592
        # explicitly linking system object files so we need to strip them
 
10593
        # from the output so that they don't get included in the library
 
10594
        # dependencies.
 
10595
        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'
 
10596
        ;;
 
10597
      *)
 
10598
        if test "$GXX" = yes; then
 
10599
          if test $with_gnu_ld = no; then
 
10600
            case "$host_cpu" in
 
10601
            ia64*|hppa*64*)
 
10602
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10603
              ;;
 
10604
            *)
 
10605
              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'
 
10606
              ;;
 
10607
            esac
 
10608
          fi
 
10609
        else
 
10610
          # FIXME: insert proper C++ library support
 
10611
          ld_shlibs_CXX=no
 
10612
        fi
 
10613
        ;;
 
10614
    esac
 
10615
    ;;
 
10616
  irix5* | irix6*)
 
10617
    case $cc_basename in
 
10618
      CC)
 
10619
        # SGI C++
 
10620
        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'
 
10621
 
 
10622
        # Archives containing C++ object files must be created using
 
10623
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10624
        # necessary to make sure instantiated templates are included
 
10625
        # in the archive.
 
10626
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10627
        ;;
 
10628
      *)
 
10629
        if test "$GXX" = yes; then
 
10630
          if test "$with_gnu_ld" = no; then
 
10631
            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'
 
10632
          else
 
10633
            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'
 
10634
          fi
 
10635
        fi
 
10636
        link_all_deplibs_CXX=yes
 
10637
        ;;
 
10638
    esac
 
10639
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10640
    hardcode_libdir_separator_CXX=:
 
10641
    ;;
 
10642
  linux*)
 
10643
    case $cc_basename in
 
10644
      KCC)
 
10645
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10646
 
 
10647
        # KCC will only create a shared library if the output file
 
10648
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10649
        # to its proper name (with version) after linking.
 
10650
        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'
 
10651
        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'
 
10652
        # Commands to make compiler produce verbose output that lists
 
10653
        # what "hidden" libraries, object files and flags are used when
 
10654
        # linking a shared library.
 
10655
        #
 
10656
        # There doesn't appear to be a way to prevent this compiler from
 
10657
        # explicitly linking system object files so we need to strip them
 
10658
        # from the output so that they don't get included in the library
 
10659
        # dependencies.
 
10660
        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'
 
10661
 
 
10662
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10663
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10664
 
 
10665
        # Archives containing C++ object files must be created using
 
10666
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10667
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10668
        ;;
 
10669
      icpc)
 
10670
        # Intel C++
 
10671
        with_gnu_ld=yes
 
10672
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10673
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10674
        # earlier do not add the objects themselves.
 
10675
        case `$CC -V 2>&1` in
 
10676
        *"Version 7."*)
 
10677
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10678
          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'
 
10679
          ;;
 
10680
        *)  # Version 8.0 or newer
 
10681
          archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10682
        archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10683
          ;;
 
10684
        esac
 
10685
        archive_cmds_need_lc_CXX=no
 
10686
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10687
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10688
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10689
        ;;
 
10690
      cxx)
 
10691
        # Compaq C++
 
10692
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10693
        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'
 
10694
 
 
10695
        runpath_var=LD_RUN_PATH
 
10696
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10697
        hardcode_libdir_separator_CXX=:
 
10698
 
 
10699
        # Commands to make compiler produce verbose output that lists
 
10700
        # what "hidden" libraries, object files and flags are used when
 
10701
        # linking a shared library.
 
10702
        #
 
10703
        # There doesn't appear to be a way to prevent this compiler from
 
10704
        # explicitly linking system object files so we need to strip them
 
10705
        # from the output so that they don't get included in the library
 
10706
        # dependencies.
 
10707
        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'
 
10708
        ;;
 
10709
    esac
 
10710
    ;;
 
10711
  lynxos*)
 
10712
    # FIXME: insert proper C++ library support
 
10713
    ld_shlibs_CXX=no
 
10714
    ;;
 
10715
  m88k*)
 
10716
    # FIXME: insert proper C++ library support
 
10717
    ld_shlibs_CXX=no
 
10718
    ;;
 
10719
  mvs*)
 
10720
    case $cc_basename in
 
10721
      cxx)
 
10722
        # FIXME: insert proper C++ library support
 
10723
        ld_shlibs_CXX=no
 
10724
        ;;
 
10725
      *)
 
10726
        # FIXME: insert proper C++ library support
 
10727
        ld_shlibs_CXX=no
 
10728
        ;;
 
10729
    esac
 
10730
    ;;
 
10731
  netbsd*)
 
10732
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10733
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10734
      wlarc=
 
10735
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10736
      hardcode_direct_CXX=yes
 
10737
      hardcode_shlibpath_var_CXX=no
 
10738
    fi
 
10739
    # Workaround some broken pre-1.5 toolchains
 
10740
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10741
    ;;
 
10742
  openbsd2*)
 
10743
    # C++ shared libraries are fairly broken
 
10744
    ld_shlibs_CXX=no
 
10745
    ;;
 
10746
  openbsd*)
 
10747
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10748
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10749
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10750
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10751
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10752
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10753
    fi
 
10754
    output_verbose_link_cmd='echo'
 
10755
    ;;
 
10756
  osf3*)
 
10757
    case $cc_basename in
 
10758
      KCC)
 
10759
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10760
 
 
10761
        # KCC will only create a shared library if the output file
 
10762
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10763
        # to its proper name (with version) after linking.
 
10764
        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'
 
10765
 
 
10766
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10767
        hardcode_libdir_separator_CXX=:
 
10768
 
 
10769
        # Archives containing C++ object files must be created using
 
10770
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10771
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10772
 
 
10773
        ;;
 
10774
      RCC)
 
10775
        # Rational C++ 2.4.1
 
10776
        # FIXME: insert proper C++ library support
 
10777
        ld_shlibs_CXX=no
 
10778
        ;;
 
10779
      cxx)
 
10780
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10781
        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'
 
10782
 
 
10783
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10784
        hardcode_libdir_separator_CXX=:
 
10785
 
 
10786
        # Commands to make compiler produce verbose output that lists
 
10787
        # what "hidden" libraries, object files and flags are used when
 
10788
        # linking a shared library.
 
10789
        #
 
10790
        # There doesn't appear to be a way to prevent this compiler from
 
10791
        # explicitly linking system object files so we need to strip them
 
10792
        # from the output so that they don't get included in the library
 
10793
        # dependencies.
 
10794
        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'
 
10795
        ;;
 
10796
      *)
 
10797
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10798
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10799
          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'
 
10800
 
 
10801
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10802
          hardcode_libdir_separator_CXX=:
 
10803
 
 
10804
          # Commands to make compiler produce verbose output that lists
 
10805
          # what "hidden" libraries, object files and flags are used when
 
10806
          # linking a shared library.
 
10807
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10808
 
 
10809
        else
 
10810
          # FIXME: insert proper C++ library support
 
10811
          ld_shlibs_CXX=no
 
10812
        fi
 
10813
        ;;
 
10814
    esac
 
10815
    ;;
 
10816
  osf4* | osf5*)
 
10817
    case $cc_basename in
 
10818
      KCC)
 
10819
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10820
 
 
10821
        # KCC will only create a shared library if the output file
 
10822
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10823
        # to its proper name (with version) after linking.
 
10824
        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'
 
10825
 
 
10826
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10827
        hardcode_libdir_separator_CXX=:
 
10828
 
 
10829
        # Archives containing C++ object files must be created using
 
10830
        # the KAI C++ compiler.
 
10831
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10832
        ;;
 
10833
      RCC)
 
10834
        # Rational C++ 2.4.1
 
10835
        # FIXME: insert proper C++ library support
 
10836
        ld_shlibs_CXX=no
 
10837
        ;;
 
10838
      cxx)
 
10839
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10840
        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'
 
10841
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10842
          echo "-hidden">> $lib.exp~
 
10843
          $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~
 
10844
          $rm $lib.exp'
 
10845
 
 
10846
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10847
        hardcode_libdir_separator_CXX=:
 
10848
 
 
10849
        # Commands to make compiler produce verbose output that lists
 
10850
        # what "hidden" libraries, object files and flags are used when
 
10851
        # linking a shared library.
 
10852
        #
 
10853
        # There doesn't appear to be a way to prevent this compiler from
 
10854
        # explicitly linking system object files so we need to strip them
 
10855
        # from the output so that they don't get included in the library
 
10856
        # dependencies.
 
10857
        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'
 
10858
        ;;
 
10859
      *)
 
10860
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10861
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10862
         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'
 
10863
 
 
10864
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10865
          hardcode_libdir_separator_CXX=:
 
10866
 
 
10867
          # Commands to make compiler produce verbose output that lists
 
10868
          # what "hidden" libraries, object files and flags are used when
 
10869
          # linking a shared library.
 
10870
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10871
 
 
10872
        else
 
10873
          # FIXME: insert proper C++ library support
 
10874
          ld_shlibs_CXX=no
 
10875
        fi
 
10876
        ;;
 
10877
    esac
 
10878
    ;;
 
10879
  psos*)
 
10880
    # FIXME: insert proper C++ library support
 
10881
    ld_shlibs_CXX=no
 
10882
    ;;
 
10883
  sco*)
 
10884
    archive_cmds_need_lc_CXX=no
 
10885
    case $cc_basename in
 
10886
      CC)
 
10887
        # FIXME: insert proper C++ library support
 
10888
        ld_shlibs_CXX=no
 
10889
        ;;
 
10890
      *)
 
10891
        # FIXME: insert proper C++ library support
 
10892
        ld_shlibs_CXX=no
 
10893
        ;;
 
10894
    esac
 
10895
    ;;
 
10896
  sunos4*)
 
10897
    case $cc_basename in
 
10898
      CC)
 
10899
        # Sun C++ 4.x
 
10900
        # FIXME: insert proper C++ library support
 
10901
        ld_shlibs_CXX=no
 
10902
        ;;
 
10903
      lcc)
 
10904
        # Lucid
 
10905
        # FIXME: insert proper C++ library support
 
10906
        ld_shlibs_CXX=no
 
10907
        ;;
 
10908
      *)
 
10909
        # FIXME: insert proper C++ library support
 
10910
        ld_shlibs_CXX=no
 
10911
        ;;
 
10912
    esac
 
10913
    ;;
 
10914
  solaris*)
 
10915
    case $cc_basename in
 
10916
      CC)
 
10917
        # Sun C++ 4.2, 5.x and Centerline C++
 
10918
        no_undefined_flag_CXX=' -zdefs'
 
10919
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10920
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10921
        $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'
 
10922
 
 
10923
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10924
        hardcode_shlibpath_var_CXX=no
 
10925
        case $host_os in
 
10926
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10927
          *)
 
10928
            # The C++ compiler is used as linker so we must use $wl
 
10929
            # flag to pass the commands to the underlying system
 
10930
            # linker.
 
10931
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10932
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10933
            ;;
 
10934
        esac
 
10935
        link_all_deplibs_CXX=yes
 
10936
 
 
10937
        # Commands to make compiler produce verbose output that lists
 
10938
        # what "hidden" libraries, object files and flags are used when
 
10939
        # linking a shared library.
 
10940
        #
 
10941
        # There doesn't appear to be a way to prevent this compiler from
 
10942
        # explicitly linking system object files so we need to strip them
 
10943
        # from the output so that they don't get included in the library
 
10944
        # dependencies.
 
10945
        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'
 
10946
 
 
10947
        # Archives containing C++ object files must be created using
 
10948
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10949
        # necessary to make sure instantiated templates are included
 
10950
        # in the archive.
 
10951
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10952
        ;;
 
10953
      gcx)
 
10954
        # Green Hills C++ Compiler
 
10955
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10956
 
 
10957
        # The C++ compiler must be used to create the archive.
 
10958
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10959
        ;;
 
10960
      *)
 
10961
        # GNU C++ compiler with Solaris linker
 
10962
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10963
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10964
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10965
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10966
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10967
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10968
 
 
10969
            # Commands to make compiler produce verbose output that lists
 
10970
            # what "hidden" libraries, object files and flags are used when
 
10971
            # linking a shared library.
 
10972
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10973
          else
 
10974
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10975
            # platform.
 
10976
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10977
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10978
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10979
 
 
10980
            # Commands to make compiler produce verbose output that lists
 
10981
            # what "hidden" libraries, object files and flags are used when
 
10982
            # linking a shared library.
 
10983
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10984
          fi
 
10985
 
 
10986
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10987
        fi
 
10988
        ;;
 
10989
    esac
 
10990
    ;;
 
10991
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10992
    archive_cmds_need_lc_CXX=no
 
10993
    ;;
 
10994
  tandem*)
 
10995
    case $cc_basename in
 
10996
      NCC)
 
10997
        # NonStop-UX NCC 3.20
 
10998
        # FIXME: insert proper C++ library support
 
10999
        ld_shlibs_CXX=no
 
11000
        ;;
 
11001
      *)
 
11002
        # FIXME: insert proper C++ library support
 
11003
        ld_shlibs_CXX=no
 
11004
        ;;
 
11005
    esac
 
11006
    ;;
 
11007
  vxworks*)
 
11008
    # FIXME: insert proper C++ library support
 
11009
    ld_shlibs_CXX=no
 
11010
    ;;
 
11011
  *)
 
11012
    # FIXME: insert proper C++ library support
 
11013
    ld_shlibs_CXX=no
 
11014
    ;;
 
11015
esac
 
11016
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11017
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11018
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11019
 
 
11020
GCC_CXX="$GXX"
 
11021
LD_CXX="$LD"
 
11022
 
 
11023
 
 
11024
cat > conftest.$ac_ext <<EOF
 
11025
class Foo
 
11026
{
 
11027
public:
 
11028
  Foo (void) { a = 0; }
 
11029
private:
 
11030
  int a;
 
11031
};
 
11032
EOF
 
11033
 
 
11034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11035
  (eval $ac_compile) 2>&5
 
11036
  ac_status=$?
 
11037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11038
  (exit $ac_status); }; then
 
11039
  # Parse the compiler output and extract the necessary
 
11040
  # objects, libraries and library flags.
 
11041
 
 
11042
  # Sentinel used to keep track of whether or not we are before
 
11043
  # the conftest object file.
 
11044
  pre_test_object_deps_done=no
 
11045
 
 
11046
  # The `*' in the case matches for architectures that use `case' in
 
11047
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11048
  # eval without this substitution.
 
11049
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11050
 
 
11051
  for p in `eval $output_verbose_link_cmd`; do
 
11052
    case $p in
 
11053
 
 
11054
    -L* | -R* | -l*)
 
11055
       # Some compilers place space between "-{L,R}" and the path.
 
11056
       # Remove the space.
 
11057
       if test $p = "-L" \
 
11058
          || test $p = "-R"; then
 
11059
         prev=$p
 
11060
         continue
 
11061
       else
 
11062
         prev=
 
11063
       fi
 
11064
 
 
11065
       if test "$pre_test_object_deps_done" = no; then
 
11066
         case $p in
 
11067
         -L* | -R*)
 
11068
           # Internal compiler library paths should come after those
 
11069
           # provided the user.  The postdeps already come after the
 
11070
           # user supplied libs so there is no need to process them.
 
11071
           if test -z "$compiler_lib_search_path_CXX"; then
 
11072
             compiler_lib_search_path_CXX="${prev}${p}"
 
11073
           else
 
11074
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11075
           fi
 
11076
           ;;
 
11077
         # The "-l" case would never come before the object being
 
11078
         # linked, so don't bother handling this case.
 
11079
         esac
 
11080
       else
 
11081
         if test -z "$postdeps_CXX"; then
 
11082
           postdeps_CXX="${prev}${p}"
 
11083
         else
 
11084
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11085
         fi
 
11086
       fi
 
11087
       ;;
 
11088
 
 
11089
    *.$objext)
 
11090
       # This assumes that the test object file only shows up
 
11091
       # once in the compiler output.
 
11092
       if test "$p" = "conftest.$objext"; then
 
11093
         pre_test_object_deps_done=yes
 
11094
         continue
 
11095
       fi
 
11096
 
 
11097
       if test "$pre_test_object_deps_done" = no; then
 
11098
         if test -z "$predep_objects_CXX"; then
 
11099
           predep_objects_CXX="$p"
 
11100
         else
 
11101
           predep_objects_CXX="$predep_objects_CXX $p"
 
11102
         fi
 
11103
       else
 
11104
         if test -z "$postdep_objects_CXX"; then
 
11105
           postdep_objects_CXX="$p"
 
11106
         else
 
11107
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11108
         fi
 
11109
       fi
 
11110
       ;;
 
11111
 
 
11112
    *) ;; # Ignore the rest.
 
11113
 
 
11114
    esac
 
11115
  done
 
11116
 
 
11117
  # Clean up.
 
11118
  rm -f a.out a.exe
 
11119
else
 
11120
  echo "libtool.m4: error: problem compiling CXX test program"
 
11121
fi
 
11122
 
 
11123
$rm -f confest.$objext
 
11124
 
 
11125
case " $postdeps_CXX " in
 
11126
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11127
esac
 
11128
 
 
11129
lt_prog_compiler_wl_CXX=
 
11130
lt_prog_compiler_pic_CXX=
 
11131
lt_prog_compiler_static_CXX=
 
11132
 
 
11133
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11134
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11135
 
 
11136
  # C++ specific cases for pic, static, wl, etc.
 
11137
  if test "$GXX" = yes; then
 
11138
    lt_prog_compiler_wl_CXX='-Wl,'
 
11139
    lt_prog_compiler_static_CXX='-static'
 
11140
 
 
11141
    case $host_os in
 
11142
    aix*)
 
11143
      # All AIX code is PIC.
 
11144
      if test "$host_cpu" = ia64; then
 
11145
        # AIX 5 now supports IA64 processor
 
11146
        lt_prog_compiler_static_CXX='-Bstatic'
 
11147
      fi
 
11148
      ;;
 
11149
    amigaos*)
 
11150
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11151
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11152
      # like `-m68040'.
 
11153
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11154
      ;;
 
11155
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11156
      # PIC is the default for these OSes.
 
11157
      ;;
 
11158
    mingw* | os2* | pw32*)
 
11159
      # This hack is so that the source file can tell whether it is being
 
11160
      # built for inclusion in a dll (and should export symbols for example).
 
11161
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11162
      ;;
 
11163
    darwin* | rhapsody*)
 
11164
      # PIC is the default on this platform
 
11165
      # Common symbols not allowed in MH_DYLIB files
 
11166
      lt_prog_compiler_pic_CXX='-fno-common'
 
11167
      ;;
 
11168
    *djgpp*)
 
11169
      # DJGPP does not support shared libraries at all
 
11170
      lt_prog_compiler_pic_CXX=
 
11171
      ;;
 
11172
    sysv4*MP*)
 
11173
      if test -d /usr/nec; then
 
11174
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11175
      fi
 
11176
      ;;
 
11177
    hpux*)
 
11178
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11179
      # not for PA HP-UX.
 
11180
      case "$host_cpu" in
 
11181
      hppa*64*|ia64*)
 
11182
        ;;
 
11183
      *)
 
11184
        lt_prog_compiler_pic_CXX='-fPIC'
 
11185
        ;;
 
11186
      esac
 
11187
      ;;
 
11188
    *)
 
11189
      lt_prog_compiler_pic_CXX='-fPIC'
 
11190
      ;;
 
11191
    esac
 
11192
  else
 
11193
    case $host_os in
 
11194
      aix4* | aix5*)
 
11195
        # All AIX code is PIC.
 
11196
        if test "$host_cpu" = ia64; then
 
11197
          # AIX 5 now supports IA64 processor
 
11198
          lt_prog_compiler_static_CXX='-Bstatic'
 
11199
        else
 
11200
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11201
        fi
 
11202
        ;;
 
11203
      chorus*)
 
11204
        case $cc_basename in
 
11205
        cxch68)
 
11206
          # Green Hills C++ Compiler
 
11207
          # _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"
 
11208
          ;;
 
11209
        esac
 
11210
        ;;
 
11211
       darwin*)
 
11212
         # PIC is the default on this platform
 
11213
         # Common symbols not allowed in MH_DYLIB files
 
11214
         case "$cc_basename" in
 
11215
           xlc*)
 
11216
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11217
           lt_prog_compiler_wl_CXX='-Wl,'
 
11218
           ;;
 
11219
         esac
 
11220
       ;;
 
11221
      dgux*)
 
11222
        case $cc_basename in
 
11223
          ec++)
 
11224
            lt_prog_compiler_pic_CXX='-KPIC'
 
11225
            ;;
 
11226
          ghcx)
 
11227
            # Green Hills C++ Compiler
 
11228
            lt_prog_compiler_pic_CXX='-pic'
 
11229
            ;;
 
11230
          *)
 
11231
            ;;
 
11232
        esac
 
11233
        ;;
 
11234
      freebsd* | kfreebsd*-gnu)
 
11235
        # FreeBSD uses GNU C++
 
11236
        ;;
 
11237
      hpux9* | hpux10* | hpux11*)
 
11238
        case $cc_basename in
 
11239
          CC)
 
11240
            lt_prog_compiler_wl_CXX='-Wl,'
 
11241
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11242
            if test "$host_cpu" != ia64; then
 
11243
              lt_prog_compiler_pic_CXX='+Z'
 
11244
            fi
 
11245
            ;;
 
11246
          aCC)
 
11247
            lt_prog_compiler_wl_CXX='-Wl,'
 
11248
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11249
            case "$host_cpu" in
 
11250
            hppa*64*|ia64*)
 
11251
              # +Z the default
 
11252
              ;;
 
11253
            *)
 
11254
              lt_prog_compiler_pic_CXX='+Z'
 
11255
              ;;
 
11256
            esac
 
11257
            ;;
 
11258
          *)
 
11259
            ;;
 
11260
        esac
 
11261
        ;;
 
11262
      irix5* | irix6* | nonstopux*)
 
11263
        case $cc_basename in
 
11264
          CC)
 
11265
            lt_prog_compiler_wl_CXX='-Wl,'
 
11266
            lt_prog_compiler_static_CXX='-non_shared'
 
11267
            # CC pic flag -KPIC is the default.
 
11268
            ;;
 
11269
          *)
 
11270
            ;;
 
11271
        esac
 
11272
        ;;
 
11273
      linux*)
 
11274
        case $cc_basename in
 
11275
          KCC)
 
11276
            # KAI C++ Compiler
 
11277
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11278
            lt_prog_compiler_pic_CXX='-fPIC'
 
11279
            ;;
 
11280
          icpc)
 
11281
            # Intel C++
 
11282
            lt_prog_compiler_wl_CXX='-Wl,'
 
11283
            lt_prog_compiler_pic_CXX='-KPIC'
 
11284
            lt_prog_compiler_static_CXX='-static'
 
11285
            ;;
 
11286
          cxx)
 
11287
            # Compaq C++
 
11288
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11289
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11290
            lt_prog_compiler_pic_CXX=
 
11291
            lt_prog_compiler_static_CXX='-non_shared'
 
11292
            ;;
 
11293
          *)
 
11294
            ;;
 
11295
        esac
 
11296
        ;;
 
11297
      lynxos*)
 
11298
        ;;
 
11299
      m88k*)
 
11300
        ;;
 
11301
      mvs*)
 
11302
        case $cc_basename in
 
11303
          cxx)
 
11304
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11305
            ;;
 
11306
          *)
 
11307
            ;;
 
11308
        esac
 
11309
        ;;
 
11310
      netbsd*)
 
11311
        ;;
 
11312
      osf3* | osf4* | osf5*)
 
11313
        case $cc_basename in
 
11314
          KCC)
 
11315
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11316
            ;;
 
11317
          RCC)
 
11318
            # Rational C++ 2.4.1
 
11319
            lt_prog_compiler_pic_CXX='-pic'
 
11320
            ;;
 
11321
          cxx)
 
11322
            # Digital/Compaq C++
 
11323
            lt_prog_compiler_wl_CXX='-Wl,'
 
11324
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11325
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11326
            lt_prog_compiler_pic_CXX=
 
11327
            lt_prog_compiler_static_CXX='-non_shared'
 
11328
            ;;
 
11329
          *)
 
11330
            ;;
 
11331
        esac
 
11332
        ;;
 
11333
      psos*)
 
11334
        ;;
 
11335
      sco*)
 
11336
        case $cc_basename in
 
11337
          CC)
 
11338
            lt_prog_compiler_pic_CXX='-fPIC'
 
11339
            ;;
 
11340
          *)
 
11341
            ;;
 
11342
        esac
 
11343
        ;;
 
11344
      solaris*)
 
11345
        case $cc_basename in
 
11346
          CC)
 
11347
            # Sun C++ 4.2, 5.x and Centerline C++
 
11348
            lt_prog_compiler_pic_CXX='-KPIC'
 
11349
            lt_prog_compiler_static_CXX='-Bstatic'
 
11350
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11351
            ;;
 
11352
          gcx)
 
11353
            # Green Hills C++ Compiler
 
11354
            lt_prog_compiler_pic_CXX='-PIC'
 
11355
            ;;
 
11356
          *)
 
11357
            ;;
 
11358
        esac
 
11359
        ;;
 
11360
      sunos4*)
 
11361
        case $cc_basename in
 
11362
          CC)
 
11363
            # Sun C++ 4.x
 
11364
            lt_prog_compiler_pic_CXX='-pic'
 
11365
            lt_prog_compiler_static_CXX='-Bstatic'
 
11366
            ;;
 
11367
          lcc)
 
11368
            # Lucid
 
11369
            lt_prog_compiler_pic_CXX='-pic'
 
11370
            ;;
 
11371
          *)
 
11372
            ;;
 
11373
        esac
 
11374
        ;;
 
11375
      tandem*)
 
11376
        case $cc_basename in
 
11377
          NCC)
 
11378
            # NonStop-UX NCC 3.20
 
11379
            lt_prog_compiler_pic_CXX='-KPIC'
 
11380
            ;;
 
11381
          *)
 
11382
            ;;
 
11383
        esac
 
11384
        ;;
 
11385
      unixware*)
 
11386
        ;;
 
11387
      vxworks*)
 
11388
        ;;
 
11389
      *)
 
11390
        lt_prog_compiler_can_build_shared_CXX=no
 
11391
        ;;
 
11392
    esac
 
11393
  fi
 
11394
 
 
11395
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11396
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11397
 
 
11398
#
 
11399
# Check to make sure the PIC flag actually works.
 
11400
#
 
11401
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11402
 
 
11403
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11404
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11405
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11407
else
 
11408
  lt_prog_compiler_pic_works_CXX=no
 
11409
  ac_outfile=conftest.$ac_objext
 
11410
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11411
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11412
   # Insert the option either (1) after the last *FLAGS variable, or
 
11413
   # (2) before a word containing "conftest.", or (3) at the end.
 
11414
   # Note that $ac_compile itself does not contain backslashes and begins
 
11415
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11416
   # The option is referenced via a variable to avoid confusing sed.
 
11417
   lt_compile=`echo "$ac_compile" | $SED \
 
11418
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11419
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11420
   -e 's:$: $lt_compiler_flag:'`
 
11421
   (eval echo "\"\$as_me:11421: $lt_compile\"" >&5)
 
11422
   (eval "$lt_compile" 2>conftest.err)
 
11423
   ac_status=$?
 
11424
   cat conftest.err >&5
 
11425
   echo "$as_me:11425: \$? = $ac_status" >&5
 
11426
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11427
     # The compiler can only warn and ignore the option if not recognized
 
11428
     # So say no if there are warnings
 
11429
     if test ! -s conftest.err; then
 
11430
       lt_prog_compiler_pic_works_CXX=yes
 
11431
     fi
 
11432
   fi
 
11433
   $rm conftest*
 
11434
 
 
11435
fi
 
11436
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11437
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11438
 
 
11439
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11440
    case $lt_prog_compiler_pic_CXX in
 
11441
     "" | " "*) ;;
 
11442
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11443
     esac
 
11444
else
 
11445
    lt_prog_compiler_pic_CXX=
 
11446
     lt_prog_compiler_can_build_shared_CXX=no
 
11447
fi
 
11448
 
 
11449
fi
 
11450
case "$host_os" in
 
11451
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11452
  *djgpp*)
 
11453
    lt_prog_compiler_pic_CXX=
 
11454
    ;;
 
11455
  *)
 
11456
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11457
    ;;
 
11458
esac
 
11459
 
 
11460
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11461
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11462
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11464
else
 
11465
  lt_cv_prog_compiler_c_o_CXX=no
 
11466
   $rm -r conftest 2>/dev/null
 
11467
   mkdir conftest
 
11468
   cd conftest
 
11469
   mkdir out
 
11470
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11471
 
 
11472
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11473
   # Insert the option either (1) after the last *FLAGS variable, or
 
11474
   # (2) before a word containing "conftest.", or (3) at the end.
 
11475
   # Note that $ac_compile itself does not contain backslashes and begins
 
11476
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11477
   lt_compile=`echo "$ac_compile" | $SED \
 
11478
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11479
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11480
   -e 's:$: $lt_compiler_flag:'`
 
11481
   (eval echo "\"\$as_me:11481: $lt_compile\"" >&5)
 
11482
   (eval "$lt_compile" 2>out/conftest.err)
 
11483
   ac_status=$?
 
11484
   cat out/conftest.err >&5
 
11485
   echo "$as_me:11485: \$? = $ac_status" >&5
 
11486
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11487
   then
 
11488
     # The compiler can only warn and ignore the option if not recognized
 
11489
     # So say no if there are warnings
 
11490
     if test ! -s out/conftest.err; then
 
11491
       lt_cv_prog_compiler_c_o_CXX=yes
 
11492
     fi
 
11493
   fi
 
11494
   chmod u+w .
 
11495
   $rm conftest*
 
11496
   # SGI C++ compiler will create directory out/ii_files/ for
 
11497
   # template instantiation
 
11498
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11499
   $rm out/* && rmdir out
 
11500
   cd ..
 
11501
   rmdir conftest
 
11502
   $rm conftest*
 
11503
 
 
11504
fi
 
11505
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11506
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11507
 
 
11508
 
 
11509
hard_links="nottested"
 
11510
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11511
  # do not overwrite the value of need_locks provided by the user
 
11512
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11513
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11514
  hard_links=yes
 
11515
  $rm conftest*
 
11516
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11517
  touch conftest.a
 
11518
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11519
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11520
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11521
echo "${ECHO_T}$hard_links" >&6
 
11522
  if test "$hard_links" = no; then
 
11523
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11524
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11525
    need_locks=warn
 
11526
  fi
 
11527
else
 
11528
  need_locks=no
 
11529
fi
 
11530
 
 
11531
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11532
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11533
 
 
11534
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11535
  case $host_os in
 
11536
  aix4* | aix5*)
 
11537
    # If we're using GNU nm, then we don't want the "-C" option.
 
11538
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11539
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11540
      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'
 
11541
    else
 
11542
      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'
 
11543
    fi
 
11544
    ;;
 
11545
  pw32*)
 
11546
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11547
  ;;
 
11548
  cygwin* | mingw*)
 
11549
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11550
  ;;
 
11551
  *)
 
11552
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11553
  ;;
 
11554
  esac
 
11555
 
 
11556
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11557
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11558
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11559
 
 
11560
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11561
if test "$GCC" = yes; then
 
11562
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11563
fi
 
11564
 
 
11565
#
 
11566
# Do we need to explicitly link libc?
 
11567
#
 
11568
case "x$archive_cmds_need_lc_CXX" in
 
11569
x|xyes)
 
11570
  # Assume -lc should be added
 
11571
  archive_cmds_need_lc_CXX=yes
 
11572
 
 
11573
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11574
    case $archive_cmds_CXX in
 
11575
    *'~'*)
 
11576
      # FIXME: we may have to deal with multi-command sequences.
 
11577
      ;;
 
11578
    '$CC '*)
 
11579
      # Test whether the compiler implicitly links with -lc since on some
 
11580
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11581
      # to ld, don't add -lc before -lgcc.
 
11582
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11583
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11584
      $rm conftest*
 
11585
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11586
 
 
11587
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11588
  (eval $ac_compile) 2>&5
 
11589
  ac_status=$?
 
11590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11591
  (exit $ac_status); } 2>conftest.err; then
 
11592
        soname=conftest
 
11593
        lib=conftest
 
11594
        libobjs=conftest.$ac_objext
 
11595
        deplibs=
 
11596
        wl=$lt_prog_compiler_wl_CXX
 
11597
        compiler_flags=-v
 
11598
        linker_flags=-v
 
11599
        verstring=
 
11600
        output_objdir=.
 
11601
        libname=conftest
 
11602
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11603
        allow_undefined_flag_CXX=
 
11604
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11605
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11606
  ac_status=$?
 
11607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11608
  (exit $ac_status); }
 
11609
        then
 
11610
          archive_cmds_need_lc_CXX=no
 
11611
        else
 
11612
          archive_cmds_need_lc_CXX=yes
 
11613
        fi
 
11614
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11615
      else
 
11616
        cat conftest.err 1>&5
 
11617
      fi
 
11618
      $rm conftest*
 
11619
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11620
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11621
      ;;
 
11622
    esac
 
11623
  fi
 
11624
  ;;
 
11625
esac
 
11626
 
 
11627
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11628
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11629
library_names_spec=
 
11630
libname_spec='lib$name'
 
11631
soname_spec=
 
11632
shrext_cmds=".so"
 
11633
postinstall_cmds=
 
11634
postuninstall_cmds=
 
11635
finish_cmds=
 
11636
finish_eval=
 
11637
shlibpath_var=
 
11638
shlibpath_overrides_runpath=unknown
 
11639
version_type=none
 
11640
dynamic_linker="$host_os ld.so"
 
11641
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11642
if test "$GCC" = yes; then
 
11643
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11644
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11645
    # if the path contains ";" then we assume it to be the separator
 
11646
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11647
    # assumed that no part of a normal pathname contains ";" but that should
 
11648
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11649
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11650
  else
 
11651
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11652
  fi
 
11653
else
 
11654
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11655
fi
 
11656
need_lib_prefix=unknown
 
11657
hardcode_into_libs=no
 
11658
 
 
11659
# when you set need_version to no, make sure it does not cause -set_version
 
11660
# flags to be left without arguments
 
11661
need_version=unknown
 
11662
 
 
11663
case $host_os in
 
11664
aix3*)
 
11665
  version_type=linux
 
11666
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11667
  shlibpath_var=LIBPATH
 
11668
 
 
11669
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11670
  soname_spec='${libname}${release}${shared_ext}$major'
 
11671
  ;;
 
11672
 
 
11673
aix4* | aix5*)
 
11674
  version_type=linux
 
11675
  need_lib_prefix=no
 
11676
  need_version=no
 
11677
  hardcode_into_libs=yes
 
11678
  if test "$host_cpu" = ia64; then
 
11679
    # AIX 5 supports IA64
 
11680
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11681
    shlibpath_var=LD_LIBRARY_PATH
 
11682
  else
 
11683
    # With GCC up to 2.95.x, collect2 would create an import file
 
11684
    # for dependence libraries.  The import file would start with
 
11685
    # the line `#! .'.  This would cause the generated library to
 
11686
    # depend on `.', always an invalid library.  This was fixed in
 
11687
    # development snapshots of GCC prior to 3.0.
 
11688
    case $host_os in
 
11689
      aix4 | aix4.[01] | aix4.[01].*)
 
11690
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11691
           echo ' yes '
 
11692
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11693
        :
 
11694
      else
 
11695
        can_build_shared=no
 
11696
      fi
 
11697
      ;;
 
11698
    esac
 
11699
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11700
    # soname into executable. Probably we can add versioning support to
 
11701
    # collect2, so additional links can be useful in future.
 
11702
    if test "$aix_use_runtimelinking" = yes; then
 
11703
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11704
      # instead of lib<name>.a to let people know that these are not
 
11705
      # typical AIX shared libraries.
 
11706
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11707
    else
 
11708
      # We preserve .a as extension for shared libraries through AIX4.2
 
11709
      # and later when we are not doing run time linking.
 
11710
      library_names_spec='${libname}${release}.a $libname.a'
 
11711
      soname_spec='${libname}${release}${shared_ext}$major'
 
11712
    fi
 
11713
    shlibpath_var=LIBPATH
 
11714
  fi
 
11715
  ;;
 
11716
 
 
11717
amigaos*)
 
11718
  library_names_spec='$libname.ixlibrary $libname.a'
 
11719
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11720
  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'
 
11721
  ;;
 
11722
 
 
11723
beos*)
 
11724
  library_names_spec='${libname}${shared_ext}'
 
11725
  dynamic_linker="$host_os ld.so"
 
11726
  shlibpath_var=LIBRARY_PATH
 
11727
  ;;
 
11728
 
 
11729
bsdi[45]*)
 
11730
  version_type=linux
 
11731
  need_version=no
 
11732
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11733
  soname_spec='${libname}${release}${shared_ext}$major'
 
11734
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11735
  shlibpath_var=LD_LIBRARY_PATH
 
11736
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11737
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11738
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11739
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11740
  # libtool to hard-code these into programs
 
11741
  ;;
 
11742
 
 
11743
cygwin* | mingw* | pw32*)
 
11744
  version_type=windows
 
11745
  shrext_cmds=".dll"
 
11746
  need_version=no
 
11747
  need_lib_prefix=no
 
11748
 
 
11749
  case $GCC,$host_os in
 
11750
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11751
    library_names_spec='$libname.dll.a'
 
11752
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11753
    postinstall_cmds='base_file=`basename \${file}`~
 
11754
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11755
      dldir=$destdir/`dirname \$dlpath`~
 
11756
      test -d \$dldir || mkdir -p \$dldir~
 
11757
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11758
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11759
      dlpath=$dir/\$dldll~
 
11760
       $rm \$dlpath'
 
11761
    shlibpath_overrides_runpath=yes
 
11762
 
 
11763
    case $host_os in
 
11764
    cygwin*)
 
11765
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11766
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11767
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11768
      ;;
 
11769
    mingw*)
 
11770
      # MinGW DLLs use traditional 'lib' prefix
 
11771
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11772
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11773
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11774
        # It is most probably a Windows format PATH printed by
 
11775
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11776
        # path with ; separators, and with drive letters. We can handle the
 
11777
        # drive letters (cygwin fileutils understands them), so leave them,
 
11778
        # especially as we might pass files found there to a mingw objdump,
 
11779
        # which wouldn't understand a cygwinified path. Ahh.
 
11780
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11781
      else
 
11782
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11783
      fi
 
11784
      ;;
 
11785
    pw32*)
 
11786
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11787
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11788
      ;;
 
11789
    esac
 
11790
    ;;
 
11791
 
 
11792
  *)
 
11793
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11794
    ;;
 
11795
  esac
 
11796
  dynamic_linker='Win32 ld.exe'
 
11797
  # FIXME: first we should search . and the directory the executable is in
 
11798
  shlibpath_var=PATH
 
11799
  ;;
 
11800
 
 
11801
darwin* | rhapsody*)
 
11802
  dynamic_linker="$host_os dyld"
 
11803
  version_type=darwin
 
11804
  need_lib_prefix=no
 
11805
  need_version=no
 
11806
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11807
  soname_spec='${libname}${release}${major}$shared_ext'
 
11808
  shlibpath_overrides_runpath=yes
 
11809
  shlibpath_var=DYLD_LIBRARY_PATH
 
11810
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11811
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11812
  if test "$GCC" = yes; then
 
11813
    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"`
 
11814
  else
 
11815
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11816
  fi
 
11817
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11818
  ;;
 
11819
 
 
11820
dgux*)
 
11821
  version_type=linux
 
11822
  need_lib_prefix=no
 
11823
  need_version=no
 
11824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11825
  soname_spec='${libname}${release}${shared_ext}$major'
 
11826
  shlibpath_var=LD_LIBRARY_PATH
 
11827
  ;;
 
11828
 
 
11829
freebsd1*)
 
11830
  dynamic_linker=no
 
11831
  ;;
 
11832
 
 
11833
kfreebsd*-gnu)
 
11834
  version_type=linux
 
11835
  need_lib_prefix=no
 
11836
  need_version=no
 
11837
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11838
  soname_spec='${libname}${release}${shared_ext}$major'
 
11839
  shlibpath_var=LD_LIBRARY_PATH
 
11840
  shlibpath_overrides_runpath=no
 
11841
  hardcode_into_libs=yes
 
11842
  dynamic_linker='GNU ld.so'
 
11843
  ;;
 
11844
 
 
11845
freebsd*)
 
11846
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11847
  version_type=freebsd-$objformat
 
11848
  case $version_type in
 
11849
    freebsd-elf*)
 
11850
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11851
      need_version=no
 
11852
      need_lib_prefix=no
 
11853
      ;;
 
11854
    freebsd-*)
 
11855
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11856
      need_version=yes
 
11857
      ;;
 
11858
  esac
 
11859
  shlibpath_var=LD_LIBRARY_PATH
 
11860
  case $host_os in
 
11861
  freebsd2*)
 
11862
    shlibpath_overrides_runpath=yes
 
11863
    ;;
 
11864
  freebsd3.01* | freebsdelf3.01*)
 
11865
    shlibpath_overrides_runpath=yes
 
11866
    hardcode_into_libs=yes
 
11867
    ;;
 
11868
  *) # from 3.2 on
 
11869
    shlibpath_overrides_runpath=no
 
11870
    hardcode_into_libs=yes
 
11871
    ;;
 
11872
  esac
 
11873
  ;;
 
11874
 
 
11875
gnu*)
 
11876
  version_type=linux
 
11877
  need_lib_prefix=no
 
11878
  need_version=no
 
11879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11880
  soname_spec='${libname}${release}${shared_ext}$major'
 
11881
  shlibpath_var=LD_LIBRARY_PATH
 
11882
  hardcode_into_libs=yes
 
11883
  ;;
 
11884
 
 
11885
hpux9* | hpux10* | hpux11*)
 
11886
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11887
  # link against other versions.
 
11888
  version_type=sunos
 
11889
  need_lib_prefix=no
 
11890
  need_version=no
 
11891
  case "$host_cpu" in
 
11892
  ia64*)
 
11893
    shrext_cmds='.so'
 
11894
    hardcode_into_libs=yes
 
11895
    dynamic_linker="$host_os dld.so"
 
11896
    shlibpath_var=LD_LIBRARY_PATH
 
11897
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11898
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11899
    soname_spec='${libname}${release}${shared_ext}$major'
 
11900
    if test "X$HPUX_IA64_MODE" = X32; then
 
11901
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11902
    else
 
11903
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11904
    fi
 
11905
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11906
    ;;
 
11907
   hppa*64*)
 
11908
     shrext_cmds='.sl'
 
11909
     hardcode_into_libs=yes
 
11910
     dynamic_linker="$host_os dld.sl"
 
11911
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11912
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11913
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11914
     soname_spec='${libname}${release}${shared_ext}$major'
 
11915
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11916
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11917
     ;;
 
11918
   *)
 
11919
    shrext_cmds='.sl'
 
11920
    dynamic_linker="$host_os dld.sl"
 
11921
    shlibpath_var=SHLIB_PATH
 
11922
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11923
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11924
    soname_spec='${libname}${release}${shared_ext}$major'
 
11925
    ;;
 
11926
  esac
 
11927
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11928
  postinstall_cmds='chmod 555 $lib'
 
11929
  ;;
 
11930
 
 
11931
irix5* | irix6* | nonstopux*)
 
11932
  case $host_os in
 
11933
    nonstopux*) version_type=nonstopux ;;
 
11934
    *)
 
11935
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11936
                version_type=linux
 
11937
        else
 
11938
                version_type=irix
 
11939
        fi ;;
 
11940
  esac
 
11941
  need_lib_prefix=no
 
11942
  need_version=no
 
11943
  soname_spec='${libname}${release}${shared_ext}$major'
 
11944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11945
  case $host_os in
 
11946
  irix5* | nonstopux*)
 
11947
    libsuff= shlibsuff=
 
11948
    ;;
 
11949
  *)
 
11950
    case $LD in # libtool.m4 will add one of these switches to LD
 
11951
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11952
      libsuff= shlibsuff= libmagic=32-bit;;
 
11953
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11954
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11955
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11956
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11957
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11958
    esac
 
11959
    ;;
 
11960
  esac
 
11961
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11962
  shlibpath_overrides_runpath=no
 
11963
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11964
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11965
  hardcode_into_libs=yes
 
11966
  ;;
 
11967
 
 
11968
# No shared lib support for Linux oldld, aout, or coff.
 
11969
linux*oldld* | linux*aout* | linux*coff*)
 
11970
  dynamic_linker=no
 
11971
  ;;
 
11972
 
 
11973
# This must be Linux ELF.
 
11974
linux*)
 
11975
  version_type=linux
 
11976
  need_lib_prefix=no
 
11977
  need_version=no
 
11978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11979
  soname_spec='${libname}${release}${shared_ext}$major'
 
11980
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11981
  shlibpath_var=LD_LIBRARY_PATH
 
11982
  shlibpath_overrides_runpath=no
 
11983
  # This implies no fast_install, which is unacceptable.
 
11984
  # Some rework will be needed to allow for fast_install
 
11985
  # before this can be enabled.
 
11986
  hardcode_into_libs=yes
 
11987
 
 
11988
  # find out which ABI we are using
 
11989
  libsuff=
 
11990
  case "$host_cpu" in
 
11991
  x86_64*|s390x*|powerpc64*)
 
11992
    echo '#line 11992 "configure"' > conftest.$ac_ext
 
11993
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11994
  (eval $ac_compile) 2>&5
 
11995
  ac_status=$?
 
11996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11997
  (exit $ac_status); }; then
 
11998
      case `/usr/bin/file conftest.$ac_objext` in
 
11999
      *64-bit*)
 
12000
        libsuff=64
 
12001
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
12002
        ;;
 
12003
      esac
 
12004
    fi
 
12005
    rm -rf conftest*
 
12006
    ;;
 
12007
  esac
 
12008
 
 
12009
  # Append ld.so.conf contents to the search path
 
12010
  if test -f /etc/ld.so.conf; then
 
12011
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12012
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12013
  fi
 
12014
 
 
12015
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12016
  # powerpc, because MkLinux only supported shared libraries with the
 
12017
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12018
  # most powerpc-linux boxes support dynamic linking these days and
 
12019
  # people can always --disable-shared, the test was removed, and we
 
12020
  # assume the GNU/Linux dynamic linker is in use.
 
12021
  dynamic_linker='GNU/Linux ld.so'
 
12022
  ;;
 
12023
 
 
12024
knetbsd*-gnu)
 
12025
  version_type=linux
 
12026
  need_lib_prefix=no
 
12027
  need_version=no
 
12028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12029
  soname_spec='${libname}${release}${shared_ext}$major'
 
12030
  shlibpath_var=LD_LIBRARY_PATH
 
12031
  shlibpath_overrides_runpath=no
 
12032
  hardcode_into_libs=yes
 
12033
  dynamic_linker='GNU ld.so'
 
12034
  ;;
 
12035
 
 
12036
netbsd*)
 
12037
  version_type=sunos
 
12038
  need_lib_prefix=no
 
12039
  need_version=no
 
12040
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12041
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12042
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12043
    dynamic_linker='NetBSD (a.out) ld.so'
 
12044
  else
 
12045
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12046
    soname_spec='${libname}${release}${shared_ext}$major'
 
12047
    dynamic_linker='NetBSD ld.elf_so'
 
12048
  fi
 
12049
  shlibpath_var=LD_LIBRARY_PATH
 
12050
  shlibpath_overrides_runpath=yes
 
12051
  hardcode_into_libs=yes
 
12052
  ;;
 
12053
 
 
12054
newsos6)
 
12055
  version_type=linux
 
12056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12057
  shlibpath_var=LD_LIBRARY_PATH
 
12058
  shlibpath_overrides_runpath=yes
 
12059
  ;;
 
12060
 
 
12061
nto-qnx*)
 
12062
  version_type=linux
 
12063
  need_lib_prefix=no
 
12064
  need_version=no
 
12065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12066
  soname_spec='${libname}${release}${shared_ext}$major'
 
12067
  shlibpath_var=LD_LIBRARY_PATH
 
12068
  shlibpath_overrides_runpath=yes
 
12069
  ;;
 
12070
 
 
12071
openbsd*)
 
12072
  version_type=sunos
 
12073
  need_lib_prefix=no
 
12074
  need_version=no
 
12075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12076
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12077
  shlibpath_var=LD_LIBRARY_PATH
 
12078
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12079
    case $host_os in
 
12080
      openbsd2.[89] | openbsd2.[89].*)
 
12081
        shlibpath_overrides_runpath=no
 
12082
        ;;
 
12083
      *)
 
12084
        shlibpath_overrides_runpath=yes
 
12085
        ;;
 
12086
      esac
 
12087
  else
 
12088
    shlibpath_overrides_runpath=yes
 
12089
  fi
 
12090
  ;;
 
12091
 
 
12092
os2*)
 
12093
  libname_spec='$name'
 
12094
  shrext_cmds=".dll"
 
12095
  need_lib_prefix=no
 
12096
  library_names_spec='$libname${shared_ext} $libname.a'
 
12097
  dynamic_linker='OS/2 ld.exe'
 
12098
  shlibpath_var=LIBPATH
 
12099
  ;;
 
12100
 
 
12101
osf3* | osf4* | osf5*)
 
12102
  version_type=osf
 
12103
  need_lib_prefix=no
 
12104
  need_version=no
 
12105
  soname_spec='${libname}${release}${shared_ext}$major'
 
12106
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12107
  shlibpath_var=LD_LIBRARY_PATH
 
12108
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12109
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12110
  ;;
 
12111
 
 
12112
sco3.2v5*)
 
12113
  version_type=osf
 
12114
  soname_spec='${libname}${release}${shared_ext}$major'
 
12115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12116
  shlibpath_var=LD_LIBRARY_PATH
 
12117
  ;;
 
12118
 
 
12119
solaris*)
 
12120
  version_type=linux
 
12121
  need_lib_prefix=no
 
12122
  need_version=no
 
12123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12124
  soname_spec='${libname}${release}${shared_ext}$major'
 
12125
  shlibpath_var=LD_LIBRARY_PATH
 
12126
  shlibpath_overrides_runpath=yes
 
12127
  hardcode_into_libs=yes
 
12128
  # ldd complains unless libraries are executable
 
12129
  postinstall_cmds='chmod +x $lib'
 
12130
  ;;
 
12131
 
 
12132
sunos4*)
 
12133
  version_type=sunos
 
12134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12135
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12136
  shlibpath_var=LD_LIBRARY_PATH
 
12137
  shlibpath_overrides_runpath=yes
 
12138
  if test "$with_gnu_ld" = yes; then
 
12139
    need_lib_prefix=no
 
12140
  fi
 
12141
  need_version=yes
 
12142
  ;;
 
12143
 
 
12144
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12145
  version_type=linux
 
12146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12147
  soname_spec='${libname}${release}${shared_ext}$major'
 
12148
  shlibpath_var=LD_LIBRARY_PATH
 
12149
  case $host_vendor in
 
12150
    sni)
 
12151
      shlibpath_overrides_runpath=no
 
12152
      need_lib_prefix=no
 
12153
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12154
      runpath_var=LD_RUN_PATH
 
12155
      ;;
 
12156
    siemens)
 
12157
      need_lib_prefix=no
 
12158
      ;;
 
12159
    motorola)
 
12160
      need_lib_prefix=no
 
12161
      need_version=no
 
12162
      shlibpath_overrides_runpath=no
 
12163
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12164
      ;;
 
12165
  esac
 
12166
  ;;
 
12167
 
 
12168
sysv4*MP*)
 
12169
  if test -d /usr/nec ;then
 
12170
    version_type=linux
 
12171
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12172
    soname_spec='$libname${shared_ext}.$major'
 
12173
    shlibpath_var=LD_LIBRARY_PATH
 
12174
  fi
 
12175
  ;;
 
12176
 
 
12177
uts4*)
 
12178
  version_type=linux
 
12179
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12180
  soname_spec='${libname}${release}${shared_ext}$major'
 
12181
  shlibpath_var=LD_LIBRARY_PATH
 
12182
  ;;
 
12183
 
 
12184
*)
 
12185
  dynamic_linker=no
 
12186
  ;;
 
12187
esac
 
12188
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12189
echo "${ECHO_T}$dynamic_linker" >&6
 
12190
test "$dynamic_linker" = no && can_build_shared=no
 
12191
 
 
12192
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12193
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12194
hardcode_action_CXX=
 
12195
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12196
   test -n "$runpath_var_CXX" || \
 
12197
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12198
 
 
12199
  # We can hardcode non-existant directories.
 
12200
  if test "$hardcode_direct_CXX" != no &&
 
12201
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12202
     # have to relink, otherwise we might link with an installed library
 
12203
     # when we should be linking with a yet-to-be-installed one
 
12204
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12205
     test "$hardcode_minus_L_CXX" != no; then
 
12206
    # Linking always hardcodes the temporary library directory.
 
12207
    hardcode_action_CXX=relink
 
12208
  else
 
12209
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12210
    hardcode_action_CXX=immediate
 
12211
  fi
 
12212
else
 
12213
  # We cannot hardcode anything, or else we can only hardcode existing
 
12214
  # directories.
 
12215
  hardcode_action_CXX=unsupported
 
12216
fi
 
12217
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12218
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12219
 
 
12220
if test "$hardcode_action_CXX" = relink; then
 
12221
  # Fast installation is not supported
 
12222
  enable_fast_install=no
 
12223
elif test "$shlibpath_overrides_runpath" = yes ||
 
12224
     test "$enable_shared" = no; then
 
12225
  # Fast installation is not necessary
 
12226
  enable_fast_install=needless
 
12227
fi
 
12228
 
 
12229
striplib=
 
12230
old_striplib=
 
12231
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12232
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12233
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12234
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12235
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12236
  echo "$as_me:$LINENO: result: yes" >&5
 
12237
echo "${ECHO_T}yes" >&6
 
12238
else
 
12239
# FIXME - insert some real tests, host_os isn't really good enough
 
12240
  case $host_os in
 
12241
   darwin*)
 
12242
       if test -n "$STRIP" ; then
 
12243
         striplib="$STRIP -x"
 
12244
         echo "$as_me:$LINENO: result: yes" >&5
 
12245
echo "${ECHO_T}yes" >&6
 
12246
       else
 
12247
  echo "$as_me:$LINENO: result: no" >&5
 
12248
echo "${ECHO_T}no" >&6
 
12249
fi
 
12250
       ;;
 
12251
   *)
 
12252
  echo "$as_me:$LINENO: result: no" >&5
 
12253
echo "${ECHO_T}no" >&6
 
12254
    ;;
 
12255
  esac
 
12256
fi
 
12257
 
 
12258
if test "x$enable_dlopen" != xyes; then
 
12259
  enable_dlopen=unknown
 
12260
  enable_dlopen_self=unknown
 
12261
  enable_dlopen_self_static=unknown
 
12262
else
 
12263
  lt_cv_dlopen=no
 
12264
  lt_cv_dlopen_libs=
 
12265
 
 
12266
  case $host_os in
 
12267
  beos*)
 
12268
    lt_cv_dlopen="load_add_on"
 
12269
    lt_cv_dlopen_libs=
 
12270
    lt_cv_dlopen_self=yes
 
12271
    ;;
 
12272
 
 
12273
  mingw* | pw32*)
 
12274
    lt_cv_dlopen="LoadLibrary"
 
12275
    lt_cv_dlopen_libs=
 
12276
   ;;
 
12277
 
 
12278
  cygwin*)
 
12279
    lt_cv_dlopen="dlopen"
 
12280
    lt_cv_dlopen_libs=
 
12281
   ;;
 
12282
 
 
12283
  darwin*)
 
12284
  # if libdl is installed we need to link against it
 
12285
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12286
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12287
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12289
else
 
12290
  ac_check_lib_save_LIBS=$LIBS
 
12291
LIBS="-ldl  $LIBS"
 
12292
cat >conftest.$ac_ext <<_ACEOF
 
12293
/* confdefs.h.  */
 
12294
_ACEOF
 
12295
cat confdefs.h >>conftest.$ac_ext
 
12296
cat >>conftest.$ac_ext <<_ACEOF
 
12297
/* end confdefs.h.  */
 
12298
 
 
12299
/* Override any gcc2 internal prototype to avoid an error.  */
 
12300
#ifdef __cplusplus
 
12301
extern "C"
 
12302
#endif
 
12303
/* We use char because int might match the return type of a gcc2
 
12304
   builtin and then its argument prototype would still apply.  */
 
12305
char dlopen ();
 
12306
int
 
12307
main ()
 
12308
{
 
12309
dlopen ();
 
12310
  ;
 
12311
  return 0;
 
12312
}
 
12313
_ACEOF
 
12314
rm -f conftest.$ac_objext conftest$ac_exeext
 
12315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12316
  (eval $ac_link) 2>conftest.er1
 
12317
  ac_status=$?
 
12318
  grep -v '^ *+' conftest.er1 >conftest.err
 
12319
  rm -f conftest.er1
 
12320
  cat conftest.err >&5
 
12321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12322
  (exit $ac_status); } &&
 
12323
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12324
                         || test ! -s conftest.err'
 
12325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12326
  (eval $ac_try) 2>&5
 
12327
  ac_status=$?
 
12328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12329
  (exit $ac_status); }; } &&
 
12330
         { ac_try='test -s conftest$ac_exeext'
 
12331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12332
  (eval $ac_try) 2>&5
 
12333
  ac_status=$?
 
12334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12335
  (exit $ac_status); }; }; then
 
12336
  ac_cv_lib_dl_dlopen=yes
 
12337
else
 
12338
  echo "$as_me: failed program was:" >&5
 
12339
sed 's/^/| /' conftest.$ac_ext >&5
 
12340
 
 
12341
ac_cv_lib_dl_dlopen=no
 
12342
fi
 
12343
rm -f conftest.err conftest.$ac_objext \
 
12344
      conftest$ac_exeext conftest.$ac_ext
 
12345
LIBS=$ac_check_lib_save_LIBS
 
12346
fi
 
12347
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12348
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12349
if test $ac_cv_lib_dl_dlopen = yes; then
 
12350
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12351
else
 
12352
 
 
12353
    lt_cv_dlopen="dyld"
 
12354
    lt_cv_dlopen_libs=
 
12355
    lt_cv_dlopen_self=yes
 
12356
 
 
12357
fi
 
12358
 
 
12359
   ;;
 
12360
 
 
12361
  *)
 
12362
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12363
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12364
if test "${ac_cv_func_shl_load+set}" = set; then
 
12365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12366
else
 
12367
  cat >conftest.$ac_ext <<_ACEOF
 
12368
/* confdefs.h.  */
 
12369
_ACEOF
 
12370
cat confdefs.h >>conftest.$ac_ext
 
12371
cat >>conftest.$ac_ext <<_ACEOF
 
12372
/* end confdefs.h.  */
 
12373
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12374
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12375
#define shl_load innocuous_shl_load
 
12376
 
 
12377
/* System header to define __stub macros and hopefully few prototypes,
 
12378
    which can conflict with char shl_load (); below.
 
12379
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12380
    <limits.h> exists even on freestanding compilers.  */
 
12381
 
 
12382
#ifdef __STDC__
 
12383
# include <limits.h>
 
12384
#else
 
12385
# include <assert.h>
 
12386
#endif
 
12387
 
 
12388
#undef shl_load
 
12389
 
 
12390
/* Override any gcc2 internal prototype to avoid an error.  */
 
12391
#ifdef __cplusplus
 
12392
extern "C"
 
12393
{
 
12394
#endif
 
12395
/* We use char because int might match the return type of a gcc2
 
12396
   builtin and then its argument prototype would still apply.  */
 
12397
char shl_load ();
 
12398
/* The GNU C library defines this for functions which it implements
 
12399
    to always fail with ENOSYS.  Some functions are actually named
 
12400
    something starting with __ and the normal name is an alias.  */
 
12401
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12402
choke me
 
12403
#else
 
12404
char (*f) () = shl_load;
 
12405
#endif
 
12406
#ifdef __cplusplus
 
12407
}
 
12408
#endif
 
12409
 
 
12410
int
 
12411
main ()
 
12412
{
 
12413
return f != shl_load;
 
12414
  ;
 
12415
  return 0;
 
12416
}
 
12417
_ACEOF
 
12418
rm -f conftest.$ac_objext conftest$ac_exeext
 
12419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12420
  (eval $ac_link) 2>conftest.er1
 
12421
  ac_status=$?
 
12422
  grep -v '^ *+' conftest.er1 >conftest.err
 
12423
  rm -f conftest.er1
 
12424
  cat conftest.err >&5
 
12425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12426
  (exit $ac_status); } &&
 
12427
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12428
                         || test ! -s conftest.err'
 
12429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12430
  (eval $ac_try) 2>&5
 
12431
  ac_status=$?
 
12432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12433
  (exit $ac_status); }; } &&
 
12434
         { ac_try='test -s conftest$ac_exeext'
 
12435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12436
  (eval $ac_try) 2>&5
 
12437
  ac_status=$?
 
12438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12439
  (exit $ac_status); }; }; then
 
12440
  ac_cv_func_shl_load=yes
 
12441
else
 
12442
  echo "$as_me: failed program was:" >&5
 
12443
sed 's/^/| /' conftest.$ac_ext >&5
 
12444
 
 
12445
ac_cv_func_shl_load=no
 
12446
fi
 
12447
rm -f conftest.err conftest.$ac_objext \
 
12448
      conftest$ac_exeext conftest.$ac_ext
 
12449
fi
 
12450
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12451
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12452
if test $ac_cv_func_shl_load = yes; then
 
12453
  lt_cv_dlopen="shl_load"
 
12454
else
 
12455
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12456
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12457
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12459
else
 
12460
  ac_check_lib_save_LIBS=$LIBS
 
12461
LIBS="-ldld  $LIBS"
 
12462
cat >conftest.$ac_ext <<_ACEOF
 
12463
/* confdefs.h.  */
 
12464
_ACEOF
 
12465
cat confdefs.h >>conftest.$ac_ext
 
12466
cat >>conftest.$ac_ext <<_ACEOF
 
12467
/* end confdefs.h.  */
 
12468
 
 
12469
/* Override any gcc2 internal prototype to avoid an error.  */
 
12470
#ifdef __cplusplus
 
12471
extern "C"
 
12472
#endif
 
12473
/* We use char because int might match the return type of a gcc2
 
12474
   builtin and then its argument prototype would still apply.  */
 
12475
char shl_load ();
 
12476
int
 
12477
main ()
 
12478
{
 
12479
shl_load ();
 
12480
  ;
 
12481
  return 0;
 
12482
}
 
12483
_ACEOF
 
12484
rm -f conftest.$ac_objext conftest$ac_exeext
 
12485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12486
  (eval $ac_link) 2>conftest.er1
 
12487
  ac_status=$?
 
12488
  grep -v '^ *+' conftest.er1 >conftest.err
 
12489
  rm -f conftest.er1
 
12490
  cat conftest.err >&5
 
12491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12492
  (exit $ac_status); } &&
 
12493
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12494
                         || test ! -s conftest.err'
 
12495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12496
  (eval $ac_try) 2>&5
 
12497
  ac_status=$?
 
12498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12499
  (exit $ac_status); }; } &&
 
12500
         { ac_try='test -s conftest$ac_exeext'
 
12501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12502
  (eval $ac_try) 2>&5
 
12503
  ac_status=$?
 
12504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12505
  (exit $ac_status); }; }; then
 
12506
  ac_cv_lib_dld_shl_load=yes
 
12507
else
 
12508
  echo "$as_me: failed program was:" >&5
 
12509
sed 's/^/| /' conftest.$ac_ext >&5
 
12510
 
 
12511
ac_cv_lib_dld_shl_load=no
 
12512
fi
 
12513
rm -f conftest.err conftest.$ac_objext \
 
12514
      conftest$ac_exeext conftest.$ac_ext
 
12515
LIBS=$ac_check_lib_save_LIBS
 
12516
fi
 
12517
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12518
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12519
if test $ac_cv_lib_dld_shl_load = yes; then
 
12520
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12521
else
 
12522
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12523
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12524
if test "${ac_cv_func_dlopen+set}" = set; then
 
12525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12526
else
 
12527
  cat >conftest.$ac_ext <<_ACEOF
 
12528
/* confdefs.h.  */
 
12529
_ACEOF
 
12530
cat confdefs.h >>conftest.$ac_ext
 
12531
cat >>conftest.$ac_ext <<_ACEOF
 
12532
/* end confdefs.h.  */
 
12533
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12534
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12535
#define dlopen innocuous_dlopen
 
12536
 
 
12537
/* System header to define __stub macros and hopefully few prototypes,
 
12538
    which can conflict with char dlopen (); below.
 
12539
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12540
    <limits.h> exists even on freestanding compilers.  */
 
12541
 
 
12542
#ifdef __STDC__
 
12543
# include <limits.h>
 
12544
#else
 
12545
# include <assert.h>
 
12546
#endif
 
12547
 
 
12548
#undef dlopen
 
12549
 
 
12550
/* Override any gcc2 internal prototype to avoid an error.  */
 
12551
#ifdef __cplusplus
 
12552
extern "C"
 
12553
{
 
12554
#endif
 
12555
/* We use char because int might match the return type of a gcc2
 
12556
   builtin and then its argument prototype would still apply.  */
 
12557
char dlopen ();
 
12558
/* The GNU C library defines this for functions which it implements
 
12559
    to always fail with ENOSYS.  Some functions are actually named
 
12560
    something starting with __ and the normal name is an alias.  */
 
12561
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12562
choke me
 
12563
#else
 
12564
char (*f) () = dlopen;
 
12565
#endif
 
12566
#ifdef __cplusplus
 
12567
}
 
12568
#endif
 
12569
 
 
12570
int
 
12571
main ()
 
12572
{
 
12573
return f != dlopen;
 
12574
  ;
 
12575
  return 0;
 
12576
}
 
12577
_ACEOF
 
12578
rm -f conftest.$ac_objext conftest$ac_exeext
 
12579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12580
  (eval $ac_link) 2>conftest.er1
 
12581
  ac_status=$?
 
12582
  grep -v '^ *+' conftest.er1 >conftest.err
 
12583
  rm -f conftest.er1
 
12584
  cat conftest.err >&5
 
12585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12586
  (exit $ac_status); } &&
 
12587
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12588
                         || test ! -s conftest.err'
 
12589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12590
  (eval $ac_try) 2>&5
 
12591
  ac_status=$?
 
12592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12593
  (exit $ac_status); }; } &&
 
12594
         { ac_try='test -s conftest$ac_exeext'
 
12595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12596
  (eval $ac_try) 2>&5
 
12597
  ac_status=$?
 
12598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12599
  (exit $ac_status); }; }; then
 
12600
  ac_cv_func_dlopen=yes
 
12601
else
 
12602
  echo "$as_me: failed program was:" >&5
 
12603
sed 's/^/| /' conftest.$ac_ext >&5
 
12604
 
 
12605
ac_cv_func_dlopen=no
 
12606
fi
 
12607
rm -f conftest.err conftest.$ac_objext \
 
12608
      conftest$ac_exeext conftest.$ac_ext
 
12609
fi
 
12610
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12611
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12612
if test $ac_cv_func_dlopen = yes; then
 
12613
  lt_cv_dlopen="dlopen"
 
12614
else
 
12615
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12616
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12617
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12619
else
 
12620
  ac_check_lib_save_LIBS=$LIBS
 
12621
LIBS="-ldl  $LIBS"
 
12622
cat >conftest.$ac_ext <<_ACEOF
 
12623
/* confdefs.h.  */
 
12624
_ACEOF
 
12625
cat confdefs.h >>conftest.$ac_ext
 
12626
cat >>conftest.$ac_ext <<_ACEOF
 
12627
/* end confdefs.h.  */
 
12628
 
 
12629
/* Override any gcc2 internal prototype to avoid an error.  */
 
12630
#ifdef __cplusplus
 
12631
extern "C"
 
12632
#endif
 
12633
/* We use char because int might match the return type of a gcc2
 
12634
   builtin and then its argument prototype would still apply.  */
 
12635
char dlopen ();
 
12636
int
 
12637
main ()
 
12638
{
 
12639
dlopen ();
 
12640
  ;
 
12641
  return 0;
 
12642
}
 
12643
_ACEOF
 
12644
rm -f conftest.$ac_objext conftest$ac_exeext
 
12645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12646
  (eval $ac_link) 2>conftest.er1
 
12647
  ac_status=$?
 
12648
  grep -v '^ *+' conftest.er1 >conftest.err
 
12649
  rm -f conftest.er1
 
12650
  cat conftest.err >&5
 
12651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12652
  (exit $ac_status); } &&
 
12653
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12654
                         || test ! -s conftest.err'
 
12655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12656
  (eval $ac_try) 2>&5
 
12657
  ac_status=$?
 
12658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12659
  (exit $ac_status); }; } &&
 
12660
         { ac_try='test -s conftest$ac_exeext'
 
12661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12662
  (eval $ac_try) 2>&5
 
12663
  ac_status=$?
 
12664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12665
  (exit $ac_status); }; }; then
 
12666
  ac_cv_lib_dl_dlopen=yes
 
12667
else
 
12668
  echo "$as_me: failed program was:" >&5
 
12669
sed 's/^/| /' conftest.$ac_ext >&5
 
12670
 
 
12671
ac_cv_lib_dl_dlopen=no
 
12672
fi
 
12673
rm -f conftest.err conftest.$ac_objext \
 
12674
      conftest$ac_exeext conftest.$ac_ext
 
12675
LIBS=$ac_check_lib_save_LIBS
 
12676
fi
 
12677
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12678
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12679
if test $ac_cv_lib_dl_dlopen = yes; then
 
12680
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12681
else
 
12682
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12683
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12684
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12686
else
 
12687
  ac_check_lib_save_LIBS=$LIBS
 
12688
LIBS="-lsvld  $LIBS"
 
12689
cat >conftest.$ac_ext <<_ACEOF
 
12690
/* confdefs.h.  */
 
12691
_ACEOF
 
12692
cat confdefs.h >>conftest.$ac_ext
 
12693
cat >>conftest.$ac_ext <<_ACEOF
 
12694
/* end confdefs.h.  */
 
12695
 
 
12696
/* Override any gcc2 internal prototype to avoid an error.  */
 
12697
#ifdef __cplusplus
 
12698
extern "C"
 
12699
#endif
 
12700
/* We use char because int might match the return type of a gcc2
 
12701
   builtin and then its argument prototype would still apply.  */
 
12702
char dlopen ();
 
12703
int
 
12704
main ()
 
12705
{
 
12706
dlopen ();
 
12707
  ;
 
12708
  return 0;
 
12709
}
 
12710
_ACEOF
 
12711
rm -f conftest.$ac_objext conftest$ac_exeext
 
12712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12713
  (eval $ac_link) 2>conftest.er1
 
12714
  ac_status=$?
 
12715
  grep -v '^ *+' conftest.er1 >conftest.err
 
12716
  rm -f conftest.er1
 
12717
  cat conftest.err >&5
 
12718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12719
  (exit $ac_status); } &&
 
12720
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12721
                         || test ! -s conftest.err'
 
12722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12723
  (eval $ac_try) 2>&5
 
12724
  ac_status=$?
 
12725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12726
  (exit $ac_status); }; } &&
 
12727
         { ac_try='test -s conftest$ac_exeext'
 
12728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12729
  (eval $ac_try) 2>&5
 
12730
  ac_status=$?
 
12731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12732
  (exit $ac_status); }; }; then
 
12733
  ac_cv_lib_svld_dlopen=yes
 
12734
else
 
12735
  echo "$as_me: failed program was:" >&5
 
12736
sed 's/^/| /' conftest.$ac_ext >&5
 
12737
 
 
12738
ac_cv_lib_svld_dlopen=no
 
12739
fi
 
12740
rm -f conftest.err conftest.$ac_objext \
 
12741
      conftest$ac_exeext conftest.$ac_ext
 
12742
LIBS=$ac_check_lib_save_LIBS
 
12743
fi
 
12744
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12745
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12746
if test $ac_cv_lib_svld_dlopen = yes; then
 
12747
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12748
else
 
12749
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12750
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12751
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12753
else
 
12754
  ac_check_lib_save_LIBS=$LIBS
 
12755
LIBS="-ldld  $LIBS"
 
12756
cat >conftest.$ac_ext <<_ACEOF
 
12757
/* confdefs.h.  */
 
12758
_ACEOF
 
12759
cat confdefs.h >>conftest.$ac_ext
 
12760
cat >>conftest.$ac_ext <<_ACEOF
 
12761
/* end confdefs.h.  */
 
12762
 
 
12763
/* Override any gcc2 internal prototype to avoid an error.  */
 
12764
#ifdef __cplusplus
 
12765
extern "C"
 
12766
#endif
 
12767
/* We use char because int might match the return type of a gcc2
 
12768
   builtin and then its argument prototype would still apply.  */
 
12769
char dld_link ();
 
12770
int
 
12771
main ()
 
12772
{
 
12773
dld_link ();
 
12774
  ;
 
12775
  return 0;
 
12776
}
 
12777
_ACEOF
 
12778
rm -f conftest.$ac_objext conftest$ac_exeext
 
12779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12780
  (eval $ac_link) 2>conftest.er1
 
12781
  ac_status=$?
 
12782
  grep -v '^ *+' conftest.er1 >conftest.err
 
12783
  rm -f conftest.er1
 
12784
  cat conftest.err >&5
 
12785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12786
  (exit $ac_status); } &&
 
12787
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12788
                         || test ! -s conftest.err'
 
12789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12790
  (eval $ac_try) 2>&5
 
12791
  ac_status=$?
 
12792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12793
  (exit $ac_status); }; } &&
 
12794
         { ac_try='test -s conftest$ac_exeext'
 
12795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12796
  (eval $ac_try) 2>&5
 
12797
  ac_status=$?
 
12798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12799
  (exit $ac_status); }; }; then
 
12800
  ac_cv_lib_dld_dld_link=yes
 
12801
else
 
12802
  echo "$as_me: failed program was:" >&5
 
12803
sed 's/^/| /' conftest.$ac_ext >&5
 
12804
 
 
12805
ac_cv_lib_dld_dld_link=no
 
12806
fi
 
12807
rm -f conftest.err conftest.$ac_objext \
 
12808
      conftest$ac_exeext conftest.$ac_ext
 
12809
LIBS=$ac_check_lib_save_LIBS
 
12810
fi
 
12811
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12812
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12813
if test $ac_cv_lib_dld_dld_link = yes; then
 
12814
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12815
fi
 
12816
 
 
12817
 
 
12818
fi
 
12819
 
 
12820
 
 
12821
fi
 
12822
 
 
12823
 
 
12824
fi
 
12825
 
 
12826
 
 
12827
fi
 
12828
 
 
12829
 
 
12830
fi
 
12831
 
 
12832
    ;;
 
12833
  esac
 
12834
 
 
12835
  if test "x$lt_cv_dlopen" != xno; then
 
12836
    enable_dlopen=yes
 
12837
  else
 
12838
    enable_dlopen=no
 
12839
  fi
 
12840
 
 
12841
  case $lt_cv_dlopen in
 
12842
  dlopen)
 
12843
    save_CPPFLAGS="$CPPFLAGS"
 
12844
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12845
 
 
12846
    save_LDFLAGS="$LDFLAGS"
 
12847
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12848
 
 
12849
    save_LIBS="$LIBS"
 
12850
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12851
 
 
12852
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12853
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12854
if test "${lt_cv_dlopen_self+set}" = set; then
 
12855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12856
else
 
12857
          if test "$cross_compiling" = yes; then :
 
12858
  lt_cv_dlopen_self=cross
 
12859
else
 
12860
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12861
  lt_status=$lt_dlunknown
 
12862
  cat > conftest.$ac_ext <<EOF
 
12863
#line 12863 "configure"
 
12864
#include "confdefs.h"
 
12865
 
 
12866
#if HAVE_DLFCN_H
 
12867
#include <dlfcn.h>
 
12868
#endif
 
12869
 
 
12870
#include <stdio.h>
 
12871
 
 
12872
#ifdef RTLD_GLOBAL
 
12873
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12874
#else
 
12875
#  ifdef DL_GLOBAL
 
12876
#    define LT_DLGLOBAL         DL_GLOBAL
 
12877
#  else
 
12878
#    define LT_DLGLOBAL         0
 
12879
#  endif
 
12880
#endif
 
12881
 
 
12882
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12883
   find out it does not work in some platform. */
 
12884
#ifndef LT_DLLAZY_OR_NOW
 
12885
#  ifdef RTLD_LAZY
 
12886
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12887
#  else
 
12888
#    ifdef DL_LAZY
 
12889
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12890
#    else
 
12891
#      ifdef RTLD_NOW
 
12892
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12893
#      else
 
12894
#        ifdef DL_NOW
 
12895
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12896
#        else
 
12897
#          define LT_DLLAZY_OR_NOW      0
 
12898
#        endif
 
12899
#      endif
 
12900
#    endif
 
12901
#  endif
 
12902
#endif
 
12903
 
 
12904
#ifdef __cplusplus
 
12905
extern "C" void exit (int);
 
12906
#endif
 
12907
 
 
12908
void fnord() { int i=42;}
 
12909
int main ()
 
12910
{
 
12911
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12912
  int status = $lt_dlunknown;
 
12913
 
 
12914
  if (self)
 
12915
    {
 
12916
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12917
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12918
      /* dlclose (self); */
 
12919
    }
 
12920
 
 
12921
    exit (status);
 
12922
}
 
12923
EOF
 
12924
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12925
  (eval $ac_link) 2>&5
 
12926
  ac_status=$?
 
12927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12928
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12929
    (./conftest; exit; ) 2>/dev/null
 
12930
    lt_status=$?
 
12931
    case x$lt_status in
 
12932
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12933
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12934
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12935
    esac
 
12936
  else :
 
12937
    # compilation failed
 
12938
    lt_cv_dlopen_self=no
 
12939
  fi
 
12940
fi
 
12941
rm -fr conftest*
 
12942
 
 
12943
 
 
12944
fi
 
12945
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12946
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12947
 
 
12948
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12949
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12950
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12951
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12952
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12953
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12954
else
 
12955
          if test "$cross_compiling" = yes; then :
 
12956
  lt_cv_dlopen_self_static=cross
 
12957
else
 
12958
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12959
  lt_status=$lt_dlunknown
 
12960
  cat > conftest.$ac_ext <<EOF
 
12961
#line 12961 "configure"
 
12962
#include "confdefs.h"
 
12963
 
 
12964
#if HAVE_DLFCN_H
 
12965
#include <dlfcn.h>
 
12966
#endif
 
12967
 
 
12968
#include <stdio.h>
 
12969
 
 
12970
#ifdef RTLD_GLOBAL
 
12971
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12972
#else
 
12973
#  ifdef DL_GLOBAL
 
12974
#    define LT_DLGLOBAL         DL_GLOBAL
 
12975
#  else
 
12976
#    define LT_DLGLOBAL         0
 
12977
#  endif
 
12978
#endif
 
12979
 
 
12980
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12981
   find out it does not work in some platform. */
 
12982
#ifndef LT_DLLAZY_OR_NOW
 
12983
#  ifdef RTLD_LAZY
 
12984
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12985
#  else
 
12986
#    ifdef DL_LAZY
 
12987
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12988
#    else
 
12989
#      ifdef RTLD_NOW
 
12990
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12991
#      else
 
12992
#        ifdef DL_NOW
 
12993
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12994
#        else
 
12995
#          define LT_DLLAZY_OR_NOW      0
 
12996
#        endif
 
12997
#      endif
 
12998
#    endif
 
12999
#  endif
 
13000
#endif
 
13001
 
 
13002
#ifdef __cplusplus
 
13003
extern "C" void exit (int);
 
13004
#endif
 
13005
 
 
13006
void fnord() { int i=42;}
 
13007
int main ()
 
13008
{
 
13009
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13010
  int status = $lt_dlunknown;
 
13011
 
 
13012
  if (self)
 
13013
    {
 
13014
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13015
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13016
      /* dlclose (self); */
 
13017
    }
 
13018
 
 
13019
    exit (status);
 
13020
}
 
13021
EOF
 
13022
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13023
  (eval $ac_link) 2>&5
 
13024
  ac_status=$?
 
13025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13026
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13027
    (./conftest; exit; ) 2>/dev/null
 
13028
    lt_status=$?
 
13029
    case x$lt_status in
 
13030
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13031
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13032
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13033
    esac
 
13034
  else :
 
13035
    # compilation failed
 
13036
    lt_cv_dlopen_self_static=no
 
13037
  fi
 
13038
fi
 
13039
rm -fr conftest*
 
13040
 
 
13041
 
 
13042
fi
 
13043
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13044
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13045
    fi
 
13046
 
 
13047
    CPPFLAGS="$save_CPPFLAGS"
 
13048
    LDFLAGS="$save_LDFLAGS"
 
13049
    LIBS="$save_LIBS"
 
13050
    ;;
 
13051
  esac
 
13052
 
 
13053
  case $lt_cv_dlopen_self in
 
13054
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13055
  *) enable_dlopen_self=unknown ;;
 
13056
  esac
 
13057
 
 
13058
  case $lt_cv_dlopen_self_static in
 
13059
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13060
  *) enable_dlopen_self_static=unknown ;;
 
13061
  esac
 
13062
fi
 
13063
 
 
13064
 
 
13065
# The else clause should only fire when bootstrapping the
 
13066
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13067
# with your package, and you will get complaints that there are
 
13068
# no rules to generate ltmain.sh.
 
13069
if test -f "$ltmain"; then
 
13070
  # See if we are running on zsh, and set the options which allow our commands through
 
13071
  # without removal of \ escapes.
 
13072
  if test -n "${ZSH_VERSION+set}" ; then
 
13073
    setopt NO_GLOB_SUBST
 
13074
  fi
 
13075
  # Now quote all the things that may contain metacharacters while being
 
13076
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13077
  # variables and quote the copies for generation of the libtool script.
 
13078
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13079
    SED SHELL STRIP \
 
13080
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13081
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13082
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13083
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13084
    lt_cv_sys_global_symbol_to_c_name_address \
 
13085
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13086
    old_postinstall_cmds old_postuninstall_cmds \
 
13087
    compiler_CXX \
 
13088
    CC_CXX \
 
13089
    LD_CXX \
 
13090
    lt_prog_compiler_wl_CXX \
 
13091
    lt_prog_compiler_pic_CXX \
 
13092
    lt_prog_compiler_static_CXX \
 
13093
    lt_prog_compiler_no_builtin_flag_CXX \
 
13094
    export_dynamic_flag_spec_CXX \
 
13095
    thread_safe_flag_spec_CXX \
 
13096
    whole_archive_flag_spec_CXX \
 
13097
    enable_shared_with_static_runtimes_CXX \
 
13098
    old_archive_cmds_CXX \
 
13099
    old_archive_from_new_cmds_CXX \
 
13100
    predep_objects_CXX \
 
13101
    postdep_objects_CXX \
 
13102
    predeps_CXX \
 
13103
    postdeps_CXX \
 
13104
    compiler_lib_search_path_CXX \
 
13105
    archive_cmds_CXX \
 
13106
    archive_expsym_cmds_CXX \
 
13107
    postinstall_cmds_CXX \
 
13108
    postuninstall_cmds_CXX \
 
13109
    old_archive_from_expsyms_cmds_CXX \
 
13110
    allow_undefined_flag_CXX \
 
13111
    no_undefined_flag_CXX \
 
13112
    export_symbols_cmds_CXX \
 
13113
    hardcode_libdir_flag_spec_CXX \
 
13114
    hardcode_libdir_flag_spec_ld_CXX \
 
13115
    hardcode_libdir_separator_CXX \
 
13116
    hardcode_automatic_CXX \
 
13117
    module_cmds_CXX \
 
13118
    module_expsym_cmds_CXX \
 
13119
    lt_cv_prog_compiler_c_o_CXX \
 
13120
    exclude_expsyms_CXX \
 
13121
    include_expsyms_CXX; do
 
13122
 
 
13123
    case $var in
 
13124
    old_archive_cmds_CXX | \
 
13125
    old_archive_from_new_cmds_CXX | \
 
13126
    archive_cmds_CXX | \
 
13127
    archive_expsym_cmds_CXX | \
 
13128
    module_cmds_CXX | \
 
13129
    module_expsym_cmds_CXX | \
 
13130
    old_archive_from_expsyms_cmds_CXX | \
 
13131
    export_symbols_cmds_CXX | \
 
13132
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13133
    postinstall_cmds | postuninstall_cmds | \
 
13134
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13135
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13136
      # Double-quote double-evaled strings.
 
13137
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13138
      ;;
 
13139
    *)
 
13140
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13141
      ;;
 
13142
    esac
 
13143
  done
 
13144
 
 
13145
  case $lt_echo in
 
13146
  *'\$0 --fallback-echo"')
 
13147
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13148
    ;;
 
13149
  esac
 
13150
 
 
13151
cfgfile="$ofile"
 
13152
 
 
13153
  cat <<__EOF__ >> "$cfgfile"
 
13154
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13155
 
 
13156
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13157
 
 
13158
# Shell to use when invoking shell scripts.
 
13159
SHELL=$lt_SHELL
 
13160
 
 
13161
# Whether or not to build shared libraries.
 
13162
build_libtool_libs=$enable_shared
 
13163
 
 
13164
# Whether or not to build static libraries.
 
13165
build_old_libs=$enable_static
 
13166
 
 
13167
# Whether or not to add -lc for building shared libraries.
 
13168
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13169
 
 
13170
# Whether or not to disallow shared libs when runtime libs are static
 
13171
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13172
 
 
13173
# Whether or not to optimize for fast installation.
 
13174
fast_install=$enable_fast_install
 
13175
 
 
13176
# The host system.
 
13177
host_alias=$host_alias
 
13178
host=$host
 
13179
 
 
13180
# An echo program that does not interpret backslashes.
 
13181
echo=$lt_echo
 
13182
 
 
13183
# The archiver.
 
13184
AR=$lt_AR
 
13185
AR_FLAGS=$lt_AR_FLAGS
 
13186
 
 
13187
# A C compiler.
 
13188
LTCC=$lt_LTCC
 
13189
 
 
13190
# A language-specific compiler.
 
13191
CC=$lt_compiler_CXX
 
13192
 
 
13193
# Is the compiler the GNU C compiler?
 
13194
with_gcc=$GCC_CXX
 
13195
 
 
13196
# An ERE matcher.
 
13197
EGREP=$lt_EGREP
 
13198
 
 
13199
# The linker used to build libraries.
 
13200
LD=$lt_LD_CXX
 
13201
 
 
13202
# Whether we need hard or soft links.
 
13203
LN_S=$lt_LN_S
 
13204
 
 
13205
# A BSD-compatible nm program.
 
13206
NM=$lt_NM
 
13207
 
 
13208
# A symbol stripping program
 
13209
STRIP=$lt_STRIP
 
13210
 
 
13211
# Used to examine libraries when file_magic_cmd begins "file"
 
13212
MAGIC_CMD=$MAGIC_CMD
 
13213
 
 
13214
# Used on cygwin: DLL creation program.
 
13215
DLLTOOL="$DLLTOOL"
 
13216
 
 
13217
# Used on cygwin: object dumper.
 
13218
OBJDUMP="$OBJDUMP"
 
13219
 
 
13220
# Used on cygwin: assembler.
 
13221
AS="$AS"
 
13222
 
 
13223
# The name of the directory that contains temporary libtool files.
 
13224
objdir=$objdir
 
13225
 
 
13226
# How to create reloadable object files.
 
13227
reload_flag=$lt_reload_flag
 
13228
reload_cmds=$lt_reload_cmds
 
13229
 
 
13230
# How to pass a linker flag through the compiler.
 
13231
wl=$lt_lt_prog_compiler_wl_CXX
 
13232
 
 
13233
# Object file suffix (normally "o").
 
13234
objext="$ac_objext"
 
13235
 
 
13236
# Old archive suffix (normally "a").
 
13237
libext="$libext"
 
13238
 
 
13239
# Shared library suffix (normally ".so").
 
13240
shrext_cmds='$shrext_cmds'
 
13241
 
 
13242
# Executable file suffix (normally "").
 
13243
exeext="$exeext"
 
13244
 
 
13245
# Additional compiler flags for building library objects.
 
13246
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13247
pic_mode=$pic_mode
 
13248
 
 
13249
# What is the maximum length of a command?
 
13250
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13251
 
 
13252
# Does compiler simultaneously support -c and -o options?
 
13253
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13254
 
 
13255
# Must we lock files when doing compilation ?
 
13256
need_locks=$lt_need_locks
 
13257
 
 
13258
# Do we need the lib prefix for modules?
 
13259
need_lib_prefix=$need_lib_prefix
 
13260
 
 
13261
# Do we need a version for libraries?
 
13262
need_version=$need_version
 
13263
 
 
13264
# Whether dlopen is supported.
 
13265
dlopen_support=$enable_dlopen
 
13266
 
 
13267
# Whether dlopen of programs is supported.
 
13268
dlopen_self=$enable_dlopen_self
 
13269
 
 
13270
# Whether dlopen of statically linked programs is supported.
 
13271
dlopen_self_static=$enable_dlopen_self_static
 
13272
 
 
13273
# Compiler flag to prevent dynamic linking.
 
13274
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13275
 
 
13276
# Compiler flag to turn off builtin functions.
 
13277
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13278
 
 
13279
# Compiler flag to allow reflexive dlopens.
 
13280
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13281
 
 
13282
# Compiler flag to generate shared objects directly from archives.
 
13283
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13284
 
 
13285
# Compiler flag to generate thread-safe objects.
 
13286
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13287
 
 
13288
# Library versioning type.
 
13289
version_type=$version_type
 
13290
 
 
13291
# Format of library name prefix.
 
13292
libname_spec=$lt_libname_spec
 
13293
 
 
13294
# List of archive names.  First name is the real one, the rest are links.
 
13295
# The last name is the one that the linker finds with -lNAME.
 
13296
library_names_spec=$lt_library_names_spec
 
13297
 
 
13298
# The coded name of the library, if different from the real name.
 
13299
soname_spec=$lt_soname_spec
 
13300
 
 
13301
# Commands used to build and install an old-style archive.
 
13302
RANLIB=$lt_RANLIB
 
13303
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13304
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13305
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13306
 
 
13307
# Create an old-style archive from a shared archive.
 
13308
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13309
 
 
13310
# Create a temporary old-style archive to link instead of a shared archive.
 
13311
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13312
 
 
13313
# Commands used to build and install a shared archive.
 
13314
archive_cmds=$lt_archive_cmds_CXX
 
13315
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13316
postinstall_cmds=$lt_postinstall_cmds
 
13317
postuninstall_cmds=$lt_postuninstall_cmds
 
13318
 
 
13319
# Commands used to build a loadable module (assumed same as above if empty)
 
13320
module_cmds=$lt_module_cmds_CXX
 
13321
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13322
 
 
13323
# Commands to strip libraries.
 
13324
old_striplib=$lt_old_striplib
 
13325
striplib=$lt_striplib
 
13326
 
 
13327
# Dependencies to place before the objects being linked to create a
 
13328
# shared library.
 
13329
predep_objects=$lt_predep_objects_CXX
 
13330
 
 
13331
# Dependencies to place after the objects being linked to create a
 
13332
# shared library.
 
13333
postdep_objects=$lt_postdep_objects_CXX
 
13334
 
 
13335
# Dependencies to place before the objects being linked to create a
 
13336
# shared library.
 
13337
predeps=$lt_predeps_CXX
 
13338
 
 
13339
# Dependencies to place after the objects being linked to create a
 
13340
# shared library.
 
13341
postdeps=$lt_postdeps_CXX
 
13342
 
 
13343
# The library search path used internally by the compiler when linking
 
13344
# a shared library.
 
13345
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13346
 
 
13347
# Method to check whether dependent libraries are shared objects.
 
13348
deplibs_check_method=$lt_deplibs_check_method
 
13349
 
 
13350
# Command to use when deplibs_check_method == file_magic.
 
13351
file_magic_cmd=$lt_file_magic_cmd
 
13352
 
 
13353
# Flag that allows shared libraries with undefined symbols to be built.
 
13354
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13355
 
 
13356
# Flag that forces no undefined symbols.
 
13357
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13358
 
 
13359
# Commands used to finish a libtool library installation in a directory.
 
13360
finish_cmds=$lt_finish_cmds
 
13361
 
 
13362
# Same as above, but a single script fragment to be evaled but not shown.
 
13363
finish_eval=$lt_finish_eval
 
13364
 
 
13365
# Take the output of nm and produce a listing of raw symbols and C names.
 
13366
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13367
 
 
13368
# Transform the output of nm in a proper C declaration
 
13369
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13370
 
 
13371
# Transform the output of nm in a C name address pair
 
13372
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13373
 
 
13374
# This is the shared library runtime path variable.
 
13375
runpath_var=$runpath_var
 
13376
 
 
13377
# This is the shared library path variable.
 
13378
shlibpath_var=$shlibpath_var
 
13379
 
 
13380
# Is shlibpath searched before the hard-coded library search path?
 
13381
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13382
 
 
13383
# How to hardcode a shared library path into an executable.
 
13384
hardcode_action=$hardcode_action_CXX
 
13385
 
 
13386
# Whether we should hardcode library paths into libraries.
 
13387
hardcode_into_libs=$hardcode_into_libs
 
13388
 
 
13389
# Flag to hardcode \$libdir into a binary during linking.
 
13390
# This must work even if \$libdir does not exist.
 
13391
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13392
 
 
13393
# If ld is used when linking, flag to hardcode \$libdir into
 
13394
# a binary during linking. This must work even if \$libdir does
 
13395
# not exist.
 
13396
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13397
 
 
13398
# Whether we need a single -rpath flag with a separated argument.
 
13399
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13400
 
 
13401
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13402
# resulting binary.
 
13403
hardcode_direct=$hardcode_direct_CXX
 
13404
 
 
13405
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13406
# resulting binary.
 
13407
hardcode_minus_L=$hardcode_minus_L_CXX
 
13408
 
 
13409
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13410
# the resulting binary.
 
13411
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13412
 
 
13413
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13414
# and all subsequent libraries and executables linked against it.
 
13415
hardcode_automatic=$hardcode_automatic_CXX
 
13416
 
 
13417
# Variables whose values should be saved in libtool wrapper scripts and
 
13418
# restored at relink time.
 
13419
variables_saved_for_relink="$variables_saved_for_relink"
 
13420
 
 
13421
# Whether libtool must link a program against all its dependency libraries.
 
13422
link_all_deplibs=$link_all_deplibs_CXX
 
13423
 
 
13424
# Compile-time system search path for libraries
 
13425
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13426
 
 
13427
# Run-time system search path for libraries
 
13428
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13429
 
 
13430
# Fix the shell variable \$srcfile for the compiler.
 
13431
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13432
 
 
13433
# Set to yes if exported symbols are required.
 
13434
always_export_symbols=$always_export_symbols_CXX
 
13435
 
 
13436
# The commands to list exported symbols.
 
13437
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13438
 
 
13439
# The commands to extract the exported symbol list from a shared archive.
 
13440
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13441
 
 
13442
# Symbols that should not be listed in the preloaded symbols.
 
13443
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13444
 
 
13445
# Symbols that must always be exported.
 
13446
include_expsyms=$lt_include_expsyms_CXX
 
13447
 
 
13448
# ### END LIBTOOL TAG CONFIG: $tagname
 
13449
 
 
13450
__EOF__
 
13451
 
 
13452
 
 
13453
else
 
13454
  # If there is no Makefile yet, we rely on a make rule to execute
 
13455
  # `config.status --recheck' to rerun these tests and create the
 
13456
  # libtool script then.
 
13457
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13458
  if test -f "$ltmain_in"; then
 
13459
    test -f Makefile && make "$ltmain"
 
13460
  fi
 
13461
fi
 
13462
 
 
13463
 
 
13464
ac_ext=c
 
13465
ac_cpp='$CPP $CPPFLAGS'
 
13466
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13467
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13468
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13469
 
 
13470
CC=$lt_save_CC
 
13471
LDCXX=$LD
 
13472
LD=$lt_save_LD
 
13473
GCC=$lt_save_GCC
 
13474
with_gnu_ldcxx=$with_gnu_ld
 
13475
with_gnu_ld=$lt_save_with_gnu_ld
 
13476
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13477
lt_cv_path_LD=$lt_save_path_LD
 
13478
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13479
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13480
 
 
13481
        else
 
13482
          tagname=""
 
13483
        fi
 
13484
        ;;
 
13485
 
 
13486
      F77)
 
13487
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13488
 
 
13489
ac_ext=f
 
13490
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13491
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13492
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13493
 
 
13494
 
 
13495
archive_cmds_need_lc_F77=no
 
13496
allow_undefined_flag_F77=
 
13497
always_export_symbols_F77=no
 
13498
archive_expsym_cmds_F77=
 
13499
export_dynamic_flag_spec_F77=
 
13500
hardcode_direct_F77=no
 
13501
hardcode_libdir_flag_spec_F77=
 
13502
hardcode_libdir_flag_spec_ld_F77=
 
13503
hardcode_libdir_separator_F77=
 
13504
hardcode_minus_L_F77=no
 
13505
hardcode_automatic_F77=no
 
13506
module_cmds_F77=
 
13507
module_expsym_cmds_F77=
 
13508
link_all_deplibs_F77=unknown
 
13509
old_archive_cmds_F77=$old_archive_cmds
 
13510
no_undefined_flag_F77=
 
13511
whole_archive_flag_spec_F77=
 
13512
enable_shared_with_static_runtimes_F77=no
 
13513
 
 
13514
# Source file extension for f77 test sources.
 
13515
ac_ext=f
 
13516
 
 
13517
# Object file extension for compiled f77 test sources.
 
13518
objext=o
 
13519
objext_F77=$objext
 
13520
 
 
13521
# Code to be used in simple compile tests
 
13522
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13523
 
 
13524
# Code to be used in simple link tests
 
13525
lt_simple_link_test_code="      program t\n      end\n"
 
13526
 
 
13527
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13528
 
 
13529
# If no C compiler was specified, use CC.
 
13530
LTCC=${LTCC-"$CC"}
 
13531
 
 
13532
# Allow CC to be a program name with arguments.
 
13533
compiler=$CC
 
13534
 
 
13535
 
 
13536
# Allow CC to be a program name with arguments.
 
13537
lt_save_CC="$CC"
 
13538
CC=${F77-"f77"}
 
13539
compiler=$CC
 
13540
compiler_F77=$CC
 
13541
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13542
 
 
13543
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13544
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13545
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13546
echo "${ECHO_T}$can_build_shared" >&6
 
13547
 
 
13548
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13549
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13550
test "$can_build_shared" = "no" && enable_shared=no
 
13551
 
 
13552
# On AIX, shared libraries and static libraries use the same namespace, and
 
13553
# are all built from PIC.
 
13554
case "$host_os" in
 
13555
aix3*)
 
13556
  test "$enable_shared" = yes && enable_static=no
 
13557
  if test -n "$RANLIB"; then
 
13558
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13559
    postinstall_cmds='$RANLIB $lib'
 
13560
  fi
 
13561
  ;;
 
13562
aix4* | aix5*)
 
13563
  test "$enable_shared" = yes && enable_static=no
 
13564
  ;;
 
13565
esac
 
13566
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13567
echo "${ECHO_T}$enable_shared" >&6
 
13568
 
 
13569
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13570
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13571
# Make sure either enable_shared or enable_static is yes.
 
13572
test "$enable_shared" = yes || enable_static=yes
 
13573
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13574
echo "${ECHO_T}$enable_static" >&6
 
13575
 
 
13576
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13577
 
 
13578
GCC_F77="$G77"
 
13579
LD_F77="$LD"
 
13580
 
 
13581
lt_prog_compiler_wl_F77=
 
13582
lt_prog_compiler_pic_F77=
 
13583
lt_prog_compiler_static_F77=
 
13584
 
 
13585
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13586
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13587
 
 
13588
  if test "$GCC" = yes; then
 
13589
    lt_prog_compiler_wl_F77='-Wl,'
 
13590
    lt_prog_compiler_static_F77='-static'
 
13591
 
 
13592
    case $host_os in
 
13593
      aix*)
 
13594
      # All AIX code is PIC.
 
13595
      if test "$host_cpu" = ia64; then
 
13596
        # AIX 5 now supports IA64 processor
 
13597
        lt_prog_compiler_static_F77='-Bstatic'
 
13598
      fi
 
13599
      ;;
 
13600
 
 
13601
    amigaos*)
 
13602
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13603
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13604
      # like `-m68040'.
 
13605
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13606
      ;;
 
13607
 
 
13608
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13609
      # PIC is the default for these OSes.
 
13610
      ;;
 
13611
 
 
13612
    mingw* | pw32* | os2*)
 
13613
      # This hack is so that the source file can tell whether it is being
 
13614
      # built for inclusion in a dll (and should export symbols for example).
 
13615
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13616
      ;;
 
13617
 
 
13618
    darwin* | rhapsody*)
 
13619
      # PIC is the default on this platform
 
13620
      # Common symbols not allowed in MH_DYLIB files
 
13621
      lt_prog_compiler_pic_F77='-fno-common'
 
13622
      ;;
 
13623
 
 
13624
    msdosdjgpp*)
 
13625
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13626
      # on systems that don't support them.
 
13627
      lt_prog_compiler_can_build_shared_F77=no
 
13628
      enable_shared=no
 
13629
      ;;
 
13630
 
 
13631
    sysv4*MP*)
 
13632
      if test -d /usr/nec; then
 
13633
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13634
      fi
 
13635
      ;;
 
13636
 
 
13637
    hpux*)
 
13638
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13639
      # not for PA HP-UX.
 
13640
      case "$host_cpu" in
 
13641
      hppa*64*|ia64*)
 
13642
        # +Z the default
 
13643
        ;;
 
13644
      *)
 
13645
        lt_prog_compiler_pic_F77='-fPIC'
 
13646
        ;;
 
13647
      esac
 
13648
      ;;
 
13649
 
 
13650
    *)
 
13651
      lt_prog_compiler_pic_F77='-fPIC'
 
13652
      ;;
 
13653
    esac
 
13654
  else
 
13655
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13656
    case $host_os in
 
13657
    aix*)
 
13658
      lt_prog_compiler_wl_F77='-Wl,'
 
13659
      if test "$host_cpu" = ia64; then
 
13660
        # AIX 5 now supports IA64 processor
 
13661
        lt_prog_compiler_static_F77='-Bstatic'
 
13662
      else
 
13663
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13664
      fi
 
13665
      ;;
 
13666
      darwin*)
 
13667
        # PIC is the default on this platform
 
13668
        # Common symbols not allowed in MH_DYLIB files
 
13669
       case "$cc_basename" in
 
13670
         xlc*)
 
13671
         lt_prog_compiler_pic_F77='-qnocommon'
 
13672
         lt_prog_compiler_wl_F77='-Wl,'
 
13673
         ;;
 
13674
       esac
 
13675
       ;;
 
13676
 
 
13677
    mingw* | pw32* | os2*)
 
13678
      # This hack is so that the source file can tell whether it is being
 
13679
      # built for inclusion in a dll (and should export symbols for example).
 
13680
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13681
      ;;
 
13682
 
 
13683
    hpux9* | hpux10* | hpux11*)
 
13684
      lt_prog_compiler_wl_F77='-Wl,'
 
13685
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13686
      # not for PA HP-UX.
 
13687
      case "$host_cpu" in
 
13688
      hppa*64*|ia64*)
 
13689
        # +Z the default
 
13690
        ;;
 
13691
      *)
 
13692
        lt_prog_compiler_pic_F77='+Z'
 
13693
        ;;
 
13694
      esac
 
13695
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13696
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13697
      ;;
 
13698
 
 
13699
    irix5* | irix6* | nonstopux*)
 
13700
      lt_prog_compiler_wl_F77='-Wl,'
 
13701
      # PIC (with -KPIC) is the default.
 
13702
      lt_prog_compiler_static_F77='-non_shared'
 
13703
      ;;
 
13704
 
 
13705
    newsos6)
 
13706
      lt_prog_compiler_pic_F77='-KPIC'
 
13707
      lt_prog_compiler_static_F77='-Bstatic'
 
13708
      ;;
 
13709
 
 
13710
    linux*)
 
13711
      case $CC in
 
13712
      icc* | ecc*)
 
13713
        lt_prog_compiler_wl_F77='-Wl,'
 
13714
        lt_prog_compiler_pic_F77='-KPIC'
 
13715
        lt_prog_compiler_static_F77='-static'
 
13716
        ;;
 
13717
      ccc*)
 
13718
        lt_prog_compiler_wl_F77='-Wl,'
 
13719
        # All Alpha code is PIC.
 
13720
        lt_prog_compiler_static_F77='-non_shared'
 
13721
        ;;
 
13722
      esac
 
13723
      ;;
 
13724
 
 
13725
    osf3* | osf4* | osf5*)
 
13726
      lt_prog_compiler_wl_F77='-Wl,'
 
13727
      # All OSF/1 code is PIC.
 
13728
      lt_prog_compiler_static_F77='-non_shared'
 
13729
      ;;
 
13730
 
 
13731
    sco3.2v5*)
 
13732
      lt_prog_compiler_pic_F77='-Kpic'
 
13733
      lt_prog_compiler_static_F77='-dn'
 
13734
      ;;
 
13735
 
 
13736
    solaris*)
 
13737
      lt_prog_compiler_wl_F77='-Wl,'
 
13738
      lt_prog_compiler_pic_F77='-KPIC'
 
13739
      lt_prog_compiler_static_F77='-Bstatic'
 
13740
      ;;
 
13741
 
 
13742
    sunos4*)
 
13743
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13744
      lt_prog_compiler_pic_F77='-PIC'
 
13745
      lt_prog_compiler_static_F77='-Bstatic'
 
13746
      ;;
 
13747
 
 
13748
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13749
      lt_prog_compiler_wl_F77='-Wl,'
 
13750
      lt_prog_compiler_pic_F77='-KPIC'
 
13751
      lt_prog_compiler_static_F77='-Bstatic'
 
13752
      ;;
 
13753
 
 
13754
    sysv4*MP*)
 
13755
      if test -d /usr/nec ;then
 
13756
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13757
        lt_prog_compiler_static_F77='-Bstatic'
 
13758
      fi
 
13759
      ;;
 
13760
 
 
13761
    uts4*)
 
13762
      lt_prog_compiler_pic_F77='-pic'
 
13763
      lt_prog_compiler_static_F77='-Bstatic'
 
13764
      ;;
 
13765
 
 
13766
    *)
 
13767
      lt_prog_compiler_can_build_shared_F77=no
 
13768
      ;;
 
13769
    esac
 
13770
  fi
 
13771
 
 
13772
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13773
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13774
 
 
13775
#
 
13776
# Check to make sure the PIC flag actually works.
 
13777
#
 
13778
if test -n "$lt_prog_compiler_pic_F77"; then
 
13779
 
 
13780
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13781
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13782
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13784
else
 
13785
  lt_prog_compiler_pic_works_F77=no
 
13786
  ac_outfile=conftest.$ac_objext
 
13787
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13788
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13789
   # Insert the option either (1) after the last *FLAGS variable, or
 
13790
   # (2) before a word containing "conftest.", or (3) at the end.
 
13791
   # Note that $ac_compile itself does not contain backslashes and begins
 
13792
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13793
   # The option is referenced via a variable to avoid confusing sed.
 
13794
   lt_compile=`echo "$ac_compile" | $SED \
 
13795
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13796
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13797
   -e 's:$: $lt_compiler_flag:'`
 
13798
   (eval echo "\"\$as_me:13798: $lt_compile\"" >&5)
 
13799
   (eval "$lt_compile" 2>conftest.err)
 
13800
   ac_status=$?
 
13801
   cat conftest.err >&5
 
13802
   echo "$as_me:13802: \$? = $ac_status" >&5
 
13803
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13804
     # The compiler can only warn and ignore the option if not recognized
 
13805
     # So say no if there are warnings
 
13806
     if test ! -s conftest.err; then
 
13807
       lt_prog_compiler_pic_works_F77=yes
 
13808
     fi
 
13809
   fi
 
13810
   $rm conftest*
 
13811
 
 
13812
fi
 
13813
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13814
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13815
 
 
13816
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13817
    case $lt_prog_compiler_pic_F77 in
 
13818
     "" | " "*) ;;
 
13819
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13820
     esac
 
13821
else
 
13822
    lt_prog_compiler_pic_F77=
 
13823
     lt_prog_compiler_can_build_shared_F77=no
 
13824
fi
 
13825
 
 
13826
fi
 
13827
case "$host_os" in
 
13828
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13829
  *djgpp*)
 
13830
    lt_prog_compiler_pic_F77=
 
13831
    ;;
 
13832
  *)
 
13833
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13834
    ;;
 
13835
esac
 
13836
 
 
13837
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13838
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13839
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13841
else
 
13842
  lt_cv_prog_compiler_c_o_F77=no
 
13843
   $rm -r conftest 2>/dev/null
 
13844
   mkdir conftest
 
13845
   cd conftest
 
13846
   mkdir out
 
13847
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13848
 
 
13849
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13850
   # Insert the option either (1) after the last *FLAGS variable, or
 
13851
   # (2) before a word containing "conftest.", or (3) at the end.
 
13852
   # Note that $ac_compile itself does not contain backslashes and begins
 
13853
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13854
   lt_compile=`echo "$ac_compile" | $SED \
 
13855
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13856
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13857
   -e 's:$: $lt_compiler_flag:'`
 
13858
   (eval echo "\"\$as_me:13858: $lt_compile\"" >&5)
 
13859
   (eval "$lt_compile" 2>out/conftest.err)
 
13860
   ac_status=$?
 
13861
   cat out/conftest.err >&5
 
13862
   echo "$as_me:13862: \$? = $ac_status" >&5
 
13863
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13864
   then
 
13865
     # The compiler can only warn and ignore the option if not recognized
 
13866
     # So say no if there are warnings
 
13867
     if test ! -s out/conftest.err; then
 
13868
       lt_cv_prog_compiler_c_o_F77=yes
 
13869
     fi
 
13870
   fi
 
13871
   chmod u+w .
 
13872
   $rm conftest*
 
13873
   # SGI C++ compiler will create directory out/ii_files/ for
 
13874
   # template instantiation
 
13875
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13876
   $rm out/* && rmdir out
 
13877
   cd ..
 
13878
   rmdir conftest
 
13879
   $rm conftest*
 
13880
 
 
13881
fi
 
13882
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13883
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13884
 
 
13885
 
 
13886
hard_links="nottested"
 
13887
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13888
  # do not overwrite the value of need_locks provided by the user
 
13889
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13890
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13891
  hard_links=yes
 
13892
  $rm conftest*
 
13893
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13894
  touch conftest.a
 
13895
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13896
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13897
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13898
echo "${ECHO_T}$hard_links" >&6
 
13899
  if test "$hard_links" = no; then
 
13900
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13901
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13902
    need_locks=warn
 
13903
  fi
 
13904
else
 
13905
  need_locks=no
 
13906
fi
 
13907
 
 
13908
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13909
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13910
 
 
13911
  runpath_var=
 
13912
  allow_undefined_flag_F77=
 
13913
  enable_shared_with_static_runtimes_F77=no
 
13914
  archive_cmds_F77=
 
13915
  archive_expsym_cmds_F77=
 
13916
  old_archive_From_new_cmds_F77=
 
13917
  old_archive_from_expsyms_cmds_F77=
 
13918
  export_dynamic_flag_spec_F77=
 
13919
  whole_archive_flag_spec_F77=
 
13920
  thread_safe_flag_spec_F77=
 
13921
  hardcode_libdir_flag_spec_F77=
 
13922
  hardcode_libdir_flag_spec_ld_F77=
 
13923
  hardcode_libdir_separator_F77=
 
13924
  hardcode_direct_F77=no
 
13925
  hardcode_minus_L_F77=no
 
13926
  hardcode_shlibpath_var_F77=unsupported
 
13927
  link_all_deplibs_F77=unknown
 
13928
  hardcode_automatic_F77=no
 
13929
  module_cmds_F77=
 
13930
  module_expsym_cmds_F77=
 
13931
  always_export_symbols_F77=no
 
13932
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13933
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13934
  # included in the symbol list
 
13935
  include_expsyms_F77=
 
13936
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13937
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13938
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13939
  # as well as any symbol that contains `d'.
 
13940
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13941
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13942
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13943
  # the symbol is explicitly referenced.  Since portable code cannot
 
13944
  # rely on this symbol name, it's probably fine to never include it in
 
13945
  # preloaded symbol tables.
 
13946
  extract_expsyms_cmds=
 
13947
 
 
13948
  case $host_os in
 
13949
  cygwin* | mingw* | pw32*)
 
13950
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13951
    # When not using gcc, we currently assume that we are using
 
13952
    # Microsoft Visual C++.
 
13953
    if test "$GCC" != yes; then
 
13954
      with_gnu_ld=no
 
13955
    fi
 
13956
    ;;
 
13957
  openbsd*)
 
13958
    with_gnu_ld=no
 
13959
    ;;
 
13960
  esac
 
13961
 
 
13962
  ld_shlibs_F77=yes
 
13963
  if test "$with_gnu_ld" = yes; then
 
13964
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13965
    wlarc='${wl}'
 
13966
 
 
13967
    # See if GNU ld supports shared libraries.
 
13968
    case $host_os in
 
13969
    aix3* | aix4* | aix5*)
 
13970
      # On AIX/PPC, the GNU linker is very broken
 
13971
      if test "$host_cpu" != ia64; then
 
13972
        ld_shlibs_F77=no
 
13973
        cat <<EOF 1>&2
 
13974
 
 
13975
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13976
*** to be unable to reliably create shared libraries on AIX.
 
13977
*** Therefore, libtool is disabling shared libraries support.  If you
 
13978
*** really care for shared libraries, you may want to modify your PATH
 
13979
*** so that a non-GNU linker is found, and then restart.
 
13980
 
 
13981
EOF
 
13982
      fi
 
13983
      ;;
 
13984
 
 
13985
    amigaos*)
 
13986
      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)'
 
13987
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13988
      hardcode_minus_L_F77=yes
 
13989
 
 
13990
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13991
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13992
      # to version 4, is to share data among multiple programs linked
 
13993
      # with the same dynamic library.  Since this doesn't match the
 
13994
      # behavior of shared libraries on other platforms, we can't use
 
13995
      # them.
 
13996
      ld_shlibs_F77=no
 
13997
      ;;
 
13998
 
 
13999
    beos*)
 
14000
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14001
        allow_undefined_flag_F77=unsupported
 
14002
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14003
        # support --undefined.  This deserves some investigation.  FIXME
 
14004
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14005
      else
 
14006
        ld_shlibs_F77=no
 
14007
      fi
 
14008
      ;;
 
14009
 
 
14010
    cygwin* | mingw* | pw32*)
 
14011
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14012
      # as there is no search path for DLLs.
 
14013
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14014
      allow_undefined_flag_F77=unsupported
 
14015
      always_export_symbols_F77=no
 
14016
      enable_shared_with_static_runtimes_F77=yes
 
14017
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14018
 
 
14019
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14020
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14021
        # If the export-symbols file already is a .def file (1st line
 
14022
        # is EXPORTS), use it as is; otherwise, prepend...
 
14023
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14024
          cp $export_symbols $output_objdir/$soname.def;
 
14025
        else
 
14026
          echo EXPORTS > $output_objdir/$soname.def;
 
14027
          cat $export_symbols >> $output_objdir/$soname.def;
 
14028
        fi~
 
14029
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14030
      else
 
14031
        ld_shlibs=no
 
14032
      fi
 
14033
      ;;
 
14034
 
 
14035
    netbsd*)
 
14036
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14037
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14038
        wlarc=
 
14039
      else
 
14040
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14041
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14042
      fi
 
14043
      ;;
 
14044
 
 
14045
    solaris* | sysv5*)
 
14046
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14047
        ld_shlibs_F77=no
 
14048
        cat <<EOF 1>&2
 
14049
 
 
14050
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14051
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14052
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14053
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14054
*** your PATH or compiler configuration so that the native linker is
 
14055
*** used, and then restart.
 
14056
 
 
14057
EOF
 
14058
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14059
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14060
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14061
      else
 
14062
        ld_shlibs_F77=no
 
14063
      fi
 
14064
      ;;
 
14065
 
 
14066
    sunos4*)
 
14067
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14068
      wlarc=
 
14069
      hardcode_direct_F77=yes
 
14070
      hardcode_shlibpath_var_F77=no
 
14071
      ;;
 
14072
 
 
14073
  linux*)
 
14074
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14075
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14076
        archive_cmds_F77="$tmp_archive_cmds"
 
14077
      supports_anon_versioning=no
 
14078
      case `$LD -v 2>/dev/null` in
 
14079
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14080
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14081
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14082
        *\ 2.11.*) ;; # other 2.11 versions
 
14083
        *) supports_anon_versioning=yes ;;
 
14084
      esac
 
14085
      if test $supports_anon_versioning = yes; then
 
14086
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14087
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14088
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14089
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14090
      else
 
14091
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14092
      fi
 
14093
    else
 
14094
      ld_shlibs_F77=no
 
14095
    fi
 
14096
    ;;
 
14097
 
 
14098
    *)
 
14099
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14100
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14101
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14102
      else
 
14103
        ld_shlibs_F77=no
 
14104
      fi
 
14105
      ;;
 
14106
    esac
 
14107
 
 
14108
    if test "$ld_shlibs_F77" = yes; then
 
14109
      runpath_var=LD_RUN_PATH
 
14110
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14111
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14112
      # ancient GNU ld didn't support --whole-archive et. al.
 
14113
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14114
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14115
      else
 
14116
        whole_archive_flag_spec_F77=
 
14117
      fi
 
14118
    fi
 
14119
  else
 
14120
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14121
    case $host_os in
 
14122
    aix3*)
 
14123
      allow_undefined_flag_F77=unsupported
 
14124
      always_export_symbols_F77=yes
 
14125
      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'
 
14126
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14127
      # are no directories specified by -L.
 
14128
      hardcode_minus_L_F77=yes
 
14129
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14130
        # Neither direct hardcoding nor static linking is supported with a
 
14131
        # broken collect2.
 
14132
        hardcode_direct_F77=unsupported
 
14133
      fi
 
14134
      ;;
 
14135
 
 
14136
    aix4* | aix5*)
 
14137
      if test "$host_cpu" = ia64; then
 
14138
        # On IA64, the linker does run time linking by default, so we don't
 
14139
        # have to do anything special.
 
14140
        aix_use_runtimelinking=no
 
14141
        exp_sym_flag='-Bexport'
 
14142
        no_entry_flag=""
 
14143
      else
 
14144
        # If we're using GNU nm, then we don't want the "-C" option.
 
14145
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14146
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14147
          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'
 
14148
        else
 
14149
          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'
 
14150
        fi
 
14151
        aix_use_runtimelinking=no
 
14152
 
 
14153
        # Test if we are trying to use run time linking or normal
 
14154
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14155
        # need to do runtime linking.
 
14156
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14157
          for ld_flag in $LDFLAGS; do
 
14158
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14159
            aix_use_runtimelinking=yes
 
14160
            break
 
14161
          fi
 
14162
          done
 
14163
        esac
 
14164
 
 
14165
        exp_sym_flag='-bexport'
 
14166
        no_entry_flag='-bnoentry'
 
14167
      fi
 
14168
 
 
14169
      # When large executables or shared objects are built, AIX ld can
 
14170
      # have problems creating the table of contents.  If linking a library
 
14171
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14172
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14173
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14174
 
 
14175
      archive_cmds_F77=''
 
14176
      hardcode_direct_F77=yes
 
14177
      hardcode_libdir_separator_F77=':'
 
14178
      link_all_deplibs_F77=yes
 
14179
 
 
14180
      if test "$GCC" = yes; then
 
14181
        case $host_os in aix4.012|aix4.012.*)
 
14182
        # We only want to do this on AIX 4.2 and lower, the check
 
14183
        # below for broken collect2 doesn't work under 4.3+
 
14184
          collect2name=`${CC} -print-prog-name=collect2`
 
14185
          if test -f "$collect2name" && \
 
14186
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14187
          then
 
14188
          # We have reworked collect2
 
14189
          hardcode_direct_F77=yes
 
14190
          else
 
14191
          # We have old collect2
 
14192
          hardcode_direct_F77=unsupported
 
14193
          # It fails to find uninstalled libraries when the uninstalled
 
14194
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14195
          # to unsupported forces relinking
 
14196
          hardcode_minus_L_F77=yes
 
14197
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14198
          hardcode_libdir_separator_F77=
 
14199
          fi
 
14200
        esac
 
14201
        shared_flag='-shared'
 
14202
      else
 
14203
        # not using gcc
 
14204
        if test "$host_cpu" = ia64; then
 
14205
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14206
        # chokes on -Wl,-G. The following line is correct:
 
14207
          shared_flag='-G'
 
14208
        else
 
14209
        if test "$aix_use_runtimelinking" = yes; then
 
14210
            shared_flag='${wl}-G'
 
14211
          else
 
14212
            shared_flag='${wl}-bM:SRE'
 
14213
        fi
 
14214
        fi
 
14215
      fi
 
14216
 
 
14217
      # It seems that -bexpall does not export symbols beginning with
 
14218
      # underscore (_), so it is better to generate a list of symbols to export.
 
14219
      always_export_symbols_F77=yes
 
14220
      if test "$aix_use_runtimelinking" = yes; then
 
14221
        # Warning - without using the other runtime loading flags (-brtl),
 
14222
        # -berok will link without error, but may produce a broken library.
 
14223
        allow_undefined_flag_F77='-berok'
 
14224
       # Determine the default libpath from the value encoded in an empty executable.
 
14225
       cat >conftest.$ac_ext <<_ACEOF
 
14226
      program main
 
14227
 
 
14228
      end
 
14229
_ACEOF
 
14230
rm -f conftest.$ac_objext conftest$ac_exeext
 
14231
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14232
  (eval $ac_link) 2>conftest.er1
 
14233
  ac_status=$?
 
14234
  grep -v '^ *+' conftest.er1 >conftest.err
 
14235
  rm -f conftest.er1
 
14236
  cat conftest.err >&5
 
14237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14238
  (exit $ac_status); } &&
 
14239
         { ac_try='test -z "$ac_f77_werror_flag"
 
14240
                         || test ! -s conftest.err'
 
14241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14242
  (eval $ac_try) 2>&5
 
14243
  ac_status=$?
 
14244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14245
  (exit $ac_status); }; } &&
 
14246
         { ac_try='test -s conftest$ac_exeext'
 
14247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14248
  (eval $ac_try) 2>&5
 
14249
  ac_status=$?
 
14250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14251
  (exit $ac_status); }; }; then
 
14252
 
 
14253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14254
}'`
 
14255
# Check for a 64-bit object if we didn't find anything.
 
14256
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; }
 
14257
}'`; fi
 
14258
else
 
14259
  echo "$as_me: failed program was:" >&5
 
14260
sed 's/^/| /' conftest.$ac_ext >&5
 
14261
 
 
14262
fi
 
14263
rm -f conftest.err conftest.$ac_objext \
 
14264
      conftest$ac_exeext conftest.$ac_ext
 
14265
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14266
 
 
14267
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14268
        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"
 
14269
       else
 
14270
        if test "$host_cpu" = ia64; then
 
14271
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14272
          allow_undefined_flag_F77="-z nodefs"
 
14273
          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"
 
14274
        else
 
14275
         # Determine the default libpath from the value encoded in an empty executable.
 
14276
         cat >conftest.$ac_ext <<_ACEOF
 
14277
      program main
 
14278
 
 
14279
      end
 
14280
_ACEOF
 
14281
rm -f conftest.$ac_objext conftest$ac_exeext
 
14282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14283
  (eval $ac_link) 2>conftest.er1
 
14284
  ac_status=$?
 
14285
  grep -v '^ *+' conftest.er1 >conftest.err
 
14286
  rm -f conftest.er1
 
14287
  cat conftest.err >&5
 
14288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14289
  (exit $ac_status); } &&
 
14290
         { ac_try='test -z "$ac_f77_werror_flag"
 
14291
                         || test ! -s conftest.err'
 
14292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14293
  (eval $ac_try) 2>&5
 
14294
  ac_status=$?
 
14295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14296
  (exit $ac_status); }; } &&
 
14297
         { ac_try='test -s conftest$ac_exeext'
 
14298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14299
  (eval $ac_try) 2>&5
 
14300
  ac_status=$?
 
14301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14302
  (exit $ac_status); }; }; then
 
14303
 
 
14304
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14305
}'`
 
14306
# Check for a 64-bit object if we didn't find anything.
 
14307
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; }
 
14308
}'`; fi
 
14309
else
 
14310
  echo "$as_me: failed program was:" >&5
 
14311
sed 's/^/| /' conftest.$ac_ext >&5
 
14312
 
 
14313
fi
 
14314
rm -f conftest.err conftest.$ac_objext \
 
14315
      conftest$ac_exeext conftest.$ac_ext
 
14316
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14317
 
 
14318
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14319
          # Warning - without using the other run time loading flags,
 
14320
          # -berok will link without error, but may produce a broken library.
 
14321
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14322
          allow_undefined_flag_F77=' ${wl}-berok'
 
14323
          # -bexpall does not export symbols beginning with underscore (_)
 
14324
          always_export_symbols_F77=yes
 
14325
          # Exported symbols can be pulled into shared objects from archives
 
14326
          whole_archive_flag_spec_F77=' '
 
14327
          archive_cmds_need_lc_F77=yes
 
14328
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14329
          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'
 
14330
        fi
 
14331
      fi
 
14332
      ;;
 
14333
 
 
14334
    amigaos*)
 
14335
      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)'
 
14336
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14337
      hardcode_minus_L_F77=yes
 
14338
      # see comment about different semantics on the GNU ld section
 
14339
      ld_shlibs_F77=no
 
14340
      ;;
 
14341
 
 
14342
    bsdi[45]*)
 
14343
      export_dynamic_flag_spec_F77=-rdynamic
 
14344
      ;;
 
14345
 
 
14346
    cygwin* | mingw* | pw32*)
 
14347
      # When not using gcc, we currently assume that we are using
 
14348
      # Microsoft Visual C++.
 
14349
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14350
      # no search path for DLLs.
 
14351
      hardcode_libdir_flag_spec_F77=' '
 
14352
      allow_undefined_flag_F77=unsupported
 
14353
      # Tell ltmain to make .lib files, not .a files.
 
14354
      libext=lib
 
14355
      # Tell ltmain to make .dll files, not .so files.
 
14356
      shrext_cmds=".dll"
 
14357
      # FIXME: Setting linknames here is a bad hack.
 
14358
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14359
      # The linker will automatically build a .lib file if we build a DLL.
 
14360
      old_archive_From_new_cmds_F77='true'
 
14361
      # FIXME: Should let the user specify the lib program.
 
14362
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14363
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14364
      enable_shared_with_static_runtimes_F77=yes
 
14365
      ;;
 
14366
 
 
14367
    darwin* | rhapsody*)
 
14368
      case "$host_os" in
 
14369
        rhapsody* | darwin1.[012])
 
14370
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14371
         ;;
 
14372
       *) # Darwin 1.3 on
 
14373
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14374
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14375
         else
 
14376
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14377
             10.[012])
 
14378
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14379
               ;;
 
14380
             10.*)
 
14381
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14382
               ;;
 
14383
           esac
 
14384
         fi
 
14385
         ;;
 
14386
      esac
 
14387
      archive_cmds_need_lc_F77=no
 
14388
      hardcode_direct_F77=no
 
14389
      hardcode_automatic_F77=yes
 
14390
      hardcode_shlibpath_var_F77=unsupported
 
14391
      whole_archive_flag_spec_F77=''
 
14392
      link_all_deplibs_F77=yes
 
14393
    if test "$GCC" = yes ; then
 
14394
        output_verbose_link_cmd='echo'
 
14395
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14396
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14397
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14398
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14399
      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}'
 
14400
    else
 
14401
      case "$cc_basename" in
 
14402
        xlc*)
 
14403
         output_verbose_link_cmd='echo'
 
14404
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14405
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14406
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14407
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14408
          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}'
 
14409
          ;;
 
14410
       *)
 
14411
         ld_shlibs_F77=no
 
14412
          ;;
 
14413
      esac
 
14414
    fi
 
14415
      ;;
 
14416
 
 
14417
    dgux*)
 
14418
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14419
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14420
      hardcode_shlibpath_var_F77=no
 
14421
      ;;
 
14422
 
 
14423
    freebsd1*)
 
14424
      ld_shlibs_F77=no
 
14425
      ;;
 
14426
 
 
14427
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14428
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14429
    # does not break anything, and helps significantly (at the cost of a little
 
14430
    # extra space).
 
14431
    freebsd2.2*)
 
14432
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14433
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14434
      hardcode_direct_F77=yes
 
14435
      hardcode_shlibpath_var_F77=no
 
14436
      ;;
 
14437
 
 
14438
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14439
    freebsd2*)
 
14440
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14441
      hardcode_direct_F77=yes
 
14442
      hardcode_minus_L_F77=yes
 
14443
      hardcode_shlibpath_var_F77=no
 
14444
      ;;
 
14445
 
 
14446
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14447
    freebsd* | kfreebsd*-gnu)
 
14448
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14449
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14450
      hardcode_direct_F77=yes
 
14451
      hardcode_shlibpath_var_F77=no
 
14452
      ;;
 
14453
 
 
14454
    hpux9*)
 
14455
      if test "$GCC" = yes; then
 
14456
        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'
 
14457
      else
 
14458
        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'
 
14459
      fi
 
14460
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14461
      hardcode_libdir_separator_F77=:
 
14462
      hardcode_direct_F77=yes
 
14463
 
 
14464
      # hardcode_minus_L: Not really in the search PATH,
 
14465
      # but as the default location of the library.
 
14466
      hardcode_minus_L_F77=yes
 
14467
      export_dynamic_flag_spec_F77='${wl}-E'
 
14468
      ;;
 
14469
 
 
14470
    hpux10* | hpux11*)
 
14471
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14472
        case "$host_cpu" in
 
14473
        hppa*64*|ia64*)
 
14474
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14475
          ;;
 
14476
        *)
 
14477
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14478
          ;;
 
14479
        esac
 
14480
      else
 
14481
        case "$host_cpu" in
 
14482
        hppa*64*|ia64*)
 
14483
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14484
          ;;
 
14485
        *)
 
14486
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14487
          ;;
 
14488
        esac
 
14489
      fi
 
14490
      if test "$with_gnu_ld" = no; then
 
14491
        case "$host_cpu" in
 
14492
        hppa*64*)
 
14493
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14494
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14495
          hardcode_libdir_separator_F77=:
 
14496
          hardcode_direct_F77=no
 
14497
          hardcode_shlibpath_var_F77=no
 
14498
          ;;
 
14499
        ia64*)
 
14500
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14501
          hardcode_direct_F77=no
 
14502
          hardcode_shlibpath_var_F77=no
 
14503
 
 
14504
          # hardcode_minus_L: Not really in the search PATH,
 
14505
          # but as the default location of the library.
 
14506
          hardcode_minus_L_F77=yes
 
14507
          ;;
 
14508
        *)
 
14509
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14510
          hardcode_libdir_separator_F77=:
 
14511
          hardcode_direct_F77=yes
 
14512
          export_dynamic_flag_spec_F77='${wl}-E'
 
14513
 
 
14514
          # hardcode_minus_L: Not really in the search PATH,
 
14515
          # but as the default location of the library.
 
14516
          hardcode_minus_L_F77=yes
 
14517
          ;;
 
14518
        esac
 
14519
      fi
 
14520
      ;;
 
14521
 
 
14522
    irix5* | irix6* | nonstopux*)
 
14523
      if test "$GCC" = yes; then
 
14524
        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'
 
14525
      else
 
14526
        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'
 
14527
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14528
      fi
 
14529
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14530
      hardcode_libdir_separator_F77=:
 
14531
      link_all_deplibs_F77=yes
 
14532
      ;;
 
14533
 
 
14534
    netbsd*)
 
14535
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14536
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14537
      else
 
14538
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14539
      fi
 
14540
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14541
      hardcode_direct_F77=yes
 
14542
      hardcode_shlibpath_var_F77=no
 
14543
      ;;
 
14544
 
 
14545
    newsos6)
 
14546
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14547
      hardcode_direct_F77=yes
 
14548
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14549
      hardcode_libdir_separator_F77=:
 
14550
      hardcode_shlibpath_var_F77=no
 
14551
      ;;
 
14552
 
 
14553
    openbsd*)
 
14554
      hardcode_direct_F77=yes
 
14555
      hardcode_shlibpath_var_F77=no
 
14556
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14557
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14558
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14559
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14560
        export_dynamic_flag_spec_F77='${wl}-E'
 
14561
      else
 
14562
       case $host_os in
 
14563
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14564
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14565
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14566
           ;;
 
14567
         *)
 
14568
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14569
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14570
           ;;
 
14571
       esac
 
14572
      fi
 
14573
      ;;
 
14574
 
 
14575
    os2*)
 
14576
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14577
      hardcode_minus_L_F77=yes
 
14578
      allow_undefined_flag_F77=unsupported
 
14579
      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'
 
14580
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14581
      ;;
 
14582
 
 
14583
    osf3*)
 
14584
      if test "$GCC" = yes; then
 
14585
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14586
        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'
 
14587
      else
 
14588
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14589
        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'
 
14590
      fi
 
14591
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14592
      hardcode_libdir_separator_F77=:
 
14593
      ;;
 
14594
 
 
14595
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14596
      if test "$GCC" = yes; then
 
14597
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14598
        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'
 
14599
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14600
      else
 
14601
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14602
        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'
 
14603
        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~
 
14604
        $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'
 
14605
 
 
14606
        # Both c and cxx compiler support -rpath directly
 
14607
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14608
      fi
 
14609
      hardcode_libdir_separator_F77=:
 
14610
      ;;
 
14611
 
 
14612
    sco3.2v5*)
 
14613
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14614
      hardcode_shlibpath_var_F77=no
 
14615
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14616
      runpath_var=LD_RUN_PATH
 
14617
      hardcode_runpath_var=yes
 
14618
      ;;
 
14619
 
 
14620
    solaris*)
 
14621
      no_undefined_flag_F77=' -z text'
 
14622
      if test "$GCC" = yes; then
 
14623
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14624
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14625
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14626
      else
 
14627
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14628
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14629
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14630
      fi
 
14631
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14632
      hardcode_shlibpath_var_F77=no
 
14633
      case $host_os in
 
14634
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14635
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14636
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14637
      esac
 
14638
      link_all_deplibs_F77=yes
 
14639
      ;;
 
14640
 
 
14641
    sunos4*)
 
14642
      if test "x$host_vendor" = xsequent; then
 
14643
        # Use $CC to link under sequent, because it throws in some extra .o
 
14644
        # files that make .init and .fini sections work.
 
14645
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14646
      else
 
14647
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14648
      fi
 
14649
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14650
      hardcode_direct_F77=yes
 
14651
      hardcode_minus_L_F77=yes
 
14652
      hardcode_shlibpath_var_F77=no
 
14653
      ;;
 
14654
 
 
14655
    sysv4)
 
14656
      case $host_vendor in
 
14657
        sni)
 
14658
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14659
          hardcode_direct_F77=yes # is this really true???
 
14660
        ;;
 
14661
        siemens)
 
14662
          ## LD is ld it makes a PLAMLIB
 
14663
          ## CC just makes a GrossModule.
 
14664
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14665
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14666
          hardcode_direct_F77=no
 
14667
        ;;
 
14668
        motorola)
 
14669
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14670
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14671
        ;;
 
14672
      esac
 
14673
      runpath_var='LD_RUN_PATH'
 
14674
      hardcode_shlibpath_var_F77=no
 
14675
      ;;
 
14676
 
 
14677
    sysv4.3*)
 
14678
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14679
      hardcode_shlibpath_var_F77=no
 
14680
      export_dynamic_flag_spec_F77='-Bexport'
 
14681
      ;;
 
14682
 
 
14683
    sysv4*MP*)
 
14684
      if test -d /usr/nec; then
 
14685
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14686
        hardcode_shlibpath_var_F77=no
 
14687
        runpath_var=LD_RUN_PATH
 
14688
        hardcode_runpath_var=yes
 
14689
        ld_shlibs_F77=yes
 
14690
      fi
 
14691
      ;;
 
14692
 
 
14693
    sysv4.2uw2*)
 
14694
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14695
      hardcode_direct_F77=yes
 
14696
      hardcode_minus_L_F77=no
 
14697
      hardcode_shlibpath_var_F77=no
 
14698
      hardcode_runpath_var=yes
 
14699
      runpath_var=LD_RUN_PATH
 
14700
      ;;
 
14701
 
 
14702
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14703
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14704
      if test "$GCC" = yes; then
 
14705
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14706
      else
 
14707
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14708
      fi
 
14709
      runpath_var='LD_RUN_PATH'
 
14710
      hardcode_shlibpath_var_F77=no
 
14711
      ;;
 
14712
 
 
14713
    sysv5*)
 
14714
      no_undefined_flag_F77=' -z text'
 
14715
      # $CC -shared without GNU ld will not create a library from C++
 
14716
      # object files and a static libstdc++, better avoid it by now
 
14717
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14718
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14719
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14720
      hardcode_libdir_flag_spec_F77=
 
14721
      hardcode_shlibpath_var_F77=no
 
14722
      runpath_var='LD_RUN_PATH'
 
14723
      ;;
 
14724
 
 
14725
    uts4*)
 
14726
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14727
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14728
      hardcode_shlibpath_var_F77=no
 
14729
      ;;
 
14730
 
 
14731
    *)
 
14732
      ld_shlibs_F77=no
 
14733
      ;;
 
14734
    esac
 
14735
  fi
 
14736
 
 
14737
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14738
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14739
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14740
 
 
14741
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14742
if test "$GCC" = yes; then
 
14743
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14744
fi
 
14745
 
 
14746
#
 
14747
# Do we need to explicitly link libc?
 
14748
#
 
14749
case "x$archive_cmds_need_lc_F77" in
 
14750
x|xyes)
 
14751
  # Assume -lc should be added
 
14752
  archive_cmds_need_lc_F77=yes
 
14753
 
 
14754
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14755
    case $archive_cmds_F77 in
 
14756
    *'~'*)
 
14757
      # FIXME: we may have to deal with multi-command sequences.
 
14758
      ;;
 
14759
    '$CC '*)
 
14760
      # Test whether the compiler implicitly links with -lc since on some
 
14761
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14762
      # to ld, don't add -lc before -lgcc.
 
14763
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14764
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14765
      $rm conftest*
 
14766
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14767
 
 
14768
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14769
  (eval $ac_compile) 2>&5
 
14770
  ac_status=$?
 
14771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14772
  (exit $ac_status); } 2>conftest.err; then
 
14773
        soname=conftest
 
14774
        lib=conftest
 
14775
        libobjs=conftest.$ac_objext
 
14776
        deplibs=
 
14777
        wl=$lt_prog_compiler_wl_F77
 
14778
        compiler_flags=-v
 
14779
        linker_flags=-v
 
14780
        verstring=
 
14781
        output_objdir=.
 
14782
        libname=conftest
 
14783
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14784
        allow_undefined_flag_F77=
 
14785
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14786
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14787
  ac_status=$?
 
14788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14789
  (exit $ac_status); }
 
14790
        then
 
14791
          archive_cmds_need_lc_F77=no
 
14792
        else
 
14793
          archive_cmds_need_lc_F77=yes
 
14794
        fi
 
14795
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14796
      else
 
14797
        cat conftest.err 1>&5
 
14798
      fi
 
14799
      $rm conftest*
 
14800
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14801
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14802
      ;;
 
14803
    esac
 
14804
  fi
 
14805
  ;;
 
14806
esac
 
14807
 
 
14808
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14809
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14810
library_names_spec=
 
14811
libname_spec='lib$name'
 
14812
soname_spec=
 
14813
shrext_cmds=".so"
 
14814
postinstall_cmds=
 
14815
postuninstall_cmds=
 
14816
finish_cmds=
 
14817
finish_eval=
 
14818
shlibpath_var=
 
14819
shlibpath_overrides_runpath=unknown
 
14820
version_type=none
 
14821
dynamic_linker="$host_os ld.so"
 
14822
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14823
if test "$GCC" = yes; then
 
14824
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14825
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14826
    # if the path contains ";" then we assume it to be the separator
 
14827
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14828
    # assumed that no part of a normal pathname contains ";" but that should
 
14829
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14830
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14831
  else
 
14832
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14833
  fi
 
14834
else
 
14835
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14836
fi
 
14837
need_lib_prefix=unknown
 
14838
hardcode_into_libs=no
 
14839
 
 
14840
# when you set need_version to no, make sure it does not cause -set_version
 
14841
# flags to be left without arguments
 
14842
need_version=unknown
 
14843
 
 
14844
case $host_os in
 
14845
aix3*)
 
14846
  version_type=linux
 
14847
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14848
  shlibpath_var=LIBPATH
 
14849
 
 
14850
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14851
  soname_spec='${libname}${release}${shared_ext}$major'
 
14852
  ;;
 
14853
 
 
14854
aix4* | aix5*)
 
14855
  version_type=linux
 
14856
  need_lib_prefix=no
 
14857
  need_version=no
 
14858
  hardcode_into_libs=yes
 
14859
  if test "$host_cpu" = ia64; then
 
14860
    # AIX 5 supports IA64
 
14861
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14862
    shlibpath_var=LD_LIBRARY_PATH
 
14863
  else
 
14864
    # With GCC up to 2.95.x, collect2 would create an import file
 
14865
    # for dependence libraries.  The import file would start with
 
14866
    # the line `#! .'.  This would cause the generated library to
 
14867
    # depend on `.', always an invalid library.  This was fixed in
 
14868
    # development snapshots of GCC prior to 3.0.
 
14869
    case $host_os in
 
14870
      aix4 | aix4.[01] | aix4.[01].*)
 
14871
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14872
           echo ' yes '
 
14873
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14874
        :
 
14875
      else
 
14876
        can_build_shared=no
 
14877
      fi
 
14878
      ;;
 
14879
    esac
 
14880
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14881
    # soname into executable. Probably we can add versioning support to
 
14882
    # collect2, so additional links can be useful in future.
 
14883
    if test "$aix_use_runtimelinking" = yes; then
 
14884
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14885
      # instead of lib<name>.a to let people know that these are not
 
14886
      # typical AIX shared libraries.
 
14887
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14888
    else
 
14889
      # We preserve .a as extension for shared libraries through AIX4.2
 
14890
      # and later when we are not doing run time linking.
 
14891
      library_names_spec='${libname}${release}.a $libname.a'
 
14892
      soname_spec='${libname}${release}${shared_ext}$major'
 
14893
    fi
 
14894
    shlibpath_var=LIBPATH
 
14895
  fi
 
14896
  ;;
 
14897
 
 
14898
amigaos*)
 
14899
  library_names_spec='$libname.ixlibrary $libname.a'
 
14900
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14901
  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'
 
14902
  ;;
 
14903
 
 
14904
beos*)
 
14905
  library_names_spec='${libname}${shared_ext}'
 
14906
  dynamic_linker="$host_os ld.so"
 
14907
  shlibpath_var=LIBRARY_PATH
 
14908
  ;;
 
14909
 
 
14910
bsdi[45]*)
 
14911
  version_type=linux
 
14912
  need_version=no
 
14913
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14914
  soname_spec='${libname}${release}${shared_ext}$major'
 
14915
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14916
  shlibpath_var=LD_LIBRARY_PATH
 
14917
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14918
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14919
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14920
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14921
  # libtool to hard-code these into programs
 
14922
  ;;
 
14923
 
 
14924
cygwin* | mingw* | pw32*)
 
14925
  version_type=windows
 
14926
  shrext_cmds=".dll"
 
14927
  need_version=no
 
14928
  need_lib_prefix=no
 
14929
 
 
14930
  case $GCC,$host_os in
 
14931
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14932
    library_names_spec='$libname.dll.a'
 
14933
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14934
    postinstall_cmds='base_file=`basename \${file}`~
 
14935
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14936
      dldir=$destdir/`dirname \$dlpath`~
 
14937
      test -d \$dldir || mkdir -p \$dldir~
 
14938
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14939
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14940
      dlpath=$dir/\$dldll~
 
14941
       $rm \$dlpath'
 
14942
    shlibpath_overrides_runpath=yes
 
14943
 
 
14944
    case $host_os in
 
14945
    cygwin*)
 
14946
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14947
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14948
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14949
      ;;
 
14950
    mingw*)
 
14951
      # MinGW DLLs use traditional 'lib' prefix
 
14952
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14953
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14954
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14955
        # It is most probably a Windows format PATH printed by
 
14956
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14957
        # path with ; separators, and with drive letters. We can handle the
 
14958
        # drive letters (cygwin fileutils understands them), so leave them,
 
14959
        # especially as we might pass files found there to a mingw objdump,
 
14960
        # which wouldn't understand a cygwinified path. Ahh.
 
14961
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14962
      else
 
14963
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14964
      fi
 
14965
      ;;
 
14966
    pw32*)
 
14967
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14968
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14969
      ;;
 
14970
    esac
 
14971
    ;;
 
14972
 
 
14973
  *)
 
14974
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14975
    ;;
 
14976
  esac
 
14977
  dynamic_linker='Win32 ld.exe'
 
14978
  # FIXME: first we should search . and the directory the executable is in
 
14979
  shlibpath_var=PATH
 
14980
  ;;
 
14981
 
 
14982
darwin* | rhapsody*)
 
14983
  dynamic_linker="$host_os dyld"
 
14984
  version_type=darwin
 
14985
  need_lib_prefix=no
 
14986
  need_version=no
 
14987
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14988
  soname_spec='${libname}${release}${major}$shared_ext'
 
14989
  shlibpath_overrides_runpath=yes
 
14990
  shlibpath_var=DYLD_LIBRARY_PATH
 
14991
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14992
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14993
  if test "$GCC" = yes; then
 
14994
    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"`
 
14995
  else
 
14996
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14997
  fi
 
14998
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14999
  ;;
 
15000
 
 
15001
dgux*)
 
15002
  version_type=linux
 
15003
  need_lib_prefix=no
 
15004
  need_version=no
 
15005
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15006
  soname_spec='${libname}${release}${shared_ext}$major'
 
15007
  shlibpath_var=LD_LIBRARY_PATH
 
15008
  ;;
 
15009
 
 
15010
freebsd1*)
 
15011
  dynamic_linker=no
 
15012
  ;;
 
15013
 
 
15014
kfreebsd*-gnu)
 
15015
  version_type=linux
 
15016
  need_lib_prefix=no
 
15017
  need_version=no
 
15018
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15019
  soname_spec='${libname}${release}${shared_ext}$major'
 
15020
  shlibpath_var=LD_LIBRARY_PATH
 
15021
  shlibpath_overrides_runpath=no
 
15022
  hardcode_into_libs=yes
 
15023
  dynamic_linker='GNU ld.so'
 
15024
  ;;
 
15025
 
 
15026
freebsd*)
 
15027
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15028
  version_type=freebsd-$objformat
 
15029
  case $version_type in
 
15030
    freebsd-elf*)
 
15031
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15032
      need_version=no
 
15033
      need_lib_prefix=no
 
15034
      ;;
 
15035
    freebsd-*)
 
15036
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15037
      need_version=yes
 
15038
      ;;
 
15039
  esac
 
15040
  shlibpath_var=LD_LIBRARY_PATH
 
15041
  case $host_os in
 
15042
  freebsd2*)
 
15043
    shlibpath_overrides_runpath=yes
 
15044
    ;;
 
15045
  freebsd3.01* | freebsdelf3.01*)
 
15046
    shlibpath_overrides_runpath=yes
 
15047
    hardcode_into_libs=yes
 
15048
    ;;
 
15049
  *) # from 3.2 on
 
15050
    shlibpath_overrides_runpath=no
 
15051
    hardcode_into_libs=yes
 
15052
    ;;
 
15053
  esac
 
15054
  ;;
 
15055
 
 
15056
gnu*)
 
15057
  version_type=linux
 
15058
  need_lib_prefix=no
 
15059
  need_version=no
 
15060
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15061
  soname_spec='${libname}${release}${shared_ext}$major'
 
15062
  shlibpath_var=LD_LIBRARY_PATH
 
15063
  hardcode_into_libs=yes
 
15064
  ;;
 
15065
 
 
15066
hpux9* | hpux10* | hpux11*)
 
15067
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15068
  # link against other versions.
 
15069
  version_type=sunos
 
15070
  need_lib_prefix=no
 
15071
  need_version=no
 
15072
  case "$host_cpu" in
 
15073
  ia64*)
 
15074
    shrext_cmds='.so'
 
15075
    hardcode_into_libs=yes
 
15076
    dynamic_linker="$host_os dld.so"
 
15077
    shlibpath_var=LD_LIBRARY_PATH
 
15078
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15079
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15080
    soname_spec='${libname}${release}${shared_ext}$major'
 
15081
    if test "X$HPUX_IA64_MODE" = X32; then
 
15082
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15083
    else
 
15084
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15085
    fi
 
15086
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15087
    ;;
 
15088
   hppa*64*)
 
15089
     shrext_cmds='.sl'
 
15090
     hardcode_into_libs=yes
 
15091
     dynamic_linker="$host_os dld.sl"
 
15092
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15093
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15094
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15095
     soname_spec='${libname}${release}${shared_ext}$major'
 
15096
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15097
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15098
     ;;
 
15099
   *)
 
15100
    shrext_cmds='.sl'
 
15101
    dynamic_linker="$host_os dld.sl"
 
15102
    shlibpath_var=SHLIB_PATH
 
15103
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15104
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15105
    soname_spec='${libname}${release}${shared_ext}$major'
 
15106
    ;;
 
15107
  esac
 
15108
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15109
  postinstall_cmds='chmod 555 $lib'
 
15110
  ;;
 
15111
 
 
15112
irix5* | irix6* | nonstopux*)
 
15113
  case $host_os in
 
15114
    nonstopux*) version_type=nonstopux ;;
 
15115
    *)
 
15116
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15117
                version_type=linux
 
15118
        else
 
15119
                version_type=irix
 
15120
        fi ;;
 
15121
  esac
 
15122
  need_lib_prefix=no
 
15123
  need_version=no
 
15124
  soname_spec='${libname}${release}${shared_ext}$major'
 
15125
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15126
  case $host_os in
 
15127
  irix5* | nonstopux*)
 
15128
    libsuff= shlibsuff=
 
15129
    ;;
 
15130
  *)
 
15131
    case $LD in # libtool.m4 will add one of these switches to LD
 
15132
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15133
      libsuff= shlibsuff= libmagic=32-bit;;
 
15134
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15135
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15136
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15137
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15138
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15139
    esac
 
15140
    ;;
 
15141
  esac
 
15142
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15143
  shlibpath_overrides_runpath=no
 
15144
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15145
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15146
  hardcode_into_libs=yes
 
15147
  ;;
 
15148
 
 
15149
# No shared lib support for Linux oldld, aout, or coff.
 
15150
linux*oldld* | linux*aout* | linux*coff*)
 
15151
  dynamic_linker=no
 
15152
  ;;
 
15153
 
 
15154
# This must be Linux ELF.
 
15155
linux*)
 
15156
  version_type=linux
 
15157
  need_lib_prefix=no
 
15158
  need_version=no
 
15159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15160
  soname_spec='${libname}${release}${shared_ext}$major'
 
15161
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15162
  shlibpath_var=LD_LIBRARY_PATH
 
15163
  shlibpath_overrides_runpath=no
 
15164
  # This implies no fast_install, which is unacceptable.
 
15165
  # Some rework will be needed to allow for fast_install
 
15166
  # before this can be enabled.
 
15167
  hardcode_into_libs=yes
 
15168
 
 
15169
  # find out which ABI we are using
 
15170
  libsuff=
 
15171
  case "$host_cpu" in
 
15172
  x86_64*|s390x*|powerpc64*)
 
15173
    echo '#line 15173 "configure"' > conftest.$ac_ext
 
15174
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15175
  (eval $ac_compile) 2>&5
 
15176
  ac_status=$?
 
15177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15178
  (exit $ac_status); }; then
 
15179
      case `/usr/bin/file conftest.$ac_objext` in
 
15180
      *64-bit*)
 
15181
        libsuff=64
 
15182
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
15183
        ;;
 
15184
      esac
 
15185
    fi
 
15186
    rm -rf conftest*
 
15187
    ;;
 
15188
  esac
 
15189
 
 
15190
  # Append ld.so.conf contents to the search path
 
15191
  if test -f /etc/ld.so.conf; then
 
15192
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15193
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
15194
  fi
 
15195
 
 
15196
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15197
  # powerpc, because MkLinux only supported shared libraries with the
 
15198
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15199
  # most powerpc-linux boxes support dynamic linking these days and
 
15200
  # people can always --disable-shared, the test was removed, and we
 
15201
  # assume the GNU/Linux dynamic linker is in use.
 
15202
  dynamic_linker='GNU/Linux ld.so'
 
15203
  ;;
 
15204
 
 
15205
knetbsd*-gnu)
 
15206
  version_type=linux
 
15207
  need_lib_prefix=no
 
15208
  need_version=no
 
15209
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15210
  soname_spec='${libname}${release}${shared_ext}$major'
 
15211
  shlibpath_var=LD_LIBRARY_PATH
 
15212
  shlibpath_overrides_runpath=no
 
15213
  hardcode_into_libs=yes
 
15214
  dynamic_linker='GNU ld.so'
 
15215
  ;;
 
15216
 
 
15217
netbsd*)
 
15218
  version_type=sunos
 
15219
  need_lib_prefix=no
 
15220
  need_version=no
 
15221
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15222
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15223
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15224
    dynamic_linker='NetBSD (a.out) ld.so'
 
15225
  else
 
15226
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15227
    soname_spec='${libname}${release}${shared_ext}$major'
 
15228
    dynamic_linker='NetBSD ld.elf_so'
 
15229
  fi
 
15230
  shlibpath_var=LD_LIBRARY_PATH
 
15231
  shlibpath_overrides_runpath=yes
 
15232
  hardcode_into_libs=yes
 
15233
  ;;
 
15234
 
 
15235
newsos6)
 
15236
  version_type=linux
 
15237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15238
  shlibpath_var=LD_LIBRARY_PATH
 
15239
  shlibpath_overrides_runpath=yes
 
15240
  ;;
 
15241
 
 
15242
nto-qnx*)
 
15243
  version_type=linux
 
15244
  need_lib_prefix=no
 
15245
  need_version=no
 
15246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15247
  soname_spec='${libname}${release}${shared_ext}$major'
 
15248
  shlibpath_var=LD_LIBRARY_PATH
 
15249
  shlibpath_overrides_runpath=yes
 
15250
  ;;
 
15251
 
 
15252
openbsd*)
 
15253
  version_type=sunos
 
15254
  need_lib_prefix=no
 
15255
  need_version=no
 
15256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15257
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15258
  shlibpath_var=LD_LIBRARY_PATH
 
15259
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15260
    case $host_os in
 
15261
      openbsd2.[89] | openbsd2.[89].*)
 
15262
        shlibpath_overrides_runpath=no
 
15263
        ;;
 
15264
      *)
 
15265
        shlibpath_overrides_runpath=yes
 
15266
        ;;
 
15267
      esac
 
15268
  else
 
15269
    shlibpath_overrides_runpath=yes
 
15270
  fi
 
15271
  ;;
 
15272
 
 
15273
os2*)
 
15274
  libname_spec='$name'
 
15275
  shrext_cmds=".dll"
 
15276
  need_lib_prefix=no
 
15277
  library_names_spec='$libname${shared_ext} $libname.a'
 
15278
  dynamic_linker='OS/2 ld.exe'
 
15279
  shlibpath_var=LIBPATH
 
15280
  ;;
 
15281
 
 
15282
osf3* | osf4* | osf5*)
 
15283
  version_type=osf
 
15284
  need_lib_prefix=no
 
15285
  need_version=no
 
15286
  soname_spec='${libname}${release}${shared_ext}$major'
 
15287
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15288
  shlibpath_var=LD_LIBRARY_PATH
 
15289
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15290
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15291
  ;;
 
15292
 
 
15293
sco3.2v5*)
 
15294
  version_type=osf
 
15295
  soname_spec='${libname}${release}${shared_ext}$major'
 
15296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15297
  shlibpath_var=LD_LIBRARY_PATH
 
15298
  ;;
 
15299
 
 
15300
solaris*)
 
15301
  version_type=linux
 
15302
  need_lib_prefix=no
 
15303
  need_version=no
 
15304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15305
  soname_spec='${libname}${release}${shared_ext}$major'
 
15306
  shlibpath_var=LD_LIBRARY_PATH
 
15307
  shlibpath_overrides_runpath=yes
 
15308
  hardcode_into_libs=yes
 
15309
  # ldd complains unless libraries are executable
 
15310
  postinstall_cmds='chmod +x $lib'
 
15311
  ;;
 
15312
 
 
15313
sunos4*)
 
15314
  version_type=sunos
 
15315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15316
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15317
  shlibpath_var=LD_LIBRARY_PATH
 
15318
  shlibpath_overrides_runpath=yes
 
15319
  if test "$with_gnu_ld" = yes; then
 
15320
    need_lib_prefix=no
 
15321
  fi
 
15322
  need_version=yes
 
15323
  ;;
 
15324
 
 
15325
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15326
  version_type=linux
 
15327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15328
  soname_spec='${libname}${release}${shared_ext}$major'
 
15329
  shlibpath_var=LD_LIBRARY_PATH
 
15330
  case $host_vendor in
 
15331
    sni)
 
15332
      shlibpath_overrides_runpath=no
 
15333
      need_lib_prefix=no
 
15334
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15335
      runpath_var=LD_RUN_PATH
 
15336
      ;;
 
15337
    siemens)
 
15338
      need_lib_prefix=no
 
15339
      ;;
 
15340
    motorola)
 
15341
      need_lib_prefix=no
 
15342
      need_version=no
 
15343
      shlibpath_overrides_runpath=no
 
15344
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15345
      ;;
 
15346
  esac
 
15347
  ;;
 
15348
 
 
15349
sysv4*MP*)
 
15350
  if test -d /usr/nec ;then
 
15351
    version_type=linux
 
15352
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15353
    soname_spec='$libname${shared_ext}.$major'
 
15354
    shlibpath_var=LD_LIBRARY_PATH
 
15355
  fi
 
15356
  ;;
 
15357
 
 
15358
uts4*)
 
15359
  version_type=linux
 
15360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15361
  soname_spec='${libname}${release}${shared_ext}$major'
 
15362
  shlibpath_var=LD_LIBRARY_PATH
 
15363
  ;;
 
15364
 
 
15365
*)
 
15366
  dynamic_linker=no
 
15367
  ;;
 
15368
esac
 
15369
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15370
echo "${ECHO_T}$dynamic_linker" >&6
 
15371
test "$dynamic_linker" = no && can_build_shared=no
 
15372
 
 
15373
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15374
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15375
hardcode_action_F77=
 
15376
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15377
   test -n "$runpath_var_F77" || \
 
15378
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15379
 
 
15380
  # We can hardcode non-existant directories.
 
15381
  if test "$hardcode_direct_F77" != no &&
 
15382
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15383
     # have to relink, otherwise we might link with an installed library
 
15384
     # when we should be linking with a yet-to-be-installed one
 
15385
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15386
     test "$hardcode_minus_L_F77" != no; then
 
15387
    # Linking always hardcodes the temporary library directory.
 
15388
    hardcode_action_F77=relink
 
15389
  else
 
15390
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15391
    hardcode_action_F77=immediate
 
15392
  fi
 
15393
else
 
15394
  # We cannot hardcode anything, or else we can only hardcode existing
 
15395
  # directories.
 
15396
  hardcode_action_F77=unsupported
 
15397
fi
 
15398
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15399
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15400
 
 
15401
if test "$hardcode_action_F77" = relink; then
 
15402
  # Fast installation is not supported
 
15403
  enable_fast_install=no
 
15404
elif test "$shlibpath_overrides_runpath" = yes ||
 
15405
     test "$enable_shared" = no; then
 
15406
  # Fast installation is not necessary
 
15407
  enable_fast_install=needless
 
15408
fi
 
15409
 
 
15410
striplib=
 
15411
old_striplib=
 
15412
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15413
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15414
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15415
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15416
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15417
  echo "$as_me:$LINENO: result: yes" >&5
 
15418
echo "${ECHO_T}yes" >&6
 
15419
else
 
15420
# FIXME - insert some real tests, host_os isn't really good enough
 
15421
  case $host_os in
 
15422
   darwin*)
 
15423
       if test -n "$STRIP" ; then
 
15424
         striplib="$STRIP -x"
 
15425
         echo "$as_me:$LINENO: result: yes" >&5
 
15426
echo "${ECHO_T}yes" >&6
 
15427
       else
 
15428
  echo "$as_me:$LINENO: result: no" >&5
 
15429
echo "${ECHO_T}no" >&6
 
15430
fi
 
15431
       ;;
 
15432
   *)
 
15433
  echo "$as_me:$LINENO: result: no" >&5
 
15434
echo "${ECHO_T}no" >&6
 
15435
    ;;
 
15436
  esac
 
15437
fi
 
15438
 
 
15439
 
 
15440
 
 
15441
# The else clause should only fire when bootstrapping the
 
15442
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15443
# with your package, and you will get complaints that there are
 
15444
# no rules to generate ltmain.sh.
 
15445
if test -f "$ltmain"; then
 
15446
  # See if we are running on zsh, and set the options which allow our commands through
 
15447
  # without removal of \ escapes.
 
15448
  if test -n "${ZSH_VERSION+set}" ; then
 
15449
    setopt NO_GLOB_SUBST
 
15450
  fi
 
15451
  # Now quote all the things that may contain metacharacters while being
 
15452
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15453
  # variables and quote the copies for generation of the libtool script.
 
15454
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15455
    SED SHELL STRIP \
 
15456
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15457
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15458
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15459
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15460
    lt_cv_sys_global_symbol_to_c_name_address \
 
15461
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15462
    old_postinstall_cmds old_postuninstall_cmds \
 
15463
    compiler_F77 \
 
15464
    CC_F77 \
 
15465
    LD_F77 \
 
15466
    lt_prog_compiler_wl_F77 \
 
15467
    lt_prog_compiler_pic_F77 \
 
15468
    lt_prog_compiler_static_F77 \
 
15469
    lt_prog_compiler_no_builtin_flag_F77 \
 
15470
    export_dynamic_flag_spec_F77 \
 
15471
    thread_safe_flag_spec_F77 \
 
15472
    whole_archive_flag_spec_F77 \
 
15473
    enable_shared_with_static_runtimes_F77 \
 
15474
    old_archive_cmds_F77 \
 
15475
    old_archive_from_new_cmds_F77 \
 
15476
    predep_objects_F77 \
 
15477
    postdep_objects_F77 \
 
15478
    predeps_F77 \
 
15479
    postdeps_F77 \
 
15480
    compiler_lib_search_path_F77 \
 
15481
    archive_cmds_F77 \
 
15482
    archive_expsym_cmds_F77 \
 
15483
    postinstall_cmds_F77 \
 
15484
    postuninstall_cmds_F77 \
 
15485
    old_archive_from_expsyms_cmds_F77 \
 
15486
    allow_undefined_flag_F77 \
 
15487
    no_undefined_flag_F77 \
 
15488
    export_symbols_cmds_F77 \
 
15489
    hardcode_libdir_flag_spec_F77 \
 
15490
    hardcode_libdir_flag_spec_ld_F77 \
 
15491
    hardcode_libdir_separator_F77 \
 
15492
    hardcode_automatic_F77 \
 
15493
    module_cmds_F77 \
 
15494
    module_expsym_cmds_F77 \
 
15495
    lt_cv_prog_compiler_c_o_F77 \
 
15496
    exclude_expsyms_F77 \
 
15497
    include_expsyms_F77; do
 
15498
 
 
15499
    case $var in
 
15500
    old_archive_cmds_F77 | \
 
15501
    old_archive_from_new_cmds_F77 | \
 
15502
    archive_cmds_F77 | \
 
15503
    archive_expsym_cmds_F77 | \
 
15504
    module_cmds_F77 | \
 
15505
    module_expsym_cmds_F77 | \
 
15506
    old_archive_from_expsyms_cmds_F77 | \
 
15507
    export_symbols_cmds_F77 | \
 
15508
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15509
    postinstall_cmds | postuninstall_cmds | \
 
15510
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15511
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15512
      # Double-quote double-evaled strings.
 
15513
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15514
      ;;
 
15515
    *)
 
15516
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15517
      ;;
 
15518
    esac
 
15519
  done
 
15520
 
 
15521
  case $lt_echo in
 
15522
  *'\$0 --fallback-echo"')
 
15523
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15524
    ;;
 
15525
  esac
 
15526
 
 
15527
cfgfile="$ofile"
 
15528
 
 
15529
  cat <<__EOF__ >> "$cfgfile"
 
15530
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15531
 
 
15532
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15533
 
 
15534
# Shell to use when invoking shell scripts.
 
15535
SHELL=$lt_SHELL
 
15536
 
 
15537
# Whether or not to build shared libraries.
 
15538
build_libtool_libs=$enable_shared
 
15539
 
 
15540
# Whether or not to build static libraries.
 
15541
build_old_libs=$enable_static
 
15542
 
 
15543
# Whether or not to add -lc for building shared libraries.
 
15544
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15545
 
 
15546
# Whether or not to disallow shared libs when runtime libs are static
 
15547
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15548
 
 
15549
# Whether or not to optimize for fast installation.
 
15550
fast_install=$enable_fast_install
 
15551
 
 
15552
# The host system.
 
15553
host_alias=$host_alias
 
15554
host=$host
 
15555
 
 
15556
# An echo program that does not interpret backslashes.
 
15557
echo=$lt_echo
 
15558
 
 
15559
# The archiver.
 
15560
AR=$lt_AR
 
15561
AR_FLAGS=$lt_AR_FLAGS
 
15562
 
 
15563
# A C compiler.
 
15564
LTCC=$lt_LTCC
 
15565
 
 
15566
# A language-specific compiler.
 
15567
CC=$lt_compiler_F77
 
15568
 
 
15569
# Is the compiler the GNU C compiler?
 
15570
with_gcc=$GCC_F77
 
15571
 
 
15572
# An ERE matcher.
 
15573
EGREP=$lt_EGREP
 
15574
 
 
15575
# The linker used to build libraries.
 
15576
LD=$lt_LD_F77
 
15577
 
 
15578
# Whether we need hard or soft links.
 
15579
LN_S=$lt_LN_S
 
15580
 
 
15581
# A BSD-compatible nm program.
 
15582
NM=$lt_NM
 
15583
 
 
15584
# A symbol stripping program
 
15585
STRIP=$lt_STRIP
 
15586
 
 
15587
# Used to examine libraries when file_magic_cmd begins "file"
 
15588
MAGIC_CMD=$MAGIC_CMD
 
15589
 
 
15590
# Used on cygwin: DLL creation program.
 
15591
DLLTOOL="$DLLTOOL"
 
15592
 
 
15593
# Used on cygwin: object dumper.
 
15594
OBJDUMP="$OBJDUMP"
 
15595
 
 
15596
# Used on cygwin: assembler.
 
15597
AS="$AS"
 
15598
 
 
15599
# The name of the directory that contains temporary libtool files.
 
15600
objdir=$objdir
 
15601
 
 
15602
# How to create reloadable object files.
 
15603
reload_flag=$lt_reload_flag
 
15604
reload_cmds=$lt_reload_cmds
 
15605
 
 
15606
# How to pass a linker flag through the compiler.
 
15607
wl=$lt_lt_prog_compiler_wl_F77
 
15608
 
 
15609
# Object file suffix (normally "o").
 
15610
objext="$ac_objext"
 
15611
 
 
15612
# Old archive suffix (normally "a").
 
15613
libext="$libext"
 
15614
 
 
15615
# Shared library suffix (normally ".so").
 
15616
shrext_cmds='$shrext_cmds'
 
15617
 
 
15618
# Executable file suffix (normally "").
 
15619
exeext="$exeext"
 
15620
 
 
15621
# Additional compiler flags for building library objects.
 
15622
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15623
pic_mode=$pic_mode
 
15624
 
 
15625
# What is the maximum length of a command?
 
15626
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15627
 
 
15628
# Does compiler simultaneously support -c and -o options?
 
15629
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15630
 
 
15631
# Must we lock files when doing compilation ?
 
15632
need_locks=$lt_need_locks
 
15633
 
 
15634
# Do we need the lib prefix for modules?
 
15635
need_lib_prefix=$need_lib_prefix
 
15636
 
 
15637
# Do we need a version for libraries?
 
15638
need_version=$need_version
 
15639
 
 
15640
# Whether dlopen is supported.
 
15641
dlopen_support=$enable_dlopen
 
15642
 
 
15643
# Whether dlopen of programs is supported.
 
15644
dlopen_self=$enable_dlopen_self
 
15645
 
 
15646
# Whether dlopen of statically linked programs is supported.
 
15647
dlopen_self_static=$enable_dlopen_self_static
 
15648
 
 
15649
# Compiler flag to prevent dynamic linking.
 
15650
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15651
 
 
15652
# Compiler flag to turn off builtin functions.
 
15653
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15654
 
 
15655
# Compiler flag to allow reflexive dlopens.
 
15656
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15657
 
 
15658
# Compiler flag to generate shared objects directly from archives.
 
15659
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15660
 
 
15661
# Compiler flag to generate thread-safe objects.
 
15662
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15663
 
 
15664
# Library versioning type.
 
15665
version_type=$version_type
 
15666
 
 
15667
# Format of library name prefix.
 
15668
libname_spec=$lt_libname_spec
 
15669
 
 
15670
# List of archive names.  First name is the real one, the rest are links.
 
15671
# The last name is the one that the linker finds with -lNAME.
 
15672
library_names_spec=$lt_library_names_spec
 
15673
 
 
15674
# The coded name of the library, if different from the real name.
 
15675
soname_spec=$lt_soname_spec
 
15676
 
 
15677
# Commands used to build and install an old-style archive.
 
15678
RANLIB=$lt_RANLIB
 
15679
old_archive_cmds=$lt_old_archive_cmds_F77
 
15680
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15681
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15682
 
 
15683
# Create an old-style archive from a shared archive.
 
15684
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15685
 
 
15686
# Create a temporary old-style archive to link instead of a shared archive.
 
15687
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15688
 
 
15689
# Commands used to build and install a shared archive.
 
15690
archive_cmds=$lt_archive_cmds_F77
 
15691
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15692
postinstall_cmds=$lt_postinstall_cmds
 
15693
postuninstall_cmds=$lt_postuninstall_cmds
 
15694
 
 
15695
# Commands used to build a loadable module (assumed same as above if empty)
 
15696
module_cmds=$lt_module_cmds_F77
 
15697
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15698
 
 
15699
# Commands to strip libraries.
 
15700
old_striplib=$lt_old_striplib
 
15701
striplib=$lt_striplib
 
15702
 
 
15703
# Dependencies to place before the objects being linked to create a
 
15704
# shared library.
 
15705
predep_objects=$lt_predep_objects_F77
 
15706
 
 
15707
# Dependencies to place after the objects being linked to create a
 
15708
# shared library.
 
15709
postdep_objects=$lt_postdep_objects_F77
 
15710
 
 
15711
# Dependencies to place before the objects being linked to create a
 
15712
# shared library.
 
15713
predeps=$lt_predeps_F77
 
15714
 
 
15715
# Dependencies to place after the objects being linked to create a
 
15716
# shared library.
 
15717
postdeps=$lt_postdeps_F77
 
15718
 
 
15719
# The library search path used internally by the compiler when linking
 
15720
# a shared library.
 
15721
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15722
 
 
15723
# Method to check whether dependent libraries are shared objects.
 
15724
deplibs_check_method=$lt_deplibs_check_method
 
15725
 
 
15726
# Command to use when deplibs_check_method == file_magic.
 
15727
file_magic_cmd=$lt_file_magic_cmd
 
15728
 
 
15729
# Flag that allows shared libraries with undefined symbols to be built.
 
15730
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15731
 
 
15732
# Flag that forces no undefined symbols.
 
15733
no_undefined_flag=$lt_no_undefined_flag_F77
 
15734
 
 
15735
# Commands used to finish a libtool library installation in a directory.
 
15736
finish_cmds=$lt_finish_cmds
 
15737
 
 
15738
# Same as above, but a single script fragment to be evaled but not shown.
 
15739
finish_eval=$lt_finish_eval
 
15740
 
 
15741
# Take the output of nm and produce a listing of raw symbols and C names.
 
15742
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15743
 
 
15744
# Transform the output of nm in a proper C declaration
 
15745
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15746
 
 
15747
# Transform the output of nm in a C name address pair
 
15748
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15749
 
 
15750
# This is the shared library runtime path variable.
 
15751
runpath_var=$runpath_var
 
15752
 
 
15753
# This is the shared library path variable.
 
15754
shlibpath_var=$shlibpath_var
 
15755
 
 
15756
# Is shlibpath searched before the hard-coded library search path?
 
15757
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15758
 
 
15759
# How to hardcode a shared library path into an executable.
 
15760
hardcode_action=$hardcode_action_F77
 
15761
 
 
15762
# Whether we should hardcode library paths into libraries.
 
15763
hardcode_into_libs=$hardcode_into_libs
 
15764
 
 
15765
# Flag to hardcode \$libdir into a binary during linking.
 
15766
# This must work even if \$libdir does not exist.
 
15767
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15768
 
 
15769
# If ld is used when linking, flag to hardcode \$libdir into
 
15770
# a binary during linking. This must work even if \$libdir does
 
15771
# not exist.
 
15772
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15773
 
 
15774
# Whether we need a single -rpath flag with a separated argument.
 
15775
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15776
 
 
15777
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15778
# resulting binary.
 
15779
hardcode_direct=$hardcode_direct_F77
 
15780
 
 
15781
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15782
# resulting binary.
 
15783
hardcode_minus_L=$hardcode_minus_L_F77
 
15784
 
 
15785
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15786
# the resulting binary.
 
15787
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15788
 
 
15789
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15790
# and all subsequent libraries and executables linked against it.
 
15791
hardcode_automatic=$hardcode_automatic_F77
 
15792
 
 
15793
# Variables whose values should be saved in libtool wrapper scripts and
 
15794
# restored at relink time.
 
15795
variables_saved_for_relink="$variables_saved_for_relink"
 
15796
 
 
15797
# Whether libtool must link a program against all its dependency libraries.
 
15798
link_all_deplibs=$link_all_deplibs_F77
 
15799
 
 
15800
# Compile-time system search path for libraries
 
15801
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15802
 
 
15803
# Run-time system search path for libraries
 
15804
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15805
 
 
15806
# Fix the shell variable \$srcfile for the compiler.
 
15807
fix_srcfile_path="$fix_srcfile_path_F77"
 
15808
 
 
15809
# Set to yes if exported symbols are required.
 
15810
always_export_symbols=$always_export_symbols_F77
 
15811
 
 
15812
# The commands to list exported symbols.
 
15813
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15814
 
 
15815
# The commands to extract the exported symbol list from a shared archive.
 
15816
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15817
 
 
15818
# Symbols that should not be listed in the preloaded symbols.
 
15819
exclude_expsyms=$lt_exclude_expsyms_F77
 
15820
 
 
15821
# Symbols that must always be exported.
 
15822
include_expsyms=$lt_include_expsyms_F77
 
15823
 
 
15824
# ### END LIBTOOL TAG CONFIG: $tagname
 
15825
 
 
15826
__EOF__
 
15827
 
 
15828
 
 
15829
else
 
15830
  # If there is no Makefile yet, we rely on a make rule to execute
 
15831
  # `config.status --recheck' to rerun these tests and create the
 
15832
  # libtool script then.
 
15833
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15834
  if test -f "$ltmain_in"; then
 
15835
    test -f Makefile && make "$ltmain"
 
15836
  fi
 
15837
fi
 
15838
 
 
15839
 
 
15840
ac_ext=c
 
15841
ac_cpp='$CPP $CPPFLAGS'
 
15842
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15843
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15844
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15845
 
 
15846
CC="$lt_save_CC"
 
15847
 
 
15848
        else
 
15849
          tagname=""
 
15850
        fi
 
15851
        ;;
 
15852
 
 
15853
      GCJ)
 
15854
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15855
 
 
15856
 
 
15857
 
 
15858
# Source file extension for Java test sources.
 
15859
ac_ext=java
 
15860
 
 
15861
# Object file extension for compiled Java test sources.
 
15862
objext=o
 
15863
objext_GCJ=$objext
 
15864
 
 
15865
# Code to be used in simple compile tests
 
15866
lt_simple_compile_test_code="class foo {}\n"
 
15867
 
 
15868
# Code to be used in simple link tests
 
15869
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15870
 
 
15871
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15872
 
 
15873
# If no C compiler was specified, use CC.
 
15874
LTCC=${LTCC-"$CC"}
 
15875
 
 
15876
# Allow CC to be a program name with arguments.
 
15877
compiler=$CC
 
15878
 
 
15879
 
 
15880
# Allow CC to be a program name with arguments.
 
15881
lt_save_CC="$CC"
 
15882
CC=${GCJ-"gcj"}
 
15883
compiler=$CC
 
15884
compiler_GCJ=$CC
 
15885
 
 
15886
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15887
archive_cmds_need_lc_GCJ=no
 
15888
 
 
15889
 
 
15890
lt_prog_compiler_no_builtin_flag_GCJ=
 
15891
 
 
15892
if test "$GCC" = yes; then
 
15893
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15894
 
 
15895
 
 
15896
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15897
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15898
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15900
else
 
15901
  lt_cv_prog_compiler_rtti_exceptions=no
 
15902
  ac_outfile=conftest.$ac_objext
 
15903
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15904
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15905
   # Insert the option either (1) after the last *FLAGS variable, or
 
15906
   # (2) before a word containing "conftest.", or (3) at the end.
 
15907
   # Note that $ac_compile itself does not contain backslashes and begins
 
15908
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15909
   # The option is referenced via a variable to avoid confusing sed.
 
15910
   lt_compile=`echo "$ac_compile" | $SED \
 
15911
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15913
   -e 's:$: $lt_compiler_flag:'`
 
15914
   (eval echo "\"\$as_me:15914: $lt_compile\"" >&5)
 
15915
   (eval "$lt_compile" 2>conftest.err)
 
15916
   ac_status=$?
 
15917
   cat conftest.err >&5
 
15918
   echo "$as_me:15918: \$? = $ac_status" >&5
 
15919
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15920
     # The compiler can only warn and ignore the option if not recognized
 
15921
     # So say no if there are warnings
 
15922
     if test ! -s conftest.err; then
 
15923
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15924
     fi
 
15925
   fi
 
15926
   $rm conftest*
 
15927
 
 
15928
fi
 
15929
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15930
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15931
 
 
15932
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15933
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15934
else
 
15935
    :
 
15936
fi
 
15937
 
 
15938
fi
 
15939
 
 
15940
lt_prog_compiler_wl_GCJ=
 
15941
lt_prog_compiler_pic_GCJ=
 
15942
lt_prog_compiler_static_GCJ=
 
15943
 
 
15944
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15945
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15946
 
 
15947
  if test "$GCC" = yes; then
 
15948
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15949
    lt_prog_compiler_static_GCJ='-static'
 
15950
 
 
15951
    case $host_os in
 
15952
      aix*)
 
15953
      # All AIX code is PIC.
 
15954
      if test "$host_cpu" = ia64; then
 
15955
        # AIX 5 now supports IA64 processor
 
15956
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15957
      fi
 
15958
      ;;
 
15959
 
 
15960
    amigaos*)
 
15961
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15962
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15963
      # like `-m68040'.
 
15964
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15965
      ;;
 
15966
 
 
15967
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15968
      # PIC is the default for these OSes.
 
15969
      ;;
 
15970
 
 
15971
    mingw* | pw32* | os2*)
 
15972
      # This hack is so that the source file can tell whether it is being
 
15973
      # built for inclusion in a dll (and should export symbols for example).
 
15974
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15975
      ;;
 
15976
 
 
15977
    darwin* | rhapsody*)
 
15978
      # PIC is the default on this platform
 
15979
      # Common symbols not allowed in MH_DYLIB files
 
15980
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15981
      ;;
 
15982
 
 
15983
    msdosdjgpp*)
 
15984
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15985
      # on systems that don't support them.
 
15986
      lt_prog_compiler_can_build_shared_GCJ=no
 
15987
      enable_shared=no
 
15988
      ;;
 
15989
 
 
15990
    sysv4*MP*)
 
15991
      if test -d /usr/nec; then
 
15992
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15993
      fi
 
15994
      ;;
 
15995
 
 
15996
    hpux*)
 
15997
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15998
      # not for PA HP-UX.
 
15999
      case "$host_cpu" in
 
16000
      hppa*64*|ia64*)
 
16001
        # +Z the default
 
16002
        ;;
 
16003
      *)
 
16004
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16005
        ;;
 
16006
      esac
 
16007
      ;;
 
16008
 
 
16009
    *)
 
16010
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16011
      ;;
 
16012
    esac
 
16013
  else
 
16014
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16015
    case $host_os in
 
16016
    aix*)
 
16017
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16018
      if test "$host_cpu" = ia64; then
 
16019
        # AIX 5 now supports IA64 processor
 
16020
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16021
      else
 
16022
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16023
      fi
 
16024
      ;;
 
16025
      darwin*)
 
16026
        # PIC is the default on this platform
 
16027
        # Common symbols not allowed in MH_DYLIB files
 
16028
       case "$cc_basename" in
 
16029
         xlc*)
 
16030
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16031
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16032
         ;;
 
16033
       esac
 
16034
       ;;
 
16035
 
 
16036
    mingw* | pw32* | os2*)
 
16037
      # This hack is so that the source file can tell whether it is being
 
16038
      # built for inclusion in a dll (and should export symbols for example).
 
16039
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16040
      ;;
 
16041
 
 
16042
    hpux9* | hpux10* | hpux11*)
 
16043
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16044
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16045
      # not for PA HP-UX.
 
16046
      case "$host_cpu" in
 
16047
      hppa*64*|ia64*)
 
16048
        # +Z the default
 
16049
        ;;
 
16050
      *)
 
16051
        lt_prog_compiler_pic_GCJ='+Z'
 
16052
        ;;
 
16053
      esac
 
16054
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16055
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16056
      ;;
 
16057
 
 
16058
    irix5* | irix6* | nonstopux*)
 
16059
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16060
      # PIC (with -KPIC) is the default.
 
16061
      lt_prog_compiler_static_GCJ='-non_shared'
 
16062
      ;;
 
16063
 
 
16064
    newsos6)
 
16065
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16066
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16067
      ;;
 
16068
 
 
16069
    linux*)
 
16070
      case $CC in
 
16071
      icc* | ecc*)
 
16072
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16073
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16074
        lt_prog_compiler_static_GCJ='-static'
 
16075
        ;;
 
16076
      ccc*)
 
16077
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16078
        # All Alpha code is PIC.
 
16079
        lt_prog_compiler_static_GCJ='-non_shared'
 
16080
        ;;
 
16081
      esac
 
16082
      ;;
 
16083
 
 
16084
    osf3* | osf4* | osf5*)
 
16085
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16086
      # All OSF/1 code is PIC.
 
16087
      lt_prog_compiler_static_GCJ='-non_shared'
 
16088
      ;;
 
16089
 
 
16090
    sco3.2v5*)
 
16091
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16092
      lt_prog_compiler_static_GCJ='-dn'
 
16093
      ;;
 
16094
 
 
16095
    solaris*)
 
16096
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16097
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16098
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16099
      ;;
 
16100
 
 
16101
    sunos4*)
 
16102
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16103
      lt_prog_compiler_pic_GCJ='-PIC'
 
16104
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16105
      ;;
 
16106
 
 
16107
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16108
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16109
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16110
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16111
      ;;
 
16112
 
 
16113
    sysv4*MP*)
 
16114
      if test -d /usr/nec ;then
 
16115
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16116
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16117
      fi
 
16118
      ;;
 
16119
 
 
16120
    uts4*)
 
16121
      lt_prog_compiler_pic_GCJ='-pic'
 
16122
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16123
      ;;
 
16124
 
 
16125
    *)
 
16126
      lt_prog_compiler_can_build_shared_GCJ=no
 
16127
      ;;
 
16128
    esac
 
16129
  fi
 
16130
 
 
16131
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16132
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16133
 
 
16134
#
 
16135
# Check to make sure the PIC flag actually works.
 
16136
#
 
16137
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16138
 
 
16139
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16140
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16141
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16143
else
 
16144
  lt_prog_compiler_pic_works_GCJ=no
 
16145
  ac_outfile=conftest.$ac_objext
 
16146
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16147
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16148
   # Insert the option either (1) after the last *FLAGS variable, or
 
16149
   # (2) before a word containing "conftest.", or (3) at the end.
 
16150
   # Note that $ac_compile itself does not contain backslashes and begins
 
16151
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16152
   # The option is referenced via a variable to avoid confusing sed.
 
16153
   lt_compile=`echo "$ac_compile" | $SED \
 
16154
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16155
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16156
   -e 's:$: $lt_compiler_flag:'`
 
16157
   (eval echo "\"\$as_me:16157: $lt_compile\"" >&5)
 
16158
   (eval "$lt_compile" 2>conftest.err)
 
16159
   ac_status=$?
 
16160
   cat conftest.err >&5
 
16161
   echo "$as_me:16161: \$? = $ac_status" >&5
 
16162
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16163
     # The compiler can only warn and ignore the option if not recognized
 
16164
     # So say no if there are warnings
 
16165
     if test ! -s conftest.err; then
 
16166
       lt_prog_compiler_pic_works_GCJ=yes
 
16167
     fi
 
16168
   fi
 
16169
   $rm conftest*
 
16170
 
 
16171
fi
 
16172
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16173
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16174
 
 
16175
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16176
    case $lt_prog_compiler_pic_GCJ in
 
16177
     "" | " "*) ;;
 
16178
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16179
     esac
 
16180
else
 
16181
    lt_prog_compiler_pic_GCJ=
 
16182
     lt_prog_compiler_can_build_shared_GCJ=no
 
16183
fi
 
16184
 
 
16185
fi
 
16186
case "$host_os" in
 
16187
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16188
  *djgpp*)
 
16189
    lt_prog_compiler_pic_GCJ=
 
16190
    ;;
 
16191
  *)
 
16192
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16193
    ;;
 
16194
esac
 
16195
 
 
16196
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16197
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16198
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16200
else
 
16201
  lt_cv_prog_compiler_c_o_GCJ=no
 
16202
   $rm -r conftest 2>/dev/null
 
16203
   mkdir conftest
 
16204
   cd conftest
 
16205
   mkdir out
 
16206
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16207
 
 
16208
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16209
   # Insert the option either (1) after the last *FLAGS variable, or
 
16210
   # (2) before a word containing "conftest.", or (3) at the end.
 
16211
   # Note that $ac_compile itself does not contain backslashes and begins
 
16212
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16213
   lt_compile=`echo "$ac_compile" | $SED \
 
16214
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16215
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16216
   -e 's:$: $lt_compiler_flag:'`
 
16217
   (eval echo "\"\$as_me:16217: $lt_compile\"" >&5)
 
16218
   (eval "$lt_compile" 2>out/conftest.err)
 
16219
   ac_status=$?
 
16220
   cat out/conftest.err >&5
 
16221
   echo "$as_me:16221: \$? = $ac_status" >&5
 
16222
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16223
   then
 
16224
     # The compiler can only warn and ignore the option if not recognized
 
16225
     # So say no if there are warnings
 
16226
     if test ! -s out/conftest.err; then
 
16227
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16228
     fi
 
16229
   fi
 
16230
   chmod u+w .
 
16231
   $rm conftest*
 
16232
   # SGI C++ compiler will create directory out/ii_files/ for
 
16233
   # template instantiation
 
16234
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16235
   $rm out/* && rmdir out
 
16236
   cd ..
 
16237
   rmdir conftest
 
16238
   $rm conftest*
 
16239
 
 
16240
fi
 
16241
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16242
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16243
 
 
16244
 
 
16245
hard_links="nottested"
 
16246
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16247
  # do not overwrite the value of need_locks provided by the user
 
16248
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16249
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16250
  hard_links=yes
 
16251
  $rm conftest*
 
16252
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16253
  touch conftest.a
 
16254
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16255
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16256
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16257
echo "${ECHO_T}$hard_links" >&6
 
16258
  if test "$hard_links" = no; then
 
16259
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16260
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16261
    need_locks=warn
 
16262
  fi
 
16263
else
 
16264
  need_locks=no
 
16265
fi
 
16266
 
 
16267
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16268
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16269
 
 
16270
  runpath_var=
 
16271
  allow_undefined_flag_GCJ=
 
16272
  enable_shared_with_static_runtimes_GCJ=no
 
16273
  archive_cmds_GCJ=
 
16274
  archive_expsym_cmds_GCJ=
 
16275
  old_archive_From_new_cmds_GCJ=
 
16276
  old_archive_from_expsyms_cmds_GCJ=
 
16277
  export_dynamic_flag_spec_GCJ=
 
16278
  whole_archive_flag_spec_GCJ=
 
16279
  thread_safe_flag_spec_GCJ=
 
16280
  hardcode_libdir_flag_spec_GCJ=
 
16281
  hardcode_libdir_flag_spec_ld_GCJ=
 
16282
  hardcode_libdir_separator_GCJ=
 
16283
  hardcode_direct_GCJ=no
 
16284
  hardcode_minus_L_GCJ=no
 
16285
  hardcode_shlibpath_var_GCJ=unsupported
 
16286
  link_all_deplibs_GCJ=unknown
 
16287
  hardcode_automatic_GCJ=no
 
16288
  module_cmds_GCJ=
 
16289
  module_expsym_cmds_GCJ=
 
16290
  always_export_symbols_GCJ=no
 
16291
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16292
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16293
  # included in the symbol list
 
16294
  include_expsyms_GCJ=
 
16295
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16296
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16297
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16298
  # as well as any symbol that contains `d'.
 
16299
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16300
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16301
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16302
  # the symbol is explicitly referenced.  Since portable code cannot
 
16303
  # rely on this symbol name, it's probably fine to never include it in
 
16304
  # preloaded symbol tables.
 
16305
  extract_expsyms_cmds=
 
16306
 
 
16307
  case $host_os in
 
16308
  cygwin* | mingw* | pw32*)
 
16309
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16310
    # When not using gcc, we currently assume that we are using
 
16311
    # Microsoft Visual C++.
 
16312
    if test "$GCC" != yes; then
 
16313
      with_gnu_ld=no
 
16314
    fi
 
16315
    ;;
 
16316
  openbsd*)
 
16317
    with_gnu_ld=no
 
16318
    ;;
 
16319
  esac
 
16320
 
 
16321
  ld_shlibs_GCJ=yes
 
16322
  if test "$with_gnu_ld" = yes; then
 
16323
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16324
    wlarc='${wl}'
 
16325
 
 
16326
    # See if GNU ld supports shared libraries.
 
16327
    case $host_os in
 
16328
    aix3* | aix4* | aix5*)
 
16329
      # On AIX/PPC, the GNU linker is very broken
 
16330
      if test "$host_cpu" != ia64; then
 
16331
        ld_shlibs_GCJ=no
 
16332
        cat <<EOF 1>&2
 
16333
 
 
16334
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16335
*** to be unable to reliably create shared libraries on AIX.
 
16336
*** Therefore, libtool is disabling shared libraries support.  If you
 
16337
*** really care for shared libraries, you may want to modify your PATH
 
16338
*** so that a non-GNU linker is found, and then restart.
 
16339
 
 
16340
EOF
 
16341
      fi
 
16342
      ;;
 
16343
 
 
16344
    amigaos*)
 
16345
      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)'
 
16346
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16347
      hardcode_minus_L_GCJ=yes
 
16348
 
 
16349
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16350
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16351
      # to version 4, is to share data among multiple programs linked
 
16352
      # with the same dynamic library.  Since this doesn't match the
 
16353
      # behavior of shared libraries on other platforms, we can't use
 
16354
      # them.
 
16355
      ld_shlibs_GCJ=no
 
16356
      ;;
 
16357
 
 
16358
    beos*)
 
16359
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16360
        allow_undefined_flag_GCJ=unsupported
 
16361
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16362
        # support --undefined.  This deserves some investigation.  FIXME
 
16363
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16364
      else
 
16365
        ld_shlibs_GCJ=no
 
16366
      fi
 
16367
      ;;
 
16368
 
 
16369
    cygwin* | mingw* | pw32*)
 
16370
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16371
      # as there is no search path for DLLs.
 
16372
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16373
      allow_undefined_flag_GCJ=unsupported
 
16374
      always_export_symbols_GCJ=no
 
16375
      enable_shared_with_static_runtimes_GCJ=yes
 
16376
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16377
 
 
16378
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16379
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16380
        # If the export-symbols file already is a .def file (1st line
 
16381
        # is EXPORTS), use it as is; otherwise, prepend...
 
16382
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16383
          cp $export_symbols $output_objdir/$soname.def;
 
16384
        else
 
16385
          echo EXPORTS > $output_objdir/$soname.def;
 
16386
          cat $export_symbols >> $output_objdir/$soname.def;
 
16387
        fi~
 
16388
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16389
      else
 
16390
        ld_shlibs=no
 
16391
      fi
 
16392
      ;;
 
16393
 
 
16394
    netbsd*)
 
16395
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16396
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16397
        wlarc=
 
16398
      else
 
16399
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16400
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16401
      fi
 
16402
      ;;
 
16403
 
 
16404
    solaris* | sysv5*)
 
16405
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16406
        ld_shlibs_GCJ=no
 
16407
        cat <<EOF 1>&2
 
16408
 
 
16409
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16410
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16411
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16412
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16413
*** your PATH or compiler configuration so that the native linker is
 
16414
*** used, and then restart.
 
16415
 
 
16416
EOF
 
16417
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16418
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16419
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16420
      else
 
16421
        ld_shlibs_GCJ=no
 
16422
      fi
 
16423
      ;;
 
16424
 
 
16425
    sunos4*)
 
16426
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16427
      wlarc=
 
16428
      hardcode_direct_GCJ=yes
 
16429
      hardcode_shlibpath_var_GCJ=no
 
16430
      ;;
 
16431
 
 
16432
  linux*)
 
16433
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16434
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16435
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16436
      supports_anon_versioning=no
 
16437
      case `$LD -v 2>/dev/null` in
 
16438
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16439
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16440
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16441
        *\ 2.11.*) ;; # other 2.11 versions
 
16442
        *) supports_anon_versioning=yes ;;
 
16443
      esac
 
16444
      if test $supports_anon_versioning = yes; then
 
16445
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16446
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16447
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16448
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16449
      else
 
16450
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16451
      fi
 
16452
    else
 
16453
      ld_shlibs_GCJ=no
 
16454
    fi
 
16455
    ;;
 
16456
 
 
16457
    *)
 
16458
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16459
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16460
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16461
      else
 
16462
        ld_shlibs_GCJ=no
 
16463
      fi
 
16464
      ;;
 
16465
    esac
 
16466
 
 
16467
    if test "$ld_shlibs_GCJ" = yes; then
 
16468
      runpath_var=LD_RUN_PATH
 
16469
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16470
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16471
      # ancient GNU ld didn't support --whole-archive et. al.
 
16472
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16473
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16474
      else
 
16475
        whole_archive_flag_spec_GCJ=
 
16476
      fi
 
16477
    fi
 
16478
  else
 
16479
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16480
    case $host_os in
 
16481
    aix3*)
 
16482
      allow_undefined_flag_GCJ=unsupported
 
16483
      always_export_symbols_GCJ=yes
 
16484
      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'
 
16485
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16486
      # are no directories specified by -L.
 
16487
      hardcode_minus_L_GCJ=yes
 
16488
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16489
        # Neither direct hardcoding nor static linking is supported with a
 
16490
        # broken collect2.
 
16491
        hardcode_direct_GCJ=unsupported
 
16492
      fi
 
16493
      ;;
 
16494
 
 
16495
    aix4* | aix5*)
 
16496
      if test "$host_cpu" = ia64; then
 
16497
        # On IA64, the linker does run time linking by default, so we don't
 
16498
        # have to do anything special.
 
16499
        aix_use_runtimelinking=no
 
16500
        exp_sym_flag='-Bexport'
 
16501
        no_entry_flag=""
 
16502
      else
 
16503
        # If we're using GNU nm, then we don't want the "-C" option.
 
16504
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16505
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16506
          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'
 
16507
        else
 
16508
          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'
 
16509
        fi
 
16510
        aix_use_runtimelinking=no
 
16511
 
 
16512
        # Test if we are trying to use run time linking or normal
 
16513
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16514
        # need to do runtime linking.
 
16515
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16516
          for ld_flag in $LDFLAGS; do
 
16517
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16518
            aix_use_runtimelinking=yes
 
16519
            break
 
16520
          fi
 
16521
          done
 
16522
        esac
 
16523
 
 
16524
        exp_sym_flag='-bexport'
 
16525
        no_entry_flag='-bnoentry'
 
16526
      fi
 
16527
 
 
16528
      # When large executables or shared objects are built, AIX ld can
 
16529
      # have problems creating the table of contents.  If linking a library
 
16530
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16531
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16532
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16533
 
 
16534
      archive_cmds_GCJ=''
 
16535
      hardcode_direct_GCJ=yes
 
16536
      hardcode_libdir_separator_GCJ=':'
 
16537
      link_all_deplibs_GCJ=yes
 
16538
 
 
16539
      if test "$GCC" = yes; then
 
16540
        case $host_os in aix4.012|aix4.012.*)
 
16541
        # We only want to do this on AIX 4.2 and lower, the check
 
16542
        # below for broken collect2 doesn't work under 4.3+
 
16543
          collect2name=`${CC} -print-prog-name=collect2`
 
16544
          if test -f "$collect2name" && \
 
16545
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16546
          then
 
16547
          # We have reworked collect2
 
16548
          hardcode_direct_GCJ=yes
 
16549
          else
 
16550
          # We have old collect2
 
16551
          hardcode_direct_GCJ=unsupported
 
16552
          # It fails to find uninstalled libraries when the uninstalled
 
16553
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16554
          # to unsupported forces relinking
 
16555
          hardcode_minus_L_GCJ=yes
 
16556
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16557
          hardcode_libdir_separator_GCJ=
 
16558
          fi
 
16559
        esac
 
16560
        shared_flag='-shared'
 
16561
      else
 
16562
        # not using gcc
 
16563
        if test "$host_cpu" = ia64; then
 
16564
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16565
        # chokes on -Wl,-G. The following line is correct:
 
16566
          shared_flag='-G'
 
16567
        else
 
16568
        if test "$aix_use_runtimelinking" = yes; then
 
16569
            shared_flag='${wl}-G'
 
16570
          else
 
16571
            shared_flag='${wl}-bM:SRE'
 
16572
        fi
 
16573
        fi
 
16574
      fi
 
16575
 
 
16576
      # It seems that -bexpall does not export symbols beginning with
 
16577
      # underscore (_), so it is better to generate a list of symbols to export.
 
16578
      always_export_symbols_GCJ=yes
 
16579
      if test "$aix_use_runtimelinking" = yes; then
 
16580
        # Warning - without using the other runtime loading flags (-brtl),
 
16581
        # -berok will link without error, but may produce a broken library.
 
16582
        allow_undefined_flag_GCJ='-berok'
 
16583
       # Determine the default libpath from the value encoded in an empty executable.
 
16584
       cat >conftest.$ac_ext <<_ACEOF
 
16585
/* confdefs.h.  */
 
16586
_ACEOF
 
16587
cat confdefs.h >>conftest.$ac_ext
 
16588
cat >>conftest.$ac_ext <<_ACEOF
 
16589
/* end confdefs.h.  */
 
16590
 
 
16591
int
 
16592
main ()
 
16593
{
 
16594
 
 
16595
  ;
 
16596
  return 0;
 
16597
}
 
16598
_ACEOF
 
16599
rm -f conftest.$ac_objext conftest$ac_exeext
 
16600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16601
  (eval $ac_link) 2>conftest.er1
 
16602
  ac_status=$?
 
16603
  grep -v '^ *+' conftest.er1 >conftest.err
 
16604
  rm -f conftest.er1
 
16605
  cat conftest.err >&5
 
16606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16607
  (exit $ac_status); } &&
 
16608
         { ac_try='test -z "$ac_c_werror_flag"
 
16609
                         || test ! -s conftest.err'
 
16610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16611
  (eval $ac_try) 2>&5
 
16612
  ac_status=$?
 
16613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16614
  (exit $ac_status); }; } &&
 
16615
         { ac_try='test -s conftest$ac_exeext'
 
16616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16617
  (eval $ac_try) 2>&5
 
16618
  ac_status=$?
 
16619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16620
  (exit $ac_status); }; }; then
 
16621
 
 
16622
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16623
}'`
 
16624
# Check for a 64-bit object if we didn't find anything.
 
16625
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; }
 
16626
}'`; fi
 
16627
else
 
16628
  echo "$as_me: failed program was:" >&5
 
16629
sed 's/^/| /' conftest.$ac_ext >&5
 
16630
 
 
16631
fi
 
16632
rm -f conftest.err conftest.$ac_objext \
 
16633
      conftest$ac_exeext conftest.$ac_ext
 
16634
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16635
 
 
16636
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16637
        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"
 
16638
       else
 
16639
        if test "$host_cpu" = ia64; then
 
16640
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16641
          allow_undefined_flag_GCJ="-z nodefs"
 
16642
          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"
 
16643
        else
 
16644
         # Determine the default libpath from the value encoded in an empty executable.
 
16645
         cat >conftest.$ac_ext <<_ACEOF
 
16646
/* confdefs.h.  */
 
16647
_ACEOF
 
16648
cat confdefs.h >>conftest.$ac_ext
 
16649
cat >>conftest.$ac_ext <<_ACEOF
 
16650
/* end confdefs.h.  */
 
16651
 
 
16652
int
 
16653
main ()
 
16654
{
 
16655
 
 
16656
  ;
 
16657
  return 0;
 
16658
}
 
16659
_ACEOF
 
16660
rm -f conftest.$ac_objext conftest$ac_exeext
 
16661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16662
  (eval $ac_link) 2>conftest.er1
 
16663
  ac_status=$?
 
16664
  grep -v '^ *+' conftest.er1 >conftest.err
 
16665
  rm -f conftest.er1
 
16666
  cat conftest.err >&5
 
16667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16668
  (exit $ac_status); } &&
 
16669
         { ac_try='test -z "$ac_c_werror_flag"
 
16670
                         || test ! -s conftest.err'
 
16671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16672
  (eval $ac_try) 2>&5
 
16673
  ac_status=$?
 
16674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16675
  (exit $ac_status); }; } &&
 
16676
         { ac_try='test -s conftest$ac_exeext'
 
16677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16678
  (eval $ac_try) 2>&5
 
16679
  ac_status=$?
 
16680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16681
  (exit $ac_status); }; }; then
 
16682
 
 
16683
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16684
}'`
 
16685
# Check for a 64-bit object if we didn't find anything.
 
16686
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; }
 
16687
}'`; fi
 
16688
else
 
16689
  echo "$as_me: failed program was:" >&5
 
16690
sed 's/^/| /' conftest.$ac_ext >&5
 
16691
 
 
16692
fi
 
16693
rm -f conftest.err conftest.$ac_objext \
 
16694
      conftest$ac_exeext conftest.$ac_ext
 
16695
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16696
 
 
16697
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16698
          # Warning - without using the other run time loading flags,
 
16699
          # -berok will link without error, but may produce a broken library.
 
16700
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16701
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16702
          # -bexpall does not export symbols beginning with underscore (_)
 
16703
          always_export_symbols_GCJ=yes
 
16704
          # Exported symbols can be pulled into shared objects from archives
 
16705
          whole_archive_flag_spec_GCJ=' '
 
16706
          archive_cmds_need_lc_GCJ=yes
 
16707
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16708
          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'
 
16709
        fi
 
16710
      fi
 
16711
      ;;
 
16712
 
 
16713
    amigaos*)
 
16714
      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)'
 
16715
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16716
      hardcode_minus_L_GCJ=yes
 
16717
      # see comment about different semantics on the GNU ld section
 
16718
      ld_shlibs_GCJ=no
 
16719
      ;;
 
16720
 
 
16721
    bsdi[45]*)
 
16722
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16723
      ;;
 
16724
 
 
16725
    cygwin* | mingw* | pw32*)
 
16726
      # When not using gcc, we currently assume that we are using
 
16727
      # Microsoft Visual C++.
 
16728
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16729
      # no search path for DLLs.
 
16730
      hardcode_libdir_flag_spec_GCJ=' '
 
16731
      allow_undefined_flag_GCJ=unsupported
 
16732
      # Tell ltmain to make .lib files, not .a files.
 
16733
      libext=lib
 
16734
      # Tell ltmain to make .dll files, not .so files.
 
16735
      shrext_cmds=".dll"
 
16736
      # FIXME: Setting linknames here is a bad hack.
 
16737
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16738
      # The linker will automatically build a .lib file if we build a DLL.
 
16739
      old_archive_From_new_cmds_GCJ='true'
 
16740
      # FIXME: Should let the user specify the lib program.
 
16741
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16742
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16743
      enable_shared_with_static_runtimes_GCJ=yes
 
16744
      ;;
 
16745
 
 
16746
    darwin* | rhapsody*)
 
16747
      case "$host_os" in
 
16748
        rhapsody* | darwin1.[012])
 
16749
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16750
         ;;
 
16751
       *) # Darwin 1.3 on
 
16752
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16753
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16754
         else
 
16755
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16756
             10.[012])
 
16757
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16758
               ;;
 
16759
             10.*)
 
16760
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16761
               ;;
 
16762
           esac
 
16763
         fi
 
16764
         ;;
 
16765
      esac
 
16766
      archive_cmds_need_lc_GCJ=no
 
16767
      hardcode_direct_GCJ=no
 
16768
      hardcode_automatic_GCJ=yes
 
16769
      hardcode_shlibpath_var_GCJ=unsupported
 
16770
      whole_archive_flag_spec_GCJ=''
 
16771
      link_all_deplibs_GCJ=yes
 
16772
    if test "$GCC" = yes ; then
 
16773
        output_verbose_link_cmd='echo'
 
16774
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16775
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16776
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16777
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16778
      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}'
 
16779
    else
 
16780
      case "$cc_basename" in
 
16781
        xlc*)
 
16782
         output_verbose_link_cmd='echo'
 
16783
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16784
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16785
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16786
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16787
          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}'
 
16788
          ;;
 
16789
       *)
 
16790
         ld_shlibs_GCJ=no
 
16791
          ;;
 
16792
      esac
 
16793
    fi
 
16794
      ;;
 
16795
 
 
16796
    dgux*)
 
16797
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16798
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16799
      hardcode_shlibpath_var_GCJ=no
 
16800
      ;;
 
16801
 
 
16802
    freebsd1*)
 
16803
      ld_shlibs_GCJ=no
 
16804
      ;;
 
16805
 
 
16806
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16807
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16808
    # does not break anything, and helps significantly (at the cost of a little
 
16809
    # extra space).
 
16810
    freebsd2.2*)
 
16811
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16812
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16813
      hardcode_direct_GCJ=yes
 
16814
      hardcode_shlibpath_var_GCJ=no
 
16815
      ;;
 
16816
 
 
16817
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16818
    freebsd2*)
 
16819
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16820
      hardcode_direct_GCJ=yes
 
16821
      hardcode_minus_L_GCJ=yes
 
16822
      hardcode_shlibpath_var_GCJ=no
 
16823
      ;;
 
16824
 
 
16825
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16826
    freebsd* | kfreebsd*-gnu)
 
16827
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16828
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16829
      hardcode_direct_GCJ=yes
 
16830
      hardcode_shlibpath_var_GCJ=no
 
16831
      ;;
 
16832
 
 
16833
    hpux9*)
 
16834
      if test "$GCC" = yes; then
 
16835
        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'
 
16836
      else
 
16837
        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'
 
16838
      fi
 
16839
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16840
      hardcode_libdir_separator_GCJ=:
 
16841
      hardcode_direct_GCJ=yes
 
16842
 
 
16843
      # hardcode_minus_L: Not really in the search PATH,
 
16844
      # but as the default location of the library.
 
16845
      hardcode_minus_L_GCJ=yes
 
16846
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16847
      ;;
 
16848
 
 
16849
    hpux10* | hpux11*)
 
16850
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16851
        case "$host_cpu" in
 
16852
        hppa*64*|ia64*)
 
16853
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16854
          ;;
 
16855
        *)
 
16856
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16857
          ;;
 
16858
        esac
 
16859
      else
 
16860
        case "$host_cpu" in
 
16861
        hppa*64*|ia64*)
 
16862
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16863
          ;;
 
16864
        *)
 
16865
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16866
          ;;
 
16867
        esac
 
16868
      fi
 
16869
      if test "$with_gnu_ld" = no; then
 
16870
        case "$host_cpu" in
 
16871
        hppa*64*)
 
16872
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16873
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16874
          hardcode_libdir_separator_GCJ=:
 
16875
          hardcode_direct_GCJ=no
 
16876
          hardcode_shlibpath_var_GCJ=no
 
16877
          ;;
 
16878
        ia64*)
 
16879
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16880
          hardcode_direct_GCJ=no
 
16881
          hardcode_shlibpath_var_GCJ=no
 
16882
 
 
16883
          # hardcode_minus_L: Not really in the search PATH,
 
16884
          # but as the default location of the library.
 
16885
          hardcode_minus_L_GCJ=yes
 
16886
          ;;
 
16887
        *)
 
16888
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16889
          hardcode_libdir_separator_GCJ=:
 
16890
          hardcode_direct_GCJ=yes
 
16891
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16892
 
 
16893
          # hardcode_minus_L: Not really in the search PATH,
 
16894
          # but as the default location of the library.
 
16895
          hardcode_minus_L_GCJ=yes
 
16896
          ;;
 
16897
        esac
 
16898
      fi
 
16899
      ;;
 
16900
 
 
16901
    irix5* | irix6* | nonstopux*)
 
16902
      if test "$GCC" = yes; then
 
16903
        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'
 
16904
      else
 
16905
        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'
 
16906
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16907
      fi
 
16908
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16909
      hardcode_libdir_separator_GCJ=:
 
16910
      link_all_deplibs_GCJ=yes
 
16911
      ;;
 
16912
 
 
16913
    netbsd*)
 
16914
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16915
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16916
      else
 
16917
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16918
      fi
 
16919
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16920
      hardcode_direct_GCJ=yes
 
16921
      hardcode_shlibpath_var_GCJ=no
 
16922
      ;;
 
16923
 
 
16924
    newsos6)
 
16925
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16926
      hardcode_direct_GCJ=yes
 
16927
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16928
      hardcode_libdir_separator_GCJ=:
 
16929
      hardcode_shlibpath_var_GCJ=no
 
16930
      ;;
 
16931
 
 
16932
    openbsd*)
 
16933
      hardcode_direct_GCJ=yes
 
16934
      hardcode_shlibpath_var_GCJ=no
 
16935
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16936
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16937
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16938
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16939
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16940
      else
 
16941
       case $host_os in
 
16942
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16943
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16944
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16945
           ;;
 
16946
         *)
 
16947
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16948
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16949
           ;;
 
16950
       esac
 
16951
      fi
 
16952
      ;;
 
16953
 
 
16954
    os2*)
 
16955
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16956
      hardcode_minus_L_GCJ=yes
 
16957
      allow_undefined_flag_GCJ=unsupported
 
16958
      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'
 
16959
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16960
      ;;
 
16961
 
 
16962
    osf3*)
 
16963
      if test "$GCC" = yes; then
 
16964
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16965
        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'
 
16966
      else
 
16967
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16968
        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'
 
16969
      fi
 
16970
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16971
      hardcode_libdir_separator_GCJ=:
 
16972
      ;;
 
16973
 
 
16974
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16975
      if test "$GCC" = yes; then
 
16976
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16977
        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'
 
16978
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16979
      else
 
16980
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16981
        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'
 
16982
        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~
 
16983
        $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'
 
16984
 
 
16985
        # Both c and cxx compiler support -rpath directly
 
16986
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16987
      fi
 
16988
      hardcode_libdir_separator_GCJ=:
 
16989
      ;;
 
16990
 
 
16991
    sco3.2v5*)
 
16992
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16993
      hardcode_shlibpath_var_GCJ=no
 
16994
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16995
      runpath_var=LD_RUN_PATH
 
16996
      hardcode_runpath_var=yes
 
16997
      ;;
 
16998
 
 
16999
    solaris*)
 
17000
      no_undefined_flag_GCJ=' -z text'
 
17001
      if test "$GCC" = yes; then
 
17002
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17003
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17004
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17005
      else
 
17006
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17007
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17008
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17009
      fi
 
17010
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17011
      hardcode_shlibpath_var_GCJ=no
 
17012
      case $host_os in
 
17013
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17014
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17015
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17016
      esac
 
17017
      link_all_deplibs_GCJ=yes
 
17018
      ;;
 
17019
 
 
17020
    sunos4*)
 
17021
      if test "x$host_vendor" = xsequent; then
 
17022
        # Use $CC to link under sequent, because it throws in some extra .o
 
17023
        # files that make .init and .fini sections work.
 
17024
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17025
      else
 
17026
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17027
      fi
 
17028
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17029
      hardcode_direct_GCJ=yes
 
17030
      hardcode_minus_L_GCJ=yes
 
17031
      hardcode_shlibpath_var_GCJ=no
 
17032
      ;;
 
17033
 
 
17034
    sysv4)
 
17035
      case $host_vendor in
 
17036
        sni)
 
17037
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17038
          hardcode_direct_GCJ=yes # is this really true???
 
17039
        ;;
 
17040
        siemens)
 
17041
          ## LD is ld it makes a PLAMLIB
 
17042
          ## CC just makes a GrossModule.
 
17043
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17044
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17045
          hardcode_direct_GCJ=no
 
17046
        ;;
 
17047
        motorola)
 
17048
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17049
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17050
        ;;
 
17051
      esac
 
17052
      runpath_var='LD_RUN_PATH'
 
17053
      hardcode_shlibpath_var_GCJ=no
 
17054
      ;;
 
17055
 
 
17056
    sysv4.3*)
 
17057
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17058
      hardcode_shlibpath_var_GCJ=no
 
17059
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17060
      ;;
 
17061
 
 
17062
    sysv4*MP*)
 
17063
      if test -d /usr/nec; then
 
17064
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17065
        hardcode_shlibpath_var_GCJ=no
 
17066
        runpath_var=LD_RUN_PATH
 
17067
        hardcode_runpath_var=yes
 
17068
        ld_shlibs_GCJ=yes
 
17069
      fi
 
17070
      ;;
 
17071
 
 
17072
    sysv4.2uw2*)
 
17073
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17074
      hardcode_direct_GCJ=yes
 
17075
      hardcode_minus_L_GCJ=no
 
17076
      hardcode_shlibpath_var_GCJ=no
 
17077
      hardcode_runpath_var=yes
 
17078
      runpath_var=LD_RUN_PATH
 
17079
      ;;
 
17080
 
 
17081
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17082
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17083
      if test "$GCC" = yes; then
 
17084
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17085
      else
 
17086
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17087
      fi
 
17088
      runpath_var='LD_RUN_PATH'
 
17089
      hardcode_shlibpath_var_GCJ=no
 
17090
      ;;
 
17091
 
 
17092
    sysv5*)
 
17093
      no_undefined_flag_GCJ=' -z text'
 
17094
      # $CC -shared without GNU ld will not create a library from C++
 
17095
      # object files and a static libstdc++, better avoid it by now
 
17096
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17097
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17098
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17099
      hardcode_libdir_flag_spec_GCJ=
 
17100
      hardcode_shlibpath_var_GCJ=no
 
17101
      runpath_var='LD_RUN_PATH'
 
17102
      ;;
 
17103
 
 
17104
    uts4*)
 
17105
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17106
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17107
      hardcode_shlibpath_var_GCJ=no
 
17108
      ;;
 
17109
 
 
17110
    *)
 
17111
      ld_shlibs_GCJ=no
 
17112
      ;;
 
17113
    esac
 
17114
  fi
 
17115
 
 
17116
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17117
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17118
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17119
 
 
17120
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17121
if test "$GCC" = yes; then
 
17122
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17123
fi
 
17124
 
 
17125
#
 
17126
# Do we need to explicitly link libc?
 
17127
#
 
17128
case "x$archive_cmds_need_lc_GCJ" in
 
17129
x|xyes)
 
17130
  # Assume -lc should be added
 
17131
  archive_cmds_need_lc_GCJ=yes
 
17132
 
 
17133
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17134
    case $archive_cmds_GCJ in
 
17135
    *'~'*)
 
17136
      # FIXME: we may have to deal with multi-command sequences.
 
17137
      ;;
 
17138
    '$CC '*)
 
17139
      # Test whether the compiler implicitly links with -lc since on some
 
17140
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17141
      # to ld, don't add -lc before -lgcc.
 
17142
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17143
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17144
      $rm conftest*
 
17145
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17146
 
 
17147
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17148
  (eval $ac_compile) 2>&5
 
17149
  ac_status=$?
 
17150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17151
  (exit $ac_status); } 2>conftest.err; then
 
17152
        soname=conftest
 
17153
        lib=conftest
 
17154
        libobjs=conftest.$ac_objext
 
17155
        deplibs=
 
17156
        wl=$lt_prog_compiler_wl_GCJ
 
17157
        compiler_flags=-v
 
17158
        linker_flags=-v
 
17159
        verstring=
 
17160
        output_objdir=.
 
17161
        libname=conftest
 
17162
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17163
        allow_undefined_flag_GCJ=
 
17164
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17165
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17166
  ac_status=$?
 
17167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17168
  (exit $ac_status); }
 
17169
        then
 
17170
          archive_cmds_need_lc_GCJ=no
 
17171
        else
 
17172
          archive_cmds_need_lc_GCJ=yes
 
17173
        fi
 
17174
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17175
      else
 
17176
        cat conftest.err 1>&5
 
17177
      fi
 
17178
      $rm conftest*
 
17179
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17180
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17181
      ;;
 
17182
    esac
 
17183
  fi
 
17184
  ;;
 
17185
esac
 
17186
 
 
17187
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17188
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17189
library_names_spec=
 
17190
libname_spec='lib$name'
 
17191
soname_spec=
 
17192
shrext_cmds=".so"
 
17193
postinstall_cmds=
 
17194
postuninstall_cmds=
 
17195
finish_cmds=
 
17196
finish_eval=
 
17197
shlibpath_var=
 
17198
shlibpath_overrides_runpath=unknown
 
17199
version_type=none
 
17200
dynamic_linker="$host_os ld.so"
 
17201
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17202
if test "$GCC" = yes; then
 
17203
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17204
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17205
    # if the path contains ";" then we assume it to be the separator
 
17206
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17207
    # assumed that no part of a normal pathname contains ";" but that should
 
17208
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17209
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17210
  else
 
17211
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17212
  fi
 
17213
else
 
17214
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17215
fi
 
17216
need_lib_prefix=unknown
 
17217
hardcode_into_libs=no
 
17218
 
 
17219
# when you set need_version to no, make sure it does not cause -set_version
 
17220
# flags to be left without arguments
 
17221
need_version=unknown
 
17222
 
 
17223
case $host_os in
 
17224
aix3*)
 
17225
  version_type=linux
 
17226
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17227
  shlibpath_var=LIBPATH
 
17228
 
 
17229
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17230
  soname_spec='${libname}${release}${shared_ext}$major'
 
17231
  ;;
 
17232
 
 
17233
aix4* | aix5*)
 
17234
  version_type=linux
 
17235
  need_lib_prefix=no
 
17236
  need_version=no
 
17237
  hardcode_into_libs=yes
 
17238
  if test "$host_cpu" = ia64; then
 
17239
    # AIX 5 supports IA64
 
17240
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17241
    shlibpath_var=LD_LIBRARY_PATH
 
17242
  else
 
17243
    # With GCC up to 2.95.x, collect2 would create an import file
 
17244
    # for dependence libraries.  The import file would start with
 
17245
    # the line `#! .'.  This would cause the generated library to
 
17246
    # depend on `.', always an invalid library.  This was fixed in
 
17247
    # development snapshots of GCC prior to 3.0.
 
17248
    case $host_os in
 
17249
      aix4 | aix4.[01] | aix4.[01].*)
 
17250
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17251
           echo ' yes '
 
17252
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17253
        :
 
17254
      else
 
17255
        can_build_shared=no
 
17256
      fi
 
17257
      ;;
 
17258
    esac
 
17259
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17260
    # soname into executable. Probably we can add versioning support to
 
17261
    # collect2, so additional links can be useful in future.
 
17262
    if test "$aix_use_runtimelinking" = yes; then
 
17263
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17264
      # instead of lib<name>.a to let people know that these are not
 
17265
      # typical AIX shared libraries.
 
17266
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17267
    else
 
17268
      # We preserve .a as extension for shared libraries through AIX4.2
 
17269
      # and later when we are not doing run time linking.
 
17270
      library_names_spec='${libname}${release}.a $libname.a'
 
17271
      soname_spec='${libname}${release}${shared_ext}$major'
 
17272
    fi
 
17273
    shlibpath_var=LIBPATH
 
17274
  fi
 
17275
  ;;
 
17276
 
 
17277
amigaos*)
 
17278
  library_names_spec='$libname.ixlibrary $libname.a'
 
17279
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17280
  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'
 
17281
  ;;
 
17282
 
 
17283
beos*)
 
17284
  library_names_spec='${libname}${shared_ext}'
 
17285
  dynamic_linker="$host_os ld.so"
 
17286
  shlibpath_var=LIBRARY_PATH
 
17287
  ;;
 
17288
 
 
17289
bsdi[45]*)
 
17290
  version_type=linux
 
17291
  need_version=no
 
17292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17293
  soname_spec='${libname}${release}${shared_ext}$major'
 
17294
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17295
  shlibpath_var=LD_LIBRARY_PATH
 
17296
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17297
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17298
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17299
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17300
  # libtool to hard-code these into programs
 
17301
  ;;
 
17302
 
 
17303
cygwin* | mingw* | pw32*)
 
17304
  version_type=windows
 
17305
  shrext_cmds=".dll"
 
17306
  need_version=no
 
17307
  need_lib_prefix=no
 
17308
 
 
17309
  case $GCC,$host_os in
 
17310
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17311
    library_names_spec='$libname.dll.a'
 
17312
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17313
    postinstall_cmds='base_file=`basename \${file}`~
 
17314
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17315
      dldir=$destdir/`dirname \$dlpath`~
 
17316
      test -d \$dldir || mkdir -p \$dldir~
 
17317
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17318
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17319
      dlpath=$dir/\$dldll~
 
17320
       $rm \$dlpath'
 
17321
    shlibpath_overrides_runpath=yes
 
17322
 
 
17323
    case $host_os in
 
17324
    cygwin*)
 
17325
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17326
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17327
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17328
      ;;
 
17329
    mingw*)
 
17330
      # MinGW DLLs use traditional 'lib' prefix
 
17331
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17332
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17333
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17334
        # It is most probably a Windows format PATH printed by
 
17335
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17336
        # path with ; separators, and with drive letters. We can handle the
 
17337
        # drive letters (cygwin fileutils understands them), so leave them,
 
17338
        # especially as we might pass files found there to a mingw objdump,
 
17339
        # which wouldn't understand a cygwinified path. Ahh.
 
17340
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17341
      else
 
17342
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17343
      fi
 
17344
      ;;
 
17345
    pw32*)
 
17346
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17347
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17348
      ;;
 
17349
    esac
 
17350
    ;;
 
17351
 
 
17352
  *)
 
17353
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17354
    ;;
 
17355
  esac
 
17356
  dynamic_linker='Win32 ld.exe'
 
17357
  # FIXME: first we should search . and the directory the executable is in
 
17358
  shlibpath_var=PATH
 
17359
  ;;
 
17360
 
 
17361
darwin* | rhapsody*)
 
17362
  dynamic_linker="$host_os dyld"
 
17363
  version_type=darwin
 
17364
  need_lib_prefix=no
 
17365
  need_version=no
 
17366
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17367
  soname_spec='${libname}${release}${major}$shared_ext'
 
17368
  shlibpath_overrides_runpath=yes
 
17369
  shlibpath_var=DYLD_LIBRARY_PATH
 
17370
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17371
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17372
  if test "$GCC" = yes; then
 
17373
    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"`
 
17374
  else
 
17375
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17376
  fi
 
17377
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17378
  ;;
 
17379
 
 
17380
dgux*)
 
17381
  version_type=linux
 
17382
  need_lib_prefix=no
 
17383
  need_version=no
 
17384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17385
  soname_spec='${libname}${release}${shared_ext}$major'
 
17386
  shlibpath_var=LD_LIBRARY_PATH
 
17387
  ;;
 
17388
 
 
17389
freebsd1*)
 
17390
  dynamic_linker=no
 
17391
  ;;
 
17392
 
 
17393
kfreebsd*-gnu)
 
17394
  version_type=linux
 
17395
  need_lib_prefix=no
 
17396
  need_version=no
 
17397
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17398
  soname_spec='${libname}${release}${shared_ext}$major'
 
17399
  shlibpath_var=LD_LIBRARY_PATH
 
17400
  shlibpath_overrides_runpath=no
 
17401
  hardcode_into_libs=yes
 
17402
  dynamic_linker='GNU ld.so'
 
17403
  ;;
 
17404
 
 
17405
freebsd*)
 
17406
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17407
  version_type=freebsd-$objformat
 
17408
  case $version_type in
 
17409
    freebsd-elf*)
 
17410
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17411
      need_version=no
 
17412
      need_lib_prefix=no
 
17413
      ;;
 
17414
    freebsd-*)
 
17415
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17416
      need_version=yes
 
17417
      ;;
 
17418
  esac
 
17419
  shlibpath_var=LD_LIBRARY_PATH
 
17420
  case $host_os in
 
17421
  freebsd2*)
 
17422
    shlibpath_overrides_runpath=yes
 
17423
    ;;
 
17424
  freebsd3.01* | freebsdelf3.01*)
 
17425
    shlibpath_overrides_runpath=yes
 
17426
    hardcode_into_libs=yes
 
17427
    ;;
 
17428
  *) # from 3.2 on
 
17429
    shlibpath_overrides_runpath=no
 
17430
    hardcode_into_libs=yes
 
17431
    ;;
 
17432
  esac
 
17433
  ;;
 
17434
 
 
17435
gnu*)
 
17436
  version_type=linux
 
17437
  need_lib_prefix=no
 
17438
  need_version=no
 
17439
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17440
  soname_spec='${libname}${release}${shared_ext}$major'
 
17441
  shlibpath_var=LD_LIBRARY_PATH
 
17442
  hardcode_into_libs=yes
 
17443
  ;;
 
17444
 
 
17445
hpux9* | hpux10* | hpux11*)
 
17446
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17447
  # link against other versions.
 
17448
  version_type=sunos
 
17449
  need_lib_prefix=no
 
17450
  need_version=no
 
17451
  case "$host_cpu" in
 
17452
  ia64*)
 
17453
    shrext_cmds='.so'
 
17454
    hardcode_into_libs=yes
 
17455
    dynamic_linker="$host_os dld.so"
 
17456
    shlibpath_var=LD_LIBRARY_PATH
 
17457
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17458
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17459
    soname_spec='${libname}${release}${shared_ext}$major'
 
17460
    if test "X$HPUX_IA64_MODE" = X32; then
 
17461
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17462
    else
 
17463
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17464
    fi
 
17465
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17466
    ;;
 
17467
   hppa*64*)
 
17468
     shrext_cmds='.sl'
 
17469
     hardcode_into_libs=yes
 
17470
     dynamic_linker="$host_os dld.sl"
 
17471
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17472
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17473
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17474
     soname_spec='${libname}${release}${shared_ext}$major'
 
17475
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17476
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17477
     ;;
 
17478
   *)
 
17479
    shrext_cmds='.sl'
 
17480
    dynamic_linker="$host_os dld.sl"
 
17481
    shlibpath_var=SHLIB_PATH
 
17482
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17483
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17484
    soname_spec='${libname}${release}${shared_ext}$major'
 
17485
    ;;
 
17486
  esac
 
17487
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17488
  postinstall_cmds='chmod 555 $lib'
 
17489
  ;;
 
17490
 
 
17491
irix5* | irix6* | nonstopux*)
 
17492
  case $host_os in
 
17493
    nonstopux*) version_type=nonstopux ;;
 
17494
    *)
 
17495
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17496
                version_type=linux
 
17497
        else
 
17498
                version_type=irix
 
17499
        fi ;;
 
17500
  esac
 
17501
  need_lib_prefix=no
 
17502
  need_version=no
 
17503
  soname_spec='${libname}${release}${shared_ext}$major'
 
17504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17505
  case $host_os in
 
17506
  irix5* | nonstopux*)
 
17507
    libsuff= shlibsuff=
 
17508
    ;;
 
17509
  *)
 
17510
    case $LD in # libtool.m4 will add one of these switches to LD
 
17511
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17512
      libsuff= shlibsuff= libmagic=32-bit;;
 
17513
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17514
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17515
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17516
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17517
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17518
    esac
 
17519
    ;;
 
17520
  esac
 
17521
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17522
  shlibpath_overrides_runpath=no
 
17523
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17524
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17525
  hardcode_into_libs=yes
 
17526
  ;;
 
17527
 
 
17528
# No shared lib support for Linux oldld, aout, or coff.
 
17529
linux*oldld* | linux*aout* | linux*coff*)
 
17530
  dynamic_linker=no
 
17531
  ;;
 
17532
 
 
17533
# This must be Linux ELF.
 
17534
linux*)
 
17535
  version_type=linux
 
17536
  need_lib_prefix=no
 
17537
  need_version=no
 
17538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17539
  soname_spec='${libname}${release}${shared_ext}$major'
 
17540
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17541
  shlibpath_var=LD_LIBRARY_PATH
 
17542
  shlibpath_overrides_runpath=no
 
17543
  # This implies no fast_install, which is unacceptable.
 
17544
  # Some rework will be needed to allow for fast_install
 
17545
  # before this can be enabled.
 
17546
  hardcode_into_libs=yes
 
17547
 
 
17548
  # find out which ABI we are using
 
17549
  libsuff=
 
17550
  case "$host_cpu" in
 
17551
  x86_64*|s390x*|powerpc64*)
 
17552
    echo '#line 17552 "configure"' > conftest.$ac_ext
 
17553
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17554
  (eval $ac_compile) 2>&5
 
17555
  ac_status=$?
 
17556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17557
  (exit $ac_status); }; then
 
17558
      case `/usr/bin/file conftest.$ac_objext` in
 
17559
      *64-bit*)
 
17560
        libsuff=64
 
17561
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17562
        ;;
 
17563
      esac
 
17564
    fi
 
17565
    rm -rf conftest*
 
17566
    ;;
 
17567
  esac
 
17568
 
 
17569
  # Append ld.so.conf contents to the search path
 
17570
  if test -f /etc/ld.so.conf; then
 
17571
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17572
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
17573
  fi
 
17574
 
 
17575
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17576
  # powerpc, because MkLinux only supported shared libraries with the
 
17577
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17578
  # most powerpc-linux boxes support dynamic linking these days and
 
17579
  # people can always --disable-shared, the test was removed, and we
 
17580
  # assume the GNU/Linux dynamic linker is in use.
 
17581
  dynamic_linker='GNU/Linux ld.so'
 
17582
  ;;
 
17583
 
 
17584
knetbsd*-gnu)
 
17585
  version_type=linux
 
17586
  need_lib_prefix=no
 
17587
  need_version=no
 
17588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17589
  soname_spec='${libname}${release}${shared_ext}$major'
 
17590
  shlibpath_var=LD_LIBRARY_PATH
 
17591
  shlibpath_overrides_runpath=no
 
17592
  hardcode_into_libs=yes
 
17593
  dynamic_linker='GNU ld.so'
 
17594
  ;;
 
17595
 
 
17596
netbsd*)
 
17597
  version_type=sunos
 
17598
  need_lib_prefix=no
 
17599
  need_version=no
 
17600
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17601
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17602
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17603
    dynamic_linker='NetBSD (a.out) ld.so'
 
17604
  else
 
17605
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17606
    soname_spec='${libname}${release}${shared_ext}$major'
 
17607
    dynamic_linker='NetBSD ld.elf_so'
 
17608
  fi
 
17609
  shlibpath_var=LD_LIBRARY_PATH
 
17610
  shlibpath_overrides_runpath=yes
 
17611
  hardcode_into_libs=yes
 
17612
  ;;
 
17613
 
 
17614
newsos6)
 
17615
  version_type=linux
 
17616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17617
  shlibpath_var=LD_LIBRARY_PATH
 
17618
  shlibpath_overrides_runpath=yes
 
17619
  ;;
 
17620
 
 
17621
nto-qnx*)
 
17622
  version_type=linux
 
17623
  need_lib_prefix=no
 
17624
  need_version=no
 
17625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17626
  soname_spec='${libname}${release}${shared_ext}$major'
 
17627
  shlibpath_var=LD_LIBRARY_PATH
 
17628
  shlibpath_overrides_runpath=yes
 
17629
  ;;
 
17630
 
 
17631
openbsd*)
 
17632
  version_type=sunos
 
17633
  need_lib_prefix=no
 
17634
  need_version=no
 
17635
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17636
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17637
  shlibpath_var=LD_LIBRARY_PATH
 
17638
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17639
    case $host_os in
 
17640
      openbsd2.[89] | openbsd2.[89].*)
 
17641
        shlibpath_overrides_runpath=no
 
17642
        ;;
 
17643
      *)
 
17644
        shlibpath_overrides_runpath=yes
 
17645
        ;;
 
17646
      esac
 
17647
  else
 
17648
    shlibpath_overrides_runpath=yes
 
17649
  fi
 
17650
  ;;
 
17651
 
 
17652
os2*)
 
17653
  libname_spec='$name'
 
17654
  shrext_cmds=".dll"
 
17655
  need_lib_prefix=no
 
17656
  library_names_spec='$libname${shared_ext} $libname.a'
 
17657
  dynamic_linker='OS/2 ld.exe'
 
17658
  shlibpath_var=LIBPATH
 
17659
  ;;
 
17660
 
 
17661
osf3* | osf4* | osf5*)
 
17662
  version_type=osf
 
17663
  need_lib_prefix=no
 
17664
  need_version=no
 
17665
  soname_spec='${libname}${release}${shared_ext}$major'
 
17666
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17667
  shlibpath_var=LD_LIBRARY_PATH
 
17668
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17669
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17670
  ;;
 
17671
 
 
17672
sco3.2v5*)
 
17673
  version_type=osf
 
17674
  soname_spec='${libname}${release}${shared_ext}$major'
 
17675
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17676
  shlibpath_var=LD_LIBRARY_PATH
 
17677
  ;;
 
17678
 
 
17679
solaris*)
 
17680
  version_type=linux
 
17681
  need_lib_prefix=no
 
17682
  need_version=no
 
17683
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17684
  soname_spec='${libname}${release}${shared_ext}$major'
 
17685
  shlibpath_var=LD_LIBRARY_PATH
 
17686
  shlibpath_overrides_runpath=yes
 
17687
  hardcode_into_libs=yes
 
17688
  # ldd complains unless libraries are executable
 
17689
  postinstall_cmds='chmod +x $lib'
 
17690
  ;;
 
17691
 
 
17692
sunos4*)
 
17693
  version_type=sunos
 
17694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17695
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17696
  shlibpath_var=LD_LIBRARY_PATH
 
17697
  shlibpath_overrides_runpath=yes
 
17698
  if test "$with_gnu_ld" = yes; then
 
17699
    need_lib_prefix=no
 
17700
  fi
 
17701
  need_version=yes
 
17702
  ;;
 
17703
 
 
17704
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17705
  version_type=linux
 
17706
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17707
  soname_spec='${libname}${release}${shared_ext}$major'
 
17708
  shlibpath_var=LD_LIBRARY_PATH
 
17709
  case $host_vendor in
 
17710
    sni)
 
17711
      shlibpath_overrides_runpath=no
 
17712
      need_lib_prefix=no
 
17713
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17714
      runpath_var=LD_RUN_PATH
 
17715
      ;;
 
17716
    siemens)
 
17717
      need_lib_prefix=no
 
17718
      ;;
 
17719
    motorola)
 
17720
      need_lib_prefix=no
 
17721
      need_version=no
 
17722
      shlibpath_overrides_runpath=no
 
17723
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17724
      ;;
 
17725
  esac
 
17726
  ;;
 
17727
 
 
17728
sysv4*MP*)
 
17729
  if test -d /usr/nec ;then
 
17730
    version_type=linux
 
17731
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17732
    soname_spec='$libname${shared_ext}.$major'
 
17733
    shlibpath_var=LD_LIBRARY_PATH
 
17734
  fi
 
17735
  ;;
 
17736
 
 
17737
uts4*)
 
17738
  version_type=linux
 
17739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17740
  soname_spec='${libname}${release}${shared_ext}$major'
 
17741
  shlibpath_var=LD_LIBRARY_PATH
 
17742
  ;;
 
17743
 
 
17744
*)
 
17745
  dynamic_linker=no
 
17746
  ;;
 
17747
esac
 
17748
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17749
echo "${ECHO_T}$dynamic_linker" >&6
 
17750
test "$dynamic_linker" = no && can_build_shared=no
 
17751
 
 
17752
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17753
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17754
hardcode_action_GCJ=
 
17755
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17756
   test -n "$runpath_var_GCJ" || \
 
17757
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17758
 
 
17759
  # We can hardcode non-existant directories.
 
17760
  if test "$hardcode_direct_GCJ" != no &&
 
17761
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17762
     # have to relink, otherwise we might link with an installed library
 
17763
     # when we should be linking with a yet-to-be-installed one
 
17764
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17765
     test "$hardcode_minus_L_GCJ" != no; then
 
17766
    # Linking always hardcodes the temporary library directory.
 
17767
    hardcode_action_GCJ=relink
 
17768
  else
 
17769
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17770
    hardcode_action_GCJ=immediate
 
17771
  fi
 
17772
else
 
17773
  # We cannot hardcode anything, or else we can only hardcode existing
 
17774
  # directories.
 
17775
  hardcode_action_GCJ=unsupported
 
17776
fi
 
17777
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17778
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17779
 
 
17780
if test "$hardcode_action_GCJ" = relink; then
 
17781
  # Fast installation is not supported
 
17782
  enable_fast_install=no
 
17783
elif test "$shlibpath_overrides_runpath" = yes ||
 
17784
     test "$enable_shared" = no; then
 
17785
  # Fast installation is not necessary
 
17786
  enable_fast_install=needless
 
17787
fi
 
17788
 
 
17789
striplib=
 
17790
old_striplib=
 
17791
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17792
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17793
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17794
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17795
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17796
  echo "$as_me:$LINENO: result: yes" >&5
 
17797
echo "${ECHO_T}yes" >&6
 
17798
else
 
17799
# FIXME - insert some real tests, host_os isn't really good enough
 
17800
  case $host_os in
 
17801
   darwin*)
 
17802
       if test -n "$STRIP" ; then
 
17803
         striplib="$STRIP -x"
 
17804
         echo "$as_me:$LINENO: result: yes" >&5
 
17805
echo "${ECHO_T}yes" >&6
 
17806
       else
 
17807
  echo "$as_me:$LINENO: result: no" >&5
 
17808
echo "${ECHO_T}no" >&6
 
17809
fi
 
17810
       ;;
 
17811
   *)
 
17812
  echo "$as_me:$LINENO: result: no" >&5
 
17813
echo "${ECHO_T}no" >&6
 
17814
    ;;
 
17815
  esac
 
17816
fi
 
17817
 
 
17818
if test "x$enable_dlopen" != xyes; then
 
17819
  enable_dlopen=unknown
 
17820
  enable_dlopen_self=unknown
 
17821
  enable_dlopen_self_static=unknown
 
17822
else
 
17823
  lt_cv_dlopen=no
 
17824
  lt_cv_dlopen_libs=
 
17825
 
 
17826
  case $host_os in
 
17827
  beos*)
 
17828
    lt_cv_dlopen="load_add_on"
 
17829
    lt_cv_dlopen_libs=
 
17830
    lt_cv_dlopen_self=yes
 
17831
    ;;
 
17832
 
 
17833
  mingw* | pw32*)
 
17834
    lt_cv_dlopen="LoadLibrary"
 
17835
    lt_cv_dlopen_libs=
 
17836
   ;;
 
17837
 
 
17838
  cygwin*)
 
17839
    lt_cv_dlopen="dlopen"
 
17840
    lt_cv_dlopen_libs=
 
17841
   ;;
 
17842
 
 
17843
  darwin*)
 
17844
  # if libdl is installed we need to link against it
 
17845
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17846
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17847
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17848
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17849
else
 
17850
  ac_check_lib_save_LIBS=$LIBS
 
17851
LIBS="-ldl  $LIBS"
 
17852
cat >conftest.$ac_ext <<_ACEOF
 
17853
/* confdefs.h.  */
 
17854
_ACEOF
 
17855
cat confdefs.h >>conftest.$ac_ext
 
17856
cat >>conftest.$ac_ext <<_ACEOF
 
17857
/* end confdefs.h.  */
 
17858
 
 
17859
/* Override any gcc2 internal prototype to avoid an error.  */
 
17860
#ifdef __cplusplus
 
17861
extern "C"
 
17862
#endif
 
17863
/* We use char because int might match the return type of a gcc2
 
17864
   builtin and then its argument prototype would still apply.  */
 
17865
char dlopen ();
 
17866
int
 
17867
main ()
 
17868
{
 
17869
dlopen ();
 
17870
  ;
 
17871
  return 0;
 
17872
}
 
17873
_ACEOF
 
17874
rm -f conftest.$ac_objext conftest$ac_exeext
 
17875
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17876
  (eval $ac_link) 2>conftest.er1
 
17877
  ac_status=$?
 
17878
  grep -v '^ *+' conftest.er1 >conftest.err
 
17879
  rm -f conftest.er1
 
17880
  cat conftest.err >&5
 
17881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17882
  (exit $ac_status); } &&
 
17883
         { ac_try='test -z "$ac_c_werror_flag"
 
17884
                         || test ! -s conftest.err'
 
17885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17886
  (eval $ac_try) 2>&5
 
17887
  ac_status=$?
 
17888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17889
  (exit $ac_status); }; } &&
 
17890
         { ac_try='test -s conftest$ac_exeext'
 
17891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17892
  (eval $ac_try) 2>&5
 
17893
  ac_status=$?
 
17894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17895
  (exit $ac_status); }; }; then
 
17896
  ac_cv_lib_dl_dlopen=yes
 
17897
else
 
17898
  echo "$as_me: failed program was:" >&5
 
17899
sed 's/^/| /' conftest.$ac_ext >&5
 
17900
 
 
17901
ac_cv_lib_dl_dlopen=no
 
17902
fi
 
17903
rm -f conftest.err conftest.$ac_objext \
 
17904
      conftest$ac_exeext conftest.$ac_ext
 
17905
LIBS=$ac_check_lib_save_LIBS
 
17906
fi
 
17907
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17908
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17909
if test $ac_cv_lib_dl_dlopen = yes; then
 
17910
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17911
else
 
17912
 
 
17913
    lt_cv_dlopen="dyld"
 
17914
    lt_cv_dlopen_libs=
 
17915
    lt_cv_dlopen_self=yes
 
17916
 
 
17917
fi
 
17918
 
 
17919
   ;;
 
17920
 
 
17921
  *)
 
17922
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17923
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17924
if test "${ac_cv_func_shl_load+set}" = set; then
 
17925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17926
else
 
17927
  cat >conftest.$ac_ext <<_ACEOF
 
17928
/* confdefs.h.  */
 
17929
_ACEOF
 
17930
cat confdefs.h >>conftest.$ac_ext
 
17931
cat >>conftest.$ac_ext <<_ACEOF
 
17932
/* end confdefs.h.  */
 
17933
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17934
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17935
#define shl_load innocuous_shl_load
 
17936
 
 
17937
/* System header to define __stub macros and hopefully few prototypes,
 
17938
    which can conflict with char shl_load (); below.
 
17939
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17940
    <limits.h> exists even on freestanding compilers.  */
 
17941
 
 
17942
#ifdef __STDC__
 
17943
# include <limits.h>
 
17944
#else
 
17945
# include <assert.h>
 
17946
#endif
 
17947
 
 
17948
#undef shl_load
 
17949
 
 
17950
/* Override any gcc2 internal prototype to avoid an error.  */
 
17951
#ifdef __cplusplus
 
17952
extern "C"
 
17953
{
 
17954
#endif
 
17955
/* We use char because int might match the return type of a gcc2
 
17956
   builtin and then its argument prototype would still apply.  */
 
17957
char shl_load ();
 
17958
/* The GNU C library defines this for functions which it implements
 
17959
    to always fail with ENOSYS.  Some functions are actually named
 
17960
    something starting with __ and the normal name is an alias.  */
 
17961
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17962
choke me
 
17963
#else
 
17964
char (*f) () = shl_load;
 
17965
#endif
 
17966
#ifdef __cplusplus
 
17967
}
 
17968
#endif
 
17969
 
 
17970
int
 
17971
main ()
 
17972
{
 
17973
return f != shl_load;
 
17974
  ;
 
17975
  return 0;
 
17976
}
 
17977
_ACEOF
 
17978
rm -f conftest.$ac_objext conftest$ac_exeext
 
17979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17980
  (eval $ac_link) 2>conftest.er1
 
17981
  ac_status=$?
 
17982
  grep -v '^ *+' conftest.er1 >conftest.err
 
17983
  rm -f conftest.er1
 
17984
  cat conftest.err >&5
 
17985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17986
  (exit $ac_status); } &&
 
17987
         { ac_try='test -z "$ac_c_werror_flag"
 
17988
                         || test ! -s conftest.err'
 
17989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17990
  (eval $ac_try) 2>&5
 
17991
  ac_status=$?
 
17992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17993
  (exit $ac_status); }; } &&
 
17994
         { ac_try='test -s conftest$ac_exeext'
 
17995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17996
  (eval $ac_try) 2>&5
 
17997
  ac_status=$?
 
17998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17999
  (exit $ac_status); }; }; then
 
18000
  ac_cv_func_shl_load=yes
 
18001
else
 
18002
  echo "$as_me: failed program was:" >&5
 
18003
sed 's/^/| /' conftest.$ac_ext >&5
 
18004
 
 
18005
ac_cv_func_shl_load=no
 
18006
fi
 
18007
rm -f conftest.err conftest.$ac_objext \
 
18008
      conftest$ac_exeext conftest.$ac_ext
 
18009
fi
 
18010
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18011
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18012
if test $ac_cv_func_shl_load = yes; then
 
18013
  lt_cv_dlopen="shl_load"
 
18014
else
 
18015
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18016
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18017
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18019
else
 
18020
  ac_check_lib_save_LIBS=$LIBS
 
18021
LIBS="-ldld  $LIBS"
 
18022
cat >conftest.$ac_ext <<_ACEOF
 
18023
/* confdefs.h.  */
 
18024
_ACEOF
 
18025
cat confdefs.h >>conftest.$ac_ext
 
18026
cat >>conftest.$ac_ext <<_ACEOF
 
18027
/* end confdefs.h.  */
 
18028
 
 
18029
/* Override any gcc2 internal prototype to avoid an error.  */
 
18030
#ifdef __cplusplus
 
18031
extern "C"
 
18032
#endif
 
18033
/* We use char because int might match the return type of a gcc2
 
18034
   builtin and then its argument prototype would still apply.  */
 
18035
char shl_load ();
 
18036
int
 
18037
main ()
 
18038
{
 
18039
shl_load ();
 
18040
  ;
 
18041
  return 0;
 
18042
}
 
18043
_ACEOF
 
18044
rm -f conftest.$ac_objext conftest$ac_exeext
 
18045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18046
  (eval $ac_link) 2>conftest.er1
 
18047
  ac_status=$?
 
18048
  grep -v '^ *+' conftest.er1 >conftest.err
 
18049
  rm -f conftest.er1
 
18050
  cat conftest.err >&5
 
18051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18052
  (exit $ac_status); } &&
 
18053
         { ac_try='test -z "$ac_c_werror_flag"
 
18054
                         || test ! -s conftest.err'
 
18055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18056
  (eval $ac_try) 2>&5
 
18057
  ac_status=$?
 
18058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18059
  (exit $ac_status); }; } &&
 
18060
         { ac_try='test -s conftest$ac_exeext'
 
18061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18062
  (eval $ac_try) 2>&5
 
18063
  ac_status=$?
 
18064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18065
  (exit $ac_status); }; }; then
 
18066
  ac_cv_lib_dld_shl_load=yes
 
18067
else
 
18068
  echo "$as_me: failed program was:" >&5
 
18069
sed 's/^/| /' conftest.$ac_ext >&5
 
18070
 
 
18071
ac_cv_lib_dld_shl_load=no
 
18072
fi
 
18073
rm -f conftest.err conftest.$ac_objext \
 
18074
      conftest$ac_exeext conftest.$ac_ext
 
18075
LIBS=$ac_check_lib_save_LIBS
 
18076
fi
 
18077
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18078
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18079
if test $ac_cv_lib_dld_shl_load = yes; then
 
18080
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18081
else
 
18082
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18083
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18084
if test "${ac_cv_func_dlopen+set}" = set; then
 
18085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18086
else
 
18087
  cat >conftest.$ac_ext <<_ACEOF
 
18088
/* confdefs.h.  */
 
18089
_ACEOF
 
18090
cat confdefs.h >>conftest.$ac_ext
 
18091
cat >>conftest.$ac_ext <<_ACEOF
 
18092
/* end confdefs.h.  */
 
18093
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18094
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18095
#define dlopen innocuous_dlopen
 
18096
 
 
18097
/* System header to define __stub macros and hopefully few prototypes,
 
18098
    which can conflict with char dlopen (); below.
 
18099
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18100
    <limits.h> exists even on freestanding compilers.  */
 
18101
 
 
18102
#ifdef __STDC__
 
18103
# include <limits.h>
 
18104
#else
 
18105
# include <assert.h>
 
18106
#endif
 
18107
 
 
18108
#undef dlopen
 
18109
 
 
18110
/* Override any gcc2 internal prototype to avoid an error.  */
 
18111
#ifdef __cplusplus
 
18112
extern "C"
 
18113
{
 
18114
#endif
 
18115
/* We use char because int might match the return type of a gcc2
 
18116
   builtin and then its argument prototype would still apply.  */
 
18117
char dlopen ();
 
18118
/* The GNU C library defines this for functions which it implements
 
18119
    to always fail with ENOSYS.  Some functions are actually named
 
18120
    something starting with __ and the normal name is an alias.  */
 
18121
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18122
choke me
 
18123
#else
 
18124
char (*f) () = dlopen;
 
18125
#endif
 
18126
#ifdef __cplusplus
 
18127
}
 
18128
#endif
 
18129
 
 
18130
int
 
18131
main ()
 
18132
{
 
18133
return f != dlopen;
 
18134
  ;
 
18135
  return 0;
 
18136
}
 
18137
_ACEOF
 
18138
rm -f conftest.$ac_objext conftest$ac_exeext
 
18139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18140
  (eval $ac_link) 2>conftest.er1
 
18141
  ac_status=$?
 
18142
  grep -v '^ *+' conftest.er1 >conftest.err
 
18143
  rm -f conftest.er1
 
18144
  cat conftest.err >&5
 
18145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18146
  (exit $ac_status); } &&
 
18147
         { ac_try='test -z "$ac_c_werror_flag"
 
18148
                         || test ! -s conftest.err'
 
18149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18150
  (eval $ac_try) 2>&5
 
18151
  ac_status=$?
 
18152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18153
  (exit $ac_status); }; } &&
 
18154
         { ac_try='test -s conftest$ac_exeext'
 
18155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18156
  (eval $ac_try) 2>&5
 
18157
  ac_status=$?
 
18158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18159
  (exit $ac_status); }; }; then
 
18160
  ac_cv_func_dlopen=yes
 
18161
else
 
18162
  echo "$as_me: failed program was:" >&5
 
18163
sed 's/^/| /' conftest.$ac_ext >&5
 
18164
 
 
18165
ac_cv_func_dlopen=no
 
18166
fi
 
18167
rm -f conftest.err conftest.$ac_objext \
 
18168
      conftest$ac_exeext conftest.$ac_ext
 
18169
fi
 
18170
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18171
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18172
if test $ac_cv_func_dlopen = yes; then
 
18173
  lt_cv_dlopen="dlopen"
 
18174
else
 
18175
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18176
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18177
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18179
else
 
18180
  ac_check_lib_save_LIBS=$LIBS
 
18181
LIBS="-ldl  $LIBS"
 
18182
cat >conftest.$ac_ext <<_ACEOF
 
18183
/* confdefs.h.  */
 
18184
_ACEOF
 
18185
cat confdefs.h >>conftest.$ac_ext
 
18186
cat >>conftest.$ac_ext <<_ACEOF
 
18187
/* end confdefs.h.  */
 
18188
 
 
18189
/* Override any gcc2 internal prototype to avoid an error.  */
 
18190
#ifdef __cplusplus
 
18191
extern "C"
 
18192
#endif
 
18193
/* We use char because int might match the return type of a gcc2
 
18194
   builtin and then its argument prototype would still apply.  */
 
18195
char dlopen ();
 
18196
int
 
18197
main ()
 
18198
{
 
18199
dlopen ();
 
18200
  ;
 
18201
  return 0;
 
18202
}
 
18203
_ACEOF
 
18204
rm -f conftest.$ac_objext conftest$ac_exeext
 
18205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18206
  (eval $ac_link) 2>conftest.er1
 
18207
  ac_status=$?
 
18208
  grep -v '^ *+' conftest.er1 >conftest.err
 
18209
  rm -f conftest.er1
 
18210
  cat conftest.err >&5
 
18211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18212
  (exit $ac_status); } &&
 
18213
         { ac_try='test -z "$ac_c_werror_flag"
 
18214
                         || test ! -s conftest.err'
 
18215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18216
  (eval $ac_try) 2>&5
 
18217
  ac_status=$?
 
18218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18219
  (exit $ac_status); }; } &&
 
18220
         { ac_try='test -s conftest$ac_exeext'
 
18221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18222
  (eval $ac_try) 2>&5
 
18223
  ac_status=$?
 
18224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18225
  (exit $ac_status); }; }; then
 
18226
  ac_cv_lib_dl_dlopen=yes
 
18227
else
 
18228
  echo "$as_me: failed program was:" >&5
 
18229
sed 's/^/| /' conftest.$ac_ext >&5
 
18230
 
 
18231
ac_cv_lib_dl_dlopen=no
 
18232
fi
 
18233
rm -f conftest.err conftest.$ac_objext \
 
18234
      conftest$ac_exeext conftest.$ac_ext
 
18235
LIBS=$ac_check_lib_save_LIBS
 
18236
fi
 
18237
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18238
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18239
if test $ac_cv_lib_dl_dlopen = yes; then
 
18240
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18241
else
 
18242
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18243
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18244
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18246
else
 
18247
  ac_check_lib_save_LIBS=$LIBS
 
18248
LIBS="-lsvld  $LIBS"
 
18249
cat >conftest.$ac_ext <<_ACEOF
 
18250
/* confdefs.h.  */
 
18251
_ACEOF
 
18252
cat confdefs.h >>conftest.$ac_ext
 
18253
cat >>conftest.$ac_ext <<_ACEOF
 
18254
/* end confdefs.h.  */
 
18255
 
 
18256
/* Override any gcc2 internal prototype to avoid an error.  */
 
18257
#ifdef __cplusplus
 
18258
extern "C"
 
18259
#endif
 
18260
/* We use char because int might match the return type of a gcc2
 
18261
   builtin and then its argument prototype would still apply.  */
 
18262
char dlopen ();
 
18263
int
 
18264
main ()
 
18265
{
 
18266
dlopen ();
 
18267
  ;
 
18268
  return 0;
 
18269
}
 
18270
_ACEOF
 
18271
rm -f conftest.$ac_objext conftest$ac_exeext
 
18272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18273
  (eval $ac_link) 2>conftest.er1
 
18274
  ac_status=$?
 
18275
  grep -v '^ *+' conftest.er1 >conftest.err
 
18276
  rm -f conftest.er1
 
18277
  cat conftest.err >&5
 
18278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18279
  (exit $ac_status); } &&
 
18280
         { ac_try='test -z "$ac_c_werror_flag"
 
18281
                         || test ! -s conftest.err'
 
18282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18283
  (eval $ac_try) 2>&5
 
18284
  ac_status=$?
 
18285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18286
  (exit $ac_status); }; } &&
 
18287
         { ac_try='test -s conftest$ac_exeext'
 
18288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18289
  (eval $ac_try) 2>&5
 
18290
  ac_status=$?
 
18291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18292
  (exit $ac_status); }; }; then
 
18293
  ac_cv_lib_svld_dlopen=yes
 
18294
else
 
18295
  echo "$as_me: failed program was:" >&5
 
18296
sed 's/^/| /' conftest.$ac_ext >&5
 
18297
 
 
18298
ac_cv_lib_svld_dlopen=no
 
18299
fi
 
18300
rm -f conftest.err conftest.$ac_objext \
 
18301
      conftest$ac_exeext conftest.$ac_ext
 
18302
LIBS=$ac_check_lib_save_LIBS
 
18303
fi
 
18304
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18305
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18306
if test $ac_cv_lib_svld_dlopen = yes; then
 
18307
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18308
else
 
18309
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18310
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18311
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18313
else
 
18314
  ac_check_lib_save_LIBS=$LIBS
 
18315
LIBS="-ldld  $LIBS"
 
18316
cat >conftest.$ac_ext <<_ACEOF
 
18317
/* confdefs.h.  */
 
18318
_ACEOF
 
18319
cat confdefs.h >>conftest.$ac_ext
 
18320
cat >>conftest.$ac_ext <<_ACEOF
 
18321
/* end confdefs.h.  */
 
18322
 
 
18323
/* Override any gcc2 internal prototype to avoid an error.  */
 
18324
#ifdef __cplusplus
 
18325
extern "C"
 
18326
#endif
 
18327
/* We use char because int might match the return type of a gcc2
 
18328
   builtin and then its argument prototype would still apply.  */
 
18329
char dld_link ();
 
18330
int
 
18331
main ()
 
18332
{
 
18333
dld_link ();
 
18334
  ;
 
18335
  return 0;
 
18336
}
 
18337
_ACEOF
 
18338
rm -f conftest.$ac_objext conftest$ac_exeext
 
18339
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18340
  (eval $ac_link) 2>conftest.er1
 
18341
  ac_status=$?
 
18342
  grep -v '^ *+' conftest.er1 >conftest.err
 
18343
  rm -f conftest.er1
 
18344
  cat conftest.err >&5
 
18345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18346
  (exit $ac_status); } &&
 
18347
         { ac_try='test -z "$ac_c_werror_flag"
 
18348
                         || test ! -s conftest.err'
 
18349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18350
  (eval $ac_try) 2>&5
 
18351
  ac_status=$?
 
18352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18353
  (exit $ac_status); }; } &&
 
18354
         { ac_try='test -s conftest$ac_exeext'
 
18355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18356
  (eval $ac_try) 2>&5
 
18357
  ac_status=$?
 
18358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18359
  (exit $ac_status); }; }; then
 
18360
  ac_cv_lib_dld_dld_link=yes
 
18361
else
 
18362
  echo "$as_me: failed program was:" >&5
 
18363
sed 's/^/| /' conftest.$ac_ext >&5
 
18364
 
 
18365
ac_cv_lib_dld_dld_link=no
 
18366
fi
 
18367
rm -f conftest.err conftest.$ac_objext \
 
18368
      conftest$ac_exeext conftest.$ac_ext
 
18369
LIBS=$ac_check_lib_save_LIBS
 
18370
fi
 
18371
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18372
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18373
if test $ac_cv_lib_dld_dld_link = yes; then
 
18374
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18375
fi
 
18376
 
 
18377
 
 
18378
fi
 
18379
 
 
18380
 
 
18381
fi
 
18382
 
 
18383
 
 
18384
fi
 
18385
 
 
18386
 
 
18387
fi
 
18388
 
 
18389
 
 
18390
fi
 
18391
 
 
18392
    ;;
 
18393
  esac
 
18394
 
 
18395
  if test "x$lt_cv_dlopen" != xno; then
 
18396
    enable_dlopen=yes
 
18397
  else
 
18398
    enable_dlopen=no
 
18399
  fi
 
18400
 
 
18401
  case $lt_cv_dlopen in
 
18402
  dlopen)
 
18403
    save_CPPFLAGS="$CPPFLAGS"
 
18404
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18405
 
 
18406
    save_LDFLAGS="$LDFLAGS"
 
18407
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18408
 
 
18409
    save_LIBS="$LIBS"
 
18410
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18411
 
 
18412
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18413
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18414
if test "${lt_cv_dlopen_self+set}" = set; then
 
18415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18416
else
 
18417
          if test "$cross_compiling" = yes; then :
 
18418
  lt_cv_dlopen_self=cross
 
18419
else
 
18420
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18421
  lt_status=$lt_dlunknown
 
18422
  cat > conftest.$ac_ext <<EOF
 
18423
#line 18423 "configure"
 
18424
#include "confdefs.h"
 
18425
 
 
18426
#if HAVE_DLFCN_H
 
18427
#include <dlfcn.h>
 
18428
#endif
 
18429
 
 
18430
#include <stdio.h>
 
18431
 
 
18432
#ifdef RTLD_GLOBAL
 
18433
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18434
#else
 
18435
#  ifdef DL_GLOBAL
 
18436
#    define LT_DLGLOBAL         DL_GLOBAL
 
18437
#  else
 
18438
#    define LT_DLGLOBAL         0
 
18439
#  endif
 
18440
#endif
 
18441
 
 
18442
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18443
   find out it does not work in some platform. */
 
18444
#ifndef LT_DLLAZY_OR_NOW
 
18445
#  ifdef RTLD_LAZY
 
18446
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18447
#  else
 
18448
#    ifdef DL_LAZY
 
18449
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18450
#    else
 
18451
#      ifdef RTLD_NOW
 
18452
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18453
#      else
 
18454
#        ifdef DL_NOW
 
18455
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18456
#        else
 
18457
#          define LT_DLLAZY_OR_NOW      0
 
18458
#        endif
 
18459
#      endif
 
18460
#    endif
 
18461
#  endif
 
18462
#endif
 
18463
 
 
18464
#ifdef __cplusplus
 
18465
extern "C" void exit (int);
 
18466
#endif
 
18467
 
 
18468
void fnord() { int i=42;}
 
18469
int main ()
 
18470
{
 
18471
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18472
  int status = $lt_dlunknown;
 
18473
 
 
18474
  if (self)
 
18475
    {
 
18476
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18477
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18478
      /* dlclose (self); */
 
18479
    }
 
18480
 
 
18481
    exit (status);
 
18482
}
 
18483
EOF
 
18484
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18485
  (eval $ac_link) 2>&5
 
18486
  ac_status=$?
 
18487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18488
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18489
    (./conftest; exit; ) 2>/dev/null
 
18490
    lt_status=$?
 
18491
    case x$lt_status in
 
18492
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18493
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18494
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18495
    esac
 
18496
  else :
 
18497
    # compilation failed
 
18498
    lt_cv_dlopen_self=no
 
18499
  fi
 
18500
fi
 
18501
rm -fr conftest*
 
18502
 
 
18503
 
 
18504
fi
 
18505
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18506
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18507
 
 
18508
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18509
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18510
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18511
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18512
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18514
else
 
18515
          if test "$cross_compiling" = yes; then :
 
18516
  lt_cv_dlopen_self_static=cross
 
18517
else
 
18518
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18519
  lt_status=$lt_dlunknown
 
18520
  cat > conftest.$ac_ext <<EOF
 
18521
#line 18521 "configure"
 
18522
#include "confdefs.h"
 
18523
 
 
18524
#if HAVE_DLFCN_H
 
18525
#include <dlfcn.h>
 
18526
#endif
 
18527
 
 
18528
#include <stdio.h>
 
18529
 
 
18530
#ifdef RTLD_GLOBAL
 
18531
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18532
#else
 
18533
#  ifdef DL_GLOBAL
 
18534
#    define LT_DLGLOBAL         DL_GLOBAL
 
18535
#  else
 
18536
#    define LT_DLGLOBAL         0
 
18537
#  endif
 
18538
#endif
 
18539
 
 
18540
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18541
   find out it does not work in some platform. */
 
18542
#ifndef LT_DLLAZY_OR_NOW
 
18543
#  ifdef RTLD_LAZY
 
18544
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18545
#  else
 
18546
#    ifdef DL_LAZY
 
18547
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18548
#    else
 
18549
#      ifdef RTLD_NOW
 
18550
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18551
#      else
 
18552
#        ifdef DL_NOW
 
18553
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18554
#        else
 
18555
#          define LT_DLLAZY_OR_NOW      0
 
18556
#        endif
 
18557
#      endif
 
18558
#    endif
 
18559
#  endif
 
18560
#endif
 
18561
 
 
18562
#ifdef __cplusplus
 
18563
extern "C" void exit (int);
 
18564
#endif
 
18565
 
 
18566
void fnord() { int i=42;}
 
18567
int main ()
 
18568
{
 
18569
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18570
  int status = $lt_dlunknown;
 
18571
 
 
18572
  if (self)
 
18573
    {
 
18574
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18575
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18576
      /* dlclose (self); */
 
18577
    }
 
18578
 
 
18579
    exit (status);
 
18580
}
 
18581
EOF
 
18582
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18583
  (eval $ac_link) 2>&5
 
18584
  ac_status=$?
 
18585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18586
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18587
    (./conftest; exit; ) 2>/dev/null
 
18588
    lt_status=$?
 
18589
    case x$lt_status in
 
18590
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18591
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18592
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18593
    esac
 
18594
  else :
 
18595
    # compilation failed
 
18596
    lt_cv_dlopen_self_static=no
 
18597
  fi
 
18598
fi
 
18599
rm -fr conftest*
 
18600
 
 
18601
 
 
18602
fi
 
18603
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18604
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18605
    fi
 
18606
 
 
18607
    CPPFLAGS="$save_CPPFLAGS"
 
18608
    LDFLAGS="$save_LDFLAGS"
 
18609
    LIBS="$save_LIBS"
 
18610
    ;;
 
18611
  esac
 
18612
 
 
18613
  case $lt_cv_dlopen_self in
 
18614
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18615
  *) enable_dlopen_self=unknown ;;
 
18616
  esac
 
18617
 
 
18618
  case $lt_cv_dlopen_self_static in
 
18619
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18620
  *) enable_dlopen_self_static=unknown ;;
 
18621
  esac
 
18622
fi
 
18623
 
 
18624
 
 
18625
# The else clause should only fire when bootstrapping the
 
18626
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18627
# with your package, and you will get complaints that there are
 
18628
# no rules to generate ltmain.sh.
 
18629
if test -f "$ltmain"; then
 
18630
  # See if we are running on zsh, and set the options which allow our commands through
 
18631
  # without removal of \ escapes.
 
18632
  if test -n "${ZSH_VERSION+set}" ; then
 
18633
    setopt NO_GLOB_SUBST
 
18634
  fi
 
18635
  # Now quote all the things that may contain metacharacters while being
 
18636
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18637
  # variables and quote the copies for generation of the libtool script.
 
18638
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18639
    SED SHELL STRIP \
 
18640
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18641
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18642
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18643
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18644
    lt_cv_sys_global_symbol_to_c_name_address \
 
18645
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18646
    old_postinstall_cmds old_postuninstall_cmds \
 
18647
    compiler_GCJ \
 
18648
    CC_GCJ \
 
18649
    LD_GCJ \
 
18650
    lt_prog_compiler_wl_GCJ \
 
18651
    lt_prog_compiler_pic_GCJ \
 
18652
    lt_prog_compiler_static_GCJ \
 
18653
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18654
    export_dynamic_flag_spec_GCJ \
 
18655
    thread_safe_flag_spec_GCJ \
 
18656
    whole_archive_flag_spec_GCJ \
 
18657
    enable_shared_with_static_runtimes_GCJ \
 
18658
    old_archive_cmds_GCJ \
 
18659
    old_archive_from_new_cmds_GCJ \
 
18660
    predep_objects_GCJ \
 
18661
    postdep_objects_GCJ \
 
18662
    predeps_GCJ \
 
18663
    postdeps_GCJ \
 
18664
    compiler_lib_search_path_GCJ \
 
18665
    archive_cmds_GCJ \
 
18666
    archive_expsym_cmds_GCJ \
 
18667
    postinstall_cmds_GCJ \
 
18668
    postuninstall_cmds_GCJ \
 
18669
    old_archive_from_expsyms_cmds_GCJ \
 
18670
    allow_undefined_flag_GCJ \
 
18671
    no_undefined_flag_GCJ \
 
18672
    export_symbols_cmds_GCJ \
 
18673
    hardcode_libdir_flag_spec_GCJ \
 
18674
    hardcode_libdir_flag_spec_ld_GCJ \
 
18675
    hardcode_libdir_separator_GCJ \
 
18676
    hardcode_automatic_GCJ \
 
18677
    module_cmds_GCJ \
 
18678
    module_expsym_cmds_GCJ \
 
18679
    lt_cv_prog_compiler_c_o_GCJ \
 
18680
    exclude_expsyms_GCJ \
 
18681
    include_expsyms_GCJ; do
 
18682
 
 
18683
    case $var in
 
18684
    old_archive_cmds_GCJ | \
 
18685
    old_archive_from_new_cmds_GCJ | \
 
18686
    archive_cmds_GCJ | \
 
18687
    archive_expsym_cmds_GCJ | \
 
18688
    module_cmds_GCJ | \
 
18689
    module_expsym_cmds_GCJ | \
 
18690
    old_archive_from_expsyms_cmds_GCJ | \
 
18691
    export_symbols_cmds_GCJ | \
 
18692
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18693
    postinstall_cmds | postuninstall_cmds | \
 
18694
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18695
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18696
      # Double-quote double-evaled strings.
 
18697
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18698
      ;;
 
18699
    *)
 
18700
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18701
      ;;
 
18702
    esac
 
18703
  done
 
18704
 
 
18705
  case $lt_echo in
 
18706
  *'\$0 --fallback-echo"')
 
18707
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18708
    ;;
 
18709
  esac
 
18710
 
 
18711
cfgfile="$ofile"
 
18712
 
 
18713
  cat <<__EOF__ >> "$cfgfile"
 
18714
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18715
 
 
18716
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18717
 
 
18718
# Shell to use when invoking shell scripts.
 
18719
SHELL=$lt_SHELL
 
18720
 
 
18721
# Whether or not to build shared libraries.
 
18722
build_libtool_libs=$enable_shared
 
18723
 
 
18724
# Whether or not to build static libraries.
 
18725
build_old_libs=$enable_static
 
18726
 
 
18727
# Whether or not to add -lc for building shared libraries.
 
18728
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18729
 
 
18730
# Whether or not to disallow shared libs when runtime libs are static
 
18731
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18732
 
 
18733
# Whether or not to optimize for fast installation.
 
18734
fast_install=$enable_fast_install
 
18735
 
 
18736
# The host system.
 
18737
host_alias=$host_alias
 
18738
host=$host
 
18739
 
 
18740
# An echo program that does not interpret backslashes.
 
18741
echo=$lt_echo
 
18742
 
 
18743
# The archiver.
 
18744
AR=$lt_AR
 
18745
AR_FLAGS=$lt_AR_FLAGS
 
18746
 
 
18747
# A C compiler.
 
18748
LTCC=$lt_LTCC
 
18749
 
 
18750
# A language-specific compiler.
 
18751
CC=$lt_compiler_GCJ
 
18752
 
 
18753
# Is the compiler the GNU C compiler?
 
18754
with_gcc=$GCC_GCJ
 
18755
 
 
18756
# An ERE matcher.
 
18757
EGREP=$lt_EGREP
 
18758
 
 
18759
# The linker used to build libraries.
 
18760
LD=$lt_LD_GCJ
 
18761
 
 
18762
# Whether we need hard or soft links.
 
18763
LN_S=$lt_LN_S
 
18764
 
 
18765
# A BSD-compatible nm program.
 
18766
NM=$lt_NM
 
18767
 
 
18768
# A symbol stripping program
 
18769
STRIP=$lt_STRIP
 
18770
 
 
18771
# Used to examine libraries when file_magic_cmd begins "file"
 
18772
MAGIC_CMD=$MAGIC_CMD
 
18773
 
 
18774
# Used on cygwin: DLL creation program.
 
18775
DLLTOOL="$DLLTOOL"
 
18776
 
 
18777
# Used on cygwin: object dumper.
 
18778
OBJDUMP="$OBJDUMP"
 
18779
 
 
18780
# Used on cygwin: assembler.
 
18781
AS="$AS"
 
18782
 
 
18783
# The name of the directory that contains temporary libtool files.
 
18784
objdir=$objdir
 
18785
 
 
18786
# How to create reloadable object files.
 
18787
reload_flag=$lt_reload_flag
 
18788
reload_cmds=$lt_reload_cmds
 
18789
 
 
18790
# How to pass a linker flag through the compiler.
 
18791
wl=$lt_lt_prog_compiler_wl_GCJ
 
18792
 
 
18793
# Object file suffix (normally "o").
 
18794
objext="$ac_objext"
 
18795
 
 
18796
# Old archive suffix (normally "a").
 
18797
libext="$libext"
 
18798
 
 
18799
# Shared library suffix (normally ".so").
 
18800
shrext_cmds='$shrext_cmds'
 
18801
 
 
18802
# Executable file suffix (normally "").
 
18803
exeext="$exeext"
 
18804
 
 
18805
# Additional compiler flags for building library objects.
 
18806
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18807
pic_mode=$pic_mode
 
18808
 
 
18809
# What is the maximum length of a command?
 
18810
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18811
 
 
18812
# Does compiler simultaneously support -c and -o options?
 
18813
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18814
 
 
18815
# Must we lock files when doing compilation ?
 
18816
need_locks=$lt_need_locks
 
18817
 
 
18818
# Do we need the lib prefix for modules?
 
18819
need_lib_prefix=$need_lib_prefix
 
18820
 
 
18821
# Do we need a version for libraries?
 
18822
need_version=$need_version
 
18823
 
 
18824
# Whether dlopen is supported.
 
18825
dlopen_support=$enable_dlopen
 
18826
 
 
18827
# Whether dlopen of programs is supported.
 
18828
dlopen_self=$enable_dlopen_self
 
18829
 
 
18830
# Whether dlopen of statically linked programs is supported.
 
18831
dlopen_self_static=$enable_dlopen_self_static
 
18832
 
 
18833
# Compiler flag to prevent dynamic linking.
 
18834
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18835
 
 
18836
# Compiler flag to turn off builtin functions.
 
18837
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18838
 
 
18839
# Compiler flag to allow reflexive dlopens.
 
18840
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18841
 
 
18842
# Compiler flag to generate shared objects directly from archives.
 
18843
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18844
 
 
18845
# Compiler flag to generate thread-safe objects.
 
18846
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18847
 
 
18848
# Library versioning type.
 
18849
version_type=$version_type
 
18850
 
 
18851
# Format of library name prefix.
 
18852
libname_spec=$lt_libname_spec
 
18853
 
 
18854
# List of archive names.  First name is the real one, the rest are links.
 
18855
# The last name is the one that the linker finds with -lNAME.
 
18856
library_names_spec=$lt_library_names_spec
 
18857
 
 
18858
# The coded name of the library, if different from the real name.
 
18859
soname_spec=$lt_soname_spec
 
18860
 
 
18861
# Commands used to build and install an old-style archive.
 
18862
RANLIB=$lt_RANLIB
 
18863
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18864
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18865
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18866
 
 
18867
# Create an old-style archive from a shared archive.
 
18868
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18869
 
 
18870
# Create a temporary old-style archive to link instead of a shared archive.
 
18871
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18872
 
 
18873
# Commands used to build and install a shared archive.
 
18874
archive_cmds=$lt_archive_cmds_GCJ
 
18875
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18876
postinstall_cmds=$lt_postinstall_cmds
 
18877
postuninstall_cmds=$lt_postuninstall_cmds
 
18878
 
 
18879
# Commands used to build a loadable module (assumed same as above if empty)
 
18880
module_cmds=$lt_module_cmds_GCJ
 
18881
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18882
 
 
18883
# Commands to strip libraries.
 
18884
old_striplib=$lt_old_striplib
 
18885
striplib=$lt_striplib
 
18886
 
 
18887
# Dependencies to place before the objects being linked to create a
 
18888
# shared library.
 
18889
predep_objects=$lt_predep_objects_GCJ
 
18890
 
 
18891
# Dependencies to place after the objects being linked to create a
 
18892
# shared library.
 
18893
postdep_objects=$lt_postdep_objects_GCJ
 
18894
 
 
18895
# Dependencies to place before the objects being linked to create a
 
18896
# shared library.
 
18897
predeps=$lt_predeps_GCJ
 
18898
 
 
18899
# Dependencies to place after the objects being linked to create a
 
18900
# shared library.
 
18901
postdeps=$lt_postdeps_GCJ
 
18902
 
 
18903
# The library search path used internally by the compiler when linking
 
18904
# a shared library.
 
18905
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18906
 
 
18907
# Method to check whether dependent libraries are shared objects.
 
18908
deplibs_check_method=$lt_deplibs_check_method
 
18909
 
 
18910
# Command to use when deplibs_check_method == file_magic.
 
18911
file_magic_cmd=$lt_file_magic_cmd
 
18912
 
 
18913
# Flag that allows shared libraries with undefined symbols to be built.
 
18914
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18915
 
 
18916
# Flag that forces no undefined symbols.
 
18917
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18918
 
 
18919
# Commands used to finish a libtool library installation in a directory.
 
18920
finish_cmds=$lt_finish_cmds
 
18921
 
 
18922
# Same as above, but a single script fragment to be evaled but not shown.
 
18923
finish_eval=$lt_finish_eval
 
18924
 
 
18925
# Take the output of nm and produce a listing of raw symbols and C names.
 
18926
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18927
 
 
18928
# Transform the output of nm in a proper C declaration
 
18929
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18930
 
 
18931
# Transform the output of nm in a C name address pair
 
18932
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18933
 
 
18934
# This is the shared library runtime path variable.
 
18935
runpath_var=$runpath_var
 
18936
 
 
18937
# This is the shared library path variable.
 
18938
shlibpath_var=$shlibpath_var
 
18939
 
 
18940
# Is shlibpath searched before the hard-coded library search path?
 
18941
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18942
 
 
18943
# How to hardcode a shared library path into an executable.
 
18944
hardcode_action=$hardcode_action_GCJ
 
18945
 
 
18946
# Whether we should hardcode library paths into libraries.
 
18947
hardcode_into_libs=$hardcode_into_libs
 
18948
 
 
18949
# Flag to hardcode \$libdir into a binary during linking.
 
18950
# This must work even if \$libdir does not exist.
 
18951
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18952
 
 
18953
# If ld is used when linking, flag to hardcode \$libdir into
 
18954
# a binary during linking. This must work even if \$libdir does
 
18955
# not exist.
 
18956
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18957
 
 
18958
# Whether we need a single -rpath flag with a separated argument.
 
18959
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18960
 
 
18961
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18962
# resulting binary.
 
18963
hardcode_direct=$hardcode_direct_GCJ
 
18964
 
 
18965
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18966
# resulting binary.
 
18967
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18968
 
 
18969
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18970
# the resulting binary.
 
18971
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18972
 
 
18973
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18974
# and all subsequent libraries and executables linked against it.
 
18975
hardcode_automatic=$hardcode_automatic_GCJ
 
18976
 
 
18977
# Variables whose values should be saved in libtool wrapper scripts and
 
18978
# restored at relink time.
 
18979
variables_saved_for_relink="$variables_saved_for_relink"
 
18980
 
 
18981
# Whether libtool must link a program against all its dependency libraries.
 
18982
link_all_deplibs=$link_all_deplibs_GCJ
 
18983
 
 
18984
# Compile-time system search path for libraries
 
18985
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18986
 
 
18987
# Run-time system search path for libraries
 
18988
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18989
 
 
18990
# Fix the shell variable \$srcfile for the compiler.
 
18991
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18992
 
 
18993
# Set to yes if exported symbols are required.
 
18994
always_export_symbols=$always_export_symbols_GCJ
 
18995
 
 
18996
# The commands to list exported symbols.
 
18997
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18998
 
 
18999
# The commands to extract the exported symbol list from a shared archive.
 
19000
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19001
 
 
19002
# Symbols that should not be listed in the preloaded symbols.
 
19003
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19004
 
 
19005
# Symbols that must always be exported.
 
19006
include_expsyms=$lt_include_expsyms_GCJ
 
19007
 
 
19008
# ### END LIBTOOL TAG CONFIG: $tagname
 
19009
 
 
19010
__EOF__
 
19011
 
 
19012
 
 
19013
else
 
19014
  # If there is no Makefile yet, we rely on a make rule to execute
 
19015
  # `config.status --recheck' to rerun these tests and create the
 
19016
  # libtool script then.
 
19017
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19018
  if test -f "$ltmain_in"; then
 
19019
    test -f Makefile && make "$ltmain"
 
19020
  fi
 
19021
fi
 
19022
 
 
19023
 
 
19024
ac_ext=c
 
19025
ac_cpp='$CPP $CPPFLAGS'
 
19026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19029
 
 
19030
CC="$lt_save_CC"
 
19031
 
 
19032
        else
 
19033
          tagname=""
 
19034
        fi
 
19035
        ;;
 
19036
 
 
19037
      RC)
 
19038
 
 
19039
 
 
19040
 
 
19041
# Source file extension for RC test sources.
 
19042
ac_ext=rc
 
19043
 
 
19044
# Object file extension for compiled RC test sources.
 
19045
objext=o
 
19046
objext_RC=$objext
 
19047
 
 
19048
# Code to be used in simple compile tests
 
19049
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19050
 
 
19051
# Code to be used in simple link tests
 
19052
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19053
 
 
19054
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19055
 
 
19056
# If no C compiler was specified, use CC.
 
19057
LTCC=${LTCC-"$CC"}
 
19058
 
 
19059
# Allow CC to be a program name with arguments.
 
19060
compiler=$CC
 
19061
 
 
19062
 
 
19063
# Allow CC to be a program name with arguments.
 
19064
lt_save_CC="$CC"
 
19065
CC=${RC-"windres"}
 
19066
compiler=$CC
 
19067
compiler_RC=$CC
 
19068
lt_cv_prog_compiler_c_o_RC=yes
 
19069
 
 
19070
# The else clause should only fire when bootstrapping the
 
19071
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19072
# with your package, and you will get complaints that there are
 
19073
# no rules to generate ltmain.sh.
 
19074
if test -f "$ltmain"; then
 
19075
  # See if we are running on zsh, and set the options which allow our commands through
 
19076
  # without removal of \ escapes.
 
19077
  if test -n "${ZSH_VERSION+set}" ; then
 
19078
    setopt NO_GLOB_SUBST
 
19079
  fi
 
19080
  # Now quote all the things that may contain metacharacters while being
 
19081
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19082
  # variables and quote the copies for generation of the libtool script.
 
19083
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19084
    SED SHELL STRIP \
 
19085
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19086
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19087
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19088
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19089
    lt_cv_sys_global_symbol_to_c_name_address \
 
19090
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19091
    old_postinstall_cmds old_postuninstall_cmds \
 
19092
    compiler_RC \
 
19093
    CC_RC \
 
19094
    LD_RC \
 
19095
    lt_prog_compiler_wl_RC \
 
19096
    lt_prog_compiler_pic_RC \
 
19097
    lt_prog_compiler_static_RC \
 
19098
    lt_prog_compiler_no_builtin_flag_RC \
 
19099
    export_dynamic_flag_spec_RC \
 
19100
    thread_safe_flag_spec_RC \
 
19101
    whole_archive_flag_spec_RC \
 
19102
    enable_shared_with_static_runtimes_RC \
 
19103
    old_archive_cmds_RC \
 
19104
    old_archive_from_new_cmds_RC \
 
19105
    predep_objects_RC \
 
19106
    postdep_objects_RC \
 
19107
    predeps_RC \
 
19108
    postdeps_RC \
 
19109
    compiler_lib_search_path_RC \
 
19110
    archive_cmds_RC \
 
19111
    archive_expsym_cmds_RC \
 
19112
    postinstall_cmds_RC \
 
19113
    postuninstall_cmds_RC \
 
19114
    old_archive_from_expsyms_cmds_RC \
 
19115
    allow_undefined_flag_RC \
 
19116
    no_undefined_flag_RC \
 
19117
    export_symbols_cmds_RC \
 
19118
    hardcode_libdir_flag_spec_RC \
 
19119
    hardcode_libdir_flag_spec_ld_RC \
 
19120
    hardcode_libdir_separator_RC \
 
19121
    hardcode_automatic_RC \
 
19122
    module_cmds_RC \
 
19123
    module_expsym_cmds_RC \
 
19124
    lt_cv_prog_compiler_c_o_RC \
 
19125
    exclude_expsyms_RC \
 
19126
    include_expsyms_RC; do
 
19127
 
 
19128
    case $var in
 
19129
    old_archive_cmds_RC | \
 
19130
    old_archive_from_new_cmds_RC | \
 
19131
    archive_cmds_RC | \
 
19132
    archive_expsym_cmds_RC | \
 
19133
    module_cmds_RC | \
 
19134
    module_expsym_cmds_RC | \
 
19135
    old_archive_from_expsyms_cmds_RC | \
 
19136
    export_symbols_cmds_RC | \
 
19137
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19138
    postinstall_cmds | postuninstall_cmds | \
 
19139
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19140
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19141
      # Double-quote double-evaled strings.
 
19142
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19143
      ;;
 
19144
    *)
 
19145
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19146
      ;;
 
19147
    esac
 
19148
  done
 
19149
 
 
19150
  case $lt_echo in
 
19151
  *'\$0 --fallback-echo"')
 
19152
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19153
    ;;
 
19154
  esac
 
19155
 
 
19156
cfgfile="$ofile"
 
19157
 
 
19158
  cat <<__EOF__ >> "$cfgfile"
 
19159
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19160
 
 
19161
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19162
 
 
19163
# Shell to use when invoking shell scripts.
 
19164
SHELL=$lt_SHELL
 
19165
 
 
19166
# Whether or not to build shared libraries.
 
19167
build_libtool_libs=$enable_shared
 
19168
 
 
19169
# Whether or not to build static libraries.
 
19170
build_old_libs=$enable_static
 
19171
 
 
19172
# Whether or not to add -lc for building shared libraries.
 
19173
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19174
 
 
19175
# Whether or not to disallow shared libs when runtime libs are static
 
19176
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19177
 
 
19178
# Whether or not to optimize for fast installation.
 
19179
fast_install=$enable_fast_install
 
19180
 
 
19181
# The host system.
 
19182
host_alias=$host_alias
 
19183
host=$host
 
19184
 
 
19185
# An echo program that does not interpret backslashes.
 
19186
echo=$lt_echo
 
19187
 
 
19188
# The archiver.
 
19189
AR=$lt_AR
 
19190
AR_FLAGS=$lt_AR_FLAGS
 
19191
 
 
19192
# A C compiler.
 
19193
LTCC=$lt_LTCC
 
19194
 
 
19195
# A language-specific compiler.
 
19196
CC=$lt_compiler_RC
 
19197
 
 
19198
# Is the compiler the GNU C compiler?
 
19199
with_gcc=$GCC_RC
 
19200
 
 
19201
# An ERE matcher.
 
19202
EGREP=$lt_EGREP
 
19203
 
 
19204
# The linker used to build libraries.
 
19205
LD=$lt_LD_RC
 
19206
 
 
19207
# Whether we need hard or soft links.
 
19208
LN_S=$lt_LN_S
 
19209
 
 
19210
# A BSD-compatible nm program.
 
19211
NM=$lt_NM
 
19212
 
 
19213
# A symbol stripping program
 
19214
STRIP=$lt_STRIP
 
19215
 
 
19216
# Used to examine libraries when file_magic_cmd begins "file"
 
19217
MAGIC_CMD=$MAGIC_CMD
 
19218
 
 
19219
# Used on cygwin: DLL creation program.
 
19220
DLLTOOL="$DLLTOOL"
 
19221
 
 
19222
# Used on cygwin: object dumper.
 
19223
OBJDUMP="$OBJDUMP"
 
19224
 
 
19225
# Used on cygwin: assembler.
 
19226
AS="$AS"
 
19227
 
 
19228
# The name of the directory that contains temporary libtool files.
 
19229
objdir=$objdir
 
19230
 
 
19231
# How to create reloadable object files.
 
19232
reload_flag=$lt_reload_flag
 
19233
reload_cmds=$lt_reload_cmds
 
19234
 
 
19235
# How to pass a linker flag through the compiler.
 
19236
wl=$lt_lt_prog_compiler_wl_RC
 
19237
 
 
19238
# Object file suffix (normally "o").
 
19239
objext="$ac_objext"
 
19240
 
 
19241
# Old archive suffix (normally "a").
 
19242
libext="$libext"
 
19243
 
 
19244
# Shared library suffix (normally ".so").
 
19245
shrext_cmds='$shrext_cmds'
 
19246
 
 
19247
# Executable file suffix (normally "").
 
19248
exeext="$exeext"
 
19249
 
 
19250
# Additional compiler flags for building library objects.
 
19251
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19252
pic_mode=$pic_mode
 
19253
 
 
19254
# What is the maximum length of a command?
 
19255
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19256
 
 
19257
# Does compiler simultaneously support -c and -o options?
 
19258
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19259
 
 
19260
# Must we lock files when doing compilation ?
 
19261
need_locks=$lt_need_locks
 
19262
 
 
19263
# Do we need the lib prefix for modules?
 
19264
need_lib_prefix=$need_lib_prefix
 
19265
 
 
19266
# Do we need a version for libraries?
 
19267
need_version=$need_version
 
19268
 
 
19269
# Whether dlopen is supported.
 
19270
dlopen_support=$enable_dlopen
 
19271
 
 
19272
# Whether dlopen of programs is supported.
 
19273
dlopen_self=$enable_dlopen_self
 
19274
 
 
19275
# Whether dlopen of statically linked programs is supported.
 
19276
dlopen_self_static=$enable_dlopen_self_static
 
19277
 
 
19278
# Compiler flag to prevent dynamic linking.
 
19279
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19280
 
 
19281
# Compiler flag to turn off builtin functions.
 
19282
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19283
 
 
19284
# Compiler flag to allow reflexive dlopens.
 
19285
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19286
 
 
19287
# Compiler flag to generate shared objects directly from archives.
 
19288
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19289
 
 
19290
# Compiler flag to generate thread-safe objects.
 
19291
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19292
 
 
19293
# Library versioning type.
 
19294
version_type=$version_type
 
19295
 
 
19296
# Format of library name prefix.
 
19297
libname_spec=$lt_libname_spec
 
19298
 
 
19299
# List of archive names.  First name is the real one, the rest are links.
 
19300
# The last name is the one that the linker finds with -lNAME.
 
19301
library_names_spec=$lt_library_names_spec
 
19302
 
 
19303
# The coded name of the library, if different from the real name.
 
19304
soname_spec=$lt_soname_spec
 
19305
 
 
19306
# Commands used to build and install an old-style archive.
 
19307
RANLIB=$lt_RANLIB
 
19308
old_archive_cmds=$lt_old_archive_cmds_RC
 
19309
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19310
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19311
 
 
19312
# Create an old-style archive from a shared archive.
 
19313
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19314
 
 
19315
# Create a temporary old-style archive to link instead of a shared archive.
 
19316
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19317
 
 
19318
# Commands used to build and install a shared archive.
 
19319
archive_cmds=$lt_archive_cmds_RC
 
19320
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19321
postinstall_cmds=$lt_postinstall_cmds
 
19322
postuninstall_cmds=$lt_postuninstall_cmds
 
19323
 
 
19324
# Commands used to build a loadable module (assumed same as above if empty)
 
19325
module_cmds=$lt_module_cmds_RC
 
19326
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19327
 
 
19328
# Commands to strip libraries.
 
19329
old_striplib=$lt_old_striplib
 
19330
striplib=$lt_striplib
 
19331
 
 
19332
# Dependencies to place before the objects being linked to create a
 
19333
# shared library.
 
19334
predep_objects=$lt_predep_objects_RC
 
19335
 
 
19336
# Dependencies to place after the objects being linked to create a
 
19337
# shared library.
 
19338
postdep_objects=$lt_postdep_objects_RC
 
19339
 
 
19340
# Dependencies to place before the objects being linked to create a
 
19341
# shared library.
 
19342
predeps=$lt_predeps_RC
 
19343
 
 
19344
# Dependencies to place after the objects being linked to create a
 
19345
# shared library.
 
19346
postdeps=$lt_postdeps_RC
 
19347
 
 
19348
# The library search path used internally by the compiler when linking
 
19349
# a shared library.
 
19350
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19351
 
 
19352
# Method to check whether dependent libraries are shared objects.
 
19353
deplibs_check_method=$lt_deplibs_check_method
 
19354
 
 
19355
# Command to use when deplibs_check_method == file_magic.
 
19356
file_magic_cmd=$lt_file_magic_cmd
 
19357
 
 
19358
# Flag that allows shared libraries with undefined symbols to be built.
 
19359
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19360
 
 
19361
# Flag that forces no undefined symbols.
 
19362
no_undefined_flag=$lt_no_undefined_flag_RC
 
19363
 
 
19364
# Commands used to finish a libtool library installation in a directory.
 
19365
finish_cmds=$lt_finish_cmds
 
19366
 
 
19367
# Same as above, but a single script fragment to be evaled but not shown.
 
19368
finish_eval=$lt_finish_eval
 
19369
 
 
19370
# Take the output of nm and produce a listing of raw symbols and C names.
 
19371
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19372
 
 
19373
# Transform the output of nm in a proper C declaration
 
19374
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19375
 
 
19376
# Transform the output of nm in a C name address pair
 
19377
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19378
 
 
19379
# This is the shared library runtime path variable.
 
19380
runpath_var=$runpath_var
 
19381
 
 
19382
# This is the shared library path variable.
 
19383
shlibpath_var=$shlibpath_var
 
19384
 
 
19385
# Is shlibpath searched before the hard-coded library search path?
 
19386
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19387
 
 
19388
# How to hardcode a shared library path into an executable.
 
19389
hardcode_action=$hardcode_action_RC
 
19390
 
 
19391
# Whether we should hardcode library paths into libraries.
 
19392
hardcode_into_libs=$hardcode_into_libs
 
19393
 
 
19394
# Flag to hardcode \$libdir into a binary during linking.
 
19395
# This must work even if \$libdir does not exist.
 
19396
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19397
 
 
19398
# If ld is used when linking, flag to hardcode \$libdir into
 
19399
# a binary during linking. This must work even if \$libdir does
 
19400
# not exist.
 
19401
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19402
 
 
19403
# Whether we need a single -rpath flag with a separated argument.
 
19404
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19405
 
 
19406
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19407
# resulting binary.
 
19408
hardcode_direct=$hardcode_direct_RC
 
19409
 
 
19410
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19411
# resulting binary.
 
19412
hardcode_minus_L=$hardcode_minus_L_RC
 
19413
 
 
19414
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19415
# the resulting binary.
 
19416
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19417
 
 
19418
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19419
# and all subsequent libraries and executables linked against it.
 
19420
hardcode_automatic=$hardcode_automatic_RC
 
19421
 
 
19422
# Variables whose values should be saved in libtool wrapper scripts and
 
19423
# restored at relink time.
 
19424
variables_saved_for_relink="$variables_saved_for_relink"
 
19425
 
 
19426
# Whether libtool must link a program against all its dependency libraries.
 
19427
link_all_deplibs=$link_all_deplibs_RC
 
19428
 
 
19429
# Compile-time system search path for libraries
 
19430
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19431
 
 
19432
# Run-time system search path for libraries
 
19433
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19434
 
 
19435
# Fix the shell variable \$srcfile for the compiler.
 
19436
fix_srcfile_path="$fix_srcfile_path_RC"
 
19437
 
 
19438
# Set to yes if exported symbols are required.
 
19439
always_export_symbols=$always_export_symbols_RC
 
19440
 
 
19441
# The commands to list exported symbols.
 
19442
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19443
 
 
19444
# The commands to extract the exported symbol list from a shared archive.
 
19445
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19446
 
 
19447
# Symbols that should not be listed in the preloaded symbols.
 
19448
exclude_expsyms=$lt_exclude_expsyms_RC
 
19449
 
 
19450
# Symbols that must always be exported.
 
19451
include_expsyms=$lt_include_expsyms_RC
 
19452
 
 
19453
# ### END LIBTOOL TAG CONFIG: $tagname
 
19454
 
 
19455
__EOF__
 
19456
 
 
19457
 
 
19458
else
 
19459
  # If there is no Makefile yet, we rely on a make rule to execute
 
19460
  # `config.status --recheck' to rerun these tests and create the
 
19461
  # libtool script then.
 
19462
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19463
  if test -f "$ltmain_in"; then
 
19464
    test -f Makefile && make "$ltmain"
 
19465
  fi
 
19466
fi
 
19467
 
 
19468
 
 
19469
ac_ext=c
 
19470
ac_cpp='$CPP $CPPFLAGS'
 
19471
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19472
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19473
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19474
 
 
19475
CC="$lt_save_CC"
 
19476
 
 
19477
        ;;
 
19478
 
 
19479
      *)
 
19480
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19481
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19482
   { (exit 1); exit 1; }; }
 
19483
        ;;
 
19484
      esac
 
19485
 
 
19486
      # Append the new tag name to the list of available tags.
 
19487
      if test -n "$tagname" ; then
 
19488
      available_tags="$available_tags $tagname"
 
19489
    fi
 
19490
    fi
 
19491
  done
 
19492
  IFS="$lt_save_ifs"
 
19493
 
 
19494
  # Now substitute the updated list of available tags.
 
19495
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19496
    mv "${ofile}T" "$ofile"
 
19497
    chmod +x "$ofile"
 
19498
  else
 
19499
    rm -f "${ofile}T"
 
19500
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19501
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19502
   { (exit 1); exit 1; }; }
 
19503
  fi
 
19504
fi
 
19505
 
1974
19506
 
1975
19507
 
1976
19508
# This can be used to rebuild libtool when needed
1977
 
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
 
19509
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1978
19510
 
1979
19511
# Always use our own libtool.
1980
19512
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1981
19513
 
1982
 
# Redirect the config.log output again, so that the ltconfig log is not
1983
 
# clobbered by the next message.
1984
 
exec 5>>./config.log
1985
 
 
1986
 
 
1987
 
 
1988
 
        
1989
 
        
1990
 
        
1991
 
        
1992
 
        
1993
 
        
1994
 
        
1995
 
        
1996
 
 
1997
 
        # Check whether --with-gnome-includes or --without-gnome-includes was given.
1998
 
if test "${with_gnome_includes+set}" = set; then
1999
 
  withval="$with_gnome_includes"
2000
 
  
2001
 
        CFLAGS="$CFLAGS -I$withval"
2002
 
        
2003
 
fi
2004
 
 
2005
 
        
2006
 
        # Check whether --with-gnome-libs or --without-gnome-libs was given.
2007
 
if test "${with_gnome_libs+set}" = set; then
2008
 
  withval="$with_gnome_libs"
2009
 
  
2010
 
        LDFLAGS="$LDFLAGS -L$withval"
2011
 
        gnome_prefix=$withval
2012
 
        
2013
 
fi
2014
 
 
2015
 
 
2016
 
        # Check whether --with-gnome or --without-gnome was given.
2017
 
if test "${with_gnome+set}" = set; then
2018
 
  withval="$with_gnome"
2019
 
  if test x$withval = xyes; then
2020
 
                        want_gnome=yes
2021
 
                                                                        :
2022
 
                else
2023
 
                        if test "x$withval" = xno; then
2024
 
                                want_gnome=no
2025
 
                        else
2026
 
                                want_gnome=yes
2027
 
                                LDFLAGS="$LDFLAGS -L$withval/lib"
2028
 
                                CFLAGS="$CFLAGS -I$withval/include"
2029
 
                                gnome_prefix=$withval/lib
2030
 
                        fi
2031
 
                fi
2032
 
else
2033
 
  want_gnome=yes
2034
 
fi
2035
 
 
2036
 
 
2037
 
        if test "x$want_gnome" = xyes; then
2038
 
 
2039
 
            # Extract the first word of "gnome-config", so it can be a program name with args.
2040
 
set dummy gnome-config; ac_word=$2
2041
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2042
 
echo "configure:2043: checking for $ac_word" >&5
2043
 
if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2044
 
  echo $ac_n "(cached) $ac_c" 1>&6
2045
 
else
2046
 
  case "$GNOME_CONFIG" in
2047
 
  /*)
2048
 
  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2049
 
  ;;
2050
 
  ?:/*)                  
2051
 
  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2052
 
  ;;
2053
 
  *)
2054
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2055
 
  ac_dummy="$PATH"
2056
 
  for ac_dir in $ac_dummy; do 
2057
 
    test -z "$ac_dir" && ac_dir=.
2058
 
    if test -f $ac_dir/$ac_word; then
2059
 
      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2060
 
      break
2061
 
    fi
2062
 
  done
2063
 
  IFS="$ac_save_ifs"
2064
 
  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2065
 
  ;;
2066
 
esac
2067
 
fi
2068
 
GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2069
 
if test -n "$GNOME_CONFIG"; then
2070
 
  echo "$ac_t""$GNOME_CONFIG" 1>&6
2071
 
else
2072
 
  echo "$ac_t""no" 1>&6
2073
 
fi
2074
 
 
2075
 
            if test "$GNOME_CONFIG" = "no"; then
2076
 
              no_gnome_config="yes"
2077
 
            else
2078
 
              echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2079
 
echo "configure:2080: checking if $GNOME_CONFIG works" >&5
2080
 
              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2081
 
                echo "$ac_t""yes" 1>&6
2082
 
                
2083
 
        
2084
 
        # Extract the first word of "orbit-config", so it can be a program name with args.
2085
 
set dummy orbit-config; ac_word=$2
2086
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2087
 
echo "configure:2088: checking for $ac_word" >&5
2088
 
if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2089
 
  echo $ac_n "(cached) $ac_c" 1>&6
2090
 
else
2091
 
  case "$ORBIT_CONFIG" in
2092
 
  /*)
2093
 
  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2094
 
  ;;
2095
 
  ?:/*)                  
2096
 
  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2097
 
  ;;
2098
 
  *)
2099
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2100
 
  ac_dummy="$PATH"
2101
 
  for ac_dir in $ac_dummy; do 
2102
 
    test -z "$ac_dir" && ac_dir=.
2103
 
    if test -f $ac_dir/$ac_word; then
2104
 
      ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2105
 
      break
2106
 
    fi
2107
 
  done
2108
 
  IFS="$ac_save_ifs"
2109
 
  test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2110
 
  ;;
2111
 
esac
2112
 
fi
2113
 
ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2114
 
if test -n "$ORBIT_CONFIG"; then
2115
 
  echo "$ac_t""$ORBIT_CONFIG" 1>&6
2116
 
else
2117
 
  echo "$ac_t""no" 1>&6
2118
 
fi
2119
 
 
2120
 
        # Extract the first word of "orbit-idl", so it can be a program name with args.
2121
 
set dummy orbit-idl; ac_word=$2
2122
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123
 
echo "configure:2124: checking for $ac_word" >&5
2124
 
if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2125
 
  echo $ac_n "(cached) $ac_c" 1>&6
2126
 
else
2127
 
  case "$ORBIT_IDL" in
2128
 
  /*)
2129
 
  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2130
 
  ;;
2131
 
  ?:/*)                  
2132
 
  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2133
 
  ;;
2134
 
  *)
2135
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2136
 
  ac_dummy="$PATH"
2137
 
  for ac_dir in $ac_dummy; do 
2138
 
    test -z "$ac_dir" && ac_dir=.
2139
 
    if test -f $ac_dir/$ac_word; then
2140
 
      ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2141
 
      break
2142
 
    fi
2143
 
  done
2144
 
  IFS="$ac_save_ifs"
2145
 
  test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2146
 
  ;;
2147
 
esac
2148
 
fi
2149
 
ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2150
 
if test -n "$ORBIT_IDL"; then
2151
 
  echo "$ac_t""$ORBIT_IDL" 1>&6
2152
 
else
2153
 
  echo "$ac_t""no" 1>&6
2154
 
fi
2155
 
 
2156
 
        echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2157
 
echo "configure:2158: checking for working ORBit environment" >&5
2158
 
if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2159
 
  echo $ac_n "(cached) $ac_c" 1>&6
2160
 
else
2161
 
  
2162
 
                if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2163
 
                        gnome_cv_orbit_found=no
2164
 
                else
2165
 
                        gnome_cv_orbit_found=yes
2166
 
                fi
2167
 
        
2168
 
fi
2169
 
 
2170
 
echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2171
 
        
2172
 
 
2173
 
if test x$gnome_cv_orbit_found = xyes; then
2174
 
  HAVE_ORBIT_TRUE=
2175
 
  HAVE_ORBIT_FALSE='#'
2176
 
else
2177
 
  HAVE_ORBIT_TRUE='#'
2178
 
  HAVE_ORBIT_FALSE=
2179
 
fi
2180
 
        if test x$gnome_cv_orbit_found = xyes; then
2181
 
                
2182
 
                ORBIT_CFLAGS=`orbit-config --cflags client server`
2183
 
                ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2184
 
                
2185
 
                
2186
 
        else
2187
 
                if test xfail = xfailure; then
2188
 
                        { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2189
 
                fi
2190
 
        fi
2191
 
 
2192
 
        echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2193
 
echo "configure:2194: checking for gnorba libraries" >&5
2194
 
if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2195
 
  echo $ac_n "(cached) $ac_c" 1>&6
2196
 
else
2197
 
  
2198
 
                gnome_cv_gnorba_found=no
2199
 
                if test x$gnome_cv_orbit_found = xyes; then
2200
 
                        GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2201
 
                        GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2202
 
                        if test -n "$GNORBA_LIBS"; then
2203
 
                                gnome_cv_gnorba_found=yes
2204
 
                        fi
2205
 
                fi
2206
 
        
2207
 
fi
2208
 
 
2209
 
echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2210
 
        
2211
 
 
2212
 
if test x$gnome_cv_gnorba_found = xyes; then
2213
 
  HAVE_GNORBA_TRUE=
2214
 
  HAVE_GNORBA_FALSE='#'
2215
 
else
2216
 
  HAVE_GNORBA_TRUE='#'
2217
 
  HAVE_GNORBA_FALSE=
2218
 
fi
2219
 
        if test x$gnome_cv_orbit_found = xyes; then
2220
 
                
2221
 
                GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2222
 
                GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2223
 
                
2224
 
                
2225
 
        else
2226
 
                if test xfail = xfailure; then
2227
 
                        { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2228
 
                fi
2229
 
        fi
2230
 
 
2231
 
                GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2232
 
                GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2233
 
                GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2234
 
                GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2235
 
                ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2236
 
                GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2237
 
                GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2238
 
                
2239
 
              else
2240
 
                echo "$ac_t""no" 1>&6
2241
 
                no_gnome_config="yes"
2242
 
              fi
2243
 
            fi
2244
 
 
2245
 
            if test x$exec_prefix = xNONE; then
2246
 
                if test x$prefix = xNONE; then
2247
 
                    gnome_prefix=$ac_default_prefix/lib
2248
 
                else
2249
 
                    gnome_prefix=$prefix/lib
2250
 
                fi
2251
 
            else
2252
 
                gnome_prefix=`eval echo \`echo $libdir\``
2253
 
            fi
2254
 
        
2255
 
            if test "$no_gnome_config" = "yes"; then
2256
 
              echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2257
 
echo "configure:2258: checking for gnomeConf.sh file in $gnome_prefix" >&5
2258
 
              if test -f $gnome_prefix/gnomeConf.sh; then
2259
 
                echo "$ac_t""found" 1>&6
2260
 
                echo "loading gnome configuration from" \
2261
 
                     "$gnome_prefix/gnomeConf.sh"
2262
 
                . $gnome_prefix/gnomeConf.sh
2263
 
                
2264
 
              else
2265
 
                echo "$ac_t""not found" 1>&6
2266
 
                if test xfail = xfail; then
2267
 
                  { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2268
 
                fi
2269
 
              fi
2270
 
            fi
2271
 
        fi
2272
 
 
2273
 
        if test -n ""; then
2274
 
          n=""
2275
 
          for i in $n; do
2276
 
            echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2277
 
echo "configure:2278: checking extra library \"$i\"" >&5
2278
 
            case $i in 
2279
 
              applets)
2280
 
                
2281
 
                GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2282
 
                echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2283
 
              docklets)
2284
 
                
2285
 
                GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2286
 
                echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2287
 
              capplet)
2288
 
                
2289
 
                GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2290
 
                echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2291
 
              *)
2292
 
                echo "$ac_t""unknown library" 1>&6
2293
 
            esac
2294
 
          done
2295
 
        fi
2296
 
 
2297
 
 
2298
 
 
2299
 
 
2300
 
  # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2301
 
if test "${enable_compile_warnings+set}" = set; then
2302
 
  enableval="$enable_compile_warnings"
2303
 
  :
2304
 
else
2305
 
  enable_compile_warnings=minimum
2306
 
fi
2307
 
 
2308
 
 
2309
 
  echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
2310
 
echo "configure:2311: checking what warning flags to pass to the C compiler" >&5
2311
 
  warnCFLAGS=
2312
 
  if test "x$GCC" != xyes; then
2313
 
    enable_compile_warnings=no
2314
 
  fi
2315
 
 
2316
 
  if test "x$enable_compile_warnings" != "xno"; then
2317
 
    if test "x$GCC" = "xyes"; then
2318
 
      case " $CFLAGS " in
2319
 
      *\ \      -Wall\ \        *) ;;
2320
 
      *) warnCFLAGS="-Wall -Wunused" ;;
2321
 
      esac
2322
 
 
2323
 
      ## -W is not all that useful.  And it cannot be controlled
2324
 
      ## with individual -Wno-xxx flags, unlike -Wall
2325
 
      if test "x$enable_compile_warnings" = "xyes"; then
2326
 
        warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
2327
 
      fi
2328
 
    fi
2329
 
  fi
2330
 
  echo "$ac_t""$warnCFLAGS" 1>&6
2331
 
 
2332
 
  # Check whether --enable-iso-c or --disable-iso-c was given.
2333
 
if test "${enable_iso_c+set}" = set; then
2334
 
  enableval="$enable_iso_c"
2335
 
  :
2336
 
else
2337
 
  enable_iso_c=no
2338
 
fi
2339
 
 
2340
 
 
2341
 
  echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
2342
 
echo "configure:2343: checking what language compliance flags to pass to the C compiler" >&5
2343
 
  complCFLAGS=
2344
 
  if test "x$enable_iso_c" != "xno"; then
2345
 
    if test "x$GCC" = "xyes"; then
2346
 
      case " $CFLAGS " in
2347
 
      *\ \      -ansi\ \        *) ;;
2348
 
      *) complCFLAGS="$complCFLAGS -ansi" ;;
2349
 
      esac
2350
 
 
2351
 
      case " $CFLAGS " in
2352
 
      *\ \      -pedantic\ \    *) ;;
2353
 
      *) complCFLAGS="$complCFLAGS -pedantic" ;;
2354
 
      esac
2355
 
    fi
2356
 
  fi
2357
 
  echo "$ac_t""$complCFLAGS" 1>&6
2358
 
  if test "x$cflags_set" != "xyes"; then
2359
 
    CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
2360
 
    cflags_set=yes
2361
 
    
2362
 
  fi
2363
 
 
2364
 
 
2365
 
        PTHREAD_LIB=""
2366
 
        echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2367
 
echo "configure:2368: checking for pthread_create in -lpthread" >&5
2368
 
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2369
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2370
 
  echo $ac_n "(cached) $ac_c" 1>&6
2371
 
else
2372
 
  ac_save_LIBS="$LIBS"
2373
 
LIBS="-lpthread  $LIBS"
2374
 
cat > conftest.$ac_ext <<EOF
2375
 
#line 2376 "configure"
2376
 
#include "confdefs.h"
2377
 
/* Override any gcc2 internal prototype to avoid an error.  */
2378
 
/* We use char because int might match the return type of a gcc2
2379
 
    builtin and then its argument prototype would still apply.  */
2380
 
char pthread_create();
2381
 
 
2382
 
int main() {
2383
 
pthread_create()
2384
 
; return 0; }
2385
 
EOF
2386
 
if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387
 
  rm -rf conftest*
2388
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2389
 
else
2390
 
  echo "configure: failed program was:" >&5
2391
 
  cat conftest.$ac_ext >&5
2392
 
  rm -rf conftest*
2393
 
  eval "ac_cv_lib_$ac_lib_var=no"
2394
 
fi
2395
 
rm -f conftest*
2396
 
LIBS="$ac_save_LIBS"
2397
 
 
2398
 
fi
2399
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2400
 
  echo "$ac_t""yes" 1>&6
2401
 
  PTHREAD_LIB="-lpthread"
2402
 
else
2403
 
  echo "$ac_t""no" 1>&6
2404
 
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
2405
 
echo "configure:2406: checking for pthread_create in -lpthreads" >&5
2406
 
ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
2407
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408
 
  echo $ac_n "(cached) $ac_c" 1>&6
2409
 
else
2410
 
  ac_save_LIBS="$LIBS"
2411
 
LIBS="-lpthreads  $LIBS"
2412
 
cat > conftest.$ac_ext <<EOF
2413
 
#line 2414 "configure"
2414
 
#include "confdefs.h"
2415
 
/* Override any gcc2 internal prototype to avoid an error.  */
2416
 
/* We use char because int might match the return type of a gcc2
2417
 
    builtin and then its argument prototype would still apply.  */
2418
 
char pthread_create();
2419
 
 
2420
 
int main() {
2421
 
pthread_create()
2422
 
; return 0; }
2423
 
EOF
2424
 
if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2425
 
  rm -rf conftest*
2426
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2427
 
else
2428
 
  echo "configure: failed program was:" >&5
2429
 
  cat conftest.$ac_ext >&5
2430
 
  rm -rf conftest*
2431
 
  eval "ac_cv_lib_$ac_lib_var=no"
2432
 
fi
2433
 
rm -f conftest*
2434
 
LIBS="$ac_save_LIBS"
2435
 
 
2436
 
fi
2437
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438
 
  echo "$ac_t""yes" 1>&6
2439
 
  PTHREAD_LIB="-lpthreads"
2440
 
else
2441
 
  echo "$ac_t""no" 1>&6
2442
 
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2443
 
echo "configure:2444: checking for pthread_create in -lc_r" >&5
2444
 
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2445
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446
 
  echo $ac_n "(cached) $ac_c" 1>&6
2447
 
else
2448
 
  ac_save_LIBS="$LIBS"
2449
 
LIBS="-lc_r  $LIBS"
2450
 
cat > conftest.$ac_ext <<EOF
2451
 
#line 2452 "configure"
2452
 
#include "confdefs.h"
2453
 
/* Override any gcc2 internal prototype to avoid an error.  */
2454
 
/* We use char because int might match the return type of a gcc2
2455
 
    builtin and then its argument prototype would still apply.  */
2456
 
char pthread_create();
2457
 
 
2458
 
int main() {
2459
 
pthread_create()
2460
 
; return 0; }
2461
 
EOF
2462
 
if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2463
 
  rm -rf conftest*
2464
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2465
 
else
2466
 
  echo "configure: failed program was:" >&5
2467
 
  cat conftest.$ac_ext >&5
2468
 
  rm -rf conftest*
2469
 
  eval "ac_cv_lib_$ac_lib_var=no"
2470
 
fi
2471
 
rm -f conftest*
2472
 
LIBS="$ac_save_LIBS"
2473
 
 
2474
 
fi
2475
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476
 
  echo "$ac_t""yes" 1>&6
2477
 
  PTHREAD_LIB="-lc_r"
2478
 
else
2479
 
  echo "$ac_t""no" 1>&6
2480
 
echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2481
 
echo "configure:2482: checking for pthread_create" >&5
2482
 
if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2483
 
  echo $ac_n "(cached) $ac_c" 1>&6
2484
 
else
2485
 
  cat > conftest.$ac_ext <<EOF
2486
 
#line 2487 "configure"
2487
 
#include "confdefs.h"
2488
 
/* System header to define __stub macros and hopefully few prototypes,
2489
 
    which can conflict with char pthread_create(); below.  */
2490
 
#include <assert.h>
2491
 
/* Override any gcc2 internal prototype to avoid an error.  */
2492
 
/* We use char because int might match the return type of a gcc2
2493
 
    builtin and then its argument prototype would still apply.  */
2494
 
char pthread_create();
2495
 
 
2496
 
int main() {
2497
 
 
2498
 
/* The GNU C library defines this for functions which it implements
2499
 
    to always fail with ENOSYS.  Some functions are actually named
2500
 
    something starting with __ and the normal name is an alias.  */
2501
 
#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2502
 
choke me
2503
 
#else
2504
 
pthread_create();
 
19514
# Prevent multiple expansion
 
19515
 
 
19516
 
 
19517
 
 
19518
 
 
19519
 
 
19520
 
 
19521
 
 
19522
 
 
19523
 
 
19524
 
 
19525
 
 
19526
 
 
19527
 
 
19528
 
 
19529
 
 
19530
 
 
19531
 
 
19532
 
 
19533
 
 
19534
 
 
19535
 
 
19536
 
 
19537
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
19538
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
19539
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
19540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19541
else
 
19542
  ac_check_lib_save_LIBS=$LIBS
 
19543
LIBS="-lcposix  $LIBS"
 
19544
cat >conftest.$ac_ext <<_ACEOF
 
19545
/* confdefs.h.  */
 
19546
_ACEOF
 
19547
cat confdefs.h >>conftest.$ac_ext
 
19548
cat >>conftest.$ac_ext <<_ACEOF
 
19549
/* end confdefs.h.  */
 
19550
 
 
19551
/* Override any gcc2 internal prototype to avoid an error.  */
 
19552
#ifdef __cplusplus
 
19553
extern "C"
2505
19554
#endif
2506
 
 
2507
 
; return 0; }
2508
 
EOF
2509
 
if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2510
 
  rm -rf conftest*
2511
 
  eval "ac_cv_func_pthread_create=yes"
2512
 
else
2513
 
  echo "configure: failed program was:" >&5
2514
 
  cat conftest.$ac_ext >&5
2515
 
  rm -rf conftest*
2516
 
  eval "ac_cv_func_pthread_create=no"
2517
 
fi
2518
 
rm -f conftest*
2519
 
fi
2520
 
 
2521
 
if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2522
 
  echo "$ac_t""yes" 1>&6
2523
 
  :
2524
 
else
2525
 
  echo "$ac_t""no" 1>&6
2526
 
fi
2527
 
 
2528
 
                    
2529
 
fi
2530
 
 
2531
 
                
2532
 
fi
2533
 
 
2534
 
        
2535
 
fi
2536
 
 
2537
 
        
2538
 
        
2539
 
 
2540
 
 
2541
 
        # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2542
 
if test "${with_gtk_prefix+set}" = set; then
2543
 
  withval="$with_gtk_prefix"
2544
 
  gtk_config_prefix="$withval"
2545
 
else
2546
 
  gtk_config_prefix=""
2547
 
fi
2548
 
 
2549
 
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2550
 
if test "${with_gtk_exec_prefix+set}" = set; then
2551
 
  withval="$with_gtk_exec_prefix"
2552
 
  gtk_config_exec_prefix="$withval"
2553
 
else
2554
 
  gtk_config_exec_prefix=""
2555
 
fi
2556
 
 
2557
 
# Check whether --enable-gtktest or --disable-gtktest was given.
2558
 
if test "${enable_gtktest+set}" = set; then
2559
 
  enableval="$enable_gtktest"
2560
 
  :
2561
 
else
2562
 
  enable_gtktest=yes
2563
 
fi
2564
 
 
2565
 
 
2566
 
  for module in . 
 
19555
/* We use char because int might match the return type of a gcc2
 
19556
   builtin and then its argument prototype would still apply.  */
 
19557
char strerror ();
 
19558
int
 
19559
main ()
 
19560
{
 
19561
strerror ();
 
19562
  ;
 
19563
  return 0;
 
19564
}
 
19565
_ACEOF
 
19566
rm -f conftest.$ac_objext conftest$ac_exeext
 
19567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19568
  (eval $ac_link) 2>conftest.er1
 
19569
  ac_status=$?
 
19570
  grep -v '^ *+' conftest.er1 >conftest.err
 
19571
  rm -f conftest.er1
 
19572
  cat conftest.err >&5
 
19573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19574
  (exit $ac_status); } &&
 
19575
         { ac_try='test -z "$ac_c_werror_flag"
 
19576
                         || test ! -s conftest.err'
 
19577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19578
  (eval $ac_try) 2>&5
 
19579
  ac_status=$?
 
19580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19581
  (exit $ac_status); }; } &&
 
19582
         { ac_try='test -s conftest$ac_exeext'
 
19583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19584
  (eval $ac_try) 2>&5
 
19585
  ac_status=$?
 
19586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19587
  (exit $ac_status); }; }; then
 
19588
  ac_cv_lib_cposix_strerror=yes
 
19589
else
 
19590
  echo "$as_me: failed program was:" >&5
 
19591
sed 's/^/| /' conftest.$ac_ext >&5
 
19592
 
 
19593
ac_cv_lib_cposix_strerror=no
 
19594
fi
 
19595
rm -f conftest.err conftest.$ac_objext \
 
19596
      conftest$ac_exeext conftest.$ac_ext
 
19597
LIBS=$ac_check_lib_save_LIBS
 
19598
fi
 
19599
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
19600
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
19601
if test $ac_cv_lib_cposix_strerror = yes; then
 
19602
  LIBS="$LIBS -lcposix"
 
19603
fi
 
19604
 
 
19605
 
 
19606
 
 
19607
ac_ext=c
 
19608
ac_cpp='$CPP $CPPFLAGS'
 
19609
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19610
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19611
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19612
if test -n "$ac_tool_prefix"; then
 
19613
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
19614
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
19615
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19617
if test "${ac_cv_prog_CC+set}" = set; then
 
19618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19619
else
 
19620
  if test -n "$CC"; then
 
19621
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19622
else
 
19623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19624
for as_dir in $PATH
 
19625
do
 
19626
  IFS=$as_save_IFS
 
19627
  test -z "$as_dir" && as_dir=.
 
19628
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19629
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19630
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
19631
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19632
    break 2
 
19633
  fi
 
19634
done
 
19635
done
 
19636
 
 
19637
fi
 
19638
fi
 
19639
CC=$ac_cv_prog_CC
 
19640
if test -n "$CC"; then
 
19641
  echo "$as_me:$LINENO: result: $CC" >&5
 
19642
echo "${ECHO_T}$CC" >&6
 
19643
else
 
19644
  echo "$as_me:$LINENO: result: no" >&5
 
19645
echo "${ECHO_T}no" >&6
 
19646
fi
 
19647
 
 
19648
fi
 
19649
if test -z "$ac_cv_prog_CC"; then
 
19650
  ac_ct_CC=$CC
 
19651
  # Extract the first word of "gcc", so it can be a program name with args.
 
19652
set dummy gcc; ac_word=$2
 
19653
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19654
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19655
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19657
else
 
19658
  if test -n "$ac_ct_CC"; then
 
19659
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19660
else
 
19661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19662
for as_dir in $PATH
 
19663
do
 
19664
  IFS=$as_save_IFS
 
19665
  test -z "$as_dir" && as_dir=.
 
19666
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19667
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19668
    ac_cv_prog_ac_ct_CC="gcc"
 
19669
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19670
    break 2
 
19671
  fi
 
19672
done
 
19673
done
 
19674
 
 
19675
fi
 
19676
fi
 
19677
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19678
if test -n "$ac_ct_CC"; then
 
19679
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19680
echo "${ECHO_T}$ac_ct_CC" >&6
 
19681
else
 
19682
  echo "$as_me:$LINENO: result: no" >&5
 
19683
echo "${ECHO_T}no" >&6
 
19684
fi
 
19685
 
 
19686
  CC=$ac_ct_CC
 
19687
else
 
19688
  CC="$ac_cv_prog_CC"
 
19689
fi
 
19690
 
 
19691
if test -z "$CC"; then
 
19692
  if test -n "$ac_tool_prefix"; then
 
19693
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
19694
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
19695
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19696
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19697
if test "${ac_cv_prog_CC+set}" = set; then
 
19698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19699
else
 
19700
  if test -n "$CC"; then
 
19701
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19702
else
 
19703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19704
for as_dir in $PATH
 
19705
do
 
19706
  IFS=$as_save_IFS
 
19707
  test -z "$as_dir" && as_dir=.
 
19708
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19709
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19710
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
19711
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19712
    break 2
 
19713
  fi
 
19714
done
 
19715
done
 
19716
 
 
19717
fi
 
19718
fi
 
19719
CC=$ac_cv_prog_CC
 
19720
if test -n "$CC"; then
 
19721
  echo "$as_me:$LINENO: result: $CC" >&5
 
19722
echo "${ECHO_T}$CC" >&6
 
19723
else
 
19724
  echo "$as_me:$LINENO: result: no" >&5
 
19725
echo "${ECHO_T}no" >&6
 
19726
fi
 
19727
 
 
19728
fi
 
19729
if test -z "$ac_cv_prog_CC"; then
 
19730
  ac_ct_CC=$CC
 
19731
  # Extract the first word of "cc", so it can be a program name with args.
 
19732
set dummy cc; ac_word=$2
 
19733
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19735
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19737
else
 
19738
  if test -n "$ac_ct_CC"; then
 
19739
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19740
else
 
19741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19742
for as_dir in $PATH
 
19743
do
 
19744
  IFS=$as_save_IFS
 
19745
  test -z "$as_dir" && as_dir=.
 
19746
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19747
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19748
    ac_cv_prog_ac_ct_CC="cc"
 
19749
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19750
    break 2
 
19751
  fi
 
19752
done
 
19753
done
 
19754
 
 
19755
fi
 
19756
fi
 
19757
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19758
if test -n "$ac_ct_CC"; then
 
19759
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19760
echo "${ECHO_T}$ac_ct_CC" >&6
 
19761
else
 
19762
  echo "$as_me:$LINENO: result: no" >&5
 
19763
echo "${ECHO_T}no" >&6
 
19764
fi
 
19765
 
 
19766
  CC=$ac_ct_CC
 
19767
else
 
19768
  CC="$ac_cv_prog_CC"
 
19769
fi
 
19770
 
 
19771
fi
 
19772
if test -z "$CC"; then
 
19773
  # Extract the first word of "cc", so it can be a program name with args.
 
19774
set dummy cc; ac_word=$2
 
19775
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19776
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19777
if test "${ac_cv_prog_CC+set}" = set; then
 
19778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19779
else
 
19780
  if test -n "$CC"; then
 
19781
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19782
else
 
19783
  ac_prog_rejected=no
 
19784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19785
for as_dir in $PATH
 
19786
do
 
19787
  IFS=$as_save_IFS
 
19788
  test -z "$as_dir" && as_dir=.
 
19789
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19790
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19791
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
19792
       ac_prog_rejected=yes
 
19793
       continue
 
19794
     fi
 
19795
    ac_cv_prog_CC="cc"
 
19796
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19797
    break 2
 
19798
  fi
 
19799
done
 
19800
done
 
19801
 
 
19802
if test $ac_prog_rejected = yes; then
 
19803
  # We found a bogon in the path, so make sure we never use it.
 
19804
  set dummy $ac_cv_prog_CC
 
19805
  shift
 
19806
  if test $# != 0; then
 
19807
    # We chose a different compiler from the bogus one.
 
19808
    # However, it has the same basename, so the bogon will be chosen
 
19809
    # first if we set CC to just the basename; use the full file name.
 
19810
    shift
 
19811
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
19812
  fi
 
19813
fi
 
19814
fi
 
19815
fi
 
19816
CC=$ac_cv_prog_CC
 
19817
if test -n "$CC"; then
 
19818
  echo "$as_me:$LINENO: result: $CC" >&5
 
19819
echo "${ECHO_T}$CC" >&6
 
19820
else
 
19821
  echo "$as_me:$LINENO: result: no" >&5
 
19822
echo "${ECHO_T}no" >&6
 
19823
fi
 
19824
 
 
19825
fi
 
19826
if test -z "$CC"; then
 
19827
  if test -n "$ac_tool_prefix"; then
 
19828
  for ac_prog in cl
2567
19829
  do
2568
 
      case "$module" in
2569
 
         gthread) 
2570
 
             gtk_config_args="$gtk_config_args gthread"
2571
 
         ;;
2572
 
      esac
 
19830
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19831
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19832
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19834
if test "${ac_cv_prog_CC+set}" = set; then
 
19835
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19836
else
 
19837
  if test -n "$CC"; then
 
19838
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19839
else
 
19840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19841
for as_dir in $PATH
 
19842
do
 
19843
  IFS=$as_save_IFS
 
19844
  test -z "$as_dir" && as_dir=.
 
19845
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19846
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19847
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
19848
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19849
    break 2
 
19850
  fi
 
19851
done
 
19852
done
 
19853
 
 
19854
fi
 
19855
fi
 
19856
CC=$ac_cv_prog_CC
 
19857
if test -n "$CC"; then
 
19858
  echo "$as_me:$LINENO: result: $CC" >&5
 
19859
echo "${ECHO_T}$CC" >&6
 
19860
else
 
19861
  echo "$as_me:$LINENO: result: no" >&5
 
19862
echo "${ECHO_T}no" >&6
 
19863
fi
 
19864
 
 
19865
    test -n "$CC" && break
2573
19866
  done
2574
 
 
2575
 
  if test x$gtk_config_exec_prefix != x ; then
2576
 
     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2577
 
     if test x${GTK_CONFIG+set} != xset ; then
2578
 
        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2579
 
     fi
2580
 
  fi
2581
 
  if test x$gtk_config_prefix != x ; then
2582
 
     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2583
 
     if test x${GTK_CONFIG+set} != xset ; then
2584
 
        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2585
 
     fi
2586
 
  fi
2587
 
 
2588
 
  # Extract the first word of "gtk-config", so it can be a program name with args.
2589
 
set dummy gtk-config; ac_word=$2
2590
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2591
 
echo "configure:2592: checking for $ac_word" >&5
2592
 
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2593
 
  echo $ac_n "(cached) $ac_c" 1>&6
2594
 
else
2595
 
  case "$GTK_CONFIG" in
2596
 
  /*)
2597
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2598
 
  ;;
2599
 
  ?:/*)                  
2600
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2601
 
  ;;
 
19867
fi
 
19868
if test -z "$CC"; then
 
19869
  ac_ct_CC=$CC
 
19870
  for ac_prog in cl
 
19871
do
 
19872
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19873
set dummy $ac_prog; ac_word=$2
 
19874
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19876
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19878
else
 
19879
  if test -n "$ac_ct_CC"; then
 
19880
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19881
else
 
19882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19883
for as_dir in $PATH
 
19884
do
 
19885
  IFS=$as_save_IFS
 
19886
  test -z "$as_dir" && as_dir=.
 
19887
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19888
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19889
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
19890
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19891
    break 2
 
19892
  fi
 
19893
done
 
19894
done
 
19895
 
 
19896
fi
 
19897
fi
 
19898
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19899
if test -n "$ac_ct_CC"; then
 
19900
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19901
echo "${ECHO_T}$ac_ct_CC" >&6
 
19902
else
 
19903
  echo "$as_me:$LINENO: result: no" >&5
 
19904
echo "${ECHO_T}no" >&6
 
19905
fi
 
19906
 
 
19907
  test -n "$ac_ct_CC" && break
 
19908
done
 
19909
 
 
19910
  CC=$ac_ct_CC
 
19911
fi
 
19912
 
 
19913
fi
 
19914
 
 
19915
 
 
19916
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19917
See \`config.log' for more details." >&5
 
19918
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19919
See \`config.log' for more details." >&2;}
 
19920
   { (exit 1); exit 1; }; }
 
19921
 
 
19922
# Provide some information about the compiler.
 
19923
echo "$as_me:$LINENO:" \
 
19924
     "checking for C compiler version" >&5
 
19925
ac_compiler=`set X $ac_compile; echo $2`
 
19926
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19927
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19928
  ac_status=$?
 
19929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19930
  (exit $ac_status); }
 
19931
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19932
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19933
  ac_status=$?
 
19934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19935
  (exit $ac_status); }
 
19936
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19937
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
19938
  ac_status=$?
 
19939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19940
  (exit $ac_status); }
 
19941
 
 
19942
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19943
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
19944
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19946
else
 
19947
  cat >conftest.$ac_ext <<_ACEOF
 
19948
/* confdefs.h.  */
 
19949
_ACEOF
 
19950
cat confdefs.h >>conftest.$ac_ext
 
19951
cat >>conftest.$ac_ext <<_ACEOF
 
19952
/* end confdefs.h.  */
 
19953
 
 
19954
int
 
19955
main ()
 
19956
{
 
19957
#ifndef __GNUC__
 
19958
       choke me
 
19959
#endif
 
19960
 
 
19961
  ;
 
19962
  return 0;
 
19963
}
 
19964
_ACEOF
 
19965
rm -f conftest.$ac_objext
 
19966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19967
  (eval $ac_compile) 2>conftest.er1
 
19968
  ac_status=$?
 
19969
  grep -v '^ *+' conftest.er1 >conftest.err
 
19970
  rm -f conftest.er1
 
19971
  cat conftest.err >&5
 
19972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19973
  (exit $ac_status); } &&
 
19974
         { ac_try='test -z "$ac_c_werror_flag"
 
19975
                         || test ! -s conftest.err'
 
19976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19977
  (eval $ac_try) 2>&5
 
19978
  ac_status=$?
 
19979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19980
  (exit $ac_status); }; } &&
 
19981
         { ac_try='test -s conftest.$ac_objext'
 
19982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19983
  (eval $ac_try) 2>&5
 
19984
  ac_status=$?
 
19985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19986
  (exit $ac_status); }; }; then
 
19987
  ac_compiler_gnu=yes
 
19988
else
 
19989
  echo "$as_me: failed program was:" >&5
 
19990
sed 's/^/| /' conftest.$ac_ext >&5
 
19991
 
 
19992
ac_compiler_gnu=no
 
19993
fi
 
19994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19995
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19996
 
 
19997
fi
 
19998
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19999
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
20000
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
20001
ac_test_CFLAGS=${CFLAGS+set}
 
20002
ac_save_CFLAGS=$CFLAGS
 
20003
CFLAGS="-g"
 
20004
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
20005
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
20006
if test "${ac_cv_prog_cc_g+set}" = set; then
 
20007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20008
else
 
20009
  cat >conftest.$ac_ext <<_ACEOF
 
20010
/* confdefs.h.  */
 
20011
_ACEOF
 
20012
cat confdefs.h >>conftest.$ac_ext
 
20013
cat >>conftest.$ac_ext <<_ACEOF
 
20014
/* end confdefs.h.  */
 
20015
 
 
20016
int
 
20017
main ()
 
20018
{
 
20019
 
 
20020
  ;
 
20021
  return 0;
 
20022
}
 
20023
_ACEOF
 
20024
rm -f conftest.$ac_objext
 
20025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20026
  (eval $ac_compile) 2>conftest.er1
 
20027
  ac_status=$?
 
20028
  grep -v '^ *+' conftest.er1 >conftest.err
 
20029
  rm -f conftest.er1
 
20030
  cat conftest.err >&5
 
20031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20032
  (exit $ac_status); } &&
 
20033
         { ac_try='test -z "$ac_c_werror_flag"
 
20034
                         || test ! -s conftest.err'
 
20035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20036
  (eval $ac_try) 2>&5
 
20037
  ac_status=$?
 
20038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20039
  (exit $ac_status); }; } &&
 
20040
         { ac_try='test -s conftest.$ac_objext'
 
20041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20042
  (eval $ac_try) 2>&5
 
20043
  ac_status=$?
 
20044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20045
  (exit $ac_status); }; }; then
 
20046
  ac_cv_prog_cc_g=yes
 
20047
else
 
20048
  echo "$as_me: failed program was:" >&5
 
20049
sed 's/^/| /' conftest.$ac_ext >&5
 
20050
 
 
20051
ac_cv_prog_cc_g=no
 
20052
fi
 
20053
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20054
fi
 
20055
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
20056
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
20057
if test "$ac_test_CFLAGS" = set; then
 
20058
  CFLAGS=$ac_save_CFLAGS
 
20059
elif test $ac_cv_prog_cc_g = yes; then
 
20060
  if test "$GCC" = yes; then
 
20061
    CFLAGS="-g -O2"
 
20062
  else
 
20063
    CFLAGS="-g"
 
20064
  fi
 
20065
else
 
20066
  if test "$GCC" = yes; then
 
20067
    CFLAGS="-O2"
 
20068
  else
 
20069
    CFLAGS=
 
20070
  fi
 
20071
fi
 
20072
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
20073
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
20074
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
20075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20076
else
 
20077
  ac_cv_prog_cc_stdc=no
 
20078
ac_save_CC=$CC
 
20079
cat >conftest.$ac_ext <<_ACEOF
 
20080
/* confdefs.h.  */
 
20081
_ACEOF
 
20082
cat confdefs.h >>conftest.$ac_ext
 
20083
cat >>conftest.$ac_ext <<_ACEOF
 
20084
/* end confdefs.h.  */
 
20085
#include <stdarg.h>
 
20086
#include <stdio.h>
 
20087
#include <sys/types.h>
 
20088
#include <sys/stat.h>
 
20089
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
20090
struct buf { int x; };
 
20091
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
20092
static char *e (p, i)
 
20093
     char **p;
 
20094
     int i;
 
20095
{
 
20096
  return p[i];
 
20097
}
 
20098
static char *f (char * (*g) (char **, int), char **p, ...)
 
20099
{
 
20100
  char *s;
 
20101
  va_list v;
 
20102
  va_start (v,p);
 
20103
  s = g (p, va_arg (v,int));
 
20104
  va_end (v);
 
20105
  return s;
 
20106
}
 
20107
 
 
20108
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
20109
   function prototypes and stuff, but not '\xHH' hex character constants.
 
20110
   These don't provoke an error unfortunately, instead are silently treated
 
20111
   as 'x'.  The following induces an error, until -std1 is added to get
 
20112
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
20113
   array size at least.  It's necessary to write '\x00'==0 to get something
 
20114
   that's true only with -std1.  */
 
20115
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
20116
 
 
20117
int test (int i, double x);
 
20118
struct s1 {int (*f) (int a);};
 
20119
struct s2 {int (*f) (double a);};
 
20120
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
20121
int argc;
 
20122
char **argv;
 
20123
int
 
20124
main ()
 
20125
{
 
20126
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
20127
  ;
 
20128
  return 0;
 
20129
}
 
20130
_ACEOF
 
20131
# Don't try gcc -ansi; that turns off useful extensions and
 
20132
# breaks some systems' header files.
 
20133
# AIX                   -qlanglvl=ansi
 
20134
# Ultrix and OSF/1      -std1
 
20135
# HP-UX 10.20 and later -Ae
 
20136
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
20137
# SVR4                  -Xc -D__EXTENSIONS__
 
20138
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
20139
do
 
20140
  CC="$ac_save_CC $ac_arg"
 
20141
  rm -f conftest.$ac_objext
 
20142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20143
  (eval $ac_compile) 2>conftest.er1
 
20144
  ac_status=$?
 
20145
  grep -v '^ *+' conftest.er1 >conftest.err
 
20146
  rm -f conftest.er1
 
20147
  cat conftest.err >&5
 
20148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20149
  (exit $ac_status); } &&
 
20150
         { ac_try='test -z "$ac_c_werror_flag"
 
20151
                         || test ! -s conftest.err'
 
20152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20153
  (eval $ac_try) 2>&5
 
20154
  ac_status=$?
 
20155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20156
  (exit $ac_status); }; } &&
 
20157
         { ac_try='test -s conftest.$ac_objext'
 
20158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20159
  (eval $ac_try) 2>&5
 
20160
  ac_status=$?
 
20161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20162
  (exit $ac_status); }; }; then
 
20163
  ac_cv_prog_cc_stdc=$ac_arg
 
20164
break
 
20165
else
 
20166
  echo "$as_me: failed program was:" >&5
 
20167
sed 's/^/| /' conftest.$ac_ext >&5
 
20168
 
 
20169
fi
 
20170
rm -f conftest.err conftest.$ac_objext
 
20171
done
 
20172
rm -f conftest.$ac_ext conftest.$ac_objext
 
20173
CC=$ac_save_CC
 
20174
 
 
20175
fi
 
20176
 
 
20177
case "x$ac_cv_prog_cc_stdc" in
 
20178
  x|xno)
 
20179
    echo "$as_me:$LINENO: result: none needed" >&5
 
20180
echo "${ECHO_T}none needed" >&6 ;;
2602
20181
  *)
2603
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2604
 
  ac_dummy="$PATH"
2605
 
  for ac_dir in $ac_dummy; do 
2606
 
    test -z "$ac_dir" && ac_dir=.
2607
 
    if test -f $ac_dir/$ac_word; then
2608
 
      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2609
 
      break
2610
 
    fi
2611
 
  done
2612
 
  IFS="$ac_save_ifs"
2613
 
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2614
 
  ;;
 
20182
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
20183
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
20184
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2615
20185
esac
2616
 
fi
2617
 
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2618
 
if test -n "$GTK_CONFIG"; then
2619
 
  echo "$ac_t""$GTK_CONFIG" 1>&6
2620
 
else
2621
 
  echo "$ac_t""no" 1>&6
2622
 
fi
2623
 
 
2624
 
  min_gtk_version=1.2.0
2625
 
  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2626
 
echo "configure:2627: checking for GTK - version >= $min_gtk_version" >&5
2627
 
  no_gtk=""
2628
 
  if test "$GTK_CONFIG" = "no" ; then
2629
 
    no_gtk=yes
2630
 
  else
2631
 
    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2632
 
    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2633
 
    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2634
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2635
 
    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2636
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2637
 
    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2638
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2639
 
    if test "x$enable_gtktest" = "xyes" ; then
2640
 
      ac_save_CFLAGS="$CFLAGS"
2641
 
      ac_save_LIBS="$LIBS"
2642
 
      CFLAGS="$CFLAGS $GTK_CFLAGS"
2643
 
      LIBS="$GTK_LIBS $LIBS"
2644
 
      rm -f conf.gtktest
2645
 
      if test "$cross_compiling" = yes; then
2646
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
2647
 
else
2648
 
  cat > conftest.$ac_ext <<EOF
2649
 
#line 2650 "configure"
2650
 
#include "confdefs.h"
2651
 
 
2652
 
#include <gtk/gtk.h>
2653
 
#include <stdio.h>
 
20186
 
 
20187
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
20188
# in C++ we need to declare it.  In case someone uses the same compiler
 
20189
# for both compiling C and C++ we need to have the C++ compiler decide
 
20190
# the declaration of exit, since it's the most demanding environment.
 
20191
cat >conftest.$ac_ext <<_ACEOF
 
20192
#ifndef __cplusplus
 
20193
  choke me
 
20194
#endif
 
20195
_ACEOF
 
20196
rm -f conftest.$ac_objext
 
20197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20198
  (eval $ac_compile) 2>conftest.er1
 
20199
  ac_status=$?
 
20200
  grep -v '^ *+' conftest.er1 >conftest.err
 
20201
  rm -f conftest.er1
 
20202
  cat conftest.err >&5
 
20203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20204
  (exit $ac_status); } &&
 
20205
         { ac_try='test -z "$ac_c_werror_flag"
 
20206
                         || test ! -s conftest.err'
 
20207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20208
  (eval $ac_try) 2>&5
 
20209
  ac_status=$?
 
20210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20211
  (exit $ac_status); }; } &&
 
20212
         { ac_try='test -s conftest.$ac_objext'
 
20213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20214
  (eval $ac_try) 2>&5
 
20215
  ac_status=$?
 
20216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20217
  (exit $ac_status); }; }; then
 
20218
  for ac_declaration in \
 
20219
   '' \
 
20220
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
20221
   'extern "C" void std::exit (int); using std::exit;' \
 
20222
   'extern "C" void exit (int) throw ();' \
 
20223
   'extern "C" void exit (int);' \
 
20224
   'void exit (int);'
 
20225
do
 
20226
  cat >conftest.$ac_ext <<_ACEOF
 
20227
/* confdefs.h.  */
 
20228
_ACEOF
 
20229
cat confdefs.h >>conftest.$ac_ext
 
20230
cat >>conftest.$ac_ext <<_ACEOF
 
20231
/* end confdefs.h.  */
 
20232
$ac_declaration
2654
20233
#include <stdlib.h>
2655
 
 
2656
 
int 
 
20234
int
2657
20235
main ()
2658
20236
{
2659
 
  int major, minor, micro;
2660
 
  char *tmp_version;
2661
 
 
2662
 
  system ("touch conf.gtktest");
2663
 
 
2664
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
2665
 
  tmp_version = g_strdup("$min_gtk_version");
2666
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2667
 
     printf("%s, bad version string\n", "$min_gtk_version");
2668
 
     exit(1);
2669
 
   }
2670
 
 
2671
 
  if ((gtk_major_version != $gtk_config_major_version) ||
2672
 
      (gtk_minor_version != $gtk_config_minor_version) ||
2673
 
      (gtk_micro_version != $gtk_config_micro_version))
2674
 
    {
2675
 
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
2676
 
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2677
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
2678
 
      printf ("*** was found! If gtk-config was correct, then it is best\n");
2679
 
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2680
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2681
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2682
 
      printf("*** required on your system.\n");
2683
 
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2684
 
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2685
 
      printf("*** before re-running configure\n");
2686
 
    } 
2687
 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2688
 
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2689
 
           (gtk_minor_version != GTK_MINOR_VERSION) ||
2690
 
           (gtk_micro_version != GTK_MICRO_VERSION))
2691
 
    {
2692
 
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2693
 
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2694
 
      printf("*** library (version %d.%d.%d)\n",
2695
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
2696
 
    }
2697
 
#endif /* defined (GTK_MAJOR_VERSION) ... */
2698
 
  else
2699
 
    {
2700
 
      if ((gtk_major_version > major) ||
2701
 
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2702
 
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2703
 
      {
2704
 
        return 0;
2705
 
       }
2706
 
     else
2707
 
      {
2708
 
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2709
 
               gtk_major_version, gtk_minor_version, gtk_micro_version);
2710
 
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2711
 
               major, minor, micro);
2712
 
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2713
 
        printf("***\n");
2714
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
2715
 
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2716
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
2717
 
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2718
 
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2719
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2720
 
        printf("*** so that the correct libraries are found at run-time))\n");
2721
 
      }
2722
 
    }
2723
 
  return 1;
 
20237
exit (42);
 
20238
  ;
 
20239
  return 0;
2724
20240
}
2725
 
 
2726
 
EOF
2727
 
if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2728
 
then
 
20241
_ACEOF
 
20242
rm -f conftest.$ac_objext
 
20243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20244
  (eval $ac_compile) 2>conftest.er1
 
20245
  ac_status=$?
 
20246
  grep -v '^ *+' conftest.er1 >conftest.err
 
20247
  rm -f conftest.er1
 
20248
  cat conftest.err >&5
 
20249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20250
  (exit $ac_status); } &&
 
20251
         { ac_try='test -z "$ac_c_werror_flag"
 
20252
                         || test ! -s conftest.err'
 
20253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20254
  (eval $ac_try) 2>&5
 
20255
  ac_status=$?
 
20256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20257
  (exit $ac_status); }; } &&
 
20258
         { ac_try='test -s conftest.$ac_objext'
 
20259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20260
  (eval $ac_try) 2>&5
 
20261
  ac_status=$?
 
20262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20263
  (exit $ac_status); }; }; then
2729
20264
  :
2730
20265
else
2731
 
  echo "configure: failed program was:" >&5
2732
 
  cat conftest.$ac_ext >&5
2733
 
  rm -fr conftest*
2734
 
  no_gtk=yes
2735
 
fi
2736
 
rm -fr conftest*
2737
 
fi
2738
 
 
2739
 
       CFLAGS="$ac_save_CFLAGS"
2740
 
       LIBS="$ac_save_LIBS"
2741
 
     fi
2742
 
  fi
2743
 
  if test "x$no_gtk" = x ; then
2744
 
     echo "$ac_t""yes" 1>&6
2745
 
     :     
2746
 
  else
2747
 
     echo "$ac_t""no" 1>&6
2748
 
     if test "$GTK_CONFIG" = "no" ; then
2749
 
       echo "*** The gtk-config script installed by GTK could not be found"
2750
 
       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2751
 
       echo "*** your path, or set the GTK_CONFIG environment variable to the"
2752
 
       echo "*** full path to gtk-config."
2753
 
     else
2754
 
       if test -f conf.gtktest ; then
2755
 
        :
2756
 
       else
2757
 
          echo "*** Could not run GTK test program, checking why..."
2758
 
          CFLAGS="$CFLAGS $GTK_CFLAGS"
2759
 
          LIBS="$LIBS $GTK_LIBS"
2760
 
          cat > conftest.$ac_ext <<EOF
2761
 
#line 2762 "configure"
2762
 
#include "confdefs.h"
2763
 
 
2764
 
#include <gtk/gtk.h>
2765
 
#include <stdio.h>
2766
 
 
2767
 
int main() {
2768
 
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
2769
 
; return 0; }
2770
 
EOF
2771
 
if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2772
 
  rm -rf conftest*
2773
 
   echo "*** The test program compiled, but did not run. This usually means"
2774
 
          echo "*** that the run-time linker is not finding GTK or finding the wrong"
2775
 
          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2776
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2777
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2778
 
          echo "*** is required on your system"
2779
 
          echo "***"
2780
 
          echo "*** If you have an old version installed, it is best to remove it, although"
2781
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2782
 
          echo "***"
2783
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2784
 
          echo "*** came with the system with the command"
2785
 
          echo "***"
2786
 
          echo "***    rpm --erase --nodeps gtk gtk-devel" 
2787
 
else
2788
 
  echo "configure: failed program was:" >&5
2789
 
  cat conftest.$ac_ext >&5
2790
 
  rm -rf conftest*
2791
 
   echo "*** The test program failed to compile or link. See the file config.log for the"
2792
 
          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2793
 
          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2794
 
          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
2795
 
fi
2796
 
rm -f conftest*
2797
 
          CFLAGS="$ac_save_CFLAGS"
2798
 
          LIBS="$ac_save_LIBS"
2799
 
       fi
2800
 
     fi
2801
 
     GTK_CFLAGS=""
2802
 
     GTK_LIBS=""
2803
 
     { echo "configure: error: GTK not installed" 1>&2; exit 1; }
2804
 
  fi
2805
 
  
2806
 
  
2807
 
  rm -f conf.gtktest
2808
 
 
2809
 
                                                CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
2810
 
 
2811
 
        saved_ldflags="$LDFLAGS"
2812
 
        LDFLAGS="$LDFLAGS $GTK_LIBS"
2813
 
 
2814
 
        gnome_cv_passdown_x_libs="$GTK_LIBS"
2815
 
        gnome_cv_passdown_X_LIBS="$GTK_LIBS"
2816
 
        gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
2817
 
        gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
2818
 
 
2819
 
        LDFLAGS="$saved_ldflags $GTK_LIBS"
2820
 
 
2821
 
        USE_DEVGTK=true
2822
 
 
2823
 
 
2824
 
        GNOME_HAVE_SM=true
2825
 
        case "$GTK_LIBS" in
2826
 
         *-lSM*)
2827
 
                    ;;
2828
 
         *)
2829
 
                    echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2830
 
echo "configure:2831: checking for SmcSaveYourselfDone in -lSM" >&5
2831
 
ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2832
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2833
 
  echo $ac_n "(cached) $ac_c" 1>&6
2834
 
else
2835
 
  ac_save_LIBS="$LIBS"
2836
 
LIBS="-lSM $x_libs -lICE $LIBS"
2837
 
cat > conftest.$ac_ext <<EOF
2838
 
#line 2839 "configure"
2839
 
#include "confdefs.h"
2840
 
/* Override any gcc2 internal prototype to avoid an error.  */
2841
 
/* We use char because int might match the return type of a gcc2
2842
 
    builtin and then its argument prototype would still apply.  */
2843
 
char SmcSaveYourselfDone();
2844
 
 
2845
 
int main() {
2846
 
SmcSaveYourselfDone()
2847
 
; return 0; }
2848
 
EOF
2849
 
if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2850
 
  rm -rf conftest*
2851
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2852
 
else
2853
 
  echo "configure: failed program was:" >&5
2854
 
  cat conftest.$ac_ext >&5
2855
 
  rm -rf conftest*
2856
 
  eval "ac_cv_lib_$ac_lib_var=no"
2857
 
fi
2858
 
rm -f conftest*
2859
 
LIBS="$ac_save_LIBS"
2860
 
 
2861
 
fi
2862
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2863
 
  echo "$ac_t""yes" 1>&6
2864
 
  GTK_LIBS="-lSM -lICE $GTK_LIBS"
2865
 
else
2866
 
  echo "$ac_t""no" 1>&6
2867
 
GNOME_HAVE_SM=false
2868
 
fi
2869
 
 
2870
 
            ;;
2871
 
        esac
2872
 
 
2873
 
        if test "$GNOME_HAVE_SM" = true; then
2874
 
           for ac_hdr in X11/SM/SMlib.h
2875
 
do
2876
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2877
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2878
 
echo "configure:2879: checking for $ac_hdr" >&5
2879
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880
 
  echo $ac_n "(cached) $ac_c" 1>&6
2881
 
else
2882
 
  cat > conftest.$ac_ext <<EOF
2883
 
#line 2884 "configure"
2884
 
#include "confdefs.h"
2885
 
#include <$ac_hdr>
2886
 
EOF
2887
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888
 
{ (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2890
 
if test -z "$ac_err"; then
2891
 
  rm -rf conftest*
2892
 
  eval "ac_cv_header_$ac_safe=yes"
2893
 
else
2894
 
  echo "$ac_err" >&5
2895
 
  echo "configure: failed program was:" >&5
2896
 
  cat conftest.$ac_ext >&5
2897
 
  rm -rf conftest*
2898
 
  eval "ac_cv_header_$ac_safe=no"
2899
 
fi
2900
 
rm -f conftest*
2901
 
fi
2902
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903
 
  echo "$ac_t""yes" 1>&6
2904
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2905
 
  cat >> confdefs.h <<EOF
2906
 
#define $ac_tr_hdr 1
2907
 
EOF
2908
 
 
2909
 
else
2910
 
  echo "$ac_t""no" 1>&6
2911
 
GNOME_HAVE_SM=false
2912
 
fi
2913
 
done
2914
 
 
2915
 
        fi
2916
 
 
2917
 
        if test "$GNOME_HAVE_SM" = true; then
2918
 
           cat >> confdefs.h <<\EOF
2919
 
#define HAVE_LIBSM 1
2920
 
EOF
2921
 
 
2922
 
        fi
2923
 
 
2924
 
        XPM_LIBS=""
2925
 
        echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2926
 
echo "configure:2927: checking for XpmFreeXpmImage in -lXpm" >&5
2927
 
ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2928
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2929
 
  echo $ac_n "(cached) $ac_c" 1>&6
2930
 
else
2931
 
  ac_save_LIBS="$LIBS"
2932
 
LIBS="-lXpm $x_libs $LIBS"
2933
 
cat > conftest.$ac_ext <<EOF
2934
 
#line 2935 "configure"
2935
 
#include "confdefs.h"
2936
 
/* Override any gcc2 internal prototype to avoid an error.  */
2937
 
/* We use char because int might match the return type of a gcc2
2938
 
    builtin and then its argument prototype would still apply.  */
2939
 
char XpmFreeXpmImage();
2940
 
 
2941
 
int main() {
2942
 
XpmFreeXpmImage()
2943
 
; return 0; }
2944
 
EOF
2945
 
if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2946
 
  rm -rf conftest*
2947
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2948
 
else
2949
 
  echo "configure: failed program was:" >&5
2950
 
  cat conftest.$ac_ext >&5
2951
 
  rm -rf conftest*
2952
 
  eval "ac_cv_lib_$ac_lib_var=no"
2953
 
fi
2954
 
rm -f conftest*
2955
 
LIBS="$ac_save_LIBS"
2956
 
 
2957
 
fi
2958
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2959
 
  echo "$ac_t""yes" 1>&6
2960
 
  XPM_LIBS="-lXpm"
2961
 
else
2962
 
  echo "$ac_t""no" 1>&6
2963
 
fi
2964
 
 
2965
 
        
2966
 
 
2967
 
        
2968
 
        LDFLAGS="$saved_ldflags"
2969
 
 
2970
 
        
2971
 
 
2972
 
 
2973
 
 
2974
 
 
2975
 
 
2976
 
if test x$have_orbit = xyes; then
2977
 
  HAVE_ORBIT_TRUE=
2978
 
  HAVE_ORBIT_FALSE='#'
2979
 
else
2980
 
  HAVE_ORBIT_TRUE='#'
2981
 
  HAVE_ORBIT_FALSE=
2982
 
fi
2983
 
 
2984
 
 
2985
 
 
2986
 
if test x$have_libgnorba = xyes; then
2987
 
  HAVE_LIBGNORBA_TRUE=
2988
 
  HAVE_LIBGNORBA_FALSE='#'
2989
 
else
2990
 
  HAVE_LIBGNORBA_TRUE='#'
2991
 
  HAVE_LIBGNORBA_FALSE=
2992
 
fi
2993
 
 
2994
 
 
2995
 
 
2996
 
if test x$have_libzvt = xyes; then
2997
 
  HAVE_LIBZVT_TRUE=
2998
 
  HAVE_LIBZVT_FALSE='#'
2999
 
else
3000
 
  HAVE_LIBZVT_TRUE='#'
3001
 
  HAVE_LIBZVT_FALSE=
3002
 
fi
3003
 
 
3004
 
ALL_LINGUAS="az ca cs da de el es fi fr ga gl hu it ja ko lt nl no pl pt pt_BR ru sv sk sl tr uk wa zh_TW.Big5 zh_CN.GB2312"
3005
 
echo $ac_n "checking for working const""... $ac_c" 1>&6
3006
 
echo "configure:3007: checking for working const" >&5
3007
 
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3008
 
  echo $ac_n "(cached) $ac_c" 1>&6
3009
 
else
3010
 
  cat > conftest.$ac_ext <<EOF
3011
 
#line 3012 "configure"
3012
 
#include "confdefs.h"
3013
 
 
3014
 
int main() {
3015
 
 
3016
 
/* Ultrix mips cc rejects this.  */
3017
 
typedef int charset[2]; const charset x;
3018
 
/* SunOS 4.1.1 cc rejects this.  */
3019
 
char const *const *ccp;
3020
 
char **p;
3021
 
/* NEC SVR4.0.2 mips cc rejects this.  */
3022
 
struct point {int x, y;};
3023
 
static struct point const zero = {0,0};
3024
 
/* AIX XL C 1.02.0.0 rejects this.
3025
 
   It does not let you subtract one const X* pointer from another in an arm
3026
 
   of an if-expression whose if-part is not a constant expression */
3027
 
const char *g = "string";
3028
 
ccp = &g + (g ? g-g : 0);
3029
 
/* HPUX 7.0 cc rejects these. */
3030
 
++ccp;
3031
 
p = (char**) ccp;
3032
 
ccp = (char const *const *) p;
3033
 
{ /* SCO 3.2v4 cc rejects this.  */
3034
 
  char *t;
3035
 
  char const *s = 0 ? (char *) 0 : (char const *) 0;
3036
 
 
3037
 
  *t++ = 0;
3038
 
}
3039
 
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3040
 
  int x[] = {25, 17};
3041
 
  const int *foo = &x[0];
3042
 
  ++foo;
3043
 
}
3044
 
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3045
 
  typedef const int *iptr;
3046
 
  iptr p = 0;
3047
 
  ++p;
3048
 
}
3049
 
{ /* AIX XL C 1.02.0.0 rejects this saying
3050
 
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3051
 
  struct s { int j; const int *ap[3]; };
3052
 
  struct s *b; b->j = 5;
3053
 
}
3054
 
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3055
 
  const int foo = 10;
3056
 
}
3057
 
 
3058
 
; return 0; }
3059
 
EOF
3060
 
if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3061
 
  rm -rf conftest*
3062
 
  ac_cv_c_const=yes
3063
 
else
3064
 
  echo "configure: failed program was:" >&5
3065
 
  cat conftest.$ac_ext >&5
3066
 
  rm -rf conftest*
3067
 
  ac_cv_c_const=no
3068
 
fi
3069
 
rm -f conftest*
3070
 
fi
3071
 
 
3072
 
echo "$ac_t""$ac_cv_c_const" 1>&6
3073
 
if test $ac_cv_c_const = no; then
3074
 
  cat >> confdefs.h <<\EOF
3075
 
#define const 
3076
 
EOF
3077
 
 
3078
 
fi
3079
 
 
3080
 
echo $ac_n "checking for inline""... $ac_c" 1>&6
3081
 
echo "configure:3082: checking for inline" >&5
3082
 
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3083
 
  echo $ac_n "(cached) $ac_c" 1>&6
3084
 
else
3085
 
  ac_cv_c_inline=no
3086
 
for ac_kw in inline __inline__ __inline; do
3087
 
  cat > conftest.$ac_ext <<EOF
3088
 
#line 3089 "configure"
3089
 
#include "confdefs.h"
3090
 
 
3091
 
int main() {
3092
 
} $ac_kw foo() {
3093
 
; return 0; }
3094
 
EOF
3095
 
if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3096
 
  rm -rf conftest*
3097
 
  ac_cv_c_inline=$ac_kw; break
3098
 
else
3099
 
  echo "configure: failed program was:" >&5
3100
 
  cat conftest.$ac_ext >&5
3101
 
fi
3102
 
rm -f conftest*
3103
 
done
3104
 
 
3105
 
fi
3106
 
 
3107
 
echo "$ac_t""$ac_cv_c_inline" 1>&6
3108
 
case "$ac_cv_c_inline" in
3109
 
  inline | yes) ;;
3110
 
  no) cat >> confdefs.h <<\EOF
3111
 
#define inline 
3112
 
EOF
3113
 
 ;;
3114
 
  *)  cat >> confdefs.h <<EOF
3115
 
#define inline $ac_cv_c_inline
3116
 
EOF
3117
 
 ;;
3118
 
esac
3119
 
 
3120
 
echo $ac_n "checking for off_t""... $ac_c" 1>&6
3121
 
echo "configure:3122: checking for off_t" >&5
3122
 
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3123
 
  echo $ac_n "(cached) $ac_c" 1>&6
3124
 
else
3125
 
  cat > conftest.$ac_ext <<EOF
3126
 
#line 3127 "configure"
3127
 
#include "confdefs.h"
3128
 
#include <sys/types.h>
3129
 
#if STDC_HEADERS
3130
 
#include <stdlib.h>
3131
 
#include <stddef.h>
3132
 
#endif
3133
 
EOF
3134
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135
 
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3136
 
  rm -rf conftest*
3137
 
  ac_cv_type_off_t=yes
3138
 
else
3139
 
  rm -rf conftest*
3140
 
  ac_cv_type_off_t=no
3141
 
fi
3142
 
rm -f conftest*
3143
 
 
3144
 
fi
3145
 
echo "$ac_t""$ac_cv_type_off_t" 1>&6
3146
 
if test $ac_cv_type_off_t = no; then
3147
 
  cat >> confdefs.h <<\EOF
3148
 
#define off_t long
3149
 
EOF
3150
 
 
3151
 
fi
3152
 
 
3153
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
3154
 
echo "configure:3155: checking for size_t" >&5
3155
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3156
 
  echo $ac_n "(cached) $ac_c" 1>&6
3157
 
else
3158
 
  cat > conftest.$ac_ext <<EOF
3159
 
#line 3160 "configure"
3160
 
#include "confdefs.h"
3161
 
#include <sys/types.h>
3162
 
#if STDC_HEADERS
3163
 
#include <stdlib.h>
3164
 
#include <stddef.h>
3165
 
#endif
3166
 
EOF
3167
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3169
 
  rm -rf conftest*
3170
 
  ac_cv_type_size_t=yes
3171
 
else
3172
 
  rm -rf conftest*
3173
 
  ac_cv_type_size_t=no
3174
 
fi
3175
 
rm -f conftest*
3176
 
 
3177
 
fi
3178
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
3179
 
if test $ac_cv_type_size_t = no; then
3180
 
  cat >> confdefs.h <<\EOF
3181
 
#define size_t unsigned
3182
 
EOF
3183
 
 
3184
 
fi
3185
 
 
3186
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3187
 
# for constant arguments.  Useless!
3188
 
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3189
 
echo "configure:3190: checking for working alloca.h" >&5
3190
 
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3191
 
  echo $ac_n "(cached) $ac_c" 1>&6
3192
 
else
3193
 
  cat > conftest.$ac_ext <<EOF
3194
 
#line 3195 "configure"
3195
 
#include "confdefs.h"
3196
 
#include <alloca.h>
3197
 
int main() {
3198
 
char *p = alloca(2 * sizeof(int));
3199
 
; return 0; }
3200
 
EOF
3201
 
if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202
 
  rm -rf conftest*
3203
 
  ac_cv_header_alloca_h=yes
3204
 
else
3205
 
  echo "configure: failed program was:" >&5
3206
 
  cat conftest.$ac_ext >&5
3207
 
  rm -rf conftest*
3208
 
  ac_cv_header_alloca_h=no
3209
 
fi
3210
 
rm -f conftest*
3211
 
fi
3212
 
 
3213
 
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3214
 
if test $ac_cv_header_alloca_h = yes; then
3215
 
  cat >> confdefs.h <<\EOF
3216
 
#define HAVE_ALLOCA_H 1
3217
 
EOF
3218
 
 
3219
 
fi
3220
 
 
3221
 
echo $ac_n "checking for alloca""... $ac_c" 1>&6
3222
 
echo "configure:3223: checking for alloca" >&5
3223
 
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3224
 
  echo $ac_n "(cached) $ac_c" 1>&6
3225
 
else
3226
 
  cat > conftest.$ac_ext <<EOF
3227
 
#line 3228 "configure"
3228
 
#include "confdefs.h"
3229
 
 
3230
 
#ifdef __GNUC__
3231
 
# define alloca __builtin_alloca
3232
 
#else
3233
 
# ifdef _MSC_VER
3234
 
#  include <malloc.h>
3235
 
#  define alloca _alloca
3236
 
# else
3237
 
#  if HAVE_ALLOCA_H
3238
 
#   include <alloca.h>
3239
 
#  else
3240
 
#   ifdef _AIX
3241
 
 #pragma alloca
3242
 
#   else
3243
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
3244
 
char *alloca ();
3245
 
#    endif
3246
 
#   endif
3247
 
#  endif
3248
 
# endif
3249
 
#endif
3250
 
 
3251
 
int main() {
3252
 
char *p = (char *) alloca(1);
3253
 
; return 0; }
3254
 
EOF
3255
 
if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3256
 
  rm -rf conftest*
3257
 
  ac_cv_func_alloca_works=yes
3258
 
else
3259
 
  echo "configure: failed program was:" >&5
3260
 
  cat conftest.$ac_ext >&5
3261
 
  rm -rf conftest*
3262
 
  ac_cv_func_alloca_works=no
3263
 
fi
3264
 
rm -f conftest*
3265
 
fi
3266
 
 
3267
 
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3268
 
if test $ac_cv_func_alloca_works = yes; then
3269
 
  cat >> confdefs.h <<\EOF
3270
 
#define HAVE_ALLOCA 1
3271
 
EOF
3272
 
 
3273
 
fi
3274
 
 
3275
 
if test $ac_cv_func_alloca_works = no; then
3276
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3277
 
  # that cause trouble.  Some versions do not even contain alloca or
3278
 
  # contain a buggy version.  If you still want to use their alloca,
3279
 
  # use ar to extract alloca.o from them instead of compiling alloca.c.
3280
 
  ALLOCA=alloca.${ac_objext}
3281
 
  cat >> confdefs.h <<\EOF
3282
 
#define C_ALLOCA 1
3283
 
EOF
3284
 
 
3285
 
 
3286
 
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3287
 
echo "configure:3288: checking whether alloca needs Cray hooks" >&5
3288
 
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3289
 
  echo $ac_n "(cached) $ac_c" 1>&6
3290
 
else
3291
 
  cat > conftest.$ac_ext <<EOF
3292
 
#line 3293 "configure"
3293
 
#include "confdefs.h"
3294
 
#if defined(CRAY) && ! defined(CRAY2)
3295
 
webecray
3296
 
#else
3297
 
wenotbecray
3298
 
#endif
3299
 
 
3300
 
EOF
3301
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302
 
  egrep "webecray" >/dev/null 2>&1; then
3303
 
  rm -rf conftest*
3304
 
  ac_cv_os_cray=yes
3305
 
else
3306
 
  rm -rf conftest*
3307
 
  ac_cv_os_cray=no
3308
 
fi
3309
 
rm -f conftest*
3310
 
 
3311
 
fi
3312
 
 
3313
 
echo "$ac_t""$ac_cv_os_cray" 1>&6
3314
 
if test $ac_cv_os_cray = yes; then
3315
 
for ac_func in _getb67 GETB67 getb67; do
3316
 
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3317
 
echo "configure:3318: checking for $ac_func" >&5
3318
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3319
 
  echo $ac_n "(cached) $ac_c" 1>&6
3320
 
else
3321
 
  cat > conftest.$ac_ext <<EOF
3322
 
#line 3323 "configure"
3323
 
#include "confdefs.h"
3324
 
/* System header to define __stub macros and hopefully few prototypes,
3325
 
    which can conflict with char $ac_func(); below.  */
3326
 
#include <assert.h>
3327
 
/* Override any gcc2 internal prototype to avoid an error.  */
3328
 
/* We use char because int might match the return type of a gcc2
3329
 
    builtin and then its argument prototype would still apply.  */
3330
 
char $ac_func();
3331
 
 
3332
 
int main() {
3333
 
 
3334
 
/* The GNU C library defines this for functions which it implements
3335
 
    to always fail with ENOSYS.  Some functions are actually named
3336
 
    something starting with __ and the normal name is an alias.  */
3337
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3338
 
choke me
3339
 
#else
3340
 
$ac_func();
3341
 
#endif
3342
 
 
3343
 
; return 0; }
3344
 
EOF
3345
 
if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346
 
  rm -rf conftest*
3347
 
  eval "ac_cv_func_$ac_func=yes"
3348
 
else
3349
 
  echo "configure: failed program was:" >&5
3350
 
  cat conftest.$ac_ext >&5
3351
 
  rm -rf conftest*
3352
 
  eval "ac_cv_func_$ac_func=no"
3353
 
fi
3354
 
rm -f conftest*
3355
 
fi
3356
 
 
3357
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3358
 
  echo "$ac_t""yes" 1>&6
3359
 
  cat >> confdefs.h <<EOF
3360
 
#define CRAY_STACKSEG_END $ac_func
3361
 
EOF
3362
 
 
 
20266
  echo "$as_me: failed program was:" >&5
 
20267
sed 's/^/| /' conftest.$ac_ext >&5
 
20268
 
 
20269
continue
 
20270
fi
 
20271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20272
  cat >conftest.$ac_ext <<_ACEOF
 
20273
/* confdefs.h.  */
 
20274
_ACEOF
 
20275
cat confdefs.h >>conftest.$ac_ext
 
20276
cat >>conftest.$ac_ext <<_ACEOF
 
20277
/* end confdefs.h.  */
 
20278
$ac_declaration
 
20279
int
 
20280
main ()
 
20281
{
 
20282
exit (42);
 
20283
  ;
 
20284
  return 0;
 
20285
}
 
20286
_ACEOF
 
20287
rm -f conftest.$ac_objext
 
20288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20289
  (eval $ac_compile) 2>conftest.er1
 
20290
  ac_status=$?
 
20291
  grep -v '^ *+' conftest.er1 >conftest.err
 
20292
  rm -f conftest.er1
 
20293
  cat conftest.err >&5
 
20294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20295
  (exit $ac_status); } &&
 
20296
         { ac_try='test -z "$ac_c_werror_flag"
 
20297
                         || test ! -s conftest.err'
 
20298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20299
  (eval $ac_try) 2>&5
 
20300
  ac_status=$?
 
20301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20302
  (exit $ac_status); }; } &&
 
20303
         { ac_try='test -s conftest.$ac_objext'
 
20304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20305
  (eval $ac_try) 2>&5
 
20306
  ac_status=$?
 
20307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20308
  (exit $ac_status); }; }; then
3363
20309
  break
3364
20310
else
3365
 
  echo "$ac_t""no" 1>&6
3366
 
fi
3367
 
 
3368
 
done
3369
 
fi
3370
 
 
3371
 
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3372
 
echo "configure:3373: checking stack direction for C alloca" >&5
3373
 
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3374
 
  echo $ac_n "(cached) $ac_c" 1>&6
3375
 
else
3376
 
  if test "$cross_compiling" = yes; then
3377
 
  ac_cv_c_stack_direction=0
3378
 
else
3379
 
  cat > conftest.$ac_ext <<EOF
3380
 
#line 3381 "configure"
3381
 
#include "confdefs.h"
3382
 
find_stack_direction ()
3383
 
{
3384
 
  static char *addr = 0;
3385
 
  auto char dummy;
3386
 
  if (addr == 0)
3387
 
    {
3388
 
      addr = &dummy;
3389
 
      return find_stack_direction ();
3390
 
    }
3391
 
  else
3392
 
    return (&dummy > addr) ? 1 : -1;
3393
 
}
3394
 
main ()
3395
 
{
3396
 
  exit (find_stack_direction() < 0);
3397
 
}
3398
 
EOF
3399
 
if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3400
 
then
3401
 
  ac_cv_c_stack_direction=1
3402
 
else
3403
 
  echo "configure: failed program was:" >&5
3404
 
  cat conftest.$ac_ext >&5
3405
 
  rm -fr conftest*
3406
 
  ac_cv_c_stack_direction=-1
3407
 
fi
3408
 
rm -fr conftest*
3409
 
fi
3410
 
 
3411
 
fi
3412
 
 
3413
 
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3414
 
cat >> confdefs.h <<EOF
3415
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
3416
 
EOF
3417
 
 
3418
 
fi
3419
 
 
3420
 
for ac_hdr in unistd.h
3421
 
do
3422
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3423
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3424
 
echo "configure:3425: checking for $ac_hdr" >&5
3425
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3426
 
  echo $ac_n "(cached) $ac_c" 1>&6
3427
 
else
3428
 
  cat > conftest.$ac_ext <<EOF
3429
 
#line 3430 "configure"
3430
 
#include "confdefs.h"
3431
 
#include <$ac_hdr>
3432
 
EOF
3433
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3434
 
{ (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3435
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3436
 
if test -z "$ac_err"; then
3437
 
  rm -rf conftest*
3438
 
  eval "ac_cv_header_$ac_safe=yes"
3439
 
else
3440
 
  echo "$ac_err" >&5
3441
 
  echo "configure: failed program was:" >&5
3442
 
  cat conftest.$ac_ext >&5
3443
 
  rm -rf conftest*
3444
 
  eval "ac_cv_header_$ac_safe=no"
3445
 
fi
3446
 
rm -f conftest*
3447
 
fi
3448
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3449
 
  echo "$ac_t""yes" 1>&6
3450
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3451
 
  cat >> confdefs.h <<EOF
3452
 
#define $ac_tr_hdr 1
3453
 
EOF
3454
 
 
3455
 
else
3456
 
  echo "$ac_t""no" 1>&6
3457
 
fi
3458
 
done
3459
 
 
3460
 
for ac_func in getpagesize
3461
 
do
3462
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3463
 
echo "configure:3464: checking for $ac_func" >&5
3464
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3465
 
  echo $ac_n "(cached) $ac_c" 1>&6
3466
 
else
3467
 
  cat > conftest.$ac_ext <<EOF
3468
 
#line 3469 "configure"
3469
 
#include "confdefs.h"
3470
 
/* System header to define __stub macros and hopefully few prototypes,
3471
 
    which can conflict with char $ac_func(); below.  */
3472
 
#include <assert.h>
3473
 
/* Override any gcc2 internal prototype to avoid an error.  */
3474
 
/* We use char because int might match the return type of a gcc2
3475
 
    builtin and then its argument prototype would still apply.  */
3476
 
char $ac_func();
3477
 
 
3478
 
int main() {
3479
 
 
3480
 
/* The GNU C library defines this for functions which it implements
3481
 
    to always fail with ENOSYS.  Some functions are actually named
3482
 
    something starting with __ and the normal name is an alias.  */
3483
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3484
 
choke me
3485
 
#else
3486
 
$ac_func();
3487
 
#endif
3488
 
 
3489
 
; return 0; }
3490
 
EOF
3491
 
if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3492
 
  rm -rf conftest*
3493
 
  eval "ac_cv_func_$ac_func=yes"
3494
 
else
3495
 
  echo "configure: failed program was:" >&5
3496
 
  cat conftest.$ac_ext >&5
3497
 
  rm -rf conftest*
3498
 
  eval "ac_cv_func_$ac_func=no"
3499
 
fi
3500
 
rm -f conftest*
3501
 
fi
3502
 
 
3503
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3504
 
  echo "$ac_t""yes" 1>&6
3505
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3506
 
  cat >> confdefs.h <<EOF
3507
 
#define $ac_tr_func 1
3508
 
EOF
3509
 
 
3510
 
else
3511
 
  echo "$ac_t""no" 1>&6
3512
 
fi
3513
 
done
3514
 
 
3515
 
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3516
 
echo "configure:3517: checking for working mmap" >&5
3517
 
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3518
 
  echo $ac_n "(cached) $ac_c" 1>&6
3519
 
else
3520
 
  if test "$cross_compiling" = yes; then
3521
 
  ac_cv_func_mmap_fixed_mapped=no
3522
 
else
3523
 
  cat > conftest.$ac_ext <<EOF
3524
 
#line 3525 "configure"
3525
 
#include "confdefs.h"
3526
 
 
3527
 
/* Thanks to Mike Haertel and Jim Avera for this test.
3528
 
   Here is a matrix of mmap possibilities:
3529
 
        mmap private not fixed
3530
 
        mmap private fixed at somewhere currently unmapped
3531
 
        mmap private fixed at somewhere already mapped
3532
 
        mmap shared not fixed
3533
 
        mmap shared fixed at somewhere currently unmapped
3534
 
        mmap shared fixed at somewhere already mapped
3535
 
   For private mappings, we should verify that changes cannot be read()
3536
 
   back from the file, nor mmap's back from the file at a different
3537
 
   address.  (There have been systems where private was not correctly
3538
 
   implemented like the infamous i386 svr4.0, and systems where the
3539
 
   VM page cache was not coherent with the filesystem buffer cache
3540
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
3541
 
   For shared mappings, we should conversely verify that changes get
3542
 
   propogated back to all the places they're supposed to be.
3543
 
 
3544
 
   Grep wants private fixed already mapped.
3545
 
   The main things grep needs to know about mmap are:
3546
 
   * does it exist and is it safe to write into the mmap'd area
3547
 
   * how to use it (BSD variants)  */
3548
 
#include <sys/types.h>
3549
 
#include <fcntl.h>
3550
 
#include <sys/mman.h>
3551
 
 
3552
 
/* This mess was copied from the GNU getpagesize.h.  */
3553
 
#ifndef HAVE_GETPAGESIZE
3554
 
# ifdef HAVE_UNISTD_H
3555
 
#  include <unistd.h>
3556
 
# endif
3557
 
 
3558
 
/* Assume that all systems that can run configure have sys/param.h.  */
3559
 
# ifndef HAVE_SYS_PARAM_H
3560
 
#  define HAVE_SYS_PARAM_H 1
3561
 
# endif
3562
 
 
3563
 
# ifdef _SC_PAGESIZE
3564
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
3565
 
# else /* no _SC_PAGESIZE */
3566
 
#  ifdef HAVE_SYS_PARAM_H
3567
 
#   include <sys/param.h>
3568
 
#   ifdef EXEC_PAGESIZE
3569
 
#    define getpagesize() EXEC_PAGESIZE
3570
 
#   else /* no EXEC_PAGESIZE */
3571
 
#    ifdef NBPG
3572
 
#     define getpagesize() NBPG * CLSIZE
3573
 
#     ifndef CLSIZE
3574
 
#      define CLSIZE 1
3575
 
#     endif /* no CLSIZE */
3576
 
#    else /* no NBPG */
3577
 
#     ifdef NBPC
3578
 
#      define getpagesize() NBPC
3579
 
#     else /* no NBPC */
3580
 
#      ifdef PAGESIZE
3581
 
#       define getpagesize() PAGESIZE
3582
 
#      endif /* PAGESIZE */
3583
 
#     endif /* no NBPC */
3584
 
#    endif /* no NBPG */
3585
 
#   endif /* no EXEC_PAGESIZE */
3586
 
#  else /* no HAVE_SYS_PARAM_H */
3587
 
#   define getpagesize() 8192   /* punt totally */
3588
 
#  endif /* no HAVE_SYS_PARAM_H */
3589
 
# endif /* no _SC_PAGESIZE */
3590
 
 
3591
 
#endif /* no HAVE_GETPAGESIZE */
3592
 
 
3593
 
#ifdef __cplusplus
3594
 
extern "C" { void *malloc(unsigned); }
3595
 
#else
3596
 
char *malloc();
3597
 
#endif
3598
 
 
3599
 
int
3600
 
main()
3601
 
{
3602
 
        char *data, *data2, *data3;
3603
 
        int i, pagesize;
3604
 
        int fd;
3605
 
 
3606
 
        pagesize = getpagesize();
3607
 
 
3608
 
        /*
3609
 
         * First, make a file with some known garbage in it.
3610
 
         */
3611
 
        data = malloc(pagesize);
3612
 
        if (!data)
3613
 
                exit(1);
3614
 
        for (i = 0; i < pagesize; ++i)
3615
 
                *(data + i) = rand();
3616
 
        umask(0);
3617
 
        fd = creat("conftestmmap", 0600);
3618
 
        if (fd < 0)
3619
 
                exit(1);
3620
 
        if (write(fd, data, pagesize) != pagesize)
3621
 
                exit(1);
3622
 
        close(fd);
3623
 
 
3624
 
        /*
3625
 
         * Next, try to mmap the file at a fixed address which
3626
 
         * already has something else allocated at it.  If we can,
3627
 
         * also make sure that we see the same garbage.
3628
 
         */
3629
 
        fd = open("conftestmmap", O_RDWR);
3630
 
        if (fd < 0)
3631
 
                exit(1);
3632
 
        data2 = malloc(2 * pagesize);
3633
 
        if (!data2)
3634
 
                exit(1);
3635
 
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3636
 
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3637
 
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
3638
 
                exit(1);
3639
 
        for (i = 0; i < pagesize; ++i)
3640
 
                if (*(data + i) != *(data2 + i))
3641
 
                        exit(1);
3642
 
 
3643
 
        /*
3644
 
         * Finally, make sure that changes to the mapped area
3645
 
         * do not percolate back to the file as seen by read().
3646
 
         * (This is a bug on some variants of i386 svr4.0.)
3647
 
         */
3648
 
        for (i = 0; i < pagesize; ++i)
3649
 
                *(data2 + i) = *(data2 + i) + 1;
3650
 
        data3 = malloc(pagesize);
3651
 
        if (!data3)
3652
 
                exit(1);
3653
 
        if (read(fd, data3, pagesize) != pagesize)
3654
 
                exit(1);
3655
 
        for (i = 0; i < pagesize; ++i)
3656
 
                if (*(data + i) != *(data3 + i))
3657
 
                        exit(1);
3658
 
        close(fd);
3659
 
        unlink("conftestmmap");
3660
 
        exit(0);
3661
 
}
3662
 
 
3663
 
EOF
3664
 
if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3665
 
then
3666
 
  ac_cv_func_mmap_fixed_mapped=yes
3667
 
else
3668
 
  echo "configure: failed program was:" >&5
3669
 
  cat conftest.$ac_ext >&5
3670
 
  rm -fr conftest*
3671
 
  ac_cv_func_mmap_fixed_mapped=no
3672
 
fi
3673
 
rm -fr conftest*
3674
 
fi
3675
 
 
3676
 
fi
3677
 
 
3678
 
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3679
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
3680
 
  cat >> confdefs.h <<\EOF
3681
 
#define HAVE_MMAP 1
3682
 
EOF
3683
 
 
3684
 
fi
3685
 
 
3686
 
                              
3687
 
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3688
 
unistd.h sys/param.h
3689
 
do
3690
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3691
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3692
 
echo "configure:3693: checking for $ac_hdr" >&5
3693
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3694
 
  echo $ac_n "(cached) $ac_c" 1>&6
3695
 
else
3696
 
  cat > conftest.$ac_ext <<EOF
3697
 
#line 3698 "configure"
3698
 
#include "confdefs.h"
3699
 
#include <$ac_hdr>
3700
 
EOF
3701
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3702
 
{ (eval echo configure:3703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3703
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3704
 
if test -z "$ac_err"; then
3705
 
  rm -rf conftest*
3706
 
  eval "ac_cv_header_$ac_safe=yes"
3707
 
else
3708
 
  echo "$ac_err" >&5
3709
 
  echo "configure: failed program was:" >&5
3710
 
  cat conftest.$ac_ext >&5
3711
 
  rm -rf conftest*
3712
 
  eval "ac_cv_header_$ac_safe=no"
3713
 
fi
3714
 
rm -f conftest*
3715
 
fi
3716
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3717
 
  echo "$ac_t""yes" 1>&6
3718
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3719
 
  cat >> confdefs.h <<EOF
3720
 
#define $ac_tr_hdr 1
3721
 
EOF
3722
 
 
3723
 
else
3724
 
  echo "$ac_t""no" 1>&6
3725
 
fi
3726
 
done
3727
 
 
3728
 
   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3729
 
strdup __argz_count __argz_stringify __argz_next
3730
 
do
3731
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3732
 
echo "configure:3733: checking for $ac_func" >&5
3733
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3734
 
  echo $ac_n "(cached) $ac_c" 1>&6
3735
 
else
3736
 
  cat > conftest.$ac_ext <<EOF
3737
 
#line 3738 "configure"
3738
 
#include "confdefs.h"
3739
 
/* System header to define __stub macros and hopefully few prototypes,
3740
 
    which can conflict with char $ac_func(); below.  */
3741
 
#include <assert.h>
3742
 
/* Override any gcc2 internal prototype to avoid an error.  */
3743
 
/* We use char because int might match the return type of a gcc2
3744
 
    builtin and then its argument prototype would still apply.  */
3745
 
char $ac_func();
3746
 
 
3747
 
int main() {
3748
 
 
3749
 
/* The GNU C library defines this for functions which it implements
3750
 
    to always fail with ENOSYS.  Some functions are actually named
3751
 
    something starting with __ and the normal name is an alias.  */
3752
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3753
 
choke me
3754
 
#else
3755
 
$ac_func();
3756
 
#endif
3757
 
 
3758
 
; return 0; }
3759
 
EOF
3760
 
if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3761
 
  rm -rf conftest*
3762
 
  eval "ac_cv_func_$ac_func=yes"
3763
 
else
3764
 
  echo "configure: failed program was:" >&5
3765
 
  cat conftest.$ac_ext >&5
3766
 
  rm -rf conftest*
3767
 
  eval "ac_cv_func_$ac_func=no"
3768
 
fi
3769
 
rm -f conftest*
3770
 
fi
3771
 
 
3772
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3773
 
  echo "$ac_t""yes" 1>&6
3774
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3775
 
  cat >> confdefs.h <<EOF
3776
 
#define $ac_tr_func 1
3777
 
EOF
3778
 
 
3779
 
else
3780
 
  echo "$ac_t""no" 1>&6
3781
 
fi
3782
 
done
3783
 
 
3784
 
 
3785
 
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
3786
 
     for ac_func in stpcpy
3787
 
do
3788
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3789
 
echo "configure:3790: checking for $ac_func" >&5
3790
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3791
 
  echo $ac_n "(cached) $ac_c" 1>&6
3792
 
else
3793
 
  cat > conftest.$ac_ext <<EOF
3794
 
#line 3795 "configure"
3795
 
#include "confdefs.h"
3796
 
/* System header to define __stub macros and hopefully few prototypes,
3797
 
    which can conflict with char $ac_func(); below.  */
3798
 
#include <assert.h>
3799
 
/* Override any gcc2 internal prototype to avoid an error.  */
3800
 
/* We use char because int might match the return type of a gcc2
3801
 
    builtin and then its argument prototype would still apply.  */
3802
 
char $ac_func();
3803
 
 
3804
 
int main() {
3805
 
 
3806
 
/* The GNU C library defines this for functions which it implements
3807
 
    to always fail with ENOSYS.  Some functions are actually named
3808
 
    something starting with __ and the normal name is an alias.  */
3809
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3810
 
choke me
3811
 
#else
3812
 
$ac_func();
3813
 
#endif
3814
 
 
3815
 
; return 0; }
3816
 
EOF
3817
 
if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3818
 
  rm -rf conftest*
3819
 
  eval "ac_cv_func_$ac_func=yes"
3820
 
else
3821
 
  echo "configure: failed program was:" >&5
3822
 
  cat conftest.$ac_ext >&5
3823
 
  rm -rf conftest*
3824
 
  eval "ac_cv_func_$ac_func=no"
3825
 
fi
3826
 
rm -f conftest*
3827
 
fi
3828
 
 
3829
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3830
 
  echo "$ac_t""yes" 1>&6
3831
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3832
 
  cat >> confdefs.h <<EOF
3833
 
#define $ac_tr_func 1
3834
 
EOF
3835
 
 
3836
 
else
3837
 
  echo "$ac_t""no" 1>&6
3838
 
fi
3839
 
done
3840
 
 
3841
 
   fi
3842
 
   if test "${ac_cv_func_stpcpy}" = "yes"; then
3843
 
     cat >> confdefs.h <<\EOF
3844
 
#define HAVE_STPCPY 1
3845
 
EOF
3846
 
 
3847
 
   fi
3848
 
 
3849
 
   if test $ac_cv_header_locale_h = yes; then
3850
 
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3851
 
echo "configure:3852: checking for LC_MESSAGES" >&5
3852
 
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3853
 
  echo $ac_n "(cached) $ac_c" 1>&6
3854
 
else
3855
 
  cat > conftest.$ac_ext <<EOF
3856
 
#line 3857 "configure"
3857
 
#include "confdefs.h"
 
20311
  echo "$as_me: failed program was:" >&5
 
20312
sed 's/^/| /' conftest.$ac_ext >&5
 
20313
 
 
20314
fi
 
20315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20316
done
 
20317
rm -f conftest*
 
20318
if test -n "$ac_declaration"; then
 
20319
  echo '#ifdef __cplusplus' >>confdefs.h
 
20320
  echo $ac_declaration      >>confdefs.h
 
20321
  echo '#endif'             >>confdefs.h
 
20322
fi
 
20323
 
 
20324
else
 
20325
  echo "$as_me: failed program was:" >&5
 
20326
sed 's/^/| /' conftest.$ac_ext >&5
 
20327
 
 
20328
fi
 
20329
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20330
ac_ext=c
 
20331
ac_cpp='$CPP $CPPFLAGS'
 
20332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20335
 
 
20336
depcc="$CC"   am_compiler_list=
 
20337
 
 
20338
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
20339
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
20340
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
20341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20342
else
 
20343
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
20344
  # We make a subdir and do the tests there.  Otherwise we can end up
 
20345
  # making bogus files that we don't know about and never remove.  For
 
20346
  # instance it was reported that on HP-UX the gcc test will end up
 
20347
  # making a dummy file named `D' -- because `-MD' means `put the output
 
20348
  # in D'.
 
20349
  mkdir conftest.dir
 
20350
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
20351
  # using a relative directory.
 
20352
  cp "$am_depcomp" conftest.dir
 
20353
  cd conftest.dir
 
20354
  # We will build objects and dependencies in a subdirectory because
 
20355
  # it helps to detect inapplicable dependency modes.  For instance
 
20356
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
20357
  # side effect of compilation, but ICC will put the dependencies in
 
20358
  # the current directory while Tru64 will put them in the object
 
20359
  # directory.
 
20360
  mkdir sub
 
20361
 
 
20362
  am_cv_CC_dependencies_compiler_type=none
 
20363
  if test "$am_compiler_list" = ""; then
 
20364
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
20365
  fi
 
20366
  for depmode in $am_compiler_list; do
 
20367
    # Setup a source with many dependencies, because some compilers
 
20368
    # like to wrap large dependency lists on column 80 (with \), and
 
20369
    # we should not choose a depcomp mode which is confused by this.
 
20370
    #
 
20371
    # We need to recreate these files for each test, as the compiler may
 
20372
    # overwrite some of them when testing with obscure command lines.
 
20373
    # This happens at least with the AIX C compiler.
 
20374
    : > sub/conftest.c
 
20375
    for i in 1 2 3 4 5 6; do
 
20376
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
20377
      : > sub/conftst$i.h
 
20378
    done
 
20379
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
20380
 
 
20381
    case $depmode in
 
20382
    nosideeffect)
 
20383
      # after this tag, mechanisms are not by side-effect, so they'll
 
20384
      # only be used when explicitly requested
 
20385
      if test "x$enable_dependency_tracking" = xyes; then
 
20386
        continue
 
20387
      else
 
20388
        break
 
20389
      fi
 
20390
      ;;
 
20391
    none) break ;;
 
20392
    esac
 
20393
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
20394
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
20395
    # handle `-M -o', and we need to detect this.
 
20396
    if depmode=$depmode \
 
20397
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
20398
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
20399
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
20400
         >/dev/null 2>conftest.err &&
 
20401
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
20402
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
20403
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
20404
      # icc doesn't choke on unknown options, it will just issue warnings
 
20405
      # (even with -Werror).  So we grep stderr for any message
 
20406
      # that says an option was ignored.
 
20407
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
20408
        am_cv_CC_dependencies_compiler_type=$depmode
 
20409
        break
 
20410
      fi
 
20411
    fi
 
20412
  done
 
20413
 
 
20414
  cd ..
 
20415
  rm -rf conftest.dir
 
20416
else
 
20417
  am_cv_CC_dependencies_compiler_type=none
 
20418
fi
 
20419
 
 
20420
fi
 
20421
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
20422
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
20423
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
20424
 
 
20425
 
 
20426
 
 
20427
if
 
20428
  test "x$enable_dependency_tracking" != xno \
 
20429
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
20430
  am__fastdepCC_TRUE=
 
20431
  am__fastdepCC_FALSE='#'
 
20432
else
 
20433
  am__fastdepCC_TRUE='#'
 
20434
  am__fastdepCC_FALSE=
 
20435
fi
 
20436
 
 
20437
 
 
20438
# Find a good install program.  We prefer a C program (faster),
 
20439
# so one script is as good as another.  But avoid the broken or
 
20440
# incompatible versions:
 
20441
# SysV /etc/install, /usr/sbin/install
 
20442
# SunOS /usr/etc/install
 
20443
# IRIX /sbin/install
 
20444
# AIX /bin/install
 
20445
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
20446
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
20447
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
20448
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
20449
# OS/2's system install, which has a completely different semantic
 
20450
# ./install, which can be erroneously created by make from ./install.sh.
 
20451
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
20452
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
20453
if test -z "$INSTALL"; then
 
20454
if test "${ac_cv_path_install+set}" = set; then
 
20455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20456
else
 
20457
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20458
for as_dir in $PATH
 
20459
do
 
20460
  IFS=$as_save_IFS
 
20461
  test -z "$as_dir" && as_dir=.
 
20462
  # Account for people who put trailing slashes in PATH elements.
 
20463
case $as_dir/ in
 
20464
  ./ | .// | /cC/* | \
 
20465
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
20466
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
20467
  /usr/ucb/* ) ;;
 
20468
  *)
 
20469
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
20470
    # Don't use installbsd from OSF since it installs stuff as root
 
20471
    # by default.
 
20472
    for ac_prog in ginstall scoinst install; do
 
20473
      for ac_exec_ext in '' $ac_executable_extensions; do
 
20474
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
20475
          if test $ac_prog = install &&
 
20476
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
20477
            # AIX install.  It has an incompatible calling convention.
 
20478
            :
 
20479
          elif test $ac_prog = install &&
 
20480
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
20481
            # program-specific install script used by HP pwplus--don't use.
 
20482
            :
 
20483
          else
 
20484
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
20485
            break 3
 
20486
          fi
 
20487
        fi
 
20488
      done
 
20489
    done
 
20490
    ;;
 
20491
esac
 
20492
done
 
20493
 
 
20494
 
 
20495
fi
 
20496
  if test "${ac_cv_path_install+set}" = set; then
 
20497
    INSTALL=$ac_cv_path_install
 
20498
  else
 
20499
    # As a last resort, use the slow shell script.  We don't cache a
 
20500
    # path for INSTALL within a source directory, because that will
 
20501
    # break other packages using the cache if that directory is
 
20502
    # removed, or if the path is relative.
 
20503
    INSTALL=$ac_install_sh
 
20504
  fi
 
20505
fi
 
20506
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
20507
echo "${ECHO_T}$INSTALL" >&6
 
20508
 
 
20509
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
20510
# It thinks the first close brace ends the variable substitution.
 
20511
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
20512
 
 
20513
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
20514
 
 
20515
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
20516
 
 
20517
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
20518
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
20519
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
20520
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
20521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20522
else
 
20523
  cat >conftest.make <<\_ACEOF
 
20524
all:
 
20525
        @echo 'ac_maketemp="$(MAKE)"'
 
20526
_ACEOF
 
20527
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
20528
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
20529
if test -n "$ac_maketemp"; then
 
20530
  eval ac_cv_prog_make_${ac_make}_set=yes
 
20531
else
 
20532
  eval ac_cv_prog_make_${ac_make}_set=no
 
20533
fi
 
20534
rm -f conftest.make
 
20535
fi
 
20536
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
20537
  echo "$as_me:$LINENO: result: yes" >&5
 
20538
echo "${ECHO_T}yes" >&6
 
20539
  SET_MAKE=
 
20540
else
 
20541
  echo "$as_me:$LINENO: result: no" >&5
 
20542
echo "${ECHO_T}no" >&6
 
20543
  SET_MAKE="MAKE=${MAKE-make}"
 
20544
fi
 
20545
 
 
20546
 
 
20547
ACLOCAL_AMFLAGS="$ACLOCAL_FLAGS"
 
20548
 
 
20549
 
 
20550
GETTEXT_PACKAGE=gedit-2.6
 
20551
 
 
20552
 
 
20553
cat >>confdefs.h <<_ACEOF
 
20554
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
20555
_ACEOF
 
20556
 
 
20557
ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko lt lv mi mk ml mn mr ms nb ne nl nn no or pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi wa zh_CN zh_TW"
 
20558
 
 
20559
 
 
20560
for ac_header in locale.h
 
20561
do
 
20562
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20563
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20564
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20565
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20566
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20568
fi
 
20569
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20570
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20571
else
 
20572
  # Is the header compilable?
 
20573
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20574
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20575
cat >conftest.$ac_ext <<_ACEOF
 
20576
/* confdefs.h.  */
 
20577
_ACEOF
 
20578
cat confdefs.h >>conftest.$ac_ext
 
20579
cat >>conftest.$ac_ext <<_ACEOF
 
20580
/* end confdefs.h.  */
 
20581
$ac_includes_default
 
20582
#include <$ac_header>
 
20583
_ACEOF
 
20584
rm -f conftest.$ac_objext
 
20585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20586
  (eval $ac_compile) 2>conftest.er1
 
20587
  ac_status=$?
 
20588
  grep -v '^ *+' conftest.er1 >conftest.err
 
20589
  rm -f conftest.er1
 
20590
  cat conftest.err >&5
 
20591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20592
  (exit $ac_status); } &&
 
20593
         { ac_try='test -z "$ac_c_werror_flag"
 
20594
                         || test ! -s conftest.err'
 
20595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20596
  (eval $ac_try) 2>&5
 
20597
  ac_status=$?
 
20598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20599
  (exit $ac_status); }; } &&
 
20600
         { ac_try='test -s conftest.$ac_objext'
 
20601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20602
  (eval $ac_try) 2>&5
 
20603
  ac_status=$?
 
20604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20605
  (exit $ac_status); }; }; then
 
20606
  ac_header_compiler=yes
 
20607
else
 
20608
  echo "$as_me: failed program was:" >&5
 
20609
sed 's/^/| /' conftest.$ac_ext >&5
 
20610
 
 
20611
ac_header_compiler=no
 
20612
fi
 
20613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20614
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20615
echo "${ECHO_T}$ac_header_compiler" >&6
 
20616
 
 
20617
# Is the header present?
 
20618
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20619
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20620
cat >conftest.$ac_ext <<_ACEOF
 
20621
/* confdefs.h.  */
 
20622
_ACEOF
 
20623
cat confdefs.h >>conftest.$ac_ext
 
20624
cat >>conftest.$ac_ext <<_ACEOF
 
20625
/* end confdefs.h.  */
 
20626
#include <$ac_header>
 
20627
_ACEOF
 
20628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20629
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20630
  ac_status=$?
 
20631
  grep -v '^ *+' conftest.er1 >conftest.err
 
20632
  rm -f conftest.er1
 
20633
  cat conftest.err >&5
 
20634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20635
  (exit $ac_status); } >/dev/null; then
 
20636
  if test -s conftest.err; then
 
20637
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20638
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20639
  else
 
20640
    ac_cpp_err=
 
20641
  fi
 
20642
else
 
20643
  ac_cpp_err=yes
 
20644
fi
 
20645
if test -z "$ac_cpp_err"; then
 
20646
  ac_header_preproc=yes
 
20647
else
 
20648
  echo "$as_me: failed program was:" >&5
 
20649
sed 's/^/| /' conftest.$ac_ext >&5
 
20650
 
 
20651
  ac_header_preproc=no
 
20652
fi
 
20653
rm -f conftest.err conftest.$ac_ext
 
20654
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20655
echo "${ECHO_T}$ac_header_preproc" >&6
 
20656
 
 
20657
# So?  What about this header?
 
20658
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20659
  yes:no: )
 
20660
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20661
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20662
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20663
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20664
    ac_header_preproc=yes
 
20665
    ;;
 
20666
  no:yes:* )
 
20667
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20668
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20669
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20670
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20671
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20672
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20673
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20674
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20675
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20676
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20677
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20678
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20679
    (
 
20680
      cat <<\_ASBOX
 
20681
## -------------------------------------------------------------------- ##
 
20682
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
 
20683
## -------------------------------------------------------------------- ##
 
20684
_ASBOX
 
20685
    ) |
 
20686
      sed "s/^/$as_me: WARNING:     /" >&2
 
20687
    ;;
 
20688
esac
 
20689
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20691
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20693
else
 
20694
  eval "$as_ac_Header=\$ac_header_preproc"
 
20695
fi
 
20696
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20697
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20698
 
 
20699
fi
 
20700
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20701
  cat >>confdefs.h <<_ACEOF
 
20702
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20703
_ACEOF
 
20704
 
 
20705
fi
 
20706
 
 
20707
done
 
20708
 
 
20709
    if test $ac_cv_header_locale_h = yes; then
 
20710
    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
20711
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
20712
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
20713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20714
else
 
20715
  cat >conftest.$ac_ext <<_ACEOF
 
20716
/* confdefs.h.  */
 
20717
_ACEOF
 
20718
cat confdefs.h >>conftest.$ac_ext
 
20719
cat >>conftest.$ac_ext <<_ACEOF
 
20720
/* end confdefs.h.  */
3858
20721
#include <locale.h>
3859
 
int main() {
 
20722
int
 
20723
main ()
 
20724
{
3860
20725
return LC_MESSAGES
3861
 
; return 0; }
3862
 
EOF
3863
 
if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3864
 
  rm -rf conftest*
 
20726
  ;
 
20727
  return 0;
 
20728
}
 
20729
_ACEOF
 
20730
rm -f conftest.$ac_objext conftest$ac_exeext
 
20731
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20732
  (eval $ac_link) 2>conftest.er1
 
20733
  ac_status=$?
 
20734
  grep -v '^ *+' conftest.er1 >conftest.err
 
20735
  rm -f conftest.er1
 
20736
  cat conftest.err >&5
 
20737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20738
  (exit $ac_status); } &&
 
20739
         { ac_try='test -z "$ac_c_werror_flag"
 
20740
                         || test ! -s conftest.err'
 
20741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20742
  (eval $ac_try) 2>&5
 
20743
  ac_status=$?
 
20744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20745
  (exit $ac_status); }; } &&
 
20746
         { ac_try='test -s conftest$ac_exeext'
 
20747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20748
  (eval $ac_try) 2>&5
 
20749
  ac_status=$?
 
20750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20751
  (exit $ac_status); }; }; then
3865
20752
  am_cv_val_LC_MESSAGES=yes
3866
20753
else
3867
 
  echo "configure: failed program was:" >&5
3868
 
  cat conftest.$ac_ext >&5
3869
 
  rm -rf conftest*
3870
 
  am_cv_val_LC_MESSAGES=no
3871
 
fi
3872
 
rm -f conftest*
3873
 
fi
 
20754
  echo "$as_me: failed program was:" >&5
 
20755
sed 's/^/| /' conftest.$ac_ext >&5
3874
20756
 
3875
 
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
 
20757
am_cv_val_LC_MESSAGES=no
 
20758
fi
 
20759
rm -f conftest.err conftest.$ac_objext \
 
20760
      conftest$ac_exeext conftest.$ac_ext
 
20761
fi
 
20762
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
20763
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
3876
20764
    if test $am_cv_val_LC_MESSAGES = yes; then
3877
 
      cat >> confdefs.h <<\EOF
 
20765
 
 
20766
cat >>confdefs.h <<\_ACEOF
3878
20767
#define HAVE_LC_MESSAGES 1
3879
 
EOF
 
20768
_ACEOF
3880
20769
 
3881
20770
    fi
3882
20771
  fi
3883
 
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3884
 
echo "configure:3885: checking whether NLS is requested" >&5
3885
 
        # Check whether --enable-nls or --disable-nls was given.
3886
 
if test "${enable_nls+set}" = set; then
3887
 
  enableval="$enable_nls"
3888
 
  USE_NLS=$enableval
3889
 
else
3890
 
  USE_NLS=yes
3891
 
fi
3892
 
 
3893
 
    echo "$ac_t""$USE_NLS" 1>&6
3894
 
    
3895
 
 
3896
 
    USE_INCLUDED_LIBINTL=no
3897
 
 
3898
 
        if test "$USE_NLS" = "yes"; then
3899
 
#      AC_DEFINE(ENABLE_NLS)
3900
 
#      AC_MSG_CHECKING([whether included gettext is requested])
3901
 
#      AC_ARG_WITH(included-gettext,
3902
 
#        [  --with-included-gettext use the GNU gettext library included here],
3903
 
#        nls_cv_force_use_gnu_gettext=$withval,
3904
 
#        nls_cv_force_use_gnu_gettext=no)
3905
 
#      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
3906
 
      nls_cv_force_use_gnu_gettext="no"
3907
 
 
3908
 
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3909
 
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3910
 
                                        nls_cv_header_intl=
3911
 
        nls_cv_header_libgt=
3912
 
        CATOBJEXT=NONE
3913
 
 
3914
 
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3915
 
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3916
 
echo "configure:3917: checking for libintl.h" >&5
3917
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3918
 
  echo $ac_n "(cached) $ac_c" 1>&6
3919
 
else
3920
 
  cat > conftest.$ac_ext <<EOF
3921
 
#line 3922 "configure"
3922
 
#include "confdefs.h"
3923
 
#include <libintl.h>
3924
 
EOF
3925
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3926
 
{ (eval echo configure:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3927
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3928
 
if test -z "$ac_err"; then
3929
 
  rm -rf conftest*
3930
 
  eval "ac_cv_header_$ac_safe=yes"
3931
 
else
3932
 
  echo "$ac_err" >&5
3933
 
  echo "configure: failed program was:" >&5
3934
 
  cat conftest.$ac_ext >&5
3935
 
  rm -rf conftest*
3936
 
  eval "ac_cv_header_$ac_safe=no"
3937
 
fi
3938
 
rm -f conftest*
3939
 
fi
3940
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3941
 
  echo "$ac_t""yes" 1>&6
3942
 
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3943
 
echo "configure:3944: checking for gettext in libc" >&5
3944
 
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3945
 
  echo $ac_n "(cached) $ac_c" 1>&6
3946
 
else
3947
 
  cat > conftest.$ac_ext <<EOF
3948
 
#line 3949 "configure"
3949
 
#include "confdefs.h"
3950
 
#include <libintl.h>
3951
 
int main() {
3952
 
return (int) gettext ("")
3953
 
; return 0; }
3954
 
EOF
3955
 
if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3956
 
  rm -rf conftest*
3957
 
  gt_cv_func_gettext_libc=yes
3958
 
else
3959
 
  echo "configure: failed program was:" >&5
3960
 
  cat conftest.$ac_ext >&5
3961
 
  rm -rf conftest*
3962
 
  gt_cv_func_gettext_libc=no
3963
 
fi
3964
 
rm -f conftest*
3965
 
fi
3966
 
 
3967
 
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3968
 
 
3969
 
           if test "$gt_cv_func_gettext_libc" != "yes"; then
3970
 
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3971
 
echo "configure:3972: checking for bindtextdomain in -lintl" >&5
3972
 
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3973
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3974
 
  echo $ac_n "(cached) $ac_c" 1>&6
3975
 
else
3976
 
  ac_save_LIBS="$LIBS"
3977
 
LIBS="-lintl  $LIBS"
3978
 
cat > conftest.$ac_ext <<EOF
3979
 
#line 3980 "configure"
3980
 
#include "confdefs.h"
3981
 
/* Override any gcc2 internal prototype to avoid an error.  */
3982
 
/* We use char because int might match the return type of a gcc2
3983
 
    builtin and then its argument prototype would still apply.  */
3984
 
char bindtextdomain();
3985
 
 
3986
 
int main() {
3987
 
bindtextdomain()
3988
 
; return 0; }
3989
 
EOF
3990
 
if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3991
 
  rm -rf conftest*
3992
 
  eval "ac_cv_lib_$ac_lib_var=yes"
3993
 
else
3994
 
  echo "configure: failed program was:" >&5
3995
 
  cat conftest.$ac_ext >&5
3996
 
  rm -rf conftest*
3997
 
  eval "ac_cv_lib_$ac_lib_var=no"
3998
 
fi
3999
 
rm -f conftest*
4000
 
LIBS="$ac_save_LIBS"
4001
 
 
4002
 
fi
4003
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4004
 
  echo "$ac_t""yes" 1>&6
4005
 
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4006
 
echo "configure:4007: checking for gettext in libintl" >&5
4007
 
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4008
 
  echo $ac_n "(cached) $ac_c" 1>&6
4009
 
else
4010
 
  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4011
 
echo "configure:4012: checking for gettext in -lintl" >&5
4012
 
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4013
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4014
 
  echo $ac_n "(cached) $ac_c" 1>&6
4015
 
else
4016
 
  ac_save_LIBS="$LIBS"
4017
 
LIBS="-lintl  $LIBS"
4018
 
cat > conftest.$ac_ext <<EOF
4019
 
#line 4020 "configure"
4020
 
#include "confdefs.h"
4021
 
/* Override any gcc2 internal prototype to avoid an error.  */
4022
 
/* We use char because int might match the return type of a gcc2
4023
 
    builtin and then its argument prototype would still apply.  */
4024
 
char gettext();
4025
 
 
4026
 
int main() {
4027
 
gettext()
4028
 
; return 0; }
4029
 
EOF
4030
 
if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4031
 
  rm -rf conftest*
4032
 
  eval "ac_cv_lib_$ac_lib_var=yes"
4033
 
else
4034
 
  echo "configure: failed program was:" >&5
4035
 
  cat conftest.$ac_ext >&5
4036
 
  rm -rf conftest*
4037
 
  eval "ac_cv_lib_$ac_lib_var=no"
4038
 
fi
4039
 
rm -f conftest*
4040
 
LIBS="$ac_save_LIBS"
4041
 
 
4042
 
fi
4043
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4044
 
  echo "$ac_t""yes" 1>&6
4045
 
  gt_cv_func_gettext_libintl=yes
4046
 
else
4047
 
  echo "$ac_t""no" 1>&6
4048
 
gt_cv_func_gettext_libintl=no
4049
 
fi
4050
 
 
4051
 
fi
4052
 
 
4053
 
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4054
 
else
4055
 
  echo "$ac_t""no" 1>&6
4056
 
fi
4057
 
 
4058
 
           fi
4059
 
 
4060
 
           if test "$gt_cv_func_gettext_libc" = "yes" \
4061
 
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
4062
 
              cat >> confdefs.h <<\EOF
 
20772
     USE_NLS=yes
 
20773
 
 
20774
 
 
20775
    gt_cv_have_gettext=no
 
20776
 
 
20777
    CATOBJEXT=NONE
 
20778
    XGETTEXT=:
 
20779
    INTLLIBS=
 
20780
 
 
20781
    if test "${ac_cv_header_libintl_h+set}" = set; then
 
20782
  echo "$as_me:$LINENO: checking for libintl.h" >&5
 
20783
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
 
20784
if test "${ac_cv_header_libintl_h+set}" = set; then
 
20785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20786
fi
 
20787
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
20788
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
20789
else
 
20790
  # Is the header compilable?
 
20791
echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
20792
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
 
20793
cat >conftest.$ac_ext <<_ACEOF
 
20794
/* confdefs.h.  */
 
20795
_ACEOF
 
20796
cat confdefs.h >>conftest.$ac_ext
 
20797
cat >>conftest.$ac_ext <<_ACEOF
 
20798
/* end confdefs.h.  */
 
20799
$ac_includes_default
 
20800
#include <libintl.h>
 
20801
_ACEOF
 
20802
rm -f conftest.$ac_objext
 
20803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20804
  (eval $ac_compile) 2>conftest.er1
 
20805
  ac_status=$?
 
20806
  grep -v '^ *+' conftest.er1 >conftest.err
 
20807
  rm -f conftest.er1
 
20808
  cat conftest.err >&5
 
20809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20810
  (exit $ac_status); } &&
 
20811
         { ac_try='test -z "$ac_c_werror_flag"
 
20812
                         || test ! -s conftest.err'
 
20813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20814
  (eval $ac_try) 2>&5
 
20815
  ac_status=$?
 
20816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20817
  (exit $ac_status); }; } &&
 
20818
         { ac_try='test -s conftest.$ac_objext'
 
20819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20820
  (eval $ac_try) 2>&5
 
20821
  ac_status=$?
 
20822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20823
  (exit $ac_status); }; }; then
 
20824
  ac_header_compiler=yes
 
20825
else
 
20826
  echo "$as_me: failed program was:" >&5
 
20827
sed 's/^/| /' conftest.$ac_ext >&5
 
20828
 
 
20829
ac_header_compiler=no
 
20830
fi
 
20831
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20832
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20833
echo "${ECHO_T}$ac_header_compiler" >&6
 
20834
 
 
20835
# Is the header present?
 
20836
echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
20837
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
 
20838
cat >conftest.$ac_ext <<_ACEOF
 
20839
/* confdefs.h.  */
 
20840
_ACEOF
 
20841
cat confdefs.h >>conftest.$ac_ext
 
20842
cat >>conftest.$ac_ext <<_ACEOF
 
20843
/* end confdefs.h.  */
 
20844
#include <libintl.h>
 
20845
_ACEOF
 
20846
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20847
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20848
  ac_status=$?
 
20849
  grep -v '^ *+' conftest.er1 >conftest.err
 
20850
  rm -f conftest.er1
 
20851
  cat conftest.err >&5
 
20852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20853
  (exit $ac_status); } >/dev/null; then
 
20854
  if test -s conftest.err; then
 
20855
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20856
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20857
  else
 
20858
    ac_cpp_err=
 
20859
  fi
 
20860
else
 
20861
  ac_cpp_err=yes
 
20862
fi
 
20863
if test -z "$ac_cpp_err"; then
 
20864
  ac_header_preproc=yes
 
20865
else
 
20866
  echo "$as_me: failed program was:" >&5
 
20867
sed 's/^/| /' conftest.$ac_ext >&5
 
20868
 
 
20869
  ac_header_preproc=no
 
20870
fi
 
20871
rm -f conftest.err conftest.$ac_ext
 
20872
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20873
echo "${ECHO_T}$ac_header_preproc" >&6
 
20874
 
 
20875
# So?  What about this header?
 
20876
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20877
  yes:no: )
 
20878
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20879
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20880
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
20881
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
20882
    ac_header_preproc=yes
 
20883
    ;;
 
20884
  no:yes:* )
 
20885
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
20886
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
20887
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
20888
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
20889
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
20890
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
20891
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20892
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20893
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
20894
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
20895
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
20896
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
20897
    (
 
20898
      cat <<\_ASBOX
 
20899
## -------------------------------------------------------------------- ##
 
20900
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
 
20901
## -------------------------------------------------------------------- ##
 
20902
_ASBOX
 
20903
    ) |
 
20904
      sed "s/^/$as_me: WARNING:     /" >&2
 
20905
    ;;
 
20906
esac
 
20907
echo "$as_me:$LINENO: checking for libintl.h" >&5
 
20908
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
 
20909
if test "${ac_cv_header_libintl_h+set}" = set; then
 
20910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20911
else
 
20912
  ac_cv_header_libintl_h=$ac_header_preproc
 
20913
fi
 
20914
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
20915
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
20916
 
 
20917
fi
 
20918
if test $ac_cv_header_libintl_h = yes; then
 
20919
  gt_cv_func_dgettext_libintl="no"
 
20920
      libintl_extra_libs=""
 
20921
 
 
20922
      #
 
20923
      # First check in libc
 
20924
      #
 
20925
      echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 
20926
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
 
20927
if test "${gt_cv_func_ngettext_libc+set}" = set; then
 
20928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20929
else
 
20930
  cat >conftest.$ac_ext <<_ACEOF
 
20931
/* confdefs.h.  */
 
20932
_ACEOF
 
20933
cat confdefs.h >>conftest.$ac_ext
 
20934
cat >>conftest.$ac_ext <<_ACEOF
 
20935
/* end confdefs.h.  */
 
20936
 
 
20937
#include <libintl.h>
 
20938
 
 
20939
int
 
20940
main ()
 
20941
{
 
20942
return (int) ngettext ("","", 1)
 
20943
  ;
 
20944
  return 0;
 
20945
}
 
20946
_ACEOF
 
20947
rm -f conftest.$ac_objext conftest$ac_exeext
 
20948
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20949
  (eval $ac_link) 2>conftest.er1
 
20950
  ac_status=$?
 
20951
  grep -v '^ *+' conftest.er1 >conftest.err
 
20952
  rm -f conftest.er1
 
20953
  cat conftest.err >&5
 
20954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20955
  (exit $ac_status); } &&
 
20956
         { ac_try='test -z "$ac_c_werror_flag"
 
20957
                         || test ! -s conftest.err'
 
20958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20959
  (eval $ac_try) 2>&5
 
20960
  ac_status=$?
 
20961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20962
  (exit $ac_status); }; } &&
 
20963
         { ac_try='test -s conftest$ac_exeext'
 
20964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20965
  (eval $ac_try) 2>&5
 
20966
  ac_status=$?
 
20967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20968
  (exit $ac_status); }; }; then
 
20969
  gt_cv_func_ngettext_libc=yes
 
20970
else
 
20971
  echo "$as_me: failed program was:" >&5
 
20972
sed 's/^/| /' conftest.$ac_ext >&5
 
20973
 
 
20974
gt_cv_func_ngettext_libc=no
 
20975
fi
 
20976
rm -f conftest.err conftest.$ac_objext \
 
20977
      conftest$ac_exeext conftest.$ac_ext
 
20978
 
 
20979
fi
 
20980
echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 
20981
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
 
20982
 
 
20983
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
20984
              echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 
20985
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
 
20986
if test "${gt_cv_func_dgettext_libc+set}" = set; then
 
20987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20988
else
 
20989
  cat >conftest.$ac_ext <<_ACEOF
 
20990
/* confdefs.h.  */
 
20991
_ACEOF
 
20992
cat confdefs.h >>conftest.$ac_ext
 
20993
cat >>conftest.$ac_ext <<_ACEOF
 
20994
/* end confdefs.h.  */
 
20995
 
 
20996
#include <libintl.h>
 
20997
 
 
20998
int
 
20999
main ()
 
21000
{
 
21001
return (int) dgettext ("","")
 
21002
  ;
 
21003
  return 0;
 
21004
}
 
21005
_ACEOF
 
21006
rm -f conftest.$ac_objext conftest$ac_exeext
 
21007
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21008
  (eval $ac_link) 2>conftest.er1
 
21009
  ac_status=$?
 
21010
  grep -v '^ *+' conftest.er1 >conftest.err
 
21011
  rm -f conftest.er1
 
21012
  cat conftest.err >&5
 
21013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21014
  (exit $ac_status); } &&
 
21015
         { ac_try='test -z "$ac_c_werror_flag"
 
21016
                         || test ! -s conftest.err'
 
21017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21018
  (eval $ac_try) 2>&5
 
21019
  ac_status=$?
 
21020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21021
  (exit $ac_status); }; } &&
 
21022
         { ac_try='test -s conftest$ac_exeext'
 
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); }; }; then
 
21028
  gt_cv_func_dgettext_libc=yes
 
21029
else
 
21030
  echo "$as_me: failed program was:" >&5
 
21031
sed 's/^/| /' conftest.$ac_ext >&5
 
21032
 
 
21033
gt_cv_func_dgettext_libc=no
 
21034
fi
 
21035
rm -f conftest.err conftest.$ac_objext \
 
21036
      conftest$ac_exeext conftest.$ac_ext
 
21037
 
 
21038
fi
 
21039
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 
21040
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
 
21041
      fi
 
21042
 
 
21043
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
21044
 
 
21045
for ac_func in bind_textdomain_codeset
 
21046
do
 
21047
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21048
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21049
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21050
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21052
else
 
21053
  cat >conftest.$ac_ext <<_ACEOF
 
21054
/* confdefs.h.  */
 
21055
_ACEOF
 
21056
cat confdefs.h >>conftest.$ac_ext
 
21057
cat >>conftest.$ac_ext <<_ACEOF
 
21058
/* end confdefs.h.  */
 
21059
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21060
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21061
#define $ac_func innocuous_$ac_func
 
21062
 
 
21063
/* System header to define __stub macros and hopefully few prototypes,
 
21064
    which can conflict with char $ac_func (); below.
 
21065
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21066
    <limits.h> exists even on freestanding compilers.  */
 
21067
 
 
21068
#ifdef __STDC__
 
21069
# include <limits.h>
 
21070
#else
 
21071
# include <assert.h>
 
21072
#endif
 
21073
 
 
21074
#undef $ac_func
 
21075
 
 
21076
/* Override any gcc2 internal prototype to avoid an error.  */
 
21077
#ifdef __cplusplus
 
21078
extern "C"
 
21079
{
 
21080
#endif
 
21081
/* We use char because int might match the return type of a gcc2
 
21082
   builtin and then its argument prototype would still apply.  */
 
21083
char $ac_func ();
 
21084
/* The GNU C library defines this for functions which it implements
 
21085
    to always fail with ENOSYS.  Some functions are actually named
 
21086
    something starting with __ and the normal name is an alias.  */
 
21087
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21088
choke me
 
21089
#else
 
21090
char (*f) () = $ac_func;
 
21091
#endif
 
21092
#ifdef __cplusplus
 
21093
}
 
21094
#endif
 
21095
 
 
21096
int
 
21097
main ()
 
21098
{
 
21099
return f != $ac_func;
 
21100
  ;
 
21101
  return 0;
 
21102
}
 
21103
_ACEOF
 
21104
rm -f conftest.$ac_objext conftest$ac_exeext
 
21105
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21106
  (eval $ac_link) 2>conftest.er1
 
21107
  ac_status=$?
 
21108
  grep -v '^ *+' conftest.er1 >conftest.err
 
21109
  rm -f conftest.er1
 
21110
  cat conftest.err >&5
 
21111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21112
  (exit $ac_status); } &&
 
21113
         { ac_try='test -z "$ac_c_werror_flag"
 
21114
                         || test ! -s conftest.err'
 
21115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21116
  (eval $ac_try) 2>&5
 
21117
  ac_status=$?
 
21118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21119
  (exit $ac_status); }; } &&
 
21120
         { ac_try='test -s conftest$ac_exeext'
 
21121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21122
  (eval $ac_try) 2>&5
 
21123
  ac_status=$?
 
21124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21125
  (exit $ac_status); }; }; then
 
21126
  eval "$as_ac_var=yes"
 
21127
else
 
21128
  echo "$as_me: failed program was:" >&5
 
21129
sed 's/^/| /' conftest.$ac_ext >&5
 
21130
 
 
21131
eval "$as_ac_var=no"
 
21132
fi
 
21133
rm -f conftest.err conftest.$ac_objext \
 
21134
      conftest$ac_exeext conftest.$ac_ext
 
21135
fi
 
21136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21137
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21138
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21139
  cat >>confdefs.h <<_ACEOF
 
21140
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21141
_ACEOF
 
21142
 
 
21143
fi
 
21144
done
 
21145
 
 
21146
      fi
 
21147
 
 
21148
      #
 
21149
      # If we don't have everything we want, check in libintl
 
21150
      #
 
21151
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
21152
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
21153
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
21154
 
 
21155
        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 
21156
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
 
21157
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 
21158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21159
else
 
21160
  ac_check_lib_save_LIBS=$LIBS
 
21161
LIBS="-lintl  $LIBS"
 
21162
cat >conftest.$ac_ext <<_ACEOF
 
21163
/* confdefs.h.  */
 
21164
_ACEOF
 
21165
cat confdefs.h >>conftest.$ac_ext
 
21166
cat >>conftest.$ac_ext <<_ACEOF
 
21167
/* end confdefs.h.  */
 
21168
 
 
21169
/* Override any gcc2 internal prototype to avoid an error.  */
 
21170
#ifdef __cplusplus
 
21171
extern "C"
 
21172
#endif
 
21173
/* We use char because int might match the return type of a gcc2
 
21174
   builtin and then its argument prototype would still apply.  */
 
21175
char bindtextdomain ();
 
21176
int
 
21177
main ()
 
21178
{
 
21179
bindtextdomain ();
 
21180
  ;
 
21181
  return 0;
 
21182
}
 
21183
_ACEOF
 
21184
rm -f conftest.$ac_objext conftest$ac_exeext
 
21185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21186
  (eval $ac_link) 2>conftest.er1
 
21187
  ac_status=$?
 
21188
  grep -v '^ *+' conftest.er1 >conftest.err
 
21189
  rm -f conftest.er1
 
21190
  cat conftest.err >&5
 
21191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21192
  (exit $ac_status); } &&
 
21193
         { ac_try='test -z "$ac_c_werror_flag"
 
21194
                         || test ! -s conftest.err'
 
21195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21196
  (eval $ac_try) 2>&5
 
21197
  ac_status=$?
 
21198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21199
  (exit $ac_status); }; } &&
 
21200
         { ac_try='test -s conftest$ac_exeext'
 
21201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21202
  (eval $ac_try) 2>&5
 
21203
  ac_status=$?
 
21204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21205
  (exit $ac_status); }; }; then
 
21206
  ac_cv_lib_intl_bindtextdomain=yes
 
21207
else
 
21208
  echo "$as_me: failed program was:" >&5
 
21209
sed 's/^/| /' conftest.$ac_ext >&5
 
21210
 
 
21211
ac_cv_lib_intl_bindtextdomain=no
 
21212
fi
 
21213
rm -f conftest.err conftest.$ac_objext \
 
21214
      conftest$ac_exeext conftest.$ac_ext
 
21215
LIBS=$ac_check_lib_save_LIBS
 
21216
fi
 
21217
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
21218
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
 
21219
if test $ac_cv_lib_intl_bindtextdomain = yes; then
 
21220
  echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
21221
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
 
21222
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
21223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21224
else
 
21225
  ac_check_lib_save_LIBS=$LIBS
 
21226
LIBS="-lintl  $LIBS"
 
21227
cat >conftest.$ac_ext <<_ACEOF
 
21228
/* confdefs.h.  */
 
21229
_ACEOF
 
21230
cat confdefs.h >>conftest.$ac_ext
 
21231
cat >>conftest.$ac_ext <<_ACEOF
 
21232
/* end confdefs.h.  */
 
21233
 
 
21234
/* Override any gcc2 internal prototype to avoid an error.  */
 
21235
#ifdef __cplusplus
 
21236
extern "C"
 
21237
#endif
 
21238
/* We use char because int might match the return type of a gcc2
 
21239
   builtin and then its argument prototype would still apply.  */
 
21240
char ngettext ();
 
21241
int
 
21242
main ()
 
21243
{
 
21244
ngettext ();
 
21245
  ;
 
21246
  return 0;
 
21247
}
 
21248
_ACEOF
 
21249
rm -f conftest.$ac_objext conftest$ac_exeext
 
21250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21251
  (eval $ac_link) 2>conftest.er1
 
21252
  ac_status=$?
 
21253
  grep -v '^ *+' conftest.er1 >conftest.err
 
21254
  rm -f conftest.er1
 
21255
  cat conftest.err >&5
 
21256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21257
  (exit $ac_status); } &&
 
21258
         { ac_try='test -z "$ac_c_werror_flag"
 
21259
                         || test ! -s conftest.err'
 
21260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21261
  (eval $ac_try) 2>&5
 
21262
  ac_status=$?
 
21263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21264
  (exit $ac_status); }; } &&
 
21265
         { ac_try='test -s conftest$ac_exeext'
 
21266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21267
  (eval $ac_try) 2>&5
 
21268
  ac_status=$?
 
21269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21270
  (exit $ac_status); }; }; then
 
21271
  ac_cv_lib_intl_ngettext=yes
 
21272
else
 
21273
  echo "$as_me: failed program was:" >&5
 
21274
sed 's/^/| /' conftest.$ac_ext >&5
 
21275
 
 
21276
ac_cv_lib_intl_ngettext=no
 
21277
fi
 
21278
rm -f conftest.err conftest.$ac_objext \
 
21279
      conftest$ac_exeext conftest.$ac_ext
 
21280
LIBS=$ac_check_lib_save_LIBS
 
21281
fi
 
21282
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
21283
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
 
21284
if test $ac_cv_lib_intl_ngettext = yes; then
 
21285
  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 
21286
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
 
21287
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 
21288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21289
else
 
21290
  ac_check_lib_save_LIBS=$LIBS
 
21291
LIBS="-lintl  $LIBS"
 
21292
cat >conftest.$ac_ext <<_ACEOF
 
21293
/* confdefs.h.  */
 
21294
_ACEOF
 
21295
cat confdefs.h >>conftest.$ac_ext
 
21296
cat >>conftest.$ac_ext <<_ACEOF
 
21297
/* end confdefs.h.  */
 
21298
 
 
21299
/* Override any gcc2 internal prototype to avoid an error.  */
 
21300
#ifdef __cplusplus
 
21301
extern "C"
 
21302
#endif
 
21303
/* We use char because int might match the return type of a gcc2
 
21304
   builtin and then its argument prototype would still apply.  */
 
21305
char dgettext ();
 
21306
int
 
21307
main ()
 
21308
{
 
21309
dgettext ();
 
21310
  ;
 
21311
  return 0;
 
21312
}
 
21313
_ACEOF
 
21314
rm -f conftest.$ac_objext conftest$ac_exeext
 
21315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21316
  (eval $ac_link) 2>conftest.er1
 
21317
  ac_status=$?
 
21318
  grep -v '^ *+' conftest.er1 >conftest.err
 
21319
  rm -f conftest.er1
 
21320
  cat conftest.err >&5
 
21321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21322
  (exit $ac_status); } &&
 
21323
         { ac_try='test -z "$ac_c_werror_flag"
 
21324
                         || test ! -s conftest.err'
 
21325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21326
  (eval $ac_try) 2>&5
 
21327
  ac_status=$?
 
21328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21329
  (exit $ac_status); }; } &&
 
21330
         { ac_try='test -s conftest$ac_exeext'
 
21331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21332
  (eval $ac_try) 2>&5
 
21333
  ac_status=$?
 
21334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21335
  (exit $ac_status); }; }; then
 
21336
  ac_cv_lib_intl_dgettext=yes
 
21337
else
 
21338
  echo "$as_me: failed program was:" >&5
 
21339
sed 's/^/| /' conftest.$ac_ext >&5
 
21340
 
 
21341
ac_cv_lib_intl_dgettext=no
 
21342
fi
 
21343
rm -f conftest.err conftest.$ac_objext \
 
21344
      conftest$ac_exeext conftest.$ac_ext
 
21345
LIBS=$ac_check_lib_save_LIBS
 
21346
fi
 
21347
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 
21348
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
 
21349
if test $ac_cv_lib_intl_dgettext = yes; then
 
21350
  gt_cv_func_dgettext_libintl=yes
 
21351
fi
 
21352
 
 
21353
fi
 
21354
 
 
21355
fi
 
21356
 
 
21357
 
 
21358
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
21359
          echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 
21360
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
 
21361
          echo "$as_me:$LINENO: result: " >&5
 
21362
echo "${ECHO_T}" >&6
 
21363
          echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
21364
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
 
21365
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
21366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21367
else
 
21368
  ac_check_lib_save_LIBS=$LIBS
 
21369
LIBS="-lintl -liconv $LIBS"
 
21370
cat >conftest.$ac_ext <<_ACEOF
 
21371
/* confdefs.h.  */
 
21372
_ACEOF
 
21373
cat confdefs.h >>conftest.$ac_ext
 
21374
cat >>conftest.$ac_ext <<_ACEOF
 
21375
/* end confdefs.h.  */
 
21376
 
 
21377
/* Override any gcc2 internal prototype to avoid an error.  */
 
21378
#ifdef __cplusplus
 
21379
extern "C"
 
21380
#endif
 
21381
/* We use char because int might match the return type of a gcc2
 
21382
   builtin and then its argument prototype would still apply.  */
 
21383
char ngettext ();
 
21384
int
 
21385
main ()
 
21386
{
 
21387
ngettext ();
 
21388
  ;
 
21389
  return 0;
 
21390
}
 
21391
_ACEOF
 
21392
rm -f conftest.$ac_objext conftest$ac_exeext
 
21393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21394
  (eval $ac_link) 2>conftest.er1
 
21395
  ac_status=$?
 
21396
  grep -v '^ *+' conftest.er1 >conftest.err
 
21397
  rm -f conftest.er1
 
21398
  cat conftest.err >&5
 
21399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21400
  (exit $ac_status); } &&
 
21401
         { ac_try='test -z "$ac_c_werror_flag"
 
21402
                         || test ! -s conftest.err'
 
21403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21404
  (eval $ac_try) 2>&5
 
21405
  ac_status=$?
 
21406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21407
  (exit $ac_status); }; } &&
 
21408
         { ac_try='test -s conftest$ac_exeext'
 
21409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21410
  (eval $ac_try) 2>&5
 
21411
  ac_status=$?
 
21412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21413
  (exit $ac_status); }; }; then
 
21414
  ac_cv_lib_intl_ngettext=yes
 
21415
else
 
21416
  echo "$as_me: failed program was:" >&5
 
21417
sed 's/^/| /' conftest.$ac_ext >&5
 
21418
 
 
21419
ac_cv_lib_intl_ngettext=no
 
21420
fi
 
21421
rm -f conftest.err conftest.$ac_objext \
 
21422
      conftest$ac_exeext conftest.$ac_ext
 
21423
LIBS=$ac_check_lib_save_LIBS
 
21424
fi
 
21425
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
21426
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
 
21427
if test $ac_cv_lib_intl_ngettext = yes; then
 
21428
  echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
21429
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
 
21430
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 
21431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21432
else
 
21433
  ac_check_lib_save_LIBS=$LIBS
 
21434
LIBS="-lintl -liconv $LIBS"
 
21435
cat >conftest.$ac_ext <<_ACEOF
 
21436
/* confdefs.h.  */
 
21437
_ACEOF
 
21438
cat confdefs.h >>conftest.$ac_ext
 
21439
cat >>conftest.$ac_ext <<_ACEOF
 
21440
/* end confdefs.h.  */
 
21441
 
 
21442
/* Override any gcc2 internal prototype to avoid an error.  */
 
21443
#ifdef __cplusplus
 
21444
extern "C"
 
21445
#endif
 
21446
/* We use char because int might match the return type of a gcc2
 
21447
   builtin and then its argument prototype would still apply.  */
 
21448
char dcgettext ();
 
21449
int
 
21450
main ()
 
21451
{
 
21452
dcgettext ();
 
21453
  ;
 
21454
  return 0;
 
21455
}
 
21456
_ACEOF
 
21457
rm -f conftest.$ac_objext conftest$ac_exeext
 
21458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21459
  (eval $ac_link) 2>conftest.er1
 
21460
  ac_status=$?
 
21461
  grep -v '^ *+' conftest.er1 >conftest.err
 
21462
  rm -f conftest.er1
 
21463
  cat conftest.err >&5
 
21464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21465
  (exit $ac_status); } &&
 
21466
         { ac_try='test -z "$ac_c_werror_flag"
 
21467
                         || test ! -s conftest.err'
 
21468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21469
  (eval $ac_try) 2>&5
 
21470
  ac_status=$?
 
21471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21472
  (exit $ac_status); }; } &&
 
21473
         { ac_try='test -s conftest$ac_exeext'
 
21474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21475
  (eval $ac_try) 2>&5
 
21476
  ac_status=$?
 
21477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21478
  (exit $ac_status); }; }; then
 
21479
  ac_cv_lib_intl_dcgettext=yes
 
21480
else
 
21481
  echo "$as_me: failed program was:" >&5
 
21482
sed 's/^/| /' conftest.$ac_ext >&5
 
21483
 
 
21484
ac_cv_lib_intl_dcgettext=no
 
21485
fi
 
21486
rm -f conftest.err conftest.$ac_objext \
 
21487
      conftest$ac_exeext conftest.$ac_ext
 
21488
LIBS=$ac_check_lib_save_LIBS
 
21489
fi
 
21490
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 
21491
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
 
21492
if test $ac_cv_lib_intl_dcgettext = yes; then
 
21493
  gt_cv_func_dgettext_libintl=yes
 
21494
                        libintl_extra_libs=-liconv
 
21495
else
 
21496
  :
 
21497
fi
 
21498
 
 
21499
else
 
21500
  :
 
21501
fi
 
21502
 
 
21503
        fi
 
21504
 
 
21505
        #
 
21506
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
21507
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
21508
        # and both have dgettext and ngettext
 
21509
        #
 
21510
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
21511
          glib_save_LIBS="$LIBS"
 
21512
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
21513
          unset ac_cv_func_bind_textdomain_codeset
 
21514
 
 
21515
for ac_func in bind_textdomain_codeset
 
21516
do
 
21517
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21518
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21519
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21520
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21522
else
 
21523
  cat >conftest.$ac_ext <<_ACEOF
 
21524
/* confdefs.h.  */
 
21525
_ACEOF
 
21526
cat confdefs.h >>conftest.$ac_ext
 
21527
cat >>conftest.$ac_ext <<_ACEOF
 
21528
/* end confdefs.h.  */
 
21529
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21530
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21531
#define $ac_func innocuous_$ac_func
 
21532
 
 
21533
/* System header to define __stub macros and hopefully few prototypes,
 
21534
    which can conflict with char $ac_func (); below.
 
21535
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21536
    <limits.h> exists even on freestanding compilers.  */
 
21537
 
 
21538
#ifdef __STDC__
 
21539
# include <limits.h>
 
21540
#else
 
21541
# include <assert.h>
 
21542
#endif
 
21543
 
 
21544
#undef $ac_func
 
21545
 
 
21546
/* Override any gcc2 internal prototype to avoid an error.  */
 
21547
#ifdef __cplusplus
 
21548
extern "C"
 
21549
{
 
21550
#endif
 
21551
/* We use char because int might match the return type of a gcc2
 
21552
   builtin and then its argument prototype would still apply.  */
 
21553
char $ac_func ();
 
21554
/* The GNU C library defines this for functions which it implements
 
21555
    to always fail with ENOSYS.  Some functions are actually named
 
21556
    something starting with __ and the normal name is an alias.  */
 
21557
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21558
choke me
 
21559
#else
 
21560
char (*f) () = $ac_func;
 
21561
#endif
 
21562
#ifdef __cplusplus
 
21563
}
 
21564
#endif
 
21565
 
 
21566
int
 
21567
main ()
 
21568
{
 
21569
return f != $ac_func;
 
21570
  ;
 
21571
  return 0;
 
21572
}
 
21573
_ACEOF
 
21574
rm -f conftest.$ac_objext conftest$ac_exeext
 
21575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21576
  (eval $ac_link) 2>conftest.er1
 
21577
  ac_status=$?
 
21578
  grep -v '^ *+' conftest.er1 >conftest.err
 
21579
  rm -f conftest.er1
 
21580
  cat conftest.err >&5
 
21581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21582
  (exit $ac_status); } &&
 
21583
         { ac_try='test -z "$ac_c_werror_flag"
 
21584
                         || test ! -s conftest.err'
 
21585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21586
  (eval $ac_try) 2>&5
 
21587
  ac_status=$?
 
21588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21589
  (exit $ac_status); }; } &&
 
21590
         { ac_try='test -s conftest$ac_exeext'
 
21591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21592
  (eval $ac_try) 2>&5
 
21593
  ac_status=$?
 
21594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21595
  (exit $ac_status); }; }; then
 
21596
  eval "$as_ac_var=yes"
 
21597
else
 
21598
  echo "$as_me: failed program was:" >&5
 
21599
sed 's/^/| /' conftest.$ac_ext >&5
 
21600
 
 
21601
eval "$as_ac_var=no"
 
21602
fi
 
21603
rm -f conftest.err conftest.$ac_objext \
 
21604
      conftest$ac_exeext conftest.$ac_ext
 
21605
fi
 
21606
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21607
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21608
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21609
  cat >>confdefs.h <<_ACEOF
 
21610
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21611
_ACEOF
 
21612
 
 
21613
fi
 
21614
done
 
21615
 
 
21616
          LIBS="$glib_save_LIBS"
 
21617
 
 
21618
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
21619
            gt_cv_func_dgettext_libc=no
 
21620
          else
 
21621
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
21622
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
21623
              gt_cv_func_dgettext_libintl=no
 
21624
            fi
 
21625
          fi
 
21626
        fi
 
21627
      fi
 
21628
 
 
21629
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
21630
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
21631
        gt_cv_have_gettext=yes
 
21632
      fi
 
21633
 
 
21634
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
21635
        INTLLIBS="-lintl $libintl_extra_libs"
 
21636
      fi
 
21637
 
 
21638
      if test "$gt_cv_have_gettext" = "yes"; then
 
21639
 
 
21640
cat >>confdefs.h <<\_ACEOF
4063
21641
#define HAVE_GETTEXT 1
4064
 
EOF
 
21642
_ACEOF
4065
21643
 
4066
 
              # Extract the first word of "msgfmt", so it can be a program name with args.
 
21644
        # Extract the first word of "msgfmt", so it can be a program name with args.
4067
21645
set dummy msgfmt; ac_word=$2
4068
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4069
 
echo "configure:4070: checking for $ac_word" >&5
4070
 
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4071
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21646
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21648
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
21649
  echo $ECHO_N "(cached) $ECHO_C" >&6
4072
21650
else
4073
21651
  case "$MSGFMT" in
4074
21652
  /*)
4091
21669
esac
4092
21670
fi
4093
21671
MSGFMT="$ac_cv_path_MSGFMT"
4094
 
if test -n "$MSGFMT"; then
4095
 
  echo "$ac_t""$MSGFMT" 1>&6
 
21672
if test "$MSGFMT" != "no"; then
 
21673
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
21674
echo "${ECHO_T}$MSGFMT" >&6
4096
21675
else
4097
 
  echo "$ac_t""no" 1>&6
 
21676
  echo "$as_me:$LINENO: result: no" >&5
 
21677
echo "${ECHO_T}no" >&6
4098
21678
fi
4099
 
              if test "$MSGFMT" != "no"; then
4100
 
                for ac_func in dcgettext
 
21679
        if test "$MSGFMT" != "no"; then
 
21680
          glib_save_LIBS="$LIBS"
 
21681
          LIBS="$LIBS $INTLLIBS"
 
21682
 
 
21683
for ac_func in dcgettext
4101
21684
do
4102
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4103
 
echo "configure:4104: checking for $ac_func" >&5
4104
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4105
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21685
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21686
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21687
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21688
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21689
  echo $ECHO_N "(cached) $ECHO_C" >&6
4106
21690
else
4107
 
  cat > conftest.$ac_ext <<EOF
4108
 
#line 4109 "configure"
4109
 
#include "confdefs.h"
 
21691
  cat >conftest.$ac_ext <<_ACEOF
 
21692
/* confdefs.h.  */
 
21693
_ACEOF
 
21694
cat confdefs.h >>conftest.$ac_ext
 
21695
cat >>conftest.$ac_ext <<_ACEOF
 
21696
/* end confdefs.h.  */
 
21697
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21698
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21699
#define $ac_func innocuous_$ac_func
 
21700
 
4110
21701
/* System header to define __stub macros and hopefully few prototypes,
4111
 
    which can conflict with char $ac_func(); below.  */
4112
 
#include <assert.h>
 
21702
    which can conflict with char $ac_func (); below.
 
21703
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21704
    <limits.h> exists even on freestanding compilers.  */
 
21705
 
 
21706
#ifdef __STDC__
 
21707
# include <limits.h>
 
21708
#else
 
21709
# include <assert.h>
 
21710
#endif
 
21711
 
 
21712
#undef $ac_func
 
21713
 
4113
21714
/* Override any gcc2 internal prototype to avoid an error.  */
 
21715
#ifdef __cplusplus
 
21716
extern "C"
 
21717
{
 
21718
#endif
4114
21719
/* We use char because int might match the return type of a gcc2
4115
 
    builtin and then its argument prototype would still apply.  */
4116
 
char $ac_func();
4117
 
 
4118
 
int main() {
4119
 
 
 
21720
   builtin and then its argument prototype would still apply.  */
 
21721
char $ac_func ();
4120
21722
/* The GNU C library defines this for functions which it implements
4121
21723
    to always fail with ENOSYS.  Some functions are actually named
4122
21724
    something starting with __ and the normal name is an alias.  */
4123
21725
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4124
21726
choke me
4125
21727
#else
4126
 
$ac_func();
4127
 
#endif
4128
 
 
4129
 
; return 0; }
4130
 
EOF
4131
 
if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4132
 
  rm -rf conftest*
4133
 
  eval "ac_cv_func_$ac_func=yes"
4134
 
else
4135
 
  echo "configure: failed program was:" >&5
4136
 
  cat conftest.$ac_ext >&5
4137
 
  rm -rf conftest*
4138
 
  eval "ac_cv_func_$ac_func=no"
4139
 
fi
4140
 
rm -f conftest*
4141
 
fi
4142
 
 
4143
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4144
 
  echo "$ac_t""yes" 1>&6
4145
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4146
 
  cat >> confdefs.h <<EOF
4147
 
#define $ac_tr_func 1
4148
 
EOF
4149
 
 
4150
 
else
4151
 
  echo "$ac_t""no" 1>&6
 
21728
char (*f) () = $ac_func;
 
21729
#endif
 
21730
#ifdef __cplusplus
 
21731
}
 
21732
#endif
 
21733
 
 
21734
int
 
21735
main ()
 
21736
{
 
21737
return f != $ac_func;
 
21738
  ;
 
21739
  return 0;
 
21740
}
 
21741
_ACEOF
 
21742
rm -f conftest.$ac_objext conftest$ac_exeext
 
21743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21744
  (eval $ac_link) 2>conftest.er1
 
21745
  ac_status=$?
 
21746
  grep -v '^ *+' conftest.er1 >conftest.err
 
21747
  rm -f conftest.er1
 
21748
  cat conftest.err >&5
 
21749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21750
  (exit $ac_status); } &&
 
21751
         { ac_try='test -z "$ac_c_werror_flag"
 
21752
                         || test ! -s conftest.err'
 
21753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21754
  (eval $ac_try) 2>&5
 
21755
  ac_status=$?
 
21756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21757
  (exit $ac_status); }; } &&
 
21758
         { ac_try='test -s conftest$ac_exeext'
 
21759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21760
  (eval $ac_try) 2>&5
 
21761
  ac_status=$?
 
21762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21763
  (exit $ac_status); }; }; then
 
21764
  eval "$as_ac_var=yes"
 
21765
else
 
21766
  echo "$as_me: failed program was:" >&5
 
21767
sed 's/^/| /' conftest.$ac_ext >&5
 
21768
 
 
21769
eval "$as_ac_var=no"
 
21770
fi
 
21771
rm -f conftest.err conftest.$ac_objext \
 
21772
      conftest$ac_exeext conftest.$ac_ext
 
21773
fi
 
21774
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21775
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21776
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21777
  cat >>confdefs.h <<_ACEOF
 
21778
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21779
_ACEOF
 
21780
 
4152
21781
fi
4153
21782
done
4154
21783
 
4155
 
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21784
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
4156
21785
set dummy gmsgfmt; ac_word=$2
4157
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4158
 
echo "configure:4159: checking for $ac_word" >&5
4159
 
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4160
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21786
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21788
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21789
  echo $ECHO_N "(cached) $ECHO_C" >&6
4161
21790
else
4162
 
  case "$GMSGFMT" in
4163
 
  /*)
 
21791
  case $GMSGFMT in
 
21792
  [\\/]* | ?:[\\/]*)
4164
21793
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4165
21794
  ;;
4166
 
  ?:/*)                  
4167
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4168
 
  ;;
4169
21795
  *)
4170
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4171
 
  ac_dummy="$PATH"
4172
 
  for ac_dir in $ac_dummy; do 
4173
 
    test -z "$ac_dir" && ac_dir=.
4174
 
    if test -f $ac_dir/$ac_word; then
4175
 
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4176
 
      break
4177
 
    fi
4178
 
  done
4179
 
  IFS="$ac_save_ifs"
 
21796
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21797
for as_dir in $PATH
 
21798
do
 
21799
  IFS=$as_save_IFS
 
21800
  test -z "$as_dir" && as_dir=.
 
21801
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21802
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21803
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21804
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21805
    break 2
 
21806
  fi
 
21807
done
 
21808
done
 
21809
 
4180
21810
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4181
21811
  ;;
4182
21812
esac
4183
21813
fi
4184
 
GMSGFMT="$ac_cv_path_GMSGFMT"
 
21814
GMSGFMT=$ac_cv_path_GMSGFMT
 
21815
 
4185
21816
if test -n "$GMSGFMT"; then
4186
 
  echo "$ac_t""$GMSGFMT" 1>&6
 
21817
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21818
echo "${ECHO_T}$GMSGFMT" >&6
4187
21819
else
4188
 
  echo "$ac_t""no" 1>&6
 
21820
  echo "$as_me:$LINENO: result: no" >&5
 
21821
echo "${ECHO_T}no" >&6
4189
21822
fi
4190
21823
 
4191
 
                # Extract the first word of "xgettext", so it can be a program name with args.
 
21824
          # Extract the first word of "xgettext", so it can be a program name with args.
4192
21825
set dummy xgettext; ac_word=$2
4193
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4194
 
echo "configure:4195: checking for $ac_word" >&5
4195
 
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4196
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21826
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21827
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21828
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21829
  echo $ECHO_N "(cached) $ECHO_C" >&6
4197
21830
else
4198
21831
  case "$XGETTEXT" in
4199
21832
  /*)
4216
21849
esac
4217
21850
fi
4218
21851
XGETTEXT="$ac_cv_path_XGETTEXT"
4219
 
if test -n "$XGETTEXT"; then
4220
 
  echo "$ac_t""$XGETTEXT" 1>&6
 
21852
if test "$XGETTEXT" != ":"; then
 
21853
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21854
echo "${ECHO_T}$XGETTEXT" >&6
4221
21855
else
4222
 
  echo "$ac_t""no" 1>&6
 
21856
  echo "$as_me:$LINENO: result: no" >&5
 
21857
echo "${ECHO_T}no" >&6
4223
21858
fi
4224
21859
 
4225
 
                cat > conftest.$ac_ext <<EOF
4226
 
#line 4227 "configure"
4227
 
#include "confdefs.h"
 
21860
          cat >conftest.$ac_ext <<_ACEOF
 
21861
/* confdefs.h.  */
 
21862
_ACEOF
 
21863
cat confdefs.h >>conftest.$ac_ext
 
21864
cat >>conftest.$ac_ext <<_ACEOF
 
21865
/* end confdefs.h.  */
4228
21866
 
4229
 
int main() {
 
21867
int
 
21868
main ()
 
21869
{
4230
21870
extern int _nl_msg_cat_cntr;
4231
 
                               return _nl_msg_cat_cntr
4232
 
; return 0; }
4233
 
EOF
4234
 
if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235
 
  rm -rf conftest*
4236
 
  CATOBJEXT=.gmo
4237
 
                   DATADIRNAME=share
4238
 
else
4239
 
  echo "configure: failed program was:" >&5
4240
 
  cat conftest.$ac_ext >&5
4241
 
  rm -rf conftest*
 
21871
                         return _nl_msg_cat_cntr
 
21872
  ;
 
21873
  return 0;
 
21874
}
 
21875
_ACEOF
 
21876
rm -f conftest.$ac_objext conftest$ac_exeext
 
21877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21878
  (eval $ac_link) 2>conftest.er1
 
21879
  ac_status=$?
 
21880
  grep -v '^ *+' conftest.er1 >conftest.err
 
21881
  rm -f conftest.er1
 
21882
  cat conftest.err >&5
 
21883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21884
  (exit $ac_status); } &&
 
21885
         { ac_try='test -z "$ac_c_werror_flag"
 
21886
                         || test ! -s conftest.err'
 
21887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21888
  (eval $ac_try) 2>&5
 
21889
  ac_status=$?
 
21890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21891
  (exit $ac_status); }; } &&
 
21892
         { ac_try='test -s conftest$ac_exeext'
 
21893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21894
  (eval $ac_try) 2>&5
 
21895
  ac_status=$?
 
21896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21897
  (exit $ac_status); }; }; then
 
21898
  CATOBJEXT=.gmo
 
21899
             DATADIRNAME=share
 
21900
else
 
21901
  echo "$as_me: failed program was:" >&5
 
21902
sed 's/^/| /' conftest.$ac_ext >&5
 
21903
 
 
21904
case $host in
 
21905
            *-*-solaris*)
 
21906
                                                                echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
21907
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
 
21908
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
21909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21910
else
 
21911
  cat >conftest.$ac_ext <<_ACEOF
 
21912
/* confdefs.h.  */
 
21913
_ACEOF
 
21914
cat confdefs.h >>conftest.$ac_ext
 
21915
cat >>conftest.$ac_ext <<_ACEOF
 
21916
/* end confdefs.h.  */
 
21917
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
21918
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21919
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
21920
 
 
21921
/* System header to define __stub macros and hopefully few prototypes,
 
21922
    which can conflict with char bind_textdomain_codeset (); below.
 
21923
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21924
    <limits.h> exists even on freestanding compilers.  */
 
21925
 
 
21926
#ifdef __STDC__
 
21927
# include <limits.h>
 
21928
#else
 
21929
# include <assert.h>
 
21930
#endif
 
21931
 
 
21932
#undef bind_textdomain_codeset
 
21933
 
 
21934
/* Override any gcc2 internal prototype to avoid an error.  */
 
21935
#ifdef __cplusplus
 
21936
extern "C"
 
21937
{
 
21938
#endif
 
21939
/* We use char because int might match the return type of a gcc2
 
21940
   builtin and then its argument prototype would still apply.  */
 
21941
char bind_textdomain_codeset ();
 
21942
/* The GNU C library defines this for functions which it implements
 
21943
    to always fail with ENOSYS.  Some functions are actually named
 
21944
    something starting with __ and the normal name is an alias.  */
 
21945
#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
 
21946
choke me
 
21947
#else
 
21948
char (*f) () = bind_textdomain_codeset;
 
21949
#endif
 
21950
#ifdef __cplusplus
 
21951
}
 
21952
#endif
 
21953
 
 
21954
int
 
21955
main ()
 
21956
{
 
21957
return f != bind_textdomain_codeset;
 
21958
  ;
 
21959
  return 0;
 
21960
}
 
21961
_ACEOF
 
21962
rm -f conftest.$ac_objext conftest$ac_exeext
 
21963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21964
  (eval $ac_link) 2>conftest.er1
 
21965
  ac_status=$?
 
21966
  grep -v '^ *+' conftest.er1 >conftest.err
 
21967
  rm -f conftest.er1
 
21968
  cat conftest.err >&5
 
21969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21970
  (exit $ac_status); } &&
 
21971
         { ac_try='test -z "$ac_c_werror_flag"
 
21972
                         || test ! -s conftest.err'
 
21973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21974
  (eval $ac_try) 2>&5
 
21975
  ac_status=$?
 
21976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21977
  (exit $ac_status); }; } &&
 
21978
         { ac_try='test -s conftest$ac_exeext'
 
21979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21980
  (eval $ac_try) 2>&5
 
21981
  ac_status=$?
 
21982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21983
  (exit $ac_status); }; }; then
 
21984
  ac_cv_func_bind_textdomain_codeset=yes
 
21985
else
 
21986
  echo "$as_me: failed program was:" >&5
 
21987
sed 's/^/| /' conftest.$ac_ext >&5
 
21988
 
 
21989
ac_cv_func_bind_textdomain_codeset=no
 
21990
fi
 
21991
rm -f conftest.err conftest.$ac_objext \
 
21992
      conftest$ac_exeext conftest.$ac_ext
 
21993
fi
 
21994
echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
21995
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
 
21996
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
21997
  CATOBJEXT=.gmo
 
21998
               DATADIRNAME=share
 
21999
else
4242
22000
  CATOBJEXT=.mo
4243
 
                   DATADIRNAME=lib
4244
 
fi
4245
 
rm -f conftest*
4246
 
                INSTOBJEXT=.mo
4247
 
              fi
4248
 
            fi
4249
 
 
4250
 
            # Added by Martin Baulig 12/15/98 for libc5 systems
4251
 
            if test "$gt_cv_func_gettext_libc" != "yes" \
4252
 
               && test "$gt_cv_func_gettext_libintl" = "yes"; then
4253
 
               INTLLIBS=-lintl
4254
 
               LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4255
 
            fi
4256
 
        
4257
 
else
4258
 
  echo "$ac_t""no" 1>&6
4259
 
fi
4260
 
 
4261
 
 
4262
 
        if test "$CATOBJEXT" = "NONE"; then
4263
 
          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4264
 
echo "configure:4265: checking whether catgets can be used" >&5
4265
 
          # Check whether --with-catgets or --without-catgets was given.
4266
 
if test "${with_catgets+set}" = set; then
4267
 
  withval="$with_catgets"
4268
 
  nls_cv_use_catgets=$withval
4269
 
else
4270
 
  nls_cv_use_catgets=no
4271
 
fi
4272
 
 
4273
 
          echo "$ac_t""$nls_cv_use_catgets" 1>&6
4274
 
 
4275
 
          if test "$nls_cv_use_catgets" = "yes"; then
4276
 
                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4277
 
echo "configure:4278: checking for main in -li" >&5
4278
 
ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4279
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4280
 
  echo $ac_n "(cached) $ac_c" 1>&6
4281
 
else
4282
 
  ac_save_LIBS="$LIBS"
4283
 
LIBS="-li  $LIBS"
4284
 
cat > conftest.$ac_ext <<EOF
4285
 
#line 4286 "configure"
4286
 
#include "confdefs.h"
4287
 
 
4288
 
int main() {
4289
 
main()
4290
 
; return 0; }
4291
 
EOF
4292
 
if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4293
 
  rm -rf conftest*
4294
 
  eval "ac_cv_lib_$ac_lib_var=yes"
4295
 
else
4296
 
  echo "configure: failed program was:" >&5
4297
 
  cat conftest.$ac_ext >&5
4298
 
  rm -rf conftest*
4299
 
  eval "ac_cv_lib_$ac_lib_var=no"
4300
 
fi
4301
 
rm -f conftest*
4302
 
LIBS="$ac_save_LIBS"
4303
 
 
4304
 
fi
4305
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4306
 
  echo "$ac_t""yes" 1>&6
4307
 
    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4308
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4309
 
  cat >> confdefs.h <<EOF
4310
 
#define $ac_tr_lib 1
4311
 
EOF
4312
 
 
4313
 
  LIBS="-li $LIBS"
4314
 
 
4315
 
else
4316
 
  echo "$ac_t""no" 1>&6
4317
 
fi
4318
 
 
4319
 
            echo $ac_n "checking for catgets""... $ac_c" 1>&6
4320
 
echo "configure:4321: checking for catgets" >&5
4321
 
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
4322
 
  echo $ac_n "(cached) $ac_c" 1>&6
4323
 
else
4324
 
  cat > conftest.$ac_ext <<EOF
4325
 
#line 4326 "configure"
4326
 
#include "confdefs.h"
4327
 
/* System header to define __stub macros and hopefully few prototypes,
4328
 
    which can conflict with char catgets(); below.  */
4329
 
#include <assert.h>
4330
 
/* Override any gcc2 internal prototype to avoid an error.  */
4331
 
/* We use char because int might match the return type of a gcc2
4332
 
    builtin and then its argument prototype would still apply.  */
4333
 
char catgets();
4334
 
 
4335
 
int main() {
4336
 
 
4337
 
/* The GNU C library defines this for functions which it implements
4338
 
    to always fail with ENOSYS.  Some functions are actually named
4339
 
    something starting with __ and the normal name is an alias.  */
4340
 
#if defined (__stub_catgets) || defined (__stub___catgets)
4341
 
choke me
4342
 
#else
4343
 
catgets();
4344
 
#endif
4345
 
 
4346
 
; return 0; }
4347
 
EOF
4348
 
if { (eval echo configure:4349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4349
 
  rm -rf conftest*
4350
 
  eval "ac_cv_func_catgets=yes"
4351
 
else
4352
 
  echo "configure: failed program was:" >&5
4353
 
  cat conftest.$ac_ext >&5
4354
 
  rm -rf conftest*
4355
 
  eval "ac_cv_func_catgets=no"
4356
 
fi
4357
 
rm -f conftest*
4358
 
fi
4359
 
 
4360
 
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
4361
 
  echo "$ac_t""yes" 1>&6
4362
 
  cat >> confdefs.h <<\EOF
4363
 
#define HAVE_CATGETS 1
4364
 
EOF
4365
 
 
4366
 
               INTLOBJS="\$(CATOBJS)"
4367
 
               # Extract the first word of "gencat", so it can be a program name with args.
4368
 
set dummy gencat; ac_word=$2
4369
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4370
 
echo "configure:4371: checking for $ac_word" >&5
4371
 
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4372
 
  echo $ac_n "(cached) $ac_c" 1>&6
4373
 
else
4374
 
  case "$GENCAT" in
4375
 
  /*)
4376
 
  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4377
 
  ;;
4378
 
  ?:/*)                  
4379
 
  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
4380
 
  ;;
4381
 
  *)
4382
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4383
 
  ac_dummy="$PATH"
4384
 
  for ac_dir in $ac_dummy; do 
4385
 
    test -z "$ac_dir" && ac_dir=.
4386
 
    if test -f $ac_dir/$ac_word; then
4387
 
      ac_cv_path_GENCAT="$ac_dir/$ac_word"
4388
 
      break
4389
 
    fi
4390
 
  done
4391
 
  IFS="$ac_save_ifs"
4392
 
  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
4393
 
  ;;
4394
 
esac
4395
 
fi
4396
 
GENCAT="$ac_cv_path_GENCAT"
4397
 
if test -n "$GENCAT"; then
4398
 
  echo "$ac_t""$GENCAT" 1>&6
4399
 
else
4400
 
  echo "$ac_t""no" 1>&6
4401
 
fi
4402
 
#              if test "$GENCAT" != "no"; then
4403
 
#                AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
4404
 
#                if test "$GMSGFMT" = "no"; then
4405
 
#                  AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
4406
 
#                   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
4407
 
#                fi
4408
 
#                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
4409
 
#                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
4410
 
#                USE_INCLUDED_LIBINTL=yes
4411
 
#                CATOBJEXT=.cat
4412
 
#                INSTOBJEXT=.cat
4413
 
#                DATADIRNAME=lib
4414
 
#                INTLDEPS='$(top_builddir)/intl/libintl.a'
4415
 
#                INTLLIBS=$INTLDEPS
4416
 
#                LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4417
 
#                nls_cv_header_intl=intl/libintl.h
4418
 
#                nls_cv_header_libgt=intl/libgettext.h
4419
 
#              fi
4420
 
            
4421
 
else
4422
 
  echo "$ac_t""no" 1>&6
4423
 
fi
4424
 
 
4425
 
          fi
4426
 
        fi
4427
 
 
4428
 
        if test "$CATOBJEXT" = "NONE"; then
4429
 
                          nls_cv_use_gnu_gettext=yes
4430
 
        fi
 
22001
               DATADIRNAME=lib
 
22002
fi
 
22003
 
 
22004
            ;;
 
22005
            *)
 
22006
            CATOBJEXT=.mo
 
22007
            DATADIRNAME=lib
 
22008
            ;;
 
22009
            esac
 
22010
fi
 
22011
rm -f conftest.err conftest.$ac_objext \
 
22012
      conftest$ac_exeext conftest.$ac_ext
 
22013
          LIBS="$glib_save_LIBS"
 
22014
          INSTOBJEXT=.mo
 
22015
        else
 
22016
          gt_cv_have_gettext=no
 
22017
        fi
4431
22018
      fi
4432
22019
 
4433
 
      if test "$nls_cv_use_gnu_gettext" != "yes"; then
4434
 
        cat >> confdefs.h <<\EOF
 
22020
fi
 
22021
 
 
22022
 
 
22023
 
 
22024
    if test "$gt_cv_have_gettext" = "yes" ; then
 
22025
 
 
22026
cat >>confdefs.h <<\_ACEOF
4435
22027
#define ENABLE_NLS 1
4436
 
EOF
4437
 
 
 
22028
_ACEOF
 
22029
 
 
22030
    fi
 
22031
 
 
22032
        if test "$XGETTEXT" != ":"; then
 
22033
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
22034
        : ;
4438
22035
      else
4439
 
         # Unset this variable since we use the non-zero value as a flag.
4440
 
         CATOBJEXT=
4441
 
#        dnl Mark actions used to generate GNU NLS library.
4442
 
#        INTLOBJS="\$(GETTOBJS)"
4443
 
#        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
4444
 
#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
4445
 
#        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
4446
 
#        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
4447
 
#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
4448
 
#        AC_SUBST(MSGFMT)
4449
 
#       USE_INCLUDED_LIBINTL=yes
4450
 
#        CATOBJEXT=.gmo
4451
 
#        INSTOBJEXT=.mo
4452
 
#        DATADIRNAME=share
4453
 
#       INTLDEPS='$(top_builddir)/intl/libintl.a'
4454
 
#       INTLLIBS=$INTLDEPS
4455
 
#       LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4456
 
#        nls_cv_header_intl=intl/libintl.h
4457
 
#        nls_cv_header_libgt=intl/libgettext.h
4458
 
      fi
4459
 
 
4460
 
            if test "$XGETTEXT" != ":"; then
4461
 
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4462
 
          : ;
4463
 
        else
4464
 
          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
4465
 
          XGETTEXT=":"
4466
 
        fi
4467
 
      fi
4468
 
 
4469
 
      # We need to process the po/ directory.
4470
 
      POSUB=po
4471
 
    else
4472
 
      DATADIRNAME=share
4473
 
      nls_cv_header_intl=intl/libintl.h
4474
 
      nls_cv_header_libgt=intl/libgettext.h
 
22036
        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
22037
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
22038
        XGETTEXT=":"
 
22039
      fi
4475
22040
    fi
4476
 
    
4477
 
    
4478
 
 
4479
 
 
4480
 
#    # If this is used in GNU gettext we have to set USE_NLS to `yes'
4481
 
#    # because some of the sources are only built for this goal.
4482
 
#    if test "$PACKAGE" = gettext; then
4483
 
#      USE_NLS=yes
4484
 
#      USE_INCLUDED_LIBINTL=yes
4485
 
#    fi
 
22041
 
 
22042
    # We need to process the po/ directory.
 
22043
    POSUB=po
 
22044
 
 
22045
              ac_config_commands="$ac_config_commands default-1"
 
22046
 
4486
22047
 
4487
22048
                for lang in $ALL_LINGUAS; do
4488
22049
      GMOFILES="$GMOFILES $lang.gmo"
4489
22050
      POFILES="$POFILES $lang.po"
4490
22051
    done
4491
22052
 
4492
 
        
4493
 
    
4494
 
    
4495
 
    
4496
 
    
4497
 
    
4498
 
    
4499
 
    
4500
 
    
4501
 
    
4502
 
    
4503
 
  
4504
 
 
4505
 
   if test "x$CATOBJEXT" != "x"; then
 
22053
 
 
22054
 
 
22055
 
 
22056
 
 
22057
 
 
22058
 
 
22059
 
 
22060
 
 
22061
 
 
22062
 
 
22063
 
 
22064
 
 
22065
   if test "$gt_cv_have_gettext" = "yes"; then
4506
22066
     if test "x$ALL_LINGUAS" = "x"; then
4507
22067
       LINGUAS=
4508
22068
     else
4509
 
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4510
 
echo "configure:4511: checking for catalogs to be installed" >&5
 
22069
       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 
22070
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
4511
22071
       NEW_LINGUAS=
4512
 
       if test "x$LINGUAS" = "x"; then
4513
 
           LINGUAS=$ALL_LINGUAS
4514
 
       fi
4515
 
       for lang in $LINGUAS; do
4516
 
         case "$ALL_LINGUAS" in
4517
 
          *\ $lang\ *|$lang\ *|*\ $lang) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4518
 
         esac
 
22072
       for presentlang in $ALL_LINGUAS; do
 
22073
         useit=no
 
22074
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
22075
           desiredlanguages="$LINGUAS"
 
22076
         else
 
22077
           desiredlanguages="$ALL_LINGUAS"
 
22078
         fi
 
22079
         for desiredlang in $desiredlanguages; do
 
22080
           # Use the presentlang catalog if desiredlang is
 
22081
           #   a. equal to presentlang, or
 
22082
           #   b. a variant of presentlang (because in this case,
 
22083
           #      presentlang can be used as a fallback for messages
 
22084
           #      which are not translated in the desiredlang catalog).
 
22085
           case "$desiredlang" in
 
22086
             "$presentlang"*) useit=yes;;
 
22087
           esac
 
22088
         done
 
22089
         if test $useit = yes; then
 
22090
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
22091
         fi
4519
22092
       done
4520
22093
       LINGUAS=$NEW_LINGUAS
4521
 
       echo "$ac_t""$LINGUAS" 1>&6
 
22094
       echo "$as_me:$LINENO: result: $LINGUAS" >&5
 
22095
echo "${ECHO_T}$LINGUAS" >&6
4522
22096
     fi
4523
22097
 
4524
22098
          if test -n "$LINGUAS"; then
4526
22100
     fi
4527
22101
   fi
4528
22102
 
4529
 
            if test $ac_cv_header_locale_h = yes; then
4530
 
     INCLUDE_LOCALE_H="#include <locale.h>"
4531
 
   else
4532
 
     INCLUDE_LOCALE_H="\
4533
 
/* The system does not provide the header <locale.h>.  Take care yourself.  */"
4534
 
   fi
4535
 
   
4536
 
 
4537
 
            test -d intl || mkdir intl
4538
 
   if test "$CATOBJEXT" = ".cat"; then
4539
 
     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4540
 
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4541
 
echo "configure:4542: checking for linux/version.h" >&5
4542
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4543
 
  echo $ac_n "(cached) $ac_c" 1>&6
4544
 
else
4545
 
  cat > conftest.$ac_ext <<EOF
4546
 
#line 4547 "configure"
4547
 
#include "confdefs.h"
4548
 
#include <linux/version.h>
4549
 
EOF
4550
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4551
 
{ (eval echo configure:4552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4552
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4553
 
if test -z "$ac_err"; then
4554
 
  rm -rf conftest*
4555
 
  eval "ac_cv_header_$ac_safe=yes"
4556
 
else
4557
 
  echo "$ac_err" >&5
4558
 
  echo "configure: failed program was:" >&5
4559
 
  cat conftest.$ac_ext >&5
4560
 
  rm -rf conftest*
4561
 
  eval "ac_cv_header_$ac_safe=no"
4562
 
fi
4563
 
rm -f conftest*
4564
 
fi
4565
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4566
 
  echo "$ac_t""yes" 1>&6
4567
 
  msgformat=linux
4568
 
else
4569
 
  echo "$ac_t""no" 1>&6
4570
 
msgformat=xopen
4571
 
fi
4572
 
 
4573
 
 
4574
 
               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4575
 
   fi
4576
 
      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4577
 
     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4578
 
 
4579
 
            if test "$PACKAGE" = "gettext"; then
4580
 
     GT_NO="#NO#"
4581
 
     GT_YES=
4582
 
   else
4583
 
     GT_NO=
4584
 
     GT_YES="#YES#"
4585
 
   fi
4586
 
   
4587
 
   
4588
 
 
4589
22103
            MKINSTALLDIRS=
4590
22104
   if test -n "$ac_aux_dir"; then
4591
22105
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4593
22107
   if test -z "$MKINSTALLDIRS"; then
4594
22108
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4595
22109
   fi
4596
 
   
4597
22110
 
4598
 
      l=
4599
 
   
4600
22111
 
4601
22112
         test -d po || mkdir po
4602
22113
   if test "x$srcdir" != "x."; then
4611
22122
   rm -f po/POTFILES
4612
22123
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4613
22124
        < $srcdir/po/POTFILES.in > po/POTFILES
4614
 
  
4615
 
 
4616
 
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
4617
 
if test "${with_gtk_prefix+set}" = set; then
4618
 
  withval="$with_gtk_prefix"
4619
 
  gtk_config_prefix="$withval"
4620
 
else
4621
 
  gtk_config_prefix=""
4622
 
fi
4623
 
 
4624
 
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
4625
 
if test "${with_gtk_exec_prefix+set}" = set; then
4626
 
  withval="$with_gtk_exec_prefix"
4627
 
  gtk_config_exec_prefix="$withval"
4628
 
else
4629
 
  gtk_config_exec_prefix=""
4630
 
fi
4631
 
 
4632
 
# Check whether --enable-gtktest or --disable-gtktest was given.
4633
 
if test "${enable_gtktest+set}" = set; then
4634
 
  enableval="$enable_gtktest"
4635
 
  :
4636
 
else
4637
 
  enable_gtktest=yes
4638
 
fi
4639
 
 
4640
 
 
4641
 
  for module in . 
4642
 
  do
4643
 
      case "$module" in
4644
 
         gthread) 
4645
 
             gtk_config_args="$gtk_config_args gthread"
4646
 
         ;;
4647
 
      esac
4648
 
  done
4649
 
 
4650
 
  if test x$gtk_config_exec_prefix != x ; then
4651
 
     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
4652
 
     if test x${GTK_CONFIG+set} != xset ; then
4653
 
        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
4654
 
     fi
4655
 
  fi
4656
 
  if test x$gtk_config_prefix != x ; then
4657
 
     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
4658
 
     if test x${GTK_CONFIG+set} != xset ; then
4659
 
        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
4660
 
     fi
4661
 
  fi
4662
 
 
4663
 
  # Extract the first word of "gtk-config", so it can be a program name with args.
4664
 
set dummy gtk-config; ac_word=$2
4665
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4666
 
echo "configure:4667: checking for $ac_word" >&5
4667
 
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4668
 
  echo $ac_n "(cached) $ac_c" 1>&6
4669
 
else
4670
 
  case "$GTK_CONFIG" in
4671
 
  /*)
4672
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4673
 
  ;;
4674
 
  ?:/*)                  
4675
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4676
 
  ;;
4677
 
  *)
4678
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4679
 
  ac_dummy="$PATH"
4680
 
  for ac_dir in $ac_dummy; do 
4681
 
    test -z "$ac_dir" && ac_dir=.
4682
 
    if test -f $ac_dir/$ac_word; then
4683
 
      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4684
 
      break
4685
 
    fi
4686
 
  done
4687
 
  IFS="$ac_save_ifs"
4688
 
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4689
 
  ;;
4690
 
esac
4691
 
fi
4692
 
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4693
 
if test -n "$GTK_CONFIG"; then
4694
 
  echo "$ac_t""$GTK_CONFIG" 1>&6
4695
 
else
4696
 
  echo "$ac_t""no" 1>&6
4697
 
fi
4698
 
 
4699
 
  min_gtk_version=1.2.7
4700
 
  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4701
 
echo "configure:4702: checking for GTK - version >= $min_gtk_version" >&5
4702
 
  no_gtk=""
4703
 
  if test "$GTK_CONFIG" = "no" ; then
4704
 
    no_gtk=yes
4705
 
  else
4706
 
    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
4707
 
    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
4708
 
    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
4709
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4710
 
    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
4711
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4712
 
    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
4713
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4714
 
    if test "x$enable_gtktest" = "xyes" ; then
4715
 
      ac_save_CFLAGS="$CFLAGS"
4716
 
      ac_save_LIBS="$LIBS"
4717
 
      CFLAGS="$CFLAGS $GTK_CFLAGS"
4718
 
      LIBS="$GTK_LIBS $LIBS"
4719
 
      rm -f conf.gtktest
4720
 
      if test "$cross_compiling" = yes; then
4721
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
4722
 
else
4723
 
  cat > conftest.$ac_ext <<EOF
4724
 
#line 4725 "configure"
4725
 
#include "confdefs.h"
4726
 
 
4727
 
#include <gtk/gtk.h>
4728
 
#include <stdio.h>
4729
 
#include <stdlib.h>
4730
 
 
4731
 
int 
4732
 
main ()
4733
 
{
4734
 
  int major, minor, micro;
4735
 
  char *tmp_version;
4736
 
 
4737
 
  system ("touch conf.gtktest");
4738
 
 
4739
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
4740
 
  tmp_version = g_strdup("$min_gtk_version");
4741
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4742
 
     printf("%s, bad version string\n", "$min_gtk_version");
4743
 
     exit(1);
4744
 
   }
4745
 
 
4746
 
  if ((gtk_major_version != $gtk_config_major_version) ||
4747
 
      (gtk_minor_version != $gtk_config_minor_version) ||
4748
 
      (gtk_micro_version != $gtk_config_micro_version))
4749
 
    {
4750
 
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
4751
 
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4752
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
4753
 
      printf ("*** was found! If gtk-config was correct, then it is best\n");
4754
 
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4755
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4756
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4757
 
      printf("*** required on your system.\n");
4758
 
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
4759
 
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
4760
 
      printf("*** before re-running configure\n");
4761
 
    } 
4762
 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
4763
 
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4764
 
           (gtk_minor_version != GTK_MINOR_VERSION) ||
4765
 
           (gtk_micro_version != GTK_MICRO_VERSION))
4766
 
    {
4767
 
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4768
 
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4769
 
      printf("*** library (version %d.%d.%d)\n",
4770
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
4771
 
    }
4772
 
#endif /* defined (GTK_MAJOR_VERSION) ... */
4773
 
  else
4774
 
    {
4775
 
      if ((gtk_major_version > major) ||
4776
 
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4777
 
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
4778
 
      {
4779
 
        return 0;
4780
 
       }
4781
 
     else
4782
 
      {
4783
 
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
4784
 
               gtk_major_version, gtk_minor_version, gtk_micro_version);
4785
 
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
4786
 
               major, minor, micro);
4787
 
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
4788
 
        printf("***\n");
4789
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
4790
 
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
4791
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
4792
 
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
4793
 
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
4794
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4795
 
        printf("*** so that the correct libraries are found at run-time))\n");
4796
 
      }
4797
 
    }
4798
 
  return 1;
4799
 
}
4800
 
 
4801
 
EOF
4802
 
if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4803
 
then
4804
 
  :
4805
 
else
4806
 
  echo "configure: failed program was:" >&5
4807
 
  cat conftest.$ac_ext >&5
4808
 
  rm -fr conftest*
4809
 
  no_gtk=yes
4810
 
fi
4811
 
rm -fr conftest*
4812
 
fi
4813
 
 
4814
 
       CFLAGS="$ac_save_CFLAGS"
4815
 
       LIBS="$ac_save_LIBS"
4816
 
     fi
4817
 
  fi
4818
 
  if test "x$no_gtk" = x ; then
4819
 
     echo "$ac_t""yes" 1>&6
4820
 
     :     
4821
 
  else
4822
 
     echo "$ac_t""no" 1>&6
4823
 
     if test "$GTK_CONFIG" = "no" ; then
4824
 
       echo "*** The gtk-config script installed by GTK could not be found"
4825
 
       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
4826
 
       echo "*** your path, or set the GTK_CONFIG environment variable to the"
4827
 
       echo "*** full path to gtk-config."
4828
 
     else
4829
 
       if test -f conf.gtktest ; then
4830
 
        :
4831
 
       else
4832
 
          echo "*** Could not run GTK test program, checking why..."
4833
 
          CFLAGS="$CFLAGS $GTK_CFLAGS"
4834
 
          LIBS="$LIBS $GTK_LIBS"
4835
 
          cat > conftest.$ac_ext <<EOF
4836
 
#line 4837 "configure"
4837
 
#include "confdefs.h"
4838
 
 
4839
 
#include <gtk/gtk.h>
4840
 
#include <stdio.h>
4841
 
 
4842
 
int main() {
4843
 
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
4844
 
; return 0; }
4845
 
EOF
4846
 
if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4847
 
  rm -rf conftest*
4848
 
   echo "*** The test program compiled, but did not run. This usually means"
4849
 
          echo "*** that the run-time linker is not finding GTK or finding the wrong"
4850
 
          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
4851
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4852
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4853
 
          echo "*** is required on your system"
4854
 
          echo "***"
4855
 
          echo "*** If you have an old version installed, it is best to remove it, although"
4856
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4857
 
          echo "***"
4858
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
4859
 
          echo "*** came with the system with the command"
4860
 
          echo "***"
4861
 
          echo "***    rpm --erase --nodeps gtk gtk-devel" 
4862
 
else
4863
 
  echo "configure: failed program was:" >&5
4864
 
  cat conftest.$ac_ext >&5
4865
 
  rm -rf conftest*
4866
 
   echo "*** The test program failed to compile or link. See the file config.log for the"
4867
 
          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
4868
 
          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
4869
 
          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
4870
 
fi
4871
 
rm -f conftest*
4872
 
          CFLAGS="$ac_save_CFLAGS"
4873
 
          LIBS="$ac_save_LIBS"
4874
 
       fi
4875
 
     fi
4876
 
     GTK_CFLAGS=""
4877
 
     GTK_LIBS=""
4878
 
     { echo "configure: error: 
4879
 
*** GTK+ 1.2.7 or better is required. The latest version of GTK+
4880
 
*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
4881
 
  fi
4882
 
  
4883
 
  
4884
 
  rm -f conf.gtktest
4885
 
 
4886
 
 
4887
 
 
4888
 
echo $ac_n "checking for GnomePrint libraries >= 0.25""... $ac_c" 1>&6
4889
 
echo "configure:4890: checking for GnomePrint libraries >= 0.25" >&5
4890
 
if gnome-config --libs print > /dev/null 2>&1; then 
4891
 
    vers=`gnome-config --modversion print | sed -e "s/gnome-print-//" | \
4892
 
        awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
4893
 
    if test "$vers" -ge 25; then
4894
 
        echo "$ac_t""found" 1>&6
4895
 
    else
4896
 
        { echo "configure: error: You need at least GNOME print 0.25 for this version of gedit" 1>&2; exit 1; }
4897
 
    fi
4898
 
else
4899
 
    { echo "configure: error: Did not find GnomePrint installed" 1>&2; exit 1; }
4900
 
fi
4901
 
 
4902
 
 
4903
 
echo $ac_n "checking for Glade libraries >= 0.11""... $ac_c" 1>&6
4904
 
echo "configure:4905: checking for Glade libraries >= 0.11" >&5
4905
 
if gnome-config --libs libglade > /dev/null 2>&1; then 
4906
 
    vers=`gnome-config --modversion libglade | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
4907
 
    if test "$vers" -ge 11; then
4908
 
        echo "$ac_t""found" 1>&6
4909
 
    else
4910
 
        { echo "configure: error: You need at least libglade 0.11 for this version of gedit" 1>&2; exit 1; }
4911
 
    fi
4912
 
else
4913
 
    { echo "configure: error: Did not find libGlade installed" 1>&2; exit 1; }
4914
 
fi
4915
 
 
4916
 
 
4917
 
echo $ac_n "checking for gnome-libs >= 1.0.55""... $ac_c" 1>&6
4918
 
echo "configure:4919: checking for gnome-libs >= 1.0.55" >&5
4919
 
if gnome-config --version > /dev/null 2>&1; then
4920
 
   vers=`gnome-config --version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
4921
 
   if test "$vers" -ge 55; then
4922
 
      echo "$ac_t""found" 1>&6
4923
 
   else
4924
 
      { echo "configure: error: You need at least gnome-libs 1.0.55 for this version of gedit" 1>&2; exit 1; }
4925
 
   fi
4926
 
else
4927
 
   { echo "configure: error: Did not find gnome-libs installed" 1>&2; exit 1; }
4928
 
fi
4929
 
 
4930
 
 
4931
 
echo $ac_n "checking for gnome-vfs >= 0.1""... $ac_c" 1>&6
4932
 
echo "configure:4933: checking for gnome-vfs >= 0.1" >&5
4933
 
if gnome-config --libs vfs > /dev/null 2>&1; then
4934
 
   vers=`gnome-config --modversion vfs | sed -e "s/gnome-vfs-//" | awk -F. '{printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
4935
 
   if test "$vers" -ge 1000000; then
4936
 
      echo "$ac_t""found" 1>&6
4937
 
   else
4938
 
      { echo "configure: error: You need at least gnome-vfs 1.0 for this version of gedit." 1>&2; exit 1; }
4939
 
   fi
4940
 
else
4941
 
   { echo "configure: error: Did not find gnome-vfs installed" 1>&2; exit 1; }
4942
 
fi
4943
 
 
4944
 
EXTRA_GNOME_LIBS=`gnome-config --libs print libglade vfs`
4945
 
EXTRA_GNOME_CFLAGS=`gnome-config --cflags print libglade vfs`
4946
 
 
4947
 
 
4948
 
 
4949
 
 
4950
 
 
4951
 
 
4952
 
 
4953
 
 
4954
 
 
4955
 
 
4956
 
trap '' 1 2 15
4957
 
cat > confcache <<\EOF
 
22125
 
 
22126
 
 
22127
 
 
22128
echo "$as_me:$LINENO: checking for aspell/pspell" >&5
 
22129
echo $ECHO_N "checking for aspell/pspell... $ECHO_C" >&6
 
22130
if pspell-config version > /dev/null 2>&1; then
 
22131
        pspell_ver=`pspell-config version`
 
22132
        pspell_num=`echo ${pspell_ver} | awk 'BEGIN {FS="."}{printf $1*10000 + $2*100 + $3;}'`
 
22133
        if test ${pspell_num} -lt 1200; then
 
22134
                echo "$as_me:$LINENO: result: pspell version .12 or later required, you have ${pspell_ver} installed" >&5
 
22135
echo "${ECHO_T}pspell version .12 or later required, you have ${pspell_ver} installed" >&6
 
22136
        else
 
22137
                echo "$as_me:$LINENO: result: found ($pspell_ver)" >&5
 
22138
echo "${ECHO_T}found ($pspell_ver)" >&6
 
22139
 
 
22140
                if test "${ac_cv_header_pspell_pspell_h+set}" = set; then
 
22141
  echo "$as_me:$LINENO: checking for pspell/pspell.h" >&5
 
22142
echo $ECHO_N "checking for pspell/pspell.h... $ECHO_C" >&6
 
22143
if test "${ac_cv_header_pspell_pspell_h+set}" = set; then
 
22144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22145
fi
 
22146
echo "$as_me:$LINENO: result: $ac_cv_header_pspell_pspell_h" >&5
 
22147
echo "${ECHO_T}$ac_cv_header_pspell_pspell_h" >&6
 
22148
else
 
22149
  # Is the header compilable?
 
22150
echo "$as_me:$LINENO: checking pspell/pspell.h usability" >&5
 
22151
echo $ECHO_N "checking pspell/pspell.h usability... $ECHO_C" >&6
 
22152
cat >conftest.$ac_ext <<_ACEOF
 
22153
/* confdefs.h.  */
 
22154
_ACEOF
 
22155
cat confdefs.h >>conftest.$ac_ext
 
22156
cat >>conftest.$ac_ext <<_ACEOF
 
22157
/* end confdefs.h.  */
 
22158
$ac_includes_default
 
22159
#include <pspell/pspell.h>
 
22160
_ACEOF
 
22161
rm -f conftest.$ac_objext
 
22162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22163
  (eval $ac_compile) 2>conftest.er1
 
22164
  ac_status=$?
 
22165
  grep -v '^ *+' conftest.er1 >conftest.err
 
22166
  rm -f conftest.er1
 
22167
  cat conftest.err >&5
 
22168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22169
  (exit $ac_status); } &&
 
22170
         { ac_try='test -z "$ac_c_werror_flag"
 
22171
                         || test ! -s conftest.err'
 
22172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22173
  (eval $ac_try) 2>&5
 
22174
  ac_status=$?
 
22175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22176
  (exit $ac_status); }; } &&
 
22177
         { ac_try='test -s conftest.$ac_objext'
 
22178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22179
  (eval $ac_try) 2>&5
 
22180
  ac_status=$?
 
22181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22182
  (exit $ac_status); }; }; then
 
22183
  ac_header_compiler=yes
 
22184
else
 
22185
  echo "$as_me: failed program was:" >&5
 
22186
sed 's/^/| /' conftest.$ac_ext >&5
 
22187
 
 
22188
ac_header_compiler=no
 
22189
fi
 
22190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22191
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22192
echo "${ECHO_T}$ac_header_compiler" >&6
 
22193
 
 
22194
# Is the header present?
 
22195
echo "$as_me:$LINENO: checking pspell/pspell.h presence" >&5
 
22196
echo $ECHO_N "checking pspell/pspell.h presence... $ECHO_C" >&6
 
22197
cat >conftest.$ac_ext <<_ACEOF
 
22198
/* confdefs.h.  */
 
22199
_ACEOF
 
22200
cat confdefs.h >>conftest.$ac_ext
 
22201
cat >>conftest.$ac_ext <<_ACEOF
 
22202
/* end confdefs.h.  */
 
22203
#include <pspell/pspell.h>
 
22204
_ACEOF
 
22205
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22206
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22207
  ac_status=$?
 
22208
  grep -v '^ *+' conftest.er1 >conftest.err
 
22209
  rm -f conftest.er1
 
22210
  cat conftest.err >&5
 
22211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22212
  (exit $ac_status); } >/dev/null; then
 
22213
  if test -s conftest.err; then
 
22214
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22215
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22216
  else
 
22217
    ac_cpp_err=
 
22218
  fi
 
22219
else
 
22220
  ac_cpp_err=yes
 
22221
fi
 
22222
if test -z "$ac_cpp_err"; then
 
22223
  ac_header_preproc=yes
 
22224
else
 
22225
  echo "$as_me: failed program was:" >&5
 
22226
sed 's/^/| /' conftest.$ac_ext >&5
 
22227
 
 
22228
  ac_header_preproc=no
 
22229
fi
 
22230
rm -f conftest.err conftest.$ac_ext
 
22231
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22232
echo "${ECHO_T}$ac_header_preproc" >&6
 
22233
 
 
22234
# So?  What about this header?
 
22235
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22236
  yes:no: )
 
22237
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22238
echo "$as_me: WARNING: pspell/pspell.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22239
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h: proceeding with the compiler's result" >&5
 
22240
echo "$as_me: WARNING: pspell/pspell.h: proceeding with the compiler's result" >&2;}
 
22241
    ac_header_preproc=yes
 
22242
    ;;
 
22243
  no:yes:* )
 
22244
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h: present but cannot be compiled" >&5
 
22245
echo "$as_me: WARNING: pspell/pspell.h: present but cannot be compiled" >&2;}
 
22246
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h:     check for missing prerequisite headers?" >&5
 
22247
echo "$as_me: WARNING: pspell/pspell.h:     check for missing prerequisite headers?" >&2;}
 
22248
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h: see the Autoconf documentation" >&5
 
22249
echo "$as_me: WARNING: pspell/pspell.h: see the Autoconf documentation" >&2;}
 
22250
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22251
echo "$as_me: WARNING: pspell/pspell.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22252
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h: proceeding with the preprocessor's result" >&5
 
22253
echo "$as_me: WARNING: pspell/pspell.h: proceeding with the preprocessor's result" >&2;}
 
22254
    { echo "$as_me:$LINENO: WARNING: pspell/pspell.h: in the future, the compiler will take precedence" >&5
 
22255
echo "$as_me: WARNING: pspell/pspell.h: in the future, the compiler will take precedence" >&2;}
 
22256
    (
 
22257
      cat <<\_ASBOX
 
22258
## -------------------------------------------------------------------- ##
 
22259
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
 
22260
## -------------------------------------------------------------------- ##
 
22261
_ASBOX
 
22262
    ) |
 
22263
      sed "s/^/$as_me: WARNING:     /" >&2
 
22264
    ;;
 
22265
esac
 
22266
echo "$as_me:$LINENO: checking for pspell/pspell.h" >&5
 
22267
echo $ECHO_N "checking for pspell/pspell.h... $ECHO_C" >&6
 
22268
if test "${ac_cv_header_pspell_pspell_h+set}" = set; then
 
22269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22270
else
 
22271
  ac_cv_header_pspell_pspell_h=$ac_header_preproc
 
22272
fi
 
22273
echo "$as_me:$LINENO: result: $ac_cv_header_pspell_pspell_h" >&5
 
22274
echo "${ECHO_T}$ac_cv_header_pspell_pspell_h" >&6
 
22275
 
 
22276
fi
 
22277
if test $ac_cv_header_pspell_pspell_h = yes; then
 
22278
  echo "$as_me:$LINENO: checking for new_aspell_speller in -laspell" >&5
 
22279
echo $ECHO_N "checking for new_aspell_speller in -laspell... $ECHO_C" >&6
 
22280
if test "${ac_cv_lib_aspell_new_aspell_speller+set}" = set; then
 
22281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22282
else
 
22283
  ac_check_lib_save_LIBS=$LIBS
 
22284
LIBS="-laspell  $LIBS"
 
22285
cat >conftest.$ac_ext <<_ACEOF
 
22286
/* confdefs.h.  */
 
22287
_ACEOF
 
22288
cat confdefs.h >>conftest.$ac_ext
 
22289
cat >>conftest.$ac_ext <<_ACEOF
 
22290
/* end confdefs.h.  */
 
22291
 
 
22292
/* Override any gcc2 internal prototype to avoid an error.  */
 
22293
#ifdef __cplusplus
 
22294
extern "C"
 
22295
#endif
 
22296
/* We use char because int might match the return type of a gcc2
 
22297
   builtin and then its argument prototype would still apply.  */
 
22298
char new_aspell_speller ();
 
22299
int
 
22300
main ()
 
22301
{
 
22302
new_aspell_speller ();
 
22303
  ;
 
22304
  return 0;
 
22305
}
 
22306
_ACEOF
 
22307
rm -f conftest.$ac_objext conftest$ac_exeext
 
22308
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22309
  (eval $ac_link) 2>conftest.er1
 
22310
  ac_status=$?
 
22311
  grep -v '^ *+' conftest.er1 >conftest.err
 
22312
  rm -f conftest.er1
 
22313
  cat conftest.err >&5
 
22314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22315
  (exit $ac_status); } &&
 
22316
         { ac_try='test -z "$ac_c_werror_flag"
 
22317
                         || test ! -s conftest.err'
 
22318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22319
  (eval $ac_try) 2>&5
 
22320
  ac_status=$?
 
22321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22322
  (exit $ac_status); }; } &&
 
22323
         { ac_try='test -s conftest$ac_exeext'
 
22324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22325
  (eval $ac_try) 2>&5
 
22326
  ac_status=$?
 
22327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22328
  (exit $ac_status); }; }; then
 
22329
  ac_cv_lib_aspell_new_aspell_speller=yes
 
22330
else
 
22331
  echo "$as_me: failed program was:" >&5
 
22332
sed 's/^/| /' conftest.$ac_ext >&5
 
22333
 
 
22334
ac_cv_lib_aspell_new_aspell_speller=no
 
22335
fi
 
22336
rm -f conftest.err conftest.$ac_objext \
 
22337
      conftest$ac_exeext conftest.$ac_ext
 
22338
LIBS=$ac_check_lib_save_LIBS
 
22339
fi
 
22340
echo "$as_me:$LINENO: result: $ac_cv_lib_aspell_new_aspell_speller" >&5
 
22341
echo "${ECHO_T}$ac_cv_lib_aspell_new_aspell_speller" >&6
 
22342
if test $ac_cv_lib_aspell_new_aspell_speller = yes; then
 
22343
  PSPELL_LIBS="-laspell" SPELL_PLUGIN_DIR="spell"
 
22344
else
 
22345
  echo "$as_me:$LINENO: checking for new_pspell_manager in -lpspell" >&5
 
22346
echo $ECHO_N "checking for new_pspell_manager in -lpspell... $ECHO_C" >&6
 
22347
if test "${ac_cv_lib_pspell_new_pspell_manager+set}" = set; then
 
22348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22349
else
 
22350
  ac_check_lib_save_LIBS=$LIBS
 
22351
LIBS="-lpspell  $LIBS"
 
22352
cat >conftest.$ac_ext <<_ACEOF
 
22353
/* confdefs.h.  */
 
22354
_ACEOF
 
22355
cat confdefs.h >>conftest.$ac_ext
 
22356
cat >>conftest.$ac_ext <<_ACEOF
 
22357
/* end confdefs.h.  */
 
22358
 
 
22359
/* Override any gcc2 internal prototype to avoid an error.  */
 
22360
#ifdef __cplusplus
 
22361
extern "C"
 
22362
#endif
 
22363
/* We use char because int might match the return type of a gcc2
 
22364
   builtin and then its argument prototype would still apply.  */
 
22365
char new_pspell_manager ();
 
22366
int
 
22367
main ()
 
22368
{
 
22369
new_pspell_manager ();
 
22370
  ;
 
22371
  return 0;
 
22372
}
 
22373
_ACEOF
 
22374
rm -f conftest.$ac_objext conftest$ac_exeext
 
22375
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22376
  (eval $ac_link) 2>conftest.er1
 
22377
  ac_status=$?
 
22378
  grep -v '^ *+' conftest.er1 >conftest.err
 
22379
  rm -f conftest.er1
 
22380
  cat conftest.err >&5
 
22381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22382
  (exit $ac_status); } &&
 
22383
         { ac_try='test -z "$ac_c_werror_flag"
 
22384
                         || test ! -s conftest.err'
 
22385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22386
  (eval $ac_try) 2>&5
 
22387
  ac_status=$?
 
22388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22389
  (exit $ac_status); }; } &&
 
22390
         { ac_try='test -s conftest$ac_exeext'
 
22391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22392
  (eval $ac_try) 2>&5
 
22393
  ac_status=$?
 
22394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22395
  (exit $ac_status); }; }; then
 
22396
  ac_cv_lib_pspell_new_pspell_manager=yes
 
22397
else
 
22398
  echo "$as_me: failed program was:" >&5
 
22399
sed 's/^/| /' conftest.$ac_ext >&5
 
22400
 
 
22401
ac_cv_lib_pspell_new_pspell_manager=no
 
22402
fi
 
22403
rm -f conftest.err conftest.$ac_objext \
 
22404
      conftest$ac_exeext conftest.$ac_ext
 
22405
LIBS=$ac_check_lib_save_LIBS
 
22406
fi
 
22407
echo "$as_me:$LINENO: result: $ac_cv_lib_pspell_new_pspell_manager" >&5
 
22408
echo "${ECHO_T}$ac_cv_lib_pspell_new_pspell_manager" >&6
 
22409
if test $ac_cv_lib_pspell_new_pspell_manager = yes; then
 
22410
  PSPELL_LIBS="-lpspell" SPELL_PLUGIN_DIR="spell"
 
22411
else
 
22412
  { echo "$as_me:$LINENO: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&5
 
22413
echo "$as_me: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&2;}
 
22414
 
 
22415
fi
 
22416
 
 
22417
 
 
22418
fi
 
22419
 
 
22420
else
 
22421
  { echo "$as_me:$LINENO: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&5
 
22422
echo "$as_me: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&2;}
 
22423
 
 
22424
fi
 
22425
 
 
22426
 
 
22427
        fi
 
22428
else
 
22429
        echo "$as_me:$LINENO: result: not found" >&5
 
22430
echo "${ECHO_T}not found" >&6
 
22431
fi
 
22432
 
 
22433
 
 
22434
 
 
22435
 
 
22436
  succeeded=no
 
22437
 
 
22438
  if test -z "$PKG_CONFIG"; then
 
22439
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
22440
set dummy pkg-config; ac_word=$2
 
22441
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22443
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
22444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22445
else
 
22446
  case $PKG_CONFIG in
 
22447
  [\\/]* | ?:[\\/]*)
 
22448
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
22449
  ;;
 
22450
  *)
 
22451
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22452
for as_dir in $PATH
 
22453
do
 
22454
  IFS=$as_save_IFS
 
22455
  test -z "$as_dir" && as_dir=.
 
22456
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22457
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22458
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22459
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22460
    break 2
 
22461
  fi
 
22462
done
 
22463
done
 
22464
 
 
22465
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
22466
  ;;
 
22467
esac
 
22468
fi
 
22469
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
22470
 
 
22471
if test -n "$PKG_CONFIG"; then
 
22472
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
22473
echo "${ECHO_T}$PKG_CONFIG" >&6
 
22474
else
 
22475
  echo "$as_me:$LINENO: result: no" >&5
 
22476
echo "${ECHO_T}no" >&6
 
22477
fi
 
22478
 
 
22479
  fi
 
22480
 
 
22481
  if test "$PKG_CONFIG" = "no" ; then
 
22482
     echo "*** The pkg-config script could not be found. Make sure it is"
 
22483
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
22484
     echo "*** to the full path to pkg-config."
 
22485
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
22486
  else
 
22487
     PKG_CONFIG_MIN_VERSION=0.9.0
 
22488
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
22489
        echo "$as_me:$LINENO: checking for libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22490
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22491
                         libgnomeprintui-2.2 >= 2.6.0" >&5
 
22492
echo $ECHO_N "checking for libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22493
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22494
                         libgnomeprintui-2.2 >= 2.6.0... $ECHO_C" >&6
 
22495
 
 
22496
        if $PKG_CONFIG --exists "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22497
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22498
                         libgnomeprintui-2.2 >= 2.6.0" ; then
 
22499
            echo "$as_me:$LINENO: result: yes" >&5
 
22500
echo "${ECHO_T}yes" >&6
 
22501
            succeeded=yes
 
22502
 
 
22503
            echo "$as_me:$LINENO: checking GEDIT_CFLAGS" >&5
 
22504
echo $ECHO_N "checking GEDIT_CFLAGS... $ECHO_C" >&6
 
22505
            GEDIT_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22506
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22507
                         libgnomeprintui-2.2 >= 2.6.0"`
 
22508
            echo "$as_me:$LINENO: result: $GEDIT_CFLAGS" >&5
 
22509
echo "${ECHO_T}$GEDIT_CFLAGS" >&6
 
22510
 
 
22511
            echo "$as_me:$LINENO: checking GEDIT_LIBS" >&5
 
22512
echo $ECHO_N "checking GEDIT_LIBS... $ECHO_C" >&6
 
22513
            GEDIT_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22514
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22515
                         libgnomeprintui-2.2 >= 2.6.0"`
 
22516
            echo "$as_me:$LINENO: result: $GEDIT_LIBS" >&5
 
22517
echo "${ECHO_T}$GEDIT_LIBS" >&6
 
22518
        else
 
22519
            GEDIT_CFLAGS=""
 
22520
            GEDIT_LIBS=""
 
22521
            ## If we have a custom action on failure, don't print errors, but
 
22522
            ## do set a variable so people can do so.
 
22523
            GEDIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22524
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22525
                         libgnomeprintui-2.2 >= 2.6.0"`
 
22526
            echo $GEDIT_PKG_ERRORS
 
22527
        fi
 
22528
 
 
22529
 
 
22530
 
 
22531
     else
 
22532
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
22533
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
22534
     fi
 
22535
  fi
 
22536
 
 
22537
  if test $succeeded = yes; then
 
22538
     :
 
22539
  else
 
22540
     { { echo "$as_me:$LINENO: error: Library requirements (libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22541
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22542
                         libgnomeprintui-2.2 >= 2.6.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
 
22543
echo "$as_me: error: Library requirements (libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
 
22544
                         eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
 
22545
                         libgnomeprintui-2.2 >= 2.6.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;}
 
22546
   { (exit 1); exit 1; }; }
 
22547
  fi
 
22548
 
 
22549
GEDIT_LIBS="${GEDIT_LIBS}"
 
22550
 
 
22551
 
 
22552
 
 
22553
 
 
22554
 
 
22555
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
22556
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
22557
  else
 
22558
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
22559
  fi
 
22560
 
 
22561
 
 
22562
# Check whether --with-gconf-source or --without-gconf-source was given.
 
22563
if test "${with_gconf_source+set}" = set; then
 
22564
  withval="$with_gconf_source"
 
22565
  GCONF_SCHEMA_CONFIG_SOURCE="$withval"
 
22566
fi;
 
22567
 
 
22568
 
 
22569
  echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
 
22570
echo "${ECHO_T}Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6
 
22571
 
 
22572
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
22573
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
22574
  fi
 
22575
 
 
22576
 
 
22577
# Check whether --with-gconf-schema-file-dir or --without-gconf-schema-file-dir was given.
 
22578
if test "${with_gconf_schema_file_dir+set}" = set; then
 
22579
  withval="$with_gconf_schema_file_dir"
 
22580
  GCONF_SCHEMA_FILE_DIR="$withval"
 
22581
fi;
 
22582
 
 
22583
 
 
22584
  echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
 
22585
echo "${ECHO_T}Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6
 
22586
 
 
22587
  # Check whether --enable-schemas-install or --disable-schemas-install was given.
 
22588
if test "${enable_schemas_install+set}" = set; then
 
22589
  enableval="$enable_schemas_install"
 
22590
  case "${enableval}" in
 
22591
       yes) schemas_install=true ;;
 
22592
       no)  schemas_install=false ;;
 
22593
       *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-schemas-install" >&5
 
22594
echo "$as_me: error: bad value ${enableval} for --disable-schemas-install" >&2;}
 
22595
   { (exit 1); exit 1; }; } ;;
 
22596
     esac
 
22597
else
 
22598
  schemas_install=true
 
22599
fi;
 
22600
 
 
22601
 
 
22602
if test x$schemas_install = xtrue; then
 
22603
  GCONF_SCHEMAS_INSTALL_TRUE=
 
22604
  GCONF_SCHEMAS_INSTALL_FALSE='#'
 
22605
else
 
22606
  GCONF_SCHEMAS_INSTALL_TRUE='#'
 
22607
  GCONF_SCHEMAS_INSTALL_FALSE=
 
22608
fi
 
22609
 
 
22610
 
 
22611
 
 
22612
 
 
22613
 
 
22614
echo "$as_me:$LINENO: checking for poptStrippedArgv in -lpopt" >&5
 
22615
echo $ECHO_N "checking for poptStrippedArgv in -lpopt... $ECHO_C" >&6
 
22616
if test "${ac_cv_lib_popt_poptStrippedArgv+set}" = set; then
 
22617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22618
else
 
22619
  ac_check_lib_save_LIBS=$LIBS
 
22620
LIBS="-lpopt  $LIBS"
 
22621
cat >conftest.$ac_ext <<_ACEOF
 
22622
/* confdefs.h.  */
 
22623
_ACEOF
 
22624
cat confdefs.h >>conftest.$ac_ext
 
22625
cat >>conftest.$ac_ext <<_ACEOF
 
22626
/* end confdefs.h.  */
 
22627
 
 
22628
/* Override any gcc2 internal prototype to avoid an error.  */
 
22629
#ifdef __cplusplus
 
22630
extern "C"
 
22631
#endif
 
22632
/* We use char because int might match the return type of a gcc2
 
22633
   builtin and then its argument prototype would still apply.  */
 
22634
char poptStrippedArgv ();
 
22635
int
 
22636
main ()
 
22637
{
 
22638
poptStrippedArgv ();
 
22639
  ;
 
22640
  return 0;
 
22641
}
 
22642
_ACEOF
 
22643
rm -f conftest.$ac_objext conftest$ac_exeext
 
22644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22645
  (eval $ac_link) 2>conftest.er1
 
22646
  ac_status=$?
 
22647
  grep -v '^ *+' conftest.er1 >conftest.err
 
22648
  rm -f conftest.er1
 
22649
  cat conftest.err >&5
 
22650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22651
  (exit $ac_status); } &&
 
22652
         { ac_try='test -z "$ac_c_werror_flag"
 
22653
                         || test ! -s conftest.err'
 
22654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22655
  (eval $ac_try) 2>&5
 
22656
  ac_status=$?
 
22657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22658
  (exit $ac_status); }; } &&
 
22659
         { ac_try='test -s conftest$ac_exeext'
 
22660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22661
  (eval $ac_try) 2>&5
 
22662
  ac_status=$?
 
22663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22664
  (exit $ac_status); }; }; then
 
22665
  ac_cv_lib_popt_poptStrippedArgv=yes
 
22666
else
 
22667
  echo "$as_me: failed program was:" >&5
 
22668
sed 's/^/| /' conftest.$ac_ext >&5
 
22669
 
 
22670
ac_cv_lib_popt_poptStrippedArgv=no
 
22671
fi
 
22672
rm -f conftest.err conftest.$ac_objext \
 
22673
      conftest$ac_exeext conftest.$ac_ext
 
22674
LIBS=$ac_check_lib_save_LIBS
 
22675
fi
 
22676
echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrippedArgv" >&5
 
22677
echo "${ECHO_T}$ac_cv_lib_popt_poptStrippedArgv" >&6
 
22678
if test $ac_cv_lib_popt_poptStrippedArgv = yes; then
 
22679
  cat >>confdefs.h <<_ACEOF
 
22680
#define HAVE_LIBPOPT 1
 
22681
_ACEOF
 
22682
 
 
22683
  LIBS="-lpopt $LIBS"
 
22684
 
 
22685
else
 
22686
  { { echo "$as_me:$LINENO: error: popt 1.5 or newer is required to build
 
22687
gedit. You can download the latest version from ftp://people.redhat.com/sopwith/popt/" >&5
 
22688
echo "$as_me: error: popt 1.5 or newer is required to build
 
22689
gedit. You can download the latest version from ftp://people.redhat.com/sopwith/popt/" >&2;}
 
22690
   { (exit 1); exit 1; }; }
 
22691
fi
 
22692
 
 
22693
 
 
22694
 
 
22695
 
 
22696
for ac_func in ngettext
 
22697
do
 
22698
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22699
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22700
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22701
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22703
else
 
22704
  cat >conftest.$ac_ext <<_ACEOF
 
22705
/* confdefs.h.  */
 
22706
_ACEOF
 
22707
cat confdefs.h >>conftest.$ac_ext
 
22708
cat >>conftest.$ac_ext <<_ACEOF
 
22709
/* end confdefs.h.  */
 
22710
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22711
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22712
#define $ac_func innocuous_$ac_func
 
22713
 
 
22714
/* System header to define __stub macros and hopefully few prototypes,
 
22715
    which can conflict with char $ac_func (); below.
 
22716
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22717
    <limits.h> exists even on freestanding compilers.  */
 
22718
 
 
22719
#ifdef __STDC__
 
22720
# include <limits.h>
 
22721
#else
 
22722
# include <assert.h>
 
22723
#endif
 
22724
 
 
22725
#undef $ac_func
 
22726
 
 
22727
/* Override any gcc2 internal prototype to avoid an error.  */
 
22728
#ifdef __cplusplus
 
22729
extern "C"
 
22730
{
 
22731
#endif
 
22732
/* We use char because int might match the return type of a gcc2
 
22733
   builtin and then its argument prototype would still apply.  */
 
22734
char $ac_func ();
 
22735
/* The GNU C library defines this for functions which it implements
 
22736
    to always fail with ENOSYS.  Some functions are actually named
 
22737
    something starting with __ and the normal name is an alias.  */
 
22738
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22739
choke me
 
22740
#else
 
22741
char (*f) () = $ac_func;
 
22742
#endif
 
22743
#ifdef __cplusplus
 
22744
}
 
22745
#endif
 
22746
 
 
22747
int
 
22748
main ()
 
22749
{
 
22750
return f != $ac_func;
 
22751
  ;
 
22752
  return 0;
 
22753
}
 
22754
_ACEOF
 
22755
rm -f conftest.$ac_objext conftest$ac_exeext
 
22756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22757
  (eval $ac_link) 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"
 
22765
                         || test ! -s conftest.err'
 
22766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22767
  (eval $ac_try) 2>&5
 
22768
  ac_status=$?
 
22769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22770
  (exit $ac_status); }; } &&
 
22771
         { ac_try='test -s conftest$ac_exeext'
 
22772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22773
  (eval $ac_try) 2>&5
 
22774
  ac_status=$?
 
22775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22776
  (exit $ac_status); }; }; then
 
22777
  eval "$as_ac_var=yes"
 
22778
else
 
22779
  echo "$as_me: failed program was:" >&5
 
22780
sed 's/^/| /' conftest.$ac_ext >&5
 
22781
 
 
22782
eval "$as_ac_var=no"
 
22783
fi
 
22784
rm -f conftest.err conftest.$ac_objext \
 
22785
      conftest$ac_exeext conftest.$ac_ext
 
22786
fi
 
22787
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22788
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22789
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22790
  cat >>confdefs.h <<_ACEOF
 
22791
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22792
_ACEOF
 
22793
 
 
22794
else
 
22795
  { { echo "$as_me:$LINENO: error: ngettext function is required to build gedit." >&5
 
22796
echo "$as_me: error: ngettext function is required to build gedit." >&2;}
 
22797
   { (exit 1); exit 1; }; }
 
22798
fi
 
22799
done
 
22800
 
 
22801
 
 
22802
if test "x${datadir}" = 'x${prefix}/share'; then
 
22803
  if test "x${prefix}" = "xNONE"; then
 
22804
 
 
22805
cat >>confdefs.h <<_ACEOF
 
22806
#define GEDIT_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
 
22807
_ACEOF
 
22808
 
 
22809
  else
 
22810
 
 
22811
cat >>confdefs.h <<_ACEOF
 
22812
#define GEDIT_DATA_DIR "${prefix}/share/${PACKAGE}"
 
22813
_ACEOF
 
22814
 
 
22815
  fi
 
22816
else
 
22817
 
 
22818
cat >>confdefs.h <<_ACEOF
 
22819
#define GEDIT_DATA_DIR "${datadir}/${PACKAGE}"
 
22820
_ACEOF
 
22821
 
 
22822
fi
 
22823
 
 
22824
if test "x${prefix}" = "xNONE"; then
 
22825
 
 
22826
cat >>confdefs.h <<_ACEOF
 
22827
#define PIXMAPS_DIR "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
22828
_ACEOF
 
22829
 
 
22830
  pixmapsdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
22831
else
 
22832
 
 
22833
cat >>confdefs.h <<_ACEOF
 
22834
#define PIXMAPS_DIR "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
22835
_ACEOF
 
22836
 
 
22837
  pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
22838
fi
 
22839
 
 
22840
 
 
22841
 
 
22842
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
 
22843
set dummy glib-genmarshal; ac_word=$2
 
22844
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22846
if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
 
22847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22848
else
 
22849
  case $GLIB_GENMARSHAL in
 
22850
  [\\/]* | ?:[\\/]*)
 
22851
  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
 
22852
  ;;
 
22853
  *)
 
22854
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22855
for as_dir in $PATH
 
22856
do
 
22857
  IFS=$as_save_IFS
 
22858
  test -z "$as_dir" && as_dir=.
 
22859
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22860
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22861
    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
 
22862
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22863
    break 2
 
22864
  fi
 
22865
done
 
22866
done
 
22867
 
 
22868
  ;;
 
22869
esac
 
22870
fi
 
22871
GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
 
22872
 
 
22873
if test -n "$GLIB_GENMARSHAL"; then
 
22874
  echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
 
22875
echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
 
22876
else
 
22877
  echo "$as_me:$LINENO: result: no" >&5
 
22878
echo "${ECHO_T}no" >&6
 
22879
fi
 
22880
 
 
22881
 
 
22882
 
 
22883
 
 
22884
    # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
 
22885
if test "${enable_compile_warnings+set}" = set; then
 
22886
  enableval="$enable_compile_warnings"
 
22887
 
 
22888
else
 
22889
  enable_compile_warnings="yes"
 
22890
fi;
 
22891
 
 
22892
    warnCFLAGS=
 
22893
    if test "x$GCC" != xyes; then
 
22894
        enable_compile_warnings=no
 
22895
    fi
 
22896
 
 
22897
    warning_flags=
 
22898
    realsave_CFLAGS="$CFLAGS"
 
22899
 
 
22900
    case "$enable_compile_warnings" in
 
22901
    no)
 
22902
        warning_flags=
 
22903
        ;;
 
22904
    minimum)
 
22905
        warning_flags="-Wall"
 
22906
        ;;
 
22907
    yes)
 
22908
        warning_flags="-Wall -Wmissing-prototypes"
 
22909
        ;;
 
22910
    maximum|error)
 
22911
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
22912
        CFLAGS="$warning_flags $CFLAGS"
 
22913
        for option in -Wno-sign-compare; do
 
22914
                SAVE_CFLAGS="$CFLAGS"
 
22915
                CFLAGS="$CFLAGS $option"
 
22916
                echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
 
22917
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
 
22918
                cat >conftest.$ac_ext <<_ACEOF
 
22919
/* confdefs.h.  */
 
22920
_ACEOF
 
22921
cat confdefs.h >>conftest.$ac_ext
 
22922
cat >>conftest.$ac_ext <<_ACEOF
 
22923
/* end confdefs.h.  */
 
22924
 
 
22925
int
 
22926
main ()
 
22927
{
 
22928
 
 
22929
  ;
 
22930
  return 0;
 
22931
}
 
22932
_ACEOF
 
22933
rm -f conftest.$ac_objext
 
22934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22935
  (eval $ac_compile) 2>conftest.er1
 
22936
  ac_status=$?
 
22937
  grep -v '^ *+' conftest.er1 >conftest.err
 
22938
  rm -f conftest.er1
 
22939
  cat conftest.err >&5
 
22940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22941
  (exit $ac_status); } &&
 
22942
         { ac_try='test -z "$ac_c_werror_flag"
 
22943
                         || test ! -s conftest.err'
 
22944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22945
  (eval $ac_try) 2>&5
 
22946
  ac_status=$?
 
22947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22948
  (exit $ac_status); }; } &&
 
22949
         { ac_try='test -s conftest.$ac_objext'
 
22950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22951
  (eval $ac_try) 2>&5
 
22952
  ac_status=$?
 
22953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22954
  (exit $ac_status); }; }; then
 
22955
  has_option=yes
 
22956
else
 
22957
  echo "$as_me: failed program was:" >&5
 
22958
sed 's/^/| /' conftest.$ac_ext >&5
 
22959
 
 
22960
has_option=no
 
22961
fi
 
22962
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22963
                CFLAGS="$SAVE_CFLAGS"
 
22964
                echo "$as_me:$LINENO: result: $has_option" >&5
 
22965
echo "${ECHO_T}$has_option" >&6
 
22966
                if test $has_option = yes; then
 
22967
                  warning_flags="$warning_flags $option"
 
22968
                fi
 
22969
                unset has_option
 
22970
                unset SAVE_CFLAGS
 
22971
        done
 
22972
        unset option
 
22973
        if test "$enable_compile_warnings" = "error" ; then
 
22974
            warning_flags="$warning_flags -Werror"
 
22975
        fi
 
22976
        ;;
 
22977
    *)
 
22978
        { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
 
22979
echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
 
22980
   { (exit 1); exit 1; }; }
 
22981
        ;;
 
22982
    esac
 
22983
    CFLAGS="$realsave_CFLAGS"
 
22984
    echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
 
22985
echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
 
22986
    echo "$as_me:$LINENO: result: $warning_flags" >&5
 
22987
echo "${ECHO_T}$warning_flags" >&6
 
22988
 
 
22989
    # Check whether --enable-iso-c or --disable-iso-c was given.
 
22990
if test "${enable_iso_c+set}" = set; then
 
22991
  enableval="$enable_iso_c"
 
22992
 
 
22993
else
 
22994
  enable_iso_c=no
 
22995
fi;
 
22996
 
 
22997
    echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
 
22998
echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
 
22999
    complCFLAGS=
 
23000
    if test "x$enable_iso_c" != "xno"; then
 
23001
        if test "x$GCC" = "xyes"; then
 
23002
        case " $CFLAGS " in
 
23003
            *\ \        -ansi\ \        *) ;;
 
23004
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
23005
        esac
 
23006
        case " $CFLAGS " in
 
23007
            *\ \        -pedantic\ \    *) ;;
 
23008
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
23009
        esac
 
23010
        fi
 
23011
    fi
 
23012
    echo "$as_me:$LINENO: result: $complCFLAGS" >&5
 
23013
echo "${ECHO_T}$complCFLAGS" >&6
 
23014
 
 
23015
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
23016
 
 
23017
 
 
23018
 
 
23019
# Check whether --enable-deprecations or --disable-deprecations was given.
 
23020
if test "${enable_deprecations+set}" = set; then
 
23021
  enableval="$enable_deprecations"
 
23022
 
 
23023
else
 
23024
  enable_deprecations=no
 
23025
fi;
 
23026
 
 
23027
if test "x$enable_deprecations" = "xyes"; then
 
23028
   DISABLE_DEPRECATED_CFLAGS="\
 
23029
-DG_DISABLE_DEPRECATED \
 
23030
-DGDK_DISABLE_DEPRECATED \
 
23031
-DGTK_DISABLE_DEPRECATED \
 
23032
-DGDK_PIXBUF_DISABLE_DEPRECATED \
 
23033
-DGNOME_DISABLE_DEPRECATED"
 
23034
 
 
23035
fi
 
23036
 
 
23037
 
 
23038
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
 
23039
 
 
23040
 
 
23041
LIBBONOBO_IDL="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
 
23042
 
 
23043
 
 
23044
BONOBO_ACTIVATION_IDL="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
 
23045
 
 
23046
 
 
23047
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
 
23048
 
 
23049
 
 
23050
                                                                                                                                                                                                                                                                                                                                          ac_config_files="$ac_config_files Makefile data/gedit.pc data/Makefile po/Makefile.in gedit/Makefile gedit/dialogs/Makefile gedit/recent-files/Makefile pixmaps/Makefile plugins/Makefile plugins/changecase/Makefile plugins/spell/Makefile plugins/docinfo/Makefile plugins/sample/Makefile plugins/time/Makefile plugins/indent/Makefile plugins/taglist/Makefile plugins/shell_output/Makefile plugins/sort/Makefile viewer/Makefile help/Makefile help/C/Makefile help/de/Makefile help/es/Makefile help/eu/Makefile help/fr/Makefile help/it/Makefile help/sv/Makefile help/ja/Makefile help/ko/Makefile help/zh_CN/Makefile help/zh_HK/Makefile help/zh_TW/Makefile help/ro/Makefile"
 
23051
cat >confcache <<\_ACEOF
4958
23052
# This file is a shell script that caches the results of configure
4959
23053
# tests run on this system so they can be shared between configure
4960
 
# scripts and configure runs.  It is not useful on other systems.
4961
 
# If it contains results you don't want to keep, you may remove or edit it.
4962
 
#
4963
 
# By default, configure uses ./config.cache as the cache file,
4964
 
# creating it if it does not exist already.  You can give configure
4965
 
# the --cache-file=FILE option to use a different cache file; that is
4966
 
# what configure does when it calls configure scripts in
4967
 
# subdirectories, so they share the cache.
4968
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
4969
 
# config.status only pays attention to the cache file if you give it the
4970
 
# --recheck option to rerun configure.
4971
 
#
4972
 
EOF
 
23054
# scripts and configure runs, see configure's option --config-cache.
 
23055
# It is not useful on other systems.  If it contains results you don't
 
23056
# want to keep, you may remove or edit it.
 
23057
#
 
23058
# config.status only pays attention to the cache file if you give it
 
23059
# the --recheck option to rerun configure.
 
23060
#
 
23061
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
23062
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
23063
# following values.
 
23064
 
 
23065
_ACEOF
 
23066
 
4973
23067
# The following way of writing the cache mishandles newlines in values,
4974
23068
# but we know of no workaround that is simple, portable, and efficient.
4975
23069
# So, don't put newlines in cache variables' values.
4976
23070
# Ultrix sh set writes to stderr and can't be redirected directly,
4977
23071
# and sets the high bit in the cache file unless we assign to the vars.
4978
 
(set) 2>&1 |
4979
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
4980
 
  *ac_space=\ *)
4981
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
4982
 
    # turns \\\\ into \\, and sed turns \\ into \).
4983
 
    sed -n \
4984
 
      -e "s/'/'\\\\''/g" \
4985
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4986
 
    ;;
4987
 
  *)
4988
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
4989
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4990
 
    ;;
4991
 
  esac >> confcache
4992
 
if cmp -s $cache_file confcache; then
4993
 
  :
4994
 
else
 
23072
{
 
23073
  (set) 2>&1 |
 
23074
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
23075
    *ac_space=\ *)
 
23076
      # `set' does not quote correctly, so add quotes (double-quote
 
23077
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
23078
      sed -n \
 
23079
        "s/'/'\\\\''/g;
 
23080
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
23081
      ;;
 
23082
    *)
 
23083
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
23084
      sed -n \
 
23085
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
23086
      ;;
 
23087
    esac;
 
23088
} |
 
23089
  sed '
 
23090
     t clear
 
23091
     : clear
 
23092
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
23093
     t end
 
23094
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
23095
     : end' >>confcache
 
23096
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4995
23097
  if test -w $cache_file; then
4996
 
    echo "updating cache $cache_file"
4997
 
    cat confcache > $cache_file
 
23098
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
23099
    cat confcache >$cache_file
4998
23100
  else
4999
23101
    echo "not updating unwritable cache $cache_file"
5000
23102
  fi
5001
23103
fi
5002
23104
rm -f confcache
5003
23105
 
5004
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5005
 
 
5006
23106
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5007
23107
# Let make expand exec_prefix.
5008
23108
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5009
23109
 
5010
 
# Any assignment to VPATH causes Sun make to only execute
5011
 
# the first set of double-colon rules, so remove it if not needed.
5012
 
# If there is a colon in the path, we need to keep it.
 
23110
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
23111
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
23112
# trailing colons and then remove the whole line if VPATH becomes empty
 
23113
# (actually we leave an empty line to preserve line numbers).
5013
23114
if test "x$srcdir" = x.; then
5014
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
23115
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
23116
s/:*\$(srcdir):*/:/;
 
23117
s/:*\${srcdir}:*/:/;
 
23118
s/:*@srcdir@:*/:/;
 
23119
s/^\([^=]*=[     ]*\):*/\1/;
 
23120
s/:*$//;
 
23121
s/^[^=]*=[       ]*$//;
 
23122
}'
5015
23123
fi
5016
23124
 
5017
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5018
 
 
5019
23125
DEFS=-DHAVE_CONFIG_H
5020
23126
 
5021
 
# Without the "./", some shells look in PATH for config.status.
 
23127
ac_libobjs=
 
23128
ac_ltlibobjs=
 
23129
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
23130
  # 1. Remove the extension, and $U if already installed.
 
23131
  ac_i=`echo "$ac_i" |
 
23132
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
23133
  # 2. Add them.
 
23134
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
23135
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
23136
done
 
23137
LIBOBJS=$ac_libobjs
 
23138
 
 
23139
LTLIBOBJS=$ac_ltlibobjs
 
23140
 
 
23141
 
 
23142
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
23143
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
23144
Usually this means the macro was only invoked conditionally." >&5
 
23145
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
23146
Usually this means the macro was only invoked conditionally." >&2;}
 
23147
   { (exit 1); exit 1; }; }
 
23148
fi
 
23149
 
 
23150
 
 
23151
        mv -f po/POTFILES po/POTFILES.tmp
 
23152
        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
23153
        rm -f po/POTFILES.tmp
 
23154
 
 
23155
 
 
23156
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
23157
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
23158
Usually this means the macro was only invoked conditionally." >&5
 
23159
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
23160
Usually this means the macro was only invoked conditionally." >&2;}
 
23161
   { (exit 1); exit 1; }; }
 
23162
fi
 
23163
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
23164
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
23165
Usually this means the macro was only invoked conditionally." >&5
 
23166
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
23167
Usually this means the macro was only invoked conditionally." >&2;}
 
23168
   { (exit 1); exit 1; }; }
 
23169
fi
 
23170
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
23171
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
23172
Usually this means the macro was only invoked conditionally." >&5
 
23173
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
23174
Usually this means the macro was only invoked conditionally." >&2;}
 
23175
   { (exit 1); exit 1; }; }
 
23176
fi
 
23177
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
23178
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
23179
Usually this means the macro was only invoked conditionally." >&5
 
23180
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
23181
Usually this means the macro was only invoked conditionally." >&2;}
 
23182
   { (exit 1); exit 1; }; }
 
23183
fi
 
23184
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
 
23185
  { { echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
 
23186
Usually this means the macro was only invoked conditionally." >&5
 
23187
echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
 
23188
Usually this means the macro was only invoked conditionally." >&2;}
 
23189
   { (exit 1); exit 1; }; }
 
23190
fi
 
23191
 
5022
23192
: ${CONFIG_STATUS=./config.status}
5023
 
 
5024
 
echo creating $CONFIG_STATUS
5025
 
rm -f $CONFIG_STATUS
5026
 
cat > $CONFIG_STATUS <<EOF
5027
 
#! /bin/sh
5028
 
# Generated automatically by configure.
 
23193
ac_clean_files_save=$ac_clean_files
 
23194
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
23195
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
23196
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
23197
cat >$CONFIG_STATUS <<_ACEOF
 
23198
#! $SHELL
 
23199
# Generated by $as_me.
5029
23200
# Run this file to recreate the current configuration.
5030
 
# This directory was configured as follows,
5031
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5032
 
#
5033
 
# $0 $ac_configure_args
5034
 
#
5035
23201
# Compiler output produced by configure, useful for debugging
5036
 
# configure, is in ./config.log if it exists.
5037
 
 
5038
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5039
 
for ac_option
5040
 
do
5041
 
  case "\$ac_option" in
 
23202
# configure, is in config.log if it exists.
 
23203
 
 
23204
debug=false
 
23205
ac_cs_recheck=false
 
23206
ac_cs_silent=false
 
23207
SHELL=\${CONFIG_SHELL-$SHELL}
 
23208
_ACEOF
 
23209
 
 
23210
cat >>$CONFIG_STATUS <<\_ACEOF
 
23211
## --------------------- ##
 
23212
## M4sh Initialization.  ##
 
23213
## --------------------- ##
 
23214
 
 
23215
# Be Bourne compatible
 
23216
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
23217
  emulate sh
 
23218
  NULLCMD=:
 
23219
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
23220
  # is contrary to our usage.  Disable this feature.
 
23221
  alias -g '${1+"$@"}'='"$@"'
 
23222
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
23223
  set -o posix
 
23224
fi
 
23225
DUALCASE=1; export DUALCASE # for MKS sh
 
23226
 
 
23227
# Support unset when possible.
 
23228
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
23229
  as_unset=unset
 
23230
else
 
23231
  as_unset=false
 
23232
fi
 
23233
 
 
23234
 
 
23235
# Work around bugs in pre-3.0 UWIN ksh.
 
23236
$as_unset ENV MAIL MAILPATH
 
23237
PS1='$ '
 
23238
PS2='> '
 
23239
PS4='+ '
 
23240
 
 
23241
# NLS nuisances.
 
23242
for as_var in \
 
23243
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
23244
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
23245
  LC_TELEPHONE LC_TIME
 
23246
do
 
23247
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
23248
    eval $as_var=C; export $as_var
 
23249
  else
 
23250
    $as_unset $as_var
 
23251
  fi
 
23252
done
 
23253
 
 
23254
# Required to use basename.
 
23255
if expr a : '\(a\)' >/dev/null 2>&1; then
 
23256
  as_expr=expr
 
23257
else
 
23258
  as_expr=false
 
23259
fi
 
23260
 
 
23261
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
23262
  as_basename=basename
 
23263
else
 
23264
  as_basename=false
 
23265
fi
 
23266
 
 
23267
 
 
23268
# Name of the executable.
 
23269
as_me=`$as_basename "$0" ||
 
23270
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
23271
         X"$0" : 'X\(//\)$' \| \
 
23272
         X"$0" : 'X\(/\)$' \| \
 
23273
         .     : '\(.\)' 2>/dev/null ||
 
23274
echo X/"$0" |
 
23275
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
23276
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
23277
          /^X\/\(\/\).*/{ s//\1/; q; }
 
23278
          s/.*/./; q'`
 
23279
 
 
23280
 
 
23281
# PATH needs CR, and LINENO needs CR and PATH.
 
23282
# Avoid depending upon Character Ranges.
 
23283
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23284
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23285
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23286
as_cr_digits='0123456789'
 
23287
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23288
 
 
23289
# The user is always right.
 
23290
if test "${PATH_SEPARATOR+set}" != set; then
 
23291
  echo "#! /bin/sh" >conf$$.sh
 
23292
  echo  "exit 0"   >>conf$$.sh
 
23293
  chmod +x conf$$.sh
 
23294
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
23295
    PATH_SEPARATOR=';'
 
23296
  else
 
23297
    PATH_SEPARATOR=:
 
23298
  fi
 
23299
  rm -f conf$$.sh
 
23300
fi
 
23301
 
 
23302
 
 
23303
  as_lineno_1=$LINENO
 
23304
  as_lineno_2=$LINENO
 
23305
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
23306
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23307
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
23308
  # Find who we are.  Look in the path if we contain no path at all
 
23309
  # relative or not.
 
23310
  case $0 in
 
23311
    *[\\/]* ) as_myself=$0 ;;
 
23312
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23313
for as_dir in $PATH
 
23314
do
 
23315
  IFS=$as_save_IFS
 
23316
  test -z "$as_dir" && as_dir=.
 
23317
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23318
done
 
23319
 
 
23320
       ;;
 
23321
  esac
 
23322
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
23323
  # in which case we are not to be found in the path.
 
23324
  if test "x$as_myself" = x; then
 
23325
    as_myself=$0
 
23326
  fi
 
23327
  if test ! -f "$as_myself"; then
 
23328
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
23329
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
23330
   { (exit 1); exit 1; }; }
 
23331
  fi
 
23332
  case $CONFIG_SHELL in
 
23333
  '')
 
23334
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23335
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
23336
do
 
23337
  IFS=$as_save_IFS
 
23338
  test -z "$as_dir" && as_dir=.
 
23339
  for as_base in sh bash ksh sh5; do
 
23340
         case $as_dir in
 
23341
         /*)
 
23342
           if ("$as_dir/$as_base" -c '
 
23343
  as_lineno_1=$LINENO
 
23344
  as_lineno_2=$LINENO
 
23345
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
23346
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23347
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
23348
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
23349
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
23350
             CONFIG_SHELL=$as_dir/$as_base
 
23351
             export CONFIG_SHELL
 
23352
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
23353
           fi;;
 
23354
         esac
 
23355
       done
 
23356
done
 
23357
;;
 
23358
  esac
 
23359
 
 
23360
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
23361
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
23362
  # line-number line before each line; the second 'sed' does the real
 
23363
  # work.  The second script uses 'N' to pair each line-number line
 
23364
  # with the numbered line, and appends trailing '-' during
 
23365
  # substitution so that $LINENO is not a special case at line end.
 
23366
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
23367
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
23368
  sed '=' <$as_myself |
 
23369
    sed '
 
23370
      N
 
23371
      s,$,-,
 
23372
      : loop
 
23373
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
23374
      t loop
 
23375
      s,-$,,
 
23376
      s,^['$as_cr_digits']*\n,,
 
23377
    ' >$as_me.lineno &&
 
23378
  chmod +x $as_me.lineno ||
 
23379
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
23380
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
23381
   { (exit 1); exit 1; }; }
 
23382
 
 
23383
  # Don't try to exec as it changes $[0], causing all sort of problems
 
23384
  # (the dirname of $[0] is not the place where we might find the
 
23385
  # original and so on.  Autoconf is especially sensible to this).
 
23386
  . ./$as_me.lineno
 
23387
  # Exit status is that of the last command.
 
23388
  exit
 
23389
}
 
23390
 
 
23391
 
 
23392
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
23393
  *c*,-n*) ECHO_N= ECHO_C='
 
23394
' ECHO_T='      ' ;;
 
23395
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
23396
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
23397
esac
 
23398
 
 
23399
if expr a : '\(a\)' >/dev/null 2>&1; then
 
23400
  as_expr=expr
 
23401
else
 
23402
  as_expr=false
 
23403
fi
 
23404
 
 
23405
rm -f conf$$ conf$$.exe conf$$.file
 
23406
echo >conf$$.file
 
23407
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
23408
  # We could just check for DJGPP; but this test a) works b) is more generic
 
23409
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
23410
  if test -f conf$$.exe; then
 
23411
    # Don't use ln at all; we don't have any links
 
23412
    as_ln_s='cp -p'
 
23413
  else
 
23414
    as_ln_s='ln -s'
 
23415
  fi
 
23416
elif ln conf$$.file conf$$ 2>/dev/null; then
 
23417
  as_ln_s=ln
 
23418
else
 
23419
  as_ln_s='cp -p'
 
23420
fi
 
23421
rm -f conf$$ conf$$.exe conf$$.file
 
23422
 
 
23423
if mkdir -p . 2>/dev/null; then
 
23424
  as_mkdir_p=:
 
23425
else
 
23426
  test -d ./-p && rmdir ./-p
 
23427
  as_mkdir_p=false
 
23428
fi
 
23429
 
 
23430
as_executable_p="test -f"
 
23431
 
 
23432
# Sed expression to map a string onto a valid CPP name.
 
23433
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
23434
 
 
23435
# Sed expression to map a string onto a valid variable name.
 
23436
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
23437
 
 
23438
 
 
23439
# IFS
 
23440
# We need space, tab and new line, in precisely that order.
 
23441
as_nl='
 
23442
'
 
23443
IFS="   $as_nl"
 
23444
 
 
23445
# CDPATH.
 
23446
$as_unset CDPATH
 
23447
 
 
23448
exec 6>&1
 
23449
 
 
23450
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
23451
# report actual input values of CONFIG_FILES etc. instead of their
 
23452
# values after options handling.  Logging --version etc. is OK.
 
23453
exec 5>>config.log
 
23454
{
 
23455
  echo
 
23456
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23457
## Running $as_me. ##
 
23458
_ASBOX
 
23459
} >&5
 
23460
cat >&5 <<_CSEOF
 
23461
 
 
23462
This file was extended by gedit $as_me 2.8.1, which was
 
23463
generated by GNU Autoconf 2.59.  Invocation command line was
 
23464
 
 
23465
  CONFIG_FILES    = $CONFIG_FILES
 
23466
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23467
  CONFIG_LINKS    = $CONFIG_LINKS
 
23468
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23469
  $ $0 $@
 
23470
 
 
23471
_CSEOF
 
23472
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
23473
echo >&5
 
23474
_ACEOF
 
23475
 
 
23476
# Files that config.status was made for.
 
23477
if test -n "$ac_config_files"; then
 
23478
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
23479
fi
 
23480
 
 
23481
if test -n "$ac_config_headers"; then
 
23482
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
23483
fi
 
23484
 
 
23485
if test -n "$ac_config_links"; then
 
23486
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
23487
fi
 
23488
 
 
23489
if test -n "$ac_config_commands"; then
 
23490
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
23491
fi
 
23492
 
 
23493
cat >>$CONFIG_STATUS <<\_ACEOF
 
23494
 
 
23495
ac_cs_usage="\
 
23496
\`$as_me' instantiates files from templates according to the
 
23497
current configuration.
 
23498
 
 
23499
Usage: $0 [OPTIONS] [FILE]...
 
23500
 
 
23501
  -h, --help       print this help, then exit
 
23502
  -V, --version    print version number, then exit
 
23503
  -q, --quiet      do not print progress messages
 
23504
  -d, --debug      don't remove temporary files
 
23505
      --recheck    update $as_me by reconfiguring in the same conditions
 
23506
  --file=FILE[:TEMPLATE]
 
23507
                   instantiate the configuration file FILE
 
23508
  --header=FILE[:TEMPLATE]
 
23509
                   instantiate the configuration header FILE
 
23510
 
 
23511
Configuration files:
 
23512
$config_files
 
23513
 
 
23514
Configuration headers:
 
23515
$config_headers
 
23516
 
 
23517
Configuration commands:
 
23518
$config_commands
 
23519
 
 
23520
Report bugs to <bug-autoconf@gnu.org>."
 
23521
_ACEOF
 
23522
 
 
23523
cat >>$CONFIG_STATUS <<_ACEOF
 
23524
ac_cs_version="\\
 
23525
gedit config.status 2.8.1
 
23526
configured by $0, generated by GNU Autoconf 2.59,
 
23527
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
23528
 
 
23529
Copyright (C) 2003 Free Software Foundation, Inc.
 
23530
This config.status script is free software; the Free Software Foundation
 
23531
gives unlimited permission to copy, distribute and modify it."
 
23532
srcdir=$srcdir
 
23533
INSTALL="$INSTALL"
 
23534
_ACEOF
 
23535
 
 
23536
cat >>$CONFIG_STATUS <<\_ACEOF
 
23537
# If no file are specified by the user, then we need to provide default
 
23538
# value.  By we need to know if files were specified by the user.
 
23539
ac_need_defaults=:
 
23540
while test $# != 0
 
23541
do
 
23542
  case $1 in
 
23543
  --*=*)
 
23544
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
23545
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
23546
    ac_shift=:
 
23547
    ;;
 
23548
  -*)
 
23549
    ac_option=$1
 
23550
    ac_optarg=$2
 
23551
    ac_shift=shift
 
23552
    ;;
 
23553
  *) # This is not an option, so the user has probably given explicit
 
23554
     # arguments.
 
23555
     ac_option=$1
 
23556
     ac_need_defaults=false;;
 
23557
  esac
 
23558
 
 
23559
  case $ac_option in
 
23560
  # Handling of the options.
 
23561
_ACEOF
 
23562
cat >>$CONFIG_STATUS <<\_ACEOF
5042
23563
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5043
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5044
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5045
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5046
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
5047
 
    exit 0 ;;
5048
 
  -help | --help | --hel | --he | --h)
5049
 
    echo "\$ac_cs_usage"; exit 0 ;;
5050
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
5051
 
  esac
5052
 
done
5053
 
 
5054
 
ac_given_srcdir=$srcdir
5055
 
ac_given_INSTALL="$INSTALL"
5056
 
 
5057
 
trap 'rm -fr `echo "
5058
 
gedit.spec
5059
 
Makefile
5060
 
intl/Makefile
5061
 
po/Makefile.in
5062
 
macros/Makefile
5063
 
help/Makefile
5064
 
help/C/Makefile
5065
 
help/ja/Makefile
5066
 
pixmaps/Makefile
5067
 
plugins/Makefile
5068
 
plugins/browse/Makefile
5069
 
plugins/convert/Makefile
5070
 
plugins/diff/Makefile
5071
 
plugins/email/Makefile
5072
 
plugins/sample/Makefile
5073
 
plugins/time/Makefile
5074
 
plugins/reverse/Makefile
5075
 
plugins/shell_output/Makefile
5076
 
src/Makefile
5077
 
src/dialogs/Makefile
5078
 
 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5079
 
EOF
5080
 
cat >> $CONFIG_STATUS <<EOF
5081
 
 
5082
 
# Protect against being on the right side of a sed subst in config.status.
5083
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5084
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5085
 
$ac_vpsub
 
23564
    ac_cs_recheck=: ;;
 
23565
  --version | --vers* | -V )
 
23566
    echo "$ac_cs_version"; exit 0 ;;
 
23567
  --he | --h)
 
23568
    # Conflict between --help and --header
 
23569
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
23570
Try \`$0 --help' for more information." >&5
 
23571
echo "$as_me: error: ambiguous option: $1
 
23572
Try \`$0 --help' for more information." >&2;}
 
23573
   { (exit 1); exit 1; }; };;
 
23574
  --help | --hel | -h )
 
23575
    echo "$ac_cs_usage"; exit 0 ;;
 
23576
  --debug | --d* | -d )
 
23577
    debug=: ;;
 
23578
  --file | --fil | --fi | --f )
 
23579
    $ac_shift
 
23580
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
23581
    ac_need_defaults=false;;
 
23582
  --header | --heade | --head | --hea )
 
23583
    $ac_shift
 
23584
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
23585
    ac_need_defaults=false;;
 
23586
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23587
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23588
    ac_cs_silent=: ;;
 
23589
 
 
23590
  # This is an error.
 
23591
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
23592
Try \`$0 --help' for more information." >&5
 
23593
echo "$as_me: error: unrecognized option: $1
 
23594
Try \`$0 --help' for more information." >&2;}
 
23595
   { (exit 1); exit 1; }; } ;;
 
23596
 
 
23597
  *) ac_config_targets="$ac_config_targets $1" ;;
 
23598
 
 
23599
  esac
 
23600
  shift
 
23601
done
 
23602
 
 
23603
ac_configure_extra_args=
 
23604
 
 
23605
if $ac_cs_silent; then
 
23606
  exec 6>/dev/null
 
23607
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23608
fi
 
23609
 
 
23610
_ACEOF
 
23611
cat >>$CONFIG_STATUS <<_ACEOF
 
23612
if \$ac_cs_recheck; then
 
23613
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23614
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23615
fi
 
23616
 
 
23617
_ACEOF
 
23618
 
 
23619
cat >>$CONFIG_STATUS <<_ACEOF
 
23620
#
 
23621
# INIT-COMMANDS section.
 
23622
#
 
23623
 
 
23624
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
 
23625
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${ICONV}'
 
23626
MSGFMT='${MSGFMT}' MSGMERGE='${MSGMERGE}' XGETTEXT='${XGETTEXT}'
 
23627
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23628
 
 
23629
 
 
23630
_ACEOF
 
23631
 
 
23632
 
 
23633
 
 
23634
cat >>$CONFIG_STATUS <<\_ACEOF
 
23635
for ac_config_target in $ac_config_targets
 
23636
do
 
23637
  case "$ac_config_target" in
 
23638
  # Handling of arguments.
 
23639
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23640
  "data/gedit.pc" ) CONFIG_FILES="$CONFIG_FILES data/gedit.pc" ;;
 
23641
  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
 
23642
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
23643
  "gedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES gedit/Makefile" ;;
 
23644
  "gedit/dialogs/Makefile" ) CONFIG_FILES="$CONFIG_FILES gedit/dialogs/Makefile" ;;
 
23645
  "gedit/recent-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES gedit/recent-files/Makefile" ;;
 
23646
  "pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
 
23647
  "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
 
23648
  "plugins/changecase/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/changecase/Makefile" ;;
 
23649
  "plugins/spell/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/spell/Makefile" ;;
 
23650
  "plugins/docinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/docinfo/Makefile" ;;
 
23651
  "plugins/sample/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
 
23652
  "plugins/time/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/time/Makefile" ;;
 
23653
  "plugins/indent/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/indent/Makefile" ;;
 
23654
  "plugins/taglist/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/taglist/Makefile" ;;
 
23655
  "plugins/shell_output/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/shell_output/Makefile" ;;
 
23656
  "plugins/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/sort/Makefile" ;;
 
23657
  "viewer/Makefile" ) CONFIG_FILES="$CONFIG_FILES viewer/Makefile" ;;
 
23658
  "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
 
23659
  "help/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/C/Makefile" ;;
 
23660
  "help/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/de/Makefile" ;;
 
23661
  "help/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/es/Makefile" ;;
 
23662
  "help/eu/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/eu/Makefile" ;;
 
23663
  "help/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/fr/Makefile" ;;
 
23664
  "help/it/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/it/Makefile" ;;
 
23665
  "help/sv/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/sv/Makefile" ;;
 
23666
  "help/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/ja/Makefile" ;;
 
23667
  "help/ko/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/ko/Makefile" ;;
 
23668
  "help/zh_CN/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/zh_CN/Makefile" ;;
 
23669
  "help/zh_HK/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/zh_HK/Makefile" ;;
 
23670
  "help/zh_TW/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/zh_TW/Makefile" ;;
 
23671
  "help/ro/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/ro/Makefile" ;;
 
23672
  "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
 
23673
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23674
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
23675
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
23676
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23677
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23678
   { (exit 1); exit 1; }; };;
 
23679
  esac
 
23680
done
 
23681
 
 
23682
# If the user did not use the arguments to specify the items to instantiate,
 
23683
# then the envvar interface is used.  Set only those that are not.
 
23684
# We use the long form for the default assignment because of an extremely
 
23685
# bizarre bug on SunOS 4.1.3.
 
23686
if $ac_need_defaults; then
 
23687
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23688
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23689
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23690
fi
 
23691
 
 
23692
# Have a temporary directory for convenience.  Make it in the build tree
 
23693
# simply because there is no reason to put it here, and in addition,
 
23694
# creating and moving files from /tmp can sometimes cause problems.
 
23695
# Create a temporary directory, and hook for its removal unless debugging.
 
23696
$debug ||
 
23697
{
 
23698
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
23699
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23700
}
 
23701
 
 
23702
# Create a (secure) tmp directory for tmp files.
 
23703
 
 
23704
{
 
23705
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
23706
  test -n "$tmp" && test -d "$tmp"
 
23707
}  ||
 
23708
{
 
23709
  tmp=./confstat$$-$RANDOM
 
23710
  (umask 077 && mkdir $tmp)
 
23711
} ||
 
23712
{
 
23713
   echo "$me: cannot create a temporary directory in ." >&2
 
23714
   { (exit 1); exit 1; }
 
23715
}
 
23716
 
 
23717
_ACEOF
 
23718
 
 
23719
cat >>$CONFIG_STATUS <<_ACEOF
 
23720
 
 
23721
#
 
23722
# CONFIG_FILES section.
 
23723
#
 
23724
 
 
23725
# No need to generate the scripts if there are no CONFIG_FILES.
 
23726
# This happens for instance when ./config.status config.h
 
23727
if test -n "\$CONFIG_FILES"; then
 
23728
  # Protect against being on the right side of a sed subst in config.status.
 
23729
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
23730
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
23731
s,@SHELL@,$SHELL,;t t
 
23732
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
23733
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
23734
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
23735
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
23736
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
23737
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
23738
s,@exec_prefix@,$exec_prefix,;t t
 
23739
s,@prefix@,$prefix,;t t
 
23740
s,@program_transform_name@,$program_transform_name,;t t
 
23741
s,@bindir@,$bindir,;t t
 
23742
s,@sbindir@,$sbindir,;t t
 
23743
s,@libexecdir@,$libexecdir,;t t
 
23744
s,@datadir@,$datadir,;t t
 
23745
s,@sysconfdir@,$sysconfdir,;t t
 
23746
s,@sharedstatedir@,$sharedstatedir,;t t
 
23747
s,@localstatedir@,$localstatedir,;t t
 
23748
s,@libdir@,$libdir,;t t
 
23749
s,@includedir@,$includedir,;t t
 
23750
s,@oldincludedir@,$oldincludedir,;t t
 
23751
s,@infodir@,$infodir,;t t
 
23752
s,@mandir@,$mandir,;t t
 
23753
s,@build_alias@,$build_alias,;t t
 
23754
s,@host_alias@,$host_alias,;t t
 
23755
s,@target_alias@,$target_alias,;t t
 
23756
s,@DEFS@,$DEFS,;t t
 
23757
s,@ECHO_C@,$ECHO_C,;t t
 
23758
s,@ECHO_N@,$ECHO_N,;t t
 
23759
s,@ECHO_T@,$ECHO_T,;t t
 
23760
s,@LIBS@,$LIBS,;t t
 
23761
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
23762
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
23763
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
23764
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
23765
s,@PACKAGE@,$PACKAGE,;t t
 
23766
s,@VERSION@,$VERSION,;t t
 
23767
s,@ACLOCAL@,$ACLOCAL,;t t
 
23768
s,@AUTOCONF@,$AUTOCONF,;t t
 
23769
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
23770
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
23771
s,@MAKEINFO@,$MAKEINFO,;t t
 
23772
s,@AMTAR@,$AMTAR,;t t
 
23773
s,@install_sh@,$install_sh,;t t
 
23774
s,@STRIP@,$STRIP,;t t
 
23775
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
23776
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
23777
s,@AWK@,$AWK,;t t
 
23778
s,@SET_MAKE@,$SET_MAKE,;t t
 
23779
s,@am__leading_dot@,$am__leading_dot,;t t
 
23780
s,@GEDIT_MAJOR@,$GEDIT_MAJOR,;t t
 
23781
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
23782
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
23783
s,@MAINT@,$MAINT,;t t
 
23784
s,@GCONFTOOL@,$GCONFTOOL,;t t
 
23785
s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
 
23786
s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
 
23787
s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
 
23788
s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
 
23789
s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
 
23790
s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
 
23791
s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
 
23792
s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
 
23793
s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
 
23794
s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
 
23795
s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
 
23796
s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
 
23797
s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
 
23798
s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
 
23799
s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
 
23800
s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
 
23801
s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
 
23802
s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
 
23803
s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
 
23804
s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
 
23805
s,@ICONV@,$ICONV,;t t
 
23806
s,@MSGFMT@,$MSGFMT,;t t
 
23807
s,@MSGMERGE@,$MSGMERGE,;t t
 
23808
s,@XGETTEXT@,$XGETTEXT,;t t
 
23809
s,@build@,$build,;t t
 
23810
s,@build_cpu@,$build_cpu,;t t
 
23811
s,@build_vendor@,$build_vendor,;t t
 
23812
s,@build_os@,$build_os,;t t
 
23813
s,@host@,$host,;t t
 
23814
s,@host_cpu@,$host_cpu,;t t
 
23815
s,@host_vendor@,$host_vendor,;t t
 
23816
s,@host_os@,$host_os,;t t
 
23817
s,@CC@,$CC,;t t
 
23818
s,@CFLAGS@,$CFLAGS,;t t
 
23819
s,@LDFLAGS@,$LDFLAGS,;t t
 
23820
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
23821
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
23822
s,@EXEEXT@,$EXEEXT,;t t
 
23823
s,@OBJEXT@,$OBJEXT,;t t
 
23824
s,@DEPDIR@,$DEPDIR,;t t
 
23825
s,@am__include@,$am__include,;t t
 
23826
s,@am__quote@,$am__quote,;t t
 
23827
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
23828
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
23829
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
23830
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
23831
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
23832
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
23833
s,@EGREP@,$EGREP,;t t
 
23834
s,@LN_S@,$LN_S,;t t
 
23835
s,@ECHO@,$ECHO,;t t
 
23836
s,@AR@,$AR,;t t
 
23837
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
23838
s,@RANLIB@,$RANLIB,;t t
 
23839
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
23840
s,@CPP@,$CPP,;t t
 
23841
s,@CXX@,$CXX,;t t
 
23842
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
23843
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
23844
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
23845
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
23846
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
23847
s,@CXXCPP@,$CXXCPP,;t t
 
23848
s,@F77@,$F77,;t t
 
23849
s,@FFLAGS@,$FFLAGS,;t t
 
23850
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
23851
s,@LIBTOOL@,$LIBTOOL,;t t
 
23852
s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
 
23853
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
 
23854
s,@USE_NLS@,$USE_NLS,;t t
 
23855
s,@GMSGFMT@,$GMSGFMT,;t t
 
23856
s,@CATALOGS@,$CATALOGS,;t t
 
23857
s,@CATOBJEXT@,$CATOBJEXT,;t t
 
23858
s,@DATADIRNAME@,$DATADIRNAME,;t t
 
23859
s,@GMOFILES@,$GMOFILES,;t t
 
23860
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
 
23861
s,@INTLLIBS@,$INTLLIBS,;t t
 
23862
s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
 
23863
s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
 
23864
s,@POFILES@,$POFILES,;t t
 
23865
s,@POSUB@,$POSUB,;t t
 
23866
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
23867
s,@SPELL_PLUGIN_DIR@,$SPELL_PLUGIN_DIR,;t t
 
23868
s,@PSPELL_LIBS@,$PSPELL_LIBS,;t t
 
23869
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
23870
s,@GEDIT_CFLAGS@,$GEDIT_CFLAGS,;t t
 
23871
s,@GEDIT_LIBS@,$GEDIT_LIBS,;t t
 
23872
s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t
 
23873
s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t
 
23874
s,@GCONF_SCHEMAS_INSTALL_TRUE@,$GCONF_SCHEMAS_INSTALL_TRUE,;t t
 
23875
s,@GCONF_SCHEMAS_INSTALL_FALSE@,$GCONF_SCHEMAS_INSTALL_FALSE,;t t
 
23876
s,@pixmapsdir@,$pixmapsdir,;t t
 
23877
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
 
23878
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
 
23879
s,@DISABLE_DEPRECATED_CFLAGS@,$DISABLE_DEPRECATED_CFLAGS,;t t
 
23880
s,@ORBIT_IDL@,$ORBIT_IDL,;t t
 
23881
s,@LIBBONOBO_IDL@,$LIBBONOBO_IDL,;t t
 
23882
s,@BONOBO_ACTIVATION_IDL@,$BONOBO_ACTIVATION_IDL,;t t
 
23883
s,@PLUGIN_LIBTOOL_FLAGS@,$PLUGIN_LIBTOOL_FLAGS,;t t
 
23884
s,@LIBOBJS@,$LIBOBJS,;t t
 
23885
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
23886
CEOF
 
23887
 
 
23888
_ACEOF
 
23889
 
 
23890
  cat >>$CONFIG_STATUS <<\_ACEOF
 
23891
  # Split the substitutions into bite-sized pieces for seds with
 
23892
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
23893
  ac_max_sed_lines=48
 
23894
  ac_sed_frag=1 # Number of current file.
 
23895
  ac_beg=1 # First line for current file.
 
23896
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
23897
  ac_more_lines=:
 
23898
  ac_sed_cmds=
 
23899
  while $ac_more_lines; do
 
23900
    if test $ac_beg -gt 1; then
 
23901
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23902
    else
 
23903
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23904
    fi
 
23905
    if test ! -s $tmp/subs.frag; then
 
23906
      ac_more_lines=false
 
23907
    else
 
23908
      # The purpose of the label and of the branching condition is to
 
23909
      # speed up the sed processing (if there are no `@' at all, there
 
23910
      # is no need to browse any of the substitutions).
 
23911
      # These are the two extra sed commands mentioned above.
 
23912
      (echo ':t
 
23913
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
23914
      if test -z "$ac_sed_cmds"; then
 
23915
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
23916
      else
 
23917
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
23918
      fi
 
23919
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
23920
      ac_beg=$ac_end
 
23921
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
23922
    fi
 
23923
  done
 
23924
  if test -z "$ac_sed_cmds"; then
 
23925
    ac_sed_cmds=cat
 
23926
  fi
 
23927
fi # test -n "$CONFIG_FILES"
 
23928
 
 
23929
_ACEOF
 
23930
cat >>$CONFIG_STATUS <<\_ACEOF
 
23931
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
23932
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23933
  case $ac_file in
 
23934
  - | *:- | *:-:* ) # input from stdin
 
23935
        cat >$tmp/stdin
 
23936
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23937
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23938
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23939
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23940
  * )   ac_file_in=$ac_file.in ;;
 
23941
  esac
 
23942
 
 
23943
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
23944
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23945
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23946
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23947
         X"$ac_file" : 'X\(//\)$' \| \
 
23948
         X"$ac_file" : 'X\(/\)' \| \
 
23949
         .     : '\(.\)' 2>/dev/null ||
 
23950
echo X"$ac_file" |
 
23951
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23952
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23953
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23954
          /^X\(\/\).*/{ s//\1/; q; }
 
23955
          s/.*/./; q'`
 
23956
  { if $as_mkdir_p; then
 
23957
    mkdir -p "$ac_dir"
 
23958
  else
 
23959
    as_dir="$ac_dir"
 
23960
    as_dirs=
 
23961
    while test ! -d "$as_dir"; do
 
23962
      as_dirs="$as_dir $as_dirs"
 
23963
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23964
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23965
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23966
         X"$as_dir" : 'X\(//\)$' \| \
 
23967
         X"$as_dir" : 'X\(/\)' \| \
 
23968
         .     : '\(.\)' 2>/dev/null ||
 
23969
echo X"$as_dir" |
 
23970
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23971
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23972
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23973
          /^X\(\/\).*/{ s//\1/; q; }
 
23974
          s/.*/./; q'`
 
23975
    done
 
23976
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23977
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23978
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23979
   { (exit 1); exit 1; }; }; }
 
23980
 
 
23981
  ac_builddir=.
 
23982
 
 
23983
if test "$ac_dir" != .; then
 
23984
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23985
  # A "../" for each directory in $ac_dir_suffix.
 
23986
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23987
else
 
23988
  ac_dir_suffix= ac_top_builddir=
 
23989
fi
 
23990
 
 
23991
case $srcdir in
 
23992
  .)  # No --srcdir option.  We are building in place.
 
23993
    ac_srcdir=.
 
23994
    if test -z "$ac_top_builddir"; then
 
23995
       ac_top_srcdir=.
 
23996
    else
 
23997
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23998
    fi ;;
 
23999
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24000
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24001
    ac_top_srcdir=$srcdir ;;
 
24002
  *) # Relative path.
 
24003
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
24004
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
24005
esac
 
24006
 
 
24007
# Do not use `cd foo && pwd` to compute absolute paths, because
 
24008
# the directories may not exist.
 
24009
case `pwd` in
 
24010
.) ac_abs_builddir="$ac_dir";;
 
24011
*)
 
24012
  case "$ac_dir" in
 
24013
  .) ac_abs_builddir=`pwd`;;
 
24014
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
24015
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
24016
  esac;;
 
24017
esac
 
24018
case $ac_abs_builddir in
 
24019
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24020
*)
 
24021
  case ${ac_top_builddir}. in
 
24022
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
24023
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24024
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
24025
  esac;;
 
24026
esac
 
24027
case $ac_abs_builddir in
 
24028
.) ac_abs_srcdir=$ac_srcdir;;
 
24029
*)
 
24030
  case $ac_srcdir in
 
24031
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
24032
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
24033
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
24034
  esac;;
 
24035
esac
 
24036
case $ac_abs_builddir in
 
24037
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24038
*)
 
24039
  case $ac_top_srcdir in
 
24040
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
24041
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24042
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
24043
  esac;;
 
24044
esac
 
24045
 
 
24046
 
 
24047
  case $INSTALL in
 
24048
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
24049
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
24050
  esac
 
24051
 
 
24052
  if test x"$ac_file" != x-; then
 
24053
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
24054
echo "$as_me: creating $ac_file" >&6;}
 
24055
    rm -f "$ac_file"
 
24056
  fi
 
24057
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
24058
  # use $as_me), people would be surprised to read:
 
24059
  #    /* config.h.  Generated by config.status.  */
 
24060
  if test x"$ac_file" = x-; then
 
24061
    configure_input=
 
24062
  else
 
24063
    configure_input="$ac_file.  "
 
24064
  fi
 
24065
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
24066
                                     sed 's,.*/,,'` by configure."
 
24067
 
 
24068
  # First look for the input files in the build tree, otherwise in the
 
24069
  # src tree.
 
24070
  ac_file_inputs=`IFS=:
 
24071
    for f in $ac_file_in; do
 
24072
      case $f in
 
24073
      -) echo $tmp/stdin ;;
 
24074
      [\\/$]*)
 
24075
         # Absolute (can't be DOS-style, as IFS=:)
 
24076
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
24077
echo "$as_me: error: cannot find input file: $f" >&2;}
 
24078
   { (exit 1); exit 1; }; }
 
24079
         echo "$f";;
 
24080
      *) # Relative
 
24081
         if test -f "$f"; then
 
24082
           # Build tree
 
24083
           echo "$f"
 
24084
         elif test -f "$srcdir/$f"; then
 
24085
           # Source tree
 
24086
           echo "$srcdir/$f"
 
24087
         else
 
24088
           # /dev/null tree
 
24089
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
24090
echo "$as_me: error: cannot find input file: $f" >&2;}
 
24091
   { (exit 1); exit 1; }; }
 
24092
         fi;;
 
24093
      esac
 
24094
    done` || { (exit 1); exit 1; }
 
24095
_ACEOF
 
24096
cat >>$CONFIG_STATUS <<_ACEOF
 
24097
  sed "$ac_vpsub
5086
24098
$extrasub
5087
 
s%@SHELL@%$SHELL%g
5088
 
s%@CFLAGS@%$CFLAGS%g
5089
 
s%@CPPFLAGS@%$CPPFLAGS%g
5090
 
s%@CXXFLAGS@%$CXXFLAGS%g
5091
 
s%@FFLAGS@%$FFLAGS%g
5092
 
s%@DEFS@%$DEFS%g
5093
 
s%@LDFLAGS@%$LDFLAGS%g
5094
 
s%@LIBS@%$LIBS%g
5095
 
s%@exec_prefix@%$exec_prefix%g
5096
 
s%@prefix@%$prefix%g
5097
 
s%@program_transform_name@%$program_transform_name%g
5098
 
s%@bindir@%$bindir%g
5099
 
s%@sbindir@%$sbindir%g
5100
 
s%@libexecdir@%$libexecdir%g
5101
 
s%@datadir@%$datadir%g
5102
 
s%@sysconfdir@%$sysconfdir%g
5103
 
s%@sharedstatedir@%$sharedstatedir%g
5104
 
s%@localstatedir@%$localstatedir%g
5105
 
s%@libdir@%$libdir%g
5106
 
s%@includedir@%$includedir%g
5107
 
s%@oldincludedir@%$oldincludedir%g
5108
 
s%@infodir@%$infodir%g
5109
 
s%@mandir@%$mandir%g
5110
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5111
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5112
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
5113
 
s%@PACKAGE@%$PACKAGE%g
5114
 
s%@VERSION@%$VERSION%g
5115
 
s%@ACLOCAL@%$ACLOCAL%g
5116
 
s%@AUTOCONF@%$AUTOCONF%g
5117
 
s%@AUTOMAKE@%$AUTOMAKE%g
5118
 
s%@AUTOHEADER@%$AUTOHEADER%g
5119
 
s%@MAKEINFO@%$MAKEINFO%g
5120
 
s%@SET_MAKE@%$SET_MAKE%g
5121
 
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5122
 
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5123
 
s%@MAINT@%$MAINT%g
5124
 
s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
5125
 
s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
5126
 
s%@CC@%$CC%g
5127
 
s%@CPP@%$CPP%g
5128
 
s%@host@%$host%g
5129
 
s%@host_alias@%$host_alias%g
5130
 
s%@host_cpu@%$host_cpu%g
5131
 
s%@host_vendor@%$host_vendor%g
5132
 
s%@host_os@%$host_os%g
5133
 
s%@build@%$build%g
5134
 
s%@build_alias@%$build_alias%g
5135
 
s%@build_cpu@%$build_cpu%g
5136
 
s%@build_vendor@%$build_vendor%g
5137
 
s%@build_os@%$build_os%g
5138
 
s%@RANLIB@%$RANLIB%g
5139
 
s%@LN_S@%$LN_S%g
5140
 
s%@LIBTOOL@%$LIBTOOL%g
5141
 
s%@GNOME_LIBS@%$GNOME_LIBS%g
5142
 
s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
5143
 
s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
5144
 
s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
5145
 
s%@ZVT_LIBS@%$ZVT_LIBS%g
5146
 
s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
5147
 
s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
5148
 
s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5149
 
s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
5150
 
s%@ORBIT_IDL@%$ORBIT_IDL%g
5151
 
s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
5152
 
s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
5153
 
s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
5154
 
s%@ORBIT_LIBS@%$ORBIT_LIBS%g
5155
 
s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
5156
 
s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
5157
 
s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
5158
 
s%@GNORBA_LIBS@%$GNORBA_LIBS%g
5159
 
s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
5160
 
s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
5161
 
s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
5162
 
s%@cflags_set@%$cflags_set%g
5163
 
s%@GTK_CONFIG@%$GTK_CONFIG%g
5164
 
s%@GTK_CFLAGS@%$GTK_CFLAGS%g
5165
 
s%@GTK_LIBS@%$GTK_LIBS%g
5166
 
s%@XPM_LIBS@%$XPM_LIBS%g
5167
 
s%@PTHREAD_LIB@%$PTHREAD_LIB%g
5168
 
s%@HAVE_LIBGNORBA_TRUE@%$HAVE_LIBGNORBA_TRUE%g
5169
 
s%@HAVE_LIBGNORBA_FALSE@%$HAVE_LIBGNORBA_FALSE%g
5170
 
s%@HAVE_LIBZVT_TRUE@%$HAVE_LIBZVT_TRUE%g
5171
 
s%@HAVE_LIBZVT_FALSE@%$HAVE_LIBZVT_FALSE%g
5172
 
s%@ALLOCA@%$ALLOCA%g
5173
 
s%@USE_NLS@%$USE_NLS%g
5174
 
s%@MSGFMT@%$MSGFMT%g
5175
 
s%@GMSGFMT@%$GMSGFMT%g
5176
 
s%@XGETTEXT@%$XGETTEXT%g
5177
 
s%@GENCAT@%$GENCAT%g
5178
 
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5179
 
s%@CATALOGS@%$CATALOGS%g
5180
 
s%@CATOBJEXT@%$CATOBJEXT%g
5181
 
s%@DATADIRNAME@%$DATADIRNAME%g
5182
 
s%@GMOFILES@%$GMOFILES%g
5183
 
s%@INSTOBJEXT@%$INSTOBJEXT%g
5184
 
s%@INTLDEPS@%$INTLDEPS%g
5185
 
s%@INTLLIBS@%$INTLLIBS%g
5186
 
s%@INTLOBJS@%$INTLOBJS%g
5187
 
s%@POFILES@%$POFILES%g
5188
 
s%@POSUB@%$POSUB%g
5189
 
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5190
 
s%@GT_NO@%$GT_NO%g
5191
 
s%@GT_YES@%$GT_YES%g
5192
 
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5193
 
s%@l@%$l%g
5194
 
s%@EXTRA_GNOME_LIBS@%$EXTRA_GNOME_LIBS%g
5195
 
s%@EXTRA_GNOME_CFLAGS@%$EXTRA_GNOME_CFLAGS%g
5196
 
 
5197
 
CEOF
5198
 
EOF
5199
 
 
5200
 
cat >> $CONFIG_STATUS <<\EOF
5201
 
 
5202
 
# Split the substitutions into bite-sized pieces for seds with
5203
 
# small command number limits, like on Digital OSF/1 and HP-UX.
5204
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5205
 
ac_file=1 # Number of current file.
5206
 
ac_beg=1 # First line for current file.
5207
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
5208
 
ac_more_lines=:
5209
 
ac_sed_cmds=""
5210
 
while $ac_more_lines; do
5211
 
  if test $ac_beg -gt 1; then
5212
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5213
 
  else
5214
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5215
 
  fi
5216
 
  if test ! -s conftest.s$ac_file; then
5217
 
    ac_more_lines=false
5218
 
    rm -f conftest.s$ac_file
5219
 
  else
5220
 
    if test -z "$ac_sed_cmds"; then
5221
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
5222
 
    else
5223
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5224
 
    fi
5225
 
    ac_file=`expr $ac_file + 1`
5226
 
    ac_beg=$ac_end
5227
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
5228
 
  fi
 
24099
_ACEOF
 
24100
cat >>$CONFIG_STATUS <<\_ACEOF
 
24101
:t
 
24102
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
24103
s,@configure_input@,$configure_input,;t t
 
24104
s,@srcdir@,$ac_srcdir,;t t
 
24105
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
24106
s,@top_srcdir@,$ac_top_srcdir,;t t
 
24107
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
24108
s,@builddir@,$ac_builddir,;t t
 
24109
s,@abs_builddir@,$ac_abs_builddir,;t t
 
24110
s,@top_builddir@,$ac_top_builddir,;t t
 
24111
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
24112
s,@INSTALL@,$ac_INSTALL,;t t
 
24113
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
24114
  rm -f $tmp/stdin
 
24115
  if test x"$ac_file" != x-; then
 
24116
    mv $tmp/out $ac_file
 
24117
  else
 
24118
    cat $tmp/out
 
24119
    rm -f $tmp/out
 
24120
  fi
 
24121
 
5229
24122
done
5230
 
if test -z "$ac_sed_cmds"; then
5231
 
  ac_sed_cmds=cat
5232
 
fi
5233
 
EOF
5234
 
 
5235
 
cat >> $CONFIG_STATUS <<EOF
5236
 
 
5237
 
CONFIG_FILES=\${CONFIG_FILES-"gedit.spec
5238
 
Makefile
5239
 
intl/Makefile
5240
 
po/Makefile.in
5241
 
macros/Makefile
5242
 
help/Makefile
5243
 
help/C/Makefile
5244
 
help/ja/Makefile
5245
 
pixmaps/Makefile
5246
 
plugins/Makefile
5247
 
plugins/browse/Makefile
5248
 
plugins/convert/Makefile
5249
 
plugins/diff/Makefile
5250
 
plugins/email/Makefile
5251
 
plugins/sample/Makefile
5252
 
plugins/time/Makefile
5253
 
plugins/reverse/Makefile
5254
 
plugins/shell_output/Makefile
5255
 
src/Makefile
5256
 
src/dialogs/Makefile
5257
 
"}
5258
 
EOF
5259
 
cat >> $CONFIG_STATUS <<\EOF
5260
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5261
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5262
 
  case "$ac_file" in
5263
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5264
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5265
 
  *) ac_file_in="${ac_file}.in" ;;
5266
 
  esac
5267
 
 
5268
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5269
 
 
5270
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
5271
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5272
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5273
 
    # The file is in a subdirectory.
5274
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
5275
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5276
 
    # A "../" for each directory in $ac_dir_suffix.
5277
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5278
 
  else
5279
 
    ac_dir_suffix= ac_dots=
5280
 
  fi
5281
 
 
5282
 
  case "$ac_given_srcdir" in
5283
 
  .)  srcdir=.
5284
 
      if test -z "$ac_dots"; then top_srcdir=.
5285
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5286
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5287
 
  *) # Relative path.
5288
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5289
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
5290
 
  esac
5291
 
 
5292
 
  case "$ac_given_INSTALL" in
5293
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
5294
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5295
 
  esac
5296
 
 
5297
 
  echo creating "$ac_file"
5298
 
  rm -f "$ac_file"
5299
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5300
 
  case "$ac_file" in
5301
 
  *Makefile*) ac_comsub="1i\\
5302
 
# $configure_input" ;;
5303
 
  *) ac_comsub= ;;
5304
 
  esac
5305
 
 
5306
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5307
 
  sed -e "$ac_comsub
5308
 
s%@configure_input@%$configure_input%g
5309
 
s%@srcdir@%$srcdir%g
5310
 
s%@top_srcdir@%$top_srcdir%g
5311
 
s%@INSTALL@%$INSTALL%g
5312
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5313
 
fi; done
5314
 
rm -f conftest.s*
 
24123
_ACEOF
 
24124
cat >>$CONFIG_STATUS <<\_ACEOF
 
24125
 
 
24126
#
 
24127
# CONFIG_HEADER section.
 
24128
#
5315
24129
 
5316
24130
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5317
24131
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5318
24132
#
5319
24133
# ac_d sets the value in "#define NAME VALUE" lines.
5320
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5321
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
5322
 
ac_dC='\3'
5323
 
ac_dD='%g'
5324
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5325
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5326
 
ac_uB='\([      ]\)%\1#\2define\3'
 
24134
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
24135
ac_dB='[         ].*$,\1#\2'
 
24136
ac_dC=' '
 
24137
ac_dD=',;t'
 
24138
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
24139
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
24140
ac_uB='$,\1#\2define\3'
5327
24141
ac_uC=' '
5328
 
ac_uD='\4%g'
5329
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5330
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5331
 
ac_eB='$%\1#\2define\3'
5332
 
ac_eC=' '
5333
 
ac_eD='%g'
 
24142
ac_uD=',;t'
5334
24143
 
5335
 
if test "${CONFIG_HEADERS+set}" != set; then
5336
 
EOF
5337
 
cat >> $CONFIG_STATUS <<EOF
5338
 
  CONFIG_HEADERS="config.h"
5339
 
EOF
5340
 
cat >> $CONFIG_STATUS <<\EOF
5341
 
fi
5342
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
24144
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5343
24145
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5344
 
  case "$ac_file" in
5345
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5346
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5347
 
  *) ac_file_in="${ac_file}.in" ;;
 
24146
  case $ac_file in
 
24147
  - | *:- | *:-:* ) # input from stdin
 
24148
        cat >$tmp/stdin
 
24149
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24150
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24151
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24152
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24153
  * )   ac_file_in=$ac_file.in ;;
5348
24154
  esac
5349
24155
 
5350
 
  echo creating $ac_file
5351
 
 
5352
 
  rm -f conftest.frag conftest.in conftest.out
5353
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5354
 
  cat $ac_file_inputs > conftest.in
5355
 
 
5356
 
EOF
5357
 
 
5358
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
5359
 
# the proper values into config.h.in to produce config.h.  And first:
5360
 
# Protect against being on the right side of a sed subst in config.status.
5361
 
# Protect against being in an unquoted here document in config.status.
5362
 
rm -f conftest.vals
5363
 
cat > conftest.hdr <<\EOF
5364
 
s/[\\&%]/\\&/g
5365
 
s%[\\$`]%\\&%g
5366
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5367
 
s%ac_d%ac_u%gp
5368
 
s%ac_u%ac_e%gp
5369
 
EOF
5370
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
5371
 
rm -f conftest.hdr
 
24156
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
24157
echo "$as_me: creating $ac_file" >&6;}
 
24158
 
 
24159
  # First look for the input files in the build tree, otherwise in the
 
24160
  # src tree.
 
24161
  ac_file_inputs=`IFS=:
 
24162
    for f in $ac_file_in; do
 
24163
      case $f in
 
24164
      -) echo $tmp/stdin ;;
 
24165
      [\\/$]*)
 
24166
         # Absolute (can't be DOS-style, as IFS=:)
 
24167
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
24168
echo "$as_me: error: cannot find input file: $f" >&2;}
 
24169
   { (exit 1); exit 1; }; }
 
24170
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
24171
         echo "$f";;
 
24172
      *) # Relative
 
24173
         if test -f "$f"; then
 
24174
           # Build tree
 
24175
           echo "$f"
 
24176
         elif test -f "$srcdir/$f"; then
 
24177
           # Source tree
 
24178
           echo "$srcdir/$f"
 
24179
         else
 
24180
           # /dev/null tree
 
24181
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
24182
echo "$as_me: error: cannot find input file: $f" >&2;}
 
24183
   { (exit 1); exit 1; }; }
 
24184
         fi;;
 
24185
      esac
 
24186
    done` || { (exit 1); exit 1; }
 
24187
  # Remove the trailing spaces.
 
24188
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
24189
 
 
24190
_ACEOF
 
24191
 
 
24192
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
24193
# `conftest.undefs', that substitutes the proper values into
 
24194
# config.h.in to produce config.h.  The first handles `#define'
 
24195
# templates, and the second `#undef' templates.
 
24196
# And first: Protect against being on the right side of a sed subst in
 
24197
# config.status.  Protect against being in an unquoted here document
 
24198
# in config.status.
 
24199
rm -f conftest.defines conftest.undefs
 
24200
# Using a here document instead of a string reduces the quoting nightmare.
 
24201
# Putting comments in sed scripts is not portable.
 
24202
#
 
24203
# `end' is used to avoid that the second main sed command (meant for
 
24204
# 0-ary CPP macros) applies to n-ary macro definitions.
 
24205
# See the Autoconf documentation for `clear'.
 
24206
cat >confdef2sed.sed <<\_ACEOF
 
24207
s/[\\&,]/\\&/g
 
24208
s,[\\$`],\\&,g
 
24209
t clear
 
24210
: clear
 
24211
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
24212
t end
 
24213
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
24214
: end
 
24215
_ACEOF
 
24216
# If some macros were called several times there might be several times
 
24217
# the same #defines, which is useless.  Nevertheless, we may not want to
 
24218
# sort them, since we want the *last* AC-DEFINE to be honored.
 
24219
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
24220
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
24221
rm -f confdef2sed.sed
5372
24222
 
5373
24223
# This sed command replaces #undef with comments.  This is necessary, for
5374
24224
# example, in the case of _POSIX_SOURCE, which is predefined and required
5375
24225
# on some systems where configure will not decide to define it.
5376
 
cat >> conftest.vals <<\EOF
5377
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5378
 
EOF
5379
 
 
5380
 
# Break up conftest.vals because some shells have a limit on
5381
 
# the size of here documents, and old seds have small limits too.
5382
 
 
5383
 
rm -f conftest.tail
5384
 
while :
5385
 
do
5386
 
  ac_lines=`grep -c . conftest.vals`
5387
 
  # grep -c gives empty output for an empty file on some AIX systems.
5388
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5389
 
  # Write a limited-size here document to conftest.frag.
5390
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5391
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5392
 
  echo 'CEOF
5393
 
  sed -f conftest.frag conftest.in > conftest.out
5394
 
  rm -f conftest.in
5395
 
  mv conftest.out conftest.in
5396
 
' >> $CONFIG_STATUS
5397
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5398
 
  rm -f conftest.vals
5399
 
  mv conftest.tail conftest.vals
5400
 
done
5401
 
rm -f conftest.vals
5402
 
 
5403
 
cat >> $CONFIG_STATUS <<\EOF
5404
 
  rm -f conftest.frag conftest.h
5405
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5406
 
  cat conftest.in >> conftest.h
5407
 
  rm -f conftest.in
5408
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
5409
 
    echo "$ac_file is unchanged"
5410
 
    rm -f conftest.h
5411
 
  else
5412
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
5413
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5414
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5415
 
      # The file is in a subdirectory.
5416
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
24226
cat >>conftest.undefs <<\_ACEOF
 
24227
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
24228
_ACEOF
 
24229
 
 
24230
# Break up conftest.defines because some shells have a limit on the size
 
24231
# of here documents, and old seds have small limits too (100 cmds).
 
24232
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
24233
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
24234
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
24235
echo '  :' >>$CONFIG_STATUS
 
24236
rm -f conftest.tail
 
24237
while grep . conftest.defines >/dev/null
 
24238
do
 
24239
  # Write a limited-size here document to $tmp/defines.sed.
 
24240
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
24241
  # Speed up: don't consider the non `#define' lines.
 
24242
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
24243
  # Work around the forget-to-reset-the-flag bug.
 
24244
  echo 't clr' >>$CONFIG_STATUS
 
24245
  echo ': clr' >>$CONFIG_STATUS
 
24246
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
24247
  echo 'CEOF
 
24248
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
24249
  rm -f $tmp/in
 
24250
  mv $tmp/out $tmp/in
 
24251
' >>$CONFIG_STATUS
 
24252
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
24253
  rm -f conftest.defines
 
24254
  mv conftest.tail conftest.defines
 
24255
done
 
24256
rm -f conftest.defines
 
24257
echo '  fi # grep' >>$CONFIG_STATUS
 
24258
echo >>$CONFIG_STATUS
 
24259
 
 
24260
# Break up conftest.undefs because some shells have a limit on the size
 
24261
# of here documents, and old seds have small limits too (100 cmds).
 
24262
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
24263
rm -f conftest.tail
 
24264
while grep . conftest.undefs >/dev/null
 
24265
do
 
24266
  # Write a limited-size here document to $tmp/undefs.sed.
 
24267
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
24268
  # Speed up: don't consider the non `#undef'
 
24269
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
24270
  # Work around the forget-to-reset-the-flag bug.
 
24271
  echo 't clr' >>$CONFIG_STATUS
 
24272
  echo ': clr' >>$CONFIG_STATUS
 
24273
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
24274
  echo 'CEOF
 
24275
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
24276
  rm -f $tmp/in
 
24277
  mv $tmp/out $tmp/in
 
24278
' >>$CONFIG_STATUS
 
24279
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
24280
  rm -f conftest.undefs
 
24281
  mv conftest.tail conftest.undefs
 
24282
done
 
24283
rm -f conftest.undefs
 
24284
 
 
24285
cat >>$CONFIG_STATUS <<\_ACEOF
 
24286
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
24287
  # use $as_me), people would be surprised to read:
 
24288
  #    /* config.h.  Generated by config.status.  */
 
24289
  if test x"$ac_file" = x-; then
 
24290
    echo "/* Generated by configure.  */" >$tmp/config.h
 
24291
  else
 
24292
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
24293
  fi
 
24294
  cat $tmp/in >>$tmp/config.h
 
24295
  rm -f $tmp/in
 
24296
  if test x"$ac_file" != x-; then
 
24297
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
24298
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
24299
echo "$as_me: $ac_file is unchanged" >&6;}
 
24300
    else
 
24301
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
24302
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24303
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
24304
         X"$ac_file" : 'X\(//\)$' \| \
 
24305
         X"$ac_file" : 'X\(/\)' \| \
 
24306
         .     : '\(.\)' 2>/dev/null ||
 
24307
echo X"$ac_file" |
 
24308
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24309
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24310
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24311
          /^X\(\/\).*/{ s//\1/; q; }
 
24312
          s/.*/./; q'`
 
24313
      { if $as_mkdir_p; then
 
24314
    mkdir -p "$ac_dir"
 
24315
  else
 
24316
    as_dir="$ac_dir"
 
24317
    as_dirs=
 
24318
    while test ! -d "$as_dir"; do
 
24319
      as_dirs="$as_dir $as_dirs"
 
24320
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24321
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24322
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24323
         X"$as_dir" : 'X\(//\)$' \| \
 
24324
         X"$as_dir" : 'X\(/\)' \| \
 
24325
         .     : '\(.\)' 2>/dev/null ||
 
24326
echo X"$as_dir" |
 
24327
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24328
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24329
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24330
          /^X\(\/\).*/{ s//\1/; q; }
 
24331
          s/.*/./; q'`
 
24332
    done
 
24333
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24334
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24335
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24336
   { (exit 1); exit 1; }; }; }
 
24337
 
 
24338
      rm -f $ac_file
 
24339
      mv $tmp/config.h $ac_file
5417
24340
    fi
5418
 
    rm -f $ac_file
5419
 
    mv conftest.h $ac_file
5420
 
  fi
5421
 
fi; done
5422
 
 
5423
 
EOF
5424
 
 
5425
 
cat >> $CONFIG_STATUS <<EOF
5426
 
ac_sources="$nls_cv_header_libgt"
5427
 
ac_dests="$nls_cv_header_intl"
5428
 
EOF
5429
 
 
5430
 
cat >> $CONFIG_STATUS <<\EOF
5431
 
srcdir=$ac_given_srcdir
5432
 
while test -n "$ac_sources"; do
5433
 
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5434
 
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
5435
 
 
5436
 
  echo "linking $srcdir/$ac_source to $ac_dest"
5437
 
 
5438
 
  if test ! -r $srcdir/$ac_source; then
5439
 
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5440
 
  fi
5441
 
  rm -f $ac_dest
5442
 
 
5443
 
  # Make relative symlinks.
5444
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
5445
 
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5446
 
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5447
 
    # The dest file is in a subdirectory.
5448
 
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5449
 
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5450
 
    # A "../" for each directory in $ac_dest_dir_suffix.
5451
 
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5452
24341
  else
5453
 
    ac_dest_dir_suffix= ac_dots=
 
24342
    cat $tmp/config.h
 
24343
    rm -f $tmp/config.h
5454
24344
  fi
5455
 
 
5456
 
  case "$srcdir" in
5457
 
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5458
 
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
 
24345
# Compute $ac_file's index in $config_headers.
 
24346
_am_stamp_count=1
 
24347
for _am_header in $config_headers :; do
 
24348
  case $_am_header in
 
24349
    $ac_file | $ac_file:* )
 
24350
      break ;;
 
24351
    * )
 
24352
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5459
24353
  esac
5460
 
 
5461
 
  # Make a symlink if possible; otherwise try a hard link.
5462
 
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5463
 
    ln $srcdir/$ac_source $ac_dest; then :
5464
 
  else
5465
 
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
 
24354
done
 
24355
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
24356
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24357
         X$ac_file : 'X\(//\)[^/]' \| \
 
24358
         X$ac_file : 'X\(//\)$' \| \
 
24359
         X$ac_file : 'X\(/\)' \| \
 
24360
         .     : '\(.\)' 2>/dev/null ||
 
24361
echo X$ac_file |
 
24362
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24363
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24364
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24365
          /^X\(\/\).*/{ s//\1/; q; }
 
24366
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
24367
done
 
24368
_ACEOF
 
24369
cat >>$CONFIG_STATUS <<\_ACEOF
 
24370
 
 
24371
#
 
24372
# CONFIG_COMMANDS section.
 
24373
#
 
24374
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
24375
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
24376
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24377
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
24378
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24379
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
24380
         X"$ac_dest" : 'X\(//\)$' \| \
 
24381
         X"$ac_dest" : 'X\(/\)' \| \
 
24382
         .     : '\(.\)' 2>/dev/null ||
 
24383
echo X"$ac_dest" |
 
24384
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24385
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24386
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24387
          /^X\(\/\).*/{ s//\1/; q; }
 
24388
          s/.*/./; q'`
 
24389
  { if $as_mkdir_p; then
 
24390
    mkdir -p "$ac_dir"
 
24391
  else
 
24392
    as_dir="$ac_dir"
 
24393
    as_dirs=
 
24394
    while test ! -d "$as_dir"; do
 
24395
      as_dirs="$as_dir $as_dirs"
 
24396
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24397
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24398
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24399
         X"$as_dir" : 'X\(//\)$' \| \
 
24400
         X"$as_dir" : 'X\(/\)' \| \
 
24401
         .     : '\(.\)' 2>/dev/null ||
 
24402
echo X"$as_dir" |
 
24403
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24404
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24405
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24406
          /^X\(\/\).*/{ s//\1/; q; }
 
24407
          s/.*/./; q'`
 
24408
    done
 
24409
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24410
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24411
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24412
   { (exit 1); exit 1; }; }; }
 
24413
 
 
24414
  ac_builddir=.
 
24415
 
 
24416
if test "$ac_dir" != .; then
 
24417
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
24418
  # A "../" for each directory in $ac_dir_suffix.
 
24419
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
24420
else
 
24421
  ac_dir_suffix= ac_top_builddir=
 
24422
fi
 
24423
 
 
24424
case $srcdir in
 
24425
  .)  # No --srcdir option.  We are building in place.
 
24426
    ac_srcdir=.
 
24427
    if test -z "$ac_top_builddir"; then
 
24428
       ac_top_srcdir=.
 
24429
    else
 
24430
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
24431
    fi ;;
 
24432
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24433
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24434
    ac_top_srcdir=$srcdir ;;
 
24435
  *) # Relative path.
 
24436
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
24437
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
24438
esac
 
24439
 
 
24440
# Do not use `cd foo && pwd` to compute absolute paths, because
 
24441
# the directories may not exist.
 
24442
case `pwd` in
 
24443
.) ac_abs_builddir="$ac_dir";;
 
24444
*)
 
24445
  case "$ac_dir" in
 
24446
  .) ac_abs_builddir=`pwd`;;
 
24447
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
24448
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
24449
  esac;;
 
24450
esac
 
24451
case $ac_abs_builddir in
 
24452
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24453
*)
 
24454
  case ${ac_top_builddir}. in
 
24455
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
24456
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24457
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
24458
  esac;;
 
24459
esac
 
24460
case $ac_abs_builddir in
 
24461
.) ac_abs_srcdir=$ac_srcdir;;
 
24462
*)
 
24463
  case $ac_srcdir in
 
24464
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
24465
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
24466
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
24467
  esac;;
 
24468
esac
 
24469
case $ac_abs_builddir in
 
24470
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24471
*)
 
24472
  case $ac_top_srcdir in
 
24473
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
24474
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24475
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
24476
  esac;;
 
24477
esac
 
24478
 
 
24479
 
 
24480
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
24481
echo "$as_me: executing $ac_dest commands" >&6;}
 
24482
  case $ac_dest in
 
24483
    intltool )
 
24484
 
 
24485
intltool_edit="-e 's:@INTLTOOL_EXTRACT@:${INTLTOOL_EXTRACT}:g' \
 
24486
               -e 's:@INTLTOOL_ICONV@:${ICONV}:g' \
 
24487
               -e 's:@INTLTOOL_MSGFMT@:${MSGFMT}:g' \
 
24488
               -e 's:@INTLTOOL_MSGMERGE@:${MSGMERGE}:g' \
 
24489
               -e 's:@INTLTOOL_XGETTEXT@:${XGETTEXT}:g' \
 
24490
               -e 's:@INTLTOOL_PERL@:${INTLTOOL_PERL}:g'"
 
24491
 
 
24492
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
 
24493
  > intltool-extract.out
 
24494
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
 
24495
  rm -f intltool-extract.out
 
24496
else
 
24497
  mv -f intltool-extract.out intltool-extract
 
24498
fi
 
24499
chmod ugo+x intltool-extract
 
24500
chmod u+w intltool-extract
 
24501
 
 
24502
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
 
24503
  > intltool-merge.out
 
24504
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
 
24505
  rm -f intltool-merge.out
 
24506
else
 
24507
  mv -f intltool-merge.out intltool-merge
 
24508
fi
 
24509
chmod ugo+x intltool-merge
 
24510
chmod u+w intltool-merge
 
24511
 
 
24512
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
 
24513
  > intltool-update.out
 
24514
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
 
24515
  rm -f intltool-update.out
 
24516
else
 
24517
  mv -f intltool-update.out intltool-update
 
24518
fi
 
24519
chmod ugo+x intltool-update
 
24520
chmod u+w intltool-update
 
24521
 
 
24522
 ;;
 
24523
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
24524
  # Strip MF so we end up with the name of the file.
 
24525
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
24526
  # Check whether this is an Automake generated Makefile or not.
 
24527
  # We used to match only the files named `Makefile.in', but
 
24528
  # some people rename them; so instead we look at the file content.
 
24529
  # Grep'ing the first line is not enough: some people post-process
 
24530
  # each Makefile.in and add a new line on top of each file to say so.
 
24531
  # So let's grep whole file.
 
24532
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
24533
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
24534
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24535
         X"$mf" : 'X\(//\)[^/]' \| \
 
24536
         X"$mf" : 'X\(//\)$' \| \
 
24537
         X"$mf" : 'X\(/\)' \| \
 
24538
         .     : '\(.\)' 2>/dev/null ||
 
24539
echo X"$mf" |
 
24540
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24541
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24542
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24543
          /^X\(\/\).*/{ s//\1/; q; }
 
24544
          s/.*/./; q'`
 
24545
  else
 
24546
    continue
5466
24547
  fi
 
24548
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
24549
  # Extract the definition of DEP_FILES from the Makefile without
 
24550
  # running `make'.
 
24551
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
24552
  test -z "$DEPDIR" && continue
 
24553
  # When using ansi2knr, U may be empty or an underscore; expand it
 
24554
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
24555
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
24556
  # We invoke sed twice because it is the simplest approach to
 
24557
  # changing $(DEPDIR) to its actual value in the expansion.
 
24558
  for file in `sed -n -e '
 
24559
    /^DEP_FILES = .*\\\\$/ {
 
24560
      s/^DEP_FILES = //
 
24561
      :loop
 
24562
        s/\\\\$//
 
24563
        p
 
24564
        n
 
24565
        /\\\\$/ b loop
 
24566
      p
 
24567
    }
 
24568
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
24569
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
24570
    # Make sure the directory exists.
 
24571
    test -f "$dirpart/$file" && continue
 
24572
    fdir=`(dirname "$file") 2>/dev/null ||
 
24573
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24574
         X"$file" : 'X\(//\)[^/]' \| \
 
24575
         X"$file" : 'X\(//\)$' \| \
 
24576
         X"$file" : 'X\(/\)' \| \
 
24577
         .     : '\(.\)' 2>/dev/null ||
 
24578
echo X"$file" |
 
24579
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24580
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24581
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24582
          /^X\(\/\).*/{ s//\1/; q; }
 
24583
          s/.*/./; q'`
 
24584
    { if $as_mkdir_p; then
 
24585
    mkdir -p $dirpart/$fdir
 
24586
  else
 
24587
    as_dir=$dirpart/$fdir
 
24588
    as_dirs=
 
24589
    while test ! -d "$as_dir"; do
 
24590
      as_dirs="$as_dir $as_dirs"
 
24591
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24592
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24593
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24594
         X"$as_dir" : 'X\(//\)$' \| \
 
24595
         X"$as_dir" : 'X\(/\)' \| \
 
24596
         .     : '\(.\)' 2>/dev/null ||
 
24597
echo X"$as_dir" |
 
24598
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24599
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24600
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24601
          /^X\(\/\).*/{ s//\1/; q; }
 
24602
          s/.*/./; q'`
 
24603
    done
 
24604
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24605
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
24606
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
24607
   { (exit 1); exit 1; }; }; }
 
24608
 
 
24609
    # echo "creating $dirpart/$file"
 
24610
    echo '# dummy' > "$dirpart/$file"
 
24611
  done
5467
24612
done
5468
 
EOF
5469
 
cat >> $CONFIG_STATUS <<EOF
5470
 
 
5471
 
 
5472
 
 
5473
 
EOF
5474
 
cat >> $CONFIG_STATUS <<\EOF
5475
 
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5476
 
case "$CONFIG_FILES" in *po/Makefile.in*)
 
24613
 ;;
 
24614
    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
5477
24615
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5478
 
      esac
5479
 
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5480
 
exit 0
5481
 
EOF
 
24616
      esac ;;
 
24617
  esac
 
24618
done
 
24619
_ACEOF
 
24620
 
 
24621
cat >>$CONFIG_STATUS <<\_ACEOF
 
24622
 
 
24623
{ (exit 0); exit 0; }
 
24624
_ACEOF
5482
24625
chmod +x $CONFIG_STATUS
5483
 
rm -fr confdefs* $ac_clean_files
5484
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
24626
ac_clean_files=$ac_clean_files_save
 
24627
 
 
24628
 
 
24629
# configure is writing to config.log, and then calls config.status.
 
24630
# config.status does its own redirection, appending to config.log.
 
24631
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24632
# by configure, so config.status won't be able to write to it; its
 
24633
# output is simply discarded.  So we exec the FD to /dev/null,
 
24634
# effectively closing config.log, so it can be properly (re)opened and
 
24635
# appended to by config.status.  When coming back to configure, we
 
24636
# need to make the FD available again.
 
24637
if test "$no_create" != yes; then
 
24638
  ac_cs_success=:
 
24639
  ac_config_status_args=
 
24640
  test "$silent" = yes &&
 
24641
    ac_config_status_args="$ac_config_status_args --quiet"
 
24642
  exec 5>/dev/null
 
24643
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24644
  exec 5>>config.log
 
24645
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24646
  # would make configure fail if this is the last instruction.
 
24647
  $ac_cs_success || { (exit 1); exit 1; }
 
24648
fi
5485
24649
 
5486
24650
 
5487
24651
 
5488
24652
echo "
 
24653
 
5489
24654
Configuration:
5490
24655
 
5491
 
        Source code location:   ${srcdir}
5492
 
        Compiler:               ${CC} 
 
24656
        Source code location:   ${srcdir}
 
24657
        Compiler:               ${CC}
 
24658
 
5493
24659
"
 
24660