~ubuntu-branches/ubuntu/raring/libcddb/raring

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-01-17 18:24:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100117182443-lnkwqi0fvdc5c4jg
Tags: 1.3.2-0ubuntu1
* New upstream release.
 - Fix a crash on aqualung (LP: #316056)
* debian/control:
 - Build-depends on libcdio-dev (>= 0.76).
 - Add Section libs.
 - Use ${binary:Version} instead of ${Source-Version} substvar.
 - Add missing ${misc:Depends}.
 - Build-depends on debhelper (>= 5.0.0).
* debian/rules:
 - Update SONAME minor version.
 - Don't ignore error on distclean.
 - Use debian/compat instead of using export DH_COMPAT.
* debian/*.install:
 - Remove unused /usr/lib/include/* location.
* debian/libcddb2.postinst & libcddb2.postrm:
 - Remove, it's automatically handle by debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for libcddb 1.2.1.
 
3
# Generated by GNU Autoconf 2.63 for libcddb 1.3.2.
4
4
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6
7
# This configure script is free software; the Free Software Foundation
7
8
# gives unlimited permission to copy, distribute and modify it.
8
9
## --------------------- ##
9
10
## M4sh Initialization.  ##
10
11
## --------------------- ##
11
12
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
 
13
# Be more Bourne compatible
22
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
as_nl='
 
41
'
 
42
export as_nl
 
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
23
80
 
24
81
# Support unset when possible.
25
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29
86
fi
30
87
 
31
88
 
 
89
# IFS
 
90
# We need space, tab and new line, in precisely that order.  Quoting is
 
91
# there to prevent editors from complaining about space-tab.
 
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
93
# splitting by setting IFS to empty value.)
 
94
IFS=" ""        $as_nl"
 
95
 
 
96
# Find who we are.  Look in the path if we contain no directory separator.
 
97
case $0 in
 
98
  *[\\/]* ) as_myself=$0 ;;
 
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
100
for as_dir in $PATH
 
101
do
 
102
  IFS=$as_save_IFS
 
103
  test -z "$as_dir" && as_dir=.
 
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
105
done
 
106
IFS=$as_save_IFS
 
107
 
 
108
     ;;
 
109
esac
 
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
111
# in which case we are not to be found in the path.
 
112
if test "x$as_myself" = x; then
 
113
  as_myself=$0
 
114
fi
 
115
if test ! -f "$as_myself"; then
 
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
117
  { (exit 1); exit 1; }
 
118
fi
 
119
 
32
120
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
 
121
for as_var in ENV MAIL MAILPATH
 
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
123
done
34
124
PS1='$ '
35
125
PS2='> '
36
126
PS4='+ '
37
127
 
38
128
# NLS nuisances.
39
 
for as_var in \
40
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
 
  LC_TELEPHONE LC_TIME
43
 
do
44
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
 
    eval $as_var=C; export $as_var
46
 
  else
47
 
    $as_unset $as_var
48
 
  fi
49
 
done
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
50
133
 
51
134
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
53
137
  as_expr=expr
54
138
else
55
139
  as_expr=false
56
140
fi
57
141
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
143
  as_basename=basename
60
144
else
61
145
  as_basename=false
63
147
 
64
148
 
65
149
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
 
150
as_me=`$as_basename -- "$0" ||
67
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
152
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
71
 
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
 
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
154
$as_echo X/"$0" |
 
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
156
            s//\1/
 
157
            q
 
158
          }
 
159
          /^X\/\(\/\/\)$/{
 
160
            s//\1/
 
161
            q
 
162
          }
 
163
          /^X\/\(\/\).*/{
 
164
            s//\1/
 
165
            q
 
166
          }
 
167
          s/.*/./; q'`
 
168
 
 
169
# CDPATH.
 
170
$as_unset CDPATH
 
171
 
 
172
 
 
173
if test "x$CONFIG_SHELL" = x; then
 
174
  if (eval ":") 2>/dev/null; then
 
175
  as_have_required=yes
 
176
else
 
177
  as_have_required=no
 
178
fi
 
179
 
 
180
  if test $as_have_required = yes &&     (eval ":
 
181
(as_func_return () {
 
182
  (exit \$1)
 
183
}
 
184
as_func_success () {
 
185
  as_func_return 0
 
186
}
 
187
as_func_failure () {
 
188
  as_func_return 1
 
189
}
 
190
as_func_ret_success () {
 
191
  return 0
 
192
}
 
193
as_func_ret_failure () {
 
194
  return 1
 
195
}
 
196
 
 
197
exitcode=0
 
198
if as_func_success; then
 
199
  :
 
200
else
 
201
  exitcode=1
 
202
  echo as_func_success failed.
 
203
fi
 
204
 
 
205
if as_func_failure; then
 
206
  exitcode=1
 
207
  echo as_func_failure succeeded.
 
208
fi
 
209
 
 
210
if as_func_ret_success; then
 
211
  :
 
212
else
 
213
  exitcode=1
 
214
  echo as_func_ret_success failed.
 
215
fi
 
216
 
 
217
if as_func_ret_failure; then
 
218
  exitcode=1
 
219
  echo as_func_ret_failure succeeded.
 
220
fi
 
221
 
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
223
  :
 
224
else
 
225
  exitcode=1
 
226
  echo positional parameters were not saved.
 
227
fi
 
228
 
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
 
230
 
 
231
(
 
232
  as_lineno_1=\$LINENO
 
233
  as_lineno_2=\$LINENO
 
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
236
") 2> /dev/null; then
 
237
  :
 
238
else
 
239
  as_candidate_shells=
130
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
242
do
133
243
  IFS=$as_save_IFS
134
244
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
 
245
  case $as_dir in
137
246
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
 
247
           for as_base in sh bash ksh sh5; do
 
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
249
           done;;
 
250
       esac
152
251
done
153
 
;;
154
 
  esac
 
252
IFS=$as_save_IFS
 
253
 
 
254
 
 
255
      for as_shell in $as_candidate_shells $SHELL; do
 
256
         # Try only shells that exist, to save several forks.
 
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
260
  emulate sh
 
261
  NULLCMD=:
 
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
263
  # is contrary to our usage.  Disable this feature.
 
264
  alias -g '${1+"$@"}'='"$@"'
 
265
  setopt NO_GLOB_SUBST
 
266
else
 
267
  case `(set -o) 2>/dev/null` in
 
268
  *posix*) set -o posix ;;
 
269
esac
 
270
 
 
271
fi
 
272
 
 
273
 
 
274
:
 
275
_ASEOF
 
276
}; then
 
277
  CONFIG_SHELL=$as_shell
 
278
               as_have_required=yes
 
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
281
  emulate sh
 
282
  NULLCMD=:
 
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
284
  # is contrary to our usage.  Disable this feature.
 
285
  alias -g '${1+"$@"}'='"$@"'
 
286
  setopt NO_GLOB_SUBST
 
287
else
 
288
  case `(set -o) 2>/dev/null` in
 
289
  *posix*) set -o posix ;;
 
290
esac
 
291
 
 
292
fi
 
293
 
 
294
 
 
295
:
 
296
(as_func_return () {
 
297
  (exit $1)
 
298
}
 
299
as_func_success () {
 
300
  as_func_return 0
 
301
}
 
302
as_func_failure () {
 
303
  as_func_return 1
 
304
}
 
305
as_func_ret_success () {
 
306
  return 0
 
307
}
 
308
as_func_ret_failure () {
 
309
  return 1
 
310
}
 
311
 
 
312
exitcode=0
 
313
if as_func_success; then
 
314
  :
 
315
else
 
316
  exitcode=1
 
317
  echo as_func_success failed.
 
318
fi
 
319
 
 
320
if as_func_failure; then
 
321
  exitcode=1
 
322
  echo as_func_failure succeeded.
 
323
fi
 
324
 
 
325
if as_func_ret_success; then
 
326
  :
 
327
else
 
328
  exitcode=1
 
329
  echo as_func_ret_success failed.
 
330
fi
 
331
 
 
332
if as_func_ret_failure; then
 
333
  exitcode=1
 
334
  echo as_func_ret_failure succeeded.
 
335
fi
 
336
 
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
338
  :
 
339
else
 
340
  exitcode=1
 
341
  echo positional parameters were not saved.
 
342
fi
 
343
 
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
 
345
 
 
346
(
 
347
  as_lineno_1=$LINENO
 
348
  as_lineno_2=$LINENO
 
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
351
 
 
352
_ASEOF
 
353
}; then
 
354
  break
 
355
fi
 
356
 
 
357
fi
 
358
 
 
359
      done
 
360
 
 
361
      if test "x$CONFIG_SHELL" != x; then
 
362
  for as_var in BASH_ENV ENV
 
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
364
        done
 
365
        export CONFIG_SHELL
 
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
367
fi
 
368
 
 
369
 
 
370
    if test $as_have_required = no; then
 
371
  echo This script requires a shell more modern than all the
 
372
      echo shells that I found on your system.  Please install a
 
373
      echo modern shell, or manually run the script under such a
 
374
      echo shell if you do have one.
 
375
      { (exit 1); exit 1; }
 
376
fi
 
377
 
 
378
 
 
379
fi
 
380
 
 
381
fi
 
382
 
 
383
 
 
384
 
 
385
(eval "as_func_return () {
 
386
  (exit \$1)
 
387
}
 
388
as_func_success () {
 
389
  as_func_return 0
 
390
}
 
391
as_func_failure () {
 
392
  as_func_return 1
 
393
}
 
394
as_func_ret_success () {
 
395
  return 0
 
396
}
 
397
as_func_ret_failure () {
 
398
  return 1
 
399
}
 
400
 
 
401
exitcode=0
 
402
if as_func_success; then
 
403
  :
 
404
else
 
405
  exitcode=1
 
406
  echo as_func_success failed.
 
407
fi
 
408
 
 
409
if as_func_failure; then
 
410
  exitcode=1
 
411
  echo as_func_failure succeeded.
 
412
fi
 
413
 
 
414
if as_func_ret_success; then
 
415
  :
 
416
else
 
417
  exitcode=1
 
418
  echo as_func_ret_success failed.
 
419
fi
 
420
 
 
421
if as_func_ret_failure; then
 
422
  exitcode=1
 
423
  echo as_func_ret_failure succeeded.
 
424
fi
 
425
 
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
427
  :
 
428
else
 
429
  exitcode=1
 
430
  echo positional parameters were not saved.
 
431
fi
 
432
 
 
433
test \$exitcode = 0") || {
 
434
  echo No shell found that supports shell functions.
 
435
  echo Please tell bug-autoconf@gnu.org about your system,
 
436
  echo including any error possibly output before this message.
 
437
  echo This can help us improve future autoconf versions.
 
438
  echo Configuration will now proceed without shell functions.
 
439
}
 
440
 
 
441
 
 
442
 
 
443
  as_lineno_1=$LINENO
 
444
  as_lineno_2=$LINENO
 
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
155
447
 
156
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
 
450
  # line-number line after each line using $LINENO; the second 'sed'
 
451
  # does the real work.  The second script uses 'N' to pair each
 
452
  # line-number line with the line containing $LINENO, and appends
 
453
  # trailing '-' during substitution so that $LINENO is not a special
 
454
  # case at line end.
162
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
 
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
458
  sed -n '
 
459
    p
 
460
    /[$]LINENO/=
 
461
  ' <$as_myself |
165
462
    sed '
 
463
      s/[$]LINENO.*/&-/
 
464
      t lineno
 
465
      b
 
466
      :lineno
166
467
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
468
      :loop
 
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170
470
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
 
471
      s/-\n.*//
173
472
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
175
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
473
  chmod +x "$as_me.lineno" ||
 
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
475
   { (exit 1); exit 1; }; }
177
476
 
178
477
  # Don't try to exec as it changes $[0], causing all sort of problems
179
478
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
 
479
  # original and so on.  Autoconf is especially sensitive to this).
 
480
  . "./$as_me.lineno"
182
481
  # Exit status is that of the last command.
183
482
  exit
184
483
}
185
484
 
186
485
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
487
  as_dirname=dirname
 
488
else
 
489
  as_dirname=false
 
490
fi
 
491
 
 
492
ECHO_C= ECHO_N= ECHO_T=
 
493
case `echo -n x` in
 
494
-n*)
 
495
  case `echo 'x\c'` in
 
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
497
  *)   ECHO_C='\c';;
 
498
  esac;;
 
499
*)
 
500
  ECHO_N='-n';;
192
501
esac
193
 
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
195
504
  as_expr=expr
196
505
else
197
506
  as_expr=false
198
507
fi
199
508
 
200
509
rm -f conf$$ conf$$.exe conf$$.file
201
 
echo >conf$$.file
202
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
 
510
if test -d conf$$.dir; then
 
511
  rm -f conf$$.dir/conf$$.file
 
512
else
 
513
  rm -f conf$$.dir
 
514
  mkdir conf$$.dir 2>/dev/null
 
515
fi
 
516
if (echo >conf$$.file) 2>/dev/null; then
 
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
518
    as_ln_s='ln -s'
 
519
    # ... but there are two gotchas:
 
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
522
    # In both cases, we have to default to `cp -p'.
 
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
524
      as_ln_s='cp -p'
 
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
526
    as_ln_s=ln
 
527
  else
207
528
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
529
  fi
211
 
elif ln conf$$.file conf$$ 2>/dev/null; then
212
 
  as_ln_s=ln
213
530
else
214
531
  as_ln_s='cp -p'
215
532
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
 
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
534
rmdir conf$$.dir 2>/dev/null
217
535
 
218
536
if mkdir -p . 2>/dev/null; then
219
537
  as_mkdir_p=:
222
540
  as_mkdir_p=false
223
541
fi
224
542
 
225
 
as_executable_p="test -f"
 
543
if test -x / >/dev/null 2>&1; then
 
544
  as_test_x='test -x'
 
545
else
 
546
  if ls -dL / >/dev/null 2>&1; then
 
547
    as_ls_L_option=L
 
548
  else
 
549
    as_ls_L_option=
 
550
  fi
 
551
  as_test_x='
 
552
    eval sh -c '\''
 
553
      if test -d "$1"; then
 
554
        test -d "$1/.";
 
555
      else
 
556
        case $1 in
 
557
        -*)set "./$1";;
 
558
        esac;
 
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
560
        ???[sx]*):;;*)false;;esac;fi
 
561
    '\'' sh
 
562
  '
 
563
fi
 
564
as_executable_p=$as_test_x
226
565
 
227
566
# Sed expression to map a string onto a valid CPP name.
228
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
571
 
233
572
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
243
573
 
244
574
 
245
575
# Check that we are running under the correct shell.
246
576
SHELL=${CONFIG_SHELL-/bin/sh}
247
577
 
248
 
case X$ECHO in
 
578
case X$lt_ECHO in
249
579
X*--fallback-echo)
250
580
  # Remove one level of quotation (which was required for Make).
251
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
582
  ;;
253
583
esac
254
584
 
255
 
echo=${ECHO-echo}
 
585
ECHO=${lt_ECHO-echo}
256
586
if test "X$1" = X--no-reexec; then
257
587
  # Discard the --no-reexec flag, and continue.
258
588
  shift
259
589
elif test "X$1" = X--fallback-echo; then
260
590
  # Avoid inline document here, it may be left over
261
591
  :
262
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
 
  # Yippee, $echo works!
 
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
593
  # Yippee, $ECHO works!
264
594
  :
265
595
else
266
596
  # Restart under the correct shell.
270
600
if test "X$1" = X--fallback-echo; then
271
601
  # used as fallback echo
272
602
  shift
273
 
  cat <<EOF
 
603
  cat <<_LT_EOF
274
604
$*
275
 
EOF
 
605
_LT_EOF
276
606
  exit 0
277
607
fi
278
608
 
280
610
# if CDPATH is set.
281
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
612
 
283
 
if test -z "$ECHO"; then
284
 
if test "X${echo_test_string+set}" != Xset; then
285
 
# find a string as large as possible, as long as the shell can cope with it
286
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
 
       echo_test_string="`eval $cmd`" &&
290
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291
 
    then
292
 
      break
293
 
    fi
294
 
  done
295
 
fi
296
 
 
297
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
300
 
  :
301
 
else
302
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
303
 
  # backslashes.  This makes it impossible to quote backslashes using
304
 
  #   echo "$something" | sed 's/\\/\\\\/g'
305
 
  #
306
 
  # So, first we look for a working echo in the user's PATH.
307
 
 
308
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
 
  for dir in $PATH /usr/ucb; do
 
613
if test -z "$lt_ECHO"; then
 
614
  if test "X${echo_test_string+set}" != Xset; then
 
615
    # find a string as large as possible, as long as the shell can cope with it
 
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
619
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
620
      then
 
621
        break
 
622
      fi
 
623
    done
 
624
  fi
 
625
 
 
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
629
    :
 
630
  else
 
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
632
    # backslashes.  This makes it impossible to quote backslashes using
 
633
    #   echo "$something" | sed 's/\\/\\\\/g'
 
634
    #
 
635
    # So, first we look for a working echo in the user's PATH.
 
636
 
 
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
638
    for dir in $PATH /usr/ucb; do
 
639
      IFS="$lt_save_ifs"
 
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
644
        ECHO="$dir/echo"
 
645
        break
 
646
      fi
 
647
    done
310
648
    IFS="$lt_save_ifs"
311
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
315
 
      echo="$dir/echo"
316
 
      break
317
 
    fi
318
 
  done
319
 
  IFS="$lt_save_ifs"
320
649
 
321
 
  if test "X$echo" = Xecho; then
322
 
    # We didn't find a better echo, so look for alternatives.
323
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
326
 
      # This shell has a builtin print -r that does the trick.
327
 
      echo='print -r'
328
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
330
 
      # If we have ksh, try running configure again with it.
331
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
 
      export ORIGINAL_CONFIG_SHELL
333
 
      CONFIG_SHELL=/bin/ksh
334
 
      export CONFIG_SHELL
335
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336
 
    else
337
 
      # Try using printf.
338
 
      echo='printf %s\n'
339
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
342
 
        # Cool, printf works
343
 
        :
344
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
 
           test "X$echo_testing_string" = 'X\t' &&
346
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
348
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349
 
        export CONFIG_SHELL
350
 
        SHELL="$CONFIG_SHELL"
351
 
        export SHELL
352
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
353
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
 
           test "X$echo_testing_string" = 'X\t' &&
355
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
357
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
650
    if test "X$ECHO" = Xecho; then
 
651
      # We didn't find a better echo, so look for alternatives.
 
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
655
        # This shell has a builtin print -r that does the trick.
 
656
        ECHO='print -r'
 
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
658
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
659
        # If we have ksh, try running configure again with it.
 
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
661
        export ORIGINAL_CONFIG_SHELL
 
662
        CONFIG_SHELL=/bin/ksh
 
663
        export CONFIG_SHELL
 
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
358
665
      else
359
 
        # maybe with a smaller string...
360
 
        prev=:
361
 
 
362
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364
 
          then
365
 
            break
 
666
        # Try using printf.
 
667
        ECHO='printf %s\n'
 
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
669
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
670
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
671
          # Cool, printf works
 
672
          :
 
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
674
             test "X$echo_testing_string" = 'X\t' &&
 
675
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
676
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
677
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
678
          export CONFIG_SHELL
 
679
          SHELL="$CONFIG_SHELL"
 
680
          export SHELL
 
681
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
683
             test "X$echo_testing_string" = 'X\t' &&
 
684
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
685
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
686
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
687
        else
 
688
          # maybe with a smaller string...
 
689
          prev=:
 
690
 
 
691
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
692
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
693
            then
 
694
              break
 
695
            fi
 
696
            prev="$cmd"
 
697
          done
 
698
 
 
699
          if test "$prev" != 'sed 50q "$0"'; then
 
700
            echo_test_string=`eval $prev`
 
701
            export echo_test_string
 
702
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
703
          else
 
704
            # Oops.  We lost completely, so just stick with echo.
 
705
            ECHO=echo
366
706
          fi
367
 
          prev="$cmd"
368
 
        done
369
 
 
370
 
        if test "$prev" != 'sed 50q "$0"'; then
371
 
          echo_test_string=`eval $prev`
372
 
          export echo_test_string
373
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374
 
        else
375
 
          # Oops.  We lost completely, so just stick with echo.
376
 
          echo=echo
377
 
        fi
 
707
        fi
378
708
      fi
379
709
    fi
380
710
  fi
381
711
fi
382
 
fi
383
712
 
384
713
# Copy echo and quote the copy suitably for passing to libtool from
385
714
# the Makefile, instead of quoting the original, which is used later.
386
 
ECHO=$echo
387
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
715
lt_ECHO=$ECHO
 
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389
718
fi
390
719
 
391
720
 
392
721
 
393
722
 
394
 
tagnames=${tagnames+${tagnames},}CXX
395
 
 
396
 
tagnames=${tagnames+${tagnames},}F77
 
723
exec 7<&0 </dev/null 6>&1
397
724
 
398
725
# Name of the host.
399
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
727
# so uname gets run too.
401
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
729
 
403
 
exec 6>&1
404
 
 
405
730
#
406
731
# Initializations.
407
732
#
408
733
ac_default_prefix=/usr/local
 
734
ac_clean_files=
409
735
ac_config_libobj_dir=.
 
736
LIBOBJS=
410
737
cross_compiling=no
411
738
subdirs=
412
739
MFLAGS=
413
740
MAKEFLAGS=
414
741
SHELL=${CONFIG_SHELL-/bin/sh}
415
742
 
416
 
# Maximum number of lines to put in a shell here document.
417
 
# This variable seems obsolete.  It should probably be removed, and
418
 
# only ac_max_sed_lines should be used.
419
 
: ${ac_max_here_lines=38}
420
 
 
421
743
# Identity of this package.
422
744
PACKAGE_NAME='libcddb'
423
745
PACKAGE_TARNAME='libcddb'
424
 
PACKAGE_VERSION='1.2.1'
425
 
PACKAGE_STRING='libcddb 1.2.1'
 
746
PACKAGE_VERSION='1.3.2'
 
747
PACKAGE_STRING='libcddb 1.3.2'
426
748
PACKAGE_BUGREPORT=''
427
749
 
428
750
ac_unique_file="configure.ac"
429
751
# Factoring default headers for most tests.
430
752
ac_includes_default="\
431
753
#include <stdio.h>
432
 
#if HAVE_SYS_TYPES_H
 
754
#ifdef HAVE_SYS_TYPES_H
433
755
# include <sys/types.h>
434
756
#endif
435
 
#if HAVE_SYS_STAT_H
 
757
#ifdef HAVE_SYS_STAT_H
436
758
# include <sys/stat.h>
437
759
#endif
438
 
#if STDC_HEADERS
 
760
#ifdef STDC_HEADERS
439
761
# include <stdlib.h>
440
762
# include <stddef.h>
441
763
#else
442
 
# if HAVE_STDLIB_H
 
764
# ifdef HAVE_STDLIB_H
443
765
#  include <stdlib.h>
444
766
# endif
445
767
#endif
446
 
#if HAVE_STRING_H
447
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
768
#ifdef HAVE_STRING_H
 
769
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
448
770
#  include <memory.h>
449
771
# endif
450
772
# include <string.h>
451
773
#endif
452
 
#if HAVE_STRINGS_H
 
774
#ifdef HAVE_STRINGS_H
453
775
# include <strings.h>
454
776
#endif
455
 
#if HAVE_INTTYPES_H
 
777
#ifdef HAVE_INTTYPES_H
456
778
# include <inttypes.h>
457
 
#else
458
 
# if HAVE_STDINT_H
459
 
#  include <stdint.h>
460
 
# endif
461
 
#endif
462
 
#if HAVE_UNISTD_H
 
779
#endif
 
780
#ifdef HAVE_STDINT_H
 
781
# include <stdint.h>
 
782
#endif
 
783
#ifdef HAVE_UNISTD_H
463
784
# include <unistd.h>
464
785
#endif"
465
786
 
466
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBCDDB_VERSION_NUM 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 CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS PKG_CONFIG ac_pt_PKG_CONFIG LIBCDIO_CFLAGS LIBCDIO_LIBS LIBICONV LTLIBICONV with_iconv LTLIBOBJS'
 
787
ac_subst_vars='LTLIBOBJS
 
788
with_iconv
 
789
LTLIBICONV
 
790
LIBICONV
 
791
LIBCDIO_LIBS
 
792
LIBCDIO_CFLAGS
 
793
PKG_CONFIG
 
794
LIBOBJS
 
795
OTOOL64
 
796
OTOOL
 
797
LIPO
 
798
NMEDIT
 
799
DSYMUTIL
 
800
lt_ECHO
 
801
RANLIB
 
802
AR
 
803
LN_S
 
804
NM
 
805
ac_ct_DUMPBIN
 
806
DUMPBIN
 
807
LD
 
808
FGREP
 
809
EGREP
 
810
GREP
 
811
SED
 
812
LIBTOOL
 
813
OBJDUMP
 
814
DLLTOOL
 
815
AS
 
816
CPP
 
817
am__fastdepCC_FALSE
 
818
am__fastdepCC_TRUE
 
819
CCDEPMODE
 
820
AMDEPBACKSLASH
 
821
AMDEP_FALSE
 
822
AMDEP_TRUE
 
823
am__quote
 
824
am__include
 
825
DEPDIR
 
826
OBJEXT
 
827
EXEEXT
 
828
ac_ct_CC
 
829
CPPFLAGS
 
830
LDFLAGS
 
831
CFLAGS
 
832
CC
 
833
host_os
 
834
host_vendor
 
835
host_cpu
 
836
host
 
837
build_os
 
838
build_vendor
 
839
build_cpu
 
840
build
 
841
LIBCDDB_VERSION_NUM
 
842
MAINT
 
843
MAINTAINER_MODE_FALSE
 
844
MAINTAINER_MODE_TRUE
 
845
am__untar
 
846
am__tar
 
847
AMTAR
 
848
am__leading_dot
 
849
SET_MAKE
 
850
AWK
 
851
mkdir_p
 
852
MKDIR_P
 
853
INSTALL_STRIP_PROGRAM
 
854
STRIP
 
855
install_sh
 
856
MAKEINFO
 
857
AUTOHEADER
 
858
AUTOMAKE
 
859
AUTOCONF
 
860
ACLOCAL
 
861
VERSION
 
862
PACKAGE
 
863
CYGPATH_W
 
864
am__isrc
 
865
INSTALL_DATA
 
866
INSTALL_SCRIPT
 
867
INSTALL_PROGRAM
 
868
target_alias
 
869
host_alias
 
870
build_alias
 
871
LIBS
 
872
ECHO_T
 
873
ECHO_N
 
874
ECHO_C
 
875
DEFS
 
876
mandir
 
877
localedir
 
878
libdir
 
879
psdir
 
880
pdfdir
 
881
dvidir
 
882
htmldir
 
883
infodir
 
884
docdir
 
885
oldincludedir
 
886
includedir
 
887
localstatedir
 
888
sharedstatedir
 
889
sysconfdir
 
890
datadir
 
891
datarootdir
 
892
libexecdir
 
893
sbindir
 
894
bindir
 
895
program_transform_name
 
896
prefix
 
897
exec_prefix
 
898
PACKAGE_BUGREPORT
 
899
PACKAGE_STRING
 
900
PACKAGE_VERSION
 
901
PACKAGE_TARNAME
 
902
PACKAGE_NAME
 
903
PATH_SEPARATOR
 
904
SHELL'
467
905
ac_subst_files=''
 
906
ac_user_opts='
 
907
enable_option_checking
 
908
enable_maintainer_mode
 
909
enable_loglevel
 
910
with_cdio
 
911
with_iconv
 
912
enable_dependency_tracking
 
913
enable_shared
 
914
enable_static
 
915
with_pic
 
916
enable_fast_install
 
917
with_gnu_ld
 
918
enable_libtool_lock
 
919
enable_rpath
 
920
with_libiconv_prefix
 
921
'
 
922
      ac_precious_vars='build_alias
 
923
host_alias
 
924
target_alias
 
925
CC
 
926
CFLAGS
 
927
LDFLAGS
 
928
LIBS
 
929
CPPFLAGS
 
930
CPP
 
931
PKG_CONFIG
 
932
LIBCDIO_CFLAGS
 
933
LIBCDIO_LIBS'
 
934
 
468
935
 
469
936
# Initialize some variables set by options.
470
937
ac_init_help=
471
938
ac_init_version=false
 
939
ac_unrecognized_opts=
 
940
ac_unrecognized_sep=
472
941
# The variables have the same names as the options, with
473
942
# dashes changed to underlines.
474
943
cache_file=/dev/null
491
960
# and all the variables that are supposed to be based on exec_prefix
492
961
# by default will actually change.
493
962
# Use braces instead of parens because sh, perl, etc. also accept them.
 
963
# (The list follows the same order as the GNU Coding Standards.)
494
964
bindir='${exec_prefix}/bin'
495
965
sbindir='${exec_prefix}/sbin'
496
966
libexecdir='${exec_prefix}/libexec'
497
 
datadir='${prefix}/share'
 
967
datarootdir='${prefix}/share'
 
968
datadir='${datarootdir}'
498
969
sysconfdir='${prefix}/etc'
499
970
sharedstatedir='${prefix}/com'
500
971
localstatedir='${prefix}/var'
501
 
libdir='${exec_prefix}/lib'
502
972
includedir='${prefix}/include'
503
973
oldincludedir='/usr/include'
504
 
infodir='${prefix}/info'
505
 
mandir='${prefix}/man'
 
974
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
975
infodir='${datarootdir}/info'
 
976
htmldir='${docdir}'
 
977
dvidir='${docdir}'
 
978
pdfdir='${docdir}'
 
979
psdir='${docdir}'
 
980
libdir='${exec_prefix}/lib'
 
981
localedir='${datarootdir}/locale'
 
982
mandir='${datarootdir}/man'
506
983
 
507
984
ac_prev=
 
985
ac_dashdash=
508
986
for ac_option
509
987
do
510
988
  # If the previous option needs an argument, assign it.
511
989
  if test -n "$ac_prev"; then
512
 
    eval "$ac_prev=\$ac_option"
 
990
    eval $ac_prev=\$ac_option
513
991
    ac_prev=
514
992
    continue
515
993
  fi
516
994
 
517
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
995
  case $ac_option in
 
996
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
997
  *)    ac_optarg=yes ;;
 
998
  esac
518
999
 
519
1000
  # Accept the important Cygnus configure options, so we can diagnose typos.
520
1001
 
521
 
  case $ac_option in
 
1002
  case $ac_dashdash$ac_option in
 
1003
  --)
 
1004
    ac_dashdash=yes ;;
522
1005
 
523
1006
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524
1007
    ac_prev=bindir ;;
540
1023
  --config-cache | -C)
541
1024
    cache_file=config.cache ;;
542
1025
 
543
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
1026
  -datadir | --datadir | --datadi | --datad)
544
1027
    ac_prev=datadir ;;
545
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546
 
  | --da=*)
 
1028
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
547
1029
    datadir=$ac_optarg ;;
548
1030
 
 
1031
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1032
  | --dataroo | --dataro | --datar)
 
1033
    ac_prev=datarootdir ;;
 
1034
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1035
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1036
    datarootdir=$ac_optarg ;;
 
1037
 
549
1038
  -disable-* | --disable-*)
550
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1039
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
1040
    # Reject names that are not valid shell variable names.
552
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1041
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1042
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
554
1043
   { (exit 1); exit 1; }; }
555
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
 
    eval "enable_$ac_feature=no" ;;
 
1044
    ac_useropt_orig=$ac_useropt
 
1045
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1046
    case $ac_user_opts in
 
1047
      *"
 
1048
"enable_$ac_useropt"
 
1049
"*) ;;
 
1050
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1051
         ac_unrecognized_sep=', ';;
 
1052
    esac
 
1053
    eval enable_$ac_useropt=no ;;
 
1054
 
 
1055
  -docdir | --docdir | --docdi | --doc | --do)
 
1056
    ac_prev=docdir ;;
 
1057
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1058
    docdir=$ac_optarg ;;
 
1059
 
 
1060
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1061
    ac_prev=dvidir ;;
 
1062
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1063
    dvidir=$ac_optarg ;;
557
1064
 
558
1065
  -enable-* | --enable-*)
559
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1066
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
1067
    # Reject names that are not valid shell variable names.
561
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1068
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1069
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
563
1070
   { (exit 1); exit 1; }; }
564
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565
 
    case $ac_option in
566
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567
 
      *) ac_optarg=yes ;;
 
1071
    ac_useropt_orig=$ac_useropt
 
1072
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1073
    case $ac_user_opts in
 
1074
      *"
 
1075
"enable_$ac_useropt"
 
1076
"*) ;;
 
1077
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1078
         ac_unrecognized_sep=', ';;
568
1079
    esac
569
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
1080
    eval enable_$ac_useropt=\$ac_optarg ;;
570
1081
 
571
1082
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
1083
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593
1104
  -host=* | --host=* | --hos=* | --ho=*)
594
1105
    host_alias=$ac_optarg ;;
595
1106
 
 
1107
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1108
    ac_prev=htmldir ;;
 
1109
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1110
  | --ht=*)
 
1111
    htmldir=$ac_optarg ;;
 
1112
 
596
1113
  -includedir | --includedir | --includedi | --included | --include \
597
1114
  | --includ | --inclu | --incl | --inc)
598
1115
    ac_prev=includedir ;;
617
1134
  | --libexe=* | --libex=* | --libe=*)
618
1135
    libexecdir=$ac_optarg ;;
619
1136
 
 
1137
  -localedir | --localedir | --localedi | --localed | --locale)
 
1138
    ac_prev=localedir ;;
 
1139
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1140
    localedir=$ac_optarg ;;
 
1141
 
620
1142
  -localstatedir | --localstatedir | --localstatedi | --localstated \
621
 
  | --localstate | --localstat | --localsta | --localst \
622
 
  | --locals | --local | --loca | --loc | --lo)
 
1143
  | --localstate | --localstat | --localsta | --localst | --locals)
623
1144
    ac_prev=localstatedir ;;
624
1145
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1146
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
627
1147
    localstatedir=$ac_optarg ;;
628
1148
 
629
1149
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
688
1208
  | --progr-tra=* | --program-tr=* | --program-t=*)
689
1209
    program_transform_name=$ac_optarg ;;
690
1210
 
 
1211
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1212
    ac_prev=pdfdir ;;
 
1213
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1214
    pdfdir=$ac_optarg ;;
 
1215
 
 
1216
  -psdir | --psdir | --psdi | --psd | --ps)
 
1217
    ac_prev=psdir ;;
 
1218
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1219
    psdir=$ac_optarg ;;
 
1220
 
691
1221
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
1222
  | -silent | --silent | --silen | --sile | --sil)
693
1223
    silent=yes ;;
738
1268
    ac_init_version=: ;;
739
1269
 
740
1270
  -with-* | --with-*)
741
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1271
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
1272
    # Reject names that are not valid shell variable names.
743
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1273
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1274
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
745
1275
   { (exit 1); exit 1; }; }
746
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
747
 
    case $ac_option in
748
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749
 
      *) ac_optarg=yes ;;
 
1276
    ac_useropt_orig=$ac_useropt
 
1277
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1278
    case $ac_user_opts in
 
1279
      *"
 
1280
"with_$ac_useropt"
 
1281
"*) ;;
 
1282
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1283
         ac_unrecognized_sep=', ';;
750
1284
    esac
751
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1285
    eval with_$ac_useropt=\$ac_optarg ;;
752
1286
 
753
1287
  -without-* | --without-*)
754
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1288
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
1289
    # Reject names that are not valid shell variable names.
756
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1290
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1291
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
758
1292
   { (exit 1); exit 1; }; }
759
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
760
 
    eval "with_$ac_package=no" ;;
 
1293
    ac_useropt_orig=$ac_useropt
 
1294
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1295
    case $ac_user_opts in
 
1296
      *"
 
1297
"with_$ac_useropt"
 
1298
"*) ;;
 
1299
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1300
         ac_unrecognized_sep=', ';;
 
1301
    esac
 
1302
    eval with_$ac_useropt=no ;;
761
1303
 
762
1304
  --x)
763
1305
    # Obsolete; use --with-x.
777
1319
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778
1320
    x_libraries=$ac_optarg ;;
779
1321
 
780
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1322
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
781
1323
Try \`$0 --help' for more information." >&2
782
1324
   { (exit 1); exit 1; }; }
783
1325
    ;;
786
1328
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787
1329
    # Reject names that are not valid shell variable names.
788
1330
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1331
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
1332
   { (exit 1); exit 1; }; }
791
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
 
    eval "$ac_envvar='$ac_optarg'"
 
1333
    eval $ac_envvar=\$ac_optarg
793
1334
    export $ac_envvar ;;
794
1335
 
795
1336
  *)
796
1337
    # FIXME: should be removed in autoconf 3.0.
797
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1338
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798
1339
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1340
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800
1341
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801
1342
    ;;
802
1343
 
805
1346
 
806
1347
if test -n "$ac_prev"; then
807
1348
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
809
 
   { (exit 1); exit 1; }; }
810
 
fi
811
 
 
812
 
# Be sure to have absolute paths.
813
 
for ac_var in exec_prefix prefix
814
 
do
815
 
  eval ac_val=$`echo $ac_var`
816
 
  case $ac_val in
817
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
 
   { (exit 1); exit 1; }; };;
820
 
  esac
821
 
done
822
 
 
823
 
# Be sure to have absolute paths.
824
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
 
              localstatedir libdir includedir oldincludedir infodir mandir
826
 
do
827
 
  eval ac_val=$`echo $ac_var`
828
 
  case $ac_val in
829
 
    [\\/$]* | ?:[\\/]* ) ;;
830
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
 
   { (exit 1); exit 1; }; };;
832
 
  esac
 
1349
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1350
   { (exit 1); exit 1; }; }
 
1351
fi
 
1352
 
 
1353
if test -n "$ac_unrecognized_opts"; then
 
1354
  case $enable_option_checking in
 
1355
    no) ;;
 
1356
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1357
   { (exit 1); exit 1; }; } ;;
 
1358
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1359
  esac
 
1360
fi
 
1361
 
 
1362
# Check all directory arguments for consistency.
 
1363
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1364
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1365
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1366
                libdir localedir mandir
 
1367
do
 
1368
  eval ac_val=\$$ac_var
 
1369
  # Remove trailing slashes.
 
1370
  case $ac_val in
 
1371
    */ )
 
1372
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1373
      eval $ac_var=\$ac_val;;
 
1374
  esac
 
1375
  # Be sure to have absolute directory names.
 
1376
  case $ac_val in
 
1377
    [\\/$]* | ?:[\\/]* )  continue;;
 
1378
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1379
  esac
 
1380
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1381
   { (exit 1); exit 1; }; }
833
1382
done
834
1383
 
835
1384
# There might be people who depend on the old broken behavior: `$host'
843
1392
if test "x$host_alias" != x; then
844
1393
  if test "x$build_alias" = x; then
845
1394
    cross_compiling=maybe
846
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1395
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847
1396
    If a cross compiler is detected then cross compile mode will be used." >&2
848
1397
  elif test "x$build_alias" != "x$host_alias"; then
849
1398
    cross_compiling=yes
856
1405
test "$silent" = yes && exec 6>/dev/null
857
1406
 
858
1407
 
 
1408
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1409
ac_ls_di=`ls -di .` &&
 
1410
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1411
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1412
   { (exit 1); exit 1; }; }
 
1413
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1414
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1415
   { (exit 1); exit 1; }; }
 
1416
 
 
1417
 
859
1418
# Find the source files, if location was not specified.
860
1419
if test -z "$srcdir"; then
861
1420
  ac_srcdir_defaulted=yes
862
 
  # Try the directory containing this script, then its parent.
863
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
864
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
 
         X"$0" : 'X\(//\)[^/]' \| \
866
 
         X"$0" : 'X\(//\)$' \| \
867
 
         X"$0" : 'X\(/\)' \| \
868
 
         .     : '\(.\)' 2>/dev/null ||
869
 
echo X"$0" |
870
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
 
          /^X\(\/\/\)$/{ s//\1/; q; }
873
 
          /^X\(\/\).*/{ s//\1/; q; }
874
 
          s/.*/./; q'`
 
1421
  # Try the directory containing this script, then the parent directory.
 
1422
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1423
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1424
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1425
         X"$as_myself" : 'X\(//\)$' \| \
 
1426
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1427
$as_echo X"$as_myself" |
 
1428
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1429
            s//\1/
 
1430
            q
 
1431
          }
 
1432
          /^X\(\/\/\)[^/].*/{
 
1433
            s//\1/
 
1434
            q
 
1435
          }
 
1436
          /^X\(\/\/\)$/{
 
1437
            s//\1/
 
1438
            q
 
1439
          }
 
1440
          /^X\(\/\).*/{
 
1441
            s//\1/
 
1442
            q
 
1443
          }
 
1444
          s/.*/./; q'`
875
1445
  srcdir=$ac_confdir
876
1446
  if test ! -r "$srcdir/$ac_unique_file"; then
877
1447
    srcdir=..
880
1450
  ac_srcdir_defaulted=no
881
1451
fi
882
1452
if test ! -r "$srcdir/$ac_unique_file"; then
883
 
  if test "$ac_srcdir_defaulted" = yes; then
884
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
 
   { (exit 1); exit 1; }; }
886
 
  else
887
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
 
   { (exit 1); exit 1; }; }
889
 
  fi
890
 
fi
891
 
(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
892
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
 
   { (exit 1); exit 1; }; }
894
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
 
ac_env_build_alias_set=${build_alias+set}
896
 
ac_env_build_alias_value=$build_alias
897
 
ac_cv_env_build_alias_set=${build_alias+set}
898
 
ac_cv_env_build_alias_value=$build_alias
899
 
ac_env_host_alias_set=${host_alias+set}
900
 
ac_env_host_alias_value=$host_alias
901
 
ac_cv_env_host_alias_set=${host_alias+set}
902
 
ac_cv_env_host_alias_value=$host_alias
903
 
ac_env_target_alias_set=${target_alias+set}
904
 
ac_env_target_alias_value=$target_alias
905
 
ac_cv_env_target_alias_set=${target_alias+set}
906
 
ac_cv_env_target_alias_value=$target_alias
907
 
ac_env_CC_set=${CC+set}
908
 
ac_env_CC_value=$CC
909
 
ac_cv_env_CC_set=${CC+set}
910
 
ac_cv_env_CC_value=$CC
911
 
ac_env_CFLAGS_set=${CFLAGS+set}
912
 
ac_env_CFLAGS_value=$CFLAGS
913
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
 
ac_cv_env_CFLAGS_value=$CFLAGS
915
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
 
ac_env_LDFLAGS_value=$LDFLAGS
917
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
 
ac_env_CPPFLAGS_value=$CPPFLAGS
921
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
 
ac_env_CPP_set=${CPP+set}
924
 
ac_env_CPP_value=$CPP
925
 
ac_cv_env_CPP_set=${CPP+set}
926
 
ac_cv_env_CPP_value=$CPP
927
 
ac_env_CXX_set=${CXX+set}
928
 
ac_env_CXX_value=$CXX
929
 
ac_cv_env_CXX_set=${CXX+set}
930
 
ac_cv_env_CXX_value=$CXX
931
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
 
ac_env_CXXFLAGS_value=$CXXFLAGS
933
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
 
ac_env_CXXCPP_set=${CXXCPP+set}
936
 
ac_env_CXXCPP_value=$CXXCPP
937
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
 
ac_cv_env_CXXCPP_value=$CXXCPP
939
 
ac_env_F77_set=${F77+set}
940
 
ac_env_F77_value=$F77
941
 
ac_cv_env_F77_set=${F77+set}
942
 
ac_cv_env_F77_value=$F77
943
 
ac_env_FFLAGS_set=${FFLAGS+set}
944
 
ac_env_FFLAGS_value=$FFLAGS
945
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
 
ac_cv_env_FFLAGS_value=$FFLAGS
947
 
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
948
 
ac_env_PKG_CONFIG_value=$PKG_CONFIG
949
 
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950
 
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
951
 
ac_env_LIBCDIO_CFLAGS_set=${LIBCDIO_CFLAGS+set}
952
 
ac_env_LIBCDIO_CFLAGS_value=$LIBCDIO_CFLAGS
953
 
ac_cv_env_LIBCDIO_CFLAGS_set=${LIBCDIO_CFLAGS+set}
954
 
ac_cv_env_LIBCDIO_CFLAGS_value=$LIBCDIO_CFLAGS
955
 
ac_env_LIBCDIO_LIBS_set=${LIBCDIO_LIBS+set}
956
 
ac_env_LIBCDIO_LIBS_value=$LIBCDIO_LIBS
957
 
ac_cv_env_LIBCDIO_LIBS_set=${LIBCDIO_LIBS+set}
958
 
ac_cv_env_LIBCDIO_LIBS_value=$LIBCDIO_LIBS
 
1453
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1454
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1455
   { (exit 1); exit 1; }; }
 
1456
fi
 
1457
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1458
ac_abs_confdir=`(
 
1459
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1460
   { (exit 1); exit 1; }; }
 
1461
        pwd)`
 
1462
# When building in place, set srcdir=.
 
1463
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1464
  srcdir=.
 
1465
fi
 
1466
# Remove unnecessary trailing slashes from srcdir.
 
1467
# Double slashes in file names in object file debugging info
 
1468
# mess up M-x gdb in Emacs.
 
1469
case $srcdir in
 
1470
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1471
esac
 
1472
for ac_var in $ac_precious_vars; do
 
1473
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1474
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1475
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1476
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1477
done
959
1478
 
960
1479
#
961
1480
# Report the --help message.
964
1483
  # Omit some internal or obsolete options to make the list less imposing.
965
1484
  # This message is too long to be a string in the A/UX 3.1 sh.
966
1485
  cat <<_ACEOF
967
 
\`configure' configures libcddb 1.2.1 to adapt to many kinds of systems.
 
1486
\`configure' configures libcddb 1.3.2 to adapt to many kinds of systems.
968
1487
 
969
1488
Usage: $0 [OPTION]... [VAR=VALUE]...
970
1489
 
984
1503
  -n, --no-create         do not create output files
985
1504
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
986
1505
 
987
 
_ACEOF
988
 
 
989
 
  cat <<_ACEOF
990
1506
Installation directories:
991
1507
  --prefix=PREFIX         install architecture-independent files in PREFIX
992
 
                          [$ac_default_prefix]
 
1508
                          [$ac_default_prefix]
993
1509
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
994
 
                          [PREFIX]
 
1510
                          [PREFIX]
995
1511
 
996
1512
By default, \`make install' will install all the files in
997
1513
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1001
1517
For better control, use the options below.
1002
1518
 
1003
1519
Fine tuning of the installation directories:
1004
 
  --bindir=DIR           user executables [EPREFIX/bin]
1005
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1006
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1007
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1008
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1009
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1010
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1011
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1012
 
  --includedir=DIR       C header files [PREFIX/include]
1013
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1014
 
  --infodir=DIR          info documentation [PREFIX/info]
1015
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1520
  --bindir=DIR            user executables [EPREFIX/bin]
 
1521
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1522
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1523
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1524
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1525
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1526
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1527
  --includedir=DIR        C header files [PREFIX/include]
 
1528
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1529
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1530
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1531
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1532
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1533
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1534
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libcddb]
 
1535
  --htmldir=DIR           html documentation [DOCDIR]
 
1536
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1537
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1538
  --psdir=DIR             ps documentation [DOCDIR]
1016
1539
_ACEOF
1017
1540
 
1018
1541
  cat <<\_ACEOF
1030
1553
 
1031
1554
if test -n "$ac_init_help"; then
1032
1555
  case $ac_init_help in
1033
 
     short | recursive ) echo "Configuration of libcddb 1.2.1:";;
 
1556
     short | recursive ) echo "Configuration of libcddb 1.3.2:";;
1034
1557
   esac
1035
1558
  cat <<\_ACEOF
1036
1559
 
1037
1560
Optional Features:
 
1561
  --disable-option-checking  ignore unrecognized --enable/--with options
1038
1562
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1039
1563
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1040
 
  --enable-maintainer-mode enable make rules and dependencies not useful
1041
 
                          (and sometimes confusing) to the casual installer
 
1564
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1565
                          (and sometimes confusing) to the casual installer
1042
1566
  --enable-loglevel=LVL   set default log level to one of debug, info, warn,
1043
1567
                          error, critical or none (default=warn)
1044
 
  --disable-dependency-tracking Speeds up one-time builds
1045
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
1046
 
  --enable-shared[=PKGS]
1047
 
                          build shared libraries [default=yes]
1048
 
  --enable-static[=PKGS]
1049
 
                          build static libraries [default=yes]
 
1568
  --disable-dependency-tracking  speeds up one-time build
 
1569
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1570
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1571
  --enable-static[=PKGS]  build static libraries [default=yes]
1050
1572
  --enable-fast-install[=PKGS]
1051
1573
                          optimize for fast installation [default=yes]
1052
1574
  --disable-libtool-lock  avoid locking (might break parallel builds)
1059
1581
                          example program (default = use if found)
1060
1582
  --without-iconv         do not include character set conversion support
1061
1583
                          using the iconv library (default = enabled if found)
1062
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063
1584
  --with-pic              try to use only PIC/non-PIC objects [default=use
1064
1585
                          both]
1065
 
  --with-tags[=TAGS]
1066
 
                          include additional configurations [automatic]
 
1586
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1067
1587
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1068
1588
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1069
1589
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1073
1593
  CFLAGS      C compiler flags
1074
1594
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1075
1595
              nonstandard directory <lib dir>
1076
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1077
 
              headers in a nonstandard directory <include dir>
 
1596
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1597
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1598
              you have headers in a nonstandard directory <include dir>
1078
1599
  CPP         C preprocessor
1079
 
  CXX         C++ compiler command
1080
 
  CXXFLAGS    C++ compiler flags
1081
 
  CXXCPP      C++ preprocessor
1082
 
  F77         Fortran 77 compiler command
1083
 
  FFLAGS      Fortran 77 compiler flags
1084
1600
  PKG_CONFIG  path to pkg-config utility
1085
1601
  LIBCDIO_CFLAGS
1086
1602
              C compiler flags for LIBCDIO, overriding pkg-config
1091
1607
it to find libraries and programs with nonstandard names/locations.
1092
1608
 
1093
1609
_ACEOF
 
1610
ac_status=$?
1094
1611
fi
1095
1612
 
1096
1613
if test "$ac_init_help" = "recursive"; then
1097
1614
  # If there are subdirs, report their specific --help.
1098
 
  ac_popdir=`pwd`
1099
1615
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1100
 
    test -d $ac_dir || continue
 
1616
    test -d "$ac_dir" ||
 
1617
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1618
      continue
1101
1619
    ac_builddir=.
1102
1620
 
1103
 
if test "$ac_dir" != .; then
1104
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1105
 
  # A "../" for each directory in $ac_dir_suffix.
1106
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1107
 
else
1108
 
  ac_dir_suffix= ac_top_builddir=
1109
 
fi
 
1621
case "$ac_dir" in
 
1622
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1623
*)
 
1624
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1625
  # A ".." for each directory in $ac_dir_suffix.
 
1626
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1627
  case $ac_top_builddir_sub in
 
1628
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1629
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1630
  esac ;;
 
1631
esac
 
1632
ac_abs_top_builddir=$ac_pwd
 
1633
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1634
# for backward compatibility:
 
1635
ac_top_builddir=$ac_top_build_prefix
1110
1636
 
1111
1637
case $srcdir in
1112
 
  .)  # No --srcdir option.  We are building in place.
 
1638
  .)  # We are building in place.
1113
1639
    ac_srcdir=.
1114
 
    if test -z "$ac_top_builddir"; then
1115
 
       ac_top_srcdir=.
1116
 
    else
1117
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1118
 
    fi ;;
1119
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1640
    ac_top_srcdir=$ac_top_builddir_sub
 
1641
    ac_abs_top_srcdir=$ac_pwd ;;
 
1642
  [\\/]* | ?:[\\/]* )  # Absolute name.
1120
1643
    ac_srcdir=$srcdir$ac_dir_suffix;
1121
 
    ac_top_srcdir=$srcdir ;;
1122
 
  *) # Relative path.
1123
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1124
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1125
 
esac
1126
 
 
1127
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1128
 
# the directories may not exist.
1129
 
case `pwd` in
1130
 
.) ac_abs_builddir="$ac_dir";;
1131
 
*)
1132
 
  case "$ac_dir" in
1133
 
  .) ac_abs_builddir=`pwd`;;
1134
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1135
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1136
 
  esac;;
1137
 
esac
1138
 
case $ac_abs_builddir in
1139
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1140
 
*)
1141
 
  case ${ac_top_builddir}. in
1142
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1143
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1144
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1145
 
  esac;;
1146
 
esac
1147
 
case $ac_abs_builddir in
1148
 
.) ac_abs_srcdir=$ac_srcdir;;
1149
 
*)
1150
 
  case $ac_srcdir in
1151
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1152
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1153
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1154
 
  esac;;
1155
 
esac
1156
 
case $ac_abs_builddir in
1157
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1158
 
*)
1159
 
  case $ac_top_srcdir in
1160
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1161
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1162
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1163
 
  esac;;
1164
 
esac
1165
 
 
1166
 
    cd $ac_dir
1167
 
    # Check for guested configure; otherwise get Cygnus style configure.
1168
 
    if test -f $ac_srcdir/configure.gnu; then
1169
 
      echo
1170
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1171
 
    elif test -f $ac_srcdir/configure; then
1172
 
      echo
1173
 
      $SHELL $ac_srcdir/configure  --help=recursive
1174
 
    elif test -f $ac_srcdir/configure.ac ||
1175
 
           test -f $ac_srcdir/configure.in; then
1176
 
      echo
1177
 
      $ac_configure --help
 
1644
    ac_top_srcdir=$srcdir
 
1645
    ac_abs_top_srcdir=$srcdir ;;
 
1646
  *) # Relative name.
 
1647
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1648
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1649
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1650
esac
 
1651
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1652
 
 
1653
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1654
    # Check for guested configure.
 
1655
    if test -f "$ac_srcdir/configure.gnu"; then
 
1656
      echo &&
 
1657
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1658
    elif test -f "$ac_srcdir/configure"; then
 
1659
      echo &&
 
1660
      $SHELL "$ac_srcdir/configure" --help=recursive
1178
1661
    else
1179
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1180
 
    fi
1181
 
    cd $ac_popdir
 
1662
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1663
    fi || ac_status=$?
 
1664
    cd "$ac_pwd" || { ac_status=$?; break; }
1182
1665
  done
1183
1666
fi
1184
1667
 
1185
 
test -n "$ac_init_help" && exit 0
 
1668
test -n "$ac_init_help" && exit $ac_status
1186
1669
if $ac_init_version; then
1187
1670
  cat <<\_ACEOF
1188
 
libcddb configure 1.2.1
1189
 
generated by GNU Autoconf 2.59
 
1671
libcddb configure 1.3.2
 
1672
generated by GNU Autoconf 2.63
1190
1673
 
1191
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1674
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1675
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1192
1676
This configure script is free software; the Free Software Foundation
1193
1677
gives unlimited permission to copy, distribute and modify it.
1194
1678
_ACEOF
1195
 
  exit 0
 
1679
  exit
1196
1680
fi
1197
 
exec 5>config.log
1198
 
cat >&5 <<_ACEOF
 
1681
cat >config.log <<_ACEOF
1199
1682
This file contains any messages produced by compilers while
1200
1683
running configure, to aid debugging if configure makes a mistake.
1201
1684
 
1202
 
It was created by libcddb $as_me 1.2.1, which was
1203
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1685
It was created by libcddb $as_me 1.3.2, which was
 
1686
generated by GNU Autoconf 2.63.  Invocation command line was
1204
1687
 
1205
1688
  $ $0 $@
1206
1689
 
1207
1690
_ACEOF
 
1691
exec 5>>config.log
1208
1692
{
1209
1693
cat <<_ASUNAME
1210
1694
## --------- ##
1223
1707
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1224
1708
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1225
1709
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1226
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1710
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1227
1711
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1228
1712
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1229
1713
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1235
1719
do
1236
1720
  IFS=$as_save_IFS
1237
1721
  test -z "$as_dir" && as_dir=.
1238
 
  echo "PATH: $as_dir"
 
1722
  $as_echo "PATH: $as_dir"
1239
1723
done
 
1724
IFS=$as_save_IFS
1240
1725
 
1241
1726
} >&5
1242
1727
 
1258
1743
ac_configure_args=
1259
1744
ac_configure_args0=
1260
1745
ac_configure_args1=
1261
 
ac_sep=
1262
1746
ac_must_keep_next=false
1263
1747
for ac_pass in 1 2
1264
1748
do
1269
1753
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270
1754
    | -silent | --silent | --silen | --sile | --sil)
1271
1755
      continue ;;
1272
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1756
    *\'*)
 
1757
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274
1758
    esac
1275
1759
    case $ac_pass in
1276
1760
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1291
1775
          -* ) ac_must_keep_next=true ;;
1292
1776
        esac
1293
1777
      fi
1294
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295
 
      # Get rid of the leading space.
1296
 
      ac_sep=" "
 
1778
      ac_configure_args="$ac_configure_args '$ac_arg'"
1297
1779
      ;;
1298
1780
    esac
1299
1781
  done
1304
1786
# When interrupted or exit'd, cleanup temporary files, and complete
1305
1787
# config.log.  We remove comments because anyway the quotes in there
1306
1788
# would cause problems or look ugly.
1307
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1308
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1789
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1790
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1309
1791
trap 'exit_status=$?
1310
1792
  # Save into config.log some information that might help in debugging.
1311
1793
  {
1318
1800
_ASBOX
1319
1801
    echo
1320
1802
    # The following way of writing the cache mishandles newlines in values,
1321
 
{
 
1803
(
 
1804
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1805
    eval ac_val=\$$ac_var
 
1806
    case $ac_val in #(
 
1807
    *${as_nl}*)
 
1808
      case $ac_var in #(
 
1809
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1810
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1811
      esac
 
1812
      case $ac_var in #(
 
1813
      _ | IFS | as_nl) ;; #(
 
1814
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1815
      *) $as_unset $ac_var ;;
 
1816
      esac ;;
 
1817
    esac
 
1818
  done
1322
1819
  (set) 2>&1 |
1323
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324
 
    *ac_space=\ *)
 
1820
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1821
    *${as_nl}ac_space=\ *)
1325
1822
      sed -n \
1326
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1328
 
      ;;
 
1823
        "s/'\''/'\''\\\\'\'''\''/g;
 
1824
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1825
      ;; #(
1329
1826
    *)
1330
 
      sed -n \
1331
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1827
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1332
1828
      ;;
1333
 
    esac;
1334
 
}
 
1829
    esac |
 
1830
    sort
 
1831
)
1335
1832
    echo
1336
1833
 
1337
1834
    cat <<\_ASBOX
1342
1839
    echo
1343
1840
    for ac_var in $ac_subst_vars
1344
1841
    do
1345
 
      eval ac_val=$`echo $ac_var`
1346
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1842
      eval ac_val=\$$ac_var
 
1843
      case $ac_val in
 
1844
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1845
      esac
 
1846
      $as_echo "$ac_var='\''$ac_val'\''"
1347
1847
    done | sort
1348
1848
    echo
1349
1849
 
1350
1850
    if test -n "$ac_subst_files"; then
1351
1851
      cat <<\_ASBOX
1352
 
## ------------- ##
1353
 
## Output files. ##
1354
 
## ------------- ##
 
1852
## ------------------- ##
 
1853
## File substitutions. ##
 
1854
## ------------------- ##
1355
1855
_ASBOX
1356
1856
      echo
1357
1857
      for ac_var in $ac_subst_files
1358
1858
      do
1359
 
        eval ac_val=$`echo $ac_var`
1360
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1859
        eval ac_val=\$$ac_var
 
1860
        case $ac_val in
 
1861
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1862
        esac
 
1863
        $as_echo "$ac_var='\''$ac_val'\''"
1361
1864
      done | sort
1362
1865
      echo
1363
1866
    fi
1369
1872
## ----------- ##
1370
1873
_ASBOX
1371
1874
      echo
1372
 
      sed "/^$/d" confdefs.h | sort
 
1875
      cat confdefs.h
1373
1876
      echo
1374
1877
    fi
1375
1878
    test "$ac_signal" != 0 &&
1376
 
      echo "$as_me: caught signal $ac_signal"
1377
 
    echo "$as_me: exit $exit_status"
 
1879
      $as_echo "$as_me: caught signal $ac_signal"
 
1880
    $as_echo "$as_me: exit $exit_status"
1378
1881
  } >&5
1379
 
  rm -f core *.core &&
1380
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1882
  rm -f core *.core core.conftest.* &&
 
1883
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1381
1884
    exit $exit_status
1382
 
     ' 0
 
1885
' 0
1383
1886
for ac_signal in 1 2 13 15; do
1384
1887
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1385
1888
done
1386
1889
ac_signal=0
1387
1890
 
1388
1891
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1389
 
rm -rf conftest* confdefs.h
1390
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391
 
echo >confdefs.h
 
1892
rm -f -r conftest* confdefs.h
1392
1893
 
1393
1894
# Predefined preprocessor variables.
1394
1895
 
1418
1919
 
1419
1920
 
1420
1921
# Let the site file select an alternate cache file if it wants to.
1421
 
# Prefer explicitly selected file to automatically selected ones.
1422
 
if test -z "$CONFIG_SITE"; then
1423
 
  if test "x$prefix" != xNONE; then
1424
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1425
 
  else
1426
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1427
 
  fi
 
1922
# Prefer an explicitly selected file to automatically selected ones.
 
1923
ac_site_file1=NONE
 
1924
ac_site_file2=NONE
 
1925
if test -n "$CONFIG_SITE"; then
 
1926
  ac_site_file1=$CONFIG_SITE
 
1927
elif test "x$prefix" != xNONE; then
 
1928
  ac_site_file1=$prefix/share/config.site
 
1929
  ac_site_file2=$prefix/etc/config.site
 
1930
else
 
1931
  ac_site_file1=$ac_default_prefix/share/config.site
 
1932
  ac_site_file2=$ac_default_prefix/etc/config.site
1428
1933
fi
1429
 
for ac_site_file in $CONFIG_SITE; do
 
1934
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1935
do
 
1936
  test "x$ac_site_file" = xNONE && continue
1430
1937
  if test -r "$ac_site_file"; then
1431
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1432
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1938
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1939
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1433
1940
    sed 's/^/| /' "$ac_site_file" >&5
1434
1941
    . "$ac_site_file"
1435
1942
  fi
1439
1946
  # Some versions of bash will fail to source /dev/null (special
1440
1947
  # files actually), so we avoid doing that.
1441
1948
  if test -f "$cache_file"; then
1442
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1443
 
echo "$as_me: loading cache $cache_file" >&6;}
 
1949
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1950
$as_echo "$as_me: loading cache $cache_file" >&6;}
1444
1951
    case $cache_file in
1445
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1446
 
      *)                      . ./$cache_file;;
 
1952
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1953
      *)                      . "./$cache_file";;
1447
1954
    esac
1448
1955
  fi
1449
1956
else
1450
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1451
 
echo "$as_me: creating cache $cache_file" >&6;}
 
1957
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1958
$as_echo "$as_me: creating cache $cache_file" >&6;}
1452
1959
  >$cache_file
1453
1960
fi
1454
1961
 
1455
1962
# Check that the precious variables saved in the cache have kept the same
1456
1963
# value.
1457
1964
ac_cache_corrupted=false
1458
 
for ac_var in `(set) 2>&1 |
1459
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1965
for ac_var in $ac_precious_vars; do
1460
1966
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1461
1967
  eval ac_new_set=\$ac_env_${ac_var}_set
1462
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1463
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1968
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1969
  eval ac_new_val=\$ac_env_${ac_var}_value
1464
1970
  case $ac_old_set,$ac_new_set in
1465
1971
    set,)
1466
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1467
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1972
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1973
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1468
1974
      ac_cache_corrupted=: ;;
1469
1975
    ,set)
1470
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1471
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1976
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1977
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1472
1978
      ac_cache_corrupted=: ;;
1473
1979
    ,);;
1474
1980
    *)
1475
1981
      if test "x$ac_old_val" != "x$ac_new_val"; then
1476
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1477
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1478
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1479
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1480
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1481
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1482
 
        ac_cache_corrupted=:
 
1982
        # differences in whitespace do not lead to failure.
 
1983
        ac_old_val_w=`echo x $ac_old_val`
 
1984
        ac_new_val_w=`echo x $ac_new_val`
 
1985
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
1986
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1987
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1988
          ac_cache_corrupted=:
 
1989
        else
 
1990
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
1991
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
1992
          eval $ac_var=\$ac_old_val
 
1993
        fi
 
1994
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
1995
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
1996
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
1997
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1483
1998
      fi;;
1484
1999
  esac
1485
2000
  # Pass precious variables to config.status.
1486
2001
  if test "$ac_new_set" = set; then
1487
2002
    case $ac_new_val in
1488
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1489
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2003
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1490
2004
    *) ac_arg=$ac_var=$ac_new_val ;;
1491
2005
    esac
1492
2006
    case " $ac_configure_args " in
1496
2010
  fi
1497
2011
done
1498
2012
if $ac_cache_corrupted; then
1499
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1500
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1501
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1502
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2013
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2014
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2015
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2016
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2017
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2018
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1503
2019
   { (exit 1); exit 1; }; }
1504
2020
fi
1505
2021
 
 
2022
 
 
2023
 
 
2024
 
 
2025
 
 
2026
 
 
2027
 
 
2028
 
 
2029
 
 
2030
 
 
2031
 
 
2032
 
 
2033
 
 
2034
 
 
2035
 
 
2036
 
 
2037
 
 
2038
 
 
2039
 
 
2040
 
 
2041
 
 
2042
 
 
2043
 
 
2044
 
 
2045
 
1506
2046
ac_ext=c
1507
2047
ac_cpp='$CPP $CPPFLAGS'
1508
2048
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511
2051
 
1512
2052
 
1513
2053
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
 
1537
 
 
1538
 
 
1539
 
          ac_config_headers="$ac_config_headers config.h"
1540
 
 
1541
 
                                                                                                    ac_config_files="$ac_config_files Makefile libcddb.pc include/Makefile include/cddb/Makefile include/cddb/cddb_config.h include/cddb/version.h lib/Makefile examples/Makefile tests/Makefile tests/settings.sh"
1542
 
 
1543
 
am__api_version="1.7"
 
2054
ac_config_headers="$ac_config_headers config.h"
 
2055
 
 
2056
ac_config_files="$ac_config_files Makefile libcddb.pc include/Makefile include/cddb/Makefile include/cddb/cddb_config.h include/cddb/version.h lib/Makefile examples/Makefile tests/Makefile tests/settings.sh"
 
2057
 
 
2058
am__api_version='1.10'
 
2059
 
1544
2060
ac_aux_dir=
1545
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546
 
  if test -f $ac_dir/install-sh; then
 
2061
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2062
  if test -f "$ac_dir/install-sh"; then
1547
2063
    ac_aux_dir=$ac_dir
1548
2064
    ac_install_sh="$ac_aux_dir/install-sh -c"
1549
2065
    break
1550
 
  elif test -f $ac_dir/install.sh; then
 
2066
  elif test -f "$ac_dir/install.sh"; then
1551
2067
    ac_aux_dir=$ac_dir
1552
2068
    ac_install_sh="$ac_aux_dir/install.sh -c"
1553
2069
    break
1554
 
  elif test -f $ac_dir/shtool; then
 
2070
  elif test -f "$ac_dir/shtool"; then
1555
2071
    ac_aux_dir=$ac_dir
1556
2072
    ac_install_sh="$ac_aux_dir/shtool install -c"
1557
2073
    break
1558
2074
  fi
1559
2075
done
1560
2076
if test -z "$ac_aux_dir"; then
1561
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2077
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2078
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1563
2079
   { (exit 1); exit 1; }; }
1564
2080
fi
1565
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2081
 
 
2082
# These three variables are undocumented and unsupported,
 
2083
# and are intended to be withdrawn in a future Autoconf release.
 
2084
# They can cause serious problems if a builder's source tree is in a directory
 
2085
# whose full name contains unusual characters.
 
2086
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2087
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2088
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2089
 
1568
2090
 
1569
2091
# Find a good install program.  We prefer a C program (faster),
1570
2092
# so one script is as good as another.  But avoid the broken or
1579
2101
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1580
2102
# OS/2's system install, which has a completely different semantic
1581
2103
# ./install, which can be erroneously created by make from ./install.sh.
1582
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1583
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2104
# Reject install programs that cannot install multiple files.
 
2105
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2106
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1584
2107
if test -z "$INSTALL"; then
1585
2108
if test "${ac_cv_path_install+set}" = set; then
1586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2109
  $as_echo_n "(cached) " >&6
1587
2110
else
1588
2111
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589
2112
for as_dir in $PATH
1602
2125
    # by default.
1603
2126
    for ac_prog in ginstall scoinst install; do
1604
2127
      for ac_exec_ext in '' $ac_executable_extensions; do
1605
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2128
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1606
2129
          if test $ac_prog = install &&
1607
2130
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608
2131
            # AIX install.  It has an incompatible calling convention.
1612
2135
            # program-specific install script used by HP pwplus--don't use.
1613
2136
            :
1614
2137
          else
1615
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1616
 
            break 3
 
2138
            rm -rf conftest.one conftest.two conftest.dir
 
2139
            echo one > conftest.one
 
2140
            echo two > conftest.two
 
2141
            mkdir conftest.dir
 
2142
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2143
              test -s conftest.one && test -s conftest.two &&
 
2144
              test -s conftest.dir/conftest.one &&
 
2145
              test -s conftest.dir/conftest.two
 
2146
            then
 
2147
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2148
              break 3
 
2149
            fi
1617
2150
          fi
1618
2151
        fi
1619
2152
      done
1620
2153
    done
1621
2154
    ;;
1622
2155
esac
 
2156
 
1623
2157
done
 
2158
IFS=$as_save_IFS
1624
2159
 
 
2160
rm -rf conftest.one conftest.two conftest.dir
1625
2161
 
1626
2162
fi
1627
2163
  if test "${ac_cv_path_install+set}" = set; then
1628
2164
    INSTALL=$ac_cv_path_install
1629
2165
  else
1630
 
    # As a last resort, use the slow shell script.  We don't cache a
1631
 
    # path for INSTALL within a source directory, because that will
 
2166
    # As a last resort, use the slow shell script.  Don't cache a
 
2167
    # value for INSTALL within a source directory, because that will
1632
2168
    # break other packages using the cache if that directory is
1633
 
    # removed, or if the path is relative.
 
2169
    # removed, or if the value is a relative name.
1634
2170
    INSTALL=$ac_install_sh
1635
2171
  fi
1636
2172
fi
1637
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1638
 
echo "${ECHO_T}$INSTALL" >&6
 
2173
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2174
$as_echo "$INSTALL" >&6; }
1639
2175
 
1640
2176
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641
2177
# It thinks the first close brace ends the variable substitution.
1645
2181
 
1646
2182
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1647
2183
 
1648
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1649
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2184
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2185
$as_echo_n "checking whether build environment is sane... " >&6; }
1650
2186
# Just in case
1651
2187
sleep 1
1652
2188
echo timestamp > conftest.file
1669
2205
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1670
2206
      # broken ls alias from the environment.  This has actually
1671
2207
      # happened.  Such a system could not be considered "sane".
1672
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2208
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1673
2209
alias in your environment" >&5
1674
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2210
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1675
2211
alias in your environment" >&2;}
1676
2212
   { (exit 1); exit 1; }; }
1677
2213
   fi
1682
2218
   # Ok.
1683
2219
   :
1684
2220
else
1685
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2221
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1686
2222
Check your system clock" >&5
1687
 
echo "$as_me: error: newly created file is older than distributed files!
 
2223
$as_echo "$as_me: error: newly created file is older than distributed files!
1688
2224
Check your system clock" >&2;}
1689
2225
   { (exit 1); exit 1; }; }
1690
2226
fi
1691
 
echo "$as_me:$LINENO: result: yes" >&5
1692
 
echo "${ECHO_T}yes" >&6
 
2227
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2228
$as_echo "yes" >&6; }
1693
2229
test "$program_prefix" != NONE &&
1694
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2230
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1695
2231
# Use a double $ so make ignores it.
1696
2232
test "$program_suffix" != NONE &&
1697
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1698
 
# Double any \ or $.  echo might interpret backslashes.
 
2233
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2234
# Double any \ or $.
1699
2235
# By default was `s,x,x', remove it if useless.
1700
 
cat <<\_ACEOF >conftest.sed
1701
 
s/[\\$]/&&/g;s/;s,x,x,$//
1702
 
_ACEOF
1703
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1704
 
rm conftest.sed
1705
 
 
 
2236
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2237
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1706
2238
 
1707
2239
# expand $ac_aux_dir to an absolute path
1708
2240
am_aux_dir=`cd $ac_aux_dir && pwd`
1713
2245
  am_missing_run="$MISSING --run "
1714
2246
else
1715
2247
  am_missing_run=
1716
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1717
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1718
 
fi
 
2248
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2249
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2250
fi
 
2251
 
 
2252
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2253
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2254
if test -z "$MKDIR_P"; then
 
2255
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2256
  $as_echo_n "(cached) " >&6
 
2257
else
 
2258
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2259
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2260
do
 
2261
  IFS=$as_save_IFS
 
2262
  test -z "$as_dir" && as_dir=.
 
2263
  for ac_prog in mkdir gmkdir; do
 
2264
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2265
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2266
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2267
             'mkdir (GNU coreutils) '* | \
 
2268
             'mkdir (coreutils) '* | \
 
2269
             'mkdir (fileutils) '4.1*)
 
2270
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2271
               break 3;;
 
2272
           esac
 
2273
         done
 
2274
       done
 
2275
done
 
2276
IFS=$as_save_IFS
 
2277
 
 
2278
fi
 
2279
 
 
2280
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2281
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2282
  else
 
2283
    # As a last resort, use the slow shell script.  Don't cache a
 
2284
    # value for MKDIR_P within a source directory, because that will
 
2285
    # break other packages using the cache if that directory is
 
2286
    # removed, or if the value is a relative name.
 
2287
    test -d ./--version && rmdir ./--version
 
2288
    MKDIR_P="$ac_install_sh -d"
 
2289
  fi
 
2290
fi
 
2291
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2292
$as_echo "$MKDIR_P" >&6; }
 
2293
 
 
2294
mkdir_p="$MKDIR_P"
 
2295
case $mkdir_p in
 
2296
  [\\/$]* | ?:[\\/]*) ;;
 
2297
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2298
esac
1719
2299
 
1720
2300
for ac_prog in gawk mawk nawk awk
1721
2301
do
1722
2302
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1723
2303
set dummy $ac_prog; ac_word=$2
1724
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1725
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2304
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2305
$as_echo_n "checking for $ac_word... " >&6; }
1726
2306
if test "${ac_cv_prog_AWK+set}" = set; then
1727
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2307
  $as_echo_n "(cached) " >&6
1728
2308
else
1729
2309
  if test -n "$AWK"; then
1730
2310
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1735
2315
  IFS=$as_save_IFS
1736
2316
  test -z "$as_dir" && as_dir=.
1737
2317
  for ac_exec_ext in '' $ac_executable_extensions; do
1738
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2318
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1739
2319
    ac_cv_prog_AWK="$ac_prog"
1740
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2320
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741
2321
    break 2
1742
2322
  fi
1743
2323
done
1744
2324
done
 
2325
IFS=$as_save_IFS
1745
2326
 
1746
2327
fi
1747
2328
fi
1748
2329
AWK=$ac_cv_prog_AWK
1749
2330
if test -n "$AWK"; then
1750
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1751
 
echo "${ECHO_T}$AWK" >&6
 
2331
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2332
$as_echo "$AWK" >&6; }
1752
2333
else
1753
 
  echo "$as_me:$LINENO: result: no" >&5
1754
 
echo "${ECHO_T}no" >&6
 
2334
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2335
$as_echo "no" >&6; }
1755
2336
fi
1756
2337
 
 
2338
 
1757
2339
  test -n "$AWK" && break
1758
2340
done
1759
2341
 
1760
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1761
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1762
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1763
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1764
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2342
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2343
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2344
set x ${MAKE-make}
 
2345
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2346
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2347
  $as_echo_n "(cached) " >&6
1765
2348
else
1766
2349
  cat >conftest.make <<\_ACEOF
 
2350
SHELL = /bin/sh
1767
2351
all:
1768
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2352
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1769
2353
_ACEOF
1770
2354
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1771
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1772
 
if test -n "$ac_maketemp"; then
1773
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1774
 
else
1775
 
  eval ac_cv_prog_make_${ac_make}_set=no
1776
 
fi
 
2355
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2356
  *@@@%%%=?*=@@@%%%*)
 
2357
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2358
  *)
 
2359
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2360
esac
1777
2361
rm -f conftest.make
1778
2362
fi
1779
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1780
 
  echo "$as_me:$LINENO: result: yes" >&5
1781
 
echo "${ECHO_T}yes" >&6
 
2363
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2364
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2365
$as_echo "yes" >&6; }
1782
2366
  SET_MAKE=
1783
2367
else
1784
 
  echo "$as_me:$LINENO: result: no" >&5
1785
 
echo "${ECHO_T}no" >&6
 
2368
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2369
$as_echo "no" >&6; }
1786
2370
  SET_MAKE="MAKE=${MAKE-make}"
1787
2371
fi
1788
2372
 
1795
2379
fi
1796
2380
rmdir .tst 2>/dev/null
1797
2381
 
1798
 
 # test to see if srcdir already configured
1799
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1800
 
   test -f $srcdir/config.status; then
1801
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1802
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2382
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2383
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2384
  # is not polluted with repeated "-I."
 
2385
  am__isrc=' -I$(srcdir)'
 
2386
  # test to see if srcdir already configured
 
2387
  if test -f $srcdir/config.status; then
 
2388
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2389
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1803
2390
   { (exit 1); exit 1; }; }
 
2391
  fi
1804
2392
fi
1805
2393
 
1806
2394
# test whether we have cygpath
1815
2403
 
1816
2404
# Define the identity of the package.
1817
2405
 PACKAGE='libcddb'
1818
 
 VERSION='1.2.1'
 
2406
 VERSION='1.3.2'
1819
2407
 
1820
2408
 
1821
2409
cat >>confdefs.h <<_ACEOF
1843
2431
 
1844
2432
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1845
2433
 
1846
 
 
1847
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1848
 
 
1849
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2434
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1850
2435
 
1851
2436
# Installed binaries are usually stripped using `strip' when the user
1852
2437
# run `make install-strip'.  However `strip' might not be the right
1856
2441
  if test -n "$ac_tool_prefix"; then
1857
2442
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1858
2443
set dummy ${ac_tool_prefix}strip; ac_word=$2
1859
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1860
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2444
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2445
$as_echo_n "checking for $ac_word... " >&6; }
1861
2446
if test "${ac_cv_prog_STRIP+set}" = set; then
1862
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2447
  $as_echo_n "(cached) " >&6
1863
2448
else
1864
2449
  if test -n "$STRIP"; then
1865
2450
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870
2455
  IFS=$as_save_IFS
1871
2456
  test -z "$as_dir" && as_dir=.
1872
2457
  for ac_exec_ext in '' $ac_executable_extensions; do
1873
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2458
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874
2459
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1875
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2460
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876
2461
    break 2
1877
2462
  fi
1878
2463
done
1879
2464
done
 
2465
IFS=$as_save_IFS
1880
2466
 
1881
2467
fi
1882
2468
fi
1883
2469
STRIP=$ac_cv_prog_STRIP
1884
2470
if test -n "$STRIP"; then
1885
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1886
 
echo "${ECHO_T}$STRIP" >&6
 
2471
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2472
$as_echo "$STRIP" >&6; }
1887
2473
else
1888
 
  echo "$as_me:$LINENO: result: no" >&5
1889
 
echo "${ECHO_T}no" >&6
 
2474
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2475
$as_echo "no" >&6; }
1890
2476
fi
 
2477
 
1891
2478
 
1892
2479
fi
1893
2480
if test -z "$ac_cv_prog_STRIP"; then
1894
2481
  ac_ct_STRIP=$STRIP
1895
2482
  # Extract the first word of "strip", so it can be a program name with args.
1896
2483
set dummy strip; ac_word=$2
1897
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1898
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2484
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2485
$as_echo_n "checking for $ac_word... " >&6; }
1899
2486
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2487
  $as_echo_n "(cached) " >&6
1901
2488
else
1902
2489
  if test -n "$ac_ct_STRIP"; then
1903
2490
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908
2495
  IFS=$as_save_IFS
1909
2496
  test -z "$as_dir" && as_dir=.
1910
2497
  for ac_exec_ext in '' $ac_executable_extensions; do
1911
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2498
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1912
2499
    ac_cv_prog_ac_ct_STRIP="strip"
1913
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2500
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914
2501
    break 2
1915
2502
  fi
1916
2503
done
1917
2504
done
 
2505
IFS=$as_save_IFS
1918
2506
 
1919
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1920
2507
fi
1921
2508
fi
1922
2509
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1923
2510
if test -n "$ac_ct_STRIP"; then
1924
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1925
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2511
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2512
$as_echo "$ac_ct_STRIP" >&6; }
1926
2513
else
1927
 
  echo "$as_me:$LINENO: result: no" >&5
1928
 
echo "${ECHO_T}no" >&6
 
2514
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2515
$as_echo "no" >&6; }
1929
2516
fi
1930
2517
 
1931
 
  STRIP=$ac_ct_STRIP
 
2518
  if test "x$ac_ct_STRIP" = x; then
 
2519
    STRIP=":"
 
2520
  else
 
2521
    case $cross_compiling:$ac_tool_warned in
 
2522
yes:)
 
2523
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2524
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2525
ac_tool_warned=yes ;;
 
2526
esac
 
2527
    STRIP=$ac_ct_STRIP
 
2528
  fi
1932
2529
else
1933
2530
  STRIP="$ac_cv_prog_STRIP"
1934
2531
fi
1935
2532
 
1936
2533
fi
1937
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2534
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1938
2535
 
1939
2536
# We need awk for the "check" target.  The system "awk" is bad on
1940
2537
# some platforms.
1941
 
 
1942
 
 
1943
 
 
1944
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1945
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1946
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
2538
# Always define AMTAR for backward compatibility.
 
2539
 
 
2540
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2541
 
 
2542
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2543
 
 
2544
 
 
2545
 
 
2546
 
 
2547
 
 
2548
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2549
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2550
    # Check whether --enable-maintainer-mode was given.
1947
2551
if test "${enable_maintainer_mode+set}" = set; then
1948
 
  enableval="$enable_maintainer_mode"
1949
 
  USE_MAINTAINER_MODE=$enableval
 
2552
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1950
2553
else
1951
2554
  USE_MAINTAINER_MODE=no
1952
 
fi;
1953
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1954
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1955
 
 
1956
 
 
1957
 
if test $USE_MAINTAINER_MODE = yes; then
 
2555
fi
 
2556
 
 
2557
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2558
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2559
   if test $USE_MAINTAINER_MODE = yes; then
1958
2560
  MAINTAINER_MODE_TRUE=
1959
2561
  MAINTAINER_MODE_FALSE='#'
1960
2562
else
1966
2568
 
1967
2569
 
1968
2570
 
1969
 
LIBCDDB_VERSION_NUM=121
1970
 
 
1971
 
 
1972
 
 
1973
 
 
1974
 
# Check whether --enable-loglevel or --disable-loglevel was given.
 
2571
LIBCDDB_VERSION_NUM=131
 
2572
 
 
2573
 
 
2574
 
 
2575
 
 
2576
# Check whether --enable-loglevel was given.
1975
2577
if test "${enable_loglevel+set}" = set; then
1976
 
  enableval="$enable_loglevel"
1977
 
  default_loglevel=$enableval
 
2578
  enableval=$enable_loglevel; default_loglevel=$enableval
1978
2579
else
1979
2580
  default_loglevel=$enableval
1980
 
fi;
 
2581
fi
 
2582
 
1981
2583
if test x$default_loglevel = xdebug; then
1982
2584
    default_loglevel="CDDB_LOG_DEBUG"
1983
2585
elif test x$default_loglevel = xinfo; then
1991
2593
elif test x$default_loglevel = xnone -o x$default_loglevel = xno; then
1992
2594
    default_loglevel="CDDB_LOG_NONE"
1993
2595
elif test x$default_loglevel != x; then
1994
 
    { echo "$as_me:$LINENO: WARNING: invalid loglevel, using default" >&5
1995
 
echo "$as_me: WARNING: invalid loglevel, using default" >&2;}
 
2596
    { $as_echo "$as_me:$LINENO: WARNING: invalid loglevel, using default" >&5
 
2597
$as_echo "$as_me: WARNING: invalid loglevel, using default" >&2;}
1996
2598
fi
1997
2599
 
1998
2600
if test x$default_loglevel != x; then
2004
2606
fi
2005
2607
 
2006
2608
 
2007
 
# Check whether --with-cdio or --without-cdio was given.
 
2609
# Check whether --with-cdio was given.
2008
2610
if test "${with_cdio+set}" = set; then
2009
 
  withval="$with_cdio"
2010
 
 
2011
 
fi;
2012
 
 
2013
 
# Check whether --with-iconv or --without-iconv was given.
 
2611
  withval=$with_cdio;
 
2612
fi
 
2613
 
 
2614
 
 
2615
# Check whether --with-iconv was given.
2014
2616
if test "${with_iconv+set}" = set; then
2015
 
  withval="$with_iconv"
 
2617
  withval=$with_iconv;
 
2618
fi
2016
2619
 
2017
 
fi;
2018
2620
 
2019
2621
# Make sure we can run config.sub.
2020
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2021
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2022
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2622
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2623
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2624
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023
2625
   { (exit 1); exit 1; }; }
2024
2626
 
2025
 
echo "$as_me:$LINENO: checking build system type" >&5
2026
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2627
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2628
$as_echo_n "checking build system type... " >&6; }
2027
2629
if test "${ac_cv_build+set}" = set; then
2028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2630
  $as_echo_n "(cached) " >&6
2029
2631
else
2030
 
  ac_cv_build_alias=$build_alias
2031
 
test -z "$ac_cv_build_alias" &&
2032
 
  ac_cv_build_alias=`$ac_config_guess`
2033
 
test -z "$ac_cv_build_alias" &&
2034
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2632
  ac_build_alias=$build_alias
 
2633
test "x$ac_build_alias" = x &&
 
2634
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2635
test "x$ac_build_alias" = x &&
 
2636
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2637
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036
2638
   { (exit 1); exit 1; }; }
2037
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2038
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2039
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2639
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2640
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2641
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040
2642
   { (exit 1); exit 1; }; }
2041
2643
 
2042
2644
fi
2043
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044
 
echo "${ECHO_T}$ac_cv_build" >&6
 
2645
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2646
$as_echo "$ac_cv_build" >&6; }
 
2647
case $ac_cv_build in
 
2648
*-*-*) ;;
 
2649
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2650
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
2651
   { (exit 1); exit 1; }; };;
 
2652
esac
2045
2653
build=$ac_cv_build
2046
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2047
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2048
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2049
 
 
2050
 
 
2051
 
echo "$as_me:$LINENO: checking host system type" >&5
2052
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2654
ac_save_IFS=$IFS; IFS='-'
 
2655
set x $ac_cv_build
 
2656
shift
 
2657
build_cpu=$1
 
2658
build_vendor=$2
 
2659
shift; shift
 
2660
# Remember, the first character of IFS is used to create $*,
 
2661
# except with old shells:
 
2662
build_os=$*
 
2663
IFS=$ac_save_IFS
 
2664
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2665
 
 
2666
 
 
2667
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2668
$as_echo_n "checking host system type... " >&6; }
2053
2669
if test "${ac_cv_host+set}" = set; then
2054
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2055
 
else
2056
 
  ac_cv_host_alias=$host_alias
2057
 
test -z "$ac_cv_host_alias" &&
2058
 
  ac_cv_host_alias=$ac_cv_build_alias
2059
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2060
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2061
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2670
  $as_echo_n "(cached) " >&6
 
2671
else
 
2672
  if test "x$host_alias" = x; then
 
2673
  ac_cv_host=$ac_cv_build
 
2674
else
 
2675
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2676
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2677
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2062
2678
   { (exit 1); exit 1; }; }
 
2679
fi
2063
2680
 
2064
2681
fi
2065
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2066
 
echo "${ECHO_T}$ac_cv_host" >&6
 
2682
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2683
$as_echo "$ac_cv_host" >&6; }
 
2684
case $ac_cv_host in
 
2685
*-*-*) ;;
 
2686
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2687
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
2688
   { (exit 1); exit 1; }; };;
 
2689
esac
2067
2690
host=$ac_cv_host
2068
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2069
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2070
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2691
ac_save_IFS=$IFS; IFS='-'
 
2692
set x $ac_cv_host
 
2693
shift
 
2694
host_cpu=$1
 
2695
host_vendor=$2
 
2696
shift; shift
 
2697
# Remember, the first character of IFS is used to create $*,
 
2698
# except with old shells:
 
2699
host_os=$*
 
2700
IFS=$ac_save_IFS
 
2701
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2071
2702
 
2072
2703
 
2073
2704
case $host in
2090
2721
_ACEOF
2091
2722
 
2092
2723
        ;;
 
2724
    *haiku*)
 
2725
 
 
2726
cat >>confdefs.h <<\_ACEOF
 
2727
#define HAIKU 1
 
2728
_ACEOF
 
2729
 
 
2730
 
 
2731
cat >>confdefs.h <<\_ACEOF
 
2732
#define CDDB_NEED_UNISTD_H 1
 
2733
_ACEOF
 
2734
 
 
2735
 
 
2736
cat >>confdefs.h <<\_ACEOF
 
2737
#define CDDB_NEED_SYS_SOCKET_H 1
 
2738
_ACEOF
 
2739
 
 
2740
        ;;
2093
2741
esac
2094
2742
 
2095
2743
for ac_prog in gawk mawk nawk awk
2096
2744
do
2097
2745
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2098
2746
set dummy $ac_prog; ac_word=$2
2099
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2100
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2747
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2748
$as_echo_n "checking for $ac_word... " >&6; }
2101
2749
if test "${ac_cv_prog_AWK+set}" = set; then
2102
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2750
  $as_echo_n "(cached) " >&6
2103
2751
else
2104
2752
  if test -n "$AWK"; then
2105
2753
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2110
2758
  IFS=$as_save_IFS
2111
2759
  test -z "$as_dir" && as_dir=.
2112
2760
  for ac_exec_ext in '' $ac_executable_extensions; do
2113
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2114
2762
    ac_cv_prog_AWK="$ac_prog"
2115
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2763
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116
2764
    break 2
2117
2765
  fi
2118
2766
done
2119
2767
done
 
2768
IFS=$as_save_IFS
2120
2769
 
2121
2770
fi
2122
2771
fi
2123
2772
AWK=$ac_cv_prog_AWK
2124
2773
if test -n "$AWK"; then
2125
 
  echo "$as_me:$LINENO: result: $AWK" >&5
2126
 
echo "${ECHO_T}$AWK" >&6
 
2774
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2775
$as_echo "$AWK" >&6; }
2127
2776
else
2128
 
  echo "$as_me:$LINENO: result: no" >&5
2129
 
echo "${ECHO_T}no" >&6
 
2777
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2778
$as_echo "no" >&6; }
2130
2779
fi
2131
2780
 
 
2781
 
2132
2782
  test -n "$AWK" && break
2133
2783
done
2134
2784
 
2140
2790
if test -n "$ac_tool_prefix"; then
2141
2791
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142
2792
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2144
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2793
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2794
$as_echo_n "checking for $ac_word... " >&6; }
2145
2795
if test "${ac_cv_prog_CC+set}" = set; then
2146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2796
  $as_echo_n "(cached) " >&6
2147
2797
else
2148
2798
  if test -n "$CC"; then
2149
2799
  ac_cv_prog_CC="$CC" # Let the user override the test.
2154
2804
  IFS=$as_save_IFS
2155
2805
  test -z "$as_dir" && as_dir=.
2156
2806
  for ac_exec_ext in '' $ac_executable_extensions; do
2157
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2807
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158
2808
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2809
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160
2810
    break 2
2161
2811
  fi
2162
2812
done
2163
2813
done
 
2814
IFS=$as_save_IFS
2164
2815
 
2165
2816
fi
2166
2817
fi
2167
2818
CC=$ac_cv_prog_CC
2168
2819
if test -n "$CC"; then
2169
 
  echo "$as_me:$LINENO: result: $CC" >&5
2170
 
echo "${ECHO_T}$CC" >&6
 
2820
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2821
$as_echo "$CC" >&6; }
2171
2822
else
2172
 
  echo "$as_me:$LINENO: result: no" >&5
2173
 
echo "${ECHO_T}no" >&6
 
2823
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2824
$as_echo "no" >&6; }
2174
2825
fi
 
2826
 
2175
2827
 
2176
2828
fi
2177
2829
if test -z "$ac_cv_prog_CC"; then
2178
2830
  ac_ct_CC=$CC
2179
2831
  # Extract the first word of "gcc", so it can be a program name with args.
2180
2832
set dummy gcc; ac_word=$2
2181
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2182
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2833
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2834
$as_echo_n "checking for $ac_word... " >&6; }
2183
2835
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2836
  $as_echo_n "(cached) " >&6
2185
2837
else
2186
2838
  if test -n "$ac_ct_CC"; then
2187
2839
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192
2844
  IFS=$as_save_IFS
2193
2845
  test -z "$as_dir" && as_dir=.
2194
2846
  for ac_exec_ext in '' $ac_executable_extensions; do
2195
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2847
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196
2848
    ac_cv_prog_ac_ct_CC="gcc"
2197
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2849
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198
2850
    break 2
2199
2851
  fi
2200
2852
done
2201
2853
done
 
2854
IFS=$as_save_IFS
2202
2855
 
2203
2856
fi
2204
2857
fi
2205
2858
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206
2859
if test -n "$ac_ct_CC"; then
2207
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2860
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2861
$as_echo "$ac_ct_CC" >&6; }
2209
2862
else
2210
 
  echo "$as_me:$LINENO: result: no" >&5
2211
 
echo "${ECHO_T}no" >&6
 
2863
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2864
$as_echo "no" >&6; }
2212
2865
fi
2213
2866
 
2214
 
  CC=$ac_ct_CC
 
2867
  if test "x$ac_ct_CC" = x; then
 
2868
    CC=""
 
2869
  else
 
2870
    case $cross_compiling:$ac_tool_warned in
 
2871
yes:)
 
2872
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2873
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2874
ac_tool_warned=yes ;;
 
2875
esac
 
2876
    CC=$ac_ct_CC
 
2877
  fi
2215
2878
else
2216
2879
  CC="$ac_cv_prog_CC"
2217
2880
fi
2218
2881
 
2219
2882
if test -z "$CC"; then
2220
 
  if test -n "$ac_tool_prefix"; then
2221
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2883
          if test -n "$ac_tool_prefix"; then
 
2884
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222
2885
set dummy ${ac_tool_prefix}cc; ac_word=$2
2223
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2224
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2886
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2887
$as_echo_n "checking for $ac_word... " >&6; }
2225
2888
if test "${ac_cv_prog_CC+set}" = set; then
2226
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2889
  $as_echo_n "(cached) " >&6
2227
2890
else
2228
2891
  if test -n "$CC"; then
2229
2892
  ac_cv_prog_CC="$CC" # Let the user override the test.
2234
2897
  IFS=$as_save_IFS
2235
2898
  test -z "$as_dir" && as_dir=.
2236
2899
  for ac_exec_ext in '' $ac_executable_extensions; do
2237
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2900
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238
2901
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2239
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2902
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240
2903
    break 2
2241
2904
  fi
2242
2905
done
2243
2906
done
 
2907
IFS=$as_save_IFS
2244
2908
 
2245
2909
fi
2246
2910
fi
2247
2911
CC=$ac_cv_prog_CC
2248
2912
if test -n "$CC"; then
2249
 
  echo "$as_me:$LINENO: result: $CC" >&5
2250
 
echo "${ECHO_T}$CC" >&6
2251
 
else
2252
 
  echo "$as_me:$LINENO: result: no" >&5
2253
 
echo "${ECHO_T}no" >&6
2254
 
fi
2255
 
 
2256
 
fi
2257
 
if test -z "$ac_cv_prog_CC"; then
2258
 
  ac_ct_CC=$CC
2259
 
  # Extract the first word of "cc", so it can be a program name with args.
2260
 
set dummy cc; ac_word=$2
2261
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2262
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2265
 
else
2266
 
  if test -n "$ac_ct_CC"; then
2267
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268
 
else
2269
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270
 
for as_dir in $PATH
2271
 
do
2272
 
  IFS=$as_save_IFS
2273
 
  test -z "$as_dir" && as_dir=.
2274
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2275
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276
 
    ac_cv_prog_ac_ct_CC="cc"
2277
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278
 
    break 2
 
2913
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2914
$as_echo "$CC" >&6; }
 
2915
else
 
2916
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2917
$as_echo "no" >&6; }
 
2918
fi
 
2919
 
 
2920
 
2279
2921
  fi
2280
 
done
2281
 
done
2282
 
 
2283
 
fi
2284
 
fi
2285
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286
 
if test -n "$ac_ct_CC"; then
2287
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288
 
echo "${ECHO_T}$ac_ct_CC" >&6
2289
 
else
2290
 
  echo "$as_me:$LINENO: result: no" >&5
2291
 
echo "${ECHO_T}no" >&6
2292
 
fi
2293
 
 
2294
 
  CC=$ac_ct_CC
2295
 
else
2296
 
  CC="$ac_cv_prog_CC"
2297
 
fi
2298
 
 
2299
2922
fi
2300
2923
if test -z "$CC"; then
2301
2924
  # Extract the first word of "cc", so it can be a program name with args.
2302
2925
set dummy cc; ac_word=$2
2303
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2304
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2926
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2927
$as_echo_n "checking for $ac_word... " >&6; }
2305
2928
if test "${ac_cv_prog_CC+set}" = set; then
2306
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2929
  $as_echo_n "(cached) " >&6
2307
2930
else
2308
2931
  if test -n "$CC"; then
2309
2932
  ac_cv_prog_CC="$CC" # Let the user override the test.
2315
2938
  IFS=$as_save_IFS
2316
2939
  test -z "$as_dir" && as_dir=.
2317
2940
  for ac_exec_ext in '' $ac_executable_extensions; do
2318
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2941
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319
2942
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2320
2943
       ac_prog_rejected=yes
2321
2944
       continue
2322
2945
     fi
2323
2946
    ac_cv_prog_CC="cc"
2324
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2947
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325
2948
    break 2
2326
2949
  fi
2327
2950
done
2328
2951
done
 
2952
IFS=$as_save_IFS
2329
2953
 
2330
2954
if test $ac_prog_rejected = yes; then
2331
2955
  # We found a bogon in the path, so make sure we never use it.
2343
2967
fi
2344
2968
CC=$ac_cv_prog_CC
2345
2969
if test -n "$CC"; then
2346
 
  echo "$as_me:$LINENO: result: $CC" >&5
2347
 
echo "${ECHO_T}$CC" >&6
 
2970
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2971
$as_echo "$CC" >&6; }
2348
2972
else
2349
 
  echo "$as_me:$LINENO: result: no" >&5
2350
 
echo "${ECHO_T}no" >&6
 
2973
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2974
$as_echo "no" >&6; }
2351
2975
fi
 
2976
 
2352
2977
 
2353
2978
fi
2354
2979
if test -z "$CC"; then
2355
2980
  if test -n "$ac_tool_prefix"; then
2356
 
  for ac_prog in cl
 
2981
  for ac_prog in cl.exe
2357
2982
  do
2358
2983
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359
2984
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2361
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2985
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2986
$as_echo_n "checking for $ac_word... " >&6; }
2362
2987
if test "${ac_cv_prog_CC+set}" = set; then
2363
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2988
  $as_echo_n "(cached) " >&6
2364
2989
else
2365
2990
  if test -n "$CC"; then
2366
2991
  ac_cv_prog_CC="$CC" # Let the user override the test.
2371
2996
  IFS=$as_save_IFS
2372
2997
  test -z "$as_dir" && as_dir=.
2373
2998
  for ac_exec_ext in '' $ac_executable_extensions; do
2374
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2999
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375
3000
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2376
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3001
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377
3002
    break 2
2378
3003
  fi
2379
3004
done
2380
3005
done
 
3006
IFS=$as_save_IFS
2381
3007
 
2382
3008
fi
2383
3009
fi
2384
3010
CC=$ac_cv_prog_CC
2385
3011
if test -n "$CC"; then
2386
 
  echo "$as_me:$LINENO: result: $CC" >&5
2387
 
echo "${ECHO_T}$CC" >&6
 
3012
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3013
$as_echo "$CC" >&6; }
2388
3014
else
2389
 
  echo "$as_me:$LINENO: result: no" >&5
2390
 
echo "${ECHO_T}no" >&6
 
3015
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3016
$as_echo "no" >&6; }
2391
3017
fi
2392
3018
 
 
3019
 
2393
3020
    test -n "$CC" && break
2394
3021
  done
2395
3022
fi
2396
3023
if test -z "$CC"; then
2397
3024
  ac_ct_CC=$CC
2398
 
  for ac_prog in cl
 
3025
  for ac_prog in cl.exe
2399
3026
do
2400
3027
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2401
3028
set dummy $ac_prog; ac_word=$2
2402
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2403
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3029
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3030
$as_echo_n "checking for $ac_word... " >&6; }
2404
3031
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3032
  $as_echo_n "(cached) " >&6
2406
3033
else
2407
3034
  if test -n "$ac_ct_CC"; then
2408
3035
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413
3040
  IFS=$as_save_IFS
2414
3041
  test -z "$as_dir" && as_dir=.
2415
3042
  for ac_exec_ext in '' $ac_executable_extensions; do
2416
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3043
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417
3044
    ac_cv_prog_ac_ct_CC="$ac_prog"
2418
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3045
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419
3046
    break 2
2420
3047
  fi
2421
3048
done
2422
3049
done
 
3050
IFS=$as_save_IFS
2423
3051
 
2424
3052
fi
2425
3053
fi
2426
3054
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427
3055
if test -n "$ac_ct_CC"; then
2428
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
3056
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3057
$as_echo "$ac_ct_CC" >&6; }
2430
3058
else
2431
 
  echo "$as_me:$LINENO: result: no" >&5
2432
 
echo "${ECHO_T}no" >&6
 
3059
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3060
$as_echo "no" >&6; }
2433
3061
fi
2434
3062
 
 
3063
 
2435
3064
  test -n "$ac_ct_CC" && break
2436
3065
done
2437
3066
 
2438
 
  CC=$ac_ct_CC
2439
 
fi
2440
 
 
2441
 
fi
2442
 
 
2443
 
 
2444
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3067
  if test "x$ac_ct_CC" = x; then
 
3068
    CC=""
 
3069
  else
 
3070
    case $cross_compiling:$ac_tool_warned in
 
3071
yes:)
 
3072
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3073
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3074
ac_tool_warned=yes ;;
 
3075
esac
 
3076
    CC=$ac_ct_CC
 
3077
  fi
 
3078
fi
 
3079
 
 
3080
fi
 
3081
 
 
3082
 
 
3083
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3084
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3085
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2445
3086
See \`config.log' for more details." >&5
2446
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3087
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2447
3088
See \`config.log' for more details." >&2;}
2448
 
   { (exit 1); exit 1; }; }
 
3089
   { (exit 1); exit 1; }; }; }
2449
3090
 
2450
3091
# Provide some information about the compiler.
2451
 
echo "$as_me:$LINENO:" \
2452
 
     "checking for C compiler version" >&5
2453
 
ac_compiler=`set X $ac_compile; echo $2`
2454
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2455
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2456
 
  ac_status=$?
2457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458
 
  (exit $ac_status); }
2459
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2460
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2461
 
  ac_status=$?
2462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463
 
  (exit $ac_status); }
2464
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2465
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2466
 
  ac_status=$?
2467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3092
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3093
set X $ac_compile
 
3094
ac_compiler=$2
 
3095
{ (ac_try="$ac_compiler --version >&5"
 
3096
case "(($ac_try" in
 
3097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3098
  *) ac_try_echo=$ac_try;;
 
3099
esac
 
3100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3101
$as_echo "$ac_try_echo") >&5
 
3102
  (eval "$ac_compiler --version >&5") 2>&5
 
3103
  ac_status=$?
 
3104
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3105
  (exit $ac_status); }
 
3106
{ (ac_try="$ac_compiler -v >&5"
 
3107
case "(($ac_try" in
 
3108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3109
  *) ac_try_echo=$ac_try;;
 
3110
esac
 
3111
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3112
$as_echo "$ac_try_echo") >&5
 
3113
  (eval "$ac_compiler -v >&5") 2>&5
 
3114
  ac_status=$?
 
3115
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3116
  (exit $ac_status); }
 
3117
{ (ac_try="$ac_compiler -V >&5"
 
3118
case "(($ac_try" in
 
3119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3120
  *) ac_try_echo=$ac_try;;
 
3121
esac
 
3122
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3123
$as_echo "$ac_try_echo") >&5
 
3124
  (eval "$ac_compiler -V >&5") 2>&5
 
3125
  ac_status=$?
 
3126
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
3127
  (exit $ac_status); }
2469
3128
 
2470
3129
cat >conftest.$ac_ext <<_ACEOF
2483
3142
}
2484
3143
_ACEOF
2485
3144
ac_clean_files_save=$ac_clean_files
2486
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3145
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2487
3146
# Try to create an executable without -o first, disregard a.out.
2488
3147
# It will help us diagnose broken compilers, and finding out an intuition
2489
3148
# of exeext.
2490
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494
 
  (eval $ac_link_default) 2>&5
 
3149
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3150
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3151
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3152
 
 
3153
# The possible output files:
 
3154
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3155
 
 
3156
ac_rmfiles=
 
3157
for ac_file in $ac_files
 
3158
do
 
3159
  case $ac_file in
 
3160
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3161
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3162
  esac
 
3163
done
 
3164
rm -f $ac_rmfiles
 
3165
 
 
3166
if { (ac_try="$ac_link_default"
 
3167
case "(($ac_try" in
 
3168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3169
  *) ac_try_echo=$ac_try;;
 
3170
esac
 
3171
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3172
$as_echo "$ac_try_echo") >&5
 
3173
  (eval "$ac_link_default") 2>&5
2495
3174
  ac_status=$?
2496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3175
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
3176
  (exit $ac_status); }; then
2498
 
  # Find the output, starting from the most likely.  This scheme is
2499
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500
 
# resort.
2501
 
 
2502
 
# Be careful to initialize this variable, since it used to be cached.
2503
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2504
 
ac_cv_exeext=
2505
 
# b.out is created by i960 compilers.
2506
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3177
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3178
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3179
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3180
# so that the user can short-circuit this test for compilers unknown to
 
3181
# Autoconf.
 
3182
for ac_file in $ac_files ''
2507
3183
do
2508
3184
  test -f "$ac_file" || continue
2509
3185
  case $ac_file in
2510
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2511
 
        ;;
2512
 
    conftest.$ac_ext )
2513
 
        # This is the source file.
 
3186
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2514
3187
        ;;
2515
3188
    [ab].out )
2516
3189
        # We found the default executable, but exeext='' is most
2517
3190
        # certainly right.
2518
3191
        break;;
2519
3192
    *.* )
2520
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2522
 
        # but it would be cool to find out if it's true.  Does anybody
2523
 
        # maintain Libtool? --akim.
2524
 
        export ac_cv_exeext
 
3193
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3194
        then :; else
 
3195
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3196
        fi
 
3197
        # We set ac_cv_exeext here because the later test for it is not
 
3198
        # safe: cross compilers may not add the suffix if given an `-o'
 
3199
        # argument, so we may need to know it at that point already.
 
3200
        # Even if this section looks crufty: it has the advantage of
 
3201
        # actually working.
2525
3202
        break;;
2526
3203
    * )
2527
3204
        break;;
2528
3205
  esac
2529
3206
done
 
3207
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3208
 
2530
3209
else
2531
 
  echo "$as_me: failed program was:" >&5
 
3210
  ac_file=''
 
3211
fi
 
3212
 
 
3213
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3214
$as_echo "$ac_file" >&6; }
 
3215
if test -z "$ac_file"; then
 
3216
  $as_echo "$as_me: failed program was:" >&5
2532
3217
sed 's/^/| /' conftest.$ac_ext >&5
2533
3218
 
2534
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3219
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3220
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3221
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2535
3222
See \`config.log' for more details." >&5
2536
 
echo "$as_me: error: C compiler cannot create executables
 
3223
$as_echo "$as_me: error: C compiler cannot create executables
2537
3224
See \`config.log' for more details." >&2;}
2538
 
   { (exit 77); exit 77; }; }
 
3225
   { (exit 77); exit 77; }; }; }
2539
3226
fi
2540
3227
 
2541
3228
ac_exeext=$ac_cv_exeext
2542
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2543
 
echo "${ECHO_T}$ac_file" >&6
2544
3229
 
2545
 
# Check the compiler produces executables we can run.  If not, either
 
3230
# Check that the compiler produces executables we can run.  If not, either
2546
3231
# the compiler is broken, or we cross compile.
2547
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2548
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3232
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3233
$as_echo_n "checking whether the C compiler works... " >&6; }
2549
3234
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2550
3235
# If not cross compiling, check that we can run a simple program.
2551
3236
if test "$cross_compiling" != yes; then
2552
3237
  if { ac_try='./$ac_file'
2553
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554
 
  (eval $ac_try) 2>&5
 
3238
  { (case "(($ac_try" in
 
3239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3240
  *) ac_try_echo=$ac_try;;
 
3241
esac
 
3242
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3243
$as_echo "$ac_try_echo") >&5
 
3244
  (eval "$ac_try") 2>&5
2555
3245
  ac_status=$?
2556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3246
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557
3247
  (exit $ac_status); }; }; then
2558
3248
    cross_compiling=no
2559
3249
  else
2560
3250
    if test "$cross_compiling" = maybe; then
2561
3251
        cross_compiling=yes
2562
3252
    else
2563
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3253
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3254
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3255
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564
3256
If you meant to cross compile, use \`--host'.
2565
3257
See \`config.log' for more details." >&5
2566
 
echo "$as_me: error: cannot run C compiled programs.
 
3258
$as_echo "$as_me: error: cannot run C compiled programs.
2567
3259
If you meant to cross compile, use \`--host'.
2568
3260
See \`config.log' for more details." >&2;}
2569
 
   { (exit 1); exit 1; }; }
 
3261
   { (exit 1); exit 1; }; }; }
2570
3262
    fi
2571
3263
  fi
2572
3264
fi
2573
 
echo "$as_me:$LINENO: result: yes" >&5
2574
 
echo "${ECHO_T}yes" >&6
 
3265
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3266
$as_echo "yes" >&6; }
2575
3267
 
2576
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3268
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2577
3269
ac_clean_files=$ac_clean_files_save
2578
 
# Check the compiler produces executables we can run.  If not, either
 
3270
# Check that the compiler produces executables we can run.  If not, either
2579
3271
# the compiler is broken, or we cross compile.
2580
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2582
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583
 
echo "${ECHO_T}$cross_compiling" >&6
 
3272
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3273
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3274
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3275
$as_echo "$cross_compiling" >&6; }
2584
3276
 
2585
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2587
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588
 
  (eval $ac_link) 2>&5
 
3277
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3278
$as_echo_n "checking for suffix of executables... " >&6; }
 
3279
if { (ac_try="$ac_link"
 
3280
case "(($ac_try" in
 
3281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3282
  *) ac_try_echo=$ac_try;;
 
3283
esac
 
3284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3285
$as_echo "$ac_try_echo") >&5
 
3286
  (eval "$ac_link") 2>&5
2589
3287
  ac_status=$?
2590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3288
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591
3289
  (exit $ac_status); }; then
2592
3290
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2593
3291
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2596
3294
for ac_file in conftest.exe conftest conftest.*; do
2597
3295
  test -f "$ac_file" || continue
2598
3296
  case $ac_file in
2599
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3297
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2600
3298
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601
 
          export ac_cv_exeext
2602
3299
          break;;
2603
3300
    * ) break;;
2604
3301
  esac
2605
3302
done
2606
3303
else
2607
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3304
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3305
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3306
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2608
3307
See \`config.log' for more details." >&5
2609
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3308
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2610
3309
See \`config.log' for more details." >&2;}
2611
 
   { (exit 1); exit 1; }; }
 
3310
   { (exit 1); exit 1; }; }; }
2612
3311
fi
2613
3312
 
2614
3313
rm -f conftest$ac_cv_exeext
2615
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2616
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3314
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3315
$as_echo "$ac_cv_exeext" >&6; }
2617
3316
 
2618
3317
rm -f conftest.$ac_ext
2619
3318
EXEEXT=$ac_cv_exeext
2620
3319
ac_exeext=$EXEEXT
2621
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2622
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3320
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3321
$as_echo_n "checking for suffix of object files... " >&6; }
2623
3322
if test "${ac_cv_objext+set}" = set; then
2624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3323
  $as_echo_n "(cached) " >&6
2625
3324
else
2626
3325
  cat >conftest.$ac_ext <<_ACEOF
2627
3326
/* confdefs.h.  */
2639
3338
}
2640
3339
_ACEOF
2641
3340
rm -f conftest.o conftest.obj
2642
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643
 
  (eval $ac_compile) 2>&5
 
3341
if { (ac_try="$ac_compile"
 
3342
case "(($ac_try" in
 
3343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3344
  *) ac_try_echo=$ac_try;;
 
3345
esac
 
3346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3347
$as_echo "$ac_try_echo") >&5
 
3348
  (eval "$ac_compile") 2>&5
2644
3349
  ac_status=$?
2645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3350
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646
3351
  (exit $ac_status); }; then
2647
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3352
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3353
  test -f "$ac_file" || continue;
2648
3354
  case $ac_file in
2649
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3355
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2650
3356
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2651
3357
       break;;
2652
3358
  esac
2653
3359
done
2654
3360
else
2655
 
  echo "$as_me: failed program was:" >&5
 
3361
  $as_echo "$as_me: failed program was:" >&5
2656
3362
sed 's/^/| /' conftest.$ac_ext >&5
2657
3363
 
2658
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3364
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3365
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3366
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2659
3367
See \`config.log' for more details." >&5
2660
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3368
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2661
3369
See \`config.log' for more details." >&2;}
2662
 
   { (exit 1); exit 1; }; }
 
3370
   { (exit 1); exit 1; }; }; }
2663
3371
fi
2664
3372
 
2665
3373
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2666
3374
fi
2667
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2668
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3375
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3376
$as_echo "$ac_cv_objext" >&6; }
2669
3377
OBJEXT=$ac_cv_objext
2670
3378
ac_objext=$OBJEXT
2671
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2672
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3379
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3380
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2673
3381
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2674
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3382
  $as_echo_n "(cached) " >&6
2675
3383
else
2676
3384
  cat >conftest.$ac_ext <<_ACEOF
2677
3385
/* confdefs.h.  */
2692
3400
}
2693
3401
_ACEOF
2694
3402
rm -f conftest.$ac_objext
2695
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696
 
  (eval $ac_compile) 2>conftest.er1
 
3403
if { (ac_try="$ac_compile"
 
3404
case "(($ac_try" in
 
3405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3406
  *) ac_try_echo=$ac_try;;
 
3407
esac
 
3408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3409
$as_echo "$ac_try_echo") >&5
 
3410
  (eval "$ac_compile") 2>conftest.er1
2697
3411
  ac_status=$?
2698
3412
  grep -v '^ *+' conftest.er1 >conftest.err
2699
3413
  rm -f conftest.er1
2700
3414
  cat conftest.err >&5
2701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
 
  (exit $ac_status); } &&
2703
 
         { ac_try='test -z "$ac_c_werror_flag"
2704
 
                         || test ! -s conftest.err'
2705
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706
 
  (eval $ac_try) 2>&5
2707
 
  ac_status=$?
2708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709
 
  (exit $ac_status); }; } &&
2710
 
         { ac_try='test -s conftest.$ac_objext'
2711
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712
 
  (eval $ac_try) 2>&5
2713
 
  ac_status=$?
2714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715
 
  (exit $ac_status); }; }; then
 
3415
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3416
  (exit $ac_status); } && {
 
3417
         test -z "$ac_c_werror_flag" ||
 
3418
         test ! -s conftest.err
 
3419
       } && test -s conftest.$ac_objext; then
2716
3420
  ac_compiler_gnu=yes
2717
3421
else
2718
 
  echo "$as_me: failed program was:" >&5
 
3422
  $as_echo "$as_me: failed program was:" >&5
2719
3423
sed 's/^/| /' conftest.$ac_ext >&5
2720
3424
 
2721
 
ac_compiler_gnu=no
 
3425
        ac_compiler_gnu=no
2722
3426
fi
2723
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3427
 
 
3428
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724
3429
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2725
3430
 
2726
3431
fi
2727
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3432
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3433
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3434
if test $ac_compiler_gnu = yes; then
 
3435
  GCC=yes
 
3436
else
 
3437
  GCC=
 
3438
fi
2730
3439
ac_test_CFLAGS=${CFLAGS+set}
2731
3440
ac_save_CFLAGS=$CFLAGS
2732
 
CFLAGS="-g"
2733
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3441
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3442
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2735
3443
if test "${ac_cv_prog_cc_g+set}" = set; then
2736
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2737
 
else
2738
 
  cat >conftest.$ac_ext <<_ACEOF
2739
 
/* confdefs.h.  */
2740
 
_ACEOF
2741
 
cat confdefs.h >>conftest.$ac_ext
2742
 
cat >>conftest.$ac_ext <<_ACEOF
2743
 
/* end confdefs.h.  */
2744
 
 
2745
 
int
2746
 
main ()
2747
 
{
2748
 
 
2749
 
  ;
2750
 
  return 0;
2751
 
}
2752
 
_ACEOF
2753
 
rm -f conftest.$ac_objext
2754
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755
 
  (eval $ac_compile) 2>conftest.er1
2756
 
  ac_status=$?
2757
 
  grep -v '^ *+' conftest.er1 >conftest.err
2758
 
  rm -f conftest.er1
2759
 
  cat conftest.err >&5
2760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
 
  (exit $ac_status); } &&
2762
 
         { ac_try='test -z "$ac_c_werror_flag"
2763
 
                         || test ! -s conftest.err'
2764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765
 
  (eval $ac_try) 2>&5
2766
 
  ac_status=$?
2767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768
 
  (exit $ac_status); }; } &&
2769
 
         { ac_try='test -s conftest.$ac_objext'
2770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771
 
  (eval $ac_try) 2>&5
2772
 
  ac_status=$?
2773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774
 
  (exit $ac_status); }; }; then
2775
 
  ac_cv_prog_cc_g=yes
2776
 
else
2777
 
  echo "$as_me: failed program was:" >&5
2778
 
sed 's/^/| /' conftest.$ac_ext >&5
2779
 
 
2780
 
ac_cv_prog_cc_g=no
2781
 
fi
2782
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783
 
fi
2784
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2785
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3444
  $as_echo_n "(cached) " >&6
 
3445
else
 
3446
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3447
   ac_c_werror_flag=yes
 
3448
   ac_cv_prog_cc_g=no
 
3449
   CFLAGS="-g"
 
3450
   cat >conftest.$ac_ext <<_ACEOF
 
3451
/* confdefs.h.  */
 
3452
_ACEOF
 
3453
cat confdefs.h >>conftest.$ac_ext
 
3454
cat >>conftest.$ac_ext <<_ACEOF
 
3455
/* end confdefs.h.  */
 
3456
 
 
3457
int
 
3458
main ()
 
3459
{
 
3460
 
 
3461
  ;
 
3462
  return 0;
 
3463
}
 
3464
_ACEOF
 
3465
rm -f conftest.$ac_objext
 
3466
if { (ac_try="$ac_compile"
 
3467
case "(($ac_try" in
 
3468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3469
  *) ac_try_echo=$ac_try;;
 
3470
esac
 
3471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3472
$as_echo "$ac_try_echo") >&5
 
3473
  (eval "$ac_compile") 2>conftest.er1
 
3474
  ac_status=$?
 
3475
  grep -v '^ *+' conftest.er1 >conftest.err
 
3476
  rm -f conftest.er1
 
3477
  cat conftest.err >&5
 
3478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3479
  (exit $ac_status); } && {
 
3480
         test -z "$ac_c_werror_flag" ||
 
3481
         test ! -s conftest.err
 
3482
       } && test -s conftest.$ac_objext; then
 
3483
  ac_cv_prog_cc_g=yes
 
3484
else
 
3485
  $as_echo "$as_me: failed program was:" >&5
 
3486
sed 's/^/| /' conftest.$ac_ext >&5
 
3487
 
 
3488
        CFLAGS=""
 
3489
      cat >conftest.$ac_ext <<_ACEOF
 
3490
/* confdefs.h.  */
 
3491
_ACEOF
 
3492
cat confdefs.h >>conftest.$ac_ext
 
3493
cat >>conftest.$ac_ext <<_ACEOF
 
3494
/* end confdefs.h.  */
 
3495
 
 
3496
int
 
3497
main ()
 
3498
{
 
3499
 
 
3500
  ;
 
3501
  return 0;
 
3502
}
 
3503
_ACEOF
 
3504
rm -f conftest.$ac_objext
 
3505
if { (ac_try="$ac_compile"
 
3506
case "(($ac_try" in
 
3507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3508
  *) ac_try_echo=$ac_try;;
 
3509
esac
 
3510
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3511
$as_echo "$ac_try_echo") >&5
 
3512
  (eval "$ac_compile") 2>conftest.er1
 
3513
  ac_status=$?
 
3514
  grep -v '^ *+' conftest.er1 >conftest.err
 
3515
  rm -f conftest.er1
 
3516
  cat conftest.err >&5
 
3517
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3518
  (exit $ac_status); } && {
 
3519
         test -z "$ac_c_werror_flag" ||
 
3520
         test ! -s conftest.err
 
3521
       } && test -s conftest.$ac_objext; then
 
3522
  :
 
3523
else
 
3524
  $as_echo "$as_me: failed program was:" >&5
 
3525
sed 's/^/| /' conftest.$ac_ext >&5
 
3526
 
 
3527
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3528
         CFLAGS="-g"
 
3529
         cat >conftest.$ac_ext <<_ACEOF
 
3530
/* confdefs.h.  */
 
3531
_ACEOF
 
3532
cat confdefs.h >>conftest.$ac_ext
 
3533
cat >>conftest.$ac_ext <<_ACEOF
 
3534
/* end confdefs.h.  */
 
3535
 
 
3536
int
 
3537
main ()
 
3538
{
 
3539
 
 
3540
  ;
 
3541
  return 0;
 
3542
}
 
3543
_ACEOF
 
3544
rm -f conftest.$ac_objext
 
3545
if { (ac_try="$ac_compile"
 
3546
case "(($ac_try" in
 
3547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3548
  *) ac_try_echo=$ac_try;;
 
3549
esac
 
3550
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3551
$as_echo "$ac_try_echo") >&5
 
3552
  (eval "$ac_compile") 2>conftest.er1
 
3553
  ac_status=$?
 
3554
  grep -v '^ *+' conftest.er1 >conftest.err
 
3555
  rm -f conftest.er1
 
3556
  cat conftest.err >&5
 
3557
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3558
  (exit $ac_status); } && {
 
3559
         test -z "$ac_c_werror_flag" ||
 
3560
         test ! -s conftest.err
 
3561
       } && test -s conftest.$ac_objext; then
 
3562
  ac_cv_prog_cc_g=yes
 
3563
else
 
3564
  $as_echo "$as_me: failed program was:" >&5
 
3565
sed 's/^/| /' conftest.$ac_ext >&5
 
3566
 
 
3567
 
 
3568
fi
 
3569
 
 
3570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3571
fi
 
3572
 
 
3573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3574
fi
 
3575
 
 
3576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3577
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3578
fi
 
3579
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3580
$as_echo "$ac_cv_prog_cc_g" >&6; }
2786
3581
if test "$ac_test_CFLAGS" = set; then
2787
3582
  CFLAGS=$ac_save_CFLAGS
2788
3583
elif test $ac_cv_prog_cc_g = yes; then
2798
3593
    CFLAGS=
2799
3594
  fi
2800
3595
fi
2801
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2802
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2803
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2804
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3596
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3597
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3598
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3599
  $as_echo_n "(cached) " >&6
2805
3600
else
2806
 
  ac_cv_prog_cc_stdc=no
 
3601
  ac_cv_prog_cc_c89=no
2807
3602
ac_save_CC=$CC
2808
3603
cat >conftest.$ac_ext <<_ACEOF
2809
3604
/* confdefs.h.  */
2837
3632
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2838
3633
   function prototypes and stuff, but not '\xHH' hex character constants.
2839
3634
   These don't provoke an error unfortunately, instead are silently treated
2840
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3635
   as 'x'.  The following induces an error, until -std is added to get
2841
3636
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2842
3637
   array size at least.  It's necessary to write '\x00'==0 to get something
2843
 
   that's true only with -std1.  */
 
3638
   that's true only with -std.  */
2844
3639
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2845
3640
 
 
3641
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3642
   inside strings and character constants.  */
 
3643
#define FOO(x) 'x'
 
3644
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3645
 
2846
3646
int test (int i, double x);
2847
3647
struct s1 {int (*f) (int a);};
2848
3648
struct s2 {int (*f) (double a);};
2857
3657
  return 0;
2858
3658
}
2859
3659
_ACEOF
2860
 
# Don't try gcc -ansi; that turns off useful extensions and
2861
 
# breaks some systems' header files.
2862
 
# AIX                   -qlanglvl=ansi
2863
 
# Ultrix and OSF/1      -std1
2864
 
# HP-UX 10.20 and later -Ae
2865
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2866
 
# SVR4                  -Xc -D__EXTENSIONS__
2867
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3660
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3661
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2868
3662
do
2869
3663
  CC="$ac_save_CC $ac_arg"
2870
3664
  rm -f conftest.$ac_objext
2871
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872
 
  (eval $ac_compile) 2>conftest.er1
 
3665
if { (ac_try="$ac_compile"
 
3666
case "(($ac_try" in
 
3667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3668
  *) ac_try_echo=$ac_try;;
 
3669
esac
 
3670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3671
$as_echo "$ac_try_echo") >&5
 
3672
  (eval "$ac_compile") 2>conftest.er1
2873
3673
  ac_status=$?
2874
3674
  grep -v '^ *+' conftest.er1 >conftest.err
2875
3675
  rm -f conftest.er1
2876
3676
  cat conftest.err >&5
2877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
 
  (exit $ac_status); } &&
2879
 
         { ac_try='test -z "$ac_c_werror_flag"
2880
 
                         || test ! -s conftest.err'
2881
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882
 
  (eval $ac_try) 2>&5
2883
 
  ac_status=$?
2884
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885
 
  (exit $ac_status); }; } &&
2886
 
         { ac_try='test -s conftest.$ac_objext'
2887
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888
 
  (eval $ac_try) 2>&5
2889
 
  ac_status=$?
2890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891
 
  (exit $ac_status); }; }; then
2892
 
  ac_cv_prog_cc_stdc=$ac_arg
2893
 
break
 
3677
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3678
  (exit $ac_status); } && {
 
3679
         test -z "$ac_c_werror_flag" ||
 
3680
         test ! -s conftest.err
 
3681
       } && test -s conftest.$ac_objext; then
 
3682
  ac_cv_prog_cc_c89=$ac_arg
2894
3683
else
2895
 
  echo "$as_me: failed program was:" >&5
 
3684
  $as_echo "$as_me: failed program was:" >&5
2896
3685
sed 's/^/| /' conftest.$ac_ext >&5
2897
3686
 
 
3687
 
2898
3688
fi
2899
 
rm -f conftest.err conftest.$ac_objext
 
3689
 
 
3690
rm -f core conftest.err conftest.$ac_objext
 
3691
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2900
3692
done
2901
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3693
rm -f conftest.$ac_ext
2902
3694
CC=$ac_save_CC
2903
3695
 
2904
3696
fi
2905
 
 
2906
 
case "x$ac_cv_prog_cc_stdc" in
2907
 
  x|xno)
2908
 
    echo "$as_me:$LINENO: result: none needed" >&5
2909
 
echo "${ECHO_T}none needed" >&6 ;;
 
3697
# AC_CACHE_VAL
 
3698
case "x$ac_cv_prog_cc_c89" in
 
3699
  x)
 
3700
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3701
$as_echo "none needed" >&6; } ;;
 
3702
  xno)
 
3703
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3704
$as_echo "unsupported" >&6; } ;;
2910
3705
  *)
2911
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2912
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2913
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3706
    CC="$CC $ac_cv_prog_cc_c89"
 
3707
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3708
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2914
3709
esac
2915
3710
 
2916
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2917
 
# in C++ we need to declare it.  In case someone uses the same compiler
2918
 
# for both compiling C and C++ we need to have the C++ compiler decide
2919
 
# the declaration of exit, since it's the most demanding environment.
2920
 
cat >conftest.$ac_ext <<_ACEOF
2921
 
#ifndef __cplusplus
2922
 
  choke me
2923
 
#endif
2924
 
_ACEOF
2925
 
rm -f conftest.$ac_objext
2926
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927
 
  (eval $ac_compile) 2>conftest.er1
2928
 
  ac_status=$?
2929
 
  grep -v '^ *+' conftest.er1 >conftest.err
2930
 
  rm -f conftest.er1
2931
 
  cat conftest.err >&5
2932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
 
  (exit $ac_status); } &&
2934
 
         { ac_try='test -z "$ac_c_werror_flag"
2935
 
                         || test ! -s conftest.err'
2936
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937
 
  (eval $ac_try) 2>&5
2938
 
  ac_status=$?
2939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940
 
  (exit $ac_status); }; } &&
2941
 
         { ac_try='test -s conftest.$ac_objext'
2942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943
 
  (eval $ac_try) 2>&5
2944
 
  ac_status=$?
2945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
 
  (exit $ac_status); }; }; then
2947
 
  for ac_declaration in \
2948
 
   '' \
2949
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2950
 
   'extern "C" void std::exit (int); using std::exit;' \
2951
 
   'extern "C" void exit (int) throw ();' \
2952
 
   'extern "C" void exit (int);' \
2953
 
   'void exit (int);'
2954
 
do
2955
 
  cat >conftest.$ac_ext <<_ACEOF
2956
 
/* confdefs.h.  */
2957
 
_ACEOF
2958
 
cat confdefs.h >>conftest.$ac_ext
2959
 
cat >>conftest.$ac_ext <<_ACEOF
2960
 
/* end confdefs.h.  */
2961
 
$ac_declaration
2962
 
#include <stdlib.h>
2963
 
int
2964
 
main ()
2965
 
{
2966
 
exit (42);
2967
 
  ;
2968
 
  return 0;
2969
 
}
2970
 
_ACEOF
2971
 
rm -f conftest.$ac_objext
2972
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973
 
  (eval $ac_compile) 2>conftest.er1
2974
 
  ac_status=$?
2975
 
  grep -v '^ *+' conftest.er1 >conftest.err
2976
 
  rm -f conftest.er1
2977
 
  cat conftest.err >&5
2978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979
 
  (exit $ac_status); } &&
2980
 
         { ac_try='test -z "$ac_c_werror_flag"
2981
 
                         || test ! -s conftest.err'
2982
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983
 
  (eval $ac_try) 2>&5
2984
 
  ac_status=$?
2985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986
 
  (exit $ac_status); }; } &&
2987
 
         { ac_try='test -s conftest.$ac_objext'
2988
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989
 
  (eval $ac_try) 2>&5
2990
 
  ac_status=$?
2991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992
 
  (exit $ac_status); }; }; then
2993
 
  :
2994
 
else
2995
 
  echo "$as_me: failed program was:" >&5
2996
 
sed 's/^/| /' conftest.$ac_ext >&5
2997
 
 
2998
 
continue
2999
 
fi
3000
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001
 
  cat >conftest.$ac_ext <<_ACEOF
3002
 
/* confdefs.h.  */
3003
 
_ACEOF
3004
 
cat confdefs.h >>conftest.$ac_ext
3005
 
cat >>conftest.$ac_ext <<_ACEOF
3006
 
/* end confdefs.h.  */
3007
 
$ac_declaration
3008
 
int
3009
 
main ()
3010
 
{
3011
 
exit (42);
3012
 
  ;
3013
 
  return 0;
3014
 
}
3015
 
_ACEOF
3016
 
rm -f conftest.$ac_objext
3017
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018
 
  (eval $ac_compile) 2>conftest.er1
3019
 
  ac_status=$?
3020
 
  grep -v '^ *+' conftest.er1 >conftest.err
3021
 
  rm -f conftest.er1
3022
 
  cat conftest.err >&5
3023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024
 
  (exit $ac_status); } &&
3025
 
         { ac_try='test -z "$ac_c_werror_flag"
3026
 
                         || test ! -s conftest.err'
3027
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028
 
  (eval $ac_try) 2>&5
3029
 
  ac_status=$?
3030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031
 
  (exit $ac_status); }; } &&
3032
 
         { ac_try='test -s conftest.$ac_objext'
3033
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034
 
  (eval $ac_try) 2>&5
3035
 
  ac_status=$?
3036
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037
 
  (exit $ac_status); }; }; then
3038
 
  break
3039
 
else
3040
 
  echo "$as_me: failed program was:" >&5
3041
 
sed 's/^/| /' conftest.$ac_ext >&5
3042
 
 
3043
 
fi
3044
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3045
 
done
3046
 
rm -f conftest*
3047
 
if test -n "$ac_declaration"; then
3048
 
  echo '#ifdef __cplusplus' >>confdefs.h
3049
 
  echo $ac_declaration      >>confdefs.h
3050
 
  echo '#endif'             >>confdefs.h
3051
 
fi
3052
 
 
3053
 
else
3054
 
  echo "$as_me: failed program was:" >&5
3055
 
sed 's/^/| /' conftest.$ac_ext >&5
3056
 
 
3057
 
fi
3058
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3711
 
3059
3712
ac_ext=c
3060
3713
ac_cpp='$CPP $CPPFLAGS'
3061
3714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063
3716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064
3717
DEPDIR="${am__leading_dot}deps"
3065
3718
 
3066
 
          ac_config_commands="$ac_config_commands depfiles"
 
3719
ac_config_commands="$ac_config_commands depfiles"
3067
3720
 
3068
3721
 
3069
3722
am_make=${MAKE-make}
3073
3726
.PHONY: am__doit
3074
3727
END
3075
3728
# If we don't find an include directive, just comment out the code.
3076
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3077
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3729
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3730
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3078
3731
am__include="#"
3079
3732
am__quote=
3080
3733
_am_result=none
3101
3754
fi
3102
3755
 
3103
3756
 
3104
 
echo "$as_me:$LINENO: result: $_am_result" >&5
3105
 
echo "${ECHO_T}$_am_result" >&6
 
3757
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
3758
$as_echo "$_am_result" >&6; }
3106
3759
rm -f confinc confmf
3107
3760
 
3108
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3761
# Check whether --enable-dependency-tracking was given.
3109
3762
if test "${enable_dependency_tracking+set}" = set; then
3110
 
  enableval="$enable_dependency_tracking"
 
3763
  enableval=$enable_dependency_tracking;
 
3764
fi
3111
3765
 
3112
 
fi;
3113
3766
if test "x$enable_dependency_tracking" != xno; then
3114
3767
  am_depcomp="$ac_aux_dir/depcomp"
3115
3768
  AMDEPBACKSLASH='\'
3116
3769
fi
3117
 
 
3118
 
 
3119
 
if test "x$enable_dependency_tracking" != xno; then
 
3770
 if test "x$enable_dependency_tracking" != xno; then
3120
3771
  AMDEP_TRUE=
3121
3772
  AMDEP_FALSE='#'
3122
3773
else
3126
3777
 
3127
3778
 
3128
3779
 
3129
 
 
3130
3780
depcc="$CC"   am_compiler_list=
3131
3781
 
3132
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3133
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3782
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3783
$as_echo_n "checking dependency style of $depcc... " >&6; }
3134
3784
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3785
  $as_echo_n "(cached) " >&6
3136
3786
else
3137
3787
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3138
3788
  # We make a subdir and do the tests there.  Otherwise we can end up
3168
3818
    : > sub/conftest.c
3169
3819
    for i in 1 2 3 4 5 6; do
3170
3820
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3171
 
      : > sub/conftst$i.h
 
3821
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3822
      # Solaris 8's {/usr,}/bin/sh.
 
3823
      touch sub/conftst$i.h
3172
3824
    done
3173
3825
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3174
3826
 
3192
3844
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3193
3845
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3194
3846
         >/dev/null 2>conftest.err &&
 
3847
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3195
3848
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3196
3849
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3197
3850
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3198
3851
      # icc doesn't choke on unknown options, it will just issue warnings
3199
 
      # (even with -Werror).  So we grep stderr for any message
3200
 
      # that says an option was ignored.
3201
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3852
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3853
      # that says an option was ignored or not supported.
 
3854
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3855
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3856
      # The diagnosis changed in icc 8.0:
 
3857
      #   icc: Command line remark: option '-MP' not supported
 
3858
      if (grep 'ignoring option' conftest.err ||
 
3859
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202
3860
        am_cv_CC_dependencies_compiler_type=$depmode
3203
3861
        break
3204
3862
      fi
3212
3870
fi
3213
3871
 
3214
3872
fi
3215
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3873
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3874
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3217
3875
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
3876
 
3219
 
 
3220
 
 
3221
 
if
 
3877
 if
3222
3878
  test "x$enable_dependency_tracking" != xno \
3223
3879
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224
3880
  am__fastdepCC_TRUE=
3234
3890
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235
3891
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236
3892
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3238
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3893
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3894
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3239
3895
# On Suns, sometimes $CPP names a directory.
3240
3896
if test -n "$CPP" && test -d "$CPP"; then
3241
3897
  CPP=
3242
3898
fi
3243
3899
if test -z "$CPP"; then
3244
3900
  if test "${ac_cv_prog_CPP+set}" = set; then
3245
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3901
  $as_echo_n "(cached) " >&6
3246
3902
else
3247
3903
      # Double quotes because CPP needs to be expanded
3248
3904
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3269
3925
#endif
3270
3926
                     Syntax error
3271
3927
_ACEOF
3272
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3273
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3928
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3929
case "(($ac_try" in
 
3930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3931
  *) ac_try_echo=$ac_try;;
 
3932
esac
 
3933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3934
$as_echo "$ac_try_echo") >&5
 
3935
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3274
3936
  ac_status=$?
3275
3937
  grep -v '^ *+' conftest.er1 >conftest.err
3276
3938
  rm -f conftest.er1
3277
3939
  cat conftest.err >&5
3278
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279
 
  (exit $ac_status); } >/dev/null; then
3280
 
  if test -s conftest.err; then
3281
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3282
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3283
 
  else
3284
 
    ac_cpp_err=
3285
 
  fi
3286
 
else
3287
 
  ac_cpp_err=yes
3288
 
fi
3289
 
if test -z "$ac_cpp_err"; then
 
3940
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3941
  (exit $ac_status); } >/dev/null && {
 
3942
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3943
         test ! -s conftest.err
 
3944
       }; then
3290
3945
  :
3291
3946
else
3292
 
  echo "$as_me: failed program was:" >&5
 
3947
  $as_echo "$as_me: failed program was:" >&5
3293
3948
sed 's/^/| /' conftest.$ac_ext >&5
3294
3949
 
3295
3950
  # Broken: fails on valid input.
3296
3951
continue
3297
3952
fi
 
3953
 
3298
3954
rm -f conftest.err conftest.$ac_ext
3299
3955
 
3300
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3956
  # OK, works on sane cases.  Now check whether nonexistent headers
3301
3957
  # can be detected and how.
3302
3958
  cat >conftest.$ac_ext <<_ACEOF
3303
3959
/* confdefs.h.  */
3307
3963
/* end confdefs.h.  */
3308
3964
#include <ac_nonexistent.h>
3309
3965
_ACEOF
3310
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3966
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3967
case "(($ac_try" in
 
3968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3969
  *) ac_try_echo=$ac_try;;
 
3970
esac
 
3971
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3972
$as_echo "$ac_try_echo") >&5
 
3973
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3312
3974
  ac_status=$?
3313
3975
  grep -v '^ *+' conftest.er1 >conftest.err
3314
3976
  rm -f conftest.er1
3315
3977
  cat conftest.err >&5
3316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317
 
  (exit $ac_status); } >/dev/null; then
3318
 
  if test -s conftest.err; then
3319
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3320
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321
 
  else
3322
 
    ac_cpp_err=
3323
 
  fi
3324
 
else
3325
 
  ac_cpp_err=yes
3326
 
fi
3327
 
if test -z "$ac_cpp_err"; then
 
3978
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3979
  (exit $ac_status); } >/dev/null && {
 
3980
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3981
         test ! -s conftest.err
 
3982
       }; then
3328
3983
  # Broken: success on invalid input.
3329
3984
continue
3330
3985
else
3331
 
  echo "$as_me: failed program was:" >&5
 
3986
  $as_echo "$as_me: failed program was:" >&5
3332
3987
sed 's/^/| /' conftest.$ac_ext >&5
3333
3988
 
3334
3989
  # Passes both tests.
3335
3990
ac_preproc_ok=:
3336
3991
break
3337
3992
fi
 
3993
 
3338
3994
rm -f conftest.err conftest.$ac_ext
3339
3995
 
3340
3996
done
3352
4008
else
3353
4009
  ac_cv_prog_CPP=$CPP
3354
4010
fi
3355
 
echo "$as_me:$LINENO: result: $CPP" >&5
3356
 
echo "${ECHO_T}$CPP" >&6
 
4011
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
4012
$as_echo "$CPP" >&6; }
3357
4013
ac_preproc_ok=false
3358
4014
for ac_c_preproc_warn_flag in '' yes
3359
4015
do
3376
4032
#endif
3377
4033
                     Syntax error
3378
4034
_ACEOF
3379
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3380
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4035
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4036
case "(($ac_try" in
 
4037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4038
  *) ac_try_echo=$ac_try;;
 
4039
esac
 
4040
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4041
$as_echo "$ac_try_echo") >&5
 
4042
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381
4043
  ac_status=$?
3382
4044
  grep -v '^ *+' conftest.er1 >conftest.err
3383
4045
  rm -f conftest.er1
3384
4046
  cat conftest.err >&5
3385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386
 
  (exit $ac_status); } >/dev/null; then
3387
 
  if test -s conftest.err; then
3388
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3389
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3390
 
  else
3391
 
    ac_cpp_err=
3392
 
  fi
3393
 
else
3394
 
  ac_cpp_err=yes
3395
 
fi
3396
 
if test -z "$ac_cpp_err"; then
 
4047
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4048
  (exit $ac_status); } >/dev/null && {
 
4049
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4050
         test ! -s conftest.err
 
4051
       }; then
3397
4052
  :
3398
4053
else
3399
 
  echo "$as_me: failed program was:" >&5
 
4054
  $as_echo "$as_me: failed program was:" >&5
3400
4055
sed 's/^/| /' conftest.$ac_ext >&5
3401
4056
 
3402
4057
  # Broken: fails on valid input.
3403
4058
continue
3404
4059
fi
 
4060
 
3405
4061
rm -f conftest.err conftest.$ac_ext
3406
4062
 
3407
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4063
  # OK, works on sane cases.  Now check whether nonexistent headers
3408
4064
  # can be detected and how.
3409
4065
  cat >conftest.$ac_ext <<_ACEOF
3410
4066
/* confdefs.h.  */
3414
4070
/* end confdefs.h.  */
3415
4071
#include <ac_nonexistent.h>
3416
4072
_ACEOF
3417
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4073
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4074
case "(($ac_try" in
 
4075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4076
  *) ac_try_echo=$ac_try;;
 
4077
esac
 
4078
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4079
$as_echo "$ac_try_echo") >&5
 
4080
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419
4081
  ac_status=$?
3420
4082
  grep -v '^ *+' conftest.er1 >conftest.err
3421
4083
  rm -f conftest.er1
3422
4084
  cat conftest.err >&5
3423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424
 
  (exit $ac_status); } >/dev/null; then
3425
 
  if test -s conftest.err; then
3426
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3427
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428
 
  else
3429
 
    ac_cpp_err=
3430
 
  fi
3431
 
else
3432
 
  ac_cpp_err=yes
3433
 
fi
3434
 
if test -z "$ac_cpp_err"; then
 
4085
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4086
  (exit $ac_status); } >/dev/null && {
 
4087
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4088
         test ! -s conftest.err
 
4089
       }; then
3435
4090
  # Broken: success on invalid input.
3436
4091
continue
3437
4092
else
3438
 
  echo "$as_me: failed program was:" >&5
 
4093
  $as_echo "$as_me: failed program was:" >&5
3439
4094
sed 's/^/| /' conftest.$ac_ext >&5
3440
4095
 
3441
4096
  # Passes both tests.
3442
4097
ac_preproc_ok=:
3443
4098
break
3444
4099
fi
 
4100
 
3445
4101
rm -f conftest.err conftest.$ac_ext
3446
4102
 
3447
4103
done
3450
4106
if $ac_preproc_ok; then
3451
4107
  :
3452
4108
else
3453
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4109
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4110
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4111
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3454
4112
See \`config.log' for more details." >&5
3455
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4113
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3456
4114
See \`config.log' for more details." >&2;}
3457
 
   { (exit 1); exit 1; }; }
 
4115
   { (exit 1); exit 1; }; }; }
3458
4116
fi
3459
4117
 
3460
4118
ac_ext=c
3463
4121
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464
4122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
4123
 
3466
 
 
3467
 
 
3468
 
# Check whether --enable-shared or --disable-shared was given.
3469
 
if test "${enable_shared+set}" = set; then
3470
 
  enableval="$enable_shared"
3471
 
  p=${PACKAGE-default}
3472
 
    case $enableval in
3473
 
    yes) enable_shared=yes ;;
3474
 
    no) enable_shared=no ;;
3475
 
    *)
3476
 
      enable_shared=no
3477
 
      # Look at the argument we got.  We use all the common list separators.
3478
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3479
 
      for pkg in $enableval; do
3480
 
        IFS="$lt_save_ifs"
3481
 
        if test "X$pkg" = "X$p"; then
3482
 
          enable_shared=yes
3483
 
        fi
3484
 
      done
3485
 
      IFS="$lt_save_ifs"
3486
 
      ;;
3487
 
    esac
3488
 
else
3489
 
  enable_shared=yes
3490
 
fi;
3491
 
 
3492
 
# Check whether --enable-static or --disable-static was given.
3493
 
if test "${enable_static+set}" = set; then
3494
 
  enableval="$enable_static"
3495
 
  p=${PACKAGE-default}
3496
 
    case $enableval in
3497
 
    yes) enable_static=yes ;;
3498
 
    no) enable_static=no ;;
3499
 
    *)
3500
 
     enable_static=no
3501
 
      # Look at the argument we got.  We use all the common list separators.
3502
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3503
 
      for pkg in $enableval; do
3504
 
        IFS="$lt_save_ifs"
3505
 
        if test "X$pkg" = "X$p"; then
3506
 
          enable_static=yes
3507
 
        fi
3508
 
      done
3509
 
      IFS="$lt_save_ifs"
3510
 
      ;;
3511
 
    esac
3512
 
else
3513
 
  enable_static=yes
3514
 
fi;
3515
 
 
3516
 
# Check whether --enable-fast-install or --disable-fast-install was given.
3517
 
if test "${enable_fast_install+set}" = set; then
3518
 
  enableval="$enable_fast_install"
3519
 
  p=${PACKAGE-default}
3520
 
    case $enableval in
3521
 
    yes) enable_fast_install=yes ;;
3522
 
    no) enable_fast_install=no ;;
3523
 
    *)
3524
 
      enable_fast_install=no
3525
 
      # Look at the argument we got.  We use all the common list separators.
3526
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3527
 
      for pkg in $enableval; do
3528
 
        IFS="$lt_save_ifs"
3529
 
        if test "X$pkg" = "X$p"; then
3530
 
          enable_fast_install=yes
3531
 
        fi
3532
 
      done
3533
 
      IFS="$lt_save_ifs"
3534
 
      ;;
3535
 
    esac
3536
 
else
3537
 
  enable_fast_install=yes
3538
 
fi;
3539
 
 
3540
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3541
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3542
 
if test "${lt_cv_path_SED+set}" = set; then
3543
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3544
 
else
3545
 
  # Loop through the user's path and test for sed and gsed.
3546
 
# Then use that list of sed's as ones to test for truncation.
3547
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548
 
for as_dir in $PATH
3549
 
do
3550
 
  IFS=$as_save_IFS
3551
 
  test -z "$as_dir" && as_dir=.
3552
 
  for lt_ac_prog in sed gsed; do
3553
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3554
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3555
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3556
 
      fi
3557
 
    done
3558
 
  done
3559
 
done
3560
 
lt_ac_max=0
3561
 
lt_ac_count=0
3562
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3563
 
# along with /bin/sed that truncates output.
3564
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3565
 
  test ! -f $lt_ac_sed && continue
3566
 
  cat /dev/null > conftest.in
3567
 
  lt_ac_count=0
3568
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3569
 
  # Check for GNU sed and select it if it is found.
3570
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3571
 
    lt_cv_path_SED=$lt_ac_sed
3572
 
    break
3573
 
  fi
3574
 
  while true; do
3575
 
    cat conftest.in conftest.in >conftest.tmp
3576
 
    mv conftest.tmp conftest.in
3577
 
    cp conftest.in conftest.nl
3578
 
    echo >>conftest.nl
3579
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3580
 
    cmp -s conftest.out conftest.nl || break
3581
 
    # 10000 chars as input seems more than enough
3582
 
    test $lt_ac_count -gt 10 && break
3583
 
    lt_ac_count=`expr $lt_ac_count + 1`
3584
 
    if test $lt_ac_count -gt $lt_ac_max; then
3585
 
      lt_ac_max=$lt_ac_count
3586
 
      lt_cv_path_SED=$lt_ac_sed
3587
 
    fi
3588
 
  done
3589
 
done
3590
 
 
3591
 
fi
3592
 
 
3593
 
SED=$lt_cv_path_SED
3594
 
echo "$as_me:$LINENO: result: $SED" >&5
3595
 
echo "${ECHO_T}$SED" >&6
3596
 
 
3597
 
echo "$as_me:$LINENO: checking for egrep" >&5
3598
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3599
 
if test "${ac_cv_prog_egrep+set}" = set; then
3600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3601
 
else
3602
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3603
 
    then ac_cv_prog_egrep='grep -E'
3604
 
    else ac_cv_prog_egrep='egrep'
3605
 
    fi
3606
 
fi
3607
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3608
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3609
 
 EGREP=$ac_cv_prog_egrep
3610
 
 
3611
 
 
3612
 
 
3613
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4124
enable_win32_dll=yes
 
4125
 
 
4126
case $host in
 
4127
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
4128
  if test -n "$ac_tool_prefix"; then
 
4129
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4130
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4131
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4132
$as_echo_n "checking for $ac_word... " >&6; }
 
4133
if test "${ac_cv_prog_AS+set}" = set; then
 
4134
  $as_echo_n "(cached) " >&6
 
4135
else
 
4136
  if test -n "$AS"; then
 
4137
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4138
else
 
4139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4140
for as_dir in $PATH
 
4141
do
 
4142
  IFS=$as_save_IFS
 
4143
  test -z "$as_dir" && as_dir=.
 
4144
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4145
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4146
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4147
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4148
    break 2
 
4149
  fi
 
4150
done
 
4151
done
 
4152
IFS=$as_save_IFS
 
4153
 
 
4154
fi
 
4155
fi
 
4156
AS=$ac_cv_prog_AS
 
4157
if test -n "$AS"; then
 
4158
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
 
4159
$as_echo "$AS" >&6; }
 
4160
else
 
4161
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4162
$as_echo "no" >&6; }
 
4163
fi
 
4164
 
 
4165
 
 
4166
fi
 
4167
if test -z "$ac_cv_prog_AS"; then
 
4168
  ac_ct_AS=$AS
 
4169
  # Extract the first word of "as", so it can be a program name with args.
 
4170
set dummy as; ac_word=$2
 
4171
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4172
$as_echo_n "checking for $ac_word... " >&6; }
 
4173
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4174
  $as_echo_n "(cached) " >&6
 
4175
else
 
4176
  if test -n "$ac_ct_AS"; then
 
4177
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4178
else
 
4179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4180
for as_dir in $PATH
 
4181
do
 
4182
  IFS=$as_save_IFS
 
4183
  test -z "$as_dir" && as_dir=.
 
4184
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4186
    ac_cv_prog_ac_ct_AS="as"
 
4187
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4188
    break 2
 
4189
  fi
 
4190
done
 
4191
done
 
4192
IFS=$as_save_IFS
 
4193
 
 
4194
fi
 
4195
fi
 
4196
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4197
if test -n "$ac_ct_AS"; then
 
4198
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4199
$as_echo "$ac_ct_AS" >&6; }
 
4200
else
 
4201
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4202
$as_echo "no" >&6; }
 
4203
fi
 
4204
 
 
4205
  if test "x$ac_ct_AS" = x; then
 
4206
    AS="false"
 
4207
  else
 
4208
    case $cross_compiling:$ac_tool_warned in
 
4209
yes:)
 
4210
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4211
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4212
ac_tool_warned=yes ;;
 
4213
esac
 
4214
    AS=$ac_ct_AS
 
4215
  fi
 
4216
else
 
4217
  AS="$ac_cv_prog_AS"
 
4218
fi
 
4219
 
 
4220
  if test -n "$ac_tool_prefix"; then
 
4221
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
4222
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
4223
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4224
$as_echo_n "checking for $ac_word... " >&6; }
 
4225
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
4226
  $as_echo_n "(cached) " >&6
 
4227
else
 
4228
  if test -n "$DLLTOOL"; then
 
4229
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
4230
else
 
4231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4232
for as_dir in $PATH
 
4233
do
 
4234
  IFS=$as_save_IFS
 
4235
  test -z "$as_dir" && as_dir=.
 
4236
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4237
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4238
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4239
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4240
    break 2
 
4241
  fi
 
4242
done
 
4243
done
 
4244
IFS=$as_save_IFS
 
4245
 
 
4246
fi
 
4247
fi
 
4248
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4249
if test -n "$DLLTOOL"; then
 
4250
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
4251
$as_echo "$DLLTOOL" >&6; }
 
4252
else
 
4253
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4254
$as_echo "no" >&6; }
 
4255
fi
 
4256
 
 
4257
 
 
4258
fi
 
4259
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4260
  ac_ct_DLLTOOL=$DLLTOOL
 
4261
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4262
set dummy dlltool; ac_word=$2
 
4263
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4264
$as_echo_n "checking for $ac_word... " >&6; }
 
4265
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4266
  $as_echo_n "(cached) " >&6
 
4267
else
 
4268
  if test -n "$ac_ct_DLLTOOL"; then
 
4269
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4270
else
 
4271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4272
for as_dir in $PATH
 
4273
do
 
4274
  IFS=$as_save_IFS
 
4275
  test -z "$as_dir" && as_dir=.
 
4276
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4277
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4278
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4279
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4280
    break 2
 
4281
  fi
 
4282
done
 
4283
done
 
4284
IFS=$as_save_IFS
 
4285
 
 
4286
fi
 
4287
fi
 
4288
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4289
if test -n "$ac_ct_DLLTOOL"; then
 
4290
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4291
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
4292
else
 
4293
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4294
$as_echo "no" >&6; }
 
4295
fi
 
4296
 
 
4297
  if test "x$ac_ct_DLLTOOL" = x; then
 
4298
    DLLTOOL="false"
 
4299
  else
 
4300
    case $cross_compiling:$ac_tool_warned in
 
4301
yes:)
 
4302
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4303
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4304
ac_tool_warned=yes ;;
 
4305
esac
 
4306
    DLLTOOL=$ac_ct_DLLTOOL
 
4307
  fi
 
4308
else
 
4309
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4310
fi
 
4311
 
 
4312
  if test -n "$ac_tool_prefix"; then
 
4313
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4314
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4315
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4316
$as_echo_n "checking for $ac_word... " >&6; }
 
4317
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4318
  $as_echo_n "(cached) " >&6
 
4319
else
 
4320
  if test -n "$OBJDUMP"; then
 
4321
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4322
else
 
4323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4324
for as_dir in $PATH
 
4325
do
 
4326
  IFS=$as_save_IFS
 
4327
  test -z "$as_dir" && as_dir=.
 
4328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4329
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4330
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4331
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4332
    break 2
 
4333
  fi
 
4334
done
 
4335
done
 
4336
IFS=$as_save_IFS
 
4337
 
 
4338
fi
 
4339
fi
 
4340
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4341
if test -n "$OBJDUMP"; then
 
4342
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4343
$as_echo "$OBJDUMP" >&6; }
 
4344
else
 
4345
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4346
$as_echo "no" >&6; }
 
4347
fi
 
4348
 
 
4349
 
 
4350
fi
 
4351
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4352
  ac_ct_OBJDUMP=$OBJDUMP
 
4353
  # Extract the first word of "objdump", so it can be a program name with args.
 
4354
set dummy objdump; ac_word=$2
 
4355
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4356
$as_echo_n "checking for $ac_word... " >&6; }
 
4357
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4358
  $as_echo_n "(cached) " >&6
 
4359
else
 
4360
  if test -n "$ac_ct_OBJDUMP"; then
 
4361
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4362
else
 
4363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4364
for as_dir in $PATH
 
4365
do
 
4366
  IFS=$as_save_IFS
 
4367
  test -z "$as_dir" && as_dir=.
 
4368
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4369
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4370
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4371
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4372
    break 2
 
4373
  fi
 
4374
done
 
4375
done
 
4376
IFS=$as_save_IFS
 
4377
 
 
4378
fi
 
4379
fi
 
4380
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4381
if test -n "$ac_ct_OBJDUMP"; then
 
4382
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4383
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4384
else
 
4385
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4386
$as_echo "no" >&6; }
 
4387
fi
 
4388
 
 
4389
  if test "x$ac_ct_OBJDUMP" = x; then
 
4390
    OBJDUMP="false"
 
4391
  else
 
4392
    case $cross_compiling:$ac_tool_warned in
 
4393
yes:)
 
4394
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4395
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4396
ac_tool_warned=yes ;;
 
4397
esac
 
4398
    OBJDUMP=$ac_ct_OBJDUMP
 
4399
  fi
 
4400
else
 
4401
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4402
fi
 
4403
 
 
4404
  ;;
 
4405
esac
 
4406
 
 
4407
test -z "$AS" && AS=as
 
4408
 
 
4409
 
 
4410
 
 
4411
 
 
4412
 
 
4413
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
4414
 
 
4415
 
 
4416
 
 
4417
 
 
4418
 
 
4419
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4420
 
 
4421
 
 
4422
 
 
4423
 
 
4424
 
 
4425
 
 
4426
 
 
4427
case `pwd` in
 
4428
  *\ * | *\     *)
 
4429
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4430
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4431
esac
 
4432
 
 
4433
 
 
4434
 
 
4435
macro_version='2.2.6'
 
4436
macro_revision='1.3012'
 
4437
 
 
4438
 
 
4439
 
 
4440
 
 
4441
 
 
4442
 
 
4443
 
 
4444
 
 
4445
 
 
4446
 
 
4447
 
 
4448
 
 
4449
 
 
4450
ltmain="$ac_aux_dir/ltmain.sh"
 
4451
 
 
4452
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4453
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4454
if test "${ac_cv_path_SED+set}" = set; then
 
4455
  $as_echo_n "(cached) " >&6
 
4456
else
 
4457
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4458
     for ac_i in 1 2 3 4 5 6 7; do
 
4459
       ac_script="$ac_script$as_nl$ac_script"
 
4460
     done
 
4461
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4462
     $as_unset ac_script || ac_script=
 
4463
     if test -z "$SED"; then
 
4464
  ac_path_SED_found=false
 
4465
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4466
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4467
for as_dir in $PATH
 
4468
do
 
4469
  IFS=$as_save_IFS
 
4470
  test -z "$as_dir" && as_dir=.
 
4471
  for ac_prog in sed gsed; do
 
4472
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4473
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4474
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4475
# Check for GNU ac_path_SED and select it if it is found.
 
4476
  # Check for GNU $ac_path_SED
 
4477
case `"$ac_path_SED" --version 2>&1` in
 
4478
*GNU*)
 
4479
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4480
*)
 
4481
  ac_count=0
 
4482
  $as_echo_n 0123456789 >"conftest.in"
 
4483
  while :
 
4484
  do
 
4485
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4486
    mv "conftest.tmp" "conftest.in"
 
4487
    cp "conftest.in" "conftest.nl"
 
4488
    $as_echo '' >> "conftest.nl"
 
4489
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4490
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4491
    ac_count=`expr $ac_count + 1`
 
4492
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4493
      # Best one so far, save it but keep looking for a better one
 
4494
      ac_cv_path_SED="$ac_path_SED"
 
4495
      ac_path_SED_max=$ac_count
 
4496
    fi
 
4497
    # 10*(2^10) chars as input seems more than enough
 
4498
    test $ac_count -gt 10 && break
 
4499
  done
 
4500
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4501
esac
 
4502
 
 
4503
      $ac_path_SED_found && break 3
 
4504
    done
 
4505
  done
 
4506
done
 
4507
IFS=$as_save_IFS
 
4508
  if test -z "$ac_cv_path_SED"; then
 
4509
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
4510
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
4511
   { (exit 1); exit 1; }; }
 
4512
  fi
 
4513
else
 
4514
  ac_cv_path_SED=$SED
 
4515
fi
 
4516
 
 
4517
fi
 
4518
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
4519
$as_echo "$ac_cv_path_SED" >&6; }
 
4520
 SED="$ac_cv_path_SED"
 
4521
  rm -f conftest.sed
 
4522
 
 
4523
test -z "$SED" && SED=sed
 
4524
Xsed="$SED -e 1s/^X//"
 
4525
 
 
4526
 
 
4527
 
 
4528
 
 
4529
 
 
4530
 
 
4531
 
 
4532
 
 
4533
 
 
4534
 
 
4535
 
 
4536
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4537
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4538
if test "${ac_cv_path_GREP+set}" = set; then
 
4539
  $as_echo_n "(cached) " >&6
 
4540
else
 
4541
  if test -z "$GREP"; then
 
4542
  ac_path_GREP_found=false
 
4543
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4544
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4545
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4546
do
 
4547
  IFS=$as_save_IFS
 
4548
  test -z "$as_dir" && as_dir=.
 
4549
  for ac_prog in grep ggrep; do
 
4550
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4551
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4552
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4553
# Check for GNU ac_path_GREP and select it if it is found.
 
4554
  # Check for GNU $ac_path_GREP
 
4555
case `"$ac_path_GREP" --version 2>&1` in
 
4556
*GNU*)
 
4557
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4558
*)
 
4559
  ac_count=0
 
4560
  $as_echo_n 0123456789 >"conftest.in"
 
4561
  while :
 
4562
  do
 
4563
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4564
    mv "conftest.tmp" "conftest.in"
 
4565
    cp "conftest.in" "conftest.nl"
 
4566
    $as_echo 'GREP' >> "conftest.nl"
 
4567
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4568
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4569
    ac_count=`expr $ac_count + 1`
 
4570
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4571
      # Best one so far, save it but keep looking for a better one
 
4572
      ac_cv_path_GREP="$ac_path_GREP"
 
4573
      ac_path_GREP_max=$ac_count
 
4574
    fi
 
4575
    # 10*(2^10) chars as input seems more than enough
 
4576
    test $ac_count -gt 10 && break
 
4577
  done
 
4578
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4579
esac
 
4580
 
 
4581
      $ac_path_GREP_found && break 3
 
4582
    done
 
4583
  done
 
4584
done
 
4585
IFS=$as_save_IFS
 
4586
  if test -z "$ac_cv_path_GREP"; then
 
4587
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4588
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4589
   { (exit 1); exit 1; }; }
 
4590
  fi
 
4591
else
 
4592
  ac_cv_path_GREP=$GREP
 
4593
fi
 
4594
 
 
4595
fi
 
4596
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4597
$as_echo "$ac_cv_path_GREP" >&6; }
 
4598
 GREP="$ac_cv_path_GREP"
 
4599
 
 
4600
 
 
4601
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
4602
$as_echo_n "checking for egrep... " >&6; }
 
4603
if test "${ac_cv_path_EGREP+set}" = set; then
 
4604
  $as_echo_n "(cached) " >&6
 
4605
else
 
4606
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4607
   then ac_cv_path_EGREP="$GREP -E"
 
4608
   else
 
4609
     if test -z "$EGREP"; then
 
4610
  ac_path_EGREP_found=false
 
4611
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4612
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4613
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4614
do
 
4615
  IFS=$as_save_IFS
 
4616
  test -z "$as_dir" && as_dir=.
 
4617
  for ac_prog in egrep; do
 
4618
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4619
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4620
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4621
# Check for GNU ac_path_EGREP and select it if it is found.
 
4622
  # Check for GNU $ac_path_EGREP
 
4623
case `"$ac_path_EGREP" --version 2>&1` in
 
4624
*GNU*)
 
4625
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4626
*)
 
4627
  ac_count=0
 
4628
  $as_echo_n 0123456789 >"conftest.in"
 
4629
  while :
 
4630
  do
 
4631
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4632
    mv "conftest.tmp" "conftest.in"
 
4633
    cp "conftest.in" "conftest.nl"
 
4634
    $as_echo 'EGREP' >> "conftest.nl"
 
4635
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4636
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4637
    ac_count=`expr $ac_count + 1`
 
4638
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4639
      # Best one so far, save it but keep looking for a better one
 
4640
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4641
      ac_path_EGREP_max=$ac_count
 
4642
    fi
 
4643
    # 10*(2^10) chars as input seems more than enough
 
4644
    test $ac_count -gt 10 && break
 
4645
  done
 
4646
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4647
esac
 
4648
 
 
4649
      $ac_path_EGREP_found && break 3
 
4650
    done
 
4651
  done
 
4652
done
 
4653
IFS=$as_save_IFS
 
4654
  if test -z "$ac_cv_path_EGREP"; then
 
4655
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4656
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4657
   { (exit 1); exit 1; }; }
 
4658
  fi
 
4659
else
 
4660
  ac_cv_path_EGREP=$EGREP
 
4661
fi
 
4662
 
 
4663
   fi
 
4664
fi
 
4665
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4666
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4667
 EGREP="$ac_cv_path_EGREP"
 
4668
 
 
4669
 
 
4670
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
4671
$as_echo_n "checking for fgrep... " >&6; }
 
4672
if test "${ac_cv_path_FGREP+set}" = set; then
 
4673
  $as_echo_n "(cached) " >&6
 
4674
else
 
4675
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4676
   then ac_cv_path_FGREP="$GREP -F"
 
4677
   else
 
4678
     if test -z "$FGREP"; then
 
4679
  ac_path_FGREP_found=false
 
4680
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4681
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4682
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4683
do
 
4684
  IFS=$as_save_IFS
 
4685
  test -z "$as_dir" && as_dir=.
 
4686
  for ac_prog in fgrep; do
 
4687
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4688
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4689
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4690
# Check for GNU ac_path_FGREP and select it if it is found.
 
4691
  # Check for GNU $ac_path_FGREP
 
4692
case `"$ac_path_FGREP" --version 2>&1` in
 
4693
*GNU*)
 
4694
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4695
*)
 
4696
  ac_count=0
 
4697
  $as_echo_n 0123456789 >"conftest.in"
 
4698
  while :
 
4699
  do
 
4700
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4701
    mv "conftest.tmp" "conftest.in"
 
4702
    cp "conftest.in" "conftest.nl"
 
4703
    $as_echo 'FGREP' >> "conftest.nl"
 
4704
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4705
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4706
    ac_count=`expr $ac_count + 1`
 
4707
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4708
      # Best one so far, save it but keep looking for a better one
 
4709
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4710
      ac_path_FGREP_max=$ac_count
 
4711
    fi
 
4712
    # 10*(2^10) chars as input seems more than enough
 
4713
    test $ac_count -gt 10 && break
 
4714
  done
 
4715
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4716
esac
 
4717
 
 
4718
      $ac_path_FGREP_found && break 3
 
4719
    done
 
4720
  done
 
4721
done
 
4722
IFS=$as_save_IFS
 
4723
  if test -z "$ac_cv_path_FGREP"; then
 
4724
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4725
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4726
   { (exit 1); exit 1; }; }
 
4727
  fi
 
4728
else
 
4729
  ac_cv_path_FGREP=$FGREP
 
4730
fi
 
4731
 
 
4732
   fi
 
4733
fi
 
4734
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4735
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4736
 FGREP="$ac_cv_path_FGREP"
 
4737
 
 
4738
 
 
4739
test -z "$GREP" && GREP=grep
 
4740
 
 
4741
 
 
4742
 
 
4743
 
 
4744
 
 
4745
 
 
4746
 
 
4747
 
 
4748
 
 
4749
 
 
4750
 
 
4751
 
 
4752
 
 
4753
 
 
4754
 
 
4755
 
 
4756
 
 
4757
 
 
4758
 
 
4759
# Check whether --with-gnu-ld was given.
3614
4760
if test "${with_gnu_ld+set}" = set; then
3615
 
  withval="$with_gnu_ld"
3616
 
  test "$withval" = no || with_gnu_ld=yes
 
4761
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3617
4762
else
3618
4763
  with_gnu_ld=no
3619
 
fi;
 
4764
fi
 
4765
 
3620
4766
ac_prog=ld
3621
4767
if test "$GCC" = yes; then
3622
4768
  # Check if gcc -print-prog-name=ld gives a path.
3623
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3624
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4769
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4770
$as_echo_n "checking for ld used by $CC... " >&6; }
3625
4771
  case $host in
3626
4772
  *-*-mingw*)
3627
4773
    # gcc leaves a trailing carriage return which upsets mingw
3634
4780
    [\\/]* | ?:[\\/]*)
3635
4781
      re_direlt='/[^/][^/]*/\.\./'
3636
4782
      # Canonicalize the pathname of ld
3637
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3638
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3639
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4783
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4784
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4785
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3640
4786
      done
3641
4787
      test -z "$LD" && LD="$ac_prog"
3642
4788
      ;;
3650
4796
    ;;
3651
4797
  esac
3652
4798
elif test "$with_gnu_ld" = yes; then
3653
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3654
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4799
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4800
$as_echo_n "checking for GNU ld... " >&6; }
3655
4801
else
3656
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3657
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4802
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4803
$as_echo_n "checking for non-GNU ld... " >&6; }
3658
4804
fi
3659
4805
if test "${lt_cv_path_LD+set}" = set; then
3660
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4806
  $as_echo_n "(cached) " >&6
3661
4807
else
3662
4808
  if test -z "$LD"; then
3663
4809
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3667
4813
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3668
4814
      lt_cv_path_LD="$ac_dir/$ac_prog"
3669
4815
      # Check to see if the program is GNU ld.  I'd rather use --version,
3670
 
      # but apparently some GNU ld's only accept -v.
 
4816
      # but apparently some variants of GNU ld only accept -v.
3671
4817
      # Break only if it was the GNU/non-GNU ld that we prefer.
3672
4818
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3673
4819
      *GNU* | *'with BFD'*)
3687
4833
 
3688
4834
LD="$lt_cv_path_LD"
3689
4835
if test -n "$LD"; then
3690
 
  echo "$as_me:$LINENO: result: $LD" >&5
3691
 
echo "${ECHO_T}$LD" >&6
 
4836
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4837
$as_echo "$LD" >&6; }
3692
4838
else
3693
 
  echo "$as_me:$LINENO: result: no" >&5
3694
 
echo "${ECHO_T}no" >&6
 
4839
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4840
$as_echo "no" >&6; }
3695
4841
fi
3696
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3697
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4842
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4843
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3698
4844
   { (exit 1); exit 1; }; }
3699
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3700
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4845
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4846
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3701
4847
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3702
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4848
  $as_echo_n "(cached) " >&6
3703
4849
else
3704
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4850
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3705
4851
case `$LD -v 2>&1 </dev/null` in
3706
4852
*GNU* | *'with BFD'*)
3707
4853
  lt_cv_prog_gnu_ld=yes
3711
4857
  ;;
3712
4858
esac
3713
4859
fi
3714
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3715
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4860
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4861
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3716
4862
with_gnu_ld=$lt_cv_prog_gnu_ld
3717
4863
 
3718
4864
 
3719
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3720
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4865
 
 
4866
 
 
4867
 
 
4868
 
 
4869
 
 
4870
 
 
4871
 
 
4872
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4873
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4874
if test "${lt_cv_path_NM+set}" = set; then
 
4875
  $as_echo_n "(cached) " >&6
 
4876
else
 
4877
  if test -n "$NM"; then
 
4878
  # Let the user override the test.
 
4879
  lt_cv_path_NM="$NM"
 
4880
else
 
4881
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4882
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4883
    lt_nm_to_check="$lt_nm_to_check nm"
 
4884
  fi
 
4885
  for lt_tmp_nm in $lt_nm_to_check; do
 
4886
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4887
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4888
      IFS="$lt_save_ifs"
 
4889
      test -z "$ac_dir" && ac_dir=.
 
4890
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4891
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4892
        # Check to see if the nm accepts a BSD-compat flag.
 
4893
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4894
        #   nm: unknown option "B" ignored
 
4895
        # Tru64's nm complains that /dev/null is an invalid object file
 
4896
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4897
        */dev/null* | *'Invalid file or object type'*)
 
4898
          lt_cv_path_NM="$tmp_nm -B"
 
4899
          break
 
4900
          ;;
 
4901
        *)
 
4902
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4903
          */dev/null*)
 
4904
            lt_cv_path_NM="$tmp_nm -p"
 
4905
            break
 
4906
            ;;
 
4907
          *)
 
4908
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4909
            continue # so that we can try to find one that supports BSD flags
 
4910
            ;;
 
4911
          esac
 
4912
          ;;
 
4913
        esac
 
4914
      fi
 
4915
    done
 
4916
    IFS="$lt_save_ifs"
 
4917
  done
 
4918
  : ${lt_cv_path_NM=no}
 
4919
fi
 
4920
fi
 
4921
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4922
$as_echo "$lt_cv_path_NM" >&6; }
 
4923
if test "$lt_cv_path_NM" != "no"; then
 
4924
  NM="$lt_cv_path_NM"
 
4925
else
 
4926
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4927
  if test -n "$ac_tool_prefix"; then
 
4928
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4929
  do
 
4930
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4931
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4932
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4933
$as_echo_n "checking for $ac_word... " >&6; }
 
4934
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4935
  $as_echo_n "(cached) " >&6
 
4936
else
 
4937
  if test -n "$DUMPBIN"; then
 
4938
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4939
else
 
4940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4941
for as_dir in $PATH
 
4942
do
 
4943
  IFS=$as_save_IFS
 
4944
  test -z "$as_dir" && as_dir=.
 
4945
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4946
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4947
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4948
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4949
    break 2
 
4950
  fi
 
4951
done
 
4952
done
 
4953
IFS=$as_save_IFS
 
4954
 
 
4955
fi
 
4956
fi
 
4957
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4958
if test -n "$DUMPBIN"; then
 
4959
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4960
$as_echo "$DUMPBIN" >&6; }
 
4961
else
 
4962
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4963
$as_echo "no" >&6; }
 
4964
fi
 
4965
 
 
4966
 
 
4967
    test -n "$DUMPBIN" && break
 
4968
  done
 
4969
fi
 
4970
if test -z "$DUMPBIN"; then
 
4971
  ac_ct_DUMPBIN=$DUMPBIN
 
4972
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4973
do
 
4974
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4975
set dummy $ac_prog; ac_word=$2
 
4976
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4977
$as_echo_n "checking for $ac_word... " >&6; }
 
4978
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4979
  $as_echo_n "(cached) " >&6
 
4980
else
 
4981
  if test -n "$ac_ct_DUMPBIN"; then
 
4982
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4983
else
 
4984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4985
for as_dir in $PATH
 
4986
do
 
4987
  IFS=$as_save_IFS
 
4988
  test -z "$as_dir" && as_dir=.
 
4989
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4990
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4991
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4992
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4993
    break 2
 
4994
  fi
 
4995
done
 
4996
done
 
4997
IFS=$as_save_IFS
 
4998
 
 
4999
fi
 
5000
fi
 
5001
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5002
if test -n "$ac_ct_DUMPBIN"; then
 
5003
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
5004
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5005
else
 
5006
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5007
$as_echo "no" >&6; }
 
5008
fi
 
5009
 
 
5010
 
 
5011
  test -n "$ac_ct_DUMPBIN" && break
 
5012
done
 
5013
 
 
5014
  if test "x$ac_ct_DUMPBIN" = x; then
 
5015
    DUMPBIN=":"
 
5016
  else
 
5017
    case $cross_compiling:$ac_tool_warned in
 
5018
yes:)
 
5019
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5020
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5021
ac_tool_warned=yes ;;
 
5022
esac
 
5023
    DUMPBIN=$ac_ct_DUMPBIN
 
5024
  fi
 
5025
fi
 
5026
 
 
5027
 
 
5028
  if test "$DUMPBIN" != ":"; then
 
5029
    NM="$DUMPBIN"
 
5030
  fi
 
5031
fi
 
5032
test -z "$NM" && NM=nm
 
5033
 
 
5034
 
 
5035
 
 
5036
 
 
5037
 
 
5038
 
 
5039
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
5040
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5041
if test "${lt_cv_nm_interface+set}" = set; then
 
5042
  $as_echo_n "(cached) " >&6
 
5043
else
 
5044
  lt_cv_nm_interface="BSD nm"
 
5045
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5046
  (eval echo "\"\$as_me:5046: $ac_compile\"" >&5)
 
5047
  (eval "$ac_compile" 2>conftest.err)
 
5048
  cat conftest.err >&5
 
5049
  (eval echo "\"\$as_me:5049: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5050
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5051
  cat conftest.err >&5
 
5052
  (eval echo "\"\$as_me:5052: output\"" >&5)
 
5053
  cat conftest.out >&5
 
5054
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5055
    lt_cv_nm_interface="MS dumpbin"
 
5056
  fi
 
5057
  rm -f conftest*
 
5058
fi
 
5059
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
5060
$as_echo "$lt_cv_nm_interface" >&6; }
 
5061
 
 
5062
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5063
$as_echo_n "checking whether ln -s works... " >&6; }
 
5064
LN_S=$as_ln_s
 
5065
if test "$LN_S" = "ln -s"; then
 
5066
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
5067
$as_echo "yes" >&6; }
 
5068
else
 
5069
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5070
$as_echo "no, using $LN_S" >&6; }
 
5071
fi
 
5072
 
 
5073
# find the maximum length of command line arguments
 
5074
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5075
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5076
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5077
  $as_echo_n "(cached) " >&6
 
5078
else
 
5079
    i=0
 
5080
  teststring="ABCD"
 
5081
 
 
5082
  case $build_os in
 
5083
  msdosdjgpp*)
 
5084
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5085
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5086
    # during glob expansion).  Even if it were fixed, the result of this
 
5087
    # check would be larger than it should be.
 
5088
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5089
    ;;
 
5090
 
 
5091
  gnu*)
 
5092
    # Under GNU Hurd, this test is not required because there is
 
5093
    # no limit to the length of command line arguments.
 
5094
    # Libtool will interpret -1 as no limit whatsoever
 
5095
    lt_cv_sys_max_cmd_len=-1;
 
5096
    ;;
 
5097
 
 
5098
  cygwin* | mingw* | cegcc*)
 
5099
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5100
    # about 5 minutes as the teststring grows exponentially.
 
5101
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5102
    # you end up with a "frozen" computer, even though with patience
 
5103
    # the test eventually succeeds (with a max line length of 256k).
 
5104
    # Instead, let's just punt: use the minimum linelength reported by
 
5105
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5106
    lt_cv_sys_max_cmd_len=8192;
 
5107
    ;;
 
5108
 
 
5109
  amigaos*)
 
5110
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5111
    # So we just punt and use a minimum line length of 8192.
 
5112
    lt_cv_sys_max_cmd_len=8192;
 
5113
    ;;
 
5114
 
 
5115
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5116
    # This has been around since 386BSD, at least.  Likely further.
 
5117
    if test -x /sbin/sysctl; then
 
5118
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5119
    elif test -x /usr/sbin/sysctl; then
 
5120
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5121
    else
 
5122
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5123
    fi
 
5124
    # And add a safety zone
 
5125
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5126
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5127
    ;;
 
5128
 
 
5129
  interix*)
 
5130
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5131
    lt_cv_sys_max_cmd_len=196608
 
5132
    ;;
 
5133
 
 
5134
  osf*)
 
5135
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5136
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5137
    # nice to cause kernel panics so lets avoid the loop below.
 
5138
    # First set a reasonable default.
 
5139
    lt_cv_sys_max_cmd_len=16384
 
5140
    #
 
5141
    if test -x /sbin/sysconfig; then
 
5142
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5143
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5144
      esac
 
5145
    fi
 
5146
    ;;
 
5147
  sco3.2v5*)
 
5148
    lt_cv_sys_max_cmd_len=102400
 
5149
    ;;
 
5150
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5151
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5152
    if test -n "$kargmax"; then
 
5153
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5154
    else
 
5155
      lt_cv_sys_max_cmd_len=32768
 
5156
    fi
 
5157
    ;;
 
5158
  *)
 
5159
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5160
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5161
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5162
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5163
    else
 
5164
      # Make teststring a little bigger before we do anything with it.
 
5165
      # a 1K string should be a reasonable start.
 
5166
      for i in 1 2 3 4 5 6 7 8 ; do
 
5167
        teststring=$teststring$teststring
 
5168
      done
 
5169
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5170
      # If test is not a shell built-in, we'll probably end up computing a
 
5171
      # maximum length that is only half of the actual maximum length, but
 
5172
      # we can't tell.
 
5173
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5174
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5175
              test $i != 17 # 1/2 MB should be enough
 
5176
      do
 
5177
        i=`expr $i + 1`
 
5178
        teststring=$teststring$teststring
 
5179
      done
 
5180
      # Only check the string length outside the loop.
 
5181
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5182
      teststring=
 
5183
      # Add a significant safety factor because C++ compilers can tack on
 
5184
      # massive amounts of additional arguments before passing them to the
 
5185
      # linker.  It appears as though 1/2 is a usable value.
 
5186
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5187
    fi
 
5188
    ;;
 
5189
  esac
 
5190
 
 
5191
fi
 
5192
 
 
5193
if test -n $lt_cv_sys_max_cmd_len ; then
 
5194
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5195
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5196
else
 
5197
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
5198
$as_echo "none" >&6; }
 
5199
fi
 
5200
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5201
 
 
5202
 
 
5203
 
 
5204
 
 
5205
 
 
5206
 
 
5207
: ${CP="cp -f"}
 
5208
: ${MV="mv -f"}
 
5209
: ${RM="rm -f"}
 
5210
 
 
5211
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
5212
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5213
# Try some XSI features
 
5214
xsi_shell=no
 
5215
( _lt_dummy="a/b/c"
 
5216
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5217
      = c,a/b,, \
 
5218
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5219
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5220
  && xsi_shell=yes
 
5221
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
5222
$as_echo "$xsi_shell" >&6; }
 
5223
 
 
5224
 
 
5225
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
5226
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5227
lt_shell_append=no
 
5228
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5229
    >/dev/null 2>&1 \
 
5230
  && lt_shell_append=yes
 
5231
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
5232
$as_echo "$lt_shell_append" >&6; }
 
5233
 
 
5234
 
 
5235
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5236
  lt_unset=unset
 
5237
else
 
5238
  lt_unset=false
 
5239
fi
 
5240
 
 
5241
 
 
5242
 
 
5243
 
 
5244
 
 
5245
# test EBCDIC or ASCII
 
5246
case `echo X|tr X '\101'` in
 
5247
 A) # ASCII based system
 
5248
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5249
  lt_SP2NL='tr \040 \012'
 
5250
  lt_NL2SP='tr \015\012 \040\040'
 
5251
  ;;
 
5252
 *) # EBCDIC based system
 
5253
  lt_SP2NL='tr \100 \n'
 
5254
  lt_NL2SP='tr \r\n \100\100'
 
5255
  ;;
 
5256
esac
 
5257
 
 
5258
 
 
5259
 
 
5260
 
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
 
5266
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5267
$as_echo_n "checking for $LD option to reload object files... " >&6; }
3721
5268
if test "${lt_cv_ld_reload_flag+set}" = set; then
3722
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5269
  $as_echo_n "(cached) " >&6
3723
5270
else
3724
5271
  lt_cv_ld_reload_flag='-r'
3725
5272
fi
3726
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3727
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
5273
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5274
$as_echo "$lt_cv_ld_reload_flag" >&6; }
3728
5275
reload_flag=$lt_cv_ld_reload_flag
3729
5276
case $reload_flag in
3730
5277
"" | " "*) ;;
3734
5281
case $host_os in
3735
5282
  darwin*)
3736
5283
    if test "$GCC" = yes; then
3737
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
5284
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3738
5285
    else
3739
5286
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3740
5287
    fi
3741
5288
    ;;
3742
5289
esac
3743
5290
 
3744
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3745
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3746
 
if test "${lt_cv_path_NM+set}" = set; then
3747
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3748
 
else
3749
 
  if test -n "$NM"; then
3750
 
  # Let the user override the test.
3751
 
  lt_cv_path_NM="$NM"
3752
 
else
3753
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3754
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3755
 
    IFS="$lt_save_ifs"
3756
 
    test -z "$ac_dir" && ac_dir=.
3757
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3758
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3759
 
      # Check to see if the nm accepts a BSD-compat flag.
3760
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3761
 
      #   nm: unknown option "B" ignored
3762
 
      # Tru64's nm complains that /dev/null is an invalid object file
3763
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3764
 
      */dev/null* | *'Invalid file or object type'*)
3765
 
        lt_cv_path_NM="$tmp_nm -B"
3766
 
        break
3767
 
        ;;
3768
 
      *)
3769
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3770
 
        */dev/null*)
3771
 
          lt_cv_path_NM="$tmp_nm -p"
3772
 
          break
3773
 
          ;;
3774
 
        *)
3775
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3776
 
          continue # so that we can try to find one that supports BSD flags
3777
 
          ;;
3778
 
        esac
3779
 
      esac
3780
 
    fi
3781
 
  done
3782
 
  IFS="$lt_save_ifs"
3783
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3784
 
fi
3785
 
fi
3786
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3787
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
3788
 
NM="$lt_cv_path_NM"
3789
 
 
3790
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3792
 
LN_S=$as_ln_s
3793
 
if test "$LN_S" = "ln -s"; then
3794
 
  echo "$as_me:$LINENO: result: yes" >&5
3795
 
echo "${ECHO_T}yes" >&6
3796
 
else
3797
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798
 
echo "${ECHO_T}no, using $LN_S" >&6
3799
 
fi
3800
 
 
3801
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3802
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
5291
 
 
5292
 
 
5293
 
 
5294
 
 
5295
 
 
5296
 
 
5297
 
 
5298
 
 
5299
if test -n "$ac_tool_prefix"; then
 
5300
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5301
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5302
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5303
$as_echo_n "checking for $ac_word... " >&6; }
 
5304
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
5305
  $as_echo_n "(cached) " >&6
 
5306
else
 
5307
  if test -n "$OBJDUMP"; then
 
5308
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5309
else
 
5310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5311
for as_dir in $PATH
 
5312
do
 
5313
  IFS=$as_save_IFS
 
5314
  test -z "$as_dir" && as_dir=.
 
5315
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5317
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5318
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5319
    break 2
 
5320
  fi
 
5321
done
 
5322
done
 
5323
IFS=$as_save_IFS
 
5324
 
 
5325
fi
 
5326
fi
 
5327
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5328
if test -n "$OBJDUMP"; then
 
5329
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
5330
$as_echo "$OBJDUMP" >&6; }
 
5331
else
 
5332
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5333
$as_echo "no" >&6; }
 
5334
fi
 
5335
 
 
5336
 
 
5337
fi
 
5338
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5339
  ac_ct_OBJDUMP=$OBJDUMP
 
5340
  # Extract the first word of "objdump", so it can be a program name with args.
 
5341
set dummy objdump; ac_word=$2
 
5342
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5343
$as_echo_n "checking for $ac_word... " >&6; }
 
5344
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
5345
  $as_echo_n "(cached) " >&6
 
5346
else
 
5347
  if test -n "$ac_ct_OBJDUMP"; then
 
5348
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5349
else
 
5350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5351
for as_dir in $PATH
 
5352
do
 
5353
  IFS=$as_save_IFS
 
5354
  test -z "$as_dir" && as_dir=.
 
5355
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5357
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5358
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5359
    break 2
 
5360
  fi
 
5361
done
 
5362
done
 
5363
IFS=$as_save_IFS
 
5364
 
 
5365
fi
 
5366
fi
 
5367
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5368
if test -n "$ac_ct_OBJDUMP"; then
 
5369
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
5370
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5371
else
 
5372
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5373
$as_echo "no" >&6; }
 
5374
fi
 
5375
 
 
5376
  if test "x$ac_ct_OBJDUMP" = x; then
 
5377
    OBJDUMP="false"
 
5378
  else
 
5379
    case $cross_compiling:$ac_tool_warned in
 
5380
yes:)
 
5381
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5382
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5383
ac_tool_warned=yes ;;
 
5384
esac
 
5385
    OBJDUMP=$ac_ct_OBJDUMP
 
5386
  fi
 
5387
else
 
5388
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5389
fi
 
5390
 
 
5391
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5392
 
 
5393
 
 
5394
 
 
5395
 
 
5396
 
 
5397
 
 
5398
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
5399
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
3803
5400
if test "${lt_cv_deplibs_check_method+set}" = set; then
3804
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5401
  $as_echo_n "(cached) " >&6
3805
5402
else
3806
5403
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3807
5404
lt_cv_file_magic_test_file=
3818
5415
# whether `pass_all' will *always* work, you probably want this one.
3819
5416
 
3820
5417
case $host_os in
3821
 
aix4* | aix5*)
 
5418
aix[4-9]*)
3822
5419
  lt_cv_deplibs_check_method=pass_all
3823
5420
  ;;
3824
5421
 
3840
5437
 
3841
5438
mingw* | pw32*)
3842
5439
  # Base MSYS/MinGW do not provide the 'file' command needed by
3843
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3844
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5440
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5441
  # unless we find 'file', for example because we are cross-compiling.
 
5442
  if ( file / ) >/dev/null 2>&1; then
 
5443
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5444
    lt_cv_file_magic_cmd='func_win32_libid'
 
5445
  else
 
5446
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5447
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5448
  fi
 
5449
  ;;
 
5450
 
 
5451
cegcc)
 
5452
  # use the weaker test based on 'objdump'. See mingw*.
 
5453
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3845
5454
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3846
5455
  ;;
3847
5456
 
3849
5458
  lt_cv_deplibs_check_method=pass_all
3850
5459
  ;;
3851
5460
 
3852
 
freebsd* | kfreebsd*-gnu | dragonfly*)
3853
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5461
freebsd* | dragonfly*)
 
5462
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3854
5463
    case $host_cpu in
3855
5464
    i*86 )
3856
5465
      # Not sure whether the presence of OpenBSD here was a mistake.
3871
5480
 
3872
5481
hpux10.20* | hpux11*)
3873
5482
  lt_cv_file_magic_cmd=/usr/bin/file
3874
 
  case "$host_cpu" in
 
5483
  case $host_cpu in
3875
5484
  ia64*)
3876
5485
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3877
5486
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3887
5496
  esac
3888
5497
  ;;
3889
5498
 
 
5499
interix[3-9]*)
 
5500
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5501
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5502
  ;;
 
5503
 
3890
5504
irix5* | irix6* | nonstopux*)
3891
5505
  case $LD in
3892
5506
  *-32|*"-32 ") libmagic=32-bit;;
3898
5512
  ;;
3899
5513
 
3900
5514
# This must be Linux ELF.
3901
 
linux*)
 
5515
linux* | k*bsd*-gnu)
3902
5516
  lt_cv_deplibs_check_method=pass_all
3903
5517
  ;;
3904
5518
 
3905
5519
netbsd*)
3906
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5520
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3907
5521
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3908
5522
  else
3909
5523
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3916
5530
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3917
5531
  ;;
3918
5532
 
3919
 
nto-qnx*)
3920
 
  lt_cv_deplibs_check_method=unknown
 
5533
*nto* | *qnx*)
 
5534
  lt_cv_deplibs_check_method=pass_all
3921
5535
  ;;
3922
5536
 
3923
5537
openbsd*)
3924
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5538
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3925
5539
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3926
5540
  else
3927
5541
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3932
5546
  lt_cv_deplibs_check_method=pass_all
3933
5547
  ;;
3934
5548
 
3935
 
sco3.2v5*)
 
5549
rdos*)
3936
5550
  lt_cv_deplibs_check_method=pass_all
3937
5551
  ;;
3938
5552
 
3940
5554
  lt_cv_deplibs_check_method=pass_all
3941
5555
  ;;
3942
5556
 
3943
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5557
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5558
  lt_cv_deplibs_check_method=pass_all
 
5559
  ;;
 
5560
 
 
5561
sysv4 | sysv4.3*)
3944
5562
  case $host_vendor in
3945
5563
  motorola)
3946
5564
    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]'
3961
5579
  siemens)
3962
5580
    lt_cv_deplibs_check_method=pass_all
3963
5581
    ;;
 
5582
  pc)
 
5583
    lt_cv_deplibs_check_method=pass_all
 
5584
    ;;
3964
5585
  esac
3965
5586
  ;;
3966
5587
 
3967
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5588
tpf*)
3968
5589
  lt_cv_deplibs_check_method=pass_all
3969
5590
  ;;
3970
5591
esac
3971
5592
 
3972
5593
fi
3973
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3974
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
5594
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5595
$as_echo "$lt_cv_deplibs_check_method" >&6; }
3975
5596
file_magic_cmd=$lt_cv_file_magic_cmd
3976
5597
deplibs_check_method=$lt_cv_deplibs_check_method
3977
5598
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3979
5600
 
3980
5601
 
3981
5602
 
 
5603
 
 
5604
 
 
5605
 
 
5606
 
 
5607
 
 
5608
 
 
5609
 
 
5610
 
 
5611
if test -n "$ac_tool_prefix"; then
 
5612
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5613
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5614
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5615
$as_echo_n "checking for $ac_word... " >&6; }
 
5616
if test "${ac_cv_prog_AR+set}" = set; then
 
5617
  $as_echo_n "(cached) " >&6
 
5618
else
 
5619
  if test -n "$AR"; then
 
5620
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5621
else
 
5622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5623
for as_dir in $PATH
 
5624
do
 
5625
  IFS=$as_save_IFS
 
5626
  test -z "$as_dir" && as_dir=.
 
5627
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5628
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5629
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5630
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5631
    break 2
 
5632
  fi
 
5633
done
 
5634
done
 
5635
IFS=$as_save_IFS
 
5636
 
 
5637
fi
 
5638
fi
 
5639
AR=$ac_cv_prog_AR
 
5640
if test -n "$AR"; then
 
5641
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
5642
$as_echo "$AR" >&6; }
 
5643
else
 
5644
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5645
$as_echo "no" >&6; }
 
5646
fi
 
5647
 
 
5648
 
 
5649
fi
 
5650
if test -z "$ac_cv_prog_AR"; then
 
5651
  ac_ct_AR=$AR
 
5652
  # Extract the first word of "ar", so it can be a program name with args.
 
5653
set dummy ar; ac_word=$2
 
5654
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5655
$as_echo_n "checking for $ac_word... " >&6; }
 
5656
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5657
  $as_echo_n "(cached) " >&6
 
5658
else
 
5659
  if test -n "$ac_ct_AR"; then
 
5660
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5661
else
 
5662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5663
for as_dir in $PATH
 
5664
do
 
5665
  IFS=$as_save_IFS
 
5666
  test -z "$as_dir" && as_dir=.
 
5667
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5668
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5669
    ac_cv_prog_ac_ct_AR="ar"
 
5670
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5671
    break 2
 
5672
  fi
 
5673
done
 
5674
done
 
5675
IFS=$as_save_IFS
 
5676
 
 
5677
fi
 
5678
fi
 
5679
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5680
if test -n "$ac_ct_AR"; then
 
5681
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5682
$as_echo "$ac_ct_AR" >&6; }
 
5683
else
 
5684
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5685
$as_echo "no" >&6; }
 
5686
fi
 
5687
 
 
5688
  if test "x$ac_ct_AR" = x; then
 
5689
    AR="false"
 
5690
  else
 
5691
    case $cross_compiling:$ac_tool_warned in
 
5692
yes:)
 
5693
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5694
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5695
ac_tool_warned=yes ;;
 
5696
esac
 
5697
    AR=$ac_ct_AR
 
5698
  fi
 
5699
else
 
5700
  AR="$ac_cv_prog_AR"
 
5701
fi
 
5702
 
 
5703
test -z "$AR" && AR=ar
 
5704
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
 
 
5713
 
 
5714
 
 
5715
 
 
5716
if test -n "$ac_tool_prefix"; then
 
5717
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5718
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5719
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5720
$as_echo_n "checking for $ac_word... " >&6; }
 
5721
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5722
  $as_echo_n "(cached) " >&6
 
5723
else
 
5724
  if test -n "$STRIP"; then
 
5725
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5726
else
 
5727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5728
for as_dir in $PATH
 
5729
do
 
5730
  IFS=$as_save_IFS
 
5731
  test -z "$as_dir" && as_dir=.
 
5732
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5733
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5734
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5735
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5736
    break 2
 
5737
  fi
 
5738
done
 
5739
done
 
5740
IFS=$as_save_IFS
 
5741
 
 
5742
fi
 
5743
fi
 
5744
STRIP=$ac_cv_prog_STRIP
 
5745
if test -n "$STRIP"; then
 
5746
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
5747
$as_echo "$STRIP" >&6; }
 
5748
else
 
5749
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5750
$as_echo "no" >&6; }
 
5751
fi
 
5752
 
 
5753
 
 
5754
fi
 
5755
if test -z "$ac_cv_prog_STRIP"; then
 
5756
  ac_ct_STRIP=$STRIP
 
5757
  # Extract the first word of "strip", so it can be a program name with args.
 
5758
set dummy strip; ac_word=$2
 
5759
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5760
$as_echo_n "checking for $ac_word... " >&6; }
 
5761
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5762
  $as_echo_n "(cached) " >&6
 
5763
else
 
5764
  if test -n "$ac_ct_STRIP"; then
 
5765
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5766
else
 
5767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5768
for as_dir in $PATH
 
5769
do
 
5770
  IFS=$as_save_IFS
 
5771
  test -z "$as_dir" && as_dir=.
 
5772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5773
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5774
    ac_cv_prog_ac_ct_STRIP="strip"
 
5775
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5776
    break 2
 
5777
  fi
 
5778
done
 
5779
done
 
5780
IFS=$as_save_IFS
 
5781
 
 
5782
fi
 
5783
fi
 
5784
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5785
if test -n "$ac_ct_STRIP"; then
 
5786
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5787
$as_echo "$ac_ct_STRIP" >&6; }
 
5788
else
 
5789
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5790
$as_echo "no" >&6; }
 
5791
fi
 
5792
 
 
5793
  if test "x$ac_ct_STRIP" = x; then
 
5794
    STRIP=":"
 
5795
  else
 
5796
    case $cross_compiling:$ac_tool_warned in
 
5797
yes:)
 
5798
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5800
ac_tool_warned=yes ;;
 
5801
esac
 
5802
    STRIP=$ac_ct_STRIP
 
5803
  fi
 
5804
else
 
5805
  STRIP="$ac_cv_prog_STRIP"
 
5806
fi
 
5807
 
 
5808
test -z "$STRIP" && STRIP=:
 
5809
 
 
5810
 
 
5811
 
 
5812
 
 
5813
 
 
5814
 
 
5815
if test -n "$ac_tool_prefix"; then
 
5816
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5817
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5818
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5819
$as_echo_n "checking for $ac_word... " >&6; }
 
5820
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5821
  $as_echo_n "(cached) " >&6
 
5822
else
 
5823
  if test -n "$RANLIB"; then
 
5824
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5825
else
 
5826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5827
for as_dir in $PATH
 
5828
do
 
5829
  IFS=$as_save_IFS
 
5830
  test -z "$as_dir" && as_dir=.
 
5831
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5832
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5833
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5834
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5835
    break 2
 
5836
  fi
 
5837
done
 
5838
done
 
5839
IFS=$as_save_IFS
 
5840
 
 
5841
fi
 
5842
fi
 
5843
RANLIB=$ac_cv_prog_RANLIB
 
5844
if test -n "$RANLIB"; then
 
5845
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5846
$as_echo "$RANLIB" >&6; }
 
5847
else
 
5848
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5849
$as_echo "no" >&6; }
 
5850
fi
 
5851
 
 
5852
 
 
5853
fi
 
5854
if test -z "$ac_cv_prog_RANLIB"; then
 
5855
  ac_ct_RANLIB=$RANLIB
 
5856
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5857
set dummy ranlib; ac_word=$2
 
5858
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5859
$as_echo_n "checking for $ac_word... " >&6; }
 
5860
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5861
  $as_echo_n "(cached) " >&6
 
5862
else
 
5863
  if test -n "$ac_ct_RANLIB"; then
 
5864
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5865
else
 
5866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5867
for as_dir in $PATH
 
5868
do
 
5869
  IFS=$as_save_IFS
 
5870
  test -z "$as_dir" && as_dir=.
 
5871
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5872
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5873
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5874
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5875
    break 2
 
5876
  fi
 
5877
done
 
5878
done
 
5879
IFS=$as_save_IFS
 
5880
 
 
5881
fi
 
5882
fi
 
5883
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5884
if test -n "$ac_ct_RANLIB"; then
 
5885
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5886
$as_echo "$ac_ct_RANLIB" >&6; }
 
5887
else
 
5888
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5889
$as_echo "no" >&6; }
 
5890
fi
 
5891
 
 
5892
  if test "x$ac_ct_RANLIB" = x; then
 
5893
    RANLIB=":"
 
5894
  else
 
5895
    case $cross_compiling:$ac_tool_warned in
 
5896
yes:)
 
5897
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5898
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5899
ac_tool_warned=yes ;;
 
5900
esac
 
5901
    RANLIB=$ac_ct_RANLIB
 
5902
  fi
 
5903
else
 
5904
  RANLIB="$ac_cv_prog_RANLIB"
 
5905
fi
 
5906
 
 
5907
test -z "$RANLIB" && RANLIB=:
 
5908
 
 
5909
 
 
5910
 
 
5911
 
 
5912
 
 
5913
 
 
5914
# Determine commands to create old-style static archives.
 
5915
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5916
old_postinstall_cmds='chmod 644 $oldlib'
 
5917
old_postuninstall_cmds=
 
5918
 
 
5919
if test -n "$RANLIB"; then
 
5920
  case $host_os in
 
5921
  openbsd*)
 
5922
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5923
    ;;
 
5924
  *)
 
5925
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5926
    ;;
 
5927
  esac
 
5928
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5929
fi
 
5930
 
 
5931
 
 
5932
 
 
5933
 
 
5934
 
 
5935
 
 
5936
 
 
5937
 
 
5938
 
 
5939
 
 
5940
 
 
5941
 
 
5942
 
 
5943
 
 
5944
 
 
5945
 
 
5946
 
 
5947
 
 
5948
 
 
5949
 
 
5950
 
 
5951
 
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
 
 
5962
 
 
5963
 
3982
5964
# If no C compiler was specified, use CC.
3983
5965
LTCC=${LTCC-"$CC"}
3984
5966
 
 
5967
# If no C compiler flags were specified, use CFLAGS.
 
5968
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5969
 
3985
5970
# Allow CC to be a program name with arguments.
3986
5971
compiler=$CC
3987
5972
 
3988
5973
 
3989
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3990
 
if test "${enable_libtool_lock+set}" = set; then
3991
 
  enableval="$enable_libtool_lock"
3992
 
 
3993
 
fi;
3994
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3995
 
 
3996
 
# Some flags need to be propagated to the compiler or linker for good
3997
 
# libtool support.
3998
 
case $host in
3999
 
ia64-*-hpux*)
4000
 
  # Find out which ABI we are using.
4001
 
  echo 'int i;' > conftest.$ac_ext
4002
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003
 
  (eval $ac_compile) 2>&5
4004
 
  ac_status=$?
4005
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006
 
  (exit $ac_status); }; then
4007
 
    case `/usr/bin/file conftest.$ac_objext` in
4008
 
    *ELF-32*)
4009
 
      HPUX_IA64_MODE="32"
4010
 
      ;;
4011
 
    *ELF-64*)
4012
 
      HPUX_IA64_MODE="64"
4013
 
      ;;
4014
 
    esac
4015
 
  fi
4016
 
  rm -rf conftest*
4017
 
  ;;
4018
 
*-*-irix6*)
4019
 
  # Find out which ABI we are using.
4020
 
  echo '#line 4020 "configure"' > conftest.$ac_ext
4021
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022
 
  (eval $ac_compile) 2>&5
4023
 
  ac_status=$?
4024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
 
  (exit $ac_status); }; then
4026
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4027
 
    case `/usr/bin/file conftest.$ac_objext` in
4028
 
    *32-bit*)
4029
 
      LD="${LD-ld} -melf32bsmip"
4030
 
      ;;
4031
 
    *N32*)
4032
 
      LD="${LD-ld} -melf32bmipn32"
4033
 
      ;;
4034
 
    *64-bit*)
4035
 
      LD="${LD-ld} -melf64bmip"
4036
 
      ;;
4037
 
    esac
4038
 
   else
4039
 
    case `/usr/bin/file conftest.$ac_objext` in
4040
 
    *32-bit*)
4041
 
      LD="${LD-ld} -32"
4042
 
      ;;
4043
 
    *N32*)
4044
 
      LD="${LD-ld} -n32"
4045
 
      ;;
4046
 
    *64-bit*)
4047
 
      LD="${LD-ld} -64"
4048
 
      ;;
4049
 
    esac
4050
 
   fi
4051
 
  fi
4052
 
  rm -rf conftest*
4053
 
  ;;
4054
 
 
4055
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4056
 
  # Find out which ABI we are using.
4057
 
  echo 'int i;' > conftest.$ac_ext
4058
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059
 
  (eval $ac_compile) 2>&5
4060
 
  ac_status=$?
4061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062
 
  (exit $ac_status); }; then
4063
 
    case "`/usr/bin/file conftest.o`" in
4064
 
    *32-bit*)
4065
 
      case $host in
4066
 
        x86_64-*linux*)
4067
 
          LD="${LD-ld} -m elf_i386"
4068
 
          ;;
4069
 
        ppc64-*linux*|powerpc64-*linux*)
4070
 
          LD="${LD-ld} -m elf32ppclinux"
4071
 
          ;;
4072
 
        s390x-*linux*)
4073
 
          LD="${LD-ld} -m elf_s390"
4074
 
          ;;
4075
 
        sparc64-*linux*)
4076
 
          LD="${LD-ld} -m elf32_sparc"
4077
 
          ;;
4078
 
      esac
4079
 
      ;;
4080
 
    *64-bit*)
4081
 
      case $host in
4082
 
        x86_64-*linux*)
4083
 
          LD="${LD-ld} -m elf_x86_64"
4084
 
          ;;
4085
 
        ppc*-*linux*|powerpc*-*linux*)
4086
 
          LD="${LD-ld} -m elf64ppc"
4087
 
          ;;
4088
 
        s390*-*linux*)
4089
 
          LD="${LD-ld} -m elf64_s390"
4090
 
          ;;
4091
 
        sparc*-*linux*)
4092
 
          LD="${LD-ld} -m elf64_sparc"
4093
 
          ;;
4094
 
      esac
4095
 
      ;;
4096
 
    esac
4097
 
  fi
4098
 
  rm -rf conftest*
4099
 
  ;;
4100
 
 
4101
 
*-*-linux*)
4102
 
  # Test if the compiler is 64bit
4103
 
  echo 'int i;' > conftest.$ac_ext
4104
 
  lt_cv_cc_64bit_output=no
4105
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106
 
  (eval $ac_compile) 2>&5
4107
 
  ac_status=$?
4108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109
 
  (exit $ac_status); }; then
4110
 
    case `/usr/bin/file conftest.$ac_objext` in
4111
 
    *"ELF 64"*)
4112
 
      lt_cv_cc_64bit_output=yes
4113
 
      ;;
4114
 
    esac
4115
 
  fi
4116
 
  rm -rf conftest*
4117
 
  ;;
4118
 
 
4119
 
*-*-sco3.2v5*)
4120
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4121
 
  SAVE_CFLAGS="$CFLAGS"
4122
 
  CFLAGS="$CFLAGS -belf"
4123
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4124
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4125
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4126
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4127
 
else
4128
 
  ac_ext=c
4129
 
ac_cpp='$CPP $CPPFLAGS'
4130
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
 
 
4134
 
     cat >conftest.$ac_ext <<_ACEOF
4135
 
/* confdefs.h.  */
4136
 
_ACEOF
4137
 
cat confdefs.h >>conftest.$ac_ext
4138
 
cat >>conftest.$ac_ext <<_ACEOF
4139
 
/* end confdefs.h.  */
4140
 
 
4141
 
int
4142
 
main ()
4143
 
{
4144
 
 
4145
 
  ;
4146
 
  return 0;
4147
 
}
4148
 
_ACEOF
4149
 
rm -f conftest.$ac_objext conftest$ac_exeext
4150
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4151
 
  (eval $ac_link) 2>conftest.er1
4152
 
  ac_status=$?
4153
 
  grep -v '^ *+' conftest.er1 >conftest.err
4154
 
  rm -f conftest.er1
4155
 
  cat conftest.err >&5
4156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157
 
  (exit $ac_status); } &&
4158
 
         { ac_try='test -z "$ac_c_werror_flag"
4159
 
                         || test ! -s conftest.err'
4160
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161
 
  (eval $ac_try) 2>&5
4162
 
  ac_status=$?
4163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164
 
  (exit $ac_status); }; } &&
4165
 
         { ac_try='test -s conftest$ac_exeext'
4166
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167
 
  (eval $ac_try) 2>&5
4168
 
  ac_status=$?
4169
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170
 
  (exit $ac_status); }; }; then
4171
 
  lt_cv_cc_needs_belf=yes
4172
 
else
4173
 
  echo "$as_me: failed program was:" >&5
4174
 
sed 's/^/| /' conftest.$ac_ext >&5
4175
 
 
4176
 
lt_cv_cc_needs_belf=no
4177
 
fi
4178
 
rm -f conftest.err conftest.$ac_objext \
4179
 
      conftest$ac_exeext conftest.$ac_ext
4180
 
     ac_ext=c
4181
 
ac_cpp='$CPP $CPPFLAGS'
4182
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
 
 
4186
 
fi
4187
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4188
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4189
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4190
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4191
 
    CFLAGS="$SAVE_CFLAGS"
4192
 
  fi
4193
 
  ;;
4194
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4195
 
  if test -n "$ac_tool_prefix"; then
4196
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4197
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4198
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4199
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4201
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4202
 
else
4203
 
  if test -n "$DLLTOOL"; then
4204
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4205
 
else
4206
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207
 
for as_dir in $PATH
4208
 
do
4209
 
  IFS=$as_save_IFS
4210
 
  test -z "$as_dir" && as_dir=.
4211
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4212
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4214
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215
 
    break 2
4216
 
  fi
4217
 
done
4218
 
done
4219
 
 
4220
 
fi
4221
 
fi
4222
 
DLLTOOL=$ac_cv_prog_DLLTOOL
4223
 
if test -n "$DLLTOOL"; then
4224
 
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4225
 
echo "${ECHO_T}$DLLTOOL" >&6
4226
 
else
4227
 
  echo "$as_me:$LINENO: result: no" >&5
4228
 
echo "${ECHO_T}no" >&6
4229
 
fi
4230
 
 
4231
 
fi
4232
 
if test -z "$ac_cv_prog_DLLTOOL"; then
4233
 
  ac_ct_DLLTOOL=$DLLTOOL
4234
 
  # Extract the first word of "dlltool", so it can be a program name with args.
4235
 
set dummy dlltool; ac_word=$2
4236
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4237
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4239
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4240
 
else
4241
 
  if test -n "$ac_ct_DLLTOOL"; then
4242
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4243
 
else
4244
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245
 
for as_dir in $PATH
4246
 
do
4247
 
  IFS=$as_save_IFS
4248
 
  test -z "$as_dir" && as_dir=.
4249
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4250
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4252
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253
 
    break 2
4254
 
  fi
4255
 
done
4256
 
done
4257
 
 
4258
 
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4259
 
fi
4260
 
fi
4261
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4262
 
if test -n "$ac_ct_DLLTOOL"; then
4263
 
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4264
 
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4265
 
else
4266
 
  echo "$as_me:$LINENO: result: no" >&5
4267
 
echo "${ECHO_T}no" >&6
4268
 
fi
4269
 
 
4270
 
  DLLTOOL=$ac_ct_DLLTOOL
4271
 
else
4272
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4273
 
fi
4274
 
 
4275
 
  if test -n "$ac_tool_prefix"; then
4276
 
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4277
 
set dummy ${ac_tool_prefix}as; ac_word=$2
4278
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4279
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4280
 
if test "${ac_cv_prog_AS+set}" = set; then
4281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4282
 
else
4283
 
  if test -n "$AS"; then
4284
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
4285
 
else
4286
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287
 
for as_dir in $PATH
4288
 
do
4289
 
  IFS=$as_save_IFS
4290
 
  test -z "$as_dir" && as_dir=.
4291
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4292
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293
 
    ac_cv_prog_AS="${ac_tool_prefix}as"
4294
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295
 
    break 2
4296
 
  fi
4297
 
done
4298
 
done
4299
 
 
4300
 
fi
4301
 
fi
4302
 
AS=$ac_cv_prog_AS
4303
 
if test -n "$AS"; then
4304
 
  echo "$as_me:$LINENO: result: $AS" >&5
4305
 
echo "${ECHO_T}$AS" >&6
4306
 
else
4307
 
  echo "$as_me:$LINENO: result: no" >&5
4308
 
echo "${ECHO_T}no" >&6
4309
 
fi
4310
 
 
4311
 
fi
4312
 
if test -z "$ac_cv_prog_AS"; then
4313
 
  ac_ct_AS=$AS
4314
 
  # Extract the first word of "as", so it can be a program name with args.
4315
 
set dummy as; ac_word=$2
4316
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4317
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4320
 
else
4321
 
  if test -n "$ac_ct_AS"; then
4322
 
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4323
 
else
4324
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325
 
for as_dir in $PATH
4326
 
do
4327
 
  IFS=$as_save_IFS
4328
 
  test -z "$as_dir" && as_dir=.
4329
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4330
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331
 
    ac_cv_prog_ac_ct_AS="as"
4332
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333
 
    break 2
4334
 
  fi
4335
 
done
4336
 
done
4337
 
 
4338
 
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4339
 
fi
4340
 
fi
4341
 
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4342
 
if test -n "$ac_ct_AS"; then
4343
 
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4344
 
echo "${ECHO_T}$ac_ct_AS" >&6
4345
 
else
4346
 
  echo "$as_me:$LINENO: result: no" >&5
4347
 
echo "${ECHO_T}no" >&6
4348
 
fi
4349
 
 
4350
 
  AS=$ac_ct_AS
4351
 
else
4352
 
  AS="$ac_cv_prog_AS"
4353
 
fi
4354
 
 
4355
 
  if test -n "$ac_tool_prefix"; then
4356
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4357
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4358
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4359
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4360
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4362
 
else
4363
 
  if test -n "$OBJDUMP"; then
4364
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4365
 
else
4366
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367
 
for as_dir in $PATH
4368
 
do
4369
 
  IFS=$as_save_IFS
4370
 
  test -z "$as_dir" && as_dir=.
4371
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4372
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4374
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375
 
    break 2
4376
 
  fi
4377
 
done
4378
 
done
4379
 
 
4380
 
fi
4381
 
fi
4382
 
OBJDUMP=$ac_cv_prog_OBJDUMP
4383
 
if test -n "$OBJDUMP"; then
4384
 
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4385
 
echo "${ECHO_T}$OBJDUMP" >&6
4386
 
else
4387
 
  echo "$as_me:$LINENO: result: no" >&5
4388
 
echo "${ECHO_T}no" >&6
4389
 
fi
4390
 
 
4391
 
fi
4392
 
if test -z "$ac_cv_prog_OBJDUMP"; then
4393
 
  ac_ct_OBJDUMP=$OBJDUMP
4394
 
  # Extract the first word of "objdump", so it can be a program name with args.
4395
 
set dummy objdump; ac_word=$2
4396
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4397
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4399
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4400
 
else
4401
 
  if test -n "$ac_ct_OBJDUMP"; then
4402
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4403
 
else
4404
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405
 
for as_dir in $PATH
4406
 
do
4407
 
  IFS=$as_save_IFS
4408
 
  test -z "$as_dir" && as_dir=.
4409
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4410
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4412
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413
 
    break 2
4414
 
  fi
4415
 
done
4416
 
done
4417
 
 
4418
 
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4419
 
fi
4420
 
fi
4421
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4422
 
if test -n "$ac_ct_OBJDUMP"; then
4423
 
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4424
 
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4425
 
else
4426
 
  echo "$as_me:$LINENO: result: no" >&5
4427
 
echo "${ECHO_T}no" >&6
4428
 
fi
4429
 
 
4430
 
  OBJDUMP=$ac_ct_OBJDUMP
4431
 
else
4432
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4433
 
fi
4434
 
 
4435
 
  ;;
4436
 
 
4437
 
esac
4438
 
 
4439
 
need_locks="$enable_libtool_lock"
4440
 
 
4441
 
 
4442
 
 
4443
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4444
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4445
 
if test "${ac_cv_header_stdc+set}" = set; then
4446
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4447
 
else
4448
 
  cat >conftest.$ac_ext <<_ACEOF
4449
 
/* confdefs.h.  */
4450
 
_ACEOF
4451
 
cat confdefs.h >>conftest.$ac_ext
4452
 
cat >>conftest.$ac_ext <<_ACEOF
4453
 
/* end confdefs.h.  */
4454
 
#include <stdlib.h>
4455
 
#include <stdarg.h>
4456
 
#include <string.h>
4457
 
#include <float.h>
4458
 
 
4459
 
int
4460
 
main ()
4461
 
{
4462
 
 
4463
 
  ;
4464
 
  return 0;
4465
 
}
4466
 
_ACEOF
4467
 
rm -f conftest.$ac_objext
4468
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469
 
  (eval $ac_compile) 2>conftest.er1
4470
 
  ac_status=$?
4471
 
  grep -v '^ *+' conftest.er1 >conftest.err
4472
 
  rm -f conftest.er1
4473
 
  cat conftest.err >&5
4474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
 
  (exit $ac_status); } &&
4476
 
         { ac_try='test -z "$ac_c_werror_flag"
4477
 
                         || test ! -s conftest.err'
4478
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479
 
  (eval $ac_try) 2>&5
4480
 
  ac_status=$?
4481
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482
 
  (exit $ac_status); }; } &&
4483
 
         { ac_try='test -s conftest.$ac_objext'
4484
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485
 
  (eval $ac_try) 2>&5
4486
 
  ac_status=$?
4487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488
 
  (exit $ac_status); }; }; then
4489
 
  ac_cv_header_stdc=yes
4490
 
else
4491
 
  echo "$as_me: failed program was:" >&5
4492
 
sed 's/^/| /' conftest.$ac_ext >&5
4493
 
 
4494
 
ac_cv_header_stdc=no
4495
 
fi
4496
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497
 
 
4498
 
if test $ac_cv_header_stdc = yes; then
4499
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4500
 
  cat >conftest.$ac_ext <<_ACEOF
4501
 
/* confdefs.h.  */
4502
 
_ACEOF
4503
 
cat confdefs.h >>conftest.$ac_ext
4504
 
cat >>conftest.$ac_ext <<_ACEOF
4505
 
/* end confdefs.h.  */
4506
 
#include <string.h>
4507
 
 
4508
 
_ACEOF
4509
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510
 
  $EGREP "memchr" >/dev/null 2>&1; then
4511
 
  :
4512
 
else
4513
 
  ac_cv_header_stdc=no
4514
 
fi
4515
 
rm -f conftest*
4516
 
 
4517
 
fi
4518
 
 
4519
 
if test $ac_cv_header_stdc = yes; then
4520
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521
 
  cat >conftest.$ac_ext <<_ACEOF
4522
 
/* confdefs.h.  */
4523
 
_ACEOF
4524
 
cat confdefs.h >>conftest.$ac_ext
4525
 
cat >>conftest.$ac_ext <<_ACEOF
4526
 
/* end confdefs.h.  */
4527
 
#include <stdlib.h>
4528
 
 
4529
 
_ACEOF
4530
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531
 
  $EGREP "free" >/dev/null 2>&1; then
4532
 
  :
4533
 
else
4534
 
  ac_cv_header_stdc=no
4535
 
fi
4536
 
rm -f conftest*
4537
 
 
4538
 
fi
4539
 
 
4540
 
if test $ac_cv_header_stdc = yes; then
4541
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4542
 
  if test "$cross_compiling" = yes; then
4543
 
  :
4544
 
else
4545
 
  cat >conftest.$ac_ext <<_ACEOF
4546
 
/* confdefs.h.  */
4547
 
_ACEOF
4548
 
cat confdefs.h >>conftest.$ac_ext
4549
 
cat >>conftest.$ac_ext <<_ACEOF
4550
 
/* end confdefs.h.  */
4551
 
#include <ctype.h>
4552
 
#if ((' ' & 0x0FF) == 0x020)
4553
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4554
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4555
 
#else
4556
 
# define ISLOWER(c) \
4557
 
                   (('a' <= (c) && (c) <= 'i') \
4558
 
                     || ('j' <= (c) && (c) <= 'r') \
4559
 
                     || ('s' <= (c) && (c) <= 'z'))
4560
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4561
 
#endif
4562
 
 
4563
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4564
 
int
4565
 
main ()
4566
 
{
4567
 
  int i;
4568
 
  for (i = 0; i < 256; i++)
4569
 
    if (XOR (islower (i), ISLOWER (i))
4570
 
        || toupper (i) != TOUPPER (i))
4571
 
      exit(2);
4572
 
  exit (0);
4573
 
}
4574
 
_ACEOF
4575
 
rm -f conftest$ac_exeext
4576
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577
 
  (eval $ac_link) 2>&5
4578
 
  ac_status=$?
4579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582
 
  (eval $ac_try) 2>&5
4583
 
  ac_status=$?
4584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
 
  (exit $ac_status); }; }; then
4586
 
  :
4587
 
else
4588
 
  echo "$as_me: program exited with status $ac_status" >&5
4589
 
echo "$as_me: failed program was:" >&5
4590
 
sed 's/^/| /' conftest.$ac_ext >&5
4591
 
 
4592
 
( exit $ac_status )
4593
 
ac_cv_header_stdc=no
4594
 
fi
4595
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4596
 
fi
4597
 
fi
4598
 
fi
4599
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4600
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4601
 
if test $ac_cv_header_stdc = yes; then
4602
 
 
4603
 
cat >>confdefs.h <<\_ACEOF
4604
 
#define STDC_HEADERS 1
4605
 
_ACEOF
4606
 
 
4607
 
fi
4608
 
 
4609
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4610
 
 
4611
 
 
4612
 
 
4613
 
 
4614
 
 
4615
 
 
4616
 
 
4617
 
 
4618
 
 
4619
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4620
 
                  inttypes.h stdint.h unistd.h
4621
 
do
4622
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4623
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4624
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4625
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4627
 
else
4628
 
  cat >conftest.$ac_ext <<_ACEOF
4629
 
/* confdefs.h.  */
4630
 
_ACEOF
4631
 
cat confdefs.h >>conftest.$ac_ext
4632
 
cat >>conftest.$ac_ext <<_ACEOF
4633
 
/* end confdefs.h.  */
4634
 
$ac_includes_default
4635
 
 
4636
 
#include <$ac_header>
4637
 
_ACEOF
4638
 
rm -f conftest.$ac_objext
4639
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640
 
  (eval $ac_compile) 2>conftest.er1
4641
 
  ac_status=$?
4642
 
  grep -v '^ *+' conftest.er1 >conftest.err
4643
 
  rm -f conftest.er1
4644
 
  cat conftest.err >&5
4645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646
 
  (exit $ac_status); } &&
4647
 
         { ac_try='test -z "$ac_c_werror_flag"
4648
 
                         || test ! -s conftest.err'
4649
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650
 
  (eval $ac_try) 2>&5
4651
 
  ac_status=$?
4652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653
 
  (exit $ac_status); }; } &&
4654
 
         { ac_try='test -s conftest.$ac_objext'
4655
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656
 
  (eval $ac_try) 2>&5
4657
 
  ac_status=$?
4658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
 
  (exit $ac_status); }; }; then
4660
 
  eval "$as_ac_Header=yes"
4661
 
else
4662
 
  echo "$as_me: failed program was:" >&5
4663
 
sed 's/^/| /' conftest.$ac_ext >&5
4664
 
 
4665
 
eval "$as_ac_Header=no"
4666
 
fi
4667
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4668
 
fi
4669
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4670
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4671
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4672
 
  cat >>confdefs.h <<_ACEOF
4673
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4674
 
_ACEOF
4675
 
 
4676
 
fi
4677
 
 
4678
 
done
4679
 
 
4680
 
 
4681
 
 
4682
 
for ac_header in dlfcn.h
4683
 
do
4684
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4686
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4687
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4688
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4690
 
fi
4691
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4692
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4693
 
else
4694
 
  # Is the header compilable?
4695
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4696
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4697
 
cat >conftest.$ac_ext <<_ACEOF
4698
 
/* confdefs.h.  */
4699
 
_ACEOF
4700
 
cat confdefs.h >>conftest.$ac_ext
4701
 
cat >>conftest.$ac_ext <<_ACEOF
4702
 
/* end confdefs.h.  */
4703
 
$ac_includes_default
4704
 
#include <$ac_header>
4705
 
_ACEOF
4706
 
rm -f conftest.$ac_objext
4707
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708
 
  (eval $ac_compile) 2>conftest.er1
4709
 
  ac_status=$?
4710
 
  grep -v '^ *+' conftest.er1 >conftest.err
4711
 
  rm -f conftest.er1
4712
 
  cat conftest.err >&5
4713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714
 
  (exit $ac_status); } &&
4715
 
         { ac_try='test -z "$ac_c_werror_flag"
4716
 
                         || test ! -s conftest.err'
4717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718
 
  (eval $ac_try) 2>&5
4719
 
  ac_status=$?
4720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
 
  (exit $ac_status); }; } &&
4722
 
         { ac_try='test -s conftest.$ac_objext'
4723
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724
 
  (eval $ac_try) 2>&5
4725
 
  ac_status=$?
4726
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727
 
  (exit $ac_status); }; }; then
4728
 
  ac_header_compiler=yes
4729
 
else
4730
 
  echo "$as_me: failed program was:" >&5
4731
 
sed 's/^/| /' conftest.$ac_ext >&5
4732
 
 
4733
 
ac_header_compiler=no
4734
 
fi
4735
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4737
 
echo "${ECHO_T}$ac_header_compiler" >&6
4738
 
 
4739
 
# Is the header present?
4740
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4741
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4742
 
cat >conftest.$ac_ext <<_ACEOF
4743
 
/* confdefs.h.  */
4744
 
_ACEOF
4745
 
cat confdefs.h >>conftest.$ac_ext
4746
 
cat >>conftest.$ac_ext <<_ACEOF
4747
 
/* end confdefs.h.  */
4748
 
#include <$ac_header>
4749
 
_ACEOF
4750
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4751
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4752
 
  ac_status=$?
4753
 
  grep -v '^ *+' conftest.er1 >conftest.err
4754
 
  rm -f conftest.er1
4755
 
  cat conftest.err >&5
4756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757
 
  (exit $ac_status); } >/dev/null; then
4758
 
  if test -s conftest.err; then
4759
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4760
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4761
 
  else
4762
 
    ac_cpp_err=
4763
 
  fi
4764
 
else
4765
 
  ac_cpp_err=yes
4766
 
fi
4767
 
if test -z "$ac_cpp_err"; then
4768
 
  ac_header_preproc=yes
4769
 
else
4770
 
  echo "$as_me: failed program was:" >&5
4771
 
sed 's/^/| /' conftest.$ac_ext >&5
4772
 
 
4773
 
  ac_header_preproc=no
4774
 
fi
4775
 
rm -f conftest.err conftest.$ac_ext
4776
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4777
 
echo "${ECHO_T}$ac_header_preproc" >&6
4778
 
 
4779
 
# So?  What about this header?
4780
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4781
 
  yes:no: )
4782
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4783
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4784
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4785
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4786
 
    ac_header_preproc=yes
4787
 
    ;;
4788
 
  no:yes:* )
4789
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4790
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4791
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4792
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4793
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4794
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4795
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4796
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4797
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4798
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4799
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4800
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4801
 
    (
4802
 
      cat <<\_ASBOX
4803
 
## ---------------------------------- ##
4804
 
## Report this to the libcddb lists.  ##
4805
 
## ---------------------------------- ##
4806
 
_ASBOX
4807
 
    ) |
4808
 
      sed "s/^/$as_me: WARNING:     /" >&2
4809
 
    ;;
4810
 
esac
4811
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4812
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4813
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4814
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4815
 
else
4816
 
  eval "$as_ac_Header=\$ac_header_preproc"
4817
 
fi
4818
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4819
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820
 
 
4821
 
fi
4822
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4823
 
  cat >>confdefs.h <<_ACEOF
4824
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4825
 
_ACEOF
4826
 
 
4827
 
fi
4828
 
 
4829
 
done
4830
 
 
4831
 
ac_ext=cc
4832
 
ac_cpp='$CXXCPP $CPPFLAGS'
4833
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4836
 
if test -n "$ac_tool_prefix"; then
4837
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4838
 
  do
4839
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4840
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4841
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4842
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843
 
if test "${ac_cv_prog_CXX+set}" = set; then
4844
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4845
 
else
4846
 
  if test -n "$CXX"; then
4847
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4848
 
else
4849
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850
 
for as_dir in $PATH
4851
 
do
4852
 
  IFS=$as_save_IFS
4853
 
  test -z "$as_dir" && as_dir=.
4854
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4855
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4857
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858
 
    break 2
4859
 
  fi
4860
 
done
4861
 
done
4862
 
 
4863
 
fi
4864
 
fi
4865
 
CXX=$ac_cv_prog_CXX
4866
 
if test -n "$CXX"; then
4867
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4868
 
echo "${ECHO_T}$CXX" >&6
4869
 
else
4870
 
  echo "$as_me:$LINENO: result: no" >&5
4871
 
echo "${ECHO_T}no" >&6
4872
 
fi
4873
 
 
4874
 
    test -n "$CXX" && break
4875
 
  done
4876
 
fi
4877
 
if test -z "$CXX"; then
4878
 
  ac_ct_CXX=$CXX
4879
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4880
 
do
4881
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4882
 
set dummy $ac_prog; ac_word=$2
4883
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4884
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4887
 
else
4888
 
  if test -n "$ac_ct_CXX"; then
4889
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4890
 
else
4891
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892
 
for as_dir in $PATH
4893
 
do
4894
 
  IFS=$as_save_IFS
4895
 
  test -z "$as_dir" && as_dir=.
4896
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4897
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4899
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900
 
    break 2
4901
 
  fi
4902
 
done
4903
 
done
4904
 
 
4905
 
fi
4906
 
fi
4907
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4908
 
if test -n "$ac_ct_CXX"; then
4909
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4910
 
echo "${ECHO_T}$ac_ct_CXX" >&6
4911
 
else
4912
 
  echo "$as_me:$LINENO: result: no" >&5
4913
 
echo "${ECHO_T}no" >&6
4914
 
fi
4915
 
 
4916
 
  test -n "$ac_ct_CXX" && break
4917
 
done
4918
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4919
 
 
4920
 
  CXX=$ac_ct_CXX
4921
 
fi
4922
 
 
4923
 
 
4924
 
# Provide some information about the compiler.
4925
 
echo "$as_me:$LINENO:" \
4926
 
     "checking for C++ compiler version" >&5
4927
 
ac_compiler=`set X $ac_compile; echo $2`
4928
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4929
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4930
 
  ac_status=$?
4931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932
 
  (exit $ac_status); }
4933
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4934
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4935
 
  ac_status=$?
4936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
 
  (exit $ac_status); }
4938
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4939
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4940
 
  ac_status=$?
4941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942
 
  (exit $ac_status); }
4943
 
 
4944
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4945
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4946
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4947
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4948
 
else
4949
 
  cat >conftest.$ac_ext <<_ACEOF
4950
 
/* confdefs.h.  */
4951
 
_ACEOF
4952
 
cat confdefs.h >>conftest.$ac_ext
4953
 
cat >>conftest.$ac_ext <<_ACEOF
4954
 
/* end confdefs.h.  */
4955
 
 
4956
 
int
4957
 
main ()
4958
 
{
4959
 
#ifndef __GNUC__
4960
 
       choke me
4961
 
#endif
4962
 
 
4963
 
  ;
4964
 
  return 0;
4965
 
}
4966
 
_ACEOF
4967
 
rm -f conftest.$ac_objext
4968
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4969
 
  (eval $ac_compile) 2>conftest.er1
4970
 
  ac_status=$?
4971
 
  grep -v '^ *+' conftest.er1 >conftest.err
4972
 
  rm -f conftest.er1
4973
 
  cat conftest.err >&5
4974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
 
  (exit $ac_status); } &&
4976
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4977
 
                         || test ! -s conftest.err'
4978
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979
 
  (eval $ac_try) 2>&5
4980
 
  ac_status=$?
4981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
 
  (exit $ac_status); }; } &&
4983
 
         { ac_try='test -s conftest.$ac_objext'
4984
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985
 
  (eval $ac_try) 2>&5
4986
 
  ac_status=$?
4987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988
 
  (exit $ac_status); }; }; then
4989
 
  ac_compiler_gnu=yes
4990
 
else
4991
 
  echo "$as_me: failed program was:" >&5
4992
 
sed 's/^/| /' conftest.$ac_ext >&5
4993
 
 
4994
 
ac_compiler_gnu=no
4995
 
fi
4996
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4998
 
 
4999
 
fi
5000
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5001
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5002
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5003
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5004
 
ac_save_CXXFLAGS=$CXXFLAGS
5005
 
CXXFLAGS="-g"
5006
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5007
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5008
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5009
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5010
 
else
5011
 
  cat >conftest.$ac_ext <<_ACEOF
5012
 
/* confdefs.h.  */
5013
 
_ACEOF
5014
 
cat confdefs.h >>conftest.$ac_ext
5015
 
cat >>conftest.$ac_ext <<_ACEOF
5016
 
/* end confdefs.h.  */
5017
 
 
5018
 
int
5019
 
main ()
5020
 
{
5021
 
 
5022
 
  ;
5023
 
  return 0;
5024
 
}
5025
 
_ACEOF
5026
 
rm -f conftest.$ac_objext
5027
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028
 
  (eval $ac_compile) 2>conftest.er1
5029
 
  ac_status=$?
5030
 
  grep -v '^ *+' conftest.er1 >conftest.err
5031
 
  rm -f conftest.er1
5032
 
  cat conftest.err >&5
5033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034
 
  (exit $ac_status); } &&
5035
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5036
 
                         || test ! -s conftest.err'
5037
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038
 
  (eval $ac_try) 2>&5
5039
 
  ac_status=$?
5040
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041
 
  (exit $ac_status); }; } &&
5042
 
         { ac_try='test -s conftest.$ac_objext'
5043
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044
 
  (eval $ac_try) 2>&5
5045
 
  ac_status=$?
5046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047
 
  (exit $ac_status); }; }; then
5048
 
  ac_cv_prog_cxx_g=yes
5049
 
else
5050
 
  echo "$as_me: failed program was:" >&5
5051
 
sed 's/^/| /' conftest.$ac_ext >&5
5052
 
 
5053
 
ac_cv_prog_cxx_g=no
5054
 
fi
5055
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056
 
fi
5057
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5058
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5059
 
if test "$ac_test_CXXFLAGS" = set; then
5060
 
  CXXFLAGS=$ac_save_CXXFLAGS
5061
 
elif test $ac_cv_prog_cxx_g = yes; then
5062
 
  if test "$GXX" = yes; then
5063
 
    CXXFLAGS="-g -O2"
5064
 
  else
5065
 
    CXXFLAGS="-g"
5066
 
  fi
5067
 
else
5068
 
  if test "$GXX" = yes; then
5069
 
    CXXFLAGS="-O2"
5070
 
  else
5071
 
    CXXFLAGS=
5072
 
  fi
5073
 
fi
5074
 
for ac_declaration in \
5075
 
   '' \
5076
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
5077
 
   'extern "C" void std::exit (int); using std::exit;' \
5078
 
   'extern "C" void exit (int) throw ();' \
5079
 
   'extern "C" void exit (int);' \
5080
 
   'void exit (int);'
5081
 
do
5082
 
  cat >conftest.$ac_ext <<_ACEOF
5083
 
/* confdefs.h.  */
5084
 
_ACEOF
5085
 
cat confdefs.h >>conftest.$ac_ext
5086
 
cat >>conftest.$ac_ext <<_ACEOF
5087
 
/* end confdefs.h.  */
5088
 
$ac_declaration
5089
 
#include <stdlib.h>
5090
 
int
5091
 
main ()
5092
 
{
5093
 
exit (42);
5094
 
  ;
5095
 
  return 0;
5096
 
}
5097
 
_ACEOF
5098
 
rm -f conftest.$ac_objext
5099
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100
 
  (eval $ac_compile) 2>conftest.er1
5101
 
  ac_status=$?
5102
 
  grep -v '^ *+' conftest.er1 >conftest.err
5103
 
  rm -f conftest.er1
5104
 
  cat conftest.err >&5
5105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106
 
  (exit $ac_status); } &&
5107
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5108
 
                         || test ! -s conftest.err'
5109
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110
 
  (eval $ac_try) 2>&5
5111
 
  ac_status=$?
5112
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113
 
  (exit $ac_status); }; } &&
5114
 
         { ac_try='test -s conftest.$ac_objext'
5115
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116
 
  (eval $ac_try) 2>&5
5117
 
  ac_status=$?
5118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119
 
  (exit $ac_status); }; }; then
5120
 
  :
5121
 
else
5122
 
  echo "$as_me: failed program was:" >&5
5123
 
sed 's/^/| /' conftest.$ac_ext >&5
5124
 
 
5125
 
continue
5126
 
fi
5127
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128
 
  cat >conftest.$ac_ext <<_ACEOF
5129
 
/* confdefs.h.  */
5130
 
_ACEOF
5131
 
cat confdefs.h >>conftest.$ac_ext
5132
 
cat >>conftest.$ac_ext <<_ACEOF
5133
 
/* end confdefs.h.  */
5134
 
$ac_declaration
5135
 
int
5136
 
main ()
5137
 
{
5138
 
exit (42);
5139
 
  ;
5140
 
  return 0;
5141
 
}
5142
 
_ACEOF
5143
 
rm -f conftest.$ac_objext
5144
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145
 
  (eval $ac_compile) 2>conftest.er1
5146
 
  ac_status=$?
5147
 
  grep -v '^ *+' conftest.er1 >conftest.err
5148
 
  rm -f conftest.er1
5149
 
  cat conftest.err >&5
5150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151
 
  (exit $ac_status); } &&
5152
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5153
 
                         || test ! -s conftest.err'
5154
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155
 
  (eval $ac_try) 2>&5
5156
 
  ac_status=$?
5157
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158
 
  (exit $ac_status); }; } &&
5159
 
         { ac_try='test -s conftest.$ac_objext'
5160
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161
 
  (eval $ac_try) 2>&5
5162
 
  ac_status=$?
5163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164
 
  (exit $ac_status); }; }; then
5165
 
  break
5166
 
else
5167
 
  echo "$as_me: failed program was:" >&5
5168
 
sed 's/^/| /' conftest.$ac_ext >&5
5169
 
 
5170
 
fi
5171
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5172
 
done
5173
 
rm -f conftest*
5174
 
if test -n "$ac_declaration"; then
5175
 
  echo '#ifdef __cplusplus' >>confdefs.h
5176
 
  echo $ac_declaration      >>confdefs.h
5177
 
  echo '#endif'             >>confdefs.h
5178
 
fi
5179
 
 
5180
 
ac_ext=cc
5181
 
ac_cpp='$CXXCPP $CPPFLAGS'
5182
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5185
 
 
5186
 
depcc="$CXX"  am_compiler_list=
5187
 
 
5188
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5189
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5190
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5191
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5192
 
else
5193
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5194
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5195
 
  # making bogus files that we don't know about and never remove.  For
5196
 
  # instance it was reported that on HP-UX the gcc test will end up
5197
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5198
 
  # in D'.
5199
 
  mkdir conftest.dir
5200
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5201
 
  # using a relative directory.
5202
 
  cp "$am_depcomp" conftest.dir
5203
 
  cd conftest.dir
5204
 
  # We will build objects and dependencies in a subdirectory because
5205
 
  # it helps to detect inapplicable dependency modes.  For instance
5206
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5207
 
  # side effect of compilation, but ICC will put the dependencies in
5208
 
  # the current directory while Tru64 will put them in the object
5209
 
  # directory.
5210
 
  mkdir sub
5211
 
 
5212
 
  am_cv_CXX_dependencies_compiler_type=none
5213
 
  if test "$am_compiler_list" = ""; then
5214
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5215
 
  fi
5216
 
  for depmode in $am_compiler_list; do
5217
 
    # Setup a source with many dependencies, because some compilers
5218
 
    # like to wrap large dependency lists on column 80 (with \), and
5219
 
    # we should not choose a depcomp mode which is confused by this.
5220
 
    #
5221
 
    # We need to recreate these files for each test, as the compiler may
5222
 
    # overwrite some of them when testing with obscure command lines.
5223
 
    # This happens at least with the AIX C compiler.
5224
 
    : > sub/conftest.c
5225
 
    for i in 1 2 3 4 5 6; do
5226
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5227
 
      : > sub/conftst$i.h
5228
 
    done
5229
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5230
 
 
5231
 
    case $depmode in
5232
 
    nosideeffect)
5233
 
      # after this tag, mechanisms are not by side-effect, so they'll
5234
 
      # only be used when explicitly requested
5235
 
      if test "x$enable_dependency_tracking" = xyes; then
5236
 
        continue
5237
 
      else
5238
 
        break
5239
 
      fi
5240
 
      ;;
5241
 
    none) break ;;
5242
 
    esac
5243
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5244
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5245
 
    # handle `-M -o', and we need to detect this.
5246
 
    if depmode=$depmode \
5247
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5248
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5249
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5250
 
         >/dev/null 2>conftest.err &&
5251
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5252
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5253
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5254
 
      # icc doesn't choke on unknown options, it will just issue warnings
5255
 
      # (even with -Werror).  So we grep stderr for any message
5256
 
      # that says an option was ignored.
5257
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5258
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5259
 
        break
5260
 
      fi
5261
 
    fi
5262
 
  done
5263
 
 
5264
 
  cd ..
5265
 
  rm -rf conftest.dir
5266
 
else
5267
 
  am_cv_CXX_dependencies_compiler_type=none
5268
 
fi
5269
 
 
5270
 
fi
5271
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5272
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5273
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5274
 
 
5275
 
 
5276
 
 
5277
 
if
5278
 
  test "x$enable_dependency_tracking" != xno \
5279
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5280
 
  am__fastdepCXX_TRUE=
5281
 
  am__fastdepCXX_FALSE='#'
5282
 
else
5283
 
  am__fastdepCXX_TRUE='#'
5284
 
  am__fastdepCXX_FALSE=
5285
 
fi
5286
 
 
5287
 
 
5288
 
 
5289
 
 
5290
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5291
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5292
 
    (test "X$CXX" != "Xg++"))) ; then
5293
 
  ac_ext=cc
5294
 
ac_cpp='$CXXCPP $CPPFLAGS'
5295
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5298
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5299
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5300
 
if test -z "$CXXCPP"; then
5301
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5302
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5303
 
else
5304
 
      # Double quotes because CXXCPP needs to be expanded
5305
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5306
 
    do
5307
 
      ac_preproc_ok=false
5308
 
for ac_cxx_preproc_warn_flag in '' yes
5309
 
do
5310
 
  # Use a header file that comes with gcc, so configuring glibc
5311
 
  # with a fresh cross-compiler works.
5312
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5313
 
  # <limits.h> exists even on freestanding compilers.
5314
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5315
 
  # not just through cpp. "Syntax error" is here to catch this case.
5316
 
  cat >conftest.$ac_ext <<_ACEOF
5317
 
/* confdefs.h.  */
5318
 
_ACEOF
5319
 
cat confdefs.h >>conftest.$ac_ext
5320
 
cat >>conftest.$ac_ext <<_ACEOF
5321
 
/* end confdefs.h.  */
5322
 
#ifdef __STDC__
5323
 
# include <limits.h>
5324
 
#else
5325
 
# include <assert.h>
5326
 
#endif
5327
 
                     Syntax error
5328
 
_ACEOF
5329
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5330
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5331
 
  ac_status=$?
5332
 
  grep -v '^ *+' conftest.er1 >conftest.err
5333
 
  rm -f conftest.er1
5334
 
  cat conftest.err >&5
5335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336
 
  (exit $ac_status); } >/dev/null; then
5337
 
  if test -s conftest.err; then
5338
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5339
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5340
 
  else
5341
 
    ac_cpp_err=
5342
 
  fi
5343
 
else
5344
 
  ac_cpp_err=yes
5345
 
fi
5346
 
if test -z "$ac_cpp_err"; then
5347
 
  :
5348
 
else
5349
 
  echo "$as_me: failed program was:" >&5
5350
 
sed 's/^/| /' conftest.$ac_ext >&5
5351
 
 
5352
 
  # Broken: fails on valid input.
5353
 
continue
5354
 
fi
5355
 
rm -f conftest.err conftest.$ac_ext
5356
 
 
5357
 
  # OK, works on sane cases.  Now check whether non-existent headers
5358
 
  # can be detected and how.
5359
 
  cat >conftest.$ac_ext <<_ACEOF
5360
 
/* confdefs.h.  */
5361
 
_ACEOF
5362
 
cat confdefs.h >>conftest.$ac_ext
5363
 
cat >>conftest.$ac_ext <<_ACEOF
5364
 
/* end confdefs.h.  */
5365
 
#include <ac_nonexistent.h>
5366
 
_ACEOF
5367
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5368
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5369
 
  ac_status=$?
5370
 
  grep -v '^ *+' conftest.er1 >conftest.err
5371
 
  rm -f conftest.er1
5372
 
  cat conftest.err >&5
5373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374
 
  (exit $ac_status); } >/dev/null; then
5375
 
  if test -s conftest.err; then
5376
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5377
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5378
 
  else
5379
 
    ac_cpp_err=
5380
 
  fi
5381
 
else
5382
 
  ac_cpp_err=yes
5383
 
fi
5384
 
if test -z "$ac_cpp_err"; then
5385
 
  # Broken: success on invalid input.
5386
 
continue
5387
 
else
5388
 
  echo "$as_me: failed program was:" >&5
5389
 
sed 's/^/| /' conftest.$ac_ext >&5
5390
 
 
5391
 
  # Passes both tests.
5392
 
ac_preproc_ok=:
5393
 
break
5394
 
fi
5395
 
rm -f conftest.err conftest.$ac_ext
5396
 
 
5397
 
done
5398
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5399
 
rm -f conftest.err conftest.$ac_ext
5400
 
if $ac_preproc_ok; then
5401
 
  break
5402
 
fi
5403
 
 
5404
 
    done
5405
 
    ac_cv_prog_CXXCPP=$CXXCPP
5406
 
 
5407
 
fi
5408
 
  CXXCPP=$ac_cv_prog_CXXCPP
5409
 
else
5410
 
  ac_cv_prog_CXXCPP=$CXXCPP
5411
 
fi
5412
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5413
 
echo "${ECHO_T}$CXXCPP" >&6
5414
 
ac_preproc_ok=false
5415
 
for ac_cxx_preproc_warn_flag in '' yes
5416
 
do
5417
 
  # Use a header file that comes with gcc, so configuring glibc
5418
 
  # with a fresh cross-compiler works.
5419
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420
 
  # <limits.h> exists even on freestanding compilers.
5421
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5422
 
  # not just through cpp. "Syntax error" is here to catch this case.
5423
 
  cat >conftest.$ac_ext <<_ACEOF
5424
 
/* confdefs.h.  */
5425
 
_ACEOF
5426
 
cat confdefs.h >>conftest.$ac_ext
5427
 
cat >>conftest.$ac_ext <<_ACEOF
5428
 
/* end confdefs.h.  */
5429
 
#ifdef __STDC__
5430
 
# include <limits.h>
5431
 
#else
5432
 
# include <assert.h>
5433
 
#endif
5434
 
                     Syntax error
5435
 
_ACEOF
5436
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5438
 
  ac_status=$?
5439
 
  grep -v '^ *+' conftest.er1 >conftest.err
5440
 
  rm -f conftest.er1
5441
 
  cat conftest.err >&5
5442
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
 
  (exit $ac_status); } >/dev/null; then
5444
 
  if test -s conftest.err; then
5445
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5446
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5447
 
  else
5448
 
    ac_cpp_err=
5449
 
  fi
5450
 
else
5451
 
  ac_cpp_err=yes
5452
 
fi
5453
 
if test -z "$ac_cpp_err"; then
5454
 
  :
5455
 
else
5456
 
  echo "$as_me: failed program was:" >&5
5457
 
sed 's/^/| /' conftest.$ac_ext >&5
5458
 
 
5459
 
  # Broken: fails on valid input.
5460
 
continue
5461
 
fi
5462
 
rm -f conftest.err conftest.$ac_ext
5463
 
 
5464
 
  # OK, works on sane cases.  Now check whether non-existent headers
5465
 
  # can be detected and how.
5466
 
  cat >conftest.$ac_ext <<_ACEOF
5467
 
/* confdefs.h.  */
5468
 
_ACEOF
5469
 
cat confdefs.h >>conftest.$ac_ext
5470
 
cat >>conftest.$ac_ext <<_ACEOF
5471
 
/* end confdefs.h.  */
5472
 
#include <ac_nonexistent.h>
5473
 
_ACEOF
5474
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5475
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5476
 
  ac_status=$?
5477
 
  grep -v '^ *+' conftest.er1 >conftest.err
5478
 
  rm -f conftest.er1
5479
 
  cat conftest.err >&5
5480
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481
 
  (exit $ac_status); } >/dev/null; then
5482
 
  if test -s conftest.err; then
5483
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5484
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5485
 
  else
5486
 
    ac_cpp_err=
5487
 
  fi
5488
 
else
5489
 
  ac_cpp_err=yes
5490
 
fi
5491
 
if test -z "$ac_cpp_err"; then
5492
 
  # Broken: success on invalid input.
5493
 
continue
5494
 
else
5495
 
  echo "$as_me: failed program was:" >&5
5496
 
sed 's/^/| /' conftest.$ac_ext >&5
5497
 
 
5498
 
  # Passes both tests.
5499
 
ac_preproc_ok=:
5500
 
break
5501
 
fi
5502
 
rm -f conftest.err conftest.$ac_ext
5503
 
 
5504
 
done
5505
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506
 
rm -f conftest.err conftest.$ac_ext
5507
 
if $ac_preproc_ok; then
5508
 
  :
5509
 
else
5510
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5511
 
See \`config.log' for more details." >&5
5512
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5513
 
See \`config.log' for more details." >&2;}
5514
 
   { (exit 1); exit 1; }; }
5515
 
fi
5516
 
 
5517
 
ac_ext=cc
5518
 
ac_cpp='$CXXCPP $CPPFLAGS'
5519
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5522
 
 
5523
 
fi
5524
 
 
5525
 
 
5526
 
ac_ext=f
5527
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5528
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5530
 
if test -n "$ac_tool_prefix"; then
5531
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5532
 
  do
5533
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5534
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5535
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5536
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537
 
if test "${ac_cv_prog_F77+set}" = set; then
5538
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5539
 
else
5540
 
  if test -n "$F77"; then
5541
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
5542
 
else
5543
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544
 
for as_dir in $PATH
5545
 
do
5546
 
  IFS=$as_save_IFS
5547
 
  test -z "$as_dir" && as_dir=.
5548
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5549
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5551
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552
 
    break 2
5553
 
  fi
5554
 
done
5555
 
done
5556
 
 
5557
 
fi
5558
 
fi
5559
 
F77=$ac_cv_prog_F77
5560
 
if test -n "$F77"; then
5561
 
  echo "$as_me:$LINENO: result: $F77" >&5
5562
 
echo "${ECHO_T}$F77" >&6
5563
 
else
5564
 
  echo "$as_me:$LINENO: result: no" >&5
5565
 
echo "${ECHO_T}no" >&6
5566
 
fi
5567
 
 
5568
 
    test -n "$F77" && break
5569
 
  done
5570
 
fi
5571
 
if test -z "$F77"; then
5572
 
  ac_ct_F77=$F77
5573
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5574
 
do
5575
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5576
 
set dummy $ac_prog; ac_word=$2
5577
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5578
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5579
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5580
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5581
 
else
5582
 
  if test -n "$ac_ct_F77"; then
5583
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5584
 
else
5585
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586
 
for as_dir in $PATH
5587
 
do
5588
 
  IFS=$as_save_IFS
5589
 
  test -z "$as_dir" && as_dir=.
5590
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5591
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
5593
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594
 
    break 2
5595
 
  fi
5596
 
done
5597
 
done
5598
 
 
5599
 
fi
5600
 
fi
5601
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5602
 
if test -n "$ac_ct_F77"; then
5603
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5604
 
echo "${ECHO_T}$ac_ct_F77" >&6
5605
 
else
5606
 
  echo "$as_me:$LINENO: result: no" >&5
5607
 
echo "${ECHO_T}no" >&6
5608
 
fi
5609
 
 
5610
 
  test -n "$ac_ct_F77" && break
5611
 
done
5612
 
 
5613
 
  F77=$ac_ct_F77
5614
 
fi
5615
 
 
5616
 
 
5617
 
# Provide some information about the compiler.
5618
 
echo "$as_me:5618:" \
5619
 
     "checking for Fortran 77 compiler version" >&5
5620
 
ac_compiler=`set X $ac_compile; echo $2`
5621
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5622
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5623
 
  ac_status=$?
5624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625
 
  (exit $ac_status); }
5626
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5627
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5628
 
  ac_status=$?
5629
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630
 
  (exit $ac_status); }
5631
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5632
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5633
 
  ac_status=$?
5634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635
 
  (exit $ac_status); }
5636
 
rm -f a.out
5637
 
 
5638
 
# If we don't use `.F' as extension, the preprocessor is not run on the
5639
 
# input file.  (Note that this only needs to work for GNU compilers.)
5640
 
ac_save_ext=$ac_ext
5641
 
ac_ext=F
5642
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5643
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5644
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5645
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5646
 
else
5647
 
  cat >conftest.$ac_ext <<_ACEOF
5648
 
      program main
5649
 
#ifndef __GNUC__
5650
 
       choke me
5651
 
#endif
5652
 
 
5653
 
      end
5654
 
_ACEOF
5655
 
rm -f conftest.$ac_objext
5656
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657
 
  (eval $ac_compile) 2>conftest.er1
5658
 
  ac_status=$?
5659
 
  grep -v '^ *+' conftest.er1 >conftest.err
5660
 
  rm -f conftest.er1
5661
 
  cat conftest.err >&5
5662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
 
  (exit $ac_status); } &&
5664
 
         { ac_try='test -z "$ac_f77_werror_flag"
5665
 
                         || test ! -s conftest.err'
5666
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667
 
  (eval $ac_try) 2>&5
5668
 
  ac_status=$?
5669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670
 
  (exit $ac_status); }; } &&
5671
 
         { ac_try='test -s conftest.$ac_objext'
5672
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673
 
  (eval $ac_try) 2>&5
5674
 
  ac_status=$?
5675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676
 
  (exit $ac_status); }; }; then
5677
 
  ac_compiler_gnu=yes
5678
 
else
5679
 
  echo "$as_me: failed program was:" >&5
5680
 
sed 's/^/| /' conftest.$ac_ext >&5
5681
 
 
5682
 
ac_compiler_gnu=no
5683
 
fi
5684
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5685
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5686
 
 
5687
 
fi
5688
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5689
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5690
 
ac_ext=$ac_save_ext
5691
 
ac_test_FFLAGS=${FFLAGS+set}
5692
 
ac_save_FFLAGS=$FFLAGS
5693
 
FFLAGS=
5694
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5695
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5696
 
if test "${ac_cv_prog_f77_g+set}" = set; then
5697
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5698
 
else
5699
 
  FFLAGS=-g
5700
 
cat >conftest.$ac_ext <<_ACEOF
5701
 
      program main
5702
 
 
5703
 
      end
5704
 
_ACEOF
5705
 
rm -f conftest.$ac_objext
5706
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707
 
  (eval $ac_compile) 2>conftest.er1
5708
 
  ac_status=$?
5709
 
  grep -v '^ *+' conftest.er1 >conftest.err
5710
 
  rm -f conftest.er1
5711
 
  cat conftest.err >&5
5712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713
 
  (exit $ac_status); } &&
5714
 
         { ac_try='test -z "$ac_f77_werror_flag"
5715
 
                         || test ! -s conftest.err'
5716
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717
 
  (eval $ac_try) 2>&5
5718
 
  ac_status=$?
5719
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720
 
  (exit $ac_status); }; } &&
5721
 
         { ac_try='test -s conftest.$ac_objext'
5722
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723
 
  (eval $ac_try) 2>&5
5724
 
  ac_status=$?
5725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726
 
  (exit $ac_status); }; }; then
5727
 
  ac_cv_prog_f77_g=yes
5728
 
else
5729
 
  echo "$as_me: failed program was:" >&5
5730
 
sed 's/^/| /' conftest.$ac_ext >&5
5731
 
 
5732
 
ac_cv_prog_f77_g=no
5733
 
fi
5734
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735
 
 
5736
 
fi
5737
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5738
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5739
 
if test "$ac_test_FFLAGS" = set; then
5740
 
  FFLAGS=$ac_save_FFLAGS
5741
 
elif test $ac_cv_prog_f77_g = yes; then
5742
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5743
 
    FFLAGS="-g -O2"
5744
 
  else
5745
 
    FFLAGS="-g"
5746
 
  fi
5747
 
else
5748
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5749
 
    FFLAGS="-O2"
5750
 
  else
5751
 
    FFLAGS=
5752
 
  fi
5753
 
fi
5754
 
 
5755
 
G77=`test $ac_compiler_gnu = yes && echo yes`
5756
 
ac_ext=c
5757
 
ac_cpp='$CPP $CPPFLAGS'
5758
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761
 
 
5762
 
 
5763
 
 
5764
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5765
 
 
5766
 
# find the maximum length of command line arguments
5767
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5768
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5769
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5770
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5771
 
else
5772
 
    i=0
5773
 
  teststring="ABCD"
5774
 
 
5775
 
  case $build_os in
5776
 
  msdosdjgpp*)
5777
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5778
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5779
 
    # during glob expansion).  Even if it were fixed, the result of this
5780
 
    # check would be larger than it should be.
5781
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5782
 
    ;;
5783
 
 
5784
 
  gnu*)
5785
 
    # Under GNU Hurd, this test is not required because there is
5786
 
    # no limit to the length of command line arguments.
5787
 
    # Libtool will interpret -1 as no limit whatsoever
5788
 
    lt_cv_sys_max_cmd_len=-1;
5789
 
    ;;
5790
 
 
5791
 
  cygwin* | mingw*)
5792
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5793
 
    # about 5 minutes as the teststring grows exponentially.
5794
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5795
 
    # you end up with a "frozen" computer, even though with patience
5796
 
    # the test eventually succeeds (with a max line length of 256k).
5797
 
    # Instead, let's just punt: use the minimum linelength reported by
5798
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5799
 
    lt_cv_sys_max_cmd_len=8192;
5800
 
    ;;
5801
 
 
5802
 
  amigaos*)
5803
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5804
 
    # So we just punt and use a minimum line length of 8192.
5805
 
    lt_cv_sys_max_cmd_len=8192;
5806
 
    ;;
5807
 
 
5808
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5809
 
    # This has been around since 386BSD, at least.  Likely further.
5810
 
    if test -x /sbin/sysctl; then
5811
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5812
 
    elif test -x /usr/sbin/sysctl; then
5813
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5814
 
    else
5815
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5816
 
    fi
5817
 
    # And add a safety zone
5818
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5819
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5820
 
    ;;
5821
 
  osf*)
5822
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5823
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5824
 
    # nice to cause kernel panics so lets avoid the loop below.
5825
 
    # First set a reasonable default.
5826
 
    lt_cv_sys_max_cmd_len=16384
5827
 
    #
5828
 
    if test -x /sbin/sysconfig; then
5829
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5830
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5831
 
      esac
5832
 
    fi
5833
 
    ;;
5834
 
  *)
5835
 
    # If test is not a shell built-in, we'll probably end up computing a
5836
 
    # maximum length that is only half of the actual maximum length, but
5837
 
    # we can't tell.
5838
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5839
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5840
 
               = "XX$teststring") >/dev/null 2>&1 &&
5841
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5842
 
            lt_cv_sys_max_cmd_len=$new_result &&
5843
 
            test $i != 17 # 1/2 MB should be enough
5844
 
    do
5845
 
      i=`expr $i + 1`
5846
 
      teststring=$teststring$teststring
5847
 
    done
5848
 
    teststring=
5849
 
    # Add a significant safety factor because C++ compilers can tack on massive
5850
 
    # amounts of additional arguments before passing them to the linker.
5851
 
    # It appears as though 1/2 is a usable value.
5852
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5853
 
    ;;
5854
 
  esac
5855
 
 
5856
 
fi
5857
 
 
5858
 
if test -n $lt_cv_sys_max_cmd_len ; then
5859
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5860
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5861
 
else
5862
 
  echo "$as_me:$LINENO: result: none" >&5
5863
 
echo "${ECHO_T}none" >&6
5864
 
fi
5865
 
 
5866
 
 
5867
 
 
5868
 
 
5869
5974
# Check for command to grab the raw symbol name followed by C symbol from nm.
5870
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5871
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5975
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5976
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5872
5977
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5873
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5978
  $as_echo_n "(cached) " >&6
5874
5979
else
5875
5980
 
5876
5981
# These are sane defaults that work on at least a few old systems.
5882
5987
# Regexp to match symbols that can be accessed directly from C.
5883
5988
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5884
5989
 
5885
 
# Transform an extracted symbol line into a proper C declaration
5886
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5887
 
 
5888
 
# Transform an extracted symbol line into symbol name and symbol address
5889
 
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'"
5890
 
 
5891
5990
# Define system-specific variables.
5892
5991
case $host_os in
5893
5992
aix*)
5894
5993
  symcode='[BCDT]'
5895
5994
  ;;
5896
 
cygwin* | mingw* | pw32*)
 
5995
cygwin* | mingw* | pw32* | cegcc*)
5897
5996
  symcode='[ABCDGISTW]'
5898
5997
  ;;
5899
 
hpux*) # Its linker distinguishes data from code symbols
 
5998
hpux*)
5900
5999
  if test "$host_cpu" = ia64; then
5901
6000
    symcode='[ABCDEGRST]'
5902
6001
  fi
5903
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5904
 
  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'"
5905
 
  ;;
5906
 
linux*)
5907
 
  if test "$host_cpu" = ia64; then
5908
 
    symcode='[ABCDGIRSTW]'
5909
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5910
 
    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'"
5911
 
  fi
5912
6002
  ;;
5913
6003
irix* | nonstopux*)
5914
6004
  symcode='[BCDEGRST]'
5916
6006
osf*)
5917
6007
  symcode='[BCDEGQRST]'
5918
6008
  ;;
5919
 
solaris* | sysv5*)
 
6009
solaris*)
5920
6010
  symcode='[BDRT]'
5921
6011
  ;;
 
6012
sco3.2v5*)
 
6013
  symcode='[DT]'
 
6014
  ;;
 
6015
sysv4.2uw2*)
 
6016
  symcode='[DT]'
 
6017
  ;;
 
6018
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6019
  symcode='[ABDT]'
 
6020
  ;;
5922
6021
sysv4)
5923
6022
  symcode='[DFNSTU]'
5924
6023
  ;;
5925
6024
esac
5926
6025
 
 
6026
# If we're using GNU nm, then use its standard symbol codes.
 
6027
case `$NM -V 2>&1` in
 
6028
*GNU* | *'with BFD'*)
 
6029
  symcode='[ABCDGIRSTW]' ;;
 
6030
esac
 
6031
 
 
6032
# Transform an extracted symbol line into a proper C declaration.
 
6033
# Some systems (esp. on ia64) link data and code symbols differently,
 
6034
# so use this general approach.
 
6035
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6036
 
 
6037
# Transform an extracted symbol line into symbol name and symbol address
 
6038
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6039
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
6040
 
5927
6041
# Handle CRLF in mingw tool chain
5928
6042
opt_cr=
5929
6043
case $build_os in
5930
6044
mingw*)
5931
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6045
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5932
6046
  ;;
5933
6047
esac
5934
6048
 
5935
 
# If we're using GNU nm, then use its standard symbol codes.
5936
 
case `$NM -V 2>&1` in
5937
 
*GNU* | *'with BFD'*)
5938
 
  symcode='[ABCDGIRSTW]' ;;
5939
 
esac
5940
 
 
5941
 
# Try without a prefix undercore, then with it.
 
6049
# Try without a prefix underscore, then with it.
5942
6050
for ac_symprfx in "" "_"; do
5943
6051
 
5944
6052
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5945
6053
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5946
6054
 
5947
6055
  # Write the raw and C identifiers.
5948
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6056
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6057
    # Fake it for dumpbin and say T for any non-static function
 
6058
    # and D for any global variable.
 
6059
    # Also find C++ and __fastcall symbols from MSVC++,
 
6060
    # which start with @ or ?.
 
6061
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6062
"     {last_section=section; section=\$ 3};"\
 
6063
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6064
"     \$ 0!~/External *\|/{next};"\
 
6065
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6066
"     {if(hide[section]) next};"\
 
6067
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6068
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6069
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6070
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6071
"     ' prfx=^$ac_symprfx"
 
6072
  else
 
6073
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6074
  fi
5949
6075
 
5950
6076
  # Check to see that the pipe works correctly.
5951
6077
  pipe_works=no
5952
6078
 
5953
6079
  rm -f conftest*
5954
 
  cat > conftest.$ac_ext <<EOF
 
6080
  cat > conftest.$ac_ext <<_LT_EOF
5955
6081
#ifdef __cplusplus
5956
6082
extern "C" {
5957
6083
#endif
5958
6084
char nm_test_var;
5959
 
void nm_test_func(){}
 
6085
void nm_test_func(void);
 
6086
void nm_test_func(void){}
5960
6087
#ifdef __cplusplus
5961
6088
}
5962
6089
#endif
5963
6090
int main(){nm_test_var='a';nm_test_func();return(0);}
5964
 
EOF
 
6091
_LT_EOF
5965
6092
 
5966
6093
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967
6094
  (eval $ac_compile) 2>&5
5968
6095
  ac_status=$?
5969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6096
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970
6097
  (exit $ac_status); }; then
5971
6098
    # Now try to grab the symbols.
5972
6099
    nlist=conftest.nm
5973
6100
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5974
6101
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5975
6102
  ac_status=$?
5976
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6103
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977
6104
  (exit $ac_status); } && test -s "$nlist"; then
5978
6105
      # Try sorting and uniquifying the output.
5979
6106
      if sort "$nlist" | uniq > "$nlist"T; then
5983
6110
      fi
5984
6111
 
5985
6112
      # Make sure that we snagged all the symbols we need.
5986
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5987
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5988
 
          cat <<EOF > conftest.$ac_ext
 
6113
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6114
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6115
          cat <<_LT_EOF > conftest.$ac_ext
5989
6116
#ifdef __cplusplus
5990
6117
extern "C" {
5991
6118
#endif
5992
6119
 
5993
 
EOF
 
6120
_LT_EOF
5994
6121
          # Now generate the symbol file.
5995
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5996
 
 
5997
 
          cat <<EOF >> conftest.$ac_ext
5998
 
#if defined (__STDC__) && __STDC__
5999
 
# define lt_ptr_t void *
6000
 
#else
6001
 
# define lt_ptr_t char *
6002
 
# define const
6003
 
#endif
6004
 
 
6005
 
/* The mapping between symbol names and symbols. */
 
6122
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6123
 
 
6124
          cat <<_LT_EOF >> conftest.$ac_ext
 
6125
 
 
6126
/* The mapping between symbol names and symbols.  */
6006
6127
const struct {
6007
6128
  const char *name;
6008
 
  lt_ptr_t address;
 
6129
  void       *address;
6009
6130
}
6010
 
lt_preloaded_symbols[] =
 
6131
lt__PROGRAM__LTX_preloaded_symbols[] =
6011
6132
{
6012
 
EOF
6013
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6014
 
          cat <<\EOF >> conftest.$ac_ext
6015
 
  {0, (lt_ptr_t) 0}
 
6133
  { "@PROGRAM@", (void *) 0 },
 
6134
_LT_EOF
 
6135
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6136
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6137
  {0, (void *) 0}
6016
6138
};
6017
6139
 
 
6140
/* This works around a problem in FreeBSD linker */
 
6141
#ifdef FREEBSD_WORKAROUND
 
6142
static const void *lt_preloaded_setup() {
 
6143
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6144
}
 
6145
#endif
 
6146
 
6018
6147
#ifdef __cplusplus
6019
6148
}
6020
6149
#endif
6021
 
EOF
 
6150
_LT_EOF
6022
6151
          # Now try linking the two files.
6023
6152
          mv conftest.$ac_objext conftstm.$ac_objext
6024
6153
          lt_save_LIBS="$LIBS"
6028
6157
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6029
6158
  (eval $ac_link) 2>&5
6030
6159
  ac_status=$?
6031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032
6161
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6033
6162
            pipe_works=yes
6034
6163
          fi
6047
6176
    echo "$progname: failed program was:" >&5
6048
6177
    cat conftest.$ac_ext >&5
6049
6178
  fi
6050
 
  rm -f conftest* conftst*
 
6179
  rm -rf conftest* conftst*
6051
6180
 
6052
6181
  # Do not use the global_symbol_pipe unless it works.
6053
6182
  if test "$pipe_works" = yes; then
6063
6192
  lt_cv_sys_global_symbol_to_cdecl=
6064
6193
fi
6065
6194
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6066
 
  echo "$as_me:$LINENO: result: failed" >&5
6067
 
echo "${ECHO_T}failed" >&6
6068
 
else
6069
 
  echo "$as_me:$LINENO: result: ok" >&5
6070
 
echo "${ECHO_T}ok" >&6
6071
 
fi
6072
 
 
6073
 
echo "$as_me:$LINENO: checking for objdir" >&5
6074
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6195
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
6196
$as_echo "failed" >&6; }
 
6197
else
 
6198
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
6199
$as_echo "ok" >&6; }
 
6200
fi
 
6201
 
 
6202
 
 
6203
 
 
6204
 
 
6205
 
 
6206
 
 
6207
 
 
6208
 
 
6209
 
 
6210
 
 
6211
 
 
6212
 
 
6213
 
 
6214
 
 
6215
 
 
6216
 
 
6217
 
 
6218
 
 
6219
 
 
6220
 
 
6221
 
 
6222
 
 
6223
 
 
6224
# Check whether --enable-libtool-lock was given.
 
6225
if test "${enable_libtool_lock+set}" = set; then
 
6226
  enableval=$enable_libtool_lock;
 
6227
fi
 
6228
 
 
6229
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6230
 
 
6231
# Some flags need to be propagated to the compiler or linker for good
 
6232
# libtool support.
 
6233
case $host in
 
6234
ia64-*-hpux*)
 
6235
  # Find out which ABI we are using.
 
6236
  echo 'int i;' > conftest.$ac_ext
 
6237
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6238
  (eval $ac_compile) 2>&5
 
6239
  ac_status=$?
 
6240
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6241
  (exit $ac_status); }; then
 
6242
    case `/usr/bin/file conftest.$ac_objext` in
 
6243
      *ELF-32*)
 
6244
        HPUX_IA64_MODE="32"
 
6245
        ;;
 
6246
      *ELF-64*)
 
6247
        HPUX_IA64_MODE="64"
 
6248
        ;;
 
6249
    esac
 
6250
  fi
 
6251
  rm -rf conftest*
 
6252
  ;;
 
6253
*-*-irix6*)
 
6254
  # Find out which ABI we are using.
 
6255
  echo '#line 6255 "configure"' > conftest.$ac_ext
 
6256
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6257
  (eval $ac_compile) 2>&5
 
6258
  ac_status=$?
 
6259
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6260
  (exit $ac_status); }; then
 
6261
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6262
      case `/usr/bin/file conftest.$ac_objext` in
 
6263
        *32-bit*)
 
6264
          LD="${LD-ld} -melf32bsmip"
 
6265
          ;;
 
6266
        *N32*)
 
6267
          LD="${LD-ld} -melf32bmipn32"
 
6268
          ;;
 
6269
        *64-bit*)
 
6270
          LD="${LD-ld} -melf64bmip"
 
6271
        ;;
 
6272
      esac
 
6273
    else
 
6274
      case `/usr/bin/file conftest.$ac_objext` in
 
6275
        *32-bit*)
 
6276
          LD="${LD-ld} -32"
 
6277
          ;;
 
6278
        *N32*)
 
6279
          LD="${LD-ld} -n32"
 
6280
          ;;
 
6281
        *64-bit*)
 
6282
          LD="${LD-ld} -64"
 
6283
          ;;
 
6284
      esac
 
6285
    fi
 
6286
  fi
 
6287
  rm -rf conftest*
 
6288
  ;;
 
6289
 
 
6290
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6291
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6292
  # Find out which ABI we are using.
 
6293
  echo 'int i;' > conftest.$ac_ext
 
6294
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6295
  (eval $ac_compile) 2>&5
 
6296
  ac_status=$?
 
6297
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6298
  (exit $ac_status); }; then
 
6299
    case `/usr/bin/file conftest.o` in
 
6300
      *32-bit*)
 
6301
        case $host in
 
6302
          x86_64-*kfreebsd*-gnu)
 
6303
            LD="${LD-ld} -m elf_i386_fbsd"
 
6304
            ;;
 
6305
          x86_64-*linux*)
 
6306
            LD="${LD-ld} -m elf_i386"
 
6307
            ;;
 
6308
          ppc64-*linux*|powerpc64-*linux*)
 
6309
            LD="${LD-ld} -m elf32ppclinux"
 
6310
            ;;
 
6311
          s390x-*linux*)
 
6312
            LD="${LD-ld} -m elf_s390"
 
6313
            ;;
 
6314
          sparc64-*linux*)
 
6315
            LD="${LD-ld} -m elf32_sparc"
 
6316
            ;;
 
6317
        esac
 
6318
        ;;
 
6319
      *64-bit*)
 
6320
        case $host in
 
6321
          x86_64-*kfreebsd*-gnu)
 
6322
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6323
            ;;
 
6324
          x86_64-*linux*)
 
6325
            LD="${LD-ld} -m elf_x86_64"
 
6326
            ;;
 
6327
          ppc*-*linux*|powerpc*-*linux*)
 
6328
            LD="${LD-ld} -m elf64ppc"
 
6329
            ;;
 
6330
          s390*-*linux*|s390*-*tpf*)
 
6331
            LD="${LD-ld} -m elf64_s390"
 
6332
            ;;
 
6333
          sparc*-*linux*)
 
6334
            LD="${LD-ld} -m elf64_sparc"
 
6335
            ;;
 
6336
        esac
 
6337
        ;;
 
6338
    esac
 
6339
  fi
 
6340
  rm -rf conftest*
 
6341
  ;;
 
6342
 
 
6343
*-*-sco3.2v5*)
 
6344
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6345
  SAVE_CFLAGS="$CFLAGS"
 
6346
  CFLAGS="$CFLAGS -belf"
 
6347
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6348
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6349
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6350
  $as_echo_n "(cached) " >&6
 
6351
else
 
6352
  ac_ext=c
 
6353
ac_cpp='$CPP $CPPFLAGS'
 
6354
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6355
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6356
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6357
 
 
6358
     cat >conftest.$ac_ext <<_ACEOF
 
6359
/* confdefs.h.  */
 
6360
_ACEOF
 
6361
cat confdefs.h >>conftest.$ac_ext
 
6362
cat >>conftest.$ac_ext <<_ACEOF
 
6363
/* end confdefs.h.  */
 
6364
 
 
6365
int
 
6366
main ()
 
6367
{
 
6368
 
 
6369
  ;
 
6370
  return 0;
 
6371
}
 
6372
_ACEOF
 
6373
rm -f conftest.$ac_objext conftest$ac_exeext
 
6374
if { (ac_try="$ac_link"
 
6375
case "(($ac_try" in
 
6376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6377
  *) ac_try_echo=$ac_try;;
 
6378
esac
 
6379
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6380
$as_echo "$ac_try_echo") >&5
 
6381
  (eval "$ac_link") 2>conftest.er1
 
6382
  ac_status=$?
 
6383
  grep -v '^ *+' conftest.er1 >conftest.err
 
6384
  rm -f conftest.er1
 
6385
  cat conftest.err >&5
 
6386
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6387
  (exit $ac_status); } && {
 
6388
         test -z "$ac_c_werror_flag" ||
 
6389
         test ! -s conftest.err
 
6390
       } && test -s conftest$ac_exeext && {
 
6391
         test "$cross_compiling" = yes ||
 
6392
         $as_test_x conftest$ac_exeext
 
6393
       }; then
 
6394
  lt_cv_cc_needs_belf=yes
 
6395
else
 
6396
  $as_echo "$as_me: failed program was:" >&5
 
6397
sed 's/^/| /' conftest.$ac_ext >&5
 
6398
 
 
6399
        lt_cv_cc_needs_belf=no
 
6400
fi
 
6401
 
 
6402
rm -rf conftest.dSYM
 
6403
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6404
      conftest$ac_exeext conftest.$ac_ext
 
6405
     ac_ext=c
 
6406
ac_cpp='$CPP $CPPFLAGS'
 
6407
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6408
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6409
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6410
 
 
6411
fi
 
6412
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6413
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6414
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6415
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6416
    CFLAGS="$SAVE_CFLAGS"
 
6417
  fi
 
6418
  ;;
 
6419
sparc*-*solaris*)
 
6420
  # Find out which ABI we are using.
 
6421
  echo 'int i;' > conftest.$ac_ext
 
6422
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6423
  (eval $ac_compile) 2>&5
 
6424
  ac_status=$?
 
6425
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6426
  (exit $ac_status); }; then
 
6427
    case `/usr/bin/file conftest.o` in
 
6428
    *64-bit*)
 
6429
      case $lt_cv_prog_gnu_ld in
 
6430
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6431
      *)
 
6432
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6433
          LD="${LD-ld} -64"
 
6434
        fi
 
6435
        ;;
 
6436
      esac
 
6437
      ;;
 
6438
    esac
 
6439
  fi
 
6440
  rm -rf conftest*
 
6441
  ;;
 
6442
esac
 
6443
 
 
6444
need_locks="$enable_libtool_lock"
 
6445
 
 
6446
 
 
6447
  case $host_os in
 
6448
    rhapsody* | darwin*)
 
6449
    if test -n "$ac_tool_prefix"; then
 
6450
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6451
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6452
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6453
$as_echo_n "checking for $ac_word... " >&6; }
 
6454
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
6455
  $as_echo_n "(cached) " >&6
 
6456
else
 
6457
  if test -n "$DSYMUTIL"; then
 
6458
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6459
else
 
6460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6461
for as_dir in $PATH
 
6462
do
 
6463
  IFS=$as_save_IFS
 
6464
  test -z "$as_dir" && as_dir=.
 
6465
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6466
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6467
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6468
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6469
    break 2
 
6470
  fi
 
6471
done
 
6472
done
 
6473
IFS=$as_save_IFS
 
6474
 
 
6475
fi
 
6476
fi
 
6477
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6478
if test -n "$DSYMUTIL"; then
 
6479
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
6480
$as_echo "$DSYMUTIL" >&6; }
 
6481
else
 
6482
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6483
$as_echo "no" >&6; }
 
6484
fi
 
6485
 
 
6486
 
 
6487
fi
 
6488
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6489
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6490
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6491
set dummy dsymutil; ac_word=$2
 
6492
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6493
$as_echo_n "checking for $ac_word... " >&6; }
 
6494
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
6495
  $as_echo_n "(cached) " >&6
 
6496
else
 
6497
  if test -n "$ac_ct_DSYMUTIL"; then
 
6498
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6499
else
 
6500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6501
for as_dir in $PATH
 
6502
do
 
6503
  IFS=$as_save_IFS
 
6504
  test -z "$as_dir" && as_dir=.
 
6505
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6506
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6507
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6508
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6509
    break 2
 
6510
  fi
 
6511
done
 
6512
done
 
6513
IFS=$as_save_IFS
 
6514
 
 
6515
fi
 
6516
fi
 
6517
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6518
if test -n "$ac_ct_DSYMUTIL"; then
 
6519
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
6520
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6521
else
 
6522
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6523
$as_echo "no" >&6; }
 
6524
fi
 
6525
 
 
6526
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6527
    DSYMUTIL=":"
 
6528
  else
 
6529
    case $cross_compiling:$ac_tool_warned in
 
6530
yes:)
 
6531
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6532
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6533
ac_tool_warned=yes ;;
 
6534
esac
 
6535
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6536
  fi
 
6537
else
 
6538
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6539
fi
 
6540
 
 
6541
    if test -n "$ac_tool_prefix"; then
 
6542
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6543
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6544
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6545
$as_echo_n "checking for $ac_word... " >&6; }
 
6546
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
6547
  $as_echo_n "(cached) " >&6
 
6548
else
 
6549
  if test -n "$NMEDIT"; then
 
6550
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6551
else
 
6552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6553
for as_dir in $PATH
 
6554
do
 
6555
  IFS=$as_save_IFS
 
6556
  test -z "$as_dir" && as_dir=.
 
6557
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6559
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6560
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6561
    break 2
 
6562
  fi
 
6563
done
 
6564
done
 
6565
IFS=$as_save_IFS
 
6566
 
 
6567
fi
 
6568
fi
 
6569
NMEDIT=$ac_cv_prog_NMEDIT
 
6570
if test -n "$NMEDIT"; then
 
6571
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
6572
$as_echo "$NMEDIT" >&6; }
 
6573
else
 
6574
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6575
$as_echo "no" >&6; }
 
6576
fi
 
6577
 
 
6578
 
 
6579
fi
 
6580
if test -z "$ac_cv_prog_NMEDIT"; then
 
6581
  ac_ct_NMEDIT=$NMEDIT
 
6582
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6583
set dummy nmedit; ac_word=$2
 
6584
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6585
$as_echo_n "checking for $ac_word... " >&6; }
 
6586
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
6587
  $as_echo_n "(cached) " >&6
 
6588
else
 
6589
  if test -n "$ac_ct_NMEDIT"; then
 
6590
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6591
else
 
6592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6593
for as_dir in $PATH
 
6594
do
 
6595
  IFS=$as_save_IFS
 
6596
  test -z "$as_dir" && as_dir=.
 
6597
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6598
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6599
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6600
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6601
    break 2
 
6602
  fi
 
6603
done
 
6604
done
 
6605
IFS=$as_save_IFS
 
6606
 
 
6607
fi
 
6608
fi
 
6609
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6610
if test -n "$ac_ct_NMEDIT"; then
 
6611
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
6612
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6613
else
 
6614
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6615
$as_echo "no" >&6; }
 
6616
fi
 
6617
 
 
6618
  if test "x$ac_ct_NMEDIT" = x; then
 
6619
    NMEDIT=":"
 
6620
  else
 
6621
    case $cross_compiling:$ac_tool_warned in
 
6622
yes:)
 
6623
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6624
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6625
ac_tool_warned=yes ;;
 
6626
esac
 
6627
    NMEDIT=$ac_ct_NMEDIT
 
6628
  fi
 
6629
else
 
6630
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6631
fi
 
6632
 
 
6633
    if test -n "$ac_tool_prefix"; then
 
6634
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6635
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6636
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6637
$as_echo_n "checking for $ac_word... " >&6; }
 
6638
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6639
  $as_echo_n "(cached) " >&6
 
6640
else
 
6641
  if test -n "$LIPO"; then
 
6642
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6643
else
 
6644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6645
for as_dir in $PATH
 
6646
do
 
6647
  IFS=$as_save_IFS
 
6648
  test -z "$as_dir" && as_dir=.
 
6649
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6650
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6651
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6652
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6653
    break 2
 
6654
  fi
 
6655
done
 
6656
done
 
6657
IFS=$as_save_IFS
 
6658
 
 
6659
fi
 
6660
fi
 
6661
LIPO=$ac_cv_prog_LIPO
 
6662
if test -n "$LIPO"; then
 
6663
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
6664
$as_echo "$LIPO" >&6; }
 
6665
else
 
6666
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6667
$as_echo "no" >&6; }
 
6668
fi
 
6669
 
 
6670
 
 
6671
fi
 
6672
if test -z "$ac_cv_prog_LIPO"; then
 
6673
  ac_ct_LIPO=$LIPO
 
6674
  # Extract the first word of "lipo", so it can be a program name with args.
 
6675
set dummy lipo; ac_word=$2
 
6676
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6677
$as_echo_n "checking for $ac_word... " >&6; }
 
6678
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6679
  $as_echo_n "(cached) " >&6
 
6680
else
 
6681
  if test -n "$ac_ct_LIPO"; then
 
6682
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6683
else
 
6684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6685
for as_dir in $PATH
 
6686
do
 
6687
  IFS=$as_save_IFS
 
6688
  test -z "$as_dir" && as_dir=.
 
6689
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6690
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6691
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6692
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6693
    break 2
 
6694
  fi
 
6695
done
 
6696
done
 
6697
IFS=$as_save_IFS
 
6698
 
 
6699
fi
 
6700
fi
 
6701
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6702
if test -n "$ac_ct_LIPO"; then
 
6703
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6704
$as_echo "$ac_ct_LIPO" >&6; }
 
6705
else
 
6706
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6707
$as_echo "no" >&6; }
 
6708
fi
 
6709
 
 
6710
  if test "x$ac_ct_LIPO" = x; then
 
6711
    LIPO=":"
 
6712
  else
 
6713
    case $cross_compiling:$ac_tool_warned in
 
6714
yes:)
 
6715
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6716
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6717
ac_tool_warned=yes ;;
 
6718
esac
 
6719
    LIPO=$ac_ct_LIPO
 
6720
  fi
 
6721
else
 
6722
  LIPO="$ac_cv_prog_LIPO"
 
6723
fi
 
6724
 
 
6725
    if test -n "$ac_tool_prefix"; then
 
6726
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6727
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6728
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6729
$as_echo_n "checking for $ac_word... " >&6; }
 
6730
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6731
  $as_echo_n "(cached) " >&6
 
6732
else
 
6733
  if test -n "$OTOOL"; then
 
6734
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6735
else
 
6736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6737
for as_dir in $PATH
 
6738
do
 
6739
  IFS=$as_save_IFS
 
6740
  test -z "$as_dir" && as_dir=.
 
6741
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6742
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6743
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6744
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6745
    break 2
 
6746
  fi
 
6747
done
 
6748
done
 
6749
IFS=$as_save_IFS
 
6750
 
 
6751
fi
 
6752
fi
 
6753
OTOOL=$ac_cv_prog_OTOOL
 
6754
if test -n "$OTOOL"; then
 
6755
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6756
$as_echo "$OTOOL" >&6; }
 
6757
else
 
6758
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6759
$as_echo "no" >&6; }
 
6760
fi
 
6761
 
 
6762
 
 
6763
fi
 
6764
if test -z "$ac_cv_prog_OTOOL"; then
 
6765
  ac_ct_OTOOL=$OTOOL
 
6766
  # Extract the first word of "otool", so it can be a program name with args.
 
6767
set dummy otool; ac_word=$2
 
6768
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6769
$as_echo_n "checking for $ac_word... " >&6; }
 
6770
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6771
  $as_echo_n "(cached) " >&6
 
6772
else
 
6773
  if test -n "$ac_ct_OTOOL"; then
 
6774
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6775
else
 
6776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6777
for as_dir in $PATH
 
6778
do
 
6779
  IFS=$as_save_IFS
 
6780
  test -z "$as_dir" && as_dir=.
 
6781
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6782
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6783
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6784
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6785
    break 2
 
6786
  fi
 
6787
done
 
6788
done
 
6789
IFS=$as_save_IFS
 
6790
 
 
6791
fi
 
6792
fi
 
6793
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6794
if test -n "$ac_ct_OTOOL"; then
 
6795
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6796
$as_echo "$ac_ct_OTOOL" >&6; }
 
6797
else
 
6798
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6799
$as_echo "no" >&6; }
 
6800
fi
 
6801
 
 
6802
  if test "x$ac_ct_OTOOL" = x; then
 
6803
    OTOOL=":"
 
6804
  else
 
6805
    case $cross_compiling:$ac_tool_warned in
 
6806
yes:)
 
6807
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6808
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6809
ac_tool_warned=yes ;;
 
6810
esac
 
6811
    OTOOL=$ac_ct_OTOOL
 
6812
  fi
 
6813
else
 
6814
  OTOOL="$ac_cv_prog_OTOOL"
 
6815
fi
 
6816
 
 
6817
    if test -n "$ac_tool_prefix"; then
 
6818
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6819
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6820
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6821
$as_echo_n "checking for $ac_word... " >&6; }
 
6822
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6823
  $as_echo_n "(cached) " >&6
 
6824
else
 
6825
  if test -n "$OTOOL64"; then
 
6826
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6827
else
 
6828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6829
for as_dir in $PATH
 
6830
do
 
6831
  IFS=$as_save_IFS
 
6832
  test -z "$as_dir" && as_dir=.
 
6833
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6834
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6835
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6836
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6837
    break 2
 
6838
  fi
 
6839
done
 
6840
done
 
6841
IFS=$as_save_IFS
 
6842
 
 
6843
fi
 
6844
fi
 
6845
OTOOL64=$ac_cv_prog_OTOOL64
 
6846
if test -n "$OTOOL64"; then
 
6847
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6848
$as_echo "$OTOOL64" >&6; }
 
6849
else
 
6850
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6851
$as_echo "no" >&6; }
 
6852
fi
 
6853
 
 
6854
 
 
6855
fi
 
6856
if test -z "$ac_cv_prog_OTOOL64"; then
 
6857
  ac_ct_OTOOL64=$OTOOL64
 
6858
  # Extract the first word of "otool64", so it can be a program name with args.
 
6859
set dummy otool64; ac_word=$2
 
6860
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6861
$as_echo_n "checking for $ac_word... " >&6; }
 
6862
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6863
  $as_echo_n "(cached) " >&6
 
6864
else
 
6865
  if test -n "$ac_ct_OTOOL64"; then
 
6866
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6867
else
 
6868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6869
for as_dir in $PATH
 
6870
do
 
6871
  IFS=$as_save_IFS
 
6872
  test -z "$as_dir" && as_dir=.
 
6873
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6874
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6875
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6876
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6877
    break 2
 
6878
  fi
 
6879
done
 
6880
done
 
6881
IFS=$as_save_IFS
 
6882
 
 
6883
fi
 
6884
fi
 
6885
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6886
if test -n "$ac_ct_OTOOL64"; then
 
6887
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6888
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6889
else
 
6890
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6891
$as_echo "no" >&6; }
 
6892
fi
 
6893
 
 
6894
  if test "x$ac_ct_OTOOL64" = x; then
 
6895
    OTOOL64=":"
 
6896
  else
 
6897
    case $cross_compiling:$ac_tool_warned in
 
6898
yes:)
 
6899
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6900
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6901
ac_tool_warned=yes ;;
 
6902
esac
 
6903
    OTOOL64=$ac_ct_OTOOL64
 
6904
  fi
 
6905
else
 
6906
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6907
fi
 
6908
 
 
6909
 
 
6910
 
 
6911
 
 
6912
 
 
6913
 
 
6914
 
 
6915
 
 
6916
 
 
6917
 
 
6918
 
 
6919
 
 
6920
 
 
6921
 
 
6922
 
 
6923
 
 
6924
 
 
6925
 
 
6926
 
 
6927
 
 
6928
 
 
6929
 
 
6930
 
 
6931
 
 
6932
 
 
6933
 
 
6934
 
 
6935
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
6936
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6937
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
6938
  $as_echo_n "(cached) " >&6
 
6939
else
 
6940
  lt_cv_apple_cc_single_mod=no
 
6941
      if test -z "${LT_MULTI_MODULE}"; then
 
6942
        # By default we will add the -single_module flag. You can override
 
6943
        # by either setting the environment variable LT_MULTI_MODULE
 
6944
        # non-empty at configure time, or by adding -multi_module to the
 
6945
        # link flags.
 
6946
        rm -rf libconftest.dylib*
 
6947
        echo "int foo(void){return 1;}" > conftest.c
 
6948
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6949
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6950
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6951
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6952
        _lt_result=$?
 
6953
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6954
          lt_cv_apple_cc_single_mod=yes
 
6955
        else
 
6956
          cat conftest.err >&5
 
6957
        fi
 
6958
        rm -rf libconftest.dylib*
 
6959
        rm -f conftest.*
 
6960
      fi
 
6961
fi
 
6962
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
6963
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6964
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
6965
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6966
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
6967
  $as_echo_n "(cached) " >&6
 
6968
else
 
6969
  lt_cv_ld_exported_symbols_list=no
 
6970
      save_LDFLAGS=$LDFLAGS
 
6971
      echo "_main" > conftest.sym
 
6972
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6973
      cat >conftest.$ac_ext <<_ACEOF
 
6974
/* confdefs.h.  */
 
6975
_ACEOF
 
6976
cat confdefs.h >>conftest.$ac_ext
 
6977
cat >>conftest.$ac_ext <<_ACEOF
 
6978
/* end confdefs.h.  */
 
6979
 
 
6980
int
 
6981
main ()
 
6982
{
 
6983
 
 
6984
  ;
 
6985
  return 0;
 
6986
}
 
6987
_ACEOF
 
6988
rm -f conftest.$ac_objext conftest$ac_exeext
 
6989
if { (ac_try="$ac_link"
 
6990
case "(($ac_try" in
 
6991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6992
  *) ac_try_echo=$ac_try;;
 
6993
esac
 
6994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6995
$as_echo "$ac_try_echo") >&5
 
6996
  (eval "$ac_link") 2>conftest.er1
 
6997
  ac_status=$?
 
6998
  grep -v '^ *+' conftest.er1 >conftest.err
 
6999
  rm -f conftest.er1
 
7000
  cat conftest.err >&5
 
7001
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7002
  (exit $ac_status); } && {
 
7003
         test -z "$ac_c_werror_flag" ||
 
7004
         test ! -s conftest.err
 
7005
       } && test -s conftest$ac_exeext && {
 
7006
         test "$cross_compiling" = yes ||
 
7007
         $as_test_x conftest$ac_exeext
 
7008
       }; then
 
7009
  lt_cv_ld_exported_symbols_list=yes
 
7010
else
 
7011
  $as_echo "$as_me: failed program was:" >&5
 
7012
sed 's/^/| /' conftest.$ac_ext >&5
 
7013
 
 
7014
        lt_cv_ld_exported_symbols_list=no
 
7015
fi
 
7016
 
 
7017
rm -rf conftest.dSYM
 
7018
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7019
      conftest$ac_exeext conftest.$ac_ext
 
7020
        LDFLAGS="$save_LDFLAGS"
 
7021
 
 
7022
fi
 
7023
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7024
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7025
    case $host_os in
 
7026
    rhapsody* | darwin1.[012])
 
7027
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7028
    darwin1.*)
 
7029
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7030
    darwin*) # darwin 5.x on
 
7031
      # if running on 10.5 or later, the deployment target defaults
 
7032
      # to the OS version, if on x86, and 10.4, the deployment
 
7033
      # target defaults to 10.4. Don't you love it?
 
7034
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7035
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7036
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7037
        10.[012]*)
 
7038
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7039
        10.*)
 
7040
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7041
      esac
 
7042
    ;;
 
7043
  esac
 
7044
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7045
      _lt_dar_single_mod='$single_module'
 
7046
    fi
 
7047
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7048
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7049
    else
 
7050
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7051
    fi
 
7052
    if test "$DSYMUTIL" != ":"; then
 
7053
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7054
    else
 
7055
      _lt_dsymutil=
 
7056
    fi
 
7057
    ;;
 
7058
  esac
 
7059
 
 
7060
 
 
7061
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7062
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7063
if test "${ac_cv_header_stdc+set}" = set; then
 
7064
  $as_echo_n "(cached) " >&6
 
7065
else
 
7066
  cat >conftest.$ac_ext <<_ACEOF
 
7067
/* confdefs.h.  */
 
7068
_ACEOF
 
7069
cat confdefs.h >>conftest.$ac_ext
 
7070
cat >>conftest.$ac_ext <<_ACEOF
 
7071
/* end confdefs.h.  */
 
7072
#include <stdlib.h>
 
7073
#include <stdarg.h>
 
7074
#include <string.h>
 
7075
#include <float.h>
 
7076
 
 
7077
int
 
7078
main ()
 
7079
{
 
7080
 
 
7081
  ;
 
7082
  return 0;
 
7083
}
 
7084
_ACEOF
 
7085
rm -f conftest.$ac_objext
 
7086
if { (ac_try="$ac_compile"
 
7087
case "(($ac_try" in
 
7088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7089
  *) ac_try_echo=$ac_try;;
 
7090
esac
 
7091
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7092
$as_echo "$ac_try_echo") >&5
 
7093
  (eval "$ac_compile") 2>conftest.er1
 
7094
  ac_status=$?
 
7095
  grep -v '^ *+' conftest.er1 >conftest.err
 
7096
  rm -f conftest.er1
 
7097
  cat conftest.err >&5
 
7098
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7099
  (exit $ac_status); } && {
 
7100
         test -z "$ac_c_werror_flag" ||
 
7101
         test ! -s conftest.err
 
7102
       } && test -s conftest.$ac_objext; then
 
7103
  ac_cv_header_stdc=yes
 
7104
else
 
7105
  $as_echo "$as_me: failed program was:" >&5
 
7106
sed 's/^/| /' conftest.$ac_ext >&5
 
7107
 
 
7108
        ac_cv_header_stdc=no
 
7109
fi
 
7110
 
 
7111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7112
 
 
7113
if test $ac_cv_header_stdc = yes; then
 
7114
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7115
  cat >conftest.$ac_ext <<_ACEOF
 
7116
/* confdefs.h.  */
 
7117
_ACEOF
 
7118
cat confdefs.h >>conftest.$ac_ext
 
7119
cat >>conftest.$ac_ext <<_ACEOF
 
7120
/* end confdefs.h.  */
 
7121
#include <string.h>
 
7122
 
 
7123
_ACEOF
 
7124
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7125
  $EGREP "memchr" >/dev/null 2>&1; then
 
7126
  :
 
7127
else
 
7128
  ac_cv_header_stdc=no
 
7129
fi
 
7130
rm -f conftest*
 
7131
 
 
7132
fi
 
7133
 
 
7134
if test $ac_cv_header_stdc = yes; then
 
7135
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7136
  cat >conftest.$ac_ext <<_ACEOF
 
7137
/* confdefs.h.  */
 
7138
_ACEOF
 
7139
cat confdefs.h >>conftest.$ac_ext
 
7140
cat >>conftest.$ac_ext <<_ACEOF
 
7141
/* end confdefs.h.  */
 
7142
#include <stdlib.h>
 
7143
 
 
7144
_ACEOF
 
7145
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7146
  $EGREP "free" >/dev/null 2>&1; then
 
7147
  :
 
7148
else
 
7149
  ac_cv_header_stdc=no
 
7150
fi
 
7151
rm -f conftest*
 
7152
 
 
7153
fi
 
7154
 
 
7155
if test $ac_cv_header_stdc = yes; then
 
7156
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7157
  if test "$cross_compiling" = yes; then
 
7158
  :
 
7159
else
 
7160
  cat >conftest.$ac_ext <<_ACEOF
 
7161
/* confdefs.h.  */
 
7162
_ACEOF
 
7163
cat confdefs.h >>conftest.$ac_ext
 
7164
cat >>conftest.$ac_ext <<_ACEOF
 
7165
/* end confdefs.h.  */
 
7166
#include <ctype.h>
 
7167
#include <stdlib.h>
 
7168
#if ((' ' & 0x0FF) == 0x020)
 
7169
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7170
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7171
#else
 
7172
# define ISLOWER(c) \
 
7173
                   (('a' <= (c) && (c) <= 'i') \
 
7174
                     || ('j' <= (c) && (c) <= 'r') \
 
7175
                     || ('s' <= (c) && (c) <= 'z'))
 
7176
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7177
#endif
 
7178
 
 
7179
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7180
int
 
7181
main ()
 
7182
{
 
7183
  int i;
 
7184
  for (i = 0; i < 256; i++)
 
7185
    if (XOR (islower (i), ISLOWER (i))
 
7186
        || toupper (i) != TOUPPER (i))
 
7187
      return 2;
 
7188
  return 0;
 
7189
}
 
7190
_ACEOF
 
7191
rm -f conftest$ac_exeext
 
7192
if { (ac_try="$ac_link"
 
7193
case "(($ac_try" in
 
7194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7195
  *) ac_try_echo=$ac_try;;
 
7196
esac
 
7197
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7198
$as_echo "$ac_try_echo") >&5
 
7199
  (eval "$ac_link") 2>&5
 
7200
  ac_status=$?
 
7201
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7202
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7203
  { (case "(($ac_try" in
 
7204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7205
  *) ac_try_echo=$ac_try;;
 
7206
esac
 
7207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7208
$as_echo "$ac_try_echo") >&5
 
7209
  (eval "$ac_try") 2>&5
 
7210
  ac_status=$?
 
7211
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7212
  (exit $ac_status); }; }; then
 
7213
  :
 
7214
else
 
7215
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
7216
$as_echo "$as_me: failed program was:" >&5
 
7217
sed 's/^/| /' conftest.$ac_ext >&5
 
7218
 
 
7219
( exit $ac_status )
 
7220
ac_cv_header_stdc=no
 
7221
fi
 
7222
rm -rf conftest.dSYM
 
7223
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7224
fi
 
7225
 
 
7226
 
 
7227
fi
 
7228
fi
 
7229
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7230
$as_echo "$ac_cv_header_stdc" >&6; }
 
7231
if test $ac_cv_header_stdc = yes; then
 
7232
 
 
7233
cat >>confdefs.h <<\_ACEOF
 
7234
#define STDC_HEADERS 1
 
7235
_ACEOF
 
7236
 
 
7237
fi
 
7238
 
 
7239
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7240
 
 
7241
 
 
7242
 
 
7243
 
 
7244
 
 
7245
 
 
7246
 
 
7247
 
 
7248
 
 
7249
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7250
                  inttypes.h stdint.h unistd.h
 
7251
do
 
7252
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7253
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7254
$as_echo_n "checking for $ac_header... " >&6; }
 
7255
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7256
  $as_echo_n "(cached) " >&6
 
7257
else
 
7258
  cat >conftest.$ac_ext <<_ACEOF
 
7259
/* confdefs.h.  */
 
7260
_ACEOF
 
7261
cat confdefs.h >>conftest.$ac_ext
 
7262
cat >>conftest.$ac_ext <<_ACEOF
 
7263
/* end confdefs.h.  */
 
7264
$ac_includes_default
 
7265
 
 
7266
#include <$ac_header>
 
7267
_ACEOF
 
7268
rm -f conftest.$ac_objext
 
7269
if { (ac_try="$ac_compile"
 
7270
case "(($ac_try" in
 
7271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7272
  *) ac_try_echo=$ac_try;;
 
7273
esac
 
7274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7275
$as_echo "$ac_try_echo") >&5
 
7276
  (eval "$ac_compile") 2>conftest.er1
 
7277
  ac_status=$?
 
7278
  grep -v '^ *+' conftest.er1 >conftest.err
 
7279
  rm -f conftest.er1
 
7280
  cat conftest.err >&5
 
7281
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7282
  (exit $ac_status); } && {
 
7283
         test -z "$ac_c_werror_flag" ||
 
7284
         test ! -s conftest.err
 
7285
       } && test -s conftest.$ac_objext; then
 
7286
  eval "$as_ac_Header=yes"
 
7287
else
 
7288
  $as_echo "$as_me: failed program was:" >&5
 
7289
sed 's/^/| /' conftest.$ac_ext >&5
 
7290
 
 
7291
        eval "$as_ac_Header=no"
 
7292
fi
 
7293
 
 
7294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7295
fi
 
7296
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7297
                 $as_echo "$as_val"'`
 
7298
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7299
$as_echo "$ac_res" >&6; }
 
7300
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7301
                 $as_echo "$as_val"'`
 
7302
   if test "x$as_val" = x""yes; then
 
7303
  cat >>confdefs.h <<_ACEOF
 
7304
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7305
_ACEOF
 
7306
 
 
7307
fi
 
7308
 
 
7309
done
 
7310
 
 
7311
 
 
7312
 
 
7313
for ac_header in dlfcn.h
 
7314
do
 
7315
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7316
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7317
$as_echo_n "checking for $ac_header... " >&6; }
 
7318
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7319
  $as_echo_n "(cached) " >&6
 
7320
else
 
7321
  cat >conftest.$ac_ext <<_ACEOF
 
7322
/* confdefs.h.  */
 
7323
_ACEOF
 
7324
cat confdefs.h >>conftest.$ac_ext
 
7325
cat >>conftest.$ac_ext <<_ACEOF
 
7326
/* end confdefs.h.  */
 
7327
$ac_includes_default
 
7328
 
 
7329
#include <$ac_header>
 
7330
_ACEOF
 
7331
rm -f conftest.$ac_objext
 
7332
if { (ac_try="$ac_compile"
 
7333
case "(($ac_try" in
 
7334
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7335
  *) ac_try_echo=$ac_try;;
 
7336
esac
 
7337
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7338
$as_echo "$ac_try_echo") >&5
 
7339
  (eval "$ac_compile") 2>conftest.er1
 
7340
  ac_status=$?
 
7341
  grep -v '^ *+' conftest.er1 >conftest.err
 
7342
  rm -f conftest.er1
 
7343
  cat conftest.err >&5
 
7344
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7345
  (exit $ac_status); } && {
 
7346
         test -z "$ac_c_werror_flag" ||
 
7347
         test ! -s conftest.err
 
7348
       } && test -s conftest.$ac_objext; then
 
7349
  eval "$as_ac_Header=yes"
 
7350
else
 
7351
  $as_echo "$as_me: failed program was:" >&5
 
7352
sed 's/^/| /' conftest.$ac_ext >&5
 
7353
 
 
7354
        eval "$as_ac_Header=no"
 
7355
fi
 
7356
 
 
7357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7358
fi
 
7359
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7360
                 $as_echo "$as_val"'`
 
7361
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7362
$as_echo "$ac_res" >&6; }
 
7363
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7364
                 $as_echo "$as_val"'`
 
7365
   if test "x$as_val" = x""yes; then
 
7366
  cat >>confdefs.h <<_ACEOF
 
7367
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7368
_ACEOF
 
7369
 
 
7370
fi
 
7371
 
 
7372
done
 
7373
 
 
7374
 
 
7375
 
 
7376
# Set options
 
7377
 
 
7378
 
 
7379
 
 
7380
        enable_dlopen=no
 
7381
 
 
7382
 
 
7383
 
 
7384
            # Check whether --enable-shared was given.
 
7385
if test "${enable_shared+set}" = set; then
 
7386
  enableval=$enable_shared; p=${PACKAGE-default}
 
7387
    case $enableval in
 
7388
    yes) enable_shared=yes ;;
 
7389
    no) enable_shared=no ;;
 
7390
    *)
 
7391
      enable_shared=no
 
7392
      # Look at the argument we got.  We use all the common list separators.
 
7393
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7394
      for pkg in $enableval; do
 
7395
        IFS="$lt_save_ifs"
 
7396
        if test "X$pkg" = "X$p"; then
 
7397
          enable_shared=yes
 
7398
        fi
 
7399
      done
 
7400
      IFS="$lt_save_ifs"
 
7401
      ;;
 
7402
    esac
 
7403
else
 
7404
  enable_shared=yes
 
7405
fi
 
7406
 
 
7407
 
 
7408
 
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
  # Check whether --enable-static was given.
 
7416
if test "${enable_static+set}" = set; then
 
7417
  enableval=$enable_static; p=${PACKAGE-default}
 
7418
    case $enableval in
 
7419
    yes) enable_static=yes ;;
 
7420
    no) enable_static=no ;;
 
7421
    *)
 
7422
     enable_static=no
 
7423
      # Look at the argument we got.  We use all the common list separators.
 
7424
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7425
      for pkg in $enableval; do
 
7426
        IFS="$lt_save_ifs"
 
7427
        if test "X$pkg" = "X$p"; then
 
7428
          enable_static=yes
 
7429
        fi
 
7430
      done
 
7431
      IFS="$lt_save_ifs"
 
7432
      ;;
 
7433
    esac
 
7434
else
 
7435
  enable_static=yes
 
7436
fi
 
7437
 
 
7438
 
 
7439
 
 
7440
 
 
7441
 
 
7442
 
 
7443
 
 
7444
 
 
7445
 
 
7446
 
 
7447
# Check whether --with-pic was given.
 
7448
if test "${with_pic+set}" = set; then
 
7449
  withval=$with_pic; pic_mode="$withval"
 
7450
else
 
7451
  pic_mode=default
 
7452
fi
 
7453
 
 
7454
 
 
7455
test -z "$pic_mode" && pic_mode=default
 
7456
 
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
  # Check whether --enable-fast-install was given.
 
7464
if test "${enable_fast_install+set}" = set; then
 
7465
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7466
    case $enableval in
 
7467
    yes) enable_fast_install=yes ;;
 
7468
    no) enable_fast_install=no ;;
 
7469
    *)
 
7470
      enable_fast_install=no
 
7471
      # Look at the argument we got.  We use all the common list separators.
 
7472
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7473
      for pkg in $enableval; do
 
7474
        IFS="$lt_save_ifs"
 
7475
        if test "X$pkg" = "X$p"; then
 
7476
          enable_fast_install=yes
 
7477
        fi
 
7478
      done
 
7479
      IFS="$lt_save_ifs"
 
7480
      ;;
 
7481
    esac
 
7482
else
 
7483
  enable_fast_install=yes
 
7484
fi
 
7485
 
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
 
 
7496
# This can be used to rebuild libtool when needed
 
7497
LIBTOOL_DEPS="$ltmain"
 
7498
 
 
7499
# Always use our own libtool.
 
7500
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7501
 
 
7502
 
 
7503
 
 
7504
 
 
7505
 
 
7506
 
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
 
 
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
 
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
test -z "$LN_S" && LN_S="ln -s"
 
7527
 
 
7528
 
 
7529
 
 
7530
 
 
7531
 
 
7532
 
 
7533
 
 
7534
 
 
7535
 
 
7536
 
 
7537
 
 
7538
 
 
7539
 
 
7540
 
 
7541
if test -n "${ZSH_VERSION+set}" ; then
 
7542
   setopt NO_GLOB_SUBST
 
7543
fi
 
7544
 
 
7545
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7546
$as_echo_n "checking for objdir... " >&6; }
6075
7547
if test "${lt_cv_objdir+set}" = set; then
6076
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7548
  $as_echo_n "(cached) " >&6
6077
7549
else
6078
7550
  rm -f .libs 2>/dev/null
6079
7551
mkdir .libs 2>/dev/null
6085
7557
fi
6086
7558
rmdir .libs 2>/dev/null
6087
7559
fi
6088
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6089
 
echo "${ECHO_T}$lt_cv_objdir" >&6
 
7560
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7561
$as_echo "$lt_cv_objdir" >&6; }
6090
7562
objdir=$lt_cv_objdir
6091
7563
 
6092
7564
 
6093
7565
 
6094
7566
 
6095
7567
 
 
7568
cat >>confdefs.h <<_ACEOF
 
7569
#define LT_OBJDIR "$lt_cv_objdir/"
 
7570
_ACEOF
 
7571
 
 
7572
 
 
7573
 
 
7574
 
 
7575
 
 
7576
 
 
7577
 
 
7578
 
 
7579
 
 
7580
 
 
7581
 
 
7582
 
 
7583
 
 
7584
 
 
7585
 
 
7586
 
 
7587
 
6096
7588
case $host_os in
6097
7589
aix3*)
6098
7590
  # AIX sometimes has problems with the GCC collect2 program.  For some
6107
7599
 
6108
7600
# Sed substitution that helps us do robust quoting.  It backslashifies
6109
7601
# metacharacters that are still active within double-quoted strings.
6110
 
Xsed='sed -e 1s/^X//'
6111
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7602
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6112
7603
 
6113
7604
# Same as above, but do not quote variable references.
6114
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7605
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6115
7606
 
6116
7607
# Sed substitution to delay expansion of an escaped shell variable in a
6117
7608
# double_quote_subst'ed string.
6118
7609
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6119
7610
 
 
7611
# Sed substitution to delay expansion of an escaped single quote.
 
7612
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7613
 
6120
7614
# Sed substitution to avoid accidental globbing in evaled expressions
6121
7615
no_glob_subst='s/\*/\\\*/g'
6122
7616
 
6123
 
# Constants:
6124
 
rm="rm -f"
6125
 
 
6126
7617
# Global variables:
6127
 
default_ofile=libtool
 
7618
ofile=libtool
6128
7619
can_build_shared=yes
6129
7620
 
6130
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7621
# All known linkers require a `.a' archive for static linking (except MSVC,
6131
7622
# which needs '.lib').
6132
7623
libext=a
6133
 
ltmain="$ac_aux_dir/ltmain.sh"
6134
 
ofile="$default_ofile"
 
7624
 
6135
7625
with_gnu_ld="$lt_cv_prog_gnu_ld"
6136
7626
 
6137
 
if test -n "$ac_tool_prefix"; then
6138
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6139
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6140
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6141
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6142
 
if test "${ac_cv_prog_AR+set}" = set; then
6143
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6144
 
else
6145
 
  if test -n "$AR"; then
6146
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6147
 
else
6148
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149
 
for as_dir in $PATH
6150
 
do
6151
 
  IFS=$as_save_IFS
6152
 
  test -z "$as_dir" && as_dir=.
6153
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6154
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6156
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157
 
    break 2
6158
 
  fi
6159
 
done
6160
 
done
6161
 
 
6162
 
fi
6163
 
fi
6164
 
AR=$ac_cv_prog_AR
6165
 
if test -n "$AR"; then
6166
 
  echo "$as_me:$LINENO: result: $AR" >&5
6167
 
echo "${ECHO_T}$AR" >&6
6168
 
else
6169
 
  echo "$as_me:$LINENO: result: no" >&5
6170
 
echo "${ECHO_T}no" >&6
6171
 
fi
6172
 
 
6173
 
fi
6174
 
if test -z "$ac_cv_prog_AR"; then
6175
 
  ac_ct_AR=$AR
6176
 
  # Extract the first word of "ar", so it can be a program name with args.
6177
 
set dummy ar; ac_word=$2
6178
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6179
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6180
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6182
 
else
6183
 
  if test -n "$ac_ct_AR"; then
6184
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6185
 
else
6186
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187
 
for as_dir in $PATH
6188
 
do
6189
 
  IFS=$as_save_IFS
6190
 
  test -z "$as_dir" && as_dir=.
6191
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6192
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193
 
    ac_cv_prog_ac_ct_AR="ar"
6194
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195
 
    break 2
6196
 
  fi
6197
 
done
6198
 
done
6199
 
 
6200
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6201
 
fi
6202
 
fi
6203
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6204
 
if test -n "$ac_ct_AR"; then
6205
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6206
 
echo "${ECHO_T}$ac_ct_AR" >&6
6207
 
else
6208
 
  echo "$as_me:$LINENO: result: no" >&5
6209
 
echo "${ECHO_T}no" >&6
6210
 
fi
6211
 
 
6212
 
  AR=$ac_ct_AR
6213
 
else
6214
 
  AR="$ac_cv_prog_AR"
6215
 
fi
6216
 
 
6217
 
if test -n "$ac_tool_prefix"; then
6218
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6219
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6220
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6221
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6222
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6223
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6224
 
else
6225
 
  if test -n "$RANLIB"; then
6226
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6227
 
else
6228
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229
 
for as_dir in $PATH
6230
 
do
6231
 
  IFS=$as_save_IFS
6232
 
  test -z "$as_dir" && as_dir=.
6233
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6234
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6236
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237
 
    break 2
6238
 
  fi
6239
 
done
6240
 
done
6241
 
 
6242
 
fi
6243
 
fi
6244
 
RANLIB=$ac_cv_prog_RANLIB
6245
 
if test -n "$RANLIB"; then
6246
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
6247
 
echo "${ECHO_T}$RANLIB" >&6
6248
 
else
6249
 
  echo "$as_me:$LINENO: result: no" >&5
6250
 
echo "${ECHO_T}no" >&6
6251
 
fi
6252
 
 
6253
 
fi
6254
 
if test -z "$ac_cv_prog_RANLIB"; then
6255
 
  ac_ct_RANLIB=$RANLIB
6256
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6257
 
set dummy ranlib; ac_word=$2
6258
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6259
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6260
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6261
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6262
 
else
6263
 
  if test -n "$ac_ct_RANLIB"; then
6264
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6265
 
else
6266
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267
 
for as_dir in $PATH
6268
 
do
6269
 
  IFS=$as_save_IFS
6270
 
  test -z "$as_dir" && as_dir=.
6271
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6272
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6274
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275
 
    break 2
6276
 
  fi
6277
 
done
6278
 
done
6279
 
 
6280
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6281
 
fi
6282
 
fi
6283
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6284
 
if test -n "$ac_ct_RANLIB"; then
6285
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6286
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6287
 
else
6288
 
  echo "$as_me:$LINENO: result: no" >&5
6289
 
echo "${ECHO_T}no" >&6
6290
 
fi
6291
 
 
6292
 
  RANLIB=$ac_ct_RANLIB
6293
 
else
6294
 
  RANLIB="$ac_cv_prog_RANLIB"
6295
 
fi
6296
 
 
6297
 
if test -n "$ac_tool_prefix"; then
6298
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6299
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6300
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6301
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6302
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6303
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6304
 
else
6305
 
  if test -n "$STRIP"; then
6306
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6307
 
else
6308
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309
 
for as_dir in $PATH
6310
 
do
6311
 
  IFS=$as_save_IFS
6312
 
  test -z "$as_dir" && as_dir=.
6313
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6314
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6316
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317
 
    break 2
6318
 
  fi
6319
 
done
6320
 
done
6321
 
 
6322
 
fi
6323
 
fi
6324
 
STRIP=$ac_cv_prog_STRIP
6325
 
if test -n "$STRIP"; then
6326
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
6327
 
echo "${ECHO_T}$STRIP" >&6
6328
 
else
6329
 
  echo "$as_me:$LINENO: result: no" >&5
6330
 
echo "${ECHO_T}no" >&6
6331
 
fi
6332
 
 
6333
 
fi
6334
 
if test -z "$ac_cv_prog_STRIP"; then
6335
 
  ac_ct_STRIP=$STRIP
6336
 
  # Extract the first word of "strip", so it can be a program name with args.
6337
 
set dummy strip; ac_word=$2
6338
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6339
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6340
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6342
 
else
6343
 
  if test -n "$ac_ct_STRIP"; then
6344
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6345
 
else
6346
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347
 
for as_dir in $PATH
6348
 
do
6349
 
  IFS=$as_save_IFS
6350
 
  test -z "$as_dir" && as_dir=.
6351
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6352
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353
 
    ac_cv_prog_ac_ct_STRIP="strip"
6354
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355
 
    break 2
6356
 
  fi
6357
 
done
6358
 
done
6359
 
 
6360
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6361
 
fi
6362
 
fi
6363
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6364
 
if test -n "$ac_ct_STRIP"; then
6365
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6366
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
6367
 
else
6368
 
  echo "$as_me:$LINENO: result: no" >&5
6369
 
echo "${ECHO_T}no" >&6
6370
 
fi
6371
 
 
6372
 
  STRIP=$ac_ct_STRIP
6373
 
else
6374
 
  STRIP="$ac_cv_prog_STRIP"
6375
 
fi
6376
 
 
6377
 
 
6378
7627
old_CC="$CC"
6379
7628
old_CFLAGS="$CFLAGS"
6380
7629
 
6381
7630
# Set sane defaults for various variables
6382
 
test -z "$AR" && AR=ar
6383
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6384
 
test -z "$AS" && AS=as
6385
7631
test -z "$CC" && CC=cc
6386
7632
test -z "$LTCC" && LTCC=$CC
6387
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7633
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6388
7634
test -z "$LD" && LD=ld
6389
 
test -z "$LN_S" && LN_S="ln -s"
6390
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6391
 
test -z "$NM" && NM=nm
6392
 
test -z "$SED" && SED=sed
6393
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6394
 
test -z "$RANLIB" && RANLIB=:
6395
 
test -z "$STRIP" && STRIP=:
6396
7635
test -z "$ac_objext" && ac_objext=o
6397
7636
 
6398
 
# Determine commands to create old-style static archives.
6399
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6400
 
old_postinstall_cmds='chmod 644 $oldlib'
6401
 
old_postuninstall_cmds=
6402
 
 
6403
 
if test -n "$RANLIB"; then
6404
 
  case $host_os in
6405
 
  openbsd*)
6406
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6407
 
    ;;
6408
 
  *)
6409
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6410
 
    ;;
6411
 
  esac
6412
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6413
 
fi
6414
 
 
6415
7637
for cc_temp in $compiler""; do
6416
7638
  case $cc_temp in
6417
7639
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6420
7642
    *) break;;
6421
7643
  esac
6422
7644
done
6423
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7645
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6424
7646
 
6425
7647
 
6426
7648
# Only perform the check for file, if the check method requires it
 
7649
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6427
7650
case $deplibs_check_method in
6428
7651
file_magic*)
6429
7652
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6430
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6431
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7653
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7654
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6432
7655
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6433
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7656
  $as_echo_n "(cached) " >&6
6434
7657
else
6435
7658
  case $MAGIC_CMD in
6436
7659
[\\/*] |  ?:[\\/]*)
6448
7671
      if test -n "$file_magic_test_file"; then
6449
7672
        case $deplibs_check_method in
6450
7673
        "file_magic "*)
6451
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7674
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6452
7675
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6453
7676
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6454
7677
            $EGREP "$file_magic_regex" > /dev/null; then
6455
7678
            :
6456
7679
          else
6457
 
            cat <<EOF 1>&2
 
7680
            cat <<_LT_EOF 1>&2
6458
7681
 
6459
7682
*** Warning: the command libtool uses to detect shared libraries,
6460
7683
*** $file_magic_cmd, produces output that libtool cannot recognize.
6465
7688
*** may want to report the problem to your system manager and/or to
6466
7689
*** bug-libtool@gnu.org
6467
7690
 
6468
 
EOF
 
7691
_LT_EOF
6469
7692
          fi ;;
6470
7693
        esac
6471
7694
      fi
6480
7703
 
6481
7704
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6482
7705
if test -n "$MAGIC_CMD"; then
6483
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6484
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7706
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7707
$as_echo "$MAGIC_CMD" >&6; }
6485
7708
else
6486
 
  echo "$as_me:$LINENO: result: no" >&5
6487
 
echo "${ECHO_T}no" >&6
 
7709
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7710
$as_echo "no" >&6; }
6488
7711
fi
6489
7712
 
 
7713
 
 
7714
 
 
7715
 
 
7716
 
6490
7717
if test -z "$lt_cv_path_MAGIC_CMD"; then
6491
7718
  if test -n "$ac_tool_prefix"; then
6492
 
    echo "$as_me:$LINENO: checking for file" >&5
6493
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7719
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7720
$as_echo_n "checking for file... " >&6; }
6494
7721
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6495
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7722
  $as_echo_n "(cached) " >&6
6496
7723
else
6497
7724
  case $MAGIC_CMD in
6498
7725
[\\/*] |  ?:[\\/]*)
6510
7737
      if test -n "$file_magic_test_file"; then
6511
7738
        case $deplibs_check_method in
6512
7739
        "file_magic "*)
6513
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7740
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6514
7741
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6515
7742
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6516
7743
            $EGREP "$file_magic_regex" > /dev/null; then
6517
7744
            :
6518
7745
          else
6519
 
            cat <<EOF 1>&2
 
7746
            cat <<_LT_EOF 1>&2
6520
7747
 
6521
7748
*** Warning: the command libtool uses to detect shared libraries,
6522
7749
*** $file_magic_cmd, produces output that libtool cannot recognize.
6527
7754
*** may want to report the problem to your system manager and/or to
6528
7755
*** bug-libtool@gnu.org
6529
7756
 
6530
 
EOF
 
7757
_LT_EOF
6531
7758
          fi ;;
6532
7759
        esac
6533
7760
      fi
6542
7769
 
6543
7770
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6544
7771
if test -n "$MAGIC_CMD"; then
6545
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6546
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7772
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7773
$as_echo "$MAGIC_CMD" >&6; }
6547
7774
else
6548
 
  echo "$as_me:$LINENO: result: no" >&5
6549
 
echo "${ECHO_T}no" >&6
 
7775
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7776
$as_echo "no" >&6; }
6550
7777
fi
6551
7778
 
 
7779
 
6552
7780
  else
6553
7781
    MAGIC_CMD=:
6554
7782
  fi
6558
7786
  ;;
6559
7787
esac
6560
7788
 
6561
 
enable_dlopen=no
6562
 
enable_win32_dll=yes
6563
 
 
6564
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6565
 
if test "${enable_libtool_lock+set}" = set; then
6566
 
  enableval="$enable_libtool_lock"
6567
 
 
6568
 
fi;
6569
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6570
 
 
6571
 
 
6572
 
# Check whether --with-pic or --without-pic was given.
6573
 
if test "${with_pic+set}" = set; then
6574
 
  withval="$with_pic"
6575
 
  pic_mode="$withval"
6576
 
else
6577
 
  pic_mode=default
6578
 
fi;
6579
 
test -z "$pic_mode" && pic_mode=default
6580
 
 
6581
 
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6582
 
#
6583
 
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6584
 
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6585
 
#        calls AC_LIBTOOL_CONFIG and creates libtool.
6586
 
#
6587
 
echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6588
 
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6589
 
if test -z "$ltmain"; then
6590
 
  echo "$as_me:$LINENO: result: no" >&5
6591
 
echo "${ECHO_T}no" >&6
6592
 
  echo
6593
 
  echo "*** Gentoo sanity check failed! ***"
6594
 
  echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
6595
 
  echo
6596
 
  exit 1
6597
 
fi
6598
 
gentoo_lt_version="1.5.18"
6599
 
gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
6600
 
if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
6601
 
  echo "$as_me:$LINENO: result: no" >&5
6602
 
echo "${ECHO_T}no" >&6
6603
 
  echo
6604
 
  echo "*** Gentoo sanity check failed! ***"
6605
 
  echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
6606
 
  echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
6607
 
  echo
6608
 
  echo "Please run:"
6609
 
  echo
6610
 
  echo "  libtoolize --copy --force"
6611
 
  echo
6612
 
  echo "if appropriate, please contact the maintainer of this"
6613
 
  echo "package (or your distribution) for help."
6614
 
  echo
6615
 
  exit 1
6616
 
else
6617
 
  echo "$as_me:$LINENO: result: yes" >&5
6618
 
echo "${ECHO_T}yes" >&6
6619
 
fi
6620
 
 
6621
 
 
6622
7789
# Use C for the default configuration in the libtool script
6623
 
tagname=
 
7790
 
6624
7791
lt_save_CC="$CC"
6625
7792
ac_ext=c
6626
7793
ac_cpp='$CPP $CPPFLAGS'
6637
7804
objext=$objext
6638
7805
 
6639
7806
# Code to be used in simple compile tests
6640
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7807
lt_simple_compile_test_code="int some_variable = 0;"
6641
7808
 
6642
7809
# Code to be used in simple link tests
6643
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7810
lt_simple_link_test_code='int main(){return(0);}'
 
7811
 
 
7812
 
 
7813
 
 
7814
 
 
7815
 
6644
7816
 
6645
7817
 
6646
7818
# If no C compiler was specified, use CC.
6647
7819
LTCC=${LTCC-"$CC"}
6648
7820
 
 
7821
# If no C compiler flags were specified, use CFLAGS.
 
7822
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7823
 
6649
7824
# Allow CC to be a program name with arguments.
6650
7825
compiler=$CC
6651
7826
 
 
7827
# Save the default compiler, since it gets overwritten when the other
 
7828
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7829
compiler_DEFAULT=$CC
6652
7830
 
6653
7831
# save warnings/boilerplate of simple test code
6654
7832
ac_outfile=conftest.$ac_objext
6655
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6656
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7833
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7834
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6657
7835
_lt_compiler_boilerplate=`cat conftest.err`
6658
 
$rm conftest*
 
7836
$RM conftest*
6659
7837
 
6660
7838
ac_outfile=conftest.$ac_objext
6661
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6662
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7839
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7840
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6663
7841
_lt_linker_boilerplate=`cat conftest.err`
6664
 
$rm conftest*
6665
 
 
6666
 
 
6667
 
#
6668
 
# Check for any special shared library compilation flags.
6669
 
#
6670
 
lt_prog_cc_shlib=
6671
 
if test "$GCC" = no; then
6672
 
  case $host_os in
6673
 
  sco3.2v5*)
6674
 
    lt_prog_cc_shlib='-belf'
6675
 
    ;;
6676
 
  esac
6677
 
fi
6678
 
if test -n "$lt_prog_cc_shlib"; then
6679
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6680
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6681
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6682
 
  else
6683
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6684
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6685
 
    lt_cv_prog_cc_can_build_shared=no
6686
 
  fi
6687
 
fi
6688
 
 
6689
 
 
6690
 
#
6691
 
# Check to make sure the static flag actually works.
6692
 
#
6693
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6694
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6695
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6696
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6697
 
else
6698
 
  lt_prog_compiler_static_works=no
6699
 
   save_LDFLAGS="$LDFLAGS"
6700
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6701
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6702
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6703
 
     # The compiler can only warn and ignore the option if not recognized
6704
 
     # So say no if there are warnings
6705
 
     if test -s conftest.err; then
6706
 
       # Append any errors to the config.log.
6707
 
       cat conftest.err 1>&5
6708
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6709
 
       $SED '/^$/d' conftest.err >conftest.er2
6710
 
       if diff conftest.exp conftest.er2 >/dev/null; then
6711
 
         lt_prog_compiler_static_works=yes
6712
 
       fi
6713
 
     else
6714
 
       lt_prog_compiler_static_works=yes
6715
 
     fi
6716
 
   fi
6717
 
   $rm conftest*
6718
 
   LDFLAGS="$save_LDFLAGS"
6719
 
 
6720
 
fi
6721
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6722
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6723
 
 
6724
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6725
 
    :
6726
 
else
6727
 
    lt_prog_compiler_static=
6728
 
fi
6729
 
 
6730
 
 
6731
 
 
 
7842
$RM -r conftest*
 
7843
 
 
7844
 
 
7845
if test -n "$compiler"; then
6732
7846
 
6733
7847
lt_prog_compiler_no_builtin_flag=
6734
7848
 
6735
7849
if test "$GCC" = yes; then
6736
7850
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6737
7851
 
6738
 
 
6739
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6740
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7852
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7853
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6741
7854
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6742
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7855
  $as_echo_n "(cached) " >&6
6743
7856
else
6744
7857
  lt_cv_prog_compiler_rtti_exceptions=no
6745
 
  ac_outfile=conftest.$ac_objext
6746
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7858
   ac_outfile=conftest.$ac_objext
 
7859
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6747
7860
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6748
7861
   # Insert the option either (1) after the last *FLAGS variable, or
6749
7862
   # (2) before a word containing "conftest.", or (3) at the end.
6751
7864
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6752
7865
   # The option is referenced via a variable to avoid confusing sed.
6753
7866
   lt_compile=`echo "$ac_compile" | $SED \
6754
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7867
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6755
7868
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6756
7869
   -e 's:$: $lt_compiler_flag:'`
6757
 
   (eval echo "\"\$as_me:6757: $lt_compile\"" >&5)
 
7870
   (eval echo "\"\$as_me:7870: $lt_compile\"" >&5)
6758
7871
   (eval "$lt_compile" 2>conftest.err)
6759
7872
   ac_status=$?
6760
7873
   cat conftest.err >&5
6761
 
   echo "$as_me:6761: \$? = $ac_status" >&5
 
7874
   echo "$as_me:7874: \$? = $ac_status" >&5
6762
7875
   if (exit $ac_status) && test -s "$ac_outfile"; then
6763
7876
     # The compiler can only warn and ignore the option if not recognized
6764
7877
     # So say no if there are warnings other than the usual output.
6765
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6766
 
     $SED '/^$/d' conftest.err >conftest.er2
6767
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
7878
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7879
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7880
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6768
7881
       lt_cv_prog_compiler_rtti_exceptions=yes
6769
7882
     fi
6770
7883
   fi
6771
 
   $rm conftest*
 
7884
   $RM conftest*
6772
7885
 
6773
7886
fi
6774
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6775
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7887
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7888
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6776
7889
 
6777
7890
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6778
7891
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6782
7895
 
6783
7896
fi
6784
7897
 
6785
 
lt_prog_compiler_wl=
 
7898
 
 
7899
 
 
7900
 
 
7901
 
 
7902
 
 
7903
  lt_prog_compiler_wl=
6786
7904
lt_prog_compiler_pic=
6787
7905
lt_prog_compiler_static=
6788
7906
 
6789
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6790
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7907
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7908
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6791
7909
 
6792
7910
  if test "$GCC" = yes; then
6793
7911
    lt_prog_compiler_wl='-Wl,'
6803
7921
      ;;
6804
7922
 
6805
7923
    amigaos*)
6806
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6807
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6808
 
      # like `-m68040'.
6809
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7924
      case $host_cpu in
 
7925
      powerpc)
 
7926
            # see comment about AmigaOS4 .so support
 
7927
            lt_prog_compiler_pic='-fPIC'
 
7928
        ;;
 
7929
      m68k)
 
7930
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7931
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7932
            # like `-m68040'.
 
7933
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7934
        ;;
 
7935
      esac
6810
7936
      ;;
6811
7937
 
6812
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7938
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6813
7939
      # PIC is the default for these OSes.
6814
7940
      ;;
6815
7941
 
6816
 
    mingw* | pw32* | os2*)
 
7942
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6817
7943
      # This hack is so that the source file can tell whether it is being
6818
7944
      # built for inclusion in a dll (and should export symbols for example).
 
7945
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7946
      # (--disable-auto-import) libraries
6819
7947
      lt_prog_compiler_pic='-DDLL_EXPORT'
6820
7948
      ;;
6821
7949
 
6825
7953
      lt_prog_compiler_pic='-fno-common'
6826
7954
      ;;
6827
7955
 
 
7956
    hpux*)
 
7957
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7958
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7959
      # sets the default TLS model and affects inlining.
 
7960
      case $host_cpu in
 
7961
      hppa*64*)
 
7962
        # +Z the default
 
7963
        ;;
 
7964
      *)
 
7965
        lt_prog_compiler_pic='-fPIC'
 
7966
        ;;
 
7967
      esac
 
7968
      ;;
 
7969
 
 
7970
    interix[3-9]*)
 
7971
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7972
      # Instead, we relocate shared libraries at runtime.
 
7973
      ;;
 
7974
 
6828
7975
    msdosdjgpp*)
6829
7976
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6830
7977
      # on systems that don't support them.
6832
7979
      enable_shared=no
6833
7980
      ;;
6834
7981
 
 
7982
    *nto* | *qnx*)
 
7983
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7984
      # it will coredump.
 
7985
      lt_prog_compiler_pic='-fPIC -shared'
 
7986
      ;;
 
7987
 
6835
7988
    sysv4*MP*)
6836
7989
      if test -d /usr/nec; then
6837
7990
        lt_prog_compiler_pic=-Kconform_pic
6838
7991
      fi
6839
7992
      ;;
6840
7993
 
6841
 
    hpux*)
6842
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6843
 
      # not for PA HP-UX.
6844
 
      case "$host_cpu" in
6845
 
      hppa*64*|ia64*)
6846
 
        # +Z the default
6847
 
        ;;
6848
 
      *)
6849
 
        lt_prog_compiler_pic='-fPIC'
6850
 
        ;;
6851
 
      esac
6852
 
      ;;
6853
 
 
6854
7994
    *)
6855
7995
      lt_prog_compiler_pic='-fPIC'
6856
7996
      ;;
6867
8007
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6868
8008
      fi
6869
8009
      ;;
6870
 
      darwin*)
6871
 
        # PIC is the default on this platform
6872
 
        # Common symbols not allowed in MH_DYLIB files
6873
 
       case $cc_basename in
6874
 
         xlc*)
6875
 
         lt_prog_compiler_pic='-qnocommon'
6876
 
         lt_prog_compiler_wl='-Wl,'
6877
 
         ;;
6878
 
       esac
6879
 
       ;;
6880
8010
 
6881
 
    mingw* | pw32* | os2*)
 
8011
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6882
8012
      # This hack is so that the source file can tell whether it is being
6883
8013
      # built for inclusion in a dll (and should export symbols for example).
6884
8014
      lt_prog_compiler_pic='-DDLL_EXPORT'
6888
8018
      lt_prog_compiler_wl='-Wl,'
6889
8019
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6890
8020
      # not for PA HP-UX.
6891
 
      case "$host_cpu" in
 
8021
      case $host_cpu in
6892
8022
      hppa*64*|ia64*)
6893
8023
        # +Z the default
6894
8024
        ;;
6906
8036
      lt_prog_compiler_static='-non_shared'
6907
8037
      ;;
6908
8038
 
6909
 
    newsos6)
6910
 
      lt_prog_compiler_pic='-KPIC'
6911
 
      lt_prog_compiler_static='-Bstatic'
6912
 
      ;;
6913
 
 
6914
 
    linux*)
 
8039
    linux* | k*bsd*-gnu)
6915
8040
      case $cc_basename in
6916
 
      icc* | ecc*)
 
8041
      # old Intel for x86_64 which still supported -KPIC.
 
8042
      ecc*)
6917
8043
        lt_prog_compiler_wl='-Wl,'
6918
8044
        lt_prog_compiler_pic='-KPIC'
6919
8045
        lt_prog_compiler_static='-static'
6920
8046
        ;;
6921
 
      pgcc* | pgf77* | pgf90*)
 
8047
      # icc used to be incompatible with GCC.
 
8048
      # ICC 10 doesn't accept -KPIC any more.
 
8049
      icc* | ifort*)
 
8050
        lt_prog_compiler_wl='-Wl,'
 
8051
        lt_prog_compiler_pic='-fPIC'
 
8052
        lt_prog_compiler_static='-static'
 
8053
        ;;
 
8054
      # Lahey Fortran 8.1.
 
8055
      lf95*)
 
8056
        lt_prog_compiler_wl='-Wl,'
 
8057
        lt_prog_compiler_pic='--shared'
 
8058
        lt_prog_compiler_static='--static'
 
8059
        ;;
 
8060
      pgcc* | pgf77* | pgf90* | pgf95*)
6922
8061
        # Portland Group compilers (*not* the Pentium gcc compiler,
6923
8062
        # which looks to be a dead project)
6924
8063
        lt_prog_compiler_wl='-Wl,'
6925
8064
        lt_prog_compiler_pic='-fpic'
6926
 
        lt_prog_compiler_static='-static'
 
8065
        lt_prog_compiler_static='-Bstatic'
6927
8066
        ;;
6928
8067
      ccc*)
6929
8068
        lt_prog_compiler_wl='-Wl,'
6930
8069
        # All Alpha code is PIC.
6931
8070
        lt_prog_compiler_static='-non_shared'
6932
8071
        ;;
 
8072
      xl*)
 
8073
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8074
        lt_prog_compiler_wl='-Wl,'
 
8075
        lt_prog_compiler_pic='-qpic'
 
8076
        lt_prog_compiler_static='-qstaticlink'
 
8077
        ;;
 
8078
      *)
 
8079
        case `$CC -V 2>&1 | sed 5q` in
 
8080
        *Sun\ C*)
 
8081
          # Sun C 5.9
 
8082
          lt_prog_compiler_pic='-KPIC'
 
8083
          lt_prog_compiler_static='-Bstatic'
 
8084
          lt_prog_compiler_wl='-Wl,'
 
8085
          ;;
 
8086
        *Sun\ F*)
 
8087
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8088
          lt_prog_compiler_pic='-KPIC'
 
8089
          lt_prog_compiler_static='-Bstatic'
 
8090
          lt_prog_compiler_wl=''
 
8091
          ;;
 
8092
        esac
 
8093
        ;;
6933
8094
      esac
6934
8095
      ;;
6935
8096
 
 
8097
    newsos6)
 
8098
      lt_prog_compiler_pic='-KPIC'
 
8099
      lt_prog_compiler_static='-Bstatic'
 
8100
      ;;
 
8101
 
 
8102
    *nto* | *qnx*)
 
8103
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8104
      # it will coredump.
 
8105
      lt_prog_compiler_pic='-fPIC -shared'
 
8106
      ;;
 
8107
 
6936
8108
    osf3* | osf4* | osf5*)
6937
8109
      lt_prog_compiler_wl='-Wl,'
6938
8110
      # All OSF/1 code is PIC.
6939
8111
      lt_prog_compiler_static='-non_shared'
6940
8112
      ;;
6941
8113
 
6942
 
    sco3.2v5*)
6943
 
      lt_prog_compiler_pic='-Kpic'
6944
 
      lt_prog_compiler_static='-dn'
 
8114
    rdos*)
 
8115
      lt_prog_compiler_static='-non_shared'
6945
8116
      ;;
6946
8117
 
6947
8118
    solaris*)
6961
8132
      lt_prog_compiler_static='-Bstatic'
6962
8133
      ;;
6963
8134
 
6964
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8135
    sysv4 | sysv4.2uw2* | sysv4.3*)
6965
8136
      lt_prog_compiler_wl='-Wl,'
6966
8137
      lt_prog_compiler_pic='-KPIC'
6967
8138
      lt_prog_compiler_static='-Bstatic'
6974
8145
      fi
6975
8146
      ;;
6976
8147
 
 
8148
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8149
      lt_prog_compiler_wl='-Wl,'
 
8150
      lt_prog_compiler_pic='-KPIC'
 
8151
      lt_prog_compiler_static='-Bstatic'
 
8152
      ;;
 
8153
 
6977
8154
    unicos*)
6978
8155
      lt_prog_compiler_wl='-Wl,'
6979
8156
      lt_prog_compiler_can_build_shared=no
6990
8167
    esac
6991
8168
  fi
6992
8169
 
6993
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6994
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
8170
case $host_os in
 
8171
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8172
  *djgpp*)
 
8173
    lt_prog_compiler_pic=
 
8174
    ;;
 
8175
  *)
 
8176
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8177
    ;;
 
8178
esac
 
8179
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8180
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8181
 
 
8182
 
 
8183
 
 
8184
 
 
8185
 
6995
8186
 
6996
8187
#
6997
8188
# Check to make sure the PIC flag actually works.
6998
8189
#
6999
8190
if test -n "$lt_prog_compiler_pic"; then
7000
 
 
7001
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7002
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7003
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
7004
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8191
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8192
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8193
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8194
  $as_echo_n "(cached) " >&6
7005
8195
else
7006
 
  lt_prog_compiler_pic_works=no
7007
 
  ac_outfile=conftest.$ac_objext
7008
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8196
  lt_cv_prog_compiler_pic_works=no
 
8197
   ac_outfile=conftest.$ac_objext
 
8198
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7009
8199
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7010
8200
   # Insert the option either (1) after the last *FLAGS variable, or
7011
8201
   # (2) before a word containing "conftest.", or (3) at the end.
7013
8203
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7014
8204
   # The option is referenced via a variable to avoid confusing sed.
7015
8205
   lt_compile=`echo "$ac_compile" | $SED \
7016
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8206
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7017
8207
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7018
8208
   -e 's:$: $lt_compiler_flag:'`
7019
 
   (eval echo "\"\$as_me:7019: $lt_compile\"" >&5)
 
8209
   (eval echo "\"\$as_me:8209: $lt_compile\"" >&5)
7020
8210
   (eval "$lt_compile" 2>conftest.err)
7021
8211
   ac_status=$?
7022
8212
   cat conftest.err >&5
7023
 
   echo "$as_me:7023: \$? = $ac_status" >&5
 
8213
   echo "$as_me:8213: \$? = $ac_status" >&5
7024
8214
   if (exit $ac_status) && test -s "$ac_outfile"; then
7025
8215
     # The compiler can only warn and ignore the option if not recognized
7026
8216
     # So say no if there are warnings other than the usual output.
7027
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7028
 
     $SED '/^$/d' conftest.err >conftest.er2
7029
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7030
 
       lt_prog_compiler_pic_works=yes
 
8217
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8218
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8219
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8220
       lt_cv_prog_compiler_pic_works=yes
7031
8221
     fi
7032
8222
   fi
7033
 
   $rm conftest*
 
8223
   $RM conftest*
7034
8224
 
7035
8225
fi
7036
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7037
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
8226
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8227
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7038
8228
 
7039
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8229
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7040
8230
    case $lt_prog_compiler_pic in
7041
8231
     "" | " "*) ;;
7042
8232
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7047
8237
fi
7048
8238
 
7049
8239
fi
7050
 
case "$host_os" in
7051
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7052
 
  *djgpp*)
7053
 
    lt_prog_compiler_pic=
7054
 
    ;;
7055
 
  *)
7056
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7057
 
    ;;
7058
 
esac
7059
 
 
7060
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7061
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7062
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7063
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7064
 
else
7065
 
  lt_cv_prog_compiler_c_o=no
7066
 
   $rm -r conftest 2>/dev/null
7067
 
   mkdir conftest
7068
 
   cd conftest
7069
 
   mkdir out
7070
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7071
 
 
7072
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7073
 
   # Insert the option either (1) after the last *FLAGS variable, or
7074
 
   # (2) before a word containing "conftest.", or (3) at the end.
7075
 
   # Note that $ac_compile itself does not contain backslashes and begins
7076
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7077
 
   lt_compile=`echo "$ac_compile" | $SED \
7078
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7079
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7080
 
   -e 's:$: $lt_compiler_flag:'`
7081
 
   (eval echo "\"\$as_me:7081: $lt_compile\"" >&5)
7082
 
   (eval "$lt_compile" 2>out/conftest.err)
7083
 
   ac_status=$?
7084
 
   cat out/conftest.err >&5
7085
 
   echo "$as_me:7085: \$? = $ac_status" >&5
7086
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7087
 
   then
7088
 
     # The compiler can only warn and ignore the option if not recognized
7089
 
     # So say no if there are warnings
7090
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7091
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
7092
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7093
 
       lt_cv_prog_compiler_c_o=yes
7094
 
     fi
7095
 
   fi
7096
 
   chmod u+w .
7097
 
   $rm conftest*
7098
 
   # SGI C++ compiler will create directory out/ii_files/ for
7099
 
   # template instantiation
7100
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7101
 
   $rm out/* && rmdir out
7102
 
   cd ..
7103
 
   rmdir conftest
7104
 
   $rm conftest*
7105
 
 
7106
 
fi
7107
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7108
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8240
 
 
8241
 
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
#
 
8247
# Check to make sure the static flag actually works.
 
8248
#
 
8249
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8250
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8251
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8252
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8253
  $as_echo_n "(cached) " >&6
 
8254
else
 
8255
  lt_cv_prog_compiler_static_works=no
 
8256
   save_LDFLAGS="$LDFLAGS"
 
8257
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8258
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8259
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8260
     # The linker can only warn and ignore the option if not recognized
 
8261
     # So say no if there are warnings
 
8262
     if test -s conftest.err; then
 
8263
       # Append any errors to the config.log.
 
8264
       cat conftest.err 1>&5
 
8265
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8266
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8267
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8268
         lt_cv_prog_compiler_static_works=yes
 
8269
       fi
 
8270
     else
 
8271
       lt_cv_prog_compiler_static_works=yes
 
8272
     fi
 
8273
   fi
 
8274
   $RM -r conftest*
 
8275
   LDFLAGS="$save_LDFLAGS"
 
8276
 
 
8277
fi
 
8278
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8279
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8280
 
 
8281
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8282
    :
 
8283
else
 
8284
    lt_prog_compiler_static=
 
8285
fi
 
8286
 
 
8287
 
 
8288
 
 
8289
 
 
8290
 
 
8291
 
 
8292
 
 
8293
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8294
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8295
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8296
  $as_echo_n "(cached) " >&6
 
8297
else
 
8298
  lt_cv_prog_compiler_c_o=no
 
8299
   $RM -r conftest 2>/dev/null
 
8300
   mkdir conftest
 
8301
   cd conftest
 
8302
   mkdir out
 
8303
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8304
 
 
8305
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8306
   # Insert the option either (1) after the last *FLAGS variable, or
 
8307
   # (2) before a word containing "conftest.", or (3) at the end.
 
8308
   # Note that $ac_compile itself does not contain backslashes and begins
 
8309
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8310
   lt_compile=`echo "$ac_compile" | $SED \
 
8311
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8312
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8313
   -e 's:$: $lt_compiler_flag:'`
 
8314
   (eval echo "\"\$as_me:8314: $lt_compile\"" >&5)
 
8315
   (eval "$lt_compile" 2>out/conftest.err)
 
8316
   ac_status=$?
 
8317
   cat out/conftest.err >&5
 
8318
   echo "$as_me:8318: \$? = $ac_status" >&5
 
8319
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8320
   then
 
8321
     # The compiler can only warn and ignore the option if not recognized
 
8322
     # So say no if there are warnings
 
8323
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8324
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8325
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8326
       lt_cv_prog_compiler_c_o=yes
 
8327
     fi
 
8328
   fi
 
8329
   chmod u+w . 2>&5
 
8330
   $RM conftest*
 
8331
   # SGI C++ compiler will create directory out/ii_files/ for
 
8332
   # template instantiation
 
8333
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8334
   $RM out/* && rmdir out
 
8335
   cd ..
 
8336
   $RM -r conftest
 
8337
   $RM conftest*
 
8338
 
 
8339
fi
 
8340
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8341
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8342
 
 
8343
 
 
8344
 
 
8345
 
 
8346
 
 
8347
 
 
8348
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8349
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8350
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8351
  $as_echo_n "(cached) " >&6
 
8352
else
 
8353
  lt_cv_prog_compiler_c_o=no
 
8354
   $RM -r conftest 2>/dev/null
 
8355
   mkdir conftest
 
8356
   cd conftest
 
8357
   mkdir out
 
8358
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8359
 
 
8360
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8361
   # Insert the option either (1) after the last *FLAGS variable, or
 
8362
   # (2) before a word containing "conftest.", or (3) at the end.
 
8363
   # Note that $ac_compile itself does not contain backslashes and begins
 
8364
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8365
   lt_compile=`echo "$ac_compile" | $SED \
 
8366
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8367
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8368
   -e 's:$: $lt_compiler_flag:'`
 
8369
   (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
 
8370
   (eval "$lt_compile" 2>out/conftest.err)
 
8371
   ac_status=$?
 
8372
   cat out/conftest.err >&5
 
8373
   echo "$as_me:8373: \$? = $ac_status" >&5
 
8374
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8375
   then
 
8376
     # The compiler can only warn and ignore the option if not recognized
 
8377
     # So say no if there are warnings
 
8378
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8379
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8380
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8381
       lt_cv_prog_compiler_c_o=yes
 
8382
     fi
 
8383
   fi
 
8384
   chmod u+w . 2>&5
 
8385
   $RM conftest*
 
8386
   # SGI C++ compiler will create directory out/ii_files/ for
 
8387
   # template instantiation
 
8388
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8389
   $RM out/* && rmdir out
 
8390
   cd ..
 
8391
   $RM -r conftest
 
8392
   $RM conftest*
 
8393
 
 
8394
fi
 
8395
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8396
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8397
 
 
8398
 
7109
8399
 
7110
8400
 
7111
8401
hard_links="nottested"
7112
8402
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7113
8403
  # do not overwrite the value of need_locks provided by the user
7114
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7115
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8404
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8405
$as_echo_n "checking if we can lock with hard links... " >&6; }
7116
8406
  hard_links=yes
7117
 
  $rm conftest*
 
8407
  $RM conftest*
7118
8408
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7119
8409
  touch conftest.a
7120
8410
  ln conftest.a conftest.b 2>&5 || hard_links=no
7121
8411
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7122
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
7123
 
echo "${ECHO_T}$hard_links" >&6
 
8412
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
8413
$as_echo "$hard_links" >&6; }
7124
8414
  if test "$hard_links" = no; then
7125
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7126
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8415
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8416
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7127
8417
    need_locks=warn
7128
8418
  fi
7129
8419
else
7130
8420
  need_locks=no
7131
8421
fi
7132
8422
 
7133
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7134
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8423
 
 
8424
 
 
8425
 
 
8426
 
 
8427
 
 
8428
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8429
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7135
8430
 
7136
8431
  runpath_var=
7137
8432
  allow_undefined_flag=
7138
 
  enable_shared_with_static_runtimes=no
 
8433
  always_export_symbols=no
7139
8434
  archive_cmds=
7140
8435
  archive_expsym_cmds=
7141
 
  old_archive_From_new_cmds=
7142
 
  old_archive_from_expsyms_cmds=
 
8436
  compiler_needs_object=no
 
8437
  enable_shared_with_static_runtimes=no
7143
8438
  export_dynamic_flag_spec=
7144
 
  whole_archive_flag_spec=
7145
 
  thread_safe_flag_spec=
 
8439
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8440
  hardcode_automatic=no
 
8441
  hardcode_direct=no
 
8442
  hardcode_direct_absolute=no
7146
8443
  hardcode_libdir_flag_spec=
7147
8444
  hardcode_libdir_flag_spec_ld=
7148
8445
  hardcode_libdir_separator=
7149
 
  hardcode_direct=no
7150
8446
  hardcode_minus_L=no
7151
8447
  hardcode_shlibpath_var=unsupported
 
8448
  inherit_rpath=no
7152
8449
  link_all_deplibs=unknown
7153
 
  hardcode_automatic=no
7154
8450
  module_cmds=
7155
8451
  module_expsym_cmds=
7156
 
  always_export_symbols=no
7157
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8452
  old_archive_from_new_cmds=
 
8453
  old_archive_from_expsyms_cmds=
 
8454
  thread_safe_flag_spec=
 
8455
  whole_archive_flag_spec=
7158
8456
  # include_expsyms should be a list of space-separated symbols to be *always*
7159
8457
  # included in the symbol list
7160
8458
  include_expsyms=
7162
8460
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7163
8461
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7164
8462
  # as well as any symbol that contains `d'.
7165
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8463
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7166
8464
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7167
8465
  # platforms (ab)use it in PIC code, but their linkers get confused if
7168
8466
  # the symbol is explicitly referenced.  Since portable code cannot
7169
8467
  # rely on this symbol name, it's probably fine to never include it in
7170
8468
  # preloaded symbol tables.
 
8469
  # Exclude shared library initialization/finalization symbols.
7171
8470
  extract_expsyms_cmds=
7172
 
  # Just being paranoid about ensuring that cc_basename is set.
7173
 
  for cc_temp in $compiler""; do
7174
 
  case $cc_temp in
7175
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7176
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7177
 
    \-*) ;;
7178
 
    *) break;;
7179
 
  esac
7180
 
done
7181
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7182
8471
 
7183
8472
  case $host_os in
7184
 
  cygwin* | mingw* | pw32*)
 
8473
  cygwin* | mingw* | pw32* | cegcc*)
7185
8474
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7186
8475
    # When not using gcc, we currently assume that we are using
7187
8476
    # Microsoft Visual C++.
7189
8478
      with_gnu_ld=no
7190
8479
    fi
7191
8480
    ;;
 
8481
  interix*)
 
8482
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8483
    with_gnu_ld=yes
 
8484
    ;;
7192
8485
  openbsd*)
7193
8486
    with_gnu_ld=no
7194
8487
    ;;
7203
8496
    # are reset later if shared libraries are not supported. Putting them
7204
8497
    # here allows them to be overridden if necessary.
7205
8498
    runpath_var=LD_RUN_PATH
7206
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8499
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207
8500
    export_dynamic_flag_spec='${wl}--export-dynamic'
7208
8501
    # ancient GNU ld didn't support --whole-archive et. al.
7209
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7210
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7211
 
      else
7212
 
        whole_archive_flag_spec=
 
8502
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8503
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8504
    else
 
8505
      whole_archive_flag_spec=
7213
8506
    fi
7214
8507
    supports_anon_versioning=no
7215
 
    case `$LD -v 2>/dev/null` in
 
8508
    case `$LD -v 2>&1` in
7216
8509
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7217
8510
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7218
8511
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7222
8515
 
7223
8516
    # See if GNU ld supports shared libraries.
7224
8517
    case $host_os in
7225
 
    aix3* | aix4* | aix5*)
 
8518
    aix[3-9]*)
7226
8519
      # On AIX/PPC, the GNU linker is very broken
7227
8520
      if test "$host_cpu" != ia64; then
7228
8521
        ld_shlibs=no
7229
 
        cat <<EOF 1>&2
 
8522
        cat <<_LT_EOF 1>&2
7230
8523
 
7231
8524
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7232
8525
*** to be unable to reliably create shared libraries on AIX.
7234
8527
*** really care for shared libraries, you may want to modify your PATH
7235
8528
*** so that a non-GNU linker is found, and then restart.
7236
8529
 
7237
 
EOF
 
8530
_LT_EOF
7238
8531
      fi
7239
8532
      ;;
7240
8533
 
7241
8534
    amigaos*)
7242
 
      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)'
7243
 
      hardcode_libdir_flag_spec='-L$libdir'
7244
 
      hardcode_minus_L=yes
7245
 
 
7246
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7247
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
7248
 
      # to version 4, is to share data among multiple programs linked
7249
 
      # with the same dynamic library.  Since this doesn't match the
7250
 
      # behavior of shared libraries on other platforms, we can't use
7251
 
      # them.
7252
 
      ld_shlibs=no
 
8535
      case $host_cpu in
 
8536
      powerpc)
 
8537
            # see comment about AmigaOS4 .so support
 
8538
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8539
            archive_expsym_cmds=''
 
8540
        ;;
 
8541
      m68k)
 
8542
            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)'
 
8543
            hardcode_libdir_flag_spec='-L$libdir'
 
8544
            hardcode_minus_L=yes
 
8545
        ;;
 
8546
      esac
7253
8547
      ;;
7254
8548
 
7255
8549
    beos*)
7256
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8550
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7257
8551
        allow_undefined_flag=unsupported
7258
8552
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7259
8553
        # support --undefined.  This deserves some investigation.  FIXME
7263
8557
      fi
7264
8558
      ;;
7265
8559
 
7266
 
    cygwin* | mingw* | pw32*)
7267
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8560
    cygwin* | mingw* | pw32* | cegcc*)
 
8561
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7268
8562
      # as there is no search path for DLLs.
7269
8563
      hardcode_libdir_flag_spec='-L$libdir'
7270
8564
      allow_undefined_flag=unsupported
7271
8565
      always_export_symbols=no
7272
8566
      enable_shared_with_static_runtimes=yes
7273
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8567
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7274
8568
 
7275
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7276
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8569
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8570
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7277
8571
        # If the export-symbols file already is a .def file (1st line
7278
8572
        # is EXPORTS), use it as is; otherwise, prepend...
7279
8573
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7282
8576
          echo EXPORTS > $output_objdir/$soname.def;
7283
8577
          cat $export_symbols >> $output_objdir/$soname.def;
7284
8578
        fi~
7285
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8579
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7286
8580
      else
7287
8581
        ld_shlibs=no
7288
8582
      fi
7289
8583
      ;;
7290
8584
 
7291
 
    linux*)
7292
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8585
    interix[3-9]*)
 
8586
      hardcode_direct=no
 
8587
      hardcode_shlibpath_var=no
 
8588
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8589
      export_dynamic_flag_spec='${wl}-E'
 
8590
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8591
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8592
      # default) and relocated if they conflict, which is a slow very memory
 
8593
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8594
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8595
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8596
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8597
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8598
      ;;
 
8599
 
 
8600
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8601
      tmp_diet=no
 
8602
      if test "$host_os" = linux-dietlibc; then
 
8603
        case $cc_basename in
 
8604
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8605
        esac
 
8606
      fi
 
8607
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8608
         && test "$tmp_diet" = no
 
8609
      then
7293
8610
        tmp_addflag=
 
8611
        tmp_sharedflag='-shared'
7294
8612
        case $cc_basename,$host_cpu in
7295
 
        pgcc*)                          # Portland Group C compiler
7296
 
          whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8613
        pgcc*)                          # Portland Group C compiler
 
8614
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7297
8615
          tmp_addflag=' $pic_flag'
7298
8616
          ;;
7299
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
7300
 
          whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8617
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8618
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7301
8619
          tmp_addflag=' $pic_flag -Mnomain' ;;
7302
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8620
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7303
8621
          tmp_addflag=' -i_dynamic' ;;
7304
8622
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7305
8623
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7306
8624
        ifc* | ifort*)                  # Intel Fortran compiler
7307
8625
          tmp_addflag=' -nofor_main' ;;
7308
 
        esac
7309
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7310
 
 
7311
 
        if test $supports_anon_versioning = yes; then
7312
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7313
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7314
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7315
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7316
 
        fi
 
8626
        lf95*)                          # Lahey Fortran 8.1
 
8627
          whole_archive_flag_spec=
 
8628
          tmp_sharedflag='--shared' ;;
 
8629
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8630
          tmp_sharedflag='-qmkshrobj'
 
8631
          tmp_addflag= ;;
 
8632
        esac
 
8633
        case `$CC -V 2>&1 | sed 5q` in
 
8634
        *Sun\ C*)                       # Sun C 5.9
 
8635
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8636
          compiler_needs_object=yes
 
8637
          tmp_sharedflag='-G' ;;
 
8638
        *Sun\ F*)                       # Sun Fortran 8.3
 
8639
          tmp_sharedflag='-G' ;;
 
8640
        esac
 
8641
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8642
 
 
8643
        if test "x$supports_anon_versioning" = xyes; then
 
8644
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8645
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8646
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8647
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8648
        fi
 
8649
 
 
8650
        case $cc_basename in
 
8651
        xlf*)
 
8652
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8653
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8654
          hardcode_libdir_flag_spec=
 
8655
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8656
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8657
          if test "x$supports_anon_versioning" = xyes; then
 
8658
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8659
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8660
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8661
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8662
          fi
 
8663
          ;;
 
8664
        esac
7317
8665
      else
7318
 
        ld_shlibs=no
 
8666
        ld_shlibs=no
7319
8667
      fi
7320
8668
      ;;
7321
8669
 
7322
8670
    netbsd*)
7323
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8671
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7324
8672
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7325
8673
        wlarc=
7326
8674
      else
7329
8677
      fi
7330
8678
      ;;
7331
8679
 
7332
 
    solaris* | sysv5*)
7333
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8680
    solaris*)
 
8681
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7334
8682
        ld_shlibs=no
7335
 
        cat <<EOF 1>&2
 
8683
        cat <<_LT_EOF 1>&2
7336
8684
 
7337
8685
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7338
8686
*** create shared libraries on Solaris systems.  Therefore, libtool
7341
8689
*** your PATH or compiler configuration so that the native linker is
7342
8690
*** used, and then restart.
7343
8691
 
7344
 
EOF
7345
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8692
_LT_EOF
 
8693
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7346
8694
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7347
8695
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7348
8696
      else
7350
8698
      fi
7351
8699
      ;;
7352
8700
 
 
8701
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8702
      case `$LD -v 2>&1` in
 
8703
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8704
        ld_shlibs=no
 
8705
        cat <<_LT_EOF 1>&2
 
8706
 
 
8707
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8708
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8709
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8710
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8711
*** your PATH or compiler configuration so that the native linker is
 
8712
*** used, and then restart.
 
8713
 
 
8714
_LT_EOF
 
8715
        ;;
 
8716
        *)
 
8717
          # For security reasons, it is highly recommended that you always
 
8718
          # use absolute paths for naming shared libraries, and exclude the
 
8719
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8720
          # requires that you compile everything twice, which is a pain.
 
8721
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8722
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8723
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8724
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8725
          else
 
8726
            ld_shlibs=no
 
8727
          fi
 
8728
        ;;
 
8729
      esac
 
8730
      ;;
 
8731
 
7353
8732
    sunos4*)
7354
8733
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7355
8734
      wlarc=
7358
8737
      ;;
7359
8738
 
7360
8739
    *)
7361
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8740
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7362
8741
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7363
8742
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7364
8743
      else
7383
8762
      # Note: this linker hardcodes the directories in LIBPATH if there
7384
8763
      # are no directories specified by -L.
7385
8764
      hardcode_minus_L=yes
7386
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8765
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7387
8766
        # Neither direct hardcoding nor static linking is supported with a
7388
8767
        # broken collect2.
7389
8768
        hardcode_direct=unsupported
7390
8769
      fi
7391
8770
      ;;
7392
8771
 
7393
 
    aix4* | aix5*)
 
8772
    aix[4-9]*)
7394
8773
      if test "$host_cpu" = ia64; then
7395
8774
        # On IA64, the linker does run time linking by default, so we don't
7396
8775
        # have to do anything special.
7400
8779
      else
7401
8780
        # If we're using GNU nm, then we don't want the "-C" option.
7402
8781
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7403
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7404
 
          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'
 
8782
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8783
          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'
7405
8784
        else
7406
 
          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'
 
8785
          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'
7407
8786
        fi
7408
8787
        aix_use_runtimelinking=no
7409
8788
 
7410
8789
        # Test if we are trying to use run time linking or normal
7411
8790
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7412
8791
        # need to do runtime linking.
7413
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8792
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7414
8793
          for ld_flag in $LDFLAGS; do
7415
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7416
 
            aix_use_runtimelinking=yes
7417
 
            break
7418
 
          fi
 
8794
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8795
            aix_use_runtimelinking=yes
 
8796
            break
 
8797
          fi
7419
8798
          done
 
8799
          ;;
7420
8800
        esac
7421
8801
 
7422
8802
        exp_sym_flag='-bexport'
7431
8811
 
7432
8812
      archive_cmds=''
7433
8813
      hardcode_direct=yes
 
8814
      hardcode_direct_absolute=yes
7434
8815
      hardcode_libdir_separator=':'
7435
8816
      link_all_deplibs=yes
 
8817
      file_list_spec='${wl}-f,'
7436
8818
 
7437
8819
      if test "$GCC" = yes; then
7438
8820
        case $host_os in aix4.[012]|aix4.[012].*)
7439
8821
        # We only want to do this on AIX 4.2 and lower, the check
7440
8822
        # below for broken collect2 doesn't work under 4.3+
7441
8823
          collect2name=`${CC} -print-prog-name=collect2`
7442
 
          if test -f "$collect2name" && \
7443
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8824
          if test -f "$collect2name" &&
 
8825
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7444
8826
          then
7445
 
          # We have reworked collect2
7446
 
          hardcode_direct=yes
 
8827
          # We have reworked collect2
 
8828
          :
7447
8829
          else
7448
 
          # We have old collect2
7449
 
          hardcode_direct=unsupported
7450
 
          # It fails to find uninstalled libraries when the uninstalled
7451
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
7452
 
          # to unsupported forces relinking
7453
 
          hardcode_minus_L=yes
7454
 
          hardcode_libdir_flag_spec='-L$libdir'
7455
 
          hardcode_libdir_separator=
 
8830
          # We have old collect2
 
8831
          hardcode_direct=unsupported
 
8832
          # It fails to find uninstalled libraries when the uninstalled
 
8833
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8834
          # to unsupported forces relinking
 
8835
          hardcode_minus_L=yes
 
8836
          hardcode_libdir_flag_spec='-L$libdir'
 
8837
          hardcode_libdir_separator=
7456
8838
          fi
 
8839
          ;;
7457
8840
        esac
7458
8841
        shared_flag='-shared'
7459
8842
        if test "$aix_use_runtimelinking" = yes; then
7462
8845
      else
7463
8846
        # not using gcc
7464
8847
        if test "$host_cpu" = ia64; then
7465
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7466
 
        # chokes on -Wl,-G. The following line is correct:
 
8848
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8849
        # chokes on -Wl,-G. The following line is correct:
7467
8850
          shared_flag='-G'
7468
8851
        else
7469
 
        if test "$aix_use_runtimelinking" = yes; then
 
8852
          if test "$aix_use_runtimelinking" = yes; then
7470
8853
            shared_flag='${wl}-G'
7471
8854
          else
7472
8855
            shared_flag='${wl}-bM:SRE'
7473
 
        fi
 
8856
          fi
7474
8857
        fi
7475
8858
      fi
7476
8859
 
 
8860
      export_dynamic_flag_spec='${wl}-bexpall'
7477
8861
      # It seems that -bexpall does not export symbols beginning with
7478
8862
      # underscore (_), so it is better to generate a list of symbols to export.
7479
8863
      always_export_symbols=yes
7481
8865
        # Warning - without using the other runtime loading flags (-brtl),
7482
8866
        # -berok will link without error, but may produce a broken library.
7483
8867
        allow_undefined_flag='-berok'
7484
 
       # Determine the default libpath from the value encoded in an empty executable.
7485
 
       cat >conftest.$ac_ext <<_ACEOF
 
8868
        # Determine the default libpath from the value encoded in an
 
8869
        # empty executable.
 
8870
        cat >conftest.$ac_ext <<_ACEOF
7486
8871
/* confdefs.h.  */
7487
8872
_ACEOF
7488
8873
cat confdefs.h >>conftest.$ac_ext
7498
8883
}
7499
8884
_ACEOF
7500
8885
rm -f conftest.$ac_objext conftest$ac_exeext
7501
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502
 
  (eval $ac_link) 2>conftest.er1
 
8886
if { (ac_try="$ac_link"
 
8887
case "(($ac_try" in
 
8888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8889
  *) ac_try_echo=$ac_try;;
 
8890
esac
 
8891
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8892
$as_echo "$ac_try_echo") >&5
 
8893
  (eval "$ac_link") 2>conftest.er1
7503
8894
  ac_status=$?
7504
8895
  grep -v '^ *+' conftest.er1 >conftest.err
7505
8896
  rm -f conftest.er1
7506
8897
  cat conftest.err >&5
7507
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508
 
  (exit $ac_status); } &&
7509
 
         { ac_try='test -z "$ac_c_werror_flag"
7510
 
                         || test ! -s conftest.err'
7511
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512
 
  (eval $ac_try) 2>&5
7513
 
  ac_status=$?
7514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515
 
  (exit $ac_status); }; } &&
7516
 
         { ac_try='test -s conftest$ac_exeext'
7517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518
 
  (eval $ac_try) 2>&5
7519
 
  ac_status=$?
7520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521
 
  (exit $ac_status); }; }; then
 
8898
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8899
  (exit $ac_status); } && {
 
8900
         test -z "$ac_c_werror_flag" ||
 
8901
         test ! -s conftest.err
 
8902
       } && test -s conftest$ac_exeext && {
 
8903
         test "$cross_compiling" = yes ||
 
8904
         $as_test_x conftest$ac_exeext
 
8905
       }; then
7522
8906
 
7523
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7524
 
}'`
 
8907
lt_aix_libpath_sed='
 
8908
    /Import File Strings/,/^$/ {
 
8909
        /^0/ {
 
8910
            s/^0  *\(.*\)$/\1/
 
8911
            p
 
8912
        }
 
8913
    }'
 
8914
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7525
8915
# Check for a 64-bit object if we didn't find anything.
7526
 
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; }
7527
 
}'`; fi
 
8916
if test -z "$aix_libpath"; then
 
8917
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8918
fi
7528
8919
else
7529
 
  echo "$as_me: failed program was:" >&5
 
8920
  $as_echo "$as_me: failed program was:" >&5
7530
8921
sed 's/^/| /' conftest.$ac_ext >&5
7531
8922
 
 
8923
 
7532
8924
fi
7533
 
rm -f conftest.err conftest.$ac_objext \
 
8925
 
 
8926
rm -rf conftest.dSYM
 
8927
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7534
8928
      conftest$ac_exeext conftest.$ac_ext
7535
8929
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7536
8930
 
7537
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7538
 
        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"
7539
 
       else
 
8931
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8932
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8933
      else
7540
8934
        if test "$host_cpu" = ia64; then
7541
8935
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7542
8936
          allow_undefined_flag="-z nodefs"
7543
 
          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"
 
8937
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7544
8938
        else
7545
 
         # Determine the default libpath from the value encoded in an empty executable.
 
8939
         # Determine the default libpath from the value encoded in an
 
8940
         # empty executable.
7546
8941
         cat >conftest.$ac_ext <<_ACEOF
7547
8942
/* confdefs.h.  */
7548
8943
_ACEOF
7559
8954
}
7560
8955
_ACEOF
7561
8956
rm -f conftest.$ac_objext conftest$ac_exeext
7562
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563
 
  (eval $ac_link) 2>conftest.er1
 
8957
if { (ac_try="$ac_link"
 
8958
case "(($ac_try" in
 
8959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8960
  *) ac_try_echo=$ac_try;;
 
8961
esac
 
8962
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8963
$as_echo "$ac_try_echo") >&5
 
8964
  (eval "$ac_link") 2>conftest.er1
7564
8965
  ac_status=$?
7565
8966
  grep -v '^ *+' conftest.er1 >conftest.err
7566
8967
  rm -f conftest.er1
7567
8968
  cat conftest.err >&5
7568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569
 
  (exit $ac_status); } &&
7570
 
         { ac_try='test -z "$ac_c_werror_flag"
7571
 
                         || test ! -s conftest.err'
7572
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573
 
  (eval $ac_try) 2>&5
7574
 
  ac_status=$?
7575
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576
 
  (exit $ac_status); }; } &&
7577
 
         { ac_try='test -s conftest$ac_exeext'
7578
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579
 
  (eval $ac_try) 2>&5
7580
 
  ac_status=$?
7581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582
 
  (exit $ac_status); }; }; then
 
8969
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8970
  (exit $ac_status); } && {
 
8971
         test -z "$ac_c_werror_flag" ||
 
8972
         test ! -s conftest.err
 
8973
       } && test -s conftest$ac_exeext && {
 
8974
         test "$cross_compiling" = yes ||
 
8975
         $as_test_x conftest$ac_exeext
 
8976
       }; then
7583
8977
 
7584
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7585
 
}'`
 
8978
lt_aix_libpath_sed='
 
8979
    /Import File Strings/,/^$/ {
 
8980
        /^0/ {
 
8981
            s/^0  *\(.*\)$/\1/
 
8982
            p
 
8983
        }
 
8984
    }'
 
8985
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7586
8986
# Check for a 64-bit object if we didn't find anything.
7587
 
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; }
7588
 
}'`; fi
 
8987
if test -z "$aix_libpath"; then
 
8988
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8989
fi
7589
8990
else
7590
 
  echo "$as_me: failed program was:" >&5
 
8991
  $as_echo "$as_me: failed program was:" >&5
7591
8992
sed 's/^/| /' conftest.$ac_ext >&5
7592
8993
 
 
8994
 
7593
8995
fi
7594
 
rm -f conftest.err conftest.$ac_objext \
 
8996
 
 
8997
rm -rf conftest.dSYM
 
8998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7595
8999
      conftest$ac_exeext conftest.$ac_ext
7596
9000
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7597
9001
 
7600
9004
          # -berok will link without error, but may produce a broken library.
7601
9005
          no_undefined_flag=' ${wl}-bernotok'
7602
9006
          allow_undefined_flag=' ${wl}-berok'
7603
 
          # -bexpall does not export symbols beginning with underscore (_)
7604
 
          always_export_symbols=yes
7605
9007
          # Exported symbols can be pulled into shared objects from archives
7606
 
          whole_archive_flag_spec=' '
 
9008
          whole_archive_flag_spec='$convenience'
7607
9009
          archive_cmds_need_lc=yes
7608
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7609
 
          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'
 
9010
          # This is similar to how AIX traditionally builds its shared libraries.
 
9011
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7610
9012
        fi
7611
9013
      fi
7612
9014
      ;;
7613
9015
 
7614
9016
    amigaos*)
7615
 
      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)'
7616
 
      hardcode_libdir_flag_spec='-L$libdir'
7617
 
      hardcode_minus_L=yes
7618
 
      # see comment about different semantics on the GNU ld section
7619
 
      ld_shlibs=no
 
9017
      case $host_cpu in
 
9018
      powerpc)
 
9019
            # see comment about AmigaOS4 .so support
 
9020
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9021
            archive_expsym_cmds=''
 
9022
        ;;
 
9023
      m68k)
 
9024
            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)'
 
9025
            hardcode_libdir_flag_spec='-L$libdir'
 
9026
            hardcode_minus_L=yes
 
9027
        ;;
 
9028
      esac
7620
9029
      ;;
7621
9030
 
7622
9031
    bsdi[45]*)
7623
9032
      export_dynamic_flag_spec=-rdynamic
7624
9033
      ;;
7625
9034
 
7626
 
    cygwin* | mingw* | pw32*)
 
9035
    cygwin* | mingw* | pw32* | cegcc*)
7627
9036
      # When not using gcc, we currently assume that we are using
7628
9037
      # Microsoft Visual C++.
7629
9038
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7635
9044
      # Tell ltmain to make .dll files, not .so files.
7636
9045
      shrext_cmds=".dll"
7637
9046
      # FIXME: Setting linknames here is a bad hack.
7638
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9047
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7639
9048
      # The linker will automatically build a .lib file if we build a DLL.
7640
 
      old_archive_From_new_cmds='true'
 
9049
      old_archive_from_new_cmds='true'
7641
9050
      # FIXME: Should let the user specify the lib program.
7642
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9051
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7643
9052
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7644
9053
      enable_shared_with_static_runtimes=yes
7645
9054
      ;;
7646
9055
 
7647
9056
    darwin* | rhapsody*)
7648
 
      case "$host_os" in
7649
 
        rhapsody* | darwin1.[012])
7650
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7651
 
         ;;
7652
 
       *) # Darwin 1.3 on
7653
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7654
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7655
 
         else
7656
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
7657
 
             10.[012])
7658
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7659
 
               ;;
7660
 
             10.*)
7661
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7662
 
               ;;
7663
 
           esac
7664
 
         fi
7665
 
         ;;
7666
 
      esac
7667
 
      archive_cmds_need_lc=no
7668
 
      hardcode_direct=no
7669
 
      hardcode_automatic=yes
7670
 
      hardcode_shlibpath_var=unsupported
7671
 
      whole_archive_flag_spec=''
7672
 
      link_all_deplibs=yes
7673
 
    if test "$GCC" = yes ; then
7674
 
        output_verbose_link_cmd='echo'
7675
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7676
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7677
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7678
 
      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}'
7679
 
      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}'
7680
 
    else
7681
 
      case $cc_basename in
7682
 
        xlc*)
7683
 
         output_verbose_link_cmd='echo'
7684
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7685
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7686
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7687
 
         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}'
7688
 
          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}'
7689
 
          ;;
7690
 
       *)
7691
 
         ld_shlibs=no
7692
 
          ;;
7693
 
      esac
7694
 
    fi
 
9057
 
 
9058
 
 
9059
  archive_cmds_need_lc=no
 
9060
  hardcode_direct=no
 
9061
  hardcode_automatic=yes
 
9062
  hardcode_shlibpath_var=unsupported
 
9063
  whole_archive_flag_spec=''
 
9064
  link_all_deplibs=yes
 
9065
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9066
  case $cc_basename in
 
9067
     ifort*) _lt_dar_can_shared=yes ;;
 
9068
     *) _lt_dar_can_shared=$GCC ;;
 
9069
  esac
 
9070
  if test "$_lt_dar_can_shared" = "yes"; then
 
9071
    output_verbose_link_cmd=echo
 
9072
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9073
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9074
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
9075
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
9076
 
 
9077
  else
 
9078
  ld_shlibs=no
 
9079
  fi
 
9080
 
7695
9081
      ;;
7696
9082
 
7697
9083
    dgux*)
7724
9110
      ;;
7725
9111
 
7726
9112
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7727
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
9113
    freebsd* | dragonfly*)
7728
9114
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7729
9115
      hardcode_libdir_flag_spec='-R$libdir'
7730
9116
      hardcode_direct=yes
7733
9119
 
7734
9120
    hpux9*)
7735
9121
      if test "$GCC" = yes; then
7736
 
        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'
 
9122
        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'
7737
9123
      else
7738
 
        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'
 
9124
        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'
7739
9125
      fi
7740
9126
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7741
9127
      hardcode_libdir_separator=:
7747
9133
      export_dynamic_flag_spec='${wl}-E'
7748
9134
      ;;
7749
9135
 
7750
 
    hpux10* | hpux11*)
7751
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7752
 
        case "$host_cpu" in
7753
 
        hppa*64*|ia64*)
 
9136
    hpux10*)
 
9137
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9138
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9139
      else
 
9140
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9141
      fi
 
9142
      if test "$with_gnu_ld" = no; then
 
9143
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9144
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9145
        hardcode_libdir_separator=:
 
9146
        hardcode_direct=yes
 
9147
        hardcode_direct_absolute=yes
 
9148
        export_dynamic_flag_spec='${wl}-E'
 
9149
        # hardcode_minus_L: Not really in the search PATH,
 
9150
        # but as the default location of the library.
 
9151
        hardcode_minus_L=yes
 
9152
      fi
 
9153
      ;;
 
9154
 
 
9155
    hpux11*)
 
9156
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9157
        case $host_cpu in
 
9158
        hppa*64*)
7754
9159
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7755
9160
          ;;
 
9161
        ia64*)
 
9162
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9163
          ;;
7756
9164
        *)
7757
9165
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7758
9166
          ;;
7759
9167
        esac
7760
9168
      else
7761
 
        case "$host_cpu" in
7762
 
        hppa*64*|ia64*)
7763
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9169
        case $host_cpu in
 
9170
        hppa*64*)
 
9171
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9172
          ;;
 
9173
        ia64*)
 
9174
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7764
9175
          ;;
7765
9176
        *)
7766
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9177
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7767
9178
          ;;
7768
9179
        esac
7769
9180
      fi
7770
9181
      if test "$with_gnu_ld" = no; then
7771
 
        case "$host_cpu" in
7772
 
        hppa*64*)
7773
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7774
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
7775
 
          hardcode_libdir_separator=:
7776
 
          hardcode_direct=no
7777
 
          hardcode_shlibpath_var=no
7778
 
          ;;
7779
 
        ia64*)
7780
 
          hardcode_libdir_flag_spec='-L$libdir'
7781
 
          hardcode_direct=no
7782
 
          hardcode_shlibpath_var=no
 
9182
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9183
        hardcode_libdir_separator=:
7783
9184
 
7784
 
          # hardcode_minus_L: Not really in the search PATH,
7785
 
          # but as the default location of the library.
7786
 
          hardcode_minus_L=yes
 
9185
        case $host_cpu in
 
9186
        hppa*64*|ia64*)
 
9187
          hardcode_direct=no
 
9188
          hardcode_shlibpath_var=no
7787
9189
          ;;
7788
9190
        *)
7789
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7790
 
          hardcode_libdir_separator=:
7791
9191
          hardcode_direct=yes
 
9192
          hardcode_direct_absolute=yes
7792
9193
          export_dynamic_flag_spec='${wl}-E'
7793
9194
 
7794
9195
          # hardcode_minus_L: Not really in the search PATH,
7801
9202
 
7802
9203
    irix5* | irix6* | nonstopux*)
7803
9204
      if test "$GCC" = yes; then
7804
 
        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'
 
9205
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9206
        # Try to use the -exported_symbol ld option, if it does not
 
9207
        # work, assume that -exports_file does not work either and
 
9208
        # implicitly export all symbols.
 
9209
        save_LDFLAGS="$LDFLAGS"
 
9210
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9211
        cat >conftest.$ac_ext <<_ACEOF
 
9212
int foo(void) {}
 
9213
_ACEOF
 
9214
rm -f conftest.$ac_objext conftest$ac_exeext
 
9215
if { (ac_try="$ac_link"
 
9216
case "(($ac_try" in
 
9217
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9218
  *) ac_try_echo=$ac_try;;
 
9219
esac
 
9220
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9221
$as_echo "$ac_try_echo") >&5
 
9222
  (eval "$ac_link") 2>conftest.er1
 
9223
  ac_status=$?
 
9224
  grep -v '^ *+' conftest.er1 >conftest.err
 
9225
  rm -f conftest.er1
 
9226
  cat conftest.err >&5
 
9227
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9228
  (exit $ac_status); } && {
 
9229
         test -z "$ac_c_werror_flag" ||
 
9230
         test ! -s conftest.err
 
9231
       } && test -s conftest$ac_exeext && {
 
9232
         test "$cross_compiling" = yes ||
 
9233
         $as_test_x conftest$ac_exeext
 
9234
       }; then
 
9235
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9236
 
 
9237
else
 
9238
  $as_echo "$as_me: failed program was:" >&5
 
9239
sed 's/^/| /' conftest.$ac_ext >&5
 
9240
 
 
9241
 
 
9242
fi
 
9243
 
 
9244
rm -rf conftest.dSYM
 
9245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9246
      conftest$ac_exeext conftest.$ac_ext
 
9247
        LDFLAGS="$save_LDFLAGS"
7805
9248
      else
7806
 
        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'
7807
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9249
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9250
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7808
9251
      fi
 
9252
      archive_cmds_need_lc='no'
7809
9253
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7810
9254
      hardcode_libdir_separator=:
 
9255
      inherit_rpath=yes
7811
9256
      link_all_deplibs=yes
7812
9257
      ;;
7813
9258
 
7814
9259
    netbsd*)
7815
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9260
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7816
9261
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7817
9262
      else
7818
9263
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7830
9275
      hardcode_shlibpath_var=no
7831
9276
      ;;
7832
9277
 
 
9278
    *nto* | *qnx*)
 
9279
      ;;
 
9280
 
7833
9281
    openbsd*)
7834
 
      hardcode_direct=yes
7835
 
      hardcode_shlibpath_var=no
7836
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7837
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7839
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7840
 
        export_dynamic_flag_spec='${wl}-E'
 
9282
      if test -f /usr/libexec/ld.so; then
 
9283
        hardcode_direct=yes
 
9284
        hardcode_shlibpath_var=no
 
9285
        hardcode_direct_absolute=yes
 
9286
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9287
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9288
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9289
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9290
          export_dynamic_flag_spec='${wl}-E'
 
9291
        else
 
9292
          case $host_os in
 
9293
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9294
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9295
             hardcode_libdir_flag_spec='-R$libdir'
 
9296
             ;;
 
9297
           *)
 
9298
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9299
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9300
             ;;
 
9301
          esac
 
9302
        fi
7841
9303
      else
7842
 
       case $host_os in
7843
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7844
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7845
 
           hardcode_libdir_flag_spec='-R$libdir'
7846
 
           ;;
7847
 
         *)
7848
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7849
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7850
 
           ;;
7851
 
       esac
 
9304
        ld_shlibs=no
7852
9305
      fi
7853
9306
      ;;
7854
9307
 
7856
9309
      hardcode_libdir_flag_spec='-L$libdir'
7857
9310
      hardcode_minus_L=yes
7858
9311
      allow_undefined_flag=unsupported
7859
 
      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'
7860
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9312
      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'
 
9313
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7861
9314
      ;;
7862
9315
 
7863
9316
    osf3*)
7864
9317
      if test "$GCC" = yes; then
7865
9318
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7866
 
        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'
 
9319
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7867
9320
      else
7868
9321
        allow_undefined_flag=' -expect_unresolved \*'
7869
 
        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'
 
9322
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7870
9323
      fi
 
9324
      archive_cmds_need_lc='no'
7871
9325
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7872
9326
      hardcode_libdir_separator=:
7873
9327
      ;;
7875
9329
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7876
9330
      if test "$GCC" = yes; then
7877
9331
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7878
 
        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'
 
9332
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7879
9333
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7880
9334
      else
7881
9335
        allow_undefined_flag=' -expect_unresolved \*'
7882
 
        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'
7883
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7884
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
9336
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9337
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
9338
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7885
9339
 
7886
9340
        # Both c and cxx compiler support -rpath directly
7887
9341
        hardcode_libdir_flag_spec='-rpath $libdir'
7888
9342
      fi
 
9343
      archive_cmds_need_lc='no'
7889
9344
      hardcode_libdir_separator=:
7890
9345
      ;;
7891
9346
 
7892
 
    sco3.2v5*)
7893
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7894
 
      hardcode_shlibpath_var=no
7895
 
      export_dynamic_flag_spec='${wl}-Bexport'
7896
 
      runpath_var=LD_RUN_PATH
7897
 
      hardcode_runpath_var=yes
7898
 
      ;;
7899
 
 
7900
9347
    solaris*)
7901
 
      no_undefined_flag=' -z text'
 
9348
      no_undefined_flag=' -z defs'
7902
9349
      if test "$GCC" = yes; then
7903
9350
        wlarc='${wl}'
7904
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7905
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7906
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9351
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9352
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9353
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7907
9354
      else
7908
 
        wlarc=''
7909
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7910
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7911
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9355
        case `$CC -V 2>&1` in
 
9356
        *"Compilers 5.0"*)
 
9357
          wlarc=''
 
9358
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9359
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9360
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9361
          ;;
 
9362
        *)
 
9363
          wlarc='${wl}'
 
9364
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9365
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9366
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9367
          ;;
 
9368
        esac
7912
9369
      fi
7913
9370
      hardcode_libdir_flag_spec='-R$libdir'
7914
9371
      hardcode_shlibpath_var=no
7915
9372
      case $host_os in
7916
9373
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7917
9374
      *)
7918
 
        # The compiler driver will combine linker options so we
7919
 
        # cannot just pass the convience library names through
7920
 
        # without $wl, iff we do not link with $LD.
7921
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
7922
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7923
 
        case $wlarc in
7924
 
        '')
7925
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7926
 
        *)
7927
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7928
 
        esac ;;
 
9375
        # The compiler driver will combine and reorder linker options,
 
9376
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9377
        # but is careful enough not to reorder.
 
9378
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9379
        if test "$GCC" = yes; then
 
9380
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9381
        else
 
9382
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9383
        fi
 
9384
        ;;
7929
9385
      esac
7930
9386
      link_all_deplibs=yes
7931
9387
      ;;
7982
9438
      fi
7983
9439
      ;;
7984
9440
 
7985
 
    sysv4.2uw2*)
7986
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7987
 
      hardcode_direct=yes
7988
 
      hardcode_minus_L=no
7989
 
      hardcode_shlibpath_var=no
7990
 
      hardcode_runpath_var=yes
7991
 
      runpath_var=LD_RUN_PATH
7992
 
      ;;
7993
 
 
7994
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7995
 
      no_undefined_flag='${wl}-z ${wl}text'
7996
 
      if test "$GCC" = yes; then
7997
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7998
 
      else
7999
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8000
 
      fi
8001
 
      runpath_var='LD_RUN_PATH'
8002
 
      hardcode_shlibpath_var=no
8003
 
      ;;
8004
 
 
8005
 
    sysv5*)
8006
 
      no_undefined_flag=' -z text'
8007
 
      # $CC -shared without GNU ld will not create a library from C++
8008
 
      # object files and a static libstdc++, better avoid it by now
8009
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8010
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8011
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8012
 
      hardcode_libdir_flag_spec=
8013
 
      hardcode_shlibpath_var=no
8014
 
      runpath_var='LD_RUN_PATH'
 
9441
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9442
      no_undefined_flag='${wl}-z,text'
 
9443
      archive_cmds_need_lc=no
 
9444
      hardcode_shlibpath_var=no
 
9445
      runpath_var='LD_RUN_PATH'
 
9446
 
 
9447
      if test "$GCC" = yes; then
 
9448
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9449
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9450
      else
 
9451
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9452
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9453
      fi
 
9454
      ;;
 
9455
 
 
9456
    sysv5* | sco3.2v5* | sco5v6*)
 
9457
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9458
      # link with -lc, and that would cause any symbols used from libc to
 
9459
      # always be unresolved, which means just about no library would
 
9460
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9461
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9462
      # as -z defs.
 
9463
      no_undefined_flag='${wl}-z,text'
 
9464
      allow_undefined_flag='${wl}-z,nodefs'
 
9465
      archive_cmds_need_lc=no
 
9466
      hardcode_shlibpath_var=no
 
9467
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9468
      hardcode_libdir_separator=':'
 
9469
      link_all_deplibs=yes
 
9470
      export_dynamic_flag_spec='${wl}-Bexport'
 
9471
      runpath_var='LD_RUN_PATH'
 
9472
 
 
9473
      if test "$GCC" = yes; then
 
9474
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9475
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9476
      else
 
9477
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9478
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9479
      fi
8015
9480
      ;;
8016
9481
 
8017
9482
    uts4*)
8024
9489
      ld_shlibs=no
8025
9490
      ;;
8026
9491
    esac
 
9492
 
 
9493
    if test x$host_vendor = xsni; then
 
9494
      case $host in
 
9495
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9496
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9497
        ;;
 
9498
      esac
 
9499
    fi
8027
9500
  fi
8028
9501
 
8029
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8030
 
echo "${ECHO_T}$ld_shlibs" >&6
 
9502
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9503
$as_echo "$ld_shlibs" >&6; }
8031
9504
test "$ld_shlibs" = no && can_build_shared=no
8032
9505
 
8033
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8034
 
if test "$GCC" = yes; then
8035
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8036
 
fi
 
9506
with_gnu_ld=$with_gnu_ld
 
9507
 
 
9508
 
 
9509
 
 
9510
 
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
 
8037
9521
 
8038
9522
#
8039
9523
# Do we need to explicitly link libc?
8052
9536
      # Test whether the compiler implicitly links with -lc since on some
8053
9537
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8054
9538
      # to ld, don't add -lc before -lgcc.
8055
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8056
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8057
 
      $rm conftest*
8058
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9539
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9540
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9541
      $RM conftest*
 
9542
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8059
9543
 
8060
9544
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8061
9545
  (eval $ac_compile) 2>&5
8062
9546
  ac_status=$?
8063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9547
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064
9548
  (exit $ac_status); } 2>conftest.err; then
8065
9549
        soname=conftest
8066
9550
        lib=conftest
8067
9551
        libobjs=conftest.$ac_objext
8068
9552
        deplibs=
8069
9553
        wl=$lt_prog_compiler_wl
 
9554
        pic_flag=$lt_prog_compiler_pic
8070
9555
        compiler_flags=-v
8071
9556
        linker_flags=-v
8072
9557
        verstring=
8074
9559
        libname=conftest
8075
9560
        lt_save_allow_undefined_flag=$allow_undefined_flag
8076
9561
        allow_undefined_flag=
8077
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8078
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9562
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9563
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8079
9564
  ac_status=$?
8080
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9565
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081
9566
  (exit $ac_status); }
8082
9567
        then
8083
9568
          archive_cmds_need_lc=no
8088
9573
      else
8089
9574
        cat conftest.err 1>&5
8090
9575
      fi
8091
 
      $rm conftest*
8092
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8093
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9576
      $RM conftest*
 
9577
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9578
$as_echo "$archive_cmds_need_lc" >&6; }
8094
9579
      ;;
8095
9580
    esac
8096
9581
  fi
8097
9582
  ;;
8098
9583
esac
8099
9584
 
8100
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8101
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9585
 
 
9586
 
 
9587
 
 
9588
 
 
9589
 
 
9590
 
 
9591
 
 
9592
 
 
9593
 
 
9594
 
 
9595
 
 
9596
 
 
9597
 
 
9598
 
 
9599
 
 
9600
 
 
9601
 
 
9602
 
 
9603
 
 
9604
 
 
9605
 
 
9606
 
 
9607
 
 
9608
 
 
9609
 
 
9610
 
 
9611
 
 
9612
 
 
9613
 
 
9614
 
 
9615
 
 
9616
 
 
9617
 
 
9618
 
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
 
 
9624
 
 
9625
 
 
9626
 
 
9627
 
 
9628
 
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
 
9644
 
 
9645
 
 
9646
 
 
9647
 
 
9648
 
 
9649
 
 
9650
 
 
9651
 
 
9652
 
 
9653
 
 
9654
 
 
9655
 
 
9656
 
 
9657
 
 
9658
 
 
9659
 
 
9660
 
 
9661
 
 
9662
 
 
9663
 
 
9664
 
 
9665
 
 
9666
 
 
9667
 
 
9668
 
 
9669
 
 
9670
 
 
9671
 
 
9672
 
 
9673
 
 
9674
 
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
 
 
9680
 
 
9681
 
 
9682
 
 
9683
 
 
9684
 
 
9685
 
 
9686
 
 
9687
 
 
9688
 
 
9689
 
 
9690
 
 
9691
 
 
9692
 
 
9693
 
 
9694
 
 
9695
 
 
9696
 
 
9697
 
 
9698
 
 
9699
 
 
9700
 
 
9701
 
 
9702
 
 
9703
 
 
9704
 
 
9705
 
 
9706
 
 
9707
 
 
9708
 
 
9709
 
 
9710
 
 
9711
 
 
9712
 
 
9713
 
 
9714
 
 
9715
 
 
9716
 
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
 
 
9723
 
 
9724
 
 
9725
 
 
9726
 
 
9727
 
 
9728
 
 
9729
 
 
9730
 
 
9731
 
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
 
 
9737
 
 
9738
 
 
9739
 
 
9740
 
 
9741
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9742
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9743
 
 
9744
if test "$GCC" = yes; then
 
9745
  case $host_os in
 
9746
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9747
    *) lt_awk_arg="/^libraries:/" ;;
 
9748
  esac
 
9749
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9750
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9751
    # if the path contains ";" then we assume it to be the separator
 
9752
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9753
    # assumed that no part of a normal pathname contains ";" but that should
 
9754
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9755
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9756
  else
 
9757
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9758
  fi
 
9759
  # Ok, now we have the path, separated by spaces, we can step through it
 
9760
  # and add multilib dir if necessary.
 
9761
  lt_tmp_lt_search_path_spec=
 
9762
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9763
  for lt_sys_path in $lt_search_path_spec; do
 
9764
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9765
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9766
    else
 
9767
      test -d "$lt_sys_path" && \
 
9768
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9769
    fi
 
9770
  done
 
9771
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9772
BEGIN {RS=" "; FS="/|\n";} {
 
9773
  lt_foo="";
 
9774
  lt_count=0;
 
9775
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9776
    if ($lt_i != "" && $lt_i != ".") {
 
9777
      if ($lt_i == "..") {
 
9778
        lt_count++;
 
9779
      } else {
 
9780
        if (lt_count == 0) {
 
9781
          lt_foo="/" $lt_i lt_foo;
 
9782
        } else {
 
9783
          lt_count--;
 
9784
        }
 
9785
      }
 
9786
    }
 
9787
  }
 
9788
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9789
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9790
}'`
 
9791
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9792
else
 
9793
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9794
fi
8102
9795
library_names_spec=
8103
9796
libname_spec='lib$name'
8104
9797
soname_spec=
8112
9805
version_type=none
8113
9806
dynamic_linker="$host_os ld.so"
8114
9807
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8115
 
if test "$GCC" = yes; then
8116
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8117
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8118
 
    # if the path contains ";" then we assume it to be the separator
8119
 
    # otherwise default to the standard path separator (i.e. ":") - it is
8120
 
    # assumed that no part of a normal pathname contains ";" but that should
8121
 
    # okay in the real world where ";" in dirpaths is itself problematic.
8122
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8123
 
  else
8124
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8125
 
  fi
8126
 
else
8127
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8128
 
fi
8129
9808
need_lib_prefix=unknown
8130
9809
hardcode_into_libs=no
8131
9810
 
8143
9822
  soname_spec='${libname}${release}${shared_ext}$major'
8144
9823
  ;;
8145
9824
 
8146
 
aix4* | aix5*)
 
9825
aix[4-9]*)
8147
9826
  version_type=linux
8148
9827
  need_lib_prefix=no
8149
9828
  need_version=no
8162
9841
      aix4 | aix4.[01] | aix4.[01].*)
8163
9842
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8164
9843
           echo ' yes '
8165
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9844
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8166
9845
        :
8167
9846
      else
8168
9847
        can_build_shared=no
8188
9867
  ;;
8189
9868
 
8190
9869
amigaos*)
8191
 
  library_names_spec='$libname.ixlibrary $libname.a'
8192
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8193
 
  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'
 
9870
  case $host_cpu in
 
9871
  powerpc)
 
9872
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9873
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9874
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9875
    ;;
 
9876
  m68k)
 
9877
    library_names_spec='$libname.ixlibrary $libname.a'
 
9878
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9879
    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'
 
9880
    ;;
 
9881
  esac
8194
9882
  ;;
8195
9883
 
8196
9884
beos*)
8213
9901
  # libtool to hard-code these into programs
8214
9902
  ;;
8215
9903
 
8216
 
cygwin* | mingw* | pw32*)
 
9904
cygwin* | mingw* | pw32* | cegcc*)
8217
9905
  version_type=windows
8218
9906
  shrext_cmds=".dll"
8219
9907
  need_version=no
8220
9908
  need_lib_prefix=no
8221
9909
 
8222
9910
  case $GCC,$host_os in
8223
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9911
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8224
9912
    library_names_spec='$libname.dll.a'
8225
9913
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8226
9914
    postinstall_cmds='base_file=`basename \${file}`~
8227
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9915
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8228
9916
      dldir=$destdir/`dirname \$dlpath`~
8229
9917
      test -d \$dldir || mkdir -p \$dldir~
8230
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9918
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9919
      chmod a+x \$dldir/$dlname~
 
9920
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9921
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9922
      fi'
8231
9923
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8232
9924
      dlpath=$dir/\$dldll~
8233
 
       $rm \$dlpath'
 
9925
       $RM \$dlpath'
8234
9926
    shlibpath_overrides_runpath=yes
8235
9927
 
8236
9928
    case $host_os in
8239
9931
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8240
9932
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8241
9933
      ;;
8242
 
    mingw*)
 
9934
    mingw* | cegcc*)
8243
9935
      # MinGW DLLs use traditional 'lib' prefix
8244
9936
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8245
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8246
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9937
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9938
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8247
9939
        # It is most probably a Windows format PATH printed by
8248
9940
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8249
9941
        # path with ; separators, and with drive letters. We can handle the
8250
9942
        # drive letters (cygwin fileutils understands them), so leave them,
8251
9943
        # especially as we might pass files found there to a mingw objdump,
8252
9944
        # which wouldn't understand a cygwinified path. Ahh.
8253
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9945
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8254
9946
      else
8255
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9947
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8256
9948
      fi
8257
9949
      ;;
8258
9950
    pw32*)
8262
9954
    esac
8263
9955
    ;;
8264
9956
 
8265
 
  linux*)
8266
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8267
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268
 
      supports_anon_versioning=no
8269
 
      case `$LD -v 2>/dev/null` in
8270
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8271
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8272
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8273
 
        *\ 2.11.*) ;; # other 2.11 versions
8274
 
        *) supports_anon_versioning=yes ;;
8275
 
      esac
8276
 
      if test $supports_anon_versioning = yes; then
8277
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
8280
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8281
 
      else
8282
 
        $archive_expsym_cmds="$archive_cmds"
8283
 
      fi
8284
 
    else
8285
 
      ld_shlibs=no
8286
 
    fi
8287
 
    ;;
8288
 
 
8289
9957
  *)
8290
9958
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8291
9959
    ;;
8300
9968
  version_type=darwin
8301
9969
  need_lib_prefix=no
8302
9970
  need_version=no
8303
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9971
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8304
9972
  soname_spec='${libname}${release}${major}$shared_ext'
8305
9973
  shlibpath_overrides_runpath=yes
8306
9974
  shlibpath_var=DYLD_LIBRARY_PATH
8307
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8308
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8309
 
  if test "$GCC" = yes; then
8310
 
    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"`
8311
 
  else
8312
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8313
 
  fi
 
9975
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9976
 
 
9977
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8314
9978
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8315
9979
  ;;
8316
9980
 
8327
9991
  dynamic_linker=no
8328
9992
  ;;
8329
9993
 
8330
 
kfreebsd*-gnu)
8331
 
  version_type=linux
8332
 
  need_lib_prefix=no
8333
 
  need_version=no
8334
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8335
 
  soname_spec='${libname}${release}${shared_ext}$major'
8336
 
  shlibpath_var=LD_LIBRARY_PATH
8337
 
  shlibpath_overrides_runpath=no
8338
 
  hardcode_into_libs=yes
8339
 
  dynamic_linker='GNU ld.so'
8340
 
  ;;
8341
 
 
8342
9994
freebsd* | dragonfly*)
8343
9995
  # DragonFly does not have aout.  When/if they implement a new
8344
9996
  # versioning mechanism, adjust this.
8345
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9997
  if test -x /usr/bin/objformat; then
 
9998
    objformat=`/usr/bin/objformat`
 
9999
  else
 
10000
    case $host_os in
 
10001
    freebsd[123]*) objformat=aout ;;
 
10002
    *) objformat=elf ;;
 
10003
    esac
 
10004
  fi
8346
10005
  version_type=freebsd-$objformat
8347
10006
  case $version_type in
8348
10007
    freebsd-elf*)
8364
10023
    shlibpath_overrides_runpath=yes
8365
10024
    hardcode_into_libs=yes
8366
10025
    ;;
8367
 
  *) # from 3.2 on
 
10026
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10027
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8368
10028
    shlibpath_overrides_runpath=no
8369
10029
    hardcode_into_libs=yes
8370
10030
    ;;
 
10031
  *) # from 4.6 on, and DragonFly
 
10032
    shlibpath_overrides_runpath=yes
 
10033
    hardcode_into_libs=yes
 
10034
    ;;
8371
10035
  esac
8372
10036
  ;;
8373
10037
 
8387
10051
  version_type=sunos
8388
10052
  need_lib_prefix=no
8389
10053
  need_version=no
8390
 
  case "$host_cpu" in
 
10054
  case $host_cpu in
8391
10055
  ia64*)
8392
10056
    shrext_cmds='.so'
8393
10057
    hardcode_into_libs=yes
8403
10067
    fi
8404
10068
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8405
10069
    ;;
8406
 
   hppa*64*)
8407
 
     shrext_cmds='.sl'
8408
 
     hardcode_into_libs=yes
8409
 
     dynamic_linker="$host_os dld.sl"
8410
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8411
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8412
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8413
 
     soname_spec='${libname}${release}${shared_ext}$major'
8414
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8415
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8416
 
     ;;
8417
 
   *)
 
10070
  hppa*64*)
 
10071
    shrext_cmds='.sl'
 
10072
    hardcode_into_libs=yes
 
10073
    dynamic_linker="$host_os dld.sl"
 
10074
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10075
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10076
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10077
    soname_spec='${libname}${release}${shared_ext}$major'
 
10078
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10079
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10080
    ;;
 
10081
  *)
8418
10082
    shrext_cmds='.sl'
8419
10083
    dynamic_linker="$host_os dld.sl"
8420
10084
    shlibpath_var=SHLIB_PATH
8427
10091
  postinstall_cmds='chmod 555 $lib'
8428
10092
  ;;
8429
10093
 
 
10094
interix[3-9]*)
 
10095
  version_type=linux
 
10096
  need_lib_prefix=no
 
10097
  need_version=no
 
10098
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10099
  soname_spec='${libname}${release}${shared_ext}$major'
 
10100
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10101
  shlibpath_var=LD_LIBRARY_PATH
 
10102
  shlibpath_overrides_runpath=no
 
10103
  hardcode_into_libs=yes
 
10104
  ;;
 
10105
 
8430
10106
irix5* | irix6* | nonstopux*)
8431
10107
  case $host_os in
8432
10108
    nonstopux*) version_type=nonstopux ;;
8470
10146
  ;;
8471
10147
 
8472
10148
# This must be Linux ELF.
8473
 
linux*)
 
10149
linux* | k*bsd*-gnu)
8474
10150
  version_type=linux
8475
10151
  need_lib_prefix=no
8476
10152
  need_version=no
8479
10155
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8480
10156
  shlibpath_var=LD_LIBRARY_PATH
8481
10157
  shlibpath_overrides_runpath=no
 
10158
  # Some binutils ld are patched to set DT_RUNPATH
 
10159
  save_LDFLAGS=$LDFLAGS
 
10160
  save_libdir=$libdir
 
10161
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10162
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10163
  cat >conftest.$ac_ext <<_ACEOF
 
10164
/* confdefs.h.  */
 
10165
_ACEOF
 
10166
cat confdefs.h >>conftest.$ac_ext
 
10167
cat >>conftest.$ac_ext <<_ACEOF
 
10168
/* end confdefs.h.  */
 
10169
 
 
10170
int
 
10171
main ()
 
10172
{
 
10173
 
 
10174
  ;
 
10175
  return 0;
 
10176
}
 
10177
_ACEOF
 
10178
rm -f conftest.$ac_objext conftest$ac_exeext
 
10179
if { (ac_try="$ac_link"
 
10180
case "(($ac_try" in
 
10181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10182
  *) ac_try_echo=$ac_try;;
 
10183
esac
 
10184
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10185
$as_echo "$ac_try_echo") >&5
 
10186
  (eval "$ac_link") 2>conftest.er1
 
10187
  ac_status=$?
 
10188
  grep -v '^ *+' conftest.er1 >conftest.err
 
10189
  rm -f conftest.er1
 
10190
  cat conftest.err >&5
 
10191
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10192
  (exit $ac_status); } && {
 
10193
         test -z "$ac_c_werror_flag" ||
 
10194
         test ! -s conftest.err
 
10195
       } && test -s conftest$ac_exeext && {
 
10196
         test "$cross_compiling" = yes ||
 
10197
         $as_test_x conftest$ac_exeext
 
10198
       }; then
 
10199
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
10200
  shlibpath_overrides_runpath=yes
 
10201
fi
 
10202
 
 
10203
else
 
10204
  $as_echo "$as_me: failed program was:" >&5
 
10205
sed 's/^/| /' conftest.$ac_ext >&5
 
10206
 
 
10207
 
 
10208
fi
 
10209
 
 
10210
rm -rf conftest.dSYM
 
10211
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10212
      conftest$ac_exeext conftest.$ac_ext
 
10213
  LDFLAGS=$save_LDFLAGS
 
10214
  libdir=$save_libdir
 
10215
 
8482
10216
  # This implies no fast_install, which is unacceptable.
8483
10217
  # Some rework will be needed to allow for fast_install
8484
10218
  # before this can be enabled.
8486
10220
 
8487
10221
  # Append ld.so.conf contents to the search path
8488
10222
  if test -f /etc/ld.so.conf; then
8489
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10223
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8490
10224
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8491
10225
  fi
8492
10226
 
8493
 
  case $host_cpu:$lt_cv_cc_64bit_output in
8494
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
8495
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
8496
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
8497
 
    ;;
8498
 
  esac
8499
 
 
8500
10227
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8501
10228
  # powerpc, because MkLinux only supported shared libraries with the
8502
10229
  # GNU dynamic linker.  Since this was broken with cross compilers,
8504
10231
  # people can always --disable-shared, the test was removed, and we
8505
10232
  # assume the GNU/Linux dynamic linker is in use.
8506
10233
  dynamic_linker='GNU/Linux ld.so'
8507
 
 
8508
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
8509
 
  libsuff=
8510
 
  case "$host_cpu" in
8511
 
  x86_64*)
8512
 
    echo '#line 8512 "configure"' > conftest.$ac_ext
8513
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514
 
  (eval $ac_compile) 2>&5
8515
 
  ac_status=$?
8516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517
 
  (exit $ac_status); }; then
8518
 
      case `/usr/bin/file conftest.$ac_objext` in
8519
 
      *64-bit*)
8520
 
        libsuff=64
8521
 
        ;;
8522
 
      esac
8523
 
    fi
8524
 
    rm -rf conftest*
8525
 
    ;;
8526
 
  *)
8527
 
    ;;
8528
 
  esac
8529
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
8530
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8531
 
  ;;
8532
 
 
8533
 
knetbsd*-gnu)
8534
 
  version_type=linux
8535
 
  need_lib_prefix=no
8536
 
  need_version=no
8537
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8538
 
  soname_spec='${libname}${release}${shared_ext}$major'
8539
 
  shlibpath_var=LD_LIBRARY_PATH
8540
 
  shlibpath_overrides_runpath=no
8541
 
  hardcode_into_libs=yes
8542
 
  dynamic_linker='GNU ld.so'
8543
10234
  ;;
8544
10235
 
8545
10236
netbsd*)
8546
10237
  version_type=sunos
8547
10238
  need_lib_prefix=no
8548
10239
  need_version=no
8549
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10240
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8550
10241
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8551
10242
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8552
10243
    dynamic_linker='NetBSD (a.out) ld.so'
8567
10258
  shlibpath_overrides_runpath=yes
8568
10259
  ;;
8569
10260
 
8570
 
nto-qnx*)
8571
 
  version_type=linux
 
10261
*nto* | *qnx*)
 
10262
  version_type=qnx
8572
10263
  need_lib_prefix=no
8573
10264
  need_version=no
8574
10265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8575
10266
  soname_spec='${libname}${release}${shared_ext}$major'
8576
10267
  shlibpath_var=LD_LIBRARY_PATH
8577
 
  shlibpath_overrides_runpath=yes
 
10268
  shlibpath_overrides_runpath=no
 
10269
  hardcode_into_libs=yes
 
10270
  dynamic_linker='ldqnx.so'
8578
10271
  ;;
8579
10272
 
8580
10273
openbsd*)
8581
10274
  version_type=sunos
 
10275
  sys_lib_dlsearch_path_spec="/usr/lib"
8582
10276
  need_lib_prefix=no
8583
10277
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8584
10278
  case $host_os in
8585
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8586
 
    *)                         need_version=no  ;;
 
10279
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10280
    *)                          need_version=no  ;;
8587
10281
  esac
8588
10282
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8589
10283
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8590
10284
  shlibpath_var=LD_LIBRARY_PATH
8591
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10285
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8592
10286
    case $host_os in
8593
10287
      openbsd2.[89] | openbsd2.[89].*)
8594
10288
        shlibpath_overrides_runpath=no
8622
10316
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8623
10317
  ;;
8624
10318
 
8625
 
sco3.2v5*)
8626
 
  version_type=osf
8627
 
  soname_spec='${libname}${release}${shared_ext}$major'
8628
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8629
 
  shlibpath_var=LD_LIBRARY_PATH
 
10319
rdos*)
 
10320
  dynamic_linker=no
8630
10321
  ;;
8631
10322
 
8632
10323
solaris*)
8654
10345
  need_version=yes
8655
10346
  ;;
8656
10347
 
8657
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10348
sysv4 | sysv4.3*)
8658
10349
  version_type=linux
8659
10350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8660
10351
  soname_spec='${libname}${release}${shared_ext}$major'
8663
10354
    sni)
8664
10355
      shlibpath_overrides_runpath=no
8665
10356
      need_lib_prefix=no
8666
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8667
10357
      runpath_var=LD_RUN_PATH
8668
10358
      ;;
8669
10359
    siemens)
8687
10377
  fi
8688
10378
  ;;
8689
10379
 
 
10380
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10381
  version_type=freebsd-elf
 
10382
  need_lib_prefix=no
 
10383
  need_version=no
 
10384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10385
  soname_spec='${libname}${release}${shared_ext}$major'
 
10386
  shlibpath_var=LD_LIBRARY_PATH
 
10387
  shlibpath_overrides_runpath=yes
 
10388
  hardcode_into_libs=yes
 
10389
  if test "$with_gnu_ld" = yes; then
 
10390
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10391
  else
 
10392
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10393
    case $host_os in
 
10394
      sco3.2v5*)
 
10395
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10396
        ;;
 
10397
    esac
 
10398
  fi
 
10399
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10400
  ;;
 
10401
 
 
10402
tpf*)
 
10403
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10404
  version_type=linux
 
10405
  need_lib_prefix=no
 
10406
  need_version=no
 
10407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10408
  shlibpath_var=LD_LIBRARY_PATH
 
10409
  shlibpath_overrides_runpath=no
 
10410
  hardcode_into_libs=yes
 
10411
  ;;
 
10412
 
8690
10413
uts4*)
8691
10414
  version_type=linux
8692
10415
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698
10421
  dynamic_linker=no
8699
10422
  ;;
8700
10423
esac
8701
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8702
 
echo "${ECHO_T}$dynamic_linker" >&6
 
10424
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10425
$as_echo "$dynamic_linker" >&6; }
8703
10426
test "$dynamic_linker" = no && can_build_shared=no
8704
10427
 
8705
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8706
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10428
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10429
if test "$GCC" = yes; then
 
10430
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10431
fi
 
10432
 
 
10433
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10434
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10435
fi
 
10436
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10437
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10438
fi
 
10439
 
 
10440
 
 
10441
 
 
10442
 
 
10443
 
 
10444
 
 
10445
 
 
10446
 
 
10447
 
 
10448
 
 
10449
 
 
10450
 
 
10451
 
 
10452
 
 
10453
 
 
10454
 
 
10455
 
 
10456
 
 
10457
 
 
10458
 
 
10459
 
 
10460
 
 
10461
 
 
10462
 
 
10463
 
 
10464
 
 
10465
 
 
10466
 
 
10467
 
 
10468
 
 
10469
 
 
10470
 
 
10471
 
 
10472
 
 
10473
 
 
10474
 
 
10475
 
 
10476
 
 
10477
 
 
10478
 
 
10479
 
 
10480
 
 
10481
 
 
10482
 
 
10483
 
 
10484
 
 
10485
 
 
10486
 
 
10487
 
 
10488
 
 
10489
 
 
10490
 
 
10491
 
 
10492
 
 
10493
 
 
10494
 
 
10495
 
 
10496
 
 
10497
 
 
10498
 
 
10499
 
 
10500
 
 
10501
 
 
10502
 
 
10503
 
 
10504
 
 
10505
 
 
10506
 
 
10507
 
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
 
10516
 
 
10517
 
 
10518
 
 
10519
 
 
10520
 
 
10521
 
 
10522
 
 
10523
 
 
10524
 
 
10525
 
 
10526
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10527
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8707
10528
hardcode_action=
8708
 
if test -n "$hardcode_libdir_flag_spec" || \
8709
 
   test -n "$runpath_var" || \
 
10529
if test -n "$hardcode_libdir_flag_spec" ||
 
10530
   test -n "$runpath_var" ||
8710
10531
   test "X$hardcode_automatic" = "Xyes" ; then
8711
10532
 
8712
 
  # We can hardcode non-existant directories.
 
10533
  # We can hardcode non-existent directories.
8713
10534
  if test "$hardcode_direct" != no &&
8714
10535
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8715
10536
     # have to relink, otherwise we might link with an installed library
8716
10537
     # when we should be linking with a yet-to-be-installed one
8717
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10538
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8718
10539
     test "$hardcode_minus_L" != no; then
8719
10540
    # Linking always hardcodes the temporary library directory.
8720
10541
    hardcode_action=relink
8727
10548
  # directories.
8728
10549
  hardcode_action=unsupported
8729
10550
fi
8730
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8731
 
echo "${ECHO_T}$hardcode_action" >&6
8732
 
 
8733
 
if test "$hardcode_action" = relink; then
8734
 
  # Fast installation is not supported
8735
 
  enable_fast_install=no
8736
 
elif test "$shlibpath_overrides_runpath" = yes ||
8737
 
     test "$enable_shared" = no; then
8738
 
  # Fast installation is not necessary
8739
 
  enable_fast_install=needless
8740
 
fi
8741
 
 
8742
 
striplib=
8743
 
old_striplib=
8744
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8745
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8746
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8747
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8748
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8749
 
  echo "$as_me:$LINENO: result: yes" >&5
8750
 
echo "${ECHO_T}yes" >&6
8751
 
else
8752
 
# FIXME - insert some real tests, host_os isn't really good enough
8753
 
  case $host_os in
8754
 
   darwin*)
8755
 
       if test -n "$STRIP" ; then
8756
 
         striplib="$STRIP -x"
8757
 
         echo "$as_me:$LINENO: result: yes" >&5
8758
 
echo "${ECHO_T}yes" >&6
8759
 
       else
8760
 
  echo "$as_me:$LINENO: result: no" >&5
8761
 
echo "${ECHO_T}no" >&6
8762
 
fi
8763
 
       ;;
8764
 
   *)
8765
 
  echo "$as_me:$LINENO: result: no" >&5
8766
 
echo "${ECHO_T}no" >&6
8767
 
    ;;
8768
 
  esac
8769
 
fi
8770
 
 
8771
 
if test "x$enable_dlopen" != xyes; then
8772
 
  enable_dlopen=unknown
8773
 
  enable_dlopen_self=unknown
8774
 
  enable_dlopen_self_static=unknown
8775
 
else
8776
 
  lt_cv_dlopen=no
8777
 
  lt_cv_dlopen_libs=
8778
 
 
8779
 
  case $host_os in
8780
 
  beos*)
8781
 
    lt_cv_dlopen="load_add_on"
8782
 
    lt_cv_dlopen_libs=
8783
 
    lt_cv_dlopen_self=yes
8784
 
    ;;
8785
 
 
8786
 
  mingw* | pw32*)
8787
 
    lt_cv_dlopen="LoadLibrary"
8788
 
    lt_cv_dlopen_libs=
8789
 
   ;;
8790
 
 
8791
 
  cygwin*)
8792
 
    lt_cv_dlopen="dlopen"
8793
 
    lt_cv_dlopen_libs=
8794
 
   ;;
8795
 
 
8796
 
  darwin*)
8797
 
  # if libdl is installed we need to link against it
8798
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8799
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8800
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8802
 
else
8803
 
  ac_check_lib_save_LIBS=$LIBS
8804
 
LIBS="-ldl  $LIBS"
8805
 
cat >conftest.$ac_ext <<_ACEOF
8806
 
/* confdefs.h.  */
8807
 
_ACEOF
8808
 
cat confdefs.h >>conftest.$ac_ext
8809
 
cat >>conftest.$ac_ext <<_ACEOF
8810
 
/* end confdefs.h.  */
8811
 
 
8812
 
/* Override any gcc2 internal prototype to avoid an error.  */
8813
 
#ifdef __cplusplus
8814
 
extern "C"
8815
 
#endif
8816
 
/* We use char because int might match the return type of a gcc2
8817
 
   builtin and then its argument prototype would still apply.  */
8818
 
char dlopen ();
8819
 
int
8820
 
main ()
8821
 
{
8822
 
dlopen ();
8823
 
  ;
8824
 
  return 0;
8825
 
}
8826
 
_ACEOF
8827
 
rm -f conftest.$ac_objext conftest$ac_exeext
8828
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829
 
  (eval $ac_link) 2>conftest.er1
8830
 
  ac_status=$?
8831
 
  grep -v '^ *+' conftest.er1 >conftest.err
8832
 
  rm -f conftest.er1
8833
 
  cat conftest.err >&5
8834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835
 
  (exit $ac_status); } &&
8836
 
         { ac_try='test -z "$ac_c_werror_flag"
8837
 
                         || test ! -s conftest.err'
8838
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839
 
  (eval $ac_try) 2>&5
8840
 
  ac_status=$?
8841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842
 
  (exit $ac_status); }; } &&
8843
 
         { ac_try='test -s conftest$ac_exeext'
8844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845
 
  (eval $ac_try) 2>&5
8846
 
  ac_status=$?
8847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848
 
  (exit $ac_status); }; }; then
8849
 
  ac_cv_lib_dl_dlopen=yes
8850
 
else
8851
 
  echo "$as_me: failed program was:" >&5
8852
 
sed 's/^/| /' conftest.$ac_ext >&5
8853
 
 
8854
 
ac_cv_lib_dl_dlopen=no
8855
 
fi
8856
 
rm -f conftest.err conftest.$ac_objext \
8857
 
      conftest$ac_exeext conftest.$ac_ext
8858
 
LIBS=$ac_check_lib_save_LIBS
8859
 
fi
8860
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8861
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8862
 
if test $ac_cv_lib_dl_dlopen = yes; then
8863
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8864
 
else
8865
 
 
8866
 
    lt_cv_dlopen="dyld"
8867
 
    lt_cv_dlopen_libs=
8868
 
    lt_cv_dlopen_self=yes
8869
 
 
8870
 
fi
8871
 
 
8872
 
   ;;
8873
 
 
8874
 
  *)
8875
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8876
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8877
 
if test "${ac_cv_func_shl_load+set}" = set; then
8878
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8879
 
else
8880
 
  cat >conftest.$ac_ext <<_ACEOF
8881
 
/* confdefs.h.  */
8882
 
_ACEOF
8883
 
cat confdefs.h >>conftest.$ac_ext
8884
 
cat >>conftest.$ac_ext <<_ACEOF
8885
 
/* end confdefs.h.  */
8886
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8887
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8888
 
#define shl_load innocuous_shl_load
8889
 
 
8890
 
/* System header to define __stub macros and hopefully few prototypes,
8891
 
    which can conflict with char shl_load (); below.
8892
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893
 
    <limits.h> exists even on freestanding compilers.  */
8894
 
 
8895
 
#ifdef __STDC__
8896
 
# include <limits.h>
8897
 
#else
8898
 
# include <assert.h>
8899
 
#endif
8900
 
 
8901
 
#undef shl_load
8902
 
 
8903
 
/* Override any gcc2 internal prototype to avoid an error.  */
8904
 
#ifdef __cplusplus
8905
 
extern "C"
8906
 
{
8907
 
#endif
8908
 
/* We use char because int might match the return type of a gcc2
8909
 
   builtin and then its argument prototype would still apply.  */
8910
 
char shl_load ();
8911
 
/* The GNU C library defines this for functions which it implements
8912
 
    to always fail with ENOSYS.  Some functions are actually named
8913
 
    something starting with __ and the normal name is an alias.  */
8914
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8915
 
choke me
8916
 
#else
8917
 
char (*f) () = shl_load;
8918
 
#endif
8919
 
#ifdef __cplusplus
8920
 
}
8921
 
#endif
8922
 
 
8923
 
int
8924
 
main ()
8925
 
{
8926
 
return f != shl_load;
8927
 
  ;
8928
 
  return 0;
8929
 
}
8930
 
_ACEOF
8931
 
rm -f conftest.$ac_objext conftest$ac_exeext
8932
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933
 
  (eval $ac_link) 2>conftest.er1
8934
 
  ac_status=$?
8935
 
  grep -v '^ *+' conftest.er1 >conftest.err
8936
 
  rm -f conftest.er1
8937
 
  cat conftest.err >&5
8938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939
 
  (exit $ac_status); } &&
8940
 
         { ac_try='test -z "$ac_c_werror_flag"
8941
 
                         || test ! -s conftest.err'
8942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943
 
  (eval $ac_try) 2>&5
8944
 
  ac_status=$?
8945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946
 
  (exit $ac_status); }; } &&
8947
 
         { ac_try='test -s conftest$ac_exeext'
8948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949
 
  (eval $ac_try) 2>&5
8950
 
  ac_status=$?
8951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952
 
  (exit $ac_status); }; }; then
8953
 
  ac_cv_func_shl_load=yes
8954
 
else
8955
 
  echo "$as_me: failed program was:" >&5
8956
 
sed 's/^/| /' conftest.$ac_ext >&5
8957
 
 
8958
 
ac_cv_func_shl_load=no
8959
 
fi
8960
 
rm -f conftest.err conftest.$ac_objext \
8961
 
      conftest$ac_exeext conftest.$ac_ext
8962
 
fi
8963
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8964
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8965
 
if test $ac_cv_func_shl_load = yes; then
8966
 
  lt_cv_dlopen="shl_load"
8967
 
else
8968
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8969
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8970
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8971
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8972
 
else
8973
 
  ac_check_lib_save_LIBS=$LIBS
8974
 
LIBS="-ldld  $LIBS"
8975
 
cat >conftest.$ac_ext <<_ACEOF
8976
 
/* confdefs.h.  */
8977
 
_ACEOF
8978
 
cat confdefs.h >>conftest.$ac_ext
8979
 
cat >>conftest.$ac_ext <<_ACEOF
8980
 
/* end confdefs.h.  */
8981
 
 
8982
 
/* Override any gcc2 internal prototype to avoid an error.  */
8983
 
#ifdef __cplusplus
8984
 
extern "C"
8985
 
#endif
8986
 
/* We use char because int might match the return type of a gcc2
8987
 
   builtin and then its argument prototype would still apply.  */
8988
 
char shl_load ();
8989
 
int
8990
 
main ()
8991
 
{
8992
 
shl_load ();
8993
 
  ;
8994
 
  return 0;
8995
 
}
8996
 
_ACEOF
8997
 
rm -f conftest.$ac_objext conftest$ac_exeext
8998
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999
 
  (eval $ac_link) 2>conftest.er1
9000
 
  ac_status=$?
9001
 
  grep -v '^ *+' conftest.er1 >conftest.err
9002
 
  rm -f conftest.er1
9003
 
  cat conftest.err >&5
9004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005
 
  (exit $ac_status); } &&
9006
 
         { ac_try='test -z "$ac_c_werror_flag"
9007
 
                         || test ! -s conftest.err'
9008
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009
 
  (eval $ac_try) 2>&5
9010
 
  ac_status=$?
9011
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012
 
  (exit $ac_status); }; } &&
9013
 
         { ac_try='test -s conftest$ac_exeext'
9014
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015
 
  (eval $ac_try) 2>&5
9016
 
  ac_status=$?
9017
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018
 
  (exit $ac_status); }; }; then
9019
 
  ac_cv_lib_dld_shl_load=yes
9020
 
else
9021
 
  echo "$as_me: failed program was:" >&5
9022
 
sed 's/^/| /' conftest.$ac_ext >&5
9023
 
 
9024
 
ac_cv_lib_dld_shl_load=no
9025
 
fi
9026
 
rm -f conftest.err conftest.$ac_objext \
9027
 
      conftest$ac_exeext conftest.$ac_ext
9028
 
LIBS=$ac_check_lib_save_LIBS
9029
 
fi
9030
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9031
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9032
 
if test $ac_cv_lib_dld_shl_load = yes; then
9033
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9034
 
else
9035
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
9036
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9037
 
if test "${ac_cv_func_dlopen+set}" = set; then
9038
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9039
 
else
9040
 
  cat >conftest.$ac_ext <<_ACEOF
9041
 
/* confdefs.h.  */
9042
 
_ACEOF
9043
 
cat confdefs.h >>conftest.$ac_ext
9044
 
cat >>conftest.$ac_ext <<_ACEOF
9045
 
/* end confdefs.h.  */
9046
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9047
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9048
 
#define dlopen innocuous_dlopen
9049
 
 
9050
 
/* System header to define __stub macros and hopefully few prototypes,
9051
 
    which can conflict with char dlopen (); below.
9052
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9053
 
    <limits.h> exists even on freestanding compilers.  */
9054
 
 
9055
 
#ifdef __STDC__
9056
 
# include <limits.h>
9057
 
#else
9058
 
# include <assert.h>
9059
 
#endif
9060
 
 
9061
 
#undef dlopen
9062
 
 
9063
 
/* Override any gcc2 internal prototype to avoid an error.  */
9064
 
#ifdef __cplusplus
9065
 
extern "C"
9066
 
{
9067
 
#endif
9068
 
/* We use char because int might match the return type of a gcc2
9069
 
   builtin and then its argument prototype would still apply.  */
9070
 
char dlopen ();
9071
 
/* The GNU C library defines this for functions which it implements
9072
 
    to always fail with ENOSYS.  Some functions are actually named
9073
 
    something starting with __ and the normal name is an alias.  */
9074
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9075
 
choke me
9076
 
#else
9077
 
char (*f) () = dlopen;
9078
 
#endif
9079
 
#ifdef __cplusplus
9080
 
}
9081
 
#endif
9082
 
 
9083
 
int
9084
 
main ()
9085
 
{
9086
 
return f != dlopen;
9087
 
  ;
9088
 
  return 0;
9089
 
}
9090
 
_ACEOF
9091
 
rm -f conftest.$ac_objext conftest$ac_exeext
9092
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093
 
  (eval $ac_link) 2>conftest.er1
9094
 
  ac_status=$?
9095
 
  grep -v '^ *+' conftest.er1 >conftest.err
9096
 
  rm -f conftest.er1
9097
 
  cat conftest.err >&5
9098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099
 
  (exit $ac_status); } &&
9100
 
         { ac_try='test -z "$ac_c_werror_flag"
9101
 
                         || test ! -s conftest.err'
9102
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103
 
  (eval $ac_try) 2>&5
9104
 
  ac_status=$?
9105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106
 
  (exit $ac_status); }; } &&
9107
 
         { ac_try='test -s conftest$ac_exeext'
9108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109
 
  (eval $ac_try) 2>&5
9110
 
  ac_status=$?
9111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112
 
  (exit $ac_status); }; }; then
9113
 
  ac_cv_func_dlopen=yes
9114
 
else
9115
 
  echo "$as_me: failed program was:" >&5
9116
 
sed 's/^/| /' conftest.$ac_ext >&5
9117
 
 
9118
 
ac_cv_func_dlopen=no
9119
 
fi
9120
 
rm -f conftest.err conftest.$ac_objext \
9121
 
      conftest$ac_exeext conftest.$ac_ext
9122
 
fi
9123
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9124
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9125
 
if test $ac_cv_func_dlopen = yes; then
9126
 
  lt_cv_dlopen="dlopen"
9127
 
else
9128
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9129
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9130
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9132
 
else
9133
 
  ac_check_lib_save_LIBS=$LIBS
9134
 
LIBS="-ldl  $LIBS"
9135
 
cat >conftest.$ac_ext <<_ACEOF
9136
 
/* confdefs.h.  */
9137
 
_ACEOF
9138
 
cat confdefs.h >>conftest.$ac_ext
9139
 
cat >>conftest.$ac_ext <<_ACEOF
9140
 
/* end confdefs.h.  */
9141
 
 
9142
 
/* Override any gcc2 internal prototype to avoid an error.  */
9143
 
#ifdef __cplusplus
9144
 
extern "C"
9145
 
#endif
9146
 
/* We use char because int might match the return type of a gcc2
9147
 
   builtin and then its argument prototype would still apply.  */
9148
 
char dlopen ();
9149
 
int
9150
 
main ()
9151
 
{
9152
 
dlopen ();
9153
 
  ;
9154
 
  return 0;
9155
 
}
9156
 
_ACEOF
9157
 
rm -f conftest.$ac_objext conftest$ac_exeext
9158
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159
 
  (eval $ac_link) 2>conftest.er1
9160
 
  ac_status=$?
9161
 
  grep -v '^ *+' conftest.er1 >conftest.err
9162
 
  rm -f conftest.er1
9163
 
  cat conftest.err >&5
9164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165
 
  (exit $ac_status); } &&
9166
 
         { ac_try='test -z "$ac_c_werror_flag"
9167
 
                         || test ! -s conftest.err'
9168
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169
 
  (eval $ac_try) 2>&5
9170
 
  ac_status=$?
9171
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172
 
  (exit $ac_status); }; } &&
9173
 
         { ac_try='test -s conftest$ac_exeext'
9174
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175
 
  (eval $ac_try) 2>&5
9176
 
  ac_status=$?
9177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178
 
  (exit $ac_status); }; }; then
9179
 
  ac_cv_lib_dl_dlopen=yes
9180
 
else
9181
 
  echo "$as_me: failed program was:" >&5
9182
 
sed 's/^/| /' conftest.$ac_ext >&5
9183
 
 
9184
 
ac_cv_lib_dl_dlopen=no
9185
 
fi
9186
 
rm -f conftest.err conftest.$ac_objext \
9187
 
      conftest$ac_exeext conftest.$ac_ext
9188
 
LIBS=$ac_check_lib_save_LIBS
9189
 
fi
9190
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9191
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9192
 
if test $ac_cv_lib_dl_dlopen = yes; then
9193
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9194
 
else
9195
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9196
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9197
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9198
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9199
 
else
9200
 
  ac_check_lib_save_LIBS=$LIBS
9201
 
LIBS="-lsvld  $LIBS"
9202
 
cat >conftest.$ac_ext <<_ACEOF
9203
 
/* confdefs.h.  */
9204
 
_ACEOF
9205
 
cat confdefs.h >>conftest.$ac_ext
9206
 
cat >>conftest.$ac_ext <<_ACEOF
9207
 
/* end confdefs.h.  */
9208
 
 
9209
 
/* Override any gcc2 internal prototype to avoid an error.  */
9210
 
#ifdef __cplusplus
9211
 
extern "C"
9212
 
#endif
9213
 
/* We use char because int might match the return type of a gcc2
9214
 
   builtin and then its argument prototype would still apply.  */
9215
 
char dlopen ();
9216
 
int
9217
 
main ()
9218
 
{
9219
 
dlopen ();
9220
 
  ;
9221
 
  return 0;
9222
 
}
9223
 
_ACEOF
9224
 
rm -f conftest.$ac_objext conftest$ac_exeext
9225
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226
 
  (eval $ac_link) 2>conftest.er1
9227
 
  ac_status=$?
9228
 
  grep -v '^ *+' conftest.er1 >conftest.err
9229
 
  rm -f conftest.er1
9230
 
  cat conftest.err >&5
9231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232
 
  (exit $ac_status); } &&
9233
 
         { ac_try='test -z "$ac_c_werror_flag"
9234
 
                         || test ! -s conftest.err'
9235
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236
 
  (eval $ac_try) 2>&5
9237
 
  ac_status=$?
9238
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239
 
  (exit $ac_status); }; } &&
9240
 
         { ac_try='test -s conftest$ac_exeext'
9241
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242
 
  (eval $ac_try) 2>&5
9243
 
  ac_status=$?
9244
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245
 
  (exit $ac_status); }; }; then
9246
 
  ac_cv_lib_svld_dlopen=yes
9247
 
else
9248
 
  echo "$as_me: failed program was:" >&5
9249
 
sed 's/^/| /' conftest.$ac_ext >&5
9250
 
 
9251
 
ac_cv_lib_svld_dlopen=no
9252
 
fi
9253
 
rm -f conftest.err conftest.$ac_objext \
9254
 
      conftest$ac_exeext conftest.$ac_ext
9255
 
LIBS=$ac_check_lib_save_LIBS
9256
 
fi
9257
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9258
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9259
 
if test $ac_cv_lib_svld_dlopen = yes; then
9260
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9261
 
else
9262
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9263
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9264
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9265
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9266
 
else
9267
 
  ac_check_lib_save_LIBS=$LIBS
9268
 
LIBS="-ldld  $LIBS"
9269
 
cat >conftest.$ac_ext <<_ACEOF
9270
 
/* confdefs.h.  */
9271
 
_ACEOF
9272
 
cat confdefs.h >>conftest.$ac_ext
9273
 
cat >>conftest.$ac_ext <<_ACEOF
9274
 
/* end confdefs.h.  */
9275
 
 
9276
 
/* Override any gcc2 internal prototype to avoid an error.  */
9277
 
#ifdef __cplusplus
9278
 
extern "C"
9279
 
#endif
9280
 
/* We use char because int might match the return type of a gcc2
9281
 
   builtin and then its argument prototype would still apply.  */
9282
 
char dld_link ();
9283
 
int
9284
 
main ()
9285
 
{
9286
 
dld_link ();
9287
 
  ;
9288
 
  return 0;
9289
 
}
9290
 
_ACEOF
9291
 
rm -f conftest.$ac_objext conftest$ac_exeext
9292
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293
 
  (eval $ac_link) 2>conftest.er1
9294
 
  ac_status=$?
9295
 
  grep -v '^ *+' conftest.er1 >conftest.err
9296
 
  rm -f conftest.er1
9297
 
  cat conftest.err >&5
9298
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299
 
  (exit $ac_status); } &&
9300
 
         { ac_try='test -z "$ac_c_werror_flag"
9301
 
                         || test ! -s conftest.err'
9302
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303
 
  (eval $ac_try) 2>&5
9304
 
  ac_status=$?
9305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306
 
  (exit $ac_status); }; } &&
9307
 
         { ac_try='test -s conftest$ac_exeext'
9308
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309
 
  (eval $ac_try) 2>&5
9310
 
  ac_status=$?
9311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312
 
  (exit $ac_status); }; }; then
9313
 
  ac_cv_lib_dld_dld_link=yes
9314
 
else
9315
 
  echo "$as_me: failed program was:" >&5
9316
 
sed 's/^/| /' conftest.$ac_ext >&5
9317
 
 
9318
 
ac_cv_lib_dld_dld_link=no
9319
 
fi
9320
 
rm -f conftest.err conftest.$ac_objext \
9321
 
      conftest$ac_exeext conftest.$ac_ext
9322
 
LIBS=$ac_check_lib_save_LIBS
9323
 
fi
9324
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9325
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9326
 
if test $ac_cv_lib_dld_dld_link = yes; then
9327
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9328
 
fi
9329
 
 
9330
 
 
9331
 
fi
9332
 
 
9333
 
 
9334
 
fi
9335
 
 
9336
 
 
9337
 
fi
9338
 
 
9339
 
 
9340
 
fi
9341
 
 
9342
 
 
9343
 
fi
9344
 
 
9345
 
    ;;
9346
 
  esac
9347
 
 
9348
 
  if test "x$lt_cv_dlopen" != xno; then
9349
 
    enable_dlopen=yes
9350
 
  else
9351
 
    enable_dlopen=no
9352
 
  fi
9353
 
 
9354
 
  case $lt_cv_dlopen in
9355
 
  dlopen)
9356
 
    save_CPPFLAGS="$CPPFLAGS"
9357
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9358
 
 
9359
 
    save_LDFLAGS="$LDFLAGS"
9360
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9361
 
 
9362
 
    save_LIBS="$LIBS"
9363
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
9364
 
 
9365
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9366
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9367
 
if test "${lt_cv_dlopen_self+set}" = set; then
9368
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9369
 
else
9370
 
          if test "$cross_compiling" = yes; then :
9371
 
  lt_cv_dlopen_self=cross
9372
 
else
9373
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9374
 
  lt_status=$lt_dlunknown
9375
 
  cat > conftest.$ac_ext <<EOF
9376
 
#line 9376 "configure"
9377
 
#include "confdefs.h"
9378
 
 
9379
 
#if HAVE_DLFCN_H
9380
 
#include <dlfcn.h>
9381
 
#endif
9382
 
 
9383
 
#include <stdio.h>
9384
 
 
9385
 
#ifdef RTLD_GLOBAL
9386
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
9387
 
#else
9388
 
#  ifdef DL_GLOBAL
9389
 
#    define LT_DLGLOBAL         DL_GLOBAL
9390
 
#  else
9391
 
#    define LT_DLGLOBAL         0
9392
 
#  endif
9393
 
#endif
9394
 
 
9395
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9396
 
   find out it does not work in some platform. */
9397
 
#ifndef LT_DLLAZY_OR_NOW
9398
 
#  ifdef RTLD_LAZY
9399
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9400
 
#  else
9401
 
#    ifdef DL_LAZY
9402
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9403
 
#    else
9404
 
#      ifdef RTLD_NOW
9405
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9406
 
#      else
9407
 
#        ifdef DL_NOW
9408
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
9409
 
#        else
9410
 
#          define LT_DLLAZY_OR_NOW      0
9411
 
#        endif
9412
 
#      endif
9413
 
#    endif
9414
 
#  endif
9415
 
#endif
9416
 
 
9417
 
#ifdef __cplusplus
9418
 
extern "C" void exit (int);
9419
 
#endif
9420
 
 
9421
 
void fnord() { int i=42;}
9422
 
int main ()
9423
 
{
9424
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9425
 
  int status = $lt_dlunknown;
9426
 
 
9427
 
  if (self)
9428
 
    {
9429
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9430
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9431
 
      /* dlclose (self); */
9432
 
    }
9433
 
 
9434
 
    exit (status);
9435
 
}
9436
 
EOF
9437
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438
 
  (eval $ac_link) 2>&5
9439
 
  ac_status=$?
9440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9442
 
    (./conftest; exit; ) 2>/dev/null
9443
 
    lt_status=$?
9444
 
    case x$lt_status in
9445
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9446
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9447
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9448
 
    esac
9449
 
  else :
9450
 
    # compilation failed
9451
 
    lt_cv_dlopen_self=no
9452
 
  fi
9453
 
fi
9454
 
rm -fr conftest*
9455
 
 
9456
 
 
9457
 
fi
9458
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9459
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9460
 
 
9461
 
    if test "x$lt_cv_dlopen_self" = xyes; then
9462
 
      LDFLAGS="$LDFLAGS $link_static_flag"
9463
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9464
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9465
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
9466
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9467
 
else
9468
 
          if test "$cross_compiling" = yes; then :
9469
 
  lt_cv_dlopen_self_static=cross
9470
 
else
9471
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9472
 
  lt_status=$lt_dlunknown
9473
 
  cat > conftest.$ac_ext <<EOF
9474
 
#line 9474 "configure"
9475
 
#include "confdefs.h"
9476
 
 
9477
 
#if HAVE_DLFCN_H
9478
 
#include <dlfcn.h>
9479
 
#endif
9480
 
 
9481
 
#include <stdio.h>
9482
 
 
9483
 
#ifdef RTLD_GLOBAL
9484
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
9485
 
#else
9486
 
#  ifdef DL_GLOBAL
9487
 
#    define LT_DLGLOBAL         DL_GLOBAL
9488
 
#  else
9489
 
#    define LT_DLGLOBAL         0
9490
 
#  endif
9491
 
#endif
9492
 
 
9493
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9494
 
   find out it does not work in some platform. */
9495
 
#ifndef LT_DLLAZY_OR_NOW
9496
 
#  ifdef RTLD_LAZY
9497
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9498
 
#  else
9499
 
#    ifdef DL_LAZY
9500
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9501
 
#    else
9502
 
#      ifdef RTLD_NOW
9503
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9504
 
#      else
9505
 
#        ifdef DL_NOW
9506
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
9507
 
#        else
9508
 
#          define LT_DLLAZY_OR_NOW      0
9509
 
#        endif
9510
 
#      endif
9511
 
#    endif
9512
 
#  endif
9513
 
#endif
9514
 
 
9515
 
#ifdef __cplusplus
9516
 
extern "C" void exit (int);
9517
 
#endif
9518
 
 
9519
 
void fnord() { int i=42;}
9520
 
int main ()
9521
 
{
9522
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9523
 
  int status = $lt_dlunknown;
9524
 
 
9525
 
  if (self)
9526
 
    {
9527
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9528
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9529
 
      /* dlclose (self); */
9530
 
    }
9531
 
 
9532
 
    exit (status);
9533
 
}
9534
 
EOF
9535
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536
 
  (eval $ac_link) 2>&5
9537
 
  ac_status=$?
9538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9540
 
    (./conftest; exit; ) 2>/dev/null
9541
 
    lt_status=$?
9542
 
    case x$lt_status in
9543
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9544
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9545
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9546
 
    esac
9547
 
  else :
9548
 
    # compilation failed
9549
 
    lt_cv_dlopen_self_static=no
9550
 
  fi
9551
 
fi
9552
 
rm -fr conftest*
9553
 
 
9554
 
 
9555
 
fi
9556
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9557
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9558
 
    fi
9559
 
 
9560
 
    CPPFLAGS="$save_CPPFLAGS"
9561
 
    LDFLAGS="$save_LDFLAGS"
9562
 
    LIBS="$save_LIBS"
9563
 
    ;;
9564
 
  esac
9565
 
 
9566
 
  case $lt_cv_dlopen_self in
9567
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9568
 
  *) enable_dlopen_self=unknown ;;
9569
 
  esac
9570
 
 
9571
 
  case $lt_cv_dlopen_self_static in
9572
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9573
 
  *) enable_dlopen_self_static=unknown ;;
9574
 
  esac
9575
 
fi
9576
 
 
9577
 
 
9578
 
# Report which librarie types wil actually be built
9579
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9580
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9581
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9582
 
echo "${ECHO_T}$can_build_shared" >&6
9583
 
 
9584
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9585
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9586
 
test "$can_build_shared" = "no" && enable_shared=no
9587
 
 
9588
 
# On AIX, shared libraries and static libraries use the same namespace, and
9589
 
# are all built from PIC.
9590
 
case "$host_os" in
9591
 
aix3*)
9592
 
  test "$enable_shared" = yes && enable_static=no
9593
 
  if test -n "$RANLIB"; then
9594
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9595
 
    postinstall_cmds='$RANLIB $lib'
9596
 
  fi
9597
 
  ;;
9598
 
 
9599
 
aix4* | aix5*)
9600
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9601
 
    test "$enable_shared" = yes && enable_static=no
9602
 
  fi
9603
 
    ;;
9604
 
esac
9605
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
9606
 
echo "${ECHO_T}$enable_shared" >&6
9607
 
 
9608
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9609
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9610
 
# Make sure either enable_shared or enable_static is yes.
9611
 
test "$enable_shared" = yes || enable_static=yes
9612
 
echo "$as_me:$LINENO: result: $enable_static" >&5
9613
 
echo "${ECHO_T}$enable_static" >&6
9614
 
 
9615
 
# The else clause should only fire when bootstrapping the
9616
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
9617
 
# with your package, and you will get complaints that there are
9618
 
# no rules to generate ltmain.sh.
9619
 
if test -f "$ltmain"; then
9620
 
  # See if we are running on zsh, and set the options which allow our commands through
9621
 
  # without removal of \ escapes.
9622
 
  if test -n "${ZSH_VERSION+set}" ; then
9623
 
    setopt NO_GLOB_SUBST
9624
 
  fi
9625
 
  # Now quote all the things that may contain metacharacters while being
9626
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9627
 
  # variables and quote the copies for generation of the libtool script.
9628
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9629
 
    SED SHELL STRIP \
9630
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9631
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9632
 
    deplibs_check_method reload_flag reload_cmds need_locks \
9633
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9634
 
    lt_cv_sys_global_symbol_to_c_name_address \
9635
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9636
 
    old_postinstall_cmds old_postuninstall_cmds \
9637
 
    compiler \
9638
 
    CC \
9639
 
    LD \
9640
 
    lt_prog_compiler_wl \
9641
 
    lt_prog_compiler_pic \
9642
 
    lt_prog_compiler_static \
9643
 
    lt_prog_compiler_no_builtin_flag \
9644
 
    export_dynamic_flag_spec \
9645
 
    thread_safe_flag_spec \
9646
 
    whole_archive_flag_spec \
9647
 
    enable_shared_with_static_runtimes \
9648
 
    old_archive_cmds \
9649
 
    old_archive_from_new_cmds \
9650
 
    predep_objects \
9651
 
    postdep_objects \
9652
 
    predeps \
9653
 
    postdeps \
9654
 
    compiler_lib_search_path \
9655
 
    archive_cmds \
9656
 
    archive_expsym_cmds \
9657
 
    postinstall_cmds \
9658
 
    postuninstall_cmds \
9659
 
    old_archive_from_expsyms_cmds \
9660
 
    allow_undefined_flag \
9661
 
    no_undefined_flag \
9662
 
    export_symbols_cmds \
9663
 
    hardcode_libdir_flag_spec \
9664
 
    hardcode_libdir_flag_spec_ld \
9665
 
    hardcode_libdir_separator \
9666
 
    hardcode_automatic \
9667
 
    module_cmds \
9668
 
    module_expsym_cmds \
9669
 
    lt_cv_prog_compiler_c_o \
9670
 
    exclude_expsyms \
9671
 
    include_expsyms; do
9672
 
 
9673
 
    case $var in
9674
 
    old_archive_cmds | \
9675
 
    old_archive_from_new_cmds | \
9676
 
    archive_cmds | \
9677
 
    archive_expsym_cmds | \
9678
 
    module_cmds | \
9679
 
    module_expsym_cmds | \
9680
 
    old_archive_from_expsyms_cmds | \
9681
 
    export_symbols_cmds | \
9682
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9683
 
    postinstall_cmds | postuninstall_cmds | \
9684
 
    old_postinstall_cmds | old_postuninstall_cmds | \
9685
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9686
 
      # Double-quote double-evaled strings.
9687
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9688
 
      ;;
9689
 
    *)
9690
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9691
 
      ;;
9692
 
    esac
9693
 
  done
9694
 
 
9695
 
  case $lt_echo in
9696
 
  *'\$0 --fallback-echo"')
9697
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9698
 
    ;;
9699
 
  esac
9700
 
 
9701
 
cfgfile="${ofile}T"
9702
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9703
 
  $rm -f "$cfgfile"
9704
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
9705
 
echo "$as_me: creating $ofile" >&6;}
9706
 
 
9707
 
  cat <<__EOF__ >> "$cfgfile"
9708
 
#! $SHELL
9709
 
 
9710
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9711
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9712
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9713
 
#
9714
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9715
 
# Free Software Foundation, Inc.
9716
 
#
9717
 
# This file is part of GNU Libtool:
9718
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9719
 
#
9720
 
# This program is free software; you can redistribute it and/or modify
9721
 
# it under the terms of the GNU General Public License as published by
9722
 
# the Free Software Foundation; either version 2 of the License, or
9723
 
# (at your option) any later version.
9724
 
#
9725
 
# This program is distributed in the hope that it will be useful, but
9726
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9727
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9728
 
# General Public License for more details.
9729
 
#
9730
 
# You should have received a copy of the GNU General Public License
9731
 
# along with this program; if not, write to the Free Software
9732
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9733
 
#
9734
 
# As a special exception to the GNU General Public License, if you
9735
 
# distribute this file as part of a program that contains a
9736
 
# configuration script generated by Autoconf, you may include it under
9737
 
# the same distribution terms that you use for the rest of that program.
9738
 
 
9739
 
# A sed program that does not truncate output.
9740
 
SED=$lt_SED
9741
 
 
9742
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9743
 
Xsed="$SED -e 1s/^X//"
9744
 
 
9745
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
9746
 
# if CDPATH is set.
9747
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9748
 
 
9749
 
# The names of the tagged configurations supported by this script.
9750
 
available_tags=
9751
 
 
9752
 
# ### BEGIN LIBTOOL CONFIG
9753
 
 
9754
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9755
 
 
9756
 
# Shell to use when invoking shell scripts.
9757
 
SHELL=$lt_SHELL
9758
 
 
9759
 
# Whether or not to build shared libraries.
9760
 
build_libtool_libs=$enable_shared
9761
 
 
9762
 
# Whether or not to build static libraries.
9763
 
build_old_libs=$enable_static
9764
 
 
9765
 
# Whether or not to add -lc for building shared libraries.
9766
 
build_libtool_need_lc=$archive_cmds_need_lc
9767
 
 
9768
 
# Whether or not to disallow shared libs when runtime libs are static
9769
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9770
 
 
9771
 
# Whether or not to optimize for fast installation.
9772
 
fast_install=$enable_fast_install
9773
 
 
9774
 
# The host system.
9775
 
host_alias=$host_alias
9776
 
host=$host
9777
 
host_os=$host_os
9778
 
 
9779
 
# The build system.
9780
 
build_alias=$build_alias
9781
 
build=$build
9782
 
build_os=$build_os
9783
 
 
9784
 
# An echo program that does not interpret backslashes.
9785
 
echo=$lt_echo
9786
 
 
9787
 
# The archiver.
9788
 
AR=$lt_AR
9789
 
AR_FLAGS=$lt_AR_FLAGS
9790
 
 
9791
 
# A C compiler.
9792
 
LTCC=$lt_LTCC
9793
 
 
9794
 
# A language-specific compiler.
9795
 
CC=$lt_compiler
9796
 
 
9797
 
# Is the compiler the GNU C compiler?
9798
 
with_gcc=$GCC
9799
 
 
9800
 
# An ERE matcher.
9801
 
EGREP=$lt_EGREP
9802
 
 
9803
 
# The linker used to build libraries.
9804
 
LD=$lt_LD
9805
 
 
9806
 
# Whether we need hard or soft links.
9807
 
LN_S=$lt_LN_S
9808
 
 
9809
 
# A BSD-compatible nm program.
9810
 
NM=$lt_NM
9811
 
 
9812
 
# A symbol stripping program
9813
 
STRIP=$lt_STRIP
9814
 
 
9815
 
# Used to examine libraries when file_magic_cmd begins "file"
9816
 
MAGIC_CMD=$MAGIC_CMD
9817
 
 
9818
 
# Used on cygwin: DLL creation program.
9819
 
DLLTOOL="$DLLTOOL"
9820
 
 
9821
 
# Used on cygwin: object dumper.
9822
 
OBJDUMP="$OBJDUMP"
9823
 
 
9824
 
# Used on cygwin: assembler.
9825
 
AS="$AS"
9826
 
 
9827
 
# The name of the directory that contains temporary libtool files.
9828
 
objdir=$objdir
9829
 
 
9830
 
# How to create reloadable object files.
9831
 
reload_flag=$lt_reload_flag
9832
 
reload_cmds=$lt_reload_cmds
9833
 
 
9834
 
# How to pass a linker flag through the compiler.
9835
 
wl=$lt_lt_prog_compiler_wl
9836
 
 
9837
 
# Object file suffix (normally "o").
9838
 
objext="$ac_objext"
9839
 
 
9840
 
# Old archive suffix (normally "a").
9841
 
libext="$libext"
9842
 
 
9843
 
# Shared library suffix (normally ".so").
9844
 
shrext_cmds='$shrext_cmds'
9845
 
 
9846
 
# Executable file suffix (normally "").
9847
 
exeext="$exeext"
9848
 
 
9849
 
# Additional compiler flags for building library objects.
9850
 
pic_flag=$lt_lt_prog_compiler_pic
9851
 
pic_mode=$pic_mode
9852
 
 
9853
 
# What is the maximum length of a command?
9854
 
max_cmd_len=$lt_cv_sys_max_cmd_len
9855
 
 
9856
 
# Does compiler simultaneously support -c and -o options?
9857
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9858
 
 
9859
 
# Must we lock files when doing compilation?
9860
 
need_locks=$lt_need_locks
9861
 
 
9862
 
# Do we need the lib prefix for modules?
9863
 
need_lib_prefix=$need_lib_prefix
9864
 
 
9865
 
# Do we need a version for libraries?
9866
 
need_version=$need_version
9867
 
 
9868
 
# Whether dlopen is supported.
9869
 
dlopen_support=$enable_dlopen
9870
 
 
9871
 
# Whether dlopen of programs is supported.
9872
 
dlopen_self=$enable_dlopen_self
9873
 
 
9874
 
# Whether dlopen of statically linked programs is supported.
9875
 
dlopen_self_static=$enable_dlopen_self_static
9876
 
 
9877
 
# Compiler flag to prevent dynamic linking.
9878
 
link_static_flag=$lt_lt_prog_compiler_static
9879
 
 
9880
 
# Compiler flag to turn off builtin functions.
9881
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9882
 
 
9883
 
# Compiler flag to allow reflexive dlopens.
9884
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9885
 
 
9886
 
# Compiler flag to generate shared objects directly from archives.
9887
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9888
 
 
9889
 
# Compiler flag to generate thread-safe objects.
9890
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9891
 
 
9892
 
# Library versioning type.
9893
 
version_type=$version_type
9894
 
 
9895
 
# Format of library name prefix.
9896
 
libname_spec=$lt_libname_spec
9897
 
 
9898
 
# List of archive names.  First name is the real one, the rest are links.
9899
 
# The last name is the one that the linker finds with -lNAME.
9900
 
library_names_spec=$lt_library_names_spec
9901
 
 
9902
 
# The coded name of the library, if different from the real name.
9903
 
soname_spec=$lt_soname_spec
9904
 
 
9905
 
# Commands used to build and install an old-style archive.
9906
 
RANLIB=$lt_RANLIB
9907
 
old_archive_cmds=$lt_old_archive_cmds
9908
 
old_postinstall_cmds=$lt_old_postinstall_cmds
9909
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9910
 
 
9911
 
# Create an old-style archive from a shared archive.
9912
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9913
 
 
9914
 
# Create a temporary old-style archive to link instead of a shared archive.
9915
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9916
 
 
9917
 
# Commands used to build and install a shared archive.
9918
 
archive_cmds=$lt_archive_cmds
9919
 
archive_expsym_cmds=$lt_archive_expsym_cmds
9920
 
postinstall_cmds=$lt_postinstall_cmds
9921
 
postuninstall_cmds=$lt_postuninstall_cmds
9922
 
 
9923
 
# Commands used to build a loadable module (assumed same as above if empty)
9924
 
module_cmds=$lt_module_cmds
9925
 
module_expsym_cmds=$lt_module_expsym_cmds
9926
 
 
9927
 
# Commands to strip libraries.
9928
 
old_striplib=$lt_old_striplib
9929
 
striplib=$lt_striplib
9930
 
 
9931
 
# Dependencies to place before the objects being linked to create a
9932
 
# shared library.
9933
 
predep_objects=$lt_predep_objects
9934
 
 
9935
 
# Dependencies to place after the objects being linked to create a
9936
 
# shared library.
9937
 
postdep_objects=$lt_postdep_objects
9938
 
 
9939
 
# Dependencies to place before the objects being linked to create a
9940
 
# shared library.
9941
 
predeps=$lt_predeps
9942
 
 
9943
 
# Dependencies to place after the objects being linked to create a
9944
 
# shared library.
9945
 
postdeps=$lt_postdeps
9946
 
 
9947
 
# The library search path used internally by the compiler when linking
9948
 
# a shared library.
9949
 
compiler_lib_search_path=$lt_compiler_lib_search_path
9950
 
 
9951
 
# Method to check whether dependent libraries are shared objects.
9952
 
deplibs_check_method=$lt_deplibs_check_method
9953
 
 
9954
 
# Command to use when deplibs_check_method == file_magic.
9955
 
file_magic_cmd=$lt_file_magic_cmd
9956
 
 
9957
 
# Flag that allows shared libraries with undefined symbols to be built.
9958
 
allow_undefined_flag=$lt_allow_undefined_flag
9959
 
 
9960
 
# Flag that forces no undefined symbols.
9961
 
no_undefined_flag=$lt_no_undefined_flag
9962
 
 
9963
 
# Commands used to finish a libtool library installation in a directory.
9964
 
finish_cmds=$lt_finish_cmds
9965
 
 
9966
 
# Same as above, but a single script fragment to be evaled but not shown.
9967
 
finish_eval=$lt_finish_eval
9968
 
 
9969
 
# Take the output of nm and produce a listing of raw symbols and C names.
9970
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9971
 
 
9972
 
# Transform the output of nm in a proper C declaration
9973
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9974
 
 
9975
 
# Transform the output of nm in a C name address pair
9976
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9977
 
 
9978
 
# This is the shared library runtime path variable.
9979
 
runpath_var=$runpath_var
9980
 
 
9981
 
# This is the shared library path variable.
9982
 
shlibpath_var=$shlibpath_var
9983
 
 
9984
 
# Is shlibpath searched before the hard-coded library search path?
9985
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9986
 
 
9987
 
# How to hardcode a shared library path into an executable.
9988
 
hardcode_action=$hardcode_action
9989
 
 
9990
 
# Whether we should hardcode library paths into libraries.
9991
 
hardcode_into_libs=$hardcode_into_libs
9992
 
 
9993
 
# Flag to hardcode \$libdir into a binary during linking.
9994
 
# This must work even if \$libdir does not exist.
9995
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9996
 
 
9997
 
# If ld is used when linking, flag to hardcode \$libdir into
9998
 
# a binary during linking. This must work even if \$libdir does
9999
 
# not exist.
10000
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10001
 
 
10002
 
# Whether we need a single -rpath flag with a separated argument.
10003
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10004
 
 
10005
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10006
 
# resulting binary.
10007
 
hardcode_direct=$hardcode_direct
10008
 
 
10009
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10010
 
# resulting binary.
10011
 
hardcode_minus_L=$hardcode_minus_L
10012
 
 
10013
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10014
 
# the resulting binary.
10015
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10016
 
 
10017
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10018
 
# and all subsequent libraries and executables linked against it.
10019
 
hardcode_automatic=$hardcode_automatic
10020
 
 
10021
 
# Variables whose values should be saved in libtool wrapper scripts and
10022
 
# restored at relink time.
10023
 
variables_saved_for_relink="$variables_saved_for_relink"
10024
 
 
10025
 
# Whether libtool must link a program against all its dependency libraries.
10026
 
link_all_deplibs=$link_all_deplibs
10027
 
 
10028
 
# Compile-time system search path for libraries
10029
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10030
 
 
10031
 
# Run-time system search path for libraries
10032
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10033
 
 
10034
 
# Fix the shell variable \$srcfile for the compiler.
10035
 
fix_srcfile_path="$fix_srcfile_path"
10036
 
 
10037
 
# Set to yes if exported symbols are required.
10038
 
always_export_symbols=$always_export_symbols
10039
 
 
10040
 
# The commands to list exported symbols.
10041
 
export_symbols_cmds=$lt_export_symbols_cmds
10042
 
 
10043
 
# The commands to extract the exported symbol list from a shared archive.
10044
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10045
 
 
10046
 
# Symbols that should not be listed in the preloaded symbols.
10047
 
exclude_expsyms=$lt_exclude_expsyms
10048
 
 
10049
 
# Symbols that must always be exported.
10050
 
include_expsyms=$lt_include_expsyms
10051
 
 
10052
 
# ### END LIBTOOL CONFIG
10053
 
 
10054
 
__EOF__
10055
 
 
10056
 
 
10057
 
  case $host_os in
10058
 
  aix3*)
10059
 
    cat <<\EOF >> "$cfgfile"
10060
 
 
10061
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10062
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10063
 
# vanish in a puff of smoke.
10064
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10065
 
  COLLECT_NAMES=
10066
 
  export COLLECT_NAMES
10067
 
fi
10068
 
EOF
10069
 
    ;;
10070
 
  esac
10071
 
 
10072
 
  # We use sed instead of cat because bash on DJGPP gets confused if
10073
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10074
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
10075
 
  # is reportedly fixed, but why not run on old versions too?
10076
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10077
 
 
10078
 
  mv -f "$cfgfile" "$ofile" || \
10079
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10080
 
  chmod +x "$ofile"
10081
 
 
10082
 
else
10083
 
  # If there is no Makefile yet, we rely on a make rule to execute
10084
 
  # `config.status --recheck' to rerun these tests and create the
10085
 
  # libtool script then.
10086
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10087
 
  if test -f "$ltmain_in"; then
10088
 
    test -f Makefile && make "$ltmain"
10089
 
  fi
10090
 
fi
10091
 
 
10092
 
 
10093
 
ac_ext=c
10094
 
ac_cpp='$CPP $CPPFLAGS'
10095
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10096
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10097
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10098
 
 
10099
 
CC="$lt_save_CC"
10100
 
 
10101
 
 
10102
 
# Check whether --with-tags or --without-tags was given.
10103
 
if test "${with_tags+set}" = set; then
10104
 
  withval="$with_tags"
10105
 
  tagnames="$withval"
10106
 
fi;
10107
 
 
10108
 
if test -f "$ltmain" && test -n "$tagnames"; then
10109
 
  if test ! -f "${ofile}"; then
10110
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10111
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10112
 
  fi
10113
 
 
10114
 
  if test -z "$LTCC"; then
10115
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10116
 
    if test -z "$LTCC"; then
10117
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10118
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10119
 
    else
10120
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10121
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10122
 
    fi
10123
 
  fi
10124
 
 
10125
 
  # Extract list of available tagged configurations in $ofile.
10126
 
  # Note that this assumes the entire list is on one line.
10127
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10128
 
 
10129
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10130
 
  for tagname in $tagnames; do
10131
 
    IFS="$lt_save_ifs"
10132
 
    # Check whether tagname contains only valid characters
10133
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10134
 
    "") ;;
10135
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10136
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10137
 
   { (exit 1); exit 1; }; }
10138
 
        ;;
10139
 
    esac
10140
 
 
10141
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10142
 
    then
10143
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10144
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10145
 
   { (exit 1); exit 1; }; }
10146
 
    fi
10147
 
 
10148
 
    # Update the list of available tags.
10149
 
    if test -n "$tagname"; then
10150
 
      echo appending configuration tag \"$tagname\" to $ofile
10151
 
 
10152
 
      case $tagname in
10153
 
      CXX)
10154
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10155
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10156
 
            (test "X$CXX" != "Xg++"))) ; then
10157
 
          ac_ext=cc
10158
 
ac_cpp='$CXXCPP $CPPFLAGS'
10159
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10162
 
 
10163
 
 
10164
 
 
10165
 
 
10166
 
archive_cmds_need_lc_CXX=no
10167
 
allow_undefined_flag_CXX=
10168
 
always_export_symbols_CXX=no
10169
 
archive_expsym_cmds_CXX=
10170
 
export_dynamic_flag_spec_CXX=
10171
 
hardcode_direct_CXX=no
10172
 
hardcode_libdir_flag_spec_CXX=
10173
 
hardcode_libdir_flag_spec_ld_CXX=
10174
 
hardcode_libdir_separator_CXX=
10175
 
hardcode_minus_L_CXX=no
10176
 
hardcode_automatic_CXX=no
10177
 
module_cmds_CXX=
10178
 
module_expsym_cmds_CXX=
10179
 
link_all_deplibs_CXX=unknown
10180
 
old_archive_cmds_CXX=$old_archive_cmds
10181
 
no_undefined_flag_CXX=
10182
 
whole_archive_flag_spec_CXX=
10183
 
enable_shared_with_static_runtimes_CXX=no
10184
 
 
10185
 
# Dependencies to place before and after the object being linked:
10186
 
predep_objects_CXX=
10187
 
postdep_objects_CXX=
10188
 
predeps_CXX=
10189
 
postdeps_CXX=
10190
 
compiler_lib_search_path_CXX=
10191
 
 
10192
 
# Source file extension for C++ test sources.
10193
 
ac_ext=cc
10194
 
 
10195
 
# Object file extension for compiled C++ test sources.
10196
 
objext=o
10197
 
objext_CXX=$objext
10198
 
 
10199
 
# Code to be used in simple compile tests
10200
 
lt_simple_compile_test_code="int some_variable = 0;\n"
10201
 
 
10202
 
# Code to be used in simple link tests
10203
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10204
 
 
10205
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10206
 
 
10207
 
# If no C compiler was specified, use CC.
10208
 
LTCC=${LTCC-"$CC"}
10209
 
 
10210
 
# Allow CC to be a program name with arguments.
10211
 
compiler=$CC
10212
 
 
10213
 
 
10214
 
# save warnings/boilerplate of simple test code
10215
 
ac_outfile=conftest.$ac_objext
10216
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10217
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10218
 
_lt_compiler_boilerplate=`cat conftest.err`
10219
 
$rm conftest*
10220
 
 
10221
 
ac_outfile=conftest.$ac_objext
10222
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10223
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10224
 
_lt_linker_boilerplate=`cat conftest.err`
10225
 
$rm conftest*
10226
 
 
10227
 
 
10228
 
# Allow CC to be a program name with arguments.
10229
 
lt_save_CC=$CC
10230
 
lt_save_LD=$LD
10231
 
lt_save_GCC=$GCC
10232
 
GCC=$GXX
10233
 
lt_save_with_gnu_ld=$with_gnu_ld
10234
 
lt_save_path_LD=$lt_cv_path_LD
10235
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10236
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10237
 
else
10238
 
  unset lt_cv_prog_gnu_ld
10239
 
fi
10240
 
if test -n "${lt_cv_path_LDCXX+set}"; then
10241
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
10242
 
else
10243
 
  unset lt_cv_path_LD
10244
 
fi
10245
 
test -z "${LDCXX+set}" || LD=$LDCXX
10246
 
CC=${CXX-"c++"}
10247
 
compiler=$CC
10248
 
compiler_CXX=$CC
10249
 
for cc_temp in $compiler""; do
10250
 
  case $cc_temp in
10251
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10252
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10253
 
    \-*) ;;
10254
 
    *) break;;
10255
 
  esac
10256
 
done
10257
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10258
 
 
10259
 
 
10260
 
# We don't want -fno-exception wen compiling C++ code, so set the
10261
 
# no_builtin_flag separately
10262
 
if test "$GXX" = yes; then
10263
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10264
 
else
10265
 
  lt_prog_compiler_no_builtin_flag_CXX=
10266
 
fi
10267
 
 
10268
 
if test "$GXX" = yes; then
10269
 
  # Set up default GNU C++ configuration
10270
 
 
10271
 
 
10272
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10273
 
if test "${with_gnu_ld+set}" = set; then
10274
 
  withval="$with_gnu_ld"
10275
 
  test "$withval" = no || with_gnu_ld=yes
10276
 
else
10277
 
  with_gnu_ld=no
10278
 
fi;
10279
 
ac_prog=ld
10280
 
if test "$GCC" = yes; then
10281
 
  # Check if gcc -print-prog-name=ld gives a path.
10282
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10283
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10284
 
  case $host in
10285
 
  *-*-mingw*)
10286
 
    # gcc leaves a trailing carriage return which upsets mingw
10287
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10288
 
  *)
10289
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10290
 
  esac
10291
 
  case $ac_prog in
10292
 
    # Accept absolute paths.
10293
 
    [\\/]* | ?:[\\/]*)
10294
 
      re_direlt='/[^/][^/]*/\.\./'
10295
 
      # Canonicalize the pathname of ld
10296
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10297
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10298
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10299
 
      done
10300
 
      test -z "$LD" && LD="$ac_prog"
10301
 
      ;;
10302
 
  "")
10303
 
    # If it fails, then pretend we aren't using GCC.
10304
 
    ac_prog=ld
10305
 
    ;;
10306
 
  *)
10307
 
    # If it is relative, then search for the first ld in PATH.
10308
 
    with_gnu_ld=unknown
10309
 
    ;;
10310
 
  esac
10311
 
elif test "$with_gnu_ld" = yes; then
10312
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
10313
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10314
 
else
10315
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10316
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10317
 
fi
10318
 
if test "${lt_cv_path_LD+set}" = set; then
10319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10320
 
else
10321
 
  if test -z "$LD"; then
10322
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10323
 
  for ac_dir in $PATH; do
10324
 
    IFS="$lt_save_ifs"
10325
 
    test -z "$ac_dir" && ac_dir=.
10326
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10327
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
10328
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
10329
 
      # but apparently some GNU ld's only accept -v.
10330
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
10331
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10332
 
      *GNU* | *'with BFD'*)
10333
 
        test "$with_gnu_ld" != no && break
10334
 
        ;;
10335
 
      *)
10336
 
        test "$with_gnu_ld" != yes && break
10337
 
        ;;
10338
 
      esac
10339
 
    fi
10340
 
  done
10341
 
  IFS="$lt_save_ifs"
10342
 
else
10343
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10344
 
fi
10345
 
fi
10346
 
 
10347
 
LD="$lt_cv_path_LD"
10348
 
if test -n "$LD"; then
10349
 
  echo "$as_me:$LINENO: result: $LD" >&5
10350
 
echo "${ECHO_T}$LD" >&6
10351
 
else
10352
 
  echo "$as_me:$LINENO: result: no" >&5
10353
 
echo "${ECHO_T}no" >&6
10354
 
fi
10355
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10356
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10357
 
   { (exit 1); exit 1; }; }
10358
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10359
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10360
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10362
 
else
10363
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10364
 
case `$LD -v 2>&1 </dev/null` in
10365
 
*GNU* | *'with BFD'*)
10366
 
  lt_cv_prog_gnu_ld=yes
10367
 
  ;;
10368
 
*)
10369
 
  lt_cv_prog_gnu_ld=no
10370
 
  ;;
10371
 
esac
10372
 
fi
10373
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10374
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10375
 
with_gnu_ld=$lt_cv_prog_gnu_ld
10376
 
 
10377
 
 
10378
 
 
10379
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10380
 
  # archiving commands below assume that GNU ld is being used.
10381
 
  if test "$with_gnu_ld" = yes; then
10382
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10383
 
    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'
10384
 
 
10385
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10386
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10387
 
 
10388
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
10389
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10390
 
    #     investigate it a little bit more. (MM)
10391
 
    wlarc='${wl}'
10392
 
 
10393
 
    # ancient GNU ld didn't support --whole-archive et. al.
10394
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10395
 
        grep 'no-whole-archive' > /dev/null; then
10396
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10397
 
    else
10398
 
      whole_archive_flag_spec_CXX=
10399
 
    fi
10400
 
  else
10401
 
    with_gnu_ld=no
10402
 
    wlarc=
10403
 
 
10404
 
    # A generic and very simple default shared library creation
10405
 
    # command for GNU C++ for the case where it uses the native
10406
 
    # linker, instead of GNU ld.  If possible, this setting should
10407
 
    # overridden to take advantage of the native linker features on
10408
 
    # the platform it is being used on.
10409
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10410
 
  fi
10411
 
 
10412
 
  # Commands to make compiler produce verbose output that lists
10413
 
  # what "hidden" libraries, object files and flags are used when
10414
 
  # linking a shared library.
10415
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10416
 
 
10417
 
else
10418
 
  GXX=no
10419
 
  with_gnu_ld=no
10420
 
  wlarc=
10421
 
fi
10422
 
 
10423
 
# PORTME: fill in a description of your system's C++ link characteristics
10424
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10425
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10426
 
ld_shlibs_CXX=yes
10427
 
case $host_os in
10428
 
  aix3*)
10429
 
    # FIXME: insert proper C++ library support
10430
 
    ld_shlibs_CXX=no
10431
 
    ;;
10432
 
  aix4* | aix5*)
10433
 
    if test "$host_cpu" = ia64; then
10434
 
      # On IA64, the linker does run time linking by default, so we don't
10435
 
      # have to do anything special.
10436
 
      aix_use_runtimelinking=no
10437
 
      exp_sym_flag='-Bexport'
10438
 
      no_entry_flag=""
10439
 
    else
10440
 
      aix_use_runtimelinking=no
10441
 
 
10442
 
      # Test if we are trying to use run time linking or normal
10443
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10444
 
      # need to do runtime linking.
10445
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10446
 
        for ld_flag in $LDFLAGS; do
10447
 
          case $ld_flag in
10448
 
          *-brtl*)
10449
 
            aix_use_runtimelinking=yes
10450
 
            break
10451
 
            ;;
10452
 
          esac
10453
 
        done
10454
 
      esac
10455
 
 
10456
 
      exp_sym_flag='-bexport'
10457
 
      no_entry_flag='-bnoentry'
10458
 
    fi
10459
 
 
10460
 
    # When large executables or shared objects are built, AIX ld can
10461
 
    # have problems creating the table of contents.  If linking a library
10462
 
    # or program results in "error TOC overflow" add -mminimal-toc to
10463
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10464
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10465
 
 
10466
 
    archive_cmds_CXX=''
10467
 
    hardcode_direct_CXX=yes
10468
 
    hardcode_libdir_separator_CXX=':'
10469
 
    link_all_deplibs_CXX=yes
10470
 
 
10471
 
    if test "$GXX" = yes; then
10472
 
      case $host_os in aix4.[012]|aix4.[012].*)
10473
 
      # We only want to do this on AIX 4.2 and lower, the check
10474
 
      # below for broken collect2 doesn't work under 4.3+
10475
 
        collect2name=`${CC} -print-prog-name=collect2`
10476
 
        if test -f "$collect2name" && \
10477
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10478
 
        then
10479
 
          # We have reworked collect2
10480
 
          hardcode_direct_CXX=yes
10481
 
        else
10482
 
          # We have old collect2
10483
 
          hardcode_direct_CXX=unsupported
10484
 
          # It fails to find uninstalled libraries when the uninstalled
10485
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
10486
 
          # to unsupported forces relinking
10487
 
          hardcode_minus_L_CXX=yes
10488
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10489
 
          hardcode_libdir_separator_CXX=
10490
 
        fi
10491
 
      esac
10492
 
      shared_flag='-shared'
10493
 
      if test "$aix_use_runtimelinking" = yes; then
10494
 
        shared_flag="$shared_flag "'${wl}-G'
10495
 
      fi
10496
 
    else
10497
 
      # not using gcc
10498
 
      if test "$host_cpu" = ia64; then
10499
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10500
 
        # chokes on -Wl,-G. The following line is correct:
10501
 
        shared_flag='-G'
10502
 
      else
10503
 
        if test "$aix_use_runtimelinking" = yes; then
10504
 
          shared_flag='${wl}-G'
10505
 
        else
10506
 
          shared_flag='${wl}-bM:SRE'
10507
 
        fi
10508
 
      fi
10509
 
    fi
10510
 
 
10511
 
    # It seems that -bexpall does not export symbols beginning with
10512
 
    # underscore (_), so it is better to generate a list of symbols to export.
10513
 
    always_export_symbols_CXX=yes
10514
 
    if test "$aix_use_runtimelinking" = yes; then
10515
 
      # Warning - without using the other runtime loading flags (-brtl),
10516
 
      # -berok will link without error, but may produce a broken library.
10517
 
      allow_undefined_flag_CXX='-berok'
10518
 
      # Determine the default libpath from the value encoded in an empty executable.
10519
 
      cat >conftest.$ac_ext <<_ACEOF
10520
 
/* confdefs.h.  */
10521
 
_ACEOF
10522
 
cat confdefs.h >>conftest.$ac_ext
10523
 
cat >>conftest.$ac_ext <<_ACEOF
10524
 
/* end confdefs.h.  */
10525
 
 
10526
 
int
10527
 
main ()
10528
 
{
10529
 
 
10530
 
  ;
10531
 
  return 0;
10532
 
}
10533
 
_ACEOF
10534
 
rm -f conftest.$ac_objext conftest$ac_exeext
10535
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536
 
  (eval $ac_link) 2>conftest.er1
10537
 
  ac_status=$?
10538
 
  grep -v '^ *+' conftest.er1 >conftest.err
10539
 
  rm -f conftest.er1
10540
 
  cat conftest.err >&5
10541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542
 
  (exit $ac_status); } &&
10543
 
         { ac_try='test -z "$ac_cxx_werror_flag"
10544
 
                         || test ! -s conftest.err'
10545
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546
 
  (eval $ac_try) 2>&5
10547
 
  ac_status=$?
10548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549
 
  (exit $ac_status); }; } &&
10550
 
         { ac_try='test -s conftest$ac_exeext'
10551
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552
 
  (eval $ac_try) 2>&5
10553
 
  ac_status=$?
10554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
 
  (exit $ac_status); }; }; then
10556
 
 
10557
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10558
 
}'`
10559
 
# Check for a 64-bit object if we didn't find anything.
10560
 
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; }
10561
 
}'`; fi
10562
 
else
10563
 
  echo "$as_me: failed program was:" >&5
10564
 
sed 's/^/| /' conftest.$ac_ext >&5
10565
 
 
10566
 
fi
10567
 
rm -f conftest.err conftest.$ac_objext \
10568
 
      conftest$ac_exeext conftest.$ac_ext
10569
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10570
 
 
10571
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10572
 
 
10573
 
      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"
10574
 
     else
10575
 
      if test "$host_cpu" = ia64; then
10576
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10577
 
        allow_undefined_flag_CXX="-z nodefs"
10578
 
        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"
10579
 
      else
10580
 
        # Determine the default libpath from the value encoded in an empty executable.
10581
 
        cat >conftest.$ac_ext <<_ACEOF
10582
 
/* confdefs.h.  */
10583
 
_ACEOF
10584
 
cat confdefs.h >>conftest.$ac_ext
10585
 
cat >>conftest.$ac_ext <<_ACEOF
10586
 
/* end confdefs.h.  */
10587
 
 
10588
 
int
10589
 
main ()
10590
 
{
10591
 
 
10592
 
  ;
10593
 
  return 0;
10594
 
}
10595
 
_ACEOF
10596
 
rm -f conftest.$ac_objext conftest$ac_exeext
10597
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598
 
  (eval $ac_link) 2>conftest.er1
10599
 
  ac_status=$?
10600
 
  grep -v '^ *+' conftest.er1 >conftest.err
10601
 
  rm -f conftest.er1
10602
 
  cat conftest.err >&5
10603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604
 
  (exit $ac_status); } &&
10605
 
         { ac_try='test -z "$ac_cxx_werror_flag"
10606
 
                         || test ! -s conftest.err'
10607
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608
 
  (eval $ac_try) 2>&5
10609
 
  ac_status=$?
10610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
 
  (exit $ac_status); }; } &&
10612
 
         { ac_try='test -s conftest$ac_exeext'
10613
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614
 
  (eval $ac_try) 2>&5
10615
 
  ac_status=$?
10616
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617
 
  (exit $ac_status); }; }; then
10618
 
 
10619
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10620
 
}'`
10621
 
# Check for a 64-bit object if we didn't find anything.
10622
 
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; }
10623
 
}'`; fi
10624
 
else
10625
 
  echo "$as_me: failed program was:" >&5
10626
 
sed 's/^/| /' conftest.$ac_ext >&5
10627
 
 
10628
 
fi
10629
 
rm -f conftest.err conftest.$ac_objext \
10630
 
      conftest$ac_exeext conftest.$ac_ext
10631
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10632
 
 
10633
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10634
 
        # Warning - without using the other run time loading flags,
10635
 
        # -berok will link without error, but may produce a broken library.
10636
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
10637
 
        allow_undefined_flag_CXX=' ${wl}-berok'
10638
 
        # -bexpall does not export symbols beginning with underscore (_)
10639
 
        always_export_symbols_CXX=yes
10640
 
        # Exported symbols can be pulled into shared objects from archives
10641
 
        whole_archive_flag_spec_CXX=' '
10642
 
        archive_cmds_need_lc_CXX=yes
10643
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10644
 
        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'
10645
 
      fi
10646
 
    fi
10647
 
    ;;
10648
 
  chorus*)
10649
 
    case $cc_basename in
10650
 
      *)
10651
 
        # FIXME: insert proper C++ library support
10652
 
        ld_shlibs_CXX=no
10653
 
        ;;
10654
 
    esac
10655
 
    ;;
10656
 
 
10657
 
 
10658
 
  cygwin* | mingw* | pw32*)
10659
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10660
 
    # as there is no search path for DLLs.
10661
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10662
 
    allow_undefined_flag_CXX=unsupported
10663
 
    always_export_symbols_CXX=no
10664
 
    enable_shared_with_static_runtimes_CXX=yes
10665
 
 
10666
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10667
 
      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'
10668
 
      # If the export-symbols file already is a .def file (1st line
10669
 
      # is EXPORTS), use it as is; otherwise, prepend...
10670
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10671
 
        cp $export_symbols $output_objdir/$soname.def;
10672
 
      else
10673
 
        echo EXPORTS > $output_objdir/$soname.def;
10674
 
        cat $export_symbols >> $output_objdir/$soname.def;
10675
 
      fi~
10676
 
      $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'
10677
 
    else
10678
 
      ld_shlibs_CXX=no
10679
 
    fi
10680
 
  ;;
10681
 
      darwin* | rhapsody*)
10682
 
        case "$host_os" in
10683
 
        rhapsody* | darwin1.[012])
10684
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10685
 
         ;;
10686
 
       *) # Darwin 1.3 on
10687
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10688
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10689
 
         else
10690
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
10691
 
             10.[012])
10692
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10693
 
               ;;
10694
 
             10.*)
10695
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10696
 
               ;;
10697
 
           esac
10698
 
         fi
10699
 
         ;;
10700
 
        esac
10701
 
      archive_cmds_need_lc_CXX=no
10702
 
      hardcode_direct_CXX=no
10703
 
      hardcode_automatic_CXX=yes
10704
 
      hardcode_shlibpath_var_CXX=unsupported
10705
 
      whole_archive_flag_spec_CXX=''
10706
 
      link_all_deplibs_CXX=yes
10707
 
 
10708
 
    if test "$GXX" = yes ; then
10709
 
      lt_int_apple_cc_single_mod=no
10710
 
      output_verbose_link_cmd='echo'
10711
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10712
 
       lt_int_apple_cc_single_mod=yes
10713
 
      fi
10714
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10715
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10716
 
      else
10717
 
          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'
10718
 
        fi
10719
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10720
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10721
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10722
 
            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}'
10723
 
          else
10724
 
            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}'
10725
 
          fi
10726
 
            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}'
10727
 
      else
10728
 
      case $cc_basename in
10729
 
        xlc*)
10730
 
         output_verbose_link_cmd='echo'
10731
 
          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'
10732
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10733
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10734
 
          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}'
10735
 
          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}'
10736
 
          ;;
10737
 
       *)
10738
 
         ld_shlibs_CXX=no
10739
 
          ;;
10740
 
      esac
10741
 
      fi
10742
 
        ;;
10743
 
 
10744
 
  dgux*)
10745
 
    case $cc_basename in
10746
 
      ec++*)
10747
 
        # FIXME: insert proper C++ library support
10748
 
        ld_shlibs_CXX=no
10749
 
        ;;
10750
 
      ghcx*)
10751
 
        # Green Hills C++ Compiler
10752
 
        # FIXME: insert proper C++ library support
10753
 
        ld_shlibs_CXX=no
10754
 
        ;;
10755
 
      *)
10756
 
        # FIXME: insert proper C++ library support
10757
 
        ld_shlibs_CXX=no
10758
 
        ;;
10759
 
    esac
10760
 
    ;;
10761
 
  freebsd[12]*)
10762
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
10763
 
    ld_shlibs_CXX=no
10764
 
    ;;
10765
 
  freebsd-elf*)
10766
 
    archive_cmds_need_lc_CXX=no
10767
 
    ;;
10768
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
10769
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10770
 
    # conventions
10771
 
    ld_shlibs_CXX=yes
10772
 
    ;;
10773
 
  gnu*)
10774
 
    ;;
10775
 
  hpux9*)
10776
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10777
 
    hardcode_libdir_separator_CXX=:
10778
 
    export_dynamic_flag_spec_CXX='${wl}-E'
10779
 
    hardcode_direct_CXX=yes
10780
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10781
 
                                # but as the default
10782
 
                                # location of the library.
10783
 
 
10784
 
    case $cc_basename in
10785
 
    CC*)
10786
 
      # FIXME: insert proper C++ library support
10787
 
      ld_shlibs_CXX=no
10788
 
      ;;
10789
 
    aCC*)
10790
 
      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'
10791
 
      # Commands to make compiler produce verbose output that lists
10792
 
      # what "hidden" libraries, object files and flags are used when
10793
 
      # linking a shared library.
10794
 
      #
10795
 
      # There doesn't appear to be a way to prevent this compiler from
10796
 
      # explicitly linking system object files so we need to strip them
10797
 
      # from the output so that they don't get included in the library
10798
 
      # dependencies.
10799
 
      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'
10800
 
      ;;
10801
 
    *)
10802
 
      if test "$GXX" = yes; then
10803
 
        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'
10804
 
      else
10805
 
        # FIXME: insert proper C++ library support
10806
 
        ld_shlibs_CXX=no
10807
 
      fi
10808
 
      ;;
10809
 
    esac
10810
 
    ;;
10811
 
  hpux10*|hpux11*)
10812
 
    if test $with_gnu_ld = no; then
10813
 
      case "$host_cpu" in
10814
 
      hppa*64*)
10815
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10816
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10817
 
        hardcode_libdir_separator_CXX=:
10818
 
        ;;
10819
 
      ia64*)
10820
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10821
 
        ;;
10822
 
      *)
10823
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10824
 
        hardcode_libdir_separator_CXX=:
10825
 
        export_dynamic_flag_spec_CXX='${wl}-E'
10826
 
        ;;
10827
 
      esac
10828
 
    fi
10829
 
    case "$host_cpu" in
10830
 
    hppa*64*)
10831
 
      hardcode_direct_CXX=no
10832
 
      hardcode_shlibpath_var_CXX=no
10833
 
      ;;
10834
 
    ia64*)
10835
 
      hardcode_direct_CXX=no
10836
 
      hardcode_shlibpath_var_CXX=no
10837
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10838
 
                                              # but as the default
10839
 
                                              # location of the library.
10840
 
      ;;
10841
 
    *)
10842
 
      hardcode_direct_CXX=yes
10843
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10844
 
                                              # but as the default
10845
 
                                              # location of the library.
10846
 
      ;;
10847
 
    esac
10848
 
 
10849
 
    case $cc_basename in
10850
 
      CC*)
10851
 
        # FIXME: insert proper C++ library support
10852
 
        ld_shlibs_CXX=no
10853
 
        ;;
10854
 
      aCC*)
10855
 
        case "$host_cpu" in
10856
 
        hppa*64*|ia64*)
10857
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10858
 
          ;;
10859
 
        *)
10860
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10861
 
          ;;
10862
 
        esac
10863
 
        # Commands to make compiler produce verbose output that lists
10864
 
        # what "hidden" libraries, object files and flags are used when
10865
 
        # linking a shared library.
10866
 
        #
10867
 
        # There doesn't appear to be a way to prevent this compiler from
10868
 
        # explicitly linking system object files so we need to strip them
10869
 
        # from the output so that they don't get included in the library
10870
 
        # dependencies.
10871
 
        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'
10872
 
        ;;
10873
 
      *)
10874
 
        if test "$GXX" = yes; then
10875
 
          if test $with_gnu_ld = no; then
10876
 
            case "$host_cpu" in
10877
 
            ia64*|hppa*64*)
10878
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10879
 
              ;;
10880
 
            *)
10881
 
              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'
10882
 
              ;;
10883
 
            esac
10884
 
          fi
10885
 
        else
10886
 
          # FIXME: insert proper C++ library support
10887
 
          ld_shlibs_CXX=no
10888
 
        fi
10889
 
        ;;
10890
 
    esac
10891
 
    ;;
10892
 
  irix5* | irix6*)
10893
 
    case $cc_basename in
10894
 
      CC*)
10895
 
        # SGI C++
10896
 
        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 ${output_objdir}/so_locations -o $lib'
10897
 
 
10898
 
        # Archives containing C++ object files must be created using
10899
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10900
 
        # necessary to make sure instantiated templates are included
10901
 
        # in the archive.
10902
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10903
 
        ;;
10904
 
      *)
10905
 
        if test "$GXX" = yes; then
10906
 
          if test "$with_gnu_ld" = no; then
10907
 
            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}${output_objdir}/so_locations -o $lib'
10908
 
          else
10909
 
            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'
10910
 
          fi
10911
 
        fi
10912
 
        link_all_deplibs_CXX=yes
10913
 
        ;;
10914
 
    esac
10915
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10916
 
    hardcode_libdir_separator_CXX=:
10917
 
    ;;
10918
 
  linux*)
10919
 
    case $cc_basename in
10920
 
      KCC*)
10921
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10922
 
 
10923
 
        # KCC will only create a shared library if the output file
10924
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10925
 
        # to its proper name (with version) after linking.
10926
 
        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'
10927
 
        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'
10928
 
        # Commands to make compiler produce verbose output that lists
10929
 
        # what "hidden" libraries, object files and flags are used when
10930
 
        # linking a shared library.
10931
 
        #
10932
 
        # There doesn't appear to be a way to prevent this compiler from
10933
 
        # explicitly linking system object files so we need to strip them
10934
 
        # from the output so that they don't get included in the library
10935
 
        # dependencies.
10936
 
        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'
10937
 
 
10938
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10939
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10940
 
 
10941
 
        # Archives containing C++ object files must be created using
10942
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10943
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10944
 
        ;;
10945
 
      icpc*)
10946
 
        # Intel C++
10947
 
        with_gnu_ld=yes
10948
 
        # version 8.0 and above of icpc choke on multiply defined symbols
10949
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
10950
 
        # earlier do not add the objects themselves.
10951
 
        case `$CC -V 2>&1` in
10952
 
        *"Version 7."*)
10953
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10954
 
          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'
10955
 
          ;;
10956
 
        *)  # Version 8.0 or newer
10957
 
          tmp_idyn=
10958
 
          case $host_cpu in
10959
 
            ia64*) tmp_idyn=' -i_dynamic';;
10960
 
          esac
10961
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10962
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10963
 
          ;;
10964
 
        esac
10965
 
        archive_cmds_need_lc_CXX=no
10966
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10967
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10968
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10969
 
        ;;
10970
 
      pgCC*)
10971
 
        # Portland Group C++ compiler
10972
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10973
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10974
 
 
10975
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10976
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10977
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10978
 
        ;;
10979
 
      cxx*)
10980
 
        # Compaq C++
10981
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10982
 
        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'
10983
 
 
10984
 
        runpath_var=LD_RUN_PATH
10985
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10986
 
        hardcode_libdir_separator_CXX=:
10987
 
 
10988
 
        # Commands to make compiler produce verbose output that lists
10989
 
        # what "hidden" libraries, object files and flags are used when
10990
 
        # linking a shared library.
10991
 
        #
10992
 
        # There doesn't appear to be a way to prevent this compiler from
10993
 
        # explicitly linking system object files so we need to strip them
10994
 
        # from the output so that they don't get included in the library
10995
 
        # dependencies.
10996
 
        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'
10997
 
        ;;
10998
 
    esac
10999
 
    ;;
11000
 
  lynxos*)
11001
 
    # FIXME: insert proper C++ library support
11002
 
    ld_shlibs_CXX=no
11003
 
    ;;
11004
 
  m88k*)
11005
 
    # FIXME: insert proper C++ library support
11006
 
    ld_shlibs_CXX=no
11007
 
    ;;
11008
 
  mvs*)
11009
 
    case $cc_basename in
11010
 
      cxx*)
11011
 
        # FIXME: insert proper C++ library support
11012
 
        ld_shlibs_CXX=no
11013
 
        ;;
11014
 
      *)
11015
 
        # FIXME: insert proper C++ library support
11016
 
        ld_shlibs_CXX=no
11017
 
        ;;
11018
 
    esac
11019
 
    ;;
11020
 
  netbsd*)
11021
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11022
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11023
 
      wlarc=
11024
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11025
 
      hardcode_direct_CXX=yes
11026
 
      hardcode_shlibpath_var_CXX=no
11027
 
    fi
11028
 
    # Workaround some broken pre-1.5 toolchains
11029
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11030
 
    ;;
11031
 
  openbsd2*)
11032
 
    # C++ shared libraries are fairly broken
11033
 
    ld_shlibs_CXX=no
11034
 
    ;;
11035
 
  openbsd*)
11036
 
    hardcode_direct_CXX=yes
11037
 
    hardcode_shlibpath_var_CXX=no
11038
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11039
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11040
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11041
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11042
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11043
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11044
 
    fi
11045
 
    output_verbose_link_cmd='echo'
11046
 
    ;;
11047
 
  osf3*)
11048
 
    case $cc_basename in
11049
 
      KCC*)
11050
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11051
 
 
11052
 
        # KCC will only create a shared library if the output file
11053
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11054
 
        # to its proper name (with version) after linking.
11055
 
        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'
11056
 
 
11057
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11058
 
        hardcode_libdir_separator_CXX=:
11059
 
 
11060
 
        # Archives containing C++ object files must be created using
11061
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11062
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11063
 
 
11064
 
        ;;
11065
 
      RCC*)
11066
 
        # Rational C++ 2.4.1
11067
 
        # FIXME: insert proper C++ library support
11068
 
        ld_shlibs_CXX=no
11069
 
        ;;
11070
 
      cxx*)
11071
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11072
 
        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 ${output_objdir}/so_locations -o $lib'
11073
 
 
11074
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11075
 
        hardcode_libdir_separator_CXX=:
11076
 
 
11077
 
        # Commands to make compiler produce verbose output that lists
11078
 
        # what "hidden" libraries, object files and flags are used when
11079
 
        # linking a shared library.
11080
 
        #
11081
 
        # There doesn't appear to be a way to prevent this compiler from
11082
 
        # explicitly linking system object files so we need to strip them
11083
 
        # from the output so that they don't get included in the library
11084
 
        # dependencies.
11085
 
        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'
11086
 
        ;;
11087
 
      *)
11088
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11089
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11090
 
          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}${output_objdir}/so_locations -o $lib'
11091
 
 
11092
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11093
 
          hardcode_libdir_separator_CXX=:
11094
 
 
11095
 
          # Commands to make compiler produce verbose output that lists
11096
 
          # what "hidden" libraries, object files and flags are used when
11097
 
          # linking a shared library.
11098
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11099
 
 
11100
 
        else
11101
 
          # FIXME: insert proper C++ library support
11102
 
          ld_shlibs_CXX=no
11103
 
        fi
11104
 
        ;;
11105
 
    esac
11106
 
    ;;
11107
 
  osf4* | osf5*)
11108
 
    case $cc_basename in
11109
 
      KCC*)
11110
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11111
 
 
11112
 
        # KCC will only create a shared library if the output file
11113
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11114
 
        # to its proper name (with version) after linking.
11115
 
        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'
11116
 
 
11117
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11118
 
        hardcode_libdir_separator_CXX=:
11119
 
 
11120
 
        # Archives containing C++ object files must be created using
11121
 
        # the KAI C++ compiler.
11122
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11123
 
        ;;
11124
 
      RCC*)
11125
 
        # Rational C++ 2.4.1
11126
 
        # FIXME: insert proper C++ library support
11127
 
        ld_shlibs_CXX=no
11128
 
        ;;
11129
 
      cxx*)
11130
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11131
 
        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 ${output_objdir}/so_locations -o $lib'
11132
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11133
 
          echo "-hidden">> $lib.exp~
11134
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11135
 
          $rm $lib.exp'
11136
 
 
11137
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11138
 
        hardcode_libdir_separator_CXX=:
11139
 
 
11140
 
        # Commands to make compiler produce verbose output that lists
11141
 
        # what "hidden" libraries, object files and flags are used when
11142
 
        # linking a shared library.
11143
 
        #
11144
 
        # There doesn't appear to be a way to prevent this compiler from
11145
 
        # explicitly linking system object files so we need to strip them
11146
 
        # from the output so that they don't get included in the library
11147
 
        # dependencies.
11148
 
        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'
11149
 
        ;;
11150
 
      *)
11151
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11152
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11153
 
         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}${output_objdir}/so_locations -o $lib'
11154
 
 
11155
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11156
 
          hardcode_libdir_separator_CXX=:
11157
 
 
11158
 
          # Commands to make compiler produce verbose output that lists
11159
 
          # what "hidden" libraries, object files and flags are used when
11160
 
          # linking a shared library.
11161
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11162
 
 
11163
 
        else
11164
 
          # FIXME: insert proper C++ library support
11165
 
          ld_shlibs_CXX=no
11166
 
        fi
11167
 
        ;;
11168
 
    esac
11169
 
    ;;
11170
 
  psos*)
11171
 
    # FIXME: insert proper C++ library support
11172
 
    ld_shlibs_CXX=no
11173
 
    ;;
11174
 
  sco*)
11175
 
    archive_cmds_need_lc_CXX=no
11176
 
    case $cc_basename in
11177
 
      CC*)
11178
 
        # FIXME: insert proper C++ library support
11179
 
        ld_shlibs_CXX=no
11180
 
        ;;
11181
 
      *)
11182
 
        # FIXME: insert proper C++ library support
11183
 
        ld_shlibs_CXX=no
11184
 
        ;;
11185
 
    esac
11186
 
    ;;
11187
 
  sunos4*)
11188
 
    case $cc_basename in
11189
 
      CC*)
11190
 
        # Sun C++ 4.x
11191
 
        # FIXME: insert proper C++ library support
11192
 
        ld_shlibs_CXX=no
11193
 
        ;;
11194
 
      lcc*)
11195
 
        # Lucid
11196
 
        # FIXME: insert proper C++ library support
11197
 
        ld_shlibs_CXX=no
11198
 
        ;;
11199
 
      *)
11200
 
        # FIXME: insert proper C++ library support
11201
 
        ld_shlibs_CXX=no
11202
 
        ;;
11203
 
    esac
11204
 
    ;;
11205
 
  solaris*)
11206
 
    case $cc_basename in
11207
 
      CC*)
11208
 
        # Sun C++ 4.2, 5.x and Centerline C++
11209
 
        no_undefined_flag_CXX=' -zdefs'
11210
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11211
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11212
 
        $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'
11213
 
 
11214
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11215
 
        hardcode_shlibpath_var_CXX=no
11216
 
        case $host_os in
11217
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11218
 
          *)
11219
 
            # The C++ compiler is used as linker so we must use $wl
11220
 
            # flag to pass the commands to the underlying system
11221
 
            # linker. We must also pass each convience library through
11222
 
            # to the system linker between allextract/defaultextract.
11223
 
            # The C++ compiler will combine linker options so we
11224
 
            # cannot just pass the convience library names through
11225
 
            # without $wl.
11226
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11227
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11228
 
            ;;
11229
 
        esac
11230
 
        link_all_deplibs_CXX=yes
11231
 
 
11232
 
        # Commands to make compiler produce verbose output that lists
11233
 
        # what "hidden" libraries, object files and flags are used when
11234
 
        # linking a shared library.
11235
 
        #
11236
 
        # There doesn't appear to be a way to prevent this compiler from
11237
 
        # explicitly linking system object files so we need to strip them
11238
 
        # from the output so that they don't get included in the library
11239
 
        # dependencies.
11240
 
        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'
11241
 
 
11242
 
        # Archives containing C++ object files must be created using
11243
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11244
 
        # necessary to make sure instantiated templates are included
11245
 
        # in the archive.
11246
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11247
 
        ;;
11248
 
      gcx*)
11249
 
        # Green Hills C++ Compiler
11250
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11251
 
 
11252
 
        # The C++ compiler must be used to create the archive.
11253
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11254
 
        ;;
11255
 
      *)
11256
 
        # GNU C++ compiler with Solaris linker
11257
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11258
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11259
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11260
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11261
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11262
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11263
 
 
11264
 
            # Commands to make compiler produce verbose output that lists
11265
 
            # what "hidden" libraries, object files and flags are used when
11266
 
            # linking a shared library.
11267
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11268
 
          else
11269
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11270
 
            # platform.
11271
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11272
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11273
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11274
 
 
11275
 
            # Commands to make compiler produce verbose output that lists
11276
 
            # what "hidden" libraries, object files and flags are used when
11277
 
            # linking a shared library.
11278
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11279
 
          fi
11280
 
 
11281
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11282
 
        fi
11283
 
        ;;
11284
 
    esac
11285
 
    ;;
11286
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11287
 
    archive_cmds_need_lc_CXX=no
11288
 
    ;;
11289
 
  tandem*)
11290
 
    case $cc_basename in
11291
 
      NCC*)
11292
 
        # NonStop-UX NCC 3.20
11293
 
        # FIXME: insert proper C++ library support
11294
 
        ld_shlibs_CXX=no
11295
 
        ;;
11296
 
      *)
11297
 
        # FIXME: insert proper C++ library support
11298
 
        ld_shlibs_CXX=no
11299
 
        ;;
11300
 
    esac
11301
 
    ;;
11302
 
  vxworks*)
11303
 
    # FIXME: insert proper C++ library support
11304
 
    ld_shlibs_CXX=no
11305
 
    ;;
11306
 
  *)
11307
 
    # FIXME: insert proper C++ library support
11308
 
    ld_shlibs_CXX=no
11309
 
    ;;
11310
 
esac
11311
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11312
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11313
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11314
 
 
11315
 
GCC_CXX="$GXX"
11316
 
LD_CXX="$LD"
11317
 
 
11318
 
 
11319
 
cat > conftest.$ac_ext <<EOF
11320
 
class Foo
11321
 
{
11322
 
public:
11323
 
  Foo (void) { a = 0; }
11324
 
private:
11325
 
  int a;
11326
 
};
11327
 
EOF
11328
 
 
11329
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330
 
  (eval $ac_compile) 2>&5
11331
 
  ac_status=$?
11332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333
 
  (exit $ac_status); }; then
11334
 
  # Parse the compiler output and extract the necessary
11335
 
  # objects, libraries and library flags.
11336
 
 
11337
 
  # Sentinel used to keep track of whether or not we are before
11338
 
  # the conftest object file.
11339
 
  pre_test_object_deps_done=no
11340
 
 
11341
 
  # The `*' in the case matches for architectures that use `case' in
11342
 
  # $output_verbose_cmd can trigger glob expansion during the loop
11343
 
  # eval without this substitution.
11344
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11345
 
 
11346
 
  for p in `eval $output_verbose_link_cmd`; do
11347
 
    case $p in
11348
 
 
11349
 
    -L* | -R* | -l*)
11350
 
       # Some compilers place space between "-{L,R}" and the path.
11351
 
       # Remove the space.
11352
 
       if test $p = "-L" \
11353
 
          || test $p = "-R"; then
11354
 
         prev=$p
11355
 
         continue
11356
 
       else
11357
 
         prev=
11358
 
       fi
11359
 
 
11360
 
       if test "$pre_test_object_deps_done" = no; then
11361
 
         case $p in
11362
 
         -L* | -R*)
11363
 
           # Internal compiler library paths should come after those
11364
 
           # provided the user.  The postdeps already come after the
11365
 
           # user supplied libs so there is no need to process them.
11366
 
           if test -z "$compiler_lib_search_path_CXX"; then
11367
 
             compiler_lib_search_path_CXX="${prev}${p}"
11368
 
           else
11369
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11370
 
           fi
11371
 
           ;;
11372
 
         # The "-l" case would never come before the object being
11373
 
         # linked, so don't bother handling this case.
11374
 
         esac
11375
 
       else
11376
 
         if test -z "$postdeps_CXX"; then
11377
 
           postdeps_CXX="${prev}${p}"
11378
 
         else
11379
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11380
 
         fi
11381
 
       fi
11382
 
       ;;
11383
 
 
11384
 
    *.$objext)
11385
 
       # This assumes that the test object file only shows up
11386
 
       # once in the compiler output.
11387
 
       if test "$p" = "conftest.$objext"; then
11388
 
         pre_test_object_deps_done=yes
11389
 
         continue
11390
 
       fi
11391
 
 
11392
 
       if test "$pre_test_object_deps_done" = no; then
11393
 
         if test -z "$predep_objects_CXX"; then
11394
 
           predep_objects_CXX="$p"
11395
 
         else
11396
 
           predep_objects_CXX="$predep_objects_CXX $p"
11397
 
         fi
11398
 
       else
11399
 
         if test -z "$postdep_objects_CXX"; then
11400
 
           postdep_objects_CXX="$p"
11401
 
         else
11402
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
11403
 
         fi
11404
 
       fi
11405
 
       ;;
11406
 
 
11407
 
    *) ;; # Ignore the rest.
11408
 
 
11409
 
    esac
11410
 
  done
11411
 
 
11412
 
  # Clean up.
11413
 
  rm -f a.out a.exe
11414
 
else
11415
 
  echo "libtool.m4: error: problem compiling CXX test program"
11416
 
fi
11417
 
 
11418
 
$rm -f confest.$objext
11419
 
 
11420
 
case " $postdeps_CXX " in
11421
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11422
 
esac
11423
 
 
11424
 
lt_prog_compiler_wl_CXX=
11425
 
lt_prog_compiler_pic_CXX=
11426
 
lt_prog_compiler_static_CXX=
11427
 
 
11428
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11429
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11430
 
 
11431
 
  # C++ specific cases for pic, static, wl, etc.
11432
 
  if test "$GXX" = yes; then
11433
 
    lt_prog_compiler_wl_CXX='-Wl,'
11434
 
    lt_prog_compiler_static_CXX='-static'
11435
 
 
11436
 
    case $host_os in
11437
 
    aix*)
11438
 
      # All AIX code is PIC.
11439
 
      if test "$host_cpu" = ia64; then
11440
 
        # AIX 5 now supports IA64 processor
11441
 
        lt_prog_compiler_static_CXX='-Bstatic'
11442
 
      fi
11443
 
      ;;
11444
 
    amigaos*)
11445
 
      # FIXME: we need at least 68020 code to build shared libraries, but
11446
 
      # adding the `-m68020' flag to GCC prevents building anything better,
11447
 
      # like `-m68040'.
11448
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11449
 
      ;;
11450
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11451
 
      # PIC is the default for these OSes.
11452
 
      ;;
11453
 
    mingw* | os2* | pw32*)
11454
 
      # This hack is so that the source file can tell whether it is being
11455
 
      # built for inclusion in a dll (and should export symbols for example).
11456
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11457
 
      ;;
11458
 
    darwin* | rhapsody*)
11459
 
      # PIC is the default on this platform
11460
 
      # Common symbols not allowed in MH_DYLIB files
11461
 
      lt_prog_compiler_pic_CXX='-fno-common'
11462
 
      ;;
11463
 
    *djgpp*)
11464
 
      # DJGPP does not support shared libraries at all
11465
 
      lt_prog_compiler_pic_CXX=
11466
 
      ;;
11467
 
    sysv4*MP*)
11468
 
      if test -d /usr/nec; then
11469
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
11470
 
      fi
11471
 
      ;;
11472
 
    hpux*)
11473
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11474
 
      # not for PA HP-UX.
11475
 
      case "$host_cpu" in
11476
 
      hppa*64*|ia64*)
11477
 
        ;;
11478
 
      *)
11479
 
        lt_prog_compiler_pic_CXX='-fPIC'
11480
 
        ;;
11481
 
      esac
11482
 
      ;;
11483
 
    *)
11484
 
      lt_prog_compiler_pic_CXX='-fPIC'
11485
 
      ;;
11486
 
    esac
11487
 
  else
11488
 
    case $host_os in
11489
 
      aix4* | aix5*)
11490
 
        # All AIX code is PIC.
11491
 
        if test "$host_cpu" = ia64; then
11492
 
          # AIX 5 now supports IA64 processor
11493
 
          lt_prog_compiler_static_CXX='-Bstatic'
11494
 
        else
11495
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11496
 
        fi
11497
 
        ;;
11498
 
      chorus*)
11499
 
        case $cc_basename in
11500
 
        cxch68*)
11501
 
          # Green Hills C++ Compiler
11502
 
          # _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"
11503
 
          ;;
11504
 
        esac
11505
 
        ;;
11506
 
       darwin*)
11507
 
         # PIC is the default on this platform
11508
 
         # Common symbols not allowed in MH_DYLIB files
11509
 
         case $cc_basename in
11510
 
           xlc*)
11511
 
           lt_prog_compiler_pic_CXX='-qnocommon'
11512
 
           lt_prog_compiler_wl_CXX='-Wl,'
11513
 
           ;;
11514
 
         esac
11515
 
       ;;
11516
 
      dgux*)
11517
 
        case $cc_basename in
11518
 
          ec++*)
11519
 
            lt_prog_compiler_pic_CXX='-KPIC'
11520
 
            ;;
11521
 
          ghcx*)
11522
 
            # Green Hills C++ Compiler
11523
 
            lt_prog_compiler_pic_CXX='-pic'
11524
 
            ;;
11525
 
          *)
11526
 
            ;;
11527
 
        esac
11528
 
        ;;
11529
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
11530
 
        # FreeBSD uses GNU C++
11531
 
        ;;
11532
 
      hpux9* | hpux10* | hpux11*)
11533
 
        case $cc_basename in
11534
 
          CC*)
11535
 
            lt_prog_compiler_wl_CXX='-Wl,'
11536
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11537
 
            if test "$host_cpu" != ia64; then
11538
 
              lt_prog_compiler_pic_CXX='+Z'
11539
 
            fi
11540
 
            ;;
11541
 
          aCC*)
11542
 
            lt_prog_compiler_wl_CXX='-Wl,'
11543
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11544
 
            case "$host_cpu" in
11545
 
            hppa*64*|ia64*)
11546
 
              # +Z the default
11547
 
              ;;
11548
 
            *)
11549
 
              lt_prog_compiler_pic_CXX='+Z'
11550
 
              ;;
11551
 
            esac
11552
 
            ;;
11553
 
          *)
11554
 
            ;;
11555
 
        esac
11556
 
        ;;
11557
 
      irix5* | irix6* | nonstopux*)
11558
 
        case $cc_basename in
11559
 
          CC*)
11560
 
            lt_prog_compiler_wl_CXX='-Wl,'
11561
 
            lt_prog_compiler_static_CXX='-non_shared'
11562
 
            # CC pic flag -KPIC is the default.
11563
 
            ;;
11564
 
          *)
11565
 
            ;;
11566
 
        esac
11567
 
        ;;
11568
 
      linux*)
11569
 
        case $cc_basename in
11570
 
          KCC*)
11571
 
            # KAI C++ Compiler
11572
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11573
 
            lt_prog_compiler_pic_CXX='-fPIC'
11574
 
            ;;
11575
 
          icpc* | ecpc*)
11576
 
            # Intel C++
11577
 
            lt_prog_compiler_wl_CXX='-Wl,'
11578
 
            lt_prog_compiler_pic_CXX='-KPIC'
11579
 
            lt_prog_compiler_static_CXX='-static'
11580
 
            ;;
11581
 
          pgCC*)
11582
 
            # Portland Group C++ compiler.
11583
 
            lt_prog_compiler_wl_CXX='-Wl,'
11584
 
            lt_prog_compiler_pic_CXX='-fpic'
11585
 
            lt_prog_compiler_static_CXX='-static'
11586
 
            ;;
11587
 
          cxx*)
11588
 
            # Compaq C++
11589
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
11590
 
            # Linux and Compaq Tru64 Unix objects are PIC.
11591
 
            lt_prog_compiler_pic_CXX=
11592
 
            lt_prog_compiler_static_CXX='-non_shared'
11593
 
            ;;
11594
 
          *)
11595
 
            ;;
11596
 
        esac
11597
 
        ;;
11598
 
      lynxos*)
11599
 
        ;;
11600
 
      m88k*)
11601
 
        ;;
11602
 
      mvs*)
11603
 
        case $cc_basename in
11604
 
          cxx*)
11605
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
11606
 
            ;;
11607
 
          *)
11608
 
            ;;
11609
 
        esac
11610
 
        ;;
11611
 
      netbsd*)
11612
 
        ;;
11613
 
      osf3* | osf4* | osf5*)
11614
 
        case $cc_basename in
11615
 
          KCC*)
11616
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11617
 
            ;;
11618
 
          RCC*)
11619
 
            # Rational C++ 2.4.1
11620
 
            lt_prog_compiler_pic_CXX='-pic'
11621
 
            ;;
11622
 
          cxx*)
11623
 
            # Digital/Compaq C++
11624
 
            lt_prog_compiler_wl_CXX='-Wl,'
11625
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
11626
 
            # Linux and Compaq Tru64 Unix objects are PIC.
11627
 
            lt_prog_compiler_pic_CXX=
11628
 
            lt_prog_compiler_static_CXX='-non_shared'
11629
 
            ;;
11630
 
          *)
11631
 
            ;;
11632
 
        esac
11633
 
        ;;
11634
 
      psos*)
11635
 
        ;;
11636
 
      sco*)
11637
 
        case $cc_basename in
11638
 
          CC*)
11639
 
            lt_prog_compiler_pic_CXX='-fPIC'
11640
 
            ;;
11641
 
          *)
11642
 
            ;;
11643
 
        esac
11644
 
        ;;
11645
 
      solaris*)
11646
 
        case $cc_basename in
11647
 
          CC*)
11648
 
            # Sun C++ 4.2, 5.x and Centerline C++
11649
 
            lt_prog_compiler_pic_CXX='-KPIC'
11650
 
            lt_prog_compiler_static_CXX='-Bstatic'
11651
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
11652
 
            ;;
11653
 
          gcx*)
11654
 
            # Green Hills C++ Compiler
11655
 
            lt_prog_compiler_pic_CXX='-PIC'
11656
 
            ;;
11657
 
          *)
11658
 
            ;;
11659
 
        esac
11660
 
        ;;
11661
 
      sunos4*)
11662
 
        case $cc_basename in
11663
 
          CC*)
11664
 
            # Sun C++ 4.x
11665
 
            lt_prog_compiler_pic_CXX='-pic'
11666
 
            lt_prog_compiler_static_CXX='-Bstatic'
11667
 
            ;;
11668
 
          lcc*)
11669
 
            # Lucid
11670
 
            lt_prog_compiler_pic_CXX='-pic'
11671
 
            ;;
11672
 
          *)
11673
 
            ;;
11674
 
        esac
11675
 
        ;;
11676
 
      tandem*)
11677
 
        case $cc_basename in
11678
 
          NCC*)
11679
 
            # NonStop-UX NCC 3.20
11680
 
            lt_prog_compiler_pic_CXX='-KPIC'
11681
 
            ;;
11682
 
          *)
11683
 
            ;;
11684
 
        esac
11685
 
        ;;
11686
 
      unixware*)
11687
 
        ;;
11688
 
      vxworks*)
11689
 
        ;;
11690
 
      *)
11691
 
        lt_prog_compiler_can_build_shared_CXX=no
11692
 
        ;;
11693
 
    esac
11694
 
  fi
11695
 
 
11696
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11697
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11698
 
 
11699
 
#
11700
 
# Check to make sure the PIC flag actually works.
11701
 
#
11702
 
if test -n "$lt_prog_compiler_pic_CXX"; then
11703
 
 
11704
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11705
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11706
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11707
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11708
 
else
11709
 
  lt_prog_compiler_pic_works_CXX=no
11710
 
  ac_outfile=conftest.$ac_objext
11711
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11712
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11713
 
   # Insert the option either (1) after the last *FLAGS variable, or
11714
 
   # (2) before a word containing "conftest.", or (3) at the end.
11715
 
   # Note that $ac_compile itself does not contain backslashes and begins
11716
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11717
 
   # The option is referenced via a variable to avoid confusing sed.
11718
 
   lt_compile=`echo "$ac_compile" | $SED \
11719
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11720
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11721
 
   -e 's:$: $lt_compiler_flag:'`
11722
 
   (eval echo "\"\$as_me:11722: $lt_compile\"" >&5)
11723
 
   (eval "$lt_compile" 2>conftest.err)
11724
 
   ac_status=$?
11725
 
   cat conftest.err >&5
11726
 
   echo "$as_me:11726: \$? = $ac_status" >&5
11727
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
11728
 
     # The compiler can only warn and ignore the option if not recognized
11729
 
     # So say no if there are warnings other than the usual output.
11730
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11731
 
     $SED '/^$/d' conftest.err >conftest.er2
11732
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11733
 
       lt_prog_compiler_pic_works_CXX=yes
11734
 
     fi
11735
 
   fi
11736
 
   $rm conftest*
11737
 
 
11738
 
fi
11739
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11740
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11741
 
 
11742
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11743
 
    case $lt_prog_compiler_pic_CXX in
11744
 
     "" | " "*) ;;
11745
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11746
 
     esac
11747
 
else
11748
 
    lt_prog_compiler_pic_CXX=
11749
 
     lt_prog_compiler_can_build_shared_CXX=no
11750
 
fi
11751
 
 
11752
 
fi
11753
 
case "$host_os" in
11754
 
  # For platforms which do not support PIC, -DPIC is meaningless:
11755
 
  *djgpp*)
11756
 
    lt_prog_compiler_pic_CXX=
11757
 
    ;;
11758
 
  *)
11759
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11760
 
    ;;
11761
 
esac
11762
 
 
11763
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11764
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11765
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11766
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11767
 
else
11768
 
  lt_cv_prog_compiler_c_o_CXX=no
11769
 
   $rm -r conftest 2>/dev/null
11770
 
   mkdir conftest
11771
 
   cd conftest
11772
 
   mkdir out
11773
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11774
 
 
11775
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11776
 
   # Insert the option either (1) after the last *FLAGS variable, or
11777
 
   # (2) before a word containing "conftest.", or (3) at the end.
11778
 
   # Note that $ac_compile itself does not contain backslashes and begins
11779
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11780
 
   lt_compile=`echo "$ac_compile" | $SED \
11781
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11782
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11783
 
   -e 's:$: $lt_compiler_flag:'`
11784
 
   (eval echo "\"\$as_me:11784: $lt_compile\"" >&5)
11785
 
   (eval "$lt_compile" 2>out/conftest.err)
11786
 
   ac_status=$?
11787
 
   cat out/conftest.err >&5
11788
 
   echo "$as_me:11788: \$? = $ac_status" >&5
11789
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11790
 
   then
11791
 
     # The compiler can only warn and ignore the option if not recognized
11792
 
     # So say no if there are warnings
11793
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11794
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
11795
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11796
 
       lt_cv_prog_compiler_c_o_CXX=yes
11797
 
     fi
11798
 
   fi
11799
 
   chmod u+w .
11800
 
   $rm conftest*
11801
 
   # SGI C++ compiler will create directory out/ii_files/ for
11802
 
   # template instantiation
11803
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11804
 
   $rm out/* && rmdir out
11805
 
   cd ..
11806
 
   rmdir conftest
11807
 
   $rm conftest*
11808
 
 
11809
 
fi
11810
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11811
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11812
 
 
11813
 
 
11814
 
hard_links="nottested"
11815
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11816
 
  # do not overwrite the value of need_locks provided by the user
11817
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11818
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11819
 
  hard_links=yes
11820
 
  $rm conftest*
11821
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11822
 
  touch conftest.a
11823
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
11824
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11825
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
11826
 
echo "${ECHO_T}$hard_links" >&6
11827
 
  if test "$hard_links" = no; then
11828
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11829
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11830
 
    need_locks=warn
11831
 
  fi
11832
 
else
11833
 
  need_locks=no
11834
 
fi
11835
 
 
11836
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11837
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11838
 
 
11839
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11840
 
  case $host_os in
11841
 
  aix4* | aix5*)
11842
 
    # If we're using GNU nm, then we don't want the "-C" option.
11843
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11844
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11845
 
      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'
11846
 
    else
11847
 
      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'
11848
 
    fi
11849
 
    ;;
11850
 
  pw32*)
11851
 
    export_symbols_cmds_CXX="$ltdll_cmds"
11852
 
  ;;
11853
 
  cygwin* | mingw*)
11854
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11855
 
  ;;
11856
 
  *)
11857
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11858
 
  ;;
11859
 
  esac
11860
 
 
11861
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11862
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11863
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11864
 
 
11865
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11866
 
if test "$GCC" = yes; then
11867
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11868
 
fi
11869
 
 
11870
 
#
11871
 
# Do we need to explicitly link libc?
11872
 
#
11873
 
case "x$archive_cmds_need_lc_CXX" in
11874
 
x|xyes)
11875
 
  # Assume -lc should be added
11876
 
  archive_cmds_need_lc_CXX=yes
11877
 
 
11878
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11879
 
    case $archive_cmds_CXX in
11880
 
    *'~'*)
11881
 
      # FIXME: we may have to deal with multi-command sequences.
11882
 
      ;;
11883
 
    '$CC '*)
11884
 
      # Test whether the compiler implicitly links with -lc since on some
11885
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11886
 
      # to ld, don't add -lc before -lgcc.
11887
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11888
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11889
 
      $rm conftest*
11890
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11891
 
 
11892
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893
 
  (eval $ac_compile) 2>&5
11894
 
  ac_status=$?
11895
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896
 
  (exit $ac_status); } 2>conftest.err; then
11897
 
        soname=conftest
11898
 
        lib=conftest
11899
 
        libobjs=conftest.$ac_objext
11900
 
        deplibs=
11901
 
        wl=$lt_prog_compiler_wl_CXX
11902
 
        compiler_flags=-v
11903
 
        linker_flags=-v
11904
 
        verstring=
11905
 
        output_objdir=.
11906
 
        libname=conftest
11907
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11908
 
        allow_undefined_flag_CXX=
11909
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11910
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11911
 
  ac_status=$?
11912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
 
  (exit $ac_status); }
11914
 
        then
11915
 
          archive_cmds_need_lc_CXX=no
11916
 
        else
11917
 
          archive_cmds_need_lc_CXX=yes
11918
 
        fi
11919
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11920
 
      else
11921
 
        cat conftest.err 1>&5
11922
 
      fi
11923
 
      $rm conftest*
11924
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11925
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11926
 
      ;;
11927
 
    esac
11928
 
  fi
11929
 
  ;;
11930
 
esac
11931
 
 
11932
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11933
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11934
 
library_names_spec=
11935
 
libname_spec='lib$name'
11936
 
soname_spec=
11937
 
shrext_cmds=".so"
11938
 
postinstall_cmds=
11939
 
postuninstall_cmds=
11940
 
finish_cmds=
11941
 
finish_eval=
11942
 
shlibpath_var=
11943
 
shlibpath_overrides_runpath=unknown
11944
 
version_type=none
11945
 
dynamic_linker="$host_os ld.so"
11946
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11947
 
if test "$GCC" = yes; then
11948
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11949
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11950
 
    # if the path contains ";" then we assume it to be the separator
11951
 
    # otherwise default to the standard path separator (i.e. ":") - it is
11952
 
    # assumed that no part of a normal pathname contains ";" but that should
11953
 
    # okay in the real world where ";" in dirpaths is itself problematic.
11954
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11955
 
  else
11956
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11957
 
  fi
11958
 
else
11959
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11960
 
fi
11961
 
need_lib_prefix=unknown
11962
 
hardcode_into_libs=no
11963
 
 
11964
 
# when you set need_version to no, make sure it does not cause -set_version
11965
 
# flags to be left without arguments
11966
 
need_version=unknown
11967
 
 
11968
 
case $host_os in
11969
 
aix3*)
11970
 
  version_type=linux
11971
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11972
 
  shlibpath_var=LIBPATH
11973
 
 
11974
 
  # AIX 3 has no versioning support, so we append a major version to the name.
11975
 
  soname_spec='${libname}${release}${shared_ext}$major'
11976
 
  ;;
11977
 
 
11978
 
aix4* | aix5*)
11979
 
  version_type=linux
11980
 
  need_lib_prefix=no
11981
 
  need_version=no
11982
 
  hardcode_into_libs=yes
11983
 
  if test "$host_cpu" = ia64; then
11984
 
    # AIX 5 supports IA64
11985
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11986
 
    shlibpath_var=LD_LIBRARY_PATH
11987
 
  else
11988
 
    # With GCC up to 2.95.x, collect2 would create an import file
11989
 
    # for dependence libraries.  The import file would start with
11990
 
    # the line `#! .'.  This would cause the generated library to
11991
 
    # depend on `.', always an invalid library.  This was fixed in
11992
 
    # development snapshots of GCC prior to 3.0.
11993
 
    case $host_os in
11994
 
      aix4 | aix4.[01] | aix4.[01].*)
11995
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11996
 
           echo ' yes '
11997
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11998
 
        :
11999
 
      else
12000
 
        can_build_shared=no
12001
 
      fi
12002
 
      ;;
12003
 
    esac
12004
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12005
 
    # soname into executable. Probably we can add versioning support to
12006
 
    # collect2, so additional links can be useful in future.
12007
 
    if test "$aix_use_runtimelinking" = yes; then
12008
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12009
 
      # instead of lib<name>.a to let people know that these are not
12010
 
      # typical AIX shared libraries.
12011
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012
 
    else
12013
 
      # We preserve .a as extension for shared libraries through AIX4.2
12014
 
      # and later when we are not doing run time linking.
12015
 
      library_names_spec='${libname}${release}.a $libname.a'
12016
 
      soname_spec='${libname}${release}${shared_ext}$major'
12017
 
    fi
12018
 
    shlibpath_var=LIBPATH
12019
 
  fi
12020
 
  ;;
12021
 
 
12022
 
amigaos*)
12023
 
  library_names_spec='$libname.ixlibrary $libname.a'
12024
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12025
 
  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'
12026
 
  ;;
12027
 
 
12028
 
beos*)
12029
 
  library_names_spec='${libname}${shared_ext}'
12030
 
  dynamic_linker="$host_os ld.so"
12031
 
  shlibpath_var=LIBRARY_PATH
12032
 
  ;;
12033
 
 
12034
 
bsdi[45]*)
12035
 
  version_type=linux
12036
 
  need_version=no
12037
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038
 
  soname_spec='${libname}${release}${shared_ext}$major'
12039
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12040
 
  shlibpath_var=LD_LIBRARY_PATH
12041
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12042
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12043
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12044
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12045
 
  # libtool to hard-code these into programs
12046
 
  ;;
12047
 
 
12048
 
cygwin* | mingw* | pw32*)
12049
 
  version_type=windows
12050
 
  shrext_cmds=".dll"
12051
 
  need_version=no
12052
 
  need_lib_prefix=no
12053
 
 
12054
 
  case $GCC,$host_os in
12055
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
12056
 
    library_names_spec='$libname.dll.a'
12057
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12058
 
    postinstall_cmds='base_file=`basename \${file}`~
12059
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12060
 
      dldir=$destdir/`dirname \$dlpath`~
12061
 
      test -d \$dldir || mkdir -p \$dldir~
12062
 
      $install_prog $dir/$dlname \$dldir/$dlname'
12063
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12064
 
      dlpath=$dir/\$dldll~
12065
 
       $rm \$dlpath'
12066
 
    shlibpath_overrides_runpath=yes
12067
 
 
12068
 
    case $host_os in
12069
 
    cygwin*)
12070
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12071
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12072
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12073
 
      ;;
12074
 
    mingw*)
12075
 
      # MinGW DLLs use traditional 'lib' prefix
12076
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12077
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12078
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12079
 
        # It is most probably a Windows format PATH printed by
12080
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12081
 
        # path with ; separators, and with drive letters. We can handle the
12082
 
        # drive letters (cygwin fileutils understands them), so leave them,
12083
 
        # especially as we might pass files found there to a mingw objdump,
12084
 
        # which wouldn't understand a cygwinified path. Ahh.
12085
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12086
 
      else
12087
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12088
 
      fi
12089
 
      ;;
12090
 
    pw32*)
12091
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12092
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12093
 
      ;;
12094
 
    esac
12095
 
    ;;
12096
 
 
12097
 
  linux*)
12098
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12099
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12100
 
      supports_anon_versioning=no
12101
 
      case `$LD -v 2>/dev/null` in
12102
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12103
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12104
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12105
 
        *\ 2.11.*) ;; # other 2.11 versions
12106
 
        *) supports_anon_versioning=yes ;;
12107
 
      esac
12108
 
      if test $supports_anon_versioning = yes; then
12109
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12110
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12111
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
12112
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12113
 
      else
12114
 
        $archive_expsym_cmds="$archive_cmds"
12115
 
      fi
12116
 
    else
12117
 
      ld_shlibs=no
12118
 
    fi
12119
 
    ;;
12120
 
 
12121
 
  *)
12122
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12123
 
    ;;
12124
 
  esac
12125
 
  dynamic_linker='Win32 ld.exe'
12126
 
  # FIXME: first we should search . and the directory the executable is in
12127
 
  shlibpath_var=PATH
12128
 
  ;;
12129
 
 
12130
 
darwin* | rhapsody*)
12131
 
  dynamic_linker="$host_os dyld"
12132
 
  version_type=darwin
12133
 
  need_lib_prefix=no
12134
 
  need_version=no
12135
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12136
 
  soname_spec='${libname}${release}${major}$shared_ext'
12137
 
  shlibpath_overrides_runpath=yes
12138
 
  shlibpath_var=DYLD_LIBRARY_PATH
12139
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12140
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12141
 
  if test "$GCC" = yes; then
12142
 
    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"`
12143
 
  else
12144
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12145
 
  fi
12146
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12147
 
  ;;
12148
 
 
12149
 
dgux*)
12150
 
  version_type=linux
12151
 
  need_lib_prefix=no
12152
 
  need_version=no
12153
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12154
 
  soname_spec='${libname}${release}${shared_ext}$major'
12155
 
  shlibpath_var=LD_LIBRARY_PATH
12156
 
  ;;
12157
 
 
12158
 
freebsd1*)
12159
 
  dynamic_linker=no
12160
 
  ;;
12161
 
 
12162
 
kfreebsd*-gnu)
12163
 
  version_type=linux
12164
 
  need_lib_prefix=no
12165
 
  need_version=no
12166
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12167
 
  soname_spec='${libname}${release}${shared_ext}$major'
12168
 
  shlibpath_var=LD_LIBRARY_PATH
12169
 
  shlibpath_overrides_runpath=no
12170
 
  hardcode_into_libs=yes
12171
 
  dynamic_linker='GNU ld.so'
12172
 
  ;;
12173
 
 
12174
 
freebsd* | dragonfly*)
12175
 
  # DragonFly does not have aout.  When/if they implement a new
12176
 
  # versioning mechanism, adjust this.
12177
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12178
 
  version_type=freebsd-$objformat
12179
 
  case $version_type in
12180
 
    freebsd-elf*)
12181
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12182
 
      need_version=no
12183
 
      need_lib_prefix=no
12184
 
      ;;
12185
 
    freebsd-*)
12186
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12187
 
      need_version=yes
12188
 
      ;;
12189
 
  esac
12190
 
  shlibpath_var=LD_LIBRARY_PATH
12191
 
  case $host_os in
12192
 
  freebsd2*)
12193
 
    shlibpath_overrides_runpath=yes
12194
 
    ;;
12195
 
  freebsd3.[01]* | freebsdelf3.[01]*)
12196
 
    shlibpath_overrides_runpath=yes
12197
 
    hardcode_into_libs=yes
12198
 
    ;;
12199
 
  *) # from 3.2 on
12200
 
    shlibpath_overrides_runpath=no
12201
 
    hardcode_into_libs=yes
12202
 
    ;;
12203
 
  esac
12204
 
  ;;
12205
 
 
12206
 
gnu*)
12207
 
  version_type=linux
12208
 
  need_lib_prefix=no
12209
 
  need_version=no
12210
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12211
 
  soname_spec='${libname}${release}${shared_ext}$major'
12212
 
  shlibpath_var=LD_LIBRARY_PATH
12213
 
  hardcode_into_libs=yes
12214
 
  ;;
12215
 
 
12216
 
hpux9* | hpux10* | hpux11*)
12217
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12218
 
  # link against other versions.
12219
 
  version_type=sunos
12220
 
  need_lib_prefix=no
12221
 
  need_version=no
12222
 
  case "$host_cpu" in
12223
 
  ia64*)
12224
 
    shrext_cmds='.so'
12225
 
    hardcode_into_libs=yes
12226
 
    dynamic_linker="$host_os dld.so"
12227
 
    shlibpath_var=LD_LIBRARY_PATH
12228
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12229
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12230
 
    soname_spec='${libname}${release}${shared_ext}$major'
12231
 
    if test "X$HPUX_IA64_MODE" = X32; then
12232
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12233
 
    else
12234
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12235
 
    fi
12236
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12237
 
    ;;
12238
 
   hppa*64*)
12239
 
     shrext_cmds='.sl'
12240
 
     hardcode_into_libs=yes
12241
 
     dynamic_linker="$host_os dld.sl"
12242
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12243
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12244
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245
 
     soname_spec='${libname}${release}${shared_ext}$major'
12246
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12247
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12248
 
     ;;
12249
 
   *)
12250
 
    shrext_cmds='.sl'
12251
 
    dynamic_linker="$host_os dld.sl"
12252
 
    shlibpath_var=SHLIB_PATH
12253
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12254
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255
 
    soname_spec='${libname}${release}${shared_ext}$major'
12256
 
    ;;
12257
 
  esac
12258
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12259
 
  postinstall_cmds='chmod 555 $lib'
12260
 
  ;;
12261
 
 
12262
 
irix5* | irix6* | nonstopux*)
12263
 
  case $host_os in
12264
 
    nonstopux*) version_type=nonstopux ;;
12265
 
    *)
12266
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
12267
 
                version_type=linux
12268
 
        else
12269
 
                version_type=irix
12270
 
        fi ;;
12271
 
  esac
12272
 
  need_lib_prefix=no
12273
 
  need_version=no
12274
 
  soname_spec='${libname}${release}${shared_ext}$major'
12275
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12276
 
  case $host_os in
12277
 
  irix5* | nonstopux*)
12278
 
    libsuff= shlibsuff=
12279
 
    ;;
12280
 
  *)
12281
 
    case $LD in # libtool.m4 will add one of these switches to LD
12282
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12283
 
      libsuff= shlibsuff= libmagic=32-bit;;
12284
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12285
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12286
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12287
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12288
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12289
 
    esac
12290
 
    ;;
12291
 
  esac
12292
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12293
 
  shlibpath_overrides_runpath=no
12294
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12295
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12296
 
  hardcode_into_libs=yes
12297
 
  ;;
12298
 
 
12299
 
# No shared lib support for Linux oldld, aout, or coff.
12300
 
linux*oldld* | linux*aout* | linux*coff*)
12301
 
  dynamic_linker=no
12302
 
  ;;
12303
 
 
12304
 
# This must be Linux ELF.
12305
 
linux*)
12306
 
  version_type=linux
12307
 
  need_lib_prefix=no
12308
 
  need_version=no
12309
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310
 
  soname_spec='${libname}${release}${shared_ext}$major'
12311
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12312
 
  shlibpath_var=LD_LIBRARY_PATH
12313
 
  shlibpath_overrides_runpath=no
12314
 
  # This implies no fast_install, which is unacceptable.
12315
 
  # Some rework will be needed to allow for fast_install
12316
 
  # before this can be enabled.
12317
 
  hardcode_into_libs=yes
12318
 
 
12319
 
  # Append ld.so.conf contents to the search path
12320
 
  if test -f /etc/ld.so.conf; then
12321
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12322
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12323
 
  fi
12324
 
 
12325
 
  case $host_cpu:$lt_cv_cc_64bit_output in
12326
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
12327
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
12328
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
12329
 
    ;;
12330
 
  esac
12331
 
 
12332
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12333
 
  # powerpc, because MkLinux only supported shared libraries with the
12334
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12335
 
  # most powerpc-linux boxes support dynamic linking these days and
12336
 
  # people can always --disable-shared, the test was removed, and we
12337
 
  # assume the GNU/Linux dynamic linker is in use.
12338
 
  dynamic_linker='GNU/Linux ld.so'
12339
 
 
12340
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
12341
 
  libsuff=
12342
 
  case "$host_cpu" in
12343
 
  x86_64*)
12344
 
    echo '#line 12344 "configure"' > conftest.$ac_ext
12345
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346
 
  (eval $ac_compile) 2>&5
12347
 
  ac_status=$?
12348
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349
 
  (exit $ac_status); }; then
12350
 
      case `/usr/bin/file conftest.$ac_objext` in
12351
 
      *64-bit*)
12352
 
        libsuff=64
12353
 
        ;;
12354
 
      esac
12355
 
    fi
12356
 
    rm -rf conftest*
12357
 
    ;;
12358
 
  *)
12359
 
    ;;
12360
 
  esac
12361
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12362
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12363
 
  ;;
12364
 
 
12365
 
knetbsd*-gnu)
12366
 
  version_type=linux
12367
 
  need_lib_prefix=no
12368
 
  need_version=no
12369
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12370
 
  soname_spec='${libname}${release}${shared_ext}$major'
12371
 
  shlibpath_var=LD_LIBRARY_PATH
12372
 
  shlibpath_overrides_runpath=no
12373
 
  hardcode_into_libs=yes
12374
 
  dynamic_linker='GNU ld.so'
12375
 
  ;;
12376
 
 
12377
 
netbsd*)
12378
 
  version_type=sunos
12379
 
  need_lib_prefix=no
12380
 
  need_version=no
12381
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12382
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12383
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12384
 
    dynamic_linker='NetBSD (a.out) ld.so'
12385
 
  else
12386
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12387
 
    soname_spec='${libname}${release}${shared_ext}$major'
12388
 
    dynamic_linker='NetBSD ld.elf_so'
12389
 
  fi
12390
 
  shlibpath_var=LD_LIBRARY_PATH
12391
 
  shlibpath_overrides_runpath=yes
12392
 
  hardcode_into_libs=yes
12393
 
  ;;
12394
 
 
12395
 
newsos6)
12396
 
  version_type=linux
12397
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398
 
  shlibpath_var=LD_LIBRARY_PATH
12399
 
  shlibpath_overrides_runpath=yes
12400
 
  ;;
12401
 
 
12402
 
nto-qnx*)
12403
 
  version_type=linux
12404
 
  need_lib_prefix=no
12405
 
  need_version=no
12406
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407
 
  soname_spec='${libname}${release}${shared_ext}$major'
12408
 
  shlibpath_var=LD_LIBRARY_PATH
12409
 
  shlibpath_overrides_runpath=yes
12410
 
  ;;
12411
 
 
12412
 
openbsd*)
12413
 
  version_type=sunos
12414
 
  need_lib_prefix=no
12415
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12416
 
  case $host_os in
12417
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12418
 
    *)                         need_version=no  ;;
12419
 
  esac
12420
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12421
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12422
 
  shlibpath_var=LD_LIBRARY_PATH
12423
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12424
 
    case $host_os in
12425
 
      openbsd2.[89] | openbsd2.[89].*)
12426
 
        shlibpath_overrides_runpath=no
12427
 
        ;;
12428
 
      *)
12429
 
        shlibpath_overrides_runpath=yes
12430
 
        ;;
12431
 
      esac
12432
 
  else
12433
 
    shlibpath_overrides_runpath=yes
12434
 
  fi
12435
 
  ;;
12436
 
 
12437
 
os2*)
12438
 
  libname_spec='$name'
12439
 
  shrext_cmds=".dll"
12440
 
  need_lib_prefix=no
12441
 
  library_names_spec='$libname${shared_ext} $libname.a'
12442
 
  dynamic_linker='OS/2 ld.exe'
12443
 
  shlibpath_var=LIBPATH
12444
 
  ;;
12445
 
 
12446
 
osf3* | osf4* | osf5*)
12447
 
  version_type=osf
12448
 
  need_lib_prefix=no
12449
 
  need_version=no
12450
 
  soname_spec='${libname}${release}${shared_ext}$major'
12451
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452
 
  shlibpath_var=LD_LIBRARY_PATH
12453
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12454
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12455
 
  ;;
12456
 
 
12457
 
sco3.2v5*)
12458
 
  version_type=osf
12459
 
  soname_spec='${libname}${release}${shared_ext}$major'
12460
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461
 
  shlibpath_var=LD_LIBRARY_PATH
12462
 
  ;;
12463
 
 
12464
 
solaris*)
12465
 
  version_type=linux
12466
 
  need_lib_prefix=no
12467
 
  need_version=no
12468
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12469
 
  soname_spec='${libname}${release}${shared_ext}$major'
12470
 
  shlibpath_var=LD_LIBRARY_PATH
12471
 
  shlibpath_overrides_runpath=yes
12472
 
  hardcode_into_libs=yes
12473
 
  # ldd complains unless libraries are executable
12474
 
  postinstall_cmds='chmod +x $lib'
12475
 
  ;;
12476
 
 
12477
 
sunos4*)
12478
 
  version_type=sunos
12479
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12480
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12481
 
  shlibpath_var=LD_LIBRARY_PATH
12482
 
  shlibpath_overrides_runpath=yes
12483
 
  if test "$with_gnu_ld" = yes; then
12484
 
    need_lib_prefix=no
12485
 
  fi
12486
 
  need_version=yes
12487
 
  ;;
12488
 
 
12489
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12490
 
  version_type=linux
12491
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492
 
  soname_spec='${libname}${release}${shared_ext}$major'
12493
 
  shlibpath_var=LD_LIBRARY_PATH
12494
 
  case $host_vendor in
12495
 
    sni)
12496
 
      shlibpath_overrides_runpath=no
12497
 
      need_lib_prefix=no
12498
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12499
 
      runpath_var=LD_RUN_PATH
12500
 
      ;;
12501
 
    siemens)
12502
 
      need_lib_prefix=no
12503
 
      ;;
12504
 
    motorola)
12505
 
      need_lib_prefix=no
12506
 
      need_version=no
12507
 
      shlibpath_overrides_runpath=no
12508
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12509
 
      ;;
12510
 
  esac
12511
 
  ;;
12512
 
 
12513
 
sysv4*MP*)
12514
 
  if test -d /usr/nec ;then
12515
 
    version_type=linux
12516
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12517
 
    soname_spec='$libname${shared_ext}.$major'
12518
 
    shlibpath_var=LD_LIBRARY_PATH
12519
 
  fi
12520
 
  ;;
12521
 
 
12522
 
uts4*)
12523
 
  version_type=linux
12524
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525
 
  soname_spec='${libname}${release}${shared_ext}$major'
12526
 
  shlibpath_var=LD_LIBRARY_PATH
12527
 
  ;;
12528
 
 
12529
 
*)
12530
 
  dynamic_linker=no
12531
 
  ;;
12532
 
esac
12533
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12534
 
echo "${ECHO_T}$dynamic_linker" >&6
12535
 
test "$dynamic_linker" = no && can_build_shared=no
12536
 
 
12537
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12538
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12539
 
hardcode_action_CXX=
12540
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12541
 
   test -n "$runpath_var_CXX" || \
12542
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12543
 
 
12544
 
  # We can hardcode non-existant directories.
12545
 
  if test "$hardcode_direct_CXX" != no &&
12546
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12547
 
     # have to relink, otherwise we might link with an installed library
12548
 
     # when we should be linking with a yet-to-be-installed one
12549
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12550
 
     test "$hardcode_minus_L_CXX" != no; then
12551
 
    # Linking always hardcodes the temporary library directory.
12552
 
    hardcode_action_CXX=relink
12553
 
  else
12554
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12555
 
    hardcode_action_CXX=immediate
12556
 
  fi
12557
 
else
12558
 
  # We cannot hardcode anything, or else we can only hardcode existing
12559
 
  # directories.
12560
 
  hardcode_action_CXX=unsupported
12561
 
fi
12562
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12563
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
12564
 
 
12565
 
if test "$hardcode_action_CXX" = relink; then
12566
 
  # Fast installation is not supported
12567
 
  enable_fast_install=no
12568
 
elif test "$shlibpath_overrides_runpath" = yes ||
12569
 
     test "$enable_shared" = no; then
12570
 
  # Fast installation is not necessary
12571
 
  enable_fast_install=needless
12572
 
fi
12573
 
 
12574
 
striplib=
12575
 
old_striplib=
12576
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12577
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12578
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12579
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12580
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12581
 
  echo "$as_me:$LINENO: result: yes" >&5
12582
 
echo "${ECHO_T}yes" >&6
12583
 
else
12584
 
# FIXME - insert some real tests, host_os isn't really good enough
12585
 
  case $host_os in
12586
 
   darwin*)
12587
 
       if test -n "$STRIP" ; then
12588
 
         striplib="$STRIP -x"
12589
 
         echo "$as_me:$LINENO: result: yes" >&5
12590
 
echo "${ECHO_T}yes" >&6
12591
 
       else
12592
 
  echo "$as_me:$LINENO: result: no" >&5
12593
 
echo "${ECHO_T}no" >&6
12594
 
fi
12595
 
       ;;
12596
 
   *)
12597
 
  echo "$as_me:$LINENO: result: no" >&5
12598
 
echo "${ECHO_T}no" >&6
12599
 
    ;;
12600
 
  esac
12601
 
fi
12602
 
 
12603
 
if test "x$enable_dlopen" != xyes; then
12604
 
  enable_dlopen=unknown
12605
 
  enable_dlopen_self=unknown
12606
 
  enable_dlopen_self_static=unknown
12607
 
else
12608
 
  lt_cv_dlopen=no
12609
 
  lt_cv_dlopen_libs=
12610
 
 
12611
 
  case $host_os in
12612
 
  beos*)
12613
 
    lt_cv_dlopen="load_add_on"
12614
 
    lt_cv_dlopen_libs=
12615
 
    lt_cv_dlopen_self=yes
12616
 
    ;;
12617
 
 
12618
 
  mingw* | pw32*)
12619
 
    lt_cv_dlopen="LoadLibrary"
12620
 
    lt_cv_dlopen_libs=
12621
 
   ;;
12622
 
 
12623
 
  cygwin*)
12624
 
    lt_cv_dlopen="dlopen"
12625
 
    lt_cv_dlopen_libs=
12626
 
   ;;
12627
 
 
12628
 
  darwin*)
12629
 
  # if libdl is installed we need to link against it
12630
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12631
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12632
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12633
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12634
 
else
12635
 
  ac_check_lib_save_LIBS=$LIBS
12636
 
LIBS="-ldl  $LIBS"
12637
 
cat >conftest.$ac_ext <<_ACEOF
12638
 
/* confdefs.h.  */
12639
 
_ACEOF
12640
 
cat confdefs.h >>conftest.$ac_ext
12641
 
cat >>conftest.$ac_ext <<_ACEOF
12642
 
/* end confdefs.h.  */
12643
 
 
12644
 
/* Override any gcc2 internal prototype to avoid an error.  */
12645
 
#ifdef __cplusplus
12646
 
extern "C"
12647
 
#endif
12648
 
/* We use char because int might match the return type of a gcc2
12649
 
   builtin and then its argument prototype would still apply.  */
12650
 
char dlopen ();
12651
 
int
12652
 
main ()
12653
 
{
12654
 
dlopen ();
12655
 
  ;
12656
 
  return 0;
12657
 
}
12658
 
_ACEOF
12659
 
rm -f conftest.$ac_objext conftest$ac_exeext
12660
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661
 
  (eval $ac_link) 2>conftest.er1
12662
 
  ac_status=$?
12663
 
  grep -v '^ *+' conftest.er1 >conftest.err
12664
 
  rm -f conftest.er1
12665
 
  cat conftest.err >&5
12666
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667
 
  (exit $ac_status); } &&
12668
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12669
 
                         || test ! -s conftest.err'
12670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671
 
  (eval $ac_try) 2>&5
12672
 
  ac_status=$?
12673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674
 
  (exit $ac_status); }; } &&
12675
 
         { ac_try='test -s conftest$ac_exeext'
12676
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677
 
  (eval $ac_try) 2>&5
12678
 
  ac_status=$?
12679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680
 
  (exit $ac_status); }; }; then
12681
 
  ac_cv_lib_dl_dlopen=yes
12682
 
else
12683
 
  echo "$as_me: failed program was:" >&5
12684
 
sed 's/^/| /' conftest.$ac_ext >&5
12685
 
 
12686
 
ac_cv_lib_dl_dlopen=no
12687
 
fi
12688
 
rm -f conftest.err conftest.$ac_objext \
12689
 
      conftest$ac_exeext conftest.$ac_ext
12690
 
LIBS=$ac_check_lib_save_LIBS
12691
 
fi
12692
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12693
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12694
 
if test $ac_cv_lib_dl_dlopen = yes; then
12695
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12696
 
else
12697
 
 
12698
 
    lt_cv_dlopen="dyld"
12699
 
    lt_cv_dlopen_libs=
12700
 
    lt_cv_dlopen_self=yes
12701
 
 
12702
 
fi
12703
 
 
12704
 
   ;;
12705
 
 
12706
 
  *)
12707
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
12708
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12709
 
if test "${ac_cv_func_shl_load+set}" = set; then
12710
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12711
 
else
12712
 
  cat >conftest.$ac_ext <<_ACEOF
12713
 
/* confdefs.h.  */
12714
 
_ACEOF
12715
 
cat confdefs.h >>conftest.$ac_ext
12716
 
cat >>conftest.$ac_ext <<_ACEOF
12717
 
/* end confdefs.h.  */
12718
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12719
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12720
 
#define shl_load innocuous_shl_load
12721
 
 
12722
 
/* System header to define __stub macros and hopefully few prototypes,
12723
 
    which can conflict with char shl_load (); below.
12724
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12725
 
    <limits.h> exists even on freestanding compilers.  */
12726
 
 
12727
 
#ifdef __STDC__
12728
 
# include <limits.h>
12729
 
#else
12730
 
# include <assert.h>
12731
 
#endif
12732
 
 
12733
 
#undef shl_load
12734
 
 
12735
 
/* Override any gcc2 internal prototype to avoid an error.  */
12736
 
#ifdef __cplusplus
12737
 
extern "C"
12738
 
{
12739
 
#endif
12740
 
/* We use char because int might match the return type of a gcc2
12741
 
   builtin and then its argument prototype would still apply.  */
12742
 
char shl_load ();
12743
 
/* The GNU C library defines this for functions which it implements
12744
 
    to always fail with ENOSYS.  Some functions are actually named
12745
 
    something starting with __ and the normal name is an alias.  */
12746
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12747
 
choke me
12748
 
#else
12749
 
char (*f) () = shl_load;
12750
 
#endif
12751
 
#ifdef __cplusplus
12752
 
}
12753
 
#endif
12754
 
 
12755
 
int
12756
 
main ()
12757
 
{
12758
 
return f != shl_load;
12759
 
  ;
12760
 
  return 0;
12761
 
}
12762
 
_ACEOF
12763
 
rm -f conftest.$ac_objext conftest$ac_exeext
12764
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765
 
  (eval $ac_link) 2>conftest.er1
12766
 
  ac_status=$?
12767
 
  grep -v '^ *+' conftest.er1 >conftest.err
12768
 
  rm -f conftest.er1
12769
 
  cat conftest.err >&5
12770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771
 
  (exit $ac_status); } &&
12772
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12773
 
                         || test ! -s conftest.err'
12774
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775
 
  (eval $ac_try) 2>&5
12776
 
  ac_status=$?
12777
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778
 
  (exit $ac_status); }; } &&
12779
 
         { ac_try='test -s conftest$ac_exeext'
12780
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781
 
  (eval $ac_try) 2>&5
12782
 
  ac_status=$?
12783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784
 
  (exit $ac_status); }; }; then
12785
 
  ac_cv_func_shl_load=yes
12786
 
else
12787
 
  echo "$as_me: failed program was:" >&5
12788
 
sed 's/^/| /' conftest.$ac_ext >&5
12789
 
 
12790
 
ac_cv_func_shl_load=no
12791
 
fi
12792
 
rm -f conftest.err conftest.$ac_objext \
12793
 
      conftest$ac_exeext conftest.$ac_ext
12794
 
fi
12795
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12796
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12797
 
if test $ac_cv_func_shl_load = yes; then
12798
 
  lt_cv_dlopen="shl_load"
12799
 
else
12800
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12801
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12802
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12803
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12804
 
else
12805
 
  ac_check_lib_save_LIBS=$LIBS
12806
 
LIBS="-ldld  $LIBS"
12807
 
cat >conftest.$ac_ext <<_ACEOF
12808
 
/* confdefs.h.  */
12809
 
_ACEOF
12810
 
cat confdefs.h >>conftest.$ac_ext
12811
 
cat >>conftest.$ac_ext <<_ACEOF
12812
 
/* end confdefs.h.  */
12813
 
 
12814
 
/* Override any gcc2 internal prototype to avoid an error.  */
12815
 
#ifdef __cplusplus
12816
 
extern "C"
12817
 
#endif
12818
 
/* We use char because int might match the return type of a gcc2
12819
 
   builtin and then its argument prototype would still apply.  */
12820
 
char shl_load ();
12821
 
int
12822
 
main ()
12823
 
{
12824
 
shl_load ();
12825
 
  ;
12826
 
  return 0;
12827
 
}
12828
 
_ACEOF
12829
 
rm -f conftest.$ac_objext conftest$ac_exeext
12830
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12831
 
  (eval $ac_link) 2>conftest.er1
12832
 
  ac_status=$?
12833
 
  grep -v '^ *+' conftest.er1 >conftest.err
12834
 
  rm -f conftest.er1
12835
 
  cat conftest.err >&5
12836
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837
 
  (exit $ac_status); } &&
12838
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12839
 
                         || test ! -s conftest.err'
12840
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841
 
  (eval $ac_try) 2>&5
12842
 
  ac_status=$?
12843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844
 
  (exit $ac_status); }; } &&
12845
 
         { ac_try='test -s conftest$ac_exeext'
12846
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847
 
  (eval $ac_try) 2>&5
12848
 
  ac_status=$?
12849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850
 
  (exit $ac_status); }; }; then
12851
 
  ac_cv_lib_dld_shl_load=yes
12852
 
else
12853
 
  echo "$as_me: failed program was:" >&5
12854
 
sed 's/^/| /' conftest.$ac_ext >&5
12855
 
 
12856
 
ac_cv_lib_dld_shl_load=no
12857
 
fi
12858
 
rm -f conftest.err conftest.$ac_objext \
12859
 
      conftest$ac_exeext conftest.$ac_ext
12860
 
LIBS=$ac_check_lib_save_LIBS
12861
 
fi
12862
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12863
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12864
 
if test $ac_cv_lib_dld_shl_load = yes; then
12865
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12866
 
else
12867
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12868
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12869
 
if test "${ac_cv_func_dlopen+set}" = set; then
12870
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12871
 
else
12872
 
  cat >conftest.$ac_ext <<_ACEOF
12873
 
/* confdefs.h.  */
12874
 
_ACEOF
12875
 
cat confdefs.h >>conftest.$ac_ext
12876
 
cat >>conftest.$ac_ext <<_ACEOF
12877
 
/* end confdefs.h.  */
12878
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12879
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12880
 
#define dlopen innocuous_dlopen
12881
 
 
12882
 
/* System header to define __stub macros and hopefully few prototypes,
12883
 
    which can conflict with char dlopen (); below.
12884
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12885
 
    <limits.h> exists even on freestanding compilers.  */
12886
 
 
12887
 
#ifdef __STDC__
12888
 
# include <limits.h>
12889
 
#else
12890
 
# include <assert.h>
12891
 
#endif
12892
 
 
12893
 
#undef dlopen
12894
 
 
12895
 
/* Override any gcc2 internal prototype to avoid an error.  */
12896
 
#ifdef __cplusplus
12897
 
extern "C"
12898
 
{
12899
 
#endif
12900
 
/* We use char because int might match the return type of a gcc2
12901
 
   builtin and then its argument prototype would still apply.  */
12902
 
char dlopen ();
12903
 
/* The GNU C library defines this for functions which it implements
12904
 
    to always fail with ENOSYS.  Some functions are actually named
12905
 
    something starting with __ and the normal name is an alias.  */
12906
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12907
 
choke me
12908
 
#else
12909
 
char (*f) () = dlopen;
12910
 
#endif
12911
 
#ifdef __cplusplus
12912
 
}
12913
 
#endif
12914
 
 
12915
 
int
12916
 
main ()
12917
 
{
12918
 
return f != dlopen;
12919
 
  ;
12920
 
  return 0;
12921
 
}
12922
 
_ACEOF
12923
 
rm -f conftest.$ac_objext conftest$ac_exeext
12924
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925
 
  (eval $ac_link) 2>conftest.er1
12926
 
  ac_status=$?
12927
 
  grep -v '^ *+' conftest.er1 >conftest.err
12928
 
  rm -f conftest.er1
12929
 
  cat conftest.err >&5
12930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931
 
  (exit $ac_status); } &&
12932
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12933
 
                         || test ! -s conftest.err'
12934
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935
 
  (eval $ac_try) 2>&5
12936
 
  ac_status=$?
12937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938
 
  (exit $ac_status); }; } &&
12939
 
         { ac_try='test -s conftest$ac_exeext'
12940
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941
 
  (eval $ac_try) 2>&5
12942
 
  ac_status=$?
12943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944
 
  (exit $ac_status); }; }; then
12945
 
  ac_cv_func_dlopen=yes
12946
 
else
12947
 
  echo "$as_me: failed program was:" >&5
12948
 
sed 's/^/| /' conftest.$ac_ext >&5
12949
 
 
12950
 
ac_cv_func_dlopen=no
12951
 
fi
12952
 
rm -f conftest.err conftest.$ac_objext \
12953
 
      conftest$ac_exeext conftest.$ac_ext
12954
 
fi
12955
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12956
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12957
 
if test $ac_cv_func_dlopen = yes; then
12958
 
  lt_cv_dlopen="dlopen"
12959
 
else
12960
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12961
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12962
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12963
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12964
 
else
12965
 
  ac_check_lib_save_LIBS=$LIBS
12966
 
LIBS="-ldl  $LIBS"
12967
 
cat >conftest.$ac_ext <<_ACEOF
12968
 
/* confdefs.h.  */
12969
 
_ACEOF
12970
 
cat confdefs.h >>conftest.$ac_ext
12971
 
cat >>conftest.$ac_ext <<_ACEOF
12972
 
/* end confdefs.h.  */
12973
 
 
12974
 
/* Override any gcc2 internal prototype to avoid an error.  */
12975
 
#ifdef __cplusplus
12976
 
extern "C"
12977
 
#endif
12978
 
/* We use char because int might match the return type of a gcc2
12979
 
   builtin and then its argument prototype would still apply.  */
12980
 
char dlopen ();
12981
 
int
12982
 
main ()
12983
 
{
12984
 
dlopen ();
12985
 
  ;
12986
 
  return 0;
12987
 
}
12988
 
_ACEOF
12989
 
rm -f conftest.$ac_objext conftest$ac_exeext
12990
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991
 
  (eval $ac_link) 2>conftest.er1
12992
 
  ac_status=$?
12993
 
  grep -v '^ *+' conftest.er1 >conftest.err
12994
 
  rm -f conftest.er1
12995
 
  cat conftest.err >&5
12996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997
 
  (exit $ac_status); } &&
12998
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12999
 
                         || test ! -s conftest.err'
13000
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001
 
  (eval $ac_try) 2>&5
13002
 
  ac_status=$?
13003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004
 
  (exit $ac_status); }; } &&
13005
 
         { ac_try='test -s conftest$ac_exeext'
13006
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007
 
  (eval $ac_try) 2>&5
13008
 
  ac_status=$?
13009
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010
 
  (exit $ac_status); }; }; then
13011
 
  ac_cv_lib_dl_dlopen=yes
13012
 
else
13013
 
  echo "$as_me: failed program was:" >&5
13014
 
sed 's/^/| /' conftest.$ac_ext >&5
13015
 
 
13016
 
ac_cv_lib_dl_dlopen=no
13017
 
fi
13018
 
rm -f conftest.err conftest.$ac_objext \
13019
 
      conftest$ac_exeext conftest.$ac_ext
13020
 
LIBS=$ac_check_lib_save_LIBS
13021
 
fi
13022
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13023
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13024
 
if test $ac_cv_lib_dl_dlopen = yes; then
13025
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13026
 
else
13027
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13028
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13029
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13030
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13031
 
else
13032
 
  ac_check_lib_save_LIBS=$LIBS
13033
 
LIBS="-lsvld  $LIBS"
13034
 
cat >conftest.$ac_ext <<_ACEOF
13035
 
/* confdefs.h.  */
13036
 
_ACEOF
13037
 
cat confdefs.h >>conftest.$ac_ext
13038
 
cat >>conftest.$ac_ext <<_ACEOF
13039
 
/* end confdefs.h.  */
13040
 
 
13041
 
/* Override any gcc2 internal prototype to avoid an error.  */
13042
 
#ifdef __cplusplus
13043
 
extern "C"
13044
 
#endif
13045
 
/* We use char because int might match the return type of a gcc2
13046
 
   builtin and then its argument prototype would still apply.  */
13047
 
char dlopen ();
13048
 
int
13049
 
main ()
13050
 
{
13051
 
dlopen ();
13052
 
  ;
13053
 
  return 0;
13054
 
}
13055
 
_ACEOF
13056
 
rm -f conftest.$ac_objext conftest$ac_exeext
13057
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058
 
  (eval $ac_link) 2>conftest.er1
13059
 
  ac_status=$?
13060
 
  grep -v '^ *+' conftest.er1 >conftest.err
13061
 
  rm -f conftest.er1
13062
 
  cat conftest.err >&5
13063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064
 
  (exit $ac_status); } &&
13065
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13066
 
                         || test ! -s conftest.err'
13067
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068
 
  (eval $ac_try) 2>&5
13069
 
  ac_status=$?
13070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071
 
  (exit $ac_status); }; } &&
13072
 
         { ac_try='test -s conftest$ac_exeext'
13073
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074
 
  (eval $ac_try) 2>&5
13075
 
  ac_status=$?
13076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077
 
  (exit $ac_status); }; }; then
13078
 
  ac_cv_lib_svld_dlopen=yes
13079
 
else
13080
 
  echo "$as_me: failed program was:" >&5
13081
 
sed 's/^/| /' conftest.$ac_ext >&5
13082
 
 
13083
 
ac_cv_lib_svld_dlopen=no
13084
 
fi
13085
 
rm -f conftest.err conftest.$ac_objext \
13086
 
      conftest$ac_exeext conftest.$ac_ext
13087
 
LIBS=$ac_check_lib_save_LIBS
13088
 
fi
13089
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13090
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13091
 
if test $ac_cv_lib_svld_dlopen = yes; then
13092
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13093
 
else
13094
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13095
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13096
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13097
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13098
 
else
13099
 
  ac_check_lib_save_LIBS=$LIBS
13100
 
LIBS="-ldld  $LIBS"
13101
 
cat >conftest.$ac_ext <<_ACEOF
13102
 
/* confdefs.h.  */
13103
 
_ACEOF
13104
 
cat confdefs.h >>conftest.$ac_ext
13105
 
cat >>conftest.$ac_ext <<_ACEOF
13106
 
/* end confdefs.h.  */
13107
 
 
13108
 
/* Override any gcc2 internal prototype to avoid an error.  */
13109
 
#ifdef __cplusplus
13110
 
extern "C"
13111
 
#endif
13112
 
/* We use char because int might match the return type of a gcc2
13113
 
   builtin and then its argument prototype would still apply.  */
13114
 
char dld_link ();
13115
 
int
13116
 
main ()
13117
 
{
13118
 
dld_link ();
13119
 
  ;
13120
 
  return 0;
13121
 
}
13122
 
_ACEOF
13123
 
rm -f conftest.$ac_objext conftest$ac_exeext
13124
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125
 
  (eval $ac_link) 2>conftest.er1
13126
 
  ac_status=$?
13127
 
  grep -v '^ *+' conftest.er1 >conftest.err
13128
 
  rm -f conftest.er1
13129
 
  cat conftest.err >&5
13130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131
 
  (exit $ac_status); } &&
13132
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13133
 
                         || test ! -s conftest.err'
13134
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135
 
  (eval $ac_try) 2>&5
13136
 
  ac_status=$?
13137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138
 
  (exit $ac_status); }; } &&
13139
 
         { ac_try='test -s conftest$ac_exeext'
13140
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141
 
  (eval $ac_try) 2>&5
13142
 
  ac_status=$?
13143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144
 
  (exit $ac_status); }; }; then
13145
 
  ac_cv_lib_dld_dld_link=yes
13146
 
else
13147
 
  echo "$as_me: failed program was:" >&5
13148
 
sed 's/^/| /' conftest.$ac_ext >&5
13149
 
 
13150
 
ac_cv_lib_dld_dld_link=no
13151
 
fi
13152
 
rm -f conftest.err conftest.$ac_objext \
13153
 
      conftest$ac_exeext conftest.$ac_ext
13154
 
LIBS=$ac_check_lib_save_LIBS
13155
 
fi
13156
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13157
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13158
 
if test $ac_cv_lib_dld_dld_link = yes; then
13159
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13160
 
fi
13161
 
 
13162
 
 
13163
 
fi
13164
 
 
13165
 
 
13166
 
fi
13167
 
 
13168
 
 
13169
 
fi
13170
 
 
13171
 
 
13172
 
fi
13173
 
 
13174
 
 
13175
 
fi
13176
 
 
13177
 
    ;;
13178
 
  esac
13179
 
 
13180
 
  if test "x$lt_cv_dlopen" != xno; then
13181
 
    enable_dlopen=yes
13182
 
  else
13183
 
    enable_dlopen=no
13184
 
  fi
13185
 
 
13186
 
  case $lt_cv_dlopen in
13187
 
  dlopen)
13188
 
    save_CPPFLAGS="$CPPFLAGS"
13189
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13190
 
 
13191
 
    save_LDFLAGS="$LDFLAGS"
13192
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13193
 
 
13194
 
    save_LIBS="$LIBS"
13195
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
13196
 
 
13197
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13198
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13199
 
if test "${lt_cv_dlopen_self+set}" = set; then
13200
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13201
 
else
13202
 
          if test "$cross_compiling" = yes; then :
13203
 
  lt_cv_dlopen_self=cross
13204
 
else
13205
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13206
 
  lt_status=$lt_dlunknown
13207
 
  cat > conftest.$ac_ext <<EOF
13208
 
#line 13208 "configure"
13209
 
#include "confdefs.h"
13210
 
 
13211
 
#if HAVE_DLFCN_H
13212
 
#include <dlfcn.h>
13213
 
#endif
13214
 
 
13215
 
#include <stdio.h>
13216
 
 
13217
 
#ifdef RTLD_GLOBAL
13218
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13219
 
#else
13220
 
#  ifdef DL_GLOBAL
13221
 
#    define LT_DLGLOBAL         DL_GLOBAL
13222
 
#  else
13223
 
#    define LT_DLGLOBAL         0
13224
 
#  endif
13225
 
#endif
13226
 
 
13227
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13228
 
   find out it does not work in some platform. */
13229
 
#ifndef LT_DLLAZY_OR_NOW
13230
 
#  ifdef RTLD_LAZY
13231
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13232
 
#  else
13233
 
#    ifdef DL_LAZY
13234
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13235
 
#    else
13236
 
#      ifdef RTLD_NOW
13237
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13238
 
#      else
13239
 
#        ifdef DL_NOW
13240
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13241
 
#        else
13242
 
#          define LT_DLLAZY_OR_NOW      0
13243
 
#        endif
13244
 
#      endif
13245
 
#    endif
13246
 
#  endif
13247
 
#endif
13248
 
 
13249
 
#ifdef __cplusplus
13250
 
extern "C" void exit (int);
13251
 
#endif
13252
 
 
13253
 
void fnord() { int i=42;}
13254
 
int main ()
13255
 
{
13256
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13257
 
  int status = $lt_dlunknown;
13258
 
 
13259
 
  if (self)
13260
 
    {
13261
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13262
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13263
 
      /* dlclose (self); */
13264
 
    }
13265
 
 
13266
 
    exit (status);
13267
 
}
13268
 
EOF
13269
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13270
 
  (eval $ac_link) 2>&5
13271
 
  ac_status=$?
13272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13274
 
    (./conftest; exit; ) 2>/dev/null
13275
 
    lt_status=$?
13276
 
    case x$lt_status in
13277
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13278
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13279
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13280
 
    esac
13281
 
  else :
13282
 
    # compilation failed
13283
 
    lt_cv_dlopen_self=no
13284
 
  fi
13285
 
fi
13286
 
rm -fr conftest*
13287
 
 
13288
 
 
13289
 
fi
13290
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13291
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13292
 
 
13293
 
    if test "x$lt_cv_dlopen_self" = xyes; then
13294
 
      LDFLAGS="$LDFLAGS $link_static_flag"
13295
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13296
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13297
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
13298
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13299
 
else
13300
 
          if test "$cross_compiling" = yes; then :
13301
 
  lt_cv_dlopen_self_static=cross
13302
 
else
13303
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13304
 
  lt_status=$lt_dlunknown
13305
 
  cat > conftest.$ac_ext <<EOF
13306
 
#line 13306 "configure"
13307
 
#include "confdefs.h"
13308
 
 
13309
 
#if HAVE_DLFCN_H
13310
 
#include <dlfcn.h>
13311
 
#endif
13312
 
 
13313
 
#include <stdio.h>
13314
 
 
13315
 
#ifdef RTLD_GLOBAL
13316
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13317
 
#else
13318
 
#  ifdef DL_GLOBAL
13319
 
#    define LT_DLGLOBAL         DL_GLOBAL
13320
 
#  else
13321
 
#    define LT_DLGLOBAL         0
13322
 
#  endif
13323
 
#endif
13324
 
 
13325
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13326
 
   find out it does not work in some platform. */
13327
 
#ifndef LT_DLLAZY_OR_NOW
13328
 
#  ifdef RTLD_LAZY
13329
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13330
 
#  else
13331
 
#    ifdef DL_LAZY
13332
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13333
 
#    else
13334
 
#      ifdef RTLD_NOW
13335
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13336
 
#      else
13337
 
#        ifdef DL_NOW
13338
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13339
 
#        else
13340
 
#          define LT_DLLAZY_OR_NOW      0
13341
 
#        endif
13342
 
#      endif
13343
 
#    endif
13344
 
#  endif
13345
 
#endif
13346
 
 
13347
 
#ifdef __cplusplus
13348
 
extern "C" void exit (int);
13349
 
#endif
13350
 
 
13351
 
void fnord() { int i=42;}
13352
 
int main ()
13353
 
{
13354
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13355
 
  int status = $lt_dlunknown;
13356
 
 
13357
 
  if (self)
13358
 
    {
13359
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13360
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13361
 
      /* dlclose (self); */
13362
 
    }
13363
 
 
13364
 
    exit (status);
13365
 
}
13366
 
EOF
13367
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368
 
  (eval $ac_link) 2>&5
13369
 
  ac_status=$?
13370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13372
 
    (./conftest; exit; ) 2>/dev/null
13373
 
    lt_status=$?
13374
 
    case x$lt_status in
13375
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13376
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13377
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13378
 
    esac
13379
 
  else :
13380
 
    # compilation failed
13381
 
    lt_cv_dlopen_self_static=no
13382
 
  fi
13383
 
fi
13384
 
rm -fr conftest*
13385
 
 
13386
 
 
13387
 
fi
13388
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13389
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13390
 
    fi
13391
 
 
13392
 
    CPPFLAGS="$save_CPPFLAGS"
13393
 
    LDFLAGS="$save_LDFLAGS"
13394
 
    LIBS="$save_LIBS"
13395
 
    ;;
13396
 
  esac
13397
 
 
13398
 
  case $lt_cv_dlopen_self in
13399
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13400
 
  *) enable_dlopen_self=unknown ;;
13401
 
  esac
13402
 
 
13403
 
  case $lt_cv_dlopen_self_static in
13404
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13405
 
  *) enable_dlopen_self_static=unknown ;;
13406
 
  esac
13407
 
fi
13408
 
 
13409
 
 
13410
 
# The else clause should only fire when bootstrapping the
13411
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13412
 
# with your package, and you will get complaints that there are
13413
 
# no rules to generate ltmain.sh.
13414
 
if test -f "$ltmain"; then
13415
 
  # See if we are running on zsh, and set the options which allow our commands through
13416
 
  # without removal of \ escapes.
13417
 
  if test -n "${ZSH_VERSION+set}" ; then
13418
 
    setopt NO_GLOB_SUBST
13419
 
  fi
13420
 
  # Now quote all the things that may contain metacharacters while being
13421
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13422
 
  # variables and quote the copies for generation of the libtool script.
13423
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13424
 
    SED SHELL STRIP \
13425
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13426
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13427
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13428
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13429
 
    lt_cv_sys_global_symbol_to_c_name_address \
13430
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13431
 
    old_postinstall_cmds old_postuninstall_cmds \
13432
 
    compiler_CXX \
13433
 
    CC_CXX \
13434
 
    LD_CXX \
13435
 
    lt_prog_compiler_wl_CXX \
13436
 
    lt_prog_compiler_pic_CXX \
13437
 
    lt_prog_compiler_static_CXX \
13438
 
    lt_prog_compiler_no_builtin_flag_CXX \
13439
 
    export_dynamic_flag_spec_CXX \
13440
 
    thread_safe_flag_spec_CXX \
13441
 
    whole_archive_flag_spec_CXX \
13442
 
    enable_shared_with_static_runtimes_CXX \
13443
 
    old_archive_cmds_CXX \
13444
 
    old_archive_from_new_cmds_CXX \
13445
 
    predep_objects_CXX \
13446
 
    postdep_objects_CXX \
13447
 
    predeps_CXX \
13448
 
    postdeps_CXX \
13449
 
    compiler_lib_search_path_CXX \
13450
 
    archive_cmds_CXX \
13451
 
    archive_expsym_cmds_CXX \
13452
 
    postinstall_cmds_CXX \
13453
 
    postuninstall_cmds_CXX \
13454
 
    old_archive_from_expsyms_cmds_CXX \
13455
 
    allow_undefined_flag_CXX \
13456
 
    no_undefined_flag_CXX \
13457
 
    export_symbols_cmds_CXX \
13458
 
    hardcode_libdir_flag_spec_CXX \
13459
 
    hardcode_libdir_flag_spec_ld_CXX \
13460
 
    hardcode_libdir_separator_CXX \
13461
 
    hardcode_automatic_CXX \
13462
 
    module_cmds_CXX \
13463
 
    module_expsym_cmds_CXX \
13464
 
    lt_cv_prog_compiler_c_o_CXX \
13465
 
    exclude_expsyms_CXX \
13466
 
    include_expsyms_CXX; do
13467
 
 
13468
 
    case $var in
13469
 
    old_archive_cmds_CXX | \
13470
 
    old_archive_from_new_cmds_CXX | \
13471
 
    archive_cmds_CXX | \
13472
 
    archive_expsym_cmds_CXX | \
13473
 
    module_cmds_CXX | \
13474
 
    module_expsym_cmds_CXX | \
13475
 
    old_archive_from_expsyms_cmds_CXX | \
13476
 
    export_symbols_cmds_CXX | \
13477
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13478
 
    postinstall_cmds | postuninstall_cmds | \
13479
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13480
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13481
 
      # Double-quote double-evaled strings.
13482
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13483
 
      ;;
13484
 
    *)
13485
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13486
 
      ;;
13487
 
    esac
13488
 
  done
13489
 
 
13490
 
  case $lt_echo in
13491
 
  *'\$0 --fallback-echo"')
13492
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13493
 
    ;;
13494
 
  esac
13495
 
 
13496
 
cfgfile="$ofile"
13497
 
 
13498
 
  cat <<__EOF__ >> "$cfgfile"
13499
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13500
 
 
13501
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13502
 
 
13503
 
# Shell to use when invoking shell scripts.
13504
 
SHELL=$lt_SHELL
13505
 
 
13506
 
# Whether or not to build shared libraries.
13507
 
build_libtool_libs=$enable_shared
13508
 
 
13509
 
# Whether or not to build static libraries.
13510
 
build_old_libs=$enable_static
13511
 
 
13512
 
# Whether or not to add -lc for building shared libraries.
13513
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13514
 
 
13515
 
# Whether or not to disallow shared libs when runtime libs are static
13516
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13517
 
 
13518
 
# Whether or not to optimize for fast installation.
13519
 
fast_install=$enable_fast_install
13520
 
 
13521
 
# The host system.
13522
 
host_alias=$host_alias
13523
 
host=$host
13524
 
host_os=$host_os
13525
 
 
13526
 
# The build system.
13527
 
build_alias=$build_alias
13528
 
build=$build
13529
 
build_os=$build_os
13530
 
 
13531
 
# An echo program that does not interpret backslashes.
13532
 
echo=$lt_echo
13533
 
 
13534
 
# The archiver.
13535
 
AR=$lt_AR
13536
 
AR_FLAGS=$lt_AR_FLAGS
13537
 
 
13538
 
# A C compiler.
13539
 
LTCC=$lt_LTCC
13540
 
 
13541
 
# A language-specific compiler.
13542
 
CC=$lt_compiler_CXX
13543
 
 
13544
 
# Is the compiler the GNU C compiler?
13545
 
with_gcc=$GCC_CXX
13546
 
 
13547
 
# An ERE matcher.
13548
 
EGREP=$lt_EGREP
13549
 
 
13550
 
# The linker used to build libraries.
13551
 
LD=$lt_LD_CXX
13552
 
 
13553
 
# Whether we need hard or soft links.
13554
 
LN_S=$lt_LN_S
13555
 
 
13556
 
# A BSD-compatible nm program.
13557
 
NM=$lt_NM
13558
 
 
13559
 
# A symbol stripping program
13560
 
STRIP=$lt_STRIP
13561
 
 
13562
 
# Used to examine libraries when file_magic_cmd begins "file"
13563
 
MAGIC_CMD=$MAGIC_CMD
13564
 
 
13565
 
# Used on cygwin: DLL creation program.
13566
 
DLLTOOL="$DLLTOOL"
13567
 
 
13568
 
# Used on cygwin: object dumper.
13569
 
OBJDUMP="$OBJDUMP"
13570
 
 
13571
 
# Used on cygwin: assembler.
13572
 
AS="$AS"
13573
 
 
13574
 
# The name of the directory that contains temporary libtool files.
13575
 
objdir=$objdir
13576
 
 
13577
 
# How to create reloadable object files.
13578
 
reload_flag=$lt_reload_flag
13579
 
reload_cmds=$lt_reload_cmds
13580
 
 
13581
 
# How to pass a linker flag through the compiler.
13582
 
wl=$lt_lt_prog_compiler_wl_CXX
13583
 
 
13584
 
# Object file suffix (normally "o").
13585
 
objext="$ac_objext"
13586
 
 
13587
 
# Old archive suffix (normally "a").
13588
 
libext="$libext"
13589
 
 
13590
 
# Shared library suffix (normally ".so").
13591
 
shrext_cmds='$shrext_cmds'
13592
 
 
13593
 
# Executable file suffix (normally "").
13594
 
exeext="$exeext"
13595
 
 
13596
 
# Additional compiler flags for building library objects.
13597
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13598
 
pic_mode=$pic_mode
13599
 
 
13600
 
# What is the maximum length of a command?
13601
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13602
 
 
13603
 
# Does compiler simultaneously support -c and -o options?
13604
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13605
 
 
13606
 
# Must we lock files when doing compilation?
13607
 
need_locks=$lt_need_locks
13608
 
 
13609
 
# Do we need the lib prefix for modules?
13610
 
need_lib_prefix=$need_lib_prefix
13611
 
 
13612
 
# Do we need a version for libraries?
13613
 
need_version=$need_version
13614
 
 
13615
 
# Whether dlopen is supported.
13616
 
dlopen_support=$enable_dlopen
13617
 
 
13618
 
# Whether dlopen of programs is supported.
13619
 
dlopen_self=$enable_dlopen_self
13620
 
 
13621
 
# Whether dlopen of statically linked programs is supported.
13622
 
dlopen_self_static=$enable_dlopen_self_static
13623
 
 
13624
 
# Compiler flag to prevent dynamic linking.
13625
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13626
 
 
13627
 
# Compiler flag to turn off builtin functions.
13628
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13629
 
 
13630
 
# Compiler flag to allow reflexive dlopens.
13631
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13632
 
 
13633
 
# Compiler flag to generate shared objects directly from archives.
13634
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13635
 
 
13636
 
# Compiler flag to generate thread-safe objects.
13637
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13638
 
 
13639
 
# Library versioning type.
13640
 
version_type=$version_type
13641
 
 
13642
 
# Format of library name prefix.
13643
 
libname_spec=$lt_libname_spec
13644
 
 
13645
 
# List of archive names.  First name is the real one, the rest are links.
13646
 
# The last name is the one that the linker finds with -lNAME.
13647
 
library_names_spec=$lt_library_names_spec
13648
 
 
13649
 
# The coded name of the library, if different from the real name.
13650
 
soname_spec=$lt_soname_spec
13651
 
 
13652
 
# Commands used to build and install an old-style archive.
13653
 
RANLIB=$lt_RANLIB
13654
 
old_archive_cmds=$lt_old_archive_cmds_CXX
13655
 
old_postinstall_cmds=$lt_old_postinstall_cmds
13656
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13657
 
 
13658
 
# Create an old-style archive from a shared archive.
13659
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13660
 
 
13661
 
# Create a temporary old-style archive to link instead of a shared archive.
13662
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13663
 
 
13664
 
# Commands used to build and install a shared archive.
13665
 
archive_cmds=$lt_archive_cmds_CXX
13666
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13667
 
postinstall_cmds=$lt_postinstall_cmds
13668
 
postuninstall_cmds=$lt_postuninstall_cmds
13669
 
 
13670
 
# Commands used to build a loadable module (assumed same as above if empty)
13671
 
module_cmds=$lt_module_cmds_CXX
13672
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13673
 
 
13674
 
# Commands to strip libraries.
13675
 
old_striplib=$lt_old_striplib
13676
 
striplib=$lt_striplib
13677
 
 
13678
 
# Dependencies to place before the objects being linked to create a
13679
 
# shared library.
13680
 
predep_objects=$lt_predep_objects_CXX
13681
 
 
13682
 
# Dependencies to place after the objects being linked to create a
13683
 
# shared library.
13684
 
postdep_objects=$lt_postdep_objects_CXX
13685
 
 
13686
 
# Dependencies to place before the objects being linked to create a
13687
 
# shared library.
13688
 
predeps=$lt_predeps_CXX
13689
 
 
13690
 
# Dependencies to place after the objects being linked to create a
13691
 
# shared library.
13692
 
postdeps=$lt_postdeps_CXX
13693
 
 
13694
 
# The library search path used internally by the compiler when linking
13695
 
# a shared library.
13696
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13697
 
 
13698
 
# Method to check whether dependent libraries are shared objects.
13699
 
deplibs_check_method=$lt_deplibs_check_method
13700
 
 
13701
 
# Command to use when deplibs_check_method == file_magic.
13702
 
file_magic_cmd=$lt_file_magic_cmd
13703
 
 
13704
 
# Flag that allows shared libraries with undefined symbols to be built.
13705
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13706
 
 
13707
 
# Flag that forces no undefined symbols.
13708
 
no_undefined_flag=$lt_no_undefined_flag_CXX
13709
 
 
13710
 
# Commands used to finish a libtool library installation in a directory.
13711
 
finish_cmds=$lt_finish_cmds
13712
 
 
13713
 
# Same as above, but a single script fragment to be evaled but not shown.
13714
 
finish_eval=$lt_finish_eval
13715
 
 
13716
 
# Take the output of nm and produce a listing of raw symbols and C names.
13717
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13718
 
 
13719
 
# Transform the output of nm in a proper C declaration
13720
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13721
 
 
13722
 
# Transform the output of nm in a C name address pair
13723
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13724
 
 
13725
 
# This is the shared library runtime path variable.
13726
 
runpath_var=$runpath_var
13727
 
 
13728
 
# This is the shared library path variable.
13729
 
shlibpath_var=$shlibpath_var
13730
 
 
13731
 
# Is shlibpath searched before the hard-coded library search path?
13732
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13733
 
 
13734
 
# How to hardcode a shared library path into an executable.
13735
 
hardcode_action=$hardcode_action_CXX
13736
 
 
13737
 
# Whether we should hardcode library paths into libraries.
13738
 
hardcode_into_libs=$hardcode_into_libs
13739
 
 
13740
 
# Flag to hardcode \$libdir into a binary during linking.
13741
 
# This must work even if \$libdir does not exist.
13742
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13743
 
 
13744
 
# If ld is used when linking, flag to hardcode \$libdir into
13745
 
# a binary during linking. This must work even if \$libdir does
13746
 
# not exist.
13747
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13748
 
 
13749
 
# Whether we need a single -rpath flag with a separated argument.
13750
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13751
 
 
13752
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13753
 
# resulting binary.
13754
 
hardcode_direct=$hardcode_direct_CXX
13755
 
 
13756
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13757
 
# resulting binary.
13758
 
hardcode_minus_L=$hardcode_minus_L_CXX
13759
 
 
13760
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13761
 
# the resulting binary.
13762
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13763
 
 
13764
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
13765
 
# and all subsequent libraries and executables linked against it.
13766
 
hardcode_automatic=$hardcode_automatic_CXX
13767
 
 
13768
 
# Variables whose values should be saved in libtool wrapper scripts and
13769
 
# restored at relink time.
13770
 
variables_saved_for_relink="$variables_saved_for_relink"
13771
 
 
13772
 
# Whether libtool must link a program against all its dependency libraries.
13773
 
link_all_deplibs=$link_all_deplibs_CXX
13774
 
 
13775
 
# Compile-time system search path for libraries
13776
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13777
 
 
13778
 
# Run-time system search path for libraries
13779
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13780
 
 
13781
 
# Fix the shell variable \$srcfile for the compiler.
13782
 
fix_srcfile_path="$fix_srcfile_path_CXX"
13783
 
 
13784
 
# Set to yes if exported symbols are required.
13785
 
always_export_symbols=$always_export_symbols_CXX
13786
 
 
13787
 
# The commands to list exported symbols.
13788
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13789
 
 
13790
 
# The commands to extract the exported symbol list from a shared archive.
13791
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13792
 
 
13793
 
# Symbols that should not be listed in the preloaded symbols.
13794
 
exclude_expsyms=$lt_exclude_expsyms_CXX
13795
 
 
13796
 
# Symbols that must always be exported.
13797
 
include_expsyms=$lt_include_expsyms_CXX
13798
 
 
13799
 
# ### END LIBTOOL TAG CONFIG: $tagname
13800
 
 
13801
 
__EOF__
13802
 
 
13803
 
 
13804
 
else
13805
 
  # If there is no Makefile yet, we rely on a make rule to execute
13806
 
  # `config.status --recheck' to rerun these tests and create the
13807
 
  # libtool script then.
13808
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13809
 
  if test -f "$ltmain_in"; then
13810
 
    test -f Makefile && make "$ltmain"
13811
 
  fi
13812
 
fi
13813
 
 
13814
 
 
13815
 
ac_ext=c
13816
 
ac_cpp='$CPP $CPPFLAGS'
13817
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13820
 
 
13821
 
CC=$lt_save_CC
13822
 
LDCXX=$LD
13823
 
LD=$lt_save_LD
13824
 
GCC=$lt_save_GCC
13825
 
with_gnu_ldcxx=$with_gnu_ld
13826
 
with_gnu_ld=$lt_save_with_gnu_ld
13827
 
lt_cv_path_LDCXX=$lt_cv_path_LD
13828
 
lt_cv_path_LD=$lt_save_path_LD
13829
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13830
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13831
 
 
13832
 
        else
13833
 
          tagname=""
13834
 
        fi
13835
 
        ;;
13836
 
 
13837
 
      F77)
13838
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
13839
 
 
13840
 
ac_ext=f
13841
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13842
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13843
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13844
 
 
13845
 
 
13846
 
archive_cmds_need_lc_F77=no
13847
 
allow_undefined_flag_F77=
13848
 
always_export_symbols_F77=no
13849
 
archive_expsym_cmds_F77=
13850
 
export_dynamic_flag_spec_F77=
13851
 
hardcode_direct_F77=no
13852
 
hardcode_libdir_flag_spec_F77=
13853
 
hardcode_libdir_flag_spec_ld_F77=
13854
 
hardcode_libdir_separator_F77=
13855
 
hardcode_minus_L_F77=no
13856
 
hardcode_automatic_F77=no
13857
 
module_cmds_F77=
13858
 
module_expsym_cmds_F77=
13859
 
link_all_deplibs_F77=unknown
13860
 
old_archive_cmds_F77=$old_archive_cmds
13861
 
no_undefined_flag_F77=
13862
 
whole_archive_flag_spec_F77=
13863
 
enable_shared_with_static_runtimes_F77=no
13864
 
 
13865
 
# Source file extension for f77 test sources.
13866
 
ac_ext=f
13867
 
 
13868
 
# Object file extension for compiled f77 test sources.
13869
 
objext=o
13870
 
objext_F77=$objext
13871
 
 
13872
 
# Code to be used in simple compile tests
13873
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13874
 
 
13875
 
# Code to be used in simple link tests
13876
 
lt_simple_link_test_code="      program t\n      end\n"
13877
 
 
13878
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13879
 
 
13880
 
# If no C compiler was specified, use CC.
13881
 
LTCC=${LTCC-"$CC"}
13882
 
 
13883
 
# Allow CC to be a program name with arguments.
13884
 
compiler=$CC
13885
 
 
13886
 
 
13887
 
# save warnings/boilerplate of simple test code
13888
 
ac_outfile=conftest.$ac_objext
13889
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13890
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13891
 
_lt_compiler_boilerplate=`cat conftest.err`
13892
 
$rm conftest*
13893
 
 
13894
 
ac_outfile=conftest.$ac_objext
13895
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13896
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13897
 
_lt_linker_boilerplate=`cat conftest.err`
13898
 
$rm conftest*
13899
 
 
13900
 
 
13901
 
# Allow CC to be a program name with arguments.
13902
 
lt_save_CC="$CC"
13903
 
CC=${F77-"f77"}
13904
 
compiler=$CC
13905
 
compiler_F77=$CC
13906
 
for cc_temp in $compiler""; do
13907
 
  case $cc_temp in
13908
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13909
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13910
 
    \-*) ;;
13911
 
    *) break;;
13912
 
  esac
13913
 
done
13914
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13915
 
 
13916
 
 
13917
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13918
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13919
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13920
 
echo "${ECHO_T}$can_build_shared" >&6
13921
 
 
13922
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13923
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13924
 
test "$can_build_shared" = "no" && enable_shared=no
13925
 
 
13926
 
# On AIX, shared libraries and static libraries use the same namespace, and
13927
 
# are all built from PIC.
13928
 
case "$host_os" in
13929
 
aix3*)
13930
 
  test "$enable_shared" = yes && enable_static=no
13931
 
  if test -n "$RANLIB"; then
13932
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13933
 
    postinstall_cmds='$RANLIB $lib'
13934
 
  fi
13935
 
  ;;
13936
 
aix4* | aix5*)
13937
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13938
 
    test "$enable_shared" = yes && enable_static=no
13939
 
  fi
13940
 
  ;;
13941
 
esac
13942
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
13943
 
echo "${ECHO_T}$enable_shared" >&6
13944
 
 
13945
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13946
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13947
 
# Make sure either enable_shared or enable_static is yes.
13948
 
test "$enable_shared" = yes || enable_static=yes
13949
 
echo "$as_me:$LINENO: result: $enable_static" >&5
13950
 
echo "${ECHO_T}$enable_static" >&6
13951
 
 
13952
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13953
 
 
13954
 
GCC_F77="$G77"
13955
 
LD_F77="$LD"
13956
 
 
13957
 
lt_prog_compiler_wl_F77=
13958
 
lt_prog_compiler_pic_F77=
13959
 
lt_prog_compiler_static_F77=
13960
 
 
13961
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13962
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13963
 
 
13964
 
  if test "$GCC" = yes; then
13965
 
    lt_prog_compiler_wl_F77='-Wl,'
13966
 
    lt_prog_compiler_static_F77='-static'
13967
 
 
13968
 
    case $host_os in
13969
 
      aix*)
13970
 
      # All AIX code is PIC.
13971
 
      if test "$host_cpu" = ia64; then
13972
 
        # AIX 5 now supports IA64 processor
13973
 
        lt_prog_compiler_static_F77='-Bstatic'
13974
 
      fi
13975
 
      ;;
13976
 
 
13977
 
    amigaos*)
13978
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13979
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13980
 
      # like `-m68040'.
13981
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13982
 
      ;;
13983
 
 
13984
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13985
 
      # PIC is the default for these OSes.
13986
 
      ;;
13987
 
 
13988
 
    mingw* | pw32* | os2*)
13989
 
      # This hack is so that the source file can tell whether it is being
13990
 
      # built for inclusion in a dll (and should export symbols for example).
13991
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13992
 
      ;;
13993
 
 
13994
 
    darwin* | rhapsody*)
13995
 
      # PIC is the default on this platform
13996
 
      # Common symbols not allowed in MH_DYLIB files
13997
 
      lt_prog_compiler_pic_F77='-fno-common'
13998
 
      ;;
13999
 
 
14000
 
    msdosdjgpp*)
14001
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14002
 
      # on systems that don't support them.
14003
 
      lt_prog_compiler_can_build_shared_F77=no
14004
 
      enable_shared=no
14005
 
      ;;
14006
 
 
14007
 
    sysv4*MP*)
14008
 
      if test -d /usr/nec; then
14009
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14010
 
      fi
14011
 
      ;;
14012
 
 
14013
 
    hpux*)
14014
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14015
 
      # not for PA HP-UX.
14016
 
      case "$host_cpu" in
14017
 
      hppa*64*|ia64*)
14018
 
        # +Z the default
14019
 
        ;;
14020
 
      *)
14021
 
        lt_prog_compiler_pic_F77='-fPIC'
14022
 
        ;;
14023
 
      esac
14024
 
      ;;
14025
 
 
14026
 
    *)
14027
 
      lt_prog_compiler_pic_F77='-fPIC'
14028
 
      ;;
14029
 
    esac
14030
 
  else
14031
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14032
 
    case $host_os in
14033
 
    aix*)
14034
 
      lt_prog_compiler_wl_F77='-Wl,'
14035
 
      if test "$host_cpu" = ia64; then
14036
 
        # AIX 5 now supports IA64 processor
14037
 
        lt_prog_compiler_static_F77='-Bstatic'
14038
 
      else
14039
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14040
 
      fi
14041
 
      ;;
14042
 
      darwin*)
14043
 
        # PIC is the default on this platform
14044
 
        # Common symbols not allowed in MH_DYLIB files
14045
 
       case $cc_basename in
14046
 
         xlc*)
14047
 
         lt_prog_compiler_pic_F77='-qnocommon'
14048
 
         lt_prog_compiler_wl_F77='-Wl,'
14049
 
         ;;
14050
 
       esac
14051
 
       ;;
14052
 
 
14053
 
    mingw* | pw32* | os2*)
14054
 
      # This hack is so that the source file can tell whether it is being
14055
 
      # built for inclusion in a dll (and should export symbols for example).
14056
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14057
 
      ;;
14058
 
 
14059
 
    hpux9* | hpux10* | hpux11*)
14060
 
      lt_prog_compiler_wl_F77='-Wl,'
14061
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14062
 
      # not for PA HP-UX.
14063
 
      case "$host_cpu" in
14064
 
      hppa*64*|ia64*)
14065
 
        # +Z the default
14066
 
        ;;
14067
 
      *)
14068
 
        lt_prog_compiler_pic_F77='+Z'
14069
 
        ;;
14070
 
      esac
14071
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14072
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14073
 
      ;;
14074
 
 
14075
 
    irix5* | irix6* | nonstopux*)
14076
 
      lt_prog_compiler_wl_F77='-Wl,'
14077
 
      # PIC (with -KPIC) is the default.
14078
 
      lt_prog_compiler_static_F77='-non_shared'
14079
 
      ;;
14080
 
 
14081
 
    newsos6)
14082
 
      lt_prog_compiler_pic_F77='-KPIC'
14083
 
      lt_prog_compiler_static_F77='-Bstatic'
14084
 
      ;;
14085
 
 
14086
 
    linux*)
14087
 
      case $cc_basename in
14088
 
      icc* | ecc*)
14089
 
        lt_prog_compiler_wl_F77='-Wl,'
14090
 
        lt_prog_compiler_pic_F77='-KPIC'
14091
 
        lt_prog_compiler_static_F77='-static'
14092
 
        ;;
14093
 
      pgcc* | pgf77* | pgf90*)
14094
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14095
 
        # which looks to be a dead project)
14096
 
        lt_prog_compiler_wl_F77='-Wl,'
14097
 
        lt_prog_compiler_pic_F77='-fpic'
14098
 
        lt_prog_compiler_static_F77='-static'
14099
 
        ;;
14100
 
      ccc*)
14101
 
        lt_prog_compiler_wl_F77='-Wl,'
14102
 
        # All Alpha code is PIC.
14103
 
        lt_prog_compiler_static_F77='-non_shared'
14104
 
        ;;
14105
 
      esac
14106
 
      ;;
14107
 
 
14108
 
    osf3* | osf4* | osf5*)
14109
 
      lt_prog_compiler_wl_F77='-Wl,'
14110
 
      # All OSF/1 code is PIC.
14111
 
      lt_prog_compiler_static_F77='-non_shared'
14112
 
      ;;
14113
 
 
14114
 
    sco3.2v5*)
14115
 
      lt_prog_compiler_pic_F77='-Kpic'
14116
 
      lt_prog_compiler_static_F77='-dn'
14117
 
      ;;
14118
 
 
14119
 
    solaris*)
14120
 
      lt_prog_compiler_pic_F77='-KPIC'
14121
 
      lt_prog_compiler_static_F77='-Bstatic'
14122
 
      case $cc_basename in
14123
 
      f77* | f90* | f95*)
14124
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14125
 
      *)
14126
 
        lt_prog_compiler_wl_F77='-Wl,';;
14127
 
      esac
14128
 
      ;;
14129
 
 
14130
 
    sunos4*)
14131
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14132
 
      lt_prog_compiler_pic_F77='-PIC'
14133
 
      lt_prog_compiler_static_F77='-Bstatic'
14134
 
      ;;
14135
 
 
14136
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14137
 
      lt_prog_compiler_wl_F77='-Wl,'
14138
 
      lt_prog_compiler_pic_F77='-KPIC'
14139
 
      lt_prog_compiler_static_F77='-Bstatic'
14140
 
      ;;
14141
 
 
14142
 
    sysv4*MP*)
14143
 
      if test -d /usr/nec ;then
14144
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14145
 
        lt_prog_compiler_static_F77='-Bstatic'
14146
 
      fi
14147
 
      ;;
14148
 
 
14149
 
    unicos*)
14150
 
      lt_prog_compiler_wl_F77='-Wl,'
14151
 
      lt_prog_compiler_can_build_shared_F77=no
14152
 
      ;;
14153
 
 
14154
 
    uts4*)
14155
 
      lt_prog_compiler_pic_F77='-pic'
14156
 
      lt_prog_compiler_static_F77='-Bstatic'
14157
 
      ;;
14158
 
 
14159
 
    *)
14160
 
      lt_prog_compiler_can_build_shared_F77=no
14161
 
      ;;
14162
 
    esac
14163
 
  fi
14164
 
 
14165
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14166
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14167
 
 
14168
 
#
14169
 
# Check to make sure the PIC flag actually works.
14170
 
#
14171
 
if test -n "$lt_prog_compiler_pic_F77"; then
14172
 
 
14173
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14174
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14175
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14176
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14177
 
else
14178
 
  lt_prog_compiler_pic_works_F77=no
14179
 
  ac_outfile=conftest.$ac_objext
14180
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14181
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14182
 
   # Insert the option either (1) after the last *FLAGS variable, or
14183
 
   # (2) before a word containing "conftest.", or (3) at the end.
14184
 
   # Note that $ac_compile itself does not contain backslashes and begins
14185
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14186
 
   # The option is referenced via a variable to avoid confusing sed.
14187
 
   lt_compile=`echo "$ac_compile" | $SED \
14188
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14189
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190
 
   -e 's:$: $lt_compiler_flag:'`
14191
 
   (eval echo "\"\$as_me:14191: $lt_compile\"" >&5)
14192
 
   (eval "$lt_compile" 2>conftest.err)
14193
 
   ac_status=$?
14194
 
   cat conftest.err >&5
14195
 
   echo "$as_me:14195: \$? = $ac_status" >&5
14196
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14197
 
     # The compiler can only warn and ignore the option if not recognized
14198
 
     # So say no if there are warnings other than the usual output.
14199
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14200
 
     $SED '/^$/d' conftest.err >conftest.er2
14201
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14202
 
       lt_prog_compiler_pic_works_F77=yes
14203
 
     fi
14204
 
   fi
14205
 
   $rm conftest*
14206
 
 
14207
 
fi
14208
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14209
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14210
 
 
14211
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14212
 
    case $lt_prog_compiler_pic_F77 in
14213
 
     "" | " "*) ;;
14214
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14215
 
     esac
14216
 
else
14217
 
    lt_prog_compiler_pic_F77=
14218
 
     lt_prog_compiler_can_build_shared_F77=no
14219
 
fi
14220
 
 
14221
 
fi
14222
 
case "$host_os" in
14223
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14224
 
  *djgpp*)
14225
 
    lt_prog_compiler_pic_F77=
14226
 
    ;;
14227
 
  *)
14228
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14229
 
    ;;
14230
 
esac
14231
 
 
14232
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14233
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14234
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14235
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14236
 
else
14237
 
  lt_cv_prog_compiler_c_o_F77=no
14238
 
   $rm -r conftest 2>/dev/null
14239
 
   mkdir conftest
14240
 
   cd conftest
14241
 
   mkdir out
14242
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14243
 
 
14244
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14245
 
   # Insert the option either (1) after the last *FLAGS variable, or
14246
 
   # (2) before a word containing "conftest.", or (3) at the end.
14247
 
   # Note that $ac_compile itself does not contain backslashes and begins
14248
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14249
 
   lt_compile=`echo "$ac_compile" | $SED \
14250
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14251
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14252
 
   -e 's:$: $lt_compiler_flag:'`
14253
 
   (eval echo "\"\$as_me:14253: $lt_compile\"" >&5)
14254
 
   (eval "$lt_compile" 2>out/conftest.err)
14255
 
   ac_status=$?
14256
 
   cat out/conftest.err >&5
14257
 
   echo "$as_me:14257: \$? = $ac_status" >&5
14258
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14259
 
   then
14260
 
     # The compiler can only warn and ignore the option if not recognized
14261
 
     # So say no if there are warnings
14262
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14263
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
14264
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14265
 
       lt_cv_prog_compiler_c_o_F77=yes
14266
 
     fi
14267
 
   fi
14268
 
   chmod u+w .
14269
 
   $rm conftest*
14270
 
   # SGI C++ compiler will create directory out/ii_files/ for
14271
 
   # template instantiation
14272
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14273
 
   $rm out/* && rmdir out
14274
 
   cd ..
14275
 
   rmdir conftest
14276
 
   $rm conftest*
14277
 
 
14278
 
fi
14279
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14280
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14281
 
 
14282
 
 
14283
 
hard_links="nottested"
14284
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14285
 
  # do not overwrite the value of need_locks provided by the user
14286
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14287
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14288
 
  hard_links=yes
14289
 
  $rm conftest*
14290
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14291
 
  touch conftest.a
14292
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14293
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14294
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
14295
 
echo "${ECHO_T}$hard_links" >&6
14296
 
  if test "$hard_links" = no; then
14297
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14298
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14299
 
    need_locks=warn
14300
 
  fi
14301
 
else
14302
 
  need_locks=no
14303
 
fi
14304
 
 
14305
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14306
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14307
 
 
14308
 
  runpath_var=
14309
 
  allow_undefined_flag_F77=
14310
 
  enable_shared_with_static_runtimes_F77=no
14311
 
  archive_cmds_F77=
14312
 
  archive_expsym_cmds_F77=
14313
 
  old_archive_From_new_cmds_F77=
14314
 
  old_archive_from_expsyms_cmds_F77=
14315
 
  export_dynamic_flag_spec_F77=
14316
 
  whole_archive_flag_spec_F77=
14317
 
  thread_safe_flag_spec_F77=
14318
 
  hardcode_libdir_flag_spec_F77=
14319
 
  hardcode_libdir_flag_spec_ld_F77=
14320
 
  hardcode_libdir_separator_F77=
14321
 
  hardcode_direct_F77=no
14322
 
  hardcode_minus_L_F77=no
14323
 
  hardcode_shlibpath_var_F77=unsupported
14324
 
  link_all_deplibs_F77=unknown
14325
 
  hardcode_automatic_F77=no
14326
 
  module_cmds_F77=
14327
 
  module_expsym_cmds_F77=
14328
 
  always_export_symbols_F77=no
14329
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14330
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14331
 
  # included in the symbol list
14332
 
  include_expsyms_F77=
14333
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14334
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14335
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14336
 
  # as well as any symbol that contains `d'.
14337
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14338
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14339
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14340
 
  # the symbol is explicitly referenced.  Since portable code cannot
14341
 
  # rely on this symbol name, it's probably fine to never include it in
14342
 
  # preloaded symbol tables.
14343
 
  extract_expsyms_cmds=
14344
 
  # Just being paranoid about ensuring that cc_basename is set.
14345
 
  for cc_temp in $compiler""; do
14346
 
  case $cc_temp in
14347
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14348
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14349
 
    \-*) ;;
14350
 
    *) break;;
14351
 
  esac
14352
 
done
14353
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14354
 
 
14355
 
  case $host_os in
14356
 
  cygwin* | mingw* | pw32*)
14357
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14358
 
    # When not using gcc, we currently assume that we are using
14359
 
    # Microsoft Visual C++.
14360
 
    if test "$GCC" != yes; then
14361
 
      with_gnu_ld=no
14362
 
    fi
14363
 
    ;;
14364
 
  openbsd*)
14365
 
    with_gnu_ld=no
14366
 
    ;;
14367
 
  esac
14368
 
 
14369
 
  ld_shlibs_F77=yes
14370
 
  if test "$with_gnu_ld" = yes; then
14371
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14372
 
    wlarc='${wl}'
14373
 
 
14374
 
    # Set some defaults for GNU ld with shared library support. These
14375
 
    # are reset later if shared libraries are not supported. Putting them
14376
 
    # here allows them to be overridden if necessary.
14377
 
    runpath_var=LD_RUN_PATH
14378
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14379
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14380
 
    # ancient GNU ld didn't support --whole-archive et. al.
14381
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14382
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14383
 
      else
14384
 
        whole_archive_flag_spec_F77=
14385
 
    fi
14386
 
    supports_anon_versioning=no
14387
 
    case `$LD -v 2>/dev/null` in
14388
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14389
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14390
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14391
 
      *\ 2.11.*) ;; # other 2.11 versions
14392
 
      *) supports_anon_versioning=yes ;;
14393
 
    esac
14394
 
 
14395
 
    # See if GNU ld supports shared libraries.
14396
 
    case $host_os in
14397
 
    aix3* | aix4* | aix5*)
14398
 
      # On AIX/PPC, the GNU linker is very broken
14399
 
      if test "$host_cpu" != ia64; then
14400
 
        ld_shlibs_F77=no
14401
 
        cat <<EOF 1>&2
14402
 
 
14403
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14404
 
*** to be unable to reliably create shared libraries on AIX.
14405
 
*** Therefore, libtool is disabling shared libraries support.  If you
14406
 
*** really care for shared libraries, you may want to modify your PATH
14407
 
*** so that a non-GNU linker is found, and then restart.
14408
 
 
14409
 
EOF
14410
 
      fi
14411
 
      ;;
14412
 
 
14413
 
    amigaos*)
14414
 
      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)'
14415
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14416
 
      hardcode_minus_L_F77=yes
14417
 
 
14418
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14419
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14420
 
      # to version 4, is to share data among multiple programs linked
14421
 
      # with the same dynamic library.  Since this doesn't match the
14422
 
      # behavior of shared libraries on other platforms, we can't use
14423
 
      # them.
14424
 
      ld_shlibs_F77=no
14425
 
      ;;
14426
 
 
14427
 
    beos*)
14428
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14429
 
        allow_undefined_flag_F77=unsupported
14430
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14431
 
        # support --undefined.  This deserves some investigation.  FIXME
14432
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14433
 
      else
14434
 
        ld_shlibs_F77=no
14435
 
      fi
14436
 
      ;;
14437
 
 
14438
 
    cygwin* | mingw* | pw32*)
14439
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14440
 
      # as there is no search path for DLLs.
14441
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14442
 
      allow_undefined_flag_F77=unsupported
14443
 
      always_export_symbols_F77=no
14444
 
      enable_shared_with_static_runtimes_F77=yes
14445
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14446
 
 
14447
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14448
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14449
 
        # If the export-symbols file already is a .def file (1st line
14450
 
        # is EXPORTS), use it as is; otherwise, prepend...
14451
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14452
 
          cp $export_symbols $output_objdir/$soname.def;
14453
 
        else
14454
 
          echo EXPORTS > $output_objdir/$soname.def;
14455
 
          cat $export_symbols >> $output_objdir/$soname.def;
14456
 
        fi~
14457
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14458
 
      else
14459
 
        ld_shlibs_F77=no
14460
 
      fi
14461
 
      ;;
14462
 
 
14463
 
    linux*)
14464
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14465
 
        tmp_addflag=
14466
 
        case $cc_basename,$host_cpu in
14467
 
        pgcc*)                          # Portland Group C compiler
14468
 
          whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14469
 
          tmp_addflag=' $pic_flag'
14470
 
          ;;
14471
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14472
 
          whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14473
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14474
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14475
 
          tmp_addflag=' -i_dynamic' ;;
14476
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14477
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14478
 
        ifc* | ifort*)                  # Intel Fortran compiler
14479
 
          tmp_addflag=' -nofor_main' ;;
14480
 
        esac
14481
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14482
 
 
14483
 
        if test $supports_anon_versioning = yes; then
14484
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14485
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14486
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14487
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14488
 
        fi
14489
 
      else
14490
 
        ld_shlibs_F77=no
14491
 
      fi
14492
 
      ;;
14493
 
 
14494
 
    netbsd*)
14495
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14496
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14497
 
        wlarc=
14498
 
      else
14499
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14500
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14501
 
      fi
14502
 
      ;;
14503
 
 
14504
 
    solaris* | sysv5*)
14505
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14506
 
        ld_shlibs_F77=no
14507
 
        cat <<EOF 1>&2
14508
 
 
14509
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14510
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14511
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14512
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14513
 
*** your PATH or compiler configuration so that the native linker is
14514
 
*** used, and then restart.
14515
 
 
14516
 
EOF
14517
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14518
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14519
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14520
 
      else
14521
 
        ld_shlibs_F77=no
14522
 
      fi
14523
 
      ;;
14524
 
 
14525
 
    sunos4*)
14526
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14527
 
      wlarc=
14528
 
      hardcode_direct_F77=yes
14529
 
      hardcode_shlibpath_var_F77=no
14530
 
      ;;
14531
 
 
14532
 
    *)
14533
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14536
 
      else
14537
 
        ld_shlibs_F77=no
14538
 
      fi
14539
 
      ;;
14540
 
    esac
14541
 
 
14542
 
    if test "$ld_shlibs_F77" = no; then
14543
 
      runpath_var=
14544
 
      hardcode_libdir_flag_spec_F77=
14545
 
      export_dynamic_flag_spec_F77=
14546
 
      whole_archive_flag_spec_F77=
14547
 
    fi
14548
 
  else
14549
 
    # PORTME fill in a description of your system's linker (not GNU ld)
14550
 
    case $host_os in
14551
 
    aix3*)
14552
 
      allow_undefined_flag_F77=unsupported
14553
 
      always_export_symbols_F77=yes
14554
 
      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'
14555
 
      # Note: this linker hardcodes the directories in LIBPATH if there
14556
 
      # are no directories specified by -L.
14557
 
      hardcode_minus_L_F77=yes
14558
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
14559
 
        # Neither direct hardcoding nor static linking is supported with a
14560
 
        # broken collect2.
14561
 
        hardcode_direct_F77=unsupported
14562
 
      fi
14563
 
      ;;
14564
 
 
14565
 
    aix4* | aix5*)
14566
 
      if test "$host_cpu" = ia64; then
14567
 
        # On IA64, the linker does run time linking by default, so we don't
14568
 
        # have to do anything special.
14569
 
        aix_use_runtimelinking=no
14570
 
        exp_sym_flag='-Bexport'
14571
 
        no_entry_flag=""
14572
 
      else
14573
 
        # If we're using GNU nm, then we don't want the "-C" option.
14574
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14575
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14576
 
          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'
14577
 
        else
14578
 
          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'
14579
 
        fi
14580
 
        aix_use_runtimelinking=no
14581
 
 
14582
 
        # Test if we are trying to use run time linking or normal
14583
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14584
 
        # need to do runtime linking.
14585
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14586
 
          for ld_flag in $LDFLAGS; do
14587
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14588
 
            aix_use_runtimelinking=yes
14589
 
            break
14590
 
          fi
14591
 
          done
14592
 
        esac
14593
 
 
14594
 
        exp_sym_flag='-bexport'
14595
 
        no_entry_flag='-bnoentry'
14596
 
      fi
14597
 
 
14598
 
      # When large executables or shared objects are built, AIX ld can
14599
 
      # have problems creating the table of contents.  If linking a library
14600
 
      # or program results in "error TOC overflow" add -mminimal-toc to
14601
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14602
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14603
 
 
14604
 
      archive_cmds_F77=''
14605
 
      hardcode_direct_F77=yes
14606
 
      hardcode_libdir_separator_F77=':'
14607
 
      link_all_deplibs_F77=yes
14608
 
 
14609
 
      if test "$GCC" = yes; then
14610
 
        case $host_os in aix4.[012]|aix4.[012].*)
14611
 
        # We only want to do this on AIX 4.2 and lower, the check
14612
 
        # below for broken collect2 doesn't work under 4.3+
14613
 
          collect2name=`${CC} -print-prog-name=collect2`
14614
 
          if test -f "$collect2name" && \
14615
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14616
 
          then
14617
 
          # We have reworked collect2
14618
 
          hardcode_direct_F77=yes
14619
 
          else
14620
 
          # We have old collect2
14621
 
          hardcode_direct_F77=unsupported
14622
 
          # It fails to find uninstalled libraries when the uninstalled
14623
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
14624
 
          # to unsupported forces relinking
14625
 
          hardcode_minus_L_F77=yes
14626
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14627
 
          hardcode_libdir_separator_F77=
14628
 
          fi
14629
 
        esac
14630
 
        shared_flag='-shared'
14631
 
        if test "$aix_use_runtimelinking" = yes; then
14632
 
          shared_flag="$shared_flag "'${wl}-G'
14633
 
        fi
14634
 
      else
14635
 
        # not using gcc
14636
 
        if test "$host_cpu" = ia64; then
14637
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14638
 
        # chokes on -Wl,-G. The following line is correct:
14639
 
          shared_flag='-G'
14640
 
        else
14641
 
        if test "$aix_use_runtimelinking" = yes; then
14642
 
            shared_flag='${wl}-G'
14643
 
          else
14644
 
            shared_flag='${wl}-bM:SRE'
14645
 
        fi
14646
 
        fi
14647
 
      fi
14648
 
 
14649
 
      # It seems that -bexpall does not export symbols beginning with
14650
 
      # underscore (_), so it is better to generate a list of symbols to export.
14651
 
      always_export_symbols_F77=yes
14652
 
      if test "$aix_use_runtimelinking" = yes; then
14653
 
        # Warning - without using the other runtime loading flags (-brtl),
14654
 
        # -berok will link without error, but may produce a broken library.
14655
 
        allow_undefined_flag_F77='-berok'
14656
 
       # Determine the default libpath from the value encoded in an empty executable.
14657
 
       cat >conftest.$ac_ext <<_ACEOF
14658
 
      program main
14659
 
 
14660
 
      end
14661
 
_ACEOF
14662
 
rm -f conftest.$ac_objext conftest$ac_exeext
14663
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14664
 
  (eval $ac_link) 2>conftest.er1
14665
 
  ac_status=$?
14666
 
  grep -v '^ *+' conftest.er1 >conftest.err
14667
 
  rm -f conftest.er1
14668
 
  cat conftest.err >&5
14669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670
 
  (exit $ac_status); } &&
14671
 
         { ac_try='test -z "$ac_f77_werror_flag"
14672
 
                         || test ! -s conftest.err'
14673
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674
 
  (eval $ac_try) 2>&5
14675
 
  ac_status=$?
14676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677
 
  (exit $ac_status); }; } &&
14678
 
         { ac_try='test -s conftest$ac_exeext'
14679
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680
 
  (eval $ac_try) 2>&5
14681
 
  ac_status=$?
14682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683
 
  (exit $ac_status); }; }; then
14684
 
 
14685
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14686
 
}'`
14687
 
# Check for a 64-bit object if we didn't find anything.
14688
 
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; }
14689
 
}'`; fi
14690
 
else
14691
 
  echo "$as_me: failed program was:" >&5
14692
 
sed 's/^/| /' conftest.$ac_ext >&5
14693
 
 
14694
 
fi
14695
 
rm -f conftest.err conftest.$ac_objext \
14696
 
      conftest$ac_exeext conftest.$ac_ext
14697
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14698
 
 
14699
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14700
 
        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"
14701
 
       else
14702
 
        if test "$host_cpu" = ia64; then
14703
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14704
 
          allow_undefined_flag_F77="-z nodefs"
14705
 
          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"
14706
 
        else
14707
 
         # Determine the default libpath from the value encoded in an empty executable.
14708
 
         cat >conftest.$ac_ext <<_ACEOF
14709
 
      program main
14710
 
 
14711
 
      end
14712
 
_ACEOF
14713
 
rm -f conftest.$ac_objext conftest$ac_exeext
14714
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14715
 
  (eval $ac_link) 2>conftest.er1
14716
 
  ac_status=$?
14717
 
  grep -v '^ *+' conftest.er1 >conftest.err
14718
 
  rm -f conftest.er1
14719
 
  cat conftest.err >&5
14720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721
 
  (exit $ac_status); } &&
14722
 
         { ac_try='test -z "$ac_f77_werror_flag"
14723
 
                         || test ! -s conftest.err'
14724
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725
 
  (eval $ac_try) 2>&5
14726
 
  ac_status=$?
14727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728
 
  (exit $ac_status); }; } &&
14729
 
         { ac_try='test -s conftest$ac_exeext'
14730
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731
 
  (eval $ac_try) 2>&5
14732
 
  ac_status=$?
14733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734
 
  (exit $ac_status); }; }; then
14735
 
 
14736
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14737
 
}'`
14738
 
# Check for a 64-bit object if we didn't find anything.
14739
 
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; }
14740
 
}'`; fi
14741
 
else
14742
 
  echo "$as_me: failed program was:" >&5
14743
 
sed 's/^/| /' conftest.$ac_ext >&5
14744
 
 
14745
 
fi
14746
 
rm -f conftest.err conftest.$ac_objext \
14747
 
      conftest$ac_exeext conftest.$ac_ext
14748
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14749
 
 
14750
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14751
 
          # Warning - without using the other run time loading flags,
14752
 
          # -berok will link without error, but may produce a broken library.
14753
 
          no_undefined_flag_F77=' ${wl}-bernotok'
14754
 
          allow_undefined_flag_F77=' ${wl}-berok'
14755
 
          # -bexpall does not export symbols beginning with underscore (_)
14756
 
          always_export_symbols_F77=yes
14757
 
          # Exported symbols can be pulled into shared objects from archives
14758
 
          whole_archive_flag_spec_F77=' '
14759
 
          archive_cmds_need_lc_F77=yes
14760
 
          # This is similar to how AIX traditionally builds it's shared libraries.
14761
 
          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'
14762
 
        fi
14763
 
      fi
14764
 
      ;;
14765
 
 
14766
 
    amigaos*)
14767
 
      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)'
14768
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14769
 
      hardcode_minus_L_F77=yes
14770
 
      # see comment about different semantics on the GNU ld section
14771
 
      ld_shlibs_F77=no
14772
 
      ;;
14773
 
 
14774
 
    bsdi[45]*)
14775
 
      export_dynamic_flag_spec_F77=-rdynamic
14776
 
      ;;
14777
 
 
14778
 
    cygwin* | mingw* | pw32*)
14779
 
      # When not using gcc, we currently assume that we are using
14780
 
      # Microsoft Visual C++.
14781
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14782
 
      # no search path for DLLs.
14783
 
      hardcode_libdir_flag_spec_F77=' '
14784
 
      allow_undefined_flag_F77=unsupported
14785
 
      # Tell ltmain to make .lib files, not .a files.
14786
 
      libext=lib
14787
 
      # Tell ltmain to make .dll files, not .so files.
14788
 
      shrext_cmds=".dll"
14789
 
      # FIXME: Setting linknames here is a bad hack.
14790
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14791
 
      # The linker will automatically build a .lib file if we build a DLL.
14792
 
      old_archive_From_new_cmds_F77='true'
14793
 
      # FIXME: Should let the user specify the lib program.
14794
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14795
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14796
 
      enable_shared_with_static_runtimes_F77=yes
14797
 
      ;;
14798
 
 
14799
 
    darwin* | rhapsody*)
14800
 
      case "$host_os" in
14801
 
        rhapsody* | darwin1.[012])
14802
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14803
 
         ;;
14804
 
       *) # Darwin 1.3 on
14805
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14806
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14807
 
         else
14808
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
14809
 
             10.[012])
14810
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14811
 
               ;;
14812
 
             10.*)
14813
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14814
 
               ;;
14815
 
           esac
14816
 
         fi
14817
 
         ;;
14818
 
      esac
14819
 
      archive_cmds_need_lc_F77=no
14820
 
      hardcode_direct_F77=no
14821
 
      hardcode_automatic_F77=yes
14822
 
      hardcode_shlibpath_var_F77=unsupported
14823
 
      whole_archive_flag_spec_F77=''
14824
 
      link_all_deplibs_F77=yes
14825
 
    if test "$GCC" = yes ; then
14826
 
        output_verbose_link_cmd='echo'
14827
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14828
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14829
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14830
 
      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}'
14831
 
      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}'
14832
 
    else
14833
 
      case $cc_basename in
14834
 
        xlc*)
14835
 
         output_verbose_link_cmd='echo'
14836
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14837
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14838
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14839
 
         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}'
14840
 
          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}'
14841
 
          ;;
14842
 
       *)
14843
 
         ld_shlibs_F77=no
14844
 
          ;;
14845
 
      esac
14846
 
    fi
14847
 
      ;;
14848
 
 
14849
 
    dgux*)
14850
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14851
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14852
 
      hardcode_shlibpath_var_F77=no
14853
 
      ;;
14854
 
 
14855
 
    freebsd1*)
14856
 
      ld_shlibs_F77=no
14857
 
      ;;
14858
 
 
14859
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14860
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14861
 
    # does not break anything, and helps significantly (at the cost of a little
14862
 
    # extra space).
14863
 
    freebsd2.2*)
14864
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14865
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14866
 
      hardcode_direct_F77=yes
14867
 
      hardcode_shlibpath_var_F77=no
14868
 
      ;;
14869
 
 
14870
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14871
 
    freebsd2*)
14872
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14873
 
      hardcode_direct_F77=yes
14874
 
      hardcode_minus_L_F77=yes
14875
 
      hardcode_shlibpath_var_F77=no
14876
 
      ;;
14877
 
 
14878
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14879
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
14880
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14881
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14882
 
      hardcode_direct_F77=yes
14883
 
      hardcode_shlibpath_var_F77=no
14884
 
      ;;
14885
 
 
14886
 
    hpux9*)
14887
 
      if test "$GCC" = yes; then
14888
 
        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'
14889
 
      else
14890
 
        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'
14891
 
      fi
14892
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14893
 
      hardcode_libdir_separator_F77=:
14894
 
      hardcode_direct_F77=yes
14895
 
 
14896
 
      # hardcode_minus_L: Not really in the search PATH,
14897
 
      # but as the default location of the library.
14898
 
      hardcode_minus_L_F77=yes
14899
 
      export_dynamic_flag_spec_F77='${wl}-E'
14900
 
      ;;
14901
 
 
14902
 
    hpux10* | hpux11*)
14903
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14904
 
        case "$host_cpu" in
14905
 
        hppa*64*|ia64*)
14906
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14907
 
          ;;
14908
 
        *)
14909
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14910
 
          ;;
14911
 
        esac
14912
 
      else
14913
 
        case "$host_cpu" in
14914
 
        hppa*64*|ia64*)
14915
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14916
 
          ;;
14917
 
        *)
14918
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14919
 
          ;;
14920
 
        esac
14921
 
      fi
14922
 
      if test "$with_gnu_ld" = no; then
14923
 
        case "$host_cpu" in
14924
 
        hppa*64*)
14925
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14926
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14927
 
          hardcode_libdir_separator_F77=:
14928
 
          hardcode_direct_F77=no
14929
 
          hardcode_shlibpath_var_F77=no
14930
 
          ;;
14931
 
        ia64*)
14932
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14933
 
          hardcode_direct_F77=no
14934
 
          hardcode_shlibpath_var_F77=no
14935
 
 
14936
 
          # hardcode_minus_L: Not really in the search PATH,
14937
 
          # but as the default location of the library.
14938
 
          hardcode_minus_L_F77=yes
14939
 
          ;;
14940
 
        *)
14941
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14942
 
          hardcode_libdir_separator_F77=:
14943
 
          hardcode_direct_F77=yes
14944
 
          export_dynamic_flag_spec_F77='${wl}-E'
14945
 
 
14946
 
          # hardcode_minus_L: Not really in the search PATH,
14947
 
          # but as the default location of the library.
14948
 
          hardcode_minus_L_F77=yes
14949
 
          ;;
14950
 
        esac
14951
 
      fi
14952
 
      ;;
14953
 
 
14954
 
    irix5* | irix6* | nonstopux*)
14955
 
      if test "$GCC" = yes; then
14956
 
        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'
14957
 
      else
14958
 
        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'
14959
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14960
 
      fi
14961
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14962
 
      hardcode_libdir_separator_F77=:
14963
 
      link_all_deplibs_F77=yes
14964
 
      ;;
14965
 
 
14966
 
    netbsd*)
14967
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14968
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14969
 
      else
14970
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14971
 
      fi
14972
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14973
 
      hardcode_direct_F77=yes
14974
 
      hardcode_shlibpath_var_F77=no
14975
 
      ;;
14976
 
 
14977
 
    newsos6)
14978
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979
 
      hardcode_direct_F77=yes
14980
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14981
 
      hardcode_libdir_separator_F77=:
14982
 
      hardcode_shlibpath_var_F77=no
14983
 
      ;;
14984
 
 
14985
 
    openbsd*)
14986
 
      hardcode_direct_F77=yes
14987
 
      hardcode_shlibpath_var_F77=no
14988
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14989
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14990
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14991
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14992
 
        export_dynamic_flag_spec_F77='${wl}-E'
14993
 
      else
14994
 
       case $host_os in
14995
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14996
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14997
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14998
 
           ;;
14999
 
         *)
15000
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15001
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15002
 
           ;;
15003
 
       esac
15004
 
      fi
15005
 
      ;;
15006
 
 
15007
 
    os2*)
15008
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15009
 
      hardcode_minus_L_F77=yes
15010
 
      allow_undefined_flag_F77=unsupported
15011
 
      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'
15012
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15013
 
      ;;
15014
 
 
15015
 
    osf3*)
15016
 
      if test "$GCC" = yes; then
15017
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15018
 
        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'
15019
 
      else
15020
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15021
 
        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'
15022
 
      fi
15023
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15024
 
      hardcode_libdir_separator_F77=:
15025
 
      ;;
15026
 
 
15027
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15028
 
      if test "$GCC" = yes; then
15029
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15030
 
        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'
15031
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15032
 
      else
15033
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15034
 
        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'
15035
 
        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~
15036
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15037
 
 
15038
 
        # Both c and cxx compiler support -rpath directly
15039
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15040
 
      fi
15041
 
      hardcode_libdir_separator_F77=:
15042
 
      ;;
15043
 
 
15044
 
    sco3.2v5*)
15045
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046
 
      hardcode_shlibpath_var_F77=no
15047
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15048
 
      runpath_var=LD_RUN_PATH
15049
 
      hardcode_runpath_var=yes
15050
 
      ;;
15051
 
 
15052
 
    solaris*)
15053
 
      no_undefined_flag_F77=' -z text'
15054
 
      if test "$GCC" = yes; then
15055
 
        wlarc='${wl}'
15056
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15057
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15058
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15059
 
      else
15060
 
        wlarc=''
15061
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15062
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15063
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15064
 
      fi
15065
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15066
 
      hardcode_shlibpath_var_F77=no
15067
 
      case $host_os in
15068
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15069
 
      *)
15070
 
        # The compiler driver will combine linker options so we
15071
 
        # cannot just pass the convience library names through
15072
 
        # without $wl, iff we do not link with $LD.
15073
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
15074
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15075
 
        case $wlarc in
15076
 
        '')
15077
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15078
 
        *)
15079
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15080
 
        esac ;;
15081
 
      esac
15082
 
      link_all_deplibs_F77=yes
15083
 
      ;;
15084
 
 
15085
 
    sunos4*)
15086
 
      if test "x$host_vendor" = xsequent; then
15087
 
        # Use $CC to link under sequent, because it throws in some extra .o
15088
 
        # files that make .init and .fini sections work.
15089
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15090
 
      else
15091
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15092
 
      fi
15093
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15094
 
      hardcode_direct_F77=yes
15095
 
      hardcode_minus_L_F77=yes
15096
 
      hardcode_shlibpath_var_F77=no
15097
 
      ;;
15098
 
 
15099
 
    sysv4)
15100
 
      case $host_vendor in
15101
 
        sni)
15102
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103
 
          hardcode_direct_F77=yes # is this really true???
15104
 
        ;;
15105
 
        siemens)
15106
 
          ## LD is ld it makes a PLAMLIB
15107
 
          ## CC just makes a GrossModule.
15108
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15109
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15110
 
          hardcode_direct_F77=no
15111
 
        ;;
15112
 
        motorola)
15113
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15115
 
        ;;
15116
 
      esac
15117
 
      runpath_var='LD_RUN_PATH'
15118
 
      hardcode_shlibpath_var_F77=no
15119
 
      ;;
15120
 
 
15121
 
    sysv4.3*)
15122
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123
 
      hardcode_shlibpath_var_F77=no
15124
 
      export_dynamic_flag_spec_F77='-Bexport'
15125
 
      ;;
15126
 
 
15127
 
    sysv4*MP*)
15128
 
      if test -d /usr/nec; then
15129
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15130
 
        hardcode_shlibpath_var_F77=no
15131
 
        runpath_var=LD_RUN_PATH
15132
 
        hardcode_runpath_var=yes
15133
 
        ld_shlibs_F77=yes
15134
 
      fi
15135
 
      ;;
15136
 
 
15137
 
    sysv4.2uw2*)
15138
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15139
 
      hardcode_direct_F77=yes
15140
 
      hardcode_minus_L_F77=no
15141
 
      hardcode_shlibpath_var_F77=no
15142
 
      hardcode_runpath_var=yes
15143
 
      runpath_var=LD_RUN_PATH
15144
 
      ;;
15145
 
 
15146
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15147
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
15148
 
      if test "$GCC" = yes; then
15149
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15150
 
      else
15151
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15152
 
      fi
15153
 
      runpath_var='LD_RUN_PATH'
15154
 
      hardcode_shlibpath_var_F77=no
15155
 
      ;;
15156
 
 
15157
 
    sysv5*)
15158
 
      no_undefined_flag_F77=' -z text'
15159
 
      # $CC -shared without GNU ld will not create a library from C++
15160
 
      # object files and a static libstdc++, better avoid it by now
15161
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15163
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15164
 
      hardcode_libdir_flag_spec_F77=
15165
 
      hardcode_shlibpath_var_F77=no
15166
 
      runpath_var='LD_RUN_PATH'
15167
 
      ;;
15168
 
 
15169
 
    uts4*)
15170
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15171
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15172
 
      hardcode_shlibpath_var_F77=no
15173
 
      ;;
15174
 
 
15175
 
    *)
15176
 
      ld_shlibs_F77=no
15177
 
      ;;
15178
 
    esac
15179
 
  fi
15180
 
 
15181
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15182
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
15183
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15184
 
 
15185
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15186
 
if test "$GCC" = yes; then
15187
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15188
 
fi
15189
 
 
15190
 
#
15191
 
# Do we need to explicitly link libc?
15192
 
#
15193
 
case "x$archive_cmds_need_lc_F77" in
15194
 
x|xyes)
15195
 
  # Assume -lc should be added
15196
 
  archive_cmds_need_lc_F77=yes
15197
 
 
15198
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15199
 
    case $archive_cmds_F77 in
15200
 
    *'~'*)
15201
 
      # FIXME: we may have to deal with multi-command sequences.
15202
 
      ;;
15203
 
    '$CC '*)
15204
 
      # Test whether the compiler implicitly links with -lc since on some
15205
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15206
 
      # to ld, don't add -lc before -lgcc.
15207
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15208
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15209
 
      $rm conftest*
15210
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15211
 
 
15212
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213
 
  (eval $ac_compile) 2>&5
15214
 
  ac_status=$?
15215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216
 
  (exit $ac_status); } 2>conftest.err; then
15217
 
        soname=conftest
15218
 
        lib=conftest
15219
 
        libobjs=conftest.$ac_objext
15220
 
        deplibs=
15221
 
        wl=$lt_prog_compiler_wl_F77
15222
 
        compiler_flags=-v
15223
 
        linker_flags=-v
15224
 
        verstring=
15225
 
        output_objdir=.
15226
 
        libname=conftest
15227
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15228
 
        allow_undefined_flag_F77=
15229
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15230
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15231
 
  ac_status=$?
15232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233
 
  (exit $ac_status); }
15234
 
        then
15235
 
          archive_cmds_need_lc_F77=no
15236
 
        else
15237
 
          archive_cmds_need_lc_F77=yes
15238
 
        fi
15239
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15240
 
      else
15241
 
        cat conftest.err 1>&5
15242
 
      fi
15243
 
      $rm conftest*
15244
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15245
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15246
 
      ;;
15247
 
    esac
15248
 
  fi
15249
 
  ;;
15250
 
esac
15251
 
 
15252
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15253
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15254
 
library_names_spec=
15255
 
libname_spec='lib$name'
15256
 
soname_spec=
15257
 
shrext_cmds=".so"
15258
 
postinstall_cmds=
15259
 
postuninstall_cmds=
15260
 
finish_cmds=
15261
 
finish_eval=
15262
 
shlibpath_var=
15263
 
shlibpath_overrides_runpath=unknown
15264
 
version_type=none
15265
 
dynamic_linker="$host_os ld.so"
15266
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15267
 
if test "$GCC" = yes; then
15268
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15269
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15270
 
    # if the path contains ";" then we assume it to be the separator
15271
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15272
 
    # assumed that no part of a normal pathname contains ";" but that should
15273
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15274
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15275
 
  else
15276
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15277
 
  fi
15278
 
else
15279
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15280
 
fi
15281
 
need_lib_prefix=unknown
15282
 
hardcode_into_libs=no
15283
 
 
15284
 
# when you set need_version to no, make sure it does not cause -set_version
15285
 
# flags to be left without arguments
15286
 
need_version=unknown
15287
 
 
15288
 
case $host_os in
15289
 
aix3*)
15290
 
  version_type=linux
15291
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15292
 
  shlibpath_var=LIBPATH
15293
 
 
15294
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15295
 
  soname_spec='${libname}${release}${shared_ext}$major'
15296
 
  ;;
15297
 
 
15298
 
aix4* | aix5*)
15299
 
  version_type=linux
15300
 
  need_lib_prefix=no
15301
 
  need_version=no
15302
 
  hardcode_into_libs=yes
15303
 
  if test "$host_cpu" = ia64; then
15304
 
    # AIX 5 supports IA64
15305
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15306
 
    shlibpath_var=LD_LIBRARY_PATH
15307
 
  else
15308
 
    # With GCC up to 2.95.x, collect2 would create an import file
15309
 
    # for dependence libraries.  The import file would start with
15310
 
    # the line `#! .'.  This would cause the generated library to
15311
 
    # depend on `.', always an invalid library.  This was fixed in
15312
 
    # development snapshots of GCC prior to 3.0.
15313
 
    case $host_os in
15314
 
      aix4 | aix4.[01] | aix4.[01].*)
15315
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15316
 
           echo ' yes '
15317
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15318
 
        :
15319
 
      else
15320
 
        can_build_shared=no
15321
 
      fi
15322
 
      ;;
15323
 
    esac
15324
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15325
 
    # soname into executable. Probably we can add versioning support to
15326
 
    # collect2, so additional links can be useful in future.
15327
 
    if test "$aix_use_runtimelinking" = yes; then
15328
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15329
 
      # instead of lib<name>.a to let people know that these are not
15330
 
      # typical AIX shared libraries.
15331
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332
 
    else
15333
 
      # We preserve .a as extension for shared libraries through AIX4.2
15334
 
      # and later when we are not doing run time linking.
15335
 
      library_names_spec='${libname}${release}.a $libname.a'
15336
 
      soname_spec='${libname}${release}${shared_ext}$major'
15337
 
    fi
15338
 
    shlibpath_var=LIBPATH
15339
 
  fi
15340
 
  ;;
15341
 
 
15342
 
amigaos*)
15343
 
  library_names_spec='$libname.ixlibrary $libname.a'
15344
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15345
 
  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'
15346
 
  ;;
15347
 
 
15348
 
beos*)
15349
 
  library_names_spec='${libname}${shared_ext}'
15350
 
  dynamic_linker="$host_os ld.so"
15351
 
  shlibpath_var=LIBRARY_PATH
15352
 
  ;;
15353
 
 
15354
 
bsdi[45]*)
15355
 
  version_type=linux
15356
 
  need_version=no
15357
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358
 
  soname_spec='${libname}${release}${shared_ext}$major'
15359
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15360
 
  shlibpath_var=LD_LIBRARY_PATH
15361
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15362
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15363
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15364
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15365
 
  # libtool to hard-code these into programs
15366
 
  ;;
15367
 
 
15368
 
cygwin* | mingw* | pw32*)
15369
 
  version_type=windows
15370
 
  shrext_cmds=".dll"
15371
 
  need_version=no
15372
 
  need_lib_prefix=no
15373
 
 
15374
 
  case $GCC,$host_os in
15375
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15376
 
    library_names_spec='$libname.dll.a'
15377
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15378
 
    postinstall_cmds='base_file=`basename \${file}`~
15379
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15380
 
      dldir=$destdir/`dirname \$dlpath`~
15381
 
      test -d \$dldir || mkdir -p \$dldir~
15382
 
      $install_prog $dir/$dlname \$dldir/$dlname'
15383
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15384
 
      dlpath=$dir/\$dldll~
15385
 
       $rm \$dlpath'
15386
 
    shlibpath_overrides_runpath=yes
15387
 
 
15388
 
    case $host_os in
15389
 
    cygwin*)
15390
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15391
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15392
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15393
 
      ;;
15394
 
    mingw*)
15395
 
      # MinGW DLLs use traditional 'lib' prefix
15396
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15397
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15398
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15399
 
        # It is most probably a Windows format PATH printed by
15400
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15401
 
        # path with ; separators, and with drive letters. We can handle the
15402
 
        # drive letters (cygwin fileutils understands them), so leave them,
15403
 
        # especially as we might pass files found there to a mingw objdump,
15404
 
        # which wouldn't understand a cygwinified path. Ahh.
15405
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15406
 
      else
15407
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15408
 
      fi
15409
 
      ;;
15410
 
    pw32*)
15411
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15412
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15413
 
      ;;
15414
 
    esac
15415
 
    ;;
15416
 
 
15417
 
  linux*)
15418
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15419
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15420
 
      supports_anon_versioning=no
15421
 
      case `$LD -v 2>/dev/null` in
15422
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15423
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15424
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15425
 
        *\ 2.11.*) ;; # other 2.11 versions
15426
 
        *) supports_anon_versioning=yes ;;
15427
 
      esac
15428
 
      if test $supports_anon_versioning = yes; then
15429
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15430
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15431
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15432
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15433
 
      else
15434
 
        $archive_expsym_cmds="$archive_cmds"
15435
 
      fi
15436
 
    else
15437
 
      ld_shlibs=no
15438
 
    fi
15439
 
    ;;
15440
 
 
15441
 
  *)
15442
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15443
 
    ;;
15444
 
  esac
15445
 
  dynamic_linker='Win32 ld.exe'
15446
 
  # FIXME: first we should search . and the directory the executable is in
15447
 
  shlibpath_var=PATH
15448
 
  ;;
15449
 
 
15450
 
darwin* | rhapsody*)
15451
 
  dynamic_linker="$host_os dyld"
15452
 
  version_type=darwin
15453
 
  need_lib_prefix=no
15454
 
  need_version=no
15455
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15456
 
  soname_spec='${libname}${release}${major}$shared_ext'
15457
 
  shlibpath_overrides_runpath=yes
15458
 
  shlibpath_var=DYLD_LIBRARY_PATH
15459
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15460
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15461
 
  if test "$GCC" = yes; then
15462
 
    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"`
15463
 
  else
15464
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15465
 
  fi
15466
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15467
 
  ;;
15468
 
 
15469
 
dgux*)
15470
 
  version_type=linux
15471
 
  need_lib_prefix=no
15472
 
  need_version=no
15473
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15474
 
  soname_spec='${libname}${release}${shared_ext}$major'
15475
 
  shlibpath_var=LD_LIBRARY_PATH
15476
 
  ;;
15477
 
 
15478
 
freebsd1*)
15479
 
  dynamic_linker=no
15480
 
  ;;
15481
 
 
15482
 
kfreebsd*-gnu)
15483
 
  version_type=linux
15484
 
  need_lib_prefix=no
15485
 
  need_version=no
15486
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15487
 
  soname_spec='${libname}${release}${shared_ext}$major'
15488
 
  shlibpath_var=LD_LIBRARY_PATH
15489
 
  shlibpath_overrides_runpath=no
15490
 
  hardcode_into_libs=yes
15491
 
  dynamic_linker='GNU ld.so'
15492
 
  ;;
15493
 
 
15494
 
freebsd* | dragonfly*)
15495
 
  # DragonFly does not have aout.  When/if they implement a new
15496
 
  # versioning mechanism, adjust this.
15497
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15498
 
  version_type=freebsd-$objformat
15499
 
  case $version_type in
15500
 
    freebsd-elf*)
15501
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15502
 
      need_version=no
15503
 
      need_lib_prefix=no
15504
 
      ;;
15505
 
    freebsd-*)
15506
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15507
 
      need_version=yes
15508
 
      ;;
15509
 
  esac
15510
 
  shlibpath_var=LD_LIBRARY_PATH
15511
 
  case $host_os in
15512
 
  freebsd2*)
15513
 
    shlibpath_overrides_runpath=yes
15514
 
    ;;
15515
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15516
 
    shlibpath_overrides_runpath=yes
15517
 
    hardcode_into_libs=yes
15518
 
    ;;
15519
 
  *) # from 3.2 on
15520
 
    shlibpath_overrides_runpath=no
15521
 
    hardcode_into_libs=yes
15522
 
    ;;
15523
 
  esac
15524
 
  ;;
15525
 
 
15526
 
gnu*)
15527
 
  version_type=linux
15528
 
  need_lib_prefix=no
15529
 
  need_version=no
15530
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15531
 
  soname_spec='${libname}${release}${shared_ext}$major'
15532
 
  shlibpath_var=LD_LIBRARY_PATH
15533
 
  hardcode_into_libs=yes
15534
 
  ;;
15535
 
 
15536
 
hpux9* | hpux10* | hpux11*)
15537
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15538
 
  # link against other versions.
15539
 
  version_type=sunos
15540
 
  need_lib_prefix=no
15541
 
  need_version=no
15542
 
  case "$host_cpu" in
15543
 
  ia64*)
15544
 
    shrext_cmds='.so'
15545
 
    hardcode_into_libs=yes
15546
 
    dynamic_linker="$host_os dld.so"
15547
 
    shlibpath_var=LD_LIBRARY_PATH
15548
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15549
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550
 
    soname_spec='${libname}${release}${shared_ext}$major'
15551
 
    if test "X$HPUX_IA64_MODE" = X32; then
15552
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15553
 
    else
15554
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15555
 
    fi
15556
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15557
 
    ;;
15558
 
   hppa*64*)
15559
 
     shrext_cmds='.sl'
15560
 
     hardcode_into_libs=yes
15561
 
     dynamic_linker="$host_os dld.sl"
15562
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15563
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565
 
     soname_spec='${libname}${release}${shared_ext}$major'
15566
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15567
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15568
 
     ;;
15569
 
   *)
15570
 
    shrext_cmds='.sl'
15571
 
    dynamic_linker="$host_os dld.sl"
15572
 
    shlibpath_var=SHLIB_PATH
15573
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15574
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575
 
    soname_spec='${libname}${release}${shared_ext}$major'
15576
 
    ;;
15577
 
  esac
15578
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15579
 
  postinstall_cmds='chmod 555 $lib'
15580
 
  ;;
15581
 
 
15582
 
irix5* | irix6* | nonstopux*)
15583
 
  case $host_os in
15584
 
    nonstopux*) version_type=nonstopux ;;
15585
 
    *)
15586
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
15587
 
                version_type=linux
15588
 
        else
15589
 
                version_type=irix
15590
 
        fi ;;
15591
 
  esac
15592
 
  need_lib_prefix=no
15593
 
  need_version=no
15594
 
  soname_spec='${libname}${release}${shared_ext}$major'
15595
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15596
 
  case $host_os in
15597
 
  irix5* | nonstopux*)
15598
 
    libsuff= shlibsuff=
15599
 
    ;;
15600
 
  *)
15601
 
    case $LD in # libtool.m4 will add one of these switches to LD
15602
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15603
 
      libsuff= shlibsuff= libmagic=32-bit;;
15604
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15605
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15606
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15607
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15608
 
    *) libsuff= shlibsuff= libmagic=never-match;;
15609
 
    esac
15610
 
    ;;
15611
 
  esac
15612
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15613
 
  shlibpath_overrides_runpath=no
15614
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15615
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15616
 
  hardcode_into_libs=yes
15617
 
  ;;
15618
 
 
15619
 
# No shared lib support for Linux oldld, aout, or coff.
15620
 
linux*oldld* | linux*aout* | linux*coff*)
15621
 
  dynamic_linker=no
15622
 
  ;;
15623
 
 
15624
 
# This must be Linux ELF.
15625
 
linux*)
15626
 
  version_type=linux
15627
 
  need_lib_prefix=no
15628
 
  need_version=no
15629
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630
 
  soname_spec='${libname}${release}${shared_ext}$major'
15631
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15632
 
  shlibpath_var=LD_LIBRARY_PATH
15633
 
  shlibpath_overrides_runpath=no
15634
 
  # This implies no fast_install, which is unacceptable.
15635
 
  # Some rework will be needed to allow for fast_install
15636
 
  # before this can be enabled.
15637
 
  hardcode_into_libs=yes
15638
 
 
15639
 
  # Append ld.so.conf contents to the search path
15640
 
  if test -f /etc/ld.so.conf; then
15641
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15642
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15643
 
  fi
15644
 
 
15645
 
  case $host_cpu:$lt_cv_cc_64bit_output in
15646
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
15647
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
15648
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
15649
 
    ;;
15650
 
  esac
15651
 
 
15652
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15653
 
  # powerpc, because MkLinux only supported shared libraries with the
15654
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
15655
 
  # most powerpc-linux boxes support dynamic linking these days and
15656
 
  # people can always --disable-shared, the test was removed, and we
15657
 
  # assume the GNU/Linux dynamic linker is in use.
15658
 
  dynamic_linker='GNU/Linux ld.so'
15659
 
 
15660
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
15661
 
  libsuff=
15662
 
  case "$host_cpu" in
15663
 
  x86_64*)
15664
 
    echo '#line 15664 "configure"' > conftest.$ac_ext
15665
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666
 
  (eval $ac_compile) 2>&5
15667
 
  ac_status=$?
15668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669
 
  (exit $ac_status); }; then
15670
 
      case `/usr/bin/file conftest.$ac_objext` in
15671
 
      *64-bit*)
15672
 
        libsuff=64
15673
 
        ;;
15674
 
      esac
15675
 
    fi
15676
 
    rm -rf conftest*
15677
 
    ;;
15678
 
  *)
15679
 
    ;;
15680
 
  esac
15681
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15682
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15683
 
  ;;
15684
 
 
15685
 
knetbsd*-gnu)
15686
 
  version_type=linux
15687
 
  need_lib_prefix=no
15688
 
  need_version=no
15689
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15690
 
  soname_spec='${libname}${release}${shared_ext}$major'
15691
 
  shlibpath_var=LD_LIBRARY_PATH
15692
 
  shlibpath_overrides_runpath=no
15693
 
  hardcode_into_libs=yes
15694
 
  dynamic_linker='GNU ld.so'
15695
 
  ;;
15696
 
 
15697
 
netbsd*)
15698
 
  version_type=sunos
15699
 
  need_lib_prefix=no
15700
 
  need_version=no
15701
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15702
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15703
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15704
 
    dynamic_linker='NetBSD (a.out) ld.so'
15705
 
  else
15706
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15707
 
    soname_spec='${libname}${release}${shared_ext}$major'
15708
 
    dynamic_linker='NetBSD ld.elf_so'
15709
 
  fi
15710
 
  shlibpath_var=LD_LIBRARY_PATH
15711
 
  shlibpath_overrides_runpath=yes
15712
 
  hardcode_into_libs=yes
15713
 
  ;;
15714
 
 
15715
 
newsos6)
15716
 
  version_type=linux
15717
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718
 
  shlibpath_var=LD_LIBRARY_PATH
15719
 
  shlibpath_overrides_runpath=yes
15720
 
  ;;
15721
 
 
15722
 
nto-qnx*)
15723
 
  version_type=linux
15724
 
  need_lib_prefix=no
15725
 
  need_version=no
15726
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727
 
  soname_spec='${libname}${release}${shared_ext}$major'
15728
 
  shlibpath_var=LD_LIBRARY_PATH
15729
 
  shlibpath_overrides_runpath=yes
15730
 
  ;;
15731
 
 
15732
 
openbsd*)
15733
 
  version_type=sunos
15734
 
  need_lib_prefix=no
15735
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15736
 
  case $host_os in
15737
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15738
 
    *)                         need_version=no  ;;
15739
 
  esac
15740
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15741
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15742
 
  shlibpath_var=LD_LIBRARY_PATH
15743
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15744
 
    case $host_os in
15745
 
      openbsd2.[89] | openbsd2.[89].*)
15746
 
        shlibpath_overrides_runpath=no
15747
 
        ;;
15748
 
      *)
15749
 
        shlibpath_overrides_runpath=yes
15750
 
        ;;
15751
 
      esac
15752
 
  else
15753
 
    shlibpath_overrides_runpath=yes
15754
 
  fi
15755
 
  ;;
15756
 
 
15757
 
os2*)
15758
 
  libname_spec='$name'
15759
 
  shrext_cmds=".dll"
15760
 
  need_lib_prefix=no
15761
 
  library_names_spec='$libname${shared_ext} $libname.a'
15762
 
  dynamic_linker='OS/2 ld.exe'
15763
 
  shlibpath_var=LIBPATH
15764
 
  ;;
15765
 
 
15766
 
osf3* | osf4* | osf5*)
15767
 
  version_type=osf
15768
 
  need_lib_prefix=no
15769
 
  need_version=no
15770
 
  soname_spec='${libname}${release}${shared_ext}$major'
15771
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772
 
  shlibpath_var=LD_LIBRARY_PATH
15773
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15774
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15775
 
  ;;
15776
 
 
15777
 
sco3.2v5*)
15778
 
  version_type=osf
15779
 
  soname_spec='${libname}${release}${shared_ext}$major'
15780
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781
 
  shlibpath_var=LD_LIBRARY_PATH
15782
 
  ;;
15783
 
 
15784
 
solaris*)
15785
 
  version_type=linux
15786
 
  need_lib_prefix=no
15787
 
  need_version=no
15788
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789
 
  soname_spec='${libname}${release}${shared_ext}$major'
15790
 
  shlibpath_var=LD_LIBRARY_PATH
15791
 
  shlibpath_overrides_runpath=yes
15792
 
  hardcode_into_libs=yes
15793
 
  # ldd complains unless libraries are executable
15794
 
  postinstall_cmds='chmod +x $lib'
15795
 
  ;;
15796
 
 
15797
 
sunos4*)
15798
 
  version_type=sunos
15799
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15800
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15801
 
  shlibpath_var=LD_LIBRARY_PATH
15802
 
  shlibpath_overrides_runpath=yes
15803
 
  if test "$with_gnu_ld" = yes; then
15804
 
    need_lib_prefix=no
15805
 
  fi
15806
 
  need_version=yes
15807
 
  ;;
15808
 
 
15809
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15810
 
  version_type=linux
15811
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812
 
  soname_spec='${libname}${release}${shared_ext}$major'
15813
 
  shlibpath_var=LD_LIBRARY_PATH
15814
 
  case $host_vendor in
15815
 
    sni)
15816
 
      shlibpath_overrides_runpath=no
15817
 
      need_lib_prefix=no
15818
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15819
 
      runpath_var=LD_RUN_PATH
15820
 
      ;;
15821
 
    siemens)
15822
 
      need_lib_prefix=no
15823
 
      ;;
15824
 
    motorola)
15825
 
      need_lib_prefix=no
15826
 
      need_version=no
15827
 
      shlibpath_overrides_runpath=no
15828
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15829
 
      ;;
15830
 
  esac
15831
 
  ;;
15832
 
 
15833
 
sysv4*MP*)
15834
 
  if test -d /usr/nec ;then
15835
 
    version_type=linux
15836
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15837
 
    soname_spec='$libname${shared_ext}.$major'
15838
 
    shlibpath_var=LD_LIBRARY_PATH
15839
 
  fi
15840
 
  ;;
15841
 
 
15842
 
uts4*)
15843
 
  version_type=linux
15844
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845
 
  soname_spec='${libname}${release}${shared_ext}$major'
15846
 
  shlibpath_var=LD_LIBRARY_PATH
15847
 
  ;;
15848
 
 
15849
 
*)
15850
 
  dynamic_linker=no
15851
 
  ;;
15852
 
esac
15853
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15854
 
echo "${ECHO_T}$dynamic_linker" >&6
15855
 
test "$dynamic_linker" = no && can_build_shared=no
15856
 
 
15857
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15858
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15859
 
hardcode_action_F77=
15860
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
15861
 
   test -n "$runpath_var_F77" || \
15862
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15863
 
 
15864
 
  # We can hardcode non-existant directories.
15865
 
  if test "$hardcode_direct_F77" != no &&
15866
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15867
 
     # have to relink, otherwise we might link with an installed library
15868
 
     # when we should be linking with a yet-to-be-installed one
15869
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15870
 
     test "$hardcode_minus_L_F77" != no; then
15871
 
    # Linking always hardcodes the temporary library directory.
15872
 
    hardcode_action_F77=relink
15873
 
  else
15874
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15875
 
    hardcode_action_F77=immediate
15876
 
  fi
15877
 
else
15878
 
  # We cannot hardcode anything, or else we can only hardcode existing
15879
 
  # directories.
15880
 
  hardcode_action_F77=unsupported
15881
 
fi
15882
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15883
 
echo "${ECHO_T}$hardcode_action_F77" >&6
15884
 
 
15885
 
if test "$hardcode_action_F77" = relink; then
15886
 
  # Fast installation is not supported
15887
 
  enable_fast_install=no
15888
 
elif test "$shlibpath_overrides_runpath" = yes ||
15889
 
     test "$enable_shared" = no; then
15890
 
  # Fast installation is not necessary
15891
 
  enable_fast_install=needless
15892
 
fi
15893
 
 
15894
 
striplib=
15895
 
old_striplib=
15896
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15897
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15898
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15899
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15900
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15901
 
  echo "$as_me:$LINENO: result: yes" >&5
15902
 
echo "${ECHO_T}yes" >&6
15903
 
else
15904
 
# FIXME - insert some real tests, host_os isn't really good enough
15905
 
  case $host_os in
15906
 
   darwin*)
15907
 
       if test -n "$STRIP" ; then
15908
 
         striplib="$STRIP -x"
15909
 
         echo "$as_me:$LINENO: result: yes" >&5
15910
 
echo "${ECHO_T}yes" >&6
15911
 
       else
15912
 
  echo "$as_me:$LINENO: result: no" >&5
15913
 
echo "${ECHO_T}no" >&6
15914
 
fi
15915
 
       ;;
15916
 
   *)
15917
 
  echo "$as_me:$LINENO: result: no" >&5
15918
 
echo "${ECHO_T}no" >&6
15919
 
    ;;
15920
 
  esac
15921
 
fi
15922
 
 
15923
 
 
15924
 
 
15925
 
# The else clause should only fire when bootstrapping the
15926
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
15927
 
# with your package, and you will get complaints that there are
15928
 
# no rules to generate ltmain.sh.
15929
 
if test -f "$ltmain"; then
15930
 
  # See if we are running on zsh, and set the options which allow our commands through
15931
 
  # without removal of \ escapes.
15932
 
  if test -n "${ZSH_VERSION+set}" ; then
15933
 
    setopt NO_GLOB_SUBST
15934
 
  fi
15935
 
  # Now quote all the things that may contain metacharacters while being
15936
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15937
 
  # variables and quote the copies for generation of the libtool script.
15938
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15939
 
    SED SHELL STRIP \
15940
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15941
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15942
 
    deplibs_check_method reload_flag reload_cmds need_locks \
15943
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15944
 
    lt_cv_sys_global_symbol_to_c_name_address \
15945
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15946
 
    old_postinstall_cmds old_postuninstall_cmds \
15947
 
    compiler_F77 \
15948
 
    CC_F77 \
15949
 
    LD_F77 \
15950
 
    lt_prog_compiler_wl_F77 \
15951
 
    lt_prog_compiler_pic_F77 \
15952
 
    lt_prog_compiler_static_F77 \
15953
 
    lt_prog_compiler_no_builtin_flag_F77 \
15954
 
    export_dynamic_flag_spec_F77 \
15955
 
    thread_safe_flag_spec_F77 \
15956
 
    whole_archive_flag_spec_F77 \
15957
 
    enable_shared_with_static_runtimes_F77 \
15958
 
    old_archive_cmds_F77 \
15959
 
    old_archive_from_new_cmds_F77 \
15960
 
    predep_objects_F77 \
15961
 
    postdep_objects_F77 \
15962
 
    predeps_F77 \
15963
 
    postdeps_F77 \
15964
 
    compiler_lib_search_path_F77 \
15965
 
    archive_cmds_F77 \
15966
 
    archive_expsym_cmds_F77 \
15967
 
    postinstall_cmds_F77 \
15968
 
    postuninstall_cmds_F77 \
15969
 
    old_archive_from_expsyms_cmds_F77 \
15970
 
    allow_undefined_flag_F77 \
15971
 
    no_undefined_flag_F77 \
15972
 
    export_symbols_cmds_F77 \
15973
 
    hardcode_libdir_flag_spec_F77 \
15974
 
    hardcode_libdir_flag_spec_ld_F77 \
15975
 
    hardcode_libdir_separator_F77 \
15976
 
    hardcode_automatic_F77 \
15977
 
    module_cmds_F77 \
15978
 
    module_expsym_cmds_F77 \
15979
 
    lt_cv_prog_compiler_c_o_F77 \
15980
 
    exclude_expsyms_F77 \
15981
 
    include_expsyms_F77; do
15982
 
 
15983
 
    case $var in
15984
 
    old_archive_cmds_F77 | \
15985
 
    old_archive_from_new_cmds_F77 | \
15986
 
    archive_cmds_F77 | \
15987
 
    archive_expsym_cmds_F77 | \
15988
 
    module_cmds_F77 | \
15989
 
    module_expsym_cmds_F77 | \
15990
 
    old_archive_from_expsyms_cmds_F77 | \
15991
 
    export_symbols_cmds_F77 | \
15992
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15993
 
    postinstall_cmds | postuninstall_cmds | \
15994
 
    old_postinstall_cmds | old_postuninstall_cmds | \
15995
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15996
 
      # Double-quote double-evaled strings.
15997
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15998
 
      ;;
15999
 
    *)
16000
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16001
 
      ;;
16002
 
    esac
16003
 
  done
16004
 
 
16005
 
  case $lt_echo in
16006
 
  *'\$0 --fallback-echo"')
16007
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16008
 
    ;;
16009
 
  esac
16010
 
 
16011
 
cfgfile="$ofile"
16012
 
 
16013
 
  cat <<__EOF__ >> "$cfgfile"
16014
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16015
 
 
16016
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16017
 
 
16018
 
# Shell to use when invoking shell scripts.
16019
 
SHELL=$lt_SHELL
16020
 
 
16021
 
# Whether or not to build shared libraries.
16022
 
build_libtool_libs=$enable_shared
16023
 
 
16024
 
# Whether or not to build static libraries.
16025
 
build_old_libs=$enable_static
16026
 
 
16027
 
# Whether or not to add -lc for building shared libraries.
16028
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16029
 
 
16030
 
# Whether or not to disallow shared libs when runtime libs are static
16031
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16032
 
 
16033
 
# Whether or not to optimize for fast installation.
16034
 
fast_install=$enable_fast_install
16035
 
 
16036
 
# The host system.
16037
 
host_alias=$host_alias
16038
 
host=$host
16039
 
host_os=$host_os
16040
 
 
16041
 
# The build system.
16042
 
build_alias=$build_alias
16043
 
build=$build
16044
 
build_os=$build_os
16045
 
 
16046
 
# An echo program that does not interpret backslashes.
16047
 
echo=$lt_echo
16048
 
 
16049
 
# The archiver.
16050
 
AR=$lt_AR
16051
 
AR_FLAGS=$lt_AR_FLAGS
16052
 
 
16053
 
# A C compiler.
16054
 
LTCC=$lt_LTCC
16055
 
 
16056
 
# A language-specific compiler.
16057
 
CC=$lt_compiler_F77
16058
 
 
16059
 
# Is the compiler the GNU C compiler?
16060
 
with_gcc=$GCC_F77
16061
 
 
16062
 
# An ERE matcher.
16063
 
EGREP=$lt_EGREP
16064
 
 
16065
 
# The linker used to build libraries.
16066
 
LD=$lt_LD_F77
16067
 
 
16068
 
# Whether we need hard or soft links.
16069
 
LN_S=$lt_LN_S
16070
 
 
16071
 
# A BSD-compatible nm program.
16072
 
NM=$lt_NM
16073
 
 
16074
 
# A symbol stripping program
16075
 
STRIP=$lt_STRIP
16076
 
 
16077
 
# Used to examine libraries when file_magic_cmd begins "file"
16078
 
MAGIC_CMD=$MAGIC_CMD
16079
 
 
16080
 
# Used on cygwin: DLL creation program.
16081
 
DLLTOOL="$DLLTOOL"
16082
 
 
16083
 
# Used on cygwin: object dumper.
16084
 
OBJDUMP="$OBJDUMP"
16085
 
 
16086
 
# Used on cygwin: assembler.
16087
 
AS="$AS"
16088
 
 
16089
 
# The name of the directory that contains temporary libtool files.
16090
 
objdir=$objdir
16091
 
 
16092
 
# How to create reloadable object files.
16093
 
reload_flag=$lt_reload_flag
16094
 
reload_cmds=$lt_reload_cmds
16095
 
 
16096
 
# How to pass a linker flag through the compiler.
16097
 
wl=$lt_lt_prog_compiler_wl_F77
16098
 
 
16099
 
# Object file suffix (normally "o").
16100
 
objext="$ac_objext"
16101
 
 
16102
 
# Old archive suffix (normally "a").
16103
 
libext="$libext"
16104
 
 
16105
 
# Shared library suffix (normally ".so").
16106
 
shrext_cmds='$shrext_cmds'
16107
 
 
16108
 
# Executable file suffix (normally "").
16109
 
exeext="$exeext"
16110
 
 
16111
 
# Additional compiler flags for building library objects.
16112
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16113
 
pic_mode=$pic_mode
16114
 
 
16115
 
# What is the maximum length of a command?
16116
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16117
 
 
16118
 
# Does compiler simultaneously support -c and -o options?
16119
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16120
 
 
16121
 
# Must we lock files when doing compilation?
16122
 
need_locks=$lt_need_locks
16123
 
 
16124
 
# Do we need the lib prefix for modules?
16125
 
need_lib_prefix=$need_lib_prefix
16126
 
 
16127
 
# Do we need a version for libraries?
16128
 
need_version=$need_version
16129
 
 
16130
 
# Whether dlopen is supported.
16131
 
dlopen_support=$enable_dlopen
16132
 
 
16133
 
# Whether dlopen of programs is supported.
16134
 
dlopen_self=$enable_dlopen_self
16135
 
 
16136
 
# Whether dlopen of statically linked programs is supported.
16137
 
dlopen_self_static=$enable_dlopen_self_static
16138
 
 
16139
 
# Compiler flag to prevent dynamic linking.
16140
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16141
 
 
16142
 
# Compiler flag to turn off builtin functions.
16143
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16144
 
 
16145
 
# Compiler flag to allow reflexive dlopens.
16146
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16147
 
 
16148
 
# Compiler flag to generate shared objects directly from archives.
16149
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16150
 
 
16151
 
# Compiler flag to generate thread-safe objects.
16152
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16153
 
 
16154
 
# Library versioning type.
16155
 
version_type=$version_type
16156
 
 
16157
 
# Format of library name prefix.
16158
 
libname_spec=$lt_libname_spec
16159
 
 
16160
 
# List of archive names.  First name is the real one, the rest are links.
16161
 
# The last name is the one that the linker finds with -lNAME.
16162
 
library_names_spec=$lt_library_names_spec
16163
 
 
16164
 
# The coded name of the library, if different from the real name.
16165
 
soname_spec=$lt_soname_spec
16166
 
 
16167
 
# Commands used to build and install an old-style archive.
16168
 
RANLIB=$lt_RANLIB
16169
 
old_archive_cmds=$lt_old_archive_cmds_F77
16170
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16171
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16172
 
 
16173
 
# Create an old-style archive from a shared archive.
16174
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16175
 
 
16176
 
# Create a temporary old-style archive to link instead of a shared archive.
16177
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16178
 
 
16179
 
# Commands used to build and install a shared archive.
16180
 
archive_cmds=$lt_archive_cmds_F77
16181
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16182
 
postinstall_cmds=$lt_postinstall_cmds
16183
 
postuninstall_cmds=$lt_postuninstall_cmds
16184
 
 
16185
 
# Commands used to build a loadable module (assumed same as above if empty)
16186
 
module_cmds=$lt_module_cmds_F77
16187
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16188
 
 
16189
 
# Commands to strip libraries.
16190
 
old_striplib=$lt_old_striplib
16191
 
striplib=$lt_striplib
16192
 
 
16193
 
# Dependencies to place before the objects being linked to create a
16194
 
# shared library.
16195
 
predep_objects=$lt_predep_objects_F77
16196
 
 
16197
 
# Dependencies to place after the objects being linked to create a
16198
 
# shared library.
16199
 
postdep_objects=$lt_postdep_objects_F77
16200
 
 
16201
 
# Dependencies to place before the objects being linked to create a
16202
 
# shared library.
16203
 
predeps=$lt_predeps_F77
16204
 
 
16205
 
# Dependencies to place after the objects being linked to create a
16206
 
# shared library.
16207
 
postdeps=$lt_postdeps_F77
16208
 
 
16209
 
# The library search path used internally by the compiler when linking
16210
 
# a shared library.
16211
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16212
 
 
16213
 
# Method to check whether dependent libraries are shared objects.
16214
 
deplibs_check_method=$lt_deplibs_check_method
16215
 
 
16216
 
# Command to use when deplibs_check_method == file_magic.
16217
 
file_magic_cmd=$lt_file_magic_cmd
16218
 
 
16219
 
# Flag that allows shared libraries with undefined symbols to be built.
16220
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16221
 
 
16222
 
# Flag that forces no undefined symbols.
16223
 
no_undefined_flag=$lt_no_undefined_flag_F77
16224
 
 
16225
 
# Commands used to finish a libtool library installation in a directory.
16226
 
finish_cmds=$lt_finish_cmds
16227
 
 
16228
 
# Same as above, but a single script fragment to be evaled but not shown.
16229
 
finish_eval=$lt_finish_eval
16230
 
 
16231
 
# Take the output of nm and produce a listing of raw symbols and C names.
16232
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16233
 
 
16234
 
# Transform the output of nm in a proper C declaration
16235
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16236
 
 
16237
 
# Transform the output of nm in a C name address pair
16238
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16239
 
 
16240
 
# This is the shared library runtime path variable.
16241
 
runpath_var=$runpath_var
16242
 
 
16243
 
# This is the shared library path variable.
16244
 
shlibpath_var=$shlibpath_var
16245
 
 
16246
 
# Is shlibpath searched before the hard-coded library search path?
16247
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16248
 
 
16249
 
# How to hardcode a shared library path into an executable.
16250
 
hardcode_action=$hardcode_action_F77
16251
 
 
16252
 
# Whether we should hardcode library paths into libraries.
16253
 
hardcode_into_libs=$hardcode_into_libs
16254
 
 
16255
 
# Flag to hardcode \$libdir into a binary during linking.
16256
 
# This must work even if \$libdir does not exist.
16257
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16258
 
 
16259
 
# If ld is used when linking, flag to hardcode \$libdir into
16260
 
# a binary during linking. This must work even if \$libdir does
16261
 
# not exist.
16262
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16263
 
 
16264
 
# Whether we need a single -rpath flag with a separated argument.
16265
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16266
 
 
16267
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16268
 
# resulting binary.
16269
 
hardcode_direct=$hardcode_direct_F77
16270
 
 
16271
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16272
 
# resulting binary.
16273
 
hardcode_minus_L=$hardcode_minus_L_F77
16274
 
 
16275
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16276
 
# the resulting binary.
16277
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16278
 
 
16279
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16280
 
# and all subsequent libraries and executables linked against it.
16281
 
hardcode_automatic=$hardcode_automatic_F77
16282
 
 
16283
 
# Variables whose values should be saved in libtool wrapper scripts and
16284
 
# restored at relink time.
16285
 
variables_saved_for_relink="$variables_saved_for_relink"
16286
 
 
16287
 
# Whether libtool must link a program against all its dependency libraries.
16288
 
link_all_deplibs=$link_all_deplibs_F77
16289
 
 
16290
 
# Compile-time system search path for libraries
16291
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16292
 
 
16293
 
# Run-time system search path for libraries
16294
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16295
 
 
16296
 
# Fix the shell variable \$srcfile for the compiler.
16297
 
fix_srcfile_path="$fix_srcfile_path_F77"
16298
 
 
16299
 
# Set to yes if exported symbols are required.
16300
 
always_export_symbols=$always_export_symbols_F77
16301
 
 
16302
 
# The commands to list exported symbols.
16303
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16304
 
 
16305
 
# The commands to extract the exported symbol list from a shared archive.
16306
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16307
 
 
16308
 
# Symbols that should not be listed in the preloaded symbols.
16309
 
exclude_expsyms=$lt_exclude_expsyms_F77
16310
 
 
16311
 
# Symbols that must always be exported.
16312
 
include_expsyms=$lt_include_expsyms_F77
16313
 
 
16314
 
# ### END LIBTOOL TAG CONFIG: $tagname
16315
 
 
16316
 
__EOF__
16317
 
 
16318
 
 
16319
 
else
16320
 
  # If there is no Makefile yet, we rely on a make rule to execute
16321
 
  # `config.status --recheck' to rerun these tests and create the
16322
 
  # libtool script then.
16323
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16324
 
  if test -f "$ltmain_in"; then
16325
 
    test -f Makefile && make "$ltmain"
16326
 
  fi
16327
 
fi
16328
 
 
16329
 
 
16330
 
ac_ext=c
16331
 
ac_cpp='$CPP $CPPFLAGS'
16332
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16333
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16334
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16335
 
 
16336
 
CC="$lt_save_CC"
16337
 
 
16338
 
        else
16339
 
          tagname=""
16340
 
        fi
16341
 
        ;;
16342
 
 
16343
 
      GCJ)
16344
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16345
 
 
16346
 
 
16347
 
 
16348
 
# Source file extension for Java test sources.
16349
 
ac_ext=java
16350
 
 
16351
 
# Object file extension for compiled Java test sources.
16352
 
objext=o
16353
 
objext_GCJ=$objext
16354
 
 
16355
 
# Code to be used in simple compile tests
16356
 
lt_simple_compile_test_code="class foo {}\n"
16357
 
 
16358
 
# Code to be used in simple link tests
16359
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16360
 
 
16361
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16362
 
 
16363
 
# If no C compiler was specified, use CC.
16364
 
LTCC=${LTCC-"$CC"}
16365
 
 
16366
 
# Allow CC to be a program name with arguments.
16367
 
compiler=$CC
16368
 
 
16369
 
 
16370
 
# save warnings/boilerplate of simple test code
16371
 
ac_outfile=conftest.$ac_objext
16372
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16373
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16374
 
_lt_compiler_boilerplate=`cat conftest.err`
16375
 
$rm conftest*
16376
 
 
16377
 
ac_outfile=conftest.$ac_objext
16378
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16379
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16380
 
_lt_linker_boilerplate=`cat conftest.err`
16381
 
$rm conftest*
16382
 
 
16383
 
 
16384
 
# Allow CC to be a program name with arguments.
16385
 
lt_save_CC="$CC"
16386
 
CC=${GCJ-"gcj"}
16387
 
compiler=$CC
16388
 
compiler_GCJ=$CC
16389
 
for cc_temp in $compiler""; do
16390
 
  case $cc_temp in
16391
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16392
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16393
 
    \-*) ;;
16394
 
    *) break;;
16395
 
  esac
16396
 
done
16397
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16398
 
 
16399
 
 
16400
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16401
 
archive_cmds_need_lc_GCJ=no
16402
 
 
16403
 
old_archive_cmds_GCJ=$old_archive_cmds
16404
 
 
16405
 
 
16406
 
lt_prog_compiler_no_builtin_flag_GCJ=
16407
 
 
16408
 
if test "$GCC" = yes; then
16409
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16410
 
 
16411
 
 
16412
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16413
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16414
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16416
 
else
16417
 
  lt_cv_prog_compiler_rtti_exceptions=no
16418
 
  ac_outfile=conftest.$ac_objext
16419
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16420
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16421
 
   # Insert the option either (1) after the last *FLAGS variable, or
16422
 
   # (2) before a word containing "conftest.", or (3) at the end.
16423
 
   # Note that $ac_compile itself does not contain backslashes and begins
16424
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16425
 
   # The option is referenced via a variable to avoid confusing sed.
16426
 
   lt_compile=`echo "$ac_compile" | $SED \
16427
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16428
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16429
 
   -e 's:$: $lt_compiler_flag:'`
16430
 
   (eval echo "\"\$as_me:16430: $lt_compile\"" >&5)
16431
 
   (eval "$lt_compile" 2>conftest.err)
16432
 
   ac_status=$?
16433
 
   cat conftest.err >&5
16434
 
   echo "$as_me:16434: \$? = $ac_status" >&5
16435
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16436
 
     # The compiler can only warn and ignore the option if not recognized
16437
 
     # So say no if there are warnings other than the usual output.
16438
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16439
 
     $SED '/^$/d' conftest.err >conftest.er2
16440
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16441
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16442
 
     fi
16443
 
   fi
16444
 
   $rm conftest*
16445
 
 
16446
 
fi
16447
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16448
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16449
 
 
16450
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16451
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16452
 
else
16453
 
    :
16454
 
fi
16455
 
 
16456
 
fi
16457
 
 
16458
 
lt_prog_compiler_wl_GCJ=
16459
 
lt_prog_compiler_pic_GCJ=
16460
 
lt_prog_compiler_static_GCJ=
16461
 
 
16462
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16463
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16464
 
 
16465
 
  if test "$GCC" = yes; then
16466
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16467
 
    lt_prog_compiler_static_GCJ='-static'
16468
 
 
16469
 
    case $host_os in
16470
 
      aix*)
16471
 
      # All AIX code is PIC.
16472
 
      if test "$host_cpu" = ia64; then
16473
 
        # AIX 5 now supports IA64 processor
16474
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16475
 
      fi
16476
 
      ;;
16477
 
 
16478
 
    amigaos*)
16479
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16480
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16481
 
      # like `-m68040'.
16482
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16483
 
      ;;
16484
 
 
16485
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16486
 
      # PIC is the default for these OSes.
16487
 
      ;;
16488
 
 
16489
 
    mingw* | pw32* | os2*)
16490
 
      # This hack is so that the source file can tell whether it is being
16491
 
      # built for inclusion in a dll (and should export symbols for example).
16492
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16493
 
      ;;
16494
 
 
16495
 
    darwin* | rhapsody*)
16496
 
      # PIC is the default on this platform
16497
 
      # Common symbols not allowed in MH_DYLIB files
16498
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16499
 
      ;;
16500
 
 
16501
 
    msdosdjgpp*)
16502
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16503
 
      # on systems that don't support them.
16504
 
      lt_prog_compiler_can_build_shared_GCJ=no
16505
 
      enable_shared=no
16506
 
      ;;
16507
 
 
16508
 
    sysv4*MP*)
16509
 
      if test -d /usr/nec; then
16510
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16511
 
      fi
16512
 
      ;;
16513
 
 
16514
 
    hpux*)
16515
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16516
 
      # not for PA HP-UX.
16517
 
      case "$host_cpu" in
16518
 
      hppa*64*|ia64*)
16519
 
        # +Z the default
16520
 
        ;;
16521
 
      *)
16522
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16523
 
        ;;
16524
 
      esac
16525
 
      ;;
16526
 
 
16527
 
    *)
16528
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16529
 
      ;;
16530
 
    esac
16531
 
  else
16532
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16533
 
    case $host_os in
16534
 
    aix*)
16535
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16536
 
      if test "$host_cpu" = ia64; then
16537
 
        # AIX 5 now supports IA64 processor
16538
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16539
 
      else
16540
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16541
 
      fi
16542
 
      ;;
16543
 
      darwin*)
16544
 
        # PIC is the default on this platform
16545
 
        # Common symbols not allowed in MH_DYLIB files
16546
 
       case $cc_basename in
16547
 
         xlc*)
16548
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16549
 
         lt_prog_compiler_wl_GCJ='-Wl,'
16550
 
         ;;
16551
 
       esac
16552
 
       ;;
16553
 
 
16554
 
    mingw* | pw32* | os2*)
16555
 
      # This hack is so that the source file can tell whether it is being
16556
 
      # built for inclusion in a dll (and should export symbols for example).
16557
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16558
 
      ;;
16559
 
 
16560
 
    hpux9* | hpux10* | hpux11*)
16561
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16562
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16563
 
      # not for PA HP-UX.
16564
 
      case "$host_cpu" in
16565
 
      hppa*64*|ia64*)
16566
 
        # +Z the default
16567
 
        ;;
16568
 
      *)
16569
 
        lt_prog_compiler_pic_GCJ='+Z'
16570
 
        ;;
16571
 
      esac
16572
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16573
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16574
 
      ;;
16575
 
 
16576
 
    irix5* | irix6* | nonstopux*)
16577
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16578
 
      # PIC (with -KPIC) is the default.
16579
 
      lt_prog_compiler_static_GCJ='-non_shared'
16580
 
      ;;
16581
 
 
16582
 
    newsos6)
16583
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16584
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16585
 
      ;;
16586
 
 
16587
 
    linux*)
16588
 
      case $cc_basename in
16589
 
      icc* | ecc*)
16590
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16591
 
        lt_prog_compiler_pic_GCJ='-KPIC'
16592
 
        lt_prog_compiler_static_GCJ='-static'
16593
 
        ;;
16594
 
      pgcc* | pgf77* | pgf90*)
16595
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
16596
 
        # which looks to be a dead project)
16597
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16598
 
        lt_prog_compiler_pic_GCJ='-fpic'
16599
 
        lt_prog_compiler_static_GCJ='-static'
16600
 
        ;;
16601
 
      ccc*)
16602
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16603
 
        # All Alpha code is PIC.
16604
 
        lt_prog_compiler_static_GCJ='-non_shared'
16605
 
        ;;
16606
 
      esac
16607
 
      ;;
16608
 
 
16609
 
    osf3* | osf4* | osf5*)
16610
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16611
 
      # All OSF/1 code is PIC.
16612
 
      lt_prog_compiler_static_GCJ='-non_shared'
16613
 
      ;;
16614
 
 
16615
 
    sco3.2v5*)
16616
 
      lt_prog_compiler_pic_GCJ='-Kpic'
16617
 
      lt_prog_compiler_static_GCJ='-dn'
16618
 
      ;;
16619
 
 
16620
 
    solaris*)
16621
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16622
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16623
 
      case $cc_basename in
16624
 
      f77* | f90* | f95*)
16625
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16626
 
      *)
16627
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
16628
 
      esac
16629
 
      ;;
16630
 
 
16631
 
    sunos4*)
16632
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
16633
 
      lt_prog_compiler_pic_GCJ='-PIC'
16634
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16635
 
      ;;
16636
 
 
16637
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16638
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16639
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16640
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16641
 
      ;;
16642
 
 
16643
 
    sysv4*MP*)
16644
 
      if test -d /usr/nec ;then
16645
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
16646
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16647
 
      fi
16648
 
      ;;
16649
 
 
16650
 
    unicos*)
16651
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16652
 
      lt_prog_compiler_can_build_shared_GCJ=no
16653
 
      ;;
16654
 
 
16655
 
    uts4*)
16656
 
      lt_prog_compiler_pic_GCJ='-pic'
16657
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16658
 
      ;;
16659
 
 
16660
 
    *)
16661
 
      lt_prog_compiler_can_build_shared_GCJ=no
16662
 
      ;;
16663
 
    esac
16664
 
  fi
16665
 
 
16666
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16667
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16668
 
 
16669
 
#
16670
 
# Check to make sure the PIC flag actually works.
16671
 
#
16672
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
16673
 
 
16674
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16675
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16676
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16677
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16678
 
else
16679
 
  lt_prog_compiler_pic_works_GCJ=no
16680
 
  ac_outfile=conftest.$ac_objext
16681
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16683
 
   # Insert the option either (1) after the last *FLAGS variable, or
16684
 
   # (2) before a word containing "conftest.", or (3) at the end.
16685
 
   # Note that $ac_compile itself does not contain backslashes and begins
16686
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16687
 
   # The option is referenced via a variable to avoid confusing sed.
16688
 
   lt_compile=`echo "$ac_compile" | $SED \
16689
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691
 
   -e 's:$: $lt_compiler_flag:'`
16692
 
   (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693
 
   (eval "$lt_compile" 2>conftest.err)
16694
 
   ac_status=$?
16695
 
   cat conftest.err >&5
16696
 
   echo "$as_me:16696: \$? = $ac_status" >&5
16697
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16698
 
     # The compiler can only warn and ignore the option if not recognized
16699
 
     # So say no if there are warnings other than the usual output.
16700
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16701
 
     $SED '/^$/d' conftest.err >conftest.er2
16702
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16703
 
       lt_prog_compiler_pic_works_GCJ=yes
16704
 
     fi
16705
 
   fi
16706
 
   $rm conftest*
16707
 
 
16708
 
fi
16709
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16710
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16711
 
 
16712
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16713
 
    case $lt_prog_compiler_pic_GCJ in
16714
 
     "" | " "*) ;;
16715
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16716
 
     esac
16717
 
else
16718
 
    lt_prog_compiler_pic_GCJ=
16719
 
     lt_prog_compiler_can_build_shared_GCJ=no
16720
 
fi
16721
 
 
16722
 
fi
16723
 
case "$host_os" in
16724
 
  # For platforms which do not support PIC, -DPIC is meaningless:
16725
 
  *djgpp*)
16726
 
    lt_prog_compiler_pic_GCJ=
16727
 
    ;;
16728
 
  *)
16729
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16730
 
    ;;
16731
 
esac
16732
 
 
16733
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16734
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16735
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16736
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16737
 
else
16738
 
  lt_cv_prog_compiler_c_o_GCJ=no
16739
 
   $rm -r conftest 2>/dev/null
16740
 
   mkdir conftest
16741
 
   cd conftest
16742
 
   mkdir out
16743
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744
 
 
16745
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16746
 
   # Insert the option either (1) after the last *FLAGS variable, or
16747
 
   # (2) before a word containing "conftest.", or (3) at the end.
16748
 
   # Note that $ac_compile itself does not contain backslashes and begins
16749
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16750
 
   lt_compile=`echo "$ac_compile" | $SED \
16751
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16752
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753
 
   -e 's:$: $lt_compiler_flag:'`
16754
 
   (eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
16755
 
   (eval "$lt_compile" 2>out/conftest.err)
16756
 
   ac_status=$?
16757
 
   cat out/conftest.err >&5
16758
 
   echo "$as_me:16758: \$? = $ac_status" >&5
16759
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16760
 
   then
16761
 
     # The compiler can only warn and ignore the option if not recognized
16762
 
     # So say no if there are warnings
16763
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16764
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
16765
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16766
 
       lt_cv_prog_compiler_c_o_GCJ=yes
16767
 
     fi
16768
 
   fi
16769
 
   chmod u+w .
16770
 
   $rm conftest*
16771
 
   # SGI C++ compiler will create directory out/ii_files/ for
16772
 
   # template instantiation
16773
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16774
 
   $rm out/* && rmdir out
16775
 
   cd ..
16776
 
   rmdir conftest
16777
 
   $rm conftest*
16778
 
 
16779
 
fi
16780
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16781
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16782
 
 
16783
 
 
16784
 
hard_links="nottested"
16785
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16786
 
  # do not overwrite the value of need_locks provided by the user
16787
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16788
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16789
 
  hard_links=yes
16790
 
  $rm conftest*
16791
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16792
 
  touch conftest.a
16793
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
16794
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16795
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
16796
 
echo "${ECHO_T}$hard_links" >&6
16797
 
  if test "$hard_links" = no; then
16798
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16799
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16800
 
    need_locks=warn
16801
 
  fi
16802
 
else
16803
 
  need_locks=no
16804
 
fi
16805
 
 
16806
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16807
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16808
 
 
16809
 
  runpath_var=
16810
 
  allow_undefined_flag_GCJ=
16811
 
  enable_shared_with_static_runtimes_GCJ=no
16812
 
  archive_cmds_GCJ=
16813
 
  archive_expsym_cmds_GCJ=
16814
 
  old_archive_From_new_cmds_GCJ=
16815
 
  old_archive_from_expsyms_cmds_GCJ=
16816
 
  export_dynamic_flag_spec_GCJ=
16817
 
  whole_archive_flag_spec_GCJ=
16818
 
  thread_safe_flag_spec_GCJ=
16819
 
  hardcode_libdir_flag_spec_GCJ=
16820
 
  hardcode_libdir_flag_spec_ld_GCJ=
16821
 
  hardcode_libdir_separator_GCJ=
16822
 
  hardcode_direct_GCJ=no
16823
 
  hardcode_minus_L_GCJ=no
16824
 
  hardcode_shlibpath_var_GCJ=unsupported
16825
 
  link_all_deplibs_GCJ=unknown
16826
 
  hardcode_automatic_GCJ=no
16827
 
  module_cmds_GCJ=
16828
 
  module_expsym_cmds_GCJ=
16829
 
  always_export_symbols_GCJ=no
16830
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16831
 
  # include_expsyms should be a list of space-separated symbols to be *always*
16832
 
  # included in the symbol list
16833
 
  include_expsyms_GCJ=
16834
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
16835
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16836
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16837
 
  # as well as any symbol that contains `d'.
16838
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16839
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16840
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
16841
 
  # the symbol is explicitly referenced.  Since portable code cannot
16842
 
  # rely on this symbol name, it's probably fine to never include it in
16843
 
  # preloaded symbol tables.
16844
 
  extract_expsyms_cmds=
16845
 
  # Just being paranoid about ensuring that cc_basename is set.
16846
 
  for cc_temp in $compiler""; do
16847
 
  case $cc_temp in
16848
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16849
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16850
 
    \-*) ;;
16851
 
    *) break;;
16852
 
  esac
16853
 
done
16854
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16855
 
 
16856
 
  case $host_os in
16857
 
  cygwin* | mingw* | pw32*)
16858
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16859
 
    # When not using gcc, we currently assume that we are using
16860
 
    # Microsoft Visual C++.
16861
 
    if test "$GCC" != yes; then
16862
 
      with_gnu_ld=no
16863
 
    fi
16864
 
    ;;
16865
 
  openbsd*)
16866
 
    with_gnu_ld=no
16867
 
    ;;
16868
 
  esac
16869
 
 
16870
 
  ld_shlibs_GCJ=yes
16871
 
  if test "$with_gnu_ld" = yes; then
16872
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
16873
 
    wlarc='${wl}'
16874
 
 
16875
 
    # Set some defaults for GNU ld with shared library support. These
16876
 
    # are reset later if shared libraries are not supported. Putting them
16877
 
    # here allows them to be overridden if necessary.
16878
 
    runpath_var=LD_RUN_PATH
16879
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16880
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16881
 
    # ancient GNU ld didn't support --whole-archive et. al.
16882
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16883
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16884
 
      else
16885
 
        whole_archive_flag_spec_GCJ=
16886
 
    fi
16887
 
    supports_anon_versioning=no
16888
 
    case `$LD -v 2>/dev/null` in
16889
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16890
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16891
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16892
 
      *\ 2.11.*) ;; # other 2.11 versions
16893
 
      *) supports_anon_versioning=yes ;;
16894
 
    esac
16895
 
 
16896
 
    # See if GNU ld supports shared libraries.
16897
 
    case $host_os in
16898
 
    aix3* | aix4* | aix5*)
16899
 
      # On AIX/PPC, the GNU linker is very broken
16900
 
      if test "$host_cpu" != ia64; then
16901
 
        ld_shlibs_GCJ=no
16902
 
        cat <<EOF 1>&2
16903
 
 
16904
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16905
 
*** to be unable to reliably create shared libraries on AIX.
16906
 
*** Therefore, libtool is disabling shared libraries support.  If you
16907
 
*** really care for shared libraries, you may want to modify your PATH
16908
 
*** so that a non-GNU linker is found, and then restart.
16909
 
 
16910
 
EOF
16911
 
      fi
16912
 
      ;;
16913
 
 
16914
 
    amigaos*)
16915
 
      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)'
16916
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16917
 
      hardcode_minus_L_GCJ=yes
16918
 
 
16919
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16920
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
16921
 
      # to version 4, is to share data among multiple programs linked
16922
 
      # with the same dynamic library.  Since this doesn't match the
16923
 
      # behavior of shared libraries on other platforms, we can't use
16924
 
      # them.
16925
 
      ld_shlibs_GCJ=no
16926
 
      ;;
16927
 
 
16928
 
    beos*)
16929
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930
 
        allow_undefined_flag_GCJ=unsupported
16931
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16932
 
        # support --undefined.  This deserves some investigation.  FIXME
16933
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16934
 
      else
16935
 
        ld_shlibs_GCJ=no
16936
 
      fi
16937
 
      ;;
16938
 
 
16939
 
    cygwin* | mingw* | pw32*)
16940
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16941
 
      # as there is no search path for DLLs.
16942
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16943
 
      allow_undefined_flag_GCJ=unsupported
16944
 
      always_export_symbols_GCJ=no
16945
 
      enable_shared_with_static_runtimes_GCJ=yes
16946
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16947
 
 
16948
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16949
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16950
 
        # If the export-symbols file already is a .def file (1st line
16951
 
        # is EXPORTS), use it as is; otherwise, prepend...
16952
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16953
 
          cp $export_symbols $output_objdir/$soname.def;
16954
 
        else
16955
 
          echo EXPORTS > $output_objdir/$soname.def;
16956
 
          cat $export_symbols >> $output_objdir/$soname.def;
16957
 
        fi~
16958
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16959
 
      else
16960
 
        ld_shlibs_GCJ=no
16961
 
      fi
16962
 
      ;;
16963
 
 
16964
 
    linux*)
16965
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16966
 
        tmp_addflag=
16967
 
        case $cc_basename,$host_cpu in
16968
 
        pgcc*)                          # Portland Group C compiler
16969
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16970
 
          tmp_addflag=' $pic_flag'
16971
 
          ;;
16972
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16973
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16974
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
16975
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16976
 
          tmp_addflag=' -i_dynamic' ;;
16977
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16978
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16979
 
        ifc* | ifort*)                  # Intel Fortran compiler
16980
 
          tmp_addflag=' -nofor_main' ;;
16981
 
        esac
16982
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983
 
 
16984
 
        if test $supports_anon_versioning = yes; then
16985
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16986
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16987
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16988
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16989
 
        fi
16990
 
      else
16991
 
        ld_shlibs_GCJ=no
16992
 
      fi
16993
 
      ;;
16994
 
 
16995
 
    netbsd*)
16996
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16997
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16998
 
        wlarc=
16999
 
      else
17000
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002
 
      fi
17003
 
      ;;
17004
 
 
17005
 
    solaris* | sysv5*)
17006
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17007
 
        ld_shlibs_GCJ=no
17008
 
        cat <<EOF 1>&2
17009
 
 
17010
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17011
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17012
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17013
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17014
 
*** your PATH or compiler configuration so that the native linker is
17015
 
*** used, and then restart.
17016
 
 
17017
 
EOF
17018
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17019
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17021
 
      else
17022
 
        ld_shlibs_GCJ=no
17023
 
      fi
17024
 
      ;;
17025
 
 
17026
 
    sunos4*)
17027
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17028
 
      wlarc=
17029
 
      hardcode_direct_GCJ=yes
17030
 
      hardcode_shlibpath_var_GCJ=no
17031
 
      ;;
17032
 
 
17033
 
    *)
17034
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17035
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17036
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17037
 
      else
17038
 
        ld_shlibs_GCJ=no
17039
 
      fi
17040
 
      ;;
17041
 
    esac
17042
 
 
17043
 
    if test "$ld_shlibs_GCJ" = no; then
17044
 
      runpath_var=
17045
 
      hardcode_libdir_flag_spec_GCJ=
17046
 
      export_dynamic_flag_spec_GCJ=
17047
 
      whole_archive_flag_spec_GCJ=
17048
 
    fi
17049
 
  else
17050
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17051
 
    case $host_os in
17052
 
    aix3*)
17053
 
      allow_undefined_flag_GCJ=unsupported
17054
 
      always_export_symbols_GCJ=yes
17055
 
      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'
17056
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17057
 
      # are no directories specified by -L.
17058
 
      hardcode_minus_L_GCJ=yes
17059
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17060
 
        # Neither direct hardcoding nor static linking is supported with a
17061
 
        # broken collect2.
17062
 
        hardcode_direct_GCJ=unsupported
17063
 
      fi
17064
 
      ;;
17065
 
 
17066
 
    aix4* | aix5*)
17067
 
      if test "$host_cpu" = ia64; then
17068
 
        # On IA64, the linker does run time linking by default, so we don't
17069
 
        # have to do anything special.
17070
 
        aix_use_runtimelinking=no
17071
 
        exp_sym_flag='-Bexport'
17072
 
        no_entry_flag=""
17073
 
      else
17074
 
        # If we're using GNU nm, then we don't want the "-C" option.
17075
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17076
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17077
 
          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'
17078
 
        else
17079
 
          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'
17080
 
        fi
17081
 
        aix_use_runtimelinking=no
17082
 
 
17083
 
        # Test if we are trying to use run time linking or normal
17084
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17085
 
        # need to do runtime linking.
17086
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17087
 
          for ld_flag in $LDFLAGS; do
17088
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17089
 
            aix_use_runtimelinking=yes
17090
 
            break
17091
 
          fi
17092
 
          done
17093
 
        esac
17094
 
 
17095
 
        exp_sym_flag='-bexport'
17096
 
        no_entry_flag='-bnoentry'
17097
 
      fi
17098
 
 
17099
 
      # When large executables or shared objects are built, AIX ld can
17100
 
      # have problems creating the table of contents.  If linking a library
17101
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17102
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17103
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17104
 
 
17105
 
      archive_cmds_GCJ=''
17106
 
      hardcode_direct_GCJ=yes
17107
 
      hardcode_libdir_separator_GCJ=':'
17108
 
      link_all_deplibs_GCJ=yes
17109
 
 
17110
 
      if test "$GCC" = yes; then
17111
 
        case $host_os in aix4.[012]|aix4.[012].*)
17112
 
        # We only want to do this on AIX 4.2 and lower, the check
17113
 
        # below for broken collect2 doesn't work under 4.3+
17114
 
          collect2name=`${CC} -print-prog-name=collect2`
17115
 
          if test -f "$collect2name" && \
17116
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17117
 
          then
17118
 
          # We have reworked collect2
17119
 
          hardcode_direct_GCJ=yes
17120
 
          else
17121
 
          # We have old collect2
17122
 
          hardcode_direct_GCJ=unsupported
17123
 
          # It fails to find uninstalled libraries when the uninstalled
17124
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17125
 
          # to unsupported forces relinking
17126
 
          hardcode_minus_L_GCJ=yes
17127
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17128
 
          hardcode_libdir_separator_GCJ=
17129
 
          fi
17130
 
        esac
17131
 
        shared_flag='-shared'
17132
 
        if test "$aix_use_runtimelinking" = yes; then
17133
 
          shared_flag="$shared_flag "'${wl}-G'
17134
 
        fi
17135
 
      else
17136
 
        # not using gcc
17137
 
        if test "$host_cpu" = ia64; then
17138
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17139
 
        # chokes on -Wl,-G. The following line is correct:
17140
 
          shared_flag='-G'
17141
 
        else
17142
 
        if test "$aix_use_runtimelinking" = yes; then
17143
 
            shared_flag='${wl}-G'
17144
 
          else
17145
 
            shared_flag='${wl}-bM:SRE'
17146
 
        fi
17147
 
        fi
17148
 
      fi
17149
 
 
17150
 
      # It seems that -bexpall does not export symbols beginning with
17151
 
      # underscore (_), so it is better to generate a list of symbols to export.
17152
 
      always_export_symbols_GCJ=yes
17153
 
      if test "$aix_use_runtimelinking" = yes; then
17154
 
        # Warning - without using the other runtime loading flags (-brtl),
17155
 
        # -berok will link without error, but may produce a broken library.
17156
 
        allow_undefined_flag_GCJ='-berok'
17157
 
       # Determine the default libpath from the value encoded in an empty executable.
17158
 
       cat >conftest.$ac_ext <<_ACEOF
17159
 
/* confdefs.h.  */
17160
 
_ACEOF
17161
 
cat confdefs.h >>conftest.$ac_ext
17162
 
cat >>conftest.$ac_ext <<_ACEOF
17163
 
/* end confdefs.h.  */
17164
 
 
17165
 
int
17166
 
main ()
17167
 
{
17168
 
 
17169
 
  ;
17170
 
  return 0;
17171
 
}
17172
 
_ACEOF
17173
 
rm -f conftest.$ac_objext conftest$ac_exeext
17174
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175
 
  (eval $ac_link) 2>conftest.er1
17176
 
  ac_status=$?
17177
 
  grep -v '^ *+' conftest.er1 >conftest.err
17178
 
  rm -f conftest.er1
17179
 
  cat conftest.err >&5
17180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181
 
  (exit $ac_status); } &&
17182
 
         { ac_try='test -z "$ac_c_werror_flag"
17183
 
                         || test ! -s conftest.err'
17184
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185
 
  (eval $ac_try) 2>&5
17186
 
  ac_status=$?
17187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188
 
  (exit $ac_status); }; } &&
17189
 
         { ac_try='test -s conftest$ac_exeext'
17190
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191
 
  (eval $ac_try) 2>&5
17192
 
  ac_status=$?
17193
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194
 
  (exit $ac_status); }; }; then
17195
 
 
17196
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17197
 
}'`
17198
 
# Check for a 64-bit object if we didn't find anything.
17199
 
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; }
17200
 
}'`; fi
17201
 
else
17202
 
  echo "$as_me: failed program was:" >&5
17203
 
sed 's/^/| /' conftest.$ac_ext >&5
17204
 
 
17205
 
fi
17206
 
rm -f conftest.err conftest.$ac_objext \
17207
 
      conftest$ac_exeext conftest.$ac_ext
17208
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17209
 
 
17210
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17211
 
        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"
17212
 
       else
17213
 
        if test "$host_cpu" = ia64; then
17214
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17215
 
          allow_undefined_flag_GCJ="-z nodefs"
17216
 
          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"
17217
 
        else
17218
 
         # Determine the default libpath from the value encoded in an empty executable.
17219
 
         cat >conftest.$ac_ext <<_ACEOF
17220
 
/* confdefs.h.  */
17221
 
_ACEOF
17222
 
cat confdefs.h >>conftest.$ac_ext
17223
 
cat >>conftest.$ac_ext <<_ACEOF
17224
 
/* end confdefs.h.  */
17225
 
 
17226
 
int
17227
 
main ()
17228
 
{
17229
 
 
17230
 
  ;
17231
 
  return 0;
17232
 
}
17233
 
_ACEOF
17234
 
rm -f conftest.$ac_objext conftest$ac_exeext
17235
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236
 
  (eval $ac_link) 2>conftest.er1
17237
 
  ac_status=$?
17238
 
  grep -v '^ *+' conftest.er1 >conftest.err
17239
 
  rm -f conftest.er1
17240
 
  cat conftest.err >&5
17241
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242
 
  (exit $ac_status); } &&
17243
 
         { ac_try='test -z "$ac_c_werror_flag"
17244
 
                         || test ! -s conftest.err'
17245
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246
 
  (eval $ac_try) 2>&5
17247
 
  ac_status=$?
17248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249
 
  (exit $ac_status); }; } &&
17250
 
         { ac_try='test -s conftest$ac_exeext'
17251
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252
 
  (eval $ac_try) 2>&5
17253
 
  ac_status=$?
17254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255
 
  (exit $ac_status); }; }; then
17256
 
 
17257
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17258
 
}'`
17259
 
# Check for a 64-bit object if we didn't find anything.
17260
 
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; }
17261
 
}'`; fi
17262
 
else
17263
 
  echo "$as_me: failed program was:" >&5
17264
 
sed 's/^/| /' conftest.$ac_ext >&5
17265
 
 
17266
 
fi
17267
 
rm -f conftest.err conftest.$ac_objext \
17268
 
      conftest$ac_exeext conftest.$ac_ext
17269
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17270
 
 
17271
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17272
 
          # Warning - without using the other run time loading flags,
17273
 
          # -berok will link without error, but may produce a broken library.
17274
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17275
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17276
 
          # -bexpall does not export symbols beginning with underscore (_)
17277
 
          always_export_symbols_GCJ=yes
17278
 
          # Exported symbols can be pulled into shared objects from archives
17279
 
          whole_archive_flag_spec_GCJ=' '
17280
 
          archive_cmds_need_lc_GCJ=yes
17281
 
          # This is similar to how AIX traditionally builds it's shared libraries.
17282
 
          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'
17283
 
        fi
17284
 
      fi
17285
 
      ;;
17286
 
 
17287
 
    amigaos*)
17288
 
      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)'
17289
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290
 
      hardcode_minus_L_GCJ=yes
17291
 
      # see comment about different semantics on the GNU ld section
17292
 
      ld_shlibs_GCJ=no
17293
 
      ;;
17294
 
 
17295
 
    bsdi[45]*)
17296
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17297
 
      ;;
17298
 
 
17299
 
    cygwin* | mingw* | pw32*)
17300
 
      # When not using gcc, we currently assume that we are using
17301
 
      # Microsoft Visual C++.
17302
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17303
 
      # no search path for DLLs.
17304
 
      hardcode_libdir_flag_spec_GCJ=' '
17305
 
      allow_undefined_flag_GCJ=unsupported
17306
 
      # Tell ltmain to make .lib files, not .a files.
17307
 
      libext=lib
17308
 
      # Tell ltmain to make .dll files, not .so files.
17309
 
      shrext_cmds=".dll"
17310
 
      # FIXME: Setting linknames here is a bad hack.
17311
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17312
 
      # The linker will automatically build a .lib file if we build a DLL.
17313
 
      old_archive_From_new_cmds_GCJ='true'
17314
 
      # FIXME: Should let the user specify the lib program.
17315
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17316
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17317
 
      enable_shared_with_static_runtimes_GCJ=yes
17318
 
      ;;
17319
 
 
17320
 
    darwin* | rhapsody*)
17321
 
      case "$host_os" in
17322
 
        rhapsody* | darwin1.[012])
17323
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17324
 
         ;;
17325
 
       *) # Darwin 1.3 on
17326
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17327
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17328
 
         else
17329
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17330
 
             10.[012])
17331
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17332
 
               ;;
17333
 
             10.*)
17334
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17335
 
               ;;
17336
 
           esac
17337
 
         fi
17338
 
         ;;
17339
 
      esac
17340
 
      archive_cmds_need_lc_GCJ=no
17341
 
      hardcode_direct_GCJ=no
17342
 
      hardcode_automatic_GCJ=yes
17343
 
      hardcode_shlibpath_var_GCJ=unsupported
17344
 
      whole_archive_flag_spec_GCJ=''
17345
 
      link_all_deplibs_GCJ=yes
17346
 
    if test "$GCC" = yes ; then
17347
 
        output_verbose_link_cmd='echo'
17348
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17349
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17350
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17351
 
      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}'
17352
 
      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}'
17353
 
    else
17354
 
      case $cc_basename in
17355
 
        xlc*)
17356
 
         output_verbose_link_cmd='echo'
17357
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17358
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17359
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17360
 
         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}'
17361
 
          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}'
17362
 
          ;;
17363
 
       *)
17364
 
         ld_shlibs_GCJ=no
17365
 
          ;;
17366
 
      esac
17367
 
    fi
17368
 
      ;;
17369
 
 
17370
 
    dgux*)
17371
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17372
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17373
 
      hardcode_shlibpath_var_GCJ=no
17374
 
      ;;
17375
 
 
17376
 
    freebsd1*)
17377
 
      ld_shlibs_GCJ=no
17378
 
      ;;
17379
 
 
17380
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17381
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17382
 
    # does not break anything, and helps significantly (at the cost of a little
17383
 
    # extra space).
17384
 
    freebsd2.2*)
17385
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17386
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17387
 
      hardcode_direct_GCJ=yes
17388
 
      hardcode_shlibpath_var_GCJ=no
17389
 
      ;;
17390
 
 
17391
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17392
 
    freebsd2*)
17393
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17394
 
      hardcode_direct_GCJ=yes
17395
 
      hardcode_minus_L_GCJ=yes
17396
 
      hardcode_shlibpath_var_GCJ=no
17397
 
      ;;
17398
 
 
17399
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17400
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
17401
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17402
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17403
 
      hardcode_direct_GCJ=yes
17404
 
      hardcode_shlibpath_var_GCJ=no
17405
 
      ;;
17406
 
 
17407
 
    hpux9*)
17408
 
      if test "$GCC" = yes; then
17409
 
        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'
17410
 
      else
17411
 
        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'
17412
 
      fi
17413
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17414
 
      hardcode_libdir_separator_GCJ=:
17415
 
      hardcode_direct_GCJ=yes
17416
 
 
17417
 
      # hardcode_minus_L: Not really in the search PATH,
17418
 
      # but as the default location of the library.
17419
 
      hardcode_minus_L_GCJ=yes
17420
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17421
 
      ;;
17422
 
 
17423
 
    hpux10* | hpux11*)
17424
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17425
 
        case "$host_cpu" in
17426
 
        hppa*64*|ia64*)
17427
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17428
 
          ;;
17429
 
        *)
17430
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17431
 
          ;;
17432
 
        esac
17433
 
      else
17434
 
        case "$host_cpu" in
17435
 
        hppa*64*|ia64*)
17436
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17437
 
          ;;
17438
 
        *)
17439
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17440
 
          ;;
17441
 
        esac
17442
 
      fi
17443
 
      if test "$with_gnu_ld" = no; then
17444
 
        case "$host_cpu" in
17445
 
        hppa*64*)
17446
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17447
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17448
 
          hardcode_libdir_separator_GCJ=:
17449
 
          hardcode_direct_GCJ=no
17450
 
          hardcode_shlibpath_var_GCJ=no
17451
 
          ;;
17452
 
        ia64*)
17453
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454
 
          hardcode_direct_GCJ=no
17455
 
          hardcode_shlibpath_var_GCJ=no
17456
 
 
17457
 
          # hardcode_minus_L: Not really in the search PATH,
17458
 
          # but as the default location of the library.
17459
 
          hardcode_minus_L_GCJ=yes
17460
 
          ;;
17461
 
        *)
17462
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17463
 
          hardcode_libdir_separator_GCJ=:
17464
 
          hardcode_direct_GCJ=yes
17465
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17466
 
 
17467
 
          # hardcode_minus_L: Not really in the search PATH,
17468
 
          # but as the default location of the library.
17469
 
          hardcode_minus_L_GCJ=yes
17470
 
          ;;
17471
 
        esac
17472
 
      fi
17473
 
      ;;
17474
 
 
17475
 
    irix5* | irix6* | nonstopux*)
17476
 
      if test "$GCC" = yes; then
17477
 
        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'
17478
 
      else
17479
 
        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'
17480
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17481
 
      fi
17482
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17483
 
      hardcode_libdir_separator_GCJ=:
17484
 
      link_all_deplibs_GCJ=yes
17485
 
      ;;
17486
 
 
17487
 
    netbsd*)
17488
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17489
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17490
 
      else
17491
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17492
 
      fi
17493
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17494
 
      hardcode_direct_GCJ=yes
17495
 
      hardcode_shlibpath_var_GCJ=no
17496
 
      ;;
17497
 
 
17498
 
    newsos6)
17499
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500
 
      hardcode_direct_GCJ=yes
17501
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17502
 
      hardcode_libdir_separator_GCJ=:
17503
 
      hardcode_shlibpath_var_GCJ=no
17504
 
      ;;
17505
 
 
17506
 
    openbsd*)
17507
 
      hardcode_direct_GCJ=yes
17508
 
      hardcode_shlibpath_var_GCJ=no
17509
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17510
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17511
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17512
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17513
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17514
 
      else
17515
 
       case $host_os in
17516
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17517
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17518
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17519
 
           ;;
17520
 
         *)
17521
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17522
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17523
 
           ;;
17524
 
       esac
17525
 
      fi
17526
 
      ;;
17527
 
 
17528
 
    os2*)
17529
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17530
 
      hardcode_minus_L_GCJ=yes
17531
 
      allow_undefined_flag_GCJ=unsupported
17532
 
      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'
17533
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17534
 
      ;;
17535
 
 
17536
 
    osf3*)
17537
 
      if test "$GCC" = yes; then
17538
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17539
 
        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'
17540
 
      else
17541
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17542
 
        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'
17543
 
      fi
17544
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17545
 
      hardcode_libdir_separator_GCJ=:
17546
 
      ;;
17547
 
 
17548
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
17549
 
      if test "$GCC" = yes; then
17550
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17551
 
        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'
17552
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17553
 
      else
17554
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17555
 
        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'
17556
 
        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~
17557
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17558
 
 
17559
 
        # Both c and cxx compiler support -rpath directly
17560
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17561
 
      fi
17562
 
      hardcode_libdir_separator_GCJ=:
17563
 
      ;;
17564
 
 
17565
 
    sco3.2v5*)
17566
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567
 
      hardcode_shlibpath_var_GCJ=no
17568
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17569
 
      runpath_var=LD_RUN_PATH
17570
 
      hardcode_runpath_var=yes
17571
 
      ;;
17572
 
 
17573
 
    solaris*)
17574
 
      no_undefined_flag_GCJ=' -z text'
17575
 
      if test "$GCC" = yes; then
17576
 
        wlarc='${wl}'
17577
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17579
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17580
 
      else
17581
 
        wlarc=''
17582
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17583
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17584
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17585
 
      fi
17586
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17587
 
      hardcode_shlibpath_var_GCJ=no
17588
 
      case $host_os in
17589
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17590
 
      *)
17591
 
        # The compiler driver will combine linker options so we
17592
 
        # cannot just pass the convience library names through
17593
 
        # without $wl, iff we do not link with $LD.
17594
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
17595
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17596
 
        case $wlarc in
17597
 
        '')
17598
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17599
 
        *)
17600
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17601
 
        esac ;;
17602
 
      esac
17603
 
      link_all_deplibs_GCJ=yes
17604
 
      ;;
17605
 
 
17606
 
    sunos4*)
17607
 
      if test "x$host_vendor" = xsequent; then
17608
 
        # Use $CC to link under sequent, because it throws in some extra .o
17609
 
        # files that make .init and .fini sections work.
17610
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17611
 
      else
17612
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17613
 
      fi
17614
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17615
 
      hardcode_direct_GCJ=yes
17616
 
      hardcode_minus_L_GCJ=yes
17617
 
      hardcode_shlibpath_var_GCJ=no
17618
 
      ;;
17619
 
 
17620
 
    sysv4)
17621
 
      case $host_vendor in
17622
 
        sni)
17623
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624
 
          hardcode_direct_GCJ=yes # is this really true???
17625
 
        ;;
17626
 
        siemens)
17627
 
          ## LD is ld it makes a PLAMLIB
17628
 
          ## CC just makes a GrossModule.
17629
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17630
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17631
 
          hardcode_direct_GCJ=no
17632
 
        ;;
17633
 
        motorola)
17634
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17635
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17636
 
        ;;
17637
 
      esac
17638
 
      runpath_var='LD_RUN_PATH'
17639
 
      hardcode_shlibpath_var_GCJ=no
17640
 
      ;;
17641
 
 
17642
 
    sysv4.3*)
17643
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17644
 
      hardcode_shlibpath_var_GCJ=no
17645
 
      export_dynamic_flag_spec_GCJ='-Bexport'
17646
 
      ;;
17647
 
 
17648
 
    sysv4*MP*)
17649
 
      if test -d /usr/nec; then
17650
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17651
 
        hardcode_shlibpath_var_GCJ=no
17652
 
        runpath_var=LD_RUN_PATH
17653
 
        hardcode_runpath_var=yes
17654
 
        ld_shlibs_GCJ=yes
17655
 
      fi
17656
 
      ;;
17657
 
 
17658
 
    sysv4.2uw2*)
17659
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17660
 
      hardcode_direct_GCJ=yes
17661
 
      hardcode_minus_L_GCJ=no
17662
 
      hardcode_shlibpath_var_GCJ=no
17663
 
      hardcode_runpath_var=yes
17664
 
      runpath_var=LD_RUN_PATH
17665
 
      ;;
17666
 
 
17667
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17668
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17669
 
      if test "$GCC" = yes; then
17670
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17671
 
      else
17672
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17673
 
      fi
17674
 
      runpath_var='LD_RUN_PATH'
17675
 
      hardcode_shlibpath_var_GCJ=no
17676
 
      ;;
17677
 
 
17678
 
    sysv5*)
17679
 
      no_undefined_flag_GCJ=' -z text'
17680
 
      # $CC -shared without GNU ld will not create a library from C++
17681
 
      # object files and a static libstdc++, better avoid it by now
17682
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17684
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17685
 
      hardcode_libdir_flag_spec_GCJ=
17686
 
      hardcode_shlibpath_var_GCJ=no
17687
 
      runpath_var='LD_RUN_PATH'
17688
 
      ;;
17689
 
 
17690
 
    uts4*)
17691
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17692
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17693
 
      hardcode_shlibpath_var_GCJ=no
17694
 
      ;;
17695
 
 
17696
 
    *)
17697
 
      ld_shlibs_GCJ=no
17698
 
      ;;
17699
 
    esac
17700
 
  fi
17701
 
 
17702
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17703
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17704
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17705
 
 
17706
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17707
 
if test "$GCC" = yes; then
17708
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17709
 
fi
17710
 
 
17711
 
#
17712
 
# Do we need to explicitly link libc?
17713
 
#
17714
 
case "x$archive_cmds_need_lc_GCJ" in
17715
 
x|xyes)
17716
 
  # Assume -lc should be added
17717
 
  archive_cmds_need_lc_GCJ=yes
17718
 
 
17719
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17720
 
    case $archive_cmds_GCJ in
17721
 
    *'~'*)
17722
 
      # FIXME: we may have to deal with multi-command sequences.
17723
 
      ;;
17724
 
    '$CC '*)
17725
 
      # Test whether the compiler implicitly links with -lc since on some
17726
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17727
 
      # to ld, don't add -lc before -lgcc.
17728
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17729
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17730
 
      $rm conftest*
17731
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17732
 
 
17733
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734
 
  (eval $ac_compile) 2>&5
17735
 
  ac_status=$?
17736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737
 
  (exit $ac_status); } 2>conftest.err; then
17738
 
        soname=conftest
17739
 
        lib=conftest
17740
 
        libobjs=conftest.$ac_objext
17741
 
        deplibs=
17742
 
        wl=$lt_prog_compiler_wl_GCJ
17743
 
        compiler_flags=-v
17744
 
        linker_flags=-v
17745
 
        verstring=
17746
 
        output_objdir=.
17747
 
        libname=conftest
17748
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17749
 
        allow_undefined_flag_GCJ=
17750
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17751
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17752
 
  ac_status=$?
17753
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754
 
  (exit $ac_status); }
17755
 
        then
17756
 
          archive_cmds_need_lc_GCJ=no
17757
 
        else
17758
 
          archive_cmds_need_lc_GCJ=yes
17759
 
        fi
17760
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17761
 
      else
17762
 
        cat conftest.err 1>&5
17763
 
      fi
17764
 
      $rm conftest*
17765
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17766
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17767
 
      ;;
17768
 
    esac
17769
 
  fi
17770
 
  ;;
17771
 
esac
17772
 
 
17773
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17774
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17775
 
library_names_spec=
17776
 
libname_spec='lib$name'
17777
 
soname_spec=
17778
 
shrext_cmds=".so"
17779
 
postinstall_cmds=
17780
 
postuninstall_cmds=
17781
 
finish_cmds=
17782
 
finish_eval=
17783
 
shlibpath_var=
17784
 
shlibpath_overrides_runpath=unknown
17785
 
version_type=none
17786
 
dynamic_linker="$host_os ld.so"
17787
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17788
 
if test "$GCC" = yes; then
17789
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17790
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17791
 
    # if the path contains ";" then we assume it to be the separator
17792
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17793
 
    # assumed that no part of a normal pathname contains ";" but that should
17794
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17795
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17796
 
  else
17797
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17798
 
  fi
17799
 
else
17800
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17801
 
fi
17802
 
need_lib_prefix=unknown
17803
 
hardcode_into_libs=no
17804
 
 
17805
 
# when you set need_version to no, make sure it does not cause -set_version
17806
 
# flags to be left without arguments
17807
 
need_version=unknown
17808
 
 
17809
 
case $host_os in
17810
 
aix3*)
17811
 
  version_type=linux
17812
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17813
 
  shlibpath_var=LIBPATH
17814
 
 
17815
 
  # AIX 3 has no versioning support, so we append a major version to the name.
17816
 
  soname_spec='${libname}${release}${shared_ext}$major'
17817
 
  ;;
17818
 
 
17819
 
aix4* | aix5*)
17820
 
  version_type=linux
17821
 
  need_lib_prefix=no
17822
 
  need_version=no
17823
 
  hardcode_into_libs=yes
17824
 
  if test "$host_cpu" = ia64; then
17825
 
    # AIX 5 supports IA64
17826
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17827
 
    shlibpath_var=LD_LIBRARY_PATH
17828
 
  else
17829
 
    # With GCC up to 2.95.x, collect2 would create an import file
17830
 
    # for dependence libraries.  The import file would start with
17831
 
    # the line `#! .'.  This would cause the generated library to
17832
 
    # depend on `.', always an invalid library.  This was fixed in
17833
 
    # development snapshots of GCC prior to 3.0.
17834
 
    case $host_os in
17835
 
      aix4 | aix4.[01] | aix4.[01].*)
17836
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17837
 
           echo ' yes '
17838
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17839
 
        :
17840
 
      else
17841
 
        can_build_shared=no
17842
 
      fi
17843
 
      ;;
17844
 
    esac
17845
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17846
 
    # soname into executable. Probably we can add versioning support to
17847
 
    # collect2, so additional links can be useful in future.
17848
 
    if test "$aix_use_runtimelinking" = yes; then
17849
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17850
 
      # instead of lib<name>.a to let people know that these are not
17851
 
      # typical AIX shared libraries.
17852
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853
 
    else
17854
 
      # We preserve .a as extension for shared libraries through AIX4.2
17855
 
      # and later when we are not doing run time linking.
17856
 
      library_names_spec='${libname}${release}.a $libname.a'
17857
 
      soname_spec='${libname}${release}${shared_ext}$major'
17858
 
    fi
17859
 
    shlibpath_var=LIBPATH
17860
 
  fi
17861
 
  ;;
17862
 
 
17863
 
amigaos*)
17864
 
  library_names_spec='$libname.ixlibrary $libname.a'
17865
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17866
 
  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'
17867
 
  ;;
17868
 
 
17869
 
beos*)
17870
 
  library_names_spec='${libname}${shared_ext}'
17871
 
  dynamic_linker="$host_os ld.so"
17872
 
  shlibpath_var=LIBRARY_PATH
17873
 
  ;;
17874
 
 
17875
 
bsdi[45]*)
17876
 
  version_type=linux
17877
 
  need_version=no
17878
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879
 
  soname_spec='${libname}${release}${shared_ext}$major'
17880
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17881
 
  shlibpath_var=LD_LIBRARY_PATH
17882
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17883
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17884
 
  # the default ld.so.conf also contains /usr/contrib/lib and
17885
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17886
 
  # libtool to hard-code these into programs
17887
 
  ;;
17888
 
 
17889
 
cygwin* | mingw* | pw32*)
17890
 
  version_type=windows
17891
 
  shrext_cmds=".dll"
17892
 
  need_version=no
17893
 
  need_lib_prefix=no
17894
 
 
17895
 
  case $GCC,$host_os in
17896
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
17897
 
    library_names_spec='$libname.dll.a'
17898
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17899
 
    postinstall_cmds='base_file=`basename \${file}`~
17900
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17901
 
      dldir=$destdir/`dirname \$dlpath`~
17902
 
      test -d \$dldir || mkdir -p \$dldir~
17903
 
      $install_prog $dir/$dlname \$dldir/$dlname'
17904
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17905
 
      dlpath=$dir/\$dldll~
17906
 
       $rm \$dlpath'
17907
 
    shlibpath_overrides_runpath=yes
17908
 
 
17909
 
    case $host_os in
17910
 
    cygwin*)
17911
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17912
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17913
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17914
 
      ;;
17915
 
    mingw*)
17916
 
      # MinGW DLLs use traditional 'lib' prefix
17917
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17918
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17919
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17920
 
        # It is most probably a Windows format PATH printed by
17921
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17922
 
        # path with ; separators, and with drive letters. We can handle the
17923
 
        # drive letters (cygwin fileutils understands them), so leave them,
17924
 
        # especially as we might pass files found there to a mingw objdump,
17925
 
        # which wouldn't understand a cygwinified path. Ahh.
17926
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17927
 
      else
17928
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17929
 
      fi
17930
 
      ;;
17931
 
    pw32*)
17932
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17933
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17934
 
      ;;
17935
 
    esac
17936
 
    ;;
17937
 
 
17938
 
  linux*)
17939
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17940
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17941
 
      supports_anon_versioning=no
17942
 
      case `$LD -v 2>/dev/null` in
17943
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17944
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17945
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17946
 
        *\ 2.11.*) ;; # other 2.11 versions
17947
 
        *) supports_anon_versioning=yes ;;
17948
 
      esac
17949
 
      if test $supports_anon_versioning = yes; then
17950
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17951
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17952
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
17953
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17954
 
      else
17955
 
        $archive_expsym_cmds="$archive_cmds"
17956
 
      fi
17957
 
    else
17958
 
      ld_shlibs=no
17959
 
    fi
17960
 
    ;;
17961
 
 
17962
 
  *)
17963
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17964
 
    ;;
17965
 
  esac
17966
 
  dynamic_linker='Win32 ld.exe'
17967
 
  # FIXME: first we should search . and the directory the executable is in
17968
 
  shlibpath_var=PATH
17969
 
  ;;
17970
 
 
17971
 
darwin* | rhapsody*)
17972
 
  dynamic_linker="$host_os dyld"
17973
 
  version_type=darwin
17974
 
  need_lib_prefix=no
17975
 
  need_version=no
17976
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17977
 
  soname_spec='${libname}${release}${major}$shared_ext'
17978
 
  shlibpath_overrides_runpath=yes
17979
 
  shlibpath_var=DYLD_LIBRARY_PATH
17980
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17981
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17982
 
  if test "$GCC" = yes; then
17983
 
    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"`
17984
 
  else
17985
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17986
 
  fi
17987
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17988
 
  ;;
17989
 
 
17990
 
dgux*)
17991
 
  version_type=linux
17992
 
  need_lib_prefix=no
17993
 
  need_version=no
17994
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17995
 
  soname_spec='${libname}${release}${shared_ext}$major'
17996
 
  shlibpath_var=LD_LIBRARY_PATH
17997
 
  ;;
17998
 
 
17999
 
freebsd1*)
18000
 
  dynamic_linker=no
18001
 
  ;;
18002
 
 
18003
 
kfreebsd*-gnu)
18004
 
  version_type=linux
18005
 
  need_lib_prefix=no
18006
 
  need_version=no
18007
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18008
 
  soname_spec='${libname}${release}${shared_ext}$major'
18009
 
  shlibpath_var=LD_LIBRARY_PATH
18010
 
  shlibpath_overrides_runpath=no
18011
 
  hardcode_into_libs=yes
18012
 
  dynamic_linker='GNU ld.so'
18013
 
  ;;
18014
 
 
18015
 
freebsd* | dragonfly*)
18016
 
  # DragonFly does not have aout.  When/if they implement a new
18017
 
  # versioning mechanism, adjust this.
18018
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18019
 
  version_type=freebsd-$objformat
18020
 
  case $version_type in
18021
 
    freebsd-elf*)
18022
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18023
 
      need_version=no
18024
 
      need_lib_prefix=no
18025
 
      ;;
18026
 
    freebsd-*)
18027
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18028
 
      need_version=yes
18029
 
      ;;
18030
 
  esac
18031
 
  shlibpath_var=LD_LIBRARY_PATH
18032
 
  case $host_os in
18033
 
  freebsd2*)
18034
 
    shlibpath_overrides_runpath=yes
18035
 
    ;;
18036
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18037
 
    shlibpath_overrides_runpath=yes
18038
 
    hardcode_into_libs=yes
18039
 
    ;;
18040
 
  *) # from 3.2 on
18041
 
    shlibpath_overrides_runpath=no
18042
 
    hardcode_into_libs=yes
18043
 
    ;;
18044
 
  esac
18045
 
  ;;
18046
 
 
18047
 
gnu*)
18048
 
  version_type=linux
18049
 
  need_lib_prefix=no
18050
 
  need_version=no
18051
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052
 
  soname_spec='${libname}${release}${shared_ext}$major'
18053
 
  shlibpath_var=LD_LIBRARY_PATH
18054
 
  hardcode_into_libs=yes
18055
 
  ;;
18056
 
 
18057
 
hpux9* | hpux10* | hpux11*)
18058
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18059
 
  # link against other versions.
18060
 
  version_type=sunos
18061
 
  need_lib_prefix=no
18062
 
  need_version=no
18063
 
  case "$host_cpu" in
18064
 
  ia64*)
18065
 
    shrext_cmds='.so'
18066
 
    hardcode_into_libs=yes
18067
 
    dynamic_linker="$host_os dld.so"
18068
 
    shlibpath_var=LD_LIBRARY_PATH
18069
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071
 
    soname_spec='${libname}${release}${shared_ext}$major'
18072
 
    if test "X$HPUX_IA64_MODE" = X32; then
18073
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18074
 
    else
18075
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18076
 
    fi
18077
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18078
 
    ;;
18079
 
   hppa*64*)
18080
 
     shrext_cmds='.sl'
18081
 
     hardcode_into_libs=yes
18082
 
     dynamic_linker="$host_os dld.sl"
18083
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18084
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18085
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086
 
     soname_spec='${libname}${release}${shared_ext}$major'
18087
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18088
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18089
 
     ;;
18090
 
   *)
18091
 
    shrext_cmds='.sl'
18092
 
    dynamic_linker="$host_os dld.sl"
18093
 
    shlibpath_var=SHLIB_PATH
18094
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18095
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096
 
    soname_spec='${libname}${release}${shared_ext}$major'
18097
 
    ;;
18098
 
  esac
18099
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18100
 
  postinstall_cmds='chmod 555 $lib'
18101
 
  ;;
18102
 
 
18103
 
irix5* | irix6* | nonstopux*)
18104
 
  case $host_os in
18105
 
    nonstopux*) version_type=nonstopux ;;
18106
 
    *)
18107
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18108
 
                version_type=linux
18109
 
        else
18110
 
                version_type=irix
18111
 
        fi ;;
18112
 
  esac
18113
 
  need_lib_prefix=no
18114
 
  need_version=no
18115
 
  soname_spec='${libname}${release}${shared_ext}$major'
18116
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18117
 
  case $host_os in
18118
 
  irix5* | nonstopux*)
18119
 
    libsuff= shlibsuff=
18120
 
    ;;
18121
 
  *)
18122
 
    case $LD in # libtool.m4 will add one of these switches to LD
18123
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18124
 
      libsuff= shlibsuff= libmagic=32-bit;;
18125
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18126
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18127
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18128
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18129
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18130
 
    esac
18131
 
    ;;
18132
 
  esac
18133
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18134
 
  shlibpath_overrides_runpath=no
18135
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18136
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18137
 
  hardcode_into_libs=yes
18138
 
  ;;
18139
 
 
18140
 
# No shared lib support for Linux oldld, aout, or coff.
18141
 
linux*oldld* | linux*aout* | linux*coff*)
18142
 
  dynamic_linker=no
18143
 
  ;;
18144
 
 
18145
 
# This must be Linux ELF.
18146
 
linux*)
18147
 
  version_type=linux
18148
 
  need_lib_prefix=no
18149
 
  need_version=no
18150
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151
 
  soname_spec='${libname}${release}${shared_ext}$major'
18152
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18153
 
  shlibpath_var=LD_LIBRARY_PATH
18154
 
  shlibpath_overrides_runpath=no
18155
 
  # This implies no fast_install, which is unacceptable.
18156
 
  # Some rework will be needed to allow for fast_install
18157
 
  # before this can be enabled.
18158
 
  hardcode_into_libs=yes
18159
 
 
18160
 
  # Append ld.so.conf contents to the search path
18161
 
  if test -f /etc/ld.so.conf; then
18162
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18163
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18164
 
  fi
18165
 
 
18166
 
  case $host_cpu:$lt_cv_cc_64bit_output in
18167
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
18168
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
18169
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
18170
 
    ;;
18171
 
  esac
18172
 
 
18173
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18174
 
  # powerpc, because MkLinux only supported shared libraries with the
18175
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18176
 
  # most powerpc-linux boxes support dynamic linking these days and
18177
 
  # people can always --disable-shared, the test was removed, and we
18178
 
  # assume the GNU/Linux dynamic linker is in use.
18179
 
  dynamic_linker='GNU/Linux ld.so'
18180
 
 
18181
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
18182
 
  libsuff=
18183
 
  case "$host_cpu" in
18184
 
  x86_64*)
18185
 
    echo '#line 18185 "configure"' > conftest.$ac_ext
18186
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187
 
  (eval $ac_compile) 2>&5
18188
 
  ac_status=$?
18189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190
 
  (exit $ac_status); }; then
18191
 
      case `/usr/bin/file conftest.$ac_objext` in
18192
 
      *64-bit*)
18193
 
        libsuff=64
18194
 
        ;;
18195
 
      esac
18196
 
    fi
18197
 
    rm -rf conftest*
18198
 
    ;;
18199
 
  *)
18200
 
    ;;
18201
 
  esac
18202
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18203
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18204
 
  ;;
18205
 
 
18206
 
knetbsd*-gnu)
18207
 
  version_type=linux
18208
 
  need_lib_prefix=no
18209
 
  need_version=no
18210
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18211
 
  soname_spec='${libname}${release}${shared_ext}$major'
18212
 
  shlibpath_var=LD_LIBRARY_PATH
18213
 
  shlibpath_overrides_runpath=no
18214
 
  hardcode_into_libs=yes
18215
 
  dynamic_linker='GNU ld.so'
18216
 
  ;;
18217
 
 
18218
 
netbsd*)
18219
 
  version_type=sunos
18220
 
  need_lib_prefix=no
18221
 
  need_version=no
18222
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18223
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18224
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18225
 
    dynamic_linker='NetBSD (a.out) ld.so'
18226
 
  else
18227
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18228
 
    soname_spec='${libname}${release}${shared_ext}$major'
18229
 
    dynamic_linker='NetBSD ld.elf_so'
18230
 
  fi
18231
 
  shlibpath_var=LD_LIBRARY_PATH
18232
 
  shlibpath_overrides_runpath=yes
18233
 
  hardcode_into_libs=yes
18234
 
  ;;
18235
 
 
18236
 
newsos6)
18237
 
  version_type=linux
18238
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239
 
  shlibpath_var=LD_LIBRARY_PATH
18240
 
  shlibpath_overrides_runpath=yes
18241
 
  ;;
18242
 
 
18243
 
nto-qnx*)
18244
 
  version_type=linux
18245
 
  need_lib_prefix=no
18246
 
  need_version=no
18247
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248
 
  soname_spec='${libname}${release}${shared_ext}$major'
18249
 
  shlibpath_var=LD_LIBRARY_PATH
18250
 
  shlibpath_overrides_runpath=yes
18251
 
  ;;
18252
 
 
18253
 
openbsd*)
18254
 
  version_type=sunos
18255
 
  need_lib_prefix=no
18256
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18257
 
  case $host_os in
18258
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18259
 
    *)                         need_version=no  ;;
18260
 
  esac
18261
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18262
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18263
 
  shlibpath_var=LD_LIBRARY_PATH
18264
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18265
 
    case $host_os in
18266
 
      openbsd2.[89] | openbsd2.[89].*)
18267
 
        shlibpath_overrides_runpath=no
18268
 
        ;;
18269
 
      *)
18270
 
        shlibpath_overrides_runpath=yes
18271
 
        ;;
18272
 
      esac
18273
 
  else
18274
 
    shlibpath_overrides_runpath=yes
18275
 
  fi
18276
 
  ;;
18277
 
 
18278
 
os2*)
18279
 
  libname_spec='$name'
18280
 
  shrext_cmds=".dll"
18281
 
  need_lib_prefix=no
18282
 
  library_names_spec='$libname${shared_ext} $libname.a'
18283
 
  dynamic_linker='OS/2 ld.exe'
18284
 
  shlibpath_var=LIBPATH
18285
 
  ;;
18286
 
 
18287
 
osf3* | osf4* | osf5*)
18288
 
  version_type=osf
18289
 
  need_lib_prefix=no
18290
 
  need_version=no
18291
 
  soname_spec='${libname}${release}${shared_ext}$major'
18292
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293
 
  shlibpath_var=LD_LIBRARY_PATH
18294
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18295
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18296
 
  ;;
18297
 
 
18298
 
sco3.2v5*)
18299
 
  version_type=osf
18300
 
  soname_spec='${libname}${release}${shared_ext}$major'
18301
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302
 
  shlibpath_var=LD_LIBRARY_PATH
18303
 
  ;;
18304
 
 
18305
 
solaris*)
18306
 
  version_type=linux
18307
 
  need_lib_prefix=no
18308
 
  need_version=no
18309
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310
 
  soname_spec='${libname}${release}${shared_ext}$major'
18311
 
  shlibpath_var=LD_LIBRARY_PATH
18312
 
  shlibpath_overrides_runpath=yes
18313
 
  hardcode_into_libs=yes
18314
 
  # ldd complains unless libraries are executable
18315
 
  postinstall_cmds='chmod +x $lib'
18316
 
  ;;
18317
 
 
18318
 
sunos4*)
18319
 
  version_type=sunos
18320
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18321
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18322
 
  shlibpath_var=LD_LIBRARY_PATH
18323
 
  shlibpath_overrides_runpath=yes
18324
 
  if test "$with_gnu_ld" = yes; then
18325
 
    need_lib_prefix=no
18326
 
  fi
18327
 
  need_version=yes
18328
 
  ;;
18329
 
 
18330
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18331
 
  version_type=linux
18332
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333
 
  soname_spec='${libname}${release}${shared_ext}$major'
18334
 
  shlibpath_var=LD_LIBRARY_PATH
18335
 
  case $host_vendor in
18336
 
    sni)
18337
 
      shlibpath_overrides_runpath=no
18338
 
      need_lib_prefix=no
18339
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18340
 
      runpath_var=LD_RUN_PATH
18341
 
      ;;
18342
 
    siemens)
18343
 
      need_lib_prefix=no
18344
 
      ;;
18345
 
    motorola)
18346
 
      need_lib_prefix=no
18347
 
      need_version=no
18348
 
      shlibpath_overrides_runpath=no
18349
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18350
 
      ;;
18351
 
  esac
18352
 
  ;;
18353
 
 
18354
 
sysv4*MP*)
18355
 
  if test -d /usr/nec ;then
18356
 
    version_type=linux
18357
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18358
 
    soname_spec='$libname${shared_ext}.$major'
18359
 
    shlibpath_var=LD_LIBRARY_PATH
18360
 
  fi
18361
 
  ;;
18362
 
 
18363
 
uts4*)
18364
 
  version_type=linux
18365
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366
 
  soname_spec='${libname}${release}${shared_ext}$major'
18367
 
  shlibpath_var=LD_LIBRARY_PATH
18368
 
  ;;
18369
 
 
18370
 
*)
18371
 
  dynamic_linker=no
18372
 
  ;;
18373
 
esac
18374
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18375
 
echo "${ECHO_T}$dynamic_linker" >&6
18376
 
test "$dynamic_linker" = no && can_build_shared=no
18377
 
 
18378
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18379
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18380
 
hardcode_action_GCJ=
18381
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18382
 
   test -n "$runpath_var_GCJ" || \
18383
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18384
 
 
18385
 
  # We can hardcode non-existant directories.
18386
 
  if test "$hardcode_direct_GCJ" != no &&
18387
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18388
 
     # have to relink, otherwise we might link with an installed library
18389
 
     # when we should be linking with a yet-to-be-installed one
18390
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18391
 
     test "$hardcode_minus_L_GCJ" != no; then
18392
 
    # Linking always hardcodes the temporary library directory.
18393
 
    hardcode_action_GCJ=relink
18394
 
  else
18395
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18396
 
    hardcode_action_GCJ=immediate
18397
 
  fi
18398
 
else
18399
 
  # We cannot hardcode anything, or else we can only hardcode existing
18400
 
  # directories.
18401
 
  hardcode_action_GCJ=unsupported
18402
 
fi
18403
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18404
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18405
 
 
18406
 
if test "$hardcode_action_GCJ" = relink; then
18407
 
  # Fast installation is not supported
18408
 
  enable_fast_install=no
18409
 
elif test "$shlibpath_overrides_runpath" = yes ||
18410
 
     test "$enable_shared" = no; then
18411
 
  # Fast installation is not necessary
18412
 
  enable_fast_install=needless
18413
 
fi
18414
 
 
18415
 
striplib=
18416
 
old_striplib=
18417
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18418
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18419
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18420
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18421
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18422
 
  echo "$as_me:$LINENO: result: yes" >&5
18423
 
echo "${ECHO_T}yes" >&6
18424
 
else
18425
 
# FIXME - insert some real tests, host_os isn't really good enough
18426
 
  case $host_os in
18427
 
   darwin*)
18428
 
       if test -n "$STRIP" ; then
18429
 
         striplib="$STRIP -x"
18430
 
         echo "$as_me:$LINENO: result: yes" >&5
18431
 
echo "${ECHO_T}yes" >&6
18432
 
       else
18433
 
  echo "$as_me:$LINENO: result: no" >&5
18434
 
echo "${ECHO_T}no" >&6
18435
 
fi
18436
 
       ;;
18437
 
   *)
18438
 
  echo "$as_me:$LINENO: result: no" >&5
18439
 
echo "${ECHO_T}no" >&6
18440
 
    ;;
18441
 
  esac
18442
 
fi
18443
 
 
18444
 
if test "x$enable_dlopen" != xyes; then
18445
 
  enable_dlopen=unknown
18446
 
  enable_dlopen_self=unknown
18447
 
  enable_dlopen_self_static=unknown
18448
 
else
18449
 
  lt_cv_dlopen=no
18450
 
  lt_cv_dlopen_libs=
18451
 
 
18452
 
  case $host_os in
18453
 
  beos*)
18454
 
    lt_cv_dlopen="load_add_on"
18455
 
    lt_cv_dlopen_libs=
18456
 
    lt_cv_dlopen_self=yes
18457
 
    ;;
18458
 
 
18459
 
  mingw* | pw32*)
18460
 
    lt_cv_dlopen="LoadLibrary"
18461
 
    lt_cv_dlopen_libs=
18462
 
   ;;
18463
 
 
18464
 
  cygwin*)
18465
 
    lt_cv_dlopen="dlopen"
18466
 
    lt_cv_dlopen_libs=
18467
 
   ;;
18468
 
 
18469
 
  darwin*)
18470
 
  # if libdl is installed we need to link against it
18471
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18472
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18473
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18474
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18475
 
else
18476
 
  ac_check_lib_save_LIBS=$LIBS
18477
 
LIBS="-ldl  $LIBS"
18478
 
cat >conftest.$ac_ext <<_ACEOF
18479
 
/* confdefs.h.  */
18480
 
_ACEOF
18481
 
cat confdefs.h >>conftest.$ac_ext
18482
 
cat >>conftest.$ac_ext <<_ACEOF
18483
 
/* end confdefs.h.  */
18484
 
 
18485
 
/* Override any gcc2 internal prototype to avoid an error.  */
18486
 
#ifdef __cplusplus
18487
 
extern "C"
18488
 
#endif
18489
 
/* We use char because int might match the return type of a gcc2
18490
 
   builtin and then its argument prototype would still apply.  */
18491
 
char dlopen ();
18492
 
int
18493
 
main ()
18494
 
{
18495
 
dlopen ();
18496
 
  ;
18497
 
  return 0;
18498
 
}
18499
 
_ACEOF
18500
 
rm -f conftest.$ac_objext conftest$ac_exeext
18501
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18502
 
  (eval $ac_link) 2>conftest.er1
18503
 
  ac_status=$?
18504
 
  grep -v '^ *+' conftest.er1 >conftest.err
18505
 
  rm -f conftest.er1
18506
 
  cat conftest.err >&5
18507
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508
 
  (exit $ac_status); } &&
18509
 
         { ac_try='test -z "$ac_c_werror_flag"
18510
 
                         || test ! -s conftest.err'
18511
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512
 
  (eval $ac_try) 2>&5
18513
 
  ac_status=$?
18514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515
 
  (exit $ac_status); }; } &&
18516
 
         { ac_try='test -s conftest$ac_exeext'
18517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518
 
  (eval $ac_try) 2>&5
18519
 
  ac_status=$?
18520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521
 
  (exit $ac_status); }; }; then
18522
 
  ac_cv_lib_dl_dlopen=yes
18523
 
else
18524
 
  echo "$as_me: failed program was:" >&5
18525
 
sed 's/^/| /' conftest.$ac_ext >&5
18526
 
 
18527
 
ac_cv_lib_dl_dlopen=no
18528
 
fi
18529
 
rm -f conftest.err conftest.$ac_objext \
18530
 
      conftest$ac_exeext conftest.$ac_ext
18531
 
LIBS=$ac_check_lib_save_LIBS
18532
 
fi
18533
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18534
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18535
 
if test $ac_cv_lib_dl_dlopen = yes; then
18536
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18537
 
else
18538
 
 
18539
 
    lt_cv_dlopen="dyld"
18540
 
    lt_cv_dlopen_libs=
18541
 
    lt_cv_dlopen_self=yes
18542
 
 
18543
 
fi
18544
 
 
18545
 
   ;;
18546
 
 
18547
 
  *)
18548
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
18549
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18550
 
if test "${ac_cv_func_shl_load+set}" = set; then
18551
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18552
 
else
18553
 
  cat >conftest.$ac_ext <<_ACEOF
18554
 
/* confdefs.h.  */
18555
 
_ACEOF
18556
 
cat confdefs.h >>conftest.$ac_ext
18557
 
cat >>conftest.$ac_ext <<_ACEOF
18558
 
/* end confdefs.h.  */
18559
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18560
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18561
 
#define shl_load innocuous_shl_load
18562
 
 
18563
 
/* System header to define __stub macros and hopefully few prototypes,
18564
 
    which can conflict with char shl_load (); below.
18565
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18566
 
    <limits.h> exists even on freestanding compilers.  */
18567
 
 
18568
 
#ifdef __STDC__
18569
 
# include <limits.h>
18570
 
#else
18571
 
# include <assert.h>
18572
 
#endif
18573
 
 
18574
 
#undef shl_load
18575
 
 
18576
 
/* Override any gcc2 internal prototype to avoid an error.  */
18577
 
#ifdef __cplusplus
18578
 
extern "C"
18579
 
{
18580
 
#endif
18581
 
/* We use char because int might match the return type of a gcc2
18582
 
   builtin and then its argument prototype would still apply.  */
18583
 
char shl_load ();
18584
 
/* The GNU C library defines this for functions which it implements
18585
 
    to always fail with ENOSYS.  Some functions are actually named
18586
 
    something starting with __ and the normal name is an alias.  */
18587
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18588
 
choke me
18589
 
#else
18590
 
char (*f) () = shl_load;
18591
 
#endif
18592
 
#ifdef __cplusplus
18593
 
}
18594
 
#endif
18595
 
 
18596
 
int
18597
 
main ()
18598
 
{
18599
 
return f != shl_load;
18600
 
  ;
18601
 
  return 0;
18602
 
}
18603
 
_ACEOF
18604
 
rm -f conftest.$ac_objext conftest$ac_exeext
18605
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606
 
  (eval $ac_link) 2>conftest.er1
18607
 
  ac_status=$?
18608
 
  grep -v '^ *+' conftest.er1 >conftest.err
18609
 
  rm -f conftest.er1
18610
 
  cat conftest.err >&5
18611
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612
 
  (exit $ac_status); } &&
18613
 
         { ac_try='test -z "$ac_c_werror_flag"
18614
 
                         || test ! -s conftest.err'
18615
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616
 
  (eval $ac_try) 2>&5
18617
 
  ac_status=$?
18618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619
 
  (exit $ac_status); }; } &&
18620
 
         { ac_try='test -s conftest$ac_exeext'
18621
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622
 
  (eval $ac_try) 2>&5
18623
 
  ac_status=$?
18624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625
 
  (exit $ac_status); }; }; then
18626
 
  ac_cv_func_shl_load=yes
18627
 
else
18628
 
  echo "$as_me: failed program was:" >&5
18629
 
sed 's/^/| /' conftest.$ac_ext >&5
18630
 
 
18631
 
ac_cv_func_shl_load=no
18632
 
fi
18633
 
rm -f conftest.err conftest.$ac_objext \
18634
 
      conftest$ac_exeext conftest.$ac_ext
18635
 
fi
18636
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18637
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18638
 
if test $ac_cv_func_shl_load = yes; then
18639
 
  lt_cv_dlopen="shl_load"
18640
 
else
18641
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18642
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18643
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18644
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18645
 
else
18646
 
  ac_check_lib_save_LIBS=$LIBS
18647
 
LIBS="-ldld  $LIBS"
18648
 
cat >conftest.$ac_ext <<_ACEOF
18649
 
/* confdefs.h.  */
18650
 
_ACEOF
18651
 
cat confdefs.h >>conftest.$ac_ext
18652
 
cat >>conftest.$ac_ext <<_ACEOF
18653
 
/* end confdefs.h.  */
18654
 
 
18655
 
/* Override any gcc2 internal prototype to avoid an error.  */
18656
 
#ifdef __cplusplus
18657
 
extern "C"
18658
 
#endif
18659
 
/* We use char because int might match the return type of a gcc2
18660
 
   builtin and then its argument prototype would still apply.  */
18661
 
char shl_load ();
18662
 
int
18663
 
main ()
18664
 
{
18665
 
shl_load ();
18666
 
  ;
18667
 
  return 0;
18668
 
}
18669
 
_ACEOF
18670
 
rm -f conftest.$ac_objext conftest$ac_exeext
18671
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18672
 
  (eval $ac_link) 2>conftest.er1
18673
 
  ac_status=$?
18674
 
  grep -v '^ *+' conftest.er1 >conftest.err
18675
 
  rm -f conftest.er1
18676
 
  cat conftest.err >&5
18677
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678
 
  (exit $ac_status); } &&
18679
 
         { ac_try='test -z "$ac_c_werror_flag"
18680
 
                         || test ! -s conftest.err'
18681
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682
 
  (eval $ac_try) 2>&5
18683
 
  ac_status=$?
18684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685
 
  (exit $ac_status); }; } &&
18686
 
         { ac_try='test -s conftest$ac_exeext'
18687
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688
 
  (eval $ac_try) 2>&5
18689
 
  ac_status=$?
18690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691
 
  (exit $ac_status); }; }; then
18692
 
  ac_cv_lib_dld_shl_load=yes
18693
 
else
18694
 
  echo "$as_me: failed program was:" >&5
18695
 
sed 's/^/| /' conftest.$ac_ext >&5
18696
 
 
18697
 
ac_cv_lib_dld_shl_load=no
18698
 
fi
18699
 
rm -f conftest.err conftest.$ac_objext \
18700
 
      conftest$ac_exeext conftest.$ac_ext
18701
 
LIBS=$ac_check_lib_save_LIBS
18702
 
fi
18703
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18704
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18705
 
if test $ac_cv_lib_dld_shl_load = yes; then
18706
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18707
 
else
18708
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
18709
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18710
 
if test "${ac_cv_func_dlopen+set}" = set; then
18711
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18712
 
else
18713
 
  cat >conftest.$ac_ext <<_ACEOF
18714
 
/* confdefs.h.  */
18715
 
_ACEOF
18716
 
cat confdefs.h >>conftest.$ac_ext
18717
 
cat >>conftest.$ac_ext <<_ACEOF
18718
 
/* end confdefs.h.  */
18719
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18720
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18721
 
#define dlopen innocuous_dlopen
18722
 
 
18723
 
/* System header to define __stub macros and hopefully few prototypes,
18724
 
    which can conflict with char dlopen (); below.
18725
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18726
 
    <limits.h> exists even on freestanding compilers.  */
18727
 
 
18728
 
#ifdef __STDC__
18729
 
# include <limits.h>
18730
 
#else
18731
 
# include <assert.h>
18732
 
#endif
18733
 
 
18734
 
#undef dlopen
18735
 
 
18736
 
/* Override any gcc2 internal prototype to avoid an error.  */
18737
 
#ifdef __cplusplus
18738
 
extern "C"
18739
 
{
18740
 
#endif
18741
 
/* We use char because int might match the return type of a gcc2
18742
 
   builtin and then its argument prototype would still apply.  */
18743
 
char dlopen ();
18744
 
/* The GNU C library defines this for functions which it implements
18745
 
    to always fail with ENOSYS.  Some functions are actually named
18746
 
    something starting with __ and the normal name is an alias.  */
18747
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18748
 
choke me
18749
 
#else
18750
 
char (*f) () = dlopen;
18751
 
#endif
18752
 
#ifdef __cplusplus
18753
 
}
18754
 
#endif
18755
 
 
18756
 
int
18757
 
main ()
18758
 
{
18759
 
return f != dlopen;
18760
 
  ;
18761
 
  return 0;
18762
 
}
18763
 
_ACEOF
18764
 
rm -f conftest.$ac_objext conftest$ac_exeext
18765
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766
 
  (eval $ac_link) 2>conftest.er1
18767
 
  ac_status=$?
18768
 
  grep -v '^ *+' conftest.er1 >conftest.err
18769
 
  rm -f conftest.er1
18770
 
  cat conftest.err >&5
18771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772
 
  (exit $ac_status); } &&
18773
 
         { ac_try='test -z "$ac_c_werror_flag"
18774
 
                         || test ! -s conftest.err'
18775
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776
 
  (eval $ac_try) 2>&5
18777
 
  ac_status=$?
18778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779
 
  (exit $ac_status); }; } &&
18780
 
         { ac_try='test -s conftest$ac_exeext'
18781
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782
 
  (eval $ac_try) 2>&5
18783
 
  ac_status=$?
18784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785
 
  (exit $ac_status); }; }; then
18786
 
  ac_cv_func_dlopen=yes
18787
 
else
18788
 
  echo "$as_me: failed program was:" >&5
18789
 
sed 's/^/| /' conftest.$ac_ext >&5
18790
 
 
18791
 
ac_cv_func_dlopen=no
18792
 
fi
18793
 
rm -f conftest.err conftest.$ac_objext \
18794
 
      conftest$ac_exeext conftest.$ac_ext
18795
 
fi
18796
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18797
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18798
 
if test $ac_cv_func_dlopen = yes; then
18799
 
  lt_cv_dlopen="dlopen"
18800
 
else
18801
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18802
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18803
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18804
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18805
 
else
18806
 
  ac_check_lib_save_LIBS=$LIBS
18807
 
LIBS="-ldl  $LIBS"
18808
 
cat >conftest.$ac_ext <<_ACEOF
18809
 
/* confdefs.h.  */
18810
 
_ACEOF
18811
 
cat confdefs.h >>conftest.$ac_ext
18812
 
cat >>conftest.$ac_ext <<_ACEOF
18813
 
/* end confdefs.h.  */
18814
 
 
18815
 
/* Override any gcc2 internal prototype to avoid an error.  */
18816
 
#ifdef __cplusplus
18817
 
extern "C"
18818
 
#endif
18819
 
/* We use char because int might match the return type of a gcc2
18820
 
   builtin and then its argument prototype would still apply.  */
18821
 
char dlopen ();
18822
 
int
18823
 
main ()
18824
 
{
18825
 
dlopen ();
18826
 
  ;
18827
 
  return 0;
18828
 
}
18829
 
_ACEOF
18830
 
rm -f conftest.$ac_objext conftest$ac_exeext
18831
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18832
 
  (eval $ac_link) 2>conftest.er1
18833
 
  ac_status=$?
18834
 
  grep -v '^ *+' conftest.er1 >conftest.err
18835
 
  rm -f conftest.er1
18836
 
  cat conftest.err >&5
18837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838
 
  (exit $ac_status); } &&
18839
 
         { ac_try='test -z "$ac_c_werror_flag"
18840
 
                         || test ! -s conftest.err'
18841
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842
 
  (eval $ac_try) 2>&5
18843
 
  ac_status=$?
18844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845
 
  (exit $ac_status); }; } &&
18846
 
         { ac_try='test -s conftest$ac_exeext'
18847
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848
 
  (eval $ac_try) 2>&5
18849
 
  ac_status=$?
18850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851
 
  (exit $ac_status); }; }; then
18852
 
  ac_cv_lib_dl_dlopen=yes
18853
 
else
18854
 
  echo "$as_me: failed program was:" >&5
18855
 
sed 's/^/| /' conftest.$ac_ext >&5
18856
 
 
18857
 
ac_cv_lib_dl_dlopen=no
18858
 
fi
18859
 
rm -f conftest.err conftest.$ac_objext \
18860
 
      conftest$ac_exeext conftest.$ac_ext
18861
 
LIBS=$ac_check_lib_save_LIBS
18862
 
fi
18863
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18864
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18865
 
if test $ac_cv_lib_dl_dlopen = yes; then
18866
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18867
 
else
18868
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18869
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18870
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18871
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18872
 
else
18873
 
  ac_check_lib_save_LIBS=$LIBS
18874
 
LIBS="-lsvld  $LIBS"
18875
 
cat >conftest.$ac_ext <<_ACEOF
18876
 
/* confdefs.h.  */
18877
 
_ACEOF
18878
 
cat confdefs.h >>conftest.$ac_ext
18879
 
cat >>conftest.$ac_ext <<_ACEOF
18880
 
/* end confdefs.h.  */
18881
 
 
18882
 
/* Override any gcc2 internal prototype to avoid an error.  */
18883
 
#ifdef __cplusplus
18884
 
extern "C"
18885
 
#endif
18886
 
/* We use char because int might match the return type of a gcc2
18887
 
   builtin and then its argument prototype would still apply.  */
18888
 
char dlopen ();
18889
 
int
18890
 
main ()
18891
 
{
18892
 
dlopen ();
18893
 
  ;
18894
 
  return 0;
18895
 
}
18896
 
_ACEOF
18897
 
rm -f conftest.$ac_objext conftest$ac_exeext
18898
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899
 
  (eval $ac_link) 2>conftest.er1
18900
 
  ac_status=$?
18901
 
  grep -v '^ *+' conftest.er1 >conftest.err
18902
 
  rm -f conftest.er1
18903
 
  cat conftest.err >&5
18904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905
 
  (exit $ac_status); } &&
18906
 
         { ac_try='test -z "$ac_c_werror_flag"
18907
 
                         || test ! -s conftest.err'
18908
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909
 
  (eval $ac_try) 2>&5
18910
 
  ac_status=$?
18911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912
 
  (exit $ac_status); }; } &&
18913
 
         { ac_try='test -s conftest$ac_exeext'
18914
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915
 
  (eval $ac_try) 2>&5
18916
 
  ac_status=$?
18917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918
 
  (exit $ac_status); }; }; then
18919
 
  ac_cv_lib_svld_dlopen=yes
18920
 
else
18921
 
  echo "$as_me: failed program was:" >&5
18922
 
sed 's/^/| /' conftest.$ac_ext >&5
18923
 
 
18924
 
ac_cv_lib_svld_dlopen=no
18925
 
fi
18926
 
rm -f conftest.err conftest.$ac_objext \
18927
 
      conftest$ac_exeext conftest.$ac_ext
18928
 
LIBS=$ac_check_lib_save_LIBS
18929
 
fi
18930
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18931
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18932
 
if test $ac_cv_lib_svld_dlopen = yes; then
18933
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18934
 
else
18935
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18936
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18937
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18939
 
else
18940
 
  ac_check_lib_save_LIBS=$LIBS
18941
 
LIBS="-ldld  $LIBS"
18942
 
cat >conftest.$ac_ext <<_ACEOF
18943
 
/* confdefs.h.  */
18944
 
_ACEOF
18945
 
cat confdefs.h >>conftest.$ac_ext
18946
 
cat >>conftest.$ac_ext <<_ACEOF
18947
 
/* end confdefs.h.  */
18948
 
 
18949
 
/* Override any gcc2 internal prototype to avoid an error.  */
18950
 
#ifdef __cplusplus
18951
 
extern "C"
18952
 
#endif
18953
 
/* We use char because int might match the return type of a gcc2
18954
 
   builtin and then its argument prototype would still apply.  */
18955
 
char dld_link ();
18956
 
int
18957
 
main ()
18958
 
{
18959
 
dld_link ();
18960
 
  ;
18961
 
  return 0;
18962
 
}
18963
 
_ACEOF
18964
 
rm -f conftest.$ac_objext conftest$ac_exeext
18965
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18966
 
  (eval $ac_link) 2>conftest.er1
18967
 
  ac_status=$?
18968
 
  grep -v '^ *+' conftest.er1 >conftest.err
18969
 
  rm -f conftest.er1
18970
 
  cat conftest.err >&5
18971
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972
 
  (exit $ac_status); } &&
18973
 
         { ac_try='test -z "$ac_c_werror_flag"
18974
 
                         || test ! -s conftest.err'
18975
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976
 
  (eval $ac_try) 2>&5
18977
 
  ac_status=$?
18978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979
 
  (exit $ac_status); }; } &&
18980
 
         { ac_try='test -s conftest$ac_exeext'
18981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982
 
  (eval $ac_try) 2>&5
18983
 
  ac_status=$?
18984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985
 
  (exit $ac_status); }; }; then
18986
 
  ac_cv_lib_dld_dld_link=yes
18987
 
else
18988
 
  echo "$as_me: failed program was:" >&5
18989
 
sed 's/^/| /' conftest.$ac_ext >&5
18990
 
 
18991
 
ac_cv_lib_dld_dld_link=no
18992
 
fi
18993
 
rm -f conftest.err conftest.$ac_objext \
18994
 
      conftest$ac_exeext conftest.$ac_ext
18995
 
LIBS=$ac_check_lib_save_LIBS
18996
 
fi
18997
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18998
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18999
 
if test $ac_cv_lib_dld_dld_link = yes; then
19000
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19001
 
fi
19002
 
 
19003
 
 
19004
 
fi
19005
 
 
19006
 
 
19007
 
fi
19008
 
 
19009
 
 
19010
 
fi
19011
 
 
19012
 
 
19013
 
fi
19014
 
 
19015
 
 
19016
 
fi
19017
 
 
19018
 
    ;;
19019
 
  esac
19020
 
 
19021
 
  if test "x$lt_cv_dlopen" != xno; then
19022
 
    enable_dlopen=yes
19023
 
  else
19024
 
    enable_dlopen=no
19025
 
  fi
19026
 
 
19027
 
  case $lt_cv_dlopen in
19028
 
  dlopen)
19029
 
    save_CPPFLAGS="$CPPFLAGS"
19030
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19031
 
 
19032
 
    save_LDFLAGS="$LDFLAGS"
19033
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19034
 
 
19035
 
    save_LIBS="$LIBS"
19036
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
19037
 
 
19038
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19039
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19040
 
if test "${lt_cv_dlopen_self+set}" = set; then
19041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19042
 
else
19043
 
          if test "$cross_compiling" = yes; then :
19044
 
  lt_cv_dlopen_self=cross
19045
 
else
19046
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19047
 
  lt_status=$lt_dlunknown
19048
 
  cat > conftest.$ac_ext <<EOF
19049
 
#line 19049 "configure"
19050
 
#include "confdefs.h"
19051
 
 
19052
 
#if HAVE_DLFCN_H
19053
 
#include <dlfcn.h>
19054
 
#endif
19055
 
 
19056
 
#include <stdio.h>
19057
 
 
19058
 
#ifdef RTLD_GLOBAL
19059
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19060
 
#else
19061
 
#  ifdef DL_GLOBAL
19062
 
#    define LT_DLGLOBAL         DL_GLOBAL
19063
 
#  else
19064
 
#    define LT_DLGLOBAL         0
19065
 
#  endif
19066
 
#endif
19067
 
 
19068
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19069
 
   find out it does not work in some platform. */
19070
 
#ifndef LT_DLLAZY_OR_NOW
19071
 
#  ifdef RTLD_LAZY
19072
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19073
 
#  else
19074
 
#    ifdef DL_LAZY
19075
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19076
 
#    else
19077
 
#      ifdef RTLD_NOW
19078
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19079
 
#      else
19080
 
#        ifdef DL_NOW
19081
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19082
 
#        else
19083
 
#          define LT_DLLAZY_OR_NOW      0
19084
 
#        endif
19085
 
#      endif
19086
 
#    endif
19087
 
#  endif
19088
 
#endif
19089
 
 
19090
 
#ifdef __cplusplus
19091
 
extern "C" void exit (int);
19092
 
#endif
19093
 
 
19094
 
void fnord() { int i=42;}
19095
 
int main ()
19096
 
{
19097
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19098
 
  int status = $lt_dlunknown;
19099
 
 
19100
 
  if (self)
19101
 
    {
19102
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19103
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19104
 
      /* dlclose (self); */
19105
 
    }
19106
 
 
19107
 
    exit (status);
19108
 
}
19109
 
EOF
19110
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111
 
  (eval $ac_link) 2>&5
19112
 
  ac_status=$?
19113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19115
 
    (./conftest; exit; ) 2>/dev/null
19116
 
    lt_status=$?
19117
 
    case x$lt_status in
19118
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19119
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19120
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19121
 
    esac
19122
 
  else :
19123
 
    # compilation failed
19124
 
    lt_cv_dlopen_self=no
19125
 
  fi
19126
 
fi
19127
 
rm -fr conftest*
19128
 
 
19129
 
 
19130
 
fi
19131
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19132
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19133
 
 
19134
 
    if test "x$lt_cv_dlopen_self" = xyes; then
19135
 
      LDFLAGS="$LDFLAGS $link_static_flag"
19136
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19137
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19138
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
19139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19140
 
else
19141
 
          if test "$cross_compiling" = yes; then :
19142
 
  lt_cv_dlopen_self_static=cross
19143
 
else
19144
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19145
 
  lt_status=$lt_dlunknown
19146
 
  cat > conftest.$ac_ext <<EOF
19147
 
#line 19147 "configure"
19148
 
#include "confdefs.h"
19149
 
 
19150
 
#if HAVE_DLFCN_H
19151
 
#include <dlfcn.h>
19152
 
#endif
19153
 
 
19154
 
#include <stdio.h>
19155
 
 
19156
 
#ifdef RTLD_GLOBAL
19157
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19158
 
#else
19159
 
#  ifdef DL_GLOBAL
19160
 
#    define LT_DLGLOBAL         DL_GLOBAL
19161
 
#  else
19162
 
#    define LT_DLGLOBAL         0
19163
 
#  endif
19164
 
#endif
19165
 
 
19166
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19167
 
   find out it does not work in some platform. */
19168
 
#ifndef LT_DLLAZY_OR_NOW
19169
 
#  ifdef RTLD_LAZY
19170
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19171
 
#  else
19172
 
#    ifdef DL_LAZY
19173
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19174
 
#    else
19175
 
#      ifdef RTLD_NOW
19176
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19177
 
#      else
19178
 
#        ifdef DL_NOW
19179
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19180
 
#        else
19181
 
#          define LT_DLLAZY_OR_NOW      0
19182
 
#        endif
19183
 
#      endif
19184
 
#    endif
19185
 
#  endif
19186
 
#endif
19187
 
 
19188
 
#ifdef __cplusplus
19189
 
extern "C" void exit (int);
19190
 
#endif
19191
 
 
19192
 
void fnord() { int i=42;}
19193
 
int main ()
19194
 
{
19195
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19196
 
  int status = $lt_dlunknown;
19197
 
 
19198
 
  if (self)
19199
 
    {
19200
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19201
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19202
 
      /* dlclose (self); */
19203
 
    }
19204
 
 
19205
 
    exit (status);
19206
 
}
19207
 
EOF
19208
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209
 
  (eval $ac_link) 2>&5
19210
 
  ac_status=$?
19211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19213
 
    (./conftest; exit; ) 2>/dev/null
19214
 
    lt_status=$?
19215
 
    case x$lt_status in
19216
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19217
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19218
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19219
 
    esac
19220
 
  else :
19221
 
    # compilation failed
19222
 
    lt_cv_dlopen_self_static=no
19223
 
  fi
19224
 
fi
19225
 
rm -fr conftest*
19226
 
 
19227
 
 
19228
 
fi
19229
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19230
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19231
 
    fi
19232
 
 
19233
 
    CPPFLAGS="$save_CPPFLAGS"
19234
 
    LDFLAGS="$save_LDFLAGS"
19235
 
    LIBS="$save_LIBS"
19236
 
    ;;
19237
 
  esac
19238
 
 
19239
 
  case $lt_cv_dlopen_self in
19240
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19241
 
  *) enable_dlopen_self=unknown ;;
19242
 
  esac
19243
 
 
19244
 
  case $lt_cv_dlopen_self_static in
19245
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19246
 
  *) enable_dlopen_self_static=unknown ;;
19247
 
  esac
19248
 
fi
19249
 
 
19250
 
 
19251
 
# The else clause should only fire when bootstrapping the
19252
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19253
 
# with your package, and you will get complaints that there are
19254
 
# no rules to generate ltmain.sh.
19255
 
if test -f "$ltmain"; then
19256
 
  # See if we are running on zsh, and set the options which allow our commands through
19257
 
  # without removal of \ escapes.
19258
 
  if test -n "${ZSH_VERSION+set}" ; then
19259
 
    setopt NO_GLOB_SUBST
19260
 
  fi
19261
 
  # Now quote all the things that may contain metacharacters while being
19262
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19263
 
  # variables and quote the copies for generation of the libtool script.
19264
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19265
 
    SED SHELL STRIP \
19266
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19267
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19268
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19269
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19270
 
    lt_cv_sys_global_symbol_to_c_name_address \
19271
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19272
 
    old_postinstall_cmds old_postuninstall_cmds \
19273
 
    compiler_GCJ \
19274
 
    CC_GCJ \
19275
 
    LD_GCJ \
19276
 
    lt_prog_compiler_wl_GCJ \
19277
 
    lt_prog_compiler_pic_GCJ \
19278
 
    lt_prog_compiler_static_GCJ \
19279
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19280
 
    export_dynamic_flag_spec_GCJ \
19281
 
    thread_safe_flag_spec_GCJ \
19282
 
    whole_archive_flag_spec_GCJ \
19283
 
    enable_shared_with_static_runtimes_GCJ \
19284
 
    old_archive_cmds_GCJ \
19285
 
    old_archive_from_new_cmds_GCJ \
19286
 
    predep_objects_GCJ \
19287
 
    postdep_objects_GCJ \
19288
 
    predeps_GCJ \
19289
 
    postdeps_GCJ \
19290
 
    compiler_lib_search_path_GCJ \
19291
 
    archive_cmds_GCJ \
19292
 
    archive_expsym_cmds_GCJ \
19293
 
    postinstall_cmds_GCJ \
19294
 
    postuninstall_cmds_GCJ \
19295
 
    old_archive_from_expsyms_cmds_GCJ \
19296
 
    allow_undefined_flag_GCJ \
19297
 
    no_undefined_flag_GCJ \
19298
 
    export_symbols_cmds_GCJ \
19299
 
    hardcode_libdir_flag_spec_GCJ \
19300
 
    hardcode_libdir_flag_spec_ld_GCJ \
19301
 
    hardcode_libdir_separator_GCJ \
19302
 
    hardcode_automatic_GCJ \
19303
 
    module_cmds_GCJ \
19304
 
    module_expsym_cmds_GCJ \
19305
 
    lt_cv_prog_compiler_c_o_GCJ \
19306
 
    exclude_expsyms_GCJ \
19307
 
    include_expsyms_GCJ; do
19308
 
 
19309
 
    case $var in
19310
 
    old_archive_cmds_GCJ | \
19311
 
    old_archive_from_new_cmds_GCJ | \
19312
 
    archive_cmds_GCJ | \
19313
 
    archive_expsym_cmds_GCJ | \
19314
 
    module_cmds_GCJ | \
19315
 
    module_expsym_cmds_GCJ | \
19316
 
    old_archive_from_expsyms_cmds_GCJ | \
19317
 
    export_symbols_cmds_GCJ | \
19318
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19319
 
    postinstall_cmds | postuninstall_cmds | \
19320
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19321
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19322
 
      # Double-quote double-evaled strings.
19323
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19324
 
      ;;
19325
 
    *)
19326
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19327
 
      ;;
19328
 
    esac
19329
 
  done
19330
 
 
19331
 
  case $lt_echo in
19332
 
  *'\$0 --fallback-echo"')
19333
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19334
 
    ;;
19335
 
  esac
19336
 
 
19337
 
cfgfile="$ofile"
19338
 
 
19339
 
  cat <<__EOF__ >> "$cfgfile"
19340
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19341
 
 
19342
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19343
 
 
19344
 
# Shell to use when invoking shell scripts.
19345
 
SHELL=$lt_SHELL
19346
 
 
19347
 
# Whether or not to build shared libraries.
19348
 
build_libtool_libs=$enable_shared
19349
 
 
19350
 
# Whether or not to build static libraries.
19351
 
build_old_libs=$enable_static
19352
 
 
19353
 
# Whether or not to add -lc for building shared libraries.
19354
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19355
 
 
19356
 
# Whether or not to disallow shared libs when runtime libs are static
19357
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19358
 
 
19359
 
# Whether or not to optimize for fast installation.
19360
 
fast_install=$enable_fast_install
19361
 
 
19362
 
# The host system.
19363
 
host_alias=$host_alias
19364
 
host=$host
19365
 
host_os=$host_os
19366
 
 
19367
 
# The build system.
19368
 
build_alias=$build_alias
19369
 
build=$build
19370
 
build_os=$build_os
19371
 
 
19372
 
# An echo program that does not interpret backslashes.
19373
 
echo=$lt_echo
19374
 
 
19375
 
# The archiver.
19376
 
AR=$lt_AR
19377
 
AR_FLAGS=$lt_AR_FLAGS
19378
 
 
19379
 
# A C compiler.
19380
 
LTCC=$lt_LTCC
19381
 
 
19382
 
# A language-specific compiler.
19383
 
CC=$lt_compiler_GCJ
19384
 
 
19385
 
# Is the compiler the GNU C compiler?
19386
 
with_gcc=$GCC_GCJ
19387
 
 
19388
 
# An ERE matcher.
19389
 
EGREP=$lt_EGREP
19390
 
 
19391
 
# The linker used to build libraries.
19392
 
LD=$lt_LD_GCJ
19393
 
 
19394
 
# Whether we need hard or soft links.
19395
 
LN_S=$lt_LN_S
19396
 
 
19397
 
# A BSD-compatible nm program.
19398
 
NM=$lt_NM
19399
 
 
19400
 
# A symbol stripping program
19401
 
STRIP=$lt_STRIP
19402
 
 
19403
 
# Used to examine libraries when file_magic_cmd begins "file"
19404
 
MAGIC_CMD=$MAGIC_CMD
19405
 
 
19406
 
# Used on cygwin: DLL creation program.
19407
 
DLLTOOL="$DLLTOOL"
19408
 
 
19409
 
# Used on cygwin: object dumper.
19410
 
OBJDUMP="$OBJDUMP"
19411
 
 
19412
 
# Used on cygwin: assembler.
19413
 
AS="$AS"
19414
 
 
19415
 
# The name of the directory that contains temporary libtool files.
19416
 
objdir=$objdir
19417
 
 
19418
 
# How to create reloadable object files.
19419
 
reload_flag=$lt_reload_flag
19420
 
reload_cmds=$lt_reload_cmds
19421
 
 
19422
 
# How to pass a linker flag through the compiler.
19423
 
wl=$lt_lt_prog_compiler_wl_GCJ
19424
 
 
19425
 
# Object file suffix (normally "o").
19426
 
objext="$ac_objext"
19427
 
 
19428
 
# Old archive suffix (normally "a").
19429
 
libext="$libext"
19430
 
 
19431
 
# Shared library suffix (normally ".so").
19432
 
shrext_cmds='$shrext_cmds'
19433
 
 
19434
 
# Executable file suffix (normally "").
19435
 
exeext="$exeext"
19436
 
 
19437
 
# Additional compiler flags for building library objects.
19438
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19439
 
pic_mode=$pic_mode
19440
 
 
19441
 
# What is the maximum length of a command?
19442
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19443
 
 
19444
 
# Does compiler simultaneously support -c and -o options?
19445
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19446
 
 
19447
 
# Must we lock files when doing compilation?
19448
 
need_locks=$lt_need_locks
19449
 
 
19450
 
# Do we need the lib prefix for modules?
19451
 
need_lib_prefix=$need_lib_prefix
19452
 
 
19453
 
# Do we need a version for libraries?
19454
 
need_version=$need_version
19455
 
 
19456
 
# Whether dlopen is supported.
19457
 
dlopen_support=$enable_dlopen
19458
 
 
19459
 
# Whether dlopen of programs is supported.
19460
 
dlopen_self=$enable_dlopen_self
19461
 
 
19462
 
# Whether dlopen of statically linked programs is supported.
19463
 
dlopen_self_static=$enable_dlopen_self_static
19464
 
 
19465
 
# Compiler flag to prevent dynamic linking.
19466
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19467
 
 
19468
 
# Compiler flag to turn off builtin functions.
19469
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19470
 
 
19471
 
# Compiler flag to allow reflexive dlopens.
19472
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19473
 
 
19474
 
# Compiler flag to generate shared objects directly from archives.
19475
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19476
 
 
19477
 
# Compiler flag to generate thread-safe objects.
19478
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19479
 
 
19480
 
# Library versioning type.
19481
 
version_type=$version_type
19482
 
 
19483
 
# Format of library name prefix.
19484
 
libname_spec=$lt_libname_spec
19485
 
 
19486
 
# List of archive names.  First name is the real one, the rest are links.
19487
 
# The last name is the one that the linker finds with -lNAME.
19488
 
library_names_spec=$lt_library_names_spec
19489
 
 
19490
 
# The coded name of the library, if different from the real name.
19491
 
soname_spec=$lt_soname_spec
19492
 
 
19493
 
# Commands used to build and install an old-style archive.
19494
 
RANLIB=$lt_RANLIB
19495
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19496
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19497
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19498
 
 
19499
 
# Create an old-style archive from a shared archive.
19500
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19501
 
 
19502
 
# Create a temporary old-style archive to link instead of a shared archive.
19503
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19504
 
 
19505
 
# Commands used to build and install a shared archive.
19506
 
archive_cmds=$lt_archive_cmds_GCJ
19507
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19508
 
postinstall_cmds=$lt_postinstall_cmds
19509
 
postuninstall_cmds=$lt_postuninstall_cmds
19510
 
 
19511
 
# Commands used to build a loadable module (assumed same as above if empty)
19512
 
module_cmds=$lt_module_cmds_GCJ
19513
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19514
 
 
19515
 
# Commands to strip libraries.
19516
 
old_striplib=$lt_old_striplib
19517
 
striplib=$lt_striplib
19518
 
 
19519
 
# Dependencies to place before the objects being linked to create a
19520
 
# shared library.
19521
 
predep_objects=$lt_predep_objects_GCJ
19522
 
 
19523
 
# Dependencies to place after the objects being linked to create a
19524
 
# shared library.
19525
 
postdep_objects=$lt_postdep_objects_GCJ
19526
 
 
19527
 
# Dependencies to place before the objects being linked to create a
19528
 
# shared library.
19529
 
predeps=$lt_predeps_GCJ
19530
 
 
19531
 
# Dependencies to place after the objects being linked to create a
19532
 
# shared library.
19533
 
postdeps=$lt_postdeps_GCJ
19534
 
 
19535
 
# The library search path used internally by the compiler when linking
19536
 
# a shared library.
19537
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19538
 
 
19539
 
# Method to check whether dependent libraries are shared objects.
19540
 
deplibs_check_method=$lt_deplibs_check_method
19541
 
 
19542
 
# Command to use when deplibs_check_method == file_magic.
19543
 
file_magic_cmd=$lt_file_magic_cmd
19544
 
 
19545
 
# Flag that allows shared libraries with undefined symbols to be built.
19546
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19547
 
 
19548
 
# Flag that forces no undefined symbols.
19549
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19550
 
 
19551
 
# Commands used to finish a libtool library installation in a directory.
19552
 
finish_cmds=$lt_finish_cmds
19553
 
 
19554
 
# Same as above, but a single script fragment to be evaled but not shown.
19555
 
finish_eval=$lt_finish_eval
19556
 
 
19557
 
# Take the output of nm and produce a listing of raw symbols and C names.
19558
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19559
 
 
19560
 
# Transform the output of nm in a proper C declaration
19561
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19562
 
 
19563
 
# Transform the output of nm in a C name address pair
19564
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19565
 
 
19566
 
# This is the shared library runtime path variable.
19567
 
runpath_var=$runpath_var
19568
 
 
19569
 
# This is the shared library path variable.
19570
 
shlibpath_var=$shlibpath_var
19571
 
 
19572
 
# Is shlibpath searched before the hard-coded library search path?
19573
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19574
 
 
19575
 
# How to hardcode a shared library path into an executable.
19576
 
hardcode_action=$hardcode_action_GCJ
19577
 
 
19578
 
# Whether we should hardcode library paths into libraries.
19579
 
hardcode_into_libs=$hardcode_into_libs
19580
 
 
19581
 
# Flag to hardcode \$libdir into a binary during linking.
19582
 
# This must work even if \$libdir does not exist.
19583
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19584
 
 
19585
 
# If ld is used when linking, flag to hardcode \$libdir into
19586
 
# a binary during linking. This must work even if \$libdir does
19587
 
# not exist.
19588
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19589
 
 
19590
 
# Whether we need a single -rpath flag with a separated argument.
19591
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19592
 
 
19593
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19594
 
# resulting binary.
19595
 
hardcode_direct=$hardcode_direct_GCJ
19596
 
 
19597
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19598
 
# resulting binary.
19599
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19600
 
 
19601
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19602
 
# the resulting binary.
19603
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19604
 
 
19605
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19606
 
# and all subsequent libraries and executables linked against it.
19607
 
hardcode_automatic=$hardcode_automatic_GCJ
19608
 
 
19609
 
# Variables whose values should be saved in libtool wrapper scripts and
19610
 
# restored at relink time.
19611
 
variables_saved_for_relink="$variables_saved_for_relink"
19612
 
 
19613
 
# Whether libtool must link a program against all its dependency libraries.
19614
 
link_all_deplibs=$link_all_deplibs_GCJ
19615
 
 
19616
 
# Compile-time system search path for libraries
19617
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19618
 
 
19619
 
# Run-time system search path for libraries
19620
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19621
 
 
19622
 
# Fix the shell variable \$srcfile for the compiler.
19623
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
19624
 
 
19625
 
# Set to yes if exported symbols are required.
19626
 
always_export_symbols=$always_export_symbols_GCJ
19627
 
 
19628
 
# The commands to list exported symbols.
19629
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19630
 
 
19631
 
# The commands to extract the exported symbol list from a shared archive.
19632
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19633
 
 
19634
 
# Symbols that should not be listed in the preloaded symbols.
19635
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19636
 
 
19637
 
# Symbols that must always be exported.
19638
 
include_expsyms=$lt_include_expsyms_GCJ
19639
 
 
19640
 
# ### END LIBTOOL TAG CONFIG: $tagname
19641
 
 
19642
 
__EOF__
19643
 
 
19644
 
 
19645
 
else
19646
 
  # If there is no Makefile yet, we rely on a make rule to execute
19647
 
  # `config.status --recheck' to rerun these tests and create the
19648
 
  # libtool script then.
19649
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19650
 
  if test -f "$ltmain_in"; then
19651
 
    test -f Makefile && make "$ltmain"
19652
 
  fi
19653
 
fi
19654
 
 
19655
 
 
19656
 
ac_ext=c
19657
 
ac_cpp='$CPP $CPPFLAGS'
19658
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661
 
 
19662
 
CC="$lt_save_CC"
19663
 
 
19664
 
        else
19665
 
          tagname=""
19666
 
        fi
19667
 
        ;;
19668
 
 
19669
 
      RC)
19670
 
 
19671
 
 
19672
 
 
19673
 
# Source file extension for RC test sources.
19674
 
ac_ext=rc
19675
 
 
19676
 
# Object file extension for compiled RC test sources.
19677
 
objext=o
19678
 
objext_RC=$objext
19679
 
 
19680
 
# Code to be used in simple compile tests
19681
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19682
 
 
19683
 
# Code to be used in simple link tests
19684
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
19685
 
 
19686
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19687
 
 
19688
 
# If no C compiler was specified, use CC.
19689
 
LTCC=${LTCC-"$CC"}
19690
 
 
19691
 
# Allow CC to be a program name with arguments.
19692
 
compiler=$CC
19693
 
 
19694
 
 
19695
 
# save warnings/boilerplate of simple test code
19696
 
ac_outfile=conftest.$ac_objext
19697
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19698
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19699
 
_lt_compiler_boilerplate=`cat conftest.err`
19700
 
$rm conftest*
19701
 
 
19702
 
ac_outfile=conftest.$ac_objext
19703
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19704
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19705
 
_lt_linker_boilerplate=`cat conftest.err`
19706
 
$rm conftest*
19707
 
 
19708
 
 
19709
 
# Allow CC to be a program name with arguments.
19710
 
lt_save_CC="$CC"
19711
 
CC=${RC-"windres"}
19712
 
compiler=$CC
19713
 
compiler_RC=$CC
19714
 
for cc_temp in $compiler""; do
19715
 
  case $cc_temp in
19716
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19717
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19718
 
    \-*) ;;
19719
 
    *) break;;
19720
 
  esac
19721
 
done
19722
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19723
 
 
19724
 
lt_cv_prog_compiler_c_o_RC=yes
19725
 
 
19726
 
# The else clause should only fire when bootstrapping the
19727
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19728
 
# with your package, and you will get complaints that there are
19729
 
# no rules to generate ltmain.sh.
19730
 
if test -f "$ltmain"; then
19731
 
  # See if we are running on zsh, and set the options which allow our commands through
19732
 
  # without removal of \ escapes.
19733
 
  if test -n "${ZSH_VERSION+set}" ; then
19734
 
    setopt NO_GLOB_SUBST
19735
 
  fi
19736
 
  # Now quote all the things that may contain metacharacters while being
19737
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19738
 
  # variables and quote the copies for generation of the libtool script.
19739
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19740
 
    SED SHELL STRIP \
19741
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19742
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19743
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19744
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19745
 
    lt_cv_sys_global_symbol_to_c_name_address \
19746
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19747
 
    old_postinstall_cmds old_postuninstall_cmds \
19748
 
    compiler_RC \
19749
 
    CC_RC \
19750
 
    LD_RC \
19751
 
    lt_prog_compiler_wl_RC \
19752
 
    lt_prog_compiler_pic_RC \
19753
 
    lt_prog_compiler_static_RC \
19754
 
    lt_prog_compiler_no_builtin_flag_RC \
19755
 
    export_dynamic_flag_spec_RC \
19756
 
    thread_safe_flag_spec_RC \
19757
 
    whole_archive_flag_spec_RC \
19758
 
    enable_shared_with_static_runtimes_RC \
19759
 
    old_archive_cmds_RC \
19760
 
    old_archive_from_new_cmds_RC \
19761
 
    predep_objects_RC \
19762
 
    postdep_objects_RC \
19763
 
    predeps_RC \
19764
 
    postdeps_RC \
19765
 
    compiler_lib_search_path_RC \
19766
 
    archive_cmds_RC \
19767
 
    archive_expsym_cmds_RC \
19768
 
    postinstall_cmds_RC \
19769
 
    postuninstall_cmds_RC \
19770
 
    old_archive_from_expsyms_cmds_RC \
19771
 
    allow_undefined_flag_RC \
19772
 
    no_undefined_flag_RC \
19773
 
    export_symbols_cmds_RC \
19774
 
    hardcode_libdir_flag_spec_RC \
19775
 
    hardcode_libdir_flag_spec_ld_RC \
19776
 
    hardcode_libdir_separator_RC \
19777
 
    hardcode_automatic_RC \
19778
 
    module_cmds_RC \
19779
 
    module_expsym_cmds_RC \
19780
 
    lt_cv_prog_compiler_c_o_RC \
19781
 
    exclude_expsyms_RC \
19782
 
    include_expsyms_RC; do
19783
 
 
19784
 
    case $var in
19785
 
    old_archive_cmds_RC | \
19786
 
    old_archive_from_new_cmds_RC | \
19787
 
    archive_cmds_RC | \
19788
 
    archive_expsym_cmds_RC | \
19789
 
    module_cmds_RC | \
19790
 
    module_expsym_cmds_RC | \
19791
 
    old_archive_from_expsyms_cmds_RC | \
19792
 
    export_symbols_cmds_RC | \
19793
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19794
 
    postinstall_cmds | postuninstall_cmds | \
19795
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19796
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19797
 
      # Double-quote double-evaled strings.
19798
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19799
 
      ;;
19800
 
    *)
19801
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19802
 
      ;;
19803
 
    esac
19804
 
  done
19805
 
 
19806
 
  case $lt_echo in
19807
 
  *'\$0 --fallback-echo"')
19808
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19809
 
    ;;
19810
 
  esac
19811
 
 
19812
 
cfgfile="$ofile"
19813
 
 
19814
 
  cat <<__EOF__ >> "$cfgfile"
19815
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19816
 
 
19817
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19818
 
 
19819
 
# Shell to use when invoking shell scripts.
19820
 
SHELL=$lt_SHELL
19821
 
 
19822
 
# Whether or not to build shared libraries.
19823
 
build_libtool_libs=$enable_shared
19824
 
 
19825
 
# Whether or not to build static libraries.
19826
 
build_old_libs=$enable_static
19827
 
 
19828
 
# Whether or not to add -lc for building shared libraries.
19829
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
19830
 
 
19831
 
# Whether or not to disallow shared libs when runtime libs are static
19832
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19833
 
 
19834
 
# Whether or not to optimize for fast installation.
19835
 
fast_install=$enable_fast_install
19836
 
 
19837
 
# The host system.
19838
 
host_alias=$host_alias
19839
 
host=$host
19840
 
host_os=$host_os
19841
 
 
19842
 
# The build system.
19843
 
build_alias=$build_alias
19844
 
build=$build
19845
 
build_os=$build_os
19846
 
 
19847
 
# An echo program that does not interpret backslashes.
19848
 
echo=$lt_echo
19849
 
 
19850
 
# The archiver.
19851
 
AR=$lt_AR
19852
 
AR_FLAGS=$lt_AR_FLAGS
19853
 
 
19854
 
# A C compiler.
19855
 
LTCC=$lt_LTCC
19856
 
 
19857
 
# A language-specific compiler.
19858
 
CC=$lt_compiler_RC
19859
 
 
19860
 
# Is the compiler the GNU C compiler?
19861
 
with_gcc=$GCC_RC
19862
 
 
19863
 
# An ERE matcher.
19864
 
EGREP=$lt_EGREP
19865
 
 
19866
 
# The linker used to build libraries.
19867
 
LD=$lt_LD_RC
19868
 
 
19869
 
# Whether we need hard or soft links.
19870
 
LN_S=$lt_LN_S
19871
 
 
19872
 
# A BSD-compatible nm program.
19873
 
NM=$lt_NM
19874
 
 
19875
 
# A symbol stripping program
19876
 
STRIP=$lt_STRIP
19877
 
 
19878
 
# Used to examine libraries when file_magic_cmd begins "file"
19879
 
MAGIC_CMD=$MAGIC_CMD
19880
 
 
19881
 
# Used on cygwin: DLL creation program.
19882
 
DLLTOOL="$DLLTOOL"
19883
 
 
19884
 
# Used on cygwin: object dumper.
19885
 
OBJDUMP="$OBJDUMP"
19886
 
 
19887
 
# Used on cygwin: assembler.
19888
 
AS="$AS"
19889
 
 
19890
 
# The name of the directory that contains temporary libtool files.
19891
 
objdir=$objdir
19892
 
 
19893
 
# How to create reloadable object files.
19894
 
reload_flag=$lt_reload_flag
19895
 
reload_cmds=$lt_reload_cmds
19896
 
 
19897
 
# How to pass a linker flag through the compiler.
19898
 
wl=$lt_lt_prog_compiler_wl_RC
19899
 
 
19900
 
# Object file suffix (normally "o").
19901
 
objext="$ac_objext"
19902
 
 
19903
 
# Old archive suffix (normally "a").
19904
 
libext="$libext"
19905
 
 
19906
 
# Shared library suffix (normally ".so").
19907
 
shrext_cmds='$shrext_cmds'
19908
 
 
19909
 
# Executable file suffix (normally "").
19910
 
exeext="$exeext"
19911
 
 
19912
 
# Additional compiler flags for building library objects.
19913
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19914
 
pic_mode=$pic_mode
19915
 
 
19916
 
# What is the maximum length of a command?
19917
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19918
 
 
19919
 
# Does compiler simultaneously support -c and -o options?
19920
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19921
 
 
19922
 
# Must we lock files when doing compilation?
19923
 
need_locks=$lt_need_locks
19924
 
 
19925
 
# Do we need the lib prefix for modules?
19926
 
need_lib_prefix=$need_lib_prefix
19927
 
 
19928
 
# Do we need a version for libraries?
19929
 
need_version=$need_version
19930
 
 
19931
 
# Whether dlopen is supported.
19932
 
dlopen_support=$enable_dlopen
19933
 
 
19934
 
# Whether dlopen of programs is supported.
19935
 
dlopen_self=$enable_dlopen_self
19936
 
 
19937
 
# Whether dlopen of statically linked programs is supported.
19938
 
dlopen_self_static=$enable_dlopen_self_static
19939
 
 
19940
 
# Compiler flag to prevent dynamic linking.
19941
 
link_static_flag=$lt_lt_prog_compiler_static_RC
19942
 
 
19943
 
# Compiler flag to turn off builtin functions.
19944
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19945
 
 
19946
 
# Compiler flag to allow reflexive dlopens.
19947
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19948
 
 
19949
 
# Compiler flag to generate shared objects directly from archives.
19950
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19951
 
 
19952
 
# Compiler flag to generate thread-safe objects.
19953
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19954
 
 
19955
 
# Library versioning type.
19956
 
version_type=$version_type
19957
 
 
19958
 
# Format of library name prefix.
19959
 
libname_spec=$lt_libname_spec
19960
 
 
19961
 
# List of archive names.  First name is the real one, the rest are links.
19962
 
# The last name is the one that the linker finds with -lNAME.
19963
 
library_names_spec=$lt_library_names_spec
19964
 
 
19965
 
# The coded name of the library, if different from the real name.
19966
 
soname_spec=$lt_soname_spec
19967
 
 
19968
 
# Commands used to build and install an old-style archive.
19969
 
RANLIB=$lt_RANLIB
19970
 
old_archive_cmds=$lt_old_archive_cmds_RC
19971
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19972
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19973
 
 
19974
 
# Create an old-style archive from a shared archive.
19975
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19976
 
 
19977
 
# Create a temporary old-style archive to link instead of a shared archive.
19978
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19979
 
 
19980
 
# Commands used to build and install a shared archive.
19981
 
archive_cmds=$lt_archive_cmds_RC
19982
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19983
 
postinstall_cmds=$lt_postinstall_cmds
19984
 
postuninstall_cmds=$lt_postuninstall_cmds
19985
 
 
19986
 
# Commands used to build a loadable module (assumed same as above if empty)
19987
 
module_cmds=$lt_module_cmds_RC
19988
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
19989
 
 
19990
 
# Commands to strip libraries.
19991
 
old_striplib=$lt_old_striplib
19992
 
striplib=$lt_striplib
19993
 
 
19994
 
# Dependencies to place before the objects being linked to create a
19995
 
# shared library.
19996
 
predep_objects=$lt_predep_objects_RC
19997
 
 
19998
 
# Dependencies to place after the objects being linked to create a
19999
 
# shared library.
20000
 
postdep_objects=$lt_postdep_objects_RC
20001
 
 
20002
 
# Dependencies to place before the objects being linked to create a
20003
 
# shared library.
20004
 
predeps=$lt_predeps_RC
20005
 
 
20006
 
# Dependencies to place after the objects being linked to create a
20007
 
# shared library.
20008
 
postdeps=$lt_postdeps_RC
20009
 
 
20010
 
# The library search path used internally by the compiler when linking
20011
 
# a shared library.
20012
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20013
 
 
20014
 
# Method to check whether dependent libraries are shared objects.
20015
 
deplibs_check_method=$lt_deplibs_check_method
20016
 
 
20017
 
# Command to use when deplibs_check_method == file_magic.
20018
 
file_magic_cmd=$lt_file_magic_cmd
20019
 
 
20020
 
# Flag that allows shared libraries with undefined symbols to be built.
20021
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20022
 
 
20023
 
# Flag that forces no undefined symbols.
20024
 
no_undefined_flag=$lt_no_undefined_flag_RC
20025
 
 
20026
 
# Commands used to finish a libtool library installation in a directory.
20027
 
finish_cmds=$lt_finish_cmds
20028
 
 
20029
 
# Same as above, but a single script fragment to be evaled but not shown.
20030
 
finish_eval=$lt_finish_eval
20031
 
 
20032
 
# Take the output of nm and produce a listing of raw symbols and C names.
20033
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20034
 
 
20035
 
# Transform the output of nm in a proper C declaration
20036
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20037
 
 
20038
 
# Transform the output of nm in a C name address pair
20039
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20040
 
 
20041
 
# This is the shared library runtime path variable.
20042
 
runpath_var=$runpath_var
20043
 
 
20044
 
# This is the shared library path variable.
20045
 
shlibpath_var=$shlibpath_var
20046
 
 
20047
 
# Is shlibpath searched before the hard-coded library search path?
20048
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20049
 
 
20050
 
# How to hardcode a shared library path into an executable.
20051
 
hardcode_action=$hardcode_action_RC
20052
 
 
20053
 
# Whether we should hardcode library paths into libraries.
20054
 
hardcode_into_libs=$hardcode_into_libs
20055
 
 
20056
 
# Flag to hardcode \$libdir into a binary during linking.
20057
 
# This must work even if \$libdir does not exist.
20058
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20059
 
 
20060
 
# If ld is used when linking, flag to hardcode \$libdir into
20061
 
# a binary during linking. This must work even if \$libdir does
20062
 
# not exist.
20063
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20064
 
 
20065
 
# Whether we need a single -rpath flag with a separated argument.
20066
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20067
 
 
20068
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20069
 
# resulting binary.
20070
 
hardcode_direct=$hardcode_direct_RC
20071
 
 
20072
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20073
 
# resulting binary.
20074
 
hardcode_minus_L=$hardcode_minus_L_RC
20075
 
 
20076
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20077
 
# the resulting binary.
20078
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20079
 
 
20080
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20081
 
# and all subsequent libraries and executables linked against it.
20082
 
hardcode_automatic=$hardcode_automatic_RC
20083
 
 
20084
 
# Variables whose values should be saved in libtool wrapper scripts and
20085
 
# restored at relink time.
20086
 
variables_saved_for_relink="$variables_saved_for_relink"
20087
 
 
20088
 
# Whether libtool must link a program against all its dependency libraries.
20089
 
link_all_deplibs=$link_all_deplibs_RC
20090
 
 
20091
 
# Compile-time system search path for libraries
20092
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20093
 
 
20094
 
# Run-time system search path for libraries
20095
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20096
 
 
20097
 
# Fix the shell variable \$srcfile for the compiler.
20098
 
fix_srcfile_path="$fix_srcfile_path_RC"
20099
 
 
20100
 
# Set to yes if exported symbols are required.
20101
 
always_export_symbols=$always_export_symbols_RC
20102
 
 
20103
 
# The commands to list exported symbols.
20104
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20105
 
 
20106
 
# The commands to extract the exported symbol list from a shared archive.
20107
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20108
 
 
20109
 
# Symbols that should not be listed in the preloaded symbols.
20110
 
exclude_expsyms=$lt_exclude_expsyms_RC
20111
 
 
20112
 
# Symbols that must always be exported.
20113
 
include_expsyms=$lt_include_expsyms_RC
20114
 
 
20115
 
# ### END LIBTOOL TAG CONFIG: $tagname
20116
 
 
20117
 
__EOF__
20118
 
 
20119
 
 
20120
 
else
20121
 
  # If there is no Makefile yet, we rely on a make rule to execute
20122
 
  # `config.status --recheck' to rerun these tests and create the
20123
 
  # libtool script then.
20124
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20125
 
  if test -f "$ltmain_in"; then
20126
 
    test -f Makefile && make "$ltmain"
20127
 
  fi
20128
 
fi
20129
 
 
20130
 
 
20131
 
ac_ext=c
20132
 
ac_cpp='$CPP $CPPFLAGS'
20133
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20136
 
 
20137
 
CC="$lt_save_CC"
20138
 
 
20139
 
        ;;
20140
 
 
20141
 
      *)
20142
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20143
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20144
 
   { (exit 1); exit 1; }; }
20145
 
        ;;
20146
 
      esac
20147
 
 
20148
 
      # Append the new tag name to the list of available tags.
20149
 
      if test -n "$tagname" ; then
20150
 
      available_tags="$available_tags $tagname"
20151
 
    fi
20152
 
    fi
20153
 
  done
20154
 
  IFS="$lt_save_ifs"
20155
 
 
20156
 
  # Now substitute the updated list of available tags.
20157
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20158
 
    mv "${ofile}T" "$ofile"
20159
 
    chmod +x "$ofile"
20160
 
  else
20161
 
    rm -f "${ofile}T"
20162
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20163
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20164
 
   { (exit 1); exit 1; }; }
20165
 
  fi
20166
 
fi
20167
 
 
20168
 
 
20169
 
 
20170
 
# This can be used to rebuild libtool when needed
20171
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20172
 
 
20173
 
# Always use our own libtool.
20174
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20175
 
 
20176
 
# Prevent multiple expansion
20177
 
 
20178
 
 
20179
 
 
20180
 
 
20181
 
 
20182
 
 
20183
 
 
20184
 
 
20185
 
 
20186
 
 
20187
 
 
20188
 
 
20189
 
 
20190
 
 
20191
 
 
20192
 
 
20193
 
 
20194
 
 
 
10551
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10552
$as_echo "$hardcode_action" >&6; }
 
10553
 
 
10554
if test "$hardcode_action" = relink ||
 
10555
   test "$inherit_rpath" = yes; then
 
10556
  # Fast installation is not supported
 
10557
  enable_fast_install=no
 
10558
elif test "$shlibpath_overrides_runpath" = yes ||
 
10559
     test "$enable_shared" = no; then
 
10560
  # Fast installation is not necessary
 
10561
  enable_fast_install=needless
 
10562
fi
 
10563
 
 
10564
 
 
10565
 
 
10566
 
 
10567
 
 
10568
 
 
10569
  if test "x$enable_dlopen" != xyes; then
 
10570
  enable_dlopen=unknown
 
10571
  enable_dlopen_self=unknown
 
10572
  enable_dlopen_self_static=unknown
 
10573
else
 
10574
  lt_cv_dlopen=no
 
10575
  lt_cv_dlopen_libs=
 
10576
 
 
10577
  case $host_os in
 
10578
  beos*)
 
10579
    lt_cv_dlopen="load_add_on"
 
10580
    lt_cv_dlopen_libs=
 
10581
    lt_cv_dlopen_self=yes
 
10582
    ;;
 
10583
 
 
10584
  mingw* | pw32* | cegcc*)
 
10585
    lt_cv_dlopen="LoadLibrary"
 
10586
    lt_cv_dlopen_libs=
 
10587
    ;;
 
10588
 
 
10589
  cygwin*)
 
10590
    lt_cv_dlopen="dlopen"
 
10591
    lt_cv_dlopen_libs=
 
10592
    ;;
 
10593
 
 
10594
  darwin*)
 
10595
  # if libdl is installed we need to link against it
 
10596
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10597
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10598
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10599
  $as_echo_n "(cached) " >&6
 
10600
else
 
10601
  ac_check_lib_save_LIBS=$LIBS
 
10602
LIBS="-ldl  $LIBS"
 
10603
cat >conftest.$ac_ext <<_ACEOF
 
10604
/* confdefs.h.  */
 
10605
_ACEOF
 
10606
cat confdefs.h >>conftest.$ac_ext
 
10607
cat >>conftest.$ac_ext <<_ACEOF
 
10608
/* end confdefs.h.  */
 
10609
 
 
10610
/* Override any GCC internal prototype to avoid an error.
 
10611
   Use char because int might match the return type of a GCC
 
10612
   builtin and then its argument prototype would still apply.  */
 
10613
#ifdef __cplusplus
 
10614
extern "C"
 
10615
#endif
 
10616
char dlopen ();
 
10617
int
 
10618
main ()
 
10619
{
 
10620
return dlopen ();
 
10621
  ;
 
10622
  return 0;
 
10623
}
 
10624
_ACEOF
 
10625
rm -f conftest.$ac_objext conftest$ac_exeext
 
10626
if { (ac_try="$ac_link"
 
10627
case "(($ac_try" in
 
10628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10629
  *) ac_try_echo=$ac_try;;
 
10630
esac
 
10631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10632
$as_echo "$ac_try_echo") >&5
 
10633
  (eval "$ac_link") 2>conftest.er1
 
10634
  ac_status=$?
 
10635
  grep -v '^ *+' conftest.er1 >conftest.err
 
10636
  rm -f conftest.er1
 
10637
  cat conftest.err >&5
 
10638
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10639
  (exit $ac_status); } && {
 
10640
         test -z "$ac_c_werror_flag" ||
 
10641
         test ! -s conftest.err
 
10642
       } && test -s conftest$ac_exeext && {
 
10643
         test "$cross_compiling" = yes ||
 
10644
         $as_test_x conftest$ac_exeext
 
10645
       }; then
 
10646
  ac_cv_lib_dl_dlopen=yes
 
10647
else
 
10648
  $as_echo "$as_me: failed program was:" >&5
 
10649
sed 's/^/| /' conftest.$ac_ext >&5
 
10650
 
 
10651
        ac_cv_lib_dl_dlopen=no
 
10652
fi
 
10653
 
 
10654
rm -rf conftest.dSYM
 
10655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10656
      conftest$ac_exeext conftest.$ac_ext
 
10657
LIBS=$ac_check_lib_save_LIBS
 
10658
fi
 
10659
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10660
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10661
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10662
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10663
else
 
10664
 
 
10665
    lt_cv_dlopen="dyld"
 
10666
    lt_cv_dlopen_libs=
 
10667
    lt_cv_dlopen_self=yes
 
10668
 
 
10669
fi
 
10670
 
 
10671
    ;;
 
10672
 
 
10673
  *)
 
10674
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
10675
$as_echo_n "checking for shl_load... " >&6; }
 
10676
if test "${ac_cv_func_shl_load+set}" = set; then
 
10677
  $as_echo_n "(cached) " >&6
 
10678
else
 
10679
  cat >conftest.$ac_ext <<_ACEOF
 
10680
/* confdefs.h.  */
 
10681
_ACEOF
 
10682
cat confdefs.h >>conftest.$ac_ext
 
10683
cat >>conftest.$ac_ext <<_ACEOF
 
10684
/* end confdefs.h.  */
 
10685
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10686
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10687
#define shl_load innocuous_shl_load
 
10688
 
 
10689
/* System header to define __stub macros and hopefully few prototypes,
 
10690
    which can conflict with char shl_load (); below.
 
10691
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10692
    <limits.h> exists even on freestanding compilers.  */
 
10693
 
 
10694
#ifdef __STDC__
 
10695
# include <limits.h>
 
10696
#else
 
10697
# include <assert.h>
 
10698
#endif
 
10699
 
 
10700
#undef shl_load
 
10701
 
 
10702
/* Override any GCC internal prototype to avoid an error.
 
10703
   Use char because int might match the return type of a GCC
 
10704
   builtin and then its argument prototype would still apply.  */
 
10705
#ifdef __cplusplus
 
10706
extern "C"
 
10707
#endif
 
10708
char shl_load ();
 
10709
/* The GNU C library defines this for functions which it implements
 
10710
    to always fail with ENOSYS.  Some functions are actually named
 
10711
    something starting with __ and the normal name is an alias.  */
 
10712
#if defined __stub_shl_load || defined __stub___shl_load
 
10713
choke me
 
10714
#endif
 
10715
 
 
10716
int
 
10717
main ()
 
10718
{
 
10719
return shl_load ();
 
10720
  ;
 
10721
  return 0;
 
10722
}
 
10723
_ACEOF
 
10724
rm -f conftest.$ac_objext conftest$ac_exeext
 
10725
if { (ac_try="$ac_link"
 
10726
case "(($ac_try" in
 
10727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10728
  *) ac_try_echo=$ac_try;;
 
10729
esac
 
10730
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10731
$as_echo "$ac_try_echo") >&5
 
10732
  (eval "$ac_link") 2>conftest.er1
 
10733
  ac_status=$?
 
10734
  grep -v '^ *+' conftest.er1 >conftest.err
 
10735
  rm -f conftest.er1
 
10736
  cat conftest.err >&5
 
10737
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10738
  (exit $ac_status); } && {
 
10739
         test -z "$ac_c_werror_flag" ||
 
10740
         test ! -s conftest.err
 
10741
       } && test -s conftest$ac_exeext && {
 
10742
         test "$cross_compiling" = yes ||
 
10743
         $as_test_x conftest$ac_exeext
 
10744
       }; then
 
10745
  ac_cv_func_shl_load=yes
 
10746
else
 
10747
  $as_echo "$as_me: failed program was:" >&5
 
10748
sed 's/^/| /' conftest.$ac_ext >&5
 
10749
 
 
10750
        ac_cv_func_shl_load=no
 
10751
fi
 
10752
 
 
10753
rm -rf conftest.dSYM
 
10754
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10755
      conftest$ac_exeext conftest.$ac_ext
 
10756
fi
 
10757
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10758
$as_echo "$ac_cv_func_shl_load" >&6; }
 
10759
if test "x$ac_cv_func_shl_load" = x""yes; then
 
10760
  lt_cv_dlopen="shl_load"
 
10761
else
 
10762
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10763
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10764
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10765
  $as_echo_n "(cached) " >&6
 
10766
else
 
10767
  ac_check_lib_save_LIBS=$LIBS
 
10768
LIBS="-ldld  $LIBS"
 
10769
cat >conftest.$ac_ext <<_ACEOF
 
10770
/* confdefs.h.  */
 
10771
_ACEOF
 
10772
cat confdefs.h >>conftest.$ac_ext
 
10773
cat >>conftest.$ac_ext <<_ACEOF
 
10774
/* end confdefs.h.  */
 
10775
 
 
10776
/* Override any GCC internal prototype to avoid an error.
 
10777
   Use char because int might match the return type of a GCC
 
10778
   builtin and then its argument prototype would still apply.  */
 
10779
#ifdef __cplusplus
 
10780
extern "C"
 
10781
#endif
 
10782
char shl_load ();
 
10783
int
 
10784
main ()
 
10785
{
 
10786
return shl_load ();
 
10787
  ;
 
10788
  return 0;
 
10789
}
 
10790
_ACEOF
 
10791
rm -f conftest.$ac_objext conftest$ac_exeext
 
10792
if { (ac_try="$ac_link"
 
10793
case "(($ac_try" in
 
10794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10795
  *) ac_try_echo=$ac_try;;
 
10796
esac
 
10797
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10798
$as_echo "$ac_try_echo") >&5
 
10799
  (eval "$ac_link") 2>conftest.er1
 
10800
  ac_status=$?
 
10801
  grep -v '^ *+' conftest.er1 >conftest.err
 
10802
  rm -f conftest.er1
 
10803
  cat conftest.err >&5
 
10804
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10805
  (exit $ac_status); } && {
 
10806
         test -z "$ac_c_werror_flag" ||
 
10807
         test ! -s conftest.err
 
10808
       } && test -s conftest$ac_exeext && {
 
10809
         test "$cross_compiling" = yes ||
 
10810
         $as_test_x conftest$ac_exeext
 
10811
       }; then
 
10812
  ac_cv_lib_dld_shl_load=yes
 
10813
else
 
10814
  $as_echo "$as_me: failed program was:" >&5
 
10815
sed 's/^/| /' conftest.$ac_ext >&5
 
10816
 
 
10817
        ac_cv_lib_dld_shl_load=no
 
10818
fi
 
10819
 
 
10820
rm -rf conftest.dSYM
 
10821
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10822
      conftest$ac_exeext conftest.$ac_ext
 
10823
LIBS=$ac_check_lib_save_LIBS
 
10824
fi
 
10825
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10826
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10827
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10828
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10829
else
 
10830
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10831
$as_echo_n "checking for dlopen... " >&6; }
 
10832
if test "${ac_cv_func_dlopen+set}" = set; then
 
10833
  $as_echo_n "(cached) " >&6
 
10834
else
 
10835
  cat >conftest.$ac_ext <<_ACEOF
 
10836
/* confdefs.h.  */
 
10837
_ACEOF
 
10838
cat confdefs.h >>conftest.$ac_ext
 
10839
cat >>conftest.$ac_ext <<_ACEOF
 
10840
/* end confdefs.h.  */
 
10841
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10842
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10843
#define dlopen innocuous_dlopen
 
10844
 
 
10845
/* System header to define __stub macros and hopefully few prototypes,
 
10846
    which can conflict with char dlopen (); below.
 
10847
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10848
    <limits.h> exists even on freestanding compilers.  */
 
10849
 
 
10850
#ifdef __STDC__
 
10851
# include <limits.h>
 
10852
#else
 
10853
# include <assert.h>
 
10854
#endif
 
10855
 
 
10856
#undef dlopen
 
10857
 
 
10858
/* Override any GCC internal prototype to avoid an error.
 
10859
   Use char because int might match the return type of a GCC
 
10860
   builtin and then its argument prototype would still apply.  */
 
10861
#ifdef __cplusplus
 
10862
extern "C"
 
10863
#endif
 
10864
char dlopen ();
 
10865
/* The GNU C library defines this for functions which it implements
 
10866
    to always fail with ENOSYS.  Some functions are actually named
 
10867
    something starting with __ and the normal name is an alias.  */
 
10868
#if defined __stub_dlopen || defined __stub___dlopen
 
10869
choke me
 
10870
#endif
 
10871
 
 
10872
int
 
10873
main ()
 
10874
{
 
10875
return dlopen ();
 
10876
  ;
 
10877
  return 0;
 
10878
}
 
10879
_ACEOF
 
10880
rm -f conftest.$ac_objext conftest$ac_exeext
 
10881
if { (ac_try="$ac_link"
 
10882
case "(($ac_try" in
 
10883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10884
  *) ac_try_echo=$ac_try;;
 
10885
esac
 
10886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10887
$as_echo "$ac_try_echo") >&5
 
10888
  (eval "$ac_link") 2>conftest.er1
 
10889
  ac_status=$?
 
10890
  grep -v '^ *+' conftest.er1 >conftest.err
 
10891
  rm -f conftest.er1
 
10892
  cat conftest.err >&5
 
10893
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10894
  (exit $ac_status); } && {
 
10895
         test -z "$ac_c_werror_flag" ||
 
10896
         test ! -s conftest.err
 
10897
       } && test -s conftest$ac_exeext && {
 
10898
         test "$cross_compiling" = yes ||
 
10899
         $as_test_x conftest$ac_exeext
 
10900
       }; then
 
10901
  ac_cv_func_dlopen=yes
 
10902
else
 
10903
  $as_echo "$as_me: failed program was:" >&5
 
10904
sed 's/^/| /' conftest.$ac_ext >&5
 
10905
 
 
10906
        ac_cv_func_dlopen=no
 
10907
fi
 
10908
 
 
10909
rm -rf conftest.dSYM
 
10910
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10911
      conftest$ac_exeext conftest.$ac_ext
 
10912
fi
 
10913
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10914
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10915
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10916
  lt_cv_dlopen="dlopen"
 
10917
else
 
10918
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10919
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10920
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10921
  $as_echo_n "(cached) " >&6
 
10922
else
 
10923
  ac_check_lib_save_LIBS=$LIBS
 
10924
LIBS="-ldl  $LIBS"
 
10925
cat >conftest.$ac_ext <<_ACEOF
 
10926
/* confdefs.h.  */
 
10927
_ACEOF
 
10928
cat confdefs.h >>conftest.$ac_ext
 
10929
cat >>conftest.$ac_ext <<_ACEOF
 
10930
/* end confdefs.h.  */
 
10931
 
 
10932
/* Override any GCC internal prototype to avoid an error.
 
10933
   Use char because int might match the return type of a GCC
 
10934
   builtin and then its argument prototype would still apply.  */
 
10935
#ifdef __cplusplus
 
10936
extern "C"
 
10937
#endif
 
10938
char dlopen ();
 
10939
int
 
10940
main ()
 
10941
{
 
10942
return dlopen ();
 
10943
  ;
 
10944
  return 0;
 
10945
}
 
10946
_ACEOF
 
10947
rm -f conftest.$ac_objext conftest$ac_exeext
 
10948
if { (ac_try="$ac_link"
 
10949
case "(($ac_try" in
 
10950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10951
  *) ac_try_echo=$ac_try;;
 
10952
esac
 
10953
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10954
$as_echo "$ac_try_echo") >&5
 
10955
  (eval "$ac_link") 2>conftest.er1
 
10956
  ac_status=$?
 
10957
  grep -v '^ *+' conftest.er1 >conftest.err
 
10958
  rm -f conftest.er1
 
10959
  cat conftest.err >&5
 
10960
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10961
  (exit $ac_status); } && {
 
10962
         test -z "$ac_c_werror_flag" ||
 
10963
         test ! -s conftest.err
 
10964
       } && test -s conftest$ac_exeext && {
 
10965
         test "$cross_compiling" = yes ||
 
10966
         $as_test_x conftest$ac_exeext
 
10967
       }; then
 
10968
  ac_cv_lib_dl_dlopen=yes
 
10969
else
 
10970
  $as_echo "$as_me: failed program was:" >&5
 
10971
sed 's/^/| /' conftest.$ac_ext >&5
 
10972
 
 
10973
        ac_cv_lib_dl_dlopen=no
 
10974
fi
 
10975
 
 
10976
rm -rf conftest.dSYM
 
10977
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10978
      conftest$ac_exeext conftest.$ac_ext
 
10979
LIBS=$ac_check_lib_save_LIBS
 
10980
fi
 
10981
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10982
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10983
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10984
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10985
else
 
10986
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10987
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10988
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10989
  $as_echo_n "(cached) " >&6
 
10990
else
 
10991
  ac_check_lib_save_LIBS=$LIBS
 
10992
LIBS="-lsvld  $LIBS"
 
10993
cat >conftest.$ac_ext <<_ACEOF
 
10994
/* confdefs.h.  */
 
10995
_ACEOF
 
10996
cat confdefs.h >>conftest.$ac_ext
 
10997
cat >>conftest.$ac_ext <<_ACEOF
 
10998
/* end confdefs.h.  */
 
10999
 
 
11000
/* Override any GCC internal prototype to avoid an error.
 
11001
   Use char because int might match the return type of a GCC
 
11002
   builtin and then its argument prototype would still apply.  */
 
11003
#ifdef __cplusplus
 
11004
extern "C"
 
11005
#endif
 
11006
char dlopen ();
 
11007
int
 
11008
main ()
 
11009
{
 
11010
return dlopen ();
 
11011
  ;
 
11012
  return 0;
 
11013
}
 
11014
_ACEOF
 
11015
rm -f conftest.$ac_objext conftest$ac_exeext
 
11016
if { (ac_try="$ac_link"
 
11017
case "(($ac_try" in
 
11018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11019
  *) ac_try_echo=$ac_try;;
 
11020
esac
 
11021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11022
$as_echo "$ac_try_echo") >&5
 
11023
  (eval "$ac_link") 2>conftest.er1
 
11024
  ac_status=$?
 
11025
  grep -v '^ *+' conftest.er1 >conftest.err
 
11026
  rm -f conftest.er1
 
11027
  cat conftest.err >&5
 
11028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11029
  (exit $ac_status); } && {
 
11030
         test -z "$ac_c_werror_flag" ||
 
11031
         test ! -s conftest.err
 
11032
       } && test -s conftest$ac_exeext && {
 
11033
         test "$cross_compiling" = yes ||
 
11034
         $as_test_x conftest$ac_exeext
 
11035
       }; then
 
11036
  ac_cv_lib_svld_dlopen=yes
 
11037
else
 
11038
  $as_echo "$as_me: failed program was:" >&5
 
11039
sed 's/^/| /' conftest.$ac_ext >&5
 
11040
 
 
11041
        ac_cv_lib_svld_dlopen=no
 
11042
fi
 
11043
 
 
11044
rm -rf conftest.dSYM
 
11045
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11046
      conftest$ac_exeext conftest.$ac_ext
 
11047
LIBS=$ac_check_lib_save_LIBS
 
11048
fi
 
11049
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11050
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11051
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
11052
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11053
else
 
11054
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11055
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11056
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11057
  $as_echo_n "(cached) " >&6
 
11058
else
 
11059
  ac_check_lib_save_LIBS=$LIBS
 
11060
LIBS="-ldld  $LIBS"
 
11061
cat >conftest.$ac_ext <<_ACEOF
 
11062
/* confdefs.h.  */
 
11063
_ACEOF
 
11064
cat confdefs.h >>conftest.$ac_ext
 
11065
cat >>conftest.$ac_ext <<_ACEOF
 
11066
/* end confdefs.h.  */
 
11067
 
 
11068
/* Override any GCC internal prototype to avoid an error.
 
11069
   Use char because int might match the return type of a GCC
 
11070
   builtin and then its argument prototype would still apply.  */
 
11071
#ifdef __cplusplus
 
11072
extern "C"
 
11073
#endif
 
11074
char dld_link ();
 
11075
int
 
11076
main ()
 
11077
{
 
11078
return dld_link ();
 
11079
  ;
 
11080
  return 0;
 
11081
}
 
11082
_ACEOF
 
11083
rm -f conftest.$ac_objext conftest$ac_exeext
 
11084
if { (ac_try="$ac_link"
 
11085
case "(($ac_try" in
 
11086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11087
  *) ac_try_echo=$ac_try;;
 
11088
esac
 
11089
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11090
$as_echo "$ac_try_echo") >&5
 
11091
  (eval "$ac_link") 2>conftest.er1
 
11092
  ac_status=$?
 
11093
  grep -v '^ *+' conftest.er1 >conftest.err
 
11094
  rm -f conftest.er1
 
11095
  cat conftest.err >&5
 
11096
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11097
  (exit $ac_status); } && {
 
11098
         test -z "$ac_c_werror_flag" ||
 
11099
         test ! -s conftest.err
 
11100
       } && test -s conftest$ac_exeext && {
 
11101
         test "$cross_compiling" = yes ||
 
11102
         $as_test_x conftest$ac_exeext
 
11103
       }; then
 
11104
  ac_cv_lib_dld_dld_link=yes
 
11105
else
 
11106
  $as_echo "$as_me: failed program was:" >&5
 
11107
sed 's/^/| /' conftest.$ac_ext >&5
 
11108
 
 
11109
        ac_cv_lib_dld_dld_link=no
 
11110
fi
 
11111
 
 
11112
rm -rf conftest.dSYM
 
11113
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11114
      conftest$ac_exeext conftest.$ac_ext
 
11115
LIBS=$ac_check_lib_save_LIBS
 
11116
fi
 
11117
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11118
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11119
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
11120
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11121
fi
 
11122
 
 
11123
 
 
11124
fi
 
11125
 
 
11126
 
 
11127
fi
 
11128
 
 
11129
 
 
11130
fi
 
11131
 
 
11132
 
 
11133
fi
 
11134
 
 
11135
 
 
11136
fi
 
11137
 
 
11138
    ;;
 
11139
  esac
 
11140
 
 
11141
  if test "x$lt_cv_dlopen" != xno; then
 
11142
    enable_dlopen=yes
 
11143
  else
 
11144
    enable_dlopen=no
 
11145
  fi
 
11146
 
 
11147
  case $lt_cv_dlopen in
 
11148
  dlopen)
 
11149
    save_CPPFLAGS="$CPPFLAGS"
 
11150
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11151
 
 
11152
    save_LDFLAGS="$LDFLAGS"
 
11153
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11154
 
 
11155
    save_LIBS="$LIBS"
 
11156
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11157
 
 
11158
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11159
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11160
if test "${lt_cv_dlopen_self+set}" = set; then
 
11161
  $as_echo_n "(cached) " >&6
 
11162
else
 
11163
          if test "$cross_compiling" = yes; then :
 
11164
  lt_cv_dlopen_self=cross
 
11165
else
 
11166
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11167
  lt_status=$lt_dlunknown
 
11168
  cat > conftest.$ac_ext <<_LT_EOF
 
11169
#line 11169 "configure"
 
11170
#include "confdefs.h"
 
11171
 
 
11172
#if HAVE_DLFCN_H
 
11173
#include <dlfcn.h>
 
11174
#endif
 
11175
 
 
11176
#include <stdio.h>
 
11177
 
 
11178
#ifdef RTLD_GLOBAL
 
11179
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11180
#else
 
11181
#  ifdef DL_GLOBAL
 
11182
#    define LT_DLGLOBAL         DL_GLOBAL
 
11183
#  else
 
11184
#    define LT_DLGLOBAL         0
 
11185
#  endif
 
11186
#endif
 
11187
 
 
11188
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11189
   find out it does not work in some platform. */
 
11190
#ifndef LT_DLLAZY_OR_NOW
 
11191
#  ifdef RTLD_LAZY
 
11192
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11193
#  else
 
11194
#    ifdef DL_LAZY
 
11195
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11196
#    else
 
11197
#      ifdef RTLD_NOW
 
11198
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11199
#      else
 
11200
#        ifdef DL_NOW
 
11201
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11202
#        else
 
11203
#          define LT_DLLAZY_OR_NOW      0
 
11204
#        endif
 
11205
#      endif
 
11206
#    endif
 
11207
#  endif
 
11208
#endif
 
11209
 
 
11210
void fnord() { int i=42;}
 
11211
int main ()
 
11212
{
 
11213
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11214
  int status = $lt_dlunknown;
 
11215
 
 
11216
  if (self)
 
11217
    {
 
11218
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11219
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11220
      /* dlclose (self); */
 
11221
    }
 
11222
  else
 
11223
    puts (dlerror ());
 
11224
 
 
11225
  return status;
 
11226
}
 
11227
_LT_EOF
 
11228
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11229
  (eval $ac_link) 2>&5
 
11230
  ac_status=$?
 
11231
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11232
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11233
    (./conftest; exit; ) >&5 2>/dev/null
 
11234
    lt_status=$?
 
11235
    case x$lt_status in
 
11236
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11237
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11238
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11239
    esac
 
11240
  else :
 
11241
    # compilation failed
 
11242
    lt_cv_dlopen_self=no
 
11243
  fi
 
11244
fi
 
11245
rm -fr conftest*
 
11246
 
 
11247
 
 
11248
fi
 
11249
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11250
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11251
 
 
11252
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11253
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11254
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11255
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11256
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11257
  $as_echo_n "(cached) " >&6
 
11258
else
 
11259
          if test "$cross_compiling" = yes; then :
 
11260
  lt_cv_dlopen_self_static=cross
 
11261
else
 
11262
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11263
  lt_status=$lt_dlunknown
 
11264
  cat > conftest.$ac_ext <<_LT_EOF
 
11265
#line 11265 "configure"
 
11266
#include "confdefs.h"
 
11267
 
 
11268
#if HAVE_DLFCN_H
 
11269
#include <dlfcn.h>
 
11270
#endif
 
11271
 
 
11272
#include <stdio.h>
 
11273
 
 
11274
#ifdef RTLD_GLOBAL
 
11275
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11276
#else
 
11277
#  ifdef DL_GLOBAL
 
11278
#    define LT_DLGLOBAL         DL_GLOBAL
 
11279
#  else
 
11280
#    define LT_DLGLOBAL         0
 
11281
#  endif
 
11282
#endif
 
11283
 
 
11284
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11285
   find out it does not work in some platform. */
 
11286
#ifndef LT_DLLAZY_OR_NOW
 
11287
#  ifdef RTLD_LAZY
 
11288
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11289
#  else
 
11290
#    ifdef DL_LAZY
 
11291
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11292
#    else
 
11293
#      ifdef RTLD_NOW
 
11294
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11295
#      else
 
11296
#        ifdef DL_NOW
 
11297
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11298
#        else
 
11299
#          define LT_DLLAZY_OR_NOW      0
 
11300
#        endif
 
11301
#      endif
 
11302
#    endif
 
11303
#  endif
 
11304
#endif
 
11305
 
 
11306
void fnord() { int i=42;}
 
11307
int main ()
 
11308
{
 
11309
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11310
  int status = $lt_dlunknown;
 
11311
 
 
11312
  if (self)
 
11313
    {
 
11314
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11315
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11316
      /* dlclose (self); */
 
11317
    }
 
11318
  else
 
11319
    puts (dlerror ());
 
11320
 
 
11321
  return status;
 
11322
}
 
11323
_LT_EOF
 
11324
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11325
  (eval $ac_link) 2>&5
 
11326
  ac_status=$?
 
11327
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11328
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11329
    (./conftest; exit; ) >&5 2>/dev/null
 
11330
    lt_status=$?
 
11331
    case x$lt_status in
 
11332
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11333
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11334
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11335
    esac
 
11336
  else :
 
11337
    # compilation failed
 
11338
    lt_cv_dlopen_self_static=no
 
11339
  fi
 
11340
fi
 
11341
rm -fr conftest*
 
11342
 
 
11343
 
 
11344
fi
 
11345
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11346
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11347
    fi
 
11348
 
 
11349
    CPPFLAGS="$save_CPPFLAGS"
 
11350
    LDFLAGS="$save_LDFLAGS"
 
11351
    LIBS="$save_LIBS"
 
11352
    ;;
 
11353
  esac
 
11354
 
 
11355
  case $lt_cv_dlopen_self in
 
11356
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11357
  *) enable_dlopen_self=unknown ;;
 
11358
  esac
 
11359
 
 
11360
  case $lt_cv_dlopen_self_static in
 
11361
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11362
  *) enable_dlopen_self_static=unknown ;;
 
11363
  esac
 
11364
fi
 
11365
 
 
11366
 
 
11367
 
 
11368
 
 
11369
 
 
11370
 
 
11371
 
 
11372
 
 
11373
 
 
11374
 
 
11375
 
 
11376
 
 
11377
 
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
striplib=
 
11383
old_striplib=
 
11384
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11385
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11386
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11387
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11388
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11389
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11390
$as_echo "yes" >&6; }
 
11391
else
 
11392
# FIXME - insert some real tests, host_os isn't really good enough
 
11393
  case $host_os in
 
11394
  darwin*)
 
11395
    if test -n "$STRIP" ; then
 
11396
      striplib="$STRIP -x"
 
11397
      old_striplib="$STRIP -S"
 
11398
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11399
$as_echo "yes" >&6; }
 
11400
    else
 
11401
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
11402
$as_echo "no" >&6; }
 
11403
    fi
 
11404
    ;;
 
11405
  *)
 
11406
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
11407
$as_echo "no" >&6; }
 
11408
    ;;
 
11409
  esac
 
11410
fi
 
11411
 
 
11412
 
 
11413
 
 
11414
 
 
11415
 
 
11416
 
 
11417
 
 
11418
 
 
11419
 
 
11420
 
 
11421
 
 
11422
 
 
11423
  # Report which library types will actually be built
 
11424
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11425
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11426
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11427
$as_echo "$can_build_shared" >&6; }
 
11428
 
 
11429
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11430
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11431
  test "$can_build_shared" = "no" && enable_shared=no
 
11432
 
 
11433
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11434
  # are all built from PIC.
 
11435
  case $host_os in
 
11436
  aix3*)
 
11437
    test "$enable_shared" = yes && enable_static=no
 
11438
    if test -n "$RANLIB"; then
 
11439
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11440
      postinstall_cmds='$RANLIB $lib'
 
11441
    fi
 
11442
    ;;
 
11443
 
 
11444
  aix[4-9]*)
 
11445
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11446
      test "$enable_shared" = yes && enable_static=no
 
11447
    fi
 
11448
    ;;
 
11449
  esac
 
11450
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11451
$as_echo "$enable_shared" >&6; }
 
11452
 
 
11453
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11454
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11455
  # Make sure either enable_shared or enable_static is yes.
 
11456
  test "$enable_shared" = yes || enable_static=yes
 
11457
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11458
$as_echo "$enable_static" >&6; }
 
11459
 
 
11460
 
 
11461
 
 
11462
 
 
11463
fi
 
11464
ac_ext=c
 
11465
ac_cpp='$CPP $CPPFLAGS'
 
11466
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11467
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11468
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11469
 
 
11470
CC="$lt_save_CC"
 
11471
 
 
11472
 
 
11473
 
 
11474
 
 
11475
 
 
11476
 
 
11477
 
 
11478
 
 
11479
 
 
11480
 
 
11481
 
 
11482
 
 
11483
 
 
11484
        ac_config_commands="$ac_config_commands libtool"
 
11485
 
 
11486
 
 
11487
 
 
11488
 
 
11489
# Only expand once:
20195
11490
 
20196
11491
 
20197
11492
# Find a good install program.  We prefer a C program (faster),
20207
11502
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20208
11503
# OS/2's system install, which has a completely different semantic
20209
11504
# ./install, which can be erroneously created by make from ./install.sh.
20210
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20211
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
11505
# Reject install programs that cannot install multiple files.
 
11506
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
11507
$as_echo_n "checking for a BSD-compatible install... " >&6; }
20212
11508
if test -z "$INSTALL"; then
20213
11509
if test "${ac_cv_path_install+set}" = set; then
20214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11510
  $as_echo_n "(cached) " >&6
20215
11511
else
20216
11512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217
11513
for as_dir in $PATH
20230
11526
    # by default.
20231
11527
    for ac_prog in ginstall scoinst install; do
20232
11528
      for ac_exec_ext in '' $ac_executable_extensions; do
20233
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
11529
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20234
11530
          if test $ac_prog = install &&
20235
11531
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20236
11532
            # AIX install.  It has an incompatible calling convention.
20240
11536
            # program-specific install script used by HP pwplus--don't use.
20241
11537
            :
20242
11538
          else
20243
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20244
 
            break 3
 
11539
            rm -rf conftest.one conftest.two conftest.dir
 
11540
            echo one > conftest.one
 
11541
            echo two > conftest.two
 
11542
            mkdir conftest.dir
 
11543
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
11544
              test -s conftest.one && test -s conftest.two &&
 
11545
              test -s conftest.dir/conftest.one &&
 
11546
              test -s conftest.dir/conftest.two
 
11547
            then
 
11548
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
11549
              break 3
 
11550
            fi
20245
11551
          fi
20246
11552
        fi
20247
11553
      done
20248
11554
    done
20249
11555
    ;;
20250
11556
esac
 
11557
 
20251
11558
done
 
11559
IFS=$as_save_IFS
20252
11560
 
 
11561
rm -rf conftest.one conftest.two conftest.dir
20253
11562
 
20254
11563
fi
20255
11564
  if test "${ac_cv_path_install+set}" = set; then
20256
11565
    INSTALL=$ac_cv_path_install
20257
11566
  else
20258
 
    # As a last resort, use the slow shell script.  We don't cache a
20259
 
    # path for INSTALL within a source directory, because that will
 
11567
    # As a last resort, use the slow shell script.  Don't cache a
 
11568
    # value for INSTALL within a source directory, because that will
20260
11569
    # break other packages using the cache if that directory is
20261
 
    # removed, or if the path is relative.
 
11570
    # removed, or if the value is a relative name.
20262
11571
    INSTALL=$ac_install_sh
20263
11572
  fi
20264
11573
fi
20265
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
20266
 
echo "${ECHO_T}$INSTALL" >&6
 
11574
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
11575
$as_echo "$INSTALL" >&6; }
20267
11576
 
20268
11577
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20269
11578
# It thinks the first close brace ends the variable substitution.
20273
11582
 
20274
11583
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20275
11584
 
20276
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
20277
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
11585
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
11586
$as_echo_n "checking whether ln -s works... " >&6; }
20278
11587
LN_S=$as_ln_s
20279
11588
if test "$LN_S" = "ln -s"; then
20280
 
  echo "$as_me:$LINENO: result: yes" >&5
20281
 
echo "${ECHO_T}yes" >&6
 
11589
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11590
$as_echo "yes" >&6; }
20282
11591
else
20283
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20284
 
echo "${ECHO_T}no, using $LN_S" >&6
 
11592
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
11593
$as_echo "no, using $LN_S" >&6; }
20285
11594
fi
20286
11595
 
20287
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20288
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20289
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20290
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11596
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
11597
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
11598
set x ${MAKE-make}
 
11599
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
11600
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
11601
  $as_echo_n "(cached) " >&6
20292
11602
else
20293
11603
  cat >conftest.make <<\_ACEOF
 
11604
SHELL = /bin/sh
20294
11605
all:
20295
 
        @echo 'ac_maketemp="$(MAKE)"'
 
11606
        @echo '@@@%%%=$(MAKE)=@@@%%%'
20296
11607
_ACEOF
20297
11608
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20298
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20299
 
if test -n "$ac_maketemp"; then
20300
 
  eval ac_cv_prog_make_${ac_make}_set=yes
20301
 
else
20302
 
  eval ac_cv_prog_make_${ac_make}_set=no
20303
 
fi
 
11609
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
11610
  *@@@%%%=?*=@@@%%%*)
 
11611
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
11612
  *)
 
11613
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
11614
esac
20304
11615
rm -f conftest.make
20305
11616
fi
20306
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20307
 
  echo "$as_me:$LINENO: result: yes" >&5
20308
 
echo "${ECHO_T}yes" >&6
 
11617
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
11618
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11619
$as_echo "yes" >&6; }
20309
11620
  SET_MAKE=
20310
11621
else
20311
 
  echo "$as_me:$LINENO: result: no" >&5
20312
 
echo "${ECHO_T}no" >&6
 
11622
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11623
$as_echo "no" >&6; }
20313
11624
  SET_MAKE="MAKE=${MAKE-make}"
20314
11625
fi
20315
11626
 
20316
11627
 
20317
11628
 
20318
 
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20319
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
11629
{ $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
11630
$as_echo_n "checking for connect in -lsocket... " >&6; }
20320
11631
if test "${ac_cv_lib_socket_connect+set}" = set; then
20321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11632
  $as_echo_n "(cached) " >&6
20322
11633
else
20323
11634
  ac_check_lib_save_LIBS=$LIBS
20324
11635
LIBS="-lsocket  $LIBS"
20329
11640
cat >>conftest.$ac_ext <<_ACEOF
20330
11641
/* end confdefs.h.  */
20331
11642
 
20332
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11643
/* Override any GCC internal prototype to avoid an error.
 
11644
   Use char because int might match the return type of a GCC
 
11645
   builtin and then its argument prototype would still apply.  */
20333
11646
#ifdef __cplusplus
20334
11647
extern "C"
20335
11648
#endif
20336
 
/* We use char because int might match the return type of a gcc2
20337
 
   builtin and then its argument prototype would still apply.  */
20338
11649
char connect ();
20339
11650
int
20340
11651
main ()
20341
11652
{
20342
 
connect ();
 
11653
return connect ();
20343
11654
  ;
20344
11655
  return 0;
20345
11656
}
20346
11657
_ACEOF
20347
11658
rm -f conftest.$ac_objext conftest$ac_exeext
20348
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349
 
  (eval $ac_link) 2>conftest.er1
 
11659
if { (ac_try="$ac_link"
 
11660
case "(($ac_try" in
 
11661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11662
  *) ac_try_echo=$ac_try;;
 
11663
esac
 
11664
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11665
$as_echo "$ac_try_echo") >&5
 
11666
  (eval "$ac_link") 2>conftest.er1
20350
11667
  ac_status=$?
20351
11668
  grep -v '^ *+' conftest.er1 >conftest.err
20352
11669
  rm -f conftest.er1
20353
11670
  cat conftest.err >&5
20354
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355
 
  (exit $ac_status); } &&
20356
 
         { ac_try='test -z "$ac_c_werror_flag"
20357
 
                         || test ! -s conftest.err'
20358
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359
 
  (eval $ac_try) 2>&5
20360
 
  ac_status=$?
20361
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362
 
  (exit $ac_status); }; } &&
20363
 
         { ac_try='test -s conftest$ac_exeext'
20364
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365
 
  (eval $ac_try) 2>&5
20366
 
  ac_status=$?
20367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368
 
  (exit $ac_status); }; }; then
 
11671
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11672
  (exit $ac_status); } && {
 
11673
         test -z "$ac_c_werror_flag" ||
 
11674
         test ! -s conftest.err
 
11675
       } && test -s conftest$ac_exeext && {
 
11676
         test "$cross_compiling" = yes ||
 
11677
         $as_test_x conftest$ac_exeext
 
11678
       }; then
20369
11679
  ac_cv_lib_socket_connect=yes
20370
11680
else
20371
 
  echo "$as_me: failed program was:" >&5
 
11681
  $as_echo "$as_me: failed program was:" >&5
20372
11682
sed 's/^/| /' conftest.$ac_ext >&5
20373
11683
 
20374
 
ac_cv_lib_socket_connect=no
 
11684
        ac_cv_lib_socket_connect=no
20375
11685
fi
20376
 
rm -f conftest.err conftest.$ac_objext \
 
11686
 
 
11687
rm -rf conftest.dSYM
 
11688
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20377
11689
      conftest$ac_exeext conftest.$ac_ext
20378
11690
LIBS=$ac_check_lib_save_LIBS
20379
11691
fi
20380
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20381
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20382
 
if test $ac_cv_lib_socket_connect = yes; then
 
11692
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
11693
$as_echo "$ac_cv_lib_socket_connect" >&6; }
 
11694
if test "x$ac_cv_lib_socket_connect" = x""yes; then
20383
11695
  cat >>confdefs.h <<_ACEOF
20384
11696
#define HAVE_LIBSOCKET 1
20385
11697
_ACEOF
20389
11701
fi
20390
11702
 
20391
11703
 
20392
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20393
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
11704
{ $as_echo "$as_me:$LINENO: checking for connect in -lnetwork" >&5
 
11705
$as_echo_n "checking for connect in -lnetwork... " >&6; }
 
11706
if test "${ac_cv_lib_network_connect+set}" = set; then
 
11707
  $as_echo_n "(cached) " >&6
 
11708
else
 
11709
  ac_check_lib_save_LIBS=$LIBS
 
11710
LIBS="-lnetwork  $LIBS"
 
11711
cat >conftest.$ac_ext <<_ACEOF
 
11712
/* confdefs.h.  */
 
11713
_ACEOF
 
11714
cat confdefs.h >>conftest.$ac_ext
 
11715
cat >>conftest.$ac_ext <<_ACEOF
 
11716
/* end confdefs.h.  */
 
11717
 
 
11718
/* Override any GCC internal prototype to avoid an error.
 
11719
   Use char because int might match the return type of a GCC
 
11720
   builtin and then its argument prototype would still apply.  */
 
11721
#ifdef __cplusplus
 
11722
extern "C"
 
11723
#endif
 
11724
char connect ();
 
11725
int
 
11726
main ()
 
11727
{
 
11728
return connect ();
 
11729
  ;
 
11730
  return 0;
 
11731
}
 
11732
_ACEOF
 
11733
rm -f conftest.$ac_objext conftest$ac_exeext
 
11734
if { (ac_try="$ac_link"
 
11735
case "(($ac_try" in
 
11736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11737
  *) ac_try_echo=$ac_try;;
 
11738
esac
 
11739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11740
$as_echo "$ac_try_echo") >&5
 
11741
  (eval "$ac_link") 2>conftest.er1
 
11742
  ac_status=$?
 
11743
  grep -v '^ *+' conftest.er1 >conftest.err
 
11744
  rm -f conftest.er1
 
11745
  cat conftest.err >&5
 
11746
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11747
  (exit $ac_status); } && {
 
11748
         test -z "$ac_c_werror_flag" ||
 
11749
         test ! -s conftest.err
 
11750
       } && test -s conftest$ac_exeext && {
 
11751
         test "$cross_compiling" = yes ||
 
11752
         $as_test_x conftest$ac_exeext
 
11753
       }; then
 
11754
  ac_cv_lib_network_connect=yes
 
11755
else
 
11756
  $as_echo "$as_me: failed program was:" >&5
 
11757
sed 's/^/| /' conftest.$ac_ext >&5
 
11758
 
 
11759
        ac_cv_lib_network_connect=no
 
11760
fi
 
11761
 
 
11762
rm -rf conftest.dSYM
 
11763
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11764
      conftest$ac_exeext conftest.$ac_ext
 
11765
LIBS=$ac_check_lib_save_LIBS
 
11766
fi
 
11767
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_network_connect" >&5
 
11768
$as_echo "$ac_cv_lib_network_connect" >&6; }
 
11769
if test "x$ac_cv_lib_network_connect" = x""yes; then
 
11770
  cat >>confdefs.h <<_ACEOF
 
11771
#define HAVE_LIBNETWORK 1
 
11772
_ACEOF
 
11773
 
 
11774
  LIBS="-lnetwork $LIBS"
 
11775
 
 
11776
fi
 
11777
 
 
11778
 
 
11779
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
11780
$as_echo_n "checking for ANSI C header files... " >&6; }
20394
11781
if test "${ac_cv_header_stdc+set}" = set; then
20395
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11782
  $as_echo_n "(cached) " >&6
20396
11783
else
20397
11784
  cat >conftest.$ac_ext <<_ACEOF
20398
11785
/* confdefs.h.  */
20414
11801
}
20415
11802
_ACEOF
20416
11803
rm -f conftest.$ac_objext
20417
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20418
 
  (eval $ac_compile) 2>conftest.er1
 
11804
if { (ac_try="$ac_compile"
 
11805
case "(($ac_try" in
 
11806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11807
  *) ac_try_echo=$ac_try;;
 
11808
esac
 
11809
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11810
$as_echo "$ac_try_echo") >&5
 
11811
  (eval "$ac_compile") 2>conftest.er1
20419
11812
  ac_status=$?
20420
11813
  grep -v '^ *+' conftest.er1 >conftest.err
20421
11814
  rm -f conftest.er1
20422
11815
  cat conftest.err >&5
20423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424
 
  (exit $ac_status); } &&
20425
 
         { ac_try='test -z "$ac_c_werror_flag"
20426
 
                         || test ! -s conftest.err'
20427
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428
 
  (eval $ac_try) 2>&5
20429
 
  ac_status=$?
20430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431
 
  (exit $ac_status); }; } &&
20432
 
         { ac_try='test -s conftest.$ac_objext'
20433
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434
 
  (eval $ac_try) 2>&5
20435
 
  ac_status=$?
20436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437
 
  (exit $ac_status); }; }; then
 
11816
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11817
  (exit $ac_status); } && {
 
11818
         test -z "$ac_c_werror_flag" ||
 
11819
         test ! -s conftest.err
 
11820
       } && test -s conftest.$ac_objext; then
20438
11821
  ac_cv_header_stdc=yes
20439
11822
else
20440
 
  echo "$as_me: failed program was:" >&5
 
11823
  $as_echo "$as_me: failed program was:" >&5
20441
11824
sed 's/^/| /' conftest.$ac_ext >&5
20442
11825
 
20443
 
ac_cv_header_stdc=no
 
11826
        ac_cv_header_stdc=no
20444
11827
fi
20445
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11828
 
 
11829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446
11830
 
20447
11831
if test $ac_cv_header_stdc = yes; then
20448
11832
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20498
11882
cat >>conftest.$ac_ext <<_ACEOF
20499
11883
/* end confdefs.h.  */
20500
11884
#include <ctype.h>
 
11885
#include <stdlib.h>
20501
11886
#if ((' ' & 0x0FF) == 0x020)
20502
11887
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20503
11888
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20517
11902
  for (i = 0; i < 256; i++)
20518
11903
    if (XOR (islower (i), ISLOWER (i))
20519
11904
        || toupper (i) != TOUPPER (i))
20520
 
      exit(2);
20521
 
  exit (0);
 
11905
      return 2;
 
11906
  return 0;
20522
11907
}
20523
11908
_ACEOF
20524
11909
rm -f conftest$ac_exeext
20525
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20526
 
  (eval $ac_link) 2>&5
 
11910
if { (ac_try="$ac_link"
 
11911
case "(($ac_try" in
 
11912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11913
  *) ac_try_echo=$ac_try;;
 
11914
esac
 
11915
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11916
$as_echo "$ac_try_echo") >&5
 
11917
  (eval "$ac_link") 2>&5
20527
11918
  ac_status=$?
20528
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11919
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529
11920
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20530
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531
 
  (eval $ac_try) 2>&5
 
11921
  { (case "(($ac_try" in
 
11922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11923
  *) ac_try_echo=$ac_try;;
 
11924
esac
 
11925
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11926
$as_echo "$ac_try_echo") >&5
 
11927
  (eval "$ac_try") 2>&5
20532
11928
  ac_status=$?
20533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11929
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534
11930
  (exit $ac_status); }; }; then
20535
11931
  :
20536
11932
else
20537
 
  echo "$as_me: program exited with status $ac_status" >&5
20538
 
echo "$as_me: failed program was:" >&5
 
11933
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
11934
$as_echo "$as_me: failed program was:" >&5
20539
11935
sed 's/^/| /' conftest.$ac_ext >&5
20540
11936
 
20541
11937
( exit $ac_status )
20542
11938
ac_cv_header_stdc=no
20543
11939
fi
20544
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20545
 
fi
20546
 
fi
20547
 
fi
20548
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20549
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
11940
rm -rf conftest.dSYM
 
11941
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11942
fi
 
11943
 
 
11944
 
 
11945
fi
 
11946
fi
 
11947
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
11948
$as_echo "$ac_cv_header_stdc" >&6; }
20550
11949
if test $ac_cv_header_stdc = yes; then
20551
11950
 
20552
11951
cat >>confdefs.h <<\_ACEOF
20555
11954
 
20556
11955
fi
20557
11956
 
20558
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20559
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
11957
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
11958
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20560
11959
if test "${ac_cv_header_time+set}" = set; then
20561
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11960
  $as_echo_n "(cached) " >&6
20562
11961
else
20563
11962
  cat >conftest.$ac_ext <<_ACEOF
20564
11963
/* confdefs.h.  */
20580
11979
}
20581
11980
_ACEOF
20582
11981
rm -f conftest.$ac_objext
20583
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20584
 
  (eval $ac_compile) 2>conftest.er1
 
11982
if { (ac_try="$ac_compile"
 
11983
case "(($ac_try" in
 
11984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11985
  *) ac_try_echo=$ac_try;;
 
11986
esac
 
11987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11988
$as_echo "$ac_try_echo") >&5
 
11989
  (eval "$ac_compile") 2>conftest.er1
20585
11990
  ac_status=$?
20586
11991
  grep -v '^ *+' conftest.er1 >conftest.err
20587
11992
  rm -f conftest.er1
20588
11993
  cat conftest.err >&5
20589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590
 
  (exit $ac_status); } &&
20591
 
         { ac_try='test -z "$ac_c_werror_flag"
20592
 
                         || test ! -s conftest.err'
20593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594
 
  (eval $ac_try) 2>&5
20595
 
  ac_status=$?
20596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
 
  (exit $ac_status); }; } &&
20598
 
         { ac_try='test -s conftest.$ac_objext'
20599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600
 
  (eval $ac_try) 2>&5
20601
 
  ac_status=$?
20602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603
 
  (exit $ac_status); }; }; then
 
11994
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11995
  (exit $ac_status); } && {
 
11996
         test -z "$ac_c_werror_flag" ||
 
11997
         test ! -s conftest.err
 
11998
       } && test -s conftest.$ac_objext; then
20604
11999
  ac_cv_header_time=yes
20605
12000
else
20606
 
  echo "$as_me: failed program was:" >&5
 
12001
  $as_echo "$as_me: failed program was:" >&5
20607
12002
sed 's/^/| /' conftest.$ac_ext >&5
20608
12003
 
20609
 
ac_cv_header_time=no
20610
 
fi
20611
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20612
 
fi
20613
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20614
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
12004
        ac_cv_header_time=no
 
12005
fi
 
12006
 
 
12007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12008
fi
 
12009
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
12010
$as_echo "$ac_cv_header_time" >&6; }
20615
12011
if test $ac_cv_header_time = yes; then
20616
12012
 
20617
12013
cat >>confdefs.h <<\_ACEOF
20629
12025
 
20630
12026
for ac_header in arpa/inet.h netdb.h netinet/in.h regex.h stdlib.h string.h sys/socket.h
20631
12027
do
20632
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20633
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20634
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20635
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20636
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20637
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12028
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12029
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12030
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12031
$as_echo_n "checking for $ac_header... " >&6; }
 
12032
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12033
  $as_echo_n "(cached) " >&6
20638
12034
fi
20639
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20640
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12035
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12036
                 $as_echo "$as_val"'`
 
12037
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12038
$as_echo "$ac_res" >&6; }
20641
12039
else
20642
12040
  # Is the header compilable?
20643
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20644
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12041
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12042
$as_echo_n "checking $ac_header usability... " >&6; }
20645
12043
cat >conftest.$ac_ext <<_ACEOF
20646
12044
/* confdefs.h.  */
20647
12045
_ACEOF
20652
12050
#include <$ac_header>
20653
12051
_ACEOF
20654
12052
rm -f conftest.$ac_objext
20655
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20656
 
  (eval $ac_compile) 2>conftest.er1
 
12053
if { (ac_try="$ac_compile"
 
12054
case "(($ac_try" in
 
12055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12056
  *) ac_try_echo=$ac_try;;
 
12057
esac
 
12058
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12059
$as_echo "$ac_try_echo") >&5
 
12060
  (eval "$ac_compile") 2>conftest.er1
20657
12061
  ac_status=$?
20658
12062
  grep -v '^ *+' conftest.er1 >conftest.err
20659
12063
  rm -f conftest.er1
20660
12064
  cat conftest.err >&5
20661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662
 
  (exit $ac_status); } &&
20663
 
         { ac_try='test -z "$ac_c_werror_flag"
20664
 
                         || test ! -s conftest.err'
20665
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666
 
  (eval $ac_try) 2>&5
20667
 
  ac_status=$?
20668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669
 
  (exit $ac_status); }; } &&
20670
 
         { ac_try='test -s conftest.$ac_objext'
20671
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672
 
  (eval $ac_try) 2>&5
20673
 
  ac_status=$?
20674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675
 
  (exit $ac_status); }; }; then
 
12065
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12066
  (exit $ac_status); } && {
 
12067
         test -z "$ac_c_werror_flag" ||
 
12068
         test ! -s conftest.err
 
12069
       } && test -s conftest.$ac_objext; then
20676
12070
  ac_header_compiler=yes
20677
12071
else
20678
 
  echo "$as_me: failed program was:" >&5
 
12072
  $as_echo "$as_me: failed program was:" >&5
20679
12073
sed 's/^/| /' conftest.$ac_ext >&5
20680
12074
 
20681
 
ac_header_compiler=no
 
12075
        ac_header_compiler=no
20682
12076
fi
20683
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20684
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20685
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
12077
 
 
12078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12079
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12080
$as_echo "$ac_header_compiler" >&6; }
20686
12081
 
20687
12082
# Is the header present?
20688
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20689
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12083
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12084
$as_echo_n "checking $ac_header presence... " >&6; }
20690
12085
cat >conftest.$ac_ext <<_ACEOF
20691
12086
/* confdefs.h.  */
20692
12087
_ACEOF
20695
12090
/* end confdefs.h.  */
20696
12091
#include <$ac_header>
20697
12092
_ACEOF
20698
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20699
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12093
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12094
case "(($ac_try" in
 
12095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12096
  *) ac_try_echo=$ac_try;;
 
12097
esac
 
12098
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12099
$as_echo "$ac_try_echo") >&5
 
12100
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20700
12101
  ac_status=$?
20701
12102
  grep -v '^ *+' conftest.er1 >conftest.err
20702
12103
  rm -f conftest.er1
20703
12104
  cat conftest.err >&5
20704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705
 
  (exit $ac_status); } >/dev/null; then
20706
 
  if test -s conftest.err; then
20707
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20708
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20709
 
  else
20710
 
    ac_cpp_err=
20711
 
  fi
20712
 
else
20713
 
  ac_cpp_err=yes
20714
 
fi
20715
 
if test -z "$ac_cpp_err"; then
 
12105
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12106
  (exit $ac_status); } >/dev/null && {
 
12107
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12108
         test ! -s conftest.err
 
12109
       }; then
20716
12110
  ac_header_preproc=yes
20717
12111
else
20718
 
  echo "$as_me: failed program was:" >&5
 
12112
  $as_echo "$as_me: failed program was:" >&5
20719
12113
sed 's/^/| /' conftest.$ac_ext >&5
20720
12114
 
20721
12115
  ac_header_preproc=no
20722
12116
fi
 
12117
 
20723
12118
rm -f conftest.err conftest.$ac_ext
20724
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20725
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
12119
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12120
$as_echo "$ac_header_preproc" >&6; }
20726
12121
 
20727
12122
# So?  What about this header?
20728
12123
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20729
12124
  yes:no: )
20730
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20731
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20732
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20733
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12125
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12126
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12127
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12128
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20734
12129
    ac_header_preproc=yes
20735
12130
    ;;
20736
12131
  no:yes:* )
20737
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20738
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20739
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20740
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20741
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20742
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20743
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20744
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20745
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20746
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20747
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20748
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20749
 
    (
20750
 
      cat <<\_ASBOX
20751
 
## ---------------------------------- ##
20752
 
## Report this to the libcddb lists.  ##
20753
 
## ---------------------------------- ##
20754
 
_ASBOX
20755
 
    ) |
20756
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12132
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12133
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12134
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12135
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12136
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12137
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12138
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12139
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12140
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12141
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12142
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12143
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12144
 
20757
12145
    ;;
20758
12146
esac
20759
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20760
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20761
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20762
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12147
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12148
$as_echo_n "checking for $ac_header... " >&6; }
 
12149
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12150
  $as_echo_n "(cached) " >&6
20763
12151
else
20764
12152
  eval "$as_ac_Header=\$ac_header_preproc"
20765
12153
fi
20766
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20767
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12154
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12155
                 $as_echo "$as_val"'`
 
12156
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12157
$as_echo "$ac_res" >&6; }
20768
12158
 
20769
12159
fi
20770
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12160
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12161
                 $as_echo "$as_val"'`
 
12162
   if test "x$as_val" = x""yes; then
20771
12163
  cat >>confdefs.h <<_ACEOF
20772
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12164
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20773
12165
_ACEOF
20774
12166
 
20775
12167
fi
20781
12173
 
20782
12174
 
20783
12175
 
20784
 
for ac_header in unistd.h errno.h time.h sys/time.h fcntl.h
 
12176
 
 
12177
 
 
12178
for ac_header in unistd.h errno.h time.h sys/time.h fcntl.h windows.h winsock2.h
20785
12179
do
20786
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20787
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20788
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20789
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20790
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20791
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12180
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12181
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12182
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12183
$as_echo_n "checking for $ac_header... " >&6; }
 
12184
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12185
  $as_echo_n "(cached) " >&6
20792
12186
fi
20793
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20794
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12187
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12188
                 $as_echo "$as_val"'`
 
12189
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12190
$as_echo "$ac_res" >&6; }
20795
12191
else
20796
12192
  # Is the header compilable?
20797
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20798
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12193
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12194
$as_echo_n "checking $ac_header usability... " >&6; }
20799
12195
cat >conftest.$ac_ext <<_ACEOF
20800
12196
/* confdefs.h.  */
20801
12197
_ACEOF
20806
12202
#include <$ac_header>
20807
12203
_ACEOF
20808
12204
rm -f conftest.$ac_objext
20809
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810
 
  (eval $ac_compile) 2>conftest.er1
 
12205
if { (ac_try="$ac_compile"
 
12206
case "(($ac_try" in
 
12207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12208
  *) ac_try_echo=$ac_try;;
 
12209
esac
 
12210
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12211
$as_echo "$ac_try_echo") >&5
 
12212
  (eval "$ac_compile") 2>conftest.er1
20811
12213
  ac_status=$?
20812
12214
  grep -v '^ *+' conftest.er1 >conftest.err
20813
12215
  rm -f conftest.er1
20814
12216
  cat conftest.err >&5
20815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816
 
  (exit $ac_status); } &&
20817
 
         { ac_try='test -z "$ac_c_werror_flag"
20818
 
                         || test ! -s conftest.err'
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); }; } &&
20824
 
         { ac_try='test -s conftest.$ac_objext'
20825
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826
 
  (eval $ac_try) 2>&5
20827
 
  ac_status=$?
20828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829
 
  (exit $ac_status); }; }; then
 
12217
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12218
  (exit $ac_status); } && {
 
12219
         test -z "$ac_c_werror_flag" ||
 
12220
         test ! -s conftest.err
 
12221
       } && test -s conftest.$ac_objext; then
20830
12222
  ac_header_compiler=yes
20831
12223
else
20832
 
  echo "$as_me: failed program was:" >&5
 
12224
  $as_echo "$as_me: failed program was:" >&5
20833
12225
sed 's/^/| /' conftest.$ac_ext >&5
20834
12226
 
20835
 
ac_header_compiler=no
 
12227
        ac_header_compiler=no
20836
12228
fi
20837
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20838
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20839
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
12229
 
 
12230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12231
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12232
$as_echo "$ac_header_compiler" >&6; }
20840
12233
 
20841
12234
# Is the header present?
20842
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20843
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12235
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12236
$as_echo_n "checking $ac_header presence... " >&6; }
20844
12237
cat >conftest.$ac_ext <<_ACEOF
20845
12238
/* confdefs.h.  */
20846
12239
_ACEOF
20849
12242
/* end confdefs.h.  */
20850
12243
#include <$ac_header>
20851
12244
_ACEOF
20852
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20853
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12245
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12246
case "(($ac_try" in
 
12247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12248
  *) ac_try_echo=$ac_try;;
 
12249
esac
 
12250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12251
$as_echo "$ac_try_echo") >&5
 
12252
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20854
12253
  ac_status=$?
20855
12254
  grep -v '^ *+' conftest.er1 >conftest.err
20856
12255
  rm -f conftest.er1
20857
12256
  cat conftest.err >&5
20858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859
 
  (exit $ac_status); } >/dev/null; then
20860
 
  if test -s conftest.err; then
20861
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20862
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20863
 
  else
20864
 
    ac_cpp_err=
20865
 
  fi
20866
 
else
20867
 
  ac_cpp_err=yes
20868
 
fi
20869
 
if test -z "$ac_cpp_err"; then
 
12257
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12258
  (exit $ac_status); } >/dev/null && {
 
12259
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12260
         test ! -s conftest.err
 
12261
       }; then
20870
12262
  ac_header_preproc=yes
20871
12263
else
20872
 
  echo "$as_me: failed program was:" >&5
 
12264
  $as_echo "$as_me: failed program was:" >&5
20873
12265
sed 's/^/| /' conftest.$ac_ext >&5
20874
12266
 
20875
12267
  ac_header_preproc=no
20876
12268
fi
 
12269
 
20877
12270
rm -f conftest.err conftest.$ac_ext
20878
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20879
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
12271
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12272
$as_echo "$ac_header_preproc" >&6; }
20880
12273
 
20881
12274
# So?  What about this header?
20882
12275
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20883
12276
  yes:no: )
20884
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20885
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20886
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20887
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12277
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12278
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12279
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12280
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20888
12281
    ac_header_preproc=yes
20889
12282
    ;;
20890
12283
  no:yes:* )
20891
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20892
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20893
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20894
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20895
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20896
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20897
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20898
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20899
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20900
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20901
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20902
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20903
 
    (
20904
 
      cat <<\_ASBOX
20905
 
## ---------------------------------- ##
20906
 
## Report this to the libcddb lists.  ##
20907
 
## ---------------------------------- ##
20908
 
_ASBOX
20909
 
    ) |
20910
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12284
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12285
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12286
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12287
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12288
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12289
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12290
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12291
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12292
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12293
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12294
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12295
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12296
 
20911
12297
    ;;
20912
12298
esac
20913
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20914
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20915
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12299
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12300
$as_echo_n "checking for $ac_header... " >&6; }
 
12301
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12302
  $as_echo_n "(cached) " >&6
20917
12303
else
20918
12304
  eval "$as_ac_Header=\$ac_header_preproc"
20919
12305
fi
20920
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20921
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12306
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12307
                 $as_echo "$as_val"'`
 
12308
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12309
$as_echo "$ac_res" >&6; }
20922
12310
 
20923
12311
fi
20924
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12312
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12313
                 $as_echo "$as_val"'`
 
12314
   if test "x$as_val" = x""yes; then
20925
12315
  cat >>confdefs.h <<_ACEOF
20926
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12316
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20927
12317
_ACEOF
20928
12318
 
20929
12319
fi
20931
12321
done
20932
12322
 
20933
12323
 
20934
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20935
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
12324
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
12325
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20936
12326
if test "${ac_cv_c_const+set}" = set; then
20937
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12327
  $as_echo_n "(cached) " >&6
20938
12328
else
20939
12329
  cat >conftest.$ac_ext <<_ACEOF
20940
12330
/* confdefs.h.  */
20950
12340
#ifndef __cplusplus
20951
12341
  /* Ultrix mips cc rejects this.  */
20952
12342
  typedef int charset[2];
20953
 
  const charset x;
 
12343
  const charset cs;
20954
12344
  /* SunOS 4.1.1 cc rejects this.  */
20955
 
  char const *const *ccp;
20956
 
  char **p;
 
12345
  char const *const *pcpcc;
 
12346
  char **ppc;
20957
12347
  /* NEC SVR4.0.2 mips cc rejects this.  */
20958
12348
  struct point {int x, y;};
20959
12349
  static struct point const zero = {0,0};
20962
12352
     an arm of an if-expression whose if-part is not a constant
20963
12353
     expression */
20964
12354
  const char *g = "string";
20965
 
  ccp = &g + (g ? g-g : 0);
 
12355
  pcpcc = &g + (g ? g-g : 0);
20966
12356
  /* HPUX 7.0 cc rejects these. */
20967
 
  ++ccp;
20968
 
  p = (char**) ccp;
20969
 
  ccp = (char const *const *) p;
 
12357
  ++pcpcc;
 
12358
  ppc = (char**) pcpcc;
 
12359
  pcpcc = (char const *const *) ppc;
20970
12360
  { /* SCO 3.2v4 cc rejects this.  */
20971
12361
    char *t;
20972
12362
    char const *s = 0 ? (char *) 0 : (char const *) 0;
20973
12363
 
20974
12364
    *t++ = 0;
 
12365
    if (s) return 0;
20975
12366
  }
20976
12367
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20977
12368
    int x[] = {25, 17};
20990
12381
  }
20991
12382
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20992
12383
    const int foo = 10;
 
12384
    if (!foo) return 0;
20993
12385
  }
 
12386
  return !cs[0] && !zero.x;
20994
12387
#endif
20995
12388
 
20996
12389
  ;
20998
12391
}
20999
12392
_ACEOF
21000
12393
rm -f conftest.$ac_objext
21001
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21002
 
  (eval $ac_compile) 2>conftest.er1
 
12394
if { (ac_try="$ac_compile"
 
12395
case "(($ac_try" in
 
12396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12397
  *) ac_try_echo=$ac_try;;
 
12398
esac
 
12399
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12400
$as_echo "$ac_try_echo") >&5
 
12401
  (eval "$ac_compile") 2>conftest.er1
21003
12402
  ac_status=$?
21004
12403
  grep -v '^ *+' conftest.er1 >conftest.err
21005
12404
  rm -f conftest.er1
21006
12405
  cat conftest.err >&5
21007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008
 
  (exit $ac_status); } &&
21009
 
         { ac_try='test -z "$ac_c_werror_flag"
21010
 
                         || test ! -s conftest.err'
21011
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012
 
  (eval $ac_try) 2>&5
21013
 
  ac_status=$?
21014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015
 
  (exit $ac_status); }; } &&
21016
 
         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
 
12406
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12407
  (exit $ac_status); } && {
 
12408
         test -z "$ac_c_werror_flag" ||
 
12409
         test ! -s conftest.err
 
12410
       } && test -s conftest.$ac_objext; then
21022
12411
  ac_cv_c_const=yes
21023
12412
else
21024
 
  echo "$as_me: failed program was:" >&5
 
12413
  $as_echo "$as_me: failed program was:" >&5
21025
12414
sed 's/^/| /' conftest.$ac_ext >&5
21026
12415
 
21027
 
ac_cv_c_const=no
21028
 
fi
21029
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21030
 
fi
21031
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21032
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
12416
        ac_cv_c_const=no
 
12417
fi
 
12418
 
 
12419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12420
fi
 
12421
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
12422
$as_echo "$ac_cv_c_const" >&6; }
21033
12423
if test $ac_cv_c_const = no; then
21034
12424
 
21035
12425
cat >>confdefs.h <<\_ACEOF
21036
 
#define const
 
12426
#define const /**/
21037
12427
_ACEOF
21038
12428
 
21039
12429
fi
21040
12430
 
21041
 
echo "$as_me:$LINENO: checking for size_t" >&5
21042
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
12431
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
 
12432
$as_echo_n "checking for size_t... " >&6; }
21043
12433
if test "${ac_cv_type_size_t+set}" = set; then
21044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12434
  $as_echo_n "(cached) " >&6
21045
12435
else
21046
 
  cat >conftest.$ac_ext <<_ACEOF
 
12436
  ac_cv_type_size_t=no
 
12437
cat >conftest.$ac_ext <<_ACEOF
21047
12438
/* confdefs.h.  */
21048
12439
_ACEOF
21049
12440
cat confdefs.h >>conftest.$ac_ext
21053
12444
int
21054
12445
main ()
21055
12446
{
21056
 
if ((size_t *) 0)
21057
 
  return 0;
21058
12447
if (sizeof (size_t))
21059
 
  return 0;
21060
 
  ;
21061
 
  return 0;
21062
 
}
21063
 
_ACEOF
21064
 
rm -f conftest.$ac_objext
21065
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21066
 
  (eval $ac_compile) 2>conftest.er1
21067
 
  ac_status=$?
21068
 
  grep -v '^ *+' conftest.er1 >conftest.err
21069
 
  rm -f conftest.er1
21070
 
  cat conftest.err >&5
21071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072
 
  (exit $ac_status); } &&
21073
 
         { ac_try='test -z "$ac_c_werror_flag"
21074
 
                         || test ! -s conftest.err'
21075
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076
 
  (eval $ac_try) 2>&5
21077
 
  ac_status=$?
21078
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079
 
  (exit $ac_status); }; } &&
21080
 
         { ac_try='test -s conftest.$ac_objext'
21081
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082
 
  (eval $ac_try) 2>&5
21083
 
  ac_status=$?
21084
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085
 
  (exit $ac_status); }; }; then
21086
 
  ac_cv_type_size_t=yes
21087
 
else
21088
 
  echo "$as_me: failed program was:" >&5
21089
 
sed 's/^/| /' conftest.$ac_ext >&5
21090
 
 
21091
 
ac_cv_type_size_t=no
21092
 
fi
21093
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21094
 
fi
21095
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21096
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
21097
 
if test $ac_cv_type_size_t = yes; then
 
12448
       return 0;
 
12449
  ;
 
12450
  return 0;
 
12451
}
 
12452
_ACEOF
 
12453
rm -f conftest.$ac_objext
 
12454
if { (ac_try="$ac_compile"
 
12455
case "(($ac_try" in
 
12456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12457
  *) ac_try_echo=$ac_try;;
 
12458
esac
 
12459
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12460
$as_echo "$ac_try_echo") >&5
 
12461
  (eval "$ac_compile") 2>conftest.er1
 
12462
  ac_status=$?
 
12463
  grep -v '^ *+' conftest.er1 >conftest.err
 
12464
  rm -f conftest.er1
 
12465
  cat conftest.err >&5
 
12466
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12467
  (exit $ac_status); } && {
 
12468
         test -z "$ac_c_werror_flag" ||
 
12469
         test ! -s conftest.err
 
12470
       } && test -s conftest.$ac_objext; then
 
12471
  cat >conftest.$ac_ext <<_ACEOF
 
12472
/* confdefs.h.  */
 
12473
_ACEOF
 
12474
cat confdefs.h >>conftest.$ac_ext
 
12475
cat >>conftest.$ac_ext <<_ACEOF
 
12476
/* end confdefs.h.  */
 
12477
$ac_includes_default
 
12478
int
 
12479
main ()
 
12480
{
 
12481
if (sizeof ((size_t)))
 
12482
          return 0;
 
12483
  ;
 
12484
  return 0;
 
12485
}
 
12486
_ACEOF
 
12487
rm -f conftest.$ac_objext
 
12488
if { (ac_try="$ac_compile"
 
12489
case "(($ac_try" in
 
12490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12491
  *) ac_try_echo=$ac_try;;
 
12492
esac
 
12493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12494
$as_echo "$ac_try_echo") >&5
 
12495
  (eval "$ac_compile") 2>conftest.er1
 
12496
  ac_status=$?
 
12497
  grep -v '^ *+' conftest.er1 >conftest.err
 
12498
  rm -f conftest.er1
 
12499
  cat conftest.err >&5
 
12500
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12501
  (exit $ac_status); } && {
 
12502
         test -z "$ac_c_werror_flag" ||
 
12503
         test ! -s conftest.err
 
12504
       } && test -s conftest.$ac_objext; then
 
12505
  :
 
12506
else
 
12507
  $as_echo "$as_me: failed program was:" >&5
 
12508
sed 's/^/| /' conftest.$ac_ext >&5
 
12509
 
 
12510
        ac_cv_type_size_t=yes
 
12511
fi
 
12512
 
 
12513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12514
else
 
12515
  $as_echo "$as_me: failed program was:" >&5
 
12516
sed 's/^/| /' conftest.$ac_ext >&5
 
12517
 
 
12518
 
 
12519
fi
 
12520
 
 
12521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12522
fi
 
12523
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
12524
$as_echo "$ac_cv_type_size_t" >&6; }
 
12525
if test "x$ac_cv_type_size_t" = x""yes; then
21098
12526
  :
21099
12527
else
21100
12528
 
21101
12529
cat >>confdefs.h <<_ACEOF
21102
 
#define size_t unsigned
 
12530
#define size_t unsigned int
21103
12531
_ACEOF
21104
12532
 
21105
12533
fi
21108
12536
 
21109
12537
for ac_header in stdlib.h
21110
12538
do
21111
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21112
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21113
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21114
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21115
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21116
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12539
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12540
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12541
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12542
$as_echo_n "checking for $ac_header... " >&6; }
 
12543
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12544
  $as_echo_n "(cached) " >&6
21117
12545
fi
21118
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21119
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12546
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12547
                 $as_echo "$as_val"'`
 
12548
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12549
$as_echo "$ac_res" >&6; }
21120
12550
else
21121
12551
  # Is the header compilable?
21122
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21123
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12552
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12553
$as_echo_n "checking $ac_header usability... " >&6; }
21124
12554
cat >conftest.$ac_ext <<_ACEOF
21125
12555
/* confdefs.h.  */
21126
12556
_ACEOF
21131
12561
#include <$ac_header>
21132
12562
_ACEOF
21133
12563
rm -f conftest.$ac_objext
21134
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21135
 
  (eval $ac_compile) 2>conftest.er1
 
12564
if { (ac_try="$ac_compile"
 
12565
case "(($ac_try" in
 
12566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12567
  *) ac_try_echo=$ac_try;;
 
12568
esac
 
12569
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12570
$as_echo "$ac_try_echo") >&5
 
12571
  (eval "$ac_compile") 2>conftest.er1
21136
12572
  ac_status=$?
21137
12573
  grep -v '^ *+' conftest.er1 >conftest.err
21138
12574
  rm -f conftest.er1
21139
12575
  cat conftest.err >&5
21140
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141
 
  (exit $ac_status); } &&
21142
 
         { ac_try='test -z "$ac_c_werror_flag"
21143
 
                         || test ! -s conftest.err'
21144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145
 
  (eval $ac_try) 2>&5
21146
 
  ac_status=$?
21147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148
 
  (exit $ac_status); }; } &&
21149
 
         { ac_try='test -s conftest.$ac_objext'
21150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151
 
  (eval $ac_try) 2>&5
21152
 
  ac_status=$?
21153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154
 
  (exit $ac_status); }; }; then
 
12576
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12577
  (exit $ac_status); } && {
 
12578
         test -z "$ac_c_werror_flag" ||
 
12579
         test ! -s conftest.err
 
12580
       } && test -s conftest.$ac_objext; then
21155
12581
  ac_header_compiler=yes
21156
12582
else
21157
 
  echo "$as_me: failed program was:" >&5
 
12583
  $as_echo "$as_me: failed program was:" >&5
21158
12584
sed 's/^/| /' conftest.$ac_ext >&5
21159
12585
 
21160
 
ac_header_compiler=no
 
12586
        ac_header_compiler=no
21161
12587
fi
21162
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21163
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21164
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
12588
 
 
12589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12590
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12591
$as_echo "$ac_header_compiler" >&6; }
21165
12592
 
21166
12593
# Is the header present?
21167
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21168
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12594
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12595
$as_echo_n "checking $ac_header presence... " >&6; }
21169
12596
cat >conftest.$ac_ext <<_ACEOF
21170
12597
/* confdefs.h.  */
21171
12598
_ACEOF
21174
12601
/* end confdefs.h.  */
21175
12602
#include <$ac_header>
21176
12603
_ACEOF
21177
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21178
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12604
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12605
case "(($ac_try" in
 
12606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12607
  *) ac_try_echo=$ac_try;;
 
12608
esac
 
12609
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12610
$as_echo "$ac_try_echo") >&5
 
12611
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21179
12612
  ac_status=$?
21180
12613
  grep -v '^ *+' conftest.er1 >conftest.err
21181
12614
  rm -f conftest.er1
21182
12615
  cat conftest.err >&5
21183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184
 
  (exit $ac_status); } >/dev/null; then
21185
 
  if test -s conftest.err; then
21186
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21187
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21188
 
  else
21189
 
    ac_cpp_err=
21190
 
  fi
21191
 
else
21192
 
  ac_cpp_err=yes
21193
 
fi
21194
 
if test -z "$ac_cpp_err"; then
 
12616
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12617
  (exit $ac_status); } >/dev/null && {
 
12618
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12619
         test ! -s conftest.err
 
12620
       }; then
21195
12621
  ac_header_preproc=yes
21196
12622
else
21197
 
  echo "$as_me: failed program was:" >&5
 
12623
  $as_echo "$as_me: failed program was:" >&5
21198
12624
sed 's/^/| /' conftest.$ac_ext >&5
21199
12625
 
21200
12626
  ac_header_preproc=no
21201
12627
fi
 
12628
 
21202
12629
rm -f conftest.err conftest.$ac_ext
21203
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21204
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
12630
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12631
$as_echo "$ac_header_preproc" >&6; }
21205
12632
 
21206
12633
# So?  What about this header?
21207
12634
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21208
12635
  yes:no: )
21209
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21210
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21211
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21212
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12636
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12637
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12638
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12639
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21213
12640
    ac_header_preproc=yes
21214
12641
    ;;
21215
12642
  no:yes:* )
21216
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21217
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21218
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21219
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21220
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21221
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21222
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21223
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21224
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21225
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21226
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21227
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21228
 
    (
21229
 
      cat <<\_ASBOX
21230
 
## ---------------------------------- ##
21231
 
## Report this to the libcddb lists.  ##
21232
 
## ---------------------------------- ##
21233
 
_ASBOX
21234
 
    ) |
21235
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12643
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12644
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12645
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12646
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12647
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12648
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12649
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12650
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12651
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12652
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12653
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12654
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12655
 
21236
12656
    ;;
21237
12657
esac
21238
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21239
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21240
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21241
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12658
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12659
$as_echo_n "checking for $ac_header... " >&6; }
 
12660
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12661
  $as_echo_n "(cached) " >&6
21242
12662
else
21243
12663
  eval "$as_ac_Header=\$ac_header_preproc"
21244
12664
fi
21245
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21246
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12665
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12666
                 $as_echo "$as_val"'`
 
12667
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12668
$as_echo "$ac_res" >&6; }
21247
12669
 
21248
12670
fi
21249
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12671
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12672
                 $as_echo "$as_val"'`
 
12673
   if test "x$as_val" = x""yes; then
21250
12674
  cat >>confdefs.h <<_ACEOF
21251
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12675
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21252
12676
_ACEOF
21253
12677
 
21254
12678
fi
21255
12679
 
21256
12680
done
21257
12681
 
21258
 
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21259
 
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
12682
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
12683
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
21260
12684
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21261
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12685
  $as_echo_n "(cached) " >&6
21262
12686
else
21263
12687
  if test "$cross_compiling" = yes; then
21264
12688
  ac_cv_func_malloc_0_nonnull=no
21269
12693
cat confdefs.h >>conftest.$ac_ext
21270
12694
cat >>conftest.$ac_ext <<_ACEOF
21271
12695
/* end confdefs.h.  */
21272
 
#if STDC_HEADERS || HAVE_STDLIB_H
 
12696
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
21273
12697
# include <stdlib.h>
21274
12698
#else
21275
12699
char *malloc ();
21278
12702
int
21279
12703
main ()
21280
12704
{
21281
 
exit (malloc (0) ? 0 : 1);
 
12705
return ! malloc (0);
21282
12706
  ;
21283
12707
  return 0;
21284
12708
}
21285
12709
_ACEOF
21286
12710
rm -f conftest$ac_exeext
21287
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288
 
  (eval $ac_link) 2>&5
 
12711
if { (ac_try="$ac_link"
 
12712
case "(($ac_try" in
 
12713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12714
  *) ac_try_echo=$ac_try;;
 
12715
esac
 
12716
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12717
$as_echo "$ac_try_echo") >&5
 
12718
  (eval "$ac_link") 2>&5
21289
12719
  ac_status=$?
21290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12720
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291
12721
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21292
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293
 
  (eval $ac_try) 2>&5
 
12722
  { (case "(($ac_try" in
 
12723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12724
  *) ac_try_echo=$ac_try;;
 
12725
esac
 
12726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12727
$as_echo "$ac_try_echo") >&5
 
12728
  (eval "$ac_try") 2>&5
21294
12729
  ac_status=$?
21295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12730
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296
12731
  (exit $ac_status); }; }; then
21297
12732
  ac_cv_func_malloc_0_nonnull=yes
21298
12733
else
21299
 
  echo "$as_me: program exited with status $ac_status" >&5
21300
 
echo "$as_me: failed program was:" >&5
 
12734
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
12735
$as_echo "$as_me: failed program was:" >&5
21301
12736
sed 's/^/| /' conftest.$ac_ext >&5
21302
12737
 
21303
12738
( exit $ac_status )
21304
12739
ac_cv_func_malloc_0_nonnull=no
21305
12740
fi
21306
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21307
 
fi
21308
 
fi
21309
 
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21310
 
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
12741
rm -rf conftest.dSYM
 
12742
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12743
fi
 
12744
 
 
12745
 
 
12746
fi
 
12747
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
12748
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
21311
12749
if test $ac_cv_func_malloc_0_nonnull = yes; then
21312
12750
 
21313
12751
cat >>confdefs.h <<\_ACEOF
21319
12757
#define HAVE_MALLOC 0
21320
12758
_ACEOF
21321
12759
 
21322
 
   case $LIBOBJS in
21323
 
    "malloc.$ac_objext"   | \
21324
 
  *" malloc.$ac_objext"   | \
21325
 
    "malloc.$ac_objext "* | \
 
12760
   case " $LIBOBJS " in
21326
12761
  *" malloc.$ac_objext "* ) ;;
21327
 
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
 
12762
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
12763
 ;;
21328
12764
esac
21329
12765
 
21330
12766
 
21339
12775
 
21340
12776
for ac_header in stdlib.h
21341
12777
do
21342
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21343
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21344
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21345
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21346
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21347
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12778
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12779
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12780
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12781
$as_echo_n "checking for $ac_header... " >&6; }
 
12782
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12783
  $as_echo_n "(cached) " >&6
21348
12784
fi
21349
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21350
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12785
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12786
                 $as_echo "$as_val"'`
 
12787
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12788
$as_echo "$ac_res" >&6; }
21351
12789
else
21352
12790
  # Is the header compilable?
21353
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21354
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12791
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12792
$as_echo_n "checking $ac_header usability... " >&6; }
21355
12793
cat >conftest.$ac_ext <<_ACEOF
21356
12794
/* confdefs.h.  */
21357
12795
_ACEOF
21362
12800
#include <$ac_header>
21363
12801
_ACEOF
21364
12802
rm -f conftest.$ac_objext
21365
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366
 
  (eval $ac_compile) 2>conftest.er1
 
12803
if { (ac_try="$ac_compile"
 
12804
case "(($ac_try" in
 
12805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12806
  *) ac_try_echo=$ac_try;;
 
12807
esac
 
12808
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12809
$as_echo "$ac_try_echo") >&5
 
12810
  (eval "$ac_compile") 2>conftest.er1
21367
12811
  ac_status=$?
21368
12812
  grep -v '^ *+' conftest.er1 >conftest.err
21369
12813
  rm -f conftest.er1
21370
12814
  cat conftest.err >&5
21371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372
 
  (exit $ac_status); } &&
21373
 
         { ac_try='test -z "$ac_c_werror_flag"
21374
 
                         || test ! -s conftest.err'
21375
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376
 
  (eval $ac_try) 2>&5
21377
 
  ac_status=$?
21378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379
 
  (exit $ac_status); }; } &&
21380
 
         { ac_try='test -s conftest.$ac_objext'
21381
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382
 
  (eval $ac_try) 2>&5
21383
 
  ac_status=$?
21384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385
 
  (exit $ac_status); }; }; then
 
12815
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12816
  (exit $ac_status); } && {
 
12817
         test -z "$ac_c_werror_flag" ||
 
12818
         test ! -s conftest.err
 
12819
       } && test -s conftest.$ac_objext; then
21386
12820
  ac_header_compiler=yes
21387
12821
else
21388
 
  echo "$as_me: failed program was:" >&5
 
12822
  $as_echo "$as_me: failed program was:" >&5
21389
12823
sed 's/^/| /' conftest.$ac_ext >&5
21390
12824
 
21391
 
ac_header_compiler=no
 
12825
        ac_header_compiler=no
21392
12826
fi
21393
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21394
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21395
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
12827
 
 
12828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12829
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12830
$as_echo "$ac_header_compiler" >&6; }
21396
12831
 
21397
12832
# Is the header present?
21398
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21399
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12833
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12834
$as_echo_n "checking $ac_header presence... " >&6; }
21400
12835
cat >conftest.$ac_ext <<_ACEOF
21401
12836
/* confdefs.h.  */
21402
12837
_ACEOF
21405
12840
/* end confdefs.h.  */
21406
12841
#include <$ac_header>
21407
12842
_ACEOF
21408
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21409
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12843
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12844
case "(($ac_try" in
 
12845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12846
  *) ac_try_echo=$ac_try;;
 
12847
esac
 
12848
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12849
$as_echo "$ac_try_echo") >&5
 
12850
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21410
12851
  ac_status=$?
21411
12852
  grep -v '^ *+' conftest.er1 >conftest.err
21412
12853
  rm -f conftest.er1
21413
12854
  cat conftest.err >&5
21414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415
 
  (exit $ac_status); } >/dev/null; then
21416
 
  if test -s conftest.err; then
21417
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21418
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21419
 
  else
21420
 
    ac_cpp_err=
21421
 
  fi
21422
 
else
21423
 
  ac_cpp_err=yes
21424
 
fi
21425
 
if test -z "$ac_cpp_err"; then
 
12855
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12856
  (exit $ac_status); } >/dev/null && {
 
12857
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12858
         test ! -s conftest.err
 
12859
       }; then
21426
12860
  ac_header_preproc=yes
21427
12861
else
21428
 
  echo "$as_me: failed program was:" >&5
 
12862
  $as_echo "$as_me: failed program was:" >&5
21429
12863
sed 's/^/| /' conftest.$ac_ext >&5
21430
12864
 
21431
12865
  ac_header_preproc=no
21432
12866
fi
 
12867
 
21433
12868
rm -f conftest.err conftest.$ac_ext
21434
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21435
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
12869
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12870
$as_echo "$ac_header_preproc" >&6; }
21436
12871
 
21437
12872
# So?  What about this header?
21438
12873
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21439
12874
  yes:no: )
21440
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21441
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21442
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21443
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12875
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12876
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12877
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12878
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21444
12879
    ac_header_preproc=yes
21445
12880
    ;;
21446
12881
  no:yes:* )
21447
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21448
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21449
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21450
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21451
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21452
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21453
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21454
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21455
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21456
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21457
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21458
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21459
 
    (
21460
 
      cat <<\_ASBOX
21461
 
## ---------------------------------- ##
21462
 
## Report this to the libcddb lists.  ##
21463
 
## ---------------------------------- ##
21464
 
_ASBOX
21465
 
    ) |
21466
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12882
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12883
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12884
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12885
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12886
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12887
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12888
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12889
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12890
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12891
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12892
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12893
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12894
 
21467
12895
    ;;
21468
12896
esac
21469
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21470
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21471
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12897
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12898
$as_echo_n "checking for $ac_header... " >&6; }
 
12899
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12900
  $as_echo_n "(cached) " >&6
21473
12901
else
21474
12902
  eval "$as_ac_Header=\$ac_header_preproc"
21475
12903
fi
21476
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21477
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12904
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12905
                 $as_echo "$as_val"'`
 
12906
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12907
$as_echo "$ac_res" >&6; }
21478
12908
 
21479
12909
fi
21480
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12910
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12911
                 $as_echo "$as_val"'`
 
12912
   if test "x$as_val" = x""yes; then
21481
12913
  cat >>confdefs.h <<_ACEOF
21482
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12914
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21483
12915
_ACEOF
21484
12916
 
21485
12917
fi
21486
12918
 
21487
12919
done
21488
12920
 
21489
 
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21490
 
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
 
12921
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
12922
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
21491
12923
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12924
  $as_echo_n "(cached) " >&6
21493
12925
else
21494
12926
  if test "$cross_compiling" = yes; then
21495
12927
  ac_cv_func_realloc_0_nonnull=no
21500
12932
cat confdefs.h >>conftest.$ac_ext
21501
12933
cat >>conftest.$ac_ext <<_ACEOF
21502
12934
/* end confdefs.h.  */
21503
 
#if STDC_HEADERS || HAVE_STDLIB_H
 
12935
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
21504
12936
# include <stdlib.h>
21505
12937
#else
21506
12938
char *realloc ();
21509
12941
int
21510
12942
main ()
21511
12943
{
21512
 
exit (realloc (0, 0) ? 0 : 1);
 
12944
return ! realloc (0, 0);
21513
12945
  ;
21514
12946
  return 0;
21515
12947
}
21516
12948
_ACEOF
21517
12949
rm -f conftest$ac_exeext
21518
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21519
 
  (eval $ac_link) 2>&5
 
12950
if { (ac_try="$ac_link"
 
12951
case "(($ac_try" in
 
12952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12953
  *) ac_try_echo=$ac_try;;
 
12954
esac
 
12955
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12956
$as_echo "$ac_try_echo") >&5
 
12957
  (eval "$ac_link") 2>&5
21520
12958
  ac_status=$?
21521
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12959
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522
12960
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524
 
  (eval $ac_try) 2>&5
 
12961
  { (case "(($ac_try" in
 
12962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12963
  *) ac_try_echo=$ac_try;;
 
12964
esac
 
12965
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12966
$as_echo "$ac_try_echo") >&5
 
12967
  (eval "$ac_try") 2>&5
21525
12968
  ac_status=$?
21526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12969
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527
12970
  (exit $ac_status); }; }; then
21528
12971
  ac_cv_func_realloc_0_nonnull=yes
21529
12972
else
21530
 
  echo "$as_me: program exited with status $ac_status" >&5
21531
 
echo "$as_me: failed program was:" >&5
 
12973
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
12974
$as_echo "$as_me: failed program was:" >&5
21532
12975
sed 's/^/| /' conftest.$ac_ext >&5
21533
12976
 
21534
12977
( exit $ac_status )
21535
12978
ac_cv_func_realloc_0_nonnull=no
21536
12979
fi
21537
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21538
 
fi
21539
 
fi
21540
 
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21541
 
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
 
12980
rm -rf conftest.dSYM
 
12981
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12982
fi
 
12983
 
 
12984
 
 
12985
fi
 
12986
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
12987
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
21542
12988
if test $ac_cv_func_realloc_0_nonnull = yes; then
21543
12989
 
21544
12990
cat >>confdefs.h <<\_ACEOF
21550
12996
#define HAVE_REALLOC 0
21551
12997
_ACEOF
21552
12998
 
21553
 
   case $LIBOBJS in
21554
 
    "realloc.$ac_objext"   | \
21555
 
  *" realloc.$ac_objext"   | \
21556
 
    "realloc.$ac_objext "* | \
 
12999
   case " $LIBOBJS " in
21557
13000
  *" realloc.$ac_objext "* ) ;;
21558
 
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
 
13001
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
13002
 ;;
21559
13003
esac
21560
13004
 
21561
13005
 
21567
13011
 
21568
13012
 
21569
13013
 
21570
 
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21571
 
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
 
13014
{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
13015
$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
21572
13016
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21573
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13017
  $as_echo_n "(cached) " >&6
21574
13018
else
21575
13019
  rm -f conftest.sym conftest.file
21576
13020
echo >conftest.file
21592
13036
     /* Linux will dereference the symlink and fail.
21593
13037
        That is better in the sense that it means we will not
21594
13038
        have to compile and use the lstat wrapper.  */
21595
 
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
 
13039
     return lstat ("conftest.sym/", &sbuf) == 0;
21596
13040
  ;
21597
13041
  return 0;
21598
13042
}
21599
13043
_ACEOF
21600
13044
rm -f conftest$ac_exeext
21601
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21602
 
  (eval $ac_link) 2>&5
 
13045
if { (ac_try="$ac_link"
 
13046
case "(($ac_try" in
 
13047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13048
  *) ac_try_echo=$ac_try;;
 
13049
esac
 
13050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13051
$as_echo "$ac_try_echo") >&5
 
13052
  (eval "$ac_link") 2>&5
21603
13053
  ac_status=$?
21604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605
13055
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21606
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607
 
  (eval $ac_try) 2>&5
 
13056
  { (case "(($ac_try" in
 
13057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13058
  *) ac_try_echo=$ac_try;;
 
13059
esac
 
13060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13061
$as_echo "$ac_try_echo") >&5
 
13062
  (eval "$ac_try") 2>&5
21608
13063
  ac_status=$?
21609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13064
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610
13065
  (exit $ac_status); }; }; then
21611
13066
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
21612
13067
else
21613
 
  echo "$as_me: program exited with status $ac_status" >&5
21614
 
echo "$as_me: failed program was:" >&5
 
13068
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
13069
$as_echo "$as_me: failed program was:" >&5
21615
13070
sed 's/^/| /' conftest.$ac_ext >&5
21616
13071
 
21617
13072
( exit $ac_status )
21618
13073
ac_cv_func_lstat_dereferences_slashed_symlink=no
21619
13074
fi
21620
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13075
rm -rf conftest.dSYM
 
13076
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21621
13077
fi
 
13078
 
 
13079
 
21622
13080
else
21623
13081
  # If the `ln -s' command failed, then we probably don't even
21624
13082
  # have an lstat function.
21627
13085
rm -f conftest.sym conftest.file
21628
13086
 
21629
13087
fi
21630
 
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21631
 
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
 
13088
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
13089
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21632
13090
 
21633
13091
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21634
13092
 
21638
13096
 
21639
13097
 
21640
13098
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21641
 
  case $LIBOBJS in
21642
 
    "lstat.$ac_objext"   | \
21643
 
  *" lstat.$ac_objext"   | \
21644
 
    "lstat.$ac_objext "* | \
 
13099
  case " $LIBOBJS " in
21645
13100
  *" lstat.$ac_objext "* ) ;;
21646
 
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
 
13101
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
13102
 ;;
21647
13103
esac
21648
13104
 
21649
13105
fi
21650
13106
 
21651
 
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21652
 
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
 
13107
{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
13108
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
21653
13109
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21654
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13110
  $as_echo_n "(cached) " >&6
21655
13111
else
21656
13112
  if test "$cross_compiling" = yes; then
21657
13113
  ac_cv_func_stat_empty_string_bug=yes
21667
13123
main ()
21668
13124
{
21669
13125
struct stat sbuf;
21670
 
  exit (stat ("", &sbuf) ? 1 : 0);
 
13126
  return stat ("", &sbuf) == 0;
21671
13127
  ;
21672
13128
  return 0;
21673
13129
}
21674
13130
_ACEOF
21675
13131
rm -f conftest$ac_exeext
21676
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21677
 
  (eval $ac_link) 2>&5
 
13132
if { (ac_try="$ac_link"
 
13133
case "(($ac_try" in
 
13134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13135
  *) ac_try_echo=$ac_try;;
 
13136
esac
 
13137
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13138
$as_echo "$ac_try_echo") >&5
 
13139
  (eval "$ac_link") 2>&5
21678
13140
  ac_status=$?
21679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13141
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680
13142
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21681
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682
 
  (eval $ac_try) 2>&5
 
13143
  { (case "(($ac_try" in
 
13144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13145
  *) ac_try_echo=$ac_try;;
 
13146
esac
 
13147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13148
$as_echo "$ac_try_echo") >&5
 
13149
  (eval "$ac_try") 2>&5
21683
13150
  ac_status=$?
21684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13151
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685
13152
  (exit $ac_status); }; }; then
21686
 
  ac_cv_func_stat_empty_string_bug=yes
 
13153
  ac_cv_func_stat_empty_string_bug=no
21687
13154
else
21688
 
  echo "$as_me: program exited with status $ac_status" >&5
21689
 
echo "$as_me: failed program was:" >&5
 
13155
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
13156
$as_echo "$as_me: failed program was:" >&5
21690
13157
sed 's/^/| /' conftest.$ac_ext >&5
21691
13158
 
21692
13159
( exit $ac_status )
21693
 
ac_cv_func_stat_empty_string_bug=no
21694
 
fi
21695
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21696
 
fi
21697
 
fi
21698
 
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21699
 
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
 
13160
ac_cv_func_stat_empty_string_bug=yes
 
13161
fi
 
13162
rm -rf conftest.dSYM
 
13163
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13164
fi
 
13165
 
 
13166
 
 
13167
fi
 
13168
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
13169
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
21700
13170
if test $ac_cv_func_stat_empty_string_bug = yes; then
21701
 
  case $LIBOBJS in
21702
 
    "stat.$ac_objext"   | \
21703
 
  *" stat.$ac_objext"   | \
21704
 
    "stat.$ac_objext "* | \
 
13171
  case " $LIBOBJS " in
21705
13172
  *" stat.$ac_objext "* ) ;;
21706
 
  *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
 
13173
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
13174
 ;;
21707
13175
esac
21708
13176
 
21709
13177
 
21716
13184
 
21717
13185
for ac_func in vprintf
21718
13186
do
21719
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21720
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
21721
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21722
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
21723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13187
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13188
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13189
$as_echo_n "checking for $ac_func... " >&6; }
 
13190
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13191
  $as_echo_n "(cached) " >&6
21724
13192
else
21725
13193
  cat >conftest.$ac_ext <<_ACEOF
21726
13194
/* confdefs.h.  */
21745
13213
 
21746
13214
#undef $ac_func
21747
13215
 
21748
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
13216
/* Override any GCC internal prototype to avoid an error.
 
13217
   Use char because int might match the return type of a GCC
 
13218
   builtin and then its argument prototype would still apply.  */
21749
13219
#ifdef __cplusplus
21750
13220
extern "C"
21751
 
{
21752
13221
#endif
21753
 
/* We use char because int might match the return type of a gcc2
21754
 
   builtin and then its argument prototype would still apply.  */
21755
13222
char $ac_func ();
21756
13223
/* The GNU C library defines this for functions which it implements
21757
13224
    to always fail with ENOSYS.  Some functions are actually named
21758
13225
    something starting with __ and the normal name is an alias.  */
21759
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13226
#if defined __stub_$ac_func || defined __stub___$ac_func
21760
13227
choke me
21761
 
#else
21762
 
char (*f) () = $ac_func;
21763
 
#endif
21764
 
#ifdef __cplusplus
21765
 
}
21766
13228
#endif
21767
13229
 
21768
13230
int
21769
13231
main ()
21770
13232
{
21771
 
return f != $ac_func;
 
13233
return $ac_func ();
21772
13234
  ;
21773
13235
  return 0;
21774
13236
}
21775
13237
_ACEOF
21776
13238
rm -f conftest.$ac_objext conftest$ac_exeext
21777
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21778
 
  (eval $ac_link) 2>conftest.er1
 
13239
if { (ac_try="$ac_link"
 
13240
case "(($ac_try" in
 
13241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13242
  *) ac_try_echo=$ac_try;;
 
13243
esac
 
13244
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13245
$as_echo "$ac_try_echo") >&5
 
13246
  (eval "$ac_link") 2>conftest.er1
21779
13247
  ac_status=$?
21780
13248
  grep -v '^ *+' conftest.er1 >conftest.err
21781
13249
  rm -f conftest.er1
21782
13250
  cat conftest.err >&5
21783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784
 
  (exit $ac_status); } &&
21785
 
         { ac_try='test -z "$ac_c_werror_flag"
21786
 
                         || test ! -s conftest.err'
21787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788
 
  (eval $ac_try) 2>&5
21789
 
  ac_status=$?
21790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791
 
  (exit $ac_status); }; } &&
21792
 
         { ac_try='test -s conftest$ac_exeext'
21793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794
 
  (eval $ac_try) 2>&5
21795
 
  ac_status=$?
21796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797
 
  (exit $ac_status); }; }; then
 
13251
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13252
  (exit $ac_status); } && {
 
13253
         test -z "$ac_c_werror_flag" ||
 
13254
         test ! -s conftest.err
 
13255
       } && test -s conftest$ac_exeext && {
 
13256
         test "$cross_compiling" = yes ||
 
13257
         $as_test_x conftest$ac_exeext
 
13258
       }; then
21798
13259
  eval "$as_ac_var=yes"
21799
13260
else
21800
 
  echo "$as_me: failed program was:" >&5
 
13261
  $as_echo "$as_me: failed program was:" >&5
21801
13262
sed 's/^/| /' conftest.$ac_ext >&5
21802
13263
 
21803
 
eval "$as_ac_var=no"
 
13264
        eval "$as_ac_var=no"
21804
13265
fi
21805
 
rm -f conftest.err conftest.$ac_objext \
 
13266
 
 
13267
rm -rf conftest.dSYM
 
13268
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21806
13269
      conftest$ac_exeext conftest.$ac_ext
21807
13270
fi
21808
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21809
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21810
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13271
ac_res=`eval 'as_val=${'$as_ac_var'}
 
13272
                 $as_echo "$as_val"'`
 
13273
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13274
$as_echo "$ac_res" >&6; }
 
13275
as_val=`eval 'as_val=${'$as_ac_var'}
 
13276
                 $as_echo "$as_val"'`
 
13277
   if test "x$as_val" = x""yes; then
21811
13278
  cat >>confdefs.h <<_ACEOF
21812
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13279
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21813
13280
_ACEOF
21814
13281
 
21815
 
echo "$as_me:$LINENO: checking for _doprnt" >&5
21816
 
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
13282
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
 
13283
$as_echo_n "checking for _doprnt... " >&6; }
21817
13284
if test "${ac_cv_func__doprnt+set}" = set; then
21818
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13285
  $as_echo_n "(cached) " >&6
21819
13286
else
21820
13287
  cat >conftest.$ac_ext <<_ACEOF
21821
13288
/* confdefs.h.  */
21840
13307
 
21841
13308
#undef _doprnt
21842
13309
 
21843
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
13310
/* Override any GCC internal prototype to avoid an error.
 
13311
   Use char because int might match the return type of a GCC
 
13312
   builtin and then its argument prototype would still apply.  */
21844
13313
#ifdef __cplusplus
21845
13314
extern "C"
21846
 
{
21847
13315
#endif
21848
 
/* We use char because int might match the return type of a gcc2
21849
 
   builtin and then its argument prototype would still apply.  */
21850
13316
char _doprnt ();
21851
13317
/* The GNU C library defines this for functions which it implements
21852
13318
    to always fail with ENOSYS.  Some functions are actually named
21853
13319
    something starting with __ and the normal name is an alias.  */
21854
 
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
13320
#if defined __stub__doprnt || defined __stub____doprnt
21855
13321
choke me
21856
 
#else
21857
 
char (*f) () = _doprnt;
21858
 
#endif
21859
 
#ifdef __cplusplus
21860
 
}
21861
13322
#endif
21862
13323
 
21863
13324
int
21864
13325
main ()
21865
13326
{
21866
 
return f != _doprnt;
 
13327
return _doprnt ();
21867
13328
  ;
21868
13329
  return 0;
21869
13330
}
21870
13331
_ACEOF
21871
13332
rm -f conftest.$ac_objext conftest$ac_exeext
21872
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21873
 
  (eval $ac_link) 2>conftest.er1
 
13333
if { (ac_try="$ac_link"
 
13334
case "(($ac_try" in
 
13335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13336
  *) ac_try_echo=$ac_try;;
 
13337
esac
 
13338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13339
$as_echo "$ac_try_echo") >&5
 
13340
  (eval "$ac_link") 2>conftest.er1
21874
13341
  ac_status=$?
21875
13342
  grep -v '^ *+' conftest.er1 >conftest.err
21876
13343
  rm -f conftest.er1
21877
13344
  cat conftest.err >&5
21878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879
 
  (exit $ac_status); } &&
21880
 
         { ac_try='test -z "$ac_c_werror_flag"
21881
 
                         || test ! -s conftest.err'
21882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883
 
  (eval $ac_try) 2>&5
21884
 
  ac_status=$?
21885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886
 
  (exit $ac_status); }; } &&
21887
 
         { ac_try='test -s conftest$ac_exeext'
21888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889
 
  (eval $ac_try) 2>&5
21890
 
  ac_status=$?
21891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892
 
  (exit $ac_status); }; }; then
 
13345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13346
  (exit $ac_status); } && {
 
13347
         test -z "$ac_c_werror_flag" ||
 
13348
         test ! -s conftest.err
 
13349
       } && test -s conftest$ac_exeext && {
 
13350
         test "$cross_compiling" = yes ||
 
13351
         $as_test_x conftest$ac_exeext
 
13352
       }; then
21893
13353
  ac_cv_func__doprnt=yes
21894
13354
else
21895
 
  echo "$as_me: failed program was:" >&5
 
13355
  $as_echo "$as_me: failed program was:" >&5
21896
13356
sed 's/^/| /' conftest.$ac_ext >&5
21897
13357
 
21898
 
ac_cv_func__doprnt=no
 
13358
        ac_cv_func__doprnt=no
21899
13359
fi
21900
 
rm -f conftest.err conftest.$ac_objext \
 
13360
 
 
13361
rm -rf conftest.dSYM
 
13362
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21901
13363
      conftest$ac_exeext conftest.$ac_ext
21902
13364
fi
21903
 
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21904
 
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21905
 
if test $ac_cv_func__doprnt = yes; then
 
13365
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
13366
$as_echo "$ac_cv_func__doprnt" >&6; }
 
13367
if test "x$ac_cv_func__doprnt" = x""yes; then
21906
13368
 
21907
13369
cat >>confdefs.h <<\_ACEOF
21908
13370
#define HAVE_DOPRNT 1
21918
13380
 
21919
13381
for ac_header in sys/select.h sys/socket.h
21920
13382
do
21921
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21922
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21924
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21925
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21926
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13383
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13384
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13385
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13386
$as_echo_n "checking for $ac_header... " >&6; }
 
13387
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13388
  $as_echo_n "(cached) " >&6
21927
13389
fi
21928
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21929
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13390
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13391
                 $as_echo "$as_val"'`
 
13392
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13393
$as_echo "$ac_res" >&6; }
21930
13394
else
21931
13395
  # Is the header compilable?
21932
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21933
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13396
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13397
$as_echo_n "checking $ac_header usability... " >&6; }
21934
13398
cat >conftest.$ac_ext <<_ACEOF
21935
13399
/* confdefs.h.  */
21936
13400
_ACEOF
21941
13405
#include <$ac_header>
21942
13406
_ACEOF
21943
13407
rm -f conftest.$ac_objext
21944
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21945
 
  (eval $ac_compile) 2>conftest.er1
 
13408
if { (ac_try="$ac_compile"
 
13409
case "(($ac_try" in
 
13410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13411
  *) ac_try_echo=$ac_try;;
 
13412
esac
 
13413
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13414
$as_echo "$ac_try_echo") >&5
 
13415
  (eval "$ac_compile") 2>conftest.er1
21946
13416
  ac_status=$?
21947
13417
  grep -v '^ *+' conftest.er1 >conftest.err
21948
13418
  rm -f conftest.er1
21949
13419
  cat conftest.err >&5
21950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951
 
  (exit $ac_status); } &&
21952
 
         { ac_try='test -z "$ac_c_werror_flag"
21953
 
                         || test ! -s conftest.err'
21954
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955
 
  (eval $ac_try) 2>&5
21956
 
  ac_status=$?
21957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958
 
  (exit $ac_status); }; } &&
21959
 
         { ac_try='test -s conftest.$ac_objext'
21960
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961
 
  (eval $ac_try) 2>&5
21962
 
  ac_status=$?
21963
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964
 
  (exit $ac_status); }; }; then
 
13420
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13421
  (exit $ac_status); } && {
 
13422
         test -z "$ac_c_werror_flag" ||
 
13423
         test ! -s conftest.err
 
13424
       } && test -s conftest.$ac_objext; then
21965
13425
  ac_header_compiler=yes
21966
13426
else
21967
 
  echo "$as_me: failed program was:" >&5
 
13427
  $as_echo "$as_me: failed program was:" >&5
21968
13428
sed 's/^/| /' conftest.$ac_ext >&5
21969
13429
 
21970
 
ac_header_compiler=no
 
13430
        ac_header_compiler=no
21971
13431
fi
21972
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21973
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21974
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
13432
 
 
13433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13434
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13435
$as_echo "$ac_header_compiler" >&6; }
21975
13436
 
21976
13437
# Is the header present?
21977
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21978
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13438
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13439
$as_echo_n "checking $ac_header presence... " >&6; }
21979
13440
cat >conftest.$ac_ext <<_ACEOF
21980
13441
/* confdefs.h.  */
21981
13442
_ACEOF
21984
13445
/* end confdefs.h.  */
21985
13446
#include <$ac_header>
21986
13447
_ACEOF
21987
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21988
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13448
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13449
case "(($ac_try" in
 
13450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13451
  *) ac_try_echo=$ac_try;;
 
13452
esac
 
13453
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13454
$as_echo "$ac_try_echo") >&5
 
13455
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21989
13456
  ac_status=$?
21990
13457
  grep -v '^ *+' conftest.er1 >conftest.err
21991
13458
  rm -f conftest.er1
21992
13459
  cat conftest.err >&5
21993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994
 
  (exit $ac_status); } >/dev/null; then
21995
 
  if test -s conftest.err; then
21996
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21997
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21998
 
  else
21999
 
    ac_cpp_err=
22000
 
  fi
22001
 
else
22002
 
  ac_cpp_err=yes
22003
 
fi
22004
 
if test -z "$ac_cpp_err"; then
 
13460
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13461
  (exit $ac_status); } >/dev/null && {
 
13462
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13463
         test ! -s conftest.err
 
13464
       }; then
22005
13465
  ac_header_preproc=yes
22006
13466
else
22007
 
  echo "$as_me: failed program was:" >&5
 
13467
  $as_echo "$as_me: failed program was:" >&5
22008
13468
sed 's/^/| /' conftest.$ac_ext >&5
22009
13469
 
22010
13470
  ac_header_preproc=no
22011
13471
fi
 
13472
 
22012
13473
rm -f conftest.err conftest.$ac_ext
22013
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22014
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
13474
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13475
$as_echo "$ac_header_preproc" >&6; }
22015
13476
 
22016
13477
# So?  What about this header?
22017
13478
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22018
13479
  yes:no: )
22019
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22020
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22021
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22022
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13480
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13481
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13482
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13483
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22023
13484
    ac_header_preproc=yes
22024
13485
    ;;
22025
13486
  no:yes:* )
22026
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22027
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22028
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22029
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22030
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22031
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22032
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22033
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22034
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22035
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22036
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22037
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22038
 
    (
22039
 
      cat <<\_ASBOX
22040
 
## ---------------------------------- ##
22041
 
## Report this to the libcddb lists.  ##
22042
 
## ---------------------------------- ##
22043
 
_ASBOX
22044
 
    ) |
22045
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
13487
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13488
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13489
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13490
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13491
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13492
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13493
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13494
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13495
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13496
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13497
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13498
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13499
 
22046
13500
    ;;
22047
13501
esac
22048
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
22049
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22050
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22051
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13502
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13503
$as_echo_n "checking for $ac_header... " >&6; }
 
13504
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13505
  $as_echo_n "(cached) " >&6
22052
13506
else
22053
13507
  eval "$as_ac_Header=\$ac_header_preproc"
22054
13508
fi
22055
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22056
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13509
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13510
                 $as_echo "$as_val"'`
 
13511
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13512
$as_echo "$ac_res" >&6; }
22057
13513
 
22058
13514
fi
22059
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13515
as_val=`eval 'as_val=${'$as_ac_Header'}
 
13516
                 $as_echo "$as_val"'`
 
13517
   if test "x$as_val" = x""yes; then
22060
13518
  cat >>confdefs.h <<_ACEOF
22061
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13519
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22062
13520
_ACEOF
22063
13521
 
22064
13522
fi
22065
13523
 
22066
13524
done
22067
13525
 
22068
 
echo "$as_me:$LINENO: checking types of arguments for select" >&5
22069
 
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
 
13526
{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
 
13527
$as_echo_n "checking types of arguments for select... " >&6; }
22070
13528
if test "${ac_cv_func_select_args+set}" = set; then
22071
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13529
  $as_echo_n "(cached) " >&6
22072
13530
else
22073
13531
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22074
 
 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
 
13532
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22075
13533
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22076
13534
   cat >conftest.$ac_ext <<_ACEOF
22077
13535
/* confdefs.h.  */
22080
13538
cat >>conftest.$ac_ext <<_ACEOF
22081
13539
/* end confdefs.h.  */
22082
13540
$ac_includes_default
22083
 
#if HAVE_SYS_SELECT_H
 
13541
#ifdef HAVE_SYS_SELECT_H
22084
13542
# include <sys/select.h>
22085
13543
#endif
22086
 
#if HAVE_SYS_SOCKET_H
 
13544
#ifdef HAVE_SYS_SOCKET_H
22087
13545
# include <sys/socket.h>
22088
13546
#endif
22089
13547
 
22098
13556
}
22099
13557
_ACEOF
22100
13558
rm -f conftest.$ac_objext
22101
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22102
 
  (eval $ac_compile) 2>conftest.er1
 
13559
if { (ac_try="$ac_compile"
 
13560
case "(($ac_try" in
 
13561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13562
  *) ac_try_echo=$ac_try;;
 
13563
esac
 
13564
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13565
$as_echo "$ac_try_echo") >&5
 
13566
  (eval "$ac_compile") 2>conftest.er1
22103
13567
  ac_status=$?
22104
13568
  grep -v '^ *+' conftest.er1 >conftest.err
22105
13569
  rm -f conftest.er1
22106
13570
  cat conftest.err >&5
22107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108
 
  (exit $ac_status); } &&
22109
 
         { ac_try='test -z "$ac_c_werror_flag"
22110
 
                         || test ! -s conftest.err'
22111
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112
 
  (eval $ac_try) 2>&5
22113
 
  ac_status=$?
22114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115
 
  (exit $ac_status); }; } &&
22116
 
         { ac_try='test -s conftest.$ac_objext'
22117
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118
 
  (eval $ac_try) 2>&5
22119
 
  ac_status=$?
22120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121
 
  (exit $ac_status); }; }; then
 
13571
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13572
  (exit $ac_status); } && {
 
13573
         test -z "$ac_c_werror_flag" ||
 
13574
         test ! -s conftest.err
 
13575
       } && test -s conftest.$ac_objext; then
22122
13576
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22123
13577
else
22124
 
  echo "$as_me: failed program was:" >&5
 
13578
  $as_echo "$as_me: failed program was:" >&5
22125
13579
sed 's/^/| /' conftest.$ac_ext >&5
22126
13580
 
 
13581
 
22127
13582
fi
22128
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13583
 
 
13584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22129
13585
  done
22130
13586
 done
22131
13587
done
22133
13589
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22134
13590
 
22135
13591
fi
22136
 
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
22137
 
echo "${ECHO_T}$ac_cv_func_select_args" >&6
 
13592
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
 
13593
$as_echo "$ac_cv_func_select_args" >&6; }
22138
13594
ac_save_IFS=$IFS; IFS=','
22139
13595
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22140
13596
IFS=$ac_save_IFS
22168
13624
 
22169
13625
for ac_func in mkdir regcomp socket strdup strtol strchr memset alarm select realloc
22170
13626
do
22171
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22172
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22173
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22174
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
22175
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13627
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13628
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13629
$as_echo_n "checking for $ac_func... " >&6; }
 
13630
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13631
  $as_echo_n "(cached) " >&6
22176
13632
else
22177
13633
  cat >conftest.$ac_ext <<_ACEOF
22178
13634
/* confdefs.h.  */
22197
13653
 
22198
13654
#undef $ac_func
22199
13655
 
22200
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
13656
/* Override any GCC internal prototype to avoid an error.
 
13657
   Use char because int might match the return type of a GCC
 
13658
   builtin and then its argument prototype would still apply.  */
22201
13659
#ifdef __cplusplus
22202
13660
extern "C"
22203
 
{
22204
13661
#endif
22205
 
/* We use char because int might match the return type of a gcc2
22206
 
   builtin and then its argument prototype would still apply.  */
22207
13662
char $ac_func ();
22208
13663
/* The GNU C library defines this for functions which it implements
22209
13664
    to always fail with ENOSYS.  Some functions are actually named
22210
13665
    something starting with __ and the normal name is an alias.  */
22211
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13666
#if defined __stub_$ac_func || defined __stub___$ac_func
22212
13667
choke me
22213
 
#else
22214
 
char (*f) () = $ac_func;
22215
 
#endif
22216
 
#ifdef __cplusplus
22217
 
}
22218
13668
#endif
22219
13669
 
22220
13670
int
22221
13671
main ()
22222
13672
{
22223
 
return f != $ac_func;
 
13673
return $ac_func ();
22224
13674
  ;
22225
13675
  return 0;
22226
13676
}
22227
13677
_ACEOF
22228
13678
rm -f conftest.$ac_objext conftest$ac_exeext
22229
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230
 
  (eval $ac_link) 2>conftest.er1
 
13679
if { (ac_try="$ac_link"
 
13680
case "(($ac_try" in
 
13681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13682
  *) ac_try_echo=$ac_try;;
 
13683
esac
 
13684
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13685
$as_echo "$ac_try_echo") >&5
 
13686
  (eval "$ac_link") 2>conftest.er1
22231
13687
  ac_status=$?
22232
13688
  grep -v '^ *+' conftest.er1 >conftest.err
22233
13689
  rm -f conftest.er1
22234
13690
  cat conftest.err >&5
22235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236
 
  (exit $ac_status); } &&
22237
 
         { ac_try='test -z "$ac_c_werror_flag"
22238
 
                         || test ! -s conftest.err'
22239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240
 
  (eval $ac_try) 2>&5
22241
 
  ac_status=$?
22242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243
 
  (exit $ac_status); }; } &&
22244
 
         { ac_try='test -s conftest$ac_exeext'
22245
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246
 
  (eval $ac_try) 2>&5
22247
 
  ac_status=$?
22248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249
 
  (exit $ac_status); }; }; then
 
13691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13692
  (exit $ac_status); } && {
 
13693
         test -z "$ac_c_werror_flag" ||
 
13694
         test ! -s conftest.err
 
13695
       } && test -s conftest$ac_exeext && {
 
13696
         test "$cross_compiling" = yes ||
 
13697
         $as_test_x conftest$ac_exeext
 
13698
       }; then
22250
13699
  eval "$as_ac_var=yes"
22251
13700
else
22252
 
  echo "$as_me: failed program was:" >&5
 
13701
  $as_echo "$as_me: failed program was:" >&5
22253
13702
sed 's/^/| /' conftest.$ac_ext >&5
22254
13703
 
22255
 
eval "$as_ac_var=no"
 
13704
        eval "$as_ac_var=no"
22256
13705
fi
22257
 
rm -f conftest.err conftest.$ac_objext \
 
13706
 
 
13707
rm -rf conftest.dSYM
 
13708
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22258
13709
      conftest$ac_exeext conftest.$ac_ext
22259
13710
fi
22260
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22261
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22262
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13711
ac_res=`eval 'as_val=${'$as_ac_var'}
 
13712
                 $as_echo "$as_val"'`
 
13713
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13714
$as_echo "$ac_res" >&6; }
 
13715
as_val=`eval 'as_val=${'$as_ac_var'}
 
13716
                 $as_echo "$as_val"'`
 
13717
   if test "x$as_val" = x""yes; then
22263
13718
  cat >>confdefs.h <<_ACEOF
22264
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13719
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22265
13720
_ACEOF
22266
13721
 
22267
13722
fi
22268
13723
done
22269
13724
 
22270
 
echo "$as_me:$LINENO: checking for gethostbyname" >&5
22271
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
13725
{ $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
13726
$as_echo_n "checking for gethostbyname... " >&6; }
22272
13727
if test "${ac_cv_func_gethostbyname+set}" = set; then
22273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13728
  $as_echo_n "(cached) " >&6
22274
13729
else
22275
13730
  cat >conftest.$ac_ext <<_ACEOF
22276
13731
/* confdefs.h.  */
22295
13750
 
22296
13751
#undef gethostbyname
22297
13752
 
22298
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
13753
/* Override any GCC internal prototype to avoid an error.
 
13754
   Use char because int might match the return type of a GCC
 
13755
   builtin and then its argument prototype would still apply.  */
22299
13756
#ifdef __cplusplus
22300
13757
extern "C"
22301
 
{
22302
13758
#endif
22303
 
/* We use char because int might match the return type of a gcc2
22304
 
   builtin and then its argument prototype would still apply.  */
22305
13759
char gethostbyname ();
22306
13760
/* The GNU C library defines this for functions which it implements
22307
13761
    to always fail with ENOSYS.  Some functions are actually named
22308
13762
    something starting with __ and the normal name is an alias.  */
22309
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
13763
#if defined __stub_gethostbyname || defined __stub___gethostbyname
22310
13764
choke me
22311
 
#else
22312
 
char (*f) () = gethostbyname;
22313
 
#endif
22314
 
#ifdef __cplusplus
22315
 
}
22316
13765
#endif
22317
13766
 
22318
13767
int
22319
13768
main ()
22320
13769
{
22321
 
return f != gethostbyname;
 
13770
return gethostbyname ();
22322
13771
  ;
22323
13772
  return 0;
22324
13773
}
22325
13774
_ACEOF
22326
13775
rm -f conftest.$ac_objext conftest$ac_exeext
22327
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22328
 
  (eval $ac_link) 2>conftest.er1
 
13776
if { (ac_try="$ac_link"
 
13777
case "(($ac_try" in
 
13778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13779
  *) ac_try_echo=$ac_try;;
 
13780
esac
 
13781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13782
$as_echo "$ac_try_echo") >&5
 
13783
  (eval "$ac_link") 2>conftest.er1
22329
13784
  ac_status=$?
22330
13785
  grep -v '^ *+' conftest.er1 >conftest.err
22331
13786
  rm -f conftest.er1
22332
13787
  cat conftest.err >&5
22333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334
 
  (exit $ac_status); } &&
22335
 
         { ac_try='test -z "$ac_c_werror_flag"
22336
 
                         || test ! -s conftest.err'
22337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338
 
  (eval $ac_try) 2>&5
22339
 
  ac_status=$?
22340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341
 
  (exit $ac_status); }; } &&
22342
 
         { ac_try='test -s conftest$ac_exeext'
22343
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344
 
  (eval $ac_try) 2>&5
22345
 
  ac_status=$?
22346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347
 
  (exit $ac_status); }; }; then
 
13788
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13789
  (exit $ac_status); } && {
 
13790
         test -z "$ac_c_werror_flag" ||
 
13791
         test ! -s conftest.err
 
13792
       } && test -s conftest$ac_exeext && {
 
13793
         test "$cross_compiling" = yes ||
 
13794
         $as_test_x conftest$ac_exeext
 
13795
       }; then
22348
13796
  ac_cv_func_gethostbyname=yes
22349
13797
else
22350
 
  echo "$as_me: failed program was:" >&5
 
13798
  $as_echo "$as_me: failed program was:" >&5
22351
13799
sed 's/^/| /' conftest.$ac_ext >&5
22352
13800
 
22353
 
ac_cv_func_gethostbyname=no
 
13801
        ac_cv_func_gethostbyname=no
22354
13802
fi
22355
 
rm -f conftest.err conftest.$ac_objext \
 
13803
 
 
13804
rm -rf conftest.dSYM
 
13805
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22356
13806
      conftest$ac_exeext conftest.$ac_ext
22357
13807
fi
22358
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22359
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22360
 
if test $ac_cv_func_gethostbyname = yes; then
 
13808
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
13809
$as_echo "$ac_cv_func_gethostbyname" >&6; }
 
13810
if test "x$ac_cv_func_gethostbyname" = x""yes; then
22361
13811
  :
22362
13812
else
22363
13813
 
22364
 
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22365
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
13814
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
13815
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22366
13816
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22367
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13817
  $as_echo_n "(cached) " >&6
22368
13818
else
22369
13819
  ac_check_lib_save_LIBS=$LIBS
22370
13820
LIBS="-lnsl  $LIBS"
22375
13825
cat >>conftest.$ac_ext <<_ACEOF
22376
13826
/* end confdefs.h.  */
22377
13827
 
22378
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
13828
/* Override any GCC internal prototype to avoid an error.
 
13829
   Use char because int might match the return type of a GCC
 
13830
   builtin and then its argument prototype would still apply.  */
22379
13831
#ifdef __cplusplus
22380
13832
extern "C"
22381
13833
#endif
22382
 
/* We use char because int might match the return type of a gcc2
22383
 
   builtin and then its argument prototype would still apply.  */
22384
13834
char gethostbyname ();
22385
13835
int
22386
13836
main ()
22387
13837
{
22388
 
gethostbyname ();
 
13838
return gethostbyname ();
22389
13839
  ;
22390
13840
  return 0;
22391
13841
}
22392
13842
_ACEOF
22393
13843
rm -f conftest.$ac_objext conftest$ac_exeext
22394
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22395
 
  (eval $ac_link) 2>conftest.er1
 
13844
if { (ac_try="$ac_link"
 
13845
case "(($ac_try" in
 
13846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13847
  *) ac_try_echo=$ac_try;;
 
13848
esac
 
13849
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13850
$as_echo "$ac_try_echo") >&5
 
13851
  (eval "$ac_link") 2>conftest.er1
22396
13852
  ac_status=$?
22397
13853
  grep -v '^ *+' conftest.er1 >conftest.err
22398
13854
  rm -f conftest.er1
22399
13855
  cat conftest.err >&5
22400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401
 
  (exit $ac_status); } &&
22402
 
         { ac_try='test -z "$ac_c_werror_flag"
22403
 
                         || test ! -s conftest.err'
22404
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405
 
  (eval $ac_try) 2>&5
22406
 
  ac_status=$?
22407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408
 
  (exit $ac_status); }; } &&
22409
 
         { ac_try='test -s conftest$ac_exeext'
22410
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411
 
  (eval $ac_try) 2>&5
22412
 
  ac_status=$?
22413
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414
 
  (exit $ac_status); }; }; then
 
13856
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13857
  (exit $ac_status); } && {
 
13858
         test -z "$ac_c_werror_flag" ||
 
13859
         test ! -s conftest.err
 
13860
       } && test -s conftest$ac_exeext && {
 
13861
         test "$cross_compiling" = yes ||
 
13862
         $as_test_x conftest$ac_exeext
 
13863
       }; then
22415
13864
  ac_cv_lib_nsl_gethostbyname=yes
22416
13865
else
22417
 
  echo "$as_me: failed program was:" >&5
 
13866
  $as_echo "$as_me: failed program was:" >&5
22418
13867
sed 's/^/| /' conftest.$ac_ext >&5
22419
13868
 
22420
 
ac_cv_lib_nsl_gethostbyname=no
 
13869
        ac_cv_lib_nsl_gethostbyname=no
22421
13870
fi
22422
 
rm -f conftest.err conftest.$ac_objext \
 
13871
 
 
13872
rm -rf conftest.dSYM
 
13873
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22423
13874
      conftest$ac_exeext conftest.$ac_ext
22424
13875
LIBS=$ac_check_lib_save_LIBS
22425
13876
fi
22426
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22427
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22428
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
13877
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
13878
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 
13879
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
22429
13880
  cat >>confdefs.h <<_ACEOF
22430
13881
#define HAVE_LIBNSL 1
22431
13882
_ACEOF
22444
13895
        if test -n "$ac_tool_prefix"; then
22445
13896
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22446
13897
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22447
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
22448
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13898
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13899
$as_echo_n "checking for $ac_word... " >&6; }
22449
13900
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22450
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13901
  $as_echo_n "(cached) " >&6
22451
13902
else
22452
13903
  case $PKG_CONFIG in
22453
13904
  [\\/]* | ?:[\\/]*)
22460
13911
  IFS=$as_save_IFS
22461
13912
  test -z "$as_dir" && as_dir=.
22462
13913
  for ac_exec_ext in '' $ac_executable_extensions; do
22463
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13914
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22464
13915
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22465
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13916
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22466
13917
    break 2
22467
13918
  fi
22468
13919
done
22469
13920
done
 
13921
IFS=$as_save_IFS
22470
13922
 
22471
13923
  ;;
22472
13924
esac
22473
13925
fi
22474
13926
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22475
 
 
22476
13927
if test -n "$PKG_CONFIG"; then
22477
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22478
 
echo "${ECHO_T}$PKG_CONFIG" >&6
 
13928
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
13929
$as_echo "$PKG_CONFIG" >&6; }
22479
13930
else
22480
 
  echo "$as_me:$LINENO: result: no" >&5
22481
 
echo "${ECHO_T}no" >&6
 
13931
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13932
$as_echo "no" >&6; }
22482
13933
fi
 
13934
 
22483
13935
 
22484
13936
fi
22485
13937
if test -z "$ac_cv_path_PKG_CONFIG"; then
22486
13938
  ac_pt_PKG_CONFIG=$PKG_CONFIG
22487
13939
  # Extract the first word of "pkg-config", so it can be a program name with args.
22488
13940
set dummy pkg-config; ac_word=$2
22489
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
22490
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13941
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13942
$as_echo_n "checking for $ac_word... " >&6; }
22491
13943
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13944
  $as_echo_n "(cached) " >&6
22493
13945
else
22494
13946
  case $ac_pt_PKG_CONFIG in
22495
13947
  [\\/]* | ?:[\\/]*)
22502
13954
  IFS=$as_save_IFS
22503
13955
  test -z "$as_dir" && as_dir=.
22504
13956
  for ac_exec_ext in '' $ac_executable_extensions; do
22505
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13957
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22506
13958
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22507
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13959
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22508
13960
    break 2
22509
13961
  fi
22510
13962
done
22511
13963
done
 
13964
IFS=$as_save_IFS
22512
13965
 
22513
13966
  ;;
22514
13967
esac
22515
13968
fi
22516
13969
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22517
 
 
22518
13970
if test -n "$ac_pt_PKG_CONFIG"; then
22519
 
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22520
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
13971
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
13972
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22521
13973
else
22522
 
  echo "$as_me:$LINENO: result: no" >&5
22523
 
echo "${ECHO_T}no" >&6
 
13974
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13975
$as_echo "no" >&6; }
22524
13976
fi
22525
13977
 
22526
 
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
13978
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
13979
    PKG_CONFIG=""
 
13980
  else
 
13981
    case $cross_compiling:$ac_tool_warned in
 
13982
yes:)
 
13983
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
13984
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13985
ac_tool_warned=yes ;;
 
13986
esac
 
13987
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
13988
  fi
22527
13989
else
22528
13990
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22529
13991
fi
22531
13993
fi
22532
13994
if test -n "$PKG_CONFIG"; then
22533
13995
        _pkg_min_version=0.9.0
22534
 
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22535
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
13996
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
13997
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22536
13998
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22537
 
                echo "$as_me:$LINENO: result: yes" >&5
22538
 
echo "${ECHO_T}yes" >&6
 
13999
                { $as_echo "$as_me:$LINENO: result: yes" >&5
 
14000
$as_echo "yes" >&6; }
22539
14001
        else
22540
 
                echo "$as_me:$LINENO: result: no" >&5
22541
 
echo "${ECHO_T}no" >&6
 
14002
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
14003
$as_echo "no" >&6; }
22542
14004
                PKG_CONFIG=""
22543
14005
        fi
22544
14006
 
22545
14007
fi
22546
14008
 
22547
14009
pkg_failed=no
22548
 
echo "$as_me:$LINENO: checking for LIBCDIO_CFLAGS" >&5
22549
 
echo $ECHO_N "checking for LIBCDIO_CFLAGS... $ECHO_C" >&6
22550
 
if test "${pkg_cv_LIBCDIO_CFLAGS+set}" = set; then
22551
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22552
 
else
22553
 
  if test "x$ac_cv_env_LIBCDIO_CFLAGS_set" = "xset"; then
22554
 
        pkg_cv_LIBCDIO_CFLAGS=$ac_cv_env_LIBCDIO_CFLAGS_value
22555
 
elif test -n "$PKG_CONFIG"; then
22556
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"libcdio >= 0.67\" >/dev/null 2>&1") >&5
22557
 
  ($PKG_CONFIG --exists "libcdio >= 0.67" >/dev/null 2>&1) 2>&5
22558
 
  ac_status=$?
22559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560
 
  (exit $ac_status); }; then
22561
 
                pkg_cv_LIBCDIO_CFLAGS=`$PKG_CONFIG --cflags "libcdio >= 0.67" 2>/dev/null`
22562
 
        else
22563
 
                pkg_failed=yes
22564
 
        fi
22565
 
else
22566
 
        pkg_failed=untried
22567
 
fi
22568
 
fi
22569
 
echo "$as_me:$LINENO: result: $pkg_cv_LIBCDIO_CFLAGS" >&5
22570
 
echo "${ECHO_T}$pkg_cv_LIBCDIO_CFLAGS" >&6
22571
 
echo "$as_me:$LINENO: checking for LIBCDIO_LIBS" >&5
22572
 
echo $ECHO_N "checking for LIBCDIO_LIBS... $ECHO_C" >&6
22573
 
if test "${pkg_cv_LIBCDIO_LIBS+set}" = set; then
22574
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22575
 
else
22576
 
  if test "x$ac_cv_env_LIBCDIO_LIBS_set" = "xset"; then
22577
 
        pkg_cv_LIBCDIO_LIBS=$ac_cv_env_LIBCDIO_LIBS_value
22578
 
elif test -n "$PKG_CONFIG"; then
22579
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"libcdio >= 0.67\" >/dev/null 2>&1") >&5
22580
 
  ($PKG_CONFIG --exists "libcdio >= 0.67" >/dev/null 2>&1) 2>&5
22581
 
  ac_status=$?
22582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583
 
  (exit $ac_status); }; then
22584
 
                pkg_cv_LIBCDIO_LIBS=`$PKG_CONFIG --libs "libcdio >= 0.67" 2>/dev/null`
22585
 
        else
22586
 
                pkg_failed=yes
22587
 
        fi
22588
 
else
22589
 
        pkg_failed=untried
22590
 
fi
22591
 
fi
22592
 
echo "$as_me:$LINENO: result: $pkg_cv_LIBCDIO_LIBS" >&5
22593
 
echo "${ECHO_T}$pkg_cv_LIBCDIO_LIBS" >&6
 
14010
{ $as_echo "$as_me:$LINENO: checking for LIBCDIO" >&5
 
14011
$as_echo_n "checking for LIBCDIO... " >&6; }
 
14012
 
 
14013
if test -n "$LIBCDIO_CFLAGS"; then
 
14014
    pkg_cv_LIBCDIO_CFLAGS="$LIBCDIO_CFLAGS"
 
14015
 elif test -n "$PKG_CONFIG"; then
 
14016
    if test -n "$PKG_CONFIG" && \
 
14017
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.76\"") >&5
 
14018
  ($PKG_CONFIG --exists --print-errors "libcdio >= 0.76") 2>&5
 
14019
  ac_status=$?
 
14020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14021
  (exit $ac_status); }; then
 
14022
  pkg_cv_LIBCDIO_CFLAGS=`$PKG_CONFIG --cflags "libcdio >= 0.76" 2>/dev/null`
 
14023
else
 
14024
  pkg_failed=yes
 
14025
fi
 
14026
 else
 
14027
    pkg_failed=untried
 
14028
fi
 
14029
if test -n "$LIBCDIO_LIBS"; then
 
14030
    pkg_cv_LIBCDIO_LIBS="$LIBCDIO_LIBS"
 
14031
 elif test -n "$PKG_CONFIG"; then
 
14032
    if test -n "$PKG_CONFIG" && \
 
14033
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.76\"") >&5
 
14034
  ($PKG_CONFIG --exists --print-errors "libcdio >= 0.76") 2>&5
 
14035
  ac_status=$?
 
14036
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14037
  (exit $ac_status); }; then
 
14038
  pkg_cv_LIBCDIO_LIBS=`$PKG_CONFIG --libs "libcdio >= 0.76" 2>/dev/null`
 
14039
else
 
14040
  pkg_failed=yes
 
14041
fi
 
14042
 else
 
14043
    pkg_failed=untried
 
14044
fi
 
14045
 
 
14046
 
22594
14047
 
22595
14048
if test $pkg_failed = yes; then
22596
 
        LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcdio >= 0.67"`
 
14049
 
 
14050
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14051
        _pkg_short_errors_supported=yes
 
14052
else
 
14053
        _pkg_short_errors_supported=no
 
14054
fi
 
14055
        if test $_pkg_short_errors_supported = yes; then
 
14056
                LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcdio >= 0.76" 2>&1`
 
14057
        else
 
14058
                LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcdio >= 0.76" 2>&1`
 
14059
        fi
22597
14060
        # Put the nasty error message in config.log where it belongs
22598
 
        echo "$LIBCDIO_PKG_ERRORS" 1>&5
 
14061
        echo "$LIBCDIO_PKG_ERRORS" >&5
22599
14062
 
22600
 
        { echo "$as_me:$LINENO: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&5
22601
 
echo "$as_me: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&2;}
 
14063
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
14064
$as_echo "no" >&6; }
 
14065
                { $as_echo "$as_me:$LINENO: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&5
 
14066
$as_echo "$as_me: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&2;}
22602
14067
        HAVE_LIBCDIO=no
22603
14068
elif test $pkg_failed = untried; then
22604
 
        { echo "$as_me:$LINENO: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&5
22605
 
echo "$as_me: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&2;}
 
14069
        { $as_echo "$as_me:$LINENO: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&5
 
14070
$as_echo "$as_me: WARNING: new enough libcdio not found. CD reading in CDDB test program disabled. Get libcdio from http://www.gnu.org/software/libcdio/" >&2;}
22606
14071
        HAVE_LIBCDIO=no
22607
14072
else
22608
14073
        LIBCDIO_CFLAGS=$pkg_cv_LIBCDIO_CFLAGS
22609
14074
        LIBCDIO_LIBS=$pkg_cv_LIBCDIO_LIBS
 
14075
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
14076
$as_echo "yes" >&6; }
22610
14077
 
22611
14078
        HAVE_LIBCDIO=yes
22612
14079
 
22613
14080
cat >>confdefs.h <<\_ACEOF
22614
 
#define HAVE_LIBCDIO
 
14081
#define HAVE_LIBCDIO /**/
22615
14082
_ACEOF
22616
14083
 
22617
14084
 
22626
14093
 
22627
14094
for ac_header in iconv.h
22628
14095
do
22629
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22630
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22631
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
22632
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22633
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22634
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14096
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14098
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14099
$as_echo_n "checking for $ac_header... " >&6; }
 
14100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14101
  $as_echo_n "(cached) " >&6
22635
14102
fi
22636
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22637
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14103
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
14104
                 $as_echo "$as_val"'`
 
14105
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
14106
$as_echo "$ac_res" >&6; }
22638
14107
else
22639
14108
  # Is the header compilable?
22640
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22641
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
14109
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14110
$as_echo_n "checking $ac_header usability... " >&6; }
22642
14111
cat >conftest.$ac_ext <<_ACEOF
22643
14112
/* confdefs.h.  */
22644
14113
_ACEOF
22649
14118
#include <$ac_header>
22650
14119
_ACEOF
22651
14120
rm -f conftest.$ac_objext
22652
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22653
 
  (eval $ac_compile) 2>conftest.er1
 
14121
if { (ac_try="$ac_compile"
 
14122
case "(($ac_try" in
 
14123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14124
  *) ac_try_echo=$ac_try;;
 
14125
esac
 
14126
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14127
$as_echo "$ac_try_echo") >&5
 
14128
  (eval "$ac_compile") 2>conftest.er1
22654
14129
  ac_status=$?
22655
14130
  grep -v '^ *+' conftest.er1 >conftest.err
22656
14131
  rm -f conftest.er1
22657
14132
  cat conftest.err >&5
22658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659
 
  (exit $ac_status); } &&
22660
 
         { ac_try='test -z "$ac_c_werror_flag"
22661
 
                         || test ! -s conftest.err'
22662
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663
 
  (eval $ac_try) 2>&5
22664
 
  ac_status=$?
22665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666
 
  (exit $ac_status); }; } &&
22667
 
         { ac_try='test -s conftest.$ac_objext'
22668
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669
 
  (eval $ac_try) 2>&5
22670
 
  ac_status=$?
22671
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672
 
  (exit $ac_status); }; }; then
 
14133
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14134
  (exit $ac_status); } && {
 
14135
         test -z "$ac_c_werror_flag" ||
 
14136
         test ! -s conftest.err
 
14137
       } && test -s conftest.$ac_objext; then
22673
14138
  ac_header_compiler=yes
22674
14139
else
22675
 
  echo "$as_me: failed program was:" >&5
 
14140
  $as_echo "$as_me: failed program was:" >&5
22676
14141
sed 's/^/| /' conftest.$ac_ext >&5
22677
14142
 
22678
 
ac_header_compiler=no
 
14143
        ac_header_compiler=no
22679
14144
fi
22680
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22681
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22682
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
14145
 
 
14146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14147
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14148
$as_echo "$ac_header_compiler" >&6; }
22683
14149
 
22684
14150
# Is the header present?
22685
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22686
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
14151
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14152
$as_echo_n "checking $ac_header presence... " >&6; }
22687
14153
cat >conftest.$ac_ext <<_ACEOF
22688
14154
/* confdefs.h.  */
22689
14155
_ACEOF
22692
14158
/* end confdefs.h.  */
22693
14159
#include <$ac_header>
22694
14160
_ACEOF
22695
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22696
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14161
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14162
case "(($ac_try" in
 
14163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14164
  *) ac_try_echo=$ac_try;;
 
14165
esac
 
14166
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14167
$as_echo "$ac_try_echo") >&5
 
14168
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22697
14169
  ac_status=$?
22698
14170
  grep -v '^ *+' conftest.er1 >conftest.err
22699
14171
  rm -f conftest.er1
22700
14172
  cat conftest.err >&5
22701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702
 
  (exit $ac_status); } >/dev/null; then
22703
 
  if test -s conftest.err; then
22704
 
    ac_cpp_err=$ac_c_preproc_warn_flag
22705
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22706
 
  else
22707
 
    ac_cpp_err=
22708
 
  fi
22709
 
else
22710
 
  ac_cpp_err=yes
22711
 
fi
22712
 
if test -z "$ac_cpp_err"; then
 
14173
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14174
  (exit $ac_status); } >/dev/null && {
 
14175
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14176
         test ! -s conftest.err
 
14177
       }; then
22713
14178
  ac_header_preproc=yes
22714
14179
else
22715
 
  echo "$as_me: failed program was:" >&5
 
14180
  $as_echo "$as_me: failed program was:" >&5
22716
14181
sed 's/^/| /' conftest.$ac_ext >&5
22717
14182
 
22718
14183
  ac_header_preproc=no
22719
14184
fi
 
14185
 
22720
14186
rm -f conftest.err conftest.$ac_ext
22721
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22722
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
14187
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14188
$as_echo "$ac_header_preproc" >&6; }
22723
14189
 
22724
14190
# So?  What about this header?
22725
14191
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22726
14192
  yes:no: )
22727
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22728
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22729
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22730
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
14193
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14194
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14195
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
14196
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22731
14197
    ac_header_preproc=yes
22732
14198
    ;;
22733
14199
  no:yes:* )
22734
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22735
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22736
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22737
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22738
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22739
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22740
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22741
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22742
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22743
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22744
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22745
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22746
 
    (
22747
 
      cat <<\_ASBOX
22748
 
## ---------------------------------- ##
22749
 
## Report this to the libcddb lists.  ##
22750
 
## ---------------------------------- ##
22751
 
_ASBOX
22752
 
    ) |
22753
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
14200
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14201
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14202
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
14203
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
14204
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
14205
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
14206
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
14207
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14208
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14209
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
14210
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
14211
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
14212
 
22754
14213
    ;;
22755
14214
esac
22756
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
22757
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22758
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22759
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14215
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14216
$as_echo_n "checking for $ac_header... " >&6; }
 
14217
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14218
  $as_echo_n "(cached) " >&6
22760
14219
else
22761
14220
  eval "$as_ac_Header=\$ac_header_preproc"
22762
14221
fi
22763
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22764
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14222
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
14223
                 $as_echo "$as_val"'`
 
14224
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
14225
$as_echo "$ac_res" >&6; }
22765
14226
 
22766
14227
fi
22767
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14228
as_val=`eval 'as_val=${'$as_ac_Header'}
 
14229
                 $as_echo "$as_val"'`
 
14230
   if test "x$as_val" = x""yes; then
22768
14231
  cat >>confdefs.h <<_ACEOF
22769
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14232
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22770
14233
_ACEOF
22771
14234
 with_iconv=1
22772
14235
else
22792
14255
  prefix="$acl_save_prefix"
22793
14256
 
22794
14257
 
22795
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
14258
# Check whether --with-gnu-ld was given.
22796
14259
if test "${with_gnu_ld+set}" = set; then
22797
 
  withval="$with_gnu_ld"
22798
 
  test "$withval" = no || with_gnu_ld=yes
 
14260
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22799
14261
else
22800
14262
  with_gnu_ld=no
22801
 
fi;
 
14263
fi
 
14264
 
22802
14265
# Prepare PATH_SEPARATOR.
22803
14266
# The user is always right.
22804
14267
if test "${PATH_SEPARATOR+set}" != set; then
22815
14278
ac_prog=ld
22816
14279
if test "$GCC" = yes; then
22817
14280
  # Check if gcc -print-prog-name=ld gives a path.
22818
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22819
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
14281
  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
14282
$as_echo_n "checking for ld used by GCC... " >&6; }
22820
14283
  case $host in
22821
14284
  *-*-mingw*)
22822
14285
    # gcc leaves a trailing carriage return which upsets mingw
22845
14308
    ;;
22846
14309
  esac
22847
14310
elif test "$with_gnu_ld" = yes; then
22848
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
22849
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
14311
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
14312
$as_echo_n "checking for GNU ld... " >&6; }
22850
14313
else
22851
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22852
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
14314
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
14315
$as_echo_n "checking for non-GNU ld... " >&6; }
22853
14316
fi
22854
14317
if test "${acl_cv_path_LD+set}" = set; then
22855
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14318
  $as_echo_n "(cached) " >&6
22856
14319
else
22857
14320
  if test -z "$LD"; then
22858
14321
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22879
14342
 
22880
14343
LD="$acl_cv_path_LD"
22881
14344
if test -n "$LD"; then
22882
 
  echo "$as_me:$LINENO: result: $LD" >&5
22883
 
echo "${ECHO_T}$LD" >&6
 
14345
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
14346
$as_echo "$LD" >&6; }
22884
14347
else
22885
 
  echo "$as_me:$LINENO: result: no" >&5
22886
 
echo "${ECHO_T}no" >&6
 
14348
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
14349
$as_echo "no" >&6; }
22887
14350
fi
22888
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22889
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
14351
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
14352
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22890
14353
   { (exit 1); exit 1; }; }
22891
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22892
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
14354
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
14355
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22893
14356
if test "${acl_cv_prog_gnu_ld+set}" = set; then
22894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14357
  $as_echo_n "(cached) " >&6
22895
14358
else
22896
14359
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22897
14360
case `$LD -v 2>&1 </dev/null` in
22901
14364
  acl_cv_prog_gnu_ld=no ;;
22902
14365
esac
22903
14366
fi
22904
 
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22905
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
14367
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
14368
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
22906
14369
with_gnu_ld=$acl_cv_prog_gnu_ld
22907
14370
 
22908
14371
 
22909
14372
 
22910
14373
 
22911
 
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22912
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
14374
                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
14375
$as_echo_n "checking for shared library run path origin... " >&6; }
22913
14376
if test "${acl_cv_rpath+set}" = set; then
22914
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14377
  $as_echo_n "(cached) " >&6
22915
14378
else
22916
14379
 
22917
14380
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22921
14384
    acl_cv_rpath=done
22922
14385
 
22923
14386
fi
22924
 
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22925
 
echo "${ECHO_T}$acl_cv_rpath" >&6
 
14387
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
14388
$as_echo "$acl_cv_rpath" >&6; }
22926
14389
  wl="$acl_cv_wl"
22927
 
  libext="$acl_cv_libext"
22928
 
  shlibext="$acl_cv_shlibext"
22929
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22930
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22931
 
  hardcode_direct="$acl_cv_hardcode_direct"
22932
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
22933
 
    # Check whether --enable-rpath or --disable-rpath was given.
 
14390
  acl_libext="$acl_cv_libext"
 
14391
  acl_shlibext="$acl_cv_shlibext"
 
14392
  acl_libname_spec="$acl_cv_libname_spec"
 
14393
  acl_library_names_spec="$acl_cv_library_names_spec"
 
14394
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
14395
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
14396
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
14397
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
14398
    # Check whether --enable-rpath was given.
22934
14399
if test "${enable_rpath+set}" = set; then
22935
 
  enableval="$enable_rpath"
22936
 
  :
 
14400
  enableval=$enable_rpath; :
22937
14401
else
22938
14402
  enable_rpath=yes
22939
 
fi;
 
14403
fi
 
14404
 
 
14405
 
 
14406
 
 
14407
                  acl_libdirstem=lib
 
14408
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
14409
  if test -n "$searchpath"; then
 
14410
    acl_save_IFS="${IFS=        }"; IFS=":"
 
14411
    for searchdir in $searchpath; do
 
14412
      if test -d "$searchdir"; then
 
14413
        case "$searchdir" in
 
14414
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
14415
          *) searchdir=`cd "$searchdir" && pwd`
 
14416
             case "$searchdir" in
 
14417
               */lib64 ) acl_libdirstem=lib64 ;;
 
14418
             esac ;;
 
14419
        esac
 
14420
      fi
 
14421
    done
 
14422
    IFS="$acl_save_IFS"
 
14423
  fi
 
14424
 
 
14425
 
22940
14426
 
22941
14427
 
22942
14428
 
22958
14444
  prefix="$acl_save_prefix"
22959
14445
 
22960
14446
 
22961
 
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
14447
# Check whether --with-libiconv-prefix was given.
22962
14448
if test "${with_libiconv_prefix+set}" = set; then
22963
 
  withval="$with_libiconv_prefix"
22964
 
 
 
14449
  withval=$with_libiconv_prefix;
22965
14450
    if test "X$withval" = "Xno"; then
22966
14451
      use_additional=no
22967
14452
    else
22980
14465
 
22981
14466
      else
22982
14467
        additional_includedir="$withval/include"
22983
 
        additional_libdir="$withval/lib"
 
14468
        additional_libdir="$withval/$acl_libdirstem"
22984
14469
      fi
22985
14470
    fi
22986
14471
 
22987
 
fi;
 
14472
fi
 
14473
 
22988
14474
      LIBICONV=
22989
14475
  LTLIBICONV=
22990
14476
  INCICONV=
 
14477
  LIBICONV_PREFIX=
22991
14478
  rpathdirs=
22992
14479
  ltrpathdirs=
22993
14480
  names_already_handled=
23021
14508
          found_la=
23022
14509
          found_so=
23023
14510
          found_a=
 
14511
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
14512
          if test -n "$acl_shlibext"; then
 
14513
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
14514
          else
 
14515
            shrext=
 
14516
          fi
23024
14517
          if test $use_additional = yes; then
23025
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23026
 
              found_dir="$additional_libdir"
23027
 
              found_so="$additional_libdir/lib$name.$shlibext"
23028
 
              if test -f "$additional_libdir/lib$name.la"; then
23029
 
                found_la="$additional_libdir/lib$name.la"
23030
 
              fi
23031
 
            else
23032
 
              if test -f "$additional_libdir/lib$name.$libext"; then
23033
 
                found_dir="$additional_libdir"
23034
 
                found_a="$additional_libdir/lib$name.$libext"
23035
 
                if test -f "$additional_libdir/lib$name.la"; then
23036
 
                  found_la="$additional_libdir/lib$name.la"
 
14518
            dir="$additional_libdir"
 
14519
                                    if test -n "$acl_shlibext"; then
 
14520
              if test -f "$dir/$libname$shrext"; then
 
14521
                found_dir="$dir"
 
14522
                found_so="$dir/$libname$shrext"
 
14523
              else
 
14524
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
14525
                  ver=`(cd "$dir" && \
 
14526
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
14527
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
14528
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
14529
                        | sed 1q ) 2>/dev/null`
 
14530
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
14531
                    found_dir="$dir"
 
14532
                    found_so="$dir/$libname$shrext.$ver"
 
14533
                  fi
 
14534
                else
 
14535
                  eval library_names=\"$acl_library_names_spec\"
 
14536
                  for f in $library_names; do
 
14537
                    if test -f "$dir/$f"; then
 
14538
                      found_dir="$dir"
 
14539
                      found_so="$dir/$f"
 
14540
                      break
 
14541
                    fi
 
14542
                  done
23037
14543
                fi
23038
14544
              fi
23039
14545
            fi
 
14546
                        if test "X$found_dir" = "X"; then
 
14547
              if test -f "$dir/$libname.$acl_libext"; then
 
14548
                found_dir="$dir"
 
14549
                found_a="$dir/$libname.$acl_libext"
 
14550
              fi
 
14551
            fi
 
14552
            if test "X$found_dir" != "X"; then
 
14553
              if test -f "$dir/$libname.la"; then
 
14554
                found_la="$dir/$libname.la"
 
14555
              fi
 
14556
            fi
23040
14557
          fi
23041
14558
          if test "X$found_dir" = "X"; then
23042
14559
            for x in $LDFLAGS $LTLIBICONV; do
23052
14569
              case "$x" in
23053
14570
                -L*)
23054
14571
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23055
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23056
 
                    found_dir="$dir"
23057
 
                    found_so="$dir/lib$name.$shlibext"
23058
 
                    if test -f "$dir/lib$name.la"; then
23059
 
                      found_la="$dir/lib$name.la"
23060
 
                    fi
23061
 
                  else
23062
 
                    if test -f "$dir/lib$name.$libext"; then
 
14572
                                    if test -n "$acl_shlibext"; then
 
14573
                    if test -f "$dir/$libname$shrext"; then
23063
14574
                      found_dir="$dir"
23064
 
                      found_a="$dir/lib$name.$libext"
23065
 
                      if test -f "$dir/lib$name.la"; then
23066
 
                        found_la="$dir/lib$name.la"
 
14575
                      found_so="$dir/$libname$shrext"
 
14576
                    else
 
14577
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
14578
                        ver=`(cd "$dir" && \
 
14579
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
14580
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
14581
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
14582
                              | sed 1q ) 2>/dev/null`
 
14583
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
14584
                          found_dir="$dir"
 
14585
                          found_so="$dir/$libname$shrext.$ver"
 
14586
                        fi
 
14587
                      else
 
14588
                        eval library_names=\"$acl_library_names_spec\"
 
14589
                        for f in $library_names; do
 
14590
                          if test -f "$dir/$f"; then
 
14591
                            found_dir="$dir"
 
14592
                            found_so="$dir/$f"
 
14593
                            break
 
14594
                          fi
 
14595
                        done
23067
14596
                      fi
23068
14597
                    fi
23069
14598
                  fi
 
14599
                                    if test "X$found_dir" = "X"; then
 
14600
                    if test -f "$dir/$libname.$acl_libext"; then
 
14601
                      found_dir="$dir"
 
14602
                      found_a="$dir/$libname.$acl_libext"
 
14603
                    fi
 
14604
                  fi
 
14605
                  if test "X$found_dir" != "X"; then
 
14606
                    if test -f "$dir/$libname.la"; then
 
14607
                      found_la="$dir/$libname.la"
 
14608
                    fi
 
14609
                  fi
23070
14610
                  ;;
23071
14611
              esac
23072
14612
              if test "X$found_dir" != "X"; then
23077
14617
          if test "X$found_dir" != "X"; then
23078
14618
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
23079
14619
            if test "X$found_so" != "X"; then
23080
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
14620
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23081
14621
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23082
14622
              else
23083
14623
                                                                                haveit=
23090
14630
                if test -z "$haveit"; then
23091
14631
                  ltrpathdirs="$ltrpathdirs $found_dir"
23092
14632
                fi
23093
 
                                if test "$hardcode_direct" = yes; then
 
14633
                                if test "$acl_hardcode_direct" = yes; then
23094
14634
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23095
14635
                else
23096
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
14636
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23097
14637
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23098
14638
                                                            haveit=
23099
14639
                    for x in $rpathdirs; do
23125
14665
                    if test -z "$haveit"; then
23126
14666
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
23127
14667
                    fi
23128
 
                    if test "$hardcode_minus_L" != no; then
 
14668
                    if test "$acl_hardcode_minus_L" != no; then
23129
14669
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23130
14670
                    else
23131
14671
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23142
14682
            fi
23143
14683
                        additional_includedir=
23144
14684
            case "$found_dir" in
23145
 
              */lib | */lib/)
23146
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
14685
              */$acl_libdirstem | */$acl_libdirstem/)
 
14686
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
14687
                LIBICONV_PREFIX="$basedir"
23147
14688
                additional_includedir="$basedir/include"
23148
14689
                ;;
23149
14690
            esac
23192
14733
                case "$dep" in
23193
14734
                  -L*)
23194
14735
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23195
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
14736
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
23196
14737
                      haveit=
23197
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
14738
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
23198
14739
                        if test -n "$GCC"; then
23199
14740
                          case $host_os in
23200
14741
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23294
14835
    done
23295
14836
  done
23296
14837
  if test "X$rpathdirs" != "X"; then
23297
 
    if test -n "$hardcode_libdir_separator"; then
 
14838
    if test -n "$acl_hardcode_libdir_separator"; then
23298
14839
                        alldirs=
23299
14840
      for found_dir in $rpathdirs; do
23300
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
14841
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23301
14842
      done
23302
14843
            acl_save_libdir="$libdir"
23303
14844
      libdir="$alldirs"
23304
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
14845
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
23305
14846
      libdir="$acl_save_libdir"
23306
14847
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23307
14848
    else
23308
14849
            for found_dir in $rpathdirs; do
23309
14850
        acl_save_libdir="$libdir"
23310
14851
        libdir="$found_dir"
23311
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
14852
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
23312
14853
        libdir="$acl_save_libdir"
23313
14854
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23314
14855
      done
23351
14892
  done
23352
14893
 
23353
14894
 
23354
 
  echo "$as_me:$LINENO: checking for iconv" >&5
23355
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
14895
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
 
14896
$as_echo_n "checking for iconv... " >&6; }
23356
14897
if test "${am_cv_func_iconv+set}" = set; then
23357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14898
  $as_echo_n "(cached) " >&6
23358
14899
else
23359
14900
 
23360
14901
    am_cv_func_iconv="no, consider installing GNU libiconv"
23378
14919
}
23379
14920
_ACEOF
23380
14921
rm -f conftest.$ac_objext conftest$ac_exeext
23381
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23382
 
  (eval $ac_link) 2>conftest.er1
 
14922
if { (ac_try="$ac_link"
 
14923
case "(($ac_try" in
 
14924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14925
  *) ac_try_echo=$ac_try;;
 
14926
esac
 
14927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14928
$as_echo "$ac_try_echo") >&5
 
14929
  (eval "$ac_link") 2>conftest.er1
23383
14930
  ac_status=$?
23384
14931
  grep -v '^ *+' conftest.er1 >conftest.err
23385
14932
  rm -f conftest.er1
23386
14933
  cat conftest.err >&5
23387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388
 
  (exit $ac_status); } &&
23389
 
         { ac_try='test -z "$ac_c_werror_flag"
23390
 
                         || test ! -s conftest.err'
23391
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392
 
  (eval $ac_try) 2>&5
23393
 
  ac_status=$?
23394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395
 
  (exit $ac_status); }; } &&
23396
 
         { ac_try='test -s conftest$ac_exeext'
23397
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398
 
  (eval $ac_try) 2>&5
23399
 
  ac_status=$?
23400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401
 
  (exit $ac_status); }; }; then
 
14934
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14935
  (exit $ac_status); } && {
 
14936
         test -z "$ac_c_werror_flag" ||
 
14937
         test ! -s conftest.err
 
14938
       } && test -s conftest$ac_exeext && {
 
14939
         test "$cross_compiling" = yes ||
 
14940
         $as_test_x conftest$ac_exeext
 
14941
       }; then
23402
14942
  am_cv_func_iconv=yes
23403
14943
else
23404
 
  echo "$as_me: failed program was:" >&5
 
14944
  $as_echo "$as_me: failed program was:" >&5
23405
14945
sed 's/^/| /' conftest.$ac_ext >&5
23406
14946
 
 
14947
 
23407
14948
fi
23408
 
rm -f conftest.err conftest.$ac_objext \
 
14949
 
 
14950
rm -rf conftest.dSYM
 
14951
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23409
14952
      conftest$ac_exeext conftest.$ac_ext
23410
14953
    if test "$am_cv_func_iconv" != yes; then
23411
14954
      am_save_LIBS="$LIBS"
23429
14972
}
23430
14973
_ACEOF
23431
14974
rm -f conftest.$ac_objext conftest$ac_exeext
23432
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23433
 
  (eval $ac_link) 2>conftest.er1
 
14975
if { (ac_try="$ac_link"
 
14976
case "(($ac_try" in
 
14977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14978
  *) ac_try_echo=$ac_try;;
 
14979
esac
 
14980
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14981
$as_echo "$ac_try_echo") >&5
 
14982
  (eval "$ac_link") 2>conftest.er1
23434
14983
  ac_status=$?
23435
14984
  grep -v '^ *+' conftest.er1 >conftest.err
23436
14985
  rm -f conftest.er1
23437
14986
  cat conftest.err >&5
23438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439
 
  (exit $ac_status); } &&
23440
 
         { ac_try='test -z "$ac_c_werror_flag"
23441
 
                         || test ! -s conftest.err'
23442
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443
 
  (eval $ac_try) 2>&5
23444
 
  ac_status=$?
23445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446
 
  (exit $ac_status); }; } &&
23447
 
         { ac_try='test -s conftest$ac_exeext'
23448
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449
 
  (eval $ac_try) 2>&5
23450
 
  ac_status=$?
23451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452
 
  (exit $ac_status); }; }; then
 
14987
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14988
  (exit $ac_status); } && {
 
14989
         test -z "$ac_c_werror_flag" ||
 
14990
         test ! -s conftest.err
 
14991
       } && test -s conftest$ac_exeext && {
 
14992
         test "$cross_compiling" = yes ||
 
14993
         $as_test_x conftest$ac_exeext
 
14994
       }; then
23453
14995
  am_cv_lib_iconv=yes
23454
14996
        am_cv_func_iconv=yes
23455
14997
else
23456
 
  echo "$as_me: failed program was:" >&5
 
14998
  $as_echo "$as_me: failed program was:" >&5
23457
14999
sed 's/^/| /' conftest.$ac_ext >&5
23458
15000
 
 
15001
 
23459
15002
fi
23460
 
rm -f conftest.err conftest.$ac_objext \
 
15003
 
 
15004
rm -rf conftest.dSYM
 
15005
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23461
15006
      conftest$ac_exeext conftest.$ac_ext
23462
15007
      LIBS="$am_save_LIBS"
23463
15008
    fi
23464
15009
 
23465
15010
fi
23466
 
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23467
 
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
15011
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
15012
$as_echo "$am_cv_func_iconv" >&6; }
23468
15013
  if test "$am_cv_func_iconv" = yes; then
 
15014
    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
 
15015
$as_echo_n "checking for working iconv... " >&6; }
 
15016
if test "${am_cv_func_iconv_works+set}" = set; then
 
15017
  $as_echo_n "(cached) " >&6
 
15018
else
 
15019
 
 
15020
            am_save_LIBS="$LIBS"
 
15021
      if test $am_cv_lib_iconv = yes; then
 
15022
        LIBS="$LIBS $LIBICONV"
 
15023
      fi
 
15024
      if test "$cross_compiling" = yes; then
 
15025
  case "$host_os" in
 
15026
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
15027
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
15028
         esac
 
15029
else
 
15030
  cat >conftest.$ac_ext <<_ACEOF
 
15031
/* confdefs.h.  */
 
15032
_ACEOF
 
15033
cat confdefs.h >>conftest.$ac_ext
 
15034
cat >>conftest.$ac_ext <<_ACEOF
 
15035
/* end confdefs.h.  */
 
15036
 
 
15037
#include <iconv.h>
 
15038
#include <string.h>
 
15039
int main ()
 
15040
{
 
15041
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
15042
     returns.  */
 
15043
  {
 
15044
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
15045
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
15046
      {
 
15047
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
15048
        char buf[10];
 
15049
        const char *inptr = input;
 
15050
        size_t inbytesleft = strlen (input);
 
15051
        char *outptr = buf;
 
15052
        size_t outbytesleft = sizeof (buf);
 
15053
        size_t res = iconv (cd_utf8_to_88591,
 
15054
                            (char **) &inptr, &inbytesleft,
 
15055
                            &outptr, &outbytesleft);
 
15056
        if (res == 0)
 
15057
          return 1;
 
15058
      }
 
15059
  }
 
15060
#if 0 /* This bug could be worked around by the caller.  */
 
15061
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
15062
  {
 
15063
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
15064
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
15065
      {
 
15066
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
15067
        char buf[50];
 
15068
        const char *inptr = input;
 
15069
        size_t inbytesleft = strlen (input);
 
15070
        char *outptr = buf;
 
15071
        size_t outbytesleft = sizeof (buf);
 
15072
        size_t res = iconv (cd_88591_to_utf8,
 
15073
                            (char **) &inptr, &inbytesleft,
 
15074
                            &outptr, &outbytesleft);
 
15075
        if ((int)res > 0)
 
15076
          return 1;
 
15077
      }
 
15078
  }
 
15079
#endif
 
15080
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
15081
     provided.  */
 
15082
  if (/* Try standardized names.  */
 
15083
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
15084
      /* Try IRIX, OSF/1 names.  */
 
15085
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
15086
      /* Try AIX names.  */
 
15087
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
15088
      /* Try HP-UX names.  */
 
15089
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
15090
    return 1;
 
15091
  return 0;
 
15092
}
 
15093
_ACEOF
 
15094
rm -f conftest$ac_exeext
 
15095
if { (ac_try="$ac_link"
 
15096
case "(($ac_try" in
 
15097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15098
  *) ac_try_echo=$ac_try;;
 
15099
esac
 
15100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15101
$as_echo "$ac_try_echo") >&5
 
15102
  (eval "$ac_link") 2>&5
 
15103
  ac_status=$?
 
15104
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15105
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15106
  { (case "(($ac_try" in
 
15107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15108
  *) ac_try_echo=$ac_try;;
 
15109
esac
 
15110
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15111
$as_echo "$ac_try_echo") >&5
 
15112
  (eval "$ac_try") 2>&5
 
15113
  ac_status=$?
 
15114
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15115
  (exit $ac_status); }; }; then
 
15116
  am_cv_func_iconv_works=yes
 
15117
else
 
15118
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
15119
$as_echo "$as_me: failed program was:" >&5
 
15120
sed 's/^/| /' conftest.$ac_ext >&5
 
15121
 
 
15122
( exit $ac_status )
 
15123
am_cv_func_iconv_works=no
 
15124
fi
 
15125
rm -rf conftest.dSYM
 
15126
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15127
fi
 
15128
 
 
15129
 
 
15130
      LIBS="$am_save_LIBS"
 
15131
 
 
15132
fi
 
15133
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
15134
$as_echo "$am_cv_func_iconv_works" >&6; }
 
15135
    case "$am_cv_func_iconv_works" in
 
15136
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
15137
      *)   am_func_iconv=yes ;;
 
15138
    esac
 
15139
  else
 
15140
    am_func_iconv=no am_cv_lib_iconv=no
 
15141
  fi
 
15142
  if test "$am_func_iconv" = yes; then
23469
15143
 
23470
15144
cat >>confdefs.h <<\_ACEOF
23471
15145
#define HAVE_ICONV 1
23473
15147
 
23474
15148
  fi
23475
15149
  if test "$am_cv_lib_iconv" = yes; then
23476
 
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23477
 
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23478
 
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
23479
 
echo "${ECHO_T}$LIBICONV" >&6
 
15150
    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
15151
$as_echo_n "checking how to link with libiconv... " >&6; }
 
15152
    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
15153
$as_echo "$LIBICONV" >&6; }
23480
15154
  else
23481
15155
            CPPFLAGS="$am_save_CPPFLAGS"
23482
15156
    LIBICONV=
23486
15160
 
23487
15161
 
23488
15162
  if test "$am_cv_func_iconv" = yes; then
23489
 
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
23490
 
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
15163
    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
15164
$as_echo_n "checking for iconv declaration... " >&6; }
23491
15165
    if test "${am_cv_proto_iconv+set}" = set; then
23492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15166
  $as_echo_n "(cached) " >&6
23493
15167
else
23494
15168
 
23495
15169
      cat >conftest.$ac_ext <<_ACEOF
23520
15194
}
23521
15195
_ACEOF
23522
15196
rm -f conftest.$ac_objext
23523
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23524
 
  (eval $ac_compile) 2>conftest.er1
 
15197
if { (ac_try="$ac_compile"
 
15198
case "(($ac_try" in
 
15199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15200
  *) ac_try_echo=$ac_try;;
 
15201
esac
 
15202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15203
$as_echo "$ac_try_echo") >&5
 
15204
  (eval "$ac_compile") 2>conftest.er1
23525
15205
  ac_status=$?
23526
15206
  grep -v '^ *+' conftest.er1 >conftest.err
23527
15207
  rm -f conftest.er1
23528
15208
  cat conftest.err >&5
23529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530
 
  (exit $ac_status); } &&
23531
 
         { ac_try='test -z "$ac_c_werror_flag"
23532
 
                         || test ! -s conftest.err'
23533
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534
 
  (eval $ac_try) 2>&5
23535
 
  ac_status=$?
23536
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537
 
  (exit $ac_status); }; } &&
23538
 
         { ac_try='test -s conftest.$ac_objext'
23539
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540
 
  (eval $ac_try) 2>&5
23541
 
  ac_status=$?
23542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543
 
  (exit $ac_status); }; }; then
 
15209
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15210
  (exit $ac_status); } && {
 
15211
         test -z "$ac_c_werror_flag" ||
 
15212
         test ! -s conftest.err
 
15213
       } && test -s conftest.$ac_objext; then
23544
15214
  am_cv_proto_iconv_arg1=""
23545
15215
else
23546
 
  echo "$as_me: failed program was:" >&5
 
15216
  $as_echo "$as_me: failed program was:" >&5
23547
15217
sed 's/^/| /' conftest.$ac_ext >&5
23548
15218
 
23549
 
am_cv_proto_iconv_arg1="const"
 
15219
        am_cv_proto_iconv_arg1="const"
23550
15220
fi
23551
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15221
 
 
15222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552
15223
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
23553
15224
fi
23554
15225
 
23555
15226
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23556
 
    echo "$as_me:$LINENO: result: ${ac_t:-
 
15227
    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23557
15228
         }$am_cv_proto_iconv" >&5
23558
 
echo "${ECHO_T}${ac_t:-
23559
 
         }$am_cv_proto_iconv" >&6
 
15229
$as_echo "${ac_t:-
 
15230
         }$am_cv_proto_iconv" >&6; }
23560
15231
 
23561
15232
cat >>confdefs.h <<_ACEOF
23562
15233
#define ICONV_CONST $am_cv_proto_iconv_arg1
23585
15256
        for MOPT in $MAINTAINER_CFLAGS; do
23586
15257
            SAVE_CFLAGS="$CFLAGS"
23587
15258
            CFLAGS="$CFLAGS $MOPT"
23588
 
            echo "$as_me:$LINENO: checking whether $CC accepts $MOPT" >&5
23589
 
echo $ECHO_N "checking whether $CC accepts $MOPT... $ECHO_C" >&6
 
15259
            { $as_echo "$as_me:$LINENO: checking whether $CC accepts $MOPT" >&5
 
15260
$as_echo_n "checking whether $CC accepts $MOPT... " >&6; }
23590
15261
            cat >conftest.$ac_ext <<_ACEOF
23591
15262
/* confdefs.h.  */
23592
15263
_ACEOF
23603
15274
}
23604
15275
_ACEOF
23605
15276
rm -f conftest.$ac_objext
23606
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23607
 
  (eval $ac_compile) 2>conftest.er1
 
15277
if { (ac_try="$ac_compile"
 
15278
case "(($ac_try" in
 
15279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15280
  *) ac_try_echo=$ac_try;;
 
15281
esac
 
15282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15283
$as_echo "$ac_try_echo") >&5
 
15284
  (eval "$ac_compile") 2>conftest.er1
23608
15285
  ac_status=$?
23609
15286
  grep -v '^ *+' conftest.er1 >conftest.err
23610
15287
  rm -f conftest.er1
23611
15288
  cat conftest.err >&5
23612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613
 
  (exit $ac_status); } &&
23614
 
         { ac_try='test -z "$ac_c_werror_flag"
23615
 
                         || test ! -s conftest.err'
23616
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617
 
  (eval $ac_try) 2>&5
23618
 
  ac_status=$?
23619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620
 
  (exit $ac_status); }; } &&
23621
 
         { ac_try='test -s conftest.$ac_objext'
23622
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623
 
  (eval $ac_try) 2>&5
23624
 
  ac_status=$?
23625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626
 
  (exit $ac_status); }; }; then
 
15289
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15290
  (exit $ac_status); } && {
 
15291
         test -z "$ac_c_werror_flag" ||
 
15292
         test ! -s conftest.err
 
15293
       } && test -s conftest.$ac_objext; then
23627
15294
  has_option=yes
23628
15295
else
23629
 
  echo "$as_me: failed program was:" >&5
 
15296
  $as_echo "$as_me: failed program was:" >&5
23630
15297
sed 's/^/| /' conftest.$ac_ext >&5
23631
15298
 
23632
 
has_option=no
 
15299
        has_option=no
23633
15300
fi
23634
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15301
 
 
15302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23635
15303
            CFLAGS="$SAVE_CFLAGS"
23636
 
            echo "$as_me:$LINENO: result: $has_option" >&5
23637
 
echo "${ECHO_T}$has_option" >&6
 
15304
            { $as_echo "$as_me:$LINENO: result: $has_option" >&5
 
15305
$as_echo "$has_option" >&6; }
23638
15306
            if test "x$has_option" = "xyes"; then
23639
15307
                maintainer_flags="$maintainer_flags $MOPT"
23640
15308
            fi
23652
15320
    for WOPT in $WARN_CFLAGS; do
23653
15321
        SAVE_CFLAGS="$CFLAGS"
23654
15322
        CFLAGS="$CFLAGS $WOPT"
23655
 
        echo "$as_me:$LINENO: checking whether $CC accepts $WOPT" >&5
23656
 
echo $ECHO_N "checking whether $CC accepts $WOPT... $ECHO_C" >&6
 
15323
        { $as_echo "$as_me:$LINENO: checking whether $CC accepts $WOPT" >&5
 
15324
$as_echo_n "checking whether $CC accepts $WOPT... " >&6; }
23657
15325
        cat >conftest.$ac_ext <<_ACEOF
23658
15326
/* confdefs.h.  */
23659
15327
_ACEOF
23670
15338
}
23671
15339
_ACEOF
23672
15340
rm -f conftest.$ac_objext
23673
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23674
 
  (eval $ac_compile) 2>conftest.er1
 
15341
if { (ac_try="$ac_compile"
 
15342
case "(($ac_try" in
 
15343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15344
  *) ac_try_echo=$ac_try;;
 
15345
esac
 
15346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15347
$as_echo "$ac_try_echo") >&5
 
15348
  (eval "$ac_compile") 2>conftest.er1
23675
15349
  ac_status=$?
23676
15350
  grep -v '^ *+' conftest.er1 >conftest.err
23677
15351
  rm -f conftest.er1
23678
15352
  cat conftest.err >&5
23679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680
 
  (exit $ac_status); } &&
23681
 
         { ac_try='test -z "$ac_c_werror_flag"
23682
 
                         || test ! -s conftest.err'
23683
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684
 
  (eval $ac_try) 2>&5
23685
 
  ac_status=$?
23686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687
 
  (exit $ac_status); }; } &&
23688
 
         { ac_try='test -s conftest.$ac_objext'
23689
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690
 
  (eval $ac_try) 2>&5
23691
 
  ac_status=$?
23692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693
 
  (exit $ac_status); }; }; then
 
15353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15354
  (exit $ac_status); } && {
 
15355
         test -z "$ac_c_werror_flag" ||
 
15356
         test ! -s conftest.err
 
15357
       } && test -s conftest.$ac_objext; then
23694
15358
  has_option=yes
23695
15359
else
23696
 
  echo "$as_me: failed program was:" >&5
 
15360
  $as_echo "$as_me: failed program was:" >&5
23697
15361
sed 's/^/| /' conftest.$ac_ext >&5
23698
15362
 
23699
 
has_option=no
 
15363
        has_option=no
23700
15364
fi
23701
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15365
 
 
15366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23702
15367
        CFLAGS="$SAVE_CFLAGS"
23703
 
        echo "$as_me:$LINENO: result: $has_option" >&5
23704
 
echo "${ECHO_T}$has_option" >&6
 
15368
        { $as_echo "$as_me:$LINENO: result: $has_option" >&5
 
15369
$as_echo "$has_option" >&6; }
23705
15370
        if test "x$has_option" = "xyes"; then
23706
15371
            warning_flags="$warning_flags $WOPT"
23707
15372
        fi
23714
15379
fi
23715
15380
CFLAGS="$CFLAGS $WARN_CFLAGS $MAINTAINER_CFLAGS"
23716
15381
 
 
15382
case $host in
 
15383
    *mingw*)
 
15384
        LIBS="$LIBS -lws2_32 -lregex"
 
15385
        ;;
 
15386
    *)
 
15387
        ;;
 
15388
esac
 
15389
 
23717
15390
cat >confcache <<\_ACEOF
23718
15391
# This file is a shell script that caches the results of configure
23719
15392
# tests run on this system so they can be shared between configure
23732
15405
 
23733
15406
# The following way of writing the cache mishandles newlines in values,
23734
15407
# but we know of no workaround that is simple, portable, and efficient.
23735
 
# So, don't put newlines in cache variables' values.
 
15408
# So, we kill variables containing newlines.
23736
15409
# Ultrix sh set writes to stderr and can't be redirected directly,
23737
15410
# and sets the high bit in the cache file unless we assign to the vars.
23738
 
{
 
15411
(
 
15412
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
15413
    eval ac_val=\$$ac_var
 
15414
    case $ac_val in #(
 
15415
    *${as_nl}*)
 
15416
      case $ac_var in #(
 
15417
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
15418
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
15419
      esac
 
15420
      case $ac_var in #(
 
15421
      _ | IFS | as_nl) ;; #(
 
15422
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
15423
      *) $as_unset $ac_var ;;
 
15424
      esac ;;
 
15425
    esac
 
15426
  done
 
15427
 
23739
15428
  (set) 2>&1 |
23740
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23741
 
    *ac_space=\ *)
 
15429
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
15430
    *${as_nl}ac_space=\ *)
23742
15431
      # `set' does not quote correctly, so add quotes (double-quote
23743
15432
      # substitution turns \\\\ into \\, and sed turns \\ into \).
23744
15433
      sed -n \
23745
15434
        "s/'/'\\\\''/g;
23746
15435
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23747
 
      ;;
 
15436
      ;; #(
23748
15437
    *)
23749
15438
      # `set' quotes correctly as required by POSIX, so do not add quotes.
23750
 
      sed -n \
23751
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
15439
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23752
15440
      ;;
23753
 
    esac;
23754
 
} |
 
15441
    esac |
 
15442
    sort
 
15443
) |
23755
15444
  sed '
 
15445
     /^ac_cv_env_/b end
23756
15446
     t clear
23757
 
     : clear
 
15447
     :clear
23758
15448
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23759
15449
     t end
23760
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23761
 
     : end' >>confcache
23762
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
23763
 
  if test -w $cache_file; then
23764
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
15450
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
15451
     :end' >>confcache
 
15452
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
15453
  if test -w "$cache_file"; then
 
15454
    test "x$cache_file" != "x/dev/null" &&
 
15455
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
15456
$as_echo "$as_me: updating cache $cache_file" >&6;}
23765
15457
    cat confcache >$cache_file
23766
15458
  else
23767
 
    echo "not updating unwritable cache $cache_file"
 
15459
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
15460
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23768
15461
  fi
23769
15462
fi
23770
15463
rm -f confcache
23773
15466
# Let make expand exec_prefix.
23774
15467
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23775
15468
 
23776
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23777
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23778
 
# trailing colons and then remove the whole line if VPATH becomes empty
23779
 
# (actually we leave an empty line to preserve line numbers).
23780
 
if test "x$srcdir" = x.; then
23781
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
23782
 
s/:*\$(srcdir):*/:/;
23783
 
s/:*\${srcdir}:*/:/;
23784
 
s/:*@srcdir@:*/:/;
23785
 
s/^\([^=]*=[     ]*\):*/\1/;
23786
 
s/:*$//;
23787
 
s/^[^=]*=[       ]*$//;
23788
 
}'
23789
 
fi
23790
 
 
23791
15469
DEFS=-DHAVE_CONFIG_H
23792
15470
 
23793
15471
ac_libobjs=
23794
15472
ac_ltlibobjs=
23795
15473
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23796
15474
  # 1. Remove the extension, and $U if already installed.
23797
 
  ac_i=`echo "$ac_i" |
23798
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23799
 
  # 2. Add them.
23800
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23801
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
15475
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
15476
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
15477
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
15478
  #    will be set to the directory where LIBOBJS objects are built.
 
15479
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
15480
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23802
15481
done
23803
15482
LIBOBJS=$ac_libobjs
23804
15483
 
23806
15485
 
23807
15486
 
23808
15487
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23809
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
15488
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23810
15489
Usually this means the macro was only invoked conditionally." >&5
23811
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
15490
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23812
15491
Usually this means the macro was only invoked conditionally." >&2;}
23813
15492
   { (exit 1); exit 1; }; }
23814
15493
fi
23815
15494
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23816
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
15495
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23817
15496
Usually this means the macro was only invoked conditionally." >&5
23818
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
15497
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23819
15498
Usually this means the macro was only invoked conditionally." >&2;}
23820
15499
   { (exit 1); exit 1; }; }
23821
15500
fi
23822
15501
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23823
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23824
 
Usually this means the macro was only invoked conditionally." >&5
23825
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23826
 
Usually this means the macro was only invoked conditionally." >&2;}
23827
 
   { (exit 1); exit 1; }; }
23828
 
fi
23829
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23830
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23831
 
Usually this means the macro was only invoked conditionally." >&5
23832
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
15502
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
15503
Usually this means the macro was only invoked conditionally." >&5
 
15504
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23833
15505
Usually this means the macro was only invoked conditionally." >&2;}
23834
15506
   { (exit 1); exit 1; }; }
23835
15507
fi
23836
15508
 
23837
15509
: ${CONFIG_STATUS=./config.status}
 
15510
ac_write_fail=0
23838
15511
ac_clean_files_save=$ac_clean_files
23839
15512
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23840
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23841
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23842
 
cat >$CONFIG_STATUS <<_ACEOF
 
15513
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
15514
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
15515
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23843
15516
#! $SHELL
23844
15517
# Generated by $as_me.
23845
15518
# Run this file to recreate the current configuration.
23852
15525
SHELL=\${CONFIG_SHELL-$SHELL}
23853
15526
_ACEOF
23854
15527
 
23855
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
15528
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23856
15529
## --------------------- ##
23857
15530
## M4sh Initialization.  ##
23858
15531
## --------------------- ##
23859
15532
 
23860
 
# Be Bourne compatible
 
15533
# Be more Bourne compatible
 
15534
DUALCASE=1; export DUALCASE # for MKS sh
23861
15535
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23862
15536
  emulate sh
23863
15537
  NULLCMD=:
23864
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
15538
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23865
15539
  # is contrary to our usage.  Disable this feature.
23866
15540
  alias -g '${1+"$@"}'='"$@"'
23867
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23868
 
  set -o posix
23869
 
fi
23870
 
DUALCASE=1; export DUALCASE # for MKS sh
 
15541
  setopt NO_GLOB_SUBST
 
15542
else
 
15543
  case `(set -o) 2>/dev/null` in
 
15544
  *posix*) set -o posix ;;
 
15545
esac
 
15546
 
 
15547
fi
 
15548
 
 
15549
 
 
15550
 
 
15551
 
 
15552
# PATH needs CR
 
15553
# Avoid depending upon Character Ranges.
 
15554
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
15555
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
15556
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
15557
as_cr_digits='0123456789'
 
15558
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
15559
 
 
15560
as_nl='
 
15561
'
 
15562
export as_nl
 
15563
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
15564
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
15565
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
15566
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
15567
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
15568
  as_echo='printf %s\n'
 
15569
  as_echo_n='printf %s'
 
15570
else
 
15571
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
15572
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
15573
    as_echo_n='/usr/ucb/echo -n'
 
15574
  else
 
15575
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
15576
    as_echo_n_body='eval
 
15577
      arg=$1;
 
15578
      case $arg in
 
15579
      *"$as_nl"*)
 
15580
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
15581
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
15582
      esac;
 
15583
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
15584
    '
 
15585
    export as_echo_n_body
 
15586
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
15587
  fi
 
15588
  export as_echo_body
 
15589
  as_echo='sh -c $as_echo_body as_echo'
 
15590
fi
 
15591
 
 
15592
# The user is always right.
 
15593
if test "${PATH_SEPARATOR+set}" != set; then
 
15594
  PATH_SEPARATOR=:
 
15595
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
15596
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
15597
      PATH_SEPARATOR=';'
 
15598
  }
 
15599
fi
23871
15600
 
23872
15601
# Support unset when possible.
23873
15602
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23877
15606
fi
23878
15607
 
23879
15608
 
 
15609
# IFS
 
15610
# We need space, tab and new line, in precisely that order.  Quoting is
 
15611
# there to prevent editors from complaining about space-tab.
 
15612
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
15613
# splitting by setting IFS to empty value.)
 
15614
IFS=" ""        $as_nl"
 
15615
 
 
15616
# Find who we are.  Look in the path if we contain no directory separator.
 
15617
case $0 in
 
15618
  *[\\/]* ) as_myself=$0 ;;
 
15619
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15620
for as_dir in $PATH
 
15621
do
 
15622
  IFS=$as_save_IFS
 
15623
  test -z "$as_dir" && as_dir=.
 
15624
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
15625
done
 
15626
IFS=$as_save_IFS
 
15627
 
 
15628
     ;;
 
15629
esac
 
15630
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
15631
# in which case we are not to be found in the path.
 
15632
if test "x$as_myself" = x; then
 
15633
  as_myself=$0
 
15634
fi
 
15635
if test ! -f "$as_myself"; then
 
15636
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
15637
  { (exit 1); exit 1; }
 
15638
fi
 
15639
 
23880
15640
# Work around bugs in pre-3.0 UWIN ksh.
23881
 
$as_unset ENV MAIL MAILPATH
 
15641
for as_var in ENV MAIL MAILPATH
 
15642
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
15643
done
23882
15644
PS1='$ '
23883
15645
PS2='> '
23884
15646
PS4='+ '
23885
15647
 
23886
15648
# NLS nuisances.
23887
 
for as_var in \
23888
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23889
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23890
 
  LC_TELEPHONE LC_TIME
23891
 
do
23892
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23893
 
    eval $as_var=C; export $as_var
23894
 
  else
23895
 
    $as_unset $as_var
23896
 
  fi
23897
 
done
 
15649
LC_ALL=C
 
15650
export LC_ALL
 
15651
LANGUAGE=C
 
15652
export LANGUAGE
23898
15653
 
23899
15654
# Required to use basename.
23900
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
15655
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
15656
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23901
15657
  as_expr=expr
23902
15658
else
23903
15659
  as_expr=false
23904
15660
fi
23905
15661
 
23906
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
15662
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23907
15663
  as_basename=basename
23908
15664
else
23909
15665
  as_basename=false
23911
15667
 
23912
15668
 
23913
15669
# Name of the executable.
23914
 
as_me=`$as_basename "$0" ||
 
15670
as_me=`$as_basename -- "$0" ||
23915
15671
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23916
15672
         X"$0" : 'X\(//\)$' \| \
23917
 
         X"$0" : 'X\(/\)$' \| \
23918
 
         .     : '\(.\)' 2>/dev/null ||
23919
 
echo X/"$0" |
23920
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23921
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
23922
 
          /^X\/\(\/\).*/{ s//\1/; q; }
23923
 
          s/.*/./; q'`
23924
 
 
23925
 
 
23926
 
# PATH needs CR, and LINENO needs CR and PATH.
23927
 
# Avoid depending upon Character Ranges.
23928
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23929
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23930
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23931
 
as_cr_digits='0123456789'
23932
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
23933
 
 
23934
 
# The user is always right.
23935
 
if test "${PATH_SEPARATOR+set}" != set; then
23936
 
  echo "#! /bin/sh" >conf$$.sh
23937
 
  echo  "exit 0"   >>conf$$.sh
23938
 
  chmod +x conf$$.sh
23939
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23940
 
    PATH_SEPARATOR=';'
23941
 
  else
23942
 
    PATH_SEPARATOR=:
23943
 
  fi
23944
 
  rm -f conf$$.sh
23945
 
fi
23946
 
 
23947
 
 
23948
 
  as_lineno_1=$LINENO
23949
 
  as_lineno_2=$LINENO
23950
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23951
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
23952
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23953
 
  # Find who we are.  Look in the path if we contain no path at all
23954
 
  # relative or not.
23955
 
  case $0 in
23956
 
    *[\\/]* ) as_myself=$0 ;;
23957
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23958
 
for as_dir in $PATH
23959
 
do
23960
 
  IFS=$as_save_IFS
23961
 
  test -z "$as_dir" && as_dir=.
23962
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23963
 
done
23964
 
 
23965
 
       ;;
23966
 
  esac
23967
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
23968
 
  # in which case we are not to be found in the path.
23969
 
  if test "x$as_myself" = x; then
23970
 
    as_myself=$0
23971
 
  fi
23972
 
  if test ! -f "$as_myself"; then
23973
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23974
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23975
 
   { (exit 1); exit 1; }; }
23976
 
  fi
23977
 
  case $CONFIG_SHELL in
23978
 
  '')
23979
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23980
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23981
 
do
23982
 
  IFS=$as_save_IFS
23983
 
  test -z "$as_dir" && as_dir=.
23984
 
  for as_base in sh bash ksh sh5; do
23985
 
         case $as_dir in
23986
 
         /*)
23987
 
           if ("$as_dir/$as_base" -c '
23988
 
  as_lineno_1=$LINENO
23989
 
  as_lineno_2=$LINENO
23990
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23991
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
23992
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23993
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23994
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23995
 
             CONFIG_SHELL=$as_dir/$as_base
23996
 
             export CONFIG_SHELL
23997
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23998
 
           fi;;
23999
 
         esac
24000
 
       done
24001
 
done
24002
 
;;
24003
 
  esac
 
15673
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
15674
$as_echo X/"$0" |
 
15675
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
15676
            s//\1/
 
15677
            q
 
15678
          }
 
15679
          /^X\/\(\/\/\)$/{
 
15680
            s//\1/
 
15681
            q
 
15682
          }
 
15683
          /^X\/\(\/\).*/{
 
15684
            s//\1/
 
15685
            q
 
15686
          }
 
15687
          s/.*/./; q'`
 
15688
 
 
15689
# CDPATH.
 
15690
$as_unset CDPATH
 
15691
 
 
15692
 
 
15693
 
 
15694
  as_lineno_1=$LINENO
 
15695
  as_lineno_2=$LINENO
 
15696
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
15697
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24004
15698
 
24005
15699
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24006
15700
  # uniformly replaced by the line number.  The first 'sed' inserts a
24007
 
  # line-number line before each line; the second 'sed' does the real
24008
 
  # work.  The second script uses 'N' to pair each line-number line
24009
 
  # with the numbered line, and appends trailing '-' during
24010
 
  # substitution so that $LINENO is not a special case at line end.
 
15701
  # line-number line after each line using $LINENO; the second 'sed'
 
15702
  # does the real work.  The second script uses 'N' to pair each
 
15703
  # line-number line with the line containing $LINENO, and appends
 
15704
  # trailing '-' during substitution so that $LINENO is not a special
 
15705
  # case at line end.
24011
15706
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24012
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24013
 
  sed '=' <$as_myself |
 
15707
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
15708
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
15709
  sed -n '
 
15710
    p
 
15711
    /[$]LINENO/=
 
15712
  ' <$as_myself |
24014
15713
    sed '
 
15714
      s/[$]LINENO.*/&-/
 
15715
      t lineno
 
15716
      b
 
15717
      :lineno
24015
15718
      N
24016
 
      s,$,-,
24017
 
      : loop
24018
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
15719
      :loop
 
15720
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24019
15721
      t loop
24020
 
      s,-$,,
24021
 
      s,^['$as_cr_digits']*\n,,
 
15722
      s/-\n.*//
24022
15723
    ' >$as_me.lineno &&
24023
 
  chmod +x $as_me.lineno ||
24024
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24025
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
15724
  chmod +x "$as_me.lineno" ||
 
15725
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24026
15726
   { (exit 1); exit 1; }; }
24027
15727
 
24028
15728
  # Don't try to exec as it changes $[0], causing all sort of problems
24029
15729
  # (the dirname of $[0] is not the place where we might find the
24030
 
  # original and so on.  Autoconf is especially sensible to this).
24031
 
  . ./$as_me.lineno
 
15730
  # original and so on.  Autoconf is especially sensitive to this).
 
15731
  . "./$as_me.lineno"
24032
15732
  # Exit status is that of the last command.
24033
15733
  exit
24034
15734
}
24035
15735
 
24036
15736
 
24037
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24038
 
  *c*,-n*) ECHO_N= ECHO_C='
24039
 
' ECHO_T='      ' ;;
24040
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24041
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
15737
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
15738
  as_dirname=dirname
 
15739
else
 
15740
  as_dirname=false
 
15741
fi
 
15742
 
 
15743
ECHO_C= ECHO_N= ECHO_T=
 
15744
case `echo -n x` in
 
15745
-n*)
 
15746
  case `echo 'x\c'` in
 
15747
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
15748
  *)   ECHO_C='\c';;
 
15749
  esac;;
 
15750
*)
 
15751
  ECHO_N='-n';;
24042
15752
esac
24043
 
 
24044
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
15753
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
15754
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24045
15755
  as_expr=expr
24046
15756
else
24047
15757
  as_expr=false
24048
15758
fi
24049
15759
 
24050
15760
rm -f conf$$ conf$$.exe conf$$.file
24051
 
echo >conf$$.file
24052
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
24053
 
  # We could just check for DJGPP; but this test a) works b) is more generic
24054
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24055
 
  if test -f conf$$.exe; then
24056
 
    # Don't use ln at all; we don't have any links
 
15761
if test -d conf$$.dir; then
 
15762
  rm -f conf$$.dir/conf$$.file
 
15763
else
 
15764
  rm -f conf$$.dir
 
15765
  mkdir conf$$.dir 2>/dev/null
 
15766
fi
 
15767
if (echo >conf$$.file) 2>/dev/null; then
 
15768
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
15769
    as_ln_s='ln -s'
 
15770
    # ... but there are two gotchas:
 
15771
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
15772
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
15773
    # In both cases, we have to default to `cp -p'.
 
15774
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
15775
      as_ln_s='cp -p'
 
15776
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
15777
    as_ln_s=ln
 
15778
  else
24057
15779
    as_ln_s='cp -p'
24058
 
  else
24059
 
    as_ln_s='ln -s'
24060
15780
  fi
24061
 
elif ln conf$$.file conf$$ 2>/dev/null; then
24062
 
  as_ln_s=ln
24063
15781
else
24064
15782
  as_ln_s='cp -p'
24065
15783
fi
24066
 
rm -f conf$$ conf$$.exe conf$$.file
 
15784
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
15785
rmdir conf$$.dir 2>/dev/null
24067
15786
 
24068
15787
if mkdir -p . 2>/dev/null; then
24069
15788
  as_mkdir_p=:
24072
15791
  as_mkdir_p=false
24073
15792
fi
24074
15793
 
24075
 
as_executable_p="test -f"
 
15794
if test -x / >/dev/null 2>&1; then
 
15795
  as_test_x='test -x'
 
15796
else
 
15797
  if ls -dL / >/dev/null 2>&1; then
 
15798
    as_ls_L_option=L
 
15799
  else
 
15800
    as_ls_L_option=
 
15801
  fi
 
15802
  as_test_x='
 
15803
    eval sh -c '\''
 
15804
      if test -d "$1"; then
 
15805
        test -d "$1/.";
 
15806
      else
 
15807
        case $1 in
 
15808
        -*)set "./$1";;
 
15809
        esac;
 
15810
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
15811
        ???[sx]*):;;*)false;;esac;fi
 
15812
    '\'' sh
 
15813
  '
 
15814
fi
 
15815
as_executable_p=$as_test_x
24076
15816
 
24077
15817
# Sed expression to map a string onto a valid CPP name.
24078
15818
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24081
15821
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24082
15822
 
24083
15823
 
24084
 
# IFS
24085
 
# We need space, tab and new line, in precisely that order.
24086
 
as_nl='
24087
 
'
24088
 
IFS="   $as_nl"
24089
 
 
24090
 
# CDPATH.
24091
 
$as_unset CDPATH
24092
 
 
24093
15824
exec 6>&1
24094
15825
 
24095
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
15826
# Save the log message, to keep $[0] and so on meaningful, and to
24096
15827
# report actual input values of CONFIG_FILES etc. instead of their
24097
 
# values after options handling.  Logging --version etc. is OK.
24098
 
exec 5>>config.log
24099
 
{
24100
 
  echo
24101
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24102
 
## Running $as_me. ##
24103
 
_ASBOX
24104
 
} >&5
24105
 
cat >&5 <<_CSEOF
24106
 
 
24107
 
This file was extended by libcddb $as_me 1.2.1, which was
24108
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
15828
# values after options handling.
 
15829
ac_log="
 
15830
This file was extended by libcddb $as_me 1.3.2, which was
 
15831
generated by GNU Autoconf 2.63.  Invocation command line was
24109
15832
 
24110
15833
  CONFIG_FILES    = $CONFIG_FILES
24111
15834
  CONFIG_HEADERS  = $CONFIG_HEADERS
24113
15836
  CONFIG_COMMANDS = $CONFIG_COMMANDS
24114
15837
  $ $0 $@
24115
15838
 
24116
 
_CSEOF
24117
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24118
 
echo >&5
 
15839
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
15840
"
 
15841
 
24119
15842
_ACEOF
24120
15843
 
 
15844
case $ac_config_files in *"
 
15845
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
15846
esac
 
15847
 
 
15848
case $ac_config_headers in *"
 
15849
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
15850
esac
 
15851
 
 
15852
 
 
15853
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24121
15854
# Files that config.status was made for.
24122
 
if test -n "$ac_config_files"; then
24123
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24124
 
fi
24125
 
 
24126
 
if test -n "$ac_config_headers"; then
24127
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24128
 
fi
24129
 
 
24130
 
if test -n "$ac_config_links"; then
24131
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24132
 
fi
24133
 
 
24134
 
if test -n "$ac_config_commands"; then
24135
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24136
 
fi
24137
 
 
24138
 
cat >>$CONFIG_STATUS <<\_ACEOF
24139
 
 
 
15855
config_files="$ac_config_files"
 
15856
config_headers="$ac_config_headers"
 
15857
config_commands="$ac_config_commands"
 
15858
 
 
15859
_ACEOF
 
15860
 
 
15861
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24140
15862
ac_cs_usage="\
24141
15863
\`$as_me' instantiates files from templates according to the
24142
15864
current configuration.
24143
15865
 
24144
 
Usage: $0 [OPTIONS] [FILE]...
 
15866
Usage: $0 [OPTION]... [FILE]...
24145
15867
 
24146
15868
  -h, --help       print this help, then exit
24147
 
  -V, --version    print version number, then exit
24148
 
  -q, --quiet      do not print progress messages
 
15869
  -V, --version    print version number and configuration settings, then exit
 
15870
  -q, --quiet, --silent
 
15871
                   do not print progress messages
24149
15872
  -d, --debug      don't remove temporary files
24150
15873
      --recheck    update $as_me by reconfiguring in the same conditions
24151
 
  --file=FILE[:TEMPLATE]
24152
 
                   instantiate the configuration file FILE
24153
 
  --header=FILE[:TEMPLATE]
24154
 
                   instantiate the configuration header FILE
 
15874
      --file=FILE[:TEMPLATE]
 
15875
                   instantiate the configuration file FILE
 
15876
      --header=FILE[:TEMPLATE]
 
15877
                   instantiate the configuration header FILE
24155
15878
 
24156
15879
Configuration files:
24157
15880
$config_files
24163
15886
$config_commands
24164
15887
 
24165
15888
Report bugs to <bug-autoconf@gnu.org>."
 
15889
 
24166
15890
_ACEOF
24167
 
 
24168
 
cat >>$CONFIG_STATUS <<_ACEOF
 
15891
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24169
15892
ac_cs_version="\\
24170
 
libcddb config.status 1.2.1
24171
 
configured by $0, generated by GNU Autoconf 2.59,
24172
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
15893
libcddb config.status 1.3.2
 
15894
configured by $0, generated by GNU Autoconf 2.63,
 
15895
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24173
15896
 
24174
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
15897
Copyright (C) 2008 Free Software Foundation, Inc.
24175
15898
This config.status script is free software; the Free Software Foundation
24176
15899
gives unlimited permission to copy, distribute and modify it."
24177
 
srcdir=$srcdir
24178
 
INSTALL="$INSTALL"
 
15900
 
 
15901
ac_pwd='$ac_pwd'
 
15902
srcdir='$srcdir'
 
15903
INSTALL='$INSTALL'
 
15904
MKDIR_P='$MKDIR_P'
 
15905
AWK='$AWK'
 
15906
test -n "\$AWK" || AWK=awk
24179
15907
_ACEOF
24180
15908
 
24181
 
cat >>$CONFIG_STATUS <<\_ACEOF
24182
 
# If no file are specified by the user, then we need to provide default
24183
 
# value.  By we need to know if files were specified by the user.
 
15909
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15910
# The default lists apply if the user does not specify any file.
24184
15911
ac_need_defaults=:
24185
15912
while test $# != 0
24186
15913
do
24187
15914
  case $1 in
24188
15915
  --*=*)
24189
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
24190
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
15916
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
15917
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24191
15918
    ac_shift=:
24192
15919
    ;;
24193
 
  -*)
 
15920
  *)
24194
15921
    ac_option=$1
24195
15922
    ac_optarg=$2
24196
15923
    ac_shift=shift
24197
15924
    ;;
24198
 
  *) # This is not an option, so the user has probably given explicit
24199
 
     # arguments.
24200
 
     ac_option=$1
24201
 
     ac_need_defaults=false;;
24202
15925
  esac
24203
15926
 
24204
15927
  case $ac_option in
24205
15928
  # Handling of the options.
24206
 
_ACEOF
24207
 
cat >>$CONFIG_STATUS <<\_ACEOF
24208
15929
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24209
15930
    ac_cs_recheck=: ;;
24210
 
  --version | --vers* | -V )
24211
 
    echo "$ac_cs_version"; exit 0 ;;
 
15931
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
15932
    $as_echo "$ac_cs_version"; exit ;;
 
15933
  --debug | --debu | --deb | --de | --d | -d )
 
15934
    debug=: ;;
 
15935
  --file | --fil | --fi | --f )
 
15936
    $ac_shift
 
15937
    case $ac_optarg in
 
15938
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15939
    esac
 
15940
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
15941
    ac_need_defaults=false;;
 
15942
  --header | --heade | --head | --hea )
 
15943
    $ac_shift
 
15944
    case $ac_optarg in
 
15945
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15946
    esac
 
15947
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
15948
    ac_need_defaults=false;;
24212
15949
  --he | --h)
24213
15950
    # Conflict between --help and --header
24214
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
24215
 
Try \`$0 --help' for more information." >&5
24216
 
echo "$as_me: error: ambiguous option: $1
24217
 
Try \`$0 --help' for more information." >&2;}
 
15951
    { $as_echo "$as_me: error: ambiguous option: $1
 
15952
Try \`$0 --help' for more information." >&2
24218
15953
   { (exit 1); exit 1; }; };;
24219
15954
  --help | --hel | -h )
24220
 
    echo "$ac_cs_usage"; exit 0 ;;
24221
 
  --debug | --d* | -d )
24222
 
    debug=: ;;
24223
 
  --file | --fil | --fi | --f )
24224
 
    $ac_shift
24225
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24226
 
    ac_need_defaults=false;;
24227
 
  --header | --heade | --head | --hea )
24228
 
    $ac_shift
24229
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24230
 
    ac_need_defaults=false;;
 
15955
    $as_echo "$ac_cs_usage"; exit ;;
24231
15956
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24232
15957
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24233
15958
    ac_cs_silent=: ;;
24234
15959
 
24235
15960
  # This is an error.
24236
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24237
 
Try \`$0 --help' for more information." >&5
24238
 
echo "$as_me: error: unrecognized option: $1
24239
 
Try \`$0 --help' for more information." >&2;}
 
15961
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
15962
Try \`$0 --help' for more information." >&2
24240
15963
   { (exit 1); exit 1; }; } ;;
24241
15964
 
24242
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
15965
  *) ac_config_targets="$ac_config_targets $1"
 
15966
     ac_need_defaults=false ;;
24243
15967
 
24244
15968
  esac
24245
15969
  shift
24253
15977
fi
24254
15978
 
24255
15979
_ACEOF
24256
 
cat >>$CONFIG_STATUS <<_ACEOF
 
15980
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24257
15981
if \$ac_cs_recheck; then
24258
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24259
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15982
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15983
  shift
 
15984
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
15985
  CONFIG_SHELL='$SHELL'
 
15986
  export CONFIG_SHELL
 
15987
  exec "\$@"
24260
15988
fi
24261
15989
 
24262
15990
_ACEOF
24263
 
 
24264
 
cat >>$CONFIG_STATUS <<_ACEOF
24265
 
#
24266
 
# INIT-COMMANDS section.
24267
 
#
24268
 
 
 
15991
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15992
exec 5>>config.log
 
15993
{
 
15994
  echo
 
15995
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
15996
## Running $as_me. ##
 
15997
_ASBOX
 
15998
  $as_echo "$ac_log"
 
15999
} >&5
 
16000
 
 
16001
_ACEOF
 
16002
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16003
#
 
16004
# INIT-COMMANDS
 
16005
#
24269
16006
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24270
16007
 
 
16008
 
 
16009
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
16010
# if CDPATH is set.
 
16011
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16012
 
 
16013
sed_quote_subst='$sed_quote_subst'
 
16014
double_quote_subst='$double_quote_subst'
 
16015
delay_variable_subst='$delay_variable_subst'
 
16016
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
16017
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
16018
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
16019
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
16020
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
16021
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
16022
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16023
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
16024
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
16025
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
16026
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
16027
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
16028
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
16029
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
16030
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
16031
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
16032
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
16033
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16034
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16035
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16036
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
16037
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
16038
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
16039
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
16040
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
16041
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
16042
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
16043
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
16044
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
16045
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16046
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16047
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
16048
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
16049
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
16050
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
16051
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
16052
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
16053
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16054
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16055
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16056
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
16057
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
16058
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
16059
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
16060
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
16061
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
16062
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
16063
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
16064
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
16065
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
16066
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
16067
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
16068
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16069
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
16070
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
16071
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16072
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
16073
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
16074
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
16075
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
16076
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
16077
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
16078
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
16079
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
16080
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16081
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16082
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
16083
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
16084
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16085
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16086
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
16087
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16088
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16089
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16090
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16091
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16092
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16093
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
16094
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16095
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16096
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16097
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
16098
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
16099
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
16100
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
16101
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
16102
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16103
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
16104
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
16105
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
16106
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
16107
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
16108
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16109
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
16110
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
16111
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16112
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16113
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
16114
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
16115
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
16116
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
16117
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16118
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16119
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
16120
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16121
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16122
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16123
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16124
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16125
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16126
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
16127
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
16128
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16129
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16130
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
16131
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
16132
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
16133
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16134
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
16135
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
16136
 
 
16137
LTCC='$LTCC'
 
16138
LTCFLAGS='$LTCFLAGS'
 
16139
compiler='$compiler_DEFAULT'
 
16140
 
 
16141
# Quote evaled strings.
 
16142
for var in SED \
 
16143
GREP \
 
16144
EGREP \
 
16145
FGREP \
 
16146
LD \
 
16147
NM \
 
16148
LN_S \
 
16149
lt_SP2NL \
 
16150
lt_NL2SP \
 
16151
reload_flag \
 
16152
deplibs_check_method \
 
16153
file_magic_cmd \
 
16154
AR \
 
16155
AR_FLAGS \
 
16156
STRIP \
 
16157
RANLIB \
 
16158
CC \
 
16159
CFLAGS \
 
16160
compiler \
 
16161
lt_cv_sys_global_symbol_pipe \
 
16162
lt_cv_sys_global_symbol_to_cdecl \
 
16163
lt_cv_sys_global_symbol_to_c_name_address \
 
16164
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
16165
SHELL \
 
16166
ECHO \
 
16167
lt_prog_compiler_no_builtin_flag \
 
16168
lt_prog_compiler_wl \
 
16169
lt_prog_compiler_pic \
 
16170
lt_prog_compiler_static \
 
16171
lt_cv_prog_compiler_c_o \
 
16172
need_locks \
 
16173
DSYMUTIL \
 
16174
NMEDIT \
 
16175
LIPO \
 
16176
OTOOL \
 
16177
OTOOL64 \
 
16178
shrext_cmds \
 
16179
export_dynamic_flag_spec \
 
16180
whole_archive_flag_spec \
 
16181
compiler_needs_object \
 
16182
with_gnu_ld \
 
16183
allow_undefined_flag \
 
16184
no_undefined_flag \
 
16185
hardcode_libdir_flag_spec \
 
16186
hardcode_libdir_flag_spec_ld \
 
16187
hardcode_libdir_separator \
 
16188
fix_srcfile_path \
 
16189
exclude_expsyms \
 
16190
include_expsyms \
 
16191
file_list_spec \
 
16192
variables_saved_for_relink \
 
16193
libname_spec \
 
16194
library_names_spec \
 
16195
soname_spec \
 
16196
finish_eval \
 
16197
old_striplib \
 
16198
striplib; do
 
16199
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16200
    *[\\\\\\\`\\"\\\$]*)
 
16201
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
16202
      ;;
 
16203
    *)
 
16204
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16205
      ;;
 
16206
    esac
 
16207
done
 
16208
 
 
16209
# Double-quote double-evaled strings.
 
16210
for var in reload_cmds \
 
16211
old_postinstall_cmds \
 
16212
old_postuninstall_cmds \
 
16213
old_archive_cmds \
 
16214
extract_expsyms_cmds \
 
16215
old_archive_from_new_cmds \
 
16216
old_archive_from_expsyms_cmds \
 
16217
archive_cmds \
 
16218
archive_expsym_cmds \
 
16219
module_cmds \
 
16220
module_expsym_cmds \
 
16221
export_symbols_cmds \
 
16222
prelink_cmds \
 
16223
postinstall_cmds \
 
16224
postuninstall_cmds \
 
16225
finish_cmds \
 
16226
sys_lib_search_path_spec \
 
16227
sys_lib_dlsearch_path_spec; do
 
16228
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16229
    *[\\\\\\\`\\"\\\$]*)
 
16230
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
16231
      ;;
 
16232
    *)
 
16233
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16234
      ;;
 
16235
    esac
 
16236
done
 
16237
 
 
16238
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
16239
case \$lt_ECHO in
 
16240
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
16241
  ;;
 
16242
esac
 
16243
 
 
16244
ac_aux_dir='$ac_aux_dir'
 
16245
xsi_shell='$xsi_shell'
 
16246
lt_shell_append='$lt_shell_append'
 
16247
 
 
16248
# See if we are running on zsh, and set the options which allow our
 
16249
# commands through without removal of \ escapes INIT.
 
16250
if test -n "\${ZSH_VERSION+set}" ; then
 
16251
   setopt NO_GLOB_SUBST
 
16252
fi
 
16253
 
 
16254
 
 
16255
    PACKAGE='$PACKAGE'
 
16256
    VERSION='$VERSION'
 
16257
    TIMESTAMP='$TIMESTAMP'
 
16258
    RM='$RM'
 
16259
    ofile='$ofile'
 
16260
 
 
16261
 
 
16262
 
 
16263
 
24271
16264
_ACEOF
24272
16265
 
24273
 
 
24274
 
 
24275
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
16266
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16267
 
 
16268
# Handling of arguments.
24276
16269
for ac_config_target in $ac_config_targets
24277
16270
do
24278
 
  case "$ac_config_target" in
24279
 
  # Handling of arguments.
24280
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24281
 
  "libcddb.pc" ) CONFIG_FILES="$CONFIG_FILES libcddb.pc" ;;
24282
 
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24283
 
  "include/cddb/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/cddb/Makefile" ;;
24284
 
  "include/cddb/cddb_config.h" ) CONFIG_FILES="$CONFIG_FILES include/cddb/cddb_config.h" ;;
24285
 
  "include/cddb/version.h" ) CONFIG_FILES="$CONFIG_FILES include/cddb/version.h" ;;
24286
 
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24287
 
  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24288
 
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24289
 
  "tests/settings.sh" ) CONFIG_FILES="$CONFIG_FILES tests/settings.sh" ;;
24290
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24291
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24292
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24293
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
16271
  case $ac_config_target in
 
16272
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
16273
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
16274
    "libcddb.pc") CONFIG_FILES="$CONFIG_FILES libcddb.pc" ;;
 
16275
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
16276
    "include/cddb/Makefile") CONFIG_FILES="$CONFIG_FILES include/cddb/Makefile" ;;
 
16277
    "include/cddb/cddb_config.h") CONFIG_FILES="$CONFIG_FILES include/cddb/cddb_config.h" ;;
 
16278
    "include/cddb/version.h") CONFIG_FILES="$CONFIG_FILES include/cddb/version.h" ;;
 
16279
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
16280
    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
 
16281
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
16282
    "tests/settings.sh") CONFIG_FILES="$CONFIG_FILES tests/settings.sh" ;;
 
16283
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
16284
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
16285
 
 
16286
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
16287
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24294
16288
   { (exit 1); exit 1; }; };;
24295
16289
  esac
24296
16290
done
24297
16291
 
 
16292
 
24298
16293
# If the user did not use the arguments to specify the items to instantiate,
24299
16294
# then the envvar interface is used.  Set only those that are not.
24300
16295
# We use the long form for the default assignment because of an extremely
24306
16301
fi
24307
16302
 
24308
16303
# Have a temporary directory for convenience.  Make it in the build tree
24309
 
# simply because there is no reason to put it here, and in addition,
 
16304
# simply because there is no reason against having it here, and in addition,
24310
16305
# creating and moving files from /tmp can sometimes cause problems.
24311
 
# Create a temporary directory, and hook for its removal unless debugging.
 
16306
# Hook for its removal unless debugging.
 
16307
# Note that there is a small window in which the directory will not be cleaned:
 
16308
# after its creation but before its name has been assigned to `$tmp'.
24312
16309
$debug ||
24313
16310
{
24314
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
16311
  tmp=
 
16312
  trap 'exit_status=$?
 
16313
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
16314
' 0
24315
16315
  trap '{ (exit 1); exit 1; }' 1 2 13 15
24316
16316
}
24317
 
 
24318
16317
# Create a (secure) tmp directory for tmp files.
24319
16318
 
24320
16319
{
24321
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
16320
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24322
16321
  test -n "$tmp" && test -d "$tmp"
24323
16322
}  ||
24324
16323
{
24325
 
  tmp=./confstat$$-$RANDOM
24326
 
  (umask 077 && mkdir $tmp)
 
16324
  tmp=./conf$$-$RANDOM
 
16325
  (umask 077 && mkdir "$tmp")
24327
16326
} ||
24328
16327
{
24329
 
   echo "$me: cannot create a temporary directory in ." >&2
 
16328
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
24330
16329
   { (exit 1); exit 1; }
24331
16330
}
24332
16331
 
24333
 
_ACEOF
24334
 
 
24335
 
cat >>$CONFIG_STATUS <<_ACEOF
24336
 
 
24337
 
#
24338
 
# CONFIG_FILES section.
24339
 
#
24340
 
 
24341
 
# No need to generate the scripts if there are no CONFIG_FILES.
24342
 
# This happens for instance when ./config.status config.h
24343
 
if test -n "\$CONFIG_FILES"; then
24344
 
  # Protect against being on the right side of a sed subst in config.status.
24345
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24346
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24347
 
s,@SHELL@,$SHELL,;t t
24348
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24349
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24350
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24351
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24352
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24353
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24354
 
s,@exec_prefix@,$exec_prefix,;t t
24355
 
s,@prefix@,$prefix,;t t
24356
 
s,@program_transform_name@,$program_transform_name,;t t
24357
 
s,@bindir@,$bindir,;t t
24358
 
s,@sbindir@,$sbindir,;t t
24359
 
s,@libexecdir@,$libexecdir,;t t
24360
 
s,@datadir@,$datadir,;t t
24361
 
s,@sysconfdir@,$sysconfdir,;t t
24362
 
s,@sharedstatedir@,$sharedstatedir,;t t
24363
 
s,@localstatedir@,$localstatedir,;t t
24364
 
s,@libdir@,$libdir,;t t
24365
 
s,@includedir@,$includedir,;t t
24366
 
s,@oldincludedir@,$oldincludedir,;t t
24367
 
s,@infodir@,$infodir,;t t
24368
 
s,@mandir@,$mandir,;t t
24369
 
s,@build_alias@,$build_alias,;t t
24370
 
s,@host_alias@,$host_alias,;t t
24371
 
s,@target_alias@,$target_alias,;t t
24372
 
s,@DEFS@,$DEFS,;t t
24373
 
s,@ECHO_C@,$ECHO_C,;t t
24374
 
s,@ECHO_N@,$ECHO_N,;t t
24375
 
s,@ECHO_T@,$ECHO_T,;t t
24376
 
s,@LIBS@,$LIBS,;t t
24377
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24378
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24379
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24380
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
24381
 
s,@PACKAGE@,$PACKAGE,;t t
24382
 
s,@VERSION@,$VERSION,;t t
24383
 
s,@ACLOCAL@,$ACLOCAL,;t t
24384
 
s,@AUTOCONF@,$AUTOCONF,;t t
24385
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
24386
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
24387
 
s,@MAKEINFO@,$MAKEINFO,;t t
24388
 
s,@AMTAR@,$AMTAR,;t t
24389
 
s,@install_sh@,$install_sh,;t t
24390
 
s,@STRIP@,$STRIP,;t t
24391
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24392
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24393
 
s,@AWK@,$AWK,;t t
24394
 
s,@SET_MAKE@,$SET_MAKE,;t t
24395
 
s,@am__leading_dot@,$am__leading_dot,;t t
24396
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24397
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24398
 
s,@MAINT@,$MAINT,;t t
24399
 
s,@LIBCDDB_VERSION_NUM@,$LIBCDDB_VERSION_NUM,;t t
24400
 
s,@build@,$build,;t t
24401
 
s,@build_cpu@,$build_cpu,;t t
24402
 
s,@build_vendor@,$build_vendor,;t t
24403
 
s,@build_os@,$build_os,;t t
24404
 
s,@host@,$host,;t t
24405
 
s,@host_cpu@,$host_cpu,;t t
24406
 
s,@host_vendor@,$host_vendor,;t t
24407
 
s,@host_os@,$host_os,;t t
24408
 
s,@CC@,$CC,;t t
24409
 
s,@CFLAGS@,$CFLAGS,;t t
24410
 
s,@LDFLAGS@,$LDFLAGS,;t t
24411
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
24412
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
24413
 
s,@EXEEXT@,$EXEEXT,;t t
24414
 
s,@OBJEXT@,$OBJEXT,;t t
24415
 
s,@DEPDIR@,$DEPDIR,;t t
24416
 
s,@am__include@,$am__include,;t t
24417
 
s,@am__quote@,$am__quote,;t t
24418
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24419
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24420
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24421
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
24422
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24423
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24424
 
s,@CPP@,$CPP,;t t
24425
 
s,@EGREP@,$EGREP,;t t
24426
 
s,@LN_S@,$LN_S,;t t
24427
 
s,@ECHO@,$ECHO,;t t
24428
 
s,@AR@,$AR,;t t
24429
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
24430
 
s,@RANLIB@,$RANLIB,;t t
24431
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24432
 
s,@DLLTOOL@,$DLLTOOL,;t t
24433
 
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24434
 
s,@AS@,$AS,;t t
24435
 
s,@ac_ct_AS@,$ac_ct_AS,;t t
24436
 
s,@OBJDUMP@,$OBJDUMP,;t t
24437
 
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
24438
 
s,@CXX@,$CXX,;t t
24439
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
24440
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24441
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24442
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24443
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24444
 
s,@CXXCPP@,$CXXCPP,;t t
24445
 
s,@F77@,$F77,;t t
24446
 
s,@FFLAGS@,$FFLAGS,;t t
24447
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
24448
 
s,@LIBTOOL@,$LIBTOOL,;t t
24449
 
s,@LIBOBJS@,$LIBOBJS,;t t
24450
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24451
 
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
24452
 
s,@LIBCDIO_CFLAGS@,$LIBCDIO_CFLAGS,;t t
24453
 
s,@LIBCDIO_LIBS@,$LIBCDIO_LIBS,;t t
24454
 
s,@LIBICONV@,$LIBICONV,;t t
24455
 
s,@LTLIBICONV@,$LTLIBICONV,;t t
24456
 
s,@with_iconv@,$with_iconv,;t t
24457
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24458
 
CEOF
24459
 
 
24460
 
_ACEOF
24461
 
 
24462
 
  cat >>$CONFIG_STATUS <<\_ACEOF
24463
 
  # Split the substitutions into bite-sized pieces for seds with
24464
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
24465
 
  ac_max_sed_lines=48
24466
 
  ac_sed_frag=1 # Number of current file.
24467
 
  ac_beg=1 # First line for current file.
24468
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
24469
 
  ac_more_lines=:
24470
 
  ac_sed_cmds=
24471
 
  while $ac_more_lines; do
24472
 
    if test $ac_beg -gt 1; then
24473
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24474
 
    else
24475
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24476
 
    fi
24477
 
    if test ! -s $tmp/subs.frag; then
24478
 
      ac_more_lines=false
24479
 
    else
24480
 
      # The purpose of the label and of the branching condition is to
24481
 
      # speed up the sed processing (if there are no `@' at all, there
24482
 
      # is no need to browse any of the substitutions).
24483
 
      # These are the two extra sed commands mentioned above.
24484
 
      (echo ':t
24485
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24486
 
      if test -z "$ac_sed_cmds"; then
24487
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24488
 
      else
24489
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24490
 
      fi
24491
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
24492
 
      ac_beg=$ac_end
24493
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
24494
 
    fi
24495
 
  done
24496
 
  if test -z "$ac_sed_cmds"; then
24497
 
    ac_sed_cmds=cat
 
16332
# Set up the scripts for CONFIG_FILES section.
 
16333
# No need to generate them if there are no CONFIG_FILES.
 
16334
# This happens for instance with `./config.status config.h'.
 
16335
if test -n "$CONFIG_FILES"; then
 
16336
 
 
16337
 
 
16338
ac_cr='
 
 
b"'"
 
16339
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
16340
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
16341
  ac_cs_awk_cr='\\r'
 
16342
else
 
16343
  ac_cs_awk_cr=$ac_cr
 
16344
fi
 
16345
 
 
16346
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
16347
_ACEOF
 
16348
 
 
16349
 
 
16350
{
 
16351
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
16352
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
16353
  echo "_ACEOF"
 
16354
} >conf$$subs.sh ||
 
16355
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
16356
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
16357
   { (exit 1); exit 1; }; }
 
16358
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
16359
ac_delim='%!_!# '
 
16360
for ac_last_try in false false false false false :; do
 
16361
  . ./conf$$subs.sh ||
 
16362
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
16363
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
16364
   { (exit 1); exit 1; }; }
 
16365
 
 
16366
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
16367
  if test $ac_delim_n = $ac_delim_num; then
 
16368
    break
 
16369
  elif $ac_last_try; then
 
16370
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
16371
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
16372
   { (exit 1); exit 1; }; }
 
16373
  else
 
16374
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24498
16375
  fi
 
16376
done
 
16377
rm -f conf$$subs.sh
 
16378
 
 
16379
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16380
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
16381
_ACEOF
 
16382
sed -n '
 
16383
h
 
16384
s/^/S["/; s/!.*/"]=/
 
16385
p
 
16386
g
 
16387
s/^[^!]*!//
 
16388
:repl
 
16389
t repl
 
16390
s/'"$ac_delim"'$//
 
16391
t delim
 
16392
:nl
 
16393
h
 
16394
s/\(.\{148\}\).*/\1/
 
16395
t more1
 
16396
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
16397
p
 
16398
n
 
16399
b repl
 
16400
:more1
 
16401
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16402
p
 
16403
g
 
16404
s/.\{148\}//
 
16405
t nl
 
16406
:delim
 
16407
h
 
16408
s/\(.\{148\}\).*/\1/
 
16409
t more2
 
16410
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
16411
p
 
16412
b
 
16413
:more2
 
16414
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16415
p
 
16416
g
 
16417
s/.\{148\}//
 
16418
t delim
 
16419
' <conf$$subs.awk | sed '
 
16420
/^[^""]/{
 
16421
  N
 
16422
  s/\n//
 
16423
}
 
16424
' >>$CONFIG_STATUS || ac_write_fail=1
 
16425
rm -f conf$$subs.awk
 
16426
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16427
_ACAWK
 
16428
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
16429
  for (key in S) S_is_set[key] = 1
 
16430
  FS = ""
 
16431
 
 
16432
}
 
16433
{
 
16434
  line = $ 0
 
16435
  nfields = split(line, field, "@")
 
16436
  substed = 0
 
16437
  len = length(field[1])
 
16438
  for (i = 2; i < nfields; i++) {
 
16439
    key = field[i]
 
16440
    keylen = length(key)
 
16441
    if (S_is_set[key]) {
 
16442
      value = S[key]
 
16443
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
16444
      len += length(value) + length(field[++i])
 
16445
      substed = 1
 
16446
    } else
 
16447
      len += 1 + keylen
 
16448
  }
 
16449
 
 
16450
  print line
 
16451
}
 
16452
 
 
16453
_ACAWK
 
16454
_ACEOF
 
16455
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16456
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
16457
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
16458
else
 
16459
  cat
 
16460
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
16461
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
16462
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
16463
   { (exit 1); exit 1; }; }
 
16464
_ACEOF
 
16465
 
 
16466
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
16467
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
16468
# trailing colons and then remove the whole line if VPATH becomes empty
 
16469
# (actually we leave an empty line to preserve line numbers).
 
16470
if test "x$srcdir" = x.; then
 
16471
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
16472
s/:*\$(srcdir):*/:/
 
16473
s/:*\${srcdir}:*/:/
 
16474
s/:*@srcdir@:*/:/
 
16475
s/^\([^=]*=[     ]*\):*/\1/
 
16476
s/:*$//
 
16477
s/^[^=]*=[       ]*$//
 
16478
}'
 
16479
fi
 
16480
 
 
16481
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24499
16482
fi # test -n "$CONFIG_FILES"
24500
16483
 
24501
 
_ACEOF
24502
 
cat >>$CONFIG_STATUS <<\_ACEOF
24503
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24504
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24505
 
  case $ac_file in
24506
 
  - | *:- | *:-:* ) # input from stdin
24507
 
        cat >$tmp/stdin
24508
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24509
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24510
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24511
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24512
 
  * )   ac_file_in=$ac_file.in ;;
24513
 
  esac
24514
 
 
24515
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24516
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
16484
# Set up the scripts for CONFIG_HEADERS section.
 
16485
# No need to generate them if there are no CONFIG_HEADERS.
 
16486
# This happens for instance with `./config.status Makefile'.
 
16487
if test -n "$CONFIG_HEADERS"; then
 
16488
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
16489
BEGIN {
 
16490
_ACEOF
 
16491
 
 
16492
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
16493
# here-document in config.status, that substitutes the proper values into
 
16494
# config.h.in to produce config.h.
 
16495
 
 
16496
# Create a delimiter string that does not exist in confdefs.h, to ease
 
16497
# handling of long lines.
 
16498
ac_delim='%!_!# '
 
16499
for ac_last_try in false false :; do
 
16500
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
16501
  if test -z "$ac_t"; then
 
16502
    break
 
16503
  elif $ac_last_try; then
 
16504
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
16505
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
16506
   { (exit 1); exit 1; }; }
 
16507
  else
 
16508
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
16509
  fi
 
16510
done
 
16511
 
 
16512
# For the awk script, D is an array of macro values keyed by name,
 
16513
# likewise P contains macro parameters if any.  Preserve backslash
 
16514
# newline sequences.
 
16515
 
 
16516
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
16517
sed -n '
 
16518
s/.\{148\}/&'"$ac_delim"'/g
 
16519
t rset
 
16520
:rset
 
16521
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
16522
t def
 
16523
d
 
16524
:def
 
16525
s/\\$//
 
16526
t bsnl
 
16527
s/["\\]/\\&/g
 
16528
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16529
D["\1"]=" \3"/p
 
16530
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
16531
d
 
16532
:bsnl
 
16533
s/["\\]/\\&/g
 
16534
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16535
D["\1"]=" \3\\\\\\n"\\/p
 
16536
t cont
 
16537
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
16538
t cont
 
16539
d
 
16540
:cont
 
16541
n
 
16542
s/.\{148\}/&'"$ac_delim"'/g
 
16543
t clear
 
16544
:clear
 
16545
s/\\$//
 
16546
t bsnlc
 
16547
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
16548
d
 
16549
:bsnlc
 
16550
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
16551
b cont
 
16552
' <confdefs.h | sed '
 
16553
s/'"$ac_delim"'/"\\\
 
16554
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
16555
 
 
16556
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16557
  for (key in D) D_is_set[key] = 1
 
16558
  FS = ""
 
16559
}
 
16560
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
16561
  line = \$ 0
 
16562
  split(line, arg, " ")
 
16563
  if (arg[1] == "#") {
 
16564
    defundef = arg[2]
 
16565
    mac1 = arg[3]
 
16566
  } else {
 
16567
    defundef = substr(arg[1], 2)
 
16568
    mac1 = arg[2]
 
16569
  }
 
16570
  split(mac1, mac2, "(") #)
 
16571
  macro = mac2[1]
 
16572
  prefix = substr(line, 1, index(line, defundef) - 1)
 
16573
  if (D_is_set[macro]) {
 
16574
    # Preserve the white space surrounding the "#".
 
16575
    print prefix "define", macro P[macro] D[macro]
 
16576
    next
 
16577
  } else {
 
16578
    # Replace #undef with comments.  This is necessary, for example,
 
16579
    # in the case of _POSIX_SOURCE, which is predefined and required
 
16580
    # on some systems where configure will not decide to define it.
 
16581
    if (defundef == "undef") {
 
16582
      print "/*", prefix defundef, macro, "*/"
 
16583
      next
 
16584
    }
 
16585
  }
 
16586
}
 
16587
{ print }
 
16588
_ACAWK
 
16589
_ACEOF
 
16590
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16591
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
16592
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
16593
   { (exit 1); exit 1; }; }
 
16594
fi # test -n "$CONFIG_HEADERS"
 
16595
 
 
16596
 
 
16597
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
16598
shift
 
16599
for ac_tag
 
16600
do
 
16601
  case $ac_tag in
 
16602
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
16603
  esac
 
16604
  case $ac_mode$ac_tag in
 
16605
  :[FHL]*:*);;
 
16606
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
16607
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
16608
   { (exit 1); exit 1; }; };;
 
16609
  :[FH]-) ac_tag=-:-;;
 
16610
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
16611
  esac
 
16612
  ac_save_IFS=$IFS
 
16613
  IFS=:
 
16614
  set x $ac_tag
 
16615
  IFS=$ac_save_IFS
 
16616
  shift
 
16617
  ac_file=$1
 
16618
  shift
 
16619
 
 
16620
  case $ac_mode in
 
16621
  :L) ac_source=$1;;
 
16622
  :[FH])
 
16623
    ac_file_inputs=
 
16624
    for ac_f
 
16625
    do
 
16626
      case $ac_f in
 
16627
      -) ac_f="$tmp/stdin";;
 
16628
      *) # Look for the file first in the build tree, then in the source tree
 
16629
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
16630
         # because $ac_f cannot contain `:'.
 
16631
         test -f "$ac_f" ||
 
16632
           case $ac_f in
 
16633
           [\\/$]*) false;;
 
16634
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
16635
           esac ||
 
16636
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
16637
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
16638
   { (exit 1); exit 1; }; };;
 
16639
      esac
 
16640
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
16641
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
16642
    done
 
16643
 
 
16644
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
16645
    # use $as_me), people would be surprised to read:
 
16646
    #    /* config.h.  Generated by config.status.  */
 
16647
    configure_input='Generated from '`
 
16648
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
16649
        `' by configure.'
 
16650
    if test x"$ac_file" != x-; then
 
16651
      configure_input="$ac_file.  $configure_input"
 
16652
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
16653
$as_echo "$as_me: creating $ac_file" >&6;}
 
16654
    fi
 
16655
    # Neutralize special characters interpreted by sed in replacement strings.
 
16656
    case $configure_input in #(
 
16657
    *\&* | *\|* | *\\* )
 
16658
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
16659
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
16660
    *) ac_sed_conf_input=$configure_input;;
 
16661
    esac
 
16662
 
 
16663
    case $ac_tag in
 
16664
    *:-:* | *:-) cat >"$tmp/stdin" \
 
16665
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
16666
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
16667
   { (exit 1); exit 1; }; } ;;
 
16668
    esac
 
16669
    ;;
 
16670
  esac
 
16671
 
 
16672
  ac_dir=`$as_dirname -- "$ac_file" ||
24517
16673
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24518
16674
         X"$ac_file" : 'X\(//\)[^/]' \| \
24519
16675
         X"$ac_file" : 'X\(//\)$' \| \
24520
 
         X"$ac_file" : 'X\(/\)' \| \
24521
 
         .     : '\(.\)' 2>/dev/null ||
24522
 
echo X"$ac_file" |
24523
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24524
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24525
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24526
 
          /^X\(\/\).*/{ s//\1/; q; }
24527
 
          s/.*/./; q'`
24528
 
  { if $as_mkdir_p; then
24529
 
    mkdir -p "$ac_dir"
24530
 
  else
24531
 
    as_dir="$ac_dir"
 
16676
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
16677
$as_echo X"$ac_file" |
 
16678
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16679
            s//\1/
 
16680
            q
 
16681
          }
 
16682
          /^X\(\/\/\)[^/].*/{
 
16683
            s//\1/
 
16684
            q
 
16685
          }
 
16686
          /^X\(\/\/\)$/{
 
16687
            s//\1/
 
16688
            q
 
16689
          }
 
16690
          /^X\(\/\).*/{
 
16691
            s//\1/
 
16692
            q
 
16693
          }
 
16694
          s/.*/./; q'`
 
16695
  { as_dir="$ac_dir"
 
16696
  case $as_dir in #(
 
16697
  -*) as_dir=./$as_dir;;
 
16698
  esac
 
16699
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24532
16700
    as_dirs=
24533
 
    while test ! -d "$as_dir"; do
24534
 
      as_dirs="$as_dir $as_dirs"
24535
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
16701
    while :; do
 
16702
      case $as_dir in #(
 
16703
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
16704
      *) as_qdir=$as_dir;;
 
16705
      esac
 
16706
      as_dirs="'$as_qdir' $as_dirs"
 
16707
      as_dir=`$as_dirname -- "$as_dir" ||
24536
16708
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24537
16709
         X"$as_dir" : 'X\(//\)[^/]' \| \
24538
16710
         X"$as_dir" : 'X\(//\)$' \| \
24539
 
         X"$as_dir" : 'X\(/\)' \| \
24540
 
         .     : '\(.\)' 2>/dev/null ||
24541
 
echo X"$as_dir" |
24542
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24543
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24544
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24545
 
          /^X\(\/\).*/{ s//\1/; q; }
24546
 
          s/.*/./; q'`
 
16711
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
16712
$as_echo X"$as_dir" |
 
16713
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16714
            s//\1/
 
16715
            q
 
16716
          }
 
16717
          /^X\(\/\/\)[^/].*/{
 
16718
            s//\1/
 
16719
            q
 
16720
          }
 
16721
          /^X\(\/\/\)$/{
 
16722
            s//\1/
 
16723
            q
 
16724
          }
 
16725
          /^X\(\/\).*/{
 
16726
            s//\1/
 
16727
            q
 
16728
          }
 
16729
          s/.*/./; q'`
 
16730
      test -d "$as_dir" && break
24547
16731
    done
24548
 
    test ! -n "$as_dirs" || mkdir $as_dirs
24549
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24550
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
16732
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
16733
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
16734
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24551
16735
   { (exit 1); exit 1; }; }; }
24552
 
 
24553
16736
  ac_builddir=.
24554
16737
 
24555
 
if test "$ac_dir" != .; then
24556
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24557
 
  # A "../" for each directory in $ac_dir_suffix.
24558
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24559
 
else
24560
 
  ac_dir_suffix= ac_top_builddir=
24561
 
fi
 
16738
case "$ac_dir" in
 
16739
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16740
*)
 
16741
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
16742
  # A ".." for each directory in $ac_dir_suffix.
 
16743
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
16744
  case $ac_top_builddir_sub in
 
16745
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16746
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
16747
  esac ;;
 
16748
esac
 
16749
ac_abs_top_builddir=$ac_pwd
 
16750
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
16751
# for backward compatibility:
 
16752
ac_top_builddir=$ac_top_build_prefix
24562
16753
 
24563
16754
case $srcdir in
24564
 
  .)  # No --srcdir option.  We are building in place.
 
16755
  .)  # We are building in place.
24565
16756
    ac_srcdir=.
24566
 
    if test -z "$ac_top_builddir"; then
24567
 
       ac_top_srcdir=.
24568
 
    else
24569
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24570
 
    fi ;;
24571
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
16757
    ac_top_srcdir=$ac_top_builddir_sub
 
16758
    ac_abs_top_srcdir=$ac_pwd ;;
 
16759
  [\\/]* | ?:[\\/]* )  # Absolute name.
24572
16760
    ac_srcdir=$srcdir$ac_dir_suffix;
24573
 
    ac_top_srcdir=$srcdir ;;
24574
 
  *) # Relative path.
24575
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24576
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24577
 
esac
24578
 
 
24579
 
# Do not use `cd foo && pwd` to compute absolute paths, because
24580
 
# the directories may not exist.
24581
 
case `pwd` in
24582
 
.) ac_abs_builddir="$ac_dir";;
24583
 
*)
24584
 
  case "$ac_dir" in
24585
 
  .) ac_abs_builddir=`pwd`;;
24586
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24587
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24588
 
  esac;;
24589
 
esac
24590
 
case $ac_abs_builddir in
24591
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24592
 
*)
24593
 
  case ${ac_top_builddir}. in
24594
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
24595
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24596
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24597
 
  esac;;
24598
 
esac
24599
 
case $ac_abs_builddir in
24600
 
.) ac_abs_srcdir=$ac_srcdir;;
24601
 
*)
24602
 
  case $ac_srcdir in
24603
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
24604
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24605
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24606
 
  esac;;
24607
 
esac
24608
 
case $ac_abs_builddir in
24609
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24610
 
*)
24611
 
  case $ac_top_srcdir in
24612
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24613
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24614
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24615
 
  esac;;
24616
 
esac
24617
 
 
 
16761
    ac_top_srcdir=$srcdir
 
16762
    ac_abs_top_srcdir=$srcdir ;;
 
16763
  *) # Relative name.
 
16764
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
16765
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
16766
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
16767
esac
 
16768
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
16769
 
 
16770
 
 
16771
  case $ac_mode in
 
16772
  :F)
 
16773
  #
 
16774
  # CONFIG_FILE
 
16775
  #
24618
16776
 
24619
16777
  case $INSTALL in
24620
16778
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24621
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24622
 
  esac
24623
 
 
24624
 
  if test x"$ac_file" != x-; then
24625
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
24626
 
echo "$as_me: creating $ac_file" >&6;}
24627
 
    rm -f "$ac_file"
24628
 
  fi
24629
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
24630
 
  # use $as_me), people would be surprised to read:
24631
 
  #    /* config.h.  Generated by config.status.  */
24632
 
  if test x"$ac_file" = x-; then
24633
 
    configure_input=
24634
 
  else
24635
 
    configure_input="$ac_file.  "
24636
 
  fi
24637
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
24638
 
                                     sed 's,.*/,,'` by configure."
24639
 
 
24640
 
  # First look for the input files in the build tree, otherwise in the
24641
 
  # src tree.
24642
 
  ac_file_inputs=`IFS=:
24643
 
    for f in $ac_file_in; do
24644
 
      case $f in
24645
 
      -) echo $tmp/stdin ;;
24646
 
      [\\/$]*)
24647
 
         # Absolute (can't be DOS-style, as IFS=:)
24648
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24649
 
echo "$as_me: error: cannot find input file: $f" >&2;}
24650
 
   { (exit 1); exit 1; }; }
24651
 
         echo "$f";;
24652
 
      *) # Relative
24653
 
         if test -f "$f"; then
24654
 
           # Build tree
24655
 
           echo "$f"
24656
 
         elif test -f "$srcdir/$f"; then
24657
 
           # Source tree
24658
 
           echo "$srcdir/$f"
24659
 
         else
24660
 
           # /dev/null tree
24661
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24662
 
echo "$as_me: error: cannot find input file: $f" >&2;}
24663
 
   { (exit 1); exit 1; }; }
24664
 
         fi;;
24665
 
      esac
24666
 
    done` || { (exit 1); exit 1; }
24667
 
_ACEOF
24668
 
cat >>$CONFIG_STATUS <<_ACEOF
24669
 
  sed "$ac_vpsub
 
16779
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
16780
  esac
 
16781
  ac_MKDIR_P=$MKDIR_P
 
16782
  case $MKDIR_P in
 
16783
  [\\/$]* | ?:[\\/]* ) ;;
 
16784
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
16785
  esac
 
16786
_ACEOF
 
16787
 
 
16788
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16789
# If the template does not know about datarootdir, expand it.
 
16790
# FIXME: This hack should be removed a few years after 2.60.
 
16791
ac_datarootdir_hack=; ac_datarootdir_seen=
 
16792
 
 
16793
ac_sed_dataroot='
 
16794
/datarootdir/ {
 
16795
  p
 
16796
  q
 
16797
}
 
16798
/@datadir@/p
 
16799
/@docdir@/p
 
16800
/@infodir@/p
 
16801
/@localedir@/p
 
16802
/@mandir@/p
 
16803
'
 
16804
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
16805
*datarootdir*) ac_datarootdir_seen=yes;;
 
16806
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
16807
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
16808
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
16809
_ACEOF
 
16810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16811
  ac_datarootdir_hack='
 
16812
  s&@datadir@&$datadir&g
 
16813
  s&@docdir@&$docdir&g
 
16814
  s&@infodir@&$infodir&g
 
16815
  s&@localedir@&$localedir&g
 
16816
  s&@mandir@&$mandir&g
 
16817
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
16818
esac
 
16819
_ACEOF
 
16820
 
 
16821
# Neutralize VPATH when `$srcdir' = `.'.
 
16822
# Shell code in configure.ac might set extrasub.
 
16823
# FIXME: do we really want to maintain this feature?
 
16824
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16825
ac_sed_extra="$ac_vpsub
24670
16826
$extrasub
24671
16827
_ACEOF
24672
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
16828
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24673
16829
:t
24674
16830
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24675
 
s,@configure_input@,$configure_input,;t t
24676
 
s,@srcdir@,$ac_srcdir,;t t
24677
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
24678
 
s,@top_srcdir@,$ac_top_srcdir,;t t
24679
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24680
 
s,@builddir@,$ac_builddir,;t t
24681
 
s,@abs_builddir@,$ac_abs_builddir,;t t
24682
 
s,@top_builddir@,$ac_top_builddir,;t t
24683
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24684
 
s,@INSTALL@,$ac_INSTALL,;t t
24685
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24686
 
  rm -f $tmp/stdin
24687
 
  if test x"$ac_file" != x-; then
24688
 
    mv $tmp/out $ac_file
24689
 
  else
24690
 
    cat $tmp/out
24691
 
    rm -f $tmp/out
24692
 
  fi
24693
 
 
24694
 
done
24695
 
_ACEOF
24696
 
cat >>$CONFIG_STATUS <<\_ACEOF
24697
 
 
24698
 
#
24699
 
# CONFIG_HEADER section.
24700
 
#
24701
 
 
24702
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24703
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
24704
 
#
24705
 
# ac_d sets the value in "#define NAME VALUE" lines.
24706
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24707
 
ac_dB='[         ].*$,\1#\2'
24708
 
ac_dC=' '
24709
 
ac_dD=',;t'
24710
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24711
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24712
 
ac_uB='$,\1#\2define\3'
24713
 
ac_uC=' '
24714
 
ac_uD=',;t'
24715
 
 
24716
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24717
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
16831
s|@configure_input@|$ac_sed_conf_input|;t t
 
16832
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
16833
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
16834
s&@srcdir@&$ac_srcdir&;t t
 
16835
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
16836
s&@top_srcdir@&$ac_top_srcdir&;t t
 
16837
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
16838
s&@builddir@&$ac_builddir&;t t
 
16839
s&@abs_builddir@&$ac_abs_builddir&;t t
 
16840
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
16841
s&@INSTALL@&$ac_INSTALL&;t t
 
16842
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
16843
$ac_datarootdir_hack
 
16844
"
 
16845
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
16846
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
16847
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
16848
   { (exit 1); exit 1; }; }
 
16849
 
 
16850
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
16851
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
16852
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
16853
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16854
which seems to be undefined.  Please make sure it is defined." >&5
 
16855
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16856
which seems to be undefined.  Please make sure it is defined." >&2;}
 
16857
 
 
16858
  rm -f "$tmp/stdin"
24718
16859
  case $ac_file in
24719
 
  - | *:- | *:-:* ) # input from stdin
24720
 
        cat >$tmp/stdin
24721
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24722
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24723
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24724
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24725
 
  * )   ac_file_in=$ac_file.in ;;
24726
 
  esac
24727
 
 
24728
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24729
 
echo "$as_me: creating $ac_file" >&6;}
24730
 
 
24731
 
  # First look for the input files in the build tree, otherwise in the
24732
 
  # src tree.
24733
 
  ac_file_inputs=`IFS=:
24734
 
    for f in $ac_file_in; do
24735
 
      case $f in
24736
 
      -) echo $tmp/stdin ;;
24737
 
      [\\/$]*)
24738
 
         # Absolute (can't be DOS-style, as IFS=:)
24739
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24740
 
echo "$as_me: error: cannot find input file: $f" >&2;}
24741
 
   { (exit 1); exit 1; }; }
24742
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
24743
 
         echo "$f";;
24744
 
      *) # Relative
24745
 
         if test -f "$f"; then
24746
 
           # Build tree
24747
 
           echo "$f"
24748
 
         elif test -f "$srcdir/$f"; then
24749
 
           # Source tree
24750
 
           echo "$srcdir/$f"
24751
 
         else
24752
 
           # /dev/null tree
24753
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24754
 
echo "$as_me: error: cannot find input file: $f" >&2;}
24755
 
   { (exit 1); exit 1; }; }
24756
 
         fi;;
24757
 
      esac
24758
 
    done` || { (exit 1); exit 1; }
24759
 
  # Remove the trailing spaces.
24760
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24761
 
 
24762
 
_ACEOF
24763
 
 
24764
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
24765
 
# `conftest.undefs', that substitutes the proper values into
24766
 
# config.h.in to produce config.h.  The first handles `#define'
24767
 
# templates, and the second `#undef' templates.
24768
 
# And first: Protect against being on the right side of a sed subst in
24769
 
# config.status.  Protect against being in an unquoted here document
24770
 
# in config.status.
24771
 
rm -f conftest.defines conftest.undefs
24772
 
# Using a here document instead of a string reduces the quoting nightmare.
24773
 
# Putting comments in sed scripts is not portable.
24774
 
#
24775
 
# `end' is used to avoid that the second main sed command (meant for
24776
 
# 0-ary CPP macros) applies to n-ary macro definitions.
24777
 
# See the Autoconf documentation for `clear'.
24778
 
cat >confdef2sed.sed <<\_ACEOF
24779
 
s/[\\&,]/\\&/g
24780
 
s,[\\$`],\\&,g
24781
 
t clear
24782
 
: clear
24783
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24784
 
t end
24785
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24786
 
: end
24787
 
_ACEOF
24788
 
# If some macros were called several times there might be several times
24789
 
# the same #defines, which is useless.  Nevertheless, we may not want to
24790
 
# sort them, since we want the *last* AC-DEFINE to be honored.
24791
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24792
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24793
 
rm -f confdef2sed.sed
24794
 
 
24795
 
# This sed command replaces #undef with comments.  This is necessary, for
24796
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
24797
 
# on some systems where configure will not decide to define it.
24798
 
cat >>conftest.undefs <<\_ACEOF
24799
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24800
 
_ACEOF
24801
 
 
24802
 
# Break up conftest.defines because some shells have a limit on the size
24803
 
# of here documents, and old seds have small limits too (100 cmds).
24804
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24805
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24806
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24807
 
echo '  :' >>$CONFIG_STATUS
24808
 
rm -f conftest.tail
24809
 
while grep . conftest.defines >/dev/null
24810
 
do
24811
 
  # Write a limited-size here document to $tmp/defines.sed.
24812
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24813
 
  # Speed up: don't consider the non `#define' lines.
24814
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24815
 
  # Work around the forget-to-reset-the-flag bug.
24816
 
  echo 't clr' >>$CONFIG_STATUS
24817
 
  echo ': clr' >>$CONFIG_STATUS
24818
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24819
 
  echo 'CEOF
24820
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24821
 
  rm -f $tmp/in
24822
 
  mv $tmp/out $tmp/in
24823
 
' >>$CONFIG_STATUS
24824
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24825
 
  rm -f conftest.defines
24826
 
  mv conftest.tail conftest.defines
24827
 
done
24828
 
rm -f conftest.defines
24829
 
echo '  fi # grep' >>$CONFIG_STATUS
24830
 
echo >>$CONFIG_STATUS
24831
 
 
24832
 
# Break up conftest.undefs because some shells have a limit on the size
24833
 
# of here documents, and old seds have small limits too (100 cmds).
24834
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24835
 
rm -f conftest.tail
24836
 
while grep . conftest.undefs >/dev/null
24837
 
do
24838
 
  # Write a limited-size here document to $tmp/undefs.sed.
24839
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24840
 
  # Speed up: don't consider the non `#undef'
24841
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24842
 
  # Work around the forget-to-reset-the-flag bug.
24843
 
  echo 't clr' >>$CONFIG_STATUS
24844
 
  echo ': clr' >>$CONFIG_STATUS
24845
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24846
 
  echo 'CEOF
24847
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24848
 
  rm -f $tmp/in
24849
 
  mv $tmp/out $tmp/in
24850
 
' >>$CONFIG_STATUS
24851
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24852
 
  rm -f conftest.undefs
24853
 
  mv conftest.tail conftest.undefs
24854
 
done
24855
 
rm -f conftest.undefs
24856
 
 
24857
 
cat >>$CONFIG_STATUS <<\_ACEOF
24858
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
24859
 
  # use $as_me), people would be surprised to read:
24860
 
  #    /* config.h.  Generated by config.status.  */
24861
 
  if test x"$ac_file" = x-; then
24862
 
    echo "/* Generated by configure.  */" >$tmp/config.h
24863
 
  else
24864
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24865
 
  fi
24866
 
  cat $tmp/in >>$tmp/config.h
24867
 
  rm -f $tmp/in
 
16860
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
16861
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
16862
  esac \
 
16863
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
16864
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
16865
   { (exit 1); exit 1; }; }
 
16866
 ;;
 
16867
  :H)
 
16868
  #
 
16869
  # CONFIG_HEADER
 
16870
  #
24868
16871
  if test x"$ac_file" != x-; then
24869
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24870
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24871
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
16872
    {
 
16873
      $as_echo "/* $configure_input  */" \
 
16874
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
16875
    } >"$tmp/config.h" \
 
16876
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
16877
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
16878
   { (exit 1); exit 1; }; }
 
16879
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
16880
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
16881
$as_echo "$as_me: $ac_file is unchanged" >&6;}
24872
16882
    else
24873
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24874
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24875
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
24876
 
         X"$ac_file" : 'X\(//\)$' \| \
24877
 
         X"$ac_file" : 'X\(/\)' \| \
24878
 
         .     : '\(.\)' 2>/dev/null ||
24879
 
echo X"$ac_file" |
24880
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24881
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24882
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24883
 
          /^X\(\/\).*/{ s//\1/; q; }
24884
 
          s/.*/./; q'`
24885
 
      { if $as_mkdir_p; then
24886
 
    mkdir -p "$ac_dir"
24887
 
  else
24888
 
    as_dir="$ac_dir"
24889
 
    as_dirs=
24890
 
    while test ! -d "$as_dir"; do
24891
 
      as_dirs="$as_dir $as_dirs"
24892
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24893
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24894
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24895
 
         X"$as_dir" : 'X\(//\)$' \| \
24896
 
         X"$as_dir" : 'X\(/\)' \| \
24897
 
         .     : '\(.\)' 2>/dev/null ||
24898
 
echo X"$as_dir" |
24899
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24900
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24901
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24902
 
          /^X\(\/\).*/{ s//\1/; q; }
24903
 
          s/.*/./; q'`
24904
 
    done
24905
 
    test ! -n "$as_dirs" || mkdir $as_dirs
24906
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24907
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24908
 
   { (exit 1); exit 1; }; }; }
24909
 
 
24910
 
      rm -f $ac_file
24911
 
      mv $tmp/config.h $ac_file
 
16883
      rm -f "$ac_file"
 
16884
      mv "$tmp/config.h" "$ac_file" \
 
16885
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
16886
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
16887
   { (exit 1); exit 1; }; }
24912
16888
    fi
24913
16889
  else
24914
 
    cat $tmp/config.h
24915
 
    rm -f $tmp/config.h
 
16890
    $as_echo "/* $configure_input  */" \
 
16891
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
16892
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
16893
$as_echo "$as_me: error: could not create -" >&2;}
 
16894
   { (exit 1); exit 1; }; }
24916
16895
  fi
24917
 
# Compute $ac_file's index in $config_headers.
 
16896
# Compute "$ac_file"'s index in $config_headers.
 
16897
_am_arg="$ac_file"
24918
16898
_am_stamp_count=1
24919
16899
for _am_header in $config_headers :; do
24920
16900
  case $_am_header in
24921
 
    $ac_file | $ac_file:* )
 
16901
    $_am_arg | $_am_arg:* )
24922
16902
      break ;;
24923
16903
    * )
24924
16904
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24925
16905
  esac
24926
16906
done
24927
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24928
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24929
 
         X$ac_file : 'X\(//\)[^/]' \| \
24930
 
         X$ac_file : 'X\(//\)$' \| \
24931
 
         X$ac_file : 'X\(/\)' \| \
24932
 
         .     : '\(.\)' 2>/dev/null ||
24933
 
echo X$ac_file |
24934
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24935
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24936
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24937
 
          /^X\(\/\).*/{ s//\1/; q; }
24938
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
24939
 
done
24940
 
_ACEOF
24941
 
cat >>$CONFIG_STATUS <<\_ACEOF
24942
 
 
24943
 
#
24944
 
# CONFIG_COMMANDS section.
24945
 
#
24946
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24947
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24948
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24949
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24950
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24951
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
24952
 
         X"$ac_dest" : 'X\(//\)$' \| \
24953
 
         X"$ac_dest" : 'X\(/\)' \| \
24954
 
         .     : '\(.\)' 2>/dev/null ||
24955
 
echo X"$ac_dest" |
24956
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24957
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24958
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24959
 
          /^X\(\/\).*/{ s//\1/; q; }
24960
 
          s/.*/./; q'`
24961
 
  { if $as_mkdir_p; then
24962
 
    mkdir -p "$ac_dir"
24963
 
  else
24964
 
    as_dir="$ac_dir"
24965
 
    as_dirs=
24966
 
    while test ! -d "$as_dir"; do
24967
 
      as_dirs="$as_dir $as_dirs"
24968
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24969
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24970
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24971
 
         X"$as_dir" : 'X\(//\)$' \| \
24972
 
         X"$as_dir" : 'X\(/\)' \| \
24973
 
         .     : '\(.\)' 2>/dev/null ||
24974
 
echo X"$as_dir" |
24975
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24976
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24977
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24978
 
          /^X\(\/\).*/{ s//\1/; q; }
24979
 
          s/.*/./; q'`
24980
 
    done
24981
 
    test ! -n "$as_dirs" || mkdir $as_dirs
24982
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24983
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24984
 
   { (exit 1); exit 1; }; }; }
24985
 
 
24986
 
  ac_builddir=.
24987
 
 
24988
 
if test "$ac_dir" != .; then
24989
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24990
 
  # A "../" for each directory in $ac_dir_suffix.
24991
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24992
 
else
24993
 
  ac_dir_suffix= ac_top_builddir=
24994
 
fi
24995
 
 
24996
 
case $srcdir in
24997
 
  .)  # No --srcdir option.  We are building in place.
24998
 
    ac_srcdir=.
24999
 
    if test -z "$ac_top_builddir"; then
25000
 
       ac_top_srcdir=.
25001
 
    else
25002
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25003
 
    fi ;;
25004
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
25005
 
    ac_srcdir=$srcdir$ac_dir_suffix;
25006
 
    ac_top_srcdir=$srcdir ;;
25007
 
  *) # Relative path.
25008
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25009
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25010
 
esac
25011
 
 
25012
 
# Do not use `cd foo && pwd` to compute absolute paths, because
25013
 
# the directories may not exist.
25014
 
case `pwd` in
25015
 
.) ac_abs_builddir="$ac_dir";;
25016
 
*)
25017
 
  case "$ac_dir" in
25018
 
  .) ac_abs_builddir=`pwd`;;
25019
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25020
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25021
 
  esac;;
25022
 
esac
25023
 
case $ac_abs_builddir in
25024
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25025
 
*)
25026
 
  case ${ac_top_builddir}. in
25027
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
25028
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25029
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25030
 
  esac;;
25031
 
esac
25032
 
case $ac_abs_builddir in
25033
 
.) ac_abs_srcdir=$ac_srcdir;;
25034
 
*)
25035
 
  case $ac_srcdir in
25036
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
25037
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25038
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25039
 
  esac;;
25040
 
esac
25041
 
case $ac_abs_builddir in
25042
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25043
 
*)
25044
 
  case $ac_top_srcdir in
25045
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25046
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25047
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25048
 
  esac;;
25049
 
esac
25050
 
 
25051
 
 
25052
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25053
 
echo "$as_me: executing $ac_dest commands" >&6;}
25054
 
  case $ac_dest in
25055
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
16907
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
16908
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16909
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
16910
         X"$_am_arg" : 'X\(//\)$' \| \
 
16911
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
16912
$as_echo X"$_am_arg" |
 
16913
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16914
            s//\1/
 
16915
            q
 
16916
          }
 
16917
          /^X\(\/\/\)[^/].*/{
 
16918
            s//\1/
 
16919
            q
 
16920
          }
 
16921
          /^X\(\/\/\)$/{
 
16922
            s//\1/
 
16923
            q
 
16924
          }
 
16925
          /^X\(\/\).*/{
 
16926
            s//\1/
 
16927
            q
 
16928
          }
 
16929
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
16930
 ;;
 
16931
 
 
16932
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
16933
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
16934
 ;;
 
16935
  esac
 
16936
 
 
16937
 
 
16938
  case $ac_file$ac_mode in
 
16939
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
16940
# are listed without --file.  Let's play safe and only enable the eval
 
16941
# if we detect the quoting.
 
16942
case $CONFIG_FILES in
 
16943
*\'*) eval set x "$CONFIG_FILES" ;;
 
16944
*)   set x $CONFIG_FILES ;;
 
16945
esac
 
16946
shift
 
16947
for mf
 
16948
do
25056
16949
  # Strip MF so we end up with the name of the file.
25057
16950
  mf=`echo "$mf" | sed -e 's/:.*$//'`
25058
16951
  # Check whether this is an Automake generated Makefile or not.
25060
16953
  # some people rename them; so instead we look at the file content.
25061
16954
  # Grep'ing the first line is not enough: some people post-process
25062
16955
  # each Makefile.in and add a new line on top of each file to say so.
25063
 
  # So let's grep whole file.
25064
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25065
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
16956
  # Grep'ing the whole file is not good either: AIX grep has a line
 
16957
  # limit of 2048, but all sed's we know have understand at least 4000.
 
16958
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
16959
    dirpart=`$as_dirname -- "$mf" ||
25066
16960
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25067
16961
         X"$mf" : 'X\(//\)[^/]' \| \
25068
16962
         X"$mf" : 'X\(//\)$' \| \
25069
 
         X"$mf" : 'X\(/\)' \| \
25070
 
         .     : '\(.\)' 2>/dev/null ||
25071
 
echo X"$mf" |
25072
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25073
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25074
 
          /^X\(\/\/\)$/{ s//\1/; q; }
25075
 
          /^X\(\/\).*/{ s//\1/; q; }
25076
 
          s/.*/./; q'`
 
16963
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
16964
$as_echo X"$mf" |
 
16965
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16966
            s//\1/
 
16967
            q
 
16968
          }
 
16969
          /^X\(\/\/\)[^/].*/{
 
16970
            s//\1/
 
16971
            q
 
16972
          }
 
16973
          /^X\(\/\/\)$/{
 
16974
            s//\1/
 
16975
            q
 
16976
          }
 
16977
          /^X\(\/\).*/{
 
16978
            s//\1/
 
16979
            q
 
16980
          }
 
16981
          s/.*/./; q'`
25077
16982
  else
25078
16983
    continue
25079
16984
  fi
25080
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25081
 
  # Extract the definition of DEP_FILES from the Makefile without
25082
 
  # running `make'.
25083
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
16985
  # Extract the definition of DEPDIR, am__include, and am__quote
 
16986
  # from the Makefile without running `make'.
 
16987
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25084
16988
  test -z "$DEPDIR" && continue
 
16989
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
16990
  test -z "am__include" && continue
 
16991
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25085
16992
  # When using ansi2knr, U may be empty or an underscore; expand it
25086
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
25087
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25088
 
  # We invoke sed twice because it is the simplest approach to
25089
 
  # changing $(DEPDIR) to its actual value in the expansion.
25090
 
  for file in `sed -n -e '
25091
 
    /^DEP_FILES = .*\\\\$/ {
25092
 
      s/^DEP_FILES = //
25093
 
      :loop
25094
 
        s/\\\\$//
25095
 
        p
25096
 
        n
25097
 
        /\\\\$/ b loop
25098
 
      p
25099
 
    }
25100
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
16993
  U=`sed -n 's/^U = //p' < "$mf"`
 
16994
  # Find all dependency output files, they are included files with
 
16995
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
16996
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
16997
  # expansion.
 
16998
  for file in `sed -n "
 
16999
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25101
17000
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25102
17001
    # Make sure the directory exists.
25103
17002
    test -f "$dirpart/$file" && continue
25104
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
17003
    fdir=`$as_dirname -- "$file" ||
25105
17004
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25106
17005
         X"$file" : 'X\(//\)[^/]' \| \
25107
17006
         X"$file" : 'X\(//\)$' \| \
25108
 
         X"$file" : 'X\(/\)' \| \
25109
 
         .     : '\(.\)' 2>/dev/null ||
25110
 
echo X"$file" |
25111
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25112
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25113
 
          /^X\(\/\/\)$/{ s//\1/; q; }
25114
 
          /^X\(\/\).*/{ s//\1/; q; }
25115
 
          s/.*/./; q'`
25116
 
    { if $as_mkdir_p; then
25117
 
    mkdir -p $dirpart/$fdir
25118
 
  else
25119
 
    as_dir=$dirpart/$fdir
 
17007
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
17008
$as_echo X"$file" |
 
17009
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17010
            s//\1/
 
17011
            q
 
17012
          }
 
17013
          /^X\(\/\/\)[^/].*/{
 
17014
            s//\1/
 
17015
            q
 
17016
          }
 
17017
          /^X\(\/\/\)$/{
 
17018
            s//\1/
 
17019
            q
 
17020
          }
 
17021
          /^X\(\/\).*/{
 
17022
            s//\1/
 
17023
            q
 
17024
          }
 
17025
          s/.*/./; q'`
 
17026
    { as_dir=$dirpart/$fdir
 
17027
  case $as_dir in #(
 
17028
  -*) as_dir=./$as_dir;;
 
17029
  esac
 
17030
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25120
17031
    as_dirs=
25121
 
    while test ! -d "$as_dir"; do
25122
 
      as_dirs="$as_dir $as_dirs"
25123
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
17032
    while :; do
 
17033
      case $as_dir in #(
 
17034
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
17035
      *) as_qdir=$as_dir;;
 
17036
      esac
 
17037
      as_dirs="'$as_qdir' $as_dirs"
 
17038
      as_dir=`$as_dirname -- "$as_dir" ||
25124
17039
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25125
17040
         X"$as_dir" : 'X\(//\)[^/]' \| \
25126
17041
         X"$as_dir" : 'X\(//\)$' \| \
25127
 
         X"$as_dir" : 'X\(/\)' \| \
25128
 
         .     : '\(.\)' 2>/dev/null ||
25129
 
echo X"$as_dir" |
25130
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25131
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25132
 
          /^X\(\/\/\)$/{ s//\1/; q; }
25133
 
          /^X\(\/\).*/{ s//\1/; q; }
25134
 
          s/.*/./; q'`
 
17042
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
17043
$as_echo X"$as_dir" |
 
17044
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17045
            s//\1/
 
17046
            q
 
17047
          }
 
17048
          /^X\(\/\/\)[^/].*/{
 
17049
            s//\1/
 
17050
            q
 
17051
          }
 
17052
          /^X\(\/\/\)$/{
 
17053
            s//\1/
 
17054
            q
 
17055
          }
 
17056
          /^X\(\/\).*/{
 
17057
            s//\1/
 
17058
            q
 
17059
          }
 
17060
          s/.*/./; q'`
 
17061
      test -d "$as_dir" && break
25135
17062
    done
25136
 
    test ! -n "$as_dirs" || mkdir $as_dirs
25137
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25138
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
17063
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
17064
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
17065
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25139
17066
   { (exit 1); exit 1; }; }; }
25140
 
 
25141
17067
    # echo "creating $dirpart/$file"
25142
17068
    echo '# dummy' > "$dirpart/$file"
25143
17069
  done
25144
17070
done
25145
17071
 ;;
25146
 
  esac
25147
 
done
25148
 
_ACEOF
25149
 
 
25150
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
17072
    "libtool":C)
 
17073
 
 
17074
    # See if we are running on zsh, and set the options which allow our
 
17075
    # commands through without removal of \ escapes.
 
17076
    if test -n "${ZSH_VERSION+set}" ; then
 
17077
      setopt NO_GLOB_SUBST
 
17078
    fi
 
17079
 
 
17080
    cfgfile="${ofile}T"
 
17081
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
17082
    $RM "$cfgfile"
 
17083
 
 
17084
    cat <<_LT_EOF >> "$cfgfile"
 
17085
#! $SHELL
 
17086
 
 
17087
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
17088
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
17089
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17090
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
17091
#
 
17092
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
17093
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
17094
#   Written by Gordon Matzigkeit, 1996
 
17095
#
 
17096
#   This file is part of GNU Libtool.
 
17097
#
 
17098
# GNU Libtool is free software; you can redistribute it and/or
 
17099
# modify it under the terms of the GNU General Public License as
 
17100
# published by the Free Software Foundation; either version 2 of
 
17101
# the License, or (at your option) any later version.
 
17102
#
 
17103
# As a special exception to the GNU General Public License,
 
17104
# if you distribute this file as part of a program or library that
 
17105
# is built using GNU Libtool, you may include this file under the
 
17106
# same distribution terms that you use for the rest of that program.
 
17107
#
 
17108
# GNU Libtool is distributed in the hope that it will be useful,
 
17109
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17110
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17111
# GNU General Public License for more details.
 
17112
#
 
17113
# You should have received a copy of the GNU General Public License
 
17114
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
17115
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
17116
# obtained by writing to the Free Software Foundation, Inc.,
 
17117
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17118
 
 
17119
 
 
17120
# The names of the tagged configurations supported by this script.
 
17121
available_tags=""
 
17122
 
 
17123
# ### BEGIN LIBTOOL CONFIG
 
17124
 
 
17125
# Assembler program.
 
17126
AS=$AS
 
17127
 
 
17128
# DLL creation program.
 
17129
DLLTOOL=$DLLTOOL
 
17130
 
 
17131
# Object dumper program.
 
17132
OBJDUMP=$OBJDUMP
 
17133
 
 
17134
# Which release of libtool.m4 was used?
 
17135
macro_version=$macro_version
 
17136
macro_revision=$macro_revision
 
17137
 
 
17138
# Whether or not to build shared libraries.
 
17139
build_libtool_libs=$enable_shared
 
17140
 
 
17141
# Whether or not to build static libraries.
 
17142
build_old_libs=$enable_static
 
17143
 
 
17144
# What type of objects to build.
 
17145
pic_mode=$pic_mode
 
17146
 
 
17147
# Whether or not to optimize for fast installation.
 
17148
fast_install=$enable_fast_install
 
17149
 
 
17150
# The host system.
 
17151
host_alias=$host_alias
 
17152
host=$host
 
17153
host_os=$host_os
 
17154
 
 
17155
# The build system.
 
17156
build_alias=$build_alias
 
17157
build=$build
 
17158
build_os=$build_os
 
17159
 
 
17160
# A sed program that does not truncate output.
 
17161
SED=$lt_SED
 
17162
 
 
17163
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
17164
Xsed="\$SED -e 1s/^X//"
 
17165
 
 
17166
# A grep program that handles long lines.
 
17167
GREP=$lt_GREP
 
17168
 
 
17169
# An ERE matcher.
 
17170
EGREP=$lt_EGREP
 
17171
 
 
17172
# A literal string matcher.
 
17173
FGREP=$lt_FGREP
 
17174
 
 
17175
# A BSD- or MS-compatible name lister.
 
17176
NM=$lt_NM
 
17177
 
 
17178
# Whether we need soft or hard links.
 
17179
LN_S=$lt_LN_S
 
17180
 
 
17181
# What is the maximum length of a command?
 
17182
max_cmd_len=$max_cmd_len
 
17183
 
 
17184
# Object file suffix (normally "o").
 
17185
objext=$ac_objext
 
17186
 
 
17187
# Executable file suffix (normally "").
 
17188
exeext=$exeext
 
17189
 
 
17190
# whether the shell understands "unset".
 
17191
lt_unset=$lt_unset
 
17192
 
 
17193
# turn spaces into newlines.
 
17194
SP2NL=$lt_lt_SP2NL
 
17195
 
 
17196
# turn newlines into spaces.
 
17197
NL2SP=$lt_lt_NL2SP
 
17198
 
 
17199
# How to create reloadable object files.
 
17200
reload_flag=$lt_reload_flag
 
17201
reload_cmds=$lt_reload_cmds
 
17202
 
 
17203
# Method to check whether dependent libraries are shared objects.
 
17204
deplibs_check_method=$lt_deplibs_check_method
 
17205
 
 
17206
# Command to use when deplibs_check_method == "file_magic".
 
17207
file_magic_cmd=$lt_file_magic_cmd
 
17208
 
 
17209
# The archiver.
 
17210
AR=$lt_AR
 
17211
AR_FLAGS=$lt_AR_FLAGS
 
17212
 
 
17213
# A symbol stripping program.
 
17214
STRIP=$lt_STRIP
 
17215
 
 
17216
# Commands used to install an old-style archive.
 
17217
RANLIB=$lt_RANLIB
 
17218
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17219
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17220
 
 
17221
# A C compiler.
 
17222
LTCC=$lt_CC
 
17223
 
 
17224
# LTCC compiler flags.
 
17225
LTCFLAGS=$lt_CFLAGS
 
17226
 
 
17227
# Take the output of nm and produce a listing of raw symbols and C names.
 
17228
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17229
 
 
17230
# Transform the output of nm in a proper C declaration.
 
17231
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17232
 
 
17233
# Transform the output of nm in a C name address pair.
 
17234
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17235
 
 
17236
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
17237
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
17238
 
 
17239
# The name of the directory that contains temporary libtool files.
 
17240
objdir=$objdir
 
17241
 
 
17242
# Shell to use when invoking shell scripts.
 
17243
SHELL=$lt_SHELL
 
17244
 
 
17245
# An echo program that does not interpret backslashes.
 
17246
ECHO=$lt_ECHO
 
17247
 
 
17248
# Used to examine libraries when file_magic_cmd begins with "file".
 
17249
MAGIC_CMD=$MAGIC_CMD
 
17250
 
 
17251
# Must we lock files when doing compilation?
 
17252
need_locks=$lt_need_locks
 
17253
 
 
17254
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
17255
DSYMUTIL=$lt_DSYMUTIL
 
17256
 
 
17257
# Tool to change global to local symbols on Mac OS X.
 
17258
NMEDIT=$lt_NMEDIT
 
17259
 
 
17260
# Tool to manipulate fat objects and archives on Mac OS X.
 
17261
LIPO=$lt_LIPO
 
17262
 
 
17263
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
17264
OTOOL=$lt_OTOOL
 
17265
 
 
17266
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
17267
OTOOL64=$lt_OTOOL64
 
17268
 
 
17269
# Old archive suffix (normally "a").
 
17270
libext=$libext
 
17271
 
 
17272
# Shared library suffix (normally ".so").
 
17273
shrext_cmds=$lt_shrext_cmds
 
17274
 
 
17275
# The commands to extract the exported symbol list from a shared archive.
 
17276
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17277
 
 
17278
# Variables whose values should be saved in libtool wrapper scripts and
 
17279
# restored at link time.
 
17280
variables_saved_for_relink=$lt_variables_saved_for_relink
 
17281
 
 
17282
# Do we need the "lib" prefix for modules?
 
17283
need_lib_prefix=$need_lib_prefix
 
17284
 
 
17285
# Do we need a version for libraries?
 
17286
need_version=$need_version
 
17287
 
 
17288
# Library versioning type.
 
17289
version_type=$version_type
 
17290
 
 
17291
# Shared library runtime path variable.
 
17292
runpath_var=$runpath_var
 
17293
 
 
17294
# Shared library path variable.
 
17295
shlibpath_var=$shlibpath_var
 
17296
 
 
17297
# Is shlibpath searched before the hard-coded library search path?
 
17298
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17299
 
 
17300
# Format of library name prefix.
 
17301
libname_spec=$lt_libname_spec
 
17302
 
 
17303
# List of archive names.  First name is the real one, the rest are links.
 
17304
# The last name is the one that the linker finds with -lNAME
 
17305
library_names_spec=$lt_library_names_spec
 
17306
 
 
17307
# The coded name of the library, if different from the real name.
 
17308
soname_spec=$lt_soname_spec
 
17309
 
 
17310
# Command to use after installation of a shared archive.
 
17311
postinstall_cmds=$lt_postinstall_cmds
 
17312
 
 
17313
# Command to use after uninstallation of a shared archive.
 
17314
postuninstall_cmds=$lt_postuninstall_cmds
 
17315
 
 
17316
# Commands used to finish a libtool library installation in a directory.
 
17317
finish_cmds=$lt_finish_cmds
 
17318
 
 
17319
# As "finish_cmds", except a single script fragment to be evaled but
 
17320
# not shown.
 
17321
finish_eval=$lt_finish_eval
 
17322
 
 
17323
# Whether we should hardcode library paths into libraries.
 
17324
hardcode_into_libs=$hardcode_into_libs
 
17325
 
 
17326
# Compile-time system search path for libraries.
 
17327
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17328
 
 
17329
# Run-time system search path for libraries.
 
17330
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17331
 
 
17332
# Whether dlopen is supported.
 
17333
dlopen_support=$enable_dlopen
 
17334
 
 
17335
# Whether dlopen of programs is supported.
 
17336
dlopen_self=$enable_dlopen_self
 
17337
 
 
17338
# Whether dlopen of statically linked programs is supported.
 
17339
dlopen_self_static=$enable_dlopen_self_static
 
17340
 
 
17341
# Commands to strip libraries.
 
17342
old_striplib=$lt_old_striplib
 
17343
striplib=$lt_striplib
 
17344
 
 
17345
 
 
17346
# The linker used to build libraries.
 
17347
LD=$lt_LD
 
17348
 
 
17349
# Commands used to build an old-style archive.
 
17350
old_archive_cmds=$lt_old_archive_cmds
 
17351
 
 
17352
# A language specific compiler.
 
17353
CC=$lt_compiler
 
17354
 
 
17355
# Is the compiler the GNU compiler?
 
17356
with_gcc=$GCC
 
17357
 
 
17358
# Compiler flag to turn off builtin functions.
 
17359
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
17360
 
 
17361
# How to pass a linker flag through the compiler.
 
17362
wl=$lt_lt_prog_compiler_wl
 
17363
 
 
17364
# Additional compiler flags for building library objects.
 
17365
pic_flag=$lt_lt_prog_compiler_pic
 
17366
 
 
17367
# Compiler flag to prevent dynamic linking.
 
17368
link_static_flag=$lt_lt_prog_compiler_static
 
17369
 
 
17370
# Does compiler simultaneously support -c and -o options?
 
17371
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
17372
 
 
17373
# Whether or not to add -lc for building shared libraries.
 
17374
build_libtool_need_lc=$archive_cmds_need_lc
 
17375
 
 
17376
# Whether or not to disallow shared libs when runtime libs are static.
 
17377
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
17378
 
 
17379
# Compiler flag to allow reflexive dlopens.
 
17380
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
17381
 
 
17382
# Compiler flag to generate shared objects directly from archives.
 
17383
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
17384
 
 
17385
# Whether the compiler copes with passing no objects directly.
 
17386
compiler_needs_object=$lt_compiler_needs_object
 
17387
 
 
17388
# Create an old-style archive from a shared archive.
 
17389
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
17390
 
 
17391
# Create a temporary old-style archive to link instead of a shared archive.
 
17392
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
17393
 
 
17394
# Commands used to build a shared archive.
 
17395
archive_cmds=$lt_archive_cmds
 
17396
archive_expsym_cmds=$lt_archive_expsym_cmds
 
17397
 
 
17398
# Commands used to build a loadable module if different from building
 
17399
# a shared archive.
 
17400
module_cmds=$lt_module_cmds
 
17401
module_expsym_cmds=$lt_module_expsym_cmds
 
17402
 
 
17403
# Whether we are building with GNU ld or not.
 
17404
with_gnu_ld=$lt_with_gnu_ld
 
17405
 
 
17406
# Flag that allows shared libraries with undefined symbols to be built.
 
17407
allow_undefined_flag=$lt_allow_undefined_flag
 
17408
 
 
17409
# Flag that enforces no undefined symbols.
 
17410
no_undefined_flag=$lt_no_undefined_flag
 
17411
 
 
17412
# Flag to hardcode \$libdir into a binary during linking.
 
17413
# This must work even if \$libdir does not exist
 
17414
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
17415
 
 
17416
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
17417
# during linking.  This must work even if \$libdir does not exist.
 
17418
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
17419
 
 
17420
# Whether we need a single "-rpath" flag with a separated argument.
 
17421
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
17422
 
 
17423
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17424
# DIR into the resulting binary.
 
17425
hardcode_direct=$hardcode_direct
 
17426
 
 
17427
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17428
# DIR into the resulting binary and the resulting library dependency is
 
17429
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
17430
# library is relocated.
 
17431
hardcode_direct_absolute=$hardcode_direct_absolute
 
17432
 
 
17433
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
17434
# into the resulting binary.
 
17435
hardcode_minus_L=$hardcode_minus_L
 
17436
 
 
17437
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
17438
# into the resulting binary.
 
17439
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
17440
 
 
17441
# Set to "yes" if building a shared library automatically hardcodes DIR
 
17442
# into the library and all subsequent libraries and executables linked
 
17443
# against it.
 
17444
hardcode_automatic=$hardcode_automatic
 
17445
 
 
17446
# Set to yes if linker adds runtime paths of dependent libraries
 
17447
# to runtime path list.
 
17448
inherit_rpath=$inherit_rpath
 
17449
 
 
17450
# Whether libtool must link a program against all its dependency libraries.
 
17451
link_all_deplibs=$link_all_deplibs
 
17452
 
 
17453
# Fix the shell variable \$srcfile for the compiler.
 
17454
fix_srcfile_path=$lt_fix_srcfile_path
 
17455
 
 
17456
# Set to "yes" if exported symbols are required.
 
17457
always_export_symbols=$always_export_symbols
 
17458
 
 
17459
# The commands to list exported symbols.
 
17460
export_symbols_cmds=$lt_export_symbols_cmds
 
17461
 
 
17462
# Symbols that should not be listed in the preloaded symbols.
 
17463
exclude_expsyms=$lt_exclude_expsyms
 
17464
 
 
17465
# Symbols that must always be exported.
 
17466
include_expsyms=$lt_include_expsyms
 
17467
 
 
17468
# Commands necessary for linking programs (against libraries) with templates.
 
17469
prelink_cmds=$lt_prelink_cmds
 
17470
 
 
17471
# Specify filename containing input files.
 
17472
file_list_spec=$lt_file_list_spec
 
17473
 
 
17474
# How to hardcode a shared library path into an executable.
 
17475
hardcode_action=$hardcode_action
 
17476
 
 
17477
# ### END LIBTOOL CONFIG
 
17478
 
 
17479
_LT_EOF
 
17480
 
 
17481
  case $host_os in
 
17482
  aix3*)
 
17483
    cat <<\_LT_EOF >> "$cfgfile"
 
17484
# AIX sometimes has problems with the GCC collect2 program.  For some
 
17485
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
17486
# vanish in a puff of smoke.
 
17487
if test "X${COLLECT_NAMES+set}" != Xset; then
 
17488
  COLLECT_NAMES=
 
17489
  export COLLECT_NAMES
 
17490
fi
 
17491
_LT_EOF
 
17492
    ;;
 
17493
  esac
 
17494
 
 
17495
 
 
17496
ltmain="$ac_aux_dir/ltmain.sh"
 
17497
 
 
17498
 
 
17499
  # We use sed instead of cat because bash on DJGPP gets confused if
 
17500
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
17501
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
17502
  # is reportedly fixed, but why not run on old versions too?
 
17503
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
17504
    || (rm -f "$cfgfile"; exit 1)
 
17505
 
 
17506
  case $xsi_shell in
 
17507
  yes)
 
17508
    cat << \_LT_EOF >> "$cfgfile"
 
17509
 
 
17510
# func_dirname file append nondir_replacement
 
17511
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
17512
# otherwise set result to NONDIR_REPLACEMENT.
 
17513
func_dirname ()
 
17514
{
 
17515
  case ${1} in
 
17516
    */*) func_dirname_result="${1%/*}${2}" ;;
 
17517
    *  ) func_dirname_result="${3}" ;;
 
17518
  esac
 
17519
}
 
17520
 
 
17521
# func_basename file
 
17522
func_basename ()
 
17523
{
 
17524
  func_basename_result="${1##*/}"
 
17525
}
 
17526
 
 
17527
# func_dirname_and_basename file append nondir_replacement
 
17528
# perform func_basename and func_dirname in a single function
 
17529
# call:
 
17530
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
17531
#             add APPEND to the result, otherwise set result
 
17532
#             to NONDIR_REPLACEMENT.
 
17533
#             value returned in "$func_dirname_result"
 
17534
#   basename: Compute filename of FILE.
 
17535
#             value retuned in "$func_basename_result"
 
17536
# Implementation must be kept synchronized with func_dirname
 
17537
# and func_basename. For efficiency, we do not delegate to
 
17538
# those functions but instead duplicate the functionality here.
 
17539
func_dirname_and_basename ()
 
17540
{
 
17541
  case ${1} in
 
17542
    */*) func_dirname_result="${1%/*}${2}" ;;
 
17543
    *  ) func_dirname_result="${3}" ;;
 
17544
  esac
 
17545
  func_basename_result="${1##*/}"
 
17546
}
 
17547
 
 
17548
# func_stripname prefix suffix name
 
17549
# strip PREFIX and SUFFIX off of NAME.
 
17550
# PREFIX and SUFFIX must not contain globbing or regex special
 
17551
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
17552
# dot (in which case that matches only a dot).
 
17553
func_stripname ()
 
17554
{
 
17555
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
17556
  # positional parameters, so assign one to ordinary parameter first.
 
17557
  func_stripname_result=${3}
 
17558
  func_stripname_result=${func_stripname_result#"${1}"}
 
17559
  func_stripname_result=${func_stripname_result%"${2}"}
 
17560
}
 
17561
 
 
17562
# func_opt_split
 
17563
func_opt_split ()
 
17564
{
 
17565
  func_opt_split_opt=${1%%=*}
 
17566
  func_opt_split_arg=${1#*=}
 
17567
}
 
17568
 
 
17569
# func_lo2o object
 
17570
func_lo2o ()
 
17571
{
 
17572
  case ${1} in
 
17573
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
17574
    *)    func_lo2o_result=${1} ;;
 
17575
  esac
 
17576
}
 
17577
 
 
17578
# func_xform libobj-or-source
 
17579
func_xform ()
 
17580
{
 
17581
  func_xform_result=${1%.*}.lo
 
17582
}
 
17583
 
 
17584
# func_arith arithmetic-term...
 
17585
func_arith ()
 
17586
{
 
17587
  func_arith_result=$(( $* ))
 
17588
}
 
17589
 
 
17590
# func_len string
 
17591
# STRING may not start with a hyphen.
 
17592
func_len ()
 
17593
{
 
17594
  func_len_result=${#1}
 
17595
}
 
17596
 
 
17597
_LT_EOF
 
17598
    ;;
 
17599
  *) # Bourne compatible functions.
 
17600
    cat << \_LT_EOF >> "$cfgfile"
 
17601
 
 
17602
# func_dirname file append nondir_replacement
 
17603
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
17604
# otherwise set result to NONDIR_REPLACEMENT.
 
17605
func_dirname ()
 
17606
{
 
17607
  # Extract subdirectory from the argument.
 
17608
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
17609
  if test "X$func_dirname_result" = "X${1}"; then
 
17610
    func_dirname_result="${3}"
 
17611
  else
 
17612
    func_dirname_result="$func_dirname_result${2}"
 
17613
  fi
 
17614
}
 
17615
 
 
17616
# func_basename file
 
17617
func_basename ()
 
17618
{
 
17619
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
17620
}
 
17621
 
 
17622
 
 
17623
# func_stripname prefix suffix name
 
17624
# strip PREFIX and SUFFIX off of NAME.
 
17625
# PREFIX and SUFFIX must not contain globbing or regex special
 
17626
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
17627
# dot (in which case that matches only a dot).
 
17628
# func_strip_suffix prefix name
 
17629
func_stripname ()
 
17630
{
 
17631
  case ${2} in
 
17632
    .*) func_stripname_result=`$ECHO "X${3}" \
 
17633
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
17634
    *)  func_stripname_result=`$ECHO "X${3}" \
 
17635
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
17636
  esac
 
17637
}
 
17638
 
 
17639
# sed scripts:
 
17640
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
17641
my_sed_long_arg='1s/^-[^=]*=//'
 
17642
 
 
17643
# func_opt_split
 
17644
func_opt_split ()
 
17645
{
 
17646
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
17647
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
17648
}
 
17649
 
 
17650
# func_lo2o object
 
17651
func_lo2o ()
 
17652
{
 
17653
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
17654
}
 
17655
 
 
17656
# func_xform libobj-or-source
 
17657
func_xform ()
 
17658
{
 
17659
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
17660
}
 
17661
 
 
17662
# func_arith arithmetic-term...
 
17663
func_arith ()
 
17664
{
 
17665
  func_arith_result=`expr "$@"`
 
17666
}
 
17667
 
 
17668
# func_len string
 
17669
# STRING may not start with a hyphen.
 
17670
func_len ()
 
17671
{
 
17672
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
17673
}
 
17674
 
 
17675
_LT_EOF
 
17676
esac
 
17677
 
 
17678
case $lt_shell_append in
 
17679
  yes)
 
17680
    cat << \_LT_EOF >> "$cfgfile"
 
17681
 
 
17682
# func_append var value
 
17683
# Append VALUE to the end of shell variable VAR.
 
17684
func_append ()
 
17685
{
 
17686
  eval "$1+=\$2"
 
17687
}
 
17688
_LT_EOF
 
17689
    ;;
 
17690
  *)
 
17691
    cat << \_LT_EOF >> "$cfgfile"
 
17692
 
 
17693
# func_append var value
 
17694
# Append VALUE to the end of shell variable VAR.
 
17695
func_append ()
 
17696
{
 
17697
  eval "$1=\$$1\$2"
 
17698
}
 
17699
 
 
17700
_LT_EOF
 
17701
    ;;
 
17702
  esac
 
17703
 
 
17704
 
 
17705
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
17706
    || (rm -f "$cfgfile"; exit 1)
 
17707
 
 
17708
  mv -f "$cfgfile" "$ofile" ||
 
17709
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
17710
  chmod +x "$ofile"
 
17711
 
 
17712
 ;;
 
17713
 
 
17714
  esac
 
17715
done # for ac_tag
 
17716
 
25151
17717
 
25152
17718
{ (exit 0); exit 0; }
25153
17719
_ACEOF
25154
17720
chmod +x $CONFIG_STATUS
25155
17721
ac_clean_files=$ac_clean_files_save
25156
17722
 
 
17723
test $ac_write_fail = 0 ||
 
17724
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
17725
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
17726
   { (exit 1); exit 1; }; }
 
17727
 
25157
17728
 
25158
17729
# configure is writing to config.log, and then calls config.status.
25159
17730
# config.status does its own redirection, appending to config.log.
25175
17746
  # would make configure fail if this is the last instruction.
25176
17747
  $ac_cs_success || { (exit 1); exit 1; }
25177
17748
fi
 
17749
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
17750
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
17751
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
17752
fi
25178
17753