~ace17/wizardpen/trunk

« back to all changes in this revision

Viewing changes to configure

  • Committer: Martin Owens (DoctorMO)
  • Date: 2009-06-24 19:51:16 UTC
  • Revision ID: doctormo@gmail.com-20090624195116-gi41v42ec0k3kuw0
Inital import of 0.7 wizardpen driver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61 for wizardpen 1.0.0.
 
4
#
 
5
# Report bugs to <NULL>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
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
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
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
# 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
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
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=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
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
 
234
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" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # 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.
 
437
  # (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 |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (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"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
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';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
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
echo >conf$$.file
 
500
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 ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
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
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # 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` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='wizardpen'
 
730
PACKAGE_TARNAME='xf86-input-wizardpen'
 
731
PACKAGE_VERSION='1.0.0'
 
732
PACKAGE_STRING='wizardpen 1.0.0'
 
733
PACKAGE_BUGREPORT='NULL'
 
734
 
 
735
ac_unique_file="Makefile.am"
 
736
# Factoring default headers for most tests.
 
737
ac_includes_default="\
 
738
#include <stdio.h>
 
739
#ifdef HAVE_SYS_TYPES_H
 
740
# include <sys/types.h>
 
741
#endif
 
742
#ifdef HAVE_SYS_STAT_H
 
743
# include <sys/stat.h>
 
744
#endif
 
745
#ifdef STDC_HEADERS
 
746
# include <stdlib.h>
 
747
# include <stddef.h>
 
748
#else
 
749
# ifdef HAVE_STDLIB_H
 
750
#  include <stdlib.h>
 
751
# endif
 
752
#endif
 
753
#ifdef HAVE_STRING_H
 
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
755
#  include <memory.h>
 
756
# endif
 
757
# include <string.h>
 
758
#endif
 
759
#ifdef HAVE_STRINGS_H
 
760
# include <strings.h>
 
761
#endif
 
762
#ifdef HAVE_INTTYPES_H
 
763
# include <inttypes.h>
 
764
#endif
 
765
#ifdef HAVE_STDINT_H
 
766
# include <stdint.h>
 
767
#endif
 
768
#ifdef HAVE_UNISTD_H
 
769
# include <unistd.h>
 
770
#endif"
 
771
 
 
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
MAINTAINER_MODE_TRUE
 
832
MAINTAINER_MODE_FALSE
 
833
MAINT
 
834
DRIVER_NAME
 
835
build
 
836
build_cpu
 
837
build_vendor
 
838
build_os
 
839
host
 
840
host_cpu
 
841
host_vendor
 
842
host_os
 
843
CC
 
844
CFLAGS
 
845
LDFLAGS
 
846
CPPFLAGS
 
847
ac_ct_CC
 
848
EXEEXT
 
849
OBJEXT
 
850
DEPDIR
 
851
am__include
 
852
am__quote
 
853
AMDEP_TRUE
 
854
AMDEP_FALSE
 
855
AMDEPBACKSLASH
 
856
CCDEPMODE
 
857
am__fastdepCC_TRUE
 
858
am__fastdepCC_FALSE
 
859
GREP
 
860
EGREP
 
861
LN_S
 
862
ECHO
 
863
AR
 
864
RANLIB
 
865
CPP
 
866
CXX
 
867
CXXFLAGS
 
868
ac_ct_CXX
 
869
CXXDEPMODE
 
870
am__fastdepCXX_TRUE
 
871
am__fastdepCXX_FALSE
 
872
CXXCPP
 
873
F77
 
874
FFLAGS
 
875
ac_ct_F77
 
876
LIBTOOL
 
877
inputdir
 
878
PKG_CONFIG
 
879
XORG_CFLAGS
 
880
XORG_LIBS
 
881
APP_MAN_SUFFIX
 
882
LIB_MAN_SUFFIX
 
883
FILE_MAN_SUFFIX
 
884
MISC_MAN_SUFFIX
 
885
DRIVER_MAN_SUFFIX
 
886
ADMIN_MAN_SUFFIX
 
887
APP_MAN_DIR
 
888
LIB_MAN_DIR
 
889
FILE_MAN_DIR
 
890
MISC_MAN_DIR
 
891
DRIVER_MAN_DIR
 
892
ADMIN_MAN_DIR
 
893
LIBOBJS
 
894
LTLIBOBJS'
 
895
ac_subst_files=''
 
896
      ac_precious_vars='build_alias
 
897
host_alias
 
898
target_alias
 
899
CC
 
900
CFLAGS
 
901
LDFLAGS
 
902
LIBS
 
903
CPPFLAGS
 
904
CPP
 
905
CXX
 
906
CXXFLAGS
 
907
CCC
 
908
CXXCPP
 
909
F77
 
910
FFLAGS
 
911
PKG_CONFIG
 
912
XORG_CFLAGS
 
913
XORG_LIBS'
 
914
 
 
915
 
 
916
# Initialize some variables set by options.
 
917
ac_init_help=
 
918
ac_init_version=false
 
919
# The variables have the same names as the options, with
 
920
# dashes changed to underlines.
 
921
cache_file=/dev/null
 
922
exec_prefix=NONE
 
923
no_create=
 
924
no_recursion=
 
925
prefix=NONE
 
926
program_prefix=NONE
 
927
program_suffix=NONE
 
928
program_transform_name=s,x,x,
 
929
silent=
 
930
site=
 
931
srcdir=
 
932
verbose=
 
933
x_includes=NONE
 
934
x_libraries=NONE
 
935
 
 
936
# Installation directory options.
 
937
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
938
# and all the variables that are supposed to be based on exec_prefix
 
939
# by default will actually change.
 
940
# Use braces instead of parens because sh, perl, etc. also accept them.
 
941
# (The list follows the same order as the GNU Coding Standards.)
 
942
bindir='${exec_prefix}/bin'
 
943
sbindir='${exec_prefix}/sbin'
 
944
libexecdir='${exec_prefix}/libexec'
 
945
datarootdir='${prefix}/share'
 
946
datadir='${datarootdir}'
 
947
sysconfdir='${prefix}/etc'
 
948
sharedstatedir='${prefix}/com'
 
949
localstatedir='${prefix}/var'
 
950
includedir='${prefix}/include'
 
951
oldincludedir='/usr/include'
 
952
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
953
infodir='${datarootdir}/info'
 
954
htmldir='${docdir}'
 
955
dvidir='${docdir}'
 
956
pdfdir='${docdir}'
 
957
psdir='${docdir}'
 
958
libdir='${exec_prefix}/lib'
 
959
localedir='${datarootdir}/locale'
 
960
mandir='${datarootdir}/man'
 
961
 
 
962
ac_prev=
 
963
ac_dashdash=
 
964
for ac_option
 
965
do
 
966
  # If the previous option needs an argument, assign it.
 
967
  if test -n "$ac_prev"; then
 
968
    eval $ac_prev=\$ac_option
 
969
    ac_prev=
 
970
    continue
 
971
  fi
 
972
 
 
973
  case $ac_option in
 
974
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
975
  *)    ac_optarg=yes ;;
 
976
  esac
 
977
 
 
978
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
979
 
 
980
  case $ac_dashdash$ac_option in
 
981
  --)
 
982
    ac_dashdash=yes ;;
 
983
 
 
984
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
985
    ac_prev=bindir ;;
 
986
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
987
    bindir=$ac_optarg ;;
 
988
 
 
989
  -build | --build | --buil | --bui | --bu)
 
990
    ac_prev=build_alias ;;
 
991
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
992
    build_alias=$ac_optarg ;;
 
993
 
 
994
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
995
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
996
    ac_prev=cache_file ;;
 
997
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
998
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
999
    cache_file=$ac_optarg ;;
 
1000
 
 
1001
  --config-cache | -C)
 
1002
    cache_file=config.cache ;;
 
1003
 
 
1004
  -datadir | --datadir | --datadi | --datad)
 
1005
    ac_prev=datadir ;;
 
1006
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1007
    datadir=$ac_optarg ;;
 
1008
 
 
1009
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1010
  | --dataroo | --dataro | --datar)
 
1011
    ac_prev=datarootdir ;;
 
1012
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1013
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1014
    datarootdir=$ac_optarg ;;
 
1015
 
 
1016
  -disable-* | --disable-*)
 
1017
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1018
    # Reject names that are not valid shell variable names.
 
1019
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1020
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1021
   { (exit 1); exit 1; }; }
 
1022
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1023
    eval enable_$ac_feature=no ;;
 
1024
 
 
1025
  -docdir | --docdir | --docdi | --doc | --do)
 
1026
    ac_prev=docdir ;;
 
1027
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1028
    docdir=$ac_optarg ;;
 
1029
 
 
1030
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1031
    ac_prev=dvidir ;;
 
1032
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1033
    dvidir=$ac_optarg ;;
 
1034
 
 
1035
  -enable-* | --enable-*)
 
1036
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1037
    # Reject names that are not valid shell variable names.
 
1038
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1039
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1040
   { (exit 1); exit 1; }; }
 
1041
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1042
    eval enable_$ac_feature=\$ac_optarg ;;
 
1043
 
 
1044
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1045
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1046
  | --exec | --exe | --ex)
 
1047
    ac_prev=exec_prefix ;;
 
1048
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1049
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1050
  | --exec=* | --exe=* | --ex=*)
 
1051
    exec_prefix=$ac_optarg ;;
 
1052
 
 
1053
  -gas | --gas | --ga | --g)
 
1054
    # Obsolete; use --with-gas.
 
1055
    with_gas=yes ;;
 
1056
 
 
1057
  -help | --help | --hel | --he | -h)
 
1058
    ac_init_help=long ;;
 
1059
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1060
    ac_init_help=recursive ;;
 
1061
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1062
    ac_init_help=short ;;
 
1063
 
 
1064
  -host | --host | --hos | --ho)
 
1065
    ac_prev=host_alias ;;
 
1066
  -host=* | --host=* | --hos=* | --ho=*)
 
1067
    host_alias=$ac_optarg ;;
 
1068
 
 
1069
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1070
    ac_prev=htmldir ;;
 
1071
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1072
  | --ht=*)
 
1073
    htmldir=$ac_optarg ;;
 
1074
 
 
1075
  -includedir | --includedir | --includedi | --included | --include \
 
1076
  | --includ | --inclu | --incl | --inc)
 
1077
    ac_prev=includedir ;;
 
1078
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1079
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1080
    includedir=$ac_optarg ;;
 
1081
 
 
1082
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1083
    ac_prev=infodir ;;
 
1084
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1085
    infodir=$ac_optarg ;;
 
1086
 
 
1087
  -libdir | --libdir | --libdi | --libd)
 
1088
    ac_prev=libdir ;;
 
1089
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1090
    libdir=$ac_optarg ;;
 
1091
 
 
1092
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1093
  | --libexe | --libex | --libe)
 
1094
    ac_prev=libexecdir ;;
 
1095
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1096
  | --libexe=* | --libex=* | --libe=*)
 
1097
    libexecdir=$ac_optarg ;;
 
1098
 
 
1099
  -localedir | --localedir | --localedi | --localed | --locale)
 
1100
    ac_prev=localedir ;;
 
1101
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1102
    localedir=$ac_optarg ;;
 
1103
 
 
1104
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1105
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1106
    ac_prev=localstatedir ;;
 
1107
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1108
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1109
    localstatedir=$ac_optarg ;;
 
1110
 
 
1111
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1112
    ac_prev=mandir ;;
 
1113
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1114
    mandir=$ac_optarg ;;
 
1115
 
 
1116
  -nfp | --nfp | --nf)
 
1117
    # Obsolete; use --without-fp.
 
1118
    with_fp=no ;;
 
1119
 
 
1120
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1121
  | --no-cr | --no-c | -n)
 
1122
    no_create=yes ;;
 
1123
 
 
1124
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1125
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1126
    no_recursion=yes ;;
 
1127
 
 
1128
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1129
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1130
  | --oldin | --oldi | --old | --ol | --o)
 
1131
    ac_prev=oldincludedir ;;
 
1132
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1133
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1134
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1135
    oldincludedir=$ac_optarg ;;
 
1136
 
 
1137
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1138
    ac_prev=prefix ;;
 
1139
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1140
    prefix=$ac_optarg ;;
 
1141
 
 
1142
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1143
  | --program-pre | --program-pr | --program-p)
 
1144
    ac_prev=program_prefix ;;
 
1145
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1146
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1147
    program_prefix=$ac_optarg ;;
 
1148
 
 
1149
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1150
  | --program-suf | --program-su | --program-s)
 
1151
    ac_prev=program_suffix ;;
 
1152
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1153
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1154
    program_suffix=$ac_optarg ;;
 
1155
 
 
1156
  -program-transform-name | --program-transform-name \
 
1157
  | --program-transform-nam | --program-transform-na \
 
1158
  | --program-transform-n | --program-transform- \
 
1159
  | --program-transform | --program-transfor \
 
1160
  | --program-transfo | --program-transf \
 
1161
  | --program-trans | --program-tran \
 
1162
  | --progr-tra | --program-tr | --program-t)
 
1163
    ac_prev=program_transform_name ;;
 
1164
  -program-transform-name=* | --program-transform-name=* \
 
1165
  | --program-transform-nam=* | --program-transform-na=* \
 
1166
  | --program-transform-n=* | --program-transform-=* \
 
1167
  | --program-transform=* | --program-transfor=* \
 
1168
  | --program-transfo=* | --program-transf=* \
 
1169
  | --program-trans=* | --program-tran=* \
 
1170
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1171
    program_transform_name=$ac_optarg ;;
 
1172
 
 
1173
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1174
    ac_prev=pdfdir ;;
 
1175
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1176
    pdfdir=$ac_optarg ;;
 
1177
 
 
1178
  -psdir | --psdir | --psdi | --psd | --ps)
 
1179
    ac_prev=psdir ;;
 
1180
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1181
    psdir=$ac_optarg ;;
 
1182
 
 
1183
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1184
  | -silent | --silent | --silen | --sile | --sil)
 
1185
    silent=yes ;;
 
1186
 
 
1187
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1188
    ac_prev=sbindir ;;
 
1189
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1190
  | --sbi=* | --sb=*)
 
1191
    sbindir=$ac_optarg ;;
 
1192
 
 
1193
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1194
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1195
  | --sharedst | --shareds | --shared | --share | --shar \
 
1196
  | --sha | --sh)
 
1197
    ac_prev=sharedstatedir ;;
 
1198
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1199
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1200
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1201
  | --sha=* | --sh=*)
 
1202
    sharedstatedir=$ac_optarg ;;
 
1203
 
 
1204
  -site | --site | --sit)
 
1205
    ac_prev=site ;;
 
1206
  -site=* | --site=* | --sit=*)
 
1207
    site=$ac_optarg ;;
 
1208
 
 
1209
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1210
    ac_prev=srcdir ;;
 
1211
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1212
    srcdir=$ac_optarg ;;
 
1213
 
 
1214
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1215
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1216
    ac_prev=sysconfdir ;;
 
1217
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1218
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1219
    sysconfdir=$ac_optarg ;;
 
1220
 
 
1221
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1222
    ac_prev=target_alias ;;
 
1223
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1224
    target_alias=$ac_optarg ;;
 
1225
 
 
1226
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1227
    verbose=yes ;;
 
1228
 
 
1229
  -version | --version | --versio | --versi | --vers | -V)
 
1230
    ac_init_version=: ;;
 
1231
 
 
1232
  -with-* | --with-*)
 
1233
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1234
    # Reject names that are not valid shell variable names.
 
1235
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1236
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1237
   { (exit 1); exit 1; }; }
 
1238
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1239
    eval with_$ac_package=\$ac_optarg ;;
 
1240
 
 
1241
  -without-* | --without-*)
 
1242
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1243
    # Reject names that are not valid shell variable names.
 
1244
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1245
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1246
   { (exit 1); exit 1; }; }
 
1247
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1248
    eval with_$ac_package=no ;;
 
1249
 
 
1250
  --x)
 
1251
    # Obsolete; use --with-x.
 
1252
    with_x=yes ;;
 
1253
 
 
1254
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1255
  | --x-incl | --x-inc | --x-in | --x-i)
 
1256
    ac_prev=x_includes ;;
 
1257
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1258
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1259
    x_includes=$ac_optarg ;;
 
1260
 
 
1261
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1262
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1263
    ac_prev=x_libraries ;;
 
1264
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1265
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1266
    x_libraries=$ac_optarg ;;
 
1267
 
 
1268
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1269
Try \`$0 --help' for more information." >&2
 
1270
   { (exit 1); exit 1; }; }
 
1271
    ;;
 
1272
 
 
1273
  *=*)
 
1274
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1275
    # Reject names that are not valid shell variable names.
 
1276
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1277
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1278
   { (exit 1); exit 1; }; }
 
1279
    eval $ac_envvar=\$ac_optarg
 
1280
    export $ac_envvar ;;
 
1281
 
 
1282
  *)
 
1283
    # FIXME: should be removed in autoconf 3.0.
 
1284
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1285
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1286
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1287
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1288
    ;;
 
1289
 
 
1290
  esac
 
1291
done
 
1292
 
 
1293
if test -n "$ac_prev"; then
 
1294
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1295
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1296
   { (exit 1); exit 1; }; }
 
1297
fi
 
1298
 
 
1299
# Be sure to have absolute directory names.
 
1300
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1301
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1302
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1303
                libdir localedir mandir
 
1304
do
 
1305
  eval ac_val=\$$ac_var
 
1306
  case $ac_val in
 
1307
    [\\/$]* | ?:[\\/]* )  continue;;
 
1308
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1309
  esac
 
1310
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1311
   { (exit 1); exit 1; }; }
 
1312
done
 
1313
 
 
1314
# There might be people who depend on the old broken behavior: `$host'
 
1315
# used to hold the argument of --host etc.
 
1316
# FIXME: To remove some day.
 
1317
build=$build_alias
 
1318
host=$host_alias
 
1319
target=$target_alias
 
1320
 
 
1321
# FIXME: To remove some day.
 
1322
if test "x$host_alias" != x; then
 
1323
  if test "x$build_alias" = x; then
 
1324
    cross_compiling=maybe
 
1325
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1326
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1327
  elif test "x$build_alias" != "x$host_alias"; then
 
1328
    cross_compiling=yes
 
1329
  fi
 
1330
fi
 
1331
 
 
1332
ac_tool_prefix=
 
1333
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1334
 
 
1335
test "$silent" = yes && exec 6>/dev/null
 
1336
 
 
1337
 
 
1338
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1339
ac_ls_di=`ls -di .` &&
 
1340
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1341
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1342
   { (exit 1); exit 1; }; }
 
1343
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1344
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1345
   { (exit 1); exit 1; }; }
 
1346
 
 
1347
 
 
1348
# Find the source files, if location was not specified.
 
1349
if test -z "$srcdir"; then
 
1350
  ac_srcdir_defaulted=yes
 
1351
  # Try the directory containing this script, then the parent directory.
 
1352
  ac_confdir=`$as_dirname -- "$0" ||
 
1353
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1354
         X"$0" : 'X\(//\)[^/]' \| \
 
1355
         X"$0" : 'X\(//\)$' \| \
 
1356
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1357
echo X"$0" |
 
1358
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1359
            s//\1/
 
1360
            q
 
1361
          }
 
1362
          /^X\(\/\/\)[^/].*/{
 
1363
            s//\1/
 
1364
            q
 
1365
          }
 
1366
          /^X\(\/\/\)$/{
 
1367
            s//\1/
 
1368
            q
 
1369
          }
 
1370
          /^X\(\/\).*/{
 
1371
            s//\1/
 
1372
            q
 
1373
          }
 
1374
          s/.*/./; q'`
 
1375
  srcdir=$ac_confdir
 
1376
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1377
    srcdir=..
 
1378
  fi
 
1379
else
 
1380
  ac_srcdir_defaulted=no
 
1381
fi
 
1382
if test ! -r "$srcdir/$ac_unique_file"; then
 
1383
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1384
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1385
   { (exit 1); exit 1; }; }
 
1386
fi
 
1387
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1388
ac_abs_confdir=`(
 
1389
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1390
   { (exit 1); exit 1; }; }
 
1391
        pwd)`
 
1392
# When building in place, set srcdir=.
 
1393
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1394
  srcdir=.
 
1395
fi
 
1396
# Remove unnecessary trailing slashes from srcdir.
 
1397
# Double slashes in file names in object file debugging info
 
1398
# mess up M-x gdb in Emacs.
 
1399
case $srcdir in
 
1400
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1401
esac
 
1402
for ac_var in $ac_precious_vars; do
 
1403
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1404
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1405
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1406
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1407
done
 
1408
 
 
1409
#
 
1410
# Report the --help message.
 
1411
#
 
1412
if test "$ac_init_help" = "long"; then
 
1413
  # Omit some internal or obsolete options to make the list less imposing.
 
1414
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1415
  cat <<_ACEOF
 
1416
\`configure' configures wizardpen 1.0.0 to adapt to many kinds of systems.
 
1417
 
 
1418
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1419
 
 
1420
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1421
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1422
 
 
1423
Defaults for the options are specified in brackets.
 
1424
 
 
1425
Configuration:
 
1426
  -h, --help              display this help and exit
 
1427
      --help=short        display options specific to this package
 
1428
      --help=recursive    display the short help of all the included packages
 
1429
  -V, --version           display version information and exit
 
1430
  -q, --quiet, --silent   do not print \`checking...' messages
 
1431
      --cache-file=FILE   cache test results in FILE [disabled]
 
1432
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1433
  -n, --no-create         do not create output files
 
1434
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1435
 
 
1436
Installation directories:
 
1437
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1438
                          [$ac_default_prefix]
 
1439
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1440
                          [PREFIX]
 
1441
 
 
1442
By default, \`make install' will install all the files in
 
1443
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1444
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1445
for instance \`--prefix=\$HOME'.
 
1446
 
 
1447
For better control, use the options below.
 
1448
 
 
1449
Fine tuning of the installation directories:
 
1450
  --bindir=DIR           user executables [EPREFIX/bin]
 
1451
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1452
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1453
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1454
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1455
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1456
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1457
  --includedir=DIR       C header files [PREFIX/include]
 
1458
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1459
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1460
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1461
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1462
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1463
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1464
  --docdir=DIR           documentation root [DATAROOTDIR/doc/xf86-input-wizardpen]
 
1465
  --htmldir=DIR          html documentation [DOCDIR]
 
1466
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1467
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1468
  --psdir=DIR            ps documentation [DOCDIR]
 
1469
_ACEOF
 
1470
 
 
1471
  cat <<\_ACEOF
 
1472
 
 
1473
Program names:
 
1474
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1475
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1476
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1477
 
 
1478
System types:
 
1479
  --build=BUILD     configure for building on BUILD [guessed]
 
1480
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1481
_ACEOF
 
1482
fi
 
1483
 
 
1484
if test -n "$ac_init_help"; then
 
1485
  case $ac_init_help in
 
1486
     short | recursive ) echo "Configuration of wizardpen 1.0.0:";;
 
1487
   esac
 
1488
  cat <<\_ACEOF
 
1489
 
 
1490
Optional Features:
 
1491
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1492
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1493
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1494
                          (and sometimes confusing) to the casual installer
 
1495
  --enable-static[=PKGS]  build static libraries [default=no]
 
1496
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1497
  --enable-fast-install[=PKGS]
 
1498
                          optimize for fast installation [default=yes]
 
1499
  --disable-dependency-tracking  speeds up one-time build
 
1500
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1501
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1502
 
 
1503
Optional Packages:
 
1504
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1505
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1506
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1507
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1508
                          both]
 
1509
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1510
  --with-xorg-module-dir=DIR
 
1511
                          Default xorg module directory
 
1512
                          [default=$libdir/xorg/modules]
 
1513
  --with-release-version=STRING
 
1514
                          Use release version string in package name
 
1515
 
 
1516
Some influential environment variables:
 
1517
  CC          C compiler command
 
1518
  CFLAGS      C compiler flags
 
1519
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1520
              nonstandard directory <lib dir>
 
1521
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1522
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1523
              you have headers in a nonstandard directory <include dir>
 
1524
  CPP         C preprocessor
 
1525
  CXX         C++ compiler command
 
1526
  CXXFLAGS    C++ compiler flags
 
1527
  CXXCPP      C++ preprocessor
 
1528
  F77         Fortran 77 compiler command
 
1529
  FFLAGS      Fortran 77 compiler flags
 
1530
  PKG_CONFIG  path to pkg-config utility
 
1531
  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
 
1532
  XORG_LIBS   linker flags for XORG, overriding pkg-config
 
1533
 
 
1534
Use these variables to override the choices made by `configure' or to help
 
1535
it to find libraries and programs with nonstandard names/locations.
 
1536
 
 
1537
Report bugs to <NULL>.
 
1538
_ACEOF
 
1539
ac_status=$?
 
1540
fi
 
1541
 
 
1542
if test "$ac_init_help" = "recursive"; then
 
1543
  # If there are subdirs, report their specific --help.
 
1544
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1545
    test -d "$ac_dir" || continue
 
1546
    ac_builddir=.
 
1547
 
 
1548
case "$ac_dir" in
 
1549
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1550
*)
 
1551
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1552
  # A ".." for each directory in $ac_dir_suffix.
 
1553
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1554
  case $ac_top_builddir_sub in
 
1555
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1556
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1557
  esac ;;
 
1558
esac
 
1559
ac_abs_top_builddir=$ac_pwd
 
1560
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1561
# for backward compatibility:
 
1562
ac_top_builddir=$ac_top_build_prefix
 
1563
 
 
1564
case $srcdir in
 
1565
  .)  # We are building in place.
 
1566
    ac_srcdir=.
 
1567
    ac_top_srcdir=$ac_top_builddir_sub
 
1568
    ac_abs_top_srcdir=$ac_pwd ;;
 
1569
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1570
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1571
    ac_top_srcdir=$srcdir
 
1572
    ac_abs_top_srcdir=$srcdir ;;
 
1573
  *) # Relative name.
 
1574
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1575
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1576
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1577
esac
 
1578
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1579
 
 
1580
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1581
    # Check for guested configure.
 
1582
    if test -f "$ac_srcdir/configure.gnu"; then
 
1583
      echo &&
 
1584
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1585
    elif test -f "$ac_srcdir/configure"; then
 
1586
      echo &&
 
1587
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1588
    else
 
1589
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1590
    fi || ac_status=$?
 
1591
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1592
  done
 
1593
fi
 
1594
 
 
1595
test -n "$ac_init_help" && exit $ac_status
 
1596
if $ac_init_version; then
 
1597
  cat <<\_ACEOF
 
1598
wizardpen configure 1.0.0
 
1599
generated by GNU Autoconf 2.61
 
1600
 
 
1601
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1602
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1603
This configure script is free software; the Free Software Foundation
 
1604
gives unlimited permission to copy, distribute and modify it.
 
1605
_ACEOF
 
1606
  exit
 
1607
fi
 
1608
cat >config.log <<_ACEOF
 
1609
This file contains any messages produced by compilers while
 
1610
running configure, to aid debugging if configure makes a mistake.
 
1611
 
 
1612
It was created by wizardpen $as_me 1.0.0, which was
 
1613
generated by GNU Autoconf 2.61.  Invocation command line was
 
1614
 
 
1615
  $ $0 $@
 
1616
 
 
1617
_ACEOF
 
1618
exec 5>>config.log
 
1619
{
 
1620
cat <<_ASUNAME
 
1621
## --------- ##
 
1622
## Platform. ##
 
1623
## --------- ##
 
1624
 
 
1625
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1626
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1627
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1628
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1629
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1630
 
 
1631
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1632
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1633
 
 
1634
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1635
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1636
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1637
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1638
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1639
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1640
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1641
 
 
1642
_ASUNAME
 
1643
 
 
1644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1645
for as_dir in $PATH
 
1646
do
 
1647
  IFS=$as_save_IFS
 
1648
  test -z "$as_dir" && as_dir=.
 
1649
  echo "PATH: $as_dir"
 
1650
done
 
1651
IFS=$as_save_IFS
 
1652
 
 
1653
} >&5
 
1654
 
 
1655
cat >&5 <<_ACEOF
 
1656
 
 
1657
 
 
1658
## ----------- ##
 
1659
## Core tests. ##
 
1660
## ----------- ##
 
1661
 
 
1662
_ACEOF
 
1663
 
 
1664
 
 
1665
# Keep a trace of the command line.
 
1666
# Strip out --no-create and --no-recursion so they do not pile up.
 
1667
# Strip out --silent because we don't want to record it for future runs.
 
1668
# Also quote any args containing shell meta-characters.
 
1669
# Make two passes to allow for proper duplicate-argument suppression.
 
1670
ac_configure_args=
 
1671
ac_configure_args0=
 
1672
ac_configure_args1=
 
1673
ac_must_keep_next=false
 
1674
for ac_pass in 1 2
 
1675
do
 
1676
  for ac_arg
 
1677
  do
 
1678
    case $ac_arg in
 
1679
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1680
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1681
    | -silent | --silent | --silen | --sile | --sil)
 
1682
      continue ;;
 
1683
    *\'*)
 
1684
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1685
    esac
 
1686
    case $ac_pass in
 
1687
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1688
    2)
 
1689
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1690
      if test $ac_must_keep_next = true; then
 
1691
        ac_must_keep_next=false # Got value, back to normal.
 
1692
      else
 
1693
        case $ac_arg in
 
1694
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1695
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1696
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1697
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1698
            case "$ac_configure_args0 " in
 
1699
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1700
            esac
 
1701
            ;;
 
1702
          -* ) ac_must_keep_next=true ;;
 
1703
        esac
 
1704
      fi
 
1705
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1706
      ;;
 
1707
    esac
 
1708
  done
 
1709
done
 
1710
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1711
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1712
 
 
1713
# When interrupted or exit'd, cleanup temporary files, and complete
 
1714
# config.log.  We remove comments because anyway the quotes in there
 
1715
# would cause problems or look ugly.
 
1716
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1717
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1718
trap 'exit_status=$?
 
1719
  # Save into config.log some information that might help in debugging.
 
1720
  {
 
1721
    echo
 
1722
 
 
1723
    cat <<\_ASBOX
 
1724
## ---------------- ##
 
1725
## Cache variables. ##
 
1726
## ---------------- ##
 
1727
_ASBOX
 
1728
    echo
 
1729
    # The following way of writing the cache mishandles newlines in values,
 
1730
(
 
1731
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1732
    eval ac_val=\$$ac_var
 
1733
    case $ac_val in #(
 
1734
    *${as_nl}*)
 
1735
      case $ac_var in #(
 
1736
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1737
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1738
      esac
 
1739
      case $ac_var in #(
 
1740
      _ | IFS | as_nl) ;; #(
 
1741
      *) $as_unset $ac_var ;;
 
1742
      esac ;;
 
1743
    esac
 
1744
  done
 
1745
  (set) 2>&1 |
 
1746
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1747
    *${as_nl}ac_space=\ *)
 
1748
      sed -n \
 
1749
        "s/'\''/'\''\\\\'\'''\''/g;
 
1750
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1751
      ;; #(
 
1752
    *)
 
1753
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1754
      ;;
 
1755
    esac |
 
1756
    sort
 
1757
)
 
1758
    echo
 
1759
 
 
1760
    cat <<\_ASBOX
 
1761
## ----------------- ##
 
1762
## Output variables. ##
 
1763
## ----------------- ##
 
1764
_ASBOX
 
1765
    echo
 
1766
    for ac_var in $ac_subst_vars
 
1767
    do
 
1768
      eval ac_val=\$$ac_var
 
1769
      case $ac_val in
 
1770
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1771
      esac
 
1772
      echo "$ac_var='\''$ac_val'\''"
 
1773
    done | sort
 
1774
    echo
 
1775
 
 
1776
    if test -n "$ac_subst_files"; then
 
1777
      cat <<\_ASBOX
 
1778
## ------------------- ##
 
1779
## File substitutions. ##
 
1780
## ------------------- ##
 
1781
_ASBOX
 
1782
      echo
 
1783
      for ac_var in $ac_subst_files
 
1784
      do
 
1785
        eval ac_val=\$$ac_var
 
1786
        case $ac_val in
 
1787
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1788
        esac
 
1789
        echo "$ac_var='\''$ac_val'\''"
 
1790
      done | sort
 
1791
      echo
 
1792
    fi
 
1793
 
 
1794
    if test -s confdefs.h; then
 
1795
      cat <<\_ASBOX
 
1796
## ----------- ##
 
1797
## confdefs.h. ##
 
1798
## ----------- ##
 
1799
_ASBOX
 
1800
      echo
 
1801
      cat confdefs.h
 
1802
      echo
 
1803
    fi
 
1804
    test "$ac_signal" != 0 &&
 
1805
      echo "$as_me: caught signal $ac_signal"
 
1806
    echo "$as_me: exit $exit_status"
 
1807
  } >&5
 
1808
  rm -f core *.core core.conftest.* &&
 
1809
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1810
    exit $exit_status
 
1811
' 0
 
1812
for ac_signal in 1 2 13 15; do
 
1813
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1814
done
 
1815
ac_signal=0
 
1816
 
 
1817
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1818
rm -f -r conftest* confdefs.h
 
1819
 
 
1820
# Predefined preprocessor variables.
 
1821
 
 
1822
cat >>confdefs.h <<_ACEOF
 
1823
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1824
_ACEOF
 
1825
 
 
1826
 
 
1827
cat >>confdefs.h <<_ACEOF
 
1828
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1829
_ACEOF
 
1830
 
 
1831
 
 
1832
cat >>confdefs.h <<_ACEOF
 
1833
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1834
_ACEOF
 
1835
 
 
1836
 
 
1837
cat >>confdefs.h <<_ACEOF
 
1838
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1839
_ACEOF
 
1840
 
 
1841
 
 
1842
cat >>confdefs.h <<_ACEOF
 
1843
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1844
_ACEOF
 
1845
 
 
1846
 
 
1847
# Let the site file select an alternate cache file if it wants to.
 
1848
# Prefer explicitly selected file to automatically selected ones.
 
1849
if test -n "$CONFIG_SITE"; then
 
1850
  set x "$CONFIG_SITE"
 
1851
elif test "x$prefix" != xNONE; then
 
1852
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1853
else
 
1854
  set x "$ac_default_prefix/share/config.site" \
 
1855
        "$ac_default_prefix/etc/config.site"
 
1856
fi
 
1857
shift
 
1858
for ac_site_file
 
1859
do
 
1860
  if test -r "$ac_site_file"; then
 
1861
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1862
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1863
    sed 's/^/| /' "$ac_site_file" >&5
 
1864
    . "$ac_site_file"
 
1865
  fi
 
1866
done
 
1867
 
 
1868
if test -r "$cache_file"; then
 
1869
  # Some versions of bash will fail to source /dev/null (special
 
1870
  # files actually), so we avoid doing that.
 
1871
  if test -f "$cache_file"; then
 
1872
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1873
echo "$as_me: loading cache $cache_file" >&6;}
 
1874
    case $cache_file in
 
1875
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1876
      *)                      . "./$cache_file";;
 
1877
    esac
 
1878
  fi
 
1879
else
 
1880
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1881
echo "$as_me: creating cache $cache_file" >&6;}
 
1882
  >$cache_file
 
1883
fi
 
1884
 
 
1885
# Check that the precious variables saved in the cache have kept the same
 
1886
# value.
 
1887
ac_cache_corrupted=false
 
1888
for ac_var in $ac_precious_vars; do
 
1889
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1890
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1891
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1892
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1893
  case $ac_old_set,$ac_new_set in
 
1894
    set,)
 
1895
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1896
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1897
      ac_cache_corrupted=: ;;
 
1898
    ,set)
 
1899
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1900
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1901
      ac_cache_corrupted=: ;;
 
1902
    ,);;
 
1903
    *)
 
1904
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1905
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1906
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1907
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1908
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1909
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1910
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1911
        ac_cache_corrupted=:
 
1912
      fi;;
 
1913
  esac
 
1914
  # Pass precious variables to config.status.
 
1915
  if test "$ac_new_set" = set; then
 
1916
    case $ac_new_val in
 
1917
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1918
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1919
    esac
 
1920
    case " $ac_configure_args " in
 
1921
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1922
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1923
    esac
 
1924
  fi
 
1925
done
 
1926
if $ac_cache_corrupted; then
 
1927
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1928
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1929
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1930
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1931
   { (exit 1); exit 1; }; }
 
1932
fi
 
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
 
 
1958
ac_ext=c
 
1959
ac_cpp='$CPP $CPPFLAGS'
 
1960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1963
 
 
1964
 
 
1965
 
 
1966
 
 
1967
ac_aux_dir=
 
1968
for ac_dir in . "$srcdir"/.; do
 
1969
  if test -f "$ac_dir/install-sh"; then
 
1970
    ac_aux_dir=$ac_dir
 
1971
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1972
    break
 
1973
  elif test -f "$ac_dir/install.sh"; then
 
1974
    ac_aux_dir=$ac_dir
 
1975
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1976
    break
 
1977
  elif test -f "$ac_dir/shtool"; then
 
1978
    ac_aux_dir=$ac_dir
 
1979
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1980
    break
 
1981
  fi
 
1982
done
 
1983
if test -z "$ac_aux_dir"; then
 
1984
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
 
1985
echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
 
1986
   { (exit 1); exit 1; }; }
 
1987
fi
 
1988
 
 
1989
# These three variables are undocumented and unsupported,
 
1990
# and are intended to be withdrawn in a future Autoconf release.
 
1991
# They can cause serious problems if a builder's source tree is in a directory
 
1992
# whose full name contains unusual characters.
 
1993
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1994
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1995
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1996
 
 
1997
 
 
1998
am__api_version='1.10'
 
1999
 
 
2000
# Find a good install program.  We prefer a C program (faster),
 
2001
# so one script is as good as another.  But avoid the broken or
 
2002
# incompatible versions:
 
2003
# SysV /etc/install, /usr/sbin/install
 
2004
# SunOS /usr/etc/install
 
2005
# IRIX /sbin/install
 
2006
# AIX /bin/install
 
2007
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2008
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2009
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2010
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2011
# OS/2's system install, which has a completely different semantic
 
2012
# ./install, which can be erroneously created by make from ./install.sh.
 
2013
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2014
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2015
if test -z "$INSTALL"; then
 
2016
if test "${ac_cv_path_install+set}" = set; then
 
2017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2018
else
 
2019
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2020
for as_dir in $PATH
 
2021
do
 
2022
  IFS=$as_save_IFS
 
2023
  test -z "$as_dir" && as_dir=.
 
2024
  # Account for people who put trailing slashes in PATH elements.
 
2025
case $as_dir/ in
 
2026
  ./ | .// | /cC/* | \
 
2027
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2028
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2029
  /usr/ucb/* ) ;;
 
2030
  *)
 
2031
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2032
    # Don't use installbsd from OSF since it installs stuff as root
 
2033
    # by default.
 
2034
    for ac_prog in ginstall scoinst install; do
 
2035
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2036
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2037
          if test $ac_prog = install &&
 
2038
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2039
            # AIX install.  It has an incompatible calling convention.
 
2040
            :
 
2041
          elif test $ac_prog = install &&
 
2042
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2043
            # program-specific install script used by HP pwplus--don't use.
 
2044
            :
 
2045
          else
 
2046
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2047
            break 3
 
2048
          fi
 
2049
        fi
 
2050
      done
 
2051
    done
 
2052
    ;;
 
2053
esac
 
2054
done
 
2055
IFS=$as_save_IFS
 
2056
 
 
2057
 
 
2058
fi
 
2059
  if test "${ac_cv_path_install+set}" = set; then
 
2060
    INSTALL=$ac_cv_path_install
 
2061
  else
 
2062
    # As a last resort, use the slow shell script.  Don't cache a
 
2063
    # value for INSTALL within a source directory, because that will
 
2064
    # break other packages using the cache if that directory is
 
2065
    # removed, or if the value is a relative name.
 
2066
    INSTALL=$ac_install_sh
 
2067
  fi
 
2068
fi
 
2069
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2070
echo "${ECHO_T}$INSTALL" >&6; }
 
2071
 
 
2072
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2073
# It thinks the first close brace ends the variable substitution.
 
2074
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2075
 
 
2076
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2077
 
 
2078
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2079
 
 
2080
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2081
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2082
# Just in case
 
2083
sleep 1
 
2084
echo timestamp > conftest.file
 
2085
# Do `set' in a subshell so we don't clobber the current shell's
 
2086
# arguments.  Must try -L first in case configure is actually a
 
2087
# symlink; some systems play weird games with the mod time of symlinks
 
2088
# (eg FreeBSD returns the mod time of the symlink's containing
 
2089
# directory).
 
2090
if (
 
2091
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2092
   if test "$*" = "X"; then
 
2093
      # -L didn't work.
 
2094
      set X `ls -t $srcdir/configure conftest.file`
 
2095
   fi
 
2096
   rm -f conftest.file
 
2097
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2098
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2099
 
 
2100
      # If neither matched, then we have a broken ls.  This can happen
 
2101
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2102
      # broken ls alias from the environment.  This has actually
 
2103
      # happened.  Such a system could not be considered "sane".
 
2104
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2105
alias in your environment" >&5
 
2106
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2107
alias in your environment" >&2;}
 
2108
   { (exit 1); exit 1; }; }
 
2109
   fi
 
2110
 
 
2111
   test "$2" = conftest.file
 
2112
   )
 
2113
then
 
2114
   # Ok.
 
2115
   :
 
2116
else
 
2117
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2118
Check your system clock" >&5
 
2119
echo "$as_me: error: newly created file is older than distributed files!
 
2120
Check your system clock" >&2;}
 
2121
   { (exit 1); exit 1; }; }
 
2122
fi
 
2123
{ echo "$as_me:$LINENO: result: yes" >&5
 
2124
echo "${ECHO_T}yes" >&6; }
 
2125
test "$program_prefix" != NONE &&
 
2126
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2127
# Use a double $ so make ignores it.
 
2128
test "$program_suffix" != NONE &&
 
2129
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2130
# Double any \ or $.  echo might interpret backslashes.
 
2131
# By default was `s,x,x', remove it if useless.
 
2132
cat <<\_ACEOF >conftest.sed
 
2133
s/[\\$]/&&/g;s/;s,x,x,$//
 
2134
_ACEOF
 
2135
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2136
rm -f conftest.sed
 
2137
 
 
2138
# expand $ac_aux_dir to an absolute path
 
2139
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2140
 
 
2141
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2142
# Use eval to expand $SHELL
 
2143
if eval "$MISSING --run true"; then
 
2144
  am_missing_run="$MISSING --run "
 
2145
else
 
2146
  am_missing_run=
 
2147
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2148
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2149
fi
 
2150
 
 
2151
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2152
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2153
if test -z "$MKDIR_P"; then
 
2154
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2156
else
 
2157
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2158
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2159
do
 
2160
  IFS=$as_save_IFS
 
2161
  test -z "$as_dir" && as_dir=.
 
2162
  for ac_prog in mkdir gmkdir; do
 
2163
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2164
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2165
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2166
             'mkdir (GNU coreutils) '* | \
 
2167
             'mkdir (coreutils) '* | \
 
2168
             'mkdir (fileutils) '4.1*)
 
2169
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2170
               break 3;;
 
2171
           esac
 
2172
         done
 
2173
       done
 
2174
done
 
2175
IFS=$as_save_IFS
 
2176
 
 
2177
fi
 
2178
 
 
2179
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2180
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2181
  else
 
2182
    # As a last resort, use the slow shell script.  Don't cache a
 
2183
    # value for MKDIR_P within a source directory, because that will
 
2184
    # break other packages using the cache if that directory is
 
2185
    # removed, or if the value is a relative name.
 
2186
    test -d ./--version && rmdir ./--version
 
2187
    MKDIR_P="$ac_install_sh -d"
 
2188
  fi
 
2189
fi
 
2190
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2191
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2192
 
 
2193
mkdir_p="$MKDIR_P"
 
2194
case $mkdir_p in
 
2195
  [\\/$]* | ?:[\\/]*) ;;
 
2196
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2197
esac
 
2198
 
 
2199
for ac_prog in gawk mawk nawk awk
 
2200
do
 
2201
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2202
set dummy $ac_prog; ac_word=$2
 
2203
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2204
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2205
if test "${ac_cv_prog_AWK+set}" = set; then
 
2206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2207
else
 
2208
  if test -n "$AWK"; then
 
2209
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2210
else
 
2211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2212
for as_dir in $PATH
 
2213
do
 
2214
  IFS=$as_save_IFS
 
2215
  test -z "$as_dir" && as_dir=.
 
2216
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2217
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2218
    ac_cv_prog_AWK="$ac_prog"
 
2219
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2220
    break 2
 
2221
  fi
 
2222
done
 
2223
done
 
2224
IFS=$as_save_IFS
 
2225
 
 
2226
fi
 
2227
fi
 
2228
AWK=$ac_cv_prog_AWK
 
2229
if test -n "$AWK"; then
 
2230
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2231
echo "${ECHO_T}$AWK" >&6; }
 
2232
else
 
2233
  { echo "$as_me:$LINENO: result: no" >&5
 
2234
echo "${ECHO_T}no" >&6; }
 
2235
fi
 
2236
 
 
2237
 
 
2238
  test -n "$AWK" && break
 
2239
done
 
2240
 
 
2241
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2242
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2243
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2244
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2246
else
 
2247
  cat >conftest.make <<\_ACEOF
 
2248
SHELL = /bin/sh
 
2249
all:
 
2250
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2251
_ACEOF
 
2252
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2253
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2254
  *@@@%%%=?*=@@@%%%*)
 
2255
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2256
  *)
 
2257
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2258
esac
 
2259
rm -f conftest.make
 
2260
fi
 
2261
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2262
  { echo "$as_me:$LINENO: result: yes" >&5
 
2263
echo "${ECHO_T}yes" >&6; }
 
2264
  SET_MAKE=
 
2265
else
 
2266
  { echo "$as_me:$LINENO: result: no" >&5
 
2267
echo "${ECHO_T}no" >&6; }
 
2268
  SET_MAKE="MAKE=${MAKE-make}"
 
2269
fi
 
2270
 
 
2271
rm -rf .tst 2>/dev/null
 
2272
mkdir .tst 2>/dev/null
 
2273
if test -d .tst; then
 
2274
  am__leading_dot=.
 
2275
else
 
2276
  am__leading_dot=_
 
2277
fi
 
2278
rmdir .tst 2>/dev/null
 
2279
 
 
2280
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2281
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2282
  # is not polluted with repeated "-I."
 
2283
  am__isrc=' -I$(srcdir)'
 
2284
  # test to see if srcdir already configured
 
2285
  if test -f $srcdir/config.status; then
 
2286
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2287
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2288
   { (exit 1); exit 1; }; }
 
2289
  fi
 
2290
fi
 
2291
 
 
2292
# test whether we have cygpath
 
2293
if test -z "$CYGPATH_W"; then
 
2294
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2295
    CYGPATH_W='cygpath -w'
 
2296
  else
 
2297
    CYGPATH_W=echo
 
2298
  fi
 
2299
fi
 
2300
 
 
2301
 
 
2302
# Define the identity of the package.
 
2303
 PACKAGE='xf86-input-wizardpen'
 
2304
 VERSION='1.0.0'
 
2305
 
 
2306
 
 
2307
cat >>confdefs.h <<_ACEOF
 
2308
#define PACKAGE "$PACKAGE"
 
2309
_ACEOF
 
2310
 
 
2311
 
 
2312
cat >>confdefs.h <<_ACEOF
 
2313
#define VERSION "$VERSION"
 
2314
_ACEOF
 
2315
 
 
2316
# Some tools Automake needs.
 
2317
 
 
2318
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2319
 
 
2320
 
 
2321
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2322
 
 
2323
 
 
2324
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2325
 
 
2326
 
 
2327
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2328
 
 
2329
 
 
2330
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2331
 
 
2332
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2333
 
 
2334
# Installed binaries are usually stripped using `strip' when the user
 
2335
# run `make install-strip'.  However `strip' might not be the right
 
2336
# tool to use in cross-compilation environments, therefore Automake
 
2337
# will honor the `STRIP' environment variable to overrule this program.
 
2338
if test "$cross_compiling" != no; then
 
2339
  if test -n "$ac_tool_prefix"; then
 
2340
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2341
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2344
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2346
else
 
2347
  if test -n "$STRIP"; then
 
2348
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2349
else
 
2350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2351
for as_dir in $PATH
 
2352
do
 
2353
  IFS=$as_save_IFS
 
2354
  test -z "$as_dir" && as_dir=.
 
2355
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2357
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2358
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2359
    break 2
 
2360
  fi
 
2361
done
 
2362
done
 
2363
IFS=$as_save_IFS
 
2364
 
 
2365
fi
 
2366
fi
 
2367
STRIP=$ac_cv_prog_STRIP
 
2368
if test -n "$STRIP"; then
 
2369
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2370
echo "${ECHO_T}$STRIP" >&6; }
 
2371
else
 
2372
  { echo "$as_me:$LINENO: result: no" >&5
 
2373
echo "${ECHO_T}no" >&6; }
 
2374
fi
 
2375
 
 
2376
 
 
2377
fi
 
2378
if test -z "$ac_cv_prog_STRIP"; then
 
2379
  ac_ct_STRIP=$STRIP
 
2380
  # Extract the first word of "strip", so it can be a program name with args.
 
2381
set dummy strip; ac_word=$2
 
2382
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2383
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2384
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2386
else
 
2387
  if test -n "$ac_ct_STRIP"; then
 
2388
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2389
else
 
2390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2391
for as_dir in $PATH
 
2392
do
 
2393
  IFS=$as_save_IFS
 
2394
  test -z "$as_dir" && as_dir=.
 
2395
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2396
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2397
    ac_cv_prog_ac_ct_STRIP="strip"
 
2398
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2399
    break 2
 
2400
  fi
 
2401
done
 
2402
done
 
2403
IFS=$as_save_IFS
 
2404
 
 
2405
fi
 
2406
fi
 
2407
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2408
if test -n "$ac_ct_STRIP"; then
 
2409
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2410
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2411
else
 
2412
  { echo "$as_me:$LINENO: result: no" >&5
 
2413
echo "${ECHO_T}no" >&6; }
 
2414
fi
 
2415
 
 
2416
  if test "x$ac_ct_STRIP" = x; then
 
2417
    STRIP=":"
 
2418
  else
 
2419
    case $cross_compiling:$ac_tool_warned in
 
2420
yes:)
 
2421
{ echo "$as_me:$LINENO: 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." >&5
 
2424
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2425
whose name does not start with the host triplet.  If you think this
 
2426
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2427
ac_tool_warned=yes ;;
 
2428
esac
 
2429
    STRIP=$ac_ct_STRIP
 
2430
  fi
 
2431
else
 
2432
  STRIP="$ac_cv_prog_STRIP"
 
2433
fi
 
2434
 
 
2435
fi
 
2436
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2437
 
 
2438
# We need awk for the "check" target.  The system "awk" is bad on
 
2439
# some platforms.
 
2440
# Always define AMTAR for backward compatibility.
 
2441
 
 
2442
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2443
 
 
2444
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2445
 
 
2446
 
 
2447
 
 
2448
 
 
2449
 
 
2450
 
 
2451
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2452
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2453
    # Check whether --enable-maintainer-mode was given.
 
2454
if test "${enable_maintainer_mode+set}" = set; then
 
2455
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2456
else
 
2457
  USE_MAINTAINER_MODE=no
 
2458
fi
 
2459
 
 
2460
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2461
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
 
2462
   if test $USE_MAINTAINER_MODE = yes; then
 
2463
  MAINTAINER_MODE_TRUE=
 
2464
  MAINTAINER_MODE_FALSE='#'
 
2465
else
 
2466
  MAINTAINER_MODE_TRUE='#'
 
2467
  MAINTAINER_MODE_FALSE=
 
2468
fi
 
2469
 
 
2470
  MAINT=$MAINTAINER_MODE_TRUE
 
2471
 
 
2472
 
 
2473
 
 
2474
DRIVER_NAME=wizardpen
 
2475
 
 
2476
 
 
2477
ac_config_headers="$ac_config_headers config.h"
 
2478
 
 
2479
 
 
2480
# Checks for programs.
 
2481
# Check whether --enable-static was given.
 
2482
if test "${enable_static+set}" = set; then
 
2483
  enableval=$enable_static; p=${PACKAGE-default}
 
2484
    case $enableval in
 
2485
    yes) enable_static=yes ;;
 
2486
    no) enable_static=no ;;
 
2487
    *)
 
2488
     enable_static=no
 
2489
      # Look at the argument we got.  We use all the common list separators.
 
2490
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2491
      for pkg in $enableval; do
 
2492
        IFS="$lt_save_ifs"
 
2493
        if test "X$pkg" = "X$p"; then
 
2494
          enable_static=yes
 
2495
        fi
 
2496
      done
 
2497
      IFS="$lt_save_ifs"
 
2498
      ;;
 
2499
    esac
 
2500
else
 
2501
  enable_static=no
 
2502
fi
 
2503
 
 
2504
 
 
2505
 
 
2506
# Check whether --enable-shared was given.
 
2507
if test "${enable_shared+set}" = set; then
 
2508
  enableval=$enable_shared; p=${PACKAGE-default}
 
2509
    case $enableval in
 
2510
    yes) enable_shared=yes ;;
 
2511
    no) enable_shared=no ;;
 
2512
    *)
 
2513
      enable_shared=no
 
2514
      # Look at the argument we got.  We use all the common list separators.
 
2515
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2516
      for pkg in $enableval; do
 
2517
        IFS="$lt_save_ifs"
 
2518
        if test "X$pkg" = "X$p"; then
 
2519
          enable_shared=yes
 
2520
        fi
 
2521
      done
 
2522
      IFS="$lt_save_ifs"
 
2523
      ;;
 
2524
    esac
 
2525
else
 
2526
  enable_shared=yes
 
2527
fi
 
2528
 
 
2529
 
 
2530
# Check whether --enable-fast-install was given.
 
2531
if test "${enable_fast_install+set}" = set; then
 
2532
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
2533
    case $enableval in
 
2534
    yes) enable_fast_install=yes ;;
 
2535
    no) enable_fast_install=no ;;
 
2536
    *)
 
2537
      enable_fast_install=no
 
2538
      # Look at the argument we got.  We use all the common list separators.
 
2539
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2540
      for pkg in $enableval; do
 
2541
        IFS="$lt_save_ifs"
 
2542
        if test "X$pkg" = "X$p"; then
 
2543
          enable_fast_install=yes
 
2544
        fi
 
2545
      done
 
2546
      IFS="$lt_save_ifs"
 
2547
      ;;
 
2548
    esac
 
2549
else
 
2550
  enable_fast_install=yes
 
2551
fi
 
2552
 
 
2553
 
 
2554
# Make sure we can run config.sub.
 
2555
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2556
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2557
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2558
   { (exit 1); exit 1; }; }
 
2559
 
 
2560
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2561
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2562
if test "${ac_cv_build+set}" = set; then
 
2563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2564
else
 
2565
  ac_build_alias=$build_alias
 
2566
test "x$ac_build_alias" = x &&
 
2567
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2568
test "x$ac_build_alias" = x &&
 
2569
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2570
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2571
   { (exit 1); exit 1; }; }
 
2572
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2573
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2574
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2575
   { (exit 1); exit 1; }; }
 
2576
 
 
2577
fi
 
2578
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2579
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2580
case $ac_cv_build in
 
2581
*-*-*) ;;
 
2582
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2583
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2584
   { (exit 1); exit 1; }; };;
 
2585
esac
 
2586
build=$ac_cv_build
 
2587
ac_save_IFS=$IFS; IFS='-'
 
2588
set x $ac_cv_build
 
2589
shift
 
2590
build_cpu=$1
 
2591
build_vendor=$2
 
2592
shift; shift
 
2593
# Remember, the first character of IFS is used to create $*,
 
2594
# except with old shells:
 
2595
build_os=$*
 
2596
IFS=$ac_save_IFS
 
2597
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2598
 
 
2599
 
 
2600
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2601
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2602
if test "${ac_cv_host+set}" = set; then
 
2603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2604
else
 
2605
  if test "x$host_alias" = x; then
 
2606
  ac_cv_host=$ac_cv_build
 
2607
else
 
2608
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2609
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2610
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2611
   { (exit 1); exit 1; }; }
 
2612
fi
 
2613
 
 
2614
fi
 
2615
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2616
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2617
case $ac_cv_host in
 
2618
*-*-*) ;;
 
2619
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2620
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2621
   { (exit 1); exit 1; }; };;
 
2622
esac
 
2623
host=$ac_cv_host
 
2624
ac_save_IFS=$IFS; IFS='-'
 
2625
set x $ac_cv_host
 
2626
shift
 
2627
host_cpu=$1
 
2628
host_vendor=$2
 
2629
shift; shift
 
2630
# Remember, the first character of IFS is used to create $*,
 
2631
# except with old shells:
 
2632
host_os=$*
 
2633
IFS=$ac_save_IFS
 
2634
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2635
 
 
2636
 
 
2637
DEPDIR="${am__leading_dot}deps"
 
2638
 
 
2639
ac_config_commands="$ac_config_commands depfiles"
 
2640
 
 
2641
 
 
2642
am_make=${MAKE-make}
 
2643
cat > confinc << 'END'
 
2644
am__doit:
 
2645
        @echo done
 
2646
.PHONY: am__doit
 
2647
END
 
2648
# If we don't find an include directive, just comment out the code.
 
2649
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2650
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2651
am__include="#"
 
2652
am__quote=
 
2653
_am_result=none
 
2654
# First try GNU make style include.
 
2655
echo "include confinc" > confmf
 
2656
# We grep out `Entering directory' and `Leaving directory'
 
2657
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2658
# In particular we don't look at `^make:' because GNU make might
 
2659
# be invoked under some other name (usually "gmake"), in which
 
2660
# case it prints its new name instead of `make'.
 
2661
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2662
   am__include=include
 
2663
   am__quote=
 
2664
   _am_result=GNU
 
2665
fi
 
2666
# Now try BSD make style include.
 
2667
if test "$am__include" = "#"; then
 
2668
   echo '.include "confinc"' > confmf
 
2669
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2670
      am__include=.include
 
2671
      am__quote="\""
 
2672
      _am_result=BSD
 
2673
   fi
 
2674
fi
 
2675
 
 
2676
 
 
2677
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2678
echo "${ECHO_T}$_am_result" >&6; }
 
2679
rm -f confinc confmf
 
2680
 
 
2681
# Check whether --enable-dependency-tracking was given.
 
2682
if test "${enable_dependency_tracking+set}" = set; then
 
2683
  enableval=$enable_dependency_tracking;
 
2684
fi
 
2685
 
 
2686
if test "x$enable_dependency_tracking" != xno; then
 
2687
  am_depcomp="$ac_aux_dir/depcomp"
 
2688
  AMDEPBACKSLASH='\'
 
2689
fi
 
2690
 if test "x$enable_dependency_tracking" != xno; then
 
2691
  AMDEP_TRUE=
 
2692
  AMDEP_FALSE='#'
 
2693
else
 
2694
  AMDEP_TRUE='#'
 
2695
  AMDEP_FALSE=
 
2696
fi
 
2697
 
 
2698
 
 
2699
ac_ext=c
 
2700
ac_cpp='$CPP $CPPFLAGS'
 
2701
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2702
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2703
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2704
if test -n "$ac_tool_prefix"; then
 
2705
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2706
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2709
if test "${ac_cv_prog_CC+set}" = set; then
 
2710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2711
else
 
2712
  if test -n "$CC"; then
 
2713
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2714
else
 
2715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2716
for as_dir in $PATH
 
2717
do
 
2718
  IFS=$as_save_IFS
 
2719
  test -z "$as_dir" && as_dir=.
 
2720
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2722
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2723
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2724
    break 2
 
2725
  fi
 
2726
done
 
2727
done
 
2728
IFS=$as_save_IFS
 
2729
 
 
2730
fi
 
2731
fi
 
2732
CC=$ac_cv_prog_CC
 
2733
if test -n "$CC"; then
 
2734
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2735
echo "${ECHO_T}$CC" >&6; }
 
2736
else
 
2737
  { echo "$as_me:$LINENO: result: no" >&5
 
2738
echo "${ECHO_T}no" >&6; }
 
2739
fi
 
2740
 
 
2741
 
 
2742
fi
 
2743
if test -z "$ac_cv_prog_CC"; then
 
2744
  ac_ct_CC=$CC
 
2745
  # Extract the first word of "gcc", so it can be a program name with args.
 
2746
set dummy gcc; ac_word=$2
 
2747
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2749
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2751
else
 
2752
  if test -n "$ac_ct_CC"; then
 
2753
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2754
else
 
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2756
for as_dir in $PATH
 
2757
do
 
2758
  IFS=$as_save_IFS
 
2759
  test -z "$as_dir" && as_dir=.
 
2760
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2762
    ac_cv_prog_ac_ct_CC="gcc"
 
2763
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2764
    break 2
 
2765
  fi
 
2766
done
 
2767
done
 
2768
IFS=$as_save_IFS
 
2769
 
 
2770
fi
 
2771
fi
 
2772
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2773
if test -n "$ac_ct_CC"; then
 
2774
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2775
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2776
else
 
2777
  { echo "$as_me:$LINENO: result: no" >&5
 
2778
echo "${ECHO_T}no" >&6; }
 
2779
fi
 
2780
 
 
2781
  if test "x$ac_ct_CC" = x; then
 
2782
    CC=""
 
2783
  else
 
2784
    case $cross_compiling:$ac_tool_warned in
 
2785
yes:)
 
2786
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2787
whose name does not start with the host triplet.  If you think this
 
2788
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2789
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2790
whose name does not start with the host triplet.  If you think this
 
2791
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2792
ac_tool_warned=yes ;;
 
2793
esac
 
2794
    CC=$ac_ct_CC
 
2795
  fi
 
2796
else
 
2797
  CC="$ac_cv_prog_CC"
 
2798
fi
 
2799
 
 
2800
if test -z "$CC"; then
 
2801
          if test -n "$ac_tool_prefix"; then
 
2802
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2803
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2804
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2806
if test "${ac_cv_prog_CC+set}" = set; then
 
2807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2808
else
 
2809
  if test -n "$CC"; then
 
2810
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2811
else
 
2812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2813
for as_dir in $PATH
 
2814
do
 
2815
  IFS=$as_save_IFS
 
2816
  test -z "$as_dir" && as_dir=.
 
2817
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2818
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2819
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2820
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2821
    break 2
 
2822
  fi
 
2823
done
 
2824
done
 
2825
IFS=$as_save_IFS
 
2826
 
 
2827
fi
 
2828
fi
 
2829
CC=$ac_cv_prog_CC
 
2830
if test -n "$CC"; then
 
2831
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2832
echo "${ECHO_T}$CC" >&6; }
 
2833
else
 
2834
  { echo "$as_me:$LINENO: result: no" >&5
 
2835
echo "${ECHO_T}no" >&6; }
 
2836
fi
 
2837
 
 
2838
 
 
2839
  fi
 
2840
fi
 
2841
if test -z "$CC"; then
 
2842
  # Extract the first word of "cc", so it can be a program name with args.
 
2843
set dummy cc; ac_word=$2
 
2844
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2846
if test "${ac_cv_prog_CC+set}" = set; then
 
2847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2848
else
 
2849
  if test -n "$CC"; then
 
2850
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2851
else
 
2852
  ac_prog_rejected=no
 
2853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2854
for as_dir in $PATH
 
2855
do
 
2856
  IFS=$as_save_IFS
 
2857
  test -z "$as_dir" && as_dir=.
 
2858
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2859
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2860
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2861
       ac_prog_rejected=yes
 
2862
       continue
 
2863
     fi
 
2864
    ac_cv_prog_CC="cc"
 
2865
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2866
    break 2
 
2867
  fi
 
2868
done
 
2869
done
 
2870
IFS=$as_save_IFS
 
2871
 
 
2872
if test $ac_prog_rejected = yes; then
 
2873
  # We found a bogon in the path, so make sure we never use it.
 
2874
  set dummy $ac_cv_prog_CC
 
2875
  shift
 
2876
  if test $# != 0; then
 
2877
    # We chose a different compiler from the bogus one.
 
2878
    # However, it has the same basename, so the bogon will be chosen
 
2879
    # first if we set CC to just the basename; use the full file name.
 
2880
    shift
 
2881
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2882
  fi
 
2883
fi
 
2884
fi
 
2885
fi
 
2886
CC=$ac_cv_prog_CC
 
2887
if test -n "$CC"; then
 
2888
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2889
echo "${ECHO_T}$CC" >&6; }
 
2890
else
 
2891
  { echo "$as_me:$LINENO: result: no" >&5
 
2892
echo "${ECHO_T}no" >&6; }
 
2893
fi
 
2894
 
 
2895
 
 
2896
fi
 
2897
if test -z "$CC"; then
 
2898
  if test -n "$ac_tool_prefix"; then
 
2899
  for ac_prog in cl.exe
 
2900
  do
 
2901
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2902
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2903
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2905
if test "${ac_cv_prog_CC+set}" = set; then
 
2906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2907
else
 
2908
  if test -n "$CC"; then
 
2909
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2910
else
 
2911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2912
for as_dir in $PATH
 
2913
do
 
2914
  IFS=$as_save_IFS
 
2915
  test -z "$as_dir" && as_dir=.
 
2916
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2918
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2919
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2920
    break 2
 
2921
  fi
 
2922
done
 
2923
done
 
2924
IFS=$as_save_IFS
 
2925
 
 
2926
fi
 
2927
fi
 
2928
CC=$ac_cv_prog_CC
 
2929
if test -n "$CC"; then
 
2930
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2931
echo "${ECHO_T}$CC" >&6; }
 
2932
else
 
2933
  { echo "$as_me:$LINENO: result: no" >&5
 
2934
echo "${ECHO_T}no" >&6; }
 
2935
fi
 
2936
 
 
2937
 
 
2938
    test -n "$CC" && break
 
2939
  done
 
2940
fi
 
2941
if test -z "$CC"; then
 
2942
  ac_ct_CC=$CC
 
2943
  for ac_prog in cl.exe
 
2944
do
 
2945
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2946
set dummy $ac_prog; ac_word=$2
 
2947
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2948
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2949
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2951
else
 
2952
  if test -n "$ac_ct_CC"; then
 
2953
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2954
else
 
2955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2956
for as_dir in $PATH
 
2957
do
 
2958
  IFS=$as_save_IFS
 
2959
  test -z "$as_dir" && as_dir=.
 
2960
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2961
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2962
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2963
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2964
    break 2
 
2965
  fi
 
2966
done
 
2967
done
 
2968
IFS=$as_save_IFS
 
2969
 
 
2970
fi
 
2971
fi
 
2972
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2973
if test -n "$ac_ct_CC"; then
 
2974
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2975
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2976
else
 
2977
  { echo "$as_me:$LINENO: result: no" >&5
 
2978
echo "${ECHO_T}no" >&6; }
 
2979
fi
 
2980
 
 
2981
 
 
2982
  test -n "$ac_ct_CC" && break
 
2983
done
 
2984
 
 
2985
  if test "x$ac_ct_CC" = x; then
 
2986
    CC=""
 
2987
  else
 
2988
    case $cross_compiling:$ac_tool_warned in
 
2989
yes:)
 
2990
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2991
whose name does not start with the host triplet.  If you think this
 
2992
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2993
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2994
whose name does not start with the host triplet.  If you think this
 
2995
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2996
ac_tool_warned=yes ;;
 
2997
esac
 
2998
    CC=$ac_ct_CC
 
2999
  fi
 
3000
fi
 
3001
 
 
3002
fi
 
3003
 
 
3004
 
 
3005
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3006
See \`config.log' for more details." >&5
 
3007
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3008
See \`config.log' for more details." >&2;}
 
3009
   { (exit 1); exit 1; }; }
 
3010
 
 
3011
# Provide some information about the compiler.
 
3012
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3013
ac_compiler=`set X $ac_compile; echo $2`
 
3014
{ (ac_try="$ac_compiler --version >&5"
 
3015
case "(($ac_try" in
 
3016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3017
  *) ac_try_echo=$ac_try;;
 
3018
esac
 
3019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3020
  (eval "$ac_compiler --version >&5") 2>&5
 
3021
  ac_status=$?
 
3022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3023
  (exit $ac_status); }
 
3024
{ (ac_try="$ac_compiler -v >&5"
 
3025
case "(($ac_try" in
 
3026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3027
  *) ac_try_echo=$ac_try;;
 
3028
esac
 
3029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3030
  (eval "$ac_compiler -v >&5") 2>&5
 
3031
  ac_status=$?
 
3032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3033
  (exit $ac_status); }
 
3034
{ (ac_try="$ac_compiler -V >&5"
 
3035
case "(($ac_try" in
 
3036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3037
  *) ac_try_echo=$ac_try;;
 
3038
esac
 
3039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3040
  (eval "$ac_compiler -V >&5") 2>&5
 
3041
  ac_status=$?
 
3042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3043
  (exit $ac_status); }
 
3044
 
 
3045
cat >conftest.$ac_ext <<_ACEOF
 
3046
/* confdefs.h.  */
 
3047
_ACEOF
 
3048
cat confdefs.h >>conftest.$ac_ext
 
3049
cat >>conftest.$ac_ext <<_ACEOF
 
3050
/* end confdefs.h.  */
 
3051
 
 
3052
int
 
3053
main ()
 
3054
{
 
3055
 
 
3056
  ;
 
3057
  return 0;
 
3058
}
 
3059
_ACEOF
 
3060
ac_clean_files_save=$ac_clean_files
 
3061
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3062
# Try to create an executable without -o first, disregard a.out.
 
3063
# It will help us diagnose broken compilers, and finding out an intuition
 
3064
# of exeext.
 
3065
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3066
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3067
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3068
#
 
3069
# List of possible output files, starting from the most likely.
 
3070
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3071
# only as a last resort.  b.out is created by i960 compilers.
 
3072
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3073
#
 
3074
# The IRIX 6 linker writes into existing files which may not be
 
3075
# executable, retaining their permissions.  Remove them first so a
 
3076
# subsequent execution test works.
 
3077
ac_rmfiles=
 
3078
for ac_file in $ac_files
 
3079
do
 
3080
  case $ac_file in
 
3081
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3082
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3083
  esac
 
3084
done
 
3085
rm -f $ac_rmfiles
 
3086
 
 
3087
if { (ac_try="$ac_link_default"
 
3088
case "(($ac_try" in
 
3089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3090
  *) ac_try_echo=$ac_try;;
 
3091
esac
 
3092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3093
  (eval "$ac_link_default") 2>&5
 
3094
  ac_status=$?
 
3095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3096
  (exit $ac_status); }; then
 
3097
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3098
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3099
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3100
# so that the user can short-circuit this test for compilers unknown to
 
3101
# Autoconf.
 
3102
for ac_file in $ac_files ''
 
3103
do
 
3104
  test -f "$ac_file" || continue
 
3105
  case $ac_file in
 
3106
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3107
        ;;
 
3108
    [ab].out )
 
3109
        # We found the default executable, but exeext='' is most
 
3110
        # certainly right.
 
3111
        break;;
 
3112
    *.* )
 
3113
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3114
        then :; else
 
3115
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3116
        fi
 
3117
        # We set ac_cv_exeext here because the later test for it is not
 
3118
        # safe: cross compilers may not add the suffix if given an `-o'
 
3119
        # argument, so we may need to know it at that point already.
 
3120
        # Even if this section looks crufty: it has the advantage of
 
3121
        # actually working.
 
3122
        break;;
 
3123
    * )
 
3124
        break;;
 
3125
  esac
 
3126
done
 
3127
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3128
 
 
3129
else
 
3130
  ac_file=''
 
3131
fi
 
3132
 
 
3133
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3134
echo "${ECHO_T}$ac_file" >&6; }
 
3135
if test -z "$ac_file"; then
 
3136
  echo "$as_me: failed program was:" >&5
 
3137
sed 's/^/| /' conftest.$ac_ext >&5
 
3138
 
 
3139
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3140
See \`config.log' for more details." >&5
 
3141
echo "$as_me: error: C compiler cannot create executables
 
3142
See \`config.log' for more details." >&2;}
 
3143
   { (exit 77); exit 77; }; }
 
3144
fi
 
3145
 
 
3146
ac_exeext=$ac_cv_exeext
 
3147
 
 
3148
# Check that the compiler produces executables we can run.  If not, either
 
3149
# the compiler is broken, or we cross compile.
 
3150
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3151
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3152
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3153
# If not cross compiling, check that we can run a simple program.
 
3154
if test "$cross_compiling" != yes; then
 
3155
  if { ac_try='./$ac_file'
 
3156
  { (case "(($ac_try" in
 
3157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3158
  *) ac_try_echo=$ac_try;;
 
3159
esac
 
3160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3161
  (eval "$ac_try") 2>&5
 
3162
  ac_status=$?
 
3163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3164
  (exit $ac_status); }; }; then
 
3165
    cross_compiling=no
 
3166
  else
 
3167
    if test "$cross_compiling" = maybe; then
 
3168
        cross_compiling=yes
 
3169
    else
 
3170
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3171
If you meant to cross compile, use \`--host'.
 
3172
See \`config.log' for more details." >&5
 
3173
echo "$as_me: error: cannot run C compiled programs.
 
3174
If you meant to cross compile, use \`--host'.
 
3175
See \`config.log' for more details." >&2;}
 
3176
   { (exit 1); exit 1; }; }
 
3177
    fi
 
3178
  fi
 
3179
fi
 
3180
{ echo "$as_me:$LINENO: result: yes" >&5
 
3181
echo "${ECHO_T}yes" >&6; }
 
3182
 
 
3183
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3184
ac_clean_files=$ac_clean_files_save
 
3185
# Check that the compiler produces executables we can run.  If not, either
 
3186
# the compiler is broken, or we cross compile.
 
3187
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3188
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3189
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3190
echo "${ECHO_T}$cross_compiling" >&6; }
 
3191
 
 
3192
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3193
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3194
if { (ac_try="$ac_link"
 
3195
case "(($ac_try" in
 
3196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3197
  *) ac_try_echo=$ac_try;;
 
3198
esac
 
3199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3200
  (eval "$ac_link") 2>&5
 
3201
  ac_status=$?
 
3202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3203
  (exit $ac_status); }; then
 
3204
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3205
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3206
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3207
# `rm'.
 
3208
for ac_file in conftest.exe conftest conftest.*; do
 
3209
  test -f "$ac_file" || continue
 
3210
  case $ac_file in
 
3211
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3212
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3213
          break;;
 
3214
    * ) break;;
 
3215
  esac
 
3216
done
 
3217
else
 
3218
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3219
See \`config.log' for more details." >&5
 
3220
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3221
See \`config.log' for more details." >&2;}
 
3222
   { (exit 1); exit 1; }; }
 
3223
fi
 
3224
 
 
3225
rm -f conftest$ac_cv_exeext
 
3226
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3227
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3228
 
 
3229
rm -f conftest.$ac_ext
 
3230
EXEEXT=$ac_cv_exeext
 
3231
ac_exeext=$EXEEXT
 
3232
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3233
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3234
if test "${ac_cv_objext+set}" = set; then
 
3235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3236
else
 
3237
  cat >conftest.$ac_ext <<_ACEOF
 
3238
/* confdefs.h.  */
 
3239
_ACEOF
 
3240
cat confdefs.h >>conftest.$ac_ext
 
3241
cat >>conftest.$ac_ext <<_ACEOF
 
3242
/* end confdefs.h.  */
 
3243
 
 
3244
int
 
3245
main ()
 
3246
{
 
3247
 
 
3248
  ;
 
3249
  return 0;
 
3250
}
 
3251
_ACEOF
 
3252
rm -f conftest.o conftest.obj
 
3253
if { (ac_try="$ac_compile"
 
3254
case "(($ac_try" in
 
3255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3256
  *) ac_try_echo=$ac_try;;
 
3257
esac
 
3258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3259
  (eval "$ac_compile") 2>&5
 
3260
  ac_status=$?
 
3261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3262
  (exit $ac_status); }; then
 
3263
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3264
  test -f "$ac_file" || continue;
 
3265
  case $ac_file in
 
3266
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3267
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3268
       break;;
 
3269
  esac
 
3270
done
 
3271
else
 
3272
  echo "$as_me: failed program was:" >&5
 
3273
sed 's/^/| /' conftest.$ac_ext >&5
 
3274
 
 
3275
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3276
See \`config.log' for more details." >&5
 
3277
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3278
See \`config.log' for more details." >&2;}
 
3279
   { (exit 1); exit 1; }; }
 
3280
fi
 
3281
 
 
3282
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3283
fi
 
3284
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3285
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3286
OBJEXT=$ac_cv_objext
 
3287
ac_objext=$OBJEXT
 
3288
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3289
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3290
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3292
else
 
3293
  cat >conftest.$ac_ext <<_ACEOF
 
3294
/* confdefs.h.  */
 
3295
_ACEOF
 
3296
cat confdefs.h >>conftest.$ac_ext
 
3297
cat >>conftest.$ac_ext <<_ACEOF
 
3298
/* end confdefs.h.  */
 
3299
 
 
3300
int
 
3301
main ()
 
3302
{
 
3303
#ifndef __GNUC__
 
3304
       choke me
 
3305
#endif
 
3306
 
 
3307
  ;
 
3308
  return 0;
 
3309
}
 
3310
_ACEOF
 
3311
rm -f conftest.$ac_objext
 
3312
if { (ac_try="$ac_compile"
 
3313
case "(($ac_try" in
 
3314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3315
  *) ac_try_echo=$ac_try;;
 
3316
esac
 
3317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3318
  (eval "$ac_compile") 2>conftest.er1
 
3319
  ac_status=$?
 
3320
  grep -v '^ *+' conftest.er1 >conftest.err
 
3321
  rm -f conftest.er1
 
3322
  cat conftest.err >&5
 
3323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3324
  (exit $ac_status); } && {
 
3325
         test -z "$ac_c_werror_flag" ||
 
3326
         test ! -s conftest.err
 
3327
       } && test -s conftest.$ac_objext; then
 
3328
  ac_compiler_gnu=yes
 
3329
else
 
3330
  echo "$as_me: failed program was:" >&5
 
3331
sed 's/^/| /' conftest.$ac_ext >&5
 
3332
 
 
3333
        ac_compiler_gnu=no
 
3334
fi
 
3335
 
 
3336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3337
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3338
 
 
3339
fi
 
3340
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3341
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3342
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3343
ac_test_CFLAGS=${CFLAGS+set}
 
3344
ac_save_CFLAGS=$CFLAGS
 
3345
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3346
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3347
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3349
else
 
3350
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3351
   ac_c_werror_flag=yes
 
3352
   ac_cv_prog_cc_g=no
 
3353
   CFLAGS="-g"
 
3354
   cat >conftest.$ac_ext <<_ACEOF
 
3355
/* confdefs.h.  */
 
3356
_ACEOF
 
3357
cat confdefs.h >>conftest.$ac_ext
 
3358
cat >>conftest.$ac_ext <<_ACEOF
 
3359
/* end confdefs.h.  */
 
3360
 
 
3361
int
 
3362
main ()
 
3363
{
 
3364
 
 
3365
  ;
 
3366
  return 0;
 
3367
}
 
3368
_ACEOF
 
3369
rm -f conftest.$ac_objext
 
3370
if { (ac_try="$ac_compile"
 
3371
case "(($ac_try" in
 
3372
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3373
  *) ac_try_echo=$ac_try;;
 
3374
esac
 
3375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3376
  (eval "$ac_compile") 2>conftest.er1
 
3377
  ac_status=$?
 
3378
  grep -v '^ *+' conftest.er1 >conftest.err
 
3379
  rm -f conftest.er1
 
3380
  cat conftest.err >&5
 
3381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3382
  (exit $ac_status); } && {
 
3383
         test -z "$ac_c_werror_flag" ||
 
3384
         test ! -s conftest.err
 
3385
       } && test -s conftest.$ac_objext; then
 
3386
  ac_cv_prog_cc_g=yes
 
3387
else
 
3388
  echo "$as_me: failed program was:" >&5
 
3389
sed 's/^/| /' conftest.$ac_ext >&5
 
3390
 
 
3391
        CFLAGS=""
 
3392
      cat >conftest.$ac_ext <<_ACEOF
 
3393
/* confdefs.h.  */
 
3394
_ACEOF
 
3395
cat confdefs.h >>conftest.$ac_ext
 
3396
cat >>conftest.$ac_ext <<_ACEOF
 
3397
/* end confdefs.h.  */
 
3398
 
 
3399
int
 
3400
main ()
 
3401
{
 
3402
 
 
3403
  ;
 
3404
  return 0;
 
3405
}
 
3406
_ACEOF
 
3407
rm -f conftest.$ac_objext
 
3408
if { (ac_try="$ac_compile"
 
3409
case "(($ac_try" in
 
3410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3411
  *) ac_try_echo=$ac_try;;
 
3412
esac
 
3413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3414
  (eval "$ac_compile") 2>conftest.er1
 
3415
  ac_status=$?
 
3416
  grep -v '^ *+' conftest.er1 >conftest.err
 
3417
  rm -f conftest.er1
 
3418
  cat conftest.err >&5
 
3419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3420
  (exit $ac_status); } && {
 
3421
         test -z "$ac_c_werror_flag" ||
 
3422
         test ! -s conftest.err
 
3423
       } && test -s conftest.$ac_objext; then
 
3424
  :
 
3425
else
 
3426
  echo "$as_me: failed program was:" >&5
 
3427
sed 's/^/| /' conftest.$ac_ext >&5
 
3428
 
 
3429
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3430
         CFLAGS="-g"
 
3431
         cat >conftest.$ac_ext <<_ACEOF
 
3432
/* confdefs.h.  */
 
3433
_ACEOF
 
3434
cat confdefs.h >>conftest.$ac_ext
 
3435
cat >>conftest.$ac_ext <<_ACEOF
 
3436
/* end confdefs.h.  */
 
3437
 
 
3438
int
 
3439
main ()
 
3440
{
 
3441
 
 
3442
  ;
 
3443
  return 0;
 
3444
}
 
3445
_ACEOF
 
3446
rm -f conftest.$ac_objext
 
3447
if { (ac_try="$ac_compile"
 
3448
case "(($ac_try" in
 
3449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3450
  *) ac_try_echo=$ac_try;;
 
3451
esac
 
3452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3453
  (eval "$ac_compile") 2>conftest.er1
 
3454
  ac_status=$?
 
3455
  grep -v '^ *+' conftest.er1 >conftest.err
 
3456
  rm -f conftest.er1
 
3457
  cat conftest.err >&5
 
3458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3459
  (exit $ac_status); } && {
 
3460
         test -z "$ac_c_werror_flag" ||
 
3461
         test ! -s conftest.err
 
3462
       } && test -s conftest.$ac_objext; then
 
3463
  ac_cv_prog_cc_g=yes
 
3464
else
 
3465
  echo "$as_me: failed program was:" >&5
 
3466
sed 's/^/| /' conftest.$ac_ext >&5
 
3467
 
 
3468
 
 
3469
fi
 
3470
 
 
3471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3472
fi
 
3473
 
 
3474
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3475
fi
 
3476
 
 
3477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3478
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3479
fi
 
3480
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3481
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3482
if test "$ac_test_CFLAGS" = set; then
 
3483
  CFLAGS=$ac_save_CFLAGS
 
3484
elif test $ac_cv_prog_cc_g = yes; then
 
3485
  if test "$GCC" = yes; then
 
3486
    CFLAGS="-g -O2"
 
3487
  else
 
3488
    CFLAGS="-g"
 
3489
  fi
 
3490
else
 
3491
  if test "$GCC" = yes; then
 
3492
    CFLAGS="-O2"
 
3493
  else
 
3494
    CFLAGS=
 
3495
  fi
 
3496
fi
 
3497
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3498
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3499
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3501
else
 
3502
  ac_cv_prog_cc_c89=no
 
3503
ac_save_CC=$CC
 
3504
cat >conftest.$ac_ext <<_ACEOF
 
3505
/* confdefs.h.  */
 
3506
_ACEOF
 
3507
cat confdefs.h >>conftest.$ac_ext
 
3508
cat >>conftest.$ac_ext <<_ACEOF
 
3509
/* end confdefs.h.  */
 
3510
#include <stdarg.h>
 
3511
#include <stdio.h>
 
3512
#include <sys/types.h>
 
3513
#include <sys/stat.h>
 
3514
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3515
struct buf { int x; };
 
3516
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3517
static char *e (p, i)
 
3518
     char **p;
 
3519
     int i;
 
3520
{
 
3521
  return p[i];
 
3522
}
 
3523
static char *f (char * (*g) (char **, int), char **p, ...)
 
3524
{
 
3525
  char *s;
 
3526
  va_list v;
 
3527
  va_start (v,p);
 
3528
  s = g (p, va_arg (v,int));
 
3529
  va_end (v);
 
3530
  return s;
 
3531
}
 
3532
 
 
3533
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3534
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3535
   These don't provoke an error unfortunately, instead are silently treated
 
3536
   as 'x'.  The following induces an error, until -std is added to get
 
3537
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3538
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3539
   that's true only with -std.  */
 
3540
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3541
 
 
3542
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3543
   inside strings and character constants.  */
 
3544
#define FOO(x) 'x'
 
3545
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3546
 
 
3547
int test (int i, double x);
 
3548
struct s1 {int (*f) (int a);};
 
3549
struct s2 {int (*f) (double a);};
 
3550
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3551
int argc;
 
3552
char **argv;
 
3553
int
 
3554
main ()
 
3555
{
 
3556
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3557
  ;
 
3558
  return 0;
 
3559
}
 
3560
_ACEOF
 
3561
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3562
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3563
do
 
3564
  CC="$ac_save_CC $ac_arg"
 
3565
  rm -f conftest.$ac_objext
 
3566
if { (ac_try="$ac_compile"
 
3567
case "(($ac_try" in
 
3568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3569
  *) ac_try_echo=$ac_try;;
 
3570
esac
 
3571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3572
  (eval "$ac_compile") 2>conftest.er1
 
3573
  ac_status=$?
 
3574
  grep -v '^ *+' conftest.er1 >conftest.err
 
3575
  rm -f conftest.er1
 
3576
  cat conftest.err >&5
 
3577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3578
  (exit $ac_status); } && {
 
3579
         test -z "$ac_c_werror_flag" ||
 
3580
         test ! -s conftest.err
 
3581
       } && test -s conftest.$ac_objext; then
 
3582
  ac_cv_prog_cc_c89=$ac_arg
 
3583
else
 
3584
  echo "$as_me: failed program was:" >&5
 
3585
sed 's/^/| /' conftest.$ac_ext >&5
 
3586
 
 
3587
 
 
3588
fi
 
3589
 
 
3590
rm -f core conftest.err conftest.$ac_objext
 
3591
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3592
done
 
3593
rm -f conftest.$ac_ext
 
3594
CC=$ac_save_CC
 
3595
 
 
3596
fi
 
3597
# AC_CACHE_VAL
 
3598
case "x$ac_cv_prog_cc_c89" in
 
3599
  x)
 
3600
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3601
echo "${ECHO_T}none needed" >&6; } ;;
 
3602
  xno)
 
3603
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3604
echo "${ECHO_T}unsupported" >&6; } ;;
 
3605
  *)
 
3606
    CC="$CC $ac_cv_prog_cc_c89"
 
3607
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3608
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3609
esac
 
3610
 
 
3611
 
 
3612
ac_ext=c
 
3613
ac_cpp='$CPP $CPPFLAGS'
 
3614
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3615
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3616
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3617
 
 
3618
depcc="$CC"   am_compiler_list=
 
3619
 
 
3620
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3621
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3622
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3624
else
 
3625
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3626
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3627
  # making bogus files that we don't know about and never remove.  For
 
3628
  # instance it was reported that on HP-UX the gcc test will end up
 
3629
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3630
  # in D'.
 
3631
  mkdir conftest.dir
 
3632
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3633
  # using a relative directory.
 
3634
  cp "$am_depcomp" conftest.dir
 
3635
  cd conftest.dir
 
3636
  # We will build objects and dependencies in a subdirectory because
 
3637
  # it helps to detect inapplicable dependency modes.  For instance
 
3638
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3639
  # side effect of compilation, but ICC will put the dependencies in
 
3640
  # the current directory while Tru64 will put them in the object
 
3641
  # directory.
 
3642
  mkdir sub
 
3643
 
 
3644
  am_cv_CC_dependencies_compiler_type=none
 
3645
  if test "$am_compiler_list" = ""; then
 
3646
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3647
  fi
 
3648
  for depmode in $am_compiler_list; do
 
3649
    # Setup a source with many dependencies, because some compilers
 
3650
    # like to wrap large dependency lists on column 80 (with \), and
 
3651
    # we should not choose a depcomp mode which is confused by this.
 
3652
    #
 
3653
    # We need to recreate these files for each test, as the compiler may
 
3654
    # overwrite some of them when testing with obscure command lines.
 
3655
    # This happens at least with the AIX C compiler.
 
3656
    : > sub/conftest.c
 
3657
    for i in 1 2 3 4 5 6; do
 
3658
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3659
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3660
      # Solaris 8's {/usr,}/bin/sh.
 
3661
      touch sub/conftst$i.h
 
3662
    done
 
3663
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3664
 
 
3665
    case $depmode in
 
3666
    nosideeffect)
 
3667
      # after this tag, mechanisms are not by side-effect, so they'll
 
3668
      # only be used when explicitly requested
 
3669
      if test "x$enable_dependency_tracking" = xyes; then
 
3670
        continue
 
3671
      else
 
3672
        break
 
3673
      fi
 
3674
      ;;
 
3675
    none) break ;;
 
3676
    esac
 
3677
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3678
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3679
    # handle `-M -o', and we need to detect this.
 
3680
    if depmode=$depmode \
 
3681
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3682
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3683
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3684
         >/dev/null 2>conftest.err &&
 
3685
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3686
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3687
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3688
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3689
      # icc doesn't choke on unknown options, it will just issue warnings
 
3690
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3691
      # that says an option was ignored or not supported.
 
3692
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3693
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3694
      # The diagnosis changed in icc 8.0:
 
3695
      #   icc: Command line remark: option '-MP' not supported
 
3696
      if (grep 'ignoring option' conftest.err ||
 
3697
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3698
        am_cv_CC_dependencies_compiler_type=$depmode
 
3699
        break
 
3700
      fi
 
3701
    fi
 
3702
  done
 
3703
 
 
3704
  cd ..
 
3705
  rm -rf conftest.dir
 
3706
else
 
3707
  am_cv_CC_dependencies_compiler_type=none
 
3708
fi
 
3709
 
 
3710
fi
 
3711
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3712
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3713
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3714
 
 
3715
 if
 
3716
  test "x$enable_dependency_tracking" != xno \
 
3717
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3718
  am__fastdepCC_TRUE=
 
3719
  am__fastdepCC_FALSE='#'
 
3720
else
 
3721
  am__fastdepCC_TRUE='#'
 
3722
  am__fastdepCC_FALSE=
 
3723
fi
 
3724
 
 
3725
 
 
3726
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3727
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3728
if test "${lt_cv_path_SED+set}" = set; then
 
3729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3730
else
 
3731
  # Loop through the user's path and test for sed and gsed.
 
3732
# Then use that list of sed's as ones to test for truncation.
 
3733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3734
for as_dir in $PATH
 
3735
do
 
3736
  IFS=$as_save_IFS
 
3737
  test -z "$as_dir" && as_dir=.
 
3738
  for lt_ac_prog in sed gsed; do
 
3739
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3740
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3741
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3742
      fi
 
3743
    done
 
3744
  done
 
3745
done
 
3746
lt_ac_max=0
 
3747
lt_ac_count=0
 
3748
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3749
# along with /bin/sed that truncates output.
 
3750
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3751
  test ! -f $lt_ac_sed && continue
 
3752
  cat /dev/null > conftest.in
 
3753
  lt_ac_count=0
 
3754
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3755
  # Check for GNU sed and select it if it is found.
 
3756
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3757
    lt_cv_path_SED=$lt_ac_sed
 
3758
    break
 
3759
  fi
 
3760
  while true; do
 
3761
    cat conftest.in conftest.in >conftest.tmp
 
3762
    mv conftest.tmp conftest.in
 
3763
    cp conftest.in conftest.nl
 
3764
    echo >>conftest.nl
 
3765
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3766
    cmp -s conftest.out conftest.nl || break
 
3767
    # 10000 chars as input seems more than enough
 
3768
    test $lt_ac_count -gt 10 && break
 
3769
    lt_ac_count=`expr $lt_ac_count + 1`
 
3770
    if test $lt_ac_count -gt $lt_ac_max; then
 
3771
      lt_ac_max=$lt_ac_count
 
3772
      lt_cv_path_SED=$lt_ac_sed
 
3773
    fi
 
3774
  done
 
3775
done
 
3776
 
 
3777
fi
 
3778
 
 
3779
SED=$lt_cv_path_SED
 
3780
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3781
echo "${ECHO_T}$SED" >&6; }
 
3782
 
 
3783
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3784
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3785
if test "${ac_cv_path_GREP+set}" = set; then
 
3786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3787
else
 
3788
  # Extract the first word of "grep ggrep" to use in msg output
 
3789
if test -z "$GREP"; then
 
3790
set dummy grep ggrep; ac_prog_name=$2
 
3791
if test "${ac_cv_path_GREP+set}" = set; then
 
3792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3793
else
 
3794
  ac_path_GREP_found=false
 
3795
# Loop through the user's path and test for each of PROGNAME-LIST
 
3796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3797
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3798
do
 
3799
  IFS=$as_save_IFS
 
3800
  test -z "$as_dir" && as_dir=.
 
3801
  for ac_prog in grep ggrep; do
 
3802
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3803
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3804
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3805
    # Check for GNU ac_path_GREP and select it if it is found.
 
3806
  # Check for GNU $ac_path_GREP
 
3807
case `"$ac_path_GREP" --version 2>&1` in
 
3808
*GNU*)
 
3809
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3810
*)
 
3811
  ac_count=0
 
3812
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3813
  while :
 
3814
  do
 
3815
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3816
    mv "conftest.tmp" "conftest.in"
 
3817
    cp "conftest.in" "conftest.nl"
 
3818
    echo 'GREP' >> "conftest.nl"
 
3819
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3820
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3821
    ac_count=`expr $ac_count + 1`
 
3822
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3823
      # Best one so far, save it but keep looking for a better one
 
3824
      ac_cv_path_GREP="$ac_path_GREP"
 
3825
      ac_path_GREP_max=$ac_count
 
3826
    fi
 
3827
    # 10*(2^10) chars as input seems more than enough
 
3828
    test $ac_count -gt 10 && break
 
3829
  done
 
3830
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3831
esac
 
3832
 
 
3833
 
 
3834
    $ac_path_GREP_found && break 3
 
3835
  done
 
3836
done
 
3837
 
 
3838
done
 
3839
IFS=$as_save_IFS
 
3840
 
 
3841
 
 
3842
fi
 
3843
 
 
3844
GREP="$ac_cv_path_GREP"
 
3845
if test -z "$GREP"; then
 
3846
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3847
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3848
   { (exit 1); exit 1; }; }
 
3849
fi
 
3850
 
 
3851
else
 
3852
  ac_cv_path_GREP=$GREP
 
3853
fi
 
3854
 
 
3855
 
 
3856
fi
 
3857
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3858
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3859
 GREP="$ac_cv_path_GREP"
 
3860
 
 
3861
 
 
3862
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3863
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3864
if test "${ac_cv_path_EGREP+set}" = set; then
 
3865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3866
else
 
3867
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3868
   then ac_cv_path_EGREP="$GREP -E"
 
3869
   else
 
3870
     # Extract the first word of "egrep" to use in msg output
 
3871
if test -z "$EGREP"; then
 
3872
set dummy egrep; ac_prog_name=$2
 
3873
if test "${ac_cv_path_EGREP+set}" = set; then
 
3874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3875
else
 
3876
  ac_path_EGREP_found=false
 
3877
# Loop through the user's path and test for each of PROGNAME-LIST
 
3878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3879
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3880
do
 
3881
  IFS=$as_save_IFS
 
3882
  test -z "$as_dir" && as_dir=.
 
3883
  for ac_prog in egrep; do
 
3884
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3885
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3886
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3887
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3888
  # Check for GNU $ac_path_EGREP
 
3889
case `"$ac_path_EGREP" --version 2>&1` in
 
3890
*GNU*)
 
3891
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3892
*)
 
3893
  ac_count=0
 
3894
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3895
  while :
 
3896
  do
 
3897
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3898
    mv "conftest.tmp" "conftest.in"
 
3899
    cp "conftest.in" "conftest.nl"
 
3900
    echo 'EGREP' >> "conftest.nl"
 
3901
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3902
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3903
    ac_count=`expr $ac_count + 1`
 
3904
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3905
      # Best one so far, save it but keep looking for a better one
 
3906
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3907
      ac_path_EGREP_max=$ac_count
 
3908
    fi
 
3909
    # 10*(2^10) chars as input seems more than enough
 
3910
    test $ac_count -gt 10 && break
 
3911
  done
 
3912
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3913
esac
 
3914
 
 
3915
 
 
3916
    $ac_path_EGREP_found && break 3
 
3917
  done
 
3918
done
 
3919
 
 
3920
done
 
3921
IFS=$as_save_IFS
 
3922
 
 
3923
 
 
3924
fi
 
3925
 
 
3926
EGREP="$ac_cv_path_EGREP"
 
3927
if test -z "$EGREP"; then
 
3928
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3929
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3930
   { (exit 1); exit 1; }; }
 
3931
fi
 
3932
 
 
3933
else
 
3934
  ac_cv_path_EGREP=$EGREP
 
3935
fi
 
3936
 
 
3937
 
 
3938
   fi
 
3939
fi
 
3940
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3941
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3942
 EGREP="$ac_cv_path_EGREP"
 
3943
 
 
3944
 
 
3945
 
 
3946
# Check whether --with-gnu-ld was given.
 
3947
if test "${with_gnu_ld+set}" = set; then
 
3948
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
3949
else
 
3950
  with_gnu_ld=no
 
3951
fi
 
3952
 
 
3953
ac_prog=ld
 
3954
if test "$GCC" = yes; then
 
3955
  # Check if gcc -print-prog-name=ld gives a path.
 
3956
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3957
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
3958
  case $host in
 
3959
  *-*-mingw*)
 
3960
    # gcc leaves a trailing carriage return which upsets mingw
 
3961
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3962
  *)
 
3963
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3964
  esac
 
3965
  case $ac_prog in
 
3966
    # Accept absolute paths.
 
3967
    [\\/]* | ?:[\\/]*)
 
3968
      re_direlt='/[^/][^/]*/\.\./'
 
3969
      # Canonicalize the pathname of ld
 
3970
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3971
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3972
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3973
      done
 
3974
      test -z "$LD" && LD="$ac_prog"
 
3975
      ;;
 
3976
  "")
 
3977
    # If it fails, then pretend we aren't using GCC.
 
3978
    ac_prog=ld
 
3979
    ;;
 
3980
  *)
 
3981
    # If it is relative, then search for the first ld in PATH.
 
3982
    with_gnu_ld=unknown
 
3983
    ;;
 
3984
  esac
 
3985
elif test "$with_gnu_ld" = yes; then
 
3986
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3987
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
3988
else
 
3989
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3990
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
3991
fi
 
3992
if test "${lt_cv_path_LD+set}" = set; then
 
3993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3994
else
 
3995
  if test -z "$LD"; then
 
3996
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3997
  for ac_dir in $PATH; do
 
3998
    IFS="$lt_save_ifs"
 
3999
    test -z "$ac_dir" && ac_dir=.
 
4000
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4001
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4002
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4003
      # but apparently some variants of GNU ld only accept -v.
 
4004
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4005
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4006
      *GNU* | *'with BFD'*)
 
4007
        test "$with_gnu_ld" != no && break
 
4008
        ;;
 
4009
      *)
 
4010
        test "$with_gnu_ld" != yes && break
 
4011
        ;;
 
4012
      esac
 
4013
    fi
 
4014
  done
 
4015
  IFS="$lt_save_ifs"
 
4016
else
 
4017
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4018
fi
 
4019
fi
 
4020
 
 
4021
LD="$lt_cv_path_LD"
 
4022
if test -n "$LD"; then
 
4023
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4024
echo "${ECHO_T}$LD" >&6; }
 
4025
else
 
4026
  { echo "$as_me:$LINENO: result: no" >&5
 
4027
echo "${ECHO_T}no" >&6; }
 
4028
fi
 
4029
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4030
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4031
   { (exit 1); exit 1; }; }
 
4032
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4033
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4034
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4036
else
 
4037
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4038
case `$LD -v 2>&1 </dev/null` in
 
4039
*GNU* | *'with BFD'*)
 
4040
  lt_cv_prog_gnu_ld=yes
 
4041
  ;;
 
4042
*)
 
4043
  lt_cv_prog_gnu_ld=no
 
4044
  ;;
 
4045
esac
 
4046
fi
 
4047
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4048
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4049
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4050
 
 
4051
 
 
4052
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4053
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4054
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4056
else
 
4057
  lt_cv_ld_reload_flag='-r'
 
4058
fi
 
4059
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4060
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4061
reload_flag=$lt_cv_ld_reload_flag
 
4062
case $reload_flag in
 
4063
"" | " "*) ;;
 
4064
*) reload_flag=" $reload_flag" ;;
 
4065
esac
 
4066
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4067
case $host_os in
 
4068
  darwin*)
 
4069
    if test "$GCC" = yes; then
 
4070
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4071
    else
 
4072
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4073
    fi
 
4074
    ;;
 
4075
esac
 
4076
 
 
4077
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4078
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4079
if test "${lt_cv_path_NM+set}" = set; then
 
4080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4081
else
 
4082
  if test -n "$NM"; then
 
4083
  # Let the user override the test.
 
4084
  lt_cv_path_NM="$NM"
 
4085
else
 
4086
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4087
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4088
    lt_nm_to_check="$lt_nm_to_check nm"
 
4089
  fi
 
4090
  for lt_tmp_nm in $lt_nm_to_check; do
 
4091
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4092
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4093
      IFS="$lt_save_ifs"
 
4094
      test -z "$ac_dir" && ac_dir=.
 
4095
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4096
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4097
        # Check to see if the nm accepts a BSD-compat flag.
 
4098
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4099
        #   nm: unknown option "B" ignored
 
4100
        # Tru64's nm complains that /dev/null is an invalid object file
 
4101
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4102
        */dev/null* | *'Invalid file or object type'*)
 
4103
          lt_cv_path_NM="$tmp_nm -B"
 
4104
          break
 
4105
          ;;
 
4106
        *)
 
4107
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4108
          */dev/null*)
 
4109
            lt_cv_path_NM="$tmp_nm -p"
 
4110
            break
 
4111
            ;;
 
4112
          *)
 
4113
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4114
            continue # so that we can try to find one that supports BSD flags
 
4115
            ;;
 
4116
          esac
 
4117
          ;;
 
4118
        esac
 
4119
      fi
 
4120
    done
 
4121
    IFS="$lt_save_ifs"
 
4122
  done
 
4123
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4124
fi
 
4125
fi
 
4126
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4127
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4128
NM="$lt_cv_path_NM"
 
4129
 
 
4130
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4131
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4132
LN_S=$as_ln_s
 
4133
if test "$LN_S" = "ln -s"; then
 
4134
  { echo "$as_me:$LINENO: result: yes" >&5
 
4135
echo "${ECHO_T}yes" >&6; }
 
4136
else
 
4137
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4138
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4139
fi
 
4140
 
 
4141
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4142
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4143
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4145
else
 
4146
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4147
lt_cv_file_magic_test_file=
 
4148
lt_cv_deplibs_check_method='unknown'
 
4149
# Need to set the preceding variable on all platforms that support
 
4150
# interlibrary dependencies.
 
4151
# 'none' -- dependencies not supported.
 
4152
# `unknown' -- same as none, but documents that we really don't know.
 
4153
# 'pass_all' -- all dependencies passed with no checks.
 
4154
# 'test_compile' -- check by making test program.
 
4155
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4156
# which responds to the $file_magic_cmd with a given extended regex.
 
4157
# If you have `file' or equivalent on your system and you're not sure
 
4158
# whether `pass_all' will *always* work, you probably want this one.
 
4159
 
 
4160
case $host_os in
 
4161
aix4* | aix5*)
 
4162
  lt_cv_deplibs_check_method=pass_all
 
4163
  ;;
 
4164
 
 
4165
beos*)
 
4166
  lt_cv_deplibs_check_method=pass_all
 
4167
  ;;
 
4168
 
 
4169
bsdi[45]*)
 
4170
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4171
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4172
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4173
  ;;
 
4174
 
 
4175
cygwin*)
 
4176
  # func_win32_libid is a shell function defined in ltmain.sh
 
4177
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4178
  lt_cv_file_magic_cmd='func_win32_libid'
 
4179
  ;;
 
4180
 
 
4181
mingw* | pw32*)
 
4182
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4183
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4184
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4185
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4186
  ;;
 
4187
 
 
4188
darwin* | rhapsody*)
 
4189
  lt_cv_deplibs_check_method=pass_all
 
4190
  ;;
 
4191
 
 
4192
freebsd* | dragonfly*)
 
4193
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4194
    case $host_cpu in
 
4195
    i*86 )
 
4196
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4197
      # Let's accept both of them until this is cleared up.
 
4198
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4199
      lt_cv_file_magic_cmd=/usr/bin/file
 
4200
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4201
      ;;
 
4202
    esac
 
4203
  else
 
4204
    lt_cv_deplibs_check_method=pass_all
 
4205
  fi
 
4206
  ;;
 
4207
 
 
4208
gnu*)
 
4209
  lt_cv_deplibs_check_method=pass_all
 
4210
  ;;
 
4211
 
 
4212
hpux10.20* | hpux11*)
 
4213
  lt_cv_file_magic_cmd=/usr/bin/file
 
4214
  case $host_cpu in
 
4215
  ia64*)
 
4216
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4217
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4218
    ;;
 
4219
  hppa*64*)
 
4220
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4221
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4222
    ;;
 
4223
  *)
 
4224
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4225
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4226
    ;;
 
4227
  esac
 
4228
  ;;
 
4229
 
 
4230
interix3*)
 
4231
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4232
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4233
  ;;
 
4234
 
 
4235
irix5* | irix6* | nonstopux*)
 
4236
  case $LD in
 
4237
  *-32|*"-32 ") libmagic=32-bit;;
 
4238
  *-n32|*"-n32 ") libmagic=N32;;
 
4239
  *-64|*"-64 ") libmagic=64-bit;;
 
4240
  *) libmagic=never-match;;
 
4241
  esac
 
4242
  lt_cv_deplibs_check_method=pass_all
 
4243
  ;;
 
4244
 
 
4245
# This must be Linux ELF.
 
4246
linux* | k*bsd*-gnu)
 
4247
  lt_cv_deplibs_check_method=pass_all
 
4248
  ;;
 
4249
 
 
4250
netbsd* | netbsdelf*-gnu)
 
4251
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4252
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4253
  else
 
4254
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4255
  fi
 
4256
  ;;
 
4257
 
 
4258
newos6*)
 
4259
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4260
  lt_cv_file_magic_cmd=/usr/bin/file
 
4261
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4262
  ;;
 
4263
 
 
4264
nto-qnx*)
 
4265
  lt_cv_deplibs_check_method=unknown
 
4266
  ;;
 
4267
 
 
4268
openbsd*)
 
4269
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4270
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4271
  else
 
4272
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4273
  fi
 
4274
  ;;
 
4275
 
 
4276
osf3* | osf4* | osf5*)
 
4277
  lt_cv_deplibs_check_method=pass_all
 
4278
  ;;
 
4279
 
 
4280
solaris*)
 
4281
  lt_cv_deplibs_check_method=pass_all
 
4282
  ;;
 
4283
 
 
4284
sysv4 | sysv4.3*)
 
4285
  case $host_vendor in
 
4286
  motorola)
 
4287
    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]'
 
4288
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4289
    ;;
 
4290
  ncr)
 
4291
    lt_cv_deplibs_check_method=pass_all
 
4292
    ;;
 
4293
  sequent)
 
4294
    lt_cv_file_magic_cmd='/bin/file'
 
4295
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4296
    ;;
 
4297
  sni)
 
4298
    lt_cv_file_magic_cmd='/bin/file'
 
4299
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4300
    lt_cv_file_magic_test_file=/lib/libc.so
 
4301
    ;;
 
4302
  siemens)
 
4303
    lt_cv_deplibs_check_method=pass_all
 
4304
    ;;
 
4305
  pc)
 
4306
    lt_cv_deplibs_check_method=pass_all
 
4307
    ;;
 
4308
  esac
 
4309
  ;;
 
4310
 
 
4311
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4312
  lt_cv_deplibs_check_method=pass_all
 
4313
  ;;
 
4314
esac
 
4315
 
 
4316
fi
 
4317
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4318
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4319
file_magic_cmd=$lt_cv_file_magic_cmd
 
4320
deplibs_check_method=$lt_cv_deplibs_check_method
 
4321
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4322
 
 
4323
 
 
4324
 
 
4325
 
 
4326
# If no C compiler was specified, use CC.
 
4327
LTCC=${LTCC-"$CC"}
 
4328
 
 
4329
# If no C compiler flags were specified, use CFLAGS.
 
4330
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4331
 
 
4332
# Allow CC to be a program name with arguments.
 
4333
compiler=$CC
 
4334
 
 
4335
 
 
4336
# Check whether --enable-libtool-lock was given.
 
4337
if test "${enable_libtool_lock+set}" = set; then
 
4338
  enableval=$enable_libtool_lock;
 
4339
fi
 
4340
 
 
4341
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4342
 
 
4343
# Some flags need to be propagated to the compiler or linker for good
 
4344
# libtool support.
 
4345
case $host in
 
4346
ia64-*-hpux*)
 
4347
  # Find out which ABI we are using.
 
4348
  echo 'int i;' > conftest.$ac_ext
 
4349
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4350
  (eval $ac_compile) 2>&5
 
4351
  ac_status=$?
 
4352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4353
  (exit $ac_status); }; then
 
4354
    case `/usr/bin/file conftest.$ac_objext` in
 
4355
    *ELF-32*)
 
4356
      HPUX_IA64_MODE="32"
 
4357
      ;;
 
4358
    *ELF-64*)
 
4359
      HPUX_IA64_MODE="64"
 
4360
      ;;
 
4361
    esac
 
4362
  fi
 
4363
  rm -rf conftest*
 
4364
  ;;
 
4365
*-*-irix6*)
 
4366
  # Find out which ABI we are using.
 
4367
  echo '#line 4367 "configure"' > conftest.$ac_ext
 
4368
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4369
  (eval $ac_compile) 2>&5
 
4370
  ac_status=$?
 
4371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4372
  (exit $ac_status); }; then
 
4373
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4374
    case `/usr/bin/file conftest.$ac_objext` in
 
4375
    *32-bit*)
 
4376
      LD="${LD-ld} -melf32bsmip"
 
4377
      ;;
 
4378
    *N32*)
 
4379
      LD="${LD-ld} -melf32bmipn32"
 
4380
      ;;
 
4381
    *64-bit*)
 
4382
      LD="${LD-ld} -melf64bmip"
 
4383
      ;;
 
4384
    esac
 
4385
   else
 
4386
    case `/usr/bin/file conftest.$ac_objext` in
 
4387
    *32-bit*)
 
4388
      LD="${LD-ld} -32"
 
4389
      ;;
 
4390
    *N32*)
 
4391
      LD="${LD-ld} -n32"
 
4392
      ;;
 
4393
    *64-bit*)
 
4394
      LD="${LD-ld} -64"
 
4395
      ;;
 
4396
    esac
 
4397
   fi
 
4398
  fi
 
4399
  rm -rf conftest*
 
4400
  ;;
 
4401
 
 
4402
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4403
  # Find out which ABI we are using.
 
4404
  echo 'int i;' > conftest.$ac_ext
 
4405
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4406
  (eval $ac_compile) 2>&5
 
4407
  ac_status=$?
 
4408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4409
  (exit $ac_status); }; then
 
4410
    case `/usr/bin/file conftest.o` in
 
4411
    *32-bit*)
 
4412
      case $host in
 
4413
        x86_64-*linux*)
 
4414
          LD="${LD-ld} -m elf_i386"
 
4415
          ;;
 
4416
        ppc64-*linux*|powerpc64-*linux*)
 
4417
          LD="${LD-ld} -m elf32ppclinux"
 
4418
          ;;
 
4419
        s390x-*linux*)
 
4420
          LD="${LD-ld} -m elf_s390"
 
4421
          ;;
 
4422
        sparc64-*linux*)
 
4423
          LD="${LD-ld} -m elf32_sparc"
 
4424
          ;;
 
4425
      esac
 
4426
      ;;
 
4427
    *64-bit*)
 
4428
      case $host in
 
4429
        x86_64-*linux*)
 
4430
          LD="${LD-ld} -m elf_x86_64"
 
4431
          ;;
 
4432
        ppc*-*linux*|powerpc*-*linux*)
 
4433
          LD="${LD-ld} -m elf64ppc"
 
4434
          ;;
 
4435
        s390*-*linux*)
 
4436
          LD="${LD-ld} -m elf64_s390"
 
4437
          ;;
 
4438
        sparc*-*linux*)
 
4439
          LD="${LD-ld} -m elf64_sparc"
 
4440
          ;;
 
4441
      esac
 
4442
      ;;
 
4443
    esac
 
4444
  fi
 
4445
  rm -rf conftest*
 
4446
  ;;
 
4447
 
 
4448
*-*-sco3.2v5*)
 
4449
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4450
  SAVE_CFLAGS="$CFLAGS"
 
4451
  CFLAGS="$CFLAGS -belf"
 
4452
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4453
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4454
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4456
else
 
4457
  ac_ext=c
 
4458
ac_cpp='$CPP $CPPFLAGS'
 
4459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4462
 
 
4463
     cat >conftest.$ac_ext <<_ACEOF
 
4464
/* confdefs.h.  */
 
4465
_ACEOF
 
4466
cat confdefs.h >>conftest.$ac_ext
 
4467
cat >>conftest.$ac_ext <<_ACEOF
 
4468
/* end confdefs.h.  */
 
4469
 
 
4470
int
 
4471
main ()
 
4472
{
 
4473
 
 
4474
  ;
 
4475
  return 0;
 
4476
}
 
4477
_ACEOF
 
4478
rm -f conftest.$ac_objext conftest$ac_exeext
 
4479
if { (ac_try="$ac_link"
 
4480
case "(($ac_try" in
 
4481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4482
  *) ac_try_echo=$ac_try;;
 
4483
esac
 
4484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4485
  (eval "$ac_link") 2>conftest.er1
 
4486
  ac_status=$?
 
4487
  grep -v '^ *+' conftest.er1 >conftest.err
 
4488
  rm -f conftest.er1
 
4489
  cat conftest.err >&5
 
4490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4491
  (exit $ac_status); } && {
 
4492
         test -z "$ac_c_werror_flag" ||
 
4493
         test ! -s conftest.err
 
4494
       } && test -s conftest$ac_exeext &&
 
4495
       $as_test_x conftest$ac_exeext; then
 
4496
  lt_cv_cc_needs_belf=yes
 
4497
else
 
4498
  echo "$as_me: failed program was:" >&5
 
4499
sed 's/^/| /' conftest.$ac_ext >&5
 
4500
 
 
4501
        lt_cv_cc_needs_belf=no
 
4502
fi
 
4503
 
 
4504
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4505
      conftest$ac_exeext conftest.$ac_ext
 
4506
     ac_ext=c
 
4507
ac_cpp='$CPP $CPPFLAGS'
 
4508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4511
 
 
4512
fi
 
4513
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4514
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4515
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4516
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4517
    CFLAGS="$SAVE_CFLAGS"
 
4518
  fi
 
4519
  ;;
 
4520
sparc*-*solaris*)
 
4521
  # Find out which ABI we are using.
 
4522
  echo 'int i;' > conftest.$ac_ext
 
4523
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4524
  (eval $ac_compile) 2>&5
 
4525
  ac_status=$?
 
4526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4527
  (exit $ac_status); }; then
 
4528
    case `/usr/bin/file conftest.o` in
 
4529
    *64-bit*)
 
4530
      case $lt_cv_prog_gnu_ld in
 
4531
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4532
      *)    LD="${LD-ld} -64" ;;
 
4533
      esac
 
4534
      ;;
 
4535
    esac
 
4536
  fi
 
4537
  rm -rf conftest*
 
4538
  ;;
 
4539
 
 
4540
 
 
4541
esac
 
4542
 
 
4543
need_locks="$enable_libtool_lock"
 
4544
 
 
4545
 
 
4546
ac_ext=c
 
4547
ac_cpp='$CPP $CPPFLAGS'
 
4548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4551
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4552
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4553
# On Suns, sometimes $CPP names a directory.
 
4554
if test -n "$CPP" && test -d "$CPP"; then
 
4555
  CPP=
 
4556
fi
 
4557
if test -z "$CPP"; then
 
4558
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4560
else
 
4561
      # Double quotes because CPP needs to be expanded
 
4562
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4563
    do
 
4564
      ac_preproc_ok=false
 
4565
for ac_c_preproc_warn_flag in '' yes
 
4566
do
 
4567
  # Use a header file that comes with gcc, so configuring glibc
 
4568
  # with a fresh cross-compiler works.
 
4569
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4570
  # <limits.h> exists even on freestanding compilers.
 
4571
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4572
  # not just through cpp. "Syntax error" is here to catch this case.
 
4573
  cat >conftest.$ac_ext <<_ACEOF
 
4574
/* confdefs.h.  */
 
4575
_ACEOF
 
4576
cat confdefs.h >>conftest.$ac_ext
 
4577
cat >>conftest.$ac_ext <<_ACEOF
 
4578
/* end confdefs.h.  */
 
4579
#ifdef __STDC__
 
4580
# include <limits.h>
 
4581
#else
 
4582
# include <assert.h>
 
4583
#endif
 
4584
                     Syntax error
 
4585
_ACEOF
 
4586
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4587
case "(($ac_try" in
 
4588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4589
  *) ac_try_echo=$ac_try;;
 
4590
esac
 
4591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4592
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4593
  ac_status=$?
 
4594
  grep -v '^ *+' conftest.er1 >conftest.err
 
4595
  rm -f conftest.er1
 
4596
  cat conftest.err >&5
 
4597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4598
  (exit $ac_status); } >/dev/null && {
 
4599
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4600
         test ! -s conftest.err
 
4601
       }; then
 
4602
  :
 
4603
else
 
4604
  echo "$as_me: failed program was:" >&5
 
4605
sed 's/^/| /' conftest.$ac_ext >&5
 
4606
 
 
4607
  # Broken: fails on valid input.
 
4608
continue
 
4609
fi
 
4610
 
 
4611
rm -f conftest.err conftest.$ac_ext
 
4612
 
 
4613
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4614
  # can be detected and how.
 
4615
  cat >conftest.$ac_ext <<_ACEOF
 
4616
/* confdefs.h.  */
 
4617
_ACEOF
 
4618
cat confdefs.h >>conftest.$ac_ext
 
4619
cat >>conftest.$ac_ext <<_ACEOF
 
4620
/* end confdefs.h.  */
 
4621
#include <ac_nonexistent.h>
 
4622
_ACEOF
 
4623
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4624
case "(($ac_try" in
 
4625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4626
  *) ac_try_echo=$ac_try;;
 
4627
esac
 
4628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4629
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4630
  ac_status=$?
 
4631
  grep -v '^ *+' conftest.er1 >conftest.err
 
4632
  rm -f conftest.er1
 
4633
  cat conftest.err >&5
 
4634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4635
  (exit $ac_status); } >/dev/null && {
 
4636
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4637
         test ! -s conftest.err
 
4638
       }; then
 
4639
  # Broken: success on invalid input.
 
4640
continue
 
4641
else
 
4642
  echo "$as_me: failed program was:" >&5
 
4643
sed 's/^/| /' conftest.$ac_ext >&5
 
4644
 
 
4645
  # Passes both tests.
 
4646
ac_preproc_ok=:
 
4647
break
 
4648
fi
 
4649
 
 
4650
rm -f conftest.err conftest.$ac_ext
 
4651
 
 
4652
done
 
4653
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4654
rm -f conftest.err conftest.$ac_ext
 
4655
if $ac_preproc_ok; then
 
4656
  break
 
4657
fi
 
4658
 
 
4659
    done
 
4660
    ac_cv_prog_CPP=$CPP
 
4661
 
 
4662
fi
 
4663
  CPP=$ac_cv_prog_CPP
 
4664
else
 
4665
  ac_cv_prog_CPP=$CPP
 
4666
fi
 
4667
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4668
echo "${ECHO_T}$CPP" >&6; }
 
4669
ac_preproc_ok=false
 
4670
for ac_c_preproc_warn_flag in '' yes
 
4671
do
 
4672
  # Use a header file that comes with gcc, so configuring glibc
 
4673
  # with a fresh cross-compiler works.
 
4674
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4675
  # <limits.h> exists even on freestanding compilers.
 
4676
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4677
  # not just through cpp. "Syntax error" is here to catch this case.
 
4678
  cat >conftest.$ac_ext <<_ACEOF
 
4679
/* confdefs.h.  */
 
4680
_ACEOF
 
4681
cat confdefs.h >>conftest.$ac_ext
 
4682
cat >>conftest.$ac_ext <<_ACEOF
 
4683
/* end confdefs.h.  */
 
4684
#ifdef __STDC__
 
4685
# include <limits.h>
 
4686
#else
 
4687
# include <assert.h>
 
4688
#endif
 
4689
                     Syntax error
 
4690
_ACEOF
 
4691
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4692
case "(($ac_try" in
 
4693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4694
  *) ac_try_echo=$ac_try;;
 
4695
esac
 
4696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4697
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4698
  ac_status=$?
 
4699
  grep -v '^ *+' conftest.er1 >conftest.err
 
4700
  rm -f conftest.er1
 
4701
  cat conftest.err >&5
 
4702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4703
  (exit $ac_status); } >/dev/null && {
 
4704
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4705
         test ! -s conftest.err
 
4706
       }; then
 
4707
  :
 
4708
else
 
4709
  echo "$as_me: failed program was:" >&5
 
4710
sed 's/^/| /' conftest.$ac_ext >&5
 
4711
 
 
4712
  # Broken: fails on valid input.
 
4713
continue
 
4714
fi
 
4715
 
 
4716
rm -f conftest.err conftest.$ac_ext
 
4717
 
 
4718
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4719
  # can be detected and how.
 
4720
  cat >conftest.$ac_ext <<_ACEOF
 
4721
/* confdefs.h.  */
 
4722
_ACEOF
 
4723
cat confdefs.h >>conftest.$ac_ext
 
4724
cat >>conftest.$ac_ext <<_ACEOF
 
4725
/* end confdefs.h.  */
 
4726
#include <ac_nonexistent.h>
 
4727
_ACEOF
 
4728
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4729
case "(($ac_try" in
 
4730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4731
  *) ac_try_echo=$ac_try;;
 
4732
esac
 
4733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4734
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4735
  ac_status=$?
 
4736
  grep -v '^ *+' conftest.er1 >conftest.err
 
4737
  rm -f conftest.er1
 
4738
  cat conftest.err >&5
 
4739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4740
  (exit $ac_status); } >/dev/null && {
 
4741
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4742
         test ! -s conftest.err
 
4743
       }; then
 
4744
  # Broken: success on invalid input.
 
4745
continue
 
4746
else
 
4747
  echo "$as_me: failed program was:" >&5
 
4748
sed 's/^/| /' conftest.$ac_ext >&5
 
4749
 
 
4750
  # Passes both tests.
 
4751
ac_preproc_ok=:
 
4752
break
 
4753
fi
 
4754
 
 
4755
rm -f conftest.err conftest.$ac_ext
 
4756
 
 
4757
done
 
4758
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4759
rm -f conftest.err conftest.$ac_ext
 
4760
if $ac_preproc_ok; then
 
4761
  :
 
4762
else
 
4763
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4764
See \`config.log' for more details." >&5
 
4765
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4766
See \`config.log' for more details." >&2;}
 
4767
   { (exit 1); exit 1; }; }
 
4768
fi
 
4769
 
 
4770
ac_ext=c
 
4771
ac_cpp='$CPP $CPPFLAGS'
 
4772
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4773
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4774
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4775
 
 
4776
 
 
4777
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4778
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4779
if test "${ac_cv_header_stdc+set}" = set; then
 
4780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4781
else
 
4782
  cat >conftest.$ac_ext <<_ACEOF
 
4783
/* confdefs.h.  */
 
4784
_ACEOF
 
4785
cat confdefs.h >>conftest.$ac_ext
 
4786
cat >>conftest.$ac_ext <<_ACEOF
 
4787
/* end confdefs.h.  */
 
4788
#include <stdlib.h>
 
4789
#include <stdarg.h>
 
4790
#include <string.h>
 
4791
#include <float.h>
 
4792
 
 
4793
int
 
4794
main ()
 
4795
{
 
4796
 
 
4797
  ;
 
4798
  return 0;
 
4799
}
 
4800
_ACEOF
 
4801
rm -f conftest.$ac_objext
 
4802
if { (ac_try="$ac_compile"
 
4803
case "(($ac_try" in
 
4804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4805
  *) ac_try_echo=$ac_try;;
 
4806
esac
 
4807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4808
  (eval "$ac_compile") 2>conftest.er1
 
4809
  ac_status=$?
 
4810
  grep -v '^ *+' conftest.er1 >conftest.err
 
4811
  rm -f conftest.er1
 
4812
  cat conftest.err >&5
 
4813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4814
  (exit $ac_status); } && {
 
4815
         test -z "$ac_c_werror_flag" ||
 
4816
         test ! -s conftest.err
 
4817
       } && test -s conftest.$ac_objext; then
 
4818
  ac_cv_header_stdc=yes
 
4819
else
 
4820
  echo "$as_me: failed program was:" >&5
 
4821
sed 's/^/| /' conftest.$ac_ext >&5
 
4822
 
 
4823
        ac_cv_header_stdc=no
 
4824
fi
 
4825
 
 
4826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4827
 
 
4828
if test $ac_cv_header_stdc = yes; then
 
4829
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4830
  cat >conftest.$ac_ext <<_ACEOF
 
4831
/* confdefs.h.  */
 
4832
_ACEOF
 
4833
cat confdefs.h >>conftest.$ac_ext
 
4834
cat >>conftest.$ac_ext <<_ACEOF
 
4835
/* end confdefs.h.  */
 
4836
#include <string.h>
 
4837
 
 
4838
_ACEOF
 
4839
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4840
  $EGREP "memchr" >/dev/null 2>&1; then
 
4841
  :
 
4842
else
 
4843
  ac_cv_header_stdc=no
 
4844
fi
 
4845
rm -f conftest*
 
4846
 
 
4847
fi
 
4848
 
 
4849
if test $ac_cv_header_stdc = yes; then
 
4850
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4851
  cat >conftest.$ac_ext <<_ACEOF
 
4852
/* confdefs.h.  */
 
4853
_ACEOF
 
4854
cat confdefs.h >>conftest.$ac_ext
 
4855
cat >>conftest.$ac_ext <<_ACEOF
 
4856
/* end confdefs.h.  */
 
4857
#include <stdlib.h>
 
4858
 
 
4859
_ACEOF
 
4860
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4861
  $EGREP "free" >/dev/null 2>&1; then
 
4862
  :
 
4863
else
 
4864
  ac_cv_header_stdc=no
 
4865
fi
 
4866
rm -f conftest*
 
4867
 
 
4868
fi
 
4869
 
 
4870
if test $ac_cv_header_stdc = yes; then
 
4871
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4872
  if test "$cross_compiling" = yes; then
 
4873
  :
 
4874
else
 
4875
  cat >conftest.$ac_ext <<_ACEOF
 
4876
/* confdefs.h.  */
 
4877
_ACEOF
 
4878
cat confdefs.h >>conftest.$ac_ext
 
4879
cat >>conftest.$ac_ext <<_ACEOF
 
4880
/* end confdefs.h.  */
 
4881
#include <ctype.h>
 
4882
#include <stdlib.h>
 
4883
#if ((' ' & 0x0FF) == 0x020)
 
4884
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4885
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4886
#else
 
4887
# define ISLOWER(c) \
 
4888
                   (('a' <= (c) && (c) <= 'i') \
 
4889
                     || ('j' <= (c) && (c) <= 'r') \
 
4890
                     || ('s' <= (c) && (c) <= 'z'))
 
4891
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4892
#endif
 
4893
 
 
4894
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4895
int
 
4896
main ()
 
4897
{
 
4898
  int i;
 
4899
  for (i = 0; i < 256; i++)
 
4900
    if (XOR (islower (i), ISLOWER (i))
 
4901
        || toupper (i) != TOUPPER (i))
 
4902
      return 2;
 
4903
  return 0;
 
4904
}
 
4905
_ACEOF
 
4906
rm -f conftest$ac_exeext
 
4907
if { (ac_try="$ac_link"
 
4908
case "(($ac_try" in
 
4909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4910
  *) ac_try_echo=$ac_try;;
 
4911
esac
 
4912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4913
  (eval "$ac_link") 2>&5
 
4914
  ac_status=$?
 
4915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4916
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4917
  { (case "(($ac_try" in
 
4918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4919
  *) ac_try_echo=$ac_try;;
 
4920
esac
 
4921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4922
  (eval "$ac_try") 2>&5
 
4923
  ac_status=$?
 
4924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4925
  (exit $ac_status); }; }; then
 
4926
  :
 
4927
else
 
4928
  echo "$as_me: program exited with status $ac_status" >&5
 
4929
echo "$as_me: failed program was:" >&5
 
4930
sed 's/^/| /' conftest.$ac_ext >&5
 
4931
 
 
4932
( exit $ac_status )
 
4933
ac_cv_header_stdc=no
 
4934
fi
 
4935
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4936
fi
 
4937
 
 
4938
 
 
4939
fi
 
4940
fi
 
4941
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4942
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4943
if test $ac_cv_header_stdc = yes; then
 
4944
 
 
4945
cat >>confdefs.h <<\_ACEOF
 
4946
#define STDC_HEADERS 1
 
4947
_ACEOF
 
4948
 
 
4949
fi
 
4950
 
 
4951
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4952
 
 
4953
 
 
4954
 
 
4955
 
 
4956
 
 
4957
 
 
4958
 
 
4959
 
 
4960
 
 
4961
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4962
                  inttypes.h stdint.h unistd.h
 
4963
do
 
4964
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4965
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4966
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4967
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4969
else
 
4970
  cat >conftest.$ac_ext <<_ACEOF
 
4971
/* confdefs.h.  */
 
4972
_ACEOF
 
4973
cat confdefs.h >>conftest.$ac_ext
 
4974
cat >>conftest.$ac_ext <<_ACEOF
 
4975
/* end confdefs.h.  */
 
4976
$ac_includes_default
 
4977
 
 
4978
#include <$ac_header>
 
4979
_ACEOF
 
4980
rm -f conftest.$ac_objext
 
4981
if { (ac_try="$ac_compile"
 
4982
case "(($ac_try" in
 
4983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4984
  *) ac_try_echo=$ac_try;;
 
4985
esac
 
4986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4987
  (eval "$ac_compile") 2>conftest.er1
 
4988
  ac_status=$?
 
4989
  grep -v '^ *+' conftest.er1 >conftest.err
 
4990
  rm -f conftest.er1
 
4991
  cat conftest.err >&5
 
4992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4993
  (exit $ac_status); } && {
 
4994
         test -z "$ac_c_werror_flag" ||
 
4995
         test ! -s conftest.err
 
4996
       } && test -s conftest.$ac_objext; then
 
4997
  eval "$as_ac_Header=yes"
 
4998
else
 
4999
  echo "$as_me: failed program was:" >&5
 
5000
sed 's/^/| /' conftest.$ac_ext >&5
 
5001
 
 
5002
        eval "$as_ac_Header=no"
 
5003
fi
 
5004
 
 
5005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5006
fi
 
5007
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5008
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5009
echo "${ECHO_T}$ac_res" >&6; }
 
5010
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5011
  cat >>confdefs.h <<_ACEOF
 
5012
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5013
_ACEOF
 
5014
 
 
5015
fi
 
5016
 
 
5017
done
 
5018
 
 
5019
 
 
5020
 
 
5021
for ac_header in dlfcn.h
 
5022
do
 
5023
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5024
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5025
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5026
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5027
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5029
fi
 
5030
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5031
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5032
echo "${ECHO_T}$ac_res" >&6; }
 
5033
else
 
5034
  # Is the header compilable?
 
5035
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5036
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5037
cat >conftest.$ac_ext <<_ACEOF
 
5038
/* confdefs.h.  */
 
5039
_ACEOF
 
5040
cat confdefs.h >>conftest.$ac_ext
 
5041
cat >>conftest.$ac_ext <<_ACEOF
 
5042
/* end confdefs.h.  */
 
5043
$ac_includes_default
 
5044
#include <$ac_header>
 
5045
_ACEOF
 
5046
rm -f conftest.$ac_objext
 
5047
if { (ac_try="$ac_compile"
 
5048
case "(($ac_try" in
 
5049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5050
  *) ac_try_echo=$ac_try;;
 
5051
esac
 
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5053
  (eval "$ac_compile") 2>conftest.er1
 
5054
  ac_status=$?
 
5055
  grep -v '^ *+' conftest.er1 >conftest.err
 
5056
  rm -f conftest.er1
 
5057
  cat conftest.err >&5
 
5058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5059
  (exit $ac_status); } && {
 
5060
         test -z "$ac_c_werror_flag" ||
 
5061
         test ! -s conftest.err
 
5062
       } && test -s conftest.$ac_objext; then
 
5063
  ac_header_compiler=yes
 
5064
else
 
5065
  echo "$as_me: failed program was:" >&5
 
5066
sed 's/^/| /' conftest.$ac_ext >&5
 
5067
 
 
5068
        ac_header_compiler=no
 
5069
fi
 
5070
 
 
5071
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5072
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5073
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5074
 
 
5075
# Is the header present?
 
5076
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5077
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5078
cat >conftest.$ac_ext <<_ACEOF
 
5079
/* confdefs.h.  */
 
5080
_ACEOF
 
5081
cat confdefs.h >>conftest.$ac_ext
 
5082
cat >>conftest.$ac_ext <<_ACEOF
 
5083
/* end confdefs.h.  */
 
5084
#include <$ac_header>
 
5085
_ACEOF
 
5086
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5087
case "(($ac_try" in
 
5088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5089
  *) ac_try_echo=$ac_try;;
 
5090
esac
 
5091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5092
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5093
  ac_status=$?
 
5094
  grep -v '^ *+' conftest.er1 >conftest.err
 
5095
  rm -f conftest.er1
 
5096
  cat conftest.err >&5
 
5097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5098
  (exit $ac_status); } >/dev/null && {
 
5099
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5100
         test ! -s conftest.err
 
5101
       }; then
 
5102
  ac_header_preproc=yes
 
5103
else
 
5104
  echo "$as_me: failed program was:" >&5
 
5105
sed 's/^/| /' conftest.$ac_ext >&5
 
5106
 
 
5107
  ac_header_preproc=no
 
5108
fi
 
5109
 
 
5110
rm -f conftest.err conftest.$ac_ext
 
5111
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5112
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5113
 
 
5114
# So?  What about this header?
 
5115
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5116
  yes:no: )
 
5117
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5118
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5119
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5120
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5121
    ac_header_preproc=yes
 
5122
    ;;
 
5123
  no:yes:* )
 
5124
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5125
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5126
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5127
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5128
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5129
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5130
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5131
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5132
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5133
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5134
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5135
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5136
    ( cat <<\_ASBOX
 
5137
## ------------------- ##
 
5138
## Report this to NULL ##
 
5139
## ------------------- ##
 
5140
_ASBOX
 
5141
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5142
    ;;
 
5143
esac
 
5144
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5145
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5146
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5148
else
 
5149
  eval "$as_ac_Header=\$ac_header_preproc"
 
5150
fi
 
5151
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5152
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5153
echo "${ECHO_T}$ac_res" >&6; }
 
5154
 
 
5155
fi
 
5156
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5157
  cat >>confdefs.h <<_ACEOF
 
5158
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5159
_ACEOF
 
5160
 
 
5161
fi
 
5162
 
 
5163
done
 
5164
 
 
5165
ac_ext=cpp
 
5166
ac_cpp='$CXXCPP $CPPFLAGS'
 
5167
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5168
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5169
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5170
if test -z "$CXX"; then
 
5171
  if test -n "$CCC"; then
 
5172
    CXX=$CCC
 
5173
  else
 
5174
    if test -n "$ac_tool_prefix"; then
 
5175
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5176
  do
 
5177
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5178
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5179
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5181
if test "${ac_cv_prog_CXX+set}" = set; then
 
5182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5183
else
 
5184
  if test -n "$CXX"; then
 
5185
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5186
else
 
5187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5188
for as_dir in $PATH
 
5189
do
 
5190
  IFS=$as_save_IFS
 
5191
  test -z "$as_dir" && as_dir=.
 
5192
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5193
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5194
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5195
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5196
    break 2
 
5197
  fi
 
5198
done
 
5199
done
 
5200
IFS=$as_save_IFS
 
5201
 
 
5202
fi
 
5203
fi
 
5204
CXX=$ac_cv_prog_CXX
 
5205
if test -n "$CXX"; then
 
5206
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5207
echo "${ECHO_T}$CXX" >&6; }
 
5208
else
 
5209
  { echo "$as_me:$LINENO: result: no" >&5
 
5210
echo "${ECHO_T}no" >&6; }
 
5211
fi
 
5212
 
 
5213
 
 
5214
    test -n "$CXX" && break
 
5215
  done
 
5216
fi
 
5217
if test -z "$CXX"; then
 
5218
  ac_ct_CXX=$CXX
 
5219
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5220
do
 
5221
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5222
set dummy $ac_prog; ac_word=$2
 
5223
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5225
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5227
else
 
5228
  if test -n "$ac_ct_CXX"; then
 
5229
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5230
else
 
5231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5232
for as_dir in $PATH
 
5233
do
 
5234
  IFS=$as_save_IFS
 
5235
  test -z "$as_dir" && as_dir=.
 
5236
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5237
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5238
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5239
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5240
    break 2
 
5241
  fi
 
5242
done
 
5243
done
 
5244
IFS=$as_save_IFS
 
5245
 
 
5246
fi
 
5247
fi
 
5248
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5249
if test -n "$ac_ct_CXX"; then
 
5250
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5251
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5252
else
 
5253
  { echo "$as_me:$LINENO: result: no" >&5
 
5254
echo "${ECHO_T}no" >&6; }
 
5255
fi
 
5256
 
 
5257
 
 
5258
  test -n "$ac_ct_CXX" && break
 
5259
done
 
5260
 
 
5261
  if test "x$ac_ct_CXX" = x; then
 
5262
    CXX="g++"
 
5263
  else
 
5264
    case $cross_compiling:$ac_tool_warned in
 
5265
yes:)
 
5266
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5267
whose name does not start with the host triplet.  If you think this
 
5268
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5269
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5270
whose name does not start with the host triplet.  If you think this
 
5271
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5272
ac_tool_warned=yes ;;
 
5273
esac
 
5274
    CXX=$ac_ct_CXX
 
5275
  fi
 
5276
fi
 
5277
 
 
5278
  fi
 
5279
fi
 
5280
# Provide some information about the compiler.
 
5281
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5282
ac_compiler=`set X $ac_compile; echo $2`
 
5283
{ (ac_try="$ac_compiler --version >&5"
 
5284
case "(($ac_try" in
 
5285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5286
  *) ac_try_echo=$ac_try;;
 
5287
esac
 
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5289
  (eval "$ac_compiler --version >&5") 2>&5
 
5290
  ac_status=$?
 
5291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5292
  (exit $ac_status); }
 
5293
{ (ac_try="$ac_compiler -v >&5"
 
5294
case "(($ac_try" in
 
5295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5296
  *) ac_try_echo=$ac_try;;
 
5297
esac
 
5298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5299
  (eval "$ac_compiler -v >&5") 2>&5
 
5300
  ac_status=$?
 
5301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5302
  (exit $ac_status); }
 
5303
{ (ac_try="$ac_compiler -V >&5"
 
5304
case "(($ac_try" in
 
5305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5306
  *) ac_try_echo=$ac_try;;
 
5307
esac
 
5308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5309
  (eval "$ac_compiler -V >&5") 2>&5
 
5310
  ac_status=$?
 
5311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5312
  (exit $ac_status); }
 
5313
 
 
5314
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5315
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5316
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5318
else
 
5319
  cat >conftest.$ac_ext <<_ACEOF
 
5320
/* confdefs.h.  */
 
5321
_ACEOF
 
5322
cat confdefs.h >>conftest.$ac_ext
 
5323
cat >>conftest.$ac_ext <<_ACEOF
 
5324
/* end confdefs.h.  */
 
5325
 
 
5326
int
 
5327
main ()
 
5328
{
 
5329
#ifndef __GNUC__
 
5330
       choke me
 
5331
#endif
 
5332
 
 
5333
  ;
 
5334
  return 0;
 
5335
}
 
5336
_ACEOF
 
5337
rm -f conftest.$ac_objext
 
5338
if { (ac_try="$ac_compile"
 
5339
case "(($ac_try" in
 
5340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5341
  *) ac_try_echo=$ac_try;;
 
5342
esac
 
5343
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5344
  (eval "$ac_compile") 2>conftest.er1
 
5345
  ac_status=$?
 
5346
  grep -v '^ *+' conftest.er1 >conftest.err
 
5347
  rm -f conftest.er1
 
5348
  cat conftest.err >&5
 
5349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5350
  (exit $ac_status); } && {
 
5351
         test -z "$ac_cxx_werror_flag" ||
 
5352
         test ! -s conftest.err
 
5353
       } && test -s conftest.$ac_objext; then
 
5354
  ac_compiler_gnu=yes
 
5355
else
 
5356
  echo "$as_me: failed program was:" >&5
 
5357
sed 's/^/| /' conftest.$ac_ext >&5
 
5358
 
 
5359
        ac_compiler_gnu=no
 
5360
fi
 
5361
 
 
5362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5363
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5364
 
 
5365
fi
 
5366
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5367
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5368
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5369
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5370
ac_save_CXXFLAGS=$CXXFLAGS
 
5371
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5372
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5373
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5375
else
 
5376
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5377
   ac_cxx_werror_flag=yes
 
5378
   ac_cv_prog_cxx_g=no
 
5379
   CXXFLAGS="-g"
 
5380
   cat >conftest.$ac_ext <<_ACEOF
 
5381
/* confdefs.h.  */
 
5382
_ACEOF
 
5383
cat confdefs.h >>conftest.$ac_ext
 
5384
cat >>conftest.$ac_ext <<_ACEOF
 
5385
/* end confdefs.h.  */
 
5386
 
 
5387
int
 
5388
main ()
 
5389
{
 
5390
 
 
5391
  ;
 
5392
  return 0;
 
5393
}
 
5394
_ACEOF
 
5395
rm -f conftest.$ac_objext
 
5396
if { (ac_try="$ac_compile"
 
5397
case "(($ac_try" in
 
5398
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5399
  *) ac_try_echo=$ac_try;;
 
5400
esac
 
5401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5402
  (eval "$ac_compile") 2>conftest.er1
 
5403
  ac_status=$?
 
5404
  grep -v '^ *+' conftest.er1 >conftest.err
 
5405
  rm -f conftest.er1
 
5406
  cat conftest.err >&5
 
5407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5408
  (exit $ac_status); } && {
 
5409
         test -z "$ac_cxx_werror_flag" ||
 
5410
         test ! -s conftest.err
 
5411
       } && test -s conftest.$ac_objext; then
 
5412
  ac_cv_prog_cxx_g=yes
 
5413
else
 
5414
  echo "$as_me: failed program was:" >&5
 
5415
sed 's/^/| /' conftest.$ac_ext >&5
 
5416
 
 
5417
        CXXFLAGS=""
 
5418
      cat >conftest.$ac_ext <<_ACEOF
 
5419
/* confdefs.h.  */
 
5420
_ACEOF
 
5421
cat confdefs.h >>conftest.$ac_ext
 
5422
cat >>conftest.$ac_ext <<_ACEOF
 
5423
/* end confdefs.h.  */
 
5424
 
 
5425
int
 
5426
main ()
 
5427
{
 
5428
 
 
5429
  ;
 
5430
  return 0;
 
5431
}
 
5432
_ACEOF
 
5433
rm -f conftest.$ac_objext
 
5434
if { (ac_try="$ac_compile"
 
5435
case "(($ac_try" in
 
5436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5437
  *) ac_try_echo=$ac_try;;
 
5438
esac
 
5439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5440
  (eval "$ac_compile") 2>conftest.er1
 
5441
  ac_status=$?
 
5442
  grep -v '^ *+' conftest.er1 >conftest.err
 
5443
  rm -f conftest.er1
 
5444
  cat conftest.err >&5
 
5445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5446
  (exit $ac_status); } && {
 
5447
         test -z "$ac_cxx_werror_flag" ||
 
5448
         test ! -s conftest.err
 
5449
       } && test -s conftest.$ac_objext; then
 
5450
  :
 
5451
else
 
5452
  echo "$as_me: failed program was:" >&5
 
5453
sed 's/^/| /' conftest.$ac_ext >&5
 
5454
 
 
5455
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5456
         CXXFLAGS="-g"
 
5457
         cat >conftest.$ac_ext <<_ACEOF
 
5458
/* confdefs.h.  */
 
5459
_ACEOF
 
5460
cat confdefs.h >>conftest.$ac_ext
 
5461
cat >>conftest.$ac_ext <<_ACEOF
 
5462
/* end confdefs.h.  */
 
5463
 
 
5464
int
 
5465
main ()
 
5466
{
 
5467
 
 
5468
  ;
 
5469
  return 0;
 
5470
}
 
5471
_ACEOF
 
5472
rm -f conftest.$ac_objext
 
5473
if { (ac_try="$ac_compile"
 
5474
case "(($ac_try" in
 
5475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5476
  *) ac_try_echo=$ac_try;;
 
5477
esac
 
5478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5479
  (eval "$ac_compile") 2>conftest.er1
 
5480
  ac_status=$?
 
5481
  grep -v '^ *+' conftest.er1 >conftest.err
 
5482
  rm -f conftest.er1
 
5483
  cat conftest.err >&5
 
5484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5485
  (exit $ac_status); } && {
 
5486
         test -z "$ac_cxx_werror_flag" ||
 
5487
         test ! -s conftest.err
 
5488
       } && test -s conftest.$ac_objext; then
 
5489
  ac_cv_prog_cxx_g=yes
 
5490
else
 
5491
  echo "$as_me: failed program was:" >&5
 
5492
sed 's/^/| /' conftest.$ac_ext >&5
 
5493
 
 
5494
 
 
5495
fi
 
5496
 
 
5497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5498
fi
 
5499
 
 
5500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5501
fi
 
5502
 
 
5503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5504
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5505
fi
 
5506
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5507
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5508
if test "$ac_test_CXXFLAGS" = set; then
 
5509
  CXXFLAGS=$ac_save_CXXFLAGS
 
5510
elif test $ac_cv_prog_cxx_g = yes; then
 
5511
  if test "$GXX" = yes; then
 
5512
    CXXFLAGS="-g -O2"
 
5513
  else
 
5514
    CXXFLAGS="-g"
 
5515
  fi
 
5516
else
 
5517
  if test "$GXX" = yes; then
 
5518
    CXXFLAGS="-O2"
 
5519
  else
 
5520
    CXXFLAGS=
 
5521
  fi
 
5522
fi
 
5523
ac_ext=cpp
 
5524
ac_cpp='$CXXCPP $CPPFLAGS'
 
5525
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5526
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5527
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5528
 
 
5529
depcc="$CXX"  am_compiler_list=
 
5530
 
 
5531
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5532
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5533
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5534
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5535
else
 
5536
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5537
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5538
  # making bogus files that we don't know about and never remove.  For
 
5539
  # instance it was reported that on HP-UX the gcc test will end up
 
5540
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5541
  # in D'.
 
5542
  mkdir conftest.dir
 
5543
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5544
  # using a relative directory.
 
5545
  cp "$am_depcomp" conftest.dir
 
5546
  cd conftest.dir
 
5547
  # We will build objects and dependencies in a subdirectory because
 
5548
  # it helps to detect inapplicable dependency modes.  For instance
 
5549
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5550
  # side effect of compilation, but ICC will put the dependencies in
 
5551
  # the current directory while Tru64 will put them in the object
 
5552
  # directory.
 
5553
  mkdir sub
 
5554
 
 
5555
  am_cv_CXX_dependencies_compiler_type=none
 
5556
  if test "$am_compiler_list" = ""; then
 
5557
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5558
  fi
 
5559
  for depmode in $am_compiler_list; do
 
5560
    # Setup a source with many dependencies, because some compilers
 
5561
    # like to wrap large dependency lists on column 80 (with \), and
 
5562
    # we should not choose a depcomp mode which is confused by this.
 
5563
    #
 
5564
    # We need to recreate these files for each test, as the compiler may
 
5565
    # overwrite some of them when testing with obscure command lines.
 
5566
    # This happens at least with the AIX C compiler.
 
5567
    : > sub/conftest.c
 
5568
    for i in 1 2 3 4 5 6; do
 
5569
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5570
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5571
      # Solaris 8's {/usr,}/bin/sh.
 
5572
      touch sub/conftst$i.h
 
5573
    done
 
5574
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5575
 
 
5576
    case $depmode in
 
5577
    nosideeffect)
 
5578
      # after this tag, mechanisms are not by side-effect, so they'll
 
5579
      # only be used when explicitly requested
 
5580
      if test "x$enable_dependency_tracking" = xyes; then
 
5581
        continue
 
5582
      else
 
5583
        break
 
5584
      fi
 
5585
      ;;
 
5586
    none) break ;;
 
5587
    esac
 
5588
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5589
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5590
    # handle `-M -o', and we need to detect this.
 
5591
    if depmode=$depmode \
 
5592
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5593
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5594
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5595
         >/dev/null 2>conftest.err &&
 
5596
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5597
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5598
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5599
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5600
      # icc doesn't choke on unknown options, it will just issue warnings
 
5601
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5602
      # that says an option was ignored or not supported.
 
5603
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5604
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5605
      # The diagnosis changed in icc 8.0:
 
5606
      #   icc: Command line remark: option '-MP' not supported
 
5607
      if (grep 'ignoring option' conftest.err ||
 
5608
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5609
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5610
        break
 
5611
      fi
 
5612
    fi
 
5613
  done
 
5614
 
 
5615
  cd ..
 
5616
  rm -rf conftest.dir
 
5617
else
 
5618
  am_cv_CXX_dependencies_compiler_type=none
 
5619
fi
 
5620
 
 
5621
fi
 
5622
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5623
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5624
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5625
 
 
5626
 if
 
5627
  test "x$enable_dependency_tracking" != xno \
 
5628
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5629
  am__fastdepCXX_TRUE=
 
5630
  am__fastdepCXX_FALSE='#'
 
5631
else
 
5632
  am__fastdepCXX_TRUE='#'
 
5633
  am__fastdepCXX_FALSE=
 
5634
fi
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5640
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5641
    (test "X$CXX" != "Xg++"))) ; then
 
5642
  ac_ext=cpp
 
5643
ac_cpp='$CXXCPP $CPPFLAGS'
 
5644
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5645
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5646
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5647
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5648
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5649
if test -z "$CXXCPP"; then
 
5650
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5652
else
 
5653
      # Double quotes because CXXCPP needs to be expanded
 
5654
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5655
    do
 
5656
      ac_preproc_ok=false
 
5657
for ac_cxx_preproc_warn_flag in '' yes
 
5658
do
 
5659
  # Use a header file that comes with gcc, so configuring glibc
 
5660
  # with a fresh cross-compiler works.
 
5661
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5662
  # <limits.h> exists even on freestanding compilers.
 
5663
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5664
  # not just through cpp. "Syntax error" is here to catch this case.
 
5665
  cat >conftest.$ac_ext <<_ACEOF
 
5666
/* confdefs.h.  */
 
5667
_ACEOF
 
5668
cat confdefs.h >>conftest.$ac_ext
 
5669
cat >>conftest.$ac_ext <<_ACEOF
 
5670
/* end confdefs.h.  */
 
5671
#ifdef __STDC__
 
5672
# include <limits.h>
 
5673
#else
 
5674
# include <assert.h>
 
5675
#endif
 
5676
                     Syntax error
 
5677
_ACEOF
 
5678
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5679
case "(($ac_try" in
 
5680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5681
  *) ac_try_echo=$ac_try;;
 
5682
esac
 
5683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5684
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5685
  ac_status=$?
 
5686
  grep -v '^ *+' conftest.er1 >conftest.err
 
5687
  rm -f conftest.er1
 
5688
  cat conftest.err >&5
 
5689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5690
  (exit $ac_status); } >/dev/null && {
 
5691
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5692
         test ! -s conftest.err
 
5693
       }; then
 
5694
  :
 
5695
else
 
5696
  echo "$as_me: failed program was:" >&5
 
5697
sed 's/^/| /' conftest.$ac_ext >&5
 
5698
 
 
5699
  # Broken: fails on valid input.
 
5700
continue
 
5701
fi
 
5702
 
 
5703
rm -f conftest.err conftest.$ac_ext
 
5704
 
 
5705
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5706
  # can be detected and how.
 
5707
  cat >conftest.$ac_ext <<_ACEOF
 
5708
/* confdefs.h.  */
 
5709
_ACEOF
 
5710
cat confdefs.h >>conftest.$ac_ext
 
5711
cat >>conftest.$ac_ext <<_ACEOF
 
5712
/* end confdefs.h.  */
 
5713
#include <ac_nonexistent.h>
 
5714
_ACEOF
 
5715
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5716
case "(($ac_try" in
 
5717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5718
  *) ac_try_echo=$ac_try;;
 
5719
esac
 
5720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5721
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5722
  ac_status=$?
 
5723
  grep -v '^ *+' conftest.er1 >conftest.err
 
5724
  rm -f conftest.er1
 
5725
  cat conftest.err >&5
 
5726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5727
  (exit $ac_status); } >/dev/null && {
 
5728
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5729
         test ! -s conftest.err
 
5730
       }; then
 
5731
  # Broken: success on invalid input.
 
5732
continue
 
5733
else
 
5734
  echo "$as_me: failed program was:" >&5
 
5735
sed 's/^/| /' conftest.$ac_ext >&5
 
5736
 
 
5737
  # Passes both tests.
 
5738
ac_preproc_ok=:
 
5739
break
 
5740
fi
 
5741
 
 
5742
rm -f conftest.err conftest.$ac_ext
 
5743
 
 
5744
done
 
5745
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5746
rm -f conftest.err conftest.$ac_ext
 
5747
if $ac_preproc_ok; then
 
5748
  break
 
5749
fi
 
5750
 
 
5751
    done
 
5752
    ac_cv_prog_CXXCPP=$CXXCPP
 
5753
 
 
5754
fi
 
5755
  CXXCPP=$ac_cv_prog_CXXCPP
 
5756
else
 
5757
  ac_cv_prog_CXXCPP=$CXXCPP
 
5758
fi
 
5759
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5760
echo "${ECHO_T}$CXXCPP" >&6; }
 
5761
ac_preproc_ok=false
 
5762
for ac_cxx_preproc_warn_flag in '' yes
 
5763
do
 
5764
  # Use a header file that comes with gcc, so configuring glibc
 
5765
  # with a fresh cross-compiler works.
 
5766
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5767
  # <limits.h> exists even on freestanding compilers.
 
5768
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5769
  # not just through cpp. "Syntax error" is here to catch this case.
 
5770
  cat >conftest.$ac_ext <<_ACEOF
 
5771
/* confdefs.h.  */
 
5772
_ACEOF
 
5773
cat confdefs.h >>conftest.$ac_ext
 
5774
cat >>conftest.$ac_ext <<_ACEOF
 
5775
/* end confdefs.h.  */
 
5776
#ifdef __STDC__
 
5777
# include <limits.h>
 
5778
#else
 
5779
# include <assert.h>
 
5780
#endif
 
5781
                     Syntax error
 
5782
_ACEOF
 
5783
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5784
case "(($ac_try" in
 
5785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5786
  *) ac_try_echo=$ac_try;;
 
5787
esac
 
5788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5789
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5790
  ac_status=$?
 
5791
  grep -v '^ *+' conftest.er1 >conftest.err
 
5792
  rm -f conftest.er1
 
5793
  cat conftest.err >&5
 
5794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5795
  (exit $ac_status); } >/dev/null && {
 
5796
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5797
         test ! -s conftest.err
 
5798
       }; then
 
5799
  :
 
5800
else
 
5801
  echo "$as_me: failed program was:" >&5
 
5802
sed 's/^/| /' conftest.$ac_ext >&5
 
5803
 
 
5804
  # Broken: fails on valid input.
 
5805
continue
 
5806
fi
 
5807
 
 
5808
rm -f conftest.err conftest.$ac_ext
 
5809
 
 
5810
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5811
  # can be detected and how.
 
5812
  cat >conftest.$ac_ext <<_ACEOF
 
5813
/* confdefs.h.  */
 
5814
_ACEOF
 
5815
cat confdefs.h >>conftest.$ac_ext
 
5816
cat >>conftest.$ac_ext <<_ACEOF
 
5817
/* end confdefs.h.  */
 
5818
#include <ac_nonexistent.h>
 
5819
_ACEOF
 
5820
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5821
case "(($ac_try" in
 
5822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5823
  *) ac_try_echo=$ac_try;;
 
5824
esac
 
5825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5826
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5827
  ac_status=$?
 
5828
  grep -v '^ *+' conftest.er1 >conftest.err
 
5829
  rm -f conftest.er1
 
5830
  cat conftest.err >&5
 
5831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5832
  (exit $ac_status); } >/dev/null && {
 
5833
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5834
         test ! -s conftest.err
 
5835
       }; then
 
5836
  # Broken: success on invalid input.
 
5837
continue
 
5838
else
 
5839
  echo "$as_me: failed program was:" >&5
 
5840
sed 's/^/| /' conftest.$ac_ext >&5
 
5841
 
 
5842
  # Passes both tests.
 
5843
ac_preproc_ok=:
 
5844
break
 
5845
fi
 
5846
 
 
5847
rm -f conftest.err conftest.$ac_ext
 
5848
 
 
5849
done
 
5850
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5851
rm -f conftest.err conftest.$ac_ext
 
5852
if $ac_preproc_ok; then
 
5853
  :
 
5854
else
 
5855
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5856
See \`config.log' for more details." >&5
 
5857
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5858
See \`config.log' for more details." >&2;}
 
5859
   { (exit 1); exit 1; }; }
 
5860
fi
 
5861
 
 
5862
ac_ext=cpp
 
5863
ac_cpp='$CXXCPP $CPPFLAGS'
 
5864
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5865
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5866
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5867
 
 
5868
fi
 
5869
 
 
5870
 
 
5871
ac_ext=f
 
5872
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5873
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5874
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5875
if test -n "$ac_tool_prefix"; then
 
5876
  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
 
5877
  do
 
5878
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5879
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5880
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5882
if test "${ac_cv_prog_F77+set}" = set; then
 
5883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5884
else
 
5885
  if test -n "$F77"; then
 
5886
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5887
else
 
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5889
for as_dir in $PATH
 
5890
do
 
5891
  IFS=$as_save_IFS
 
5892
  test -z "$as_dir" && as_dir=.
 
5893
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5895
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5896
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5897
    break 2
 
5898
  fi
 
5899
done
 
5900
done
 
5901
IFS=$as_save_IFS
 
5902
 
 
5903
fi
 
5904
fi
 
5905
F77=$ac_cv_prog_F77
 
5906
if test -n "$F77"; then
 
5907
  { echo "$as_me:$LINENO: result: $F77" >&5
 
5908
echo "${ECHO_T}$F77" >&6; }
 
5909
else
 
5910
  { echo "$as_me:$LINENO: result: no" >&5
 
5911
echo "${ECHO_T}no" >&6; }
 
5912
fi
 
5913
 
 
5914
 
 
5915
    test -n "$F77" && break
 
5916
  done
 
5917
fi
 
5918
if test -z "$F77"; then
 
5919
  ac_ct_F77=$F77
 
5920
  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
 
5921
do
 
5922
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5923
set dummy $ac_prog; ac_word=$2
 
5924
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5926
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5928
else
 
5929
  if test -n "$ac_ct_F77"; then
 
5930
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5931
else
 
5932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5933
for as_dir in $PATH
 
5934
do
 
5935
  IFS=$as_save_IFS
 
5936
  test -z "$as_dir" && as_dir=.
 
5937
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5938
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5939
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5940
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5941
    break 2
 
5942
  fi
 
5943
done
 
5944
done
 
5945
IFS=$as_save_IFS
 
5946
 
 
5947
fi
 
5948
fi
 
5949
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5950
if test -n "$ac_ct_F77"; then
 
5951
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5952
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
5953
else
 
5954
  { echo "$as_me:$LINENO: result: no" >&5
 
5955
echo "${ECHO_T}no" >&6; }
 
5956
fi
 
5957
 
 
5958
 
 
5959
  test -n "$ac_ct_F77" && break
 
5960
done
 
5961
 
 
5962
  if test "x$ac_ct_F77" = x; then
 
5963
    F77=""
 
5964
  else
 
5965
    case $cross_compiling:$ac_tool_warned in
 
5966
yes:)
 
5967
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5968
whose name does not start with the host triplet.  If you think this
 
5969
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5970
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5971
whose name does not start with the host triplet.  If you think this
 
5972
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5973
ac_tool_warned=yes ;;
 
5974
esac
 
5975
    F77=$ac_ct_F77
 
5976
  fi
 
5977
fi
 
5978
 
 
5979
 
 
5980
# Provide some information about the compiler.
 
5981
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
5982
ac_compiler=`set X $ac_compile; echo $2`
 
5983
{ (ac_try="$ac_compiler --version >&5"
 
5984
case "(($ac_try" in
 
5985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5986
  *) ac_try_echo=$ac_try;;
 
5987
esac
 
5988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5989
  (eval "$ac_compiler --version >&5") 2>&5
 
5990
  ac_status=$?
 
5991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5992
  (exit $ac_status); }
 
5993
{ (ac_try="$ac_compiler -v >&5"
 
5994
case "(($ac_try" in
 
5995
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5996
  *) ac_try_echo=$ac_try;;
 
5997
esac
 
5998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5999
  (eval "$ac_compiler -v >&5") 2>&5
 
6000
  ac_status=$?
 
6001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6002
  (exit $ac_status); }
 
6003
{ (ac_try="$ac_compiler -V >&5"
 
6004
case "(($ac_try" in
 
6005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6006
  *) ac_try_echo=$ac_try;;
 
6007
esac
 
6008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6009
  (eval "$ac_compiler -V >&5") 2>&5
 
6010
  ac_status=$?
 
6011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6012
  (exit $ac_status); }
 
6013
rm -f a.out
 
6014
 
 
6015
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6016
# input file.  (Note that this only needs to work for GNU compilers.)
 
6017
ac_save_ext=$ac_ext
 
6018
ac_ext=F
 
6019
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6020
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6021
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6023
else
 
6024
  cat >conftest.$ac_ext <<_ACEOF
 
6025
      program main
 
6026
#ifndef __GNUC__
 
6027
       choke me
 
6028
#endif
 
6029
 
 
6030
      end
 
6031
_ACEOF
 
6032
rm -f conftest.$ac_objext
 
6033
if { (ac_try="$ac_compile"
 
6034
case "(($ac_try" in
 
6035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6036
  *) ac_try_echo=$ac_try;;
 
6037
esac
 
6038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6039
  (eval "$ac_compile") 2>conftest.er1
 
6040
  ac_status=$?
 
6041
  grep -v '^ *+' conftest.er1 >conftest.err
 
6042
  rm -f conftest.er1
 
6043
  cat conftest.err >&5
 
6044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6045
  (exit $ac_status); } && {
 
6046
         test -z "$ac_f77_werror_flag" ||
 
6047
         test ! -s conftest.err
 
6048
       } && test -s conftest.$ac_objext; then
 
6049
  ac_compiler_gnu=yes
 
6050
else
 
6051
  echo "$as_me: failed program was:" >&5
 
6052
sed 's/^/| /' conftest.$ac_ext >&5
 
6053
 
 
6054
        ac_compiler_gnu=no
 
6055
fi
 
6056
 
 
6057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6058
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6059
 
 
6060
fi
 
6061
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6062
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6063
ac_ext=$ac_save_ext
 
6064
ac_test_FFLAGS=${FFLAGS+set}
 
6065
ac_save_FFLAGS=$FFLAGS
 
6066
FFLAGS=
 
6067
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6068
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6069
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6071
else
 
6072
  FFLAGS=-g
 
6073
cat >conftest.$ac_ext <<_ACEOF
 
6074
      program main
 
6075
 
 
6076
      end
 
6077
_ACEOF
 
6078
rm -f conftest.$ac_objext
 
6079
if { (ac_try="$ac_compile"
 
6080
case "(($ac_try" in
 
6081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6082
  *) ac_try_echo=$ac_try;;
 
6083
esac
 
6084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6085
  (eval "$ac_compile") 2>conftest.er1
 
6086
  ac_status=$?
 
6087
  grep -v '^ *+' conftest.er1 >conftest.err
 
6088
  rm -f conftest.er1
 
6089
  cat conftest.err >&5
 
6090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6091
  (exit $ac_status); } && {
 
6092
         test -z "$ac_f77_werror_flag" ||
 
6093
         test ! -s conftest.err
 
6094
       } && test -s conftest.$ac_objext; then
 
6095
  ac_cv_prog_f77_g=yes
 
6096
else
 
6097
  echo "$as_me: failed program was:" >&5
 
6098
sed 's/^/| /' conftest.$ac_ext >&5
 
6099
 
 
6100
        ac_cv_prog_f77_g=no
 
6101
fi
 
6102
 
 
6103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6104
 
 
6105
fi
 
6106
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6107
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6108
if test "$ac_test_FFLAGS" = set; then
 
6109
  FFLAGS=$ac_save_FFLAGS
 
6110
elif test $ac_cv_prog_f77_g = yes; then
 
6111
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6112
    FFLAGS="-g -O2"
 
6113
  else
 
6114
    FFLAGS="-g"
 
6115
  fi
 
6116
else
 
6117
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6118
    FFLAGS="-O2"
 
6119
  else
 
6120
    FFLAGS=
 
6121
  fi
 
6122
fi
 
6123
 
 
6124
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6125
ac_ext=c
 
6126
ac_cpp='$CPP $CPPFLAGS'
 
6127
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6128
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6129
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6130
 
 
6131
 
 
6132
 
 
6133
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6134
 
 
6135
# find the maximum length of command line arguments
 
6136
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6137
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6138
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6140
else
 
6141
    i=0
 
6142
  teststring="ABCD"
 
6143
 
 
6144
  case $build_os in
 
6145
  msdosdjgpp*)
 
6146
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6147
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6148
    # during glob expansion).  Even if it were fixed, the result of this
 
6149
    # check would be larger than it should be.
 
6150
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6151
    ;;
 
6152
 
 
6153
  gnu*)
 
6154
    # Under GNU Hurd, this test is not required because there is
 
6155
    # no limit to the length of command line arguments.
 
6156
    # Libtool will interpret -1 as no limit whatsoever
 
6157
    lt_cv_sys_max_cmd_len=-1;
 
6158
    ;;
 
6159
 
 
6160
  cygwin* | mingw*)
 
6161
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6162
    # about 5 minutes as the teststring grows exponentially.
 
6163
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6164
    # you end up with a "frozen" computer, even though with patience
 
6165
    # the test eventually succeeds (with a max line length of 256k).
 
6166
    # Instead, let's just punt: use the minimum linelength reported by
 
6167
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6168
    lt_cv_sys_max_cmd_len=8192;
 
6169
    ;;
 
6170
 
 
6171
  amigaos*)
 
6172
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6173
    # So we just punt and use a minimum line length of 8192.
 
6174
    lt_cv_sys_max_cmd_len=8192;
 
6175
    ;;
 
6176
 
 
6177
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6178
    # This has been around since 386BSD, at least.  Likely further.
 
6179
    if test -x /sbin/sysctl; then
 
6180
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6181
    elif test -x /usr/sbin/sysctl; then
 
6182
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6183
    else
 
6184
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6185
    fi
 
6186
    # And add a safety zone
 
6187
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6188
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6189
    ;;
 
6190
 
 
6191
  interix*)
 
6192
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6193
    lt_cv_sys_max_cmd_len=196608
 
6194
    ;;
 
6195
 
 
6196
  osf*)
 
6197
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6198
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6199
    # nice to cause kernel panics so lets avoid the loop below.
 
6200
    # First set a reasonable default.
 
6201
    lt_cv_sys_max_cmd_len=16384
 
6202
    #
 
6203
    if test -x /sbin/sysconfig; then
 
6204
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6205
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6206
      esac
 
6207
    fi
 
6208
    ;;
 
6209
  sco3.2v5*)
 
6210
    lt_cv_sys_max_cmd_len=102400
 
6211
    ;;
 
6212
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6213
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6214
    if test -n "$kargmax"; then
 
6215
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6216
    else
 
6217
      lt_cv_sys_max_cmd_len=32768
 
6218
    fi
 
6219
    ;;
 
6220
  *)
 
6221
    # If test is not a shell built-in, we'll probably end up computing a
 
6222
    # maximum length that is only half of the actual maximum length, but
 
6223
    # we can't tell.
 
6224
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6225
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6226
               = "XX$teststring") >/dev/null 2>&1 &&
 
6227
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6228
            lt_cv_sys_max_cmd_len=$new_result &&
 
6229
            test $i != 17 # 1/2 MB should be enough
 
6230
    do
 
6231
      i=`expr $i + 1`
 
6232
      teststring=$teststring$teststring
 
6233
    done
 
6234
    teststring=
 
6235
    # Add a significant safety factor because C++ compilers can tack on massive
 
6236
    # amounts of additional arguments before passing them to the linker.
 
6237
    # It appears as though 1/2 is a usable value.
 
6238
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6239
    ;;
 
6240
  esac
 
6241
 
 
6242
fi
 
6243
 
 
6244
if test -n $lt_cv_sys_max_cmd_len ; then
 
6245
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6246
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6247
else
 
6248
  { echo "$as_me:$LINENO: result: none" >&5
 
6249
echo "${ECHO_T}none" >&6; }
 
6250
fi
 
6251
 
 
6252
 
 
6253
 
 
6254
 
 
6255
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6256
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6257
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6258
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6260
else
 
6261
 
 
6262
# These are sane defaults that work on at least a few old systems.
 
6263
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6264
 
 
6265
# Character class describing NM global symbol codes.
 
6266
symcode='[BCDEGRST]'
 
6267
 
 
6268
# Regexp to match symbols that can be accessed directly from C.
 
6269
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6270
 
 
6271
# Transform an extracted symbol line into a proper C declaration
 
6272
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6273
 
 
6274
# Transform an extracted symbol line into symbol name and symbol address
 
6275
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'"
 
6276
 
 
6277
# Define system-specific variables.
 
6278
case $host_os in
 
6279
aix*)
 
6280
  symcode='[BCDT]'
 
6281
  ;;
 
6282
cygwin* | mingw* | pw32*)
 
6283
  symcode='[ABCDGISTW]'
 
6284
  ;;
 
6285
hpux*) # Its linker distinguishes data from code symbols
 
6286
  if test "$host_cpu" = ia64; then
 
6287
    symcode='[ABCDEGRST]'
 
6288
  fi
 
6289
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6290
  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'"
 
6291
  ;;
 
6292
linux* | k*bsd*-gnu)
 
6293
  if test "$host_cpu" = ia64; then
 
6294
    symcode='[ABCDGIRSTW]'
 
6295
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6296
    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'"
 
6297
  fi
 
6298
  ;;
 
6299
irix* | nonstopux*)
 
6300
  symcode='[BCDEGRST]'
 
6301
  ;;
 
6302
osf*)
 
6303
  symcode='[BCDEGQRST]'
 
6304
  ;;
 
6305
solaris*)
 
6306
  symcode='[BDRT]'
 
6307
  ;;
 
6308
sco3.2v5*)
 
6309
  symcode='[DT]'
 
6310
  ;;
 
6311
sysv4.2uw2*)
 
6312
  symcode='[DT]'
 
6313
  ;;
 
6314
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6315
  symcode='[ABDT]'
 
6316
  ;;
 
6317
sysv4)
 
6318
  symcode='[DFNSTU]'
 
6319
  ;;
 
6320
esac
 
6321
 
 
6322
# Handle CRLF in mingw tool chain
 
6323
opt_cr=
 
6324
case $build_os in
 
6325
mingw*)
 
6326
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6327
  ;;
 
6328
esac
 
6329
 
 
6330
# If we're using GNU nm, then use its standard symbol codes.
 
6331
case `$NM -V 2>&1` in
 
6332
*GNU* | *'with BFD'*)
 
6333
  symcode='[ABCDGIRSTW]' ;;
 
6334
esac
 
6335
 
 
6336
# Try without a prefix undercore, then with it.
 
6337
for ac_symprfx in "" "_"; do
 
6338
 
 
6339
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6340
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6341
 
 
6342
  # Write the raw and C identifiers.
 
6343
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6344
 
 
6345
  # Check to see that the pipe works correctly.
 
6346
  pipe_works=no
 
6347
 
 
6348
  rm -f conftest*
 
6349
  cat > conftest.$ac_ext <<EOF
 
6350
#ifdef __cplusplus
 
6351
extern "C" {
 
6352
#endif
 
6353
char nm_test_var;
 
6354
void nm_test_func(){}
 
6355
#ifdef __cplusplus
 
6356
}
 
6357
#endif
 
6358
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6359
EOF
 
6360
 
 
6361
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6362
  (eval $ac_compile) 2>&5
 
6363
  ac_status=$?
 
6364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6365
  (exit $ac_status); }; then
 
6366
    # Now try to grab the symbols.
 
6367
    nlist=conftest.nm
 
6368
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6369
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6370
  ac_status=$?
 
6371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6372
  (exit $ac_status); } && test -s "$nlist"; then
 
6373
      # Try sorting and uniquifying the output.
 
6374
      if sort "$nlist" | uniq > "$nlist"T; then
 
6375
        mv -f "$nlist"T "$nlist"
 
6376
      else
 
6377
        rm -f "$nlist"T
 
6378
      fi
 
6379
 
 
6380
      # Make sure that we snagged all the symbols we need.
 
6381
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6382
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6383
          cat <<EOF > conftest.$ac_ext
 
6384
#ifdef __cplusplus
 
6385
extern "C" {
 
6386
#endif
 
6387
 
 
6388
EOF
 
6389
          # Now generate the symbol file.
 
6390
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6391
 
 
6392
          cat <<EOF >> conftest.$ac_ext
 
6393
#if defined (__STDC__) && __STDC__
 
6394
# define lt_ptr_t void *
 
6395
#else
 
6396
# define lt_ptr_t char *
 
6397
# define const
 
6398
#endif
 
6399
 
 
6400
/* The mapping between symbol names and symbols. */
 
6401
const struct {
 
6402
  const char *name;
 
6403
  lt_ptr_t address;
 
6404
}
 
6405
lt_preloaded_symbols[] =
 
6406
{
 
6407
EOF
 
6408
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6409
          cat <<\EOF >> conftest.$ac_ext
 
6410
  {0, (lt_ptr_t) 0}
 
6411
};
 
6412
 
 
6413
#ifdef __cplusplus
 
6414
}
 
6415
#endif
 
6416
EOF
 
6417
          # Now try linking the two files.
 
6418
          mv conftest.$ac_objext conftstm.$ac_objext
 
6419
          lt_save_LIBS="$LIBS"
 
6420
          lt_save_CFLAGS="$CFLAGS"
 
6421
          LIBS="conftstm.$ac_objext"
 
6422
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6423
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6424
  (eval $ac_link) 2>&5
 
6425
  ac_status=$?
 
6426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6427
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6428
            pipe_works=yes
 
6429
          fi
 
6430
          LIBS="$lt_save_LIBS"
 
6431
          CFLAGS="$lt_save_CFLAGS"
 
6432
        else
 
6433
          echo "cannot find nm_test_func in $nlist" >&5
 
6434
        fi
 
6435
      else
 
6436
        echo "cannot find nm_test_var in $nlist" >&5
 
6437
      fi
 
6438
    else
 
6439
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6440
    fi
 
6441
  else
 
6442
    echo "$progname: failed program was:" >&5
 
6443
    cat conftest.$ac_ext >&5
 
6444
  fi
 
6445
  rm -f conftest* conftst*
 
6446
 
 
6447
  # Do not use the global_symbol_pipe unless it works.
 
6448
  if test "$pipe_works" = yes; then
 
6449
    break
 
6450
  else
 
6451
    lt_cv_sys_global_symbol_pipe=
 
6452
  fi
 
6453
done
 
6454
 
 
6455
fi
 
6456
 
 
6457
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6458
  lt_cv_sys_global_symbol_to_cdecl=
 
6459
fi
 
6460
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6461
  { echo "$as_me:$LINENO: result: failed" >&5
 
6462
echo "${ECHO_T}failed" >&6; }
 
6463
else
 
6464
  { echo "$as_me:$LINENO: result: ok" >&5
 
6465
echo "${ECHO_T}ok" >&6; }
 
6466
fi
 
6467
 
 
6468
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6469
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6470
if test "${lt_cv_objdir+set}" = set; then
 
6471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6472
else
 
6473
  rm -f .libs 2>/dev/null
 
6474
mkdir .libs 2>/dev/null
 
6475
if test -d .libs; then
 
6476
  lt_cv_objdir=.libs
 
6477
else
 
6478
  # MS-DOS does not allow filenames that begin with a dot.
 
6479
  lt_cv_objdir=_libs
 
6480
fi
 
6481
rmdir .libs 2>/dev/null
 
6482
fi
 
6483
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6484
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6485
objdir=$lt_cv_objdir
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
case $host_os in
 
6492
aix3*)
 
6493
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6494
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6495
  # vanish in a puff of smoke.
 
6496
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6497
    COLLECT_NAMES=
 
6498
    export COLLECT_NAMES
 
6499
  fi
 
6500
  ;;
 
6501
esac
 
6502
 
 
6503
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6504
# metacharacters that are still active within double-quoted strings.
 
6505
Xsed='sed -e 1s/^X//'
 
6506
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6507
 
 
6508
# Same as above, but do not quote variable references.
 
6509
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6510
 
 
6511
# Sed substitution to delay expansion of an escaped shell variable in a
 
6512
# double_quote_subst'ed string.
 
6513
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6514
 
 
6515
# Sed substitution to avoid accidental globbing in evaled expressions
 
6516
no_glob_subst='s/\*/\\\*/g'
 
6517
 
 
6518
# Constants:
 
6519
rm="rm -f"
 
6520
 
 
6521
# Global variables:
 
6522
default_ofile=libtool
 
6523
can_build_shared=yes
 
6524
 
 
6525
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6526
# which needs '.lib').
 
6527
libext=a
 
6528
ltmain="$ac_aux_dir/ltmain.sh"
 
6529
ofile="$default_ofile"
 
6530
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6531
 
 
6532
if test -n "$ac_tool_prefix"; then
 
6533
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6534
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6535
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6537
if test "${ac_cv_prog_AR+set}" = set; then
 
6538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6539
else
 
6540
  if test -n "$AR"; then
 
6541
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6542
else
 
6543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6544
for as_dir in $PATH
 
6545
do
 
6546
  IFS=$as_save_IFS
 
6547
  test -z "$as_dir" && as_dir=.
 
6548
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6549
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6550
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6551
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6552
    break 2
 
6553
  fi
 
6554
done
 
6555
done
 
6556
IFS=$as_save_IFS
 
6557
 
 
6558
fi
 
6559
fi
 
6560
AR=$ac_cv_prog_AR
 
6561
if test -n "$AR"; then
 
6562
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6563
echo "${ECHO_T}$AR" >&6; }
 
6564
else
 
6565
  { echo "$as_me:$LINENO: result: no" >&5
 
6566
echo "${ECHO_T}no" >&6; }
 
6567
fi
 
6568
 
 
6569
 
 
6570
fi
 
6571
if test -z "$ac_cv_prog_AR"; then
 
6572
  ac_ct_AR=$AR
 
6573
  # Extract the first word of "ar", so it can be a program name with args.
 
6574
set dummy ar; ac_word=$2
 
6575
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6576
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6577
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6579
else
 
6580
  if test -n "$ac_ct_AR"; then
 
6581
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6582
else
 
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6584
for as_dir in $PATH
 
6585
do
 
6586
  IFS=$as_save_IFS
 
6587
  test -z "$as_dir" && as_dir=.
 
6588
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6589
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6590
    ac_cv_prog_ac_ct_AR="ar"
 
6591
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6592
    break 2
 
6593
  fi
 
6594
done
 
6595
done
 
6596
IFS=$as_save_IFS
 
6597
 
 
6598
fi
 
6599
fi
 
6600
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6601
if test -n "$ac_ct_AR"; then
 
6602
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6603
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6604
else
 
6605
  { echo "$as_me:$LINENO: result: no" >&5
 
6606
echo "${ECHO_T}no" >&6; }
 
6607
fi
 
6608
 
 
6609
  if test "x$ac_ct_AR" = x; then
 
6610
    AR="false"
 
6611
  else
 
6612
    case $cross_compiling:$ac_tool_warned in
 
6613
yes:)
 
6614
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6615
whose name does not start with the host triplet.  If you think this
 
6616
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6617
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6618
whose name does not start with the host triplet.  If you think this
 
6619
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6620
ac_tool_warned=yes ;;
 
6621
esac
 
6622
    AR=$ac_ct_AR
 
6623
  fi
 
6624
else
 
6625
  AR="$ac_cv_prog_AR"
 
6626
fi
 
6627
 
 
6628
if test -n "$ac_tool_prefix"; then
 
6629
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6630
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6631
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6632
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6633
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6635
else
 
6636
  if test -n "$RANLIB"; then
 
6637
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6638
else
 
6639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6640
for as_dir in $PATH
 
6641
do
 
6642
  IFS=$as_save_IFS
 
6643
  test -z "$as_dir" && as_dir=.
 
6644
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6645
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6646
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6647
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6648
    break 2
 
6649
  fi
 
6650
done
 
6651
done
 
6652
IFS=$as_save_IFS
 
6653
 
 
6654
fi
 
6655
fi
 
6656
RANLIB=$ac_cv_prog_RANLIB
 
6657
if test -n "$RANLIB"; then
 
6658
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6659
echo "${ECHO_T}$RANLIB" >&6; }
 
6660
else
 
6661
  { echo "$as_me:$LINENO: result: no" >&5
 
6662
echo "${ECHO_T}no" >&6; }
 
6663
fi
 
6664
 
 
6665
 
 
6666
fi
 
6667
if test -z "$ac_cv_prog_RANLIB"; then
 
6668
  ac_ct_RANLIB=$RANLIB
 
6669
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6670
set dummy ranlib; ac_word=$2
 
6671
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6672
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6673
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6675
else
 
6676
  if test -n "$ac_ct_RANLIB"; then
 
6677
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6678
else
 
6679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6680
for as_dir in $PATH
 
6681
do
 
6682
  IFS=$as_save_IFS
 
6683
  test -z "$as_dir" && as_dir=.
 
6684
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6685
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6686
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6687
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6688
    break 2
 
6689
  fi
 
6690
done
 
6691
done
 
6692
IFS=$as_save_IFS
 
6693
 
 
6694
fi
 
6695
fi
 
6696
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6697
if test -n "$ac_ct_RANLIB"; then
 
6698
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6699
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6700
else
 
6701
  { echo "$as_me:$LINENO: result: no" >&5
 
6702
echo "${ECHO_T}no" >&6; }
 
6703
fi
 
6704
 
 
6705
  if test "x$ac_ct_RANLIB" = x; then
 
6706
    RANLIB=":"
 
6707
  else
 
6708
    case $cross_compiling:$ac_tool_warned in
 
6709
yes:)
 
6710
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6711
whose name does not start with the host triplet.  If you think this
 
6712
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6713
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6714
whose name does not start with the host triplet.  If you think this
 
6715
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6716
ac_tool_warned=yes ;;
 
6717
esac
 
6718
    RANLIB=$ac_ct_RANLIB
 
6719
  fi
 
6720
else
 
6721
  RANLIB="$ac_cv_prog_RANLIB"
 
6722
fi
 
6723
 
 
6724
if test -n "$ac_tool_prefix"; then
 
6725
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6726
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6727
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6728
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6729
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6731
else
 
6732
  if test -n "$STRIP"; then
 
6733
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6734
else
 
6735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6736
for as_dir in $PATH
 
6737
do
 
6738
  IFS=$as_save_IFS
 
6739
  test -z "$as_dir" && as_dir=.
 
6740
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6742
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6743
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6744
    break 2
 
6745
  fi
 
6746
done
 
6747
done
 
6748
IFS=$as_save_IFS
 
6749
 
 
6750
fi
 
6751
fi
 
6752
STRIP=$ac_cv_prog_STRIP
 
6753
if test -n "$STRIP"; then
 
6754
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6755
echo "${ECHO_T}$STRIP" >&6; }
 
6756
else
 
6757
  { echo "$as_me:$LINENO: result: no" >&5
 
6758
echo "${ECHO_T}no" >&6; }
 
6759
fi
 
6760
 
 
6761
 
 
6762
fi
 
6763
if test -z "$ac_cv_prog_STRIP"; then
 
6764
  ac_ct_STRIP=$STRIP
 
6765
  # Extract the first word of "strip", so it can be a program name with args.
 
6766
set dummy strip; ac_word=$2
 
6767
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6768
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6769
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6771
else
 
6772
  if test -n "$ac_ct_STRIP"; then
 
6773
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6774
else
 
6775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6776
for as_dir in $PATH
 
6777
do
 
6778
  IFS=$as_save_IFS
 
6779
  test -z "$as_dir" && as_dir=.
 
6780
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6781
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6782
    ac_cv_prog_ac_ct_STRIP="strip"
 
6783
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6784
    break 2
 
6785
  fi
 
6786
done
 
6787
done
 
6788
IFS=$as_save_IFS
 
6789
 
 
6790
fi
 
6791
fi
 
6792
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6793
if test -n "$ac_ct_STRIP"; then
 
6794
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6795
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6796
else
 
6797
  { echo "$as_me:$LINENO: result: no" >&5
 
6798
echo "${ECHO_T}no" >&6; }
 
6799
fi
 
6800
 
 
6801
  if test "x$ac_ct_STRIP" = x; then
 
6802
    STRIP=":"
 
6803
  else
 
6804
    case $cross_compiling:$ac_tool_warned in
 
6805
yes:)
 
6806
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6807
whose name does not start with the host triplet.  If you think this
 
6808
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6809
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6810
whose name does not start with the host triplet.  If you think this
 
6811
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6812
ac_tool_warned=yes ;;
 
6813
esac
 
6814
    STRIP=$ac_ct_STRIP
 
6815
  fi
 
6816
else
 
6817
  STRIP="$ac_cv_prog_STRIP"
 
6818
fi
 
6819
 
 
6820
 
 
6821
old_CC="$CC"
 
6822
old_CFLAGS="$CFLAGS"
 
6823
 
 
6824
# Set sane defaults for various variables
 
6825
test -z "$AR" && AR=ar
 
6826
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6827
test -z "$AS" && AS=as
 
6828
test -z "$CC" && CC=cc
 
6829
test -z "$LTCC" && LTCC=$CC
 
6830
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6831
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6832
test -z "$LD" && LD=ld
 
6833
test -z "$LN_S" && LN_S="ln -s"
 
6834
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6835
test -z "$NM" && NM=nm
 
6836
test -z "$SED" && SED=sed
 
6837
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6838
test -z "$RANLIB" && RANLIB=:
 
6839
test -z "$STRIP" && STRIP=:
 
6840
test -z "$ac_objext" && ac_objext=o
 
6841
 
 
6842
# Determine commands to create old-style static archives.
 
6843
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6844
old_postinstall_cmds='chmod 644 $oldlib'
 
6845
old_postuninstall_cmds=
 
6846
 
 
6847
if test -n "$RANLIB"; then
 
6848
  case $host_os in
 
6849
  openbsd*)
 
6850
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6851
    ;;
 
6852
  *)
 
6853
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6854
    ;;
 
6855
  esac
 
6856
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6857
fi
 
6858
 
 
6859
for cc_temp in $compiler""; do
 
6860
  case $cc_temp in
 
6861
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6862
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6863
    \-*) ;;
 
6864
    *) break;;
 
6865
  esac
 
6866
done
 
6867
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6868
 
 
6869
 
 
6870
# Only perform the check for file, if the check method requires it
 
6871
case $deplibs_check_method in
 
6872
file_magic*)
 
6873
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6874
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6875
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6876
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6878
else
 
6879
  case $MAGIC_CMD in
 
6880
[\\/*] |  ?:[\\/]*)
 
6881
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6882
  ;;
 
6883
*)
 
6884
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6885
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6886
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6887
  for ac_dir in $ac_dummy; do
 
6888
    IFS="$lt_save_ifs"
 
6889
    test -z "$ac_dir" && ac_dir=.
 
6890
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6891
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6892
      if test -n "$file_magic_test_file"; then
 
6893
        case $deplibs_check_method in
 
6894
        "file_magic "*)
 
6895
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6896
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6897
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6898
            $EGREP "$file_magic_regex" > /dev/null; then
 
6899
            :
 
6900
          else
 
6901
            cat <<EOF 1>&2
 
6902
 
 
6903
*** Warning: the command libtool uses to detect shared libraries,
 
6904
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6905
*** The result is that libtool may fail to recognize shared libraries
 
6906
*** as such.  This will affect the creation of libtool libraries that
 
6907
*** depend on shared libraries, but programs linked with such libtool
 
6908
*** libraries will work regardless of this problem.  Nevertheless, you
 
6909
*** may want to report the problem to your system manager and/or to
 
6910
*** bug-libtool@gnu.org
 
6911
 
 
6912
EOF
 
6913
          fi ;;
 
6914
        esac
 
6915
      fi
 
6916
      break
 
6917
    fi
 
6918
  done
 
6919
  IFS="$lt_save_ifs"
 
6920
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6921
  ;;
 
6922
esac
 
6923
fi
 
6924
 
 
6925
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6926
if test -n "$MAGIC_CMD"; then
 
6927
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6928
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6929
else
 
6930
  { echo "$as_me:$LINENO: result: no" >&5
 
6931
echo "${ECHO_T}no" >&6; }
 
6932
fi
 
6933
 
 
6934
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6935
  if test -n "$ac_tool_prefix"; then
 
6936
    { echo "$as_me:$LINENO: checking for file" >&5
 
6937
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
6938
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6940
else
 
6941
  case $MAGIC_CMD in
 
6942
[\\/*] |  ?:[\\/]*)
 
6943
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6944
  ;;
 
6945
*)
 
6946
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6947
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6948
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6949
  for ac_dir in $ac_dummy; do
 
6950
    IFS="$lt_save_ifs"
 
6951
    test -z "$ac_dir" && ac_dir=.
 
6952
    if test -f $ac_dir/file; then
 
6953
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6954
      if test -n "$file_magic_test_file"; then
 
6955
        case $deplibs_check_method in
 
6956
        "file_magic "*)
 
6957
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6958
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6959
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6960
            $EGREP "$file_magic_regex" > /dev/null; then
 
6961
            :
 
6962
          else
 
6963
            cat <<EOF 1>&2
 
6964
 
 
6965
*** Warning: the command libtool uses to detect shared libraries,
 
6966
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6967
*** The result is that libtool may fail to recognize shared libraries
 
6968
*** as such.  This will affect the creation of libtool libraries that
 
6969
*** depend on shared libraries, but programs linked with such libtool
 
6970
*** libraries will work regardless of this problem.  Nevertheless, you
 
6971
*** may want to report the problem to your system manager and/or to
 
6972
*** bug-libtool@gnu.org
 
6973
 
 
6974
EOF
 
6975
          fi ;;
 
6976
        esac
 
6977
      fi
 
6978
      break
 
6979
    fi
 
6980
  done
 
6981
  IFS="$lt_save_ifs"
 
6982
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6983
  ;;
 
6984
esac
 
6985
fi
 
6986
 
 
6987
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6988
if test -n "$MAGIC_CMD"; then
 
6989
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6990
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6991
else
 
6992
  { echo "$as_me:$LINENO: result: no" >&5
 
6993
echo "${ECHO_T}no" >&6; }
 
6994
fi
 
6995
 
 
6996
  else
 
6997
    MAGIC_CMD=:
 
6998
  fi
 
6999
fi
 
7000
 
 
7001
  fi
 
7002
  ;;
 
7003
esac
 
7004
 
 
7005
enable_dlopen=no
 
7006
enable_win32_dll=no
 
7007
 
 
7008
# Check whether --enable-libtool-lock was given.
 
7009
if test "${enable_libtool_lock+set}" = set; then
 
7010
  enableval=$enable_libtool_lock;
 
7011
fi
 
7012
 
 
7013
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7014
 
 
7015
 
 
7016
# Check whether --with-pic was given.
 
7017
if test "${with_pic+set}" = set; then
 
7018
  withval=$with_pic; pic_mode="$withval"
 
7019
else
 
7020
  pic_mode=default
 
7021
fi
 
7022
 
 
7023
test -z "$pic_mode" && pic_mode=default
 
7024
 
 
7025
# Use C for the default configuration in the libtool script
 
7026
tagname=
 
7027
lt_save_CC="$CC"
 
7028
ac_ext=c
 
7029
ac_cpp='$CPP $CPPFLAGS'
 
7030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7033
 
 
7034
 
 
7035
# Source file extension for C test sources.
 
7036
ac_ext=c
 
7037
 
 
7038
# Object file extension for compiled C test sources.
 
7039
objext=o
 
7040
objext=$objext
 
7041
 
 
7042
# Code to be used in simple compile tests
 
7043
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7044
 
 
7045
# Code to be used in simple link tests
 
7046
lt_simple_link_test_code='int main(){return(0);}\n'
 
7047
 
 
7048
 
 
7049
# If no C compiler was specified, use CC.
 
7050
LTCC=${LTCC-"$CC"}
 
7051
 
 
7052
# If no C compiler flags were specified, use CFLAGS.
 
7053
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7054
 
 
7055
# Allow CC to be a program name with arguments.
 
7056
compiler=$CC
 
7057
 
 
7058
 
 
7059
# save warnings/boilerplate of simple test code
 
7060
ac_outfile=conftest.$ac_objext
 
7061
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7062
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7063
_lt_compiler_boilerplate=`cat conftest.err`
 
7064
$rm conftest*
 
7065
 
 
7066
ac_outfile=conftest.$ac_objext
 
7067
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7068
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7069
_lt_linker_boilerplate=`cat conftest.err`
 
7070
$rm conftest*
 
7071
 
 
7072
 
 
7073
 
 
7074
lt_prog_compiler_no_builtin_flag=
 
7075
 
 
7076
if test "$GCC" = yes; then
 
7077
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7078
 
 
7079
 
 
7080
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7081
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7082
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7084
else
 
7085
  lt_cv_prog_compiler_rtti_exceptions=no
 
7086
  ac_outfile=conftest.$ac_objext
 
7087
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7088
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7089
   # Insert the option either (1) after the last *FLAGS variable, or
 
7090
   # (2) before a word containing "conftest.", or (3) at the end.
 
7091
   # Note that $ac_compile itself does not contain backslashes and begins
 
7092
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7093
   # The option is referenced via a variable to avoid confusing sed.
 
7094
   lt_compile=`echo "$ac_compile" | $SED \
 
7095
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7096
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7097
   -e 's:$: $lt_compiler_flag:'`
 
7098
   (eval echo "\"\$as_me:7098: $lt_compile\"" >&5)
 
7099
   (eval "$lt_compile" 2>conftest.err)
 
7100
   ac_status=$?
 
7101
   cat conftest.err >&5
 
7102
   echo "$as_me:7102: \$? = $ac_status" >&5
 
7103
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7104
     # The compiler can only warn and ignore the option if not recognized
 
7105
     # So say no if there are warnings other than the usual output.
 
7106
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7107
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7108
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7109
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7110
     fi
 
7111
   fi
 
7112
   $rm conftest*
 
7113
 
 
7114
fi
 
7115
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7116
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7117
 
 
7118
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7119
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7120
else
 
7121
    :
 
7122
fi
 
7123
 
 
7124
fi
 
7125
 
 
7126
lt_prog_compiler_wl=
 
7127
lt_prog_compiler_pic=
 
7128
lt_prog_compiler_static=
 
7129
 
 
7130
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7131
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7132
 
 
7133
  if test "$GCC" = yes; then
 
7134
    lt_prog_compiler_wl='-Wl,'
 
7135
    lt_prog_compiler_static='-static'
 
7136
 
 
7137
    case $host_os in
 
7138
      aix*)
 
7139
      # All AIX code is PIC.
 
7140
      if test "$host_cpu" = ia64; then
 
7141
        # AIX 5 now supports IA64 processor
 
7142
        lt_prog_compiler_static='-Bstatic'
 
7143
      fi
 
7144
      ;;
 
7145
 
 
7146
    amigaos*)
 
7147
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7148
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7149
      # like `-m68040'.
 
7150
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7151
      ;;
 
7152
 
 
7153
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7154
      # PIC is the default for these OSes.
 
7155
      ;;
 
7156
 
 
7157
    mingw* | pw32* | os2*)
 
7158
      # This hack is so that the source file can tell whether it is being
 
7159
      # built for inclusion in a dll (and should export symbols for example).
 
7160
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7161
      ;;
 
7162
 
 
7163
    darwin* | rhapsody*)
 
7164
      # PIC is the default on this platform
 
7165
      # Common symbols not allowed in MH_DYLIB files
 
7166
      lt_prog_compiler_pic='-fno-common'
 
7167
      ;;
 
7168
 
 
7169
    interix3*)
 
7170
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7171
      # Instead, we relocate shared libraries at runtime.
 
7172
      ;;
 
7173
 
 
7174
    msdosdjgpp*)
 
7175
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7176
      # on systems that don't support them.
 
7177
      lt_prog_compiler_can_build_shared=no
 
7178
      enable_shared=no
 
7179
      ;;
 
7180
 
 
7181
    sysv4*MP*)
 
7182
      if test -d /usr/nec; then
 
7183
        lt_prog_compiler_pic=-Kconform_pic
 
7184
      fi
 
7185
      ;;
 
7186
 
 
7187
    hpux*)
 
7188
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7189
      # not for PA HP-UX.
 
7190
      case $host_cpu in
 
7191
      hppa*64*|ia64*)
 
7192
        # +Z the default
 
7193
        ;;
 
7194
      *)
 
7195
        lt_prog_compiler_pic='-fPIC'
 
7196
        ;;
 
7197
      esac
 
7198
      ;;
 
7199
 
 
7200
    *)
 
7201
      lt_prog_compiler_pic='-fPIC'
 
7202
      ;;
 
7203
    esac
 
7204
  else
 
7205
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7206
    case $host_os in
 
7207
    aix*)
 
7208
      lt_prog_compiler_wl='-Wl,'
 
7209
      if test "$host_cpu" = ia64; then
 
7210
        # AIX 5 now supports IA64 processor
 
7211
        lt_prog_compiler_static='-Bstatic'
 
7212
      else
 
7213
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7214
      fi
 
7215
      ;;
 
7216
      darwin*)
 
7217
        # PIC is the default on this platform
 
7218
        # Common symbols not allowed in MH_DYLIB files
 
7219
       case $cc_basename in
 
7220
         xlc*)
 
7221
         lt_prog_compiler_pic='-qnocommon'
 
7222
         lt_prog_compiler_wl='-Wl,'
 
7223
         ;;
 
7224
       esac
 
7225
       ;;
 
7226
 
 
7227
    mingw* | pw32* | os2*)
 
7228
      # This hack is so that the source file can tell whether it is being
 
7229
      # built for inclusion in a dll (and should export symbols for example).
 
7230
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7231
      ;;
 
7232
 
 
7233
    hpux9* | hpux10* | hpux11*)
 
7234
      lt_prog_compiler_wl='-Wl,'
 
7235
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7236
      # not for PA HP-UX.
 
7237
      case $host_cpu in
 
7238
      hppa*64*|ia64*)
 
7239
        # +Z the default
 
7240
        ;;
 
7241
      *)
 
7242
        lt_prog_compiler_pic='+Z'
 
7243
        ;;
 
7244
      esac
 
7245
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7246
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7247
      ;;
 
7248
 
 
7249
    irix5* | irix6* | nonstopux*)
 
7250
      lt_prog_compiler_wl='-Wl,'
 
7251
      # PIC (with -KPIC) is the default.
 
7252
      lt_prog_compiler_static='-non_shared'
 
7253
      ;;
 
7254
 
 
7255
    newsos6)
 
7256
      lt_prog_compiler_pic='-KPIC'
 
7257
      lt_prog_compiler_static='-Bstatic'
 
7258
      ;;
 
7259
 
 
7260
    linux* | k*bsd*-gnu)
 
7261
      case $cc_basename in
 
7262
      icc* | ecc*)
 
7263
        lt_prog_compiler_wl='-Wl,'
 
7264
        lt_prog_compiler_pic='-KPIC'
 
7265
        lt_prog_compiler_static='-static'
 
7266
        ;;
 
7267
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7268
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7269
        # which looks to be a dead project)
 
7270
        lt_prog_compiler_wl='-Wl,'
 
7271
        lt_prog_compiler_pic='-fpic'
 
7272
        lt_prog_compiler_static='-Bstatic'
 
7273
        ;;
 
7274
      ccc*)
 
7275
        lt_prog_compiler_wl='-Wl,'
 
7276
        # All Alpha code is PIC.
 
7277
        lt_prog_compiler_static='-non_shared'
 
7278
        ;;
 
7279
      esac
 
7280
      ;;
 
7281
 
 
7282
    osf3* | osf4* | osf5*)
 
7283
      lt_prog_compiler_wl='-Wl,'
 
7284
      # All OSF/1 code is PIC.
 
7285
      lt_prog_compiler_static='-non_shared'
 
7286
      ;;
 
7287
 
 
7288
    solaris*)
 
7289
      lt_prog_compiler_pic='-KPIC'
 
7290
      lt_prog_compiler_static='-Bstatic'
 
7291
      case $cc_basename in
 
7292
      f77* | f90* | f95*)
 
7293
        lt_prog_compiler_wl='-Qoption ld ';;
 
7294
      *)
 
7295
        lt_prog_compiler_wl='-Wl,';;
 
7296
      esac
 
7297
      ;;
 
7298
 
 
7299
    sunos4*)
 
7300
      lt_prog_compiler_wl='-Qoption ld '
 
7301
      lt_prog_compiler_pic='-PIC'
 
7302
      lt_prog_compiler_static='-Bstatic'
 
7303
      ;;
 
7304
 
 
7305
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7306
      lt_prog_compiler_wl='-Wl,'
 
7307
      lt_prog_compiler_pic='-KPIC'
 
7308
      lt_prog_compiler_static='-Bstatic'
 
7309
      ;;
 
7310
 
 
7311
    sysv4*MP*)
 
7312
      if test -d /usr/nec ;then
 
7313
        lt_prog_compiler_pic='-Kconform_pic'
 
7314
        lt_prog_compiler_static='-Bstatic'
 
7315
      fi
 
7316
      ;;
 
7317
 
 
7318
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7319
      lt_prog_compiler_wl='-Wl,'
 
7320
      lt_prog_compiler_pic='-KPIC'
 
7321
      lt_prog_compiler_static='-Bstatic'
 
7322
      ;;
 
7323
 
 
7324
    unicos*)
 
7325
      lt_prog_compiler_wl='-Wl,'
 
7326
      lt_prog_compiler_can_build_shared=no
 
7327
      ;;
 
7328
 
 
7329
    uts4*)
 
7330
      lt_prog_compiler_pic='-pic'
 
7331
      lt_prog_compiler_static='-Bstatic'
 
7332
      ;;
 
7333
 
 
7334
    *)
 
7335
      lt_prog_compiler_can_build_shared=no
 
7336
      ;;
 
7337
    esac
 
7338
  fi
 
7339
 
 
7340
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7341
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7342
 
 
7343
#
 
7344
# Check to make sure the PIC flag actually works.
 
7345
#
 
7346
if test -n "$lt_prog_compiler_pic"; then
 
7347
 
 
7348
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7349
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7350
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7352
else
 
7353
  lt_prog_compiler_pic_works=no
 
7354
  ac_outfile=conftest.$ac_objext
 
7355
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7356
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7357
   # Insert the option either (1) after the last *FLAGS variable, or
 
7358
   # (2) before a word containing "conftest.", or (3) at the end.
 
7359
   # Note that $ac_compile itself does not contain backslashes and begins
 
7360
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7361
   # The option is referenced via a variable to avoid confusing sed.
 
7362
   lt_compile=`echo "$ac_compile" | $SED \
 
7363
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7364
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7365
   -e 's:$: $lt_compiler_flag:'`
 
7366
   (eval echo "\"\$as_me:7366: $lt_compile\"" >&5)
 
7367
   (eval "$lt_compile" 2>conftest.err)
 
7368
   ac_status=$?
 
7369
   cat conftest.err >&5
 
7370
   echo "$as_me:7370: \$? = $ac_status" >&5
 
7371
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7372
     # The compiler can only warn and ignore the option if not recognized
 
7373
     # So say no if there are warnings other than the usual output.
 
7374
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7375
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7376
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7377
       lt_prog_compiler_pic_works=yes
 
7378
     fi
 
7379
   fi
 
7380
   $rm conftest*
 
7381
 
 
7382
fi
 
7383
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7384
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7385
 
 
7386
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7387
    case $lt_prog_compiler_pic in
 
7388
     "" | " "*) ;;
 
7389
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7390
     esac
 
7391
else
 
7392
    lt_prog_compiler_pic=
 
7393
     lt_prog_compiler_can_build_shared=no
 
7394
fi
 
7395
 
 
7396
fi
 
7397
case $host_os in
 
7398
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7399
  *djgpp*)
 
7400
    lt_prog_compiler_pic=
 
7401
    ;;
 
7402
  *)
 
7403
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7404
    ;;
 
7405
esac
 
7406
 
 
7407
#
 
7408
# Check to make sure the static flag actually works.
 
7409
#
 
7410
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7411
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7412
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7413
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7415
else
 
7416
  lt_prog_compiler_static_works=no
 
7417
   save_LDFLAGS="$LDFLAGS"
 
7418
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7419
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7420
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7421
     # The linker can only warn and ignore the option if not recognized
 
7422
     # So say no if there are warnings
 
7423
     if test -s conftest.err; then
 
7424
       # Append any errors to the config.log.
 
7425
       cat conftest.err 1>&5
 
7426
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7427
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7428
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7429
         lt_prog_compiler_static_works=yes
 
7430
       fi
 
7431
     else
 
7432
       lt_prog_compiler_static_works=yes
 
7433
     fi
 
7434
   fi
 
7435
   $rm conftest*
 
7436
   LDFLAGS="$save_LDFLAGS"
 
7437
 
 
7438
fi
 
7439
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7440
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7441
 
 
7442
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7443
    :
 
7444
else
 
7445
    lt_prog_compiler_static=
 
7446
fi
 
7447
 
 
7448
 
 
7449
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7450
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7451
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7453
else
 
7454
  lt_cv_prog_compiler_c_o=no
 
7455
   $rm -r conftest 2>/dev/null
 
7456
   mkdir conftest
 
7457
   cd conftest
 
7458
   mkdir out
 
7459
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7460
 
 
7461
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7462
   # Insert the option either (1) after the last *FLAGS variable, or
 
7463
   # (2) before a word containing "conftest.", or (3) at the end.
 
7464
   # Note that $ac_compile itself does not contain backslashes and begins
 
7465
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7466
   lt_compile=`echo "$ac_compile" | $SED \
 
7467
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7468
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7469
   -e 's:$: $lt_compiler_flag:'`
 
7470
   (eval echo "\"\$as_me:7470: $lt_compile\"" >&5)
 
7471
   (eval "$lt_compile" 2>out/conftest.err)
 
7472
   ac_status=$?
 
7473
   cat out/conftest.err >&5
 
7474
   echo "$as_me:7474: \$? = $ac_status" >&5
 
7475
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7476
   then
 
7477
     # The compiler can only warn and ignore the option if not recognized
 
7478
     # So say no if there are warnings
 
7479
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7480
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7481
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7482
       lt_cv_prog_compiler_c_o=yes
 
7483
     fi
 
7484
   fi
 
7485
   chmod u+w . 2>&5
 
7486
   $rm conftest*
 
7487
   # SGI C++ compiler will create directory out/ii_files/ for
 
7488
   # template instantiation
 
7489
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7490
   $rm out/* && rmdir out
 
7491
   cd ..
 
7492
   rmdir conftest
 
7493
   $rm conftest*
 
7494
 
 
7495
fi
 
7496
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7497
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7498
 
 
7499
 
 
7500
hard_links="nottested"
 
7501
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7502
  # do not overwrite the value of need_locks provided by the user
 
7503
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7504
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7505
  hard_links=yes
 
7506
  $rm conftest*
 
7507
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7508
  touch conftest.a
 
7509
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7510
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7511
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7512
echo "${ECHO_T}$hard_links" >&6; }
 
7513
  if test "$hard_links" = no; then
 
7514
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7515
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7516
    need_locks=warn
 
7517
  fi
 
7518
else
 
7519
  need_locks=no
 
7520
fi
 
7521
 
 
7522
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7523
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7524
 
 
7525
  runpath_var=
 
7526
  allow_undefined_flag=
 
7527
  enable_shared_with_static_runtimes=no
 
7528
  archive_cmds=
 
7529
  archive_expsym_cmds=
 
7530
  old_archive_From_new_cmds=
 
7531
  old_archive_from_expsyms_cmds=
 
7532
  export_dynamic_flag_spec=
 
7533
  whole_archive_flag_spec=
 
7534
  thread_safe_flag_spec=
 
7535
  hardcode_libdir_flag_spec=
 
7536
  hardcode_libdir_flag_spec_ld=
 
7537
  hardcode_libdir_separator=
 
7538
  hardcode_direct=no
 
7539
  hardcode_minus_L=no
 
7540
  hardcode_shlibpath_var=unsupported
 
7541
  link_all_deplibs=unknown
 
7542
  hardcode_automatic=no
 
7543
  module_cmds=
 
7544
  module_expsym_cmds=
 
7545
  always_export_symbols=no
 
7546
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7547
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7548
  # included in the symbol list
 
7549
  include_expsyms=
 
7550
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7551
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7552
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7553
  # as well as any symbol that contains `d'.
 
7554
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7555
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7556
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7557
  # the symbol is explicitly referenced.  Since portable code cannot
 
7558
  # rely on this symbol name, it's probably fine to never include it in
 
7559
  # preloaded symbol tables.
 
7560
  extract_expsyms_cmds=
 
7561
  # Just being paranoid about ensuring that cc_basename is set.
 
7562
  for cc_temp in $compiler""; do
 
7563
  case $cc_temp in
 
7564
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7565
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7566
    \-*) ;;
 
7567
    *) break;;
 
7568
  esac
 
7569
done
 
7570
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7571
 
 
7572
  case $host_os in
 
7573
  cygwin* | mingw* | pw32*)
 
7574
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7575
    # When not using gcc, we currently assume that we are using
 
7576
    # Microsoft Visual C++.
 
7577
    if test "$GCC" != yes; then
 
7578
      with_gnu_ld=no
 
7579
    fi
 
7580
    ;;
 
7581
  interix*)
 
7582
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7583
    with_gnu_ld=yes
 
7584
    ;;
 
7585
  openbsd*)
 
7586
    with_gnu_ld=no
 
7587
    ;;
 
7588
  esac
 
7589
 
 
7590
  ld_shlibs=yes
 
7591
  if test "$with_gnu_ld" = yes; then
 
7592
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7593
    wlarc='${wl}'
 
7594
 
 
7595
    # Set some defaults for GNU ld with shared library support. These
 
7596
    # are reset later if shared libraries are not supported. Putting them
 
7597
    # here allows them to be overridden if necessary.
 
7598
    runpath_var=LD_RUN_PATH
 
7599
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7600
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7601
    # ancient GNU ld didn't support --whole-archive et. al.
 
7602
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7603
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7604
      else
 
7605
        whole_archive_flag_spec=
 
7606
    fi
 
7607
    supports_anon_versioning=no
 
7608
    case `$LD -v 2>/dev/null` in
 
7609
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7610
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7611
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7612
      *\ 2.11.*) ;; # other 2.11 versions
 
7613
      *) supports_anon_versioning=yes ;;
 
7614
    esac
 
7615
 
 
7616
    # See if GNU ld supports shared libraries.
 
7617
    case $host_os in
 
7618
    aix3* | aix4* | aix5*)
 
7619
      # On AIX/PPC, the GNU linker is very broken
 
7620
      if test "$host_cpu" != ia64; then
 
7621
        ld_shlibs=no
 
7622
        cat <<EOF 1>&2
 
7623
 
 
7624
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7625
*** to be unable to reliably create shared libraries on AIX.
 
7626
*** Therefore, libtool is disabling shared libraries support.  If you
 
7627
*** really care for shared libraries, you may want to modify your PATH
 
7628
*** so that a non-GNU linker is found, and then restart.
 
7629
 
 
7630
EOF
 
7631
      fi
 
7632
      ;;
 
7633
 
 
7634
    amigaos*)
 
7635
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
7636
      hardcode_libdir_flag_spec='-L$libdir'
 
7637
      hardcode_minus_L=yes
 
7638
 
 
7639
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7640
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7641
      # to version 4, is to share data among multiple programs linked
 
7642
      # with the same dynamic library.  Since this doesn't match the
 
7643
      # behavior of shared libraries on other platforms, we can't use
 
7644
      # them.
 
7645
      ld_shlibs=no
 
7646
      ;;
 
7647
 
 
7648
    beos*)
 
7649
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7650
        allow_undefined_flag=unsupported
 
7651
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7652
        # support --undefined.  This deserves some investigation.  FIXME
 
7653
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7654
      else
 
7655
        ld_shlibs=no
 
7656
      fi
 
7657
      ;;
 
7658
 
 
7659
    cygwin* | mingw* | pw32*)
 
7660
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7661
      # as there is no search path for DLLs.
 
7662
      hardcode_libdir_flag_spec='-L$libdir'
 
7663
      allow_undefined_flag=unsupported
 
7664
      always_export_symbols=no
 
7665
      enable_shared_with_static_runtimes=yes
 
7666
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7667
 
 
7668
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7669
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7670
        # If the export-symbols file already is a .def file (1st line
 
7671
        # is EXPORTS), use it as is; otherwise, prepend...
 
7672
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7673
          cp $export_symbols $output_objdir/$soname.def;
 
7674
        else
 
7675
          echo EXPORTS > $output_objdir/$soname.def;
 
7676
          cat $export_symbols >> $output_objdir/$soname.def;
 
7677
        fi~
 
7678
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7679
      else
 
7680
        ld_shlibs=no
 
7681
      fi
 
7682
      ;;
 
7683
 
 
7684
    interix3*)
 
7685
      hardcode_direct=no
 
7686
      hardcode_shlibpath_var=no
 
7687
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7688
      export_dynamic_flag_spec='${wl}-E'
 
7689
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7690
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7691
      # default) and relocated if they conflict, which is a slow very memory
 
7692
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7693
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7694
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7695
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7696
      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'
 
7697
      ;;
 
7698
 
 
7699
    linux* | k*bsd*-gnu)
 
7700
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7701
        tmp_addflag=
 
7702
        case $cc_basename,$host_cpu in
 
7703
        pgcc*)                          # Portland Group C compiler
 
7704
          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'
 
7705
          tmp_addflag=' $pic_flag'
 
7706
          ;;
 
7707
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7708
          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'
 
7709
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7710
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7711
          tmp_addflag=' -i_dynamic' ;;
 
7712
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7713
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7714
        ifc* | ifort*)                  # Intel Fortran compiler
 
7715
          tmp_addflag=' -nofor_main' ;;
 
7716
        esac
 
7717
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7718
 
 
7719
        if test $supports_anon_versioning = yes; then
 
7720
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7721
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7722
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7723
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7724
        fi
 
7725
        link_all_deplibs=no
 
7726
      else
 
7727
        ld_shlibs=no
 
7728
      fi
 
7729
      ;;
 
7730
 
 
7731
    netbsd* | netbsdelf*-gnu)
 
7732
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7733
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7734
        wlarc=
 
7735
      else
 
7736
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7737
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7738
      fi
 
7739
      ;;
 
7740
 
 
7741
    solaris*)
 
7742
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7743
        ld_shlibs=no
 
7744
        cat <<EOF 1>&2
 
7745
 
 
7746
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7747
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7748
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7749
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7750
*** your PATH or compiler configuration so that the native linker is
 
7751
*** used, and then restart.
 
7752
 
 
7753
EOF
 
7754
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7755
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7756
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7757
      else
 
7758
        ld_shlibs=no
 
7759
      fi
 
7760
      ;;
 
7761
 
 
7762
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7763
      case `$LD -v 2>&1` in
 
7764
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7765
        ld_shlibs=no
 
7766
        cat <<_LT_EOF 1>&2
 
7767
 
 
7768
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7769
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7770
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7771
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7772
*** your PATH or compiler configuration so that the native linker is
 
7773
*** used, and then restart.
 
7774
 
 
7775
_LT_EOF
 
7776
        ;;
 
7777
        *)
 
7778
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7779
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7780
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7781
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7782
          else
 
7783
            ld_shlibs=no
 
7784
          fi
 
7785
        ;;
 
7786
      esac
 
7787
      ;;
 
7788
 
 
7789
    sunos4*)
 
7790
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7791
      wlarc=
 
7792
      hardcode_direct=yes
 
7793
      hardcode_shlibpath_var=no
 
7794
      ;;
 
7795
 
 
7796
    *)
 
7797
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7798
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7799
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7800
      else
 
7801
        ld_shlibs=no
 
7802
      fi
 
7803
      ;;
 
7804
    esac
 
7805
 
 
7806
    if test "$ld_shlibs" = no; then
 
7807
      runpath_var=
 
7808
      hardcode_libdir_flag_spec=
 
7809
      export_dynamic_flag_spec=
 
7810
      whole_archive_flag_spec=
 
7811
    fi
 
7812
  else
 
7813
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7814
    case $host_os in
 
7815
    aix3*)
 
7816
      allow_undefined_flag=unsupported
 
7817
      always_export_symbols=yes
 
7818
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
7819
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7820
      # are no directories specified by -L.
 
7821
      hardcode_minus_L=yes
 
7822
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7823
        # Neither direct hardcoding nor static linking is supported with a
 
7824
        # broken collect2.
 
7825
        hardcode_direct=unsupported
 
7826
      fi
 
7827
      ;;
 
7828
 
 
7829
    aix4* | aix5*)
 
7830
      if test "$host_cpu" = ia64; then
 
7831
        # On IA64, the linker does run time linking by default, so we don't
 
7832
        # have to do anything special.
 
7833
        aix_use_runtimelinking=no
 
7834
        exp_sym_flag='-Bexport'
 
7835
        no_entry_flag=""
 
7836
      else
 
7837
        # If we're using GNU nm, then we don't want the "-C" option.
 
7838
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7839
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7840
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
7841
        else
 
7842
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
7843
        fi
 
7844
        aix_use_runtimelinking=no
 
7845
 
 
7846
        # Test if we are trying to use run time linking or normal
 
7847
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7848
        # need to do runtime linking.
 
7849
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7850
          for ld_flag in $LDFLAGS; do
 
7851
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7852
            aix_use_runtimelinking=yes
 
7853
            break
 
7854
          fi
 
7855
          done
 
7856
          ;;
 
7857
        esac
 
7858
 
 
7859
        exp_sym_flag='-bexport'
 
7860
        no_entry_flag='-bnoentry'
 
7861
      fi
 
7862
 
 
7863
      # When large executables or shared objects are built, AIX ld can
 
7864
      # have problems creating the table of contents.  If linking a library
 
7865
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7866
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7867
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7868
 
 
7869
      archive_cmds=''
 
7870
      hardcode_direct=yes
 
7871
      hardcode_libdir_separator=':'
 
7872
      link_all_deplibs=yes
 
7873
 
 
7874
      if test "$GCC" = yes; then
 
7875
        case $host_os in aix4.[012]|aix4.[012].*)
 
7876
        # We only want to do this on AIX 4.2 and lower, the check
 
7877
        # below for broken collect2 doesn't work under 4.3+
 
7878
          collect2name=`${CC} -print-prog-name=collect2`
 
7879
          if test -f "$collect2name" && \
 
7880
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7881
          then
 
7882
          # We have reworked collect2
 
7883
          hardcode_direct=yes
 
7884
          else
 
7885
          # We have old collect2
 
7886
          hardcode_direct=unsupported
 
7887
          # It fails to find uninstalled libraries when the uninstalled
 
7888
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7889
          # to unsupported forces relinking
 
7890
          hardcode_minus_L=yes
 
7891
          hardcode_libdir_flag_spec='-L$libdir'
 
7892
          hardcode_libdir_separator=
 
7893
          fi
 
7894
          ;;
 
7895
        esac
 
7896
        shared_flag='-shared'
 
7897
        if test "$aix_use_runtimelinking" = yes; then
 
7898
          shared_flag="$shared_flag "'${wl}-G'
 
7899
        fi
 
7900
      else
 
7901
        # not using gcc
 
7902
        if test "$host_cpu" = ia64; then
 
7903
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7904
        # chokes on -Wl,-G. The following line is correct:
 
7905
          shared_flag='-G'
 
7906
        else
 
7907
          if test "$aix_use_runtimelinking" = yes; then
 
7908
            shared_flag='${wl}-G'
 
7909
          else
 
7910
            shared_flag='${wl}-bM:SRE'
 
7911
          fi
 
7912
        fi
 
7913
      fi
 
7914
 
 
7915
      # It seems that -bexpall does not export symbols beginning with
 
7916
      # underscore (_), so it is better to generate a list of symbols to export.
 
7917
      always_export_symbols=yes
 
7918
      if test "$aix_use_runtimelinking" = yes; then
 
7919
        # Warning - without using the other runtime loading flags (-brtl),
 
7920
        # -berok will link without error, but may produce a broken library.
 
7921
        allow_undefined_flag='-berok'
 
7922
       # Determine the default libpath from the value encoded in an empty executable.
 
7923
       cat >conftest.$ac_ext <<_ACEOF
 
7924
/* confdefs.h.  */
 
7925
_ACEOF
 
7926
cat confdefs.h >>conftest.$ac_ext
 
7927
cat >>conftest.$ac_ext <<_ACEOF
 
7928
/* end confdefs.h.  */
 
7929
 
 
7930
int
 
7931
main ()
 
7932
{
 
7933
 
 
7934
  ;
 
7935
  return 0;
 
7936
}
 
7937
_ACEOF
 
7938
rm -f conftest.$ac_objext conftest$ac_exeext
 
7939
if { (ac_try="$ac_link"
 
7940
case "(($ac_try" in
 
7941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7942
  *) ac_try_echo=$ac_try;;
 
7943
esac
 
7944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7945
  (eval "$ac_link") 2>conftest.er1
 
7946
  ac_status=$?
 
7947
  grep -v '^ *+' conftest.er1 >conftest.err
 
7948
  rm -f conftest.er1
 
7949
  cat conftest.err >&5
 
7950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7951
  (exit $ac_status); } && {
 
7952
         test -z "$ac_c_werror_flag" ||
 
7953
         test ! -s conftest.err
 
7954
       } && test -s conftest$ac_exeext &&
 
7955
       $as_test_x conftest$ac_exeext; then
 
7956
 
 
7957
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7958
}'`
 
7959
# Check for a 64-bit object if we didn't find anything.
 
7960
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; }
 
7961
}'`; fi
 
7962
else
 
7963
  echo "$as_me: failed program was:" >&5
 
7964
sed 's/^/| /' conftest.$ac_ext >&5
 
7965
 
 
7966
 
 
7967
fi
 
7968
 
 
7969
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7970
      conftest$ac_exeext conftest.$ac_ext
 
7971
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7972
 
 
7973
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7974
        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"
 
7975
       else
 
7976
        if test "$host_cpu" = ia64; then
 
7977
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7978
          allow_undefined_flag="-z nodefs"
 
7979
          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"
 
7980
        else
 
7981
         # Determine the default libpath from the value encoded in an empty executable.
 
7982
         cat >conftest.$ac_ext <<_ACEOF
 
7983
/* confdefs.h.  */
 
7984
_ACEOF
 
7985
cat confdefs.h >>conftest.$ac_ext
 
7986
cat >>conftest.$ac_ext <<_ACEOF
 
7987
/* end confdefs.h.  */
 
7988
 
 
7989
int
 
7990
main ()
 
7991
{
 
7992
 
 
7993
  ;
 
7994
  return 0;
 
7995
}
 
7996
_ACEOF
 
7997
rm -f conftest.$ac_objext conftest$ac_exeext
 
7998
if { (ac_try="$ac_link"
 
7999
case "(($ac_try" in
 
8000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8001
  *) ac_try_echo=$ac_try;;
 
8002
esac
 
8003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8004
  (eval "$ac_link") 2>conftest.er1
 
8005
  ac_status=$?
 
8006
  grep -v '^ *+' conftest.er1 >conftest.err
 
8007
  rm -f conftest.er1
 
8008
  cat conftest.err >&5
 
8009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8010
  (exit $ac_status); } && {
 
8011
         test -z "$ac_c_werror_flag" ||
 
8012
         test ! -s conftest.err
 
8013
       } && test -s conftest$ac_exeext &&
 
8014
       $as_test_x conftest$ac_exeext; then
 
8015
 
 
8016
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8017
}'`
 
8018
# Check for a 64-bit object if we didn't find anything.
 
8019
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; }
 
8020
}'`; fi
 
8021
else
 
8022
  echo "$as_me: failed program was:" >&5
 
8023
sed 's/^/| /' conftest.$ac_ext >&5
 
8024
 
 
8025
 
 
8026
fi
 
8027
 
 
8028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8029
      conftest$ac_exeext conftest.$ac_ext
 
8030
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8031
 
 
8032
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8033
          # Warning - without using the other run time loading flags,
 
8034
          # -berok will link without error, but may produce a broken library.
 
8035
          no_undefined_flag=' ${wl}-bernotok'
 
8036
          allow_undefined_flag=' ${wl}-berok'
 
8037
          # Exported symbols can be pulled into shared objects from archives
 
8038
          whole_archive_flag_spec='$convenience'
 
8039
          archive_cmds_need_lc=yes
 
8040
          # This is similar to how AIX traditionally builds its shared libraries.
 
8041
          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'
 
8042
        fi
 
8043
      fi
 
8044
      ;;
 
8045
 
 
8046
    amigaos*)
 
8047
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8048
      hardcode_libdir_flag_spec='-L$libdir'
 
8049
      hardcode_minus_L=yes
 
8050
      # see comment about different semantics on the GNU ld section
 
8051
      ld_shlibs=no
 
8052
      ;;
 
8053
 
 
8054
    bsdi[45]*)
 
8055
      export_dynamic_flag_spec=-rdynamic
 
8056
      ;;
 
8057
 
 
8058
    cygwin* | mingw* | pw32*)
 
8059
      # When not using gcc, we currently assume that we are using
 
8060
      # Microsoft Visual C++.
 
8061
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8062
      # no search path for DLLs.
 
8063
      hardcode_libdir_flag_spec=' '
 
8064
      allow_undefined_flag=unsupported
 
8065
      # Tell ltmain to make .lib files, not .a files.
 
8066
      libext=lib
 
8067
      # Tell ltmain to make .dll files, not .so files.
 
8068
      shrext_cmds=".dll"
 
8069
      # FIXME: Setting linknames here is a bad hack.
 
8070
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8071
      # The linker will automatically build a .lib file if we build a DLL.
 
8072
      old_archive_From_new_cmds='true'
 
8073
      # FIXME: Should let the user specify the lib program.
 
8074
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8075
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8076
      enable_shared_with_static_runtimes=yes
 
8077
      ;;
 
8078
 
 
8079
    darwin* | rhapsody*)
 
8080
      case $host_os in
 
8081
        rhapsody* | darwin1.[012])
 
8082
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8083
         ;;
 
8084
       *) # Darwin 1.3 on
 
8085
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8086
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8087
         else
 
8088
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8089
             10.[012])
 
8090
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8091
               ;;
 
8092
             10.*)
 
8093
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8094
               ;;
 
8095
           esac
 
8096
         fi
 
8097
         ;;
 
8098
      esac
 
8099
      archive_cmds_need_lc=no
 
8100
      hardcode_direct=no
 
8101
      hardcode_automatic=yes
 
8102
      hardcode_shlibpath_var=unsupported
 
8103
      whole_archive_flag_spec=''
 
8104
      link_all_deplibs=yes
 
8105
    if test "$GCC" = yes ; then
 
8106
        output_verbose_link_cmd='echo'
 
8107
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8108
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8109
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8110
      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}'
 
8111
      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}'
 
8112
    else
 
8113
      case $cc_basename in
 
8114
        xlc*)
 
8115
         output_verbose_link_cmd='echo'
 
8116
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8117
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8118
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8119
         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}'
 
8120
          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}'
 
8121
          ;;
 
8122
       *)
 
8123
         ld_shlibs=no
 
8124
          ;;
 
8125
      esac
 
8126
    fi
 
8127
      ;;
 
8128
 
 
8129
    dgux*)
 
8130
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8131
      hardcode_libdir_flag_spec='-L$libdir'
 
8132
      hardcode_shlibpath_var=no
 
8133
      ;;
 
8134
 
 
8135
    freebsd1*)
 
8136
      ld_shlibs=no
 
8137
      ;;
 
8138
 
 
8139
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8140
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8141
    # does not break anything, and helps significantly (at the cost of a little
 
8142
    # extra space).
 
8143
    freebsd2.2*)
 
8144
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8145
      hardcode_libdir_flag_spec='-R$libdir'
 
8146
      hardcode_direct=yes
 
8147
      hardcode_shlibpath_var=no
 
8148
      ;;
 
8149
 
 
8150
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8151
    freebsd2*)
 
8152
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8153
      hardcode_direct=yes
 
8154
      hardcode_minus_L=yes
 
8155
      hardcode_shlibpath_var=no
 
8156
      ;;
 
8157
 
 
8158
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8159
    freebsd* | dragonfly*)
 
8160
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8161
      hardcode_libdir_flag_spec='-R$libdir'
 
8162
      hardcode_direct=yes
 
8163
      hardcode_shlibpath_var=no
 
8164
      ;;
 
8165
 
 
8166
    hpux9*)
 
8167
      if test "$GCC" = yes; then
 
8168
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8169
      else
 
8170
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8171
      fi
 
8172
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8173
      hardcode_libdir_separator=:
 
8174
      hardcode_direct=yes
 
8175
 
 
8176
      # hardcode_minus_L: Not really in the search PATH,
 
8177
      # but as the default location of the library.
 
8178
      hardcode_minus_L=yes
 
8179
      export_dynamic_flag_spec='${wl}-E'
 
8180
      ;;
 
8181
 
 
8182
    hpux10*)
 
8183
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8184
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8185
      else
 
8186
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8187
      fi
 
8188
      if test "$with_gnu_ld" = no; then
 
8189
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8190
        hardcode_libdir_separator=:
 
8191
 
 
8192
        hardcode_direct=yes
 
8193
        export_dynamic_flag_spec='${wl}-E'
 
8194
 
 
8195
        # hardcode_minus_L: Not really in the search PATH,
 
8196
        # but as the default location of the library.
 
8197
        hardcode_minus_L=yes
 
8198
      fi
 
8199
      ;;
 
8200
 
 
8201
    hpux11*)
 
8202
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8203
        case $host_cpu in
 
8204
        hppa*64*)
 
8205
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8206
          ;;
 
8207
        ia64*)
 
8208
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8209
          ;;
 
8210
        *)
 
8211
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8212
          ;;
 
8213
        esac
 
8214
      else
 
8215
        case $host_cpu in
 
8216
        hppa*64*)
 
8217
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8218
          ;;
 
8219
        ia64*)
 
8220
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8221
          ;;
 
8222
        *)
 
8223
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8224
          ;;
 
8225
        esac
 
8226
      fi
 
8227
      if test "$with_gnu_ld" = no; then
 
8228
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8229
        hardcode_libdir_separator=:
 
8230
 
 
8231
        case $host_cpu in
 
8232
        hppa*64*|ia64*)
 
8233
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8234
          hardcode_direct=no
 
8235
          hardcode_shlibpath_var=no
 
8236
          ;;
 
8237
        *)
 
8238
          hardcode_direct=yes
 
8239
          export_dynamic_flag_spec='${wl}-E'
 
8240
 
 
8241
          # hardcode_minus_L: Not really in the search PATH,
 
8242
          # but as the default location of the library.
 
8243
          hardcode_minus_L=yes
 
8244
          ;;
 
8245
        esac
 
8246
      fi
 
8247
      ;;
 
8248
 
 
8249
    irix5* | irix6* | nonstopux*)
 
8250
      if test "$GCC" = yes; then
 
8251
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8252
      else
 
8253
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8254
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8255
      fi
 
8256
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8257
      hardcode_libdir_separator=:
 
8258
      link_all_deplibs=yes
 
8259
      ;;
 
8260
 
 
8261
    netbsd* | netbsdelf*-gnu)
 
8262
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8263
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8264
      else
 
8265
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8266
      fi
 
8267
      hardcode_libdir_flag_spec='-R$libdir'
 
8268
      hardcode_direct=yes
 
8269
      hardcode_shlibpath_var=no
 
8270
      ;;
 
8271
 
 
8272
    newsos6)
 
8273
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8274
      hardcode_direct=yes
 
8275
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8276
      hardcode_libdir_separator=:
 
8277
      hardcode_shlibpath_var=no
 
8278
      ;;
 
8279
 
 
8280
    openbsd*)
 
8281
      hardcode_direct=yes
 
8282
      hardcode_shlibpath_var=no
 
8283
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8284
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8285
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8286
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8287
        export_dynamic_flag_spec='${wl}-E'
 
8288
      else
 
8289
       case $host_os in
 
8290
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8291
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8292
           hardcode_libdir_flag_spec='-R$libdir'
 
8293
           ;;
 
8294
         *)
 
8295
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8296
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8297
           ;;
 
8298
       esac
 
8299
      fi
 
8300
      ;;
 
8301
 
 
8302
    os2*)
 
8303
      hardcode_libdir_flag_spec='-L$libdir'
 
8304
      hardcode_minus_L=yes
 
8305
      allow_undefined_flag=unsupported
 
8306
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
8307
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8308
      ;;
 
8309
 
 
8310
    osf3*)
 
8311
      if test "$GCC" = yes; then
 
8312
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8313
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8314
      else
 
8315
        allow_undefined_flag=' -expect_unresolved \*'
 
8316
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8317
      fi
 
8318
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8319
      hardcode_libdir_separator=:
 
8320
      ;;
 
8321
 
 
8322
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8323
      if test "$GCC" = yes; then
 
8324
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8325
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8326
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8327
      else
 
8328
        allow_undefined_flag=' -expect_unresolved \*'
 
8329
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8330
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8331
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
8332
 
 
8333
        # Both c and cxx compiler support -rpath directly
 
8334
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8335
      fi
 
8336
      hardcode_libdir_separator=:
 
8337
      ;;
 
8338
 
 
8339
    solaris*)
 
8340
      no_undefined_flag=' -z text'
 
8341
      if test "$GCC" = yes; then
 
8342
        wlarc='${wl}'
 
8343
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8344
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8345
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8346
      else
 
8347
        wlarc=''
 
8348
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8349
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8350
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8351
      fi
 
8352
      hardcode_libdir_flag_spec='-R$libdir'
 
8353
      hardcode_shlibpath_var=no
 
8354
      case $host_os in
 
8355
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8356
      *)
 
8357
        # The compiler driver will combine linker options so we
 
8358
        # cannot just pass the convience library names through
 
8359
        # without $wl, iff we do not link with $LD.
 
8360
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8361
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8362
        case $wlarc in
 
8363
        '')
 
8364
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8365
        *)
 
8366
          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' ;;
 
8367
        esac ;;
 
8368
      esac
 
8369
      link_all_deplibs=yes
 
8370
      ;;
 
8371
 
 
8372
    sunos4*)
 
8373
      if test "x$host_vendor" = xsequent; then
 
8374
        # Use $CC to link under sequent, because it throws in some extra .o
 
8375
        # files that make .init and .fini sections work.
 
8376
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8377
      else
 
8378
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8379
      fi
 
8380
      hardcode_libdir_flag_spec='-L$libdir'
 
8381
      hardcode_direct=yes
 
8382
      hardcode_minus_L=yes
 
8383
      hardcode_shlibpath_var=no
 
8384
      ;;
 
8385
 
 
8386
    sysv4)
 
8387
      case $host_vendor in
 
8388
        sni)
 
8389
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8390
          hardcode_direct=yes # is this really true???
 
8391
        ;;
 
8392
        siemens)
 
8393
          ## LD is ld it makes a PLAMLIB
 
8394
          ## CC just makes a GrossModule.
 
8395
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8396
          reload_cmds='$CC -r -o $output$reload_objs'
 
8397
          hardcode_direct=no
 
8398
        ;;
 
8399
        motorola)
 
8400
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8401
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8402
        ;;
 
8403
      esac
 
8404
      runpath_var='LD_RUN_PATH'
 
8405
      hardcode_shlibpath_var=no
 
8406
      ;;
 
8407
 
 
8408
    sysv4.3*)
 
8409
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8410
      hardcode_shlibpath_var=no
 
8411
      export_dynamic_flag_spec='-Bexport'
 
8412
      ;;
 
8413
 
 
8414
    sysv4*MP*)
 
8415
      if test -d /usr/nec; then
 
8416
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8417
        hardcode_shlibpath_var=no
 
8418
        runpath_var=LD_RUN_PATH
 
8419
        hardcode_runpath_var=yes
 
8420
        ld_shlibs=yes
 
8421
      fi
 
8422
      ;;
 
8423
 
 
8424
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8425
      no_undefined_flag='${wl}-z,text'
 
8426
      archive_cmds_need_lc=no
 
8427
      hardcode_shlibpath_var=no
 
8428
      runpath_var='LD_RUN_PATH'
 
8429
 
 
8430
      if test "$GCC" = yes; then
 
8431
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8432
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8433
      else
 
8434
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8435
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8436
      fi
 
8437
      ;;
 
8438
 
 
8439
    sysv5* | sco3.2v5* | sco5v6*)
 
8440
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8441
      # link with -lc, and that would cause any symbols used from libc to
 
8442
      # always be unresolved, which means just about no library would
 
8443
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8444
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8445
      # as -z defs.
 
8446
      no_undefined_flag='${wl}-z,text'
 
8447
      allow_undefined_flag='${wl}-z,nodefs'
 
8448
      archive_cmds_need_lc=no
 
8449
      hardcode_shlibpath_var=no
 
8450
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8451
      hardcode_libdir_separator=':'
 
8452
      link_all_deplibs=yes
 
8453
      export_dynamic_flag_spec='${wl}-Bexport'
 
8454
      runpath_var='LD_RUN_PATH'
 
8455
 
 
8456
      if test "$GCC" = yes; then
 
8457
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8458
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8459
      else
 
8460
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8461
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8462
      fi
 
8463
      ;;
 
8464
 
 
8465
    uts4*)
 
8466
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8467
      hardcode_libdir_flag_spec='-L$libdir'
 
8468
      hardcode_shlibpath_var=no
 
8469
      ;;
 
8470
 
 
8471
    *)
 
8472
      ld_shlibs=no
 
8473
      ;;
 
8474
    esac
 
8475
  fi
 
8476
 
 
8477
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8478
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8479
test "$ld_shlibs" = no && can_build_shared=no
 
8480
 
 
8481
#
 
8482
# Do we need to explicitly link libc?
 
8483
#
 
8484
case "x$archive_cmds_need_lc" in
 
8485
x|xyes)
 
8486
  # Assume -lc should be added
 
8487
  archive_cmds_need_lc=yes
 
8488
 
 
8489
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8490
    case $archive_cmds in
 
8491
    *'~'*)
 
8492
      # FIXME: we may have to deal with multi-command sequences.
 
8493
      ;;
 
8494
    '$CC '*)
 
8495
      # Test whether the compiler implicitly links with -lc since on some
 
8496
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8497
      # to ld, don't add -lc before -lgcc.
 
8498
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8499
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8500
      $rm conftest*
 
8501
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8502
 
 
8503
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8504
  (eval $ac_compile) 2>&5
 
8505
  ac_status=$?
 
8506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8507
  (exit $ac_status); } 2>conftest.err; then
 
8508
        soname=conftest
 
8509
        lib=conftest
 
8510
        libobjs=conftest.$ac_objext
 
8511
        deplibs=
 
8512
        wl=$lt_prog_compiler_wl
 
8513
        pic_flag=$lt_prog_compiler_pic
 
8514
        compiler_flags=-v
 
8515
        linker_flags=-v
 
8516
        verstring=
 
8517
        output_objdir=.
 
8518
        libname=conftest
 
8519
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8520
        allow_undefined_flag=
 
8521
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8522
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8523
  ac_status=$?
 
8524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8525
  (exit $ac_status); }
 
8526
        then
 
8527
          archive_cmds_need_lc=no
 
8528
        else
 
8529
          archive_cmds_need_lc=yes
 
8530
        fi
 
8531
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8532
      else
 
8533
        cat conftest.err 1>&5
 
8534
      fi
 
8535
      $rm conftest*
 
8536
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8537
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8538
      ;;
 
8539
    esac
 
8540
  fi
 
8541
  ;;
 
8542
esac
 
8543
 
 
8544
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8545
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8546
library_names_spec=
 
8547
libname_spec='lib$name'
 
8548
soname_spec=
 
8549
shrext_cmds=".so"
 
8550
postinstall_cmds=
 
8551
postuninstall_cmds=
 
8552
finish_cmds=
 
8553
finish_eval=
 
8554
shlibpath_var=
 
8555
shlibpath_overrides_runpath=unknown
 
8556
version_type=none
 
8557
dynamic_linker="$host_os ld.so"
 
8558
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8559
if test "$GCC" = yes; then
 
8560
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8561
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8562
    # if the path contains ";" then we assume it to be the separator
 
8563
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8564
    # assumed that no part of a normal pathname contains ";" but that should
 
8565
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8566
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8567
  else
 
8568
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8569
  fi
 
8570
else
 
8571
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8572
fi
 
8573
need_lib_prefix=unknown
 
8574
hardcode_into_libs=no
 
8575
 
 
8576
# when you set need_version to no, make sure it does not cause -set_version
 
8577
# flags to be left without arguments
 
8578
need_version=unknown
 
8579
 
 
8580
case $host_os in
 
8581
aix3*)
 
8582
  version_type=linux
 
8583
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8584
  shlibpath_var=LIBPATH
 
8585
 
 
8586
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8587
  soname_spec='${libname}${release}${shared_ext}$major'
 
8588
  ;;
 
8589
 
 
8590
aix4* | aix5*)
 
8591
  version_type=linux
 
8592
  need_lib_prefix=no
 
8593
  need_version=no
 
8594
  hardcode_into_libs=yes
 
8595
  if test "$host_cpu" = ia64; then
 
8596
    # AIX 5 supports IA64
 
8597
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8598
    shlibpath_var=LD_LIBRARY_PATH
 
8599
  else
 
8600
    # With GCC up to 2.95.x, collect2 would create an import file
 
8601
    # for dependence libraries.  The import file would start with
 
8602
    # the line `#! .'.  This would cause the generated library to
 
8603
    # depend on `.', always an invalid library.  This was fixed in
 
8604
    # development snapshots of GCC prior to 3.0.
 
8605
    case $host_os in
 
8606
      aix4 | aix4.[01] | aix4.[01].*)
 
8607
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8608
           echo ' yes '
 
8609
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8610
        :
 
8611
      else
 
8612
        can_build_shared=no
 
8613
      fi
 
8614
      ;;
 
8615
    esac
 
8616
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8617
    # soname into executable. Probably we can add versioning support to
 
8618
    # collect2, so additional links can be useful in future.
 
8619
    if test "$aix_use_runtimelinking" = yes; then
 
8620
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8621
      # instead of lib<name>.a to let people know that these are not
 
8622
      # typical AIX shared libraries.
 
8623
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8624
    else
 
8625
      # We preserve .a as extension for shared libraries through AIX4.2
 
8626
      # and later when we are not doing run time linking.
 
8627
      library_names_spec='${libname}${release}.a $libname.a'
 
8628
      soname_spec='${libname}${release}${shared_ext}$major'
 
8629
    fi
 
8630
    shlibpath_var=LIBPATH
 
8631
  fi
 
8632
  ;;
 
8633
 
 
8634
amigaos*)
 
8635
  library_names_spec='$libname.ixlibrary $libname.a'
 
8636
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8637
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
8638
  ;;
 
8639
 
 
8640
beos*)
 
8641
  library_names_spec='${libname}${shared_ext}'
 
8642
  dynamic_linker="$host_os ld.so"
 
8643
  shlibpath_var=LIBRARY_PATH
 
8644
  ;;
 
8645
 
 
8646
bsdi[45]*)
 
8647
  version_type=linux
 
8648
  need_version=no
 
8649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8650
  soname_spec='${libname}${release}${shared_ext}$major'
 
8651
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8652
  shlibpath_var=LD_LIBRARY_PATH
 
8653
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8654
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8655
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8656
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8657
  # libtool to hard-code these into programs
 
8658
  ;;
 
8659
 
 
8660
cygwin* | mingw* | pw32*)
 
8661
  version_type=windows
 
8662
  shrext_cmds=".dll"
 
8663
  need_version=no
 
8664
  need_lib_prefix=no
 
8665
 
 
8666
  case $GCC,$host_os in
 
8667
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8668
    library_names_spec='$libname.dll.a'
 
8669
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8670
    postinstall_cmds='base_file=`basename \${file}`~
 
8671
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8672
      dldir=$destdir/`dirname \$dlpath`~
 
8673
      test -d \$dldir || mkdir -p \$dldir~
 
8674
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8675
      chmod a+x \$dldir/$dlname'
 
8676
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8677
      dlpath=$dir/\$dldll~
 
8678
       $rm \$dlpath'
 
8679
    shlibpath_overrides_runpath=yes
 
8680
 
 
8681
    case $host_os in
 
8682
    cygwin*)
 
8683
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8684
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8685
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8686
      ;;
 
8687
    mingw*)
 
8688
      # MinGW DLLs use traditional 'lib' prefix
 
8689
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8690
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8691
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8692
        # It is most probably a Windows format PATH printed by
 
8693
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8694
        # path with ; separators, and with drive letters. We can handle the
 
8695
        # drive letters (cygwin fileutils understands them), so leave them,
 
8696
        # especially as we might pass files found there to a mingw objdump,
 
8697
        # which wouldn't understand a cygwinified path. Ahh.
 
8698
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8699
      else
 
8700
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8701
      fi
 
8702
      ;;
 
8703
    pw32*)
 
8704
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8705
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8706
      ;;
 
8707
    esac
 
8708
    ;;
 
8709
 
 
8710
  *)
 
8711
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8712
    ;;
 
8713
  esac
 
8714
  dynamic_linker='Win32 ld.exe'
 
8715
  # FIXME: first we should search . and the directory the executable is in
 
8716
  shlibpath_var=PATH
 
8717
  ;;
 
8718
 
 
8719
darwin* | rhapsody*)
 
8720
  dynamic_linker="$host_os dyld"
 
8721
  version_type=darwin
 
8722
  need_lib_prefix=no
 
8723
  need_version=no
 
8724
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8725
  soname_spec='${libname}${release}${major}$shared_ext'
 
8726
  shlibpath_overrides_runpath=yes
 
8727
  shlibpath_var=DYLD_LIBRARY_PATH
 
8728
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8729
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8730
  if test "$GCC" = yes; then
 
8731
    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"`
 
8732
  else
 
8733
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8734
  fi
 
8735
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8736
  ;;
 
8737
 
 
8738
dgux*)
 
8739
  version_type=linux
 
8740
  need_lib_prefix=no
 
8741
  need_version=no
 
8742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8743
  soname_spec='${libname}${release}${shared_ext}$major'
 
8744
  shlibpath_var=LD_LIBRARY_PATH
 
8745
  ;;
 
8746
 
 
8747
freebsd1*)
 
8748
  dynamic_linker=no
 
8749
  ;;
 
8750
 
 
8751
freebsd* | dragonfly*)
 
8752
  # DragonFly does not have aout.  When/if they implement a new
 
8753
  # versioning mechanism, adjust this.
 
8754
  if test -x /usr/bin/objformat; then
 
8755
    objformat=`/usr/bin/objformat`
 
8756
  else
 
8757
    case $host_os in
 
8758
    freebsd[123]*) objformat=aout ;;
 
8759
    *) objformat=elf ;;
 
8760
    esac
 
8761
  fi
 
8762
  version_type=freebsd-$objformat
 
8763
  case $version_type in
 
8764
    freebsd-elf*)
 
8765
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8766
      need_version=no
 
8767
      need_lib_prefix=no
 
8768
      ;;
 
8769
    freebsd-*)
 
8770
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8771
      need_version=yes
 
8772
      ;;
 
8773
  esac
 
8774
  shlibpath_var=LD_LIBRARY_PATH
 
8775
  case $host_os in
 
8776
  freebsd2*)
 
8777
    shlibpath_overrides_runpath=yes
 
8778
    ;;
 
8779
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8780
    shlibpath_overrides_runpath=yes
 
8781
    hardcode_into_libs=yes
 
8782
    ;;
 
8783
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8784
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8785
    shlibpath_overrides_runpath=no
 
8786
    hardcode_into_libs=yes
 
8787
    ;;
 
8788
  freebsd*) # from 4.6 on
 
8789
    shlibpath_overrides_runpath=yes
 
8790
    hardcode_into_libs=yes
 
8791
    ;;
 
8792
  esac
 
8793
  ;;
 
8794
 
 
8795
gnu*)
 
8796
  version_type=linux
 
8797
  need_lib_prefix=no
 
8798
  need_version=no
 
8799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8800
  soname_spec='${libname}${release}${shared_ext}$major'
 
8801
  shlibpath_var=LD_LIBRARY_PATH
 
8802
  hardcode_into_libs=yes
 
8803
  ;;
 
8804
 
 
8805
hpux9* | hpux10* | hpux11*)
 
8806
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8807
  # link against other versions.
 
8808
  version_type=sunos
 
8809
  need_lib_prefix=no
 
8810
  need_version=no
 
8811
  case $host_cpu in
 
8812
  ia64*)
 
8813
    shrext_cmds='.so'
 
8814
    hardcode_into_libs=yes
 
8815
    dynamic_linker="$host_os dld.so"
 
8816
    shlibpath_var=LD_LIBRARY_PATH
 
8817
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8818
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8819
    soname_spec='${libname}${release}${shared_ext}$major'
 
8820
    if test "X$HPUX_IA64_MODE" = X32; then
 
8821
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8822
    else
 
8823
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8824
    fi
 
8825
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8826
    ;;
 
8827
   hppa*64*)
 
8828
     shrext_cmds='.sl'
 
8829
     hardcode_into_libs=yes
 
8830
     dynamic_linker="$host_os dld.sl"
 
8831
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8832
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8833
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8834
     soname_spec='${libname}${release}${shared_ext}$major'
 
8835
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8836
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8837
     ;;
 
8838
   *)
 
8839
    shrext_cmds='.sl'
 
8840
    dynamic_linker="$host_os dld.sl"
 
8841
    shlibpath_var=SHLIB_PATH
 
8842
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8843
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8844
    soname_spec='${libname}${release}${shared_ext}$major'
 
8845
    ;;
 
8846
  esac
 
8847
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8848
  postinstall_cmds='chmod 555 $lib'
 
8849
  ;;
 
8850
 
 
8851
interix3*)
 
8852
  version_type=linux
 
8853
  need_lib_prefix=no
 
8854
  need_version=no
 
8855
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8856
  soname_spec='${libname}${release}${shared_ext}$major'
 
8857
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8858
  shlibpath_var=LD_LIBRARY_PATH
 
8859
  shlibpath_overrides_runpath=no
 
8860
  hardcode_into_libs=yes
 
8861
  ;;
 
8862
 
 
8863
irix5* | irix6* | nonstopux*)
 
8864
  case $host_os in
 
8865
    nonstopux*) version_type=nonstopux ;;
 
8866
    *)
 
8867
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8868
                version_type=linux
 
8869
        else
 
8870
                version_type=irix
 
8871
        fi ;;
 
8872
  esac
 
8873
  need_lib_prefix=no
 
8874
  need_version=no
 
8875
  soname_spec='${libname}${release}${shared_ext}$major'
 
8876
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8877
  case $host_os in
 
8878
  irix5* | nonstopux*)
 
8879
    libsuff= shlibsuff=
 
8880
    ;;
 
8881
  *)
 
8882
    case $LD in # libtool.m4 will add one of these switches to LD
 
8883
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8884
      libsuff= shlibsuff= libmagic=32-bit;;
 
8885
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8886
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8887
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8888
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8889
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8890
    esac
 
8891
    ;;
 
8892
  esac
 
8893
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8894
  shlibpath_overrides_runpath=no
 
8895
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8896
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8897
  hardcode_into_libs=yes
 
8898
  ;;
 
8899
 
 
8900
# No shared lib support for Linux oldld, aout, or coff.
 
8901
linux*oldld* | linux*aout* | linux*coff*)
 
8902
  dynamic_linker=no
 
8903
  ;;
 
8904
 
 
8905
# This must be Linux ELF.
 
8906
linux* | k*bsd*-gnu)
 
8907
  version_type=linux
 
8908
  need_lib_prefix=no
 
8909
  need_version=no
 
8910
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8911
  soname_spec='${libname}${release}${shared_ext}$major'
 
8912
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8913
  shlibpath_var=LD_LIBRARY_PATH
 
8914
  shlibpath_overrides_runpath=no
 
8915
  # This implies no fast_install, which is unacceptable.
 
8916
  # Some rework will be needed to allow for fast_install
 
8917
  # before this can be enabled.
 
8918
  hardcode_into_libs=yes
 
8919
 
 
8920
  # Append ld.so.conf contents to the search path
 
8921
  if test -f /etc/ld.so.conf; then
 
8922
    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' ' '`
 
8923
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8924
  fi
 
8925
 
 
8926
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8927
  # powerpc, because MkLinux only supported shared libraries with the
 
8928
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8929
  # most powerpc-linux boxes support dynamic linking these days and
 
8930
  # people can always --disable-shared, the test was removed, and we
 
8931
  # assume the GNU/Linux dynamic linker is in use.
 
8932
  dynamic_linker='GNU/Linux ld.so'
 
8933
  ;;
 
8934
 
 
8935
netbsdelf*-gnu)
 
8936
  version_type=linux
 
8937
  need_lib_prefix=no
 
8938
  need_version=no
 
8939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8940
  soname_spec='${libname}${release}${shared_ext}$major'
 
8941
  shlibpath_var=LD_LIBRARY_PATH
 
8942
  shlibpath_overrides_runpath=no
 
8943
  hardcode_into_libs=yes
 
8944
  dynamic_linker='NetBSD ld.elf_so'
 
8945
  ;;
 
8946
 
 
8947
netbsd*)
 
8948
  version_type=sunos
 
8949
  need_lib_prefix=no
 
8950
  need_version=no
 
8951
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8952
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8953
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8954
    dynamic_linker='NetBSD (a.out) ld.so'
 
8955
  else
 
8956
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8957
    soname_spec='${libname}${release}${shared_ext}$major'
 
8958
    dynamic_linker='NetBSD ld.elf_so'
 
8959
  fi
 
8960
  shlibpath_var=LD_LIBRARY_PATH
 
8961
  shlibpath_overrides_runpath=yes
 
8962
  hardcode_into_libs=yes
 
8963
  ;;
 
8964
 
 
8965
newsos6)
 
8966
  version_type=linux
 
8967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8968
  shlibpath_var=LD_LIBRARY_PATH
 
8969
  shlibpath_overrides_runpath=yes
 
8970
  ;;
 
8971
 
 
8972
nto-qnx*)
 
8973
  version_type=linux
 
8974
  need_lib_prefix=no
 
8975
  need_version=no
 
8976
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8977
  soname_spec='${libname}${release}${shared_ext}$major'
 
8978
  shlibpath_var=LD_LIBRARY_PATH
 
8979
  shlibpath_overrides_runpath=yes
 
8980
  ;;
 
8981
 
 
8982
openbsd*)
 
8983
  version_type=sunos
 
8984
  sys_lib_dlsearch_path_spec="/usr/lib"
 
8985
  need_lib_prefix=no
 
8986
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8987
  case $host_os in
 
8988
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8989
    *)                         need_version=no  ;;
 
8990
  esac
 
8991
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8992
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8993
  shlibpath_var=LD_LIBRARY_PATH
 
8994
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8995
    case $host_os in
 
8996
      openbsd2.[89] | openbsd2.[89].*)
 
8997
        shlibpath_overrides_runpath=no
 
8998
        ;;
 
8999
      *)
 
9000
        shlibpath_overrides_runpath=yes
 
9001
        ;;
 
9002
      esac
 
9003
  else
 
9004
    shlibpath_overrides_runpath=yes
 
9005
  fi
 
9006
  ;;
 
9007
 
 
9008
os2*)
 
9009
  libname_spec='$name'
 
9010
  shrext_cmds=".dll"
 
9011
  need_lib_prefix=no
 
9012
  library_names_spec='$libname${shared_ext} $libname.a'
 
9013
  dynamic_linker='OS/2 ld.exe'
 
9014
  shlibpath_var=LIBPATH
 
9015
  ;;
 
9016
 
 
9017
osf3* | osf4* | osf5*)
 
9018
  version_type=osf
 
9019
  need_lib_prefix=no
 
9020
  need_version=no
 
9021
  soname_spec='${libname}${release}${shared_ext}$major'
 
9022
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9023
  shlibpath_var=LD_LIBRARY_PATH
 
9024
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9025
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9026
  ;;
 
9027
 
 
9028
solaris*)
 
9029
  version_type=linux
 
9030
  need_lib_prefix=no
 
9031
  need_version=no
 
9032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9033
  soname_spec='${libname}${release}${shared_ext}$major'
 
9034
  shlibpath_var=LD_LIBRARY_PATH
 
9035
  shlibpath_overrides_runpath=yes
 
9036
  hardcode_into_libs=yes
 
9037
  # ldd complains unless libraries are executable
 
9038
  postinstall_cmds='chmod +x $lib'
 
9039
  ;;
 
9040
 
 
9041
sunos4*)
 
9042
  version_type=sunos
 
9043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9044
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9045
  shlibpath_var=LD_LIBRARY_PATH
 
9046
  shlibpath_overrides_runpath=yes
 
9047
  if test "$with_gnu_ld" = yes; then
 
9048
    need_lib_prefix=no
 
9049
  fi
 
9050
  need_version=yes
 
9051
  ;;
 
9052
 
 
9053
sysv4 | sysv4.3*)
 
9054
  version_type=linux
 
9055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9056
  soname_spec='${libname}${release}${shared_ext}$major'
 
9057
  shlibpath_var=LD_LIBRARY_PATH
 
9058
  case $host_vendor in
 
9059
    sni)
 
9060
      shlibpath_overrides_runpath=no
 
9061
      need_lib_prefix=no
 
9062
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9063
      runpath_var=LD_RUN_PATH
 
9064
      ;;
 
9065
    siemens)
 
9066
      need_lib_prefix=no
 
9067
      ;;
 
9068
    motorola)
 
9069
      need_lib_prefix=no
 
9070
      need_version=no
 
9071
      shlibpath_overrides_runpath=no
 
9072
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9073
      ;;
 
9074
  esac
 
9075
  ;;
 
9076
 
 
9077
sysv4*MP*)
 
9078
  if test -d /usr/nec ;then
 
9079
    version_type=linux
 
9080
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9081
    soname_spec='$libname${shared_ext}.$major'
 
9082
    shlibpath_var=LD_LIBRARY_PATH
 
9083
  fi
 
9084
  ;;
 
9085
 
 
9086
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9087
  version_type=freebsd-elf
 
9088
  need_lib_prefix=no
 
9089
  need_version=no
 
9090
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9091
  soname_spec='${libname}${release}${shared_ext}$major'
 
9092
  shlibpath_var=LD_LIBRARY_PATH
 
9093
  hardcode_into_libs=yes
 
9094
  if test "$with_gnu_ld" = yes; then
 
9095
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9096
    shlibpath_overrides_runpath=no
 
9097
  else
 
9098
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9099
    shlibpath_overrides_runpath=yes
 
9100
    case $host_os in
 
9101
      sco3.2v5*)
 
9102
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9103
        ;;
 
9104
    esac
 
9105
  fi
 
9106
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9107
  ;;
 
9108
 
 
9109
uts4*)
 
9110
  version_type=linux
 
9111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9112
  soname_spec='${libname}${release}${shared_ext}$major'
 
9113
  shlibpath_var=LD_LIBRARY_PATH
 
9114
  ;;
 
9115
 
 
9116
*)
 
9117
  dynamic_linker=no
 
9118
  ;;
 
9119
esac
 
9120
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9121
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9122
test "$dynamic_linker" = no && can_build_shared=no
 
9123
 
 
9124
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9125
if test "$GCC" = yes; then
 
9126
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9127
fi
 
9128
 
 
9129
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9130
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9131
hardcode_action=
 
9132
if test -n "$hardcode_libdir_flag_spec" || \
 
9133
   test -n "$runpath_var" || \
 
9134
   test "X$hardcode_automatic" = "Xyes" ; then
 
9135
 
 
9136
  # We can hardcode non-existant directories.
 
9137
  if test "$hardcode_direct" != no &&
 
9138
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9139
     # have to relink, otherwise we might link with an installed library
 
9140
     # when we should be linking with a yet-to-be-installed one
 
9141
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9142
     test "$hardcode_minus_L" != no; then
 
9143
    # Linking always hardcodes the temporary library directory.
 
9144
    hardcode_action=relink
 
9145
  else
 
9146
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9147
    hardcode_action=immediate
 
9148
  fi
 
9149
else
 
9150
  # We cannot hardcode anything, or else we can only hardcode existing
 
9151
  # directories.
 
9152
  hardcode_action=unsupported
 
9153
fi
 
9154
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9155
echo "${ECHO_T}$hardcode_action" >&6; }
 
9156
 
 
9157
if test "$hardcode_action" = relink; then
 
9158
  # Fast installation is not supported
 
9159
  enable_fast_install=no
 
9160
elif test "$shlibpath_overrides_runpath" = yes ||
 
9161
     test "$enable_shared" = no; then
 
9162
  # Fast installation is not necessary
 
9163
  enable_fast_install=needless
 
9164
fi
 
9165
 
 
9166
striplib=
 
9167
old_striplib=
 
9168
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9169
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9170
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9171
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9172
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9173
  { echo "$as_me:$LINENO: result: yes" >&5
 
9174
echo "${ECHO_T}yes" >&6; }
 
9175
else
 
9176
# FIXME - insert some real tests, host_os isn't really good enough
 
9177
  case $host_os in
 
9178
   darwin*)
 
9179
       if test -n "$STRIP" ; then
 
9180
         striplib="$STRIP -x"
 
9181
         { echo "$as_me:$LINENO: result: yes" >&5
 
9182
echo "${ECHO_T}yes" >&6; }
 
9183
       else
 
9184
  { echo "$as_me:$LINENO: result: no" >&5
 
9185
echo "${ECHO_T}no" >&6; }
 
9186
fi
 
9187
       ;;
 
9188
   *)
 
9189
  { echo "$as_me:$LINENO: result: no" >&5
 
9190
echo "${ECHO_T}no" >&6; }
 
9191
    ;;
 
9192
  esac
 
9193
fi
 
9194
 
 
9195
if test "x$enable_dlopen" != xyes; then
 
9196
  enable_dlopen=unknown
 
9197
  enable_dlopen_self=unknown
 
9198
  enable_dlopen_self_static=unknown
 
9199
else
 
9200
  lt_cv_dlopen=no
 
9201
  lt_cv_dlopen_libs=
 
9202
 
 
9203
  case $host_os in
 
9204
  beos*)
 
9205
    lt_cv_dlopen="load_add_on"
 
9206
    lt_cv_dlopen_libs=
 
9207
    lt_cv_dlopen_self=yes
 
9208
    ;;
 
9209
 
 
9210
  mingw* | pw32*)
 
9211
    lt_cv_dlopen="LoadLibrary"
 
9212
    lt_cv_dlopen_libs=
 
9213
   ;;
 
9214
 
 
9215
  cygwin*)
 
9216
    lt_cv_dlopen="dlopen"
 
9217
    lt_cv_dlopen_libs=
 
9218
   ;;
 
9219
 
 
9220
  darwin*)
 
9221
  # if libdl is installed we need to link against it
 
9222
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9223
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9224
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9226
else
 
9227
  ac_check_lib_save_LIBS=$LIBS
 
9228
LIBS="-ldl  $LIBS"
 
9229
cat >conftest.$ac_ext <<_ACEOF
 
9230
/* confdefs.h.  */
 
9231
_ACEOF
 
9232
cat confdefs.h >>conftest.$ac_ext
 
9233
cat >>conftest.$ac_ext <<_ACEOF
 
9234
/* end confdefs.h.  */
 
9235
 
 
9236
/* Override any GCC internal prototype to avoid an error.
 
9237
   Use char because int might match the return type of a GCC
 
9238
   builtin and then its argument prototype would still apply.  */
 
9239
#ifdef __cplusplus
 
9240
extern "C"
 
9241
#endif
 
9242
char dlopen ();
 
9243
int
 
9244
main ()
 
9245
{
 
9246
return dlopen ();
 
9247
  ;
 
9248
  return 0;
 
9249
}
 
9250
_ACEOF
 
9251
rm -f conftest.$ac_objext conftest$ac_exeext
 
9252
if { (ac_try="$ac_link"
 
9253
case "(($ac_try" in
 
9254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9255
  *) ac_try_echo=$ac_try;;
 
9256
esac
 
9257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9258
  (eval "$ac_link") 2>conftest.er1
 
9259
  ac_status=$?
 
9260
  grep -v '^ *+' conftest.er1 >conftest.err
 
9261
  rm -f conftest.er1
 
9262
  cat conftest.err >&5
 
9263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9264
  (exit $ac_status); } && {
 
9265
         test -z "$ac_c_werror_flag" ||
 
9266
         test ! -s conftest.err
 
9267
       } && test -s conftest$ac_exeext &&
 
9268
       $as_test_x conftest$ac_exeext; then
 
9269
  ac_cv_lib_dl_dlopen=yes
 
9270
else
 
9271
  echo "$as_me: failed program was:" >&5
 
9272
sed 's/^/| /' conftest.$ac_ext >&5
 
9273
 
 
9274
        ac_cv_lib_dl_dlopen=no
 
9275
fi
 
9276
 
 
9277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9278
      conftest$ac_exeext conftest.$ac_ext
 
9279
LIBS=$ac_check_lib_save_LIBS
 
9280
fi
 
9281
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9282
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9283
if test $ac_cv_lib_dl_dlopen = yes; then
 
9284
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9285
else
 
9286
 
 
9287
    lt_cv_dlopen="dyld"
 
9288
    lt_cv_dlopen_libs=
 
9289
    lt_cv_dlopen_self=yes
 
9290
 
 
9291
fi
 
9292
 
 
9293
   ;;
 
9294
 
 
9295
  *)
 
9296
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9297
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9298
if test "${ac_cv_func_shl_load+set}" = set; then
 
9299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9300
else
 
9301
  cat >conftest.$ac_ext <<_ACEOF
 
9302
/* confdefs.h.  */
 
9303
_ACEOF
 
9304
cat confdefs.h >>conftest.$ac_ext
 
9305
cat >>conftest.$ac_ext <<_ACEOF
 
9306
/* end confdefs.h.  */
 
9307
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9308
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9309
#define shl_load innocuous_shl_load
 
9310
 
 
9311
/* System header to define __stub macros and hopefully few prototypes,
 
9312
    which can conflict with char shl_load (); below.
 
9313
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9314
    <limits.h> exists even on freestanding compilers.  */
 
9315
 
 
9316
#ifdef __STDC__
 
9317
# include <limits.h>
 
9318
#else
 
9319
# include <assert.h>
 
9320
#endif
 
9321
 
 
9322
#undef shl_load
 
9323
 
 
9324
/* Override any GCC internal prototype to avoid an error.
 
9325
   Use char because int might match the return type of a GCC
 
9326
   builtin and then its argument prototype would still apply.  */
 
9327
#ifdef __cplusplus
 
9328
extern "C"
 
9329
#endif
 
9330
char shl_load ();
 
9331
/* The GNU C library defines this for functions which it implements
 
9332
    to always fail with ENOSYS.  Some functions are actually named
 
9333
    something starting with __ and the normal name is an alias.  */
 
9334
#if defined __stub_shl_load || defined __stub___shl_load
 
9335
choke me
 
9336
#endif
 
9337
 
 
9338
int
 
9339
main ()
 
9340
{
 
9341
return shl_load ();
 
9342
  ;
 
9343
  return 0;
 
9344
}
 
9345
_ACEOF
 
9346
rm -f conftest.$ac_objext conftest$ac_exeext
 
9347
if { (ac_try="$ac_link"
 
9348
case "(($ac_try" in
 
9349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9350
  *) ac_try_echo=$ac_try;;
 
9351
esac
 
9352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9353
  (eval "$ac_link") 2>conftest.er1
 
9354
  ac_status=$?
 
9355
  grep -v '^ *+' conftest.er1 >conftest.err
 
9356
  rm -f conftest.er1
 
9357
  cat conftest.err >&5
 
9358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9359
  (exit $ac_status); } && {
 
9360
         test -z "$ac_c_werror_flag" ||
 
9361
         test ! -s conftest.err
 
9362
       } && test -s conftest$ac_exeext &&
 
9363
       $as_test_x conftest$ac_exeext; then
 
9364
  ac_cv_func_shl_load=yes
 
9365
else
 
9366
  echo "$as_me: failed program was:" >&5
 
9367
sed 's/^/| /' conftest.$ac_ext >&5
 
9368
 
 
9369
        ac_cv_func_shl_load=no
 
9370
fi
 
9371
 
 
9372
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9373
      conftest$ac_exeext conftest.$ac_ext
 
9374
fi
 
9375
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9376
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9377
if test $ac_cv_func_shl_load = yes; then
 
9378
  lt_cv_dlopen="shl_load"
 
9379
else
 
9380
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9381
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9382
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9383
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9384
else
 
9385
  ac_check_lib_save_LIBS=$LIBS
 
9386
LIBS="-ldld  $LIBS"
 
9387
cat >conftest.$ac_ext <<_ACEOF
 
9388
/* confdefs.h.  */
 
9389
_ACEOF
 
9390
cat confdefs.h >>conftest.$ac_ext
 
9391
cat >>conftest.$ac_ext <<_ACEOF
 
9392
/* end confdefs.h.  */
 
9393
 
 
9394
/* Override any GCC internal prototype to avoid an error.
 
9395
   Use char because int might match the return type of a GCC
 
9396
   builtin and then its argument prototype would still apply.  */
 
9397
#ifdef __cplusplus
 
9398
extern "C"
 
9399
#endif
 
9400
char shl_load ();
 
9401
int
 
9402
main ()
 
9403
{
 
9404
return shl_load ();
 
9405
  ;
 
9406
  return 0;
 
9407
}
 
9408
_ACEOF
 
9409
rm -f conftest.$ac_objext conftest$ac_exeext
 
9410
if { (ac_try="$ac_link"
 
9411
case "(($ac_try" in
 
9412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9413
  *) ac_try_echo=$ac_try;;
 
9414
esac
 
9415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9416
  (eval "$ac_link") 2>conftest.er1
 
9417
  ac_status=$?
 
9418
  grep -v '^ *+' conftest.er1 >conftest.err
 
9419
  rm -f conftest.er1
 
9420
  cat conftest.err >&5
 
9421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9422
  (exit $ac_status); } && {
 
9423
         test -z "$ac_c_werror_flag" ||
 
9424
         test ! -s conftest.err
 
9425
       } && test -s conftest$ac_exeext &&
 
9426
       $as_test_x conftest$ac_exeext; then
 
9427
  ac_cv_lib_dld_shl_load=yes
 
9428
else
 
9429
  echo "$as_me: failed program was:" >&5
 
9430
sed 's/^/| /' conftest.$ac_ext >&5
 
9431
 
 
9432
        ac_cv_lib_dld_shl_load=no
 
9433
fi
 
9434
 
 
9435
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9436
      conftest$ac_exeext conftest.$ac_ext
 
9437
LIBS=$ac_check_lib_save_LIBS
 
9438
fi
 
9439
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9440
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9441
if test $ac_cv_lib_dld_shl_load = yes; then
 
9442
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9443
else
 
9444
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9445
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9446
if test "${ac_cv_func_dlopen+set}" = set; then
 
9447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9448
else
 
9449
  cat >conftest.$ac_ext <<_ACEOF
 
9450
/* confdefs.h.  */
 
9451
_ACEOF
 
9452
cat confdefs.h >>conftest.$ac_ext
 
9453
cat >>conftest.$ac_ext <<_ACEOF
 
9454
/* end confdefs.h.  */
 
9455
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9456
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9457
#define dlopen innocuous_dlopen
 
9458
 
 
9459
/* System header to define __stub macros and hopefully few prototypes,
 
9460
    which can conflict with char dlopen (); below.
 
9461
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9462
    <limits.h> exists even on freestanding compilers.  */
 
9463
 
 
9464
#ifdef __STDC__
 
9465
# include <limits.h>
 
9466
#else
 
9467
# include <assert.h>
 
9468
#endif
 
9469
 
 
9470
#undef dlopen
 
9471
 
 
9472
/* Override any GCC internal prototype to avoid an error.
 
9473
   Use char because int might match the return type of a GCC
 
9474
   builtin and then its argument prototype would still apply.  */
 
9475
#ifdef __cplusplus
 
9476
extern "C"
 
9477
#endif
 
9478
char dlopen ();
 
9479
/* The GNU C library defines this for functions which it implements
 
9480
    to always fail with ENOSYS.  Some functions are actually named
 
9481
    something starting with __ and the normal name is an alias.  */
 
9482
#if defined __stub_dlopen || defined __stub___dlopen
 
9483
choke me
 
9484
#endif
 
9485
 
 
9486
int
 
9487
main ()
 
9488
{
 
9489
return dlopen ();
 
9490
  ;
 
9491
  return 0;
 
9492
}
 
9493
_ACEOF
 
9494
rm -f conftest.$ac_objext conftest$ac_exeext
 
9495
if { (ac_try="$ac_link"
 
9496
case "(($ac_try" in
 
9497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9498
  *) ac_try_echo=$ac_try;;
 
9499
esac
 
9500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9501
  (eval "$ac_link") 2>conftest.er1
 
9502
  ac_status=$?
 
9503
  grep -v '^ *+' conftest.er1 >conftest.err
 
9504
  rm -f conftest.er1
 
9505
  cat conftest.err >&5
 
9506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9507
  (exit $ac_status); } && {
 
9508
         test -z "$ac_c_werror_flag" ||
 
9509
         test ! -s conftest.err
 
9510
       } && test -s conftest$ac_exeext &&
 
9511
       $as_test_x conftest$ac_exeext; then
 
9512
  ac_cv_func_dlopen=yes
 
9513
else
 
9514
  echo "$as_me: failed program was:" >&5
 
9515
sed 's/^/| /' conftest.$ac_ext >&5
 
9516
 
 
9517
        ac_cv_func_dlopen=no
 
9518
fi
 
9519
 
 
9520
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9521
      conftest$ac_exeext conftest.$ac_ext
 
9522
fi
 
9523
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9524
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9525
if test $ac_cv_func_dlopen = yes; then
 
9526
  lt_cv_dlopen="dlopen"
 
9527
else
 
9528
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9529
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9530
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9532
else
 
9533
  ac_check_lib_save_LIBS=$LIBS
 
9534
LIBS="-ldl  $LIBS"
 
9535
cat >conftest.$ac_ext <<_ACEOF
 
9536
/* confdefs.h.  */
 
9537
_ACEOF
 
9538
cat confdefs.h >>conftest.$ac_ext
 
9539
cat >>conftest.$ac_ext <<_ACEOF
 
9540
/* end confdefs.h.  */
 
9541
 
 
9542
/* Override any GCC internal prototype to avoid an error.
 
9543
   Use char because int might match the return type of a GCC
 
9544
   builtin and then its argument prototype would still apply.  */
 
9545
#ifdef __cplusplus
 
9546
extern "C"
 
9547
#endif
 
9548
char dlopen ();
 
9549
int
 
9550
main ()
 
9551
{
 
9552
return dlopen ();
 
9553
  ;
 
9554
  return 0;
 
9555
}
 
9556
_ACEOF
 
9557
rm -f conftest.$ac_objext conftest$ac_exeext
 
9558
if { (ac_try="$ac_link"
 
9559
case "(($ac_try" in
 
9560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9561
  *) ac_try_echo=$ac_try;;
 
9562
esac
 
9563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9564
  (eval "$ac_link") 2>conftest.er1
 
9565
  ac_status=$?
 
9566
  grep -v '^ *+' conftest.er1 >conftest.err
 
9567
  rm -f conftest.er1
 
9568
  cat conftest.err >&5
 
9569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9570
  (exit $ac_status); } && {
 
9571
         test -z "$ac_c_werror_flag" ||
 
9572
         test ! -s conftest.err
 
9573
       } && test -s conftest$ac_exeext &&
 
9574
       $as_test_x conftest$ac_exeext; then
 
9575
  ac_cv_lib_dl_dlopen=yes
 
9576
else
 
9577
  echo "$as_me: failed program was:" >&5
 
9578
sed 's/^/| /' conftest.$ac_ext >&5
 
9579
 
 
9580
        ac_cv_lib_dl_dlopen=no
 
9581
fi
 
9582
 
 
9583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9584
      conftest$ac_exeext conftest.$ac_ext
 
9585
LIBS=$ac_check_lib_save_LIBS
 
9586
fi
 
9587
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9588
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9589
if test $ac_cv_lib_dl_dlopen = yes; then
 
9590
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9591
else
 
9592
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9593
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9594
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9596
else
 
9597
  ac_check_lib_save_LIBS=$LIBS
 
9598
LIBS="-lsvld  $LIBS"
 
9599
cat >conftest.$ac_ext <<_ACEOF
 
9600
/* confdefs.h.  */
 
9601
_ACEOF
 
9602
cat confdefs.h >>conftest.$ac_ext
 
9603
cat >>conftest.$ac_ext <<_ACEOF
 
9604
/* end confdefs.h.  */
 
9605
 
 
9606
/* Override any GCC internal prototype to avoid an error.
 
9607
   Use char because int might match the return type of a GCC
 
9608
   builtin and then its argument prototype would still apply.  */
 
9609
#ifdef __cplusplus
 
9610
extern "C"
 
9611
#endif
 
9612
char dlopen ();
 
9613
int
 
9614
main ()
 
9615
{
 
9616
return dlopen ();
 
9617
  ;
 
9618
  return 0;
 
9619
}
 
9620
_ACEOF
 
9621
rm -f conftest.$ac_objext conftest$ac_exeext
 
9622
if { (ac_try="$ac_link"
 
9623
case "(($ac_try" in
 
9624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9625
  *) ac_try_echo=$ac_try;;
 
9626
esac
 
9627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9628
  (eval "$ac_link") 2>conftest.er1
 
9629
  ac_status=$?
 
9630
  grep -v '^ *+' conftest.er1 >conftest.err
 
9631
  rm -f conftest.er1
 
9632
  cat conftest.err >&5
 
9633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9634
  (exit $ac_status); } && {
 
9635
         test -z "$ac_c_werror_flag" ||
 
9636
         test ! -s conftest.err
 
9637
       } && test -s conftest$ac_exeext &&
 
9638
       $as_test_x conftest$ac_exeext; then
 
9639
  ac_cv_lib_svld_dlopen=yes
 
9640
else
 
9641
  echo "$as_me: failed program was:" >&5
 
9642
sed 's/^/| /' conftest.$ac_ext >&5
 
9643
 
 
9644
        ac_cv_lib_svld_dlopen=no
 
9645
fi
 
9646
 
 
9647
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9648
      conftest$ac_exeext conftest.$ac_ext
 
9649
LIBS=$ac_check_lib_save_LIBS
 
9650
fi
 
9651
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9652
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
9653
if test $ac_cv_lib_svld_dlopen = yes; then
 
9654
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9655
else
 
9656
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9657
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
9658
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9660
else
 
9661
  ac_check_lib_save_LIBS=$LIBS
 
9662
LIBS="-ldld  $LIBS"
 
9663
cat >conftest.$ac_ext <<_ACEOF
 
9664
/* confdefs.h.  */
 
9665
_ACEOF
 
9666
cat confdefs.h >>conftest.$ac_ext
 
9667
cat >>conftest.$ac_ext <<_ACEOF
 
9668
/* end confdefs.h.  */
 
9669
 
 
9670
/* Override any GCC internal prototype to avoid an error.
 
9671
   Use char because int might match the return type of a GCC
 
9672
   builtin and then its argument prototype would still apply.  */
 
9673
#ifdef __cplusplus
 
9674
extern "C"
 
9675
#endif
 
9676
char dld_link ();
 
9677
int
 
9678
main ()
 
9679
{
 
9680
return dld_link ();
 
9681
  ;
 
9682
  return 0;
 
9683
}
 
9684
_ACEOF
 
9685
rm -f conftest.$ac_objext conftest$ac_exeext
 
9686
if { (ac_try="$ac_link"
 
9687
case "(($ac_try" in
 
9688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9689
  *) ac_try_echo=$ac_try;;
 
9690
esac
 
9691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9692
  (eval "$ac_link") 2>conftest.er1
 
9693
  ac_status=$?
 
9694
  grep -v '^ *+' conftest.er1 >conftest.err
 
9695
  rm -f conftest.er1
 
9696
  cat conftest.err >&5
 
9697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9698
  (exit $ac_status); } && {
 
9699
         test -z "$ac_c_werror_flag" ||
 
9700
         test ! -s conftest.err
 
9701
       } && test -s conftest$ac_exeext &&
 
9702
       $as_test_x conftest$ac_exeext; then
 
9703
  ac_cv_lib_dld_dld_link=yes
 
9704
else
 
9705
  echo "$as_me: failed program was:" >&5
 
9706
sed 's/^/| /' conftest.$ac_ext >&5
 
9707
 
 
9708
        ac_cv_lib_dld_dld_link=no
 
9709
fi
 
9710
 
 
9711
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9712
      conftest$ac_exeext conftest.$ac_ext
 
9713
LIBS=$ac_check_lib_save_LIBS
 
9714
fi
 
9715
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9716
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
9717
if test $ac_cv_lib_dld_dld_link = yes; then
 
9718
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9719
fi
 
9720
 
 
9721
 
 
9722
fi
 
9723
 
 
9724
 
 
9725
fi
 
9726
 
 
9727
 
 
9728
fi
 
9729
 
 
9730
 
 
9731
fi
 
9732
 
 
9733
 
 
9734
fi
 
9735
 
 
9736
    ;;
 
9737
  esac
 
9738
 
 
9739
  if test "x$lt_cv_dlopen" != xno; then
 
9740
    enable_dlopen=yes
 
9741
  else
 
9742
    enable_dlopen=no
 
9743
  fi
 
9744
 
 
9745
  case $lt_cv_dlopen in
 
9746
  dlopen)
 
9747
    save_CPPFLAGS="$CPPFLAGS"
 
9748
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9749
 
 
9750
    save_LDFLAGS="$LDFLAGS"
 
9751
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9752
 
 
9753
    save_LIBS="$LIBS"
 
9754
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9755
 
 
9756
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9757
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
9758
if test "${lt_cv_dlopen_self+set}" = set; then
 
9759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9760
else
 
9761
          if test "$cross_compiling" = yes; then :
 
9762
  lt_cv_dlopen_self=cross
 
9763
else
 
9764
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9765
  lt_status=$lt_dlunknown
 
9766
  cat > conftest.$ac_ext <<EOF
 
9767
#line 9767 "configure"
 
9768
#include "confdefs.h"
 
9769
 
 
9770
#if HAVE_DLFCN_H
 
9771
#include <dlfcn.h>
 
9772
#endif
 
9773
 
 
9774
#include <stdio.h>
 
9775
 
 
9776
#ifdef RTLD_GLOBAL
 
9777
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9778
#else
 
9779
#  ifdef DL_GLOBAL
 
9780
#    define LT_DLGLOBAL         DL_GLOBAL
 
9781
#  else
 
9782
#    define LT_DLGLOBAL         0
 
9783
#  endif
 
9784
#endif
 
9785
 
 
9786
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9787
   find out it does not work in some platform. */
 
9788
#ifndef LT_DLLAZY_OR_NOW
 
9789
#  ifdef RTLD_LAZY
 
9790
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9791
#  else
 
9792
#    ifdef DL_LAZY
 
9793
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9794
#    else
 
9795
#      ifdef RTLD_NOW
 
9796
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9797
#      else
 
9798
#        ifdef DL_NOW
 
9799
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9800
#        else
 
9801
#          define LT_DLLAZY_OR_NOW      0
 
9802
#        endif
 
9803
#      endif
 
9804
#    endif
 
9805
#  endif
 
9806
#endif
 
9807
 
 
9808
#ifdef __cplusplus
 
9809
extern "C" void exit (int);
 
9810
#endif
 
9811
 
 
9812
void fnord() { int i=42;}
 
9813
int main ()
 
9814
{
 
9815
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9816
  int status = $lt_dlunknown;
 
9817
 
 
9818
  if (self)
 
9819
    {
 
9820
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9821
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9822
      /* dlclose (self); */
 
9823
    }
 
9824
  else
 
9825
    puts (dlerror ());
 
9826
 
 
9827
    exit (status);
 
9828
}
 
9829
EOF
 
9830
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9831
  (eval $ac_link) 2>&5
 
9832
  ac_status=$?
 
9833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9834
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9835
    (./conftest; exit; ) >&5 2>/dev/null
 
9836
    lt_status=$?
 
9837
    case x$lt_status in
 
9838
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9839
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9840
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9841
    esac
 
9842
  else :
 
9843
    # compilation failed
 
9844
    lt_cv_dlopen_self=no
 
9845
  fi
 
9846
fi
 
9847
rm -fr conftest*
 
9848
 
 
9849
 
 
9850
fi
 
9851
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9852
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
9853
 
 
9854
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9855
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9856
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9857
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
9858
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9860
else
 
9861
          if test "$cross_compiling" = yes; then :
 
9862
  lt_cv_dlopen_self_static=cross
 
9863
else
 
9864
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9865
  lt_status=$lt_dlunknown
 
9866
  cat > conftest.$ac_ext <<EOF
 
9867
#line 9867 "configure"
 
9868
#include "confdefs.h"
 
9869
 
 
9870
#if HAVE_DLFCN_H
 
9871
#include <dlfcn.h>
 
9872
#endif
 
9873
 
 
9874
#include <stdio.h>
 
9875
 
 
9876
#ifdef RTLD_GLOBAL
 
9877
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9878
#else
 
9879
#  ifdef DL_GLOBAL
 
9880
#    define LT_DLGLOBAL         DL_GLOBAL
 
9881
#  else
 
9882
#    define LT_DLGLOBAL         0
 
9883
#  endif
 
9884
#endif
 
9885
 
 
9886
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9887
   find out it does not work in some platform. */
 
9888
#ifndef LT_DLLAZY_OR_NOW
 
9889
#  ifdef RTLD_LAZY
 
9890
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9891
#  else
 
9892
#    ifdef DL_LAZY
 
9893
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9894
#    else
 
9895
#      ifdef RTLD_NOW
 
9896
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9897
#      else
 
9898
#        ifdef DL_NOW
 
9899
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9900
#        else
 
9901
#          define LT_DLLAZY_OR_NOW      0
 
9902
#        endif
 
9903
#      endif
 
9904
#    endif
 
9905
#  endif
 
9906
#endif
 
9907
 
 
9908
#ifdef __cplusplus
 
9909
extern "C" void exit (int);
 
9910
#endif
 
9911
 
 
9912
void fnord() { int i=42;}
 
9913
int main ()
 
9914
{
 
9915
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9916
  int status = $lt_dlunknown;
 
9917
 
 
9918
  if (self)
 
9919
    {
 
9920
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9921
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9922
      /* dlclose (self); */
 
9923
    }
 
9924
  else
 
9925
    puts (dlerror ());
 
9926
 
 
9927
    exit (status);
 
9928
}
 
9929
EOF
 
9930
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9931
  (eval $ac_link) 2>&5
 
9932
  ac_status=$?
 
9933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9934
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9935
    (./conftest; exit; ) >&5 2>/dev/null
 
9936
    lt_status=$?
 
9937
    case x$lt_status in
 
9938
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9939
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9940
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9941
    esac
 
9942
  else :
 
9943
    # compilation failed
 
9944
    lt_cv_dlopen_self_static=no
 
9945
  fi
 
9946
fi
 
9947
rm -fr conftest*
 
9948
 
 
9949
 
 
9950
fi
 
9951
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9952
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
9953
    fi
 
9954
 
 
9955
    CPPFLAGS="$save_CPPFLAGS"
 
9956
    LDFLAGS="$save_LDFLAGS"
 
9957
    LIBS="$save_LIBS"
 
9958
    ;;
 
9959
  esac
 
9960
 
 
9961
  case $lt_cv_dlopen_self in
 
9962
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9963
  *) enable_dlopen_self=unknown ;;
 
9964
  esac
 
9965
 
 
9966
  case $lt_cv_dlopen_self_static in
 
9967
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9968
  *) enable_dlopen_self_static=unknown ;;
 
9969
  esac
 
9970
fi
 
9971
 
 
9972
 
 
9973
# Report which library types will actually be built
 
9974
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9975
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
9976
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9977
echo "${ECHO_T}$can_build_shared" >&6; }
 
9978
 
 
9979
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9980
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
9981
test "$can_build_shared" = "no" && enable_shared=no
 
9982
 
 
9983
# On AIX, shared libraries and static libraries use the same namespace, and
 
9984
# are all built from PIC.
 
9985
case $host_os in
 
9986
aix3*)
 
9987
  test "$enable_shared" = yes && enable_static=no
 
9988
  if test -n "$RANLIB"; then
 
9989
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9990
    postinstall_cmds='$RANLIB $lib'
 
9991
  fi
 
9992
  ;;
 
9993
 
 
9994
aix4* | aix5*)
 
9995
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9996
    test "$enable_shared" = yes && enable_static=no
 
9997
  fi
 
9998
    ;;
 
9999
esac
 
10000
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10001
echo "${ECHO_T}$enable_shared" >&6; }
 
10002
 
 
10003
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10004
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10005
# Make sure either enable_shared or enable_static is yes.
 
10006
test "$enable_shared" = yes || enable_static=yes
 
10007
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10008
echo "${ECHO_T}$enable_static" >&6; }
 
10009
 
 
10010
# The else clause should only fire when bootstrapping the
 
10011
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10012
# with your package, and you will get complaints that there are
 
10013
# no rules to generate ltmain.sh.
 
10014
if test -f "$ltmain"; then
 
10015
  # See if we are running on zsh, and set the options which allow our commands through
 
10016
  # without removal of \ escapes.
 
10017
  if test -n "${ZSH_VERSION+set}" ; then
 
10018
    setopt NO_GLOB_SUBST
 
10019
  fi
 
10020
  # Now quote all the things that may contain metacharacters while being
 
10021
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10022
  # variables and quote the copies for generation of the libtool script.
 
10023
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10024
    SED SHELL STRIP \
 
10025
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10026
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10027
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10028
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10029
    lt_cv_sys_global_symbol_to_c_name_address \
 
10030
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10031
    old_postinstall_cmds old_postuninstall_cmds \
 
10032
    compiler \
 
10033
    CC \
 
10034
    LD \
 
10035
    lt_prog_compiler_wl \
 
10036
    lt_prog_compiler_pic \
 
10037
    lt_prog_compiler_static \
 
10038
    lt_prog_compiler_no_builtin_flag \
 
10039
    export_dynamic_flag_spec \
 
10040
    thread_safe_flag_spec \
 
10041
    whole_archive_flag_spec \
 
10042
    enable_shared_with_static_runtimes \
 
10043
    old_archive_cmds \
 
10044
    old_archive_from_new_cmds \
 
10045
    predep_objects \
 
10046
    postdep_objects \
 
10047
    predeps \
 
10048
    postdeps \
 
10049
    compiler_lib_search_path \
 
10050
    archive_cmds \
 
10051
    archive_expsym_cmds \
 
10052
    postinstall_cmds \
 
10053
    postuninstall_cmds \
 
10054
    old_archive_from_expsyms_cmds \
 
10055
    allow_undefined_flag \
 
10056
    no_undefined_flag \
 
10057
    export_symbols_cmds \
 
10058
    hardcode_libdir_flag_spec \
 
10059
    hardcode_libdir_flag_spec_ld \
 
10060
    hardcode_libdir_separator \
 
10061
    hardcode_automatic \
 
10062
    module_cmds \
 
10063
    module_expsym_cmds \
 
10064
    lt_cv_prog_compiler_c_o \
 
10065
    exclude_expsyms \
 
10066
    include_expsyms; do
 
10067
 
 
10068
    case $var in
 
10069
    old_archive_cmds | \
 
10070
    old_archive_from_new_cmds | \
 
10071
    archive_cmds | \
 
10072
    archive_expsym_cmds | \
 
10073
    module_cmds | \
 
10074
    module_expsym_cmds | \
 
10075
    old_archive_from_expsyms_cmds | \
 
10076
    export_symbols_cmds | \
 
10077
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10078
    postinstall_cmds | postuninstall_cmds | \
 
10079
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10080
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10081
      # Double-quote double-evaled strings.
 
10082
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10083
      ;;
 
10084
    *)
 
10085
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10086
      ;;
 
10087
    esac
 
10088
  done
 
10089
 
 
10090
  case $lt_echo in
 
10091
  *'\$0 --fallback-echo"')
 
10092
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10093
    ;;
 
10094
  esac
 
10095
 
 
10096
cfgfile="${ofile}T"
 
10097
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10098
  $rm -f "$cfgfile"
 
10099
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10100
echo "$as_me: creating $ofile" >&6;}
 
10101
 
 
10102
  cat <<__EOF__ >> "$cfgfile"
 
10103
#! $SHELL
 
10104
 
 
10105
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10106
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10107
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10108
#
 
10109
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10110
# Free Software Foundation, Inc.
 
10111
#
 
10112
# This file is part of GNU Libtool:
 
10113
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10114
#
 
10115
# This program is free software; you can redistribute it and/or modify
 
10116
# it under the terms of the GNU General Public License as published by
 
10117
# the Free Software Foundation; either version 2 of the License, or
 
10118
# (at your option) any later version.
 
10119
#
 
10120
# This program is distributed in the hope that it will be useful, but
 
10121
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10122
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10123
# General Public License for more details.
 
10124
#
 
10125
# You should have received a copy of the GNU General Public License
 
10126
# along with this program; if not, write to the Free Software
 
10127
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10128
#
 
10129
# As a special exception to the GNU General Public License, if you
 
10130
# distribute this file as part of a program that contains a
 
10131
# configuration script generated by Autoconf, you may include it under
 
10132
# the same distribution terms that you use for the rest of that program.
 
10133
 
 
10134
# A sed program that does not truncate output.
 
10135
SED=$lt_SED
 
10136
 
 
10137
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10138
Xsed="$SED -e 1s/^X//"
 
10139
 
 
10140
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10141
# if CDPATH is set.
 
10142
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10143
 
 
10144
# The names of the tagged configurations supported by this script.
 
10145
available_tags=
 
10146
 
 
10147
# ### BEGIN LIBTOOL CONFIG
 
10148
 
 
10149
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10150
 
 
10151
# Shell to use when invoking shell scripts.
 
10152
SHELL=$lt_SHELL
 
10153
 
 
10154
# Whether or not to build shared libraries.
 
10155
build_libtool_libs=$enable_shared
 
10156
 
 
10157
# Whether or not to build static libraries.
 
10158
build_old_libs=$enable_static
 
10159
 
 
10160
# Whether or not to add -lc for building shared libraries.
 
10161
build_libtool_need_lc=$archive_cmds_need_lc
 
10162
 
 
10163
# Whether or not to disallow shared libs when runtime libs are static
 
10164
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10165
 
 
10166
# Whether or not to optimize for fast installation.
 
10167
fast_install=$enable_fast_install
 
10168
 
 
10169
# The host system.
 
10170
host_alias=$host_alias
 
10171
host=$host
 
10172
host_os=$host_os
 
10173
 
 
10174
# The build system.
 
10175
build_alias=$build_alias
 
10176
build=$build
 
10177
build_os=$build_os
 
10178
 
 
10179
# An echo program that does not interpret backslashes.
 
10180
echo=$lt_echo
 
10181
 
 
10182
# The archiver.
 
10183
AR=$lt_AR
 
10184
AR_FLAGS=$lt_AR_FLAGS
 
10185
 
 
10186
# A C compiler.
 
10187
LTCC=$lt_LTCC
 
10188
 
 
10189
# LTCC compiler flags.
 
10190
LTCFLAGS=$lt_LTCFLAGS
 
10191
 
 
10192
# A language-specific compiler.
 
10193
CC=$lt_compiler
 
10194
 
 
10195
# Is the compiler the GNU C compiler?
 
10196
with_gcc=$GCC
 
10197
 
 
10198
# An ERE matcher.
 
10199
EGREP=$lt_EGREP
 
10200
 
 
10201
# The linker used to build libraries.
 
10202
LD=$lt_LD
 
10203
 
 
10204
# Whether we need hard or soft links.
 
10205
LN_S=$lt_LN_S
 
10206
 
 
10207
# A BSD-compatible nm program.
 
10208
NM=$lt_NM
 
10209
 
 
10210
# A symbol stripping program
 
10211
STRIP=$lt_STRIP
 
10212
 
 
10213
# Used to examine libraries when file_magic_cmd begins "file"
 
10214
MAGIC_CMD=$MAGIC_CMD
 
10215
 
 
10216
# Used on cygwin: DLL creation program.
 
10217
DLLTOOL="$DLLTOOL"
 
10218
 
 
10219
# Used on cygwin: object dumper.
 
10220
OBJDUMP="$OBJDUMP"
 
10221
 
 
10222
# Used on cygwin: assembler.
 
10223
AS="$AS"
 
10224
 
 
10225
# The name of the directory that contains temporary libtool files.
 
10226
objdir=$objdir
 
10227
 
 
10228
# How to create reloadable object files.
 
10229
reload_flag=$lt_reload_flag
 
10230
reload_cmds=$lt_reload_cmds
 
10231
 
 
10232
# How to pass a linker flag through the compiler.
 
10233
wl=$lt_lt_prog_compiler_wl
 
10234
 
 
10235
# Object file suffix (normally "o").
 
10236
objext="$ac_objext"
 
10237
 
 
10238
# Old archive suffix (normally "a").
 
10239
libext="$libext"
 
10240
 
 
10241
# Shared library suffix (normally ".so").
 
10242
shrext_cmds='$shrext_cmds'
 
10243
 
 
10244
# Executable file suffix (normally "").
 
10245
exeext="$exeext"
 
10246
 
 
10247
# Additional compiler flags for building library objects.
 
10248
pic_flag=$lt_lt_prog_compiler_pic
 
10249
pic_mode=$pic_mode
 
10250
 
 
10251
# What is the maximum length of a command?
 
10252
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10253
 
 
10254
# Does compiler simultaneously support -c and -o options?
 
10255
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10256
 
 
10257
# Must we lock files when doing compilation?
 
10258
need_locks=$lt_need_locks
 
10259
 
 
10260
# Do we need the lib prefix for modules?
 
10261
need_lib_prefix=$need_lib_prefix
 
10262
 
 
10263
# Do we need a version for libraries?
 
10264
need_version=$need_version
 
10265
 
 
10266
# Whether dlopen is supported.
 
10267
dlopen_support=$enable_dlopen
 
10268
 
 
10269
# Whether dlopen of programs is supported.
 
10270
dlopen_self=$enable_dlopen_self
 
10271
 
 
10272
# Whether dlopen of statically linked programs is supported.
 
10273
dlopen_self_static=$enable_dlopen_self_static
 
10274
 
 
10275
# Compiler flag to prevent dynamic linking.
 
10276
link_static_flag=$lt_lt_prog_compiler_static
 
10277
 
 
10278
# Compiler flag to turn off builtin functions.
 
10279
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10280
 
 
10281
# Compiler flag to allow reflexive dlopens.
 
10282
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10283
 
 
10284
# Compiler flag to generate shared objects directly from archives.
 
10285
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10286
 
 
10287
# Compiler flag to generate thread-safe objects.
 
10288
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10289
 
 
10290
# Library versioning type.
 
10291
version_type=$version_type
 
10292
 
 
10293
# Format of library name prefix.
 
10294
libname_spec=$lt_libname_spec
 
10295
 
 
10296
# List of archive names.  First name is the real one, the rest are links.
 
10297
# The last name is the one that the linker finds with -lNAME.
 
10298
library_names_spec=$lt_library_names_spec
 
10299
 
 
10300
# The coded name of the library, if different from the real name.
 
10301
soname_spec=$lt_soname_spec
 
10302
 
 
10303
# Commands used to build and install an old-style archive.
 
10304
RANLIB=$lt_RANLIB
 
10305
old_archive_cmds=$lt_old_archive_cmds
 
10306
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10307
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10308
 
 
10309
# Create an old-style archive from a shared archive.
 
10310
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10311
 
 
10312
# Create a temporary old-style archive to link instead of a shared archive.
 
10313
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10314
 
 
10315
# Commands used to build and install a shared archive.
 
10316
archive_cmds=$lt_archive_cmds
 
10317
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10318
postinstall_cmds=$lt_postinstall_cmds
 
10319
postuninstall_cmds=$lt_postuninstall_cmds
 
10320
 
 
10321
# Commands used to build a loadable module (assumed same as above if empty)
 
10322
module_cmds=$lt_module_cmds
 
10323
module_expsym_cmds=$lt_module_expsym_cmds
 
10324
 
 
10325
# Commands to strip libraries.
 
10326
old_striplib=$lt_old_striplib
 
10327
striplib=$lt_striplib
 
10328
 
 
10329
# Dependencies to place before the objects being linked to create a
 
10330
# shared library.
 
10331
predep_objects=$lt_predep_objects
 
10332
 
 
10333
# Dependencies to place after the objects being linked to create a
 
10334
# shared library.
 
10335
postdep_objects=$lt_postdep_objects
 
10336
 
 
10337
# Dependencies to place before the objects being linked to create a
 
10338
# shared library.
 
10339
predeps=$lt_predeps
 
10340
 
 
10341
# Dependencies to place after the objects being linked to create a
 
10342
# shared library.
 
10343
postdeps=$lt_postdeps
 
10344
 
 
10345
# The library search path used internally by the compiler when linking
 
10346
# a shared library.
 
10347
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10348
 
 
10349
# Method to check whether dependent libraries are shared objects.
 
10350
deplibs_check_method=$lt_deplibs_check_method
 
10351
 
 
10352
# Command to use when deplibs_check_method == file_magic.
 
10353
file_magic_cmd=$lt_file_magic_cmd
 
10354
 
 
10355
# Flag that allows shared libraries with undefined symbols to be built.
 
10356
allow_undefined_flag=$lt_allow_undefined_flag
 
10357
 
 
10358
# Flag that forces no undefined symbols.
 
10359
no_undefined_flag=$lt_no_undefined_flag
 
10360
 
 
10361
# Commands used to finish a libtool library installation in a directory.
 
10362
finish_cmds=$lt_finish_cmds
 
10363
 
 
10364
# Same as above, but a single script fragment to be evaled but not shown.
 
10365
finish_eval=$lt_finish_eval
 
10366
 
 
10367
# Take the output of nm and produce a listing of raw symbols and C names.
 
10368
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10369
 
 
10370
# Transform the output of nm in a proper C declaration
 
10371
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10372
 
 
10373
# Transform the output of nm in a C name address pair
 
10374
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10375
 
 
10376
# This is the shared library runtime path variable.
 
10377
runpath_var=$runpath_var
 
10378
 
 
10379
# This is the shared library path variable.
 
10380
shlibpath_var=$shlibpath_var
 
10381
 
 
10382
# Is shlibpath searched before the hard-coded library search path?
 
10383
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10384
 
 
10385
# How to hardcode a shared library path into an executable.
 
10386
hardcode_action=$hardcode_action
 
10387
 
 
10388
# Whether we should hardcode library paths into libraries.
 
10389
hardcode_into_libs=$hardcode_into_libs
 
10390
 
 
10391
# Flag to hardcode \$libdir into a binary during linking.
 
10392
# This must work even if \$libdir does not exist.
 
10393
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10394
 
 
10395
# If ld is used when linking, flag to hardcode \$libdir into
 
10396
# a binary during linking. This must work even if \$libdir does
 
10397
# not exist.
 
10398
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10399
 
 
10400
# Whether we need a single -rpath flag with a separated argument.
 
10401
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10402
 
 
10403
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10404
# resulting binary.
 
10405
hardcode_direct=$hardcode_direct
 
10406
 
 
10407
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10408
# resulting binary.
 
10409
hardcode_minus_L=$hardcode_minus_L
 
10410
 
 
10411
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10412
# the resulting binary.
 
10413
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10414
 
 
10415
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10416
# and all subsequent libraries and executables linked against it.
 
10417
hardcode_automatic=$hardcode_automatic
 
10418
 
 
10419
# Variables whose values should be saved in libtool wrapper scripts and
 
10420
# restored at relink time.
 
10421
variables_saved_for_relink="$variables_saved_for_relink"
 
10422
 
 
10423
# Whether libtool must link a program against all its dependency libraries.
 
10424
link_all_deplibs=$link_all_deplibs
 
10425
 
 
10426
# Compile-time system search path for libraries
 
10427
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10428
 
 
10429
# Run-time system search path for libraries
 
10430
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10431
 
 
10432
# Fix the shell variable \$srcfile for the compiler.
 
10433
fix_srcfile_path="$fix_srcfile_path"
 
10434
 
 
10435
# Set to yes if exported symbols are required.
 
10436
always_export_symbols=$always_export_symbols
 
10437
 
 
10438
# The commands to list exported symbols.
 
10439
export_symbols_cmds=$lt_export_symbols_cmds
 
10440
 
 
10441
# The commands to extract the exported symbol list from a shared archive.
 
10442
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10443
 
 
10444
# Symbols that should not be listed in the preloaded symbols.
 
10445
exclude_expsyms=$lt_exclude_expsyms
 
10446
 
 
10447
# Symbols that must always be exported.
 
10448
include_expsyms=$lt_include_expsyms
 
10449
 
 
10450
# ### END LIBTOOL CONFIG
 
10451
 
 
10452
__EOF__
 
10453
 
 
10454
 
 
10455
  case $host_os in
 
10456
  aix3*)
 
10457
    cat <<\EOF >> "$cfgfile"
 
10458
 
 
10459
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10460
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10461
# vanish in a puff of smoke.
 
10462
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10463
  COLLECT_NAMES=
 
10464
  export COLLECT_NAMES
 
10465
fi
 
10466
EOF
 
10467
    ;;
 
10468
  esac
 
10469
 
 
10470
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10471
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10472
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10473
  # is reportedly fixed, but why not run on old versions too?
 
10474
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10475
 
 
10476
  mv -f "$cfgfile" "$ofile" || \
 
10477
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10478
  chmod +x "$ofile"
 
10479
 
 
10480
else
 
10481
  # If there is no Makefile yet, we rely on a make rule to execute
 
10482
  # `config.status --recheck' to rerun these tests and create the
 
10483
  # libtool script then.
 
10484
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10485
  if test -f "$ltmain_in"; then
 
10486
    test -f Makefile && make "$ltmain"
 
10487
  fi
 
10488
fi
 
10489
 
 
10490
 
 
10491
ac_ext=c
 
10492
ac_cpp='$CPP $CPPFLAGS'
 
10493
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10494
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10495
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10496
 
 
10497
CC="$lt_save_CC"
 
10498
 
 
10499
 
 
10500
# Check whether --with-tags was given.
 
10501
if test "${with_tags+set}" = set; then
 
10502
  withval=$with_tags; tagnames="$withval"
 
10503
fi
 
10504
 
 
10505
 
 
10506
if test -f "$ltmain" && test -n "$tagnames"; then
 
10507
  if test ! -f "${ofile}"; then
 
10508
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10509
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10510
  fi
 
10511
 
 
10512
  if test -z "$LTCC"; then
 
10513
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10514
    if test -z "$LTCC"; then
 
10515
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10516
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10517
    else
 
10518
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10519
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10520
    fi
 
10521
  fi
 
10522
  if test -z "$LTCFLAGS"; then
 
10523
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10524
  fi
 
10525
 
 
10526
  # Extract list of available tagged configurations in $ofile.
 
10527
  # Note that this assumes the entire list is on one line.
 
10528
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10529
 
 
10530
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10531
  for tagname in $tagnames; do
 
10532
    IFS="$lt_save_ifs"
 
10533
    # Check whether tagname contains only valid characters
 
10534
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10535
    "") ;;
 
10536
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10537
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10538
   { (exit 1); exit 1; }; }
 
10539
        ;;
 
10540
    esac
 
10541
 
 
10542
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10543
    then
 
10544
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10545
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10546
   { (exit 1); exit 1; }; }
 
10547
    fi
 
10548
 
 
10549
    # Update the list of available tags.
 
10550
    if test -n "$tagname"; then
 
10551
      echo appending configuration tag \"$tagname\" to $ofile
 
10552
 
 
10553
      case $tagname in
 
10554
      CXX)
 
10555
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10556
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10557
            (test "X$CXX" != "Xg++"))) ; then
 
10558
          ac_ext=cpp
 
10559
ac_cpp='$CXXCPP $CPPFLAGS'
 
10560
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10561
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10562
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10563
 
 
10564
 
 
10565
 
 
10566
 
 
10567
archive_cmds_need_lc_CXX=no
 
10568
allow_undefined_flag_CXX=
 
10569
always_export_symbols_CXX=no
 
10570
archive_expsym_cmds_CXX=
 
10571
export_dynamic_flag_spec_CXX=
 
10572
hardcode_direct_CXX=no
 
10573
hardcode_libdir_flag_spec_CXX=
 
10574
hardcode_libdir_flag_spec_ld_CXX=
 
10575
hardcode_libdir_separator_CXX=
 
10576
hardcode_minus_L_CXX=no
 
10577
hardcode_shlibpath_var_CXX=unsupported
 
10578
hardcode_automatic_CXX=no
 
10579
module_cmds_CXX=
 
10580
module_expsym_cmds_CXX=
 
10581
link_all_deplibs_CXX=unknown
 
10582
old_archive_cmds_CXX=$old_archive_cmds
 
10583
no_undefined_flag_CXX=
 
10584
whole_archive_flag_spec_CXX=
 
10585
enable_shared_with_static_runtimes_CXX=no
 
10586
 
 
10587
# Dependencies to place before and after the object being linked:
 
10588
predep_objects_CXX=
 
10589
postdep_objects_CXX=
 
10590
predeps_CXX=
 
10591
postdeps_CXX=
 
10592
compiler_lib_search_path_CXX=
 
10593
 
 
10594
# Source file extension for C++ test sources.
 
10595
ac_ext=cpp
 
10596
 
 
10597
# Object file extension for compiled C++ test sources.
 
10598
objext=o
 
10599
objext_CXX=$objext
 
10600
 
 
10601
# Code to be used in simple compile tests
 
10602
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10603
 
 
10604
# Code to be used in simple link tests
 
10605
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10606
 
 
10607
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10608
 
 
10609
# If no C compiler was specified, use CC.
 
10610
LTCC=${LTCC-"$CC"}
 
10611
 
 
10612
# If no C compiler flags were specified, use CFLAGS.
 
10613
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10614
 
 
10615
# Allow CC to be a program name with arguments.
 
10616
compiler=$CC
 
10617
 
 
10618
 
 
10619
# save warnings/boilerplate of simple test code
 
10620
ac_outfile=conftest.$ac_objext
 
10621
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10622
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10623
_lt_compiler_boilerplate=`cat conftest.err`
 
10624
$rm conftest*
 
10625
 
 
10626
ac_outfile=conftest.$ac_objext
 
10627
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10628
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10629
_lt_linker_boilerplate=`cat conftest.err`
 
10630
$rm conftest*
 
10631
 
 
10632
 
 
10633
# Allow CC to be a program name with arguments.
 
10634
lt_save_CC=$CC
 
10635
lt_save_LD=$LD
 
10636
lt_save_GCC=$GCC
 
10637
GCC=$GXX
 
10638
lt_save_with_gnu_ld=$with_gnu_ld
 
10639
lt_save_path_LD=$lt_cv_path_LD
 
10640
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10641
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10642
else
 
10643
  $as_unset lt_cv_prog_gnu_ld
 
10644
fi
 
10645
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10646
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10647
else
 
10648
  $as_unset lt_cv_path_LD
 
10649
fi
 
10650
test -z "${LDCXX+set}" || LD=$LDCXX
 
10651
CC=${CXX-"c++"}
 
10652
compiler=$CC
 
10653
compiler_CXX=$CC
 
10654
for cc_temp in $compiler""; do
 
10655
  case $cc_temp in
 
10656
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10657
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10658
    \-*) ;;
 
10659
    *) break;;
 
10660
  esac
 
10661
done
 
10662
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10663
 
 
10664
 
 
10665
# We don't want -fno-exception wen compiling C++ code, so set the
 
10666
# no_builtin_flag separately
 
10667
if test "$GXX" = yes; then
 
10668
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10669
else
 
10670
  lt_prog_compiler_no_builtin_flag_CXX=
 
10671
fi
 
10672
 
 
10673
if test "$GXX" = yes; then
 
10674
  # Set up default GNU C++ configuration
 
10675
 
 
10676
 
 
10677
# Check whether --with-gnu-ld was given.
 
10678
if test "${with_gnu_ld+set}" = set; then
 
10679
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10680
else
 
10681
  with_gnu_ld=no
 
10682
fi
 
10683
 
 
10684
ac_prog=ld
 
10685
if test "$GCC" = yes; then
 
10686
  # Check if gcc -print-prog-name=ld gives a path.
 
10687
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10688
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10689
  case $host in
 
10690
  *-*-mingw*)
 
10691
    # gcc leaves a trailing carriage return which upsets mingw
 
10692
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10693
  *)
 
10694
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10695
  esac
 
10696
  case $ac_prog in
 
10697
    # Accept absolute paths.
 
10698
    [\\/]* | ?:[\\/]*)
 
10699
      re_direlt='/[^/][^/]*/\.\./'
 
10700
      # Canonicalize the pathname of ld
 
10701
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10702
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10703
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10704
      done
 
10705
      test -z "$LD" && LD="$ac_prog"
 
10706
      ;;
 
10707
  "")
 
10708
    # If it fails, then pretend we aren't using GCC.
 
10709
    ac_prog=ld
 
10710
    ;;
 
10711
  *)
 
10712
    # If it is relative, then search for the first ld in PATH.
 
10713
    with_gnu_ld=unknown
 
10714
    ;;
 
10715
  esac
 
10716
elif test "$with_gnu_ld" = yes; then
 
10717
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10718
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
10719
else
 
10720
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10721
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
10722
fi
 
10723
if test "${lt_cv_path_LD+set}" = set; then
 
10724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10725
else
 
10726
  if test -z "$LD"; then
 
10727
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10728
  for ac_dir in $PATH; do
 
10729
    IFS="$lt_save_ifs"
 
10730
    test -z "$ac_dir" && ac_dir=.
 
10731
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10732
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10733
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10734
      # but apparently some variants of GNU ld only accept -v.
 
10735
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10736
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10737
      *GNU* | *'with BFD'*)
 
10738
        test "$with_gnu_ld" != no && break
 
10739
        ;;
 
10740
      *)
 
10741
        test "$with_gnu_ld" != yes && break
 
10742
        ;;
 
10743
      esac
 
10744
    fi
 
10745
  done
 
10746
  IFS="$lt_save_ifs"
 
10747
else
 
10748
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10749
fi
 
10750
fi
 
10751
 
 
10752
LD="$lt_cv_path_LD"
 
10753
if test -n "$LD"; then
 
10754
  { echo "$as_me:$LINENO: result: $LD" >&5
 
10755
echo "${ECHO_T}$LD" >&6; }
 
10756
else
 
10757
  { echo "$as_me:$LINENO: result: no" >&5
 
10758
echo "${ECHO_T}no" >&6; }
 
10759
fi
 
10760
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10761
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10762
   { (exit 1); exit 1; }; }
 
10763
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10764
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
10765
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10767
else
 
10768
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10769
case `$LD -v 2>&1 </dev/null` in
 
10770
*GNU* | *'with BFD'*)
 
10771
  lt_cv_prog_gnu_ld=yes
 
10772
  ;;
 
10773
*)
 
10774
  lt_cv_prog_gnu_ld=no
 
10775
  ;;
 
10776
esac
 
10777
fi
 
10778
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10779
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
10780
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10781
 
 
10782
 
 
10783
 
 
10784
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10785
  # archiving commands below assume that GNU ld is being used.
 
10786
  if test "$with_gnu_ld" = yes; then
 
10787
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10788
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10789
 
 
10790
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10791
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10792
 
 
10793
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10794
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10795
    #     investigate it a little bit more. (MM)
 
10796
    wlarc='${wl}'
 
10797
 
 
10798
    # ancient GNU ld didn't support --whole-archive et. al.
 
10799
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10800
        grep 'no-whole-archive' > /dev/null; then
 
10801
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10802
    else
 
10803
      whole_archive_flag_spec_CXX=
 
10804
    fi
 
10805
  else
 
10806
    with_gnu_ld=no
 
10807
    wlarc=
 
10808
 
 
10809
    # A generic and very simple default shared library creation
 
10810
    # command for GNU C++ for the case where it uses the native
 
10811
    # linker, instead of GNU ld.  If possible, this setting should
 
10812
    # overridden to take advantage of the native linker features on
 
10813
    # the platform it is being used on.
 
10814
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10815
  fi
 
10816
 
 
10817
  # Commands to make compiler produce verbose output that lists
 
10818
  # what "hidden" libraries, object files and flags are used when
 
10819
  # linking a shared library.
 
10820
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10821
 
 
10822
else
 
10823
  GXX=no
 
10824
  with_gnu_ld=no
 
10825
  wlarc=
 
10826
fi
 
10827
 
 
10828
# PORTME: fill in a description of your system's C++ link characteristics
 
10829
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10830
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10831
ld_shlibs_CXX=yes
 
10832
case $host_os in
 
10833
  aix3*)
 
10834
    # FIXME: insert proper C++ library support
 
10835
    ld_shlibs_CXX=no
 
10836
    ;;
 
10837
  aix4* | aix5*)
 
10838
    if test "$host_cpu" = ia64; then
 
10839
      # On IA64, the linker does run time linking by default, so we don't
 
10840
      # have to do anything special.
 
10841
      aix_use_runtimelinking=no
 
10842
      exp_sym_flag='-Bexport'
 
10843
      no_entry_flag=""
 
10844
    else
 
10845
      aix_use_runtimelinking=no
 
10846
 
 
10847
      # Test if we are trying to use run time linking or normal
 
10848
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10849
      # need to do runtime linking.
 
10850
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10851
        for ld_flag in $LDFLAGS; do
 
10852
          case $ld_flag in
 
10853
          *-brtl*)
 
10854
            aix_use_runtimelinking=yes
 
10855
            break
 
10856
            ;;
 
10857
          esac
 
10858
        done
 
10859
        ;;
 
10860
      esac
 
10861
 
 
10862
      exp_sym_flag='-bexport'
 
10863
      no_entry_flag='-bnoentry'
 
10864
    fi
 
10865
 
 
10866
    # When large executables or shared objects are built, AIX ld can
 
10867
    # have problems creating the table of contents.  If linking a library
 
10868
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10869
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10870
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10871
 
 
10872
    archive_cmds_CXX=''
 
10873
    hardcode_direct_CXX=yes
 
10874
    hardcode_libdir_separator_CXX=':'
 
10875
    link_all_deplibs_CXX=yes
 
10876
 
 
10877
    if test "$GXX" = yes; then
 
10878
      case $host_os in aix4.[012]|aix4.[012].*)
 
10879
      # We only want to do this on AIX 4.2 and lower, the check
 
10880
      # below for broken collect2 doesn't work under 4.3+
 
10881
        collect2name=`${CC} -print-prog-name=collect2`
 
10882
        if test -f "$collect2name" && \
 
10883
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10884
        then
 
10885
          # We have reworked collect2
 
10886
          hardcode_direct_CXX=yes
 
10887
        else
 
10888
          # We have old collect2
 
10889
          hardcode_direct_CXX=unsupported
 
10890
          # It fails to find uninstalled libraries when the uninstalled
 
10891
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10892
          # to unsupported forces relinking
 
10893
          hardcode_minus_L_CXX=yes
 
10894
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10895
          hardcode_libdir_separator_CXX=
 
10896
        fi
 
10897
        ;;
 
10898
      esac
 
10899
      shared_flag='-shared'
 
10900
      if test "$aix_use_runtimelinking" = yes; then
 
10901
        shared_flag="$shared_flag "'${wl}-G'
 
10902
      fi
 
10903
    else
 
10904
      # not using gcc
 
10905
      if test "$host_cpu" = ia64; then
 
10906
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10907
        # chokes on -Wl,-G. The following line is correct:
 
10908
        shared_flag='-G'
 
10909
      else
 
10910
        if test "$aix_use_runtimelinking" = yes; then
 
10911
          shared_flag='${wl}-G'
 
10912
        else
 
10913
          shared_flag='${wl}-bM:SRE'
 
10914
        fi
 
10915
      fi
 
10916
    fi
 
10917
 
 
10918
    # It seems that -bexpall does not export symbols beginning with
 
10919
    # underscore (_), so it is better to generate a list of symbols to export.
 
10920
    always_export_symbols_CXX=yes
 
10921
    if test "$aix_use_runtimelinking" = yes; then
 
10922
      # Warning - without using the other runtime loading flags (-brtl),
 
10923
      # -berok will link without error, but may produce a broken library.
 
10924
      allow_undefined_flag_CXX='-berok'
 
10925
      # Determine the default libpath from the value encoded in an empty executable.
 
10926
      cat >conftest.$ac_ext <<_ACEOF
 
10927
/* confdefs.h.  */
 
10928
_ACEOF
 
10929
cat confdefs.h >>conftest.$ac_ext
 
10930
cat >>conftest.$ac_ext <<_ACEOF
 
10931
/* end confdefs.h.  */
 
10932
 
 
10933
int
 
10934
main ()
 
10935
{
 
10936
 
 
10937
  ;
 
10938
  return 0;
 
10939
}
 
10940
_ACEOF
 
10941
rm -f conftest.$ac_objext conftest$ac_exeext
 
10942
if { (ac_try="$ac_link"
 
10943
case "(($ac_try" in
 
10944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10945
  *) ac_try_echo=$ac_try;;
 
10946
esac
 
10947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10948
  (eval "$ac_link") 2>conftest.er1
 
10949
  ac_status=$?
 
10950
  grep -v '^ *+' conftest.er1 >conftest.err
 
10951
  rm -f conftest.er1
 
10952
  cat conftest.err >&5
 
10953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10954
  (exit $ac_status); } && {
 
10955
         test -z "$ac_cxx_werror_flag" ||
 
10956
         test ! -s conftest.err
 
10957
       } && test -s conftest$ac_exeext &&
 
10958
       $as_test_x conftest$ac_exeext; then
 
10959
 
 
10960
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10961
}'`
 
10962
# Check for a 64-bit object if we didn't find anything.
 
10963
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; }
 
10964
}'`; fi
 
10965
else
 
10966
  echo "$as_me: failed program was:" >&5
 
10967
sed 's/^/| /' conftest.$ac_ext >&5
 
10968
 
 
10969
 
 
10970
fi
 
10971
 
 
10972
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10973
      conftest$ac_exeext conftest.$ac_ext
 
10974
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10975
 
 
10976
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10977
 
 
10978
      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"
 
10979
     else
 
10980
      if test "$host_cpu" = ia64; then
 
10981
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10982
        allow_undefined_flag_CXX="-z nodefs"
 
10983
        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"
 
10984
      else
 
10985
        # Determine the default libpath from the value encoded in an empty executable.
 
10986
        cat >conftest.$ac_ext <<_ACEOF
 
10987
/* confdefs.h.  */
 
10988
_ACEOF
 
10989
cat confdefs.h >>conftest.$ac_ext
 
10990
cat >>conftest.$ac_ext <<_ACEOF
 
10991
/* end confdefs.h.  */
 
10992
 
 
10993
int
 
10994
main ()
 
10995
{
 
10996
 
 
10997
  ;
 
10998
  return 0;
 
10999
}
 
11000
_ACEOF
 
11001
rm -f conftest.$ac_objext conftest$ac_exeext
 
11002
if { (ac_try="$ac_link"
 
11003
case "(($ac_try" in
 
11004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11005
  *) ac_try_echo=$ac_try;;
 
11006
esac
 
11007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11008
  (eval "$ac_link") 2>conftest.er1
 
11009
  ac_status=$?
 
11010
  grep -v '^ *+' conftest.er1 >conftest.err
 
11011
  rm -f conftest.er1
 
11012
  cat conftest.err >&5
 
11013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11014
  (exit $ac_status); } && {
 
11015
         test -z "$ac_cxx_werror_flag" ||
 
11016
         test ! -s conftest.err
 
11017
       } && test -s conftest$ac_exeext &&
 
11018
       $as_test_x conftest$ac_exeext; then
 
11019
 
 
11020
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11021
}'`
 
11022
# Check for a 64-bit object if we didn't find anything.
 
11023
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; }
 
11024
}'`; fi
 
11025
else
 
11026
  echo "$as_me: failed program was:" >&5
 
11027
sed 's/^/| /' conftest.$ac_ext >&5
 
11028
 
 
11029
 
 
11030
fi
 
11031
 
 
11032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11033
      conftest$ac_exeext conftest.$ac_ext
 
11034
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11035
 
 
11036
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11037
        # Warning - without using the other run time loading flags,
 
11038
        # -berok will link without error, but may produce a broken library.
 
11039
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11040
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11041
        # Exported symbols can be pulled into shared objects from archives
 
11042
        whole_archive_flag_spec_CXX='$convenience'
 
11043
        archive_cmds_need_lc_CXX=yes
 
11044
        # This is similar to how AIX traditionally builds its shared libraries.
 
11045
        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'
 
11046
      fi
 
11047
    fi
 
11048
    ;;
 
11049
 
 
11050
  beos*)
 
11051
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11052
      allow_undefined_flag_CXX=unsupported
 
11053
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11054
      # support --undefined.  This deserves some investigation.  FIXME
 
11055
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11056
    else
 
11057
      ld_shlibs_CXX=no
 
11058
    fi
 
11059
    ;;
 
11060
 
 
11061
  chorus*)
 
11062
    case $cc_basename in
 
11063
      *)
 
11064
        # FIXME: insert proper C++ library support
 
11065
        ld_shlibs_CXX=no
 
11066
        ;;
 
11067
    esac
 
11068
    ;;
 
11069
 
 
11070
  cygwin* | mingw* | pw32*)
 
11071
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11072
    # as there is no search path for DLLs.
 
11073
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11074
    allow_undefined_flag_CXX=unsupported
 
11075
    always_export_symbols_CXX=no
 
11076
    enable_shared_with_static_runtimes_CXX=yes
 
11077
 
 
11078
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11079
      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'
 
11080
      # If the export-symbols file already is a .def file (1st line
 
11081
      # is EXPORTS), use it as is; otherwise, prepend...
 
11082
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11083
        cp $export_symbols $output_objdir/$soname.def;
 
11084
      else
 
11085
        echo EXPORTS > $output_objdir/$soname.def;
 
11086
        cat $export_symbols >> $output_objdir/$soname.def;
 
11087
      fi~
 
11088
      $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'
 
11089
    else
 
11090
      ld_shlibs_CXX=no
 
11091
    fi
 
11092
  ;;
 
11093
      darwin* | rhapsody*)
 
11094
        case $host_os in
 
11095
        rhapsody* | darwin1.[012])
 
11096
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11097
         ;;
 
11098
       *) # Darwin 1.3 on
 
11099
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11100
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11101
         else
 
11102
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11103
             10.[012])
 
11104
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11105
               ;;
 
11106
             10.*)
 
11107
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11108
               ;;
 
11109
           esac
 
11110
         fi
 
11111
         ;;
 
11112
        esac
 
11113
      archive_cmds_need_lc_CXX=no
 
11114
      hardcode_direct_CXX=no
 
11115
      hardcode_automatic_CXX=yes
 
11116
      hardcode_shlibpath_var_CXX=unsupported
 
11117
      whole_archive_flag_spec_CXX=''
 
11118
      link_all_deplibs_CXX=yes
 
11119
 
 
11120
    if test "$GXX" = yes ; then
 
11121
      lt_int_apple_cc_single_mod=no
 
11122
      output_verbose_link_cmd='echo'
 
11123
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11124
       lt_int_apple_cc_single_mod=yes
 
11125
      fi
 
11126
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11127
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11128
      else
 
11129
          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'
 
11130
        fi
 
11131
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11132
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11133
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11134
            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}'
 
11135
          else
 
11136
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11137
          fi
 
11138
            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}'
 
11139
      else
 
11140
      case $cc_basename in
 
11141
        xlc*)
 
11142
         output_verbose_link_cmd='echo'
 
11143
          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'
 
11144
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11145
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11146
          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}'
 
11147
          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}'
 
11148
          ;;
 
11149
       *)
 
11150
         ld_shlibs_CXX=no
 
11151
          ;;
 
11152
      esac
 
11153
      fi
 
11154
        ;;
 
11155
 
 
11156
  dgux*)
 
11157
    case $cc_basename in
 
11158
      ec++*)
 
11159
        # FIXME: insert proper C++ library support
 
11160
        ld_shlibs_CXX=no
 
11161
        ;;
 
11162
      ghcx*)
 
11163
        # Green Hills C++ Compiler
 
11164
        # FIXME: insert proper C++ library support
 
11165
        ld_shlibs_CXX=no
 
11166
        ;;
 
11167
      *)
 
11168
        # FIXME: insert proper C++ library support
 
11169
        ld_shlibs_CXX=no
 
11170
        ;;
 
11171
    esac
 
11172
    ;;
 
11173
  freebsd[12]*)
 
11174
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11175
    ld_shlibs_CXX=no
 
11176
    ;;
 
11177
  freebsd-elf*)
 
11178
    archive_cmds_need_lc_CXX=no
 
11179
    ;;
 
11180
  freebsd* | dragonfly*)
 
11181
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11182
    # conventions
 
11183
    ld_shlibs_CXX=yes
 
11184
    ;;
 
11185
  gnu*)
 
11186
    ;;
 
11187
  hpux9*)
 
11188
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11189
    hardcode_libdir_separator_CXX=:
 
11190
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11191
    hardcode_direct_CXX=yes
 
11192
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11193
                                # but as the default
 
11194
                                # location of the library.
 
11195
 
 
11196
    case $cc_basename in
 
11197
    CC*)
 
11198
      # FIXME: insert proper C++ library support
 
11199
      ld_shlibs_CXX=no
 
11200
      ;;
 
11201
    aCC*)
 
11202
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11203
      # Commands to make compiler produce verbose output that lists
 
11204
      # what "hidden" libraries, object files and flags are used when
 
11205
      # linking a shared library.
 
11206
      #
 
11207
      # There doesn't appear to be a way to prevent this compiler from
 
11208
      # explicitly linking system object files so we need to strip them
 
11209
      # from the output so that they don't get included in the library
 
11210
      # dependencies.
 
11211
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11212
      ;;
 
11213
    *)
 
11214
      if test "$GXX" = yes; then
 
11215
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11216
      else
 
11217
        # FIXME: insert proper C++ library support
 
11218
        ld_shlibs_CXX=no
 
11219
      fi
 
11220
      ;;
 
11221
    esac
 
11222
    ;;
 
11223
  hpux10*|hpux11*)
 
11224
    if test $with_gnu_ld = no; then
 
11225
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11226
      hardcode_libdir_separator_CXX=:
 
11227
 
 
11228
      case $host_cpu in
 
11229
      hppa*64*|ia64*)
 
11230
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11231
        ;;
 
11232
      *)
 
11233
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11234
        ;;
 
11235
      esac
 
11236
    fi
 
11237
    case $host_cpu in
 
11238
    hppa*64*|ia64*)
 
11239
      hardcode_direct_CXX=no
 
11240
      hardcode_shlibpath_var_CXX=no
 
11241
      ;;
 
11242
    *)
 
11243
      hardcode_direct_CXX=yes
 
11244
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11245
                                              # but as the default
 
11246
                                              # location of the library.
 
11247
      ;;
 
11248
    esac
 
11249
 
 
11250
    case $cc_basename in
 
11251
      CC*)
 
11252
        # FIXME: insert proper C++ library support
 
11253
        ld_shlibs_CXX=no
 
11254
        ;;
 
11255
      aCC*)
 
11256
        case $host_cpu in
 
11257
        hppa*64*)
 
11258
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11259
          ;;
 
11260
        ia64*)
 
11261
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11262
          ;;
 
11263
        *)
 
11264
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11265
          ;;
 
11266
        esac
 
11267
        # Commands to make compiler produce verbose output that lists
 
11268
        # what "hidden" libraries, object files and flags are used when
 
11269
        # linking a shared library.
 
11270
        #
 
11271
        # There doesn't appear to be a way to prevent this compiler from
 
11272
        # explicitly linking system object files so we need to strip them
 
11273
        # from the output so that they don't get included in the library
 
11274
        # dependencies.
 
11275
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11276
        ;;
 
11277
      *)
 
11278
        if test "$GXX" = yes; then
 
11279
          if test $with_gnu_ld = no; then
 
11280
            case $host_cpu in
 
11281
            hppa*64*)
 
11282
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11283
              ;;
 
11284
            ia64*)
 
11285
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11286
              ;;
 
11287
            *)
 
11288
              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'
 
11289
              ;;
 
11290
            esac
 
11291
          fi
 
11292
        else
 
11293
          # FIXME: insert proper C++ library support
 
11294
          ld_shlibs_CXX=no
 
11295
        fi
 
11296
        ;;
 
11297
    esac
 
11298
    ;;
 
11299
  interix3*)
 
11300
    hardcode_direct_CXX=no
 
11301
    hardcode_shlibpath_var_CXX=no
 
11302
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11303
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11304
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11305
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11306
    # default) and relocated if they conflict, which is a slow very memory
 
11307
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11308
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11309
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11310
    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'
 
11311
    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'
 
11312
    ;;
 
11313
  irix5* | irix6*)
 
11314
    case $cc_basename in
 
11315
      CC*)
 
11316
        # SGI C++
 
11317
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11318
 
 
11319
        # Archives containing C++ object files must be created using
 
11320
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11321
        # necessary to make sure instantiated templates are included
 
11322
        # in the archive.
 
11323
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11324
        ;;
 
11325
      *)
 
11326
        if test "$GXX" = yes; then
 
11327
          if test "$with_gnu_ld" = no; then
 
11328
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11329
          else
 
11330
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11331
          fi
 
11332
        fi
 
11333
        link_all_deplibs_CXX=yes
 
11334
        ;;
 
11335
    esac
 
11336
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11337
    hardcode_libdir_separator_CXX=:
 
11338
    ;;
 
11339
  linux* | k*bsd*-gnu)
 
11340
    case $cc_basename in
 
11341
      KCC*)
 
11342
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11343
 
 
11344
        # KCC will only create a shared library if the output file
 
11345
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11346
        # to its proper name (with version) after linking.
 
11347
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11348
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11349
        # Commands to make compiler produce verbose output that lists
 
11350
        # what "hidden" libraries, object files and flags are used when
 
11351
        # linking a shared library.
 
11352
        #
 
11353
        # There doesn't appear to be a way to prevent this compiler from
 
11354
        # explicitly linking system object files so we need to strip them
 
11355
        # from the output so that they don't get included in the library
 
11356
        # dependencies.
 
11357
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11358
 
 
11359
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11360
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11361
 
 
11362
        # Archives containing C++ object files must be created using
 
11363
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11364
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11365
        ;;
 
11366
      icpc*)
 
11367
        # Intel C++
 
11368
        with_gnu_ld=yes
 
11369
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11370
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11371
        # earlier do not add the objects themselves.
 
11372
        case `$CC -V 2>&1` in
 
11373
        *"Version 7."*)
 
11374
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11375
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11376
          ;;
 
11377
        *)  # Version 8.0 or newer
 
11378
          tmp_idyn=
 
11379
          case $host_cpu in
 
11380
            ia64*) tmp_idyn=' -i_dynamic';;
 
11381
          esac
 
11382
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11383
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11384
          ;;
 
11385
        esac
 
11386
        archive_cmds_need_lc_CXX=no
 
11387
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11388
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11389
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11390
        ;;
 
11391
      pgCC*)
 
11392
        # Portland Group C++ compiler
 
11393
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11394
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
11395
 
 
11396
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11397
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11398
        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'
 
11399
        ;;
 
11400
      cxx*)
 
11401
        # Compaq C++
 
11402
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11403
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11404
 
 
11405
        runpath_var=LD_RUN_PATH
 
11406
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11407
        hardcode_libdir_separator_CXX=:
 
11408
 
 
11409
        # Commands to make compiler produce verbose output that lists
 
11410
        # what "hidden" libraries, object files and flags are used when
 
11411
        # linking a shared library.
 
11412
        #
 
11413
        # There doesn't appear to be a way to prevent this compiler from
 
11414
        # explicitly linking system object files so we need to strip them
 
11415
        # from the output so that they don't get included in the library
 
11416
        # dependencies.
 
11417
        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'
 
11418
        ;;
 
11419
    esac
 
11420
    ;;
 
11421
  lynxos*)
 
11422
    # FIXME: insert proper C++ library support
 
11423
    ld_shlibs_CXX=no
 
11424
    ;;
 
11425
  m88k*)
 
11426
    # FIXME: insert proper C++ library support
 
11427
    ld_shlibs_CXX=no
 
11428
    ;;
 
11429
  mvs*)
 
11430
    case $cc_basename in
 
11431
      cxx*)
 
11432
        # FIXME: insert proper C++ library support
 
11433
        ld_shlibs_CXX=no
 
11434
        ;;
 
11435
      *)
 
11436
        # FIXME: insert proper C++ library support
 
11437
        ld_shlibs_CXX=no
 
11438
        ;;
 
11439
    esac
 
11440
    ;;
 
11441
  netbsd* | netbsdelf*-gnu)
 
11442
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11443
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11444
      wlarc=
 
11445
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11446
      hardcode_direct_CXX=yes
 
11447
      hardcode_shlibpath_var_CXX=no
 
11448
    fi
 
11449
    # Workaround some broken pre-1.5 toolchains
 
11450
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11451
    ;;
 
11452
  openbsd2*)
 
11453
    # C++ shared libraries are fairly broken
 
11454
    ld_shlibs_CXX=no
 
11455
    ;;
 
11456
  openbsd*)
 
11457
    hardcode_direct_CXX=yes
 
11458
    hardcode_shlibpath_var_CXX=no
 
11459
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11460
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11461
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11462
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11463
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11464
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11465
    fi
 
11466
    output_verbose_link_cmd='echo'
 
11467
    ;;
 
11468
  osf3*)
 
11469
    case $cc_basename in
 
11470
      KCC*)
 
11471
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11472
 
 
11473
        # KCC will only create a shared library if the output file
 
11474
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11475
        # to its proper name (with version) after linking.
 
11476
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11477
 
 
11478
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11479
        hardcode_libdir_separator_CXX=:
 
11480
 
 
11481
        # Archives containing C++ object files must be created using
 
11482
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11483
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11484
 
 
11485
        ;;
 
11486
      RCC*)
 
11487
        # Rational C++ 2.4.1
 
11488
        # FIXME: insert proper C++ library support
 
11489
        ld_shlibs_CXX=no
 
11490
        ;;
 
11491
      cxx*)
 
11492
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11493
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11494
 
 
11495
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11496
        hardcode_libdir_separator_CXX=:
 
11497
 
 
11498
        # Commands to make compiler produce verbose output that lists
 
11499
        # what "hidden" libraries, object files and flags are used when
 
11500
        # linking a shared library.
 
11501
        #
 
11502
        # There doesn't appear to be a way to prevent this compiler from
 
11503
        # explicitly linking system object files so we need to strip them
 
11504
        # from the output so that they don't get included in the library
 
11505
        # dependencies.
 
11506
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11507
        ;;
 
11508
      *)
 
11509
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11510
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11511
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11512
 
 
11513
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11514
          hardcode_libdir_separator_CXX=:
 
11515
 
 
11516
          # Commands to make compiler produce verbose output that lists
 
11517
          # what "hidden" libraries, object files and flags are used when
 
11518
          # linking a shared library.
 
11519
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11520
 
 
11521
        else
 
11522
          # FIXME: insert proper C++ library support
 
11523
          ld_shlibs_CXX=no
 
11524
        fi
 
11525
        ;;
 
11526
    esac
 
11527
    ;;
 
11528
  osf4* | osf5*)
 
11529
    case $cc_basename in
 
11530
      KCC*)
 
11531
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11532
 
 
11533
        # KCC will only create a shared library if the output file
 
11534
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11535
        # to its proper name (with version) after linking.
 
11536
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11537
 
 
11538
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11539
        hardcode_libdir_separator_CXX=:
 
11540
 
 
11541
        # Archives containing C++ object files must be created using
 
11542
        # the KAI C++ compiler.
 
11543
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11544
        ;;
 
11545
      RCC*)
 
11546
        # Rational C++ 2.4.1
 
11547
        # FIXME: insert proper C++ library support
 
11548
        ld_shlibs_CXX=no
 
11549
        ;;
 
11550
      cxx*)
 
11551
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11552
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11553
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11554
          echo "-hidden">> $lib.exp~
 
11555
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
11556
          $rm $lib.exp'
 
11557
 
 
11558
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11559
        hardcode_libdir_separator_CXX=:
 
11560
 
 
11561
        # Commands to make compiler produce verbose output that lists
 
11562
        # what "hidden" libraries, object files and flags are used when
 
11563
        # linking a shared library.
 
11564
        #
 
11565
        # There doesn't appear to be a way to prevent this compiler from
 
11566
        # explicitly linking system object files so we need to strip them
 
11567
        # from the output so that they don't get included in the library
 
11568
        # dependencies.
 
11569
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11570
        ;;
 
11571
      *)
 
11572
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11573
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11574
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11575
 
 
11576
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11577
          hardcode_libdir_separator_CXX=:
 
11578
 
 
11579
          # Commands to make compiler produce verbose output that lists
 
11580
          # what "hidden" libraries, object files and flags are used when
 
11581
          # linking a shared library.
 
11582
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11583
 
 
11584
        else
 
11585
          # FIXME: insert proper C++ library support
 
11586
          ld_shlibs_CXX=no
 
11587
        fi
 
11588
        ;;
 
11589
    esac
 
11590
    ;;
 
11591
  psos*)
 
11592
    # FIXME: insert proper C++ library support
 
11593
    ld_shlibs_CXX=no
 
11594
    ;;
 
11595
  sunos4*)
 
11596
    case $cc_basename in
 
11597
      CC*)
 
11598
        # Sun C++ 4.x
 
11599
        # FIXME: insert proper C++ library support
 
11600
        ld_shlibs_CXX=no
 
11601
        ;;
 
11602
      lcc*)
 
11603
        # Lucid
 
11604
        # FIXME: insert proper C++ library support
 
11605
        ld_shlibs_CXX=no
 
11606
        ;;
 
11607
      *)
 
11608
        # FIXME: insert proper C++ library support
 
11609
        ld_shlibs_CXX=no
 
11610
        ;;
 
11611
    esac
 
11612
    ;;
 
11613
  solaris*)
 
11614
    case $cc_basename in
 
11615
      CC*)
 
11616
        # Sun C++ 4.2, 5.x and Centerline C++
 
11617
        archive_cmds_need_lc_CXX=yes
 
11618
        no_undefined_flag_CXX=' -zdefs'
 
11619
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11620
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11621
        $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'
 
11622
 
 
11623
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11624
        hardcode_shlibpath_var_CXX=no
 
11625
        case $host_os in
 
11626
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11627
          *)
 
11628
            # The C++ compiler is used as linker so we must use $wl
 
11629
            # flag to pass the commands to the underlying system
 
11630
            # linker. We must also pass each convience library through
 
11631
            # to the system linker between allextract/defaultextract.
 
11632
            # The C++ compiler will combine linker options so we
 
11633
            # cannot just pass the convience library names through
 
11634
            # without $wl.
 
11635
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11636
            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'
 
11637
            ;;
 
11638
        esac
 
11639
        link_all_deplibs_CXX=yes
 
11640
 
 
11641
        output_verbose_link_cmd='echo'
 
11642
 
 
11643
        # Archives containing C++ object files must be created using
 
11644
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11645
        # necessary to make sure instantiated templates are included
 
11646
        # in the archive.
 
11647
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11648
        ;;
 
11649
      gcx*)
 
11650
        # Green Hills C++ Compiler
 
11651
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11652
 
 
11653
        # The C++ compiler must be used to create the archive.
 
11654
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11655
        ;;
 
11656
      *)
 
11657
        # GNU C++ compiler with Solaris linker
 
11658
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11659
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11660
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11661
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11662
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11663
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11664
 
 
11665
            # Commands to make compiler produce verbose output that lists
 
11666
            # what "hidden" libraries, object files and flags are used when
 
11667
            # linking a shared library.
 
11668
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11669
          else
 
11670
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11671
            # platform.
 
11672
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11673
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11674
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11675
 
 
11676
            # Commands to make compiler produce verbose output that lists
 
11677
            # what "hidden" libraries, object files and flags are used when
 
11678
            # linking a shared library.
 
11679
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11680
          fi
 
11681
 
 
11682
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11683
        fi
 
11684
        ;;
 
11685
    esac
 
11686
    ;;
 
11687
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11688
    no_undefined_flag_CXX='${wl}-z,text'
 
11689
    archive_cmds_need_lc_CXX=no
 
11690
    hardcode_shlibpath_var_CXX=no
 
11691
    runpath_var='LD_RUN_PATH'
 
11692
 
 
11693
    case $cc_basename in
 
11694
      CC*)
 
11695
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11696
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11697
        ;;
 
11698
      *)
 
11699
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11700
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11701
        ;;
 
11702
    esac
 
11703
    ;;
 
11704
  sysv5* | sco3.2v5* | sco5v6*)
 
11705
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11706
    # link with -lc, and that would cause any symbols used from libc to
 
11707
    # always be unresolved, which means just about no library would
 
11708
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11709
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11710
    # as -z defs.
 
11711
    # For security reasons, it is highly recommended that you always
 
11712
    # use absolute paths for naming shared libraries, and exclude the
 
11713
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11714
    # requires that you compile everything twice, which is a pain.
 
11715
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11716
    # non-empty value in the environment.  Most likely only useful for
 
11717
    # creating official distributions of packages.
 
11718
    # This is a hack until libtool officially supports absolute path
 
11719
    # names for shared libraries.
 
11720
    no_undefined_flag_CXX='${wl}-z,text'
 
11721
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11722
    archive_cmds_need_lc_CXX=no
 
11723
    hardcode_shlibpath_var_CXX=no
 
11724
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11725
    hardcode_libdir_separator_CXX=':'
 
11726
    link_all_deplibs_CXX=yes
 
11727
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11728
    runpath_var='LD_RUN_PATH'
 
11729
 
 
11730
    case $cc_basename in
 
11731
      CC*)
 
11732
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11733
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11734
        ;;
 
11735
      *)
 
11736
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11737
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11738
        ;;
 
11739
    esac
 
11740
    ;;
 
11741
  tandem*)
 
11742
    case $cc_basename in
 
11743
      NCC*)
 
11744
        # NonStop-UX NCC 3.20
 
11745
        # FIXME: insert proper C++ library support
 
11746
        ld_shlibs_CXX=no
 
11747
        ;;
 
11748
      *)
 
11749
        # FIXME: insert proper C++ library support
 
11750
        ld_shlibs_CXX=no
 
11751
        ;;
 
11752
    esac
 
11753
    ;;
 
11754
  vxworks*)
 
11755
    # FIXME: insert proper C++ library support
 
11756
    ld_shlibs_CXX=no
 
11757
    ;;
 
11758
  *)
 
11759
    # FIXME: insert proper C++ library support
 
11760
    ld_shlibs_CXX=no
 
11761
    ;;
 
11762
esac
 
11763
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11764
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11765
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11766
 
 
11767
GCC_CXX="$GXX"
 
11768
LD_CXX="$LD"
 
11769
 
 
11770
 
 
11771
cat > conftest.$ac_ext <<EOF
 
11772
class Foo
 
11773
{
 
11774
public:
 
11775
  Foo (void) { a = 0; }
 
11776
private:
 
11777
  int a;
 
11778
};
 
11779
EOF
 
11780
 
 
11781
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11782
  (eval $ac_compile) 2>&5
 
11783
  ac_status=$?
 
11784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11785
  (exit $ac_status); }; then
 
11786
  # Parse the compiler output and extract the necessary
 
11787
  # objects, libraries and library flags.
 
11788
 
 
11789
  # Sentinel used to keep track of whether or not we are before
 
11790
  # the conftest object file.
 
11791
  pre_test_object_deps_done=no
 
11792
 
 
11793
  # The `*' in the case matches for architectures that use `case' in
 
11794
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11795
  # eval without this substitution.
 
11796
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11797
 
 
11798
  for p in `eval $output_verbose_link_cmd`; do
 
11799
    case $p in
 
11800
 
 
11801
    -L* | -R* | -l*)
 
11802
       # Some compilers place space between "-{L,R}" and the path.
 
11803
       # Remove the space.
 
11804
       if test $p = "-L" \
 
11805
          || test $p = "-R"; then
 
11806
         prev=$p
 
11807
         continue
 
11808
       else
 
11809
         prev=
 
11810
       fi
 
11811
 
 
11812
       if test "$pre_test_object_deps_done" = no; then
 
11813
         case $p in
 
11814
         -L* | -R*)
 
11815
           # Internal compiler library paths should come after those
 
11816
           # provided the user.  The postdeps already come after the
 
11817
           # user supplied libs so there is no need to process them.
 
11818
           if test -z "$compiler_lib_search_path_CXX"; then
 
11819
             compiler_lib_search_path_CXX="${prev}${p}"
 
11820
           else
 
11821
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11822
           fi
 
11823
           ;;
 
11824
         # The "-l" case would never come before the object being
 
11825
         # linked, so don't bother handling this case.
 
11826
         esac
 
11827
       else
 
11828
         if test -z "$postdeps_CXX"; then
 
11829
           postdeps_CXX="${prev}${p}"
 
11830
         else
 
11831
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11832
         fi
 
11833
       fi
 
11834
       ;;
 
11835
 
 
11836
    *.$objext)
 
11837
       # This assumes that the test object file only shows up
 
11838
       # once in the compiler output.
 
11839
       if test "$p" = "conftest.$objext"; then
 
11840
         pre_test_object_deps_done=yes
 
11841
         continue
 
11842
       fi
 
11843
 
 
11844
       if test "$pre_test_object_deps_done" = no; then
 
11845
         if test -z "$predep_objects_CXX"; then
 
11846
           predep_objects_CXX="$p"
 
11847
         else
 
11848
           predep_objects_CXX="$predep_objects_CXX $p"
 
11849
         fi
 
11850
       else
 
11851
         if test -z "$postdep_objects_CXX"; then
 
11852
           postdep_objects_CXX="$p"
 
11853
         else
 
11854
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11855
         fi
 
11856
       fi
 
11857
       ;;
 
11858
 
 
11859
    *) ;; # Ignore the rest.
 
11860
 
 
11861
    esac
 
11862
  done
 
11863
 
 
11864
  # Clean up.
 
11865
  rm -f a.out a.exe
 
11866
else
 
11867
  echo "libtool.m4: error: problem compiling CXX test program"
 
11868
fi
 
11869
 
 
11870
$rm -f confest.$objext
 
11871
 
 
11872
# PORTME: override above test on systems where it is broken
 
11873
case $host_os in
 
11874
interix3*)
 
11875
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11876
  # hack all around it, let's just trust "g++" to DTRT.
 
11877
  predep_objects_CXX=
 
11878
  postdep_objects_CXX=
 
11879
  postdeps_CXX=
 
11880
  ;;
 
11881
 
 
11882
solaris*)
 
11883
  case $cc_basename in
 
11884
  CC*)
 
11885
    # Adding this requires a known-good setup of shared libraries for
 
11886
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11887
    # archive will be linked into the output, leading to subtle bugs.
 
11888
    postdeps_CXX='-lCstd -lCrun'
 
11889
    ;;
 
11890
  esac
 
11891
  ;;
 
11892
esac
 
11893
 
 
11894
 
 
11895
case " $postdeps_CXX " in
 
11896
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11897
esac
 
11898
 
 
11899
lt_prog_compiler_wl_CXX=
 
11900
lt_prog_compiler_pic_CXX=
 
11901
lt_prog_compiler_static_CXX=
 
11902
 
 
11903
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11904
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
11905
 
 
11906
  # C++ specific cases for pic, static, wl, etc.
 
11907
  if test "$GXX" = yes; then
 
11908
    lt_prog_compiler_wl_CXX='-Wl,'
 
11909
    lt_prog_compiler_static_CXX='-static'
 
11910
 
 
11911
    case $host_os in
 
11912
    aix*)
 
11913
      # All AIX code is PIC.
 
11914
      if test "$host_cpu" = ia64; then
 
11915
        # AIX 5 now supports IA64 processor
 
11916
        lt_prog_compiler_static_CXX='-Bstatic'
 
11917
      fi
 
11918
      ;;
 
11919
    amigaos*)
 
11920
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11921
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11922
      # like `-m68040'.
 
11923
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11924
      ;;
 
11925
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11926
      # PIC is the default for these OSes.
 
11927
      ;;
 
11928
    mingw* | os2* | pw32*)
 
11929
      # This hack is so that the source file can tell whether it is being
 
11930
      # built for inclusion in a dll (and should export symbols for example).
 
11931
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11932
      ;;
 
11933
    darwin* | rhapsody*)
 
11934
      # PIC is the default on this platform
 
11935
      # Common symbols not allowed in MH_DYLIB files
 
11936
      lt_prog_compiler_pic_CXX='-fno-common'
 
11937
      ;;
 
11938
    *djgpp*)
 
11939
      # DJGPP does not support shared libraries at all
 
11940
      lt_prog_compiler_pic_CXX=
 
11941
      ;;
 
11942
    interix3*)
 
11943
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11944
      # Instead, we relocate shared libraries at runtime.
 
11945
      ;;
 
11946
    sysv4*MP*)
 
11947
      if test -d /usr/nec; then
 
11948
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11949
      fi
 
11950
      ;;
 
11951
    hpux*)
 
11952
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11953
      # not for PA HP-UX.
 
11954
      case $host_cpu in
 
11955
      hppa*64*|ia64*)
 
11956
        ;;
 
11957
      *)
 
11958
        lt_prog_compiler_pic_CXX='-fPIC'
 
11959
        ;;
 
11960
      esac
 
11961
      ;;
 
11962
    *)
 
11963
      lt_prog_compiler_pic_CXX='-fPIC'
 
11964
      ;;
 
11965
    esac
 
11966
  else
 
11967
    case $host_os in
 
11968
      aix4* | aix5*)
 
11969
        # All AIX code is PIC.
 
11970
        if test "$host_cpu" = ia64; then
 
11971
          # AIX 5 now supports IA64 processor
 
11972
          lt_prog_compiler_static_CXX='-Bstatic'
 
11973
        else
 
11974
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11975
        fi
 
11976
        ;;
 
11977
      chorus*)
 
11978
        case $cc_basename in
 
11979
        cxch68*)
 
11980
          # Green Hills C++ Compiler
 
11981
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
11982
          ;;
 
11983
        esac
 
11984
        ;;
 
11985
       darwin*)
 
11986
         # PIC is the default on this platform
 
11987
         # Common symbols not allowed in MH_DYLIB files
 
11988
         case $cc_basename in
 
11989
           xlc*)
 
11990
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11991
           lt_prog_compiler_wl_CXX='-Wl,'
 
11992
           ;;
 
11993
         esac
 
11994
       ;;
 
11995
      dgux*)
 
11996
        case $cc_basename in
 
11997
          ec++*)
 
11998
            lt_prog_compiler_pic_CXX='-KPIC'
 
11999
            ;;
 
12000
          ghcx*)
 
12001
            # Green Hills C++ Compiler
 
12002
            lt_prog_compiler_pic_CXX='-pic'
 
12003
            ;;
 
12004
          *)
 
12005
            ;;
 
12006
        esac
 
12007
        ;;
 
12008
      freebsd* | dragonfly*)
 
12009
        # FreeBSD uses GNU C++
 
12010
        ;;
 
12011
      hpux9* | hpux10* | hpux11*)
 
12012
        case $cc_basename in
 
12013
          CC*)
 
12014
            lt_prog_compiler_wl_CXX='-Wl,'
 
12015
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12016
            if test "$host_cpu" != ia64; then
 
12017
              lt_prog_compiler_pic_CXX='+Z'
 
12018
            fi
 
12019
            ;;
 
12020
          aCC*)
 
12021
            lt_prog_compiler_wl_CXX='-Wl,'
 
12022
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12023
            case $host_cpu in
 
12024
            hppa*64*|ia64*)
 
12025
              # +Z the default
 
12026
              ;;
 
12027
            *)
 
12028
              lt_prog_compiler_pic_CXX='+Z'
 
12029
              ;;
 
12030
            esac
 
12031
            ;;
 
12032
          *)
 
12033
            ;;
 
12034
        esac
 
12035
        ;;
 
12036
      interix*)
 
12037
        # This is c89, which is MS Visual C++ (no shared libs)
 
12038
        # Anyone wants to do a port?
 
12039
        ;;
 
12040
      irix5* | irix6* | nonstopux*)
 
12041
        case $cc_basename in
 
12042
          CC*)
 
12043
            lt_prog_compiler_wl_CXX='-Wl,'
 
12044
            lt_prog_compiler_static_CXX='-non_shared'
 
12045
            # CC pic flag -KPIC is the default.
 
12046
            ;;
 
12047
          *)
 
12048
            ;;
 
12049
        esac
 
12050
        ;;
 
12051
      linux* | k*bsd*-gnu)
 
12052
        case $cc_basename in
 
12053
          KCC*)
 
12054
            # KAI C++ Compiler
 
12055
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12056
            lt_prog_compiler_pic_CXX='-fPIC'
 
12057
            ;;
 
12058
          icpc* | ecpc*)
 
12059
            # Intel C++
 
12060
            lt_prog_compiler_wl_CXX='-Wl,'
 
12061
            lt_prog_compiler_pic_CXX='-KPIC'
 
12062
            lt_prog_compiler_static_CXX='-static'
 
12063
            ;;
 
12064
          pgCC*)
 
12065
            # Portland Group C++ compiler.
 
12066
            lt_prog_compiler_wl_CXX='-Wl,'
 
12067
            lt_prog_compiler_pic_CXX='-fpic'
 
12068
            lt_prog_compiler_static_CXX='-Bstatic'
 
12069
            ;;
 
12070
          cxx*)
 
12071
            # Compaq C++
 
12072
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12073
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12074
            lt_prog_compiler_pic_CXX=
 
12075
            lt_prog_compiler_static_CXX='-non_shared'
 
12076
            ;;
 
12077
          *)
 
12078
            ;;
 
12079
        esac
 
12080
        ;;
 
12081
      lynxos*)
 
12082
        ;;
 
12083
      m88k*)
 
12084
        ;;
 
12085
      mvs*)
 
12086
        case $cc_basename in
 
12087
          cxx*)
 
12088
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12089
            ;;
 
12090
          *)
 
12091
            ;;
 
12092
        esac
 
12093
        ;;
 
12094
      netbsd* | netbsdelf*-gnu)
 
12095
        ;;
 
12096
      osf3* | osf4* | osf5*)
 
12097
        case $cc_basename in
 
12098
          KCC*)
 
12099
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12100
            ;;
 
12101
          RCC*)
 
12102
            # Rational C++ 2.4.1
 
12103
            lt_prog_compiler_pic_CXX='-pic'
 
12104
            ;;
 
12105
          cxx*)
 
12106
            # Digital/Compaq C++
 
12107
            lt_prog_compiler_wl_CXX='-Wl,'
 
12108
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12109
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12110
            lt_prog_compiler_pic_CXX=
 
12111
            lt_prog_compiler_static_CXX='-non_shared'
 
12112
            ;;
 
12113
          *)
 
12114
            ;;
 
12115
        esac
 
12116
        ;;
 
12117
      psos*)
 
12118
        ;;
 
12119
      solaris*)
 
12120
        case $cc_basename in
 
12121
          CC*)
 
12122
            # Sun C++ 4.2, 5.x and Centerline C++
 
12123
            lt_prog_compiler_pic_CXX='-KPIC'
 
12124
            lt_prog_compiler_static_CXX='-Bstatic'
 
12125
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12126
            ;;
 
12127
          gcx*)
 
12128
            # Green Hills C++ Compiler
 
12129
            lt_prog_compiler_pic_CXX='-PIC'
 
12130
            ;;
 
12131
          *)
 
12132
            ;;
 
12133
        esac
 
12134
        ;;
 
12135
      sunos4*)
 
12136
        case $cc_basename in
 
12137
          CC*)
 
12138
            # Sun C++ 4.x
 
12139
            lt_prog_compiler_pic_CXX='-pic'
 
12140
            lt_prog_compiler_static_CXX='-Bstatic'
 
12141
            ;;
 
12142
          lcc*)
 
12143
            # Lucid
 
12144
            lt_prog_compiler_pic_CXX='-pic'
 
12145
            ;;
 
12146
          *)
 
12147
            ;;
 
12148
        esac
 
12149
        ;;
 
12150
      tandem*)
 
12151
        case $cc_basename in
 
12152
          NCC*)
 
12153
            # NonStop-UX NCC 3.20
 
12154
            lt_prog_compiler_pic_CXX='-KPIC'
 
12155
            ;;
 
12156
          *)
 
12157
            ;;
 
12158
        esac
 
12159
        ;;
 
12160
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12161
        case $cc_basename in
 
12162
          CC*)
 
12163
            lt_prog_compiler_wl_CXX='-Wl,'
 
12164
            lt_prog_compiler_pic_CXX='-KPIC'
 
12165
            lt_prog_compiler_static_CXX='-Bstatic'
 
12166
            ;;
 
12167
        esac
 
12168
        ;;
 
12169
      vxworks*)
 
12170
        ;;
 
12171
      *)
 
12172
        lt_prog_compiler_can_build_shared_CXX=no
 
12173
        ;;
 
12174
    esac
 
12175
  fi
 
12176
 
 
12177
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12178
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12179
 
 
12180
#
 
12181
# Check to make sure the PIC flag actually works.
 
12182
#
 
12183
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12184
 
 
12185
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12186
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12187
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12189
else
 
12190
  lt_prog_compiler_pic_works_CXX=no
 
12191
  ac_outfile=conftest.$ac_objext
 
12192
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12193
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12194
   # Insert the option either (1) after the last *FLAGS variable, or
 
12195
   # (2) before a word containing "conftest.", or (3) at the end.
 
12196
   # Note that $ac_compile itself does not contain backslashes and begins
 
12197
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12198
   # The option is referenced via a variable to avoid confusing sed.
 
12199
   lt_compile=`echo "$ac_compile" | $SED \
 
12200
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12201
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12202
   -e 's:$: $lt_compiler_flag:'`
 
12203
   (eval echo "\"\$as_me:12203: $lt_compile\"" >&5)
 
12204
   (eval "$lt_compile" 2>conftest.err)
 
12205
   ac_status=$?
 
12206
   cat conftest.err >&5
 
12207
   echo "$as_me:12207: \$? = $ac_status" >&5
 
12208
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12209
     # The compiler can only warn and ignore the option if not recognized
 
12210
     # So say no if there are warnings other than the usual output.
 
12211
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12212
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12213
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12214
       lt_prog_compiler_pic_works_CXX=yes
 
12215
     fi
 
12216
   fi
 
12217
   $rm conftest*
 
12218
 
 
12219
fi
 
12220
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12221
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12222
 
 
12223
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12224
    case $lt_prog_compiler_pic_CXX in
 
12225
     "" | " "*) ;;
 
12226
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12227
     esac
 
12228
else
 
12229
    lt_prog_compiler_pic_CXX=
 
12230
     lt_prog_compiler_can_build_shared_CXX=no
 
12231
fi
 
12232
 
 
12233
fi
 
12234
case $host_os in
 
12235
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12236
  *djgpp*)
 
12237
    lt_prog_compiler_pic_CXX=
 
12238
    ;;
 
12239
  *)
 
12240
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12241
    ;;
 
12242
esac
 
12243
 
 
12244
#
 
12245
# Check to make sure the static flag actually works.
 
12246
#
 
12247
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12248
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12249
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12250
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12252
else
 
12253
  lt_prog_compiler_static_works_CXX=no
 
12254
   save_LDFLAGS="$LDFLAGS"
 
12255
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12256
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12257
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12258
     # The linker can only warn and ignore the option if not recognized
 
12259
     # So say no if there are warnings
 
12260
     if test -s conftest.err; then
 
12261
       # Append any errors to the config.log.
 
12262
       cat conftest.err 1>&5
 
12263
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12264
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12265
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12266
         lt_prog_compiler_static_works_CXX=yes
 
12267
       fi
 
12268
     else
 
12269
       lt_prog_compiler_static_works_CXX=yes
 
12270
     fi
 
12271
   fi
 
12272
   $rm conftest*
 
12273
   LDFLAGS="$save_LDFLAGS"
 
12274
 
 
12275
fi
 
12276
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12277
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12278
 
 
12279
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12280
    :
 
12281
else
 
12282
    lt_prog_compiler_static_CXX=
 
12283
fi
 
12284
 
 
12285
 
 
12286
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12287
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12288
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12290
else
 
12291
  lt_cv_prog_compiler_c_o_CXX=no
 
12292
   $rm -r conftest 2>/dev/null
 
12293
   mkdir conftest
 
12294
   cd conftest
 
12295
   mkdir out
 
12296
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12297
 
 
12298
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12299
   # Insert the option either (1) after the last *FLAGS variable, or
 
12300
   # (2) before a word containing "conftest.", or (3) at the end.
 
12301
   # Note that $ac_compile itself does not contain backslashes and begins
 
12302
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12303
   lt_compile=`echo "$ac_compile" | $SED \
 
12304
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12305
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12306
   -e 's:$: $lt_compiler_flag:'`
 
12307
   (eval echo "\"\$as_me:12307: $lt_compile\"" >&5)
 
12308
   (eval "$lt_compile" 2>out/conftest.err)
 
12309
   ac_status=$?
 
12310
   cat out/conftest.err >&5
 
12311
   echo "$as_me:12311: \$? = $ac_status" >&5
 
12312
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12313
   then
 
12314
     # The compiler can only warn and ignore the option if not recognized
 
12315
     # So say no if there are warnings
 
12316
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12317
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12318
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12319
       lt_cv_prog_compiler_c_o_CXX=yes
 
12320
     fi
 
12321
   fi
 
12322
   chmod u+w . 2>&5
 
12323
   $rm conftest*
 
12324
   # SGI C++ compiler will create directory out/ii_files/ for
 
12325
   # template instantiation
 
12326
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12327
   $rm out/* && rmdir out
 
12328
   cd ..
 
12329
   rmdir conftest
 
12330
   $rm conftest*
 
12331
 
 
12332
fi
 
12333
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12334
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12335
 
 
12336
 
 
12337
hard_links="nottested"
 
12338
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12339
  # do not overwrite the value of need_locks provided by the user
 
12340
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12341
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12342
  hard_links=yes
 
12343
  $rm conftest*
 
12344
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12345
  touch conftest.a
 
12346
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12347
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12348
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12349
echo "${ECHO_T}$hard_links" >&6; }
 
12350
  if test "$hard_links" = no; then
 
12351
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12352
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12353
    need_locks=warn
 
12354
  fi
 
12355
else
 
12356
  need_locks=no
 
12357
fi
 
12358
 
 
12359
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12360
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12361
 
 
12362
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12363
  case $host_os in
 
12364
  aix4* | aix5*)
 
12365
    # If we're using GNU nm, then we don't want the "-C" option.
 
12366
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12367
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12368
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12369
    else
 
12370
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12371
    fi
 
12372
    ;;
 
12373
  pw32*)
 
12374
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12375
  ;;
 
12376
  cygwin* | mingw*)
 
12377
    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'
 
12378
  ;;
 
12379
  linux* | k*bsd*-gnu)
 
12380
    link_all_deplibs_CXX=no
 
12381
  ;;
 
12382
  *)
 
12383
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12384
  ;;
 
12385
  esac
 
12386
 
 
12387
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12388
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12389
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12390
 
 
12391
#
 
12392
# Do we need to explicitly link libc?
 
12393
#
 
12394
case "x$archive_cmds_need_lc_CXX" in
 
12395
x|xyes)
 
12396
  # Assume -lc should be added
 
12397
  archive_cmds_need_lc_CXX=yes
 
12398
 
 
12399
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12400
    case $archive_cmds_CXX in
 
12401
    *'~'*)
 
12402
      # FIXME: we may have to deal with multi-command sequences.
 
12403
      ;;
 
12404
    '$CC '*)
 
12405
      # Test whether the compiler implicitly links with -lc since on some
 
12406
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12407
      # to ld, don't add -lc before -lgcc.
 
12408
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12409
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12410
      $rm conftest*
 
12411
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12412
 
 
12413
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12414
  (eval $ac_compile) 2>&5
 
12415
  ac_status=$?
 
12416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12417
  (exit $ac_status); } 2>conftest.err; then
 
12418
        soname=conftest
 
12419
        lib=conftest
 
12420
        libobjs=conftest.$ac_objext
 
12421
        deplibs=
 
12422
        wl=$lt_prog_compiler_wl_CXX
 
12423
        pic_flag=$lt_prog_compiler_pic_CXX
 
12424
        compiler_flags=-v
 
12425
        linker_flags=-v
 
12426
        verstring=
 
12427
        output_objdir=.
 
12428
        libname=conftest
 
12429
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12430
        allow_undefined_flag_CXX=
 
12431
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12432
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12433
  ac_status=$?
 
12434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12435
  (exit $ac_status); }
 
12436
        then
 
12437
          archive_cmds_need_lc_CXX=no
 
12438
        else
 
12439
          archive_cmds_need_lc_CXX=yes
 
12440
        fi
 
12441
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12442
      else
 
12443
        cat conftest.err 1>&5
 
12444
      fi
 
12445
      $rm conftest*
 
12446
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12447
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12448
      ;;
 
12449
    esac
 
12450
  fi
 
12451
  ;;
 
12452
esac
 
12453
 
 
12454
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12455
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12456
library_names_spec=
 
12457
libname_spec='lib$name'
 
12458
soname_spec=
 
12459
shrext_cmds=".so"
 
12460
postinstall_cmds=
 
12461
postuninstall_cmds=
 
12462
finish_cmds=
 
12463
finish_eval=
 
12464
shlibpath_var=
 
12465
shlibpath_overrides_runpath=unknown
 
12466
version_type=none
 
12467
dynamic_linker="$host_os ld.so"
 
12468
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12469
if test "$GCC" = yes; then
 
12470
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12471
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12472
    # if the path contains ";" then we assume it to be the separator
 
12473
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12474
    # assumed that no part of a normal pathname contains ";" but that should
 
12475
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12476
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12477
  else
 
12478
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12479
  fi
 
12480
else
 
12481
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12482
fi
 
12483
need_lib_prefix=unknown
 
12484
hardcode_into_libs=no
 
12485
 
 
12486
# when you set need_version to no, make sure it does not cause -set_version
 
12487
# flags to be left without arguments
 
12488
need_version=unknown
 
12489
 
 
12490
case $host_os in
 
12491
aix3*)
 
12492
  version_type=linux
 
12493
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12494
  shlibpath_var=LIBPATH
 
12495
 
 
12496
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12497
  soname_spec='${libname}${release}${shared_ext}$major'
 
12498
  ;;
 
12499
 
 
12500
aix4* | aix5*)
 
12501
  version_type=linux
 
12502
  need_lib_prefix=no
 
12503
  need_version=no
 
12504
  hardcode_into_libs=yes
 
12505
  if test "$host_cpu" = ia64; then
 
12506
    # AIX 5 supports IA64
 
12507
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12508
    shlibpath_var=LD_LIBRARY_PATH
 
12509
  else
 
12510
    # With GCC up to 2.95.x, collect2 would create an import file
 
12511
    # for dependence libraries.  The import file would start with
 
12512
    # the line `#! .'.  This would cause the generated library to
 
12513
    # depend on `.', always an invalid library.  This was fixed in
 
12514
    # development snapshots of GCC prior to 3.0.
 
12515
    case $host_os in
 
12516
      aix4 | aix4.[01] | aix4.[01].*)
 
12517
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12518
           echo ' yes '
 
12519
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12520
        :
 
12521
      else
 
12522
        can_build_shared=no
 
12523
      fi
 
12524
      ;;
 
12525
    esac
 
12526
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12527
    # soname into executable. Probably we can add versioning support to
 
12528
    # collect2, so additional links can be useful in future.
 
12529
    if test "$aix_use_runtimelinking" = yes; then
 
12530
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12531
      # instead of lib<name>.a to let people know that these are not
 
12532
      # typical AIX shared libraries.
 
12533
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12534
    else
 
12535
      # We preserve .a as extension for shared libraries through AIX4.2
 
12536
      # and later when we are not doing run time linking.
 
12537
      library_names_spec='${libname}${release}.a $libname.a'
 
12538
      soname_spec='${libname}${release}${shared_ext}$major'
 
12539
    fi
 
12540
    shlibpath_var=LIBPATH
 
12541
  fi
 
12542
  ;;
 
12543
 
 
12544
amigaos*)
 
12545
  library_names_spec='$libname.ixlibrary $libname.a'
 
12546
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12547
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
12548
  ;;
 
12549
 
 
12550
beos*)
 
12551
  library_names_spec='${libname}${shared_ext}'
 
12552
  dynamic_linker="$host_os ld.so"
 
12553
  shlibpath_var=LIBRARY_PATH
 
12554
  ;;
 
12555
 
 
12556
bsdi[45]*)
 
12557
  version_type=linux
 
12558
  need_version=no
 
12559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12560
  soname_spec='${libname}${release}${shared_ext}$major'
 
12561
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12562
  shlibpath_var=LD_LIBRARY_PATH
 
12563
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12564
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12565
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12566
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12567
  # libtool to hard-code these into programs
 
12568
  ;;
 
12569
 
 
12570
cygwin* | mingw* | pw32*)
 
12571
  version_type=windows
 
12572
  shrext_cmds=".dll"
 
12573
  need_version=no
 
12574
  need_lib_prefix=no
 
12575
 
 
12576
  case $GCC,$host_os in
 
12577
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12578
    library_names_spec='$libname.dll.a'
 
12579
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12580
    postinstall_cmds='base_file=`basename \${file}`~
 
12581
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12582
      dldir=$destdir/`dirname \$dlpath`~
 
12583
      test -d \$dldir || mkdir -p \$dldir~
 
12584
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12585
      chmod a+x \$dldir/$dlname'
 
12586
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12587
      dlpath=$dir/\$dldll~
 
12588
       $rm \$dlpath'
 
12589
    shlibpath_overrides_runpath=yes
 
12590
 
 
12591
    case $host_os in
 
12592
    cygwin*)
 
12593
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12594
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12595
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12596
      ;;
 
12597
    mingw*)
 
12598
      # MinGW DLLs use traditional 'lib' prefix
 
12599
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12600
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12601
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12602
        # It is most probably a Windows format PATH printed by
 
12603
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12604
        # path with ; separators, and with drive letters. We can handle the
 
12605
        # drive letters (cygwin fileutils understands them), so leave them,
 
12606
        # especially as we might pass files found there to a mingw objdump,
 
12607
        # which wouldn't understand a cygwinified path. Ahh.
 
12608
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12609
      else
 
12610
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12611
      fi
 
12612
      ;;
 
12613
    pw32*)
 
12614
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12615
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12616
      ;;
 
12617
    esac
 
12618
    ;;
 
12619
 
 
12620
  *)
 
12621
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12622
    ;;
 
12623
  esac
 
12624
  dynamic_linker='Win32 ld.exe'
 
12625
  # FIXME: first we should search . and the directory the executable is in
 
12626
  shlibpath_var=PATH
 
12627
  ;;
 
12628
 
 
12629
darwin* | rhapsody*)
 
12630
  dynamic_linker="$host_os dyld"
 
12631
  version_type=darwin
 
12632
  need_lib_prefix=no
 
12633
  need_version=no
 
12634
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12635
  soname_spec='${libname}${release}${major}$shared_ext'
 
12636
  shlibpath_overrides_runpath=yes
 
12637
  shlibpath_var=DYLD_LIBRARY_PATH
 
12638
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12639
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12640
  if test "$GCC" = yes; then
 
12641
    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"`
 
12642
  else
 
12643
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12644
  fi
 
12645
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12646
  ;;
 
12647
 
 
12648
dgux*)
 
12649
  version_type=linux
 
12650
  need_lib_prefix=no
 
12651
  need_version=no
 
12652
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12653
  soname_spec='${libname}${release}${shared_ext}$major'
 
12654
  shlibpath_var=LD_LIBRARY_PATH
 
12655
  ;;
 
12656
 
 
12657
freebsd1*)
 
12658
  dynamic_linker=no
 
12659
  ;;
 
12660
 
 
12661
freebsd* | dragonfly*)
 
12662
  # DragonFly does not have aout.  When/if they implement a new
 
12663
  # versioning mechanism, adjust this.
 
12664
  if test -x /usr/bin/objformat; then
 
12665
    objformat=`/usr/bin/objformat`
 
12666
  else
 
12667
    case $host_os in
 
12668
    freebsd[123]*) objformat=aout ;;
 
12669
    *) objformat=elf ;;
 
12670
    esac
 
12671
  fi
 
12672
  version_type=freebsd-$objformat
 
12673
  case $version_type in
 
12674
    freebsd-elf*)
 
12675
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12676
      need_version=no
 
12677
      need_lib_prefix=no
 
12678
      ;;
 
12679
    freebsd-*)
 
12680
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12681
      need_version=yes
 
12682
      ;;
 
12683
  esac
 
12684
  shlibpath_var=LD_LIBRARY_PATH
 
12685
  case $host_os in
 
12686
  freebsd2*)
 
12687
    shlibpath_overrides_runpath=yes
 
12688
    ;;
 
12689
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12690
    shlibpath_overrides_runpath=yes
 
12691
    hardcode_into_libs=yes
 
12692
    ;;
 
12693
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12694
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12695
    shlibpath_overrides_runpath=no
 
12696
    hardcode_into_libs=yes
 
12697
    ;;
 
12698
  freebsd*) # from 4.6 on
 
12699
    shlibpath_overrides_runpath=yes
 
12700
    hardcode_into_libs=yes
 
12701
    ;;
 
12702
  esac
 
12703
  ;;
 
12704
 
 
12705
gnu*)
 
12706
  version_type=linux
 
12707
  need_lib_prefix=no
 
12708
  need_version=no
 
12709
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12710
  soname_spec='${libname}${release}${shared_ext}$major'
 
12711
  shlibpath_var=LD_LIBRARY_PATH
 
12712
  hardcode_into_libs=yes
 
12713
  ;;
 
12714
 
 
12715
hpux9* | hpux10* | hpux11*)
 
12716
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12717
  # link against other versions.
 
12718
  version_type=sunos
 
12719
  need_lib_prefix=no
 
12720
  need_version=no
 
12721
  case $host_cpu in
 
12722
  ia64*)
 
12723
    shrext_cmds='.so'
 
12724
    hardcode_into_libs=yes
 
12725
    dynamic_linker="$host_os dld.so"
 
12726
    shlibpath_var=LD_LIBRARY_PATH
 
12727
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12728
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12729
    soname_spec='${libname}${release}${shared_ext}$major'
 
12730
    if test "X$HPUX_IA64_MODE" = X32; then
 
12731
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12732
    else
 
12733
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12734
    fi
 
12735
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12736
    ;;
 
12737
   hppa*64*)
 
12738
     shrext_cmds='.sl'
 
12739
     hardcode_into_libs=yes
 
12740
     dynamic_linker="$host_os dld.sl"
 
12741
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12742
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12743
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12744
     soname_spec='${libname}${release}${shared_ext}$major'
 
12745
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12746
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12747
     ;;
 
12748
   *)
 
12749
    shrext_cmds='.sl'
 
12750
    dynamic_linker="$host_os dld.sl"
 
12751
    shlibpath_var=SHLIB_PATH
 
12752
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12753
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12754
    soname_spec='${libname}${release}${shared_ext}$major'
 
12755
    ;;
 
12756
  esac
 
12757
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12758
  postinstall_cmds='chmod 555 $lib'
 
12759
  ;;
 
12760
 
 
12761
interix3*)
 
12762
  version_type=linux
 
12763
  need_lib_prefix=no
 
12764
  need_version=no
 
12765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12766
  soname_spec='${libname}${release}${shared_ext}$major'
 
12767
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12768
  shlibpath_var=LD_LIBRARY_PATH
 
12769
  shlibpath_overrides_runpath=no
 
12770
  hardcode_into_libs=yes
 
12771
  ;;
 
12772
 
 
12773
irix5* | irix6* | nonstopux*)
 
12774
  case $host_os in
 
12775
    nonstopux*) version_type=nonstopux ;;
 
12776
    *)
 
12777
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12778
                version_type=linux
 
12779
        else
 
12780
                version_type=irix
 
12781
        fi ;;
 
12782
  esac
 
12783
  need_lib_prefix=no
 
12784
  need_version=no
 
12785
  soname_spec='${libname}${release}${shared_ext}$major'
 
12786
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12787
  case $host_os in
 
12788
  irix5* | nonstopux*)
 
12789
    libsuff= shlibsuff=
 
12790
    ;;
 
12791
  *)
 
12792
    case $LD in # libtool.m4 will add one of these switches to LD
 
12793
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12794
      libsuff= shlibsuff= libmagic=32-bit;;
 
12795
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12796
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12797
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12798
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12799
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12800
    esac
 
12801
    ;;
 
12802
  esac
 
12803
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12804
  shlibpath_overrides_runpath=no
 
12805
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12806
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12807
  hardcode_into_libs=yes
 
12808
  ;;
 
12809
 
 
12810
# No shared lib support for Linux oldld, aout, or coff.
 
12811
linux*oldld* | linux*aout* | linux*coff*)
 
12812
  dynamic_linker=no
 
12813
  ;;
 
12814
 
 
12815
# This must be Linux ELF.
 
12816
linux* | k*bsd*-gnu)
 
12817
  version_type=linux
 
12818
  need_lib_prefix=no
 
12819
  need_version=no
 
12820
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12821
  soname_spec='${libname}${release}${shared_ext}$major'
 
12822
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12823
  shlibpath_var=LD_LIBRARY_PATH
 
12824
  shlibpath_overrides_runpath=no
 
12825
  # This implies no fast_install, which is unacceptable.
 
12826
  # Some rework will be needed to allow for fast_install
 
12827
  # before this can be enabled.
 
12828
  hardcode_into_libs=yes
 
12829
 
 
12830
  # Append ld.so.conf contents to the search path
 
12831
  if test -f /etc/ld.so.conf; then
 
12832
    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' ' '`
 
12833
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12834
  fi
 
12835
 
 
12836
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12837
  # powerpc, because MkLinux only supported shared libraries with the
 
12838
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12839
  # most powerpc-linux boxes support dynamic linking these days and
 
12840
  # people can always --disable-shared, the test was removed, and we
 
12841
  # assume the GNU/Linux dynamic linker is in use.
 
12842
  dynamic_linker='GNU/Linux ld.so'
 
12843
  ;;
 
12844
 
 
12845
netbsdelf*-gnu)
 
12846
  version_type=linux
 
12847
  need_lib_prefix=no
 
12848
  need_version=no
 
12849
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12850
  soname_spec='${libname}${release}${shared_ext}$major'
 
12851
  shlibpath_var=LD_LIBRARY_PATH
 
12852
  shlibpath_overrides_runpath=no
 
12853
  hardcode_into_libs=yes
 
12854
  dynamic_linker='NetBSD ld.elf_so'
 
12855
  ;;
 
12856
 
 
12857
netbsd*)
 
12858
  version_type=sunos
 
12859
  need_lib_prefix=no
 
12860
  need_version=no
 
12861
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12862
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12863
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12864
    dynamic_linker='NetBSD (a.out) ld.so'
 
12865
  else
 
12866
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12867
    soname_spec='${libname}${release}${shared_ext}$major'
 
12868
    dynamic_linker='NetBSD ld.elf_so'
 
12869
  fi
 
12870
  shlibpath_var=LD_LIBRARY_PATH
 
12871
  shlibpath_overrides_runpath=yes
 
12872
  hardcode_into_libs=yes
 
12873
  ;;
 
12874
 
 
12875
newsos6)
 
12876
  version_type=linux
 
12877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12878
  shlibpath_var=LD_LIBRARY_PATH
 
12879
  shlibpath_overrides_runpath=yes
 
12880
  ;;
 
12881
 
 
12882
nto-qnx*)
 
12883
  version_type=linux
 
12884
  need_lib_prefix=no
 
12885
  need_version=no
 
12886
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12887
  soname_spec='${libname}${release}${shared_ext}$major'
 
12888
  shlibpath_var=LD_LIBRARY_PATH
 
12889
  shlibpath_overrides_runpath=yes
 
12890
  ;;
 
12891
 
 
12892
openbsd*)
 
12893
  version_type=sunos
 
12894
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12895
  need_lib_prefix=no
 
12896
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12897
  case $host_os in
 
12898
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12899
    *)                         need_version=no  ;;
 
12900
  esac
 
12901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12902
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12903
  shlibpath_var=LD_LIBRARY_PATH
 
12904
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12905
    case $host_os in
 
12906
      openbsd2.[89] | openbsd2.[89].*)
 
12907
        shlibpath_overrides_runpath=no
 
12908
        ;;
 
12909
      *)
 
12910
        shlibpath_overrides_runpath=yes
 
12911
        ;;
 
12912
      esac
 
12913
  else
 
12914
    shlibpath_overrides_runpath=yes
 
12915
  fi
 
12916
  ;;
 
12917
 
 
12918
os2*)
 
12919
  libname_spec='$name'
 
12920
  shrext_cmds=".dll"
 
12921
  need_lib_prefix=no
 
12922
  library_names_spec='$libname${shared_ext} $libname.a'
 
12923
  dynamic_linker='OS/2 ld.exe'
 
12924
  shlibpath_var=LIBPATH
 
12925
  ;;
 
12926
 
 
12927
osf3* | osf4* | osf5*)
 
12928
  version_type=osf
 
12929
  need_lib_prefix=no
 
12930
  need_version=no
 
12931
  soname_spec='${libname}${release}${shared_ext}$major'
 
12932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12933
  shlibpath_var=LD_LIBRARY_PATH
 
12934
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12935
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12936
  ;;
 
12937
 
 
12938
solaris*)
 
12939
  version_type=linux
 
12940
  need_lib_prefix=no
 
12941
  need_version=no
 
12942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12943
  soname_spec='${libname}${release}${shared_ext}$major'
 
12944
  shlibpath_var=LD_LIBRARY_PATH
 
12945
  shlibpath_overrides_runpath=yes
 
12946
  hardcode_into_libs=yes
 
12947
  # ldd complains unless libraries are executable
 
12948
  postinstall_cmds='chmod +x $lib'
 
12949
  ;;
 
12950
 
 
12951
sunos4*)
 
12952
  version_type=sunos
 
12953
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12954
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12955
  shlibpath_var=LD_LIBRARY_PATH
 
12956
  shlibpath_overrides_runpath=yes
 
12957
  if test "$with_gnu_ld" = yes; then
 
12958
    need_lib_prefix=no
 
12959
  fi
 
12960
  need_version=yes
 
12961
  ;;
 
12962
 
 
12963
sysv4 | sysv4.3*)
 
12964
  version_type=linux
 
12965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12966
  soname_spec='${libname}${release}${shared_ext}$major'
 
12967
  shlibpath_var=LD_LIBRARY_PATH
 
12968
  case $host_vendor in
 
12969
    sni)
 
12970
      shlibpath_overrides_runpath=no
 
12971
      need_lib_prefix=no
 
12972
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12973
      runpath_var=LD_RUN_PATH
 
12974
      ;;
 
12975
    siemens)
 
12976
      need_lib_prefix=no
 
12977
      ;;
 
12978
    motorola)
 
12979
      need_lib_prefix=no
 
12980
      need_version=no
 
12981
      shlibpath_overrides_runpath=no
 
12982
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12983
      ;;
 
12984
  esac
 
12985
  ;;
 
12986
 
 
12987
sysv4*MP*)
 
12988
  if test -d /usr/nec ;then
 
12989
    version_type=linux
 
12990
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12991
    soname_spec='$libname${shared_ext}.$major'
 
12992
    shlibpath_var=LD_LIBRARY_PATH
 
12993
  fi
 
12994
  ;;
 
12995
 
 
12996
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12997
  version_type=freebsd-elf
 
12998
  need_lib_prefix=no
 
12999
  need_version=no
 
13000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13001
  soname_spec='${libname}${release}${shared_ext}$major'
 
13002
  shlibpath_var=LD_LIBRARY_PATH
 
13003
  hardcode_into_libs=yes
 
13004
  if test "$with_gnu_ld" = yes; then
 
13005
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13006
    shlibpath_overrides_runpath=no
 
13007
  else
 
13008
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13009
    shlibpath_overrides_runpath=yes
 
13010
    case $host_os in
 
13011
      sco3.2v5*)
 
13012
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13013
        ;;
 
13014
    esac
 
13015
  fi
 
13016
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13017
  ;;
 
13018
 
 
13019
uts4*)
 
13020
  version_type=linux
 
13021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13022
  soname_spec='${libname}${release}${shared_ext}$major'
 
13023
  shlibpath_var=LD_LIBRARY_PATH
 
13024
  ;;
 
13025
 
 
13026
*)
 
13027
  dynamic_linker=no
 
13028
  ;;
 
13029
esac
 
13030
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13031
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13032
test "$dynamic_linker" = no && can_build_shared=no
 
13033
 
 
13034
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13035
if test "$GCC" = yes; then
 
13036
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13037
fi
 
13038
 
 
13039
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13040
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13041
hardcode_action_CXX=
 
13042
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13043
   test -n "$runpath_var_CXX" || \
 
13044
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13045
 
 
13046
  # We can hardcode non-existant directories.
 
13047
  if test "$hardcode_direct_CXX" != no &&
 
13048
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13049
     # have to relink, otherwise we might link with an installed library
 
13050
     # when we should be linking with a yet-to-be-installed one
 
13051
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13052
     test "$hardcode_minus_L_CXX" != no; then
 
13053
    # Linking always hardcodes the temporary library directory.
 
13054
    hardcode_action_CXX=relink
 
13055
  else
 
13056
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13057
    hardcode_action_CXX=immediate
 
13058
  fi
 
13059
else
 
13060
  # We cannot hardcode anything, or else we can only hardcode existing
 
13061
  # directories.
 
13062
  hardcode_action_CXX=unsupported
 
13063
fi
 
13064
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13065
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13066
 
 
13067
if test "$hardcode_action_CXX" = relink; then
 
13068
  # Fast installation is not supported
 
13069
  enable_fast_install=no
 
13070
elif test "$shlibpath_overrides_runpath" = yes ||
 
13071
     test "$enable_shared" = no; then
 
13072
  # Fast installation is not necessary
 
13073
  enable_fast_install=needless
 
13074
fi
 
13075
 
 
13076
 
 
13077
# The else clause should only fire when bootstrapping the
 
13078
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13079
# with your package, and you will get complaints that there are
 
13080
# no rules to generate ltmain.sh.
 
13081
if test -f "$ltmain"; then
 
13082
  # See if we are running on zsh, and set the options which allow our commands through
 
13083
  # without removal of \ escapes.
 
13084
  if test -n "${ZSH_VERSION+set}" ; then
 
13085
    setopt NO_GLOB_SUBST
 
13086
  fi
 
13087
  # Now quote all the things that may contain metacharacters while being
 
13088
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13089
  # variables and quote the copies for generation of the libtool script.
 
13090
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13091
    SED SHELL STRIP \
 
13092
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13093
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13094
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13095
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13096
    lt_cv_sys_global_symbol_to_c_name_address \
 
13097
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13098
    old_postinstall_cmds old_postuninstall_cmds \
 
13099
    compiler_CXX \
 
13100
    CC_CXX \
 
13101
    LD_CXX \
 
13102
    lt_prog_compiler_wl_CXX \
 
13103
    lt_prog_compiler_pic_CXX \
 
13104
    lt_prog_compiler_static_CXX \
 
13105
    lt_prog_compiler_no_builtin_flag_CXX \
 
13106
    export_dynamic_flag_spec_CXX \
 
13107
    thread_safe_flag_spec_CXX \
 
13108
    whole_archive_flag_spec_CXX \
 
13109
    enable_shared_with_static_runtimes_CXX \
 
13110
    old_archive_cmds_CXX \
 
13111
    old_archive_from_new_cmds_CXX \
 
13112
    predep_objects_CXX \
 
13113
    postdep_objects_CXX \
 
13114
    predeps_CXX \
 
13115
    postdeps_CXX \
 
13116
    compiler_lib_search_path_CXX \
 
13117
    archive_cmds_CXX \
 
13118
    archive_expsym_cmds_CXX \
 
13119
    postinstall_cmds_CXX \
 
13120
    postuninstall_cmds_CXX \
 
13121
    old_archive_from_expsyms_cmds_CXX \
 
13122
    allow_undefined_flag_CXX \
 
13123
    no_undefined_flag_CXX \
 
13124
    export_symbols_cmds_CXX \
 
13125
    hardcode_libdir_flag_spec_CXX \
 
13126
    hardcode_libdir_flag_spec_ld_CXX \
 
13127
    hardcode_libdir_separator_CXX \
 
13128
    hardcode_automatic_CXX \
 
13129
    module_cmds_CXX \
 
13130
    module_expsym_cmds_CXX \
 
13131
    lt_cv_prog_compiler_c_o_CXX \
 
13132
    exclude_expsyms_CXX \
 
13133
    include_expsyms_CXX; do
 
13134
 
 
13135
    case $var in
 
13136
    old_archive_cmds_CXX | \
 
13137
    old_archive_from_new_cmds_CXX | \
 
13138
    archive_cmds_CXX | \
 
13139
    archive_expsym_cmds_CXX | \
 
13140
    module_cmds_CXX | \
 
13141
    module_expsym_cmds_CXX | \
 
13142
    old_archive_from_expsyms_cmds_CXX | \
 
13143
    export_symbols_cmds_CXX | \
 
13144
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13145
    postinstall_cmds | postuninstall_cmds | \
 
13146
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13147
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13148
      # Double-quote double-evaled strings.
 
13149
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13150
      ;;
 
13151
    *)
 
13152
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13153
      ;;
 
13154
    esac
 
13155
  done
 
13156
 
 
13157
  case $lt_echo in
 
13158
  *'\$0 --fallback-echo"')
 
13159
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13160
    ;;
 
13161
  esac
 
13162
 
 
13163
cfgfile="$ofile"
 
13164
 
 
13165
  cat <<__EOF__ >> "$cfgfile"
 
13166
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13167
 
 
13168
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13169
 
 
13170
# Shell to use when invoking shell scripts.
 
13171
SHELL=$lt_SHELL
 
13172
 
 
13173
# Whether or not to build shared libraries.
 
13174
build_libtool_libs=$enable_shared
 
13175
 
 
13176
# Whether or not to build static libraries.
 
13177
build_old_libs=$enable_static
 
13178
 
 
13179
# Whether or not to add -lc for building shared libraries.
 
13180
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13181
 
 
13182
# Whether or not to disallow shared libs when runtime libs are static
 
13183
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13184
 
 
13185
# Whether or not to optimize for fast installation.
 
13186
fast_install=$enable_fast_install
 
13187
 
 
13188
# The host system.
 
13189
host_alias=$host_alias
 
13190
host=$host
 
13191
host_os=$host_os
 
13192
 
 
13193
# The build system.
 
13194
build_alias=$build_alias
 
13195
build=$build
 
13196
build_os=$build_os
 
13197
 
 
13198
# An echo program that does not interpret backslashes.
 
13199
echo=$lt_echo
 
13200
 
 
13201
# The archiver.
 
13202
AR=$lt_AR
 
13203
AR_FLAGS=$lt_AR_FLAGS
 
13204
 
 
13205
# A C compiler.
 
13206
LTCC=$lt_LTCC
 
13207
 
 
13208
# LTCC compiler flags.
 
13209
LTCFLAGS=$lt_LTCFLAGS
 
13210
 
 
13211
# A language-specific compiler.
 
13212
CC=$lt_compiler_CXX
 
13213
 
 
13214
# Is the compiler the GNU C compiler?
 
13215
with_gcc=$GCC_CXX
 
13216
 
 
13217
# An ERE matcher.
 
13218
EGREP=$lt_EGREP
 
13219
 
 
13220
# The linker used to build libraries.
 
13221
LD=$lt_LD_CXX
 
13222
 
 
13223
# Whether we need hard or soft links.
 
13224
LN_S=$lt_LN_S
 
13225
 
 
13226
# A BSD-compatible nm program.
 
13227
NM=$lt_NM
 
13228
 
 
13229
# A symbol stripping program
 
13230
STRIP=$lt_STRIP
 
13231
 
 
13232
# Used to examine libraries when file_magic_cmd begins "file"
 
13233
MAGIC_CMD=$MAGIC_CMD
 
13234
 
 
13235
# Used on cygwin: DLL creation program.
 
13236
DLLTOOL="$DLLTOOL"
 
13237
 
 
13238
# Used on cygwin: object dumper.
 
13239
OBJDUMP="$OBJDUMP"
 
13240
 
 
13241
# Used on cygwin: assembler.
 
13242
AS="$AS"
 
13243
 
 
13244
# The name of the directory that contains temporary libtool files.
 
13245
objdir=$objdir
 
13246
 
 
13247
# How to create reloadable object files.
 
13248
reload_flag=$lt_reload_flag
 
13249
reload_cmds=$lt_reload_cmds
 
13250
 
 
13251
# How to pass a linker flag through the compiler.
 
13252
wl=$lt_lt_prog_compiler_wl_CXX
 
13253
 
 
13254
# Object file suffix (normally "o").
 
13255
objext="$ac_objext"
 
13256
 
 
13257
# Old archive suffix (normally "a").
 
13258
libext="$libext"
 
13259
 
 
13260
# Shared library suffix (normally ".so").
 
13261
shrext_cmds='$shrext_cmds'
 
13262
 
 
13263
# Executable file suffix (normally "").
 
13264
exeext="$exeext"
 
13265
 
 
13266
# Additional compiler flags for building library objects.
 
13267
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13268
pic_mode=$pic_mode
 
13269
 
 
13270
# What is the maximum length of a command?
 
13271
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13272
 
 
13273
# Does compiler simultaneously support -c and -o options?
 
13274
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13275
 
 
13276
# Must we lock files when doing compilation?
 
13277
need_locks=$lt_need_locks
 
13278
 
 
13279
# Do we need the lib prefix for modules?
 
13280
need_lib_prefix=$need_lib_prefix
 
13281
 
 
13282
# Do we need a version for libraries?
 
13283
need_version=$need_version
 
13284
 
 
13285
# Whether dlopen is supported.
 
13286
dlopen_support=$enable_dlopen
 
13287
 
 
13288
# Whether dlopen of programs is supported.
 
13289
dlopen_self=$enable_dlopen_self
 
13290
 
 
13291
# Whether dlopen of statically linked programs is supported.
 
13292
dlopen_self_static=$enable_dlopen_self_static
 
13293
 
 
13294
# Compiler flag to prevent dynamic linking.
 
13295
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13296
 
 
13297
# Compiler flag to turn off builtin functions.
 
13298
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13299
 
 
13300
# Compiler flag to allow reflexive dlopens.
 
13301
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13302
 
 
13303
# Compiler flag to generate shared objects directly from archives.
 
13304
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13305
 
 
13306
# Compiler flag to generate thread-safe objects.
 
13307
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13308
 
 
13309
# Library versioning type.
 
13310
version_type=$version_type
 
13311
 
 
13312
# Format of library name prefix.
 
13313
libname_spec=$lt_libname_spec
 
13314
 
 
13315
# List of archive names.  First name is the real one, the rest are links.
 
13316
# The last name is the one that the linker finds with -lNAME.
 
13317
library_names_spec=$lt_library_names_spec
 
13318
 
 
13319
# The coded name of the library, if different from the real name.
 
13320
soname_spec=$lt_soname_spec
 
13321
 
 
13322
# Commands used to build and install an old-style archive.
 
13323
RANLIB=$lt_RANLIB
 
13324
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13325
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13326
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13327
 
 
13328
# Create an old-style archive from a shared archive.
 
13329
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13330
 
 
13331
# Create a temporary old-style archive to link instead of a shared archive.
 
13332
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13333
 
 
13334
# Commands used to build and install a shared archive.
 
13335
archive_cmds=$lt_archive_cmds_CXX
 
13336
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13337
postinstall_cmds=$lt_postinstall_cmds
 
13338
postuninstall_cmds=$lt_postuninstall_cmds
 
13339
 
 
13340
# Commands used to build a loadable module (assumed same as above if empty)
 
13341
module_cmds=$lt_module_cmds_CXX
 
13342
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13343
 
 
13344
# Commands to strip libraries.
 
13345
old_striplib=$lt_old_striplib
 
13346
striplib=$lt_striplib
 
13347
 
 
13348
# Dependencies to place before the objects being linked to create a
 
13349
# shared library.
 
13350
predep_objects=$lt_predep_objects_CXX
 
13351
 
 
13352
# Dependencies to place after the objects being linked to create a
 
13353
# shared library.
 
13354
postdep_objects=$lt_postdep_objects_CXX
 
13355
 
 
13356
# Dependencies to place before the objects being linked to create a
 
13357
# shared library.
 
13358
predeps=$lt_predeps_CXX
 
13359
 
 
13360
# Dependencies to place after the objects being linked to create a
 
13361
# shared library.
 
13362
postdeps=$lt_postdeps_CXX
 
13363
 
 
13364
# The library search path used internally by the compiler when linking
 
13365
# a shared library.
 
13366
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13367
 
 
13368
# Method to check whether dependent libraries are shared objects.
 
13369
deplibs_check_method=$lt_deplibs_check_method
 
13370
 
 
13371
# Command to use when deplibs_check_method == file_magic.
 
13372
file_magic_cmd=$lt_file_magic_cmd
 
13373
 
 
13374
# Flag that allows shared libraries with undefined symbols to be built.
 
13375
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13376
 
 
13377
# Flag that forces no undefined symbols.
 
13378
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13379
 
 
13380
# Commands used to finish a libtool library installation in a directory.
 
13381
finish_cmds=$lt_finish_cmds
 
13382
 
 
13383
# Same as above, but a single script fragment to be evaled but not shown.
 
13384
finish_eval=$lt_finish_eval
 
13385
 
 
13386
# Take the output of nm and produce a listing of raw symbols and C names.
 
13387
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13388
 
 
13389
# Transform the output of nm in a proper C declaration
 
13390
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13391
 
 
13392
# Transform the output of nm in a C name address pair
 
13393
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13394
 
 
13395
# This is the shared library runtime path variable.
 
13396
runpath_var=$runpath_var
 
13397
 
 
13398
# This is the shared library path variable.
 
13399
shlibpath_var=$shlibpath_var
 
13400
 
 
13401
# Is shlibpath searched before the hard-coded library search path?
 
13402
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13403
 
 
13404
# How to hardcode a shared library path into an executable.
 
13405
hardcode_action=$hardcode_action_CXX
 
13406
 
 
13407
# Whether we should hardcode library paths into libraries.
 
13408
hardcode_into_libs=$hardcode_into_libs
 
13409
 
 
13410
# Flag to hardcode \$libdir into a binary during linking.
 
13411
# This must work even if \$libdir does not exist.
 
13412
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13413
 
 
13414
# If ld is used when linking, flag to hardcode \$libdir into
 
13415
# a binary during linking. This must work even if \$libdir does
 
13416
# not exist.
 
13417
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13418
 
 
13419
# Whether we need a single -rpath flag with a separated argument.
 
13420
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13421
 
 
13422
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13423
# resulting binary.
 
13424
hardcode_direct=$hardcode_direct_CXX
 
13425
 
 
13426
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13427
# resulting binary.
 
13428
hardcode_minus_L=$hardcode_minus_L_CXX
 
13429
 
 
13430
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13431
# the resulting binary.
 
13432
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13433
 
 
13434
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13435
# and all subsequent libraries and executables linked against it.
 
13436
hardcode_automatic=$hardcode_automatic_CXX
 
13437
 
 
13438
# Variables whose values should be saved in libtool wrapper scripts and
 
13439
# restored at relink time.
 
13440
variables_saved_for_relink="$variables_saved_for_relink"
 
13441
 
 
13442
# Whether libtool must link a program against all its dependency libraries.
 
13443
link_all_deplibs=$link_all_deplibs_CXX
 
13444
 
 
13445
# Compile-time system search path for libraries
 
13446
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13447
 
 
13448
# Run-time system search path for libraries
 
13449
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13450
 
 
13451
# Fix the shell variable \$srcfile for the compiler.
 
13452
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13453
 
 
13454
# Set to yes if exported symbols are required.
 
13455
always_export_symbols=$always_export_symbols_CXX
 
13456
 
 
13457
# The commands to list exported symbols.
 
13458
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13459
 
 
13460
# The commands to extract the exported symbol list from a shared archive.
 
13461
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13462
 
 
13463
# Symbols that should not be listed in the preloaded symbols.
 
13464
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13465
 
 
13466
# Symbols that must always be exported.
 
13467
include_expsyms=$lt_include_expsyms_CXX
 
13468
 
 
13469
# ### END LIBTOOL TAG CONFIG: $tagname
 
13470
 
 
13471
__EOF__
 
13472
 
 
13473
 
 
13474
else
 
13475
  # If there is no Makefile yet, we rely on a make rule to execute
 
13476
  # `config.status --recheck' to rerun these tests and create the
 
13477
  # libtool script then.
 
13478
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13479
  if test -f "$ltmain_in"; then
 
13480
    test -f Makefile && make "$ltmain"
 
13481
  fi
 
13482
fi
 
13483
 
 
13484
 
 
13485
ac_ext=c
 
13486
ac_cpp='$CPP $CPPFLAGS'
 
13487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13490
 
 
13491
CC=$lt_save_CC
 
13492
LDCXX=$LD
 
13493
LD=$lt_save_LD
 
13494
GCC=$lt_save_GCC
 
13495
with_gnu_ldcxx=$with_gnu_ld
 
13496
with_gnu_ld=$lt_save_with_gnu_ld
 
13497
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13498
lt_cv_path_LD=$lt_save_path_LD
 
13499
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13500
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13501
 
 
13502
        else
 
13503
          tagname=""
 
13504
        fi
 
13505
        ;;
 
13506
 
 
13507
      F77)
 
13508
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13509
 
 
13510
ac_ext=f
 
13511
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13512
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13513
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13514
 
 
13515
 
 
13516
archive_cmds_need_lc_F77=no
 
13517
allow_undefined_flag_F77=
 
13518
always_export_symbols_F77=no
 
13519
archive_expsym_cmds_F77=
 
13520
export_dynamic_flag_spec_F77=
 
13521
hardcode_direct_F77=no
 
13522
hardcode_libdir_flag_spec_F77=
 
13523
hardcode_libdir_flag_spec_ld_F77=
 
13524
hardcode_libdir_separator_F77=
 
13525
hardcode_minus_L_F77=no
 
13526
hardcode_automatic_F77=no
 
13527
module_cmds_F77=
 
13528
module_expsym_cmds_F77=
 
13529
link_all_deplibs_F77=unknown
 
13530
old_archive_cmds_F77=$old_archive_cmds
 
13531
no_undefined_flag_F77=
 
13532
whole_archive_flag_spec_F77=
 
13533
enable_shared_with_static_runtimes_F77=no
 
13534
 
 
13535
# Source file extension for f77 test sources.
 
13536
ac_ext=f
 
13537
 
 
13538
# Object file extension for compiled f77 test sources.
 
13539
objext=o
 
13540
objext_F77=$objext
 
13541
 
 
13542
# Code to be used in simple compile tests
 
13543
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13544
 
 
13545
# Code to be used in simple link tests
 
13546
lt_simple_link_test_code="      program t\n      end\n"
 
13547
 
 
13548
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13549
 
 
13550
# If no C compiler was specified, use CC.
 
13551
LTCC=${LTCC-"$CC"}
 
13552
 
 
13553
# If no C compiler flags were specified, use CFLAGS.
 
13554
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13555
 
 
13556
# Allow CC to be a program name with arguments.
 
13557
compiler=$CC
 
13558
 
 
13559
 
 
13560
# save warnings/boilerplate of simple test code
 
13561
ac_outfile=conftest.$ac_objext
 
13562
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13563
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13564
_lt_compiler_boilerplate=`cat conftest.err`
 
13565
$rm conftest*
 
13566
 
 
13567
ac_outfile=conftest.$ac_objext
 
13568
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13569
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13570
_lt_linker_boilerplate=`cat conftest.err`
 
13571
$rm conftest*
 
13572
 
 
13573
 
 
13574
# Allow CC to be a program name with arguments.
 
13575
lt_save_CC="$CC"
 
13576
CC=${F77-"f77"}
 
13577
compiler=$CC
 
13578
compiler_F77=$CC
 
13579
for cc_temp in $compiler""; do
 
13580
  case $cc_temp in
 
13581
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13582
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13583
    \-*) ;;
 
13584
    *) break;;
 
13585
  esac
 
13586
done
 
13587
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13588
 
 
13589
 
 
13590
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13591
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13592
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13593
echo "${ECHO_T}$can_build_shared" >&6; }
 
13594
 
 
13595
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13596
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13597
test "$can_build_shared" = "no" && enable_shared=no
 
13598
 
 
13599
# On AIX, shared libraries and static libraries use the same namespace, and
 
13600
# are all built from PIC.
 
13601
case $host_os in
 
13602
aix3*)
 
13603
  test "$enable_shared" = yes && enable_static=no
 
13604
  if test -n "$RANLIB"; then
 
13605
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13606
    postinstall_cmds='$RANLIB $lib'
 
13607
  fi
 
13608
  ;;
 
13609
aix4* | aix5*)
 
13610
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13611
    test "$enable_shared" = yes && enable_static=no
 
13612
  fi
 
13613
  ;;
 
13614
esac
 
13615
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13616
echo "${ECHO_T}$enable_shared" >&6; }
 
13617
 
 
13618
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13619
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
13620
# Make sure either enable_shared or enable_static is yes.
 
13621
test "$enable_shared" = yes || enable_static=yes
 
13622
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
13623
echo "${ECHO_T}$enable_static" >&6; }
 
13624
 
 
13625
GCC_F77="$G77"
 
13626
LD_F77="$LD"
 
13627
 
 
13628
lt_prog_compiler_wl_F77=
 
13629
lt_prog_compiler_pic_F77=
 
13630
lt_prog_compiler_static_F77=
 
13631
 
 
13632
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13633
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
13634
 
 
13635
  if test "$GCC" = yes; then
 
13636
    lt_prog_compiler_wl_F77='-Wl,'
 
13637
    lt_prog_compiler_static_F77='-static'
 
13638
 
 
13639
    case $host_os in
 
13640
      aix*)
 
13641
      # All AIX code is PIC.
 
13642
      if test "$host_cpu" = ia64; then
 
13643
        # AIX 5 now supports IA64 processor
 
13644
        lt_prog_compiler_static_F77='-Bstatic'
 
13645
      fi
 
13646
      ;;
 
13647
 
 
13648
    amigaos*)
 
13649
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13650
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13651
      # like `-m68040'.
 
13652
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13653
      ;;
 
13654
 
 
13655
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13656
      # PIC is the default for these OSes.
 
13657
      ;;
 
13658
 
 
13659
    mingw* | pw32* | os2*)
 
13660
      # This hack is so that the source file can tell whether it is being
 
13661
      # built for inclusion in a dll (and should export symbols for example).
 
13662
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13663
      ;;
 
13664
 
 
13665
    darwin* | rhapsody*)
 
13666
      # PIC is the default on this platform
 
13667
      # Common symbols not allowed in MH_DYLIB files
 
13668
      lt_prog_compiler_pic_F77='-fno-common'
 
13669
      ;;
 
13670
 
 
13671
    interix3*)
 
13672
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13673
      # Instead, we relocate shared libraries at runtime.
 
13674
      ;;
 
13675
 
 
13676
    msdosdjgpp*)
 
13677
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13678
      # on systems that don't support them.
 
13679
      lt_prog_compiler_can_build_shared_F77=no
 
13680
      enable_shared=no
 
13681
      ;;
 
13682
 
 
13683
    sysv4*MP*)
 
13684
      if test -d /usr/nec; then
 
13685
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13686
      fi
 
13687
      ;;
 
13688
 
 
13689
    hpux*)
 
13690
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13691
      # not for PA HP-UX.
 
13692
      case $host_cpu in
 
13693
      hppa*64*|ia64*)
 
13694
        # +Z the default
 
13695
        ;;
 
13696
      *)
 
13697
        lt_prog_compiler_pic_F77='-fPIC'
 
13698
        ;;
 
13699
      esac
 
13700
      ;;
 
13701
 
 
13702
    *)
 
13703
      lt_prog_compiler_pic_F77='-fPIC'
 
13704
      ;;
 
13705
    esac
 
13706
  else
 
13707
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13708
    case $host_os in
 
13709
    aix*)
 
13710
      lt_prog_compiler_wl_F77='-Wl,'
 
13711
      if test "$host_cpu" = ia64; then
 
13712
        # AIX 5 now supports IA64 processor
 
13713
        lt_prog_compiler_static_F77='-Bstatic'
 
13714
      else
 
13715
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13716
      fi
 
13717
      ;;
 
13718
      darwin*)
 
13719
        # PIC is the default on this platform
 
13720
        # Common symbols not allowed in MH_DYLIB files
 
13721
       case $cc_basename in
 
13722
         xlc*)
 
13723
         lt_prog_compiler_pic_F77='-qnocommon'
 
13724
         lt_prog_compiler_wl_F77='-Wl,'
 
13725
         ;;
 
13726
       esac
 
13727
       ;;
 
13728
 
 
13729
    mingw* | pw32* | os2*)
 
13730
      # This hack is so that the source file can tell whether it is being
 
13731
      # built for inclusion in a dll (and should export symbols for example).
 
13732
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13733
      ;;
 
13734
 
 
13735
    hpux9* | hpux10* | hpux11*)
 
13736
      lt_prog_compiler_wl_F77='-Wl,'
 
13737
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13738
      # not for PA HP-UX.
 
13739
      case $host_cpu in
 
13740
      hppa*64*|ia64*)
 
13741
        # +Z the default
 
13742
        ;;
 
13743
      *)
 
13744
        lt_prog_compiler_pic_F77='+Z'
 
13745
        ;;
 
13746
      esac
 
13747
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13748
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13749
      ;;
 
13750
 
 
13751
    irix5* | irix6* | nonstopux*)
 
13752
      lt_prog_compiler_wl_F77='-Wl,'
 
13753
      # PIC (with -KPIC) is the default.
 
13754
      lt_prog_compiler_static_F77='-non_shared'
 
13755
      ;;
 
13756
 
 
13757
    newsos6)
 
13758
      lt_prog_compiler_pic_F77='-KPIC'
 
13759
      lt_prog_compiler_static_F77='-Bstatic'
 
13760
      ;;
 
13761
 
 
13762
    linux* | k*bsd*-gnu)
 
13763
      case $cc_basename in
 
13764
      icc* | ecc*)
 
13765
        lt_prog_compiler_wl_F77='-Wl,'
 
13766
        lt_prog_compiler_pic_F77='-KPIC'
 
13767
        lt_prog_compiler_static_F77='-static'
 
13768
        ;;
 
13769
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13770
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13771
        # which looks to be a dead project)
 
13772
        lt_prog_compiler_wl_F77='-Wl,'
 
13773
        lt_prog_compiler_pic_F77='-fpic'
 
13774
        lt_prog_compiler_static_F77='-Bstatic'
 
13775
        ;;
 
13776
      ccc*)
 
13777
        lt_prog_compiler_wl_F77='-Wl,'
 
13778
        # All Alpha code is PIC.
 
13779
        lt_prog_compiler_static_F77='-non_shared'
 
13780
        ;;
 
13781
      esac
 
13782
      ;;
 
13783
 
 
13784
    osf3* | osf4* | osf5*)
 
13785
      lt_prog_compiler_wl_F77='-Wl,'
 
13786
      # All OSF/1 code is PIC.
 
13787
      lt_prog_compiler_static_F77='-non_shared'
 
13788
      ;;
 
13789
 
 
13790
    solaris*)
 
13791
      lt_prog_compiler_pic_F77='-KPIC'
 
13792
      lt_prog_compiler_static_F77='-Bstatic'
 
13793
      case $cc_basename in
 
13794
      f77* | f90* | f95*)
 
13795
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13796
      *)
 
13797
        lt_prog_compiler_wl_F77='-Wl,';;
 
13798
      esac
 
13799
      ;;
 
13800
 
 
13801
    sunos4*)
 
13802
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13803
      lt_prog_compiler_pic_F77='-PIC'
 
13804
      lt_prog_compiler_static_F77='-Bstatic'
 
13805
      ;;
 
13806
 
 
13807
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13808
      lt_prog_compiler_wl_F77='-Wl,'
 
13809
      lt_prog_compiler_pic_F77='-KPIC'
 
13810
      lt_prog_compiler_static_F77='-Bstatic'
 
13811
      ;;
 
13812
 
 
13813
    sysv4*MP*)
 
13814
      if test -d /usr/nec ;then
 
13815
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13816
        lt_prog_compiler_static_F77='-Bstatic'
 
13817
      fi
 
13818
      ;;
 
13819
 
 
13820
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13821
      lt_prog_compiler_wl_F77='-Wl,'
 
13822
      lt_prog_compiler_pic_F77='-KPIC'
 
13823
      lt_prog_compiler_static_F77='-Bstatic'
 
13824
      ;;
 
13825
 
 
13826
    unicos*)
 
13827
      lt_prog_compiler_wl_F77='-Wl,'
 
13828
      lt_prog_compiler_can_build_shared_F77=no
 
13829
      ;;
 
13830
 
 
13831
    uts4*)
 
13832
      lt_prog_compiler_pic_F77='-pic'
 
13833
      lt_prog_compiler_static_F77='-Bstatic'
 
13834
      ;;
 
13835
 
 
13836
    *)
 
13837
      lt_prog_compiler_can_build_shared_F77=no
 
13838
      ;;
 
13839
    esac
 
13840
  fi
 
13841
 
 
13842
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13843
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
13844
 
 
13845
#
 
13846
# Check to make sure the PIC flag actually works.
 
13847
#
 
13848
if test -n "$lt_prog_compiler_pic_F77"; then
 
13849
 
 
13850
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13851
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
13852
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13854
else
 
13855
  lt_prog_compiler_pic_works_F77=no
 
13856
  ac_outfile=conftest.$ac_objext
 
13857
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13858
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13859
   # Insert the option either (1) after the last *FLAGS variable, or
 
13860
   # (2) before a word containing "conftest.", or (3) at the end.
 
13861
   # Note that $ac_compile itself does not contain backslashes and begins
 
13862
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13863
   # The option is referenced via a variable to avoid confusing sed.
 
13864
   lt_compile=`echo "$ac_compile" | $SED \
 
13865
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13866
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13867
   -e 's:$: $lt_compiler_flag:'`
 
13868
   (eval echo "\"\$as_me:13868: $lt_compile\"" >&5)
 
13869
   (eval "$lt_compile" 2>conftest.err)
 
13870
   ac_status=$?
 
13871
   cat conftest.err >&5
 
13872
   echo "$as_me:13872: \$? = $ac_status" >&5
 
13873
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13874
     # The compiler can only warn and ignore the option if not recognized
 
13875
     # So say no if there are warnings other than the usual output.
 
13876
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13877
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13878
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13879
       lt_prog_compiler_pic_works_F77=yes
 
13880
     fi
 
13881
   fi
 
13882
   $rm conftest*
 
13883
 
 
13884
fi
 
13885
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13886
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
13887
 
 
13888
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13889
    case $lt_prog_compiler_pic_F77 in
 
13890
     "" | " "*) ;;
 
13891
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13892
     esac
 
13893
else
 
13894
    lt_prog_compiler_pic_F77=
 
13895
     lt_prog_compiler_can_build_shared_F77=no
 
13896
fi
 
13897
 
 
13898
fi
 
13899
case $host_os in
 
13900
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13901
  *djgpp*)
 
13902
    lt_prog_compiler_pic_F77=
 
13903
    ;;
 
13904
  *)
 
13905
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13906
    ;;
 
13907
esac
 
13908
 
 
13909
#
 
13910
# Check to make sure the static flag actually works.
 
13911
#
 
13912
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13913
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13914
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13915
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13917
else
 
13918
  lt_prog_compiler_static_works_F77=no
 
13919
   save_LDFLAGS="$LDFLAGS"
 
13920
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13921
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13922
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13923
     # The linker can only warn and ignore the option if not recognized
 
13924
     # So say no if there are warnings
 
13925
     if test -s conftest.err; then
 
13926
       # Append any errors to the config.log.
 
13927
       cat conftest.err 1>&5
 
13928
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13929
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13930
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13931
         lt_prog_compiler_static_works_F77=yes
 
13932
       fi
 
13933
     else
 
13934
       lt_prog_compiler_static_works_F77=yes
 
13935
     fi
 
13936
   fi
 
13937
   $rm conftest*
 
13938
   LDFLAGS="$save_LDFLAGS"
 
13939
 
 
13940
fi
 
13941
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13942
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
13943
 
 
13944
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13945
    :
 
13946
else
 
13947
    lt_prog_compiler_static_F77=
 
13948
fi
 
13949
 
 
13950
 
 
13951
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13952
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13953
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13955
else
 
13956
  lt_cv_prog_compiler_c_o_F77=no
 
13957
   $rm -r conftest 2>/dev/null
 
13958
   mkdir conftest
 
13959
   cd conftest
 
13960
   mkdir out
 
13961
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13962
 
 
13963
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13964
   # Insert the option either (1) after the last *FLAGS variable, or
 
13965
   # (2) before a word containing "conftest.", or (3) at the end.
 
13966
   # Note that $ac_compile itself does not contain backslashes and begins
 
13967
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13968
   lt_compile=`echo "$ac_compile" | $SED \
 
13969
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13970
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13971
   -e 's:$: $lt_compiler_flag:'`
 
13972
   (eval echo "\"\$as_me:13972: $lt_compile\"" >&5)
 
13973
   (eval "$lt_compile" 2>out/conftest.err)
 
13974
   ac_status=$?
 
13975
   cat out/conftest.err >&5
 
13976
   echo "$as_me:13976: \$? = $ac_status" >&5
 
13977
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13978
   then
 
13979
     # The compiler can only warn and ignore the option if not recognized
 
13980
     # So say no if there are warnings
 
13981
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13982
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13983
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13984
       lt_cv_prog_compiler_c_o_F77=yes
 
13985
     fi
 
13986
   fi
 
13987
   chmod u+w . 2>&5
 
13988
   $rm conftest*
 
13989
   # SGI C++ compiler will create directory out/ii_files/ for
 
13990
   # template instantiation
 
13991
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13992
   $rm out/* && rmdir out
 
13993
   cd ..
 
13994
   rmdir conftest
 
13995
   $rm conftest*
 
13996
 
 
13997
fi
 
13998
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13999
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14000
 
 
14001
 
 
14002
hard_links="nottested"
 
14003
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14004
  # do not overwrite the value of need_locks provided by the user
 
14005
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14006
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14007
  hard_links=yes
 
14008
  $rm conftest*
 
14009
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14010
  touch conftest.a
 
14011
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14012
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14013
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14014
echo "${ECHO_T}$hard_links" >&6; }
 
14015
  if test "$hard_links" = no; then
 
14016
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14017
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14018
    need_locks=warn
 
14019
  fi
 
14020
else
 
14021
  need_locks=no
 
14022
fi
 
14023
 
 
14024
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14025
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14026
 
 
14027
  runpath_var=
 
14028
  allow_undefined_flag_F77=
 
14029
  enable_shared_with_static_runtimes_F77=no
 
14030
  archive_cmds_F77=
 
14031
  archive_expsym_cmds_F77=
 
14032
  old_archive_From_new_cmds_F77=
 
14033
  old_archive_from_expsyms_cmds_F77=
 
14034
  export_dynamic_flag_spec_F77=
 
14035
  whole_archive_flag_spec_F77=
 
14036
  thread_safe_flag_spec_F77=
 
14037
  hardcode_libdir_flag_spec_F77=
 
14038
  hardcode_libdir_flag_spec_ld_F77=
 
14039
  hardcode_libdir_separator_F77=
 
14040
  hardcode_direct_F77=no
 
14041
  hardcode_minus_L_F77=no
 
14042
  hardcode_shlibpath_var_F77=unsupported
 
14043
  link_all_deplibs_F77=unknown
 
14044
  hardcode_automatic_F77=no
 
14045
  module_cmds_F77=
 
14046
  module_expsym_cmds_F77=
 
14047
  always_export_symbols_F77=no
 
14048
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14049
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14050
  # included in the symbol list
 
14051
  include_expsyms_F77=
 
14052
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14053
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14054
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14055
  # as well as any symbol that contains `d'.
 
14056
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14057
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14058
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14059
  # the symbol is explicitly referenced.  Since portable code cannot
 
14060
  # rely on this symbol name, it's probably fine to never include it in
 
14061
  # preloaded symbol tables.
 
14062
  extract_expsyms_cmds=
 
14063
  # Just being paranoid about ensuring that cc_basename is set.
 
14064
  for cc_temp in $compiler""; do
 
14065
  case $cc_temp in
 
14066
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14067
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14068
    \-*) ;;
 
14069
    *) break;;
 
14070
  esac
 
14071
done
 
14072
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14073
 
 
14074
  case $host_os in
 
14075
  cygwin* | mingw* | pw32*)
 
14076
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14077
    # When not using gcc, we currently assume that we are using
 
14078
    # Microsoft Visual C++.
 
14079
    if test "$GCC" != yes; then
 
14080
      with_gnu_ld=no
 
14081
    fi
 
14082
    ;;
 
14083
  interix*)
 
14084
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14085
    with_gnu_ld=yes
 
14086
    ;;
 
14087
  openbsd*)
 
14088
    with_gnu_ld=no
 
14089
    ;;
 
14090
  esac
 
14091
 
 
14092
  ld_shlibs_F77=yes
 
14093
  if test "$with_gnu_ld" = yes; then
 
14094
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14095
    wlarc='${wl}'
 
14096
 
 
14097
    # Set some defaults for GNU ld with shared library support. These
 
14098
    # are reset later if shared libraries are not supported. Putting them
 
14099
    # here allows them to be overridden if necessary.
 
14100
    runpath_var=LD_RUN_PATH
 
14101
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14102
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14103
    # ancient GNU ld didn't support --whole-archive et. al.
 
14104
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14105
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14106
      else
 
14107
        whole_archive_flag_spec_F77=
 
14108
    fi
 
14109
    supports_anon_versioning=no
 
14110
    case `$LD -v 2>/dev/null` in
 
14111
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14112
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14113
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14114
      *\ 2.11.*) ;; # other 2.11 versions
 
14115
      *) supports_anon_versioning=yes ;;
 
14116
    esac
 
14117
 
 
14118
    # See if GNU ld supports shared libraries.
 
14119
    case $host_os in
 
14120
    aix3* | aix4* | aix5*)
 
14121
      # On AIX/PPC, the GNU linker is very broken
 
14122
      if test "$host_cpu" != ia64; then
 
14123
        ld_shlibs_F77=no
 
14124
        cat <<EOF 1>&2
 
14125
 
 
14126
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14127
*** to be unable to reliably create shared libraries on AIX.
 
14128
*** Therefore, libtool is disabling shared libraries support.  If you
 
14129
*** really care for shared libraries, you may want to modify your PATH
 
14130
*** so that a non-GNU linker is found, and then restart.
 
14131
 
 
14132
EOF
 
14133
      fi
 
14134
      ;;
 
14135
 
 
14136
    amigaos*)
 
14137
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14138
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14139
      hardcode_minus_L_F77=yes
 
14140
 
 
14141
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14142
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14143
      # to version 4, is to share data among multiple programs linked
 
14144
      # with the same dynamic library.  Since this doesn't match the
 
14145
      # behavior of shared libraries on other platforms, we can't use
 
14146
      # them.
 
14147
      ld_shlibs_F77=no
 
14148
      ;;
 
14149
 
 
14150
    beos*)
 
14151
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14152
        allow_undefined_flag_F77=unsupported
 
14153
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14154
        # support --undefined.  This deserves some investigation.  FIXME
 
14155
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14156
      else
 
14157
        ld_shlibs_F77=no
 
14158
      fi
 
14159
      ;;
 
14160
 
 
14161
    cygwin* | mingw* | pw32*)
 
14162
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14163
      # as there is no search path for DLLs.
 
14164
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14165
      allow_undefined_flag_F77=unsupported
 
14166
      always_export_symbols_F77=no
 
14167
      enable_shared_with_static_runtimes_F77=yes
 
14168
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14169
 
 
14170
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14171
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14172
        # If the export-symbols file already is a .def file (1st line
 
14173
        # is EXPORTS), use it as is; otherwise, prepend...
 
14174
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14175
          cp $export_symbols $output_objdir/$soname.def;
 
14176
        else
 
14177
          echo EXPORTS > $output_objdir/$soname.def;
 
14178
          cat $export_symbols >> $output_objdir/$soname.def;
 
14179
        fi~
 
14180
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14181
      else
 
14182
        ld_shlibs_F77=no
 
14183
      fi
 
14184
      ;;
 
14185
 
 
14186
    interix3*)
 
14187
      hardcode_direct_F77=no
 
14188
      hardcode_shlibpath_var_F77=no
 
14189
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14190
      export_dynamic_flag_spec_F77='${wl}-E'
 
14191
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14192
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14193
      # default) and relocated if they conflict, which is a slow very memory
 
14194
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14195
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14196
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14197
      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'
 
14198
      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'
 
14199
      ;;
 
14200
 
 
14201
    linux* | k*bsd*-gnu)
 
14202
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14203
        tmp_addflag=
 
14204
        case $cc_basename,$host_cpu in
 
14205
        pgcc*)                          # Portland Group C compiler
 
14206
          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'
 
14207
          tmp_addflag=' $pic_flag'
 
14208
          ;;
 
14209
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14210
          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'
 
14211
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14212
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14213
          tmp_addflag=' -i_dynamic' ;;
 
14214
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14215
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14216
        ifc* | ifort*)                  # Intel Fortran compiler
 
14217
          tmp_addflag=' -nofor_main' ;;
 
14218
        esac
 
14219
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14220
 
 
14221
        if test $supports_anon_versioning = yes; then
 
14222
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14223
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14224
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14225
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14226
        fi
 
14227
        link_all_deplibs_F77=no
 
14228
      else
 
14229
        ld_shlibs_F77=no
 
14230
      fi
 
14231
      ;;
 
14232
 
 
14233
    netbsd* | netbsdelf*-gnu)
 
14234
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14235
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14236
        wlarc=
 
14237
      else
 
14238
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14239
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14240
      fi
 
14241
      ;;
 
14242
 
 
14243
    solaris*)
 
14244
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14245
        ld_shlibs_F77=no
 
14246
        cat <<EOF 1>&2
 
14247
 
 
14248
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14249
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14250
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14251
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14252
*** your PATH or compiler configuration so that the native linker is
 
14253
*** used, and then restart.
 
14254
 
 
14255
EOF
 
14256
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14257
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14258
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14259
      else
 
14260
        ld_shlibs_F77=no
 
14261
      fi
 
14262
      ;;
 
14263
 
 
14264
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14265
      case `$LD -v 2>&1` in
 
14266
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14267
        ld_shlibs_F77=no
 
14268
        cat <<_LT_EOF 1>&2
 
14269
 
 
14270
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14271
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14272
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14273
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14274
*** your PATH or compiler configuration so that the native linker is
 
14275
*** used, and then restart.
 
14276
 
 
14277
_LT_EOF
 
14278
        ;;
 
14279
        *)
 
14280
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14281
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14282
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14283
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14284
          else
 
14285
            ld_shlibs_F77=no
 
14286
          fi
 
14287
        ;;
 
14288
      esac
 
14289
      ;;
 
14290
 
 
14291
    sunos4*)
 
14292
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14293
      wlarc=
 
14294
      hardcode_direct_F77=yes
 
14295
      hardcode_shlibpath_var_F77=no
 
14296
      ;;
 
14297
 
 
14298
    *)
 
14299
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14300
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14301
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14302
      else
 
14303
        ld_shlibs_F77=no
 
14304
      fi
 
14305
      ;;
 
14306
    esac
 
14307
 
 
14308
    if test "$ld_shlibs_F77" = no; then
 
14309
      runpath_var=
 
14310
      hardcode_libdir_flag_spec_F77=
 
14311
      export_dynamic_flag_spec_F77=
 
14312
      whole_archive_flag_spec_F77=
 
14313
    fi
 
14314
  else
 
14315
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14316
    case $host_os in
 
14317
    aix3*)
 
14318
      allow_undefined_flag_F77=unsupported
 
14319
      always_export_symbols_F77=yes
 
14320
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14321
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14322
      # are no directories specified by -L.
 
14323
      hardcode_minus_L_F77=yes
 
14324
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14325
        # Neither direct hardcoding nor static linking is supported with a
 
14326
        # broken collect2.
 
14327
        hardcode_direct_F77=unsupported
 
14328
      fi
 
14329
      ;;
 
14330
 
 
14331
    aix4* | aix5*)
 
14332
      if test "$host_cpu" = ia64; then
 
14333
        # On IA64, the linker does run time linking by default, so we don't
 
14334
        # have to do anything special.
 
14335
        aix_use_runtimelinking=no
 
14336
        exp_sym_flag='-Bexport'
 
14337
        no_entry_flag=""
 
14338
      else
 
14339
        # If we're using GNU nm, then we don't want the "-C" option.
 
14340
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14341
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14342
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14343
        else
 
14344
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14345
        fi
 
14346
        aix_use_runtimelinking=no
 
14347
 
 
14348
        # Test if we are trying to use run time linking or normal
 
14349
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14350
        # need to do runtime linking.
 
14351
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14352
          for ld_flag in $LDFLAGS; do
 
14353
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14354
            aix_use_runtimelinking=yes
 
14355
            break
 
14356
          fi
 
14357
          done
 
14358
          ;;
 
14359
        esac
 
14360
 
 
14361
        exp_sym_flag='-bexport'
 
14362
        no_entry_flag='-bnoentry'
 
14363
      fi
 
14364
 
 
14365
      # When large executables or shared objects are built, AIX ld can
 
14366
      # have problems creating the table of contents.  If linking a library
 
14367
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14368
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14369
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14370
 
 
14371
      archive_cmds_F77=''
 
14372
      hardcode_direct_F77=yes
 
14373
      hardcode_libdir_separator_F77=':'
 
14374
      link_all_deplibs_F77=yes
 
14375
 
 
14376
      if test "$GCC" = yes; then
 
14377
        case $host_os in aix4.[012]|aix4.[012].*)
 
14378
        # We only want to do this on AIX 4.2 and lower, the check
 
14379
        # below for broken collect2 doesn't work under 4.3+
 
14380
          collect2name=`${CC} -print-prog-name=collect2`
 
14381
          if test -f "$collect2name" && \
 
14382
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14383
          then
 
14384
          # We have reworked collect2
 
14385
          hardcode_direct_F77=yes
 
14386
          else
 
14387
          # We have old collect2
 
14388
          hardcode_direct_F77=unsupported
 
14389
          # It fails to find uninstalled libraries when the uninstalled
 
14390
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14391
          # to unsupported forces relinking
 
14392
          hardcode_minus_L_F77=yes
 
14393
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14394
          hardcode_libdir_separator_F77=
 
14395
          fi
 
14396
          ;;
 
14397
        esac
 
14398
        shared_flag='-shared'
 
14399
        if test "$aix_use_runtimelinking" = yes; then
 
14400
          shared_flag="$shared_flag "'${wl}-G'
 
14401
        fi
 
14402
      else
 
14403
        # not using gcc
 
14404
        if test "$host_cpu" = ia64; then
 
14405
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14406
        # chokes on -Wl,-G. The following line is correct:
 
14407
          shared_flag='-G'
 
14408
        else
 
14409
          if test "$aix_use_runtimelinking" = yes; then
 
14410
            shared_flag='${wl}-G'
 
14411
          else
 
14412
            shared_flag='${wl}-bM:SRE'
 
14413
          fi
 
14414
        fi
 
14415
      fi
 
14416
 
 
14417
      # It seems that -bexpall does not export symbols beginning with
 
14418
      # underscore (_), so it is better to generate a list of symbols to export.
 
14419
      always_export_symbols_F77=yes
 
14420
      if test "$aix_use_runtimelinking" = yes; then
 
14421
        # Warning - without using the other runtime loading flags (-brtl),
 
14422
        # -berok will link without error, but may produce a broken library.
 
14423
        allow_undefined_flag_F77='-berok'
 
14424
       # Determine the default libpath from the value encoded in an empty executable.
 
14425
       cat >conftest.$ac_ext <<_ACEOF
 
14426
      program main
 
14427
 
 
14428
      end
 
14429
_ACEOF
 
14430
rm -f conftest.$ac_objext conftest$ac_exeext
 
14431
if { (ac_try="$ac_link"
 
14432
case "(($ac_try" in
 
14433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14434
  *) ac_try_echo=$ac_try;;
 
14435
esac
 
14436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14437
  (eval "$ac_link") 2>conftest.er1
 
14438
  ac_status=$?
 
14439
  grep -v '^ *+' conftest.er1 >conftest.err
 
14440
  rm -f conftest.er1
 
14441
  cat conftest.err >&5
 
14442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14443
  (exit $ac_status); } && {
 
14444
         test -z "$ac_f77_werror_flag" ||
 
14445
         test ! -s conftest.err
 
14446
       } && test -s conftest$ac_exeext &&
 
14447
       $as_test_x conftest$ac_exeext; then
 
14448
 
 
14449
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14450
}'`
 
14451
# Check for a 64-bit object if we didn't find anything.
 
14452
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; }
 
14453
}'`; fi
 
14454
else
 
14455
  echo "$as_me: failed program was:" >&5
 
14456
sed 's/^/| /' conftest.$ac_ext >&5
 
14457
 
 
14458
 
 
14459
fi
 
14460
 
 
14461
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14462
      conftest$ac_exeext conftest.$ac_ext
 
14463
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14464
 
 
14465
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14466
        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"
 
14467
       else
 
14468
        if test "$host_cpu" = ia64; then
 
14469
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14470
          allow_undefined_flag_F77="-z nodefs"
 
14471
          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"
 
14472
        else
 
14473
         # Determine the default libpath from the value encoded in an empty executable.
 
14474
         cat >conftest.$ac_ext <<_ACEOF
 
14475
      program main
 
14476
 
 
14477
      end
 
14478
_ACEOF
 
14479
rm -f conftest.$ac_objext conftest$ac_exeext
 
14480
if { (ac_try="$ac_link"
 
14481
case "(($ac_try" in
 
14482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14483
  *) ac_try_echo=$ac_try;;
 
14484
esac
 
14485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14486
  (eval "$ac_link") 2>conftest.er1
 
14487
  ac_status=$?
 
14488
  grep -v '^ *+' conftest.er1 >conftest.err
 
14489
  rm -f conftest.er1
 
14490
  cat conftest.err >&5
 
14491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14492
  (exit $ac_status); } && {
 
14493
         test -z "$ac_f77_werror_flag" ||
 
14494
         test ! -s conftest.err
 
14495
       } && test -s conftest$ac_exeext &&
 
14496
       $as_test_x conftest$ac_exeext; then
 
14497
 
 
14498
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14499
}'`
 
14500
# Check for a 64-bit object if we didn't find anything.
 
14501
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; }
 
14502
}'`; fi
 
14503
else
 
14504
  echo "$as_me: failed program was:" >&5
 
14505
sed 's/^/| /' conftest.$ac_ext >&5
 
14506
 
 
14507
 
 
14508
fi
 
14509
 
 
14510
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14511
      conftest$ac_exeext conftest.$ac_ext
 
14512
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14513
 
 
14514
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14515
          # Warning - without using the other run time loading flags,
 
14516
          # -berok will link without error, but may produce a broken library.
 
14517
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14518
          allow_undefined_flag_F77=' ${wl}-berok'
 
14519
          # Exported symbols can be pulled into shared objects from archives
 
14520
          whole_archive_flag_spec_F77='$convenience'
 
14521
          archive_cmds_need_lc_F77=yes
 
14522
          # This is similar to how AIX traditionally builds its shared libraries.
 
14523
          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'
 
14524
        fi
 
14525
      fi
 
14526
      ;;
 
14527
 
 
14528
    amigaos*)
 
14529
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14530
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14531
      hardcode_minus_L_F77=yes
 
14532
      # see comment about different semantics on the GNU ld section
 
14533
      ld_shlibs_F77=no
 
14534
      ;;
 
14535
 
 
14536
    bsdi[45]*)
 
14537
      export_dynamic_flag_spec_F77=-rdynamic
 
14538
      ;;
 
14539
 
 
14540
    cygwin* | mingw* | pw32*)
 
14541
      # When not using gcc, we currently assume that we are using
 
14542
      # Microsoft Visual C++.
 
14543
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14544
      # no search path for DLLs.
 
14545
      hardcode_libdir_flag_spec_F77=' '
 
14546
      allow_undefined_flag_F77=unsupported
 
14547
      # Tell ltmain to make .lib files, not .a files.
 
14548
      libext=lib
 
14549
      # Tell ltmain to make .dll files, not .so files.
 
14550
      shrext_cmds=".dll"
 
14551
      # FIXME: Setting linknames here is a bad hack.
 
14552
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14553
      # The linker will automatically build a .lib file if we build a DLL.
 
14554
      old_archive_From_new_cmds_F77='true'
 
14555
      # FIXME: Should let the user specify the lib program.
 
14556
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14557
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14558
      enable_shared_with_static_runtimes_F77=yes
 
14559
      ;;
 
14560
 
 
14561
    darwin* | rhapsody*)
 
14562
      case $host_os in
 
14563
        rhapsody* | darwin1.[012])
 
14564
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14565
         ;;
 
14566
       *) # Darwin 1.3 on
 
14567
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14568
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14569
         else
 
14570
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14571
             10.[012])
 
14572
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14573
               ;;
 
14574
             10.*)
 
14575
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14576
               ;;
 
14577
           esac
 
14578
         fi
 
14579
         ;;
 
14580
      esac
 
14581
      archive_cmds_need_lc_F77=no
 
14582
      hardcode_direct_F77=no
 
14583
      hardcode_automatic_F77=yes
 
14584
      hardcode_shlibpath_var_F77=unsupported
 
14585
      whole_archive_flag_spec_F77=''
 
14586
      link_all_deplibs_F77=yes
 
14587
    if test "$GCC" = yes ; then
 
14588
        output_verbose_link_cmd='echo'
 
14589
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14590
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14591
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14592
      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}'
 
14593
      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}'
 
14594
    else
 
14595
      case $cc_basename in
 
14596
        xlc*)
 
14597
         output_verbose_link_cmd='echo'
 
14598
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14599
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14600
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14601
         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}'
 
14602
          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}'
 
14603
          ;;
 
14604
       *)
 
14605
         ld_shlibs_F77=no
 
14606
          ;;
 
14607
      esac
 
14608
    fi
 
14609
      ;;
 
14610
 
 
14611
    dgux*)
 
14612
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14613
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14614
      hardcode_shlibpath_var_F77=no
 
14615
      ;;
 
14616
 
 
14617
    freebsd1*)
 
14618
      ld_shlibs_F77=no
 
14619
      ;;
 
14620
 
 
14621
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14622
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14623
    # does not break anything, and helps significantly (at the cost of a little
 
14624
    # extra space).
 
14625
    freebsd2.2*)
 
14626
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14627
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14628
      hardcode_direct_F77=yes
 
14629
      hardcode_shlibpath_var_F77=no
 
14630
      ;;
 
14631
 
 
14632
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14633
    freebsd2*)
 
14634
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14635
      hardcode_direct_F77=yes
 
14636
      hardcode_minus_L_F77=yes
 
14637
      hardcode_shlibpath_var_F77=no
 
14638
      ;;
 
14639
 
 
14640
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14641
    freebsd* | dragonfly*)
 
14642
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14643
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14644
      hardcode_direct_F77=yes
 
14645
      hardcode_shlibpath_var_F77=no
 
14646
      ;;
 
14647
 
 
14648
    hpux9*)
 
14649
      if test "$GCC" = yes; then
 
14650
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14651
      else
 
14652
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14653
      fi
 
14654
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14655
      hardcode_libdir_separator_F77=:
 
14656
      hardcode_direct_F77=yes
 
14657
 
 
14658
      # hardcode_minus_L: Not really in the search PATH,
 
14659
      # but as the default location of the library.
 
14660
      hardcode_minus_L_F77=yes
 
14661
      export_dynamic_flag_spec_F77='${wl}-E'
 
14662
      ;;
 
14663
 
 
14664
    hpux10*)
 
14665
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14666
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14667
      else
 
14668
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14669
      fi
 
14670
      if test "$with_gnu_ld" = no; then
 
14671
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14672
        hardcode_libdir_separator_F77=:
 
14673
 
 
14674
        hardcode_direct_F77=yes
 
14675
        export_dynamic_flag_spec_F77='${wl}-E'
 
14676
 
 
14677
        # hardcode_minus_L: Not really in the search PATH,
 
14678
        # but as the default location of the library.
 
14679
        hardcode_minus_L_F77=yes
 
14680
      fi
 
14681
      ;;
 
14682
 
 
14683
    hpux11*)
 
14684
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14685
        case $host_cpu in
 
14686
        hppa*64*)
 
14687
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14688
          ;;
 
14689
        ia64*)
 
14690
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14691
          ;;
 
14692
        *)
 
14693
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14694
          ;;
 
14695
        esac
 
14696
      else
 
14697
        case $host_cpu in
 
14698
        hppa*64*)
 
14699
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14700
          ;;
 
14701
        ia64*)
 
14702
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14703
          ;;
 
14704
        *)
 
14705
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14706
          ;;
 
14707
        esac
 
14708
      fi
 
14709
      if test "$with_gnu_ld" = no; then
 
14710
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14711
        hardcode_libdir_separator_F77=:
 
14712
 
 
14713
        case $host_cpu in
 
14714
        hppa*64*|ia64*)
 
14715
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14716
          hardcode_direct_F77=no
 
14717
          hardcode_shlibpath_var_F77=no
 
14718
          ;;
 
14719
        *)
 
14720
          hardcode_direct_F77=yes
 
14721
          export_dynamic_flag_spec_F77='${wl}-E'
 
14722
 
 
14723
          # hardcode_minus_L: Not really in the search PATH,
 
14724
          # but as the default location of the library.
 
14725
          hardcode_minus_L_F77=yes
 
14726
          ;;
 
14727
        esac
 
14728
      fi
 
14729
      ;;
 
14730
 
 
14731
    irix5* | irix6* | nonstopux*)
 
14732
      if test "$GCC" = yes; then
 
14733
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14734
      else
 
14735
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14736
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14737
      fi
 
14738
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14739
      hardcode_libdir_separator_F77=:
 
14740
      link_all_deplibs_F77=yes
 
14741
      ;;
 
14742
 
 
14743
    netbsd* | netbsdelf*-gnu)
 
14744
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14745
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14746
      else
 
14747
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14748
      fi
 
14749
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14750
      hardcode_direct_F77=yes
 
14751
      hardcode_shlibpath_var_F77=no
 
14752
      ;;
 
14753
 
 
14754
    newsos6)
 
14755
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14756
      hardcode_direct_F77=yes
 
14757
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14758
      hardcode_libdir_separator_F77=:
 
14759
      hardcode_shlibpath_var_F77=no
 
14760
      ;;
 
14761
 
 
14762
    openbsd*)
 
14763
      hardcode_direct_F77=yes
 
14764
      hardcode_shlibpath_var_F77=no
 
14765
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14766
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14767
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14768
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14769
        export_dynamic_flag_spec_F77='${wl}-E'
 
14770
      else
 
14771
       case $host_os in
 
14772
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14773
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14774
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14775
           ;;
 
14776
         *)
 
14777
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14778
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14779
           ;;
 
14780
       esac
 
14781
      fi
 
14782
      ;;
 
14783
 
 
14784
    os2*)
 
14785
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14786
      hardcode_minus_L_F77=yes
 
14787
      allow_undefined_flag_F77=unsupported
 
14788
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
14789
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14790
      ;;
 
14791
 
 
14792
    osf3*)
 
14793
      if test "$GCC" = yes; then
 
14794
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14795
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14796
      else
 
14797
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14798
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14799
      fi
 
14800
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14801
      hardcode_libdir_separator_F77=:
 
14802
      ;;
 
14803
 
 
14804
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14805
      if test "$GCC" = yes; then
 
14806
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14807
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14808
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14809
      else
 
14810
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14811
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14812
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
14813
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14814
 
 
14815
        # Both c and cxx compiler support -rpath directly
 
14816
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14817
      fi
 
14818
      hardcode_libdir_separator_F77=:
 
14819
      ;;
 
14820
 
 
14821
    solaris*)
 
14822
      no_undefined_flag_F77=' -z text'
 
14823
      if test "$GCC" = yes; then
 
14824
        wlarc='${wl}'
 
14825
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14826
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14827
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14828
      else
 
14829
        wlarc=''
 
14830
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14831
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14832
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14833
      fi
 
14834
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14835
      hardcode_shlibpath_var_F77=no
 
14836
      case $host_os in
 
14837
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14838
      *)
 
14839
        # The compiler driver will combine linker options so we
 
14840
        # cannot just pass the convience library names through
 
14841
        # without $wl, iff we do not link with $LD.
 
14842
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14843
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14844
        case $wlarc in
 
14845
        '')
 
14846
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14847
        *)
 
14848
          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' ;;
 
14849
        esac ;;
 
14850
      esac
 
14851
      link_all_deplibs_F77=yes
 
14852
      ;;
 
14853
 
 
14854
    sunos4*)
 
14855
      if test "x$host_vendor" = xsequent; then
 
14856
        # Use $CC to link under sequent, because it throws in some extra .o
 
14857
        # files that make .init and .fini sections work.
 
14858
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14859
      else
 
14860
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14861
      fi
 
14862
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14863
      hardcode_direct_F77=yes
 
14864
      hardcode_minus_L_F77=yes
 
14865
      hardcode_shlibpath_var_F77=no
 
14866
      ;;
 
14867
 
 
14868
    sysv4)
 
14869
      case $host_vendor in
 
14870
        sni)
 
14871
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14872
          hardcode_direct_F77=yes # is this really true???
 
14873
        ;;
 
14874
        siemens)
 
14875
          ## LD is ld it makes a PLAMLIB
 
14876
          ## CC just makes a GrossModule.
 
14877
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14878
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14879
          hardcode_direct_F77=no
 
14880
        ;;
 
14881
        motorola)
 
14882
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14883
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14884
        ;;
 
14885
      esac
 
14886
      runpath_var='LD_RUN_PATH'
 
14887
      hardcode_shlibpath_var_F77=no
 
14888
      ;;
 
14889
 
 
14890
    sysv4.3*)
 
14891
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14892
      hardcode_shlibpath_var_F77=no
 
14893
      export_dynamic_flag_spec_F77='-Bexport'
 
14894
      ;;
 
14895
 
 
14896
    sysv4*MP*)
 
14897
      if test -d /usr/nec; then
 
14898
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14899
        hardcode_shlibpath_var_F77=no
 
14900
        runpath_var=LD_RUN_PATH
 
14901
        hardcode_runpath_var=yes
 
14902
        ld_shlibs_F77=yes
 
14903
      fi
 
14904
      ;;
 
14905
 
 
14906
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14907
      no_undefined_flag_F77='${wl}-z,text'
 
14908
      archive_cmds_need_lc_F77=no
 
14909
      hardcode_shlibpath_var_F77=no
 
14910
      runpath_var='LD_RUN_PATH'
 
14911
 
 
14912
      if test "$GCC" = yes; then
 
14913
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14914
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14915
      else
 
14916
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14917
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14918
      fi
 
14919
      ;;
 
14920
 
 
14921
    sysv5* | sco3.2v5* | sco5v6*)
 
14922
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14923
      # link with -lc, and that would cause any symbols used from libc to
 
14924
      # always be unresolved, which means just about no library would
 
14925
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14926
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14927
      # as -z defs.
 
14928
      no_undefined_flag_F77='${wl}-z,text'
 
14929
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14930
      archive_cmds_need_lc_F77=no
 
14931
      hardcode_shlibpath_var_F77=no
 
14932
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14933
      hardcode_libdir_separator_F77=':'
 
14934
      link_all_deplibs_F77=yes
 
14935
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14936
      runpath_var='LD_RUN_PATH'
 
14937
 
 
14938
      if test "$GCC" = yes; then
 
14939
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14940
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14941
      else
 
14942
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14943
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14944
      fi
 
14945
      ;;
 
14946
 
 
14947
    uts4*)
 
14948
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14949
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14950
      hardcode_shlibpath_var_F77=no
 
14951
      ;;
 
14952
 
 
14953
    *)
 
14954
      ld_shlibs_F77=no
 
14955
      ;;
 
14956
    esac
 
14957
  fi
 
14958
 
 
14959
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14960
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
14961
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14962
 
 
14963
#
 
14964
# Do we need to explicitly link libc?
 
14965
#
 
14966
case "x$archive_cmds_need_lc_F77" in
 
14967
x|xyes)
 
14968
  # Assume -lc should be added
 
14969
  archive_cmds_need_lc_F77=yes
 
14970
 
 
14971
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14972
    case $archive_cmds_F77 in
 
14973
    *'~'*)
 
14974
      # FIXME: we may have to deal with multi-command sequences.
 
14975
      ;;
 
14976
    '$CC '*)
 
14977
      # Test whether the compiler implicitly links with -lc since on some
 
14978
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14979
      # to ld, don't add -lc before -lgcc.
 
14980
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14981
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
14982
      $rm conftest*
 
14983
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14984
 
 
14985
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14986
  (eval $ac_compile) 2>&5
 
14987
  ac_status=$?
 
14988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14989
  (exit $ac_status); } 2>conftest.err; then
 
14990
        soname=conftest
 
14991
        lib=conftest
 
14992
        libobjs=conftest.$ac_objext
 
14993
        deplibs=
 
14994
        wl=$lt_prog_compiler_wl_F77
 
14995
        pic_flag=$lt_prog_compiler_pic_F77
 
14996
        compiler_flags=-v
 
14997
        linker_flags=-v
 
14998
        verstring=
 
14999
        output_objdir=.
 
15000
        libname=conftest
 
15001
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15002
        allow_undefined_flag_F77=
 
15003
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15004
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15005
  ac_status=$?
 
15006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15007
  (exit $ac_status); }
 
15008
        then
 
15009
          archive_cmds_need_lc_F77=no
 
15010
        else
 
15011
          archive_cmds_need_lc_F77=yes
 
15012
        fi
 
15013
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15014
      else
 
15015
        cat conftest.err 1>&5
 
15016
      fi
 
15017
      $rm conftest*
 
15018
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15019
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15020
      ;;
 
15021
    esac
 
15022
  fi
 
15023
  ;;
 
15024
esac
 
15025
 
 
15026
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15027
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15028
library_names_spec=
 
15029
libname_spec='lib$name'
 
15030
soname_spec=
 
15031
shrext_cmds=".so"
 
15032
postinstall_cmds=
 
15033
postuninstall_cmds=
 
15034
finish_cmds=
 
15035
finish_eval=
 
15036
shlibpath_var=
 
15037
shlibpath_overrides_runpath=unknown
 
15038
version_type=none
 
15039
dynamic_linker="$host_os ld.so"
 
15040
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15041
if test "$GCC" = yes; then
 
15042
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15043
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15044
    # if the path contains ";" then we assume it to be the separator
 
15045
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15046
    # assumed that no part of a normal pathname contains ";" but that should
 
15047
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15048
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15049
  else
 
15050
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15051
  fi
 
15052
else
 
15053
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15054
fi
 
15055
need_lib_prefix=unknown
 
15056
hardcode_into_libs=no
 
15057
 
 
15058
# when you set need_version to no, make sure it does not cause -set_version
 
15059
# flags to be left without arguments
 
15060
need_version=unknown
 
15061
 
 
15062
case $host_os in
 
15063
aix3*)
 
15064
  version_type=linux
 
15065
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15066
  shlibpath_var=LIBPATH
 
15067
 
 
15068
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15069
  soname_spec='${libname}${release}${shared_ext}$major'
 
15070
  ;;
 
15071
 
 
15072
aix4* | aix5*)
 
15073
  version_type=linux
 
15074
  need_lib_prefix=no
 
15075
  need_version=no
 
15076
  hardcode_into_libs=yes
 
15077
  if test "$host_cpu" = ia64; then
 
15078
    # AIX 5 supports IA64
 
15079
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15080
    shlibpath_var=LD_LIBRARY_PATH
 
15081
  else
 
15082
    # With GCC up to 2.95.x, collect2 would create an import file
 
15083
    # for dependence libraries.  The import file would start with
 
15084
    # the line `#! .'.  This would cause the generated library to
 
15085
    # depend on `.', always an invalid library.  This was fixed in
 
15086
    # development snapshots of GCC prior to 3.0.
 
15087
    case $host_os in
 
15088
      aix4 | aix4.[01] | aix4.[01].*)
 
15089
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15090
           echo ' yes '
 
15091
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15092
        :
 
15093
      else
 
15094
        can_build_shared=no
 
15095
      fi
 
15096
      ;;
 
15097
    esac
 
15098
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15099
    # soname into executable. Probably we can add versioning support to
 
15100
    # collect2, so additional links can be useful in future.
 
15101
    if test "$aix_use_runtimelinking" = yes; then
 
15102
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15103
      # instead of lib<name>.a to let people know that these are not
 
15104
      # typical AIX shared libraries.
 
15105
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15106
    else
 
15107
      # We preserve .a as extension for shared libraries through AIX4.2
 
15108
      # and later when we are not doing run time linking.
 
15109
      library_names_spec='${libname}${release}.a $libname.a'
 
15110
      soname_spec='${libname}${release}${shared_ext}$major'
 
15111
    fi
 
15112
    shlibpath_var=LIBPATH
 
15113
  fi
 
15114
  ;;
 
15115
 
 
15116
amigaos*)
 
15117
  library_names_spec='$libname.ixlibrary $libname.a'
 
15118
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15119
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
15120
  ;;
 
15121
 
 
15122
beos*)
 
15123
  library_names_spec='${libname}${shared_ext}'
 
15124
  dynamic_linker="$host_os ld.so"
 
15125
  shlibpath_var=LIBRARY_PATH
 
15126
  ;;
 
15127
 
 
15128
bsdi[45]*)
 
15129
  version_type=linux
 
15130
  need_version=no
 
15131
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15132
  soname_spec='${libname}${release}${shared_ext}$major'
 
15133
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15134
  shlibpath_var=LD_LIBRARY_PATH
 
15135
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15136
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15137
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15138
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15139
  # libtool to hard-code these into programs
 
15140
  ;;
 
15141
 
 
15142
cygwin* | mingw* | pw32*)
 
15143
  version_type=windows
 
15144
  shrext_cmds=".dll"
 
15145
  need_version=no
 
15146
  need_lib_prefix=no
 
15147
 
 
15148
  case $GCC,$host_os in
 
15149
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15150
    library_names_spec='$libname.dll.a'
 
15151
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15152
    postinstall_cmds='base_file=`basename \${file}`~
 
15153
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15154
      dldir=$destdir/`dirname \$dlpath`~
 
15155
      test -d \$dldir || mkdir -p \$dldir~
 
15156
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15157
      chmod a+x \$dldir/$dlname'
 
15158
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15159
      dlpath=$dir/\$dldll~
 
15160
       $rm \$dlpath'
 
15161
    shlibpath_overrides_runpath=yes
 
15162
 
 
15163
    case $host_os in
 
15164
    cygwin*)
 
15165
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15166
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15167
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15168
      ;;
 
15169
    mingw*)
 
15170
      # MinGW DLLs use traditional 'lib' prefix
 
15171
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15172
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15173
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15174
        # It is most probably a Windows format PATH printed by
 
15175
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15176
        # path with ; separators, and with drive letters. We can handle the
 
15177
        # drive letters (cygwin fileutils understands them), so leave them,
 
15178
        # especially as we might pass files found there to a mingw objdump,
 
15179
        # which wouldn't understand a cygwinified path. Ahh.
 
15180
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15181
      else
 
15182
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15183
      fi
 
15184
      ;;
 
15185
    pw32*)
 
15186
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15187
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15188
      ;;
 
15189
    esac
 
15190
    ;;
 
15191
 
 
15192
  *)
 
15193
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15194
    ;;
 
15195
  esac
 
15196
  dynamic_linker='Win32 ld.exe'
 
15197
  # FIXME: first we should search . and the directory the executable is in
 
15198
  shlibpath_var=PATH
 
15199
  ;;
 
15200
 
 
15201
darwin* | rhapsody*)
 
15202
  dynamic_linker="$host_os dyld"
 
15203
  version_type=darwin
 
15204
  need_lib_prefix=no
 
15205
  need_version=no
 
15206
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15207
  soname_spec='${libname}${release}${major}$shared_ext'
 
15208
  shlibpath_overrides_runpath=yes
 
15209
  shlibpath_var=DYLD_LIBRARY_PATH
 
15210
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15211
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15212
  if test "$GCC" = yes; then
 
15213
    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"`
 
15214
  else
 
15215
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15216
  fi
 
15217
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15218
  ;;
 
15219
 
 
15220
dgux*)
 
15221
  version_type=linux
 
15222
  need_lib_prefix=no
 
15223
  need_version=no
 
15224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15225
  soname_spec='${libname}${release}${shared_ext}$major'
 
15226
  shlibpath_var=LD_LIBRARY_PATH
 
15227
  ;;
 
15228
 
 
15229
freebsd1*)
 
15230
  dynamic_linker=no
 
15231
  ;;
 
15232
 
 
15233
freebsd* | dragonfly*)
 
15234
  # DragonFly does not have aout.  When/if they implement a new
 
15235
  # versioning mechanism, adjust this.
 
15236
  if test -x /usr/bin/objformat; then
 
15237
    objformat=`/usr/bin/objformat`
 
15238
  else
 
15239
    case $host_os in
 
15240
    freebsd[123]*) objformat=aout ;;
 
15241
    *) objformat=elf ;;
 
15242
    esac
 
15243
  fi
 
15244
  version_type=freebsd-$objformat
 
15245
  case $version_type in
 
15246
    freebsd-elf*)
 
15247
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15248
      need_version=no
 
15249
      need_lib_prefix=no
 
15250
      ;;
 
15251
    freebsd-*)
 
15252
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15253
      need_version=yes
 
15254
      ;;
 
15255
  esac
 
15256
  shlibpath_var=LD_LIBRARY_PATH
 
15257
  case $host_os in
 
15258
  freebsd2*)
 
15259
    shlibpath_overrides_runpath=yes
 
15260
    ;;
 
15261
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15262
    shlibpath_overrides_runpath=yes
 
15263
    hardcode_into_libs=yes
 
15264
    ;;
 
15265
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15266
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15267
    shlibpath_overrides_runpath=no
 
15268
    hardcode_into_libs=yes
 
15269
    ;;
 
15270
  freebsd*) # from 4.6 on
 
15271
    shlibpath_overrides_runpath=yes
 
15272
    hardcode_into_libs=yes
 
15273
    ;;
 
15274
  esac
 
15275
  ;;
 
15276
 
 
15277
gnu*)
 
15278
  version_type=linux
 
15279
  need_lib_prefix=no
 
15280
  need_version=no
 
15281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15282
  soname_spec='${libname}${release}${shared_ext}$major'
 
15283
  shlibpath_var=LD_LIBRARY_PATH
 
15284
  hardcode_into_libs=yes
 
15285
  ;;
 
15286
 
 
15287
hpux9* | hpux10* | hpux11*)
 
15288
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15289
  # link against other versions.
 
15290
  version_type=sunos
 
15291
  need_lib_prefix=no
 
15292
  need_version=no
 
15293
  case $host_cpu in
 
15294
  ia64*)
 
15295
    shrext_cmds='.so'
 
15296
    hardcode_into_libs=yes
 
15297
    dynamic_linker="$host_os dld.so"
 
15298
    shlibpath_var=LD_LIBRARY_PATH
 
15299
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15300
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15301
    soname_spec='${libname}${release}${shared_ext}$major'
 
15302
    if test "X$HPUX_IA64_MODE" = X32; then
 
15303
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15304
    else
 
15305
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15306
    fi
 
15307
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15308
    ;;
 
15309
   hppa*64*)
 
15310
     shrext_cmds='.sl'
 
15311
     hardcode_into_libs=yes
 
15312
     dynamic_linker="$host_os dld.sl"
 
15313
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15314
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15315
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15316
     soname_spec='${libname}${release}${shared_ext}$major'
 
15317
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15318
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15319
     ;;
 
15320
   *)
 
15321
    shrext_cmds='.sl'
 
15322
    dynamic_linker="$host_os dld.sl"
 
15323
    shlibpath_var=SHLIB_PATH
 
15324
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15325
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15326
    soname_spec='${libname}${release}${shared_ext}$major'
 
15327
    ;;
 
15328
  esac
 
15329
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15330
  postinstall_cmds='chmod 555 $lib'
 
15331
  ;;
 
15332
 
 
15333
interix3*)
 
15334
  version_type=linux
 
15335
  need_lib_prefix=no
 
15336
  need_version=no
 
15337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15338
  soname_spec='${libname}${release}${shared_ext}$major'
 
15339
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15340
  shlibpath_var=LD_LIBRARY_PATH
 
15341
  shlibpath_overrides_runpath=no
 
15342
  hardcode_into_libs=yes
 
15343
  ;;
 
15344
 
 
15345
irix5* | irix6* | nonstopux*)
 
15346
  case $host_os in
 
15347
    nonstopux*) version_type=nonstopux ;;
 
15348
    *)
 
15349
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15350
                version_type=linux
 
15351
        else
 
15352
                version_type=irix
 
15353
        fi ;;
 
15354
  esac
 
15355
  need_lib_prefix=no
 
15356
  need_version=no
 
15357
  soname_spec='${libname}${release}${shared_ext}$major'
 
15358
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15359
  case $host_os in
 
15360
  irix5* | nonstopux*)
 
15361
    libsuff= shlibsuff=
 
15362
    ;;
 
15363
  *)
 
15364
    case $LD in # libtool.m4 will add one of these switches to LD
 
15365
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15366
      libsuff= shlibsuff= libmagic=32-bit;;
 
15367
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15368
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15369
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15370
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15371
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15372
    esac
 
15373
    ;;
 
15374
  esac
 
15375
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15376
  shlibpath_overrides_runpath=no
 
15377
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15378
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15379
  hardcode_into_libs=yes
 
15380
  ;;
 
15381
 
 
15382
# No shared lib support for Linux oldld, aout, or coff.
 
15383
linux*oldld* | linux*aout* | linux*coff*)
 
15384
  dynamic_linker=no
 
15385
  ;;
 
15386
 
 
15387
# This must be Linux ELF.
 
15388
linux* | k*bsd*-gnu)
 
15389
  version_type=linux
 
15390
  need_lib_prefix=no
 
15391
  need_version=no
 
15392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15393
  soname_spec='${libname}${release}${shared_ext}$major'
 
15394
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15395
  shlibpath_var=LD_LIBRARY_PATH
 
15396
  shlibpath_overrides_runpath=no
 
15397
  # This implies no fast_install, which is unacceptable.
 
15398
  # Some rework will be needed to allow for fast_install
 
15399
  # before this can be enabled.
 
15400
  hardcode_into_libs=yes
 
15401
 
 
15402
  # Append ld.so.conf contents to the search path
 
15403
  if test -f /etc/ld.so.conf; then
 
15404
    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' ' '`
 
15405
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15406
  fi
 
15407
 
 
15408
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15409
  # powerpc, because MkLinux only supported shared libraries with the
 
15410
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15411
  # most powerpc-linux boxes support dynamic linking these days and
 
15412
  # people can always --disable-shared, the test was removed, and we
 
15413
  # assume the GNU/Linux dynamic linker is in use.
 
15414
  dynamic_linker='GNU/Linux ld.so'
 
15415
  ;;
 
15416
 
 
15417
netbsdelf*-gnu)
 
15418
  version_type=linux
 
15419
  need_lib_prefix=no
 
15420
  need_version=no
 
15421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15422
  soname_spec='${libname}${release}${shared_ext}$major'
 
15423
  shlibpath_var=LD_LIBRARY_PATH
 
15424
  shlibpath_overrides_runpath=no
 
15425
  hardcode_into_libs=yes
 
15426
  dynamic_linker='NetBSD ld.elf_so'
 
15427
  ;;
 
15428
 
 
15429
netbsd*)
 
15430
  version_type=sunos
 
15431
  need_lib_prefix=no
 
15432
  need_version=no
 
15433
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15434
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15435
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15436
    dynamic_linker='NetBSD (a.out) ld.so'
 
15437
  else
 
15438
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15439
    soname_spec='${libname}${release}${shared_ext}$major'
 
15440
    dynamic_linker='NetBSD ld.elf_so'
 
15441
  fi
 
15442
  shlibpath_var=LD_LIBRARY_PATH
 
15443
  shlibpath_overrides_runpath=yes
 
15444
  hardcode_into_libs=yes
 
15445
  ;;
 
15446
 
 
15447
newsos6)
 
15448
  version_type=linux
 
15449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15450
  shlibpath_var=LD_LIBRARY_PATH
 
15451
  shlibpath_overrides_runpath=yes
 
15452
  ;;
 
15453
 
 
15454
nto-qnx*)
 
15455
  version_type=linux
 
15456
  need_lib_prefix=no
 
15457
  need_version=no
 
15458
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15459
  soname_spec='${libname}${release}${shared_ext}$major'
 
15460
  shlibpath_var=LD_LIBRARY_PATH
 
15461
  shlibpath_overrides_runpath=yes
 
15462
  ;;
 
15463
 
 
15464
openbsd*)
 
15465
  version_type=sunos
 
15466
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15467
  need_lib_prefix=no
 
15468
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15469
  case $host_os in
 
15470
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15471
    *)                         need_version=no  ;;
 
15472
  esac
 
15473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15474
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15475
  shlibpath_var=LD_LIBRARY_PATH
 
15476
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15477
    case $host_os in
 
15478
      openbsd2.[89] | openbsd2.[89].*)
 
15479
        shlibpath_overrides_runpath=no
 
15480
        ;;
 
15481
      *)
 
15482
        shlibpath_overrides_runpath=yes
 
15483
        ;;
 
15484
      esac
 
15485
  else
 
15486
    shlibpath_overrides_runpath=yes
 
15487
  fi
 
15488
  ;;
 
15489
 
 
15490
os2*)
 
15491
  libname_spec='$name'
 
15492
  shrext_cmds=".dll"
 
15493
  need_lib_prefix=no
 
15494
  library_names_spec='$libname${shared_ext} $libname.a'
 
15495
  dynamic_linker='OS/2 ld.exe'
 
15496
  shlibpath_var=LIBPATH
 
15497
  ;;
 
15498
 
 
15499
osf3* | osf4* | osf5*)
 
15500
  version_type=osf
 
15501
  need_lib_prefix=no
 
15502
  need_version=no
 
15503
  soname_spec='${libname}${release}${shared_ext}$major'
 
15504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15505
  shlibpath_var=LD_LIBRARY_PATH
 
15506
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15507
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15508
  ;;
 
15509
 
 
15510
solaris*)
 
15511
  version_type=linux
 
15512
  need_lib_prefix=no
 
15513
  need_version=no
 
15514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15515
  soname_spec='${libname}${release}${shared_ext}$major'
 
15516
  shlibpath_var=LD_LIBRARY_PATH
 
15517
  shlibpath_overrides_runpath=yes
 
15518
  hardcode_into_libs=yes
 
15519
  # ldd complains unless libraries are executable
 
15520
  postinstall_cmds='chmod +x $lib'
 
15521
  ;;
 
15522
 
 
15523
sunos4*)
 
15524
  version_type=sunos
 
15525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15526
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15527
  shlibpath_var=LD_LIBRARY_PATH
 
15528
  shlibpath_overrides_runpath=yes
 
15529
  if test "$with_gnu_ld" = yes; then
 
15530
    need_lib_prefix=no
 
15531
  fi
 
15532
  need_version=yes
 
15533
  ;;
 
15534
 
 
15535
sysv4 | sysv4.3*)
 
15536
  version_type=linux
 
15537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15538
  soname_spec='${libname}${release}${shared_ext}$major'
 
15539
  shlibpath_var=LD_LIBRARY_PATH
 
15540
  case $host_vendor in
 
15541
    sni)
 
15542
      shlibpath_overrides_runpath=no
 
15543
      need_lib_prefix=no
 
15544
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15545
      runpath_var=LD_RUN_PATH
 
15546
      ;;
 
15547
    siemens)
 
15548
      need_lib_prefix=no
 
15549
      ;;
 
15550
    motorola)
 
15551
      need_lib_prefix=no
 
15552
      need_version=no
 
15553
      shlibpath_overrides_runpath=no
 
15554
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15555
      ;;
 
15556
  esac
 
15557
  ;;
 
15558
 
 
15559
sysv4*MP*)
 
15560
  if test -d /usr/nec ;then
 
15561
    version_type=linux
 
15562
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15563
    soname_spec='$libname${shared_ext}.$major'
 
15564
    shlibpath_var=LD_LIBRARY_PATH
 
15565
  fi
 
15566
  ;;
 
15567
 
 
15568
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15569
  version_type=freebsd-elf
 
15570
  need_lib_prefix=no
 
15571
  need_version=no
 
15572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15573
  soname_spec='${libname}${release}${shared_ext}$major'
 
15574
  shlibpath_var=LD_LIBRARY_PATH
 
15575
  hardcode_into_libs=yes
 
15576
  if test "$with_gnu_ld" = yes; then
 
15577
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15578
    shlibpath_overrides_runpath=no
 
15579
  else
 
15580
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15581
    shlibpath_overrides_runpath=yes
 
15582
    case $host_os in
 
15583
      sco3.2v5*)
 
15584
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15585
        ;;
 
15586
    esac
 
15587
  fi
 
15588
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15589
  ;;
 
15590
 
 
15591
uts4*)
 
15592
  version_type=linux
 
15593
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15594
  soname_spec='${libname}${release}${shared_ext}$major'
 
15595
  shlibpath_var=LD_LIBRARY_PATH
 
15596
  ;;
 
15597
 
 
15598
*)
 
15599
  dynamic_linker=no
 
15600
  ;;
 
15601
esac
 
15602
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15603
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15604
test "$dynamic_linker" = no && can_build_shared=no
 
15605
 
 
15606
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15607
if test "$GCC" = yes; then
 
15608
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15609
fi
 
15610
 
 
15611
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15612
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15613
hardcode_action_F77=
 
15614
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15615
   test -n "$runpath_var_F77" || \
 
15616
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15617
 
 
15618
  # We can hardcode non-existant directories.
 
15619
  if test "$hardcode_direct_F77" != no &&
 
15620
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15621
     # have to relink, otherwise we might link with an installed library
 
15622
     # when we should be linking with a yet-to-be-installed one
 
15623
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15624
     test "$hardcode_minus_L_F77" != no; then
 
15625
    # Linking always hardcodes the temporary library directory.
 
15626
    hardcode_action_F77=relink
 
15627
  else
 
15628
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15629
    hardcode_action_F77=immediate
 
15630
  fi
 
15631
else
 
15632
  # We cannot hardcode anything, or else we can only hardcode existing
 
15633
  # directories.
 
15634
  hardcode_action_F77=unsupported
 
15635
fi
 
15636
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15637
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
15638
 
 
15639
if test "$hardcode_action_F77" = relink; then
 
15640
  # Fast installation is not supported
 
15641
  enable_fast_install=no
 
15642
elif test "$shlibpath_overrides_runpath" = yes ||
 
15643
     test "$enable_shared" = no; then
 
15644
  # Fast installation is not necessary
 
15645
  enable_fast_install=needless
 
15646
fi
 
15647
 
 
15648
 
 
15649
# The else clause should only fire when bootstrapping the
 
15650
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15651
# with your package, and you will get complaints that there are
 
15652
# no rules to generate ltmain.sh.
 
15653
if test -f "$ltmain"; then
 
15654
  # See if we are running on zsh, and set the options which allow our commands through
 
15655
  # without removal of \ escapes.
 
15656
  if test -n "${ZSH_VERSION+set}" ; then
 
15657
    setopt NO_GLOB_SUBST
 
15658
  fi
 
15659
  # Now quote all the things that may contain metacharacters while being
 
15660
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15661
  # variables and quote the copies for generation of the libtool script.
 
15662
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15663
    SED SHELL STRIP \
 
15664
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15665
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15666
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15667
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15668
    lt_cv_sys_global_symbol_to_c_name_address \
 
15669
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15670
    old_postinstall_cmds old_postuninstall_cmds \
 
15671
    compiler_F77 \
 
15672
    CC_F77 \
 
15673
    LD_F77 \
 
15674
    lt_prog_compiler_wl_F77 \
 
15675
    lt_prog_compiler_pic_F77 \
 
15676
    lt_prog_compiler_static_F77 \
 
15677
    lt_prog_compiler_no_builtin_flag_F77 \
 
15678
    export_dynamic_flag_spec_F77 \
 
15679
    thread_safe_flag_spec_F77 \
 
15680
    whole_archive_flag_spec_F77 \
 
15681
    enable_shared_with_static_runtimes_F77 \
 
15682
    old_archive_cmds_F77 \
 
15683
    old_archive_from_new_cmds_F77 \
 
15684
    predep_objects_F77 \
 
15685
    postdep_objects_F77 \
 
15686
    predeps_F77 \
 
15687
    postdeps_F77 \
 
15688
    compiler_lib_search_path_F77 \
 
15689
    archive_cmds_F77 \
 
15690
    archive_expsym_cmds_F77 \
 
15691
    postinstall_cmds_F77 \
 
15692
    postuninstall_cmds_F77 \
 
15693
    old_archive_from_expsyms_cmds_F77 \
 
15694
    allow_undefined_flag_F77 \
 
15695
    no_undefined_flag_F77 \
 
15696
    export_symbols_cmds_F77 \
 
15697
    hardcode_libdir_flag_spec_F77 \
 
15698
    hardcode_libdir_flag_spec_ld_F77 \
 
15699
    hardcode_libdir_separator_F77 \
 
15700
    hardcode_automatic_F77 \
 
15701
    module_cmds_F77 \
 
15702
    module_expsym_cmds_F77 \
 
15703
    lt_cv_prog_compiler_c_o_F77 \
 
15704
    exclude_expsyms_F77 \
 
15705
    include_expsyms_F77; do
 
15706
 
 
15707
    case $var in
 
15708
    old_archive_cmds_F77 | \
 
15709
    old_archive_from_new_cmds_F77 | \
 
15710
    archive_cmds_F77 | \
 
15711
    archive_expsym_cmds_F77 | \
 
15712
    module_cmds_F77 | \
 
15713
    module_expsym_cmds_F77 | \
 
15714
    old_archive_from_expsyms_cmds_F77 | \
 
15715
    export_symbols_cmds_F77 | \
 
15716
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15717
    postinstall_cmds | postuninstall_cmds | \
 
15718
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15719
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15720
      # Double-quote double-evaled strings.
 
15721
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15722
      ;;
 
15723
    *)
 
15724
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15725
      ;;
 
15726
    esac
 
15727
  done
 
15728
 
 
15729
  case $lt_echo in
 
15730
  *'\$0 --fallback-echo"')
 
15731
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15732
    ;;
 
15733
  esac
 
15734
 
 
15735
cfgfile="$ofile"
 
15736
 
 
15737
  cat <<__EOF__ >> "$cfgfile"
 
15738
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15739
 
 
15740
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15741
 
 
15742
# Shell to use when invoking shell scripts.
 
15743
SHELL=$lt_SHELL
 
15744
 
 
15745
# Whether or not to build shared libraries.
 
15746
build_libtool_libs=$enable_shared
 
15747
 
 
15748
# Whether or not to build static libraries.
 
15749
build_old_libs=$enable_static
 
15750
 
 
15751
# Whether or not to add -lc for building shared libraries.
 
15752
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15753
 
 
15754
# Whether or not to disallow shared libs when runtime libs are static
 
15755
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15756
 
 
15757
# Whether or not to optimize for fast installation.
 
15758
fast_install=$enable_fast_install
 
15759
 
 
15760
# The host system.
 
15761
host_alias=$host_alias
 
15762
host=$host
 
15763
host_os=$host_os
 
15764
 
 
15765
# The build system.
 
15766
build_alias=$build_alias
 
15767
build=$build
 
15768
build_os=$build_os
 
15769
 
 
15770
# An echo program that does not interpret backslashes.
 
15771
echo=$lt_echo
 
15772
 
 
15773
# The archiver.
 
15774
AR=$lt_AR
 
15775
AR_FLAGS=$lt_AR_FLAGS
 
15776
 
 
15777
# A C compiler.
 
15778
LTCC=$lt_LTCC
 
15779
 
 
15780
# LTCC compiler flags.
 
15781
LTCFLAGS=$lt_LTCFLAGS
 
15782
 
 
15783
# A language-specific compiler.
 
15784
CC=$lt_compiler_F77
 
15785
 
 
15786
# Is the compiler the GNU C compiler?
 
15787
with_gcc=$GCC_F77
 
15788
 
 
15789
# An ERE matcher.
 
15790
EGREP=$lt_EGREP
 
15791
 
 
15792
# The linker used to build libraries.
 
15793
LD=$lt_LD_F77
 
15794
 
 
15795
# Whether we need hard or soft links.
 
15796
LN_S=$lt_LN_S
 
15797
 
 
15798
# A BSD-compatible nm program.
 
15799
NM=$lt_NM
 
15800
 
 
15801
# A symbol stripping program
 
15802
STRIP=$lt_STRIP
 
15803
 
 
15804
# Used to examine libraries when file_magic_cmd begins "file"
 
15805
MAGIC_CMD=$MAGIC_CMD
 
15806
 
 
15807
# Used on cygwin: DLL creation program.
 
15808
DLLTOOL="$DLLTOOL"
 
15809
 
 
15810
# Used on cygwin: object dumper.
 
15811
OBJDUMP="$OBJDUMP"
 
15812
 
 
15813
# Used on cygwin: assembler.
 
15814
AS="$AS"
 
15815
 
 
15816
# The name of the directory that contains temporary libtool files.
 
15817
objdir=$objdir
 
15818
 
 
15819
# How to create reloadable object files.
 
15820
reload_flag=$lt_reload_flag
 
15821
reload_cmds=$lt_reload_cmds
 
15822
 
 
15823
# How to pass a linker flag through the compiler.
 
15824
wl=$lt_lt_prog_compiler_wl_F77
 
15825
 
 
15826
# Object file suffix (normally "o").
 
15827
objext="$ac_objext"
 
15828
 
 
15829
# Old archive suffix (normally "a").
 
15830
libext="$libext"
 
15831
 
 
15832
# Shared library suffix (normally ".so").
 
15833
shrext_cmds='$shrext_cmds'
 
15834
 
 
15835
# Executable file suffix (normally "").
 
15836
exeext="$exeext"
 
15837
 
 
15838
# Additional compiler flags for building library objects.
 
15839
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15840
pic_mode=$pic_mode
 
15841
 
 
15842
# What is the maximum length of a command?
 
15843
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15844
 
 
15845
# Does compiler simultaneously support -c and -o options?
 
15846
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15847
 
 
15848
# Must we lock files when doing compilation?
 
15849
need_locks=$lt_need_locks
 
15850
 
 
15851
# Do we need the lib prefix for modules?
 
15852
need_lib_prefix=$need_lib_prefix
 
15853
 
 
15854
# Do we need a version for libraries?
 
15855
need_version=$need_version
 
15856
 
 
15857
# Whether dlopen is supported.
 
15858
dlopen_support=$enable_dlopen
 
15859
 
 
15860
# Whether dlopen of programs is supported.
 
15861
dlopen_self=$enable_dlopen_self
 
15862
 
 
15863
# Whether dlopen of statically linked programs is supported.
 
15864
dlopen_self_static=$enable_dlopen_self_static
 
15865
 
 
15866
# Compiler flag to prevent dynamic linking.
 
15867
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15868
 
 
15869
# Compiler flag to turn off builtin functions.
 
15870
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15871
 
 
15872
# Compiler flag to allow reflexive dlopens.
 
15873
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15874
 
 
15875
# Compiler flag to generate shared objects directly from archives.
 
15876
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15877
 
 
15878
# Compiler flag to generate thread-safe objects.
 
15879
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15880
 
 
15881
# Library versioning type.
 
15882
version_type=$version_type
 
15883
 
 
15884
# Format of library name prefix.
 
15885
libname_spec=$lt_libname_spec
 
15886
 
 
15887
# List of archive names.  First name is the real one, the rest are links.
 
15888
# The last name is the one that the linker finds with -lNAME.
 
15889
library_names_spec=$lt_library_names_spec
 
15890
 
 
15891
# The coded name of the library, if different from the real name.
 
15892
soname_spec=$lt_soname_spec
 
15893
 
 
15894
# Commands used to build and install an old-style archive.
 
15895
RANLIB=$lt_RANLIB
 
15896
old_archive_cmds=$lt_old_archive_cmds_F77
 
15897
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15898
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15899
 
 
15900
# Create an old-style archive from a shared archive.
 
15901
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15902
 
 
15903
# Create a temporary old-style archive to link instead of a shared archive.
 
15904
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15905
 
 
15906
# Commands used to build and install a shared archive.
 
15907
archive_cmds=$lt_archive_cmds_F77
 
15908
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15909
postinstall_cmds=$lt_postinstall_cmds
 
15910
postuninstall_cmds=$lt_postuninstall_cmds
 
15911
 
 
15912
# Commands used to build a loadable module (assumed same as above if empty)
 
15913
module_cmds=$lt_module_cmds_F77
 
15914
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15915
 
 
15916
# Commands to strip libraries.
 
15917
old_striplib=$lt_old_striplib
 
15918
striplib=$lt_striplib
 
15919
 
 
15920
# Dependencies to place before the objects being linked to create a
 
15921
# shared library.
 
15922
predep_objects=$lt_predep_objects_F77
 
15923
 
 
15924
# Dependencies to place after the objects being linked to create a
 
15925
# shared library.
 
15926
postdep_objects=$lt_postdep_objects_F77
 
15927
 
 
15928
# Dependencies to place before the objects being linked to create a
 
15929
# shared library.
 
15930
predeps=$lt_predeps_F77
 
15931
 
 
15932
# Dependencies to place after the objects being linked to create a
 
15933
# shared library.
 
15934
postdeps=$lt_postdeps_F77
 
15935
 
 
15936
# The library search path used internally by the compiler when linking
 
15937
# a shared library.
 
15938
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15939
 
 
15940
# Method to check whether dependent libraries are shared objects.
 
15941
deplibs_check_method=$lt_deplibs_check_method
 
15942
 
 
15943
# Command to use when deplibs_check_method == file_magic.
 
15944
file_magic_cmd=$lt_file_magic_cmd
 
15945
 
 
15946
# Flag that allows shared libraries with undefined symbols to be built.
 
15947
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15948
 
 
15949
# Flag that forces no undefined symbols.
 
15950
no_undefined_flag=$lt_no_undefined_flag_F77
 
15951
 
 
15952
# Commands used to finish a libtool library installation in a directory.
 
15953
finish_cmds=$lt_finish_cmds
 
15954
 
 
15955
# Same as above, but a single script fragment to be evaled but not shown.
 
15956
finish_eval=$lt_finish_eval
 
15957
 
 
15958
# Take the output of nm and produce a listing of raw symbols and C names.
 
15959
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15960
 
 
15961
# Transform the output of nm in a proper C declaration
 
15962
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15963
 
 
15964
# Transform the output of nm in a C name address pair
 
15965
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15966
 
 
15967
# This is the shared library runtime path variable.
 
15968
runpath_var=$runpath_var
 
15969
 
 
15970
# This is the shared library path variable.
 
15971
shlibpath_var=$shlibpath_var
 
15972
 
 
15973
# Is shlibpath searched before the hard-coded library search path?
 
15974
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15975
 
 
15976
# How to hardcode a shared library path into an executable.
 
15977
hardcode_action=$hardcode_action_F77
 
15978
 
 
15979
# Whether we should hardcode library paths into libraries.
 
15980
hardcode_into_libs=$hardcode_into_libs
 
15981
 
 
15982
# Flag to hardcode \$libdir into a binary during linking.
 
15983
# This must work even if \$libdir does not exist.
 
15984
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15985
 
 
15986
# If ld is used when linking, flag to hardcode \$libdir into
 
15987
# a binary during linking. This must work even if \$libdir does
 
15988
# not exist.
 
15989
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15990
 
 
15991
# Whether we need a single -rpath flag with a separated argument.
 
15992
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15993
 
 
15994
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15995
# resulting binary.
 
15996
hardcode_direct=$hardcode_direct_F77
 
15997
 
 
15998
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15999
# resulting binary.
 
16000
hardcode_minus_L=$hardcode_minus_L_F77
 
16001
 
 
16002
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16003
# the resulting binary.
 
16004
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16005
 
 
16006
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16007
# and all subsequent libraries and executables linked against it.
 
16008
hardcode_automatic=$hardcode_automatic_F77
 
16009
 
 
16010
# Variables whose values should be saved in libtool wrapper scripts and
 
16011
# restored at relink time.
 
16012
variables_saved_for_relink="$variables_saved_for_relink"
 
16013
 
 
16014
# Whether libtool must link a program against all its dependency libraries.
 
16015
link_all_deplibs=$link_all_deplibs_F77
 
16016
 
 
16017
# Compile-time system search path for libraries
 
16018
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16019
 
 
16020
# Run-time system search path for libraries
 
16021
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16022
 
 
16023
# Fix the shell variable \$srcfile for the compiler.
 
16024
fix_srcfile_path="$fix_srcfile_path_F77"
 
16025
 
 
16026
# Set to yes if exported symbols are required.
 
16027
always_export_symbols=$always_export_symbols_F77
 
16028
 
 
16029
# The commands to list exported symbols.
 
16030
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16031
 
 
16032
# The commands to extract the exported symbol list from a shared archive.
 
16033
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16034
 
 
16035
# Symbols that should not be listed in the preloaded symbols.
 
16036
exclude_expsyms=$lt_exclude_expsyms_F77
 
16037
 
 
16038
# Symbols that must always be exported.
 
16039
include_expsyms=$lt_include_expsyms_F77
 
16040
 
 
16041
# ### END LIBTOOL TAG CONFIG: $tagname
 
16042
 
 
16043
__EOF__
 
16044
 
 
16045
 
 
16046
else
 
16047
  # If there is no Makefile yet, we rely on a make rule to execute
 
16048
  # `config.status --recheck' to rerun these tests and create the
 
16049
  # libtool script then.
 
16050
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16051
  if test -f "$ltmain_in"; then
 
16052
    test -f Makefile && make "$ltmain"
 
16053
  fi
 
16054
fi
 
16055
 
 
16056
 
 
16057
ac_ext=c
 
16058
ac_cpp='$CPP $CPPFLAGS'
 
16059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16062
 
 
16063
CC="$lt_save_CC"
 
16064
 
 
16065
        else
 
16066
          tagname=""
 
16067
        fi
 
16068
        ;;
 
16069
 
 
16070
      GCJ)
 
16071
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16072
 
 
16073
 
 
16074
# Source file extension for Java test sources.
 
16075
ac_ext=java
 
16076
 
 
16077
# Object file extension for compiled Java test sources.
 
16078
objext=o
 
16079
objext_GCJ=$objext
 
16080
 
 
16081
# Code to be used in simple compile tests
 
16082
lt_simple_compile_test_code="class foo {}\n"
 
16083
 
 
16084
# Code to be used in simple link tests
 
16085
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16086
 
 
16087
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16088
 
 
16089
# If no C compiler was specified, use CC.
 
16090
LTCC=${LTCC-"$CC"}
 
16091
 
 
16092
# If no C compiler flags were specified, use CFLAGS.
 
16093
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16094
 
 
16095
# Allow CC to be a program name with arguments.
 
16096
compiler=$CC
 
16097
 
 
16098
 
 
16099
# save warnings/boilerplate of simple test code
 
16100
ac_outfile=conftest.$ac_objext
 
16101
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16102
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16103
_lt_compiler_boilerplate=`cat conftest.err`
 
16104
$rm conftest*
 
16105
 
 
16106
ac_outfile=conftest.$ac_objext
 
16107
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16108
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16109
_lt_linker_boilerplate=`cat conftest.err`
 
16110
$rm conftest*
 
16111
 
 
16112
 
 
16113
# Allow CC to be a program name with arguments.
 
16114
lt_save_CC="$CC"
 
16115
CC=${GCJ-"gcj"}
 
16116
compiler=$CC
 
16117
compiler_GCJ=$CC
 
16118
for cc_temp in $compiler""; do
 
16119
  case $cc_temp in
 
16120
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16121
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16122
    \-*) ;;
 
16123
    *) break;;
 
16124
  esac
 
16125
done
 
16126
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16127
 
 
16128
 
 
16129
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16130
archive_cmds_need_lc_GCJ=no
 
16131
 
 
16132
old_archive_cmds_GCJ=$old_archive_cmds
 
16133
 
 
16134
 
 
16135
lt_prog_compiler_no_builtin_flag_GCJ=
 
16136
 
 
16137
if test "$GCC" = yes; then
 
16138
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16139
 
 
16140
 
 
16141
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16142
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16143
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16145
else
 
16146
  lt_cv_prog_compiler_rtti_exceptions=no
 
16147
  ac_outfile=conftest.$ac_objext
 
16148
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16149
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16150
   # Insert the option either (1) after the last *FLAGS variable, or
 
16151
   # (2) before a word containing "conftest.", or (3) at the end.
 
16152
   # Note that $ac_compile itself does not contain backslashes and begins
 
16153
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16154
   # The option is referenced via a variable to avoid confusing sed.
 
16155
   lt_compile=`echo "$ac_compile" | $SED \
 
16156
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16157
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16158
   -e 's:$: $lt_compiler_flag:'`
 
16159
   (eval echo "\"\$as_me:16159: $lt_compile\"" >&5)
 
16160
   (eval "$lt_compile" 2>conftest.err)
 
16161
   ac_status=$?
 
16162
   cat conftest.err >&5
 
16163
   echo "$as_me:16163: \$? = $ac_status" >&5
 
16164
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16165
     # The compiler can only warn and ignore the option if not recognized
 
16166
     # So say no if there are warnings other than the usual output.
 
16167
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16168
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16169
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16170
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16171
     fi
 
16172
   fi
 
16173
   $rm conftest*
 
16174
 
 
16175
fi
 
16176
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16177
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16178
 
 
16179
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16180
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16181
else
 
16182
    :
 
16183
fi
 
16184
 
 
16185
fi
 
16186
 
 
16187
lt_prog_compiler_wl_GCJ=
 
16188
lt_prog_compiler_pic_GCJ=
 
16189
lt_prog_compiler_static_GCJ=
 
16190
 
 
16191
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16192
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16193
 
 
16194
  if test "$GCC" = yes; then
 
16195
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16196
    lt_prog_compiler_static_GCJ='-static'
 
16197
 
 
16198
    case $host_os in
 
16199
      aix*)
 
16200
      # All AIX code is PIC.
 
16201
      if test "$host_cpu" = ia64; then
 
16202
        # AIX 5 now supports IA64 processor
 
16203
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16204
      fi
 
16205
      ;;
 
16206
 
 
16207
    amigaos*)
 
16208
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16209
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16210
      # like `-m68040'.
 
16211
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16212
      ;;
 
16213
 
 
16214
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16215
      # PIC is the default for these OSes.
 
16216
      ;;
 
16217
 
 
16218
    mingw* | pw32* | os2*)
 
16219
      # This hack is so that the source file can tell whether it is being
 
16220
      # built for inclusion in a dll (and should export symbols for example).
 
16221
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16222
      ;;
 
16223
 
 
16224
    darwin* | rhapsody*)
 
16225
      # PIC is the default on this platform
 
16226
      # Common symbols not allowed in MH_DYLIB files
 
16227
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16228
      ;;
 
16229
 
 
16230
    interix3*)
 
16231
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16232
      # Instead, we relocate shared libraries at runtime.
 
16233
      ;;
 
16234
 
 
16235
    msdosdjgpp*)
 
16236
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16237
      # on systems that don't support them.
 
16238
      lt_prog_compiler_can_build_shared_GCJ=no
 
16239
      enable_shared=no
 
16240
      ;;
 
16241
 
 
16242
    sysv4*MP*)
 
16243
      if test -d /usr/nec; then
 
16244
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16245
      fi
 
16246
      ;;
 
16247
 
 
16248
    hpux*)
 
16249
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16250
      # not for PA HP-UX.
 
16251
      case $host_cpu in
 
16252
      hppa*64*|ia64*)
 
16253
        # +Z the default
 
16254
        ;;
 
16255
      *)
 
16256
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16257
        ;;
 
16258
      esac
 
16259
      ;;
 
16260
 
 
16261
    *)
 
16262
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16263
      ;;
 
16264
    esac
 
16265
  else
 
16266
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16267
    case $host_os in
 
16268
    aix*)
 
16269
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16270
      if test "$host_cpu" = ia64; then
 
16271
        # AIX 5 now supports IA64 processor
 
16272
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16273
      else
 
16274
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16275
      fi
 
16276
      ;;
 
16277
      darwin*)
 
16278
        # PIC is the default on this platform
 
16279
        # Common symbols not allowed in MH_DYLIB files
 
16280
       case $cc_basename in
 
16281
         xlc*)
 
16282
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16283
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16284
         ;;
 
16285
       esac
 
16286
       ;;
 
16287
 
 
16288
    mingw* | pw32* | os2*)
 
16289
      # This hack is so that the source file can tell whether it is being
 
16290
      # built for inclusion in a dll (and should export symbols for example).
 
16291
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16292
      ;;
 
16293
 
 
16294
    hpux9* | hpux10* | hpux11*)
 
16295
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16296
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16297
      # not for PA HP-UX.
 
16298
      case $host_cpu in
 
16299
      hppa*64*|ia64*)
 
16300
        # +Z the default
 
16301
        ;;
 
16302
      *)
 
16303
        lt_prog_compiler_pic_GCJ='+Z'
 
16304
        ;;
 
16305
      esac
 
16306
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16307
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16308
      ;;
 
16309
 
 
16310
    irix5* | irix6* | nonstopux*)
 
16311
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16312
      # PIC (with -KPIC) is the default.
 
16313
      lt_prog_compiler_static_GCJ='-non_shared'
 
16314
      ;;
 
16315
 
 
16316
    newsos6)
 
16317
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16318
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16319
      ;;
 
16320
 
 
16321
    linux* | k*bsd*-gnu)
 
16322
      case $cc_basename in
 
16323
      icc* | ecc*)
 
16324
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16325
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16326
        lt_prog_compiler_static_GCJ='-static'
 
16327
        ;;
 
16328
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16329
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16330
        # which looks to be a dead project)
 
16331
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16332
        lt_prog_compiler_pic_GCJ='-fpic'
 
16333
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16334
        ;;
 
16335
      ccc*)
 
16336
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16337
        # All Alpha code is PIC.
 
16338
        lt_prog_compiler_static_GCJ='-non_shared'
 
16339
        ;;
 
16340
      esac
 
16341
      ;;
 
16342
 
 
16343
    osf3* | osf4* | osf5*)
 
16344
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16345
      # All OSF/1 code is PIC.
 
16346
      lt_prog_compiler_static_GCJ='-non_shared'
 
16347
      ;;
 
16348
 
 
16349
    solaris*)
 
16350
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16351
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16352
      case $cc_basename in
 
16353
      f77* | f90* | f95*)
 
16354
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16355
      *)
 
16356
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16357
      esac
 
16358
      ;;
 
16359
 
 
16360
    sunos4*)
 
16361
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16362
      lt_prog_compiler_pic_GCJ='-PIC'
 
16363
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16364
      ;;
 
16365
 
 
16366
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16367
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16368
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16369
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16370
      ;;
 
16371
 
 
16372
    sysv4*MP*)
 
16373
      if test -d /usr/nec ;then
 
16374
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16375
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16376
      fi
 
16377
      ;;
 
16378
 
 
16379
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16380
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16381
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16382
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16383
      ;;
 
16384
 
 
16385
    unicos*)
 
16386
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16387
      lt_prog_compiler_can_build_shared_GCJ=no
 
16388
      ;;
 
16389
 
 
16390
    uts4*)
 
16391
      lt_prog_compiler_pic_GCJ='-pic'
 
16392
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16393
      ;;
 
16394
 
 
16395
    *)
 
16396
      lt_prog_compiler_can_build_shared_GCJ=no
 
16397
      ;;
 
16398
    esac
 
16399
  fi
 
16400
 
 
16401
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16402
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16403
 
 
16404
#
 
16405
# Check to make sure the PIC flag actually works.
 
16406
#
 
16407
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16408
 
 
16409
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16410
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16411
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16413
else
 
16414
  lt_prog_compiler_pic_works_GCJ=no
 
16415
  ac_outfile=conftest.$ac_objext
 
16416
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16417
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16418
   # Insert the option either (1) after the last *FLAGS variable, or
 
16419
   # (2) before a word containing "conftest.", or (3) at the end.
 
16420
   # Note that $ac_compile itself does not contain backslashes and begins
 
16421
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16422
   # The option is referenced via a variable to avoid confusing sed.
 
16423
   lt_compile=`echo "$ac_compile" | $SED \
 
16424
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16425
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16426
   -e 's:$: $lt_compiler_flag:'`
 
16427
   (eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
 
16428
   (eval "$lt_compile" 2>conftest.err)
 
16429
   ac_status=$?
 
16430
   cat conftest.err >&5
 
16431
   echo "$as_me:16431: \$? = $ac_status" >&5
 
16432
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16433
     # The compiler can only warn and ignore the option if not recognized
 
16434
     # So say no if there are warnings other than the usual output.
 
16435
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16436
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16437
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16438
       lt_prog_compiler_pic_works_GCJ=yes
 
16439
     fi
 
16440
   fi
 
16441
   $rm conftest*
 
16442
 
 
16443
fi
 
16444
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16445
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16446
 
 
16447
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16448
    case $lt_prog_compiler_pic_GCJ in
 
16449
     "" | " "*) ;;
 
16450
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16451
     esac
 
16452
else
 
16453
    lt_prog_compiler_pic_GCJ=
 
16454
     lt_prog_compiler_can_build_shared_GCJ=no
 
16455
fi
 
16456
 
 
16457
fi
 
16458
case $host_os in
 
16459
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16460
  *djgpp*)
 
16461
    lt_prog_compiler_pic_GCJ=
 
16462
    ;;
 
16463
  *)
 
16464
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16465
    ;;
 
16466
esac
 
16467
 
 
16468
#
 
16469
# Check to make sure the static flag actually works.
 
16470
#
 
16471
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16472
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16473
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16474
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16476
else
 
16477
  lt_prog_compiler_static_works_GCJ=no
 
16478
   save_LDFLAGS="$LDFLAGS"
 
16479
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16480
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16481
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16482
     # The linker can only warn and ignore the option if not recognized
 
16483
     # So say no if there are warnings
 
16484
     if test -s conftest.err; then
 
16485
       # Append any errors to the config.log.
 
16486
       cat conftest.err 1>&5
 
16487
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16488
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16489
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16490
         lt_prog_compiler_static_works_GCJ=yes
 
16491
       fi
 
16492
     else
 
16493
       lt_prog_compiler_static_works_GCJ=yes
 
16494
     fi
 
16495
   fi
 
16496
   $rm conftest*
 
16497
   LDFLAGS="$save_LDFLAGS"
 
16498
 
 
16499
fi
 
16500
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16501
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16502
 
 
16503
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16504
    :
 
16505
else
 
16506
    lt_prog_compiler_static_GCJ=
 
16507
fi
 
16508
 
 
16509
 
 
16510
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16511
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16512
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16514
else
 
16515
  lt_cv_prog_compiler_c_o_GCJ=no
 
16516
   $rm -r conftest 2>/dev/null
 
16517
   mkdir conftest
 
16518
   cd conftest
 
16519
   mkdir out
 
16520
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16521
 
 
16522
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16523
   # Insert the option either (1) after the last *FLAGS variable, or
 
16524
   # (2) before a word containing "conftest.", or (3) at the end.
 
16525
   # Note that $ac_compile itself does not contain backslashes and begins
 
16526
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16527
   lt_compile=`echo "$ac_compile" | $SED \
 
16528
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16529
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16530
   -e 's:$: $lt_compiler_flag:'`
 
16531
   (eval echo "\"\$as_me:16531: $lt_compile\"" >&5)
 
16532
   (eval "$lt_compile" 2>out/conftest.err)
 
16533
   ac_status=$?
 
16534
   cat out/conftest.err >&5
 
16535
   echo "$as_me:16535: \$? = $ac_status" >&5
 
16536
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16537
   then
 
16538
     # The compiler can only warn and ignore the option if not recognized
 
16539
     # So say no if there are warnings
 
16540
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16541
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16542
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16543
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16544
     fi
 
16545
   fi
 
16546
   chmod u+w . 2>&5
 
16547
   $rm conftest*
 
16548
   # SGI C++ compiler will create directory out/ii_files/ for
 
16549
   # template instantiation
 
16550
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16551
   $rm out/* && rmdir out
 
16552
   cd ..
 
16553
   rmdir conftest
 
16554
   $rm conftest*
 
16555
 
 
16556
fi
 
16557
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16558
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16559
 
 
16560
 
 
16561
hard_links="nottested"
 
16562
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16563
  # do not overwrite the value of need_locks provided by the user
 
16564
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16565
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16566
  hard_links=yes
 
16567
  $rm conftest*
 
16568
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16569
  touch conftest.a
 
16570
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16571
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16572
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16573
echo "${ECHO_T}$hard_links" >&6; }
 
16574
  if test "$hard_links" = no; then
 
16575
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16576
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16577
    need_locks=warn
 
16578
  fi
 
16579
else
 
16580
  need_locks=no
 
16581
fi
 
16582
 
 
16583
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16584
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16585
 
 
16586
  runpath_var=
 
16587
  allow_undefined_flag_GCJ=
 
16588
  enable_shared_with_static_runtimes_GCJ=no
 
16589
  archive_cmds_GCJ=
 
16590
  archive_expsym_cmds_GCJ=
 
16591
  old_archive_From_new_cmds_GCJ=
 
16592
  old_archive_from_expsyms_cmds_GCJ=
 
16593
  export_dynamic_flag_spec_GCJ=
 
16594
  whole_archive_flag_spec_GCJ=
 
16595
  thread_safe_flag_spec_GCJ=
 
16596
  hardcode_libdir_flag_spec_GCJ=
 
16597
  hardcode_libdir_flag_spec_ld_GCJ=
 
16598
  hardcode_libdir_separator_GCJ=
 
16599
  hardcode_direct_GCJ=no
 
16600
  hardcode_minus_L_GCJ=no
 
16601
  hardcode_shlibpath_var_GCJ=unsupported
 
16602
  link_all_deplibs_GCJ=unknown
 
16603
  hardcode_automatic_GCJ=no
 
16604
  module_cmds_GCJ=
 
16605
  module_expsym_cmds_GCJ=
 
16606
  always_export_symbols_GCJ=no
 
16607
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16608
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16609
  # included in the symbol list
 
16610
  include_expsyms_GCJ=
 
16611
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16612
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16613
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16614
  # as well as any symbol that contains `d'.
 
16615
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16616
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16617
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16618
  # the symbol is explicitly referenced.  Since portable code cannot
 
16619
  # rely on this symbol name, it's probably fine to never include it in
 
16620
  # preloaded symbol tables.
 
16621
  extract_expsyms_cmds=
 
16622
  # Just being paranoid about ensuring that cc_basename is set.
 
16623
  for cc_temp in $compiler""; do
 
16624
  case $cc_temp in
 
16625
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16626
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16627
    \-*) ;;
 
16628
    *) break;;
 
16629
  esac
 
16630
done
 
16631
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16632
 
 
16633
  case $host_os in
 
16634
  cygwin* | mingw* | pw32*)
 
16635
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16636
    # When not using gcc, we currently assume that we are using
 
16637
    # Microsoft Visual C++.
 
16638
    if test "$GCC" != yes; then
 
16639
      with_gnu_ld=no
 
16640
    fi
 
16641
    ;;
 
16642
  interix*)
 
16643
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16644
    with_gnu_ld=yes
 
16645
    ;;
 
16646
  openbsd*)
 
16647
    with_gnu_ld=no
 
16648
    ;;
 
16649
  esac
 
16650
 
 
16651
  ld_shlibs_GCJ=yes
 
16652
  if test "$with_gnu_ld" = yes; then
 
16653
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16654
    wlarc='${wl}'
 
16655
 
 
16656
    # Set some defaults for GNU ld with shared library support. These
 
16657
    # are reset later if shared libraries are not supported. Putting them
 
16658
    # here allows them to be overridden if necessary.
 
16659
    runpath_var=LD_RUN_PATH
 
16660
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16661
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16662
    # ancient GNU ld didn't support --whole-archive et. al.
 
16663
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16664
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16665
      else
 
16666
        whole_archive_flag_spec_GCJ=
 
16667
    fi
 
16668
    supports_anon_versioning=no
 
16669
    case `$LD -v 2>/dev/null` in
 
16670
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16671
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16672
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16673
      *\ 2.11.*) ;; # other 2.11 versions
 
16674
      *) supports_anon_versioning=yes ;;
 
16675
    esac
 
16676
 
 
16677
    # See if GNU ld supports shared libraries.
 
16678
    case $host_os in
 
16679
    aix3* | aix4* | aix5*)
 
16680
      # On AIX/PPC, the GNU linker is very broken
 
16681
      if test "$host_cpu" != ia64; then
 
16682
        ld_shlibs_GCJ=no
 
16683
        cat <<EOF 1>&2
 
16684
 
 
16685
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16686
*** to be unable to reliably create shared libraries on AIX.
 
16687
*** Therefore, libtool is disabling shared libraries support.  If you
 
16688
*** really care for shared libraries, you may want to modify your PATH
 
16689
*** so that a non-GNU linker is found, and then restart.
 
16690
 
 
16691
EOF
 
16692
      fi
 
16693
      ;;
 
16694
 
 
16695
    amigaos*)
 
16696
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
16697
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16698
      hardcode_minus_L_GCJ=yes
 
16699
 
 
16700
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16701
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16702
      # to version 4, is to share data among multiple programs linked
 
16703
      # with the same dynamic library.  Since this doesn't match the
 
16704
      # behavior of shared libraries on other platforms, we can't use
 
16705
      # them.
 
16706
      ld_shlibs_GCJ=no
 
16707
      ;;
 
16708
 
 
16709
    beos*)
 
16710
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16711
        allow_undefined_flag_GCJ=unsupported
 
16712
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16713
        # support --undefined.  This deserves some investigation.  FIXME
 
16714
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16715
      else
 
16716
        ld_shlibs_GCJ=no
 
16717
      fi
 
16718
      ;;
 
16719
 
 
16720
    cygwin* | mingw* | pw32*)
 
16721
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16722
      # as there is no search path for DLLs.
 
16723
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16724
      allow_undefined_flag_GCJ=unsupported
 
16725
      always_export_symbols_GCJ=no
 
16726
      enable_shared_with_static_runtimes_GCJ=yes
 
16727
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16728
 
 
16729
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16730
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16731
        # If the export-symbols file already is a .def file (1st line
 
16732
        # is EXPORTS), use it as is; otherwise, prepend...
 
16733
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16734
          cp $export_symbols $output_objdir/$soname.def;
 
16735
        else
 
16736
          echo EXPORTS > $output_objdir/$soname.def;
 
16737
          cat $export_symbols >> $output_objdir/$soname.def;
 
16738
        fi~
 
16739
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16740
      else
 
16741
        ld_shlibs_GCJ=no
 
16742
      fi
 
16743
      ;;
 
16744
 
 
16745
    interix3*)
 
16746
      hardcode_direct_GCJ=no
 
16747
      hardcode_shlibpath_var_GCJ=no
 
16748
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16749
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16750
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16751
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16752
      # default) and relocated if they conflict, which is a slow very memory
 
16753
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16754
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16755
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16756
      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'
 
16757
      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'
 
16758
      ;;
 
16759
 
 
16760
    linux* | k*bsd*-gnu)
 
16761
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16762
        tmp_addflag=
 
16763
        case $cc_basename,$host_cpu in
 
16764
        pgcc*)                          # Portland Group C compiler
 
16765
          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'
 
16766
          tmp_addflag=' $pic_flag'
 
16767
          ;;
 
16768
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16769
          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'
 
16770
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16771
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16772
          tmp_addflag=' -i_dynamic' ;;
 
16773
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16774
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16775
        ifc* | ifort*)                  # Intel Fortran compiler
 
16776
          tmp_addflag=' -nofor_main' ;;
 
16777
        esac
 
16778
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16779
 
 
16780
        if test $supports_anon_versioning = yes; then
 
16781
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16782
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16783
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16784
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16785
        fi
 
16786
        link_all_deplibs_GCJ=no
 
16787
      else
 
16788
        ld_shlibs_GCJ=no
 
16789
      fi
 
16790
      ;;
 
16791
 
 
16792
    netbsd* | netbsdelf*-gnu)
 
16793
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16794
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16795
        wlarc=
 
16796
      else
 
16797
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16798
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16799
      fi
 
16800
      ;;
 
16801
 
 
16802
    solaris*)
 
16803
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16804
        ld_shlibs_GCJ=no
 
16805
        cat <<EOF 1>&2
 
16806
 
 
16807
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16808
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16809
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16810
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16811
*** your PATH or compiler configuration so that the native linker is
 
16812
*** used, and then restart.
 
16813
 
 
16814
EOF
 
16815
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16816
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16817
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16818
      else
 
16819
        ld_shlibs_GCJ=no
 
16820
      fi
 
16821
      ;;
 
16822
 
 
16823
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16824
      case `$LD -v 2>&1` in
 
16825
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16826
        ld_shlibs_GCJ=no
 
16827
        cat <<_LT_EOF 1>&2
 
16828
 
 
16829
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16830
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16831
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16832
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16833
*** your PATH or compiler configuration so that the native linker is
 
16834
*** used, and then restart.
 
16835
 
 
16836
_LT_EOF
 
16837
        ;;
 
16838
        *)
 
16839
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16840
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16841
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16842
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16843
          else
 
16844
            ld_shlibs_GCJ=no
 
16845
          fi
 
16846
        ;;
 
16847
      esac
 
16848
      ;;
 
16849
 
 
16850
    sunos4*)
 
16851
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16852
      wlarc=
 
16853
      hardcode_direct_GCJ=yes
 
16854
      hardcode_shlibpath_var_GCJ=no
 
16855
      ;;
 
16856
 
 
16857
    *)
 
16858
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16859
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16860
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16861
      else
 
16862
        ld_shlibs_GCJ=no
 
16863
      fi
 
16864
      ;;
 
16865
    esac
 
16866
 
 
16867
    if test "$ld_shlibs_GCJ" = no; then
 
16868
      runpath_var=
 
16869
      hardcode_libdir_flag_spec_GCJ=
 
16870
      export_dynamic_flag_spec_GCJ=
 
16871
      whole_archive_flag_spec_GCJ=
 
16872
    fi
 
16873
  else
 
16874
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16875
    case $host_os in
 
16876
    aix3*)
 
16877
      allow_undefined_flag_GCJ=unsupported
 
16878
      always_export_symbols_GCJ=yes
 
16879
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
16880
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16881
      # are no directories specified by -L.
 
16882
      hardcode_minus_L_GCJ=yes
 
16883
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16884
        # Neither direct hardcoding nor static linking is supported with a
 
16885
        # broken collect2.
 
16886
        hardcode_direct_GCJ=unsupported
 
16887
      fi
 
16888
      ;;
 
16889
 
 
16890
    aix4* | aix5*)
 
16891
      if test "$host_cpu" = ia64; then
 
16892
        # On IA64, the linker does run time linking by default, so we don't
 
16893
        # have to do anything special.
 
16894
        aix_use_runtimelinking=no
 
16895
        exp_sym_flag='-Bexport'
 
16896
        no_entry_flag=""
 
16897
      else
 
16898
        # If we're using GNU nm, then we don't want the "-C" option.
 
16899
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16900
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16901
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16902
        else
 
16903
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16904
        fi
 
16905
        aix_use_runtimelinking=no
 
16906
 
 
16907
        # Test if we are trying to use run time linking or normal
 
16908
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16909
        # need to do runtime linking.
 
16910
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16911
          for ld_flag in $LDFLAGS; do
 
16912
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16913
            aix_use_runtimelinking=yes
 
16914
            break
 
16915
          fi
 
16916
          done
 
16917
          ;;
 
16918
        esac
 
16919
 
 
16920
        exp_sym_flag='-bexport'
 
16921
        no_entry_flag='-bnoentry'
 
16922
      fi
 
16923
 
 
16924
      # When large executables or shared objects are built, AIX ld can
 
16925
      # have problems creating the table of contents.  If linking a library
 
16926
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16927
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16928
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16929
 
 
16930
      archive_cmds_GCJ=''
 
16931
      hardcode_direct_GCJ=yes
 
16932
      hardcode_libdir_separator_GCJ=':'
 
16933
      link_all_deplibs_GCJ=yes
 
16934
 
 
16935
      if test "$GCC" = yes; then
 
16936
        case $host_os in aix4.[012]|aix4.[012].*)
 
16937
        # We only want to do this on AIX 4.2 and lower, the check
 
16938
        # below for broken collect2 doesn't work under 4.3+
 
16939
          collect2name=`${CC} -print-prog-name=collect2`
 
16940
          if test -f "$collect2name" && \
 
16941
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16942
          then
 
16943
          # We have reworked collect2
 
16944
          hardcode_direct_GCJ=yes
 
16945
          else
 
16946
          # We have old collect2
 
16947
          hardcode_direct_GCJ=unsupported
 
16948
          # It fails to find uninstalled libraries when the uninstalled
 
16949
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16950
          # to unsupported forces relinking
 
16951
          hardcode_minus_L_GCJ=yes
 
16952
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16953
          hardcode_libdir_separator_GCJ=
 
16954
          fi
 
16955
          ;;
 
16956
        esac
 
16957
        shared_flag='-shared'
 
16958
        if test "$aix_use_runtimelinking" = yes; then
 
16959
          shared_flag="$shared_flag "'${wl}-G'
 
16960
        fi
 
16961
      else
 
16962
        # not using gcc
 
16963
        if test "$host_cpu" = ia64; then
 
16964
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16965
        # chokes on -Wl,-G. The following line is correct:
 
16966
          shared_flag='-G'
 
16967
        else
 
16968
          if test "$aix_use_runtimelinking" = yes; then
 
16969
            shared_flag='${wl}-G'
 
16970
          else
 
16971
            shared_flag='${wl}-bM:SRE'
 
16972
          fi
 
16973
        fi
 
16974
      fi
 
16975
 
 
16976
      # It seems that -bexpall does not export symbols beginning with
 
16977
      # underscore (_), so it is better to generate a list of symbols to export.
 
16978
      always_export_symbols_GCJ=yes
 
16979
      if test "$aix_use_runtimelinking" = yes; then
 
16980
        # Warning - without using the other runtime loading flags (-brtl),
 
16981
        # -berok will link without error, but may produce a broken library.
 
16982
        allow_undefined_flag_GCJ='-berok'
 
16983
       # Determine the default libpath from the value encoded in an empty executable.
 
16984
       cat >conftest.$ac_ext <<_ACEOF
 
16985
/* confdefs.h.  */
 
16986
_ACEOF
 
16987
cat confdefs.h >>conftest.$ac_ext
 
16988
cat >>conftest.$ac_ext <<_ACEOF
 
16989
/* end confdefs.h.  */
 
16990
 
 
16991
int
 
16992
main ()
 
16993
{
 
16994
 
 
16995
  ;
 
16996
  return 0;
 
16997
}
 
16998
_ACEOF
 
16999
rm -f conftest.$ac_objext conftest$ac_exeext
 
17000
if { (ac_try="$ac_link"
 
17001
case "(($ac_try" in
 
17002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17003
  *) ac_try_echo=$ac_try;;
 
17004
esac
 
17005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17006
  (eval "$ac_link") 2>conftest.er1
 
17007
  ac_status=$?
 
17008
  grep -v '^ *+' conftest.er1 >conftest.err
 
17009
  rm -f conftest.er1
 
17010
  cat conftest.err >&5
 
17011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17012
  (exit $ac_status); } && {
 
17013
         test -z "$ac_c_werror_flag" ||
 
17014
         test ! -s conftest.err
 
17015
       } && test -s conftest$ac_exeext &&
 
17016
       $as_test_x conftest$ac_exeext; then
 
17017
 
 
17018
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17019
}'`
 
17020
# Check for a 64-bit object if we didn't find anything.
 
17021
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; }
 
17022
}'`; fi
 
17023
else
 
17024
  echo "$as_me: failed program was:" >&5
 
17025
sed 's/^/| /' conftest.$ac_ext >&5
 
17026
 
 
17027
 
 
17028
fi
 
17029
 
 
17030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17031
      conftest$ac_exeext conftest.$ac_ext
 
17032
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17033
 
 
17034
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17035
        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"
 
17036
       else
 
17037
        if test "$host_cpu" = ia64; then
 
17038
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17039
          allow_undefined_flag_GCJ="-z nodefs"
 
17040
          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"
 
17041
        else
 
17042
         # Determine the default libpath from the value encoded in an empty executable.
 
17043
         cat >conftest.$ac_ext <<_ACEOF
 
17044
/* confdefs.h.  */
 
17045
_ACEOF
 
17046
cat confdefs.h >>conftest.$ac_ext
 
17047
cat >>conftest.$ac_ext <<_ACEOF
 
17048
/* end confdefs.h.  */
 
17049
 
 
17050
int
 
17051
main ()
 
17052
{
 
17053
 
 
17054
  ;
 
17055
  return 0;
 
17056
}
 
17057
_ACEOF
 
17058
rm -f conftest.$ac_objext conftest$ac_exeext
 
17059
if { (ac_try="$ac_link"
 
17060
case "(($ac_try" in
 
17061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17062
  *) ac_try_echo=$ac_try;;
 
17063
esac
 
17064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17065
  (eval "$ac_link") 2>conftest.er1
 
17066
  ac_status=$?
 
17067
  grep -v '^ *+' conftest.er1 >conftest.err
 
17068
  rm -f conftest.er1
 
17069
  cat conftest.err >&5
 
17070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17071
  (exit $ac_status); } && {
 
17072
         test -z "$ac_c_werror_flag" ||
 
17073
         test ! -s conftest.err
 
17074
       } && test -s conftest$ac_exeext &&
 
17075
       $as_test_x conftest$ac_exeext; then
 
17076
 
 
17077
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17078
}'`
 
17079
# Check for a 64-bit object if we didn't find anything.
 
17080
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; }
 
17081
}'`; fi
 
17082
else
 
17083
  echo "$as_me: failed program was:" >&5
 
17084
sed 's/^/| /' conftest.$ac_ext >&5
 
17085
 
 
17086
 
 
17087
fi
 
17088
 
 
17089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17090
      conftest$ac_exeext conftest.$ac_ext
 
17091
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17092
 
 
17093
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17094
          # Warning - without using the other run time loading flags,
 
17095
          # -berok will link without error, but may produce a broken library.
 
17096
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17097
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17098
          # Exported symbols can be pulled into shared objects from archives
 
17099
          whole_archive_flag_spec_GCJ='$convenience'
 
17100
          archive_cmds_need_lc_GCJ=yes
 
17101
          # This is similar to how AIX traditionally builds its shared libraries.
 
17102
          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'
 
17103
        fi
 
17104
      fi
 
17105
      ;;
 
17106
 
 
17107
    amigaos*)
 
17108
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17109
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17110
      hardcode_minus_L_GCJ=yes
 
17111
      # see comment about different semantics on the GNU ld section
 
17112
      ld_shlibs_GCJ=no
 
17113
      ;;
 
17114
 
 
17115
    bsdi[45]*)
 
17116
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17117
      ;;
 
17118
 
 
17119
    cygwin* | mingw* | pw32*)
 
17120
      # When not using gcc, we currently assume that we are using
 
17121
      # Microsoft Visual C++.
 
17122
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17123
      # no search path for DLLs.
 
17124
      hardcode_libdir_flag_spec_GCJ=' '
 
17125
      allow_undefined_flag_GCJ=unsupported
 
17126
      # Tell ltmain to make .lib files, not .a files.
 
17127
      libext=lib
 
17128
      # Tell ltmain to make .dll files, not .so files.
 
17129
      shrext_cmds=".dll"
 
17130
      # FIXME: Setting linknames here is a bad hack.
 
17131
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17132
      # The linker will automatically build a .lib file if we build a DLL.
 
17133
      old_archive_From_new_cmds_GCJ='true'
 
17134
      # FIXME: Should let the user specify the lib program.
 
17135
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17136
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17137
      enable_shared_with_static_runtimes_GCJ=yes
 
17138
      ;;
 
17139
 
 
17140
    darwin* | rhapsody*)
 
17141
      case $host_os in
 
17142
        rhapsody* | darwin1.[012])
 
17143
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17144
         ;;
 
17145
       *) # Darwin 1.3 on
 
17146
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17147
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17148
         else
 
17149
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17150
             10.[012])
 
17151
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17152
               ;;
 
17153
             10.*)
 
17154
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17155
               ;;
 
17156
           esac
 
17157
         fi
 
17158
         ;;
 
17159
      esac
 
17160
      archive_cmds_need_lc_GCJ=no
 
17161
      hardcode_direct_GCJ=no
 
17162
      hardcode_automatic_GCJ=yes
 
17163
      hardcode_shlibpath_var_GCJ=unsupported
 
17164
      whole_archive_flag_spec_GCJ=''
 
17165
      link_all_deplibs_GCJ=yes
 
17166
    if test "$GCC" = yes ; then
 
17167
        output_verbose_link_cmd='echo'
 
17168
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17169
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17170
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17171
      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}'
 
17172
      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}'
 
17173
    else
 
17174
      case $cc_basename in
 
17175
        xlc*)
 
17176
         output_verbose_link_cmd='echo'
 
17177
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17178
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17179
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17180
         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}'
 
17181
          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}'
 
17182
          ;;
 
17183
       *)
 
17184
         ld_shlibs_GCJ=no
 
17185
          ;;
 
17186
      esac
 
17187
    fi
 
17188
      ;;
 
17189
 
 
17190
    dgux*)
 
17191
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17192
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17193
      hardcode_shlibpath_var_GCJ=no
 
17194
      ;;
 
17195
 
 
17196
    freebsd1*)
 
17197
      ld_shlibs_GCJ=no
 
17198
      ;;
 
17199
 
 
17200
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17201
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17202
    # does not break anything, and helps significantly (at the cost of a little
 
17203
    # extra space).
 
17204
    freebsd2.2*)
 
17205
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17206
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17207
      hardcode_direct_GCJ=yes
 
17208
      hardcode_shlibpath_var_GCJ=no
 
17209
      ;;
 
17210
 
 
17211
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17212
    freebsd2*)
 
17213
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17214
      hardcode_direct_GCJ=yes
 
17215
      hardcode_minus_L_GCJ=yes
 
17216
      hardcode_shlibpath_var_GCJ=no
 
17217
      ;;
 
17218
 
 
17219
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17220
    freebsd* | dragonfly*)
 
17221
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17222
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17223
      hardcode_direct_GCJ=yes
 
17224
      hardcode_shlibpath_var_GCJ=no
 
17225
      ;;
 
17226
 
 
17227
    hpux9*)
 
17228
      if test "$GCC" = yes; then
 
17229
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17230
      else
 
17231
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17232
      fi
 
17233
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17234
      hardcode_libdir_separator_GCJ=:
 
17235
      hardcode_direct_GCJ=yes
 
17236
 
 
17237
      # hardcode_minus_L: Not really in the search PATH,
 
17238
      # but as the default location of the library.
 
17239
      hardcode_minus_L_GCJ=yes
 
17240
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17241
      ;;
 
17242
 
 
17243
    hpux10*)
 
17244
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17245
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17246
      else
 
17247
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17248
      fi
 
17249
      if test "$with_gnu_ld" = no; then
 
17250
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17251
        hardcode_libdir_separator_GCJ=:
 
17252
 
 
17253
        hardcode_direct_GCJ=yes
 
17254
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17255
 
 
17256
        # hardcode_minus_L: Not really in the search PATH,
 
17257
        # but as the default location of the library.
 
17258
        hardcode_minus_L_GCJ=yes
 
17259
      fi
 
17260
      ;;
 
17261
 
 
17262
    hpux11*)
 
17263
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17264
        case $host_cpu in
 
17265
        hppa*64*)
 
17266
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17267
          ;;
 
17268
        ia64*)
 
17269
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17270
          ;;
 
17271
        *)
 
17272
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17273
          ;;
 
17274
        esac
 
17275
      else
 
17276
        case $host_cpu in
 
17277
        hppa*64*)
 
17278
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17279
          ;;
 
17280
        ia64*)
 
17281
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17282
          ;;
 
17283
        *)
 
17284
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17285
          ;;
 
17286
        esac
 
17287
      fi
 
17288
      if test "$with_gnu_ld" = no; then
 
17289
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17290
        hardcode_libdir_separator_GCJ=:
 
17291
 
 
17292
        case $host_cpu in
 
17293
        hppa*64*|ia64*)
 
17294
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17295
          hardcode_direct_GCJ=no
 
17296
          hardcode_shlibpath_var_GCJ=no
 
17297
          ;;
 
17298
        *)
 
17299
          hardcode_direct_GCJ=yes
 
17300
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17301
 
 
17302
          # hardcode_minus_L: Not really in the search PATH,
 
17303
          # but as the default location of the library.
 
17304
          hardcode_minus_L_GCJ=yes
 
17305
          ;;
 
17306
        esac
 
17307
      fi
 
17308
      ;;
 
17309
 
 
17310
    irix5* | irix6* | nonstopux*)
 
17311
      if test "$GCC" = yes; then
 
17312
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17313
      else
 
17314
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17315
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17316
      fi
 
17317
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17318
      hardcode_libdir_separator_GCJ=:
 
17319
      link_all_deplibs_GCJ=yes
 
17320
      ;;
 
17321
 
 
17322
    netbsd* | netbsdelf*-gnu)
 
17323
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17324
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17325
      else
 
17326
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17327
      fi
 
17328
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17329
      hardcode_direct_GCJ=yes
 
17330
      hardcode_shlibpath_var_GCJ=no
 
17331
      ;;
 
17332
 
 
17333
    newsos6)
 
17334
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17335
      hardcode_direct_GCJ=yes
 
17336
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17337
      hardcode_libdir_separator_GCJ=:
 
17338
      hardcode_shlibpath_var_GCJ=no
 
17339
      ;;
 
17340
 
 
17341
    openbsd*)
 
17342
      hardcode_direct_GCJ=yes
 
17343
      hardcode_shlibpath_var_GCJ=no
 
17344
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17345
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17346
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17347
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17348
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17349
      else
 
17350
       case $host_os in
 
17351
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17352
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17353
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17354
           ;;
 
17355
         *)
 
17356
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17357
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17358
           ;;
 
17359
       esac
 
17360
      fi
 
17361
      ;;
 
17362
 
 
17363
    os2*)
 
17364
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17365
      hardcode_minus_L_GCJ=yes
 
17366
      allow_undefined_flag_GCJ=unsupported
 
17367
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
17368
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17369
      ;;
 
17370
 
 
17371
    osf3*)
 
17372
      if test "$GCC" = yes; then
 
17373
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17374
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17375
      else
 
17376
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17377
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17378
      fi
 
17379
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17380
      hardcode_libdir_separator_GCJ=:
 
17381
      ;;
 
17382
 
 
17383
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17384
      if test "$GCC" = yes; then
 
17385
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17386
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17387
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17388
      else
 
17389
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17390
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17391
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17392
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17393
 
 
17394
        # Both c and cxx compiler support -rpath directly
 
17395
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17396
      fi
 
17397
      hardcode_libdir_separator_GCJ=:
 
17398
      ;;
 
17399
 
 
17400
    solaris*)
 
17401
      no_undefined_flag_GCJ=' -z text'
 
17402
      if test "$GCC" = yes; then
 
17403
        wlarc='${wl}'
 
17404
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17405
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17406
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17407
      else
 
17408
        wlarc=''
 
17409
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17410
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17411
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17412
      fi
 
17413
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17414
      hardcode_shlibpath_var_GCJ=no
 
17415
      case $host_os in
 
17416
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17417
      *)
 
17418
        # The compiler driver will combine linker options so we
 
17419
        # cannot just pass the convience library names through
 
17420
        # without $wl, iff we do not link with $LD.
 
17421
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17422
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17423
        case $wlarc in
 
17424
        '')
 
17425
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17426
        *)
 
17427
          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' ;;
 
17428
        esac ;;
 
17429
      esac
 
17430
      link_all_deplibs_GCJ=yes
 
17431
      ;;
 
17432
 
 
17433
    sunos4*)
 
17434
      if test "x$host_vendor" = xsequent; then
 
17435
        # Use $CC to link under sequent, because it throws in some extra .o
 
17436
        # files that make .init and .fini sections work.
 
17437
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17438
      else
 
17439
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17440
      fi
 
17441
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17442
      hardcode_direct_GCJ=yes
 
17443
      hardcode_minus_L_GCJ=yes
 
17444
      hardcode_shlibpath_var_GCJ=no
 
17445
      ;;
 
17446
 
 
17447
    sysv4)
 
17448
      case $host_vendor in
 
17449
        sni)
 
17450
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17451
          hardcode_direct_GCJ=yes # is this really true???
 
17452
        ;;
 
17453
        siemens)
 
17454
          ## LD is ld it makes a PLAMLIB
 
17455
          ## CC just makes a GrossModule.
 
17456
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17457
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17458
          hardcode_direct_GCJ=no
 
17459
        ;;
 
17460
        motorola)
 
17461
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17462
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17463
        ;;
 
17464
      esac
 
17465
      runpath_var='LD_RUN_PATH'
 
17466
      hardcode_shlibpath_var_GCJ=no
 
17467
      ;;
 
17468
 
 
17469
    sysv4.3*)
 
17470
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17471
      hardcode_shlibpath_var_GCJ=no
 
17472
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17473
      ;;
 
17474
 
 
17475
    sysv4*MP*)
 
17476
      if test -d /usr/nec; then
 
17477
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17478
        hardcode_shlibpath_var_GCJ=no
 
17479
        runpath_var=LD_RUN_PATH
 
17480
        hardcode_runpath_var=yes
 
17481
        ld_shlibs_GCJ=yes
 
17482
      fi
 
17483
      ;;
 
17484
 
 
17485
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17486
      no_undefined_flag_GCJ='${wl}-z,text'
 
17487
      archive_cmds_need_lc_GCJ=no
 
17488
      hardcode_shlibpath_var_GCJ=no
 
17489
      runpath_var='LD_RUN_PATH'
 
17490
 
 
17491
      if test "$GCC" = yes; then
 
17492
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17493
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17494
      else
 
17495
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17496
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17497
      fi
 
17498
      ;;
 
17499
 
 
17500
    sysv5* | sco3.2v5* | sco5v6*)
 
17501
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17502
      # link with -lc, and that would cause any symbols used from libc to
 
17503
      # always be unresolved, which means just about no library would
 
17504
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17505
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17506
      # as -z defs.
 
17507
      no_undefined_flag_GCJ='${wl}-z,text'
 
17508
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17509
      archive_cmds_need_lc_GCJ=no
 
17510
      hardcode_shlibpath_var_GCJ=no
 
17511
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17512
      hardcode_libdir_separator_GCJ=':'
 
17513
      link_all_deplibs_GCJ=yes
 
17514
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17515
      runpath_var='LD_RUN_PATH'
 
17516
 
 
17517
      if test "$GCC" = yes; then
 
17518
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17519
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17520
      else
 
17521
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17522
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17523
      fi
 
17524
      ;;
 
17525
 
 
17526
    uts4*)
 
17527
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17528
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17529
      hardcode_shlibpath_var_GCJ=no
 
17530
      ;;
 
17531
 
 
17532
    *)
 
17533
      ld_shlibs_GCJ=no
 
17534
      ;;
 
17535
    esac
 
17536
  fi
 
17537
 
 
17538
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17539
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17540
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17541
 
 
17542
#
 
17543
# Do we need to explicitly link libc?
 
17544
#
 
17545
case "x$archive_cmds_need_lc_GCJ" in
 
17546
x|xyes)
 
17547
  # Assume -lc should be added
 
17548
  archive_cmds_need_lc_GCJ=yes
 
17549
 
 
17550
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17551
    case $archive_cmds_GCJ in
 
17552
    *'~'*)
 
17553
      # FIXME: we may have to deal with multi-command sequences.
 
17554
      ;;
 
17555
    '$CC '*)
 
17556
      # Test whether the compiler implicitly links with -lc since on some
 
17557
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17558
      # to ld, don't add -lc before -lgcc.
 
17559
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17560
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17561
      $rm conftest*
 
17562
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17563
 
 
17564
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17565
  (eval $ac_compile) 2>&5
 
17566
  ac_status=$?
 
17567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17568
  (exit $ac_status); } 2>conftest.err; then
 
17569
        soname=conftest
 
17570
        lib=conftest
 
17571
        libobjs=conftest.$ac_objext
 
17572
        deplibs=
 
17573
        wl=$lt_prog_compiler_wl_GCJ
 
17574
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17575
        compiler_flags=-v
 
17576
        linker_flags=-v
 
17577
        verstring=
 
17578
        output_objdir=.
 
17579
        libname=conftest
 
17580
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17581
        allow_undefined_flag_GCJ=
 
17582
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17583
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17584
  ac_status=$?
 
17585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17586
  (exit $ac_status); }
 
17587
        then
 
17588
          archive_cmds_need_lc_GCJ=no
 
17589
        else
 
17590
          archive_cmds_need_lc_GCJ=yes
 
17591
        fi
 
17592
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17593
      else
 
17594
        cat conftest.err 1>&5
 
17595
      fi
 
17596
      $rm conftest*
 
17597
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17598
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
17599
      ;;
 
17600
    esac
 
17601
  fi
 
17602
  ;;
 
17603
esac
 
17604
 
 
17605
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17606
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17607
library_names_spec=
 
17608
libname_spec='lib$name'
 
17609
soname_spec=
 
17610
shrext_cmds=".so"
 
17611
postinstall_cmds=
 
17612
postuninstall_cmds=
 
17613
finish_cmds=
 
17614
finish_eval=
 
17615
shlibpath_var=
 
17616
shlibpath_overrides_runpath=unknown
 
17617
version_type=none
 
17618
dynamic_linker="$host_os ld.so"
 
17619
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17620
if test "$GCC" = yes; then
 
17621
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17622
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17623
    # if the path contains ";" then we assume it to be the separator
 
17624
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17625
    # assumed that no part of a normal pathname contains ";" but that should
 
17626
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17627
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17628
  else
 
17629
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17630
  fi
 
17631
else
 
17632
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17633
fi
 
17634
need_lib_prefix=unknown
 
17635
hardcode_into_libs=no
 
17636
 
 
17637
# when you set need_version to no, make sure it does not cause -set_version
 
17638
# flags to be left without arguments
 
17639
need_version=unknown
 
17640
 
 
17641
case $host_os in
 
17642
aix3*)
 
17643
  version_type=linux
 
17644
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17645
  shlibpath_var=LIBPATH
 
17646
 
 
17647
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17648
  soname_spec='${libname}${release}${shared_ext}$major'
 
17649
  ;;
 
17650
 
 
17651
aix4* | aix5*)
 
17652
  version_type=linux
 
17653
  need_lib_prefix=no
 
17654
  need_version=no
 
17655
  hardcode_into_libs=yes
 
17656
  if test "$host_cpu" = ia64; then
 
17657
    # AIX 5 supports IA64
 
17658
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17659
    shlibpath_var=LD_LIBRARY_PATH
 
17660
  else
 
17661
    # With GCC up to 2.95.x, collect2 would create an import file
 
17662
    # for dependence libraries.  The import file would start with
 
17663
    # the line `#! .'.  This would cause the generated library to
 
17664
    # depend on `.', always an invalid library.  This was fixed in
 
17665
    # development snapshots of GCC prior to 3.0.
 
17666
    case $host_os in
 
17667
      aix4 | aix4.[01] | aix4.[01].*)
 
17668
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17669
           echo ' yes '
 
17670
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17671
        :
 
17672
      else
 
17673
        can_build_shared=no
 
17674
      fi
 
17675
      ;;
 
17676
    esac
 
17677
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17678
    # soname into executable. Probably we can add versioning support to
 
17679
    # collect2, so additional links can be useful in future.
 
17680
    if test "$aix_use_runtimelinking" = yes; then
 
17681
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17682
      # instead of lib<name>.a to let people know that these are not
 
17683
      # typical AIX shared libraries.
 
17684
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17685
    else
 
17686
      # We preserve .a as extension for shared libraries through AIX4.2
 
17687
      # and later when we are not doing run time linking.
 
17688
      library_names_spec='${libname}${release}.a $libname.a'
 
17689
      soname_spec='${libname}${release}${shared_ext}$major'
 
17690
    fi
 
17691
    shlibpath_var=LIBPATH
 
17692
  fi
 
17693
  ;;
 
17694
 
 
17695
amigaos*)
 
17696
  library_names_spec='$libname.ixlibrary $libname.a'
 
17697
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17698
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
17699
  ;;
 
17700
 
 
17701
beos*)
 
17702
  library_names_spec='${libname}${shared_ext}'
 
17703
  dynamic_linker="$host_os ld.so"
 
17704
  shlibpath_var=LIBRARY_PATH
 
17705
  ;;
 
17706
 
 
17707
bsdi[45]*)
 
17708
  version_type=linux
 
17709
  need_version=no
 
17710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17711
  soname_spec='${libname}${release}${shared_ext}$major'
 
17712
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17713
  shlibpath_var=LD_LIBRARY_PATH
 
17714
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17715
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17716
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17717
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17718
  # libtool to hard-code these into programs
 
17719
  ;;
 
17720
 
 
17721
cygwin* | mingw* | pw32*)
 
17722
  version_type=windows
 
17723
  shrext_cmds=".dll"
 
17724
  need_version=no
 
17725
  need_lib_prefix=no
 
17726
 
 
17727
  case $GCC,$host_os in
 
17728
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17729
    library_names_spec='$libname.dll.a'
 
17730
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17731
    postinstall_cmds='base_file=`basename \${file}`~
 
17732
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17733
      dldir=$destdir/`dirname \$dlpath`~
 
17734
      test -d \$dldir || mkdir -p \$dldir~
 
17735
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17736
      chmod a+x \$dldir/$dlname'
 
17737
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17738
      dlpath=$dir/\$dldll~
 
17739
       $rm \$dlpath'
 
17740
    shlibpath_overrides_runpath=yes
 
17741
 
 
17742
    case $host_os in
 
17743
    cygwin*)
 
17744
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17745
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17746
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17747
      ;;
 
17748
    mingw*)
 
17749
      # MinGW DLLs use traditional 'lib' prefix
 
17750
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17751
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17752
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17753
        # It is most probably a Windows format PATH printed by
 
17754
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17755
        # path with ; separators, and with drive letters. We can handle the
 
17756
        # drive letters (cygwin fileutils understands them), so leave them,
 
17757
        # especially as we might pass files found there to a mingw objdump,
 
17758
        # which wouldn't understand a cygwinified path. Ahh.
 
17759
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17760
      else
 
17761
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17762
      fi
 
17763
      ;;
 
17764
    pw32*)
 
17765
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17766
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17767
      ;;
 
17768
    esac
 
17769
    ;;
 
17770
 
 
17771
  *)
 
17772
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17773
    ;;
 
17774
  esac
 
17775
  dynamic_linker='Win32 ld.exe'
 
17776
  # FIXME: first we should search . and the directory the executable is in
 
17777
  shlibpath_var=PATH
 
17778
  ;;
 
17779
 
 
17780
darwin* | rhapsody*)
 
17781
  dynamic_linker="$host_os dyld"
 
17782
  version_type=darwin
 
17783
  need_lib_prefix=no
 
17784
  need_version=no
 
17785
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17786
  soname_spec='${libname}${release}${major}$shared_ext'
 
17787
  shlibpath_overrides_runpath=yes
 
17788
  shlibpath_var=DYLD_LIBRARY_PATH
 
17789
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17790
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17791
  if test "$GCC" = yes; then
 
17792
    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"`
 
17793
  else
 
17794
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17795
  fi
 
17796
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17797
  ;;
 
17798
 
 
17799
dgux*)
 
17800
  version_type=linux
 
17801
  need_lib_prefix=no
 
17802
  need_version=no
 
17803
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17804
  soname_spec='${libname}${release}${shared_ext}$major'
 
17805
  shlibpath_var=LD_LIBRARY_PATH
 
17806
  ;;
 
17807
 
 
17808
freebsd1*)
 
17809
  dynamic_linker=no
 
17810
  ;;
 
17811
 
 
17812
freebsd* | dragonfly*)
 
17813
  # DragonFly does not have aout.  When/if they implement a new
 
17814
  # versioning mechanism, adjust this.
 
17815
  if test -x /usr/bin/objformat; then
 
17816
    objformat=`/usr/bin/objformat`
 
17817
  else
 
17818
    case $host_os in
 
17819
    freebsd[123]*) objformat=aout ;;
 
17820
    *) objformat=elf ;;
 
17821
    esac
 
17822
  fi
 
17823
  version_type=freebsd-$objformat
 
17824
  case $version_type in
 
17825
    freebsd-elf*)
 
17826
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17827
      need_version=no
 
17828
      need_lib_prefix=no
 
17829
      ;;
 
17830
    freebsd-*)
 
17831
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17832
      need_version=yes
 
17833
      ;;
 
17834
  esac
 
17835
  shlibpath_var=LD_LIBRARY_PATH
 
17836
  case $host_os in
 
17837
  freebsd2*)
 
17838
    shlibpath_overrides_runpath=yes
 
17839
    ;;
 
17840
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17841
    shlibpath_overrides_runpath=yes
 
17842
    hardcode_into_libs=yes
 
17843
    ;;
 
17844
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17845
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17846
    shlibpath_overrides_runpath=no
 
17847
    hardcode_into_libs=yes
 
17848
    ;;
 
17849
  freebsd*) # from 4.6 on
 
17850
    shlibpath_overrides_runpath=yes
 
17851
    hardcode_into_libs=yes
 
17852
    ;;
 
17853
  esac
 
17854
  ;;
 
17855
 
 
17856
gnu*)
 
17857
  version_type=linux
 
17858
  need_lib_prefix=no
 
17859
  need_version=no
 
17860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17861
  soname_spec='${libname}${release}${shared_ext}$major'
 
17862
  shlibpath_var=LD_LIBRARY_PATH
 
17863
  hardcode_into_libs=yes
 
17864
  ;;
 
17865
 
 
17866
hpux9* | hpux10* | hpux11*)
 
17867
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17868
  # link against other versions.
 
17869
  version_type=sunos
 
17870
  need_lib_prefix=no
 
17871
  need_version=no
 
17872
  case $host_cpu in
 
17873
  ia64*)
 
17874
    shrext_cmds='.so'
 
17875
    hardcode_into_libs=yes
 
17876
    dynamic_linker="$host_os dld.so"
 
17877
    shlibpath_var=LD_LIBRARY_PATH
 
17878
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17879
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17880
    soname_spec='${libname}${release}${shared_ext}$major'
 
17881
    if test "X$HPUX_IA64_MODE" = X32; then
 
17882
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17883
    else
 
17884
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17885
    fi
 
17886
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17887
    ;;
 
17888
   hppa*64*)
 
17889
     shrext_cmds='.sl'
 
17890
     hardcode_into_libs=yes
 
17891
     dynamic_linker="$host_os dld.sl"
 
17892
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17893
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17894
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17895
     soname_spec='${libname}${release}${shared_ext}$major'
 
17896
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17897
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17898
     ;;
 
17899
   *)
 
17900
    shrext_cmds='.sl'
 
17901
    dynamic_linker="$host_os dld.sl"
 
17902
    shlibpath_var=SHLIB_PATH
 
17903
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17904
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17905
    soname_spec='${libname}${release}${shared_ext}$major'
 
17906
    ;;
 
17907
  esac
 
17908
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17909
  postinstall_cmds='chmod 555 $lib'
 
17910
  ;;
 
17911
 
 
17912
interix3*)
 
17913
  version_type=linux
 
17914
  need_lib_prefix=no
 
17915
  need_version=no
 
17916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17917
  soname_spec='${libname}${release}${shared_ext}$major'
 
17918
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17919
  shlibpath_var=LD_LIBRARY_PATH
 
17920
  shlibpath_overrides_runpath=no
 
17921
  hardcode_into_libs=yes
 
17922
  ;;
 
17923
 
 
17924
irix5* | irix6* | nonstopux*)
 
17925
  case $host_os in
 
17926
    nonstopux*) version_type=nonstopux ;;
 
17927
    *)
 
17928
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17929
                version_type=linux
 
17930
        else
 
17931
                version_type=irix
 
17932
        fi ;;
 
17933
  esac
 
17934
  need_lib_prefix=no
 
17935
  need_version=no
 
17936
  soname_spec='${libname}${release}${shared_ext}$major'
 
17937
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17938
  case $host_os in
 
17939
  irix5* | nonstopux*)
 
17940
    libsuff= shlibsuff=
 
17941
    ;;
 
17942
  *)
 
17943
    case $LD in # libtool.m4 will add one of these switches to LD
 
17944
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17945
      libsuff= shlibsuff= libmagic=32-bit;;
 
17946
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17947
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17948
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17949
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17950
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17951
    esac
 
17952
    ;;
 
17953
  esac
 
17954
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17955
  shlibpath_overrides_runpath=no
 
17956
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17957
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17958
  hardcode_into_libs=yes
 
17959
  ;;
 
17960
 
 
17961
# No shared lib support for Linux oldld, aout, or coff.
 
17962
linux*oldld* | linux*aout* | linux*coff*)
 
17963
  dynamic_linker=no
 
17964
  ;;
 
17965
 
 
17966
# This must be Linux ELF.
 
17967
linux* | k*bsd*-gnu)
 
17968
  version_type=linux
 
17969
  need_lib_prefix=no
 
17970
  need_version=no
 
17971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17972
  soname_spec='${libname}${release}${shared_ext}$major'
 
17973
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17974
  shlibpath_var=LD_LIBRARY_PATH
 
17975
  shlibpath_overrides_runpath=no
 
17976
  # This implies no fast_install, which is unacceptable.
 
17977
  # Some rework will be needed to allow for fast_install
 
17978
  # before this can be enabled.
 
17979
  hardcode_into_libs=yes
 
17980
 
 
17981
  # Append ld.so.conf contents to the search path
 
17982
  if test -f /etc/ld.so.conf; then
 
17983
    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' ' '`
 
17984
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17985
  fi
 
17986
 
 
17987
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17988
  # powerpc, because MkLinux only supported shared libraries with the
 
17989
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17990
  # most powerpc-linux boxes support dynamic linking these days and
 
17991
  # people can always --disable-shared, the test was removed, and we
 
17992
  # assume the GNU/Linux dynamic linker is in use.
 
17993
  dynamic_linker='GNU/Linux ld.so'
 
17994
  ;;
 
17995
 
 
17996
netbsdelf*-gnu)
 
17997
  version_type=linux
 
17998
  need_lib_prefix=no
 
17999
  need_version=no
 
18000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18001
  soname_spec='${libname}${release}${shared_ext}$major'
 
18002
  shlibpath_var=LD_LIBRARY_PATH
 
18003
  shlibpath_overrides_runpath=no
 
18004
  hardcode_into_libs=yes
 
18005
  dynamic_linker='NetBSD ld.elf_so'
 
18006
  ;;
 
18007
 
 
18008
netbsd*)
 
18009
  version_type=sunos
 
18010
  need_lib_prefix=no
 
18011
  need_version=no
 
18012
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18013
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18014
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18015
    dynamic_linker='NetBSD (a.out) ld.so'
 
18016
  else
 
18017
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18018
    soname_spec='${libname}${release}${shared_ext}$major'
 
18019
    dynamic_linker='NetBSD ld.elf_so'
 
18020
  fi
 
18021
  shlibpath_var=LD_LIBRARY_PATH
 
18022
  shlibpath_overrides_runpath=yes
 
18023
  hardcode_into_libs=yes
 
18024
  ;;
 
18025
 
 
18026
newsos6)
 
18027
  version_type=linux
 
18028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18029
  shlibpath_var=LD_LIBRARY_PATH
 
18030
  shlibpath_overrides_runpath=yes
 
18031
  ;;
 
18032
 
 
18033
nto-qnx*)
 
18034
  version_type=linux
 
18035
  need_lib_prefix=no
 
18036
  need_version=no
 
18037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18038
  soname_spec='${libname}${release}${shared_ext}$major'
 
18039
  shlibpath_var=LD_LIBRARY_PATH
 
18040
  shlibpath_overrides_runpath=yes
 
18041
  ;;
 
18042
 
 
18043
openbsd*)
 
18044
  version_type=sunos
 
18045
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18046
  need_lib_prefix=no
 
18047
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18048
  case $host_os in
 
18049
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18050
    *)                         need_version=no  ;;
 
18051
  esac
 
18052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18053
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18054
  shlibpath_var=LD_LIBRARY_PATH
 
18055
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18056
    case $host_os in
 
18057
      openbsd2.[89] | openbsd2.[89].*)
 
18058
        shlibpath_overrides_runpath=no
 
18059
        ;;
 
18060
      *)
 
18061
        shlibpath_overrides_runpath=yes
 
18062
        ;;
 
18063
      esac
 
18064
  else
 
18065
    shlibpath_overrides_runpath=yes
 
18066
  fi
 
18067
  ;;
 
18068
 
 
18069
os2*)
 
18070
  libname_spec='$name'
 
18071
  shrext_cmds=".dll"
 
18072
  need_lib_prefix=no
 
18073
  library_names_spec='$libname${shared_ext} $libname.a'
 
18074
  dynamic_linker='OS/2 ld.exe'
 
18075
  shlibpath_var=LIBPATH
 
18076
  ;;
 
18077
 
 
18078
osf3* | osf4* | osf5*)
 
18079
  version_type=osf
 
18080
  need_lib_prefix=no
 
18081
  need_version=no
 
18082
  soname_spec='${libname}${release}${shared_ext}$major'
 
18083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18084
  shlibpath_var=LD_LIBRARY_PATH
 
18085
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18086
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18087
  ;;
 
18088
 
 
18089
solaris*)
 
18090
  version_type=linux
 
18091
  need_lib_prefix=no
 
18092
  need_version=no
 
18093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18094
  soname_spec='${libname}${release}${shared_ext}$major'
 
18095
  shlibpath_var=LD_LIBRARY_PATH
 
18096
  shlibpath_overrides_runpath=yes
 
18097
  hardcode_into_libs=yes
 
18098
  # ldd complains unless libraries are executable
 
18099
  postinstall_cmds='chmod +x $lib'
 
18100
  ;;
 
18101
 
 
18102
sunos4*)
 
18103
  version_type=sunos
 
18104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18105
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18106
  shlibpath_var=LD_LIBRARY_PATH
 
18107
  shlibpath_overrides_runpath=yes
 
18108
  if test "$with_gnu_ld" = yes; then
 
18109
    need_lib_prefix=no
 
18110
  fi
 
18111
  need_version=yes
 
18112
  ;;
 
18113
 
 
18114
sysv4 | sysv4.3*)
 
18115
  version_type=linux
 
18116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18117
  soname_spec='${libname}${release}${shared_ext}$major'
 
18118
  shlibpath_var=LD_LIBRARY_PATH
 
18119
  case $host_vendor in
 
18120
    sni)
 
18121
      shlibpath_overrides_runpath=no
 
18122
      need_lib_prefix=no
 
18123
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18124
      runpath_var=LD_RUN_PATH
 
18125
      ;;
 
18126
    siemens)
 
18127
      need_lib_prefix=no
 
18128
      ;;
 
18129
    motorola)
 
18130
      need_lib_prefix=no
 
18131
      need_version=no
 
18132
      shlibpath_overrides_runpath=no
 
18133
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18134
      ;;
 
18135
  esac
 
18136
  ;;
 
18137
 
 
18138
sysv4*MP*)
 
18139
  if test -d /usr/nec ;then
 
18140
    version_type=linux
 
18141
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18142
    soname_spec='$libname${shared_ext}.$major'
 
18143
    shlibpath_var=LD_LIBRARY_PATH
 
18144
  fi
 
18145
  ;;
 
18146
 
 
18147
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18148
  version_type=freebsd-elf
 
18149
  need_lib_prefix=no
 
18150
  need_version=no
 
18151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18152
  soname_spec='${libname}${release}${shared_ext}$major'
 
18153
  shlibpath_var=LD_LIBRARY_PATH
 
18154
  hardcode_into_libs=yes
 
18155
  if test "$with_gnu_ld" = yes; then
 
18156
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18157
    shlibpath_overrides_runpath=no
 
18158
  else
 
18159
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18160
    shlibpath_overrides_runpath=yes
 
18161
    case $host_os in
 
18162
      sco3.2v5*)
 
18163
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18164
        ;;
 
18165
    esac
 
18166
  fi
 
18167
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18168
  ;;
 
18169
 
 
18170
uts4*)
 
18171
  version_type=linux
 
18172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18173
  soname_spec='${libname}${release}${shared_ext}$major'
 
18174
  shlibpath_var=LD_LIBRARY_PATH
 
18175
  ;;
 
18176
 
 
18177
*)
 
18178
  dynamic_linker=no
 
18179
  ;;
 
18180
esac
 
18181
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18182
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18183
test "$dynamic_linker" = no && can_build_shared=no
 
18184
 
 
18185
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18186
if test "$GCC" = yes; then
 
18187
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18188
fi
 
18189
 
 
18190
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18191
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18192
hardcode_action_GCJ=
 
18193
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18194
   test -n "$runpath_var_GCJ" || \
 
18195
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18196
 
 
18197
  # We can hardcode non-existant directories.
 
18198
  if test "$hardcode_direct_GCJ" != no &&
 
18199
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18200
     # have to relink, otherwise we might link with an installed library
 
18201
     # when we should be linking with a yet-to-be-installed one
 
18202
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18203
     test "$hardcode_minus_L_GCJ" != no; then
 
18204
    # Linking always hardcodes the temporary library directory.
 
18205
    hardcode_action_GCJ=relink
 
18206
  else
 
18207
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18208
    hardcode_action_GCJ=immediate
 
18209
  fi
 
18210
else
 
18211
  # We cannot hardcode anything, or else we can only hardcode existing
 
18212
  # directories.
 
18213
  hardcode_action_GCJ=unsupported
 
18214
fi
 
18215
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18216
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18217
 
 
18218
if test "$hardcode_action_GCJ" = relink; then
 
18219
  # Fast installation is not supported
 
18220
  enable_fast_install=no
 
18221
elif test "$shlibpath_overrides_runpath" = yes ||
 
18222
     test "$enable_shared" = no; then
 
18223
  # Fast installation is not necessary
 
18224
  enable_fast_install=needless
 
18225
fi
 
18226
 
 
18227
 
 
18228
# The else clause should only fire when bootstrapping the
 
18229
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18230
# with your package, and you will get complaints that there are
 
18231
# no rules to generate ltmain.sh.
 
18232
if test -f "$ltmain"; then
 
18233
  # See if we are running on zsh, and set the options which allow our commands through
 
18234
  # without removal of \ escapes.
 
18235
  if test -n "${ZSH_VERSION+set}" ; then
 
18236
    setopt NO_GLOB_SUBST
 
18237
  fi
 
18238
  # Now quote all the things that may contain metacharacters while being
 
18239
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18240
  # variables and quote the copies for generation of the libtool script.
 
18241
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18242
    SED SHELL STRIP \
 
18243
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18244
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18245
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18246
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18247
    lt_cv_sys_global_symbol_to_c_name_address \
 
18248
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18249
    old_postinstall_cmds old_postuninstall_cmds \
 
18250
    compiler_GCJ \
 
18251
    CC_GCJ \
 
18252
    LD_GCJ \
 
18253
    lt_prog_compiler_wl_GCJ \
 
18254
    lt_prog_compiler_pic_GCJ \
 
18255
    lt_prog_compiler_static_GCJ \
 
18256
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18257
    export_dynamic_flag_spec_GCJ \
 
18258
    thread_safe_flag_spec_GCJ \
 
18259
    whole_archive_flag_spec_GCJ \
 
18260
    enable_shared_with_static_runtimes_GCJ \
 
18261
    old_archive_cmds_GCJ \
 
18262
    old_archive_from_new_cmds_GCJ \
 
18263
    predep_objects_GCJ \
 
18264
    postdep_objects_GCJ \
 
18265
    predeps_GCJ \
 
18266
    postdeps_GCJ \
 
18267
    compiler_lib_search_path_GCJ \
 
18268
    archive_cmds_GCJ \
 
18269
    archive_expsym_cmds_GCJ \
 
18270
    postinstall_cmds_GCJ \
 
18271
    postuninstall_cmds_GCJ \
 
18272
    old_archive_from_expsyms_cmds_GCJ \
 
18273
    allow_undefined_flag_GCJ \
 
18274
    no_undefined_flag_GCJ \
 
18275
    export_symbols_cmds_GCJ \
 
18276
    hardcode_libdir_flag_spec_GCJ \
 
18277
    hardcode_libdir_flag_spec_ld_GCJ \
 
18278
    hardcode_libdir_separator_GCJ \
 
18279
    hardcode_automatic_GCJ \
 
18280
    module_cmds_GCJ \
 
18281
    module_expsym_cmds_GCJ \
 
18282
    lt_cv_prog_compiler_c_o_GCJ \
 
18283
    exclude_expsyms_GCJ \
 
18284
    include_expsyms_GCJ; do
 
18285
 
 
18286
    case $var in
 
18287
    old_archive_cmds_GCJ | \
 
18288
    old_archive_from_new_cmds_GCJ | \
 
18289
    archive_cmds_GCJ | \
 
18290
    archive_expsym_cmds_GCJ | \
 
18291
    module_cmds_GCJ | \
 
18292
    module_expsym_cmds_GCJ | \
 
18293
    old_archive_from_expsyms_cmds_GCJ | \
 
18294
    export_symbols_cmds_GCJ | \
 
18295
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18296
    postinstall_cmds | postuninstall_cmds | \
 
18297
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18298
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18299
      # Double-quote double-evaled strings.
 
18300
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18301
      ;;
 
18302
    *)
 
18303
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18304
      ;;
 
18305
    esac
 
18306
  done
 
18307
 
 
18308
  case $lt_echo in
 
18309
  *'\$0 --fallback-echo"')
 
18310
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18311
    ;;
 
18312
  esac
 
18313
 
 
18314
cfgfile="$ofile"
 
18315
 
 
18316
  cat <<__EOF__ >> "$cfgfile"
 
18317
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18318
 
 
18319
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18320
 
 
18321
# Shell to use when invoking shell scripts.
 
18322
SHELL=$lt_SHELL
 
18323
 
 
18324
# Whether or not to build shared libraries.
 
18325
build_libtool_libs=$enable_shared
 
18326
 
 
18327
# Whether or not to build static libraries.
 
18328
build_old_libs=$enable_static
 
18329
 
 
18330
# Whether or not to add -lc for building shared libraries.
 
18331
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18332
 
 
18333
# Whether or not to disallow shared libs when runtime libs are static
 
18334
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18335
 
 
18336
# Whether or not to optimize for fast installation.
 
18337
fast_install=$enable_fast_install
 
18338
 
 
18339
# The host system.
 
18340
host_alias=$host_alias
 
18341
host=$host
 
18342
host_os=$host_os
 
18343
 
 
18344
# The build system.
 
18345
build_alias=$build_alias
 
18346
build=$build
 
18347
build_os=$build_os
 
18348
 
 
18349
# An echo program that does not interpret backslashes.
 
18350
echo=$lt_echo
 
18351
 
 
18352
# The archiver.
 
18353
AR=$lt_AR
 
18354
AR_FLAGS=$lt_AR_FLAGS
 
18355
 
 
18356
# A C compiler.
 
18357
LTCC=$lt_LTCC
 
18358
 
 
18359
# LTCC compiler flags.
 
18360
LTCFLAGS=$lt_LTCFLAGS
 
18361
 
 
18362
# A language-specific compiler.
 
18363
CC=$lt_compiler_GCJ
 
18364
 
 
18365
# Is the compiler the GNU C compiler?
 
18366
with_gcc=$GCC_GCJ
 
18367
 
 
18368
# An ERE matcher.
 
18369
EGREP=$lt_EGREP
 
18370
 
 
18371
# The linker used to build libraries.
 
18372
LD=$lt_LD_GCJ
 
18373
 
 
18374
# Whether we need hard or soft links.
 
18375
LN_S=$lt_LN_S
 
18376
 
 
18377
# A BSD-compatible nm program.
 
18378
NM=$lt_NM
 
18379
 
 
18380
# A symbol stripping program
 
18381
STRIP=$lt_STRIP
 
18382
 
 
18383
# Used to examine libraries when file_magic_cmd begins "file"
 
18384
MAGIC_CMD=$MAGIC_CMD
 
18385
 
 
18386
# Used on cygwin: DLL creation program.
 
18387
DLLTOOL="$DLLTOOL"
 
18388
 
 
18389
# Used on cygwin: object dumper.
 
18390
OBJDUMP="$OBJDUMP"
 
18391
 
 
18392
# Used on cygwin: assembler.
 
18393
AS="$AS"
 
18394
 
 
18395
# The name of the directory that contains temporary libtool files.
 
18396
objdir=$objdir
 
18397
 
 
18398
# How to create reloadable object files.
 
18399
reload_flag=$lt_reload_flag
 
18400
reload_cmds=$lt_reload_cmds
 
18401
 
 
18402
# How to pass a linker flag through the compiler.
 
18403
wl=$lt_lt_prog_compiler_wl_GCJ
 
18404
 
 
18405
# Object file suffix (normally "o").
 
18406
objext="$ac_objext"
 
18407
 
 
18408
# Old archive suffix (normally "a").
 
18409
libext="$libext"
 
18410
 
 
18411
# Shared library suffix (normally ".so").
 
18412
shrext_cmds='$shrext_cmds'
 
18413
 
 
18414
# Executable file suffix (normally "").
 
18415
exeext="$exeext"
 
18416
 
 
18417
# Additional compiler flags for building library objects.
 
18418
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18419
pic_mode=$pic_mode
 
18420
 
 
18421
# What is the maximum length of a command?
 
18422
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18423
 
 
18424
# Does compiler simultaneously support -c and -o options?
 
18425
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18426
 
 
18427
# Must we lock files when doing compilation?
 
18428
need_locks=$lt_need_locks
 
18429
 
 
18430
# Do we need the lib prefix for modules?
 
18431
need_lib_prefix=$need_lib_prefix
 
18432
 
 
18433
# Do we need a version for libraries?
 
18434
need_version=$need_version
 
18435
 
 
18436
# Whether dlopen is supported.
 
18437
dlopen_support=$enable_dlopen
 
18438
 
 
18439
# Whether dlopen of programs is supported.
 
18440
dlopen_self=$enable_dlopen_self
 
18441
 
 
18442
# Whether dlopen of statically linked programs is supported.
 
18443
dlopen_self_static=$enable_dlopen_self_static
 
18444
 
 
18445
# Compiler flag to prevent dynamic linking.
 
18446
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18447
 
 
18448
# Compiler flag to turn off builtin functions.
 
18449
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18450
 
 
18451
# Compiler flag to allow reflexive dlopens.
 
18452
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18453
 
 
18454
# Compiler flag to generate shared objects directly from archives.
 
18455
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18456
 
 
18457
# Compiler flag to generate thread-safe objects.
 
18458
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18459
 
 
18460
# Library versioning type.
 
18461
version_type=$version_type
 
18462
 
 
18463
# Format of library name prefix.
 
18464
libname_spec=$lt_libname_spec
 
18465
 
 
18466
# List of archive names.  First name is the real one, the rest are links.
 
18467
# The last name is the one that the linker finds with -lNAME.
 
18468
library_names_spec=$lt_library_names_spec
 
18469
 
 
18470
# The coded name of the library, if different from the real name.
 
18471
soname_spec=$lt_soname_spec
 
18472
 
 
18473
# Commands used to build and install an old-style archive.
 
18474
RANLIB=$lt_RANLIB
 
18475
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18476
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18477
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18478
 
 
18479
# Create an old-style archive from a shared archive.
 
18480
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18481
 
 
18482
# Create a temporary old-style archive to link instead of a shared archive.
 
18483
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18484
 
 
18485
# Commands used to build and install a shared archive.
 
18486
archive_cmds=$lt_archive_cmds_GCJ
 
18487
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18488
postinstall_cmds=$lt_postinstall_cmds
 
18489
postuninstall_cmds=$lt_postuninstall_cmds
 
18490
 
 
18491
# Commands used to build a loadable module (assumed same as above if empty)
 
18492
module_cmds=$lt_module_cmds_GCJ
 
18493
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18494
 
 
18495
# Commands to strip libraries.
 
18496
old_striplib=$lt_old_striplib
 
18497
striplib=$lt_striplib
 
18498
 
 
18499
# Dependencies to place before the objects being linked to create a
 
18500
# shared library.
 
18501
predep_objects=$lt_predep_objects_GCJ
 
18502
 
 
18503
# Dependencies to place after the objects being linked to create a
 
18504
# shared library.
 
18505
postdep_objects=$lt_postdep_objects_GCJ
 
18506
 
 
18507
# Dependencies to place before the objects being linked to create a
 
18508
# shared library.
 
18509
predeps=$lt_predeps_GCJ
 
18510
 
 
18511
# Dependencies to place after the objects being linked to create a
 
18512
# shared library.
 
18513
postdeps=$lt_postdeps_GCJ
 
18514
 
 
18515
# The library search path used internally by the compiler when linking
 
18516
# a shared library.
 
18517
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18518
 
 
18519
# Method to check whether dependent libraries are shared objects.
 
18520
deplibs_check_method=$lt_deplibs_check_method
 
18521
 
 
18522
# Command to use when deplibs_check_method == file_magic.
 
18523
file_magic_cmd=$lt_file_magic_cmd
 
18524
 
 
18525
# Flag that allows shared libraries with undefined symbols to be built.
 
18526
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18527
 
 
18528
# Flag that forces no undefined symbols.
 
18529
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18530
 
 
18531
# Commands used to finish a libtool library installation in a directory.
 
18532
finish_cmds=$lt_finish_cmds
 
18533
 
 
18534
# Same as above, but a single script fragment to be evaled but not shown.
 
18535
finish_eval=$lt_finish_eval
 
18536
 
 
18537
# Take the output of nm and produce a listing of raw symbols and C names.
 
18538
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18539
 
 
18540
# Transform the output of nm in a proper C declaration
 
18541
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18542
 
 
18543
# Transform the output of nm in a C name address pair
 
18544
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18545
 
 
18546
# This is the shared library runtime path variable.
 
18547
runpath_var=$runpath_var
 
18548
 
 
18549
# This is the shared library path variable.
 
18550
shlibpath_var=$shlibpath_var
 
18551
 
 
18552
# Is shlibpath searched before the hard-coded library search path?
 
18553
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18554
 
 
18555
# How to hardcode a shared library path into an executable.
 
18556
hardcode_action=$hardcode_action_GCJ
 
18557
 
 
18558
# Whether we should hardcode library paths into libraries.
 
18559
hardcode_into_libs=$hardcode_into_libs
 
18560
 
 
18561
# Flag to hardcode \$libdir into a binary during linking.
 
18562
# This must work even if \$libdir does not exist.
 
18563
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18564
 
 
18565
# If ld is used when linking, flag to hardcode \$libdir into
 
18566
# a binary during linking. This must work even if \$libdir does
 
18567
# not exist.
 
18568
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18569
 
 
18570
# Whether we need a single -rpath flag with a separated argument.
 
18571
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18572
 
 
18573
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18574
# resulting binary.
 
18575
hardcode_direct=$hardcode_direct_GCJ
 
18576
 
 
18577
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18578
# resulting binary.
 
18579
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18580
 
 
18581
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18582
# the resulting binary.
 
18583
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18584
 
 
18585
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18586
# and all subsequent libraries and executables linked against it.
 
18587
hardcode_automatic=$hardcode_automatic_GCJ
 
18588
 
 
18589
# Variables whose values should be saved in libtool wrapper scripts and
 
18590
# restored at relink time.
 
18591
variables_saved_for_relink="$variables_saved_for_relink"
 
18592
 
 
18593
# Whether libtool must link a program against all its dependency libraries.
 
18594
link_all_deplibs=$link_all_deplibs_GCJ
 
18595
 
 
18596
# Compile-time system search path for libraries
 
18597
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18598
 
 
18599
# Run-time system search path for libraries
 
18600
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18601
 
 
18602
# Fix the shell variable \$srcfile for the compiler.
 
18603
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18604
 
 
18605
# Set to yes if exported symbols are required.
 
18606
always_export_symbols=$always_export_symbols_GCJ
 
18607
 
 
18608
# The commands to list exported symbols.
 
18609
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18610
 
 
18611
# The commands to extract the exported symbol list from a shared archive.
 
18612
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18613
 
 
18614
# Symbols that should not be listed in the preloaded symbols.
 
18615
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18616
 
 
18617
# Symbols that must always be exported.
 
18618
include_expsyms=$lt_include_expsyms_GCJ
 
18619
 
 
18620
# ### END LIBTOOL TAG CONFIG: $tagname
 
18621
 
 
18622
__EOF__
 
18623
 
 
18624
 
 
18625
else
 
18626
  # If there is no Makefile yet, we rely on a make rule to execute
 
18627
  # `config.status --recheck' to rerun these tests and create the
 
18628
  # libtool script then.
 
18629
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18630
  if test -f "$ltmain_in"; then
 
18631
    test -f Makefile && make "$ltmain"
 
18632
  fi
 
18633
fi
 
18634
 
 
18635
 
 
18636
ac_ext=c
 
18637
ac_cpp='$CPP $CPPFLAGS'
 
18638
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18639
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18640
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18641
 
 
18642
CC="$lt_save_CC"
 
18643
 
 
18644
        else
 
18645
          tagname=""
 
18646
        fi
 
18647
        ;;
 
18648
 
 
18649
      RC)
 
18650
 
 
18651
 
 
18652
# Source file extension for RC test sources.
 
18653
ac_ext=rc
 
18654
 
 
18655
# Object file extension for compiled RC test sources.
 
18656
objext=o
 
18657
objext_RC=$objext
 
18658
 
 
18659
# Code to be used in simple compile tests
 
18660
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18661
 
 
18662
# Code to be used in simple link tests
 
18663
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18664
 
 
18665
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18666
 
 
18667
# If no C compiler was specified, use CC.
 
18668
LTCC=${LTCC-"$CC"}
 
18669
 
 
18670
# If no C compiler flags were specified, use CFLAGS.
 
18671
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18672
 
 
18673
# Allow CC to be a program name with arguments.
 
18674
compiler=$CC
 
18675
 
 
18676
 
 
18677
# save warnings/boilerplate of simple test code
 
18678
ac_outfile=conftest.$ac_objext
 
18679
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18680
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18681
_lt_compiler_boilerplate=`cat conftest.err`
 
18682
$rm conftest*
 
18683
 
 
18684
ac_outfile=conftest.$ac_objext
 
18685
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18686
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18687
_lt_linker_boilerplate=`cat conftest.err`
 
18688
$rm conftest*
 
18689
 
 
18690
 
 
18691
# Allow CC to be a program name with arguments.
 
18692
lt_save_CC="$CC"
 
18693
CC=${RC-"windres"}
 
18694
compiler=$CC
 
18695
compiler_RC=$CC
 
18696
for cc_temp in $compiler""; do
 
18697
  case $cc_temp in
 
18698
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18699
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18700
    \-*) ;;
 
18701
    *) break;;
 
18702
  esac
 
18703
done
 
18704
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18705
 
 
18706
lt_cv_prog_compiler_c_o_RC=yes
 
18707
 
 
18708
# The else clause should only fire when bootstrapping the
 
18709
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18710
# with your package, and you will get complaints that there are
 
18711
# no rules to generate ltmain.sh.
 
18712
if test -f "$ltmain"; then
 
18713
  # See if we are running on zsh, and set the options which allow our commands through
 
18714
  # without removal of \ escapes.
 
18715
  if test -n "${ZSH_VERSION+set}" ; then
 
18716
    setopt NO_GLOB_SUBST
 
18717
  fi
 
18718
  # Now quote all the things that may contain metacharacters while being
 
18719
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18720
  # variables and quote the copies for generation of the libtool script.
 
18721
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18722
    SED SHELL STRIP \
 
18723
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18724
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18725
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18726
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18727
    lt_cv_sys_global_symbol_to_c_name_address \
 
18728
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18729
    old_postinstall_cmds old_postuninstall_cmds \
 
18730
    compiler_RC \
 
18731
    CC_RC \
 
18732
    LD_RC \
 
18733
    lt_prog_compiler_wl_RC \
 
18734
    lt_prog_compiler_pic_RC \
 
18735
    lt_prog_compiler_static_RC \
 
18736
    lt_prog_compiler_no_builtin_flag_RC \
 
18737
    export_dynamic_flag_spec_RC \
 
18738
    thread_safe_flag_spec_RC \
 
18739
    whole_archive_flag_spec_RC \
 
18740
    enable_shared_with_static_runtimes_RC \
 
18741
    old_archive_cmds_RC \
 
18742
    old_archive_from_new_cmds_RC \
 
18743
    predep_objects_RC \
 
18744
    postdep_objects_RC \
 
18745
    predeps_RC \
 
18746
    postdeps_RC \
 
18747
    compiler_lib_search_path_RC \
 
18748
    archive_cmds_RC \
 
18749
    archive_expsym_cmds_RC \
 
18750
    postinstall_cmds_RC \
 
18751
    postuninstall_cmds_RC \
 
18752
    old_archive_from_expsyms_cmds_RC \
 
18753
    allow_undefined_flag_RC \
 
18754
    no_undefined_flag_RC \
 
18755
    export_symbols_cmds_RC \
 
18756
    hardcode_libdir_flag_spec_RC \
 
18757
    hardcode_libdir_flag_spec_ld_RC \
 
18758
    hardcode_libdir_separator_RC \
 
18759
    hardcode_automatic_RC \
 
18760
    module_cmds_RC \
 
18761
    module_expsym_cmds_RC \
 
18762
    lt_cv_prog_compiler_c_o_RC \
 
18763
    exclude_expsyms_RC \
 
18764
    include_expsyms_RC; do
 
18765
 
 
18766
    case $var in
 
18767
    old_archive_cmds_RC | \
 
18768
    old_archive_from_new_cmds_RC | \
 
18769
    archive_cmds_RC | \
 
18770
    archive_expsym_cmds_RC | \
 
18771
    module_cmds_RC | \
 
18772
    module_expsym_cmds_RC | \
 
18773
    old_archive_from_expsyms_cmds_RC | \
 
18774
    export_symbols_cmds_RC | \
 
18775
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18776
    postinstall_cmds | postuninstall_cmds | \
 
18777
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18778
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18779
      # Double-quote double-evaled strings.
 
18780
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18781
      ;;
 
18782
    *)
 
18783
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18784
      ;;
 
18785
    esac
 
18786
  done
 
18787
 
 
18788
  case $lt_echo in
 
18789
  *'\$0 --fallback-echo"')
 
18790
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18791
    ;;
 
18792
  esac
 
18793
 
 
18794
cfgfile="$ofile"
 
18795
 
 
18796
  cat <<__EOF__ >> "$cfgfile"
 
18797
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18798
 
 
18799
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18800
 
 
18801
# Shell to use when invoking shell scripts.
 
18802
SHELL=$lt_SHELL
 
18803
 
 
18804
# Whether or not to build shared libraries.
 
18805
build_libtool_libs=$enable_shared
 
18806
 
 
18807
# Whether or not to build static libraries.
 
18808
build_old_libs=$enable_static
 
18809
 
 
18810
# Whether or not to add -lc for building shared libraries.
 
18811
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18812
 
 
18813
# Whether or not to disallow shared libs when runtime libs are static
 
18814
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18815
 
 
18816
# Whether or not to optimize for fast installation.
 
18817
fast_install=$enable_fast_install
 
18818
 
 
18819
# The host system.
 
18820
host_alias=$host_alias
 
18821
host=$host
 
18822
host_os=$host_os
 
18823
 
 
18824
# The build system.
 
18825
build_alias=$build_alias
 
18826
build=$build
 
18827
build_os=$build_os
 
18828
 
 
18829
# An echo program that does not interpret backslashes.
 
18830
echo=$lt_echo
 
18831
 
 
18832
# The archiver.
 
18833
AR=$lt_AR
 
18834
AR_FLAGS=$lt_AR_FLAGS
 
18835
 
 
18836
# A C compiler.
 
18837
LTCC=$lt_LTCC
 
18838
 
 
18839
# LTCC compiler flags.
 
18840
LTCFLAGS=$lt_LTCFLAGS
 
18841
 
 
18842
# A language-specific compiler.
 
18843
CC=$lt_compiler_RC
 
18844
 
 
18845
# Is the compiler the GNU C compiler?
 
18846
with_gcc=$GCC_RC
 
18847
 
 
18848
# An ERE matcher.
 
18849
EGREP=$lt_EGREP
 
18850
 
 
18851
# The linker used to build libraries.
 
18852
LD=$lt_LD_RC
 
18853
 
 
18854
# Whether we need hard or soft links.
 
18855
LN_S=$lt_LN_S
 
18856
 
 
18857
# A BSD-compatible nm program.
 
18858
NM=$lt_NM
 
18859
 
 
18860
# A symbol stripping program
 
18861
STRIP=$lt_STRIP
 
18862
 
 
18863
# Used to examine libraries when file_magic_cmd begins "file"
 
18864
MAGIC_CMD=$MAGIC_CMD
 
18865
 
 
18866
# Used on cygwin: DLL creation program.
 
18867
DLLTOOL="$DLLTOOL"
 
18868
 
 
18869
# Used on cygwin: object dumper.
 
18870
OBJDUMP="$OBJDUMP"
 
18871
 
 
18872
# Used on cygwin: assembler.
 
18873
AS="$AS"
 
18874
 
 
18875
# The name of the directory that contains temporary libtool files.
 
18876
objdir=$objdir
 
18877
 
 
18878
# How to create reloadable object files.
 
18879
reload_flag=$lt_reload_flag
 
18880
reload_cmds=$lt_reload_cmds
 
18881
 
 
18882
# How to pass a linker flag through the compiler.
 
18883
wl=$lt_lt_prog_compiler_wl_RC
 
18884
 
 
18885
# Object file suffix (normally "o").
 
18886
objext="$ac_objext"
 
18887
 
 
18888
# Old archive suffix (normally "a").
 
18889
libext="$libext"
 
18890
 
 
18891
# Shared library suffix (normally ".so").
 
18892
shrext_cmds='$shrext_cmds'
 
18893
 
 
18894
# Executable file suffix (normally "").
 
18895
exeext="$exeext"
 
18896
 
 
18897
# Additional compiler flags for building library objects.
 
18898
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18899
pic_mode=$pic_mode
 
18900
 
 
18901
# What is the maximum length of a command?
 
18902
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18903
 
 
18904
# Does compiler simultaneously support -c and -o options?
 
18905
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18906
 
 
18907
# Must we lock files when doing compilation?
 
18908
need_locks=$lt_need_locks
 
18909
 
 
18910
# Do we need the lib prefix for modules?
 
18911
need_lib_prefix=$need_lib_prefix
 
18912
 
 
18913
# Do we need a version for libraries?
 
18914
need_version=$need_version
 
18915
 
 
18916
# Whether dlopen is supported.
 
18917
dlopen_support=$enable_dlopen
 
18918
 
 
18919
# Whether dlopen of programs is supported.
 
18920
dlopen_self=$enable_dlopen_self
 
18921
 
 
18922
# Whether dlopen of statically linked programs is supported.
 
18923
dlopen_self_static=$enable_dlopen_self_static
 
18924
 
 
18925
# Compiler flag to prevent dynamic linking.
 
18926
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18927
 
 
18928
# Compiler flag to turn off builtin functions.
 
18929
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18930
 
 
18931
# Compiler flag to allow reflexive dlopens.
 
18932
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18933
 
 
18934
# Compiler flag to generate shared objects directly from archives.
 
18935
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18936
 
 
18937
# Compiler flag to generate thread-safe objects.
 
18938
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18939
 
 
18940
# Library versioning type.
 
18941
version_type=$version_type
 
18942
 
 
18943
# Format of library name prefix.
 
18944
libname_spec=$lt_libname_spec
 
18945
 
 
18946
# List of archive names.  First name is the real one, the rest are links.
 
18947
# The last name is the one that the linker finds with -lNAME.
 
18948
library_names_spec=$lt_library_names_spec
 
18949
 
 
18950
# The coded name of the library, if different from the real name.
 
18951
soname_spec=$lt_soname_spec
 
18952
 
 
18953
# Commands used to build and install an old-style archive.
 
18954
RANLIB=$lt_RANLIB
 
18955
old_archive_cmds=$lt_old_archive_cmds_RC
 
18956
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18957
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18958
 
 
18959
# Create an old-style archive from a shared archive.
 
18960
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18961
 
 
18962
# Create a temporary old-style archive to link instead of a shared archive.
 
18963
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18964
 
 
18965
# Commands used to build and install a shared archive.
 
18966
archive_cmds=$lt_archive_cmds_RC
 
18967
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18968
postinstall_cmds=$lt_postinstall_cmds
 
18969
postuninstall_cmds=$lt_postuninstall_cmds
 
18970
 
 
18971
# Commands used to build a loadable module (assumed same as above if empty)
 
18972
module_cmds=$lt_module_cmds_RC
 
18973
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18974
 
 
18975
# Commands to strip libraries.
 
18976
old_striplib=$lt_old_striplib
 
18977
striplib=$lt_striplib
 
18978
 
 
18979
# Dependencies to place before the objects being linked to create a
 
18980
# shared library.
 
18981
predep_objects=$lt_predep_objects_RC
 
18982
 
 
18983
# Dependencies to place after the objects being linked to create a
 
18984
# shared library.
 
18985
postdep_objects=$lt_postdep_objects_RC
 
18986
 
 
18987
# Dependencies to place before the objects being linked to create a
 
18988
# shared library.
 
18989
predeps=$lt_predeps_RC
 
18990
 
 
18991
# Dependencies to place after the objects being linked to create a
 
18992
# shared library.
 
18993
postdeps=$lt_postdeps_RC
 
18994
 
 
18995
# The library search path used internally by the compiler when linking
 
18996
# a shared library.
 
18997
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18998
 
 
18999
# Method to check whether dependent libraries are shared objects.
 
19000
deplibs_check_method=$lt_deplibs_check_method
 
19001
 
 
19002
# Command to use when deplibs_check_method == file_magic.
 
19003
file_magic_cmd=$lt_file_magic_cmd
 
19004
 
 
19005
# Flag that allows shared libraries with undefined symbols to be built.
 
19006
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19007
 
 
19008
# Flag that forces no undefined symbols.
 
19009
no_undefined_flag=$lt_no_undefined_flag_RC
 
19010
 
 
19011
# Commands used to finish a libtool library installation in a directory.
 
19012
finish_cmds=$lt_finish_cmds
 
19013
 
 
19014
# Same as above, but a single script fragment to be evaled but not shown.
 
19015
finish_eval=$lt_finish_eval
 
19016
 
 
19017
# Take the output of nm and produce a listing of raw symbols and C names.
 
19018
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19019
 
 
19020
# Transform the output of nm in a proper C declaration
 
19021
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19022
 
 
19023
# Transform the output of nm in a C name address pair
 
19024
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19025
 
 
19026
# This is the shared library runtime path variable.
 
19027
runpath_var=$runpath_var
 
19028
 
 
19029
# This is the shared library path variable.
 
19030
shlibpath_var=$shlibpath_var
 
19031
 
 
19032
# Is shlibpath searched before the hard-coded library search path?
 
19033
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19034
 
 
19035
# How to hardcode a shared library path into an executable.
 
19036
hardcode_action=$hardcode_action_RC
 
19037
 
 
19038
# Whether we should hardcode library paths into libraries.
 
19039
hardcode_into_libs=$hardcode_into_libs
 
19040
 
 
19041
# Flag to hardcode \$libdir into a binary during linking.
 
19042
# This must work even if \$libdir does not exist.
 
19043
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19044
 
 
19045
# If ld is used when linking, flag to hardcode \$libdir into
 
19046
# a binary during linking. This must work even if \$libdir does
 
19047
# not exist.
 
19048
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19049
 
 
19050
# Whether we need a single -rpath flag with a separated argument.
 
19051
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19052
 
 
19053
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19054
# resulting binary.
 
19055
hardcode_direct=$hardcode_direct_RC
 
19056
 
 
19057
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19058
# resulting binary.
 
19059
hardcode_minus_L=$hardcode_minus_L_RC
 
19060
 
 
19061
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19062
# the resulting binary.
 
19063
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19064
 
 
19065
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19066
# and all subsequent libraries and executables linked against it.
 
19067
hardcode_automatic=$hardcode_automatic_RC
 
19068
 
 
19069
# Variables whose values should be saved in libtool wrapper scripts and
 
19070
# restored at relink time.
 
19071
variables_saved_for_relink="$variables_saved_for_relink"
 
19072
 
 
19073
# Whether libtool must link a program against all its dependency libraries.
 
19074
link_all_deplibs=$link_all_deplibs_RC
 
19075
 
 
19076
# Compile-time system search path for libraries
 
19077
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19078
 
 
19079
# Run-time system search path for libraries
 
19080
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19081
 
 
19082
# Fix the shell variable \$srcfile for the compiler.
 
19083
fix_srcfile_path="$fix_srcfile_path_RC"
 
19084
 
 
19085
# Set to yes if exported symbols are required.
 
19086
always_export_symbols=$always_export_symbols_RC
 
19087
 
 
19088
# The commands to list exported symbols.
 
19089
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19090
 
 
19091
# The commands to extract the exported symbol list from a shared archive.
 
19092
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19093
 
 
19094
# Symbols that should not be listed in the preloaded symbols.
 
19095
exclude_expsyms=$lt_exclude_expsyms_RC
 
19096
 
 
19097
# Symbols that must always be exported.
 
19098
include_expsyms=$lt_include_expsyms_RC
 
19099
 
 
19100
# ### END LIBTOOL TAG CONFIG: $tagname
 
19101
 
 
19102
__EOF__
 
19103
 
 
19104
 
 
19105
else
 
19106
  # If there is no Makefile yet, we rely on a make rule to execute
 
19107
  # `config.status --recheck' to rerun these tests and create the
 
19108
  # libtool script then.
 
19109
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19110
  if test -f "$ltmain_in"; then
 
19111
    test -f Makefile && make "$ltmain"
 
19112
  fi
 
19113
fi
 
19114
 
 
19115
 
 
19116
ac_ext=c
 
19117
ac_cpp='$CPP $CPPFLAGS'
 
19118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19121
 
 
19122
CC="$lt_save_CC"
 
19123
 
 
19124
        ;;
 
19125
 
 
19126
      *)
 
19127
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19128
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19129
   { (exit 1); exit 1; }; }
 
19130
        ;;
 
19131
      esac
 
19132
 
 
19133
      # Append the new tag name to the list of available tags.
 
19134
      if test -n "$tagname" ; then
 
19135
      available_tags="$available_tags $tagname"
 
19136
    fi
 
19137
    fi
 
19138
  done
 
19139
  IFS="$lt_save_ifs"
 
19140
 
 
19141
  # Now substitute the updated list of available tags.
 
19142
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19143
    mv "${ofile}T" "$ofile"
 
19144
    chmod +x "$ofile"
 
19145
  else
 
19146
    rm -f "${ofile}T"
 
19147
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19148
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19149
   { (exit 1); exit 1; }; }
 
19150
  fi
 
19151
fi
 
19152
 
 
19153
 
 
19154
 
 
19155
# This can be used to rebuild libtool when needed
 
19156
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19157
 
 
19158
# Always use our own libtool.
 
19159
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19160
 
 
19161
# Prevent multiple expansion
 
19162
 
 
19163
 
 
19164
 
 
19165
 
 
19166
 
 
19167
 
 
19168
 
 
19169
 
 
19170
 
 
19171
 
 
19172
 
 
19173
 
 
19174
 
 
19175
 
 
19176
 
 
19177
 
 
19178
 
 
19179
 
 
19180
 
 
19181
 
 
19182
ac_ext=c
 
19183
ac_cpp='$CPP $CPPFLAGS'
 
19184
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19185
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19186
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19187
if test -n "$ac_tool_prefix"; then
 
19188
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
19189
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
19190
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19191
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19192
if test "${ac_cv_prog_CC+set}" = set; then
 
19193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19194
else
 
19195
  if test -n "$CC"; then
 
19196
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19197
else
 
19198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19199
for as_dir in $PATH
 
19200
do
 
19201
  IFS=$as_save_IFS
 
19202
  test -z "$as_dir" && as_dir=.
 
19203
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19204
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19205
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
19206
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19207
    break 2
 
19208
  fi
 
19209
done
 
19210
done
 
19211
IFS=$as_save_IFS
 
19212
 
 
19213
fi
 
19214
fi
 
19215
CC=$ac_cv_prog_CC
 
19216
if test -n "$CC"; then
 
19217
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19218
echo "${ECHO_T}$CC" >&6; }
 
19219
else
 
19220
  { echo "$as_me:$LINENO: result: no" >&5
 
19221
echo "${ECHO_T}no" >&6; }
 
19222
fi
 
19223
 
 
19224
 
 
19225
fi
 
19226
if test -z "$ac_cv_prog_CC"; then
 
19227
  ac_ct_CC=$CC
 
19228
  # Extract the first word of "gcc", so it can be a program name with args.
 
19229
set dummy gcc; ac_word=$2
 
19230
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19231
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19232
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19234
else
 
19235
  if test -n "$ac_ct_CC"; then
 
19236
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19237
else
 
19238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19239
for as_dir in $PATH
 
19240
do
 
19241
  IFS=$as_save_IFS
 
19242
  test -z "$as_dir" && as_dir=.
 
19243
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19244
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19245
    ac_cv_prog_ac_ct_CC="gcc"
 
19246
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19247
    break 2
 
19248
  fi
 
19249
done
 
19250
done
 
19251
IFS=$as_save_IFS
 
19252
 
 
19253
fi
 
19254
fi
 
19255
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19256
if test -n "$ac_ct_CC"; then
 
19257
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19258
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
19259
else
 
19260
  { echo "$as_me:$LINENO: result: no" >&5
 
19261
echo "${ECHO_T}no" >&6; }
 
19262
fi
 
19263
 
 
19264
  if test "x$ac_ct_CC" = x; then
 
19265
    CC=""
 
19266
  else
 
19267
    case $cross_compiling:$ac_tool_warned in
 
19268
yes:)
 
19269
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
19270
whose name does not start with the host triplet.  If you think this
 
19271
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
19272
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
19273
whose name does not start with the host triplet.  If you think this
 
19274
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
19275
ac_tool_warned=yes ;;
 
19276
esac
 
19277
    CC=$ac_ct_CC
 
19278
  fi
 
19279
else
 
19280
  CC="$ac_cv_prog_CC"
 
19281
fi
 
19282
 
 
19283
if test -z "$CC"; then
 
19284
          if test -n "$ac_tool_prefix"; then
 
19285
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
19286
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
19287
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19289
if test "${ac_cv_prog_CC+set}" = set; then
 
19290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19291
else
 
19292
  if test -n "$CC"; then
 
19293
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19294
else
 
19295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19296
for as_dir in $PATH
 
19297
do
 
19298
  IFS=$as_save_IFS
 
19299
  test -z "$as_dir" && as_dir=.
 
19300
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19301
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19302
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
19303
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19304
    break 2
 
19305
  fi
 
19306
done
 
19307
done
 
19308
IFS=$as_save_IFS
 
19309
 
 
19310
fi
 
19311
fi
 
19312
CC=$ac_cv_prog_CC
 
19313
if test -n "$CC"; then
 
19314
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19315
echo "${ECHO_T}$CC" >&6; }
 
19316
else
 
19317
  { echo "$as_me:$LINENO: result: no" >&5
 
19318
echo "${ECHO_T}no" >&6; }
 
19319
fi
 
19320
 
 
19321
 
 
19322
  fi
 
19323
fi
 
19324
if test -z "$CC"; then
 
19325
  # Extract the first word of "cc", so it can be a program name with args.
 
19326
set dummy cc; ac_word=$2
 
19327
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19329
if test "${ac_cv_prog_CC+set}" = set; then
 
19330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19331
else
 
19332
  if test -n "$CC"; then
 
19333
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19334
else
 
19335
  ac_prog_rejected=no
 
19336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19337
for as_dir in $PATH
 
19338
do
 
19339
  IFS=$as_save_IFS
 
19340
  test -z "$as_dir" && as_dir=.
 
19341
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19343
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
19344
       ac_prog_rejected=yes
 
19345
       continue
 
19346
     fi
 
19347
    ac_cv_prog_CC="cc"
 
19348
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19349
    break 2
 
19350
  fi
 
19351
done
 
19352
done
 
19353
IFS=$as_save_IFS
 
19354
 
 
19355
if test $ac_prog_rejected = yes; then
 
19356
  # We found a bogon in the path, so make sure we never use it.
 
19357
  set dummy $ac_cv_prog_CC
 
19358
  shift
 
19359
  if test $# != 0; then
 
19360
    # We chose a different compiler from the bogus one.
 
19361
    # However, it has the same basename, so the bogon will be chosen
 
19362
    # first if we set CC to just the basename; use the full file name.
 
19363
    shift
 
19364
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
19365
  fi
 
19366
fi
 
19367
fi
 
19368
fi
 
19369
CC=$ac_cv_prog_CC
 
19370
if test -n "$CC"; then
 
19371
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19372
echo "${ECHO_T}$CC" >&6; }
 
19373
else
 
19374
  { echo "$as_me:$LINENO: result: no" >&5
 
19375
echo "${ECHO_T}no" >&6; }
 
19376
fi
 
19377
 
 
19378
 
 
19379
fi
 
19380
if test -z "$CC"; then
 
19381
  if test -n "$ac_tool_prefix"; then
 
19382
  for ac_prog in cl.exe
 
19383
  do
 
19384
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19385
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19386
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19387
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19388
if test "${ac_cv_prog_CC+set}" = set; then
 
19389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19390
else
 
19391
  if test -n "$CC"; then
 
19392
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19393
else
 
19394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19395
for as_dir in $PATH
 
19396
do
 
19397
  IFS=$as_save_IFS
 
19398
  test -z "$as_dir" && as_dir=.
 
19399
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19400
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19401
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
19402
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19403
    break 2
 
19404
  fi
 
19405
done
 
19406
done
 
19407
IFS=$as_save_IFS
 
19408
 
 
19409
fi
 
19410
fi
 
19411
CC=$ac_cv_prog_CC
 
19412
if test -n "$CC"; then
 
19413
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19414
echo "${ECHO_T}$CC" >&6; }
 
19415
else
 
19416
  { echo "$as_me:$LINENO: result: no" >&5
 
19417
echo "${ECHO_T}no" >&6; }
 
19418
fi
 
19419
 
 
19420
 
 
19421
    test -n "$CC" && break
 
19422
  done
 
19423
fi
 
19424
if test -z "$CC"; then
 
19425
  ac_ct_CC=$CC
 
19426
  for ac_prog in cl.exe
 
19427
do
 
19428
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19429
set dummy $ac_prog; ac_word=$2
 
19430
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19432
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19434
else
 
19435
  if test -n "$ac_ct_CC"; then
 
19436
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19437
else
 
19438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19439
for as_dir in $PATH
 
19440
do
 
19441
  IFS=$as_save_IFS
 
19442
  test -z "$as_dir" && as_dir=.
 
19443
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19444
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19445
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
19446
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19447
    break 2
 
19448
  fi
 
19449
done
 
19450
done
 
19451
IFS=$as_save_IFS
 
19452
 
 
19453
fi
 
19454
fi
 
19455
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19456
if test -n "$ac_ct_CC"; then
 
19457
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19458
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
19459
else
 
19460
  { echo "$as_me:$LINENO: result: no" >&5
 
19461
echo "${ECHO_T}no" >&6; }
 
19462
fi
 
19463
 
 
19464
 
 
19465
  test -n "$ac_ct_CC" && break
 
19466
done
 
19467
 
 
19468
  if test "x$ac_ct_CC" = x; then
 
19469
    CC=""
 
19470
  else
 
19471
    case $cross_compiling:$ac_tool_warned in
 
19472
yes:)
 
19473
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
19474
whose name does not start with the host triplet.  If you think this
 
19475
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
19476
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
19477
whose name does not start with the host triplet.  If you think this
 
19478
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
19479
ac_tool_warned=yes ;;
 
19480
esac
 
19481
    CC=$ac_ct_CC
 
19482
  fi
 
19483
fi
 
19484
 
 
19485
fi
 
19486
 
 
19487
 
 
19488
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19489
See \`config.log' for more details." >&5
 
19490
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19491
See \`config.log' for more details." >&2;}
 
19492
   { (exit 1); exit 1; }; }
 
19493
 
 
19494
# Provide some information about the compiler.
 
19495
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
19496
ac_compiler=`set X $ac_compile; echo $2`
 
19497
{ (ac_try="$ac_compiler --version >&5"
 
19498
case "(($ac_try" in
 
19499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19500
  *) ac_try_echo=$ac_try;;
 
19501
esac
 
19502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19503
  (eval "$ac_compiler --version >&5") 2>&5
 
19504
  ac_status=$?
 
19505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19506
  (exit $ac_status); }
 
19507
{ (ac_try="$ac_compiler -v >&5"
 
19508
case "(($ac_try" in
 
19509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19510
  *) ac_try_echo=$ac_try;;
 
19511
esac
 
19512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19513
  (eval "$ac_compiler -v >&5") 2>&5
 
19514
  ac_status=$?
 
19515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19516
  (exit $ac_status); }
 
19517
{ (ac_try="$ac_compiler -V >&5"
 
19518
case "(($ac_try" in
 
19519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19520
  *) ac_try_echo=$ac_try;;
 
19521
esac
 
19522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19523
  (eval "$ac_compiler -V >&5") 2>&5
 
19524
  ac_status=$?
 
19525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19526
  (exit $ac_status); }
 
19527
 
 
19528
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19529
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
19530
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19532
else
 
19533
  cat >conftest.$ac_ext <<_ACEOF
 
19534
/* confdefs.h.  */
 
19535
_ACEOF
 
19536
cat confdefs.h >>conftest.$ac_ext
 
19537
cat >>conftest.$ac_ext <<_ACEOF
 
19538
/* end confdefs.h.  */
 
19539
 
 
19540
int
 
19541
main ()
 
19542
{
 
19543
#ifndef __GNUC__
 
19544
       choke me
 
19545
#endif
 
19546
 
 
19547
  ;
 
19548
  return 0;
 
19549
}
 
19550
_ACEOF
 
19551
rm -f conftest.$ac_objext
 
19552
if { (ac_try="$ac_compile"
 
19553
case "(($ac_try" in
 
19554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19555
  *) ac_try_echo=$ac_try;;
 
19556
esac
 
19557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19558
  (eval "$ac_compile") 2>conftest.er1
 
19559
  ac_status=$?
 
19560
  grep -v '^ *+' conftest.er1 >conftest.err
 
19561
  rm -f conftest.er1
 
19562
  cat conftest.err >&5
 
19563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19564
  (exit $ac_status); } && {
 
19565
         test -z "$ac_c_werror_flag" ||
 
19566
         test ! -s conftest.err
 
19567
       } && test -s conftest.$ac_objext; then
 
19568
  ac_compiler_gnu=yes
 
19569
else
 
19570
  echo "$as_me: failed program was:" >&5
 
19571
sed 's/^/| /' conftest.$ac_ext >&5
 
19572
 
 
19573
        ac_compiler_gnu=no
 
19574
fi
 
19575
 
 
19576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19577
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19578
 
 
19579
fi
 
19580
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19581
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
19582
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
19583
ac_test_CFLAGS=${CFLAGS+set}
 
19584
ac_save_CFLAGS=$CFLAGS
 
19585
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19586
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
19587
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19589
else
 
19590
  ac_save_c_werror_flag=$ac_c_werror_flag
 
19591
   ac_c_werror_flag=yes
 
19592
   ac_cv_prog_cc_g=no
 
19593
   CFLAGS="-g"
 
19594
   cat >conftest.$ac_ext <<_ACEOF
 
19595
/* confdefs.h.  */
 
19596
_ACEOF
 
19597
cat confdefs.h >>conftest.$ac_ext
 
19598
cat >>conftest.$ac_ext <<_ACEOF
 
19599
/* end confdefs.h.  */
 
19600
 
 
19601
int
 
19602
main ()
 
19603
{
 
19604
 
 
19605
  ;
 
19606
  return 0;
 
19607
}
 
19608
_ACEOF
 
19609
rm -f conftest.$ac_objext
 
19610
if { (ac_try="$ac_compile"
 
19611
case "(($ac_try" in
 
19612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19613
  *) ac_try_echo=$ac_try;;
 
19614
esac
 
19615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19616
  (eval "$ac_compile") 2>conftest.er1
 
19617
  ac_status=$?
 
19618
  grep -v '^ *+' conftest.er1 >conftest.err
 
19619
  rm -f conftest.er1
 
19620
  cat conftest.err >&5
 
19621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19622
  (exit $ac_status); } && {
 
19623
         test -z "$ac_c_werror_flag" ||
 
19624
         test ! -s conftest.err
 
19625
       } && test -s conftest.$ac_objext; then
 
19626
  ac_cv_prog_cc_g=yes
 
19627
else
 
19628
  echo "$as_me: failed program was:" >&5
 
19629
sed 's/^/| /' conftest.$ac_ext >&5
 
19630
 
 
19631
        CFLAGS=""
 
19632
      cat >conftest.$ac_ext <<_ACEOF
 
19633
/* confdefs.h.  */
 
19634
_ACEOF
 
19635
cat confdefs.h >>conftest.$ac_ext
 
19636
cat >>conftest.$ac_ext <<_ACEOF
 
19637
/* end confdefs.h.  */
 
19638
 
 
19639
int
 
19640
main ()
 
19641
{
 
19642
 
 
19643
  ;
 
19644
  return 0;
 
19645
}
 
19646
_ACEOF
 
19647
rm -f conftest.$ac_objext
 
19648
if { (ac_try="$ac_compile"
 
19649
case "(($ac_try" in
 
19650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19651
  *) ac_try_echo=$ac_try;;
 
19652
esac
 
19653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19654
  (eval "$ac_compile") 2>conftest.er1
 
19655
  ac_status=$?
 
19656
  grep -v '^ *+' conftest.er1 >conftest.err
 
19657
  rm -f conftest.er1
 
19658
  cat conftest.err >&5
 
19659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19660
  (exit $ac_status); } && {
 
19661
         test -z "$ac_c_werror_flag" ||
 
19662
         test ! -s conftest.err
 
19663
       } && test -s conftest.$ac_objext; then
 
19664
  :
 
19665
else
 
19666
  echo "$as_me: failed program was:" >&5
 
19667
sed 's/^/| /' conftest.$ac_ext >&5
 
19668
 
 
19669
        ac_c_werror_flag=$ac_save_c_werror_flag
 
19670
         CFLAGS="-g"
 
19671
         cat >conftest.$ac_ext <<_ACEOF
 
19672
/* confdefs.h.  */
 
19673
_ACEOF
 
19674
cat confdefs.h >>conftest.$ac_ext
 
19675
cat >>conftest.$ac_ext <<_ACEOF
 
19676
/* end confdefs.h.  */
 
19677
 
 
19678
int
 
19679
main ()
 
19680
{
 
19681
 
 
19682
  ;
 
19683
  return 0;
 
19684
}
 
19685
_ACEOF
 
19686
rm -f conftest.$ac_objext
 
19687
if { (ac_try="$ac_compile"
 
19688
case "(($ac_try" in
 
19689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19690
  *) ac_try_echo=$ac_try;;
 
19691
esac
 
19692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19693
  (eval "$ac_compile") 2>conftest.er1
 
19694
  ac_status=$?
 
19695
  grep -v '^ *+' conftest.er1 >conftest.err
 
19696
  rm -f conftest.er1
 
19697
  cat conftest.err >&5
 
19698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19699
  (exit $ac_status); } && {
 
19700
         test -z "$ac_c_werror_flag" ||
 
19701
         test ! -s conftest.err
 
19702
       } && test -s conftest.$ac_objext; then
 
19703
  ac_cv_prog_cc_g=yes
 
19704
else
 
19705
  echo "$as_me: failed program was:" >&5
 
19706
sed 's/^/| /' conftest.$ac_ext >&5
 
19707
 
 
19708
 
 
19709
fi
 
19710
 
 
19711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19712
fi
 
19713
 
 
19714
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19715
fi
 
19716
 
 
19717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19718
   ac_c_werror_flag=$ac_save_c_werror_flag
 
19719
fi
 
19720
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19721
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
19722
if test "$ac_test_CFLAGS" = set; then
 
19723
  CFLAGS=$ac_save_CFLAGS
 
19724
elif test $ac_cv_prog_cc_g = yes; then
 
19725
  if test "$GCC" = yes; then
 
19726
    CFLAGS="-g -O2"
 
19727
  else
 
19728
    CFLAGS="-g"
 
19729
  fi
 
19730
else
 
19731
  if test "$GCC" = yes; then
 
19732
    CFLAGS="-O2"
 
19733
  else
 
19734
    CFLAGS=
 
19735
  fi
 
19736
fi
 
19737
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
19738
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
19739
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
19740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19741
else
 
19742
  ac_cv_prog_cc_c89=no
 
19743
ac_save_CC=$CC
 
19744
cat >conftest.$ac_ext <<_ACEOF
 
19745
/* confdefs.h.  */
 
19746
_ACEOF
 
19747
cat confdefs.h >>conftest.$ac_ext
 
19748
cat >>conftest.$ac_ext <<_ACEOF
 
19749
/* end confdefs.h.  */
 
19750
#include <stdarg.h>
 
19751
#include <stdio.h>
 
19752
#include <sys/types.h>
 
19753
#include <sys/stat.h>
 
19754
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
19755
struct buf { int x; };
 
19756
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
19757
static char *e (p, i)
 
19758
     char **p;
 
19759
     int i;
 
19760
{
 
19761
  return p[i];
 
19762
}
 
19763
static char *f (char * (*g) (char **, int), char **p, ...)
 
19764
{
 
19765
  char *s;
 
19766
  va_list v;
 
19767
  va_start (v,p);
 
19768
  s = g (p, va_arg (v,int));
 
19769
  va_end (v);
 
19770
  return s;
 
19771
}
 
19772
 
 
19773
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
19774
   function prototypes and stuff, but not '\xHH' hex character constants.
 
19775
   These don't provoke an error unfortunately, instead are silently treated
 
19776
   as 'x'.  The following induces an error, until -std is added to get
 
19777
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
19778
   array size at least.  It's necessary to write '\x00'==0 to get something
 
19779
   that's true only with -std.  */
 
19780
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
19781
 
 
19782
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
19783
   inside strings and character constants.  */
 
19784
#define FOO(x) 'x'
 
19785
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
19786
 
 
19787
int test (int i, double x);
 
19788
struct s1 {int (*f) (int a);};
 
19789
struct s2 {int (*f) (double a);};
 
19790
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
19791
int argc;
 
19792
char **argv;
 
19793
int
 
19794
main ()
 
19795
{
 
19796
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
19797
  ;
 
19798
  return 0;
 
19799
}
 
19800
_ACEOF
 
19801
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
19802
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19803
do
 
19804
  CC="$ac_save_CC $ac_arg"
 
19805
  rm -f conftest.$ac_objext
 
19806
if { (ac_try="$ac_compile"
 
19807
case "(($ac_try" in
 
19808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19809
  *) ac_try_echo=$ac_try;;
 
19810
esac
 
19811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19812
  (eval "$ac_compile") 2>conftest.er1
 
19813
  ac_status=$?
 
19814
  grep -v '^ *+' conftest.er1 >conftest.err
 
19815
  rm -f conftest.er1
 
19816
  cat conftest.err >&5
 
19817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19818
  (exit $ac_status); } && {
 
19819
         test -z "$ac_c_werror_flag" ||
 
19820
         test ! -s conftest.err
 
19821
       } && test -s conftest.$ac_objext; then
 
19822
  ac_cv_prog_cc_c89=$ac_arg
 
19823
else
 
19824
  echo "$as_me: failed program was:" >&5
 
19825
sed 's/^/| /' conftest.$ac_ext >&5
 
19826
 
 
19827
 
 
19828
fi
 
19829
 
 
19830
rm -f core conftest.err conftest.$ac_objext
 
19831
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
19832
done
 
19833
rm -f conftest.$ac_ext
 
19834
CC=$ac_save_CC
 
19835
 
 
19836
fi
 
19837
# AC_CACHE_VAL
 
19838
case "x$ac_cv_prog_cc_c89" in
 
19839
  x)
 
19840
    { echo "$as_me:$LINENO: result: none needed" >&5
 
19841
echo "${ECHO_T}none needed" >&6; } ;;
 
19842
  xno)
 
19843
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
19844
echo "${ECHO_T}unsupported" >&6; } ;;
 
19845
  *)
 
19846
    CC="$CC $ac_cv_prog_cc_c89"
 
19847
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
19848
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
19849
esac
 
19850
 
 
19851
 
 
19852
ac_ext=c
 
19853
ac_cpp='$CPP $CPPFLAGS'
 
19854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19857
 
 
19858
depcc="$CC"   am_compiler_list=
 
19859
 
 
19860
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19861
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
19862
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
19863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19864
else
 
19865
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
19866
  # We make a subdir and do the tests there.  Otherwise we can end up
 
19867
  # making bogus files that we don't know about and never remove.  For
 
19868
  # instance it was reported that on HP-UX the gcc test will end up
 
19869
  # making a dummy file named `D' -- because `-MD' means `put the output
 
19870
  # in D'.
 
19871
  mkdir conftest.dir
 
19872
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
19873
  # using a relative directory.
 
19874
  cp "$am_depcomp" conftest.dir
 
19875
  cd conftest.dir
 
19876
  # We will build objects and dependencies in a subdirectory because
 
19877
  # it helps to detect inapplicable dependency modes.  For instance
 
19878
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19879
  # side effect of compilation, but ICC will put the dependencies in
 
19880
  # the current directory while Tru64 will put them in the object
 
19881
  # directory.
 
19882
  mkdir sub
 
19883
 
 
19884
  am_cv_CC_dependencies_compiler_type=none
 
19885
  if test "$am_compiler_list" = ""; then
 
19886
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
19887
  fi
 
19888
  for depmode in $am_compiler_list; do
 
19889
    # Setup a source with many dependencies, because some compilers
 
19890
    # like to wrap large dependency lists on column 80 (with \), and
 
19891
    # we should not choose a depcomp mode which is confused by this.
 
19892
    #
 
19893
    # We need to recreate these files for each test, as the compiler may
 
19894
    # overwrite some of them when testing with obscure command lines.
 
19895
    # This happens at least with the AIX C compiler.
 
19896
    : > sub/conftest.c
 
19897
    for i in 1 2 3 4 5 6; do
 
19898
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19899
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19900
      # Solaris 8's {/usr,}/bin/sh.
 
19901
      touch sub/conftst$i.h
 
19902
    done
 
19903
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
19904
 
 
19905
    case $depmode in
 
19906
    nosideeffect)
 
19907
      # after this tag, mechanisms are not by side-effect, so they'll
 
19908
      # only be used when explicitly requested
 
19909
      if test "x$enable_dependency_tracking" = xyes; then
 
19910
        continue
 
19911
      else
 
19912
        break
 
19913
      fi
 
19914
      ;;
 
19915
    none) break ;;
 
19916
    esac
 
19917
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19918
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19919
    # handle `-M -o', and we need to detect this.
 
19920
    if depmode=$depmode \
 
19921
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19922
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19923
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19924
         >/dev/null 2>conftest.err &&
 
19925
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
19926
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19927
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
19928
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19929
      # icc doesn't choke on unknown options, it will just issue warnings
 
19930
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19931
      # that says an option was ignored or not supported.
 
19932
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19933
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19934
      # The diagnosis changed in icc 8.0:
 
19935
      #   icc: Command line remark: option '-MP' not supported
 
19936
      if (grep 'ignoring option' conftest.err ||
 
19937
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19938
        am_cv_CC_dependencies_compiler_type=$depmode
 
19939
        break
 
19940
      fi
 
19941
    fi
 
19942
  done
 
19943
 
 
19944
  cd ..
 
19945
  rm -rf conftest.dir
 
19946
else
 
19947
  am_cv_CC_dependencies_compiler_type=none
 
19948
fi
 
19949
 
 
19950
fi
 
19951
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
19952
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
19953
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
19954
 
 
19955
 if
 
19956
  test "x$enable_dependency_tracking" != xno \
 
19957
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
19958
  am__fastdepCC_TRUE=
 
19959
  am__fastdepCC_FALSE='#'
 
19960
else
 
19961
  am__fastdepCC_TRUE='#'
 
19962
  am__fastdepCC_FALSE=
 
19963
fi
 
19964
 
 
19965
 
 
19966
 
 
19967
 
 
19968
 
 
19969
 
 
19970
#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
 
19971
#
 
19972
#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
 
19973
#              [Build XInput support (default: yes)]),
 
19974
#              [XINPUT=$enableval],[XINPUT=yes])
 
19975
#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
 
19976
#if test "x$XINPUT" = "xyes" ; then
 
19977
#    AC_DEFINE(XINPUT,1,[Enable XInput support])
 
19978
#fi
 
19979
#
 
19980
#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
 
19981
#              [Build XKB support (default: yes)]),
 
19982
#              [XKB=$enableval],[XKB=yes])
 
19983
#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
 
19984
#if test "x$XKB" = "xyes" ; then
 
19985
#    AC_DEFINE(XKB,1,[Enable XKB support])
 
19986
#fi
 
19987
 
 
19988
 
 
19989
# Check whether --with-xorg-module-dir was given.
 
19990
if test "${with_xorg_module_dir+set}" = set; then
 
19991
  withval=$with_xorg_module_dir; moduledir="$withval"
 
19992
else
 
19993
  moduledir="$libdir/xorg/modules"
 
19994
fi
 
19995
 
 
19996
inputdir=${moduledir}/input
 
19997
 
 
19998
 
 
19999
# Checks for extensions
 
20000
 
 
20001
        SAVE_CFLAGS="$CFLAGS"
 
20002
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
20003
        cat >conftest.$ac_ext <<_ACEOF
 
20004
/* confdefs.h.  */
 
20005
_ACEOF
 
20006
cat confdefs.h >>conftest.$ac_ext
 
20007
cat >>conftest.$ac_ext <<_ACEOF
 
20008
/* end confdefs.h.  */
 
20009
 
 
20010
#include "xorg-server.h"
 
20011
#if !defined RANDR
 
20012
#error RANDR not defined
 
20013
#endif
 
20014
 
 
20015
int
 
20016
main ()
 
20017
{
 
20018
 
 
20019
  ;
 
20020
  return 0;
 
20021
}
 
20022
_ACEOF
 
20023
rm -f conftest.$ac_objext
 
20024
if { (ac_try="$ac_compile"
 
20025
case "(($ac_try" in
 
20026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20027
  *) ac_try_echo=$ac_try;;
 
20028
esac
 
20029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20030
  (eval "$ac_compile") 2>conftest.er1
 
20031
  ac_status=$?
 
20032
  grep -v '^ *+' conftest.er1 >conftest.err
 
20033
  rm -f conftest.er1
 
20034
  cat conftest.err >&5
 
20035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20036
  (exit $ac_status); } && {
 
20037
         test -z "$ac_c_werror_flag" ||
 
20038
         test ! -s conftest.err
 
20039
       } && test -s conftest.$ac_objext; then
 
20040
  _EXT_CHECK=yes
 
20041
else
 
20042
  echo "$as_me: failed program was:" >&5
 
20043
sed 's/^/| /' conftest.$ac_ext >&5
 
20044
 
 
20045
        _EXT_CHECK=no
 
20046
fi
 
20047
 
 
20048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20049
        CFLAGS="$SAVE_CFLAGS"
 
20050
        { echo "$as_me:$LINENO: checking if RANDR is defined" >&5
 
20051
echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
 
20052
        { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
 
20053
echo "${ECHO_T}$_EXT_CHECK" >&6; }
 
20054
        if test "$_EXT_CHECK" != no; then
 
20055
                REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
 
20056
        fi
 
20057
 
 
20058
 
 
20059
        SAVE_CFLAGS="$CFLAGS"
 
20060
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
20061
        cat >conftest.$ac_ext <<_ACEOF
 
20062
/* confdefs.h.  */
 
20063
_ACEOF
 
20064
cat confdefs.h >>conftest.$ac_ext
 
20065
cat >>conftest.$ac_ext <<_ACEOF
 
20066
/* end confdefs.h.  */
 
20067
 
 
20068
#include "xorg-server.h"
 
20069
#if !defined XINPUT
 
20070
#error XINPUT not defined
 
20071
#endif
 
20072
 
 
20073
int
 
20074
main ()
 
20075
{
 
20076
 
 
20077
  ;
 
20078
  return 0;
 
20079
}
 
20080
_ACEOF
 
20081
rm -f conftest.$ac_objext
 
20082
if { (ac_try="$ac_compile"
 
20083
case "(($ac_try" in
 
20084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20085
  *) ac_try_echo=$ac_try;;
 
20086
esac
 
20087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20088
  (eval "$ac_compile") 2>conftest.er1
 
20089
  ac_status=$?
 
20090
  grep -v '^ *+' conftest.er1 >conftest.err
 
20091
  rm -f conftest.er1
 
20092
  cat conftest.err >&5
 
20093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20094
  (exit $ac_status); } && {
 
20095
         test -z "$ac_c_werror_flag" ||
 
20096
         test ! -s conftest.err
 
20097
       } && test -s conftest.$ac_objext; then
 
20098
  _EXT_CHECK=yes
 
20099
else
 
20100
  echo "$as_me: failed program was:" >&5
 
20101
sed 's/^/| /' conftest.$ac_ext >&5
 
20102
 
 
20103
        _EXT_CHECK=no
 
20104
fi
 
20105
 
 
20106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20107
        CFLAGS="$SAVE_CFLAGS"
 
20108
        { echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
 
20109
echo $ECHO_N "checking if XINPUT is defined... $ECHO_C" >&6; }
 
20110
        { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
 
20111
echo "${ECHO_T}$_EXT_CHECK" >&6; }
 
20112
        if test "$_EXT_CHECK" != no; then
 
20113
                REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
 
20114
        fi
 
20115
 
 
20116
 
 
20117
# Checks for pkg-config packages
 
20118
 
 
20119
 
 
20120
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
20121
        if test -n "$ac_tool_prefix"; then
 
20122
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
20123
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
20124
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20126
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
20127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20128
else
 
20129
  case $PKG_CONFIG in
 
20130
  [\\/]* | ?:[\\/]*)
 
20131
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
20132
  ;;
 
20133
  *)
 
20134
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20135
for as_dir in $PATH
 
20136
do
 
20137
  IFS=$as_save_IFS
 
20138
  test -z "$as_dir" && as_dir=.
 
20139
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20140
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20141
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20142
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20143
    break 2
 
20144
  fi
 
20145
done
 
20146
done
 
20147
IFS=$as_save_IFS
 
20148
 
 
20149
  ;;
 
20150
esac
 
20151
fi
 
20152
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
20153
if test -n "$PKG_CONFIG"; then
 
20154
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
20155
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
20156
else
 
20157
  { echo "$as_me:$LINENO: result: no" >&5
 
20158
echo "${ECHO_T}no" >&6; }
 
20159
fi
 
20160
 
 
20161
 
 
20162
fi
 
20163
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
20164
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
20165
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
20166
set dummy pkg-config; ac_word=$2
 
20167
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20169
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
20170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20171
else
 
20172
  case $ac_pt_PKG_CONFIG in
 
20173
  [\\/]* | ?:[\\/]*)
 
20174
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
20175
  ;;
 
20176
  *)
 
20177
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20178
for as_dir in $PATH
 
20179
do
 
20180
  IFS=$as_save_IFS
 
20181
  test -z "$as_dir" && as_dir=.
 
20182
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20183
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20184
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20185
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20186
    break 2
 
20187
  fi
 
20188
done
 
20189
done
 
20190
IFS=$as_save_IFS
 
20191
 
 
20192
  ;;
 
20193
esac
 
20194
fi
 
20195
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
20196
if test -n "$ac_pt_PKG_CONFIG"; then
 
20197
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
20198
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
20199
else
 
20200
  { echo "$as_me:$LINENO: result: no" >&5
 
20201
echo "${ECHO_T}no" >&6; }
 
20202
fi
 
20203
 
 
20204
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
20205
    PKG_CONFIG=""
 
20206
  else
 
20207
    case $cross_compiling:$ac_tool_warned in
 
20208
yes:)
 
20209
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20210
whose name does not start with the host triplet.  If you think this
 
20211
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20212
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20213
whose name does not start with the host triplet.  If you think this
 
20214
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20215
ac_tool_warned=yes ;;
 
20216
esac
 
20217
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
20218
  fi
 
20219
else
 
20220
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
20221
fi
 
20222
 
 
20223
fi
 
20224
if test -n "$PKG_CONFIG"; then
 
20225
        _pkg_min_version=0.9.0
 
20226
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
20227
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
20228
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
20229
                { echo "$as_me:$LINENO: result: yes" >&5
 
20230
echo "${ECHO_T}yes" >&6; }
 
20231
        else
 
20232
                { echo "$as_me:$LINENO: result: no" >&5
 
20233
echo "${ECHO_T}no" >&6; }
 
20234
                PKG_CONFIG=""
 
20235
        fi
 
20236
 
 
20237
fi
 
20238
 
 
20239
pkg_failed=no
 
20240
{ echo "$as_me:$LINENO: checking for XORG" >&5
 
20241
echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
 
20242
 
 
20243
if test -n "$PKG_CONFIG"; then
 
20244
    if test -n "$XORG_CFLAGS"; then
 
20245
        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
 
20246
    else
 
20247
        if test -n "$PKG_CONFIG" && \
 
20248
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
 
20249
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
 
20250
  ac_status=$?
 
20251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20252
  (exit $ac_status); }; then
 
20253
  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
 
20254
else
 
20255
  pkg_failed=yes
 
20256
fi
 
20257
    fi
 
20258
else
 
20259
        pkg_failed=untried
 
20260
fi
 
20261
if test -n "$PKG_CONFIG"; then
 
20262
    if test -n "$XORG_LIBS"; then
 
20263
        pkg_cv_XORG_LIBS="$XORG_LIBS"
 
20264
    else
 
20265
        if test -n "$PKG_CONFIG" && \
 
20266
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
 
20267
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
 
20268
  ac_status=$?
 
20269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20270
  (exit $ac_status); }; then
 
20271
  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
 
20272
else
 
20273
  pkg_failed=yes
 
20274
fi
 
20275
    fi
 
20276
else
 
20277
        pkg_failed=untried
 
20278
fi
 
20279
 
 
20280
 
 
20281
 
 
20282
if test $pkg_failed = yes; then
 
20283
 
 
20284
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20285
        _pkg_short_errors_supported=yes
 
20286
else
 
20287
        _pkg_short_errors_supported=no
 
20288
fi
 
20289
        if test $_pkg_short_errors_supported = yes; then
 
20290
                XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
 
20291
        else
 
20292
                XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
 
20293
        fi
 
20294
        # Put the nasty error message in config.log where it belongs
 
20295
        echo "$XORG_PKG_ERRORS" >&5
 
20296
 
 
20297
        { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
 
20298
 
 
20299
$XORG_PKG_ERRORS
 
20300
 
 
20301
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20302
installed software in a non-standard prefix.
 
20303
 
 
20304
Alternatively, you may set the environment variables XORG_CFLAGS
 
20305
and XORG_LIBS to avoid the need to call pkg-config.
 
20306
See the pkg-config man page for more details.
 
20307
" >&5
 
20308
echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
 
20309
 
 
20310
$XORG_PKG_ERRORS
 
20311
 
 
20312
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20313
installed software in a non-standard prefix.
 
20314
 
 
20315
Alternatively, you may set the environment variables XORG_CFLAGS
 
20316
and XORG_LIBS to avoid the need to call pkg-config.
 
20317
See the pkg-config man page for more details.
 
20318
" >&2;}
 
20319
   { (exit 1); exit 1; }; }
 
20320
elif test $pkg_failed = untried; then
 
20321
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
20322
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20323
path to pkg-config.
 
20324
 
 
20325
Alternatively, you may set the environment variables XORG_CFLAGS
 
20326
and XORG_LIBS to avoid the need to call pkg-config.
 
20327
See the pkg-config man page for more details.
 
20328
 
 
20329
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20330
See \`config.log' for more details." >&5
 
20331
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
20332
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20333
path to pkg-config.
 
20334
 
 
20335
Alternatively, you may set the environment variables XORG_CFLAGS
 
20336
and XORG_LIBS to avoid the need to call pkg-config.
 
20337
See the pkg-config man page for more details.
 
20338
 
 
20339
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20340
See \`config.log' for more details." >&2;}
 
20341
   { (exit 1); exit 1; }; }
 
20342
else
 
20343
        XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
 
20344
        XORG_LIBS=$pkg_cv_XORG_LIBS
 
20345
        { echo "$as_me:$LINENO: result: yes" >&5
 
20346
echo "${ECHO_T}yes" >&6; }
 
20347
        :
 
20348
fi
 
20349
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
 
20350
 
 
20351
CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
 
20352
 
 
20353
 
 
20354
# Checks for libraries.
 
20355
 
 
20356
# Checks for header files.
 
20357
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20358
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
20359
if test "${ac_cv_header_stdc+set}" = set; then
 
20360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20361
else
 
20362
  cat >conftest.$ac_ext <<_ACEOF
 
20363
/* confdefs.h.  */
 
20364
_ACEOF
 
20365
cat confdefs.h >>conftest.$ac_ext
 
20366
cat >>conftest.$ac_ext <<_ACEOF
 
20367
/* end confdefs.h.  */
 
20368
#include <stdlib.h>
 
20369
#include <stdarg.h>
 
20370
#include <string.h>
 
20371
#include <float.h>
 
20372
 
 
20373
int
 
20374
main ()
 
20375
{
 
20376
 
 
20377
  ;
 
20378
  return 0;
 
20379
}
 
20380
_ACEOF
 
20381
rm -f conftest.$ac_objext
 
20382
if { (ac_try="$ac_compile"
 
20383
case "(($ac_try" in
 
20384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20385
  *) ac_try_echo=$ac_try;;
 
20386
esac
 
20387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20388
  (eval "$ac_compile") 2>conftest.er1
 
20389
  ac_status=$?
 
20390
  grep -v '^ *+' conftest.er1 >conftest.err
 
20391
  rm -f conftest.er1
 
20392
  cat conftest.err >&5
 
20393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20394
  (exit $ac_status); } && {
 
20395
         test -z "$ac_c_werror_flag" ||
 
20396
         test ! -s conftest.err
 
20397
       } && test -s conftest.$ac_objext; then
 
20398
  ac_cv_header_stdc=yes
 
20399
else
 
20400
  echo "$as_me: failed program was:" >&5
 
20401
sed 's/^/| /' conftest.$ac_ext >&5
 
20402
 
 
20403
        ac_cv_header_stdc=no
 
20404
fi
 
20405
 
 
20406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20407
 
 
20408
if test $ac_cv_header_stdc = yes; then
 
20409
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20410
  cat >conftest.$ac_ext <<_ACEOF
 
20411
/* confdefs.h.  */
 
20412
_ACEOF
 
20413
cat confdefs.h >>conftest.$ac_ext
 
20414
cat >>conftest.$ac_ext <<_ACEOF
 
20415
/* end confdefs.h.  */
 
20416
#include <string.h>
 
20417
 
 
20418
_ACEOF
 
20419
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20420
  $EGREP "memchr" >/dev/null 2>&1; then
 
20421
  :
 
20422
else
 
20423
  ac_cv_header_stdc=no
 
20424
fi
 
20425
rm -f conftest*
 
20426
 
 
20427
fi
 
20428
 
 
20429
if test $ac_cv_header_stdc = yes; then
 
20430
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20431
  cat >conftest.$ac_ext <<_ACEOF
 
20432
/* confdefs.h.  */
 
20433
_ACEOF
 
20434
cat confdefs.h >>conftest.$ac_ext
 
20435
cat >>conftest.$ac_ext <<_ACEOF
 
20436
/* end confdefs.h.  */
 
20437
#include <stdlib.h>
 
20438
 
 
20439
_ACEOF
 
20440
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20441
  $EGREP "free" >/dev/null 2>&1; then
 
20442
  :
 
20443
else
 
20444
  ac_cv_header_stdc=no
 
20445
fi
 
20446
rm -f conftest*
 
20447
 
 
20448
fi
 
20449
 
 
20450
if test $ac_cv_header_stdc = yes; then
 
20451
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20452
  if test "$cross_compiling" = yes; then
 
20453
  :
 
20454
else
 
20455
  cat >conftest.$ac_ext <<_ACEOF
 
20456
/* confdefs.h.  */
 
20457
_ACEOF
 
20458
cat confdefs.h >>conftest.$ac_ext
 
20459
cat >>conftest.$ac_ext <<_ACEOF
 
20460
/* end confdefs.h.  */
 
20461
#include <ctype.h>
 
20462
#include <stdlib.h>
 
20463
#if ((' ' & 0x0FF) == 0x020)
 
20464
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20465
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20466
#else
 
20467
# define ISLOWER(c) \
 
20468
                   (('a' <= (c) && (c) <= 'i') \
 
20469
                     || ('j' <= (c) && (c) <= 'r') \
 
20470
                     || ('s' <= (c) && (c) <= 'z'))
 
20471
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20472
#endif
 
20473
 
 
20474
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20475
int
 
20476
main ()
 
20477
{
 
20478
  int i;
 
20479
  for (i = 0; i < 256; i++)
 
20480
    if (XOR (islower (i), ISLOWER (i))
 
20481
        || toupper (i) != TOUPPER (i))
 
20482
      return 2;
 
20483
  return 0;
 
20484
}
 
20485
_ACEOF
 
20486
rm -f conftest$ac_exeext
 
20487
if { (ac_try="$ac_link"
 
20488
case "(($ac_try" in
 
20489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20490
  *) ac_try_echo=$ac_try;;
 
20491
esac
 
20492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20493
  (eval "$ac_link") 2>&5
 
20494
  ac_status=$?
 
20495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20496
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20497
  { (case "(($ac_try" in
 
20498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20499
  *) ac_try_echo=$ac_try;;
 
20500
esac
 
20501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20502
  (eval "$ac_try") 2>&5
 
20503
  ac_status=$?
 
20504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20505
  (exit $ac_status); }; }; then
 
20506
  :
 
20507
else
 
20508
  echo "$as_me: program exited with status $ac_status" >&5
 
20509
echo "$as_me: failed program was:" >&5
 
20510
sed 's/^/| /' conftest.$ac_ext >&5
 
20511
 
 
20512
( exit $ac_status )
 
20513
ac_cv_header_stdc=no
 
20514
fi
 
20515
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20516
fi
 
20517
 
 
20518
 
 
20519
fi
 
20520
fi
 
20521
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20522
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
20523
if test $ac_cv_header_stdc = yes; then
 
20524
 
 
20525
cat >>confdefs.h <<\_ACEOF
 
20526
#define STDC_HEADERS 1
 
20527
_ACEOF
 
20528
 
 
20529
fi
 
20530
 
 
20531
if test "${ac_cv_header_linux_input_h+set}" = set; then
 
20532
  { echo "$as_me:$LINENO: checking for linux/input.h" >&5
 
20533
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
 
20534
if test "${ac_cv_header_linux_input_h+set}" = set; then
 
20535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20536
fi
 
20537
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
 
20538
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
 
20539
else
 
20540
  # Is the header compilable?
 
20541
{ echo "$as_me:$LINENO: checking linux/input.h usability" >&5
 
20542
echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6; }
 
20543
cat >conftest.$ac_ext <<_ACEOF
 
20544
/* confdefs.h.  */
 
20545
_ACEOF
 
20546
cat confdefs.h >>conftest.$ac_ext
 
20547
cat >>conftest.$ac_ext <<_ACEOF
 
20548
/* end confdefs.h.  */
 
20549
$ac_includes_default
 
20550
#include <linux/input.h>
 
20551
_ACEOF
 
20552
rm -f conftest.$ac_objext
 
20553
if { (ac_try="$ac_compile"
 
20554
case "(($ac_try" in
 
20555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20556
  *) ac_try_echo=$ac_try;;
 
20557
esac
 
20558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20559
  (eval "$ac_compile") 2>conftest.er1
 
20560
  ac_status=$?
 
20561
  grep -v '^ *+' conftest.er1 >conftest.err
 
20562
  rm -f conftest.er1
 
20563
  cat conftest.err >&5
 
20564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20565
  (exit $ac_status); } && {
 
20566
         test -z "$ac_c_werror_flag" ||
 
20567
         test ! -s conftest.err
 
20568
       } && test -s conftest.$ac_objext; then
 
20569
  ac_header_compiler=yes
 
20570
else
 
20571
  echo "$as_me: failed program was:" >&5
 
20572
sed 's/^/| /' conftest.$ac_ext >&5
 
20573
 
 
20574
        ac_header_compiler=no
 
20575
fi
 
20576
 
 
20577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20578
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20579
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20580
 
 
20581
# Is the header present?
 
20582
{ echo "$as_me:$LINENO: checking linux/input.h presence" >&5
 
20583
echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6; }
 
20584
cat >conftest.$ac_ext <<_ACEOF
 
20585
/* confdefs.h.  */
 
20586
_ACEOF
 
20587
cat confdefs.h >>conftest.$ac_ext
 
20588
cat >>conftest.$ac_ext <<_ACEOF
 
20589
/* end confdefs.h.  */
 
20590
#include <linux/input.h>
 
20591
_ACEOF
 
20592
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20593
case "(($ac_try" in
 
20594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20595
  *) ac_try_echo=$ac_try;;
 
20596
esac
 
20597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20598
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20599
  ac_status=$?
 
20600
  grep -v '^ *+' conftest.er1 >conftest.err
 
20601
  rm -f conftest.er1
 
20602
  cat conftest.err >&5
 
20603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20604
  (exit $ac_status); } >/dev/null && {
 
20605
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20606
         test ! -s conftest.err
 
20607
       }; then
 
20608
  ac_header_preproc=yes
 
20609
else
 
20610
  echo "$as_me: failed program was:" >&5
 
20611
sed 's/^/| /' conftest.$ac_ext >&5
 
20612
 
 
20613
  ac_header_preproc=no
 
20614
fi
 
20615
 
 
20616
rm -f conftest.err conftest.$ac_ext
 
20617
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20618
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20619
 
 
20620
# So?  What about this header?
 
20621
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20622
  yes:no: )
 
20623
    { echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20624
echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20625
    { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
 
20626
echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
 
20627
    ac_header_preproc=yes
 
20628
    ;;
 
20629
  no:yes:* )
 
20630
    { echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
 
20631
echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
 
20632
    { echo "$as_me:$LINENO: WARNING: linux/input.h:     check for missing prerequisite headers?" >&5
 
20633
echo "$as_me: WARNING: linux/input.h:     check for missing prerequisite headers?" >&2;}
 
20634
    { echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
 
20635
echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
 
20636
    { echo "$as_me:$LINENO: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20637
echo "$as_me: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20638
    { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
 
20639
echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
 
20640
    { echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
 
20641
echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
 
20642
    ( cat <<\_ASBOX
 
20643
## ------------------- ##
 
20644
## Report this to NULL ##
 
20645
## ------------------- ##
 
20646
_ASBOX
 
20647
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20648
    ;;
 
20649
esac
 
20650
{ echo "$as_me:$LINENO: checking for linux/input.h" >&5
 
20651
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
 
20652
if test "${ac_cv_header_linux_input_h+set}" = set; then
 
20653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20654
else
 
20655
  ac_cv_header_linux_input_h=$ac_header_preproc
 
20656
fi
 
20657
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
 
20658
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
 
20659
 
 
20660
fi
 
20661
if test $ac_cv_header_linux_input_h = yes; then
 
20662
 
 
20663
cat >>confdefs.h <<\_ACEOF
 
20664
#define LINUX_INPUT 1
 
20665
_ACEOF
 
20666
 
 
20667
 
 
20668
fi
 
20669
 
 
20670
 
 
20671
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
 
20672
  { echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
 
20673
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
 
20674
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
 
20675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20676
fi
 
20677
{ echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
 
20678
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
 
20679
else
 
20680
  # Is the header compilable?
 
20681
{ echo "$as_me:$LINENO: checking sysfs/libsysfs.h usability" >&5
 
20682
echo $ECHO_N "checking sysfs/libsysfs.h usability... $ECHO_C" >&6; }
 
20683
cat >conftest.$ac_ext <<_ACEOF
 
20684
/* confdefs.h.  */
 
20685
_ACEOF
 
20686
cat confdefs.h >>conftest.$ac_ext
 
20687
cat >>conftest.$ac_ext <<_ACEOF
 
20688
/* end confdefs.h.  */
 
20689
$ac_includes_default
 
20690
#include <sysfs/libsysfs.h>
 
20691
_ACEOF
 
20692
rm -f conftest.$ac_objext
 
20693
if { (ac_try="$ac_compile"
 
20694
case "(($ac_try" in
 
20695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20696
  *) ac_try_echo=$ac_try;;
 
20697
esac
 
20698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20699
  (eval "$ac_compile") 2>conftest.er1
 
20700
  ac_status=$?
 
20701
  grep -v '^ *+' conftest.er1 >conftest.err
 
20702
  rm -f conftest.er1
 
20703
  cat conftest.err >&5
 
20704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20705
  (exit $ac_status); } && {
 
20706
         test -z "$ac_c_werror_flag" ||
 
20707
         test ! -s conftest.err
 
20708
       } && test -s conftest.$ac_objext; then
 
20709
  ac_header_compiler=yes
 
20710
else
 
20711
  echo "$as_me: failed program was:" >&5
 
20712
sed 's/^/| /' conftest.$ac_ext >&5
 
20713
 
 
20714
        ac_header_compiler=no
 
20715
fi
 
20716
 
 
20717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20718
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20719
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20720
 
 
20721
# Is the header present?
 
20722
{ echo "$as_me:$LINENO: checking sysfs/libsysfs.h presence" >&5
 
20723
echo $ECHO_N "checking sysfs/libsysfs.h presence... $ECHO_C" >&6; }
 
20724
cat >conftest.$ac_ext <<_ACEOF
 
20725
/* confdefs.h.  */
 
20726
_ACEOF
 
20727
cat confdefs.h >>conftest.$ac_ext
 
20728
cat >>conftest.$ac_ext <<_ACEOF
 
20729
/* end confdefs.h.  */
 
20730
#include <sysfs/libsysfs.h>
 
20731
_ACEOF
 
20732
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20733
case "(($ac_try" in
 
20734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20735
  *) ac_try_echo=$ac_try;;
 
20736
esac
 
20737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20738
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20739
  ac_status=$?
 
20740
  grep -v '^ *+' conftest.er1 >conftest.err
 
20741
  rm -f conftest.er1
 
20742
  cat conftest.err >&5
 
20743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20744
  (exit $ac_status); } >/dev/null && {
 
20745
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20746
         test ! -s conftest.err
 
20747
       }; then
 
20748
  ac_header_preproc=yes
 
20749
else
 
20750
  echo "$as_me: failed program was:" >&5
 
20751
sed 's/^/| /' conftest.$ac_ext >&5
 
20752
 
 
20753
  ac_header_preproc=no
 
20754
fi
 
20755
 
 
20756
rm -f conftest.err conftest.$ac_ext
 
20757
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20758
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20759
 
 
20760
# So?  What about this header?
 
20761
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20762
  yes:no: )
 
20763
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20764
echo "$as_me: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20765
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&5
 
20766
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&2;}
 
20767
    ac_header_preproc=yes
 
20768
    ;;
 
20769
  no:yes:* )
 
20770
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&5
 
20771
echo "$as_me: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&2;}
 
20772
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h:     check for missing prerequisite headers?" >&5
 
20773
echo "$as_me: WARNING: sysfs/libsysfs.h:     check for missing prerequisite headers?" >&2;}
 
20774
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&5
 
20775
echo "$as_me: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&2;}
 
20776
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20777
echo "$as_me: WARNING: sysfs/libsysfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20778
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&5
 
20779
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&2;}
 
20780
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&5
 
20781
echo "$as_me: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&2;}
 
20782
    ( cat <<\_ASBOX
 
20783
## ------------------- ##
 
20784
## Report this to NULL ##
 
20785
## ------------------- ##
 
20786
_ASBOX
 
20787
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20788
    ;;
 
20789
esac
 
20790
{ echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
 
20791
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
 
20792
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
 
20793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20794
else
 
20795
  ac_cv_header_sysfs_libsysfs_h=$ac_header_preproc
 
20796
fi
 
20797
{ echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
 
20798
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
 
20799
 
 
20800
fi
 
20801
if test $ac_cv_header_sysfs_libsysfs_h = yes; then
 
20802
 
 
20803
cat >>confdefs.h <<\_ACEOF
 
20804
#define LINUX_SYSFS 1
 
20805
_ACEOF
 
20806
 
 
20807
 
 
20808
fi
 
20809
 
 
20810
 
 
20811
 
 
20812
 
 
20813
 
 
20814
 
 
20815
if test x$APP_MAN_SUFFIX = x    ; then
 
20816
    APP_MAN_SUFFIX=1
 
20817
fi
 
20818
if test x$APP_MAN_DIR = x    ; then
 
20819
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
20820
fi
 
20821
 
 
20822
if test x$LIB_MAN_SUFFIX = x    ; then
 
20823
    LIB_MAN_SUFFIX=3
 
20824
fi
 
20825
if test x$LIB_MAN_DIR = x    ; then
 
20826
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
20827
fi
 
20828
 
 
20829
if test x$FILE_MAN_SUFFIX = x    ; then
 
20830
    case $host_os in
 
20831
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
20832
        *)              FILE_MAN_SUFFIX=5  ;;
 
20833
    esac
 
20834
fi
 
20835
if test x$FILE_MAN_DIR = x    ; then
 
20836
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
20837
fi
 
20838
 
 
20839
if test x$MISC_MAN_SUFFIX = x    ; then
 
20840
    case $host_os in
 
20841
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
20842
        *)              MISC_MAN_SUFFIX=7  ;;
 
20843
    esac
 
20844
fi
 
20845
if test x$MISC_MAN_DIR = x    ; then
 
20846
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
20847
fi
 
20848
 
 
20849
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
20850
    case $host_os in
 
20851
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
20852
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
20853
    esac
 
20854
fi
 
20855
if test x$DRIVER_MAN_DIR = x    ; then
 
20856
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
20857
fi
 
20858
 
 
20859
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
20860
    case $host_os in
 
20861
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
20862
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
20863
    esac
 
20864
fi
 
20865
if test x$ADMIN_MAN_DIR = x    ; then
 
20866
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
20867
fi
 
20868
 
 
20869
 
 
20870
 
 
20871
 
 
20872
 
 
20873
 
 
20874
 
 
20875
 
 
20876
 
 
20877
 
 
20878
 
 
20879
 
 
20880
 
 
20881
 
 
20882
 
 
20883
 
 
20884
 
 
20885
# Check whether --with-release-version was given.
 
20886
if test "${with_release_version+set}" = set; then
 
20887
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
20888
else
 
20889
  RELEASE_VERSION=""
 
20890
fi
 
20891
 
 
20892
        if test "x$RELEASE_VERSION" != "x"; then
 
20893
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
20894
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
20895
                { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
20896
echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
20897
        fi
 
20898
 
 
20899
cat >>confdefs.h <<_ACEOF
 
20900
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
20901
_ACEOF
 
20902
 
 
20903
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
 
20904
        if test "x$PVM" = "x"; then
 
20905
                PVM="0"
 
20906
        fi
 
20907
 
 
20908
cat >>confdefs.h <<_ACEOF
 
20909
#define PACKAGE_VERSION_MINOR $PVM
 
20910
_ACEOF
 
20911
 
 
20912
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
 
20913
        if test "x$PVP" = "x"; then
 
20914
                PVP="0"
 
20915
        fi
 
20916
 
 
20917
cat >>confdefs.h <<_ACEOF
 
20918
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
20919
_ACEOF
 
20920
 
 
20921
 
 
20922
 
 
20923
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
 
20924
 
 
20925
cat >confcache <<\_ACEOF
 
20926
# This file is a shell script that caches the results of configure
 
20927
# tests run on this system so they can be shared between configure
 
20928
# scripts and configure runs, see configure's option --config-cache.
 
20929
# It is not useful on other systems.  If it contains results you don't
 
20930
# want to keep, you may remove or edit it.
 
20931
#
 
20932
# config.status only pays attention to the cache file if you give it
 
20933
# the --recheck option to rerun configure.
 
20934
#
 
20935
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20936
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20937
# following values.
 
20938
 
 
20939
_ACEOF
 
20940
 
 
20941
# The following way of writing the cache mishandles newlines in values,
 
20942
# but we know of no workaround that is simple, portable, and efficient.
 
20943
# So, we kill variables containing newlines.
 
20944
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20945
# and sets the high bit in the cache file unless we assign to the vars.
 
20946
(
 
20947
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
20948
    eval ac_val=\$$ac_var
 
20949
    case $ac_val in #(
 
20950
    *${as_nl}*)
 
20951
      case $ac_var in #(
 
20952
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
20953
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
20954
      esac
 
20955
      case $ac_var in #(
 
20956
      _ | IFS | as_nl) ;; #(
 
20957
      *) $as_unset $ac_var ;;
 
20958
      esac ;;
 
20959
    esac
 
20960
  done
 
20961
 
 
20962
  (set) 2>&1 |
 
20963
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
20964
    *${as_nl}ac_space=\ *)
 
20965
      # `set' does not quote correctly, so add quotes (double-quote
 
20966
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20967
      sed -n \
 
20968
        "s/'/'\\\\''/g;
 
20969
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20970
      ;; #(
 
20971
    *)
 
20972
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20973
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
20974
      ;;
 
20975
    esac |
 
20976
    sort
 
20977
) |
 
20978
  sed '
 
20979
     /^ac_cv_env_/b end
 
20980
     t clear
 
20981
     :clear
 
20982
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20983
     t end
 
20984
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20985
     :end' >>confcache
 
20986
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
20987
  if test -w "$cache_file"; then
 
20988
    test "x$cache_file" != "x/dev/null" &&
 
20989
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
20990
echo "$as_me: updating cache $cache_file" >&6;}
 
20991
    cat confcache >$cache_file
 
20992
  else
 
20993
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
20994
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
20995
  fi
 
20996
fi
 
20997
rm -f confcache
 
20998
 
 
20999
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21000
# Let make expand exec_prefix.
 
21001
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21002
 
 
21003
DEFS=-DHAVE_CONFIG_H
 
21004
 
 
21005
ac_libobjs=
 
21006
ac_ltlibobjs=
 
21007
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
21008
  # 1. Remove the extension, and $U if already installed.
 
21009
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
21010
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
21011
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
21012
  #    will be set to the directory where LIBOBJS objects are built.
 
21013
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
21014
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
21015
done
 
21016
LIBOBJS=$ac_libobjs
 
21017
 
 
21018
LTLIBOBJS=$ac_ltlibobjs
 
21019
 
 
21020
 
 
21021
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
21022
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21023
Usually this means the macro was only invoked conditionally." >&5
 
21024
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21025
Usually this means the macro was only invoked conditionally." >&2;}
 
21026
   { (exit 1); exit 1; }; }
 
21027
fi
 
21028
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21029
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
21030
Usually this means the macro was only invoked conditionally." >&5
 
21031
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
21032
Usually this means the macro was only invoked conditionally." >&2;}
 
21033
   { (exit 1); exit 1; }; }
 
21034
fi
 
21035
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21036
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21037
Usually this means the macro was only invoked conditionally." >&5
 
21038
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21039
Usually this means the macro was only invoked conditionally." >&2;}
 
21040
   { (exit 1); exit 1; }; }
 
21041
fi
 
21042
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21043
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21044
Usually this means the macro was only invoked conditionally." >&5
 
21045
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21046
Usually this means the macro was only invoked conditionally." >&2;}
 
21047
   { (exit 1); exit 1; }; }
 
21048
fi
 
21049
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21050
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21051
Usually this means the macro was only invoked conditionally." >&5
 
21052
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21053
Usually this means the macro was only invoked conditionally." >&2;}
 
21054
   { (exit 1); exit 1; }; }
 
21055
fi
 
21056
 
 
21057
: ${CONFIG_STATUS=./config.status}
 
21058
ac_clean_files_save=$ac_clean_files
 
21059
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21060
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21061
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21062
cat >$CONFIG_STATUS <<_ACEOF
 
21063
#! $SHELL
 
21064
# Generated by $as_me.
 
21065
# Run this file to recreate the current configuration.
 
21066
# Compiler output produced by configure, useful for debugging
 
21067
# configure, is in config.log if it exists.
 
21068
 
 
21069
debug=false
 
21070
ac_cs_recheck=false
 
21071
ac_cs_silent=false
 
21072
SHELL=\${CONFIG_SHELL-$SHELL}
 
21073
_ACEOF
 
21074
 
 
21075
cat >>$CONFIG_STATUS <<\_ACEOF
 
21076
## --------------------- ##
 
21077
## M4sh Initialization.  ##
 
21078
## --------------------- ##
 
21079
 
 
21080
# Be more Bourne compatible
 
21081
DUALCASE=1; export DUALCASE # for MKS sh
 
21082
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21083
  emulate sh
 
21084
  NULLCMD=:
 
21085
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21086
  # is contrary to our usage.  Disable this feature.
 
21087
  alias -g '${1+"$@"}'='"$@"'
 
21088
  setopt NO_GLOB_SUBST
 
21089
else
 
21090
  case `(set -o) 2>/dev/null` in
 
21091
  *posix*) set -o posix ;;
 
21092
esac
 
21093
 
 
21094
fi
 
21095
 
 
21096
 
 
21097
 
 
21098
 
 
21099
# PATH needs CR
 
21100
# Avoid depending upon Character Ranges.
 
21101
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21102
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21103
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21104
as_cr_digits='0123456789'
 
21105
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21106
 
 
21107
# The user is always right.
 
21108
if test "${PATH_SEPARATOR+set}" != set; then
 
21109
  echo "#! /bin/sh" >conf$$.sh
 
21110
  echo  "exit 0"   >>conf$$.sh
 
21111
  chmod +x conf$$.sh
 
21112
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21113
    PATH_SEPARATOR=';'
 
21114
  else
 
21115
    PATH_SEPARATOR=:
 
21116
  fi
 
21117
  rm -f conf$$.sh
 
21118
fi
 
21119
 
 
21120
# Support unset when possible.
 
21121
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
21122
  as_unset=unset
 
21123
else
 
21124
  as_unset=false
 
21125
fi
 
21126
 
 
21127
 
 
21128
# IFS
 
21129
# We need space, tab and new line, in precisely that order.  Quoting is
 
21130
# there to prevent editors from complaining about space-tab.
 
21131
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
21132
# splitting by setting IFS to empty value.)
 
21133
as_nl='
 
21134
'
 
21135
IFS=" ""        $as_nl"
 
21136
 
 
21137
# Find who we are.  Look in the path if we contain no directory separator.
 
21138
case $0 in
 
21139
  *[\\/]* ) as_myself=$0 ;;
 
21140
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21141
for as_dir in $PATH
 
21142
do
 
21143
  IFS=$as_save_IFS
 
21144
  test -z "$as_dir" && as_dir=.
 
21145
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21146
done
 
21147
IFS=$as_save_IFS
 
21148
 
 
21149
     ;;
 
21150
esac
 
21151
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
21152
# in which case we are not to be found in the path.
 
21153
if test "x$as_myself" = x; then
 
21154
  as_myself=$0
 
21155
fi
 
21156
if test ! -f "$as_myself"; then
 
21157
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
21158
  { (exit 1); exit 1; }
 
21159
fi
 
21160
 
 
21161
# Work around bugs in pre-3.0 UWIN ksh.
 
21162
for as_var in ENV MAIL MAILPATH
 
21163
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
21164
done
 
21165
PS1='$ '
 
21166
PS2='> '
 
21167
PS4='+ '
 
21168
 
 
21169
# NLS nuisances.
 
21170
for as_var in \
 
21171
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
21172
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
21173
  LC_TELEPHONE LC_TIME
 
21174
do
 
21175
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
21176
    eval $as_var=C; export $as_var
 
21177
  else
 
21178
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
21179
  fi
 
21180
done
 
21181
 
 
21182
# Required to use basename.
 
21183
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21184
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
21185
  as_expr=expr
 
21186
else
 
21187
  as_expr=false
 
21188
fi
 
21189
 
 
21190
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
21191
  as_basename=basename
 
21192
else
 
21193
  as_basename=false
 
21194
fi
 
21195
 
 
21196
 
 
21197
# Name of the executable.
 
21198
as_me=`$as_basename -- "$0" ||
 
21199
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
21200
         X"$0" : 'X\(//\)$' \| \
 
21201
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
21202
echo X/"$0" |
 
21203
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
21204
            s//\1/
 
21205
            q
 
21206
          }
 
21207
          /^X\/\(\/\/\)$/{
 
21208
            s//\1/
 
21209
            q
 
21210
          }
 
21211
          /^X\/\(\/\).*/{
 
21212
            s//\1/
 
21213
            q
 
21214
          }
 
21215
          s/.*/./; q'`
 
21216
 
 
21217
# CDPATH.
 
21218
$as_unset CDPATH
 
21219
 
 
21220
 
 
21221
 
 
21222
  as_lineno_1=$LINENO
 
21223
  as_lineno_2=$LINENO
 
21224
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21225
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
21226
 
 
21227
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
21228
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
21229
  # line-number line after each line using $LINENO; the second 'sed'
 
21230
  # does the real work.  The second script uses 'N' to pair each
 
21231
  # line-number line with the line containing $LINENO, and appends
 
21232
  # trailing '-' during substitution so that $LINENO is not a special
 
21233
  # case at line end.
 
21234
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
21235
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
21236
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
21237
  sed -n '
 
21238
    p
 
21239
    /[$]LINENO/=
 
21240
  ' <$as_myself |
 
21241
    sed '
 
21242
      s/[$]LINENO.*/&-/
 
21243
      t lineno
 
21244
      b
 
21245
      :lineno
 
21246
      N
 
21247
      :loop
 
21248
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
21249
      t loop
 
21250
      s/-\n.*//
 
21251
    ' >$as_me.lineno &&
 
21252
  chmod +x "$as_me.lineno" ||
 
21253
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
21254
   { (exit 1); exit 1; }; }
 
21255
 
 
21256
  # Don't try to exec as it changes $[0], causing all sort of problems
 
21257
  # (the dirname of $[0] is not the place where we might find the
 
21258
  # original and so on.  Autoconf is especially sensitive to this).
 
21259
  . "./$as_me.lineno"
 
21260
  # Exit status is that of the last command.
 
21261
  exit
 
21262
}
 
21263
 
 
21264
 
 
21265
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
21266
  as_dirname=dirname
 
21267
else
 
21268
  as_dirname=false
 
21269
fi
 
21270
 
 
21271
ECHO_C= ECHO_N= ECHO_T=
 
21272
case `echo -n x` in
 
21273
-n*)
 
21274
  case `echo 'x\c'` in
 
21275
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
21276
  *)   ECHO_C='\c';;
 
21277
  esac;;
 
21278
*)
 
21279
  ECHO_N='-n';;
 
21280
esac
 
21281
 
 
21282
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21283
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
21284
  as_expr=expr
 
21285
else
 
21286
  as_expr=false
 
21287
fi
 
21288
 
 
21289
rm -f conf$$ conf$$.exe conf$$.file
 
21290
if test -d conf$$.dir; then
 
21291
  rm -f conf$$.dir/conf$$.file
 
21292
else
 
21293
  rm -f conf$$.dir
 
21294
  mkdir conf$$.dir
 
21295
fi
 
21296
echo >conf$$.file
 
21297
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
21298
  as_ln_s='ln -s'
 
21299
  # ... but there are two gotchas:
 
21300
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
21301
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
21302
  # In both cases, we have to default to `cp -p'.
 
21303
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
21304
    as_ln_s='cp -p'
 
21305
elif ln conf$$.file conf$$ 2>/dev/null; then
 
21306
  as_ln_s=ln
 
21307
else
 
21308
  as_ln_s='cp -p'
 
21309
fi
 
21310
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
21311
rmdir conf$$.dir 2>/dev/null
 
21312
 
 
21313
if mkdir -p . 2>/dev/null; then
 
21314
  as_mkdir_p=:
 
21315
else
 
21316
  test -d ./-p && rmdir ./-p
 
21317
  as_mkdir_p=false
 
21318
fi
 
21319
 
 
21320
if test -x / >/dev/null 2>&1; then
 
21321
  as_test_x='test -x'
 
21322
else
 
21323
  if ls -dL / >/dev/null 2>&1; then
 
21324
    as_ls_L_option=L
 
21325
  else
 
21326
    as_ls_L_option=
 
21327
  fi
 
21328
  as_test_x='
 
21329
    eval sh -c '\''
 
21330
      if test -d "$1"; then
 
21331
        test -d "$1/.";
 
21332
      else
 
21333
        case $1 in
 
21334
        -*)set "./$1";;
 
21335
        esac;
 
21336
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
21337
        ???[sx]*):;;*)false;;esac;fi
 
21338
    '\'' sh
 
21339
  '
 
21340
fi
 
21341
as_executable_p=$as_test_x
 
21342
 
 
21343
# Sed expression to map a string onto a valid CPP name.
 
21344
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
21345
 
 
21346
# Sed expression to map a string onto a valid variable name.
 
21347
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
21348
 
 
21349
 
 
21350
exec 6>&1
 
21351
 
 
21352
# Save the log message, to keep $[0] and so on meaningful, and to
 
21353
# report actual input values of CONFIG_FILES etc. instead of their
 
21354
# values after options handling.
 
21355
ac_log="
 
21356
This file was extended by wizardpen $as_me 1.0.0, which was
 
21357
generated by GNU Autoconf 2.61.  Invocation command line was
 
21358
 
 
21359
  CONFIG_FILES    = $CONFIG_FILES
 
21360
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
21361
  CONFIG_LINKS    = $CONFIG_LINKS
 
21362
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
21363
  $ $0 $@
 
21364
 
 
21365
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
21366
"
 
21367
 
 
21368
_ACEOF
 
21369
 
 
21370
cat >>$CONFIG_STATUS <<_ACEOF
 
21371
# Files that config.status was made for.
 
21372
config_files="$ac_config_files"
 
21373
config_headers="$ac_config_headers"
 
21374
config_commands="$ac_config_commands"
 
21375
 
 
21376
_ACEOF
 
21377
 
 
21378
cat >>$CONFIG_STATUS <<\_ACEOF
 
21379
ac_cs_usage="\
 
21380
\`$as_me' instantiates files from templates according to the
 
21381
current configuration.
 
21382
 
 
21383
Usage: $0 [OPTIONS] [FILE]...
 
21384
 
 
21385
  -h, --help       print this help, then exit
 
21386
  -V, --version    print version number and configuration settings, then exit
 
21387
  -q, --quiet      do not print progress messages
 
21388
  -d, --debug      don't remove temporary files
 
21389
      --recheck    update $as_me by reconfiguring in the same conditions
 
21390
  --file=FILE[:TEMPLATE]
 
21391
                   instantiate the configuration file FILE
 
21392
  --header=FILE[:TEMPLATE]
 
21393
                   instantiate the configuration header FILE
 
21394
 
 
21395
Configuration files:
 
21396
$config_files
 
21397
 
 
21398
Configuration headers:
 
21399
$config_headers
 
21400
 
 
21401
Configuration commands:
 
21402
$config_commands
 
21403
 
 
21404
Report bugs to <bug-autoconf@gnu.org>."
 
21405
 
 
21406
_ACEOF
 
21407
cat >>$CONFIG_STATUS <<_ACEOF
 
21408
ac_cs_version="\\
 
21409
wizardpen config.status 1.0.0
 
21410
configured by $0, generated by GNU Autoconf 2.61,
 
21411
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
21412
 
 
21413
Copyright (C) 2006 Free Software Foundation, Inc.
 
21414
This config.status script is free software; the Free Software Foundation
 
21415
gives unlimited permission to copy, distribute and modify it."
 
21416
 
 
21417
ac_pwd='$ac_pwd'
 
21418
srcdir='$srcdir'
 
21419
INSTALL='$INSTALL'
 
21420
MKDIR_P='$MKDIR_P'
 
21421
_ACEOF
 
21422
 
 
21423
cat >>$CONFIG_STATUS <<\_ACEOF
 
21424
# If no file are specified by the user, then we need to provide default
 
21425
# value.  By we need to know if files were specified by the user.
 
21426
ac_need_defaults=:
 
21427
while test $# != 0
 
21428
do
 
21429
  case $1 in
 
21430
  --*=*)
 
21431
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
21432
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
21433
    ac_shift=:
 
21434
    ;;
 
21435
  *)
 
21436
    ac_option=$1
 
21437
    ac_optarg=$2
 
21438
    ac_shift=shift
 
21439
    ;;
 
21440
  esac
 
21441
 
 
21442
  case $ac_option in
 
21443
  # Handling of the options.
 
21444
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
21445
    ac_cs_recheck=: ;;
 
21446
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
21447
    echo "$ac_cs_version"; exit ;;
 
21448
  --debug | --debu | --deb | --de | --d | -d )
 
21449
    debug=: ;;
 
21450
  --file | --fil | --fi | --f )
 
21451
    $ac_shift
 
21452
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21453
    ac_need_defaults=false;;
 
21454
  --header | --heade | --head | --hea )
 
21455
    $ac_shift
 
21456
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21457
    ac_need_defaults=false;;
 
21458
  --he | --h)
 
21459
    # Conflict between --help and --header
 
21460
    { echo "$as_me: error: ambiguous option: $1
 
21461
Try \`$0 --help' for more information." >&2
 
21462
   { (exit 1); exit 1; }; };;
 
21463
  --help | --hel | -h )
 
21464
    echo "$ac_cs_usage"; exit ;;
 
21465
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21466
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21467
    ac_cs_silent=: ;;
 
21468
 
 
21469
  # This is an error.
 
21470
  -*) { echo "$as_me: error: unrecognized option: $1
 
21471
Try \`$0 --help' for more information." >&2
 
21472
   { (exit 1); exit 1; }; } ;;
 
21473
 
 
21474
  *) ac_config_targets="$ac_config_targets $1"
 
21475
     ac_need_defaults=false ;;
 
21476
 
 
21477
  esac
 
21478
  shift
 
21479
done
 
21480
 
 
21481
ac_configure_extra_args=
 
21482
 
 
21483
if $ac_cs_silent; then
 
21484
  exec 6>/dev/null
 
21485
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21486
fi
 
21487
 
 
21488
_ACEOF
 
21489
cat >>$CONFIG_STATUS <<_ACEOF
 
21490
if \$ac_cs_recheck; then
 
21491
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21492
  CONFIG_SHELL=$SHELL
 
21493
  export CONFIG_SHELL
 
21494
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21495
fi
 
21496
 
 
21497
_ACEOF
 
21498
cat >>$CONFIG_STATUS <<\_ACEOF
 
21499
exec 5>>config.log
 
21500
{
 
21501
  echo
 
21502
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21503
## Running $as_me. ##
 
21504
_ASBOX
 
21505
  echo "$ac_log"
 
21506
} >&5
 
21507
 
 
21508
_ACEOF
 
21509
cat >>$CONFIG_STATUS <<_ACEOF
 
21510
#
 
21511
# INIT-COMMANDS
 
21512
#
 
21513
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21514
 
 
21515
_ACEOF
 
21516
 
 
21517
cat >>$CONFIG_STATUS <<\_ACEOF
 
21518
 
 
21519
# Handling of arguments.
 
21520
for ac_config_target in $ac_config_targets
 
21521
do
 
21522
  case $ac_config_target in
 
21523
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21524
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21525
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21526
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
21527
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
21528
 
 
21529
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21530
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21531
   { (exit 1); exit 1; }; };;
 
21532
  esac
 
21533
done
 
21534
 
 
21535
 
 
21536
# If the user did not use the arguments to specify the items to instantiate,
 
21537
# then the envvar interface is used.  Set only those that are not.
 
21538
# We use the long form for the default assignment because of an extremely
 
21539
# bizarre bug on SunOS 4.1.3.
 
21540
if $ac_need_defaults; then
 
21541
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21542
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21543
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21544
fi
 
21545
 
 
21546
# Have a temporary directory for convenience.  Make it in the build tree
 
21547
# simply because there is no reason against having it here, and in addition,
 
21548
# creating and moving files from /tmp can sometimes cause problems.
 
21549
# Hook for its removal unless debugging.
 
21550
# Note that there is a small window in which the directory will not be cleaned:
 
21551
# after its creation but before its name has been assigned to `$tmp'.
 
21552
$debug ||
 
21553
{
 
21554
  tmp=
 
21555
  trap 'exit_status=$?
 
21556
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
21557
' 0
 
21558
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21559
}
 
21560
# Create a (secure) tmp directory for tmp files.
 
21561
 
 
21562
{
 
21563
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
21564
  test -n "$tmp" && test -d "$tmp"
 
21565
}  ||
 
21566
{
 
21567
  tmp=./conf$$-$RANDOM
 
21568
  (umask 077 && mkdir "$tmp")
 
21569
} ||
 
21570
{
 
21571
   echo "$me: cannot create a temporary directory in ." >&2
 
21572
   { (exit 1); exit 1; }
 
21573
}
 
21574
 
 
21575
#
 
21576
# Set up the sed scripts for CONFIG_FILES section.
 
21577
#
 
21578
 
 
21579
# No need to generate the scripts if there are no CONFIG_FILES.
 
21580
# This happens for instance when ./config.status config.h
 
21581
if test -n "$CONFIG_FILES"; then
 
21582
 
 
21583
_ACEOF
 
21584
 
 
21585
 
 
21586
 
 
21587
ac_delim='%!_!# '
 
21588
for ac_last_try in false false false false false :; do
 
21589
  cat >conf$$subs.sed <<_ACEOF
 
21590
SHELL!$SHELL$ac_delim
 
21591
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
21592
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
21593
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
21594
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
21595
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
21596
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
21597
exec_prefix!$exec_prefix$ac_delim
 
21598
prefix!$prefix$ac_delim
 
21599
program_transform_name!$program_transform_name$ac_delim
 
21600
bindir!$bindir$ac_delim
 
21601
sbindir!$sbindir$ac_delim
 
21602
libexecdir!$libexecdir$ac_delim
 
21603
datarootdir!$datarootdir$ac_delim
 
21604
datadir!$datadir$ac_delim
 
21605
sysconfdir!$sysconfdir$ac_delim
 
21606
sharedstatedir!$sharedstatedir$ac_delim
 
21607
localstatedir!$localstatedir$ac_delim
 
21608
includedir!$includedir$ac_delim
 
21609
oldincludedir!$oldincludedir$ac_delim
 
21610
docdir!$docdir$ac_delim
 
21611
infodir!$infodir$ac_delim
 
21612
htmldir!$htmldir$ac_delim
 
21613
dvidir!$dvidir$ac_delim
 
21614
pdfdir!$pdfdir$ac_delim
 
21615
psdir!$psdir$ac_delim
 
21616
libdir!$libdir$ac_delim
 
21617
localedir!$localedir$ac_delim
 
21618
mandir!$mandir$ac_delim
 
21619
DEFS!$DEFS$ac_delim
 
21620
ECHO_C!$ECHO_C$ac_delim
 
21621
ECHO_N!$ECHO_N$ac_delim
 
21622
ECHO_T!$ECHO_T$ac_delim
 
21623
LIBS!$LIBS$ac_delim
 
21624
build_alias!$build_alias$ac_delim
 
21625
host_alias!$host_alias$ac_delim
 
21626
target_alias!$target_alias$ac_delim
 
21627
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
21628
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
21629
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
21630
am__isrc!$am__isrc$ac_delim
 
21631
CYGPATH_W!$CYGPATH_W$ac_delim
 
21632
PACKAGE!$PACKAGE$ac_delim
 
21633
VERSION!$VERSION$ac_delim
 
21634
ACLOCAL!$ACLOCAL$ac_delim
 
21635
AUTOCONF!$AUTOCONF$ac_delim
 
21636
AUTOMAKE!$AUTOMAKE$ac_delim
 
21637
AUTOHEADER!$AUTOHEADER$ac_delim
 
21638
MAKEINFO!$MAKEINFO$ac_delim
 
21639
install_sh!$install_sh$ac_delim
 
21640
STRIP!$STRIP$ac_delim
 
21641
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
21642
mkdir_p!$mkdir_p$ac_delim
 
21643
AWK!$AWK$ac_delim
 
21644
SET_MAKE!$SET_MAKE$ac_delim
 
21645
am__leading_dot!$am__leading_dot$ac_delim
 
21646
AMTAR!$AMTAR$ac_delim
 
21647
am__tar!$am__tar$ac_delim
 
21648
am__untar!$am__untar$ac_delim
 
21649
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 
21650
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 
21651
MAINT!$MAINT$ac_delim
 
21652
DRIVER_NAME!$DRIVER_NAME$ac_delim
 
21653
build!$build$ac_delim
 
21654
build_cpu!$build_cpu$ac_delim
 
21655
build_vendor!$build_vendor$ac_delim
 
21656
build_os!$build_os$ac_delim
 
21657
host!$host$ac_delim
 
21658
host_cpu!$host_cpu$ac_delim
 
21659
host_vendor!$host_vendor$ac_delim
 
21660
host_os!$host_os$ac_delim
 
21661
CC!$CC$ac_delim
 
21662
CFLAGS!$CFLAGS$ac_delim
 
21663
LDFLAGS!$LDFLAGS$ac_delim
 
21664
CPPFLAGS!$CPPFLAGS$ac_delim
 
21665
ac_ct_CC!$ac_ct_CC$ac_delim
 
21666
EXEEXT!$EXEEXT$ac_delim
 
21667
OBJEXT!$OBJEXT$ac_delim
 
21668
DEPDIR!$DEPDIR$ac_delim
 
21669
am__include!$am__include$ac_delim
 
21670
am__quote!$am__quote$ac_delim
 
21671
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
21672
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
21673
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
21674
CCDEPMODE!$CCDEPMODE$ac_delim
 
21675
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
21676
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
21677
GREP!$GREP$ac_delim
 
21678
EGREP!$EGREP$ac_delim
 
21679
LN_S!$LN_S$ac_delim
 
21680
ECHO!$ECHO$ac_delim
 
21681
AR!$AR$ac_delim
 
21682
RANLIB!$RANLIB$ac_delim
 
21683
CPP!$CPP$ac_delim
 
21684
CXX!$CXX$ac_delim
 
21685
CXXFLAGS!$CXXFLAGS$ac_delim
 
21686
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
21687
_ACEOF
 
21688
 
 
21689
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
21690
    break
 
21691
  elif $ac_last_try; then
 
21692
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21693
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21694
   { (exit 1); exit 1; }; }
 
21695
  else
 
21696
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21697
  fi
 
21698
done
 
21699
 
 
21700
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21701
if test -n "$ac_eof"; then
 
21702
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21703
  ac_eof=`expr $ac_eof + 1`
 
21704
fi
 
21705
 
 
21706
cat >>$CONFIG_STATUS <<_ACEOF
 
21707
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
21708
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21709
_ACEOF
 
21710
sed '
 
21711
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21712
s/^/s,@/; s/!/@,|#_!!_#|/
 
21713
:n
 
21714
t n
 
21715
s/'"$ac_delim"'$/,g/; t
 
21716
s/$/\\/; p
 
21717
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21718
' >>$CONFIG_STATUS <conf$$subs.sed
 
21719
rm -f conf$$subs.sed
 
21720
cat >>$CONFIG_STATUS <<_ACEOF
 
21721
CEOF$ac_eof
 
21722
_ACEOF
 
21723
 
 
21724
 
 
21725
ac_delim='%!_!# '
 
21726
for ac_last_try in false false false false false :; do
 
21727
  cat >conf$$subs.sed <<_ACEOF
 
21728
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
21729
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
21730
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
21731
CXXCPP!$CXXCPP$ac_delim
 
21732
F77!$F77$ac_delim
 
21733
FFLAGS!$FFLAGS$ac_delim
 
21734
ac_ct_F77!$ac_ct_F77$ac_delim
 
21735
LIBTOOL!$LIBTOOL$ac_delim
 
21736
inputdir!$inputdir$ac_delim
 
21737
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
21738
XORG_CFLAGS!$XORG_CFLAGS$ac_delim
 
21739
XORG_LIBS!$XORG_LIBS$ac_delim
 
21740
APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
 
21741
LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
 
21742
FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
 
21743
MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
 
21744
DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
 
21745
ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
 
21746
APP_MAN_DIR!$APP_MAN_DIR$ac_delim
 
21747
LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
 
21748
FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
 
21749
MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
 
21750
DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
 
21751
ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
 
21752
LIBOBJS!$LIBOBJS$ac_delim
 
21753
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
21754
_ACEOF
 
21755
 
 
21756
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
 
21757
    break
 
21758
  elif $ac_last_try; then
 
21759
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21760
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21761
   { (exit 1); exit 1; }; }
 
21762
  else
 
21763
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21764
  fi
 
21765
done
 
21766
 
 
21767
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21768
if test -n "$ac_eof"; then
 
21769
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21770
  ac_eof=`expr $ac_eof + 1`
 
21771
fi
 
21772
 
 
21773
cat >>$CONFIG_STATUS <<_ACEOF
 
21774
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
21775
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
21776
_ACEOF
 
21777
sed '
 
21778
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21779
s/^/s,@/; s/!/@,|#_!!_#|/
 
21780
:n
 
21781
t n
 
21782
s/'"$ac_delim"'$/,g/; t
 
21783
s/$/\\/; p
 
21784
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21785
' >>$CONFIG_STATUS <conf$$subs.sed
 
21786
rm -f conf$$subs.sed
 
21787
cat >>$CONFIG_STATUS <<_ACEOF
 
21788
:end
 
21789
s/|#_!!_#|//g
 
21790
CEOF$ac_eof
 
21791
_ACEOF
 
21792
 
 
21793
 
 
21794
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21795
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21796
# trailing colons and then remove the whole line if VPATH becomes empty
 
21797
# (actually we leave an empty line to preserve line numbers).
 
21798
if test "x$srcdir" = x.; then
 
21799
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21800
s/:*\$(srcdir):*/:/
 
21801
s/:*\${srcdir}:*/:/
 
21802
s/:*@srcdir@:*/:/
 
21803
s/^\([^=]*=[     ]*\):*/\1/
 
21804
s/:*$//
 
21805
s/^[^=]*=[       ]*$//
 
21806
}'
 
21807
fi
 
21808
 
 
21809
cat >>$CONFIG_STATUS <<\_ACEOF
 
21810
fi # test -n "$CONFIG_FILES"
 
21811
 
 
21812
 
 
21813
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
21814
do
 
21815
  case $ac_tag in
 
21816
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
21817
  esac
 
21818
  case $ac_mode$ac_tag in
 
21819
  :[FHL]*:*);;
 
21820
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
21821
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
21822
   { (exit 1); exit 1; }; };;
 
21823
  :[FH]-) ac_tag=-:-;;
 
21824
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
21825
  esac
 
21826
  ac_save_IFS=$IFS
 
21827
  IFS=:
 
21828
  set x $ac_tag
 
21829
  IFS=$ac_save_IFS
 
21830
  shift
 
21831
  ac_file=$1
 
21832
  shift
 
21833
 
 
21834
  case $ac_mode in
 
21835
  :L) ac_source=$1;;
 
21836
  :[FH])
 
21837
    ac_file_inputs=
 
21838
    for ac_f
 
21839
    do
 
21840
      case $ac_f in
 
21841
      -) ac_f="$tmp/stdin";;
 
21842
      *) # Look for the file first in the build tree, then in the source tree
 
21843
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
21844
         # because $ac_f cannot contain `:'.
 
21845
         test -f "$ac_f" ||
 
21846
           case $ac_f in
 
21847
           [\\/$]*) false;;
 
21848
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
21849
           esac ||
 
21850
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
21851
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
21852
   { (exit 1); exit 1; }; };;
 
21853
      esac
 
21854
      ac_file_inputs="$ac_file_inputs $ac_f"
 
21855
    done
 
21856
 
 
21857
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21858
    # use $as_me), people would be surprised to read:
 
21859
    #    /* config.h.  Generated by config.status.  */
 
21860
    configure_input="Generated from "`IFS=:
 
21861
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
21862
    if test x"$ac_file" != x-; then
 
21863
      configure_input="$ac_file.  $configure_input"
 
21864
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21865
echo "$as_me: creating $ac_file" >&6;}
 
21866
    fi
 
21867
 
 
21868
    case $ac_tag in
 
21869
    *:-:* | *:-) cat >"$tmp/stdin";;
 
21870
    esac
 
21871
    ;;
 
21872
  esac
 
21873
 
 
21874
  ac_dir=`$as_dirname -- "$ac_file" ||
 
21875
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21876
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21877
         X"$ac_file" : 'X\(//\)$' \| \
 
21878
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
21879
echo X"$ac_file" |
 
21880
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21881
            s//\1/
 
21882
            q
 
21883
          }
 
21884
          /^X\(\/\/\)[^/].*/{
 
21885
            s//\1/
 
21886
            q
 
21887
          }
 
21888
          /^X\(\/\/\)$/{
 
21889
            s//\1/
 
21890
            q
 
21891
          }
 
21892
          /^X\(\/\).*/{
 
21893
            s//\1/
 
21894
            q
 
21895
          }
 
21896
          s/.*/./; q'`
 
21897
  { as_dir="$ac_dir"
 
21898
  case $as_dir in #(
 
21899
  -*) as_dir=./$as_dir;;
 
21900
  esac
 
21901
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21902
    as_dirs=
 
21903
    while :; do
 
21904
      case $as_dir in #(
 
21905
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
21906
      *) as_qdir=$as_dir;;
 
21907
      esac
 
21908
      as_dirs="'$as_qdir' $as_dirs"
 
21909
      as_dir=`$as_dirname -- "$as_dir" ||
 
21910
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21911
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21912
         X"$as_dir" : 'X\(//\)$' \| \
 
21913
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21914
echo X"$as_dir" |
 
21915
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21916
            s//\1/
 
21917
            q
 
21918
          }
 
21919
          /^X\(\/\/\)[^/].*/{
 
21920
            s//\1/
 
21921
            q
 
21922
          }
 
21923
          /^X\(\/\/\)$/{
 
21924
            s//\1/
 
21925
            q
 
21926
          }
 
21927
          /^X\(\/\).*/{
 
21928
            s//\1/
 
21929
            q
 
21930
          }
 
21931
          s/.*/./; q'`
 
21932
      test -d "$as_dir" && break
 
21933
    done
 
21934
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21935
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21936
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21937
   { (exit 1); exit 1; }; }; }
 
21938
  ac_builddir=.
 
21939
 
 
21940
case "$ac_dir" in
 
21941
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21942
*)
 
21943
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21944
  # A ".." for each directory in $ac_dir_suffix.
 
21945
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
21946
  case $ac_top_builddir_sub in
 
21947
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21948
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
21949
  esac ;;
 
21950
esac
 
21951
ac_abs_top_builddir=$ac_pwd
 
21952
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
21953
# for backward compatibility:
 
21954
ac_top_builddir=$ac_top_build_prefix
 
21955
 
 
21956
case $srcdir in
 
21957
  .)  # We are building in place.
 
21958
    ac_srcdir=.
 
21959
    ac_top_srcdir=$ac_top_builddir_sub
 
21960
    ac_abs_top_srcdir=$ac_pwd ;;
 
21961
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
21962
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21963
    ac_top_srcdir=$srcdir
 
21964
    ac_abs_top_srcdir=$srcdir ;;
 
21965
  *) # Relative name.
 
21966
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
21967
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
21968
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
21969
esac
 
21970
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
21971
 
 
21972
 
 
21973
  case $ac_mode in
 
21974
  :F)
 
21975
  #
 
21976
  # CONFIG_FILE
 
21977
  #
 
21978
 
 
21979
  case $INSTALL in
 
21980
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21981
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
21982
  esac
 
21983
  ac_MKDIR_P=$MKDIR_P
 
21984
  case $MKDIR_P in
 
21985
  [\\/$]* | ?:[\\/]* ) ;;
 
21986
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
21987
  esac
 
21988
_ACEOF
 
21989
 
 
21990
cat >>$CONFIG_STATUS <<\_ACEOF
 
21991
# If the template does not know about datarootdir, expand it.
 
21992
# FIXME: This hack should be removed a few years after 2.60.
 
21993
ac_datarootdir_hack=; ac_datarootdir_seen=
 
21994
 
 
21995
case `sed -n '/datarootdir/ {
 
21996
  p
 
21997
  q
 
21998
}
 
21999
/@datadir@/p
 
22000
/@docdir@/p
 
22001
/@infodir@/p
 
22002
/@localedir@/p
 
22003
/@mandir@/p
 
22004
' $ac_file_inputs` in
 
22005
*datarootdir*) ac_datarootdir_seen=yes;;
 
22006
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
22007
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
22008
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
22009
_ACEOF
 
22010
cat >>$CONFIG_STATUS <<_ACEOF
 
22011
  ac_datarootdir_hack='
 
22012
  s&@datadir@&$datadir&g
 
22013
  s&@docdir@&$docdir&g
 
22014
  s&@infodir@&$infodir&g
 
22015
  s&@localedir@&$localedir&g
 
22016
  s&@mandir@&$mandir&g
 
22017
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
22018
esac
 
22019
_ACEOF
 
22020
 
 
22021
# Neutralize VPATH when `$srcdir' = `.'.
 
22022
# Shell code in configure.ac might set extrasub.
 
22023
# FIXME: do we really want to maintain this feature?
 
22024
cat >>$CONFIG_STATUS <<_ACEOF
 
22025
  sed "$ac_vpsub
 
22026
$extrasub
 
22027
_ACEOF
 
22028
cat >>$CONFIG_STATUS <<\_ACEOF
 
22029
:t
 
22030
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22031
s&@configure_input@&$configure_input&;t t
 
22032
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
22033
s&@srcdir@&$ac_srcdir&;t t
 
22034
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
22035
s&@top_srcdir@&$ac_top_srcdir&;t t
 
22036
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
22037
s&@builddir@&$ac_builddir&;t t
 
22038
s&@abs_builddir@&$ac_abs_builddir&;t t
 
22039
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
22040
s&@INSTALL@&$ac_INSTALL&;t t
 
22041
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
22042
$ac_datarootdir_hack
 
22043
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
22044
 
 
22045
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
22046
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
22047
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
22048
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22049
which seems to be undefined.  Please make sure it is defined." >&5
 
22050
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22051
which seems to be undefined.  Please make sure it is defined." >&2;}
 
22052
 
 
22053
  rm -f "$tmp/stdin"
 
22054
  case $ac_file in
 
22055
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
22056
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
22057
  esac
 
22058
 ;;
 
22059
  :H)
 
22060
  #
 
22061
  # CONFIG_HEADER
 
22062
  #
 
22063
_ACEOF
 
22064
 
 
22065
# Transform confdefs.h into a sed script `conftest.defines', that
 
22066
# substitutes the proper values into config.h.in to produce config.h.
 
22067
rm -f conftest.defines conftest.tail
 
22068
# First, append a space to every undef/define line, to ease matching.
 
22069
echo 's/$/ /' >conftest.defines
 
22070
# Then, protect against being on the right side of a sed subst, or in
 
22071
# an unquoted here document, in config.status.  If some macros were
 
22072
# called several times there might be several #defines for the same
 
22073
# symbol, which is useless.  But do not sort them, since the last
 
22074
# AC_DEFINE must be honored.
 
22075
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
22076
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
22077
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
22078
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
22079
# just an empty string.
 
22080
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
22081
ac_dB='\\)[      (].*,\\1define\\2'
 
22082
ac_dC=' '
 
22083
ac_dD=' ,'
 
22084
 
 
22085
uniq confdefs.h |
 
22086
  sed -n '
 
22087
        t rset
 
22088
        :rset
 
22089
        s/^[     ]*#[    ]*define[       ][      ]*//
 
22090
        t ok
 
22091
        d
 
22092
        :ok
 
22093
        s/[\\&,]/\\&/g
 
22094
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
22095
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
22096
  ' >>conftest.defines
 
22097
 
 
22098
# Remove the space that was appended to ease matching.
 
22099
# Then replace #undef with comments.  This is necessary, for
 
22100
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
22101
# on some systems where configure will not decide to define it.
 
22102
# (The regexp can be short, since the line contains either #define or #undef.)
 
22103
echo 's/ $//
 
22104
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
22105
 
 
22106
# Break up conftest.defines:
 
22107
ac_max_sed_lines=50
 
22108
 
 
22109
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
22110
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
22111
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
22112
# et cetera.
 
22113
ac_in='$ac_file_inputs'
 
22114
ac_out='"$tmp/out1"'
 
22115
ac_nxt='"$tmp/out2"'
 
22116
 
 
22117
while :
 
22118
do
 
22119
  # Write a here document:
 
22120
    cat >>$CONFIG_STATUS <<_ACEOF
 
22121
    # First, check the format of the line:
 
22122
    cat >"\$tmp/defines.sed" <<\\CEOF
 
22123
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
22124
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
22125
b
 
22126
:def
 
22127
_ACEOF
 
22128
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
22129
  echo 'CEOF
 
22130
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
22131
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
22132
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
22133
  grep . conftest.tail >/dev/null || break
 
22134
  rm -f conftest.defines
 
22135
  mv conftest.tail conftest.defines
 
22136
done
 
22137
rm -f conftest.defines conftest.tail
 
22138
 
 
22139
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
22140
cat >>$CONFIG_STATUS <<\_ACEOF
 
22141
  if test x"$ac_file" != x-; then
 
22142
    echo "/* $configure_input  */" >"$tmp/config.h"
 
22143
    cat "$ac_result" >>"$tmp/config.h"
 
22144
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
22145
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
22146
echo "$as_me: $ac_file is unchanged" >&6;}
 
22147
    else
 
22148
      rm -f $ac_file
 
22149
      mv "$tmp/config.h" $ac_file
 
22150
    fi
 
22151
  else
 
22152
    echo "/* $configure_input  */"
 
22153
    cat "$ac_result"
 
22154
  fi
 
22155
  rm -f "$tmp/out12"
 
22156
# Compute $ac_file's index in $config_headers.
 
22157
_am_stamp_count=1
 
22158
for _am_header in $config_headers :; do
 
22159
  case $_am_header in
 
22160
    $ac_file | $ac_file:* )
 
22161
      break ;;
 
22162
    * )
 
22163
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
22164
  esac
 
22165
done
 
22166
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
22167
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22168
         X$ac_file : 'X\(//\)[^/]' \| \
 
22169
         X$ac_file : 'X\(//\)$' \| \
 
22170
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
22171
echo X$ac_file |
 
22172
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22173
            s//\1/
 
22174
            q
 
22175
          }
 
22176
          /^X\(\/\/\)[^/].*/{
 
22177
            s//\1/
 
22178
            q
 
22179
          }
 
22180
          /^X\(\/\/\)$/{
 
22181
            s//\1/
 
22182
            q
 
22183
          }
 
22184
          /^X\(\/\).*/{
 
22185
            s//\1/
 
22186
            q
 
22187
          }
 
22188
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22189
 ;;
 
22190
 
 
22191
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
22192
echo "$as_me: executing $ac_file commands" >&6;}
 
22193
 ;;
 
22194
  esac
 
22195
 
 
22196
 
 
22197
  case $ac_file$ac_mode in
 
22198
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22199
  # Strip MF so we end up with the name of the file.
 
22200
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
22201
  # Check whether this is an Automake generated Makefile or not.
 
22202
  # We used to match only the files named `Makefile.in', but
 
22203
  # some people rename them; so instead we look at the file content.
 
22204
  # Grep'ing the first line is not enough: some people post-process
 
22205
  # each Makefile.in and add a new line on top of each file to say so.
 
22206
  # Grep'ing the whole file is not good either: AIX grep has a line
 
22207
  # limit of 2048, but all sed's we know have understand at least 4000.
 
22208
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
22209
    dirpart=`$as_dirname -- "$mf" ||
 
22210
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22211
         X"$mf" : 'X\(//\)[^/]' \| \
 
22212
         X"$mf" : 'X\(//\)$' \| \
 
22213
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
22214
echo X"$mf" |
 
22215
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22216
            s//\1/
 
22217
            q
 
22218
          }
 
22219
          /^X\(\/\/\)[^/].*/{
 
22220
            s//\1/
 
22221
            q
 
22222
          }
 
22223
          /^X\(\/\/\)$/{
 
22224
            s//\1/
 
22225
            q
 
22226
          }
 
22227
          /^X\(\/\).*/{
 
22228
            s//\1/
 
22229
            q
 
22230
          }
 
22231
          s/.*/./; q'`
 
22232
  else
 
22233
    continue
 
22234
  fi
 
22235
  # Extract the definition of DEPDIR, am__include, and am__quote
 
22236
  # from the Makefile without running `make'.
 
22237
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
22238
  test -z "$DEPDIR" && continue
 
22239
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
22240
  test -z "am__include" && continue
 
22241
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
22242
  # When using ansi2knr, U may be empty or an underscore; expand it
 
22243
  U=`sed -n 's/^U = //p' < "$mf"`
 
22244
  # Find all dependency output files, they are included files with
 
22245
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
22246
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
22247
  # expansion.
 
22248
  for file in `sed -n "
 
22249
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
22250
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
22251
    # Make sure the directory exists.
 
22252
    test -f "$dirpart/$file" && continue
 
22253
    fdir=`$as_dirname -- "$file" ||
 
22254
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22255
         X"$file" : 'X\(//\)[^/]' \| \
 
22256
         X"$file" : 'X\(//\)$' \| \
 
22257
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
22258
echo X"$file" |
 
22259
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22260
            s//\1/
 
22261
            q
 
22262
          }
 
22263
          /^X\(\/\/\)[^/].*/{
 
22264
            s//\1/
 
22265
            q
 
22266
          }
 
22267
          /^X\(\/\/\)$/{
 
22268
            s//\1/
 
22269
            q
 
22270
          }
 
22271
          /^X\(\/\).*/{
 
22272
            s//\1/
 
22273
            q
 
22274
          }
 
22275
          s/.*/./; q'`
 
22276
    { as_dir=$dirpart/$fdir
 
22277
  case $as_dir in #(
 
22278
  -*) as_dir=./$as_dir;;
 
22279
  esac
 
22280
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22281
    as_dirs=
 
22282
    while :; do
 
22283
      case $as_dir in #(
 
22284
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22285
      *) as_qdir=$as_dir;;
 
22286
      esac
 
22287
      as_dirs="'$as_qdir' $as_dirs"
 
22288
      as_dir=`$as_dirname -- "$as_dir" ||
 
22289
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22290
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22291
         X"$as_dir" : 'X\(//\)$' \| \
 
22292
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22293
echo X"$as_dir" |
 
22294
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22295
            s//\1/
 
22296
            q
 
22297
          }
 
22298
          /^X\(\/\/\)[^/].*/{
 
22299
            s//\1/
 
22300
            q
 
22301
          }
 
22302
          /^X\(\/\/\)$/{
 
22303
            s//\1/
 
22304
            q
 
22305
          }
 
22306
          /^X\(\/\).*/{
 
22307
            s//\1/
 
22308
            q
 
22309
          }
 
22310
          s/.*/./; q'`
 
22311
      test -d "$as_dir" && break
 
22312
    done
 
22313
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22314
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
22315
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
22316
   { (exit 1); exit 1; }; }; }
 
22317
    # echo "creating $dirpart/$file"
 
22318
    echo '# dummy' > "$dirpart/$file"
 
22319
  done
 
22320
done
 
22321
 ;;
 
22322
 
 
22323
  esac
 
22324
done # for ac_tag
 
22325
 
 
22326
 
 
22327
{ (exit 0); exit 0; }
 
22328
_ACEOF
 
22329
chmod +x $CONFIG_STATUS
 
22330
ac_clean_files=$ac_clean_files_save
 
22331
 
 
22332
 
 
22333
# configure is writing to config.log, and then calls config.status.
 
22334
# config.status does its own redirection, appending to config.log.
 
22335
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22336
# by configure, so config.status won't be able to write to it; its
 
22337
# output is simply discarded.  So we exec the FD to /dev/null,
 
22338
# effectively closing config.log, so it can be properly (re)opened and
 
22339
# appended to by config.status.  When coming back to configure, we
 
22340
# need to make the FD available again.
 
22341
if test "$no_create" != yes; then
 
22342
  ac_cs_success=:
 
22343
  ac_config_status_args=
 
22344
  test "$silent" = yes &&
 
22345
    ac_config_status_args="$ac_config_status_args --quiet"
 
22346
  exec 5>/dev/null
 
22347
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22348
  exec 5>>config.log
 
22349
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22350
  # would make configure fail if this is the last instruction.
 
22351
  $ac_cs_success || { (exit 1); exit 1; }
 
22352
fi
 
22353