~ubuntu-branches/ubuntu/wily/openocd/wily

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-11-25 12:20:04 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091125122004-4cnrzqw7v9qu064n
Tags: 0.3.1-1
* New upstream release (Closes: #554598, #537740).
* Add sh4 (instead of sh) to the list of architectures (Closes: #555553).
* Standards-Version: 3.8.3 (no changes required).
* debian/watch: Add file.
* debian/docs: Updates, some files were removed, some added.

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 openocd 0.3.1.
 
4
#
 
5
# Report bugs to <OpenOCD Mailing List <openocd-development@lists.berlios.de>>.
 
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$lt_ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
ECHO=${lt_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 <<_LT_EOF
 
584
$*
 
585
_LT_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 "$lt_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
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
600
      then
 
601
        break
 
602
      fi
 
603
    done
 
604
  fi
 
605
 
 
606
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
607
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
608
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
609
    :
 
610
  else
 
611
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
612
    # backslashes.  This makes it impossible to quote backslashes using
 
613
    #   echo "$something" | sed 's/\\/\\\\/g'
 
614
    #
 
615
    # So, first we look for a working echo in the user's PATH.
 
616
 
 
617
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
618
    for dir in $PATH /usr/ucb; do
 
619
      IFS="$lt_save_ifs"
 
620
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
621
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
622
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
623
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
624
        ECHO="$dir/echo"
 
625
        break
 
626
      fi
 
627
    done
 
628
    IFS="$lt_save_ifs"
 
629
 
 
630
    if test "X$ECHO" = Xecho; then
 
631
      # We didn't find a better echo, so look for alternatives.
 
632
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
633
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
634
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
        # This shell has a builtin print -r that does the trick.
 
636
        ECHO='print -r'
 
637
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
638
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
639
        # If we have ksh, try running configure again with it.
 
640
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
641
        export ORIGINAL_CONFIG_SHELL
 
642
        CONFIG_SHELL=/bin/ksh
 
643
        export CONFIG_SHELL
 
644
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
645
      else
 
646
        # Try using printf.
 
647
        ECHO='printf %s\n'
 
648
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
649
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
650
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
651
          # Cool, printf works
 
652
          :
 
653
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
654
             test "X$echo_testing_string" = 'X\t' &&
 
655
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
656
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
658
          export CONFIG_SHELL
 
659
          SHELL="$CONFIG_SHELL"
 
660
          export SHELL
 
661
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
662
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
663
             test "X$echo_testing_string" = 'X\t' &&
 
664
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
665
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
666
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
667
        else
 
668
          # maybe with a smaller string...
 
669
          prev=:
 
670
 
 
671
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
672
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
673
            then
 
674
              break
 
675
            fi
 
676
            prev="$cmd"
 
677
          done
 
678
 
 
679
          if test "$prev" != 'sed 50q "$0"'; then
 
680
            echo_test_string=`eval $prev`
 
681
            export echo_test_string
 
682
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
683
          else
 
684
            # Oops.  We lost completely, so just stick with echo.
 
685
            ECHO=echo
 
686
          fi
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
 
 
693
# Copy echo and quote the copy suitably for passing to libtool from
 
694
# the Makefile, instead of quoting the original, which is used later.
 
695
lt_ECHO=$ECHO
 
696
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
697
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
698
fi
 
699
 
 
700
 
 
701
 
 
702
 
 
703
exec 7<&0 </dev/null 6>&1
 
704
 
 
705
# Name of the host.
 
706
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
707
# so uname gets run too.
 
708
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
709
 
 
710
#
 
711
# Initializations.
 
712
#
 
713
ac_default_prefix=/usr/local
 
714
ac_clean_files=
 
715
ac_config_libobj_dir=.
 
716
LIBOBJS=
 
717
cross_compiling=no
 
718
subdirs=
 
719
MFLAGS=
 
720
MAKEFLAGS=
 
721
SHELL=${CONFIG_SHELL-/bin/sh}
 
722
 
 
723
# Identity of this package.
 
724
PACKAGE_NAME='openocd'
 
725
PACKAGE_TARNAME='openocd'
 
726
PACKAGE_VERSION='0.3.1'
 
727
PACKAGE_STRING='openocd 0.3.1'
 
728
PACKAGE_BUGREPORT='OpenOCD Mailing List <openocd-development@lists.berlios.de>'
 
729
 
 
730
ac_unique_file="src/openocd.c"
 
731
# Factoring default headers for most tests.
 
732
ac_includes_default="\
 
733
#include <stdio.h>
 
734
#ifdef HAVE_SYS_TYPES_H
 
735
# include <sys/types.h>
 
736
#endif
 
737
#ifdef HAVE_SYS_STAT_H
 
738
# include <sys/stat.h>
 
739
#endif
 
740
#ifdef STDC_HEADERS
 
741
# include <stdlib.h>
 
742
# include <stddef.h>
 
743
#else
 
744
# ifdef HAVE_STDLIB_H
 
745
#  include <stdlib.h>
 
746
# endif
 
747
#endif
 
748
#ifdef HAVE_STRING_H
 
749
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
750
#  include <memory.h>
 
751
# endif
 
752
# include <string.h>
 
753
#endif
 
754
#ifdef HAVE_STRINGS_H
 
755
# include <strings.h>
 
756
#endif
 
757
#ifdef HAVE_INTTYPES_H
 
758
# include <inttypes.h>
 
759
#endif
 
760
#ifdef HAVE_STDINT_H
 
761
# include <stdint.h>
 
762
#endif
 
763
#ifdef HAVE_UNISTD_H
 
764
# include <unistd.h>
 
765
#endif"
 
766
 
 
767
ac_subst_vars='SHELL
 
768
PATH_SEPARATOR
 
769
PACKAGE_NAME
 
770
PACKAGE_TARNAME
 
771
PACKAGE_VERSION
 
772
PACKAGE_STRING
 
773
PACKAGE_BUGREPORT
 
774
exec_prefix
 
775
prefix
 
776
program_transform_name
 
777
bindir
 
778
sbindir
 
779
libexecdir
 
780
datarootdir
 
781
datadir
 
782
sysconfdir
 
783
sharedstatedir
 
784
localstatedir
 
785
includedir
 
786
oldincludedir
 
787
docdir
 
788
infodir
 
789
htmldir
 
790
dvidir
 
791
pdfdir
 
792
psdir
 
793
libdir
 
794
localedir
 
795
mandir
 
796
DEFS
 
797
ECHO_C
 
798
ECHO_N
 
799
ECHO_T
 
800
LIBS
 
801
build_alias
 
802
host_alias
 
803
target_alias
 
804
INSTALL_PROGRAM
 
805
INSTALL_SCRIPT
 
806
INSTALL_DATA
 
807
am__isrc
 
808
CYGPATH_W
 
809
PACKAGE
 
810
VERSION
 
811
ACLOCAL
 
812
AUTOCONF
 
813
AUTOMAKE
 
814
AUTOHEADER
 
815
MAKEINFO
 
816
install_sh
 
817
STRIP
 
818
INSTALL_STRIP_PROGRAM
 
819
mkdir_p
 
820
AWK
 
821
SET_MAKE
 
822
am__leading_dot
 
823
AMTAR
 
824
am__tar
 
825
am__untar
 
826
MAINTAINER_MODE_TRUE
 
827
MAINTAINER_MODE_FALSE
 
828
MAINT
 
829
CC
 
830
CFLAGS
 
831
LDFLAGS
 
832
CPPFLAGS
 
833
ac_ct_CC
 
834
EXEEXT
 
835
OBJEXT
 
836
DEPDIR
 
837
am__include
 
838
am__quote
 
839
AMDEP_TRUE
 
840
AMDEP_FALSE
 
841
AMDEPBACKSLASH
 
842
CCDEPMODE
 
843
am__fastdepCC_TRUE
 
844
am__fastdepCC_FALSE
 
845
RANLIB
 
846
LIBTOOL
 
847
build
 
848
build_cpu
 
849
build_vendor
 
850
build_os
 
851
host
 
852
host_cpu
 
853
host_vendor
 
854
host_os
 
855
SED
 
856
GREP
 
857
EGREP
 
858
FGREP
 
859
LD
 
860
DUMPBIN
 
861
ac_ct_DUMPBIN
 
862
NM
 
863
LN_S
 
864
AR
 
865
lt_ECHO
 
866
DSYMUTIL
 
867
NMEDIT
 
868
LIPO
 
869
OTOOL
 
870
OTOOL64
 
871
CPP
 
872
LIBTOOL_DEPS
 
873
RELEASE_TRUE
 
874
RELEASE_FALSE
 
875
PARPORT_TRUE
 
876
PARPORT_FALSE
 
877
DUMMY_TRUE
 
878
DUMMY_FALSE
 
879
GIVEIO_TRUE
 
880
GIVEIO_FALSE
 
881
EP93XX_TRUE
 
882
EP93XX_FALSE
 
883
ECOSBOARD_TRUE
 
884
ECOSBOARD_FALSE
 
885
ZY1000_TRUE
 
886
ZY1000_FALSE
 
887
IOUTIL_TRUE
 
888
IOUTIL_FALSE
 
889
HTTPD_TRUE
 
890
HTTPD_FALSE
 
891
AT91RM9200_TRUE
 
892
AT91RM9200_FALSE
 
893
BITBANG_TRUE
 
894
BITBANG_FALSE
 
895
FT2232_LIBFTDI_TRUE
 
896
FT2232_LIBFTDI_FALSE
 
897
FT2232_DRIVER_TRUE
 
898
FT2232_DRIVER_FALSE
 
899
AMTJTAGACCEL_TRUE
 
900
AMTJTAGACCEL_FALSE
 
901
GW16012_TRUE
 
902
GW16012_FALSE
 
903
PRESTO_LIBFTDI_TRUE
 
904
PRESTO_LIBFTDI_FALSE
 
905
PRESTO_DRIVER_TRUE
 
906
PRESTO_DRIVER_FALSE
 
907
USBPROG_TRUE
 
908
USBPROG_FALSE
 
909
OOCD_TRACE_TRUE
 
910
OOCD_TRACE_FALSE
 
911
JLINK_TRUE
 
912
JLINK_FALSE
 
913
VSLLINK_TRUE
 
914
VSLLINK_FALSE
 
915
RLINK_TRUE
 
916
RLINK_FALSE
 
917
ARMJTAGEW_TRUE
 
918
ARMJTAGEW_FALSE
 
919
IS_CYGWIN_TRUE
 
920
IS_CYGWIN_FALSE
 
921
IS_MINGW_TRUE
 
922
IS_MINGW_FALSE
 
923
IS_WIN32_TRUE
 
924
IS_WIN32_FALSE
 
925
IS_DARWIN_TRUE
 
926
IS_DARWIN_FALSE
 
927
BITQ_TRUE
 
928
BITQ_FALSE
 
929
MINIDRIVER_TRUE
 
930
MINIDRIVER_FALSE
 
931
MINIDRIVER_DUMMY_TRUE
 
932
MINIDRIVER_DUMMY_FALSE
 
933
CC_FOR_BUILD
 
934
CFLAGS_FOR_BUILD
 
935
EXEEXT_FOR_BUILD
 
936
LIBOBJS
 
937
LTLIBOBJS'
 
938
ac_subst_files=''
 
939
      ac_precious_vars='build_alias
 
940
host_alias
 
941
target_alias
 
942
CC
 
943
CFLAGS
 
944
LDFLAGS
 
945
LIBS
 
946
CPPFLAGS
 
947
CPP'
 
948
 
 
949
 
 
950
# Initialize some variables set by options.
 
951
ac_init_help=
 
952
ac_init_version=false
 
953
# The variables have the same names as the options, with
 
954
# dashes changed to underlines.
 
955
cache_file=/dev/null
 
956
exec_prefix=NONE
 
957
no_create=
 
958
no_recursion=
 
959
prefix=NONE
 
960
program_prefix=NONE
 
961
program_suffix=NONE
 
962
program_transform_name=s,x,x,
 
963
silent=
 
964
site=
 
965
srcdir=
 
966
verbose=
 
967
x_includes=NONE
 
968
x_libraries=NONE
 
969
 
 
970
# Installation directory options.
 
971
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
972
# and all the variables that are supposed to be based on exec_prefix
 
973
# by default will actually change.
 
974
# Use braces instead of parens because sh, perl, etc. also accept them.
 
975
# (The list follows the same order as the GNU Coding Standards.)
 
976
bindir='${exec_prefix}/bin'
 
977
sbindir='${exec_prefix}/sbin'
 
978
libexecdir='${exec_prefix}/libexec'
 
979
datarootdir='${prefix}/share'
 
980
datadir='${datarootdir}'
 
981
sysconfdir='${prefix}/etc'
 
982
sharedstatedir='${prefix}/com'
 
983
localstatedir='${prefix}/var'
 
984
includedir='${prefix}/include'
 
985
oldincludedir='/usr/include'
 
986
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
987
infodir='${datarootdir}/info'
 
988
htmldir='${docdir}'
 
989
dvidir='${docdir}'
 
990
pdfdir='${docdir}'
 
991
psdir='${docdir}'
 
992
libdir='${exec_prefix}/lib'
 
993
localedir='${datarootdir}/locale'
 
994
mandir='${datarootdir}/man'
 
995
 
 
996
ac_prev=
 
997
ac_dashdash=
 
998
for ac_option
 
999
do
 
1000
  # If the previous option needs an argument, assign it.
 
1001
  if test -n "$ac_prev"; then
 
1002
    eval $ac_prev=\$ac_option
 
1003
    ac_prev=
 
1004
    continue
 
1005
  fi
 
1006
 
 
1007
  case $ac_option in
 
1008
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1009
  *)    ac_optarg=yes ;;
 
1010
  esac
 
1011
 
 
1012
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1013
 
 
1014
  case $ac_dashdash$ac_option in
 
1015
  --)
 
1016
    ac_dashdash=yes ;;
 
1017
 
 
1018
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1019
    ac_prev=bindir ;;
 
1020
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1021
    bindir=$ac_optarg ;;
 
1022
 
 
1023
  -build | --build | --buil | --bui | --bu)
 
1024
    ac_prev=build_alias ;;
 
1025
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1026
    build_alias=$ac_optarg ;;
 
1027
 
 
1028
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1029
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1030
    ac_prev=cache_file ;;
 
1031
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1032
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1033
    cache_file=$ac_optarg ;;
 
1034
 
 
1035
  --config-cache | -C)
 
1036
    cache_file=config.cache ;;
 
1037
 
 
1038
  -datadir | --datadir | --datadi | --datad)
 
1039
    ac_prev=datadir ;;
 
1040
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1041
    datadir=$ac_optarg ;;
 
1042
 
 
1043
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1044
  | --dataroo | --dataro | --datar)
 
1045
    ac_prev=datarootdir ;;
 
1046
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1047
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1048
    datarootdir=$ac_optarg ;;
 
1049
 
 
1050
  -disable-* | --disable-*)
 
1051
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1052
    # Reject names that are not valid shell variable names.
 
1053
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1054
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1055
   { (exit 1); exit 1; }; }
 
1056
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1057
    eval enable_$ac_feature=no ;;
 
1058
 
 
1059
  -docdir | --docdir | --docdi | --doc | --do)
 
1060
    ac_prev=docdir ;;
 
1061
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1062
    docdir=$ac_optarg ;;
 
1063
 
 
1064
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1065
    ac_prev=dvidir ;;
 
1066
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1067
    dvidir=$ac_optarg ;;
 
1068
 
 
1069
  -enable-* | --enable-*)
 
1070
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1071
    # Reject names that are not valid shell variable names.
 
1072
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1073
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1074
   { (exit 1); exit 1; }; }
 
1075
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1076
    eval enable_$ac_feature=\$ac_optarg ;;
 
1077
 
 
1078
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1079
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1080
  | --exec | --exe | --ex)
 
1081
    ac_prev=exec_prefix ;;
 
1082
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1083
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1084
  | --exec=* | --exe=* | --ex=*)
 
1085
    exec_prefix=$ac_optarg ;;
 
1086
 
 
1087
  -gas | --gas | --ga | --g)
 
1088
    # Obsolete; use --with-gas.
 
1089
    with_gas=yes ;;
 
1090
 
 
1091
  -help | --help | --hel | --he | -h)
 
1092
    ac_init_help=long ;;
 
1093
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1094
    ac_init_help=recursive ;;
 
1095
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1096
    ac_init_help=short ;;
 
1097
 
 
1098
  -host | --host | --hos | --ho)
 
1099
    ac_prev=host_alias ;;
 
1100
  -host=* | --host=* | --hos=* | --ho=*)
 
1101
    host_alias=$ac_optarg ;;
 
1102
 
 
1103
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1104
    ac_prev=htmldir ;;
 
1105
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1106
  | --ht=*)
 
1107
    htmldir=$ac_optarg ;;
 
1108
 
 
1109
  -includedir | --includedir | --includedi | --included | --include \
 
1110
  | --includ | --inclu | --incl | --inc)
 
1111
    ac_prev=includedir ;;
 
1112
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1113
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1114
    includedir=$ac_optarg ;;
 
1115
 
 
1116
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1117
    ac_prev=infodir ;;
 
1118
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1119
    infodir=$ac_optarg ;;
 
1120
 
 
1121
  -libdir | --libdir | --libdi | --libd)
 
1122
    ac_prev=libdir ;;
 
1123
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1124
    libdir=$ac_optarg ;;
 
1125
 
 
1126
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1127
  | --libexe | --libex | --libe)
 
1128
    ac_prev=libexecdir ;;
 
1129
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1130
  | --libexe=* | --libex=* | --libe=*)
 
1131
    libexecdir=$ac_optarg ;;
 
1132
 
 
1133
  -localedir | --localedir | --localedi | --localed | --locale)
 
1134
    ac_prev=localedir ;;
 
1135
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1136
    localedir=$ac_optarg ;;
 
1137
 
 
1138
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1139
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1140
    ac_prev=localstatedir ;;
 
1141
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1142
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1143
    localstatedir=$ac_optarg ;;
 
1144
 
 
1145
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1146
    ac_prev=mandir ;;
 
1147
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1148
    mandir=$ac_optarg ;;
 
1149
 
 
1150
  -nfp | --nfp | --nf)
 
1151
    # Obsolete; use --without-fp.
 
1152
    with_fp=no ;;
 
1153
 
 
1154
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1155
  | --no-cr | --no-c | -n)
 
1156
    no_create=yes ;;
 
1157
 
 
1158
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1159
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1160
    no_recursion=yes ;;
 
1161
 
 
1162
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1163
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1164
  | --oldin | --oldi | --old | --ol | --o)
 
1165
    ac_prev=oldincludedir ;;
 
1166
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1167
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1168
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1169
    oldincludedir=$ac_optarg ;;
 
1170
 
 
1171
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1172
    ac_prev=prefix ;;
 
1173
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1174
    prefix=$ac_optarg ;;
 
1175
 
 
1176
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1177
  | --program-pre | --program-pr | --program-p)
 
1178
    ac_prev=program_prefix ;;
 
1179
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1180
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1181
    program_prefix=$ac_optarg ;;
 
1182
 
 
1183
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1184
  | --program-suf | --program-su | --program-s)
 
1185
    ac_prev=program_suffix ;;
 
1186
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1187
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1188
    program_suffix=$ac_optarg ;;
 
1189
 
 
1190
  -program-transform-name | --program-transform-name \
 
1191
  | --program-transform-nam | --program-transform-na \
 
1192
  | --program-transform-n | --program-transform- \
 
1193
  | --program-transform | --program-transfor \
 
1194
  | --program-transfo | --program-transf \
 
1195
  | --program-trans | --program-tran \
 
1196
  | --progr-tra | --program-tr | --program-t)
 
1197
    ac_prev=program_transform_name ;;
 
1198
  -program-transform-name=* | --program-transform-name=* \
 
1199
  | --program-transform-nam=* | --program-transform-na=* \
 
1200
  | --program-transform-n=* | --program-transform-=* \
 
1201
  | --program-transform=* | --program-transfor=* \
 
1202
  | --program-transfo=* | --program-transf=* \
 
1203
  | --program-trans=* | --program-tran=* \
 
1204
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1205
    program_transform_name=$ac_optarg ;;
 
1206
 
 
1207
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1208
    ac_prev=pdfdir ;;
 
1209
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1210
    pdfdir=$ac_optarg ;;
 
1211
 
 
1212
  -psdir | --psdir | --psdi | --psd | --ps)
 
1213
    ac_prev=psdir ;;
 
1214
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1215
    psdir=$ac_optarg ;;
 
1216
 
 
1217
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1218
  | -silent | --silent | --silen | --sile | --sil)
 
1219
    silent=yes ;;
 
1220
 
 
1221
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1222
    ac_prev=sbindir ;;
 
1223
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1224
  | --sbi=* | --sb=*)
 
1225
    sbindir=$ac_optarg ;;
 
1226
 
 
1227
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1228
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1229
  | --sharedst | --shareds | --shared | --share | --shar \
 
1230
  | --sha | --sh)
 
1231
    ac_prev=sharedstatedir ;;
 
1232
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1233
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1234
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1235
  | --sha=* | --sh=*)
 
1236
    sharedstatedir=$ac_optarg ;;
 
1237
 
 
1238
  -site | --site | --sit)
 
1239
    ac_prev=site ;;
 
1240
  -site=* | --site=* | --sit=*)
 
1241
    site=$ac_optarg ;;
 
1242
 
 
1243
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1244
    ac_prev=srcdir ;;
 
1245
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1246
    srcdir=$ac_optarg ;;
 
1247
 
 
1248
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1249
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1250
    ac_prev=sysconfdir ;;
 
1251
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1252
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1253
    sysconfdir=$ac_optarg ;;
 
1254
 
 
1255
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1256
    ac_prev=target_alias ;;
 
1257
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1258
    target_alias=$ac_optarg ;;
 
1259
 
 
1260
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1261
    verbose=yes ;;
 
1262
 
 
1263
  -version | --version | --versio | --versi | --vers | -V)
 
1264
    ac_init_version=: ;;
 
1265
 
 
1266
  -with-* | --with-*)
 
1267
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1268
    # Reject names that are not valid shell variable names.
 
1269
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1270
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1271
   { (exit 1); exit 1; }; }
 
1272
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1273
    eval with_$ac_package=\$ac_optarg ;;
 
1274
 
 
1275
  -without-* | --without-*)
 
1276
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1277
    # Reject names that are not valid shell variable names.
 
1278
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1279
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1280
   { (exit 1); exit 1; }; }
 
1281
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1282
    eval with_$ac_package=no ;;
 
1283
 
 
1284
  --x)
 
1285
    # Obsolete; use --with-x.
 
1286
    with_x=yes ;;
 
1287
 
 
1288
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1289
  | --x-incl | --x-inc | --x-in | --x-i)
 
1290
    ac_prev=x_includes ;;
 
1291
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1292
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1293
    x_includes=$ac_optarg ;;
 
1294
 
 
1295
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1296
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1297
    ac_prev=x_libraries ;;
 
1298
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1299
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1300
    x_libraries=$ac_optarg ;;
 
1301
 
 
1302
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1303
Try \`$0 --help' for more information." >&2
 
1304
   { (exit 1); exit 1; }; }
 
1305
    ;;
 
1306
 
 
1307
  *=*)
 
1308
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1309
    # Reject names that are not valid shell variable names.
 
1310
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1311
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1312
   { (exit 1); exit 1; }; }
 
1313
    eval $ac_envvar=\$ac_optarg
 
1314
    export $ac_envvar ;;
 
1315
 
 
1316
  *)
 
1317
    # FIXME: should be removed in autoconf 3.0.
 
1318
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1319
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1320
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1321
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1322
    ;;
 
1323
 
 
1324
  esac
 
1325
done
 
1326
 
 
1327
if test -n "$ac_prev"; then
 
1328
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1329
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1330
   { (exit 1); exit 1; }; }
 
1331
fi
 
1332
 
 
1333
# Be sure to have absolute directory names.
 
1334
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1335
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1336
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1337
                libdir localedir mandir
 
1338
do
 
1339
  eval ac_val=\$$ac_var
 
1340
  case $ac_val in
 
1341
    [\\/$]* | ?:[\\/]* )  continue;;
 
1342
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1343
  esac
 
1344
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1345
   { (exit 1); exit 1; }; }
 
1346
done
 
1347
 
 
1348
# There might be people who depend on the old broken behavior: `$host'
 
1349
# used to hold the argument of --host etc.
 
1350
# FIXME: To remove some day.
 
1351
build=$build_alias
 
1352
host=$host_alias
 
1353
target=$target_alias
 
1354
 
 
1355
# FIXME: To remove some day.
 
1356
if test "x$host_alias" != x; then
 
1357
  if test "x$build_alias" = x; then
 
1358
    cross_compiling=maybe
 
1359
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1360
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1361
  elif test "x$build_alias" != "x$host_alias"; then
 
1362
    cross_compiling=yes
 
1363
  fi
 
1364
fi
 
1365
 
 
1366
ac_tool_prefix=
 
1367
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1368
 
 
1369
test "$silent" = yes && exec 6>/dev/null
 
1370
 
 
1371
 
 
1372
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1373
ac_ls_di=`ls -di .` &&
 
1374
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1375
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1376
   { (exit 1); exit 1; }; }
 
1377
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1378
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
 
 
1381
 
 
1382
# Find the source files, if location was not specified.
 
1383
if test -z "$srcdir"; then
 
1384
  ac_srcdir_defaulted=yes
 
1385
  # Try the directory containing this script, then the parent directory.
 
1386
  ac_confdir=`$as_dirname -- "$0" ||
 
1387
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1388
         X"$0" : 'X\(//\)[^/]' \| \
 
1389
         X"$0" : 'X\(//\)$' \| \
 
1390
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1391
echo X"$0" |
 
1392
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1393
            s//\1/
 
1394
            q
 
1395
          }
 
1396
          /^X\(\/\/\)[^/].*/{
 
1397
            s//\1/
 
1398
            q
 
1399
          }
 
1400
          /^X\(\/\/\)$/{
 
1401
            s//\1/
 
1402
            q
 
1403
          }
 
1404
          /^X\(\/\).*/{
 
1405
            s//\1/
 
1406
            q
 
1407
          }
 
1408
          s/.*/./; q'`
 
1409
  srcdir=$ac_confdir
 
1410
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1411
    srcdir=..
 
1412
  fi
 
1413
else
 
1414
  ac_srcdir_defaulted=no
 
1415
fi
 
1416
if test ! -r "$srcdir/$ac_unique_file"; then
 
1417
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1418
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1419
   { (exit 1); exit 1; }; }
 
1420
fi
 
1421
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1422
ac_abs_confdir=`(
 
1423
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1424
   { (exit 1); exit 1; }; }
 
1425
        pwd)`
 
1426
# When building in place, set srcdir=.
 
1427
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1428
  srcdir=.
 
1429
fi
 
1430
# Remove unnecessary trailing slashes from srcdir.
 
1431
# Double slashes in file names in object file debugging info
 
1432
# mess up M-x gdb in Emacs.
 
1433
case $srcdir in
 
1434
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1435
esac
 
1436
for ac_var in $ac_precious_vars; do
 
1437
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1438
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1439
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1440
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1441
done
 
1442
 
 
1443
#
 
1444
# Report the --help message.
 
1445
#
 
1446
if test "$ac_init_help" = "long"; then
 
1447
  # Omit some internal or obsolete options to make the list less imposing.
 
1448
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1449
  cat <<_ACEOF
 
1450
\`configure' configures openocd 0.3.1 to adapt to many kinds of systems.
 
1451
 
 
1452
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1453
 
 
1454
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1455
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1456
 
 
1457
Defaults for the options are specified in brackets.
 
1458
 
 
1459
Configuration:
 
1460
  -h, --help              display this help and exit
 
1461
      --help=short        display options specific to this package
 
1462
      --help=recursive    display the short help of all the included packages
 
1463
  -V, --version           display version information and exit
 
1464
  -q, --quiet, --silent   do not print \`checking...' messages
 
1465
      --cache-file=FILE   cache test results in FILE [disabled]
 
1466
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1467
  -n, --no-create         do not create output files
 
1468
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1469
 
 
1470
Installation directories:
 
1471
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1472
                          [$ac_default_prefix]
 
1473
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1474
                          [PREFIX]
 
1475
 
 
1476
By default, \`make install' will install all the files in
 
1477
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1478
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1479
for instance \`--prefix=\$HOME'.
 
1480
 
 
1481
For better control, use the options below.
 
1482
 
 
1483
Fine tuning of the installation directories:
 
1484
  --bindir=DIR           user executables [EPREFIX/bin]
 
1485
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1486
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1487
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1488
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1489
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1490
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1491
  --includedir=DIR       C header files [PREFIX/include]
 
1492
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1493
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1494
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1495
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1496
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1497
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1498
  --docdir=DIR           documentation root [DATAROOTDIR/doc/openocd]
 
1499
  --htmldir=DIR          html documentation [DOCDIR]
 
1500
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1501
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1502
  --psdir=DIR            ps documentation [DOCDIR]
 
1503
_ACEOF
 
1504
 
 
1505
  cat <<\_ACEOF
 
1506
 
 
1507
Program names:
 
1508
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1509
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1510
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1511
 
 
1512
System types:
 
1513
  --build=BUILD     configure for building on BUILD [guessed]
 
1514
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1515
_ACEOF
 
1516
fi
 
1517
 
 
1518
if test -n "$ac_init_help"; then
 
1519
  case $ac_init_help in
 
1520
     short | recursive ) echo "Configuration of openocd 0.3.1:";;
 
1521
   esac
 
1522
  cat <<\_ACEOF
 
1523
 
 
1524
Optional Features:
 
1525
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1526
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1527
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1528
                          (and sometimes confusing) to the casual installer
 
1529
  --disable-dependency-tracking  speeds up one-time build
 
1530
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1531
  --enable-shared[=PKGS]  build shared libraries [default=no]
 
1532
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1533
  --enable-fast-install[=PKGS]
 
1534
                          optimize for fast installation [default=yes]
 
1535
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1536
  --disable-assert        turn off assertions
 
1537
  --disable-gccwarnings   Disable compiler warnings
 
1538
  --disable-wextra        Disable extra compiler warnings
 
1539
  --disable-werror        Do not treat warnings as errors
 
1540
  --enable-verbose        Enable verbose JTAG I/O messages (for debugging).
 
1541
  --enable-verbose-jtag-io
 
1542
                          Enable verbose JTAG I/O messages (for debugging).
 
1543
  --enable-verbose-usb-io Enable verbose USB I/O messages (for debugging)
 
1544
  --enable-verbose-usb-comms
 
1545
                          Enable verbose USB communication messages (for
 
1546
                          debugging)
 
1547
  --enable-malloc-logging Include free space in logging messages (requires
 
1548
                          malloc.h).
 
1549
  --enable-dummy          Enable building the dummy port driver
 
1550
  --enable-parport        Enable building the pc parallel port driver
 
1551
  --disable-parport-ppdev Disable use of ppdev (/dev/parportN) for parport
 
1552
                          (for x86 only)
 
1553
  --enable-parport-giveio Enable use of giveio for parport (for CygWin only)
 
1554
  --enable-ft2232_libftdi Enable building support for FT2232 based devices
 
1555
                          using the libftdi driver, opensource alternate of
 
1556
                          FTD2XX
 
1557
  --enable-ft2232_ftd2xx  Enable building support for FT2232 based devices
 
1558
                          using the FTD2XX driver from ftdichip.com
 
1559
  --enable-amtjtagaccel   Enable building the Amontec JTAG-Accelerator driver
 
1560
  --enable-ecosboard      Enable building support for eCos based JTAG debugger
 
1561
  --enable-zy1000         Enable ZY1000 interface
 
1562
  --enable-ioutil         Enable ioutil functions - useful for standalone
 
1563
                          OpenOCD implementations
 
1564
  --enable-httpd          Enable builtin httpd server - useful for standalone
 
1565
                          OpenOCD implementations
 
1566
  --enable-ep93xx         Enable building support for EP93xx based SBCs
 
1567
  --enable-at91rm9200     Enable building support for AT91RM9200 based SBCs
 
1568
  --enable-gw16012        Enable building support for the Gateworks GW16012
 
1569
                          JTAG Programmer
 
1570
  --enable-presto_libftdi Enable building support for ASIX Presto Programmer
 
1571
                          using the libftdi driver
 
1572
  --enable-presto_ftd2xx  Enable building support for ASIX Presto Programmer
 
1573
                          using the FTD2XX driver
 
1574
  --enable-usbprog        Enable building support for the usbprog JTAG
 
1575
                          Programmer
 
1576
  --enable-oocd_trace     Enable building support for some prototype
 
1577
                          OpenOCD+trace ETM capture hardware
 
1578
  --enable-jlink          Enable building support for the Segger J-Link JTAG
 
1579
                          Programmer
 
1580
  --enable-vsllink        Enable building support for the Versaloon-Link JTAG
 
1581
                          Programmer
 
1582
  --enable-rlink          Enable building support for the Raisonance RLink
 
1583
                          JTAG Programmer
 
1584
  --enable-arm-jtag-ew    Enable building support for the Olimex ARM-JTAG-EW
 
1585
                          Programmer
 
1586
  --enable-minidriver-dummy
 
1587
                          Enable the dummy minidriver.
 
1588
 
 
1589
Optional Packages:
 
1590
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1591
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1592
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1593
                          both]
 
1594
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1595
  --with-ftd2xx=<PATH>    This option has been removed.
 
1596
  --with-ftd2xx-win32-zipdir
 
1597
                          Where (CYGWIN/MINGW) the zip file from ftdichip.com
 
1598
                          was unpacked <default=search>
 
1599
  --with-ftd2xx-linux-tardir
 
1600
                          Where (Linux/Unix) the tar file from ftdichip.com
 
1601
                          was unpacked <default=search>
 
1602
  --with-ftd2xx-lib       Use static or shared ftd2xx libs on default static
 
1603
 
 
1604
Some influential environment variables:
 
1605
  CC          C compiler command
 
1606
  CFLAGS      C compiler flags
 
1607
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1608
              nonstandard directory <lib dir>
 
1609
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1610
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1611
              you have headers in a nonstandard directory <include dir>
 
1612
  CPP         C preprocessor
 
1613
 
 
1614
Use these variables to override the choices made by `configure' or to help
 
1615
it to find libraries and programs with nonstandard names/locations.
 
1616
 
 
1617
Report bugs to <OpenOCD Mailing List <openocd-development@lists.berlios.de>>.
 
1618
_ACEOF
 
1619
ac_status=$?
 
1620
fi
 
1621
 
 
1622
if test "$ac_init_help" = "recursive"; then
 
1623
  # If there are subdirs, report their specific --help.
 
1624
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1625
    test -d "$ac_dir" || continue
 
1626
    ac_builddir=.
 
1627
 
 
1628
case "$ac_dir" in
 
1629
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1630
*)
 
1631
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1632
  # A ".." for each directory in $ac_dir_suffix.
 
1633
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1634
  case $ac_top_builddir_sub in
 
1635
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1636
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1637
  esac ;;
 
1638
esac
 
1639
ac_abs_top_builddir=$ac_pwd
 
1640
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1641
# for backward compatibility:
 
1642
ac_top_builddir=$ac_top_build_prefix
 
1643
 
 
1644
case $srcdir in
 
1645
  .)  # We are building in place.
 
1646
    ac_srcdir=.
 
1647
    ac_top_srcdir=$ac_top_builddir_sub
 
1648
    ac_abs_top_srcdir=$ac_pwd ;;
 
1649
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1650
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1651
    ac_top_srcdir=$srcdir
 
1652
    ac_abs_top_srcdir=$srcdir ;;
 
1653
  *) # Relative name.
 
1654
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1655
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1656
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1657
esac
 
1658
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1659
 
 
1660
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1661
    # Check for guested configure.
 
1662
    if test -f "$ac_srcdir/configure.gnu"; then
 
1663
      echo &&
 
1664
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1665
    elif test -f "$ac_srcdir/configure"; then
 
1666
      echo &&
 
1667
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1668
    else
 
1669
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1670
    fi || ac_status=$?
 
1671
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1672
  done
 
1673
fi
 
1674
 
 
1675
test -n "$ac_init_help" && exit $ac_status
 
1676
if $ac_init_version; then
 
1677
  cat <<\_ACEOF
 
1678
openocd configure 0.3.1
 
1679
generated by GNU Autoconf 2.61
 
1680
 
 
1681
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1682
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1683
This configure script is free software; the Free Software Foundation
 
1684
gives unlimited permission to copy, distribute and modify it.
 
1685
_ACEOF
 
1686
  exit
 
1687
fi
 
1688
cat >config.log <<_ACEOF
 
1689
This file contains any messages produced by compilers while
 
1690
running configure, to aid debugging if configure makes a mistake.
 
1691
 
 
1692
It was created by openocd $as_me 0.3.1, which was
 
1693
generated by GNU Autoconf 2.61.  Invocation command line was
 
1694
 
 
1695
  $ $0 $@
 
1696
 
 
1697
_ACEOF
 
1698
exec 5>>config.log
 
1699
{
 
1700
cat <<_ASUNAME
 
1701
## --------- ##
 
1702
## Platform. ##
 
1703
## --------- ##
 
1704
 
 
1705
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1706
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1707
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1708
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1709
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1710
 
 
1711
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1712
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1713
 
 
1714
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1715
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1716
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1717
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1718
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1719
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1720
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1721
 
 
1722
_ASUNAME
 
1723
 
 
1724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1725
for as_dir in $PATH
 
1726
do
 
1727
  IFS=$as_save_IFS
 
1728
  test -z "$as_dir" && as_dir=.
 
1729
  echo "PATH: $as_dir"
 
1730
done
 
1731
IFS=$as_save_IFS
 
1732
 
 
1733
} >&5
 
1734
 
 
1735
cat >&5 <<_ACEOF
 
1736
 
 
1737
 
 
1738
## ----------- ##
 
1739
## Core tests. ##
 
1740
## ----------- ##
 
1741
 
 
1742
_ACEOF
 
1743
 
 
1744
 
 
1745
# Keep a trace of the command line.
 
1746
# Strip out --no-create and --no-recursion so they do not pile up.
 
1747
# Strip out --silent because we don't want to record it for future runs.
 
1748
# Also quote any args containing shell meta-characters.
 
1749
# Make two passes to allow for proper duplicate-argument suppression.
 
1750
ac_configure_args=
 
1751
ac_configure_args0=
 
1752
ac_configure_args1=
 
1753
ac_must_keep_next=false
 
1754
for ac_pass in 1 2
 
1755
do
 
1756
  for ac_arg
 
1757
  do
 
1758
    case $ac_arg in
 
1759
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1760
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1761
    | -silent | --silent | --silen | --sile | --sil)
 
1762
      continue ;;
 
1763
    *\'*)
 
1764
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1765
    esac
 
1766
    case $ac_pass in
 
1767
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1768
    2)
 
1769
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1770
      if test $ac_must_keep_next = true; then
 
1771
        ac_must_keep_next=false # Got value, back to normal.
 
1772
      else
 
1773
        case $ac_arg in
 
1774
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1775
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1776
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1777
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1778
            case "$ac_configure_args0 " in
 
1779
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1780
            esac
 
1781
            ;;
 
1782
          -* ) ac_must_keep_next=true ;;
 
1783
        esac
 
1784
      fi
 
1785
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1786
      ;;
 
1787
    esac
 
1788
  done
 
1789
done
 
1790
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1791
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1792
 
 
1793
# When interrupted or exit'd, cleanup temporary files, and complete
 
1794
# config.log.  We remove comments because anyway the quotes in there
 
1795
# would cause problems or look ugly.
 
1796
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1797
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1798
trap 'exit_status=$?
 
1799
  # Save into config.log some information that might help in debugging.
 
1800
  {
 
1801
    echo
 
1802
 
 
1803
    cat <<\_ASBOX
 
1804
## ---------------- ##
 
1805
## Cache variables. ##
 
1806
## ---------------- ##
 
1807
_ASBOX
 
1808
    echo
 
1809
    # The following way of writing the cache mishandles newlines in values,
 
1810
(
 
1811
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1812
    eval ac_val=\$$ac_var
 
1813
    case $ac_val in #(
 
1814
    *${as_nl}*)
 
1815
      case $ac_var in #(
 
1816
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1817
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1818
      esac
 
1819
      case $ac_var in #(
 
1820
      _ | IFS | as_nl) ;; #(
 
1821
      *) $as_unset $ac_var ;;
 
1822
      esac ;;
 
1823
    esac
 
1824
  done
 
1825
  (set) 2>&1 |
 
1826
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1827
    *${as_nl}ac_space=\ *)
 
1828
      sed -n \
 
1829
        "s/'\''/'\''\\\\'\'''\''/g;
 
1830
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1831
      ;; #(
 
1832
    *)
 
1833
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1834
      ;;
 
1835
    esac |
 
1836
    sort
 
1837
)
 
1838
    echo
 
1839
 
 
1840
    cat <<\_ASBOX
 
1841
## ----------------- ##
 
1842
## Output variables. ##
 
1843
## ----------------- ##
 
1844
_ASBOX
 
1845
    echo
 
1846
    for ac_var in $ac_subst_vars
 
1847
    do
 
1848
      eval ac_val=\$$ac_var
 
1849
      case $ac_val in
 
1850
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1851
      esac
 
1852
      echo "$ac_var='\''$ac_val'\''"
 
1853
    done | sort
 
1854
    echo
 
1855
 
 
1856
    if test -n "$ac_subst_files"; then
 
1857
      cat <<\_ASBOX
 
1858
## ------------------- ##
 
1859
## File substitutions. ##
 
1860
## ------------------- ##
 
1861
_ASBOX
 
1862
      echo
 
1863
      for ac_var in $ac_subst_files
 
1864
      do
 
1865
        eval ac_val=\$$ac_var
 
1866
        case $ac_val in
 
1867
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1868
        esac
 
1869
        echo "$ac_var='\''$ac_val'\''"
 
1870
      done | sort
 
1871
      echo
 
1872
    fi
 
1873
 
 
1874
    if test -s confdefs.h; then
 
1875
      cat <<\_ASBOX
 
1876
## ----------- ##
 
1877
## confdefs.h. ##
 
1878
## ----------- ##
 
1879
_ASBOX
 
1880
      echo
 
1881
      cat confdefs.h
 
1882
      echo
 
1883
    fi
 
1884
    test "$ac_signal" != 0 &&
 
1885
      echo "$as_me: caught signal $ac_signal"
 
1886
    echo "$as_me: exit $exit_status"
 
1887
  } >&5
 
1888
  rm -f core *.core core.conftest.* &&
 
1889
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1890
    exit $exit_status
 
1891
' 0
 
1892
for ac_signal in 1 2 13 15; do
 
1893
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1894
done
 
1895
ac_signal=0
 
1896
 
 
1897
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1898
rm -f -r conftest* confdefs.h
 
1899
 
 
1900
# Predefined preprocessor variables.
 
1901
 
 
1902
cat >>confdefs.h <<_ACEOF
 
1903
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1904
_ACEOF
 
1905
 
 
1906
 
 
1907
cat >>confdefs.h <<_ACEOF
 
1908
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1909
_ACEOF
 
1910
 
 
1911
 
 
1912
cat >>confdefs.h <<_ACEOF
 
1913
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1914
_ACEOF
 
1915
 
 
1916
 
 
1917
cat >>confdefs.h <<_ACEOF
 
1918
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1919
_ACEOF
 
1920
 
 
1921
 
 
1922
cat >>confdefs.h <<_ACEOF
 
1923
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1924
_ACEOF
 
1925
 
 
1926
 
 
1927
# Let the site file select an alternate cache file if it wants to.
 
1928
# Prefer explicitly selected file to automatically selected ones.
 
1929
if test -n "$CONFIG_SITE"; then
 
1930
  set x "$CONFIG_SITE"
 
1931
elif test "x$prefix" != xNONE; then
 
1932
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1933
else
 
1934
  set x "$ac_default_prefix/share/config.site" \
 
1935
        "$ac_default_prefix/etc/config.site"
 
1936
fi
 
1937
shift
 
1938
for ac_site_file
 
1939
do
 
1940
  if test -r "$ac_site_file"; then
 
1941
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1942
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1943
    sed 's/^/| /' "$ac_site_file" >&5
 
1944
    . "$ac_site_file"
 
1945
  fi
 
1946
done
 
1947
 
 
1948
if test -r "$cache_file"; then
 
1949
  # Some versions of bash will fail to source /dev/null (special
 
1950
  # files actually), so we avoid doing that.
 
1951
  if test -f "$cache_file"; then
 
1952
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1953
echo "$as_me: loading cache $cache_file" >&6;}
 
1954
    case $cache_file in
 
1955
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1956
      *)                      . "./$cache_file";;
 
1957
    esac
 
1958
  fi
 
1959
else
 
1960
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1961
echo "$as_me: creating cache $cache_file" >&6;}
 
1962
  >$cache_file
 
1963
fi
 
1964
 
 
1965
# Check that the precious variables saved in the cache have kept the same
 
1966
# value.
 
1967
ac_cache_corrupted=false
 
1968
for ac_var in $ac_precious_vars; do
 
1969
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1970
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1971
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1972
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1973
  case $ac_old_set,$ac_new_set in
 
1974
    set,)
 
1975
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1976
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1977
      ac_cache_corrupted=: ;;
 
1978
    ,set)
 
1979
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1980
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1981
      ac_cache_corrupted=: ;;
 
1982
    ,);;
 
1983
    *)
 
1984
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1985
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1986
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1987
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1988
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1989
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1990
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1991
        ac_cache_corrupted=:
 
1992
      fi;;
 
1993
  esac
 
1994
  # Pass precious variables to config.status.
 
1995
  if test "$ac_new_set" = set; then
 
1996
    case $ac_new_val in
 
1997
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1998
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1999
    esac
 
2000
    case " $ac_configure_args " in
 
2001
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2002
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2003
    esac
 
2004
  fi
 
2005
done
 
2006
if $ac_cache_corrupted; then
 
2007
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2008
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2009
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2010
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2011
   { (exit 1); exit 1; }; }
 
2012
fi
 
2013
 
 
2014
 
 
2015
 
 
2016
 
 
2017
 
 
2018
 
 
2019
 
 
2020
 
 
2021
 
 
2022
 
 
2023
 
 
2024
 
 
2025
 
 
2026
 
 
2027
 
 
2028
 
 
2029
 
 
2030
 
 
2031
 
 
2032
 
 
2033
 
 
2034
 
 
2035
 
 
2036
 
 
2037
 
 
2038
ac_ext=c
 
2039
ac_cpp='$CPP $CPPFLAGS'
 
2040
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2041
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2042
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
am__api_version='1.10'
 
2048
 
 
2049
ac_aux_dir=
 
2050
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2051
  if test -f "$ac_dir/install-sh"; then
 
2052
    ac_aux_dir=$ac_dir
 
2053
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2054
    break
 
2055
  elif test -f "$ac_dir/install.sh"; then
 
2056
    ac_aux_dir=$ac_dir
 
2057
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2058
    break
 
2059
  elif test -f "$ac_dir/shtool"; then
 
2060
    ac_aux_dir=$ac_dir
 
2061
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2062
    break
 
2063
  fi
 
2064
done
 
2065
if test -z "$ac_aux_dir"; then
 
2066
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2067
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2068
   { (exit 1); exit 1; }; }
 
2069
fi
 
2070
 
 
2071
# These three variables are undocumented and unsupported,
 
2072
# and are intended to be withdrawn in a future Autoconf release.
 
2073
# They can cause serious problems if a builder's source tree is in a directory
 
2074
# whose full name contains unusual characters.
 
2075
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2076
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2077
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2078
 
 
2079
 
 
2080
# Find a good install program.  We prefer a C program (faster),
 
2081
# so one script is as good as another.  But avoid the broken or
 
2082
# incompatible versions:
 
2083
# SysV /etc/install, /usr/sbin/install
 
2084
# SunOS /usr/etc/install
 
2085
# IRIX /sbin/install
 
2086
# AIX /bin/install
 
2087
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2088
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2089
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2090
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2091
# OS/2's system install, which has a completely different semantic
 
2092
# ./install, which can be erroneously created by make from ./install.sh.
 
2093
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2094
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2095
if test -z "$INSTALL"; then
 
2096
if test "${ac_cv_path_install+set}" = set; then
 
2097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2098
else
 
2099
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2100
for as_dir in $PATH
 
2101
do
 
2102
  IFS=$as_save_IFS
 
2103
  test -z "$as_dir" && as_dir=.
 
2104
  # Account for people who put trailing slashes in PATH elements.
 
2105
case $as_dir/ in
 
2106
  ./ | .// | /cC/* | \
 
2107
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2108
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2109
  /usr/ucb/* ) ;;
 
2110
  *)
 
2111
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2112
    # Don't use installbsd from OSF since it installs stuff as root
 
2113
    # by default.
 
2114
    for ac_prog in ginstall scoinst install; do
 
2115
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2116
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2117
          if test $ac_prog = install &&
 
2118
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2119
            # AIX install.  It has an incompatible calling convention.
 
2120
            :
 
2121
          elif test $ac_prog = install &&
 
2122
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2123
            # program-specific install script used by HP pwplus--don't use.
 
2124
            :
 
2125
          else
 
2126
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2127
            break 3
 
2128
          fi
 
2129
        fi
 
2130
      done
 
2131
    done
 
2132
    ;;
 
2133
esac
 
2134
done
 
2135
IFS=$as_save_IFS
 
2136
 
 
2137
 
 
2138
fi
 
2139
  if test "${ac_cv_path_install+set}" = set; then
 
2140
    INSTALL=$ac_cv_path_install
 
2141
  else
 
2142
    # As a last resort, use the slow shell script.  Don't cache a
 
2143
    # value for INSTALL within a source directory, because that will
 
2144
    # break other packages using the cache if that directory is
 
2145
    # removed, or if the value is a relative name.
 
2146
    INSTALL=$ac_install_sh
 
2147
  fi
 
2148
fi
 
2149
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2150
echo "${ECHO_T}$INSTALL" >&6; }
 
2151
 
 
2152
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2153
# It thinks the first close brace ends the variable substitution.
 
2154
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2155
 
 
2156
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2157
 
 
2158
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2159
 
 
2160
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2161
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2162
# Just in case
 
2163
sleep 1
 
2164
echo timestamp > conftest.file
 
2165
# Do `set' in a subshell so we don't clobber the current shell's
 
2166
# arguments.  Must try -L first in case configure is actually a
 
2167
# symlink; some systems play weird games with the mod time of symlinks
 
2168
# (eg FreeBSD returns the mod time of the symlink's containing
 
2169
# directory).
 
2170
if (
 
2171
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2172
   if test "$*" = "X"; then
 
2173
      # -L didn't work.
 
2174
      set X `ls -t $srcdir/configure conftest.file`
 
2175
   fi
 
2176
   rm -f conftest.file
 
2177
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2178
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2179
 
 
2180
      # If neither matched, then we have a broken ls.  This can happen
 
2181
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2182
      # broken ls alias from the environment.  This has actually
 
2183
      # happened.  Such a system could not be considered "sane".
 
2184
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2185
alias in your environment" >&5
 
2186
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2187
alias in your environment" >&2;}
 
2188
   { (exit 1); exit 1; }; }
 
2189
   fi
 
2190
 
 
2191
   test "$2" = conftest.file
 
2192
   )
 
2193
then
 
2194
   # Ok.
 
2195
   :
 
2196
else
 
2197
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2198
Check your system clock" >&5
 
2199
echo "$as_me: error: newly created file is older than distributed files!
 
2200
Check your system clock" >&2;}
 
2201
   { (exit 1); exit 1; }; }
 
2202
fi
 
2203
{ echo "$as_me:$LINENO: result: yes" >&5
 
2204
echo "${ECHO_T}yes" >&6; }
 
2205
test "$program_prefix" != NONE &&
 
2206
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2207
# Use a double $ so make ignores it.
 
2208
test "$program_suffix" != NONE &&
 
2209
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2210
# Double any \ or $.  echo might interpret backslashes.
 
2211
# By default was `s,x,x', remove it if useless.
 
2212
cat <<\_ACEOF >conftest.sed
 
2213
s/[\\$]/&&/g;s/;s,x,x,$//
 
2214
_ACEOF
 
2215
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2216
rm -f conftest.sed
 
2217
 
 
2218
# expand $ac_aux_dir to an absolute path
 
2219
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2220
 
 
2221
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2222
# Use eval to expand $SHELL
 
2223
if eval "$MISSING --run true"; then
 
2224
  am_missing_run="$MISSING --run "
 
2225
else
 
2226
  am_missing_run=
 
2227
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2228
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2229
fi
 
2230
 
 
2231
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2232
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2233
if test -z "$MKDIR_P"; then
 
2234
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2236
else
 
2237
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2238
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2239
do
 
2240
  IFS=$as_save_IFS
 
2241
  test -z "$as_dir" && as_dir=.
 
2242
  for ac_prog in mkdir gmkdir; do
 
2243
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2244
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2245
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2246
             'mkdir (GNU coreutils) '* | \
 
2247
             'mkdir (coreutils) '* | \
 
2248
             'mkdir (fileutils) '4.1*)
 
2249
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2250
               break 3;;
 
2251
           esac
 
2252
         done
 
2253
       done
 
2254
done
 
2255
IFS=$as_save_IFS
 
2256
 
 
2257
fi
 
2258
 
 
2259
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2260
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2261
  else
 
2262
    # As a last resort, use the slow shell script.  Don't cache a
 
2263
    # value for MKDIR_P within a source directory, because that will
 
2264
    # break other packages using the cache if that directory is
 
2265
    # removed, or if the value is a relative name.
 
2266
    test -d ./--version && rmdir ./--version
 
2267
    MKDIR_P="$ac_install_sh -d"
 
2268
  fi
 
2269
fi
 
2270
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2271
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2272
 
 
2273
mkdir_p="$MKDIR_P"
 
2274
case $mkdir_p in
 
2275
  [\\/$]* | ?:[\\/]*) ;;
 
2276
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2277
esac
 
2278
 
 
2279
for ac_prog in gawk mawk nawk awk
 
2280
do
 
2281
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2282
set dummy $ac_prog; ac_word=$2
 
2283
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2284
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2285
if test "${ac_cv_prog_AWK+set}" = set; then
 
2286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2287
else
 
2288
  if test -n "$AWK"; then
 
2289
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2290
else
 
2291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2292
for as_dir in $PATH
 
2293
do
 
2294
  IFS=$as_save_IFS
 
2295
  test -z "$as_dir" && as_dir=.
 
2296
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2297
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2298
    ac_cv_prog_AWK="$ac_prog"
 
2299
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2300
    break 2
 
2301
  fi
 
2302
done
 
2303
done
 
2304
IFS=$as_save_IFS
 
2305
 
 
2306
fi
 
2307
fi
 
2308
AWK=$ac_cv_prog_AWK
 
2309
if test -n "$AWK"; then
 
2310
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2311
echo "${ECHO_T}$AWK" >&6; }
 
2312
else
 
2313
  { echo "$as_me:$LINENO: result: no" >&5
 
2314
echo "${ECHO_T}no" >&6; }
 
2315
fi
 
2316
 
 
2317
 
 
2318
  test -n "$AWK" && break
 
2319
done
 
2320
 
 
2321
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2322
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2323
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2324
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2326
else
 
2327
  cat >conftest.make <<\_ACEOF
 
2328
SHELL = /bin/sh
 
2329
all:
 
2330
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2331
_ACEOF
 
2332
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2333
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2334
  *@@@%%%=?*=@@@%%%*)
 
2335
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2336
  *)
 
2337
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2338
esac
 
2339
rm -f conftest.make
 
2340
fi
 
2341
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2342
  { echo "$as_me:$LINENO: result: yes" >&5
 
2343
echo "${ECHO_T}yes" >&6; }
 
2344
  SET_MAKE=
 
2345
else
 
2346
  { echo "$as_me:$LINENO: result: no" >&5
 
2347
echo "${ECHO_T}no" >&6; }
 
2348
  SET_MAKE="MAKE=${MAKE-make}"
 
2349
fi
 
2350
 
 
2351
rm -rf .tst 2>/dev/null
 
2352
mkdir .tst 2>/dev/null
 
2353
if test -d .tst; then
 
2354
  am__leading_dot=.
 
2355
else
 
2356
  am__leading_dot=_
 
2357
fi
 
2358
rmdir .tst 2>/dev/null
 
2359
 
 
2360
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2361
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2362
  # is not polluted with repeated "-I."
 
2363
  am__isrc=' -I$(srcdir)'
 
2364
  # test to see if srcdir already configured
 
2365
  if test -f $srcdir/config.status; then
 
2366
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2367
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2368
   { (exit 1); exit 1; }; }
 
2369
  fi
 
2370
fi
 
2371
 
 
2372
# test whether we have cygpath
 
2373
if test -z "$CYGPATH_W"; then
 
2374
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2375
    CYGPATH_W='cygpath -w'
 
2376
  else
 
2377
    CYGPATH_W=echo
 
2378
  fi
 
2379
fi
 
2380
 
 
2381
 
 
2382
# Define the identity of the package.
 
2383
 PACKAGE='openocd'
 
2384
 VERSION='0.3.1'
 
2385
 
 
2386
 
 
2387
cat >>confdefs.h <<_ACEOF
 
2388
#define PACKAGE "$PACKAGE"
 
2389
_ACEOF
 
2390
 
 
2391
 
 
2392
cat >>confdefs.h <<_ACEOF
 
2393
#define VERSION "$VERSION"
 
2394
_ACEOF
 
2395
 
 
2396
# Some tools Automake needs.
 
2397
 
 
2398
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2399
 
 
2400
 
 
2401
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2402
 
 
2403
 
 
2404
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2405
 
 
2406
 
 
2407
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2408
 
 
2409
 
 
2410
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2411
 
 
2412
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2413
 
 
2414
# Installed binaries are usually stripped using `strip' when the user
 
2415
# run `make install-strip'.  However `strip' might not be the right
 
2416
# tool to use in cross-compilation environments, therefore Automake
 
2417
# will honor the `STRIP' environment variable to overrule this program.
 
2418
if test "$cross_compiling" != no; then
 
2419
  if test -n "$ac_tool_prefix"; then
 
2420
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2421
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2422
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2424
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2426
else
 
2427
  if test -n "$STRIP"; then
 
2428
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2429
else
 
2430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2431
for as_dir in $PATH
 
2432
do
 
2433
  IFS=$as_save_IFS
 
2434
  test -z "$as_dir" && as_dir=.
 
2435
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2436
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2437
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2438
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2439
    break 2
 
2440
  fi
 
2441
done
 
2442
done
 
2443
IFS=$as_save_IFS
 
2444
 
 
2445
fi
 
2446
fi
 
2447
STRIP=$ac_cv_prog_STRIP
 
2448
if test -n "$STRIP"; then
 
2449
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2450
echo "${ECHO_T}$STRIP" >&6; }
 
2451
else
 
2452
  { echo "$as_me:$LINENO: result: no" >&5
 
2453
echo "${ECHO_T}no" >&6; }
 
2454
fi
 
2455
 
 
2456
 
 
2457
fi
 
2458
if test -z "$ac_cv_prog_STRIP"; then
 
2459
  ac_ct_STRIP=$STRIP
 
2460
  # Extract the first word of "strip", so it can be a program name with args.
 
2461
set dummy strip; ac_word=$2
 
2462
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2464
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2466
else
 
2467
  if test -n "$ac_ct_STRIP"; then
 
2468
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2469
else
 
2470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2471
for as_dir in $PATH
 
2472
do
 
2473
  IFS=$as_save_IFS
 
2474
  test -z "$as_dir" && as_dir=.
 
2475
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2476
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2477
    ac_cv_prog_ac_ct_STRIP="strip"
 
2478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2479
    break 2
 
2480
  fi
 
2481
done
 
2482
done
 
2483
IFS=$as_save_IFS
 
2484
 
 
2485
fi
 
2486
fi
 
2487
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2488
if test -n "$ac_ct_STRIP"; then
 
2489
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2490
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2491
else
 
2492
  { echo "$as_me:$LINENO: result: no" >&5
 
2493
echo "${ECHO_T}no" >&6; }
 
2494
fi
 
2495
 
 
2496
  if test "x$ac_ct_STRIP" = x; then
 
2497
    STRIP=":"
 
2498
  else
 
2499
    case $cross_compiling:$ac_tool_warned in
 
2500
yes:)
 
2501
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2502
whose name does not start with the host triplet.  If you think this
 
2503
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2504
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2505
whose name does not start with the host triplet.  If you think this
 
2506
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2507
ac_tool_warned=yes ;;
 
2508
esac
 
2509
    STRIP=$ac_ct_STRIP
 
2510
  fi
 
2511
else
 
2512
  STRIP="$ac_cv_prog_STRIP"
 
2513
fi
 
2514
 
 
2515
fi
 
2516
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2517
 
 
2518
# We need awk for the "check" target.  The system "awk" is bad on
 
2519
# some platforms.
 
2520
# Always define AMTAR for backward compatibility.
 
2521
 
 
2522
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2523
 
 
2524
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2525
 
 
2526
 
 
2527
 
 
2528
 
 
2529
 
 
2530
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2531
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2532
    # Check whether --enable-maintainer-mode was given.
 
2533
if test "${enable_maintainer_mode+set}" = set; then
 
2534
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2535
else
 
2536
  USE_MAINTAINER_MODE=no
 
2537
fi
 
2538
 
 
2539
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2540
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
 
2541
   if test $USE_MAINTAINER_MODE = yes; then
 
2542
  MAINTAINER_MODE_TRUE=
 
2543
  MAINTAINER_MODE_FALSE='#'
 
2544
else
 
2545
  MAINTAINER_MODE_TRUE='#'
 
2546
  MAINTAINER_MODE_FALSE=
 
2547
fi
 
2548
 
 
2549
  MAINT=$MAINTAINER_MODE_TRUE
 
2550
 
 
2551
 
 
2552
 
 
2553
ac_config_headers="$ac_config_headers config.h"
 
2554
 
 
2555
 
 
2556
 
 
2557
 
 
2558
ac_ext=c
 
2559
ac_cpp='$CPP $CPPFLAGS'
 
2560
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2561
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2562
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2563
 
 
2564
ac_ext=c
 
2565
ac_cpp='$CPP $CPPFLAGS'
 
2566
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2567
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2568
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2569
if test -n "$ac_tool_prefix"; then
 
2570
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2571
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2572
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2574
if test "${ac_cv_prog_CC+set}" = set; then
 
2575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2576
else
 
2577
  if test -n "$CC"; then
 
2578
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2579
else
 
2580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2581
for as_dir in $PATH
 
2582
do
 
2583
  IFS=$as_save_IFS
 
2584
  test -z "$as_dir" && as_dir=.
 
2585
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2586
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2587
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2588
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2589
    break 2
 
2590
  fi
 
2591
done
 
2592
done
 
2593
IFS=$as_save_IFS
 
2594
 
 
2595
fi
 
2596
fi
 
2597
CC=$ac_cv_prog_CC
 
2598
if test -n "$CC"; then
 
2599
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2600
echo "${ECHO_T}$CC" >&6; }
 
2601
else
 
2602
  { echo "$as_me:$LINENO: result: no" >&5
 
2603
echo "${ECHO_T}no" >&6; }
 
2604
fi
 
2605
 
 
2606
 
 
2607
fi
 
2608
if test -z "$ac_cv_prog_CC"; then
 
2609
  ac_ct_CC=$CC
 
2610
  # Extract the first word of "gcc", so it can be a program name with args.
 
2611
set dummy gcc; ac_word=$2
 
2612
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2613
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2614
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2616
else
 
2617
  if test -n "$ac_ct_CC"; then
 
2618
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2619
else
 
2620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2621
for as_dir in $PATH
 
2622
do
 
2623
  IFS=$as_save_IFS
 
2624
  test -z "$as_dir" && as_dir=.
 
2625
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2626
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2627
    ac_cv_prog_ac_ct_CC="gcc"
 
2628
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2629
    break 2
 
2630
  fi
 
2631
done
 
2632
done
 
2633
IFS=$as_save_IFS
 
2634
 
 
2635
fi
 
2636
fi
 
2637
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2638
if test -n "$ac_ct_CC"; then
 
2639
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2640
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2641
else
 
2642
  { echo "$as_me:$LINENO: result: no" >&5
 
2643
echo "${ECHO_T}no" >&6; }
 
2644
fi
 
2645
 
 
2646
  if test "x$ac_ct_CC" = x; then
 
2647
    CC=""
 
2648
  else
 
2649
    case $cross_compiling:$ac_tool_warned in
 
2650
yes:)
 
2651
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2652
whose name does not start with the host triplet.  If you think this
 
2653
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2654
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2655
whose name does not start with the host triplet.  If you think this
 
2656
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2657
ac_tool_warned=yes ;;
 
2658
esac
 
2659
    CC=$ac_ct_CC
 
2660
  fi
 
2661
else
 
2662
  CC="$ac_cv_prog_CC"
 
2663
fi
 
2664
 
 
2665
if test -z "$CC"; then
 
2666
          if test -n "$ac_tool_prefix"; then
 
2667
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2668
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2671
if test "${ac_cv_prog_CC+set}" = set; then
 
2672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2673
else
 
2674
  if test -n "$CC"; then
 
2675
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2676
else
 
2677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2678
for as_dir in $PATH
 
2679
do
 
2680
  IFS=$as_save_IFS
 
2681
  test -z "$as_dir" && as_dir=.
 
2682
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2683
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2684
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2685
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2686
    break 2
 
2687
  fi
 
2688
done
 
2689
done
 
2690
IFS=$as_save_IFS
 
2691
 
 
2692
fi
 
2693
fi
 
2694
CC=$ac_cv_prog_CC
 
2695
if test -n "$CC"; then
 
2696
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2697
echo "${ECHO_T}$CC" >&6; }
 
2698
else
 
2699
  { echo "$as_me:$LINENO: result: no" >&5
 
2700
echo "${ECHO_T}no" >&6; }
 
2701
fi
 
2702
 
 
2703
 
 
2704
  fi
 
2705
fi
 
2706
if test -z "$CC"; then
 
2707
  # Extract the first word of "cc", so it can be a program name with args.
 
2708
set dummy cc; ac_word=$2
 
2709
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2710
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2711
if test "${ac_cv_prog_CC+set}" = set; then
 
2712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2713
else
 
2714
  if test -n "$CC"; then
 
2715
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2716
else
 
2717
  ac_prog_rejected=no
 
2718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2719
for as_dir in $PATH
 
2720
do
 
2721
  IFS=$as_save_IFS
 
2722
  test -z "$as_dir" && as_dir=.
 
2723
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2725
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2726
       ac_prog_rejected=yes
 
2727
       continue
 
2728
     fi
 
2729
    ac_cv_prog_CC="cc"
 
2730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2731
    break 2
 
2732
  fi
 
2733
done
 
2734
done
 
2735
IFS=$as_save_IFS
 
2736
 
 
2737
if test $ac_prog_rejected = yes; then
 
2738
  # We found a bogon in the path, so make sure we never use it.
 
2739
  set dummy $ac_cv_prog_CC
 
2740
  shift
 
2741
  if test $# != 0; then
 
2742
    # We chose a different compiler from the bogus one.
 
2743
    # However, it has the same basename, so the bogon will be chosen
 
2744
    # first if we set CC to just the basename; use the full file name.
 
2745
    shift
 
2746
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2747
  fi
 
2748
fi
 
2749
fi
 
2750
fi
 
2751
CC=$ac_cv_prog_CC
 
2752
if test -n "$CC"; then
 
2753
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2754
echo "${ECHO_T}$CC" >&6; }
 
2755
else
 
2756
  { echo "$as_me:$LINENO: result: no" >&5
 
2757
echo "${ECHO_T}no" >&6; }
 
2758
fi
 
2759
 
 
2760
 
 
2761
fi
 
2762
if test -z "$CC"; then
 
2763
  if test -n "$ac_tool_prefix"; then
 
2764
  for ac_prog in cl.exe
 
2765
  do
 
2766
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2767
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2768
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2769
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2770
if test "${ac_cv_prog_CC+set}" = set; then
 
2771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2772
else
 
2773
  if test -n "$CC"; then
 
2774
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2775
else
 
2776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2777
for as_dir in $PATH
 
2778
do
 
2779
  IFS=$as_save_IFS
 
2780
  test -z "$as_dir" && as_dir=.
 
2781
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2782
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2783
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2784
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2785
    break 2
 
2786
  fi
 
2787
done
 
2788
done
 
2789
IFS=$as_save_IFS
 
2790
 
 
2791
fi
 
2792
fi
 
2793
CC=$ac_cv_prog_CC
 
2794
if test -n "$CC"; then
 
2795
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2796
echo "${ECHO_T}$CC" >&6; }
 
2797
else
 
2798
  { echo "$as_me:$LINENO: result: no" >&5
 
2799
echo "${ECHO_T}no" >&6; }
 
2800
fi
 
2801
 
 
2802
 
 
2803
    test -n "$CC" && break
 
2804
  done
 
2805
fi
 
2806
if test -z "$CC"; then
 
2807
  ac_ct_CC=$CC
 
2808
  for ac_prog in cl.exe
 
2809
do
 
2810
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2811
set dummy $ac_prog; ac_word=$2
 
2812
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2814
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2816
else
 
2817
  if test -n "$ac_ct_CC"; then
 
2818
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2819
else
 
2820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2821
for as_dir in $PATH
 
2822
do
 
2823
  IFS=$as_save_IFS
 
2824
  test -z "$as_dir" && as_dir=.
 
2825
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2826
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2827
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2828
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2829
    break 2
 
2830
  fi
 
2831
done
 
2832
done
 
2833
IFS=$as_save_IFS
 
2834
 
 
2835
fi
 
2836
fi
 
2837
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2838
if test -n "$ac_ct_CC"; then
 
2839
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2840
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2841
else
 
2842
  { echo "$as_me:$LINENO: result: no" >&5
 
2843
echo "${ECHO_T}no" >&6; }
 
2844
fi
 
2845
 
 
2846
 
 
2847
  test -n "$ac_ct_CC" && break
 
2848
done
 
2849
 
 
2850
  if test "x$ac_ct_CC" = x; then
 
2851
    CC=""
 
2852
  else
 
2853
    case $cross_compiling:$ac_tool_warned in
 
2854
yes:)
 
2855
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2856
whose name does not start with the host triplet.  If you think this
 
2857
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2858
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2859
whose name does not start with the host triplet.  If you think this
 
2860
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2861
ac_tool_warned=yes ;;
 
2862
esac
 
2863
    CC=$ac_ct_CC
 
2864
  fi
 
2865
fi
 
2866
 
 
2867
fi
 
2868
 
 
2869
 
 
2870
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2871
See \`config.log' for more details." >&5
 
2872
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2873
See \`config.log' for more details." >&2;}
 
2874
   { (exit 1); exit 1; }; }
 
2875
 
 
2876
# Provide some information about the compiler.
 
2877
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2878
ac_compiler=`set X $ac_compile; echo $2`
 
2879
{ (ac_try="$ac_compiler --version >&5"
 
2880
case "(($ac_try" in
 
2881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2882
  *) ac_try_echo=$ac_try;;
 
2883
esac
 
2884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2885
  (eval "$ac_compiler --version >&5") 2>&5
 
2886
  ac_status=$?
 
2887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2888
  (exit $ac_status); }
 
2889
{ (ac_try="$ac_compiler -v >&5"
 
2890
case "(($ac_try" in
 
2891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2892
  *) ac_try_echo=$ac_try;;
 
2893
esac
 
2894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2895
  (eval "$ac_compiler -v >&5") 2>&5
 
2896
  ac_status=$?
 
2897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2898
  (exit $ac_status); }
 
2899
{ (ac_try="$ac_compiler -V >&5"
 
2900
case "(($ac_try" in
 
2901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2902
  *) ac_try_echo=$ac_try;;
 
2903
esac
 
2904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2905
  (eval "$ac_compiler -V >&5") 2>&5
 
2906
  ac_status=$?
 
2907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2908
  (exit $ac_status); }
 
2909
 
 
2910
cat >conftest.$ac_ext <<_ACEOF
 
2911
/* confdefs.h.  */
 
2912
_ACEOF
 
2913
cat confdefs.h >>conftest.$ac_ext
 
2914
cat >>conftest.$ac_ext <<_ACEOF
 
2915
/* end confdefs.h.  */
 
2916
 
 
2917
int
 
2918
main ()
 
2919
{
 
2920
 
 
2921
  ;
 
2922
  return 0;
 
2923
}
 
2924
_ACEOF
 
2925
ac_clean_files_save=$ac_clean_files
 
2926
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2927
# Try to create an executable without -o first, disregard a.out.
 
2928
# It will help us diagnose broken compilers, and finding out an intuition
 
2929
# of exeext.
 
2930
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2931
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2932
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2933
#
 
2934
# List of possible output files, starting from the most likely.
 
2935
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2936
# only as a last resort.  b.out is created by i960 compilers.
 
2937
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2938
#
 
2939
# The IRIX 6 linker writes into existing files which may not be
 
2940
# executable, retaining their permissions.  Remove them first so a
 
2941
# subsequent execution test works.
 
2942
ac_rmfiles=
 
2943
for ac_file in $ac_files
 
2944
do
 
2945
  case $ac_file in
 
2946
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2947
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2948
  esac
 
2949
done
 
2950
rm -f $ac_rmfiles
 
2951
 
 
2952
if { (ac_try="$ac_link_default"
 
2953
case "(($ac_try" in
 
2954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2955
  *) ac_try_echo=$ac_try;;
 
2956
esac
 
2957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2958
  (eval "$ac_link_default") 2>&5
 
2959
  ac_status=$?
 
2960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2961
  (exit $ac_status); }; then
 
2962
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2963
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2964
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2965
# so that the user can short-circuit this test for compilers unknown to
 
2966
# Autoconf.
 
2967
for ac_file in $ac_files ''
 
2968
do
 
2969
  test -f "$ac_file" || continue
 
2970
  case $ac_file in
 
2971
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2972
        ;;
 
2973
    [ab].out )
 
2974
        # We found the default executable, but exeext='' is most
 
2975
        # certainly right.
 
2976
        break;;
 
2977
    *.* )
 
2978
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2979
        then :; else
 
2980
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2981
        fi
 
2982
        # We set ac_cv_exeext here because the later test for it is not
 
2983
        # safe: cross compilers may not add the suffix if given an `-o'
 
2984
        # argument, so we may need to know it at that point already.
 
2985
        # Even if this section looks crufty: it has the advantage of
 
2986
        # actually working.
 
2987
        break;;
 
2988
    * )
 
2989
        break;;
 
2990
  esac
 
2991
done
 
2992
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2993
 
 
2994
else
 
2995
  ac_file=''
 
2996
fi
 
2997
 
 
2998
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2999
echo "${ECHO_T}$ac_file" >&6; }
 
3000
if test -z "$ac_file"; then
 
3001
  echo "$as_me: failed program was:" >&5
 
3002
sed 's/^/| /' conftest.$ac_ext >&5
 
3003
 
 
3004
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3005
See \`config.log' for more details." >&5
 
3006
echo "$as_me: error: C compiler cannot create executables
 
3007
See \`config.log' for more details." >&2;}
 
3008
   { (exit 77); exit 77; }; }
 
3009
fi
 
3010
 
 
3011
ac_exeext=$ac_cv_exeext
 
3012
 
 
3013
# Check that the compiler produces executables we can run.  If not, either
 
3014
# the compiler is broken, or we cross compile.
 
3015
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3016
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3017
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3018
# If not cross compiling, check that we can run a simple program.
 
3019
if test "$cross_compiling" != yes; then
 
3020
  if { ac_try='./$ac_file'
 
3021
  { (case "(($ac_try" in
 
3022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3023
  *) ac_try_echo=$ac_try;;
 
3024
esac
 
3025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3026
  (eval "$ac_try") 2>&5
 
3027
  ac_status=$?
 
3028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3029
  (exit $ac_status); }; }; then
 
3030
    cross_compiling=no
 
3031
  else
 
3032
    if test "$cross_compiling" = maybe; then
 
3033
        cross_compiling=yes
 
3034
    else
 
3035
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3036
If you meant to cross compile, use \`--host'.
 
3037
See \`config.log' for more details." >&5
 
3038
echo "$as_me: error: cannot run C compiled programs.
 
3039
If you meant to cross compile, use \`--host'.
 
3040
See \`config.log' for more details." >&2;}
 
3041
   { (exit 1); exit 1; }; }
 
3042
    fi
 
3043
  fi
 
3044
fi
 
3045
{ echo "$as_me:$LINENO: result: yes" >&5
 
3046
echo "${ECHO_T}yes" >&6; }
 
3047
 
 
3048
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3049
ac_clean_files=$ac_clean_files_save
 
3050
# Check that the compiler produces executables we can run.  If not, either
 
3051
# the compiler is broken, or we cross compile.
 
3052
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3053
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3054
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3055
echo "${ECHO_T}$cross_compiling" >&6; }
 
3056
 
 
3057
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3058
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3059
if { (ac_try="$ac_link"
 
3060
case "(($ac_try" in
 
3061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3062
  *) ac_try_echo=$ac_try;;
 
3063
esac
 
3064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3065
  (eval "$ac_link") 2>&5
 
3066
  ac_status=$?
 
3067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3068
  (exit $ac_status); }; then
 
3069
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3070
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3071
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3072
# `rm'.
 
3073
for ac_file in conftest.exe conftest conftest.*; do
 
3074
  test -f "$ac_file" || continue
 
3075
  case $ac_file in
 
3076
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3077
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3078
          break;;
 
3079
    * ) break;;
 
3080
  esac
 
3081
done
 
3082
else
 
3083
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3084
See \`config.log' for more details." >&5
 
3085
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3086
See \`config.log' for more details." >&2;}
 
3087
   { (exit 1); exit 1; }; }
 
3088
fi
 
3089
 
 
3090
rm -f conftest$ac_cv_exeext
 
3091
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3092
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3093
 
 
3094
rm -f conftest.$ac_ext
 
3095
EXEEXT=$ac_cv_exeext
 
3096
ac_exeext=$EXEEXT
 
3097
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3098
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3099
if test "${ac_cv_objext+set}" = set; then
 
3100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3101
else
 
3102
  cat >conftest.$ac_ext <<_ACEOF
 
3103
/* confdefs.h.  */
 
3104
_ACEOF
 
3105
cat confdefs.h >>conftest.$ac_ext
 
3106
cat >>conftest.$ac_ext <<_ACEOF
 
3107
/* end confdefs.h.  */
 
3108
 
 
3109
int
 
3110
main ()
 
3111
{
 
3112
 
 
3113
  ;
 
3114
  return 0;
 
3115
}
 
3116
_ACEOF
 
3117
rm -f conftest.o conftest.obj
 
3118
if { (ac_try="$ac_compile"
 
3119
case "(($ac_try" in
 
3120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3121
  *) ac_try_echo=$ac_try;;
 
3122
esac
 
3123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3124
  (eval "$ac_compile") 2>&5
 
3125
  ac_status=$?
 
3126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3127
  (exit $ac_status); }; then
 
3128
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3129
  test -f "$ac_file" || continue;
 
3130
  case $ac_file in
 
3131
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3132
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3133
       break;;
 
3134
  esac
 
3135
done
 
3136
else
 
3137
  echo "$as_me: failed program was:" >&5
 
3138
sed 's/^/| /' conftest.$ac_ext >&5
 
3139
 
 
3140
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3141
See \`config.log' for more details." >&5
 
3142
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3143
See \`config.log' for more details." >&2;}
 
3144
   { (exit 1); exit 1; }; }
 
3145
fi
 
3146
 
 
3147
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3148
fi
 
3149
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3150
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3151
OBJEXT=$ac_cv_objext
 
3152
ac_objext=$OBJEXT
 
3153
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3154
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3155
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3157
else
 
3158
  cat >conftest.$ac_ext <<_ACEOF
 
3159
/* confdefs.h.  */
 
3160
_ACEOF
 
3161
cat confdefs.h >>conftest.$ac_ext
 
3162
cat >>conftest.$ac_ext <<_ACEOF
 
3163
/* end confdefs.h.  */
 
3164
 
 
3165
int
 
3166
main ()
 
3167
{
 
3168
#ifndef __GNUC__
 
3169
       choke me
 
3170
#endif
 
3171
 
 
3172
  ;
 
3173
  return 0;
 
3174
}
 
3175
_ACEOF
 
3176
rm -f conftest.$ac_objext
 
3177
if { (ac_try="$ac_compile"
 
3178
case "(($ac_try" in
 
3179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3180
  *) ac_try_echo=$ac_try;;
 
3181
esac
 
3182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3183
  (eval "$ac_compile") 2>conftest.er1
 
3184
  ac_status=$?
 
3185
  grep -v '^ *+' conftest.er1 >conftest.err
 
3186
  rm -f conftest.er1
 
3187
  cat conftest.err >&5
 
3188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3189
  (exit $ac_status); } && {
 
3190
         test -z "$ac_c_werror_flag" ||
 
3191
         test ! -s conftest.err
 
3192
       } && test -s conftest.$ac_objext; then
 
3193
  ac_compiler_gnu=yes
 
3194
else
 
3195
  echo "$as_me: failed program was:" >&5
 
3196
sed 's/^/| /' conftest.$ac_ext >&5
 
3197
 
 
3198
        ac_compiler_gnu=no
 
3199
fi
 
3200
 
 
3201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3202
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3203
 
 
3204
fi
 
3205
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3206
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3207
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3208
ac_test_CFLAGS=${CFLAGS+set}
 
3209
ac_save_CFLAGS=$CFLAGS
 
3210
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3211
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3212
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3214
else
 
3215
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3216
   ac_c_werror_flag=yes
 
3217
   ac_cv_prog_cc_g=no
 
3218
   CFLAGS="-g"
 
3219
   cat >conftest.$ac_ext <<_ACEOF
 
3220
/* confdefs.h.  */
 
3221
_ACEOF
 
3222
cat confdefs.h >>conftest.$ac_ext
 
3223
cat >>conftest.$ac_ext <<_ACEOF
 
3224
/* end confdefs.h.  */
 
3225
 
 
3226
int
 
3227
main ()
 
3228
{
 
3229
 
 
3230
  ;
 
3231
  return 0;
 
3232
}
 
3233
_ACEOF
 
3234
rm -f conftest.$ac_objext
 
3235
if { (ac_try="$ac_compile"
 
3236
case "(($ac_try" in
 
3237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3238
  *) ac_try_echo=$ac_try;;
 
3239
esac
 
3240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3241
  (eval "$ac_compile") 2>conftest.er1
 
3242
  ac_status=$?
 
3243
  grep -v '^ *+' conftest.er1 >conftest.err
 
3244
  rm -f conftest.er1
 
3245
  cat conftest.err >&5
 
3246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3247
  (exit $ac_status); } && {
 
3248
         test -z "$ac_c_werror_flag" ||
 
3249
         test ! -s conftest.err
 
3250
       } && test -s conftest.$ac_objext; then
 
3251
  ac_cv_prog_cc_g=yes
 
3252
else
 
3253
  echo "$as_me: failed program was:" >&5
 
3254
sed 's/^/| /' conftest.$ac_ext >&5
 
3255
 
 
3256
        CFLAGS=""
 
3257
      cat >conftest.$ac_ext <<_ACEOF
 
3258
/* confdefs.h.  */
 
3259
_ACEOF
 
3260
cat confdefs.h >>conftest.$ac_ext
 
3261
cat >>conftest.$ac_ext <<_ACEOF
 
3262
/* end confdefs.h.  */
 
3263
 
 
3264
int
 
3265
main ()
 
3266
{
 
3267
 
 
3268
  ;
 
3269
  return 0;
 
3270
}
 
3271
_ACEOF
 
3272
rm -f conftest.$ac_objext
 
3273
if { (ac_try="$ac_compile"
 
3274
case "(($ac_try" in
 
3275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3276
  *) ac_try_echo=$ac_try;;
 
3277
esac
 
3278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3279
  (eval "$ac_compile") 2>conftest.er1
 
3280
  ac_status=$?
 
3281
  grep -v '^ *+' conftest.er1 >conftest.err
 
3282
  rm -f conftest.er1
 
3283
  cat conftest.err >&5
 
3284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3285
  (exit $ac_status); } && {
 
3286
         test -z "$ac_c_werror_flag" ||
 
3287
         test ! -s conftest.err
 
3288
       } && test -s conftest.$ac_objext; then
 
3289
  :
 
3290
else
 
3291
  echo "$as_me: failed program was:" >&5
 
3292
sed 's/^/| /' conftest.$ac_ext >&5
 
3293
 
 
3294
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3295
         CFLAGS="-g"
 
3296
         cat >conftest.$ac_ext <<_ACEOF
 
3297
/* confdefs.h.  */
 
3298
_ACEOF
 
3299
cat confdefs.h >>conftest.$ac_ext
 
3300
cat >>conftest.$ac_ext <<_ACEOF
 
3301
/* end confdefs.h.  */
 
3302
 
 
3303
int
 
3304
main ()
 
3305
{
 
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_cv_prog_cc_g=yes
 
3329
else
 
3330
  echo "$as_me: failed program was:" >&5
 
3331
sed 's/^/| /' conftest.$ac_ext >&5
 
3332
 
 
3333
 
 
3334
fi
 
3335
 
 
3336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3337
fi
 
3338
 
 
3339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3340
fi
 
3341
 
 
3342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3343
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3344
fi
 
3345
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3346
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3347
if test "$ac_test_CFLAGS" = set; then
 
3348
  CFLAGS=$ac_save_CFLAGS
 
3349
elif test $ac_cv_prog_cc_g = yes; then
 
3350
  if test "$GCC" = yes; then
 
3351
    CFLAGS="-g -O2"
 
3352
  else
 
3353
    CFLAGS="-g"
 
3354
  fi
 
3355
else
 
3356
  if test "$GCC" = yes; then
 
3357
    CFLAGS="-O2"
 
3358
  else
 
3359
    CFLAGS=
 
3360
  fi
 
3361
fi
 
3362
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3363
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3364
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3366
else
 
3367
  ac_cv_prog_cc_c89=no
 
3368
ac_save_CC=$CC
 
3369
cat >conftest.$ac_ext <<_ACEOF
 
3370
/* confdefs.h.  */
 
3371
_ACEOF
 
3372
cat confdefs.h >>conftest.$ac_ext
 
3373
cat >>conftest.$ac_ext <<_ACEOF
 
3374
/* end confdefs.h.  */
 
3375
#include <stdarg.h>
 
3376
#include <stdio.h>
 
3377
#include <sys/types.h>
 
3378
#include <sys/stat.h>
 
3379
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3380
struct buf { int x; };
 
3381
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3382
static char *e (p, i)
 
3383
     char **p;
 
3384
     int i;
 
3385
{
 
3386
  return p[i];
 
3387
}
 
3388
static char *f (char * (*g) (char **, int), char **p, ...)
 
3389
{
 
3390
  char *s;
 
3391
  va_list v;
 
3392
  va_start (v,p);
 
3393
  s = g (p, va_arg (v,int));
 
3394
  va_end (v);
 
3395
  return s;
 
3396
}
 
3397
 
 
3398
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3399
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3400
   These don't provoke an error unfortunately, instead are silently treated
 
3401
   as 'x'.  The following induces an error, until -std is added to get
 
3402
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3403
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3404
   that's true only with -std.  */
 
3405
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3406
 
 
3407
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3408
   inside strings and character constants.  */
 
3409
#define FOO(x) 'x'
 
3410
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3411
 
 
3412
int test (int i, double x);
 
3413
struct s1 {int (*f) (int a);};
 
3414
struct s2 {int (*f) (double a);};
 
3415
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3416
int argc;
 
3417
char **argv;
 
3418
int
 
3419
main ()
 
3420
{
 
3421
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3422
  ;
 
3423
  return 0;
 
3424
}
 
3425
_ACEOF
 
3426
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3427
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3428
do
 
3429
  CC="$ac_save_CC $ac_arg"
 
3430
  rm -f conftest.$ac_objext
 
3431
if { (ac_try="$ac_compile"
 
3432
case "(($ac_try" in
 
3433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3434
  *) ac_try_echo=$ac_try;;
 
3435
esac
 
3436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3437
  (eval "$ac_compile") 2>conftest.er1
 
3438
  ac_status=$?
 
3439
  grep -v '^ *+' conftest.er1 >conftest.err
 
3440
  rm -f conftest.er1
 
3441
  cat conftest.err >&5
 
3442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3443
  (exit $ac_status); } && {
 
3444
         test -z "$ac_c_werror_flag" ||
 
3445
         test ! -s conftest.err
 
3446
       } && test -s conftest.$ac_objext; then
 
3447
  ac_cv_prog_cc_c89=$ac_arg
 
3448
else
 
3449
  echo "$as_me: failed program was:" >&5
 
3450
sed 's/^/| /' conftest.$ac_ext >&5
 
3451
 
 
3452
 
 
3453
fi
 
3454
 
 
3455
rm -f core conftest.err conftest.$ac_objext
 
3456
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3457
done
 
3458
rm -f conftest.$ac_ext
 
3459
CC=$ac_save_CC
 
3460
 
 
3461
fi
 
3462
# AC_CACHE_VAL
 
3463
case "x$ac_cv_prog_cc_c89" in
 
3464
  x)
 
3465
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3466
echo "${ECHO_T}none needed" >&6; } ;;
 
3467
  xno)
 
3468
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3469
echo "${ECHO_T}unsupported" >&6; } ;;
 
3470
  *)
 
3471
    CC="$CC $ac_cv_prog_cc_c89"
 
3472
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3473
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3474
esac
 
3475
 
 
3476
 
 
3477
ac_ext=c
 
3478
ac_cpp='$CPP $CPPFLAGS'
 
3479
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3480
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3481
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3482
DEPDIR="${am__leading_dot}deps"
 
3483
 
 
3484
ac_config_commands="$ac_config_commands depfiles"
 
3485
 
 
3486
 
 
3487
am_make=${MAKE-make}
 
3488
cat > confinc << 'END'
 
3489
am__doit:
 
3490
        @echo done
 
3491
.PHONY: am__doit
 
3492
END
 
3493
# If we don't find an include directive, just comment out the code.
 
3494
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3495
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3496
am__include="#"
 
3497
am__quote=
 
3498
_am_result=none
 
3499
# First try GNU make style include.
 
3500
echo "include confinc" > confmf
 
3501
# We grep out `Entering directory' and `Leaving directory'
 
3502
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3503
# In particular we don't look at `^make:' because GNU make might
 
3504
# be invoked under some other name (usually "gmake"), in which
 
3505
# case it prints its new name instead of `make'.
 
3506
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3507
   am__include=include
 
3508
   am__quote=
 
3509
   _am_result=GNU
 
3510
fi
 
3511
# Now try BSD make style include.
 
3512
if test "$am__include" = "#"; then
 
3513
   echo '.include "confinc"' > confmf
 
3514
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3515
      am__include=.include
 
3516
      am__quote="\""
 
3517
      _am_result=BSD
 
3518
   fi
 
3519
fi
 
3520
 
 
3521
 
 
3522
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3523
echo "${ECHO_T}$_am_result" >&6; }
 
3524
rm -f confinc confmf
 
3525
 
 
3526
# Check whether --enable-dependency-tracking was given.
 
3527
if test "${enable_dependency_tracking+set}" = set; then
 
3528
  enableval=$enable_dependency_tracking;
 
3529
fi
 
3530
 
 
3531
if test "x$enable_dependency_tracking" != xno; then
 
3532
  am_depcomp="$ac_aux_dir/depcomp"
 
3533
  AMDEPBACKSLASH='\'
 
3534
fi
 
3535
 if test "x$enable_dependency_tracking" != xno; then
 
3536
  AMDEP_TRUE=
 
3537
  AMDEP_FALSE='#'
 
3538
else
 
3539
  AMDEP_TRUE='#'
 
3540
  AMDEP_FALSE=
 
3541
fi
 
3542
 
 
3543
 
 
3544
 
 
3545
depcc="$CC"   am_compiler_list=
 
3546
 
 
3547
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3548
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3549
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3551
else
 
3552
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3553
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3554
  # making bogus files that we don't know about and never remove.  For
 
3555
  # instance it was reported that on HP-UX the gcc test will end up
 
3556
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3557
  # in D'.
 
3558
  mkdir conftest.dir
 
3559
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3560
  # using a relative directory.
 
3561
  cp "$am_depcomp" conftest.dir
 
3562
  cd conftest.dir
 
3563
  # We will build objects and dependencies in a subdirectory because
 
3564
  # it helps to detect inapplicable dependency modes.  For instance
 
3565
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3566
  # side effect of compilation, but ICC will put the dependencies in
 
3567
  # the current directory while Tru64 will put them in the object
 
3568
  # directory.
 
3569
  mkdir sub
 
3570
 
 
3571
  am_cv_CC_dependencies_compiler_type=none
 
3572
  if test "$am_compiler_list" = ""; then
 
3573
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3574
  fi
 
3575
  for depmode in $am_compiler_list; do
 
3576
    # Setup a source with many dependencies, because some compilers
 
3577
    # like to wrap large dependency lists on column 80 (with \), and
 
3578
    # we should not choose a depcomp mode which is confused by this.
 
3579
    #
 
3580
    # We need to recreate these files for each test, as the compiler may
 
3581
    # overwrite some of them when testing with obscure command lines.
 
3582
    # This happens at least with the AIX C compiler.
 
3583
    : > sub/conftest.c
 
3584
    for i in 1 2 3 4 5 6; do
 
3585
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3586
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3587
      # Solaris 8's {/usr,}/bin/sh.
 
3588
      touch sub/conftst$i.h
 
3589
    done
 
3590
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3591
 
 
3592
    case $depmode in
 
3593
    nosideeffect)
 
3594
      # after this tag, mechanisms are not by side-effect, so they'll
 
3595
      # only be used when explicitly requested
 
3596
      if test "x$enable_dependency_tracking" = xyes; then
 
3597
        continue
 
3598
      else
 
3599
        break
 
3600
      fi
 
3601
      ;;
 
3602
    none) break ;;
 
3603
    esac
 
3604
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3605
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3606
    # handle `-M -o', and we need to detect this.
 
3607
    if depmode=$depmode \
 
3608
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3609
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3610
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3611
         >/dev/null 2>conftest.err &&
 
3612
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3613
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3614
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3615
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3616
      # icc doesn't choke on unknown options, it will just issue warnings
 
3617
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3618
      # that says an option was ignored or not supported.
 
3619
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3620
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3621
      # The diagnosis changed in icc 8.0:
 
3622
      #   icc: Command line remark: option '-MP' not supported
 
3623
      if (grep 'ignoring option' conftest.err ||
 
3624
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3625
        am_cv_CC_dependencies_compiler_type=$depmode
 
3626
        break
 
3627
      fi
 
3628
    fi
 
3629
  done
 
3630
 
 
3631
  cd ..
 
3632
  rm -rf conftest.dir
 
3633
else
 
3634
  am_cv_CC_dependencies_compiler_type=none
 
3635
fi
 
3636
 
 
3637
fi
 
3638
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3639
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3640
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3641
 
 
3642
 if
 
3643
  test "x$enable_dependency_tracking" != xno \
 
3644
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3645
  am__fastdepCC_TRUE=
 
3646
  am__fastdepCC_FALSE='#'
 
3647
else
 
3648
  am__fastdepCC_TRUE='#'
 
3649
  am__fastdepCC_FALSE=
 
3650
fi
 
3651
 
 
3652
 
 
3653
   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
3654
echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
 
3655
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
3656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3657
else
 
3658
  ac_cv_prog_cc_c99=no
 
3659
ac_save_CC=$CC
 
3660
cat >conftest.$ac_ext <<_ACEOF
 
3661
/* confdefs.h.  */
 
3662
_ACEOF
 
3663
cat confdefs.h >>conftest.$ac_ext
 
3664
cat >>conftest.$ac_ext <<_ACEOF
 
3665
/* end confdefs.h.  */
 
3666
#include <stdarg.h>
 
3667
#include <stdbool.h>
 
3668
#include <stdlib.h>
 
3669
#include <wchar.h>
 
3670
#include <stdio.h>
 
3671
 
 
3672
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
3673
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
3674
#define showlist(...) puts (#__VA_ARGS__)
 
3675
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
3676
static void
 
3677
test_varargs_macros (void)
 
3678
{
 
3679
  int x = 1234;
 
3680
  int y = 5678;
 
3681
  debug ("Flag");
 
3682
  debug ("X = %d\n", x);
 
3683
  showlist (The first, second, and third items.);
 
3684
  report (x>y, "x is %d but y is %d", x, y);
 
3685
}
 
3686
 
 
3687
// Check long long types.
 
3688
#define BIG64 18446744073709551615ull
 
3689
#define BIG32 4294967295ul
 
3690
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
3691
#if !BIG_OK
 
3692
  your preprocessor is broken;
 
3693
#endif
 
3694
#if BIG_OK
 
3695
#else
 
3696
  your preprocessor is broken;
 
3697
#endif
 
3698
static long long int bignum = -9223372036854775807LL;
 
3699
static unsigned long long int ubignum = BIG64;
 
3700
 
 
3701
struct incomplete_array
 
3702
{
 
3703
  int datasize;
 
3704
  double data[];
 
3705
};
 
3706
 
 
3707
struct named_init {
 
3708
  int number;
 
3709
  const wchar_t *name;
 
3710
  double average;
 
3711
};
 
3712
 
 
3713
typedef const char *ccp;
 
3714
 
 
3715
static inline int
 
3716
test_restrict (ccp restrict text)
 
3717
{
 
3718
  // See if C++-style comments work.
 
3719
  // Iterate through items via the restricted pointer.
 
3720
  // Also check for declarations in for loops.
 
3721
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
3722
    continue;
 
3723
  return 0;
 
3724
}
 
3725
 
 
3726
// Check varargs and va_copy.
 
3727
static void
 
3728
test_varargs (const char *format, ...)
 
3729
{
 
3730
  va_list args;
 
3731
  va_start (args, format);
 
3732
  va_list args_copy;
 
3733
  va_copy (args_copy, args);
 
3734
 
 
3735
  const char *str;
 
3736
  int number;
 
3737
  float fnumber;
 
3738
 
 
3739
  while (*format)
 
3740
    {
 
3741
      switch (*format++)
 
3742
        {
 
3743
        case 's': // string
 
3744
          str = va_arg (args_copy, const char *);
 
3745
          break;
 
3746
        case 'd': // int
 
3747
          number = va_arg (args_copy, int);
 
3748
          break;
 
3749
        case 'f': // float
 
3750
          fnumber = va_arg (args_copy, double);
 
3751
          break;
 
3752
        default:
 
3753
          break;
 
3754
        }
 
3755
    }
 
3756
  va_end (args_copy);
 
3757
  va_end (args);
 
3758
}
 
3759
 
 
3760
int
 
3761
main ()
 
3762
{
 
3763
 
 
3764
  // Check bool.
 
3765
  _Bool success = false;
 
3766
 
 
3767
  // Check restrict.
 
3768
  if (test_restrict ("String literal") == 0)
 
3769
    success = true;
 
3770
  char *restrict newvar = "Another string";
 
3771
 
 
3772
  // Check varargs.
 
3773
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
3774
  test_varargs_macros ();
 
3775
 
 
3776
  // Check flexible array members.
 
3777
  struct incomplete_array *ia =
 
3778
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
3779
  ia->datasize = 10;
 
3780
  for (int i = 0; i < ia->datasize; ++i)
 
3781
    ia->data[i] = i * 1.234;
 
3782
 
 
3783
  // Check named initializers.
 
3784
  struct named_init ni = {
 
3785
    .number = 34,
 
3786
    .name = L"Test wide string",
 
3787
    .average = 543.34343,
 
3788
  };
 
3789
 
 
3790
  ni.number = 58;
 
3791
 
 
3792
  int dynamic_array[ni.number];
 
3793
  dynamic_array[ni.number - 1] = 543;
 
3794
 
 
3795
  // work around unused variable warnings
 
3796
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
3797
          || dynamic_array[ni.number - 1] != 543);
 
3798
 
 
3799
  ;
 
3800
  return 0;
 
3801
}
 
3802
_ACEOF
 
3803
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
 
3804
do
 
3805
  CC="$ac_save_CC $ac_arg"
 
3806
  rm -f conftest.$ac_objext
 
3807
if { (ac_try="$ac_compile"
 
3808
case "(($ac_try" in
 
3809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3810
  *) ac_try_echo=$ac_try;;
 
3811
esac
 
3812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3813
  (eval "$ac_compile") 2>conftest.er1
 
3814
  ac_status=$?
 
3815
  grep -v '^ *+' conftest.er1 >conftest.err
 
3816
  rm -f conftest.er1
 
3817
  cat conftest.err >&5
 
3818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3819
  (exit $ac_status); } && {
 
3820
         test -z "$ac_c_werror_flag" ||
 
3821
         test ! -s conftest.err
 
3822
       } && test -s conftest.$ac_objext; then
 
3823
  ac_cv_prog_cc_c99=$ac_arg
 
3824
else
 
3825
  echo "$as_me: failed program was:" >&5
 
3826
sed 's/^/| /' conftest.$ac_ext >&5
 
3827
 
 
3828
 
 
3829
fi
 
3830
 
 
3831
rm -f core conftest.err conftest.$ac_objext
 
3832
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
3833
done
 
3834
rm -f conftest.$ac_ext
 
3835
CC=$ac_save_CC
 
3836
 
 
3837
fi
 
3838
# AC_CACHE_VAL
 
3839
case "x$ac_cv_prog_cc_c99" in
 
3840
  x)
 
3841
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3842
echo "${ECHO_T}none needed" >&6; } ;;
 
3843
  xno)
 
3844
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3845
echo "${ECHO_T}unsupported" >&6; } ;;
 
3846
  *)
 
3847
    CC="$CC $ac_cv_prog_cc_c99"
 
3848
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
3849
echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
 
3850
esac
 
3851
 
 
3852
 
 
3853
 
 
3854
if test "x$CC" != xcc; then
 
3855
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
3856
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
3857
else
 
3858
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
3859
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
3860
fi
 
3861
set dummy $CC; ac_cc=`echo $2 |
 
3862
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3863
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
3864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3865
else
 
3866
  cat >conftest.$ac_ext <<_ACEOF
 
3867
/* confdefs.h.  */
 
3868
_ACEOF
 
3869
cat confdefs.h >>conftest.$ac_ext
 
3870
cat >>conftest.$ac_ext <<_ACEOF
 
3871
/* end confdefs.h.  */
 
3872
 
 
3873
int
 
3874
main ()
 
3875
{
 
3876
 
 
3877
  ;
 
3878
  return 0;
 
3879
}
 
3880
_ACEOF
 
3881
# Make sure it works both with $CC and with simple cc.
 
3882
# We do the test twice because some compilers refuse to overwrite an
 
3883
# existing .o file with -o, though they will create one.
 
3884
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3885
rm -f conftest2.*
 
3886
if { (case "(($ac_try" in
 
3887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3888
  *) ac_try_echo=$ac_try;;
 
3889
esac
 
3890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3891
  (eval "$ac_try") 2>&5
 
3892
  ac_status=$?
 
3893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3894
  (exit $ac_status); } &&
 
3895
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3896
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3897
  *) ac_try_echo=$ac_try;;
 
3898
esac
 
3899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3900
  (eval "$ac_try") 2>&5
 
3901
  ac_status=$?
 
3902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3903
  (exit $ac_status); };
 
3904
then
 
3905
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3906
  if test "x$CC" != xcc; then
 
3907
    # Test first that cc exists at all.
 
3908
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3909
  { (case "(($ac_try" in
 
3910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3911
  *) ac_try_echo=$ac_try;;
 
3912
esac
 
3913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3914
  (eval "$ac_try") 2>&5
 
3915
  ac_status=$?
 
3916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3917
  (exit $ac_status); }; }; then
 
3918
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3919
      rm -f conftest2.*
 
3920
      if { (case "(($ac_try" in
 
3921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3922
  *) ac_try_echo=$ac_try;;
 
3923
esac
 
3924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3925
  (eval "$ac_try") 2>&5
 
3926
  ac_status=$?
 
3927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3928
  (exit $ac_status); } &&
 
3929
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3931
  *) ac_try_echo=$ac_try;;
 
3932
esac
 
3933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3934
  (eval "$ac_try") 2>&5
 
3935
  ac_status=$?
 
3936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3937
  (exit $ac_status); };
 
3938
      then
 
3939
        # cc works too.
 
3940
        :
 
3941
      else
 
3942
        # cc exists but doesn't like -o.
 
3943
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3944
      fi
 
3945
    fi
 
3946
  fi
 
3947
else
 
3948
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3949
fi
 
3950
rm -f core conftest*
 
3951
 
 
3952
fi
 
3953
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
3954
  { echo "$as_me:$LINENO: result: yes" >&5
 
3955
echo "${ECHO_T}yes" >&6; }
 
3956
else
 
3957
  { echo "$as_me:$LINENO: result: no" >&5
 
3958
echo "${ECHO_T}no" >&6; }
 
3959
 
 
3960
cat >>confdefs.h <<\_ACEOF
 
3961
#define NO_MINUS_C_MINUS_O 1
 
3962
_ACEOF
 
3963
 
 
3964
fi
 
3965
 
 
3966
# FIXME: we rely on the cache variable name because
 
3967
# there is no other way.
 
3968
set dummy $CC
 
3969
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3970
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
3971
   # Losing compiler, so override with the script.
 
3972
   # FIXME: It is wrong to rewrite CC.
 
3973
   # But if we don't then we get into trouble of one sort or another.
 
3974
   # A longer-term fix would be to have automake use am__CC in this case,
 
3975
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3976
   CC="$am_aux_dir/compile $CC"
 
3977
fi
 
3978
 
 
3979
 
 
3980
if test -n "$ac_tool_prefix"; then
 
3981
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3982
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3983
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3984
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3985
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3987
else
 
3988
  if test -n "$RANLIB"; then
 
3989
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3990
else
 
3991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3992
for as_dir in $PATH
 
3993
do
 
3994
  IFS=$as_save_IFS
 
3995
  test -z "$as_dir" && as_dir=.
 
3996
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3997
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3998
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3999
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4000
    break 2
 
4001
  fi
 
4002
done
 
4003
done
 
4004
IFS=$as_save_IFS
 
4005
 
 
4006
fi
 
4007
fi
 
4008
RANLIB=$ac_cv_prog_RANLIB
 
4009
if test -n "$RANLIB"; then
 
4010
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4011
echo "${ECHO_T}$RANLIB" >&6; }
 
4012
else
 
4013
  { echo "$as_me:$LINENO: result: no" >&5
 
4014
echo "${ECHO_T}no" >&6; }
 
4015
fi
 
4016
 
 
4017
 
 
4018
fi
 
4019
if test -z "$ac_cv_prog_RANLIB"; then
 
4020
  ac_ct_RANLIB=$RANLIB
 
4021
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4022
set dummy ranlib; ac_word=$2
 
4023
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4025
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4027
else
 
4028
  if test -n "$ac_ct_RANLIB"; then
 
4029
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4030
else
 
4031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4032
for as_dir in $PATH
 
4033
do
 
4034
  IFS=$as_save_IFS
 
4035
  test -z "$as_dir" && as_dir=.
 
4036
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4037
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4038
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4039
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4040
    break 2
 
4041
  fi
 
4042
done
 
4043
done
 
4044
IFS=$as_save_IFS
 
4045
 
 
4046
fi
 
4047
fi
 
4048
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4049
if test -n "$ac_ct_RANLIB"; then
 
4050
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4051
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
4052
else
 
4053
  { echo "$as_me:$LINENO: result: no" >&5
 
4054
echo "${ECHO_T}no" >&6; }
 
4055
fi
 
4056
 
 
4057
  if test "x$ac_ct_RANLIB" = x; then
 
4058
    RANLIB=":"
 
4059
  else
 
4060
    case $cross_compiling:$ac_tool_warned in
 
4061
yes:)
 
4062
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4063
whose name does not start with the host triplet.  If you think this
 
4064
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4065
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4066
whose name does not start with the host triplet.  If you think this
 
4067
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4068
ac_tool_warned=yes ;;
 
4069
esac
 
4070
    RANLIB=$ac_ct_RANLIB
 
4071
  fi
 
4072
else
 
4073
  RANLIB="$ac_cv_prog_RANLIB"
 
4074
fi
 
4075
 
 
4076
 
 
4077
 
 
4078
 
 
4079
 
 
4080
# Check whether --enable-shared was given.
 
4081
if test "${enable_shared+set}" = set; then
 
4082
  enableval=$enable_shared; p=${PACKAGE-default}
 
4083
    case $enableval in
 
4084
    yes) enable_shared=yes ;;
 
4085
    no) enable_shared=no ;;
 
4086
    *)
 
4087
      enable_shared=no
 
4088
      # Look at the argument we got.  We use all the common list separators.
 
4089
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4090
      for pkg in $enableval; do
 
4091
        IFS="$lt_save_ifs"
 
4092
        if test "X$pkg" = "X$p"; then
 
4093
          enable_shared=yes
 
4094
        fi
 
4095
      done
 
4096
      IFS="$lt_save_ifs"
 
4097
      ;;
 
4098
    esac
 
4099
else
 
4100
  enable_shared=no
 
4101
fi
 
4102
 
 
4103
 
 
4104
 
 
4105
 
 
4106
 
 
4107
 
 
4108
 
 
4109
 
 
4110
 
 
4111
case `pwd` in
 
4112
  *\ * | *\     *)
 
4113
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4114
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4115
esac
 
4116
 
 
4117
 
 
4118
 
 
4119
macro_version='2.2.4'
 
4120
macro_revision='1.2976'
 
4121
 
 
4122
 
 
4123
 
 
4124
 
 
4125
 
 
4126
 
 
4127
 
 
4128
 
 
4129
 
 
4130
 
 
4131
 
 
4132
 
 
4133
 
 
4134
ltmain="$ac_aux_dir/ltmain.sh"
 
4135
 
 
4136
# Make sure we can run config.sub.
 
4137
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4138
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
4139
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
4140
   { (exit 1); exit 1; }; }
 
4141
 
 
4142
{ echo "$as_me:$LINENO: checking build system type" >&5
 
4143
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
4144
if test "${ac_cv_build+set}" = set; then
 
4145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4146
else
 
4147
  ac_build_alias=$build_alias
 
4148
test "x$ac_build_alias" = x &&
 
4149
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4150
test "x$ac_build_alias" = x &&
 
4151
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4152
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4153
   { (exit 1); exit 1; }; }
 
4154
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4155
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
4156
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
4157
   { (exit 1); exit 1; }; }
 
4158
 
 
4159
fi
 
4160
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4161
echo "${ECHO_T}$ac_cv_build" >&6; }
 
4162
case $ac_cv_build in
 
4163
*-*-*) ;;
 
4164
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
4165
echo "$as_me: error: invalid value of canonical build" >&2;}
 
4166
   { (exit 1); exit 1; }; };;
 
4167
esac
 
4168
build=$ac_cv_build
 
4169
ac_save_IFS=$IFS; IFS='-'
 
4170
set x $ac_cv_build
 
4171
shift
 
4172
build_cpu=$1
 
4173
build_vendor=$2
 
4174
shift; shift
 
4175
# Remember, the first character of IFS is used to create $*,
 
4176
# except with old shells:
 
4177
build_os=$*
 
4178
IFS=$ac_save_IFS
 
4179
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4180
 
 
4181
 
 
4182
{ echo "$as_me:$LINENO: checking host system type" >&5
 
4183
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
4184
if test "${ac_cv_host+set}" = set; then
 
4185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4186
else
 
4187
  if test "x$host_alias" = x; then
 
4188
  ac_cv_host=$ac_cv_build
 
4189
else
 
4190
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4191
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
4192
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
4193
   { (exit 1); exit 1; }; }
 
4194
fi
 
4195
 
 
4196
fi
 
4197
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4198
echo "${ECHO_T}$ac_cv_host" >&6; }
 
4199
case $ac_cv_host in
 
4200
*-*-*) ;;
 
4201
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
4202
echo "$as_me: error: invalid value of canonical host" >&2;}
 
4203
   { (exit 1); exit 1; }; };;
 
4204
esac
 
4205
host=$ac_cv_host
 
4206
ac_save_IFS=$IFS; IFS='-'
 
4207
set x $ac_cv_host
 
4208
shift
 
4209
host_cpu=$1
 
4210
host_vendor=$2
 
4211
shift; shift
 
4212
# Remember, the first character of IFS is used to create $*,
 
4213
# except with old shells:
 
4214
host_os=$*
 
4215
IFS=$ac_save_IFS
 
4216
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4217
 
 
4218
 
 
4219
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4220
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
4221
if test "${ac_cv_path_SED+set}" = set; then
 
4222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4223
else
 
4224
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4225
     for ac_i in 1 2 3 4 5 6 7; do
 
4226
       ac_script="$ac_script$as_nl$ac_script"
 
4227
     done
 
4228
     echo "$ac_script" | sed 99q >conftest.sed
 
4229
     $as_unset ac_script || ac_script=
 
4230
     # Extract the first word of "sed gsed" to use in msg output
 
4231
if test -z "$SED"; then
 
4232
set dummy sed gsed; ac_prog_name=$2
 
4233
if test "${ac_cv_path_SED+set}" = set; then
 
4234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4235
else
 
4236
  ac_path_SED_found=false
 
4237
# Loop through the user's path and test for each of PROGNAME-LIST
 
4238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4239
for as_dir in $PATH
 
4240
do
 
4241
  IFS=$as_save_IFS
 
4242
  test -z "$as_dir" && as_dir=.
 
4243
  for ac_prog in sed gsed; do
 
4244
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4245
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4246
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4247
    # Check for GNU ac_path_SED and select it if it is found.
 
4248
  # Check for GNU $ac_path_SED
 
4249
case `"$ac_path_SED" --version 2>&1` in
 
4250
*GNU*)
 
4251
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4252
*)
 
4253
  ac_count=0
 
4254
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4255
  while :
 
4256
  do
 
4257
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4258
    mv "conftest.tmp" "conftest.in"
 
4259
    cp "conftest.in" "conftest.nl"
 
4260
    echo '' >> "conftest.nl"
 
4261
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4262
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4263
    ac_count=`expr $ac_count + 1`
 
4264
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4265
      # Best one so far, save it but keep looking for a better one
 
4266
      ac_cv_path_SED="$ac_path_SED"
 
4267
      ac_path_SED_max=$ac_count
 
4268
    fi
 
4269
    # 10*(2^10) chars as input seems more than enough
 
4270
    test $ac_count -gt 10 && break
 
4271
  done
 
4272
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4273
esac
 
4274
 
 
4275
 
 
4276
    $ac_path_SED_found && break 3
 
4277
  done
 
4278
done
 
4279
 
 
4280
done
 
4281
IFS=$as_save_IFS
 
4282
 
 
4283
 
 
4284
fi
 
4285
 
 
4286
SED="$ac_cv_path_SED"
 
4287
if test -z "$SED"; then
 
4288
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
 
4289
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
 
4290
   { (exit 1); exit 1; }; }
 
4291
fi
 
4292
 
 
4293
else
 
4294
  ac_cv_path_SED=$SED
 
4295
fi
 
4296
 
 
4297
fi
 
4298
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
4299
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
 
4300
 SED="$ac_cv_path_SED"
 
4301
  rm -f conftest.sed
 
4302
 
 
4303
test -z "$SED" && SED=sed
 
4304
Xsed="$SED -e 1s/^X//"
 
4305
 
 
4306
 
 
4307
 
 
4308
 
 
4309
 
 
4310
 
 
4311
 
 
4312
 
 
4313
 
 
4314
 
 
4315
 
 
4316
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4317
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4318
if test "${ac_cv_path_GREP+set}" = set; then
 
4319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4320
else
 
4321
  # Extract the first word of "grep ggrep" to use in msg output
 
4322
if test -z "$GREP"; then
 
4323
set dummy grep ggrep; ac_prog_name=$2
 
4324
if test "${ac_cv_path_GREP+set}" = set; then
 
4325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4326
else
 
4327
  ac_path_GREP_found=false
 
4328
# Loop through the user's path and test for each of PROGNAME-LIST
 
4329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4330
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4331
do
 
4332
  IFS=$as_save_IFS
 
4333
  test -z "$as_dir" && as_dir=.
 
4334
  for ac_prog in grep ggrep; do
 
4335
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4336
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4337
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4338
    # Check for GNU ac_path_GREP and select it if it is found.
 
4339
  # Check for GNU $ac_path_GREP
 
4340
case `"$ac_path_GREP" --version 2>&1` in
 
4341
*GNU*)
 
4342
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4343
*)
 
4344
  ac_count=0
 
4345
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4346
  while :
 
4347
  do
 
4348
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4349
    mv "conftest.tmp" "conftest.in"
 
4350
    cp "conftest.in" "conftest.nl"
 
4351
    echo 'GREP' >> "conftest.nl"
 
4352
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4353
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4354
    ac_count=`expr $ac_count + 1`
 
4355
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4356
      # Best one so far, save it but keep looking for a better one
 
4357
      ac_cv_path_GREP="$ac_path_GREP"
 
4358
      ac_path_GREP_max=$ac_count
 
4359
    fi
 
4360
    # 10*(2^10) chars as input seems more than enough
 
4361
    test $ac_count -gt 10 && break
 
4362
  done
 
4363
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4364
esac
 
4365
 
 
4366
 
 
4367
    $ac_path_GREP_found && break 3
 
4368
  done
 
4369
done
 
4370
 
 
4371
done
 
4372
IFS=$as_save_IFS
 
4373
 
 
4374
 
 
4375
fi
 
4376
 
 
4377
GREP="$ac_cv_path_GREP"
 
4378
if test -z "$GREP"; then
 
4379
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4380
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4381
   { (exit 1); exit 1; }; }
 
4382
fi
 
4383
 
 
4384
else
 
4385
  ac_cv_path_GREP=$GREP
 
4386
fi
 
4387
 
 
4388
 
 
4389
fi
 
4390
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4391
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4392
 GREP="$ac_cv_path_GREP"
 
4393
 
 
4394
 
 
4395
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4396
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4397
if test "${ac_cv_path_EGREP+set}" = set; then
 
4398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4399
else
 
4400
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4401
   then ac_cv_path_EGREP="$GREP -E"
 
4402
   else
 
4403
     # Extract the first word of "egrep" to use in msg output
 
4404
if test -z "$EGREP"; then
 
4405
set dummy egrep; ac_prog_name=$2
 
4406
if test "${ac_cv_path_EGREP+set}" = set; then
 
4407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4408
else
 
4409
  ac_path_EGREP_found=false
 
4410
# Loop through the user's path and test for each of PROGNAME-LIST
 
4411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4412
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4413
do
 
4414
  IFS=$as_save_IFS
 
4415
  test -z "$as_dir" && as_dir=.
 
4416
  for ac_prog in egrep; do
 
4417
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4418
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4419
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4420
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4421
  # Check for GNU $ac_path_EGREP
 
4422
case `"$ac_path_EGREP" --version 2>&1` in
 
4423
*GNU*)
 
4424
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4425
*)
 
4426
  ac_count=0
 
4427
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4428
  while :
 
4429
  do
 
4430
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4431
    mv "conftest.tmp" "conftest.in"
 
4432
    cp "conftest.in" "conftest.nl"
 
4433
    echo 'EGREP' >> "conftest.nl"
 
4434
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4435
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4436
    ac_count=`expr $ac_count + 1`
 
4437
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4438
      # Best one so far, save it but keep looking for a better one
 
4439
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4440
      ac_path_EGREP_max=$ac_count
 
4441
    fi
 
4442
    # 10*(2^10) chars as input seems more than enough
 
4443
    test $ac_count -gt 10 && break
 
4444
  done
 
4445
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4446
esac
 
4447
 
 
4448
 
 
4449
    $ac_path_EGREP_found && break 3
 
4450
  done
 
4451
done
 
4452
 
 
4453
done
 
4454
IFS=$as_save_IFS
 
4455
 
 
4456
 
 
4457
fi
 
4458
 
 
4459
EGREP="$ac_cv_path_EGREP"
 
4460
if test -z "$EGREP"; then
 
4461
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4462
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4463
   { (exit 1); exit 1; }; }
 
4464
fi
 
4465
 
 
4466
else
 
4467
  ac_cv_path_EGREP=$EGREP
 
4468
fi
 
4469
 
 
4470
 
 
4471
   fi
 
4472
fi
 
4473
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4474
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4475
 EGREP="$ac_cv_path_EGREP"
 
4476
 
 
4477
 
 
4478
{ echo "$as_me:$LINENO: checking for fgrep" >&5
 
4479
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
 
4480
if test "${ac_cv_path_FGREP+set}" = set; then
 
4481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4482
else
 
4483
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4484
   then ac_cv_path_FGREP="$GREP -F"
 
4485
   else
 
4486
     # Extract the first word of "fgrep" to use in msg output
 
4487
if test -z "$FGREP"; then
 
4488
set dummy fgrep; ac_prog_name=$2
 
4489
if test "${ac_cv_path_FGREP+set}" = set; then
 
4490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4491
else
 
4492
  ac_path_FGREP_found=false
 
4493
# Loop through the user's path and test for each of PROGNAME-LIST
 
4494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4495
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4496
do
 
4497
  IFS=$as_save_IFS
 
4498
  test -z "$as_dir" && as_dir=.
 
4499
  for ac_prog in fgrep; do
 
4500
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4501
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4502
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4503
    # Check for GNU ac_path_FGREP and select it if it is found.
 
4504
  # Check for GNU $ac_path_FGREP
 
4505
case `"$ac_path_FGREP" --version 2>&1` in
 
4506
*GNU*)
 
4507
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4508
*)
 
4509
  ac_count=0
 
4510
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4511
  while :
 
4512
  do
 
4513
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4514
    mv "conftest.tmp" "conftest.in"
 
4515
    cp "conftest.in" "conftest.nl"
 
4516
    echo 'FGREP' >> "conftest.nl"
 
4517
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4518
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4519
    ac_count=`expr $ac_count + 1`
 
4520
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4521
      # Best one so far, save it but keep looking for a better one
 
4522
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4523
      ac_path_FGREP_max=$ac_count
 
4524
    fi
 
4525
    # 10*(2^10) chars as input seems more than enough
 
4526
    test $ac_count -gt 10 && break
 
4527
  done
 
4528
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4529
esac
 
4530
 
 
4531
 
 
4532
    $ac_path_FGREP_found && break 3
 
4533
  done
 
4534
done
 
4535
 
 
4536
done
 
4537
IFS=$as_save_IFS
 
4538
 
 
4539
 
 
4540
fi
 
4541
 
 
4542
FGREP="$ac_cv_path_FGREP"
 
4543
if test -z "$FGREP"; then
 
4544
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4545
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4546
   { (exit 1); exit 1; }; }
 
4547
fi
 
4548
 
 
4549
else
 
4550
  ac_cv_path_FGREP=$FGREP
 
4551
fi
 
4552
 
 
4553
 
 
4554
   fi
 
4555
fi
 
4556
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4557
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
 
4558
 FGREP="$ac_cv_path_FGREP"
 
4559
 
 
4560
 
 
4561
test -z "$GREP" && GREP=grep
 
4562
 
 
4563
 
 
4564
 
 
4565
 
 
4566
 
 
4567
 
 
4568
 
 
4569
 
 
4570
 
 
4571
 
 
4572
 
 
4573
 
 
4574
 
 
4575
 
 
4576
 
 
4577
 
 
4578
 
 
4579
 
 
4580
 
 
4581
# Check whether --with-gnu-ld was given.
 
4582
if test "${with_gnu_ld+set}" = set; then
 
4583
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4584
else
 
4585
  with_gnu_ld=no
 
4586
fi
 
4587
 
 
4588
ac_prog=ld
 
4589
if test "$GCC" = yes; then
 
4590
  # Check if gcc -print-prog-name=ld gives a path.
 
4591
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4592
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4593
  case $host in
 
4594
  *-*-mingw*)
 
4595
    # gcc leaves a trailing carriage return which upsets mingw
 
4596
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4597
  *)
 
4598
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4599
  esac
 
4600
  case $ac_prog in
 
4601
    # Accept absolute paths.
 
4602
    [\\/]* | ?:[\\/]*)
 
4603
      re_direlt='/[^/][^/]*/\.\./'
 
4604
      # Canonicalize the pathname of ld
 
4605
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4606
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4607
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4608
      done
 
4609
      test -z "$LD" && LD="$ac_prog"
 
4610
      ;;
 
4611
  "")
 
4612
    # If it fails, then pretend we aren't using GCC.
 
4613
    ac_prog=ld
 
4614
    ;;
 
4615
  *)
 
4616
    # If it is relative, then search for the first ld in PATH.
 
4617
    with_gnu_ld=unknown
 
4618
    ;;
 
4619
  esac
 
4620
elif test "$with_gnu_ld" = yes; then
 
4621
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4622
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4623
else
 
4624
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4625
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4626
fi
 
4627
if test "${lt_cv_path_LD+set}" = set; then
 
4628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4629
else
 
4630
  if test -z "$LD"; then
 
4631
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4632
  for ac_dir in $PATH; do
 
4633
    IFS="$lt_save_ifs"
 
4634
    test -z "$ac_dir" && ac_dir=.
 
4635
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4636
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4637
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4638
      # but apparently some variants of GNU ld only accept -v.
 
4639
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4640
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4641
      *GNU* | *'with BFD'*)
 
4642
        test "$with_gnu_ld" != no && break
 
4643
        ;;
 
4644
      *)
 
4645
        test "$with_gnu_ld" != yes && break
 
4646
        ;;
 
4647
      esac
 
4648
    fi
 
4649
  done
 
4650
  IFS="$lt_save_ifs"
 
4651
else
 
4652
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4653
fi
 
4654
fi
 
4655
 
 
4656
LD="$lt_cv_path_LD"
 
4657
if test -n "$LD"; then
 
4658
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4659
echo "${ECHO_T}$LD" >&6; }
 
4660
else
 
4661
  { echo "$as_me:$LINENO: result: no" >&5
 
4662
echo "${ECHO_T}no" >&6; }
 
4663
fi
 
4664
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4665
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4666
   { (exit 1); exit 1; }; }
 
4667
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4668
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4669
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4671
else
 
4672
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4673
case `$LD -v 2>&1 </dev/null` in
 
4674
*GNU* | *'with BFD'*)
 
4675
  lt_cv_prog_gnu_ld=yes
 
4676
  ;;
 
4677
*)
 
4678
  lt_cv_prog_gnu_ld=no
 
4679
  ;;
 
4680
esac
 
4681
fi
 
4682
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4683
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4684
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4685
 
 
4686
 
 
4687
 
 
4688
 
 
4689
 
 
4690
 
 
4691
 
 
4692
 
 
4693
 
 
4694
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4695
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
 
4696
if test "${lt_cv_path_NM+set}" = set; then
 
4697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4698
else
 
4699
  if test -n "$NM"; then
 
4700
  # Let the user override the test.
 
4701
  lt_cv_path_NM="$NM"
 
4702
else
 
4703
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4704
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4705
    lt_nm_to_check="$lt_nm_to_check nm"
 
4706
  fi
 
4707
  for lt_tmp_nm in $lt_nm_to_check; do
 
4708
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4709
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4710
      IFS="$lt_save_ifs"
 
4711
      test -z "$ac_dir" && ac_dir=.
 
4712
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4713
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4714
        # Check to see if the nm accepts a BSD-compat flag.
 
4715
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4716
        #   nm: unknown option "B" ignored
 
4717
        # Tru64's nm complains that /dev/null is an invalid object file
 
4718
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4719
        */dev/null* | *'Invalid file or object type'*)
 
4720
          lt_cv_path_NM="$tmp_nm -B"
 
4721
          break
 
4722
          ;;
 
4723
        *)
 
4724
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4725
          */dev/null*)
 
4726
            lt_cv_path_NM="$tmp_nm -p"
 
4727
            break
 
4728
            ;;
 
4729
          *)
 
4730
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4731
            continue # so that we can try to find one that supports BSD flags
 
4732
            ;;
 
4733
          esac
 
4734
          ;;
 
4735
        esac
 
4736
      fi
 
4737
    done
 
4738
    IFS="$lt_save_ifs"
 
4739
  done
 
4740
  : ${lt_cv_path_NM=no}
 
4741
fi
 
4742
fi
 
4743
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4744
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4745
if test "$lt_cv_path_NM" != "no"; then
 
4746
  NM="$lt_cv_path_NM"
 
4747
else
 
4748
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4749
  if test -n "$ac_tool_prefix"; then
 
4750
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4751
  do
 
4752
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4753
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4754
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4756
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4758
else
 
4759
  if test -n "$DUMPBIN"; then
 
4760
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4761
else
 
4762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4763
for as_dir in $PATH
 
4764
do
 
4765
  IFS=$as_save_IFS
 
4766
  test -z "$as_dir" && as_dir=.
 
4767
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4768
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4769
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4771
    break 2
 
4772
  fi
 
4773
done
 
4774
done
 
4775
IFS=$as_save_IFS
 
4776
 
 
4777
fi
 
4778
fi
 
4779
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4780
if test -n "$DUMPBIN"; then
 
4781
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4782
echo "${ECHO_T}$DUMPBIN" >&6; }
 
4783
else
 
4784
  { echo "$as_me:$LINENO: result: no" >&5
 
4785
echo "${ECHO_T}no" >&6; }
 
4786
fi
 
4787
 
 
4788
 
 
4789
    test -n "$DUMPBIN" && break
 
4790
  done
 
4791
fi
 
4792
if test -z "$DUMPBIN"; then
 
4793
  ac_ct_DUMPBIN=$DUMPBIN
 
4794
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4795
do
 
4796
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4797
set dummy $ac_prog; ac_word=$2
 
4798
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4799
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4800
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4802
else
 
4803
  if test -n "$ac_ct_DUMPBIN"; then
 
4804
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4805
else
 
4806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4807
for as_dir in $PATH
 
4808
do
 
4809
  IFS=$as_save_IFS
 
4810
  test -z "$as_dir" && as_dir=.
 
4811
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4812
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4813
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4814
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4815
    break 2
 
4816
  fi
 
4817
done
 
4818
done
 
4819
IFS=$as_save_IFS
 
4820
 
 
4821
fi
 
4822
fi
 
4823
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4824
if test -n "$ac_ct_DUMPBIN"; then
 
4825
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4826
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
 
4827
else
 
4828
  { echo "$as_me:$LINENO: result: no" >&5
 
4829
echo "${ECHO_T}no" >&6; }
 
4830
fi
 
4831
 
 
4832
 
 
4833
  test -n "$ac_ct_DUMPBIN" && break
 
4834
done
 
4835
 
 
4836
  if test "x$ac_ct_DUMPBIN" = x; then
 
4837
    DUMPBIN=":"
 
4838
  else
 
4839
    case $cross_compiling:$ac_tool_warned in
 
4840
yes:)
 
4841
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4842
whose name does not start with the host triplet.  If you think this
 
4843
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4844
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4845
whose name does not start with the host triplet.  If you think this
 
4846
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4847
ac_tool_warned=yes ;;
 
4848
esac
 
4849
    DUMPBIN=$ac_ct_DUMPBIN
 
4850
  fi
 
4851
fi
 
4852
 
 
4853
 
 
4854
  if test "$DUMPBIN" != ":"; then
 
4855
    NM="$DUMPBIN"
 
4856
  fi
 
4857
fi
 
4858
test -z "$NM" && NM=nm
 
4859
 
 
4860
 
 
4861
 
 
4862
 
 
4863
 
 
4864
 
 
4865
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4866
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
 
4867
if test "${lt_cv_nm_interface+set}" = set; then
 
4868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4869
else
 
4870
  lt_cv_nm_interface="BSD nm"
 
4871
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4872
  (eval echo "\"\$as_me:4872: $ac_compile\"" >&5)
 
4873
  (eval "$ac_compile" 2>conftest.err)
 
4874
  cat conftest.err >&5
 
4875
  (eval echo "\"\$as_me:4875: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4876
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4877
  cat conftest.err >&5
 
4878
  (eval echo "\"\$as_me:4878: output\"" >&5)
 
4879
  cat conftest.out >&5
 
4880
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4881
    lt_cv_nm_interface="MS dumpbin"
 
4882
  fi
 
4883
  rm -f conftest*
 
4884
fi
 
4885
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4886
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
 
4887
 
 
4888
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4889
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4890
LN_S=$as_ln_s
 
4891
if test "$LN_S" = "ln -s"; then
 
4892
  { echo "$as_me:$LINENO: result: yes" >&5
 
4893
echo "${ECHO_T}yes" >&6; }
 
4894
else
 
4895
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4896
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4897
fi
 
4898
 
 
4899
# find the maximum length of command line arguments
 
4900
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4901
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
4902
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4904
else
 
4905
    i=0
 
4906
  teststring="ABCD"
 
4907
 
 
4908
  case $build_os in
 
4909
  msdosdjgpp*)
 
4910
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4911
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4912
    # during glob expansion).  Even if it were fixed, the result of this
 
4913
    # check would be larger than it should be.
 
4914
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4915
    ;;
 
4916
 
 
4917
  gnu*)
 
4918
    # Under GNU Hurd, this test is not required because there is
 
4919
    # no limit to the length of command line arguments.
 
4920
    # Libtool will interpret -1 as no limit whatsoever
 
4921
    lt_cv_sys_max_cmd_len=-1;
 
4922
    ;;
 
4923
 
 
4924
  cygwin* | mingw*)
 
4925
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4926
    # about 5 minutes as the teststring grows exponentially.
 
4927
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4928
    # you end up with a "frozen" computer, even though with patience
 
4929
    # the test eventually succeeds (with a max line length of 256k).
 
4930
    # Instead, let's just punt: use the minimum linelength reported by
 
4931
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4932
    lt_cv_sys_max_cmd_len=8192;
 
4933
    ;;
 
4934
 
 
4935
  amigaos*)
 
4936
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4937
    # So we just punt and use a minimum line length of 8192.
 
4938
    lt_cv_sys_max_cmd_len=8192;
 
4939
    ;;
 
4940
 
 
4941
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4942
    # This has been around since 386BSD, at least.  Likely further.
 
4943
    if test -x /sbin/sysctl; then
 
4944
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4945
    elif test -x /usr/sbin/sysctl; then
 
4946
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4947
    else
 
4948
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4949
    fi
 
4950
    # And add a safety zone
 
4951
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4952
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4953
    ;;
 
4954
 
 
4955
  interix*)
 
4956
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4957
    lt_cv_sys_max_cmd_len=196608
 
4958
    ;;
 
4959
 
 
4960
  osf*)
 
4961
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4962
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4963
    # nice to cause kernel panics so lets avoid the loop below.
 
4964
    # First set a reasonable default.
 
4965
    lt_cv_sys_max_cmd_len=16384
 
4966
    #
 
4967
    if test -x /sbin/sysconfig; then
 
4968
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4969
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4970
      esac
 
4971
    fi
 
4972
    ;;
 
4973
  sco3.2v5*)
 
4974
    lt_cv_sys_max_cmd_len=102400
 
4975
    ;;
 
4976
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4977
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4978
    if test -n "$kargmax"; then
 
4979
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4980
    else
 
4981
      lt_cv_sys_max_cmd_len=32768
 
4982
    fi
 
4983
    ;;
 
4984
  *)
 
4985
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4986
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4987
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4988
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4989
    else
 
4990
      # Make teststring a little bigger before we do anything with it.
 
4991
      # a 1K string should be a reasonable start.
 
4992
      for i in 1 2 3 4 5 6 7 8 ; do
 
4993
        teststring=$teststring$teststring
 
4994
      done
 
4995
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4996
      # If test is not a shell built-in, we'll probably end up computing a
 
4997
      # maximum length that is only half of the actual maximum length, but
 
4998
      # we can't tell.
 
4999
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5000
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5001
              test $i != 17 # 1/2 MB should be enough
 
5002
      do
 
5003
        i=`expr $i + 1`
 
5004
        teststring=$teststring$teststring
 
5005
      done
 
5006
      # Only check the string length outside the loop.
 
5007
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5008
      teststring=
 
5009
      # Add a significant safety factor because C++ compilers can tack on
 
5010
      # massive amounts of additional arguments before passing them to the
 
5011
      # linker.  It appears as though 1/2 is a usable value.
 
5012
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5013
    fi
 
5014
    ;;
 
5015
  esac
 
5016
 
 
5017
fi
 
5018
 
 
5019
if test -n $lt_cv_sys_max_cmd_len ; then
 
5020
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5021
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
5022
else
 
5023
  { echo "$as_me:$LINENO: result: none" >&5
 
5024
echo "${ECHO_T}none" >&6; }
 
5025
fi
 
5026
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5027
 
 
5028
 
 
5029
 
 
5030
 
 
5031
 
 
5032
 
 
5033
: ${CP="cp -f"}
 
5034
: ${MV="mv -f"}
 
5035
: ${RM="rm -f"}
 
5036
 
 
5037
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
5038
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
 
5039
# Try some XSI features
 
5040
xsi_shell=no
 
5041
( _lt_dummy="a/b/c"
 
5042
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5043
      = c,a/b,, \
 
5044
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5045
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5046
  && xsi_shell=yes
 
5047
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
5048
echo "${ECHO_T}$xsi_shell" >&6; }
 
5049
 
 
5050
 
 
5051
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
5052
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
 
5053
lt_shell_append=no
 
5054
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5055
    >/dev/null 2>&1 \
 
5056
  && lt_shell_append=yes
 
5057
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
5058
echo "${ECHO_T}$lt_shell_append" >&6; }
 
5059
 
 
5060
 
 
5061
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5062
  lt_unset=unset
 
5063
else
 
5064
  lt_unset=false
 
5065
fi
 
5066
 
 
5067
 
 
5068
 
 
5069
 
 
5070
 
 
5071
# test EBCDIC or ASCII
 
5072
case `echo X|tr X '\101'` in
 
5073
 A) # ASCII based system
 
5074
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5075
  lt_SP2NL='tr \040 \012'
 
5076
  lt_NL2SP='tr \015\012 \040\040'
 
5077
  ;;
 
5078
 *) # EBCDIC based system
 
5079
  lt_SP2NL='tr \100 \n'
 
5080
  lt_NL2SP='tr \r\n \100\100'
 
5081
  ;;
 
5082
esac
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5093
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
5094
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5096
else
 
5097
  lt_cv_ld_reload_flag='-r'
 
5098
fi
 
5099
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5100
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
5101
reload_flag=$lt_cv_ld_reload_flag
 
5102
case $reload_flag in
 
5103
"" | " "*) ;;
 
5104
*) reload_flag=" $reload_flag" ;;
 
5105
esac
 
5106
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5107
case $host_os in
 
5108
  darwin*)
 
5109
    if test "$GCC" = yes; then
 
5110
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5111
    else
 
5112
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5113
    fi
 
5114
    ;;
 
5115
esac
 
5116
 
 
5117
 
 
5118
 
 
5119
 
 
5120
 
 
5121
 
 
5122
 
 
5123
 
 
5124
 
 
5125
 
 
5126
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
5127
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
5128
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5130
else
 
5131
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5132
lt_cv_file_magic_test_file=
 
5133
lt_cv_deplibs_check_method='unknown'
 
5134
# Need to set the preceding variable on all platforms that support
 
5135
# interlibrary dependencies.
 
5136
# 'none' -- dependencies not supported.
 
5137
# `unknown' -- same as none, but documents that we really don't know.
 
5138
# 'pass_all' -- all dependencies passed with no checks.
 
5139
# 'test_compile' -- check by making test program.
 
5140
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5141
# which responds to the $file_magic_cmd with a given extended regex.
 
5142
# If you have `file' or equivalent on your system and you're not sure
 
5143
# whether `pass_all' will *always* work, you probably want this one.
 
5144
 
 
5145
case $host_os in
 
5146
aix[4-9]*)
 
5147
  lt_cv_deplibs_check_method=pass_all
 
5148
  ;;
 
5149
 
 
5150
beos*)
 
5151
  lt_cv_deplibs_check_method=pass_all
 
5152
  ;;
 
5153
 
 
5154
bsdi[45]*)
 
5155
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5156
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5157
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5158
  ;;
 
5159
 
 
5160
cygwin*)
 
5161
  # func_win32_libid is a shell function defined in ltmain.sh
 
5162
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5163
  lt_cv_file_magic_cmd='func_win32_libid'
 
5164
  ;;
 
5165
 
 
5166
mingw* | pw32*)
 
5167
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5168
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5169
  # unless we find 'file', for example because we are cross-compiling.
 
5170
  if ( file / ) >/dev/null 2>&1; then
 
5171
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5172
    lt_cv_file_magic_cmd='func_win32_libid'
 
5173
  else
 
5174
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5175
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5176
  fi
 
5177
  ;;
 
5178
 
 
5179
darwin* | rhapsody*)
 
5180
  lt_cv_deplibs_check_method=pass_all
 
5181
  ;;
 
5182
 
 
5183
freebsd* | dragonfly*)
 
5184
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5185
    case $host_cpu in
 
5186
    i*86 )
 
5187
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5188
      # Let's accept both of them until this is cleared up.
 
5189
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5190
      lt_cv_file_magic_cmd=/usr/bin/file
 
5191
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5192
      ;;
 
5193
    esac
 
5194
  else
 
5195
    lt_cv_deplibs_check_method=pass_all
 
5196
  fi
 
5197
  ;;
 
5198
 
 
5199
gnu*)
 
5200
  lt_cv_deplibs_check_method=pass_all
 
5201
  ;;
 
5202
 
 
5203
hpux10.20* | hpux11*)
 
5204
  lt_cv_file_magic_cmd=/usr/bin/file
 
5205
  case $host_cpu in
 
5206
  ia64*)
 
5207
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5208
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5209
    ;;
 
5210
  hppa*64*)
 
5211
    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]'
 
5212
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5213
    ;;
 
5214
  *)
 
5215
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5216
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5217
    ;;
 
5218
  esac
 
5219
  ;;
 
5220
 
 
5221
interix[3-9]*)
 
5222
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5223
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5224
  ;;
 
5225
 
 
5226
irix5* | irix6* | nonstopux*)
 
5227
  case $LD in
 
5228
  *-32|*"-32 ") libmagic=32-bit;;
 
5229
  *-n32|*"-n32 ") libmagic=N32;;
 
5230
  *-64|*"-64 ") libmagic=64-bit;;
 
5231
  *) libmagic=never-match;;
 
5232
  esac
 
5233
  lt_cv_deplibs_check_method=pass_all
 
5234
  ;;
 
5235
 
 
5236
# This must be Linux ELF.
 
5237
linux* | k*bsd*-gnu)
 
5238
  lt_cv_deplibs_check_method=pass_all
 
5239
  ;;
 
5240
 
 
5241
netbsd* | netbsdelf*-gnu)
 
5242
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5243
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5244
  else
 
5245
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5246
  fi
 
5247
  ;;
 
5248
 
 
5249
newos6*)
 
5250
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5251
  lt_cv_file_magic_cmd=/usr/bin/file
 
5252
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5253
  ;;
 
5254
 
 
5255
*nto* | *qnx*)
 
5256
  lt_cv_deplibs_check_method=pass_all
 
5257
  ;;
 
5258
 
 
5259
openbsd*)
 
5260
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5261
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5262
  else
 
5263
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5264
  fi
 
5265
  ;;
 
5266
 
 
5267
osf3* | osf4* | osf5*)
 
5268
  lt_cv_deplibs_check_method=pass_all
 
5269
  ;;
 
5270
 
 
5271
rdos*)
 
5272
  lt_cv_deplibs_check_method=pass_all
 
5273
  ;;
 
5274
 
 
5275
solaris*)
 
5276
  lt_cv_deplibs_check_method=pass_all
 
5277
  ;;
 
5278
 
 
5279
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5280
  lt_cv_deplibs_check_method=pass_all
 
5281
  ;;
 
5282
 
 
5283
sysv4 | sysv4.3*)
 
5284
  case $host_vendor in
 
5285
  motorola)
 
5286
    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]'
 
5287
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5288
    ;;
 
5289
  ncr)
 
5290
    lt_cv_deplibs_check_method=pass_all
 
5291
    ;;
 
5292
  sequent)
 
5293
    lt_cv_file_magic_cmd='/bin/file'
 
5294
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5295
    ;;
 
5296
  sni)
 
5297
    lt_cv_file_magic_cmd='/bin/file'
 
5298
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5299
    lt_cv_file_magic_test_file=/lib/libc.so
 
5300
    ;;
 
5301
  siemens)
 
5302
    lt_cv_deplibs_check_method=pass_all
 
5303
    ;;
 
5304
  pc)
 
5305
    lt_cv_deplibs_check_method=pass_all
 
5306
    ;;
 
5307
  esac
 
5308
  ;;
 
5309
 
 
5310
tpf*)
 
5311
  lt_cv_deplibs_check_method=pass_all
 
5312
  ;;
 
5313
esac
 
5314
 
 
5315
fi
 
5316
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5317
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
5318
file_magic_cmd=$lt_cv_file_magic_cmd
 
5319
deplibs_check_method=$lt_cv_deplibs_check_method
 
5320
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5321
 
 
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
 
 
5330
 
 
5331
 
 
5332
 
 
5333
if test -n "$ac_tool_prefix"; then
 
5334
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5335
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5336
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5337
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5338
if test "${ac_cv_prog_AR+set}" = set; then
 
5339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5340
else
 
5341
  if test -n "$AR"; then
 
5342
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5343
else
 
5344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5345
for as_dir in $PATH
 
5346
do
 
5347
  IFS=$as_save_IFS
 
5348
  test -z "$as_dir" && as_dir=.
 
5349
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5350
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5351
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5352
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5353
    break 2
 
5354
  fi
 
5355
done
 
5356
done
 
5357
IFS=$as_save_IFS
 
5358
 
 
5359
fi
 
5360
fi
 
5361
AR=$ac_cv_prog_AR
 
5362
if test -n "$AR"; then
 
5363
  { echo "$as_me:$LINENO: result: $AR" >&5
 
5364
echo "${ECHO_T}$AR" >&6; }
 
5365
else
 
5366
  { echo "$as_me:$LINENO: result: no" >&5
 
5367
echo "${ECHO_T}no" >&6; }
 
5368
fi
 
5369
 
 
5370
 
 
5371
fi
 
5372
if test -z "$ac_cv_prog_AR"; then
 
5373
  ac_ct_AR=$AR
 
5374
  # Extract the first word of "ar", so it can be a program name with args.
 
5375
set dummy ar; ac_word=$2
 
5376
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5378
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5380
else
 
5381
  if test -n "$ac_ct_AR"; then
 
5382
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5383
else
 
5384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5385
for as_dir in $PATH
 
5386
do
 
5387
  IFS=$as_save_IFS
 
5388
  test -z "$as_dir" && as_dir=.
 
5389
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5390
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5391
    ac_cv_prog_ac_ct_AR="ar"
 
5392
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5393
    break 2
 
5394
  fi
 
5395
done
 
5396
done
 
5397
IFS=$as_save_IFS
 
5398
 
 
5399
fi
 
5400
fi
 
5401
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5402
if test -n "$ac_ct_AR"; then
 
5403
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5404
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
5405
else
 
5406
  { echo "$as_me:$LINENO: result: no" >&5
 
5407
echo "${ECHO_T}no" >&6; }
 
5408
fi
 
5409
 
 
5410
  if test "x$ac_ct_AR" = x; then
 
5411
    AR="false"
 
5412
  else
 
5413
    case $cross_compiling:$ac_tool_warned in
 
5414
yes:)
 
5415
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5416
whose name does not start with the host triplet.  If you think this
 
5417
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5418
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5419
whose name does not start with the host triplet.  If you think this
 
5420
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5421
ac_tool_warned=yes ;;
 
5422
esac
 
5423
    AR=$ac_ct_AR
 
5424
  fi
 
5425
else
 
5426
  AR="$ac_cv_prog_AR"
 
5427
fi
 
5428
 
 
5429
test -z "$AR" && AR=ar
 
5430
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5431
 
 
5432
 
 
5433
 
 
5434
 
 
5435
 
 
5436
 
 
5437
 
 
5438
 
 
5439
 
 
5440
 
 
5441
 
 
5442
if test -n "$ac_tool_prefix"; then
 
5443
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5444
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5445
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5447
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5449
else
 
5450
  if test -n "$STRIP"; then
 
5451
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5452
else
 
5453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5454
for as_dir in $PATH
 
5455
do
 
5456
  IFS=$as_save_IFS
 
5457
  test -z "$as_dir" && as_dir=.
 
5458
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5459
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5460
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5461
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5462
    break 2
 
5463
  fi
 
5464
done
 
5465
done
 
5466
IFS=$as_save_IFS
 
5467
 
 
5468
fi
 
5469
fi
 
5470
STRIP=$ac_cv_prog_STRIP
 
5471
if test -n "$STRIP"; then
 
5472
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
5473
echo "${ECHO_T}$STRIP" >&6; }
 
5474
else
 
5475
  { echo "$as_me:$LINENO: result: no" >&5
 
5476
echo "${ECHO_T}no" >&6; }
 
5477
fi
 
5478
 
 
5479
 
 
5480
fi
 
5481
if test -z "$ac_cv_prog_STRIP"; then
 
5482
  ac_ct_STRIP=$STRIP
 
5483
  # Extract the first word of "strip", so it can be a program name with args.
 
5484
set dummy strip; ac_word=$2
 
5485
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5487
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5489
else
 
5490
  if test -n "$ac_ct_STRIP"; then
 
5491
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5492
else
 
5493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5494
for as_dir in $PATH
 
5495
do
 
5496
  IFS=$as_save_IFS
 
5497
  test -z "$as_dir" && as_dir=.
 
5498
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5499
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5500
    ac_cv_prog_ac_ct_STRIP="strip"
 
5501
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5502
    break 2
 
5503
  fi
 
5504
done
 
5505
done
 
5506
IFS=$as_save_IFS
 
5507
 
 
5508
fi
 
5509
fi
 
5510
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5511
if test -n "$ac_ct_STRIP"; then
 
5512
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5513
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
5514
else
 
5515
  { echo "$as_me:$LINENO: result: no" >&5
 
5516
echo "${ECHO_T}no" >&6; }
 
5517
fi
 
5518
 
 
5519
  if test "x$ac_ct_STRIP" = x; then
 
5520
    STRIP=":"
 
5521
  else
 
5522
    case $cross_compiling:$ac_tool_warned in
 
5523
yes:)
 
5524
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5525
whose name does not start with the host triplet.  If you think this
 
5526
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5527
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5528
whose name does not start with the host triplet.  If you think this
 
5529
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5530
ac_tool_warned=yes ;;
 
5531
esac
 
5532
    STRIP=$ac_ct_STRIP
 
5533
  fi
 
5534
else
 
5535
  STRIP="$ac_cv_prog_STRIP"
 
5536
fi
 
5537
 
 
5538
test -z "$STRIP" && STRIP=:
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
 
 
5545
if test -n "$ac_tool_prefix"; then
 
5546
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5547
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5548
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5549
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5550
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5552
else
 
5553
  if test -n "$RANLIB"; then
 
5554
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5555
else
 
5556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5557
for as_dir in $PATH
 
5558
do
 
5559
  IFS=$as_save_IFS
 
5560
  test -z "$as_dir" && as_dir=.
 
5561
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5563
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5564
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5565
    break 2
 
5566
  fi
 
5567
done
 
5568
done
 
5569
IFS=$as_save_IFS
 
5570
 
 
5571
fi
 
5572
fi
 
5573
RANLIB=$ac_cv_prog_RANLIB
 
5574
if test -n "$RANLIB"; then
 
5575
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5576
echo "${ECHO_T}$RANLIB" >&6; }
 
5577
else
 
5578
  { echo "$as_me:$LINENO: result: no" >&5
 
5579
echo "${ECHO_T}no" >&6; }
 
5580
fi
 
5581
 
 
5582
 
 
5583
fi
 
5584
if test -z "$ac_cv_prog_RANLIB"; then
 
5585
  ac_ct_RANLIB=$RANLIB
 
5586
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5587
set dummy ranlib; ac_word=$2
 
5588
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5589
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5590
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5592
else
 
5593
  if test -n "$ac_ct_RANLIB"; then
 
5594
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5595
else
 
5596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5597
for as_dir in $PATH
 
5598
do
 
5599
  IFS=$as_save_IFS
 
5600
  test -z "$as_dir" && as_dir=.
 
5601
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5603
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5604
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5605
    break 2
 
5606
  fi
 
5607
done
 
5608
done
 
5609
IFS=$as_save_IFS
 
5610
 
 
5611
fi
 
5612
fi
 
5613
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5614
if test -n "$ac_ct_RANLIB"; then
 
5615
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5616
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
5617
else
 
5618
  { echo "$as_me:$LINENO: result: no" >&5
 
5619
echo "${ECHO_T}no" >&6; }
 
5620
fi
 
5621
 
 
5622
  if test "x$ac_ct_RANLIB" = x; then
 
5623
    RANLIB=":"
 
5624
  else
 
5625
    case $cross_compiling:$ac_tool_warned in
 
5626
yes:)
 
5627
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5628
whose name does not start with the host triplet.  If you think this
 
5629
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5630
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5631
whose name does not start with the host triplet.  If you think this
 
5632
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5633
ac_tool_warned=yes ;;
 
5634
esac
 
5635
    RANLIB=$ac_ct_RANLIB
 
5636
  fi
 
5637
else
 
5638
  RANLIB="$ac_cv_prog_RANLIB"
 
5639
fi
 
5640
 
 
5641
test -z "$RANLIB" && RANLIB=:
 
5642
 
 
5643
 
 
5644
 
 
5645
 
 
5646
 
 
5647
 
 
5648
# Determine commands to create old-style static archives.
 
5649
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5650
old_postinstall_cmds='chmod 644 $oldlib'
 
5651
old_postuninstall_cmds=
 
5652
 
 
5653
if test -n "$RANLIB"; then
 
5654
  case $host_os in
 
5655
  openbsd*)
 
5656
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5657
    ;;
 
5658
  *)
 
5659
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5660
    ;;
 
5661
  esac
 
5662
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5663
fi
 
5664
 
 
5665
 
 
5666
 
 
5667
 
 
5668
 
 
5669
 
 
5670
 
 
5671
 
 
5672
 
 
5673
 
 
5674
 
 
5675
 
 
5676
 
 
5677
 
 
5678
 
 
5679
 
 
5680
 
 
5681
 
 
5682
 
 
5683
 
 
5684
 
 
5685
 
 
5686
 
 
5687
 
 
5688
 
 
5689
 
 
5690
 
 
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
 
 
5698
# If no C compiler was specified, use CC.
 
5699
LTCC=${LTCC-"$CC"}
 
5700
 
 
5701
# If no C compiler flags were specified, use CFLAGS.
 
5702
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5703
 
 
5704
# Allow CC to be a program name with arguments.
 
5705
compiler=$CC
 
5706
 
 
5707
 
 
5708
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5709
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5710
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
5711
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5713
else
 
5714
 
 
5715
# These are sane defaults that work on at least a few old systems.
 
5716
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5717
 
 
5718
# Character class describing NM global symbol codes.
 
5719
symcode='[BCDEGRST]'
 
5720
 
 
5721
# Regexp to match symbols that can be accessed directly from C.
 
5722
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5723
 
 
5724
# Define system-specific variables.
 
5725
case $host_os in
 
5726
aix*)
 
5727
  symcode='[BCDT]'
 
5728
  ;;
 
5729
cygwin* | mingw* | pw32*)
 
5730
  symcode='[ABCDGISTW]'
 
5731
  ;;
 
5732
hpux*)
 
5733
  if test "$host_cpu" = ia64; then
 
5734
    symcode='[ABCDEGRST]'
 
5735
  fi
 
5736
  ;;
 
5737
irix* | nonstopux*)
 
5738
  symcode='[BCDEGRST]'
 
5739
  ;;
 
5740
osf*)
 
5741
  symcode='[BCDEGQRST]'
 
5742
  ;;
 
5743
solaris*)
 
5744
  symcode='[BDRT]'
 
5745
  ;;
 
5746
sco3.2v5*)
 
5747
  symcode='[DT]'
 
5748
  ;;
 
5749
sysv4.2uw2*)
 
5750
  symcode='[DT]'
 
5751
  ;;
 
5752
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5753
  symcode='[ABDT]'
 
5754
  ;;
 
5755
sysv4)
 
5756
  symcode='[DFNSTU]'
 
5757
  ;;
 
5758
esac
 
5759
 
 
5760
# If we're using GNU nm, then use its standard symbol codes.
 
5761
case `$NM -V 2>&1` in
 
5762
*GNU* | *'with BFD'*)
 
5763
  symcode='[ABCDGIRSTW]' ;;
 
5764
esac
 
5765
 
 
5766
# Transform an extracted symbol line into a proper C declaration.
 
5767
# Some systems (esp. on ia64) link data and code symbols differently,
 
5768
# so use this general approach.
 
5769
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5770
 
 
5771
# Transform an extracted symbol line into symbol name and symbol address
 
5772
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5773
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5774
 
 
5775
# Handle CRLF in mingw tool chain
 
5776
opt_cr=
 
5777
case $build_os in
 
5778
mingw*)
 
5779
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5780
  ;;
 
5781
esac
 
5782
 
 
5783
# Try without a prefix underscore, then with it.
 
5784
for ac_symprfx in "" "_"; do
 
5785
 
 
5786
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5787
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5788
 
 
5789
  # Write the raw and C identifiers.
 
5790
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5791
    # Fake it for dumpbin and say T for any non-static function
 
5792
    # and D for any global variable.
 
5793
    # Also find C++ and __fastcall symbols from MSVC++,
 
5794
    # which start with @ or ?.
 
5795
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5796
"     {last_section=section; section=\$ 3};"\
 
5797
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5798
"     \$ 0!~/External *\|/{next};"\
 
5799
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5800
"     {if(hide[section]) next};"\
 
5801
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5802
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5803
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5804
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5805
"     ' prfx=^$ac_symprfx"
 
5806
  else
 
5807
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5808
  fi
 
5809
 
 
5810
  # Check to see that the pipe works correctly.
 
5811
  pipe_works=no
 
5812
 
 
5813
  rm -f conftest*
 
5814
  cat > conftest.$ac_ext <<_LT_EOF
 
5815
#ifdef __cplusplus
 
5816
extern "C" {
 
5817
#endif
 
5818
char nm_test_var;
 
5819
void nm_test_func(void);
 
5820
void nm_test_func(void){}
 
5821
#ifdef __cplusplus
 
5822
}
 
5823
#endif
 
5824
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5825
_LT_EOF
 
5826
 
 
5827
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5828
  (eval $ac_compile) 2>&5
 
5829
  ac_status=$?
 
5830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5831
  (exit $ac_status); }; then
 
5832
    # Now try to grab the symbols.
 
5833
    nlist=conftest.nm
 
5834
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5835
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5836
  ac_status=$?
 
5837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5838
  (exit $ac_status); } && test -s "$nlist"; then
 
5839
      # Try sorting and uniquifying the output.
 
5840
      if sort "$nlist" | uniq > "$nlist"T; then
 
5841
        mv -f "$nlist"T "$nlist"
 
5842
      else
 
5843
        rm -f "$nlist"T
 
5844
      fi
 
5845
 
 
5846
      # Make sure that we snagged all the symbols we need.
 
5847
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5848
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5849
          cat <<_LT_EOF > conftest.$ac_ext
 
5850
#ifdef __cplusplus
 
5851
extern "C" {
 
5852
#endif
 
5853
 
 
5854
_LT_EOF
 
5855
          # Now generate the symbol file.
 
5856
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5857
 
 
5858
          cat <<_LT_EOF >> conftest.$ac_ext
 
5859
 
 
5860
/* The mapping between symbol names and symbols.  */
 
5861
const struct {
 
5862
  const char *name;
 
5863
  void       *address;
 
5864
}
 
5865
lt__PROGRAM__LTX_preloaded_symbols[] =
 
5866
{
 
5867
  { "@PROGRAM@", (void *) 0 },
 
5868
_LT_EOF
 
5869
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5870
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5871
  {0, (void *) 0}
 
5872
};
 
5873
 
 
5874
/* This works around a problem in FreeBSD linker */
 
5875
#ifdef FREEBSD_WORKAROUND
 
5876
static const void *lt_preloaded_setup() {
 
5877
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5878
}
 
5879
#endif
 
5880
 
 
5881
#ifdef __cplusplus
 
5882
}
 
5883
#endif
 
5884
_LT_EOF
 
5885
          # Now try linking the two files.
 
5886
          mv conftest.$ac_objext conftstm.$ac_objext
 
5887
          lt_save_LIBS="$LIBS"
 
5888
          lt_save_CFLAGS="$CFLAGS"
 
5889
          LIBS="conftstm.$ac_objext"
 
5890
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5891
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5892
  (eval $ac_link) 2>&5
 
5893
  ac_status=$?
 
5894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5895
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5896
            pipe_works=yes
 
5897
          fi
 
5898
          LIBS="$lt_save_LIBS"
 
5899
          CFLAGS="$lt_save_CFLAGS"
 
5900
        else
 
5901
          echo "cannot find nm_test_func in $nlist" >&5
 
5902
        fi
 
5903
      else
 
5904
        echo "cannot find nm_test_var in $nlist" >&5
 
5905
      fi
 
5906
    else
 
5907
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5908
    fi
 
5909
  else
 
5910
    echo "$progname: failed program was:" >&5
 
5911
    cat conftest.$ac_ext >&5
 
5912
  fi
 
5913
  rm -rf conftest* conftst*
 
5914
 
 
5915
  # Do not use the global_symbol_pipe unless it works.
 
5916
  if test "$pipe_works" = yes; then
 
5917
    break
 
5918
  else
 
5919
    lt_cv_sys_global_symbol_pipe=
 
5920
  fi
 
5921
done
 
5922
 
 
5923
fi
 
5924
 
 
5925
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5926
  lt_cv_sys_global_symbol_to_cdecl=
 
5927
fi
 
5928
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5929
  { echo "$as_me:$LINENO: result: failed" >&5
 
5930
echo "${ECHO_T}failed" >&6; }
 
5931
else
 
5932
  { echo "$as_me:$LINENO: result: ok" >&5
 
5933
echo "${ECHO_T}ok" >&6; }
 
5934
fi
 
5935
 
 
5936
 
 
5937
 
 
5938
 
 
5939
 
 
5940
 
 
5941
 
 
5942
 
 
5943
 
 
5944
 
 
5945
 
 
5946
 
 
5947
 
 
5948
 
 
5949
 
 
5950
 
 
5951
 
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
# Check whether --enable-libtool-lock was given.
 
5959
if test "${enable_libtool_lock+set}" = set; then
 
5960
  enableval=$enable_libtool_lock;
 
5961
fi
 
5962
 
 
5963
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5964
 
 
5965
# Some flags need to be propagated to the compiler or linker for good
 
5966
# libtool support.
 
5967
case $host in
 
5968
ia64-*-hpux*)
 
5969
  # Find out which ABI we are using.
 
5970
  echo 'int i;' > conftest.$ac_ext
 
5971
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5972
  (eval $ac_compile) 2>&5
 
5973
  ac_status=$?
 
5974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5975
  (exit $ac_status); }; then
 
5976
    case `/usr/bin/file conftest.$ac_objext` in
 
5977
      *ELF-32*)
 
5978
        HPUX_IA64_MODE="32"
 
5979
        ;;
 
5980
      *ELF-64*)
 
5981
        HPUX_IA64_MODE="64"
 
5982
        ;;
 
5983
    esac
 
5984
  fi
 
5985
  rm -rf conftest*
 
5986
  ;;
 
5987
*-*-irix6*)
 
5988
  # Find out which ABI we are using.
 
5989
  echo '#line 5989 "configure"' > conftest.$ac_ext
 
5990
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5991
  (eval $ac_compile) 2>&5
 
5992
  ac_status=$?
 
5993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5994
  (exit $ac_status); }; then
 
5995
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5996
      case `/usr/bin/file conftest.$ac_objext` in
 
5997
        *32-bit*)
 
5998
          LD="${LD-ld} -melf32bsmip"
 
5999
          ;;
 
6000
        *N32*)
 
6001
          LD="${LD-ld} -melf32bmipn32"
 
6002
          ;;
 
6003
        *64-bit*)
 
6004
          LD="${LD-ld} -melf64bmip"
 
6005
        ;;
 
6006
      esac
 
6007
    else
 
6008
      case `/usr/bin/file conftest.$ac_objext` in
 
6009
        *32-bit*)
 
6010
          LD="${LD-ld} -32"
 
6011
          ;;
 
6012
        *N32*)
 
6013
          LD="${LD-ld} -n32"
 
6014
          ;;
 
6015
        *64-bit*)
 
6016
          LD="${LD-ld} -64"
 
6017
          ;;
 
6018
      esac
 
6019
    fi
 
6020
  fi
 
6021
  rm -rf conftest*
 
6022
  ;;
 
6023
 
 
6024
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6025
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6026
  # Find out which ABI we are using.
 
6027
  echo 'int i;' > conftest.$ac_ext
 
6028
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6029
  (eval $ac_compile) 2>&5
 
6030
  ac_status=$?
 
6031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6032
  (exit $ac_status); }; then
 
6033
    case `/usr/bin/file conftest.o` in
 
6034
      *32-bit*)
 
6035
        case $host in
 
6036
          x86_64-*kfreebsd*-gnu)
 
6037
            LD="${LD-ld} -m elf_i386_fbsd"
 
6038
            ;;
 
6039
          x86_64-*linux*)
 
6040
            LD="${LD-ld} -m elf_i386"
 
6041
            ;;
 
6042
          ppc64-*linux*|powerpc64-*linux*)
 
6043
            LD="${LD-ld} -m elf32ppclinux"
 
6044
            ;;
 
6045
          s390x-*linux*)
 
6046
            LD="${LD-ld} -m elf_s390"
 
6047
            ;;
 
6048
          sparc64-*linux*)
 
6049
            LD="${LD-ld} -m elf32_sparc"
 
6050
            ;;
 
6051
        esac
 
6052
        ;;
 
6053
      *64-bit*)
 
6054
        case $host in
 
6055
          x86_64-*kfreebsd*-gnu)
 
6056
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6057
            ;;
 
6058
          x86_64-*linux*)
 
6059
            LD="${LD-ld} -m elf_x86_64"
 
6060
            ;;
 
6061
          ppc*-*linux*|powerpc*-*linux*)
 
6062
            LD="${LD-ld} -m elf64ppc"
 
6063
            ;;
 
6064
          s390*-*linux*|s390*-*tpf*)
 
6065
            LD="${LD-ld} -m elf64_s390"
 
6066
            ;;
 
6067
          sparc*-*linux*)
 
6068
            LD="${LD-ld} -m elf64_sparc"
 
6069
            ;;
 
6070
        esac
 
6071
        ;;
 
6072
    esac
 
6073
  fi
 
6074
  rm -rf conftest*
 
6075
  ;;
 
6076
 
 
6077
*-*-sco3.2v5*)
 
6078
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6079
  SAVE_CFLAGS="$CFLAGS"
 
6080
  CFLAGS="$CFLAGS -belf"
 
6081
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6082
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
6083
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6085
else
 
6086
  ac_ext=c
 
6087
ac_cpp='$CPP $CPPFLAGS'
 
6088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6091
 
 
6092
     cat >conftest.$ac_ext <<_ACEOF
 
6093
/* confdefs.h.  */
 
6094
_ACEOF
 
6095
cat confdefs.h >>conftest.$ac_ext
 
6096
cat >>conftest.$ac_ext <<_ACEOF
 
6097
/* end confdefs.h.  */
 
6098
 
 
6099
int
 
6100
main ()
 
6101
{
 
6102
 
 
6103
  ;
 
6104
  return 0;
 
6105
}
 
6106
_ACEOF
 
6107
rm -f conftest.$ac_objext conftest$ac_exeext
 
6108
if { (ac_try="$ac_link"
 
6109
case "(($ac_try" in
 
6110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6111
  *) ac_try_echo=$ac_try;;
 
6112
esac
 
6113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6114
  (eval "$ac_link") 2>conftest.er1
 
6115
  ac_status=$?
 
6116
  grep -v '^ *+' conftest.er1 >conftest.err
 
6117
  rm -f conftest.er1
 
6118
  cat conftest.err >&5
 
6119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6120
  (exit $ac_status); } && {
 
6121
         test -z "$ac_c_werror_flag" ||
 
6122
         test ! -s conftest.err
 
6123
       } && test -s conftest$ac_exeext &&
 
6124
       $as_test_x conftest$ac_exeext; then
 
6125
  lt_cv_cc_needs_belf=yes
 
6126
else
 
6127
  echo "$as_me: failed program was:" >&5
 
6128
sed 's/^/| /' conftest.$ac_ext >&5
 
6129
 
 
6130
        lt_cv_cc_needs_belf=no
 
6131
fi
 
6132
 
 
6133
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6134
      conftest$ac_exeext conftest.$ac_ext
 
6135
     ac_ext=c
 
6136
ac_cpp='$CPP $CPPFLAGS'
 
6137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6140
 
 
6141
fi
 
6142
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6143
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
6144
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6145
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6146
    CFLAGS="$SAVE_CFLAGS"
 
6147
  fi
 
6148
  ;;
 
6149
sparc*-*solaris*)
 
6150
  # Find out which ABI we are using.
 
6151
  echo 'int i;' > conftest.$ac_ext
 
6152
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6153
  (eval $ac_compile) 2>&5
 
6154
  ac_status=$?
 
6155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6156
  (exit $ac_status); }; then
 
6157
    case `/usr/bin/file conftest.o` in
 
6158
    *64-bit*)
 
6159
      case $lt_cv_prog_gnu_ld in
 
6160
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6161
      *)
 
6162
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6163
          LD="${LD-ld} -64"
 
6164
        fi
 
6165
        ;;
 
6166
      esac
 
6167
      ;;
 
6168
    esac
 
6169
  fi
 
6170
  rm -rf conftest*
 
6171
  ;;
 
6172
esac
 
6173
 
 
6174
need_locks="$enable_libtool_lock"
 
6175
 
 
6176
 
 
6177
  case $host_os in
 
6178
    rhapsody* | darwin*)
 
6179
    if test -n "$ac_tool_prefix"; then
 
6180
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6181
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6182
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6184
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
6185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6186
else
 
6187
  if test -n "$DSYMUTIL"; then
 
6188
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6189
else
 
6190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6191
for as_dir in $PATH
 
6192
do
 
6193
  IFS=$as_save_IFS
 
6194
  test -z "$as_dir" && as_dir=.
 
6195
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6197
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6198
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6199
    break 2
 
6200
  fi
 
6201
done
 
6202
done
 
6203
IFS=$as_save_IFS
 
6204
 
 
6205
fi
 
6206
fi
 
6207
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6208
if test -n "$DSYMUTIL"; then
 
6209
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
6210
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
6211
else
 
6212
  { echo "$as_me:$LINENO: result: no" >&5
 
6213
echo "${ECHO_T}no" >&6; }
 
6214
fi
 
6215
 
 
6216
 
 
6217
fi
 
6218
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6219
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6220
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6221
set dummy dsymutil; ac_word=$2
 
6222
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6224
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
6225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6226
else
 
6227
  if test -n "$ac_ct_DSYMUTIL"; then
 
6228
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6229
else
 
6230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6231
for as_dir in $PATH
 
6232
do
 
6233
  IFS=$as_save_IFS
 
6234
  test -z "$as_dir" && as_dir=.
 
6235
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6236
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6237
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6238
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6239
    break 2
 
6240
  fi
 
6241
done
 
6242
done
 
6243
IFS=$as_save_IFS
 
6244
 
 
6245
fi
 
6246
fi
 
6247
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6248
if test -n "$ac_ct_DSYMUTIL"; then
 
6249
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
6250
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
6251
else
 
6252
  { echo "$as_me:$LINENO: result: no" >&5
 
6253
echo "${ECHO_T}no" >&6; }
 
6254
fi
 
6255
 
 
6256
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6257
    DSYMUTIL=":"
 
6258
  else
 
6259
    case $cross_compiling:$ac_tool_warned in
 
6260
yes:)
 
6261
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6262
whose name does not start with the host triplet.  If you think this
 
6263
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6264
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6265
whose name does not start with the host triplet.  If you think this
 
6266
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6267
ac_tool_warned=yes ;;
 
6268
esac
 
6269
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6270
  fi
 
6271
else
 
6272
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6273
fi
 
6274
 
 
6275
    if test -n "$ac_tool_prefix"; then
 
6276
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6277
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6278
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6280
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
6281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6282
else
 
6283
  if test -n "$NMEDIT"; then
 
6284
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6285
else
 
6286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6287
for as_dir in $PATH
 
6288
do
 
6289
  IFS=$as_save_IFS
 
6290
  test -z "$as_dir" && as_dir=.
 
6291
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6292
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6293
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6294
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6295
    break 2
 
6296
  fi
 
6297
done
 
6298
done
 
6299
IFS=$as_save_IFS
 
6300
 
 
6301
fi
 
6302
fi
 
6303
NMEDIT=$ac_cv_prog_NMEDIT
 
6304
if test -n "$NMEDIT"; then
 
6305
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
6306
echo "${ECHO_T}$NMEDIT" >&6; }
 
6307
else
 
6308
  { echo "$as_me:$LINENO: result: no" >&5
 
6309
echo "${ECHO_T}no" >&6; }
 
6310
fi
 
6311
 
 
6312
 
 
6313
fi
 
6314
if test -z "$ac_cv_prog_NMEDIT"; then
 
6315
  ac_ct_NMEDIT=$NMEDIT
 
6316
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6317
set dummy nmedit; ac_word=$2
 
6318
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6319
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6320
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
6321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6322
else
 
6323
  if test -n "$ac_ct_NMEDIT"; then
 
6324
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6325
else
 
6326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6327
for as_dir in $PATH
 
6328
do
 
6329
  IFS=$as_save_IFS
 
6330
  test -z "$as_dir" && as_dir=.
 
6331
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6332
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6333
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6334
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6335
    break 2
 
6336
  fi
 
6337
done
 
6338
done
 
6339
IFS=$as_save_IFS
 
6340
 
 
6341
fi
 
6342
fi
 
6343
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6344
if test -n "$ac_ct_NMEDIT"; then
 
6345
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
6346
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
6347
else
 
6348
  { echo "$as_me:$LINENO: result: no" >&5
 
6349
echo "${ECHO_T}no" >&6; }
 
6350
fi
 
6351
 
 
6352
  if test "x$ac_ct_NMEDIT" = x; then
 
6353
    NMEDIT=":"
 
6354
  else
 
6355
    case $cross_compiling:$ac_tool_warned in
 
6356
yes:)
 
6357
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6358
whose name does not start with the host triplet.  If you think this
 
6359
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6360
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6361
whose name does not start with the host triplet.  If you think this
 
6362
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6363
ac_tool_warned=yes ;;
 
6364
esac
 
6365
    NMEDIT=$ac_ct_NMEDIT
 
6366
  fi
 
6367
else
 
6368
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6369
fi
 
6370
 
 
6371
    if test -n "$ac_tool_prefix"; then
 
6372
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6373
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6374
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6375
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6376
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6378
else
 
6379
  if test -n "$LIPO"; then
 
6380
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6381
else
 
6382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6383
for as_dir in $PATH
 
6384
do
 
6385
  IFS=$as_save_IFS
 
6386
  test -z "$as_dir" && as_dir=.
 
6387
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6388
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6389
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6390
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6391
    break 2
 
6392
  fi
 
6393
done
 
6394
done
 
6395
IFS=$as_save_IFS
 
6396
 
 
6397
fi
 
6398
fi
 
6399
LIPO=$ac_cv_prog_LIPO
 
6400
if test -n "$LIPO"; then
 
6401
  { echo "$as_me:$LINENO: result: $LIPO" >&5
 
6402
echo "${ECHO_T}$LIPO" >&6; }
 
6403
else
 
6404
  { echo "$as_me:$LINENO: result: no" >&5
 
6405
echo "${ECHO_T}no" >&6; }
 
6406
fi
 
6407
 
 
6408
 
 
6409
fi
 
6410
if test -z "$ac_cv_prog_LIPO"; then
 
6411
  ac_ct_LIPO=$LIPO
 
6412
  # Extract the first word of "lipo", so it can be a program name with args.
 
6413
set dummy lipo; ac_word=$2
 
6414
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6416
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6418
else
 
6419
  if test -n "$ac_ct_LIPO"; then
 
6420
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6421
else
 
6422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6423
for as_dir in $PATH
 
6424
do
 
6425
  IFS=$as_save_IFS
 
6426
  test -z "$as_dir" && as_dir=.
 
6427
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6428
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6429
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6430
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6431
    break 2
 
6432
  fi
 
6433
done
 
6434
done
 
6435
IFS=$as_save_IFS
 
6436
 
 
6437
fi
 
6438
fi
 
6439
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6440
if test -n "$ac_ct_LIPO"; then
 
6441
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6442
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
 
6443
else
 
6444
  { echo "$as_me:$LINENO: result: no" >&5
 
6445
echo "${ECHO_T}no" >&6; }
 
6446
fi
 
6447
 
 
6448
  if test "x$ac_ct_LIPO" = x; then
 
6449
    LIPO=":"
 
6450
  else
 
6451
    case $cross_compiling:$ac_tool_warned in
 
6452
yes:)
 
6453
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6454
whose name does not start with the host triplet.  If you think this
 
6455
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6456
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6457
whose name does not start with the host triplet.  If you think this
 
6458
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6459
ac_tool_warned=yes ;;
 
6460
esac
 
6461
    LIPO=$ac_ct_LIPO
 
6462
  fi
 
6463
else
 
6464
  LIPO="$ac_cv_prog_LIPO"
 
6465
fi
 
6466
 
 
6467
    if test -n "$ac_tool_prefix"; then
 
6468
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6469
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6470
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6471
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6472
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6474
else
 
6475
  if test -n "$OTOOL"; then
 
6476
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6477
else
 
6478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6479
for as_dir in $PATH
 
6480
do
 
6481
  IFS=$as_save_IFS
 
6482
  test -z "$as_dir" && as_dir=.
 
6483
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6484
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6485
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6486
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6487
    break 2
 
6488
  fi
 
6489
done
 
6490
done
 
6491
IFS=$as_save_IFS
 
6492
 
 
6493
fi
 
6494
fi
 
6495
OTOOL=$ac_cv_prog_OTOOL
 
6496
if test -n "$OTOOL"; then
 
6497
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6498
echo "${ECHO_T}$OTOOL" >&6; }
 
6499
else
 
6500
  { echo "$as_me:$LINENO: result: no" >&5
 
6501
echo "${ECHO_T}no" >&6; }
 
6502
fi
 
6503
 
 
6504
 
 
6505
fi
 
6506
if test -z "$ac_cv_prog_OTOOL"; then
 
6507
  ac_ct_OTOOL=$OTOOL
 
6508
  # Extract the first word of "otool", so it can be a program name with args.
 
6509
set dummy otool; ac_word=$2
 
6510
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6511
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6512
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6514
else
 
6515
  if test -n "$ac_ct_OTOOL"; then
 
6516
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6517
else
 
6518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6519
for as_dir in $PATH
 
6520
do
 
6521
  IFS=$as_save_IFS
 
6522
  test -z "$as_dir" && as_dir=.
 
6523
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6525
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6526
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6527
    break 2
 
6528
  fi
 
6529
done
 
6530
done
 
6531
IFS=$as_save_IFS
 
6532
 
 
6533
fi
 
6534
fi
 
6535
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6536
if test -n "$ac_ct_OTOOL"; then
 
6537
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6538
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
 
6539
else
 
6540
  { echo "$as_me:$LINENO: result: no" >&5
 
6541
echo "${ECHO_T}no" >&6; }
 
6542
fi
 
6543
 
 
6544
  if test "x$ac_ct_OTOOL" = x; then
 
6545
    OTOOL=":"
 
6546
  else
 
6547
    case $cross_compiling:$ac_tool_warned in
 
6548
yes:)
 
6549
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6550
whose name does not start with the host triplet.  If you think this
 
6551
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6552
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6553
whose name does not start with the host triplet.  If you think this
 
6554
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6555
ac_tool_warned=yes ;;
 
6556
esac
 
6557
    OTOOL=$ac_ct_OTOOL
 
6558
  fi
 
6559
else
 
6560
  OTOOL="$ac_cv_prog_OTOOL"
 
6561
fi
 
6562
 
 
6563
    if test -n "$ac_tool_prefix"; then
 
6564
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6565
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6566
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6568
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6570
else
 
6571
  if test -n "$OTOOL64"; then
 
6572
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6573
else
 
6574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6575
for as_dir in $PATH
 
6576
do
 
6577
  IFS=$as_save_IFS
 
6578
  test -z "$as_dir" && as_dir=.
 
6579
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6580
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6581
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6582
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6583
    break 2
 
6584
  fi
 
6585
done
 
6586
done
 
6587
IFS=$as_save_IFS
 
6588
 
 
6589
fi
 
6590
fi
 
6591
OTOOL64=$ac_cv_prog_OTOOL64
 
6592
if test -n "$OTOOL64"; then
 
6593
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6594
echo "${ECHO_T}$OTOOL64" >&6; }
 
6595
else
 
6596
  { echo "$as_me:$LINENO: result: no" >&5
 
6597
echo "${ECHO_T}no" >&6; }
 
6598
fi
 
6599
 
 
6600
 
 
6601
fi
 
6602
if test -z "$ac_cv_prog_OTOOL64"; then
 
6603
  ac_ct_OTOOL64=$OTOOL64
 
6604
  # Extract the first word of "otool64", so it can be a program name with args.
 
6605
set dummy otool64; ac_word=$2
 
6606
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6608
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6610
else
 
6611
  if test -n "$ac_ct_OTOOL64"; then
 
6612
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6613
else
 
6614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6615
for as_dir in $PATH
 
6616
do
 
6617
  IFS=$as_save_IFS
 
6618
  test -z "$as_dir" && as_dir=.
 
6619
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6620
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6621
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6622
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6623
    break 2
 
6624
  fi
 
6625
done
 
6626
done
 
6627
IFS=$as_save_IFS
 
6628
 
 
6629
fi
 
6630
fi
 
6631
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6632
if test -n "$ac_ct_OTOOL64"; then
 
6633
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6634
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
 
6635
else
 
6636
  { echo "$as_me:$LINENO: result: no" >&5
 
6637
echo "${ECHO_T}no" >&6; }
 
6638
fi
 
6639
 
 
6640
  if test "x$ac_ct_OTOOL64" = x; then
 
6641
    OTOOL64=":"
 
6642
  else
 
6643
    case $cross_compiling:$ac_tool_warned in
 
6644
yes:)
 
6645
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6646
whose name does not start with the host triplet.  If you think this
 
6647
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6648
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6649
whose name does not start with the host triplet.  If you think this
 
6650
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6651
ac_tool_warned=yes ;;
 
6652
esac
 
6653
    OTOOL64=$ac_ct_OTOOL64
 
6654
  fi
 
6655
else
 
6656
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6657
fi
 
6658
 
 
6659
 
 
6660
 
 
6661
 
 
6662
 
 
6663
 
 
6664
 
 
6665
 
 
6666
 
 
6667
 
 
6668
 
 
6669
 
 
6670
 
 
6671
 
 
6672
 
 
6673
 
 
6674
 
 
6675
 
 
6676
 
 
6677
 
 
6678
 
 
6679
 
 
6680
 
 
6681
 
 
6682
 
 
6683
 
 
6684
 
 
6685
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
6686
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
6687
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
6688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6689
else
 
6690
  lt_cv_apple_cc_single_mod=no
 
6691
      if test -z "${LT_MULTI_MODULE}"; then
 
6692
        # By default we will add the -single_module flag. You can override
 
6693
        # by either setting the environment variable LT_MULTI_MODULE
 
6694
        # non-empty at configure time, or by adding -multi_module to the
 
6695
        # link flags.
 
6696
        rm -rf libconftest.dylib*
 
6697
        echo "int foo(void){return 1;}" > conftest.c
 
6698
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6699
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6700
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6701
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6702
        _lt_result=$?
 
6703
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6704
          lt_cv_apple_cc_single_mod=yes
 
6705
        else
 
6706
          cat conftest.err >&5
 
6707
        fi
 
6708
        rm -rf libconftest.dylib*
 
6709
        rm -f conftest.*
 
6710
      fi
 
6711
fi
 
6712
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
6713
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
6714
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
6715
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
6716
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
6717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6718
else
 
6719
  lt_cv_ld_exported_symbols_list=no
 
6720
      save_LDFLAGS=$LDFLAGS
 
6721
      echo "_main" > conftest.sym
 
6722
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6723
      cat >conftest.$ac_ext <<_ACEOF
 
6724
/* confdefs.h.  */
 
6725
_ACEOF
 
6726
cat confdefs.h >>conftest.$ac_ext
 
6727
cat >>conftest.$ac_ext <<_ACEOF
 
6728
/* end confdefs.h.  */
 
6729
 
 
6730
int
 
6731
main ()
 
6732
{
 
6733
 
 
6734
  ;
 
6735
  return 0;
 
6736
}
 
6737
_ACEOF
 
6738
rm -f conftest.$ac_objext conftest$ac_exeext
 
6739
if { (ac_try="$ac_link"
 
6740
case "(($ac_try" in
 
6741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6742
  *) ac_try_echo=$ac_try;;
 
6743
esac
 
6744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6745
  (eval "$ac_link") 2>conftest.er1
 
6746
  ac_status=$?
 
6747
  grep -v '^ *+' conftest.er1 >conftest.err
 
6748
  rm -f conftest.er1
 
6749
  cat conftest.err >&5
 
6750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6751
  (exit $ac_status); } && {
 
6752
         test -z "$ac_c_werror_flag" ||
 
6753
         test ! -s conftest.err
 
6754
       } && test -s conftest$ac_exeext &&
 
6755
       $as_test_x conftest$ac_exeext; then
 
6756
  lt_cv_ld_exported_symbols_list=yes
 
6757
else
 
6758
  echo "$as_me: failed program was:" >&5
 
6759
sed 's/^/| /' conftest.$ac_ext >&5
 
6760
 
 
6761
        lt_cv_ld_exported_symbols_list=no
 
6762
fi
 
6763
 
 
6764
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6765
      conftest$ac_exeext conftest.$ac_ext
 
6766
        LDFLAGS="$save_LDFLAGS"
 
6767
 
 
6768
fi
 
6769
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
6770
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
6771
    case $host_os in
 
6772
    rhapsody* | darwin1.[012])
 
6773
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6774
    darwin1.*)
 
6775
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6776
    darwin*) # darwin 5.x on
 
6777
      # if running on 10.5 or later, the deployment target defaults
 
6778
      # to the OS version, if on x86, and 10.4, the deployment
 
6779
      # target defaults to 10.4. Don't you love it?
 
6780
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6781
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6782
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6783
        10.[012]*)
 
6784
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6785
        10.*)
 
6786
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6787
      esac
 
6788
    ;;
 
6789
  esac
 
6790
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6791
      _lt_dar_single_mod='$single_module'
 
6792
    fi
 
6793
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6794
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6795
    else
 
6796
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6797
    fi
 
6798
    if test "$DSYMUTIL" != ":"; then
 
6799
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6800
    else
 
6801
      _lt_dsymutil=
 
6802
    fi
 
6803
    ;;
 
6804
  esac
 
6805
 
 
6806
ac_ext=c
 
6807
ac_cpp='$CPP $CPPFLAGS'
 
6808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6811
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6812
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
6813
# On Suns, sometimes $CPP names a directory.
 
6814
if test -n "$CPP" && test -d "$CPP"; then
 
6815
  CPP=
 
6816
fi
 
6817
if test -z "$CPP"; then
 
6818
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6820
else
 
6821
      # Double quotes because CPP needs to be expanded
 
6822
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6823
    do
 
6824
      ac_preproc_ok=false
 
6825
for ac_c_preproc_warn_flag in '' yes
 
6826
do
 
6827
  # Use a header file that comes with gcc, so configuring glibc
 
6828
  # with a fresh cross-compiler works.
 
6829
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6830
  # <limits.h> exists even on freestanding compilers.
 
6831
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6832
  # not just through cpp. "Syntax error" is here to catch this case.
 
6833
  cat >conftest.$ac_ext <<_ACEOF
 
6834
/* confdefs.h.  */
 
6835
_ACEOF
 
6836
cat confdefs.h >>conftest.$ac_ext
 
6837
cat >>conftest.$ac_ext <<_ACEOF
 
6838
/* end confdefs.h.  */
 
6839
#ifdef __STDC__
 
6840
# include <limits.h>
 
6841
#else
 
6842
# include <assert.h>
 
6843
#endif
 
6844
                     Syntax error
 
6845
_ACEOF
 
6846
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6847
case "(($ac_try" in
 
6848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6849
  *) ac_try_echo=$ac_try;;
 
6850
esac
 
6851
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6852
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6853
  ac_status=$?
 
6854
  grep -v '^ *+' conftest.er1 >conftest.err
 
6855
  rm -f conftest.er1
 
6856
  cat conftest.err >&5
 
6857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6858
  (exit $ac_status); } >/dev/null && {
 
6859
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6860
         test ! -s conftest.err
 
6861
       }; then
 
6862
  :
 
6863
else
 
6864
  echo "$as_me: failed program was:" >&5
 
6865
sed 's/^/| /' conftest.$ac_ext >&5
 
6866
 
 
6867
  # Broken: fails on valid input.
 
6868
continue
 
6869
fi
 
6870
 
 
6871
rm -f conftest.err conftest.$ac_ext
 
6872
 
 
6873
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6874
  # can be detected and how.
 
6875
  cat >conftest.$ac_ext <<_ACEOF
 
6876
/* confdefs.h.  */
 
6877
_ACEOF
 
6878
cat confdefs.h >>conftest.$ac_ext
 
6879
cat >>conftest.$ac_ext <<_ACEOF
 
6880
/* end confdefs.h.  */
 
6881
#include <ac_nonexistent.h>
 
6882
_ACEOF
 
6883
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6884
case "(($ac_try" in
 
6885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6886
  *) ac_try_echo=$ac_try;;
 
6887
esac
 
6888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6889
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6890
  ac_status=$?
 
6891
  grep -v '^ *+' conftest.er1 >conftest.err
 
6892
  rm -f conftest.er1
 
6893
  cat conftest.err >&5
 
6894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6895
  (exit $ac_status); } >/dev/null && {
 
6896
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6897
         test ! -s conftest.err
 
6898
       }; then
 
6899
  # Broken: success on invalid input.
 
6900
continue
 
6901
else
 
6902
  echo "$as_me: failed program was:" >&5
 
6903
sed 's/^/| /' conftest.$ac_ext >&5
 
6904
 
 
6905
  # Passes both tests.
 
6906
ac_preproc_ok=:
 
6907
break
 
6908
fi
 
6909
 
 
6910
rm -f conftest.err conftest.$ac_ext
 
6911
 
 
6912
done
 
6913
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6914
rm -f conftest.err conftest.$ac_ext
 
6915
if $ac_preproc_ok; then
 
6916
  break
 
6917
fi
 
6918
 
 
6919
    done
 
6920
    ac_cv_prog_CPP=$CPP
 
6921
 
 
6922
fi
 
6923
  CPP=$ac_cv_prog_CPP
 
6924
else
 
6925
  ac_cv_prog_CPP=$CPP
 
6926
fi
 
6927
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
6928
echo "${ECHO_T}$CPP" >&6; }
 
6929
ac_preproc_ok=false
 
6930
for ac_c_preproc_warn_flag in '' yes
 
6931
do
 
6932
  # Use a header file that comes with gcc, so configuring glibc
 
6933
  # with a fresh cross-compiler works.
 
6934
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6935
  # <limits.h> exists even on freestanding compilers.
 
6936
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6937
  # not just through cpp. "Syntax error" is here to catch this case.
 
6938
  cat >conftest.$ac_ext <<_ACEOF
 
6939
/* confdefs.h.  */
 
6940
_ACEOF
 
6941
cat confdefs.h >>conftest.$ac_ext
 
6942
cat >>conftest.$ac_ext <<_ACEOF
 
6943
/* end confdefs.h.  */
 
6944
#ifdef __STDC__
 
6945
# include <limits.h>
 
6946
#else
 
6947
# include <assert.h>
 
6948
#endif
 
6949
                     Syntax error
 
6950
_ACEOF
 
6951
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6952
case "(($ac_try" in
 
6953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6954
  *) ac_try_echo=$ac_try;;
 
6955
esac
 
6956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6957
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6958
  ac_status=$?
 
6959
  grep -v '^ *+' conftest.er1 >conftest.err
 
6960
  rm -f conftest.er1
 
6961
  cat conftest.err >&5
 
6962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6963
  (exit $ac_status); } >/dev/null && {
 
6964
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6965
         test ! -s conftest.err
 
6966
       }; then
 
6967
  :
 
6968
else
 
6969
  echo "$as_me: failed program was:" >&5
 
6970
sed 's/^/| /' conftest.$ac_ext >&5
 
6971
 
 
6972
  # Broken: fails on valid input.
 
6973
continue
 
6974
fi
 
6975
 
 
6976
rm -f conftest.err conftest.$ac_ext
 
6977
 
 
6978
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6979
  # can be detected and how.
 
6980
  cat >conftest.$ac_ext <<_ACEOF
 
6981
/* confdefs.h.  */
 
6982
_ACEOF
 
6983
cat confdefs.h >>conftest.$ac_ext
 
6984
cat >>conftest.$ac_ext <<_ACEOF
 
6985
/* end confdefs.h.  */
 
6986
#include <ac_nonexistent.h>
 
6987
_ACEOF
 
6988
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6989
case "(($ac_try" in
 
6990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6991
  *) ac_try_echo=$ac_try;;
 
6992
esac
 
6993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6994
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6995
  ac_status=$?
 
6996
  grep -v '^ *+' conftest.er1 >conftest.err
 
6997
  rm -f conftest.er1
 
6998
  cat conftest.err >&5
 
6999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7000
  (exit $ac_status); } >/dev/null && {
 
7001
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7002
         test ! -s conftest.err
 
7003
       }; then
 
7004
  # Broken: success on invalid input.
 
7005
continue
 
7006
else
 
7007
  echo "$as_me: failed program was:" >&5
 
7008
sed 's/^/| /' conftest.$ac_ext >&5
 
7009
 
 
7010
  # Passes both tests.
 
7011
ac_preproc_ok=:
 
7012
break
 
7013
fi
 
7014
 
 
7015
rm -f conftest.err conftest.$ac_ext
 
7016
 
 
7017
done
 
7018
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7019
rm -f conftest.err conftest.$ac_ext
 
7020
if $ac_preproc_ok; then
 
7021
  :
 
7022
else
 
7023
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
7024
See \`config.log' for more details." >&5
 
7025
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
7026
See \`config.log' for more details." >&2;}
 
7027
   { (exit 1); exit 1; }; }
 
7028
fi
 
7029
 
 
7030
ac_ext=c
 
7031
ac_cpp='$CPP $CPPFLAGS'
 
7032
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7033
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7034
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7035
 
 
7036
 
 
7037
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7038
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
7039
if test "${ac_cv_header_stdc+set}" = set; then
 
7040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7041
else
 
7042
  cat >conftest.$ac_ext <<_ACEOF
 
7043
/* confdefs.h.  */
 
7044
_ACEOF
 
7045
cat confdefs.h >>conftest.$ac_ext
 
7046
cat >>conftest.$ac_ext <<_ACEOF
 
7047
/* end confdefs.h.  */
 
7048
#include <stdlib.h>
 
7049
#include <stdarg.h>
 
7050
#include <string.h>
 
7051
#include <float.h>
 
7052
 
 
7053
int
 
7054
main ()
 
7055
{
 
7056
 
 
7057
  ;
 
7058
  return 0;
 
7059
}
 
7060
_ACEOF
 
7061
rm -f conftest.$ac_objext
 
7062
if { (ac_try="$ac_compile"
 
7063
case "(($ac_try" in
 
7064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7065
  *) ac_try_echo=$ac_try;;
 
7066
esac
 
7067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7068
  (eval "$ac_compile") 2>conftest.er1
 
7069
  ac_status=$?
 
7070
  grep -v '^ *+' conftest.er1 >conftest.err
 
7071
  rm -f conftest.er1
 
7072
  cat conftest.err >&5
 
7073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7074
  (exit $ac_status); } && {
 
7075
         test -z "$ac_c_werror_flag" ||
 
7076
         test ! -s conftest.err
 
7077
       } && test -s conftest.$ac_objext; then
 
7078
  ac_cv_header_stdc=yes
 
7079
else
 
7080
  echo "$as_me: failed program was:" >&5
 
7081
sed 's/^/| /' conftest.$ac_ext >&5
 
7082
 
 
7083
        ac_cv_header_stdc=no
 
7084
fi
 
7085
 
 
7086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7087
 
 
7088
if test $ac_cv_header_stdc = yes; then
 
7089
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7090
  cat >conftest.$ac_ext <<_ACEOF
 
7091
/* confdefs.h.  */
 
7092
_ACEOF
 
7093
cat confdefs.h >>conftest.$ac_ext
 
7094
cat >>conftest.$ac_ext <<_ACEOF
 
7095
/* end confdefs.h.  */
 
7096
#include <string.h>
 
7097
 
 
7098
_ACEOF
 
7099
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7100
  $EGREP "memchr" >/dev/null 2>&1; then
 
7101
  :
 
7102
else
 
7103
  ac_cv_header_stdc=no
 
7104
fi
 
7105
rm -f conftest*
 
7106
 
 
7107
fi
 
7108
 
 
7109
if test $ac_cv_header_stdc = yes; then
 
7110
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7111
  cat >conftest.$ac_ext <<_ACEOF
 
7112
/* confdefs.h.  */
 
7113
_ACEOF
 
7114
cat confdefs.h >>conftest.$ac_ext
 
7115
cat >>conftest.$ac_ext <<_ACEOF
 
7116
/* end confdefs.h.  */
 
7117
#include <stdlib.h>
 
7118
 
 
7119
_ACEOF
 
7120
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7121
  $EGREP "free" >/dev/null 2>&1; then
 
7122
  :
 
7123
else
 
7124
  ac_cv_header_stdc=no
 
7125
fi
 
7126
rm -f conftest*
 
7127
 
 
7128
fi
 
7129
 
 
7130
if test $ac_cv_header_stdc = yes; then
 
7131
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7132
  if test "$cross_compiling" = yes; then
 
7133
  :
 
7134
else
 
7135
  cat >conftest.$ac_ext <<_ACEOF
 
7136
/* confdefs.h.  */
 
7137
_ACEOF
 
7138
cat confdefs.h >>conftest.$ac_ext
 
7139
cat >>conftest.$ac_ext <<_ACEOF
 
7140
/* end confdefs.h.  */
 
7141
#include <ctype.h>
 
7142
#include <stdlib.h>
 
7143
#if ((' ' & 0x0FF) == 0x020)
 
7144
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7145
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7146
#else
 
7147
# define ISLOWER(c) \
 
7148
                   (('a' <= (c) && (c) <= 'i') \
 
7149
                     || ('j' <= (c) && (c) <= 'r') \
 
7150
                     || ('s' <= (c) && (c) <= 'z'))
 
7151
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7152
#endif
 
7153
 
 
7154
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7155
int
 
7156
main ()
 
7157
{
 
7158
  int i;
 
7159
  for (i = 0; i < 256; i++)
 
7160
    if (XOR (islower (i), ISLOWER (i))
 
7161
        || toupper (i) != TOUPPER (i))
 
7162
      return 2;
 
7163
  return 0;
 
7164
}
 
7165
_ACEOF
 
7166
rm -f conftest$ac_exeext
 
7167
if { (ac_try="$ac_link"
 
7168
case "(($ac_try" in
 
7169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7170
  *) ac_try_echo=$ac_try;;
 
7171
esac
 
7172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7173
  (eval "$ac_link") 2>&5
 
7174
  ac_status=$?
 
7175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7176
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7177
  { (case "(($ac_try" in
 
7178
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7179
  *) ac_try_echo=$ac_try;;
 
7180
esac
 
7181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7182
  (eval "$ac_try") 2>&5
 
7183
  ac_status=$?
 
7184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7185
  (exit $ac_status); }; }; then
 
7186
  :
 
7187
else
 
7188
  echo "$as_me: program exited with status $ac_status" >&5
 
7189
echo "$as_me: failed program was:" >&5
 
7190
sed 's/^/| /' conftest.$ac_ext >&5
 
7191
 
 
7192
( exit $ac_status )
 
7193
ac_cv_header_stdc=no
 
7194
fi
 
7195
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7196
fi
 
7197
 
 
7198
 
 
7199
fi
 
7200
fi
 
7201
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7202
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
7203
if test $ac_cv_header_stdc = yes; then
 
7204
 
 
7205
cat >>confdefs.h <<\_ACEOF
 
7206
#define STDC_HEADERS 1
 
7207
_ACEOF
 
7208
 
 
7209
fi
 
7210
 
 
7211
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7212
 
 
7213
 
 
7214
 
 
7215
 
 
7216
 
 
7217
 
 
7218
 
 
7219
 
 
7220
 
 
7221
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7222
                  inttypes.h stdint.h unistd.h
 
7223
do
 
7224
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7225
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7226
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7227
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7229
else
 
7230
  cat >conftest.$ac_ext <<_ACEOF
 
7231
/* confdefs.h.  */
 
7232
_ACEOF
 
7233
cat confdefs.h >>conftest.$ac_ext
 
7234
cat >>conftest.$ac_ext <<_ACEOF
 
7235
/* end confdefs.h.  */
 
7236
$ac_includes_default
 
7237
 
 
7238
#include <$ac_header>
 
7239
_ACEOF
 
7240
rm -f conftest.$ac_objext
 
7241
if { (ac_try="$ac_compile"
 
7242
case "(($ac_try" in
 
7243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7244
  *) ac_try_echo=$ac_try;;
 
7245
esac
 
7246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7247
  (eval "$ac_compile") 2>conftest.er1
 
7248
  ac_status=$?
 
7249
  grep -v '^ *+' conftest.er1 >conftest.err
 
7250
  rm -f conftest.er1
 
7251
  cat conftest.err >&5
 
7252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7253
  (exit $ac_status); } && {
 
7254
         test -z "$ac_c_werror_flag" ||
 
7255
         test ! -s conftest.err
 
7256
       } && test -s conftest.$ac_objext; then
 
7257
  eval "$as_ac_Header=yes"
 
7258
else
 
7259
  echo "$as_me: failed program was:" >&5
 
7260
sed 's/^/| /' conftest.$ac_ext >&5
 
7261
 
 
7262
        eval "$as_ac_Header=no"
 
7263
fi
 
7264
 
 
7265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7266
fi
 
7267
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7268
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7269
echo "${ECHO_T}$ac_res" >&6; }
 
7270
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7271
  cat >>confdefs.h <<_ACEOF
 
7272
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7273
_ACEOF
 
7274
 
 
7275
fi
 
7276
 
 
7277
done
 
7278
 
 
7279
 
 
7280
 
 
7281
for ac_header in dlfcn.h
 
7282
do
 
7283
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7284
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7285
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7286
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7288
else
 
7289
  cat >conftest.$ac_ext <<_ACEOF
 
7290
/* confdefs.h.  */
 
7291
_ACEOF
 
7292
cat confdefs.h >>conftest.$ac_ext
 
7293
cat >>conftest.$ac_ext <<_ACEOF
 
7294
/* end confdefs.h.  */
 
7295
$ac_includes_default
 
7296
 
 
7297
#include <$ac_header>
 
7298
_ACEOF
 
7299
rm -f conftest.$ac_objext
 
7300
if { (ac_try="$ac_compile"
 
7301
case "(($ac_try" in
 
7302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7303
  *) ac_try_echo=$ac_try;;
 
7304
esac
 
7305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7306
  (eval "$ac_compile") 2>conftest.er1
 
7307
  ac_status=$?
 
7308
  grep -v '^ *+' conftest.er1 >conftest.err
 
7309
  rm -f conftest.er1
 
7310
  cat conftest.err >&5
 
7311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7312
  (exit $ac_status); } && {
 
7313
         test -z "$ac_c_werror_flag" ||
 
7314
         test ! -s conftest.err
 
7315
       } && test -s conftest.$ac_objext; then
 
7316
  eval "$as_ac_Header=yes"
 
7317
else
 
7318
  echo "$as_me: failed program was:" >&5
 
7319
sed 's/^/| /' conftest.$ac_ext >&5
 
7320
 
 
7321
        eval "$as_ac_Header=no"
 
7322
fi
 
7323
 
 
7324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7325
fi
 
7326
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7327
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7328
echo "${ECHO_T}$ac_res" >&6; }
 
7329
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7330
  cat >>confdefs.h <<_ACEOF
 
7331
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7332
_ACEOF
 
7333
 
 
7334
fi
 
7335
 
 
7336
done
 
7337
 
 
7338
 
 
7339
 
 
7340
# Set options
 
7341
 
 
7342
 
 
7343
 
 
7344
        enable_dlopen=no
 
7345
 
 
7346
 
 
7347
  enable_win32_dll=no
 
7348
 
 
7349
 
 
7350
 
 
7351
  # Check whether --enable-static was given.
 
7352
if test "${enable_static+set}" = set; then
 
7353
  enableval=$enable_static; p=${PACKAGE-default}
 
7354
    case $enableval in
 
7355
    yes) enable_static=yes ;;
 
7356
    no) enable_static=no ;;
 
7357
    *)
 
7358
     enable_static=no
 
7359
      # Look at the argument we got.  We use all the common list separators.
 
7360
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7361
      for pkg in $enableval; do
 
7362
        IFS="$lt_save_ifs"
 
7363
        if test "X$pkg" = "X$p"; then
 
7364
          enable_static=yes
 
7365
        fi
 
7366
      done
 
7367
      IFS="$lt_save_ifs"
 
7368
      ;;
 
7369
    esac
 
7370
else
 
7371
  enable_static=yes
 
7372
fi
 
7373
 
 
7374
 
 
7375
 
 
7376
 
 
7377
 
 
7378
 
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
# Check whether --with-pic was given.
 
7384
if test "${with_pic+set}" = set; then
 
7385
  withval=$with_pic; pic_mode="$withval"
 
7386
else
 
7387
  pic_mode=default
 
7388
fi
 
7389
 
 
7390
 
 
7391
test -z "$pic_mode" && pic_mode=default
 
7392
 
 
7393
 
 
7394
 
 
7395
 
 
7396
 
 
7397
 
 
7398
 
 
7399
  # Check whether --enable-fast-install was given.
 
7400
if test "${enable_fast_install+set}" = set; then
 
7401
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7402
    case $enableval in
 
7403
    yes) enable_fast_install=yes ;;
 
7404
    no) enable_fast_install=no ;;
 
7405
    *)
 
7406
      enable_fast_install=no
 
7407
      # Look at the argument we got.  We use all the common list separators.
 
7408
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7409
      for pkg in $enableval; do
 
7410
        IFS="$lt_save_ifs"
 
7411
        if test "X$pkg" = "X$p"; then
 
7412
          enable_fast_install=yes
 
7413
        fi
 
7414
      done
 
7415
      IFS="$lt_save_ifs"
 
7416
      ;;
 
7417
    esac
 
7418
else
 
7419
  enable_fast_install=yes
 
7420
fi
 
7421
 
 
7422
 
 
7423
 
 
7424
 
 
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
# This can be used to rebuild libtool when needed
 
7433
LIBTOOL_DEPS="$ltmain"
 
7434
 
 
7435
# Always use our own libtool.
 
7436
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7437
 
 
7438
 
 
7439
 
 
7440
 
 
7441
 
 
7442
 
 
7443
 
 
7444
 
 
7445
 
 
7446
 
 
7447
 
 
7448
 
 
7449
 
 
7450
 
 
7451
 
 
7452
 
 
7453
 
 
7454
 
 
7455
 
 
7456
 
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
 
7462
test -z "$LN_S" && LN_S="ln -s"
 
7463
 
 
7464
 
 
7465
 
 
7466
 
 
7467
 
 
7468
 
 
7469
 
 
7470
 
 
7471
 
 
7472
 
 
7473
 
 
7474
 
 
7475
 
 
7476
 
 
7477
if test -n "${ZSH_VERSION+set}" ; then
 
7478
   setopt NO_GLOB_SUBST
 
7479
fi
 
7480
 
 
7481
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
7482
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
7483
if test "${lt_cv_objdir+set}" = set; then
 
7484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7485
else
 
7486
  rm -f .libs 2>/dev/null
 
7487
mkdir .libs 2>/dev/null
 
7488
if test -d .libs; then
 
7489
  lt_cv_objdir=.libs
 
7490
else
 
7491
  # MS-DOS does not allow filenames that begin with a dot.
 
7492
  lt_cv_objdir=_libs
 
7493
fi
 
7494
rmdir .libs 2>/dev/null
 
7495
fi
 
7496
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7497
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
7498
objdir=$lt_cv_objdir
 
7499
 
 
7500
 
 
7501
 
 
7502
 
 
7503
 
 
7504
cat >>confdefs.h <<_ACEOF
 
7505
#define LT_OBJDIR "$lt_cv_objdir/"
 
7506
_ACEOF
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
 
 
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
 
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
case $host_os in
 
7525
aix3*)
 
7526
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7527
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7528
  # vanish in a puff of smoke.
 
7529
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7530
    COLLECT_NAMES=
 
7531
    export COLLECT_NAMES
 
7532
  fi
 
7533
  ;;
 
7534
esac
 
7535
 
 
7536
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7537
# metacharacters that are still active within double-quoted strings.
 
7538
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7539
 
 
7540
# Same as above, but do not quote variable references.
 
7541
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7542
 
 
7543
# Sed substitution to delay expansion of an escaped shell variable in a
 
7544
# double_quote_subst'ed string.
 
7545
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7546
 
 
7547
# Sed substitution to delay expansion of an escaped single quote.
 
7548
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7549
 
 
7550
# Sed substitution to avoid accidental globbing in evaled expressions
 
7551
no_glob_subst='s/\*/\\\*/g'
 
7552
 
 
7553
# Global variables:
 
7554
ofile=libtool
 
7555
can_build_shared=yes
 
7556
 
 
7557
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7558
# which needs '.lib').
 
7559
libext=a
 
7560
 
 
7561
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7562
 
 
7563
old_CC="$CC"
 
7564
old_CFLAGS="$CFLAGS"
 
7565
 
 
7566
# Set sane defaults for various variables
 
7567
test -z "$CC" && CC=cc
 
7568
test -z "$LTCC" && LTCC=$CC
 
7569
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7570
test -z "$LD" && LD=ld
 
7571
test -z "$ac_objext" && ac_objext=o
 
7572
 
 
7573
for cc_temp in $compiler""; do
 
7574
  case $cc_temp in
 
7575
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7576
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7577
    \-*) ;;
 
7578
    *) break;;
 
7579
  esac
 
7580
done
 
7581
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7582
 
 
7583
 
 
7584
# Only perform the check for file, if the check method requires it
 
7585
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7586
case $deplibs_check_method in
 
7587
file_magic*)
 
7588
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7589
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7590
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7591
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7593
else
 
7594
  case $MAGIC_CMD in
 
7595
[\\/*] |  ?:[\\/]*)
 
7596
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7597
  ;;
 
7598
*)
 
7599
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7600
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7601
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7602
  for ac_dir in $ac_dummy; do
 
7603
    IFS="$lt_save_ifs"
 
7604
    test -z "$ac_dir" && ac_dir=.
 
7605
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7606
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7607
      if test -n "$file_magic_test_file"; then
 
7608
        case $deplibs_check_method in
 
7609
        "file_magic "*)
 
7610
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7611
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7612
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7613
            $EGREP "$file_magic_regex" > /dev/null; then
 
7614
            :
 
7615
          else
 
7616
            cat <<_LT_EOF 1>&2
 
7617
 
 
7618
*** Warning: the command libtool uses to detect shared libraries,
 
7619
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7620
*** The result is that libtool may fail to recognize shared libraries
 
7621
*** as such.  This will affect the creation of libtool libraries that
 
7622
*** depend on shared libraries, but programs linked with such libtool
 
7623
*** libraries will work regardless of this problem.  Nevertheless, you
 
7624
*** may want to report the problem to your system manager and/or to
 
7625
*** bug-libtool@gnu.org
 
7626
 
 
7627
_LT_EOF
 
7628
          fi ;;
 
7629
        esac
 
7630
      fi
 
7631
      break
 
7632
    fi
 
7633
  done
 
7634
  IFS="$lt_save_ifs"
 
7635
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7636
  ;;
 
7637
esac
 
7638
fi
 
7639
 
 
7640
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7641
if test -n "$MAGIC_CMD"; then
 
7642
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7643
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7644
else
 
7645
  { echo "$as_me:$LINENO: result: no" >&5
 
7646
echo "${ECHO_T}no" >&6; }
 
7647
fi
 
7648
 
 
7649
 
 
7650
 
 
7651
 
 
7652
 
 
7653
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7654
  if test -n "$ac_tool_prefix"; then
 
7655
    { echo "$as_me:$LINENO: checking for file" >&5
 
7656
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7657
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7659
else
 
7660
  case $MAGIC_CMD in
 
7661
[\\/*] |  ?:[\\/]*)
 
7662
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7663
  ;;
 
7664
*)
 
7665
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7666
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7667
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7668
  for ac_dir in $ac_dummy; do
 
7669
    IFS="$lt_save_ifs"
 
7670
    test -z "$ac_dir" && ac_dir=.
 
7671
    if test -f $ac_dir/file; then
 
7672
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7673
      if test -n "$file_magic_test_file"; then
 
7674
        case $deplibs_check_method in
 
7675
        "file_magic "*)
 
7676
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7677
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7678
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7679
            $EGREP "$file_magic_regex" > /dev/null; then
 
7680
            :
 
7681
          else
 
7682
            cat <<_LT_EOF 1>&2
 
7683
 
 
7684
*** Warning: the command libtool uses to detect shared libraries,
 
7685
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7686
*** The result is that libtool may fail to recognize shared libraries
 
7687
*** as such.  This will affect the creation of libtool libraries that
 
7688
*** depend on shared libraries, but programs linked with such libtool
 
7689
*** libraries will work regardless of this problem.  Nevertheless, you
 
7690
*** may want to report the problem to your system manager and/or to
 
7691
*** bug-libtool@gnu.org
 
7692
 
 
7693
_LT_EOF
 
7694
          fi ;;
 
7695
        esac
 
7696
      fi
 
7697
      break
 
7698
    fi
 
7699
  done
 
7700
  IFS="$lt_save_ifs"
 
7701
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7702
  ;;
 
7703
esac
 
7704
fi
 
7705
 
 
7706
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7707
if test -n "$MAGIC_CMD"; then
 
7708
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7709
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7710
else
 
7711
  { echo "$as_me:$LINENO: result: no" >&5
 
7712
echo "${ECHO_T}no" >&6; }
 
7713
fi
 
7714
 
 
7715
 
 
7716
  else
 
7717
    MAGIC_CMD=:
 
7718
  fi
 
7719
fi
 
7720
 
 
7721
  fi
 
7722
  ;;
 
7723
esac
 
7724
 
 
7725
# Use C for the default configuration in the libtool script
 
7726
 
 
7727
lt_save_CC="$CC"
 
7728
ac_ext=c
 
7729
ac_cpp='$CPP $CPPFLAGS'
 
7730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7733
 
 
7734
 
 
7735
# Source file extension for C test sources.
 
7736
ac_ext=c
 
7737
 
 
7738
# Object file extension for compiled C test sources.
 
7739
objext=o
 
7740
objext=$objext
 
7741
 
 
7742
# Code to be used in simple compile tests
 
7743
lt_simple_compile_test_code="int some_variable = 0;"
 
7744
 
 
7745
# Code to be used in simple link tests
 
7746
lt_simple_link_test_code='int main(){return(0);}'
 
7747
 
 
7748
 
 
7749
 
 
7750
 
 
7751
 
 
7752
 
 
7753
 
 
7754
# If no C compiler was specified, use CC.
 
7755
LTCC=${LTCC-"$CC"}
 
7756
 
 
7757
# If no C compiler flags were specified, use CFLAGS.
 
7758
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7759
 
 
7760
# Allow CC to be a program name with arguments.
 
7761
compiler=$CC
 
7762
 
 
7763
# Save the default compiler, since it gets overwritten when the other
 
7764
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7765
compiler_DEFAULT=$CC
 
7766
 
 
7767
# save warnings/boilerplate of simple test code
 
7768
ac_outfile=conftest.$ac_objext
 
7769
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7770
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7771
_lt_compiler_boilerplate=`cat conftest.err`
 
7772
$RM conftest*
 
7773
 
 
7774
ac_outfile=conftest.$ac_objext
 
7775
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7776
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7777
_lt_linker_boilerplate=`cat conftest.err`
 
7778
$RM -r conftest*
 
7779
 
 
7780
 
 
7781
if test -n "$compiler"; then
 
7782
 
 
7783
lt_prog_compiler_no_builtin_flag=
 
7784
 
 
7785
if test "$GCC" = yes; then
 
7786
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7787
 
 
7788
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7789
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7790
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7792
else
 
7793
  lt_cv_prog_compiler_rtti_exceptions=no
 
7794
   ac_outfile=conftest.$ac_objext
 
7795
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7796
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7797
   # Insert the option either (1) after the last *FLAGS variable, or
 
7798
   # (2) before a word containing "conftest.", or (3) at the end.
 
7799
   # Note that $ac_compile itself does not contain backslashes and begins
 
7800
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7801
   # The option is referenced via a variable to avoid confusing sed.
 
7802
   lt_compile=`echo "$ac_compile" | $SED \
 
7803
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7804
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7805
   -e 's:$: $lt_compiler_flag:'`
 
7806
   (eval echo "\"\$as_me:7806: $lt_compile\"" >&5)
 
7807
   (eval "$lt_compile" 2>conftest.err)
 
7808
   ac_status=$?
 
7809
   cat conftest.err >&5
 
7810
   echo "$as_me:7810: \$? = $ac_status" >&5
 
7811
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7812
     # The compiler can only warn and ignore the option if not recognized
 
7813
     # So say no if there are warnings other than the usual output.
 
7814
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7815
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7816
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7817
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7818
     fi
 
7819
   fi
 
7820
   $RM conftest*
 
7821
 
 
7822
fi
 
7823
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7824
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7825
 
 
7826
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7827
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7828
else
 
7829
    :
 
7830
fi
 
7831
 
 
7832
fi
 
7833
 
 
7834
 
 
7835
 
 
7836
 
 
7837
 
 
7838
 
 
7839
  lt_prog_compiler_wl=
 
7840
lt_prog_compiler_pic=
 
7841
lt_prog_compiler_static=
 
7842
 
 
7843
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7844
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7845
 
 
7846
  if test "$GCC" = yes; then
 
7847
    lt_prog_compiler_wl='-Wl,'
 
7848
    lt_prog_compiler_static='-static'
 
7849
 
 
7850
    case $host_os in
 
7851
      aix*)
 
7852
      # All AIX code is PIC.
 
7853
      if test "$host_cpu" = ia64; then
 
7854
        # AIX 5 now supports IA64 processor
 
7855
        lt_prog_compiler_static='-Bstatic'
 
7856
      fi
 
7857
      ;;
 
7858
 
 
7859
    amigaos*)
 
7860
      case $host_cpu in
 
7861
      powerpc)
 
7862
            # see comment about AmigaOS4 .so support
 
7863
            lt_prog_compiler_pic='-fPIC'
 
7864
        ;;
 
7865
      m68k)
 
7866
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7867
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7868
            # like `-m68040'.
 
7869
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7870
        ;;
 
7871
      esac
 
7872
      ;;
 
7873
 
 
7874
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7875
      # PIC is the default for these OSes.
 
7876
      ;;
 
7877
 
 
7878
    mingw* | cygwin* | pw32* | os2*)
 
7879
      # This hack is so that the source file can tell whether it is being
 
7880
      # built for inclusion in a dll (and should export symbols for example).
 
7881
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7882
      # (--disable-auto-import) libraries
 
7883
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7884
      ;;
 
7885
 
 
7886
    darwin* | rhapsody*)
 
7887
      # PIC is the default on this platform
 
7888
      # Common symbols not allowed in MH_DYLIB files
 
7889
      lt_prog_compiler_pic='-fno-common'
 
7890
      ;;
 
7891
 
 
7892
    hpux*)
 
7893
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7894
      # not for PA HP-UX.
 
7895
      case $host_cpu in
 
7896
      hppa*64*|ia64*)
 
7897
        # +Z the default
 
7898
        ;;
 
7899
      *)
 
7900
        lt_prog_compiler_pic='-fPIC'
 
7901
        ;;
 
7902
      esac
 
7903
      ;;
 
7904
 
 
7905
    interix[3-9]*)
 
7906
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7907
      # Instead, we relocate shared libraries at runtime.
 
7908
      ;;
 
7909
 
 
7910
    msdosdjgpp*)
 
7911
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7912
      # on systems that don't support them.
 
7913
      lt_prog_compiler_can_build_shared=no
 
7914
      enable_shared=no
 
7915
      ;;
 
7916
 
 
7917
    *nto* | *qnx*)
 
7918
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7919
      # it will coredump.
 
7920
      lt_prog_compiler_pic='-fPIC -shared'
 
7921
      ;;
 
7922
 
 
7923
    sysv4*MP*)
 
7924
      if test -d /usr/nec; then
 
7925
        lt_prog_compiler_pic=-Kconform_pic
 
7926
      fi
 
7927
      ;;
 
7928
 
 
7929
    *)
 
7930
      lt_prog_compiler_pic='-fPIC'
 
7931
      ;;
 
7932
    esac
 
7933
  else
 
7934
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7935
    case $host_os in
 
7936
    aix*)
 
7937
      lt_prog_compiler_wl='-Wl,'
 
7938
      if test "$host_cpu" = ia64; then
 
7939
        # AIX 5 now supports IA64 processor
 
7940
        lt_prog_compiler_static='-Bstatic'
 
7941
      else
 
7942
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7943
      fi
 
7944
      ;;
 
7945
 
 
7946
    mingw* | cygwin* | pw32* | os2*)
 
7947
      # This hack is so that the source file can tell whether it is being
 
7948
      # built for inclusion in a dll (and should export symbols for example).
 
7949
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7950
      ;;
 
7951
 
 
7952
    hpux9* | hpux10* | hpux11*)
 
7953
      lt_prog_compiler_wl='-Wl,'
 
7954
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7955
      # not for PA HP-UX.
 
7956
      case $host_cpu in
 
7957
      hppa*64*|ia64*)
 
7958
        # +Z the default
 
7959
        ;;
 
7960
      *)
 
7961
        lt_prog_compiler_pic='+Z'
 
7962
        ;;
 
7963
      esac
 
7964
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7965
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7966
      ;;
 
7967
 
 
7968
    irix5* | irix6* | nonstopux*)
 
7969
      lt_prog_compiler_wl='-Wl,'
 
7970
      # PIC (with -KPIC) is the default.
 
7971
      lt_prog_compiler_static='-non_shared'
 
7972
      ;;
 
7973
 
 
7974
    linux* | k*bsd*-gnu)
 
7975
      case $cc_basename in
 
7976
      icc* | ecc* | ifort*)
 
7977
        lt_prog_compiler_wl='-Wl,'
 
7978
        lt_prog_compiler_pic='-KPIC'
 
7979
        lt_prog_compiler_static='-static'
 
7980
        ;;
 
7981
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7982
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7983
        # which looks to be a dead project)
 
7984
        lt_prog_compiler_wl='-Wl,'
 
7985
        lt_prog_compiler_pic='-fpic'
 
7986
        lt_prog_compiler_static='-Bstatic'
 
7987
        ;;
 
7988
      ccc*)
 
7989
        lt_prog_compiler_wl='-Wl,'
 
7990
        # All Alpha code is PIC.
 
7991
        lt_prog_compiler_static='-non_shared'
 
7992
        ;;
 
7993
      xl*)
 
7994
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7995
        lt_prog_compiler_wl='-Wl,'
 
7996
        lt_prog_compiler_pic='-qpic'
 
7997
        lt_prog_compiler_static='-qstaticlink'
 
7998
        ;;
 
7999
      *)
 
8000
        case `$CC -V 2>&1 | sed 5q` in
 
8001
        *Sun\ C*)
 
8002
          # Sun C 5.9
 
8003
          lt_prog_compiler_pic='-KPIC'
 
8004
          lt_prog_compiler_static='-Bstatic'
 
8005
          lt_prog_compiler_wl='-Wl,'
 
8006
          ;;
 
8007
        *Sun\ F*)
 
8008
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8009
          lt_prog_compiler_pic='-KPIC'
 
8010
          lt_prog_compiler_static='-Bstatic'
 
8011
          lt_prog_compiler_wl=''
 
8012
          ;;
 
8013
        esac
 
8014
        ;;
 
8015
      esac
 
8016
      ;;
 
8017
 
 
8018
    newsos6)
 
8019
      lt_prog_compiler_pic='-KPIC'
 
8020
      lt_prog_compiler_static='-Bstatic'
 
8021
      ;;
 
8022
 
 
8023
    *nto* | *qnx*)
 
8024
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8025
      # it will coredump.
 
8026
      lt_prog_compiler_pic='-fPIC -shared'
 
8027
      ;;
 
8028
 
 
8029
    osf3* | osf4* | osf5*)
 
8030
      lt_prog_compiler_wl='-Wl,'
 
8031
      # All OSF/1 code is PIC.
 
8032
      lt_prog_compiler_static='-non_shared'
 
8033
      ;;
 
8034
 
 
8035
    rdos*)
 
8036
      lt_prog_compiler_static='-non_shared'
 
8037
      ;;
 
8038
 
 
8039
    solaris*)
 
8040
      lt_prog_compiler_pic='-KPIC'
 
8041
      lt_prog_compiler_static='-Bstatic'
 
8042
      case $cc_basename in
 
8043
      f77* | f90* | f95*)
 
8044
        lt_prog_compiler_wl='-Qoption ld ';;
 
8045
      *)
 
8046
        lt_prog_compiler_wl='-Wl,';;
 
8047
      esac
 
8048
      ;;
 
8049
 
 
8050
    sunos4*)
 
8051
      lt_prog_compiler_wl='-Qoption ld '
 
8052
      lt_prog_compiler_pic='-PIC'
 
8053
      lt_prog_compiler_static='-Bstatic'
 
8054
      ;;
 
8055
 
 
8056
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8057
      lt_prog_compiler_wl='-Wl,'
 
8058
      lt_prog_compiler_pic='-KPIC'
 
8059
      lt_prog_compiler_static='-Bstatic'
 
8060
      ;;
 
8061
 
 
8062
    sysv4*MP*)
 
8063
      if test -d /usr/nec ;then
 
8064
        lt_prog_compiler_pic='-Kconform_pic'
 
8065
        lt_prog_compiler_static='-Bstatic'
 
8066
      fi
 
8067
      ;;
 
8068
 
 
8069
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8070
      lt_prog_compiler_wl='-Wl,'
 
8071
      lt_prog_compiler_pic='-KPIC'
 
8072
      lt_prog_compiler_static='-Bstatic'
 
8073
      ;;
 
8074
 
 
8075
    unicos*)
 
8076
      lt_prog_compiler_wl='-Wl,'
 
8077
      lt_prog_compiler_can_build_shared=no
 
8078
      ;;
 
8079
 
 
8080
    uts4*)
 
8081
      lt_prog_compiler_pic='-pic'
 
8082
      lt_prog_compiler_static='-Bstatic'
 
8083
      ;;
 
8084
 
 
8085
    *)
 
8086
      lt_prog_compiler_can_build_shared=no
 
8087
      ;;
 
8088
    esac
 
8089
  fi
 
8090
 
 
8091
case $host_os in
 
8092
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8093
  *djgpp*)
 
8094
    lt_prog_compiler_pic=
 
8095
    ;;
 
8096
  *)
 
8097
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8098
    ;;
 
8099
esac
 
8100
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8101
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
8102
 
 
8103
 
 
8104
 
 
8105
 
 
8106
 
 
8107
 
 
8108
#
 
8109
# Check to make sure the PIC flag actually works.
 
8110
#
 
8111
if test -n "$lt_prog_compiler_pic"; then
 
8112
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8113
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
8114
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8116
else
 
8117
  lt_cv_prog_compiler_pic_works=no
 
8118
   ac_outfile=conftest.$ac_objext
 
8119
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8120
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8121
   # Insert the option either (1) after the last *FLAGS variable, or
 
8122
   # (2) before a word containing "conftest.", or (3) at the end.
 
8123
   # Note that $ac_compile itself does not contain backslashes and begins
 
8124
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8125
   # The option is referenced via a variable to avoid confusing sed.
 
8126
   lt_compile=`echo "$ac_compile" | $SED \
 
8127
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8128
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8129
   -e 's:$: $lt_compiler_flag:'`
 
8130
   (eval echo "\"\$as_me:8130: $lt_compile\"" >&5)
 
8131
   (eval "$lt_compile" 2>conftest.err)
 
8132
   ac_status=$?
 
8133
   cat conftest.err >&5
 
8134
   echo "$as_me:8134: \$? = $ac_status" >&5
 
8135
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8136
     # The compiler can only warn and ignore the option if not recognized
 
8137
     # So say no if there are warnings other than the usual output.
 
8138
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8139
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8140
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8141
       lt_cv_prog_compiler_pic_works=yes
 
8142
     fi
 
8143
   fi
 
8144
   $RM conftest*
 
8145
 
 
8146
fi
 
8147
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8148
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
8149
 
 
8150
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8151
    case $lt_prog_compiler_pic in
 
8152
     "" | " "*) ;;
 
8153
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8154
     esac
 
8155
else
 
8156
    lt_prog_compiler_pic=
 
8157
     lt_prog_compiler_can_build_shared=no
 
8158
fi
 
8159
 
 
8160
fi
 
8161
 
 
8162
 
 
8163
 
 
8164
 
 
8165
 
 
8166
 
 
8167
#
 
8168
# Check to make sure the static flag actually works.
 
8169
#
 
8170
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8171
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8172
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
8173
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8175
else
 
8176
  lt_cv_prog_compiler_static_works=no
 
8177
   save_LDFLAGS="$LDFLAGS"
 
8178
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8179
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8180
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8181
     # The linker can only warn and ignore the option if not recognized
 
8182
     # So say no if there are warnings
 
8183
     if test -s conftest.err; then
 
8184
       # Append any errors to the config.log.
 
8185
       cat conftest.err 1>&5
 
8186
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8187
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8188
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8189
         lt_cv_prog_compiler_static_works=yes
 
8190
       fi
 
8191
     else
 
8192
       lt_cv_prog_compiler_static_works=yes
 
8193
     fi
 
8194
   fi
 
8195
   $RM -r conftest*
 
8196
   LDFLAGS="$save_LDFLAGS"
 
8197
 
 
8198
fi
 
8199
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8200
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
8201
 
 
8202
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8203
    :
 
8204
else
 
8205
    lt_prog_compiler_static=
 
8206
fi
 
8207
 
 
8208
 
 
8209
 
 
8210
 
 
8211
 
 
8212
 
 
8213
 
 
8214
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8215
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8216
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8218
else
 
8219
  lt_cv_prog_compiler_c_o=no
 
8220
   $RM -r conftest 2>/dev/null
 
8221
   mkdir conftest
 
8222
   cd conftest
 
8223
   mkdir out
 
8224
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8225
 
 
8226
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8227
   # Insert the option either (1) after the last *FLAGS variable, or
 
8228
   # (2) before a word containing "conftest.", or (3) at the end.
 
8229
   # Note that $ac_compile itself does not contain backslashes and begins
 
8230
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8231
   lt_compile=`echo "$ac_compile" | $SED \
 
8232
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8233
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8234
   -e 's:$: $lt_compiler_flag:'`
 
8235
   (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
 
8236
   (eval "$lt_compile" 2>out/conftest.err)
 
8237
   ac_status=$?
 
8238
   cat out/conftest.err >&5
 
8239
   echo "$as_me:8239: \$? = $ac_status" >&5
 
8240
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8241
   then
 
8242
     # The compiler can only warn and ignore the option if not recognized
 
8243
     # So say no if there are warnings
 
8244
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8245
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8246
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8247
       lt_cv_prog_compiler_c_o=yes
 
8248
     fi
 
8249
   fi
 
8250
   chmod u+w . 2>&5
 
8251
   $RM conftest*
 
8252
   # SGI C++ compiler will create directory out/ii_files/ for
 
8253
   # template instantiation
 
8254
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8255
   $RM out/* && rmdir out
 
8256
   cd ..
 
8257
   $RM -r conftest
 
8258
   $RM conftest*
 
8259
 
 
8260
fi
 
8261
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8262
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8263
 
 
8264
 
 
8265
 
 
8266
 
 
8267
 
 
8268
 
 
8269
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8270
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8271
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8273
else
 
8274
  lt_cv_prog_compiler_c_o=no
 
8275
   $RM -r conftest 2>/dev/null
 
8276
   mkdir conftest
 
8277
   cd conftest
 
8278
   mkdir out
 
8279
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8280
 
 
8281
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8282
   # Insert the option either (1) after the last *FLAGS variable, or
 
8283
   # (2) before a word containing "conftest.", or (3) at the end.
 
8284
   # Note that $ac_compile itself does not contain backslashes and begins
 
8285
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8286
   lt_compile=`echo "$ac_compile" | $SED \
 
8287
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8288
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8289
   -e 's:$: $lt_compiler_flag:'`
 
8290
   (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
 
8291
   (eval "$lt_compile" 2>out/conftest.err)
 
8292
   ac_status=$?
 
8293
   cat out/conftest.err >&5
 
8294
   echo "$as_me:8294: \$? = $ac_status" >&5
 
8295
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8296
   then
 
8297
     # The compiler can only warn and ignore the option if not recognized
 
8298
     # So say no if there are warnings
 
8299
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8300
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8301
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8302
       lt_cv_prog_compiler_c_o=yes
 
8303
     fi
 
8304
   fi
 
8305
   chmod u+w . 2>&5
 
8306
   $RM conftest*
 
8307
   # SGI C++ compiler will create directory out/ii_files/ for
 
8308
   # template instantiation
 
8309
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8310
   $RM out/* && rmdir out
 
8311
   cd ..
 
8312
   $RM -r conftest
 
8313
   $RM conftest*
 
8314
 
 
8315
fi
 
8316
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8317
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8318
 
 
8319
 
 
8320
 
 
8321
 
 
8322
hard_links="nottested"
 
8323
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8324
  # do not overwrite the value of need_locks provided by the user
 
8325
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8326
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8327
  hard_links=yes
 
8328
  $RM conftest*
 
8329
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8330
  touch conftest.a
 
8331
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8332
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8333
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8334
echo "${ECHO_T}$hard_links" >&6; }
 
8335
  if test "$hard_links" = no; then
 
8336
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8337
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8338
    need_locks=warn
 
8339
  fi
 
8340
else
 
8341
  need_locks=no
 
8342
fi
 
8343
 
 
8344
 
 
8345
 
 
8346
 
 
8347
 
 
8348
 
 
8349
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8350
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8351
 
 
8352
  runpath_var=
 
8353
  allow_undefined_flag=
 
8354
  always_export_symbols=no
 
8355
  archive_cmds=
 
8356
  archive_expsym_cmds=
 
8357
  compiler_needs_object=no
 
8358
  enable_shared_with_static_runtimes=no
 
8359
  export_dynamic_flag_spec=
 
8360
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8361
  hardcode_automatic=no
 
8362
  hardcode_direct=no
 
8363
  hardcode_direct_absolute=no
 
8364
  hardcode_libdir_flag_spec=
 
8365
  hardcode_libdir_flag_spec_ld=
 
8366
  hardcode_libdir_separator=
 
8367
  hardcode_minus_L=no
 
8368
  hardcode_shlibpath_var=unsupported
 
8369
  inherit_rpath=no
 
8370
  link_all_deplibs=unknown
 
8371
  module_cmds=
 
8372
  module_expsym_cmds=
 
8373
  old_archive_from_new_cmds=
 
8374
  old_archive_from_expsyms_cmds=
 
8375
  thread_safe_flag_spec=
 
8376
  whole_archive_flag_spec=
 
8377
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8378
  # included in the symbol list
 
8379
  include_expsyms=
 
8380
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8381
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8382
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8383
  # as well as any symbol that contains `d'.
 
8384
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8385
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8386
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8387
  # the symbol is explicitly referenced.  Since portable code cannot
 
8388
  # rely on this symbol name, it's probably fine to never include it in
 
8389
  # preloaded symbol tables.
 
8390
  # Exclude shared library initialization/finalization symbols.
 
8391
  extract_expsyms_cmds=
 
8392
 
 
8393
  case $host_os in
 
8394
  cygwin* | mingw* | pw32*)
 
8395
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8396
    # When not using gcc, we currently assume that we are using
 
8397
    # Microsoft Visual C++.
 
8398
    if test "$GCC" != yes; then
 
8399
      with_gnu_ld=no
 
8400
    fi
 
8401
    ;;
 
8402
  interix*)
 
8403
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8404
    with_gnu_ld=yes
 
8405
    ;;
 
8406
  openbsd*)
 
8407
    with_gnu_ld=no
 
8408
    ;;
 
8409
  esac
 
8410
 
 
8411
  ld_shlibs=yes
 
8412
  if test "$with_gnu_ld" = yes; then
 
8413
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8414
    wlarc='${wl}'
 
8415
 
 
8416
    # Set some defaults for GNU ld with shared library support. These
 
8417
    # are reset later if shared libraries are not supported. Putting them
 
8418
    # here allows them to be overridden if necessary.
 
8419
    runpath_var=LD_RUN_PATH
 
8420
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8421
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8422
    # ancient GNU ld didn't support --whole-archive et. al.
 
8423
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8424
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8425
    else
 
8426
      whole_archive_flag_spec=
 
8427
    fi
 
8428
    supports_anon_versioning=no
 
8429
    case `$LD -v 2>&1` in
 
8430
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8431
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8432
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8433
      *\ 2.11.*) ;; # other 2.11 versions
 
8434
      *) supports_anon_versioning=yes ;;
 
8435
    esac
 
8436
 
 
8437
    # See if GNU ld supports shared libraries.
 
8438
    case $host_os in
 
8439
    aix[3-9]*)
 
8440
      # On AIX/PPC, the GNU linker is very broken
 
8441
      if test "$host_cpu" != ia64; then
 
8442
        ld_shlibs=no
 
8443
        cat <<_LT_EOF 1>&2
 
8444
 
 
8445
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8446
*** to be unable to reliably create shared libraries on AIX.
 
8447
*** Therefore, libtool is disabling shared libraries support.  If you
 
8448
*** really care for shared libraries, you may want to modify your PATH
 
8449
*** so that a non-GNU linker is found, and then restart.
 
8450
 
 
8451
_LT_EOF
 
8452
      fi
 
8453
      ;;
 
8454
 
 
8455
    amigaos*)
 
8456
      case $host_cpu in
 
8457
      powerpc)
 
8458
            # see comment about AmigaOS4 .so support
 
8459
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8460
            archive_expsym_cmds=''
 
8461
        ;;
 
8462
      m68k)
 
8463
            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)'
 
8464
            hardcode_libdir_flag_spec='-L$libdir'
 
8465
            hardcode_minus_L=yes
 
8466
        ;;
 
8467
      esac
 
8468
      ;;
 
8469
 
 
8470
    beos*)
 
8471
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8472
        allow_undefined_flag=unsupported
 
8473
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8474
        # support --undefined.  This deserves some investigation.  FIXME
 
8475
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8476
      else
 
8477
        ld_shlibs=no
 
8478
      fi
 
8479
      ;;
 
8480
 
 
8481
    cygwin* | mingw* | pw32*)
 
8482
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8483
      # as there is no search path for DLLs.
 
8484
      hardcode_libdir_flag_spec='-L$libdir'
 
8485
      allow_undefined_flag=unsupported
 
8486
      always_export_symbols=no
 
8487
      enable_shared_with_static_runtimes=yes
 
8488
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8489
 
 
8490
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8491
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8492
        # If the export-symbols file already is a .def file (1st line
 
8493
        # is EXPORTS), use it as is; otherwise, prepend...
 
8494
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8495
          cp $export_symbols $output_objdir/$soname.def;
 
8496
        else
 
8497
          echo EXPORTS > $output_objdir/$soname.def;
 
8498
          cat $export_symbols >> $output_objdir/$soname.def;
 
8499
        fi~
 
8500
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8501
      else
 
8502
        ld_shlibs=no
 
8503
      fi
 
8504
      ;;
 
8505
 
 
8506
    interix[3-9]*)
 
8507
      hardcode_direct=no
 
8508
      hardcode_shlibpath_var=no
 
8509
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8510
      export_dynamic_flag_spec='${wl}-E'
 
8511
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8512
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8513
      # default) and relocated if they conflict, which is a slow very memory
 
8514
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8515
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8516
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8517
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8518
      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'
 
8519
      ;;
 
8520
 
 
8521
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8522
      tmp_diet=no
 
8523
      if test "$host_os" = linux-dietlibc; then
 
8524
        case $cc_basename in
 
8525
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8526
        esac
 
8527
      fi
 
8528
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8529
         && test "$tmp_diet" = no
 
8530
      then
 
8531
        tmp_addflag=
 
8532
        tmp_sharedflag='-shared'
 
8533
        case $cc_basename,$host_cpu in
 
8534
        pgcc*)                          # Portland Group C compiler
 
8535
          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'
 
8536
          tmp_addflag=' $pic_flag'
 
8537
          ;;
 
8538
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8539
          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'
 
8540
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8541
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8542
          tmp_addflag=' -i_dynamic' ;;
 
8543
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8544
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8545
        ifc* | ifort*)                  # Intel Fortran compiler
 
8546
          tmp_addflag=' -nofor_main' ;;
 
8547
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8548
          tmp_sharedflag='-qmkshrobj'
 
8549
          tmp_addflag= ;;
 
8550
        esac
 
8551
        case `$CC -V 2>&1 | sed 5q` in
 
8552
        *Sun\ C*)                       # Sun C 5.9
 
8553
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8554
          compiler_needs_object=yes
 
8555
          tmp_sharedflag='-G' ;;
 
8556
        *Sun\ F*)                       # Sun Fortran 8.3
 
8557
          tmp_sharedflag='-G' ;;
 
8558
        esac
 
8559
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8560
 
 
8561
        if test "x$supports_anon_versioning" = xyes; then
 
8562
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8563
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8564
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8565
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8566
        fi
 
8567
 
 
8568
        case $cc_basename in
 
8569
        xlf*)
 
8570
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8571
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8572
          hardcode_libdir_flag_spec=
 
8573
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8574
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8575
          if test "x$supports_anon_versioning" = xyes; then
 
8576
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8577
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8578
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8579
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8580
          fi
 
8581
          ;;
 
8582
        esac
 
8583
      else
 
8584
        ld_shlibs=no
 
8585
      fi
 
8586
      ;;
 
8587
 
 
8588
    netbsd* | netbsdelf*-gnu)
 
8589
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8590
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8591
        wlarc=
 
8592
      else
 
8593
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8594
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8595
      fi
 
8596
      ;;
 
8597
 
 
8598
    solaris*)
 
8599
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8600
        ld_shlibs=no
 
8601
        cat <<_LT_EOF 1>&2
 
8602
 
 
8603
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8604
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8605
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8606
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8607
*** your PATH or compiler configuration so that the native linker is
 
8608
*** used, and then restart.
 
8609
 
 
8610
_LT_EOF
 
8611
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8612
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8613
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8614
      else
 
8615
        ld_shlibs=no
 
8616
      fi
 
8617
      ;;
 
8618
 
 
8619
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8620
      case `$LD -v 2>&1` in
 
8621
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8622
        ld_shlibs=no
 
8623
        cat <<_LT_EOF 1>&2
 
8624
 
 
8625
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8626
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8627
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8628
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8629
*** your PATH or compiler configuration so that the native linker is
 
8630
*** used, and then restart.
 
8631
 
 
8632
_LT_EOF
 
8633
        ;;
 
8634
        *)
 
8635
          # For security reasons, it is highly recommended that you always
 
8636
          # use absolute paths for naming shared libraries, and exclude the
 
8637
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8638
          # requires that you compile everything twice, which is a pain.
 
8639
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8640
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8641
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8642
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8643
          else
 
8644
            ld_shlibs=no
 
8645
          fi
 
8646
        ;;
 
8647
      esac
 
8648
      ;;
 
8649
 
 
8650
    sunos4*)
 
8651
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8652
      wlarc=
 
8653
      hardcode_direct=yes
 
8654
      hardcode_shlibpath_var=no
 
8655
      ;;
 
8656
 
 
8657
    *)
 
8658
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8659
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8660
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8661
      else
 
8662
        ld_shlibs=no
 
8663
      fi
 
8664
      ;;
 
8665
    esac
 
8666
 
 
8667
    if test "$ld_shlibs" = no; then
 
8668
      runpath_var=
 
8669
      hardcode_libdir_flag_spec=
 
8670
      export_dynamic_flag_spec=
 
8671
      whole_archive_flag_spec=
 
8672
    fi
 
8673
  else
 
8674
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8675
    case $host_os in
 
8676
    aix3*)
 
8677
      allow_undefined_flag=unsupported
 
8678
      always_export_symbols=yes
 
8679
      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'
 
8680
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8681
      # are no directories specified by -L.
 
8682
      hardcode_minus_L=yes
 
8683
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8684
        # Neither direct hardcoding nor static linking is supported with a
 
8685
        # broken collect2.
 
8686
        hardcode_direct=unsupported
 
8687
      fi
 
8688
      ;;
 
8689
 
 
8690
    aix[4-9]*)
 
8691
      if test "$host_cpu" = ia64; then
 
8692
        # On IA64, the linker does run time linking by default, so we don't
 
8693
        # have to do anything special.
 
8694
        aix_use_runtimelinking=no
 
8695
        exp_sym_flag='-Bexport'
 
8696
        no_entry_flag=""
 
8697
      else
 
8698
        # If we're using GNU nm, then we don't want the "-C" option.
 
8699
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8700
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8701
          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'
 
8702
        else
 
8703
          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'
 
8704
        fi
 
8705
        aix_use_runtimelinking=no
 
8706
 
 
8707
        # Test if we are trying to use run time linking or normal
 
8708
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8709
        # need to do runtime linking.
 
8710
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8711
          for ld_flag in $LDFLAGS; do
 
8712
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8713
            aix_use_runtimelinking=yes
 
8714
            break
 
8715
          fi
 
8716
          done
 
8717
          ;;
 
8718
        esac
 
8719
 
 
8720
        exp_sym_flag='-bexport'
 
8721
        no_entry_flag='-bnoentry'
 
8722
      fi
 
8723
 
 
8724
      # When large executables or shared objects are built, AIX ld can
 
8725
      # have problems creating the table of contents.  If linking a library
 
8726
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8727
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8728
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8729
 
 
8730
      archive_cmds=''
 
8731
      hardcode_direct=yes
 
8732
      hardcode_direct_absolute=yes
 
8733
      hardcode_libdir_separator=':'
 
8734
      link_all_deplibs=yes
 
8735
      file_list_spec='${wl}-f,'
 
8736
 
 
8737
      if test "$GCC" = yes; then
 
8738
        case $host_os in aix4.[012]|aix4.[012].*)
 
8739
        # We only want to do this on AIX 4.2 and lower, the check
 
8740
        # below for broken collect2 doesn't work under 4.3+
 
8741
          collect2name=`${CC} -print-prog-name=collect2`
 
8742
          if test -f "$collect2name" &&
 
8743
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8744
          then
 
8745
          # We have reworked collect2
 
8746
          :
 
8747
          else
 
8748
          # We have old collect2
 
8749
          hardcode_direct=unsupported
 
8750
          # It fails to find uninstalled libraries when the uninstalled
 
8751
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8752
          # to unsupported forces relinking
 
8753
          hardcode_minus_L=yes
 
8754
          hardcode_libdir_flag_spec='-L$libdir'
 
8755
          hardcode_libdir_separator=
 
8756
          fi
 
8757
          ;;
 
8758
        esac
 
8759
        shared_flag='-shared'
 
8760
        if test "$aix_use_runtimelinking" = yes; then
 
8761
          shared_flag="$shared_flag "'${wl}-G'
 
8762
        fi
 
8763
        link_all_deplibs=no
 
8764
      else
 
8765
        # not using gcc
 
8766
        if test "$host_cpu" = ia64; then
 
8767
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8768
        # chokes on -Wl,-G. The following line is correct:
 
8769
          shared_flag='-G'
 
8770
        else
 
8771
          if test "$aix_use_runtimelinking" = yes; then
 
8772
            shared_flag='${wl}-G'
 
8773
          else
 
8774
            shared_flag='${wl}-bM:SRE'
 
8775
          fi
 
8776
        fi
 
8777
      fi
 
8778
 
 
8779
      # It seems that -bexpall does not export symbols beginning with
 
8780
      # underscore (_), so it is better to generate a list of symbols to export.
 
8781
      always_export_symbols=yes
 
8782
      if test "$aix_use_runtimelinking" = yes; then
 
8783
        # Warning - without using the other runtime loading flags (-brtl),
 
8784
        # -berok will link without error, but may produce a broken library.
 
8785
        allow_undefined_flag='-berok'
 
8786
        # Determine the default libpath from the value encoded in an
 
8787
        # empty executable.
 
8788
        cat >conftest.$ac_ext <<_ACEOF
 
8789
/* confdefs.h.  */
 
8790
_ACEOF
 
8791
cat confdefs.h >>conftest.$ac_ext
 
8792
cat >>conftest.$ac_ext <<_ACEOF
 
8793
/* end confdefs.h.  */
 
8794
 
 
8795
int
 
8796
main ()
 
8797
{
 
8798
 
 
8799
  ;
 
8800
  return 0;
 
8801
}
 
8802
_ACEOF
 
8803
rm -f conftest.$ac_objext conftest$ac_exeext
 
8804
if { (ac_try="$ac_link"
 
8805
case "(($ac_try" in
 
8806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8807
  *) ac_try_echo=$ac_try;;
 
8808
esac
 
8809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8810
  (eval "$ac_link") 2>conftest.er1
 
8811
  ac_status=$?
 
8812
  grep -v '^ *+' conftest.er1 >conftest.err
 
8813
  rm -f conftest.er1
 
8814
  cat conftest.err >&5
 
8815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8816
  (exit $ac_status); } && {
 
8817
         test -z "$ac_c_werror_flag" ||
 
8818
         test ! -s conftest.err
 
8819
       } && test -s conftest$ac_exeext &&
 
8820
       $as_test_x conftest$ac_exeext; then
 
8821
 
 
8822
lt_aix_libpath_sed='
 
8823
    /Import File Strings/,/^$/ {
 
8824
        /^0/ {
 
8825
            s/^0  *\(.*\)$/\1/
 
8826
            p
 
8827
        }
 
8828
    }'
 
8829
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8830
# Check for a 64-bit object if we didn't find anything.
 
8831
if test -z "$aix_libpath"; then
 
8832
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8833
fi
 
8834
else
 
8835
  echo "$as_me: failed program was:" >&5
 
8836
sed 's/^/| /' conftest.$ac_ext >&5
 
8837
 
 
8838
 
 
8839
fi
 
8840
 
 
8841
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8842
      conftest$ac_exeext conftest.$ac_ext
 
8843
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8844
 
 
8845
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8846
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8847
      else
 
8848
        if test "$host_cpu" = ia64; then
 
8849
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8850
          allow_undefined_flag="-z nodefs"
 
8851
          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"
 
8852
        else
 
8853
         # Determine the default libpath from the value encoded in an
 
8854
         # empty executable.
 
8855
         cat >conftest.$ac_ext <<_ACEOF
 
8856
/* confdefs.h.  */
 
8857
_ACEOF
 
8858
cat confdefs.h >>conftest.$ac_ext
 
8859
cat >>conftest.$ac_ext <<_ACEOF
 
8860
/* end confdefs.h.  */
 
8861
 
 
8862
int
 
8863
main ()
 
8864
{
 
8865
 
 
8866
  ;
 
8867
  return 0;
 
8868
}
 
8869
_ACEOF
 
8870
rm -f conftest.$ac_objext conftest$ac_exeext
 
8871
if { (ac_try="$ac_link"
 
8872
case "(($ac_try" in
 
8873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8874
  *) ac_try_echo=$ac_try;;
 
8875
esac
 
8876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8877
  (eval "$ac_link") 2>conftest.er1
 
8878
  ac_status=$?
 
8879
  grep -v '^ *+' conftest.er1 >conftest.err
 
8880
  rm -f conftest.er1
 
8881
  cat conftest.err >&5
 
8882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8883
  (exit $ac_status); } && {
 
8884
         test -z "$ac_c_werror_flag" ||
 
8885
         test ! -s conftest.err
 
8886
       } && test -s conftest$ac_exeext &&
 
8887
       $as_test_x conftest$ac_exeext; then
 
8888
 
 
8889
lt_aix_libpath_sed='
 
8890
    /Import File Strings/,/^$/ {
 
8891
        /^0/ {
 
8892
            s/^0  *\(.*\)$/\1/
 
8893
            p
 
8894
        }
 
8895
    }'
 
8896
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8897
# Check for a 64-bit object if we didn't find anything.
 
8898
if test -z "$aix_libpath"; then
 
8899
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8900
fi
 
8901
else
 
8902
  echo "$as_me: failed program was:" >&5
 
8903
sed 's/^/| /' conftest.$ac_ext >&5
 
8904
 
 
8905
 
 
8906
fi
 
8907
 
 
8908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8909
      conftest$ac_exeext conftest.$ac_ext
 
8910
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8911
 
 
8912
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8913
          # Warning - without using the other run time loading flags,
 
8914
          # -berok will link without error, but may produce a broken library.
 
8915
          no_undefined_flag=' ${wl}-bernotok'
 
8916
          allow_undefined_flag=' ${wl}-berok'
 
8917
          # Exported symbols can be pulled into shared objects from archives
 
8918
          whole_archive_flag_spec='$convenience'
 
8919
          archive_cmds_need_lc=yes
 
8920
          # This is similar to how AIX traditionally builds its shared libraries.
 
8921
          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'
 
8922
        fi
 
8923
      fi
 
8924
      ;;
 
8925
 
 
8926
    amigaos*)
 
8927
      case $host_cpu in
 
8928
      powerpc)
 
8929
            # see comment about AmigaOS4 .so support
 
8930
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8931
            archive_expsym_cmds=''
 
8932
        ;;
 
8933
      m68k)
 
8934
            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)'
 
8935
            hardcode_libdir_flag_spec='-L$libdir'
 
8936
            hardcode_minus_L=yes
 
8937
        ;;
 
8938
      esac
 
8939
      ;;
 
8940
 
 
8941
    bsdi[45]*)
 
8942
      export_dynamic_flag_spec=-rdynamic
 
8943
      ;;
 
8944
 
 
8945
    cygwin* | mingw* | pw32*)
 
8946
      # When not using gcc, we currently assume that we are using
 
8947
      # Microsoft Visual C++.
 
8948
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8949
      # no search path for DLLs.
 
8950
      hardcode_libdir_flag_spec=' '
 
8951
      allow_undefined_flag=unsupported
 
8952
      # Tell ltmain to make .lib files, not .a files.
 
8953
      libext=lib
 
8954
      # Tell ltmain to make .dll files, not .so files.
 
8955
      shrext_cmds=".dll"
 
8956
      # FIXME: Setting linknames here is a bad hack.
 
8957
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8958
      # The linker will automatically build a .lib file if we build a DLL.
 
8959
      old_archive_from_new_cmds='true'
 
8960
      # FIXME: Should let the user specify the lib program.
 
8961
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8962
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8963
      enable_shared_with_static_runtimes=yes
 
8964
      ;;
 
8965
 
 
8966
    darwin* | rhapsody*)
 
8967
 
 
8968
 
 
8969
  archive_cmds_need_lc=no
 
8970
  hardcode_direct=no
 
8971
  hardcode_automatic=yes
 
8972
  hardcode_shlibpath_var=unsupported
 
8973
  whole_archive_flag_spec=''
 
8974
  link_all_deplibs=yes
 
8975
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8976
  if test "$GCC" = "yes"; then
 
8977
    output_verbose_link_cmd=echo
 
8978
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8979
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8980
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8981
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8982
 
 
8983
  else
 
8984
  ld_shlibs=no
 
8985
  fi
 
8986
 
 
8987
      ;;
 
8988
 
 
8989
    dgux*)
 
8990
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8991
      hardcode_libdir_flag_spec='-L$libdir'
 
8992
      hardcode_shlibpath_var=no
 
8993
      ;;
 
8994
 
 
8995
    freebsd1*)
 
8996
      ld_shlibs=no
 
8997
      ;;
 
8998
 
 
8999
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9000
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9001
    # does not break anything, and helps significantly (at the cost of a little
 
9002
    # extra space).
 
9003
    freebsd2.2*)
 
9004
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9005
      hardcode_libdir_flag_spec='-R$libdir'
 
9006
      hardcode_direct=yes
 
9007
      hardcode_shlibpath_var=no
 
9008
      ;;
 
9009
 
 
9010
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9011
    freebsd2*)
 
9012
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9013
      hardcode_direct=yes
 
9014
      hardcode_minus_L=yes
 
9015
      hardcode_shlibpath_var=no
 
9016
      ;;
 
9017
 
 
9018
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9019
    freebsd* | dragonfly*)
 
9020
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9021
      hardcode_libdir_flag_spec='-R$libdir'
 
9022
      hardcode_direct=yes
 
9023
      hardcode_shlibpath_var=no
 
9024
      ;;
 
9025
 
 
9026
    hpux9*)
 
9027
      if test "$GCC" = yes; then
 
9028
        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'
 
9029
      else
 
9030
        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'
 
9031
      fi
 
9032
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9033
      hardcode_libdir_separator=:
 
9034
      hardcode_direct=yes
 
9035
 
 
9036
      # hardcode_minus_L: Not really in the search PATH,
 
9037
      # but as the default location of the library.
 
9038
      hardcode_minus_L=yes
 
9039
      export_dynamic_flag_spec='${wl}-E'
 
9040
      ;;
 
9041
 
 
9042
    hpux10*)
 
9043
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9044
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9045
      else
 
9046
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9047
      fi
 
9048
      if test "$with_gnu_ld" = no; then
 
9049
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9050
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9051
        hardcode_libdir_separator=:
 
9052
        hardcode_direct=yes
 
9053
        hardcode_direct_absolute=yes
 
9054
        export_dynamic_flag_spec='${wl}-E'
 
9055
        # hardcode_minus_L: Not really in the search PATH,
 
9056
        # but as the default location of the library.
 
9057
        hardcode_minus_L=yes
 
9058
      fi
 
9059
      ;;
 
9060
 
 
9061
    hpux11*)
 
9062
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9063
        case $host_cpu in
 
9064
        hppa*64*)
 
9065
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9066
          ;;
 
9067
        ia64*)
 
9068
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9069
          ;;
 
9070
        *)
 
9071
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9072
          ;;
 
9073
        esac
 
9074
      else
 
9075
        case $host_cpu in
 
9076
        hppa*64*)
 
9077
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9078
          ;;
 
9079
        ia64*)
 
9080
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9081
          ;;
 
9082
        *)
 
9083
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9084
          ;;
 
9085
        esac
 
9086
      fi
 
9087
      if test "$with_gnu_ld" = no; then
 
9088
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9089
        hardcode_libdir_separator=:
 
9090
 
 
9091
        case $host_cpu in
 
9092
        hppa*64*|ia64*)
 
9093
          hardcode_direct=no
 
9094
          hardcode_shlibpath_var=no
 
9095
          ;;
 
9096
        *)
 
9097
          hardcode_direct=yes
 
9098
          hardcode_direct_absolute=yes
 
9099
          export_dynamic_flag_spec='${wl}-E'
 
9100
 
 
9101
          # hardcode_minus_L: Not really in the search PATH,
 
9102
          # but as the default location of the library.
 
9103
          hardcode_minus_L=yes
 
9104
          ;;
 
9105
        esac
 
9106
      fi
 
9107
      ;;
 
9108
 
 
9109
    irix5* | irix6* | nonstopux*)
 
9110
      if test "$GCC" = yes; then
 
9111
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9112
        # Try to use the -exported_symbol ld option, if it does not
 
9113
        # work, assume that -exports_file does not work either and
 
9114
        # implicitly export all symbols.
 
9115
        save_LDFLAGS="$LDFLAGS"
 
9116
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9117
        cat >conftest.$ac_ext <<_ACEOF
 
9118
int foo(void) {}
 
9119
_ACEOF
 
9120
rm -f conftest.$ac_objext conftest$ac_exeext
 
9121
if { (ac_try="$ac_link"
 
9122
case "(($ac_try" in
 
9123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9124
  *) ac_try_echo=$ac_try;;
 
9125
esac
 
9126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9127
  (eval "$ac_link") 2>conftest.er1
 
9128
  ac_status=$?
 
9129
  grep -v '^ *+' conftest.er1 >conftest.err
 
9130
  rm -f conftest.er1
 
9131
  cat conftest.err >&5
 
9132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9133
  (exit $ac_status); } && {
 
9134
         test -z "$ac_c_werror_flag" ||
 
9135
         test ! -s conftest.err
 
9136
       } && test -s conftest$ac_exeext &&
 
9137
       $as_test_x conftest$ac_exeext; then
 
9138
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9139
 
 
9140
else
 
9141
  echo "$as_me: failed program was:" >&5
 
9142
sed 's/^/| /' conftest.$ac_ext >&5
 
9143
 
 
9144
 
 
9145
fi
 
9146
 
 
9147
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9148
      conftest$ac_exeext conftest.$ac_ext
 
9149
        LDFLAGS="$save_LDFLAGS"
 
9150
      else
 
9151
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9152
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9153
      fi
 
9154
      archive_cmds_need_lc='no'
 
9155
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9156
      hardcode_libdir_separator=:
 
9157
      inherit_rpath=yes
 
9158
      link_all_deplibs=yes
 
9159
      ;;
 
9160
 
 
9161
    netbsd* | netbsdelf*-gnu)
 
9162
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9163
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9164
      else
 
9165
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9166
      fi
 
9167
      hardcode_libdir_flag_spec='-R$libdir'
 
9168
      hardcode_direct=yes
 
9169
      hardcode_shlibpath_var=no
 
9170
      ;;
 
9171
 
 
9172
    newsos6)
 
9173
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9174
      hardcode_direct=yes
 
9175
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9176
      hardcode_libdir_separator=:
 
9177
      hardcode_shlibpath_var=no
 
9178
      ;;
 
9179
 
 
9180
    *nto* | *qnx*)
 
9181
      ;;
 
9182
 
 
9183
    openbsd*)
 
9184
      if test -f /usr/libexec/ld.so; then
 
9185
        hardcode_direct=yes
 
9186
        hardcode_shlibpath_var=no
 
9187
        hardcode_direct_absolute=yes
 
9188
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9189
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9190
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9191
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9192
          export_dynamic_flag_spec='${wl}-E'
 
9193
        else
 
9194
          case $host_os in
 
9195
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9196
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9197
             hardcode_libdir_flag_spec='-R$libdir'
 
9198
             ;;
 
9199
           *)
 
9200
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9201
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9202
             ;;
 
9203
          esac
 
9204
        fi
 
9205
      else
 
9206
        ld_shlibs=no
 
9207
      fi
 
9208
      ;;
 
9209
 
 
9210
    os2*)
 
9211
      hardcode_libdir_flag_spec='-L$libdir'
 
9212
      hardcode_minus_L=yes
 
9213
      allow_undefined_flag=unsupported
 
9214
      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'
 
9215
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9216
      ;;
 
9217
 
 
9218
    osf3*)
 
9219
      if test "$GCC" = yes; then
 
9220
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9221
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9222
      else
 
9223
        allow_undefined_flag=' -expect_unresolved \*'
 
9224
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9225
      fi
 
9226
      archive_cmds_need_lc='no'
 
9227
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9228
      hardcode_libdir_separator=:
 
9229
      ;;
 
9230
 
 
9231
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9232
      if test "$GCC" = yes; then
 
9233
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9234
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9235
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9236
      else
 
9237
        allow_undefined_flag=' -expect_unresolved \*'
 
9238
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9239
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
9240
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9241
 
 
9242
        # Both c and cxx compiler support -rpath directly
 
9243
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9244
      fi
 
9245
      archive_cmds_need_lc='no'
 
9246
      hardcode_libdir_separator=:
 
9247
      ;;
 
9248
 
 
9249
    solaris*)
 
9250
      no_undefined_flag=' -z defs'
 
9251
      if test "$GCC" = yes; then
 
9252
        wlarc='${wl}'
 
9253
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9254
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9255
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9256
      else
 
9257
        case `$CC -V 2>&1` in
 
9258
        *"Compilers 5.0"*)
 
9259
          wlarc=''
 
9260
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9261
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9262
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9263
          ;;
 
9264
        *)
 
9265
          wlarc='${wl}'
 
9266
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9267
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9268
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9269
          ;;
 
9270
        esac
 
9271
      fi
 
9272
      hardcode_libdir_flag_spec='-R$libdir'
 
9273
      hardcode_shlibpath_var=no
 
9274
      case $host_os in
 
9275
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9276
      *)
 
9277
        # The compiler driver will combine and reorder linker options,
 
9278
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9279
        # but is careful enough not to reorder.
 
9280
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9281
        if test "$GCC" = yes; then
 
9282
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9283
        else
 
9284
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9285
        fi
 
9286
        ;;
 
9287
      esac
 
9288
      link_all_deplibs=yes
 
9289
      ;;
 
9290
 
 
9291
    sunos4*)
 
9292
      if test "x$host_vendor" = xsequent; then
 
9293
        # Use $CC to link under sequent, because it throws in some extra .o
 
9294
        # files that make .init and .fini sections work.
 
9295
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9296
      else
 
9297
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9298
      fi
 
9299
      hardcode_libdir_flag_spec='-L$libdir'
 
9300
      hardcode_direct=yes
 
9301
      hardcode_minus_L=yes
 
9302
      hardcode_shlibpath_var=no
 
9303
      ;;
 
9304
 
 
9305
    sysv4)
 
9306
      case $host_vendor in
 
9307
        sni)
 
9308
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9309
          hardcode_direct=yes # is this really true???
 
9310
        ;;
 
9311
        siemens)
 
9312
          ## LD is ld it makes a PLAMLIB
 
9313
          ## CC just makes a GrossModule.
 
9314
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9315
          reload_cmds='$CC -r -o $output$reload_objs'
 
9316
          hardcode_direct=no
 
9317
        ;;
 
9318
        motorola)
 
9319
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9320
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9321
        ;;
 
9322
      esac
 
9323
      runpath_var='LD_RUN_PATH'
 
9324
      hardcode_shlibpath_var=no
 
9325
      ;;
 
9326
 
 
9327
    sysv4.3*)
 
9328
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9329
      hardcode_shlibpath_var=no
 
9330
      export_dynamic_flag_spec='-Bexport'
 
9331
      ;;
 
9332
 
 
9333
    sysv4*MP*)
 
9334
      if test -d /usr/nec; then
 
9335
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9336
        hardcode_shlibpath_var=no
 
9337
        runpath_var=LD_RUN_PATH
 
9338
        hardcode_runpath_var=yes
 
9339
        ld_shlibs=yes
 
9340
      fi
 
9341
      ;;
 
9342
 
 
9343
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9344
      no_undefined_flag='${wl}-z,text'
 
9345
      archive_cmds_need_lc=no
 
9346
      hardcode_shlibpath_var=no
 
9347
      runpath_var='LD_RUN_PATH'
 
9348
 
 
9349
      if test "$GCC" = yes; then
 
9350
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9351
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9352
      else
 
9353
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9354
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9355
      fi
 
9356
      ;;
 
9357
 
 
9358
    sysv5* | sco3.2v5* | sco5v6*)
 
9359
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9360
      # link with -lc, and that would cause any symbols used from libc to
 
9361
      # always be unresolved, which means just about no library would
 
9362
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9363
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9364
      # as -z defs.
 
9365
      no_undefined_flag='${wl}-z,text'
 
9366
      allow_undefined_flag='${wl}-z,nodefs'
 
9367
      archive_cmds_need_lc=no
 
9368
      hardcode_shlibpath_var=no
 
9369
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9370
      hardcode_libdir_separator=':'
 
9371
      link_all_deplibs=yes
 
9372
      export_dynamic_flag_spec='${wl}-Bexport'
 
9373
      runpath_var='LD_RUN_PATH'
 
9374
 
 
9375
      if test "$GCC" = yes; then
 
9376
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9377
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9378
      else
 
9379
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9380
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9381
      fi
 
9382
      ;;
 
9383
 
 
9384
    uts4*)
 
9385
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9386
      hardcode_libdir_flag_spec='-L$libdir'
 
9387
      hardcode_shlibpath_var=no
 
9388
      ;;
 
9389
 
 
9390
    *)
 
9391
      ld_shlibs=no
 
9392
      ;;
 
9393
    esac
 
9394
 
 
9395
    if test x$host_vendor = xsni; then
 
9396
      case $host in
 
9397
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9398
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9399
        ;;
 
9400
      esac
 
9401
    fi
 
9402
  fi
 
9403
 
 
9404
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9405
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9406
test "$ld_shlibs" = no && can_build_shared=no
 
9407
 
 
9408
with_gnu_ld=$with_gnu_ld
 
9409
 
 
9410
 
 
9411
 
 
9412
 
 
9413
 
 
9414
 
 
9415
 
 
9416
 
 
9417
 
 
9418
 
 
9419
 
 
9420
 
 
9421
 
 
9422
 
 
9423
 
 
9424
#
 
9425
# Do we need to explicitly link libc?
 
9426
#
 
9427
case "x$archive_cmds_need_lc" in
 
9428
x|xyes)
 
9429
  # Assume -lc should be added
 
9430
  archive_cmds_need_lc=yes
 
9431
 
 
9432
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9433
    case $archive_cmds in
 
9434
    *'~'*)
 
9435
      # FIXME: we may have to deal with multi-command sequences.
 
9436
      ;;
 
9437
    '$CC '*)
 
9438
      # Test whether the compiler implicitly links with -lc since on some
 
9439
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9440
      # to ld, don't add -lc before -lgcc.
 
9441
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9442
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9443
      $RM conftest*
 
9444
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9445
 
 
9446
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9447
  (eval $ac_compile) 2>&5
 
9448
  ac_status=$?
 
9449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9450
  (exit $ac_status); } 2>conftest.err; then
 
9451
        soname=conftest
 
9452
        lib=conftest
 
9453
        libobjs=conftest.$ac_objext
 
9454
        deplibs=
 
9455
        wl=$lt_prog_compiler_wl
 
9456
        pic_flag=$lt_prog_compiler_pic
 
9457
        compiler_flags=-v
 
9458
        linker_flags=-v
 
9459
        verstring=
 
9460
        output_objdir=.
 
9461
        libname=conftest
 
9462
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9463
        allow_undefined_flag=
 
9464
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9465
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9466
  ac_status=$?
 
9467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9468
  (exit $ac_status); }
 
9469
        then
 
9470
          archive_cmds_need_lc=no
 
9471
        else
 
9472
          archive_cmds_need_lc=yes
 
9473
        fi
 
9474
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9475
      else
 
9476
        cat conftest.err 1>&5
 
9477
      fi
 
9478
      $RM conftest*
 
9479
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9480
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9481
      ;;
 
9482
    esac
 
9483
  fi
 
9484
  ;;
 
9485
esac
 
9486
 
 
9487
 
 
9488
 
 
9489
 
 
9490
 
 
9491
 
 
9492
 
 
9493
 
 
9494
 
 
9495
 
 
9496
 
 
9497
 
 
9498
 
 
9499
 
 
9500
 
 
9501
 
 
9502
 
 
9503
 
 
9504
 
 
9505
 
 
9506
 
 
9507
 
 
9508
 
 
9509
 
 
9510
 
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
 
 
9521
 
 
9522
 
 
9523
 
 
9524
 
 
9525
 
 
9526
 
 
9527
 
 
9528
 
 
9529
 
 
9530
 
 
9531
 
 
9532
 
 
9533
 
 
9534
 
 
9535
 
 
9536
 
 
9537
 
 
9538
 
 
9539
 
 
9540
 
 
9541
 
 
9542
 
 
9543
 
 
9544
 
 
9545
 
 
9546
 
 
9547
 
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
 
 
9553
 
 
9554
 
 
9555
 
 
9556
 
 
9557
 
 
9558
 
 
9559
 
 
9560
 
 
9561
 
 
9562
 
 
9563
 
 
9564
 
 
9565
 
 
9566
 
 
9567
 
 
9568
 
 
9569
 
 
9570
 
 
9571
 
 
9572
 
 
9573
 
 
9574
 
 
9575
 
 
9576
 
 
9577
 
 
9578
 
 
9579
 
 
9580
 
 
9581
 
 
9582
 
 
9583
 
 
9584
 
 
9585
 
 
9586
 
 
9587
 
 
9588
 
 
9589
 
 
9590
 
 
9591
 
 
9592
 
 
9593
 
 
9594
 
 
9595
 
 
9596
 
 
9597
 
 
9598
 
 
9599
 
 
9600
 
 
9601
 
 
9602
 
 
9603
 
 
9604
 
 
9605
 
 
9606
 
 
9607
 
 
9608
 
 
9609
 
 
9610
 
 
9611
 
 
9612
 
 
9613
 
 
9614
 
 
9615
 
 
9616
 
 
9617
 
 
9618
 
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
 
 
9624
 
 
9625
 
 
9626
 
 
9627
 
 
9628
 
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9644
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9645
 
 
9646
if test "$GCC" = yes; then
 
9647
  case $host_os in
 
9648
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9649
    *) lt_awk_arg="/^libraries:/" ;;
 
9650
  esac
 
9651
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9652
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9653
    # if the path contains ";" then we assume it to be the separator
 
9654
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9655
    # assumed that no part of a normal pathname contains ";" but that should
 
9656
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9657
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9658
  else
 
9659
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9660
  fi
 
9661
  # Ok, now we have the path, separated by spaces, we can step through it
 
9662
  # and add multilib dir if necessary.
 
9663
  lt_tmp_lt_search_path_spec=
 
9664
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9665
  for lt_sys_path in $lt_search_path_spec; do
 
9666
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9667
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9668
    else
 
9669
      test -d "$lt_sys_path" && \
 
9670
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9671
    fi
 
9672
  done
 
9673
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9674
BEGIN {RS=" "; FS="/|\n";} {
 
9675
  lt_foo="";
 
9676
  lt_count=0;
 
9677
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9678
    if ($lt_i != "" && $lt_i != ".") {
 
9679
      if ($lt_i == "..") {
 
9680
        lt_count++;
 
9681
      } else {
 
9682
        if (lt_count == 0) {
 
9683
          lt_foo="/" $lt_i lt_foo;
 
9684
        } else {
 
9685
          lt_count--;
 
9686
        }
 
9687
      }
 
9688
    }
 
9689
  }
 
9690
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9691
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9692
}'`
 
9693
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9694
else
 
9695
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9696
fi
 
9697
library_names_spec=
 
9698
libname_spec='lib$name'
 
9699
soname_spec=
 
9700
shrext_cmds=".so"
 
9701
postinstall_cmds=
 
9702
postuninstall_cmds=
 
9703
finish_cmds=
 
9704
finish_eval=
 
9705
shlibpath_var=
 
9706
shlibpath_overrides_runpath=unknown
 
9707
version_type=none
 
9708
dynamic_linker="$host_os ld.so"
 
9709
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9710
need_lib_prefix=unknown
 
9711
hardcode_into_libs=no
 
9712
 
 
9713
# when you set need_version to no, make sure it does not cause -set_version
 
9714
# flags to be left without arguments
 
9715
need_version=unknown
 
9716
 
 
9717
case $host_os in
 
9718
aix3*)
 
9719
  version_type=linux
 
9720
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9721
  shlibpath_var=LIBPATH
 
9722
 
 
9723
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9724
  soname_spec='${libname}${release}${shared_ext}$major'
 
9725
  ;;
 
9726
 
 
9727
aix[4-9]*)
 
9728
  version_type=linux
 
9729
  need_lib_prefix=no
 
9730
  need_version=no
 
9731
  hardcode_into_libs=yes
 
9732
  if test "$host_cpu" = ia64; then
 
9733
    # AIX 5 supports IA64
 
9734
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9735
    shlibpath_var=LD_LIBRARY_PATH
 
9736
  else
 
9737
    # With GCC up to 2.95.x, collect2 would create an import file
 
9738
    # for dependence libraries.  The import file would start with
 
9739
    # the line `#! .'.  This would cause the generated library to
 
9740
    # depend on `.', always an invalid library.  This was fixed in
 
9741
    # development snapshots of GCC prior to 3.0.
 
9742
    case $host_os in
 
9743
      aix4 | aix4.[01] | aix4.[01].*)
 
9744
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9745
           echo ' yes '
 
9746
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9747
        :
 
9748
      else
 
9749
        can_build_shared=no
 
9750
      fi
 
9751
      ;;
 
9752
    esac
 
9753
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9754
    # soname into executable. Probably we can add versioning support to
 
9755
    # collect2, so additional links can be useful in future.
 
9756
    if test "$aix_use_runtimelinking" = yes; then
 
9757
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9758
      # instead of lib<name>.a to let people know that these are not
 
9759
      # typical AIX shared libraries.
 
9760
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9761
    else
 
9762
      # We preserve .a as extension for shared libraries through AIX4.2
 
9763
      # and later when we are not doing run time linking.
 
9764
      library_names_spec='${libname}${release}.a $libname.a'
 
9765
      soname_spec='${libname}${release}${shared_ext}$major'
 
9766
    fi
 
9767
    shlibpath_var=LIBPATH
 
9768
  fi
 
9769
  ;;
 
9770
 
 
9771
amigaos*)
 
9772
  case $host_cpu in
 
9773
  powerpc)
 
9774
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9775
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9776
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9777
    ;;
 
9778
  m68k)
 
9779
    library_names_spec='$libname.ixlibrary $libname.a'
 
9780
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9781
    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'
 
9782
    ;;
 
9783
  esac
 
9784
  ;;
 
9785
 
 
9786
beos*)
 
9787
  library_names_spec='${libname}${shared_ext}'
 
9788
  dynamic_linker="$host_os ld.so"
 
9789
  shlibpath_var=LIBRARY_PATH
 
9790
  ;;
 
9791
 
 
9792
bsdi[45]*)
 
9793
  version_type=linux
 
9794
  need_version=no
 
9795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9796
  soname_spec='${libname}${release}${shared_ext}$major'
 
9797
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9798
  shlibpath_var=LD_LIBRARY_PATH
 
9799
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9800
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9801
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9802
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9803
  # libtool to hard-code these into programs
 
9804
  ;;
 
9805
 
 
9806
cygwin* | mingw* | pw32*)
 
9807
  version_type=windows
 
9808
  shrext_cmds=".dll"
 
9809
  need_version=no
 
9810
  need_lib_prefix=no
 
9811
 
 
9812
  case $GCC,$host_os in
 
9813
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9814
    library_names_spec='$libname.dll.a'
 
9815
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9816
    postinstall_cmds='base_file=`basename \${file}`~
 
9817
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9818
      dldir=$destdir/`dirname \$dlpath`~
 
9819
      test -d \$dldir || mkdir -p \$dldir~
 
9820
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9821
      chmod a+x \$dldir/$dlname~
 
9822
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9823
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9824
      fi'
 
9825
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9826
      dlpath=$dir/\$dldll~
 
9827
       $RM \$dlpath'
 
9828
    shlibpath_overrides_runpath=yes
 
9829
 
 
9830
    case $host_os in
 
9831
    cygwin*)
 
9832
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9833
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9834
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9835
      ;;
 
9836
    mingw*)
 
9837
      # MinGW DLLs use traditional 'lib' prefix
 
9838
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9839
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9840
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9841
        # It is most probably a Windows format PATH printed by
 
9842
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9843
        # path with ; separators, and with drive letters. We can handle the
 
9844
        # drive letters (cygwin fileutils understands them), so leave them,
 
9845
        # especially as we might pass files found there to a mingw objdump,
 
9846
        # which wouldn't understand a cygwinified path. Ahh.
 
9847
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9848
      else
 
9849
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9850
      fi
 
9851
      ;;
 
9852
    pw32*)
 
9853
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9854
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9855
      ;;
 
9856
    esac
 
9857
    ;;
 
9858
 
 
9859
  *)
 
9860
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9861
    ;;
 
9862
  esac
 
9863
  dynamic_linker='Win32 ld.exe'
 
9864
  # FIXME: first we should search . and the directory the executable is in
 
9865
  shlibpath_var=PATH
 
9866
  ;;
 
9867
 
 
9868
darwin* | rhapsody*)
 
9869
  dynamic_linker="$host_os dyld"
 
9870
  version_type=darwin
 
9871
  need_lib_prefix=no
 
9872
  need_version=no
 
9873
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9874
  soname_spec='${libname}${release}${major}$shared_ext'
 
9875
  shlibpath_overrides_runpath=yes
 
9876
  shlibpath_var=DYLD_LIBRARY_PATH
 
9877
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9878
 
 
9879
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9880
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9881
  ;;
 
9882
 
 
9883
dgux*)
 
9884
  version_type=linux
 
9885
  need_lib_prefix=no
 
9886
  need_version=no
 
9887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9888
  soname_spec='${libname}${release}${shared_ext}$major'
 
9889
  shlibpath_var=LD_LIBRARY_PATH
 
9890
  ;;
 
9891
 
 
9892
freebsd1*)
 
9893
  dynamic_linker=no
 
9894
  ;;
 
9895
 
 
9896
freebsd* | dragonfly*)
 
9897
  # DragonFly does not have aout.  When/if they implement a new
 
9898
  # versioning mechanism, adjust this.
 
9899
  if test -x /usr/bin/objformat; then
 
9900
    objformat=`/usr/bin/objformat`
 
9901
  else
 
9902
    case $host_os in
 
9903
    freebsd[123]*) objformat=aout ;;
 
9904
    *) objformat=elf ;;
 
9905
    esac
 
9906
  fi
 
9907
  version_type=freebsd-$objformat
 
9908
  case $version_type in
 
9909
    freebsd-elf*)
 
9910
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9911
      need_version=no
 
9912
      need_lib_prefix=no
 
9913
      ;;
 
9914
    freebsd-*)
 
9915
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9916
      need_version=yes
 
9917
      ;;
 
9918
  esac
 
9919
  shlibpath_var=LD_LIBRARY_PATH
 
9920
  case $host_os in
 
9921
  freebsd2*)
 
9922
    shlibpath_overrides_runpath=yes
 
9923
    ;;
 
9924
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9925
    shlibpath_overrides_runpath=yes
 
9926
    hardcode_into_libs=yes
 
9927
    ;;
 
9928
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9929
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9930
    shlibpath_overrides_runpath=no
 
9931
    hardcode_into_libs=yes
 
9932
    ;;
 
9933
  *) # from 4.6 on, and DragonFly
 
9934
    shlibpath_overrides_runpath=yes
 
9935
    hardcode_into_libs=yes
 
9936
    ;;
 
9937
  esac
 
9938
  ;;
 
9939
 
 
9940
gnu*)
 
9941
  version_type=linux
 
9942
  need_lib_prefix=no
 
9943
  need_version=no
 
9944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9945
  soname_spec='${libname}${release}${shared_ext}$major'
 
9946
  shlibpath_var=LD_LIBRARY_PATH
 
9947
  hardcode_into_libs=yes
 
9948
  ;;
 
9949
 
 
9950
hpux9* | hpux10* | hpux11*)
 
9951
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9952
  # link against other versions.
 
9953
  version_type=sunos
 
9954
  need_lib_prefix=no
 
9955
  need_version=no
 
9956
  case $host_cpu in
 
9957
  ia64*)
 
9958
    shrext_cmds='.so'
 
9959
    hardcode_into_libs=yes
 
9960
    dynamic_linker="$host_os dld.so"
 
9961
    shlibpath_var=LD_LIBRARY_PATH
 
9962
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9963
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9964
    soname_spec='${libname}${release}${shared_ext}$major'
 
9965
    if test "X$HPUX_IA64_MODE" = X32; then
 
9966
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9967
    else
 
9968
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9969
    fi
 
9970
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9971
    ;;
 
9972
  hppa*64*)
 
9973
    shrext_cmds='.sl'
 
9974
    hardcode_into_libs=yes
 
9975
    dynamic_linker="$host_os dld.sl"
 
9976
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9977
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9978
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9979
    soname_spec='${libname}${release}${shared_ext}$major'
 
9980
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9981
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9982
    ;;
 
9983
  *)
 
9984
    shrext_cmds='.sl'
 
9985
    dynamic_linker="$host_os dld.sl"
 
9986
    shlibpath_var=SHLIB_PATH
 
9987
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9988
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9989
    soname_spec='${libname}${release}${shared_ext}$major'
 
9990
    ;;
 
9991
  esac
 
9992
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9993
  postinstall_cmds='chmod 555 $lib'
 
9994
  ;;
 
9995
 
 
9996
interix[3-9]*)
 
9997
  version_type=linux
 
9998
  need_lib_prefix=no
 
9999
  need_version=no
 
10000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10001
  soname_spec='${libname}${release}${shared_ext}$major'
 
10002
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10003
  shlibpath_var=LD_LIBRARY_PATH
 
10004
  shlibpath_overrides_runpath=no
 
10005
  hardcode_into_libs=yes
 
10006
  ;;
 
10007
 
 
10008
irix5* | irix6* | nonstopux*)
 
10009
  case $host_os in
 
10010
    nonstopux*) version_type=nonstopux ;;
 
10011
    *)
 
10012
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10013
                version_type=linux
 
10014
        else
 
10015
                version_type=irix
 
10016
        fi ;;
 
10017
  esac
 
10018
  need_lib_prefix=no
 
10019
  need_version=no
 
10020
  soname_spec='${libname}${release}${shared_ext}$major'
 
10021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10022
  case $host_os in
 
10023
  irix5* | nonstopux*)
 
10024
    libsuff= shlibsuff=
 
10025
    ;;
 
10026
  *)
 
10027
    case $LD in # libtool.m4 will add one of these switches to LD
 
10028
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10029
      libsuff= shlibsuff= libmagic=32-bit;;
 
10030
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10031
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10032
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10033
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10034
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10035
    esac
 
10036
    ;;
 
10037
  esac
 
10038
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10039
  shlibpath_overrides_runpath=no
 
10040
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10041
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10042
  hardcode_into_libs=yes
 
10043
  ;;
 
10044
 
 
10045
# No shared lib support for Linux oldld, aout, or coff.
 
10046
linux*oldld* | linux*aout* | linux*coff*)
 
10047
  dynamic_linker=no
 
10048
  ;;
 
10049
 
 
10050
# This must be Linux ELF.
 
10051
linux* | k*bsd*-gnu)
 
10052
  version_type=linux
 
10053
  need_lib_prefix=no
 
10054
  need_version=no
 
10055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10056
  soname_spec='${libname}${release}${shared_ext}$major'
 
10057
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10058
  shlibpath_var=LD_LIBRARY_PATH
 
10059
  shlibpath_overrides_runpath=no
 
10060
  # Some binutils ld are patched to set DT_RUNPATH
 
10061
  save_LDFLAGS=$LDFLAGS
 
10062
  save_libdir=$libdir
 
10063
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10064
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10065
  cat >conftest.$ac_ext <<_ACEOF
 
10066
/* confdefs.h.  */
 
10067
_ACEOF
 
10068
cat confdefs.h >>conftest.$ac_ext
 
10069
cat >>conftest.$ac_ext <<_ACEOF
 
10070
/* end confdefs.h.  */
 
10071
 
 
10072
int
 
10073
main ()
 
10074
{
 
10075
 
 
10076
  ;
 
10077
  return 0;
 
10078
}
 
10079
_ACEOF
 
10080
rm -f conftest.$ac_objext conftest$ac_exeext
 
10081
if { (ac_try="$ac_link"
 
10082
case "(($ac_try" in
 
10083
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10084
  *) ac_try_echo=$ac_try;;
 
10085
esac
 
10086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10087
  (eval "$ac_link") 2>conftest.er1
 
10088
  ac_status=$?
 
10089
  grep -v '^ *+' conftest.er1 >conftest.err
 
10090
  rm -f conftest.er1
 
10091
  cat conftest.err >&5
 
10092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10093
  (exit $ac_status); } && {
 
10094
         test -z "$ac_c_werror_flag" ||
 
10095
         test ! -s conftest.err
 
10096
       } && test -s conftest$ac_exeext &&
 
10097
       $as_test_x conftest$ac_exeext; then
 
10098
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
10099
  shlibpath_overrides_runpath=yes
 
10100
fi
 
10101
 
 
10102
else
 
10103
  echo "$as_me: failed program was:" >&5
 
10104
sed 's/^/| /' conftest.$ac_ext >&5
 
10105
 
 
10106
 
 
10107
fi
 
10108
 
 
10109
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10110
      conftest$ac_exeext conftest.$ac_ext
 
10111
  LDFLAGS=$save_LDFLAGS
 
10112
  libdir=$save_libdir
 
10113
 
 
10114
  # This implies no fast_install, which is unacceptable.
 
10115
  # Some rework will be needed to allow for fast_install
 
10116
  # before this can be enabled.
 
10117
  hardcode_into_libs=yes
 
10118
 
 
10119
  # Append ld.so.conf contents to the search path
 
10120
  if test -f /etc/ld.so.conf; then
 
10121
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10122
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10123
  fi
 
10124
 
 
10125
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10126
  # powerpc, because MkLinux only supported shared libraries with the
 
10127
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10128
  # most powerpc-linux boxes support dynamic linking these days and
 
10129
  # people can always --disable-shared, the test was removed, and we
 
10130
  # assume the GNU/Linux dynamic linker is in use.
 
10131
  dynamic_linker='GNU/Linux ld.so'
 
10132
  ;;
 
10133
 
 
10134
netbsdelf*-gnu)
 
10135
  version_type=linux
 
10136
  need_lib_prefix=no
 
10137
  need_version=no
 
10138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10139
  soname_spec='${libname}${release}${shared_ext}$major'
 
10140
  shlibpath_var=LD_LIBRARY_PATH
 
10141
  shlibpath_overrides_runpath=no
 
10142
  hardcode_into_libs=yes
 
10143
  dynamic_linker='NetBSD ld.elf_so'
 
10144
  ;;
 
10145
 
 
10146
netbsd*)
 
10147
  version_type=sunos
 
10148
  need_lib_prefix=no
 
10149
  need_version=no
 
10150
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10151
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10152
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10153
    dynamic_linker='NetBSD (a.out) ld.so'
 
10154
  else
 
10155
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10156
    soname_spec='${libname}${release}${shared_ext}$major'
 
10157
    dynamic_linker='NetBSD ld.elf_so'
 
10158
  fi
 
10159
  shlibpath_var=LD_LIBRARY_PATH
 
10160
  shlibpath_overrides_runpath=yes
 
10161
  hardcode_into_libs=yes
 
10162
  ;;
 
10163
 
 
10164
newsos6)
 
10165
  version_type=linux
 
10166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10167
  shlibpath_var=LD_LIBRARY_PATH
 
10168
  shlibpath_overrides_runpath=yes
 
10169
  ;;
 
10170
 
 
10171
*nto* | *qnx*)
 
10172
  version_type=qnx
 
10173
  need_lib_prefix=no
 
10174
  need_version=no
 
10175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10176
  soname_spec='${libname}${release}${shared_ext}$major'
 
10177
  shlibpath_var=LD_LIBRARY_PATH
 
10178
  shlibpath_overrides_runpath=no
 
10179
  hardcode_into_libs=yes
 
10180
  dynamic_linker='ldqnx.so'
 
10181
  ;;
 
10182
 
 
10183
openbsd*)
 
10184
  version_type=sunos
 
10185
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10186
  need_lib_prefix=no
 
10187
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10188
  case $host_os in
 
10189
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10190
    *)                          need_version=no  ;;
 
10191
  esac
 
10192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10193
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10194
  shlibpath_var=LD_LIBRARY_PATH
 
10195
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10196
    case $host_os in
 
10197
      openbsd2.[89] | openbsd2.[89].*)
 
10198
        shlibpath_overrides_runpath=no
 
10199
        ;;
 
10200
      *)
 
10201
        shlibpath_overrides_runpath=yes
 
10202
        ;;
 
10203
      esac
 
10204
  else
 
10205
    shlibpath_overrides_runpath=yes
 
10206
  fi
 
10207
  ;;
 
10208
 
 
10209
os2*)
 
10210
  libname_spec='$name'
 
10211
  shrext_cmds=".dll"
 
10212
  need_lib_prefix=no
 
10213
  library_names_spec='$libname${shared_ext} $libname.a'
 
10214
  dynamic_linker='OS/2 ld.exe'
 
10215
  shlibpath_var=LIBPATH
 
10216
  ;;
 
10217
 
 
10218
osf3* | osf4* | osf5*)
 
10219
  version_type=osf
 
10220
  need_lib_prefix=no
 
10221
  need_version=no
 
10222
  soname_spec='${libname}${release}${shared_ext}$major'
 
10223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10224
  shlibpath_var=LD_LIBRARY_PATH
 
10225
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10226
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10227
  ;;
 
10228
 
 
10229
rdos*)
 
10230
  dynamic_linker=no
 
10231
  ;;
 
10232
 
 
10233
solaris*)
 
10234
  version_type=linux
 
10235
  need_lib_prefix=no
 
10236
  need_version=no
 
10237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10238
  soname_spec='${libname}${release}${shared_ext}$major'
 
10239
  shlibpath_var=LD_LIBRARY_PATH
 
10240
  shlibpath_overrides_runpath=yes
 
10241
  hardcode_into_libs=yes
 
10242
  # ldd complains unless libraries are executable
 
10243
  postinstall_cmds='chmod +x $lib'
 
10244
  ;;
 
10245
 
 
10246
sunos4*)
 
10247
  version_type=sunos
 
10248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10249
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10250
  shlibpath_var=LD_LIBRARY_PATH
 
10251
  shlibpath_overrides_runpath=yes
 
10252
  if test "$with_gnu_ld" = yes; then
 
10253
    need_lib_prefix=no
 
10254
  fi
 
10255
  need_version=yes
 
10256
  ;;
 
10257
 
 
10258
sysv4 | sysv4.3*)
 
10259
  version_type=linux
 
10260
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10261
  soname_spec='${libname}${release}${shared_ext}$major'
 
10262
  shlibpath_var=LD_LIBRARY_PATH
 
10263
  case $host_vendor in
 
10264
    sni)
 
10265
      shlibpath_overrides_runpath=no
 
10266
      need_lib_prefix=no
 
10267
      runpath_var=LD_RUN_PATH
 
10268
      ;;
 
10269
    siemens)
 
10270
      need_lib_prefix=no
 
10271
      ;;
 
10272
    motorola)
 
10273
      need_lib_prefix=no
 
10274
      need_version=no
 
10275
      shlibpath_overrides_runpath=no
 
10276
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10277
      ;;
 
10278
  esac
 
10279
  ;;
 
10280
 
 
10281
sysv4*MP*)
 
10282
  if test -d /usr/nec ;then
 
10283
    version_type=linux
 
10284
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10285
    soname_spec='$libname${shared_ext}.$major'
 
10286
    shlibpath_var=LD_LIBRARY_PATH
 
10287
  fi
 
10288
  ;;
 
10289
 
 
10290
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10291
  version_type=freebsd-elf
 
10292
  need_lib_prefix=no
 
10293
  need_version=no
 
10294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10295
  soname_spec='${libname}${release}${shared_ext}$major'
 
10296
  shlibpath_var=LD_LIBRARY_PATH
 
10297
  shlibpath_overrides_runpath=yes
 
10298
  hardcode_into_libs=yes
 
10299
  if test "$with_gnu_ld" = yes; then
 
10300
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10301
  else
 
10302
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10303
    case $host_os in
 
10304
      sco3.2v5*)
 
10305
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10306
        ;;
 
10307
    esac
 
10308
  fi
 
10309
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10310
  ;;
 
10311
 
 
10312
tpf*)
 
10313
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10314
  version_type=linux
 
10315
  need_lib_prefix=no
 
10316
  need_version=no
 
10317
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10318
  shlibpath_var=LD_LIBRARY_PATH
 
10319
  shlibpath_overrides_runpath=no
 
10320
  hardcode_into_libs=yes
 
10321
  ;;
 
10322
 
 
10323
uts4*)
 
10324
  version_type=linux
 
10325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10326
  soname_spec='${libname}${release}${shared_ext}$major'
 
10327
  shlibpath_var=LD_LIBRARY_PATH
 
10328
  ;;
 
10329
 
 
10330
*)
 
10331
  dynamic_linker=no
 
10332
  ;;
 
10333
esac
 
10334
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10335
echo "${ECHO_T}$dynamic_linker" >&6; }
 
10336
test "$dynamic_linker" = no && can_build_shared=no
 
10337
 
 
10338
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10339
if test "$GCC" = yes; then
 
10340
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10341
fi
 
10342
 
 
10343
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10344
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10345
fi
 
10346
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10347
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10348
fi
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
 
 
10420
 
 
10421
 
 
10422
 
 
10423
 
 
10424
 
 
10425
 
 
10426
 
 
10427
 
 
10428
 
 
10429
 
 
10430
 
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
 
 
10436
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10437
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
10438
hardcode_action=
 
10439
if test -n "$hardcode_libdir_flag_spec" ||
 
10440
   test -n "$runpath_var" ||
 
10441
   test "X$hardcode_automatic" = "Xyes" ; then
 
10442
 
 
10443
  # We can hardcode non-existent directories.
 
10444
  if test "$hardcode_direct" != no &&
 
10445
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10446
     # have to relink, otherwise we might link with an installed library
 
10447
     # when we should be linking with a yet-to-be-installed one
 
10448
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10449
     test "$hardcode_minus_L" != no; then
 
10450
    # Linking always hardcodes the temporary library directory.
 
10451
    hardcode_action=relink
 
10452
  else
 
10453
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10454
    hardcode_action=immediate
 
10455
  fi
 
10456
else
 
10457
  # We cannot hardcode anything, or else we can only hardcode existing
 
10458
  # directories.
 
10459
  hardcode_action=unsupported
 
10460
fi
 
10461
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10462
echo "${ECHO_T}$hardcode_action" >&6; }
 
10463
 
 
10464
if test "$hardcode_action" = relink ||
 
10465
   test "$inherit_rpath" = yes; then
 
10466
  # Fast installation is not supported
 
10467
  enable_fast_install=no
 
10468
elif test "$shlibpath_overrides_runpath" = yes ||
 
10469
     test "$enable_shared" = no; then
 
10470
  # Fast installation is not necessary
 
10471
  enable_fast_install=needless
 
10472
fi
 
10473
 
 
10474
 
 
10475
 
 
10476
 
 
10477
 
 
10478
 
 
10479
  if test "x$enable_dlopen" != xyes; then
 
10480
  enable_dlopen=unknown
 
10481
  enable_dlopen_self=unknown
 
10482
  enable_dlopen_self_static=unknown
 
10483
else
 
10484
  lt_cv_dlopen=no
 
10485
  lt_cv_dlopen_libs=
 
10486
 
 
10487
  case $host_os in
 
10488
  beos*)
 
10489
    lt_cv_dlopen="load_add_on"
 
10490
    lt_cv_dlopen_libs=
 
10491
    lt_cv_dlopen_self=yes
 
10492
    ;;
 
10493
 
 
10494
  mingw* | pw32*)
 
10495
    lt_cv_dlopen="LoadLibrary"
 
10496
    lt_cv_dlopen_libs=
 
10497
    ;;
 
10498
 
 
10499
  cygwin*)
 
10500
    lt_cv_dlopen="dlopen"
 
10501
    lt_cv_dlopen_libs=
 
10502
    ;;
 
10503
 
 
10504
  darwin*)
 
10505
  # if libdl is installed we need to link against it
 
10506
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10507
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10508
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10510
else
 
10511
  ac_check_lib_save_LIBS=$LIBS
 
10512
LIBS="-ldl  $LIBS"
 
10513
cat >conftest.$ac_ext <<_ACEOF
 
10514
/* confdefs.h.  */
 
10515
_ACEOF
 
10516
cat confdefs.h >>conftest.$ac_ext
 
10517
cat >>conftest.$ac_ext <<_ACEOF
 
10518
/* end confdefs.h.  */
 
10519
 
 
10520
/* Override any GCC internal prototype to avoid an error.
 
10521
   Use char because int might match the return type of a GCC
 
10522
   builtin and then its argument prototype would still apply.  */
 
10523
#ifdef __cplusplus
 
10524
extern "C"
 
10525
#endif
 
10526
char dlopen ();
 
10527
int
 
10528
main ()
 
10529
{
 
10530
return dlopen ();
 
10531
  ;
 
10532
  return 0;
 
10533
}
 
10534
_ACEOF
 
10535
rm -f conftest.$ac_objext conftest$ac_exeext
 
10536
if { (ac_try="$ac_link"
 
10537
case "(($ac_try" in
 
10538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10539
  *) ac_try_echo=$ac_try;;
 
10540
esac
 
10541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10542
  (eval "$ac_link") 2>conftest.er1
 
10543
  ac_status=$?
 
10544
  grep -v '^ *+' conftest.er1 >conftest.err
 
10545
  rm -f conftest.er1
 
10546
  cat conftest.err >&5
 
10547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10548
  (exit $ac_status); } && {
 
10549
         test -z "$ac_c_werror_flag" ||
 
10550
         test ! -s conftest.err
 
10551
       } && test -s conftest$ac_exeext &&
 
10552
       $as_test_x conftest$ac_exeext; then
 
10553
  ac_cv_lib_dl_dlopen=yes
 
10554
else
 
10555
  echo "$as_me: failed program was:" >&5
 
10556
sed 's/^/| /' conftest.$ac_ext >&5
 
10557
 
 
10558
        ac_cv_lib_dl_dlopen=no
 
10559
fi
 
10560
 
 
10561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10562
      conftest$ac_exeext conftest.$ac_ext
 
10563
LIBS=$ac_check_lib_save_LIBS
 
10564
fi
 
10565
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10566
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10567
if test $ac_cv_lib_dl_dlopen = yes; then
 
10568
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10569
else
 
10570
 
 
10571
    lt_cv_dlopen="dyld"
 
10572
    lt_cv_dlopen_libs=
 
10573
    lt_cv_dlopen_self=yes
 
10574
 
 
10575
fi
 
10576
 
 
10577
    ;;
 
10578
 
 
10579
  *)
 
10580
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
10581
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
10582
if test "${ac_cv_func_shl_load+set}" = set; then
 
10583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10584
else
 
10585
  cat >conftest.$ac_ext <<_ACEOF
 
10586
/* confdefs.h.  */
 
10587
_ACEOF
 
10588
cat confdefs.h >>conftest.$ac_ext
 
10589
cat >>conftest.$ac_ext <<_ACEOF
 
10590
/* end confdefs.h.  */
 
10591
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10592
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10593
#define shl_load innocuous_shl_load
 
10594
 
 
10595
/* System header to define __stub macros and hopefully few prototypes,
 
10596
    which can conflict with char shl_load (); below.
 
10597
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10598
    <limits.h> exists even on freestanding compilers.  */
 
10599
 
 
10600
#ifdef __STDC__
 
10601
# include <limits.h>
 
10602
#else
 
10603
# include <assert.h>
 
10604
#endif
 
10605
 
 
10606
#undef shl_load
 
10607
 
 
10608
/* Override any GCC internal prototype to avoid an error.
 
10609
   Use char because int might match the return type of a GCC
 
10610
   builtin and then its argument prototype would still apply.  */
 
10611
#ifdef __cplusplus
 
10612
extern "C"
 
10613
#endif
 
10614
char shl_load ();
 
10615
/* The GNU C library defines this for functions which it implements
 
10616
    to always fail with ENOSYS.  Some functions are actually named
 
10617
    something starting with __ and the normal name is an alias.  */
 
10618
#if defined __stub_shl_load || defined __stub___shl_load
 
10619
choke me
 
10620
#endif
 
10621
 
 
10622
int
 
10623
main ()
 
10624
{
 
10625
return shl_load ();
 
10626
  ;
 
10627
  return 0;
 
10628
}
 
10629
_ACEOF
 
10630
rm -f conftest.$ac_objext conftest$ac_exeext
 
10631
if { (ac_try="$ac_link"
 
10632
case "(($ac_try" in
 
10633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10634
  *) ac_try_echo=$ac_try;;
 
10635
esac
 
10636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10637
  (eval "$ac_link") 2>conftest.er1
 
10638
  ac_status=$?
 
10639
  grep -v '^ *+' conftest.er1 >conftest.err
 
10640
  rm -f conftest.er1
 
10641
  cat conftest.err >&5
 
10642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10643
  (exit $ac_status); } && {
 
10644
         test -z "$ac_c_werror_flag" ||
 
10645
         test ! -s conftest.err
 
10646
       } && test -s conftest$ac_exeext &&
 
10647
       $as_test_x conftest$ac_exeext; then
 
10648
  ac_cv_func_shl_load=yes
 
10649
else
 
10650
  echo "$as_me: failed program was:" >&5
 
10651
sed 's/^/| /' conftest.$ac_ext >&5
 
10652
 
 
10653
        ac_cv_func_shl_load=no
 
10654
fi
 
10655
 
 
10656
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10657
      conftest$ac_exeext conftest.$ac_ext
 
10658
fi
 
10659
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10660
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
10661
if test $ac_cv_func_shl_load = yes; then
 
10662
  lt_cv_dlopen="shl_load"
 
10663
else
 
10664
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10665
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
10666
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10668
else
 
10669
  ac_check_lib_save_LIBS=$LIBS
 
10670
LIBS="-ldld  $LIBS"
 
10671
cat >conftest.$ac_ext <<_ACEOF
 
10672
/* confdefs.h.  */
 
10673
_ACEOF
 
10674
cat confdefs.h >>conftest.$ac_ext
 
10675
cat >>conftest.$ac_ext <<_ACEOF
 
10676
/* end confdefs.h.  */
 
10677
 
 
10678
/* Override any GCC internal prototype to avoid an error.
 
10679
   Use char because int might match the return type of a GCC
 
10680
   builtin and then its argument prototype would still apply.  */
 
10681
#ifdef __cplusplus
 
10682
extern "C"
 
10683
#endif
 
10684
char shl_load ();
 
10685
int
 
10686
main ()
 
10687
{
 
10688
return shl_load ();
 
10689
  ;
 
10690
  return 0;
 
10691
}
 
10692
_ACEOF
 
10693
rm -f conftest.$ac_objext conftest$ac_exeext
 
10694
if { (ac_try="$ac_link"
 
10695
case "(($ac_try" in
 
10696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10697
  *) ac_try_echo=$ac_try;;
 
10698
esac
 
10699
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10700
  (eval "$ac_link") 2>conftest.er1
 
10701
  ac_status=$?
 
10702
  grep -v '^ *+' conftest.er1 >conftest.err
 
10703
  rm -f conftest.er1
 
10704
  cat conftest.err >&5
 
10705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10706
  (exit $ac_status); } && {
 
10707
         test -z "$ac_c_werror_flag" ||
 
10708
         test ! -s conftest.err
 
10709
       } && test -s conftest$ac_exeext &&
 
10710
       $as_test_x conftest$ac_exeext; then
 
10711
  ac_cv_lib_dld_shl_load=yes
 
10712
else
 
10713
  echo "$as_me: failed program was:" >&5
 
10714
sed 's/^/| /' conftest.$ac_ext >&5
 
10715
 
 
10716
        ac_cv_lib_dld_shl_load=no
 
10717
fi
 
10718
 
 
10719
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10720
      conftest$ac_exeext conftest.$ac_ext
 
10721
LIBS=$ac_check_lib_save_LIBS
 
10722
fi
 
10723
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10724
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10725
if test $ac_cv_lib_dld_shl_load = yes; then
 
10726
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10727
else
 
10728
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10729
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10730
if test "${ac_cv_func_dlopen+set}" = set; then
 
10731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10732
else
 
10733
  cat >conftest.$ac_ext <<_ACEOF
 
10734
/* confdefs.h.  */
 
10735
_ACEOF
 
10736
cat confdefs.h >>conftest.$ac_ext
 
10737
cat >>conftest.$ac_ext <<_ACEOF
 
10738
/* end confdefs.h.  */
 
10739
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10740
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10741
#define dlopen innocuous_dlopen
 
10742
 
 
10743
/* System header to define __stub macros and hopefully few prototypes,
 
10744
    which can conflict with char dlopen (); below.
 
10745
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10746
    <limits.h> exists even on freestanding compilers.  */
 
10747
 
 
10748
#ifdef __STDC__
 
10749
# include <limits.h>
 
10750
#else
 
10751
# include <assert.h>
 
10752
#endif
 
10753
 
 
10754
#undef dlopen
 
10755
 
 
10756
/* Override any GCC internal prototype to avoid an error.
 
10757
   Use char because int might match the return type of a GCC
 
10758
   builtin and then its argument prototype would still apply.  */
 
10759
#ifdef __cplusplus
 
10760
extern "C"
 
10761
#endif
 
10762
char dlopen ();
 
10763
/* The GNU C library defines this for functions which it implements
 
10764
    to always fail with ENOSYS.  Some functions are actually named
 
10765
    something starting with __ and the normal name is an alias.  */
 
10766
#if defined __stub_dlopen || defined __stub___dlopen
 
10767
choke me
 
10768
#endif
 
10769
 
 
10770
int
 
10771
main ()
 
10772
{
 
10773
return dlopen ();
 
10774
  ;
 
10775
  return 0;
 
10776
}
 
10777
_ACEOF
 
10778
rm -f conftest.$ac_objext conftest$ac_exeext
 
10779
if { (ac_try="$ac_link"
 
10780
case "(($ac_try" in
 
10781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10782
  *) ac_try_echo=$ac_try;;
 
10783
esac
 
10784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10785
  (eval "$ac_link") 2>conftest.er1
 
10786
  ac_status=$?
 
10787
  grep -v '^ *+' conftest.er1 >conftest.err
 
10788
  rm -f conftest.er1
 
10789
  cat conftest.err >&5
 
10790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10791
  (exit $ac_status); } && {
 
10792
         test -z "$ac_c_werror_flag" ||
 
10793
         test ! -s conftest.err
 
10794
       } && test -s conftest$ac_exeext &&
 
10795
       $as_test_x conftest$ac_exeext; then
 
10796
  ac_cv_func_dlopen=yes
 
10797
else
 
10798
  echo "$as_me: failed program was:" >&5
 
10799
sed 's/^/| /' conftest.$ac_ext >&5
 
10800
 
 
10801
        ac_cv_func_dlopen=no
 
10802
fi
 
10803
 
 
10804
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10805
      conftest$ac_exeext conftest.$ac_ext
 
10806
fi
 
10807
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10808
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10809
if test $ac_cv_func_dlopen = yes; then
 
10810
  lt_cv_dlopen="dlopen"
 
10811
else
 
10812
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10813
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10814
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10816
else
 
10817
  ac_check_lib_save_LIBS=$LIBS
 
10818
LIBS="-ldl  $LIBS"
 
10819
cat >conftest.$ac_ext <<_ACEOF
 
10820
/* confdefs.h.  */
 
10821
_ACEOF
 
10822
cat confdefs.h >>conftest.$ac_ext
 
10823
cat >>conftest.$ac_ext <<_ACEOF
 
10824
/* end confdefs.h.  */
 
10825
 
 
10826
/* Override any GCC internal prototype to avoid an error.
 
10827
   Use char because int might match the return type of a GCC
 
10828
   builtin and then its argument prototype would still apply.  */
 
10829
#ifdef __cplusplus
 
10830
extern "C"
 
10831
#endif
 
10832
char dlopen ();
 
10833
int
 
10834
main ()
 
10835
{
 
10836
return dlopen ();
 
10837
  ;
 
10838
  return 0;
 
10839
}
 
10840
_ACEOF
 
10841
rm -f conftest.$ac_objext conftest$ac_exeext
 
10842
if { (ac_try="$ac_link"
 
10843
case "(($ac_try" in
 
10844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10845
  *) ac_try_echo=$ac_try;;
 
10846
esac
 
10847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10848
  (eval "$ac_link") 2>conftest.er1
 
10849
  ac_status=$?
 
10850
  grep -v '^ *+' conftest.er1 >conftest.err
 
10851
  rm -f conftest.er1
 
10852
  cat conftest.err >&5
 
10853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10854
  (exit $ac_status); } && {
 
10855
         test -z "$ac_c_werror_flag" ||
 
10856
         test ! -s conftest.err
 
10857
       } && test -s conftest$ac_exeext &&
 
10858
       $as_test_x conftest$ac_exeext; then
 
10859
  ac_cv_lib_dl_dlopen=yes
 
10860
else
 
10861
  echo "$as_me: failed program was:" >&5
 
10862
sed 's/^/| /' conftest.$ac_ext >&5
 
10863
 
 
10864
        ac_cv_lib_dl_dlopen=no
 
10865
fi
 
10866
 
 
10867
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10868
      conftest$ac_exeext conftest.$ac_ext
 
10869
LIBS=$ac_check_lib_save_LIBS
 
10870
fi
 
10871
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10872
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10873
if test $ac_cv_lib_dl_dlopen = yes; then
 
10874
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10875
else
 
10876
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10877
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10878
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10880
else
 
10881
  ac_check_lib_save_LIBS=$LIBS
 
10882
LIBS="-lsvld  $LIBS"
 
10883
cat >conftest.$ac_ext <<_ACEOF
 
10884
/* confdefs.h.  */
 
10885
_ACEOF
 
10886
cat confdefs.h >>conftest.$ac_ext
 
10887
cat >>conftest.$ac_ext <<_ACEOF
 
10888
/* end confdefs.h.  */
 
10889
 
 
10890
/* Override any GCC internal prototype to avoid an error.
 
10891
   Use char because int might match the return type of a GCC
 
10892
   builtin and then its argument prototype would still apply.  */
 
10893
#ifdef __cplusplus
 
10894
extern "C"
 
10895
#endif
 
10896
char dlopen ();
 
10897
int
 
10898
main ()
 
10899
{
 
10900
return dlopen ();
 
10901
  ;
 
10902
  return 0;
 
10903
}
 
10904
_ACEOF
 
10905
rm -f conftest.$ac_objext conftest$ac_exeext
 
10906
if { (ac_try="$ac_link"
 
10907
case "(($ac_try" in
 
10908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10909
  *) ac_try_echo=$ac_try;;
 
10910
esac
 
10911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10912
  (eval "$ac_link") 2>conftest.er1
 
10913
  ac_status=$?
 
10914
  grep -v '^ *+' conftest.er1 >conftest.err
 
10915
  rm -f conftest.er1
 
10916
  cat conftest.err >&5
 
10917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10918
  (exit $ac_status); } && {
 
10919
         test -z "$ac_c_werror_flag" ||
 
10920
         test ! -s conftest.err
 
10921
       } && test -s conftest$ac_exeext &&
 
10922
       $as_test_x conftest$ac_exeext; then
 
10923
  ac_cv_lib_svld_dlopen=yes
 
10924
else
 
10925
  echo "$as_me: failed program was:" >&5
 
10926
sed 's/^/| /' conftest.$ac_ext >&5
 
10927
 
 
10928
        ac_cv_lib_svld_dlopen=no
 
10929
fi
 
10930
 
 
10931
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10932
      conftest$ac_exeext conftest.$ac_ext
 
10933
LIBS=$ac_check_lib_save_LIBS
 
10934
fi
 
10935
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10936
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10937
if test $ac_cv_lib_svld_dlopen = yes; then
 
10938
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10939
else
 
10940
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10941
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10942
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10944
else
 
10945
  ac_check_lib_save_LIBS=$LIBS
 
10946
LIBS="-ldld  $LIBS"
 
10947
cat >conftest.$ac_ext <<_ACEOF
 
10948
/* confdefs.h.  */
 
10949
_ACEOF
 
10950
cat confdefs.h >>conftest.$ac_ext
 
10951
cat >>conftest.$ac_ext <<_ACEOF
 
10952
/* end confdefs.h.  */
 
10953
 
 
10954
/* Override any GCC internal prototype to avoid an error.
 
10955
   Use char because int might match the return type of a GCC
 
10956
   builtin and then its argument prototype would still apply.  */
 
10957
#ifdef __cplusplus
 
10958
extern "C"
 
10959
#endif
 
10960
char dld_link ();
 
10961
int
 
10962
main ()
 
10963
{
 
10964
return dld_link ();
 
10965
  ;
 
10966
  return 0;
 
10967
}
 
10968
_ACEOF
 
10969
rm -f conftest.$ac_objext conftest$ac_exeext
 
10970
if { (ac_try="$ac_link"
 
10971
case "(($ac_try" in
 
10972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10973
  *) ac_try_echo=$ac_try;;
 
10974
esac
 
10975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10976
  (eval "$ac_link") 2>conftest.er1
 
10977
  ac_status=$?
 
10978
  grep -v '^ *+' conftest.er1 >conftest.err
 
10979
  rm -f conftest.er1
 
10980
  cat conftest.err >&5
 
10981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10982
  (exit $ac_status); } && {
 
10983
         test -z "$ac_c_werror_flag" ||
 
10984
         test ! -s conftest.err
 
10985
       } && test -s conftest$ac_exeext &&
 
10986
       $as_test_x conftest$ac_exeext; then
 
10987
  ac_cv_lib_dld_dld_link=yes
 
10988
else
 
10989
  echo "$as_me: failed program was:" >&5
 
10990
sed 's/^/| /' conftest.$ac_ext >&5
 
10991
 
 
10992
        ac_cv_lib_dld_dld_link=no
 
10993
fi
 
10994
 
 
10995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10996
      conftest$ac_exeext conftest.$ac_ext
 
10997
LIBS=$ac_check_lib_save_LIBS
 
10998
fi
 
10999
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11000
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
11001
if test $ac_cv_lib_dld_dld_link = yes; then
 
11002
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11003
fi
 
11004
 
 
11005
 
 
11006
fi
 
11007
 
 
11008
 
 
11009
fi
 
11010
 
 
11011
 
 
11012
fi
 
11013
 
 
11014
 
 
11015
fi
 
11016
 
 
11017
 
 
11018
fi
 
11019
 
 
11020
    ;;
 
11021
  esac
 
11022
 
 
11023
  if test "x$lt_cv_dlopen" != xno; then
 
11024
    enable_dlopen=yes
 
11025
  else
 
11026
    enable_dlopen=no
 
11027
  fi
 
11028
 
 
11029
  case $lt_cv_dlopen in
 
11030
  dlopen)
 
11031
    save_CPPFLAGS="$CPPFLAGS"
 
11032
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11033
 
 
11034
    save_LDFLAGS="$LDFLAGS"
 
11035
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11036
 
 
11037
    save_LIBS="$LIBS"
 
11038
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11039
 
 
11040
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11041
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
11042
if test "${lt_cv_dlopen_self+set}" = set; then
 
11043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11044
else
 
11045
          if test "$cross_compiling" = yes; then :
 
11046
  lt_cv_dlopen_self=cross
 
11047
else
 
11048
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11049
  lt_status=$lt_dlunknown
 
11050
  cat > conftest.$ac_ext <<_LT_EOF
 
11051
#line 11051 "configure"
 
11052
#include "confdefs.h"
 
11053
 
 
11054
#if HAVE_DLFCN_H
 
11055
#include <dlfcn.h>
 
11056
#endif
 
11057
 
 
11058
#include <stdio.h>
 
11059
 
 
11060
#ifdef RTLD_GLOBAL
 
11061
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11062
#else
 
11063
#  ifdef DL_GLOBAL
 
11064
#    define LT_DLGLOBAL         DL_GLOBAL
 
11065
#  else
 
11066
#    define LT_DLGLOBAL         0
 
11067
#  endif
 
11068
#endif
 
11069
 
 
11070
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11071
   find out it does not work in some platform. */
 
11072
#ifndef LT_DLLAZY_OR_NOW
 
11073
#  ifdef RTLD_LAZY
 
11074
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11075
#  else
 
11076
#    ifdef DL_LAZY
 
11077
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11078
#    else
 
11079
#      ifdef RTLD_NOW
 
11080
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11081
#      else
 
11082
#        ifdef DL_NOW
 
11083
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11084
#        else
 
11085
#          define LT_DLLAZY_OR_NOW      0
 
11086
#        endif
 
11087
#      endif
 
11088
#    endif
 
11089
#  endif
 
11090
#endif
 
11091
 
 
11092
#ifdef __cplusplus
 
11093
extern "C" void exit (int);
 
11094
#endif
 
11095
 
 
11096
void fnord() { int i=42;}
 
11097
int main ()
 
11098
{
 
11099
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11100
  int status = $lt_dlunknown;
 
11101
 
 
11102
  if (self)
 
11103
    {
 
11104
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11105
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11106
      /* dlclose (self); */
 
11107
    }
 
11108
  else
 
11109
    puts (dlerror ());
 
11110
 
 
11111
    exit (status);
 
11112
}
 
11113
_LT_EOF
 
11114
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11115
  (eval $ac_link) 2>&5
 
11116
  ac_status=$?
 
11117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11118
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11119
    (./conftest; exit; ) >&5 2>/dev/null
 
11120
    lt_status=$?
 
11121
    case x$lt_status in
 
11122
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11123
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11124
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11125
    esac
 
11126
  else :
 
11127
    # compilation failed
 
11128
    lt_cv_dlopen_self=no
 
11129
  fi
 
11130
fi
 
11131
rm -fr conftest*
 
11132
 
 
11133
 
 
11134
fi
 
11135
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11136
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
11137
 
 
11138
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11139
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11140
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11141
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
11142
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11143
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11144
else
 
11145
          if test "$cross_compiling" = yes; then :
 
11146
  lt_cv_dlopen_self_static=cross
 
11147
else
 
11148
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11149
  lt_status=$lt_dlunknown
 
11150
  cat > conftest.$ac_ext <<_LT_EOF
 
11151
#line 11151 "configure"
 
11152
#include "confdefs.h"
 
11153
 
 
11154
#if HAVE_DLFCN_H
 
11155
#include <dlfcn.h>
 
11156
#endif
 
11157
 
 
11158
#include <stdio.h>
 
11159
 
 
11160
#ifdef RTLD_GLOBAL
 
11161
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11162
#else
 
11163
#  ifdef DL_GLOBAL
 
11164
#    define LT_DLGLOBAL         DL_GLOBAL
 
11165
#  else
 
11166
#    define LT_DLGLOBAL         0
 
11167
#  endif
 
11168
#endif
 
11169
 
 
11170
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11171
   find out it does not work in some platform. */
 
11172
#ifndef LT_DLLAZY_OR_NOW
 
11173
#  ifdef RTLD_LAZY
 
11174
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11175
#  else
 
11176
#    ifdef DL_LAZY
 
11177
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11178
#    else
 
11179
#      ifdef RTLD_NOW
 
11180
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11181
#      else
 
11182
#        ifdef DL_NOW
 
11183
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11184
#        else
 
11185
#          define LT_DLLAZY_OR_NOW      0
 
11186
#        endif
 
11187
#      endif
 
11188
#    endif
 
11189
#  endif
 
11190
#endif
 
11191
 
 
11192
#ifdef __cplusplus
 
11193
extern "C" void exit (int);
 
11194
#endif
 
11195
 
 
11196
void fnord() { int i=42;}
 
11197
int main ()
 
11198
{
 
11199
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11200
  int status = $lt_dlunknown;
 
11201
 
 
11202
  if (self)
 
11203
    {
 
11204
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11205
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11206
      /* dlclose (self); */
 
11207
    }
 
11208
  else
 
11209
    puts (dlerror ());
 
11210
 
 
11211
    exit (status);
 
11212
}
 
11213
_LT_EOF
 
11214
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11215
  (eval $ac_link) 2>&5
 
11216
  ac_status=$?
 
11217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11218
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11219
    (./conftest; exit; ) >&5 2>/dev/null
 
11220
    lt_status=$?
 
11221
    case x$lt_status in
 
11222
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11223
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11224
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11225
    esac
 
11226
  else :
 
11227
    # compilation failed
 
11228
    lt_cv_dlopen_self_static=no
 
11229
  fi
 
11230
fi
 
11231
rm -fr conftest*
 
11232
 
 
11233
 
 
11234
fi
 
11235
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11236
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
11237
    fi
 
11238
 
 
11239
    CPPFLAGS="$save_CPPFLAGS"
 
11240
    LDFLAGS="$save_LDFLAGS"
 
11241
    LIBS="$save_LIBS"
 
11242
    ;;
 
11243
  esac
 
11244
 
 
11245
  case $lt_cv_dlopen_self in
 
11246
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11247
  *) enable_dlopen_self=unknown ;;
 
11248
  esac
 
11249
 
 
11250
  case $lt_cv_dlopen_self_static in
 
11251
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11252
  *) enable_dlopen_self_static=unknown ;;
 
11253
  esac
 
11254
fi
 
11255
 
 
11256
 
 
11257
 
 
11258
 
 
11259
 
 
11260
 
 
11261
 
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
striplib=
 
11273
old_striplib=
 
11274
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11275
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
11276
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11277
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11278
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11279
  { echo "$as_me:$LINENO: result: yes" >&5
 
11280
echo "${ECHO_T}yes" >&6; }
 
11281
else
 
11282
# FIXME - insert some real tests, host_os isn't really good enough
 
11283
  case $host_os in
 
11284
  darwin*)
 
11285
    if test -n "$STRIP" ; then
 
11286
      striplib="$STRIP -x"
 
11287
      old_striplib="$STRIP -S"
 
11288
      { echo "$as_me:$LINENO: result: yes" >&5
 
11289
echo "${ECHO_T}yes" >&6; }
 
11290
    else
 
11291
      { echo "$as_me:$LINENO: result: no" >&5
 
11292
echo "${ECHO_T}no" >&6; }
 
11293
    fi
 
11294
    ;;
 
11295
  *)
 
11296
    { echo "$as_me:$LINENO: result: no" >&5
 
11297
echo "${ECHO_T}no" >&6; }
 
11298
    ;;
 
11299
  esac
 
11300
fi
 
11301
 
 
11302
 
 
11303
 
 
11304
 
 
11305
 
 
11306
 
 
11307
 
 
11308
 
 
11309
 
 
11310
 
 
11311
 
 
11312
 
 
11313
  # Report which library types will actually be built
 
11314
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11315
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
11316
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11317
echo "${ECHO_T}$can_build_shared" >&6; }
 
11318
 
 
11319
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11320
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
11321
  test "$can_build_shared" = "no" && enable_shared=no
 
11322
 
 
11323
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11324
  # are all built from PIC.
 
11325
  case $host_os in
 
11326
  aix3*)
 
11327
    test "$enable_shared" = yes && enable_static=no
 
11328
    if test -n "$RANLIB"; then
 
11329
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11330
      postinstall_cmds='$RANLIB $lib'
 
11331
    fi
 
11332
    ;;
 
11333
 
 
11334
  aix[4-9]*)
 
11335
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11336
      test "$enable_shared" = yes && enable_static=no
 
11337
    fi
 
11338
    ;;
 
11339
  esac
 
11340
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11341
echo "${ECHO_T}$enable_shared" >&6; }
 
11342
 
 
11343
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11344
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
11345
  # Make sure either enable_shared or enable_static is yes.
 
11346
  test "$enable_shared" = yes || enable_static=yes
 
11347
  { echo "$as_me:$LINENO: result: $enable_static" >&5
 
11348
echo "${ECHO_T}$enable_static" >&6; }
 
11349
 
 
11350
 
 
11351
 
 
11352
 
 
11353
fi
 
11354
ac_ext=c
 
11355
ac_cpp='$CPP $CPPFLAGS'
 
11356
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11357
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11358
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11359
 
 
11360
CC="$lt_save_CC"
 
11361
 
 
11362
 
 
11363
 
 
11364
 
 
11365
 
 
11366
 
 
11367
 
 
11368
 
 
11369
 
 
11370
 
 
11371
 
 
11372
 
 
11373
 
 
11374
        ac_config_commands="$ac_config_commands libtool"
 
11375
 
 
11376
 
 
11377
 
 
11378
 
 
11379
# Only expand once:
 
11380
 
 
11381
 
 
11382
 
 
11383
 
 
11384
 
 
11385
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
11386
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
11387
if test "${ac_cv_c_const+set}" = set; then
 
11388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11389
else
 
11390
  cat >conftest.$ac_ext <<_ACEOF
 
11391
/* confdefs.h.  */
 
11392
_ACEOF
 
11393
cat confdefs.h >>conftest.$ac_ext
 
11394
cat >>conftest.$ac_ext <<_ACEOF
 
11395
/* end confdefs.h.  */
 
11396
 
 
11397
int
 
11398
main ()
 
11399
{
 
11400
/* FIXME: Include the comments suggested by Paul. */
 
11401
#ifndef __cplusplus
 
11402
  /* Ultrix mips cc rejects this.  */
 
11403
  typedef int charset[2];
 
11404
  const charset cs;
 
11405
  /* SunOS 4.1.1 cc rejects this.  */
 
11406
  char const *const *pcpcc;
 
11407
  char **ppc;
 
11408
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
11409
  struct point {int x, y;};
 
11410
  static struct point const zero = {0,0};
 
11411
  /* AIX XL C 1.02.0.0 rejects this.
 
11412
     It does not let you subtract one const X* pointer from another in
 
11413
     an arm of an if-expression whose if-part is not a constant
 
11414
     expression */
 
11415
  const char *g = "string";
 
11416
  pcpcc = &g + (g ? g-g : 0);
 
11417
  /* HPUX 7.0 cc rejects these. */
 
11418
  ++pcpcc;
 
11419
  ppc = (char**) pcpcc;
 
11420
  pcpcc = (char const *const *) ppc;
 
11421
  { /* SCO 3.2v4 cc rejects this.  */
 
11422
    char *t;
 
11423
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
11424
 
 
11425
    *t++ = 0;
 
11426
    if (s) return 0;
 
11427
  }
 
11428
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
11429
    int x[] = {25, 17};
 
11430
    const int *foo = &x[0];
 
11431
    ++foo;
 
11432
  }
 
11433
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
11434
    typedef const int *iptr;
 
11435
    iptr p = 0;
 
11436
    ++p;
 
11437
  }
 
11438
  { /* AIX XL C 1.02.0.0 rejects this saying
 
11439
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
11440
    struct s { int j; const int *ap[3]; };
 
11441
    struct s *b; b->j = 5;
 
11442
  }
 
11443
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
11444
    const int foo = 10;
 
11445
    if (!foo) return 0;
 
11446
  }
 
11447
  return !cs[0] && !zero.x;
 
11448
#endif
 
11449
 
 
11450
  ;
 
11451
  return 0;
 
11452
}
 
11453
_ACEOF
 
11454
rm -f conftest.$ac_objext
 
11455
if { (ac_try="$ac_compile"
 
11456
case "(($ac_try" in
 
11457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11458
  *) ac_try_echo=$ac_try;;
 
11459
esac
 
11460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11461
  (eval "$ac_compile") 2>conftest.er1
 
11462
  ac_status=$?
 
11463
  grep -v '^ *+' conftest.er1 >conftest.err
 
11464
  rm -f conftest.er1
 
11465
  cat conftest.err >&5
 
11466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11467
  (exit $ac_status); } && {
 
11468
         test -z "$ac_c_werror_flag" ||
 
11469
         test ! -s conftest.err
 
11470
       } && test -s conftest.$ac_objext; then
 
11471
  ac_cv_c_const=yes
 
11472
else
 
11473
  echo "$as_me: failed program was:" >&5
 
11474
sed 's/^/| /' conftest.$ac_ext >&5
 
11475
 
 
11476
        ac_cv_c_const=no
 
11477
fi
 
11478
 
 
11479
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11480
fi
 
11481
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
11482
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
11483
if test $ac_cv_c_const = no; then
 
11484
 
 
11485
cat >>confdefs.h <<\_ACEOF
 
11486
#define const
 
11487
_ACEOF
 
11488
 
 
11489
fi
 
11490
 
 
11491
 
 
11492
  { echo "$as_me:$LINENO: checking for long long int" >&5
 
11493
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
 
11494
if test "${ac_cv_type_long_long_int+set}" = set; then
 
11495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11496
else
 
11497
  cat >conftest.$ac_ext <<_ACEOF
 
11498
 
 
11499
  /* confdefs.h.  */
 
11500
_ACEOF
 
11501
cat confdefs.h >>conftest.$ac_ext
 
11502
cat >>conftest.$ac_ext <<_ACEOF
 
11503
/* end confdefs.h.  */
 
11504
/* Test preprocessor.  */
 
11505
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
11506
        error in preprocessor;
 
11507
      #endif
 
11508
      #if ! (18446744073709551615ULL <= -1ull)
 
11509
        error in preprocessor;
 
11510
      #endif
 
11511
      /* Test literals.  */
 
11512
      long long int ll = 9223372036854775807ll;
 
11513
      long long int nll = -9223372036854775807LL;
 
11514
      unsigned long long int ull = 18446744073709551615ULL;
 
11515
      /* Test constant expressions.   */
 
11516
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
11517
                     ? 1 : -1)];
 
11518
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
11519
                     ? 1 : -1)];
 
11520
      int i = 63;
 
11521
int
 
11522
main ()
 
11523
{
 
11524
/* Test availability of runtime routines for shift and division.  */
 
11525
      long long int llmax = 9223372036854775807ll;
 
11526
      unsigned long long int ullmax = 18446744073709551615ull;
 
11527
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
11528
              | (llmax / ll) | (llmax % ll)
 
11529
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
11530
              | (ullmax / ull) | (ullmax % ull));
 
11531
  ;
 
11532
  return 0;
 
11533
}
 
11534
 
 
11535
_ACEOF
 
11536
rm -f conftest.$ac_objext conftest$ac_exeext
 
11537
if { (ac_try="$ac_link"
 
11538
case "(($ac_try" in
 
11539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11540
  *) ac_try_echo=$ac_try;;
 
11541
esac
 
11542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11543
  (eval "$ac_link") 2>conftest.er1
 
11544
  ac_status=$?
 
11545
  grep -v '^ *+' conftest.er1 >conftest.err
 
11546
  rm -f conftest.er1
 
11547
  cat conftest.err >&5
 
11548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11549
  (exit $ac_status); } && {
 
11550
         test -z "$ac_c_werror_flag" ||
 
11551
         test ! -s conftest.err
 
11552
       } && test -s conftest$ac_exeext &&
 
11553
       $as_test_x conftest$ac_exeext; then
 
11554
                        if test "$cross_compiling" = yes; then
 
11555
  ac_cv_type_long_long_int=yes
 
11556
else
 
11557
  cat >conftest.$ac_ext <<_ACEOF
 
11558
/* confdefs.h.  */
 
11559
_ACEOF
 
11560
cat confdefs.h >>conftest.$ac_ext
 
11561
cat >>conftest.$ac_ext <<_ACEOF
 
11562
/* end confdefs.h.  */
 
11563
#include <limits.h>
 
11564
               #ifndef LLONG_MAX
 
11565
               # define HALF \
 
11566
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
11567
               # define LLONG_MAX (HALF - 1 + HALF)
 
11568
               #endif
 
11569
int
 
11570
main ()
 
11571
{
 
11572
long long int n = 1;
 
11573
               int i;
 
11574
               for (i = 0; ; i++)
 
11575
                 {
 
11576
                   long long int m = n << i;
 
11577
                   if (m >> i != n)
 
11578
                     return 1;
 
11579
                   if (LLONG_MAX / 2 < m)
 
11580
                     break;
 
11581
                 }
 
11582
               return 0;
 
11583
  ;
 
11584
  return 0;
 
11585
}
 
11586
_ACEOF
 
11587
rm -f conftest$ac_exeext
 
11588
if { (ac_try="$ac_link"
 
11589
case "(($ac_try" in
 
11590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11591
  *) ac_try_echo=$ac_try;;
 
11592
esac
 
11593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11594
  (eval "$ac_link") 2>&5
 
11595
  ac_status=$?
 
11596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11597
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11598
  { (case "(($ac_try" in
 
11599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11600
  *) ac_try_echo=$ac_try;;
 
11601
esac
 
11602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11603
  (eval "$ac_try") 2>&5
 
11604
  ac_status=$?
 
11605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11606
  (exit $ac_status); }; }; then
 
11607
  ac_cv_type_long_long_int=yes
 
11608
else
 
11609
  echo "$as_me: program exited with status $ac_status" >&5
 
11610
echo "$as_me: failed program was:" >&5
 
11611
sed 's/^/| /' conftest.$ac_ext >&5
 
11612
 
 
11613
( exit $ac_status )
 
11614
ac_cv_type_long_long_int=no
 
11615
fi
 
11616
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11617
fi
 
11618
 
 
11619
 
 
11620
else
 
11621
  echo "$as_me: failed program was:" >&5
 
11622
sed 's/^/| /' conftest.$ac_ext >&5
 
11623
 
 
11624
        ac_cv_type_long_long_int=no
 
11625
fi
 
11626
 
 
11627
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11628
      conftest$ac_exeext conftest.$ac_ext
 
11629
fi
 
11630
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
11631
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
 
11632
  if test $ac_cv_type_long_long_int = yes; then
 
11633
 
 
11634
cat >>confdefs.h <<\_ACEOF
 
11635
#define HAVE_LONG_LONG_INT 1
 
11636
_ACEOF
 
11637
 
 
11638
  fi
 
11639
 
 
11640
 
 
11641
 
 
11642
{ echo "$as_me:$LINENO: checking for library containing ioperm" >&5
 
11643
echo $ECHO_N "checking for library containing ioperm... $ECHO_C" >&6; }
 
11644
if test "${ac_cv_search_ioperm+set}" = set; then
 
11645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11646
else
 
11647
  ac_func_search_save_LIBS=$LIBS
 
11648
cat >conftest.$ac_ext <<_ACEOF
 
11649
/* confdefs.h.  */
 
11650
_ACEOF
 
11651
cat confdefs.h >>conftest.$ac_ext
 
11652
cat >>conftest.$ac_ext <<_ACEOF
 
11653
/* end confdefs.h.  */
 
11654
 
 
11655
/* Override any GCC internal prototype to avoid an error.
 
11656
   Use char because int might match the return type of a GCC
 
11657
   builtin and then its argument prototype would still apply.  */
 
11658
#ifdef __cplusplus
 
11659
extern "C"
 
11660
#endif
 
11661
char ioperm ();
 
11662
int
 
11663
main ()
 
11664
{
 
11665
return ioperm ();
 
11666
  ;
 
11667
  return 0;
 
11668
}
 
11669
_ACEOF
 
11670
for ac_lib in '' ioperm; do
 
11671
  if test -z "$ac_lib"; then
 
11672
    ac_res="none required"
 
11673
  else
 
11674
    ac_res=-l$ac_lib
 
11675
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11676
  fi
 
11677
  rm -f conftest.$ac_objext conftest$ac_exeext
 
11678
if { (ac_try="$ac_link"
 
11679
case "(($ac_try" in
 
11680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11681
  *) ac_try_echo=$ac_try;;
 
11682
esac
 
11683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11684
  (eval "$ac_link") 2>conftest.er1
 
11685
  ac_status=$?
 
11686
  grep -v '^ *+' conftest.er1 >conftest.err
 
11687
  rm -f conftest.er1
 
11688
  cat conftest.err >&5
 
11689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11690
  (exit $ac_status); } && {
 
11691
         test -z "$ac_c_werror_flag" ||
 
11692
         test ! -s conftest.err
 
11693
       } && test -s conftest$ac_exeext &&
 
11694
       $as_test_x conftest$ac_exeext; then
 
11695
  ac_cv_search_ioperm=$ac_res
 
11696
else
 
11697
  echo "$as_me: failed program was:" >&5
 
11698
sed 's/^/| /' conftest.$ac_ext >&5
 
11699
 
 
11700
 
 
11701
fi
 
11702
 
 
11703
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11704
      conftest$ac_exeext
 
11705
  if test "${ac_cv_search_ioperm+set}" = set; then
 
11706
  break
 
11707
fi
 
11708
done
 
11709
if test "${ac_cv_search_ioperm+set}" = set; then
 
11710
  :
 
11711
else
 
11712
  ac_cv_search_ioperm=no
 
11713
fi
 
11714
rm conftest.$ac_ext
 
11715
LIBS=$ac_func_search_save_LIBS
 
11716
fi
 
11717
{ echo "$as_me:$LINENO: result: $ac_cv_search_ioperm" >&5
 
11718
echo "${ECHO_T}$ac_cv_search_ioperm" >&6; }
 
11719
ac_res=$ac_cv_search_ioperm
 
11720
if test "$ac_res" != no; then
 
11721
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11722
 
 
11723
fi
 
11724
 
 
11725
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
 
11726
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
 
11727
if test "${ac_cv_search_dlopen+set}" = set; then
 
11728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11729
else
 
11730
  ac_func_search_save_LIBS=$LIBS
 
11731
cat >conftest.$ac_ext <<_ACEOF
 
11732
/* confdefs.h.  */
 
11733
_ACEOF
 
11734
cat confdefs.h >>conftest.$ac_ext
 
11735
cat >>conftest.$ac_ext <<_ACEOF
 
11736
/* end confdefs.h.  */
 
11737
 
 
11738
/* Override any GCC internal prototype to avoid an error.
 
11739
   Use char because int might match the return type of a GCC
 
11740
   builtin and then its argument prototype would still apply.  */
 
11741
#ifdef __cplusplus
 
11742
extern "C"
 
11743
#endif
 
11744
char dlopen ();
 
11745
int
 
11746
main ()
 
11747
{
 
11748
return dlopen ();
 
11749
  ;
 
11750
  return 0;
 
11751
}
 
11752
_ACEOF
 
11753
for ac_lib in '' dl; do
 
11754
  if test -z "$ac_lib"; then
 
11755
    ac_res="none required"
 
11756
  else
 
11757
    ac_res=-l$ac_lib
 
11758
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11759
  fi
 
11760
  rm -f conftest.$ac_objext conftest$ac_exeext
 
11761
if { (ac_try="$ac_link"
 
11762
case "(($ac_try" in
 
11763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11764
  *) ac_try_echo=$ac_try;;
 
11765
esac
 
11766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11767
  (eval "$ac_link") 2>conftest.er1
 
11768
  ac_status=$?
 
11769
  grep -v '^ *+' conftest.er1 >conftest.err
 
11770
  rm -f conftest.er1
 
11771
  cat conftest.err >&5
 
11772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11773
  (exit $ac_status); } && {
 
11774
         test -z "$ac_c_werror_flag" ||
 
11775
         test ! -s conftest.err
 
11776
       } && test -s conftest$ac_exeext &&
 
11777
       $as_test_x conftest$ac_exeext; then
 
11778
  ac_cv_search_dlopen=$ac_res
 
11779
else
 
11780
  echo "$as_me: failed program was:" >&5
 
11781
sed 's/^/| /' conftest.$ac_ext >&5
 
11782
 
 
11783
 
 
11784
fi
 
11785
 
 
11786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11787
      conftest$ac_exeext
 
11788
  if test "${ac_cv_search_dlopen+set}" = set; then
 
11789
  break
 
11790
fi
 
11791
done
 
11792
if test "${ac_cv_search_dlopen+set}" = set; then
 
11793
  :
 
11794
else
 
11795
  ac_cv_search_dlopen=no
 
11796
fi
 
11797
rm conftest.$ac_ext
 
11798
LIBS=$ac_func_search_save_LIBS
 
11799
fi
 
11800
{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 
11801
echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 
11802
ac_res=$ac_cv_search_dlopen
 
11803
if test "$ac_res" != no; then
 
11804
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11805
 
 
11806
fi
 
11807
 
 
11808
 
 
11809
 
 
11810
for ac_header in sys/socket.h
 
11811
do
 
11812
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11813
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11814
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11815
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11816
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11818
fi
 
11819
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11820
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11821
echo "${ECHO_T}$ac_res" >&6; }
 
11822
else
 
11823
  # Is the header compilable?
 
11824
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11825
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
11826
cat >conftest.$ac_ext <<_ACEOF
 
11827
/* confdefs.h.  */
 
11828
_ACEOF
 
11829
cat confdefs.h >>conftest.$ac_ext
 
11830
cat >>conftest.$ac_ext <<_ACEOF
 
11831
/* end confdefs.h.  */
 
11832
$ac_includes_default
 
11833
#include <$ac_header>
 
11834
_ACEOF
 
11835
rm -f conftest.$ac_objext
 
11836
if { (ac_try="$ac_compile"
 
11837
case "(($ac_try" in
 
11838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11839
  *) ac_try_echo=$ac_try;;
 
11840
esac
 
11841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11842
  (eval "$ac_compile") 2>conftest.er1
 
11843
  ac_status=$?
 
11844
  grep -v '^ *+' conftest.er1 >conftest.err
 
11845
  rm -f conftest.er1
 
11846
  cat conftest.err >&5
 
11847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11848
  (exit $ac_status); } && {
 
11849
         test -z "$ac_c_werror_flag" ||
 
11850
         test ! -s conftest.err
 
11851
       } && test -s conftest.$ac_objext; then
 
11852
  ac_header_compiler=yes
 
11853
else
 
11854
  echo "$as_me: failed program was:" >&5
 
11855
sed 's/^/| /' conftest.$ac_ext >&5
 
11856
 
 
11857
        ac_header_compiler=no
 
11858
fi
 
11859
 
 
11860
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11861
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11862
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
11863
 
 
11864
# Is the header present?
 
11865
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11866
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
11867
cat >conftest.$ac_ext <<_ACEOF
 
11868
/* confdefs.h.  */
 
11869
_ACEOF
 
11870
cat confdefs.h >>conftest.$ac_ext
 
11871
cat >>conftest.$ac_ext <<_ACEOF
 
11872
/* end confdefs.h.  */
 
11873
#include <$ac_header>
 
11874
_ACEOF
 
11875
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
11876
case "(($ac_try" in
 
11877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11878
  *) ac_try_echo=$ac_try;;
 
11879
esac
 
11880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11881
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
11882
  ac_status=$?
 
11883
  grep -v '^ *+' conftest.er1 >conftest.err
 
11884
  rm -f conftest.er1
 
11885
  cat conftest.err >&5
 
11886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11887
  (exit $ac_status); } >/dev/null && {
 
11888
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
11889
         test ! -s conftest.err
 
11890
       }; then
 
11891
  ac_header_preproc=yes
 
11892
else
 
11893
  echo "$as_me: failed program was:" >&5
 
11894
sed 's/^/| /' conftest.$ac_ext >&5
 
11895
 
 
11896
  ac_header_preproc=no
 
11897
fi
 
11898
 
 
11899
rm -f conftest.err conftest.$ac_ext
 
11900
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11901
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
11902
 
 
11903
# So?  What about this header?
 
11904
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11905
  yes:no: )
 
11906
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11907
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11908
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11909
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11910
    ac_header_preproc=yes
 
11911
    ;;
 
11912
  no:yes:* )
 
11913
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11914
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11915
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11916
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11917
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11918
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11919
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11920
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11921
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11922
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11923
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11924
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11925
    ( cat <<\_ASBOX
 
11926
## -------------------------------------------------------------------------- ##
 
11927
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
11928
## -------------------------------------------------------------------------- ##
 
11929
_ASBOX
 
11930
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
11931
    ;;
 
11932
esac
 
11933
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11934
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11935
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11937
else
 
11938
  eval "$as_ac_Header=\$ac_header_preproc"
 
11939
fi
 
11940
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11941
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11942
echo "${ECHO_T}$ac_res" >&6; }
 
11943
 
 
11944
fi
 
11945
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11946
  cat >>confdefs.h <<_ACEOF
 
11947
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11948
_ACEOF
 
11949
 
 
11950
fi
 
11951
 
 
11952
done
 
11953
 
 
11954
 
 
11955
for ac_header in arpa/inet.h
 
11956
do
 
11957
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11958
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11959
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11960
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11962
else
 
11963
  cat >conftest.$ac_ext <<_ACEOF
 
11964
/* confdefs.h.  */
 
11965
_ACEOF
 
11966
cat confdefs.h >>conftest.$ac_ext
 
11967
cat >>conftest.$ac_ext <<_ACEOF
 
11968
/* end confdefs.h.  */
 
11969
#include <stdio.h>
 
11970
#ifdef STDC_HEADERS
 
11971
# include <stdlib.h>
 
11972
# include <stddef.h>
 
11973
#else
 
11974
# ifdef HAVE_STDLIB_H
 
11975
#  include <stdlib.h>
 
11976
# endif
 
11977
#endif
 
11978
#ifdef HAVE_SYS_SOCKET_H
 
11979
# include <sys/socket.h>
 
11980
#endif
 
11981
 
 
11982
 
 
11983
#include <$ac_header>
 
11984
_ACEOF
 
11985
rm -f conftest.$ac_objext
 
11986
if { (ac_try="$ac_compile"
 
11987
case "(($ac_try" in
 
11988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11989
  *) ac_try_echo=$ac_try;;
 
11990
esac
 
11991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11992
  (eval "$ac_compile") 2>conftest.er1
 
11993
  ac_status=$?
 
11994
  grep -v '^ *+' conftest.er1 >conftest.err
 
11995
  rm -f conftest.er1
 
11996
  cat conftest.err >&5
 
11997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11998
  (exit $ac_status); } && {
 
11999
         test -z "$ac_c_werror_flag" ||
 
12000
         test ! -s conftest.err
 
12001
       } && test -s conftest.$ac_objext; then
 
12002
  eval "$as_ac_Header=yes"
 
12003
else
 
12004
  echo "$as_me: failed program was:" >&5
 
12005
sed 's/^/| /' conftest.$ac_ext >&5
 
12006
 
 
12007
        eval "$as_ac_Header=no"
 
12008
fi
 
12009
 
 
12010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12011
fi
 
12012
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12013
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12014
echo "${ECHO_T}$ac_res" >&6; }
 
12015
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12016
  cat >>confdefs.h <<_ACEOF
 
12017
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12018
_ACEOF
 
12019
 
 
12020
fi
 
12021
 
 
12022
done
 
12023
 
 
12024
 
 
12025
for ac_header in elf.h
 
12026
do
 
12027
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12028
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12029
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12030
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12031
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12033
fi
 
12034
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12035
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12036
echo "${ECHO_T}$ac_res" >&6; }
 
12037
else
 
12038
  # Is the header compilable?
 
12039
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12040
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12041
cat >conftest.$ac_ext <<_ACEOF
 
12042
/* confdefs.h.  */
 
12043
_ACEOF
 
12044
cat confdefs.h >>conftest.$ac_ext
 
12045
cat >>conftest.$ac_ext <<_ACEOF
 
12046
/* end confdefs.h.  */
 
12047
$ac_includes_default
 
12048
#include <$ac_header>
 
12049
_ACEOF
 
12050
rm -f conftest.$ac_objext
 
12051
if { (ac_try="$ac_compile"
 
12052
case "(($ac_try" in
 
12053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12054
  *) ac_try_echo=$ac_try;;
 
12055
esac
 
12056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12057
  (eval "$ac_compile") 2>conftest.er1
 
12058
  ac_status=$?
 
12059
  grep -v '^ *+' conftest.er1 >conftest.err
 
12060
  rm -f conftest.er1
 
12061
  cat conftest.err >&5
 
12062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12063
  (exit $ac_status); } && {
 
12064
         test -z "$ac_c_werror_flag" ||
 
12065
         test ! -s conftest.err
 
12066
       } && test -s conftest.$ac_objext; then
 
12067
  ac_header_compiler=yes
 
12068
else
 
12069
  echo "$as_me: failed program was:" >&5
 
12070
sed 's/^/| /' conftest.$ac_ext >&5
 
12071
 
 
12072
        ac_header_compiler=no
 
12073
fi
 
12074
 
 
12075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12076
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12077
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12078
 
 
12079
# Is the header present?
 
12080
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12081
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12082
cat >conftest.$ac_ext <<_ACEOF
 
12083
/* confdefs.h.  */
 
12084
_ACEOF
 
12085
cat confdefs.h >>conftest.$ac_ext
 
12086
cat >>conftest.$ac_ext <<_ACEOF
 
12087
/* end confdefs.h.  */
 
12088
#include <$ac_header>
 
12089
_ACEOF
 
12090
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12091
case "(($ac_try" in
 
12092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12093
  *) ac_try_echo=$ac_try;;
 
12094
esac
 
12095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12096
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12097
  ac_status=$?
 
12098
  grep -v '^ *+' conftest.er1 >conftest.err
 
12099
  rm -f conftest.er1
 
12100
  cat conftest.err >&5
 
12101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12102
  (exit $ac_status); } >/dev/null && {
 
12103
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12104
         test ! -s conftest.err
 
12105
       }; then
 
12106
  ac_header_preproc=yes
 
12107
else
 
12108
  echo "$as_me: failed program was:" >&5
 
12109
sed 's/^/| /' conftest.$ac_ext >&5
 
12110
 
 
12111
  ac_header_preproc=no
 
12112
fi
 
12113
 
 
12114
rm -f conftest.err conftest.$ac_ext
 
12115
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12116
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12117
 
 
12118
# So?  What about this header?
 
12119
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12120
  yes:no: )
 
12121
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12122
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12123
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12124
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12125
    ac_header_preproc=yes
 
12126
    ;;
 
12127
  no:yes:* )
 
12128
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12129
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12130
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12131
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12132
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12133
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12134
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12135
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12136
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12137
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12138
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12139
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12140
    ( cat <<\_ASBOX
 
12141
## -------------------------------------------------------------------------- ##
 
12142
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
12143
## -------------------------------------------------------------------------- ##
 
12144
_ASBOX
 
12145
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12146
    ;;
 
12147
esac
 
12148
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12149
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12150
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12152
else
 
12153
  eval "$as_ac_Header=\$ac_header_preproc"
 
12154
fi
 
12155
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12156
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12157
echo "${ECHO_T}$ac_res" >&6; }
 
12158
 
 
12159
fi
 
12160
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12161
  cat >>confdefs.h <<_ACEOF
 
12162
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12163
_ACEOF
 
12164
 
 
12165
fi
 
12166
 
 
12167
done
 
12168
 
 
12169
 
 
12170
for ac_header in dirent.h
 
12171
do
 
12172
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12173
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12174
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12175
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12176
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12178
fi
 
12179
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12180
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12181
echo "${ECHO_T}$ac_res" >&6; }
 
12182
else
 
12183
  # Is the header compilable?
 
12184
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12185
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12186
cat >conftest.$ac_ext <<_ACEOF
 
12187
/* confdefs.h.  */
 
12188
_ACEOF
 
12189
cat confdefs.h >>conftest.$ac_ext
 
12190
cat >>conftest.$ac_ext <<_ACEOF
 
12191
/* end confdefs.h.  */
 
12192
$ac_includes_default
 
12193
#include <$ac_header>
 
12194
_ACEOF
 
12195
rm -f conftest.$ac_objext
 
12196
if { (ac_try="$ac_compile"
 
12197
case "(($ac_try" in
 
12198
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12199
  *) ac_try_echo=$ac_try;;
 
12200
esac
 
12201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12202
  (eval "$ac_compile") 2>conftest.er1
 
12203
  ac_status=$?
 
12204
  grep -v '^ *+' conftest.er1 >conftest.err
 
12205
  rm -f conftest.er1
 
12206
  cat conftest.err >&5
 
12207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12208
  (exit $ac_status); } && {
 
12209
         test -z "$ac_c_werror_flag" ||
 
12210
         test ! -s conftest.err
 
12211
       } && test -s conftest.$ac_objext; then
 
12212
  ac_header_compiler=yes
 
12213
else
 
12214
  echo "$as_me: failed program was:" >&5
 
12215
sed 's/^/| /' conftest.$ac_ext >&5
 
12216
 
 
12217
        ac_header_compiler=no
 
12218
fi
 
12219
 
 
12220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12221
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12222
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12223
 
 
12224
# Is the header present?
 
12225
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12226
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12227
cat >conftest.$ac_ext <<_ACEOF
 
12228
/* confdefs.h.  */
 
12229
_ACEOF
 
12230
cat confdefs.h >>conftest.$ac_ext
 
12231
cat >>conftest.$ac_ext <<_ACEOF
 
12232
/* end confdefs.h.  */
 
12233
#include <$ac_header>
 
12234
_ACEOF
 
12235
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12236
case "(($ac_try" in
 
12237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12238
  *) ac_try_echo=$ac_try;;
 
12239
esac
 
12240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12241
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12242
  ac_status=$?
 
12243
  grep -v '^ *+' conftest.er1 >conftest.err
 
12244
  rm -f conftest.er1
 
12245
  cat conftest.err >&5
 
12246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12247
  (exit $ac_status); } >/dev/null && {
 
12248
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12249
         test ! -s conftest.err
 
12250
       }; then
 
12251
  ac_header_preproc=yes
 
12252
else
 
12253
  echo "$as_me: failed program was:" >&5
 
12254
sed 's/^/| /' conftest.$ac_ext >&5
 
12255
 
 
12256
  ac_header_preproc=no
 
12257
fi
 
12258
 
 
12259
rm -f conftest.err conftest.$ac_ext
 
12260
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12261
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12262
 
 
12263
# So?  What about this header?
 
12264
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12265
  yes:no: )
 
12266
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12267
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12268
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12269
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12270
    ac_header_preproc=yes
 
12271
    ;;
 
12272
  no:yes:* )
 
12273
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12274
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12275
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12276
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12277
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12278
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12279
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12280
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12281
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12282
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12283
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12284
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12285
    ( cat <<\_ASBOX
 
12286
## -------------------------------------------------------------------------- ##
 
12287
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
12288
## -------------------------------------------------------------------------- ##
 
12289
_ASBOX
 
12290
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12291
    ;;
 
12292
esac
 
12293
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12294
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12295
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12297
else
 
12298
  eval "$as_ac_Header=\$ac_header_preproc"
 
12299
fi
 
12300
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12301
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12302
echo "${ECHO_T}$ac_res" >&6; }
 
12303
 
 
12304
fi
 
12305
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12306
  cat >>confdefs.h <<_ACEOF
 
12307
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12308
_ACEOF
 
12309
 
 
12310
fi
 
12311
 
 
12312
done
 
12313
 
 
12314
 
 
12315
for ac_header in fcntl.h
 
12316
do
 
12317
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12318
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12319
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12320
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12321
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12323
fi
 
12324
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12325
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12326
echo "${ECHO_T}$ac_res" >&6; }
 
12327
else
 
12328
  # Is the header compilable?
 
12329
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12330
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12331
cat >conftest.$ac_ext <<_ACEOF
 
12332
/* confdefs.h.  */
 
12333
_ACEOF
 
12334
cat confdefs.h >>conftest.$ac_ext
 
12335
cat >>conftest.$ac_ext <<_ACEOF
 
12336
/* end confdefs.h.  */
 
12337
$ac_includes_default
 
12338
#include <$ac_header>
 
12339
_ACEOF
 
12340
rm -f conftest.$ac_objext
 
12341
if { (ac_try="$ac_compile"
 
12342
case "(($ac_try" in
 
12343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12344
  *) ac_try_echo=$ac_try;;
 
12345
esac
 
12346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12347
  (eval "$ac_compile") 2>conftest.er1
 
12348
  ac_status=$?
 
12349
  grep -v '^ *+' conftest.er1 >conftest.err
 
12350
  rm -f conftest.er1
 
12351
  cat conftest.err >&5
 
12352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12353
  (exit $ac_status); } && {
 
12354
         test -z "$ac_c_werror_flag" ||
 
12355
         test ! -s conftest.err
 
12356
       } && test -s conftest.$ac_objext; then
 
12357
  ac_header_compiler=yes
 
12358
else
 
12359
  echo "$as_me: failed program was:" >&5
 
12360
sed 's/^/| /' conftest.$ac_ext >&5
 
12361
 
 
12362
        ac_header_compiler=no
 
12363
fi
 
12364
 
 
12365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12366
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12367
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12368
 
 
12369
# Is the header present?
 
12370
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12371
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12372
cat >conftest.$ac_ext <<_ACEOF
 
12373
/* confdefs.h.  */
 
12374
_ACEOF
 
12375
cat confdefs.h >>conftest.$ac_ext
 
12376
cat >>conftest.$ac_ext <<_ACEOF
 
12377
/* end confdefs.h.  */
 
12378
#include <$ac_header>
 
12379
_ACEOF
 
12380
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12381
case "(($ac_try" in
 
12382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12383
  *) ac_try_echo=$ac_try;;
 
12384
esac
 
12385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12386
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12387
  ac_status=$?
 
12388
  grep -v '^ *+' conftest.er1 >conftest.err
 
12389
  rm -f conftest.er1
 
12390
  cat conftest.err >&5
 
12391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12392
  (exit $ac_status); } >/dev/null && {
 
12393
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12394
         test ! -s conftest.err
 
12395
       }; then
 
12396
  ac_header_preproc=yes
 
12397
else
 
12398
  echo "$as_me: failed program was:" >&5
 
12399
sed 's/^/| /' conftest.$ac_ext >&5
 
12400
 
 
12401
  ac_header_preproc=no
 
12402
fi
 
12403
 
 
12404
rm -f conftest.err conftest.$ac_ext
 
12405
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12406
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12407
 
 
12408
# So?  What about this header?
 
12409
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12410
  yes:no: )
 
12411
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12412
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12413
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12414
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12415
    ac_header_preproc=yes
 
12416
    ;;
 
12417
  no:yes:* )
 
12418
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12419
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12420
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12421
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12422
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12423
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12424
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12425
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12426
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12427
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12428
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12429
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12430
    ( cat <<\_ASBOX
 
12431
## -------------------------------------------------------------------------- ##
 
12432
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
12433
## -------------------------------------------------------------------------- ##
 
12434
_ASBOX
 
12435
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12436
    ;;
 
12437
esac
 
12438
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12439
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12440
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12442
else
 
12443
  eval "$as_ac_Header=\$ac_header_preproc"
 
12444
fi
 
12445
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12446
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12447
echo "${ECHO_T}$ac_res" >&6; }
 
12448
 
 
12449
fi
 
12450
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12451
  cat >>confdefs.h <<_ACEOF
 
12452
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12453
_ACEOF
 
12454
 
 
12455
fi
 
12456
 
 
12457
done
 
12458
 
 
12459
 
 
12460
for ac_header in ifaddrs.h
 
12461
do
 
12462
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12463
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12464
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12465
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12467
else
 
12468
  cat >conftest.$ac_ext <<_ACEOF
 
12469
/* confdefs.h.  */
 
12470
_ACEOF
 
12471
cat confdefs.h >>conftest.$ac_ext
 
12472
cat >>conftest.$ac_ext <<_ACEOF
 
12473
/* end confdefs.h.  */
 
12474
#include <stdio.h>
 
12475
#ifdef STDC_HEADERS
 
12476
# include <stdlib.h>
 
12477
# include <stddef.h>
 
12478
#else
 
12479
# ifdef HAVE_STDLIB_H
 
12480
#  include <stdlib.h>
 
12481
# endif
 
12482
#endif
 
12483
#ifdef HAVE_SYS_SOCKET_H
 
12484
# include <sys/socket.h>
 
12485
#endif
 
12486
 
 
12487
 
 
12488
#include <$ac_header>
 
12489
_ACEOF
 
12490
rm -f conftest.$ac_objext
 
12491
if { (ac_try="$ac_compile"
 
12492
case "(($ac_try" in
 
12493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12494
  *) ac_try_echo=$ac_try;;
 
12495
esac
 
12496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12497
  (eval "$ac_compile") 2>conftest.er1
 
12498
  ac_status=$?
 
12499
  grep -v '^ *+' conftest.er1 >conftest.err
 
12500
  rm -f conftest.er1
 
12501
  cat conftest.err >&5
 
12502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12503
  (exit $ac_status); } && {
 
12504
         test -z "$ac_c_werror_flag" ||
 
12505
         test ! -s conftest.err
 
12506
       } && test -s conftest.$ac_objext; then
 
12507
  eval "$as_ac_Header=yes"
 
12508
else
 
12509
  echo "$as_me: failed program was:" >&5
 
12510
sed 's/^/| /' conftest.$ac_ext >&5
 
12511
 
 
12512
        eval "$as_ac_Header=no"
 
12513
fi
 
12514
 
 
12515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12516
fi
 
12517
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12518
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12519
echo "${ECHO_T}$ac_res" >&6; }
 
12520
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12521
  cat >>confdefs.h <<_ACEOF
 
12522
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12523
_ACEOF
 
12524
 
 
12525
fi
 
12526
 
 
12527
done
 
12528
 
 
12529
 
 
12530
for ac_header in malloc.h
 
12531
do
 
12532
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12533
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12534
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12535
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12536
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12538
fi
 
12539
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12540
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12541
echo "${ECHO_T}$ac_res" >&6; }
 
12542
else
 
12543
  # Is the header compilable?
 
12544
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12545
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12546
cat >conftest.$ac_ext <<_ACEOF
 
12547
/* confdefs.h.  */
 
12548
_ACEOF
 
12549
cat confdefs.h >>conftest.$ac_ext
 
12550
cat >>conftest.$ac_ext <<_ACEOF
 
12551
/* end confdefs.h.  */
 
12552
$ac_includes_default
 
12553
#include <$ac_header>
 
12554
_ACEOF
 
12555
rm -f conftest.$ac_objext
 
12556
if { (ac_try="$ac_compile"
 
12557
case "(($ac_try" in
 
12558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12559
  *) ac_try_echo=$ac_try;;
 
12560
esac
 
12561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12562
  (eval "$ac_compile") 2>conftest.er1
 
12563
  ac_status=$?
 
12564
  grep -v '^ *+' conftest.er1 >conftest.err
 
12565
  rm -f conftest.er1
 
12566
  cat conftest.err >&5
 
12567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12568
  (exit $ac_status); } && {
 
12569
         test -z "$ac_c_werror_flag" ||
 
12570
         test ! -s conftest.err
 
12571
       } && test -s conftest.$ac_objext; then
 
12572
  ac_header_compiler=yes
 
12573
else
 
12574
  echo "$as_me: failed program was:" >&5
 
12575
sed 's/^/| /' conftest.$ac_ext >&5
 
12576
 
 
12577
        ac_header_compiler=no
 
12578
fi
 
12579
 
 
12580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12581
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12582
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12583
 
 
12584
# Is the header present?
 
12585
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12586
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12587
cat >conftest.$ac_ext <<_ACEOF
 
12588
/* confdefs.h.  */
 
12589
_ACEOF
 
12590
cat confdefs.h >>conftest.$ac_ext
 
12591
cat >>conftest.$ac_ext <<_ACEOF
 
12592
/* end confdefs.h.  */
 
12593
#include <$ac_header>
 
12594
_ACEOF
 
12595
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12596
case "(($ac_try" in
 
12597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12598
  *) ac_try_echo=$ac_try;;
 
12599
esac
 
12600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12601
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12602
  ac_status=$?
 
12603
  grep -v '^ *+' conftest.er1 >conftest.err
 
12604
  rm -f conftest.er1
 
12605
  cat conftest.err >&5
 
12606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12607
  (exit $ac_status); } >/dev/null && {
 
12608
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12609
         test ! -s conftest.err
 
12610
       }; then
 
12611
  ac_header_preproc=yes
 
12612
else
 
12613
  echo "$as_me: failed program was:" >&5
 
12614
sed 's/^/| /' conftest.$ac_ext >&5
 
12615
 
 
12616
  ac_header_preproc=no
 
12617
fi
 
12618
 
 
12619
rm -f conftest.err conftest.$ac_ext
 
12620
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12621
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12622
 
 
12623
# So?  What about this header?
 
12624
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12625
  yes:no: )
 
12626
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12627
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12628
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12629
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12630
    ac_header_preproc=yes
 
12631
    ;;
 
12632
  no:yes:* )
 
12633
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12634
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12635
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12636
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12637
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12638
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12639
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12640
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12641
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12642
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12643
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12644
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12645
    ( cat <<\_ASBOX
 
12646
## -------------------------------------------------------------------------- ##
 
12647
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
12648
## -------------------------------------------------------------------------- ##
 
12649
_ASBOX
 
12650
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12651
    ;;
 
12652
esac
 
12653
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12654
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12655
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12657
else
 
12658
  eval "$as_ac_Header=\$ac_header_preproc"
 
12659
fi
 
12660
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12661
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12662
echo "${ECHO_T}$ac_res" >&6; }
 
12663
 
 
12664
fi
 
12665
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12666
  cat >>confdefs.h <<_ACEOF
 
12667
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12668
_ACEOF
 
12669
 
 
12670
fi
 
12671
 
 
12672
done
 
12673
 
 
12674
 
 
12675
for ac_header in netdb.h
 
12676
do
 
12677
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12678
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12679
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12680
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12681
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12683
fi
 
12684
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12685
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12686
echo "${ECHO_T}$ac_res" >&6; }
 
12687
else
 
12688
  # Is the header compilable?
 
12689
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12690
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12691
cat >conftest.$ac_ext <<_ACEOF
 
12692
/* confdefs.h.  */
 
12693
_ACEOF
 
12694
cat confdefs.h >>conftest.$ac_ext
 
12695
cat >>conftest.$ac_ext <<_ACEOF
 
12696
/* end confdefs.h.  */
 
12697
$ac_includes_default
 
12698
#include <$ac_header>
 
12699
_ACEOF
 
12700
rm -f conftest.$ac_objext
 
12701
if { (ac_try="$ac_compile"
 
12702
case "(($ac_try" in
 
12703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12704
  *) ac_try_echo=$ac_try;;
 
12705
esac
 
12706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12707
  (eval "$ac_compile") 2>conftest.er1
 
12708
  ac_status=$?
 
12709
  grep -v '^ *+' conftest.er1 >conftest.err
 
12710
  rm -f conftest.er1
 
12711
  cat conftest.err >&5
 
12712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12713
  (exit $ac_status); } && {
 
12714
         test -z "$ac_c_werror_flag" ||
 
12715
         test ! -s conftest.err
 
12716
       } && test -s conftest.$ac_objext; then
 
12717
  ac_header_compiler=yes
 
12718
else
 
12719
  echo "$as_me: failed program was:" >&5
 
12720
sed 's/^/| /' conftest.$ac_ext >&5
 
12721
 
 
12722
        ac_header_compiler=no
 
12723
fi
 
12724
 
 
12725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12726
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12727
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12728
 
 
12729
# Is the header present?
 
12730
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12731
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12732
cat >conftest.$ac_ext <<_ACEOF
 
12733
/* confdefs.h.  */
 
12734
_ACEOF
 
12735
cat confdefs.h >>conftest.$ac_ext
 
12736
cat >>conftest.$ac_ext <<_ACEOF
 
12737
/* end confdefs.h.  */
 
12738
#include <$ac_header>
 
12739
_ACEOF
 
12740
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12741
case "(($ac_try" in
 
12742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12743
  *) ac_try_echo=$ac_try;;
 
12744
esac
 
12745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12746
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12747
  ac_status=$?
 
12748
  grep -v '^ *+' conftest.er1 >conftest.err
 
12749
  rm -f conftest.er1
 
12750
  cat conftest.err >&5
 
12751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12752
  (exit $ac_status); } >/dev/null && {
 
12753
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12754
         test ! -s conftest.err
 
12755
       }; then
 
12756
  ac_header_preproc=yes
 
12757
else
 
12758
  echo "$as_me: failed program was:" >&5
 
12759
sed 's/^/| /' conftest.$ac_ext >&5
 
12760
 
 
12761
  ac_header_preproc=no
 
12762
fi
 
12763
 
 
12764
rm -f conftest.err conftest.$ac_ext
 
12765
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12766
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12767
 
 
12768
# So?  What about this header?
 
12769
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12770
  yes:no: )
 
12771
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12772
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12773
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12774
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12775
    ac_header_preproc=yes
 
12776
    ;;
 
12777
  no:yes:* )
 
12778
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12779
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12780
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12781
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12782
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12783
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12784
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12785
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12786
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12787
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12788
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12789
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12790
    ( cat <<\_ASBOX
 
12791
## -------------------------------------------------------------------------- ##
 
12792
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
12793
## -------------------------------------------------------------------------- ##
 
12794
_ASBOX
 
12795
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12796
    ;;
 
12797
esac
 
12798
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12799
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12800
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12802
else
 
12803
  eval "$as_ac_Header=\$ac_header_preproc"
 
12804
fi
 
12805
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12806
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12807
echo "${ECHO_T}$ac_res" >&6; }
 
12808
 
 
12809
fi
 
12810
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12811
  cat >>confdefs.h <<_ACEOF
 
12812
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12813
_ACEOF
 
12814
 
 
12815
fi
 
12816
 
 
12817
done
 
12818
 
 
12819
 
 
12820
for ac_header in netinet/in.h
 
12821
do
 
12822
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12823
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12824
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12825
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12827
else
 
12828
  cat >conftest.$ac_ext <<_ACEOF
 
12829
/* confdefs.h.  */
 
12830
_ACEOF
 
12831
cat confdefs.h >>conftest.$ac_ext
 
12832
cat >>conftest.$ac_ext <<_ACEOF
 
12833
/* end confdefs.h.  */
 
12834
#include <stdio.h>
 
12835
#ifdef STDC_HEADERS
 
12836
# include <stdlib.h>
 
12837
# include <stddef.h>
 
12838
#else
 
12839
# ifdef HAVE_STDLIB_H
 
12840
#  include <stdlib.h>
 
12841
# endif
 
12842
#endif
 
12843
#ifdef HAVE_SYS_SOCKET_H
 
12844
# include <sys/socket.h>
 
12845
#endif
 
12846
 
 
12847
 
 
12848
#include <$ac_header>
 
12849
_ACEOF
 
12850
rm -f conftest.$ac_objext
 
12851
if { (ac_try="$ac_compile"
 
12852
case "(($ac_try" in
 
12853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12854
  *) ac_try_echo=$ac_try;;
 
12855
esac
 
12856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12857
  (eval "$ac_compile") 2>conftest.er1
 
12858
  ac_status=$?
 
12859
  grep -v '^ *+' conftest.er1 >conftest.err
 
12860
  rm -f conftest.er1
 
12861
  cat conftest.err >&5
 
12862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12863
  (exit $ac_status); } && {
 
12864
         test -z "$ac_c_werror_flag" ||
 
12865
         test ! -s conftest.err
 
12866
       } && test -s conftest.$ac_objext; then
 
12867
  eval "$as_ac_Header=yes"
 
12868
else
 
12869
  echo "$as_me: failed program was:" >&5
 
12870
sed 's/^/| /' conftest.$ac_ext >&5
 
12871
 
 
12872
        eval "$as_ac_Header=no"
 
12873
fi
 
12874
 
 
12875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12876
fi
 
12877
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12878
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12879
echo "${ECHO_T}$ac_res" >&6; }
 
12880
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12881
  cat >>confdefs.h <<_ACEOF
 
12882
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12883
_ACEOF
 
12884
 
 
12885
fi
 
12886
 
 
12887
done
 
12888
 
 
12889
 
 
12890
for ac_header in netinet/tcp.h
 
12891
do
 
12892
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12893
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12894
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12895
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12897
else
 
12898
  cat >conftest.$ac_ext <<_ACEOF
 
12899
/* confdefs.h.  */
 
12900
_ACEOF
 
12901
cat confdefs.h >>conftest.$ac_ext
 
12902
cat >>conftest.$ac_ext <<_ACEOF
 
12903
/* end confdefs.h.  */
 
12904
#include <stdio.h>
 
12905
#ifdef STDC_HEADERS
 
12906
# include <stdlib.h>
 
12907
# include <stddef.h>
 
12908
#else
 
12909
# ifdef HAVE_STDLIB_H
 
12910
#  include <stdlib.h>
 
12911
# endif
 
12912
#endif
 
12913
#ifdef HAVE_SYS_SOCKET_H
 
12914
# include <sys/socket.h>
 
12915
#endif
 
12916
 
 
12917
 
 
12918
#include <$ac_header>
 
12919
_ACEOF
 
12920
rm -f conftest.$ac_objext
 
12921
if { (ac_try="$ac_compile"
 
12922
case "(($ac_try" in
 
12923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12924
  *) ac_try_echo=$ac_try;;
 
12925
esac
 
12926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12927
  (eval "$ac_compile") 2>conftest.er1
 
12928
  ac_status=$?
 
12929
  grep -v '^ *+' conftest.er1 >conftest.err
 
12930
  rm -f conftest.er1
 
12931
  cat conftest.err >&5
 
12932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12933
  (exit $ac_status); } && {
 
12934
         test -z "$ac_c_werror_flag" ||
 
12935
         test ! -s conftest.err
 
12936
       } && test -s conftest.$ac_objext; then
 
12937
  eval "$as_ac_Header=yes"
 
12938
else
 
12939
  echo "$as_me: failed program was:" >&5
 
12940
sed 's/^/| /' conftest.$ac_ext >&5
 
12941
 
 
12942
        eval "$as_ac_Header=no"
 
12943
fi
 
12944
 
 
12945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12946
fi
 
12947
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12948
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12949
echo "${ECHO_T}$ac_res" >&6; }
 
12950
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12951
  cat >>confdefs.h <<_ACEOF
 
12952
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12953
_ACEOF
 
12954
 
 
12955
fi
 
12956
 
 
12957
done
 
12958
 
 
12959
 
 
12960
for ac_header in pthread.h
 
12961
do
 
12962
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12963
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12964
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12965
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12966
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12968
fi
 
12969
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12970
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12971
echo "${ECHO_T}$ac_res" >&6; }
 
12972
else
 
12973
  # Is the header compilable?
 
12974
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12975
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12976
cat >conftest.$ac_ext <<_ACEOF
 
12977
/* confdefs.h.  */
 
12978
_ACEOF
 
12979
cat confdefs.h >>conftest.$ac_ext
 
12980
cat >>conftest.$ac_ext <<_ACEOF
 
12981
/* end confdefs.h.  */
 
12982
$ac_includes_default
 
12983
#include <$ac_header>
 
12984
_ACEOF
 
12985
rm -f conftest.$ac_objext
 
12986
if { (ac_try="$ac_compile"
 
12987
case "(($ac_try" in
 
12988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12989
  *) ac_try_echo=$ac_try;;
 
12990
esac
 
12991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12992
  (eval "$ac_compile") 2>conftest.er1
 
12993
  ac_status=$?
 
12994
  grep -v '^ *+' conftest.er1 >conftest.err
 
12995
  rm -f conftest.er1
 
12996
  cat conftest.err >&5
 
12997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12998
  (exit $ac_status); } && {
 
12999
         test -z "$ac_c_werror_flag" ||
 
13000
         test ! -s conftest.err
 
13001
       } && test -s conftest.$ac_objext; then
 
13002
  ac_header_compiler=yes
 
13003
else
 
13004
  echo "$as_me: failed program was:" >&5
 
13005
sed 's/^/| /' conftest.$ac_ext >&5
 
13006
 
 
13007
        ac_header_compiler=no
 
13008
fi
 
13009
 
 
13010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13011
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13012
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13013
 
 
13014
# Is the header present?
 
13015
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13016
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
13017
cat >conftest.$ac_ext <<_ACEOF
 
13018
/* confdefs.h.  */
 
13019
_ACEOF
 
13020
cat confdefs.h >>conftest.$ac_ext
 
13021
cat >>conftest.$ac_ext <<_ACEOF
 
13022
/* end confdefs.h.  */
 
13023
#include <$ac_header>
 
13024
_ACEOF
 
13025
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13026
case "(($ac_try" in
 
13027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13028
  *) ac_try_echo=$ac_try;;
 
13029
esac
 
13030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13031
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13032
  ac_status=$?
 
13033
  grep -v '^ *+' conftest.er1 >conftest.err
 
13034
  rm -f conftest.er1
 
13035
  cat conftest.err >&5
 
13036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13037
  (exit $ac_status); } >/dev/null && {
 
13038
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13039
         test ! -s conftest.err
 
13040
       }; then
 
13041
  ac_header_preproc=yes
 
13042
else
 
13043
  echo "$as_me: failed program was:" >&5
 
13044
sed 's/^/| /' conftest.$ac_ext >&5
 
13045
 
 
13046
  ac_header_preproc=no
 
13047
fi
 
13048
 
 
13049
rm -f conftest.err conftest.$ac_ext
 
13050
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13051
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13052
 
 
13053
# So?  What about this header?
 
13054
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13055
  yes:no: )
 
13056
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13057
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13058
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13059
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13060
    ac_header_preproc=yes
 
13061
    ;;
 
13062
  no:yes:* )
 
13063
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13064
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13065
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13066
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13067
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13068
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13069
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13070
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13071
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13072
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13073
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13074
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13075
    ( cat <<\_ASBOX
 
13076
## -------------------------------------------------------------------------- ##
 
13077
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
13078
## -------------------------------------------------------------------------- ##
 
13079
_ASBOX
 
13080
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13081
    ;;
 
13082
esac
 
13083
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13084
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13085
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13087
else
 
13088
  eval "$as_ac_Header=\$ac_header_preproc"
 
13089
fi
 
13090
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13091
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13092
echo "${ECHO_T}$ac_res" >&6; }
 
13093
 
 
13094
fi
 
13095
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13096
  cat >>confdefs.h <<_ACEOF
 
13097
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13098
_ACEOF
 
13099
 
 
13100
fi
 
13101
 
 
13102
done
 
13103
 
 
13104
 
 
13105
for ac_header in strings.h
 
13106
do
 
13107
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13108
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13109
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13110
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13111
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13113
fi
 
13114
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13115
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13116
echo "${ECHO_T}$ac_res" >&6; }
 
13117
else
 
13118
  # Is the header compilable?
 
13119
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13120
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
13121
cat >conftest.$ac_ext <<_ACEOF
 
13122
/* confdefs.h.  */
 
13123
_ACEOF
 
13124
cat confdefs.h >>conftest.$ac_ext
 
13125
cat >>conftest.$ac_ext <<_ACEOF
 
13126
/* end confdefs.h.  */
 
13127
$ac_includes_default
 
13128
#include <$ac_header>
 
13129
_ACEOF
 
13130
rm -f conftest.$ac_objext
 
13131
if { (ac_try="$ac_compile"
 
13132
case "(($ac_try" in
 
13133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13134
  *) ac_try_echo=$ac_try;;
 
13135
esac
 
13136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13137
  (eval "$ac_compile") 2>conftest.er1
 
13138
  ac_status=$?
 
13139
  grep -v '^ *+' conftest.er1 >conftest.err
 
13140
  rm -f conftest.er1
 
13141
  cat conftest.err >&5
 
13142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13143
  (exit $ac_status); } && {
 
13144
         test -z "$ac_c_werror_flag" ||
 
13145
         test ! -s conftest.err
 
13146
       } && test -s conftest.$ac_objext; then
 
13147
  ac_header_compiler=yes
 
13148
else
 
13149
  echo "$as_me: failed program was:" >&5
 
13150
sed 's/^/| /' conftest.$ac_ext >&5
 
13151
 
 
13152
        ac_header_compiler=no
 
13153
fi
 
13154
 
 
13155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13156
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13157
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13158
 
 
13159
# Is the header present?
 
13160
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13161
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
13162
cat >conftest.$ac_ext <<_ACEOF
 
13163
/* confdefs.h.  */
 
13164
_ACEOF
 
13165
cat confdefs.h >>conftest.$ac_ext
 
13166
cat >>conftest.$ac_ext <<_ACEOF
 
13167
/* end confdefs.h.  */
 
13168
#include <$ac_header>
 
13169
_ACEOF
 
13170
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13171
case "(($ac_try" in
 
13172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13173
  *) ac_try_echo=$ac_try;;
 
13174
esac
 
13175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13176
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13177
  ac_status=$?
 
13178
  grep -v '^ *+' conftest.er1 >conftest.err
 
13179
  rm -f conftest.er1
 
13180
  cat conftest.err >&5
 
13181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13182
  (exit $ac_status); } >/dev/null && {
 
13183
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13184
         test ! -s conftest.err
 
13185
       }; then
 
13186
  ac_header_preproc=yes
 
13187
else
 
13188
  echo "$as_me: failed program was:" >&5
 
13189
sed 's/^/| /' conftest.$ac_ext >&5
 
13190
 
 
13191
  ac_header_preproc=no
 
13192
fi
 
13193
 
 
13194
rm -f conftest.err conftest.$ac_ext
 
13195
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13196
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13197
 
 
13198
# So?  What about this header?
 
13199
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13200
  yes:no: )
 
13201
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13202
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13203
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13204
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13205
    ac_header_preproc=yes
 
13206
    ;;
 
13207
  no:yes:* )
 
13208
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13209
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13210
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13211
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13212
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13213
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13214
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13215
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13216
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13217
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13218
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13219
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13220
    ( cat <<\_ASBOX
 
13221
## -------------------------------------------------------------------------- ##
 
13222
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
13223
## -------------------------------------------------------------------------- ##
 
13224
_ASBOX
 
13225
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13226
    ;;
 
13227
esac
 
13228
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13229
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13230
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13232
else
 
13233
  eval "$as_ac_Header=\$ac_header_preproc"
 
13234
fi
 
13235
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13236
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13237
echo "${ECHO_T}$ac_res" >&6; }
 
13238
 
 
13239
fi
 
13240
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13241
  cat >>confdefs.h <<_ACEOF
 
13242
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13243
_ACEOF
 
13244
 
 
13245
fi
 
13246
 
 
13247
done
 
13248
 
 
13249
 
 
13250
for ac_header in sys/ioctl.h
 
13251
do
 
13252
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13253
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13254
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13255
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13256
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13258
fi
 
13259
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13260
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13261
echo "${ECHO_T}$ac_res" >&6; }
 
13262
else
 
13263
  # Is the header compilable?
 
13264
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13265
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
13266
cat >conftest.$ac_ext <<_ACEOF
 
13267
/* confdefs.h.  */
 
13268
_ACEOF
 
13269
cat confdefs.h >>conftest.$ac_ext
 
13270
cat >>conftest.$ac_ext <<_ACEOF
 
13271
/* end confdefs.h.  */
 
13272
$ac_includes_default
 
13273
#include <$ac_header>
 
13274
_ACEOF
 
13275
rm -f conftest.$ac_objext
 
13276
if { (ac_try="$ac_compile"
 
13277
case "(($ac_try" in
 
13278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13279
  *) ac_try_echo=$ac_try;;
 
13280
esac
 
13281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13282
  (eval "$ac_compile") 2>conftest.er1
 
13283
  ac_status=$?
 
13284
  grep -v '^ *+' conftest.er1 >conftest.err
 
13285
  rm -f conftest.er1
 
13286
  cat conftest.err >&5
 
13287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13288
  (exit $ac_status); } && {
 
13289
         test -z "$ac_c_werror_flag" ||
 
13290
         test ! -s conftest.err
 
13291
       } && test -s conftest.$ac_objext; then
 
13292
  ac_header_compiler=yes
 
13293
else
 
13294
  echo "$as_me: failed program was:" >&5
 
13295
sed 's/^/| /' conftest.$ac_ext >&5
 
13296
 
 
13297
        ac_header_compiler=no
 
13298
fi
 
13299
 
 
13300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13301
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13302
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13303
 
 
13304
# Is the header present?
 
13305
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13306
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
13307
cat >conftest.$ac_ext <<_ACEOF
 
13308
/* confdefs.h.  */
 
13309
_ACEOF
 
13310
cat confdefs.h >>conftest.$ac_ext
 
13311
cat >>conftest.$ac_ext <<_ACEOF
 
13312
/* end confdefs.h.  */
 
13313
#include <$ac_header>
 
13314
_ACEOF
 
13315
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13316
case "(($ac_try" in
 
13317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13318
  *) ac_try_echo=$ac_try;;
 
13319
esac
 
13320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13321
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13322
  ac_status=$?
 
13323
  grep -v '^ *+' conftest.er1 >conftest.err
 
13324
  rm -f conftest.er1
 
13325
  cat conftest.err >&5
 
13326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13327
  (exit $ac_status); } >/dev/null && {
 
13328
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13329
         test ! -s conftest.err
 
13330
       }; then
 
13331
  ac_header_preproc=yes
 
13332
else
 
13333
  echo "$as_me: failed program was:" >&5
 
13334
sed 's/^/| /' conftest.$ac_ext >&5
 
13335
 
 
13336
  ac_header_preproc=no
 
13337
fi
 
13338
 
 
13339
rm -f conftest.err conftest.$ac_ext
 
13340
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13341
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13342
 
 
13343
# So?  What about this header?
 
13344
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13345
  yes:no: )
 
13346
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13347
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13348
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13349
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13350
    ac_header_preproc=yes
 
13351
    ;;
 
13352
  no:yes:* )
 
13353
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13354
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13355
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13356
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13357
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13358
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13359
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13360
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13361
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13362
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13363
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13364
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13365
    ( cat <<\_ASBOX
 
13366
## -------------------------------------------------------------------------- ##
 
13367
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
13368
## -------------------------------------------------------------------------- ##
 
13369
_ASBOX
 
13370
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13371
    ;;
 
13372
esac
 
13373
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13374
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13375
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13377
else
 
13378
  eval "$as_ac_Header=\$ac_header_preproc"
 
13379
fi
 
13380
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13381
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13382
echo "${ECHO_T}$ac_res" >&6; }
 
13383
 
 
13384
fi
 
13385
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13386
  cat >>confdefs.h <<_ACEOF
 
13387
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13388
_ACEOF
 
13389
 
 
13390
fi
 
13391
 
 
13392
done
 
13393
 
 
13394
 
 
13395
for ac_header in sys/param.h
 
13396
do
 
13397
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13398
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13399
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13400
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13401
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13403
fi
 
13404
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13405
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13406
echo "${ECHO_T}$ac_res" >&6; }
 
13407
else
 
13408
  # Is the header compilable?
 
13409
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13410
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
13411
cat >conftest.$ac_ext <<_ACEOF
 
13412
/* confdefs.h.  */
 
13413
_ACEOF
 
13414
cat confdefs.h >>conftest.$ac_ext
 
13415
cat >>conftest.$ac_ext <<_ACEOF
 
13416
/* end confdefs.h.  */
 
13417
$ac_includes_default
 
13418
#include <$ac_header>
 
13419
_ACEOF
 
13420
rm -f conftest.$ac_objext
 
13421
if { (ac_try="$ac_compile"
 
13422
case "(($ac_try" in
 
13423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13424
  *) ac_try_echo=$ac_try;;
 
13425
esac
 
13426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13427
  (eval "$ac_compile") 2>conftest.er1
 
13428
  ac_status=$?
 
13429
  grep -v '^ *+' conftest.er1 >conftest.err
 
13430
  rm -f conftest.er1
 
13431
  cat conftest.err >&5
 
13432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13433
  (exit $ac_status); } && {
 
13434
         test -z "$ac_c_werror_flag" ||
 
13435
         test ! -s conftest.err
 
13436
       } && test -s conftest.$ac_objext; then
 
13437
  ac_header_compiler=yes
 
13438
else
 
13439
  echo "$as_me: failed program was:" >&5
 
13440
sed 's/^/| /' conftest.$ac_ext >&5
 
13441
 
 
13442
        ac_header_compiler=no
 
13443
fi
 
13444
 
 
13445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13446
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13447
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13448
 
 
13449
# Is the header present?
 
13450
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13451
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
13452
cat >conftest.$ac_ext <<_ACEOF
 
13453
/* confdefs.h.  */
 
13454
_ACEOF
 
13455
cat confdefs.h >>conftest.$ac_ext
 
13456
cat >>conftest.$ac_ext <<_ACEOF
 
13457
/* end confdefs.h.  */
 
13458
#include <$ac_header>
 
13459
_ACEOF
 
13460
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13461
case "(($ac_try" in
 
13462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13463
  *) ac_try_echo=$ac_try;;
 
13464
esac
 
13465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13466
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13467
  ac_status=$?
 
13468
  grep -v '^ *+' conftest.er1 >conftest.err
 
13469
  rm -f conftest.er1
 
13470
  cat conftest.err >&5
 
13471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13472
  (exit $ac_status); } >/dev/null && {
 
13473
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13474
         test ! -s conftest.err
 
13475
       }; then
 
13476
  ac_header_preproc=yes
 
13477
else
 
13478
  echo "$as_me: failed program was:" >&5
 
13479
sed 's/^/| /' conftest.$ac_ext >&5
 
13480
 
 
13481
  ac_header_preproc=no
 
13482
fi
 
13483
 
 
13484
rm -f conftest.err conftest.$ac_ext
 
13485
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13486
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13487
 
 
13488
# So?  What about this header?
 
13489
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13490
  yes:no: )
 
13491
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13492
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13493
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13494
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13495
    ac_header_preproc=yes
 
13496
    ;;
 
13497
  no:yes:* )
 
13498
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13499
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13500
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13501
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13502
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13503
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13504
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13505
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13506
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13507
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13508
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13509
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13510
    ( cat <<\_ASBOX
 
13511
## -------------------------------------------------------------------------- ##
 
13512
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
13513
## -------------------------------------------------------------------------- ##
 
13514
_ASBOX
 
13515
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13516
    ;;
 
13517
esac
 
13518
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13519
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13520
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13522
else
 
13523
  eval "$as_ac_Header=\$ac_header_preproc"
 
13524
fi
 
13525
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13526
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13527
echo "${ECHO_T}$ac_res" >&6; }
 
13528
 
 
13529
fi
 
13530
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13531
  cat >>confdefs.h <<_ACEOF
 
13532
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13533
_ACEOF
 
13534
 
 
13535
fi
 
13536
 
 
13537
done
 
13538
 
 
13539
 
 
13540
for ac_header in sys/poll.h
 
13541
do
 
13542
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13543
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13544
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13545
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13546
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13548
fi
 
13549
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13550
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13551
echo "${ECHO_T}$ac_res" >&6; }
 
13552
else
 
13553
  # Is the header compilable?
 
13554
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13555
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
13556
cat >conftest.$ac_ext <<_ACEOF
 
13557
/* confdefs.h.  */
 
13558
_ACEOF
 
13559
cat confdefs.h >>conftest.$ac_ext
 
13560
cat >>conftest.$ac_ext <<_ACEOF
 
13561
/* end confdefs.h.  */
 
13562
$ac_includes_default
 
13563
#include <$ac_header>
 
13564
_ACEOF
 
13565
rm -f conftest.$ac_objext
 
13566
if { (ac_try="$ac_compile"
 
13567
case "(($ac_try" in
 
13568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13569
  *) ac_try_echo=$ac_try;;
 
13570
esac
 
13571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13572
  (eval "$ac_compile") 2>conftest.er1
 
13573
  ac_status=$?
 
13574
  grep -v '^ *+' conftest.er1 >conftest.err
 
13575
  rm -f conftest.er1
 
13576
  cat conftest.err >&5
 
13577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13578
  (exit $ac_status); } && {
 
13579
         test -z "$ac_c_werror_flag" ||
 
13580
         test ! -s conftest.err
 
13581
       } && test -s conftest.$ac_objext; then
 
13582
  ac_header_compiler=yes
 
13583
else
 
13584
  echo "$as_me: failed program was:" >&5
 
13585
sed 's/^/| /' conftest.$ac_ext >&5
 
13586
 
 
13587
        ac_header_compiler=no
 
13588
fi
 
13589
 
 
13590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13591
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13592
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13593
 
 
13594
# Is the header present?
 
13595
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13596
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
13597
cat >conftest.$ac_ext <<_ACEOF
 
13598
/* confdefs.h.  */
 
13599
_ACEOF
 
13600
cat confdefs.h >>conftest.$ac_ext
 
13601
cat >>conftest.$ac_ext <<_ACEOF
 
13602
/* end confdefs.h.  */
 
13603
#include <$ac_header>
 
13604
_ACEOF
 
13605
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13606
case "(($ac_try" in
 
13607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13608
  *) ac_try_echo=$ac_try;;
 
13609
esac
 
13610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13611
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13612
  ac_status=$?
 
13613
  grep -v '^ *+' conftest.er1 >conftest.err
 
13614
  rm -f conftest.er1
 
13615
  cat conftest.err >&5
 
13616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13617
  (exit $ac_status); } >/dev/null && {
 
13618
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13619
         test ! -s conftest.err
 
13620
       }; then
 
13621
  ac_header_preproc=yes
 
13622
else
 
13623
  echo "$as_me: failed program was:" >&5
 
13624
sed 's/^/| /' conftest.$ac_ext >&5
 
13625
 
 
13626
  ac_header_preproc=no
 
13627
fi
 
13628
 
 
13629
rm -f conftest.err conftest.$ac_ext
 
13630
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13631
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13632
 
 
13633
# So?  What about this header?
 
13634
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13635
  yes:no: )
 
13636
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13637
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13638
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13639
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13640
    ac_header_preproc=yes
 
13641
    ;;
 
13642
  no:yes:* )
 
13643
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13644
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13645
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13646
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13647
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13648
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13649
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13650
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13651
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13652
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13653
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13654
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13655
    ( cat <<\_ASBOX
 
13656
## -------------------------------------------------------------------------- ##
 
13657
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
13658
## -------------------------------------------------------------------------- ##
 
13659
_ASBOX
 
13660
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13661
    ;;
 
13662
esac
 
13663
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13664
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13665
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13667
else
 
13668
  eval "$as_ac_Header=\$ac_header_preproc"
 
13669
fi
 
13670
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13671
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13672
echo "${ECHO_T}$ac_res" >&6; }
 
13673
 
 
13674
fi
 
13675
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13676
  cat >>confdefs.h <<_ACEOF
 
13677
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13678
_ACEOF
 
13679
 
 
13680
fi
 
13681
 
 
13682
done
 
13683
 
 
13684
 
 
13685
for ac_header in sys/select.h
 
13686
do
 
13687
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13688
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13689
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13691
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13693
fi
 
13694
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13695
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13696
echo "${ECHO_T}$ac_res" >&6; }
 
13697
else
 
13698
  # Is the header compilable?
 
13699
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13700
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
13701
cat >conftest.$ac_ext <<_ACEOF
 
13702
/* confdefs.h.  */
 
13703
_ACEOF
 
13704
cat confdefs.h >>conftest.$ac_ext
 
13705
cat >>conftest.$ac_ext <<_ACEOF
 
13706
/* end confdefs.h.  */
 
13707
$ac_includes_default
 
13708
#include <$ac_header>
 
13709
_ACEOF
 
13710
rm -f conftest.$ac_objext
 
13711
if { (ac_try="$ac_compile"
 
13712
case "(($ac_try" in
 
13713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13714
  *) ac_try_echo=$ac_try;;
 
13715
esac
 
13716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13717
  (eval "$ac_compile") 2>conftest.er1
 
13718
  ac_status=$?
 
13719
  grep -v '^ *+' conftest.er1 >conftest.err
 
13720
  rm -f conftest.er1
 
13721
  cat conftest.err >&5
 
13722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13723
  (exit $ac_status); } && {
 
13724
         test -z "$ac_c_werror_flag" ||
 
13725
         test ! -s conftest.err
 
13726
       } && test -s conftest.$ac_objext; then
 
13727
  ac_header_compiler=yes
 
13728
else
 
13729
  echo "$as_me: failed program was:" >&5
 
13730
sed 's/^/| /' conftest.$ac_ext >&5
 
13731
 
 
13732
        ac_header_compiler=no
 
13733
fi
 
13734
 
 
13735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13736
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13737
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13738
 
 
13739
# Is the header present?
 
13740
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13741
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
13742
cat >conftest.$ac_ext <<_ACEOF
 
13743
/* confdefs.h.  */
 
13744
_ACEOF
 
13745
cat confdefs.h >>conftest.$ac_ext
 
13746
cat >>conftest.$ac_ext <<_ACEOF
 
13747
/* end confdefs.h.  */
 
13748
#include <$ac_header>
 
13749
_ACEOF
 
13750
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13751
case "(($ac_try" in
 
13752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13753
  *) ac_try_echo=$ac_try;;
 
13754
esac
 
13755
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13756
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13757
  ac_status=$?
 
13758
  grep -v '^ *+' conftest.er1 >conftest.err
 
13759
  rm -f conftest.er1
 
13760
  cat conftest.err >&5
 
13761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13762
  (exit $ac_status); } >/dev/null && {
 
13763
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13764
         test ! -s conftest.err
 
13765
       }; then
 
13766
  ac_header_preproc=yes
 
13767
else
 
13768
  echo "$as_me: failed program was:" >&5
 
13769
sed 's/^/| /' conftest.$ac_ext >&5
 
13770
 
 
13771
  ac_header_preproc=no
 
13772
fi
 
13773
 
 
13774
rm -f conftest.err conftest.$ac_ext
 
13775
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13776
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13777
 
 
13778
# So?  What about this header?
 
13779
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13780
  yes:no: )
 
13781
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13782
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13783
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13784
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13785
    ac_header_preproc=yes
 
13786
    ;;
 
13787
  no:yes:* )
 
13788
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13789
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13790
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13791
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13792
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13793
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13794
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13795
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13796
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13797
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13798
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13799
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13800
    ( cat <<\_ASBOX
 
13801
## -------------------------------------------------------------------------- ##
 
13802
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
13803
## -------------------------------------------------------------------------- ##
 
13804
_ASBOX
 
13805
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13806
    ;;
 
13807
esac
 
13808
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13809
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13810
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13811
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13812
else
 
13813
  eval "$as_ac_Header=\$ac_header_preproc"
 
13814
fi
 
13815
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13816
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13817
echo "${ECHO_T}$ac_res" >&6; }
 
13818
 
 
13819
fi
 
13820
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13821
  cat >>confdefs.h <<_ACEOF
 
13822
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13823
_ACEOF
 
13824
 
 
13825
fi
 
13826
 
 
13827
done
 
13828
 
 
13829
 
 
13830
for ac_header in sys/stat.h
 
13831
do
 
13832
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13833
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13834
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13835
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13836
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13838
fi
 
13839
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13840
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13841
echo "${ECHO_T}$ac_res" >&6; }
 
13842
else
 
13843
  # Is the header compilable?
 
13844
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13845
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
13846
cat >conftest.$ac_ext <<_ACEOF
 
13847
/* confdefs.h.  */
 
13848
_ACEOF
 
13849
cat confdefs.h >>conftest.$ac_ext
 
13850
cat >>conftest.$ac_ext <<_ACEOF
 
13851
/* end confdefs.h.  */
 
13852
$ac_includes_default
 
13853
#include <$ac_header>
 
13854
_ACEOF
 
13855
rm -f conftest.$ac_objext
 
13856
if { (ac_try="$ac_compile"
 
13857
case "(($ac_try" in
 
13858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13859
  *) ac_try_echo=$ac_try;;
 
13860
esac
 
13861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13862
  (eval "$ac_compile") 2>conftest.er1
 
13863
  ac_status=$?
 
13864
  grep -v '^ *+' conftest.er1 >conftest.err
 
13865
  rm -f conftest.er1
 
13866
  cat conftest.err >&5
 
13867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13868
  (exit $ac_status); } && {
 
13869
         test -z "$ac_c_werror_flag" ||
 
13870
         test ! -s conftest.err
 
13871
       } && test -s conftest.$ac_objext; then
 
13872
  ac_header_compiler=yes
 
13873
else
 
13874
  echo "$as_me: failed program was:" >&5
 
13875
sed 's/^/| /' conftest.$ac_ext >&5
 
13876
 
 
13877
        ac_header_compiler=no
 
13878
fi
 
13879
 
 
13880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13881
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13882
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13883
 
 
13884
# Is the header present?
 
13885
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13886
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
13887
cat >conftest.$ac_ext <<_ACEOF
 
13888
/* confdefs.h.  */
 
13889
_ACEOF
 
13890
cat confdefs.h >>conftest.$ac_ext
 
13891
cat >>conftest.$ac_ext <<_ACEOF
 
13892
/* end confdefs.h.  */
 
13893
#include <$ac_header>
 
13894
_ACEOF
 
13895
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13896
case "(($ac_try" in
 
13897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13898
  *) ac_try_echo=$ac_try;;
 
13899
esac
 
13900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13901
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13902
  ac_status=$?
 
13903
  grep -v '^ *+' conftest.er1 >conftest.err
 
13904
  rm -f conftest.er1
 
13905
  cat conftest.err >&5
 
13906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13907
  (exit $ac_status); } >/dev/null && {
 
13908
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13909
         test ! -s conftest.err
 
13910
       }; then
 
13911
  ac_header_preproc=yes
 
13912
else
 
13913
  echo "$as_me: failed program was:" >&5
 
13914
sed 's/^/| /' conftest.$ac_ext >&5
 
13915
 
 
13916
  ac_header_preproc=no
 
13917
fi
 
13918
 
 
13919
rm -f conftest.err conftest.$ac_ext
 
13920
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13921
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13922
 
 
13923
# So?  What about this header?
 
13924
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13925
  yes:no: )
 
13926
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13927
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13928
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13929
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13930
    ac_header_preproc=yes
 
13931
    ;;
 
13932
  no:yes:* )
 
13933
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13934
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13935
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13936
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13937
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13938
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13939
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13940
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13941
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13942
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13943
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13944
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13945
    ( cat <<\_ASBOX
 
13946
## -------------------------------------------------------------------------- ##
 
13947
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
13948
## -------------------------------------------------------------------------- ##
 
13949
_ASBOX
 
13950
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13951
    ;;
 
13952
esac
 
13953
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13954
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13955
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13957
else
 
13958
  eval "$as_ac_Header=\$ac_header_preproc"
 
13959
fi
 
13960
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13961
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13962
echo "${ECHO_T}$ac_res" >&6; }
 
13963
 
 
13964
fi
 
13965
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13966
  cat >>confdefs.h <<_ACEOF
 
13967
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13968
_ACEOF
 
13969
 
 
13970
fi
 
13971
 
 
13972
done
 
13973
 
 
13974
 
 
13975
for ac_header in sys/time.h
 
13976
do
 
13977
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13978
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13979
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13980
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13981
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13983
fi
 
13984
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13985
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13986
echo "${ECHO_T}$ac_res" >&6; }
 
13987
else
 
13988
  # Is the header compilable?
 
13989
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13990
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
13991
cat >conftest.$ac_ext <<_ACEOF
 
13992
/* confdefs.h.  */
 
13993
_ACEOF
 
13994
cat confdefs.h >>conftest.$ac_ext
 
13995
cat >>conftest.$ac_ext <<_ACEOF
 
13996
/* end confdefs.h.  */
 
13997
$ac_includes_default
 
13998
#include <$ac_header>
 
13999
_ACEOF
 
14000
rm -f conftest.$ac_objext
 
14001
if { (ac_try="$ac_compile"
 
14002
case "(($ac_try" in
 
14003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14004
  *) ac_try_echo=$ac_try;;
 
14005
esac
 
14006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14007
  (eval "$ac_compile") 2>conftest.er1
 
14008
  ac_status=$?
 
14009
  grep -v '^ *+' conftest.er1 >conftest.err
 
14010
  rm -f conftest.er1
 
14011
  cat conftest.err >&5
 
14012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14013
  (exit $ac_status); } && {
 
14014
         test -z "$ac_c_werror_flag" ||
 
14015
         test ! -s conftest.err
 
14016
       } && test -s conftest.$ac_objext; then
 
14017
  ac_header_compiler=yes
 
14018
else
 
14019
  echo "$as_me: failed program was:" >&5
 
14020
sed 's/^/| /' conftest.$ac_ext >&5
 
14021
 
 
14022
        ac_header_compiler=no
 
14023
fi
 
14024
 
 
14025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14026
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14027
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
14028
 
 
14029
# Is the header present?
 
14030
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14031
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
14032
cat >conftest.$ac_ext <<_ACEOF
 
14033
/* confdefs.h.  */
 
14034
_ACEOF
 
14035
cat confdefs.h >>conftest.$ac_ext
 
14036
cat >>conftest.$ac_ext <<_ACEOF
 
14037
/* end confdefs.h.  */
 
14038
#include <$ac_header>
 
14039
_ACEOF
 
14040
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14041
case "(($ac_try" in
 
14042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14043
  *) ac_try_echo=$ac_try;;
 
14044
esac
 
14045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14046
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14047
  ac_status=$?
 
14048
  grep -v '^ *+' conftest.er1 >conftest.err
 
14049
  rm -f conftest.er1
 
14050
  cat conftest.err >&5
 
14051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14052
  (exit $ac_status); } >/dev/null && {
 
14053
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14054
         test ! -s conftest.err
 
14055
       }; then
 
14056
  ac_header_preproc=yes
 
14057
else
 
14058
  echo "$as_me: failed program was:" >&5
 
14059
sed 's/^/| /' conftest.$ac_ext >&5
 
14060
 
 
14061
  ac_header_preproc=no
 
14062
fi
 
14063
 
 
14064
rm -f conftest.err conftest.$ac_ext
 
14065
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14066
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
14067
 
 
14068
# So?  What about this header?
 
14069
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14070
  yes:no: )
 
14071
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14072
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14073
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
14074
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
14075
    ac_header_preproc=yes
 
14076
    ;;
 
14077
  no:yes:* )
 
14078
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14079
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14080
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
14081
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
14082
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
14083
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
14084
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
14085
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14086
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14087
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
14088
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
14089
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
14090
    ( cat <<\_ASBOX
 
14091
## -------------------------------------------------------------------------- ##
 
14092
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
14093
## -------------------------------------------------------------------------- ##
 
14094
_ASBOX
 
14095
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14096
    ;;
 
14097
esac
 
14098
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14099
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14102
else
 
14103
  eval "$as_ac_Header=\$ac_header_preproc"
 
14104
fi
 
14105
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14106
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14107
echo "${ECHO_T}$ac_res" >&6; }
 
14108
 
 
14109
fi
 
14110
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14111
  cat >>confdefs.h <<_ACEOF
 
14112
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14113
_ACEOF
 
14114
 
 
14115
fi
 
14116
 
 
14117
done
 
14118
 
 
14119
 
 
14120
for ac_header in sys/types.h
 
14121
do
 
14122
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14123
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14124
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14126
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14128
fi
 
14129
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14130
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14131
echo "${ECHO_T}$ac_res" >&6; }
 
14132
else
 
14133
  # Is the header compilable?
 
14134
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14135
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
14136
cat >conftest.$ac_ext <<_ACEOF
 
14137
/* confdefs.h.  */
 
14138
_ACEOF
 
14139
cat confdefs.h >>conftest.$ac_ext
 
14140
cat >>conftest.$ac_ext <<_ACEOF
 
14141
/* end confdefs.h.  */
 
14142
$ac_includes_default
 
14143
#include <$ac_header>
 
14144
_ACEOF
 
14145
rm -f conftest.$ac_objext
 
14146
if { (ac_try="$ac_compile"
 
14147
case "(($ac_try" in
 
14148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14149
  *) ac_try_echo=$ac_try;;
 
14150
esac
 
14151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14152
  (eval "$ac_compile") 2>conftest.er1
 
14153
  ac_status=$?
 
14154
  grep -v '^ *+' conftest.er1 >conftest.err
 
14155
  rm -f conftest.er1
 
14156
  cat conftest.err >&5
 
14157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14158
  (exit $ac_status); } && {
 
14159
         test -z "$ac_c_werror_flag" ||
 
14160
         test ! -s conftest.err
 
14161
       } && test -s conftest.$ac_objext; then
 
14162
  ac_header_compiler=yes
 
14163
else
 
14164
  echo "$as_me: failed program was:" >&5
 
14165
sed 's/^/| /' conftest.$ac_ext >&5
 
14166
 
 
14167
        ac_header_compiler=no
 
14168
fi
 
14169
 
 
14170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14171
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14172
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
14173
 
 
14174
# Is the header present?
 
14175
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14176
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
14177
cat >conftest.$ac_ext <<_ACEOF
 
14178
/* confdefs.h.  */
 
14179
_ACEOF
 
14180
cat confdefs.h >>conftest.$ac_ext
 
14181
cat >>conftest.$ac_ext <<_ACEOF
 
14182
/* end confdefs.h.  */
 
14183
#include <$ac_header>
 
14184
_ACEOF
 
14185
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14186
case "(($ac_try" in
 
14187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14188
  *) ac_try_echo=$ac_try;;
 
14189
esac
 
14190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14191
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14192
  ac_status=$?
 
14193
  grep -v '^ *+' conftest.er1 >conftest.err
 
14194
  rm -f conftest.er1
 
14195
  cat conftest.err >&5
 
14196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14197
  (exit $ac_status); } >/dev/null && {
 
14198
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14199
         test ! -s conftest.err
 
14200
       }; then
 
14201
  ac_header_preproc=yes
 
14202
else
 
14203
  echo "$as_me: failed program was:" >&5
 
14204
sed 's/^/| /' conftest.$ac_ext >&5
 
14205
 
 
14206
  ac_header_preproc=no
 
14207
fi
 
14208
 
 
14209
rm -f conftest.err conftest.$ac_ext
 
14210
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14211
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
14212
 
 
14213
# So?  What about this header?
 
14214
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14215
  yes:no: )
 
14216
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14217
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14218
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
14219
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
14220
    ac_header_preproc=yes
 
14221
    ;;
 
14222
  no:yes:* )
 
14223
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14224
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14225
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
14226
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
14227
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
14228
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
14229
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
14230
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14231
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14232
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
14233
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
14234
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
14235
    ( cat <<\_ASBOX
 
14236
## -------------------------------------------------------------------------- ##
 
14237
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
14238
## -------------------------------------------------------------------------- ##
 
14239
_ASBOX
 
14240
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14241
    ;;
 
14242
esac
 
14243
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14244
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14245
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14247
else
 
14248
  eval "$as_ac_Header=\$ac_header_preproc"
 
14249
fi
 
14250
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14251
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14252
echo "${ECHO_T}$ac_res" >&6; }
 
14253
 
 
14254
fi
 
14255
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14256
  cat >>confdefs.h <<_ACEOF
 
14257
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14258
_ACEOF
 
14259
 
 
14260
fi
 
14261
 
 
14262
done
 
14263
 
 
14264
 
 
14265
for ac_header in unistd.h
 
14266
do
 
14267
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14268
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14269
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14271
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14273
fi
 
14274
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14275
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14276
echo "${ECHO_T}$ac_res" >&6; }
 
14277
else
 
14278
  # Is the header compilable?
 
14279
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14280
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
14281
cat >conftest.$ac_ext <<_ACEOF
 
14282
/* confdefs.h.  */
 
14283
_ACEOF
 
14284
cat confdefs.h >>conftest.$ac_ext
 
14285
cat >>conftest.$ac_ext <<_ACEOF
 
14286
/* end confdefs.h.  */
 
14287
$ac_includes_default
 
14288
#include <$ac_header>
 
14289
_ACEOF
 
14290
rm -f conftest.$ac_objext
 
14291
if { (ac_try="$ac_compile"
 
14292
case "(($ac_try" in
 
14293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14294
  *) ac_try_echo=$ac_try;;
 
14295
esac
 
14296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14297
  (eval "$ac_compile") 2>conftest.er1
 
14298
  ac_status=$?
 
14299
  grep -v '^ *+' conftest.er1 >conftest.err
 
14300
  rm -f conftest.er1
 
14301
  cat conftest.err >&5
 
14302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14303
  (exit $ac_status); } && {
 
14304
         test -z "$ac_c_werror_flag" ||
 
14305
         test ! -s conftest.err
 
14306
       } && test -s conftest.$ac_objext; then
 
14307
  ac_header_compiler=yes
 
14308
else
 
14309
  echo "$as_me: failed program was:" >&5
 
14310
sed 's/^/| /' conftest.$ac_ext >&5
 
14311
 
 
14312
        ac_header_compiler=no
 
14313
fi
 
14314
 
 
14315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14316
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14317
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
14318
 
 
14319
# Is the header present?
 
14320
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14321
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
14322
cat >conftest.$ac_ext <<_ACEOF
 
14323
/* confdefs.h.  */
 
14324
_ACEOF
 
14325
cat confdefs.h >>conftest.$ac_ext
 
14326
cat >>conftest.$ac_ext <<_ACEOF
 
14327
/* end confdefs.h.  */
 
14328
#include <$ac_header>
 
14329
_ACEOF
 
14330
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14331
case "(($ac_try" in
 
14332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14333
  *) ac_try_echo=$ac_try;;
 
14334
esac
 
14335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14336
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14337
  ac_status=$?
 
14338
  grep -v '^ *+' conftest.er1 >conftest.err
 
14339
  rm -f conftest.er1
 
14340
  cat conftest.err >&5
 
14341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14342
  (exit $ac_status); } >/dev/null && {
 
14343
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14344
         test ! -s conftest.err
 
14345
       }; then
 
14346
  ac_header_preproc=yes
 
14347
else
 
14348
  echo "$as_me: failed program was:" >&5
 
14349
sed 's/^/| /' conftest.$ac_ext >&5
 
14350
 
 
14351
  ac_header_preproc=no
 
14352
fi
 
14353
 
 
14354
rm -f conftest.err conftest.$ac_ext
 
14355
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14356
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
14357
 
 
14358
# So?  What about this header?
 
14359
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14360
  yes:no: )
 
14361
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14362
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14363
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
14364
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
14365
    ac_header_preproc=yes
 
14366
    ;;
 
14367
  no:yes:* )
 
14368
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14369
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14370
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
14371
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
14372
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
14373
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
14374
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
14375
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14376
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14377
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
14378
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
14379
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
14380
    ( cat <<\_ASBOX
 
14381
## -------------------------------------------------------------------------- ##
 
14382
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
14383
## -------------------------------------------------------------------------- ##
 
14384
_ASBOX
 
14385
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14386
    ;;
 
14387
esac
 
14388
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14390
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14391
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14392
else
 
14393
  eval "$as_ac_Header=\$ac_header_preproc"
 
14394
fi
 
14395
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14396
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14397
echo "${ECHO_T}$ac_res" >&6; }
 
14398
 
 
14399
fi
 
14400
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14401
  cat >>confdefs.h <<_ACEOF
 
14402
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14403
_ACEOF
 
14404
 
 
14405
fi
 
14406
 
 
14407
done
 
14408
 
 
14409
 
 
14410
for ac_header in net/if.h
 
14411
do
 
14412
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14413
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14414
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14417
else
 
14418
  cat >conftest.$ac_ext <<_ACEOF
 
14419
/* confdefs.h.  */
 
14420
_ACEOF
 
14421
cat confdefs.h >>conftest.$ac_ext
 
14422
cat >>conftest.$ac_ext <<_ACEOF
 
14423
/* end confdefs.h.  */
 
14424
#include <stdio.h>
 
14425
#ifdef STDC_HEADERS
 
14426
# include <stdlib.h>
 
14427
# include <stddef.h>
 
14428
#else
 
14429
# ifdef HAVE_STDLIB_H
 
14430
#  include <stdlib.h>
 
14431
# endif
 
14432
#endif
 
14433
#ifdef HAVE_SYS_SOCKET_H
 
14434
# include <sys/socket.h>
 
14435
#endif
 
14436
 
 
14437
 
 
14438
#include <$ac_header>
 
14439
_ACEOF
 
14440
rm -f conftest.$ac_objext
 
14441
if { (ac_try="$ac_compile"
 
14442
case "(($ac_try" in
 
14443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14444
  *) ac_try_echo=$ac_try;;
 
14445
esac
 
14446
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14447
  (eval "$ac_compile") 2>conftest.er1
 
14448
  ac_status=$?
 
14449
  grep -v '^ *+' conftest.er1 >conftest.err
 
14450
  rm -f conftest.er1
 
14451
  cat conftest.err >&5
 
14452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14453
  (exit $ac_status); } && {
 
14454
         test -z "$ac_c_werror_flag" ||
 
14455
         test ! -s conftest.err
 
14456
       } && test -s conftest.$ac_objext; then
 
14457
  eval "$as_ac_Header=yes"
 
14458
else
 
14459
  echo "$as_me: failed program was:" >&5
 
14460
sed 's/^/| /' conftest.$ac_ext >&5
 
14461
 
 
14462
        eval "$as_ac_Header=no"
 
14463
fi
 
14464
 
 
14465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14466
fi
 
14467
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14468
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14469
echo "${ECHO_T}$ac_res" >&6; }
 
14470
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14471
  cat >>confdefs.h <<_ACEOF
 
14472
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14473
_ACEOF
 
14474
 
 
14475
fi
 
14476
 
 
14477
done
 
14478
 
 
14479
 
 
14480
 
 
14481
  { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
 
14482
echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
 
14483
  # Check whether --enable-assert was given.
 
14484
if test "${enable_assert+set}" = set; then
 
14485
  enableval=$enable_assert; { echo "$as_me:$LINENO: result: no" >&5
 
14486
echo "${ECHO_T}no" >&6; }
 
14487
 
 
14488
cat >>confdefs.h <<\_ACEOF
 
14489
#define NDEBUG 1
 
14490
_ACEOF
 
14491
 
 
14492
else
 
14493
  { echo "$as_me:$LINENO: result: yes" >&5
 
14494
echo "${ECHO_T}yes" >&6; }
 
14495
fi
 
14496
 
 
14497
 
 
14498
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
14499
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
 
14500
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
14501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14502
else
 
14503
  cat >conftest.$ac_ext <<_ACEOF
 
14504
/* confdefs.h.  */
 
14505
_ACEOF
 
14506
cat confdefs.h >>conftest.$ac_ext
 
14507
cat >>conftest.$ac_ext <<_ACEOF
 
14508
/* end confdefs.h.  */
 
14509
 
 
14510
#include <stdbool.h>
 
14511
#ifndef bool
 
14512
 "error: bool is not defined"
 
14513
#endif
 
14514
#ifndef false
 
14515
 "error: false is not defined"
 
14516
#endif
 
14517
#if false
 
14518
 "error: false is not 0"
 
14519
#endif
 
14520
#ifndef true
 
14521
 "error: true is not defined"
 
14522
#endif
 
14523
#if true != 1
 
14524
 "error: true is not 1"
 
14525
#endif
 
14526
#ifndef __bool_true_false_are_defined
 
14527
 "error: __bool_true_false_are_defined is not defined"
 
14528
#endif
 
14529
 
 
14530
        struct s { _Bool s: 1; _Bool t; } s;
 
14531
 
 
14532
        char a[true == 1 ? 1 : -1];
 
14533
        char b[false == 0 ? 1 : -1];
 
14534
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
14535
        char d[(bool) 0.5 == true ? 1 : -1];
 
14536
        bool e = &s;
 
14537
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
14538
        char g[true];
 
14539
        char h[sizeof (_Bool)];
 
14540
        char i[sizeof s.t];
 
14541
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
14542
        _Bool n[m];
 
14543
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
14544
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
14545
#       if defined __xlc__ || defined __GNUC__
 
14546
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
14547
            reported by James Lemley on 2005-10-05; see
 
14548
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
14549
            This test is not quite right, since xlc is allowed to
 
14550
            reject this program, as the initializer for xlcbug is
 
14551
            not one of the forms that C requires support for.
 
14552
            However, doing the test right would require a runtime
 
14553
            test, and that would make cross-compilation harder.
 
14554
            Let us hope that IBM fixes the xlc bug, and also adds
 
14555
            support for this kind of constant expression.  In the
 
14556
            meantime, this test will reject xlc, which is OK, since
 
14557
            our stdbool.h substitute should suffice.  We also test
 
14558
            this with GCC, where it should work, to detect more
 
14559
            quickly whether someone messes up the test in the
 
14560
            future.  */
 
14561
         char digs[] = "0123456789";
 
14562
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
14563
#       endif
 
14564
        /* Catch a bug in an HP-UX C compiler.  See
 
14565
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
14566
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
14567
         */
 
14568
        _Bool q = true;
 
14569
        _Bool *pq = &q;
 
14570
 
 
14571
int
 
14572
main ()
 
14573
{
 
14574
 
 
14575
        *pq |= q;
 
14576
        *pq |= ! q;
 
14577
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
14578
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
14579
                + !m + !n + !o + !p + !q + !pq);
 
14580
 
 
14581
  ;
 
14582
  return 0;
 
14583
}
 
14584
_ACEOF
 
14585
rm -f conftest.$ac_objext
 
14586
if { (ac_try="$ac_compile"
 
14587
case "(($ac_try" in
 
14588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14589
  *) ac_try_echo=$ac_try;;
 
14590
esac
 
14591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14592
  (eval "$ac_compile") 2>conftest.er1
 
14593
  ac_status=$?
 
14594
  grep -v '^ *+' conftest.er1 >conftest.err
 
14595
  rm -f conftest.er1
 
14596
  cat conftest.err >&5
 
14597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14598
  (exit $ac_status); } && {
 
14599
         test -z "$ac_c_werror_flag" ||
 
14600
         test ! -s conftest.err
 
14601
       } && test -s conftest.$ac_objext; then
 
14602
  ac_cv_header_stdbool_h=yes
 
14603
else
 
14604
  echo "$as_me: failed program was:" >&5
 
14605
sed 's/^/| /' conftest.$ac_ext >&5
 
14606
 
 
14607
        ac_cv_header_stdbool_h=no
 
14608
fi
 
14609
 
 
14610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14611
fi
 
14612
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
14613
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
 
14614
{ echo "$as_me:$LINENO: checking for _Bool" >&5
 
14615
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
 
14616
if test "${ac_cv_type__Bool+set}" = set; then
 
14617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14618
else
 
14619
  cat >conftest.$ac_ext <<_ACEOF
 
14620
/* confdefs.h.  */
 
14621
_ACEOF
 
14622
cat confdefs.h >>conftest.$ac_ext
 
14623
cat >>conftest.$ac_ext <<_ACEOF
 
14624
/* end confdefs.h.  */
 
14625
$ac_includes_default
 
14626
typedef _Bool ac__type_new_;
 
14627
int
 
14628
main ()
 
14629
{
 
14630
if ((ac__type_new_ *) 0)
 
14631
  return 0;
 
14632
if (sizeof (ac__type_new_))
 
14633
  return 0;
 
14634
  ;
 
14635
  return 0;
 
14636
}
 
14637
_ACEOF
 
14638
rm -f conftest.$ac_objext
 
14639
if { (ac_try="$ac_compile"
 
14640
case "(($ac_try" in
 
14641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14642
  *) ac_try_echo=$ac_try;;
 
14643
esac
 
14644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14645
  (eval "$ac_compile") 2>conftest.er1
 
14646
  ac_status=$?
 
14647
  grep -v '^ *+' conftest.er1 >conftest.err
 
14648
  rm -f conftest.er1
 
14649
  cat conftest.err >&5
 
14650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14651
  (exit $ac_status); } && {
 
14652
         test -z "$ac_c_werror_flag" ||
 
14653
         test ! -s conftest.err
 
14654
       } && test -s conftest.$ac_objext; then
 
14655
  ac_cv_type__Bool=yes
 
14656
else
 
14657
  echo "$as_me: failed program was:" >&5
 
14658
sed 's/^/| /' conftest.$ac_ext >&5
 
14659
 
 
14660
        ac_cv_type__Bool=no
 
14661
fi
 
14662
 
 
14663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14664
fi
 
14665
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
14666
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
 
14667
if test $ac_cv_type__Bool = yes; then
 
14668
 
 
14669
cat >>confdefs.h <<_ACEOF
 
14670
#define HAVE__BOOL 1
 
14671
_ACEOF
 
14672
 
 
14673
 
 
14674
fi
 
14675
 
 
14676
if test $ac_cv_header_stdbool_h = yes; then
 
14677
 
 
14678
cat >>confdefs.h <<\_ACEOF
 
14679
#define HAVE_STDBOOL_H 1
 
14680
_ACEOF
 
14681
 
 
14682
fi
 
14683
 
 
14684
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
14685
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
14686
if test "${ac_cv_header_time+set}" = set; then
 
14687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14688
else
 
14689
  cat >conftest.$ac_ext <<_ACEOF
 
14690
/* confdefs.h.  */
 
14691
_ACEOF
 
14692
cat confdefs.h >>conftest.$ac_ext
 
14693
cat >>conftest.$ac_ext <<_ACEOF
 
14694
/* end confdefs.h.  */
 
14695
#include <sys/types.h>
 
14696
#include <sys/time.h>
 
14697
#include <time.h>
 
14698
 
 
14699
int
 
14700
main ()
 
14701
{
 
14702
if ((struct tm *) 0)
 
14703
return 0;
 
14704
  ;
 
14705
  return 0;
 
14706
}
 
14707
_ACEOF
 
14708
rm -f conftest.$ac_objext
 
14709
if { (ac_try="$ac_compile"
 
14710
case "(($ac_try" in
 
14711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14712
  *) ac_try_echo=$ac_try;;
 
14713
esac
 
14714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14715
  (eval "$ac_compile") 2>conftest.er1
 
14716
  ac_status=$?
 
14717
  grep -v '^ *+' conftest.er1 >conftest.err
 
14718
  rm -f conftest.er1
 
14719
  cat conftest.err >&5
 
14720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14721
  (exit $ac_status); } && {
 
14722
         test -z "$ac_c_werror_flag" ||
 
14723
         test ! -s conftest.err
 
14724
       } && test -s conftest.$ac_objext; then
 
14725
  ac_cv_header_time=yes
 
14726
else
 
14727
  echo "$as_me: failed program was:" >&5
 
14728
sed 's/^/| /' conftest.$ac_ext >&5
 
14729
 
 
14730
        ac_cv_header_time=no
 
14731
fi
 
14732
 
 
14733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14734
fi
 
14735
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
14736
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
14737
if test $ac_cv_header_time = yes; then
 
14738
 
 
14739
cat >>confdefs.h <<\_ACEOF
 
14740
#define TIME_WITH_SYS_TIME 1
 
14741
_ACEOF
 
14742
 
 
14743
fi
 
14744
 
 
14745
 
 
14746
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
14747
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
14748
if test "${ac_cv_c_bigendian+set}" = set; then
 
14749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14750
else
 
14751
  # See if sys/param.h defines the BYTE_ORDER macro.
 
14752
cat >conftest.$ac_ext <<_ACEOF
 
14753
/* confdefs.h.  */
 
14754
_ACEOF
 
14755
cat confdefs.h >>conftest.$ac_ext
 
14756
cat >>conftest.$ac_ext <<_ACEOF
 
14757
/* end confdefs.h.  */
 
14758
#include <sys/types.h>
 
14759
#include <sys/param.h>
 
14760
 
 
14761
int
 
14762
main ()
 
14763
{
 
14764
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
14765
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
14766
 bogus endian macros
 
14767
#endif
 
14768
 
 
14769
  ;
 
14770
  return 0;
 
14771
}
 
14772
_ACEOF
 
14773
rm -f conftest.$ac_objext
 
14774
if { (ac_try="$ac_compile"
 
14775
case "(($ac_try" in
 
14776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14777
  *) ac_try_echo=$ac_try;;
 
14778
esac
 
14779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14780
  (eval "$ac_compile") 2>conftest.er1
 
14781
  ac_status=$?
 
14782
  grep -v '^ *+' conftest.er1 >conftest.err
 
14783
  rm -f conftest.er1
 
14784
  cat conftest.err >&5
 
14785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14786
  (exit $ac_status); } && {
 
14787
         test -z "$ac_c_werror_flag" ||
 
14788
         test ! -s conftest.err
 
14789
       } && test -s conftest.$ac_objext; then
 
14790
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
14791
cat >conftest.$ac_ext <<_ACEOF
 
14792
/* confdefs.h.  */
 
14793
_ACEOF
 
14794
cat confdefs.h >>conftest.$ac_ext
 
14795
cat >>conftest.$ac_ext <<_ACEOF
 
14796
/* end confdefs.h.  */
 
14797
#include <sys/types.h>
 
14798
#include <sys/param.h>
 
14799
 
 
14800
int
 
14801
main ()
 
14802
{
 
14803
#if BYTE_ORDER != BIG_ENDIAN
 
14804
 not big endian
 
14805
#endif
 
14806
 
 
14807
  ;
 
14808
  return 0;
 
14809
}
 
14810
_ACEOF
 
14811
rm -f conftest.$ac_objext
 
14812
if { (ac_try="$ac_compile"
 
14813
case "(($ac_try" in
 
14814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14815
  *) ac_try_echo=$ac_try;;
 
14816
esac
 
14817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14818
  (eval "$ac_compile") 2>conftest.er1
 
14819
  ac_status=$?
 
14820
  grep -v '^ *+' conftest.er1 >conftest.err
 
14821
  rm -f conftest.er1
 
14822
  cat conftest.err >&5
 
14823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14824
  (exit $ac_status); } && {
 
14825
         test -z "$ac_c_werror_flag" ||
 
14826
         test ! -s conftest.err
 
14827
       } && test -s conftest.$ac_objext; then
 
14828
  ac_cv_c_bigendian=yes
 
14829
else
 
14830
  echo "$as_me: failed program was:" >&5
 
14831
sed 's/^/| /' conftest.$ac_ext >&5
 
14832
 
 
14833
        ac_cv_c_bigendian=no
 
14834
fi
 
14835
 
 
14836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14837
else
 
14838
  echo "$as_me: failed program was:" >&5
 
14839
sed 's/^/| /' conftest.$ac_ext >&5
 
14840
 
 
14841
        # It does not; compile a test program.
 
14842
if test "$cross_compiling" = yes; then
 
14843
  # try to guess the endianness by grepping values into an object file
 
14844
  ac_cv_c_bigendian=unknown
 
14845
  cat >conftest.$ac_ext <<_ACEOF
 
14846
/* confdefs.h.  */
 
14847
_ACEOF
 
14848
cat confdefs.h >>conftest.$ac_ext
 
14849
cat >>conftest.$ac_ext <<_ACEOF
 
14850
/* end confdefs.h.  */
 
14851
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
14852
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
14853
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
14854
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
14855
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
14856
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
14857
int
 
14858
main ()
 
14859
{
 
14860
 _ascii (); _ebcdic ();
 
14861
  ;
 
14862
  return 0;
 
14863
}
 
14864
_ACEOF
 
14865
rm -f conftest.$ac_objext
 
14866
if { (ac_try="$ac_compile"
 
14867
case "(($ac_try" in
 
14868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14869
  *) ac_try_echo=$ac_try;;
 
14870
esac
 
14871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14872
  (eval "$ac_compile") 2>conftest.er1
 
14873
  ac_status=$?
 
14874
  grep -v '^ *+' conftest.er1 >conftest.err
 
14875
  rm -f conftest.er1
 
14876
  cat conftest.err >&5
 
14877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14878
  (exit $ac_status); } && {
 
14879
         test -z "$ac_c_werror_flag" ||
 
14880
         test ! -s conftest.err
 
14881
       } && test -s conftest.$ac_objext; then
 
14882
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
14883
  ac_cv_c_bigendian=yes
 
14884
fi
 
14885
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
14886
  if test "$ac_cv_c_bigendian" = unknown; then
 
14887
    ac_cv_c_bigendian=no
 
14888
  else
 
14889
    # finding both strings is unlikely to happen, but who knows?
 
14890
    ac_cv_c_bigendian=unknown
 
14891
  fi
 
14892
fi
 
14893
else
 
14894
  echo "$as_me: failed program was:" >&5
 
14895
sed 's/^/| /' conftest.$ac_ext >&5
 
14896
 
 
14897
 
 
14898
fi
 
14899
 
 
14900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14901
else
 
14902
  cat >conftest.$ac_ext <<_ACEOF
 
14903
/* confdefs.h.  */
 
14904
_ACEOF
 
14905
cat confdefs.h >>conftest.$ac_ext
 
14906
cat >>conftest.$ac_ext <<_ACEOF
 
14907
/* end confdefs.h.  */
 
14908
$ac_includes_default
 
14909
int
 
14910
main ()
 
14911
{
 
14912
 
 
14913
  /* Are we little or big endian?  From Harbison&Steele.  */
 
14914
  union
 
14915
  {
 
14916
    long int l;
 
14917
    char c[sizeof (long int)];
 
14918
  } u;
 
14919
  u.l = 1;
 
14920
  return u.c[sizeof (long int) - 1] == 1;
 
14921
 
 
14922
  ;
 
14923
  return 0;
 
14924
}
 
14925
_ACEOF
 
14926
rm -f conftest$ac_exeext
 
14927
if { (ac_try="$ac_link"
 
14928
case "(($ac_try" in
 
14929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14930
  *) ac_try_echo=$ac_try;;
 
14931
esac
 
14932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14933
  (eval "$ac_link") 2>&5
 
14934
  ac_status=$?
 
14935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14936
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14937
  { (case "(($ac_try" in
 
14938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14939
  *) ac_try_echo=$ac_try;;
 
14940
esac
 
14941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14942
  (eval "$ac_try") 2>&5
 
14943
  ac_status=$?
 
14944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14945
  (exit $ac_status); }; }; then
 
14946
  ac_cv_c_bigendian=no
 
14947
else
 
14948
  echo "$as_me: program exited with status $ac_status" >&5
 
14949
echo "$as_me: failed program was:" >&5
 
14950
sed 's/^/| /' conftest.$ac_ext >&5
 
14951
 
 
14952
( exit $ac_status )
 
14953
ac_cv_c_bigendian=yes
 
14954
fi
 
14955
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14956
fi
 
14957
 
 
14958
 
 
14959
fi
 
14960
 
 
14961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14962
fi
 
14963
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
14964
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
14965
case $ac_cv_c_bigendian in
 
14966
  yes)
 
14967
 
 
14968
cat >>confdefs.h <<\_ACEOF
 
14969
#define WORDS_BIGENDIAN 1
 
14970
_ACEOF
 
14971
 ;;
 
14972
  no)
 
14973
     ;;
 
14974
  *)
 
14975
    { { echo "$as_me:$LINENO: error: unknown endianness
 
14976
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
14977
echo "$as_me: error: unknown endianness
 
14978
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
14979
   { (exit 1); exit 1; }; } ;;
 
14980
esac
 
14981
 
 
14982
 
 
14983
 
 
14984
for ac_func in strndup
 
14985
do
 
14986
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14987
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14988
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14989
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14991
else
 
14992
  cat >conftest.$ac_ext <<_ACEOF
 
14993
/* confdefs.h.  */
 
14994
_ACEOF
 
14995
cat confdefs.h >>conftest.$ac_ext
 
14996
cat >>conftest.$ac_ext <<_ACEOF
 
14997
/* end confdefs.h.  */
 
14998
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14999
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15000
#define $ac_func innocuous_$ac_func
 
15001
 
 
15002
/* System header to define __stub macros and hopefully few prototypes,
 
15003
    which can conflict with char $ac_func (); below.
 
15004
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15005
    <limits.h> exists even on freestanding compilers.  */
 
15006
 
 
15007
#ifdef __STDC__
 
15008
# include <limits.h>
 
15009
#else
 
15010
# include <assert.h>
 
15011
#endif
 
15012
 
 
15013
#undef $ac_func
 
15014
 
 
15015
/* Override any GCC internal prototype to avoid an error.
 
15016
   Use char because int might match the return type of a GCC
 
15017
   builtin and then its argument prototype would still apply.  */
 
15018
#ifdef __cplusplus
 
15019
extern "C"
 
15020
#endif
 
15021
char $ac_func ();
 
15022
/* The GNU C library defines this for functions which it implements
 
15023
    to always fail with ENOSYS.  Some functions are actually named
 
15024
    something starting with __ and the normal name is an alias.  */
 
15025
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15026
choke me
 
15027
#endif
 
15028
 
 
15029
int
 
15030
main ()
 
15031
{
 
15032
return $ac_func ();
 
15033
  ;
 
15034
  return 0;
 
15035
}
 
15036
_ACEOF
 
15037
rm -f conftest.$ac_objext conftest$ac_exeext
 
15038
if { (ac_try="$ac_link"
 
15039
case "(($ac_try" in
 
15040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15041
  *) ac_try_echo=$ac_try;;
 
15042
esac
 
15043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15044
  (eval "$ac_link") 2>conftest.er1
 
15045
  ac_status=$?
 
15046
  grep -v '^ *+' conftest.er1 >conftest.err
 
15047
  rm -f conftest.er1
 
15048
  cat conftest.err >&5
 
15049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15050
  (exit $ac_status); } && {
 
15051
         test -z "$ac_c_werror_flag" ||
 
15052
         test ! -s conftest.err
 
15053
       } && test -s conftest$ac_exeext &&
 
15054
       $as_test_x conftest$ac_exeext; then
 
15055
  eval "$as_ac_var=yes"
 
15056
else
 
15057
  echo "$as_me: failed program was:" >&5
 
15058
sed 's/^/| /' conftest.$ac_ext >&5
 
15059
 
 
15060
        eval "$as_ac_var=no"
 
15061
fi
 
15062
 
 
15063
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15064
      conftest$ac_exeext conftest.$ac_ext
 
15065
fi
 
15066
ac_res=`eval echo '${'$as_ac_var'}'`
 
15067
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15068
echo "${ECHO_T}$ac_res" >&6; }
 
15069
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15070
  cat >>confdefs.h <<_ACEOF
 
15071
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15072
_ACEOF
 
15073
 
 
15074
fi
 
15075
done
 
15076
 
 
15077
 
 
15078
for ac_func in strnlen
 
15079
do
 
15080
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15081
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15082
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
15083
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15085
else
 
15086
  cat >conftest.$ac_ext <<_ACEOF
 
15087
/* confdefs.h.  */
 
15088
_ACEOF
 
15089
cat confdefs.h >>conftest.$ac_ext
 
15090
cat >>conftest.$ac_ext <<_ACEOF
 
15091
/* end confdefs.h.  */
 
15092
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15093
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15094
#define $ac_func innocuous_$ac_func
 
15095
 
 
15096
/* System header to define __stub macros and hopefully few prototypes,
 
15097
    which can conflict with char $ac_func (); below.
 
15098
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15099
    <limits.h> exists even on freestanding compilers.  */
 
15100
 
 
15101
#ifdef __STDC__
 
15102
# include <limits.h>
 
15103
#else
 
15104
# include <assert.h>
 
15105
#endif
 
15106
 
 
15107
#undef $ac_func
 
15108
 
 
15109
/* Override any GCC internal prototype to avoid an error.
 
15110
   Use char because int might match the return type of a GCC
 
15111
   builtin and then its argument prototype would still apply.  */
 
15112
#ifdef __cplusplus
 
15113
extern "C"
 
15114
#endif
 
15115
char $ac_func ();
 
15116
/* The GNU C library defines this for functions which it implements
 
15117
    to always fail with ENOSYS.  Some functions are actually named
 
15118
    something starting with __ and the normal name is an alias.  */
 
15119
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15120
choke me
 
15121
#endif
 
15122
 
 
15123
int
 
15124
main ()
 
15125
{
 
15126
return $ac_func ();
 
15127
  ;
 
15128
  return 0;
 
15129
}
 
15130
_ACEOF
 
15131
rm -f conftest.$ac_objext conftest$ac_exeext
 
15132
if { (ac_try="$ac_link"
 
15133
case "(($ac_try" in
 
15134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15135
  *) ac_try_echo=$ac_try;;
 
15136
esac
 
15137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15138
  (eval "$ac_link") 2>conftest.er1
 
15139
  ac_status=$?
 
15140
  grep -v '^ *+' conftest.er1 >conftest.err
 
15141
  rm -f conftest.er1
 
15142
  cat conftest.err >&5
 
15143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15144
  (exit $ac_status); } && {
 
15145
         test -z "$ac_c_werror_flag" ||
 
15146
         test ! -s conftest.err
 
15147
       } && test -s conftest$ac_exeext &&
 
15148
       $as_test_x conftest$ac_exeext; then
 
15149
  eval "$as_ac_var=yes"
 
15150
else
 
15151
  echo "$as_me: failed program was:" >&5
 
15152
sed 's/^/| /' conftest.$ac_ext >&5
 
15153
 
 
15154
        eval "$as_ac_var=no"
 
15155
fi
 
15156
 
 
15157
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15158
      conftest$ac_exeext conftest.$ac_ext
 
15159
fi
 
15160
ac_res=`eval echo '${'$as_ac_var'}'`
 
15161
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15162
echo "${ECHO_T}$ac_res" >&6; }
 
15163
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15164
  cat >>confdefs.h <<_ACEOF
 
15165
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15166
_ACEOF
 
15167
 
 
15168
fi
 
15169
done
 
15170
 
 
15171
 
 
15172
for ac_func in gettimeofday
 
15173
do
 
15174
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15175
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15176
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
15177
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15179
else
 
15180
  cat >conftest.$ac_ext <<_ACEOF
 
15181
/* confdefs.h.  */
 
15182
_ACEOF
 
15183
cat confdefs.h >>conftest.$ac_ext
 
15184
cat >>conftest.$ac_ext <<_ACEOF
 
15185
/* end confdefs.h.  */
 
15186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15187
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15188
#define $ac_func innocuous_$ac_func
 
15189
 
 
15190
/* System header to define __stub macros and hopefully few prototypes,
 
15191
    which can conflict with char $ac_func (); below.
 
15192
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15193
    <limits.h> exists even on freestanding compilers.  */
 
15194
 
 
15195
#ifdef __STDC__
 
15196
# include <limits.h>
 
15197
#else
 
15198
# include <assert.h>
 
15199
#endif
 
15200
 
 
15201
#undef $ac_func
 
15202
 
 
15203
/* Override any GCC internal prototype to avoid an error.
 
15204
   Use char because int might match the return type of a GCC
 
15205
   builtin and then its argument prototype would still apply.  */
 
15206
#ifdef __cplusplus
 
15207
extern "C"
 
15208
#endif
 
15209
char $ac_func ();
 
15210
/* The GNU C library defines this for functions which it implements
 
15211
    to always fail with ENOSYS.  Some functions are actually named
 
15212
    something starting with __ and the normal name is an alias.  */
 
15213
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15214
choke me
 
15215
#endif
 
15216
 
 
15217
int
 
15218
main ()
 
15219
{
 
15220
return $ac_func ();
 
15221
  ;
 
15222
  return 0;
 
15223
}
 
15224
_ACEOF
 
15225
rm -f conftest.$ac_objext conftest$ac_exeext
 
15226
if { (ac_try="$ac_link"
 
15227
case "(($ac_try" in
 
15228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15229
  *) ac_try_echo=$ac_try;;
 
15230
esac
 
15231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15232
  (eval "$ac_link") 2>conftest.er1
 
15233
  ac_status=$?
 
15234
  grep -v '^ *+' conftest.er1 >conftest.err
 
15235
  rm -f conftest.er1
 
15236
  cat conftest.err >&5
 
15237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15238
  (exit $ac_status); } && {
 
15239
         test -z "$ac_c_werror_flag" ||
 
15240
         test ! -s conftest.err
 
15241
       } && test -s conftest$ac_exeext &&
 
15242
       $as_test_x conftest$ac_exeext; then
 
15243
  eval "$as_ac_var=yes"
 
15244
else
 
15245
  echo "$as_me: failed program was:" >&5
 
15246
sed 's/^/| /' conftest.$ac_ext >&5
 
15247
 
 
15248
        eval "$as_ac_var=no"
 
15249
fi
 
15250
 
 
15251
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15252
      conftest$ac_exeext conftest.$ac_ext
 
15253
fi
 
15254
ac_res=`eval echo '${'$as_ac_var'}'`
 
15255
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15256
echo "${ECHO_T}$ac_res" >&6; }
 
15257
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15258
  cat >>confdefs.h <<_ACEOF
 
15259
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15260
_ACEOF
 
15261
 
 
15262
fi
 
15263
done
 
15264
 
 
15265
 
 
15266
for ac_func in usleep
 
15267
do
 
15268
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15269
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15270
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
15271
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15273
else
 
15274
  cat >conftest.$ac_ext <<_ACEOF
 
15275
/* confdefs.h.  */
 
15276
_ACEOF
 
15277
cat confdefs.h >>conftest.$ac_ext
 
15278
cat >>conftest.$ac_ext <<_ACEOF
 
15279
/* end confdefs.h.  */
 
15280
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15281
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15282
#define $ac_func innocuous_$ac_func
 
15283
 
 
15284
/* System header to define __stub macros and hopefully few prototypes,
 
15285
    which can conflict with char $ac_func (); below.
 
15286
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15287
    <limits.h> exists even on freestanding compilers.  */
 
15288
 
 
15289
#ifdef __STDC__
 
15290
# include <limits.h>
 
15291
#else
 
15292
# include <assert.h>
 
15293
#endif
 
15294
 
 
15295
#undef $ac_func
 
15296
 
 
15297
/* Override any GCC internal prototype to avoid an error.
 
15298
   Use char because int might match the return type of a GCC
 
15299
   builtin and then its argument prototype would still apply.  */
 
15300
#ifdef __cplusplus
 
15301
extern "C"
 
15302
#endif
 
15303
char $ac_func ();
 
15304
/* The GNU C library defines this for functions which it implements
 
15305
    to always fail with ENOSYS.  Some functions are actually named
 
15306
    something starting with __ and the normal name is an alias.  */
 
15307
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15308
choke me
 
15309
#endif
 
15310
 
 
15311
int
 
15312
main ()
 
15313
{
 
15314
return $ac_func ();
 
15315
  ;
 
15316
  return 0;
 
15317
}
 
15318
_ACEOF
 
15319
rm -f conftest.$ac_objext conftest$ac_exeext
 
15320
if { (ac_try="$ac_link"
 
15321
case "(($ac_try" in
 
15322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15323
  *) ac_try_echo=$ac_try;;
 
15324
esac
 
15325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15326
  (eval "$ac_link") 2>conftest.er1
 
15327
  ac_status=$?
 
15328
  grep -v '^ *+' conftest.er1 >conftest.err
 
15329
  rm -f conftest.er1
 
15330
  cat conftest.err >&5
 
15331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15332
  (exit $ac_status); } && {
 
15333
         test -z "$ac_c_werror_flag" ||
 
15334
         test ! -s conftest.err
 
15335
       } && test -s conftest$ac_exeext &&
 
15336
       $as_test_x conftest$ac_exeext; then
 
15337
  eval "$as_ac_var=yes"
 
15338
else
 
15339
  echo "$as_me: failed program was:" >&5
 
15340
sed 's/^/| /' conftest.$ac_ext >&5
 
15341
 
 
15342
        eval "$as_ac_var=no"
 
15343
fi
 
15344
 
 
15345
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15346
      conftest$ac_exeext conftest.$ac_ext
 
15347
fi
 
15348
ac_res=`eval echo '${'$as_ac_var'}'`
 
15349
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15350
echo "${ECHO_T}$ac_res" >&6; }
 
15351
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15352
  cat >>confdefs.h <<_ACEOF
 
15353
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15354
_ACEOF
 
15355
 
 
15356
fi
 
15357
done
 
15358
 
 
15359
 
 
15360
for ac_func in vasprintf
 
15361
do
 
15362
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15363
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15364
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
15365
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15367
else
 
15368
  cat >conftest.$ac_ext <<_ACEOF
 
15369
/* confdefs.h.  */
 
15370
_ACEOF
 
15371
cat confdefs.h >>conftest.$ac_ext
 
15372
cat >>conftest.$ac_ext <<_ACEOF
 
15373
/* end confdefs.h.  */
 
15374
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15375
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15376
#define $ac_func innocuous_$ac_func
 
15377
 
 
15378
/* System header to define __stub macros and hopefully few prototypes,
 
15379
    which can conflict with char $ac_func (); below.
 
15380
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15381
    <limits.h> exists even on freestanding compilers.  */
 
15382
 
 
15383
#ifdef __STDC__
 
15384
# include <limits.h>
 
15385
#else
 
15386
# include <assert.h>
 
15387
#endif
 
15388
 
 
15389
#undef $ac_func
 
15390
 
 
15391
/* Override any GCC internal prototype to avoid an error.
 
15392
   Use char because int might match the return type of a GCC
 
15393
   builtin and then its argument prototype would still apply.  */
 
15394
#ifdef __cplusplus
 
15395
extern "C"
 
15396
#endif
 
15397
char $ac_func ();
 
15398
/* The GNU C library defines this for functions which it implements
 
15399
    to always fail with ENOSYS.  Some functions are actually named
 
15400
    something starting with __ and the normal name is an alias.  */
 
15401
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15402
choke me
 
15403
#endif
 
15404
 
 
15405
int
 
15406
main ()
 
15407
{
 
15408
return $ac_func ();
 
15409
  ;
 
15410
  return 0;
 
15411
}
 
15412
_ACEOF
 
15413
rm -f conftest.$ac_objext conftest$ac_exeext
 
15414
if { (ac_try="$ac_link"
 
15415
case "(($ac_try" in
 
15416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15417
  *) ac_try_echo=$ac_try;;
 
15418
esac
 
15419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15420
  (eval "$ac_link") 2>conftest.er1
 
15421
  ac_status=$?
 
15422
  grep -v '^ *+' conftest.er1 >conftest.err
 
15423
  rm -f conftest.er1
 
15424
  cat conftest.err >&5
 
15425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15426
  (exit $ac_status); } && {
 
15427
         test -z "$ac_c_werror_flag" ||
 
15428
         test ! -s conftest.err
 
15429
       } && test -s conftest$ac_exeext &&
 
15430
       $as_test_x conftest$ac_exeext; then
 
15431
  eval "$as_ac_var=yes"
 
15432
else
 
15433
  echo "$as_me: failed program was:" >&5
 
15434
sed 's/^/| /' conftest.$ac_ext >&5
 
15435
 
 
15436
        eval "$as_ac_var=no"
 
15437
fi
 
15438
 
 
15439
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15440
      conftest$ac_exeext conftest.$ac_ext
 
15441
fi
 
15442
ac_res=`eval echo '${'$as_ac_var'}'`
 
15443
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15444
echo "${ECHO_T}$ac_res" >&6; }
 
15445
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15446
  cat >>confdefs.h <<_ACEOF
 
15447
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15448
_ACEOF
 
15449
 
 
15450
fi
 
15451
done
 
15452
 
 
15453
 
 
15454
build_bitbang=no
 
15455
build_bitq=no
 
15456
is_cygwin=no
 
15457
is_mingw=no
 
15458
is_win32=no
 
15459
is_darwin=no
 
15460
 
 
15461
if test $cross_compiling = no; then
 
15462
  # guess-rev.sh only exists in the repository, not in the released archives
 
15463
  as_ac_File=`echo "ac_cv_file_"$srcdir/guess-rev.sh"" | $as_tr_sh`
 
15464
{ echo "$as_me:$LINENO: checking for \"$srcdir/guess-rev.sh\"" >&5
 
15465
echo $ECHO_N "checking for \"$srcdir/guess-rev.sh\"... $ECHO_C" >&6; }
 
15466
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
15467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15468
else
 
15469
  test "$cross_compiling" = yes &&
 
15470
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
15471
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
15472
   { (exit 1); exit 1; }; }
 
15473
if test -r ""$srcdir/guess-rev.sh""; then
 
15474
  eval "$as_ac_File=yes"
 
15475
else
 
15476
  eval "$as_ac_File=no"
 
15477
fi
 
15478
fi
 
15479
ac_res=`eval echo '${'$as_ac_File'}'`
 
15480
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15481
echo "${ECHO_T}$ac_res" >&6; }
 
15482
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
15483
  has_guess_rev=yes
 
15484
else
 
15485
  has_guess_rev=no
 
15486
fi
 
15487
 
 
15488
 
 
15489
  { echo "$as_me:$LINENO: checking whether to build a release" >&5
 
15490
echo $ECHO_N "checking whether to build a release... $ECHO_C" >&6; }
 
15491
  if test $has_guess_rev = no; then
 
15492
    build_release=yes
 
15493
  else
 
15494
    build_release=no
 
15495
  fi
 
15496
  { echo "$as_me:$LINENO: result: $build_release" >&5
 
15497
echo "${ECHO_T}$build_release" >&6; }
 
15498
else
 
15499
  build_release=yes
 
15500
fi
 
15501
 
 
15502
# We are not *ALWAYS* being installed in the standard place.
 
15503
# We may be installed in a "tool-build" specific location.
 
15504
# Normally with other packages - as part of a tool distro.
 
15505
# Thus - we should search that 'libdir' also.
 
15506
#
 
15507
# And - if we are being installed there - the odds are
 
15508
# The libraries unique to what we are are there too.
 
15509
#
 
15510
 
 
15511
# Expand nd deal with NONE - just like configure will do later
 
15512
OCDprefix=$prefix
 
15513
OCDxprefix=$exec_prefix
 
15514
test x"$OCDprefix"  = xNONE && OCDprefix=$ac_default_prefix
 
15515
# Let make expand exec_prefix.
 
15516
test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
 
15517
 
 
15518
# what matters is the "exec-prefix"
 
15519
if test "$OCDxprefix" != "$ac_default_prefix"
 
15520
then
 
15521
    # We are installing in a non-standard place
 
15522
    # Nonstandard --prefix and/or --exec-prefix
 
15523
    # We have an override of some sort.
 
15524
    # use build specific install library dir
 
15525
 
 
15526
    LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
 
15527
    # RPATH becomes an issue on Linux only
 
15528
    if test $host_os = linux-gnu || test $host_os = linux ; then
 
15529
      LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
 
15530
    fi
 
15531
    # The "INCDIR" is also usable
 
15532
    CFLAGS="$CFLAGS -I$includedir"
 
15533
fi
 
15534
 
 
15535
 
 
15536
# Check whether --with-ftd2xx was given.
 
15537
if test "${with_ftd2xx+set}" = set; then
 
15538
  withval=$with_ftd2xx;
 
15539
# Option Given.
 
15540
cat << __EOF__
 
15541
 
 
15542
The option: --with-ftd2xx=<PATH> has been removed.
 
15543
On Linux, the new option is:
 
15544
 
 
15545
  --with-ftd2xx-linux-tardir=/path/to/files
 
15546
 
 
15547
Where <path> is the path the the directory where the "tar.gz" file
 
15548
from FTDICHIP.COM was unpacked, for example:
 
15549
 
 
15550
  --with-ftd2xx-linux-tardir=${HOME}/libftd2xx0.4.16
 
15551
 
 
15552
On Cygwin/MingW32, the new option is:
 
15553
 
 
15554
  --with-ftd2xx-win32-zipdir=/path/to/files
 
15555
 
 
15556
Where <path> is the path to the directory where the "zip" file from
 
15557
FTDICHIP.COM was unpacked, for example:
 
15558
 
 
15559
  --with-ftd2xx-win32-zipdir=${HOME}/ftd2xx.cdm.files
 
15560
 
 
15561
__EOF__
 
15562
 
 
15563
   { { echo "$as_me:$LINENO: error: Sorry Cannot continue" >&5
 
15564
echo "$as_me: error: Sorry Cannot continue" >&2;}
 
15565
   { (exit 1); exit 1; }; }
 
15566
 
 
15567
else
 
15568
  true
 
15569
fi
 
15570
 
 
15571
 
 
15572
#========================================
 
15573
# FTD2XXX support comes in 4 forms.
 
15574
#    (1) win32 - via a zip file
 
15575
#    (2) linux - via a tar file
 
15576
#    (3) linux/cygwin/mingw - via libftdi
 
15577
#    (4) darwin - installed under /usr/local
 
15578
#
 
15579
# In case (1) and (2) we need to know where the package was unpacked.
 
15580
 
 
15581
 
 
15582
# Check whether --with-ftd2xx-win32-zipdir was given.
 
15583
if test "${with_ftd2xx_win32_zipdir+set}" = set; then
 
15584
  withval=$with_ftd2xx_win32_zipdir;
 
15585
  # option present
 
15586
  if test -d $with_ftd2xx_win32_zipdir
 
15587
  then
 
15588
    with_ftd2xx_win32_zipdir=`cd $with_ftd2xx_win32_zipdir && pwd`
 
15589
    { echo "$as_me:$LINENO: Using: ftdichip.com library: $with_ftd2xx_win32_zipdir" >&5
 
15590
echo "$as_me: Using: ftdichip.com library: $with_ftd2xx_win32_zipdir" >&6;}
 
15591
  else
 
15592
    { { echo "$as_me:$LINENO: error: Parameter to --with-ftd2xx-win32-zipdir is not a dir: $with_ftd2xx_win32_zipdir" >&5
 
15593
echo "$as_me: error: Parameter to --with-ftd2xx-win32-zipdir is not a dir: $with_ftd2xx_win32_zipdir" >&2;}
 
15594
   { (exit 1); exit 1; }; }
 
15595
  fi
 
15596
 
 
15597
else
 
15598
  true
 
15599
fi
 
15600
 
 
15601
 
 
15602
 
 
15603
# Check whether --with-ftd2xx-linux-tardir was given.
 
15604
if test "${with_ftd2xx_linux_tardir+set}" = set; then
 
15605
  withval=$with_ftd2xx_linux_tardir;
 
15606
  # Option present
 
15607
  if test $is_win32 = yes ; then
 
15608
     { { echo "$as_me:$LINENO: error: The option: --with-ftd2xx-linux-tardir is only usable on linux" >&5
 
15609
echo "$as_me: error: The option: --with-ftd2xx-linux-tardir is only usable on linux" >&2;}
 
15610
   { (exit 1); exit 1; }; }
 
15611
  fi
 
15612
  if test -d $with_ftd2xx_linux_tardir
 
15613
  then
 
15614
    with_ftd2xx_linux_tardir=`cd $with_ftd2xx_linux_tardir && pwd`
 
15615
    { echo "$as_me:$LINENO: Using: ftdichip.com library: $with_ftd2xx_linux_tardir" >&5
 
15616
echo "$as_me: Using: ftdichip.com library: $with_ftd2xx_linux_tardir" >&6;}
 
15617
  else
 
15618
    { { echo "$as_me:$LINENO: error: Parameter to --with-ftd2xx-linux-tardir is not a dir: $with_ftd2xx_linux_tardir" >&5
 
15619
echo "$as_me: error: Parameter to --with-ftd2xx-linux-tardir is not a dir: $with_ftd2xx_linux_tardir" >&2;}
 
15620
   { (exit 1); exit 1; }; }
 
15621
  fi
 
15622
 
 
15623
else
 
15624
  true
 
15625
fi
 
15626
 
 
15627
 
 
15628
 
 
15629
# Check whether --with-ftd2xx-lib was given.
 
15630
if test "${with_ftd2xx_lib+set}" = set; then
 
15631
  withval=$with_ftd2xx_lib;
 
15632
  case "$withval" in
 
15633
  static)
 
15634
    with_ftd2xx_lib=$withval
 
15635
    ;;
 
15636
  shared)
 
15637
    with_ftd2xx_lib=$withval
 
15638
    ;;
 
15639
  *)
 
15640
    { { echo "$as_me:$LINENO: error: Option: --with-ftd2xx-lib=static or --with-ftd2xx-lib=shared not, $withval" >&5
 
15641
echo "$as_me: error: Option: --with-ftd2xx-lib=static or --with-ftd2xx-lib=shared not, $withval" >&2;}
 
15642
   { (exit 1); exit 1; }; }
 
15643
    ;;
 
15644
  esac
 
15645
 
 
15646
else
 
15647
 
 
15648
  # Default is static - it is simpler :-(
 
15649
  with_ftd2xx_lib=static
 
15650
 
 
15651
fi
 
15652
 
 
15653
 
 
15654
# Check whether --enable-gccwarnings was given.
 
15655
if test "${enable_gccwarnings+set}" = set; then
 
15656
  enableval=$enable_gccwarnings; gcc_warnings=$enableval
 
15657
else
 
15658
  gcc_warnings=yes
 
15659
fi
 
15660
 
 
15661
 
 
15662
# Check whether --enable-wextra was given.
 
15663
if test "${enable_wextra+set}" = set; then
 
15664
  enableval=$enable_wextra; gcc_wextra=$enableval
 
15665
else
 
15666
  gcc_wextra=$gcc_warnings
 
15667
fi
 
15668
 
 
15669
 
 
15670
# Check whether --enable-werror was given.
 
15671
if test "${enable_werror+set}" = set; then
 
15672
  enableval=$enable_werror; gcc_werror=$enableval
 
15673
else
 
15674
  gcc_werror=$gcc_warnings
 
15675
fi
 
15676
 
 
15677
 
 
15678
# set default verbose options, overridden by following options
 
15679
debug_jtag_io=no
 
15680
debug_usb_io=no
 
15681
debug_usb_comms=no
 
15682
 
 
15683
# Check whether --enable-verbose was given.
 
15684
if test "${enable_verbose+set}" = set; then
 
15685
  enableval=$enable_verbose;
 
15686
  debug_jtag_io=$enableval
 
15687
  debug_usb_io=$enableval
 
15688
  debug_usb_comms=$enableval
 
15689
 
 
15690
fi
 
15691
 
 
15692
 
 
15693
# Check whether --enable-verbose_jtag_io was given.
 
15694
if test "${enable_verbose_jtag_io+set}" = set; then
 
15695
  enableval=$enable_verbose_jtag_io; debug_jtag_io=$enableval
 
15696
fi
 
15697
 
 
15698
# Check whether --enable-verbose_usb_io was given.
 
15699
if test "${enable_verbose_usb_io+set}" = set; then
 
15700
  enableval=$enable_verbose_usb_io; debug_usb_io=$enableval
 
15701
fi
 
15702
 
 
15703
# Check whether --enable-verbose_usb_comms was given.
 
15704
if test "${enable_verbose_usb_comms+set}" = set; then
 
15705
  enableval=$enable_verbose_usb_comms; debug_usb_comms=$enableval
 
15706
fi
 
15707
 
 
15708
 
 
15709
{ echo "$as_me:$LINENO: checking whether to enable verbose JTAG I/O messages" >&5
 
15710
echo $ECHO_N "checking whether to enable verbose JTAG I/O messages... $ECHO_C" >&6; };
 
15711
{ echo "$as_me:$LINENO: result: $debug_jtag_io" >&5
 
15712
echo "${ECHO_T}$debug_jtag_io" >&6; }
 
15713
if test $debug_jtag_io = yes; then
 
15714
 
 
15715
cat >>confdefs.h <<\_ACEOF
 
15716
#define _DEBUG_JTAG_IO_ 1
 
15717
_ACEOF
 
15718
 
 
15719
fi
 
15720
 
 
15721
{ echo "$as_me:$LINENO: checking whether to enable verbose USB I/O messages" >&5
 
15722
echo $ECHO_N "checking whether to enable verbose USB I/O messages... $ECHO_C" >&6; };
 
15723
{ echo "$as_me:$LINENO: result: $debug_usb_io" >&5
 
15724
echo "${ECHO_T}$debug_usb_io" >&6; }
 
15725
if test $debug_usb_io = yes; then
 
15726
 
 
15727
cat >>confdefs.h <<\_ACEOF
 
15728
#define _DEBUG_USB_IO_ 1
 
15729
_ACEOF
 
15730
 
 
15731
fi
 
15732
 
 
15733
{ echo "$as_me:$LINENO: checking whether to enable verbose USB communication messages" >&5
 
15734
echo $ECHO_N "checking whether to enable verbose USB communication messages... $ECHO_C" >&6; };
 
15735
{ echo "$as_me:$LINENO: result: $debug_usb_comms" >&5
 
15736
echo "${ECHO_T}$debug_usb_comms" >&6; }
 
15737
if test $debug_usb_comms = yes; then
 
15738
 
 
15739
cat >>confdefs.h <<\_ACEOF
 
15740
#define _DEBUG_USB_COMMS_ 1
 
15741
_ACEOF
 
15742
 
 
15743
fi
 
15744
 
 
15745
 
 
15746
debug_malloc=no
 
15747
# Check whether --enable-malloc_logging was given.
 
15748
if test "${enable_malloc_logging+set}" = set; then
 
15749
  enableval=$enable_malloc_logging; debug_malloc=$enableval
 
15750
fi
 
15751
 
 
15752
 
 
15753
{ echo "$as_me:$LINENO: checking whether to enable malloc free space logging" >&5
 
15754
echo $ECHO_N "checking whether to enable malloc free space logging... $ECHO_C" >&6; };
 
15755
{ echo "$as_me:$LINENO: result: $debug_malloc" >&5
 
15756
echo "${ECHO_T}$debug_malloc" >&6; }
 
15757
if test $debug_malloc = yes; then
 
15758
 
 
15759
cat >>confdefs.h <<\_ACEOF
 
15760
#define _DEBUG_FREE_SPACE_ 1
 
15761
_ACEOF
 
15762
 
 
15763
fi
 
15764
 
 
15765
 
 
15766
# Check whether --enable-dummy was given.
 
15767
if test "${enable_dummy+set}" = set; then
 
15768
  enableval=$enable_dummy; build_dummy=$enableval
 
15769
else
 
15770
  build_dummy=no
 
15771
fi
 
15772
 
 
15773
 
 
15774
# Check whether --enable-parport was given.
 
15775
if test "${enable_parport+set}" = set; then
 
15776
  enableval=$enable_parport; build_parport=$enableval
 
15777
else
 
15778
  build_parport=no
 
15779
fi
 
15780
 
 
15781
 
 
15782
# Check whether --enable-parport_ppdev was given.
 
15783
if test "${enable_parport_ppdev+set}" = set; then
 
15784
  enableval=$enable_parport_ppdev; parport_use_ppdev=$enableval
 
15785
else
 
15786
  parport_use_ppdev=yes
 
15787
fi
 
15788
 
 
15789
 
 
15790
# Check whether --enable-parport_giveio was given.
 
15791
if test "${enable_parport_giveio+set}" = set; then
 
15792
  enableval=$enable_parport_giveio; parport_use_giveio=$enableval
 
15793
else
 
15794
  parport_use_giveio=
 
15795
fi
 
15796
 
 
15797
 
 
15798
# Check whether --enable-ft2232_libftdi was given.
 
15799
if test "${enable_ft2232_libftdi+set}" = set; then
 
15800
  enableval=$enable_ft2232_libftdi; build_ft2232_libftdi=$enableval
 
15801
else
 
15802
  build_ft2232_libftdi=no
 
15803
fi
 
15804
 
 
15805
 
 
15806
# Check whether --enable-ft2232_ftd2xx was given.
 
15807
if test "${enable_ft2232_ftd2xx+set}" = set; then
 
15808
  enableval=$enable_ft2232_ftd2xx; build_ft2232_ftd2xx=$enableval
 
15809
else
 
15810
  build_ft2232_ftd2xx=no
 
15811
fi
 
15812
 
 
15813
 
 
15814
# Check whether --enable-amtjtagaccel was given.
 
15815
if test "${enable_amtjtagaccel+set}" = set; then
 
15816
  enableval=$enable_amtjtagaccel; build_amtjtagaccel=$enableval
 
15817
else
 
15818
  build_amtjtagaccel=no
 
15819
fi
 
15820
 
 
15821
 
 
15822
# Check whether --enable-ecosboard was given.
 
15823
if test "${enable_ecosboard+set}" = set; then
 
15824
  enableval=$enable_ecosboard; build_ecosboard=$enableval
 
15825
else
 
15826
  build_ecosboard=no
 
15827
fi
 
15828
 
 
15829
 
 
15830
# Check whether --enable-zy1000 was given.
 
15831
if test "${enable_zy1000+set}" = set; then
 
15832
  enableval=$enable_zy1000; build_zy1000=$enableval
 
15833
else
 
15834
  build_zy1000=no
 
15835
fi
 
15836
 
 
15837
 
 
15838
# Check whether --enable-ioutil was given.
 
15839
if test "${enable_ioutil+set}" = set; then
 
15840
  enableval=$enable_ioutil; build_ioutil=$enableval
 
15841
else
 
15842
  build_ioutil=no
 
15843
fi
 
15844
 
 
15845
 
 
15846
# Check whether --enable-httpd was given.
 
15847
if test "${enable_httpd+set}" = set; then
 
15848
  enableval=$enable_httpd; build_httpd=$enableval
 
15849
else
 
15850
  build_httpd=no
 
15851
fi
 
15852
 
 
15853
 
 
15854
case "${host_cpu}" in
 
15855
  arm*)
 
15856
    # Check whether --enable-ep93xx was given.
 
15857
if test "${enable_ep93xx+set}" = set; then
 
15858
  enableval=$enable_ep93xx; build_ep93xx=$enableval
 
15859
else
 
15860
  build_ep93xx=no
 
15861
fi
 
15862
 
 
15863
 
 
15864
    # Check whether --enable-at91rm9200 was given.
 
15865
if test "${enable_at91rm9200+set}" = set; then
 
15866
  enableval=$enable_at91rm9200; build_at91rm9200=$enableval
 
15867
else
 
15868
  build_at91rm9200=no
 
15869
fi
 
15870
 
 
15871
    ;;
 
15872
 
 
15873
  *)
 
15874
    build_ep93xx=no
 
15875
    build_at91rm9200=no
 
15876
    ;;
 
15877
esac
 
15878
 
 
15879
# Check whether --enable-gw16012 was given.
 
15880
if test "${enable_gw16012+set}" = set; then
 
15881
  enableval=$enable_gw16012; build_gw16012=$enableval
 
15882
else
 
15883
  build_gw16012=no
 
15884
fi
 
15885
 
 
15886
 
 
15887
# Check whether --enable-presto_libftdi was given.
 
15888
if test "${enable_presto_libftdi+set}" = set; then
 
15889
  enableval=$enable_presto_libftdi; build_presto_libftdi=$enableval
 
15890
else
 
15891
  build_presto_libftdi=no
 
15892
fi
 
15893
 
 
15894
 
 
15895
# Check whether --enable-presto_ftd2xx was given.
 
15896
if test "${enable_presto_ftd2xx+set}" = set; then
 
15897
  enableval=$enable_presto_ftd2xx; build_presto_ftd2xx=$enableval
 
15898
else
 
15899
  build_presto_ftd2xx=no
 
15900
fi
 
15901
 
 
15902
 
 
15903
# Check whether --enable-usbprog was given.
 
15904
if test "${enable_usbprog+set}" = set; then
 
15905
  enableval=$enable_usbprog; build_usbprog=$enableval
 
15906
else
 
15907
  build_usbprog=no
 
15908
fi
 
15909
 
 
15910
 
 
15911
# Check whether --enable-oocd_trace was given.
 
15912
if test "${enable_oocd_trace+set}" = set; then
 
15913
  enableval=$enable_oocd_trace; build_oocd_trace=$enableval
 
15914
else
 
15915
  build_oocd_trace=no
 
15916
fi
 
15917
 
 
15918
 
 
15919
# Check whether --enable-jlink was given.
 
15920
if test "${enable_jlink+set}" = set; then
 
15921
  enableval=$enable_jlink; build_jlink=$enableval
 
15922
else
 
15923
  build_jlink=no
 
15924
fi
 
15925
 
 
15926
 
 
15927
# Check whether --enable-vsllink was given.
 
15928
if test "${enable_vsllink+set}" = set; then
 
15929
  enableval=$enable_vsllink; build_vsllink=$enableval
 
15930
else
 
15931
  build_vsllink=no
 
15932
fi
 
15933
 
 
15934
 
 
15935
# Check whether --enable-rlink was given.
 
15936
if test "${enable_rlink+set}" = set; then
 
15937
  enableval=$enable_rlink; build_rlink=$enableval
 
15938
else
 
15939
  build_rlink=no
 
15940
fi
 
15941
 
 
15942
 
 
15943
# Check whether --enable-arm-jtag-ew was given.
 
15944
if test "${enable_arm_jtag_ew+set}" = set; then
 
15945
  enableval=$enable_arm_jtag_ew; build_armjtagew=$enableval
 
15946
else
 
15947
  build_armjtagew=no
 
15948
fi
 
15949
 
 
15950
 
 
15951
# Check whether --enable-minidriver_dummy was given.
 
15952
if test "${enable_minidriver_dummy+set}" = set; then
 
15953
  enableval=$enable_minidriver_dummy; build_minidriver_dummy=$enableval
 
15954
else
 
15955
  build_minidriver_dummy=no
 
15956
fi
 
15957
 
 
15958
 
 
15959
 
 
15960
build_minidriver=no
 
15961
{ echo "$as_me:$LINENO: checking whether to enable ZY1000 minidriver" >&5
 
15962
echo $ECHO_N "checking whether to enable ZY1000 minidriver... $ECHO_C" >&6; }
 
15963
if test $build_zy1000 = yes; then
 
15964
  if test $build_minidriver = yes; then
 
15965
    { { echo "$as_me:$LINENO: error: Multiple minidriver options have been enabled." >&5
 
15966
echo "$as_me: error: Multiple minidriver options have been enabled." >&2;}
 
15967
   { (exit 1); exit 1; }; }
 
15968
  fi
 
15969
 
 
15970
cat >>confdefs.h <<\_ACEOF
 
15971
#define HAVE_JTAG_MINIDRIVER_H 1
 
15972
_ACEOF
 
15973
 
 
15974
  build_minidriver=yes
 
15975
fi
 
15976
{ echo "$as_me:$LINENO: result: $build_zy1000" >&5
 
15977
echo "${ECHO_T}$build_zy1000" >&6; }
 
15978
 
 
15979
 
 
15980
{ echo "$as_me:$LINENO: checking whether to enable dummy minidriver" >&5
 
15981
echo $ECHO_N "checking whether to enable dummy minidriver... $ECHO_C" >&6; }
 
15982
if test $build_minidriver_dummy = yes; then
 
15983
  if test $build_minidriver = yes; then
 
15984
    { { echo "$as_me:$LINENO: error: Multiple minidriver options have been enabled." >&5
 
15985
echo "$as_me: error: Multiple minidriver options have been enabled." >&2;}
 
15986
   { (exit 1); exit 1; }; }
 
15987
  fi
 
15988
  build_minidriver=yes
 
15989
 
 
15990
cat >>confdefs.h <<\_ACEOF
 
15991
#define BUILD_MINIDRIVER_DUMMY 1
 
15992
_ACEOF
 
15993
 
 
15994
 
 
15995
cat >>confdefs.h <<\_ACEOF
 
15996
#define HAVE_JTAG_MINIDRIVER_H 1
 
15997
_ACEOF
 
15998
 
 
15999
fi
 
16000
{ echo "$as_me:$LINENO: result: $build_minidriver_dummy" >&5
 
16001
echo "${ECHO_T}$build_minidriver_dummy" >&6; }
 
16002
 
 
16003
{ echo "$as_me:$LINENO: checking whether standard drivers can be built" >&5
 
16004
echo $ECHO_N "checking whether standard drivers can be built... $ECHO_C" >&6; }
 
16005
if test "$build_minidriver" = yes; then
 
16006
  { echo "$as_me:$LINENO: result: no" >&5
 
16007
echo "${ECHO_T}no" >&6; }
 
16008
  { echo "$as_me:$LINENO: WARNING: Using the minidriver disables all other drivers." >&5
 
16009
echo "$as_me: WARNING: Using the minidriver disables all other drivers." >&2;}
 
16010
  sleep 2
 
16011
else
 
16012
  { echo "$as_me:$LINENO: result: yes" >&5
 
16013
echo "${ECHO_T}yes" >&6; }
 
16014
fi
 
16015
 
 
16016
case "${host_cpu}" in
 
16017
  i?86|x86*)
 
16018
    ;;
 
16019
  *)
 
16020
    if test x$parport_use_ppdev = xno; then
 
16021
      { echo "$as_me:$LINENO: WARNING: --disable-parport-ppdev is not supported by the host CPU" >&5
 
16022
echo "$as_me: WARNING: --disable-parport-ppdev is not supported by the host CPU" >&2;}
 
16023
    fi
 
16024
    parport_use_ppdev=yes
 
16025
    ;;
 
16026
esac
 
16027
 
 
16028
case $host in
 
16029
  *-cygwin*)
 
16030
    is_win32=yes
 
16031
    parport_use_ppdev=no
 
16032
 
 
16033
    cat >conftest.$ac_ext <<_ACEOF
 
16034
/* confdefs.h.  */
 
16035
_ACEOF
 
16036
cat confdefs.h >>conftest.$ac_ext
 
16037
cat >>conftest.$ac_ext <<_ACEOF
 
16038
/* end confdefs.h.  */
 
16039
 
 
16040
int
 
16041
main ()
 
16042
{
 
16043
return __MINGW32__;
 
16044
  ;
 
16045
  return 0;
 
16046
}
 
16047
_ACEOF
 
16048
rm -f conftest.$ac_objext
 
16049
if { (ac_try="$ac_compile"
 
16050
case "(($ac_try" in
 
16051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16052
  *) ac_try_echo=$ac_try;;
 
16053
esac
 
16054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16055
  (eval "$ac_compile") 2>conftest.er1
 
16056
  ac_status=$?
 
16057
  grep -v '^ *+' conftest.er1 >conftest.err
 
16058
  rm -f conftest.er1
 
16059
  cat conftest.err >&5
 
16060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16061
  (exit $ac_status); } && {
 
16062
         test -z "$ac_c_werror_flag" ||
 
16063
         test ! -s conftest.err
 
16064
       } && test -s conftest.$ac_objext; then
 
16065
  is_mingw=yes
 
16066
else
 
16067
  echo "$as_me: failed program was:" >&5
 
16068
sed 's/^/| /' conftest.$ac_ext >&5
 
16069
 
 
16070
        is_mingw=no
 
16071
fi
 
16072
 
 
16073
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16074
    if test $is_mingw = yes; then
 
16075
 
 
16076
cat >>confdefs.h <<\_ACEOF
 
16077
#define IS_MINGW 1
 
16078
_ACEOF
 
16079
 
 
16080
      if test x$parport_use_giveio = xno; then
 
16081
        { echo "$as_me:$LINENO: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&5
 
16082
echo "$as_me: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&2;}
 
16083
      fi
 
16084
      parport_use_giveio=yes
 
16085
      is_cygwin=no
 
16086
    else
 
16087
      is_cygwin=yes
 
16088
 
 
16089
cat >>confdefs.h <<\_ACEOF
 
16090
#define IS_CYGWIN 1
 
16091
_ACEOF
 
16092
 
 
16093
      # sys/io.h needed under cygwin for parport access
 
16094
      if test $build_parport = yes; then
 
16095
 
 
16096
for ac_header in sys/io.h
 
16097
do
 
16098
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16099
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16100
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16101
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16102
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16104
fi
 
16105
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16106
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16107
echo "${ECHO_T}$ac_res" >&6; }
 
16108
else
 
16109
  # Is the header compilable?
 
16110
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16111
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
16112
cat >conftest.$ac_ext <<_ACEOF
 
16113
/* confdefs.h.  */
 
16114
_ACEOF
 
16115
cat confdefs.h >>conftest.$ac_ext
 
16116
cat >>conftest.$ac_ext <<_ACEOF
 
16117
/* end confdefs.h.  */
 
16118
$ac_includes_default
 
16119
#include <$ac_header>
 
16120
_ACEOF
 
16121
rm -f conftest.$ac_objext
 
16122
if { (ac_try="$ac_compile"
 
16123
case "(($ac_try" in
 
16124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16125
  *) ac_try_echo=$ac_try;;
 
16126
esac
 
16127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16128
  (eval "$ac_compile") 2>conftest.er1
 
16129
  ac_status=$?
 
16130
  grep -v '^ *+' conftest.er1 >conftest.err
 
16131
  rm -f conftest.er1
 
16132
  cat conftest.err >&5
 
16133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16134
  (exit $ac_status); } && {
 
16135
         test -z "$ac_c_werror_flag" ||
 
16136
         test ! -s conftest.err
 
16137
       } && test -s conftest.$ac_objext; then
 
16138
  ac_header_compiler=yes
 
16139
else
 
16140
  echo "$as_me: failed program was:" >&5
 
16141
sed 's/^/| /' conftest.$ac_ext >&5
 
16142
 
 
16143
        ac_header_compiler=no
 
16144
fi
 
16145
 
 
16146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16147
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16148
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
16149
 
 
16150
# Is the header present?
 
16151
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
16152
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
16153
cat >conftest.$ac_ext <<_ACEOF
 
16154
/* confdefs.h.  */
 
16155
_ACEOF
 
16156
cat confdefs.h >>conftest.$ac_ext
 
16157
cat >>conftest.$ac_ext <<_ACEOF
 
16158
/* end confdefs.h.  */
 
16159
#include <$ac_header>
 
16160
_ACEOF
 
16161
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16162
case "(($ac_try" in
 
16163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16164
  *) ac_try_echo=$ac_try;;
 
16165
esac
 
16166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16167
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16168
  ac_status=$?
 
16169
  grep -v '^ *+' conftest.er1 >conftest.err
 
16170
  rm -f conftest.er1
 
16171
  cat conftest.err >&5
 
16172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16173
  (exit $ac_status); } >/dev/null && {
 
16174
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16175
         test ! -s conftest.err
 
16176
       }; then
 
16177
  ac_header_preproc=yes
 
16178
else
 
16179
  echo "$as_me: failed program was:" >&5
 
16180
sed 's/^/| /' conftest.$ac_ext >&5
 
16181
 
 
16182
  ac_header_preproc=no
 
16183
fi
 
16184
 
 
16185
rm -f conftest.err conftest.$ac_ext
 
16186
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16187
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
16188
 
 
16189
# So?  What about this header?
 
16190
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
16191
  yes:no: )
 
16192
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
16193
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
16194
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
16195
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
16196
    ac_header_preproc=yes
 
16197
    ;;
 
16198
  no:yes:* )
 
16199
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
16200
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
16201
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
16202
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
16203
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
16204
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
16205
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
16206
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
16207
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
16208
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
16209
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
16210
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
16211
    ( cat <<\_ASBOX
 
16212
## -------------------------------------------------------------------------- ##
 
16213
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
16214
## -------------------------------------------------------------------------- ##
 
16215
_ASBOX
 
16216
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
16217
    ;;
 
16218
esac
 
16219
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16220
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16223
else
 
16224
  eval "$as_ac_Header=\$ac_header_preproc"
 
16225
fi
 
16226
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16227
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16228
echo "${ECHO_T}$ac_res" >&6; }
 
16229
 
 
16230
fi
 
16231
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
16232
  cat >>confdefs.h <<_ACEOF
 
16233
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
16234
_ACEOF
 
16235
 
 
16236
else
 
16237
  { { echo "$as_me:$LINENO: error: Please install the cygwin ioperm package" >&5
 
16238
echo "$as_me: error: Please install the cygwin ioperm package" >&2;}
 
16239
   { (exit 1); exit 1; }; }
 
16240
fi
 
16241
 
 
16242
done
 
16243
 
 
16244
      fi
 
16245
    fi
 
16246
 
 
16247
 
 
16248
cat >>confdefs.h <<\_ACEOF
 
16249
#define IS_WIN32 1
 
16250
_ACEOF
 
16251
 
 
16252
 
 
16253
cat >>confdefs.h <<\_ACEOF
 
16254
#define IS_DARWIN 0
 
16255
_ACEOF
 
16256
 
 
16257
    ;;
 
16258
  *-mingw*)
 
16259
    is_mingw=yes
 
16260
    is_win32=yes
 
16261
    parport_use_ppdev=no
 
16262
 
 
16263
    if test x$parport_use_giveio = xno; then
 
16264
      { echo "$as_me:$LINENO: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&5
 
16265
echo "$as_me: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&2;}
 
16266
    fi
 
16267
    parport_use_giveio=yes
 
16268
 
 
16269
    CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO"
 
16270
 
 
16271
 
 
16272
cat >>confdefs.h <<\_ACEOF
 
16273
#define IS_MINGW 1
 
16274
_ACEOF
 
16275
 
 
16276
 
 
16277
cat >>confdefs.h <<\_ACEOF
 
16278
#define IS_WIN32 1
 
16279
_ACEOF
 
16280
 
 
16281
 
 
16282
cat >>confdefs.h <<\_ACEOF
 
16283
#define IS_DARWIN 0
 
16284
_ACEOF
 
16285
 
 
16286
    ;;
 
16287
  *darwin*)
 
16288
    is_darwin=yes
 
16289
 
 
16290
    if test x$parport_use_giveio = xyes; then
 
16291
      { echo "$as_me:$LINENO: WARNING: --enable-parport-giveio cannot be used by Darwin hosts" >&5
 
16292
echo "$as_me: WARNING: --enable-parport-giveio cannot be used by Darwin hosts" >&2;}
 
16293
    fi
 
16294
    parport_use_giveio=no
 
16295
 
 
16296
 
 
16297
cat >>confdefs.h <<\_ACEOF
 
16298
#define IS_CYGWIN 0
 
16299
_ACEOF
 
16300
 
 
16301
 
 
16302
cat >>confdefs.h <<\_ACEOF
 
16303
#define IS_WIN32 0
 
16304
_ACEOF
 
16305
 
 
16306
 
 
16307
cat >>confdefs.h <<\_ACEOF
 
16308
#define IS_DARWIN 1
 
16309
_ACEOF
 
16310
 
 
16311
    ;;
 
16312
  *)
 
16313
    if test x$parport_use_giveio = xyes; then
 
16314
      { echo "$as_me:$LINENO: WARNING: --enable-parport-giveio cannot be used by $host hosts" >&5
 
16315
echo "$as_me: WARNING: --enable-parport-giveio cannot be used by $host hosts" >&2;}
 
16316
    fi
 
16317
    parport_use_giveio=no
 
16318
 
 
16319
cat >>confdefs.h <<\_ACEOF
 
16320
#define IS_CYGWIN 0
 
16321
_ACEOF
 
16322
 
 
16323
 
 
16324
cat >>confdefs.h <<\_ACEOF
 
16325
#define IS_WIN32 0
 
16326
_ACEOF
 
16327
 
 
16328
 
 
16329
cat >>confdefs.h <<\_ACEOF
 
16330
#define IS_DARWIN 0
 
16331
_ACEOF
 
16332
 
 
16333
    ;;
 
16334
esac
 
16335
 
 
16336
if test $build_parport = yes; then
 
16337
  build_bitbang=yes
 
16338
 
 
16339
cat >>confdefs.h <<\_ACEOF
 
16340
#define BUILD_PARPORT 1
 
16341
_ACEOF
 
16342
 
 
16343
else
 
16344
 
 
16345
cat >>confdefs.h <<\_ACEOF
 
16346
#define BUILD_PARPORT 0
 
16347
_ACEOF
 
16348
 
 
16349
fi
 
16350
 
 
16351
if test $build_dummy = yes; then
 
16352
  build_bitbang=yes
 
16353
 
 
16354
cat >>confdefs.h <<\_ACEOF
 
16355
#define BUILD_DUMMY 1
 
16356
_ACEOF
 
16357
 
 
16358
else
 
16359
 
 
16360
cat >>confdefs.h <<\_ACEOF
 
16361
#define BUILD_DUMMY 0
 
16362
_ACEOF
 
16363
 
 
16364
fi
 
16365
 
 
16366
if test $build_ep93xx = yes; then
 
16367
  build_bitbang=yes
 
16368
 
 
16369
cat >>confdefs.h <<\_ACEOF
 
16370
#define BUILD_EP93XX 1
 
16371
_ACEOF
 
16372
 
 
16373
else
 
16374
 
 
16375
cat >>confdefs.h <<\_ACEOF
 
16376
#define BUILD_EP93XX 0
 
16377
_ACEOF
 
16378
 
 
16379
fi
 
16380
 
 
16381
if test $build_ecosboard = yes; then
 
16382
 
 
16383
cat >>confdefs.h <<\_ACEOF
 
16384
#define BUILD_ECOSBOARD 1
 
16385
_ACEOF
 
16386
 
 
16387
else
 
16388
 
 
16389
cat >>confdefs.h <<\_ACEOF
 
16390
#define BUILD_ECOSBOARD 0
 
16391
_ACEOF
 
16392
 
 
16393
fi
 
16394
 
 
16395
if test $build_zy1000 = yes; then
 
16396
 
 
16397
cat >>confdefs.h <<\_ACEOF
 
16398
#define BUILD_ZY1000 1
 
16399
_ACEOF
 
16400
 
 
16401
else
 
16402
 
 
16403
cat >>confdefs.h <<\_ACEOF
 
16404
#define BUILD_ZY1000 0
 
16405
_ACEOF
 
16406
 
 
16407
fi
 
16408
 
 
16409
if test $build_ioutil = yes; then
 
16410
 
 
16411
cat >>confdefs.h <<\_ACEOF
 
16412
#define BUILD_IOUTIL 1
 
16413
_ACEOF
 
16414
 
 
16415
else
 
16416
 
 
16417
cat >>confdefs.h <<\_ACEOF
 
16418
#define BUILD_IOUTIL 0
 
16419
_ACEOF
 
16420
 
 
16421
fi
 
16422
 
 
16423
if test $build_httpd = yes; then
 
16424
 
 
16425
cat >>confdefs.h <<\_ACEOF
 
16426
#define BUILD_HTTPD 1
 
16427
_ACEOF
 
16428
 
 
16429
else
 
16430
 
 
16431
cat >>confdefs.h <<\_ACEOF
 
16432
#define BUILD_HTTPD 0
 
16433
_ACEOF
 
16434
 
 
16435
fi
 
16436
 
 
16437
if test $build_at91rm9200 = yes; then
 
16438
  build_bitbang=yes
 
16439
 
 
16440
cat >>confdefs.h <<\_ACEOF
 
16441
#define BUILD_AT91RM9200 1
 
16442
_ACEOF
 
16443
 
 
16444
else
 
16445
 
 
16446
cat >>confdefs.h <<\_ACEOF
 
16447
#define BUILD_AT91RM9200 0
 
16448
_ACEOF
 
16449
 
 
16450
fi
 
16451
 
 
16452
if test x$parport_use_ppdev = xyes; then
 
16453
 
 
16454
cat >>confdefs.h <<\_ACEOF
 
16455
#define PARPORT_USE_PPDEV 1
 
16456
_ACEOF
 
16457
 
 
16458
else
 
16459
 
 
16460
cat >>confdefs.h <<\_ACEOF
 
16461
#define PARPORT_USE_PPDEV 0
 
16462
_ACEOF
 
16463
 
 
16464
fi
 
16465
 
 
16466
if test x$parport_use_giveio = xyes; then
 
16467
 
 
16468
cat >>confdefs.h <<\_ACEOF
 
16469
#define PARPORT_USE_GIVEIO 1
 
16470
_ACEOF
 
16471
 
 
16472
else
 
16473
 
 
16474
cat >>confdefs.h <<\_ACEOF
 
16475
#define PARPORT_USE_GIVEIO 0
 
16476
_ACEOF
 
16477
 
 
16478
fi
 
16479
 
 
16480
if test $build_bitbang = yes; then
 
16481
 
 
16482
cat >>confdefs.h <<\_ACEOF
 
16483
#define BUILD_BITBANG 1
 
16484
_ACEOF
 
16485
 
 
16486
else
 
16487
 
 
16488
cat >>confdefs.h <<\_ACEOF
 
16489
#define BUILD_BITBANG 0
 
16490
_ACEOF
 
16491
 
 
16492
fi
 
16493
 
 
16494
if test $build_ft2232_libftdi = yes; then
 
16495
 
 
16496
cat >>confdefs.h <<\_ACEOF
 
16497
#define BUILD_FT2232_LIBFTDI 1
 
16498
_ACEOF
 
16499
 
 
16500
else
 
16501
 
 
16502
cat >>confdefs.h <<\_ACEOF
 
16503
#define BUILD_FT2232_LIBFTDI 0
 
16504
_ACEOF
 
16505
 
 
16506
fi
 
16507
 
 
16508
if test $build_ft2232_ftd2xx = yes; then
 
16509
 
 
16510
cat >>confdefs.h <<\_ACEOF
 
16511
#define BUILD_FT2232_FTD2XX 1
 
16512
_ACEOF
 
16513
 
 
16514
else
 
16515
 
 
16516
cat >>confdefs.h <<\_ACEOF
 
16517
#define BUILD_FT2232_FTD2XX 0
 
16518
_ACEOF
 
16519
 
 
16520
fi
 
16521
 
 
16522
if test $build_amtjtagaccel = yes; then
 
16523
 
 
16524
cat >>confdefs.h <<\_ACEOF
 
16525
#define BUILD_AMTJTAGACCEL 1
 
16526
_ACEOF
 
16527
 
 
16528
else
 
16529
 
 
16530
cat >>confdefs.h <<\_ACEOF
 
16531
#define BUILD_AMTJTAGACCEL 0
 
16532
_ACEOF
 
16533
 
 
16534
fi
 
16535
 
 
16536
if test $build_gw16012 = yes; then
 
16537
 
 
16538
cat >>confdefs.h <<\_ACEOF
 
16539
#define BUILD_GW16012 1
 
16540
_ACEOF
 
16541
 
 
16542
else
 
16543
 
 
16544
cat >>confdefs.h <<\_ACEOF
 
16545
#define BUILD_GW16012 0
 
16546
_ACEOF
 
16547
 
 
16548
fi
 
16549
 
 
16550
if test $build_presto_libftdi = yes; then
 
16551
  build_bitq=yes
 
16552
 
 
16553
cat >>confdefs.h <<\_ACEOF
 
16554
#define BUILD_PRESTO_LIBFTDI 1
 
16555
_ACEOF
 
16556
 
 
16557
else
 
16558
 
 
16559
cat >>confdefs.h <<\_ACEOF
 
16560
#define BUILD_PRESTO_LIBFTDI 0
 
16561
_ACEOF
 
16562
 
 
16563
fi
 
16564
 
 
16565
if test $build_presto_ftd2xx = yes; then
 
16566
  build_bitq=yes
 
16567
 
 
16568
cat >>confdefs.h <<\_ACEOF
 
16569
#define BUILD_PRESTO_FTD2XX 1
 
16570
_ACEOF
 
16571
 
 
16572
else
 
16573
 
 
16574
cat >>confdefs.h <<\_ACEOF
 
16575
#define BUILD_PRESTO_FTD2XX 0
 
16576
_ACEOF
 
16577
 
 
16578
fi
 
16579
 
 
16580
if test $build_bitq = yes; then
 
16581
 
 
16582
cat >>confdefs.h <<\_ACEOF
 
16583
#define BUILD_BITQ 1
 
16584
_ACEOF
 
16585
 
 
16586
else
 
16587
 
 
16588
cat >>confdefs.h <<\_ACEOF
 
16589
#define BUILD_BITQ 0
 
16590
_ACEOF
 
16591
 
 
16592
fi
 
16593
 
 
16594
if test $build_usbprog = yes; then
 
16595
 
 
16596
cat >>confdefs.h <<\_ACEOF
 
16597
#define BUILD_USBPROG 1
 
16598
_ACEOF
 
16599
 
 
16600
else
 
16601
 
 
16602
cat >>confdefs.h <<\_ACEOF
 
16603
#define BUILD_USBPROG 0
 
16604
_ACEOF
 
16605
 
 
16606
fi
 
16607
 
 
16608
if test $build_oocd_trace = yes; then
 
16609
 
 
16610
cat >>confdefs.h <<\_ACEOF
 
16611
#define BUILD_OOCD_TRACE 1
 
16612
_ACEOF
 
16613
 
 
16614
else
 
16615
 
 
16616
cat >>confdefs.h <<\_ACEOF
 
16617
#define BUILD_OOCD_TRACE 0
 
16618
_ACEOF
 
16619
 
 
16620
fi
 
16621
 
 
16622
if test $build_jlink = yes; then
 
16623
 
 
16624
cat >>confdefs.h <<\_ACEOF
 
16625
#define BUILD_JLINK 1
 
16626
_ACEOF
 
16627
 
 
16628
else
 
16629
 
 
16630
cat >>confdefs.h <<\_ACEOF
 
16631
#define BUILD_JLINK 0
 
16632
_ACEOF
 
16633
 
 
16634
fi
 
16635
 
 
16636
if test $build_vsllink = yes; then
 
16637
 
 
16638
cat >>confdefs.h <<\_ACEOF
 
16639
#define BUILD_VSLLINK 1
 
16640
_ACEOF
 
16641
 
 
16642
else
 
16643
 
 
16644
cat >>confdefs.h <<\_ACEOF
 
16645
#define BUILD_VSLLINK 0
 
16646
_ACEOF
 
16647
 
 
16648
fi
 
16649
 
 
16650
if test $build_rlink = yes; then
 
16651
 
 
16652
cat >>confdefs.h <<\_ACEOF
 
16653
#define BUILD_RLINK 1
 
16654
_ACEOF
 
16655
 
 
16656
else
 
16657
 
 
16658
cat >>confdefs.h <<\_ACEOF
 
16659
#define BUILD_RLINK 0
 
16660
_ACEOF
 
16661
 
 
16662
fi
 
16663
 
 
16664
if test $build_armjtagew = yes; then
 
16665
 
 
16666
cat >>confdefs.h <<\_ACEOF
 
16667
#define BUILD_ARMJTAGEW 1
 
16668
_ACEOF
 
16669
 
 
16670
else
 
16671
 
 
16672
cat >>confdefs.h <<\_ACEOF
 
16673
#define BUILD_ARMJTAGEW 0
 
16674
_ACEOF
 
16675
 
 
16676
fi
 
16677
 
 
16678
#-- Deal with MingW/Cygwin FTD2XX issues
 
16679
 
 
16680
if test $is_win32 = yes; then
 
16681
if test "${with_ftd2xx_linux_tardir+set}" = set
 
16682
then
 
16683
  { { echo "$as_me:$LINENO: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&5
 
16684
echo "$as_me: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&2;}
 
16685
   { (exit 1); exit 1; }; }
 
16686
fi
 
16687
 
 
16688
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
 
16689
  { echo "$as_me:$LINENO: checking for ftd2xx.lib exists (win32)" >&5
 
16690
echo $ECHO_N "checking for ftd2xx.lib exists (win32)... $ECHO_C" >&6; }
 
16691
 
 
16692
  # if we are given a zipdir...
 
16693
  if test "${with_ftd2xx_win32_zipdir+set}" = set
 
16694
  then
 
16695
    # Set the CFLAGS for "ftd2xx.h"
 
16696
    f=$with_ftd2xx_win32_zipdir/ftd2xx.h
 
16697
    if test ! -f $f ; then
 
16698
      { { echo "$as_me:$LINENO: error: File: $f cannot be found" >&5
 
16699
echo "$as_me: error: File: $f cannot be found" >&2;}
 
16700
   { (exit 1); exit 1; }; }
 
16701
    fi
 
16702
    CFLAGS="$CFLAGS -I$with_ftd2xx_win32_zipdir"
 
16703
 
 
16704
    # And calculate the LDFLAGS for the machine
 
16705
    case "$host_cpu" in
 
16706
    i?86|x86_*)
 
16707
      LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/i386"
 
16708
      LIBS="$LIBS -lftd2xx"
 
16709
      f=$with_ftd2xx_win32_zipdir/i386/ftd2xx.lib
 
16710
      ;;
 
16711
    amd64)
 
16712
      LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/amd64"
 
16713
      LIBS="$LIBS -lftd2xx"
 
16714
      f=$with_ftd2xx_win32_zipdir/amd64/ftd2xx.lib
 
16715
      ;;
 
16716
    *)
 
16717
      { { echo "$as_me:$LINENO: error: Unknown Win32 host cpu: $host_cpu" >&5
 
16718
echo "$as_me: error: Unknown Win32 host cpu: $host_cpu" >&2;}
 
16719
   { (exit 1); exit 1; }; }
 
16720
      ;;
 
16721
    esac
 
16722
    if test ! -f $f ; then
 
16723
         { { echo "$as_me:$LINENO: error: Library: $f not found" >&5
 
16724
echo "$as_me: error: Library: $f not found" >&2;}
 
16725
   { (exit 1); exit 1; }; }
 
16726
    fi
 
16727
  else
 
16728
    LIBS="$LIBS -lftd2xx"
 
16729
    { echo "$as_me:$LINENO: WARNING: ASSUMPTION: The (win32) FTDICHIP.COM files: ftd2xx.h and ftd2xx.lib are in a proper place" >&5
 
16730
echo "$as_me: WARNING: ASSUMPTION: The (win32) FTDICHIP.COM files: ftd2xx.h and ftd2xx.lib are in a proper place" >&2;}
 
16731
  fi
 
16732
fi
 
16733
fi # win32
 
16734
 
 
16735
if test $is_darwin = yes ; then
 
16736
if test "${with_ftd2xx_win32_zipdir+set}" = set
 
16737
then
 
16738
   { { echo "$as_me:$LINENO: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&5
 
16739
echo "$as_me: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&2;}
 
16740
   { (exit 1); exit 1; }; }
 
16741
fi
 
16742
if test "${with_ftd2xx_linux_tardir+set}" = set
 
16743
then
 
16744
   { { echo "$as_me:$LINENO: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&5
 
16745
echo "$as_me: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&2;}
 
16746
   { (exit 1); exit 1; }; }
 
16747
fi
 
16748
 
 
16749
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
 
16750
   { echo "$as_me:$LINENO: checking for libftd2xx.a (darwin)" >&5
 
16751
echo $ECHO_N "checking for libftd2xx.a (darwin)... $ECHO_C" >&6; }
 
16752
 
 
16753
   if test ! -f /usr/local/include/ftd2xx.h ; then
 
16754
      { { echo "$as_me:$LINENO: error: ftd2xx library from FTDICHIP.com seems to be missing, cannot find: /usr/local/include/ftd2xx.h" >&5
 
16755
echo "$as_me: error: ftd2xx library from FTDICHIP.com seems to be missing, cannot find: /usr/local/include/ftd2xx.h" >&2;}
 
16756
   { (exit 1); exit 1; }; }
 
16757
   fi
 
16758
 
 
16759
   CFLAGS="$CFLAGS -I/usr/local/include"
 
16760
   LDFLAGS="$LDFLAGS -L/usr/local/lib"
 
16761
   LIBS="$LIBS -lftd2xx"
 
16762
   { echo "$as_me:$LINENO: result: -L/usr/local/lib -lftd2xx" >&5
 
16763
echo "${ECHO_T}-L/usr/local/lib -lftd2xx" >&6; }
 
16764
fi
 
16765
fi # darwin
 
16766
 
 
16767
if test $is_win32 = no && test $is_darwin = no ; then
 
16768
 
 
16769
if test "${with_ftd2xx_win32_zipdir+set}" = set
 
16770
then
 
16771
   { { echo "$as_me:$LINENO: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&5
 
16772
echo "$as_me: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&2;}
 
16773
   { (exit 1); exit 1; }; }
 
16774
fi
 
16775
 
 
16776
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
 
16777
   # Must be linux
 
16778
   if test $host_os != linux-gnu && test $host_os != linux ; then
 
16779
      { { echo "$as_me:$LINENO: error: The (linux) ftd2xx library from FTDICHIP.com is linux only. Try --enable-ft2232-libftdi instead" >&5
 
16780
echo "$as_me: error: The (linux) ftd2xx library from FTDICHIP.com is linux only. Try --enable-ft2232-libftdi instead" >&2;}
 
16781
   { (exit 1); exit 1; }; }
 
16782
  fi
 
16783
  # Are we given a TAR directory?
 
16784
  if test "${with_ftd2xx_linux_tardir+set}" = set
 
16785
  then
 
16786
    { echo "$as_me:$LINENO: checking uninstalled ftd2xx distribution" >&5
 
16787
echo $ECHO_N "checking uninstalled ftd2xx distribution... $ECHO_C" >&6; }
 
16788
    # The .H file is simple..
 
16789
    FTD2XX_H=$with_ftd2xx_linux_tardir/ftd2xx.h
 
16790
    if test ! -f "${FTD2XX_H}"; then
 
16791
    { { echo "$as_me:$LINENO: error: Option: --with-ftd2xx-linux-tardir appears wrong, cannot find: ${FTD2XX_H}" >&5
 
16792
echo "$as_me: error: Option: --with-ftd2xx-linux-tardir appears wrong, cannot find: ${FTD2XX_H}" >&2;}
 
16793
   { (exit 1); exit 1; }; }
 
16794
    fi
 
16795
    CFLAGS="$CFLAGS -I$with_ftd2xx_linux_tardir"
 
16796
    FTD2XX_LDFLAGS="-L$with_ftd2xx_linux_tardir"
 
16797
    FTD2XX_LIB="-lftd2xx"
 
16798
    if test $with_ftd2xx_lib != shared; then
 
16799
      # Test #1 - Future proof - if/when ftdichip fixes their distro.
 
16800
      # Try it with the simple ".a" suffix.
 
16801
      FTD2XX_LIB="$with_ftd2xx_linux_tardir/static_lib/libftd2xx.a"
 
16802
      if test -f "${FTD2XX_LIB}"; then
 
16803
        FTD2XX_LDFLAGS="${FTD2XX_LDFLAGS}/static_lib"
 
16804
      else
 
16805
        # Test Number2.
 
16806
        # Grr.. perhaps it exists as a version number?
 
16807
        FTD2XX_LIB="$with_ftd2xx_linux_tardir/static_lib/libftd2xx.a.*.*.*"
 
16808
        count=`ls ${FTD2XX_LIB} | wc -l`
 
16809
        if test $count -gt 1 ; then
 
16810
          { { echo "$as_me:$LINENO: error: Multiple libftd2xx.a files found in: $with_ftd2xx_linux_tardir/static_lib sorry cannot handle this yet" >&5
 
16811
echo "$as_me: error: Multiple libftd2xx.a files found in: $with_ftd2xx_linux_tardir/static_lib sorry cannot handle this yet" >&2;}
 
16812
   { (exit 1); exit 1; }; }
 
16813
        fi
 
16814
        if test $count -ne 1 ; then
 
16815
          { { echo "$as_me:$LINENO: error: Not found: $f, option: --with-ftd2xx-linux-tardir appears to be wrong" >&5
 
16816
echo "$as_me: error: Not found: $f, option: --with-ftd2xx-linux-tardir appears to be wrong" >&2;}
 
16817
   { (exit 1); exit 1; }; }
 
16818
        fi
 
16819
        # Because the "-l" rules do not understand version numbers...
 
16820
        # we will just stuff the absolute path onto the LIBS variable
 
16821
        FTD2XX_LIB="`ls ${FTD2XX_LIB}` -lpthread"
 
16822
        FTD2XX_LDFLAGS=""
 
16823
      fi
 
16824
    fi
 
16825
    LDFLAGS="${LDFLAGS} ${FTD2XX_LDFLAGS}"
 
16826
    LIBS="${LIBS} ${FTD2XX_LIB}"
 
16827
    { echo "$as_me:$LINENO: result: ${FTD2XX_LDFLAGS} ${FTD2XX_LIB}" >&5
 
16828
echo "${ECHO_T}${FTD2XX_LDFLAGS} ${FTD2XX_LIB}" >&6; }
 
16829
  else
 
16830
    if test "${ac_cv_header_ftd2xx_h+set}" = set; then
 
16831
  { echo "$as_me:$LINENO: checking for ftd2xx.h" >&5
 
16832
echo $ECHO_N "checking for ftd2xx.h... $ECHO_C" >&6; }
 
16833
if test "${ac_cv_header_ftd2xx_h+set}" = set; then
 
16834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16835
fi
 
16836
{ echo "$as_me:$LINENO: result: $ac_cv_header_ftd2xx_h" >&5
 
16837
echo "${ECHO_T}$ac_cv_header_ftd2xx_h" >&6; }
 
16838
else
 
16839
  # Is the header compilable?
 
16840
{ echo "$as_me:$LINENO: checking ftd2xx.h usability" >&5
 
16841
echo $ECHO_N "checking ftd2xx.h usability... $ECHO_C" >&6; }
 
16842
cat >conftest.$ac_ext <<_ACEOF
 
16843
/* confdefs.h.  */
 
16844
_ACEOF
 
16845
cat confdefs.h >>conftest.$ac_ext
 
16846
cat >>conftest.$ac_ext <<_ACEOF
 
16847
/* end confdefs.h.  */
 
16848
$ac_includes_default
 
16849
#include <ftd2xx.h>
 
16850
_ACEOF
 
16851
rm -f conftest.$ac_objext
 
16852
if { (ac_try="$ac_compile"
 
16853
case "(($ac_try" in
 
16854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16855
  *) ac_try_echo=$ac_try;;
 
16856
esac
 
16857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16858
  (eval "$ac_compile") 2>conftest.er1
 
16859
  ac_status=$?
 
16860
  grep -v '^ *+' conftest.er1 >conftest.err
 
16861
  rm -f conftest.er1
 
16862
  cat conftest.err >&5
 
16863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16864
  (exit $ac_status); } && {
 
16865
         test -z "$ac_c_werror_flag" ||
 
16866
         test ! -s conftest.err
 
16867
       } && test -s conftest.$ac_objext; then
 
16868
  ac_header_compiler=yes
 
16869
else
 
16870
  echo "$as_me: failed program was:" >&5
 
16871
sed 's/^/| /' conftest.$ac_ext >&5
 
16872
 
 
16873
        ac_header_compiler=no
 
16874
fi
 
16875
 
 
16876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16877
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16878
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
16879
 
 
16880
# Is the header present?
 
16881
{ echo "$as_me:$LINENO: checking ftd2xx.h presence" >&5
 
16882
echo $ECHO_N "checking ftd2xx.h presence... $ECHO_C" >&6; }
 
16883
cat >conftest.$ac_ext <<_ACEOF
 
16884
/* confdefs.h.  */
 
16885
_ACEOF
 
16886
cat confdefs.h >>conftest.$ac_ext
 
16887
cat >>conftest.$ac_ext <<_ACEOF
 
16888
/* end confdefs.h.  */
 
16889
#include <ftd2xx.h>
 
16890
_ACEOF
 
16891
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16892
case "(($ac_try" in
 
16893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16894
  *) ac_try_echo=$ac_try;;
 
16895
esac
 
16896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16897
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16898
  ac_status=$?
 
16899
  grep -v '^ *+' conftest.er1 >conftest.err
 
16900
  rm -f conftest.er1
 
16901
  cat conftest.err >&5
 
16902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16903
  (exit $ac_status); } >/dev/null && {
 
16904
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16905
         test ! -s conftest.err
 
16906
       }; then
 
16907
  ac_header_preproc=yes
 
16908
else
 
16909
  echo "$as_me: failed program was:" >&5
 
16910
sed 's/^/| /' conftest.$ac_ext >&5
 
16911
 
 
16912
  ac_header_preproc=no
 
16913
fi
 
16914
 
 
16915
rm -f conftest.err conftest.$ac_ext
 
16916
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16917
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
16918
 
 
16919
# So?  What about this header?
 
16920
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
16921
  yes:no: )
 
16922
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
16923
echo "$as_me: WARNING: ftd2xx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
16924
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h: proceeding with the compiler's result" >&5
 
16925
echo "$as_me: WARNING: ftd2xx.h: proceeding with the compiler's result" >&2;}
 
16926
    ac_header_preproc=yes
 
16927
    ;;
 
16928
  no:yes:* )
 
16929
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h: present but cannot be compiled" >&5
 
16930
echo "$as_me: WARNING: ftd2xx.h: present but cannot be compiled" >&2;}
 
16931
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h:     check for missing prerequisite headers?" >&5
 
16932
echo "$as_me: WARNING: ftd2xx.h:     check for missing prerequisite headers?" >&2;}
 
16933
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h: see the Autoconf documentation" >&5
 
16934
echo "$as_me: WARNING: ftd2xx.h: see the Autoconf documentation" >&2;}
 
16935
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h:     section \"Present But Cannot Be Compiled\"" >&5
 
16936
echo "$as_me: WARNING: ftd2xx.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
16937
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h: proceeding with the preprocessor's result" >&5
 
16938
echo "$as_me: WARNING: ftd2xx.h: proceeding with the preprocessor's result" >&2;}
 
16939
    { echo "$as_me:$LINENO: WARNING: ftd2xx.h: in the future, the compiler will take precedence" >&5
 
16940
echo "$as_me: WARNING: ftd2xx.h: in the future, the compiler will take precedence" >&2;}
 
16941
    ( cat <<\_ASBOX
 
16942
## -------------------------------------------------------------------------- ##
 
16943
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
16944
## -------------------------------------------------------------------------- ##
 
16945
_ASBOX
 
16946
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
16947
    ;;
 
16948
esac
 
16949
{ echo "$as_me:$LINENO: checking for ftd2xx.h" >&5
 
16950
echo $ECHO_N "checking for ftd2xx.h... $ECHO_C" >&6; }
 
16951
if test "${ac_cv_header_ftd2xx_h+set}" = set; then
 
16952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16953
else
 
16954
  ac_cv_header_ftd2xx_h=$ac_header_preproc
 
16955
fi
 
16956
{ echo "$as_me:$LINENO: result: $ac_cv_header_ftd2xx_h" >&5
 
16957
echo "${ECHO_T}$ac_cv_header_ftd2xx_h" >&6; }
 
16958
 
 
16959
fi
 
16960
if test $ac_cv_header_ftd2xx_h = yes; then
 
16961
  :
 
16962
else
 
16963
 
 
16964
        { { echo "$as_me:$LINENO: error: You seem to be missing the FTD2xx driver header file." >&5
 
16965
echo "$as_me: error: You seem to be missing the FTD2xx driver header file." >&2;}
 
16966
   { (exit 1); exit 1; }; }
 
16967
 
 
16968
fi
 
16969
 
 
16970
 
 
16971
    { echo "$as_me:$LINENO: checking for library containing FT_GetLibraryVersion" >&5
 
16972
echo $ECHO_N "checking for library containing FT_GetLibraryVersion... $ECHO_C" >&6; }
 
16973
if test "${ac_cv_search_FT_GetLibraryVersion+set}" = set; then
 
16974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16975
else
 
16976
  ac_func_search_save_LIBS=$LIBS
 
16977
cat >conftest.$ac_ext <<_ACEOF
 
16978
/* confdefs.h.  */
 
16979
_ACEOF
 
16980
cat confdefs.h >>conftest.$ac_ext
 
16981
cat >>conftest.$ac_ext <<_ACEOF
 
16982
/* end confdefs.h.  */
 
16983
 
 
16984
/* Override any GCC internal prototype to avoid an error.
 
16985
   Use char because int might match the return type of a GCC
 
16986
   builtin and then its argument prototype would still apply.  */
 
16987
#ifdef __cplusplus
 
16988
extern "C"
 
16989
#endif
 
16990
char FT_GetLibraryVersion ();
 
16991
int
 
16992
main ()
 
16993
{
 
16994
return FT_GetLibraryVersion ();
 
16995
  ;
 
16996
  return 0;
 
16997
}
 
16998
_ACEOF
 
16999
for ac_lib in '' ftd2xx; do
 
17000
  if test -z "$ac_lib"; then
 
17001
    ac_res="none required"
 
17002
  else
 
17003
    ac_res=-l$ac_lib
 
17004
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
17005
  fi
 
17006
  rm -f conftest.$ac_objext conftest$ac_exeext
 
17007
if { (ac_try="$ac_link"
 
17008
case "(($ac_try" in
 
17009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17010
  *) ac_try_echo=$ac_try;;
 
17011
esac
 
17012
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17013
  (eval "$ac_link") 2>conftest.er1
 
17014
  ac_status=$?
 
17015
  grep -v '^ *+' conftest.er1 >conftest.err
 
17016
  rm -f conftest.er1
 
17017
  cat conftest.err >&5
 
17018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17019
  (exit $ac_status); } && {
 
17020
         test -z "$ac_c_werror_flag" ||
 
17021
         test ! -s conftest.err
 
17022
       } && test -s conftest$ac_exeext &&
 
17023
       $as_test_x conftest$ac_exeext; then
 
17024
  ac_cv_search_FT_GetLibraryVersion=$ac_res
 
17025
else
 
17026
  echo "$as_me: failed program was:" >&5
 
17027
sed 's/^/| /' conftest.$ac_ext >&5
 
17028
 
 
17029
 
 
17030
fi
 
17031
 
 
17032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17033
      conftest$ac_exeext
 
17034
  if test "${ac_cv_search_FT_GetLibraryVersion+set}" = set; then
 
17035
  break
 
17036
fi
 
17037
done
 
17038
if test "${ac_cv_search_FT_GetLibraryVersion+set}" = set; then
 
17039
  :
 
17040
else
 
17041
  ac_cv_search_FT_GetLibraryVersion=no
 
17042
fi
 
17043
rm conftest.$ac_ext
 
17044
LIBS=$ac_func_search_save_LIBS
 
17045
fi
 
17046
{ echo "$as_me:$LINENO: result: $ac_cv_search_FT_GetLibraryVersion" >&5
 
17047
echo "${ECHO_T}$ac_cv_search_FT_GetLibraryVersion" >&6; }
 
17048
ac_res=$ac_cv_search_FT_GetLibraryVersion
 
17049
if test "$ac_res" != no; then
 
17050
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
17051
 
 
17052
else
 
17053
 
 
17054
        { { echo "$as_me:$LINENO: error: You appear to be missing the FTD2xx driver library." >&5
 
17055
echo "$as_me: error: You appear to be missing the FTD2xx driver library." >&2;}
 
17056
   { (exit 1); exit 1; }; }
 
17057
 
 
17058
fi
 
17059
 
 
17060
  fi
 
17061
fi
 
17062
fi # linux
 
17063
 
 
17064
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes; then
 
17065
 
 
17066
# Before we go any further - make sure we can *BUILD* and *RUN*
 
17067
# a simple app with the "ftd2xx.lib" file - in what ever form we where given
 
17068
# We should be able to compile, link and run this test program now
 
17069
{ echo "$as_me:$LINENO: checking whether ftd2xx library works" >&5
 
17070
echo $ECHO_N "checking whether ftd2xx library works... $ECHO_C" >&6; }
 
17071
 
 
17072
#
 
17073
# Save the LDFLAGS for later..
 
17074
LDFLAGS_SAVE=$LDFLAGS
 
17075
CFLAGS_SAVE=$CFLAGS
 
17076
_LDFLAGS=`eval echo $LDFLAGS`
 
17077
_CFLAGS=`eval echo $CFLAGS`
 
17078
LDFLAGS=$_LDFLAGS
 
17079
CFLAGS=$_CFLAGS
 
17080
 
 
17081
if test "$cross_compiling" = yes; then
 
17082
 
 
17083
    { echo "$as_me:$LINENO: result: Skipping as we are cross-compiling" >&5
 
17084
echo "${ECHO_T}Skipping as we are cross-compiling" >&6; }
 
17085
 
 
17086
else
 
17087
  cat >conftest.$ac_ext <<_ACEOF
 
17088
 
 
17089
#include "confdefs.h"
 
17090
#if IS_WIN32
 
17091
#include "windows.h"
 
17092
#endif
 
17093
#include <stdio.h>
 
17094
#include <ftd2xx.h>
 
17095
 
 
17096
int
 
17097
main( int argc, char **argv )
 
17098
{
 
17099
  DWORD x;
 
17100
  FT_GetLibraryVersion( &x );
 
17101
  return 0;
 
17102
}
 
17103
 
 
17104
_ACEOF
 
17105
rm -f conftest$ac_exeext
 
17106
if { (ac_try="$ac_link"
 
17107
case "(($ac_try" in
 
17108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17109
  *) ac_try_echo=$ac_try;;
 
17110
esac
 
17111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17112
  (eval "$ac_link") 2>&5
 
17113
  ac_status=$?
 
17114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17115
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17116
  { (case "(($ac_try" in
 
17117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17118
  *) ac_try_echo=$ac_try;;
 
17119
esac
 
17120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17121
  (eval "$ac_try") 2>&5
 
17122
  ac_status=$?
 
17123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17124
  (exit $ac_status); }; }; then
 
17125
 
 
17126
    { echo "$as_me:$LINENO: result: Success!" >&5
 
17127
echo "${ECHO_T}Success!" >&6; }
 
17128
 
 
17129
else
 
17130
  echo "$as_me: program exited with status $ac_status" >&5
 
17131
echo "$as_me: failed program was:" >&5
 
17132
sed 's/^/| /' conftest.$ac_ext >&5
 
17133
 
 
17134
( exit $ac_status )
 
17135
 
 
17136
    { { echo "$as_me:$LINENO: error: Cannot build & run test program using ftd2xx.lib" >&5
 
17137
echo "$as_me: error: Cannot build & run test program using ftd2xx.lib" >&2;}
 
17138
   { (exit 1); exit 1; }; }
 
17139
 
 
17140
fi
 
17141
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17142
fi
 
17143
 
 
17144
 
 
17145
 
 
17146
{ echo "$as_me:$LINENO: checking for ftd2xx highspeed device support" >&5
 
17147
echo $ECHO_N "checking for ftd2xx highspeed device support... $ECHO_C" >&6; }
 
17148
cat >conftest.$ac_ext <<_ACEOF
 
17149
 
 
17150
#include "confdefs.h"
 
17151
#if IS_WIN32
 
17152
#include "windows.h"
 
17153
#endif
 
17154
#include <stdio.h>
 
17155
#include <ftd2xx.h>
 
17156
DWORD x = FT_DEVICE_4232H;
 
17157
 
 
17158
_ACEOF
 
17159
rm -f conftest.$ac_objext
 
17160
if { (ac_try="$ac_compile"
 
17161
case "(($ac_try" in
 
17162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17163
  *) ac_try_echo=$ac_try;;
 
17164
esac
 
17165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17166
  (eval "$ac_compile") 2>conftest.er1
 
17167
  ac_status=$?
 
17168
  grep -v '^ *+' conftest.er1 >conftest.err
 
17169
  rm -f conftest.er1
 
17170
  cat conftest.err >&5
 
17171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17172
  (exit $ac_status); } && {
 
17173
         test -z "$ac_c_werror_flag" ||
 
17174
         test ! -s conftest.err
 
17175
       } && test -s conftest.$ac_objext; then
 
17176
 
 
17177
 
 
17178
cat >>confdefs.h <<\_ACEOF
 
17179
#define BUILD_FT2232_HIGHSPEED 1
 
17180
_ACEOF
 
17181
 
 
17182
      build_ft2232_highspeed=yes
 
17183
 
 
17184
else
 
17185
  echo "$as_me: failed program was:" >&5
 
17186
sed 's/^/| /' conftest.$ac_ext >&5
 
17187
 
 
17188
 
 
17189
      build_ft2232_highspeed=no
 
17190
 
 
17191
fi
 
17192
 
 
17193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17194
  { echo "$as_me:$LINENO: result: $build_ft2232_highspeed" >&5
 
17195
echo "${ECHO_T}$build_ft2232_highspeed" >&6; }
 
17196
 
 
17197
  if test $build_ft2232_highspeed = no; then
 
17198
    { echo "$as_me:$LINENO: WARNING: You need a newer FTD2XX driver (version 2.04.16 or later)." >&5
 
17199
echo "$as_me: WARNING: You need a newer FTD2XX driver (version 2.04.16 or later)." >&2;}
 
17200
  fi
 
17201
 
 
17202
LDFLAGS=$LDFLAGS_SAVE
 
17203
CFLAGS=$CFLAGS_SAVE
 
17204
fi
 
17205
 
 
17206
if test $build_ft2232_libftdi = yes ; then
 
17207
  # We assume: the package is preinstalled in the proper place
 
17208
  # these present as 2 libraries..
 
17209
  LIBS="$LIBS -lftdi -lusb"
 
17210
  #
 
17211
  # Try to build a small program.
 
17212
  { echo "$as_me:$LINENO: checking Build & Link with libftdi..." >&5
 
17213
echo $ECHO_N "checking Build & Link with libftdi...... $ECHO_C" >&6; }
 
17214
 
 
17215
  LDFLAGS_SAVE=$LDFLAGS
 
17216
  CFLAGS_SAVE=$CFLAGS
 
17217
  _LDFLAGS=`eval echo $LDFLAGS`
 
17218
  _CFLAGS=`eval echo $CFLAGS`
 
17219
  LDFLAGS=$_LDFLAGS
 
17220
  CFLAGS=$_CFLAGS
 
17221
 
 
17222
  if test "$cross_compiling" = yes; then
 
17223
 
 
17224
      { echo "$as_me:$LINENO: result: Skipping as we are cross-compiling" >&5
 
17225
echo "${ECHO_T}Skipping as we are cross-compiling" >&6; }
 
17226
 
 
17227
else
 
17228
  cat >conftest.$ac_ext <<_ACEOF
 
17229
 
 
17230
#include <stdio.h>
 
17231
#include <ftdi.h>
 
17232
 
 
17233
int
 
17234
main( int argc, char **argv )
 
17235
{
 
17236
  struct ftdi_context *p;
 
17237
  p = ftdi_new();
 
17238
  if( p != NULL ){
 
17239
      return 0;
 
17240
  } else {
 
17241
      fprintf( stderr, "calling ftdi_new() failed\n");
 
17242
      return 1;
 
17243
        }
 
17244
}
 
17245
 
 
17246
_ACEOF
 
17247
rm -f conftest$ac_exeext
 
17248
if { (ac_try="$ac_link"
 
17249
case "(($ac_try" in
 
17250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17251
  *) ac_try_echo=$ac_try;;
 
17252
esac
 
17253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17254
  (eval "$ac_link") 2>&5
 
17255
  ac_status=$?
 
17256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17257
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17258
  { (case "(($ac_try" in
 
17259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17260
  *) ac_try_echo=$ac_try;;
 
17261
esac
 
17262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17263
  (eval "$ac_try") 2>&5
 
17264
  ac_status=$?
 
17265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17266
  (exit $ac_status); }; }; then
 
17267
 
 
17268
      { echo "$as_me:$LINENO: result: Success" >&5
 
17269
echo "${ECHO_T}Success" >&6; }
 
17270
 
 
17271
else
 
17272
  echo "$as_me: program exited with status $ac_status" >&5
 
17273
echo "$as_me: failed program was:" >&5
 
17274
sed 's/^/| /' conftest.$ac_ext >&5
 
17275
 
 
17276
( exit $ac_status )
 
17277
 
 
17278
      { { echo "$as_me:$LINENO: error: Cannot build & run test program using libftdi" >&5
 
17279
echo "$as_me: error: Cannot build & run test program using libftdi" >&2;}
 
17280
   { (exit 1); exit 1; }; }
 
17281
 
 
17282
fi
 
17283
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17284
fi
 
17285
 
 
17286
 
 
17287
 
 
17288
{ echo "$as_me:$LINENO: checking for libftdi highspeed device support" >&5
 
17289
echo $ECHO_N "checking for libftdi highspeed device support... $ECHO_C" >&6; }
 
17290
cat >conftest.$ac_ext <<_ACEOF
 
17291
 
 
17292
#include <stdio.h>
 
17293
#include <ftdi.h>
 
17294
enum ftdi_chip_type x = TYPE_2232H;
 
17295
 
 
17296
_ACEOF
 
17297
rm -f conftest.$ac_objext
 
17298
if { (ac_try="$ac_compile"
 
17299
case "(($ac_try" in
 
17300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17301
  *) ac_try_echo=$ac_try;;
 
17302
esac
 
17303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17304
  (eval "$ac_compile") 2>conftest.er1
 
17305
  ac_status=$?
 
17306
  grep -v '^ *+' conftest.er1 >conftest.err
 
17307
  rm -f conftest.er1
 
17308
  cat conftest.err >&5
 
17309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17310
  (exit $ac_status); } && {
 
17311
         test -z "$ac_c_werror_flag" ||
 
17312
         test ! -s conftest.err
 
17313
       } && test -s conftest.$ac_objext; then
 
17314
 
 
17315
 
 
17316
cat >>confdefs.h <<\_ACEOF
 
17317
#define BUILD_FT2232_HIGHSPEED 1
 
17318
_ACEOF
 
17319
 
 
17320
      build_ft2232_highspeed=yes
 
17321
 
 
17322
else
 
17323
  echo "$as_me: failed program was:" >&5
 
17324
sed 's/^/| /' conftest.$ac_ext >&5
 
17325
 
 
17326
 
 
17327
      build_ft2232_highspeed=no
 
17328
 
 
17329
fi
 
17330
 
 
17331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17332
    { echo "$as_me:$LINENO: result: $build_ft2232_highspeed" >&5
 
17333
echo "${ECHO_T}$build_ft2232_highspeed" >&6; }
 
17334
 
 
17335
    if test $build_ft2232_highspeed = no; then
 
17336
      { echo "$as_me:$LINENO: WARNING: You need a newer libftdi version (0.16 or later)." >&5
 
17337
echo "$as_me: WARNING: You need a newer libftdi version (0.16 or later)." >&2;}
 
17338
    fi
 
17339
 
 
17340
  # Restore the 'unexpanded ldflags'
 
17341
  LDFLAGS=$LDFLAGS_SAVE
 
17342
  CFLAGS=$CFLAGS_SAVE
 
17343
fi
 
17344
 
 
17345
# check for usb.h when a driver will require it
 
17346
if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \
 
17347
  $build_rlink = yes -o $build_armjtagew = yes
 
17348
then
 
17349
 
 
17350
for ac_header in usb.h
 
17351
do
 
17352
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
17353
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17354
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17355
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17356
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17358
fi
 
17359
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17360
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17361
echo "${ECHO_T}$ac_res" >&6; }
 
17362
else
 
17363
  # Is the header compilable?
 
17364
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
17365
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
17366
cat >conftest.$ac_ext <<_ACEOF
 
17367
/* confdefs.h.  */
 
17368
_ACEOF
 
17369
cat confdefs.h >>conftest.$ac_ext
 
17370
cat >>conftest.$ac_ext <<_ACEOF
 
17371
/* end confdefs.h.  */
 
17372
$ac_includes_default
 
17373
#include <$ac_header>
 
17374
_ACEOF
 
17375
rm -f conftest.$ac_objext
 
17376
if { (ac_try="$ac_compile"
 
17377
case "(($ac_try" in
 
17378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17379
  *) ac_try_echo=$ac_try;;
 
17380
esac
 
17381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17382
  (eval "$ac_compile") 2>conftest.er1
 
17383
  ac_status=$?
 
17384
  grep -v '^ *+' conftest.er1 >conftest.err
 
17385
  rm -f conftest.er1
 
17386
  cat conftest.err >&5
 
17387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17388
  (exit $ac_status); } && {
 
17389
         test -z "$ac_c_werror_flag" ||
 
17390
         test ! -s conftest.err
 
17391
       } && test -s conftest.$ac_objext; then
 
17392
  ac_header_compiler=yes
 
17393
else
 
17394
  echo "$as_me: failed program was:" >&5
 
17395
sed 's/^/| /' conftest.$ac_ext >&5
 
17396
 
 
17397
        ac_header_compiler=no
 
17398
fi
 
17399
 
 
17400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17401
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17402
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
17403
 
 
17404
# Is the header present?
 
17405
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17406
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
17407
cat >conftest.$ac_ext <<_ACEOF
 
17408
/* confdefs.h.  */
 
17409
_ACEOF
 
17410
cat confdefs.h >>conftest.$ac_ext
 
17411
cat >>conftest.$ac_ext <<_ACEOF
 
17412
/* end confdefs.h.  */
 
17413
#include <$ac_header>
 
17414
_ACEOF
 
17415
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17416
case "(($ac_try" in
 
17417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17418
  *) ac_try_echo=$ac_try;;
 
17419
esac
 
17420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17421
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17422
  ac_status=$?
 
17423
  grep -v '^ *+' conftest.er1 >conftest.err
 
17424
  rm -f conftest.er1
 
17425
  cat conftest.err >&5
 
17426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17427
  (exit $ac_status); } >/dev/null && {
 
17428
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17429
         test ! -s conftest.err
 
17430
       }; then
 
17431
  ac_header_preproc=yes
 
17432
else
 
17433
  echo "$as_me: failed program was:" >&5
 
17434
sed 's/^/| /' conftest.$ac_ext >&5
 
17435
 
 
17436
  ac_header_preproc=no
 
17437
fi
 
17438
 
 
17439
rm -f conftest.err conftest.$ac_ext
 
17440
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17441
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
17442
 
 
17443
# So?  What about this header?
 
17444
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17445
  yes:no: )
 
17446
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
17447
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17448
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
17449
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
17450
    ac_header_preproc=yes
 
17451
    ;;
 
17452
  no:yes:* )
 
17453
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
17454
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
17455
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
17456
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
17457
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
17458
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
17459
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
17460
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17461
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
17462
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
17463
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
17464
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
17465
    ( cat <<\_ASBOX
 
17466
## -------------------------------------------------------------------------- ##
 
17467
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
 
17468
## -------------------------------------------------------------------------- ##
 
17469
_ASBOX
 
17470
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17471
    ;;
 
17472
esac
 
17473
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17474
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17475
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17477
else
 
17478
  eval "$as_ac_Header=\$ac_header_preproc"
 
17479
fi
 
17480
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17481
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17482
echo "${ECHO_T}$ac_res" >&6; }
 
17483
 
 
17484
fi
 
17485
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
17486
  cat >>confdefs.h <<_ACEOF
 
17487
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17488
_ACEOF
 
17489
 
 
17490
else
 
17491
  { { echo "$as_me:$LINENO: error: usb.h is required to build some OpenOCD driver(s)" >&5
 
17492
echo "$as_me: error: usb.h is required to build some OpenOCD driver(s)" >&2;}
 
17493
   { (exit 1); exit 1; }; }
 
17494
fi
 
17495
 
 
17496
done
 
17497
 
 
17498
fi
 
17499
 
 
17500
 if test $build_release = yes; then
 
17501
  RELEASE_TRUE=
 
17502
  RELEASE_FALSE='#'
 
17503
else
 
17504
  RELEASE_TRUE='#'
 
17505
  RELEASE_FALSE=
 
17506
fi
 
17507
 
 
17508
 if test $build_parport = yes; then
 
17509
  PARPORT_TRUE=
 
17510
  PARPORT_FALSE='#'
 
17511
else
 
17512
  PARPORT_TRUE='#'
 
17513
  PARPORT_FALSE=
 
17514
fi
 
17515
 
 
17516
 if test $build_dummy = yes; then
 
17517
  DUMMY_TRUE=
 
17518
  DUMMY_FALSE='#'
 
17519
else
 
17520
  DUMMY_TRUE='#'
 
17521
  DUMMY_FALSE=
 
17522
fi
 
17523
 
 
17524
 if test x$parport_use_giveio = xyes; then
 
17525
  GIVEIO_TRUE=
 
17526
  GIVEIO_FALSE='#'
 
17527
else
 
17528
  GIVEIO_TRUE='#'
 
17529
  GIVEIO_FALSE=
 
17530
fi
 
17531
 
 
17532
 if test $build_ep93xx = yes; then
 
17533
  EP93XX_TRUE=
 
17534
  EP93XX_FALSE='#'
 
17535
else
 
17536
  EP93XX_TRUE='#'
 
17537
  EP93XX_FALSE=
 
17538
fi
 
17539
 
 
17540
 if test $build_ecosboard = yes; then
 
17541
  ECOSBOARD_TRUE=
 
17542
  ECOSBOARD_FALSE='#'
 
17543
else
 
17544
  ECOSBOARD_TRUE='#'
 
17545
  ECOSBOARD_FALSE=
 
17546
fi
 
17547
 
 
17548
 if test $build_zy1000 = yes; then
 
17549
  ZY1000_TRUE=
 
17550
  ZY1000_FALSE='#'
 
17551
else
 
17552
  ZY1000_TRUE='#'
 
17553
  ZY1000_FALSE=
 
17554
fi
 
17555
 
 
17556
 if test $build_ioutil = yes; then
 
17557
  IOUTIL_TRUE=
 
17558
  IOUTIL_FALSE='#'
 
17559
else
 
17560
  IOUTIL_TRUE='#'
 
17561
  IOUTIL_FALSE=
 
17562
fi
 
17563
 
 
17564
 if test $build_httpd = yes; then
 
17565
  HTTPD_TRUE=
 
17566
  HTTPD_FALSE='#'
 
17567
else
 
17568
  HTTPD_TRUE='#'
 
17569
  HTTPD_FALSE=
 
17570
fi
 
17571
 
 
17572
 if test $build_at91rm9200 = yes; then
 
17573
  AT91RM9200_TRUE=
 
17574
  AT91RM9200_FALSE='#'
 
17575
else
 
17576
  AT91RM9200_TRUE='#'
 
17577
  AT91RM9200_FALSE=
 
17578
fi
 
17579
 
 
17580
 if test $build_bitbang = yes; then
 
17581
  BITBANG_TRUE=
 
17582
  BITBANG_FALSE='#'
 
17583
else
 
17584
  BITBANG_TRUE='#'
 
17585
  BITBANG_FALSE=
 
17586
fi
 
17587
 
 
17588
 if test $build_ft2232_libftdi = yes; then
 
17589
  FT2232_LIBFTDI_TRUE=
 
17590
  FT2232_LIBFTDI_FALSE='#'
 
17591
else
 
17592
  FT2232_LIBFTDI_TRUE='#'
 
17593
  FT2232_LIBFTDI_FALSE=
 
17594
fi
 
17595
 
 
17596
 if test $build_ft2232_ftd2xx = yes -o $build_ft2232_libftdi = yes; then
 
17597
  FT2232_DRIVER_TRUE=
 
17598
  FT2232_DRIVER_FALSE='#'
 
17599
else
 
17600
  FT2232_DRIVER_TRUE='#'
 
17601
  FT2232_DRIVER_FALSE=
 
17602
fi
 
17603
 
 
17604
 if test $build_amtjtagaccel = yes; then
 
17605
  AMTJTAGACCEL_TRUE=
 
17606
  AMTJTAGACCEL_FALSE='#'
 
17607
else
 
17608
  AMTJTAGACCEL_TRUE='#'
 
17609
  AMTJTAGACCEL_FALSE=
 
17610
fi
 
17611
 
 
17612
 if test $build_gw16012 = yes; then
 
17613
  GW16012_TRUE=
 
17614
  GW16012_FALSE='#'
 
17615
else
 
17616
  GW16012_TRUE='#'
 
17617
  GW16012_FALSE=
 
17618
fi
 
17619
 
 
17620
 if test $build_presto_libftdi = yes; then
 
17621
  PRESTO_LIBFTDI_TRUE=
 
17622
  PRESTO_LIBFTDI_FALSE='#'
 
17623
else
 
17624
  PRESTO_LIBFTDI_TRUE='#'
 
17625
  PRESTO_LIBFTDI_FALSE=
 
17626
fi
 
17627
 
 
17628
 if test $build_presto_ftd2xx = yes -o $build_presto_libftdi = yes; then
 
17629
  PRESTO_DRIVER_TRUE=
 
17630
  PRESTO_DRIVER_FALSE='#'
 
17631
else
 
17632
  PRESTO_DRIVER_TRUE='#'
 
17633
  PRESTO_DRIVER_FALSE=
 
17634
fi
 
17635
 
 
17636
 if test $build_usbprog = yes; then
 
17637
  USBPROG_TRUE=
 
17638
  USBPROG_FALSE='#'
 
17639
else
 
17640
  USBPROG_TRUE='#'
 
17641
  USBPROG_FALSE=
 
17642
fi
 
17643
 
 
17644
 if test $build_oocd_trace = yes; then
 
17645
  OOCD_TRACE_TRUE=
 
17646
  OOCD_TRACE_FALSE='#'
 
17647
else
 
17648
  OOCD_TRACE_TRUE='#'
 
17649
  OOCD_TRACE_FALSE=
 
17650
fi
 
17651
 
 
17652
 if test $build_jlink = yes; then
 
17653
  JLINK_TRUE=
 
17654
  JLINK_FALSE='#'
 
17655
else
 
17656
  JLINK_TRUE='#'
 
17657
  JLINK_FALSE=
 
17658
fi
 
17659
 
 
17660
 if test $build_vsllink = yes; then
 
17661
  VSLLINK_TRUE=
 
17662
  VSLLINK_FALSE='#'
 
17663
else
 
17664
  VSLLINK_TRUE='#'
 
17665
  VSLLINK_FALSE=
 
17666
fi
 
17667
 
 
17668
 if test $build_rlink = yes; then
 
17669
  RLINK_TRUE=
 
17670
  RLINK_FALSE='#'
 
17671
else
 
17672
  RLINK_TRUE='#'
 
17673
  RLINK_FALSE=
 
17674
fi
 
17675
 
 
17676
 if test $build_armjtagew = yes; then
 
17677
  ARMJTAGEW_TRUE=
 
17678
  ARMJTAGEW_FALSE='#'
 
17679
else
 
17680
  ARMJTAGEW_TRUE='#'
 
17681
  ARMJTAGEW_FALSE=
 
17682
fi
 
17683
 
 
17684
 if test $is_cygwin = yes; then
 
17685
  IS_CYGWIN_TRUE=
 
17686
  IS_CYGWIN_FALSE='#'
 
17687
else
 
17688
  IS_CYGWIN_TRUE='#'
 
17689
  IS_CYGWIN_FALSE=
 
17690
fi
 
17691
 
 
17692
 if test $is_mingw = yes; then
 
17693
  IS_MINGW_TRUE=
 
17694
  IS_MINGW_FALSE='#'
 
17695
else
 
17696
  IS_MINGW_TRUE='#'
 
17697
  IS_MINGW_FALSE=
 
17698
fi
 
17699
 
 
17700
 if test $is_win32 = yes; then
 
17701
  IS_WIN32_TRUE=
 
17702
  IS_WIN32_FALSE='#'
 
17703
else
 
17704
  IS_WIN32_TRUE='#'
 
17705
  IS_WIN32_FALSE=
 
17706
fi
 
17707
 
 
17708
 if test $is_darwin = yes; then
 
17709
  IS_DARWIN_TRUE=
 
17710
  IS_DARWIN_FALSE='#'
 
17711
else
 
17712
  IS_DARWIN_TRUE='#'
 
17713
  IS_DARWIN_FALSE=
 
17714
fi
 
17715
 
 
17716
 if test $build_bitq = yes; then
 
17717
  BITQ_TRUE=
 
17718
  BITQ_FALSE='#'
 
17719
else
 
17720
  BITQ_TRUE='#'
 
17721
  BITQ_FALSE=
 
17722
fi
 
17723
 
 
17724
 
 
17725
 if test $build_minidriver = yes; then
 
17726
  MINIDRIVER_TRUE=
 
17727
  MINIDRIVER_FALSE='#'
 
17728
else
 
17729
  MINIDRIVER_TRUE='#'
 
17730
  MINIDRIVER_FALSE=
 
17731
fi
 
17732
 
 
17733
 if test $build_minidriver_dummy = yes; then
 
17734
  MINIDRIVER_DUMMY_TRUE=
 
17735
  MINIDRIVER_DUMMY_FALSE='#'
 
17736
else
 
17737
  MINIDRIVER_DUMMY_TRUE='#'
 
17738
  MINIDRIVER_DUMMY_FALSE=
 
17739
fi
 
17740
 
 
17741
 
 
17742
# Look for environ alternatives.  Possibility #1: is environ in unistd.h or stdlib.h?
 
17743
{ echo "$as_me:$LINENO: checking for environ in unistd.h and stdlib.h" >&5
 
17744
echo $ECHO_N "checking for environ in unistd.h and stdlib.h... $ECHO_C" >&6; }
 
17745
cat >conftest.$ac_ext <<_ACEOF
 
17746
 
 
17747
#define _GNU_SOURCE
 
17748
#include <unistd.h>
 
17749
#include <stdlib.h>
 
17750
int main(int argc, char **argv) { char **ep = environ; }
 
17751
 
 
17752
_ACEOF
 
17753
rm -f conftest.$ac_objext
 
17754
if { (ac_try="$ac_compile"
 
17755
case "(($ac_try" in
 
17756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17757
  *) ac_try_echo=$ac_try;;
 
17758
esac
 
17759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17760
  (eval "$ac_compile") 2>conftest.er1
 
17761
  ac_status=$?
 
17762
  grep -v '^ *+' conftest.er1 >conftest.err
 
17763
  rm -f conftest.er1
 
17764
  cat conftest.err >&5
 
17765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17766
  (exit $ac_status); } && {
 
17767
         test -z "$ac_c_werror_flag" ||
 
17768
         test ! -s conftest.err
 
17769
       } && test -s conftest.$ac_objext; then
 
17770
 
 
17771
    { echo "$as_me:$LINENO: result: yes" >&5
 
17772
echo "${ECHO_T}yes" >&6; }
 
17773
    has_environ=yes
 
17774
 
 
17775
else
 
17776
  echo "$as_me: failed program was:" >&5
 
17777
sed 's/^/| /' conftest.$ac_ext >&5
 
17778
 
 
17779
 
 
17780
    { echo "$as_me:$LINENO: result: no" >&5
 
17781
echo "${ECHO_T}no" >&6; }
 
17782
 
 
17783
    # Possibility #2: can environ be found in an available library?
 
17784
    { echo "$as_me:$LINENO: checking for extern environ" >&5
 
17785
echo $ECHO_N "checking for extern environ... $ECHO_C" >&6; }
 
17786
    cat >conftest.$ac_ext <<_ACEOF
 
17787
 
 
17788
extern char **environ;
 
17789
int main(int argc, char **argv) { char **ep = environ; }
 
17790
 
 
17791
_ACEOF
 
17792
rm -f conftest.$ac_objext conftest$ac_exeext
 
17793
if { (ac_try="$ac_link"
 
17794
case "(($ac_try" in
 
17795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17796
  *) ac_try_echo=$ac_try;;
 
17797
esac
 
17798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17799
  (eval "$ac_link") 2>conftest.er1
 
17800
  ac_status=$?
 
17801
  grep -v '^ *+' conftest.er1 >conftest.err
 
17802
  rm -f conftest.er1
 
17803
  cat conftest.err >&5
 
17804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17805
  (exit $ac_status); } && {
 
17806
         test -z "$ac_c_werror_flag" ||
 
17807
         test ! -s conftest.err
 
17808
       } && test -s conftest$ac_exeext &&
 
17809
       $as_test_x conftest$ac_exeext; then
 
17810
 
 
17811
 
 
17812
cat >>confdefs.h <<\_ACEOF
 
17813
#define NEED_ENVIRON_EXTERN 1
 
17814
_ACEOF
 
17815
 
 
17816
        has_environ=yes
 
17817
 
 
17818
else
 
17819
  echo "$as_me: failed program was:" >&5
 
17820
sed 's/^/| /' conftest.$ac_ext >&5
 
17821
 
 
17822
 
 
17823
        has_environ=no
 
17824
 
 
17825
fi
 
17826
 
 
17827
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17828
      conftest$ac_exeext conftest.$ac_ext
 
17829
    { echo "$as_me:$LINENO: result: ${has_environ}" >&5
 
17830
echo "${ECHO_T}${has_environ}" >&6; }
 
17831
 
 
17832
fi
 
17833
 
 
17834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17835
 
 
17836
if test "${has_environ}" != "yes" ; then
 
17837
  { { echo "$as_me:$LINENO: error: Could not find 'environ' in unistd.h or available libraries.
 
17838
See \`config.log' for more details." >&5
 
17839
echo "$as_me: error: Could not find 'environ' in unistd.h or available libraries.
 
17840
See \`config.log' for more details." >&2;}
 
17841
   { (exit 1); exit 1; }; }
 
17842
fi
 
17843
 
 
17844
 
 
17845
cat >>confdefs.h <<\_ACEOF
 
17846
#define _GNU_SOURCE 1
 
17847
_ACEOF
 
17848
 
 
17849
 
 
17850
# set default gcc warnings
 
17851
GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"
 
17852
if test "${gcc_wextra}" = yes; then
 
17853
  GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
 
17854
  GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"
 
17855
  GCC_WARNINGS="${GCC_WARNINGS} -Wcast-align"
 
17856
  GCC_WARNINGS="${GCC_WARNINGS} -Wredundant-decls"
 
17857
fi
 
17858
if test "${gcc_werror}" = yes; then
 
17859
  GCC_WARNINGS="${GCC_WARNINGS} -Werror"
 
17860
fi
 
17861
 
 
17862
# overide default gcc cflags
 
17863
if test $gcc_warnings = yes; then
 
17864
  CFLAGS="$CFLAGS $GCC_WARNINGS"
 
17865
fi
 
17866
 
 
17867
# Setup for compiling build tools
 
17868
{ echo "$as_me:$LINENO: checking for a C compiler for build tools" >&5
 
17869
echo $ECHO_N "checking for a C compiler for build tools... $ECHO_C" >&6; }
 
17870
if test $cross_compiling = yes; then
 
17871
  for ac_prog in gcc cc
 
17872
do
 
17873
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
17874
set dummy $ac_prog; ac_word=$2
 
17875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
17877
if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
 
17878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17879
else
 
17880
  if test -n "$CC_FOR_BUILD"; then
 
17881
  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
 
17882
else
 
17883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17884
for as_dir in $PATH
 
17885
do
 
17886
  IFS=$as_save_IFS
 
17887
  test -z "$as_dir" && as_dir=.
 
17888
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17889
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17890
    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
 
17891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17892
    break 2
 
17893
  fi
 
17894
done
 
17895
done
 
17896
IFS=$as_save_IFS
 
17897
 
 
17898
fi
 
17899
fi
 
17900
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
 
17901
if test -n "$CC_FOR_BUILD"; then
 
17902
  { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
 
17903
echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
 
17904
else
 
17905
  { echo "$as_me:$LINENO: result: no" >&5
 
17906
echo "${ECHO_T}no" >&6; }
 
17907
fi
 
17908
 
 
17909
 
 
17910
  test -n "$CC_FOR_BUILD" && break
 
17911
done
 
17912
 
 
17913
  CFLAGS_FOR_BUILD="-g -O2 $GCC_WARNINGS"
 
17914
else
 
17915
  CC_FOR_BUILD=$CC
 
17916
  CFLAGS_FOR_BUILD=$CFLAGS
 
17917
fi
 
17918
 
 
17919
{ echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
 
17920
echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
 
17921
 
 
17922
 
 
17923
 
 
17924
{ echo "$as_me:$LINENO: checking for suffix of executable build tools" >&5
 
17925
echo $ECHO_N "checking for suffix of executable build tools... $ECHO_C" >&6; }
 
17926
if test $cross_compiling = yes; then
 
17927
  cat >conftest.c <<\_______EOF
 
17928
int main ()
 
17929
{
 
17930
  exit (0);
 
17931
}
 
17932
_______EOF
 
17933
  for i in .exe ""; do
 
17934
    compile="$CC_FOR_BUILD conftest.c -o conftest$i"
 
17935
    if { (eval echo "$as_me:$LINENO: \"$compile\"") >&5
 
17936
  (eval $compile) 2>&5
 
17937
  ac_status=$?
 
17938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17939
  (exit $ac_status); }; then
 
17940
      if (./conftest) 2>&5; then
 
17941
        EXEEXT_FOR_BUILD=$i
 
17942
        break
 
17943
      fi
 
17944
    fi
 
17945
  done
 
17946
  rm -f conftest*
 
17947
  if test "${EXEEXT_FOR_BUILD+set}" != set; then
 
17948
    { { echo "$as_me:$LINENO: error: Cannot determine suffix of executable build tools" >&5
 
17949
echo "$as_me: error: Cannot determine suffix of executable build tools" >&2;}
 
17950
   { (exit 1); exit 1; }; }
 
17951
  fi
 
17952
else
 
17953
  EXEEXT_FOR_BUILD=$EXEEXT
 
17954
fi
 
17955
{ echo "$as_me:$LINENO: result: $EXEEXT_FOR_BUILD" >&5
 
17956
echo "${ECHO_T}$EXEEXT_FOR_BUILD" >&6; }
 
17957
 
 
17958
 
 
17959
ac_config_files="$ac_config_files Makefile src/Makefile src/helper/Makefile src/jtag/Makefile src/xsvf/Makefile src/svf/Makefile src/target/Makefile src/server/Makefile src/flash/Makefile src/pld/Makefile doc/Makefile"
 
17960
 
 
17961
cat >confcache <<\_ACEOF
 
17962
# This file is a shell script that caches the results of configure
 
17963
# tests run on this system so they can be shared between configure
 
17964
# scripts and configure runs, see configure's option --config-cache.
 
17965
# It is not useful on other systems.  If it contains results you don't
 
17966
# want to keep, you may remove or edit it.
 
17967
#
 
17968
# config.status only pays attention to the cache file if you give it
 
17969
# the --recheck option to rerun configure.
 
17970
#
 
17971
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
17972
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
17973
# following values.
 
17974
 
 
17975
_ACEOF
 
17976
 
 
17977
# The following way of writing the cache mishandles newlines in values,
 
17978
# but we know of no workaround that is simple, portable, and efficient.
 
17979
# So, we kill variables containing newlines.
 
17980
# Ultrix sh set writes to stderr and can't be redirected directly,
 
17981
# and sets the high bit in the cache file unless we assign to the vars.
 
17982
(
 
17983
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
17984
    eval ac_val=\$$ac_var
 
17985
    case $ac_val in #(
 
17986
    *${as_nl}*)
 
17987
      case $ac_var in #(
 
17988
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
17989
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
17990
      esac
 
17991
      case $ac_var in #(
 
17992
      _ | IFS | as_nl) ;; #(
 
17993
      *) $as_unset $ac_var ;;
 
17994
      esac ;;
 
17995
    esac
 
17996
  done
 
17997
 
 
17998
  (set) 2>&1 |
 
17999
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
18000
    *${as_nl}ac_space=\ *)
 
18001
      # `set' does not quote correctly, so add quotes (double-quote
 
18002
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
18003
      sed -n \
 
18004
        "s/'/'\\\\''/g;
 
18005
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18006
      ;; #(
 
18007
    *)
 
18008
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18009
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
18010
      ;;
 
18011
    esac |
 
18012
    sort
 
18013
) |
 
18014
  sed '
 
18015
     /^ac_cv_env_/b end
 
18016
     t clear
 
18017
     :clear
 
18018
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18019
     t end
 
18020
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18021
     :end' >>confcache
 
18022
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
18023
  if test -w "$cache_file"; then
 
18024
    test "x$cache_file" != "x/dev/null" &&
 
18025
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
18026
echo "$as_me: updating cache $cache_file" >&6;}
 
18027
    cat confcache >$cache_file
 
18028
  else
 
18029
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
18030
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
18031
  fi
 
18032
fi
 
18033
rm -f confcache
 
18034
 
 
18035
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18036
# Let make expand exec_prefix.
 
18037
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18038
 
 
18039
DEFS=-DHAVE_CONFIG_H
 
18040
 
 
18041
ac_libobjs=
 
18042
ac_ltlibobjs=
 
18043
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18044
  # 1. Remove the extension, and $U if already installed.
 
18045
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
18046
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
18047
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
18048
  #    will be set to the directory where LIBOBJS objects are built.
 
18049
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
18050
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
18051
done
 
18052
LIBOBJS=$ac_libobjs
 
18053
 
 
18054
LTLIBOBJS=$ac_ltlibobjs
 
18055
 
 
18056
 
 
18057
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
18058
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
18059
Usually this means the macro was only invoked conditionally." >&5
 
18060
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
18061
Usually this means the macro was only invoked conditionally." >&2;}
 
18062
   { (exit 1); exit 1; }; }
 
18063
fi
 
18064
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18065
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
18066
Usually this means the macro was only invoked conditionally." >&5
 
18067
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
18068
Usually this means the macro was only invoked conditionally." >&2;}
 
18069
   { (exit 1); exit 1; }; }
 
18070
fi
 
18071
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18072
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
18073
Usually this means the macro was only invoked conditionally." >&5
 
18074
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
18075
Usually this means the macro was only invoked conditionally." >&2;}
 
18076
   { (exit 1); exit 1; }; }
 
18077
fi
 
18078
if test -z "${RELEASE_TRUE}" && test -z "${RELEASE_FALSE}"; then
 
18079
  { { echo "$as_me:$LINENO: error: conditional \"RELEASE\" was never defined.
 
18080
Usually this means the macro was only invoked conditionally." >&5
 
18081
echo "$as_me: error: conditional \"RELEASE\" was never defined.
 
18082
Usually this means the macro was only invoked conditionally." >&2;}
 
18083
   { (exit 1); exit 1; }; }
 
18084
fi
 
18085
if test -z "${PARPORT_TRUE}" && test -z "${PARPORT_FALSE}"; then
 
18086
  { { echo "$as_me:$LINENO: error: conditional \"PARPORT\" was never defined.
 
18087
Usually this means the macro was only invoked conditionally." >&5
 
18088
echo "$as_me: error: conditional \"PARPORT\" was never defined.
 
18089
Usually this means the macro was only invoked conditionally." >&2;}
 
18090
   { (exit 1); exit 1; }; }
 
18091
fi
 
18092
if test -z "${DUMMY_TRUE}" && test -z "${DUMMY_FALSE}"; then
 
18093
  { { echo "$as_me:$LINENO: error: conditional \"DUMMY\" was never defined.
 
18094
Usually this means the macro was only invoked conditionally." >&5
 
18095
echo "$as_me: error: conditional \"DUMMY\" was never defined.
 
18096
Usually this means the macro was only invoked conditionally." >&2;}
 
18097
   { (exit 1); exit 1; }; }
 
18098
fi
 
18099
if test -z "${GIVEIO_TRUE}" && test -z "${GIVEIO_FALSE}"; then
 
18100
  { { echo "$as_me:$LINENO: error: conditional \"GIVEIO\" was never defined.
 
18101
Usually this means the macro was only invoked conditionally." >&5
 
18102
echo "$as_me: error: conditional \"GIVEIO\" was never defined.
 
18103
Usually this means the macro was only invoked conditionally." >&2;}
 
18104
   { (exit 1); exit 1; }; }
 
18105
fi
 
18106
if test -z "${EP93XX_TRUE}" && test -z "${EP93XX_FALSE}"; then
 
18107
  { { echo "$as_me:$LINENO: error: conditional \"EP93XX\" was never defined.
 
18108
Usually this means the macro was only invoked conditionally." >&5
 
18109
echo "$as_me: error: conditional \"EP93XX\" was never defined.
 
18110
Usually this means the macro was only invoked conditionally." >&2;}
 
18111
   { (exit 1); exit 1; }; }
 
18112
fi
 
18113
if test -z "${ECOSBOARD_TRUE}" && test -z "${ECOSBOARD_FALSE}"; then
 
18114
  { { echo "$as_me:$LINENO: error: conditional \"ECOSBOARD\" was never defined.
 
18115
Usually this means the macro was only invoked conditionally." >&5
 
18116
echo "$as_me: error: conditional \"ECOSBOARD\" was never defined.
 
18117
Usually this means the macro was only invoked conditionally." >&2;}
 
18118
   { (exit 1); exit 1; }; }
 
18119
fi
 
18120
if test -z "${ZY1000_TRUE}" && test -z "${ZY1000_FALSE}"; then
 
18121
  { { echo "$as_me:$LINENO: error: conditional \"ZY1000\" was never defined.
 
18122
Usually this means the macro was only invoked conditionally." >&5
 
18123
echo "$as_me: error: conditional \"ZY1000\" was never defined.
 
18124
Usually this means the macro was only invoked conditionally." >&2;}
 
18125
   { (exit 1); exit 1; }; }
 
18126
fi
 
18127
if test -z "${IOUTIL_TRUE}" && test -z "${IOUTIL_FALSE}"; then
 
18128
  { { echo "$as_me:$LINENO: error: conditional \"IOUTIL\" was never defined.
 
18129
Usually this means the macro was only invoked conditionally." >&5
 
18130
echo "$as_me: error: conditional \"IOUTIL\" was never defined.
 
18131
Usually this means the macro was only invoked conditionally." >&2;}
 
18132
   { (exit 1); exit 1; }; }
 
18133
fi
 
18134
if test -z "${HTTPD_TRUE}" && test -z "${HTTPD_FALSE}"; then
 
18135
  { { echo "$as_me:$LINENO: error: conditional \"HTTPD\" was never defined.
 
18136
Usually this means the macro was only invoked conditionally." >&5
 
18137
echo "$as_me: error: conditional \"HTTPD\" was never defined.
 
18138
Usually this means the macro was only invoked conditionally." >&2;}
 
18139
   { (exit 1); exit 1; }; }
 
18140
fi
 
18141
if test -z "${AT91RM9200_TRUE}" && test -z "${AT91RM9200_FALSE}"; then
 
18142
  { { echo "$as_me:$LINENO: error: conditional \"AT91RM9200\" was never defined.
 
18143
Usually this means the macro was only invoked conditionally." >&5
 
18144
echo "$as_me: error: conditional \"AT91RM9200\" was never defined.
 
18145
Usually this means the macro was only invoked conditionally." >&2;}
 
18146
   { (exit 1); exit 1; }; }
 
18147
fi
 
18148
if test -z "${BITBANG_TRUE}" && test -z "${BITBANG_FALSE}"; then
 
18149
  { { echo "$as_me:$LINENO: error: conditional \"BITBANG\" was never defined.
 
18150
Usually this means the macro was only invoked conditionally." >&5
 
18151
echo "$as_me: error: conditional \"BITBANG\" was never defined.
 
18152
Usually this means the macro was only invoked conditionally." >&2;}
 
18153
   { (exit 1); exit 1; }; }
 
18154
fi
 
18155
if test -z "${FT2232_LIBFTDI_TRUE}" && test -z "${FT2232_LIBFTDI_FALSE}"; then
 
18156
  { { echo "$as_me:$LINENO: error: conditional \"FT2232_LIBFTDI\" was never defined.
 
18157
Usually this means the macro was only invoked conditionally." >&5
 
18158
echo "$as_me: error: conditional \"FT2232_LIBFTDI\" was never defined.
 
18159
Usually this means the macro was only invoked conditionally." >&2;}
 
18160
   { (exit 1); exit 1; }; }
 
18161
fi
 
18162
if test -z "${FT2232_DRIVER_TRUE}" && test -z "${FT2232_DRIVER_FALSE}"; then
 
18163
  { { echo "$as_me:$LINENO: error: conditional \"FT2232_DRIVER\" was never defined.
 
18164
Usually this means the macro was only invoked conditionally." >&5
 
18165
echo "$as_me: error: conditional \"FT2232_DRIVER\" was never defined.
 
18166
Usually this means the macro was only invoked conditionally." >&2;}
 
18167
   { (exit 1); exit 1; }; }
 
18168
fi
 
18169
if test -z "${AMTJTAGACCEL_TRUE}" && test -z "${AMTJTAGACCEL_FALSE}"; then
 
18170
  { { echo "$as_me:$LINENO: error: conditional \"AMTJTAGACCEL\" was never defined.
 
18171
Usually this means the macro was only invoked conditionally." >&5
 
18172
echo "$as_me: error: conditional \"AMTJTAGACCEL\" was never defined.
 
18173
Usually this means the macro was only invoked conditionally." >&2;}
 
18174
   { (exit 1); exit 1; }; }
 
18175
fi
 
18176
if test -z "${GW16012_TRUE}" && test -z "${GW16012_FALSE}"; then
 
18177
  { { echo "$as_me:$LINENO: error: conditional \"GW16012\" was never defined.
 
18178
Usually this means the macro was only invoked conditionally." >&5
 
18179
echo "$as_me: error: conditional \"GW16012\" was never defined.
 
18180
Usually this means the macro was only invoked conditionally." >&2;}
 
18181
   { (exit 1); exit 1; }; }
 
18182
fi
 
18183
if test -z "${PRESTO_LIBFTDI_TRUE}" && test -z "${PRESTO_LIBFTDI_FALSE}"; then
 
18184
  { { echo "$as_me:$LINENO: error: conditional \"PRESTO_LIBFTDI\" was never defined.
 
18185
Usually this means the macro was only invoked conditionally." >&5
 
18186
echo "$as_me: error: conditional \"PRESTO_LIBFTDI\" was never defined.
 
18187
Usually this means the macro was only invoked conditionally." >&2;}
 
18188
   { (exit 1); exit 1; }; }
 
18189
fi
 
18190
if test -z "${PRESTO_DRIVER_TRUE}" && test -z "${PRESTO_DRIVER_FALSE}"; then
 
18191
  { { echo "$as_me:$LINENO: error: conditional \"PRESTO_DRIVER\" was never defined.
 
18192
Usually this means the macro was only invoked conditionally." >&5
 
18193
echo "$as_me: error: conditional \"PRESTO_DRIVER\" was never defined.
 
18194
Usually this means the macro was only invoked conditionally." >&2;}
 
18195
   { (exit 1); exit 1; }; }
 
18196
fi
 
18197
if test -z "${USBPROG_TRUE}" && test -z "${USBPROG_FALSE}"; then
 
18198
  { { echo "$as_me:$LINENO: error: conditional \"USBPROG\" was never defined.
 
18199
Usually this means the macro was only invoked conditionally." >&5
 
18200
echo "$as_me: error: conditional \"USBPROG\" was never defined.
 
18201
Usually this means the macro was only invoked conditionally." >&2;}
 
18202
   { (exit 1); exit 1; }; }
 
18203
fi
 
18204
if test -z "${OOCD_TRACE_TRUE}" && test -z "${OOCD_TRACE_FALSE}"; then
 
18205
  { { echo "$as_me:$LINENO: error: conditional \"OOCD_TRACE\" was never defined.
 
18206
Usually this means the macro was only invoked conditionally." >&5
 
18207
echo "$as_me: error: conditional \"OOCD_TRACE\" was never defined.
 
18208
Usually this means the macro was only invoked conditionally." >&2;}
 
18209
   { (exit 1); exit 1; }; }
 
18210
fi
 
18211
if test -z "${JLINK_TRUE}" && test -z "${JLINK_FALSE}"; then
 
18212
  { { echo "$as_me:$LINENO: error: conditional \"JLINK\" was never defined.
 
18213
Usually this means the macro was only invoked conditionally." >&5
 
18214
echo "$as_me: error: conditional \"JLINK\" was never defined.
 
18215
Usually this means the macro was only invoked conditionally." >&2;}
 
18216
   { (exit 1); exit 1; }; }
 
18217
fi
 
18218
if test -z "${VSLLINK_TRUE}" && test -z "${VSLLINK_FALSE}"; then
 
18219
  { { echo "$as_me:$LINENO: error: conditional \"VSLLINK\" was never defined.
 
18220
Usually this means the macro was only invoked conditionally." >&5
 
18221
echo "$as_me: error: conditional \"VSLLINK\" was never defined.
 
18222
Usually this means the macro was only invoked conditionally." >&2;}
 
18223
   { (exit 1); exit 1; }; }
 
18224
fi
 
18225
if test -z "${RLINK_TRUE}" && test -z "${RLINK_FALSE}"; then
 
18226
  { { echo "$as_me:$LINENO: error: conditional \"RLINK\" was never defined.
 
18227
Usually this means the macro was only invoked conditionally." >&5
 
18228
echo "$as_me: error: conditional \"RLINK\" was never defined.
 
18229
Usually this means the macro was only invoked conditionally." >&2;}
 
18230
   { (exit 1); exit 1; }; }
 
18231
fi
 
18232
if test -z "${ARMJTAGEW_TRUE}" && test -z "${ARMJTAGEW_FALSE}"; then
 
18233
  { { echo "$as_me:$LINENO: error: conditional \"ARMJTAGEW\" was never defined.
 
18234
Usually this means the macro was only invoked conditionally." >&5
 
18235
echo "$as_me: error: conditional \"ARMJTAGEW\" was never defined.
 
18236
Usually this means the macro was only invoked conditionally." >&2;}
 
18237
   { (exit 1); exit 1; }; }
 
18238
fi
 
18239
if test -z "${IS_CYGWIN_TRUE}" && test -z "${IS_CYGWIN_FALSE}"; then
 
18240
  { { echo "$as_me:$LINENO: error: conditional \"IS_CYGWIN\" was never defined.
 
18241
Usually this means the macro was only invoked conditionally." >&5
 
18242
echo "$as_me: error: conditional \"IS_CYGWIN\" was never defined.
 
18243
Usually this means the macro was only invoked conditionally." >&2;}
 
18244
   { (exit 1); exit 1; }; }
 
18245
fi
 
18246
if test -z "${IS_MINGW_TRUE}" && test -z "${IS_MINGW_FALSE}"; then
 
18247
  { { echo "$as_me:$LINENO: error: conditional \"IS_MINGW\" was never defined.
 
18248
Usually this means the macro was only invoked conditionally." >&5
 
18249
echo "$as_me: error: conditional \"IS_MINGW\" was never defined.
 
18250
Usually this means the macro was only invoked conditionally." >&2;}
 
18251
   { (exit 1); exit 1; }; }
 
18252
fi
 
18253
if test -z "${IS_WIN32_TRUE}" && test -z "${IS_WIN32_FALSE}"; then
 
18254
  { { echo "$as_me:$LINENO: error: conditional \"IS_WIN32\" was never defined.
 
18255
Usually this means the macro was only invoked conditionally." >&5
 
18256
echo "$as_me: error: conditional \"IS_WIN32\" was never defined.
 
18257
Usually this means the macro was only invoked conditionally." >&2;}
 
18258
   { (exit 1); exit 1; }; }
 
18259
fi
 
18260
if test -z "${IS_DARWIN_TRUE}" && test -z "${IS_DARWIN_FALSE}"; then
 
18261
  { { echo "$as_me:$LINENO: error: conditional \"IS_DARWIN\" was never defined.
 
18262
Usually this means the macro was only invoked conditionally." >&5
 
18263
echo "$as_me: error: conditional \"IS_DARWIN\" was never defined.
 
18264
Usually this means the macro was only invoked conditionally." >&2;}
 
18265
   { (exit 1); exit 1; }; }
 
18266
fi
 
18267
if test -z "${BITQ_TRUE}" && test -z "${BITQ_FALSE}"; then
 
18268
  { { echo "$as_me:$LINENO: error: conditional \"BITQ\" was never defined.
 
18269
Usually this means the macro was only invoked conditionally." >&5
 
18270
echo "$as_me: error: conditional \"BITQ\" was never defined.
 
18271
Usually this means the macro was only invoked conditionally." >&2;}
 
18272
   { (exit 1); exit 1; }; }
 
18273
fi
 
18274
if test -z "${MINIDRIVER_TRUE}" && test -z "${MINIDRIVER_FALSE}"; then
 
18275
  { { echo "$as_me:$LINENO: error: conditional \"MINIDRIVER\" was never defined.
 
18276
Usually this means the macro was only invoked conditionally." >&5
 
18277
echo "$as_me: error: conditional \"MINIDRIVER\" was never defined.
 
18278
Usually this means the macro was only invoked conditionally." >&2;}
 
18279
   { (exit 1); exit 1; }; }
 
18280
fi
 
18281
if test -z "${MINIDRIVER_DUMMY_TRUE}" && test -z "${MINIDRIVER_DUMMY_FALSE}"; then
 
18282
  { { echo "$as_me:$LINENO: error: conditional \"MINIDRIVER_DUMMY\" was never defined.
 
18283
Usually this means the macro was only invoked conditionally." >&5
 
18284
echo "$as_me: error: conditional \"MINIDRIVER_DUMMY\" was never defined.
 
18285
Usually this means the macro was only invoked conditionally." >&2;}
 
18286
   { (exit 1); exit 1; }; }
 
18287
fi
 
18288
 
 
18289
: ${CONFIG_STATUS=./config.status}
 
18290
ac_clean_files_save=$ac_clean_files
 
18291
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
18292
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
18293
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
18294
cat >$CONFIG_STATUS <<_ACEOF
 
18295
#! $SHELL
 
18296
# Generated by $as_me.
 
18297
# Run this file to recreate the current configuration.
 
18298
# Compiler output produced by configure, useful for debugging
 
18299
# configure, is in config.log if it exists.
 
18300
 
 
18301
debug=false
 
18302
ac_cs_recheck=false
 
18303
ac_cs_silent=false
 
18304
SHELL=\${CONFIG_SHELL-$SHELL}
 
18305
_ACEOF
 
18306
 
 
18307
cat >>$CONFIG_STATUS <<\_ACEOF
 
18308
## --------------------- ##
 
18309
## M4sh Initialization.  ##
 
18310
## --------------------- ##
 
18311
 
 
18312
# Be more Bourne compatible
 
18313
DUALCASE=1; export DUALCASE # for MKS sh
 
18314
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18315
  emulate sh
 
18316
  NULLCMD=:
 
18317
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18318
  # is contrary to our usage.  Disable this feature.
 
18319
  alias -g '${1+"$@"}'='"$@"'
 
18320
  setopt NO_GLOB_SUBST
 
18321
else
 
18322
  case `(set -o) 2>/dev/null` in
 
18323
  *posix*) set -o posix ;;
 
18324
esac
 
18325
 
 
18326
fi
 
18327
 
 
18328
 
 
18329
 
 
18330
 
 
18331
# PATH needs CR
 
18332
# Avoid depending upon Character Ranges.
 
18333
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
18334
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
18335
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
18336
as_cr_digits='0123456789'
 
18337
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
18338
 
 
18339
# The user is always right.
 
18340
if test "${PATH_SEPARATOR+set}" != set; then
 
18341
  echo "#! /bin/sh" >conf$$.sh
 
18342
  echo  "exit 0"   >>conf$$.sh
 
18343
  chmod +x conf$$.sh
 
18344
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18345
    PATH_SEPARATOR=';'
 
18346
  else
 
18347
    PATH_SEPARATOR=:
 
18348
  fi
 
18349
  rm -f conf$$.sh
 
18350
fi
 
18351
 
 
18352
# Support unset when possible.
 
18353
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
18354
  as_unset=unset
 
18355
else
 
18356
  as_unset=false
 
18357
fi
 
18358
 
 
18359
 
 
18360
# IFS
 
18361
# We need space, tab and new line, in precisely that order.  Quoting is
 
18362
# there to prevent editors from complaining about space-tab.
 
18363
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
18364
# splitting by setting IFS to empty value.)
 
18365
as_nl='
 
18366
'
 
18367
IFS=" ""        $as_nl"
 
18368
 
 
18369
# Find who we are.  Look in the path if we contain no directory separator.
 
18370
case $0 in
 
18371
  *[\\/]* ) as_myself=$0 ;;
 
18372
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18373
for as_dir in $PATH
 
18374
do
 
18375
  IFS=$as_save_IFS
 
18376
  test -z "$as_dir" && as_dir=.
 
18377
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
18378
done
 
18379
IFS=$as_save_IFS
 
18380
 
 
18381
     ;;
 
18382
esac
 
18383
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
18384
# in which case we are not to be found in the path.
 
18385
if test "x$as_myself" = x; then
 
18386
  as_myself=$0
 
18387
fi
 
18388
if test ! -f "$as_myself"; then
 
18389
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
18390
  { (exit 1); exit 1; }
 
18391
fi
 
18392
 
 
18393
# Work around bugs in pre-3.0 UWIN ksh.
 
18394
for as_var in ENV MAIL MAILPATH
 
18395
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
18396
done
 
18397
PS1='$ '
 
18398
PS2='> '
 
18399
PS4='+ '
 
18400
 
 
18401
# NLS nuisances.
 
18402
for as_var in \
 
18403
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
18404
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
18405
  LC_TELEPHONE LC_TIME
 
18406
do
 
18407
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
18408
    eval $as_var=C; export $as_var
 
18409
  else
 
18410
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
18411
  fi
 
18412
done
 
18413
 
 
18414
# Required to use basename.
 
18415
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
18416
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
18417
  as_expr=expr
 
18418
else
 
18419
  as_expr=false
 
18420
fi
 
18421
 
 
18422
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
18423
  as_basename=basename
 
18424
else
 
18425
  as_basename=false
 
18426
fi
 
18427
 
 
18428
 
 
18429
# Name of the executable.
 
18430
as_me=`$as_basename -- "$0" ||
 
18431
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
18432
         X"$0" : 'X\(//\)$' \| \
 
18433
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
18434
echo X/"$0" |
 
18435
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
18436
            s//\1/
 
18437
            q
 
18438
          }
 
18439
          /^X\/\(\/\/\)$/{
 
18440
            s//\1/
 
18441
            q
 
18442
          }
 
18443
          /^X\/\(\/\).*/{
 
18444
            s//\1/
 
18445
            q
 
18446
          }
 
18447
          s/.*/./; q'`
 
18448
 
 
18449
# CDPATH.
 
18450
$as_unset CDPATH
 
18451
 
 
18452
 
 
18453
 
 
18454
  as_lineno_1=$LINENO
 
18455
  as_lineno_2=$LINENO
 
18456
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
18457
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
18458
 
 
18459
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
18460
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
18461
  # line-number line after each line using $LINENO; the second 'sed'
 
18462
  # does the real work.  The second script uses 'N' to pair each
 
18463
  # line-number line with the line containing $LINENO, and appends
 
18464
  # trailing '-' during substitution so that $LINENO is not a special
 
18465
  # case at line end.
 
18466
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
18467
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
18468
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
18469
  sed -n '
 
18470
    p
 
18471
    /[$]LINENO/=
 
18472
  ' <$as_myself |
 
18473
    sed '
 
18474
      s/[$]LINENO.*/&-/
 
18475
      t lineno
 
18476
      b
 
18477
      :lineno
 
18478
      N
 
18479
      :loop
 
18480
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
18481
      t loop
 
18482
      s/-\n.*//
 
18483
    ' >$as_me.lineno &&
 
18484
  chmod +x "$as_me.lineno" ||
 
18485
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
18486
   { (exit 1); exit 1; }; }
 
18487
 
 
18488
  # Don't try to exec as it changes $[0], causing all sort of problems
 
18489
  # (the dirname of $[0] is not the place where we might find the
 
18490
  # original and so on.  Autoconf is especially sensitive to this).
 
18491
  . "./$as_me.lineno"
 
18492
  # Exit status is that of the last command.
 
18493
  exit
 
18494
}
 
18495
 
 
18496
 
 
18497
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
18498
  as_dirname=dirname
 
18499
else
 
18500
  as_dirname=false
 
18501
fi
 
18502
 
 
18503
ECHO_C= ECHO_N= ECHO_T=
 
18504
case `echo -n x` in
 
18505
-n*)
 
18506
  case `echo 'x\c'` in
 
18507
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
18508
  *)   ECHO_C='\c';;
 
18509
  esac;;
 
18510
*)
 
18511
  ECHO_N='-n';;
 
18512
esac
 
18513
 
 
18514
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
18515
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
18516
  as_expr=expr
 
18517
else
 
18518
  as_expr=false
 
18519
fi
 
18520
 
 
18521
rm -f conf$$ conf$$.exe conf$$.file
 
18522
if test -d conf$$.dir; then
 
18523
  rm -f conf$$.dir/conf$$.file
 
18524
else
 
18525
  rm -f conf$$.dir
 
18526
  mkdir conf$$.dir
 
18527
fi
 
18528
echo >conf$$.file
 
18529
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
18530
  as_ln_s='ln -s'
 
18531
  # ... but there are two gotchas:
 
18532
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
18533
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
18534
  # In both cases, we have to default to `cp -p'.
 
18535
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
18536
    as_ln_s='cp -p'
 
18537
elif ln conf$$.file conf$$ 2>/dev/null; then
 
18538
  as_ln_s=ln
 
18539
else
 
18540
  as_ln_s='cp -p'
 
18541
fi
 
18542
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
18543
rmdir conf$$.dir 2>/dev/null
 
18544
 
 
18545
if mkdir -p . 2>/dev/null; then
 
18546
  as_mkdir_p=:
 
18547
else
 
18548
  test -d ./-p && rmdir ./-p
 
18549
  as_mkdir_p=false
 
18550
fi
 
18551
 
 
18552
if test -x / >/dev/null 2>&1; then
 
18553
  as_test_x='test -x'
 
18554
else
 
18555
  if ls -dL / >/dev/null 2>&1; then
 
18556
    as_ls_L_option=L
 
18557
  else
 
18558
    as_ls_L_option=
 
18559
  fi
 
18560
  as_test_x='
 
18561
    eval sh -c '\''
 
18562
      if test -d "$1"; then
 
18563
        test -d "$1/.";
 
18564
      else
 
18565
        case $1 in
 
18566
        -*)set "./$1";;
 
18567
        esac;
 
18568
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
18569
        ???[sx]*):;;*)false;;esac;fi
 
18570
    '\'' sh
 
18571
  '
 
18572
fi
 
18573
as_executable_p=$as_test_x
 
18574
 
 
18575
# Sed expression to map a string onto a valid CPP name.
 
18576
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
18577
 
 
18578
# Sed expression to map a string onto a valid variable name.
 
18579
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
18580
 
 
18581
 
 
18582
exec 6>&1
 
18583
 
 
18584
# Save the log message, to keep $[0] and so on meaningful, and to
 
18585
# report actual input values of CONFIG_FILES etc. instead of their
 
18586
# values after options handling.
 
18587
ac_log="
 
18588
This file was extended by openocd $as_me 0.3.1, which was
 
18589
generated by GNU Autoconf 2.61.  Invocation command line was
 
18590
 
 
18591
  CONFIG_FILES    = $CONFIG_FILES
 
18592
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
18593
  CONFIG_LINKS    = $CONFIG_LINKS
 
18594
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
18595
  $ $0 $@
 
18596
 
 
18597
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
18598
"
 
18599
 
 
18600
_ACEOF
 
18601
 
 
18602
cat >>$CONFIG_STATUS <<_ACEOF
 
18603
# Files that config.status was made for.
 
18604
config_files="$ac_config_files"
 
18605
config_headers="$ac_config_headers"
 
18606
config_commands="$ac_config_commands"
 
18607
 
 
18608
_ACEOF
 
18609
 
 
18610
cat >>$CONFIG_STATUS <<\_ACEOF
 
18611
ac_cs_usage="\
 
18612
\`$as_me' instantiates files from templates according to the
 
18613
current configuration.
 
18614
 
 
18615
Usage: $0 [OPTIONS] [FILE]...
 
18616
 
 
18617
  -h, --help       print this help, then exit
 
18618
  -V, --version    print version number and configuration settings, then exit
 
18619
  -q, --quiet      do not print progress messages
 
18620
  -d, --debug      don't remove temporary files
 
18621
      --recheck    update $as_me by reconfiguring in the same conditions
 
18622
  --file=FILE[:TEMPLATE]
 
18623
                   instantiate the configuration file FILE
 
18624
  --header=FILE[:TEMPLATE]
 
18625
                   instantiate the configuration header FILE
 
18626
 
 
18627
Configuration files:
 
18628
$config_files
 
18629
 
 
18630
Configuration headers:
 
18631
$config_headers
 
18632
 
 
18633
Configuration commands:
 
18634
$config_commands
 
18635
 
 
18636
Report bugs to <bug-autoconf@gnu.org>."
 
18637
 
 
18638
_ACEOF
 
18639
cat >>$CONFIG_STATUS <<_ACEOF
 
18640
ac_cs_version="\\
 
18641
openocd config.status 0.3.1
 
18642
configured by $0, generated by GNU Autoconf 2.61,
 
18643
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
18644
 
 
18645
Copyright (C) 2006 Free Software Foundation, Inc.
 
18646
This config.status script is free software; the Free Software Foundation
 
18647
gives unlimited permission to copy, distribute and modify it."
 
18648
 
 
18649
ac_pwd='$ac_pwd'
 
18650
srcdir='$srcdir'
 
18651
INSTALL='$INSTALL'
 
18652
MKDIR_P='$MKDIR_P'
 
18653
_ACEOF
 
18654
 
 
18655
cat >>$CONFIG_STATUS <<\_ACEOF
 
18656
# If no file are specified by the user, then we need to provide default
 
18657
# value.  By we need to know if files were specified by the user.
 
18658
ac_need_defaults=:
 
18659
while test $# != 0
 
18660
do
 
18661
  case $1 in
 
18662
  --*=*)
 
18663
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
18664
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
18665
    ac_shift=:
 
18666
    ;;
 
18667
  *)
 
18668
    ac_option=$1
 
18669
    ac_optarg=$2
 
18670
    ac_shift=shift
 
18671
    ;;
 
18672
  esac
 
18673
 
 
18674
  case $ac_option in
 
18675
  # Handling of the options.
 
18676
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
18677
    ac_cs_recheck=: ;;
 
18678
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
18679
    echo "$ac_cs_version"; exit ;;
 
18680
  --debug | --debu | --deb | --de | --d | -d )
 
18681
    debug=: ;;
 
18682
  --file | --fil | --fi | --f )
 
18683
    $ac_shift
 
18684
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
18685
    ac_need_defaults=false;;
 
18686
  --header | --heade | --head | --hea )
 
18687
    $ac_shift
 
18688
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
18689
    ac_need_defaults=false;;
 
18690
  --he | --h)
 
18691
    # Conflict between --help and --header
 
18692
    { echo "$as_me: error: ambiguous option: $1
 
18693
Try \`$0 --help' for more information." >&2
 
18694
   { (exit 1); exit 1; }; };;
 
18695
  --help | --hel | -h )
 
18696
    echo "$ac_cs_usage"; exit ;;
 
18697
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
18698
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
18699
    ac_cs_silent=: ;;
 
18700
 
 
18701
  # This is an error.
 
18702
  -*) { echo "$as_me: error: unrecognized option: $1
 
18703
Try \`$0 --help' for more information." >&2
 
18704
   { (exit 1); exit 1; }; } ;;
 
18705
 
 
18706
  *) ac_config_targets="$ac_config_targets $1"
 
18707
     ac_need_defaults=false ;;
 
18708
 
 
18709
  esac
 
18710
  shift
 
18711
done
 
18712
 
 
18713
ac_configure_extra_args=
 
18714
 
 
18715
if $ac_cs_silent; then
 
18716
  exec 6>/dev/null
 
18717
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
18718
fi
 
18719
 
 
18720
_ACEOF
 
18721
cat >>$CONFIG_STATUS <<_ACEOF
 
18722
if \$ac_cs_recheck; then
 
18723
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
18724
  CONFIG_SHELL=$SHELL
 
18725
  export CONFIG_SHELL
 
18726
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
18727
fi
 
18728
 
 
18729
_ACEOF
 
18730
cat >>$CONFIG_STATUS <<\_ACEOF
 
18731
exec 5>>config.log
 
18732
{
 
18733
  echo
 
18734
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
18735
## Running $as_me. ##
 
18736
_ASBOX
 
18737
  echo "$ac_log"
 
18738
} >&5
 
18739
 
 
18740
_ACEOF
 
18741
cat >>$CONFIG_STATUS <<_ACEOF
 
18742
#
 
18743
# INIT-COMMANDS
 
18744
#
 
18745
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
18746
 
 
18747
 
 
18748
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
18749
# if CDPATH is set.
 
18750
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18751
 
 
18752
sed_quote_subst='$sed_quote_subst'
 
18753
double_quote_subst='$double_quote_subst'
 
18754
delay_variable_subst='$delay_variable_subst'
 
18755
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
18756
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
18757
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
18758
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
18759
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
18760
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
18761
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
18762
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
18763
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
18764
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
18765
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
18766
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
18767
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
18768
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
18769
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
18770
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
18771
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
18772
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
18773
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
18774
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
18775
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
18776
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
18777
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
18778
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
18779
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
18780
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
18781
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18782
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18783
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
18784
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
18785
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
18786
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
18787
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
18788
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
18789
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18790
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18791
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18792
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
18793
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
18794
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
18795
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
18796
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
18797
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
18798
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
18799
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
18800
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
18801
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
18802
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
18803
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
18804
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18805
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
18806
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
18807
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
18808
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
18809
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
18810
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
18811
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
18812
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
18813
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
18814
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
18815
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
18816
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18817
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18818
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
18819
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
18820
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18821
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18822
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
18823
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18824
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18825
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18826
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18827
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18828
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18829
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
18830
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18831
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18832
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18833
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
18834
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
18835
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
18836
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
18837
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
18838
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
18839
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
18840
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
18841
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
18842
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
18843
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
18844
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18845
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
18846
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
18847
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18848
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18849
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
18850
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
18851
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
18852
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
18853
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
18854
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
18855
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
18856
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18857
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18858
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18859
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18860
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18861
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18862
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
18863
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
18864
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18865
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18866
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
18867
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
18868
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
18869
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
18870
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
18871
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
18872
 
 
18873
LTCC='$LTCC'
 
18874
LTCFLAGS='$LTCFLAGS'
 
18875
compiler='$compiler_DEFAULT'
 
18876
 
 
18877
# Quote evaled strings.
 
18878
for var in SED \
 
18879
GREP \
 
18880
EGREP \
 
18881
FGREP \
 
18882
LD \
 
18883
NM \
 
18884
LN_S \
 
18885
lt_SP2NL \
 
18886
lt_NL2SP \
 
18887
reload_flag \
 
18888
deplibs_check_method \
 
18889
file_magic_cmd \
 
18890
AR \
 
18891
AR_FLAGS \
 
18892
STRIP \
 
18893
RANLIB \
 
18894
CC \
 
18895
CFLAGS \
 
18896
compiler \
 
18897
lt_cv_sys_global_symbol_pipe \
 
18898
lt_cv_sys_global_symbol_to_cdecl \
 
18899
lt_cv_sys_global_symbol_to_c_name_address \
 
18900
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
18901
SHELL \
 
18902
ECHO \
 
18903
lt_prog_compiler_no_builtin_flag \
 
18904
lt_prog_compiler_wl \
 
18905
lt_prog_compiler_pic \
 
18906
lt_prog_compiler_static \
 
18907
lt_cv_prog_compiler_c_o \
 
18908
need_locks \
 
18909
DSYMUTIL \
 
18910
NMEDIT \
 
18911
LIPO \
 
18912
OTOOL \
 
18913
OTOOL64 \
 
18914
shrext_cmds \
 
18915
export_dynamic_flag_spec \
 
18916
whole_archive_flag_spec \
 
18917
compiler_needs_object \
 
18918
with_gnu_ld \
 
18919
allow_undefined_flag \
 
18920
no_undefined_flag \
 
18921
hardcode_libdir_flag_spec \
 
18922
hardcode_libdir_flag_spec_ld \
 
18923
hardcode_libdir_separator \
 
18924
fix_srcfile_path \
 
18925
exclude_expsyms \
 
18926
include_expsyms \
 
18927
file_list_spec \
 
18928
variables_saved_for_relink \
 
18929
libname_spec \
 
18930
library_names_spec \
 
18931
soname_spec \
 
18932
finish_eval \
 
18933
old_striplib \
 
18934
striplib; do
 
18935
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
18936
    *[\\\\\\\`\\"\\\$]*)
 
18937
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
18938
      ;;
 
18939
    *)
 
18940
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
18941
      ;;
 
18942
    esac
 
18943
done
 
18944
 
 
18945
# Double-quote double-evaled strings.
 
18946
for var in reload_cmds \
 
18947
old_postinstall_cmds \
 
18948
old_postuninstall_cmds \
 
18949
old_archive_cmds \
 
18950
extract_expsyms_cmds \
 
18951
old_archive_from_new_cmds \
 
18952
old_archive_from_expsyms_cmds \
 
18953
archive_cmds \
 
18954
archive_expsym_cmds \
 
18955
module_cmds \
 
18956
module_expsym_cmds \
 
18957
export_symbols_cmds \
 
18958
prelink_cmds \
 
18959
postinstall_cmds \
 
18960
postuninstall_cmds \
 
18961
finish_cmds \
 
18962
sys_lib_search_path_spec \
 
18963
sys_lib_dlsearch_path_spec; do
 
18964
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
18965
    *[\\\\\\\`\\"\\\$]*)
 
18966
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
18967
      ;;
 
18968
    *)
 
18969
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
18970
      ;;
 
18971
    esac
 
18972
done
 
18973
 
 
18974
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
18975
case \$lt_ECHO in
 
18976
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
18977
  ;;
 
18978
esac
 
18979
 
 
18980
ac_aux_dir='$ac_aux_dir'
 
18981
xsi_shell='$xsi_shell'
 
18982
lt_shell_append='$lt_shell_append'
 
18983
 
 
18984
# See if we are running on zsh, and set the options which allow our
 
18985
# commands through without removal of \ escapes INIT.
 
18986
if test -n "\${ZSH_VERSION+set}" ; then
 
18987
   setopt NO_GLOB_SUBST
 
18988
fi
 
18989
 
 
18990
 
 
18991
    PACKAGE='$PACKAGE'
 
18992
    VERSION='$VERSION'
 
18993
    TIMESTAMP='$TIMESTAMP'
 
18994
    RM='$RM'
 
18995
    ofile='$ofile'
 
18996
 
 
18997
 
 
18998
 
 
18999
 
 
19000
_ACEOF
 
19001
 
 
19002
cat >>$CONFIG_STATUS <<\_ACEOF
 
19003
 
 
19004
# Handling of arguments.
 
19005
for ac_config_target in $ac_config_targets
 
19006
do
 
19007
  case $ac_config_target in
 
19008
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
19009
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19010
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
19011
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
19012
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
19013
    "src/helper/Makefile") CONFIG_FILES="$CONFIG_FILES src/helper/Makefile" ;;
 
19014
    "src/jtag/Makefile") CONFIG_FILES="$CONFIG_FILES src/jtag/Makefile" ;;
 
19015
    "src/xsvf/Makefile") CONFIG_FILES="$CONFIG_FILES src/xsvf/Makefile" ;;
 
19016
    "src/svf/Makefile") CONFIG_FILES="$CONFIG_FILES src/svf/Makefile" ;;
 
19017
    "src/target/Makefile") CONFIG_FILES="$CONFIG_FILES src/target/Makefile" ;;
 
19018
    "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
 
19019
    "src/flash/Makefile") CONFIG_FILES="$CONFIG_FILES src/flash/Makefile" ;;
 
19020
    "src/pld/Makefile") CONFIG_FILES="$CONFIG_FILES src/pld/Makefile" ;;
 
19021
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
19022
 
 
19023
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
19024
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
19025
   { (exit 1); exit 1; }; };;
 
19026
  esac
 
19027
done
 
19028
 
 
19029
 
 
19030
# If the user did not use the arguments to specify the items to instantiate,
 
19031
# then the envvar interface is used.  Set only those that are not.
 
19032
# We use the long form for the default assignment because of an extremely
 
19033
# bizarre bug on SunOS 4.1.3.
 
19034
if $ac_need_defaults; then
 
19035
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19036
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19037
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
19038
fi
 
19039
 
 
19040
# Have a temporary directory for convenience.  Make it in the build tree
 
19041
# simply because there is no reason against having it here, and in addition,
 
19042
# creating and moving files from /tmp can sometimes cause problems.
 
19043
# Hook for its removal unless debugging.
 
19044
# Note that there is a small window in which the directory will not be cleaned:
 
19045
# after its creation but before its name has been assigned to `$tmp'.
 
19046
$debug ||
 
19047
{
 
19048
  tmp=
 
19049
  trap 'exit_status=$?
 
19050
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
19051
' 0
 
19052
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
19053
}
 
19054
# Create a (secure) tmp directory for tmp files.
 
19055
 
 
19056
{
 
19057
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
19058
  test -n "$tmp" && test -d "$tmp"
 
19059
}  ||
 
19060
{
 
19061
  tmp=./conf$$-$RANDOM
 
19062
  (umask 077 && mkdir "$tmp")
 
19063
} ||
 
19064
{
 
19065
   echo "$me: cannot create a temporary directory in ." >&2
 
19066
   { (exit 1); exit 1; }
 
19067
}
 
19068
 
 
19069
#
 
19070
# Set up the sed scripts for CONFIG_FILES section.
 
19071
#
 
19072
 
 
19073
# No need to generate the scripts if there are no CONFIG_FILES.
 
19074
# This happens for instance when ./config.status config.h
 
19075
if test -n "$CONFIG_FILES"; then
 
19076
 
 
19077
_ACEOF
 
19078
 
 
19079
 
 
19080
 
 
19081
ac_delim='%!_!# '
 
19082
for ac_last_try in false false false false false :; do
 
19083
  cat >conf$$subs.sed <<_ACEOF
 
19084
SHELL!$SHELL$ac_delim
 
19085
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
19086
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
19087
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
19088
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
19089
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
19090
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
19091
exec_prefix!$exec_prefix$ac_delim
 
19092
prefix!$prefix$ac_delim
 
19093
program_transform_name!$program_transform_name$ac_delim
 
19094
bindir!$bindir$ac_delim
 
19095
sbindir!$sbindir$ac_delim
 
19096
libexecdir!$libexecdir$ac_delim
 
19097
datarootdir!$datarootdir$ac_delim
 
19098
datadir!$datadir$ac_delim
 
19099
sysconfdir!$sysconfdir$ac_delim
 
19100
sharedstatedir!$sharedstatedir$ac_delim
 
19101
localstatedir!$localstatedir$ac_delim
 
19102
includedir!$includedir$ac_delim
 
19103
oldincludedir!$oldincludedir$ac_delim
 
19104
docdir!$docdir$ac_delim
 
19105
infodir!$infodir$ac_delim
 
19106
htmldir!$htmldir$ac_delim
 
19107
dvidir!$dvidir$ac_delim
 
19108
pdfdir!$pdfdir$ac_delim
 
19109
psdir!$psdir$ac_delim
 
19110
libdir!$libdir$ac_delim
 
19111
localedir!$localedir$ac_delim
 
19112
mandir!$mandir$ac_delim
 
19113
DEFS!$DEFS$ac_delim
 
19114
ECHO_C!$ECHO_C$ac_delim
 
19115
ECHO_N!$ECHO_N$ac_delim
 
19116
ECHO_T!$ECHO_T$ac_delim
 
19117
LIBS!$LIBS$ac_delim
 
19118
build_alias!$build_alias$ac_delim
 
19119
host_alias!$host_alias$ac_delim
 
19120
target_alias!$target_alias$ac_delim
 
19121
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
19122
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
19123
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
19124
am__isrc!$am__isrc$ac_delim
 
19125
CYGPATH_W!$CYGPATH_W$ac_delim
 
19126
PACKAGE!$PACKAGE$ac_delim
 
19127
VERSION!$VERSION$ac_delim
 
19128
ACLOCAL!$ACLOCAL$ac_delim
 
19129
AUTOCONF!$AUTOCONF$ac_delim
 
19130
AUTOMAKE!$AUTOMAKE$ac_delim
 
19131
AUTOHEADER!$AUTOHEADER$ac_delim
 
19132
MAKEINFO!$MAKEINFO$ac_delim
 
19133
install_sh!$install_sh$ac_delim
 
19134
STRIP!$STRIP$ac_delim
 
19135
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
19136
mkdir_p!$mkdir_p$ac_delim
 
19137
AWK!$AWK$ac_delim
 
19138
SET_MAKE!$SET_MAKE$ac_delim
 
19139
am__leading_dot!$am__leading_dot$ac_delim
 
19140
AMTAR!$AMTAR$ac_delim
 
19141
am__tar!$am__tar$ac_delim
 
19142
am__untar!$am__untar$ac_delim
 
19143
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 
19144
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 
19145
MAINT!$MAINT$ac_delim
 
19146
CC!$CC$ac_delim
 
19147
CFLAGS!$CFLAGS$ac_delim
 
19148
LDFLAGS!$LDFLAGS$ac_delim
 
19149
CPPFLAGS!$CPPFLAGS$ac_delim
 
19150
ac_ct_CC!$ac_ct_CC$ac_delim
 
19151
EXEEXT!$EXEEXT$ac_delim
 
19152
OBJEXT!$OBJEXT$ac_delim
 
19153
DEPDIR!$DEPDIR$ac_delim
 
19154
am__include!$am__include$ac_delim
 
19155
am__quote!$am__quote$ac_delim
 
19156
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
19157
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
19158
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
19159
CCDEPMODE!$CCDEPMODE$ac_delim
 
19160
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
19161
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
19162
RANLIB!$RANLIB$ac_delim
 
19163
LIBTOOL!$LIBTOOL$ac_delim
 
19164
build!$build$ac_delim
 
19165
build_cpu!$build_cpu$ac_delim
 
19166
build_vendor!$build_vendor$ac_delim
 
19167
build_os!$build_os$ac_delim
 
19168
host!$host$ac_delim
 
19169
host_cpu!$host_cpu$ac_delim
 
19170
host_vendor!$host_vendor$ac_delim
 
19171
host_os!$host_os$ac_delim
 
19172
SED!$SED$ac_delim
 
19173
GREP!$GREP$ac_delim
 
19174
EGREP!$EGREP$ac_delim
 
19175
FGREP!$FGREP$ac_delim
 
19176
LD!$LD$ac_delim
 
19177
DUMPBIN!$DUMPBIN$ac_delim
 
19178
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
 
19179
NM!$NM$ac_delim
 
19180
LN_S!$LN_S$ac_delim
 
19181
_ACEOF
 
19182
 
 
19183
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
19184
    break
 
19185
  elif $ac_last_try; then
 
19186
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
19187
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
19188
   { (exit 1); exit 1; }; }
 
19189
  else
 
19190
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19191
  fi
 
19192
done
 
19193
 
 
19194
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
19195
if test -n "$ac_eof"; then
 
19196
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
19197
  ac_eof=`expr $ac_eof + 1`
 
19198
fi
 
19199
 
 
19200
cat >>$CONFIG_STATUS <<_ACEOF
 
19201
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
19202
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19203
_ACEOF
 
19204
sed '
 
19205
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
19206
s/^/s,@/; s/!/@,|#_!!_#|/
 
19207
:n
 
19208
t n
 
19209
s/'"$ac_delim"'$/,g/; t
 
19210
s/$/\\/; p
 
19211
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
19212
' >>$CONFIG_STATUS <conf$$subs.sed
 
19213
rm -f conf$$subs.sed
 
19214
cat >>$CONFIG_STATUS <<_ACEOF
 
19215
CEOF$ac_eof
 
19216
_ACEOF
 
19217
 
 
19218
 
 
19219
ac_delim='%!_!# '
 
19220
for ac_last_try in false false false false false :; do
 
19221
  cat >conf$$subs.sed <<_ACEOF
 
19222
AR!$AR$ac_delim
 
19223
lt_ECHO!$lt_ECHO$ac_delim
 
19224
DSYMUTIL!$DSYMUTIL$ac_delim
 
19225
NMEDIT!$NMEDIT$ac_delim
 
19226
LIPO!$LIPO$ac_delim
 
19227
OTOOL!$OTOOL$ac_delim
 
19228
OTOOL64!$OTOOL64$ac_delim
 
19229
CPP!$CPP$ac_delim
 
19230
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
 
19231
RELEASE_TRUE!$RELEASE_TRUE$ac_delim
 
19232
RELEASE_FALSE!$RELEASE_FALSE$ac_delim
 
19233
PARPORT_TRUE!$PARPORT_TRUE$ac_delim
 
19234
PARPORT_FALSE!$PARPORT_FALSE$ac_delim
 
19235
DUMMY_TRUE!$DUMMY_TRUE$ac_delim
 
19236
DUMMY_FALSE!$DUMMY_FALSE$ac_delim
 
19237
GIVEIO_TRUE!$GIVEIO_TRUE$ac_delim
 
19238
GIVEIO_FALSE!$GIVEIO_FALSE$ac_delim
 
19239
EP93XX_TRUE!$EP93XX_TRUE$ac_delim
 
19240
EP93XX_FALSE!$EP93XX_FALSE$ac_delim
 
19241
ECOSBOARD_TRUE!$ECOSBOARD_TRUE$ac_delim
 
19242
ECOSBOARD_FALSE!$ECOSBOARD_FALSE$ac_delim
 
19243
ZY1000_TRUE!$ZY1000_TRUE$ac_delim
 
19244
ZY1000_FALSE!$ZY1000_FALSE$ac_delim
 
19245
IOUTIL_TRUE!$IOUTIL_TRUE$ac_delim
 
19246
IOUTIL_FALSE!$IOUTIL_FALSE$ac_delim
 
19247
HTTPD_TRUE!$HTTPD_TRUE$ac_delim
 
19248
HTTPD_FALSE!$HTTPD_FALSE$ac_delim
 
19249
AT91RM9200_TRUE!$AT91RM9200_TRUE$ac_delim
 
19250
AT91RM9200_FALSE!$AT91RM9200_FALSE$ac_delim
 
19251
BITBANG_TRUE!$BITBANG_TRUE$ac_delim
 
19252
BITBANG_FALSE!$BITBANG_FALSE$ac_delim
 
19253
FT2232_LIBFTDI_TRUE!$FT2232_LIBFTDI_TRUE$ac_delim
 
19254
FT2232_LIBFTDI_FALSE!$FT2232_LIBFTDI_FALSE$ac_delim
 
19255
FT2232_DRIVER_TRUE!$FT2232_DRIVER_TRUE$ac_delim
 
19256
FT2232_DRIVER_FALSE!$FT2232_DRIVER_FALSE$ac_delim
 
19257
AMTJTAGACCEL_TRUE!$AMTJTAGACCEL_TRUE$ac_delim
 
19258
AMTJTAGACCEL_FALSE!$AMTJTAGACCEL_FALSE$ac_delim
 
19259
GW16012_TRUE!$GW16012_TRUE$ac_delim
 
19260
GW16012_FALSE!$GW16012_FALSE$ac_delim
 
19261
PRESTO_LIBFTDI_TRUE!$PRESTO_LIBFTDI_TRUE$ac_delim
 
19262
PRESTO_LIBFTDI_FALSE!$PRESTO_LIBFTDI_FALSE$ac_delim
 
19263
PRESTO_DRIVER_TRUE!$PRESTO_DRIVER_TRUE$ac_delim
 
19264
PRESTO_DRIVER_FALSE!$PRESTO_DRIVER_FALSE$ac_delim
 
19265
USBPROG_TRUE!$USBPROG_TRUE$ac_delim
 
19266
USBPROG_FALSE!$USBPROG_FALSE$ac_delim
 
19267
OOCD_TRACE_TRUE!$OOCD_TRACE_TRUE$ac_delim
 
19268
OOCD_TRACE_FALSE!$OOCD_TRACE_FALSE$ac_delim
 
19269
JLINK_TRUE!$JLINK_TRUE$ac_delim
 
19270
JLINK_FALSE!$JLINK_FALSE$ac_delim
 
19271
VSLLINK_TRUE!$VSLLINK_TRUE$ac_delim
 
19272
VSLLINK_FALSE!$VSLLINK_FALSE$ac_delim
 
19273
RLINK_TRUE!$RLINK_TRUE$ac_delim
 
19274
RLINK_FALSE!$RLINK_FALSE$ac_delim
 
19275
ARMJTAGEW_TRUE!$ARMJTAGEW_TRUE$ac_delim
 
19276
ARMJTAGEW_FALSE!$ARMJTAGEW_FALSE$ac_delim
 
19277
IS_CYGWIN_TRUE!$IS_CYGWIN_TRUE$ac_delim
 
19278
IS_CYGWIN_FALSE!$IS_CYGWIN_FALSE$ac_delim
 
19279
IS_MINGW_TRUE!$IS_MINGW_TRUE$ac_delim
 
19280
IS_MINGW_FALSE!$IS_MINGW_FALSE$ac_delim
 
19281
IS_WIN32_TRUE!$IS_WIN32_TRUE$ac_delim
 
19282
IS_WIN32_FALSE!$IS_WIN32_FALSE$ac_delim
 
19283
IS_DARWIN_TRUE!$IS_DARWIN_TRUE$ac_delim
 
19284
IS_DARWIN_FALSE!$IS_DARWIN_FALSE$ac_delim
 
19285
BITQ_TRUE!$BITQ_TRUE$ac_delim
 
19286
BITQ_FALSE!$BITQ_FALSE$ac_delim
 
19287
MINIDRIVER_TRUE!$MINIDRIVER_TRUE$ac_delim
 
19288
MINIDRIVER_FALSE!$MINIDRIVER_FALSE$ac_delim
 
19289
MINIDRIVER_DUMMY_TRUE!$MINIDRIVER_DUMMY_TRUE$ac_delim
 
19290
MINIDRIVER_DUMMY_FALSE!$MINIDRIVER_DUMMY_FALSE$ac_delim
 
19291
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 
19292
CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
 
19293
EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
 
19294
LIBOBJS!$LIBOBJS$ac_delim
 
19295
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
19296
_ACEOF
 
19297
 
 
19298
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
 
19299
    break
 
19300
  elif $ac_last_try; then
 
19301
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
19302
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
19303
   { (exit 1); exit 1; }; }
 
19304
  else
 
19305
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19306
  fi
 
19307
done
 
19308
 
 
19309
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
19310
if test -n "$ac_eof"; then
 
19311
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
19312
  ac_eof=`expr $ac_eof + 1`
 
19313
fi
 
19314
 
 
19315
cat >>$CONFIG_STATUS <<_ACEOF
 
19316
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
19317
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
19318
_ACEOF
 
19319
sed '
 
19320
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
19321
s/^/s,@/; s/!/@,|#_!!_#|/
 
19322
:n
 
19323
t n
 
19324
s/'"$ac_delim"'$/,g/; t
 
19325
s/$/\\/; p
 
19326
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
19327
' >>$CONFIG_STATUS <conf$$subs.sed
 
19328
rm -f conf$$subs.sed
 
19329
cat >>$CONFIG_STATUS <<_ACEOF
 
19330
:end
 
19331
s/|#_!!_#|//g
 
19332
CEOF$ac_eof
 
19333
_ACEOF
 
19334
 
 
19335
 
 
19336
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
19337
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19338
# trailing colons and then remove the whole line if VPATH becomes empty
 
19339
# (actually we leave an empty line to preserve line numbers).
 
19340
if test "x$srcdir" = x.; then
 
19341
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
19342
s/:*\$(srcdir):*/:/
 
19343
s/:*\${srcdir}:*/:/
 
19344
s/:*@srcdir@:*/:/
 
19345
s/^\([^=]*=[     ]*\):*/\1/
 
19346
s/:*$//
 
19347
s/^[^=]*=[       ]*$//
 
19348
}'
 
19349
fi
 
19350
 
 
19351
cat >>$CONFIG_STATUS <<\_ACEOF
 
19352
fi # test -n "$CONFIG_FILES"
 
19353
 
 
19354
 
 
19355
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
19356
do
 
19357
  case $ac_tag in
 
19358
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
19359
  esac
 
19360
  case $ac_mode$ac_tag in
 
19361
  :[FHL]*:*);;
 
19362
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
19363
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
19364
   { (exit 1); exit 1; }; };;
 
19365
  :[FH]-) ac_tag=-:-;;
 
19366
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
19367
  esac
 
19368
  ac_save_IFS=$IFS
 
19369
  IFS=:
 
19370
  set x $ac_tag
 
19371
  IFS=$ac_save_IFS
 
19372
  shift
 
19373
  ac_file=$1
 
19374
  shift
 
19375
 
 
19376
  case $ac_mode in
 
19377
  :L) ac_source=$1;;
 
19378
  :[FH])
 
19379
    ac_file_inputs=
 
19380
    for ac_f
 
19381
    do
 
19382
      case $ac_f in
 
19383
      -) ac_f="$tmp/stdin";;
 
19384
      *) # Look for the file first in the build tree, then in the source tree
 
19385
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
19386
         # because $ac_f cannot contain `:'.
 
19387
         test -f "$ac_f" ||
 
19388
           case $ac_f in
 
19389
           [\\/$]*) false;;
 
19390
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
19391
           esac ||
 
19392
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
19393
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
19394
   { (exit 1); exit 1; }; };;
 
19395
      esac
 
19396
      ac_file_inputs="$ac_file_inputs $ac_f"
 
19397
    done
 
19398
 
 
19399
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
19400
    # use $as_me), people would be surprised to read:
 
19401
    #    /* config.h.  Generated by config.status.  */
 
19402
    configure_input="Generated from "`IFS=:
 
19403
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
19404
    if test x"$ac_file" != x-; then
 
19405
      configure_input="$ac_file.  $configure_input"
 
19406
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
19407
echo "$as_me: creating $ac_file" >&6;}
 
19408
    fi
 
19409
 
 
19410
    case $ac_tag in
 
19411
    *:-:* | *:-) cat >"$tmp/stdin";;
 
19412
    esac
 
19413
    ;;
 
19414
  esac
 
19415
 
 
19416
  ac_dir=`$as_dirname -- "$ac_file" ||
 
19417
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19418
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
19419
         X"$ac_file" : 'X\(//\)$' \| \
 
19420
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
19421
echo X"$ac_file" |
 
19422
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19423
            s//\1/
 
19424
            q
 
19425
          }
 
19426
          /^X\(\/\/\)[^/].*/{
 
19427
            s//\1/
 
19428
            q
 
19429
          }
 
19430
          /^X\(\/\/\)$/{
 
19431
            s//\1/
 
19432
            q
 
19433
          }
 
19434
          /^X\(\/\).*/{
 
19435
            s//\1/
 
19436
            q
 
19437
          }
 
19438
          s/.*/./; q'`
 
19439
  { as_dir="$ac_dir"
 
19440
  case $as_dir in #(
 
19441
  -*) as_dir=./$as_dir;;
 
19442
  esac
 
19443
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
19444
    as_dirs=
 
19445
    while :; do
 
19446
      case $as_dir in #(
 
19447
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
19448
      *) as_qdir=$as_dir;;
 
19449
      esac
 
19450
      as_dirs="'$as_qdir' $as_dirs"
 
19451
      as_dir=`$as_dirname -- "$as_dir" ||
 
19452
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19453
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19454
         X"$as_dir" : 'X\(//\)$' \| \
 
19455
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
19456
echo X"$as_dir" |
 
19457
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19458
            s//\1/
 
19459
            q
 
19460
          }
 
19461
          /^X\(\/\/\)[^/].*/{
 
19462
            s//\1/
 
19463
            q
 
19464
          }
 
19465
          /^X\(\/\/\)$/{
 
19466
            s//\1/
 
19467
            q
 
19468
          }
 
19469
          /^X\(\/\).*/{
 
19470
            s//\1/
 
19471
            q
 
19472
          }
 
19473
          s/.*/./; q'`
 
19474
      test -d "$as_dir" && break
 
19475
    done
 
19476
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
19477
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
19478
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
19479
   { (exit 1); exit 1; }; }; }
 
19480
  ac_builddir=.
 
19481
 
 
19482
case "$ac_dir" in
 
19483
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
19484
*)
 
19485
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
19486
  # A ".." for each directory in $ac_dir_suffix.
 
19487
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
19488
  case $ac_top_builddir_sub in
 
19489
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
19490
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
19491
  esac ;;
 
19492
esac
 
19493
ac_abs_top_builddir=$ac_pwd
 
19494
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
19495
# for backward compatibility:
 
19496
ac_top_builddir=$ac_top_build_prefix
 
19497
 
 
19498
case $srcdir in
 
19499
  .)  # We are building in place.
 
19500
    ac_srcdir=.
 
19501
    ac_top_srcdir=$ac_top_builddir_sub
 
19502
    ac_abs_top_srcdir=$ac_pwd ;;
 
19503
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
19504
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19505
    ac_top_srcdir=$srcdir
 
19506
    ac_abs_top_srcdir=$srcdir ;;
 
19507
  *) # Relative name.
 
19508
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
19509
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
19510
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
19511
esac
 
19512
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
19513
 
 
19514
 
 
19515
  case $ac_mode in
 
19516
  :F)
 
19517
  #
 
19518
  # CONFIG_FILE
 
19519
  #
 
19520
 
 
19521
  case $INSTALL in
 
19522
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
19523
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
19524
  esac
 
19525
  ac_MKDIR_P=$MKDIR_P
 
19526
  case $MKDIR_P in
 
19527
  [\\/$]* | ?:[\\/]* ) ;;
 
19528
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
19529
  esac
 
19530
_ACEOF
 
19531
 
 
19532
cat >>$CONFIG_STATUS <<\_ACEOF
 
19533
# If the template does not know about datarootdir, expand it.
 
19534
# FIXME: This hack should be removed a few years after 2.60.
 
19535
ac_datarootdir_hack=; ac_datarootdir_seen=
 
19536
 
 
19537
case `sed -n '/datarootdir/ {
 
19538
  p
 
19539
  q
 
19540
}
 
19541
/@datadir@/p
 
19542
/@docdir@/p
 
19543
/@infodir@/p
 
19544
/@localedir@/p
 
19545
/@mandir@/p
 
19546
' $ac_file_inputs` in
 
19547
*datarootdir*) ac_datarootdir_seen=yes;;
 
19548
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
19549
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
19550
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
19551
_ACEOF
 
19552
cat >>$CONFIG_STATUS <<_ACEOF
 
19553
  ac_datarootdir_hack='
 
19554
  s&@datadir@&$datadir&g
 
19555
  s&@docdir@&$docdir&g
 
19556
  s&@infodir@&$infodir&g
 
19557
  s&@localedir@&$localedir&g
 
19558
  s&@mandir@&$mandir&g
 
19559
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
19560
esac
 
19561
_ACEOF
 
19562
 
 
19563
# Neutralize VPATH when `$srcdir' = `.'.
 
19564
# Shell code in configure.ac might set extrasub.
 
19565
# FIXME: do we really want to maintain this feature?
 
19566
cat >>$CONFIG_STATUS <<_ACEOF
 
19567
  sed "$ac_vpsub
 
19568
$extrasub
 
19569
_ACEOF
 
19570
cat >>$CONFIG_STATUS <<\_ACEOF
 
19571
:t
 
19572
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19573
s&@configure_input@&$configure_input&;t t
 
19574
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
19575
s&@srcdir@&$ac_srcdir&;t t
 
19576
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
19577
s&@top_srcdir@&$ac_top_srcdir&;t t
 
19578
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
19579
s&@builddir@&$ac_builddir&;t t
 
19580
s&@abs_builddir@&$ac_abs_builddir&;t t
 
19581
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
19582
s&@INSTALL@&$ac_INSTALL&;t t
 
19583
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
19584
$ac_datarootdir_hack
 
19585
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
19586
 
 
19587
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
19588
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
19589
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
19590
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
19591
which seems to be undefined.  Please make sure it is defined." >&5
 
19592
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
19593
which seems to be undefined.  Please make sure it is defined." >&2;}
 
19594
 
 
19595
  rm -f "$tmp/stdin"
 
19596
  case $ac_file in
 
19597
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
19598
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
19599
  esac
 
19600
 ;;
 
19601
  :H)
 
19602
  #
 
19603
  # CONFIG_HEADER
 
19604
  #
 
19605
_ACEOF
 
19606
 
 
19607
# Transform confdefs.h into a sed script `conftest.defines', that
 
19608
# substitutes the proper values into config.h.in to produce config.h.
 
19609
rm -f conftest.defines conftest.tail
 
19610
# First, append a space to every undef/define line, to ease matching.
 
19611
echo 's/$/ /' >conftest.defines
 
19612
# Then, protect against being on the right side of a sed subst, or in
 
19613
# an unquoted here document, in config.status.  If some macros were
 
19614
# called several times there might be several #defines for the same
 
19615
# symbol, which is useless.  But do not sort them, since the last
 
19616
# AC_DEFINE must be honored.
 
19617
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
19618
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
19619
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
19620
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
19621
# just an empty string.
 
19622
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
19623
ac_dB='\\)[      (].*,\\1define\\2'
 
19624
ac_dC=' '
 
19625
ac_dD=' ,'
 
19626
 
 
19627
uniq confdefs.h |
 
19628
  sed -n '
 
19629
        t rset
 
19630
        :rset
 
19631
        s/^[     ]*#[    ]*define[       ][      ]*//
 
19632
        t ok
 
19633
        d
 
19634
        :ok
 
19635
        s/[\\&,]/\\&/g
 
19636
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
19637
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
19638
  ' >>conftest.defines
 
19639
 
 
19640
# Remove the space that was appended to ease matching.
 
19641
# Then replace #undef with comments.  This is necessary, for
 
19642
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
19643
# on some systems where configure will not decide to define it.
 
19644
# (The regexp can be short, since the line contains either #define or #undef.)
 
19645
echo 's/ $//
 
19646
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
19647
 
 
19648
# Break up conftest.defines:
 
19649
ac_max_sed_lines=50
 
19650
 
 
19651
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
19652
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
19653
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
19654
# et cetera.
 
19655
ac_in='$ac_file_inputs'
 
19656
ac_out='"$tmp/out1"'
 
19657
ac_nxt='"$tmp/out2"'
 
19658
 
 
19659
while :
 
19660
do
 
19661
  # Write a here document:
 
19662
    cat >>$CONFIG_STATUS <<_ACEOF
 
19663
    # First, check the format of the line:
 
19664
    cat >"\$tmp/defines.sed" <<\\CEOF
 
19665
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
19666
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
19667
b
 
19668
:def
 
19669
_ACEOF
 
19670
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
19671
  echo 'CEOF
 
19672
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
19673
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
19674
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
19675
  grep . conftest.tail >/dev/null || break
 
19676
  rm -f conftest.defines
 
19677
  mv conftest.tail conftest.defines
 
19678
done
 
19679
rm -f conftest.defines conftest.tail
 
19680
 
 
19681
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
19682
cat >>$CONFIG_STATUS <<\_ACEOF
 
19683
  if test x"$ac_file" != x-; then
 
19684
    echo "/* $configure_input  */" >"$tmp/config.h"
 
19685
    cat "$ac_result" >>"$tmp/config.h"
 
19686
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
19687
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
19688
echo "$as_me: $ac_file is unchanged" >&6;}
 
19689
    else
 
19690
      rm -f $ac_file
 
19691
      mv "$tmp/config.h" $ac_file
 
19692
    fi
 
19693
  else
 
19694
    echo "/* $configure_input  */"
 
19695
    cat "$ac_result"
 
19696
  fi
 
19697
  rm -f "$tmp/out12"
 
19698
# Compute $ac_file's index in $config_headers.
 
19699
_am_arg=$ac_file
 
19700
_am_stamp_count=1
 
19701
for _am_header in $config_headers :; do
 
19702
  case $_am_header in
 
19703
    $_am_arg | $_am_arg:* )
 
19704
      break ;;
 
19705
    * )
 
19706
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
19707
  esac
 
19708
done
 
19709
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
19710
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19711
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
19712
         X"$_am_arg" : 'X\(//\)$' \| \
 
19713
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
19714
echo X"$_am_arg" |
 
19715
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19716
            s//\1/
 
19717
            q
 
19718
          }
 
19719
          /^X\(\/\/\)[^/].*/{
 
19720
            s//\1/
 
19721
            q
 
19722
          }
 
19723
          /^X\(\/\/\)$/{
 
19724
            s//\1/
 
19725
            q
 
19726
          }
 
19727
          /^X\(\/\).*/{
 
19728
            s//\1/
 
19729
            q
 
19730
          }
 
19731
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
19732
 ;;
 
19733
 
 
19734
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
19735
echo "$as_me: executing $ac_file commands" >&6;}
 
19736
 ;;
 
19737
  esac
 
19738
 
 
19739
 
 
19740
  case $ac_file$ac_mode in
 
19741
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
19742
  # Strip MF so we end up with the name of the file.
 
19743
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
19744
  # Check whether this is an Automake generated Makefile or not.
 
19745
  # We used to match only the files named `Makefile.in', but
 
19746
  # some people rename them; so instead we look at the file content.
 
19747
  # Grep'ing the first line is not enough: some people post-process
 
19748
  # each Makefile.in and add a new line on top of each file to say so.
 
19749
  # Grep'ing the whole file is not good either: AIX grep has a line
 
19750
  # limit of 2048, but all sed's we know have understand at least 4000.
 
19751
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
19752
    dirpart=`$as_dirname -- "$mf" ||
 
19753
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19754
         X"$mf" : 'X\(//\)[^/]' \| \
 
19755
         X"$mf" : 'X\(//\)$' \| \
 
19756
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
19757
echo X"$mf" |
 
19758
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19759
            s//\1/
 
19760
            q
 
19761
          }
 
19762
          /^X\(\/\/\)[^/].*/{
 
19763
            s//\1/
 
19764
            q
 
19765
          }
 
19766
          /^X\(\/\/\)$/{
 
19767
            s//\1/
 
19768
            q
 
19769
          }
 
19770
          /^X\(\/\).*/{
 
19771
            s//\1/
 
19772
            q
 
19773
          }
 
19774
          s/.*/./; q'`
 
19775
  else
 
19776
    continue
 
19777
  fi
 
19778
  # Extract the definition of DEPDIR, am__include, and am__quote
 
19779
  # from the Makefile without running `make'.
 
19780
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
19781
  test -z "$DEPDIR" && continue
 
19782
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
19783
  test -z "am__include" && continue
 
19784
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
19785
  # When using ansi2knr, U may be empty or an underscore; expand it
 
19786
  U=`sed -n 's/^U = //p' < "$mf"`
 
19787
  # Find all dependency output files, they are included files with
 
19788
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
19789
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
19790
  # expansion.
 
19791
  for file in `sed -n "
 
19792
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
19793
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
19794
    # Make sure the directory exists.
 
19795
    test -f "$dirpart/$file" && continue
 
19796
    fdir=`$as_dirname -- "$file" ||
 
19797
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19798
         X"$file" : 'X\(//\)[^/]' \| \
 
19799
         X"$file" : 'X\(//\)$' \| \
 
19800
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
19801
echo X"$file" |
 
19802
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19803
            s//\1/
 
19804
            q
 
19805
          }
 
19806
          /^X\(\/\/\)[^/].*/{
 
19807
            s//\1/
 
19808
            q
 
19809
          }
 
19810
          /^X\(\/\/\)$/{
 
19811
            s//\1/
 
19812
            q
 
19813
          }
 
19814
          /^X\(\/\).*/{
 
19815
            s//\1/
 
19816
            q
 
19817
          }
 
19818
          s/.*/./; q'`
 
19819
    { as_dir=$dirpart/$fdir
 
19820
  case $as_dir in #(
 
19821
  -*) as_dir=./$as_dir;;
 
19822
  esac
 
19823
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
19824
    as_dirs=
 
19825
    while :; do
 
19826
      case $as_dir in #(
 
19827
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
19828
      *) as_qdir=$as_dir;;
 
19829
      esac
 
19830
      as_dirs="'$as_qdir' $as_dirs"
 
19831
      as_dir=`$as_dirname -- "$as_dir" ||
 
19832
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19833
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19834
         X"$as_dir" : 'X\(//\)$' \| \
 
19835
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
19836
echo X"$as_dir" |
 
19837
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19838
            s//\1/
 
19839
            q
 
19840
          }
 
19841
          /^X\(\/\/\)[^/].*/{
 
19842
            s//\1/
 
19843
            q
 
19844
          }
 
19845
          /^X\(\/\/\)$/{
 
19846
            s//\1/
 
19847
            q
 
19848
          }
 
19849
          /^X\(\/\).*/{
 
19850
            s//\1/
 
19851
            q
 
19852
          }
 
19853
          s/.*/./; q'`
 
19854
      test -d "$as_dir" && break
 
19855
    done
 
19856
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
19857
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
19858
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
19859
   { (exit 1); exit 1; }; }; }
 
19860
    # echo "creating $dirpart/$file"
 
19861
    echo '# dummy' > "$dirpart/$file"
 
19862
  done
 
19863
done
 
19864
 ;;
 
19865
    "libtool":C)
 
19866
 
 
19867
    # See if we are running on zsh, and set the options which allow our
 
19868
    # commands through without removal of \ escapes.
 
19869
    if test -n "${ZSH_VERSION+set}" ; then
 
19870
      setopt NO_GLOB_SUBST
 
19871
    fi
 
19872
 
 
19873
    cfgfile="${ofile}T"
 
19874
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
19875
    $RM "$cfgfile"
 
19876
 
 
19877
    cat <<_LT_EOF >> "$cfgfile"
 
19878
#! $SHELL
 
19879
 
 
19880
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
19881
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
19882
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19883
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
19884
#
 
19885
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
19886
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
19887
#   Written by Gordon Matzigkeit, 1996
 
19888
#
 
19889
#   This file is part of GNU Libtool.
 
19890
#
 
19891
# GNU Libtool is free software; you can redistribute it and/or
 
19892
# modify it under the terms of the GNU General Public License as
 
19893
# published by the Free Software Foundation; either version 2 of
 
19894
# the License, or (at your option) any later version.
 
19895
#
 
19896
# As a special exception to the GNU General Public License,
 
19897
# if you distribute this file as part of a program or library that
 
19898
# is built using GNU Libtool, you may include this file under the
 
19899
# same distribution terms that you use for the rest of that program.
 
19900
#
 
19901
# GNU Libtool is distributed in the hope that it will be useful,
 
19902
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19903
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19904
# GNU General Public License for more details.
 
19905
#
 
19906
# You should have received a copy of the GNU General Public License
 
19907
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
19908
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
19909
# obtained by writing to the Free Software Foundation, Inc.,
 
19910
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
19911
 
 
19912
 
 
19913
# The names of the tagged configurations supported by this script.
 
19914
available_tags=""
 
19915
 
 
19916
# ### BEGIN LIBTOOL CONFIG
 
19917
 
 
19918
# Whether or not to build shared libraries.
 
19919
build_libtool_libs=$enable_shared
 
19920
 
 
19921
# Which release of libtool.m4 was used?
 
19922
macro_version=$macro_version
 
19923
macro_revision=$macro_revision
 
19924
 
 
19925
# Whether or not to build static libraries.
 
19926
build_old_libs=$enable_static
 
19927
 
 
19928
# What type of objects to build.
 
19929
pic_mode=$pic_mode
 
19930
 
 
19931
# Whether or not to optimize for fast installation.
 
19932
fast_install=$enable_fast_install
 
19933
 
 
19934
# The host system.
 
19935
host_alias=$host_alias
 
19936
host=$host
 
19937
host_os=$host_os
 
19938
 
 
19939
# The build system.
 
19940
build_alias=$build_alias
 
19941
build=$build
 
19942
build_os=$build_os
 
19943
 
 
19944
# A sed program that does not truncate output.
 
19945
SED=$lt_SED
 
19946
 
 
19947
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
19948
Xsed="\$SED -e 1s/^X//"
 
19949
 
 
19950
# A grep program that handles long lines.
 
19951
GREP=$lt_GREP
 
19952
 
 
19953
# An ERE matcher.
 
19954
EGREP=$lt_EGREP
 
19955
 
 
19956
# A literal string matcher.
 
19957
FGREP=$lt_FGREP
 
19958
 
 
19959
# A BSD- or MS-compatible name lister.
 
19960
NM=$lt_NM
 
19961
 
 
19962
# Whether we need soft or hard links.
 
19963
LN_S=$lt_LN_S
 
19964
 
 
19965
# What is the maximum length of a command?
 
19966
max_cmd_len=$max_cmd_len
 
19967
 
 
19968
# Object file suffix (normally "o").
 
19969
objext=$ac_objext
 
19970
 
 
19971
# Executable file suffix (normally "").
 
19972
exeext=$exeext
 
19973
 
 
19974
# whether the shell understands "unset".
 
19975
lt_unset=$lt_unset
 
19976
 
 
19977
# turn spaces into newlines.
 
19978
SP2NL=$lt_lt_SP2NL
 
19979
 
 
19980
# turn newlines into spaces.
 
19981
NL2SP=$lt_lt_NL2SP
 
19982
 
 
19983
# How to create reloadable object files.
 
19984
reload_flag=$lt_reload_flag
 
19985
reload_cmds=$lt_reload_cmds
 
19986
 
 
19987
# Method to check whether dependent libraries are shared objects.
 
19988
deplibs_check_method=$lt_deplibs_check_method
 
19989
 
 
19990
# Command to use when deplibs_check_method == "file_magic".
 
19991
file_magic_cmd=$lt_file_magic_cmd
 
19992
 
 
19993
# The archiver.
 
19994
AR=$lt_AR
 
19995
AR_FLAGS=$lt_AR_FLAGS
 
19996
 
 
19997
# A symbol stripping program.
 
19998
STRIP=$lt_STRIP
 
19999
 
 
20000
# Commands used to install an old-style archive.
 
20001
RANLIB=$lt_RANLIB
 
20002
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20003
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20004
 
 
20005
# A C compiler.
 
20006
LTCC=$lt_CC
 
20007
 
 
20008
# LTCC compiler flags.
 
20009
LTCFLAGS=$lt_CFLAGS
 
20010
 
 
20011
# Take the output of nm and produce a listing of raw symbols and C names.
 
20012
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20013
 
 
20014
# Transform the output of nm in a proper C declaration.
 
20015
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20016
 
 
20017
# Transform the output of nm in a C name address pair.
 
20018
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20019
 
 
20020
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
20021
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
20022
 
 
20023
# The name of the directory that contains temporary libtool files.
 
20024
objdir=$objdir
 
20025
 
 
20026
# Shell to use when invoking shell scripts.
 
20027
SHELL=$lt_SHELL
 
20028
 
 
20029
# An echo program that does not interpret backslashes.
 
20030
ECHO=$lt_ECHO
 
20031
 
 
20032
# Used to examine libraries when file_magic_cmd begins with "file".
 
20033
MAGIC_CMD=$MAGIC_CMD
 
20034
 
 
20035
# Must we lock files when doing compilation?
 
20036
need_locks=$lt_need_locks
 
20037
 
 
20038
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
20039
DSYMUTIL=$lt_DSYMUTIL
 
20040
 
 
20041
# Tool to change global to local symbols on Mac OS X.
 
20042
NMEDIT=$lt_NMEDIT
 
20043
 
 
20044
# Tool to manipulate fat objects and archives on Mac OS X.
 
20045
LIPO=$lt_LIPO
 
20046
 
 
20047
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
20048
OTOOL=$lt_OTOOL
 
20049
 
 
20050
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
20051
OTOOL64=$lt_OTOOL64
 
20052
 
 
20053
# Old archive suffix (normally "a").
 
20054
libext=$libext
 
20055
 
 
20056
# Shared library suffix (normally ".so").
 
20057
shrext_cmds=$lt_shrext_cmds
 
20058
 
 
20059
# The commands to extract the exported symbol list from a shared archive.
 
20060
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20061
 
 
20062
# Variables whose values should be saved in libtool wrapper scripts and
 
20063
# restored at link time.
 
20064
variables_saved_for_relink=$lt_variables_saved_for_relink
 
20065
 
 
20066
# Do we need the "lib" prefix for modules?
 
20067
need_lib_prefix=$need_lib_prefix
 
20068
 
 
20069
# Do we need a version for libraries?
 
20070
need_version=$need_version
 
20071
 
 
20072
# Library versioning type.
 
20073
version_type=$version_type
 
20074
 
 
20075
# Shared library runtime path variable.
 
20076
runpath_var=$runpath_var
 
20077
 
 
20078
# Shared library path variable.
 
20079
shlibpath_var=$shlibpath_var
 
20080
 
 
20081
# Is shlibpath searched before the hard-coded library search path?
 
20082
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20083
 
 
20084
# Format of library name prefix.
 
20085
libname_spec=$lt_libname_spec
 
20086
 
 
20087
# List of archive names.  First name is the real one, the rest are links.
 
20088
# The last name is the one that the linker finds with -lNAME
 
20089
library_names_spec=$lt_library_names_spec
 
20090
 
 
20091
# The coded name of the library, if different from the real name.
 
20092
soname_spec=$lt_soname_spec
 
20093
 
 
20094
# Command to use after installation of a shared archive.
 
20095
postinstall_cmds=$lt_postinstall_cmds
 
20096
 
 
20097
# Command to use after uninstallation of a shared archive.
 
20098
postuninstall_cmds=$lt_postuninstall_cmds
 
20099
 
 
20100
# Commands used to finish a libtool library installation in a directory.
 
20101
finish_cmds=$lt_finish_cmds
 
20102
 
 
20103
# As "finish_cmds", except a single script fragment to be evaled but
 
20104
# not shown.
 
20105
finish_eval=$lt_finish_eval
 
20106
 
 
20107
# Whether we should hardcode library paths into libraries.
 
20108
hardcode_into_libs=$hardcode_into_libs
 
20109
 
 
20110
# Compile-time system search path for libraries.
 
20111
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20112
 
 
20113
# Run-time system search path for libraries.
 
20114
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20115
 
 
20116
# Whether dlopen is supported.
 
20117
dlopen_support=$enable_dlopen
 
20118
 
 
20119
# Whether dlopen of programs is supported.
 
20120
dlopen_self=$enable_dlopen_self
 
20121
 
 
20122
# Whether dlopen of statically linked programs is supported.
 
20123
dlopen_self_static=$enable_dlopen_self_static
 
20124
 
 
20125
# Commands to strip libraries.
 
20126
old_striplib=$lt_old_striplib
 
20127
striplib=$lt_striplib
 
20128
 
 
20129
 
 
20130
# The linker used to build libraries.
 
20131
LD=$lt_LD
 
20132
 
 
20133
# Commands used to build an old-style archive.
 
20134
old_archive_cmds=$lt_old_archive_cmds
 
20135
 
 
20136
# A language specific compiler.
 
20137
CC=$lt_compiler
 
20138
 
 
20139
# Is the compiler the GNU compiler?
 
20140
with_gcc=$GCC
 
20141
 
 
20142
# Compiler flag to turn off builtin functions.
 
20143
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
20144
 
 
20145
# How to pass a linker flag through the compiler.
 
20146
wl=$lt_lt_prog_compiler_wl
 
20147
 
 
20148
# Additional compiler flags for building library objects.
 
20149
pic_flag=$lt_lt_prog_compiler_pic
 
20150
 
 
20151
# Compiler flag to prevent dynamic linking.
 
20152
link_static_flag=$lt_lt_prog_compiler_static
 
20153
 
 
20154
# Does compiler simultaneously support -c and -o options?
 
20155
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
20156
 
 
20157
# Whether or not to add -lc for building shared libraries.
 
20158
build_libtool_need_lc=$archive_cmds_need_lc
 
20159
 
 
20160
# Whether or not to disallow shared libs when runtime libs are static.
 
20161
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
20162
 
 
20163
# Compiler flag to allow reflexive dlopens.
 
20164
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
20165
 
 
20166
# Compiler flag to generate shared objects directly from archives.
 
20167
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
20168
 
 
20169
# Whether the compiler copes with passing no objects directly.
 
20170
compiler_needs_object=$lt_compiler_needs_object
 
20171
 
 
20172
# Create an old-style archive from a shared archive.
 
20173
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
20174
 
 
20175
# Create a temporary old-style archive to link instead of a shared archive.
 
20176
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
20177
 
 
20178
# Commands used to build a shared archive.
 
20179
archive_cmds=$lt_archive_cmds
 
20180
archive_expsym_cmds=$lt_archive_expsym_cmds
 
20181
 
 
20182
# Commands used to build a loadable module if different from building
 
20183
# a shared archive.
 
20184
module_cmds=$lt_module_cmds
 
20185
module_expsym_cmds=$lt_module_expsym_cmds
 
20186
 
 
20187
# Whether we are building with GNU ld or not.
 
20188
with_gnu_ld=$lt_with_gnu_ld
 
20189
 
 
20190
# Flag that allows shared libraries with undefined symbols to be built.
 
20191
allow_undefined_flag=$lt_allow_undefined_flag
 
20192
 
 
20193
# Flag that enforces no undefined symbols.
 
20194
no_undefined_flag=$lt_no_undefined_flag
 
20195
 
 
20196
# Flag to hardcode \$libdir into a binary during linking.
 
20197
# This must work even if \$libdir does not exist
 
20198
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
20199
 
 
20200
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
20201
# during linking.  This must work even if \$libdir does not exist.
 
20202
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
20203
 
 
20204
# Whether we need a single "-rpath" flag with a separated argument.
 
20205
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
20206
 
 
20207
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20208
# DIR into the resulting binary.
 
20209
hardcode_direct=$hardcode_direct
 
20210
 
 
20211
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20212
# DIR into the resulting binary and the resulting library dependency is
 
20213
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
20214
# library is relocated.
 
20215
hardcode_direct_absolute=$hardcode_direct_absolute
 
20216
 
 
20217
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
20218
# into the resulting binary.
 
20219
hardcode_minus_L=$hardcode_minus_L
 
20220
 
 
20221
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
20222
# into the resulting binary.
 
20223
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
20224
 
 
20225
# Set to "yes" if building a shared library automatically hardcodes DIR
 
20226
# into the library and all subsequent libraries and executables linked
 
20227
# against it.
 
20228
hardcode_automatic=$hardcode_automatic
 
20229
 
 
20230
# Set to yes if linker adds runtime paths of dependent libraries
 
20231
# to runtime path list.
 
20232
inherit_rpath=$inherit_rpath
 
20233
 
 
20234
# Whether libtool must link a program against all its dependency libraries.
 
20235
link_all_deplibs=$link_all_deplibs
 
20236
 
 
20237
# Fix the shell variable \$srcfile for the compiler.
 
20238
fix_srcfile_path=$lt_fix_srcfile_path
 
20239
 
 
20240
# Set to "yes" if exported symbols are required.
 
20241
always_export_symbols=$always_export_symbols
 
20242
 
 
20243
# The commands to list exported symbols.
 
20244
export_symbols_cmds=$lt_export_symbols_cmds
 
20245
 
 
20246
# Symbols that should not be listed in the preloaded symbols.
 
20247
exclude_expsyms=$lt_exclude_expsyms
 
20248
 
 
20249
# Symbols that must always be exported.
 
20250
include_expsyms=$lt_include_expsyms
 
20251
 
 
20252
# Commands necessary for linking programs (against libraries) with templates.
 
20253
prelink_cmds=$lt_prelink_cmds
 
20254
 
 
20255
# Specify filename containing input files.
 
20256
file_list_spec=$lt_file_list_spec
 
20257
 
 
20258
# How to hardcode a shared library path into an executable.
 
20259
hardcode_action=$hardcode_action
 
20260
 
 
20261
# ### END LIBTOOL CONFIG
 
20262
 
 
20263
_LT_EOF
 
20264
 
 
20265
  case $host_os in
 
20266
  aix3*)
 
20267
    cat <<\_LT_EOF >> "$cfgfile"
 
20268
# AIX sometimes has problems with the GCC collect2 program.  For some
 
20269
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
20270
# vanish in a puff of smoke.
 
20271
if test "X${COLLECT_NAMES+set}" != Xset; then
 
20272
  COLLECT_NAMES=
 
20273
  export COLLECT_NAMES
 
20274
fi
 
20275
_LT_EOF
 
20276
    ;;
 
20277
  esac
 
20278
 
 
20279
 
 
20280
ltmain="$ac_aux_dir/ltmain.sh"
 
20281
 
 
20282
 
 
20283
  # We use sed instead of cat because bash on DJGPP gets confused if
 
20284
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
20285
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
20286
  # is reportedly fixed, but why not run on old versions too?
 
20287
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
20288
    || (rm -f "$cfgfile"; exit 1)
 
20289
 
 
20290
  case $xsi_shell in
 
20291
  yes)
 
20292
    cat << \_LT_EOF >> "$cfgfile"
 
20293
 
 
20294
# func_dirname file append nondir_replacement
 
20295
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
20296
# otherwise set result to NONDIR_REPLACEMENT.
 
20297
func_dirname ()
 
20298
{
 
20299
  case ${1} in
 
20300
    */*) func_dirname_result="${1%/*}${2}" ;;
 
20301
    *  ) func_dirname_result="${3}" ;;
 
20302
  esac
 
20303
}
 
20304
 
 
20305
# func_basename file
 
20306
func_basename ()
 
20307
{
 
20308
  func_basename_result="${1##*/}"
 
20309
}
 
20310
 
 
20311
# func_dirname_and_basename file append nondir_replacement
 
20312
# perform func_basename and func_dirname in a single function
 
20313
# call:
 
20314
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
20315
#             add APPEND to the result, otherwise set result
 
20316
#             to NONDIR_REPLACEMENT.
 
20317
#             value returned in "$func_dirname_result"
 
20318
#   basename: Compute filename of FILE.
 
20319
#             value retuned in "$func_basename_result"
 
20320
# Implementation must be kept synchronized with func_dirname
 
20321
# and func_basename. For efficiency, we do not delegate to
 
20322
# those functions but instead duplicate the functionality here.
 
20323
func_dirname_and_basename ()
 
20324
{
 
20325
  case ${1} in
 
20326
    */*) func_dirname_result="${1%/*}${2}" ;;
 
20327
    *  ) func_dirname_result="${3}" ;;
 
20328
  esac
 
20329
  func_basename_result="${1##*/}"
 
20330
}
 
20331
 
 
20332
# func_stripname prefix suffix name
 
20333
# strip PREFIX and SUFFIX off of NAME.
 
20334
# PREFIX and SUFFIX must not contain globbing or regex special
 
20335
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
20336
# dot (in which case that matches only a dot).
 
20337
func_stripname ()
 
20338
{
 
20339
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
20340
  # positional parameters, so assign one to ordinary parameter first.
 
20341
  func_stripname_result=${3}
 
20342
  func_stripname_result=${func_stripname_result#"${1}"}
 
20343
  func_stripname_result=${func_stripname_result%"${2}"}
 
20344
}
 
20345
 
 
20346
# func_opt_split
 
20347
func_opt_split ()
 
20348
{
 
20349
  func_opt_split_opt=${1%%=*}
 
20350
  func_opt_split_arg=${1#*=}
 
20351
}
 
20352
 
 
20353
# func_lo2o object
 
20354
func_lo2o ()
 
20355
{
 
20356
  case ${1} in
 
20357
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
20358
    *)    func_lo2o_result=${1} ;;
 
20359
  esac
 
20360
}
 
20361
 
 
20362
# func_xform libobj-or-source
 
20363
func_xform ()
 
20364
{
 
20365
  func_xform_result=${1%.*}.lo
 
20366
}
 
20367
 
 
20368
# func_arith arithmetic-term...
 
20369
func_arith ()
 
20370
{
 
20371
  func_arith_result=$(( $* ))
 
20372
}
 
20373
 
 
20374
# func_len string
 
20375
# STRING may not start with a hyphen.
 
20376
func_len ()
 
20377
{
 
20378
  func_len_result=${#1}
 
20379
}
 
20380
 
 
20381
_LT_EOF
 
20382
    ;;
 
20383
  *) # Bourne compatible functions.
 
20384
    cat << \_LT_EOF >> "$cfgfile"
 
20385
 
 
20386
# func_dirname file append nondir_replacement
 
20387
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
20388
# otherwise set result to NONDIR_REPLACEMENT.
 
20389
func_dirname ()
 
20390
{
 
20391
  # Extract subdirectory from the argument.
 
20392
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
20393
  if test "X$func_dirname_result" = "X${1}"; then
 
20394
    func_dirname_result="${3}"
 
20395
  else
 
20396
    func_dirname_result="$func_dirname_result${2}"
 
20397
  fi
 
20398
}
 
20399
 
 
20400
# func_basename file
 
20401
func_basename ()
 
20402
{
 
20403
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
20404
}
 
20405
 
 
20406
 
 
20407
# func_stripname prefix suffix name
 
20408
# strip PREFIX and SUFFIX off of NAME.
 
20409
# PREFIX and SUFFIX must not contain globbing or regex special
 
20410
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
20411
# dot (in which case that matches only a dot).
 
20412
# func_strip_suffix prefix name
 
20413
func_stripname ()
 
20414
{
 
20415
  case ${2} in
 
20416
    .*) func_stripname_result=`$ECHO "X${3}" \
 
20417
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
20418
    *)  func_stripname_result=`$ECHO "X${3}" \
 
20419
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
20420
  esac
 
20421
}
 
20422
 
 
20423
# sed scripts:
 
20424
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
20425
my_sed_long_arg='1s/^-[^=]*=//'
 
20426
 
 
20427
# func_opt_split
 
20428
func_opt_split ()
 
20429
{
 
20430
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
20431
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
20432
}
 
20433
 
 
20434
# func_lo2o object
 
20435
func_lo2o ()
 
20436
{
 
20437
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
20438
}
 
20439
 
 
20440
# func_xform libobj-or-source
 
20441
func_xform ()
 
20442
{
 
20443
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
20444
}
 
20445
 
 
20446
# func_arith arithmetic-term...
 
20447
func_arith ()
 
20448
{
 
20449
  func_arith_result=`expr "$@"`
 
20450
}
 
20451
 
 
20452
# func_len string
 
20453
# STRING may not start with a hyphen.
 
20454
func_len ()
 
20455
{
 
20456
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
20457
}
 
20458
 
 
20459
_LT_EOF
 
20460
esac
 
20461
 
 
20462
case $lt_shell_append in
 
20463
  yes)
 
20464
    cat << \_LT_EOF >> "$cfgfile"
 
20465
 
 
20466
# func_append var value
 
20467
# Append VALUE to the end of shell variable VAR.
 
20468
func_append ()
 
20469
{
 
20470
  eval "$1+=\$2"
 
20471
}
 
20472
_LT_EOF
 
20473
    ;;
 
20474
  *)
 
20475
    cat << \_LT_EOF >> "$cfgfile"
 
20476
 
 
20477
# func_append var value
 
20478
# Append VALUE to the end of shell variable VAR.
 
20479
func_append ()
 
20480
{
 
20481
  eval "$1=\$$1\$2"
 
20482
}
 
20483
 
 
20484
_LT_EOF
 
20485
    ;;
 
20486
  esac
 
20487
 
 
20488
 
 
20489
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
20490
    || (rm -f "$cfgfile"; exit 1)
 
20491
 
 
20492
  mv -f "$cfgfile" "$ofile" ||
 
20493
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
20494
  chmod +x "$ofile"
 
20495
 
 
20496
 ;;
 
20497
 
 
20498
  esac
 
20499
done # for ac_tag
 
20500
 
 
20501
 
 
20502
{ (exit 0); exit 0; }
 
20503
_ACEOF
 
20504
chmod +x $CONFIG_STATUS
 
20505
ac_clean_files=$ac_clean_files_save
 
20506
 
 
20507
 
 
20508
# configure is writing to config.log, and then calls config.status.
 
20509
# config.status does its own redirection, appending to config.log.
 
20510
# Unfortunately, on DOS this fails, as config.log is still kept open
 
20511
# by configure, so config.status won't be able to write to it; its
 
20512
# output is simply discarded.  So we exec the FD to /dev/null,
 
20513
# effectively closing config.log, so it can be properly (re)opened and
 
20514
# appended to by config.status.  When coming back to configure, we
 
20515
# need to make the FD available again.
 
20516
if test "$no_create" != yes; then
 
20517
  ac_cs_success=:
 
20518
  ac_config_status_args=
 
20519
  test "$silent" = yes &&
 
20520
    ac_config_status_args="$ac_config_status_args --quiet"
 
20521
  exec 5>/dev/null
 
20522
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
20523
  exec 5>>config.log
 
20524
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
20525
  # would make configure fail if this is the last instruction.
 
20526
  $ac_cs_success || { (exit 1); exit 1; }
 
20527
fi
 
20528