~ubuntu-branches/ubuntu/maverick/xdrawchem/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2010-07-14 14:59:08 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100714145908-z8o1t4rwvja9vm1b
Tags: 1.9.9-4.1
* Non-maintainer upload.
* debian/patches/04_shellescape.dpatch:
  - Fix location of patched files (Closes: #560527).

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.61 for xdrawchem 1.9.4.
 
3
# Generated by GNU Autoconf 2.59 for xdrawchem 1.9.4.
4
4
#
5
5
# Report bugs to <bherger@users.sourceforge.net>.
6
6
#
7
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
9
8
# This configure script is free software; the Free Software Foundation
10
9
# gives unlimited permission to copy, distribute and modify it.
11
10
## --------------------- ##
12
11
## M4sh Initialization.  ##
13
12
## --------------------- ##
14
13
 
15
 
# Be more Bourne compatible
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
16
24
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
 
  emulate sh
19
 
  NULLCMD=:
20
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
 
  # is contrary to our usage.  Disable this feature.
22
 
  alias -g '${1+"$@"}'='"$@"'
23
 
  setopt NO_GLOB_SUBST
24
 
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
27
 
esac
28
 
 
29
 
fi
30
 
 
31
 
 
32
 
 
33
 
 
34
 
# PATH needs CR
35
 
# Avoid depending upon Character Ranges.
36
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
 
as_cr_digits='0123456789'
40
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
 
 
42
 
# The user is always right.
43
 
if test "${PATH_SEPARATOR+set}" != set; then
44
 
  echo "#! /bin/sh" >conf$$.sh
45
 
  echo  "exit 0"   >>conf$$.sh
46
 
  chmod +x conf$$.sh
47
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
 
    PATH_SEPARATOR=';'
49
 
  else
50
 
    PATH_SEPARATOR=:
51
 
  fi
52
 
  rm -f conf$$.sh
53
 
fi
54
25
 
55
26
# Support unset when possible.
56
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60
31
fi
61
32
 
62
33
 
63
 
# IFS
64
 
# We need space, tab and new line, in precisely that order.  Quoting is
65
 
# there to prevent editors from complaining about space-tab.
66
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
 
# splitting by setting IFS to empty value.)
68
 
as_nl='
69
 
'
70
 
IFS=" ""        $as_nl"
71
 
 
72
 
# Find who we are.  Look in the path if we contain no directory separator.
73
 
case $0 in
74
 
  *[\\/]* ) as_myself=$0 ;;
75
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
 
for as_dir in $PATH
77
 
do
78
 
  IFS=$as_save_IFS
79
 
  test -z "$as_dir" && as_dir=.
80
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
 
done
82
 
IFS=$as_save_IFS
83
 
 
84
 
     ;;
85
 
esac
86
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
 
# in which case we are not to be found in the path.
88
 
if test "x$as_myself" = x; then
89
 
  as_myself=$0
90
 
fi
91
 
if test ! -f "$as_myself"; then
92
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
 
  { (exit 1); exit 1; }
94
 
fi
95
 
 
96
34
# Work around bugs in pre-3.0 UWIN ksh.
97
 
for as_var in ENV MAIL MAILPATH
98
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99
 
done
 
35
$as_unset ENV MAIL MAILPATH
100
36
PS1='$ '
101
37
PS2='> '
102
38
PS4='+ '
110
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
47
    eval $as_var=C; export $as_var
112
48
  else
113
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
49
    $as_unset $as_var
114
50
  fi
115
51
done
116
52
 
117
53
# Required to use basename.
118
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
120
55
  as_expr=expr
121
56
else
122
57
  as_expr=false
123
58
fi
124
59
 
125
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
126
61
  as_basename=basename
127
62
else
128
63
  as_basename=false
130
65
 
131
66
 
132
67
# Name of the executable.
133
 
as_me=`$as_basename -- "$0" ||
 
68
as_me=`$as_basename "$0" ||
134
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
70
         X"$0" : 'X\(//\)$' \| \
136
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
137
73
echo X/"$0" |
138
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\/\)$/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          /^X\/\(\/\).*/{
147
 
            s//\1/
148
 
            q
149
 
          }
150
 
          s/.*/./; q'`
151
 
 
152
 
# CDPATH.
153
 
$as_unset CDPATH
154
 
 
155
 
 
156
 
if test "x$CONFIG_SHELL" = x; then
157
 
  if (eval ":") 2>/dev/null; then
158
 
  as_have_required=yes
159
 
else
160
 
  as_have_required=no
161
 
fi
162
 
 
163
 
  if test $as_have_required = yes &&     (eval ":
164
 
(as_func_return () {
165
 
  (exit \$1)
166
 
}
167
 
as_func_success () {
168
 
  as_func_return 0
169
 
}
170
 
as_func_failure () {
171
 
  as_func_return 1
172
 
}
173
 
as_func_ret_success () {
174
 
  return 0
175
 
}
176
 
as_func_ret_failure () {
177
 
  return 1
178
 
}
179
 
 
180
 
exitcode=0
181
 
if as_func_success; then
182
 
  :
183
 
else
184
 
  exitcode=1
185
 
  echo as_func_success failed.
186
 
fi
187
 
 
188
 
if as_func_failure; then
189
 
  exitcode=1
190
 
  echo as_func_failure succeeded.
191
 
fi
192
 
 
193
 
if as_func_ret_success; then
194
 
  :
195
 
else
196
 
  exitcode=1
197
 
  echo as_func_ret_success failed.
198
 
fi
199
 
 
200
 
if as_func_ret_failure; then
201
 
  exitcode=1
202
 
  echo as_func_ret_failure succeeded.
203
 
fi
204
 
 
205
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
 
  :
207
 
else
208
 
  exitcode=1
209
 
  echo positional parameters were not saved.
210
 
fi
211
 
 
212
 
test \$exitcode = 0) || { (exit 1); exit 1; }
213
 
 
214
 
(
215
 
  as_lineno_1=\$LINENO
216
 
  as_lineno_2=\$LINENO
217
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
 
") 2> /dev/null; then
220
 
  :
221
 
else
222
 
  as_candidate_shells=
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
223
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
134
do
226
135
  IFS=$as_save_IFS
227
136
  test -z "$as_dir" && as_dir=.
228
 
  case $as_dir in
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
229
139
         /*)
230
 
           for as_base in sh bash ksh sh5; do
231
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
 
           done;;
233
 
       esac
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
234
154
done
235
 
IFS=$as_save_IFS
236
 
 
237
 
 
238
 
      for as_shell in $as_candidate_shells $SHELL; do
239
 
         # Try only shells that exist, to save several forks.
240
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
242
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
 
  emulate sh
244
 
  NULLCMD=:
245
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
 
  # is contrary to our usage.  Disable this feature.
247
 
  alias -g '${1+"$@"}'='"$@"'
248
 
  setopt NO_GLOB_SUBST
249
 
else
250
 
  case `(set -o) 2>/dev/null` in
251
 
  *posix*) set -o posix ;;
252
 
esac
253
 
 
254
 
fi
255
 
 
256
 
 
257
 
:
258
 
_ASEOF
259
 
}; then
260
 
  CONFIG_SHELL=$as_shell
261
 
               as_have_required=yes
262
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
263
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
 
  emulate sh
265
 
  NULLCMD=:
266
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
 
  # is contrary to our usage.  Disable this feature.
268
 
  alias -g '${1+"$@"}'='"$@"'
269
 
  setopt NO_GLOB_SUBST
270
 
else
271
 
  case `(set -o) 2>/dev/null` in
272
 
  *posix*) set -o posix ;;
273
 
esac
274
 
 
275
 
fi
276
 
 
277
 
 
278
 
:
279
 
(as_func_return () {
280
 
  (exit $1)
281
 
}
282
 
as_func_success () {
283
 
  as_func_return 0
284
 
}
285
 
as_func_failure () {
286
 
  as_func_return 1
287
 
}
288
 
as_func_ret_success () {
289
 
  return 0
290
 
}
291
 
as_func_ret_failure () {
292
 
  return 1
293
 
}
294
 
 
295
 
exitcode=0
296
 
if as_func_success; then
297
 
  :
298
 
else
299
 
  exitcode=1
300
 
  echo as_func_success failed.
301
 
fi
302
 
 
303
 
if as_func_failure; then
304
 
  exitcode=1
305
 
  echo as_func_failure succeeded.
306
 
fi
307
 
 
308
 
if as_func_ret_success; then
309
 
  :
310
 
else
311
 
  exitcode=1
312
 
  echo as_func_ret_success failed.
313
 
fi
314
 
 
315
 
if as_func_ret_failure; then
316
 
  exitcode=1
317
 
  echo as_func_ret_failure succeeded.
318
 
fi
319
 
 
320
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
 
  :
322
 
else
323
 
  exitcode=1
324
 
  echo positional parameters were not saved.
325
 
fi
326
 
 
327
 
test $exitcode = 0) || { (exit 1); exit 1; }
328
 
 
329
 
(
330
 
  as_lineno_1=$LINENO
331
 
  as_lineno_2=$LINENO
332
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
 
 
335
 
_ASEOF
336
 
}; then
337
 
  break
338
 
fi
339
 
 
340
 
fi
341
 
 
342
 
      done
343
 
 
344
 
      if test "x$CONFIG_SHELL" != x; then
345
 
  for as_var in BASH_ENV ENV
346
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
 
        done
348
 
        export CONFIG_SHELL
349
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
 
fi
351
 
 
352
 
 
353
 
    if test $as_have_required = no; then
354
 
  echo This script requires a shell more modern than all the
355
 
      echo shells that I found on your system.  Please install a
356
 
      echo modern shell, or manually run the script under such a
357
 
      echo shell if you do have one.
358
 
      { (exit 1); exit 1; }
359
 
fi
360
 
 
361
 
 
362
 
fi
363
 
 
364
 
fi
365
 
 
366
 
 
367
 
 
368
 
(eval "as_func_return () {
369
 
  (exit \$1)
370
 
}
371
 
as_func_success () {
372
 
  as_func_return 0
373
 
}
374
 
as_func_failure () {
375
 
  as_func_return 1
376
 
}
377
 
as_func_ret_success () {
378
 
  return 0
379
 
}
380
 
as_func_ret_failure () {
381
 
  return 1
382
 
}
383
 
 
384
 
exitcode=0
385
 
if as_func_success; then
386
 
  :
387
 
else
388
 
  exitcode=1
389
 
  echo as_func_success failed.
390
 
fi
391
 
 
392
 
if as_func_failure; then
393
 
  exitcode=1
394
 
  echo as_func_failure succeeded.
395
 
fi
396
 
 
397
 
if as_func_ret_success; then
398
 
  :
399
 
else
400
 
  exitcode=1
401
 
  echo as_func_ret_success failed.
402
 
fi
403
 
 
404
 
if as_func_ret_failure; then
405
 
  exitcode=1
406
 
  echo as_func_ret_failure succeeded.
407
 
fi
408
 
 
409
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
 
  :
411
 
else
412
 
  exitcode=1
413
 
  echo positional parameters were not saved.
414
 
fi
415
 
 
416
 
test \$exitcode = 0") || {
417
 
  echo No shell found that supports shell functions.
418
 
  echo Please tell autoconf@gnu.org about your system,
419
 
  echo including any error possibly output before this
420
 
  echo message
421
 
}
422
 
 
423
 
 
424
 
 
425
 
  as_lineno_1=$LINENO
426
 
  as_lineno_2=$LINENO
427
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
155
;;
 
156
  esac
429
157
 
430
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
 
  # line-number line after each line using $LINENO; the second 'sed'
433
 
  # does the real work.  The second script uses 'N' to pair each
434
 
  # line-number line with the line containing $LINENO, and appends
435
 
  # trailing '-' during substitution so that $LINENO is not a special
436
 
  # case at line end.
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
437
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
440
 
  sed -n '
441
 
    p
442
 
    /[$]LINENO/=
443
 
  ' <$as_myself |
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
444
167
    sed '
445
 
      s/[$]LINENO.*/&-/
446
 
      t lineno
447
 
      b
448
 
      :lineno
449
168
      N
450
 
      :loop
451
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
452
172
      t loop
453
 
      s/-\n.*//
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
454
175
    ' >$as_me.lineno &&
455
 
  chmod +x "$as_me.lineno" ||
 
176
  chmod +x $as_me.lineno ||
456
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
178
   { (exit 1); exit 1; }; }
458
179
 
459
180
  # Don't try to exec as it changes $[0], causing all sort of problems
460
181
  # (the dirname of $[0] is not the place where we might find the
461
 
  # original and so on.  Autoconf is especially sensitive to this).
462
 
  . "./$as_me.lineno"
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
463
184
  # Exit status is that of the last command.
464
185
  exit
465
186
}
466
187
 
467
188
 
468
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
 
  as_dirname=dirname
470
 
else
471
 
  as_dirname=false
472
 
fi
473
 
 
474
 
ECHO_C= ECHO_N= ECHO_T=
475
 
case `echo -n x` in
476
 
-n*)
477
 
  case `echo 'x\c'` in
478
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479
 
  *)   ECHO_C='\c';;
480
 
  esac;;
481
 
*)
482
 
  ECHO_N='-n';;
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
483
194
esac
484
195
 
485
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
487
197
  as_expr=expr
488
198
else
489
199
  as_expr=false
490
200
fi
491
201
 
492
202
rm -f conf$$ conf$$.exe conf$$.file
493
 
if test -d conf$$.dir; then
494
 
  rm -f conf$$.dir/conf$$.file
495
 
else
496
 
  rm -f conf$$.dir
497
 
  mkdir conf$$.dir
498
 
fi
499
203
echo >conf$$.file
500
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
 
  as_ln_s='ln -s'
502
 
  # ... but there are two gotchas:
503
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
 
  # In both cases, we have to default to `cp -p'.
506
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
507
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
508
213
elif ln conf$$.file conf$$ 2>/dev/null; then
509
214
  as_ln_s=ln
510
215
else
511
216
  as_ln_s='cp -p'
512
217
fi
513
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
 
rmdir conf$$.dir 2>/dev/null
 
218
rm -f conf$$ conf$$.exe conf$$.file
515
219
 
516
220
if mkdir -p . 2>/dev/null; then
517
221
  as_mkdir_p=:
520
224
  as_mkdir_p=false
521
225
fi
522
226
 
523
 
if test -x / >/dev/null 2>&1; then
524
 
  as_test_x='test -x'
525
 
else
526
 
  if ls -dL / >/dev/null 2>&1; then
527
 
    as_ls_L_option=L
528
 
  else
529
 
    as_ls_L_option=
530
 
  fi
531
 
  as_test_x='
532
 
    eval sh -c '\''
533
 
      if test -d "$1"; then
534
 
        test -d "$1/.";
535
 
      else
536
 
        case $1 in
537
 
        -*)set "./$1";;
538
 
        esac;
539
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
 
        ???[sx]*):;;*)false;;esac;fi
541
 
    '\'' sh
542
 
  '
543
 
fi
544
 
as_executable_p=$as_test_x
 
227
as_executable_p="test -f"
545
228
 
546
229
# Sed expression to map a string onto a valid CPP name.
547
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
234
 
552
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
553
245
 
554
246
 
555
247
# Check that we are running under the correct shell.
595
287
# find a string as large as possible, as long as the shell can cope with it
596
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
 
       echo_test_string=`eval $cmd` &&
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
600
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601
293
    then
602
294
      break
705
397
 
706
398
tagnames=${tagnames+${tagnames},}F77
707
399
 
708
 
exec 7<&0 </dev/null 6>&1
709
 
 
710
400
# Name of the host.
711
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
402
# so uname gets run too.
713
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
404
 
 
405
exec 6>&1
 
406
 
715
407
#
716
408
# Initializations.
717
409
#
718
410
ac_default_prefix=/usr/local
719
 
ac_clean_files=
720
411
ac_config_libobj_dir=.
721
 
LIBOBJS=
722
412
cross_compiling=no
723
413
subdirs=
724
414
MFLAGS=
725
415
MAKEFLAGS=
726
416
SHELL=${CONFIG_SHELL-/bin/sh}
727
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
728
423
# Identity of this package.
729
424
PACKAGE_NAME='xdrawchem'
730
425
PACKAGE_TARNAME='xdrawchem'
736
431
# Factoring default headers for most tests.
737
432
ac_includes_default="\
738
433
#include <stdio.h>
739
 
#ifdef HAVE_SYS_TYPES_H
 
434
#if HAVE_SYS_TYPES_H
740
435
# include <sys/types.h>
741
436
#endif
742
 
#ifdef HAVE_SYS_STAT_H
 
437
#if HAVE_SYS_STAT_H
743
438
# include <sys/stat.h>
744
439
#endif
745
 
#ifdef STDC_HEADERS
 
440
#if STDC_HEADERS
746
441
# include <stdlib.h>
747
442
# include <stddef.h>
748
443
#else
749
 
# ifdef HAVE_STDLIB_H
 
444
# if HAVE_STDLIB_H
750
445
#  include <stdlib.h>
751
446
# endif
752
447
#endif
753
 
#ifdef HAVE_STRING_H
754
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
755
450
#  include <memory.h>
756
451
# endif
757
452
# include <string.h>
758
453
#endif
759
 
#ifdef HAVE_STRINGS_H
 
454
#if HAVE_STRINGS_H
760
455
# include <strings.h>
761
456
#endif
762
 
#ifdef HAVE_INTTYPES_H
 
457
#if HAVE_INTTYPES_H
763
458
# include <inttypes.h>
764
 
#endif
765
 
#ifdef HAVE_STDINT_H
766
 
# include <stdint.h>
767
 
#endif
768
 
#ifdef HAVE_UNISTD_H
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
769
465
# include <unistd.h>
770
466
#endif"
771
467
 
772
 
ac_subst_vars='SHELL
773
 
PATH_SEPARATOR
774
 
PACKAGE_NAME
775
 
PACKAGE_TARNAME
776
 
PACKAGE_VERSION
777
 
PACKAGE_STRING
778
 
PACKAGE_BUGREPORT
779
 
exec_prefix
780
 
prefix
781
 
program_transform_name
782
 
bindir
783
 
sbindir
784
 
libexecdir
785
 
datarootdir
786
 
datadir
787
 
sysconfdir
788
 
sharedstatedir
789
 
localstatedir
790
 
includedir
791
 
oldincludedir
792
 
docdir
793
 
infodir
794
 
htmldir
795
 
dvidir
796
 
pdfdir
797
 
psdir
798
 
libdir
799
 
localedir
800
 
mandir
801
 
DEFS
802
 
ECHO_C
803
 
ECHO_N
804
 
ECHO_T
805
 
LIBS
806
 
build_alias
807
 
host_alias
808
 
target_alias
809
 
INSTALL_PROGRAM
810
 
INSTALL_SCRIPT
811
 
INSTALL_DATA
812
 
am__isrc
813
 
CYGPATH_W
814
 
PACKAGE
815
 
VERSION
816
 
ACLOCAL
817
 
AUTOCONF
818
 
AUTOMAKE
819
 
AUTOHEADER
820
 
MAKEINFO
821
 
install_sh
822
 
STRIP
823
 
INSTALL_STRIP_PROGRAM
824
 
mkdir_p
825
 
AWK
826
 
SET_MAKE
827
 
am__leading_dot
828
 
AMTAR
829
 
am__tar
830
 
am__untar
831
 
PKG_CONFIG
832
 
XDRAWCHEM_CFLAGS
833
 
XDRAWCHEM_LIBS
834
 
openbabel_version
835
 
CXX
836
 
CXXFLAGS
837
 
LDFLAGS
838
 
CPPFLAGS
839
 
ac_ct_CXX
840
 
EXEEXT
841
 
OBJEXT
842
 
DEPDIR
843
 
am__include
844
 
am__quote
845
 
AMDEP_TRUE
846
 
AMDEP_FALSE
847
 
AMDEPBACKSLASH
848
 
CXXDEPMODE
849
 
am__fastdepCXX_TRUE
850
 
am__fastdepCXX_FALSE
851
 
CC
852
 
CFLAGS
853
 
ac_ct_CC
854
 
CCDEPMODE
855
 
am__fastdepCC_TRUE
856
 
am__fastdepCC_FALSE
857
 
build
858
 
build_cpu
859
 
build_vendor
860
 
build_os
861
 
host
862
 
host_cpu
863
 
host_vendor
864
 
host_os
865
 
SED
866
 
GREP
867
 
EGREP
868
 
LN_S
869
 
ECHO
870
 
AR
871
 
RANLIB
872
 
CPP
873
 
CXXCPP
874
 
F77
875
 
FFLAGS
876
 
ac_ct_F77
877
 
LIBTOOL
878
 
LIBTOOL_DEPS
879
 
XMKMF
880
 
MOC
881
 
UIC
882
 
QEMBED
883
 
QT_CXXFLAGS
884
 
QT_LDADD
885
 
QT_GUILINK
886
 
QASSISTANTCLIENT_LDADD
887
 
LIBOBJS
888
 
MY_SUBDIRS
889
 
LTLIBOBJS'
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar PKG_CONFIG XDRAWCHEM_CFLAGS XDRAWCHEM_LIBS openbabel_version CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS MOC UIC QEMBED QT_CXXFLAGS QT_LDADD QT_GUILINK QASSISTANTCLIENT_LDADD LIBOBJS MY_SUBDIRS LTLIBOBJS'
890
469
ac_subst_files=''
891
 
      ac_precious_vars='build_alias
892
 
host_alias
893
 
target_alias
894
 
PKG_CONFIG
895
 
XDRAWCHEM_CFLAGS
896
 
XDRAWCHEM_LIBS
897
 
CXX
898
 
CXXFLAGS
899
 
LDFLAGS
900
 
LIBS
901
 
CPPFLAGS
902
 
CCC
903
 
CC
904
 
CFLAGS
905
 
CPP
906
 
CXXCPP
907
 
F77
908
 
FFLAGS
909
 
XMKMF'
910
 
 
911
470
 
912
471
# Initialize some variables set by options.
913
472
ac_init_help=
934
493
# and all the variables that are supposed to be based on exec_prefix
935
494
# by default will actually change.
936
495
# Use braces instead of parens because sh, perl, etc. also accept them.
937
 
# (The list follows the same order as the GNU Coding Standards.)
938
496
bindir='${exec_prefix}/bin'
939
497
sbindir='${exec_prefix}/sbin'
940
498
libexecdir='${exec_prefix}/libexec'
941
 
datarootdir='${prefix}/share'
942
 
datadir='${datarootdir}'
 
499
datadir='${prefix}/share'
943
500
sysconfdir='${prefix}/etc'
944
501
sharedstatedir='${prefix}/com'
945
502
localstatedir='${prefix}/var'
 
503
libdir='${exec_prefix}/lib'
946
504
includedir='${prefix}/include'
947
505
oldincludedir='/usr/include'
948
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949
 
infodir='${datarootdir}/info'
950
 
htmldir='${docdir}'
951
 
dvidir='${docdir}'
952
 
pdfdir='${docdir}'
953
 
psdir='${docdir}'
954
 
libdir='${exec_prefix}/lib'
955
 
localedir='${datarootdir}/locale'
956
 
mandir='${datarootdir}/man'
 
506
infodir='${prefix}/info'
 
507
mandir='${prefix}/man'
957
508
 
958
509
ac_prev=
959
 
ac_dashdash=
960
510
for ac_option
961
511
do
962
512
  # If the previous option needs an argument, assign it.
963
513
  if test -n "$ac_prev"; then
964
 
    eval $ac_prev=\$ac_option
 
514
    eval "$ac_prev=\$ac_option"
965
515
    ac_prev=
966
516
    continue
967
517
  fi
968
518
 
969
 
  case $ac_option in
970
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971
 
  *)    ac_optarg=yes ;;
972
 
  esac
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
973
520
 
974
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
975
522
 
976
 
  case $ac_dashdash$ac_option in
977
 
  --)
978
 
    ac_dashdash=yes ;;
 
523
  case $ac_option in
979
524
 
980
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
981
526
    ac_prev=bindir ;;
997
542
  --config-cache | -C)
998
543
    cache_file=config.cache ;;
999
544
 
1000
 
  -datadir | --datadir | --datadi | --datad)
 
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1001
546
    ac_prev=datadir ;;
1002
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
548
  | --da=*)
1003
549
    datadir=$ac_optarg ;;
1004
550
 
1005
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006
 
  | --dataroo | --dataro | --datar)
1007
 
    ac_prev=datarootdir ;;
1008
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010
 
    datarootdir=$ac_optarg ;;
1011
 
 
1012
551
  -disable-* | --disable-*)
1013
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014
553
    # Reject names that are not valid shell variable names.
1015
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
554
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1016
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017
556
   { (exit 1); exit 1; }; }
1018
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019
 
    eval enable_$ac_feature=no ;;
1020
 
 
1021
 
  -docdir | --docdir | --docdi | --doc | --do)
1022
 
    ac_prev=docdir ;;
1023
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024
 
    docdir=$ac_optarg ;;
1025
 
 
1026
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027
 
    ac_prev=dvidir ;;
1028
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029
 
    dvidir=$ac_optarg ;;
 
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
558
    eval "enable_$ac_feature=no" ;;
1030
559
 
1031
560
  -enable-* | --enable-*)
1032
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033
562
    # Reject names that are not valid shell variable names.
1034
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
563
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1035
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1036
565
   { (exit 1); exit 1; }; }
1037
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1038
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
569
      *) ac_optarg=yes ;;
 
570
    esac
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
1039
572
 
1040
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062
595
  -host=* | --host=* | --hos=* | --ho=*)
1063
596
    host_alias=$ac_optarg ;;
1064
597
 
1065
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066
 
    ac_prev=htmldir ;;
1067
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068
 
  | --ht=*)
1069
 
    htmldir=$ac_optarg ;;
1070
 
 
1071
598
  -includedir | --includedir | --includedi | --included | --include \
1072
599
  | --includ | --inclu | --incl | --inc)
1073
600
    ac_prev=includedir ;;
1092
619
  | --libexe=* | --libex=* | --libe=*)
1093
620
    libexecdir=$ac_optarg ;;
1094
621
 
1095
 
  -localedir | --localedir | --localedi | --localed | --locale)
1096
 
    ac_prev=localedir ;;
1097
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098
 
    localedir=$ac_optarg ;;
1099
 
 
1100
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1101
 
  | --localstate | --localstat | --localsta | --localst | --locals)
 
623
  | --localstate | --localstat | --localsta | --localst \
 
624
  | --locals | --local | --loca | --loc | --lo)
1102
625
    ac_prev=localstatedir ;;
1103
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1105
629
    localstatedir=$ac_optarg ;;
1106
630
 
1107
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
1167
691
    program_transform_name=$ac_optarg ;;
1168
692
 
1169
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170
 
    ac_prev=pdfdir ;;
1171
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172
 
    pdfdir=$ac_optarg ;;
1173
 
 
1174
 
  -psdir | --psdir | --psdi | --psd | --ps)
1175
 
    ac_prev=psdir ;;
1176
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177
 
    psdir=$ac_optarg ;;
1178
 
 
1179
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180
694
  | -silent | --silent | --silen | --sile | --sil)
1181
695
    silent=yes ;;
1228
742
  -with-* | --with-*)
1229
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230
744
    # Reject names that are not valid shell variable names.
1231
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
745
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1232
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1233
747
   { (exit 1); exit 1; }; }
1234
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235
 
    eval with_$ac_package=\$ac_optarg ;;
 
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
751
      *) ac_optarg=yes ;;
 
752
    esac
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
1236
754
 
1237
755
  -without-* | --without-*)
1238
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239
757
    # Reject names that are not valid shell variable names.
1240
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
758
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1241
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1242
760
   { (exit 1); exit 1; }; }
1243
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244
 
    eval with_$ac_package=no ;;
 
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
762
    eval "with_$ac_package=no" ;;
1245
763
 
1246
764
  --x)
1247
765
    # Obsolete; use --with-x.
1272
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1273
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1274
792
   { (exit 1); exit 1; }; }
1275
 
    eval $ac_envvar=\$ac_optarg
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
1276
795
    export $ac_envvar ;;
1277
796
 
1278
797
  *)
1292
811
   { (exit 1); exit 1; }; }
1293
812
fi
1294
813
 
1295
 
# Be sure to have absolute directory names.
1296
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1298
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299
 
                libdir localedir mandir
1300
 
do
1301
 
  eval ac_val=\$$ac_var
1302
 
  case $ac_val in
1303
 
    [\\/$]* | ?:[\\/]* )  continue;;
1304
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305
 
  esac
1306
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1307
 
   { (exit 1); exit 1; }; }
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
1308
835
done
1309
836
 
1310
837
# There might be people who depend on the old broken behavior: `$host'
1331
858
test "$silent" = yes && exec 6>/dev/null
1332
859
 
1333
860
 
1334
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335
 
ac_ls_di=`ls -di .` &&
1336
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1338
 
   { (exit 1); exit 1; }; }
1339
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1341
 
   { (exit 1); exit 1; }; }
1342
 
 
1343
 
 
1344
861
# Find the source files, if location was not specified.
1345
862
if test -z "$srcdir"; then
1346
863
  ac_srcdir_defaulted=yes
1347
 
  # Try the directory containing this script, then the parent directory.
1348
 
  ac_confdir=`$as_dirname -- "$0" ||
 
864
  # Try the directory containing this script, then its parent.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
1349
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350
867
         X"$0" : 'X\(//\)[^/]' \| \
1351
868
         X"$0" : 'X\(//\)$' \| \
1352
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
1353
871
echo X"$0" |
1354
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355
 
            s//\1/
1356
 
            q
1357
 
          }
1358
 
          /^X\(\/\/\)[^/].*/{
1359
 
            s//\1/
1360
 
            q
1361
 
          }
1362
 
          /^X\(\/\/\)$/{
1363
 
            s//\1/
1364
 
            q
1365
 
          }
1366
 
          /^X\(\/\).*/{
1367
 
            s//\1/
1368
 
            q
1369
 
          }
1370
 
          s/.*/./; q'`
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
1371
877
  srcdir=$ac_confdir
1372
 
  if test ! -r "$srcdir/$ac_unique_file"; then
 
878
  if test ! -r $srcdir/$ac_unique_file; then
1373
879
    srcdir=..
1374
880
  fi
1375
881
else
1376
882
  ac_srcdir_defaulted=no
1377
883
fi
1378
 
if test ! -r "$srcdir/$ac_unique_file"; then
1379
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1381
 
   { (exit 1); exit 1; }; }
1382
 
fi
1383
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384
 
ac_abs_confdir=`(
1385
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1386
 
   { (exit 1); exit 1; }; }
1387
 
        pwd)`
1388
 
# When building in place, set srcdir=.
1389
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1390
 
  srcdir=.
1391
 
fi
1392
 
# Remove unnecessary trailing slashes from srcdir.
1393
 
# Double slashes in file names in object file debugging info
1394
 
# mess up M-x gdb in Emacs.
1395
 
case $srcdir in
1396
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397
 
esac
1398
 
for ac_var in $ac_precious_vars; do
1399
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1401
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403
 
done
 
884
if test ! -r $srcdir/$ac_unique_file; then
 
885
  if test "$ac_srcdir_defaulted" = yes; then
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  else
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
 
891
  fi
 
892
fi
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CXX_set=${CXX+set}
 
910
ac_env_CXX_value=$CXX
 
911
ac_cv_env_CXX_set=${CXX+set}
 
912
ac_cv_env_CXX_value=$CXX
 
913
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
914
ac_env_CXXFLAGS_value=$CXXFLAGS
 
915
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
916
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CC_set=${CC+set}
 
926
ac_env_CC_value=$CC
 
927
ac_cv_env_CC_set=${CC+set}
 
928
ac_cv_env_CC_value=$CC
 
929
ac_env_CFLAGS_set=${CFLAGS+set}
 
930
ac_env_CFLAGS_value=$CFLAGS
 
931
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
932
ac_cv_env_CFLAGS_value=$CFLAGS
 
933
ac_env_CPP_set=${CPP+set}
 
934
ac_env_CPP_value=$CPP
 
935
ac_cv_env_CPP_set=${CPP+set}
 
936
ac_cv_env_CPP_value=$CPP
 
937
ac_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_env_CXXCPP_value=$CXXCPP
 
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_cv_env_CXXCPP_value=$CXXCPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
1404
949
 
1405
950
#
1406
951
# Report the --help message.
1429
974
  -n, --no-create         do not create output files
1430
975
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
976
 
 
977
_ACEOF
 
978
 
 
979
  cat <<_ACEOF
1432
980
Installation directories:
1433
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
1434
982
                          [$ac_default_prefix]
1446
994
  --bindir=DIR           user executables [EPREFIX/bin]
1447
995
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1448
996
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
997
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1449
998
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1450
999
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1451
1000
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1452
1001
  --libdir=DIR           object code libraries [EPREFIX/lib]
1453
1002
  --includedir=DIR       C header files [PREFIX/include]
1454
1003
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1455
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1456
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1457
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1458
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1459
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1460
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/xdrawchem]
1461
 
  --htmldir=DIR          html documentation [DOCDIR]
1462
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1463
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1464
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1004
  --infodir=DIR          info documentation [PREFIX/info]
 
1005
  --mandir=DIR           man documentation [PREFIX/man]
1465
1006
_ACEOF
1466
1007
 
1467
1008
  cat <<\_ACEOF
1492
1033
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493
1034
  --disable-dependency-tracking  speeds up one-time build
1494
1035
  --enable-dependency-tracking   do not reject slow dependency extractors
1495
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1496
 
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1036
  --enable-shared[=PKGS]
 
1037
                          build shared libraries [default=yes]
 
1038
  --enable-static[=PKGS]
 
1039
                          build static libraries [default=yes]
1497
1040
  --enable-fast-install[=PKGS]
1498
1041
                          optimize for fast installation [default=yes]
1499
1042
  --disable-libtool-lock  avoid locking (might break parallel builds)
1504
1047
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1505
1048
  --with-pic              try to use only PIC/non-PIC objects [default=use
1506
1049
                          both]
1507
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1050
  --with-tags[=TAGS]
 
1051
                          include additional configurations [automatic]
1508
1052
  --with-x                use the X Window System
1509
1053
  --with-qtincdir=DIR        Qt include directory default=$QTDIR/include
1510
1054
  --with-qtlibdir=DIR        Qt library directory default=$QTDIR/lib
1511
1055
 
1512
1056
Some influential environment variables:
1513
 
  PKG_CONFIG  path to pkg-config utility
1514
 
  XDRAWCHEM_CFLAGS
1515
 
              C compiler flags for XDRAWCHEM, overriding pkg-config
1516
 
  XDRAWCHEM_LIBS
1517
 
              linker flags for XDRAWCHEM, overriding pkg-config
1518
1057
  CXX         C++ compiler command
1519
1058
  CXXFLAGS    C++ compiler flags
1520
1059
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521
1060
              nonstandard directory <lib dir>
1522
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1523
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524
 
              you have headers in a nonstandard directory <include dir>
 
1061
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1062
              headers in a nonstandard directory <include dir>
1525
1063
  CC          C compiler command
1526
1064
  CFLAGS      C compiler flags
1527
1065
  CPP         C preprocessor
1528
1066
  CXXCPP      C++ preprocessor
1529
1067
  F77         Fortran 77 compiler command
1530
1068
  FFLAGS      Fortran 77 compiler flags
1531
 
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1532
1069
 
1533
1070
Use these variables to override the choices made by `configure' or to help
1534
1071
it to find libraries and programs with nonstandard names/locations.
1535
1072
 
1536
1073
Report bugs to <bherger@users.sourceforge.net>.
1537
1074
_ACEOF
1538
 
ac_status=$?
1539
1075
fi
1540
1076
 
1541
1077
if test "$ac_init_help" = "recursive"; then
1542
1078
  # If there are subdirs, report their specific --help.
 
1079
  ac_popdir=`pwd`
1543
1080
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544
 
    test -d "$ac_dir" || continue
 
1081
    test -d $ac_dir || continue
1545
1082
    ac_builddir=.
1546
1083
 
1547
 
case "$ac_dir" in
1548
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549
 
*)
 
1084
if test "$ac_dir" != .; then
1550
1085
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551
 
  # A ".." for each directory in $ac_dir_suffix.
1552
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553
 
  case $ac_top_builddir_sub in
1554
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556
 
  esac ;;
1557
 
esac
1558
 
ac_abs_top_builddir=$ac_pwd
1559
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560
 
# for backward compatibility:
1561
 
ac_top_builddir=$ac_top_build_prefix
 
1086
  # A "../" for each directory in $ac_dir_suffix.
 
1087
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1088
else
 
1089
  ac_dir_suffix= ac_top_builddir=
 
1090
fi
1562
1091
 
1563
1092
case $srcdir in
1564
 
  .)  # We are building in place.
 
1093
  .)  # No --srcdir option.  We are building in place.
1565
1094
    ac_srcdir=.
1566
 
    ac_top_srcdir=$ac_top_builddir_sub
1567
 
    ac_abs_top_srcdir=$ac_pwd ;;
1568
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1095
    if test -z "$ac_top_builddir"; then
 
1096
       ac_top_srcdir=.
 
1097
    else
 
1098
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1099
    fi ;;
 
1100
  [\\/]* | ?:[\\/]* )  # Absolute path.
1569
1101
    ac_srcdir=$srcdir$ac_dir_suffix;
1570
 
    ac_top_srcdir=$srcdir
1571
 
    ac_abs_top_srcdir=$srcdir ;;
1572
 
  *) # Relative name.
1573
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1575
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576
 
esac
1577
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
 
 
1579
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1580
 
    # Check for guested configure.
1581
 
    if test -f "$ac_srcdir/configure.gnu"; then
1582
 
      echo &&
1583
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584
 
    elif test -f "$ac_srcdir/configure"; then
1585
 
      echo &&
1586
 
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1102
    ac_top_srcdir=$srcdir ;;
 
1103
  *) # Relative path.
 
1104
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1105
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1106
esac
 
1107
 
 
1108
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1109
# the directories may not exist.
 
1110
case `pwd` in
 
1111
.) ac_abs_builddir="$ac_dir";;
 
1112
*)
 
1113
  case "$ac_dir" in
 
1114
  .) ac_abs_builddir=`pwd`;;
 
1115
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1116
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1117
  esac;;
 
1118
esac
 
1119
case $ac_abs_builddir in
 
1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1121
*)
 
1122
  case ${ac_top_builddir}. in
 
1123
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1124
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1125
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1126
  esac;;
 
1127
esac
 
1128
case $ac_abs_builddir in
 
1129
.) ac_abs_srcdir=$ac_srcdir;;
 
1130
*)
 
1131
  case $ac_srcdir in
 
1132
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1133
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1134
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1135
  esac;;
 
1136
esac
 
1137
case $ac_abs_builddir in
 
1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1139
*)
 
1140
  case $ac_top_srcdir in
 
1141
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1142
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1143
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1144
  esac;;
 
1145
esac
 
1146
 
 
1147
    cd $ac_dir
 
1148
    # Check for guested configure; otherwise get Cygnus style configure.
 
1149
    if test -f $ac_srcdir/configure.gnu; then
 
1150
      echo
 
1151
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1152
    elif test -f $ac_srcdir/configure; then
 
1153
      echo
 
1154
      $SHELL $ac_srcdir/configure  --help=recursive
 
1155
    elif test -f $ac_srcdir/configure.ac ||
 
1156
           test -f $ac_srcdir/configure.in; then
 
1157
      echo
 
1158
      $ac_configure --help
1587
1159
    else
1588
1160
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589
 
    fi || ac_status=$?
1590
 
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1161
    fi
 
1162
    cd $ac_popdir
1591
1163
  done
1592
1164
fi
1593
1165
 
1594
 
test -n "$ac_init_help" && exit $ac_status
 
1166
test -n "$ac_init_help" && exit 0
1595
1167
if $ac_init_version; then
1596
1168
  cat <<\_ACEOF
1597
1169
xdrawchem configure 1.9.4
1598
 
generated by GNU Autoconf 2.61
 
1170
generated by GNU Autoconf 2.59
1599
1171
 
1600
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1172
Copyright (C) 2003 Free Software Foundation, Inc.
1602
1173
This configure script is free software; the Free Software Foundation
1603
1174
gives unlimited permission to copy, distribute and modify it.
1604
1175
_ACEOF
1605
 
  exit
 
1176
  exit 0
1606
1177
fi
1607
 
cat >config.log <<_ACEOF
 
1178
exec 5>config.log
 
1179
cat >&5 <<_ACEOF
1608
1180
This file contains any messages produced by compilers while
1609
1181
running configure, to aid debugging if configure makes a mistake.
1610
1182
 
1611
1183
It was created by xdrawchem $as_me 1.9.4, which was
1612
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
1184
generated by GNU Autoconf 2.59.  Invocation command line was
1613
1185
 
1614
1186
  $ $0 $@
1615
1187
 
1616
1188
_ACEOF
1617
 
exec 5>>config.log
1618
1189
{
1619
1190
cat <<_ASUNAME
1620
1191
## --------- ##
1633
1204
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1634
1205
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1635
1206
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1207
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1637
1208
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1638
1209
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1639
1210
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1647
1218
  test -z "$as_dir" && as_dir=.
1648
1219
  echo "PATH: $as_dir"
1649
1220
done
1650
 
IFS=$as_save_IFS
1651
1221
 
1652
1222
} >&5
1653
1223
 
1669
1239
ac_configure_args=
1670
1240
ac_configure_args0=
1671
1241
ac_configure_args1=
 
1242
ac_sep=
1672
1243
ac_must_keep_next=false
1673
1244
for ac_pass in 1 2
1674
1245
do
1679
1250
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680
1251
    | -silent | --silent | --silen | --sile | --sil)
1681
1252
      continue ;;
1682
 
    *\'*)
 
1253
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1683
1254
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684
1255
    esac
1685
1256
    case $ac_pass in
1701
1272
          -* ) ac_must_keep_next=true ;;
1702
1273
        esac
1703
1274
      fi
1704
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1275
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1276
      # Get rid of the leading space.
 
1277
      ac_sep=" "
1705
1278
      ;;
1706
1279
    esac
1707
1280
  done
1712
1285
# When interrupted or exit'd, cleanup temporary files, and complete
1713
1286
# config.log.  We remove comments because anyway the quotes in there
1714
1287
# would cause problems or look ugly.
1715
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1716
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1288
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1289
# such as our DU 5.0 friend, will then `close' the trap.
1717
1290
trap 'exit_status=$?
1718
1291
  # Save into config.log some information that might help in debugging.
1719
1292
  {
1726
1299
_ASBOX
1727
1300
    echo
1728
1301
    # The following way of writing the cache mishandles newlines in values,
1729
 
(
1730
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731
 
    eval ac_val=\$$ac_var
1732
 
    case $ac_val in #(
1733
 
    *${as_nl}*)
1734
 
      case $ac_var in #(
1735
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1736
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737
 
      esac
1738
 
      case $ac_var in #(
1739
 
      _ | IFS | as_nl) ;; #(
1740
 
      *) $as_unset $ac_var ;;
1741
 
      esac ;;
1742
 
    esac
1743
 
  done
 
1302
{
1744
1303
  (set) 2>&1 |
1745
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746
 
    *${as_nl}ac_space=\ *)
 
1304
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1305
    *ac_space=\ *)
1747
1306
      sed -n \
1748
 
        "s/'\''/'\''\\\\'\'''\''/g;
1749
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750
 
      ;; #(
 
1307
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1308
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1309
      ;;
1751
1310
    *)
1752
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1311
      sed -n \
 
1312
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1753
1313
      ;;
1754
 
    esac |
1755
 
    sort
1756
 
)
 
1314
    esac;
 
1315
}
1757
1316
    echo
1758
1317
 
1759
1318
    cat <<\_ASBOX
1764
1323
    echo
1765
1324
    for ac_var in $ac_subst_vars
1766
1325
    do
1767
 
      eval ac_val=\$$ac_var
1768
 
      case $ac_val in
1769
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770
 
      esac
1771
 
      echo "$ac_var='\''$ac_val'\''"
 
1326
      eval ac_val=$`echo $ac_var`
 
1327
      echo "$ac_var='"'"'$ac_val'"'"'"
1772
1328
    done | sort
1773
1329
    echo
1774
1330
 
1775
1331
    if test -n "$ac_subst_files"; then
1776
1332
      cat <<\_ASBOX
1777
 
## ------------------- ##
1778
 
## File substitutions. ##
1779
 
## ------------------- ##
 
1333
## ------------- ##
 
1334
## Output files. ##
 
1335
## ------------- ##
1780
1336
_ASBOX
1781
1337
      echo
1782
1338
      for ac_var in $ac_subst_files
1783
1339
      do
1784
 
        eval ac_val=\$$ac_var
1785
 
        case $ac_val in
1786
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787
 
        esac
1788
 
        echo "$ac_var='\''$ac_val'\''"
 
1340
        eval ac_val=$`echo $ac_var`
 
1341
        echo "$ac_var='"'"'$ac_val'"'"'"
1789
1342
      done | sort
1790
1343
      echo
1791
1344
    fi
1797
1350
## ----------- ##
1798
1351
_ASBOX
1799
1352
      echo
1800
 
      cat confdefs.h
 
1353
      sed "/^$/d" confdefs.h | sort
1801
1354
      echo
1802
1355
    fi
1803
1356
    test "$ac_signal" != 0 &&
1804
1357
      echo "$as_me: caught signal $ac_signal"
1805
1358
    echo "$as_me: exit $exit_status"
1806
1359
  } >&5
1807
 
  rm -f core *.core core.conftest.* &&
1808
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1360
  rm -f core *.core &&
 
1361
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1809
1362
    exit $exit_status
1810
 
' 0
 
1363
     ' 0
1811
1364
for ac_signal in 1 2 13 15; do
1812
1365
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813
1366
done
1814
1367
ac_signal=0
1815
1368
 
1816
1369
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1817
 
rm -f -r conftest* confdefs.h
 
1370
rm -rf conftest* confdefs.h
 
1371
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1372
echo >confdefs.h
1818
1373
 
1819
1374
# Predefined preprocessor variables.
1820
1375
 
1845
1400
 
1846
1401
# Let the site file select an alternate cache file if it wants to.
1847
1402
# Prefer explicitly selected file to automatically selected ones.
1848
 
if test -n "$CONFIG_SITE"; then
1849
 
  set x "$CONFIG_SITE"
1850
 
elif test "x$prefix" != xNONE; then
1851
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1852
 
else
1853
 
  set x "$ac_default_prefix/share/config.site" \
1854
 
        "$ac_default_prefix/etc/config.site"
 
1403
if test -z "$CONFIG_SITE"; then
 
1404
  if test "x$prefix" != xNONE; then
 
1405
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1406
  else
 
1407
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1408
  fi
1855
1409
fi
1856
 
shift
1857
 
for ac_site_file
1858
 
do
 
1410
for ac_site_file in $CONFIG_SITE; do
1859
1411
  if test -r "$ac_site_file"; then
1860
1412
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861
1413
echo "$as_me: loading site script $ac_site_file" >&6;}
1871
1423
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872
1424
echo "$as_me: loading cache $cache_file" >&6;}
1873
1425
    case $cache_file in
1874
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875
 
      *)                      . "./$cache_file";;
 
1426
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1427
      *)                      . ./$cache_file;;
1876
1428
    esac
1877
1429
  fi
1878
1430
else
1884
1436
# Check that the precious variables saved in the cache have kept the same
1885
1437
# value.
1886
1438
ac_cache_corrupted=false
1887
 
for ac_var in $ac_precious_vars; do
 
1439
for ac_var in `(set) 2>&1 |
 
1440
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1888
1441
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889
1442
  eval ac_new_set=\$ac_env_${ac_var}_set
1890
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891
 
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1443
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1444
  eval ac_new_val="\$ac_env_${ac_var}_value"
1892
1445
  case $ac_old_set,$ac_new_set in
1893
1446
    set,)
1894
1447
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1913
1466
  # Pass precious variables to config.status.
1914
1467
  if test "$ac_new_set" = set; then
1915
1468
    case $ac_new_val in
1916
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1469
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1470
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1917
1471
    *) ac_arg=$ac_var=$ac_new_val ;;
1918
1472
    esac
1919
1473
    case " $ac_configure_args " in
1930
1484
   { (exit 1); exit 1; }; }
1931
1485
fi
1932
1486
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
 
 
1950
 
 
1951
 
 
1952
 
 
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
1487
ac_ext=c
1958
1488
ac_cpp='$CPP $CPPFLAGS'
1959
1489
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961
1491
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962
1492
 
1963
1493
 
1964
 
am__api_version='1.10'
1965
 
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
am__api_version="1.9"
1966
1520
ac_aux_dir=
1967
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968
 
  if test -f "$ac_dir/install-sh"; then
 
1521
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1522
  if test -f $ac_dir/install-sh; then
1969
1523
    ac_aux_dir=$ac_dir
1970
1524
    ac_install_sh="$ac_aux_dir/install-sh -c"
1971
1525
    break
1972
 
  elif test -f "$ac_dir/install.sh"; then
 
1526
  elif test -f $ac_dir/install.sh; then
1973
1527
    ac_aux_dir=$ac_dir
1974
1528
    ac_install_sh="$ac_aux_dir/install.sh -c"
1975
1529
    break
1976
 
  elif test -f "$ac_dir/shtool"; then
 
1530
  elif test -f $ac_dir/shtool; then
1977
1531
    ac_aux_dir=$ac_dir
1978
1532
    ac_install_sh="$ac_aux_dir/shtool install -c"
1979
1533
    break
1980
1534
  fi
1981
1535
done
1982
1536
if test -z "$ac_aux_dir"; then
1983
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1537
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1538
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1985
1539
   { (exit 1); exit 1; }; }
1986
1540
fi
1987
 
 
1988
 
# These three variables are undocumented and unsupported,
1989
 
# and are intended to be withdrawn in a future Autoconf release.
1990
 
# They can cause serious problems if a builder's source tree is in a directory
1991
 
# whose full name contains unusual characters.
1992
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1993
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1994
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1995
 
 
 
1541
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1542
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1543
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1996
1544
 
1997
1545
# Find a good install program.  We prefer a C program (faster),
1998
1546
# so one script is as good as another.  But avoid the broken or
2007
1555
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008
1556
# OS/2's system install, which has a completely different semantic
2009
1557
# ./install, which can be erroneously created by make from ./install.sh.
2010
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2011
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
1558
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1559
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2012
1560
if test -z "$INSTALL"; then
2013
1561
if test "${ac_cv_path_install+set}" = set; then
2014
1562
  echo $ECHO_N "(cached) $ECHO_C" >&6
2030
1578
    # by default.
2031
1579
    for ac_prog in ginstall scoinst install; do
2032
1580
      for ac_exec_ext in '' $ac_executable_extensions; do
2033
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
1581
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2034
1582
          if test $ac_prog = install &&
2035
1583
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036
1584
            # AIX install.  It has an incompatible calling convention.
2049
1597
    ;;
2050
1598
esac
2051
1599
done
2052
 
IFS=$as_save_IFS
2053
1600
 
2054
1601
 
2055
1602
fi
2056
1603
  if test "${ac_cv_path_install+set}" = set; then
2057
1604
    INSTALL=$ac_cv_path_install
2058
1605
  else
2059
 
    # As a last resort, use the slow shell script.  Don't cache a
2060
 
    # value for INSTALL within a source directory, because that will
 
1606
    # As a last resort, use the slow shell script.  We don't cache a
 
1607
    # path for INSTALL within a source directory, because that will
2061
1608
    # break other packages using the cache if that directory is
2062
 
    # removed, or if the value is a relative name.
 
1609
    # removed, or if the path is relative.
2063
1610
    INSTALL=$ac_install_sh
2064
1611
  fi
2065
1612
fi
2066
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2067
 
echo "${ECHO_T}$INSTALL" >&6; }
 
1613
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1614
echo "${ECHO_T}$INSTALL" >&6
2068
1615
 
2069
1616
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2070
1617
# It thinks the first close brace ends the variable substitution.
2074
1621
 
2075
1622
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2076
1623
 
2077
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2078
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
1624
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1625
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2079
1626
# Just in case
2080
1627
sleep 1
2081
1628
echo timestamp > conftest.file
2117
1664
Check your system clock" >&2;}
2118
1665
   { (exit 1); exit 1; }; }
2119
1666
fi
2120
 
{ echo "$as_me:$LINENO: result: yes" >&5
2121
 
echo "${ECHO_T}yes" >&6; }
 
1667
echo "$as_me:$LINENO: result: yes" >&5
 
1668
echo "${ECHO_T}yes" >&6
2122
1669
test "$program_prefix" != NONE &&
2123
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
1670
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2124
1671
# Use a double $ so make ignores it.
2125
1672
test "$program_suffix" != NONE &&
2126
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
1673
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2127
1674
# Double any \ or $.  echo might interpret backslashes.
2128
1675
# By default was `s,x,x', remove it if useless.
2129
1676
cat <<\_ACEOF >conftest.sed
2130
1677
s/[\\$]/&&/g;s/;s,x,x,$//
2131
1678
_ACEOF
2132
1679
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2133
 
rm -f conftest.sed
 
1680
rm conftest.sed
2134
1681
 
2135
1682
# expand $ac_aux_dir to an absolute path
2136
1683
am_aux_dir=`cd $ac_aux_dir && pwd`
2145
1692
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2146
1693
fi
2147
1694
 
2148
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2149
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2150
 
if test -z "$MKDIR_P"; then
2151
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1695
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1696
  # We used to keeping the `.' as first argument, in order to
 
1697
  # allow $(mkdir_p) to be used without argument.  As in
 
1698
  #   $(mkdir_p) $(somedir)
 
1699
  # where $(somedir) is conditionally defined.  However this is wrong
 
1700
  # for two reasons:
 
1701
  #  1. if the package is installed by a user who cannot write `.'
 
1702
  #     make install will fail,
 
1703
  #  2. the above comment should most certainly read
 
1704
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1705
  #     so it does not work when $(somedir) is undefined and
 
1706
  #     $(DESTDIR) is not.
 
1707
  #  To support the latter case, we have to write
 
1708
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1709
  #  so the `.' trick is pointless.
 
1710
  mkdir_p='mkdir -p --'
2153
1711
else
2154
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2156
 
do
2157
 
  IFS=$as_save_IFS
2158
 
  test -z "$as_dir" && as_dir=.
2159
 
  for ac_prog in mkdir gmkdir; do
2160
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2161
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2162
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2163
 
             'mkdir (GNU coreutils) '* | \
2164
 
             'mkdir (coreutils) '* | \
2165
 
             'mkdir (fileutils) '4.1*)
2166
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2167
 
               break 3;;
2168
 
           esac
2169
 
         done
2170
 
       done
2171
 
done
2172
 
IFS=$as_save_IFS
2173
 
 
2174
 
fi
2175
 
 
2176
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2177
 
    MKDIR_P="$ac_cv_path_mkdir -p"
 
1712
  # On NextStep and OpenStep, the `mkdir' command does not
 
1713
  # recognize any option.  It will interpret all options as
 
1714
  # directories to create, and then abort because `.' already
 
1715
  # exists.
 
1716
  for d in ./-p ./--version;
 
1717
  do
 
1718
    test -d $d && rmdir $d
 
1719
  done
 
1720
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1721
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1722
    mkdir_p='$(mkinstalldirs)'
2178
1723
  else
2179
 
    # As a last resort, use the slow shell script.  Don't cache a
2180
 
    # value for MKDIR_P within a source directory, because that will
2181
 
    # break other packages using the cache if that directory is
2182
 
    # removed, or if the value is a relative name.
2183
 
    test -d ./--version && rmdir ./--version
2184
 
    MKDIR_P="$ac_install_sh -d"
 
1724
    mkdir_p='$(install_sh) -d'
2185
1725
  fi
2186
1726
fi
2187
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2188
 
echo "${ECHO_T}$MKDIR_P" >&6; }
2189
 
 
2190
 
mkdir_p="$MKDIR_P"
2191
 
case $mkdir_p in
2192
 
  [\\/$]* | ?:[\\/]*) ;;
2193
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2194
 
esac
2195
1727
 
2196
1728
for ac_prog in gawk mawk nawk awk
2197
1729
do
2198
1730
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2199
1731
set dummy $ac_prog; ac_word=$2
2200
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2201
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1732
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202
1734
if test "${ac_cv_prog_AWK+set}" = set; then
2203
1735
  echo $ECHO_N "(cached) $ECHO_C" >&6
2204
1736
else
2211
1743
  IFS=$as_save_IFS
2212
1744
  test -z "$as_dir" && as_dir=.
2213
1745
  for ac_exec_ext in '' $ac_executable_extensions; do
2214
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1746
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215
1747
    ac_cv_prog_AWK="$ac_prog"
2216
1748
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217
1749
    break 2
2218
1750
  fi
2219
1751
done
2220
1752
done
2221
 
IFS=$as_save_IFS
2222
1753
 
2223
1754
fi
2224
1755
fi
2225
1756
AWK=$ac_cv_prog_AWK
2226
1757
if test -n "$AWK"; then
2227
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2228
 
echo "${ECHO_T}$AWK" >&6; }
 
1758
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1759
echo "${ECHO_T}$AWK" >&6
2229
1760
else
2230
 
  { echo "$as_me:$LINENO: result: no" >&5
2231
 
echo "${ECHO_T}no" >&6; }
 
1761
  echo "$as_me:$LINENO: result: no" >&5
 
1762
echo "${ECHO_T}no" >&6
2232
1763
fi
2233
1764
 
2234
 
 
2235
1765
  test -n "$AWK" && break
2236
1766
done
2237
1767
 
2238
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2239
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2240
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2241
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
1768
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1769
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1770
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1771
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2242
1772
  echo $ECHO_N "(cached) $ECHO_C" >&6
2243
1773
else
2244
1774
  cat >conftest.make <<\_ACEOF
2245
 
SHELL = /bin/sh
2246
1775
all:
2247
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
1776
        @echo 'ac_maketemp="$(MAKE)"'
2248
1777
_ACEOF
2249
1778
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2250
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2251
 
  *@@@%%%=?*=@@@%%%*)
2252
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2253
 
  *)
2254
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2255
 
esac
 
1779
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1780
if test -n "$ac_maketemp"; then
 
1781
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1782
else
 
1783
  eval ac_cv_prog_make_${ac_make}_set=no
 
1784
fi
2256
1785
rm -f conftest.make
2257
1786
fi
2258
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2259
 
  { echo "$as_me:$LINENO: result: yes" >&5
2260
 
echo "${ECHO_T}yes" >&6; }
 
1787
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1788
  echo "$as_me:$LINENO: result: yes" >&5
 
1789
echo "${ECHO_T}yes" >&6
2261
1790
  SET_MAKE=
2262
1791
else
2263
 
  { echo "$as_me:$LINENO: result: no" >&5
2264
 
echo "${ECHO_T}no" >&6; }
 
1792
  echo "$as_me:$LINENO: result: no" >&5
 
1793
echo "${ECHO_T}no" >&6
2265
1794
  SET_MAKE="MAKE=${MAKE-make}"
2266
1795
fi
2267
1796
 
2274
1803
fi
2275
1804
rmdir .tst 2>/dev/null
2276
1805
 
2277
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2278
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2279
 
  # is not polluted with repeated "-I."
2280
 
  am__isrc=' -I$(srcdir)'
2281
 
  # test to see if srcdir already configured
2282
 
  if test -f $srcdir/config.status; then
2283
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1806
# test to see if srcdir already configured
 
1807
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1808
   test -f $srcdir/config.status; then
 
1809
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2284
1810
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2285
1811
   { (exit 1); exit 1; }; }
2286
 
  fi
2287
1812
fi
2288
1813
 
2289
1814
# test whether we have cygpath
2326
1851
 
2327
1852
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2328
1853
 
2329
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
1854
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2330
1855
 
2331
1856
# Installed binaries are usually stripped using `strip' when the user
2332
1857
# run `make install-strip'.  However `strip' might not be the right
2336
1861
  if test -n "$ac_tool_prefix"; then
2337
1862
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2338
1863
set dummy ${ac_tool_prefix}strip; ac_word=$2
2339
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2340
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1864
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1865
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341
1866
if test "${ac_cv_prog_STRIP+set}" = set; then
2342
1867
  echo $ECHO_N "(cached) $ECHO_C" >&6
2343
1868
else
2350
1875
  IFS=$as_save_IFS
2351
1876
  test -z "$as_dir" && as_dir=.
2352
1877
  for ac_exec_ext in '' $ac_executable_extensions; do
2353
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1878
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354
1879
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2355
1880
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356
1881
    break 2
2357
1882
  fi
2358
1883
done
2359
1884
done
2360
 
IFS=$as_save_IFS
2361
1885
 
2362
1886
fi
2363
1887
fi
2364
1888
STRIP=$ac_cv_prog_STRIP
2365
1889
if test -n "$STRIP"; then
2366
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2367
 
echo "${ECHO_T}$STRIP" >&6; }
 
1890
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1891
echo "${ECHO_T}$STRIP" >&6
2368
1892
else
2369
 
  { echo "$as_me:$LINENO: result: no" >&5
2370
 
echo "${ECHO_T}no" >&6; }
 
1893
  echo "$as_me:$LINENO: result: no" >&5
 
1894
echo "${ECHO_T}no" >&6
2371
1895
fi
2372
 
 
2373
1896
 
2374
1897
fi
2375
1898
if test -z "$ac_cv_prog_STRIP"; then
2376
1899
  ac_ct_STRIP=$STRIP
2377
1900
  # Extract the first word of "strip", so it can be a program name with args.
2378
1901
set dummy strip; ac_word=$2
2379
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2380
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1902
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2381
1904
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2382
1905
  echo $ECHO_N "(cached) $ECHO_C" >&6
2383
1906
else
2390
1913
  IFS=$as_save_IFS
2391
1914
  test -z "$as_dir" && as_dir=.
2392
1915
  for ac_exec_ext in '' $ac_executable_extensions; do
2393
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1916
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394
1917
    ac_cv_prog_ac_ct_STRIP="strip"
2395
1918
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396
1919
    break 2
2397
1920
  fi
2398
1921
done
2399
1922
done
2400
 
IFS=$as_save_IFS
2401
1923
 
 
1924
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2402
1925
fi
2403
1926
fi
2404
1927
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2405
1928
if test -n "$ac_ct_STRIP"; then
2406
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2407
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
1929
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1930
echo "${ECHO_T}$ac_ct_STRIP" >&6
2408
1931
else
2409
 
  { echo "$as_me:$LINENO: result: no" >&5
2410
 
echo "${ECHO_T}no" >&6; }
 
1932
  echo "$as_me:$LINENO: result: no" >&5
 
1933
echo "${ECHO_T}no" >&6
2411
1934
fi
2412
1935
 
2413
 
  if test "x$ac_ct_STRIP" = x; then
2414
 
    STRIP=":"
2415
 
  else
2416
 
    case $cross_compiling:$ac_tool_warned in
2417
 
yes:)
2418
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419
 
whose name does not start with the host triplet.  If you think this
2420
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2421
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422
 
whose name does not start with the host triplet.  If you think this
2423
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424
 
ac_tool_warned=yes ;;
2425
 
esac
2426
 
    STRIP=$ac_ct_STRIP
2427
 
  fi
 
1936
  STRIP=$ac_ct_STRIP
2428
1937
else
2429
1938
  STRIP="$ac_cv_prog_STRIP"
2430
1939
fi
2431
1940
 
2432
1941
fi
2433
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
1942
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2434
1943
 
2435
1944
# We need awk for the "check" target.  The system "awk" is bad on
2436
1945
# some platforms.
2445
1954
 
2446
1955
 
2447
1956
 
2448
 
ac_config_headers="$ac_config_headers config.h"
2449
 
 
2450
 
 
2451
 
 
2452
 
 
2453
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2454
 
        if test -n "$ac_tool_prefix"; then
2455
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2456
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2457
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1957
          ac_config_headers="$ac_config_headers config.h"
 
1958
 
 
1959
 
 
1960
 
 
1961
  succeeded=no
 
1962
 
 
1963
  if test -z "$PKG_CONFIG"; then
 
1964
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
1965
set dummy pkg-config; ac_word=$2
 
1966
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459
1968
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2460
1969
  echo $ECHO_N "(cached) $ECHO_C" >&6
2461
1970
else
2470
1979
  IFS=$as_save_IFS
2471
1980
  test -z "$as_dir" && as_dir=.
2472
1981
  for ac_exec_ext in '' $ac_executable_extensions; do
2473
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1982
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474
1983
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2475
1984
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476
1985
    break 2
2477
1986
  fi
2478
1987
done
2479
1988
done
2480
 
IFS=$as_save_IFS
2481
1989
 
 
1990
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
2482
1991
  ;;
2483
1992
esac
2484
1993
fi
2485
1994
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
1995
 
2486
1996
if test -n "$PKG_CONFIG"; then
2487
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2488
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
2489
 
else
2490
 
  { echo "$as_me:$LINENO: result: no" >&5
2491
 
echo "${ECHO_T}no" >&6; }
2492
 
fi
2493
 
 
2494
 
 
2495
 
fi
2496
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
2497
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
2498
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
2499
 
set dummy pkg-config; ac_word=$2
2500
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2501
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2503
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2504
 
else
2505
 
  case $ac_pt_PKG_CONFIG in
2506
 
  [\\/]* | ?:[\\/]*)
2507
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2508
 
  ;;
2509
 
  *)
2510
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511
 
for as_dir in $PATH
2512
 
do
2513
 
  IFS=$as_save_IFS
2514
 
  test -z "$as_dir" && as_dir=.
2515
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2516
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2518
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519
 
    break 2
 
1997
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
1998
echo "${ECHO_T}$PKG_CONFIG" >&6
 
1999
else
 
2000
  echo "$as_me:$LINENO: result: no" >&5
 
2001
echo "${ECHO_T}no" >&6
 
2002
fi
 
2003
 
2520
2004
  fi
2521
 
done
2522
 
done
2523
 
IFS=$as_save_IFS
2524
 
 
2525
 
  ;;
2526
 
esac
2527
 
fi
2528
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2529
 
if test -n "$ac_pt_PKG_CONFIG"; then
2530
 
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2531
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
2532
 
else
2533
 
  { echo "$as_me:$LINENO: result: no" >&5
2534
 
echo "${ECHO_T}no" >&6; }
2535
 
fi
2536
 
 
2537
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
2538
 
    PKG_CONFIG=""
 
2005
 
 
2006
  if test "$PKG_CONFIG" = "no" ; then
 
2007
     echo "*** The pkg-config script could not be found. Make sure it is"
 
2008
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
2009
     echo "*** to the full path to pkg-config."
 
2010
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2539
2011
  else
2540
 
    case $cross_compiling:$ac_tool_warned in
2541
 
yes:)
2542
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2543
 
whose name does not start with the host triplet.  If you think this
2544
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2545
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2546
 
whose name does not start with the host triplet.  If you think this
2547
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2548
 
ac_tool_warned=yes ;;
2549
 
esac
2550
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
2551
 
  fi
2552
 
else
2553
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2554
 
fi
2555
 
 
2556
 
fi
2557
 
if test -n "$PKG_CONFIG"; then
2558
 
        _pkg_min_version=0.9.0
2559
 
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2560
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
2561
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2562
 
                { echo "$as_me:$LINENO: result: yes" >&5
2563
 
echo "${ECHO_T}yes" >&6; }
2564
 
        else
2565
 
                { echo "$as_me:$LINENO: result: no" >&5
2566
 
echo "${ECHO_T}no" >&6; }
2567
 
                PKG_CONFIG=""
2568
 
        fi
2569
 
 
2570
 
fi
2571
 
 
2572
 
pkg_failed=no
2573
 
{ echo "$as_me:$LINENO: checking for XDRAWCHEM" >&5
2574
 
echo $ECHO_N "checking for XDRAWCHEM... $ECHO_C" >&6; }
2575
 
 
2576
 
if test -n "$PKG_CONFIG"; then
2577
 
    if test -n "$XDRAWCHEM_CFLAGS"; then
2578
 
        pkg_cv_XDRAWCHEM_CFLAGS="$XDRAWCHEM_CFLAGS"
2579
 
    else
2580
 
        if test -n "$PKG_CONFIG" && \
2581
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openbabel-2.0 >= 2.0.0\"") >&5
2582
 
  ($PKG_CONFIG --exists --print-errors "openbabel-2.0 >= 2.0.0") 2>&5
2583
 
  ac_status=$?
2584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585
 
  (exit $ac_status); }; then
2586
 
  pkg_cv_XDRAWCHEM_CFLAGS=`$PKG_CONFIG --cflags "openbabel-2.0 >= 2.0.0" 2>/dev/null`
2587
 
else
2588
 
  pkg_failed=yes
2589
 
fi
2590
 
    fi
2591
 
else
2592
 
        pkg_failed=untried
2593
 
fi
2594
 
if test -n "$PKG_CONFIG"; then
2595
 
    if test -n "$XDRAWCHEM_LIBS"; then
2596
 
        pkg_cv_XDRAWCHEM_LIBS="$XDRAWCHEM_LIBS"
2597
 
    else
2598
 
        if test -n "$PKG_CONFIG" && \
2599
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openbabel-2.0 >= 2.0.0\"") >&5
2600
 
  ($PKG_CONFIG --exists --print-errors "openbabel-2.0 >= 2.0.0") 2>&5
2601
 
  ac_status=$?
2602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603
 
  (exit $ac_status); }; then
2604
 
  pkg_cv_XDRAWCHEM_LIBS=`$PKG_CONFIG --libs "openbabel-2.0 >= 2.0.0" 2>/dev/null`
2605
 
else
2606
 
  pkg_failed=yes
2607
 
fi
2608
 
    fi
2609
 
else
2610
 
        pkg_failed=untried
2611
 
fi
2612
 
 
2613
 
 
2614
 
 
2615
 
if test $pkg_failed = yes; then
2616
 
 
2617
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2618
 
        _pkg_short_errors_supported=yes
2619
 
else
2620
 
        _pkg_short_errors_supported=no
2621
 
fi
2622
 
        if test $_pkg_short_errors_supported = yes; then
2623
 
                XDRAWCHEM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openbabel-2.0 >= 2.0.0"`
 
2012
     PKG_CONFIG_MIN_VERSION=0.9.0
 
2013
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
2014
        echo "$as_me:$LINENO: checking for openbabel-2.0 >= 2.0.0" >&5
 
2015
echo $ECHO_N "checking for openbabel-2.0 >= 2.0.0... $ECHO_C" >&6
 
2016
 
 
2017
        if $PKG_CONFIG --exists "openbabel-2.0 >= 2.0.0" ; then
 
2018
            echo "$as_me:$LINENO: result: yes" >&5
 
2019
echo "${ECHO_T}yes" >&6
 
2020
            succeeded=yes
 
2021
 
 
2022
            echo "$as_me:$LINENO: checking XDRAWCHEM_CFLAGS" >&5
 
2023
echo $ECHO_N "checking XDRAWCHEM_CFLAGS... $ECHO_C" >&6
 
2024
            XDRAWCHEM_CFLAGS=`$PKG_CONFIG --cflags "openbabel-2.0 >= 2.0.0"`
 
2025
            echo "$as_me:$LINENO: result: $XDRAWCHEM_CFLAGS" >&5
 
2026
echo "${ECHO_T}$XDRAWCHEM_CFLAGS" >&6
 
2027
 
 
2028
            echo "$as_me:$LINENO: checking XDRAWCHEM_LIBS" >&5
 
2029
echo $ECHO_N "checking XDRAWCHEM_LIBS... $ECHO_C" >&6
 
2030
            XDRAWCHEM_LIBS=`$PKG_CONFIG --libs "openbabel-2.0 >= 2.0.0"`
 
2031
            echo "$as_me:$LINENO: result: $XDRAWCHEM_LIBS" >&5
 
2032
echo "${ECHO_T}$XDRAWCHEM_LIBS" >&6
2624
2033
        else
2625
 
                XDRAWCHEM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openbabel-2.0 >= 2.0.0"`
 
2034
            XDRAWCHEM_CFLAGS=""
 
2035
            XDRAWCHEM_LIBS=""
 
2036
            ## If we have a custom action on failure, don't print errors, but
 
2037
            ## do set a variable so people can do so.
 
2038
            XDRAWCHEM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openbabel-2.0 >= 2.0.0"`
 
2039
            echo $XDRAWCHEM_PKG_ERRORS
2626
2040
        fi
2627
 
        # Put the nasty error message in config.log where it belongs
2628
 
        echo "$XDRAWCHEM_PKG_ERRORS" >&5
2629
 
 
2630
 
        { { echo "$as_me:$LINENO: error: Package requirements (openbabel-2.0 >= 2.0.0) were not met:
2631
 
 
2632
 
$XDRAWCHEM_PKG_ERRORS
2633
 
 
2634
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
2635
 
installed software in a non-standard prefix.
2636
 
 
2637
 
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2638
 
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2639
 
See the pkg-config man page for more details.
2640
 
" >&5
2641
 
echo "$as_me: error: Package requirements (openbabel-2.0 >= 2.0.0) were not met:
2642
 
 
2643
 
$XDRAWCHEM_PKG_ERRORS
2644
 
 
2645
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
2646
 
installed software in a non-standard prefix.
2647
 
 
2648
 
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2649
 
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2650
 
See the pkg-config man page for more details.
2651
 
" >&2;}
2652
 
   { (exit 1); exit 1; }; }
2653
 
elif test $pkg_failed = untried; then
2654
 
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
2655
 
is in your PATH or set the PKG_CONFIG environment variable to the full
2656
 
path to pkg-config.
2657
 
 
2658
 
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2659
 
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2660
 
See the pkg-config man page for more details.
2661
 
 
2662
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2663
 
See \`config.log' for more details." >&5
2664
 
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
2665
 
is in your PATH or set the PKG_CONFIG environment variable to the full
2666
 
path to pkg-config.
2667
 
 
2668
 
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2669
 
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2670
 
See the pkg-config man page for more details.
2671
 
 
2672
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2673
 
See \`config.log' for more details." >&2;}
2674
 
   { (exit 1); exit 1; }; }
2675
 
else
2676
 
        XDRAWCHEM_CFLAGS=$pkg_cv_XDRAWCHEM_CFLAGS
2677
 
        XDRAWCHEM_LIBS=$pkg_cv_XDRAWCHEM_LIBS
2678
 
        { echo "$as_me:$LINENO: result: yes" >&5
2679
 
echo "${ECHO_T}yes" >&6; }
2680
 
        :
2681
 
fi
 
2041
 
 
2042
 
 
2043
 
 
2044
     else
 
2045
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
2046
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
2047
     fi
 
2048
  fi
 
2049
 
 
2050
  if test $succeeded = yes; then
 
2051
     :
 
2052
  else
 
2053
     { { echo "$as_me:$LINENO: error: Library requirements (openbabel-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
2054
echo "$as_me: error: Library requirements (openbabel-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
2055
   { (exit 1); exit 1; }; }
 
2056
  fi
 
2057
 
2682
2058
 
2683
2059
 
2684
2060
 
2689
2065
 
2690
2066
 
2691
2067
# Checks for programs.
2692
 
ac_ext=cpp
 
2068
ac_ext=cc
2693
2069
ac_cpp='$CXXCPP $CPPFLAGS'
2694
2070
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695
2071
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696
2072
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2697
 
if test -z "$CXX"; then
2698
 
  if test -n "$CCC"; then
2699
 
    CXX=$CCC
2700
 
  else
2701
 
    if test -n "$ac_tool_prefix"; then
2702
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2073
if test -n "$ac_tool_prefix"; then
 
2074
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2703
2075
  do
2704
2076
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2705
2077
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2706
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2707
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2078
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2079
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708
2080
if test "${ac_cv_prog_CXX+set}" = set; then
2709
2081
  echo $ECHO_N "(cached) $ECHO_C" >&6
2710
2082
else
2717
2089
  IFS=$as_save_IFS
2718
2090
  test -z "$as_dir" && as_dir=.
2719
2091
  for ac_exec_ext in '' $ac_executable_extensions; do
2720
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2092
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721
2093
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2722
2094
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723
2095
    break 2
2724
2096
  fi
2725
2097
done
2726
2098
done
2727
 
IFS=$as_save_IFS
2728
2099
 
2729
2100
fi
2730
2101
fi
2731
2102
CXX=$ac_cv_prog_CXX
2732
2103
if test -n "$CXX"; then
2733
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
2734
 
echo "${ECHO_T}$CXX" >&6; }
 
2104
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2105
echo "${ECHO_T}$CXX" >&6
2735
2106
else
2736
 
  { echo "$as_me:$LINENO: result: no" >&5
2737
 
echo "${ECHO_T}no" >&6; }
 
2107
  echo "$as_me:$LINENO: result: no" >&5
 
2108
echo "${ECHO_T}no" >&6
2738
2109
fi
2739
2110
 
2740
 
 
2741
2111
    test -n "$CXX" && break
2742
2112
  done
2743
2113
fi
2744
2114
if test -z "$CXX"; then
2745
2115
  ac_ct_CXX=$CXX
2746
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2116
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2747
2117
do
2748
2118
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2749
2119
set dummy $ac_prog; ac_word=$2
2750
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2751
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2120
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752
2122
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2753
2123
  echo $ECHO_N "(cached) $ECHO_C" >&6
2754
2124
else
2761
2131
  IFS=$as_save_IFS
2762
2132
  test -z "$as_dir" && as_dir=.
2763
2133
  for ac_exec_ext in '' $ac_executable_extensions; do
2764
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2134
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765
2135
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2766
2136
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767
2137
    break 2
2768
2138
  fi
2769
2139
done
2770
2140
done
2771
 
IFS=$as_save_IFS
2772
2141
 
2773
2142
fi
2774
2143
fi
2775
2144
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2776
2145
if test -n "$ac_ct_CXX"; then
2777
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2778
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
2146
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2147
echo "${ECHO_T}$ac_ct_CXX" >&6
2779
2148
else
2780
 
  { echo "$as_me:$LINENO: result: no" >&5
2781
 
echo "${ECHO_T}no" >&6; }
 
2149
  echo "$as_me:$LINENO: result: no" >&5
 
2150
echo "${ECHO_T}no" >&6
2782
2151
fi
2783
2152
 
2784
 
 
2785
2153
  test -n "$ac_ct_CXX" && break
2786
2154
done
2787
 
 
2788
 
  if test "x$ac_ct_CXX" = x; then
2789
 
    CXX="g++"
2790
 
  else
2791
 
    case $cross_compiling:$ac_tool_warned in
2792
 
yes:)
2793
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2794
 
whose name does not start with the host triplet.  If you think this
2795
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2796
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2797
 
whose name does not start with the host triplet.  If you think this
2798
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2799
 
ac_tool_warned=yes ;;
2800
 
esac
2801
 
    CXX=$ac_ct_CXX
2802
 
  fi
2803
 
fi
2804
 
 
2805
 
  fi
2806
 
fi
 
2155
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2156
 
 
2157
  CXX=$ac_ct_CXX
 
2158
fi
 
2159
 
 
2160
 
2807
2161
# Provide some information about the compiler.
2808
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
2162
echo "$as_me:$LINENO:" \
 
2163
     "checking for C++ compiler version" >&5
2809
2164
ac_compiler=`set X $ac_compile; echo $2`
2810
 
{ (ac_try="$ac_compiler --version >&5"
2811
 
case "(($ac_try" in
2812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813
 
  *) ac_try_echo=$ac_try;;
2814
 
esac
2815
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816
 
  (eval "$ac_compiler --version >&5") 2>&5
2817
 
  ac_status=$?
2818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819
 
  (exit $ac_status); }
2820
 
{ (ac_try="$ac_compiler -v >&5"
2821
 
case "(($ac_try" in
2822
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823
 
  *) ac_try_echo=$ac_try;;
2824
 
esac
2825
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826
 
  (eval "$ac_compiler -v >&5") 2>&5
2827
 
  ac_status=$?
2828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829
 
  (exit $ac_status); }
2830
 
{ (ac_try="$ac_compiler -V >&5"
2831
 
case "(($ac_try" in
2832
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833
 
  *) ac_try_echo=$ac_try;;
2834
 
esac
2835
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836
 
  (eval "$ac_compiler -V >&5") 2>&5
 
2165
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2166
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2167
  ac_status=$?
 
2168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2169
  (exit $ac_status); }
 
2170
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2171
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2172
  ac_status=$?
 
2173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2174
  (exit $ac_status); }
 
2175
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2176
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2837
2177
  ac_status=$?
2838
2178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839
2179
  (exit $ac_status); }
2858
2198
# Try to create an executable without -o first, disregard a.out.
2859
2199
# It will help us diagnose broken compilers, and finding out an intuition
2860
2200
# of exeext.
2861
 
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2862
 
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
 
2201
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
2202
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2863
2203
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2864
 
#
2865
 
# List of possible output files, starting from the most likely.
2866
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2867
 
# only as a last resort.  b.out is created by i960 compilers.
2868
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2869
 
#
2870
 
# The IRIX 6 linker writes into existing files which may not be
2871
 
# executable, retaining their permissions.  Remove them first so a
2872
 
# subsequent execution test works.
2873
 
ac_rmfiles=
2874
 
for ac_file in $ac_files
2875
 
do
2876
 
  case $ac_file in
2877
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2878
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2879
 
  esac
2880
 
done
2881
 
rm -f $ac_rmfiles
2882
 
 
2883
 
if { (ac_try="$ac_link_default"
2884
 
case "(($ac_try" in
2885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886
 
  *) ac_try_echo=$ac_try;;
2887
 
esac
2888
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889
 
  (eval "$ac_link_default") 2>&5
 
2204
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2205
  (eval $ac_link_default) 2>&5
2890
2206
  ac_status=$?
2891
2207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
2208
  (exit $ac_status); }; then
2893
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2894
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2895
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2896
 
# so that the user can short-circuit this test for compilers unknown to
2897
 
# Autoconf.
2898
 
for ac_file in $ac_files ''
 
2209
  # Find the output, starting from the most likely.  This scheme is
 
2210
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2211
# resort.
 
2212
 
 
2213
# Be careful to initialize this variable, since it used to be cached.
 
2214
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2215
ac_cv_exeext=
 
2216
# b.out is created by i960 compilers.
 
2217
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2899
2218
do
2900
2219
  test -f "$ac_file" || continue
2901
2220
  case $ac_file in
2902
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2221
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2222
        ;;
 
2223
    conftest.$ac_ext )
 
2224
        # This is the source file.
2903
2225
        ;;
2904
2226
    [ab].out )
2905
2227
        # We found the default executable, but exeext='' is most
2906
2228
        # certainly right.
2907
2229
        break;;
2908
2230
    *.* )
2909
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2910
 
        then :; else
2911
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2912
 
        fi
2913
 
        # We set ac_cv_exeext here because the later test for it is not
2914
 
        # safe: cross compilers may not add the suffix if given an `-o'
2915
 
        # argument, so we may need to know it at that point already.
2916
 
        # Even if this section looks crufty: it has the advantage of
2917
 
        # actually working.
 
2231
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2232
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2233
        # but it would be cool to find out if it's true.  Does anybody
 
2234
        # maintain Libtool? --akim.
 
2235
        export ac_cv_exeext
2918
2236
        break;;
2919
2237
    * )
2920
2238
        break;;
2921
2239
  esac
2922
2240
done
2923
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
2924
 
 
2925
2241
else
2926
 
  ac_file=''
2927
 
fi
2928
 
 
2929
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2930
 
echo "${ECHO_T}$ac_file" >&6; }
2931
 
if test -z "$ac_file"; then
2932
2242
  echo "$as_me: failed program was:" >&5
2933
2243
sed 's/^/| /' conftest.$ac_ext >&5
2934
2244
 
2940
2250
fi
2941
2251
 
2942
2252
ac_exeext=$ac_cv_exeext
 
2253
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2254
echo "${ECHO_T}$ac_file" >&6
2943
2255
 
2944
 
# Check that the compiler produces executables we can run.  If not, either
 
2256
# Check the compiler produces executables we can run.  If not, either
2945
2257
# the compiler is broken, or we cross compile.
2946
 
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2947
 
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
 
2258
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
2259
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2948
2260
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2949
2261
# If not cross compiling, check that we can run a simple program.
2950
2262
if test "$cross_compiling" != yes; then
2951
2263
  if { ac_try='./$ac_file'
2952
 
  { (case "(($ac_try" in
2953
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954
 
  *) ac_try_echo=$ac_try;;
2955
 
esac
2956
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957
 
  (eval "$ac_try") 2>&5
 
2264
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2265
  (eval $ac_try) 2>&5
2958
2266
  ac_status=$?
2959
2267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960
2268
  (exit $ac_status); }; }; then
2973
2281
    fi
2974
2282
  fi
2975
2283
fi
2976
 
{ echo "$as_me:$LINENO: result: yes" >&5
2977
 
echo "${ECHO_T}yes" >&6; }
 
2284
echo "$as_me:$LINENO: result: yes" >&5
 
2285
echo "${ECHO_T}yes" >&6
2978
2286
 
2979
2287
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2980
2288
ac_clean_files=$ac_clean_files_save
2981
 
# Check that the compiler produces executables we can run.  If not, either
 
2289
# Check the compiler produces executables we can run.  If not, either
2982
2290
# the compiler is broken, or we cross compile.
2983
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2984
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2985
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2986
 
echo "${ECHO_T}$cross_compiling" >&6; }
 
2291
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2292
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2293
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2294
echo "${ECHO_T}$cross_compiling" >&6
2987
2295
 
2988
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2989
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2990
 
if { (ac_try="$ac_link"
2991
 
case "(($ac_try" in
2992
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993
 
  *) ac_try_echo=$ac_try;;
2994
 
esac
2995
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996
 
  (eval "$ac_link") 2>&5
 
2296
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2297
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2298
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2299
  (eval $ac_link) 2>&5
2997
2300
  ac_status=$?
2998
2301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999
2302
  (exit $ac_status); }; then
3004
2307
for ac_file in conftest.exe conftest conftest.*; do
3005
2308
  test -f "$ac_file" || continue
3006
2309
  case $ac_file in
3007
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2310
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3008
2311
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2312
          export ac_cv_exeext
3009
2313
          break;;
3010
2314
    * ) break;;
3011
2315
  esac
3019
2323
fi
3020
2324
 
3021
2325
rm -f conftest$ac_cv_exeext
3022
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3023
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2326
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2327
echo "${ECHO_T}$ac_cv_exeext" >&6
3024
2328
 
3025
2329
rm -f conftest.$ac_ext
3026
2330
EXEEXT=$ac_cv_exeext
3027
2331
ac_exeext=$EXEEXT
3028
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3029
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2332
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2333
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3030
2334
if test "${ac_cv_objext+set}" = set; then
3031
2335
  echo $ECHO_N "(cached) $ECHO_C" >&6
3032
2336
else
3046
2350
}
3047
2351
_ACEOF
3048
2352
rm -f conftest.o conftest.obj
3049
 
if { (ac_try="$ac_compile"
3050
 
case "(($ac_try" in
3051
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052
 
  *) ac_try_echo=$ac_try;;
3053
 
esac
3054
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055
 
  (eval "$ac_compile") 2>&5
 
2353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2354
  (eval $ac_compile) 2>&5
3056
2355
  ac_status=$?
3057
2356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058
2357
  (exit $ac_status); }; then
3059
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3060
 
  test -f "$ac_file" || continue;
 
2358
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3061
2359
  case $ac_file in
3062
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2360
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3063
2361
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3064
2362
       break;;
3065
2363
  esac
3077
2375
 
3078
2376
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3079
2377
fi
3080
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3081
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2378
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2379
echo "${ECHO_T}$ac_cv_objext" >&6
3082
2380
OBJEXT=$ac_cv_objext
3083
2381
ac_objext=$OBJEXT
3084
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3085
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
2382
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2383
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3086
2384
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3087
2385
  echo $ECHO_N "(cached) $ECHO_C" >&6
3088
2386
else
3105
2403
}
3106
2404
_ACEOF
3107
2405
rm -f conftest.$ac_objext
3108
 
if { (ac_try="$ac_compile"
3109
 
case "(($ac_try" in
3110
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111
 
  *) ac_try_echo=$ac_try;;
3112
 
esac
3113
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114
 
  (eval "$ac_compile") 2>conftest.er1
 
2406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2407
  (eval $ac_compile) 2>conftest.er1
3115
2408
  ac_status=$?
3116
2409
  grep -v '^ *+' conftest.er1 >conftest.err
3117
2410
  rm -f conftest.er1
3118
2411
  cat conftest.err >&5
3119
2412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120
 
  (exit $ac_status); } && {
3121
 
         test -z "$ac_cxx_werror_flag" ||
3122
 
         test ! -s conftest.err
3123
 
       } && test -s conftest.$ac_objext; then
 
2413
  (exit $ac_status); } &&
 
2414
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2415
                         || test ! -s conftest.err'
 
2416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2417
  (eval $ac_try) 2>&5
 
2418
  ac_status=$?
 
2419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2420
  (exit $ac_status); }; } &&
 
2421
         { ac_try='test -s conftest.$ac_objext'
 
2422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2423
  (eval $ac_try) 2>&5
 
2424
  ac_status=$?
 
2425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2426
  (exit $ac_status); }; }; then
3124
2427
  ac_compiler_gnu=yes
3125
2428
else
3126
2429
  echo "$as_me: failed program was:" >&5
3127
2430
sed 's/^/| /' conftest.$ac_ext >&5
3128
2431
 
3129
 
        ac_compiler_gnu=no
 
2432
ac_compiler_gnu=no
3130
2433
fi
3131
 
 
3132
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133
2435
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3134
2436
 
3135
2437
fi
3136
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3137
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
2438
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2439
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3138
2440
GXX=`test $ac_compiler_gnu = yes && echo yes`
3139
2441
ac_test_CXXFLAGS=${CXXFLAGS+set}
3140
2442
ac_save_CXXFLAGS=$CXXFLAGS
3141
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3142
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
2443
CXXFLAGS="-g"
 
2444
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2445
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3143
2446
if test "${ac_cv_prog_cxx_g+set}" = set; then
3144
2447
  echo $ECHO_N "(cached) $ECHO_C" >&6
3145
2448
else
3146
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3147
 
   ac_cxx_werror_flag=yes
3148
 
   ac_cv_prog_cxx_g=no
3149
 
   CXXFLAGS="-g"
3150
 
   cat >conftest.$ac_ext <<_ACEOF
3151
 
/* confdefs.h.  */
3152
 
_ACEOF
3153
 
cat confdefs.h >>conftest.$ac_ext
3154
 
cat >>conftest.$ac_ext <<_ACEOF
3155
 
/* end confdefs.h.  */
3156
 
 
3157
 
int
3158
 
main ()
3159
 
{
3160
 
 
3161
 
  ;
3162
 
  return 0;
3163
 
}
3164
 
_ACEOF
3165
 
rm -f conftest.$ac_objext
3166
 
if { (ac_try="$ac_compile"
3167
 
case "(($ac_try" in
3168
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169
 
  *) ac_try_echo=$ac_try;;
3170
 
esac
3171
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172
 
  (eval "$ac_compile") 2>conftest.er1
3173
 
  ac_status=$?
3174
 
  grep -v '^ *+' conftest.er1 >conftest.err
3175
 
  rm -f conftest.er1
3176
 
  cat conftest.err >&5
3177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178
 
  (exit $ac_status); } && {
3179
 
         test -z "$ac_cxx_werror_flag" ||
3180
 
         test ! -s conftest.err
3181
 
       } && test -s conftest.$ac_objext; then
3182
 
  ac_cv_prog_cxx_g=yes
3183
 
else
3184
 
  echo "$as_me: failed program was:" >&5
3185
 
sed 's/^/| /' conftest.$ac_ext >&5
3186
 
 
3187
 
        CXXFLAGS=""
3188
 
      cat >conftest.$ac_ext <<_ACEOF
3189
 
/* confdefs.h.  */
3190
 
_ACEOF
3191
 
cat confdefs.h >>conftest.$ac_ext
3192
 
cat >>conftest.$ac_ext <<_ACEOF
3193
 
/* end confdefs.h.  */
3194
 
 
3195
 
int
3196
 
main ()
3197
 
{
3198
 
 
3199
 
  ;
3200
 
  return 0;
3201
 
}
3202
 
_ACEOF
3203
 
rm -f conftest.$ac_objext
3204
 
if { (ac_try="$ac_compile"
3205
 
case "(($ac_try" in
3206
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207
 
  *) ac_try_echo=$ac_try;;
3208
 
esac
3209
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210
 
  (eval "$ac_compile") 2>conftest.er1
3211
 
  ac_status=$?
3212
 
  grep -v '^ *+' conftest.er1 >conftest.err
3213
 
  rm -f conftest.er1
3214
 
  cat conftest.err >&5
3215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216
 
  (exit $ac_status); } && {
3217
 
         test -z "$ac_cxx_werror_flag" ||
3218
 
         test ! -s conftest.err
3219
 
       } && test -s conftest.$ac_objext; then
3220
 
  :
3221
 
else
3222
 
  echo "$as_me: failed program was:" >&5
3223
 
sed 's/^/| /' conftest.$ac_ext >&5
3224
 
 
3225
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3226
 
         CXXFLAGS="-g"
3227
 
         cat >conftest.$ac_ext <<_ACEOF
3228
 
/* confdefs.h.  */
3229
 
_ACEOF
3230
 
cat confdefs.h >>conftest.$ac_ext
3231
 
cat >>conftest.$ac_ext <<_ACEOF
3232
 
/* end confdefs.h.  */
3233
 
 
3234
 
int
3235
 
main ()
3236
 
{
3237
 
 
3238
 
  ;
3239
 
  return 0;
3240
 
}
3241
 
_ACEOF
3242
 
rm -f conftest.$ac_objext
3243
 
if { (ac_try="$ac_compile"
3244
 
case "(($ac_try" in
3245
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
 
  *) ac_try_echo=$ac_try;;
3247
 
esac
3248
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249
 
  (eval "$ac_compile") 2>conftest.er1
3250
 
  ac_status=$?
3251
 
  grep -v '^ *+' conftest.er1 >conftest.err
3252
 
  rm -f conftest.er1
3253
 
  cat conftest.err >&5
3254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255
 
  (exit $ac_status); } && {
3256
 
         test -z "$ac_cxx_werror_flag" ||
3257
 
         test ! -s conftest.err
3258
 
       } && test -s conftest.$ac_objext; then
3259
 
  ac_cv_prog_cxx_g=yes
3260
 
else
3261
 
  echo "$as_me: failed program was:" >&5
3262
 
sed 's/^/| /' conftest.$ac_ext >&5
3263
 
 
3264
 
 
3265
 
fi
3266
 
 
3267
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268
 
fi
3269
 
 
3270
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271
 
fi
3272
 
 
3273
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3275
 
fi
3276
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3277
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
2449
  cat >conftest.$ac_ext <<_ACEOF
 
2450
/* confdefs.h.  */
 
2451
_ACEOF
 
2452
cat confdefs.h >>conftest.$ac_ext
 
2453
cat >>conftest.$ac_ext <<_ACEOF
 
2454
/* end confdefs.h.  */
 
2455
 
 
2456
int
 
2457
main ()
 
2458
{
 
2459
 
 
2460
  ;
 
2461
  return 0;
 
2462
}
 
2463
_ACEOF
 
2464
rm -f conftest.$ac_objext
 
2465
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2466
  (eval $ac_compile) 2>conftest.er1
 
2467
  ac_status=$?
 
2468
  grep -v '^ *+' conftest.er1 >conftest.err
 
2469
  rm -f conftest.er1
 
2470
  cat conftest.err >&5
 
2471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2472
  (exit $ac_status); } &&
 
2473
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2474
                         || test ! -s conftest.err'
 
2475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2476
  (eval $ac_try) 2>&5
 
2477
  ac_status=$?
 
2478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2479
  (exit $ac_status); }; } &&
 
2480
         { ac_try='test -s conftest.$ac_objext'
 
2481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2482
  (eval $ac_try) 2>&5
 
2483
  ac_status=$?
 
2484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2485
  (exit $ac_status); }; }; then
 
2486
  ac_cv_prog_cxx_g=yes
 
2487
else
 
2488
  echo "$as_me: failed program was:" >&5
 
2489
sed 's/^/| /' conftest.$ac_ext >&5
 
2490
 
 
2491
ac_cv_prog_cxx_g=no
 
2492
fi
 
2493
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2494
fi
 
2495
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2496
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3278
2497
if test "$ac_test_CXXFLAGS" = set; then
3279
2498
  CXXFLAGS=$ac_save_CXXFLAGS
3280
2499
elif test $ac_cv_prog_cxx_g = yes; then
3290
2509
    CXXFLAGS=
3291
2510
  fi
3292
2511
fi
 
2512
for ac_declaration in \
 
2513
   '' \
 
2514
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2515
   'extern "C" void std::exit (int); using std::exit;' \
 
2516
   'extern "C" void exit (int) throw ();' \
 
2517
   'extern "C" void exit (int);' \
 
2518
   'void exit (int);'
 
2519
do
 
2520
  cat >conftest.$ac_ext <<_ACEOF
 
2521
/* confdefs.h.  */
 
2522
_ACEOF
 
2523
cat confdefs.h >>conftest.$ac_ext
 
2524
cat >>conftest.$ac_ext <<_ACEOF
 
2525
/* end confdefs.h.  */
 
2526
$ac_declaration
 
2527
#include <stdlib.h>
 
2528
int
 
2529
main ()
 
2530
{
 
2531
exit (42);
 
2532
  ;
 
2533
  return 0;
 
2534
}
 
2535
_ACEOF
 
2536
rm -f conftest.$ac_objext
 
2537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2538
  (eval $ac_compile) 2>conftest.er1
 
2539
  ac_status=$?
 
2540
  grep -v '^ *+' conftest.er1 >conftest.err
 
2541
  rm -f conftest.er1
 
2542
  cat conftest.err >&5
 
2543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2544
  (exit $ac_status); } &&
 
2545
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2546
                         || test ! -s conftest.err'
 
2547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2548
  (eval $ac_try) 2>&5
 
2549
  ac_status=$?
 
2550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2551
  (exit $ac_status); }; } &&
 
2552
         { ac_try='test -s conftest.$ac_objext'
 
2553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2554
  (eval $ac_try) 2>&5
 
2555
  ac_status=$?
 
2556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2557
  (exit $ac_status); }; }; then
 
2558
  :
 
2559
else
 
2560
  echo "$as_me: failed program was:" >&5
 
2561
sed 's/^/| /' conftest.$ac_ext >&5
 
2562
 
 
2563
continue
 
2564
fi
 
2565
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2566
  cat >conftest.$ac_ext <<_ACEOF
 
2567
/* confdefs.h.  */
 
2568
_ACEOF
 
2569
cat confdefs.h >>conftest.$ac_ext
 
2570
cat >>conftest.$ac_ext <<_ACEOF
 
2571
/* end confdefs.h.  */
 
2572
$ac_declaration
 
2573
int
 
2574
main ()
 
2575
{
 
2576
exit (42);
 
2577
  ;
 
2578
  return 0;
 
2579
}
 
2580
_ACEOF
 
2581
rm -f conftest.$ac_objext
 
2582
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2583
  (eval $ac_compile) 2>conftest.er1
 
2584
  ac_status=$?
 
2585
  grep -v '^ *+' conftest.er1 >conftest.err
 
2586
  rm -f conftest.er1
 
2587
  cat conftest.err >&5
 
2588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2589
  (exit $ac_status); } &&
 
2590
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2591
                         || test ! -s conftest.err'
 
2592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2593
  (eval $ac_try) 2>&5
 
2594
  ac_status=$?
 
2595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2596
  (exit $ac_status); }; } &&
 
2597
         { ac_try='test -s conftest.$ac_objext'
 
2598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2599
  (eval $ac_try) 2>&5
 
2600
  ac_status=$?
 
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2602
  (exit $ac_status); }; }; then
 
2603
  break
 
2604
else
 
2605
  echo "$as_me: failed program was:" >&5
 
2606
sed 's/^/| /' conftest.$ac_ext >&5
 
2607
 
 
2608
fi
 
2609
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2610
done
 
2611
rm -f conftest*
 
2612
if test -n "$ac_declaration"; then
 
2613
  echo '#ifdef __cplusplus' >>confdefs.h
 
2614
  echo $ac_declaration      >>confdefs.h
 
2615
  echo '#endif'             >>confdefs.h
 
2616
fi
 
2617
 
3293
2618
ac_ext=c
3294
2619
ac_cpp='$CPP $CPPFLAGS'
3295
2620
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297
2622
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298
2623
DEPDIR="${am__leading_dot}deps"
3299
2624
 
3300
 
ac_config_commands="$ac_config_commands depfiles"
 
2625
          ac_config_commands="$ac_config_commands depfiles"
3301
2626
 
3302
2627
 
3303
2628
am_make=${MAKE-make}
3307
2632
.PHONY: am__doit
3308
2633
END
3309
2634
# If we don't find an include directive, just comment out the code.
3310
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3311
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2635
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2636
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3312
2637
am__include="#"
3313
2638
am__quote=
3314
2639
_am_result=none
3335
2660
fi
3336
2661
 
3337
2662
 
3338
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3339
 
echo "${ECHO_T}$_am_result" >&6; }
 
2663
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2664
echo "${ECHO_T}$_am_result" >&6
3340
2665
rm -f confinc confmf
3341
2666
 
3342
 
# Check whether --enable-dependency-tracking was given.
 
2667
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3343
2668
if test "${enable_dependency_tracking+set}" = set; then
3344
 
  enableval=$enable_dependency_tracking;
3345
 
fi
 
2669
  enableval="$enable_dependency_tracking"
3346
2670
 
 
2671
fi;
3347
2672
if test "x$enable_dependency_tracking" != xno; then
3348
2673
  am_depcomp="$ac_aux_dir/depcomp"
3349
2674
  AMDEPBACKSLASH='\'
3350
2675
fi
3351
 
 if test "x$enable_dependency_tracking" != xno; then
 
2676
 
 
2677
 
 
2678
if test "x$enable_dependency_tracking" != xno; then
3352
2679
  AMDEP_TRUE=
3353
2680
  AMDEP_FALSE='#'
3354
2681
else
3358
2685
 
3359
2686
 
3360
2687
 
 
2688
 
3361
2689
depcc="$CXX"  am_compiler_list=
3362
2690
 
3363
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3364
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
2691
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2692
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3365
2693
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3366
2694
  echo $ECHO_N "(cached) $ECHO_C" >&6
3367
2695
else
3425
2753
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3426
2754
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3427
2755
         >/dev/null 2>conftest.err &&
3428
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3429
2756
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3430
2757
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3431
2758
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3451
2778
fi
3452
2779
 
3453
2780
fi
3454
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3455
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
2781
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
2782
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3456
2783
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3457
2784
 
3458
 
 if
 
2785
 
 
2786
 
 
2787
if
3459
2788
  test "x$enable_dependency_tracking" != xno \
3460
2789
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3461
2790
  am__fastdepCXX_TRUE=
3474
2803
if test -n "$ac_tool_prefix"; then
3475
2804
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3476
2805
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3477
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3478
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2806
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2807
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479
2808
if test "${ac_cv_prog_CC+set}" = set; then
3480
2809
  echo $ECHO_N "(cached) $ECHO_C" >&6
3481
2810
else
3488
2817
  IFS=$as_save_IFS
3489
2818
  test -z "$as_dir" && as_dir=.
3490
2819
  for ac_exec_ext in '' $ac_executable_extensions; do
3491
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2820
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492
2821
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3493
2822
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494
2823
    break 2
3495
2824
  fi
3496
2825
done
3497
2826
done
3498
 
IFS=$as_save_IFS
3499
2827
 
3500
2828
fi
3501
2829
fi
3502
2830
CC=$ac_cv_prog_CC
3503
2831
if test -n "$CC"; then
3504
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3505
 
echo "${ECHO_T}$CC" >&6; }
 
2832
  echo "$as_me:$LINENO: result: $CC" >&5
 
2833
echo "${ECHO_T}$CC" >&6
3506
2834
else
3507
 
  { echo "$as_me:$LINENO: result: no" >&5
3508
 
echo "${ECHO_T}no" >&6; }
 
2835
  echo "$as_me:$LINENO: result: no" >&5
 
2836
echo "${ECHO_T}no" >&6
3509
2837
fi
3510
 
 
3511
2838
 
3512
2839
fi
3513
2840
if test -z "$ac_cv_prog_CC"; then
3514
2841
  ac_ct_CC=$CC
3515
2842
  # Extract the first word of "gcc", so it can be a program name with args.
3516
2843
set dummy gcc; ac_word=$2
3517
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3518
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2844
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519
2846
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3520
2847
  echo $ECHO_N "(cached) $ECHO_C" >&6
3521
2848
else
3528
2855
  IFS=$as_save_IFS
3529
2856
  test -z "$as_dir" && as_dir=.
3530
2857
  for ac_exec_ext in '' $ac_executable_extensions; do
3531
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2858
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532
2859
    ac_cv_prog_ac_ct_CC="gcc"
3533
2860
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534
2861
    break 2
3535
2862
  fi
3536
2863
done
3537
2864
done
3538
 
IFS=$as_save_IFS
3539
2865
 
3540
2866
fi
3541
2867
fi
3542
2868
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3543
2869
if test -n "$ac_ct_CC"; then
3544
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3545
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2870
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2871
echo "${ECHO_T}$ac_ct_CC" >&6
3546
2872
else
3547
 
  { echo "$as_me:$LINENO: result: no" >&5
3548
 
echo "${ECHO_T}no" >&6; }
 
2873
  echo "$as_me:$LINENO: result: no" >&5
 
2874
echo "${ECHO_T}no" >&6
3549
2875
fi
3550
2876
 
3551
 
  if test "x$ac_ct_CC" = x; then
3552
 
    CC=""
3553
 
  else
3554
 
    case $cross_compiling:$ac_tool_warned in
3555
 
yes:)
3556
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3557
 
whose name does not start with the host triplet.  If you think this
3558
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3559
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3560
 
whose name does not start with the host triplet.  If you think this
3561
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3562
 
ac_tool_warned=yes ;;
3563
 
esac
3564
 
    CC=$ac_ct_CC
3565
 
  fi
 
2877
  CC=$ac_ct_CC
3566
2878
else
3567
2879
  CC="$ac_cv_prog_CC"
3568
2880
fi
3569
2881
 
3570
2882
if test -z "$CC"; then
3571
 
          if test -n "$ac_tool_prefix"; then
3572
 
    # 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.
3573
2885
set dummy ${ac_tool_prefix}cc; ac_word=$2
3574
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3575
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2886
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576
2888
if test "${ac_cv_prog_CC+set}" = set; then
3577
2889
  echo $ECHO_N "(cached) $ECHO_C" >&6
3578
2890
else
3585
2897
  IFS=$as_save_IFS
3586
2898
  test -z "$as_dir" && as_dir=.
3587
2899
  for ac_exec_ext in '' $ac_executable_extensions; do
3588
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2900
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589
2901
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3590
2902
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591
2903
    break 2
3592
2904
  fi
3593
2905
done
3594
2906
done
3595
 
IFS=$as_save_IFS
3596
2907
 
3597
2908
fi
3598
2909
fi
3599
2910
CC=$ac_cv_prog_CC
3600
2911
if test -n "$CC"; then
3601
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3602
 
echo "${ECHO_T}$CC" >&6; }
3603
 
else
3604
 
  { echo "$as_me:$LINENO: result: no" >&5
3605
 
echo "${ECHO_T}no" >&6; }
3606
 
fi
3607
 
 
3608
 
 
 
2912
  echo "$as_me:$LINENO: result: $CC" >&5
 
2913
echo "${ECHO_T}$CC" >&6
 
2914
else
 
2915
  echo "$as_me:$LINENO: result: no" >&5
 
2916
echo "${ECHO_T}no" >&6
 
2917
fi
 
2918
 
 
2919
fi
 
2920
if test -z "$ac_cv_prog_CC"; then
 
2921
  ac_ct_CC=$CC
 
2922
  # Extract the first word of "cc", so it can be a program name with args.
 
2923
set dummy cc; ac_word=$2
 
2924
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2926
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2928
else
 
2929
  if test -n "$ac_ct_CC"; then
 
2930
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2931
else
 
2932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2933
for as_dir in $PATH
 
2934
do
 
2935
  IFS=$as_save_IFS
 
2936
  test -z "$as_dir" && as_dir=.
 
2937
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2938
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2939
    ac_cv_prog_ac_ct_CC="cc"
 
2940
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2941
    break 2
3609
2942
  fi
 
2943
done
 
2944
done
 
2945
 
 
2946
fi
 
2947
fi
 
2948
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2949
if test -n "$ac_ct_CC"; then
 
2950
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2951
echo "${ECHO_T}$ac_ct_CC" >&6
 
2952
else
 
2953
  echo "$as_me:$LINENO: result: no" >&5
 
2954
echo "${ECHO_T}no" >&6
 
2955
fi
 
2956
 
 
2957
  CC=$ac_ct_CC
 
2958
else
 
2959
  CC="$ac_cv_prog_CC"
 
2960
fi
 
2961
 
3610
2962
fi
3611
2963
if test -z "$CC"; then
3612
2964
  # Extract the first word of "cc", so it can be a program name with args.
3613
2965
set dummy cc; ac_word=$2
3614
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3615
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2966
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3616
2968
if test "${ac_cv_prog_CC+set}" = set; then
3617
2969
  echo $ECHO_N "(cached) $ECHO_C" >&6
3618
2970
else
3626
2978
  IFS=$as_save_IFS
3627
2979
  test -z "$as_dir" && as_dir=.
3628
2980
  for ac_exec_ext in '' $ac_executable_extensions; do
3629
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2981
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630
2982
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3631
2983
       ac_prog_rejected=yes
3632
2984
       continue
3637
2989
  fi
3638
2990
done
3639
2991
done
3640
 
IFS=$as_save_IFS
3641
2992
 
3642
2993
if test $ac_prog_rejected = yes; then
3643
2994
  # We found a bogon in the path, so make sure we never use it.
3655
3006
fi
3656
3007
CC=$ac_cv_prog_CC
3657
3008
if test -n "$CC"; then
3658
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3659
 
echo "${ECHO_T}$CC" >&6; }
 
3009
  echo "$as_me:$LINENO: result: $CC" >&5
 
3010
echo "${ECHO_T}$CC" >&6
3660
3011
else
3661
 
  { echo "$as_me:$LINENO: result: no" >&5
3662
 
echo "${ECHO_T}no" >&6; }
 
3012
  echo "$as_me:$LINENO: result: no" >&5
 
3013
echo "${ECHO_T}no" >&6
3663
3014
fi
3664
 
 
3665
3015
 
3666
3016
fi
3667
3017
if test -z "$CC"; then
3668
3018
  if test -n "$ac_tool_prefix"; then
3669
 
  for ac_prog in cl.exe
 
3019
  for ac_prog in cl
3670
3020
  do
3671
3021
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3672
3022
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3673
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3674
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3023
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3675
3025
if test "${ac_cv_prog_CC+set}" = set; then
3676
3026
  echo $ECHO_N "(cached) $ECHO_C" >&6
3677
3027
else
3684
3034
  IFS=$as_save_IFS
3685
3035
  test -z "$as_dir" && as_dir=.
3686
3036
  for ac_exec_ext in '' $ac_executable_extensions; do
3687
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3037
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688
3038
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3689
3039
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690
3040
    break 2
3691
3041
  fi
3692
3042
done
3693
3043
done
3694
 
IFS=$as_save_IFS
3695
3044
 
3696
3045
fi
3697
3046
fi
3698
3047
CC=$ac_cv_prog_CC
3699
3048
if test -n "$CC"; then
3700
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3701
 
echo "${ECHO_T}$CC" >&6; }
 
3049
  echo "$as_me:$LINENO: result: $CC" >&5
 
3050
echo "${ECHO_T}$CC" >&6
3702
3051
else
3703
 
  { echo "$as_me:$LINENO: result: no" >&5
3704
 
echo "${ECHO_T}no" >&6; }
 
3052
  echo "$as_me:$LINENO: result: no" >&5
 
3053
echo "${ECHO_T}no" >&6
3705
3054
fi
3706
3055
 
3707
 
 
3708
3056
    test -n "$CC" && break
3709
3057
  done
3710
3058
fi
3711
3059
if test -z "$CC"; then
3712
3060
  ac_ct_CC=$CC
3713
 
  for ac_prog in cl.exe
 
3061
  for ac_prog in cl
3714
3062
do
3715
3063
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3716
3064
set dummy $ac_prog; ac_word=$2
3717
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3718
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3065
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719
3067
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3720
3068
  echo $ECHO_N "(cached) $ECHO_C" >&6
3721
3069
else
3728
3076
  IFS=$as_save_IFS
3729
3077
  test -z "$as_dir" && as_dir=.
3730
3078
  for ac_exec_ext in '' $ac_executable_extensions; do
3731
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3079
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732
3080
    ac_cv_prog_ac_ct_CC="$ac_prog"
3733
3081
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734
3082
    break 2
3735
3083
  fi
3736
3084
done
3737
3085
done
3738
 
IFS=$as_save_IFS
3739
3086
 
3740
3087
fi
3741
3088
fi
3742
3089
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743
3090
if test -n "$ac_ct_CC"; then
3744
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3745
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3091
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3092
echo "${ECHO_T}$ac_ct_CC" >&6
3746
3093
else
3747
 
  { echo "$as_me:$LINENO: result: no" >&5
3748
 
echo "${ECHO_T}no" >&6; }
 
3094
  echo "$as_me:$LINENO: result: no" >&5
 
3095
echo "${ECHO_T}no" >&6
3749
3096
fi
3750
3097
 
3751
 
 
3752
3098
  test -n "$ac_ct_CC" && break
3753
3099
done
3754
3100
 
3755
 
  if test "x$ac_ct_CC" = x; then
3756
 
    CC=""
3757
 
  else
3758
 
    case $cross_compiling:$ac_tool_warned in
3759
 
yes:)
3760
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3761
 
whose name does not start with the host triplet.  If you think this
3762
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3763
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3764
 
whose name does not start with the host triplet.  If you think this
3765
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3766
 
ac_tool_warned=yes ;;
3767
 
esac
3768
 
    CC=$ac_ct_CC
3769
 
  fi
 
3101
  CC=$ac_ct_CC
3770
3102
fi
3771
3103
 
3772
3104
fi
3779
3111
   { (exit 1); exit 1; }; }
3780
3112
 
3781
3113
# Provide some information about the compiler.
3782
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3114
echo "$as_me:$LINENO:" \
 
3115
     "checking for C compiler version" >&5
3783
3116
ac_compiler=`set X $ac_compile; echo $2`
3784
 
{ (ac_try="$ac_compiler --version >&5"
3785
 
case "(($ac_try" in
3786
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787
 
  *) ac_try_echo=$ac_try;;
3788
 
esac
3789
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790
 
  (eval "$ac_compiler --version >&5") 2>&5
3791
 
  ac_status=$?
3792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793
 
  (exit $ac_status); }
3794
 
{ (ac_try="$ac_compiler -v >&5"
3795
 
case "(($ac_try" in
3796
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797
 
  *) ac_try_echo=$ac_try;;
3798
 
esac
3799
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800
 
  (eval "$ac_compiler -v >&5") 2>&5
3801
 
  ac_status=$?
3802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803
 
  (exit $ac_status); }
3804
 
{ (ac_try="$ac_compiler -V >&5"
3805
 
case "(($ac_try" in
3806
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807
 
  *) ac_try_echo=$ac_try;;
3808
 
esac
3809
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810
 
  (eval "$ac_compiler -V >&5") 2>&5
 
3117
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3118
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3119
  ac_status=$?
 
3120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3121
  (exit $ac_status); }
 
3122
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3123
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3124
  ac_status=$?
 
3125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3126
  (exit $ac_status); }
 
3127
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3128
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3811
3129
  ac_status=$?
3812
3130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
3131
  (exit $ac_status); }
3814
3132
 
3815
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3816
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3133
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3134
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3817
3135
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3818
3136
  echo $ECHO_N "(cached) $ECHO_C" >&6
3819
3137
else
3836
3154
}
3837
3155
_ACEOF
3838
3156
rm -f conftest.$ac_objext
3839
 
if { (ac_try="$ac_compile"
3840
 
case "(($ac_try" in
3841
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842
 
  *) ac_try_echo=$ac_try;;
3843
 
esac
3844
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845
 
  (eval "$ac_compile") 2>conftest.er1
 
3157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3158
  (eval $ac_compile) 2>conftest.er1
3846
3159
  ac_status=$?
3847
3160
  grep -v '^ *+' conftest.er1 >conftest.err
3848
3161
  rm -f conftest.er1
3849
3162
  cat conftest.err >&5
3850
3163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
 
  (exit $ac_status); } && {
3852
 
         test -z "$ac_c_werror_flag" ||
3853
 
         test ! -s conftest.err
3854
 
       } && test -s conftest.$ac_objext; then
 
3164
  (exit $ac_status); } &&
 
3165
         { ac_try='test -z "$ac_c_werror_flag"
 
3166
                         || test ! -s conftest.err'
 
3167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3168
  (eval $ac_try) 2>&5
 
3169
  ac_status=$?
 
3170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3171
  (exit $ac_status); }; } &&
 
3172
         { ac_try='test -s conftest.$ac_objext'
 
3173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3174
  (eval $ac_try) 2>&5
 
3175
  ac_status=$?
 
3176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3177
  (exit $ac_status); }; }; then
3855
3178
  ac_compiler_gnu=yes
3856
3179
else
3857
3180
  echo "$as_me: failed program was:" >&5
3858
3181
sed 's/^/| /' conftest.$ac_ext >&5
3859
3182
 
3860
 
        ac_compiler_gnu=no
 
3183
ac_compiler_gnu=no
3861
3184
fi
3862
 
 
3863
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3185
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3864
3186
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3865
3187
 
3866
3188
fi
3867
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3868
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3189
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3190
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3869
3191
GCC=`test $ac_compiler_gnu = yes && echo yes`
3870
3192
ac_test_CFLAGS=${CFLAGS+set}
3871
3193
ac_save_CFLAGS=$CFLAGS
3872
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3873
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3194
CFLAGS="-g"
 
3195
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3196
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3874
3197
if test "${ac_cv_prog_cc_g+set}" = set; then
3875
3198
  echo $ECHO_N "(cached) $ECHO_C" >&6
3876
3199
else
3877
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3878
 
   ac_c_werror_flag=yes
3879
 
   ac_cv_prog_cc_g=no
3880
 
   CFLAGS="-g"
3881
 
   cat >conftest.$ac_ext <<_ACEOF
3882
 
/* confdefs.h.  */
3883
 
_ACEOF
3884
 
cat confdefs.h >>conftest.$ac_ext
3885
 
cat >>conftest.$ac_ext <<_ACEOF
3886
 
/* end confdefs.h.  */
3887
 
 
3888
 
int
3889
 
main ()
3890
 
{
3891
 
 
3892
 
  ;
3893
 
  return 0;
3894
 
}
3895
 
_ACEOF
3896
 
rm -f conftest.$ac_objext
3897
 
if { (ac_try="$ac_compile"
3898
 
case "(($ac_try" in
3899
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900
 
  *) ac_try_echo=$ac_try;;
3901
 
esac
3902
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903
 
  (eval "$ac_compile") 2>conftest.er1
3904
 
  ac_status=$?
3905
 
  grep -v '^ *+' conftest.er1 >conftest.err
3906
 
  rm -f conftest.er1
3907
 
  cat conftest.err >&5
3908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909
 
  (exit $ac_status); } && {
3910
 
         test -z "$ac_c_werror_flag" ||
3911
 
         test ! -s conftest.err
3912
 
       } && test -s conftest.$ac_objext; then
3913
 
  ac_cv_prog_cc_g=yes
3914
 
else
3915
 
  echo "$as_me: failed program was:" >&5
3916
 
sed 's/^/| /' conftest.$ac_ext >&5
3917
 
 
3918
 
        CFLAGS=""
3919
 
      cat >conftest.$ac_ext <<_ACEOF
3920
 
/* confdefs.h.  */
3921
 
_ACEOF
3922
 
cat confdefs.h >>conftest.$ac_ext
3923
 
cat >>conftest.$ac_ext <<_ACEOF
3924
 
/* end confdefs.h.  */
3925
 
 
3926
 
int
3927
 
main ()
3928
 
{
3929
 
 
3930
 
  ;
3931
 
  return 0;
3932
 
}
3933
 
_ACEOF
3934
 
rm -f conftest.$ac_objext
3935
 
if { (ac_try="$ac_compile"
3936
 
case "(($ac_try" in
3937
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938
 
  *) ac_try_echo=$ac_try;;
3939
 
esac
3940
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941
 
  (eval "$ac_compile") 2>conftest.er1
3942
 
  ac_status=$?
3943
 
  grep -v '^ *+' conftest.er1 >conftest.err
3944
 
  rm -f conftest.er1
3945
 
  cat conftest.err >&5
3946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947
 
  (exit $ac_status); } && {
3948
 
         test -z "$ac_c_werror_flag" ||
3949
 
         test ! -s conftest.err
3950
 
       } && test -s conftest.$ac_objext; then
3951
 
  :
3952
 
else
3953
 
  echo "$as_me: failed program was:" >&5
3954
 
sed 's/^/| /' conftest.$ac_ext >&5
3955
 
 
3956
 
        ac_c_werror_flag=$ac_save_c_werror_flag
3957
 
         CFLAGS="-g"
3958
 
         cat >conftest.$ac_ext <<_ACEOF
3959
 
/* confdefs.h.  */
3960
 
_ACEOF
3961
 
cat confdefs.h >>conftest.$ac_ext
3962
 
cat >>conftest.$ac_ext <<_ACEOF
3963
 
/* end confdefs.h.  */
3964
 
 
3965
 
int
3966
 
main ()
3967
 
{
3968
 
 
3969
 
  ;
3970
 
  return 0;
3971
 
}
3972
 
_ACEOF
3973
 
rm -f conftest.$ac_objext
3974
 
if { (ac_try="$ac_compile"
3975
 
case "(($ac_try" in
3976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977
 
  *) ac_try_echo=$ac_try;;
3978
 
esac
3979
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980
 
  (eval "$ac_compile") 2>conftest.er1
3981
 
  ac_status=$?
3982
 
  grep -v '^ *+' conftest.er1 >conftest.err
3983
 
  rm -f conftest.er1
3984
 
  cat conftest.err >&5
3985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986
 
  (exit $ac_status); } && {
3987
 
         test -z "$ac_c_werror_flag" ||
3988
 
         test ! -s conftest.err
3989
 
       } && test -s conftest.$ac_objext; then
3990
 
  ac_cv_prog_cc_g=yes
3991
 
else
3992
 
  echo "$as_me: failed program was:" >&5
3993
 
sed 's/^/| /' conftest.$ac_ext >&5
3994
 
 
3995
 
 
3996
 
fi
3997
 
 
3998
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999
 
fi
4000
 
 
4001
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002
 
fi
4003
 
 
4004
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4006
 
fi
4007
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4008
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3200
  cat >conftest.$ac_ext <<_ACEOF
 
3201
/* confdefs.h.  */
 
3202
_ACEOF
 
3203
cat confdefs.h >>conftest.$ac_ext
 
3204
cat >>conftest.$ac_ext <<_ACEOF
 
3205
/* end confdefs.h.  */
 
3206
 
 
3207
int
 
3208
main ()
 
3209
{
 
3210
 
 
3211
  ;
 
3212
  return 0;
 
3213
}
 
3214
_ACEOF
 
3215
rm -f conftest.$ac_objext
 
3216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3217
  (eval $ac_compile) 2>conftest.er1
 
3218
  ac_status=$?
 
3219
  grep -v '^ *+' conftest.er1 >conftest.err
 
3220
  rm -f conftest.er1
 
3221
  cat conftest.err >&5
 
3222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3223
  (exit $ac_status); } &&
 
3224
         { ac_try='test -z "$ac_c_werror_flag"
 
3225
                         || test ! -s conftest.err'
 
3226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3227
  (eval $ac_try) 2>&5
 
3228
  ac_status=$?
 
3229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3230
  (exit $ac_status); }; } &&
 
3231
         { ac_try='test -s conftest.$ac_objext'
 
3232
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3233
  (eval $ac_try) 2>&5
 
3234
  ac_status=$?
 
3235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3236
  (exit $ac_status); }; }; then
 
3237
  ac_cv_prog_cc_g=yes
 
3238
else
 
3239
  echo "$as_me: failed program was:" >&5
 
3240
sed 's/^/| /' conftest.$ac_ext >&5
 
3241
 
 
3242
ac_cv_prog_cc_g=no
 
3243
fi
 
3244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3245
fi
 
3246
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3247
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4009
3248
if test "$ac_test_CFLAGS" = set; then
4010
3249
  CFLAGS=$ac_save_CFLAGS
4011
3250
elif test $ac_cv_prog_cc_g = yes; then
4021
3260
    CFLAGS=
4022
3261
  fi
4023
3262
fi
4024
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4025
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4026
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3263
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3264
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3265
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4027
3266
  echo $ECHO_N "(cached) $ECHO_C" >&6
4028
3267
else
4029
 
  ac_cv_prog_cc_c89=no
 
3268
  ac_cv_prog_cc_stdc=no
4030
3269
ac_save_CC=$CC
4031
3270
cat >conftest.$ac_ext <<_ACEOF
4032
3271
/* confdefs.h.  */
4060
3299
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4061
3300
   function prototypes and stuff, but not '\xHH' hex character constants.
4062
3301
   These don't provoke an error unfortunately, instead are silently treated
4063
 
   as 'x'.  The following induces an error, until -std is added to get
 
3302
   as 'x'.  The following induces an error, until -std1 is added to get
4064
3303
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4065
3304
   array size at least.  It's necessary to write '\x00'==0 to get something
4066
 
   that's true only with -std.  */
 
3305
   that's true only with -std1.  */
4067
3306
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4068
3307
 
4069
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4070
 
   inside strings and character constants.  */
4071
 
#define FOO(x) 'x'
4072
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4073
 
 
4074
3308
int test (int i, double x);
4075
3309
struct s1 {int (*f) (int a);};
4076
3310
struct s2 {int (*f) (double a);};
4085
3319
  return 0;
4086
3320
}
4087
3321
_ACEOF
4088
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4089
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3322
# Don't try gcc -ansi; that turns off useful extensions and
 
3323
# breaks some systems' header files.
 
3324
# AIX                   -qlanglvl=ansi
 
3325
# Ultrix and OSF/1      -std1
 
3326
# HP-UX 10.20 and later -Ae
 
3327
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3328
# SVR4                  -Xc -D__EXTENSIONS__
 
3329
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4090
3330
do
4091
3331
  CC="$ac_save_CC $ac_arg"
4092
3332
  rm -f conftest.$ac_objext
4093
 
if { (ac_try="$ac_compile"
4094
 
case "(($ac_try" in
4095
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096
 
  *) ac_try_echo=$ac_try;;
4097
 
esac
4098
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099
 
  (eval "$ac_compile") 2>conftest.er1
 
3333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3334
  (eval $ac_compile) 2>conftest.er1
4100
3335
  ac_status=$?
4101
3336
  grep -v '^ *+' conftest.er1 >conftest.err
4102
3337
  rm -f conftest.er1
4103
3338
  cat conftest.err >&5
4104
3339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105
 
  (exit $ac_status); } && {
4106
 
         test -z "$ac_c_werror_flag" ||
4107
 
         test ! -s conftest.err
4108
 
       } && test -s conftest.$ac_objext; then
4109
 
  ac_cv_prog_cc_c89=$ac_arg
 
3340
  (exit $ac_status); } &&
 
3341
         { ac_try='test -z "$ac_c_werror_flag"
 
3342
                         || test ! -s conftest.err'
 
3343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3344
  (eval $ac_try) 2>&5
 
3345
  ac_status=$?
 
3346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3347
  (exit $ac_status); }; } &&
 
3348
         { ac_try='test -s conftest.$ac_objext'
 
3349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3350
  (eval $ac_try) 2>&5
 
3351
  ac_status=$?
 
3352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3353
  (exit $ac_status); }; }; then
 
3354
  ac_cv_prog_cc_stdc=$ac_arg
 
3355
break
4110
3356
else
4111
3357
  echo "$as_me: failed program was:" >&5
4112
3358
sed 's/^/| /' conftest.$ac_ext >&5
4113
3359
 
4114
 
 
4115
3360
fi
4116
 
 
4117
 
rm -f core conftest.err conftest.$ac_objext
4118
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3361
rm -f conftest.err conftest.$ac_objext
4119
3362
done
4120
 
rm -f conftest.$ac_ext
 
3363
rm -f conftest.$ac_ext conftest.$ac_objext
4121
3364
CC=$ac_save_CC
4122
3365
 
4123
3366
fi
4124
 
# AC_CACHE_VAL
4125
 
case "x$ac_cv_prog_cc_c89" in
4126
 
  x)
4127
 
    { echo "$as_me:$LINENO: result: none needed" >&5
4128
 
echo "${ECHO_T}none needed" >&6; } ;;
4129
 
  xno)
4130
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
4131
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
3367
 
 
3368
case "x$ac_cv_prog_cc_stdc" in
 
3369
  x|xno)
 
3370
    echo "$as_me:$LINENO: result: none needed" >&5
 
3371
echo "${ECHO_T}none needed" >&6 ;;
4132
3372
  *)
4133
 
    CC="$CC $ac_cv_prog_cc_c89"
4134
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4135
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3373
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3374
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3375
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4136
3376
esac
4137
3377
 
4138
 
 
 
3378
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3379
# in C++ we need to declare it.  In case someone uses the same compiler
 
3380
# for both compiling C and C++ we need to have the C++ compiler decide
 
3381
# the declaration of exit, since it's the most demanding environment.
 
3382
cat >conftest.$ac_ext <<_ACEOF
 
3383
#ifndef __cplusplus
 
3384
  choke me
 
3385
#endif
 
3386
_ACEOF
 
3387
rm -f conftest.$ac_objext
 
3388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3389
  (eval $ac_compile) 2>conftest.er1
 
3390
  ac_status=$?
 
3391
  grep -v '^ *+' conftest.er1 >conftest.err
 
3392
  rm -f conftest.er1
 
3393
  cat conftest.err >&5
 
3394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3395
  (exit $ac_status); } &&
 
3396
         { ac_try='test -z "$ac_c_werror_flag"
 
3397
                         || test ! -s conftest.err'
 
3398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3399
  (eval $ac_try) 2>&5
 
3400
  ac_status=$?
 
3401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3402
  (exit $ac_status); }; } &&
 
3403
         { ac_try='test -s conftest.$ac_objext'
 
3404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3405
  (eval $ac_try) 2>&5
 
3406
  ac_status=$?
 
3407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3408
  (exit $ac_status); }; }; then
 
3409
  for ac_declaration in \
 
3410
   '' \
 
3411
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3412
   'extern "C" void std::exit (int); using std::exit;' \
 
3413
   'extern "C" void exit (int) throw ();' \
 
3414
   'extern "C" void exit (int);' \
 
3415
   'void exit (int);'
 
3416
do
 
3417
  cat >conftest.$ac_ext <<_ACEOF
 
3418
/* confdefs.h.  */
 
3419
_ACEOF
 
3420
cat confdefs.h >>conftest.$ac_ext
 
3421
cat >>conftest.$ac_ext <<_ACEOF
 
3422
/* end confdefs.h.  */
 
3423
$ac_declaration
 
3424
#include <stdlib.h>
 
3425
int
 
3426
main ()
 
3427
{
 
3428
exit (42);
 
3429
  ;
 
3430
  return 0;
 
3431
}
 
3432
_ACEOF
 
3433
rm -f conftest.$ac_objext
 
3434
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3435
  (eval $ac_compile) 2>conftest.er1
 
3436
  ac_status=$?
 
3437
  grep -v '^ *+' conftest.er1 >conftest.err
 
3438
  rm -f conftest.er1
 
3439
  cat conftest.err >&5
 
3440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3441
  (exit $ac_status); } &&
 
3442
         { ac_try='test -z "$ac_c_werror_flag"
 
3443
                         || test ! -s conftest.err'
 
3444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3445
  (eval $ac_try) 2>&5
 
3446
  ac_status=$?
 
3447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3448
  (exit $ac_status); }; } &&
 
3449
         { ac_try='test -s conftest.$ac_objext'
 
3450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3451
  (eval $ac_try) 2>&5
 
3452
  ac_status=$?
 
3453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3454
  (exit $ac_status); }; }; then
 
3455
  :
 
3456
else
 
3457
  echo "$as_me: failed program was:" >&5
 
3458
sed 's/^/| /' conftest.$ac_ext >&5
 
3459
 
 
3460
continue
 
3461
fi
 
3462
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3463
  cat >conftest.$ac_ext <<_ACEOF
 
3464
/* confdefs.h.  */
 
3465
_ACEOF
 
3466
cat confdefs.h >>conftest.$ac_ext
 
3467
cat >>conftest.$ac_ext <<_ACEOF
 
3468
/* end confdefs.h.  */
 
3469
$ac_declaration
 
3470
int
 
3471
main ()
 
3472
{
 
3473
exit (42);
 
3474
  ;
 
3475
  return 0;
 
3476
}
 
3477
_ACEOF
 
3478
rm -f conftest.$ac_objext
 
3479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3480
  (eval $ac_compile) 2>conftest.er1
 
3481
  ac_status=$?
 
3482
  grep -v '^ *+' conftest.er1 >conftest.err
 
3483
  rm -f conftest.er1
 
3484
  cat conftest.err >&5
 
3485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3486
  (exit $ac_status); } &&
 
3487
         { ac_try='test -z "$ac_c_werror_flag"
 
3488
                         || test ! -s conftest.err'
 
3489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3490
  (eval $ac_try) 2>&5
 
3491
  ac_status=$?
 
3492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); }; } &&
 
3494
         { ac_try='test -s conftest.$ac_objext'
 
3495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3496
  (eval $ac_try) 2>&5
 
3497
  ac_status=$?
 
3498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3499
  (exit $ac_status); }; }; then
 
3500
  break
 
3501
else
 
3502
  echo "$as_me: failed program was:" >&5
 
3503
sed 's/^/| /' conftest.$ac_ext >&5
 
3504
 
 
3505
fi
 
3506
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3507
done
 
3508
rm -f conftest*
 
3509
if test -n "$ac_declaration"; then
 
3510
  echo '#ifdef __cplusplus' >>confdefs.h
 
3511
  echo $ac_declaration      >>confdefs.h
 
3512
  echo '#endif'             >>confdefs.h
 
3513
fi
 
3514
 
 
3515
else
 
3516
  echo "$as_me: failed program was:" >&5
 
3517
sed 's/^/| /' conftest.$ac_ext >&5
 
3518
 
 
3519
fi
 
3520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139
3521
ac_ext=c
4140
3522
ac_cpp='$CPP $CPPFLAGS'
4141
3523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144
3526
 
4145
3527
depcc="$CC"   am_compiler_list=
4146
3528
 
4147
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4148
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3529
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3530
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4149
3531
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4150
3532
  echo $ECHO_N "(cached) $ECHO_C" >&6
4151
3533
else
4209
3591
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4210
3592
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4211
3593
         >/dev/null 2>conftest.err &&
4212
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4213
3594
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4214
3595
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4215
3596
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4235
3616
fi
4236
3617
 
4237
3618
fi
4238
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4239
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3619
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3620
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4240
3621
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4241
3622
 
4242
 
 if
 
3623
 
 
3624
 
 
3625
if
4243
3626
  test "x$enable_dependency_tracking" != xno \
4244
3627
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4245
3628
  am__fastdepCC_TRUE=
4263
3646
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4264
3647
# OS/2's system install, which has a completely different semantic
4265
3648
# ./install, which can be erroneously created by make from ./install.sh.
4266
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4267
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3649
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3650
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4268
3651
if test -z "$INSTALL"; then
4269
3652
if test "${ac_cv_path_install+set}" = set; then
4270
3653
  echo $ECHO_N "(cached) $ECHO_C" >&6
4286
3669
    # by default.
4287
3670
    for ac_prog in ginstall scoinst install; do
4288
3671
      for ac_exec_ext in '' $ac_executable_extensions; do
4289
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3672
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4290
3673
          if test $ac_prog = install &&
4291
3674
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4292
3675
            # AIX install.  It has an incompatible calling convention.
4305
3688
    ;;
4306
3689
esac
4307
3690
done
4308
 
IFS=$as_save_IFS
4309
3691
 
4310
3692
 
4311
3693
fi
4312
3694
  if test "${ac_cv_path_install+set}" = set; then
4313
3695
    INSTALL=$ac_cv_path_install
4314
3696
  else
4315
 
    # As a last resort, use the slow shell script.  Don't cache a
4316
 
    # value for INSTALL within a source directory, because that will
 
3697
    # As a last resort, use the slow shell script.  We don't cache a
 
3698
    # path for INSTALL within a source directory, because that will
4317
3699
    # break other packages using the cache if that directory is
4318
 
    # removed, or if the value is a relative name.
 
3700
    # removed, or if the path is relative.
4319
3701
    INSTALL=$ac_install_sh
4320
3702
  fi
4321
3703
fi
4322
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4323
 
echo "${ECHO_T}$INSTALL" >&6; }
 
3704
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3705
echo "${ECHO_T}$INSTALL" >&6
4324
3706
 
4325
3707
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4326
3708
# It thinks the first close brace ends the variable substitution.
4330
3712
 
4331
3713
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4332
3714
 
4333
 
# Check whether --enable-shared was given.
 
3715
# Check whether --enable-shared or --disable-shared was given.
4334
3716
if test "${enable_shared+set}" = set; then
4335
 
  enableval=$enable_shared; p=${PACKAGE-default}
 
3717
  enableval="$enable_shared"
 
3718
  p=${PACKAGE-default}
4336
3719
    case $enableval in
4337
3720
    yes) enable_shared=yes ;;
4338
3721
    no) enable_shared=no ;;
4351
3734
    esac
4352
3735
else
4353
3736
  enable_shared=yes
4354
 
fi
4355
 
 
4356
 
 
4357
 
# Check whether --enable-static was given.
 
3737
fi;
 
3738
 
 
3739
# Check whether --enable-static or --disable-static was given.
4358
3740
if test "${enable_static+set}" = set; then
4359
 
  enableval=$enable_static; p=${PACKAGE-default}
 
3741
  enableval="$enable_static"
 
3742
  p=${PACKAGE-default}
4360
3743
    case $enableval in
4361
3744
    yes) enable_static=yes ;;
4362
3745
    no) enable_static=no ;;
4375
3758
    esac
4376
3759
else
4377
3760
  enable_static=yes
4378
 
fi
4379
 
 
4380
 
 
4381
 
# Check whether --enable-fast-install was given.
 
3761
fi;
 
3762
 
 
3763
# Check whether --enable-fast-install or --disable-fast-install was given.
4382
3764
if test "${enable_fast_install+set}" = set; then
4383
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3765
  enableval="$enable_fast_install"
 
3766
  p=${PACKAGE-default}
4384
3767
    case $enableval in
4385
3768
    yes) enable_fast_install=yes ;;
4386
3769
    no) enable_fast_install=no ;;
4399
3782
    esac
4400
3783
else
4401
3784
  enable_fast_install=yes
4402
 
fi
4403
 
 
 
3785
fi;
4404
3786
 
4405
3787
# Make sure we can run config.sub.
4406
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4407
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4408
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3788
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3789
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3790
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4409
3791
   { (exit 1); exit 1; }; }
4410
3792
 
4411
 
{ echo "$as_me:$LINENO: checking build system type" >&5
4412
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3793
echo "$as_me:$LINENO: checking build system type" >&5
 
3794
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4413
3795
if test "${ac_cv_build+set}" = set; then
4414
3796
  echo $ECHO_N "(cached) $ECHO_C" >&6
4415
3797
else
4416
 
  ac_build_alias=$build_alias
4417
 
test "x$ac_build_alias" = x &&
4418
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4419
 
test "x$ac_build_alias" = x &&
 
3798
  ac_cv_build_alias=$build_alias
 
3799
test -z "$ac_cv_build_alias" &&
 
3800
  ac_cv_build_alias=`$ac_config_guess`
 
3801
test -z "$ac_cv_build_alias" &&
4420
3802
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4421
3803
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4422
3804
   { (exit 1); exit 1; }; }
4423
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4424
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4425
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3805
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3806
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3807
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4426
3808
   { (exit 1); exit 1; }; }
4427
3809
 
4428
3810
fi
4429
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4430
 
echo "${ECHO_T}$ac_cv_build" >&6; }
4431
 
case $ac_cv_build in
4432
 
*-*-*) ;;
4433
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4434
 
echo "$as_me: error: invalid value of canonical build" >&2;}
4435
 
   { (exit 1); exit 1; }; };;
4436
 
esac
 
3811
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3812
echo "${ECHO_T}$ac_cv_build" >&6
4437
3813
build=$ac_cv_build
4438
 
ac_save_IFS=$IFS; IFS='-'
4439
 
set x $ac_cv_build
4440
 
shift
4441
 
build_cpu=$1
4442
 
build_vendor=$2
4443
 
shift; shift
4444
 
# Remember, the first character of IFS is used to create $*,
4445
 
# except with old shells:
4446
 
build_os=$*
4447
 
IFS=$ac_save_IFS
4448
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4449
 
 
4450
 
 
4451
 
{ echo "$as_me:$LINENO: checking host system type" >&5
4452
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
3814
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3815
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3816
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3817
 
 
3818
 
 
3819
echo "$as_me:$LINENO: checking host system type" >&5
 
3820
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4453
3821
if test "${ac_cv_host+set}" = set; then
4454
3822
  echo $ECHO_N "(cached) $ECHO_C" >&6
4455
3823
else
4456
 
  if test "x$host_alias" = x; then
4457
 
  ac_cv_host=$ac_cv_build
4458
 
else
4459
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4460
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4461
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3824
  ac_cv_host_alias=$host_alias
 
3825
test -z "$ac_cv_host_alias" &&
 
3826
  ac_cv_host_alias=$ac_cv_build_alias
 
3827
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3828
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3829
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4462
3830
   { (exit 1); exit 1; }; }
4463
 
fi
4464
3831
 
4465
3832
fi
4466
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4467
 
echo "${ECHO_T}$ac_cv_host" >&6; }
4468
 
case $ac_cv_host in
4469
 
*-*-*) ;;
4470
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4471
 
echo "$as_me: error: invalid value of canonical host" >&2;}
4472
 
   { (exit 1); exit 1; }; };;
4473
 
esac
 
3833
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3834
echo "${ECHO_T}$ac_cv_host" >&6
4474
3835
host=$ac_cv_host
4475
 
ac_save_IFS=$IFS; IFS='-'
4476
 
set x $ac_cv_host
4477
 
shift
4478
 
host_cpu=$1
4479
 
host_vendor=$2
4480
 
shift; shift
4481
 
# Remember, the first character of IFS is used to create $*,
4482
 
# except with old shells:
4483
 
host_os=$*
4484
 
IFS=$ac_save_IFS
4485
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4486
 
 
4487
 
 
4488
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4489
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3836
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3837
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3838
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3839
 
 
3840
 
 
3841
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3842
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4490
3843
if test "${lt_cv_path_SED+set}" = set; then
4491
3844
  echo $ECHO_N "(cached) $ECHO_C" >&6
4492
3845
else
4499
3852
  test -z "$as_dir" && as_dir=.
4500
3853
  for lt_ac_prog in sed gsed; do
4501
3854
    for ac_exec_ext in '' $ac_executable_extensions; do
4502
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3855
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4503
3856
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4504
3857
      fi
4505
3858
    done
4506
3859
  done
4507
3860
done
4508
 
IFS=$as_save_IFS
4509
3861
lt_ac_max=0
4510
3862
lt_ac_count=0
4511
3863
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4540
3892
fi
4541
3893
 
4542
3894
SED=$lt_cv_path_SED
4543
 
 
4544
 
{ echo "$as_me:$LINENO: result: $SED" >&5
4545
 
echo "${ECHO_T}$SED" >&6; }
4546
 
 
4547
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4548
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4549
 
if test "${ac_cv_path_GREP+set}" = set; then
4550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4551
 
else
4552
 
  # Extract the first word of "grep ggrep" to use in msg output
4553
 
if test -z "$GREP"; then
4554
 
set dummy grep ggrep; ac_prog_name=$2
4555
 
if test "${ac_cv_path_GREP+set}" = set; then
4556
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4557
 
else
4558
 
  ac_path_GREP_found=false
4559
 
# Loop through the user's path and test for each of PROGNAME-LIST
4560
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4562
 
do
4563
 
  IFS=$as_save_IFS
4564
 
  test -z "$as_dir" && as_dir=.
4565
 
  for ac_prog in grep ggrep; do
4566
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4567
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4568
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4569
 
    # Check for GNU ac_path_GREP and select it if it is found.
4570
 
  # Check for GNU $ac_path_GREP
4571
 
case `"$ac_path_GREP" --version 2>&1` in
4572
 
*GNU*)
4573
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4574
 
*)
4575
 
  ac_count=0
4576
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4577
 
  while :
4578
 
  do
4579
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4580
 
    mv "conftest.tmp" "conftest.in"
4581
 
    cp "conftest.in" "conftest.nl"
4582
 
    echo 'GREP' >> "conftest.nl"
4583
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585
 
    ac_count=`expr $ac_count + 1`
4586
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4587
 
      # Best one so far, save it but keep looking for a better one
4588
 
      ac_cv_path_GREP="$ac_path_GREP"
4589
 
      ac_path_GREP_max=$ac_count
4590
 
    fi
4591
 
    # 10*(2^10) chars as input seems more than enough
4592
 
    test $ac_count -gt 10 && break
4593
 
  done
4594
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595
 
esac
4596
 
 
4597
 
 
4598
 
    $ac_path_GREP_found && break 3
4599
 
  done
4600
 
done
4601
 
 
4602
 
done
4603
 
IFS=$as_save_IFS
4604
 
 
4605
 
 
4606
 
fi
4607
 
 
4608
 
GREP="$ac_cv_path_GREP"
4609
 
if test -z "$GREP"; then
4610
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4611
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4612
 
   { (exit 1); exit 1; }; }
4613
 
fi
4614
 
 
4615
 
else
4616
 
  ac_cv_path_GREP=$GREP
4617
 
fi
4618
 
 
4619
 
 
4620
 
fi
4621
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4622
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4623
 
 GREP="$ac_cv_path_GREP"
4624
 
 
4625
 
 
4626
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4627
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4628
 
if test "${ac_cv_path_EGREP+set}" = set; then
4629
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4630
 
else
4631
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632
 
   then ac_cv_path_EGREP="$GREP -E"
4633
 
   else
4634
 
     # Extract the first word of "egrep" to use in msg output
4635
 
if test -z "$EGREP"; then
4636
 
set dummy egrep; ac_prog_name=$2
4637
 
if test "${ac_cv_path_EGREP+set}" = set; then
4638
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4639
 
else
4640
 
  ac_path_EGREP_found=false
4641
 
# Loop through the user's path and test for each of PROGNAME-LIST
4642
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644
 
do
4645
 
  IFS=$as_save_IFS
4646
 
  test -z "$as_dir" && as_dir=.
4647
 
  for ac_prog in egrep; do
4648
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4649
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4650
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4651
 
    # Check for GNU ac_path_EGREP and select it if it is found.
4652
 
  # Check for GNU $ac_path_EGREP
4653
 
case `"$ac_path_EGREP" --version 2>&1` in
4654
 
*GNU*)
4655
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4656
 
*)
4657
 
  ac_count=0
4658
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4659
 
  while :
4660
 
  do
4661
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4662
 
    mv "conftest.tmp" "conftest.in"
4663
 
    cp "conftest.in" "conftest.nl"
4664
 
    echo 'EGREP' >> "conftest.nl"
4665
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667
 
    ac_count=`expr $ac_count + 1`
4668
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4669
 
      # Best one so far, save it but keep looking for a better one
4670
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4671
 
      ac_path_EGREP_max=$ac_count
4672
 
    fi
4673
 
    # 10*(2^10) chars as input seems more than enough
4674
 
    test $ac_count -gt 10 && break
4675
 
  done
4676
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677
 
esac
4678
 
 
4679
 
 
4680
 
    $ac_path_EGREP_found && break 3
4681
 
  done
4682
 
done
4683
 
 
4684
 
done
4685
 
IFS=$as_save_IFS
4686
 
 
4687
 
 
4688
 
fi
4689
 
 
4690
 
EGREP="$ac_cv_path_EGREP"
4691
 
if test -z "$EGREP"; then
4692
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4693
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4694
 
   { (exit 1); exit 1; }; }
4695
 
fi
4696
 
 
4697
 
else
4698
 
  ac_cv_path_EGREP=$EGREP
4699
 
fi
4700
 
 
4701
 
 
4702
 
   fi
4703
 
fi
4704
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4705
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4706
 
 EGREP="$ac_cv_path_EGREP"
4707
 
 
4708
 
 
4709
 
 
4710
 
# Check whether --with-gnu-ld was given.
 
3895
echo "$as_me:$LINENO: result: $SED" >&5
 
3896
echo "${ECHO_T}$SED" >&6
 
3897
 
 
3898
echo "$as_me:$LINENO: checking for egrep" >&5
 
3899
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3900
if test "${ac_cv_prog_egrep+set}" = set; then
 
3901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3902
else
 
3903
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3904
    then ac_cv_prog_egrep='grep -E'
 
3905
    else ac_cv_prog_egrep='egrep'
 
3906
    fi
 
3907
fi
 
3908
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3909
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3910
 EGREP=$ac_cv_prog_egrep
 
3911
 
 
3912
 
 
3913
 
 
3914
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4711
3915
if test "${with_gnu_ld+set}" = set; then
4712
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
3916
  withval="$with_gnu_ld"
 
3917
  test "$withval" = no || with_gnu_ld=yes
4713
3918
else
4714
3919
  with_gnu_ld=no
4715
 
fi
4716
 
 
 
3920
fi;
4717
3921
ac_prog=ld
4718
3922
if test "$GCC" = yes; then
4719
3923
  # Check if gcc -print-prog-name=ld gives a path.
4720
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4721
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
3924
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3925
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4722
3926
  case $host in
4723
3927
  *-*-mingw*)
4724
3928
    # gcc leaves a trailing carriage return which upsets mingw
4747
3951
    ;;
4748
3952
  esac
4749
3953
elif test "$with_gnu_ld" = yes; then
4750
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4751
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
3954
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3955
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4752
3956
else
4753
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4754
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
3957
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3958
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4755
3959
fi
4756
3960
if test "${lt_cv_path_LD+set}" = set; then
4757
3961
  echo $ECHO_N "(cached) $ECHO_C" >&6
4764
3968
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4765
3969
      lt_cv_path_LD="$ac_dir/$ac_prog"
4766
3970
      # Check to see if the program is GNU ld.  I'd rather use --version,
4767
 
      # but apparently some variants of GNU ld only accept -v.
 
3971
      # but apparently some GNU ld's only accept -v.
4768
3972
      # Break only if it was the GNU/non-GNU ld that we prefer.
4769
3973
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4770
3974
      *GNU* | *'with BFD'*)
4784
3988
 
4785
3989
LD="$lt_cv_path_LD"
4786
3990
if test -n "$LD"; then
4787
 
  { echo "$as_me:$LINENO: result: $LD" >&5
4788
 
echo "${ECHO_T}$LD" >&6; }
 
3991
  echo "$as_me:$LINENO: result: $LD" >&5
 
3992
echo "${ECHO_T}$LD" >&6
4789
3993
else
4790
 
  { echo "$as_me:$LINENO: result: no" >&5
4791
 
echo "${ECHO_T}no" >&6; }
 
3994
  echo "$as_me:$LINENO: result: no" >&5
 
3995
echo "${ECHO_T}no" >&6
4792
3996
fi
4793
3997
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4794
3998
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4795
3999
   { (exit 1); exit 1; }; }
4796
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4797
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4000
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4001
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4798
4002
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4799
4003
  echo $ECHO_N "(cached) $ECHO_C" >&6
4800
4004
else
4801
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4005
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4802
4006
case `$LD -v 2>&1 </dev/null` in
4803
4007
*GNU* | *'with BFD'*)
4804
4008
  lt_cv_prog_gnu_ld=yes
4808
4012
  ;;
4809
4013
esac
4810
4014
fi
4811
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4812
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4015
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4016
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4813
4017
with_gnu_ld=$lt_cv_prog_gnu_ld
4814
4018
 
4815
4019
 
4816
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4817
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4020
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4021
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4818
4022
if test "${lt_cv_ld_reload_flag+set}" = set; then
4819
4023
  echo $ECHO_N "(cached) $ECHO_C" >&6
4820
4024
else
4821
4025
  lt_cv_ld_reload_flag='-r'
4822
4026
fi
4823
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4824
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4027
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4028
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4825
4029
reload_flag=$lt_cv_ld_reload_flag
4826
4030
case $reload_flag in
4827
4031
"" | " "*) ;;
4831
4035
case $host_os in
4832
4036
  darwin*)
4833
4037
    if test "$GCC" = yes; then
4834
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4038
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4835
4039
    else
4836
4040
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4837
4041
    fi
4838
4042
    ;;
4839
4043
esac
4840
4044
 
4841
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4842
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4045
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4046
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4843
4047
if test "${lt_cv_path_NM+set}" = set; then
4844
4048
  echo $ECHO_N "(cached) $ECHO_C" >&6
4845
4049
else
4847
4051
  # Let the user override the test.
4848
4052
  lt_cv_path_NM="$NM"
4849
4053
else
4850
 
  lt_nm_to_check="${ac_tool_prefix}nm"
4851
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4852
 
    lt_nm_to_check="$lt_nm_to_check nm"
4853
 
  fi
4854
 
  for lt_tmp_nm in $lt_nm_to_check; do
4855
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4856
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4857
 
      IFS="$lt_save_ifs"
4858
 
      test -z "$ac_dir" && ac_dir=.
4859
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4860
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4861
 
        # Check to see if the nm accepts a BSD-compat flag.
4862
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4863
 
        #   nm: unknown option "B" ignored
4864
 
        # Tru64's nm complains that /dev/null is an invalid object file
4865
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4866
 
        */dev/null* | *'Invalid file or object type'*)
4867
 
          lt_cv_path_NM="$tmp_nm -B"
 
4054
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4055
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4056
    IFS="$lt_save_ifs"
 
4057
    test -z "$ac_dir" && ac_dir=.
 
4058
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4059
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4060
      # Check to see if the nm accepts a BSD-compat flag.
 
4061
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4062
      #   nm: unknown option "B" ignored
 
4063
      # Tru64's nm complains that /dev/null is an invalid object file
 
4064
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4065
      */dev/null* | *'Invalid file or object type'*)
 
4066
        lt_cv_path_NM="$tmp_nm -B"
 
4067
        break
 
4068
        ;;
 
4069
      *)
 
4070
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4071
        */dev/null*)
 
4072
          lt_cv_path_NM="$tmp_nm -p"
4868
4073
          break
4869
4074
          ;;
4870
4075
        *)
4871
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4872
 
          */dev/null*)
4873
 
            lt_cv_path_NM="$tmp_nm -p"
4874
 
            break
4875
 
            ;;
4876
 
          *)
4877
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4878
 
            continue # so that we can try to find one that supports BSD flags
4879
 
            ;;
4880
 
          esac
 
4076
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4077
          continue # so that we can try to find one that supports BSD flags
4881
4078
          ;;
4882
4079
        esac
4883
 
      fi
4884
 
    done
4885
 
    IFS="$lt_save_ifs"
 
4080
      esac
 
4081
    fi
4886
4082
  done
 
4083
  IFS="$lt_save_ifs"
4887
4084
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4888
4085
fi
4889
4086
fi
4890
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4891
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4087
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4088
echo "${ECHO_T}$lt_cv_path_NM" >&6
4892
4089
NM="$lt_cv_path_NM"
4893
4090
 
4894
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4895
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4091
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4092
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4896
4093
LN_S=$as_ln_s
4897
4094
if test "$LN_S" = "ln -s"; then
4898
 
  { echo "$as_me:$LINENO: result: yes" >&5
4899
 
echo "${ECHO_T}yes" >&6; }
 
4095
  echo "$as_me:$LINENO: result: yes" >&5
 
4096
echo "${ECHO_T}yes" >&6
4900
4097
else
4901
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4902
 
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4098
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4099
echo "${ECHO_T}no, using $LN_S" >&6
4903
4100
fi
4904
4101
 
4905
 
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4906
 
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4102
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4103
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4907
4104
if test "${lt_cv_deplibs_check_method+set}" = set; then
4908
4105
  echo $ECHO_N "(cached) $ECHO_C" >&6
4909
4106
else
4944
4141
 
4945
4142
mingw* | pw32*)
4946
4143
  # Base MSYS/MinGW do not provide the 'file' command needed by
4947
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4948
 
  # unless we find 'file', for example because we are cross-compiling.
4949
 
  if ( file / ) >/dev/null 2>&1; then
4950
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4951
 
    lt_cv_file_magic_cmd='func_win32_libid'
4952
 
  else
4953
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4954
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4955
 
  fi
 
4144
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4145
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4146
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4956
4147
  ;;
4957
4148
 
4958
4149
darwin* | rhapsody*)
4959
4150
  lt_cv_deplibs_check_method=pass_all
4960
4151
  ;;
4961
4152
 
4962
 
freebsd* | dragonfly*)
 
4153
freebsd* | kfreebsd*-gnu | dragonfly*)
4963
4154
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4964
4155
    case $host_cpu in
4965
4156
    i*86 )
4981
4172
 
4982
4173
hpux10.20* | hpux11*)
4983
4174
  lt_cv_file_magic_cmd=/usr/bin/file
4984
 
  case $host_cpu in
 
4175
  case "$host_cpu" in
4985
4176
  ia64*)
4986
4177
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4987
4178
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4997
4188
  esac
4998
4189
  ;;
4999
4190
 
5000
 
interix[3-9]*)
5001
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5002
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5003
 
  ;;
5004
 
 
5005
4191
irix5* | irix6* | nonstopux*)
5006
4192
  case $LD in
5007
4193
  *-32|*"-32 ") libmagic=32-bit;;
5013
4199
  ;;
5014
4200
 
5015
4201
# This must be Linux ELF.
5016
 
linux* | k*bsd*-gnu)
 
4202
linux*)
5017
4203
  lt_cv_deplibs_check_method=pass_all
5018
4204
  ;;
5019
4205
 
5020
 
netbsd* | netbsdelf*-gnu)
 
4206
netbsd*)
5021
4207
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5022
4208
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5023
4209
  else
5047
4233
  lt_cv_deplibs_check_method=pass_all
5048
4234
  ;;
5049
4235
 
5050
 
rdos*)
 
4236
sco3.2v5*)
5051
4237
  lt_cv_deplibs_check_method=pass_all
5052
4238
  ;;
5053
4239
 
5055
4241
  lt_cv_deplibs_check_method=pass_all
5056
4242
  ;;
5057
4243
 
5058
 
sysv4 | sysv4.3*)
 
4244
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5059
4245
  case $host_vendor in
5060
4246
  motorola)
5061
4247
    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]'
5076
4262
  siemens)
5077
4263
    lt_cv_deplibs_check_method=pass_all
5078
4264
    ;;
5079
 
  pc)
5080
 
    lt_cv_deplibs_check_method=pass_all
5081
 
    ;;
5082
4265
  esac
5083
4266
  ;;
5084
4267
 
5085
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4268
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5086
4269
  lt_cv_deplibs_check_method=pass_all
5087
4270
  ;;
5088
4271
esac
5089
4272
 
5090
4273
fi
5091
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5092
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4274
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4275
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5093
4276
file_magic_cmd=$lt_cv_file_magic_cmd
5094
4277
deplibs_check_method=$lt_cv_deplibs_check_method
5095
4278
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5100
4283
# If no C compiler was specified, use CC.
5101
4284
LTCC=${LTCC-"$CC"}
5102
4285
 
5103
 
# If no C compiler flags were specified, use CFLAGS.
5104
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5105
 
 
5106
4286
# Allow CC to be a program name with arguments.
5107
4287
compiler=$CC
5108
4288
 
5109
4289
 
5110
 
# Check whether --enable-libtool-lock was given.
 
4290
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5111
4291
if test "${enable_libtool_lock+set}" = set; then
5112
 
  enableval=$enable_libtool_lock;
5113
 
fi
 
4292
  enableval="$enable_libtool_lock"
5114
4293
 
 
4294
fi;
5115
4295
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5116
4296
 
5117
4297
# Some flags need to be propagated to the compiler or linker for good
5138
4318
  ;;
5139
4319
*-*-irix6*)
5140
4320
  # Find out which ABI we are using.
5141
 
  echo '#line 5141 "configure"' > conftest.$ac_ext
 
4321
  echo '#line 4321 "configure"' > conftest.$ac_ext
5142
4322
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143
4323
  (eval $ac_compile) 2>&5
5144
4324
  ac_status=$?
5173
4353
  rm -rf conftest*
5174
4354
  ;;
5175
4355
 
5176
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5177
 
s390*-*linux*|sparc*-*linux*)
 
4356
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5178
4357
  # Find out which ABI we are using.
5179
4358
  echo 'int i;' > conftest.$ac_ext
5180
4359
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182
4361
  ac_status=$?
5183
4362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184
4363
  (exit $ac_status); }; then
5185
 
    case `/usr/bin/file conftest.o` in
 
4364
    case "`/usr/bin/file conftest.o`" in
5186
4365
    *32-bit*)
5187
4366
      case $host in
5188
 
        x86_64-*kfreebsd*-gnu)
5189
 
          LD="${LD-ld} -m elf_i386_fbsd"
5190
 
          ;;
5191
4367
        x86_64-*linux*)
5192
4368
          LD="${LD-ld} -m elf_i386"
5193
4369
          ;;
5204
4380
      ;;
5205
4381
    *64-bit*)
5206
4382
      case $host in
5207
 
        x86_64-*kfreebsd*-gnu)
5208
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
5209
 
          ;;
5210
4383
        x86_64-*linux*)
5211
4384
          LD="${LD-ld} -m elf_x86_64"
5212
4385
          ;;
5230
4403
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5231
4404
  SAVE_CFLAGS="$CFLAGS"
5232
4405
  CFLAGS="$CFLAGS -belf"
5233
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5234
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4406
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4407
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5235
4408
if test "${lt_cv_cc_needs_belf+set}" = set; then
5236
4409
  echo $ECHO_N "(cached) $ECHO_C" >&6
5237
4410
else
5257
4430
}
5258
4431
_ACEOF
5259
4432
rm -f conftest.$ac_objext conftest$ac_exeext
5260
 
if { (ac_try="$ac_link"
5261
 
case "(($ac_try" in
5262
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263
 
  *) ac_try_echo=$ac_try;;
5264
 
esac
5265
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266
 
  (eval "$ac_link") 2>conftest.er1
 
4433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4434
  (eval $ac_link) 2>conftest.er1
5267
4435
  ac_status=$?
5268
4436
  grep -v '^ *+' conftest.er1 >conftest.err
5269
4437
  rm -f conftest.er1
5270
4438
  cat conftest.err >&5
5271
4439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
 
  (exit $ac_status); } && {
5273
 
         test -z "$ac_c_werror_flag" ||
5274
 
         test ! -s conftest.err
5275
 
       } && test -s conftest$ac_exeext &&
5276
 
       $as_test_x conftest$ac_exeext; then
 
4440
  (exit $ac_status); } &&
 
4441
         { ac_try='test -z "$ac_c_werror_flag"
 
4442
                         || test ! -s conftest.err'
 
4443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4444
  (eval $ac_try) 2>&5
 
4445
  ac_status=$?
 
4446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4447
  (exit $ac_status); }; } &&
 
4448
         { ac_try='test -s conftest$ac_exeext'
 
4449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4450
  (eval $ac_try) 2>&5
 
4451
  ac_status=$?
 
4452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4453
  (exit $ac_status); }; }; then
5277
4454
  lt_cv_cc_needs_belf=yes
5278
4455
else
5279
4456
  echo "$as_me: failed program was:" >&5
5280
4457
sed 's/^/| /' conftest.$ac_ext >&5
5281
4458
 
5282
 
        lt_cv_cc_needs_belf=no
 
4459
lt_cv_cc_needs_belf=no
5283
4460
fi
5284
 
 
5285
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4461
rm -f conftest.err conftest.$ac_objext \
5286
4462
      conftest$ac_exeext conftest.$ac_ext
5287
4463
     ac_ext=c
5288
4464
ac_cpp='$CPP $CPPFLAGS'
5291
4467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292
4468
 
5293
4469
fi
5294
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5295
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4470
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4471
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5296
4472
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5297
4473
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5298
4474
    CFLAGS="$SAVE_CFLAGS"
5299
4475
  fi
5300
4476
  ;;
5301
 
sparc*-*solaris*)
5302
 
  # Find out which ABI we are using.
5303
 
  echo 'int i;' > conftest.$ac_ext
5304
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305
 
  (eval $ac_compile) 2>&5
5306
 
  ac_status=$?
5307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308
 
  (exit $ac_status); }; then
5309
 
    case `/usr/bin/file conftest.o` in
5310
 
    *64-bit*)
5311
 
      case $lt_cv_prog_gnu_ld in
5312
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5313
 
      *)    LD="${LD-ld} -64" ;;
5314
 
      esac
5315
 
      ;;
5316
 
    esac
5317
 
  fi
5318
 
  rm -rf conftest*
5319
 
  ;;
5320
 
 
5321
4477
 
5322
4478
esac
5323
4479
 
5329
4485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330
4486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331
4487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5333
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4488
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4489
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5334
4490
# On Suns, sometimes $CPP names a directory.
5335
4491
if test -n "$CPP" && test -d "$CPP"; then
5336
4492
  CPP=
5364
4520
#endif
5365
4521
                     Syntax error
5366
4522
_ACEOF
5367
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5368
 
case "(($ac_try" in
5369
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370
 
  *) ac_try_echo=$ac_try;;
5371
 
esac
5372
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4523
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4524
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374
4525
  ac_status=$?
5375
4526
  grep -v '^ *+' conftest.er1 >conftest.err
5376
4527
  rm -f conftest.er1
5377
4528
  cat conftest.err >&5
5378
4529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379
 
  (exit $ac_status); } >/dev/null && {
5380
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5381
 
         test ! -s conftest.err
5382
 
       }; then
 
4530
  (exit $ac_status); } >/dev/null; then
 
4531
  if test -s conftest.err; then
 
4532
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4533
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4534
  else
 
4535
    ac_cpp_err=
 
4536
  fi
 
4537
else
 
4538
  ac_cpp_err=yes
 
4539
fi
 
4540
if test -z "$ac_cpp_err"; then
5383
4541
  :
5384
4542
else
5385
4543
  echo "$as_me: failed program was:" >&5
5388
4546
  # Broken: fails on valid input.
5389
4547
continue
5390
4548
fi
5391
 
 
5392
4549
rm -f conftest.err conftest.$ac_ext
5393
4550
 
5394
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4551
  # OK, works on sane cases.  Now check whether non-existent headers
5395
4552
  # can be detected and how.
5396
4553
  cat >conftest.$ac_ext <<_ACEOF
5397
4554
/* confdefs.h.  */
5401
4558
/* end confdefs.h.  */
5402
4559
#include <ac_nonexistent.h>
5403
4560
_ACEOF
5404
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5405
 
case "(($ac_try" in
5406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407
 
  *) ac_try_echo=$ac_try;;
5408
 
esac
5409
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4561
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4562
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5411
4563
  ac_status=$?
5412
4564
  grep -v '^ *+' conftest.er1 >conftest.err
5413
4565
  rm -f conftest.er1
5414
4566
  cat conftest.err >&5
5415
4567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416
 
  (exit $ac_status); } >/dev/null && {
5417
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5418
 
         test ! -s conftest.err
5419
 
       }; then
 
4568
  (exit $ac_status); } >/dev/null; then
 
4569
  if test -s conftest.err; then
 
4570
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4571
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4572
  else
 
4573
    ac_cpp_err=
 
4574
  fi
 
4575
else
 
4576
  ac_cpp_err=yes
 
4577
fi
 
4578
if test -z "$ac_cpp_err"; then
5420
4579
  # Broken: success on invalid input.
5421
4580
continue
5422
4581
else
5427
4586
ac_preproc_ok=:
5428
4587
break
5429
4588
fi
5430
 
 
5431
4589
rm -f conftest.err conftest.$ac_ext
5432
4590
 
5433
4591
done
5445
4603
else
5446
4604
  ac_cv_prog_CPP=$CPP
5447
4605
fi
5448
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
5449
 
echo "${ECHO_T}$CPP" >&6; }
 
4606
echo "$as_me:$LINENO: result: $CPP" >&5
 
4607
echo "${ECHO_T}$CPP" >&6
5450
4608
ac_preproc_ok=false
5451
4609
for ac_c_preproc_warn_flag in '' yes
5452
4610
do
5469
4627
#endif
5470
4628
                     Syntax error
5471
4629
_ACEOF
5472
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5473
 
case "(($ac_try" in
5474
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475
 
  *) ac_try_echo=$ac_try;;
5476
 
esac
5477
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4630
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4631
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479
4632
  ac_status=$?
5480
4633
  grep -v '^ *+' conftest.er1 >conftest.err
5481
4634
  rm -f conftest.er1
5482
4635
  cat conftest.err >&5
5483
4636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
 
  (exit $ac_status); } >/dev/null && {
5485
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5486
 
         test ! -s conftest.err
5487
 
       }; then
 
4637
  (exit $ac_status); } >/dev/null; then
 
4638
  if test -s conftest.err; then
 
4639
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4640
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4641
  else
 
4642
    ac_cpp_err=
 
4643
  fi
 
4644
else
 
4645
  ac_cpp_err=yes
 
4646
fi
 
4647
if test -z "$ac_cpp_err"; then
5488
4648
  :
5489
4649
else
5490
4650
  echo "$as_me: failed program was:" >&5
5493
4653
  # Broken: fails on valid input.
5494
4654
continue
5495
4655
fi
5496
 
 
5497
4656
rm -f conftest.err conftest.$ac_ext
5498
4657
 
5499
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4658
  # OK, works on sane cases.  Now check whether non-existent headers
5500
4659
  # can be detected and how.
5501
4660
  cat >conftest.$ac_ext <<_ACEOF
5502
4661
/* confdefs.h.  */
5506
4665
/* end confdefs.h.  */
5507
4666
#include <ac_nonexistent.h>
5508
4667
_ACEOF
5509
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5510
 
case "(($ac_try" in
5511
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512
 
  *) ac_try_echo=$ac_try;;
5513
 
esac
5514
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4668
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4669
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5516
4670
  ac_status=$?
5517
4671
  grep -v '^ *+' conftest.er1 >conftest.err
5518
4672
  rm -f conftest.er1
5519
4673
  cat conftest.err >&5
5520
4674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521
 
  (exit $ac_status); } >/dev/null && {
5522
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5523
 
         test ! -s conftest.err
5524
 
       }; then
 
4675
  (exit $ac_status); } >/dev/null; then
 
4676
  if test -s conftest.err; then
 
4677
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4678
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4679
  else
 
4680
    ac_cpp_err=
 
4681
  fi
 
4682
else
 
4683
  ac_cpp_err=yes
 
4684
fi
 
4685
if test -z "$ac_cpp_err"; then
5525
4686
  # Broken: success on invalid input.
5526
4687
continue
5527
4688
else
5532
4693
ac_preproc_ok=:
5533
4694
break
5534
4695
fi
5535
 
 
5536
4696
rm -f conftest.err conftest.$ac_ext
5537
4697
 
5538
4698
done
5555
4715
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556
4716
 
5557
4717
 
5558
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5559
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4718
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4719
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5560
4720
if test "${ac_cv_header_stdc+set}" = set; then
5561
4721
  echo $ECHO_N "(cached) $ECHO_C" >&6
5562
4722
else
5580
4740
}
5581
4741
_ACEOF
5582
4742
rm -f conftest.$ac_objext
5583
 
if { (ac_try="$ac_compile"
5584
 
case "(($ac_try" in
5585
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586
 
  *) ac_try_echo=$ac_try;;
5587
 
esac
5588
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589
 
  (eval "$ac_compile") 2>conftest.er1
 
4743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4744
  (eval $ac_compile) 2>conftest.er1
5590
4745
  ac_status=$?
5591
4746
  grep -v '^ *+' conftest.er1 >conftest.err
5592
4747
  rm -f conftest.er1
5593
4748
  cat conftest.err >&5
5594
4749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595
 
  (exit $ac_status); } && {
5596
 
         test -z "$ac_c_werror_flag" ||
5597
 
         test ! -s conftest.err
5598
 
       } && test -s conftest.$ac_objext; then
 
4750
  (exit $ac_status); } &&
 
4751
         { ac_try='test -z "$ac_c_werror_flag"
 
4752
                         || test ! -s conftest.err'
 
4753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4754
  (eval $ac_try) 2>&5
 
4755
  ac_status=$?
 
4756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4757
  (exit $ac_status); }; } &&
 
4758
         { ac_try='test -s conftest.$ac_objext'
 
4759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4760
  (eval $ac_try) 2>&5
 
4761
  ac_status=$?
 
4762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4763
  (exit $ac_status); }; }; then
5599
4764
  ac_cv_header_stdc=yes
5600
4765
else
5601
4766
  echo "$as_me: failed program was:" >&5
5602
4767
sed 's/^/| /' conftest.$ac_ext >&5
5603
4768
 
5604
 
        ac_cv_header_stdc=no
 
4769
ac_cv_header_stdc=no
5605
4770
fi
5606
 
 
5607
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608
4772
 
5609
4773
if test $ac_cv_header_stdc = yes; then
5610
4774
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5660
4824
cat >>conftest.$ac_ext <<_ACEOF
5661
4825
/* end confdefs.h.  */
5662
4826
#include <ctype.h>
5663
 
#include <stdlib.h>
5664
4827
#if ((' ' & 0x0FF) == 0x020)
5665
4828
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5666
4829
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5680
4843
  for (i = 0; i < 256; i++)
5681
4844
    if (XOR (islower (i), ISLOWER (i))
5682
4845
        || toupper (i) != TOUPPER (i))
5683
 
      return 2;
5684
 
  return 0;
 
4846
      exit(2);
 
4847
  exit (0);
5685
4848
}
5686
4849
_ACEOF
5687
4850
rm -f conftest$ac_exeext
5688
 
if { (ac_try="$ac_link"
5689
 
case "(($ac_try" in
5690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691
 
  *) ac_try_echo=$ac_try;;
5692
 
esac
5693
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694
 
  (eval "$ac_link") 2>&5
 
4851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4852
  (eval $ac_link) 2>&5
5695
4853
  ac_status=$?
5696
4854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697
4855
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5698
 
  { (case "(($ac_try" in
5699
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700
 
  *) ac_try_echo=$ac_try;;
5701
 
esac
5702
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703
 
  (eval "$ac_try") 2>&5
 
4856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4857
  (eval $ac_try) 2>&5
5704
4858
  ac_status=$?
5705
4859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706
4860
  (exit $ac_status); }; }; then
5713
4867
( exit $ac_status )
5714
4868
ac_cv_header_stdc=no
5715
4869
fi
5716
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5717
 
fi
5718
 
 
5719
 
 
5720
 
fi
5721
 
fi
5722
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5723
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4870
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4871
fi
 
4872
fi
 
4873
fi
 
4874
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4875
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5724
4876
if test $ac_cv_header_stdc = yes; then
5725
4877
 
5726
4878
cat >>confdefs.h <<\_ACEOF
5743
4895
                  inttypes.h stdint.h unistd.h
5744
4896
do
5745
4897
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5746
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5747
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5748
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4898
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4899
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4900
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5749
4901
  echo $ECHO_N "(cached) $ECHO_C" >&6
5750
4902
else
5751
4903
  cat >conftest.$ac_ext <<_ACEOF
5759
4911
#include <$ac_header>
5760
4912
_ACEOF
5761
4913
rm -f conftest.$ac_objext
5762
 
if { (ac_try="$ac_compile"
5763
 
case "(($ac_try" in
5764
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765
 
  *) ac_try_echo=$ac_try;;
5766
 
esac
5767
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768
 
  (eval "$ac_compile") 2>conftest.er1
 
4914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4915
  (eval $ac_compile) 2>conftest.er1
5769
4916
  ac_status=$?
5770
4917
  grep -v '^ *+' conftest.er1 >conftest.err
5771
4918
  rm -f conftest.er1
5772
4919
  cat conftest.err >&5
5773
4920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774
 
  (exit $ac_status); } && {
5775
 
         test -z "$ac_c_werror_flag" ||
5776
 
         test ! -s conftest.err
5777
 
       } && test -s conftest.$ac_objext; then
 
4921
  (exit $ac_status); } &&
 
4922
         { ac_try='test -z "$ac_c_werror_flag"
 
4923
                         || test ! -s conftest.err'
 
4924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4925
  (eval $ac_try) 2>&5
 
4926
  ac_status=$?
 
4927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4928
  (exit $ac_status); }; } &&
 
4929
         { ac_try='test -s conftest.$ac_objext'
 
4930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4931
  (eval $ac_try) 2>&5
 
4932
  ac_status=$?
 
4933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4934
  (exit $ac_status); }; }; then
5778
4935
  eval "$as_ac_Header=yes"
5779
4936
else
5780
4937
  echo "$as_me: failed program was:" >&5
5781
4938
sed 's/^/| /' conftest.$ac_ext >&5
5782
4939
 
5783
 
        eval "$as_ac_Header=no"
5784
 
fi
5785
 
 
5786
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787
 
fi
5788
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5789
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5790
 
echo "${ECHO_T}$ac_res" >&6; }
 
4940
eval "$as_ac_Header=no"
 
4941
fi
 
4942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4943
fi
 
4944
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4945
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5791
4946
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5792
4947
  cat >>confdefs.h <<_ACEOF
5793
4948
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5802
4957
for ac_header in dlfcn.h
5803
4958
do
5804
4959
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5805
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5806
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5807
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5808
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4960
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4961
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4962
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4963
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5809
4964
  echo $ECHO_N "(cached) $ECHO_C" >&6
5810
4965
fi
5811
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5812
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5813
 
echo "${ECHO_T}$ac_res" >&6; }
 
4966
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4967
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5814
4968
else
5815
4969
  # Is the header compilable?
5816
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5817
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4970
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4971
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5818
4972
cat >conftest.$ac_ext <<_ACEOF
5819
4973
/* confdefs.h.  */
5820
4974
_ACEOF
5825
4979
#include <$ac_header>
5826
4980
_ACEOF
5827
4981
rm -f conftest.$ac_objext
5828
 
if { (ac_try="$ac_compile"
5829
 
case "(($ac_try" in
5830
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831
 
  *) ac_try_echo=$ac_try;;
5832
 
esac
5833
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834
 
  (eval "$ac_compile") 2>conftest.er1
 
4982
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4983
  (eval $ac_compile) 2>conftest.er1
5835
4984
  ac_status=$?
5836
4985
  grep -v '^ *+' conftest.er1 >conftest.err
5837
4986
  rm -f conftest.er1
5838
4987
  cat conftest.err >&5
5839
4988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840
 
  (exit $ac_status); } && {
5841
 
         test -z "$ac_c_werror_flag" ||
5842
 
         test ! -s conftest.err
5843
 
       } && test -s conftest.$ac_objext; then
 
4989
  (exit $ac_status); } &&
 
4990
         { ac_try='test -z "$ac_c_werror_flag"
 
4991
                         || test ! -s conftest.err'
 
4992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4993
  (eval $ac_try) 2>&5
 
4994
  ac_status=$?
 
4995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4996
  (exit $ac_status); }; } &&
 
4997
         { ac_try='test -s conftest.$ac_objext'
 
4998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4999
  (eval $ac_try) 2>&5
 
5000
  ac_status=$?
 
5001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5002
  (exit $ac_status); }; }; then
5844
5003
  ac_header_compiler=yes
5845
5004
else
5846
5005
  echo "$as_me: failed program was:" >&5
5847
5006
sed 's/^/| /' conftest.$ac_ext >&5
5848
5007
 
5849
 
        ac_header_compiler=no
 
5008
ac_header_compiler=no
5850
5009
fi
5851
 
 
5852
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5854
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5010
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5011
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5012
echo "${ECHO_T}$ac_header_compiler" >&6
5855
5013
 
5856
5014
# Is the header present?
5857
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5858
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5015
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5016
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5859
5017
cat >conftest.$ac_ext <<_ACEOF
5860
5018
/* confdefs.h.  */
5861
5019
_ACEOF
5864
5022
/* end confdefs.h.  */
5865
5023
#include <$ac_header>
5866
5024
_ACEOF
5867
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5868
 
case "(($ac_try" in
5869
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870
 
  *) ac_try_echo=$ac_try;;
5871
 
esac
5872
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5025
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5026
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5874
5027
  ac_status=$?
5875
5028
  grep -v '^ *+' conftest.er1 >conftest.err
5876
5029
  rm -f conftest.er1
5877
5030
  cat conftest.err >&5
5878
5031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879
 
  (exit $ac_status); } >/dev/null && {
5880
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5881
 
         test ! -s conftest.err
5882
 
       }; then
 
5032
  (exit $ac_status); } >/dev/null; then
 
5033
  if test -s conftest.err; then
 
5034
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5035
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5036
  else
 
5037
    ac_cpp_err=
 
5038
  fi
 
5039
else
 
5040
  ac_cpp_err=yes
 
5041
fi
 
5042
if test -z "$ac_cpp_err"; then
5883
5043
  ac_header_preproc=yes
5884
5044
else
5885
5045
  echo "$as_me: failed program was:" >&5
5887
5047
 
5888
5048
  ac_header_preproc=no
5889
5049
fi
5890
 
 
5891
5050
rm -f conftest.err conftest.$ac_ext
5892
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5893
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5051
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5052
echo "${ECHO_T}$ac_header_preproc" >&6
5894
5053
 
5895
5054
# So?  What about this header?
5896
5055
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5914
5073
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5915
5074
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5916
5075
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5917
 
    ( cat <<\_ASBOX
 
5076
    (
 
5077
      cat <<\_ASBOX
5918
5078
## -------------------------------------------- ##
5919
5079
## Report this to bherger@users.sourceforge.net ##
5920
5080
## -------------------------------------------- ##
5921
5081
_ASBOX
5922
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5082
    ) |
 
5083
      sed "s/^/$as_me: WARNING:     /" >&2
5923
5084
    ;;
5924
5085
esac
5925
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5926
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5927
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5086
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5087
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5088
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928
5089
  echo $ECHO_N "(cached) $ECHO_C" >&6
5929
5090
else
5930
5091
  eval "$as_ac_Header=\$ac_header_preproc"
5931
5092
fi
5932
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5933
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5934
 
echo "${ECHO_T}$ac_res" >&6; }
 
5093
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5094
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5935
5095
 
5936
5096
fi
5937
5097
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5948
5108
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5949
5109
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5950
5110
    (test "X$CXX" != "Xg++"))) ; then
5951
 
  ac_ext=cpp
 
5111
  ac_ext=cc
5952
5112
ac_cpp='$CXXCPP $CPPFLAGS'
5953
5113
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954
5114
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955
5115
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5957
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5116
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5117
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5958
5118
if test -z "$CXXCPP"; then
5959
5119
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5960
5120
  echo $ECHO_N "(cached) $ECHO_C" >&6
5984
5144
#endif
5985
5145
                     Syntax error
5986
5146
_ACEOF
5987
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5988
 
case "(($ac_try" in
5989
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990
 
  *) ac_try_echo=$ac_try;;
5991
 
esac
5992
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5147
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5148
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5994
5149
  ac_status=$?
5995
5150
  grep -v '^ *+' conftest.er1 >conftest.err
5996
5151
  rm -f conftest.er1
5997
5152
  cat conftest.err >&5
5998
5153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999
 
  (exit $ac_status); } >/dev/null && {
6000
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6001
 
         test ! -s conftest.err
6002
 
       }; then
 
5154
  (exit $ac_status); } >/dev/null; then
 
5155
  if test -s conftest.err; then
 
5156
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5157
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5158
  else
 
5159
    ac_cpp_err=
 
5160
  fi
 
5161
else
 
5162
  ac_cpp_err=yes
 
5163
fi
 
5164
if test -z "$ac_cpp_err"; then
6003
5165
  :
6004
5166
else
6005
5167
  echo "$as_me: failed program was:" >&5
6008
5170
  # Broken: fails on valid input.
6009
5171
continue
6010
5172
fi
6011
 
 
6012
5173
rm -f conftest.err conftest.$ac_ext
6013
5174
 
6014
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5175
  # OK, works on sane cases.  Now check whether non-existent headers
6015
5176
  # can be detected and how.
6016
5177
  cat >conftest.$ac_ext <<_ACEOF
6017
5178
/* confdefs.h.  */
6021
5182
/* end confdefs.h.  */
6022
5183
#include <ac_nonexistent.h>
6023
5184
_ACEOF
6024
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6025
 
case "(($ac_try" in
6026
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027
 
  *) ac_try_echo=$ac_try;;
6028
 
esac
6029
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5185
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5186
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6031
5187
  ac_status=$?
6032
5188
  grep -v '^ *+' conftest.er1 >conftest.err
6033
5189
  rm -f conftest.er1
6034
5190
  cat conftest.err >&5
6035
5191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036
 
  (exit $ac_status); } >/dev/null && {
6037
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6038
 
         test ! -s conftest.err
6039
 
       }; then
 
5192
  (exit $ac_status); } >/dev/null; then
 
5193
  if test -s conftest.err; then
 
5194
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5195
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5196
  else
 
5197
    ac_cpp_err=
 
5198
  fi
 
5199
else
 
5200
  ac_cpp_err=yes
 
5201
fi
 
5202
if test -z "$ac_cpp_err"; then
6040
5203
  # Broken: success on invalid input.
6041
5204
continue
6042
5205
else
6047
5210
ac_preproc_ok=:
6048
5211
break
6049
5212
fi
6050
 
 
6051
5213
rm -f conftest.err conftest.$ac_ext
6052
5214
 
6053
5215
done
6065
5227
else
6066
5228
  ac_cv_prog_CXXCPP=$CXXCPP
6067
5229
fi
6068
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6069
 
echo "${ECHO_T}$CXXCPP" >&6; }
 
5230
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5231
echo "${ECHO_T}$CXXCPP" >&6
6070
5232
ac_preproc_ok=false
6071
5233
for ac_cxx_preproc_warn_flag in '' yes
6072
5234
do
6089
5251
#endif
6090
5252
                     Syntax error
6091
5253
_ACEOF
6092
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6093
 
case "(($ac_try" in
6094
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095
 
  *) ac_try_echo=$ac_try;;
6096
 
esac
6097
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5254
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5255
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6099
5256
  ac_status=$?
6100
5257
  grep -v '^ *+' conftest.er1 >conftest.err
6101
5258
  rm -f conftest.er1
6102
5259
  cat conftest.err >&5
6103
5260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104
 
  (exit $ac_status); } >/dev/null && {
6105
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6106
 
         test ! -s conftest.err
6107
 
       }; then
 
5261
  (exit $ac_status); } >/dev/null; then
 
5262
  if test -s conftest.err; then
 
5263
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5264
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5265
  else
 
5266
    ac_cpp_err=
 
5267
  fi
 
5268
else
 
5269
  ac_cpp_err=yes
 
5270
fi
 
5271
if test -z "$ac_cpp_err"; then
6108
5272
  :
6109
5273
else
6110
5274
  echo "$as_me: failed program was:" >&5
6113
5277
  # Broken: fails on valid input.
6114
5278
continue
6115
5279
fi
6116
 
 
6117
5280
rm -f conftest.err conftest.$ac_ext
6118
5281
 
6119
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5282
  # OK, works on sane cases.  Now check whether non-existent headers
6120
5283
  # can be detected and how.
6121
5284
  cat >conftest.$ac_ext <<_ACEOF
6122
5285
/* confdefs.h.  */
6126
5289
/* end confdefs.h.  */
6127
5290
#include <ac_nonexistent.h>
6128
5291
_ACEOF
6129
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6130
 
case "(($ac_try" in
6131
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132
 
  *) ac_try_echo=$ac_try;;
6133
 
esac
6134
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5292
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5293
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136
5294
  ac_status=$?
6137
5295
  grep -v '^ *+' conftest.er1 >conftest.err
6138
5296
  rm -f conftest.er1
6139
5297
  cat conftest.err >&5
6140
5298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141
 
  (exit $ac_status); } >/dev/null && {
6142
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6143
 
         test ! -s conftest.err
6144
 
       }; then
 
5299
  (exit $ac_status); } >/dev/null; then
 
5300
  if test -s conftest.err; then
 
5301
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5302
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5303
  else
 
5304
    ac_cpp_err=
 
5305
  fi
 
5306
else
 
5307
  ac_cpp_err=yes
 
5308
fi
 
5309
if test -z "$ac_cpp_err"; then
6145
5310
  # Broken: success on invalid input.
6146
5311
continue
6147
5312
else
6152
5317
ac_preproc_ok=:
6153
5318
break
6154
5319
fi
6155
 
 
6156
5320
rm -f conftest.err conftest.$ac_ext
6157
5321
 
6158
5322
done
6168
5332
   { (exit 1); exit 1; }; }
6169
5333
fi
6170
5334
 
6171
 
ac_ext=cpp
 
5335
ac_ext=cc
6172
5336
ac_cpp='$CXXCPP $CPPFLAGS'
6173
5337
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174
5338
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182
5346
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183
5347
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6184
5348
if test -n "$ac_tool_prefix"; then
6185
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5349
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6186
5350
  do
6187
5351
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188
5352
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5353
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6191
5355
if test "${ac_cv_prog_F77+set}" = set; then
6192
5356
  echo $ECHO_N "(cached) $ECHO_C" >&6
6193
5357
else
6200
5364
  IFS=$as_save_IFS
6201
5365
  test -z "$as_dir" && as_dir=.
6202
5366
  for ac_exec_ext in '' $ac_executable_extensions; do
6203
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5367
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204
5368
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6205
5369
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206
5370
    break 2
6207
5371
  fi
6208
5372
done
6209
5373
done
6210
 
IFS=$as_save_IFS
6211
5374
 
6212
5375
fi
6213
5376
fi
6214
5377
F77=$ac_cv_prog_F77
6215
5378
if test -n "$F77"; then
6216
 
  { echo "$as_me:$LINENO: result: $F77" >&5
6217
 
echo "${ECHO_T}$F77" >&6; }
 
5379
  echo "$as_me:$LINENO: result: $F77" >&5
 
5380
echo "${ECHO_T}$F77" >&6
6218
5381
else
6219
 
  { echo "$as_me:$LINENO: result: no" >&5
6220
 
echo "${ECHO_T}no" >&6; }
 
5382
  echo "$as_me:$LINENO: result: no" >&5
 
5383
echo "${ECHO_T}no" >&6
6221
5384
fi
6222
5385
 
6223
 
 
6224
5386
    test -n "$F77" && break
6225
5387
  done
6226
5388
fi
6227
5389
if test -z "$F77"; then
6228
5390
  ac_ct_F77=$F77
6229
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5391
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6230
5392
do
6231
5393
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6232
5394
set dummy $ac_prog; ac_word=$2
6233
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6234
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5395
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6235
5397
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6236
5398
  echo $ECHO_N "(cached) $ECHO_C" >&6
6237
5399
else
6244
5406
  IFS=$as_save_IFS
6245
5407
  test -z "$as_dir" && as_dir=.
6246
5408
  for ac_exec_ext in '' $ac_executable_extensions; do
6247
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5409
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248
5410
    ac_cv_prog_ac_ct_F77="$ac_prog"
6249
5411
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250
5412
    break 2
6251
5413
  fi
6252
5414
done
6253
5415
done
6254
 
IFS=$as_save_IFS
6255
5416
 
6256
5417
fi
6257
5418
fi
6258
5419
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6259
5420
if test -n "$ac_ct_F77"; then
6260
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6261
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
5421
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5422
echo "${ECHO_T}$ac_ct_F77" >&6
6262
5423
else
6263
 
  { echo "$as_me:$LINENO: result: no" >&5
6264
 
echo "${ECHO_T}no" >&6; }
 
5424
  echo "$as_me:$LINENO: result: no" >&5
 
5425
echo "${ECHO_T}no" >&6
6265
5426
fi
6266
5427
 
6267
 
 
6268
5428
  test -n "$ac_ct_F77" && break
6269
5429
done
6270
5430
 
6271
 
  if test "x$ac_ct_F77" = x; then
6272
 
    F77=""
6273
 
  else
6274
 
    case $cross_compiling:$ac_tool_warned in
6275
 
yes:)
6276
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277
 
whose name does not start with the host triplet.  If you think this
6278
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6279
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280
 
whose name does not start with the host triplet.  If you think this
6281
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282
 
ac_tool_warned=yes ;;
6283
 
esac
6284
 
    F77=$ac_ct_F77
6285
 
  fi
 
5431
  F77=$ac_ct_F77
6286
5432
fi
6287
5433
 
6288
5434
 
6289
5435
# Provide some information about the compiler.
6290
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
5436
echo "$as_me:5436:" \
 
5437
     "checking for Fortran 77 compiler version" >&5
6291
5438
ac_compiler=`set X $ac_compile; echo $2`
6292
 
{ (ac_try="$ac_compiler --version >&5"
6293
 
case "(($ac_try" in
6294
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295
 
  *) ac_try_echo=$ac_try;;
6296
 
esac
6297
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298
 
  (eval "$ac_compiler --version >&5") 2>&5
6299
 
  ac_status=$?
6300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301
 
  (exit $ac_status); }
6302
 
{ (ac_try="$ac_compiler -v >&5"
6303
 
case "(($ac_try" in
6304
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305
 
  *) ac_try_echo=$ac_try;;
6306
 
esac
6307
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308
 
  (eval "$ac_compiler -v >&5") 2>&5
6309
 
  ac_status=$?
6310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311
 
  (exit $ac_status); }
6312
 
{ (ac_try="$ac_compiler -V >&5"
6313
 
case "(($ac_try" in
6314
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315
 
  *) ac_try_echo=$ac_try;;
6316
 
esac
6317
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318
 
  (eval "$ac_compiler -V >&5") 2>&5
 
5439
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5440
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5441
  ac_status=$?
 
5442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5443
  (exit $ac_status); }
 
5444
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5445
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5446
  ac_status=$?
 
5447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5448
  (exit $ac_status); }
 
5449
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5450
  (eval $ac_compiler -V </dev/null >&5) 2>&5
6319
5451
  ac_status=$?
6320
5452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321
5453
  (exit $ac_status); }
6325
5457
# input file.  (Note that this only needs to work for GNU compilers.)
6326
5458
ac_save_ext=$ac_ext
6327
5459
ac_ext=F
6328
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6329
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
5460
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5461
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6330
5462
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6331
5463
  echo $ECHO_N "(cached) $ECHO_C" >&6
6332
5464
else
6339
5471
      end
6340
5472
_ACEOF
6341
5473
rm -f conftest.$ac_objext
6342
 
if { (ac_try="$ac_compile"
6343
 
case "(($ac_try" in
6344
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345
 
  *) ac_try_echo=$ac_try;;
6346
 
esac
6347
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348
 
  (eval "$ac_compile") 2>conftest.er1
 
5474
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5475
  (eval $ac_compile) 2>conftest.er1
6349
5476
  ac_status=$?
6350
5477
  grep -v '^ *+' conftest.er1 >conftest.err
6351
5478
  rm -f conftest.er1
6352
5479
  cat conftest.err >&5
6353
5480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354
 
  (exit $ac_status); } && {
6355
 
         test -z "$ac_f77_werror_flag" ||
6356
 
         test ! -s conftest.err
6357
 
       } && test -s conftest.$ac_objext; then
 
5481
  (exit $ac_status); } &&
 
5482
         { ac_try='test -z "$ac_f77_werror_flag"
 
5483
                         || test ! -s conftest.err'
 
5484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5485
  (eval $ac_try) 2>&5
 
5486
  ac_status=$?
 
5487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5488
  (exit $ac_status); }; } &&
 
5489
         { ac_try='test -s conftest.$ac_objext'
 
5490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5491
  (eval $ac_try) 2>&5
 
5492
  ac_status=$?
 
5493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5494
  (exit $ac_status); }; }; then
6358
5495
  ac_compiler_gnu=yes
6359
5496
else
6360
5497
  echo "$as_me: failed program was:" >&5
6361
5498
sed 's/^/| /' conftest.$ac_ext >&5
6362
5499
 
6363
 
        ac_compiler_gnu=no
 
5500
ac_compiler_gnu=no
6364
5501
fi
6365
 
 
6366
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5502
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367
5503
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6368
5504
 
6369
5505
fi
6370
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6371
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
5506
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5507
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6372
5508
ac_ext=$ac_save_ext
6373
5509
ac_test_FFLAGS=${FFLAGS+set}
6374
5510
ac_save_FFLAGS=$FFLAGS
6375
5511
FFLAGS=
6376
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6377
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
5512
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5513
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6378
5514
if test "${ac_cv_prog_f77_g+set}" = set; then
6379
5515
  echo $ECHO_N "(cached) $ECHO_C" >&6
6380
5516
else
6385
5521
      end
6386
5522
_ACEOF
6387
5523
rm -f conftest.$ac_objext
6388
 
if { (ac_try="$ac_compile"
6389
 
case "(($ac_try" in
6390
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391
 
  *) ac_try_echo=$ac_try;;
6392
 
esac
6393
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394
 
  (eval "$ac_compile") 2>conftest.er1
 
5524
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5525
  (eval $ac_compile) 2>conftest.er1
6395
5526
  ac_status=$?
6396
5527
  grep -v '^ *+' conftest.er1 >conftest.err
6397
5528
  rm -f conftest.er1
6398
5529
  cat conftest.err >&5
6399
5530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400
 
  (exit $ac_status); } && {
6401
 
         test -z "$ac_f77_werror_flag" ||
6402
 
         test ! -s conftest.err
6403
 
       } && test -s conftest.$ac_objext; then
 
5531
  (exit $ac_status); } &&
 
5532
         { ac_try='test -z "$ac_f77_werror_flag"
 
5533
                         || test ! -s conftest.err'
 
5534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5535
  (eval $ac_try) 2>&5
 
5536
  ac_status=$?
 
5537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5538
  (exit $ac_status); }; } &&
 
5539
         { ac_try='test -s conftest.$ac_objext'
 
5540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5541
  (eval $ac_try) 2>&5
 
5542
  ac_status=$?
 
5543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5544
  (exit $ac_status); }; }; then
6404
5545
  ac_cv_prog_f77_g=yes
6405
5546
else
6406
5547
  echo "$as_me: failed program was:" >&5
6407
5548
sed 's/^/| /' conftest.$ac_ext >&5
6408
5549
 
6409
 
        ac_cv_prog_f77_g=no
6410
 
fi
6411
 
 
6412
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413
 
 
6414
 
fi
6415
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6416
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
5550
ac_cv_prog_f77_g=no
 
5551
fi
 
5552
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5553
 
 
5554
fi
 
5555
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5556
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6417
5557
if test "$ac_test_FFLAGS" = set; then
6418
5558
  FFLAGS=$ac_save_FFLAGS
6419
5559
elif test $ac_cv_prog_f77_g = yes; then
6442
5582
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6443
5583
 
6444
5584
# find the maximum length of command line arguments
6445
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6446
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
5585
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5586
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6447
5587
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6448
5588
  echo $ECHO_N "(cached) $ECHO_C" >&6
6449
5589
else
6490
5630
    elif test -x /usr/sbin/sysctl; then
6491
5631
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6492
5632
    else
6493
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5633
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6494
5634
    fi
6495
5635
    # And add a safety zone
6496
5636
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6497
5637
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6498
5638
    ;;
6499
 
 
6500
 
  interix*)
6501
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6502
 
    lt_cv_sys_max_cmd_len=196608
6503
 
    ;;
6504
 
 
6505
5639
  osf*)
6506
5640
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6507
5641
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6515
5649
      esac
6516
5650
    fi
6517
5651
    ;;
6518
 
  sco3.2v5*)
6519
 
    lt_cv_sys_max_cmd_len=102400
6520
 
    ;;
6521
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6522
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6523
 
    if test -n "$kargmax"; then
6524
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6525
 
    else
6526
 
      lt_cv_sys_max_cmd_len=32768
6527
 
    fi
6528
 
    ;;
6529
5652
  *)
6530
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6531
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6532
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6533
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6534
 
    else
6535
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6536
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5653
    # If test is not a shell built-in, we'll probably end up computing a
 
5654
    # maximum length that is only half of the actual maximum length, but
 
5655
    # we can't tell.
 
5656
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5657
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6537
5658
               = "XX$teststring") >/dev/null 2>&1 &&
6538
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
6539
 
              lt_cv_sys_max_cmd_len=$new_result &&
6540
 
              test $i != 17 # 1/2 MB should be enough
6541
 
      do
6542
 
        i=`expr $i + 1`
6543
 
        teststring=$teststring$teststring
6544
 
      done
6545
 
      teststring=
6546
 
      # Add a significant safety factor because C++ compilers can tack on massive
6547
 
      # amounts of additional arguments before passing them to the linker.
6548
 
      # It appears as though 1/2 is a usable value.
6549
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6550
 
    fi
 
5659
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5660
            lt_cv_sys_max_cmd_len=$new_result &&
 
5661
            test $i != 17 # 1/2 MB should be enough
 
5662
    do
 
5663
      i=`expr $i + 1`
 
5664
      teststring=$teststring$teststring
 
5665
    done
 
5666
    teststring=
 
5667
    # Add a significant safety factor because C++ compilers can tack on massive
 
5668
    # amounts of additional arguments before passing them to the linker.
 
5669
    # It appears as though 1/2 is a usable value.
 
5670
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6551
5671
    ;;
6552
5672
  esac
6553
5673
 
6554
5674
fi
6555
5675
 
6556
5676
if test -n $lt_cv_sys_max_cmd_len ; then
6557
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6558
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
5677
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5678
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6559
5679
else
6560
 
  { echo "$as_me:$LINENO: result: none" >&5
6561
 
echo "${ECHO_T}none" >&6; }
 
5680
  echo "$as_me:$LINENO: result: none" >&5
 
5681
echo "${ECHO_T}none" >&6
6562
5682
fi
6563
5683
 
6564
5684
 
6565
5685
 
6566
5686
 
6567
 
 
6568
5687
# Check for command to grab the raw symbol name followed by C symbol from nm.
6569
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6570
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
5688
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5689
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6571
5690
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6572
5691
  echo $ECHO_N "(cached) $ECHO_C" >&6
6573
5692
else
6602
5721
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6603
5722
  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'"
6604
5723
  ;;
6605
 
linux* | k*bsd*-gnu)
 
5724
linux*)
6606
5725
  if test "$host_cpu" = ia64; then
6607
5726
    symcode='[ABCDGIRSTW]'
6608
5727
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6615
5734
osf*)
6616
5735
  symcode='[BCDEGQRST]'
6617
5736
  ;;
6618
 
solaris*)
 
5737
solaris* | sysv5*)
6619
5738
  symcode='[BDRT]'
6620
5739
  ;;
6621
 
sco3.2v5*)
6622
 
  symcode='[DT]'
6623
 
  ;;
6624
 
sysv4.2uw2*)
6625
 
  symcode='[DT]'
6626
 
  ;;
6627
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6628
 
  symcode='[ABDT]'
6629
 
  ;;
6630
5740
sysv4)
6631
5741
  symcode='[DFNSTU]'
6632
5742
  ;;
6771
5881
  lt_cv_sys_global_symbol_to_cdecl=
6772
5882
fi
6773
5883
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6774
 
  { echo "$as_me:$LINENO: result: failed" >&5
6775
 
echo "${ECHO_T}failed" >&6; }
 
5884
  echo "$as_me:$LINENO: result: failed" >&5
 
5885
echo "${ECHO_T}failed" >&6
6776
5886
else
6777
 
  { echo "$as_me:$LINENO: result: ok" >&5
6778
 
echo "${ECHO_T}ok" >&6; }
 
5887
  echo "$as_me:$LINENO: result: ok" >&5
 
5888
echo "${ECHO_T}ok" >&6
6779
5889
fi
6780
5890
 
6781
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
6782
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
5891
echo "$as_me:$LINENO: checking for objdir" >&5
 
5892
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6783
5893
if test "${lt_cv_objdir+set}" = set; then
6784
5894
  echo $ECHO_N "(cached) $ECHO_C" >&6
6785
5895
else
6793
5903
fi
6794
5904
rmdir .libs 2>/dev/null
6795
5905
fi
6796
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6797
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
5906
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5907
echo "${ECHO_T}$lt_cv_objdir" >&6
6798
5908
objdir=$lt_cv_objdir
6799
5909
 
6800
5910
 
6835
5945
default_ofile=libtool
6836
5946
can_build_shared=yes
6837
5947
 
6838
 
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5948
# All known linkers require a `.a' archive for static linking (except M$VC,
6839
5949
# which needs '.lib').
6840
5950
libext=a
6841
5951
ltmain="$ac_aux_dir/ltmain.sh"
6845
5955
if test -n "$ac_tool_prefix"; then
6846
5956
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6847
5957
set dummy ${ac_tool_prefix}ar; ac_word=$2
6848
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6849
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5958
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6850
5960
if test "${ac_cv_prog_AR+set}" = set; then
6851
5961
  echo $ECHO_N "(cached) $ECHO_C" >&6
6852
5962
else
6859
5969
  IFS=$as_save_IFS
6860
5970
  test -z "$as_dir" && as_dir=.
6861
5971
  for ac_exec_ext in '' $ac_executable_extensions; do
6862
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5972
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863
5973
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6864
5974
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865
5975
    break 2
6866
5976
  fi
6867
5977
done
6868
5978
done
6869
 
IFS=$as_save_IFS
6870
5979
 
6871
5980
fi
6872
5981
fi
6873
5982
AR=$ac_cv_prog_AR
6874
5983
if test -n "$AR"; then
6875
 
  { echo "$as_me:$LINENO: result: $AR" >&5
6876
 
echo "${ECHO_T}$AR" >&6; }
 
5984
  echo "$as_me:$LINENO: result: $AR" >&5
 
5985
echo "${ECHO_T}$AR" >&6
6877
5986
else
6878
 
  { echo "$as_me:$LINENO: result: no" >&5
6879
 
echo "${ECHO_T}no" >&6; }
 
5987
  echo "$as_me:$LINENO: result: no" >&5
 
5988
echo "${ECHO_T}no" >&6
6880
5989
fi
6881
 
 
6882
5990
 
6883
5991
fi
6884
5992
if test -z "$ac_cv_prog_AR"; then
6885
5993
  ac_ct_AR=$AR
6886
5994
  # Extract the first word of "ar", so it can be a program name with args.
6887
5995
set dummy ar; ac_word=$2
6888
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6889
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5996
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5997
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6890
5998
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6891
5999
  echo $ECHO_N "(cached) $ECHO_C" >&6
6892
6000
else
6899
6007
  IFS=$as_save_IFS
6900
6008
  test -z "$as_dir" && as_dir=.
6901
6009
  for ac_exec_ext in '' $ac_executable_extensions; do
6902
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6010
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903
6011
    ac_cv_prog_ac_ct_AR="ar"
6904
6012
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905
6013
    break 2
6906
6014
  fi
6907
6015
done
6908
6016
done
6909
 
IFS=$as_save_IFS
6910
6017
 
 
6018
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6911
6019
fi
6912
6020
fi
6913
6021
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6914
6022
if test -n "$ac_ct_AR"; then
6915
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6916
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6023
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6024
echo "${ECHO_T}$ac_ct_AR" >&6
6917
6025
else
6918
 
  { echo "$as_me:$LINENO: result: no" >&5
6919
 
echo "${ECHO_T}no" >&6; }
 
6026
  echo "$as_me:$LINENO: result: no" >&5
 
6027
echo "${ECHO_T}no" >&6
6920
6028
fi
6921
6029
 
6922
 
  if test "x$ac_ct_AR" = x; then
6923
 
    AR="false"
6924
 
  else
6925
 
    case $cross_compiling:$ac_tool_warned in
6926
 
yes:)
6927
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6928
 
whose name does not start with the host triplet.  If you think this
6929
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6930
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6931
 
whose name does not start with the host triplet.  If you think this
6932
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6933
 
ac_tool_warned=yes ;;
6934
 
esac
6935
 
    AR=$ac_ct_AR
6936
 
  fi
 
6030
  AR=$ac_ct_AR
6937
6031
else
6938
6032
  AR="$ac_cv_prog_AR"
6939
6033
fi
6941
6035
if test -n "$ac_tool_prefix"; then
6942
6036
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6943
6037
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6944
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6038
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6039
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946
6040
if test "${ac_cv_prog_RANLIB+set}" = set; then
6947
6041
  echo $ECHO_N "(cached) $ECHO_C" >&6
6948
6042
else
6955
6049
  IFS=$as_save_IFS
6956
6050
  test -z "$as_dir" && as_dir=.
6957
6051
  for ac_exec_ext in '' $ac_executable_extensions; do
6958
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6052
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959
6053
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6960
6054
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961
6055
    break 2
6962
6056
  fi
6963
6057
done
6964
6058
done
6965
 
IFS=$as_save_IFS
6966
6059
 
6967
6060
fi
6968
6061
fi
6969
6062
RANLIB=$ac_cv_prog_RANLIB
6970
6063
if test -n "$RANLIB"; then
6971
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6972
 
echo "${ECHO_T}$RANLIB" >&6; }
 
6064
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6065
echo "${ECHO_T}$RANLIB" >&6
6973
6066
else
6974
 
  { echo "$as_me:$LINENO: result: no" >&5
6975
 
echo "${ECHO_T}no" >&6; }
 
6067
  echo "$as_me:$LINENO: result: no" >&5
 
6068
echo "${ECHO_T}no" >&6
6976
6069
fi
6977
 
 
6978
6070
 
6979
6071
fi
6980
6072
if test -z "$ac_cv_prog_RANLIB"; then
6981
6073
  ac_ct_RANLIB=$RANLIB
6982
6074
  # Extract the first word of "ranlib", so it can be a program name with args.
6983
6075
set dummy ranlib; ac_word=$2
6984
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6985
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6076
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6986
6078
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6987
6079
  echo $ECHO_N "(cached) $ECHO_C" >&6
6988
6080
else
6995
6087
  IFS=$as_save_IFS
6996
6088
  test -z "$as_dir" && as_dir=.
6997
6089
  for ac_exec_ext in '' $ac_executable_extensions; do
6998
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6090
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999
6091
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7000
6092
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001
6093
    break 2
7002
6094
  fi
7003
6095
done
7004
6096
done
7005
 
IFS=$as_save_IFS
7006
6097
 
 
6098
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7007
6099
fi
7008
6100
fi
7009
6101
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7010
6102
if test -n "$ac_ct_RANLIB"; then
7011
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7012
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6103
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6104
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7013
6105
else
7014
 
  { echo "$as_me:$LINENO: result: no" >&5
7015
 
echo "${ECHO_T}no" >&6; }
 
6106
  echo "$as_me:$LINENO: result: no" >&5
 
6107
echo "${ECHO_T}no" >&6
7016
6108
fi
7017
6109
 
7018
 
  if test "x$ac_ct_RANLIB" = x; then
7019
 
    RANLIB=":"
7020
 
  else
7021
 
    case $cross_compiling:$ac_tool_warned in
7022
 
yes:)
7023
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7024
 
whose name does not start with the host triplet.  If you think this
7025
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7026
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7027
 
whose name does not start with the host triplet.  If you think this
7028
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7029
 
ac_tool_warned=yes ;;
7030
 
esac
7031
 
    RANLIB=$ac_ct_RANLIB
7032
 
  fi
 
6110
  RANLIB=$ac_ct_RANLIB
7033
6111
else
7034
6112
  RANLIB="$ac_cv_prog_RANLIB"
7035
6113
fi
7037
6115
if test -n "$ac_tool_prefix"; then
7038
6116
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7039
6117
set dummy ${ac_tool_prefix}strip; ac_word=$2
7040
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7041
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6118
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6119
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7042
6120
if test "${ac_cv_prog_STRIP+set}" = set; then
7043
6121
  echo $ECHO_N "(cached) $ECHO_C" >&6
7044
6122
else
7051
6129
  IFS=$as_save_IFS
7052
6130
  test -z "$as_dir" && as_dir=.
7053
6131
  for ac_exec_ext in '' $ac_executable_extensions; do
7054
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6132
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055
6133
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7056
6134
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057
6135
    break 2
7058
6136
  fi
7059
6137
done
7060
6138
done
7061
 
IFS=$as_save_IFS
7062
6139
 
7063
6140
fi
7064
6141
fi
7065
6142
STRIP=$ac_cv_prog_STRIP
7066
6143
if test -n "$STRIP"; then
7067
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
7068
 
echo "${ECHO_T}$STRIP" >&6; }
 
6144
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6145
echo "${ECHO_T}$STRIP" >&6
7069
6146
else
7070
 
  { echo "$as_me:$LINENO: result: no" >&5
7071
 
echo "${ECHO_T}no" >&6; }
 
6147
  echo "$as_me:$LINENO: result: no" >&5
 
6148
echo "${ECHO_T}no" >&6
7072
6149
fi
7073
 
 
7074
6150
 
7075
6151
fi
7076
6152
if test -z "$ac_cv_prog_STRIP"; then
7077
6153
  ac_ct_STRIP=$STRIP
7078
6154
  # Extract the first word of "strip", so it can be a program name with args.
7079
6155
set dummy strip; ac_word=$2
7080
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6156
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6157
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7082
6158
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7083
6159
  echo $ECHO_N "(cached) $ECHO_C" >&6
7084
6160
else
7091
6167
  IFS=$as_save_IFS
7092
6168
  test -z "$as_dir" && as_dir=.
7093
6169
  for ac_exec_ext in '' $ac_executable_extensions; do
7094
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6170
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095
6171
    ac_cv_prog_ac_ct_STRIP="strip"
7096
6172
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097
6173
    break 2
7098
6174
  fi
7099
6175
done
7100
6176
done
7101
 
IFS=$as_save_IFS
7102
6177
 
 
6178
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7103
6179
fi
7104
6180
fi
7105
6181
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7106
6182
if test -n "$ac_ct_STRIP"; then
7107
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7108
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6183
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6184
echo "${ECHO_T}$ac_ct_STRIP" >&6
7109
6185
else
7110
 
  { echo "$as_me:$LINENO: result: no" >&5
7111
 
echo "${ECHO_T}no" >&6; }
 
6186
  echo "$as_me:$LINENO: result: no" >&5
 
6187
echo "${ECHO_T}no" >&6
7112
6188
fi
7113
6189
 
7114
 
  if test "x$ac_ct_STRIP" = x; then
7115
 
    STRIP=":"
7116
 
  else
7117
 
    case $cross_compiling:$ac_tool_warned in
7118
 
yes:)
7119
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7120
 
whose name does not start with the host triplet.  If you think this
7121
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7122
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7123
 
whose name does not start with the host triplet.  If you think this
7124
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7125
 
ac_tool_warned=yes ;;
7126
 
esac
7127
 
    STRIP=$ac_ct_STRIP
7128
 
  fi
 
6190
  STRIP=$ac_ct_STRIP
7129
6191
else
7130
6192
  STRIP="$ac_cv_prog_STRIP"
7131
6193
fi
7140
6202
test -z "$AS" && AS=as
7141
6203
test -z "$CC" && CC=cc
7142
6204
test -z "$LTCC" && LTCC=$CC
7143
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7144
6205
test -z "$DLLTOOL" && DLLTOOL=dlltool
7145
6206
test -z "$LD" && LD=ld
7146
6207
test -z "$LN_S" && LN_S="ln -s"
7153
6214
test -z "$ac_objext" && ac_objext=o
7154
6215
 
7155
6216
# Determine commands to create old-style static archives.
7156
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6217
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7157
6218
old_postinstall_cmds='chmod 644 $oldlib'
7158
6219
old_postuninstall_cmds=
7159
6220
 
7160
6221
if test -n "$RANLIB"; then
7161
6222
  case $host_os in
7162
6223
  openbsd*)
7163
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6224
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7164
6225
    ;;
7165
6226
  *)
7166
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6227
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7167
6228
    ;;
7168
6229
  esac
7169
6230
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7184
6245
case $deplibs_check_method in
7185
6246
file_magic*)
7186
6247
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7187
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7188
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6248
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6249
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7189
6250
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7190
6251
  echo $ECHO_N "(cached) $ECHO_C" >&6
7191
6252
else
7205
6266
      if test -n "$file_magic_test_file"; then
7206
6267
        case $deplibs_check_method in
7207
6268
        "file_magic "*)
7208
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6269
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7209
6270
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7210
6271
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7211
6272
            $EGREP "$file_magic_regex" > /dev/null; then
7237
6298
 
7238
6299
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7239
6300
if test -n "$MAGIC_CMD"; then
7240
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7241
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6301
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6302
echo "${ECHO_T}$MAGIC_CMD" >&6
7242
6303
else
7243
 
  { echo "$as_me:$LINENO: result: no" >&5
7244
 
echo "${ECHO_T}no" >&6; }
 
6304
  echo "$as_me:$LINENO: result: no" >&5
 
6305
echo "${ECHO_T}no" >&6
7245
6306
fi
7246
6307
 
7247
6308
if test -z "$lt_cv_path_MAGIC_CMD"; then
7248
6309
  if test -n "$ac_tool_prefix"; then
7249
 
    { echo "$as_me:$LINENO: checking for file" >&5
7250
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
6310
    echo "$as_me:$LINENO: checking for file" >&5
 
6311
echo $ECHO_N "checking for file... $ECHO_C" >&6
7251
6312
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7252
6313
  echo $ECHO_N "(cached) $ECHO_C" >&6
7253
6314
else
7267
6328
      if test -n "$file_magic_test_file"; then
7268
6329
        case $deplibs_check_method in
7269
6330
        "file_magic "*)
7270
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6331
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7271
6332
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7272
6333
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7273
6334
            $EGREP "$file_magic_regex" > /dev/null; then
7299
6360
 
7300
6361
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7301
6362
if test -n "$MAGIC_CMD"; then
7302
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7303
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6363
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6364
echo "${ECHO_T}$MAGIC_CMD" >&6
7304
6365
else
7305
 
  { echo "$as_me:$LINENO: result: no" >&5
7306
 
echo "${ECHO_T}no" >&6; }
 
6366
  echo "$as_me:$LINENO: result: no" >&5
 
6367
echo "${ECHO_T}no" >&6
7307
6368
fi
7308
6369
 
7309
6370
  else
7318
6379
enable_dlopen=no
7319
6380
enable_win32_dll=no
7320
6381
 
7321
 
# Check whether --enable-libtool-lock was given.
 
6382
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7322
6383
if test "${enable_libtool_lock+set}" = set; then
7323
 
  enableval=$enable_libtool_lock;
7324
 
fi
 
6384
  enableval="$enable_libtool_lock"
7325
6385
 
 
6386
fi;
7326
6387
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7327
6388
 
7328
6389
 
7329
 
# Check whether --with-pic was given.
 
6390
# Check whether --with-pic or --without-pic was given.
7330
6391
if test "${with_pic+set}" = set; then
7331
 
  withval=$with_pic; pic_mode="$withval"
 
6392
  withval="$with_pic"
 
6393
  pic_mode="$withval"
7332
6394
else
7333
6395
  pic_mode=default
7334
 
fi
7335
 
 
 
6396
fi;
7336
6397
test -z "$pic_mode" && pic_mode=default
7337
6398
 
7338
6399
# Use C for the default configuration in the libtool script
7353
6414
objext=$objext
7354
6415
 
7355
6416
# Code to be used in simple compile tests
7356
 
lt_simple_compile_test_code="int some_variable = 0;"
 
6417
lt_simple_compile_test_code="int some_variable = 0;\n"
7357
6418
 
7358
6419
# Code to be used in simple link tests
7359
 
lt_simple_link_test_code='int main(){return(0);}'
 
6420
lt_simple_link_test_code='int main(){return(0);}\n'
7360
6421
 
7361
6422
 
7362
6423
# If no C compiler was specified, use CC.
7363
6424
LTCC=${LTCC-"$CC"}
7364
6425
 
7365
 
# If no C compiler flags were specified, use CFLAGS.
7366
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7367
 
 
7368
6426
# Allow CC to be a program name with arguments.
7369
6427
compiler=$CC
7370
6428
 
7371
6429
 
7372
6430
# save warnings/boilerplate of simple test code
7373
6431
ac_outfile=conftest.$ac_objext
7374
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7375
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6432
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6433
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7376
6434
_lt_compiler_boilerplate=`cat conftest.err`
7377
6435
$rm conftest*
7378
6436
 
7379
6437
ac_outfile=conftest.$ac_objext
7380
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7381
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6438
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6439
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7382
6440
_lt_linker_boilerplate=`cat conftest.err`
7383
6441
$rm conftest*
7384
6442
 
7385
6443
 
 
6444
#
 
6445
# Check for any special shared library compilation flags.
 
6446
#
 
6447
lt_prog_cc_shlib=
 
6448
if test "$GCC" = no; then
 
6449
  case $host_os in
 
6450
  sco3.2v5*)
 
6451
    lt_prog_cc_shlib='-belf'
 
6452
    ;;
 
6453
  esac
 
6454
fi
 
6455
if test -n "$lt_prog_cc_shlib"; then
 
6456
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6457
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6458
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6459
  else
 
6460
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6461
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6462
    lt_cv_prog_cc_can_build_shared=no
 
6463
  fi
 
6464
fi
 
6465
 
 
6466
 
 
6467
#
 
6468
# Check to make sure the static flag actually works.
 
6469
#
 
6470
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6471
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6472
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6474
else
 
6475
  lt_prog_compiler_static_works=no
 
6476
   save_LDFLAGS="$LDFLAGS"
 
6477
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6478
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6479
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6480
     # The compiler can only warn and ignore the option if not recognized
 
6481
     # So say no if there are warnings
 
6482
     if test -s conftest.err; then
 
6483
       # Append any errors to the config.log.
 
6484
       cat conftest.err 1>&5
 
6485
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
6486
       $SED '/^$/d' conftest.err >conftest.er2
 
6487
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6488
         lt_prog_compiler_static_works=yes
 
6489
       fi
 
6490
     else
 
6491
       lt_prog_compiler_static_works=yes
 
6492
     fi
 
6493
   fi
 
6494
   $rm conftest*
 
6495
   LDFLAGS="$save_LDFLAGS"
 
6496
 
 
6497
fi
 
6498
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6499
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6500
 
 
6501
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6502
    :
 
6503
else
 
6504
    lt_prog_compiler_static=
 
6505
fi
 
6506
 
 
6507
 
 
6508
 
7386
6509
 
7387
6510
lt_prog_compiler_no_builtin_flag=
7388
6511
 
7390
6513
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7391
6514
 
7392
6515
 
7393
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7394
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
6516
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6517
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7395
6518
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7396
6519
  echo $ECHO_N "(cached) $ECHO_C" >&6
7397
6520
else
7398
6521
  lt_cv_prog_compiler_rtti_exceptions=no
7399
6522
  ac_outfile=conftest.$ac_objext
7400
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6523
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7401
6524
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7402
6525
   # Insert the option either (1) after the last *FLAGS variable, or
7403
6526
   # (2) before a word containing "conftest.", or (3) at the end.
7405
6528
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7406
6529
   # The option is referenced via a variable to avoid confusing sed.
7407
6530
   lt_compile=`echo "$ac_compile" | $SED \
7408
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6531
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7409
6532
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7410
6533
   -e 's:$: $lt_compiler_flag:'`
7411
 
   (eval echo "\"\$as_me:7411: $lt_compile\"" >&5)
 
6534
   (eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
7412
6535
   (eval "$lt_compile" 2>conftest.err)
7413
6536
   ac_status=$?
7414
6537
   cat conftest.err >&5
7415
 
   echo "$as_me:7415: \$? = $ac_status" >&5
 
6538
   echo "$as_me:6538: \$? = $ac_status" >&5
7416
6539
   if (exit $ac_status) && test -s "$ac_outfile"; then
7417
6540
     # The compiler can only warn and ignore the option if not recognized
7418
6541
     # So say no if there are warnings other than the usual output.
7419
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7420
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7421
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6542
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6543
     $SED '/^$/d' conftest.err >conftest.er2
 
6544
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7422
6545
       lt_cv_prog_compiler_rtti_exceptions=yes
7423
6546
     fi
7424
6547
   fi
7425
6548
   $rm conftest*
7426
6549
 
7427
6550
fi
7428
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7429
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
6551
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6552
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7430
6553
 
7431
6554
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7432
6555
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7440
6563
lt_prog_compiler_pic=
7441
6564
lt_prog_compiler_static=
7442
6565
 
7443
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7444
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
6566
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6567
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7445
6568
 
7446
6569
  if test "$GCC" = yes; then
7447
6570
    lt_prog_compiler_wl='-Wl,'
7463
6586
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7464
6587
      ;;
7465
6588
 
7466
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6589
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7467
6590
      # PIC is the default for these OSes.
7468
6591
      ;;
7469
6592
 
7470
 
    mingw* | cygwin* | pw32* | os2*)
 
6593
    mingw* | pw32* | os2*)
7471
6594
      # This hack is so that the source file can tell whether it is being
7472
6595
      # built for inclusion in a dll (and should export symbols for example).
7473
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7474
 
      # (--disable-auto-import) libraries
7475
6596
      lt_prog_compiler_pic='-DDLL_EXPORT'
7476
6597
      ;;
7477
6598
 
7481
6602
      lt_prog_compiler_pic='-fno-common'
7482
6603
      ;;
7483
6604
 
7484
 
    interix[3-9]*)
7485
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7486
 
      # Instead, we relocate shared libraries at runtime.
7487
 
      ;;
7488
 
 
7489
6605
    msdosdjgpp*)
7490
6606
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7491
6607
      # on systems that don't support them.
7502
6618
    hpux*)
7503
6619
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7504
6620
      # not for PA HP-UX.
7505
 
      case $host_cpu in
 
6621
      case "$host_cpu" in
7506
6622
      hppa*64*|ia64*)
7507
6623
        # +Z the default
7508
6624
        ;;
7539
6655
       esac
7540
6656
       ;;
7541
6657
 
7542
 
    mingw* | cygwin* | pw32* | os2*)
 
6658
    mingw* | pw32* | os2*)
7543
6659
      # This hack is so that the source file can tell whether it is being
7544
6660
      # built for inclusion in a dll (and should export symbols for example).
7545
6661
      lt_prog_compiler_pic='-DDLL_EXPORT'
7549
6665
      lt_prog_compiler_wl='-Wl,'
7550
6666
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7551
6667
      # not for PA HP-UX.
7552
 
      case $host_cpu in
 
6668
      case "$host_cpu" in
7553
6669
      hppa*64*|ia64*)
7554
6670
        # +Z the default
7555
6671
        ;;
7572
6688
      lt_prog_compiler_static='-Bstatic'
7573
6689
      ;;
7574
6690
 
7575
 
    linux* | k*bsd*-gnu)
 
6691
    linux*)
7576
6692
      case $cc_basename in
7577
6693
      icc* | ecc*)
7578
6694
        lt_prog_compiler_wl='-Wl,'
7579
6695
        lt_prog_compiler_pic='-KPIC'
7580
6696
        lt_prog_compiler_static='-static'
7581
6697
        ;;
7582
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6698
      pgcc* | pgf77* | pgf90*)
7583
6699
        # Portland Group compilers (*not* the Pentium gcc compiler,
7584
6700
        # which looks to be a dead project)
7585
6701
        lt_prog_compiler_wl='-Wl,'
7586
6702
        lt_prog_compiler_pic='-fpic'
7587
 
        lt_prog_compiler_static='-Bstatic'
 
6703
        lt_prog_compiler_static='-static'
7588
6704
        ;;
7589
6705
      ccc*)
7590
6706
        lt_prog_compiler_wl='-Wl,'
7591
6707
        # All Alpha code is PIC.
7592
6708
        lt_prog_compiler_static='-non_shared'
7593
6709
        ;;
7594
 
      *)
7595
 
        case `$CC -V 2>&1 | sed 5q` in
7596
 
        *Sun\ C*)
7597
 
          # Sun C 5.9
7598
 
          lt_prog_compiler_pic='-KPIC'
7599
 
          lt_prog_compiler_static='-Bstatic'
7600
 
          lt_prog_compiler_wl='-Wl,'
7601
 
          ;;
7602
 
        *Sun\ F*)
7603
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7604
 
          lt_prog_compiler_pic='-KPIC'
7605
 
          lt_prog_compiler_static='-Bstatic'
7606
 
          lt_prog_compiler_wl=''
7607
 
          ;;
7608
 
        esac
7609
 
        ;;
7610
6710
      esac
7611
6711
      ;;
7612
6712
 
7616
6716
      lt_prog_compiler_static='-non_shared'
7617
6717
      ;;
7618
6718
 
7619
 
    rdos*)
7620
 
      lt_prog_compiler_static='-non_shared'
 
6719
    sco3.2v5*)
 
6720
      lt_prog_compiler_pic='-Kpic'
 
6721
      lt_prog_compiler_static='-dn'
7621
6722
      ;;
7622
6723
 
7623
6724
    solaris*)
7637
6738
      lt_prog_compiler_static='-Bstatic'
7638
6739
      ;;
7639
6740
 
7640
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6741
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7641
6742
      lt_prog_compiler_wl='-Wl,'
7642
6743
      lt_prog_compiler_pic='-KPIC'
7643
6744
      lt_prog_compiler_static='-Bstatic'
7650
6751
      fi
7651
6752
      ;;
7652
6753
 
7653
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7654
 
      lt_prog_compiler_wl='-Wl,'
7655
 
      lt_prog_compiler_pic='-KPIC'
7656
 
      lt_prog_compiler_static='-Bstatic'
7657
 
      ;;
7658
 
 
7659
6754
    unicos*)
7660
6755
      lt_prog_compiler_wl='-Wl,'
7661
6756
      lt_prog_compiler_can_build_shared=no
7672
6767
    esac
7673
6768
  fi
7674
6769
 
7675
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7676
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
6770
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6771
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7677
6772
 
7678
6773
#
7679
6774
# Check to make sure the PIC flag actually works.
7680
6775
#
7681
6776
if test -n "$lt_prog_compiler_pic"; then
7682
6777
 
7683
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7684
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
6778
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6779
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7685
6780
if test "${lt_prog_compiler_pic_works+set}" = set; then
7686
6781
  echo $ECHO_N "(cached) $ECHO_C" >&6
7687
6782
else
7688
6783
  lt_prog_compiler_pic_works=no
7689
6784
  ac_outfile=conftest.$ac_objext
7690
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6785
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7691
6786
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7692
6787
   # Insert the option either (1) after the last *FLAGS variable, or
7693
6788
   # (2) before a word containing "conftest.", or (3) at the end.
7695
6790
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7696
6791
   # The option is referenced via a variable to avoid confusing sed.
7697
6792
   lt_compile=`echo "$ac_compile" | $SED \
7698
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6793
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7699
6794
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7700
6795
   -e 's:$: $lt_compiler_flag:'`
7701
 
   (eval echo "\"\$as_me:7701: $lt_compile\"" >&5)
 
6796
   (eval echo "\"\$as_me:6796: $lt_compile\"" >&5)
7702
6797
   (eval "$lt_compile" 2>conftest.err)
7703
6798
   ac_status=$?
7704
6799
   cat conftest.err >&5
7705
 
   echo "$as_me:7705: \$? = $ac_status" >&5
 
6800
   echo "$as_me:6800: \$? = $ac_status" >&5
7706
6801
   if (exit $ac_status) && test -s "$ac_outfile"; then
7707
6802
     # The compiler can only warn and ignore the option if not recognized
7708
6803
     # So say no if there are warnings other than the usual output.
7709
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7710
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6804
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6805
     $SED '/^$/d' conftest.err >conftest.er2
 
6806
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7712
6807
       lt_prog_compiler_pic_works=yes
7713
6808
     fi
7714
6809
   fi
7715
6810
   $rm conftest*
7716
6811
 
7717
6812
fi
7718
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7719
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
6813
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6814
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7720
6815
 
7721
6816
if test x"$lt_prog_compiler_pic_works" = xyes; then
7722
6817
    case $lt_prog_compiler_pic in
7729
6824
fi
7730
6825
 
7731
6826
fi
7732
 
case $host_os in
 
6827
case "$host_os" in
7733
6828
  # For platforms which do not support PIC, -DPIC is meaningless:
7734
6829
  *djgpp*)
7735
6830
    lt_prog_compiler_pic=
7739
6834
    ;;
7740
6835
esac
7741
6836
 
7742
 
#
7743
 
# Check to make sure the static flag actually works.
7744
 
#
7745
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7746
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7747
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7748
 
if test "${lt_prog_compiler_static_works+set}" = set; then
7749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7750
 
else
7751
 
  lt_prog_compiler_static_works=no
7752
 
   save_LDFLAGS="$LDFLAGS"
7753
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7754
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7755
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7756
 
     # The linker can only warn and ignore the option if not recognized
7757
 
     # So say no if there are warnings
7758
 
     if test -s conftest.err; then
7759
 
       # Append any errors to the config.log.
7760
 
       cat conftest.err 1>&5
7761
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7762
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7763
 
       if diff conftest.exp conftest.er2 >/dev/null; then
7764
 
         lt_prog_compiler_static_works=yes
7765
 
       fi
7766
 
     else
7767
 
       lt_prog_compiler_static_works=yes
7768
 
     fi
7769
 
   fi
7770
 
   $rm conftest*
7771
 
   LDFLAGS="$save_LDFLAGS"
7772
 
 
7773
 
fi
7774
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7775
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7776
 
 
7777
 
if test x"$lt_prog_compiler_static_works" = xyes; then
7778
 
    :
7779
 
else
7780
 
    lt_prog_compiler_static=
7781
 
fi
7782
 
 
7783
 
 
7784
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7785
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
6837
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6838
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7786
6839
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7787
6840
  echo $ECHO_N "(cached) $ECHO_C" >&6
7788
6841
else
7791
6844
   mkdir conftest
7792
6845
   cd conftest
7793
6846
   mkdir out
7794
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6847
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7795
6848
 
7796
6849
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7797
6850
   # Insert the option either (1) after the last *FLAGS variable, or
7799
6852
   # Note that $ac_compile itself does not contain backslashes and begins
7800
6853
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7801
6854
   lt_compile=`echo "$ac_compile" | $SED \
7802
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6855
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7803
6856
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7804
6857
   -e 's:$: $lt_compiler_flag:'`
7805
 
   (eval echo "\"\$as_me:7805: $lt_compile\"" >&5)
 
6858
   (eval echo "\"\$as_me:6858: $lt_compile\"" >&5)
7806
6859
   (eval "$lt_compile" 2>out/conftest.err)
7807
6860
   ac_status=$?
7808
6861
   cat out/conftest.err >&5
7809
 
   echo "$as_me:7809: \$? = $ac_status" >&5
 
6862
   echo "$as_me:6862: \$? = $ac_status" >&5
7810
6863
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7811
6864
   then
7812
6865
     # The compiler can only warn and ignore the option if not recognized
7813
6866
     # So say no if there are warnings
7814
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7815
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7816
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6867
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6868
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6869
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7817
6870
       lt_cv_prog_compiler_c_o=yes
7818
6871
     fi
7819
6872
   fi
7820
 
   chmod u+w . 2>&5
 
6873
   chmod u+w .
7821
6874
   $rm conftest*
7822
6875
   # SGI C++ compiler will create directory out/ii_files/ for
7823
6876
   # template instantiation
7828
6881
   $rm conftest*
7829
6882
 
7830
6883
fi
7831
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7832
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
6884
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6885
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7833
6886
 
7834
6887
 
7835
6888
hard_links="nottested"
7836
6889
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7837
6890
  # do not overwrite the value of need_locks provided by the user
7838
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7839
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
6891
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6892
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7840
6893
  hard_links=yes
7841
6894
  $rm conftest*
7842
6895
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7843
6896
  touch conftest.a
7844
6897
  ln conftest.a conftest.b 2>&5 || hard_links=no
7845
6898
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7846
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
7847
 
echo "${ECHO_T}$hard_links" >&6; }
 
6899
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6900
echo "${ECHO_T}$hard_links" >&6
7848
6901
  if test "$hard_links" = no; then
7849
6902
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7850
6903
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7854
6907
  need_locks=no
7855
6908
fi
7856
6909
 
7857
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7858
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
6910
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6911
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7859
6912
 
7860
6913
  runpath_var=
7861
6914
  allow_undefined_flag=
7913
6966
      with_gnu_ld=no
7914
6967
    fi
7915
6968
    ;;
7916
 
  interix*)
7917
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7918
 
    with_gnu_ld=yes
7919
 
    ;;
7920
6969
  openbsd*)
7921
6970
    with_gnu_ld=no
7922
6971
    ;;
7998
7047
      allow_undefined_flag=unsupported
7999
7048
      always_export_symbols=no
8000
7049
      enable_shared_with_static_runtimes=yes
8001
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7050
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8002
7051
 
8003
7052
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8004
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7053
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8005
7054
        # If the export-symbols file already is a .def file (1st line
8006
7055
        # is EXPORTS), use it as is; otherwise, prepend...
8007
7056
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8010
7059
          echo EXPORTS > $output_objdir/$soname.def;
8011
7060
          cat $export_symbols >> $output_objdir/$soname.def;
8012
7061
        fi~
8013
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7062
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8014
7063
      else
8015
7064
        ld_shlibs=no
8016
7065
      fi
8017
7066
      ;;
8018
7067
 
8019
 
    interix[3-9]*)
8020
 
      hardcode_direct=no
8021
 
      hardcode_shlibpath_var=no
8022
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8023
 
      export_dynamic_flag_spec='${wl}-E'
8024
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8025
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8026
 
      # default) and relocated if they conflict, which is a slow very memory
8027
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
8028
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8029
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8030
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8031
 
      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'
8032
 
      ;;
8033
 
 
8034
 
    gnu* | linux* | k*bsd*-gnu)
 
7068
    linux*)
8035
7069
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8036
7070
        tmp_addflag=
8037
7071
        case $cc_basename,$host_cpu in
8038
7072
        pgcc*)                          # Portland Group C compiler
8039
 
          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'
 
7073
          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'
8040
7074
          tmp_addflag=' $pic_flag'
8041
7075
          ;;
8042
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8043
 
          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'
 
7076
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
7077
          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'
8044
7078
          tmp_addflag=' $pic_flag -Mnomain' ;;
8045
7079
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8046
7080
          tmp_addflag=' -i_dynamic' ;;
8049
7083
        ifc* | ifort*)                  # Intel Fortran compiler
8050
7084
          tmp_addflag=' -nofor_main' ;;
8051
7085
        esac
8052
 
        case `$CC -V 2>&1 | sed 5q` in
8053
 
        *Sun\ C*)                       # Sun C 5.9
8054
 
          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'
8055
 
          tmp_sharedflag='-G' ;;
8056
 
        *Sun\ F*)                       # Sun Fortran 8.3
8057
 
          tmp_sharedflag='-G' ;;
8058
 
        *)
8059
 
          tmp_sharedflag='-shared' ;;
8060
 
        esac
8061
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7086
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8062
7087
 
8063
7088
        if test $supports_anon_versioning = yes; then
8064
7089
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8065
7090
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8066
7091
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8067
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7092
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8068
7093
        fi
8069
 
        link_all_deplibs=no
8070
7094
      else
8071
7095
        ld_shlibs=no
8072
7096
      fi
8073
7097
      ;;
8074
7098
 
8075
 
    netbsd* | netbsdelf*-gnu)
 
7099
    netbsd*)
8076
7100
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8077
7101
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8078
7102
        wlarc=
8082
7106
      fi
8083
7107
      ;;
8084
7108
 
8085
 
    solaris*)
 
7109
    solaris* | sysv5*)
8086
7110
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8087
7111
        ld_shlibs=no
8088
7112
        cat <<EOF 1>&2
8103
7127
      fi
8104
7128
      ;;
8105
7129
 
8106
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8107
 
      case `$LD -v 2>&1` in
8108
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8109
 
        ld_shlibs=no
8110
 
        cat <<_LT_EOF 1>&2
8111
 
 
8112
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8113
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8114
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8115
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8116
 
*** your PATH or compiler configuration so that the native linker is
8117
 
*** used, and then restart.
8118
 
 
8119
 
_LT_EOF
8120
 
        ;;
8121
 
        *)
8122
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8123
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8124
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8125
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8126
 
          else
8127
 
            ld_shlibs=no
8128
 
          fi
8129
 
        ;;
8130
 
      esac
8131
 
      ;;
8132
 
 
8133
7130
    sunos4*)
8134
7131
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8135
7132
      wlarc=
8163
7160
      # Note: this linker hardcodes the directories in LIBPATH if there
8164
7161
      # are no directories specified by -L.
8165
7162
      hardcode_minus_L=yes
8166
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7163
      if test "$GCC" = yes && test -z "$link_static_flag"; then
8167
7164
        # Neither direct hardcoding nor static linking is supported with a
8168
7165
        # broken collect2.
8169
7166
        hardcode_direct=unsupported
8197
7194
            break
8198
7195
          fi
8199
7196
          done
8200
 
          ;;
8201
7197
        esac
8202
7198
 
8203
7199
        exp_sym_flag='-bexport'
8224
7220
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8225
7221
          then
8226
7222
          # We have reworked collect2
8227
 
          :
 
7223
          hardcode_direct=yes
8228
7224
          else
8229
7225
          # We have old collect2
8230
7226
          hardcode_direct=unsupported
8235
7231
          hardcode_libdir_flag_spec='-L$libdir'
8236
7232
          hardcode_libdir_separator=
8237
7233
          fi
8238
 
          ;;
8239
7234
        esac
8240
7235
        shared_flag='-shared'
8241
7236
        if test "$aix_use_runtimelinking" = yes; then
8248
7243
        # chokes on -Wl,-G. The following line is correct:
8249
7244
          shared_flag='-G'
8250
7245
        else
8251
 
          if test "$aix_use_runtimelinking" = yes; then
 
7246
        if test "$aix_use_runtimelinking" = yes; then
8252
7247
            shared_flag='${wl}-G'
8253
7248
          else
8254
7249
            shared_flag='${wl}-bM:SRE'
8255
 
          fi
 
7250
        fi
8256
7251
        fi
8257
7252
      fi
8258
7253
 
8280
7275
}
8281
7276
_ACEOF
8282
7277
rm -f conftest.$ac_objext conftest$ac_exeext
8283
 
if { (ac_try="$ac_link"
8284
 
case "(($ac_try" in
8285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286
 
  *) ac_try_echo=$ac_try;;
8287
 
esac
8288
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289
 
  (eval "$ac_link") 2>conftest.er1
 
7278
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7279
  (eval $ac_link) 2>conftest.er1
8290
7280
  ac_status=$?
8291
7281
  grep -v '^ *+' conftest.er1 >conftest.err
8292
7282
  rm -f conftest.er1
8293
7283
  cat conftest.err >&5
8294
7284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295
 
  (exit $ac_status); } && {
8296
 
         test -z "$ac_c_werror_flag" ||
8297
 
         test ! -s conftest.err
8298
 
       } && test -s conftest$ac_exeext &&
8299
 
       $as_test_x conftest$ac_exeext; then
 
7285
  (exit $ac_status); } &&
 
7286
         { ac_try='test -z "$ac_c_werror_flag"
 
7287
                         || test ! -s conftest.err'
 
7288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7289
  (eval $ac_try) 2>&5
 
7290
  ac_status=$?
 
7291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7292
  (exit $ac_status); }; } &&
 
7293
         { ac_try='test -s conftest$ac_exeext'
 
7294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7295
  (eval $ac_try) 2>&5
 
7296
  ac_status=$?
 
7297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7298
  (exit $ac_status); }; }; then
8300
7299
 
8301
 
lt_aix_libpath_sed='
8302
 
    /Import File Strings/,/^$/ {
8303
 
        /^0/ {
8304
 
            s/^0  *\(.*\)$/\1/
8305
 
            p
8306
 
        }
8307
 
    }'
8308
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
7300
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7301
}'`
8309
7302
# Check for a 64-bit object if we didn't find anything.
8310
 
if test -z "$aix_libpath"; then
8311
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8312
 
fi
 
7303
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; }
 
7304
}'`; fi
8313
7305
else
8314
7306
  echo "$as_me: failed program was:" >&5
8315
7307
sed 's/^/| /' conftest.$ac_ext >&5
8316
7308
 
8317
 
 
8318
7309
fi
8319
 
 
8320
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7310
rm -f conftest.err conftest.$ac_objext \
8321
7311
      conftest$ac_exeext conftest.$ac_ext
8322
7312
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8323
7313
 
8324
7314
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8325
 
        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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7315
        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"
8326
7316
       else
8327
7317
        if test "$host_cpu" = ia64; then
8328
7318
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8329
7319
          allow_undefined_flag="-z nodefs"
8330
 
          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"
 
7320
          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"
8331
7321
        else
8332
7322
         # Determine the default libpath from the value encoded in an empty executable.
8333
7323
         cat >conftest.$ac_ext <<_ACEOF
8346
7336
}
8347
7337
_ACEOF
8348
7338
rm -f conftest.$ac_objext conftest$ac_exeext
8349
 
if { (ac_try="$ac_link"
8350
 
case "(($ac_try" in
8351
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352
 
  *) ac_try_echo=$ac_try;;
8353
 
esac
8354
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355
 
  (eval "$ac_link") 2>conftest.er1
 
7339
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7340
  (eval $ac_link) 2>conftest.er1
8356
7341
  ac_status=$?
8357
7342
  grep -v '^ *+' conftest.er1 >conftest.err
8358
7343
  rm -f conftest.er1
8359
7344
  cat conftest.err >&5
8360
7345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361
 
  (exit $ac_status); } && {
8362
 
         test -z "$ac_c_werror_flag" ||
8363
 
         test ! -s conftest.err
8364
 
       } && test -s conftest$ac_exeext &&
8365
 
       $as_test_x conftest$ac_exeext; then
 
7346
  (exit $ac_status); } &&
 
7347
         { ac_try='test -z "$ac_c_werror_flag"
 
7348
                         || test ! -s conftest.err'
 
7349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7350
  (eval $ac_try) 2>&5
 
7351
  ac_status=$?
 
7352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7353
  (exit $ac_status); }; } &&
 
7354
         { ac_try='test -s conftest$ac_exeext'
 
7355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7356
  (eval $ac_try) 2>&5
 
7357
  ac_status=$?
 
7358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7359
  (exit $ac_status); }; }; then
8366
7360
 
8367
 
lt_aix_libpath_sed='
8368
 
    /Import File Strings/,/^$/ {
8369
 
        /^0/ {
8370
 
            s/^0  *\(.*\)$/\1/
8371
 
            p
8372
 
        }
8373
 
    }'
8374
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
7361
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7362
}'`
8375
7363
# Check for a 64-bit object if we didn't find anything.
8376
 
if test -z "$aix_libpath"; then
8377
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8378
 
fi
 
7364
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; }
 
7365
}'`; fi
8379
7366
else
8380
7367
  echo "$as_me: failed program was:" >&5
8381
7368
sed 's/^/| /' conftest.$ac_ext >&5
8382
7369
 
8383
 
 
8384
7370
fi
8385
 
 
8386
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7371
rm -f conftest.err conftest.$ac_objext \
8387
7372
      conftest$ac_exeext conftest.$ac_ext
8388
7373
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8389
7374
 
8392
7377
          # -berok will link without error, but may produce a broken library.
8393
7378
          no_undefined_flag=' ${wl}-bernotok'
8394
7379
          allow_undefined_flag=' ${wl}-berok'
 
7380
          # -bexpall does not export symbols beginning with underscore (_)
 
7381
          always_export_symbols=yes
8395
7382
          # Exported symbols can be pulled into shared objects from archives
8396
 
          whole_archive_flag_spec='$convenience'
 
7383
          whole_archive_flag_spec=' '
8397
7384
          archive_cmds_need_lc=yes
8398
 
          # This is similar to how AIX traditionally builds its shared libraries.
8399
 
          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'
 
7385
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7386
          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'
8400
7387
        fi
8401
7388
      fi
8402
7389
      ;;
8429
7416
      # The linker will automatically build a .lib file if we build a DLL.
8430
7417
      old_archive_From_new_cmds='true'
8431
7418
      # FIXME: Should let the user specify the lib program.
8432
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
7419
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8433
7420
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8434
7421
      enable_shared_with_static_runtimes=yes
8435
7422
      ;;
8436
7423
 
8437
7424
    darwin* | rhapsody*)
8438
 
      case $host_os in
 
7425
      case "$host_os" in
8439
7426
        rhapsody* | darwin1.[012])
8440
7427
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8441
7428
         ;;
8464
7451
        output_verbose_link_cmd='echo'
8465
7452
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8466
7453
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8467
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7454
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8468
7455
      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}'
8469
7456
      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}'
8470
7457
    else
8471
7458
      case $cc_basename in
8472
7459
        xlc*)
8473
7460
         output_verbose_link_cmd='echo'
8474
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
7461
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8475
7462
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8476
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8477
 
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7463
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7464
         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}'
8478
7465
          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}'
8479
7466
          ;;
8480
7467
       *)
8514
7501
      ;;
8515
7502
 
8516
7503
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8517
 
    freebsd* | dragonfly*)
 
7504
    freebsd* | kfreebsd*-gnu | dragonfly*)
8518
7505
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8519
7506
      hardcode_libdir_flag_spec='-R$libdir'
8520
7507
      hardcode_direct=yes
8537
7524
      export_dynamic_flag_spec='${wl}-E'
8538
7525
      ;;
8539
7526
 
8540
 
    hpux10*)
8541
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8542
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8543
 
      else
8544
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8545
 
      fi
8546
 
      if test "$with_gnu_ld" = no; then
8547
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8548
 
        hardcode_libdir_separator=:
8549
 
 
8550
 
        hardcode_direct=yes
8551
 
        export_dynamic_flag_spec='${wl}-E'
8552
 
 
8553
 
        # hardcode_minus_L: Not really in the search PATH,
8554
 
        # but as the default location of the library.
8555
 
        hardcode_minus_L=yes
8556
 
      fi
8557
 
      ;;
8558
 
 
8559
 
    hpux11*)
8560
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8561
 
        case $host_cpu in
8562
 
        hppa*64*)
 
7527
    hpux10* | hpux11*)
 
7528
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7529
        case "$host_cpu" in
 
7530
        hppa*64*|ia64*)
8563
7531
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8564
7532
          ;;
8565
 
        ia64*)
8566
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8567
 
          ;;
8568
7533
        *)
8569
7534
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8570
7535
          ;;
8571
7536
        esac
8572
7537
      else
8573
 
        case $host_cpu in
8574
 
        hppa*64*)
8575
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8576
 
          ;;
8577
 
        ia64*)
8578
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7538
        case "$host_cpu" in
 
7539
        hppa*64*|ia64*)
 
7540
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8579
7541
          ;;
8580
7542
        *)
8581
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7543
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8582
7544
          ;;
8583
7545
        esac
8584
7546
      fi
8585
7547
      if test "$with_gnu_ld" = no; then
8586
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8587
 
        hardcode_libdir_separator=:
8588
 
 
8589
 
        case $host_cpu in
8590
 
        hppa*64*|ia64*)
 
7548
        case "$host_cpu" in
 
7549
        hppa*64*)
 
7550
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8591
7551
          hardcode_libdir_flag_spec_ld='+b $libdir'
8592
 
          hardcode_direct=no
8593
 
          hardcode_shlibpath_var=no
 
7552
          hardcode_libdir_separator=:
 
7553
          hardcode_direct=no
 
7554
          hardcode_shlibpath_var=no
 
7555
          ;;
 
7556
        ia64*)
 
7557
          hardcode_libdir_flag_spec='-L$libdir'
 
7558
          hardcode_direct=no
 
7559
          hardcode_shlibpath_var=no
 
7560
 
 
7561
          # hardcode_minus_L: Not really in the search PATH,
 
7562
          # but as the default location of the library.
 
7563
          hardcode_minus_L=yes
8594
7564
          ;;
8595
7565
        *)
 
7566
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7567
          hardcode_libdir_separator=:
8596
7568
          hardcode_direct=yes
8597
7569
          export_dynamic_flag_spec='${wl}-E'
8598
7570
 
8616
7588
      link_all_deplibs=yes
8617
7589
      ;;
8618
7590
 
8619
 
    netbsd* | netbsdelf*-gnu)
 
7591
    netbsd*)
8620
7592
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8621
7593
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8622
7594
      else
8636
7608
      ;;
8637
7609
 
8638
7610
    openbsd*)
8639
 
      if test -f /usr/libexec/ld.so; then
8640
 
        hardcode_direct=yes
8641
 
        hardcode_shlibpath_var=no
8642
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8643
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8644
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8645
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8646
 
          export_dynamic_flag_spec='${wl}-E'
8647
 
        else
8648
 
          case $host_os in
8649
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8650
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8651
 
             hardcode_libdir_flag_spec='-R$libdir'
8652
 
             ;;
8653
 
           *)
8654
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8655
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8656
 
             ;;
8657
 
          esac
8658
 
        fi
 
7611
      hardcode_direct=yes
 
7612
      hardcode_shlibpath_var=no
 
7613
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7614
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7615
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7616
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7617
        export_dynamic_flag_spec='${wl}-E'
8659
7618
      else
8660
 
        ld_shlibs=no
 
7619
       case $host_os in
 
7620
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7621
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7622
           hardcode_libdir_flag_spec='-R$libdir'
 
7623
           ;;
 
7624
         *)
 
7625
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7626
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7627
           ;;
 
7628
       esac
8661
7629
      fi
8662
7630
      ;;
8663
7631
 
8698
7666
      hardcode_libdir_separator=:
8699
7667
      ;;
8700
7668
 
 
7669
    sco3.2v5*)
 
7670
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7671
      hardcode_shlibpath_var=no
 
7672
      export_dynamic_flag_spec='${wl}-Bexport'
 
7673
      runpath_var=LD_RUN_PATH
 
7674
      hardcode_runpath_var=yes
 
7675
      ;;
 
7676
 
8701
7677
    solaris*)
8702
7678
      no_undefined_flag=' -z text'
8703
7679
      if test "$GCC" = yes; then
8716
7692
      case $host_os in
8717
7693
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8718
7694
      *)
8719
 
        # The compiler driver will combine and reorder linker options,
8720
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8721
 
        # but is careful enough not to reorder.
 
7695
        # The compiler driver will combine linker options so we
 
7696
        # cannot just pass the convience library names through
 
7697
        # without $wl, iff we do not link with $LD.
 
7698
        # Luckily, gcc supports the same syntax we need for Sun Studio.
8722
7699
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8723
 
        if test "$GCC" = yes; then
8724
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8725
 
        else
8726
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8727
 
        fi
8728
 
        ;;
 
7700
        case $wlarc in
 
7701
        '')
 
7702
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7703
        *)
 
7704
          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' ;;
 
7705
        esac ;;
8729
7706
      esac
8730
7707
      link_all_deplibs=yes
8731
7708
      ;;
8782
7759
      fi
8783
7760
      ;;
8784
7761
 
8785
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8786
 
      no_undefined_flag='${wl}-z,text'
8787
 
      archive_cmds_need_lc=no
8788
 
      hardcode_shlibpath_var=no
8789
 
      runpath_var='LD_RUN_PATH'
8790
 
 
8791
 
      if test "$GCC" = yes; then
8792
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8793
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8794
 
      else
8795
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8796
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8797
 
      fi
8798
 
      ;;
8799
 
 
8800
 
    sysv5* | sco3.2v5* | sco5v6*)
8801
 
      # Note: We can NOT use -z defs as we might desire, because we do not
8802
 
      # link with -lc, and that would cause any symbols used from libc to
8803
 
      # always be unresolved, which means just about no library would
8804
 
      # ever link correctly.  If we're not using GNU ld we use -z text
8805
 
      # though, which does catch some bad symbols but isn't as heavy-handed
8806
 
      # as -z defs.
8807
 
      no_undefined_flag='${wl}-z,text'
8808
 
      allow_undefined_flag='${wl}-z,nodefs'
8809
 
      archive_cmds_need_lc=no
8810
 
      hardcode_shlibpath_var=no
8811
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8812
 
      hardcode_libdir_separator=':'
8813
 
      link_all_deplibs=yes
8814
 
      export_dynamic_flag_spec='${wl}-Bexport'
8815
 
      runpath_var='LD_RUN_PATH'
8816
 
 
8817
 
      if test "$GCC" = yes; then
8818
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8819
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8820
 
      else
8821
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8822
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823
 
      fi
 
7762
    sysv4.2uw2*)
 
7763
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7764
      hardcode_direct=yes
 
7765
      hardcode_minus_L=no
 
7766
      hardcode_shlibpath_var=no
 
7767
      hardcode_runpath_var=yes
 
7768
      runpath_var=LD_RUN_PATH
 
7769
      ;;
 
7770
 
 
7771
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7772
      no_undefined_flag='${wl}-z ${wl}text'
 
7773
      if test "$GCC" = yes; then
 
7774
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7775
      else
 
7776
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7777
      fi
 
7778
      runpath_var='LD_RUN_PATH'
 
7779
      hardcode_shlibpath_var=no
 
7780
      ;;
 
7781
 
 
7782
    sysv5*)
 
7783
      no_undefined_flag=' -z text'
 
7784
      # $CC -shared without GNU ld will not create a library from C++
 
7785
      # object files and a static libstdc++, better avoid it by now
 
7786
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7787
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7788
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7789
      hardcode_libdir_flag_spec=
 
7790
      hardcode_shlibpath_var=no
 
7791
      runpath_var='LD_RUN_PATH'
8824
7792
      ;;
8825
7793
 
8826
7794
    uts4*)
8835
7803
    esac
8836
7804
  fi
8837
7805
 
8838
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8839
 
echo "${ECHO_T}$ld_shlibs" >&6; }
 
7806
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7807
echo "${ECHO_T}$ld_shlibs" >&6
8840
7808
test "$ld_shlibs" = no && can_build_shared=no
8841
7809
 
 
7810
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7811
if test "$GCC" = yes; then
 
7812
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7813
fi
 
7814
 
8842
7815
#
8843
7816
# Do we need to explicitly link libc?
8844
7817
#
8856
7829
      # Test whether the compiler implicitly links with -lc since on some
8857
7830
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8858
7831
      # to ld, don't add -lc before -lgcc.
8859
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8860
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
7832
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7833
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8861
7834
      $rm conftest*
8862
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7835
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8863
7836
 
8864
7837
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8865
7838
  (eval $ac_compile) 2>&5
8871
7844
        libobjs=conftest.$ac_objext
8872
7845
        deplibs=
8873
7846
        wl=$lt_prog_compiler_wl
8874
 
        pic_flag=$lt_prog_compiler_pic
8875
7847
        compiler_flags=-v
8876
7848
        linker_flags=-v
8877
7849
        verstring=
8894
7866
        cat conftest.err 1>&5
8895
7867
      fi
8896
7868
      $rm conftest*
8897
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8898
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
7869
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7870
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8899
7871
      ;;
8900
7872
    esac
8901
7873
  fi
8902
7874
  ;;
8903
7875
esac
8904
7876
 
8905
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8906
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
7877
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7878
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8907
7879
library_names_spec=
8908
7880
libname_spec='lib$name'
8909
7881
soname_spec=
8917
7889
version_type=none
8918
7890
dynamic_linker="$host_os ld.so"
8919
7891
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8920
 
 
8921
7892
if test "$GCC" = yes; then
8922
 
  case $host_os in
8923
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8924
 
    *) lt_awk_arg="/^libraries:/" ;;
8925
 
  esac
8926
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8927
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
7893
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7894
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8928
7895
    # if the path contains ";" then we assume it to be the separator
8929
7896
    # otherwise default to the standard path separator (i.e. ":") - it is
8930
7897
    # assumed that no part of a normal pathname contains ";" but that should
8931
7898
    # okay in the real world where ";" in dirpaths is itself problematic.
8932
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
7899
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8933
7900
  else
8934
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7901
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8935
7902
  fi
8936
 
  # Ok, now we have the path, separated by spaces, we can step through it
8937
 
  # and add multilib dir if necessary.
8938
 
  lt_tmp_lt_search_path_spec=
8939
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8940
 
  for lt_sys_path in $lt_search_path_spec; do
8941
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8942
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8943
 
    else
8944
 
      test -d "$lt_sys_path" && \
8945
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8946
 
    fi
8947
 
  done
8948
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8949
 
BEGIN {RS=" "; FS="/|\n";} {
8950
 
  lt_foo="";
8951
 
  lt_count=0;
8952
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
8953
 
    if ($lt_i != "" && $lt_i != ".") {
8954
 
      if ($lt_i == "..") {
8955
 
        lt_count++;
8956
 
      } else {
8957
 
        if (lt_count == 0) {
8958
 
          lt_foo="/" $lt_i lt_foo;
8959
 
        } else {
8960
 
          lt_count--;
8961
 
        }
8962
 
      }
8963
 
    }
8964
 
  }
8965
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8966
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8967
 
}'`
8968
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8969
7903
else
8970
7904
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8971
7905
fi
9070
8004
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9071
8005
      dldir=$destdir/`dirname \$dlpath`~
9072
8006
      test -d \$dldir || mkdir -p \$dldir~
9073
 
      $install_prog $dir/$dlname \$dldir/$dlname~
9074
 
      chmod a+x \$dldir/$dlname'
 
8007
      $install_prog $dir/$dlname \$dldir/$dlname'
9075
8008
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9076
8009
      dlpath=$dir/\$dldll~
9077
8010
       $rm \$dlpath'
9124
8057
  soname_spec='${libname}${release}${major}$shared_ext'
9125
8058
  shlibpath_overrides_runpath=yes
9126
8059
  shlibpath_var=DYLD_LIBRARY_PATH
9127
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9128
 
 
9129
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
8060
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8061
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8062
  if test "$GCC" = yes; then
 
8063
    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"`
 
8064
  else
 
8065
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8066
  fi
9130
8067
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9131
8068
  ;;
9132
8069
 
9143
8080
  dynamic_linker=no
9144
8081
  ;;
9145
8082
 
 
8083
kfreebsd*-gnu)
 
8084
  version_type=linux
 
8085
  need_lib_prefix=no
 
8086
  need_version=no
 
8087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8088
  soname_spec='${libname}${release}${shared_ext}$major'
 
8089
  shlibpath_var=LD_LIBRARY_PATH
 
8090
  shlibpath_overrides_runpath=no
 
8091
  hardcode_into_libs=yes
 
8092
  dynamic_linker='GNU ld.so'
 
8093
  ;;
 
8094
 
9146
8095
freebsd* | dragonfly*)
9147
8096
  # DragonFly does not have aout.  When/if they implement a new
9148
8097
  # versioning mechanism, adjust this.
9149
 
  if test -x /usr/bin/objformat; then
9150
 
    objformat=`/usr/bin/objformat`
9151
 
  else
9152
 
    case $host_os in
9153
 
    freebsd[123]*) objformat=aout ;;
9154
 
    *) objformat=elf ;;
9155
 
    esac
9156
 
  fi
 
8098
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9157
8099
  version_type=freebsd-$objformat
9158
8100
  case $version_type in
9159
8101
    freebsd-elf*)
9175
8117
    shlibpath_overrides_runpath=yes
9176
8118
    hardcode_into_libs=yes
9177
8119
    ;;
9178
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9179
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8120
  *) # from 3.2 on
9180
8121
    shlibpath_overrides_runpath=no
9181
8122
    hardcode_into_libs=yes
9182
8123
    ;;
9183
 
  *) # from 4.6 on, and DragonFly
9184
 
    shlibpath_overrides_runpath=yes
9185
 
    hardcode_into_libs=yes
9186
 
    ;;
9187
8124
  esac
9188
8125
  ;;
9189
8126
 
9203
8140
  version_type=sunos
9204
8141
  need_lib_prefix=no
9205
8142
  need_version=no
9206
 
  case $host_cpu in
 
8143
  case "$host_cpu" in
9207
8144
  ia64*)
9208
8145
    shrext_cmds='.so'
9209
8146
    hardcode_into_libs=yes
9243
8180
  postinstall_cmds='chmod 555 $lib'
9244
8181
  ;;
9245
8182
 
9246
 
interix[3-9]*)
9247
 
  version_type=linux
9248
 
  need_lib_prefix=no
9249
 
  need_version=no
9250
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9251
 
  soname_spec='${libname}${release}${shared_ext}$major'
9252
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9253
 
  shlibpath_var=LD_LIBRARY_PATH
9254
 
  shlibpath_overrides_runpath=no
9255
 
  hardcode_into_libs=yes
9256
 
  ;;
9257
 
 
9258
8183
irix5* | irix6* | nonstopux*)
9259
8184
  case $host_os in
9260
8185
    nonstopux*) version_type=nonstopux ;;
9298
8223
  ;;
9299
8224
 
9300
8225
# This must be Linux ELF.
9301
 
linux* | k*bsd*-gnu)
 
8226
linux*)
9302
8227
  version_type=linux
9303
8228
  need_lib_prefix=no
9304
8229
  need_version=no
9314
8239
 
9315
8240
  # Append ld.so.conf contents to the search path
9316
8241
  if test -f /etc/ld.so.conf; then
9317
 
    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' ' '`
 
8242
    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' ' '`
9318
8243
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9319
8244
  fi
9320
8245
 
9327
8252
  dynamic_linker='GNU/Linux ld.so'
9328
8253
  ;;
9329
8254
 
9330
 
netbsdelf*-gnu)
 
8255
knetbsd*-gnu)
9331
8256
  version_type=linux
9332
8257
  need_lib_prefix=no
9333
8258
  need_version=no
9336
8261
  shlibpath_var=LD_LIBRARY_PATH
9337
8262
  shlibpath_overrides_runpath=no
9338
8263
  hardcode_into_libs=yes
9339
 
  dynamic_linker='NetBSD ld.elf_so'
 
8264
  dynamic_linker='GNU ld.so'
9340
8265
  ;;
9341
8266
 
9342
8267
netbsd*)
9376
8301
 
9377
8302
openbsd*)
9378
8303
  version_type=sunos
9379
 
  sys_lib_dlsearch_path_spec="/usr/lib"
9380
8304
  need_lib_prefix=no
9381
8305
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9382
8306
  case $host_os in
9420
8344
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9421
8345
  ;;
9422
8346
 
9423
 
rdos*)
9424
 
  dynamic_linker=no
 
8347
sco3.2v5*)
 
8348
  version_type=osf
 
8349
  soname_spec='${libname}${release}${shared_ext}$major'
 
8350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8351
  shlibpath_var=LD_LIBRARY_PATH
9425
8352
  ;;
9426
8353
 
9427
8354
solaris*)
9449
8376
  need_version=yes
9450
8377
  ;;
9451
8378
 
9452
 
sysv4 | sysv4.3*)
 
8379
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9453
8380
  version_type=linux
9454
8381
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455
8382
  soname_spec='${libname}${release}${shared_ext}$major'
9482
8409
  fi
9483
8410
  ;;
9484
8411
 
9485
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9486
 
  version_type=freebsd-elf
9487
 
  need_lib_prefix=no
9488
 
  need_version=no
9489
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9490
 
  soname_spec='${libname}${release}${shared_ext}$major'
9491
 
  shlibpath_var=LD_LIBRARY_PATH
9492
 
  hardcode_into_libs=yes
9493
 
  if test "$with_gnu_ld" = yes; then
9494
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9495
 
    shlibpath_overrides_runpath=no
9496
 
  else
9497
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9498
 
    shlibpath_overrides_runpath=yes
9499
 
    case $host_os in
9500
 
      sco3.2v5*)
9501
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9502
 
        ;;
9503
 
    esac
9504
 
  fi
9505
 
  sys_lib_dlsearch_path_spec='/usr/lib'
9506
 
  ;;
9507
 
 
9508
8412
uts4*)
9509
8413
  version_type=linux
9510
8414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516
8420
  dynamic_linker=no
9517
8421
  ;;
9518
8422
esac
9519
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9520
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
8423
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8424
echo "${ECHO_T}$dynamic_linker" >&6
9521
8425
test "$dynamic_linker" = no && can_build_shared=no
9522
8426
 
9523
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9524
 
if test "$GCC" = yes; then
9525
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9526
 
fi
9527
 
 
9528
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9529
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
8427
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8428
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9530
8429
hardcode_action=
9531
8430
if test -n "$hardcode_libdir_flag_spec" || \
9532
8431
   test -n "$runpath_var" || \
9550
8449
  # directories.
9551
8450
  hardcode_action=unsupported
9552
8451
fi
9553
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9554
 
echo "${ECHO_T}$hardcode_action" >&6; }
 
8452
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8453
echo "${ECHO_T}$hardcode_action" >&6
9555
8454
 
9556
8455
if test "$hardcode_action" = relink; then
9557
8456
  # Fast installation is not supported
9564
8463
 
9565
8464
striplib=
9566
8465
old_striplib=
9567
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9568
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
8466
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8467
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9569
8468
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9570
8469
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9571
8470
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9572
 
  { echo "$as_me:$LINENO: result: yes" >&5
9573
 
echo "${ECHO_T}yes" >&6; }
 
8471
  echo "$as_me:$LINENO: result: yes" >&5
 
8472
echo "${ECHO_T}yes" >&6
9574
8473
else
9575
8474
# FIXME - insert some real tests, host_os isn't really good enough
9576
8475
  case $host_os in
9577
8476
   darwin*)
9578
8477
       if test -n "$STRIP" ; then
9579
8478
         striplib="$STRIP -x"
9580
 
         old_striplib="$STRIP -S"
9581
 
         { echo "$as_me:$LINENO: result: yes" >&5
9582
 
echo "${ECHO_T}yes" >&6; }
 
8479
         echo "$as_me:$LINENO: result: yes" >&5
 
8480
echo "${ECHO_T}yes" >&6
9583
8481
       else
9584
 
  { echo "$as_me:$LINENO: result: no" >&5
9585
 
echo "${ECHO_T}no" >&6; }
 
8482
  echo "$as_me:$LINENO: result: no" >&5
 
8483
echo "${ECHO_T}no" >&6
9586
8484
fi
9587
8485
       ;;
9588
8486
   *)
9589
 
  { echo "$as_me:$LINENO: result: no" >&5
9590
 
echo "${ECHO_T}no" >&6; }
 
8487
  echo "$as_me:$LINENO: result: no" >&5
 
8488
echo "${ECHO_T}no" >&6
9591
8489
    ;;
9592
8490
  esac
9593
8491
fi
9619
8517
 
9620
8518
  darwin*)
9621
8519
  # if libdl is installed we need to link against it
9622
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9623
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
8520
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8521
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9624
8522
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9625
8523
  echo $ECHO_N "(cached) $ECHO_C" >&6
9626
8524
else
9633
8531
cat >>conftest.$ac_ext <<_ACEOF
9634
8532
/* end confdefs.h.  */
9635
8533
 
9636
 
/* Override any GCC internal prototype to avoid an error.
9637
 
   Use char because int might match the return type of a GCC
9638
 
   builtin and then its argument prototype would still apply.  */
 
8534
/* Override any gcc2 internal prototype to avoid an error.  */
9639
8535
#ifdef __cplusplus
9640
8536
extern "C"
9641
8537
#endif
 
8538
/* We use char because int might match the return type of a gcc2
 
8539
   builtin and then its argument prototype would still apply.  */
9642
8540
char dlopen ();
9643
8541
int
9644
8542
main ()
9645
8543
{
9646
 
return dlopen ();
 
8544
dlopen ();
9647
8545
  ;
9648
8546
  return 0;
9649
8547
}
9650
8548
_ACEOF
9651
8549
rm -f conftest.$ac_objext conftest$ac_exeext
9652
 
if { (ac_try="$ac_link"
9653
 
case "(($ac_try" in
9654
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655
 
  *) ac_try_echo=$ac_try;;
9656
 
esac
9657
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658
 
  (eval "$ac_link") 2>conftest.er1
 
8550
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8551
  (eval $ac_link) 2>conftest.er1
9659
8552
  ac_status=$?
9660
8553
  grep -v '^ *+' conftest.er1 >conftest.err
9661
8554
  rm -f conftest.er1
9662
8555
  cat conftest.err >&5
9663
8556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664
 
  (exit $ac_status); } && {
9665
 
         test -z "$ac_c_werror_flag" ||
9666
 
         test ! -s conftest.err
9667
 
       } && test -s conftest$ac_exeext &&
9668
 
       $as_test_x conftest$ac_exeext; then
 
8557
  (exit $ac_status); } &&
 
8558
         { ac_try='test -z "$ac_c_werror_flag"
 
8559
                         || test ! -s conftest.err'
 
8560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8561
  (eval $ac_try) 2>&5
 
8562
  ac_status=$?
 
8563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8564
  (exit $ac_status); }; } &&
 
8565
         { ac_try='test -s conftest$ac_exeext'
 
8566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8567
  (eval $ac_try) 2>&5
 
8568
  ac_status=$?
 
8569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8570
  (exit $ac_status); }; }; then
9669
8571
  ac_cv_lib_dl_dlopen=yes
9670
8572
else
9671
8573
  echo "$as_me: failed program was:" >&5
9672
8574
sed 's/^/| /' conftest.$ac_ext >&5
9673
8575
 
9674
 
        ac_cv_lib_dl_dlopen=no
 
8576
ac_cv_lib_dl_dlopen=no
9675
8577
fi
9676
 
 
9677
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8578
rm -f conftest.err conftest.$ac_objext \
9678
8579
      conftest$ac_exeext conftest.$ac_ext
9679
8580
LIBS=$ac_check_lib_save_LIBS
9680
8581
fi
9681
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9682
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
8582
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8583
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9683
8584
if test $ac_cv_lib_dl_dlopen = yes; then
9684
8585
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9685
8586
else
9693
8594
   ;;
9694
8595
 
9695
8596
  *)
9696
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9697
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
8597
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8598
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9698
8599
if test "${ac_cv_func_shl_load+set}" = set; then
9699
8600
  echo $ECHO_N "(cached) $ECHO_C" >&6
9700
8601
else
9721
8622
 
9722
8623
#undef shl_load
9723
8624
 
9724
 
/* Override any GCC internal prototype to avoid an error.
9725
 
   Use char because int might match the return type of a GCC
 
8625
/* Override any gcc2 internal prototype to avoid an error.  */
 
8626
#ifdef __cplusplus
 
8627
extern "C"
 
8628
{
 
8629
#endif
 
8630
/* We use char because int might match the return type of a gcc2
9726
8631
   builtin and then its argument prototype would still apply.  */
9727
 
#ifdef __cplusplus
9728
 
extern "C"
9729
 
#endif
9730
8632
char shl_load ();
9731
8633
/* The GNU C library defines this for functions which it implements
9732
8634
    to always fail with ENOSYS.  Some functions are actually named
9733
8635
    something starting with __ and the normal name is an alias.  */
9734
 
#if defined __stub_shl_load || defined __stub___shl_load
 
8636
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9735
8637
choke me
 
8638
#else
 
8639
char (*f) () = shl_load;
 
8640
#endif
 
8641
#ifdef __cplusplus
 
8642
}
9736
8643
#endif
9737
8644
 
9738
8645
int
9739
8646
main ()
9740
8647
{
9741
 
return shl_load ();
 
8648
return f != shl_load;
9742
8649
  ;
9743
8650
  return 0;
9744
8651
}
9745
8652
_ACEOF
9746
8653
rm -f conftest.$ac_objext conftest$ac_exeext
9747
 
if { (ac_try="$ac_link"
9748
 
case "(($ac_try" in
9749
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750
 
  *) ac_try_echo=$ac_try;;
9751
 
esac
9752
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753
 
  (eval "$ac_link") 2>conftest.er1
 
8654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8655
  (eval $ac_link) 2>conftest.er1
9754
8656
  ac_status=$?
9755
8657
  grep -v '^ *+' conftest.er1 >conftest.err
9756
8658
  rm -f conftest.er1
9757
8659
  cat conftest.err >&5
9758
8660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759
 
  (exit $ac_status); } && {
9760
 
         test -z "$ac_c_werror_flag" ||
9761
 
         test ! -s conftest.err
9762
 
       } && test -s conftest$ac_exeext &&
9763
 
       $as_test_x conftest$ac_exeext; then
 
8661
  (exit $ac_status); } &&
 
8662
         { ac_try='test -z "$ac_c_werror_flag"
 
8663
                         || test ! -s conftest.err'
 
8664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8665
  (eval $ac_try) 2>&5
 
8666
  ac_status=$?
 
8667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8668
  (exit $ac_status); }; } &&
 
8669
         { ac_try='test -s conftest$ac_exeext'
 
8670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8671
  (eval $ac_try) 2>&5
 
8672
  ac_status=$?
 
8673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8674
  (exit $ac_status); }; }; then
9764
8675
  ac_cv_func_shl_load=yes
9765
8676
else
9766
8677
  echo "$as_me: failed program was:" >&5
9767
8678
sed 's/^/| /' conftest.$ac_ext >&5
9768
8679
 
9769
 
        ac_cv_func_shl_load=no
 
8680
ac_cv_func_shl_load=no
9770
8681
fi
9771
 
 
9772
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8682
rm -f conftest.err conftest.$ac_objext \
9773
8683
      conftest$ac_exeext conftest.$ac_ext
9774
8684
fi
9775
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9776
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
8685
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8686
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9777
8687
if test $ac_cv_func_shl_load = yes; then
9778
8688
  lt_cv_dlopen="shl_load"
9779
8689
else
9780
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9781
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
8690
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8691
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9782
8692
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9783
8693
  echo $ECHO_N "(cached) $ECHO_C" >&6
9784
8694
else
9791
8701
cat >>conftest.$ac_ext <<_ACEOF
9792
8702
/* end confdefs.h.  */
9793
8703
 
9794
 
/* Override any GCC internal prototype to avoid an error.
9795
 
   Use char because int might match the return type of a GCC
9796
 
   builtin and then its argument prototype would still apply.  */
 
8704
/* Override any gcc2 internal prototype to avoid an error.  */
9797
8705
#ifdef __cplusplus
9798
8706
extern "C"
9799
8707
#endif
 
8708
/* We use char because int might match the return type of a gcc2
 
8709
   builtin and then its argument prototype would still apply.  */
9800
8710
char shl_load ();
9801
8711
int
9802
8712
main ()
9803
8713
{
9804
 
return shl_load ();
 
8714
shl_load ();
9805
8715
  ;
9806
8716
  return 0;
9807
8717
}
9808
8718
_ACEOF
9809
8719
rm -f conftest.$ac_objext conftest$ac_exeext
9810
 
if { (ac_try="$ac_link"
9811
 
case "(($ac_try" in
9812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813
 
  *) ac_try_echo=$ac_try;;
9814
 
esac
9815
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816
 
  (eval "$ac_link") 2>conftest.er1
 
8720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8721
  (eval $ac_link) 2>conftest.er1
9817
8722
  ac_status=$?
9818
8723
  grep -v '^ *+' conftest.er1 >conftest.err
9819
8724
  rm -f conftest.er1
9820
8725
  cat conftest.err >&5
9821
8726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822
 
  (exit $ac_status); } && {
9823
 
         test -z "$ac_c_werror_flag" ||
9824
 
         test ! -s conftest.err
9825
 
       } && test -s conftest$ac_exeext &&
9826
 
       $as_test_x conftest$ac_exeext; then
 
8727
  (exit $ac_status); } &&
 
8728
         { ac_try='test -z "$ac_c_werror_flag"
 
8729
                         || test ! -s conftest.err'
 
8730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8731
  (eval $ac_try) 2>&5
 
8732
  ac_status=$?
 
8733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8734
  (exit $ac_status); }; } &&
 
8735
         { ac_try='test -s conftest$ac_exeext'
 
8736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8737
  (eval $ac_try) 2>&5
 
8738
  ac_status=$?
 
8739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8740
  (exit $ac_status); }; }; then
9827
8741
  ac_cv_lib_dld_shl_load=yes
9828
8742
else
9829
8743
  echo "$as_me: failed program was:" >&5
9830
8744
sed 's/^/| /' conftest.$ac_ext >&5
9831
8745
 
9832
 
        ac_cv_lib_dld_shl_load=no
 
8746
ac_cv_lib_dld_shl_load=no
9833
8747
fi
9834
 
 
9835
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8748
rm -f conftest.err conftest.$ac_objext \
9836
8749
      conftest$ac_exeext conftest.$ac_ext
9837
8750
LIBS=$ac_check_lib_save_LIBS
9838
8751
fi
9839
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9840
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
8752
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8753
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9841
8754
if test $ac_cv_lib_dld_shl_load = yes; then
9842
8755
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9843
8756
else
9844
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9845
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
8757
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8758
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9846
8759
if test "${ac_cv_func_dlopen+set}" = set; then
9847
8760
  echo $ECHO_N "(cached) $ECHO_C" >&6
9848
8761
else
9869
8782
 
9870
8783
#undef dlopen
9871
8784
 
9872
 
/* Override any GCC internal prototype to avoid an error.
9873
 
   Use char because int might match the return type of a GCC
 
8785
/* Override any gcc2 internal prototype to avoid an error.  */
 
8786
#ifdef __cplusplus
 
8787
extern "C"
 
8788
{
 
8789
#endif
 
8790
/* We use char because int might match the return type of a gcc2
9874
8791
   builtin and then its argument prototype would still apply.  */
9875
 
#ifdef __cplusplus
9876
 
extern "C"
9877
 
#endif
9878
8792
char dlopen ();
9879
8793
/* The GNU C library defines this for functions which it implements
9880
8794
    to always fail with ENOSYS.  Some functions are actually named
9881
8795
    something starting with __ and the normal name is an alias.  */
9882
 
#if defined __stub_dlopen || defined __stub___dlopen
 
8796
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9883
8797
choke me
 
8798
#else
 
8799
char (*f) () = dlopen;
 
8800
#endif
 
8801
#ifdef __cplusplus
 
8802
}
9884
8803
#endif
9885
8804
 
9886
8805
int
9887
8806
main ()
9888
8807
{
9889
 
return dlopen ();
 
8808
return f != dlopen;
9890
8809
  ;
9891
8810
  return 0;
9892
8811
}
9893
8812
_ACEOF
9894
8813
rm -f conftest.$ac_objext conftest$ac_exeext
9895
 
if { (ac_try="$ac_link"
9896
 
case "(($ac_try" in
9897
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898
 
  *) ac_try_echo=$ac_try;;
9899
 
esac
9900
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901
 
  (eval "$ac_link") 2>conftest.er1
 
8814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8815
  (eval $ac_link) 2>conftest.er1
9902
8816
  ac_status=$?
9903
8817
  grep -v '^ *+' conftest.er1 >conftest.err
9904
8818
  rm -f conftest.er1
9905
8819
  cat conftest.err >&5
9906
8820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907
 
  (exit $ac_status); } && {
9908
 
         test -z "$ac_c_werror_flag" ||
9909
 
         test ! -s conftest.err
9910
 
       } && test -s conftest$ac_exeext &&
9911
 
       $as_test_x conftest$ac_exeext; then
 
8821
  (exit $ac_status); } &&
 
8822
         { ac_try='test -z "$ac_c_werror_flag"
 
8823
                         || test ! -s conftest.err'
 
8824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8825
  (eval $ac_try) 2>&5
 
8826
  ac_status=$?
 
8827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8828
  (exit $ac_status); }; } &&
 
8829
         { ac_try='test -s conftest$ac_exeext'
 
8830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8831
  (eval $ac_try) 2>&5
 
8832
  ac_status=$?
 
8833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8834
  (exit $ac_status); }; }; then
9912
8835
  ac_cv_func_dlopen=yes
9913
8836
else
9914
8837
  echo "$as_me: failed program was:" >&5
9915
8838
sed 's/^/| /' conftest.$ac_ext >&5
9916
8839
 
9917
 
        ac_cv_func_dlopen=no
 
8840
ac_cv_func_dlopen=no
9918
8841
fi
9919
 
 
9920
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8842
rm -f conftest.err conftest.$ac_objext \
9921
8843
      conftest$ac_exeext conftest.$ac_ext
9922
8844
fi
9923
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9924
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
8845
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8846
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9925
8847
if test $ac_cv_func_dlopen = yes; then
9926
8848
  lt_cv_dlopen="dlopen"
9927
8849
else
9928
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9929
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
8850
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8851
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9930
8852
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9931
8853
  echo $ECHO_N "(cached) $ECHO_C" >&6
9932
8854
else
9939
8861
cat >>conftest.$ac_ext <<_ACEOF
9940
8862
/* end confdefs.h.  */
9941
8863
 
9942
 
/* Override any GCC internal prototype to avoid an error.
9943
 
   Use char because int might match the return type of a GCC
9944
 
   builtin and then its argument prototype would still apply.  */
 
8864
/* Override any gcc2 internal prototype to avoid an error.  */
9945
8865
#ifdef __cplusplus
9946
8866
extern "C"
9947
8867
#endif
 
8868
/* We use char because int might match the return type of a gcc2
 
8869
   builtin and then its argument prototype would still apply.  */
9948
8870
char dlopen ();
9949
8871
int
9950
8872
main ()
9951
8873
{
9952
 
return dlopen ();
 
8874
dlopen ();
9953
8875
  ;
9954
8876
  return 0;
9955
8877
}
9956
8878
_ACEOF
9957
8879
rm -f conftest.$ac_objext conftest$ac_exeext
9958
 
if { (ac_try="$ac_link"
9959
 
case "(($ac_try" in
9960
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961
 
  *) ac_try_echo=$ac_try;;
9962
 
esac
9963
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964
 
  (eval "$ac_link") 2>conftest.er1
 
8880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8881
  (eval $ac_link) 2>conftest.er1
9965
8882
  ac_status=$?
9966
8883
  grep -v '^ *+' conftest.er1 >conftest.err
9967
8884
  rm -f conftest.er1
9968
8885
  cat conftest.err >&5
9969
8886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970
 
  (exit $ac_status); } && {
9971
 
         test -z "$ac_c_werror_flag" ||
9972
 
         test ! -s conftest.err
9973
 
       } && test -s conftest$ac_exeext &&
9974
 
       $as_test_x conftest$ac_exeext; then
 
8887
  (exit $ac_status); } &&
 
8888
         { ac_try='test -z "$ac_c_werror_flag"
 
8889
                         || test ! -s conftest.err'
 
8890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8891
  (eval $ac_try) 2>&5
 
8892
  ac_status=$?
 
8893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8894
  (exit $ac_status); }; } &&
 
8895
         { ac_try='test -s conftest$ac_exeext'
 
8896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8897
  (eval $ac_try) 2>&5
 
8898
  ac_status=$?
 
8899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8900
  (exit $ac_status); }; }; then
9975
8901
  ac_cv_lib_dl_dlopen=yes
9976
8902
else
9977
8903
  echo "$as_me: failed program was:" >&5
9978
8904
sed 's/^/| /' conftest.$ac_ext >&5
9979
8905
 
9980
 
        ac_cv_lib_dl_dlopen=no
 
8906
ac_cv_lib_dl_dlopen=no
9981
8907
fi
9982
 
 
9983
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8908
rm -f conftest.err conftest.$ac_objext \
9984
8909
      conftest$ac_exeext conftest.$ac_ext
9985
8910
LIBS=$ac_check_lib_save_LIBS
9986
8911
fi
9987
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9988
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
8912
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8913
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9989
8914
if test $ac_cv_lib_dl_dlopen = yes; then
9990
8915
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9991
8916
else
9992
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9993
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
8917
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8918
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9994
8919
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9995
8920
  echo $ECHO_N "(cached) $ECHO_C" >&6
9996
8921
else
10003
8928
cat >>conftest.$ac_ext <<_ACEOF
10004
8929
/* end confdefs.h.  */
10005
8930
 
10006
 
/* Override any GCC internal prototype to avoid an error.
10007
 
   Use char because int might match the return type of a GCC
10008
 
   builtin and then its argument prototype would still apply.  */
 
8931
/* Override any gcc2 internal prototype to avoid an error.  */
10009
8932
#ifdef __cplusplus
10010
8933
extern "C"
10011
8934
#endif
 
8935
/* We use char because int might match the return type of a gcc2
 
8936
   builtin and then its argument prototype would still apply.  */
10012
8937
char dlopen ();
10013
8938
int
10014
8939
main ()
10015
8940
{
10016
 
return dlopen ();
 
8941
dlopen ();
10017
8942
  ;
10018
8943
  return 0;
10019
8944
}
10020
8945
_ACEOF
10021
8946
rm -f conftest.$ac_objext conftest$ac_exeext
10022
 
if { (ac_try="$ac_link"
10023
 
case "(($ac_try" in
10024
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025
 
  *) ac_try_echo=$ac_try;;
10026
 
esac
10027
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028
 
  (eval "$ac_link") 2>conftest.er1
 
8947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8948
  (eval $ac_link) 2>conftest.er1
10029
8949
  ac_status=$?
10030
8950
  grep -v '^ *+' conftest.er1 >conftest.err
10031
8951
  rm -f conftest.er1
10032
8952
  cat conftest.err >&5
10033
8953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034
 
  (exit $ac_status); } && {
10035
 
         test -z "$ac_c_werror_flag" ||
10036
 
         test ! -s conftest.err
10037
 
       } && test -s conftest$ac_exeext &&
10038
 
       $as_test_x conftest$ac_exeext; then
 
8954
  (exit $ac_status); } &&
 
8955
         { ac_try='test -z "$ac_c_werror_flag"
 
8956
                         || test ! -s conftest.err'
 
8957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8958
  (eval $ac_try) 2>&5
 
8959
  ac_status=$?
 
8960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8961
  (exit $ac_status); }; } &&
 
8962
         { ac_try='test -s conftest$ac_exeext'
 
8963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8964
  (eval $ac_try) 2>&5
 
8965
  ac_status=$?
 
8966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8967
  (exit $ac_status); }; }; then
10039
8968
  ac_cv_lib_svld_dlopen=yes
10040
8969
else
10041
8970
  echo "$as_me: failed program was:" >&5
10042
8971
sed 's/^/| /' conftest.$ac_ext >&5
10043
8972
 
10044
 
        ac_cv_lib_svld_dlopen=no
 
8973
ac_cv_lib_svld_dlopen=no
10045
8974
fi
10046
 
 
10047
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8975
rm -f conftest.err conftest.$ac_objext \
10048
8976
      conftest$ac_exeext conftest.$ac_ext
10049
8977
LIBS=$ac_check_lib_save_LIBS
10050
8978
fi
10051
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10052
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
8979
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8980
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10053
8981
if test $ac_cv_lib_svld_dlopen = yes; then
10054
8982
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10055
8983
else
10056
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10057
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
8984
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8985
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10058
8986
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10059
8987
  echo $ECHO_N "(cached) $ECHO_C" >&6
10060
8988
else
10067
8995
cat >>conftest.$ac_ext <<_ACEOF
10068
8996
/* end confdefs.h.  */
10069
8997
 
10070
 
/* Override any GCC internal prototype to avoid an error.
10071
 
   Use char because int might match the return type of a GCC
10072
 
   builtin and then its argument prototype would still apply.  */
 
8998
/* Override any gcc2 internal prototype to avoid an error.  */
10073
8999
#ifdef __cplusplus
10074
9000
extern "C"
10075
9001
#endif
 
9002
/* We use char because int might match the return type of a gcc2
 
9003
   builtin and then its argument prototype would still apply.  */
10076
9004
char dld_link ();
10077
9005
int
10078
9006
main ()
10079
9007
{
10080
 
return dld_link ();
 
9008
dld_link ();
10081
9009
  ;
10082
9010
  return 0;
10083
9011
}
10084
9012
_ACEOF
10085
9013
rm -f conftest.$ac_objext conftest$ac_exeext
10086
 
if { (ac_try="$ac_link"
10087
 
case "(($ac_try" in
10088
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089
 
  *) ac_try_echo=$ac_try;;
10090
 
esac
10091
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092
 
  (eval "$ac_link") 2>conftest.er1
 
9014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9015
  (eval $ac_link) 2>conftest.er1
10093
9016
  ac_status=$?
10094
9017
  grep -v '^ *+' conftest.er1 >conftest.err
10095
9018
  rm -f conftest.er1
10096
9019
  cat conftest.err >&5
10097
9020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098
 
  (exit $ac_status); } && {
10099
 
         test -z "$ac_c_werror_flag" ||
10100
 
         test ! -s conftest.err
10101
 
       } && test -s conftest$ac_exeext &&
10102
 
       $as_test_x conftest$ac_exeext; then
 
9021
  (exit $ac_status); } &&
 
9022
         { ac_try='test -z "$ac_c_werror_flag"
 
9023
                         || test ! -s conftest.err'
 
9024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9025
  (eval $ac_try) 2>&5
 
9026
  ac_status=$?
 
9027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9028
  (exit $ac_status); }; } &&
 
9029
         { ac_try='test -s conftest$ac_exeext'
 
9030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9031
  (eval $ac_try) 2>&5
 
9032
  ac_status=$?
 
9033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9034
  (exit $ac_status); }; }; then
10103
9035
  ac_cv_lib_dld_dld_link=yes
10104
9036
else
10105
9037
  echo "$as_me: failed program was:" >&5
10106
9038
sed 's/^/| /' conftest.$ac_ext >&5
10107
9039
 
10108
 
        ac_cv_lib_dld_dld_link=no
 
9040
ac_cv_lib_dld_dld_link=no
10109
9041
fi
10110
 
 
10111
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9042
rm -f conftest.err conftest.$ac_objext \
10112
9043
      conftest$ac_exeext conftest.$ac_ext
10113
9044
LIBS=$ac_check_lib_save_LIBS
10114
9045
fi
10115
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10116
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
9046
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9047
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10117
9048
if test $ac_cv_lib_dld_dld_link = yes; then
10118
9049
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10119
9050
fi
10148
9079
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10149
9080
 
10150
9081
    save_LDFLAGS="$LDFLAGS"
10151
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9082
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10152
9083
 
10153
9084
    save_LIBS="$LIBS"
10154
9085
    LIBS="$lt_cv_dlopen_libs $LIBS"
10155
9086
 
10156
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10157
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
9087
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9088
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10158
9089
if test "${lt_cv_dlopen_self+set}" = set; then
10159
9090
  echo $ECHO_N "(cached) $ECHO_C" >&6
10160
9091
else
10164
9095
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10165
9096
  lt_status=$lt_dlunknown
10166
9097
  cat > conftest.$ac_ext <<EOF
10167
 
#line 10167 "configure"
 
9098
#line 9098 "configure"
10168
9099
#include "confdefs.h"
10169
9100
 
10170
9101
#if HAVE_DLFCN_H
10221
9152
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10222
9153
      /* dlclose (self); */
10223
9154
    }
10224
 
  else
10225
 
    puts (dlerror ());
10226
9155
 
10227
9156
    exit (status);
10228
9157
}
10232
9161
  ac_status=$?
10233
9162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234
9163
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10235
 
    (./conftest; exit; ) >&5 2>/dev/null
 
9164
    (./conftest; exit; ) 2>/dev/null
10236
9165
    lt_status=$?
10237
9166
    case x$lt_status in
10238
9167
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10239
9168
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10240
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9169
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10241
9170
    esac
10242
9171
  else :
10243
9172
    # compilation failed
10248
9177
 
10249
9178
 
10250
9179
fi
10251
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10252
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
9180
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9181
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10253
9182
 
10254
9183
    if test "x$lt_cv_dlopen_self" = xyes; then
10255
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10256
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10257
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
9184
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9185
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9186
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10258
9187
if test "${lt_cv_dlopen_self_static+set}" = set; then
10259
9188
  echo $ECHO_N "(cached) $ECHO_C" >&6
10260
9189
else
10264
9193
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10265
9194
  lt_status=$lt_dlunknown
10266
9195
  cat > conftest.$ac_ext <<EOF
10267
 
#line 10267 "configure"
 
9196
#line 9196 "configure"
10268
9197
#include "confdefs.h"
10269
9198
 
10270
9199
#if HAVE_DLFCN_H
10321
9250
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10322
9251
      /* dlclose (self); */
10323
9252
    }
10324
 
  else
10325
 
    puts (dlerror ());
10326
9253
 
10327
9254
    exit (status);
10328
9255
}
10332
9259
  ac_status=$?
10333
9260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334
9261
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10335
 
    (./conftest; exit; ) >&5 2>/dev/null
 
9262
    (./conftest; exit; ) 2>/dev/null
10336
9263
    lt_status=$?
10337
9264
    case x$lt_status in
10338
9265
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10339
9266
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10340
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9267
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10341
9268
    esac
10342
9269
  else :
10343
9270
    # compilation failed
10348
9275
 
10349
9276
 
10350
9277
fi
10351
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10352
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
9278
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9279
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10353
9280
    fi
10354
9281
 
10355
9282
    CPPFLAGS="$save_CPPFLAGS"
10370
9297
fi
10371
9298
 
10372
9299
 
10373
 
# Report which library types will actually be built
10374
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10375
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10376
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10377
 
echo "${ECHO_T}$can_build_shared" >&6; }
 
9300
# Report which librarie types wil actually be built
 
9301
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9302
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9303
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9304
echo "${ECHO_T}$can_build_shared" >&6
10378
9305
 
10379
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10380
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
9306
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9307
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10381
9308
test "$can_build_shared" = "no" && enable_shared=no
10382
9309
 
10383
9310
# On AIX, shared libraries and static libraries use the same namespace, and
10384
9311
# are all built from PIC.
10385
 
case $host_os in
 
9312
case "$host_os" in
10386
9313
aix3*)
10387
9314
  test "$enable_shared" = yes && enable_static=no
10388
9315
  if test -n "$RANLIB"; then
10397
9324
  fi
10398
9325
    ;;
10399
9326
esac
10400
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10401
 
echo "${ECHO_T}$enable_shared" >&6; }
 
9327
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9328
echo "${ECHO_T}$enable_shared" >&6
10402
9329
 
10403
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10404
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
9330
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9331
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10405
9332
# Make sure either enable_shared or enable_static is yes.
10406
9333
test "$enable_shared" = yes || enable_static=yes
10407
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10408
 
echo "${ECHO_T}$enable_static" >&6; }
 
9334
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9335
echo "${ECHO_T}$enable_static" >&6
10409
9336
 
10410
9337
# The else clause should only fire when bootstrapping the
10411
9338
# libtool distribution, otherwise you forgot to ship ltmain.sh
10420
9347
  # Now quote all the things that may contain metacharacters while being
10421
9348
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10422
9349
  # variables and quote the copies for generation of the libtool script.
10423
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9350
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10424
9351
    SED SHELL STRIP \
10425
9352
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10426
9353
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10462
9389
    module_cmds \
10463
9390
    module_expsym_cmds \
10464
9391
    lt_cv_prog_compiler_c_o \
10465
 
    fix_srcfile_path \
10466
9392
    exclude_expsyms \
10467
9393
    include_expsyms; do
10468
9394
 
10507
9433
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10508
9434
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10509
9435
#
10510
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
9436
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10511
9437
# Free Software Foundation, Inc.
10512
9438
#
10513
9439
# This file is part of GNU Libtool:
10587
9513
# A C compiler.
10588
9514
LTCC=$lt_LTCC
10589
9515
 
10590
 
# LTCC compiler flags.
10591
 
LTCFLAGS=$lt_LTCFLAGS
10592
 
 
10593
9516
# A language-specific compiler.
10594
9517
CC=$lt_compiler
10595
9518
 
10831
9754
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10832
9755
 
10833
9756
# Fix the shell variable \$srcfile for the compiler.
10834
 
fix_srcfile_path=$lt_fix_srcfile_path
 
9757
fix_srcfile_path="$fix_srcfile_path"
10835
9758
 
10836
9759
# Set to yes if exported symbols are required.
10837
9760
always_export_symbols=$always_export_symbols
10898
9821
CC="$lt_save_CC"
10899
9822
 
10900
9823
 
10901
 
# Check whether --with-tags was given.
 
9824
# Check whether --with-tags or --without-tags was given.
10902
9825
if test "${with_tags+set}" = set; then
10903
 
  withval=$with_tags; tagnames="$withval"
10904
 
fi
10905
 
 
 
9826
  withval="$with_tags"
 
9827
  tagnames="$withval"
 
9828
fi;
10906
9829
 
10907
9830
if test -f "$ltmain" && test -n "$tagnames"; then
10908
9831
  if test ! -f "${ofile}"; then
10920
9843
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10921
9844
    fi
10922
9845
  fi
10923
 
  if test -z "$LTCFLAGS"; then
10924
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10925
 
  fi
10926
9846
 
10927
9847
  # Extract list of available tagged configurations in $ofile.
10928
9848
  # Note that this assumes the entire list is on one line.
10956
9876
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10957
9877
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10958
9878
            (test "X$CXX" != "Xg++"))) ; then
10959
 
          ac_ext=cpp
 
9879
          ac_ext=cc
10960
9880
ac_cpp='$CXXCPP $CPPFLAGS'
10961
9881
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962
9882
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975
9895
hardcode_libdir_flag_spec_ld_CXX=
10976
9896
hardcode_libdir_separator_CXX=
10977
9897
hardcode_minus_L_CXX=no
10978
 
hardcode_shlibpath_var_CXX=unsupported
10979
9898
hardcode_automatic_CXX=no
10980
9899
module_cmds_CXX=
10981
9900
module_expsym_cmds_CXX=
10993
9912
compiler_lib_search_path_CXX=
10994
9913
 
10995
9914
# Source file extension for C++ test sources.
10996
 
ac_ext=cpp
 
9915
ac_ext=cc
10997
9916
 
10998
9917
# Object file extension for compiled C++ test sources.
10999
9918
objext=o
11000
9919
objext_CXX=$objext
11001
9920
 
11002
9921
# Code to be used in simple compile tests
11003
 
lt_simple_compile_test_code="int some_variable = 0;"
 
9922
lt_simple_compile_test_code="int some_variable = 0;\n"
11004
9923
 
11005
9924
# Code to be used in simple link tests
11006
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
9925
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11007
9926
 
11008
9927
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11009
9928
 
11010
9929
# If no C compiler was specified, use CC.
11011
9930
LTCC=${LTCC-"$CC"}
11012
9931
 
11013
 
# If no C compiler flags were specified, use CFLAGS.
11014
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11015
 
 
11016
9932
# Allow CC to be a program name with arguments.
11017
9933
compiler=$CC
11018
9934
 
11019
9935
 
11020
9936
# save warnings/boilerplate of simple test code
11021
9937
ac_outfile=conftest.$ac_objext
11022
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11023
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9938
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9939
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11024
9940
_lt_compiler_boilerplate=`cat conftest.err`
11025
9941
$rm conftest*
11026
9942
 
11027
9943
ac_outfile=conftest.$ac_objext
11028
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11029
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9944
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9945
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11030
9946
_lt_linker_boilerplate=`cat conftest.err`
11031
9947
$rm conftest*
11032
9948
 
11041
9957
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11042
9958
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11043
9959
else
11044
 
  $as_unset lt_cv_prog_gnu_ld
 
9960
  unset lt_cv_prog_gnu_ld
11045
9961
fi
11046
9962
if test -n "${lt_cv_path_LDCXX+set}"; then
11047
9963
  lt_cv_path_LD=$lt_cv_path_LDCXX
11048
9964
else
11049
 
  $as_unset lt_cv_path_LD
 
9965
  unset lt_cv_path_LD
11050
9966
fi
11051
9967
test -z "${LDCXX+set}" || LD=$LDCXX
11052
9968
CC=${CXX-"c++"}
11075
9991
  # Set up default GNU C++ configuration
11076
9992
 
11077
9993
 
11078
 
# Check whether --with-gnu-ld was given.
 
9994
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11079
9995
if test "${with_gnu_ld+set}" = set; then
11080
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
9996
  withval="$with_gnu_ld"
 
9997
  test "$withval" = no || with_gnu_ld=yes
11081
9998
else
11082
9999
  with_gnu_ld=no
11083
 
fi
11084
 
 
 
10000
fi;
11085
10001
ac_prog=ld
11086
10002
if test "$GCC" = yes; then
11087
10003
  # Check if gcc -print-prog-name=ld gives a path.
11088
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11089
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10004
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10005
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11090
10006
  case $host in
11091
10007
  *-*-mingw*)
11092
10008
    # gcc leaves a trailing carriage return which upsets mingw
11115
10031
    ;;
11116
10032
  esac
11117
10033
elif test "$with_gnu_ld" = yes; then
11118
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11119
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
10034
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10035
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11120
10036
else
11121
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11122
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
10037
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10038
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11123
10039
fi
11124
10040
if test "${lt_cv_path_LD+set}" = set; then
11125
10041
  echo $ECHO_N "(cached) $ECHO_C" >&6
11132
10048
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11133
10049
      lt_cv_path_LD="$ac_dir/$ac_prog"
11134
10050
      # Check to see if the program is GNU ld.  I'd rather use --version,
11135
 
      # but apparently some variants of GNU ld only accept -v.
 
10051
      # but apparently some GNU ld's only accept -v.
11136
10052
      # Break only if it was the GNU/non-GNU ld that we prefer.
11137
10053
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11138
10054
      *GNU* | *'with BFD'*)
11152
10068
 
11153
10069
LD="$lt_cv_path_LD"
11154
10070
if test -n "$LD"; then
11155
 
  { echo "$as_me:$LINENO: result: $LD" >&5
11156
 
echo "${ECHO_T}$LD" >&6; }
 
10071
  echo "$as_me:$LINENO: result: $LD" >&5
 
10072
echo "${ECHO_T}$LD" >&6
11157
10073
else
11158
 
  { echo "$as_me:$LINENO: result: no" >&5
11159
 
echo "${ECHO_T}no" >&6; }
 
10074
  echo "$as_me:$LINENO: result: no" >&5
 
10075
echo "${ECHO_T}no" >&6
11160
10076
fi
11161
10077
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11162
10078
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11163
10079
   { (exit 1); exit 1; }; }
11164
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11165
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
10080
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10081
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11166
10082
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11167
10083
  echo $ECHO_N "(cached) $ECHO_C" >&6
11168
10084
else
11169
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10085
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11170
10086
case `$LD -v 2>&1 </dev/null` in
11171
10087
*GNU* | *'with BFD'*)
11172
10088
  lt_cv_prog_gnu_ld=yes
11176
10092
  ;;
11177
10093
esac
11178
10094
fi
11179
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11180
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
10095
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10096
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11181
10097
with_gnu_ld=$lt_cv_prog_gnu_ld
11182
10098
 
11183
10099
 
11227
10143
fi
11228
10144
 
11229
10145
# PORTME: fill in a description of your system's C++ link characteristics
11230
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11231
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10146
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10147
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11232
10148
ld_shlibs_CXX=yes
11233
10149
case $host_os in
11234
10150
  aix3*)
11257
10173
            ;;
11258
10174
          esac
11259
10175
        done
11260
 
        ;;
11261
10176
      esac
11262
10177
 
11263
10178
      exp_sym_flag='-bexport'
11284
10199
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11285
10200
        then
11286
10201
          # We have reworked collect2
11287
 
          :
 
10202
          hardcode_direct_CXX=yes
11288
10203
        else
11289
10204
          # We have old collect2
11290
10205
          hardcode_direct_CXX=unsupported
11295
10210
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11296
10211
          hardcode_libdir_separator_CXX=
11297
10212
        fi
11298
 
        ;;
11299
10213
      esac
11300
10214
      shared_flag='-shared'
11301
10215
      if test "$aix_use_runtimelinking" = yes; then
11340
10254
}
11341
10255
_ACEOF
11342
10256
rm -f conftest.$ac_objext conftest$ac_exeext
11343
 
if { (ac_try="$ac_link"
11344
 
case "(($ac_try" in
11345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346
 
  *) ac_try_echo=$ac_try;;
11347
 
esac
11348
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349
 
  (eval "$ac_link") 2>conftest.er1
 
10257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10258
  (eval $ac_link) 2>conftest.er1
11350
10259
  ac_status=$?
11351
10260
  grep -v '^ *+' conftest.er1 >conftest.err
11352
10261
  rm -f conftest.er1
11353
10262
  cat conftest.err >&5
11354
10263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355
 
  (exit $ac_status); } && {
11356
 
         test -z "$ac_cxx_werror_flag" ||
11357
 
         test ! -s conftest.err
11358
 
       } && test -s conftest$ac_exeext &&
11359
 
       $as_test_x conftest$ac_exeext; then
 
10264
  (exit $ac_status); } &&
 
10265
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10266
                         || test ! -s conftest.err'
 
10267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10268
  (eval $ac_try) 2>&5
 
10269
  ac_status=$?
 
10270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10271
  (exit $ac_status); }; } &&
 
10272
         { ac_try='test -s conftest$ac_exeext'
 
10273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10274
  (eval $ac_try) 2>&5
 
10275
  ac_status=$?
 
10276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10277
  (exit $ac_status); }; }; then
11360
10278
 
11361
 
lt_aix_libpath_sed='
11362
 
    /Import File Strings/,/^$/ {
11363
 
        /^0/ {
11364
 
            s/^0  *\(.*\)$/\1/
11365
 
            p
11366
 
        }
11367
 
    }'
11368
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10279
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10280
}'`
11369
10281
# Check for a 64-bit object if we didn't find anything.
11370
 
if test -z "$aix_libpath"; then
11371
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11372
 
fi
 
10282
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; }
 
10283
}'`; fi
11373
10284
else
11374
10285
  echo "$as_me: failed program was:" >&5
11375
10286
sed 's/^/| /' conftest.$ac_ext >&5
11376
10287
 
11377
 
 
11378
10288
fi
11379
 
 
11380
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10289
rm -f conftest.err conftest.$ac_objext \
11381
10290
      conftest$ac_exeext conftest.$ac_ext
11382
10291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11383
10292
 
11384
10293
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11385
10294
 
11386
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10295
      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"
11387
10296
     else
11388
10297
      if test "$host_cpu" = ia64; then
11389
10298
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11390
10299
        allow_undefined_flag_CXX="-z nodefs"
11391
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
10300
        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"
11392
10301
      else
11393
10302
        # Determine the default libpath from the value encoded in an empty executable.
11394
10303
        cat >conftest.$ac_ext <<_ACEOF
11407
10316
}
11408
10317
_ACEOF
11409
10318
rm -f conftest.$ac_objext conftest$ac_exeext
11410
 
if { (ac_try="$ac_link"
11411
 
case "(($ac_try" in
11412
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413
 
  *) ac_try_echo=$ac_try;;
11414
 
esac
11415
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416
 
  (eval "$ac_link") 2>conftest.er1
 
10319
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10320
  (eval $ac_link) 2>conftest.er1
11417
10321
  ac_status=$?
11418
10322
  grep -v '^ *+' conftest.er1 >conftest.err
11419
10323
  rm -f conftest.er1
11420
10324
  cat conftest.err >&5
11421
10325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422
 
  (exit $ac_status); } && {
11423
 
         test -z "$ac_cxx_werror_flag" ||
11424
 
         test ! -s conftest.err
11425
 
       } && test -s conftest$ac_exeext &&
11426
 
       $as_test_x conftest$ac_exeext; then
 
10326
  (exit $ac_status); } &&
 
10327
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10328
                         || test ! -s conftest.err'
 
10329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10330
  (eval $ac_try) 2>&5
 
10331
  ac_status=$?
 
10332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10333
  (exit $ac_status); }; } &&
 
10334
         { ac_try='test -s conftest$ac_exeext'
 
10335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10336
  (eval $ac_try) 2>&5
 
10337
  ac_status=$?
 
10338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10339
  (exit $ac_status); }; }; then
11427
10340
 
11428
 
lt_aix_libpath_sed='
11429
 
    /Import File Strings/,/^$/ {
11430
 
        /^0/ {
11431
 
            s/^0  *\(.*\)$/\1/
11432
 
            p
11433
 
        }
11434
 
    }'
11435
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10341
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10342
}'`
11436
10343
# Check for a 64-bit object if we didn't find anything.
11437
 
if test -z "$aix_libpath"; then
11438
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11439
 
fi
 
10344
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; }
 
10345
}'`; fi
11440
10346
else
11441
10347
  echo "$as_me: failed program was:" >&5
11442
10348
sed 's/^/| /' conftest.$ac_ext >&5
11443
10349
 
11444
 
 
11445
10350
fi
11446
 
 
11447
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10351
rm -f conftest.err conftest.$ac_objext \
11448
10352
      conftest$ac_exeext conftest.$ac_ext
11449
10353
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11450
10354
 
11453
10357
        # -berok will link without error, but may produce a broken library.
11454
10358
        no_undefined_flag_CXX=' ${wl}-bernotok'
11455
10359
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10360
        # -bexpall does not export symbols beginning with underscore (_)
 
10361
        always_export_symbols_CXX=yes
11456
10362
        # Exported symbols can be pulled into shared objects from archives
11457
 
        whole_archive_flag_spec_CXX='$convenience'
 
10363
        whole_archive_flag_spec_CXX=' '
11458
10364
        archive_cmds_need_lc_CXX=yes
11459
 
        # This is similar to how AIX traditionally builds its shared libraries.
11460
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10365
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10366
        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'
11461
10367
      fi
11462
10368
    fi
11463
10369
    ;;
11464
 
 
11465
 
  beos*)
11466
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11467
 
      allow_undefined_flag_CXX=unsupported
11468
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11469
 
      # support --undefined.  This deserves some investigation.  FIXME
11470
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11471
 
    else
11472
 
      ld_shlibs_CXX=no
11473
 
    fi
11474
 
    ;;
11475
 
 
11476
10370
  chorus*)
11477
10371
    case $cc_basename in
11478
10372
      *)
11482
10376
    esac
11483
10377
    ;;
11484
10378
 
 
10379
 
11485
10380
  cygwin* | mingw* | pw32*)
11486
10381
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11487
10382
    # as there is no search path for DLLs.
11491
10386
    enable_shared_with_static_runtimes_CXX=yes
11492
10387
 
11493
10388
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11494
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10389
      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'
11495
10390
      # If the export-symbols file already is a .def file (1st line
11496
10391
      # is EXPORTS), use it as is; otherwise, prepend...
11497
10392
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11500
10395
        echo EXPORTS > $output_objdir/$soname.def;
11501
10396
        cat $export_symbols >> $output_objdir/$soname.def;
11502
10397
      fi~
11503
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10398
      $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'
11504
10399
    else
11505
10400
      ld_shlibs_CXX=no
11506
10401
    fi
11507
10402
  ;;
11508
10403
      darwin* | rhapsody*)
11509
 
        case $host_os in
 
10404
        case "$host_os" in
11510
10405
        rhapsody* | darwin1.[012])
11511
10406
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11512
10407
         ;;
11544
10439
          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'
11545
10440
        fi
11546
10441
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11547
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10442
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11548
10443
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11549
10444
            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}'
11550
10445
          else
11555
10450
      case $cc_basename in
11556
10451
        xlc*)
11557
10452
         output_verbose_link_cmd='echo'
11558
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
10453
          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'
11559
10454
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11560
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11561
 
          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10455
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10456
          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}'
11562
10457
          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}'
11563
10458
          ;;
11564
10459
       *)
11592
10487
  freebsd-elf*)
11593
10488
    archive_cmds_need_lc_CXX=no
11594
10489
    ;;
11595
 
  freebsd* | dragonfly*)
 
10490
  freebsd* | kfreebsd*-gnu | dragonfly*)
11596
10491
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11597
10492
    # conventions
11598
10493
    ld_shlibs_CXX=yes
11637
10532
    ;;
11638
10533
  hpux10*|hpux11*)
11639
10534
    if test $with_gnu_ld = no; then
11640
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11641
 
      hardcode_libdir_separator_CXX=:
11642
 
 
11643
 
      case $host_cpu in
11644
 
      hppa*64*|ia64*) ;;
 
10535
      case "$host_cpu" in
 
10536
      hppa*64*)
 
10537
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10538
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10539
        hardcode_libdir_separator_CXX=:
 
10540
        ;;
 
10541
      ia64*)
 
10542
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10543
        ;;
11645
10544
      *)
 
10545
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10546
        hardcode_libdir_separator_CXX=:
11646
10547
        export_dynamic_flag_spec_CXX='${wl}-E'
11647
10548
        ;;
11648
10549
      esac
11649
10550
    fi
11650
 
    case $host_cpu in
11651
 
    hppa*64*|ia64*)
11652
 
      hardcode_direct_CXX=no
11653
 
      hardcode_shlibpath_var_CXX=no
 
10551
    case "$host_cpu" in
 
10552
    hppa*64*)
 
10553
      hardcode_direct_CXX=no
 
10554
      hardcode_shlibpath_var_CXX=no
 
10555
      ;;
 
10556
    ia64*)
 
10557
      hardcode_direct_CXX=no
 
10558
      hardcode_shlibpath_var_CXX=no
 
10559
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10560
                                              # but as the default
 
10561
                                              # location of the library.
11654
10562
      ;;
11655
10563
    *)
11656
10564
      hardcode_direct_CXX=yes
11666
10574
        ld_shlibs_CXX=no
11667
10575
        ;;
11668
10576
      aCC*)
11669
 
        case $host_cpu in
11670
 
        hppa*64*)
11671
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11672
 
          ;;
11673
 
        ia64*)
11674
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10577
        case "$host_cpu" in
 
10578
        hppa*64*|ia64*)
 
10579
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11675
10580
          ;;
11676
10581
        *)
11677
10582
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11690
10595
      *)
11691
10596
        if test "$GXX" = yes; then
11692
10597
          if test $with_gnu_ld = no; then
11693
 
            case $host_cpu in
11694
 
            hppa*64*)
11695
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11696
 
              ;;
11697
 
            ia64*)
11698
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10598
            case "$host_cpu" in
 
10599
            ia64*|hppa*64*)
 
10600
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11699
10601
              ;;
11700
10602
            *)
11701
10603
              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'
11709
10611
        ;;
11710
10612
    esac
11711
10613
    ;;
11712
 
  interix[3-9]*)
11713
 
    hardcode_direct_CXX=no
11714
 
    hardcode_shlibpath_var_CXX=no
11715
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11716
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11717
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11718
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11719
 
    # default) and relocated if they conflict, which is a slow very memory
11720
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11721
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11722
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11723
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11724
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11725
 
    ;;
11726
10614
  irix5* | irix6*)
11727
10615
    case $cc_basename in
11728
10616
      CC*)
11749
10637
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11750
10638
    hardcode_libdir_separator_CXX=:
11751
10639
    ;;
11752
 
  linux* | k*bsd*-gnu)
 
10640
  linux*)
11753
10641
    case $cc_basename in
11754
10642
      KCC*)
11755
10643
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11808
10696
 
11809
10697
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11810
10698
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11811
 
        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'
 
10699
        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'
11812
10700
        ;;
11813
10701
      cxx*)
11814
10702
        # Compaq C++
11829
10717
        # dependencies.
11830
10718
        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'
11831
10719
        ;;
11832
 
      *)
11833
 
        case `$CC -V 2>&1 | sed 5q` in
11834
 
        *Sun\ C*)
11835
 
          # Sun C++ 5.9
11836
 
          no_undefined_flag_CXX=' -zdefs'
11837
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11838
 
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11839
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
11840
 
          whole_archive_flag_spec_CXX='${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'
11841
 
 
11842
 
          # Not sure whether something based on
11843
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11844
 
          # would be better.
11845
 
          output_verbose_link_cmd='echo'
11846
 
 
11847
 
          # Archives containing C++ object files must be created using
11848
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11849
 
          # necessary to make sure instantiated templates are included
11850
 
          # in the archive.
11851
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11852
 
          ;;
11853
 
        esac
11854
 
        ;;
11855
10720
    esac
11856
10721
    ;;
11857
10722
  lynxos*)
11874
10739
        ;;
11875
10740
    esac
11876
10741
    ;;
11877
 
  netbsd* | netbsdelf*-gnu)
 
10742
  netbsd*)
11878
10743
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11879
10744
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11880
10745
      wlarc=
11890
10755
    ld_shlibs_CXX=no
11891
10756
    ;;
11892
10757
  openbsd*)
11893
 
    if test -f /usr/libexec/ld.so; then
11894
 
      hardcode_direct_CXX=yes
11895
 
      hardcode_shlibpath_var_CXX=no
11896
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11897
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11898
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11899
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11900
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11901
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11902
 
      fi
11903
 
      output_verbose_link_cmd='echo'
11904
 
    else
11905
 
      ld_shlibs_CXX=no
 
10758
    hardcode_direct_CXX=yes
 
10759
    hardcode_shlibpath_var_CXX=no
 
10760
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10761
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10762
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10763
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10764
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10765
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11906
10766
    fi
 
10767
    output_verbose_link_cmd='echo'
11907
10768
    ;;
11908
10769
  osf3*)
11909
10770
    case $cc_basename in
12032
10893
    # FIXME: insert proper C++ library support
12033
10894
    ld_shlibs_CXX=no
12034
10895
    ;;
 
10896
  sco*)
 
10897
    archive_cmds_need_lc_CXX=no
 
10898
    case $cc_basename in
 
10899
      CC*)
 
10900
        # FIXME: insert proper C++ library support
 
10901
        ld_shlibs_CXX=no
 
10902
        ;;
 
10903
      *)
 
10904
        # FIXME: insert proper C++ library support
 
10905
        ld_shlibs_CXX=no
 
10906
        ;;
 
10907
    esac
 
10908
    ;;
12035
10909
  sunos4*)
12036
10910
    case $cc_basename in
12037
10911
      CC*)
12054
10928
    case $cc_basename in
12055
10929
      CC*)
12056
10930
        # Sun C++ 4.2, 5.x and Centerline C++
12057
 
        archive_cmds_need_lc_CXX=yes
12058
10931
        no_undefined_flag_CXX=' -zdefs'
12059
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10932
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12060
10933
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12061
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10934
        $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'
12062
10935
 
12063
10936
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12064
10937
        hardcode_shlibpath_var_CXX=no
12065
10938
        case $host_os in
12066
10939
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12067
10940
          *)
12068
 
            # The compiler driver will combine and reorder linker options,
12069
 
            # but understands `-z linker_flag'.
 
10941
            # The C++ compiler is used as linker so we must use $wl
 
10942
            # flag to pass the commands to the underlying system
 
10943
            # linker. We must also pass each convience library through
 
10944
            # to the system linker between allextract/defaultextract.
 
10945
            # The C++ compiler will combine linker options so we
 
10946
            # cannot just pass the convience library names through
 
10947
            # without $wl.
12070
10948
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12071
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
10949
            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'
12072
10950
            ;;
12073
10951
        esac
12074
10952
        link_all_deplibs_CXX=yes
12075
10953
 
12076
 
        output_verbose_link_cmd='echo'
 
10954
        # Commands to make compiler produce verbose output that lists
 
10955
        # what "hidden" libraries, object files and flags are used when
 
10956
        # linking a shared library.
 
10957
        #
 
10958
        # There doesn't appear to be a way to prevent this compiler from
 
10959
        # explicitly linking system object files so we need to strip them
 
10960
        # from the output so that they don't get included in the library
 
10961
        # dependencies.
 
10962
        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'
12077
10963
 
12078
10964
        # Archives containing C++ object files must be created using
12079
10965
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12115
11001
          fi
12116
11002
 
12117
11003
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12118
 
          case $host_os in
12119
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12120
 
          *)
12121
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12122
 
            ;;
12123
 
          esac
12124
11004
        fi
12125
11005
        ;;
12126
11006
    esac
12127
11007
    ;;
12128
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12129
 
    no_undefined_flag_CXX='${wl}-z,text'
12130
 
    archive_cmds_need_lc_CXX=no
12131
 
    hardcode_shlibpath_var_CXX=no
12132
 
    runpath_var='LD_RUN_PATH'
12133
 
 
12134
 
    case $cc_basename in
12135
 
      CC*)
12136
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12137
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12138
 
        ;;
12139
 
      *)
12140
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12141
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142
 
        ;;
12143
 
    esac
12144
 
    ;;
12145
 
  sysv5* | sco3.2v5* | sco5v6*)
12146
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12147
 
    # link with -lc, and that would cause any symbols used from libc to
12148
 
    # always be unresolved, which means just about no library would
12149
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12150
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12151
 
    # as -z defs.
12152
 
    # For security reasons, it is highly recommended that you always
12153
 
    # use absolute paths for naming shared libraries, and exclude the
12154
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12155
 
    # requires that you compile everything twice, which is a pain.
12156
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12157
 
    # non-empty value in the environment.  Most likely only useful for
12158
 
    # creating official distributions of packages.
12159
 
    # This is a hack until libtool officially supports absolute path
12160
 
    # names for shared libraries.
12161
 
    no_undefined_flag_CXX='${wl}-z,text'
12162
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12163
 
    archive_cmds_need_lc_CXX=no
12164
 
    hardcode_shlibpath_var_CXX=no
12165
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12166
 
    hardcode_libdir_separator_CXX=':'
12167
 
    link_all_deplibs_CXX=yes
12168
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12169
 
    runpath_var='LD_RUN_PATH'
12170
 
 
12171
 
    case $cc_basename in
12172
 
      CC*)
12173
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12174
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12175
 
        ;;
12176
 
      *)
12177
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12178
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12179
 
        ;;
12180
 
    esac
 
11008
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11009
    archive_cmds_need_lc_CXX=no
12181
11010
    ;;
12182
11011
  tandem*)
12183
11012
    case $cc_basename in
12201
11030
    ld_shlibs_CXX=no
12202
11031
    ;;
12203
11032
esac
12204
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12205
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11033
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11034
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12206
11035
test "$ld_shlibs_CXX" = no && can_build_shared=no
12207
11036
 
12208
11037
GCC_CXX="$GXX"
12234
11063
  # The `*' in the case matches for architectures that use `case' in
12235
11064
  # $output_verbose_cmd can trigger glob expansion during the loop
12236
11065
  # eval without this substitution.
12237
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11066
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12238
11067
 
12239
11068
  for p in `eval $output_verbose_link_cmd`; do
12240
11069
    case $p in
12310
11139
 
12311
11140
$rm -f confest.$objext
12312
11141
 
12313
 
# PORTME: override above test on systems where it is broken
12314
 
case $host_os in
12315
 
interix[3-9]*)
12316
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12317
 
  # hack all around it, let's just trust "g++" to DTRT.
12318
 
  predep_objects_CXX=
12319
 
  postdep_objects_CXX=
12320
 
  postdeps_CXX=
12321
 
  ;;
12322
 
 
12323
 
linux*)
12324
 
  case `$CC -V 2>&1 | sed 5q` in
12325
 
  *Sun\ C*)
12326
 
    # Sun C++ 5.9
12327
 
    #
12328
 
    # The more standards-conforming stlport4 library is
12329
 
    # incompatible with the Cstd library. Avoid specifying
12330
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12331
 
    # -library=stlport4 depends on it.
12332
 
    case " $CXX $CXXFLAGS " in
12333
 
    *" -library=stlport4 "*)
12334
 
      solaris_use_stlport4=yes
12335
 
      ;;
12336
 
    esac
12337
 
    if test "$solaris_use_stlport4" != yes; then
12338
 
      postdeps_CXX='-library=Cstd -library=Crun'
12339
 
    fi
12340
 
    ;;
12341
 
  esac
12342
 
  ;;
12343
 
 
12344
 
solaris*)
12345
 
  case $cc_basename in
12346
 
  CC*)
12347
 
    # The more standards-conforming stlport4 library is
12348
 
    # incompatible with the Cstd library. Avoid specifying
12349
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12350
 
    # -library=stlport4 depends on it.
12351
 
    case " $CXX $CXXFLAGS " in
12352
 
    *" -library=stlport4 "*)
12353
 
      solaris_use_stlport4=yes
12354
 
      ;;
12355
 
    esac
12356
 
 
12357
 
    # Adding this requires a known-good setup of shared libraries for
12358
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12359
 
    # archive will be linked into the output, leading to subtle bugs.
12360
 
    if test "$solaris_use_stlport4" != yes; then
12361
 
      postdeps_CXX='-library=Cstd -library=Crun'
12362
 
    fi
12363
 
    ;;
12364
 
  esac
12365
 
  ;;
12366
 
esac
12367
 
 
12368
 
 
12369
11142
case " $postdeps_CXX " in
12370
11143
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12371
11144
esac
12374
11147
lt_prog_compiler_pic_CXX=
12375
11148
lt_prog_compiler_static_CXX=
12376
11149
 
12377
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12378
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
11150
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11151
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12379
11152
 
12380
11153
  # C++ specific cases for pic, static, wl, etc.
12381
11154
  if test "$GXX" = yes; then
12396
11169
      # like `-m68040'.
12397
11170
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12398
11171
      ;;
12399
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11172
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12400
11173
      # PIC is the default for these OSes.
12401
11174
      ;;
12402
 
    mingw* | cygwin* | os2* | pw32*)
 
11175
    mingw* | os2* | pw32*)
12403
11176
      # This hack is so that the source file can tell whether it is being
12404
11177
      # built for inclusion in a dll (and should export symbols for example).
12405
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12406
 
      # (--disable-auto-import) libraries
12407
11178
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12408
11179
      ;;
12409
11180
    darwin* | rhapsody*)
12415
11186
      # DJGPP does not support shared libraries at all
12416
11187
      lt_prog_compiler_pic_CXX=
12417
11188
      ;;
12418
 
    interix[3-9]*)
12419
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12420
 
      # Instead, we relocate shared libraries at runtime.
12421
 
      ;;
12422
11189
    sysv4*MP*)
12423
11190
      if test -d /usr/nec; then
12424
11191
        lt_prog_compiler_pic_CXX=-Kconform_pic
12427
11194
    hpux*)
12428
11195
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12429
11196
      # not for PA HP-UX.
12430
 
      case $host_cpu in
 
11197
      case "$host_cpu" in
12431
11198
      hppa*64*|ia64*)
12432
11199
        ;;
12433
11200
      *)
12481
11248
            ;;
12482
11249
        esac
12483
11250
        ;;
12484
 
      freebsd* | dragonfly*)
 
11251
      freebsd* | kfreebsd*-gnu | dragonfly*)
12485
11252
        # FreeBSD uses GNU C++
12486
11253
        ;;
12487
11254
      hpux9* | hpux10* | hpux11*)
12488
11255
        case $cc_basename in
12489
11256
          CC*)
12490
11257
            lt_prog_compiler_wl_CXX='-Wl,'
12491
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11258
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12492
11259
            if test "$host_cpu" != ia64; then
12493
11260
              lt_prog_compiler_pic_CXX='+Z'
12494
11261
            fi
12495
11262
            ;;
12496
11263
          aCC*)
12497
11264
            lt_prog_compiler_wl_CXX='-Wl,'
12498
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12499
 
            case $host_cpu in
 
11265
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11266
            case "$host_cpu" in
12500
11267
            hppa*64*|ia64*)
12501
11268
              # +Z the default
12502
11269
              ;;
12509
11276
            ;;
12510
11277
        esac
12511
11278
        ;;
12512
 
      interix*)
12513
 
        # This is c89, which is MS Visual C++ (no shared libs)
12514
 
        # Anyone wants to do a port?
12515
 
        ;;
12516
11279
      irix5* | irix6* | nonstopux*)
12517
11280
        case $cc_basename in
12518
11281
          CC*)
12524
11287
            ;;
12525
11288
        esac
12526
11289
        ;;
12527
 
      linux* | k*bsd*-gnu)
 
11290
      linux*)
12528
11291
        case $cc_basename in
12529
11292
          KCC*)
12530
11293
            # KAI C++ Compiler
12541
11304
            # Portland Group C++ compiler.
12542
11305
            lt_prog_compiler_wl_CXX='-Wl,'
12543
11306
            lt_prog_compiler_pic_CXX='-fpic'
12544
 
            lt_prog_compiler_static_CXX='-Bstatic'
 
11307
            lt_prog_compiler_static_CXX='-static'
12545
11308
            ;;
12546
11309
          cxx*)
12547
11310
            # Compaq C++
12551
11314
            lt_prog_compiler_static_CXX='-non_shared'
12552
11315
            ;;
12553
11316
          *)
12554
 
            case `$CC -V 2>&1 | sed 5q` in
12555
 
            *Sun\ C*)
12556
 
              # Sun C++ 5.9
12557
 
              lt_prog_compiler_pic_CXX='-KPIC'
12558
 
              lt_prog_compiler_static_CXX='-Bstatic'
12559
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
12560
 
              ;;
12561
 
            esac
12562
11317
            ;;
12563
11318
        esac
12564
11319
        ;;
12575
11330
            ;;
12576
11331
        esac
12577
11332
        ;;
12578
 
      netbsd* | netbsdelf*-gnu)
 
11333
      netbsd*)
12579
11334
        ;;
12580
11335
      osf3* | osf4* | osf5*)
12581
11336
        case $cc_basename in
12600
11355
        ;;
12601
11356
      psos*)
12602
11357
        ;;
 
11358
      sco*)
 
11359
        case $cc_basename in
 
11360
          CC*)
 
11361
            lt_prog_compiler_pic_CXX='-fPIC'
 
11362
            ;;
 
11363
          *)
 
11364
            ;;
 
11365
        esac
 
11366
        ;;
12603
11367
      solaris*)
12604
11368
        case $cc_basename in
12605
11369
          CC*)
12641
11405
            ;;
12642
11406
        esac
12643
11407
        ;;
12644
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12645
 
        case $cc_basename in
12646
 
          CC*)
12647
 
            lt_prog_compiler_wl_CXX='-Wl,'
12648
 
            lt_prog_compiler_pic_CXX='-KPIC'
12649
 
            lt_prog_compiler_static_CXX='-Bstatic'
12650
 
            ;;
12651
 
        esac
 
11408
      unixware*)
12652
11409
        ;;
12653
11410
      vxworks*)
12654
11411
        ;;
12658
11415
    esac
12659
11416
  fi
12660
11417
 
12661
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12662
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
11418
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11419
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12663
11420
 
12664
11421
#
12665
11422
# Check to make sure the PIC flag actually works.
12666
11423
#
12667
11424
if test -n "$lt_prog_compiler_pic_CXX"; then
12668
11425
 
12669
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12670
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
11426
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11427
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12671
11428
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12672
11429
  echo $ECHO_N "(cached) $ECHO_C" >&6
12673
11430
else
12674
11431
  lt_prog_compiler_pic_works_CXX=no
12675
11432
  ac_outfile=conftest.$ac_objext
12676
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11433
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12677
11434
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12678
11435
   # Insert the option either (1) after the last *FLAGS variable, or
12679
11436
   # (2) before a word containing "conftest.", or (3) at the end.
12681
11438
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12682
11439
   # The option is referenced via a variable to avoid confusing sed.
12683
11440
   lt_compile=`echo "$ac_compile" | $SED \
12684
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11441
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12685
11442
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12686
11443
   -e 's:$: $lt_compiler_flag:'`
12687
 
   (eval echo "\"\$as_me:12687: $lt_compile\"" >&5)
 
11444
   (eval echo "\"\$as_me:11444: $lt_compile\"" >&5)
12688
11445
   (eval "$lt_compile" 2>conftest.err)
12689
11446
   ac_status=$?
12690
11447
   cat conftest.err >&5
12691
 
   echo "$as_me:12691: \$? = $ac_status" >&5
 
11448
   echo "$as_me:11448: \$? = $ac_status" >&5
12692
11449
   if (exit $ac_status) && test -s "$ac_outfile"; then
12693
11450
     # The compiler can only warn and ignore the option if not recognized
12694
11451
     # So say no if there are warnings other than the usual output.
12695
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12696
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12697
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
11452
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
11453
     $SED '/^$/d' conftest.err >conftest.er2
 
11454
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12698
11455
       lt_prog_compiler_pic_works_CXX=yes
12699
11456
     fi
12700
11457
   fi
12701
11458
   $rm conftest*
12702
11459
 
12703
11460
fi
12704
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12705
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
11461
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11462
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12706
11463
 
12707
11464
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12708
11465
    case $lt_prog_compiler_pic_CXX in
12715
11472
fi
12716
11473
 
12717
11474
fi
12718
 
case $host_os in
 
11475
case "$host_os" in
12719
11476
  # For platforms which do not support PIC, -DPIC is meaningless:
12720
11477
  *djgpp*)
12721
11478
    lt_prog_compiler_pic_CXX=
12725
11482
    ;;
12726
11483
esac
12727
11484
 
12728
 
#
12729
 
# Check to make sure the static flag actually works.
12730
 
#
12731
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12732
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12733
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12734
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12735
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12736
 
else
12737
 
  lt_prog_compiler_static_works_CXX=no
12738
 
   save_LDFLAGS="$LDFLAGS"
12739
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12740
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12741
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12742
 
     # The linker can only warn and ignore the option if not recognized
12743
 
     # So say no if there are warnings
12744
 
     if test -s conftest.err; then
12745
 
       # Append any errors to the config.log.
12746
 
       cat conftest.err 1>&5
12747
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12748
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12749
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12750
 
         lt_prog_compiler_static_works_CXX=yes
12751
 
       fi
12752
 
     else
12753
 
       lt_prog_compiler_static_works_CXX=yes
12754
 
     fi
12755
 
   fi
12756
 
   $rm conftest*
12757
 
   LDFLAGS="$save_LDFLAGS"
12758
 
 
12759
 
fi
12760
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12761
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12762
 
 
12763
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12764
 
    :
12765
 
else
12766
 
    lt_prog_compiler_static_CXX=
12767
 
fi
12768
 
 
12769
 
 
12770
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12771
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
11485
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11486
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12772
11487
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12773
11488
  echo $ECHO_N "(cached) $ECHO_C" >&6
12774
11489
else
12777
11492
   mkdir conftest
12778
11493
   cd conftest
12779
11494
   mkdir out
12780
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11495
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12781
11496
 
12782
11497
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12783
11498
   # Insert the option either (1) after the last *FLAGS variable, or
12785
11500
   # Note that $ac_compile itself does not contain backslashes and begins
12786
11501
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12787
11502
   lt_compile=`echo "$ac_compile" | $SED \
12788
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11503
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12789
11504
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12790
11505
   -e 's:$: $lt_compiler_flag:'`
12791
 
   (eval echo "\"\$as_me:12791: $lt_compile\"" >&5)
 
11506
   (eval echo "\"\$as_me:11506: $lt_compile\"" >&5)
12792
11507
   (eval "$lt_compile" 2>out/conftest.err)
12793
11508
   ac_status=$?
12794
11509
   cat out/conftest.err >&5
12795
 
   echo "$as_me:12795: \$? = $ac_status" >&5
 
11510
   echo "$as_me:11510: \$? = $ac_status" >&5
12796
11511
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12797
11512
   then
12798
11513
     # The compiler can only warn and ignore the option if not recognized
12799
11514
     # So say no if there are warnings
12800
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12801
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12802
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11515
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
11516
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
11517
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12803
11518
       lt_cv_prog_compiler_c_o_CXX=yes
12804
11519
     fi
12805
11520
   fi
12806
 
   chmod u+w . 2>&5
 
11521
   chmod u+w .
12807
11522
   $rm conftest*
12808
11523
   # SGI C++ compiler will create directory out/ii_files/ for
12809
11524
   # template instantiation
12814
11529
   $rm conftest*
12815
11530
 
12816
11531
fi
12817
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12818
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
11532
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11533
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12819
11534
 
12820
11535
 
12821
11536
hard_links="nottested"
12822
11537
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12823
11538
  # do not overwrite the value of need_locks provided by the user
12824
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12825
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
11539
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11540
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12826
11541
  hard_links=yes
12827
11542
  $rm conftest*
12828
11543
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12829
11544
  touch conftest.a
12830
11545
  ln conftest.a conftest.b 2>&5 || hard_links=no
12831
11546
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12832
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12833
 
echo "${ECHO_T}$hard_links" >&6; }
 
11547
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11548
echo "${ECHO_T}$hard_links" >&6
12834
11549
  if test "$hard_links" = no; then
12835
11550
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12836
11551
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12840
11555
  need_locks=no
12841
11556
fi
12842
11557
 
12843
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12844
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11558
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11559
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12845
11560
 
12846
11561
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12847
11562
  case $host_os in
12858
11573
    export_symbols_cmds_CXX="$ltdll_cmds"
12859
11574
  ;;
12860
11575
  cygwin* | mingw*)
12861
 
    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'
12862
 
  ;;
12863
 
  linux* | k*bsd*-gnu)
12864
 
    link_all_deplibs_CXX=no
 
11576
    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'
12865
11577
  ;;
12866
11578
  *)
12867
11579
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12868
11580
  ;;
12869
11581
  esac
12870
11582
 
12871
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12872
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11583
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11584
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12873
11585
test "$ld_shlibs_CXX" = no && can_build_shared=no
12874
11586
 
 
11587
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11588
if test "$GCC" = yes; then
 
11589
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11590
fi
 
11591
 
12875
11592
#
12876
11593
# Do we need to explicitly link libc?
12877
11594
#
12889
11606
      # Test whether the compiler implicitly links with -lc since on some
12890
11607
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12891
11608
      # to ld, don't add -lc before -lgcc.
12892
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12893
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
11609
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11610
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12894
11611
      $rm conftest*
12895
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11612
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12896
11613
 
12897
11614
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898
11615
  (eval $ac_compile) 2>&5
12904
11621
        libobjs=conftest.$ac_objext
12905
11622
        deplibs=
12906
11623
        wl=$lt_prog_compiler_wl_CXX
12907
 
        pic_flag=$lt_prog_compiler_pic_CXX
12908
11624
        compiler_flags=-v
12909
11625
        linker_flags=-v
12910
11626
        verstring=
12927
11643
        cat conftest.err 1>&5
12928
11644
      fi
12929
11645
      $rm conftest*
12930
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12931
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
11646
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11647
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12932
11648
      ;;
12933
11649
    esac
12934
11650
  fi
12935
11651
  ;;
12936
11652
esac
12937
11653
 
12938
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12939
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
11654
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11655
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12940
11656
library_names_spec=
12941
11657
libname_spec='lib$name'
12942
11658
soname_spec=
12950
11666
version_type=none
12951
11667
dynamic_linker="$host_os ld.so"
12952
11668
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12953
 
 
 
11669
if test "$GCC" = yes; then
 
11670
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11671
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11672
    # if the path contains ";" then we assume it to be the separator
 
11673
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11674
    # assumed that no part of a normal pathname contains ";" but that should
 
11675
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11676
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11677
  else
 
11678
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11679
  fi
 
11680
else
 
11681
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11682
fi
12954
11683
need_lib_prefix=unknown
12955
11684
hardcode_into_libs=no
12956
11685
 
13052
11781
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13053
11782
      dldir=$destdir/`dirname \$dlpath`~
13054
11783
      test -d \$dldir || mkdir -p \$dldir~
13055
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13056
 
      chmod a+x \$dldir/$dlname'
 
11784
      $install_prog $dir/$dlname \$dldir/$dlname'
13057
11785
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13058
11786
      dlpath=$dir/\$dldll~
13059
11787
       $rm \$dlpath'
13106
11834
  soname_spec='${libname}${release}${major}$shared_ext'
13107
11835
  shlibpath_overrides_runpath=yes
13108
11836
  shlibpath_var=DYLD_LIBRARY_PATH
13109
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13110
 
 
 
11837
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11838
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11839
  if test "$GCC" = yes; then
 
11840
    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"`
 
11841
  else
 
11842
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11843
  fi
13111
11844
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13112
11845
  ;;
13113
11846
 
13124
11857
  dynamic_linker=no
13125
11858
  ;;
13126
11859
 
 
11860
kfreebsd*-gnu)
 
11861
  version_type=linux
 
11862
  need_lib_prefix=no
 
11863
  need_version=no
 
11864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11865
  soname_spec='${libname}${release}${shared_ext}$major'
 
11866
  shlibpath_var=LD_LIBRARY_PATH
 
11867
  shlibpath_overrides_runpath=no
 
11868
  hardcode_into_libs=yes
 
11869
  dynamic_linker='GNU ld.so'
 
11870
  ;;
 
11871
 
13127
11872
freebsd* | dragonfly*)
13128
11873
  # DragonFly does not have aout.  When/if they implement a new
13129
11874
  # versioning mechanism, adjust this.
13130
 
  if test -x /usr/bin/objformat; then
13131
 
    objformat=`/usr/bin/objformat`
13132
 
  else
13133
 
    case $host_os in
13134
 
    freebsd[123]*) objformat=aout ;;
13135
 
    *) objformat=elf ;;
13136
 
    esac
13137
 
  fi
 
11875
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13138
11876
  version_type=freebsd-$objformat
13139
11877
  case $version_type in
13140
11878
    freebsd-elf*)
13156
11894
    shlibpath_overrides_runpath=yes
13157
11895
    hardcode_into_libs=yes
13158
11896
    ;;
13159
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13160
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11897
  *) # from 3.2 on
13161
11898
    shlibpath_overrides_runpath=no
13162
11899
    hardcode_into_libs=yes
13163
11900
    ;;
13164
 
  *) # from 4.6 on, and DragonFly
13165
 
    shlibpath_overrides_runpath=yes
13166
 
    hardcode_into_libs=yes
13167
 
    ;;
13168
11901
  esac
13169
11902
  ;;
13170
11903
 
13184
11917
  version_type=sunos
13185
11918
  need_lib_prefix=no
13186
11919
  need_version=no
13187
 
  case $host_cpu in
 
11920
  case "$host_cpu" in
13188
11921
  ia64*)
13189
11922
    shrext_cmds='.so'
13190
11923
    hardcode_into_libs=yes
13224
11957
  postinstall_cmds='chmod 555 $lib'
13225
11958
  ;;
13226
11959
 
13227
 
interix[3-9]*)
13228
 
  version_type=linux
13229
 
  need_lib_prefix=no
13230
 
  need_version=no
13231
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13232
 
  soname_spec='${libname}${release}${shared_ext}$major'
13233
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13234
 
  shlibpath_var=LD_LIBRARY_PATH
13235
 
  shlibpath_overrides_runpath=no
13236
 
  hardcode_into_libs=yes
13237
 
  ;;
13238
 
 
13239
11960
irix5* | irix6* | nonstopux*)
13240
11961
  case $host_os in
13241
11962
    nonstopux*) version_type=nonstopux ;;
13279
12000
  ;;
13280
12001
 
13281
12002
# This must be Linux ELF.
13282
 
linux* | k*bsd*-gnu)
 
12003
linux*)
13283
12004
  version_type=linux
13284
12005
  need_lib_prefix=no
13285
12006
  need_version=no
13295
12016
 
13296
12017
  # Append ld.so.conf contents to the search path
13297
12018
  if test -f /etc/ld.so.conf; then
13298
 
    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' ' '`
 
12019
    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' ' '`
13299
12020
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13300
12021
  fi
13301
12022
 
13308
12029
  dynamic_linker='GNU/Linux ld.so'
13309
12030
  ;;
13310
12031
 
13311
 
netbsdelf*-gnu)
 
12032
knetbsd*-gnu)
13312
12033
  version_type=linux
13313
12034
  need_lib_prefix=no
13314
12035
  need_version=no
13317
12038
  shlibpath_var=LD_LIBRARY_PATH
13318
12039
  shlibpath_overrides_runpath=no
13319
12040
  hardcode_into_libs=yes
13320
 
  dynamic_linker='NetBSD ld.elf_so'
 
12041
  dynamic_linker='GNU ld.so'
13321
12042
  ;;
13322
12043
 
13323
12044
netbsd*)
13357
12078
 
13358
12079
openbsd*)
13359
12080
  version_type=sunos
13360
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13361
12081
  need_lib_prefix=no
13362
12082
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13363
12083
  case $host_os in
13401
12121
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13402
12122
  ;;
13403
12123
 
13404
 
rdos*)
13405
 
  dynamic_linker=no
 
12124
sco3.2v5*)
 
12125
  version_type=osf
 
12126
  soname_spec='${libname}${release}${shared_ext}$major'
 
12127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12128
  shlibpath_var=LD_LIBRARY_PATH
13406
12129
  ;;
13407
12130
 
13408
12131
solaris*)
13430
12153
  need_version=yes
13431
12154
  ;;
13432
12155
 
13433
 
sysv4 | sysv4.3*)
 
12156
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13434
12157
  version_type=linux
13435
12158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436
12159
  soname_spec='${libname}${release}${shared_ext}$major'
13463
12186
  fi
13464
12187
  ;;
13465
12188
 
13466
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13467
 
  version_type=freebsd-elf
13468
 
  need_lib_prefix=no
13469
 
  need_version=no
13470
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13471
 
  soname_spec='${libname}${release}${shared_ext}$major'
13472
 
  shlibpath_var=LD_LIBRARY_PATH
13473
 
  hardcode_into_libs=yes
13474
 
  if test "$with_gnu_ld" = yes; then
13475
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13476
 
    shlibpath_overrides_runpath=no
13477
 
  else
13478
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13479
 
    shlibpath_overrides_runpath=yes
13480
 
    case $host_os in
13481
 
      sco3.2v5*)
13482
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13483
 
        ;;
13484
 
    esac
13485
 
  fi
13486
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13487
 
  ;;
13488
 
 
13489
12189
uts4*)
13490
12190
  version_type=linux
13491
12191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497
12197
  dynamic_linker=no
13498
12198
  ;;
13499
12199
esac
13500
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13501
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
12200
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12201
echo "${ECHO_T}$dynamic_linker" >&6
13502
12202
test "$dynamic_linker" = no && can_build_shared=no
13503
12203
 
13504
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13505
 
if test "$GCC" = yes; then
13506
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13507
 
fi
13508
 
 
13509
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13510
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
12204
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12205
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13511
12206
hardcode_action_CXX=
13512
12207
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13513
12208
   test -n "$runpath_var_CXX" || \
13531
12226
  # directories.
13532
12227
  hardcode_action_CXX=unsupported
13533
12228
fi
13534
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13535
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
12229
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12230
echo "${ECHO_T}$hardcode_action_CXX" >&6
13536
12231
 
13537
12232
if test "$hardcode_action_CXX" = relink; then
13538
12233
  # Fast installation is not supported
13543
12238
  enable_fast_install=needless
13544
12239
fi
13545
12240
 
 
12241
striplib=
 
12242
old_striplib=
 
12243
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12244
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12245
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12246
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12247
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12248
  echo "$as_me:$LINENO: result: yes" >&5
 
12249
echo "${ECHO_T}yes" >&6
 
12250
else
 
12251
# FIXME - insert some real tests, host_os isn't really good enough
 
12252
  case $host_os in
 
12253
   darwin*)
 
12254
       if test -n "$STRIP" ; then
 
12255
         striplib="$STRIP -x"
 
12256
         echo "$as_me:$LINENO: result: yes" >&5
 
12257
echo "${ECHO_T}yes" >&6
 
12258
       else
 
12259
  echo "$as_me:$LINENO: result: no" >&5
 
12260
echo "${ECHO_T}no" >&6
 
12261
fi
 
12262
       ;;
 
12263
   *)
 
12264
  echo "$as_me:$LINENO: result: no" >&5
 
12265
echo "${ECHO_T}no" >&6
 
12266
    ;;
 
12267
  esac
 
12268
fi
 
12269
 
 
12270
if test "x$enable_dlopen" != xyes; then
 
12271
  enable_dlopen=unknown
 
12272
  enable_dlopen_self=unknown
 
12273
  enable_dlopen_self_static=unknown
 
12274
else
 
12275
  lt_cv_dlopen=no
 
12276
  lt_cv_dlopen_libs=
 
12277
 
 
12278
  case $host_os in
 
12279
  beos*)
 
12280
    lt_cv_dlopen="load_add_on"
 
12281
    lt_cv_dlopen_libs=
 
12282
    lt_cv_dlopen_self=yes
 
12283
    ;;
 
12284
 
 
12285
  mingw* | pw32*)
 
12286
    lt_cv_dlopen="LoadLibrary"
 
12287
    lt_cv_dlopen_libs=
 
12288
   ;;
 
12289
 
 
12290
  cygwin*)
 
12291
    lt_cv_dlopen="dlopen"
 
12292
    lt_cv_dlopen_libs=
 
12293
   ;;
 
12294
 
 
12295
  darwin*)
 
12296
  # if libdl is installed we need to link against it
 
12297
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12298
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12299
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12301
else
 
12302
  ac_check_lib_save_LIBS=$LIBS
 
12303
LIBS="-ldl  $LIBS"
 
12304
cat >conftest.$ac_ext <<_ACEOF
 
12305
/* confdefs.h.  */
 
12306
_ACEOF
 
12307
cat confdefs.h >>conftest.$ac_ext
 
12308
cat >>conftest.$ac_ext <<_ACEOF
 
12309
/* end confdefs.h.  */
 
12310
 
 
12311
/* Override any gcc2 internal prototype to avoid an error.  */
 
12312
#ifdef __cplusplus
 
12313
extern "C"
 
12314
#endif
 
12315
/* We use char because int might match the return type of a gcc2
 
12316
   builtin and then its argument prototype would still apply.  */
 
12317
char dlopen ();
 
12318
int
 
12319
main ()
 
12320
{
 
12321
dlopen ();
 
12322
  ;
 
12323
  return 0;
 
12324
}
 
12325
_ACEOF
 
12326
rm -f conftest.$ac_objext conftest$ac_exeext
 
12327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12328
  (eval $ac_link) 2>conftest.er1
 
12329
  ac_status=$?
 
12330
  grep -v '^ *+' conftest.er1 >conftest.err
 
12331
  rm -f conftest.er1
 
12332
  cat conftest.err >&5
 
12333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12334
  (exit $ac_status); } &&
 
12335
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12336
                         || test ! -s conftest.err'
 
12337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12338
  (eval $ac_try) 2>&5
 
12339
  ac_status=$?
 
12340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12341
  (exit $ac_status); }; } &&
 
12342
         { ac_try='test -s conftest$ac_exeext'
 
12343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12344
  (eval $ac_try) 2>&5
 
12345
  ac_status=$?
 
12346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12347
  (exit $ac_status); }; }; then
 
12348
  ac_cv_lib_dl_dlopen=yes
 
12349
else
 
12350
  echo "$as_me: failed program was:" >&5
 
12351
sed 's/^/| /' conftest.$ac_ext >&5
 
12352
 
 
12353
ac_cv_lib_dl_dlopen=no
 
12354
fi
 
12355
rm -f conftest.err conftest.$ac_objext \
 
12356
      conftest$ac_exeext conftest.$ac_ext
 
12357
LIBS=$ac_check_lib_save_LIBS
 
12358
fi
 
12359
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12360
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12361
if test $ac_cv_lib_dl_dlopen = yes; then
 
12362
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12363
else
 
12364
 
 
12365
    lt_cv_dlopen="dyld"
 
12366
    lt_cv_dlopen_libs=
 
12367
    lt_cv_dlopen_self=yes
 
12368
 
 
12369
fi
 
12370
 
 
12371
   ;;
 
12372
 
 
12373
  *)
 
12374
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12375
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12376
if test "${ac_cv_func_shl_load+set}" = set; then
 
12377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12378
else
 
12379
  cat >conftest.$ac_ext <<_ACEOF
 
12380
/* confdefs.h.  */
 
12381
_ACEOF
 
12382
cat confdefs.h >>conftest.$ac_ext
 
12383
cat >>conftest.$ac_ext <<_ACEOF
 
12384
/* end confdefs.h.  */
 
12385
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12386
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12387
#define shl_load innocuous_shl_load
 
12388
 
 
12389
/* System header to define __stub macros and hopefully few prototypes,
 
12390
    which can conflict with char shl_load (); below.
 
12391
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12392
    <limits.h> exists even on freestanding compilers.  */
 
12393
 
 
12394
#ifdef __STDC__
 
12395
# include <limits.h>
 
12396
#else
 
12397
# include <assert.h>
 
12398
#endif
 
12399
 
 
12400
#undef shl_load
 
12401
 
 
12402
/* Override any gcc2 internal prototype to avoid an error.  */
 
12403
#ifdef __cplusplus
 
12404
extern "C"
 
12405
{
 
12406
#endif
 
12407
/* We use char because int might match the return type of a gcc2
 
12408
   builtin and then its argument prototype would still apply.  */
 
12409
char shl_load ();
 
12410
/* The GNU C library defines this for functions which it implements
 
12411
    to always fail with ENOSYS.  Some functions are actually named
 
12412
    something starting with __ and the normal name is an alias.  */
 
12413
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12414
choke me
 
12415
#else
 
12416
char (*f) () = shl_load;
 
12417
#endif
 
12418
#ifdef __cplusplus
 
12419
}
 
12420
#endif
 
12421
 
 
12422
int
 
12423
main ()
 
12424
{
 
12425
return f != shl_load;
 
12426
  ;
 
12427
  return 0;
 
12428
}
 
12429
_ACEOF
 
12430
rm -f conftest.$ac_objext conftest$ac_exeext
 
12431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12432
  (eval $ac_link) 2>conftest.er1
 
12433
  ac_status=$?
 
12434
  grep -v '^ *+' conftest.er1 >conftest.err
 
12435
  rm -f conftest.er1
 
12436
  cat conftest.err >&5
 
12437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12438
  (exit $ac_status); } &&
 
12439
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12440
                         || test ! -s conftest.err'
 
12441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12442
  (eval $ac_try) 2>&5
 
12443
  ac_status=$?
 
12444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12445
  (exit $ac_status); }; } &&
 
12446
         { ac_try='test -s conftest$ac_exeext'
 
12447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12448
  (eval $ac_try) 2>&5
 
12449
  ac_status=$?
 
12450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12451
  (exit $ac_status); }; }; then
 
12452
  ac_cv_func_shl_load=yes
 
12453
else
 
12454
  echo "$as_me: failed program was:" >&5
 
12455
sed 's/^/| /' conftest.$ac_ext >&5
 
12456
 
 
12457
ac_cv_func_shl_load=no
 
12458
fi
 
12459
rm -f conftest.err conftest.$ac_objext \
 
12460
      conftest$ac_exeext conftest.$ac_ext
 
12461
fi
 
12462
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12463
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12464
if test $ac_cv_func_shl_load = yes; then
 
12465
  lt_cv_dlopen="shl_load"
 
12466
else
 
12467
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12468
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12469
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12471
else
 
12472
  ac_check_lib_save_LIBS=$LIBS
 
12473
LIBS="-ldld  $LIBS"
 
12474
cat >conftest.$ac_ext <<_ACEOF
 
12475
/* confdefs.h.  */
 
12476
_ACEOF
 
12477
cat confdefs.h >>conftest.$ac_ext
 
12478
cat >>conftest.$ac_ext <<_ACEOF
 
12479
/* end confdefs.h.  */
 
12480
 
 
12481
/* Override any gcc2 internal prototype to avoid an error.  */
 
12482
#ifdef __cplusplus
 
12483
extern "C"
 
12484
#endif
 
12485
/* We use char because int might match the return type of a gcc2
 
12486
   builtin and then its argument prototype would still apply.  */
 
12487
char shl_load ();
 
12488
int
 
12489
main ()
 
12490
{
 
12491
shl_load ();
 
12492
  ;
 
12493
  return 0;
 
12494
}
 
12495
_ACEOF
 
12496
rm -f conftest.$ac_objext conftest$ac_exeext
 
12497
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12498
  (eval $ac_link) 2>conftest.er1
 
12499
  ac_status=$?
 
12500
  grep -v '^ *+' conftest.er1 >conftest.err
 
12501
  rm -f conftest.er1
 
12502
  cat conftest.err >&5
 
12503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12504
  (exit $ac_status); } &&
 
12505
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12506
                         || test ! -s conftest.err'
 
12507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12508
  (eval $ac_try) 2>&5
 
12509
  ac_status=$?
 
12510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12511
  (exit $ac_status); }; } &&
 
12512
         { ac_try='test -s conftest$ac_exeext'
 
12513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12514
  (eval $ac_try) 2>&5
 
12515
  ac_status=$?
 
12516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12517
  (exit $ac_status); }; }; then
 
12518
  ac_cv_lib_dld_shl_load=yes
 
12519
else
 
12520
  echo "$as_me: failed program was:" >&5
 
12521
sed 's/^/| /' conftest.$ac_ext >&5
 
12522
 
 
12523
ac_cv_lib_dld_shl_load=no
 
12524
fi
 
12525
rm -f conftest.err conftest.$ac_objext \
 
12526
      conftest$ac_exeext conftest.$ac_ext
 
12527
LIBS=$ac_check_lib_save_LIBS
 
12528
fi
 
12529
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12530
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12531
if test $ac_cv_lib_dld_shl_load = yes; then
 
12532
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12533
else
 
12534
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12535
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12536
if test "${ac_cv_func_dlopen+set}" = set; then
 
12537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12538
else
 
12539
  cat >conftest.$ac_ext <<_ACEOF
 
12540
/* confdefs.h.  */
 
12541
_ACEOF
 
12542
cat confdefs.h >>conftest.$ac_ext
 
12543
cat >>conftest.$ac_ext <<_ACEOF
 
12544
/* end confdefs.h.  */
 
12545
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12546
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12547
#define dlopen innocuous_dlopen
 
12548
 
 
12549
/* System header to define __stub macros and hopefully few prototypes,
 
12550
    which can conflict with char dlopen (); below.
 
12551
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12552
    <limits.h> exists even on freestanding compilers.  */
 
12553
 
 
12554
#ifdef __STDC__
 
12555
# include <limits.h>
 
12556
#else
 
12557
# include <assert.h>
 
12558
#endif
 
12559
 
 
12560
#undef dlopen
 
12561
 
 
12562
/* Override any gcc2 internal prototype to avoid an error.  */
 
12563
#ifdef __cplusplus
 
12564
extern "C"
 
12565
{
 
12566
#endif
 
12567
/* We use char because int might match the return type of a gcc2
 
12568
   builtin and then its argument prototype would still apply.  */
 
12569
char dlopen ();
 
12570
/* The GNU C library defines this for functions which it implements
 
12571
    to always fail with ENOSYS.  Some functions are actually named
 
12572
    something starting with __ and the normal name is an alias.  */
 
12573
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12574
choke me
 
12575
#else
 
12576
char (*f) () = dlopen;
 
12577
#endif
 
12578
#ifdef __cplusplus
 
12579
}
 
12580
#endif
 
12581
 
 
12582
int
 
12583
main ()
 
12584
{
 
12585
return f != dlopen;
 
12586
  ;
 
12587
  return 0;
 
12588
}
 
12589
_ACEOF
 
12590
rm -f conftest.$ac_objext conftest$ac_exeext
 
12591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12592
  (eval $ac_link) 2>conftest.er1
 
12593
  ac_status=$?
 
12594
  grep -v '^ *+' conftest.er1 >conftest.err
 
12595
  rm -f conftest.er1
 
12596
  cat conftest.err >&5
 
12597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12598
  (exit $ac_status); } &&
 
12599
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12600
                         || test ! -s conftest.err'
 
12601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12602
  (eval $ac_try) 2>&5
 
12603
  ac_status=$?
 
12604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12605
  (exit $ac_status); }; } &&
 
12606
         { ac_try='test -s conftest$ac_exeext'
 
12607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12608
  (eval $ac_try) 2>&5
 
12609
  ac_status=$?
 
12610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12611
  (exit $ac_status); }; }; then
 
12612
  ac_cv_func_dlopen=yes
 
12613
else
 
12614
  echo "$as_me: failed program was:" >&5
 
12615
sed 's/^/| /' conftest.$ac_ext >&5
 
12616
 
 
12617
ac_cv_func_dlopen=no
 
12618
fi
 
12619
rm -f conftest.err conftest.$ac_objext \
 
12620
      conftest$ac_exeext conftest.$ac_ext
 
12621
fi
 
12622
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12623
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12624
if test $ac_cv_func_dlopen = yes; then
 
12625
  lt_cv_dlopen="dlopen"
 
12626
else
 
12627
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12628
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12629
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12631
else
 
12632
  ac_check_lib_save_LIBS=$LIBS
 
12633
LIBS="-ldl  $LIBS"
 
12634
cat >conftest.$ac_ext <<_ACEOF
 
12635
/* confdefs.h.  */
 
12636
_ACEOF
 
12637
cat confdefs.h >>conftest.$ac_ext
 
12638
cat >>conftest.$ac_ext <<_ACEOF
 
12639
/* end confdefs.h.  */
 
12640
 
 
12641
/* Override any gcc2 internal prototype to avoid an error.  */
 
12642
#ifdef __cplusplus
 
12643
extern "C"
 
12644
#endif
 
12645
/* We use char because int might match the return type of a gcc2
 
12646
   builtin and then its argument prototype would still apply.  */
 
12647
char dlopen ();
 
12648
int
 
12649
main ()
 
12650
{
 
12651
dlopen ();
 
12652
  ;
 
12653
  return 0;
 
12654
}
 
12655
_ACEOF
 
12656
rm -f conftest.$ac_objext conftest$ac_exeext
 
12657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12658
  (eval $ac_link) 2>conftest.er1
 
12659
  ac_status=$?
 
12660
  grep -v '^ *+' conftest.er1 >conftest.err
 
12661
  rm -f conftest.er1
 
12662
  cat conftest.err >&5
 
12663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12664
  (exit $ac_status); } &&
 
12665
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12666
                         || test ! -s conftest.err'
 
12667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12668
  (eval $ac_try) 2>&5
 
12669
  ac_status=$?
 
12670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12671
  (exit $ac_status); }; } &&
 
12672
         { ac_try='test -s conftest$ac_exeext'
 
12673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12674
  (eval $ac_try) 2>&5
 
12675
  ac_status=$?
 
12676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12677
  (exit $ac_status); }; }; then
 
12678
  ac_cv_lib_dl_dlopen=yes
 
12679
else
 
12680
  echo "$as_me: failed program was:" >&5
 
12681
sed 's/^/| /' conftest.$ac_ext >&5
 
12682
 
 
12683
ac_cv_lib_dl_dlopen=no
 
12684
fi
 
12685
rm -f conftest.err conftest.$ac_objext \
 
12686
      conftest$ac_exeext conftest.$ac_ext
 
12687
LIBS=$ac_check_lib_save_LIBS
 
12688
fi
 
12689
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12690
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12691
if test $ac_cv_lib_dl_dlopen = yes; then
 
12692
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12693
else
 
12694
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12695
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12696
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12698
else
 
12699
  ac_check_lib_save_LIBS=$LIBS
 
12700
LIBS="-lsvld  $LIBS"
 
12701
cat >conftest.$ac_ext <<_ACEOF
 
12702
/* confdefs.h.  */
 
12703
_ACEOF
 
12704
cat confdefs.h >>conftest.$ac_ext
 
12705
cat >>conftest.$ac_ext <<_ACEOF
 
12706
/* end confdefs.h.  */
 
12707
 
 
12708
/* Override any gcc2 internal prototype to avoid an error.  */
 
12709
#ifdef __cplusplus
 
12710
extern "C"
 
12711
#endif
 
12712
/* We use char because int might match the return type of a gcc2
 
12713
   builtin and then its argument prototype would still apply.  */
 
12714
char dlopen ();
 
12715
int
 
12716
main ()
 
12717
{
 
12718
dlopen ();
 
12719
  ;
 
12720
  return 0;
 
12721
}
 
12722
_ACEOF
 
12723
rm -f conftest.$ac_objext conftest$ac_exeext
 
12724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12725
  (eval $ac_link) 2>conftest.er1
 
12726
  ac_status=$?
 
12727
  grep -v '^ *+' conftest.er1 >conftest.err
 
12728
  rm -f conftest.er1
 
12729
  cat conftest.err >&5
 
12730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12731
  (exit $ac_status); } &&
 
12732
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12733
                         || test ! -s conftest.err'
 
12734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12735
  (eval $ac_try) 2>&5
 
12736
  ac_status=$?
 
12737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12738
  (exit $ac_status); }; } &&
 
12739
         { ac_try='test -s conftest$ac_exeext'
 
12740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12741
  (eval $ac_try) 2>&5
 
12742
  ac_status=$?
 
12743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12744
  (exit $ac_status); }; }; then
 
12745
  ac_cv_lib_svld_dlopen=yes
 
12746
else
 
12747
  echo "$as_me: failed program was:" >&5
 
12748
sed 's/^/| /' conftest.$ac_ext >&5
 
12749
 
 
12750
ac_cv_lib_svld_dlopen=no
 
12751
fi
 
12752
rm -f conftest.err conftest.$ac_objext \
 
12753
      conftest$ac_exeext conftest.$ac_ext
 
12754
LIBS=$ac_check_lib_save_LIBS
 
12755
fi
 
12756
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12757
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12758
if test $ac_cv_lib_svld_dlopen = yes; then
 
12759
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12760
else
 
12761
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12762
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12763
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12765
else
 
12766
  ac_check_lib_save_LIBS=$LIBS
 
12767
LIBS="-ldld  $LIBS"
 
12768
cat >conftest.$ac_ext <<_ACEOF
 
12769
/* confdefs.h.  */
 
12770
_ACEOF
 
12771
cat confdefs.h >>conftest.$ac_ext
 
12772
cat >>conftest.$ac_ext <<_ACEOF
 
12773
/* end confdefs.h.  */
 
12774
 
 
12775
/* Override any gcc2 internal prototype to avoid an error.  */
 
12776
#ifdef __cplusplus
 
12777
extern "C"
 
12778
#endif
 
12779
/* We use char because int might match the return type of a gcc2
 
12780
   builtin and then its argument prototype would still apply.  */
 
12781
char dld_link ();
 
12782
int
 
12783
main ()
 
12784
{
 
12785
dld_link ();
 
12786
  ;
 
12787
  return 0;
 
12788
}
 
12789
_ACEOF
 
12790
rm -f conftest.$ac_objext conftest$ac_exeext
 
12791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12792
  (eval $ac_link) 2>conftest.er1
 
12793
  ac_status=$?
 
12794
  grep -v '^ *+' conftest.er1 >conftest.err
 
12795
  rm -f conftest.er1
 
12796
  cat conftest.err >&5
 
12797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12798
  (exit $ac_status); } &&
 
12799
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12800
                         || test ! -s conftest.err'
 
12801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12802
  (eval $ac_try) 2>&5
 
12803
  ac_status=$?
 
12804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12805
  (exit $ac_status); }; } &&
 
12806
         { ac_try='test -s conftest$ac_exeext'
 
12807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12808
  (eval $ac_try) 2>&5
 
12809
  ac_status=$?
 
12810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12811
  (exit $ac_status); }; }; then
 
12812
  ac_cv_lib_dld_dld_link=yes
 
12813
else
 
12814
  echo "$as_me: failed program was:" >&5
 
12815
sed 's/^/| /' conftest.$ac_ext >&5
 
12816
 
 
12817
ac_cv_lib_dld_dld_link=no
 
12818
fi
 
12819
rm -f conftest.err conftest.$ac_objext \
 
12820
      conftest$ac_exeext conftest.$ac_ext
 
12821
LIBS=$ac_check_lib_save_LIBS
 
12822
fi
 
12823
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12824
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12825
if test $ac_cv_lib_dld_dld_link = yes; then
 
12826
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12827
fi
 
12828
 
 
12829
 
 
12830
fi
 
12831
 
 
12832
 
 
12833
fi
 
12834
 
 
12835
 
 
12836
fi
 
12837
 
 
12838
 
 
12839
fi
 
12840
 
 
12841
 
 
12842
fi
 
12843
 
 
12844
    ;;
 
12845
  esac
 
12846
 
 
12847
  if test "x$lt_cv_dlopen" != xno; then
 
12848
    enable_dlopen=yes
 
12849
  else
 
12850
    enable_dlopen=no
 
12851
  fi
 
12852
 
 
12853
  case $lt_cv_dlopen in
 
12854
  dlopen)
 
12855
    save_CPPFLAGS="$CPPFLAGS"
 
12856
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12857
 
 
12858
    save_LDFLAGS="$LDFLAGS"
 
12859
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12860
 
 
12861
    save_LIBS="$LIBS"
 
12862
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12863
 
 
12864
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12865
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12866
if test "${lt_cv_dlopen_self+set}" = set; then
 
12867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12868
else
 
12869
          if test "$cross_compiling" = yes; then :
 
12870
  lt_cv_dlopen_self=cross
 
12871
else
 
12872
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12873
  lt_status=$lt_dlunknown
 
12874
  cat > conftest.$ac_ext <<EOF
 
12875
#line 12875 "configure"
 
12876
#include "confdefs.h"
 
12877
 
 
12878
#if HAVE_DLFCN_H
 
12879
#include <dlfcn.h>
 
12880
#endif
 
12881
 
 
12882
#include <stdio.h>
 
12883
 
 
12884
#ifdef RTLD_GLOBAL
 
12885
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12886
#else
 
12887
#  ifdef DL_GLOBAL
 
12888
#    define LT_DLGLOBAL         DL_GLOBAL
 
12889
#  else
 
12890
#    define LT_DLGLOBAL         0
 
12891
#  endif
 
12892
#endif
 
12893
 
 
12894
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12895
   find out it does not work in some platform. */
 
12896
#ifndef LT_DLLAZY_OR_NOW
 
12897
#  ifdef RTLD_LAZY
 
12898
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12899
#  else
 
12900
#    ifdef DL_LAZY
 
12901
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12902
#    else
 
12903
#      ifdef RTLD_NOW
 
12904
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12905
#      else
 
12906
#        ifdef DL_NOW
 
12907
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12908
#        else
 
12909
#          define LT_DLLAZY_OR_NOW      0
 
12910
#        endif
 
12911
#      endif
 
12912
#    endif
 
12913
#  endif
 
12914
#endif
 
12915
 
 
12916
#ifdef __cplusplus
 
12917
extern "C" void exit (int);
 
12918
#endif
 
12919
 
 
12920
void fnord() { int i=42;}
 
12921
int main ()
 
12922
{
 
12923
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12924
  int status = $lt_dlunknown;
 
12925
 
 
12926
  if (self)
 
12927
    {
 
12928
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12929
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12930
      /* dlclose (self); */
 
12931
    }
 
12932
 
 
12933
    exit (status);
 
12934
}
 
12935
EOF
 
12936
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12937
  (eval $ac_link) 2>&5
 
12938
  ac_status=$?
 
12939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12940
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12941
    (./conftest; exit; ) 2>/dev/null
 
12942
    lt_status=$?
 
12943
    case x$lt_status in
 
12944
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12945
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12946
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12947
    esac
 
12948
  else :
 
12949
    # compilation failed
 
12950
    lt_cv_dlopen_self=no
 
12951
  fi
 
12952
fi
 
12953
rm -fr conftest*
 
12954
 
 
12955
 
 
12956
fi
 
12957
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12958
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12959
 
 
12960
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12961
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12962
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12963
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12964
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12966
else
 
12967
          if test "$cross_compiling" = yes; then :
 
12968
  lt_cv_dlopen_self_static=cross
 
12969
else
 
12970
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12971
  lt_status=$lt_dlunknown
 
12972
  cat > conftest.$ac_ext <<EOF
 
12973
#line 12973 "configure"
 
12974
#include "confdefs.h"
 
12975
 
 
12976
#if HAVE_DLFCN_H
 
12977
#include <dlfcn.h>
 
12978
#endif
 
12979
 
 
12980
#include <stdio.h>
 
12981
 
 
12982
#ifdef RTLD_GLOBAL
 
12983
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12984
#else
 
12985
#  ifdef DL_GLOBAL
 
12986
#    define LT_DLGLOBAL         DL_GLOBAL
 
12987
#  else
 
12988
#    define LT_DLGLOBAL         0
 
12989
#  endif
 
12990
#endif
 
12991
 
 
12992
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12993
   find out it does not work in some platform. */
 
12994
#ifndef LT_DLLAZY_OR_NOW
 
12995
#  ifdef RTLD_LAZY
 
12996
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12997
#  else
 
12998
#    ifdef DL_LAZY
 
12999
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13000
#    else
 
13001
#      ifdef RTLD_NOW
 
13002
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13003
#      else
 
13004
#        ifdef DL_NOW
 
13005
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13006
#        else
 
13007
#          define LT_DLLAZY_OR_NOW      0
 
13008
#        endif
 
13009
#      endif
 
13010
#    endif
 
13011
#  endif
 
13012
#endif
 
13013
 
 
13014
#ifdef __cplusplus
 
13015
extern "C" void exit (int);
 
13016
#endif
 
13017
 
 
13018
void fnord() { int i=42;}
 
13019
int main ()
 
13020
{
 
13021
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13022
  int status = $lt_dlunknown;
 
13023
 
 
13024
  if (self)
 
13025
    {
 
13026
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13027
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13028
      /* dlclose (self); */
 
13029
    }
 
13030
 
 
13031
    exit (status);
 
13032
}
 
13033
EOF
 
13034
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13035
  (eval $ac_link) 2>&5
 
13036
  ac_status=$?
 
13037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13038
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13039
    (./conftest; exit; ) 2>/dev/null
 
13040
    lt_status=$?
 
13041
    case x$lt_status in
 
13042
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13043
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13044
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13045
    esac
 
13046
  else :
 
13047
    # compilation failed
 
13048
    lt_cv_dlopen_self_static=no
 
13049
  fi
 
13050
fi
 
13051
rm -fr conftest*
 
13052
 
 
13053
 
 
13054
fi
 
13055
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13056
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13057
    fi
 
13058
 
 
13059
    CPPFLAGS="$save_CPPFLAGS"
 
13060
    LDFLAGS="$save_LDFLAGS"
 
13061
    LIBS="$save_LIBS"
 
13062
    ;;
 
13063
  esac
 
13064
 
 
13065
  case $lt_cv_dlopen_self in
 
13066
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13067
  *) enable_dlopen_self=unknown ;;
 
13068
  esac
 
13069
 
 
13070
  case $lt_cv_dlopen_self_static in
 
13071
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13072
  *) enable_dlopen_self_static=unknown ;;
 
13073
  esac
 
13074
fi
 
13075
 
13546
13076
 
13547
13077
# The else clause should only fire when bootstrapping the
13548
13078
# libtool distribution, otherwise you forgot to ship ltmain.sh
13557
13087
  # Now quote all the things that may contain metacharacters while being
13558
13088
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13559
13089
  # variables and quote the copies for generation of the libtool script.
13560
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13090
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13561
13091
    SED SHELL STRIP \
13562
13092
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13563
13093
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13599
13129
    module_cmds_CXX \
13600
13130
    module_expsym_cmds_CXX \
13601
13131
    lt_cv_prog_compiler_c_o_CXX \
13602
 
    fix_srcfile_path_CXX \
13603
13132
    exclude_expsyms_CXX \
13604
13133
    include_expsyms_CXX; do
13605
13134
 
13676
13205
# A C compiler.
13677
13206
LTCC=$lt_LTCC
13678
13207
 
13679
 
# LTCC compiler flags.
13680
 
LTCFLAGS=$lt_LTCFLAGS
13681
 
 
13682
13208
# A language-specific compiler.
13683
13209
CC=$lt_compiler_CXX
13684
13210
 
13920
13446
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13921
13447
 
13922
13448
# Fix the shell variable \$srcfile for the compiler.
13923
 
fix_srcfile_path=$lt_fix_srcfile_path
 
13449
fix_srcfile_path="$fix_srcfile_path_CXX"
13924
13450
 
13925
13451
# Set to yes if exported symbols are required.
13926
13452
always_export_symbols=$always_export_symbols_CXX
14011
13537
objext_F77=$objext
14012
13538
 
14013
13539
# Code to be used in simple compile tests
14014
 
lt_simple_compile_test_code="\
14015
 
      subroutine t
14016
 
      return
14017
 
      end
14018
 
"
 
13540
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14019
13541
 
14020
13542
# Code to be used in simple link tests
14021
 
lt_simple_link_test_code="\
14022
 
      program t
14023
 
      end
14024
 
"
 
13543
lt_simple_link_test_code="      program t\n      end\n"
14025
13544
 
14026
13545
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14027
13546
 
14028
13547
# If no C compiler was specified, use CC.
14029
13548
LTCC=${LTCC-"$CC"}
14030
13549
 
14031
 
# If no C compiler flags were specified, use CFLAGS.
14032
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14033
 
 
14034
13550
# Allow CC to be a program name with arguments.
14035
13551
compiler=$CC
14036
13552
 
14037
13553
 
14038
13554
# save warnings/boilerplate of simple test code
14039
13555
ac_outfile=conftest.$ac_objext
14040
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14041
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13556
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13557
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14042
13558
_lt_compiler_boilerplate=`cat conftest.err`
14043
13559
$rm conftest*
14044
13560
 
14045
13561
ac_outfile=conftest.$ac_objext
14046
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14047
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13562
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13563
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14048
13564
_lt_linker_boilerplate=`cat conftest.err`
14049
13565
$rm conftest*
14050
13566
 
14065
13581
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14066
13582
 
14067
13583
 
14068
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14069
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14070
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14071
 
echo "${ECHO_T}$can_build_shared" >&6; }
 
13584
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13585
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13586
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13587
echo "${ECHO_T}$can_build_shared" >&6
14072
13588
 
14073
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14074
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13589
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13590
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14075
13591
test "$can_build_shared" = "no" && enable_shared=no
14076
13592
 
14077
13593
# On AIX, shared libraries and static libraries use the same namespace, and
14078
13594
# are all built from PIC.
14079
 
case $host_os in
 
13595
case "$host_os" in
14080
13596
aix3*)
14081
13597
  test "$enable_shared" = yes && enable_static=no
14082
13598
  if test -n "$RANLIB"; then
14090
13606
  fi
14091
13607
  ;;
14092
13608
esac
14093
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14094
 
echo "${ECHO_T}$enable_shared" >&6; }
 
13609
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13610
echo "${ECHO_T}$enable_shared" >&6
14095
13611
 
14096
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14097
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
13612
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13613
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14098
13614
# Make sure either enable_shared or enable_static is yes.
14099
13615
test "$enable_shared" = yes || enable_static=yes
14100
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14101
 
echo "${ECHO_T}$enable_static" >&6; }
 
13616
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13617
echo "${ECHO_T}$enable_static" >&6
 
13618
 
 
13619
test "$ld_shlibs_F77" = no && can_build_shared=no
14102
13620
 
14103
13621
GCC_F77="$G77"
14104
13622
LD_F77="$LD"
14107
13625
lt_prog_compiler_pic_F77=
14108
13626
lt_prog_compiler_static_F77=
14109
13627
 
14110
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14111
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
13628
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13629
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14112
13630
 
14113
13631
  if test "$GCC" = yes; then
14114
13632
    lt_prog_compiler_wl_F77='-Wl,'
14130
13648
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14131
13649
      ;;
14132
13650
 
14133
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13651
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14134
13652
      # PIC is the default for these OSes.
14135
13653
      ;;
14136
13654
 
14137
 
    mingw* | cygwin* | pw32* | os2*)
 
13655
    mingw* | pw32* | os2*)
14138
13656
      # This hack is so that the source file can tell whether it is being
14139
13657
      # built for inclusion in a dll (and should export symbols for example).
14140
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14141
 
      # (--disable-auto-import) libraries
14142
13658
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14143
13659
      ;;
14144
13660
 
14148
13664
      lt_prog_compiler_pic_F77='-fno-common'
14149
13665
      ;;
14150
13666
 
14151
 
    interix[3-9]*)
14152
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14153
 
      # Instead, we relocate shared libraries at runtime.
14154
 
      ;;
14155
 
 
14156
13667
    msdosdjgpp*)
14157
13668
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14158
13669
      # on systems that don't support them.
14169
13680
    hpux*)
14170
13681
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14171
13682
      # not for PA HP-UX.
14172
 
      case $host_cpu in
 
13683
      case "$host_cpu" in
14173
13684
      hppa*64*|ia64*)
14174
13685
        # +Z the default
14175
13686
        ;;
14206
13717
       esac
14207
13718
       ;;
14208
13719
 
14209
 
    mingw* | cygwin* | pw32* | os2*)
 
13720
    mingw* | pw32* | os2*)
14210
13721
      # This hack is so that the source file can tell whether it is being
14211
13722
      # built for inclusion in a dll (and should export symbols for example).
14212
13723
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14216
13727
      lt_prog_compiler_wl_F77='-Wl,'
14217
13728
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14218
13729
      # not for PA HP-UX.
14219
 
      case $host_cpu in
 
13730
      case "$host_cpu" in
14220
13731
      hppa*64*|ia64*)
14221
13732
        # +Z the default
14222
13733
        ;;
14239
13750
      lt_prog_compiler_static_F77='-Bstatic'
14240
13751
      ;;
14241
13752
 
14242
 
    linux* | k*bsd*-gnu)
 
13753
    linux*)
14243
13754
      case $cc_basename in
14244
13755
      icc* | ecc*)
14245
13756
        lt_prog_compiler_wl_F77='-Wl,'
14246
13757
        lt_prog_compiler_pic_F77='-KPIC'
14247
13758
        lt_prog_compiler_static_F77='-static'
14248
13759
        ;;
14249
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13760
      pgcc* | pgf77* | pgf90*)
14250
13761
        # Portland Group compilers (*not* the Pentium gcc compiler,
14251
13762
        # which looks to be a dead project)
14252
13763
        lt_prog_compiler_wl_F77='-Wl,'
14253
13764
        lt_prog_compiler_pic_F77='-fpic'
14254
 
        lt_prog_compiler_static_F77='-Bstatic'
 
13765
        lt_prog_compiler_static_F77='-static'
14255
13766
        ;;
14256
13767
      ccc*)
14257
13768
        lt_prog_compiler_wl_F77='-Wl,'
14258
13769
        # All Alpha code is PIC.
14259
13770
        lt_prog_compiler_static_F77='-non_shared'
14260
13771
        ;;
14261
 
      *)
14262
 
        case `$CC -V 2>&1 | sed 5q` in
14263
 
        *Sun\ C*)
14264
 
          # Sun C 5.9
14265
 
          lt_prog_compiler_pic_F77='-KPIC'
14266
 
          lt_prog_compiler_static_F77='-Bstatic'
14267
 
          lt_prog_compiler_wl_F77='-Wl,'
14268
 
          ;;
14269
 
        *Sun\ F*)
14270
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
14271
 
          lt_prog_compiler_pic_F77='-KPIC'
14272
 
          lt_prog_compiler_static_F77='-Bstatic'
14273
 
          lt_prog_compiler_wl_F77=''
14274
 
          ;;
14275
 
        esac
14276
 
        ;;
14277
13772
      esac
14278
13773
      ;;
14279
13774
 
14283
13778
      lt_prog_compiler_static_F77='-non_shared'
14284
13779
      ;;
14285
13780
 
14286
 
    rdos*)
14287
 
      lt_prog_compiler_static_F77='-non_shared'
 
13781
    sco3.2v5*)
 
13782
      lt_prog_compiler_pic_F77='-Kpic'
 
13783
      lt_prog_compiler_static_F77='-dn'
14288
13784
      ;;
14289
13785
 
14290
13786
    solaris*)
14304
13800
      lt_prog_compiler_static_F77='-Bstatic'
14305
13801
      ;;
14306
13802
 
14307
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13803
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14308
13804
      lt_prog_compiler_wl_F77='-Wl,'
14309
13805
      lt_prog_compiler_pic_F77='-KPIC'
14310
13806
      lt_prog_compiler_static_F77='-Bstatic'
14317
13813
      fi
14318
13814
      ;;
14319
13815
 
14320
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14321
 
      lt_prog_compiler_wl_F77='-Wl,'
14322
 
      lt_prog_compiler_pic_F77='-KPIC'
14323
 
      lt_prog_compiler_static_F77='-Bstatic'
14324
 
      ;;
14325
 
 
14326
13816
    unicos*)
14327
13817
      lt_prog_compiler_wl_F77='-Wl,'
14328
13818
      lt_prog_compiler_can_build_shared_F77=no
14339
13829
    esac
14340
13830
  fi
14341
13831
 
14342
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14343
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
13832
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13833
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14344
13834
 
14345
13835
#
14346
13836
# Check to make sure the PIC flag actually works.
14347
13837
#
14348
13838
if test -n "$lt_prog_compiler_pic_F77"; then
14349
13839
 
14350
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14351
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
13840
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13841
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14352
13842
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14353
13843
  echo $ECHO_N "(cached) $ECHO_C" >&6
14354
13844
else
14355
13845
  lt_prog_compiler_pic_works_F77=no
14356
13846
  ac_outfile=conftest.$ac_objext
14357
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13847
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14358
13848
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14359
13849
   # Insert the option either (1) after the last *FLAGS variable, or
14360
13850
   # (2) before a word containing "conftest.", or (3) at the end.
14362
13852
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14363
13853
   # The option is referenced via a variable to avoid confusing sed.
14364
13854
   lt_compile=`echo "$ac_compile" | $SED \
14365
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13855
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14366
13856
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14367
13857
   -e 's:$: $lt_compiler_flag:'`
14368
 
   (eval echo "\"\$as_me:14368: $lt_compile\"" >&5)
 
13858
   (eval echo "\"\$as_me:13858: $lt_compile\"" >&5)
14369
13859
   (eval "$lt_compile" 2>conftest.err)
14370
13860
   ac_status=$?
14371
13861
   cat conftest.err >&5
14372
 
   echo "$as_me:14372: \$? = $ac_status" >&5
 
13862
   echo "$as_me:13862: \$? = $ac_status" >&5
14373
13863
   if (exit $ac_status) && test -s "$ac_outfile"; then
14374
13864
     # The compiler can only warn and ignore the option if not recognized
14375
13865
     # So say no if there are warnings other than the usual output.
14376
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14377
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14378
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13866
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
13867
     $SED '/^$/d' conftest.err >conftest.er2
 
13868
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14379
13869
       lt_prog_compiler_pic_works_F77=yes
14380
13870
     fi
14381
13871
   fi
14382
13872
   $rm conftest*
14383
13873
 
14384
13874
fi
14385
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14386
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
13875
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13876
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14387
13877
 
14388
13878
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14389
13879
    case $lt_prog_compiler_pic_F77 in
14396
13886
fi
14397
13887
 
14398
13888
fi
14399
 
case $host_os in
 
13889
case "$host_os" in
14400
13890
  # For platforms which do not support PIC, -DPIC is meaningless:
14401
13891
  *djgpp*)
14402
13892
    lt_prog_compiler_pic_F77=
14406
13896
    ;;
14407
13897
esac
14408
13898
 
14409
 
#
14410
 
# Check to make sure the static flag actually works.
14411
 
#
14412
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14413
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14414
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14415
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14416
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14417
 
else
14418
 
  lt_prog_compiler_static_works_F77=no
14419
 
   save_LDFLAGS="$LDFLAGS"
14420
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14421
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14422
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14423
 
     # The linker can only warn and ignore the option if not recognized
14424
 
     # So say no if there are warnings
14425
 
     if test -s conftest.err; then
14426
 
       # Append any errors to the config.log.
14427
 
       cat conftest.err 1>&5
14428
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14429
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14430
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14431
 
         lt_prog_compiler_static_works_F77=yes
14432
 
       fi
14433
 
     else
14434
 
       lt_prog_compiler_static_works_F77=yes
14435
 
     fi
14436
 
   fi
14437
 
   $rm conftest*
14438
 
   LDFLAGS="$save_LDFLAGS"
14439
 
 
14440
 
fi
14441
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14442
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14443
 
 
14444
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14445
 
    :
14446
 
else
14447
 
    lt_prog_compiler_static_F77=
14448
 
fi
14449
 
 
14450
 
 
14451
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14452
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13899
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13900
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14453
13901
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14454
13902
  echo $ECHO_N "(cached) $ECHO_C" >&6
14455
13903
else
14458
13906
   mkdir conftest
14459
13907
   cd conftest
14460
13908
   mkdir out
14461
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13909
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14462
13910
 
14463
13911
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14464
13912
   # Insert the option either (1) after the last *FLAGS variable, or
14466
13914
   # Note that $ac_compile itself does not contain backslashes and begins
14467
13915
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14468
13916
   lt_compile=`echo "$ac_compile" | $SED \
14469
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13917
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14470
13918
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14471
13919
   -e 's:$: $lt_compiler_flag:'`
14472
 
   (eval echo "\"\$as_me:14472: $lt_compile\"" >&5)
 
13920
   (eval echo "\"\$as_me:13920: $lt_compile\"" >&5)
14473
13921
   (eval "$lt_compile" 2>out/conftest.err)
14474
13922
   ac_status=$?
14475
13923
   cat out/conftest.err >&5
14476
 
   echo "$as_me:14476: \$? = $ac_status" >&5
 
13924
   echo "$as_me:13924: \$? = $ac_status" >&5
14477
13925
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14478
13926
   then
14479
13927
     # The compiler can only warn and ignore the option if not recognized
14480
13928
     # So say no if there are warnings
14481
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14482
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14483
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13929
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13930
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13931
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14484
13932
       lt_cv_prog_compiler_c_o_F77=yes
14485
13933
     fi
14486
13934
   fi
14487
 
   chmod u+w . 2>&5
 
13935
   chmod u+w .
14488
13936
   $rm conftest*
14489
13937
   # SGI C++ compiler will create directory out/ii_files/ for
14490
13938
   # template instantiation
14495
13943
   $rm conftest*
14496
13944
 
14497
13945
fi
14498
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14499
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
13946
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13947
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14500
13948
 
14501
13949
 
14502
13950
hard_links="nottested"
14503
13951
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14504
13952
  # do not overwrite the value of need_locks provided by the user
14505
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14506
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13953
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13954
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14507
13955
  hard_links=yes
14508
13956
  $rm conftest*
14509
13957
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14510
13958
  touch conftest.a
14511
13959
  ln conftest.a conftest.b 2>&5 || hard_links=no
14512
13960
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14513
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14514
 
echo "${ECHO_T}$hard_links" >&6; }
 
13961
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13962
echo "${ECHO_T}$hard_links" >&6
14515
13963
  if test "$hard_links" = no; then
14516
13964
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14517
13965
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14521
13969
  need_locks=no
14522
13970
fi
14523
13971
 
14524
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14525
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13972
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13973
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14526
13974
 
14527
13975
  runpath_var=
14528
13976
  allow_undefined_flag_F77=
14580
14028
      with_gnu_ld=no
14581
14029
    fi
14582
14030
    ;;
14583
 
  interix*)
14584
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14585
 
    with_gnu_ld=yes
14586
 
    ;;
14587
14031
  openbsd*)
14588
14032
    with_gnu_ld=no
14589
14033
    ;;
14665
14109
      allow_undefined_flag_F77=unsupported
14666
14110
      always_export_symbols_F77=no
14667
14111
      enable_shared_with_static_runtimes_F77=yes
14668
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14112
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14669
14113
 
14670
14114
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14671
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14115
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14672
14116
        # If the export-symbols file already is a .def file (1st line
14673
14117
        # is EXPORTS), use it as is; otherwise, prepend...
14674
14118
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14677
14121
          echo EXPORTS > $output_objdir/$soname.def;
14678
14122
          cat $export_symbols >> $output_objdir/$soname.def;
14679
14123
        fi~
14680
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14124
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14681
14125
      else
14682
14126
        ld_shlibs_F77=no
14683
14127
      fi
14684
14128
      ;;
14685
14129
 
14686
 
    interix[3-9]*)
14687
 
      hardcode_direct_F77=no
14688
 
      hardcode_shlibpath_var_F77=no
14689
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14690
 
      export_dynamic_flag_spec_F77='${wl}-E'
14691
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14692
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14693
 
      # default) and relocated if they conflict, which is a slow very memory
14694
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14695
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14696
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14697
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14698
 
      archive_expsym_cmds_F77='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'
14699
 
      ;;
14700
 
 
14701
 
    gnu* | linux* | k*bsd*-gnu)
 
14130
    linux*)
14702
14131
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14703
14132
        tmp_addflag=
14704
14133
        case $cc_basename,$host_cpu in
14705
14134
        pgcc*)                          # Portland Group C compiler
14706
 
          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'
 
14135
          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'
14707
14136
          tmp_addflag=' $pic_flag'
14708
14137
          ;;
14709
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14710
 
          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'
 
14138
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
14139
          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'
14711
14140
          tmp_addflag=' $pic_flag -Mnomain' ;;
14712
14141
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14713
14142
          tmp_addflag=' -i_dynamic' ;;
14716
14145
        ifc* | ifort*)                  # Intel Fortran compiler
14717
14146
          tmp_addflag=' -nofor_main' ;;
14718
14147
        esac
14719
 
        case `$CC -V 2>&1 | sed 5q` in
14720
 
        *Sun\ C*)                       # Sun C 5.9
14721
 
          whole_archive_flag_spec_F77='${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'
14722
 
          tmp_sharedflag='-G' ;;
14723
 
        *Sun\ F*)                       # Sun Fortran 8.3
14724
 
          tmp_sharedflag='-G' ;;
14725
 
        *)
14726
 
          tmp_sharedflag='-shared' ;;
14727
 
        esac
14728
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14148
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14729
14149
 
14730
14150
        if test $supports_anon_versioning = yes; then
14731
14151
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14732
14152
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14733
14153
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14734
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14154
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14735
14155
        fi
14736
 
        link_all_deplibs_F77=no
14737
14156
      else
14738
14157
        ld_shlibs_F77=no
14739
14158
      fi
14740
14159
      ;;
14741
14160
 
14742
 
    netbsd* | netbsdelf*-gnu)
 
14161
    netbsd*)
14743
14162
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14744
14163
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14745
14164
        wlarc=
14749
14168
      fi
14750
14169
      ;;
14751
14170
 
14752
 
    solaris*)
 
14171
    solaris* | sysv5*)
14753
14172
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14754
14173
        ld_shlibs_F77=no
14755
14174
        cat <<EOF 1>&2
14770
14189
      fi
14771
14190
      ;;
14772
14191
 
14773
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14774
 
      case `$LD -v 2>&1` in
14775
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14776
 
        ld_shlibs_F77=no
14777
 
        cat <<_LT_EOF 1>&2
14778
 
 
14779
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14780
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14781
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14782
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14783
 
*** your PATH or compiler configuration so that the native linker is
14784
 
*** used, and then restart.
14785
 
 
14786
 
_LT_EOF
14787
 
        ;;
14788
 
        *)
14789
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14791
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14792
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14793
 
          else
14794
 
            ld_shlibs_F77=no
14795
 
          fi
14796
 
        ;;
14797
 
      esac
14798
 
      ;;
14799
 
 
14800
14192
    sunos4*)
14801
14193
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14802
14194
      wlarc=
14830
14222
      # Note: this linker hardcodes the directories in LIBPATH if there
14831
14223
      # are no directories specified by -L.
14832
14224
      hardcode_minus_L_F77=yes
14833
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14225
      if test "$GCC" = yes && test -z "$link_static_flag"; then
14834
14226
        # Neither direct hardcoding nor static linking is supported with a
14835
14227
        # broken collect2.
14836
14228
        hardcode_direct_F77=unsupported
14864
14256
            break
14865
14257
          fi
14866
14258
          done
14867
 
          ;;
14868
14259
        esac
14869
14260
 
14870
14261
        exp_sym_flag='-bexport'
14891
14282
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14892
14283
          then
14893
14284
          # We have reworked collect2
14894
 
          :
 
14285
          hardcode_direct_F77=yes
14895
14286
          else
14896
14287
          # We have old collect2
14897
14288
          hardcode_direct_F77=unsupported
14902
14293
          hardcode_libdir_flag_spec_F77='-L$libdir'
14903
14294
          hardcode_libdir_separator_F77=
14904
14295
          fi
14905
 
          ;;
14906
14296
        esac
14907
14297
        shared_flag='-shared'
14908
14298
        if test "$aix_use_runtimelinking" = yes; then
14915
14305
        # chokes on -Wl,-G. The following line is correct:
14916
14306
          shared_flag='-G'
14917
14307
        else
14918
 
          if test "$aix_use_runtimelinking" = yes; then
 
14308
        if test "$aix_use_runtimelinking" = yes; then
14919
14309
            shared_flag='${wl}-G'
14920
14310
          else
14921
14311
            shared_flag='${wl}-bM:SRE'
14922
 
          fi
 
14312
        fi
14923
14313
        fi
14924
14314
      fi
14925
14315
 
14937
14327
      end
14938
14328
_ACEOF
14939
14329
rm -f conftest.$ac_objext conftest$ac_exeext
14940
 
if { (ac_try="$ac_link"
14941
 
case "(($ac_try" in
14942
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943
 
  *) ac_try_echo=$ac_try;;
14944
 
esac
14945
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946
 
  (eval "$ac_link") 2>conftest.er1
 
14330
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14331
  (eval $ac_link) 2>conftest.er1
14947
14332
  ac_status=$?
14948
14333
  grep -v '^ *+' conftest.er1 >conftest.err
14949
14334
  rm -f conftest.er1
14950
14335
  cat conftest.err >&5
14951
14336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952
 
  (exit $ac_status); } && {
14953
 
         test -z "$ac_f77_werror_flag" ||
14954
 
         test ! -s conftest.err
14955
 
       } && test -s conftest$ac_exeext &&
14956
 
       $as_test_x conftest$ac_exeext; then
 
14337
  (exit $ac_status); } &&
 
14338
         { ac_try='test -z "$ac_f77_werror_flag"
 
14339
                         || test ! -s conftest.err'
 
14340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14341
  (eval $ac_try) 2>&5
 
14342
  ac_status=$?
 
14343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14344
  (exit $ac_status); }; } &&
 
14345
         { ac_try='test -s conftest$ac_exeext'
 
14346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14347
  (eval $ac_try) 2>&5
 
14348
  ac_status=$?
 
14349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14350
  (exit $ac_status); }; }; then
14957
14351
 
14958
 
lt_aix_libpath_sed='
14959
 
    /Import File Strings/,/^$/ {
14960
 
        /^0/ {
14961
 
            s/^0  *\(.*\)$/\1/
14962
 
            p
14963
 
        }
14964
 
    }'
14965
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14352
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14353
}'`
14966
14354
# Check for a 64-bit object if we didn't find anything.
14967
 
if test -z "$aix_libpath"; then
14968
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14969
 
fi
 
14355
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; }
 
14356
}'`; fi
14970
14357
else
14971
14358
  echo "$as_me: failed program was:" >&5
14972
14359
sed 's/^/| /' conftest.$ac_ext >&5
14973
14360
 
14974
 
 
14975
14361
fi
14976
 
 
14977
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14362
rm -f conftest.err conftest.$ac_objext \
14978
14363
      conftest$ac_exeext conftest.$ac_ext
14979
14364
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14980
14365
 
14981
14366
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14982
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14367
        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"
14983
14368
       else
14984
14369
        if test "$host_cpu" = ia64; then
14985
14370
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14986
14371
          allow_undefined_flag_F77="-z nodefs"
14987
 
          archive_expsym_cmds_F77="\$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"
 
14372
          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"
14988
14373
        else
14989
14374
         # Determine the default libpath from the value encoded in an empty executable.
14990
14375
         cat >conftest.$ac_ext <<_ACEOF
14993
14378
      end
14994
14379
_ACEOF
14995
14380
rm -f conftest.$ac_objext conftest$ac_exeext
14996
 
if { (ac_try="$ac_link"
14997
 
case "(($ac_try" in
14998
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999
 
  *) ac_try_echo=$ac_try;;
15000
 
esac
15001
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002
 
  (eval "$ac_link") 2>conftest.er1
 
14381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14382
  (eval $ac_link) 2>conftest.er1
15003
14383
  ac_status=$?
15004
14384
  grep -v '^ *+' conftest.er1 >conftest.err
15005
14385
  rm -f conftest.er1
15006
14386
  cat conftest.err >&5
15007
14387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008
 
  (exit $ac_status); } && {
15009
 
         test -z "$ac_f77_werror_flag" ||
15010
 
         test ! -s conftest.err
15011
 
       } && test -s conftest$ac_exeext &&
15012
 
       $as_test_x conftest$ac_exeext; then
 
14388
  (exit $ac_status); } &&
 
14389
         { ac_try='test -z "$ac_f77_werror_flag"
 
14390
                         || test ! -s conftest.err'
 
14391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14392
  (eval $ac_try) 2>&5
 
14393
  ac_status=$?
 
14394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14395
  (exit $ac_status); }; } &&
 
14396
         { ac_try='test -s conftest$ac_exeext'
 
14397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14398
  (eval $ac_try) 2>&5
 
14399
  ac_status=$?
 
14400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14401
  (exit $ac_status); }; }; then
15013
14402
 
15014
 
lt_aix_libpath_sed='
15015
 
    /Import File Strings/,/^$/ {
15016
 
        /^0/ {
15017
 
            s/^0  *\(.*\)$/\1/
15018
 
            p
15019
 
        }
15020
 
    }'
15021
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14403
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14404
}'`
15022
14405
# Check for a 64-bit object if we didn't find anything.
15023
 
if test -z "$aix_libpath"; then
15024
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15025
 
fi
 
14406
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; }
 
14407
}'`; fi
15026
14408
else
15027
14409
  echo "$as_me: failed program was:" >&5
15028
14410
sed 's/^/| /' conftest.$ac_ext >&5
15029
14411
 
15030
 
 
15031
14412
fi
15032
 
 
15033
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14413
rm -f conftest.err conftest.$ac_objext \
15034
14414
      conftest$ac_exeext conftest.$ac_ext
15035
14415
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15036
14416
 
15039
14419
          # -berok will link without error, but may produce a broken library.
15040
14420
          no_undefined_flag_F77=' ${wl}-bernotok'
15041
14421
          allow_undefined_flag_F77=' ${wl}-berok'
 
14422
          # -bexpall does not export symbols beginning with underscore (_)
 
14423
          always_export_symbols_F77=yes
15042
14424
          # Exported symbols can be pulled into shared objects from archives
15043
 
          whole_archive_flag_spec_F77='$convenience'
 
14425
          whole_archive_flag_spec_F77=' '
15044
14426
          archive_cmds_need_lc_F77=yes
15045
 
          # This is similar to how AIX traditionally builds its shared libraries.
15046
 
          archive_expsym_cmds_F77="\$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'
 
14427
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14428
          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'
15047
14429
        fi
15048
14430
      fi
15049
14431
      ;;
15076
14458
      # The linker will automatically build a .lib file if we build a DLL.
15077
14459
      old_archive_From_new_cmds_F77='true'
15078
14460
      # FIXME: Should let the user specify the lib program.
15079
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
14461
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15080
14462
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15081
14463
      enable_shared_with_static_runtimes_F77=yes
15082
14464
      ;;
15083
14465
 
15084
14466
    darwin* | rhapsody*)
15085
 
      case $host_os in
 
14467
      case "$host_os" in
15086
14468
        rhapsody* | darwin1.[012])
15087
14469
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15088
14470
         ;;
15111
14493
        output_verbose_link_cmd='echo'
15112
14494
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15113
14495
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15114
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14496
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15115
14497
      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}'
15116
14498
      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}'
15117
14499
    else
15118
14500
      case $cc_basename in
15119
14501
        xlc*)
15120
14502
         output_verbose_link_cmd='echo'
15121
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
14503
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15122
14504
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15123
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15124
 
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14505
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14506
         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}'
15125
14507
          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}'
15126
14508
          ;;
15127
14509
       *)
15161
14543
      ;;
15162
14544
 
15163
14545
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15164
 
    freebsd* | dragonfly*)
 
14546
    freebsd* | kfreebsd*-gnu | dragonfly*)
15165
14547
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15166
14548
      hardcode_libdir_flag_spec_F77='-R$libdir'
15167
14549
      hardcode_direct_F77=yes
15184
14566
      export_dynamic_flag_spec_F77='${wl}-E'
15185
14567
      ;;
15186
14568
 
15187
 
    hpux10*)
15188
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15189
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15190
 
      else
15191
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15192
 
      fi
15193
 
      if test "$with_gnu_ld" = no; then
15194
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15195
 
        hardcode_libdir_separator_F77=:
15196
 
 
15197
 
        hardcode_direct_F77=yes
15198
 
        export_dynamic_flag_spec_F77='${wl}-E'
15199
 
 
15200
 
        # hardcode_minus_L: Not really in the search PATH,
15201
 
        # but as the default location of the library.
15202
 
        hardcode_minus_L_F77=yes
15203
 
      fi
15204
 
      ;;
15205
 
 
15206
 
    hpux11*)
15207
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15208
 
        case $host_cpu in
15209
 
        hppa*64*)
 
14569
    hpux10* | hpux11*)
 
14570
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14571
        case "$host_cpu" in
 
14572
        hppa*64*|ia64*)
15210
14573
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15211
14574
          ;;
15212
 
        ia64*)
15213
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15214
 
          ;;
15215
14575
        *)
15216
14576
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15217
14577
          ;;
15218
14578
        esac
15219
14579
      else
15220
 
        case $host_cpu in
15221
 
        hppa*64*)
15222
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15223
 
          ;;
15224
 
        ia64*)
15225
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14580
        case "$host_cpu" in
 
14581
        hppa*64*|ia64*)
 
14582
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15226
14583
          ;;
15227
14584
        *)
15228
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14585
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15229
14586
          ;;
15230
14587
        esac
15231
14588
      fi
15232
14589
      if test "$with_gnu_ld" = no; then
15233
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15234
 
        hardcode_libdir_separator_F77=:
15235
 
 
15236
 
        case $host_cpu in
15237
 
        hppa*64*|ia64*)
 
14590
        case "$host_cpu" in
 
14591
        hppa*64*)
 
14592
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15238
14593
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15239
 
          hardcode_direct_F77=no
15240
 
          hardcode_shlibpath_var_F77=no
 
14594
          hardcode_libdir_separator_F77=:
 
14595
          hardcode_direct_F77=no
 
14596
          hardcode_shlibpath_var_F77=no
 
14597
          ;;
 
14598
        ia64*)
 
14599
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14600
          hardcode_direct_F77=no
 
14601
          hardcode_shlibpath_var_F77=no
 
14602
 
 
14603
          # hardcode_minus_L: Not really in the search PATH,
 
14604
          # but as the default location of the library.
 
14605
          hardcode_minus_L_F77=yes
15241
14606
          ;;
15242
14607
        *)
 
14608
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14609
          hardcode_libdir_separator_F77=:
15243
14610
          hardcode_direct_F77=yes
15244
14611
          export_dynamic_flag_spec_F77='${wl}-E'
15245
14612
 
15263
14630
      link_all_deplibs_F77=yes
15264
14631
      ;;
15265
14632
 
15266
 
    netbsd* | netbsdelf*-gnu)
 
14633
    netbsd*)
15267
14634
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15268
14635
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15269
14636
      else
15283
14650
      ;;
15284
14651
 
15285
14652
    openbsd*)
15286
 
      if test -f /usr/libexec/ld.so; then
15287
 
        hardcode_direct_F77=yes
15288
 
        hardcode_shlibpath_var_F77=no
15289
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15290
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15291
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15292
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15293
 
          export_dynamic_flag_spec_F77='${wl}-E'
15294
 
        else
15295
 
          case $host_os in
15296
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15297
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15298
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
15299
 
             ;;
15300
 
           *)
15301
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15302
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15303
 
             ;;
15304
 
          esac
15305
 
        fi
 
14653
      hardcode_direct_F77=yes
 
14654
      hardcode_shlibpath_var_F77=no
 
14655
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14656
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14657
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14658
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14659
        export_dynamic_flag_spec_F77='${wl}-E'
15306
14660
      else
15307
 
        ld_shlibs_F77=no
 
14661
       case $host_os in
 
14662
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14663
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14664
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14665
           ;;
 
14666
         *)
 
14667
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14668
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14669
           ;;
 
14670
       esac
15308
14671
      fi
15309
14672
      ;;
15310
14673
 
15345
14708
      hardcode_libdir_separator_F77=:
15346
14709
      ;;
15347
14710
 
 
14711
    sco3.2v5*)
 
14712
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14713
      hardcode_shlibpath_var_F77=no
 
14714
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14715
      runpath_var=LD_RUN_PATH
 
14716
      hardcode_runpath_var=yes
 
14717
      ;;
 
14718
 
15348
14719
    solaris*)
15349
14720
      no_undefined_flag_F77=' -z text'
15350
14721
      if test "$GCC" = yes; then
15363
14734
      case $host_os in
15364
14735
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15365
14736
      *)
15366
 
        # The compiler driver will combine and reorder linker options,
15367
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
15368
 
        # but is careful enough not to reorder.
 
14737
        # The compiler driver will combine linker options so we
 
14738
        # cannot just pass the convience library names through
 
14739
        # without $wl, iff we do not link with $LD.
 
14740
        # Luckily, gcc supports the same syntax we need for Sun Studio.
15369
14741
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15370
 
        if test "$GCC" = yes; then
15371
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15372
 
        else
15373
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15374
 
        fi
15375
 
        ;;
 
14742
        case $wlarc in
 
14743
        '')
 
14744
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14745
        *)
 
14746
          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' ;;
 
14747
        esac ;;
15376
14748
      esac
15377
14749
      link_all_deplibs_F77=yes
15378
14750
      ;;
15429
14801
      fi
15430
14802
      ;;
15431
14803
 
15432
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15433
 
      no_undefined_flag_F77='${wl}-z,text'
15434
 
      archive_cmds_need_lc_F77=no
15435
 
      hardcode_shlibpath_var_F77=no
15436
 
      runpath_var='LD_RUN_PATH'
15437
 
 
15438
 
      if test "$GCC" = yes; then
15439
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15440
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15441
 
      else
15442
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15444
 
      fi
15445
 
      ;;
15446
 
 
15447
 
    sysv5* | sco3.2v5* | sco5v6*)
15448
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15449
 
      # link with -lc, and that would cause any symbols used from libc to
15450
 
      # always be unresolved, which means just about no library would
15451
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15452
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15453
 
      # as -z defs.
15454
 
      no_undefined_flag_F77='${wl}-z,text'
15455
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15456
 
      archive_cmds_need_lc_F77=no
15457
 
      hardcode_shlibpath_var_F77=no
15458
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15459
 
      hardcode_libdir_separator_F77=':'
15460
 
      link_all_deplibs_F77=yes
15461
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15462
 
      runpath_var='LD_RUN_PATH'
15463
 
 
15464
 
      if test "$GCC" = yes; then
15465
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15466
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15467
 
      else
15468
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15470
 
      fi
 
14804
    sysv4.2uw2*)
 
14805
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14806
      hardcode_direct_F77=yes
 
14807
      hardcode_minus_L_F77=no
 
14808
      hardcode_shlibpath_var_F77=no
 
14809
      hardcode_runpath_var=yes
 
14810
      runpath_var=LD_RUN_PATH
 
14811
      ;;
 
14812
 
 
14813
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14814
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14815
      if test "$GCC" = yes; then
 
14816
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14817
      else
 
14818
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14819
      fi
 
14820
      runpath_var='LD_RUN_PATH'
 
14821
      hardcode_shlibpath_var_F77=no
 
14822
      ;;
 
14823
 
 
14824
    sysv5*)
 
14825
      no_undefined_flag_F77=' -z text'
 
14826
      # $CC -shared without GNU ld will not create a library from C++
 
14827
      # object files and a static libstdc++, better avoid it by now
 
14828
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14829
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14830
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14831
      hardcode_libdir_flag_spec_F77=
 
14832
      hardcode_shlibpath_var_F77=no
 
14833
      runpath_var='LD_RUN_PATH'
15471
14834
      ;;
15472
14835
 
15473
14836
    uts4*)
15482
14845
    esac
15483
14846
  fi
15484
14847
 
15485
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15486
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
14848
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14849
echo "${ECHO_T}$ld_shlibs_F77" >&6
15487
14850
test "$ld_shlibs_F77" = no && can_build_shared=no
15488
14851
 
 
14852
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14853
if test "$GCC" = yes; then
 
14854
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14855
fi
 
14856
 
15489
14857
#
15490
14858
# Do we need to explicitly link libc?
15491
14859
#
15503
14871
      # Test whether the compiler implicitly links with -lc since on some
15504
14872
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15505
14873
      # to ld, don't add -lc before -lgcc.
15506
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15507
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
14874
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14875
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15508
14876
      $rm conftest*
15509
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14877
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15510
14878
 
15511
14879
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512
14880
  (eval $ac_compile) 2>&5
15518
14886
        libobjs=conftest.$ac_objext
15519
14887
        deplibs=
15520
14888
        wl=$lt_prog_compiler_wl_F77
15521
 
        pic_flag=$lt_prog_compiler_pic_F77
15522
14889
        compiler_flags=-v
15523
14890
        linker_flags=-v
15524
14891
        verstring=
15541
14908
        cat conftest.err 1>&5
15542
14909
      fi
15543
14910
      $rm conftest*
15544
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15545
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
14911
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14912
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15546
14913
      ;;
15547
14914
    esac
15548
14915
  fi
15549
14916
  ;;
15550
14917
esac
15551
14918
 
15552
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15553
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
14919
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14920
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15554
14921
library_names_spec=
15555
14922
libname_spec='lib$name'
15556
14923
soname_spec=
15564
14931
version_type=none
15565
14932
dynamic_linker="$host_os ld.so"
15566
14933
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15567
 
 
 
14934
if test "$GCC" = yes; then
 
14935
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14936
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14937
    # if the path contains ";" then we assume it to be the separator
 
14938
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14939
    # assumed that no part of a normal pathname contains ";" but that should
 
14940
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14941
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14942
  else
 
14943
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14944
  fi
 
14945
else
 
14946
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14947
fi
15568
14948
need_lib_prefix=unknown
15569
14949
hardcode_into_libs=no
15570
14950
 
15666
15046
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15667
15047
      dldir=$destdir/`dirname \$dlpath`~
15668
15048
      test -d \$dldir || mkdir -p \$dldir~
15669
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15670
 
      chmod a+x \$dldir/$dlname'
 
15049
      $install_prog $dir/$dlname \$dldir/$dlname'
15671
15050
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15672
15051
      dlpath=$dir/\$dldll~
15673
15052
       $rm \$dlpath'
15720
15099
  soname_spec='${libname}${release}${major}$shared_ext'
15721
15100
  shlibpath_overrides_runpath=yes
15722
15101
  shlibpath_var=DYLD_LIBRARY_PATH
15723
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15724
 
 
 
15102
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15103
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15104
  if test "$GCC" = yes; then
 
15105
    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"`
 
15106
  else
 
15107
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15108
  fi
15725
15109
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15726
15110
  ;;
15727
15111
 
15738
15122
  dynamic_linker=no
15739
15123
  ;;
15740
15124
 
 
15125
kfreebsd*-gnu)
 
15126
  version_type=linux
 
15127
  need_lib_prefix=no
 
15128
  need_version=no
 
15129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15130
  soname_spec='${libname}${release}${shared_ext}$major'
 
15131
  shlibpath_var=LD_LIBRARY_PATH
 
15132
  shlibpath_overrides_runpath=no
 
15133
  hardcode_into_libs=yes
 
15134
  dynamic_linker='GNU ld.so'
 
15135
  ;;
 
15136
 
15741
15137
freebsd* | dragonfly*)
15742
15138
  # DragonFly does not have aout.  When/if they implement a new
15743
15139
  # versioning mechanism, adjust this.
15744
 
  if test -x /usr/bin/objformat; then
15745
 
    objformat=`/usr/bin/objformat`
15746
 
  else
15747
 
    case $host_os in
15748
 
    freebsd[123]*) objformat=aout ;;
15749
 
    *) objformat=elf ;;
15750
 
    esac
15751
 
  fi
 
15140
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15752
15141
  version_type=freebsd-$objformat
15753
15142
  case $version_type in
15754
15143
    freebsd-elf*)
15770
15159
    shlibpath_overrides_runpath=yes
15771
15160
    hardcode_into_libs=yes
15772
15161
    ;;
15773
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15774
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15162
  *) # from 3.2 on
15775
15163
    shlibpath_overrides_runpath=no
15776
15164
    hardcode_into_libs=yes
15777
15165
    ;;
15778
 
  *) # from 4.6 on, and DragonFly
15779
 
    shlibpath_overrides_runpath=yes
15780
 
    hardcode_into_libs=yes
15781
 
    ;;
15782
15166
  esac
15783
15167
  ;;
15784
15168
 
15798
15182
  version_type=sunos
15799
15183
  need_lib_prefix=no
15800
15184
  need_version=no
15801
 
  case $host_cpu in
 
15185
  case "$host_cpu" in
15802
15186
  ia64*)
15803
15187
    shrext_cmds='.so'
15804
15188
    hardcode_into_libs=yes
15838
15222
  postinstall_cmds='chmod 555 $lib'
15839
15223
  ;;
15840
15224
 
15841
 
interix[3-9]*)
15842
 
  version_type=linux
15843
 
  need_lib_prefix=no
15844
 
  need_version=no
15845
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15846
 
  soname_spec='${libname}${release}${shared_ext}$major'
15847
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15848
 
  shlibpath_var=LD_LIBRARY_PATH
15849
 
  shlibpath_overrides_runpath=no
15850
 
  hardcode_into_libs=yes
15851
 
  ;;
15852
 
 
15853
15225
irix5* | irix6* | nonstopux*)
15854
15226
  case $host_os in
15855
15227
    nonstopux*) version_type=nonstopux ;;
15893
15265
  ;;
15894
15266
 
15895
15267
# This must be Linux ELF.
15896
 
linux* | k*bsd*-gnu)
 
15268
linux*)
15897
15269
  version_type=linux
15898
15270
  need_lib_prefix=no
15899
15271
  need_version=no
15909
15281
 
15910
15282
  # Append ld.so.conf contents to the search path
15911
15283
  if test -f /etc/ld.so.conf; then
15912
 
    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' ' '`
 
15284
    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' ' '`
15913
15285
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15914
15286
  fi
15915
15287
 
15922
15294
  dynamic_linker='GNU/Linux ld.so'
15923
15295
  ;;
15924
15296
 
15925
 
netbsdelf*-gnu)
 
15297
knetbsd*-gnu)
15926
15298
  version_type=linux
15927
15299
  need_lib_prefix=no
15928
15300
  need_version=no
15931
15303
  shlibpath_var=LD_LIBRARY_PATH
15932
15304
  shlibpath_overrides_runpath=no
15933
15305
  hardcode_into_libs=yes
15934
 
  dynamic_linker='NetBSD ld.elf_so'
 
15306
  dynamic_linker='GNU ld.so'
15935
15307
  ;;
15936
15308
 
15937
15309
netbsd*)
15971
15343
 
15972
15344
openbsd*)
15973
15345
  version_type=sunos
15974
 
  sys_lib_dlsearch_path_spec="/usr/lib"
15975
15346
  need_lib_prefix=no
15976
15347
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15977
15348
  case $host_os in
16015
15386
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16016
15387
  ;;
16017
15388
 
16018
 
rdos*)
16019
 
  dynamic_linker=no
 
15389
sco3.2v5*)
 
15390
  version_type=osf
 
15391
  soname_spec='${libname}${release}${shared_ext}$major'
 
15392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15393
  shlibpath_var=LD_LIBRARY_PATH
16020
15394
  ;;
16021
15395
 
16022
15396
solaris*)
16044
15418
  need_version=yes
16045
15419
  ;;
16046
15420
 
16047
 
sysv4 | sysv4.3*)
 
15421
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16048
15422
  version_type=linux
16049
15423
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050
15424
  soname_spec='${libname}${release}${shared_ext}$major'
16077
15451
  fi
16078
15452
  ;;
16079
15453
 
16080
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16081
 
  version_type=freebsd-elf
16082
 
  need_lib_prefix=no
16083
 
  need_version=no
16084
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16085
 
  soname_spec='${libname}${release}${shared_ext}$major'
16086
 
  shlibpath_var=LD_LIBRARY_PATH
16087
 
  hardcode_into_libs=yes
16088
 
  if test "$with_gnu_ld" = yes; then
16089
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16090
 
    shlibpath_overrides_runpath=no
16091
 
  else
16092
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16093
 
    shlibpath_overrides_runpath=yes
16094
 
    case $host_os in
16095
 
      sco3.2v5*)
16096
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16097
 
        ;;
16098
 
    esac
16099
 
  fi
16100
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16101
 
  ;;
16102
 
 
16103
15454
uts4*)
16104
15455
  version_type=linux
16105
15456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111
15462
  dynamic_linker=no
16112
15463
  ;;
16113
15464
esac
16114
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16115
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15465
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15466
echo "${ECHO_T}$dynamic_linker" >&6
16116
15467
test "$dynamic_linker" = no && can_build_shared=no
16117
15468
 
16118
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16119
 
if test "$GCC" = yes; then
16120
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16121
 
fi
16122
 
 
16123
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16124
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15469
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15470
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16125
15471
hardcode_action_F77=
16126
15472
if test -n "$hardcode_libdir_flag_spec_F77" || \
16127
15473
   test -n "$runpath_var_F77" || \
16145
15491
  # directories.
16146
15492
  hardcode_action_F77=unsupported
16147
15493
fi
16148
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16149
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
15494
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15495
echo "${ECHO_T}$hardcode_action_F77" >&6
16150
15496
 
16151
15497
if test "$hardcode_action_F77" = relink; then
16152
15498
  # Fast installation is not supported
16157
15503
  enable_fast_install=needless
16158
15504
fi
16159
15505
 
 
15506
striplib=
 
15507
old_striplib=
 
15508
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15509
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15510
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15511
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15512
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15513
  echo "$as_me:$LINENO: result: yes" >&5
 
15514
echo "${ECHO_T}yes" >&6
 
15515
else
 
15516
# FIXME - insert some real tests, host_os isn't really good enough
 
15517
  case $host_os in
 
15518
   darwin*)
 
15519
       if test -n "$STRIP" ; then
 
15520
         striplib="$STRIP -x"
 
15521
         echo "$as_me:$LINENO: result: yes" >&5
 
15522
echo "${ECHO_T}yes" >&6
 
15523
       else
 
15524
  echo "$as_me:$LINENO: result: no" >&5
 
15525
echo "${ECHO_T}no" >&6
 
15526
fi
 
15527
       ;;
 
15528
   *)
 
15529
  echo "$as_me:$LINENO: result: no" >&5
 
15530
echo "${ECHO_T}no" >&6
 
15531
    ;;
 
15532
  esac
 
15533
fi
 
15534
 
 
15535
 
16160
15536
 
16161
15537
# The else clause should only fire when bootstrapping the
16162
15538
# libtool distribution, otherwise you forgot to ship ltmain.sh
16171
15547
  # Now quote all the things that may contain metacharacters while being
16172
15548
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16173
15549
  # variables and quote the copies for generation of the libtool script.
16174
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15550
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16175
15551
    SED SHELL STRIP \
16176
15552
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16177
15553
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16213
15589
    module_cmds_F77 \
16214
15590
    module_expsym_cmds_F77 \
16215
15591
    lt_cv_prog_compiler_c_o_F77 \
16216
 
    fix_srcfile_path_F77 \
16217
15592
    exclude_expsyms_F77 \
16218
15593
    include_expsyms_F77; do
16219
15594
 
16290
15665
# A C compiler.
16291
15666
LTCC=$lt_LTCC
16292
15667
 
16293
 
# LTCC compiler flags.
16294
 
LTCFLAGS=$lt_LTCFLAGS
16295
 
 
16296
15668
# A language-specific compiler.
16297
15669
CC=$lt_compiler_F77
16298
15670
 
16534
15906
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16535
15907
 
16536
15908
# Fix the shell variable \$srcfile for the compiler.
16537
 
fix_srcfile_path=$lt_fix_srcfile_path
 
15909
fix_srcfile_path="$fix_srcfile_path_F77"
16538
15910
 
16539
15911
# Set to yes if exported symbols are required.
16540
15912
always_export_symbols=$always_export_symbols_F77
16584
15956
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16585
15957
 
16586
15958
 
 
15959
 
16587
15960
# Source file extension for Java test sources.
16588
15961
ac_ext=java
16589
15962
 
16592
15965
objext_GCJ=$objext
16593
15966
 
16594
15967
# Code to be used in simple compile tests
16595
 
lt_simple_compile_test_code="class foo {}"
 
15968
lt_simple_compile_test_code="class foo {}\n"
16596
15969
 
16597
15970
# Code to be used in simple link tests
16598
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
15971
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16599
15972
 
16600
15973
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16601
15974
 
16602
15975
# If no C compiler was specified, use CC.
16603
15976
LTCC=${LTCC-"$CC"}
16604
15977
 
16605
 
# If no C compiler flags were specified, use CFLAGS.
16606
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16607
 
 
16608
15978
# Allow CC to be a program name with arguments.
16609
15979
compiler=$CC
16610
15980
 
16611
15981
 
16612
15982
# save warnings/boilerplate of simple test code
16613
15983
ac_outfile=conftest.$ac_objext
16614
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16615
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15984
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15985
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16616
15986
_lt_compiler_boilerplate=`cat conftest.err`
16617
15987
$rm conftest*
16618
15988
 
16619
15989
ac_outfile=conftest.$ac_objext
16620
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16621
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15990
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15991
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16622
15992
_lt_linker_boilerplate=`cat conftest.err`
16623
15993
$rm conftest*
16624
15994
 
16651
16021
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16652
16022
 
16653
16023
 
16654
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16655
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16024
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16025
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16656
16026
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16657
16027
  echo $ECHO_N "(cached) $ECHO_C" >&6
16658
16028
else
16659
16029
  lt_cv_prog_compiler_rtti_exceptions=no
16660
16030
  ac_outfile=conftest.$ac_objext
16661
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16031
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16662
16032
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16663
16033
   # Insert the option either (1) after the last *FLAGS variable, or
16664
16034
   # (2) before a word containing "conftest.", or (3) at the end.
16666
16036
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16667
16037
   # The option is referenced via a variable to avoid confusing sed.
16668
16038
   lt_compile=`echo "$ac_compile" | $SED \
16669
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16039
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16670
16040
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16671
16041
   -e 's:$: $lt_compiler_flag:'`
16672
 
   (eval echo "\"\$as_me:16672: $lt_compile\"" >&5)
 
16042
   (eval echo "\"\$as_me:16042: $lt_compile\"" >&5)
16673
16043
   (eval "$lt_compile" 2>conftest.err)
16674
16044
   ac_status=$?
16675
16045
   cat conftest.err >&5
16676
 
   echo "$as_me:16676: \$? = $ac_status" >&5
 
16046
   echo "$as_me:16046: \$? = $ac_status" >&5
16677
16047
   if (exit $ac_status) && test -s "$ac_outfile"; then
16678
16048
     # The compiler can only warn and ignore the option if not recognized
16679
16049
     # So say no if there are warnings other than the usual output.
16680
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16681
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16682
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16050
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16051
     $SED '/^$/d' conftest.err >conftest.er2
 
16052
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16683
16053
       lt_cv_prog_compiler_rtti_exceptions=yes
16684
16054
     fi
16685
16055
   fi
16686
16056
   $rm conftest*
16687
16057
 
16688
16058
fi
16689
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16690
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16059
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16060
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16691
16061
 
16692
16062
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16693
16063
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16701
16071
lt_prog_compiler_pic_GCJ=
16702
16072
lt_prog_compiler_static_GCJ=
16703
16073
 
16704
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16705
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16074
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16075
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16706
16076
 
16707
16077
  if test "$GCC" = yes; then
16708
16078
    lt_prog_compiler_wl_GCJ='-Wl,'
16724
16094
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16725
16095
      ;;
16726
16096
 
16727
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16097
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16728
16098
      # PIC is the default for these OSes.
16729
16099
      ;;
16730
16100
 
16731
 
    mingw* | cygwin* | pw32* | os2*)
 
16101
    mingw* | pw32* | os2*)
16732
16102
      # This hack is so that the source file can tell whether it is being
16733
16103
      # built for inclusion in a dll (and should export symbols for example).
16734
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16735
 
      # (--disable-auto-import) libraries
16736
16104
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16737
16105
      ;;
16738
16106
 
16742
16110
      lt_prog_compiler_pic_GCJ='-fno-common'
16743
16111
      ;;
16744
16112
 
16745
 
    interix[3-9]*)
16746
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16747
 
      # Instead, we relocate shared libraries at runtime.
16748
 
      ;;
16749
 
 
16750
16113
    msdosdjgpp*)
16751
16114
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16752
16115
      # on systems that don't support them.
16763
16126
    hpux*)
16764
16127
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16765
16128
      # not for PA HP-UX.
16766
 
      case $host_cpu in
 
16129
      case "$host_cpu" in
16767
16130
      hppa*64*|ia64*)
16768
16131
        # +Z the default
16769
16132
        ;;
16800
16163
       esac
16801
16164
       ;;
16802
16165
 
16803
 
    mingw* | cygwin* | pw32* | os2*)
 
16166
    mingw* | pw32* | os2*)
16804
16167
      # This hack is so that the source file can tell whether it is being
16805
16168
      # built for inclusion in a dll (and should export symbols for example).
16806
16169
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16810
16173
      lt_prog_compiler_wl_GCJ='-Wl,'
16811
16174
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16812
16175
      # not for PA HP-UX.
16813
 
      case $host_cpu in
 
16176
      case "$host_cpu" in
16814
16177
      hppa*64*|ia64*)
16815
16178
        # +Z the default
16816
16179
        ;;
16833
16196
      lt_prog_compiler_static_GCJ='-Bstatic'
16834
16197
      ;;
16835
16198
 
16836
 
    linux* | k*bsd*-gnu)
 
16199
    linux*)
16837
16200
      case $cc_basename in
16838
16201
      icc* | ecc*)
16839
16202
        lt_prog_compiler_wl_GCJ='-Wl,'
16840
16203
        lt_prog_compiler_pic_GCJ='-KPIC'
16841
16204
        lt_prog_compiler_static_GCJ='-static'
16842
16205
        ;;
16843
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16206
      pgcc* | pgf77* | pgf90*)
16844
16207
        # Portland Group compilers (*not* the Pentium gcc compiler,
16845
16208
        # which looks to be a dead project)
16846
16209
        lt_prog_compiler_wl_GCJ='-Wl,'
16847
16210
        lt_prog_compiler_pic_GCJ='-fpic'
16848
 
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16211
        lt_prog_compiler_static_GCJ='-static'
16849
16212
        ;;
16850
16213
      ccc*)
16851
16214
        lt_prog_compiler_wl_GCJ='-Wl,'
16852
16215
        # All Alpha code is PIC.
16853
16216
        lt_prog_compiler_static_GCJ='-non_shared'
16854
16217
        ;;
16855
 
      *)
16856
 
        case `$CC -V 2>&1 | sed 5q` in
16857
 
        *Sun\ C*)
16858
 
          # Sun C 5.9
16859
 
          lt_prog_compiler_pic_GCJ='-KPIC'
16860
 
          lt_prog_compiler_static_GCJ='-Bstatic'
16861
 
          lt_prog_compiler_wl_GCJ='-Wl,'
16862
 
          ;;
16863
 
        *Sun\ F*)
16864
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
16865
 
          lt_prog_compiler_pic_GCJ='-KPIC'
16866
 
          lt_prog_compiler_static_GCJ='-Bstatic'
16867
 
          lt_prog_compiler_wl_GCJ=''
16868
 
          ;;
16869
 
        esac
16870
 
        ;;
16871
16218
      esac
16872
16219
      ;;
16873
16220
 
16877
16224
      lt_prog_compiler_static_GCJ='-non_shared'
16878
16225
      ;;
16879
16226
 
16880
 
    rdos*)
16881
 
      lt_prog_compiler_static_GCJ='-non_shared'
 
16227
    sco3.2v5*)
 
16228
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16229
      lt_prog_compiler_static_GCJ='-dn'
16882
16230
      ;;
16883
16231
 
16884
16232
    solaris*)
16898
16246
      lt_prog_compiler_static_GCJ='-Bstatic'
16899
16247
      ;;
16900
16248
 
16901
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16249
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16902
16250
      lt_prog_compiler_wl_GCJ='-Wl,'
16903
16251
      lt_prog_compiler_pic_GCJ='-KPIC'
16904
16252
      lt_prog_compiler_static_GCJ='-Bstatic'
16911
16259
      fi
16912
16260
      ;;
16913
16261
 
16914
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16915
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16916
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16917
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16918
 
      ;;
16919
 
 
16920
16262
    unicos*)
16921
16263
      lt_prog_compiler_wl_GCJ='-Wl,'
16922
16264
      lt_prog_compiler_can_build_shared_GCJ=no
16933
16275
    esac
16934
16276
  fi
16935
16277
 
16936
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16937
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16278
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16279
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16938
16280
 
16939
16281
#
16940
16282
# Check to make sure the PIC flag actually works.
16941
16283
#
16942
16284
if test -n "$lt_prog_compiler_pic_GCJ"; then
16943
16285
 
16944
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16945
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16286
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16287
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16946
16288
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16947
16289
  echo $ECHO_N "(cached) $ECHO_C" >&6
16948
16290
else
16949
16291
  lt_prog_compiler_pic_works_GCJ=no
16950
16292
  ac_outfile=conftest.$ac_objext
16951
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16293
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16952
16294
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16953
16295
   # Insert the option either (1) after the last *FLAGS variable, or
16954
16296
   # (2) before a word containing "conftest.", or (3) at the end.
16956
16298
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16957
16299
   # The option is referenced via a variable to avoid confusing sed.
16958
16300
   lt_compile=`echo "$ac_compile" | $SED \
16959
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16301
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16960
16302
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16961
16303
   -e 's:$: $lt_compiler_flag:'`
16962
 
   (eval echo "\"\$as_me:16962: $lt_compile\"" >&5)
 
16304
   (eval echo "\"\$as_me:16304: $lt_compile\"" >&5)
16963
16305
   (eval "$lt_compile" 2>conftest.err)
16964
16306
   ac_status=$?
16965
16307
   cat conftest.err >&5
16966
 
   echo "$as_me:16966: \$? = $ac_status" >&5
 
16308
   echo "$as_me:16308: \$? = $ac_status" >&5
16967
16309
   if (exit $ac_status) && test -s "$ac_outfile"; then
16968
16310
     # The compiler can only warn and ignore the option if not recognized
16969
16311
     # So say no if there are warnings other than the usual output.
16970
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16971
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16972
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16312
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16313
     $SED '/^$/d' conftest.err >conftest.er2
 
16314
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16973
16315
       lt_prog_compiler_pic_works_GCJ=yes
16974
16316
     fi
16975
16317
   fi
16976
16318
   $rm conftest*
16977
16319
 
16978
16320
fi
16979
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16980
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16321
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16322
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16981
16323
 
16982
16324
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16983
16325
    case $lt_prog_compiler_pic_GCJ in
16990
16332
fi
16991
16333
 
16992
16334
fi
16993
 
case $host_os in
 
16335
case "$host_os" in
16994
16336
  # For platforms which do not support PIC, -DPIC is meaningless:
16995
16337
  *djgpp*)
16996
16338
    lt_prog_compiler_pic_GCJ=
17000
16342
    ;;
17001
16343
esac
17002
16344
 
17003
 
#
17004
 
# Check to make sure the static flag actually works.
17005
 
#
17006
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17007
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17008
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17009
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17010
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17011
 
else
17012
 
  lt_prog_compiler_static_works_GCJ=no
17013
 
   save_LDFLAGS="$LDFLAGS"
17014
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17015
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17016
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17017
 
     # The linker can only warn and ignore the option if not recognized
17018
 
     # So say no if there are warnings
17019
 
     if test -s conftest.err; then
17020
 
       # Append any errors to the config.log.
17021
 
       cat conftest.err 1>&5
17022
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17023
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17024
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17025
 
         lt_prog_compiler_static_works_GCJ=yes
17026
 
       fi
17027
 
     else
17028
 
       lt_prog_compiler_static_works_GCJ=yes
17029
 
     fi
17030
 
   fi
17031
 
   $rm conftest*
17032
 
   LDFLAGS="$save_LDFLAGS"
17033
 
 
17034
 
fi
17035
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17036
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17037
 
 
17038
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17039
 
    :
17040
 
else
17041
 
    lt_prog_compiler_static_GCJ=
17042
 
fi
17043
 
 
17044
 
 
17045
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17046
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16345
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16346
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17047
16347
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17048
16348
  echo $ECHO_N "(cached) $ECHO_C" >&6
17049
16349
else
17052
16352
   mkdir conftest
17053
16353
   cd conftest
17054
16354
   mkdir out
17055
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16355
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17056
16356
 
17057
16357
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17058
16358
   # Insert the option either (1) after the last *FLAGS variable, or
17060
16360
   # Note that $ac_compile itself does not contain backslashes and begins
17061
16361
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17062
16362
   lt_compile=`echo "$ac_compile" | $SED \
17063
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16363
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17064
16364
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17065
16365
   -e 's:$: $lt_compiler_flag:'`
17066
 
   (eval echo "\"\$as_me:17066: $lt_compile\"" >&5)
 
16366
   (eval echo "\"\$as_me:16366: $lt_compile\"" >&5)
17067
16367
   (eval "$lt_compile" 2>out/conftest.err)
17068
16368
   ac_status=$?
17069
16369
   cat out/conftest.err >&5
17070
 
   echo "$as_me:17070: \$? = $ac_status" >&5
 
16370
   echo "$as_me:16370: \$? = $ac_status" >&5
17071
16371
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17072
16372
   then
17073
16373
     # The compiler can only warn and ignore the option if not recognized
17074
16374
     # So say no if there are warnings
17075
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17076
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17077
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16375
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
16376
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
16377
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17078
16378
       lt_cv_prog_compiler_c_o_GCJ=yes
17079
16379
     fi
17080
16380
   fi
17081
 
   chmod u+w . 2>&5
 
16381
   chmod u+w .
17082
16382
   $rm conftest*
17083
16383
   # SGI C++ compiler will create directory out/ii_files/ for
17084
16384
   # template instantiation
17089
16389
   $rm conftest*
17090
16390
 
17091
16391
fi
17092
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17093
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16392
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16393
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17094
16394
 
17095
16395
 
17096
16396
hard_links="nottested"
17097
16397
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17098
16398
  # do not overwrite the value of need_locks provided by the user
17099
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17100
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16399
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16400
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17101
16401
  hard_links=yes
17102
16402
  $rm conftest*
17103
16403
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17104
16404
  touch conftest.a
17105
16405
  ln conftest.a conftest.b 2>&5 || hard_links=no
17106
16406
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17107
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17108
 
echo "${ECHO_T}$hard_links" >&6; }
 
16407
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16408
echo "${ECHO_T}$hard_links" >&6
17109
16409
  if test "$hard_links" = no; then
17110
16410
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17111
16411
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17115
16415
  need_locks=no
17116
16416
fi
17117
16417
 
17118
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17119
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16418
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16419
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17120
16420
 
17121
16421
  runpath_var=
17122
16422
  allow_undefined_flag_GCJ=
17174
16474
      with_gnu_ld=no
17175
16475
    fi
17176
16476
    ;;
17177
 
  interix*)
17178
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17179
 
    with_gnu_ld=yes
17180
 
    ;;
17181
16477
  openbsd*)
17182
16478
    with_gnu_ld=no
17183
16479
    ;;
17259
16555
      allow_undefined_flag_GCJ=unsupported
17260
16556
      always_export_symbols_GCJ=no
17261
16557
      enable_shared_with_static_runtimes_GCJ=yes
17262
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
16558
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17263
16559
 
17264
16560
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17265
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16561
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17266
16562
        # If the export-symbols file already is a .def file (1st line
17267
16563
        # is EXPORTS), use it as is; otherwise, prepend...
17268
16564
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17271
16567
          echo EXPORTS > $output_objdir/$soname.def;
17272
16568
          cat $export_symbols >> $output_objdir/$soname.def;
17273
16569
        fi~
17274
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16570
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17275
16571
      else
17276
16572
        ld_shlibs_GCJ=no
17277
16573
      fi
17278
16574
      ;;
17279
16575
 
17280
 
    interix[3-9]*)
17281
 
      hardcode_direct_GCJ=no
17282
 
      hardcode_shlibpath_var_GCJ=no
17283
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17284
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17285
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17286
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17287
 
      # default) and relocated if they conflict, which is a slow very memory
17288
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17289
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17290
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17291
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17292
 
      archive_expsym_cmds_GCJ='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'
17293
 
      ;;
17294
 
 
17295
 
    gnu* | linux* | k*bsd*-gnu)
 
16576
    linux*)
17296
16577
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17297
16578
        tmp_addflag=
17298
16579
        case $cc_basename,$host_cpu in
17299
16580
        pgcc*)                          # Portland Group C compiler
17300
 
          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'
 
16581
          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'
17301
16582
          tmp_addflag=' $pic_flag'
17302
16583
          ;;
17303
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17304
 
          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'
 
16584
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
16585
          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'
17305
16586
          tmp_addflag=' $pic_flag -Mnomain' ;;
17306
16587
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17307
16588
          tmp_addflag=' -i_dynamic' ;;
17310
16591
        ifc* | ifort*)                  # Intel Fortran compiler
17311
16592
          tmp_addflag=' -nofor_main' ;;
17312
16593
        esac
17313
 
        case `$CC -V 2>&1 | sed 5q` in
17314
 
        *Sun\ C*)                       # Sun C 5.9
17315
 
          whole_archive_flag_spec_GCJ='${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'
17316
 
          tmp_sharedflag='-G' ;;
17317
 
        *Sun\ F*)                       # Sun Fortran 8.3
17318
 
          tmp_sharedflag='-G' ;;
17319
 
        *)
17320
 
          tmp_sharedflag='-shared' ;;
17321
 
        esac
17322
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16594
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17323
16595
 
17324
16596
        if test $supports_anon_versioning = yes; then
17325
16597
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17326
16598
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17327
16599
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17328
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16600
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17329
16601
        fi
17330
 
        link_all_deplibs_GCJ=no
17331
16602
      else
17332
16603
        ld_shlibs_GCJ=no
17333
16604
      fi
17334
16605
      ;;
17335
16606
 
17336
 
    netbsd* | netbsdelf*-gnu)
 
16607
    netbsd*)
17337
16608
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17338
16609
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17339
16610
        wlarc=
17343
16614
      fi
17344
16615
      ;;
17345
16616
 
17346
 
    solaris*)
 
16617
    solaris* | sysv5*)
17347
16618
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17348
16619
        ld_shlibs_GCJ=no
17349
16620
        cat <<EOF 1>&2
17364
16635
      fi
17365
16636
      ;;
17366
16637
 
17367
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17368
 
      case `$LD -v 2>&1` in
17369
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17370
 
        ld_shlibs_GCJ=no
17371
 
        cat <<_LT_EOF 1>&2
17372
 
 
17373
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17374
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17375
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17376
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17377
 
*** your PATH or compiler configuration so that the native linker is
17378
 
*** used, and then restart.
17379
 
 
17380
 
_LT_EOF
17381
 
        ;;
17382
 
        *)
17383
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17384
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17385
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17386
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17387
 
          else
17388
 
            ld_shlibs_GCJ=no
17389
 
          fi
17390
 
        ;;
17391
 
      esac
17392
 
      ;;
17393
 
 
17394
16638
    sunos4*)
17395
16639
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17396
16640
      wlarc=
17424
16668
      # Note: this linker hardcodes the directories in LIBPATH if there
17425
16669
      # are no directories specified by -L.
17426
16670
      hardcode_minus_L_GCJ=yes
17427
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16671
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17428
16672
        # Neither direct hardcoding nor static linking is supported with a
17429
16673
        # broken collect2.
17430
16674
        hardcode_direct_GCJ=unsupported
17458
16702
            break
17459
16703
          fi
17460
16704
          done
17461
 
          ;;
17462
16705
        esac
17463
16706
 
17464
16707
        exp_sym_flag='-bexport'
17485
16728
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17486
16729
          then
17487
16730
          # We have reworked collect2
17488
 
          :
 
16731
          hardcode_direct_GCJ=yes
17489
16732
          else
17490
16733
          # We have old collect2
17491
16734
          hardcode_direct_GCJ=unsupported
17496
16739
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17497
16740
          hardcode_libdir_separator_GCJ=
17498
16741
          fi
17499
 
          ;;
17500
16742
        esac
17501
16743
        shared_flag='-shared'
17502
16744
        if test "$aix_use_runtimelinking" = yes; then
17509
16751
        # chokes on -Wl,-G. The following line is correct:
17510
16752
          shared_flag='-G'
17511
16753
        else
17512
 
          if test "$aix_use_runtimelinking" = yes; then
 
16754
        if test "$aix_use_runtimelinking" = yes; then
17513
16755
            shared_flag='${wl}-G'
17514
16756
          else
17515
16757
            shared_flag='${wl}-bM:SRE'
17516
 
          fi
 
16758
        fi
17517
16759
        fi
17518
16760
      fi
17519
16761
 
17541
16783
}
17542
16784
_ACEOF
17543
16785
rm -f conftest.$ac_objext conftest$ac_exeext
17544
 
if { (ac_try="$ac_link"
17545
 
case "(($ac_try" in
17546
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547
 
  *) ac_try_echo=$ac_try;;
17548
 
esac
17549
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550
 
  (eval "$ac_link") 2>conftest.er1
 
16786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16787
  (eval $ac_link) 2>conftest.er1
17551
16788
  ac_status=$?
17552
16789
  grep -v '^ *+' conftest.er1 >conftest.err
17553
16790
  rm -f conftest.er1
17554
16791
  cat conftest.err >&5
17555
16792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556
 
  (exit $ac_status); } && {
17557
 
         test -z "$ac_c_werror_flag" ||
17558
 
         test ! -s conftest.err
17559
 
       } && test -s conftest$ac_exeext &&
17560
 
       $as_test_x conftest$ac_exeext; then
 
16793
  (exit $ac_status); } &&
 
16794
         { ac_try='test -z "$ac_c_werror_flag"
 
16795
                         || test ! -s conftest.err'
 
16796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16797
  (eval $ac_try) 2>&5
 
16798
  ac_status=$?
 
16799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16800
  (exit $ac_status); }; } &&
 
16801
         { ac_try='test -s conftest$ac_exeext'
 
16802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16803
  (eval $ac_try) 2>&5
 
16804
  ac_status=$?
 
16805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16806
  (exit $ac_status); }; }; then
17561
16807
 
17562
 
lt_aix_libpath_sed='
17563
 
    /Import File Strings/,/^$/ {
17564
 
        /^0/ {
17565
 
            s/^0  *\(.*\)$/\1/
17566
 
            p
17567
 
        }
17568
 
    }'
17569
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16808
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16809
}'`
17570
16810
# Check for a 64-bit object if we didn't find anything.
17571
 
if test -z "$aix_libpath"; then
17572
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17573
 
fi
 
16811
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; }
 
16812
}'`; fi
17574
16813
else
17575
16814
  echo "$as_me: failed program was:" >&5
17576
16815
sed 's/^/| /' conftest.$ac_ext >&5
17577
16816
 
17578
 
 
17579
16817
fi
17580
 
 
17581
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16818
rm -f conftest.err conftest.$ac_objext \
17582
16819
      conftest$ac_exeext conftest.$ac_ext
17583
16820
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17584
16821
 
17585
16822
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17586
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16823
        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"
17587
16824
       else
17588
16825
        if test "$host_cpu" = ia64; then
17589
16826
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17590
16827
          allow_undefined_flag_GCJ="-z nodefs"
17591
 
          archive_expsym_cmds_GCJ="\$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"
 
16828
          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"
17592
16829
        else
17593
16830
         # Determine the default libpath from the value encoded in an empty executable.
17594
16831
         cat >conftest.$ac_ext <<_ACEOF
17607
16844
}
17608
16845
_ACEOF
17609
16846
rm -f conftest.$ac_objext conftest$ac_exeext
17610
 
if { (ac_try="$ac_link"
17611
 
case "(($ac_try" in
17612
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613
 
  *) ac_try_echo=$ac_try;;
17614
 
esac
17615
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616
 
  (eval "$ac_link") 2>conftest.er1
 
16847
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16848
  (eval $ac_link) 2>conftest.er1
17617
16849
  ac_status=$?
17618
16850
  grep -v '^ *+' conftest.er1 >conftest.err
17619
16851
  rm -f conftest.er1
17620
16852
  cat conftest.err >&5
17621
16853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622
 
  (exit $ac_status); } && {
17623
 
         test -z "$ac_c_werror_flag" ||
17624
 
         test ! -s conftest.err
17625
 
       } && test -s conftest$ac_exeext &&
17626
 
       $as_test_x conftest$ac_exeext; then
 
16854
  (exit $ac_status); } &&
 
16855
         { ac_try='test -z "$ac_c_werror_flag"
 
16856
                         || test ! -s conftest.err'
 
16857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16858
  (eval $ac_try) 2>&5
 
16859
  ac_status=$?
 
16860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16861
  (exit $ac_status); }; } &&
 
16862
         { ac_try='test -s conftest$ac_exeext'
 
16863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16864
  (eval $ac_try) 2>&5
 
16865
  ac_status=$?
 
16866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16867
  (exit $ac_status); }; }; then
17627
16868
 
17628
 
lt_aix_libpath_sed='
17629
 
    /Import File Strings/,/^$/ {
17630
 
        /^0/ {
17631
 
            s/^0  *\(.*\)$/\1/
17632
 
            p
17633
 
        }
17634
 
    }'
17635
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16869
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16870
}'`
17636
16871
# Check for a 64-bit object if we didn't find anything.
17637
 
if test -z "$aix_libpath"; then
17638
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17639
 
fi
 
16872
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; }
 
16873
}'`; fi
17640
16874
else
17641
16875
  echo "$as_me: failed program was:" >&5
17642
16876
sed 's/^/| /' conftest.$ac_ext >&5
17643
16877
 
17644
 
 
17645
16878
fi
17646
 
 
17647
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16879
rm -f conftest.err conftest.$ac_objext \
17648
16880
      conftest$ac_exeext conftest.$ac_ext
17649
16881
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17650
16882
 
17653
16885
          # -berok will link without error, but may produce a broken library.
17654
16886
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17655
16887
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16888
          # -bexpall does not export symbols beginning with underscore (_)
 
16889
          always_export_symbols_GCJ=yes
17656
16890
          # Exported symbols can be pulled into shared objects from archives
17657
 
          whole_archive_flag_spec_GCJ='$convenience'
 
16891
          whole_archive_flag_spec_GCJ=' '
17658
16892
          archive_cmds_need_lc_GCJ=yes
17659
 
          # This is similar to how AIX traditionally builds its shared libraries.
17660
 
          archive_expsym_cmds_GCJ="\$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'
 
16893
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16894
          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'
17661
16895
        fi
17662
16896
      fi
17663
16897
      ;;
17690
16924
      # The linker will automatically build a .lib file if we build a DLL.
17691
16925
      old_archive_From_new_cmds_GCJ='true'
17692
16926
      # FIXME: Should let the user specify the lib program.
17693
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
16927
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17694
16928
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17695
16929
      enable_shared_with_static_runtimes_GCJ=yes
17696
16930
      ;;
17697
16931
 
17698
16932
    darwin* | rhapsody*)
17699
 
      case $host_os in
 
16933
      case "$host_os" in
17700
16934
        rhapsody* | darwin1.[012])
17701
16935
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17702
16936
         ;;
17725
16959
        output_verbose_link_cmd='echo'
17726
16960
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17727
16961
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17728
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16962
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17729
16963
      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}'
17730
16964
      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}'
17731
16965
    else
17732
16966
      case $cc_basename in
17733
16967
        xlc*)
17734
16968
         output_verbose_link_cmd='echo'
17735
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
16969
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17736
16970
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17737
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17738
 
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16971
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16972
         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}'
17739
16973
          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}'
17740
16974
          ;;
17741
16975
       *)
17775
17009
      ;;
17776
17010
 
17777
17011
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17778
 
    freebsd* | dragonfly*)
 
17012
    freebsd* | kfreebsd*-gnu | dragonfly*)
17779
17013
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17780
17014
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17781
17015
      hardcode_direct_GCJ=yes
17798
17032
      export_dynamic_flag_spec_GCJ='${wl}-E'
17799
17033
      ;;
17800
17034
 
17801
 
    hpux10*)
17802
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17803
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17804
 
      else
17805
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17806
 
      fi
17807
 
      if test "$with_gnu_ld" = no; then
17808
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17809
 
        hardcode_libdir_separator_GCJ=:
17810
 
 
17811
 
        hardcode_direct_GCJ=yes
17812
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17813
 
 
17814
 
        # hardcode_minus_L: Not really in the search PATH,
17815
 
        # but as the default location of the library.
17816
 
        hardcode_minus_L_GCJ=yes
17817
 
      fi
17818
 
      ;;
17819
 
 
17820
 
    hpux11*)
17821
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17822
 
        case $host_cpu in
17823
 
        hppa*64*)
 
17035
    hpux10* | hpux11*)
 
17036
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17037
        case "$host_cpu" in
 
17038
        hppa*64*|ia64*)
17824
17039
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825
17040
          ;;
17826
 
        ia64*)
17827
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17828
 
          ;;
17829
17041
        *)
17830
17042
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17831
17043
          ;;
17832
17044
        esac
17833
17045
      else
17834
 
        case $host_cpu in
17835
 
        hppa*64*)
17836
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837
 
          ;;
17838
 
        ia64*)
17839
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17046
        case "$host_cpu" in
 
17047
        hppa*64*|ia64*)
 
17048
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17840
17049
          ;;
17841
17050
        *)
17842
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17051
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17843
17052
          ;;
17844
17053
        esac
17845
17054
      fi
17846
17055
      if test "$with_gnu_ld" = no; then
17847
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17848
 
        hardcode_libdir_separator_GCJ=:
17849
 
 
17850
 
        case $host_cpu in
17851
 
        hppa*64*|ia64*)
 
17056
        case "$host_cpu" in
 
17057
        hppa*64*)
 
17058
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17852
17059
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17853
 
          hardcode_direct_GCJ=no
17854
 
          hardcode_shlibpath_var_GCJ=no
 
17060
          hardcode_libdir_separator_GCJ=:
 
17061
          hardcode_direct_GCJ=no
 
17062
          hardcode_shlibpath_var_GCJ=no
 
17063
          ;;
 
17064
        ia64*)
 
17065
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17066
          hardcode_direct_GCJ=no
 
17067
          hardcode_shlibpath_var_GCJ=no
 
17068
 
 
17069
          # hardcode_minus_L: Not really in the search PATH,
 
17070
          # but as the default location of the library.
 
17071
          hardcode_minus_L_GCJ=yes
17855
17072
          ;;
17856
17073
        *)
 
17074
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17075
          hardcode_libdir_separator_GCJ=:
17857
17076
          hardcode_direct_GCJ=yes
17858
17077
          export_dynamic_flag_spec_GCJ='${wl}-E'
17859
17078
 
17877
17096
      link_all_deplibs_GCJ=yes
17878
17097
      ;;
17879
17098
 
17880
 
    netbsd* | netbsdelf*-gnu)
 
17099
    netbsd*)
17881
17100
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17882
17101
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17883
17102
      else
17897
17116
      ;;
17898
17117
 
17899
17118
    openbsd*)
17900
 
      if test -f /usr/libexec/ld.so; then
17901
 
        hardcode_direct_GCJ=yes
17902
 
        hardcode_shlibpath_var_GCJ=no
17903
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17904
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17905
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17906
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17907
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17908
 
        else
17909
 
          case $host_os in
17910
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17911
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17912
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913
 
             ;;
17914
 
           *)
17915
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17916
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17917
 
             ;;
17918
 
          esac
17919
 
        fi
 
17119
      hardcode_direct_GCJ=yes
 
17120
      hardcode_shlibpath_var_GCJ=no
 
17121
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17122
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17123
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17124
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17125
        export_dynamic_flag_spec_GCJ='${wl}-E'
17920
17126
      else
17921
 
        ld_shlibs_GCJ=no
 
17127
       case $host_os in
 
17128
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17129
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17130
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17131
           ;;
 
17132
         *)
 
17133
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17134
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17135
           ;;
 
17136
       esac
17922
17137
      fi
17923
17138
      ;;
17924
17139
 
17959
17174
      hardcode_libdir_separator_GCJ=:
17960
17175
      ;;
17961
17176
 
 
17177
    sco3.2v5*)
 
17178
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17179
      hardcode_shlibpath_var_GCJ=no
 
17180
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17181
      runpath_var=LD_RUN_PATH
 
17182
      hardcode_runpath_var=yes
 
17183
      ;;
 
17184
 
17962
17185
    solaris*)
17963
17186
      no_undefined_flag_GCJ=' -z text'
17964
17187
      if test "$GCC" = yes; then
17977
17200
      case $host_os in
17978
17201
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17979
17202
      *)
17980
 
        # The compiler driver will combine and reorder linker options,
17981
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
17982
 
        # but is careful enough not to reorder.
 
17203
        # The compiler driver will combine linker options so we
 
17204
        # cannot just pass the convience library names through
 
17205
        # without $wl, iff we do not link with $LD.
 
17206
        # Luckily, gcc supports the same syntax we need for Sun Studio.
17983
17207
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17984
 
        if test "$GCC" = yes; then
17985
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17986
 
        else
17987
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17988
 
        fi
17989
 
        ;;
 
17208
        case $wlarc in
 
17209
        '')
 
17210
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17211
        *)
 
17212
          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' ;;
 
17213
        esac ;;
17990
17214
      esac
17991
17215
      link_all_deplibs_GCJ=yes
17992
17216
      ;;
18043
17267
      fi
18044
17268
      ;;
18045
17269
 
18046
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18047
 
      no_undefined_flag_GCJ='${wl}-z,text'
18048
 
      archive_cmds_need_lc_GCJ=no
18049
 
      hardcode_shlibpath_var_GCJ=no
18050
 
      runpath_var='LD_RUN_PATH'
18051
 
 
18052
 
      if test "$GCC" = yes; then
18053
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18054
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18055
 
      else
18056
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18057
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058
 
      fi
18059
 
      ;;
18060
 
 
18061
 
    sysv5* | sco3.2v5* | sco5v6*)
18062
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18063
 
      # link with -lc, and that would cause any symbols used from libc to
18064
 
      # always be unresolved, which means just about no library would
18065
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18066
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18067
 
      # as -z defs.
18068
 
      no_undefined_flag_GCJ='${wl}-z,text'
18069
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18070
 
      archive_cmds_need_lc_GCJ=no
18071
 
      hardcode_shlibpath_var_GCJ=no
18072
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18073
 
      hardcode_libdir_separator_GCJ=':'
18074
 
      link_all_deplibs_GCJ=yes
18075
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18076
 
      runpath_var='LD_RUN_PATH'
18077
 
 
18078
 
      if test "$GCC" = yes; then
18079
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18080
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18081
 
      else
18082
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18083
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18084
 
      fi
 
17270
    sysv4.2uw2*)
 
17271
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17272
      hardcode_direct_GCJ=yes
 
17273
      hardcode_minus_L_GCJ=no
 
17274
      hardcode_shlibpath_var_GCJ=no
 
17275
      hardcode_runpath_var=yes
 
17276
      runpath_var=LD_RUN_PATH
 
17277
      ;;
 
17278
 
 
17279
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17280
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17281
      if test "$GCC" = yes; then
 
17282
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17283
      else
 
17284
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17285
      fi
 
17286
      runpath_var='LD_RUN_PATH'
 
17287
      hardcode_shlibpath_var_GCJ=no
 
17288
      ;;
 
17289
 
 
17290
    sysv5*)
 
17291
      no_undefined_flag_GCJ=' -z text'
 
17292
      # $CC -shared without GNU ld will not create a library from C++
 
17293
      # object files and a static libstdc++, better avoid it by now
 
17294
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17295
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17296
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17297
      hardcode_libdir_flag_spec_GCJ=
 
17298
      hardcode_shlibpath_var_GCJ=no
 
17299
      runpath_var='LD_RUN_PATH'
18085
17300
      ;;
18086
17301
 
18087
17302
    uts4*)
18096
17311
    esac
18097
17312
  fi
18098
17313
 
18099
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18100
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17314
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17315
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18101
17316
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18102
17317
 
 
17318
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17319
if test "$GCC" = yes; then
 
17320
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17321
fi
 
17322
 
18103
17323
#
18104
17324
# Do we need to explicitly link libc?
18105
17325
#
18117
17337
      # Test whether the compiler implicitly links with -lc since on some
18118
17338
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18119
17339
      # to ld, don't add -lc before -lgcc.
18120
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18121
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17340
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17341
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18122
17342
      $rm conftest*
18123
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17343
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18124
17344
 
18125
17345
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18126
17346
  (eval $ac_compile) 2>&5
18132
17352
        libobjs=conftest.$ac_objext
18133
17353
        deplibs=
18134
17354
        wl=$lt_prog_compiler_wl_GCJ
18135
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18136
17355
        compiler_flags=-v
18137
17356
        linker_flags=-v
18138
17357
        verstring=
18155
17374
        cat conftest.err 1>&5
18156
17375
      fi
18157
17376
      $rm conftest*
18158
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18159
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
17377
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17378
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18160
17379
      ;;
18161
17380
    esac
18162
17381
  fi
18163
17382
  ;;
18164
17383
esac
18165
17384
 
18166
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18167
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17385
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17386
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18168
17387
library_names_spec=
18169
17388
libname_spec='lib$name'
18170
17389
soname_spec=
18178
17397
version_type=none
18179
17398
dynamic_linker="$host_os ld.so"
18180
17399
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18181
 
 
 
17400
if test "$GCC" = yes; then
 
17401
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17402
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17403
    # if the path contains ";" then we assume it to be the separator
 
17404
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17405
    # assumed that no part of a normal pathname contains ";" but that should
 
17406
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17407
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17408
  else
 
17409
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17410
  fi
 
17411
else
 
17412
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17413
fi
18182
17414
need_lib_prefix=unknown
18183
17415
hardcode_into_libs=no
18184
17416
 
18280
17512
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18281
17513
      dldir=$destdir/`dirname \$dlpath`~
18282
17514
      test -d \$dldir || mkdir -p \$dldir~
18283
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18284
 
      chmod a+x \$dldir/$dlname'
 
17515
      $install_prog $dir/$dlname \$dldir/$dlname'
18285
17516
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18286
17517
      dlpath=$dir/\$dldll~
18287
17518
       $rm \$dlpath'
18334
17565
  soname_spec='${libname}${release}${major}$shared_ext'
18335
17566
  shlibpath_overrides_runpath=yes
18336
17567
  shlibpath_var=DYLD_LIBRARY_PATH
18337
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18338
 
 
 
17568
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17569
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17570
  if test "$GCC" = yes; then
 
17571
    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"`
 
17572
  else
 
17573
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17574
  fi
18339
17575
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18340
17576
  ;;
18341
17577
 
18352
17588
  dynamic_linker=no
18353
17589
  ;;
18354
17590
 
 
17591
kfreebsd*-gnu)
 
17592
  version_type=linux
 
17593
  need_lib_prefix=no
 
17594
  need_version=no
 
17595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17596
  soname_spec='${libname}${release}${shared_ext}$major'
 
17597
  shlibpath_var=LD_LIBRARY_PATH
 
17598
  shlibpath_overrides_runpath=no
 
17599
  hardcode_into_libs=yes
 
17600
  dynamic_linker='GNU ld.so'
 
17601
  ;;
 
17602
 
18355
17603
freebsd* | dragonfly*)
18356
17604
  # DragonFly does not have aout.  When/if they implement a new
18357
17605
  # versioning mechanism, adjust this.
18358
 
  if test -x /usr/bin/objformat; then
18359
 
    objformat=`/usr/bin/objformat`
18360
 
  else
18361
 
    case $host_os in
18362
 
    freebsd[123]*) objformat=aout ;;
18363
 
    *) objformat=elf ;;
18364
 
    esac
18365
 
  fi
 
17606
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18366
17607
  version_type=freebsd-$objformat
18367
17608
  case $version_type in
18368
17609
    freebsd-elf*)
18384
17625
    shlibpath_overrides_runpath=yes
18385
17626
    hardcode_into_libs=yes
18386
17627
    ;;
18387
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18388
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17628
  *) # from 3.2 on
18389
17629
    shlibpath_overrides_runpath=no
18390
17630
    hardcode_into_libs=yes
18391
17631
    ;;
18392
 
  *) # from 4.6 on, and DragonFly
18393
 
    shlibpath_overrides_runpath=yes
18394
 
    hardcode_into_libs=yes
18395
 
    ;;
18396
17632
  esac
18397
17633
  ;;
18398
17634
 
18412
17648
  version_type=sunos
18413
17649
  need_lib_prefix=no
18414
17650
  need_version=no
18415
 
  case $host_cpu in
 
17651
  case "$host_cpu" in
18416
17652
  ia64*)
18417
17653
    shrext_cmds='.so'
18418
17654
    hardcode_into_libs=yes
18452
17688
  postinstall_cmds='chmod 555 $lib'
18453
17689
  ;;
18454
17690
 
18455
 
interix[3-9]*)
18456
 
  version_type=linux
18457
 
  need_lib_prefix=no
18458
 
  need_version=no
18459
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18460
 
  soname_spec='${libname}${release}${shared_ext}$major'
18461
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18462
 
  shlibpath_var=LD_LIBRARY_PATH
18463
 
  shlibpath_overrides_runpath=no
18464
 
  hardcode_into_libs=yes
18465
 
  ;;
18466
 
 
18467
17691
irix5* | irix6* | nonstopux*)
18468
17692
  case $host_os in
18469
17693
    nonstopux*) version_type=nonstopux ;;
18507
17731
  ;;
18508
17732
 
18509
17733
# This must be Linux ELF.
18510
 
linux* | k*bsd*-gnu)
 
17734
linux*)
18511
17735
  version_type=linux
18512
17736
  need_lib_prefix=no
18513
17737
  need_version=no
18523
17747
 
18524
17748
  # Append ld.so.conf contents to the search path
18525
17749
  if test -f /etc/ld.so.conf; then
18526
 
    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' ' '`
 
17750
    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' ' '`
18527
17751
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18528
17752
  fi
18529
17753
 
18536
17760
  dynamic_linker='GNU/Linux ld.so'
18537
17761
  ;;
18538
17762
 
18539
 
netbsdelf*-gnu)
 
17763
knetbsd*-gnu)
18540
17764
  version_type=linux
18541
17765
  need_lib_prefix=no
18542
17766
  need_version=no
18545
17769
  shlibpath_var=LD_LIBRARY_PATH
18546
17770
  shlibpath_overrides_runpath=no
18547
17771
  hardcode_into_libs=yes
18548
 
  dynamic_linker='NetBSD ld.elf_so'
 
17772
  dynamic_linker='GNU ld.so'
18549
17773
  ;;
18550
17774
 
18551
17775
netbsd*)
18585
17809
 
18586
17810
openbsd*)
18587
17811
  version_type=sunos
18588
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18589
17812
  need_lib_prefix=no
18590
17813
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18591
17814
  case $host_os in
18629
17852
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18630
17853
  ;;
18631
17854
 
18632
 
rdos*)
18633
 
  dynamic_linker=no
 
17855
sco3.2v5*)
 
17856
  version_type=osf
 
17857
  soname_spec='${libname}${release}${shared_ext}$major'
 
17858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17859
  shlibpath_var=LD_LIBRARY_PATH
18634
17860
  ;;
18635
17861
 
18636
17862
solaris*)
18658
17884
  need_version=yes
18659
17885
  ;;
18660
17886
 
18661
 
sysv4 | sysv4.3*)
 
17887
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18662
17888
  version_type=linux
18663
17889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18664
17890
  soname_spec='${libname}${release}${shared_ext}$major'
18691
17917
  fi
18692
17918
  ;;
18693
17919
 
18694
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18695
 
  version_type=freebsd-elf
18696
 
  need_lib_prefix=no
18697
 
  need_version=no
18698
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18699
 
  soname_spec='${libname}${release}${shared_ext}$major'
18700
 
  shlibpath_var=LD_LIBRARY_PATH
18701
 
  hardcode_into_libs=yes
18702
 
  if test "$with_gnu_ld" = yes; then
18703
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18704
 
    shlibpath_overrides_runpath=no
18705
 
  else
18706
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18707
 
    shlibpath_overrides_runpath=yes
18708
 
    case $host_os in
18709
 
      sco3.2v5*)
18710
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18711
 
        ;;
18712
 
    esac
18713
 
  fi
18714
 
  sys_lib_dlsearch_path_spec='/usr/lib'
18715
 
  ;;
18716
 
 
18717
17920
uts4*)
18718
17921
  version_type=linux
18719
17922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725
17928
  dynamic_linker=no
18726
17929
  ;;
18727
17930
esac
18728
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18729
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
17931
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17932
echo "${ECHO_T}$dynamic_linker" >&6
18730
17933
test "$dynamic_linker" = no && can_build_shared=no
18731
17934
 
18732
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18733
 
if test "$GCC" = yes; then
18734
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18735
 
fi
18736
 
 
18737
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18738
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
17935
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17936
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18739
17937
hardcode_action_GCJ=
18740
17938
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18741
17939
   test -n "$runpath_var_GCJ" || \
18759
17957
  # directories.
18760
17958
  hardcode_action_GCJ=unsupported
18761
17959
fi
18762
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18763
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
17960
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17961
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18764
17962
 
18765
17963
if test "$hardcode_action_GCJ" = relink; then
18766
17964
  # Fast installation is not supported
18771
17969
  enable_fast_install=needless
18772
17970
fi
18773
17971
 
 
17972
striplib=
 
17973
old_striplib=
 
17974
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17975
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17976
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17977
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17978
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17979
  echo "$as_me:$LINENO: result: yes" >&5
 
17980
echo "${ECHO_T}yes" >&6
 
17981
else
 
17982
# FIXME - insert some real tests, host_os isn't really good enough
 
17983
  case $host_os in
 
17984
   darwin*)
 
17985
       if test -n "$STRIP" ; then
 
17986
         striplib="$STRIP -x"
 
17987
         echo "$as_me:$LINENO: result: yes" >&5
 
17988
echo "${ECHO_T}yes" >&6
 
17989
       else
 
17990
  echo "$as_me:$LINENO: result: no" >&5
 
17991
echo "${ECHO_T}no" >&6
 
17992
fi
 
17993
       ;;
 
17994
   *)
 
17995
  echo "$as_me:$LINENO: result: no" >&5
 
17996
echo "${ECHO_T}no" >&6
 
17997
    ;;
 
17998
  esac
 
17999
fi
 
18000
 
 
18001
if test "x$enable_dlopen" != xyes; then
 
18002
  enable_dlopen=unknown
 
18003
  enable_dlopen_self=unknown
 
18004
  enable_dlopen_self_static=unknown
 
18005
else
 
18006
  lt_cv_dlopen=no
 
18007
  lt_cv_dlopen_libs=
 
18008
 
 
18009
  case $host_os in
 
18010
  beos*)
 
18011
    lt_cv_dlopen="load_add_on"
 
18012
    lt_cv_dlopen_libs=
 
18013
    lt_cv_dlopen_self=yes
 
18014
    ;;
 
18015
 
 
18016
  mingw* | pw32*)
 
18017
    lt_cv_dlopen="LoadLibrary"
 
18018
    lt_cv_dlopen_libs=
 
18019
   ;;
 
18020
 
 
18021
  cygwin*)
 
18022
    lt_cv_dlopen="dlopen"
 
18023
    lt_cv_dlopen_libs=
 
18024
   ;;
 
18025
 
 
18026
  darwin*)
 
18027
  # if libdl is installed we need to link against it
 
18028
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18029
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18030
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18032
else
 
18033
  ac_check_lib_save_LIBS=$LIBS
 
18034
LIBS="-ldl  $LIBS"
 
18035
cat >conftest.$ac_ext <<_ACEOF
 
18036
/* confdefs.h.  */
 
18037
_ACEOF
 
18038
cat confdefs.h >>conftest.$ac_ext
 
18039
cat >>conftest.$ac_ext <<_ACEOF
 
18040
/* end confdefs.h.  */
 
18041
 
 
18042
/* Override any gcc2 internal prototype to avoid an error.  */
 
18043
#ifdef __cplusplus
 
18044
extern "C"
 
18045
#endif
 
18046
/* We use char because int might match the return type of a gcc2
 
18047
   builtin and then its argument prototype would still apply.  */
 
18048
char dlopen ();
 
18049
int
 
18050
main ()
 
18051
{
 
18052
dlopen ();
 
18053
  ;
 
18054
  return 0;
 
18055
}
 
18056
_ACEOF
 
18057
rm -f conftest.$ac_objext conftest$ac_exeext
 
18058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18059
  (eval $ac_link) 2>conftest.er1
 
18060
  ac_status=$?
 
18061
  grep -v '^ *+' conftest.er1 >conftest.err
 
18062
  rm -f conftest.er1
 
18063
  cat conftest.err >&5
 
18064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18065
  (exit $ac_status); } &&
 
18066
         { ac_try='test -z "$ac_c_werror_flag"
 
18067
                         || test ! -s conftest.err'
 
18068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18069
  (eval $ac_try) 2>&5
 
18070
  ac_status=$?
 
18071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18072
  (exit $ac_status); }; } &&
 
18073
         { ac_try='test -s conftest$ac_exeext'
 
18074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18075
  (eval $ac_try) 2>&5
 
18076
  ac_status=$?
 
18077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18078
  (exit $ac_status); }; }; then
 
18079
  ac_cv_lib_dl_dlopen=yes
 
18080
else
 
18081
  echo "$as_me: failed program was:" >&5
 
18082
sed 's/^/| /' conftest.$ac_ext >&5
 
18083
 
 
18084
ac_cv_lib_dl_dlopen=no
 
18085
fi
 
18086
rm -f conftest.err conftest.$ac_objext \
 
18087
      conftest$ac_exeext conftest.$ac_ext
 
18088
LIBS=$ac_check_lib_save_LIBS
 
18089
fi
 
18090
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18091
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18092
if test $ac_cv_lib_dl_dlopen = yes; then
 
18093
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18094
else
 
18095
 
 
18096
    lt_cv_dlopen="dyld"
 
18097
    lt_cv_dlopen_libs=
 
18098
    lt_cv_dlopen_self=yes
 
18099
 
 
18100
fi
 
18101
 
 
18102
   ;;
 
18103
 
 
18104
  *)
 
18105
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18106
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18107
if test "${ac_cv_func_shl_load+set}" = set; then
 
18108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18109
else
 
18110
  cat >conftest.$ac_ext <<_ACEOF
 
18111
/* confdefs.h.  */
 
18112
_ACEOF
 
18113
cat confdefs.h >>conftest.$ac_ext
 
18114
cat >>conftest.$ac_ext <<_ACEOF
 
18115
/* end confdefs.h.  */
 
18116
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18117
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18118
#define shl_load innocuous_shl_load
 
18119
 
 
18120
/* System header to define __stub macros and hopefully few prototypes,
 
18121
    which can conflict with char shl_load (); below.
 
18122
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18123
    <limits.h> exists even on freestanding compilers.  */
 
18124
 
 
18125
#ifdef __STDC__
 
18126
# include <limits.h>
 
18127
#else
 
18128
# include <assert.h>
 
18129
#endif
 
18130
 
 
18131
#undef shl_load
 
18132
 
 
18133
/* Override any gcc2 internal prototype to avoid an error.  */
 
18134
#ifdef __cplusplus
 
18135
extern "C"
 
18136
{
 
18137
#endif
 
18138
/* We use char because int might match the return type of a gcc2
 
18139
   builtin and then its argument prototype would still apply.  */
 
18140
char shl_load ();
 
18141
/* The GNU C library defines this for functions which it implements
 
18142
    to always fail with ENOSYS.  Some functions are actually named
 
18143
    something starting with __ and the normal name is an alias.  */
 
18144
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18145
choke me
 
18146
#else
 
18147
char (*f) () = shl_load;
 
18148
#endif
 
18149
#ifdef __cplusplus
 
18150
}
 
18151
#endif
 
18152
 
 
18153
int
 
18154
main ()
 
18155
{
 
18156
return f != shl_load;
 
18157
  ;
 
18158
  return 0;
 
18159
}
 
18160
_ACEOF
 
18161
rm -f conftest.$ac_objext conftest$ac_exeext
 
18162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18163
  (eval $ac_link) 2>conftest.er1
 
18164
  ac_status=$?
 
18165
  grep -v '^ *+' conftest.er1 >conftest.err
 
18166
  rm -f conftest.er1
 
18167
  cat conftest.err >&5
 
18168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18169
  (exit $ac_status); } &&
 
18170
         { ac_try='test -z "$ac_c_werror_flag"
 
18171
                         || test ! -s conftest.err'
 
18172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18173
  (eval $ac_try) 2>&5
 
18174
  ac_status=$?
 
18175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18176
  (exit $ac_status); }; } &&
 
18177
         { ac_try='test -s conftest$ac_exeext'
 
18178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18179
  (eval $ac_try) 2>&5
 
18180
  ac_status=$?
 
18181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18182
  (exit $ac_status); }; }; then
 
18183
  ac_cv_func_shl_load=yes
 
18184
else
 
18185
  echo "$as_me: failed program was:" >&5
 
18186
sed 's/^/| /' conftest.$ac_ext >&5
 
18187
 
 
18188
ac_cv_func_shl_load=no
 
18189
fi
 
18190
rm -f conftest.err conftest.$ac_objext \
 
18191
      conftest$ac_exeext conftest.$ac_ext
 
18192
fi
 
18193
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18194
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18195
if test $ac_cv_func_shl_load = yes; then
 
18196
  lt_cv_dlopen="shl_load"
 
18197
else
 
18198
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18199
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18200
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18202
else
 
18203
  ac_check_lib_save_LIBS=$LIBS
 
18204
LIBS="-ldld  $LIBS"
 
18205
cat >conftest.$ac_ext <<_ACEOF
 
18206
/* confdefs.h.  */
 
18207
_ACEOF
 
18208
cat confdefs.h >>conftest.$ac_ext
 
18209
cat >>conftest.$ac_ext <<_ACEOF
 
18210
/* end confdefs.h.  */
 
18211
 
 
18212
/* Override any gcc2 internal prototype to avoid an error.  */
 
18213
#ifdef __cplusplus
 
18214
extern "C"
 
18215
#endif
 
18216
/* We use char because int might match the return type of a gcc2
 
18217
   builtin and then its argument prototype would still apply.  */
 
18218
char shl_load ();
 
18219
int
 
18220
main ()
 
18221
{
 
18222
shl_load ();
 
18223
  ;
 
18224
  return 0;
 
18225
}
 
18226
_ACEOF
 
18227
rm -f conftest.$ac_objext conftest$ac_exeext
 
18228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18229
  (eval $ac_link) 2>conftest.er1
 
18230
  ac_status=$?
 
18231
  grep -v '^ *+' conftest.er1 >conftest.err
 
18232
  rm -f conftest.er1
 
18233
  cat conftest.err >&5
 
18234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18235
  (exit $ac_status); } &&
 
18236
         { ac_try='test -z "$ac_c_werror_flag"
 
18237
                         || test ! -s conftest.err'
 
18238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18239
  (eval $ac_try) 2>&5
 
18240
  ac_status=$?
 
18241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18242
  (exit $ac_status); }; } &&
 
18243
         { ac_try='test -s conftest$ac_exeext'
 
18244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18245
  (eval $ac_try) 2>&5
 
18246
  ac_status=$?
 
18247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18248
  (exit $ac_status); }; }; then
 
18249
  ac_cv_lib_dld_shl_load=yes
 
18250
else
 
18251
  echo "$as_me: failed program was:" >&5
 
18252
sed 's/^/| /' conftest.$ac_ext >&5
 
18253
 
 
18254
ac_cv_lib_dld_shl_load=no
 
18255
fi
 
18256
rm -f conftest.err conftest.$ac_objext \
 
18257
      conftest$ac_exeext conftest.$ac_ext
 
18258
LIBS=$ac_check_lib_save_LIBS
 
18259
fi
 
18260
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18261
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18262
if test $ac_cv_lib_dld_shl_load = yes; then
 
18263
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18264
else
 
18265
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18266
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18267
if test "${ac_cv_func_dlopen+set}" = set; then
 
18268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18269
else
 
18270
  cat >conftest.$ac_ext <<_ACEOF
 
18271
/* confdefs.h.  */
 
18272
_ACEOF
 
18273
cat confdefs.h >>conftest.$ac_ext
 
18274
cat >>conftest.$ac_ext <<_ACEOF
 
18275
/* end confdefs.h.  */
 
18276
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18277
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18278
#define dlopen innocuous_dlopen
 
18279
 
 
18280
/* System header to define __stub macros and hopefully few prototypes,
 
18281
    which can conflict with char dlopen (); below.
 
18282
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18283
    <limits.h> exists even on freestanding compilers.  */
 
18284
 
 
18285
#ifdef __STDC__
 
18286
# include <limits.h>
 
18287
#else
 
18288
# include <assert.h>
 
18289
#endif
 
18290
 
 
18291
#undef dlopen
 
18292
 
 
18293
/* Override any gcc2 internal prototype to avoid an error.  */
 
18294
#ifdef __cplusplus
 
18295
extern "C"
 
18296
{
 
18297
#endif
 
18298
/* We use char because int might match the return type of a gcc2
 
18299
   builtin and then its argument prototype would still apply.  */
 
18300
char dlopen ();
 
18301
/* The GNU C library defines this for functions which it implements
 
18302
    to always fail with ENOSYS.  Some functions are actually named
 
18303
    something starting with __ and the normal name is an alias.  */
 
18304
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18305
choke me
 
18306
#else
 
18307
char (*f) () = dlopen;
 
18308
#endif
 
18309
#ifdef __cplusplus
 
18310
}
 
18311
#endif
 
18312
 
 
18313
int
 
18314
main ()
 
18315
{
 
18316
return f != dlopen;
 
18317
  ;
 
18318
  return 0;
 
18319
}
 
18320
_ACEOF
 
18321
rm -f conftest.$ac_objext conftest$ac_exeext
 
18322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18323
  (eval $ac_link) 2>conftest.er1
 
18324
  ac_status=$?
 
18325
  grep -v '^ *+' conftest.er1 >conftest.err
 
18326
  rm -f conftest.er1
 
18327
  cat conftest.err >&5
 
18328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18329
  (exit $ac_status); } &&
 
18330
         { ac_try='test -z "$ac_c_werror_flag"
 
18331
                         || test ! -s conftest.err'
 
18332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18333
  (eval $ac_try) 2>&5
 
18334
  ac_status=$?
 
18335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18336
  (exit $ac_status); }; } &&
 
18337
         { ac_try='test -s conftest$ac_exeext'
 
18338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18339
  (eval $ac_try) 2>&5
 
18340
  ac_status=$?
 
18341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18342
  (exit $ac_status); }; }; then
 
18343
  ac_cv_func_dlopen=yes
 
18344
else
 
18345
  echo "$as_me: failed program was:" >&5
 
18346
sed 's/^/| /' conftest.$ac_ext >&5
 
18347
 
 
18348
ac_cv_func_dlopen=no
 
18349
fi
 
18350
rm -f conftest.err conftest.$ac_objext \
 
18351
      conftest$ac_exeext conftest.$ac_ext
 
18352
fi
 
18353
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18354
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18355
if test $ac_cv_func_dlopen = yes; then
 
18356
  lt_cv_dlopen="dlopen"
 
18357
else
 
18358
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18359
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18360
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18362
else
 
18363
  ac_check_lib_save_LIBS=$LIBS
 
18364
LIBS="-ldl  $LIBS"
 
18365
cat >conftest.$ac_ext <<_ACEOF
 
18366
/* confdefs.h.  */
 
18367
_ACEOF
 
18368
cat confdefs.h >>conftest.$ac_ext
 
18369
cat >>conftest.$ac_ext <<_ACEOF
 
18370
/* end confdefs.h.  */
 
18371
 
 
18372
/* Override any gcc2 internal prototype to avoid an error.  */
 
18373
#ifdef __cplusplus
 
18374
extern "C"
 
18375
#endif
 
18376
/* We use char because int might match the return type of a gcc2
 
18377
   builtin and then its argument prototype would still apply.  */
 
18378
char dlopen ();
 
18379
int
 
18380
main ()
 
18381
{
 
18382
dlopen ();
 
18383
  ;
 
18384
  return 0;
 
18385
}
 
18386
_ACEOF
 
18387
rm -f conftest.$ac_objext conftest$ac_exeext
 
18388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18389
  (eval $ac_link) 2>conftest.er1
 
18390
  ac_status=$?
 
18391
  grep -v '^ *+' conftest.er1 >conftest.err
 
18392
  rm -f conftest.er1
 
18393
  cat conftest.err >&5
 
18394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18395
  (exit $ac_status); } &&
 
18396
         { ac_try='test -z "$ac_c_werror_flag"
 
18397
                         || test ! -s conftest.err'
 
18398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18399
  (eval $ac_try) 2>&5
 
18400
  ac_status=$?
 
18401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18402
  (exit $ac_status); }; } &&
 
18403
         { ac_try='test -s conftest$ac_exeext'
 
18404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18405
  (eval $ac_try) 2>&5
 
18406
  ac_status=$?
 
18407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18408
  (exit $ac_status); }; }; then
 
18409
  ac_cv_lib_dl_dlopen=yes
 
18410
else
 
18411
  echo "$as_me: failed program was:" >&5
 
18412
sed 's/^/| /' conftest.$ac_ext >&5
 
18413
 
 
18414
ac_cv_lib_dl_dlopen=no
 
18415
fi
 
18416
rm -f conftest.err conftest.$ac_objext \
 
18417
      conftest$ac_exeext conftest.$ac_ext
 
18418
LIBS=$ac_check_lib_save_LIBS
 
18419
fi
 
18420
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18421
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18422
if test $ac_cv_lib_dl_dlopen = yes; then
 
18423
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18424
else
 
18425
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18426
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18427
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18429
else
 
18430
  ac_check_lib_save_LIBS=$LIBS
 
18431
LIBS="-lsvld  $LIBS"
 
18432
cat >conftest.$ac_ext <<_ACEOF
 
18433
/* confdefs.h.  */
 
18434
_ACEOF
 
18435
cat confdefs.h >>conftest.$ac_ext
 
18436
cat >>conftest.$ac_ext <<_ACEOF
 
18437
/* end confdefs.h.  */
 
18438
 
 
18439
/* Override any gcc2 internal prototype to avoid an error.  */
 
18440
#ifdef __cplusplus
 
18441
extern "C"
 
18442
#endif
 
18443
/* We use char because int might match the return type of a gcc2
 
18444
   builtin and then its argument prototype would still apply.  */
 
18445
char dlopen ();
 
18446
int
 
18447
main ()
 
18448
{
 
18449
dlopen ();
 
18450
  ;
 
18451
  return 0;
 
18452
}
 
18453
_ACEOF
 
18454
rm -f conftest.$ac_objext conftest$ac_exeext
 
18455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18456
  (eval $ac_link) 2>conftest.er1
 
18457
  ac_status=$?
 
18458
  grep -v '^ *+' conftest.er1 >conftest.err
 
18459
  rm -f conftest.er1
 
18460
  cat conftest.err >&5
 
18461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18462
  (exit $ac_status); } &&
 
18463
         { ac_try='test -z "$ac_c_werror_flag"
 
18464
                         || test ! -s conftest.err'
 
18465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18466
  (eval $ac_try) 2>&5
 
18467
  ac_status=$?
 
18468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18469
  (exit $ac_status); }; } &&
 
18470
         { ac_try='test -s conftest$ac_exeext'
 
18471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18472
  (eval $ac_try) 2>&5
 
18473
  ac_status=$?
 
18474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18475
  (exit $ac_status); }; }; then
 
18476
  ac_cv_lib_svld_dlopen=yes
 
18477
else
 
18478
  echo "$as_me: failed program was:" >&5
 
18479
sed 's/^/| /' conftest.$ac_ext >&5
 
18480
 
 
18481
ac_cv_lib_svld_dlopen=no
 
18482
fi
 
18483
rm -f conftest.err conftest.$ac_objext \
 
18484
      conftest$ac_exeext conftest.$ac_ext
 
18485
LIBS=$ac_check_lib_save_LIBS
 
18486
fi
 
18487
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18488
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18489
if test $ac_cv_lib_svld_dlopen = yes; then
 
18490
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18491
else
 
18492
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18493
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18494
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18496
else
 
18497
  ac_check_lib_save_LIBS=$LIBS
 
18498
LIBS="-ldld  $LIBS"
 
18499
cat >conftest.$ac_ext <<_ACEOF
 
18500
/* confdefs.h.  */
 
18501
_ACEOF
 
18502
cat confdefs.h >>conftest.$ac_ext
 
18503
cat >>conftest.$ac_ext <<_ACEOF
 
18504
/* end confdefs.h.  */
 
18505
 
 
18506
/* Override any gcc2 internal prototype to avoid an error.  */
 
18507
#ifdef __cplusplus
 
18508
extern "C"
 
18509
#endif
 
18510
/* We use char because int might match the return type of a gcc2
 
18511
   builtin and then its argument prototype would still apply.  */
 
18512
char dld_link ();
 
18513
int
 
18514
main ()
 
18515
{
 
18516
dld_link ();
 
18517
  ;
 
18518
  return 0;
 
18519
}
 
18520
_ACEOF
 
18521
rm -f conftest.$ac_objext conftest$ac_exeext
 
18522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18523
  (eval $ac_link) 2>conftest.er1
 
18524
  ac_status=$?
 
18525
  grep -v '^ *+' conftest.er1 >conftest.err
 
18526
  rm -f conftest.er1
 
18527
  cat conftest.err >&5
 
18528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18529
  (exit $ac_status); } &&
 
18530
         { ac_try='test -z "$ac_c_werror_flag"
 
18531
                         || test ! -s conftest.err'
 
18532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18533
  (eval $ac_try) 2>&5
 
18534
  ac_status=$?
 
18535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18536
  (exit $ac_status); }; } &&
 
18537
         { ac_try='test -s conftest$ac_exeext'
 
18538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18539
  (eval $ac_try) 2>&5
 
18540
  ac_status=$?
 
18541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18542
  (exit $ac_status); }; }; then
 
18543
  ac_cv_lib_dld_dld_link=yes
 
18544
else
 
18545
  echo "$as_me: failed program was:" >&5
 
18546
sed 's/^/| /' conftest.$ac_ext >&5
 
18547
 
 
18548
ac_cv_lib_dld_dld_link=no
 
18549
fi
 
18550
rm -f conftest.err conftest.$ac_objext \
 
18551
      conftest$ac_exeext conftest.$ac_ext
 
18552
LIBS=$ac_check_lib_save_LIBS
 
18553
fi
 
18554
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18555
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18556
if test $ac_cv_lib_dld_dld_link = yes; then
 
18557
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18558
fi
 
18559
 
 
18560
 
 
18561
fi
 
18562
 
 
18563
 
 
18564
fi
 
18565
 
 
18566
 
 
18567
fi
 
18568
 
 
18569
 
 
18570
fi
 
18571
 
 
18572
 
 
18573
fi
 
18574
 
 
18575
    ;;
 
18576
  esac
 
18577
 
 
18578
  if test "x$lt_cv_dlopen" != xno; then
 
18579
    enable_dlopen=yes
 
18580
  else
 
18581
    enable_dlopen=no
 
18582
  fi
 
18583
 
 
18584
  case $lt_cv_dlopen in
 
18585
  dlopen)
 
18586
    save_CPPFLAGS="$CPPFLAGS"
 
18587
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18588
 
 
18589
    save_LDFLAGS="$LDFLAGS"
 
18590
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18591
 
 
18592
    save_LIBS="$LIBS"
 
18593
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18594
 
 
18595
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18596
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18597
if test "${lt_cv_dlopen_self+set}" = set; then
 
18598
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18599
else
 
18600
          if test "$cross_compiling" = yes; then :
 
18601
  lt_cv_dlopen_self=cross
 
18602
else
 
18603
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18604
  lt_status=$lt_dlunknown
 
18605
  cat > conftest.$ac_ext <<EOF
 
18606
#line 18606 "configure"
 
18607
#include "confdefs.h"
 
18608
 
 
18609
#if HAVE_DLFCN_H
 
18610
#include <dlfcn.h>
 
18611
#endif
 
18612
 
 
18613
#include <stdio.h>
 
18614
 
 
18615
#ifdef RTLD_GLOBAL
 
18616
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18617
#else
 
18618
#  ifdef DL_GLOBAL
 
18619
#    define LT_DLGLOBAL         DL_GLOBAL
 
18620
#  else
 
18621
#    define LT_DLGLOBAL         0
 
18622
#  endif
 
18623
#endif
 
18624
 
 
18625
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18626
   find out it does not work in some platform. */
 
18627
#ifndef LT_DLLAZY_OR_NOW
 
18628
#  ifdef RTLD_LAZY
 
18629
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18630
#  else
 
18631
#    ifdef DL_LAZY
 
18632
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18633
#    else
 
18634
#      ifdef RTLD_NOW
 
18635
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18636
#      else
 
18637
#        ifdef DL_NOW
 
18638
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18639
#        else
 
18640
#          define LT_DLLAZY_OR_NOW      0
 
18641
#        endif
 
18642
#      endif
 
18643
#    endif
 
18644
#  endif
 
18645
#endif
 
18646
 
 
18647
#ifdef __cplusplus
 
18648
extern "C" void exit (int);
 
18649
#endif
 
18650
 
 
18651
void fnord() { int i=42;}
 
18652
int main ()
 
18653
{
 
18654
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18655
  int status = $lt_dlunknown;
 
18656
 
 
18657
  if (self)
 
18658
    {
 
18659
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18660
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18661
      /* dlclose (self); */
 
18662
    }
 
18663
 
 
18664
    exit (status);
 
18665
}
 
18666
EOF
 
18667
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18668
  (eval $ac_link) 2>&5
 
18669
  ac_status=$?
 
18670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18671
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18672
    (./conftest; exit; ) 2>/dev/null
 
18673
    lt_status=$?
 
18674
    case x$lt_status in
 
18675
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18676
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18677
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18678
    esac
 
18679
  else :
 
18680
    # compilation failed
 
18681
    lt_cv_dlopen_self=no
 
18682
  fi
 
18683
fi
 
18684
rm -fr conftest*
 
18685
 
 
18686
 
 
18687
fi
 
18688
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18689
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18690
 
 
18691
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18692
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18693
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18694
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18695
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18697
else
 
18698
          if test "$cross_compiling" = yes; then :
 
18699
  lt_cv_dlopen_self_static=cross
 
18700
else
 
18701
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18702
  lt_status=$lt_dlunknown
 
18703
  cat > conftest.$ac_ext <<EOF
 
18704
#line 18704 "configure"
 
18705
#include "confdefs.h"
 
18706
 
 
18707
#if HAVE_DLFCN_H
 
18708
#include <dlfcn.h>
 
18709
#endif
 
18710
 
 
18711
#include <stdio.h>
 
18712
 
 
18713
#ifdef RTLD_GLOBAL
 
18714
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18715
#else
 
18716
#  ifdef DL_GLOBAL
 
18717
#    define LT_DLGLOBAL         DL_GLOBAL
 
18718
#  else
 
18719
#    define LT_DLGLOBAL         0
 
18720
#  endif
 
18721
#endif
 
18722
 
 
18723
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18724
   find out it does not work in some platform. */
 
18725
#ifndef LT_DLLAZY_OR_NOW
 
18726
#  ifdef RTLD_LAZY
 
18727
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18728
#  else
 
18729
#    ifdef DL_LAZY
 
18730
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18731
#    else
 
18732
#      ifdef RTLD_NOW
 
18733
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18734
#      else
 
18735
#        ifdef DL_NOW
 
18736
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18737
#        else
 
18738
#          define LT_DLLAZY_OR_NOW      0
 
18739
#        endif
 
18740
#      endif
 
18741
#    endif
 
18742
#  endif
 
18743
#endif
 
18744
 
 
18745
#ifdef __cplusplus
 
18746
extern "C" void exit (int);
 
18747
#endif
 
18748
 
 
18749
void fnord() { int i=42;}
 
18750
int main ()
 
18751
{
 
18752
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18753
  int status = $lt_dlunknown;
 
18754
 
 
18755
  if (self)
 
18756
    {
 
18757
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18758
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18759
      /* dlclose (self); */
 
18760
    }
 
18761
 
 
18762
    exit (status);
 
18763
}
 
18764
EOF
 
18765
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18766
  (eval $ac_link) 2>&5
 
18767
  ac_status=$?
 
18768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18769
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18770
    (./conftest; exit; ) 2>/dev/null
 
18771
    lt_status=$?
 
18772
    case x$lt_status in
 
18773
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18774
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18775
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18776
    esac
 
18777
  else :
 
18778
    # compilation failed
 
18779
    lt_cv_dlopen_self_static=no
 
18780
  fi
 
18781
fi
 
18782
rm -fr conftest*
 
18783
 
 
18784
 
 
18785
fi
 
18786
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18787
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18788
    fi
 
18789
 
 
18790
    CPPFLAGS="$save_CPPFLAGS"
 
18791
    LDFLAGS="$save_LDFLAGS"
 
18792
    LIBS="$save_LIBS"
 
18793
    ;;
 
18794
  esac
 
18795
 
 
18796
  case $lt_cv_dlopen_self in
 
18797
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18798
  *) enable_dlopen_self=unknown ;;
 
18799
  esac
 
18800
 
 
18801
  case $lt_cv_dlopen_self_static in
 
18802
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18803
  *) enable_dlopen_self_static=unknown ;;
 
18804
  esac
 
18805
fi
 
18806
 
18774
18807
 
18775
18808
# The else clause should only fire when bootstrapping the
18776
18809
# libtool distribution, otherwise you forgot to ship ltmain.sh
18785
18818
  # Now quote all the things that may contain metacharacters while being
18786
18819
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18787
18820
  # variables and quote the copies for generation of the libtool script.
18788
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18821
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18789
18822
    SED SHELL STRIP \
18790
18823
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18791
18824
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18827
18860
    module_cmds_GCJ \
18828
18861
    module_expsym_cmds_GCJ \
18829
18862
    lt_cv_prog_compiler_c_o_GCJ \
18830
 
    fix_srcfile_path_GCJ \
18831
18863
    exclude_expsyms_GCJ \
18832
18864
    include_expsyms_GCJ; do
18833
18865
 
18904
18936
# A C compiler.
18905
18937
LTCC=$lt_LTCC
18906
18938
 
18907
 
# LTCC compiler flags.
18908
 
LTCFLAGS=$lt_LTCFLAGS
18909
 
 
18910
18939
# A language-specific compiler.
18911
18940
CC=$lt_compiler_GCJ
18912
18941
 
19148
19177
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19149
19178
 
19150
19179
# Fix the shell variable \$srcfile for the compiler.
19151
 
fix_srcfile_path=$lt_fix_srcfile_path
 
19180
fix_srcfile_path="$fix_srcfile_path_GCJ"
19152
19181
 
19153
19182
# Set to yes if exported symbols are required.
19154
19183
always_export_symbols=$always_export_symbols_GCJ
19197
19226
      RC)
19198
19227
 
19199
19228
 
 
19229
 
19200
19230
# Source file extension for RC test sources.
19201
19231
ac_ext=rc
19202
19232
 
19205
19235
objext_RC=$objext
19206
19236
 
19207
19237
# Code to be used in simple compile tests
19208
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19238
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19209
19239
 
19210
19240
# Code to be used in simple link tests
19211
19241
lt_simple_link_test_code="$lt_simple_compile_test_code"
19215
19245
# If no C compiler was specified, use CC.
19216
19246
LTCC=${LTCC-"$CC"}
19217
19247
 
19218
 
# If no C compiler flags were specified, use CFLAGS.
19219
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19220
 
 
19221
19248
# Allow CC to be a program name with arguments.
19222
19249
compiler=$CC
19223
19250
 
19224
19251
 
19225
19252
# save warnings/boilerplate of simple test code
19226
19253
ac_outfile=conftest.$ac_objext
19227
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19228
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19254
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19255
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19229
19256
_lt_compiler_boilerplate=`cat conftest.err`
19230
19257
$rm conftest*
19231
19258
 
19232
19259
ac_outfile=conftest.$ac_objext
19233
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19234
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19260
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19261
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19235
19262
_lt_linker_boilerplate=`cat conftest.err`
19236
19263
$rm conftest*
19237
19264
 
19266
19293
  # Now quote all the things that may contain metacharacters while being
19267
19294
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19268
19295
  # variables and quote the copies for generation of the libtool script.
19269
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19296
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19270
19297
    SED SHELL STRIP \
19271
19298
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19272
19299
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19308
19335
    module_cmds_RC \
19309
19336
    module_expsym_cmds_RC \
19310
19337
    lt_cv_prog_compiler_c_o_RC \
19311
 
    fix_srcfile_path_RC \
19312
19338
    exclude_expsyms_RC \
19313
19339
    include_expsyms_RC; do
19314
19340
 
19385
19411
# A C compiler.
19386
19412
LTCC=$lt_LTCC
19387
19413
 
19388
 
# LTCC compiler flags.
19389
 
LTCFLAGS=$lt_LTCFLAGS
19390
 
 
19391
19414
# A language-specific compiler.
19392
19415
CC=$lt_compiler_RC
19393
19416
 
19629
19652
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19630
19653
 
19631
19654
# Fix the shell variable \$srcfile for the compiler.
19632
 
fix_srcfile_path=$lt_fix_srcfile_path
 
19655
fix_srcfile_path="$fix_srcfile_path_RC"
19633
19656
 
19634
19657
# Set to yes if exported symbols are required.
19635
19658
always_export_symbols=$always_export_symbols_RC
19731
19754
 
19732
19755
# Extract the first word of "ar", so it can be a program name with args.
19733
19756
set dummy ar; ac_word=$2
19734
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19735
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19757
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19736
19759
if test "${ac_cv_path_AR+set}" = set; then
19737
19760
  echo $ECHO_N "(cached) $ECHO_C" >&6
19738
19761
else
19747
19770
  IFS=$as_save_IFS
19748
19771
  test -z "$as_dir" && as_dir=.
19749
19772
  for ac_exec_ext in '' $ac_executable_extensions; do
19750
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19773
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19751
19774
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19752
19775
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19753
19776
    break 2
19754
19777
  fi
19755
19778
done
19756
19779
done
19757
 
IFS=$as_save_IFS
19758
19780
 
19759
19781
  ;;
19760
19782
esac
19761
19783
fi
19762
19784
AR=$ac_cv_path_AR
 
19785
 
19763
19786
if test -n "$AR"; then
19764
 
  { echo "$as_me:$LINENO: result: $AR" >&5
19765
 
echo "${ECHO_T}$AR" >&6; }
 
19787
  echo "$as_me:$LINENO: result: $AR" >&5
 
19788
echo "${ECHO_T}$AR" >&6
19766
19789
else
19767
 
  { echo "$as_me:$LINENO: result: no" >&5
19768
 
echo "${ECHO_T}no" >&6; }
 
19790
  echo "$as_me:$LINENO: result: no" >&5
 
19791
echo "${ECHO_T}no" >&6
19769
19792
fi
19770
19793
 
19771
 
 
19772
 
{ echo "$as_me:$LINENO: checking for X" >&5
19773
 
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19774
 
 
19775
 
 
19776
 
# Check whether --with-x was given.
 
19794
echo "$as_me:$LINENO: checking for X" >&5
 
19795
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
19796
 
 
19797
 
 
19798
# Check whether --with-x or --without-x was given.
19777
19799
if test "${with_x+set}" = set; then
19778
 
  withval=$with_x;
19779
 
fi
 
19800
  withval="$with_x"
19780
19801
 
 
19802
fi;
19781
19803
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19782
19804
if test "x$with_x" = xno; then
19783
19805
  # The user explicitly disabled X.
19784
19806
  have_x=disabled
19785
19807
else
19786
 
  case $x_includes,$x_libraries in #(
19787
 
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19788
 
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19789
 
   { (exit 1); exit 1; }; };; #(
19790
 
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
 
19808
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
19809
    # Both variables are already set.
 
19810
    have_x=yes
 
19811
  else
 
19812
    if test "${ac_cv_have_x+set}" = set; then
19791
19813
  echo $ECHO_N "(cached) $ECHO_C" >&6
19792
19814
else
19793
19815
  # One or both of the vars are not set, and there is no cached value.
19794
19816
ac_x_includes=no ac_x_libraries=no
19795
 
rm -f -r conftest.dir
 
19817
rm -fr conftest.dir
19796
19818
if mkdir conftest.dir; then
19797
19819
  cd conftest.dir
 
19820
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19798
19821
  cat >Imakefile <<'_ACEOF'
19799
 
incroot:
19800
 
        @echo incroot='${INCROOT}'
19801
 
usrlibdir:
19802
 
        @echo usrlibdir='${USRLIBDIR}'
19803
 
libdir:
19804
 
        @echo libdir='${LIBDIR}'
 
19822
acfindx:
 
19823
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19805
19824
_ACEOF
19806
 
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
 
19825
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19807
19826
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19808
 
    for ac_var in incroot usrlibdir libdir; do
19809
 
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19810
 
    done
 
19827
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19811
19828
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19812
19829
    for ac_extension in a so sl; do
19813
 
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19814
 
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
19830
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
19831
         test -f $ac_im_libdir/libX11.$ac_extension; then
19815
19832
        ac_im_usrlibdir=$ac_im_libdir; break
19816
19833
      fi
19817
19834
    done
19819
19836
    # bogus both because they are the default anyway, and because
19820
19837
    # using them would break gcc on systems where it needs fixed includes.
19821
19838
    case $ac_im_incroot in
19822
 
        /usr/include) ac_x_includes= ;;
 
19839
        /usr/include) ;;
19823
19840
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19824
19841
    esac
19825
19842
    case $ac_im_usrlibdir in
19828
19845
    esac
19829
19846
  fi
19830
19847
  cd ..
19831
 
  rm -f -r conftest.dir
 
19848
  rm -fr conftest.dir
19832
19849
fi
19833
19850
 
19834
19851
# Standard set of common directories for X headers.
19869
19886
/usr/openwin/share/include'
19870
19887
 
19871
19888
if test "$ac_x_includes" = no; then
19872
 
  # Guess where to find include files, by looking for Xlib.h.
 
19889
  # Guess where to find include files, by looking for Intrinsic.h.
19873
19890
  # First, try using that file with no special directory specified.
19874
19891
  cat >conftest.$ac_ext <<_ACEOF
19875
19892
/* confdefs.h.  */
19877
19894
cat confdefs.h >>conftest.$ac_ext
19878
19895
cat >>conftest.$ac_ext <<_ACEOF
19879
19896
/* end confdefs.h.  */
19880
 
#include <X11/Xlib.h>
 
19897
#include <X11/Intrinsic.h>
19881
19898
_ACEOF
19882
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
19883
 
case "(($ac_try" in
19884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885
 
  *) ac_try_echo=$ac_try;;
19886
 
esac
19887
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19899
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19900
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19889
19901
  ac_status=$?
19890
19902
  grep -v '^ *+' conftest.er1 >conftest.err
19891
19903
  rm -f conftest.er1
19892
19904
  cat conftest.err >&5
19893
19905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894
 
  (exit $ac_status); } >/dev/null && {
19895
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19896
 
         test ! -s conftest.err
19897
 
       }; then
 
19906
  (exit $ac_status); } >/dev/null; then
 
19907
  if test -s conftest.err; then
 
19908
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19909
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
19910
  else
 
19911
    ac_cpp_err=
 
19912
  fi
 
19913
else
 
19914
  ac_cpp_err=yes
 
19915
fi
 
19916
if test -z "$ac_cpp_err"; then
19898
19917
  # We can compile using X headers with no special include directory.
19899
19918
ac_x_includes=
19900
19919
else
19902
19921
sed 's/^/| /' conftest.$ac_ext >&5
19903
19922
 
19904
19923
  for ac_dir in $ac_x_header_dirs; do
19905
 
  if test -r "$ac_dir/X11/Xlib.h"; then
 
19924
  if test -r "$ac_dir/X11/Intrinsic.h"; then
19906
19925
    ac_x_includes=$ac_dir
19907
19926
    break
19908
19927
  fi
19909
19928
done
19910
19929
fi
19911
 
 
19912
19930
rm -f conftest.err conftest.$ac_ext
19913
19931
fi # $ac_x_includes = no
19914
19932
 
19917
19935
  # See if we find them without any special options.
19918
19936
  # Don't add to $LIBS permanently.
19919
19937
  ac_save_LIBS=$LIBS
19920
 
  LIBS="-lX11 $LIBS"
 
19938
  LIBS="-lXt $LIBS"
19921
19939
  cat >conftest.$ac_ext <<_ACEOF
19922
19940
/* confdefs.h.  */
19923
19941
_ACEOF
19924
19942
cat confdefs.h >>conftest.$ac_ext
19925
19943
cat >>conftest.$ac_ext <<_ACEOF
19926
19944
/* end confdefs.h.  */
19927
 
#include <X11/Xlib.h>
 
19945
#include <X11/Intrinsic.h>
19928
19946
int
19929
19947
main ()
19930
19948
{
19931
 
XrmInitialize ()
 
19949
XtMalloc (0)
19932
19950
  ;
19933
19951
  return 0;
19934
19952
}
19935
19953
_ACEOF
19936
19954
rm -f conftest.$ac_objext conftest$ac_exeext
19937
 
if { (ac_try="$ac_link"
19938
 
case "(($ac_try" in
19939
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940
 
  *) ac_try_echo=$ac_try;;
19941
 
esac
19942
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943
 
  (eval "$ac_link") 2>conftest.er1
 
19955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19956
  (eval $ac_link) 2>conftest.er1
19944
19957
  ac_status=$?
19945
19958
  grep -v '^ *+' conftest.er1 >conftest.err
19946
19959
  rm -f conftest.er1
19947
19960
  cat conftest.err >&5
19948
19961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949
 
  (exit $ac_status); } && {
19950
 
         test -z "$ac_c_werror_flag" ||
19951
 
         test ! -s conftest.err
19952
 
       } && test -s conftest$ac_exeext &&
19953
 
       $as_test_x conftest$ac_exeext; then
 
19962
  (exit $ac_status); } &&
 
19963
         { ac_try='test -z "$ac_c_werror_flag"
 
19964
                         || test ! -s conftest.err'
 
19965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19966
  (eval $ac_try) 2>&5
 
19967
  ac_status=$?
 
19968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19969
  (exit $ac_status); }; } &&
 
19970
         { ac_try='test -s conftest$ac_exeext'
 
19971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19972
  (eval $ac_try) 2>&5
 
19973
  ac_status=$?
 
19974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19975
  (exit $ac_status); }; }; then
19954
19976
  LIBS=$ac_save_LIBS
19955
19977
# We can link X programs with no special library path.
19956
19978
ac_x_libraries=
19958
19980
  echo "$as_me: failed program was:" >&5
19959
19981
sed 's/^/| /' conftest.$ac_ext >&5
19960
19982
 
19961
 
        LIBS=$ac_save_LIBS
 
19983
LIBS=$ac_save_LIBS
19962
19984
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19963
19985
do
19964
19986
  # Don't even attempt the hair of trying to link an X program!
19965
19987
  for ac_extension in a so sl; do
19966
 
    if test -r "$ac_dir/libX11.$ac_extension"; then
 
19988
    if test -r $ac_dir/libXt.$ac_extension; then
19967
19989
      ac_x_libraries=$ac_dir
19968
19990
      break 2
19969
19991
    fi
19970
19992
  done
19971
19993
done
19972
19994
fi
19973
 
 
19974
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19995
rm -f conftest.err conftest.$ac_objext \
19975
19996
      conftest$ac_exeext conftest.$ac_ext
19976
19997
fi # $ac_x_libraries = no
19977
19998
 
19978
 
case $ac_x_includes,$ac_x_libraries in #(
19979
 
  no,* | *,no | *\'*)
19980
 
    # Didn't find X, or a directory has "'" in its name.
19981
 
    ac_cv_have_x="have_x=no";; #(
19982
 
  *)
19983
 
    # Record where we found X for the cache.
19984
 
    ac_cv_have_x="have_x=yes\
19985
 
        ac_x_includes='$ac_x_includes'\
19986
 
        ac_x_libraries='$ac_x_libraries'"
19987
 
esac
19988
 
fi
19989
 
;; #(
19990
 
    *) have_x=yes;;
19991
 
  esac
 
19999
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
20000
  # Didn't find X anywhere.  Cache the known absence of X.
 
20001
  ac_cv_have_x="have_x=no"
 
20002
else
 
20003
  # Record where we found X for the cache.
 
20004
  ac_cv_have_x="have_x=yes \
 
20005
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
20006
fi
 
20007
fi
 
20008
 
 
20009
  fi
19992
20010
  eval "$ac_cv_have_x"
19993
20011
fi # $with_x != no
19994
20012
 
19995
20013
if test "$have_x" != yes; then
19996
 
  { echo "$as_me:$LINENO: result: $have_x" >&5
19997
 
echo "${ECHO_T}$have_x" >&6; }
 
20014
  echo "$as_me:$LINENO: result: $have_x" >&5
 
20015
echo "${ECHO_T}$have_x" >&6
19998
20016
  no_x=yes
19999
20017
else
20000
20018
  # If each of the values was on the command line, it overrides each guess.
20001
20019
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20002
20020
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20003
20021
  # Update the cache value to reflect the command line values.
20004
 
  ac_cv_have_x="have_x=yes\
20005
 
        ac_x_includes='$x_includes'\
20006
 
        ac_x_libraries='$x_libraries'"
20007
 
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20008
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
 
20022
  ac_cv_have_x="have_x=yes \
 
20023
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
20024
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
20025
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20009
20026
fi
20010
20027
 
20011
20028
 
20012
20029
 
20013
20030
 
20014
20031
 
20015
 
{ echo "$as_me:$LINENO: checking QTINCDIR" >&5
20016
 
echo $ECHO_N "checking QTINCDIR... $ECHO_C" >&6; }
 
20032
echo "$as_me:$LINENO: checking QTINCDIR" >&5
 
20033
echo $ECHO_N "checking QTINCDIR... $ECHO_C" >&6
20017
20034
 
20018
 
# Check whether --with-qtincdir was given.
 
20035
# Check whether --with-qtincdir or --without-qtincdir was given.
20019
20036
if test "${with_qtincdir+set}" = set; then
20020
 
  withval=$with_qtincdir; QTINCDIR=$withval
20021
 
fi
20022
 
 
 
20037
  withval="$with_qtincdir"
 
20038
  QTINCDIR=$withval
 
20039
fi;
20023
20040
 
20024
20041
# Check that QTINCDIR is defined or that --with-qtincdir given
20025
20042
if test x"$QTINCDIR" = x ; then
20033
20050
echo "$as_me: error: *** QTINCDIR must be defined, or --with-qtincdir option given" >&2;}
20034
20051
   { (exit 1); exit 1; }; }
20035
20052
fi
20036
 
{ echo "$as_me:$LINENO: result: $QTINCDIR" >&5
20037
 
echo "${ECHO_T}$QTINCDIR" >&6; }
20038
 
 
20039
 
{ echo "$as_me:$LINENO: checking QTLIBDIR" >&5
20040
 
echo $ECHO_N "checking QTLIBDIR... $ECHO_C" >&6; }
20041
 
 
20042
 
# Check whether --with-qtlibdir was given.
 
20053
echo "$as_me:$LINENO: result: $QTINCDIR" >&5
 
20054
echo "${ECHO_T}$QTINCDIR" >&6
 
20055
 
 
20056
echo "$as_me:$LINENO: checking QTLIBDIR" >&5
 
20057
echo $ECHO_N "checking QTLIBDIR... $ECHO_C" >&6
 
20058
 
 
20059
# Check whether --with-qtlibdir or --without-qtlibdir was given.
20043
20060
if test "${with_qtlibdir+set}" = set; then
20044
 
  withval=$with_qtlibdir; QTLIBDIR=$withval
20045
 
fi
20046
 
 
 
20061
  withval="$with_qtlibdir"
 
20062
  QTLIBDIR=$withval
 
20063
fi;
20047
20064
 
20048
20065
# Check that QTLIBDIR is defined or that --with-qtlibdir given
20049
20066
if test x"$QTLIBDIR" = x ; then
20058
20075
echo "$as_me: error: *** QTLIBDIR must be defined, or --with-qtlibdir option given" >&2;}
20059
20076
   { (exit 1); exit 1; }; }
20060
20077
fi
20061
 
{ echo "$as_me:$LINENO: result: $QTLIBDIR" >&5
20062
 
echo "${ECHO_T}$QTLIBDIR" >&6; }
 
20078
echo "$as_me:$LINENO: result: $QTLIBDIR" >&5
 
20079
echo "${ECHO_T}$QTLIBDIR" >&6
20063
20080
 
20064
20081
# Change backslashes in QTDIR to forward slashes to prevent escaping
20065
20082
# problems later on in the build process, mainly for Cygwin build
20069
20086
 
20070
20087
# Check for moc
20071
20088
 
20072
 
{ echo "$as_me:$LINENO: checking for moc" >&5
20073
 
echo $ECHO_N "checking for moc... $ECHO_C" >&6; }
 
20089
echo "$as_me:$LINENO: checking for moc" >&5
 
20090
echo $ECHO_N "checking for moc... $ECHO_C" >&6
20074
20091
saved_IFS=$IFS
20075
20092
IFS=':'
20076
20093
path_dirs=""
20091
20108
echo "$as_me: error: *** No Qt meta object compiler (moc) found!" >&2;}
20092
20109
   { (exit 1); exit 1; }; }
20093
20110
else
20094
 
    { echo "$as_me:$LINENO: result: $MOC" >&5
20095
 
echo "${ECHO_T}$MOC" >&6; }
 
20111
    echo "$as_me:$LINENO: result: $MOC" >&5
 
20112
echo "${ECHO_T}$MOC" >&6
20096
20113
fi
20097
20114
 
20098
20115
 
20099
20116
 
20100
20117
# uic is the Qt user interface compiler
20101
20118
 
20102
 
{ echo "$as_me:$LINENO: checking for uic" >&5
20103
 
echo $ECHO_N "checking for uic... $ECHO_C" >&6; }
 
20119
echo "$as_me:$LINENO: checking for uic" >&5
 
20120
echo $ECHO_N "checking for uic... $ECHO_C" >&6
20104
20121
saved_IFS=$IFS
20105
20122
IFS=':'
20106
20123
path_dirs=""
20121
20138
echo "$as_me: error: *** No Qt ui compiler (uic) found!" >&2;}
20122
20139
   { (exit 1); exit 1; }; }
20123
20140
else
20124
 
    { echo "$as_me:$LINENO: result: $UIC" >&5
20125
 
echo "${ECHO_T}$UIC" >&6; }
 
20141
    echo "$as_me:$LINENO: result: $UIC" >&5
 
20142
echo "${ECHO_T}$UIC" >&6
20126
20143
fi
20127
20144
 
20128
20145
 
20132
20149
# manually, we'll let it slide if it isn't present
20133
20150
# Extract the first word of "qembed", so it can be a program name with args.
20134
20151
set dummy qembed; ac_word=$2
20135
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20136
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20152
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20137
20154
if test "${ac_cv_prog_QEMBED+set}" = set; then
20138
20155
  echo $ECHO_N "(cached) $ECHO_C" >&6
20139
20156
else
20146
20163
  IFS=$as_save_IFS
20147
20164
  test -z "$as_dir" && as_dir=.
20148
20165
  for ac_exec_ext in '' $ac_executable_extensions; do
20149
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20166
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20150
20167
    ac_cv_prog_QEMBED="qembed"
20151
20168
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20152
20169
    break 2
20153
20170
  fi
20154
20171
done
20155
20172
done
20156
 
IFS=$as_save_IFS
20157
20173
 
20158
20174
fi
20159
20175
fi
20160
20176
QEMBED=$ac_cv_prog_QEMBED
20161
20177
if test -n "$QEMBED"; then
20162
 
  { echo "$as_me:$LINENO: result: $QEMBED" >&5
20163
 
echo "${ECHO_T}$QEMBED" >&6; }
 
20178
  echo "$as_me:$LINENO: result: $QEMBED" >&5
 
20179
echo "${ECHO_T}$QEMBED" >&6
20164
20180
else
20165
 
  { echo "$as_me:$LINENO: result: no" >&5
20166
 
echo "${ECHO_T}no" >&6; }
 
20181
  echo "$as_me:$LINENO: result: no" >&5
 
20182
echo "${ECHO_T}no" >&6
20167
20183
fi
20168
20184
 
20169
20185
 
20170
 
 
20171
20186
# Calculate Qt include path
20172
20187
QT_CXXFLAGS="-I$QTINCDIR"
20173
20188
 
20232
20247
        fi
20233
20248
        ;;
20234
20249
esac
20235
 
{ echo "$as_me:$LINENO: checking if Qt is static" >&5
20236
 
echo $ECHO_N "checking if Qt is static... $ECHO_C" >&6; }
20237
 
{ echo "$as_me:$LINENO: result: $QT_IS_STATIC" >&5
20238
 
echo "${ECHO_T}$QT_IS_STATIC" >&6; }
20239
 
{ echo "$as_me:$LINENO: checking if Qt is multithreaded" >&5
20240
 
echo $ECHO_N "checking if Qt is multithreaded... $ECHO_C" >&6; }
20241
 
{ echo "$as_me:$LINENO: result: $QT_IS_MT" >&5
20242
 
echo "${ECHO_T}$QT_IS_MT" >&6; }
20243
 
{ echo "$as_me:$LINENO: checking if Qt is embedded" >&5
20244
 
echo $ECHO_N "checking if Qt is embedded... $ECHO_C" >&6; }
20245
 
{ echo "$as_me:$LINENO: result: $QT_IS_EMBEDDED" >&5
20246
 
echo "${ECHO_T}$QT_IS_EMBEDDED" >&6; }
 
20250
echo "$as_me:$LINENO: checking if Qt is static" >&5
 
20251
echo $ECHO_N "checking if Qt is static... $ECHO_C" >&6
 
20252
echo "$as_me:$LINENO: result: $QT_IS_STATIC" >&5
 
20253
echo "${ECHO_T}$QT_IS_STATIC" >&6
 
20254
echo "$as_me:$LINENO: checking if Qt is multithreaded" >&5
 
20255
echo $ECHO_N "checking if Qt is multithreaded... $ECHO_C" >&6
 
20256
echo "$as_me:$LINENO: result: $QT_IS_MT" >&5
 
20257
echo "${ECHO_T}$QT_IS_MT" >&6
 
20258
echo "$as_me:$LINENO: checking if Qt is embedded" >&5
 
20259
echo $ECHO_N "checking if Qt is embedded... $ECHO_C" >&6
 
20260
echo "$as_me:$LINENO: result: $QT_IS_EMBEDDED" >&5
 
20261
echo "${ECHO_T}$QT_IS_EMBEDDED" >&6
20247
20262
 
20248
20263
QT_GUILINK=""
20249
20264
QASSISTANTCLIENT_LDADD="-lqassistantclient"
20322
20337
if test x$QT_IS_STATIC = xyes ; then
20323
20338
    OLDLIBS="$LIBS"
20324
20339
    LIBS="$QT_LDADD"
20325
 
    { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
20326
 
echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
 
20340
    echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
 
20341
echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
20327
20342
if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
20328
20343
  echo $ECHO_N "(cached) $ECHO_C" >&6
20329
20344
else
20336
20351
cat >>conftest.$ac_ext <<_ACEOF
20337
20352
/* end confdefs.h.  */
20338
20353
 
20339
 
/* Override any GCC internal prototype to avoid an error.
20340
 
   Use char because int might match the return type of a GCC
20341
 
   builtin and then its argument prototype would still apply.  */
 
20354
/* Override any gcc2 internal prototype to avoid an error.  */
20342
20355
#ifdef __cplusplus
20343
20356
extern "C"
20344
20357
#endif
 
20358
/* We use char because int might match the return type of a gcc2
 
20359
   builtin and then its argument prototype would still apply.  */
20345
20360
char XftFontOpen ();
20346
20361
int
20347
20362
main ()
20348
20363
{
20349
 
return XftFontOpen ();
 
20364
XftFontOpen ();
20350
20365
  ;
20351
20366
  return 0;
20352
20367
}
20353
20368
_ACEOF
20354
20369
rm -f conftest.$ac_objext conftest$ac_exeext
20355
 
if { (ac_try="$ac_link"
20356
 
case "(($ac_try" in
20357
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358
 
  *) ac_try_echo=$ac_try;;
20359
 
esac
20360
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361
 
  (eval "$ac_link") 2>conftest.er1
 
20370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20371
  (eval $ac_link) 2>conftest.er1
20362
20372
  ac_status=$?
20363
20373
  grep -v '^ *+' conftest.er1 >conftest.err
20364
20374
  rm -f conftest.er1
20365
20375
  cat conftest.err >&5
20366
20376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367
 
  (exit $ac_status); } && {
20368
 
         test -z "$ac_c_werror_flag" ||
20369
 
         test ! -s conftest.err
20370
 
       } && test -s conftest$ac_exeext &&
20371
 
       $as_test_x conftest$ac_exeext; then
 
20377
  (exit $ac_status); } &&
 
20378
         { ac_try='test -z "$ac_c_werror_flag"
 
20379
                         || test ! -s conftest.err'
 
20380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20381
  (eval $ac_try) 2>&5
 
20382
  ac_status=$?
 
20383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20384
  (exit $ac_status); }; } &&
 
20385
         { ac_try='test -s conftest$ac_exeext'
 
20386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20387
  (eval $ac_try) 2>&5
 
20388
  ac_status=$?
 
20389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20390
  (exit $ac_status); }; }; then
20372
20391
  ac_cv_lib_Xft_XftFontOpen=yes
20373
20392
else
20374
20393
  echo "$as_me: failed program was:" >&5
20375
20394
sed 's/^/| /' conftest.$ac_ext >&5
20376
20395
 
20377
 
        ac_cv_lib_Xft_XftFontOpen=no
 
20396
ac_cv_lib_Xft_XftFontOpen=no
20378
20397
fi
20379
 
 
20380
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20398
rm -f conftest.err conftest.$ac_objext \
20381
20399
      conftest$ac_exeext conftest.$ac_ext
20382
20400
LIBS=$ac_check_lib_save_LIBS
20383
20401
fi
20384
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
20385
 
echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
 
20402
echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
 
20403
echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
20386
20404
if test $ac_cv_lib_Xft_XftFontOpen = yes; then
20387
20405
  QT_LDADD="$QT_LDADD -lXft"
20388
20406
fi
20390
20408
    LIBS="$LIBS"
20391
20409
fi
20392
20410
 
20393
 
{ echo "$as_me:$LINENO: checking QT_CXXFLAGS" >&5
20394
 
echo $ECHO_N "checking QT_CXXFLAGS... $ECHO_C" >&6; }
20395
 
{ echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
20396
 
echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
20397
 
{ echo "$as_me:$LINENO: checking QT_LDADD" >&5
20398
 
echo $ECHO_N "checking QT_LDADD... $ECHO_C" >&6; }
20399
 
{ echo "$as_me:$LINENO: result: $QT_LDADD" >&5
20400
 
echo "${ECHO_T}$QT_LDADD" >&6; }
 
20411
echo "$as_me:$LINENO: checking QT_CXXFLAGS" >&5
 
20412
echo $ECHO_N "checking QT_CXXFLAGS... $ECHO_C" >&6
 
20413
echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
 
20414
echo "${ECHO_T}$QT_CXXFLAGS" >&6
 
20415
echo "$as_me:$LINENO: checking QT_LDADD" >&5
 
20416
echo $ECHO_N "checking QT_LDADD... $ECHO_C" >&6
 
20417
echo "$as_me:$LINENO: result: $QT_LDADD" >&5
 
20418
echo "${ECHO_T}$QT_LDADD" >&6
20401
20419
 
20402
20420
 
20403
20421
 
20410
20428
CXXFLAGS="-g $CXXFLAGS"
20411
20429
 
20412
20430
# Checks for header files.
20413
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20414
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
20431
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20432
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20415
20433
if test "${ac_cv_header_stdc+set}" = set; then
20416
20434
  echo $ECHO_N "(cached) $ECHO_C" >&6
20417
20435
else
20435
20453
}
20436
20454
_ACEOF
20437
20455
rm -f conftest.$ac_objext
20438
 
if { (ac_try="$ac_compile"
20439
 
case "(($ac_try" in
20440
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441
 
  *) ac_try_echo=$ac_try;;
20442
 
esac
20443
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444
 
  (eval "$ac_compile") 2>conftest.er1
 
20456
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20457
  (eval $ac_compile) 2>conftest.er1
20445
20458
  ac_status=$?
20446
20459
  grep -v '^ *+' conftest.er1 >conftest.err
20447
20460
  rm -f conftest.er1
20448
20461
  cat conftest.err >&5
20449
20462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450
 
  (exit $ac_status); } && {
20451
 
         test -z "$ac_c_werror_flag" ||
20452
 
         test ! -s conftest.err
20453
 
       } && test -s conftest.$ac_objext; then
 
20463
  (exit $ac_status); } &&
 
20464
         { ac_try='test -z "$ac_c_werror_flag"
 
20465
                         || test ! -s conftest.err'
 
20466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20467
  (eval $ac_try) 2>&5
 
20468
  ac_status=$?
 
20469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20470
  (exit $ac_status); }; } &&
 
20471
         { ac_try='test -s conftest.$ac_objext'
 
20472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20473
  (eval $ac_try) 2>&5
 
20474
  ac_status=$?
 
20475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20476
  (exit $ac_status); }; }; then
20454
20477
  ac_cv_header_stdc=yes
20455
20478
else
20456
20479
  echo "$as_me: failed program was:" >&5
20457
20480
sed 's/^/| /' conftest.$ac_ext >&5
20458
20481
 
20459
 
        ac_cv_header_stdc=no
 
20482
ac_cv_header_stdc=no
20460
20483
fi
20461
 
 
20462
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20484
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20463
20485
 
20464
20486
if test $ac_cv_header_stdc = yes; then
20465
20487
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20515
20537
cat >>conftest.$ac_ext <<_ACEOF
20516
20538
/* end confdefs.h.  */
20517
20539
#include <ctype.h>
20518
 
#include <stdlib.h>
20519
20540
#if ((' ' & 0x0FF) == 0x020)
20520
20541
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20521
20542
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20535
20556
  for (i = 0; i < 256; i++)
20536
20557
    if (XOR (islower (i), ISLOWER (i))
20537
20558
        || toupper (i) != TOUPPER (i))
20538
 
      return 2;
20539
 
  return 0;
 
20559
      exit(2);
 
20560
  exit (0);
20540
20561
}
20541
20562
_ACEOF
20542
20563
rm -f conftest$ac_exeext
20543
 
if { (ac_try="$ac_link"
20544
 
case "(($ac_try" in
20545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546
 
  *) ac_try_echo=$ac_try;;
20547
 
esac
20548
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549
 
  (eval "$ac_link") 2>&5
 
20564
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20565
  (eval $ac_link) 2>&5
20550
20566
  ac_status=$?
20551
20567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552
20568
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20553
 
  { (case "(($ac_try" in
20554
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555
 
  *) ac_try_echo=$ac_try;;
20556
 
esac
20557
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558
 
  (eval "$ac_try") 2>&5
 
20569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20570
  (eval $ac_try) 2>&5
20559
20571
  ac_status=$?
20560
20572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561
20573
  (exit $ac_status); }; }; then
20568
20580
( exit $ac_status )
20569
20581
ac_cv_header_stdc=no
20570
20582
fi
20571
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20572
 
fi
20573
 
 
20574
 
 
20575
 
fi
20576
 
fi
20577
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20578
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
20583
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20584
fi
 
20585
fi
 
20586
fi
 
20587
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20588
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20579
20589
if test $ac_cv_header_stdc = yes; then
20580
20590
 
20581
20591
cat >>confdefs.h <<\_ACEOF
20590
20600
for ac_header in errno.h stdlib.h unistd.h
20591
20601
do
20592
20602
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20593
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20594
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20595
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20596
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20603
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20604
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20605
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20606
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20597
20607
  echo $ECHO_N "(cached) $ECHO_C" >&6
20598
20608
fi
20599
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20600
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20601
 
echo "${ECHO_T}$ac_res" >&6; }
 
20609
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20610
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20602
20611
else
20603
20612
  # Is the header compilable?
20604
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20605
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20613
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20614
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20606
20615
cat >conftest.$ac_ext <<_ACEOF
20607
20616
/* confdefs.h.  */
20608
20617
_ACEOF
20613
20622
#include <$ac_header>
20614
20623
_ACEOF
20615
20624
rm -f conftest.$ac_objext
20616
 
if { (ac_try="$ac_compile"
20617
 
case "(($ac_try" in
20618
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619
 
  *) ac_try_echo=$ac_try;;
20620
 
esac
20621
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622
 
  (eval "$ac_compile") 2>conftest.er1
 
20625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20626
  (eval $ac_compile) 2>conftest.er1
20623
20627
  ac_status=$?
20624
20628
  grep -v '^ *+' conftest.er1 >conftest.err
20625
20629
  rm -f conftest.er1
20626
20630
  cat conftest.err >&5
20627
20631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628
 
  (exit $ac_status); } && {
20629
 
         test -z "$ac_c_werror_flag" ||
20630
 
         test ! -s conftest.err
20631
 
       } && test -s conftest.$ac_objext; then
 
20632
  (exit $ac_status); } &&
 
20633
         { ac_try='test -z "$ac_c_werror_flag"
 
20634
                         || test ! -s conftest.err'
 
20635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20636
  (eval $ac_try) 2>&5
 
20637
  ac_status=$?
 
20638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20639
  (exit $ac_status); }; } &&
 
20640
         { ac_try='test -s conftest.$ac_objext'
 
20641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20642
  (eval $ac_try) 2>&5
 
20643
  ac_status=$?
 
20644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20645
  (exit $ac_status); }; }; then
20632
20646
  ac_header_compiler=yes
20633
20647
else
20634
20648
  echo "$as_me: failed program was:" >&5
20635
20649
sed 's/^/| /' conftest.$ac_ext >&5
20636
20650
 
20637
 
        ac_header_compiler=no
 
20651
ac_header_compiler=no
20638
20652
fi
20639
 
 
20640
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20642
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20653
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20654
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20655
echo "${ECHO_T}$ac_header_compiler" >&6
20643
20656
 
20644
20657
# Is the header present?
20645
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20646
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20658
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20659
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20647
20660
cat >conftest.$ac_ext <<_ACEOF
20648
20661
/* confdefs.h.  */
20649
20662
_ACEOF
20652
20665
/* end confdefs.h.  */
20653
20666
#include <$ac_header>
20654
20667
_ACEOF
20655
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20656
 
case "(($ac_try" in
20657
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658
 
  *) ac_try_echo=$ac_try;;
20659
 
esac
20660
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20668
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20669
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20662
20670
  ac_status=$?
20663
20671
  grep -v '^ *+' conftest.er1 >conftest.err
20664
20672
  rm -f conftest.er1
20665
20673
  cat conftest.err >&5
20666
20674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667
 
  (exit $ac_status); } >/dev/null && {
20668
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20669
 
         test ! -s conftest.err
20670
 
       }; then
 
20675
  (exit $ac_status); } >/dev/null; then
 
20676
  if test -s conftest.err; then
 
20677
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20678
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20679
  else
 
20680
    ac_cpp_err=
 
20681
  fi
 
20682
else
 
20683
  ac_cpp_err=yes
 
20684
fi
 
20685
if test -z "$ac_cpp_err"; then
20671
20686
  ac_header_preproc=yes
20672
20687
else
20673
20688
  echo "$as_me: failed program was:" >&5
20675
20690
 
20676
20691
  ac_header_preproc=no
20677
20692
fi
20678
 
 
20679
20693
rm -f conftest.err conftest.$ac_ext
20680
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20681
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20694
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20695
echo "${ECHO_T}$ac_header_preproc" >&6
20682
20696
 
20683
20697
# So?  What about this header?
20684
20698
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20702
20716
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20703
20717
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20704
20718
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20705
 
    ( cat <<\_ASBOX
 
20719
    (
 
20720
      cat <<\_ASBOX
20706
20721
## -------------------------------------------- ##
20707
20722
## Report this to bherger@users.sourceforge.net ##
20708
20723
## -------------------------------------------- ##
20709
20724
_ASBOX
20710
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20725
    ) |
 
20726
      sed "s/^/$as_me: WARNING:     /" >&2
20711
20727
    ;;
20712
20728
esac
20713
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20714
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20715
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20729
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20730
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20731
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20716
20732
  echo $ECHO_N "(cached) $ECHO_C" >&6
20717
20733
else
20718
20734
  eval "$as_ac_Header=\$ac_header_preproc"
20719
20735
fi
20720
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20721
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20722
 
echo "${ECHO_T}$ac_res" >&6; }
 
20736
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20737
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20723
20738
 
20724
20739
fi
20725
20740
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20733
20748
 
20734
20749
 
20735
20750
# Checks for typedefs, structures, and compiler characteristics.
20736
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20737
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
20751
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20752
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20738
20753
if test "${ac_cv_c_const+set}" = set; then
20739
20754
  echo $ECHO_N "(cached) $ECHO_C" >&6
20740
20755
else
20752
20767
#ifndef __cplusplus
20753
20768
  /* Ultrix mips cc rejects this.  */
20754
20769
  typedef int charset[2];
20755
 
  const charset cs;
 
20770
  const charset x;
20756
20771
  /* SunOS 4.1.1 cc rejects this.  */
20757
 
  char const *const *pcpcc;
20758
 
  char **ppc;
 
20772
  char const *const *ccp;
 
20773
  char **p;
20759
20774
  /* NEC SVR4.0.2 mips cc rejects this.  */
20760
20775
  struct point {int x, y;};
20761
20776
  static struct point const zero = {0,0};
20764
20779
     an arm of an if-expression whose if-part is not a constant
20765
20780
     expression */
20766
20781
  const char *g = "string";
20767
 
  pcpcc = &g + (g ? g-g : 0);
 
20782
  ccp = &g + (g ? g-g : 0);
20768
20783
  /* HPUX 7.0 cc rejects these. */
20769
 
  ++pcpcc;
20770
 
  ppc = (char**) pcpcc;
20771
 
  pcpcc = (char const *const *) ppc;
 
20784
  ++ccp;
 
20785
  p = (char**) ccp;
 
20786
  ccp = (char const *const *) p;
20772
20787
  { /* SCO 3.2v4 cc rejects this.  */
20773
20788
    char *t;
20774
20789
    char const *s = 0 ? (char *) 0 : (char const *) 0;
20775
20790
 
20776
20791
    *t++ = 0;
20777
 
    if (s) return 0;
20778
20792
  }
20779
20793
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20780
20794
    int x[] = {25, 17};
20793
20807
  }
20794
20808
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20795
20809
    const int foo = 10;
20796
 
    if (!foo) return 0;
20797
20810
  }
20798
 
  return !cs[0] && !zero.x;
20799
20811
#endif
20800
20812
 
20801
20813
  ;
20803
20815
}
20804
20816
_ACEOF
20805
20817
rm -f conftest.$ac_objext
20806
 
if { (ac_try="$ac_compile"
20807
 
case "(($ac_try" in
20808
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809
 
  *) ac_try_echo=$ac_try;;
20810
 
esac
20811
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812
 
  (eval "$ac_compile") 2>conftest.er1
 
20818
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20819
  (eval $ac_compile) 2>conftest.er1
20813
20820
  ac_status=$?
20814
20821
  grep -v '^ *+' conftest.er1 >conftest.err
20815
20822
  rm -f conftest.er1
20816
20823
  cat conftest.err >&5
20817
20824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818
 
  (exit $ac_status); } && {
20819
 
         test -z "$ac_c_werror_flag" ||
20820
 
         test ! -s conftest.err
20821
 
       } && test -s conftest.$ac_objext; then
 
20825
  (exit $ac_status); } &&
 
20826
         { ac_try='test -z "$ac_c_werror_flag"
 
20827
                         || test ! -s conftest.err'
 
20828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20829
  (eval $ac_try) 2>&5
 
20830
  ac_status=$?
 
20831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20832
  (exit $ac_status); }; } &&
 
20833
         { ac_try='test -s conftest.$ac_objext'
 
20834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20835
  (eval $ac_try) 2>&5
 
20836
  ac_status=$?
 
20837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20838
  (exit $ac_status); }; }; then
20822
20839
  ac_cv_c_const=yes
20823
20840
else
20824
20841
  echo "$as_me: failed program was:" >&5
20825
20842
sed 's/^/| /' conftest.$ac_ext >&5
20826
20843
 
20827
 
        ac_cv_c_const=no
20828
 
fi
20829
 
 
20830
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20831
 
fi
20832
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20833
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
20844
ac_cv_c_const=no
 
20845
fi
 
20846
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20847
fi
 
20848
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20849
echo "${ECHO_T}$ac_cv_c_const" >&6
20834
20850
if test $ac_cv_c_const = no; then
20835
20851
 
20836
20852
cat >>confdefs.h <<\_ACEOF
20839
20855
 
20840
20856
fi
20841
20857
 
20842
 
{ echo "$as_me:$LINENO: checking for inline" >&5
20843
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
20858
echo "$as_me:$LINENO: checking for inline" >&5
 
20859
echo $ECHO_N "checking for inline... $ECHO_C" >&6
20844
20860
if test "${ac_cv_c_inline+set}" = set; then
20845
20861
  echo $ECHO_N "(cached) $ECHO_C" >&6
20846
20862
else
20860
20876
 
20861
20877
_ACEOF
20862
20878
rm -f conftest.$ac_objext
20863
 
if { (ac_try="$ac_compile"
20864
 
case "(($ac_try" in
20865
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866
 
  *) ac_try_echo=$ac_try;;
20867
 
esac
20868
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869
 
  (eval "$ac_compile") 2>conftest.er1
 
20879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20880
  (eval $ac_compile) 2>conftest.er1
20870
20881
  ac_status=$?
20871
20882
  grep -v '^ *+' conftest.er1 >conftest.err
20872
20883
  rm -f conftest.er1
20873
20884
  cat conftest.err >&5
20874
20885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875
 
  (exit $ac_status); } && {
20876
 
         test -z "$ac_c_werror_flag" ||
20877
 
         test ! -s conftest.err
20878
 
       } && test -s conftest.$ac_objext; then
20879
 
  ac_cv_c_inline=$ac_kw
 
20886
  (exit $ac_status); } &&
 
20887
         { ac_try='test -z "$ac_c_werror_flag"
 
20888
                         || test ! -s conftest.err'
 
20889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20890
  (eval $ac_try) 2>&5
 
20891
  ac_status=$?
 
20892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20893
  (exit $ac_status); }; } &&
 
20894
         { ac_try='test -s conftest.$ac_objext'
 
20895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20896
  (eval $ac_try) 2>&5
 
20897
  ac_status=$?
 
20898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20899
  (exit $ac_status); }; }; then
 
20900
  ac_cv_c_inline=$ac_kw; break
20880
20901
else
20881
20902
  echo "$as_me: failed program was:" >&5
20882
20903
sed 's/^/| /' conftest.$ac_ext >&5
20883
20904
 
20884
 
 
20885
20905
fi
20886
 
 
20887
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20888
 
  test "$ac_cv_c_inline" != no && break
 
20906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20889
20907
done
20890
20908
 
20891
20909
fi
20892
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20893
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
20910
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
20911
echo "${ECHO_T}$ac_cv_c_inline" >&6
20894
20912
 
20895
20913
 
20896
20914
case $ac_cv_c_inline in
20908
20926
    ;;
20909
20927
esac
20910
20928
 
20911
 
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20912
 
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
20929
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
20930
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20913
20931
if test "${ac_cv_struct_tm+set}" = set; then
20914
20932
  echo $ECHO_N "(cached) $ECHO_C" >&6
20915
20933
else
20925
20943
int
20926
20944
main ()
20927
20945
{
20928
 
struct tm tm;
20929
 
                                     int *p = &tm.tm_sec;
20930
 
                                     return !p;
 
20946
struct tm *tp; tp->tm_sec;
20931
20947
  ;
20932
20948
  return 0;
20933
20949
}
20934
20950
_ACEOF
20935
20951
rm -f conftest.$ac_objext
20936
 
if { (ac_try="$ac_compile"
20937
 
case "(($ac_try" in
20938
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939
 
  *) ac_try_echo=$ac_try;;
20940
 
esac
20941
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942
 
  (eval "$ac_compile") 2>conftest.er1
 
20952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20953
  (eval $ac_compile) 2>conftest.er1
20943
20954
  ac_status=$?
20944
20955
  grep -v '^ *+' conftest.er1 >conftest.err
20945
20956
  rm -f conftest.er1
20946
20957
  cat conftest.err >&5
20947
20958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948
 
  (exit $ac_status); } && {
20949
 
         test -z "$ac_c_werror_flag" ||
20950
 
         test ! -s conftest.err
20951
 
       } && test -s conftest.$ac_objext; then
 
20959
  (exit $ac_status); } &&
 
20960
         { ac_try='test -z "$ac_c_werror_flag"
 
20961
                         || test ! -s conftest.err'
 
20962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20963
  (eval $ac_try) 2>&5
 
20964
  ac_status=$?
 
20965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20966
  (exit $ac_status); }; } &&
 
20967
         { ac_try='test -s conftest.$ac_objext'
 
20968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20969
  (eval $ac_try) 2>&5
 
20970
  ac_status=$?
 
20971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20972
  (exit $ac_status); }; }; then
20952
20973
  ac_cv_struct_tm=time.h
20953
20974
else
20954
20975
  echo "$as_me: failed program was:" >&5
20955
20976
sed 's/^/| /' conftest.$ac_ext >&5
20956
20977
 
20957
 
        ac_cv_struct_tm=sys/time.h
20958
 
fi
20959
 
 
20960
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961
 
fi
20962
 
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20963
 
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
20978
ac_cv_struct_tm=sys/time.h
 
20979
fi
 
20980
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20981
fi
 
20982
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
20983
echo "${ECHO_T}$ac_cv_struct_tm" >&6
20964
20984
if test $ac_cv_struct_tm = sys/time.h; then
20965
20985
 
20966
20986
cat >>confdefs.h <<\_ACEOF
20975
20995
for ac_header in stdlib.h
20976
20996
do
20977
20997
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20978
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20979
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20980
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20981
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20999
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21000
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21001
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20982
21002
  echo $ECHO_N "(cached) $ECHO_C" >&6
20983
21003
fi
20984
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20985
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20986
 
echo "${ECHO_T}$ac_res" >&6; }
 
21004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20987
21006
else
20988
21007
  # Is the header compilable?
20989
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20990
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21008
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21009
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20991
21010
cat >conftest.$ac_ext <<_ACEOF
20992
21011
/* confdefs.h.  */
20993
21012
_ACEOF
20998
21017
#include <$ac_header>
20999
21018
_ACEOF
21000
21019
rm -f conftest.$ac_objext
21001
 
if { (ac_try="$ac_compile"
21002
 
case "(($ac_try" in
21003
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004
 
  *) ac_try_echo=$ac_try;;
21005
 
esac
21006
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007
 
  (eval "$ac_compile") 2>conftest.er1
 
21020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21021
  (eval $ac_compile) 2>conftest.er1
21008
21022
  ac_status=$?
21009
21023
  grep -v '^ *+' conftest.er1 >conftest.err
21010
21024
  rm -f conftest.er1
21011
21025
  cat conftest.err >&5
21012
21026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013
 
  (exit $ac_status); } && {
21014
 
         test -z "$ac_c_werror_flag" ||
21015
 
         test ! -s conftest.err
21016
 
       } && test -s conftest.$ac_objext; then
 
21027
  (exit $ac_status); } &&
 
21028
         { ac_try='test -z "$ac_c_werror_flag"
 
21029
                         || test ! -s conftest.err'
 
21030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21031
  (eval $ac_try) 2>&5
 
21032
  ac_status=$?
 
21033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21034
  (exit $ac_status); }; } &&
 
21035
         { ac_try='test -s conftest.$ac_objext'
 
21036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21037
  (eval $ac_try) 2>&5
 
21038
  ac_status=$?
 
21039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21040
  (exit $ac_status); }; }; then
21017
21041
  ac_header_compiler=yes
21018
21042
else
21019
21043
  echo "$as_me: failed program was:" >&5
21020
21044
sed 's/^/| /' conftest.$ac_ext >&5
21021
21045
 
21022
 
        ac_header_compiler=no
 
21046
ac_header_compiler=no
21023
21047
fi
21024
 
 
21025
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21027
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21049
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21050
echo "${ECHO_T}$ac_header_compiler" >&6
21028
21051
 
21029
21052
# Is the header present?
21030
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21031
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21053
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21054
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21032
21055
cat >conftest.$ac_ext <<_ACEOF
21033
21056
/* confdefs.h.  */
21034
21057
_ACEOF
21037
21060
/* end confdefs.h.  */
21038
21061
#include <$ac_header>
21039
21062
_ACEOF
21040
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21041
 
case "(($ac_try" in
21042
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043
 
  *) ac_try_echo=$ac_try;;
21044
 
esac
21045
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21063
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21064
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21047
21065
  ac_status=$?
21048
21066
  grep -v '^ *+' conftest.er1 >conftest.err
21049
21067
  rm -f conftest.er1
21050
21068
  cat conftest.err >&5
21051
21069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052
 
  (exit $ac_status); } >/dev/null && {
21053
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21054
 
         test ! -s conftest.err
21055
 
       }; then
 
21070
  (exit $ac_status); } >/dev/null; then
 
21071
  if test -s conftest.err; then
 
21072
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21073
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21074
  else
 
21075
    ac_cpp_err=
 
21076
  fi
 
21077
else
 
21078
  ac_cpp_err=yes
 
21079
fi
 
21080
if test -z "$ac_cpp_err"; then
21056
21081
  ac_header_preproc=yes
21057
21082
else
21058
21083
  echo "$as_me: failed program was:" >&5
21060
21085
 
21061
21086
  ac_header_preproc=no
21062
21087
fi
21063
 
 
21064
21088
rm -f conftest.err conftest.$ac_ext
21065
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21066
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21089
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21090
echo "${ECHO_T}$ac_header_preproc" >&6
21067
21091
 
21068
21092
# So?  What about this header?
21069
21093
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21087
21111
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21088
21112
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21089
21113
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21090
 
    ( cat <<\_ASBOX
 
21114
    (
 
21115
      cat <<\_ASBOX
21091
21116
## -------------------------------------------- ##
21092
21117
## Report this to bherger@users.sourceforge.net ##
21093
21118
## -------------------------------------------- ##
21094
21119
_ASBOX
21095
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21120
    ) |
 
21121
      sed "s/^/$as_me: WARNING:     /" >&2
21096
21122
    ;;
21097
21123
esac
21098
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21099
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21100
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21124
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21126
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21101
21127
  echo $ECHO_N "(cached) $ECHO_C" >&6
21102
21128
else
21103
21129
  eval "$as_ac_Header=\$ac_header_preproc"
21104
21130
fi
21105
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21106
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21107
 
echo "${ECHO_T}$ac_res" >&6; }
 
21131
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21132
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21108
21133
 
21109
21134
fi
21110
21135
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21116
21141
 
21117
21142
done
21118
21143
 
21119
 
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21120
 
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
 
21144
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
21145
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21121
21146
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21122
21147
  echo $ECHO_N "(cached) $ECHO_C" >&6
21123
21148
else
21130
21155
cat confdefs.h >>conftest.$ac_ext
21131
21156
cat >>conftest.$ac_ext <<_ACEOF
21132
21157
/* end confdefs.h.  */
21133
 
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
21158
#if STDC_HEADERS || HAVE_STDLIB_H
21134
21159
# include <stdlib.h>
21135
21160
#else
21136
21161
char *malloc ();
21139
21164
int
21140
21165
main ()
21141
21166
{
21142
 
return ! malloc (0);
 
21167
exit (malloc (0) ? 0 : 1);
21143
21168
  ;
21144
21169
  return 0;
21145
21170
}
21146
21171
_ACEOF
21147
21172
rm -f conftest$ac_exeext
21148
 
if { (ac_try="$ac_link"
21149
 
case "(($ac_try" in
21150
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151
 
  *) ac_try_echo=$ac_try;;
21152
 
esac
21153
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154
 
  (eval "$ac_link") 2>&5
 
21173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21174
  (eval $ac_link) 2>&5
21155
21175
  ac_status=$?
21156
21176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157
21177
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21158
 
  { (case "(($ac_try" in
21159
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160
 
  *) ac_try_echo=$ac_try;;
21161
 
esac
21162
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163
 
  (eval "$ac_try") 2>&5
 
21178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21179
  (eval $ac_try) 2>&5
21164
21180
  ac_status=$?
21165
21181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166
21182
  (exit $ac_status); }; }; then
21173
21189
( exit $ac_status )
21174
21190
ac_cv_func_malloc_0_nonnull=no
21175
21191
fi
21176
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21177
 
fi
21178
 
 
21179
 
 
21180
 
fi
21181
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21182
 
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
 
21192
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21193
fi
 
21194
fi
 
21195
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
21196
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21183
21197
if test $ac_cv_func_malloc_0_nonnull = yes; then
21184
21198
 
21185
21199
cat >>confdefs.h <<\_ACEOF
21191
21205
#define HAVE_MALLOC 0
21192
21206
_ACEOF
21193
21207
 
21194
 
   case " $LIBOBJS " in
 
21208
   case $LIBOBJS in
 
21209
    "malloc.$ac_objext"   | \
 
21210
  *" malloc.$ac_objext"   | \
 
21211
    "malloc.$ac_objext "* | \
21195
21212
  *" malloc.$ac_objext "* ) ;;
21196
 
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21197
 
 ;;
 
21213
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21198
21214
esac
21199
21215
 
21200
21216
 
21212
21228
for ac_func in floor pow sqrt
21213
21229
do
21214
21230
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21215
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21216
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21217
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21231
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21232
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21233
if eval "test \"\${$as_ac_var+set}\" = set"; then
21218
21234
  echo $ECHO_N "(cached) $ECHO_C" >&6
21219
21235
else
21220
21236
  cat >conftest.$ac_ext <<_ACEOF
21240
21256
 
21241
21257
#undef $ac_func
21242
21258
 
21243
 
/* Override any GCC internal prototype to avoid an error.
21244
 
   Use char because int might match the return type of a GCC
21245
 
   builtin and then its argument prototype would still apply.  */
 
21259
/* Override any gcc2 internal prototype to avoid an error.  */
21246
21260
#ifdef __cplusplus
21247
21261
extern "C"
 
21262
{
21248
21263
#endif
 
21264
/* We use char because int might match the return type of a gcc2
 
21265
   builtin and then its argument prototype would still apply.  */
21249
21266
char $ac_func ();
21250
21267
/* The GNU C library defines this for functions which it implements
21251
21268
    to always fail with ENOSYS.  Some functions are actually named
21252
21269
    something starting with __ and the normal name is an alias.  */
21253
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21270
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21254
21271
choke me
 
21272
#else
 
21273
char (*f) () = $ac_func;
 
21274
#endif
 
21275
#ifdef __cplusplus
 
21276
}
21255
21277
#endif
21256
21278
 
21257
21279
int
21258
21280
main ()
21259
21281
{
21260
 
return $ac_func ();
 
21282
return f != $ac_func;
21261
21283
  ;
21262
21284
  return 0;
21263
21285
}
21264
21286
_ACEOF
21265
21287
rm -f conftest.$ac_objext conftest$ac_exeext
21266
 
if { (ac_try="$ac_link"
21267
 
case "(($ac_try" in
21268
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269
 
  *) ac_try_echo=$ac_try;;
21270
 
esac
21271
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272
 
  (eval "$ac_link") 2>conftest.er1
 
21288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21289
  (eval $ac_link) 2>conftest.er1
21273
21290
  ac_status=$?
21274
21291
  grep -v '^ *+' conftest.er1 >conftest.err
21275
21292
  rm -f conftest.er1
21276
21293
  cat conftest.err >&5
21277
21294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278
 
  (exit $ac_status); } && {
21279
 
         test -z "$ac_c_werror_flag" ||
21280
 
         test ! -s conftest.err
21281
 
       } && test -s conftest$ac_exeext &&
21282
 
       $as_test_x conftest$ac_exeext; then
 
21295
  (exit $ac_status); } &&
 
21296
         { ac_try='test -z "$ac_c_werror_flag"
 
21297
                         || test ! -s conftest.err'
 
21298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21299
  (eval $ac_try) 2>&5
 
21300
  ac_status=$?
 
21301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21302
  (exit $ac_status); }; } &&
 
21303
         { ac_try='test -s conftest$ac_exeext'
 
21304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21305
  (eval $ac_try) 2>&5
 
21306
  ac_status=$?
 
21307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21308
  (exit $ac_status); }; }; then
21283
21309
  eval "$as_ac_var=yes"
21284
21310
else
21285
21311
  echo "$as_me: failed program was:" >&5
21286
21312
sed 's/^/| /' conftest.$ac_ext >&5
21287
21313
 
21288
 
        eval "$as_ac_var=no"
 
21314
eval "$as_ac_var=no"
21289
21315
fi
21290
 
 
21291
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21316
rm -f conftest.err conftest.$ac_objext \
21292
21317
      conftest$ac_exeext conftest.$ac_ext
21293
21318
fi
21294
 
ac_res=`eval echo '${'$as_ac_var'}'`
21295
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21296
 
echo "${ECHO_T}$ac_res" >&6; }
 
21319
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21320
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21297
21321
if test `eval echo '${'$as_ac_var'}'` = yes; then
21298
21322
  cat >>confdefs.h <<_ACEOF
21299
21323
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21305
21329
 
21306
21330
MY_SUBDIRS=". xdrawchem ring doc"
21307
21331
 
21308
 
ac_config_files="$ac_config_files Makefile xdrawchem/Makefile doc/Makefile ring/Makefile"
 
21332
                                        ac_config_files="$ac_config_files Makefile xdrawchem/Makefile doc/Makefile ring/Makefile"
21309
21333
 
21310
21334
 
21311
21335
cat >confcache <<\_ACEOF
21326
21350
 
21327
21351
# The following way of writing the cache mishandles newlines in values,
21328
21352
# but we know of no workaround that is simple, portable, and efficient.
21329
 
# So, we kill variables containing newlines.
 
21353
# So, don't put newlines in cache variables' values.
21330
21354
# Ultrix sh set writes to stderr and can't be redirected directly,
21331
21355
# and sets the high bit in the cache file unless we assign to the vars.
21332
 
(
21333
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21334
 
    eval ac_val=\$$ac_var
21335
 
    case $ac_val in #(
21336
 
    *${as_nl}*)
21337
 
      case $ac_var in #(
21338
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21339
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21340
 
      esac
21341
 
      case $ac_var in #(
21342
 
      _ | IFS | as_nl) ;; #(
21343
 
      *) $as_unset $ac_var ;;
21344
 
      esac ;;
21345
 
    esac
21346
 
  done
21347
 
 
 
21356
{
21348
21357
  (set) 2>&1 |
21349
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21350
 
    *${as_nl}ac_space=\ *)
 
21358
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
21359
    *ac_space=\ *)
21351
21360
      # `set' does not quote correctly, so add quotes (double-quote
21352
21361
      # substitution turns \\\\ into \\, and sed turns \\ into \).
21353
21362
      sed -n \
21354
21363
        "s/'/'\\\\''/g;
21355
21364
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21356
 
      ;; #(
 
21365
      ;;
21357
21366
    *)
21358
21367
      # `set' quotes correctly as required by POSIX, so do not add quotes.
21359
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
21368
      sed -n \
 
21369
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21360
21370
      ;;
21361
 
    esac |
21362
 
    sort
21363
 
) |
 
21371
    esac;
 
21372
} |
21364
21373
  sed '
21365
 
     /^ac_cv_env_/b end
21366
21374
     t clear
21367
 
     :clear
 
21375
     : clear
21368
21376
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21369
21377
     t end
21370
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21371
 
     :end' >>confcache
21372
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21373
 
  if test -w "$cache_file"; then
21374
 
    test "x$cache_file" != "x/dev/null" &&
21375
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21376
 
echo "$as_me: updating cache $cache_file" >&6;}
 
21378
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21379
     : end' >>confcache
 
21380
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
21381
  if test -w $cache_file; then
 
21382
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21377
21383
    cat confcache >$cache_file
21378
21384
  else
21379
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21380
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
21385
    echo "not updating unwritable cache $cache_file"
21381
21386
  fi
21382
21387
fi
21383
21388
rm -f confcache
21386
21391
# Let make expand exec_prefix.
21387
21392
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21388
21393
 
 
21394
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21395
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21396
# trailing colons and then remove the whole line if VPATH becomes empty
 
21397
# (actually we leave an empty line to preserve line numbers).
 
21398
if test "x$srcdir" = x.; then
 
21399
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21400
s/:*\$(srcdir):*/:/;
 
21401
s/:*\${srcdir}:*/:/;
 
21402
s/:*@srcdir@:*/:/;
 
21403
s/^\([^=]*=[     ]*\):*/\1/;
 
21404
s/:*$//;
 
21405
s/^[^=]*=[       ]*$//;
 
21406
}'
 
21407
fi
 
21408
 
21389
21409
DEFS=-DHAVE_CONFIG_H
21390
21410
 
21391
21411
ac_libobjs=
21392
21412
ac_ltlibobjs=
21393
21413
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21394
21414
  # 1. Remove the extension, and $U if already installed.
21395
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21396
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
21397
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21398
 
  #    will be set to the directory where LIBOBJS objects are built.
21399
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21400
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
21415
  ac_i=`echo "$ac_i" |
 
21416
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
21417
  # 2. Add them.
 
21418
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
21419
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21401
21420
done
21402
21421
LIBOBJS=$ac_libobjs
21403
21422
 
21449
21468
## M4sh Initialization.  ##
21450
21469
## --------------------- ##
21451
21470
 
21452
 
# Be more Bourne compatible
21453
 
DUALCASE=1; export DUALCASE # for MKS sh
 
21471
# Be Bourne compatible
21454
21472
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21455
21473
  emulate sh
21456
21474
  NULLCMD=:
21457
21475
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21458
21476
  # is contrary to our usage.  Disable this feature.
21459
21477
  alias -g '${1+"$@"}'='"$@"'
21460
 
  setopt NO_GLOB_SUBST
21461
 
else
21462
 
  case `(set -o) 2>/dev/null` in
21463
 
  *posix*) set -o posix ;;
21464
 
esac
21465
 
 
21466
 
fi
21467
 
 
21468
 
 
21469
 
 
21470
 
 
21471
 
# PATH needs CR
21472
 
# Avoid depending upon Character Ranges.
21473
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21474
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21475
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21476
 
as_cr_digits='0123456789'
21477
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
21478
 
 
21479
 
# The user is always right.
21480
 
if test "${PATH_SEPARATOR+set}" != set; then
21481
 
  echo "#! /bin/sh" >conf$$.sh
21482
 
  echo  "exit 0"   >>conf$$.sh
21483
 
  chmod +x conf$$.sh
21484
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21485
 
    PATH_SEPARATOR=';'
21486
 
  else
21487
 
    PATH_SEPARATOR=:
21488
 
  fi
21489
 
  rm -f conf$$.sh
21490
 
fi
 
21478
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21479
  set -o posix
 
21480
fi
 
21481
DUALCASE=1; export DUALCASE # for MKS sh
21491
21482
 
21492
21483
# Support unset when possible.
21493
21484
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21497
21488
fi
21498
21489
 
21499
21490
 
21500
 
# IFS
21501
 
# We need space, tab and new line, in precisely that order.  Quoting is
21502
 
# there to prevent editors from complaining about space-tab.
21503
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21504
 
# splitting by setting IFS to empty value.)
21505
 
as_nl='
21506
 
'
21507
 
IFS=" ""        $as_nl"
21508
 
 
21509
 
# Find who we are.  Look in the path if we contain no directory separator.
21510
 
case $0 in
21511
 
  *[\\/]* ) as_myself=$0 ;;
21512
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21513
 
for as_dir in $PATH
21514
 
do
21515
 
  IFS=$as_save_IFS
21516
 
  test -z "$as_dir" && as_dir=.
21517
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21518
 
done
21519
 
IFS=$as_save_IFS
21520
 
 
21521
 
     ;;
21522
 
esac
21523
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
21524
 
# in which case we are not to be found in the path.
21525
 
if test "x$as_myself" = x; then
21526
 
  as_myself=$0
21527
 
fi
21528
 
if test ! -f "$as_myself"; then
21529
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21530
 
  { (exit 1); exit 1; }
21531
 
fi
21532
 
 
21533
21491
# Work around bugs in pre-3.0 UWIN ksh.
21534
 
for as_var in ENV MAIL MAILPATH
21535
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21536
 
done
 
21492
$as_unset ENV MAIL MAILPATH
21537
21493
PS1='$ '
21538
21494
PS2='> '
21539
21495
PS4='+ '
21547
21503
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21548
21504
    eval $as_var=C; export $as_var
21549
21505
  else
21550
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
21506
    $as_unset $as_var
21551
21507
  fi
21552
21508
done
21553
21509
 
21554
21510
# Required to use basename.
21555
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
21556
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
21511
if expr a : '\(a\)' >/dev/null 2>&1; then
21557
21512
  as_expr=expr
21558
21513
else
21559
21514
  as_expr=false
21560
21515
fi
21561
21516
 
21562
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
21517
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21563
21518
  as_basename=basename
21564
21519
else
21565
21520
  as_basename=false
21567
21522
 
21568
21523
 
21569
21524
# Name of the executable.
21570
 
as_me=`$as_basename -- "$0" ||
 
21525
as_me=`$as_basename "$0" ||
21571
21526
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21572
21527
         X"$0" : 'X\(//\)$' \| \
21573
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
21528
         X"$0" : 'X\(/\)$' \| \
 
21529
         .     : '\(.\)' 2>/dev/null ||
21574
21530
echo X/"$0" |
21575
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
21576
 
            s//\1/
21577
 
            q
21578
 
          }
21579
 
          /^X\/\(\/\/\)$/{
21580
 
            s//\1/
21581
 
            q
21582
 
          }
21583
 
          /^X\/\(\/\).*/{
21584
 
            s//\1/
21585
 
            q
21586
 
          }
21587
 
          s/.*/./; q'`
21588
 
 
21589
 
# CDPATH.
21590
 
$as_unset CDPATH
21591
 
 
21592
 
 
21593
 
 
21594
 
  as_lineno_1=$LINENO
21595
 
  as_lineno_2=$LINENO
21596
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21597
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
21531
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
21532
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
21533
          /^X\/\(\/\).*/{ s//\1/; q; }
 
21534
          s/.*/./; q'`
 
21535
 
 
21536
 
 
21537
# PATH needs CR, and LINENO needs CR and PATH.
 
21538
# Avoid depending upon Character Ranges.
 
21539
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21540
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21541
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21542
as_cr_digits='0123456789'
 
21543
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21544
 
 
21545
# The user is always right.
 
21546
if test "${PATH_SEPARATOR+set}" != set; then
 
21547
  echo "#! /bin/sh" >conf$$.sh
 
21548
  echo  "exit 0"   >>conf$$.sh
 
21549
  chmod +x conf$$.sh
 
21550
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21551
    PATH_SEPARATOR=';'
 
21552
  else
 
21553
    PATH_SEPARATOR=:
 
21554
  fi
 
21555
  rm -f conf$$.sh
 
21556
fi
 
21557
 
 
21558
 
 
21559
  as_lineno_1=$LINENO
 
21560
  as_lineno_2=$LINENO
 
21561
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21562
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21563
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
21564
  # Find who we are.  Look in the path if we contain no path at all
 
21565
  # relative or not.
 
21566
  case $0 in
 
21567
    *[\\/]* ) as_myself=$0 ;;
 
21568
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21569
for as_dir in $PATH
 
21570
do
 
21571
  IFS=$as_save_IFS
 
21572
  test -z "$as_dir" && as_dir=.
 
21573
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21574
done
 
21575
 
 
21576
       ;;
 
21577
  esac
 
21578
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
21579
  # in which case we are not to be found in the path.
 
21580
  if test "x$as_myself" = x; then
 
21581
    as_myself=$0
 
21582
  fi
 
21583
  if test ! -f "$as_myself"; then
 
21584
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
21585
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
21586
   { (exit 1); exit 1; }; }
 
21587
  fi
 
21588
  case $CONFIG_SHELL in
 
21589
  '')
 
21590
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21591
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
21592
do
 
21593
  IFS=$as_save_IFS
 
21594
  test -z "$as_dir" && as_dir=.
 
21595
  for as_base in sh bash ksh sh5; do
 
21596
         case $as_dir in
 
21597
         /*)
 
21598
           if ("$as_dir/$as_base" -c '
 
21599
  as_lineno_1=$LINENO
 
21600
  as_lineno_2=$LINENO
 
21601
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21602
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21603
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
21604
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
21605
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
21606
             CONFIG_SHELL=$as_dir/$as_base
 
21607
             export CONFIG_SHELL
 
21608
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
21609
           fi;;
 
21610
         esac
 
21611
       done
 
21612
done
 
21613
;;
 
21614
  esac
21598
21615
 
21599
21616
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21600
21617
  # uniformly replaced by the line number.  The first 'sed' inserts a
21601
 
  # line-number line after each line using $LINENO; the second 'sed'
21602
 
  # does the real work.  The second script uses 'N' to pair each
21603
 
  # line-number line with the line containing $LINENO, and appends
21604
 
  # trailing '-' during substitution so that $LINENO is not a special
21605
 
  # case at line end.
 
21618
  # line-number line before each line; the second 'sed' does the real
 
21619
  # work.  The second script uses 'N' to pair each line-number line
 
21620
  # with the numbered line, and appends trailing '-' during
 
21621
  # substitution so that $LINENO is not a special case at line end.
21606
21622
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21607
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21608
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
21609
 
  sed -n '
21610
 
    p
21611
 
    /[$]LINENO/=
21612
 
  ' <$as_myself |
 
21623
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
21624
  sed '=' <$as_myself |
21613
21625
    sed '
21614
 
      s/[$]LINENO.*/&-/
21615
 
      t lineno
21616
 
      b
21617
 
      :lineno
21618
21626
      N
21619
 
      :loop
21620
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
21627
      s,$,-,
 
21628
      : loop
 
21629
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21621
21630
      t loop
21622
 
      s/-\n.*//
 
21631
      s,-$,,
 
21632
      s,^['$as_cr_digits']*\n,,
21623
21633
    ' >$as_me.lineno &&
21624
 
  chmod +x "$as_me.lineno" ||
21625
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
21634
  chmod +x $as_me.lineno ||
 
21635
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
21636
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21626
21637
   { (exit 1); exit 1; }; }
21627
21638
 
21628
21639
  # Don't try to exec as it changes $[0], causing all sort of problems
21629
21640
  # (the dirname of $[0] is not the place where we might find the
21630
 
  # original and so on.  Autoconf is especially sensitive to this).
21631
 
  . "./$as_me.lineno"
 
21641
  # original and so on.  Autoconf is especially sensible to this).
 
21642
  . ./$as_me.lineno
21632
21643
  # Exit status is that of the last command.
21633
21644
  exit
21634
21645
}
21635
21646
 
21636
21647
 
21637
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21638
 
  as_dirname=dirname
21639
 
else
21640
 
  as_dirname=false
21641
 
fi
21642
 
 
21643
 
ECHO_C= ECHO_N= ECHO_T=
21644
 
case `echo -n x` in
21645
 
-n*)
21646
 
  case `echo 'x\c'` in
21647
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21648
 
  *)   ECHO_C='\c';;
21649
 
  esac;;
21650
 
*)
21651
 
  ECHO_N='-n';;
 
21648
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
21649
  *c*,-n*) ECHO_N= ECHO_C='
 
21650
' ECHO_T='      ' ;;
 
21651
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
21652
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21652
21653
esac
21653
21654
 
21654
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
21655
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
21655
if expr a : '\(a\)' >/dev/null 2>&1; then
21656
21656
  as_expr=expr
21657
21657
else
21658
21658
  as_expr=false
21659
21659
fi
21660
21660
 
21661
21661
rm -f conf$$ conf$$.exe conf$$.file
21662
 
if test -d conf$$.dir; then
21663
 
  rm -f conf$$.dir/conf$$.file
21664
 
else
21665
 
  rm -f conf$$.dir
21666
 
  mkdir conf$$.dir
21667
 
fi
21668
21662
echo >conf$$.file
21669
21663
if ln -s conf$$.file conf$$ 2>/dev/null; then
21670
 
  as_ln_s='ln -s'
21671
 
  # ... but there are two gotchas:
21672
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21673
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21674
 
  # In both cases, we have to default to `cp -p'.
21675
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
21664
  # We could just check for DJGPP; but this test a) works b) is more generic
 
21665
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
21666
  if test -f conf$$.exe; then
 
21667
    # Don't use ln at all; we don't have any links
21676
21668
    as_ln_s='cp -p'
 
21669
  else
 
21670
    as_ln_s='ln -s'
 
21671
  fi
21677
21672
elif ln conf$$.file conf$$ 2>/dev/null; then
21678
21673
  as_ln_s=ln
21679
21674
else
21680
21675
  as_ln_s='cp -p'
21681
21676
fi
21682
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21683
 
rmdir conf$$.dir 2>/dev/null
 
21677
rm -f conf$$ conf$$.exe conf$$.file
21684
21678
 
21685
21679
if mkdir -p . 2>/dev/null; then
21686
21680
  as_mkdir_p=:
21689
21683
  as_mkdir_p=false
21690
21684
fi
21691
21685
 
21692
 
if test -x / >/dev/null 2>&1; then
21693
 
  as_test_x='test -x'
21694
 
else
21695
 
  if ls -dL / >/dev/null 2>&1; then
21696
 
    as_ls_L_option=L
21697
 
  else
21698
 
    as_ls_L_option=
21699
 
  fi
21700
 
  as_test_x='
21701
 
    eval sh -c '\''
21702
 
      if test -d "$1"; then
21703
 
        test -d "$1/.";
21704
 
      else
21705
 
        case $1 in
21706
 
        -*)set "./$1";;
21707
 
        esac;
21708
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21709
 
        ???[sx]*):;;*)false;;esac;fi
21710
 
    '\'' sh
21711
 
  '
21712
 
fi
21713
 
as_executable_p=$as_test_x
 
21686
as_executable_p="test -f"
21714
21687
 
21715
21688
# Sed expression to map a string onto a valid CPP name.
21716
21689
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21719
21692
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21720
21693
 
21721
21694
 
 
21695
# IFS
 
21696
# We need space, tab and new line, in precisely that order.
 
21697
as_nl='
 
21698
'
 
21699
IFS="   $as_nl"
 
21700
 
 
21701
# CDPATH.
 
21702
$as_unset CDPATH
 
21703
 
21722
21704
exec 6>&1
21723
21705
 
21724
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
21706
# Open the log real soon, to keep \$[0] and so on meaningful, and to
21725
21707
# report actual input values of CONFIG_FILES etc. instead of their
21726
 
# values after options handling.
21727
 
ac_log="
 
21708
# values after options handling.  Logging --version etc. is OK.
 
21709
exec 5>>config.log
 
21710
{
 
21711
  echo
 
21712
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21713
## Running $as_me. ##
 
21714
_ASBOX
 
21715
} >&5
 
21716
cat >&5 <<_CSEOF
 
21717
 
21728
21718
This file was extended by xdrawchem $as_me 1.9.4, which was
21729
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
21719
generated by GNU Autoconf 2.59.  Invocation command line was
21730
21720
 
21731
21721
  CONFIG_FILES    = $CONFIG_FILES
21732
21722
  CONFIG_HEADERS  = $CONFIG_HEADERS
21734
21724
  CONFIG_COMMANDS = $CONFIG_COMMANDS
21735
21725
  $ $0 $@
21736
21726
 
21737
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
21738
 
"
21739
 
 
 
21727
_CSEOF
 
21728
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
21729
echo >&5
21740
21730
_ACEOF
21741
21731
 
21742
 
cat >>$CONFIG_STATUS <<_ACEOF
21743
21732
# Files that config.status was made for.
21744
 
config_files="$ac_config_files"
21745
 
config_headers="$ac_config_headers"
21746
 
config_commands="$ac_config_commands"
21747
 
 
21748
 
_ACEOF
 
21733
if test -n "$ac_config_files"; then
 
21734
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
21735
fi
 
21736
 
 
21737
if test -n "$ac_config_headers"; then
 
21738
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
21739
fi
 
21740
 
 
21741
if test -n "$ac_config_links"; then
 
21742
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
21743
fi
 
21744
 
 
21745
if test -n "$ac_config_commands"; then
 
21746
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
21747
fi
21749
21748
 
21750
21749
cat >>$CONFIG_STATUS <<\_ACEOF
 
21750
 
21751
21751
ac_cs_usage="\
21752
21752
\`$as_me' instantiates files from templates according to the
21753
21753
current configuration.
21755
21755
Usage: $0 [OPTIONS] [FILE]...
21756
21756
 
21757
21757
  -h, --help       print this help, then exit
21758
 
  -V, --version    print version number and configuration settings, then exit
 
21758
  -V, --version    print version number, then exit
21759
21759
  -q, --quiet      do not print progress messages
21760
21760
  -d, --debug      don't remove temporary files
21761
21761
      --recheck    update $as_me by reconfiguring in the same conditions
21774
21774
$config_commands
21775
21775
 
21776
21776
Report bugs to <bug-autoconf@gnu.org>."
 
21777
_ACEOF
21777
21778
 
21778
 
_ACEOF
21779
21779
cat >>$CONFIG_STATUS <<_ACEOF
21780
21780
ac_cs_version="\\
21781
21781
xdrawchem config.status 1.9.4
21782
 
configured by $0, generated by GNU Autoconf 2.61,
21783
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
21782
configured by $0, generated by GNU Autoconf 2.59,
 
21783
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21784
21784
 
21785
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
21785
Copyright (C) 2003 Free Software Foundation, Inc.
21786
21786
This config.status script is free software; the Free Software Foundation
21787
21787
gives unlimited permission to copy, distribute and modify it."
21788
 
 
21789
 
ac_pwd='$ac_pwd'
21790
 
srcdir='$srcdir'
21791
 
INSTALL='$INSTALL'
21792
 
MKDIR_P='$MKDIR_P'
 
21788
srcdir=$srcdir
 
21789
INSTALL="$INSTALL"
21793
21790
_ACEOF
21794
21791
 
21795
21792
cat >>$CONFIG_STATUS <<\_ACEOF
21800
21797
do
21801
21798
  case $1 in
21802
21799
  --*=*)
21803
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21804
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
21800
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
21801
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21805
21802
    ac_shift=:
21806
21803
    ;;
21807
 
  *)
 
21804
  -*)
21808
21805
    ac_option=$1
21809
21806
    ac_optarg=$2
21810
21807
    ac_shift=shift
21811
21808
    ;;
 
21809
  *) # This is not an option, so the user has probably given explicit
 
21810
     # arguments.
 
21811
     ac_option=$1
 
21812
     ac_need_defaults=false;;
21812
21813
  esac
21813
21814
 
21814
21815
  case $ac_option in
21815
21816
  # Handling of the options.
 
21817
_ACEOF
 
21818
cat >>$CONFIG_STATUS <<\_ACEOF
21816
21819
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21817
21820
    ac_cs_recheck=: ;;
21818
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21819
 
    echo "$ac_cs_version"; exit ;;
21820
 
  --debug | --debu | --deb | --de | --d | -d )
 
21821
  --version | --vers* | -V )
 
21822
    echo "$ac_cs_version"; exit 0 ;;
 
21823
  --he | --h)
 
21824
    # Conflict between --help and --header
 
21825
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
21826
Try \`$0 --help' for more information." >&5
 
21827
echo "$as_me: error: ambiguous option: $1
 
21828
Try \`$0 --help' for more information." >&2;}
 
21829
   { (exit 1); exit 1; }; };;
 
21830
  --help | --hel | -h )
 
21831
    echo "$ac_cs_usage"; exit 0 ;;
 
21832
  --debug | --d* | -d )
21821
21833
    debug=: ;;
21822
21834
  --file | --fil | --fi | --f )
21823
21835
    $ac_shift
21827
21839
    $ac_shift
21828
21840
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21829
21841
    ac_need_defaults=false;;
21830
 
  --he | --h)
21831
 
    # Conflict between --help and --header
21832
 
    { echo "$as_me: error: ambiguous option: $1
21833
 
Try \`$0 --help' for more information." >&2
21834
 
   { (exit 1); exit 1; }; };;
21835
 
  --help | --hel | -h )
21836
 
    echo "$ac_cs_usage"; exit ;;
21837
21842
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21838
21843
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21839
21844
    ac_cs_silent=: ;;
21840
21845
 
21841
21846
  # This is an error.
21842
 
  -*) { echo "$as_me: error: unrecognized option: $1
21843
 
Try \`$0 --help' for more information." >&2
 
21847
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
21848
Try \`$0 --help' for more information." >&5
 
21849
echo "$as_me: error: unrecognized option: $1
 
21850
Try \`$0 --help' for more information." >&2;}
21844
21851
   { (exit 1); exit 1; }; } ;;
21845
21852
 
21846
 
  *) ac_config_targets="$ac_config_targets $1"
21847
 
     ac_need_defaults=false ;;
 
21853
  *) ac_config_targets="$ac_config_targets $1" ;;
21848
21854
 
21849
21855
  esac
21850
21856
  shift
21860
21866
_ACEOF
21861
21867
cat >>$CONFIG_STATUS <<_ACEOF
21862
21868
if \$ac_cs_recheck; then
21863
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21864
 
  CONFIG_SHELL=$SHELL
21865
 
  export CONFIG_SHELL
21866
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21869
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21870
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21867
21871
fi
21868
21872
 
21869
21873
_ACEOF
21870
 
cat >>$CONFIG_STATUS <<\_ACEOF
21871
 
exec 5>>config.log
21872
 
{
21873
 
  echo
21874
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21875
 
## Running $as_me. ##
21876
 
_ASBOX
21877
 
  echo "$ac_log"
21878
 
} >&5
21879
21874
 
21880
 
_ACEOF
21881
21875
cat >>$CONFIG_STATUS <<_ACEOF
21882
21876
#
21883
 
# INIT-COMMANDS
 
21877
# INIT-COMMANDS section.
21884
21878
#
 
21879
 
21885
21880
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21886
21881
 
21887
21882
_ACEOF
21888
21883
 
 
21884
 
 
21885
 
21889
21886
cat >>$CONFIG_STATUS <<\_ACEOF
21890
 
 
21891
 
# Handling of arguments.
21892
21887
for ac_config_target in $ac_config_targets
21893
21888
do
21894
 
  case $ac_config_target in
21895
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21896
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21897
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21898
 
    "xdrawchem/Makefile") CONFIG_FILES="$CONFIG_FILES xdrawchem/Makefile" ;;
21899
 
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21900
 
    "ring/Makefile") CONFIG_FILES="$CONFIG_FILES ring/Makefile" ;;
21901
 
 
 
21889
  case "$ac_config_target" in
 
21890
  # Handling of arguments.
 
21891
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21892
  "xdrawchem/Makefile" ) CONFIG_FILES="$CONFIG_FILES xdrawchem/Makefile" ;;
 
21893
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
21894
  "ring/Makefile" ) CONFIG_FILES="$CONFIG_FILES ring/Makefile" ;;
 
21895
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21896
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21902
21897
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21903
21898
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21904
21899
   { (exit 1); exit 1; }; };;
21905
21900
  esac
21906
21901
done
21907
21902
 
21908
 
 
21909
21903
# If the user did not use the arguments to specify the items to instantiate,
21910
21904
# then the envvar interface is used.  Set only those that are not.
21911
21905
# We use the long form for the default assignment because of an extremely
21917
21911
fi
21918
21912
 
21919
21913
# Have a temporary directory for convenience.  Make it in the build tree
21920
 
# simply because there is no reason against having it here, and in addition,
 
21914
# simply because there is no reason to put it here, and in addition,
21921
21915
# creating and moving files from /tmp can sometimes cause problems.
21922
 
# Hook for its removal unless debugging.
21923
 
# Note that there is a small window in which the directory will not be cleaned:
21924
 
# after its creation but before its name has been assigned to `$tmp'.
 
21916
# Create a temporary directory, and hook for its removal unless debugging.
21925
21917
$debug ||
21926
21918
{
21927
 
  tmp=
21928
 
  trap 'exit_status=$?
21929
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21930
 
' 0
 
21919
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21931
21920
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21932
21921
}
 
21922
 
21933
21923
# Create a (secure) tmp directory for tmp files.
21934
21924
 
21935
21925
{
21936
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
21926
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21937
21927
  test -n "$tmp" && test -d "$tmp"
21938
21928
}  ||
21939
21929
{
21940
 
  tmp=./conf$$-$RANDOM
21941
 
  (umask 077 && mkdir "$tmp")
 
21930
  tmp=./confstat$$-$RANDOM
 
21931
  (umask 077 && mkdir $tmp)
21942
21932
} ||
21943
21933
{
21944
21934
   echo "$me: cannot create a temporary directory in ." >&2
21945
21935
   { (exit 1); exit 1; }
21946
21936
}
21947
21937
 
 
21938
_ACEOF
 
21939
 
 
21940
cat >>$CONFIG_STATUS <<_ACEOF
 
21941
 
21948
21942
#
21949
 
# Set up the sed scripts for CONFIG_FILES section.
 
21943
# CONFIG_FILES section.
21950
21944
#
21951
21945
 
21952
21946
# No need to generate the scripts if there are no CONFIG_FILES.
21953
21947
# This happens for instance when ./config.status config.h
21954
 
if test -n "$CONFIG_FILES"; then
21955
 
 
21956
 
_ACEOF
21957
 
 
21958
 
 
21959
 
 
21960
 
ac_delim='%!_!# '
21961
 
for ac_last_try in false false false false false :; do
21962
 
  cat >conf$$subs.sed <<_ACEOF
21963
 
SHELL!$SHELL$ac_delim
21964
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21965
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21966
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21967
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21968
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21969
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21970
 
exec_prefix!$exec_prefix$ac_delim
21971
 
prefix!$prefix$ac_delim
21972
 
program_transform_name!$program_transform_name$ac_delim
21973
 
bindir!$bindir$ac_delim
21974
 
sbindir!$sbindir$ac_delim
21975
 
libexecdir!$libexecdir$ac_delim
21976
 
datarootdir!$datarootdir$ac_delim
21977
 
datadir!$datadir$ac_delim
21978
 
sysconfdir!$sysconfdir$ac_delim
21979
 
sharedstatedir!$sharedstatedir$ac_delim
21980
 
localstatedir!$localstatedir$ac_delim
21981
 
includedir!$includedir$ac_delim
21982
 
oldincludedir!$oldincludedir$ac_delim
21983
 
docdir!$docdir$ac_delim
21984
 
infodir!$infodir$ac_delim
21985
 
htmldir!$htmldir$ac_delim
21986
 
dvidir!$dvidir$ac_delim
21987
 
pdfdir!$pdfdir$ac_delim
21988
 
psdir!$psdir$ac_delim
21989
 
libdir!$libdir$ac_delim
21990
 
localedir!$localedir$ac_delim
21991
 
mandir!$mandir$ac_delim
21992
 
DEFS!$DEFS$ac_delim
21993
 
ECHO_C!$ECHO_C$ac_delim
21994
 
ECHO_N!$ECHO_N$ac_delim
21995
 
ECHO_T!$ECHO_T$ac_delim
21996
 
LIBS!$LIBS$ac_delim
21997
 
build_alias!$build_alias$ac_delim
21998
 
host_alias!$host_alias$ac_delim
21999
 
target_alias!$target_alias$ac_delim
22000
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22001
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22002
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
22003
 
am__isrc!$am__isrc$ac_delim
22004
 
CYGPATH_W!$CYGPATH_W$ac_delim
22005
 
PACKAGE!$PACKAGE$ac_delim
22006
 
VERSION!$VERSION$ac_delim
22007
 
ACLOCAL!$ACLOCAL$ac_delim
22008
 
AUTOCONF!$AUTOCONF$ac_delim
22009
 
AUTOMAKE!$AUTOMAKE$ac_delim
22010
 
AUTOHEADER!$AUTOHEADER$ac_delim
22011
 
MAKEINFO!$MAKEINFO$ac_delim
22012
 
install_sh!$install_sh$ac_delim
22013
 
STRIP!$STRIP$ac_delim
22014
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22015
 
mkdir_p!$mkdir_p$ac_delim
22016
 
AWK!$AWK$ac_delim
22017
 
SET_MAKE!$SET_MAKE$ac_delim
22018
 
am__leading_dot!$am__leading_dot$ac_delim
22019
 
AMTAR!$AMTAR$ac_delim
22020
 
am__tar!$am__tar$ac_delim
22021
 
am__untar!$am__untar$ac_delim
22022
 
PKG_CONFIG!$PKG_CONFIG$ac_delim
22023
 
XDRAWCHEM_CFLAGS!$XDRAWCHEM_CFLAGS$ac_delim
22024
 
XDRAWCHEM_LIBS!$XDRAWCHEM_LIBS$ac_delim
22025
 
openbabel_version!$openbabel_version$ac_delim
22026
 
CXX!$CXX$ac_delim
22027
 
CXXFLAGS!$CXXFLAGS$ac_delim
22028
 
LDFLAGS!$LDFLAGS$ac_delim
22029
 
CPPFLAGS!$CPPFLAGS$ac_delim
22030
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
22031
 
EXEEXT!$EXEEXT$ac_delim
22032
 
OBJEXT!$OBJEXT$ac_delim
22033
 
DEPDIR!$DEPDIR$ac_delim
22034
 
am__include!$am__include$ac_delim
22035
 
am__quote!$am__quote$ac_delim
22036
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22037
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22038
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22039
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
22040
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22041
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22042
 
CC!$CC$ac_delim
22043
 
CFLAGS!$CFLAGS$ac_delim
22044
 
ac_ct_CC!$ac_ct_CC$ac_delim
22045
 
CCDEPMODE!$CCDEPMODE$ac_delim
22046
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22047
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22048
 
build!$build$ac_delim
22049
 
build_cpu!$build_cpu$ac_delim
22050
 
build_vendor!$build_vendor$ac_delim
22051
 
build_os!$build_os$ac_delim
22052
 
host!$host$ac_delim
22053
 
host_cpu!$host_cpu$ac_delim
22054
 
host_vendor!$host_vendor$ac_delim
22055
 
host_os!$host_os$ac_delim
22056
 
SED!$SED$ac_delim
22057
 
GREP!$GREP$ac_delim
22058
 
EGREP!$EGREP$ac_delim
22059
 
LN_S!$LN_S$ac_delim
22060
 
_ACEOF
22061
 
 
22062
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22063
 
    break
22064
 
  elif $ac_last_try; then
22065
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22066
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22067
 
   { (exit 1); exit 1; }; }
22068
 
  else
22069
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22070
 
  fi
22071
 
done
22072
 
 
22073
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22074
 
if test -n "$ac_eof"; then
22075
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22076
 
  ac_eof=`expr $ac_eof + 1`
22077
 
fi
22078
 
 
22079
 
cat >>$CONFIG_STATUS <<_ACEOF
22080
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22081
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22082
 
_ACEOF
22083
 
sed '
22084
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22085
 
s/^/s,@/; s/!/@,|#_!!_#|/
22086
 
:n
22087
 
t n
22088
 
s/'"$ac_delim"'$/,g/; t
22089
 
s/$/\\/; p
22090
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22091
 
' >>$CONFIG_STATUS <conf$$subs.sed
22092
 
rm -f conf$$subs.sed
22093
 
cat >>$CONFIG_STATUS <<_ACEOF
22094
 
CEOF$ac_eof
22095
 
_ACEOF
22096
 
 
22097
 
 
22098
 
ac_delim='%!_!# '
22099
 
for ac_last_try in false false false false false :; do
22100
 
  cat >conf$$subs.sed <<_ACEOF
22101
 
ECHO!$ECHO$ac_delim
22102
 
AR!$AR$ac_delim
22103
 
RANLIB!$RANLIB$ac_delim
22104
 
CPP!$CPP$ac_delim
22105
 
CXXCPP!$CXXCPP$ac_delim
22106
 
F77!$F77$ac_delim
22107
 
FFLAGS!$FFLAGS$ac_delim
22108
 
ac_ct_F77!$ac_ct_F77$ac_delim
22109
 
LIBTOOL!$LIBTOOL$ac_delim
22110
 
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22111
 
XMKMF!$XMKMF$ac_delim
22112
 
MOC!$MOC$ac_delim
22113
 
UIC!$UIC$ac_delim
22114
 
QEMBED!$QEMBED$ac_delim
22115
 
QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
22116
 
QT_LDADD!$QT_LDADD$ac_delim
22117
 
QT_GUILINK!$QT_GUILINK$ac_delim
22118
 
QASSISTANTCLIENT_LDADD!$QASSISTANTCLIENT_LDADD$ac_delim
22119
 
LIBOBJS!$LIBOBJS$ac_delim
22120
 
MY_SUBDIRS!$MY_SUBDIRS$ac_delim
22121
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
22122
 
_ACEOF
22123
 
 
22124
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
22125
 
    break
22126
 
  elif $ac_last_try; then
22127
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22128
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22129
 
   { (exit 1); exit 1; }; }
22130
 
  else
22131
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22132
 
  fi
22133
 
done
22134
 
 
22135
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22136
 
if test -n "$ac_eof"; then
22137
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22138
 
  ac_eof=`expr $ac_eof + 1`
22139
 
fi
22140
 
 
22141
 
cat >>$CONFIG_STATUS <<_ACEOF
22142
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22143
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22144
 
_ACEOF
22145
 
sed '
22146
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22147
 
s/^/s,@/; s/!/@,|#_!!_#|/
22148
 
:n
22149
 
t n
22150
 
s/'"$ac_delim"'$/,g/; t
22151
 
s/$/\\/; p
22152
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22153
 
' >>$CONFIG_STATUS <conf$$subs.sed
22154
 
rm -f conf$$subs.sed
22155
 
cat >>$CONFIG_STATUS <<_ACEOF
22156
 
:end
22157
 
s/|#_!!_#|//g
22158
 
CEOF$ac_eof
22159
 
_ACEOF
22160
 
 
22161
 
 
22162
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22163
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22164
 
# trailing colons and then remove the whole line if VPATH becomes empty
22165
 
# (actually we leave an empty line to preserve line numbers).
22166
 
if test "x$srcdir" = x.; then
22167
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
22168
 
s/:*\$(srcdir):*/:/
22169
 
s/:*\${srcdir}:*/:/
22170
 
s/:*@srcdir@:*/:/
22171
 
s/^\([^=]*=[     ]*\):*/\1/
22172
 
s/:*$//
22173
 
s/^[^=]*=[       ]*$//
22174
 
}'
22175
 
fi
22176
 
 
22177
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
21948
if test -n "\$CONFIG_FILES"; then
 
21949
  # Protect against being on the right side of a sed subst in config.status.
 
21950
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
21951
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
21952
s,@SHELL@,$SHELL,;t t
 
21953
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
21954
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
21955
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
21956
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
21957
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
21958
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
21959
s,@exec_prefix@,$exec_prefix,;t t
 
21960
s,@prefix@,$prefix,;t t
 
21961
s,@program_transform_name@,$program_transform_name,;t t
 
21962
s,@bindir@,$bindir,;t t
 
21963
s,@sbindir@,$sbindir,;t t
 
21964
s,@libexecdir@,$libexecdir,;t t
 
21965
s,@datadir@,$datadir,;t t
 
21966
s,@sysconfdir@,$sysconfdir,;t t
 
21967
s,@sharedstatedir@,$sharedstatedir,;t t
 
21968
s,@localstatedir@,$localstatedir,;t t
 
21969
s,@libdir@,$libdir,;t t
 
21970
s,@includedir@,$includedir,;t t
 
21971
s,@oldincludedir@,$oldincludedir,;t t
 
21972
s,@infodir@,$infodir,;t t
 
21973
s,@mandir@,$mandir,;t t
 
21974
s,@build_alias@,$build_alias,;t t
 
21975
s,@host_alias@,$host_alias,;t t
 
21976
s,@target_alias@,$target_alias,;t t
 
21977
s,@DEFS@,$DEFS,;t t
 
21978
s,@ECHO_C@,$ECHO_C,;t t
 
21979
s,@ECHO_N@,$ECHO_N,;t t
 
21980
s,@ECHO_T@,$ECHO_T,;t t
 
21981
s,@LIBS@,$LIBS,;t t
 
21982
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
21983
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
21984
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
21985
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
21986
s,@PACKAGE@,$PACKAGE,;t t
 
21987
s,@VERSION@,$VERSION,;t t
 
21988
s,@ACLOCAL@,$ACLOCAL,;t t
 
21989
s,@AUTOCONF@,$AUTOCONF,;t t
 
21990
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
21991
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
21992
s,@MAKEINFO@,$MAKEINFO,;t t
 
21993
s,@install_sh@,$install_sh,;t t
 
21994
s,@STRIP@,$STRIP,;t t
 
21995
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
21996
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21997
s,@mkdir_p@,$mkdir_p,;t t
 
21998
s,@AWK@,$AWK,;t t
 
21999
s,@SET_MAKE@,$SET_MAKE,;t t
 
22000
s,@am__leading_dot@,$am__leading_dot,;t t
 
22001
s,@AMTAR@,$AMTAR,;t t
 
22002
s,@am__tar@,$am__tar,;t t
 
22003
s,@am__untar@,$am__untar,;t t
 
22004
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
22005
s,@XDRAWCHEM_CFLAGS@,$XDRAWCHEM_CFLAGS,;t t
 
22006
s,@XDRAWCHEM_LIBS@,$XDRAWCHEM_LIBS,;t t
 
22007
s,@openbabel_version@,$openbabel_version,;t t
 
22008
s,@CXX@,$CXX,;t t
 
22009
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
22010
s,@LDFLAGS@,$LDFLAGS,;t t
 
22011
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
22012
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
22013
s,@EXEEXT@,$EXEEXT,;t t
 
22014
s,@OBJEXT@,$OBJEXT,;t t
 
22015
s,@DEPDIR@,$DEPDIR,;t t
 
22016
s,@am__include@,$am__include,;t t
 
22017
s,@am__quote@,$am__quote,;t t
 
22018
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
22019
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
22020
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
22021
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
22022
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
22023
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
22024
s,@CC@,$CC,;t t
 
22025
s,@CFLAGS@,$CFLAGS,;t t
 
22026
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
22027
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
22028
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
22029
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
22030
s,@build@,$build,;t t
 
22031
s,@build_cpu@,$build_cpu,;t t
 
22032
s,@build_vendor@,$build_vendor,;t t
 
22033
s,@build_os@,$build_os,;t t
 
22034
s,@host@,$host,;t t
 
22035
s,@host_cpu@,$host_cpu,;t t
 
22036
s,@host_vendor@,$host_vendor,;t t
 
22037
s,@host_os@,$host_os,;t t
 
22038
s,@EGREP@,$EGREP,;t t
 
22039
s,@LN_S@,$LN_S,;t t
 
22040
s,@ECHO@,$ECHO,;t t
 
22041
s,@AR@,$AR,;t t
 
22042
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
22043
s,@RANLIB@,$RANLIB,;t t
 
22044
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
22045
s,@CPP@,$CPP,;t t
 
22046
s,@CXXCPP@,$CXXCPP,;t t
 
22047
s,@F77@,$F77,;t t
 
22048
s,@FFLAGS@,$FFLAGS,;t t
 
22049
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
22050
s,@LIBTOOL@,$LIBTOOL,;t t
 
22051
s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
 
22052
s,@MOC@,$MOC,;t t
 
22053
s,@UIC@,$UIC,;t t
 
22054
s,@QEMBED@,$QEMBED,;t t
 
22055
s,@QT_CXXFLAGS@,$QT_CXXFLAGS,;t t
 
22056
s,@QT_LDADD@,$QT_LDADD,;t t
 
22057
s,@QT_GUILINK@,$QT_GUILINK,;t t
 
22058
s,@QASSISTANTCLIENT_LDADD@,$QASSISTANTCLIENT_LDADD,;t t
 
22059
s,@LIBOBJS@,$LIBOBJS,;t t
 
22060
s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
 
22061
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
22062
CEOF
 
22063
 
 
22064
_ACEOF
 
22065
 
 
22066
  cat >>$CONFIG_STATUS <<\_ACEOF
 
22067
  # Split the substitutions into bite-sized pieces for seds with
 
22068
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
22069
  ac_max_sed_lines=48
 
22070
  ac_sed_frag=1 # Number of current file.
 
22071
  ac_beg=1 # First line for current file.
 
22072
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
22073
  ac_more_lines=:
 
22074
  ac_sed_cmds=
 
22075
  while $ac_more_lines; do
 
22076
    if test $ac_beg -gt 1; then
 
22077
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22078
    else
 
22079
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22080
    fi
 
22081
    if test ! -s $tmp/subs.frag; then
 
22082
      ac_more_lines=false
 
22083
    else
 
22084
      # The purpose of the label and of the branching condition is to
 
22085
      # speed up the sed processing (if there are no `@' at all, there
 
22086
      # is no need to browse any of the substitutions).
 
22087
      # These are the two extra sed commands mentioned above.
 
22088
      (echo ':t
 
22089
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
22090
      if test -z "$ac_sed_cmds"; then
 
22091
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
22092
      else
 
22093
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
22094
      fi
 
22095
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
22096
      ac_beg=$ac_end
 
22097
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
22098
    fi
 
22099
  done
 
22100
  if test -z "$ac_sed_cmds"; then
 
22101
    ac_sed_cmds=cat
 
22102
  fi
22178
22103
fi # test -n "$CONFIG_FILES"
22179
22104
 
22180
 
 
22181
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22182
 
do
22183
 
  case $ac_tag in
22184
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
22185
 
  esac
22186
 
  case $ac_mode$ac_tag in
22187
 
  :[FHL]*:*);;
22188
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22189
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22190
 
   { (exit 1); exit 1; }; };;
22191
 
  :[FH]-) ac_tag=-:-;;
22192
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22193
 
  esac
22194
 
  ac_save_IFS=$IFS
22195
 
  IFS=:
22196
 
  set x $ac_tag
22197
 
  IFS=$ac_save_IFS
22198
 
  shift
22199
 
  ac_file=$1
22200
 
  shift
22201
 
 
22202
 
  case $ac_mode in
22203
 
  :L) ac_source=$1;;
22204
 
  :[FH])
22205
 
    ac_file_inputs=
22206
 
    for ac_f
22207
 
    do
22208
 
      case $ac_f in
22209
 
      -) ac_f="$tmp/stdin";;
22210
 
      *) # Look for the file first in the build tree, then in the source tree
22211
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
22212
 
         # because $ac_f cannot contain `:'.
22213
 
         test -f "$ac_f" ||
22214
 
           case $ac_f in
22215
 
           [\\/$]*) false;;
22216
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22217
 
           esac ||
22218
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22219
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22220
 
   { (exit 1); exit 1; }; };;
22221
 
      esac
22222
 
      ac_file_inputs="$ac_file_inputs $ac_f"
22223
 
    done
22224
 
 
22225
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
22226
 
    # use $as_me), people would be surprised to read:
22227
 
    #    /* config.h.  Generated by config.status.  */
22228
 
    configure_input="Generated from "`IFS=:
22229
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22230
 
    if test x"$ac_file" != x-; then
22231
 
      configure_input="$ac_file.  $configure_input"
22232
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
22233
 
echo "$as_me: creating $ac_file" >&6;}
22234
 
    fi
22235
 
 
22236
 
    case $ac_tag in
22237
 
    *:-:* | *:-) cat >"$tmp/stdin";;
22238
 
    esac
22239
 
    ;;
22240
 
  esac
22241
 
 
22242
 
  ac_dir=`$as_dirname -- "$ac_file" ||
 
22105
_ACEOF
 
22106
cat >>$CONFIG_STATUS <<\_ACEOF
 
22107
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
22108
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22109
  case $ac_file in
 
22110
  - | *:- | *:-:* ) # input from stdin
 
22111
        cat >$tmp/stdin
 
22112
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22113
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22114
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22115
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22116
  * )   ac_file_in=$ac_file.in ;;
 
22117
  esac
 
22118
 
 
22119
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
22120
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22243
22121
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22244
22122
         X"$ac_file" : 'X\(//\)[^/]' \| \
22245
22123
         X"$ac_file" : 'X\(//\)$' \| \
22246
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
22124
         X"$ac_file" : 'X\(/\)' \| \
 
22125
         .     : '\(.\)' 2>/dev/null ||
22247
22126
echo X"$ac_file" |
22248
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22249
 
            s//\1/
22250
 
            q
22251
 
          }
22252
 
          /^X\(\/\/\)[^/].*/{
22253
 
            s//\1/
22254
 
            q
22255
 
          }
22256
 
          /^X\(\/\/\)$/{
22257
 
            s//\1/
22258
 
            q
22259
 
          }
22260
 
          /^X\(\/\).*/{
22261
 
            s//\1/
22262
 
            q
22263
 
          }
22264
 
          s/.*/./; q'`
22265
 
  { as_dir="$ac_dir"
22266
 
  case $as_dir in #(
22267
 
  -*) as_dir=./$as_dir;;
22268
 
  esac
22269
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22127
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22128
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22129
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22130
          /^X\(\/\).*/{ s//\1/; q; }
 
22131
          s/.*/./; q'`
 
22132
  { if $as_mkdir_p; then
 
22133
    mkdir -p "$ac_dir"
 
22134
  else
 
22135
    as_dir="$ac_dir"
22270
22136
    as_dirs=
22271
 
    while :; do
22272
 
      case $as_dir in #(
22273
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22274
 
      *) as_qdir=$as_dir;;
22275
 
      esac
22276
 
      as_dirs="'$as_qdir' $as_dirs"
22277
 
      as_dir=`$as_dirname -- "$as_dir" ||
 
22137
    while test ! -d "$as_dir"; do
 
22138
      as_dirs="$as_dir $as_dirs"
 
22139
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22278
22140
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22279
22141
         X"$as_dir" : 'X\(//\)[^/]' \| \
22280
22142
         X"$as_dir" : 'X\(//\)$' \| \
22281
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22143
         X"$as_dir" : 'X\(/\)' \| \
 
22144
         .     : '\(.\)' 2>/dev/null ||
22282
22145
echo X"$as_dir" |
22283
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22284
 
            s//\1/
22285
 
            q
22286
 
          }
22287
 
          /^X\(\/\/\)[^/].*/{
22288
 
            s//\1/
22289
 
            q
22290
 
          }
22291
 
          /^X\(\/\/\)$/{
22292
 
            s//\1/
22293
 
            q
22294
 
          }
22295
 
          /^X\(\/\).*/{
22296
 
            s//\1/
22297
 
            q
22298
 
          }
22299
 
          s/.*/./; q'`
22300
 
      test -d "$as_dir" && break
 
22146
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22147
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22148
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22149
          /^X\(\/\).*/{ s//\1/; q; }
 
22150
          s/.*/./; q'`
22301
22151
    done
22302
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
22303
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22304
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
22152
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22153
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22154
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22305
22155
   { (exit 1); exit 1; }; }; }
 
22156
 
22306
22157
  ac_builddir=.
22307
22158
 
22308
 
case "$ac_dir" in
22309
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22310
 
*)
 
22159
if test "$ac_dir" != .; then
22311
22160
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22312
 
  # A ".." for each directory in $ac_dir_suffix.
22313
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22314
 
  case $ac_top_builddir_sub in
22315
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22316
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22317
 
  esac ;;
22318
 
esac
22319
 
ac_abs_top_builddir=$ac_pwd
22320
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22321
 
# for backward compatibility:
22322
 
ac_top_builddir=$ac_top_build_prefix
 
22161
  # A "../" for each directory in $ac_dir_suffix.
 
22162
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22163
else
 
22164
  ac_dir_suffix= ac_top_builddir=
 
22165
fi
22323
22166
 
22324
22167
case $srcdir in
22325
 
  .)  # We are building in place.
 
22168
  .)  # No --srcdir option.  We are building in place.
22326
22169
    ac_srcdir=.
22327
 
    ac_top_srcdir=$ac_top_builddir_sub
22328
 
    ac_abs_top_srcdir=$ac_pwd ;;
22329
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
22170
    if test -z "$ac_top_builddir"; then
 
22171
       ac_top_srcdir=.
 
22172
    else
 
22173
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22174
    fi ;;
 
22175
  [\\/]* | ?:[\\/]* )  # Absolute path.
22330
22176
    ac_srcdir=$srcdir$ac_dir_suffix;
22331
 
    ac_top_srcdir=$srcdir
22332
 
    ac_abs_top_srcdir=$srcdir ;;
22333
 
  *) # Relative name.
22334
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22335
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
22336
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22337
 
esac
22338
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22339
 
 
22340
 
 
22341
 
  case $ac_mode in
22342
 
  :F)
22343
 
  #
22344
 
  # CONFIG_FILE
22345
 
  #
 
22177
    ac_top_srcdir=$srcdir ;;
 
22178
  *) # Relative path.
 
22179
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22180
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22181
esac
 
22182
 
 
22183
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22184
# the directories may not exist.
 
22185
case `pwd` in
 
22186
.) ac_abs_builddir="$ac_dir";;
 
22187
*)
 
22188
  case "$ac_dir" in
 
22189
  .) ac_abs_builddir=`pwd`;;
 
22190
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22191
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22192
  esac;;
 
22193
esac
 
22194
case $ac_abs_builddir in
 
22195
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22196
*)
 
22197
  case ${ac_top_builddir}. in
 
22198
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22199
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22200
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22201
  esac;;
 
22202
esac
 
22203
case $ac_abs_builddir in
 
22204
.) ac_abs_srcdir=$ac_srcdir;;
 
22205
*)
 
22206
  case $ac_srcdir in
 
22207
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22208
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22209
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22210
  esac;;
 
22211
esac
 
22212
case $ac_abs_builddir in
 
22213
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22214
*)
 
22215
  case $ac_top_srcdir in
 
22216
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22217
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22218
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22219
  esac;;
 
22220
esac
 
22221
 
22346
22222
 
22347
22223
  case $INSTALL in
22348
22224
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22349
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22350
 
  esac
22351
 
  ac_MKDIR_P=$MKDIR_P
22352
 
  case $MKDIR_P in
22353
 
  [\\/$]* | ?:[\\/]* ) ;;
22354
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22355
 
  esac
22356
 
_ACEOF
22357
 
 
22358
 
cat >>$CONFIG_STATUS <<\_ACEOF
22359
 
# If the template does not know about datarootdir, expand it.
22360
 
# FIXME: This hack should be removed a few years after 2.60.
22361
 
ac_datarootdir_hack=; ac_datarootdir_seen=
22362
 
 
22363
 
case `sed -n '/datarootdir/ {
22364
 
  p
22365
 
  q
22366
 
}
22367
 
/@datadir@/p
22368
 
/@docdir@/p
22369
 
/@infodir@/p
22370
 
/@localedir@/p
22371
 
/@mandir@/p
22372
 
' $ac_file_inputs` in
22373
 
*datarootdir*) ac_datarootdir_seen=yes;;
22374
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22375
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22376
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22377
 
_ACEOF
22378
 
cat >>$CONFIG_STATUS <<_ACEOF
22379
 
  ac_datarootdir_hack='
22380
 
  s&@datadir@&$datadir&g
22381
 
  s&@docdir@&$docdir&g
22382
 
  s&@infodir@&$infodir&g
22383
 
  s&@localedir@&$localedir&g
22384
 
  s&@mandir@&$mandir&g
22385
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
22386
 
esac
22387
 
_ACEOF
22388
 
 
22389
 
# Neutralize VPATH when `$srcdir' = `.'.
22390
 
# Shell code in configure.ac might set extrasub.
22391
 
# FIXME: do we really want to maintain this feature?
 
22225
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22226
  esac
 
22227
 
 
22228
  if test x"$ac_file" != x-; then
 
22229
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22230
echo "$as_me: creating $ac_file" >&6;}
 
22231
    rm -f "$ac_file"
 
22232
  fi
 
22233
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22234
  # use $as_me), people would be surprised to read:
 
22235
  #    /* config.h.  Generated by config.status.  */
 
22236
  if test x"$ac_file" = x-; then
 
22237
    configure_input=
 
22238
  else
 
22239
    configure_input="$ac_file.  "
 
22240
  fi
 
22241
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
22242
                                     sed 's,.*/,,'` by configure."
 
22243
 
 
22244
  # First look for the input files in the build tree, otherwise in the
 
22245
  # src tree.
 
22246
  ac_file_inputs=`IFS=:
 
22247
    for f in $ac_file_in; do
 
22248
      case $f in
 
22249
      -) echo $tmp/stdin ;;
 
22250
      [\\/$]*)
 
22251
         # Absolute (can't be DOS-style, as IFS=:)
 
22252
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22253
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22254
   { (exit 1); exit 1; }; }
 
22255
         echo "$f";;
 
22256
      *) # Relative
 
22257
         if test -f "$f"; then
 
22258
           # Build tree
 
22259
           echo "$f"
 
22260
         elif test -f "$srcdir/$f"; then
 
22261
           # Source tree
 
22262
           echo "$srcdir/$f"
 
22263
         else
 
22264
           # /dev/null tree
 
22265
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22266
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22267
   { (exit 1); exit 1; }; }
 
22268
         fi;;
 
22269
      esac
 
22270
    done` || { (exit 1); exit 1; }
 
22271
_ACEOF
22392
22272
cat >>$CONFIG_STATUS <<_ACEOF
22393
22273
  sed "$ac_vpsub
22394
22274
$extrasub
22396
22276
cat >>$CONFIG_STATUS <<\_ACEOF
22397
22277
:t
22398
22278
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22399
 
s&@configure_input@&$configure_input&;t t
22400
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
22401
 
s&@srcdir@&$ac_srcdir&;t t
22402
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22403
 
s&@top_srcdir@&$ac_top_srcdir&;t t
22404
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22405
 
s&@builddir@&$ac_builddir&;t t
22406
 
s&@abs_builddir@&$ac_abs_builddir&;t t
22407
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22408
 
s&@INSTALL@&$ac_INSTALL&;t t
22409
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22410
 
$ac_datarootdir_hack
22411
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22412
 
 
22413
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22414
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22415
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22416
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22417
 
which seems to be undefined.  Please make sure it is defined." >&5
22418
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22419
 
which seems to be undefined.  Please make sure it is defined." >&2;}
22420
 
 
22421
 
  rm -f "$tmp/stdin"
22422
 
  case $ac_file in
22423
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
22424
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22425
 
  esac
22426
 
 ;;
22427
 
  :H)
22428
 
  #
22429
 
  # CONFIG_HEADER
22430
 
  #
 
22279
s,@configure_input@,$configure_input,;t t
 
22280
s,@srcdir@,$ac_srcdir,;t t
 
22281
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
22282
s,@top_srcdir@,$ac_top_srcdir,;t t
 
22283
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
22284
s,@builddir@,$ac_builddir,;t t
 
22285
s,@abs_builddir@,$ac_abs_builddir,;t t
 
22286
s,@top_builddir@,$ac_top_builddir,;t t
 
22287
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
22288
s,@INSTALL@,$ac_INSTALL,;t t
 
22289
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
22290
  rm -f $tmp/stdin
 
22291
  if test x"$ac_file" != x-; then
 
22292
    mv $tmp/out $ac_file
 
22293
  else
 
22294
    cat $tmp/out
 
22295
    rm -f $tmp/out
 
22296
  fi
 
22297
 
 
22298
done
22431
22299
_ACEOF
22432
 
 
22433
 
# Transform confdefs.h into a sed script `conftest.defines', that
22434
 
# substitutes the proper values into config.h.in to produce config.h.
22435
 
rm -f conftest.defines conftest.tail
22436
 
# First, append a space to every undef/define line, to ease matching.
22437
 
echo 's/$/ /' >conftest.defines
22438
 
# Then, protect against being on the right side of a sed subst, or in
22439
 
# an unquoted here document, in config.status.  If some macros were
22440
 
# called several times there might be several #defines for the same
22441
 
# symbol, which is useless.  But do not sort them, since the last
22442
 
# AC_DEFINE must be honored.
22443
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22444
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22445
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
22446
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
22447
 
# just an empty string.
22448
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22449
 
ac_dB='\\)[      (].*,\\1define\\2'
 
22300
cat >>$CONFIG_STATUS <<\_ACEOF
 
22301
 
 
22302
#
 
22303
# CONFIG_HEADER section.
 
22304
#
 
22305
 
 
22306
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
22307
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
22308
#
 
22309
# ac_d sets the value in "#define NAME VALUE" lines.
 
22310
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22311
ac_dB='[         ].*$,\1#\2'
22450
22312
ac_dC=' '
22451
 
ac_dD=' ,'
22452
 
 
22453
 
uniq confdefs.h |
22454
 
  sed -n '
22455
 
        t rset
22456
 
        :rset
22457
 
        s/^[     ]*#[    ]*define[       ][      ]*//
22458
 
        t ok
22459
 
        d
22460
 
        :ok
22461
 
        s/[\\&,]/\\&/g
22462
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22463
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22464
 
  ' >>conftest.defines
22465
 
 
22466
 
# Remove the space that was appended to ease matching.
22467
 
# Then replace #undef with comments.  This is necessary, for
 
22313
ac_dD=',;t'
 
22314
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
22315
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22316
ac_uB='$,\1#\2define\3'
 
22317
ac_uC=' '
 
22318
ac_uD=',;t'
 
22319
 
 
22320
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
22321
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22322
  case $ac_file in
 
22323
  - | *:- | *:-:* ) # input from stdin
 
22324
        cat >$tmp/stdin
 
22325
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22326
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22327
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22328
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22329
  * )   ac_file_in=$ac_file.in ;;
 
22330
  esac
 
22331
 
 
22332
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22333
echo "$as_me: creating $ac_file" >&6;}
 
22334
 
 
22335
  # First look for the input files in the build tree, otherwise in the
 
22336
  # src tree.
 
22337
  ac_file_inputs=`IFS=:
 
22338
    for f in $ac_file_in; do
 
22339
      case $f in
 
22340
      -) echo $tmp/stdin ;;
 
22341
      [\\/$]*)
 
22342
         # Absolute (can't be DOS-style, as IFS=:)
 
22343
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22344
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22345
   { (exit 1); exit 1; }; }
 
22346
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22347
         echo "$f";;
 
22348
      *) # Relative
 
22349
         if test -f "$f"; then
 
22350
           # Build tree
 
22351
           echo "$f"
 
22352
         elif test -f "$srcdir/$f"; then
 
22353
           # Source tree
 
22354
           echo "$srcdir/$f"
 
22355
         else
 
22356
           # /dev/null tree
 
22357
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22358
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22359
   { (exit 1); exit 1; }; }
 
22360
         fi;;
 
22361
      esac
 
22362
    done` || { (exit 1); exit 1; }
 
22363
  # Remove the trailing spaces.
 
22364
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
22365
 
 
22366
_ACEOF
 
22367
 
 
22368
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
22369
# `conftest.undefs', that substitutes the proper values into
 
22370
# config.h.in to produce config.h.  The first handles `#define'
 
22371
# templates, and the second `#undef' templates.
 
22372
# And first: Protect against being on the right side of a sed subst in
 
22373
# config.status.  Protect against being in an unquoted here document
 
22374
# in config.status.
 
22375
rm -f conftest.defines conftest.undefs
 
22376
# Using a here document instead of a string reduces the quoting nightmare.
 
22377
# Putting comments in sed scripts is not portable.
 
22378
#
 
22379
# `end' is used to avoid that the second main sed command (meant for
 
22380
# 0-ary CPP macros) applies to n-ary macro definitions.
 
22381
# See the Autoconf documentation for `clear'.
 
22382
cat >confdef2sed.sed <<\_ACEOF
 
22383
s/[\\&,]/\\&/g
 
22384
s,[\\$`],\\&,g
 
22385
t clear
 
22386
: clear
 
22387
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22388
t end
 
22389
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22390
: end
 
22391
_ACEOF
 
22392
# If some macros were called several times there might be several times
 
22393
# the same #defines, which is useless.  Nevertheless, we may not want to
 
22394
# sort them, since we want the *last* AC-DEFINE to be honored.
 
22395
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
22396
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
22397
rm -f confdef2sed.sed
 
22398
 
 
22399
# This sed command replaces #undef with comments.  This is necessary, for
22468
22400
# example, in the case of _POSIX_SOURCE, which is predefined and required
22469
22401
# on some systems where configure will not decide to define it.
22470
 
# (The regexp can be short, since the line contains either #define or #undef.)
22471
 
echo 's/ $//
22472
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
22473
 
 
22474
 
# Break up conftest.defines:
22475
 
ac_max_sed_lines=50
22476
 
 
22477
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22478
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22479
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22480
 
# et cetera.
22481
 
ac_in='$ac_file_inputs'
22482
 
ac_out='"$tmp/out1"'
22483
 
ac_nxt='"$tmp/out2"'
22484
 
 
22485
 
while :
 
22402
cat >>conftest.undefs <<\_ACEOF
 
22403
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22404
_ACEOF
 
22405
 
 
22406
# Break up conftest.defines because some shells have a limit on the size
 
22407
# of here documents, and old seds have small limits too (100 cmds).
 
22408
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
22409
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
22410
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
22411
echo '  :' >>$CONFIG_STATUS
 
22412
rm -f conftest.tail
 
22413
while grep . conftest.defines >/dev/null
22486
22414
do
22487
 
  # Write a here document:
22488
 
    cat >>$CONFIG_STATUS <<_ACEOF
22489
 
    # First, check the format of the line:
22490
 
    cat >"\$tmp/defines.sed" <<\\CEOF
22491
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22492
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22493
 
b
22494
 
:def
22495
 
_ACEOF
22496
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
22415
  # Write a limited-size here document to $tmp/defines.sed.
 
22416
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
22417
  # Speed up: don't consider the non `#define' lines.
 
22418
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
22419
  # Work around the forget-to-reset-the-flag bug.
 
22420
  echo 't clr' >>$CONFIG_STATUS
 
22421
  echo ': clr' >>$CONFIG_STATUS
 
22422
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22497
22423
  echo 'CEOF
22498
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22499
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22500
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22501
 
  grep . conftest.tail >/dev/null || break
 
22424
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
22425
  rm -f $tmp/in
 
22426
  mv $tmp/out $tmp/in
 
22427
' >>$CONFIG_STATUS
 
22428
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22502
22429
  rm -f conftest.defines
22503
22430
  mv conftest.tail conftest.defines
22504
22431
done
22505
 
rm -f conftest.defines conftest.tail
22506
 
 
22507
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
22432
rm -f conftest.defines
 
22433
echo '  fi # grep' >>$CONFIG_STATUS
 
22434
echo >>$CONFIG_STATUS
 
22435
 
 
22436
# Break up conftest.undefs because some shells have a limit on the size
 
22437
# of here documents, and old seds have small limits too (100 cmds).
 
22438
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
22439
rm -f conftest.tail
 
22440
while grep . conftest.undefs >/dev/null
 
22441
do
 
22442
  # Write a limited-size here document to $tmp/undefs.sed.
 
22443
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
22444
  # Speed up: don't consider the non `#undef'
 
22445
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
22446
  # Work around the forget-to-reset-the-flag bug.
 
22447
  echo 't clr' >>$CONFIG_STATUS
 
22448
  echo ': clr' >>$CONFIG_STATUS
 
22449
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
22450
  echo 'CEOF
 
22451
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
22452
  rm -f $tmp/in
 
22453
  mv $tmp/out $tmp/in
 
22454
' >>$CONFIG_STATUS
 
22455
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
22456
  rm -f conftest.undefs
 
22457
  mv conftest.tail conftest.undefs
 
22458
done
 
22459
rm -f conftest.undefs
 
22460
 
22508
22461
cat >>$CONFIG_STATUS <<\_ACEOF
 
22462
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22463
  # use $as_me), people would be surprised to read:
 
22464
  #    /* config.h.  Generated by config.status.  */
 
22465
  if test x"$ac_file" = x-; then
 
22466
    echo "/* Generated by configure.  */" >$tmp/config.h
 
22467
  else
 
22468
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
22469
  fi
 
22470
  cat $tmp/in >>$tmp/config.h
 
22471
  rm -f $tmp/in
22509
22472
  if test x"$ac_file" != x-; then
22510
 
    echo "/* $configure_input  */" >"$tmp/config.h"
22511
 
    cat "$ac_result" >>"$tmp/config.h"
22512
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
22473
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22513
22474
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22514
22475
echo "$as_me: $ac_file is unchanged" >&6;}
22515
22476
    else
 
22477
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22478
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22479
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22480
         X"$ac_file" : 'X\(//\)$' \| \
 
22481
         X"$ac_file" : 'X\(/\)' \| \
 
22482
         .     : '\(.\)' 2>/dev/null ||
 
22483
echo X"$ac_file" |
 
22484
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22485
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22486
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22487
          /^X\(\/\).*/{ s//\1/; q; }
 
22488
          s/.*/./; q'`
 
22489
      { if $as_mkdir_p; then
 
22490
    mkdir -p "$ac_dir"
 
22491
  else
 
22492
    as_dir="$ac_dir"
 
22493
    as_dirs=
 
22494
    while test ! -d "$as_dir"; do
 
22495
      as_dirs="$as_dir $as_dirs"
 
22496
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22497
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22498
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22499
         X"$as_dir" : 'X\(//\)$' \| \
 
22500
         X"$as_dir" : 'X\(/\)' \| \
 
22501
         .     : '\(.\)' 2>/dev/null ||
 
22502
echo X"$as_dir" |
 
22503
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22504
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22505
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22506
          /^X\(\/\).*/{ s//\1/; q; }
 
22507
          s/.*/./; q'`
 
22508
    done
 
22509
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22510
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22511
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22512
   { (exit 1); exit 1; }; }; }
 
22513
 
22516
22514
      rm -f $ac_file
22517
 
      mv "$tmp/config.h" $ac_file
 
22515
      mv $tmp/config.h $ac_file
22518
22516
    fi
22519
22517
  else
22520
 
    echo "/* $configure_input  */"
22521
 
    cat "$ac_result"
 
22518
    cat $tmp/config.h
 
22519
    rm -f $tmp/config.h
22522
22520
  fi
22523
 
  rm -f "$tmp/out12"
22524
22521
# Compute $ac_file's index in $config_headers.
22525
22522
_am_stamp_count=1
22526
22523
for _am_header in $config_headers :; do
22531
22528
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22532
22529
  esac
22533
22530
done
22534
 
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
22531
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22535
22532
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22536
22533
         X$ac_file : 'X\(//\)[^/]' \| \
22537
22534
         X$ac_file : 'X\(//\)$' \| \
22538
 
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
22535
         X$ac_file : 'X\(/\)' \| \
 
22536
         .     : '\(.\)' 2>/dev/null ||
22539
22537
echo X$ac_file |
22540
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22541
 
            s//\1/
22542
 
            q
22543
 
          }
22544
 
          /^X\(\/\/\)[^/].*/{
22545
 
            s//\1/
22546
 
            q
22547
 
          }
22548
 
          /^X\(\/\/\)$/{
22549
 
            s//\1/
22550
 
            q
22551
 
          }
22552
 
          /^X\(\/\).*/{
22553
 
            s//\1/
22554
 
            q
22555
 
          }
22556
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
22557
 
 ;;
22558
 
 
22559
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22560
 
echo "$as_me: executing $ac_file commands" >&6;}
22561
 
 ;;
22562
 
  esac
22563
 
 
22564
 
 
22565
 
  case $ac_file$ac_mode in
22566
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22538
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22539
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22540
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22541
          /^X\(\/\).*/{ s//\1/; q; }
 
22542
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22543
done
 
22544
_ACEOF
 
22545
cat >>$CONFIG_STATUS <<\_ACEOF
 
22546
 
 
22547
#
 
22548
# CONFIG_COMMANDS section.
 
22549
#
 
22550
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
22551
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
22552
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22553
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
22554
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22555
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
22556
         X"$ac_dest" : 'X\(//\)$' \| \
 
22557
         X"$ac_dest" : 'X\(/\)' \| \
 
22558
         .     : '\(.\)' 2>/dev/null ||
 
22559
echo X"$ac_dest" |
 
22560
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22561
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22562
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22563
          /^X\(\/\).*/{ s//\1/; q; }
 
22564
          s/.*/./; q'`
 
22565
  { if $as_mkdir_p; then
 
22566
    mkdir -p "$ac_dir"
 
22567
  else
 
22568
    as_dir="$ac_dir"
 
22569
    as_dirs=
 
22570
    while test ! -d "$as_dir"; do
 
22571
      as_dirs="$as_dir $as_dirs"
 
22572
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22573
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22574
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22575
         X"$as_dir" : 'X\(//\)$' \| \
 
22576
         X"$as_dir" : 'X\(/\)' \| \
 
22577
         .     : '\(.\)' 2>/dev/null ||
 
22578
echo X"$as_dir" |
 
22579
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22580
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22581
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22582
          /^X\(\/\).*/{ s//\1/; q; }
 
22583
          s/.*/./; q'`
 
22584
    done
 
22585
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22586
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22587
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22588
   { (exit 1); exit 1; }; }; }
 
22589
 
 
22590
  ac_builddir=.
 
22591
 
 
22592
if test "$ac_dir" != .; then
 
22593
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22594
  # A "../" for each directory in $ac_dir_suffix.
 
22595
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22596
else
 
22597
  ac_dir_suffix= ac_top_builddir=
 
22598
fi
 
22599
 
 
22600
case $srcdir in
 
22601
  .)  # No --srcdir option.  We are building in place.
 
22602
    ac_srcdir=.
 
22603
    if test -z "$ac_top_builddir"; then
 
22604
       ac_top_srcdir=.
 
22605
    else
 
22606
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22607
    fi ;;
 
22608
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22609
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22610
    ac_top_srcdir=$srcdir ;;
 
22611
  *) # Relative path.
 
22612
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22613
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22614
esac
 
22615
 
 
22616
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22617
# the directories may not exist.
 
22618
case `pwd` in
 
22619
.) ac_abs_builddir="$ac_dir";;
 
22620
*)
 
22621
  case "$ac_dir" in
 
22622
  .) ac_abs_builddir=`pwd`;;
 
22623
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22624
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22625
  esac;;
 
22626
esac
 
22627
case $ac_abs_builddir in
 
22628
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22629
*)
 
22630
  case ${ac_top_builddir}. in
 
22631
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22632
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22633
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22634
  esac;;
 
22635
esac
 
22636
case $ac_abs_builddir in
 
22637
.) ac_abs_srcdir=$ac_srcdir;;
 
22638
*)
 
22639
  case $ac_srcdir in
 
22640
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22641
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22642
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22643
  esac;;
 
22644
esac
 
22645
case $ac_abs_builddir in
 
22646
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22647
*)
 
22648
  case $ac_top_srcdir in
 
22649
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22650
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22651
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22652
  esac;;
 
22653
esac
 
22654
 
 
22655
 
 
22656
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
22657
echo "$as_me: executing $ac_dest commands" >&6;}
 
22658
  case $ac_dest in
 
22659
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22567
22660
  # Strip MF so we end up with the name of the file.
22568
22661
  mf=`echo "$mf" | sed -e 's/:.*$//'`
22569
22662
  # Check whether this is an Automake generated Makefile or not.
22571
22664
  # some people rename them; so instead we look at the file content.
22572
22665
  # Grep'ing the first line is not enough: some people post-process
22573
22666
  # each Makefile.in and add a new line on top of each file to say so.
22574
 
  # Grep'ing the whole file is not good either: AIX grep has a line
22575
 
  # limit of 2048, but all sed's we know have understand at least 4000.
22576
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22577
 
    dirpart=`$as_dirname -- "$mf" ||
 
22667
  # So let's grep whole file.
 
22668
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
22669
    dirpart=`(dirname "$mf") 2>/dev/null ||
22578
22670
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22579
22671
         X"$mf" : 'X\(//\)[^/]' \| \
22580
22672
         X"$mf" : 'X\(//\)$' \| \
22581
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
22673
         X"$mf" : 'X\(/\)' \| \
 
22674
         .     : '\(.\)' 2>/dev/null ||
22582
22675
echo X"$mf" |
22583
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22584
 
            s//\1/
22585
 
            q
22586
 
          }
22587
 
          /^X\(\/\/\)[^/].*/{
22588
 
            s//\1/
22589
 
            q
22590
 
          }
22591
 
          /^X\(\/\/\)$/{
22592
 
            s//\1/
22593
 
            q
22594
 
          }
22595
 
          /^X\(\/\).*/{
22596
 
            s//\1/
22597
 
            q
22598
 
          }
22599
 
          s/.*/./; q'`
 
22676
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22677
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22678
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22679
          /^X\(\/\).*/{ s//\1/; q; }
 
22680
          s/.*/./; q'`
22600
22681
  else
22601
22682
    continue
22602
22683
  fi
22618
22699
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22619
22700
    # Make sure the directory exists.
22620
22701
    test -f "$dirpart/$file" && continue
22621
 
    fdir=`$as_dirname -- "$file" ||
 
22702
    fdir=`(dirname "$file") 2>/dev/null ||
22622
22703
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22623
22704
         X"$file" : 'X\(//\)[^/]' \| \
22624
22705
         X"$file" : 'X\(//\)$' \| \
22625
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
22706
         X"$file" : 'X\(/\)' \| \
 
22707
         .     : '\(.\)' 2>/dev/null ||
22626
22708
echo X"$file" |
22627
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22628
 
            s//\1/
22629
 
            q
22630
 
          }
22631
 
          /^X\(\/\/\)[^/].*/{
22632
 
            s//\1/
22633
 
            q
22634
 
          }
22635
 
          /^X\(\/\/\)$/{
22636
 
            s//\1/
22637
 
            q
22638
 
          }
22639
 
          /^X\(\/\).*/{
22640
 
            s//\1/
22641
 
            q
22642
 
          }
22643
 
          s/.*/./; q'`
22644
 
    { as_dir=$dirpart/$fdir
22645
 
  case $as_dir in #(
22646
 
  -*) as_dir=./$as_dir;;
22647
 
  esac
22648
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22709
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22710
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22711
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22712
          /^X\(\/\).*/{ s//\1/; q; }
 
22713
          s/.*/./; q'`
 
22714
    { if $as_mkdir_p; then
 
22715
    mkdir -p $dirpart/$fdir
 
22716
  else
 
22717
    as_dir=$dirpart/$fdir
22649
22718
    as_dirs=
22650
 
    while :; do
22651
 
      case $as_dir in #(
22652
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22653
 
      *) as_qdir=$as_dir;;
22654
 
      esac
22655
 
      as_dirs="'$as_qdir' $as_dirs"
22656
 
      as_dir=`$as_dirname -- "$as_dir" ||
 
22719
    while test ! -d "$as_dir"; do
 
22720
      as_dirs="$as_dir $as_dirs"
 
22721
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22657
22722
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22658
22723
         X"$as_dir" : 'X\(//\)[^/]' \| \
22659
22724
         X"$as_dir" : 'X\(//\)$' \| \
22660
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22725
         X"$as_dir" : 'X\(/\)' \| \
 
22726
         .     : '\(.\)' 2>/dev/null ||
22661
22727
echo X"$as_dir" |
22662
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22663
 
            s//\1/
22664
 
            q
22665
 
          }
22666
 
          /^X\(\/\/\)[^/].*/{
22667
 
            s//\1/
22668
 
            q
22669
 
          }
22670
 
          /^X\(\/\/\)$/{
22671
 
            s//\1/
22672
 
            q
22673
 
          }
22674
 
          /^X\(\/\).*/{
22675
 
            s//\1/
22676
 
            q
22677
 
          }
22678
 
          s/.*/./; q'`
22679
 
      test -d "$as_dir" && break
 
22728
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22729
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22730
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22731
          /^X\(\/\).*/{ s//\1/; q; }
 
22732
          s/.*/./; q'`
22680
22733
    done
22681
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
22682
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22683
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
22734
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22735
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
22736
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22684
22737
   { (exit 1); exit 1; }; }; }
 
22738
 
22685
22739
    # echo "creating $dirpart/$file"
22686
22740
    echo '# dummy' > "$dirpart/$file"
22687
22741
  done
22688
22742
done
22689
22743
 ;;
22690
 
 
22691
22744
  esac
22692
 
done # for ac_tag
 
22745
done
 
22746
_ACEOF
22693
22747
 
 
22748
cat >>$CONFIG_STATUS <<\_ACEOF
22694
22749
 
22695
22750
{ (exit 0); exit 0; }
22696
22751
_ACEOF