OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [configure] - Blame information for rev 478

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
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
  # Pre-4.2 versions of Zsh do 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*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184
do
185
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in #(
189
         /*)
190
           for as_base in sh bash ksh sh5; do
191
             # Try only shells that exist, to save several forks.
192
             as_shell=$as_dir/$as_base
193
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
           done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
        # neutralization value for shells without unset; and this also
214
        # works around shells that cannot unset nonexistent variables.
215
        BASH_ENV=/dev/null
216
        ENV=/dev/null
217
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
        export CONFIG_SHELL
219
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
  else
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233
  fi
234
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243
 
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
# as_fn_unset VAR
248
# ---------------
249
# Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
# as_fn_set_status STATUS
257
# -----------------------
258
# Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} # as_fn_set_status
263
 
264
# as_fn_exit STATUS
265
# -----------------
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} # as_fn_exit
273
 
274
# as_fn_mkdir_p
275
# -------------
276
# Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
         X"$as_dir" : 'X\(//\)[^/]' \| \
294
         X"$as_dir" : 'X\(//\)$' \| \
295
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
            s//\1/
299
            q
300
          }
301
          /^X\(\/\/\)[^/].*/{
302
            s//\1/
303
            q
304
          }
305
          /^X\(\/\/\)$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\).*/{
310
            s//\1/
311
            q
312
          }
313
          s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} # as_fn_mkdir_p
321
# as_fn_append VAR VALUE
322
# ----------------------
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
324
# advantage of any shell optimizations that allow amortized linear growth over
325
# repeated appends, instead of the typical quadratic growth present in naive
326
# implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
# as_fn_arith ARG...
340
# ------------------
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
343
# must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
# as_fn_error ERROR [LINENO LOG_FD]
358
# ---------------------------------
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
# script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} # as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391
 
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
         X"$0" : 'X\(//\)$' \| \
395
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
            s//\1/
399
            q
400
          }
401
          /^X\/\(\/\/\)$/{
402
            s//\1/
403
            q
404
          }
405
          /^X\/\(\/\).*/{
406
            s//\1/
407
            q
408
          }
409
          s/.*/./; q'`
410
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428
    sed '
429
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433
      N
434
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436
      t loop
437
      s/-\n.*//
438
    ' >$as_me.lineno &&
439
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in #(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T=' ';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461
esac
462
 
463
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466
else
467
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469
fi
470
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489
 
490
if mkdir -p . 2>/dev/null; then
491
  as_mkdir_p='mkdir -p "$as_dir"'
492
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
        test -d "$1/.";
509
      else
510
        case $1 in #(
511
        -*)set "./$1";;
512
        esac;
513
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514
        ???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527
 
528
# Check that we are running under the correct shell.
529
SHELL=${CONFIG_SHELL-/bin/sh}
530
 
531
case X$lt_ECHO in
532
X*--fallback-echo)
533
  # Remove one level of quotation (which was required for Make).
534
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535
  ;;
536
esac
537
 
538
ECHO=${lt_ECHO-echo}
539
if test "X$1" = X--no-reexec; then
540
  # Discard the --no-reexec flag, and continue.
541
  shift
542
elif test "X$1" = X--fallback-echo; then
543
  # Avoid inline document here, it may be left over
544
  :
545
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546
  # Yippee, $ECHO works!
547
  :
548
else
549
  # Restart under the correct shell.
550
  exec $SHELL "$0" --no-reexec ${1+"$@"}
551
fi
552
 
553
if test "X$1" = X--fallback-echo; then
554
  # used as fallback echo
555
  shift
556
  cat <<_LT_EOF
557
$*
558
_LT_EOF
559
  exit 0
560
fi
561
 
562
# The HP-UX ksh and POSIX shell print the target directory to stdout
563
# if CDPATH is set.
564
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
 
566
if test -z "$lt_ECHO"; then
567
  if test "X${echo_test_string+set}" != Xset; then
568
    # find a string as large as possible, as long as the shell can cope with it
569
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573
      then
574
        break
575
      fi
576
    done
577
  fi
578
 
579
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581
     test "X$echo_testing_string" = "X$echo_test_string"; then
582
    :
583
  else
584
    # The Solaris, AIX, and Digital Unix default echo programs unquote
585
    # backslashes.  This makes it impossible to quote backslashes using
586
    #   echo "$something" | sed 's/\\/\\\\/g'
587
    #
588
    # So, first we look for a working echo in the user's PATH.
589
 
590
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591
    for dir in $PATH /usr/ucb; do
592
      IFS="$lt_save_ifs"
593
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596
         test "X$echo_testing_string" = "X$echo_test_string"; then
597
        ECHO="$dir/echo"
598
        break
599
      fi
600
    done
601
    IFS="$lt_save_ifs"
602
 
603
    if test "X$ECHO" = Xecho; then
604
      # We didn't find a better echo, so look for alternatives.
605
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607
         test "X$echo_testing_string" = "X$echo_test_string"; then
608
        # This shell has a builtin print -r that does the trick.
609
        ECHO='print -r'
610
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611
           test "X$CONFIG_SHELL" != X/bin/ksh; then
612
        # If we have ksh, try running configure again with it.
613
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614
        export ORIGINAL_CONFIG_SHELL
615
        CONFIG_SHELL=/bin/ksh
616
        export CONFIG_SHELL
617
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618
      else
619
        # Try using printf.
620
        ECHO='printf %s\n'
621
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623
           test "X$echo_testing_string" = "X$echo_test_string"; then
624
          # Cool, printf works
625
          :
626
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627
             test "X$echo_testing_string" = 'X\t' &&
628
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629
             test "X$echo_testing_string" = "X$echo_test_string"; then
630
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631
          export CONFIG_SHELL
632
          SHELL="$CONFIG_SHELL"
633
          export SHELL
634
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
635
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636
             test "X$echo_testing_string" = 'X\t' &&
637
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638
             test "X$echo_testing_string" = "X$echo_test_string"; then
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
        else
641
          # maybe with a smaller string...
642
          prev=:
643
 
644
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646
            then
647
              break
648
            fi
649
            prev="$cmd"
650
          done
651
 
652
          if test "$prev" != 'sed 50q "$0"'; then
653
            echo_test_string=`eval $prev`
654
            export echo_test_string
655
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656
          else
657
            # Oops.  We lost completely, so just stick with echo.
658
            ECHO=echo
659
          fi
660
        fi
661
      fi
662
    fi
663
  fi
664
fi
665
 
666
# Copy echo and quote the copy suitably for passing to libtool from
667
# the Makefile, instead of quoting the original, which is used later.
668
lt_ECHO=$ECHO
669
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671
fi
672
 
673
 
674
 
675
 
676
exec 7<&0 &1
677
 
678
# Name of the host.
679
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680
# so uname gets run too.
681
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
 
683
#
684
# Initializations.
685
#
686
ac_default_prefix=/usr/local
687
ac_clean_files=
688
ac_config_libobj_dir=.
689
LIBOBJS=
690
cross_compiling=no
691
subdirs=
692
MFLAGS=
693
MAKEFLAGS=
694
 
695
# Identity of this package.
696
PACKAGE_NAME=
697
PACKAGE_TARNAME=
698
PACKAGE_VERSION=
699
PACKAGE_STRING=
700
PACKAGE_BUGREPORT=
701
PACKAGE_URL=
702
 
703
ac_unique_file="as.h"
704
# Factoring default headers for most tests.
705
ac_includes_default="\
706
#include 
707
#ifdef HAVE_SYS_TYPES_H
708
# include 
709
#endif
710
#ifdef HAVE_SYS_STAT_H
711
# include 
712
#endif
713
#ifdef STDC_HEADERS
714
# include 
715
# include 
716
#else
717
# ifdef HAVE_STDLIB_H
718
#  include 
719
# endif
720
#endif
721
#ifdef HAVE_STRING_H
722
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723
#  include 
724
# endif
725
# include 
726
#endif
727
#ifdef HAVE_STRINGS_H
728
# include 
729
#endif
730
#ifdef HAVE_INTTYPES_H
731
# include 
732
#endif
733
#ifdef HAVE_STDINT_H
734
# include 
735
#endif
736
#ifdef HAVE_UNISTD_H
737
# include 
738
#endif"
739
 
740
ac_subst_vars='am__EXEEXT_FALSE
741
am__EXEEXT_TRUE
742
LTLIBOBJS
743
LIBOBJS
744
LIBM
745
ALLOCA
746
GENINSRC_NEVER_FALSE
747
GENINSRC_NEVER_TRUE
748
MAINT
749
MAINTAINER_MODE_FALSE
750
MAINTAINER_MODE_TRUE
751
MSGMERGE
752
MSGFMT
753
MKINSTALLDIRS
754
CATOBJEXT
755
GENCAT
756
INSTOBJEXT
757
DATADIRNAME
758
CATALOGS
759
POSUB
760
GMSGFMT
761
XGETTEXT
762
INCINTL
763
LIBINTL_DEP
764
LIBINTL
765
USE_NLS
766
LEXLIB
767
LEX_OUTPUT_ROOT
768
LEX
769
YFLAGS
770
YACC
771
OPCODES_LIB
772
atof
773
install_tooldir
774
te_file
775
obj_format
776
target_cpu_type
777
extra_objects
778
cgen_cpu_prefix
779
GDBINIT
780
NO_WERROR
781
WARN_CFLAGS
782
OTOOL64
783
OTOOL
784
LIPO
785
NMEDIT
786
DSYMUTIL
787
lt_ECHO
788
RANLIB
789
AR
790
OBJDUMP
791
LN_S
792
NM
793
ac_ct_DUMPBIN
794
DUMPBIN
795
LD
796
FGREP
797
SED
798
LIBTOOL
799
EGREP
800
GREP
801
CPP
802
am__fastdepCC_FALSE
803
am__fastdepCC_TRUE
804
CCDEPMODE
805
AMDEPBACKSLASH
806
AMDEP_FALSE
807
AMDEP_TRUE
808
am__quote
809
am__include
810
DEPDIR
811
am__untar
812
am__tar
813
AMTAR
814
am__leading_dot
815
SET_MAKE
816
AWK
817
mkdir_p
818
MKDIR_P
819
INSTALL_STRIP_PROGRAM
820
STRIP
821
install_sh
822
MAKEINFO
823
AUTOHEADER
824
AUTOMAKE
825
AUTOCONF
826
ACLOCAL
827
VERSION
828
PACKAGE
829
CYGPATH_W
830
am__isrc
831
INSTALL_DATA
832
INSTALL_SCRIPT
833
INSTALL_PROGRAM
834
OBJEXT
835
EXEEXT
836
ac_ct_CC
837
CPPFLAGS
838
LDFLAGS
839
CFLAGS
840
CC
841
target_os
842
target_vendor
843
target_cpu
844
target
845
host_os
846
host_vendor
847
host_cpu
848
host
849
build_os
850
build_vendor
851
build_cpu
852
build
853
target_alias
854
host_alias
855
build_alias
856
LIBS
857
ECHO_T
858
ECHO_N
859
ECHO_C
860
DEFS
861
mandir
862
localedir
863
libdir
864
psdir
865
pdfdir
866
dvidir
867
htmldir
868
infodir
869
docdir
870
oldincludedir
871
includedir
872
localstatedir
873
sharedstatedir
874
sysconfdir
875
datadir
876
datarootdir
877
libexecdir
878
sbindir
879
bindir
880
program_transform_name
881
prefix
882
exec_prefix
883
PACKAGE_URL
884
PACKAGE_BUGREPORT
885
PACKAGE_STRING
886
PACKAGE_VERSION
887
PACKAGE_TARNAME
888
PACKAGE_NAME
889
PATH_SEPARATOR
890
SHELL'
891
ac_subst_files=''
892
ac_user_opts='
893
enable_option_checking
894
enable_dependency_tracking
895
enable_largefile
896
enable_shared
897
enable_static
898
with_pic
899
enable_fast_install
900
with_gnu_ld
901
enable_libtool_lock
902
enable_targets
903
enable_checking
904
enable_werror
905
enable_build_warnings
906
enable_nls
907
enable_maintainer_mode
908
'
909
      ac_precious_vars='build_alias
910
host_alias
911
target_alias
912
CC
913
CFLAGS
914
LDFLAGS
915
LIBS
916
CPPFLAGS
917
CPP
918
YACC
919
YFLAGS'
920
 
921
 
922
# Initialize some variables set by options.
923
ac_init_help=
924
ac_init_version=false
925
ac_unrecognized_opts=
926
ac_unrecognized_sep=
927
# The variables have the same names as the options, with
928
# dashes changed to underlines.
929
cache_file=/dev/null
930
exec_prefix=NONE
931
no_create=
932
no_recursion=
933
prefix=NONE
934
program_prefix=NONE
935
program_suffix=NONE
936
program_transform_name=s,x,x,
937
silent=
938
site=
939
srcdir=
940
verbose=
941
x_includes=NONE
942
x_libraries=NONE
943
 
944
# Installation directory options.
945
# These are left unexpanded so users can "make install exec_prefix=/foo"
946
# and all the variables that are supposed to be based on exec_prefix
947
# by default will actually change.
948
# Use braces instead of parens because sh, perl, etc. also accept them.
949
# (The list follows the same order as the GNU Coding Standards.)
950
bindir='${exec_prefix}/bin'
951
sbindir='${exec_prefix}/sbin'
952
libexecdir='${exec_prefix}/libexec'
953
datarootdir='${prefix}/share'
954
datadir='${datarootdir}'
955
sysconfdir='${prefix}/etc'
956
sharedstatedir='${prefix}/com'
957
localstatedir='${prefix}/var'
958
includedir='${prefix}/include'
959
oldincludedir='/usr/include'
960
docdir='${datarootdir}/doc/${PACKAGE}'
961
infodir='${datarootdir}/info'
962
htmldir='${docdir}'
963
dvidir='${docdir}'
964
pdfdir='${docdir}'
965
psdir='${docdir}'
966
libdir='${exec_prefix}/lib'
967
localedir='${datarootdir}/locale'
968
mandir='${datarootdir}/man'
969
 
970
ac_prev=
971
ac_dashdash=
972
for ac_option
973
do
974
  # If the previous option needs an argument, assign it.
975
  if test -n "$ac_prev"; then
976
    eval $ac_prev=\$ac_option
977
    ac_prev=
978
    continue
979
  fi
980
 
981
  case $ac_option in
982
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983
  *)    ac_optarg=yes ;;
984
  esac
985
 
986
  # Accept the important Cygnus configure options, so we can diagnose typos.
987
 
988
  case $ac_dashdash$ac_option in
989
  --)
990
    ac_dashdash=yes ;;
991
 
992
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993
    ac_prev=bindir ;;
994
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995
    bindir=$ac_optarg ;;
996
 
997
  -build | --build | --buil | --bui | --bu)
998
    ac_prev=build_alias ;;
999
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000
    build_alias=$ac_optarg ;;
1001
 
1002
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004
    ac_prev=cache_file ;;
1005
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007
    cache_file=$ac_optarg ;;
1008
 
1009
  --config-cache | -C)
1010
    cache_file=config.cache ;;
1011
 
1012
  -datadir | --datadir | --datadi | --datad)
1013
    ac_prev=datadir ;;
1014
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015
    datadir=$ac_optarg ;;
1016
 
1017
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018
  | --dataroo | --dataro | --datar)
1019
    ac_prev=datarootdir ;;
1020
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022
    datarootdir=$ac_optarg ;;
1023
 
1024
  -disable-* | --disable-*)
1025
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026
    # Reject names that are not valid shell variable names.
1027
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028
      as_fn_error "invalid feature name: $ac_useropt"
1029
    ac_useropt_orig=$ac_useropt
1030
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031
    case $ac_user_opts in
1032
      *"
1033
"enable_$ac_useropt"
1034
"*) ;;
1035
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036
         ac_unrecognized_sep=', ';;
1037
    esac
1038
    eval enable_$ac_useropt=no ;;
1039
 
1040
  -docdir | --docdir | --docdi | --doc | --do)
1041
    ac_prev=docdir ;;
1042
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043
    docdir=$ac_optarg ;;
1044
 
1045
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046
    ac_prev=dvidir ;;
1047
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048
    dvidir=$ac_optarg ;;
1049
 
1050
  -enable-* | --enable-*)
1051
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052
    # Reject names that are not valid shell variable names.
1053
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054
      as_fn_error "invalid feature name: $ac_useropt"
1055
    ac_useropt_orig=$ac_useropt
1056
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057
    case $ac_user_opts in
1058
      *"
1059
"enable_$ac_useropt"
1060
"*) ;;
1061
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062
         ac_unrecognized_sep=', ';;
1063
    esac
1064
    eval enable_$ac_useropt=\$ac_optarg ;;
1065
 
1066
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068
  | --exec | --exe | --ex)
1069
    ac_prev=exec_prefix ;;
1070
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072
  | --exec=* | --exe=* | --ex=*)
1073
    exec_prefix=$ac_optarg ;;
1074
 
1075
  -gas | --gas | --ga | --g)
1076
    # Obsolete; use --with-gas.
1077
    with_gas=yes ;;
1078
 
1079
  -help | --help | --hel | --he | -h)
1080
    ac_init_help=long ;;
1081
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082
    ac_init_help=recursive ;;
1083
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084
    ac_init_help=short ;;
1085
 
1086
  -host | --host | --hos | --ho)
1087
    ac_prev=host_alias ;;
1088
  -host=* | --host=* | --hos=* | --ho=*)
1089
    host_alias=$ac_optarg ;;
1090
 
1091
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092
    ac_prev=htmldir ;;
1093
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094
  | --ht=*)
1095
    htmldir=$ac_optarg ;;
1096
 
1097
  -includedir | --includedir | --includedi | --included | --include \
1098
  | --includ | --inclu | --incl | --inc)
1099
    ac_prev=includedir ;;
1100
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102
    includedir=$ac_optarg ;;
1103
 
1104
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105
    ac_prev=infodir ;;
1106
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107
    infodir=$ac_optarg ;;
1108
 
1109
  -libdir | --libdir | --libdi | --libd)
1110
    ac_prev=libdir ;;
1111
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112
    libdir=$ac_optarg ;;
1113
 
1114
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115
  | --libexe | --libex | --libe)
1116
    ac_prev=libexecdir ;;
1117
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118
  | --libexe=* | --libex=* | --libe=*)
1119
    libexecdir=$ac_optarg ;;
1120
 
1121
  -localedir | --localedir | --localedi | --localed | --locale)
1122
    ac_prev=localedir ;;
1123
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124
    localedir=$ac_optarg ;;
1125
 
1126
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127
  | --localstate | --localstat | --localsta | --localst | --locals)
1128
    ac_prev=localstatedir ;;
1129
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131
    localstatedir=$ac_optarg ;;
1132
 
1133
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134
    ac_prev=mandir ;;
1135
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136
    mandir=$ac_optarg ;;
1137
 
1138
  -nfp | --nfp | --nf)
1139
    # Obsolete; use --without-fp.
1140
    with_fp=no ;;
1141
 
1142
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143
  | --no-cr | --no-c | -n)
1144
    no_create=yes ;;
1145
 
1146
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148
    no_recursion=yes ;;
1149
 
1150
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152
  | --oldin | --oldi | --old | --ol | --o)
1153
    ac_prev=oldincludedir ;;
1154
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157
    oldincludedir=$ac_optarg ;;
1158
 
1159
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160
    ac_prev=prefix ;;
1161
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162
    prefix=$ac_optarg ;;
1163
 
1164
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165
  | --program-pre | --program-pr | --program-p)
1166
    ac_prev=program_prefix ;;
1167
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169
    program_prefix=$ac_optarg ;;
1170
 
1171
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172
  | --program-suf | --program-su | --program-s)
1173
    ac_prev=program_suffix ;;
1174
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176
    program_suffix=$ac_optarg ;;
1177
 
1178
  -program-transform-name | --program-transform-name \
1179
  | --program-transform-nam | --program-transform-na \
1180
  | --program-transform-n | --program-transform- \
1181
  | --program-transform | --program-transfor \
1182
  | --program-transfo | --program-transf \
1183
  | --program-trans | --program-tran \
1184
  | --progr-tra | --program-tr | --program-t)
1185
    ac_prev=program_transform_name ;;
1186
  -program-transform-name=* | --program-transform-name=* \
1187
  | --program-transform-nam=* | --program-transform-na=* \
1188
  | --program-transform-n=* | --program-transform-=* \
1189
  | --program-transform=* | --program-transfor=* \
1190
  | --program-transfo=* | --program-transf=* \
1191
  | --program-trans=* | --program-tran=* \
1192
  | --progr-tra=* | --program-tr=* | --program-t=*)
1193
    program_transform_name=$ac_optarg ;;
1194
 
1195
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196
    ac_prev=pdfdir ;;
1197
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198
    pdfdir=$ac_optarg ;;
1199
 
1200
  -psdir | --psdir | --psdi | --psd | --ps)
1201
    ac_prev=psdir ;;
1202
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203
    psdir=$ac_optarg ;;
1204
 
1205
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206
  | -silent | --silent | --silen | --sile | --sil)
1207
    silent=yes ;;
1208
 
1209
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210
    ac_prev=sbindir ;;
1211
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212
  | --sbi=* | --sb=*)
1213
    sbindir=$ac_optarg ;;
1214
 
1215
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217
  | --sharedst | --shareds | --shared | --share | --shar \
1218
  | --sha | --sh)
1219
    ac_prev=sharedstatedir ;;
1220
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223
  | --sha=* | --sh=*)
1224
    sharedstatedir=$ac_optarg ;;
1225
 
1226
  -site | --site | --sit)
1227
    ac_prev=site ;;
1228
  -site=* | --site=* | --sit=*)
1229
    site=$ac_optarg ;;
1230
 
1231
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232
    ac_prev=srcdir ;;
1233
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234
    srcdir=$ac_optarg ;;
1235
 
1236
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237
  | --syscon | --sysco | --sysc | --sys | --sy)
1238
    ac_prev=sysconfdir ;;
1239
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241
    sysconfdir=$ac_optarg ;;
1242
 
1243
  -target | --target | --targe | --targ | --tar | --ta | --t)
1244
    ac_prev=target_alias ;;
1245
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246
    target_alias=$ac_optarg ;;
1247
 
1248
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249
    verbose=yes ;;
1250
 
1251
  -version | --version | --versio | --versi | --vers | -V)
1252
    ac_init_version=: ;;
1253
 
1254
  -with-* | --with-*)
1255
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256
    # Reject names that are not valid shell variable names.
1257
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258
      as_fn_error "invalid package name: $ac_useropt"
1259
    ac_useropt_orig=$ac_useropt
1260
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261
    case $ac_user_opts in
1262
      *"
1263
"with_$ac_useropt"
1264
"*) ;;
1265
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266
         ac_unrecognized_sep=', ';;
1267
    esac
1268
    eval with_$ac_useropt=\$ac_optarg ;;
1269
 
1270
  -without-* | --without-*)
1271
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272
    # Reject names that are not valid shell variable names.
1273
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274
      as_fn_error "invalid package name: $ac_useropt"
1275
    ac_useropt_orig=$ac_useropt
1276
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277
    case $ac_user_opts in
1278
      *"
1279
"with_$ac_useropt"
1280
"*) ;;
1281
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282
         ac_unrecognized_sep=', ';;
1283
    esac
1284
    eval with_$ac_useropt=no ;;
1285
 
1286
  --x)
1287
    # Obsolete; use --with-x.
1288
    with_x=yes ;;
1289
 
1290
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291
  | --x-incl | --x-inc | --x-in | --x-i)
1292
    ac_prev=x_includes ;;
1293
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295
    x_includes=$ac_optarg ;;
1296
 
1297
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299
    ac_prev=x_libraries ;;
1300
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302
    x_libraries=$ac_optarg ;;
1303
 
1304
  -*) as_fn_error "unrecognized option: \`$ac_option'
1305
Try \`$0 --help' for more information."
1306
    ;;
1307
 
1308
  *=*)
1309
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310
    # Reject names that are not valid shell variable names.
1311
    case $ac_envvar in #(
1312
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1313
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1314
    esac
1315
    eval $ac_envvar=\$ac_optarg
1316
    export $ac_envvar ;;
1317
 
1318
  *)
1319
    # FIXME: should be removed in autoconf 3.0.
1320
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324
    ;;
1325
 
1326
  esac
1327
done
1328
 
1329
if test -n "$ac_prev"; then
1330
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331
  as_fn_error "missing argument to $ac_option"
1332
fi
1333
 
1334
if test -n "$ac_unrecognized_opts"; then
1335
  case $enable_option_checking in
1336
    no) ;;
1337
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1338
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339
  esac
1340
fi
1341
 
1342
# Check all directory arguments for consistency.
1343
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344
                datadir sysconfdir sharedstatedir localstatedir includedir \
1345
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346
                libdir localedir mandir
1347
do
1348
  eval ac_val=\$$ac_var
1349
  # Remove trailing slashes.
1350
  case $ac_val in
1351
    */ )
1352
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353
      eval $ac_var=\$ac_val;;
1354
  esac
1355
  # Be sure to have absolute directory names.
1356
  case $ac_val in
1357
    [\\/$]* | ?:[\\/]* )  continue;;
1358
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359
  esac
1360
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1361
done
1362
 
1363
# There might be people who depend on the old broken behavior: `$host'
1364
# used to hold the argument of --host etc.
1365
# FIXME: To remove some day.
1366
build=$build_alias
1367
host=$host_alias
1368
target=$target_alias
1369
 
1370
# FIXME: To remove some day.
1371
if test "x$host_alias" != x; then
1372
  if test "x$build_alias" = x; then
1373
    cross_compiling=maybe
1374
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375
    If a cross compiler is detected then cross compile mode will be used." >&2
1376
  elif test "x$build_alias" != "x$host_alias"; then
1377
    cross_compiling=yes
1378
  fi
1379
fi
1380
 
1381
ac_tool_prefix=
1382
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
 
1384
test "$silent" = yes && exec 6>/dev/null
1385
 
1386
 
1387
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388
ac_ls_di=`ls -di .` &&
1389
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390
  as_fn_error "working directory cannot be determined"
1391
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392
  as_fn_error "pwd does not report name of working directory"
1393
 
1394
 
1395
# Find the source files, if location was not specified.
1396
if test -z "$srcdir"; then
1397
  ac_srcdir_defaulted=yes
1398
  # Try the directory containing this script, then the parent directory.
1399
  ac_confdir=`$as_dirname -- "$as_myself" ||
1400
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401
         X"$as_myself" : 'X\(//\)[^/]' \| \
1402
         X"$as_myself" : 'X\(//\)$' \| \
1403
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404
$as_echo X"$as_myself" |
1405
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406
            s//\1/
1407
            q
1408
          }
1409
          /^X\(\/\/\)[^/].*/{
1410
            s//\1/
1411
            q
1412
          }
1413
          /^X\(\/\/\)$/{
1414
            s//\1/
1415
            q
1416
          }
1417
          /^X\(\/\).*/{
1418
            s//\1/
1419
            q
1420
          }
1421
          s/.*/./; q'`
1422
  srcdir=$ac_confdir
1423
  if test ! -r "$srcdir/$ac_unique_file"; then
1424
    srcdir=..
1425
  fi
1426
else
1427
  ac_srcdir_defaulted=no
1428
fi
1429
if test ! -r "$srcdir/$ac_unique_file"; then
1430
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1432
fi
1433
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434
ac_abs_confdir=`(
1435
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436
        pwd)`
1437
# When building in place, set srcdir=.
1438
if test "$ac_abs_confdir" = "$ac_pwd"; then
1439
  srcdir=.
1440
fi
1441
# Remove unnecessary trailing slashes from srcdir.
1442
# Double slashes in file names in object file debugging info
1443
# mess up M-x gdb in Emacs.
1444
case $srcdir in
1445
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446
esac
1447
for ac_var in $ac_precious_vars; do
1448
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449
  eval ac_env_${ac_var}_value=\$${ac_var}
1450
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452
done
1453
 
1454
#
1455
# Report the --help message.
1456
#
1457
if test "$ac_init_help" = "long"; then
1458
  # Omit some internal or obsolete options to make the list less imposing.
1459
  # This message is too long to be a string in the A/UX 3.1 sh.
1460
  cat <<_ACEOF
1461
\`configure' configures this package to adapt to many kinds of systems.
1462
 
1463
Usage: $0 [OPTION]... [VAR=VALUE]...
1464
 
1465
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466
VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
 
1468
Defaults for the options are specified in brackets.
1469
 
1470
Configuration:
1471
  -h, --help              display this help and exit
1472
      --help=short        display options specific to this package
1473
      --help=recursive    display the short help of all the included packages
1474
  -V, --version           display version information and exit
1475
  -q, --quiet, --silent   do not print \`checking...' messages
1476
      --cache-file=FILE   cache test results in FILE [disabled]
1477
  -C, --config-cache      alias for \`--cache-file=config.cache'
1478
  -n, --no-create         do not create output files
1479
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
 
1481
Installation directories:
1482
  --prefix=PREFIX         install architecture-independent files in PREFIX
1483
                          [$ac_default_prefix]
1484
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485
                          [PREFIX]
1486
 
1487
By default, \`make install' will install all the files in
1488
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490
for instance \`--prefix=\$HOME'.
1491
 
1492
For better control, use the options below.
1493
 
1494
Fine tuning of the installation directories:
1495
  --bindir=DIR            user executables [EPREFIX/bin]
1496
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1498
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501
  --libdir=DIR            object code libraries [EPREFIX/lib]
1502
  --includedir=DIR        C header files [PREFIX/include]
1503
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1510
  --htmldir=DIR           html documentation [DOCDIR]
1511
  --dvidir=DIR            dvi documentation [DOCDIR]
1512
  --pdfdir=DIR            pdf documentation [DOCDIR]
1513
  --psdir=DIR             ps documentation [DOCDIR]
1514
_ACEOF
1515
 
1516
  cat <<\_ACEOF
1517
 
1518
Program names:
1519
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1520
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1521
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1522
 
1523
System types:
1524
  --build=BUILD     configure for building on BUILD [guessed]
1525
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526
  --target=TARGET   configure for building compilers for TARGET [HOST]
1527
_ACEOF
1528
fi
1529
 
1530
if test -n "$ac_init_help"; then
1531
 
1532
  cat <<\_ACEOF
1533
 
1534
Optional Features:
1535
  --disable-option-checking  ignore unrecognized --enable/--with options
1536
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538
  --disable-dependency-tracking  speeds up one-time build
1539
  --enable-dependency-tracking   do not reject slow dependency extractors
1540
  --disable-largefile     omit support for large files
1541
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1542
  --enable-static[=PKGS]  build static libraries [default=yes]
1543
  --enable-fast-install[=PKGS]
1544
                          optimize for fast installation [default=yes]
1545
  --disable-libtool-lock  avoid locking (might break parallel builds)
1546
  --enable-targets        alternative target configurations besides the primary
1547
  --enable-checking       enable run-time checks
1548
  --enable-werror         treat compile warnings as errors
1549
  --enable-build-warnings enable build-time compiler warnings
1550
  --disable-nls           do not use Native Language Support
1551
  --enable-maintainer-mode  enable make rules and dependencies not useful
1552
                          (and sometimes confusing) to the casual installer
1553
 
1554
Optional Packages:
1555
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557
  --with-pic              try to use only PIC/non-PIC objects [default=use
1558
                          both]
1559
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560
 
1561
Some influential environment variables:
1562
  CC          C compiler command
1563
  CFLAGS      C compiler flags
1564
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1565
              nonstandard directory 
1566
  LIBS        libraries to pass to the linker, e.g. -l
1567
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1568
              you have headers in a nonstandard directory 
1569
  CPP         C preprocessor
1570
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1571
              the first program found out of: `bison -y', `byacc', `yacc'.
1572
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1573
              This script will default YFLAGS to the empty string to avoid a
1574
              default value of `-d' given by some make applications.
1575
 
1576
Use these variables to override the choices made by `configure' or to help
1577
it to find libraries and programs with nonstandard names/locations.
1578
 
1579
Report bugs to the package provider.
1580
_ACEOF
1581
ac_status=$?
1582
fi
1583
 
1584
if test "$ac_init_help" = "recursive"; then
1585
  # If there are subdirs, report their specific --help.
1586
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587
    test -d "$ac_dir" ||
1588
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589
      continue
1590
    ac_builddir=.
1591
 
1592
case "$ac_dir" in
1593
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594
*)
1595
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596
  # A ".." for each directory in $ac_dir_suffix.
1597
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598
  case $ac_top_builddir_sub in
1599
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601
  esac ;;
1602
esac
1603
ac_abs_top_builddir=$ac_pwd
1604
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605
# for backward compatibility:
1606
ac_top_builddir=$ac_top_build_prefix
1607
 
1608
case $srcdir in
1609
  .)  # We are building in place.
1610
    ac_srcdir=.
1611
    ac_top_srcdir=$ac_top_builddir_sub
1612
    ac_abs_top_srcdir=$ac_pwd ;;
1613
  [\\/]* | ?:[\\/]* )  # Absolute name.
1614
    ac_srcdir=$srcdir$ac_dir_suffix;
1615
    ac_top_srcdir=$srcdir
1616
    ac_abs_top_srcdir=$srcdir ;;
1617
  *) # Relative name.
1618
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1620
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621
esac
1622
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
 
1624
    cd "$ac_dir" || { ac_status=$?; continue; }
1625
    # Check for guested configure.
1626
    if test -f "$ac_srcdir/configure.gnu"; then
1627
      echo &&
1628
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629
    elif test -f "$ac_srcdir/configure"; then
1630
      echo &&
1631
      $SHELL "$ac_srcdir/configure" --help=recursive
1632
    else
1633
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634
    fi || ac_status=$?
1635
    cd "$ac_pwd" || { ac_status=$?; break; }
1636
  done
1637
fi
1638
 
1639
test -n "$ac_init_help" && exit $ac_status
1640
if $ac_init_version; then
1641
  cat <<\_ACEOF
1642
configure
1643
generated by GNU Autoconf 2.64
1644
 
1645
Copyright (C) 2009 Free Software Foundation, Inc.
1646
This configure script is free software; the Free Software Foundation
1647
gives unlimited permission to copy, distribute and modify it.
1648
_ACEOF
1649
  exit
1650
fi
1651
 
1652
## ------------------------ ##
1653
## Autoconf initialization. ##
1654
## ------------------------ ##
1655
 
1656
# ac_fn_c_try_compile LINENO
1657
# --------------------------
1658
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1659
ac_fn_c_try_compile ()
1660
{
1661
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662
  rm -f conftest.$ac_objext
1663
  if { { ac_try="$ac_compile"
1664
case "(($ac_try" in
1665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666
  *) ac_try_echo=$ac_try;;
1667
esac
1668
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669
$as_echo "$ac_try_echo"; } >&5
1670
  (eval "$ac_compile") 2>conftest.err
1671
  ac_status=$?
1672
  if test -s conftest.err; then
1673
    grep -v '^ *+' conftest.err >conftest.er1
1674
    cat conftest.er1 >&5
1675
    mv -f conftest.er1 conftest.err
1676
  fi
1677
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678
  test $ac_status = 0; } && {
1679
         test -z "$ac_c_werror_flag" ||
1680
         test ! -s conftest.err
1681
       } && test -s conftest.$ac_objext; then :
1682
  ac_retval=0
1683
else
1684
  $as_echo "$as_me: failed program was:" >&5
1685
sed 's/^/| /' conftest.$ac_ext >&5
1686
 
1687
        ac_retval=1
1688
fi
1689
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690
  return $ac_retval
1691
 
1692
} # ac_fn_c_try_compile
1693
 
1694
# ac_fn_c_try_link LINENO
1695
# -----------------------
1696
# Try to link conftest.$ac_ext, and return whether this succeeded.
1697
ac_fn_c_try_link ()
1698
{
1699
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700
  rm -f conftest.$ac_objext conftest$ac_exeext
1701
  if { { ac_try="$ac_link"
1702
case "(($ac_try" in
1703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704
  *) ac_try_echo=$ac_try;;
1705
esac
1706
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707
$as_echo "$ac_try_echo"; } >&5
1708
  (eval "$ac_link") 2>conftest.err
1709
  ac_status=$?
1710
  if test -s conftest.err; then
1711
    grep -v '^ *+' conftest.err >conftest.er1
1712
    cat conftest.er1 >&5
1713
    mv -f conftest.er1 conftest.err
1714
  fi
1715
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716
  test $ac_status = 0; } && {
1717
         test -z "$ac_c_werror_flag" ||
1718
         test ! -s conftest.err
1719
       } && test -s conftest$ac_exeext && {
1720
         test "$cross_compiling" = yes ||
1721
         $as_test_x conftest$ac_exeext
1722
       }; then :
1723
  ac_retval=0
1724
else
1725
  $as_echo "$as_me: failed program was:" >&5
1726
sed 's/^/| /' conftest.$ac_ext >&5
1727
 
1728
        ac_retval=1
1729
fi
1730
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732
  # interfere with the next link command; also delete a directory that is
1733
  # left behind by Apple's compiler.  We do this before executing the actions.
1734
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
  return $ac_retval
1737
 
1738
} # ac_fn_c_try_link
1739
 
1740
# ac_fn_c_try_cpp LINENO
1741
# ----------------------
1742
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743
ac_fn_c_try_cpp ()
1744
{
1745
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1747
case "(($ac_try" in
1748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749
  *) ac_try_echo=$ac_try;;
1750
esac
1751
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752
$as_echo "$ac_try_echo"; } >&5
1753
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754
  ac_status=$?
1755
  if test -s conftest.err; then
1756
    grep -v '^ *+' conftest.err >conftest.er1
1757
    cat conftest.er1 >&5
1758
    mv -f conftest.er1 conftest.err
1759
  fi
1760
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761
  test $ac_status = 0; } >/dev/null && {
1762
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763
         test ! -s conftest.err
1764
       }; then :
1765
  ac_retval=0
1766
else
1767
  $as_echo "$as_me: failed program was:" >&5
1768
sed 's/^/| /' conftest.$ac_ext >&5
1769
 
1770
    ac_retval=1
1771
fi
1772
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
  return $ac_retval
1774
 
1775
} # ac_fn_c_try_cpp
1776
 
1777
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778
# -------------------------------------------------------
1779
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780
# the include files in INCLUDES and setting the cache variable VAR
1781
# accordingly.
1782
ac_fn_c_check_header_mongrel ()
1783
{
1784
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787
$as_echo_n "checking for $2... " >&6; }
1788
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789
  $as_echo_n "(cached) " >&6
1790
fi
1791
eval ac_res=\$$3
1792
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793
$as_echo "$ac_res" >&6; }
1794
else
1795
  # Is the header compilable?
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797
$as_echo_n "checking $2 usability... " >&6; }
1798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799
/* end confdefs.h.  */
1800
$4
1801
#include <$2>
1802
_ACEOF
1803
if ac_fn_c_try_compile "$LINENO"; then :
1804
  ac_header_compiler=yes
1805
else
1806
  ac_header_compiler=no
1807
fi
1808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810
$as_echo "$ac_header_compiler" >&6; }
1811
 
1812
# Is the header present?
1813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814
$as_echo_n "checking $2 presence... " >&6; }
1815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816
/* end confdefs.h.  */
1817
#include <$2>
1818
_ACEOF
1819
if ac_fn_c_try_cpp "$LINENO"; then :
1820
  ac_header_preproc=yes
1821
else
1822
  ac_header_preproc=no
1823
fi
1824
rm -f conftest.err conftest.$ac_ext
1825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826
$as_echo "$ac_header_preproc" >&6; }
1827
 
1828
# So?  What about this header?
1829
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830
  yes:no: )
1831
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835
    ;;
1836
  no:yes:* )
1837
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1840
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1841
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1844
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1845
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847
    ;;
1848
esac
1849
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850
$as_echo_n "checking for $2... " >&6; }
1851
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1852
  $as_echo_n "(cached) " >&6
1853
else
1854
  eval "$3=\$ac_header_compiler"
1855
fi
1856
eval ac_res=\$$3
1857
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858
$as_echo "$ac_res" >&6; }
1859
fi
1860
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861
 
1862
} # ac_fn_c_check_header_mongrel
1863
 
1864
# ac_fn_c_try_run LINENO
1865
# ----------------------
1866
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867
# that executables *can* be run.
1868
ac_fn_c_try_run ()
1869
{
1870
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871
  if { { ac_try="$ac_link"
1872
case "(($ac_try" in
1873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874
  *) ac_try_echo=$ac_try;;
1875
esac
1876
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877
$as_echo "$ac_try_echo"; } >&5
1878
  (eval "$ac_link") 2>&5
1879
  ac_status=$?
1880
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882
  { { case "(($ac_try" in
1883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884
  *) ac_try_echo=$ac_try;;
1885
esac
1886
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887
$as_echo "$ac_try_echo"; } >&5
1888
  (eval "$ac_try") 2>&5
1889
  ac_status=$?
1890
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891
  test $ac_status = 0; }; }; then :
1892
  ac_retval=0
1893
else
1894
  $as_echo "$as_me: program exited with status $ac_status" >&5
1895
       $as_echo "$as_me: failed program was:" >&5
1896
sed 's/^/| /' conftest.$ac_ext >&5
1897
 
1898
       ac_retval=$ac_status
1899
fi
1900
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
  return $ac_retval
1903
 
1904
} # ac_fn_c_try_run
1905
 
1906
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907
# -------------------------------------------------------
1908
# Tests whether HEADER exists and can be compiled using the include files in
1909
# INCLUDES, setting the cache variable VAR accordingly.
1910
ac_fn_c_check_header_compile ()
1911
{
1912
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914
$as_echo_n "checking for $2... " >&6; }
1915
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916
  $as_echo_n "(cached) " >&6
1917
else
1918
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919
/* end confdefs.h.  */
1920
$4
1921
#include <$2>
1922
_ACEOF
1923
if ac_fn_c_try_compile "$LINENO"; then :
1924
  eval "$3=yes"
1925
else
1926
  eval "$3=no"
1927
fi
1928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929
fi
1930
eval ac_res=\$$3
1931
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932
$as_echo "$ac_res" >&6; }
1933
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934
 
1935
} # ac_fn_c_check_header_compile
1936
 
1937
# ac_fn_c_check_func LINENO FUNC VAR
1938
# ----------------------------------
1939
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940
ac_fn_c_check_func ()
1941
{
1942
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944
$as_echo_n "checking for $2... " >&6; }
1945
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946
  $as_echo_n "(cached) " >&6
1947
else
1948
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949
/* end confdefs.h.  */
1950
/* Define $2 to an innocuous variant, in case  declares $2.
1951
   For example, HP-UX 11i  declares gettimeofday.  */
1952
#define $2 innocuous_$2
1953
 
1954
/* System header to define __stub macros and hopefully few prototypes,
1955
    which can conflict with char $2 (); below.
1956
    Prefer  to  if __STDC__ is defined, since
1957
     exists even on freestanding compilers.  */
1958
 
1959
#ifdef __STDC__
1960
# include 
1961
#else
1962
# include 
1963
#endif
1964
 
1965
#undef $2
1966
 
1967
/* Override any GCC internal prototype to avoid an error.
1968
   Use char because int might match the return type of a GCC
1969
   builtin and then its argument prototype would still apply.  */
1970
#ifdef __cplusplus
1971
extern "C"
1972
#endif
1973
char $2 ();
1974
/* The GNU C library defines this for functions which it implements
1975
    to always fail with ENOSYS.  Some functions are actually named
1976
    something starting with __ and the normal name is an alias.  */
1977
#if defined __stub_$2 || defined __stub___$2
1978
choke me
1979
#endif
1980
 
1981
int
1982
main ()
1983
{
1984
return $2 ();
1985
  ;
1986
  return 0;
1987
}
1988
_ACEOF
1989
if ac_fn_c_try_link "$LINENO"; then :
1990
  eval "$3=yes"
1991
else
1992
  eval "$3=no"
1993
fi
1994
rm -f core conftest.err conftest.$ac_objext \
1995
    conftest$ac_exeext conftest.$ac_ext
1996
fi
1997
eval ac_res=\$$3
1998
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999
$as_echo "$ac_res" >&6; }
2000
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001
 
2002
} # ac_fn_c_check_func
2003
 
2004
# ac_fn_c_check_decl LINENO SYMBOL VAR
2005
# ------------------------------------
2006
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2007
ac_fn_c_check_decl ()
2008
{
2009
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2011
$as_echo_n "checking whether $2 is declared... " >&6; }
2012
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013
  $as_echo_n "(cached) " >&6
2014
else
2015
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016
/* end confdefs.h.  */
2017
$4
2018
int
2019
main ()
2020
{
2021
#ifndef $2
2022
  (void) $2;
2023
#endif
2024
 
2025
  ;
2026
  return 0;
2027
}
2028
_ACEOF
2029
if ac_fn_c_try_compile "$LINENO"; then :
2030
  eval "$3=yes"
2031
else
2032
  eval "$3=no"
2033
fi
2034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035
fi
2036
eval ac_res=\$$3
2037
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038
$as_echo "$ac_res" >&6; }
2039
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040
 
2041
} # ac_fn_c_check_decl
2042
cat >config.log <<_ACEOF
2043
This file contains any messages produced by compilers while
2044
running configure, to aid debugging if configure makes a mistake.
2045
 
2046
It was created by $as_me, which was
2047
generated by GNU Autoconf 2.64.  Invocation command line was
2048
 
2049
  $ $0 $@
2050
 
2051
_ACEOF
2052
exec 5>>config.log
2053
{
2054
cat <<_ASUNAME
2055
## --------- ##
2056
## Platform. ##
2057
## --------- ##
2058
 
2059
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064
 
2065
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2067
 
2068
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2069
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2070
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2072
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2073
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2074
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2075
 
2076
_ASUNAME
2077
 
2078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079
for as_dir in $PATH
2080
do
2081
  IFS=$as_save_IFS
2082
  test -z "$as_dir" && as_dir=.
2083
    $as_echo "PATH: $as_dir"
2084
  done
2085
IFS=$as_save_IFS
2086
 
2087
} >&5
2088
 
2089
cat >&5 <<_ACEOF
2090
 
2091
 
2092
## ----------- ##
2093
## Core tests. ##
2094
## ----------- ##
2095
 
2096
_ACEOF
2097
 
2098
 
2099
# Keep a trace of the command line.
2100
# Strip out --no-create and --no-recursion so they do not pile up.
2101
# Strip out --silent because we don't want to record it for future runs.
2102
# Also quote any args containing shell meta-characters.
2103
# Make two passes to allow for proper duplicate-argument suppression.
2104
ac_configure_args=
2105
ac_configure_args0=
2106
ac_configure_args1=
2107
ac_must_keep_next=false
2108
for ac_pass in 1 2
2109
do
2110
  for ac_arg
2111
  do
2112
    case $ac_arg in
2113
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115
    | -silent | --silent | --silen | --sile | --sil)
2116
      continue ;;
2117
    *\'*)
2118
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119
    esac
2120
    case $ac_pass in
2121
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122
    2)
2123
      as_fn_append ac_configure_args1 " '$ac_arg'"
2124
      if test $ac_must_keep_next = true; then
2125
        ac_must_keep_next=false # Got value, back to normal.
2126
      else
2127
        case $ac_arg in
2128
          *=* | --config-cache | -C | -disable-* | --disable-* \
2129
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131
          | -with-* | --with-* | -without-* | --without-* | --x)
2132
            case "$ac_configure_args0 " in
2133
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2134
            esac
2135
            ;;
2136
          -* ) ac_must_keep_next=true ;;
2137
        esac
2138
      fi
2139
      as_fn_append ac_configure_args " '$ac_arg'"
2140
      ;;
2141
    esac
2142
  done
2143
done
2144
{ ac_configure_args0=; unset ac_configure_args0;}
2145
{ ac_configure_args1=; unset ac_configure_args1;}
2146
 
2147
# When interrupted or exit'd, cleanup temporary files, and complete
2148
# config.log.  We remove comments because anyway the quotes in there
2149
# would cause problems or look ugly.
2150
# WARNING: Use '\'' to represent an apostrophe within the trap.
2151
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152
trap 'exit_status=$?
2153
  # Save into config.log some information that might help in debugging.
2154
  {
2155
    echo
2156
 
2157
    cat <<\_ASBOX
2158
## ---------------- ##
2159
## Cache variables. ##
2160
## ---------------- ##
2161
_ASBOX
2162
    echo
2163
    # The following way of writing the cache mishandles newlines in values,
2164
(
2165
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166
    eval ac_val=\$$ac_var
2167
    case $ac_val in #(
2168
    *${as_nl}*)
2169
      case $ac_var in #(
2170
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172
      esac
2173
      case $ac_var in #(
2174
      _ | IFS | as_nl) ;; #(
2175
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176
      *) { eval $ac_var=; unset $ac_var;} ;;
2177
      esac ;;
2178
    esac
2179
  done
2180
  (set) 2>&1 |
2181
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182
    *${as_nl}ac_space=\ *)
2183
      sed -n \
2184
        "s/'\''/'\''\\\\'\'''\''/g;
2185
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186
      ;; #(
2187
    *)
2188
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189
      ;;
2190
    esac |
2191
    sort
2192
)
2193
    echo
2194
 
2195
    cat <<\_ASBOX
2196
## ----------------- ##
2197
## Output variables. ##
2198
## ----------------- ##
2199
_ASBOX
2200
    echo
2201
    for ac_var in $ac_subst_vars
2202
    do
2203
      eval ac_val=\$$ac_var
2204
      case $ac_val in
2205
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206
      esac
2207
      $as_echo "$ac_var='\''$ac_val'\''"
2208
    done | sort
2209
    echo
2210
 
2211
    if test -n "$ac_subst_files"; then
2212
      cat <<\_ASBOX
2213
## ------------------- ##
2214
## File substitutions. ##
2215
## ------------------- ##
2216
_ASBOX
2217
      echo
2218
      for ac_var in $ac_subst_files
2219
      do
2220
        eval ac_val=\$$ac_var
2221
        case $ac_val in
2222
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223
        esac
2224
        $as_echo "$ac_var='\''$ac_val'\''"
2225
      done | sort
2226
      echo
2227
    fi
2228
 
2229
    if test -s confdefs.h; then
2230
      cat <<\_ASBOX
2231
## ----------- ##
2232
## confdefs.h. ##
2233
## ----------- ##
2234
_ASBOX
2235
      echo
2236
      cat confdefs.h
2237
      echo
2238
    fi
2239
    test "$ac_signal" != 0 &&
2240
      $as_echo "$as_me: caught signal $ac_signal"
2241
    $as_echo "$as_me: exit $exit_status"
2242
  } >&5
2243
  rm -f core *.core core.conftest.* &&
2244
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2245
    exit $exit_status
2246
' 0
2247
for ac_signal in 1 2 13 15; do
2248
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249
done
2250
ac_signal=0
2251
 
2252
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2253
rm -f -r conftest* confdefs.h
2254
 
2255
$as_echo "/* confdefs.h */" > confdefs.h
2256
 
2257
# Predefined preprocessor variables.
2258
 
2259
cat >>confdefs.h <<_ACEOF
2260
#define PACKAGE_NAME "$PACKAGE_NAME"
2261
_ACEOF
2262
 
2263
cat >>confdefs.h <<_ACEOF
2264
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265
_ACEOF
2266
 
2267
cat >>confdefs.h <<_ACEOF
2268
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2269
_ACEOF
2270
 
2271
cat >>confdefs.h <<_ACEOF
2272
#define PACKAGE_STRING "$PACKAGE_STRING"
2273
_ACEOF
2274
 
2275
cat >>confdefs.h <<_ACEOF
2276
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277
_ACEOF
2278
 
2279
cat >>confdefs.h <<_ACEOF
2280
#define PACKAGE_URL "$PACKAGE_URL"
2281
_ACEOF
2282
 
2283
 
2284
# Let the site file select an alternate cache file if it wants to.
2285
# Prefer an explicitly selected file to automatically selected ones.
2286
ac_site_file1=NONE
2287
ac_site_file2=NONE
2288
if test -n "$CONFIG_SITE"; then
2289
  ac_site_file1=$CONFIG_SITE
2290
elif test "x$prefix" != xNONE; then
2291
  ac_site_file1=$prefix/share/config.site
2292
  ac_site_file2=$prefix/etc/config.site
2293
else
2294
  ac_site_file1=$ac_default_prefix/share/config.site
2295
  ac_site_file2=$ac_default_prefix/etc/config.site
2296
fi
2297
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2298
do
2299
  test "x$ac_site_file" = xNONE && continue
2300
  if test -r "$ac_site_file"; then
2301
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2302
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2303
    sed 's/^/| /' "$ac_site_file" >&5
2304
    . "$ac_site_file"
2305
  fi
2306
done
2307
 
2308
if test -r "$cache_file"; then
2309
  # Some versions of bash will fail to source /dev/null (special
2310
  # files actually), so we avoid doing that.
2311
  if test -f "$cache_file"; then
2312
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313
$as_echo "$as_me: loading cache $cache_file" >&6;}
2314
    case $cache_file in
2315
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316
      *)                      . "./$cache_file";;
2317
    esac
2318
  fi
2319
else
2320
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321
$as_echo "$as_me: creating cache $cache_file" >&6;}
2322
  >$cache_file
2323
fi
2324
 
2325
# Check that the precious variables saved in the cache have kept the same
2326
# value.
2327
ac_cache_corrupted=false
2328
for ac_var in $ac_precious_vars; do
2329
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330
  eval ac_new_set=\$ac_env_${ac_var}_set
2331
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332
  eval ac_new_val=\$ac_env_${ac_var}_value
2333
  case $ac_old_set,$ac_new_set in
2334
    set,)
2335
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337
      ac_cache_corrupted=: ;;
2338
    ,set)
2339
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341
      ac_cache_corrupted=: ;;
2342
    ,);;
2343
    *)
2344
      if test "x$ac_old_val" != "x$ac_new_val"; then
2345
        # differences in whitespace do not lead to failure.
2346
        ac_old_val_w=`echo x $ac_old_val`
2347
        ac_new_val_w=`echo x $ac_new_val`
2348
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351
          ac_cache_corrupted=:
2352
        else
2353
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355
          eval $ac_var=\$ac_old_val
2356
        fi
2357
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2358
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2359
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2360
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2361
      fi;;
2362
  esac
2363
  # Pass precious variables to config.status.
2364
  if test "$ac_new_set" = set; then
2365
    case $ac_new_val in
2366
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367
    *) ac_arg=$ac_var=$ac_new_val ;;
2368
    esac
2369
    case " $ac_configure_args " in
2370
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2371
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372
    esac
2373
  fi
2374
done
2375
if $ac_cache_corrupted; then
2376
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2381
fi
2382
## -------------------- ##
2383
## Main body of script. ##
2384
## -------------------- ##
2385
 
2386
ac_ext=c
2387
ac_cpp='$CPP $CPPFLAGS'
2388
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391
 
2392
 
2393
 
2394
 
2395
 
2396
 
2397
 
2398
ac_aux_dir=
2399
for ac_dir in .. "$srcdir"/..; do
2400
  for ac_t in install-sh install.sh shtool; do
2401
    if test -f "$ac_dir/$ac_t"; then
2402
      ac_aux_dir=$ac_dir
2403
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2404
      break 2
2405
    fi
2406
  done
2407
done
2408
if test -z "$ac_aux_dir"; then
2409
  as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2410
fi
2411
 
2412
# These three variables are undocumented and unsupported,
2413
# and are intended to be withdrawn in a future Autoconf release.
2414
# They can cause serious problems if a builder's source tree is in a directory
2415
# whose full name contains unusual characters.
2416
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2417
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2418
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2419
 
2420
 
2421
# Make sure we can run config.sub.
2422
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2423
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2424
 
2425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2426
$as_echo_n "checking build system type... " >&6; }
2427
if test "${ac_cv_build+set}" = set; then :
2428
  $as_echo_n "(cached) " >&6
2429
else
2430
  ac_build_alias=$build_alias
2431
test "x$ac_build_alias" = x &&
2432
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2433
test "x$ac_build_alias" = x &&
2434
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2435
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2436
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2437
 
2438
fi
2439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2440
$as_echo "$ac_cv_build" >&6; }
2441
case $ac_cv_build in
2442
*-*-*) ;;
2443
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2444
esac
2445
build=$ac_cv_build
2446
ac_save_IFS=$IFS; IFS='-'
2447
set x $ac_cv_build
2448
shift
2449
build_cpu=$1
2450
build_vendor=$2
2451
shift; shift
2452
# Remember, the first character of IFS is used to create $*,
2453
# except with old shells:
2454
build_os=$*
2455
IFS=$ac_save_IFS
2456
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2457
 
2458
 
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2460
$as_echo_n "checking host system type... " >&6; }
2461
if test "${ac_cv_host+set}" = set; then :
2462
  $as_echo_n "(cached) " >&6
2463
else
2464
  if test "x$host_alias" = x; then
2465
  ac_cv_host=$ac_cv_build
2466
else
2467
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2468
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2469
fi
2470
 
2471
fi
2472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2473
$as_echo "$ac_cv_host" >&6; }
2474
case $ac_cv_host in
2475
*-*-*) ;;
2476
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2477
esac
2478
host=$ac_cv_host
2479
ac_save_IFS=$IFS; IFS='-'
2480
set x $ac_cv_host
2481
shift
2482
host_cpu=$1
2483
host_vendor=$2
2484
shift; shift
2485
# Remember, the first character of IFS is used to create $*,
2486
# except with old shells:
2487
host_os=$*
2488
IFS=$ac_save_IFS
2489
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2490
 
2491
 
2492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2493
$as_echo_n "checking target system type... " >&6; }
2494
if test "${ac_cv_target+set}" = set; then :
2495
  $as_echo_n "(cached) " >&6
2496
else
2497
  if test "x$target_alias" = x; then
2498
  ac_cv_target=$ac_cv_host
2499
else
2500
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2501
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2502
fi
2503
 
2504
fi
2505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2506
$as_echo "$ac_cv_target" >&6; }
2507
case $ac_cv_target in
2508
*-*-*) ;;
2509
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2510
esac
2511
target=$ac_cv_target
2512
ac_save_IFS=$IFS; IFS='-'
2513
set x $ac_cv_target
2514
shift
2515
target_cpu=$1
2516
target_vendor=$2
2517
shift; shift
2518
# Remember, the first character of IFS is used to create $*,
2519
# except with old shells:
2520
target_os=$*
2521
IFS=$ac_save_IFS
2522
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2523
 
2524
 
2525
# The aliases save the names the user supplied, while $host etc.
2526
# will get canonicalized.
2527
test -n "$target_alias" &&
2528
  test "$program_prefix$program_suffix$program_transform_name" = \
2529
    NONENONEs,x,x, &&
2530
  program_prefix=${target_alias}-
2531
ac_ext=c
2532
ac_cpp='$CPP $CPPFLAGS'
2533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
if test -n "$ac_tool_prefix"; then
2537
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2538
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540
$as_echo_n "checking for $ac_word... " >&6; }
2541
if test "${ac_cv_prog_CC+set}" = set; then :
2542
  $as_echo_n "(cached) " >&6
2543
else
2544
  if test -n "$CC"; then
2545
  ac_cv_prog_CC="$CC" # Let the user override the test.
2546
else
2547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548
for as_dir in $PATH
2549
do
2550
  IFS=$as_save_IFS
2551
  test -z "$as_dir" && as_dir=.
2552
    for ac_exec_ext in '' $ac_executable_extensions; do
2553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2555
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556
    break 2
2557
  fi
2558
done
2559
  done
2560
IFS=$as_save_IFS
2561
 
2562
fi
2563
fi
2564
CC=$ac_cv_prog_CC
2565
if test -n "$CC"; then
2566
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2567
$as_echo "$CC" >&6; }
2568
else
2569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570
$as_echo "no" >&6; }
2571
fi
2572
 
2573
 
2574
fi
2575
if test -z "$ac_cv_prog_CC"; then
2576
  ac_ct_CC=$CC
2577
  # Extract the first word of "gcc", so it can be a program name with args.
2578
set dummy gcc; ac_word=$2
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580
$as_echo_n "checking for $ac_word... " >&6; }
2581
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2582
  $as_echo_n "(cached) " >&6
2583
else
2584
  if test -n "$ac_ct_CC"; then
2585
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586
else
2587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588
for as_dir in $PATH
2589
do
2590
  IFS=$as_save_IFS
2591
  test -z "$as_dir" && as_dir=.
2592
    for ac_exec_ext in '' $ac_executable_extensions; do
2593
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594
    ac_cv_prog_ac_ct_CC="gcc"
2595
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596
    break 2
2597
  fi
2598
done
2599
  done
2600
IFS=$as_save_IFS
2601
 
2602
fi
2603
fi
2604
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605
if test -n "$ac_ct_CC"; then
2606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2607
$as_echo "$ac_ct_CC" >&6; }
2608
else
2609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610
$as_echo "no" >&6; }
2611
fi
2612
 
2613
  if test "x$ac_ct_CC" = x; then
2614
    CC=""
2615
  else
2616
    case $cross_compiling:$ac_tool_warned in
2617
yes:)
2618
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620
ac_tool_warned=yes ;;
2621
esac
2622
    CC=$ac_ct_CC
2623
  fi
2624
else
2625
  CC="$ac_cv_prog_CC"
2626
fi
2627
 
2628
if test -z "$CC"; then
2629
          if test -n "$ac_tool_prefix"; then
2630
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2631
set dummy ${ac_tool_prefix}cc; ac_word=$2
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633
$as_echo_n "checking for $ac_word... " >&6; }
2634
if test "${ac_cv_prog_CC+set}" = set; then :
2635
  $as_echo_n "(cached) " >&6
2636
else
2637
  if test -n "$CC"; then
2638
  ac_cv_prog_CC="$CC" # Let the user override the test.
2639
else
2640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641
for as_dir in $PATH
2642
do
2643
  IFS=$as_save_IFS
2644
  test -z "$as_dir" && as_dir=.
2645
    for ac_exec_ext in '' $ac_executable_extensions; do
2646
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2648
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649
    break 2
2650
  fi
2651
done
2652
  done
2653
IFS=$as_save_IFS
2654
 
2655
fi
2656
fi
2657
CC=$ac_cv_prog_CC
2658
if test -n "$CC"; then
2659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660
$as_echo "$CC" >&6; }
2661
else
2662
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663
$as_echo "no" >&6; }
2664
fi
2665
 
2666
 
2667
  fi
2668
fi
2669
if test -z "$CC"; then
2670
  # Extract the first word of "cc", so it can be a program name with args.
2671
set dummy cc; ac_word=$2
2672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673
$as_echo_n "checking for $ac_word... " >&6; }
2674
if test "${ac_cv_prog_CC+set}" = set; then :
2675
  $as_echo_n "(cached) " >&6
2676
else
2677
  if test -n "$CC"; then
2678
  ac_cv_prog_CC="$CC" # Let the user override the test.
2679
else
2680
  ac_prog_rejected=no
2681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682
for as_dir in $PATH
2683
do
2684
  IFS=$as_save_IFS
2685
  test -z "$as_dir" && as_dir=.
2686
    for ac_exec_ext in '' $ac_executable_extensions; do
2687
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2689
       ac_prog_rejected=yes
2690
       continue
2691
     fi
2692
    ac_cv_prog_CC="cc"
2693
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694
    break 2
2695
  fi
2696
done
2697
  done
2698
IFS=$as_save_IFS
2699
 
2700
if test $ac_prog_rejected = yes; then
2701
  # We found a bogon in the path, so make sure we never use it.
2702
  set dummy $ac_cv_prog_CC
2703
  shift
2704
  if test $# != 0; then
2705
    # We chose a different compiler from the bogus one.
2706
    # However, it has the same basename, so the bogon will be chosen
2707
    # first if we set CC to just the basename; use the full file name.
2708
    shift
2709
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2710
  fi
2711
fi
2712
fi
2713
fi
2714
CC=$ac_cv_prog_CC
2715
if test -n "$CC"; then
2716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717
$as_echo "$CC" >&6; }
2718
else
2719
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720
$as_echo "no" >&6; }
2721
fi
2722
 
2723
 
2724
fi
2725
if test -z "$CC"; then
2726
  if test -n "$ac_tool_prefix"; then
2727
  for ac_prog in cl.exe
2728
  do
2729
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732
$as_echo_n "checking for $ac_word... " >&6; }
2733
if test "${ac_cv_prog_CC+set}" = set; then :
2734
  $as_echo_n "(cached) " >&6
2735
else
2736
  if test -n "$CC"; then
2737
  ac_cv_prog_CC="$CC" # Let the user override the test.
2738
else
2739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740
for as_dir in $PATH
2741
do
2742
  IFS=$as_save_IFS
2743
  test -z "$as_dir" && as_dir=.
2744
    for ac_exec_ext in '' $ac_executable_extensions; do
2745
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2747
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748
    break 2
2749
  fi
2750
done
2751
  done
2752
IFS=$as_save_IFS
2753
 
2754
fi
2755
fi
2756
CC=$ac_cv_prog_CC
2757
if test -n "$CC"; then
2758
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759
$as_echo "$CC" >&6; }
2760
else
2761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762
$as_echo "no" >&6; }
2763
fi
2764
 
2765
 
2766
    test -n "$CC" && break
2767
  done
2768
fi
2769
if test -z "$CC"; then
2770
  ac_ct_CC=$CC
2771
  for ac_prog in cl.exe
2772
do
2773
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2774
set dummy $ac_prog; ac_word=$2
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776
$as_echo_n "checking for $ac_word... " >&6; }
2777
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2778
  $as_echo_n "(cached) " >&6
2779
else
2780
  if test -n "$ac_ct_CC"; then
2781
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782
else
2783
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784
for as_dir in $PATH
2785
do
2786
  IFS=$as_save_IFS
2787
  test -z "$as_dir" && as_dir=.
2788
    for ac_exec_ext in '' $ac_executable_extensions; do
2789
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790
    ac_cv_prog_ac_ct_CC="$ac_prog"
2791
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792
    break 2
2793
  fi
2794
done
2795
  done
2796
IFS=$as_save_IFS
2797
 
2798
fi
2799
fi
2800
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801
if test -n "$ac_ct_CC"; then
2802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2803
$as_echo "$ac_ct_CC" >&6; }
2804
else
2805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806
$as_echo "no" >&6; }
2807
fi
2808
 
2809
 
2810
  test -n "$ac_ct_CC" && break
2811
done
2812
 
2813
  if test "x$ac_ct_CC" = x; then
2814
    CC=""
2815
  else
2816
    case $cross_compiling:$ac_tool_warned in
2817
yes:)
2818
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820
ac_tool_warned=yes ;;
2821
esac
2822
    CC=$ac_ct_CC
2823
  fi
2824
fi
2825
 
2826
fi
2827
 
2828
 
2829
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831
as_fn_error "no acceptable C compiler found in \$PATH
2832
See \`config.log' for more details." "$LINENO" 5; }
2833
 
2834
# Provide some information about the compiler.
2835
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2836
set X $ac_compile
2837
ac_compiler=$2
2838
for ac_option in --version -v -V -qversion; do
2839
  { { ac_try="$ac_compiler $ac_option >&5"
2840
case "(($ac_try" in
2841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842
  *) ac_try_echo=$ac_try;;
2843
esac
2844
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845
$as_echo "$ac_try_echo"; } >&5
2846
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2847
  ac_status=$?
2848
  if test -s conftest.err; then
2849
    sed '10a\
2850
... rest of stderr output deleted ...
2851
         10q' conftest.err >conftest.er1
2852
    cat conftest.er1 >&5
2853
    rm -f conftest.er1 conftest.err
2854
  fi
2855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856
  test $ac_status = 0; }
2857
done
2858
 
2859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860
/* end confdefs.h.  */
2861
 
2862
int
2863
main ()
2864
{
2865
 
2866
  ;
2867
  return 0;
2868
}
2869
_ACEOF
2870
ac_clean_files_save=$ac_clean_files
2871
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2872
# Try to create an executable without -o first, disregard a.out.
2873
# It will help us diagnose broken compilers, and finding out an intuition
2874
# of exeext.
2875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2876
$as_echo_n "checking for C compiler default output file name... " >&6; }
2877
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2878
 
2879
# The possible output files:
2880
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2881
 
2882
ac_rmfiles=
2883
for ac_file in $ac_files
2884
do
2885
  case $ac_file in
2886
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2888
  esac
2889
done
2890
rm -f $ac_rmfiles
2891
 
2892
if { { ac_try="$ac_link_default"
2893
case "(($ac_try" in
2894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895
  *) ac_try_echo=$ac_try;;
2896
esac
2897
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898
$as_echo "$ac_try_echo"; } >&5
2899
  (eval "$ac_link_default") 2>&5
2900
  ac_status=$?
2901
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902
  test $ac_status = 0; }; then :
2903
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2906
# so that the user can short-circuit this test for compilers unknown to
2907
# Autoconf.
2908
for ac_file in $ac_files ''
2909
do
2910
  test -f "$ac_file" || continue
2911
  case $ac_file in
2912
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2913
        ;;
2914
    [ab].out )
2915
        # We found the default executable, but exeext='' is most
2916
        # certainly right.
2917
        break;;
2918
    *.* )
2919
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2920
        then :; else
2921
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922
        fi
2923
        # We set ac_cv_exeext here because the later test for it is not
2924
        # safe: cross compilers may not add the suffix if given an `-o'
2925
        # argument, so we may need to know it at that point already.
2926
        # Even if this section looks crufty: it has the advantage of
2927
        # actually working.
2928
        break;;
2929
    * )
2930
        break;;
2931
  esac
2932
done
2933
test "$ac_cv_exeext" = no && ac_cv_exeext=
2934
 
2935
else
2936
  ac_file=''
2937
fi
2938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2939
$as_echo "$ac_file" >&6; }
2940
if test -z "$ac_file"; then :
2941
  $as_echo "$as_me: failed program was:" >&5
2942
sed 's/^/| /' conftest.$ac_ext >&5
2943
 
2944
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946
{ as_fn_set_status 77
2947
as_fn_error "C compiler cannot create executables
2948
See \`config.log' for more details." "$LINENO" 5; }; }
2949
fi
2950
ac_exeext=$ac_cv_exeext
2951
 
2952
# Check that the compiler produces executables we can run.  If not, either
2953
# the compiler is broken, or we cross compile.
2954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2955
$as_echo_n "checking whether the C compiler works... " >&6; }
2956
# If not cross compiling, check that we can run a simple program.
2957
if test "$cross_compiling" != yes; then
2958
  if { ac_try='./$ac_file'
2959
  { { case "(($ac_try" in
2960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961
  *) ac_try_echo=$ac_try;;
2962
esac
2963
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964
$as_echo "$ac_try_echo"; } >&5
2965
  (eval "$ac_try") 2>&5
2966
  ac_status=$?
2967
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968
  test $ac_status = 0; }; }; then
2969
    cross_compiling=no
2970
  else
2971
    if test "$cross_compiling" = maybe; then
2972
        cross_compiling=yes
2973
    else
2974
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976
as_fn_error "cannot run C compiled programs.
2977
If you meant to cross compile, use \`--host'.
2978
See \`config.log' for more details." "$LINENO" 5; }
2979
    fi
2980
  fi
2981
fi
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983
$as_echo "yes" >&6; }
2984
 
2985
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2986
ac_clean_files=$ac_clean_files_save
2987
# Check that the compiler produces executables we can run.  If not, either
2988
# the compiler is broken, or we cross compile.
2989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2990
$as_echo_n "checking whether we are cross compiling... " >&6; }
2991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2992
$as_echo "$cross_compiling" >&6; }
2993
 
2994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2995
$as_echo_n "checking for suffix of executables... " >&6; }
2996
if { { ac_try="$ac_link"
2997
case "(($ac_try" in
2998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999
  *) ac_try_echo=$ac_try;;
3000
esac
3001
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002
$as_echo "$ac_try_echo"; } >&5
3003
  (eval "$ac_link") 2>&5
3004
  ac_status=$?
3005
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006
  test $ac_status = 0; }; then :
3007
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3008
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3009
# work properly (i.e., refer to `conftest.exe'), while it won't with
3010
# `rm'.
3011
for ac_file in conftest.exe conftest conftest.*; do
3012
  test -f "$ac_file" || continue
3013
  case $ac_file in
3014
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3015
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016
          break;;
3017
    * ) break;;
3018
  esac
3019
done
3020
else
3021
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023
as_fn_error "cannot compute suffix of executables: cannot compile and link
3024
See \`config.log' for more details." "$LINENO" 5; }
3025
fi
3026
rm -f conftest$ac_cv_exeext
3027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3028
$as_echo "$ac_cv_exeext" >&6; }
3029
 
3030
rm -f conftest.$ac_ext
3031
EXEEXT=$ac_cv_exeext
3032
ac_exeext=$EXEEXT
3033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3034
$as_echo_n "checking for suffix of object files... " >&6; }
3035
if test "${ac_cv_objext+set}" = set; then :
3036
  $as_echo_n "(cached) " >&6
3037
else
3038
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039
/* end confdefs.h.  */
3040
 
3041
int
3042
main ()
3043
{
3044
 
3045
  ;
3046
  return 0;
3047
}
3048
_ACEOF
3049
rm -f conftest.o conftest.obj
3050
if { { ac_try="$ac_compile"
3051
case "(($ac_try" in
3052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053
  *) ac_try_echo=$ac_try;;
3054
esac
3055
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056
$as_echo "$ac_try_echo"; } >&5
3057
  (eval "$ac_compile") 2>&5
3058
  ac_status=$?
3059
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060
  test $ac_status = 0; }; then :
3061
  for ac_file in conftest.o conftest.obj conftest.*; do
3062
  test -f "$ac_file" || continue;
3063
  case $ac_file in
3064
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3065
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3066
       break;;
3067
  esac
3068
done
3069
else
3070
  $as_echo "$as_me: failed program was:" >&5
3071
sed 's/^/| /' conftest.$ac_ext >&5
3072
 
3073
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075
as_fn_error "cannot compute suffix of object files: cannot compile
3076
See \`config.log' for more details." "$LINENO" 5; }
3077
fi
3078
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3079
fi
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3081
$as_echo "$ac_cv_objext" >&6; }
3082
OBJEXT=$ac_cv_objext
3083
ac_objext=$OBJEXT
3084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3085
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3086
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3087
  $as_echo_n "(cached) " >&6
3088
else
3089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090
/* end confdefs.h.  */
3091
 
3092
int
3093
main ()
3094
{
3095
#ifndef __GNUC__
3096
       choke me
3097
#endif
3098
 
3099
  ;
3100
  return 0;
3101
}
3102
_ACEOF
3103
if ac_fn_c_try_compile "$LINENO"; then :
3104
  ac_compiler_gnu=yes
3105
else
3106
  ac_compiler_gnu=no
3107
fi
3108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110
 
3111
fi
3112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3113
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3114
if test $ac_compiler_gnu = yes; then
3115
  GCC=yes
3116
else
3117
  GCC=
3118
fi
3119
ac_test_CFLAGS=${CFLAGS+set}
3120
ac_save_CFLAGS=$CFLAGS
3121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3122
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3123
if test "${ac_cv_prog_cc_g+set}" = set; then :
3124
  $as_echo_n "(cached) " >&6
3125
else
3126
  ac_save_c_werror_flag=$ac_c_werror_flag
3127
   ac_c_werror_flag=yes
3128
   ac_cv_prog_cc_g=no
3129
   CFLAGS="-g"
3130
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131
/* end confdefs.h.  */
3132
 
3133
int
3134
main ()
3135
{
3136
 
3137
  ;
3138
  return 0;
3139
}
3140
_ACEOF
3141
if ac_fn_c_try_compile "$LINENO"; then :
3142
  ac_cv_prog_cc_g=yes
3143
else
3144
  CFLAGS=""
3145
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146
/* end confdefs.h.  */
3147
 
3148
int
3149
main ()
3150
{
3151
 
3152
  ;
3153
  return 0;
3154
}
3155
_ACEOF
3156
if ac_fn_c_try_compile "$LINENO"; then :
3157
 
3158
else
3159
  ac_c_werror_flag=$ac_save_c_werror_flag
3160
         CFLAGS="-g"
3161
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162
/* end confdefs.h.  */
3163
 
3164
int
3165
main ()
3166
{
3167
 
3168
  ;
3169
  return 0;
3170
}
3171
_ACEOF
3172
if ac_fn_c_try_compile "$LINENO"; then :
3173
  ac_cv_prog_cc_g=yes
3174
fi
3175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176
fi
3177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178
fi
3179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180
   ac_c_werror_flag=$ac_save_c_werror_flag
3181
fi
3182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3183
$as_echo "$ac_cv_prog_cc_g" >&6; }
3184
if test "$ac_test_CFLAGS" = set; then
3185
  CFLAGS=$ac_save_CFLAGS
3186
elif test $ac_cv_prog_cc_g = yes; then
3187
  if test "$GCC" = yes; then
3188
    CFLAGS="-g -O2"
3189
  else
3190
    CFLAGS="-g"
3191
  fi
3192
else
3193
  if test "$GCC" = yes; then
3194
    CFLAGS="-O2"
3195
  else
3196
    CFLAGS=
3197
  fi
3198
fi
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3200
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3201
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3202
  $as_echo_n "(cached) " >&6
3203
else
3204
  ac_cv_prog_cc_c89=no
3205
ac_save_CC=$CC
3206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207
/* end confdefs.h.  */
3208
#include 
3209
#include 
3210
#include 
3211
#include 
3212
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3213
struct buf { int x; };
3214
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3215
static char *e (p, i)
3216
     char **p;
3217
     int i;
3218
{
3219
  return p[i];
3220
}
3221
static char *f (char * (*g) (char **, int), char **p, ...)
3222
{
3223
  char *s;
3224
  va_list v;
3225
  va_start (v,p);
3226
  s = g (p, va_arg (v,int));
3227
  va_end (v);
3228
  return s;
3229
}
3230
 
3231
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3232
   function prototypes and stuff, but not '\xHH' hex character constants.
3233
   These don't provoke an error unfortunately, instead are silently treated
3234
   as 'x'.  The following induces an error, until -std is added to get
3235
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3236
   array size at least.  It's necessary to write '\x00'==0 to get something
3237
   that's true only with -std.  */
3238
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3239
 
3240
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3241
   inside strings and character constants.  */
3242
#define FOO(x) 'x'
3243
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3244
 
3245
int test (int i, double x);
3246
struct s1 {int (*f) (int a);};
3247
struct s2 {int (*f) (double a);};
3248
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3249
int argc;
3250
char **argv;
3251
int
3252
main ()
3253
{
3254
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3255
  ;
3256
  return 0;
3257
}
3258
_ACEOF
3259
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3260
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3261
do
3262
  CC="$ac_save_CC $ac_arg"
3263
  if ac_fn_c_try_compile "$LINENO"; then :
3264
  ac_cv_prog_cc_c89=$ac_arg
3265
fi
3266
rm -f core conftest.err conftest.$ac_objext
3267
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3268
done
3269
rm -f conftest.$ac_ext
3270
CC=$ac_save_CC
3271
 
3272
fi
3273
# AC_CACHE_VAL
3274
case "x$ac_cv_prog_cc_c89" in
3275
  x)
3276
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3277
$as_echo "none needed" >&6; } ;;
3278
  xno)
3279
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3280
$as_echo "unsupported" >&6; } ;;
3281
  *)
3282
    CC="$CC $ac_cv_prog_cc_c89"
3283
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3284
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3285
esac
3286
if test "x$ac_cv_prog_cc_c89" != xno; then :
3287
 
3288
fi
3289
 
3290
ac_ext=c
3291
ac_cpp='$CPP $CPPFLAGS'
3292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
 
3296
 
3297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3298
$as_echo_n "checking for library containing strerror... " >&6; }
3299
if test "${ac_cv_search_strerror+set}" = set; then :
3300
  $as_echo_n "(cached) " >&6
3301
else
3302
  ac_func_search_save_LIBS=$LIBS
3303
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304
/* end confdefs.h.  */
3305
 
3306
/* Override any GCC internal prototype to avoid an error.
3307
   Use char because int might match the return type of a GCC
3308
   builtin and then its argument prototype would still apply.  */
3309
#ifdef __cplusplus
3310
extern "C"
3311
#endif
3312
char strerror ();
3313
int
3314
main ()
3315
{
3316
return strerror ();
3317
  ;
3318
  return 0;
3319
}
3320
_ACEOF
3321
for ac_lib in '' cposix; do
3322
  if test -z "$ac_lib"; then
3323
    ac_res="none required"
3324
  else
3325
    ac_res=-l$ac_lib
3326
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3327
  fi
3328
  if ac_fn_c_try_link "$LINENO"; then :
3329
  ac_cv_search_strerror=$ac_res
3330
fi
3331
rm -f core conftest.err conftest.$ac_objext \
3332
    conftest$ac_exeext
3333
  if test "${ac_cv_search_strerror+set}" = set; then :
3334
  break
3335
fi
3336
done
3337
if test "${ac_cv_search_strerror+set}" = set; then :
3338
 
3339
else
3340
  ac_cv_search_strerror=no
3341
fi
3342
rm conftest.$ac_ext
3343
LIBS=$ac_func_search_save_LIBS
3344
fi
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3346
$as_echo "$ac_cv_search_strerror" >&6; }
3347
ac_res=$ac_cv_search_strerror
3348
if test "$ac_res" != no; then :
3349
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3350
 
3351
fi
3352
 
3353
 
3354
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3355
am__api_version='1.11'
3356
 
3357
# Find a good install program.  We prefer a C program (faster),
3358
# so one script is as good as another.  But avoid the broken or
3359
# incompatible versions:
3360
# SysV /etc/install, /usr/sbin/install
3361
# SunOS /usr/etc/install
3362
# IRIX /sbin/install
3363
# AIX /bin/install
3364
# AmigaOS /C/install, which installs bootblocks on floppy discs
3365
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3366
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3367
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3368
# OS/2's system install, which has a completely different semantic
3369
# ./install, which can be erroneously created by make from ./install.sh.
3370
# Reject install programs that cannot install multiple files.
3371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3372
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3373
if test -z "$INSTALL"; then
3374
if test "${ac_cv_path_install+set}" = set; then :
3375
  $as_echo_n "(cached) " >&6
3376
else
3377
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378
for as_dir in $PATH
3379
do
3380
  IFS=$as_save_IFS
3381
  test -z "$as_dir" && as_dir=.
3382
    # Account for people who put trailing slashes in PATH elements.
3383
case $as_dir/ in #((
3384
  ./ | .// | /[cC]/* | \
3385
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3386
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3387
  /usr/ucb/* ) ;;
3388
  *)
3389
    # OSF1 and SCO ODT 3.0 have their own names for install.
3390
    # Don't use installbsd from OSF since it installs stuff as root
3391
    # by default.
3392
    for ac_prog in ginstall scoinst install; do
3393
      for ac_exec_ext in '' $ac_executable_extensions; do
3394
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3395
          if test $ac_prog = install &&
3396
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3397
            # AIX install.  It has an incompatible calling convention.
3398
            :
3399
          elif test $ac_prog = install &&
3400
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3401
            # program-specific install script used by HP pwplus--don't use.
3402
            :
3403
          else
3404
            rm -rf conftest.one conftest.two conftest.dir
3405
            echo one > conftest.one
3406
            echo two > conftest.two
3407
            mkdir conftest.dir
3408
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3409
              test -s conftest.one && test -s conftest.two &&
3410
              test -s conftest.dir/conftest.one &&
3411
              test -s conftest.dir/conftest.two
3412
            then
3413
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3414
              break 3
3415
            fi
3416
          fi
3417
        fi
3418
      done
3419
    done
3420
    ;;
3421
esac
3422
 
3423
  done
3424
IFS=$as_save_IFS
3425
 
3426
rm -rf conftest.one conftest.two conftest.dir
3427
 
3428
fi
3429
  if test "${ac_cv_path_install+set}" = set; then
3430
    INSTALL=$ac_cv_path_install
3431
  else
3432
    # As a last resort, use the slow shell script.  Don't cache a
3433
    # value for INSTALL within a source directory, because that will
3434
    # break other packages using the cache if that directory is
3435
    # removed, or if the value is a relative name.
3436
    INSTALL=$ac_install_sh
3437
  fi
3438
fi
3439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3440
$as_echo "$INSTALL" >&6; }
3441
 
3442
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3443
# It thinks the first close brace ends the variable substitution.
3444
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3445
 
3446
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3447
 
3448
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3449
 
3450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3451
$as_echo_n "checking whether build environment is sane... " >&6; }
3452
# Just in case
3453
sleep 1
3454
echo timestamp > conftest.file
3455
# Reject unsafe characters in $srcdir or the absolute working directory
3456
# name.  Accept space and tab only in the latter.
3457
am_lf='
3458
'
3459
case `pwd` in
3460
  *[\\\"\#\$\&\'\`$am_lf]*)
3461
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3462
esac
3463
case $srcdir in
3464
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3465
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3466
esac
3467
 
3468
# Do `set' in a subshell so we don't clobber the current shell's
3469
# arguments.  Must try -L first in case configure is actually a
3470
# symlink; some systems play weird games with the mod time of symlinks
3471
# (eg FreeBSD returns the mod time of the symlink's containing
3472
# directory).
3473
if (
3474
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3475
   if test "$*" = "X"; then
3476
      # -L didn't work.
3477
      set X `ls -t "$srcdir/configure" conftest.file`
3478
   fi
3479
   rm -f conftest.file
3480
   if test "$*" != "X $srcdir/configure conftest.file" \
3481
      && test "$*" != "X conftest.file $srcdir/configure"; then
3482
 
3483
      # If neither matched, then we have a broken ls.  This can happen
3484
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3485
      # broken ls alias from the environment.  This has actually
3486
      # happened.  Such a system could not be considered "sane".
3487
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3488
alias in your environment" "$LINENO" 5
3489
   fi
3490
 
3491
   test "$2" = conftest.file
3492
   )
3493
then
3494
   # Ok.
3495
   :
3496
else
3497
   as_fn_error "newly created file is older than distributed files!
3498
Check your system clock" "$LINENO" 5
3499
fi
3500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501
$as_echo "yes" >&6; }
3502
test "$program_prefix" != NONE &&
3503
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3504
# Use a double $ so make ignores it.
3505
test "$program_suffix" != NONE &&
3506
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3507
# Double any \ or $.
3508
# By default was `s,x,x', remove it if useless.
3509
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3510
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3511
 
3512
# expand $ac_aux_dir to an absolute path
3513
am_aux_dir=`cd $ac_aux_dir && pwd`
3514
 
3515
if test x"${MISSING+set}" != xset; then
3516
  case $am_aux_dir in
3517
  *\ * | *\     *)
3518
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3519
  *)
3520
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3521
  esac
3522
fi
3523
# Use eval to expand $SHELL
3524
if eval "$MISSING --run true"; then
3525
  am_missing_run="$MISSING --run "
3526
else
3527
  am_missing_run=
3528
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3529
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3530
fi
3531
 
3532
if test x"${install_sh}" != xset; then
3533
  case $am_aux_dir in
3534
  *\ * | *\     *)
3535
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3536
  *)
3537
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3538
  esac
3539
fi
3540
 
3541
# Installed binaries are usually stripped using `strip' when the user
3542
# run `make install-strip'.  However `strip' might not be the right
3543
# tool to use in cross-compilation environments, therefore Automake
3544
# will honor the `STRIP' environment variable to overrule this program.
3545
if test "$cross_compiling" != no; then
3546
  if test -n "$ac_tool_prefix"; then
3547
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3548
set dummy ${ac_tool_prefix}strip; ac_word=$2
3549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550
$as_echo_n "checking for $ac_word... " >&6; }
3551
if test "${ac_cv_prog_STRIP+set}" = set; then :
3552
  $as_echo_n "(cached) " >&6
3553
else
3554
  if test -n "$STRIP"; then
3555
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3556
else
3557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558
for as_dir in $PATH
3559
do
3560
  IFS=$as_save_IFS
3561
  test -z "$as_dir" && as_dir=.
3562
    for ac_exec_ext in '' $ac_executable_extensions; do
3563
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3565
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566
    break 2
3567
  fi
3568
done
3569
  done
3570
IFS=$as_save_IFS
3571
 
3572
fi
3573
fi
3574
STRIP=$ac_cv_prog_STRIP
3575
if test -n "$STRIP"; then
3576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3577
$as_echo "$STRIP" >&6; }
3578
else
3579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580
$as_echo "no" >&6; }
3581
fi
3582
 
3583
 
3584
fi
3585
if test -z "$ac_cv_prog_STRIP"; then
3586
  ac_ct_STRIP=$STRIP
3587
  # Extract the first word of "strip", so it can be a program name with args.
3588
set dummy strip; ac_word=$2
3589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590
$as_echo_n "checking for $ac_word... " >&6; }
3591
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3592
  $as_echo_n "(cached) " >&6
3593
else
3594
  if test -n "$ac_ct_STRIP"; then
3595
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3596
else
3597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598
for as_dir in $PATH
3599
do
3600
  IFS=$as_save_IFS
3601
  test -z "$as_dir" && as_dir=.
3602
    for ac_exec_ext in '' $ac_executable_extensions; do
3603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604
    ac_cv_prog_ac_ct_STRIP="strip"
3605
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606
    break 2
3607
  fi
3608
done
3609
  done
3610
IFS=$as_save_IFS
3611
 
3612
fi
3613
fi
3614
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3615
if test -n "$ac_ct_STRIP"; then
3616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3617
$as_echo "$ac_ct_STRIP" >&6; }
3618
else
3619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620
$as_echo "no" >&6; }
3621
fi
3622
 
3623
  if test "x$ac_ct_STRIP" = x; then
3624
    STRIP=":"
3625
  else
3626
    case $cross_compiling:$ac_tool_warned in
3627
yes:)
3628
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3629
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3630
ac_tool_warned=yes ;;
3631
esac
3632
    STRIP=$ac_ct_STRIP
3633
  fi
3634
else
3635
  STRIP="$ac_cv_prog_STRIP"
3636
fi
3637
 
3638
fi
3639
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3640
 
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3642
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3643
if test -z "$MKDIR_P"; then
3644
  if test "${ac_cv_path_mkdir+set}" = set; then :
3645
  $as_echo_n "(cached) " >&6
3646
else
3647
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3649
do
3650
  IFS=$as_save_IFS
3651
  test -z "$as_dir" && as_dir=.
3652
    for ac_prog in mkdir gmkdir; do
3653
         for ac_exec_ext in '' $ac_executable_extensions; do
3654
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3655
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3656
             'mkdir (GNU coreutils) '* | \
3657
             'mkdir (coreutils) '* | \
3658
             'mkdir (fileutils) '4.1*)
3659
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3660
               break 3;;
3661
           esac
3662
         done
3663
       done
3664
  done
3665
IFS=$as_save_IFS
3666
 
3667
fi
3668
 
3669
  if test "${ac_cv_path_mkdir+set}" = set; then
3670
    MKDIR_P="$ac_cv_path_mkdir -p"
3671
  else
3672
    # As a last resort, use the slow shell script.  Don't cache a
3673
    # value for MKDIR_P within a source directory, because that will
3674
    # break other packages using the cache if that directory is
3675
    # removed, or if the value is a relative name.
3676
    test -d ./--version && rmdir ./--version
3677
    MKDIR_P="$ac_install_sh -d"
3678
  fi
3679
fi
3680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3681
$as_echo "$MKDIR_P" >&6; }
3682
 
3683
mkdir_p="$MKDIR_P"
3684
case $mkdir_p in
3685
  [\\/$]* | ?:[\\/]*) ;;
3686
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3687
esac
3688
 
3689
for ac_prog in gawk mawk nawk awk
3690
do
3691
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3692
set dummy $ac_prog; ac_word=$2
3693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694
$as_echo_n "checking for $ac_word... " >&6; }
3695
if test "${ac_cv_prog_AWK+set}" = set; then :
3696
  $as_echo_n "(cached) " >&6
3697
else
3698
  if test -n "$AWK"; then
3699
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3700
else
3701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702
for as_dir in $PATH
3703
do
3704
  IFS=$as_save_IFS
3705
  test -z "$as_dir" && as_dir=.
3706
    for ac_exec_ext in '' $ac_executable_extensions; do
3707
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708
    ac_cv_prog_AWK="$ac_prog"
3709
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710
    break 2
3711
  fi
3712
done
3713
  done
3714
IFS=$as_save_IFS
3715
 
3716
fi
3717
fi
3718
AWK=$ac_cv_prog_AWK
3719
if test -n "$AWK"; then
3720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3721
$as_echo "$AWK" >&6; }
3722
else
3723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724
$as_echo "no" >&6; }
3725
fi
3726
 
3727
 
3728
  test -n "$AWK" && break
3729
done
3730
 
3731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3732
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3733
set x ${MAKE-make}
3734
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3735
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3736
  $as_echo_n "(cached) " >&6
3737
else
3738
  cat >conftest.make <<\_ACEOF
3739
SHELL = /bin/sh
3740
all:
3741
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3742
_ACEOF
3743
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3744
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3745
  *@@@%%%=?*=@@@%%%*)
3746
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3747
  *)
3748
    eval ac_cv_prog_make_${ac_make}_set=no;;
3749
esac
3750
rm -f conftest.make
3751
fi
3752
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3753
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3754
$as_echo "yes" >&6; }
3755
  SET_MAKE=
3756
else
3757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758
$as_echo "no" >&6; }
3759
  SET_MAKE="MAKE=${MAKE-make}"
3760
fi
3761
 
3762
rm -rf .tst 2>/dev/null
3763
mkdir .tst 2>/dev/null
3764
if test -d .tst; then
3765
  am__leading_dot=.
3766
else
3767
  am__leading_dot=_
3768
fi
3769
rmdir .tst 2>/dev/null
3770
 
3771
DEPDIR="${am__leading_dot}deps"
3772
 
3773
ac_config_commands="$ac_config_commands depfiles"
3774
 
3775
 
3776
am_make=${MAKE-make}
3777
cat > confinc << 'END'
3778
am__doit:
3779
        @echo this is the am__doit target
3780
.PHONY: am__doit
3781
END
3782
# If we don't find an include directive, just comment out the code.
3783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3784
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3785
am__include="#"
3786
am__quote=
3787
_am_result=none
3788
# First try GNU make style include.
3789
echo "include confinc" > confmf
3790
# Ignore all kinds of additional output from `make'.
3791
case `$am_make -s -f confmf 2> /dev/null` in #(
3792
*the\ am__doit\ target*)
3793
  am__include=include
3794
  am__quote=
3795
  _am_result=GNU
3796
  ;;
3797
esac
3798
# Now try BSD make style include.
3799
if test "$am__include" = "#"; then
3800
   echo '.include "confinc"' > confmf
3801
   case `$am_make -s -f confmf 2> /dev/null` in #(
3802
   *the\ am__doit\ target*)
3803
     am__include=.include
3804
     am__quote="\""
3805
     _am_result=BSD
3806
     ;;
3807
   esac
3808
fi
3809
 
3810
 
3811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3812
$as_echo "$_am_result" >&6; }
3813
rm -f confinc confmf
3814
 
3815
# Check whether --enable-dependency-tracking was given.
3816
if test "${enable_dependency_tracking+set}" = set; then :
3817
  enableval=$enable_dependency_tracking;
3818
fi
3819
 
3820
if test "x$enable_dependency_tracking" != xno; then
3821
  am_depcomp="$ac_aux_dir/depcomp"
3822
  AMDEPBACKSLASH='\'
3823
fi
3824
 if test "x$enable_dependency_tracking" != xno; then
3825
  AMDEP_TRUE=
3826
  AMDEP_FALSE='#'
3827
else
3828
  AMDEP_TRUE='#'
3829
  AMDEP_FALSE=
3830
fi
3831
 
3832
 
3833
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3834
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3835
  # is not polluted with repeated "-I."
3836
  am__isrc=' -I$(srcdir)'
3837
  # test to see if srcdir already configured
3838
  if test -f $srcdir/config.status; then
3839
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3840
  fi
3841
fi
3842
 
3843
# test whether we have cygpath
3844
if test -z "$CYGPATH_W"; then
3845
  if (cygpath --version) >/dev/null 2>/dev/null; then
3846
    CYGPATH_W='cygpath -w'
3847
  else
3848
    CYGPATH_W=echo
3849
  fi
3850
fi
3851
 
3852
 
3853
# Define the identity of the package.
3854
 PACKAGE=gas
3855
 VERSION=${BFD_VERSION}
3856
 
3857
 
3858
cat >>confdefs.h <<_ACEOF
3859
#define PACKAGE "$PACKAGE"
3860
_ACEOF
3861
 
3862
 
3863
cat >>confdefs.h <<_ACEOF
3864
#define VERSION "$VERSION"
3865
_ACEOF
3866
 
3867
# Some tools Automake needs.
3868
 
3869
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3870
 
3871
 
3872
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3873
 
3874
 
3875
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3876
 
3877
 
3878
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3879
 
3880
 
3881
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3882
 
3883
# We need awk for the "check" target.  The system "awk" is bad on
3884
# some platforms.
3885
# Always define AMTAR for backward compatibility.
3886
 
3887
AMTAR=${AMTAR-"${am_missing_run}tar"}
3888
 
3889
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3890
 
3891
 
3892
 
3893
 
3894
depcc="$CC"   am_compiler_list=
3895
 
3896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3897
$as_echo_n "checking dependency style of $depcc... " >&6; }
3898
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3899
  $as_echo_n "(cached) " >&6
3900
else
3901
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3902
  # We make a subdir and do the tests there.  Otherwise we can end up
3903
  # making bogus files that we don't know about and never remove.  For
3904
  # instance it was reported that on HP-UX the gcc test will end up
3905
  # making a dummy file named `D' -- because `-MD' means `put the output
3906
  # in D'.
3907
  mkdir conftest.dir
3908
  # Copy depcomp to subdir because otherwise we won't find it if we're
3909
  # using a relative directory.
3910
  cp "$am_depcomp" conftest.dir
3911
  cd conftest.dir
3912
  # We will build objects and dependencies in a subdirectory because
3913
  # it helps to detect inapplicable dependency modes.  For instance
3914
  # both Tru64's cc and ICC support -MD to output dependencies as a
3915
  # side effect of compilation, but ICC will put the dependencies in
3916
  # the current directory while Tru64 will put them in the object
3917
  # directory.
3918
  mkdir sub
3919
 
3920
  am_cv_CC_dependencies_compiler_type=none
3921
  if test "$am_compiler_list" = ""; then
3922
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3923
  fi
3924
  am__universal=false
3925
  case " $depcc " in #(
3926
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3927
     esac
3928
 
3929
  for depmode in $am_compiler_list; do
3930
    # Setup a source with many dependencies, because some compilers
3931
    # like to wrap large dependency lists on column 80 (with \), and
3932
    # we should not choose a depcomp mode which is confused by this.
3933
    #
3934
    # We need to recreate these files for each test, as the compiler may
3935
    # overwrite some of them when testing with obscure command lines.
3936
    # This happens at least with the AIX C compiler.
3937
    : > sub/conftest.c
3938
    for i in 1 2 3 4 5 6; do
3939
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3940
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3941
      # Solaris 8's {/usr,}/bin/sh.
3942
      touch sub/conftst$i.h
3943
    done
3944
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3945
 
3946
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3947
    # mode.  It turns out that the SunPro C++ compiler does not properly
3948
    # handle `-M -o', and we need to detect this.  Also, some Intel
3949
    # versions had trouble with output in subdirs
3950
    am__obj=sub/conftest.${OBJEXT-o}
3951
    am__minus_obj="-o $am__obj"
3952
    case $depmode in
3953
    gcc)
3954
      # This depmode causes a compiler race in universal mode.
3955
      test "$am__universal" = false || continue
3956
      ;;
3957
    nosideeffect)
3958
      # after this tag, mechanisms are not by side-effect, so they'll
3959
      # only be used when explicitly requested
3960
      if test "x$enable_dependency_tracking" = xyes; then
3961
        continue
3962
      else
3963
        break
3964
      fi
3965
      ;;
3966
    msvisualcpp | msvcmsys)
3967
      # This compiler won't grok `-c -o', but also, the minuso test has
3968
      # not run yet.  These depmodes are late enough in the game, and
3969
      # so weak that their functioning should not be impacted.
3970
      am__obj=conftest.${OBJEXT-o}
3971
      am__minus_obj=
3972
      ;;
3973
    none) break ;;
3974
    esac
3975
    if depmode=$depmode \
3976
       source=sub/conftest.c object=$am__obj \
3977
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3978
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3979
         >/dev/null 2>conftest.err &&
3980
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3981
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3982
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3983
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3984
      # icc doesn't choke on unknown options, it will just issue warnings
3985
      # or remarks (even with -Werror).  So we grep stderr for any message
3986
      # that says an option was ignored or not supported.
3987
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3988
      #   icc: Command line warning: ignoring option '-M'; no argument required
3989
      # The diagnosis changed in icc 8.0:
3990
      #   icc: Command line remark: option '-MP' not supported
3991
      if (grep 'ignoring option' conftest.err ||
3992
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3993
        am_cv_CC_dependencies_compiler_type=$depmode
3994
        break
3995
      fi
3996
    fi
3997
  done
3998
 
3999
  cd ..
4000
  rm -rf conftest.dir
4001
else
4002
  am_cv_CC_dependencies_compiler_type=none
4003
fi
4004
 
4005
fi
4006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4007
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4008
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4009
 
4010
 if
4011
  test "x$enable_dependency_tracking" != xno \
4012
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4013
  am__fastdepCC_TRUE=
4014
  am__fastdepCC_FALSE='#'
4015
else
4016
  am__fastdepCC_TRUE='#'
4017
  am__fastdepCC_FALSE=
4018
fi
4019
 
4020
 
4021
 
4022
 
4023
ac_ext=c
4024
ac_cpp='$CPP $CPPFLAGS'
4025
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028
if test -n "$ac_tool_prefix"; then
4029
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4030
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032
$as_echo_n "checking for $ac_word... " >&6; }
4033
if test "${ac_cv_prog_CC+set}" = set; then :
4034
  $as_echo_n "(cached) " >&6
4035
else
4036
  if test -n "$CC"; then
4037
  ac_cv_prog_CC="$CC" # Let the user override the test.
4038
else
4039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040
for as_dir in $PATH
4041
do
4042
  IFS=$as_save_IFS
4043
  test -z "$as_dir" && as_dir=.
4044
    for ac_exec_ext in '' $ac_executable_extensions; do
4045
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4047
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048
    break 2
4049
  fi
4050
done
4051
  done
4052
IFS=$as_save_IFS
4053
 
4054
fi
4055
fi
4056
CC=$ac_cv_prog_CC
4057
if test -n "$CC"; then
4058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059
$as_echo "$CC" >&6; }
4060
else
4061
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062
$as_echo "no" >&6; }
4063
fi
4064
 
4065
 
4066
fi
4067
if test -z "$ac_cv_prog_CC"; then
4068
  ac_ct_CC=$CC
4069
  # Extract the first word of "gcc", so it can be a program name with args.
4070
set dummy gcc; ac_word=$2
4071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072
$as_echo_n "checking for $ac_word... " >&6; }
4073
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4074
  $as_echo_n "(cached) " >&6
4075
else
4076
  if test -n "$ac_ct_CC"; then
4077
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4078
else
4079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080
for as_dir in $PATH
4081
do
4082
  IFS=$as_save_IFS
4083
  test -z "$as_dir" && as_dir=.
4084
    for ac_exec_ext in '' $ac_executable_extensions; do
4085
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086
    ac_cv_prog_ac_ct_CC="gcc"
4087
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088
    break 2
4089
  fi
4090
done
4091
  done
4092
IFS=$as_save_IFS
4093
 
4094
fi
4095
fi
4096
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097
if test -n "$ac_ct_CC"; then
4098
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4099
$as_echo "$ac_ct_CC" >&6; }
4100
else
4101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102
$as_echo "no" >&6; }
4103
fi
4104
 
4105
  if test "x$ac_ct_CC" = x; then
4106
    CC=""
4107
  else
4108
    case $cross_compiling:$ac_tool_warned in
4109
yes:)
4110
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112
ac_tool_warned=yes ;;
4113
esac
4114
    CC=$ac_ct_CC
4115
  fi
4116
else
4117
  CC="$ac_cv_prog_CC"
4118
fi
4119
 
4120
if test -z "$CC"; then
4121
          if test -n "$ac_tool_prefix"; then
4122
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4123
set dummy ${ac_tool_prefix}cc; ac_word=$2
4124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125
$as_echo_n "checking for $ac_word... " >&6; }
4126
if test "${ac_cv_prog_CC+set}" = set; then :
4127
  $as_echo_n "(cached) " >&6
4128
else
4129
  if test -n "$CC"; then
4130
  ac_cv_prog_CC="$CC" # Let the user override the test.
4131
else
4132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133
for as_dir in $PATH
4134
do
4135
  IFS=$as_save_IFS
4136
  test -z "$as_dir" && as_dir=.
4137
    for ac_exec_ext in '' $ac_executable_extensions; do
4138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4140
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141
    break 2
4142
  fi
4143
done
4144
  done
4145
IFS=$as_save_IFS
4146
 
4147
fi
4148
fi
4149
CC=$ac_cv_prog_CC
4150
if test -n "$CC"; then
4151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152
$as_echo "$CC" >&6; }
4153
else
4154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155
$as_echo "no" >&6; }
4156
fi
4157
 
4158
 
4159
  fi
4160
fi
4161
if test -z "$CC"; then
4162
  # Extract the first word of "cc", so it can be a program name with args.
4163
set dummy cc; ac_word=$2
4164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165
$as_echo_n "checking for $ac_word... " >&6; }
4166
if test "${ac_cv_prog_CC+set}" = set; then :
4167
  $as_echo_n "(cached) " >&6
4168
else
4169
  if test -n "$CC"; then
4170
  ac_cv_prog_CC="$CC" # Let the user override the test.
4171
else
4172
  ac_prog_rejected=no
4173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174
for as_dir in $PATH
4175
do
4176
  IFS=$as_save_IFS
4177
  test -z "$as_dir" && as_dir=.
4178
    for ac_exec_ext in '' $ac_executable_extensions; do
4179
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4181
       ac_prog_rejected=yes
4182
       continue
4183
     fi
4184
    ac_cv_prog_CC="cc"
4185
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186
    break 2
4187
  fi
4188
done
4189
  done
4190
IFS=$as_save_IFS
4191
 
4192
if test $ac_prog_rejected = yes; then
4193
  # We found a bogon in the path, so make sure we never use it.
4194
  set dummy $ac_cv_prog_CC
4195
  shift
4196
  if test $# != 0; then
4197
    # We chose a different compiler from the bogus one.
4198
    # However, it has the same basename, so the bogon will be chosen
4199
    # first if we set CC to just the basename; use the full file name.
4200
    shift
4201
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4202
  fi
4203
fi
4204
fi
4205
fi
4206
CC=$ac_cv_prog_CC
4207
if test -n "$CC"; then
4208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209
$as_echo "$CC" >&6; }
4210
else
4211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212
$as_echo "no" >&6; }
4213
fi
4214
 
4215
 
4216
fi
4217
if test -z "$CC"; then
4218
  if test -n "$ac_tool_prefix"; then
4219
  for ac_prog in cl.exe
4220
  do
4221
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224
$as_echo_n "checking for $ac_word... " >&6; }
4225
if test "${ac_cv_prog_CC+set}" = set; then :
4226
  $as_echo_n "(cached) " >&6
4227
else
4228
  if test -n "$CC"; then
4229
  ac_cv_prog_CC="$CC" # Let the user override the test.
4230
else
4231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232
for as_dir in $PATH
4233
do
4234
  IFS=$as_save_IFS
4235
  test -z "$as_dir" && as_dir=.
4236
    for ac_exec_ext in '' $ac_executable_extensions; do
4237
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4239
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240
    break 2
4241
  fi
4242
done
4243
  done
4244
IFS=$as_save_IFS
4245
 
4246
fi
4247
fi
4248
CC=$ac_cv_prog_CC
4249
if test -n "$CC"; then
4250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251
$as_echo "$CC" >&6; }
4252
else
4253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254
$as_echo "no" >&6; }
4255
fi
4256
 
4257
 
4258
    test -n "$CC" && break
4259
  done
4260
fi
4261
if test -z "$CC"; then
4262
  ac_ct_CC=$CC
4263
  for ac_prog in cl.exe
4264
do
4265
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4266
set dummy $ac_prog; ac_word=$2
4267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268
$as_echo_n "checking for $ac_word... " >&6; }
4269
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4270
  $as_echo_n "(cached) " >&6
4271
else
4272
  if test -n "$ac_ct_CC"; then
4273
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274
else
4275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276
for as_dir in $PATH
4277
do
4278
  IFS=$as_save_IFS
4279
  test -z "$as_dir" && as_dir=.
4280
    for ac_exec_ext in '' $ac_executable_extensions; do
4281
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282
    ac_cv_prog_ac_ct_CC="$ac_prog"
4283
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284
    break 2
4285
  fi
4286
done
4287
  done
4288
IFS=$as_save_IFS
4289
 
4290
fi
4291
fi
4292
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4293
if test -n "$ac_ct_CC"; then
4294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4295
$as_echo "$ac_ct_CC" >&6; }
4296
else
4297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298
$as_echo "no" >&6; }
4299
fi
4300
 
4301
 
4302
  test -n "$ac_ct_CC" && break
4303
done
4304
 
4305
  if test "x$ac_ct_CC" = x; then
4306
    CC=""
4307
  else
4308
    case $cross_compiling:$ac_tool_warned in
4309
yes:)
4310
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312
ac_tool_warned=yes ;;
4313
esac
4314
    CC=$ac_ct_CC
4315
  fi
4316
fi
4317
 
4318
fi
4319
 
4320
 
4321
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323
as_fn_error "no acceptable C compiler found in \$PATH
4324
See \`config.log' for more details." "$LINENO" 5; }
4325
 
4326
# Provide some information about the compiler.
4327
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4328
set X $ac_compile
4329
ac_compiler=$2
4330
for ac_option in --version -v -V -qversion; do
4331
  { { ac_try="$ac_compiler $ac_option >&5"
4332
case "(($ac_try" in
4333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334
  *) ac_try_echo=$ac_try;;
4335
esac
4336
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337
$as_echo "$ac_try_echo"; } >&5
4338
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4339
  ac_status=$?
4340
  if test -s conftest.err; then
4341
    sed '10a\
4342
... rest of stderr output deleted ...
4343
         10q' conftest.err >conftest.er1
4344
    cat conftest.er1 >&5
4345
    rm -f conftest.er1 conftest.err
4346
  fi
4347
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348
  test $ac_status = 0; }
4349
done
4350
 
4351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4352
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4353
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4354
  $as_echo_n "(cached) " >&6
4355
else
4356
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357
/* end confdefs.h.  */
4358
 
4359
int
4360
main ()
4361
{
4362
#ifndef __GNUC__
4363
       choke me
4364
#endif
4365
 
4366
  ;
4367
  return 0;
4368
}
4369
_ACEOF
4370
if ac_fn_c_try_compile "$LINENO"; then :
4371
  ac_compiler_gnu=yes
4372
else
4373
  ac_compiler_gnu=no
4374
fi
4375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4377
 
4378
fi
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4380
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4381
if test $ac_compiler_gnu = yes; then
4382
  GCC=yes
4383
else
4384
  GCC=
4385
fi
4386
ac_test_CFLAGS=${CFLAGS+set}
4387
ac_save_CFLAGS=$CFLAGS
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4389
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4390
if test "${ac_cv_prog_cc_g+set}" = set; then :
4391
  $as_echo_n "(cached) " >&6
4392
else
4393
  ac_save_c_werror_flag=$ac_c_werror_flag
4394
   ac_c_werror_flag=yes
4395
   ac_cv_prog_cc_g=no
4396
   CFLAGS="-g"
4397
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398
/* end confdefs.h.  */
4399
 
4400
int
4401
main ()
4402
{
4403
 
4404
  ;
4405
  return 0;
4406
}
4407
_ACEOF
4408
if ac_fn_c_try_compile "$LINENO"; then :
4409
  ac_cv_prog_cc_g=yes
4410
else
4411
  CFLAGS=""
4412
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413
/* end confdefs.h.  */
4414
 
4415
int
4416
main ()
4417
{
4418
 
4419
  ;
4420
  return 0;
4421
}
4422
_ACEOF
4423
if ac_fn_c_try_compile "$LINENO"; then :
4424
 
4425
else
4426
  ac_c_werror_flag=$ac_save_c_werror_flag
4427
         CFLAGS="-g"
4428
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429
/* end confdefs.h.  */
4430
 
4431
int
4432
main ()
4433
{
4434
 
4435
  ;
4436
  return 0;
4437
}
4438
_ACEOF
4439
if ac_fn_c_try_compile "$LINENO"; then :
4440
  ac_cv_prog_cc_g=yes
4441
fi
4442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443
fi
4444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445
fi
4446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447
   ac_c_werror_flag=$ac_save_c_werror_flag
4448
fi
4449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4450
$as_echo "$ac_cv_prog_cc_g" >&6; }
4451
if test "$ac_test_CFLAGS" = set; then
4452
  CFLAGS=$ac_save_CFLAGS
4453
elif test $ac_cv_prog_cc_g = yes; then
4454
  if test "$GCC" = yes; then
4455
    CFLAGS="-g -O2"
4456
  else
4457
    CFLAGS="-g"
4458
  fi
4459
else
4460
  if test "$GCC" = yes; then
4461
    CFLAGS="-O2"
4462
  else
4463
    CFLAGS=
4464
  fi
4465
fi
4466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4467
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4468
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4469
  $as_echo_n "(cached) " >&6
4470
else
4471
  ac_cv_prog_cc_c89=no
4472
ac_save_CC=$CC
4473
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474
/* end confdefs.h.  */
4475
#include 
4476
#include 
4477
#include 
4478
#include 
4479
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4480
struct buf { int x; };
4481
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4482
static char *e (p, i)
4483
     char **p;
4484
     int i;
4485
{
4486
  return p[i];
4487
}
4488
static char *f (char * (*g) (char **, int), char **p, ...)
4489
{
4490
  char *s;
4491
  va_list v;
4492
  va_start (v,p);
4493
  s = g (p, va_arg (v,int));
4494
  va_end (v);
4495
  return s;
4496
}
4497
 
4498
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4499
   function prototypes and stuff, but not '\xHH' hex character constants.
4500
   These don't provoke an error unfortunately, instead are silently treated
4501
   as 'x'.  The following induces an error, until -std is added to get
4502
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4503
   array size at least.  It's necessary to write '\x00'==0 to get something
4504
   that's true only with -std.  */
4505
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4506
 
4507
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4508
   inside strings and character constants.  */
4509
#define FOO(x) 'x'
4510
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4511
 
4512
int test (int i, double x);
4513
struct s1 {int (*f) (int a);};
4514
struct s2 {int (*f) (double a);};
4515
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4516
int argc;
4517
char **argv;
4518
int
4519
main ()
4520
{
4521
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4522
  ;
4523
  return 0;
4524
}
4525
_ACEOF
4526
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4527
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4528
do
4529
  CC="$ac_save_CC $ac_arg"
4530
  if ac_fn_c_try_compile "$LINENO"; then :
4531
  ac_cv_prog_cc_c89=$ac_arg
4532
fi
4533
rm -f core conftest.err conftest.$ac_objext
4534
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4535
done
4536
rm -f conftest.$ac_ext
4537
CC=$ac_save_CC
4538
 
4539
fi
4540
# AC_CACHE_VAL
4541
case "x$ac_cv_prog_cc_c89" in
4542
  x)
4543
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4544
$as_echo "none needed" >&6; } ;;
4545
  xno)
4546
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4547
$as_echo "unsupported" >&6; } ;;
4548
  *)
4549
    CC="$CC $ac_cv_prog_cc_c89"
4550
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4551
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4552
esac
4553
if test "x$ac_cv_prog_cc_c89" != xno; then :
4554
 
4555
fi
4556
 
4557
ac_ext=c
4558
ac_cpp='$CPP $CPPFLAGS'
4559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
 
4563
ac_ext=c
4564
ac_cpp='$CPP $CPPFLAGS'
4565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4569
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4570
# On Suns, sometimes $CPP names a directory.
4571
if test -n "$CPP" && test -d "$CPP"; then
4572
  CPP=
4573
fi
4574
if test -z "$CPP"; then
4575
  if test "${ac_cv_prog_CPP+set}" = set; then :
4576
  $as_echo_n "(cached) " >&6
4577
else
4578
      # Double quotes because CPP needs to be expanded
4579
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580
    do
4581
      ac_preproc_ok=false
4582
for ac_c_preproc_warn_flag in '' yes
4583
do
4584
  # Use a header file that comes with gcc, so configuring glibc
4585
  # with a fresh cross-compiler works.
4586
  # Prefer  to  if __STDC__ is defined, since
4587
  #  exists even on freestanding compilers.
4588
  # On the NeXT, cc -E runs the code through the compiler's parser,
4589
  # not just through cpp. "Syntax error" is here to catch this case.
4590
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591
/* end confdefs.h.  */
4592
#ifdef __STDC__
4593
# include 
4594
#else
4595
# include 
4596
#endif
4597
                     Syntax error
4598
_ACEOF
4599
if ac_fn_c_try_cpp "$LINENO"; then :
4600
 
4601
else
4602
  # Broken: fails on valid input.
4603
continue
4604
fi
4605
rm -f conftest.err conftest.$ac_ext
4606
 
4607
  # OK, works on sane cases.  Now check whether nonexistent headers
4608
  # can be detected and how.
4609
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610
/* end confdefs.h.  */
4611
#include 
4612
_ACEOF
4613
if ac_fn_c_try_cpp "$LINENO"; then :
4614
  # Broken: success on invalid input.
4615
continue
4616
else
4617
  # Passes both tests.
4618
ac_preproc_ok=:
4619
break
4620
fi
4621
rm -f conftest.err conftest.$ac_ext
4622
 
4623
done
4624
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4625
rm -f conftest.err conftest.$ac_ext
4626
if $ac_preproc_ok; then :
4627
  break
4628
fi
4629
 
4630
    done
4631
    ac_cv_prog_CPP=$CPP
4632
 
4633
fi
4634
  CPP=$ac_cv_prog_CPP
4635
else
4636
  ac_cv_prog_CPP=$CPP
4637
fi
4638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4639
$as_echo "$CPP" >&6; }
4640
ac_preproc_ok=false
4641
for ac_c_preproc_warn_flag in '' yes
4642
do
4643
  # Use a header file that comes with gcc, so configuring glibc
4644
  # with a fresh cross-compiler works.
4645
  # Prefer  to  if __STDC__ is defined, since
4646
  #  exists even on freestanding compilers.
4647
  # On the NeXT, cc -E runs the code through the compiler's parser,
4648
  # not just through cpp. "Syntax error" is here to catch this case.
4649
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650
/* end confdefs.h.  */
4651
#ifdef __STDC__
4652
# include 
4653
#else
4654
# include 
4655
#endif
4656
                     Syntax error
4657
_ACEOF
4658
if ac_fn_c_try_cpp "$LINENO"; then :
4659
 
4660
else
4661
  # Broken: fails on valid input.
4662
continue
4663
fi
4664
rm -f conftest.err conftest.$ac_ext
4665
 
4666
  # OK, works on sane cases.  Now check whether nonexistent headers
4667
  # can be detected and how.
4668
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669
/* end confdefs.h.  */
4670
#include 
4671
_ACEOF
4672
if ac_fn_c_try_cpp "$LINENO"; then :
4673
  # Broken: success on invalid input.
4674
continue
4675
else
4676
  # Passes both tests.
4677
ac_preproc_ok=:
4678
break
4679
fi
4680
rm -f conftest.err conftest.$ac_ext
4681
 
4682
done
4683
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4684
rm -f conftest.err conftest.$ac_ext
4685
if $ac_preproc_ok; then :
4686
 
4687
else
4688
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4691
See \`config.log' for more details." "$LINENO" 5; }
4692
fi
4693
 
4694
ac_ext=c
4695
ac_cpp='$CPP $CPPFLAGS'
4696
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699
 
4700
 
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4702
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4703
if test "${ac_cv_path_GREP+set}" = set; then :
4704
  $as_echo_n "(cached) " >&6
4705
else
4706
  if test -z "$GREP"; then
4707
  ac_path_GREP_found=false
4708
  # Loop through the user's path and test for each of PROGNAME-LIST
4709
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711
do
4712
  IFS=$as_save_IFS
4713
  test -z "$as_dir" && as_dir=.
4714
    for ac_prog in grep ggrep; do
4715
    for ac_exec_ext in '' $ac_executable_extensions; do
4716
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4717
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4718
# Check for GNU ac_path_GREP and select it if it is found.
4719
  # Check for GNU $ac_path_GREP
4720
case `"$ac_path_GREP" --version 2>&1` in
4721
*GNU*)
4722
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4723
*)
4724
  ac_count=0
4725
  $as_echo_n 0123456789 >"conftest.in"
4726
  while :
4727
  do
4728
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4729
    mv "conftest.tmp" "conftest.in"
4730
    cp "conftest.in" "conftest.nl"
4731
    $as_echo 'GREP' >> "conftest.nl"
4732
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4733
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4734
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4735
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4736
      # Best one so far, save it but keep looking for a better one
4737
      ac_cv_path_GREP="$ac_path_GREP"
4738
      ac_path_GREP_max=$ac_count
4739
    fi
4740
    # 10*(2^10) chars as input seems more than enough
4741
    test $ac_count -gt 10 && break
4742
  done
4743
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744
esac
4745
 
4746
      $ac_path_GREP_found && break 3
4747
    done
4748
  done
4749
  done
4750
IFS=$as_save_IFS
4751
  if test -z "$ac_cv_path_GREP"; then
4752
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753
  fi
4754
else
4755
  ac_cv_path_GREP=$GREP
4756
fi
4757
 
4758
fi
4759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4760
$as_echo "$ac_cv_path_GREP" >&6; }
4761
 GREP="$ac_cv_path_GREP"
4762
 
4763
 
4764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4765
$as_echo_n "checking for egrep... " >&6; }
4766
if test "${ac_cv_path_EGREP+set}" = set; then :
4767
  $as_echo_n "(cached) " >&6
4768
else
4769
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4770
   then ac_cv_path_EGREP="$GREP -E"
4771
   else
4772
     if test -z "$EGREP"; then
4773
  ac_path_EGREP_found=false
4774
  # Loop through the user's path and test for each of PROGNAME-LIST
4775
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4777
do
4778
  IFS=$as_save_IFS
4779
  test -z "$as_dir" && as_dir=.
4780
    for ac_prog in egrep; do
4781
    for ac_exec_ext in '' $ac_executable_extensions; do
4782
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4783
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4784
# Check for GNU ac_path_EGREP and select it if it is found.
4785
  # Check for GNU $ac_path_EGREP
4786
case `"$ac_path_EGREP" --version 2>&1` in
4787
*GNU*)
4788
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4789
*)
4790
  ac_count=0
4791
  $as_echo_n 0123456789 >"conftest.in"
4792
  while :
4793
  do
4794
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4795
    mv "conftest.tmp" "conftest.in"
4796
    cp "conftest.in" "conftest.nl"
4797
    $as_echo 'EGREP' >> "conftest.nl"
4798
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4799
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4800
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4801
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4802
      # Best one so far, save it but keep looking for a better one
4803
      ac_cv_path_EGREP="$ac_path_EGREP"
4804
      ac_path_EGREP_max=$ac_count
4805
    fi
4806
    # 10*(2^10) chars as input seems more than enough
4807
    test $ac_count -gt 10 && break
4808
  done
4809
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4810
esac
4811
 
4812
      $ac_path_EGREP_found && break 3
4813
    done
4814
  done
4815
  done
4816
IFS=$as_save_IFS
4817
  if test -z "$ac_cv_path_EGREP"; then
4818
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4819
  fi
4820
else
4821
  ac_cv_path_EGREP=$EGREP
4822
fi
4823
 
4824
   fi
4825
fi
4826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4827
$as_echo "$ac_cv_path_EGREP" >&6; }
4828
 EGREP="$ac_cv_path_EGREP"
4829
 
4830
 
4831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4832
$as_echo_n "checking for ANSI C header files... " >&6; }
4833
if test "${ac_cv_header_stdc+set}" = set; then :
4834
  $as_echo_n "(cached) " >&6
4835
else
4836
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837
/* end confdefs.h.  */
4838
#include 
4839
#include 
4840
#include 
4841
#include 
4842
 
4843
int
4844
main ()
4845
{
4846
 
4847
  ;
4848
  return 0;
4849
}
4850
_ACEOF
4851
if ac_fn_c_try_compile "$LINENO"; then :
4852
  ac_cv_header_stdc=yes
4853
else
4854
  ac_cv_header_stdc=no
4855
fi
4856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857
 
4858
if test $ac_cv_header_stdc = yes; then
4859
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861
/* end confdefs.h.  */
4862
#include 
4863
 
4864
_ACEOF
4865
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866
  $EGREP "memchr" >/dev/null 2>&1; then :
4867
 
4868
else
4869
  ac_cv_header_stdc=no
4870
fi
4871
rm -f conftest*
4872
 
4873
fi
4874
 
4875
if test $ac_cv_header_stdc = yes; then
4876
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4877
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878
/* end confdefs.h.  */
4879
#include 
4880
 
4881
_ACEOF
4882
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883
  $EGREP "free" >/dev/null 2>&1; then :
4884
 
4885
else
4886
  ac_cv_header_stdc=no
4887
fi
4888
rm -f conftest*
4889
 
4890
fi
4891
 
4892
if test $ac_cv_header_stdc = yes; then
4893
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4894
  if test "$cross_compiling" = yes; then :
4895
  :
4896
else
4897
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898
/* end confdefs.h.  */
4899
#include 
4900
#include 
4901
#if ((' ' & 0x0FF) == 0x020)
4902
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4903
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4904
#else
4905
# define ISLOWER(c) \
4906
                   (('a' <= (c) && (c) <= 'i') \
4907
                     || ('j' <= (c) && (c) <= 'r') \
4908
                     || ('s' <= (c) && (c) <= 'z'))
4909
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4910
#endif
4911
 
4912
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4913
int
4914
main ()
4915
{
4916
  int i;
4917
  for (i = 0; i < 256; i++)
4918
    if (XOR (islower (i), ISLOWER (i))
4919
        || toupper (i) != TOUPPER (i))
4920
      return 2;
4921
  return 0;
4922
}
4923
_ACEOF
4924
if ac_fn_c_try_run "$LINENO"; then :
4925
 
4926
else
4927
  ac_cv_header_stdc=no
4928
fi
4929
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4930
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4931
fi
4932
 
4933
fi
4934
fi
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4936
$as_echo "$ac_cv_header_stdc" >&6; }
4937
if test $ac_cv_header_stdc = yes; then
4938
 
4939
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4940
 
4941
fi
4942
 
4943
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4944
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4945
                  inttypes.h stdint.h unistd.h
4946
do :
4947
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4948
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4949
"
4950
eval as_val=\$$as_ac_Header
4951
   if test "x$as_val" = x""yes; then :
4952
  cat >>confdefs.h <<_ACEOF
4953
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954
_ACEOF
4955
 
4956
fi
4957
 
4958
done
4959
 
4960
 
4961
 
4962
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4963
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4964
  MINIX=yes
4965
else
4966
  MINIX=
4967
fi
4968
 
4969
 
4970
  if test "$MINIX" = yes; then
4971
 
4972
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4973
 
4974
 
4975
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4976
 
4977
 
4978
$as_echo "#define _MINIX 1" >>confdefs.h
4979
 
4980
  fi
4981
 
4982
 
4983
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4984
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4985
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4986
  $as_echo_n "(cached) " >&6
4987
else
4988
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989
/* end confdefs.h.  */
4990
 
4991
#         define __EXTENSIONS__ 1
4992
          $ac_includes_default
4993
int
4994
main ()
4995
{
4996
 
4997
  ;
4998
  return 0;
4999
}
5000
_ACEOF
5001
if ac_fn_c_try_compile "$LINENO"; then :
5002
  ac_cv_safe_to_define___extensions__=yes
5003
else
5004
  ac_cv_safe_to_define___extensions__=no
5005
fi
5006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007
fi
5008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5009
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5010
  test $ac_cv_safe_to_define___extensions__ = yes &&
5011
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5012
 
5013
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5014
 
5015
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5016
 
5017
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5018
 
5019
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5020
 
5021
 
5022
 
5023
 
5024
# Check whether --enable-largefile was given.
5025
if test "${enable_largefile+set}" = set; then :
5026
  enableval=$enable_largefile;
5027
fi
5028
 
5029
if test "$enable_largefile" != no; then
5030
 
5031
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5032
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5033
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5034
  $as_echo_n "(cached) " >&6
5035
else
5036
  ac_cv_sys_largefile_CC=no
5037
     if test "$GCC" != yes; then
5038
       ac_save_CC=$CC
5039
       while :; do
5040
         # IRIX 6.2 and later do not support large files by default,
5041
         # so use the C compiler's -n32 option if that helps.
5042
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043
/* end confdefs.h.  */
5044
#include 
5045
 /* Check that off_t can represent 2**63 - 1 correctly.
5046
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5047
    since some C++ compilers masquerading as C compilers
5048
    incorrectly reject 9223372036854775807.  */
5049
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5050
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5051
                       && LARGE_OFF_T % 2147483647 == 1)
5052
                      ? 1 : -1];
5053
int
5054
main ()
5055
{
5056
 
5057
  ;
5058
  return 0;
5059
}
5060
_ACEOF
5061
         if ac_fn_c_try_compile "$LINENO"; then :
5062
  break
5063
fi
5064
rm -f core conftest.err conftest.$ac_objext
5065
         CC="$CC -n32"
5066
         if ac_fn_c_try_compile "$LINENO"; then :
5067
  ac_cv_sys_largefile_CC=' -n32'; break
5068
fi
5069
rm -f core conftest.err conftest.$ac_objext
5070
         break
5071
       done
5072
       CC=$ac_save_CC
5073
       rm -f conftest.$ac_ext
5074
    fi
5075
fi
5076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5077
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5078
  if test "$ac_cv_sys_largefile_CC" != no; then
5079
    CC=$CC$ac_cv_sys_largefile_CC
5080
  fi
5081
 
5082
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5083
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5084
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5085
  $as_echo_n "(cached) " >&6
5086
else
5087
  while :; do
5088
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089
/* end confdefs.h.  */
5090
#include 
5091
 /* Check that off_t can represent 2**63 - 1 correctly.
5092
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5093
    since some C++ compilers masquerading as C compilers
5094
    incorrectly reject 9223372036854775807.  */
5095
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5096
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5097
                       && LARGE_OFF_T % 2147483647 == 1)
5098
                      ? 1 : -1];
5099
int
5100
main ()
5101
{
5102
 
5103
  ;
5104
  return 0;
5105
}
5106
_ACEOF
5107
if ac_fn_c_try_compile "$LINENO"; then :
5108
  ac_cv_sys_file_offset_bits=no; break
5109
fi
5110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112
/* end confdefs.h.  */
5113
#define _FILE_OFFSET_BITS 64
5114
#include 
5115
 /* Check that off_t can represent 2**63 - 1 correctly.
5116
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5117
    since some C++ compilers masquerading as C compilers
5118
    incorrectly reject 9223372036854775807.  */
5119
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5120
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5121
                       && LARGE_OFF_T % 2147483647 == 1)
5122
                      ? 1 : -1];
5123
int
5124
main ()
5125
{
5126
 
5127
  ;
5128
  return 0;
5129
}
5130
_ACEOF
5131
if ac_fn_c_try_compile "$LINENO"; then :
5132
  ac_cv_sys_file_offset_bits=64; break
5133
fi
5134
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
  ac_cv_sys_file_offset_bits=unknown
5136
  break
5137
done
5138
fi
5139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5140
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5141
case $ac_cv_sys_file_offset_bits in #(
5142
  no | unknown) ;;
5143
  *)
5144
cat >>confdefs.h <<_ACEOF
5145
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5146
_ACEOF
5147
;;
5148
esac
5149
rm -rf conftest*
5150
  if test $ac_cv_sys_file_offset_bits = unknown; then
5151
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5152
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5153
if test "${ac_cv_sys_large_files+set}" = set; then :
5154
  $as_echo_n "(cached) " >&6
5155
else
5156
  while :; do
5157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158
/* end confdefs.h.  */
5159
#include 
5160
 /* Check that off_t can represent 2**63 - 1 correctly.
5161
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5162
    since some C++ compilers masquerading as C compilers
5163
    incorrectly reject 9223372036854775807.  */
5164
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5165
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5166
                       && LARGE_OFF_T % 2147483647 == 1)
5167
                      ? 1 : -1];
5168
int
5169
main ()
5170
{
5171
 
5172
  ;
5173
  return 0;
5174
}
5175
_ACEOF
5176
if ac_fn_c_try_compile "$LINENO"; then :
5177
  ac_cv_sys_large_files=no; break
5178
fi
5179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181
/* end confdefs.h.  */
5182
#define _LARGE_FILES 1
5183
#include 
5184
 /* Check that off_t can represent 2**63 - 1 correctly.
5185
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5186
    since some C++ compilers masquerading as C compilers
5187
    incorrectly reject 9223372036854775807.  */
5188
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5189
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5190
                       && LARGE_OFF_T % 2147483647 == 1)
5191
                      ? 1 : -1];
5192
int
5193
main ()
5194
{
5195
 
5196
  ;
5197
  return 0;
5198
}
5199
_ACEOF
5200
if ac_fn_c_try_compile "$LINENO"; then :
5201
  ac_cv_sys_large_files=1; break
5202
fi
5203
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204
  ac_cv_sys_large_files=unknown
5205
  break
5206
done
5207
fi
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5209
$as_echo "$ac_cv_sys_large_files" >&6; }
5210
case $ac_cv_sys_large_files in #(
5211
  no | unknown) ;;
5212
  *)
5213
cat >>confdefs.h <<_ACEOF
5214
#define _LARGE_FILES $ac_cv_sys_large_files
5215
_ACEOF
5216
;;
5217
esac
5218
rm -rf conftest*
5219
  fi
5220
fi
5221
 
5222
 
5223
case `pwd` in
5224
  *\ * | *\     *)
5225
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5226
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5227
esac
5228
 
5229
 
5230
 
5231
macro_version='2.2.6'
5232
macro_revision='1.3012'
5233
 
5234
 
5235
 
5236
 
5237
 
5238
 
5239
 
5240
 
5241
 
5242
 
5243
 
5244
 
5245
 
5246
ltmain="$ac_aux_dir/ltmain.sh"
5247
 
5248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5249
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5250
if test "${ac_cv_path_SED+set}" = set; then :
5251
  $as_echo_n "(cached) " >&6
5252
else
5253
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5254
     for ac_i in 1 2 3 4 5 6 7; do
5255
       ac_script="$ac_script$as_nl$ac_script"
5256
     done
5257
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5258
     { ac_script=; unset ac_script;}
5259
     if test -z "$SED"; then
5260
  ac_path_SED_found=false
5261
  # Loop through the user's path and test for each of PROGNAME-LIST
5262
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263
for as_dir in $PATH
5264
do
5265
  IFS=$as_save_IFS
5266
  test -z "$as_dir" && as_dir=.
5267
    for ac_prog in sed gsed; do
5268
    for ac_exec_ext in '' $ac_executable_extensions; do
5269
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5270
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5271
# Check for GNU ac_path_SED and select it if it is found.
5272
  # Check for GNU $ac_path_SED
5273
case `"$ac_path_SED" --version 2>&1` in
5274
*GNU*)
5275
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5276
*)
5277
  ac_count=0
5278
  $as_echo_n 0123456789 >"conftest.in"
5279
  while :
5280
  do
5281
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5282
    mv "conftest.tmp" "conftest.in"
5283
    cp "conftest.in" "conftest.nl"
5284
    $as_echo '' >> "conftest.nl"
5285
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5288
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5289
      # Best one so far, save it but keep looking for a better one
5290
      ac_cv_path_SED="$ac_path_SED"
5291
      ac_path_SED_max=$ac_count
5292
    fi
5293
    # 10*(2^10) chars as input seems more than enough
5294
    test $ac_count -gt 10 && break
5295
  done
5296
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297
esac
5298
 
5299
      $ac_path_SED_found && break 3
5300
    done
5301
  done
5302
  done
5303
IFS=$as_save_IFS
5304
  if test -z "$ac_cv_path_SED"; then
5305
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5306
  fi
5307
else
5308
  ac_cv_path_SED=$SED
5309
fi
5310
 
5311
fi
5312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5313
$as_echo "$ac_cv_path_SED" >&6; }
5314
 SED="$ac_cv_path_SED"
5315
  rm -f conftest.sed
5316
 
5317
test -z "$SED" && SED=sed
5318
Xsed="$SED -e 1s/^X//"
5319
 
5320
 
5321
 
5322
 
5323
 
5324
 
5325
 
5326
 
5327
 
5328
 
5329
 
5330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331
$as_echo_n "checking for fgrep... " >&6; }
5332
if test "${ac_cv_path_FGREP+set}" = set; then :
5333
  $as_echo_n "(cached) " >&6
5334
else
5335
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5336
   then ac_cv_path_FGREP="$GREP -F"
5337
   else
5338
     if test -z "$FGREP"; then
5339
  ac_path_FGREP_found=false
5340
  # Loop through the user's path and test for each of PROGNAME-LIST
5341
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5343
do
5344
  IFS=$as_save_IFS
5345
  test -z "$as_dir" && as_dir=.
5346
    for ac_prog in fgrep; do
5347
    for ac_exec_ext in '' $ac_executable_extensions; do
5348
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5349
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5350
# Check for GNU ac_path_FGREP and select it if it is found.
5351
  # Check for GNU $ac_path_FGREP
5352
case `"$ac_path_FGREP" --version 2>&1` in
5353
*GNU*)
5354
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5355
*)
5356
  ac_count=0
5357
  $as_echo_n 0123456789 >"conftest.in"
5358
  while :
5359
  do
5360
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5361
    mv "conftest.tmp" "conftest.in"
5362
    cp "conftest.in" "conftest.nl"
5363
    $as_echo 'FGREP' >> "conftest.nl"
5364
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5367
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5368
      # Best one so far, save it but keep looking for a better one
5369
      ac_cv_path_FGREP="$ac_path_FGREP"
5370
      ac_path_FGREP_max=$ac_count
5371
    fi
5372
    # 10*(2^10) chars as input seems more than enough
5373
    test $ac_count -gt 10 && break
5374
  done
5375
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376
esac
5377
 
5378
      $ac_path_FGREP_found && break 3
5379
    done
5380
  done
5381
  done
5382
IFS=$as_save_IFS
5383
  if test -z "$ac_cv_path_FGREP"; then
5384
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5385
  fi
5386
else
5387
  ac_cv_path_FGREP=$FGREP
5388
fi
5389
 
5390
   fi
5391
fi
5392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5393
$as_echo "$ac_cv_path_FGREP" >&6; }
5394
 FGREP="$ac_cv_path_FGREP"
5395
 
5396
 
5397
test -z "$GREP" && GREP=grep
5398
 
5399
 
5400
 
5401
 
5402
 
5403
 
5404
 
5405
 
5406
 
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
# Check whether --with-gnu-ld was given.
5418
if test "${with_gnu_ld+set}" = set; then :
5419
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5420
else
5421
  with_gnu_ld=no
5422
fi
5423
 
5424
ac_prog=ld
5425
if test "$GCC" = yes; then
5426
  # Check if gcc -print-prog-name=ld gives a path.
5427
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5428
$as_echo_n "checking for ld used by $CC... " >&6; }
5429
  case $host in
5430
  *-*-mingw*)
5431
    # gcc leaves a trailing carriage return which upsets mingw
5432
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5433
  *)
5434
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5435
  esac
5436
  case $ac_prog in
5437
    # Accept absolute paths.
5438
    [\\/]* | ?:[\\/]*)
5439
      re_direlt='/[^/][^/]*/\.\./'
5440
      # Canonicalize the pathname of ld
5441
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5442
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5443
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5444
      done
5445
      test -z "$LD" && LD="$ac_prog"
5446
      ;;
5447
  "")
5448
    # If it fails, then pretend we aren't using GCC.
5449
    ac_prog=ld
5450
    ;;
5451
  *)
5452
    # If it is relative, then search for the first ld in PATH.
5453
    with_gnu_ld=unknown
5454
    ;;
5455
  esac
5456
elif test "$with_gnu_ld" = yes; then
5457
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5458
$as_echo_n "checking for GNU ld... " >&6; }
5459
else
5460
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5461
$as_echo_n "checking for non-GNU ld... " >&6; }
5462
fi
5463
if test "${lt_cv_path_LD+set}" = set; then :
5464
  $as_echo_n "(cached) " >&6
5465
else
5466
  if test -z "$LD"; then
5467
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5468
  for ac_dir in $PATH; do
5469
    IFS="$lt_save_ifs"
5470
    test -z "$ac_dir" && ac_dir=.
5471
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5472
      lt_cv_path_LD="$ac_dir/$ac_prog"
5473
      # Check to see if the program is GNU ld.  I'd rather use --version,
5474
      # but apparently some variants of GNU ld only accept -v.
5475
      # Break only if it was the GNU/non-GNU ld that we prefer.
5476
      case `"$lt_cv_path_LD" -v 2>&1 
5477
      *GNU* | *'with BFD'*)
5478
        test "$with_gnu_ld" != no && break
5479
        ;;
5480
      *)
5481
        test "$with_gnu_ld" != yes && break
5482
        ;;
5483
      esac
5484
    fi
5485
  done
5486
  IFS="$lt_save_ifs"
5487
else
5488
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5489
fi
5490
fi
5491
 
5492
LD="$lt_cv_path_LD"
5493
if test -n "$LD"; then
5494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495
$as_echo "$LD" >&6; }
5496
else
5497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498
$as_echo "no" >&6; }
5499
fi
5500
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5502
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5503
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5504
  $as_echo_n "(cached) " >&6
5505
else
5506
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5507
case `$LD -v 2>&1 
5508
*GNU* | *'with BFD'*)
5509
  lt_cv_prog_gnu_ld=yes
5510
  ;;
5511
*)
5512
  lt_cv_prog_gnu_ld=no
5513
  ;;
5514
esac
5515
fi
5516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5518
with_gnu_ld=$lt_cv_prog_gnu_ld
5519
 
5520
 
5521
 
5522
 
5523
 
5524
 
5525
 
5526
 
5527
 
5528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5529
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5530
if test "${lt_cv_path_NM+set}" = set; then :
5531
  $as_echo_n "(cached) " >&6
5532
else
5533
  if test -n "$NM"; then
5534
  # Let the user override the test.
5535
  lt_cv_path_NM="$NM"
5536
else
5537
  lt_nm_to_check="${ac_tool_prefix}nm"
5538
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5539
    lt_nm_to_check="$lt_nm_to_check nm"
5540
  fi
5541
  for lt_tmp_nm in $lt_nm_to_check; do
5542
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5543
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5544
      IFS="$lt_save_ifs"
5545
      test -z "$ac_dir" && ac_dir=.
5546
      tmp_nm="$ac_dir/$lt_tmp_nm"
5547
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5548
        # Check to see if the nm accepts a BSD-compat flag.
5549
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5550
        #   nm: unknown option "B" ignored
5551
        # Tru64's nm complains that /dev/null is an invalid object file
5552
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5553
        */dev/null* | *'Invalid file or object type'*)
5554
          lt_cv_path_NM="$tmp_nm -B"
5555
          break
5556
          ;;
5557
        *)
5558
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5559
          */dev/null*)
5560
            lt_cv_path_NM="$tmp_nm -p"
5561
            break
5562
            ;;
5563
          *)
5564
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5565
            continue # so that we can try to find one that supports BSD flags
5566
            ;;
5567
          esac
5568
          ;;
5569
        esac
5570
      fi
5571
    done
5572
    IFS="$lt_save_ifs"
5573
  done
5574
  : ${lt_cv_path_NM=no}
5575
fi
5576
fi
5577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5578
$as_echo "$lt_cv_path_NM" >&6; }
5579
if test "$lt_cv_path_NM" != "no"; then
5580
  NM="$lt_cv_path_NM"
5581
else
5582
  # Didn't find any BSD compatible name lister, look for dumpbin.
5583
  if test -n "$ac_tool_prefix"; then
5584
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5585
  do
5586
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5587
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589
$as_echo_n "checking for $ac_word... " >&6; }
5590
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5591
  $as_echo_n "(cached) " >&6
5592
else
5593
  if test -n "$DUMPBIN"; then
5594
  ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog"
5604
    $as_echo "$as_me:${as_lineno-$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
DUMPBIN=$ac_cv_prog_DUMPBIN
5614
if test -n "$DUMPBIN"; then
5615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5616
$as_echo "$DUMPBIN" >&6; }
5617
else
5618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619
$as_echo "no" >&6; }
5620
fi
5621
 
5622
 
5623
    test -n "$DUMPBIN" && break
5624
  done
5625
fi
5626
if test -z "$DUMPBIN"; then
5627
  ac_ct_DUMPBIN=$DUMPBIN
5628
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5629
do
5630
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5631
set dummy $ac_prog; ac_word=$2
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633
$as_echo_n "checking for $ac_word... " >&6; }
5634
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5635
  $as_echo_n "(cached) " >&6
5636
else
5637
  if test -n "$ac_ct_DUMPBIN"; then
5638
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5639
else
5640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641
for as_dir in $PATH
5642
do
5643
  IFS=$as_save_IFS
5644
  test -z "$as_dir" && as_dir=.
5645
    for ac_exec_ext in '' $ac_executable_extensions; do
5646
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5648
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649
    break 2
5650
  fi
5651
done
5652
  done
5653
IFS=$as_save_IFS
5654
 
5655
fi
5656
fi
5657
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5658
if test -n "$ac_ct_DUMPBIN"; then
5659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5660
$as_echo "$ac_ct_DUMPBIN" >&6; }
5661
else
5662
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663
$as_echo "no" >&6; }
5664
fi
5665
 
5666
 
5667
  test -n "$ac_ct_DUMPBIN" && break
5668
done
5669
 
5670
  if test "x$ac_ct_DUMPBIN" = x; then
5671
    DUMPBIN=":"
5672
  else
5673
    case $cross_compiling:$ac_tool_warned in
5674
yes:)
5675
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677
ac_tool_warned=yes ;;
5678
esac
5679
    DUMPBIN=$ac_ct_DUMPBIN
5680
  fi
5681
fi
5682
 
5683
 
5684
  if test "$DUMPBIN" != ":"; then
5685
    NM="$DUMPBIN"
5686
  fi
5687
fi
5688
test -z "$NM" && NM=nm
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5696
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5697
if test "${lt_cv_nm_interface+set}" = set; then :
5698
  $as_echo_n "(cached) " >&6
5699
else
5700
  lt_cv_nm_interface="BSD nm"
5701
  echo "int some_variable = 0;" > conftest.$ac_ext
5702
  (eval echo "\"\$as_me:5702: $ac_compile\"" >&5)
5703
  (eval "$ac_compile" 2>conftest.err)
5704
  cat conftest.err >&5
5705
  (eval echo "\"\$as_me:5705: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5706
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5707
  cat conftest.err >&5
5708
  (eval echo "\"\$as_me:5708: output\"" >&5)
5709
  cat conftest.out >&5
5710
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5711
    lt_cv_nm_interface="MS dumpbin"
5712
  fi
5713
  rm -f conftest*
5714
fi
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5716
$as_echo "$lt_cv_nm_interface" >&6; }
5717
 
5718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5719
$as_echo_n "checking whether ln -s works... " >&6; }
5720
LN_S=$as_ln_s
5721
if test "$LN_S" = "ln -s"; then
5722
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723
$as_echo "yes" >&6; }
5724
else
5725
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5726
$as_echo "no, using $LN_S" >&6; }
5727
fi
5728
 
5729
# find the maximum length of command line arguments
5730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5731
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5732
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5733
  $as_echo_n "(cached) " >&6
5734
else
5735
    i=0
5736
  teststring="ABCD"
5737
 
5738
  case $build_os in
5739
  msdosdjgpp*)
5740
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5741
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5742
    # during glob expansion).  Even if it were fixed, the result of this
5743
    # check would be larger than it should be.
5744
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5745
    ;;
5746
 
5747
  gnu*)
5748
    # Under GNU Hurd, this test is not required because there is
5749
    # no limit to the length of command line arguments.
5750
    # Libtool will interpret -1 as no limit whatsoever
5751
    lt_cv_sys_max_cmd_len=-1;
5752
    ;;
5753
 
5754
  cygwin* | mingw* | cegcc*)
5755
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5756
    # about 5 minutes as the teststring grows exponentially.
5757
    # Worse, since 9x/ME are not pre-emptively multitasking,
5758
    # you end up with a "frozen" computer, even though with patience
5759
    # the test eventually succeeds (with a max line length of 256k).
5760
    # Instead, let's just punt: use the minimum linelength reported by
5761
    # all of the supported platforms: 8192 (on NT/2K/XP).
5762
    lt_cv_sys_max_cmd_len=8192;
5763
    ;;
5764
 
5765
  amigaos*)
5766
    # On AmigaOS with pdksh, this test takes hours, literally.
5767
    # So we just punt and use a minimum line length of 8192.
5768
    lt_cv_sys_max_cmd_len=8192;
5769
    ;;
5770
 
5771
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5772
    # This has been around since 386BSD, at least.  Likely further.
5773
    if test -x /sbin/sysctl; then
5774
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5775
    elif test -x /usr/sbin/sysctl; then
5776
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5777
    else
5778
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5779
    fi
5780
    # And add a safety zone
5781
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5782
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5783
    ;;
5784
 
5785
  interix*)
5786
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5787
    lt_cv_sys_max_cmd_len=196608
5788
    ;;
5789
 
5790
  osf*)
5791
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5792
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5793
    # nice to cause kernel panics so lets avoid the loop below.
5794
    # First set a reasonable default.
5795
    lt_cv_sys_max_cmd_len=16384
5796
    #
5797
    if test -x /sbin/sysconfig; then
5798
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5799
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5800
      esac
5801
    fi
5802
    ;;
5803
  sco3.2v5*)
5804
    lt_cv_sys_max_cmd_len=102400
5805
    ;;
5806
  sysv5* | sco5v6* | sysv4.2uw2*)
5807
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5808
    if test -n "$kargmax"; then
5809
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5810
    else
5811
      lt_cv_sys_max_cmd_len=32768
5812
    fi
5813
    ;;
5814
  *)
5815
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5816
    if test -n "$lt_cv_sys_max_cmd_len"; then
5817
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5818
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5819
    else
5820
      # Make teststring a little bigger before we do anything with it.
5821
      # a 1K string should be a reasonable start.
5822
      for i in 1 2 3 4 5 6 7 8 ; do
5823
        teststring=$teststring$teststring
5824
      done
5825
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826
      # If test is not a shell built-in, we'll probably end up computing a
5827
      # maximum length that is only half of the actual maximum length, but
5828
      # we can't tell.
5829
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5830
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5831
              test $i != 17 # 1/2 MB should be enough
5832
      do
5833
        i=`expr $i + 1`
5834
        teststring=$teststring$teststring
5835
      done
5836
      # Only check the string length outside the loop.
5837
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5838
      teststring=
5839
      # Add a significant safety factor because C++ compilers can tack on
5840
      # massive amounts of additional arguments before passing them to the
5841
      # linker.  It appears as though 1/2 is a usable value.
5842
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5843
    fi
5844
    ;;
5845
  esac
5846
 
5847
fi
5848
 
5849
if test -n $lt_cv_sys_max_cmd_len ; then
5850
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5851
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5852
else
5853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5854
$as_echo "none" >&6; }
5855
fi
5856
max_cmd_len=$lt_cv_sys_max_cmd_len
5857
 
5858
 
5859
 
5860
 
5861
 
5862
 
5863
: ${CP="cp -f"}
5864
: ${MV="mv -f"}
5865
: ${RM="rm -f"}
5866
 
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5868
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5869
# Try some XSI features
5870
xsi_shell=no
5871
( _lt_dummy="a/b/c"
5872
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5873
      = c,a/b,, \
5874
    && eval 'test $(( 1 + 1 )) -eq 2 \
5875
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5876
  && xsi_shell=yes
5877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5878
$as_echo "$xsi_shell" >&6; }
5879
 
5880
 
5881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5882
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5883
lt_shell_append=no
5884
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5885
    >/dev/null 2>&1 \
5886
  && lt_shell_append=yes
5887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5888
$as_echo "$lt_shell_append" >&6; }
5889
 
5890
 
5891
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5892
  lt_unset=unset
5893
else
5894
  lt_unset=false
5895
fi
5896
 
5897
 
5898
 
5899
 
5900
 
5901
# test EBCDIC or ASCII
5902
case `echo X|tr X '\101'` in
5903
 A) # ASCII based system
5904
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5905
  lt_SP2NL='tr \040 \012'
5906
  lt_NL2SP='tr \015\012 \040\040'
5907
  ;;
5908
 *) # EBCDIC based system
5909
  lt_SP2NL='tr \100 \n'
5910
  lt_NL2SP='tr \r\n \100\100'
5911
  ;;
5912
esac
5913
 
5914
 
5915
 
5916
 
5917
 
5918
 
5919
 
5920
 
5921
 
5922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5923
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5924
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5925
  $as_echo_n "(cached) " >&6
5926
else
5927
  lt_cv_ld_reload_flag='-r'
5928
fi
5929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5930
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5931
reload_flag=$lt_cv_ld_reload_flag
5932
case $reload_flag in
5933
"" | " "*) ;;
5934
*) reload_flag=" $reload_flag" ;;
5935
esac
5936
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5937
case $host_os in
5938
  darwin*)
5939
    if test "$GCC" = yes; then
5940
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5941
    else
5942
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943
    fi
5944
    ;;
5945
esac
5946
 
5947
 
5948
 
5949
 
5950
 
5951
 
5952
 
5953
 
5954
 
5955
if test -n "$ac_tool_prefix"; then
5956
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5957
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959
$as_echo_n "checking for $ac_word... " >&6; }
5960
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5961
  $as_echo_n "(cached) " >&6
5962
else
5963
  if test -n "$OBJDUMP"; then
5964
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5965
else
5966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967
for as_dir in $PATH
5968
do
5969
  IFS=$as_save_IFS
5970
  test -z "$as_dir" && as_dir=.
5971
    for ac_exec_ext in '' $ac_executable_extensions; do
5972
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5974
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975
    break 2
5976
  fi
5977
done
5978
  done
5979
IFS=$as_save_IFS
5980
 
5981
fi
5982
fi
5983
OBJDUMP=$ac_cv_prog_OBJDUMP
5984
if test -n "$OBJDUMP"; then
5985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5986
$as_echo "$OBJDUMP" >&6; }
5987
else
5988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989
$as_echo "no" >&6; }
5990
fi
5991
 
5992
 
5993
fi
5994
if test -z "$ac_cv_prog_OBJDUMP"; then
5995
  ac_ct_OBJDUMP=$OBJDUMP
5996
  # Extract the first word of "objdump", so it can be a program name with args.
5997
set dummy objdump; ac_word=$2
5998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999
$as_echo_n "checking for $ac_word... " >&6; }
6000
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6001
  $as_echo_n "(cached) " >&6
6002
else
6003
  if test -n "$ac_ct_OBJDUMP"; then
6004
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6005
else
6006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007
for as_dir in $PATH
6008
do
6009
  IFS=$as_save_IFS
6010
  test -z "$as_dir" && as_dir=.
6011
    for ac_exec_ext in '' $ac_executable_extensions; do
6012
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6014
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015
    break 2
6016
  fi
6017
done
6018
  done
6019
IFS=$as_save_IFS
6020
 
6021
fi
6022
fi
6023
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6024
if test -n "$ac_ct_OBJDUMP"; then
6025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6026
$as_echo "$ac_ct_OBJDUMP" >&6; }
6027
else
6028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029
$as_echo "no" >&6; }
6030
fi
6031
 
6032
  if test "x$ac_ct_OBJDUMP" = x; then
6033
    OBJDUMP="false"
6034
  else
6035
    case $cross_compiling:$ac_tool_warned in
6036
yes:)
6037
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039
ac_tool_warned=yes ;;
6040
esac
6041
    OBJDUMP=$ac_ct_OBJDUMP
6042
  fi
6043
else
6044
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6045
fi
6046
 
6047
test -z "$OBJDUMP" && OBJDUMP=objdump
6048
 
6049
 
6050
 
6051
 
6052
 
6053
 
6054
 
6055
 
6056
 
6057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6058
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6059
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6060
  $as_echo_n "(cached) " >&6
6061
else
6062
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6063
lt_cv_file_magic_test_file=
6064
lt_cv_deplibs_check_method='unknown'
6065
# Need to set the preceding variable on all platforms that support
6066
# interlibrary dependencies.
6067
# 'none' -- dependencies not supported.
6068
# `unknown' -- same as none, but documents that we really don't know.
6069
# 'pass_all' -- all dependencies passed with no checks.
6070
# 'test_compile' -- check by making test program.
6071
# 'file_magic [[regex]]' -- check by looking for files in library path
6072
# which responds to the $file_magic_cmd with a given extended regex.
6073
# If you have `file' or equivalent on your system and you're not sure
6074
# whether `pass_all' will *always* work, you probably want this one.
6075
 
6076
case $host_os in
6077
aix[4-9]*)
6078
  lt_cv_deplibs_check_method=pass_all
6079
  ;;
6080
 
6081
beos*)
6082
  lt_cv_deplibs_check_method=pass_all
6083
  ;;
6084
 
6085
bsdi[45]*)
6086
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6087
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6088
  lt_cv_file_magic_test_file=/shlib/libc.so
6089
  ;;
6090
 
6091
cygwin*)
6092
  # func_win32_libid is a shell function defined in ltmain.sh
6093
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6094
  lt_cv_file_magic_cmd='func_win32_libid'
6095
  ;;
6096
 
6097
mingw* | pw32*)
6098
  # Base MSYS/MinGW do not provide the 'file' command needed by
6099
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6100
  # unless we find 'file', for example because we are cross-compiling.
6101
  if ( file / ) >/dev/null 2>&1; then
6102
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103
    lt_cv_file_magic_cmd='func_win32_libid'
6104
  else
6105
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6106
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6107
  fi
6108
  ;;
6109
 
6110
cegcc)
6111
  # use the weaker test based on 'objdump'. See mingw*.
6112
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6113
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6114
  ;;
6115
 
6116
darwin* | rhapsody*)
6117
  lt_cv_deplibs_check_method=pass_all
6118
  ;;
6119
 
6120
freebsd* | dragonfly*)
6121
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6122
    case $host_cpu in
6123
    i*86 )
6124
      # Not sure whether the presence of OpenBSD here was a mistake.
6125
      # Let's accept both of them until this is cleared up.
6126
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6127
      lt_cv_file_magic_cmd=/usr/bin/file
6128
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6129
      ;;
6130
    esac
6131
  else
6132
    lt_cv_deplibs_check_method=pass_all
6133
  fi
6134
  ;;
6135
 
6136
gnu*)
6137
  lt_cv_deplibs_check_method=pass_all
6138
  ;;
6139
 
6140
hpux10.20* | hpux11*)
6141
  lt_cv_file_magic_cmd=/usr/bin/file
6142
  case $host_cpu in
6143
  ia64*)
6144
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6145
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6146
    ;;
6147
  hppa*64*)
6148
    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]'
6149
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6150
    ;;
6151
  *)
6152
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6153
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6154
    ;;
6155
  esac
6156
  ;;
6157
 
6158
interix[3-9]*)
6159
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6160
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6161
  ;;
6162
 
6163
irix5* | irix6* | nonstopux*)
6164
  case $LD in
6165
  *-32|*"-32 ") libmagic=32-bit;;
6166
  *-n32|*"-n32 ") libmagic=N32;;
6167
  *-64|*"-64 ") libmagic=64-bit;;
6168
  *) libmagic=never-match;;
6169
  esac
6170
  lt_cv_deplibs_check_method=pass_all
6171
  ;;
6172
 
6173
# This must be Linux ELF.
6174
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6175
  lt_cv_deplibs_check_method=pass_all
6176
  ;;
6177
 
6178
netbsd*)
6179
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6181
  else
6182
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6183
  fi
6184
  ;;
6185
 
6186
newos6*)
6187
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6188
  lt_cv_file_magic_cmd=/usr/bin/file
6189
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6190
  ;;
6191
 
6192
*nto* | *qnx*)
6193
  lt_cv_deplibs_check_method=pass_all
6194
  ;;
6195
 
6196
openbsd*)
6197
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6198
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6199
  else
6200
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6201
  fi
6202
  ;;
6203
 
6204
osf3* | osf4* | osf5*)
6205
  lt_cv_deplibs_check_method=pass_all
6206
  ;;
6207
 
6208
rdos*)
6209
  lt_cv_deplibs_check_method=pass_all
6210
  ;;
6211
 
6212
solaris*)
6213
  lt_cv_deplibs_check_method=pass_all
6214
  ;;
6215
 
6216
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217
  lt_cv_deplibs_check_method=pass_all
6218
  ;;
6219
 
6220
sysv4 | sysv4.3*)
6221
  case $host_vendor in
6222
  motorola)
6223
    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]'
6224
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6225
    ;;
6226
  ncr)
6227
    lt_cv_deplibs_check_method=pass_all
6228
    ;;
6229
  sequent)
6230
    lt_cv_file_magic_cmd='/bin/file'
6231
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6232
    ;;
6233
  sni)
6234
    lt_cv_file_magic_cmd='/bin/file'
6235
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6236
    lt_cv_file_magic_test_file=/lib/libc.so
6237
    ;;
6238
  siemens)
6239
    lt_cv_deplibs_check_method=pass_all
6240
    ;;
6241
  pc)
6242
    lt_cv_deplibs_check_method=pass_all
6243
    ;;
6244
  esac
6245
  ;;
6246
 
6247
tpf*)
6248
  lt_cv_deplibs_check_method=pass_all
6249
  ;;
6250
esac
6251
 
6252
fi
6253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6254
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6255
file_magic_cmd=$lt_cv_file_magic_cmd
6256
deplibs_check_method=$lt_cv_deplibs_check_method
6257
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6258
 
6259
 
6260
 
6261
 
6262
 
6263
 
6264
 
6265
 
6266
 
6267
 
6268
 
6269
 
6270
if test -n "$ac_tool_prefix"; then
6271
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6272
set dummy ${ac_tool_prefix}ar; ac_word=$2
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274
$as_echo_n "checking for $ac_word... " >&6; }
6275
if test "${ac_cv_prog_AR+set}" = set; then :
6276
  $as_echo_n "(cached) " >&6
6277
else
6278
  if test -n "$AR"; then
6279
  ac_cv_prog_AR="$AR" # Let the user override the test.
6280
else
6281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282
for as_dir in $PATH
6283
do
6284
  IFS=$as_save_IFS
6285
  test -z "$as_dir" && as_dir=.
6286
    for ac_exec_ext in '' $ac_executable_extensions; do
6287
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6289
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290
    break 2
6291
  fi
6292
done
6293
  done
6294
IFS=$as_save_IFS
6295
 
6296
fi
6297
fi
6298
AR=$ac_cv_prog_AR
6299
if test -n "$AR"; then
6300
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6301
$as_echo "$AR" >&6; }
6302
else
6303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304
$as_echo "no" >&6; }
6305
fi
6306
 
6307
 
6308
fi
6309
if test -z "$ac_cv_prog_AR"; then
6310
  ac_ct_AR=$AR
6311
  # Extract the first word of "ar", so it can be a program name with args.
6312
set dummy ar; ac_word=$2
6313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314
$as_echo_n "checking for $ac_word... " >&6; }
6315
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6316
  $as_echo_n "(cached) " >&6
6317
else
6318
  if test -n "$ac_ct_AR"; then
6319
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6320
else
6321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322
for as_dir in $PATH
6323
do
6324
  IFS=$as_save_IFS
6325
  test -z "$as_dir" && as_dir=.
6326
    for ac_exec_ext in '' $ac_executable_extensions; do
6327
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328
    ac_cv_prog_ac_ct_AR="ar"
6329
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330
    break 2
6331
  fi
6332
done
6333
  done
6334
IFS=$as_save_IFS
6335
 
6336
fi
6337
fi
6338
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6339
if test -n "$ac_ct_AR"; then
6340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6341
$as_echo "$ac_ct_AR" >&6; }
6342
else
6343
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344
$as_echo "no" >&6; }
6345
fi
6346
 
6347
  if test "x$ac_ct_AR" = x; then
6348
    AR="false"
6349
  else
6350
    case $cross_compiling:$ac_tool_warned in
6351
yes:)
6352
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354
ac_tool_warned=yes ;;
6355
esac
6356
    AR=$ac_ct_AR
6357
  fi
6358
else
6359
  AR="$ac_cv_prog_AR"
6360
fi
6361
 
6362
test -z "$AR" && AR=ar
6363
test -z "$AR_FLAGS" && AR_FLAGS=cru
6364
 
6365
 
6366
 
6367
 
6368
 
6369
 
6370
 
6371
 
6372
 
6373
 
6374
 
6375
if test -n "$ac_tool_prefix"; then
6376
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377
set dummy ${ac_tool_prefix}strip; ac_word=$2
6378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379
$as_echo_n "checking for $ac_word... " >&6; }
6380
if test "${ac_cv_prog_STRIP+set}" = set; then :
6381
  $as_echo_n "(cached) " >&6
6382
else
6383
  if test -n "$STRIP"; then
6384
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385
else
6386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387
for as_dir in $PATH
6388
do
6389
  IFS=$as_save_IFS
6390
  test -z "$as_dir" && as_dir=.
6391
    for ac_exec_ext in '' $ac_executable_extensions; do
6392
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395
    break 2
6396
  fi
6397
done
6398
  done
6399
IFS=$as_save_IFS
6400
 
6401
fi
6402
fi
6403
STRIP=$ac_cv_prog_STRIP
6404
if test -n "$STRIP"; then
6405
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6406
$as_echo "$STRIP" >&6; }
6407
else
6408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409
$as_echo "no" >&6; }
6410
fi
6411
 
6412
 
6413
fi
6414
if test -z "$ac_cv_prog_STRIP"; then
6415
  ac_ct_STRIP=$STRIP
6416
  # Extract the first word of "strip", so it can be a program name with args.
6417
set dummy strip; ac_word=$2
6418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419
$as_echo_n "checking for $ac_word... " >&6; }
6420
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6421
  $as_echo_n "(cached) " >&6
6422
else
6423
  if test -n "$ac_ct_STRIP"; then
6424
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6425
else
6426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427
for as_dir in $PATH
6428
do
6429
  IFS=$as_save_IFS
6430
  test -z "$as_dir" && as_dir=.
6431
    for ac_exec_ext in '' $ac_executable_extensions; do
6432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433
    ac_cv_prog_ac_ct_STRIP="strip"
6434
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435
    break 2
6436
  fi
6437
done
6438
  done
6439
IFS=$as_save_IFS
6440
 
6441
fi
6442
fi
6443
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6444
if test -n "$ac_ct_STRIP"; then
6445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6446
$as_echo "$ac_ct_STRIP" >&6; }
6447
else
6448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449
$as_echo "no" >&6; }
6450
fi
6451
 
6452
  if test "x$ac_ct_STRIP" = x; then
6453
    STRIP=":"
6454
  else
6455
    case $cross_compiling:$ac_tool_warned in
6456
yes:)
6457
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459
ac_tool_warned=yes ;;
6460
esac
6461
    STRIP=$ac_ct_STRIP
6462
  fi
6463
else
6464
  STRIP="$ac_cv_prog_STRIP"
6465
fi
6466
 
6467
test -z "$STRIP" && STRIP=:
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
if test -n "$ac_tool_prefix"; then
6475
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6476
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478
$as_echo_n "checking for $ac_word... " >&6; }
6479
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6480
  $as_echo_n "(cached) " >&6
6481
else
6482
  if test -n "$RANLIB"; then
6483
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6484
else
6485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486
for as_dir in $PATH
6487
do
6488
  IFS=$as_save_IFS
6489
  test -z "$as_dir" && as_dir=.
6490
    for ac_exec_ext in '' $ac_executable_extensions; do
6491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6493
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494
    break 2
6495
  fi
6496
done
6497
  done
6498
IFS=$as_save_IFS
6499
 
6500
fi
6501
fi
6502
RANLIB=$ac_cv_prog_RANLIB
6503
if test -n "$RANLIB"; then
6504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6505
$as_echo "$RANLIB" >&6; }
6506
else
6507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508
$as_echo "no" >&6; }
6509
fi
6510
 
6511
 
6512
fi
6513
if test -z "$ac_cv_prog_RANLIB"; then
6514
  ac_ct_RANLIB=$RANLIB
6515
  # Extract the first word of "ranlib", so it can be a program name with args.
6516
set dummy ranlib; ac_word=$2
6517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518
$as_echo_n "checking for $ac_word... " >&6; }
6519
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6520
  $as_echo_n "(cached) " >&6
6521
else
6522
  if test -n "$ac_ct_RANLIB"; then
6523
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6524
else
6525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526
for as_dir in $PATH
6527
do
6528
  IFS=$as_save_IFS
6529
  test -z "$as_dir" && as_dir=.
6530
    for ac_exec_ext in '' $ac_executable_extensions; do
6531
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6533
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534
    break 2
6535
  fi
6536
done
6537
  done
6538
IFS=$as_save_IFS
6539
 
6540
fi
6541
fi
6542
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6543
if test -n "$ac_ct_RANLIB"; then
6544
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6545
$as_echo "$ac_ct_RANLIB" >&6; }
6546
else
6547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548
$as_echo "no" >&6; }
6549
fi
6550
 
6551
  if test "x$ac_ct_RANLIB" = x; then
6552
    RANLIB=":"
6553
  else
6554
    case $cross_compiling:$ac_tool_warned in
6555
yes:)
6556
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558
ac_tool_warned=yes ;;
6559
esac
6560
    RANLIB=$ac_ct_RANLIB
6561
  fi
6562
else
6563
  RANLIB="$ac_cv_prog_RANLIB"
6564
fi
6565
 
6566
test -z "$RANLIB" && RANLIB=:
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
# Determine commands to create old-style static archives.
6574
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6575
old_postinstall_cmds='chmod 644 $oldlib'
6576
old_postuninstall_cmds=
6577
 
6578
if test -n "$RANLIB"; then
6579
  case $host_os in
6580
  openbsd*)
6581
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6582
    ;;
6583
  *)
6584
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6585
    ;;
6586
  esac
6587
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6588
fi
6589
 
6590
 
6591
 
6592
 
6593
 
6594
 
6595
 
6596
 
6597
 
6598
 
6599
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610
 
6611
 
6612
 
6613
 
6614
 
6615
 
6616
 
6617
 
6618
 
6619
 
6620
 
6621
 
6622
 
6623
# If no C compiler was specified, use CC.
6624
LTCC=${LTCC-"$CC"}
6625
 
6626
# If no C compiler flags were specified, use CFLAGS.
6627
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6628
 
6629
# Allow CC to be a program name with arguments.
6630
compiler=$CC
6631
 
6632
 
6633
# Check for command to grab the raw symbol name followed by C symbol from nm.
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6635
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6636
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6637
  $as_echo_n "(cached) " >&6
6638
else
6639
 
6640
# These are sane defaults that work on at least a few old systems.
6641
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6642
 
6643
# Character class describing NM global symbol codes.
6644
symcode='[BCDEGRST]'
6645
 
6646
# Regexp to match symbols that can be accessed directly from C.
6647
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6648
 
6649
# Define system-specific variables.
6650
case $host_os in
6651
aix*)
6652
  symcode='[BCDT]'
6653
  ;;
6654
cygwin* | mingw* | pw32* | cegcc*)
6655
  symcode='[ABCDGISTW]'
6656
  ;;
6657
hpux*)
6658
  if test "$host_cpu" = ia64; then
6659
    symcode='[ABCDEGRST]'
6660
  fi
6661
  ;;
6662
irix* | nonstopux*)
6663
  symcode='[BCDEGRST]'
6664
  ;;
6665
osf*)
6666
  symcode='[BCDEGQRST]'
6667
  ;;
6668
solaris*)
6669
  symcode='[BDRT]'
6670
  ;;
6671
sco3.2v5*)
6672
  symcode='[DT]'
6673
  ;;
6674
sysv4.2uw2*)
6675
  symcode='[DT]'
6676
  ;;
6677
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6678
  symcode='[ABDT]'
6679
  ;;
6680
sysv4)
6681
  symcode='[DFNSTU]'
6682
  ;;
6683
esac
6684
 
6685
# If we're using GNU nm, then use its standard symbol codes.
6686
case `$NM -V 2>&1` in
6687
*GNU* | *'with BFD'*)
6688
  symcode='[ABCDGIRSTW]' ;;
6689
esac
6690
 
6691
# Transform an extracted symbol line into a proper C declaration.
6692
# Some systems (esp. on ia64) link data and code symbols differently,
6693
# so use this general approach.
6694
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6695
 
6696
# Transform an extracted symbol line into symbol name and symbol address
6697
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6698
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'"
6699
 
6700
# Handle CRLF in mingw tool chain
6701
opt_cr=
6702
case $build_os in
6703
mingw*)
6704
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6705
  ;;
6706
esac
6707
 
6708
# Try without a prefix underscore, then with it.
6709
for ac_symprfx in "" "_"; do
6710
 
6711
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6712
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6713
 
6714
  # Write the raw and C identifiers.
6715
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6716
    # Fake it for dumpbin and say T for any non-static function
6717
    # and D for any global variable.
6718
    # Also find C++ and __fastcall symbols from MSVC++,
6719
    # which start with @ or ?.
6720
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6721
"     {last_section=section; section=\$ 3};"\
6722
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6723
"     \$ 0!~/External *\|/{next};"\
6724
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6725
"     {if(hide[section]) next};"\
6726
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6727
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6728
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6729
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6730
"     ' prfx=^$ac_symprfx"
6731
  else
6732
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6733
  fi
6734
 
6735
  # Check to see that the pipe works correctly.
6736
  pipe_works=no
6737
 
6738
  rm -f conftest*
6739
  cat > conftest.$ac_ext <<_LT_EOF
6740
#ifdef __cplusplus
6741
extern "C" {
6742
#endif
6743
char nm_test_var;
6744
void nm_test_func(void);
6745
void nm_test_func(void){}
6746
#ifdef __cplusplus
6747
}
6748
#endif
6749
int main(){nm_test_var='a';nm_test_func();return(0);}
6750
_LT_EOF
6751
 
6752
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753
  (eval $ac_compile) 2>&5
6754
  ac_status=$?
6755
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756
  test $ac_status = 0; }; then
6757
    # Now try to grab the symbols.
6758
    nlist=conftest.nm
6759
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6760
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6761
  ac_status=$?
6762
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763
  test $ac_status = 0; } && test -s "$nlist"; then
6764
      # Try sorting and uniquifying the output.
6765
      if sort "$nlist" | uniq > "$nlist"T; then
6766
        mv -f "$nlist"T "$nlist"
6767
      else
6768
        rm -f "$nlist"T
6769
      fi
6770
 
6771
      # Make sure that we snagged all the symbols we need.
6772
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6773
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6774
          cat <<_LT_EOF > conftest.$ac_ext
6775
#ifdef __cplusplus
6776
extern "C" {
6777
#endif
6778
 
6779
_LT_EOF
6780
          # Now generate the symbol file.
6781
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6782
 
6783
          cat <<_LT_EOF >> conftest.$ac_ext
6784
 
6785
/* The mapping between symbol names and symbols.  */
6786
const struct {
6787
  const char *name;
6788
  void       *address;
6789
}
6790
lt__PROGRAM__LTX_preloaded_symbols[] =
6791
{
6792
  { "@PROGRAM@", (void *) 0 },
6793
_LT_EOF
6794
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6795
          cat <<\_LT_EOF >> conftest.$ac_ext
6796
  {0, (void *) 0}
6797
};
6798
 
6799
/* This works around a problem in FreeBSD linker */
6800
#ifdef FREEBSD_WORKAROUND
6801
static const void *lt_preloaded_setup() {
6802
  return lt__PROGRAM__LTX_preloaded_symbols;
6803
}
6804
#endif
6805
 
6806
#ifdef __cplusplus
6807
}
6808
#endif
6809
_LT_EOF
6810
          # Now try linking the two files.
6811
          mv conftest.$ac_objext conftstm.$ac_objext
6812
          lt_save_LIBS="$LIBS"
6813
          lt_save_CFLAGS="$CFLAGS"
6814
          LIBS="conftstm.$ac_objext"
6815
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6816
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6817
  (eval $ac_link) 2>&5
6818
  ac_status=$?
6819
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6821
            pipe_works=yes
6822
          fi
6823
          LIBS="$lt_save_LIBS"
6824
          CFLAGS="$lt_save_CFLAGS"
6825
        else
6826
          echo "cannot find nm_test_func in $nlist" >&5
6827
        fi
6828
      else
6829
        echo "cannot find nm_test_var in $nlist" >&5
6830
      fi
6831
    else
6832
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6833
    fi
6834
  else
6835
    echo "$progname: failed program was:" >&5
6836
    cat conftest.$ac_ext >&5
6837
  fi
6838
  rm -rf conftest* conftst*
6839
 
6840
  # Do not use the global_symbol_pipe unless it works.
6841
  if test "$pipe_works" = yes; then
6842
    break
6843
  else
6844
    lt_cv_sys_global_symbol_pipe=
6845
  fi
6846
done
6847
 
6848
fi
6849
 
6850
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6851
  lt_cv_sys_global_symbol_to_cdecl=
6852
fi
6853
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6854
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6855
$as_echo "failed" >&6; }
6856
else
6857
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6858
$as_echo "ok" >&6; }
6859
fi
6860
 
6861
 
6862
 
6863
 
6864
 
6865
 
6866
 
6867
 
6868
 
6869
 
6870
 
6871
 
6872
 
6873
 
6874
 
6875
 
6876
 
6877
 
6878
 
6879
 
6880
 
6881
 
6882
# Check whether --enable-libtool-lock was given.
6883
if test "${enable_libtool_lock+set}" = set; then :
6884
  enableval=$enable_libtool_lock;
6885
fi
6886
 
6887
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6888
 
6889
# Some flags need to be propagated to the compiler or linker for good
6890
# libtool support.
6891
case $host in
6892
ia64-*-hpux*)
6893
  # Find out which ABI we are using.
6894
  echo 'int i;' > conftest.$ac_ext
6895
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896
  (eval $ac_compile) 2>&5
6897
  ac_status=$?
6898
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899
  test $ac_status = 0; }; then
6900
    case `/usr/bin/file conftest.$ac_objext` in
6901
      *ELF-32*)
6902
        HPUX_IA64_MODE="32"
6903
        ;;
6904
      *ELF-64*)
6905
        HPUX_IA64_MODE="64"
6906
        ;;
6907
    esac
6908
  fi
6909
  rm -rf conftest*
6910
  ;;
6911
*-*-irix6*)
6912
  # Find out which ABI we are using.
6913
  echo '#line 6913 "configure"' > conftest.$ac_ext
6914
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915
  (eval $ac_compile) 2>&5
6916
  ac_status=$?
6917
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918
  test $ac_status = 0; }; then
6919
    if test "$lt_cv_prog_gnu_ld" = yes; then
6920
      case `/usr/bin/file conftest.$ac_objext` in
6921
        *32-bit*)
6922
          LD="${LD-ld} -melf32bsmip"
6923
          ;;
6924
        *N32*)
6925
          LD="${LD-ld} -melf32bmipn32"
6926
          ;;
6927
        *64-bit*)
6928
          LD="${LD-ld} -melf64bmip"
6929
        ;;
6930
      esac
6931
    else
6932
      case `/usr/bin/file conftest.$ac_objext` in
6933
        *32-bit*)
6934
          LD="${LD-ld} -32"
6935
          ;;
6936
        *N32*)
6937
          LD="${LD-ld} -n32"
6938
          ;;
6939
        *64-bit*)
6940
          LD="${LD-ld} -64"
6941
          ;;
6942
      esac
6943
    fi
6944
  fi
6945
  rm -rf conftest*
6946
  ;;
6947
 
6948
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6949
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6950
  # Find out which ABI we are using.
6951
  echo 'int i;' > conftest.$ac_ext
6952
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6953
  (eval $ac_compile) 2>&5
6954
  ac_status=$?
6955
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956
  test $ac_status = 0; }; then
6957
    case `/usr/bin/file conftest.o` in
6958
      *32-bit*)
6959
        case $host in
6960
          x86_64-*kfreebsd*-gnu)
6961
            LD="${LD-ld} -m elf_i386_fbsd"
6962
            ;;
6963
          x86_64-*linux*)
6964
            LD="${LD-ld} -m elf_i386"
6965
            ;;
6966
          ppc64-*linux*|powerpc64-*linux*)
6967
            LD="${LD-ld} -m elf32ppclinux"
6968
            ;;
6969
          s390x-*linux*)
6970
            LD="${LD-ld} -m elf_s390"
6971
            ;;
6972
          sparc64-*linux*)
6973
            LD="${LD-ld} -m elf32_sparc"
6974
            ;;
6975
        esac
6976
        ;;
6977
      *64-bit*)
6978
        case $host in
6979
          x86_64-*kfreebsd*-gnu)
6980
            LD="${LD-ld} -m elf_x86_64_fbsd"
6981
            ;;
6982
          x86_64-*linux*)
6983
            LD="${LD-ld} -m elf_x86_64"
6984
            ;;
6985
          ppc*-*linux*|powerpc*-*linux*)
6986
            LD="${LD-ld} -m elf64ppc"
6987
            ;;
6988
          s390*-*linux*|s390*-*tpf*)
6989
            LD="${LD-ld} -m elf64_s390"
6990
            ;;
6991
          sparc*-*linux*)
6992
            LD="${LD-ld} -m elf64_sparc"
6993
            ;;
6994
        esac
6995
        ;;
6996
    esac
6997
  fi
6998
  rm -rf conftest*
6999
  ;;
7000
 
7001
*-*-sco3.2v5*)
7002
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7003
  SAVE_CFLAGS="$CFLAGS"
7004
  CFLAGS="$CFLAGS -belf"
7005
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7006
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7007
if test "${lt_cv_cc_needs_belf+set}" = set; then :
7008
  $as_echo_n "(cached) " >&6
7009
else
7010
  ac_ext=c
7011
ac_cpp='$CPP $CPPFLAGS'
7012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
 
7016
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017
/* end confdefs.h.  */
7018
 
7019
int
7020
main ()
7021
{
7022
 
7023
  ;
7024
  return 0;
7025
}
7026
_ACEOF
7027
if ac_fn_c_try_link "$LINENO"; then :
7028
  lt_cv_cc_needs_belf=yes
7029
else
7030
  lt_cv_cc_needs_belf=no
7031
fi
7032
rm -f core conftest.err conftest.$ac_objext \
7033
    conftest$ac_exeext conftest.$ac_ext
7034
     ac_ext=c
7035
ac_cpp='$CPP $CPPFLAGS'
7036
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
 
7040
fi
7041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7042
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7043
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7044
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7045
    CFLAGS="$SAVE_CFLAGS"
7046
  fi
7047
  ;;
7048
sparc*-*solaris*)
7049
  # Find out which ABI we are using.
7050
  echo 'int i;' > conftest.$ac_ext
7051
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7052
  (eval $ac_compile) 2>&5
7053
  ac_status=$?
7054
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055
  test $ac_status = 0; }; then
7056
    case `/usr/bin/file conftest.o` in
7057
    *64-bit*)
7058
      case $lt_cv_prog_gnu_ld in
7059
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7060
      *)
7061
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7062
          LD="${LD-ld} -64"
7063
        fi
7064
        ;;
7065
      esac
7066
      ;;
7067
    esac
7068
  fi
7069
  rm -rf conftest*
7070
  ;;
7071
esac
7072
 
7073
need_locks="$enable_libtool_lock"
7074
 
7075
 
7076
  case $host_os in
7077
    rhapsody* | darwin*)
7078
    if test -n "$ac_tool_prefix"; then
7079
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7080
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082
$as_echo_n "checking for $ac_word... " >&6; }
7083
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7084
  $as_echo_n "(cached) " >&6
7085
else
7086
  if test -n "$DSYMUTIL"; then
7087
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7088
else
7089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090
for as_dir in $PATH
7091
do
7092
  IFS=$as_save_IFS
7093
  test -z "$as_dir" && as_dir=.
7094
    for ac_exec_ext in '' $ac_executable_extensions; do
7095
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7097
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098
    break 2
7099
  fi
7100
done
7101
  done
7102
IFS=$as_save_IFS
7103
 
7104
fi
7105
fi
7106
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7107
if test -n "$DSYMUTIL"; then
7108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7109
$as_echo "$DSYMUTIL" >&6; }
7110
else
7111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112
$as_echo "no" >&6; }
7113
fi
7114
 
7115
 
7116
fi
7117
if test -z "$ac_cv_prog_DSYMUTIL"; then
7118
  ac_ct_DSYMUTIL=$DSYMUTIL
7119
  # Extract the first word of "dsymutil", so it can be a program name with args.
7120
set dummy dsymutil; ac_word=$2
7121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122
$as_echo_n "checking for $ac_word... " >&6; }
7123
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7124
  $as_echo_n "(cached) " >&6
7125
else
7126
  if test -n "$ac_ct_DSYMUTIL"; then
7127
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7128
else
7129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130
for as_dir in $PATH
7131
do
7132
  IFS=$as_save_IFS
7133
  test -z "$as_dir" && as_dir=.
7134
    for ac_exec_ext in '' $ac_executable_extensions; do
7135
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7137
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138
    break 2
7139
  fi
7140
done
7141
  done
7142
IFS=$as_save_IFS
7143
 
7144
fi
7145
fi
7146
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7147
if test -n "$ac_ct_DSYMUTIL"; then
7148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7149
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7150
else
7151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152
$as_echo "no" >&6; }
7153
fi
7154
 
7155
  if test "x$ac_ct_DSYMUTIL" = x; then
7156
    DSYMUTIL=":"
7157
  else
7158
    case $cross_compiling:$ac_tool_warned in
7159
yes:)
7160
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162
ac_tool_warned=yes ;;
7163
esac
7164
    DSYMUTIL=$ac_ct_DSYMUTIL
7165
  fi
7166
else
7167
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7168
fi
7169
 
7170
    if test -n "$ac_tool_prefix"; then
7171
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7172
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174
$as_echo_n "checking for $ac_word... " >&6; }
7175
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7176
  $as_echo_n "(cached) " >&6
7177
else
7178
  if test -n "$NMEDIT"; then
7179
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7180
else
7181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182
for as_dir in $PATH
7183
do
7184
  IFS=$as_save_IFS
7185
  test -z "$as_dir" && as_dir=.
7186
    for ac_exec_ext in '' $ac_executable_extensions; do
7187
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7189
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190
    break 2
7191
  fi
7192
done
7193
  done
7194
IFS=$as_save_IFS
7195
 
7196
fi
7197
fi
7198
NMEDIT=$ac_cv_prog_NMEDIT
7199
if test -n "$NMEDIT"; then
7200
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7201
$as_echo "$NMEDIT" >&6; }
7202
else
7203
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204
$as_echo "no" >&6; }
7205
fi
7206
 
7207
 
7208
fi
7209
if test -z "$ac_cv_prog_NMEDIT"; then
7210
  ac_ct_NMEDIT=$NMEDIT
7211
  # Extract the first word of "nmedit", so it can be a program name with args.
7212
set dummy nmedit; ac_word=$2
7213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214
$as_echo_n "checking for $ac_word... " >&6; }
7215
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7216
  $as_echo_n "(cached) " >&6
7217
else
7218
  if test -n "$ac_ct_NMEDIT"; then
7219
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7220
else
7221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222
for as_dir in $PATH
7223
do
7224
  IFS=$as_save_IFS
7225
  test -z "$as_dir" && as_dir=.
7226
    for ac_exec_ext in '' $ac_executable_extensions; do
7227
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7229
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230
    break 2
7231
  fi
7232
done
7233
  done
7234
IFS=$as_save_IFS
7235
 
7236
fi
7237
fi
7238
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7239
if test -n "$ac_ct_NMEDIT"; then
7240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7241
$as_echo "$ac_ct_NMEDIT" >&6; }
7242
else
7243
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244
$as_echo "no" >&6; }
7245
fi
7246
 
7247
  if test "x$ac_ct_NMEDIT" = x; then
7248
    NMEDIT=":"
7249
  else
7250
    case $cross_compiling:$ac_tool_warned in
7251
yes:)
7252
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254
ac_tool_warned=yes ;;
7255
esac
7256
    NMEDIT=$ac_ct_NMEDIT
7257
  fi
7258
else
7259
  NMEDIT="$ac_cv_prog_NMEDIT"
7260
fi
7261
 
7262
    if test -n "$ac_tool_prefix"; then
7263
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7264
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266
$as_echo_n "checking for $ac_word... " >&6; }
7267
if test "${ac_cv_prog_LIPO+set}" = set; then :
7268
  $as_echo_n "(cached) " >&6
7269
else
7270
  if test -n "$LIPO"; then
7271
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7272
else
7273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274
for as_dir in $PATH
7275
do
7276
  IFS=$as_save_IFS
7277
  test -z "$as_dir" && as_dir=.
7278
    for ac_exec_ext in '' $ac_executable_extensions; do
7279
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7281
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282
    break 2
7283
  fi
7284
done
7285
  done
7286
IFS=$as_save_IFS
7287
 
7288
fi
7289
fi
7290
LIPO=$ac_cv_prog_LIPO
7291
if test -n "$LIPO"; then
7292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7293
$as_echo "$LIPO" >&6; }
7294
else
7295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296
$as_echo "no" >&6; }
7297
fi
7298
 
7299
 
7300
fi
7301
if test -z "$ac_cv_prog_LIPO"; then
7302
  ac_ct_LIPO=$LIPO
7303
  # Extract the first word of "lipo", so it can be a program name with args.
7304
set dummy lipo; ac_word=$2
7305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306
$as_echo_n "checking for $ac_word... " >&6; }
7307
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7308
  $as_echo_n "(cached) " >&6
7309
else
7310
  if test -n "$ac_ct_LIPO"; then
7311
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7312
else
7313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314
for as_dir in $PATH
7315
do
7316
  IFS=$as_save_IFS
7317
  test -z "$as_dir" && as_dir=.
7318
    for ac_exec_ext in '' $ac_executable_extensions; do
7319
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320
    ac_cv_prog_ac_ct_LIPO="lipo"
7321
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322
    break 2
7323
  fi
7324
done
7325
  done
7326
IFS=$as_save_IFS
7327
 
7328
fi
7329
fi
7330
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7331
if test -n "$ac_ct_LIPO"; then
7332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7333
$as_echo "$ac_ct_LIPO" >&6; }
7334
else
7335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336
$as_echo "no" >&6; }
7337
fi
7338
 
7339
  if test "x$ac_ct_LIPO" = x; then
7340
    LIPO=":"
7341
  else
7342
    case $cross_compiling:$ac_tool_warned in
7343
yes:)
7344
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346
ac_tool_warned=yes ;;
7347
esac
7348
    LIPO=$ac_ct_LIPO
7349
  fi
7350
else
7351
  LIPO="$ac_cv_prog_LIPO"
7352
fi
7353
 
7354
    if test -n "$ac_tool_prefix"; then
7355
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7356
set dummy ${ac_tool_prefix}otool; ac_word=$2
7357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358
$as_echo_n "checking for $ac_word... " >&6; }
7359
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7360
  $as_echo_n "(cached) " >&6
7361
else
7362
  if test -n "$OTOOL"; then
7363
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7364
else
7365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366
for as_dir in $PATH
7367
do
7368
  IFS=$as_save_IFS
7369
  test -z "$as_dir" && as_dir=.
7370
    for ac_exec_ext in '' $ac_executable_extensions; do
7371
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7373
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374
    break 2
7375
  fi
7376
done
7377
  done
7378
IFS=$as_save_IFS
7379
 
7380
fi
7381
fi
7382
OTOOL=$ac_cv_prog_OTOOL
7383
if test -n "$OTOOL"; then
7384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7385
$as_echo "$OTOOL" >&6; }
7386
else
7387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388
$as_echo "no" >&6; }
7389
fi
7390
 
7391
 
7392
fi
7393
if test -z "$ac_cv_prog_OTOOL"; then
7394
  ac_ct_OTOOL=$OTOOL
7395
  # Extract the first word of "otool", so it can be a program name with args.
7396
set dummy otool; ac_word=$2
7397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398
$as_echo_n "checking for $ac_word... " >&6; }
7399
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7400
  $as_echo_n "(cached) " >&6
7401
else
7402
  if test -n "$ac_ct_OTOOL"; then
7403
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7404
else
7405
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406
for as_dir in $PATH
7407
do
7408
  IFS=$as_save_IFS
7409
  test -z "$as_dir" && as_dir=.
7410
    for ac_exec_ext in '' $ac_executable_extensions; do
7411
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412
    ac_cv_prog_ac_ct_OTOOL="otool"
7413
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414
    break 2
7415
  fi
7416
done
7417
  done
7418
IFS=$as_save_IFS
7419
 
7420
fi
7421
fi
7422
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7423
if test -n "$ac_ct_OTOOL"; then
7424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7425
$as_echo "$ac_ct_OTOOL" >&6; }
7426
else
7427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428
$as_echo "no" >&6; }
7429
fi
7430
 
7431
  if test "x$ac_ct_OTOOL" = x; then
7432
    OTOOL=":"
7433
  else
7434
    case $cross_compiling:$ac_tool_warned in
7435
yes:)
7436
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438
ac_tool_warned=yes ;;
7439
esac
7440
    OTOOL=$ac_ct_OTOOL
7441
  fi
7442
else
7443
  OTOOL="$ac_cv_prog_OTOOL"
7444
fi
7445
 
7446
    if test -n "$ac_tool_prefix"; then
7447
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7448
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450
$as_echo_n "checking for $ac_word... " >&6; }
7451
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7452
  $as_echo_n "(cached) " >&6
7453
else
7454
  if test -n "$OTOOL64"; then
7455
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7456
else
7457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458
for as_dir in $PATH
7459
do
7460
  IFS=$as_save_IFS
7461
  test -z "$as_dir" && as_dir=.
7462
    for ac_exec_ext in '' $ac_executable_extensions; do
7463
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7465
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466
    break 2
7467
  fi
7468
done
7469
  done
7470
IFS=$as_save_IFS
7471
 
7472
fi
7473
fi
7474
OTOOL64=$ac_cv_prog_OTOOL64
7475
if test -n "$OTOOL64"; then
7476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7477
$as_echo "$OTOOL64" >&6; }
7478
else
7479
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480
$as_echo "no" >&6; }
7481
fi
7482
 
7483
 
7484
fi
7485
if test -z "$ac_cv_prog_OTOOL64"; then
7486
  ac_ct_OTOOL64=$OTOOL64
7487
  # Extract the first word of "otool64", so it can be a program name with args.
7488
set dummy otool64; ac_word=$2
7489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490
$as_echo_n "checking for $ac_word... " >&6; }
7491
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7492
  $as_echo_n "(cached) " >&6
7493
else
7494
  if test -n "$ac_ct_OTOOL64"; then
7495
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7496
else
7497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498
for as_dir in $PATH
7499
do
7500
  IFS=$as_save_IFS
7501
  test -z "$as_dir" && as_dir=.
7502
    for ac_exec_ext in '' $ac_executable_extensions; do
7503
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7505
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506
    break 2
7507
  fi
7508
done
7509
  done
7510
IFS=$as_save_IFS
7511
 
7512
fi
7513
fi
7514
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7515
if test -n "$ac_ct_OTOOL64"; then
7516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7517
$as_echo "$ac_ct_OTOOL64" >&6; }
7518
else
7519
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520
$as_echo "no" >&6; }
7521
fi
7522
 
7523
  if test "x$ac_ct_OTOOL64" = x; then
7524
    OTOOL64=":"
7525
  else
7526
    case $cross_compiling:$ac_tool_warned in
7527
yes:)
7528
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530
ac_tool_warned=yes ;;
7531
esac
7532
    OTOOL64=$ac_ct_OTOOL64
7533
  fi
7534
else
7535
  OTOOL64="$ac_cv_prog_OTOOL64"
7536
fi
7537
 
7538
 
7539
 
7540
 
7541
 
7542
 
7543
 
7544
 
7545
 
7546
 
7547
 
7548
 
7549
 
7550
 
7551
 
7552
 
7553
 
7554
 
7555
 
7556
 
7557
 
7558
 
7559
 
7560
 
7561
 
7562
 
7563
 
7564
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7565
$as_echo_n "checking for -single_module linker flag... " >&6; }
7566
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7567
  $as_echo_n "(cached) " >&6
7568
else
7569
  lt_cv_apple_cc_single_mod=no
7570
      if test -z "${LT_MULTI_MODULE}"; then
7571
        # By default we will add the -single_module flag. You can override
7572
        # by either setting the environment variable LT_MULTI_MODULE
7573
        # non-empty at configure time, or by adding -multi_module to the
7574
        # link flags.
7575
        rm -rf libconftest.dylib*
7576
        echo "int foo(void){return 1;}" > conftest.c
7577
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7578
-dynamiclib -Wl,-single_module conftest.c" >&5
7579
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7580
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7581
        _lt_result=$?
7582
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7583
          lt_cv_apple_cc_single_mod=yes
7584
        else
7585
          cat conftest.err >&5
7586
        fi
7587
        rm -rf libconftest.dylib*
7588
        rm -f conftest.*
7589
      fi
7590
fi
7591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7592
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7593
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7594
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7595
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7596
  $as_echo_n "(cached) " >&6
7597
else
7598
  lt_cv_ld_exported_symbols_list=no
7599
      save_LDFLAGS=$LDFLAGS
7600
      echo "_main" > conftest.sym
7601
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7602
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603
/* end confdefs.h.  */
7604
 
7605
int
7606
main ()
7607
{
7608
 
7609
  ;
7610
  return 0;
7611
}
7612
_ACEOF
7613
if ac_fn_c_try_link "$LINENO"; then :
7614
  lt_cv_ld_exported_symbols_list=yes
7615
else
7616
  lt_cv_ld_exported_symbols_list=no
7617
fi
7618
rm -f core conftest.err conftest.$ac_objext \
7619
    conftest$ac_exeext conftest.$ac_ext
7620
        LDFLAGS="$save_LDFLAGS"
7621
 
7622
fi
7623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7624
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7625
    case $host_os in
7626
    rhapsody* | darwin1.[012])
7627
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7628
    darwin1.*)
7629
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630
    darwin*) # darwin 5.x on
7631
      # if running on 10.5 or later, the deployment target defaults
7632
      # to the OS version, if on x86, and 10.4, the deployment
7633
      # target defaults to 10.4. Don't you love it?
7634
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7635
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7636
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7637
        10.[012]*)
7638
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639
        10.*)
7640
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7641
      esac
7642
    ;;
7643
  esac
7644
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7645
      _lt_dar_single_mod='$single_module'
7646
    fi
7647
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7648
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7649
    else
7650
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7651
    fi
7652
    if test "$DSYMUTIL" != ":"; then
7653
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7654
    else
7655
      _lt_dsymutil=
7656
    fi
7657
    ;;
7658
  esac
7659
 
7660
for ac_header in dlfcn.h
7661
do :
7662
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7663
"
7664
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7665
  cat >>confdefs.h <<_ACEOF
7666
#define HAVE_DLFCN_H 1
7667
_ACEOF
7668
 
7669
fi
7670
 
7671
done
7672
 
7673
 
7674
 
7675
# Set options
7676
 
7677
 
7678
 
7679
        enable_dlopen=no
7680
 
7681
 
7682
  enable_win32_dll=no
7683
 
7684
 
7685
            # Check whether --enable-shared was given.
7686
if test "${enable_shared+set}" = set; then :
7687
  enableval=$enable_shared; p=${PACKAGE-default}
7688
    case $enableval in
7689
    yes) enable_shared=yes ;;
7690
    no) enable_shared=no ;;
7691
    *)
7692
      enable_shared=no
7693
      # Look at the argument we got.  We use all the common list separators.
7694
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7695
      for pkg in $enableval; do
7696
        IFS="$lt_save_ifs"
7697
        if test "X$pkg" = "X$p"; then
7698
          enable_shared=yes
7699
        fi
7700
      done
7701
      IFS="$lt_save_ifs"
7702
      ;;
7703
    esac
7704
else
7705
  enable_shared=yes
7706
fi
7707
 
7708
 
7709
 
7710
 
7711
 
7712
 
7713
 
7714
 
7715
 
7716
  # Check whether --enable-static was given.
7717
if test "${enable_static+set}" = set; then :
7718
  enableval=$enable_static; p=${PACKAGE-default}
7719
    case $enableval in
7720
    yes) enable_static=yes ;;
7721
    no) enable_static=no ;;
7722
    *)
7723
     enable_static=no
7724
      # Look at the argument we got.  We use all the common list separators.
7725
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726
      for pkg in $enableval; do
7727
        IFS="$lt_save_ifs"
7728
        if test "X$pkg" = "X$p"; then
7729
          enable_static=yes
7730
        fi
7731
      done
7732
      IFS="$lt_save_ifs"
7733
      ;;
7734
    esac
7735
else
7736
  enable_static=yes
7737
fi
7738
 
7739
 
7740
 
7741
 
7742
 
7743
 
7744
 
7745
 
7746
 
7747
 
7748
# Check whether --with-pic was given.
7749
if test "${with_pic+set}" = set; then :
7750
  withval=$with_pic; pic_mode="$withval"
7751
else
7752
  pic_mode=default
7753
fi
7754
 
7755
 
7756
test -z "$pic_mode" && pic_mode=default
7757
 
7758
 
7759
 
7760
 
7761
 
7762
 
7763
 
7764
  # Check whether --enable-fast-install was given.
7765
if test "${enable_fast_install+set}" = set; then :
7766
  enableval=$enable_fast_install; p=${PACKAGE-default}
7767
    case $enableval in
7768
    yes) enable_fast_install=yes ;;
7769
    no) enable_fast_install=no ;;
7770
    *)
7771
      enable_fast_install=no
7772
      # Look at the argument we got.  We use all the common list separators.
7773
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7774
      for pkg in $enableval; do
7775
        IFS="$lt_save_ifs"
7776
        if test "X$pkg" = "X$p"; then
7777
          enable_fast_install=yes
7778
        fi
7779
      done
7780
      IFS="$lt_save_ifs"
7781
      ;;
7782
    esac
7783
else
7784
  enable_fast_install=yes
7785
fi
7786
 
7787
 
7788
 
7789
 
7790
 
7791
 
7792
 
7793
 
7794
 
7795
 
7796
 
7797
# This can be used to rebuild libtool when needed
7798
LIBTOOL_DEPS="$ltmain"
7799
 
7800
# Always use our own libtool.
7801
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7802
 
7803
 
7804
 
7805
 
7806
 
7807
 
7808
 
7809
 
7810
 
7811
 
7812
 
7813
 
7814
 
7815
 
7816
 
7817
 
7818
 
7819
 
7820
 
7821
 
7822
 
7823
 
7824
 
7825
 
7826
 
7827
test -z "$LN_S" && LN_S="ln -s"
7828
 
7829
 
7830
 
7831
 
7832
 
7833
 
7834
 
7835
 
7836
 
7837
 
7838
 
7839
 
7840
 
7841
 
7842
if test -n "${ZSH_VERSION+set}" ; then
7843
   setopt NO_GLOB_SUBST
7844
fi
7845
 
7846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7847
$as_echo_n "checking for objdir... " >&6; }
7848
if test "${lt_cv_objdir+set}" = set; then :
7849
  $as_echo_n "(cached) " >&6
7850
else
7851
  rm -f .libs 2>/dev/null
7852
mkdir .libs 2>/dev/null
7853
if test -d .libs; then
7854
  lt_cv_objdir=.libs
7855
else
7856
  # MS-DOS does not allow filenames that begin with a dot.
7857
  lt_cv_objdir=_libs
7858
fi
7859
rmdir .libs 2>/dev/null
7860
fi
7861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7862
$as_echo "$lt_cv_objdir" >&6; }
7863
objdir=$lt_cv_objdir
7864
 
7865
 
7866
 
7867
 
7868
 
7869
cat >>confdefs.h <<_ACEOF
7870
#define LT_OBJDIR "$lt_cv_objdir/"
7871
_ACEOF
7872
 
7873
 
7874
 
7875
 
7876
 
7877
 
7878
 
7879
 
7880
 
7881
 
7882
 
7883
 
7884
 
7885
 
7886
 
7887
 
7888
 
7889
case $host_os in
7890
aix3*)
7891
  # AIX sometimes has problems with the GCC collect2 program.  For some
7892
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7893
  # vanish in a puff of smoke.
7894
  if test "X${COLLECT_NAMES+set}" != Xset; then
7895
    COLLECT_NAMES=
7896
    export COLLECT_NAMES
7897
  fi
7898
  ;;
7899
esac
7900
 
7901
# Sed substitution that helps us do robust quoting.  It backslashifies
7902
# metacharacters that are still active within double-quoted strings.
7903
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7904
 
7905
# Same as above, but do not quote variable references.
7906
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7907
 
7908
# Sed substitution to delay expansion of an escaped shell variable in a
7909
# double_quote_subst'ed string.
7910
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7911
 
7912
# Sed substitution to delay expansion of an escaped single quote.
7913
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7914
 
7915
# Sed substitution to avoid accidental globbing in evaled expressions
7916
no_glob_subst='s/\*/\\\*/g'
7917
 
7918
# Global variables:
7919
ofile=libtool
7920
can_build_shared=yes
7921
 
7922
# All known linkers require a `.a' archive for static linking (except MSVC,
7923
# which needs '.lib').
7924
libext=a
7925
 
7926
with_gnu_ld="$lt_cv_prog_gnu_ld"
7927
 
7928
old_CC="$CC"
7929
old_CFLAGS="$CFLAGS"
7930
 
7931
# Set sane defaults for various variables
7932
test -z "$CC" && CC=cc
7933
test -z "$LTCC" && LTCC=$CC
7934
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7935
test -z "$LD" && LD=ld
7936
test -z "$ac_objext" && ac_objext=o
7937
 
7938
for cc_temp in $compiler""; do
7939
  case $cc_temp in
7940
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7941
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7942
    \-*) ;;
7943
    *) break;;
7944
  esac
7945
done
7946
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7947
 
7948
 
7949
# Only perform the check for file, if the check method requires it
7950
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7951
case $deplibs_check_method in
7952
file_magic*)
7953
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7954
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7955
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7956
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7957
  $as_echo_n "(cached) " >&6
7958
else
7959
  case $MAGIC_CMD in
7960
[\\/*] |  ?:[\\/]*)
7961
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7962
  ;;
7963
*)
7964
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7965
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7966
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967
  for ac_dir in $ac_dummy; do
7968
    IFS="$lt_save_ifs"
7969
    test -z "$ac_dir" && ac_dir=.
7970
    if test -f $ac_dir/${ac_tool_prefix}file; then
7971
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7972
      if test -n "$file_magic_test_file"; then
7973
        case $deplibs_check_method in
7974
        "file_magic "*)
7975
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978
            $EGREP "$file_magic_regex" > /dev/null; then
7979
            :
7980
          else
7981
            cat <<_LT_EOF 1>&2
7982
 
7983
*** Warning: the command libtool uses to detect shared libraries,
7984
*** $file_magic_cmd, produces output that libtool cannot recognize.
7985
*** The result is that libtool may fail to recognize shared libraries
7986
*** as such.  This will affect the creation of libtool libraries that
7987
*** depend on shared libraries, but programs linked with such libtool
7988
*** libraries will work regardless of this problem.  Nevertheless, you
7989
*** may want to report the problem to your system manager and/or to
7990
*** bug-libtool@gnu.org
7991
 
7992
_LT_EOF
7993
          fi ;;
7994
        esac
7995
      fi
7996
      break
7997
    fi
7998
  done
7999
  IFS="$lt_save_ifs"
8000
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8001
  ;;
8002
esac
8003
fi
8004
 
8005
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006
if test -n "$MAGIC_CMD"; then
8007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008
$as_echo "$MAGIC_CMD" >&6; }
8009
else
8010
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011
$as_echo "no" >&6; }
8012
fi
8013
 
8014
 
8015
 
8016
 
8017
 
8018
if test -z "$lt_cv_path_MAGIC_CMD"; then
8019
  if test -n "$ac_tool_prefix"; then
8020
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8021
$as_echo_n "checking for file... " >&6; }
8022
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8023
  $as_echo_n "(cached) " >&6
8024
else
8025
  case $MAGIC_CMD in
8026
[\\/*] |  ?:[\\/]*)
8027
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8028
  ;;
8029
*)
8030
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8031
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8032
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8033
  for ac_dir in $ac_dummy; do
8034
    IFS="$lt_save_ifs"
8035
    test -z "$ac_dir" && ac_dir=.
8036
    if test -f $ac_dir/file; then
8037
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8038
      if test -n "$file_magic_test_file"; then
8039
        case $deplibs_check_method in
8040
        "file_magic "*)
8041
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8042
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8043
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8044
            $EGREP "$file_magic_regex" > /dev/null; then
8045
            :
8046
          else
8047
            cat <<_LT_EOF 1>&2
8048
 
8049
*** Warning: the command libtool uses to detect shared libraries,
8050
*** $file_magic_cmd, produces output that libtool cannot recognize.
8051
*** The result is that libtool may fail to recognize shared libraries
8052
*** as such.  This will affect the creation of libtool libraries that
8053
*** depend on shared libraries, but programs linked with such libtool
8054
*** libraries will work regardless of this problem.  Nevertheless, you
8055
*** may want to report the problem to your system manager and/or to
8056
*** bug-libtool@gnu.org
8057
 
8058
_LT_EOF
8059
          fi ;;
8060
        esac
8061
      fi
8062
      break
8063
    fi
8064
  done
8065
  IFS="$lt_save_ifs"
8066
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8067
  ;;
8068
esac
8069
fi
8070
 
8071
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8072
if test -n "$MAGIC_CMD"; then
8073
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8074
$as_echo "$MAGIC_CMD" >&6; }
8075
else
8076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077
$as_echo "no" >&6; }
8078
fi
8079
 
8080
 
8081
  else
8082
    MAGIC_CMD=:
8083
  fi
8084
fi
8085
 
8086
  fi
8087
  ;;
8088
esac
8089
 
8090
# Use C for the default configuration in the libtool script
8091
 
8092
lt_save_CC="$CC"
8093
ac_ext=c
8094
ac_cpp='$CPP $CPPFLAGS'
8095
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
 
8099
 
8100
# Source file extension for C test sources.
8101
ac_ext=c
8102
 
8103
# Object file extension for compiled C test sources.
8104
objext=o
8105
objext=$objext
8106
 
8107
# Code to be used in simple compile tests
8108
lt_simple_compile_test_code="int some_variable = 0;"
8109
 
8110
# Code to be used in simple link tests
8111
lt_simple_link_test_code='int main(){return(0);}'
8112
 
8113
 
8114
 
8115
 
8116
 
8117
 
8118
 
8119
# If no C compiler was specified, use CC.
8120
LTCC=${LTCC-"$CC"}
8121
 
8122
# If no C compiler flags were specified, use CFLAGS.
8123
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8124
 
8125
# Allow CC to be a program name with arguments.
8126
compiler=$CC
8127
 
8128
# Save the default compiler, since it gets overwritten when the other
8129
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8130
compiler_DEFAULT=$CC
8131
 
8132
# save warnings/boilerplate of simple test code
8133
ac_outfile=conftest.$ac_objext
8134
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8135
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8136
_lt_compiler_boilerplate=`cat conftest.err`
8137
$RM conftest*
8138
 
8139
ac_outfile=conftest.$ac_objext
8140
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8141
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8142
_lt_linker_boilerplate=`cat conftest.err`
8143
$RM -r conftest*
8144
 
8145
 
8146
## CAVEAT EMPTOR:
8147
## There is no encapsulation within the following macros, do not change
8148
## the running order or otherwise move them around unless you know exactly
8149
## what you are doing...
8150
if test -n "$compiler"; then
8151
 
8152
lt_prog_compiler_no_builtin_flag=
8153
 
8154
if test "$GCC" = yes; then
8155
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8156
 
8157
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8158
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8159
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8160
  $as_echo_n "(cached) " >&6
8161
else
8162
  lt_cv_prog_compiler_rtti_exceptions=no
8163
   ac_outfile=conftest.$ac_objext
8164
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8165
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8166
   # Insert the option either (1) after the last *FLAGS variable, or
8167
   # (2) before a word containing "conftest.", or (3) at the end.
8168
   # Note that $ac_compile itself does not contain backslashes and begins
8169
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8170
   # The option is referenced via a variable to avoid confusing sed.
8171
   lt_compile=`echo "$ac_compile" | $SED \
8172
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8173
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8174
   -e 's:$: $lt_compiler_flag:'`
8175
   (eval echo "\"\$as_me:8175: $lt_compile\"" >&5)
8176
   (eval "$lt_compile" 2>conftest.err)
8177
   ac_status=$?
8178
   cat conftest.err >&5
8179
   echo "$as_me:8179: \$? = $ac_status" >&5
8180
   if (exit $ac_status) && test -s "$ac_outfile"; then
8181
     # The compiler can only warn and ignore the option if not recognized
8182
     # So say no if there are warnings other than the usual output.
8183
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8184
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8186
       lt_cv_prog_compiler_rtti_exceptions=yes
8187
     fi
8188
   fi
8189
   $RM conftest*
8190
 
8191
fi
8192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8193
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8194
 
8195
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8196
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8197
else
8198
    :
8199
fi
8200
 
8201
fi
8202
 
8203
 
8204
 
8205
 
8206
 
8207
 
8208
  lt_prog_compiler_wl=
8209
lt_prog_compiler_pic=
8210
lt_prog_compiler_static=
8211
 
8212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8213
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8214
 
8215
  if test "$GCC" = yes; then
8216
    lt_prog_compiler_wl='-Wl,'
8217
    lt_prog_compiler_static='-static'
8218
 
8219
    case $host_os in
8220
      aix*)
8221
      # All AIX code is PIC.
8222
      if test "$host_cpu" = ia64; then
8223
        # AIX 5 now supports IA64 processor
8224
        lt_prog_compiler_static='-Bstatic'
8225
      fi
8226
      ;;
8227
 
8228
    amigaos*)
8229
      case $host_cpu in
8230
      powerpc)
8231
            # see comment about AmigaOS4 .so support
8232
            lt_prog_compiler_pic='-fPIC'
8233
        ;;
8234
      m68k)
8235
            # FIXME: we need at least 68020 code to build shared libraries, but
8236
            # adding the `-m68020' flag to GCC prevents building anything better,
8237
            # like `-m68040'.
8238
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8239
        ;;
8240
      esac
8241
      ;;
8242
 
8243
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8244
      # PIC is the default for these OSes.
8245
      ;;
8246
 
8247
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8248
      # This hack is so that the source file can tell whether it is being
8249
      # built for inclusion in a dll (and should export symbols for example).
8250
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8251
      # (--disable-auto-import) libraries
8252
      lt_prog_compiler_pic='-DDLL_EXPORT'
8253
      ;;
8254
 
8255
    darwin* | rhapsody*)
8256
      # PIC is the default on this platform
8257
      # Common symbols not allowed in MH_DYLIB files
8258
      lt_prog_compiler_pic='-fno-common'
8259
      ;;
8260
 
8261
    hpux*)
8262
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8263
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8264
      # sets the default TLS model and affects inlining.
8265
      case $host_cpu in
8266
      hppa*64*)
8267
        # +Z the default
8268
        ;;
8269
      *)
8270
        lt_prog_compiler_pic='-fPIC'
8271
        ;;
8272
      esac
8273
      ;;
8274
 
8275
    interix[3-9]*)
8276
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8277
      # Instead, we relocate shared libraries at runtime.
8278
      ;;
8279
 
8280
    msdosdjgpp*)
8281
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8282
      # on systems that don't support them.
8283
      lt_prog_compiler_can_build_shared=no
8284
      enable_shared=no
8285
      ;;
8286
 
8287
    *nto* | *qnx*)
8288
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8289
      # it will coredump.
8290
      lt_prog_compiler_pic='-fPIC -shared'
8291
      ;;
8292
 
8293
    sysv4*MP*)
8294
      if test -d /usr/nec; then
8295
        lt_prog_compiler_pic=-Kconform_pic
8296
      fi
8297
      ;;
8298
 
8299
    *)
8300
      lt_prog_compiler_pic='-fPIC'
8301
      ;;
8302
    esac
8303
  else
8304
    # PORTME Check for flag to pass linker flags through the system compiler.
8305
    case $host_os in
8306
    aix*)
8307
      lt_prog_compiler_wl='-Wl,'
8308
      if test "$host_cpu" = ia64; then
8309
        # AIX 5 now supports IA64 processor
8310
        lt_prog_compiler_static='-Bstatic'
8311
      else
8312
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8313
      fi
8314
      ;;
8315
 
8316
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8317
      # This hack is so that the source file can tell whether it is being
8318
      # built for inclusion in a dll (and should export symbols for example).
8319
      lt_prog_compiler_pic='-DDLL_EXPORT'
8320
      ;;
8321
 
8322
    hpux9* | hpux10* | hpux11*)
8323
      lt_prog_compiler_wl='-Wl,'
8324
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8325
      # not for PA HP-UX.
8326
      case $host_cpu in
8327
      hppa*64*|ia64*)
8328
        # +Z the default
8329
        ;;
8330
      *)
8331
        lt_prog_compiler_pic='+Z'
8332
        ;;
8333
      esac
8334
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8335
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8336
      ;;
8337
 
8338
    irix5* | irix6* | nonstopux*)
8339
      lt_prog_compiler_wl='-Wl,'
8340
      # PIC (with -KPIC) is the default.
8341
      lt_prog_compiler_static='-non_shared'
8342
      ;;
8343
 
8344
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8345
      case $cc_basename in
8346
      # old Intel for x86_64 which still supported -KPIC.
8347
      ecc*)
8348
        lt_prog_compiler_wl='-Wl,'
8349
        lt_prog_compiler_pic='-KPIC'
8350
        lt_prog_compiler_static='-static'
8351
        ;;
8352
      # icc used to be incompatible with GCC.
8353
      # ICC 10 doesn't accept -KPIC any more.
8354
      icc* | ifort*)
8355
        lt_prog_compiler_wl='-Wl,'
8356
        lt_prog_compiler_pic='-fPIC'
8357
        lt_prog_compiler_static='-static'
8358
        ;;
8359
      # Lahey Fortran 8.1.
8360
      lf95*)
8361
        lt_prog_compiler_wl='-Wl,'
8362
        lt_prog_compiler_pic='--shared'
8363
        lt_prog_compiler_static='--static'
8364
        ;;
8365
      pgcc* | pgf77* | pgf90* | pgf95*)
8366
        # Portland Group compilers (*not* the Pentium gcc compiler,
8367
        # which looks to be a dead project)
8368
        lt_prog_compiler_wl='-Wl,'
8369
        lt_prog_compiler_pic='-fpic'
8370
        lt_prog_compiler_static='-Bstatic'
8371
        ;;
8372
      ccc*)
8373
        lt_prog_compiler_wl='-Wl,'
8374
        # All Alpha code is PIC.
8375
        lt_prog_compiler_static='-non_shared'
8376
        ;;
8377
      xl*)
8378
        # IBM XL C 8.0/Fortran 10.1 on PPC
8379
        lt_prog_compiler_wl='-Wl,'
8380
        lt_prog_compiler_pic='-qpic'
8381
        lt_prog_compiler_static='-qstaticlink'
8382
        ;;
8383
      *)
8384
        case `$CC -V 2>&1 | sed 5q` in
8385
        *Sun\ C*)
8386
          # Sun C 5.9
8387
          lt_prog_compiler_pic='-KPIC'
8388
          lt_prog_compiler_static='-Bstatic'
8389
          lt_prog_compiler_wl='-Wl,'
8390
          ;;
8391
        *Sun\ F*)
8392
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8393
          lt_prog_compiler_pic='-KPIC'
8394
          lt_prog_compiler_static='-Bstatic'
8395
          lt_prog_compiler_wl=''
8396
          ;;
8397
        esac
8398
        ;;
8399
      esac
8400
      ;;
8401
 
8402
    newsos6)
8403
      lt_prog_compiler_pic='-KPIC'
8404
      lt_prog_compiler_static='-Bstatic'
8405
      ;;
8406
 
8407
    *nto* | *qnx*)
8408
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8409
      # it will coredump.
8410
      lt_prog_compiler_pic='-fPIC -shared'
8411
      ;;
8412
 
8413
    osf3* | osf4* | osf5*)
8414
      lt_prog_compiler_wl='-Wl,'
8415
      # All OSF/1 code is PIC.
8416
      lt_prog_compiler_static='-non_shared'
8417
      ;;
8418
 
8419
    rdos*)
8420
      lt_prog_compiler_static='-non_shared'
8421
      ;;
8422
 
8423
    solaris*)
8424
      lt_prog_compiler_pic='-KPIC'
8425
      lt_prog_compiler_static='-Bstatic'
8426
      case $cc_basename in
8427
      f77* | f90* | f95*)
8428
        lt_prog_compiler_wl='-Qoption ld ';;
8429
      *)
8430
        lt_prog_compiler_wl='-Wl,';;
8431
      esac
8432
      ;;
8433
 
8434
    sunos4*)
8435
      lt_prog_compiler_wl='-Qoption ld '
8436
      lt_prog_compiler_pic='-PIC'
8437
      lt_prog_compiler_static='-Bstatic'
8438
      ;;
8439
 
8440
    sysv4 | sysv4.2uw2* | sysv4.3*)
8441
      lt_prog_compiler_wl='-Wl,'
8442
      lt_prog_compiler_pic='-KPIC'
8443
      lt_prog_compiler_static='-Bstatic'
8444
      ;;
8445
 
8446
    sysv4*MP*)
8447
      if test -d /usr/nec ;then
8448
        lt_prog_compiler_pic='-Kconform_pic'
8449
        lt_prog_compiler_static='-Bstatic'
8450
      fi
8451
      ;;
8452
 
8453
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8454
      lt_prog_compiler_wl='-Wl,'
8455
      lt_prog_compiler_pic='-KPIC'
8456
      lt_prog_compiler_static='-Bstatic'
8457
      ;;
8458
 
8459
    unicos*)
8460
      lt_prog_compiler_wl='-Wl,'
8461
      lt_prog_compiler_can_build_shared=no
8462
      ;;
8463
 
8464
    uts4*)
8465
      lt_prog_compiler_pic='-pic'
8466
      lt_prog_compiler_static='-Bstatic'
8467
      ;;
8468
 
8469
    *)
8470
      lt_prog_compiler_can_build_shared=no
8471
      ;;
8472
    esac
8473
  fi
8474
 
8475
case $host_os in
8476
  # For platforms which do not support PIC, -DPIC is meaningless:
8477
  *djgpp*)
8478
    lt_prog_compiler_pic=
8479
    ;;
8480
  *)
8481
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8482
    ;;
8483
esac
8484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8485
$as_echo "$lt_prog_compiler_pic" >&6; }
8486
 
8487
 
8488
 
8489
 
8490
 
8491
 
8492
#
8493
# Check to make sure the PIC flag actually works.
8494
#
8495
if test -n "$lt_prog_compiler_pic"; then
8496
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8497
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8498
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8499
  $as_echo_n "(cached) " >&6
8500
else
8501
  lt_cv_prog_compiler_pic_works=no
8502
   ac_outfile=conftest.$ac_objext
8503
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8504
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8505
   # Insert the option either (1) after the last *FLAGS variable, or
8506
   # (2) before a word containing "conftest.", or (3) at the end.
8507
   # Note that $ac_compile itself does not contain backslashes and begins
8508
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8509
   # The option is referenced via a variable to avoid confusing sed.
8510
   lt_compile=`echo "$ac_compile" | $SED \
8511
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8512
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513
   -e 's:$: $lt_compiler_flag:'`
8514
   (eval echo "\"\$as_me:8514: $lt_compile\"" >&5)
8515
   (eval "$lt_compile" 2>conftest.err)
8516
   ac_status=$?
8517
   cat conftest.err >&5
8518
   echo "$as_me:8518: \$? = $ac_status" >&5
8519
   if (exit $ac_status) && test -s "$ac_outfile"; then
8520
     # The compiler can only warn and ignore the option if not recognized
8521
     # So say no if there are warnings other than the usual output.
8522
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8523
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8524
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8525
       lt_cv_prog_compiler_pic_works=yes
8526
     fi
8527
   fi
8528
   $RM conftest*
8529
 
8530
fi
8531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8532
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8533
 
8534
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8535
    case $lt_prog_compiler_pic in
8536
     "" | " "*) ;;
8537
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8538
     esac
8539
else
8540
    lt_prog_compiler_pic=
8541
     lt_prog_compiler_can_build_shared=no
8542
fi
8543
 
8544
fi
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
#
8552
# Check to make sure the static flag actually works.
8553
#
8554
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8556
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8557
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8558
  $as_echo_n "(cached) " >&6
8559
else
8560
  lt_cv_prog_compiler_static_works=no
8561
   save_LDFLAGS="$LDFLAGS"
8562
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8563
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8564
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8565
     # The linker can only warn and ignore the option if not recognized
8566
     # So say no if there are warnings
8567
     if test -s conftest.err; then
8568
       # Append any errors to the config.log.
8569
       cat conftest.err 1>&5
8570
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8571
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8572
       if diff conftest.exp conftest.er2 >/dev/null; then
8573
         lt_cv_prog_compiler_static_works=yes
8574
       fi
8575
     else
8576
       lt_cv_prog_compiler_static_works=yes
8577
     fi
8578
   fi
8579
   $RM -r conftest*
8580
   LDFLAGS="$save_LDFLAGS"
8581
 
8582
fi
8583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8584
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8585
 
8586
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8587
    :
8588
else
8589
    lt_prog_compiler_static=
8590
fi
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8599
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8600
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8601
  $as_echo_n "(cached) " >&6
8602
else
8603
  lt_cv_prog_compiler_c_o=no
8604
   $RM -r conftest 2>/dev/null
8605
   mkdir conftest
8606
   cd conftest
8607
   mkdir out
8608
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609
 
8610
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8611
   # Insert the option either (1) after the last *FLAGS variable, or
8612
   # (2) before a word containing "conftest.", or (3) at the end.
8613
   # Note that $ac_compile itself does not contain backslashes and begins
8614
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8615
   lt_compile=`echo "$ac_compile" | $SED \
8616
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618
   -e 's:$: $lt_compiler_flag:'`
8619
   (eval echo "\"\$as_me:8619: $lt_compile\"" >&5)
8620
   (eval "$lt_compile" 2>out/conftest.err)
8621
   ac_status=$?
8622
   cat out/conftest.err >&5
8623
   echo "$as_me:8623: \$? = $ac_status" >&5
8624
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625
   then
8626
     # The compiler can only warn and ignore the option if not recognized
8627
     # So say no if there are warnings
8628
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8629
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631
       lt_cv_prog_compiler_c_o=yes
8632
     fi
8633
   fi
8634
   chmod u+w . 2>&5
8635
   $RM conftest*
8636
   # SGI C++ compiler will create directory out/ii_files/ for
8637
   # template instantiation
8638
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8639
   $RM out/* && rmdir out
8640
   cd ..
8641
   $RM -r conftest
8642
   $RM conftest*
8643
 
8644
fi
8645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8646
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8654
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8655
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8656
  $as_echo_n "(cached) " >&6
8657
else
8658
  lt_cv_prog_compiler_c_o=no
8659
   $RM -r conftest 2>/dev/null
8660
   mkdir conftest
8661
   cd conftest
8662
   mkdir out
8663
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8664
 
8665
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8666
   # Insert the option either (1) after the last *FLAGS variable, or
8667
   # (2) before a word containing "conftest.", or (3) at the end.
8668
   # Note that $ac_compile itself does not contain backslashes and begins
8669
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8670
   lt_compile=`echo "$ac_compile" | $SED \
8671
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8672
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8673
   -e 's:$: $lt_compiler_flag:'`
8674
   (eval echo "\"\$as_me:8674: $lt_compile\"" >&5)
8675
   (eval "$lt_compile" 2>out/conftest.err)
8676
   ac_status=$?
8677
   cat out/conftest.err >&5
8678
   echo "$as_me:8678: \$? = $ac_status" >&5
8679
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8680
   then
8681
     # The compiler can only warn and ignore the option if not recognized
8682
     # So say no if there are warnings
8683
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8684
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8685
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8686
       lt_cv_prog_compiler_c_o=yes
8687
     fi
8688
   fi
8689
   chmod u+w . 2>&5
8690
   $RM conftest*
8691
   # SGI C++ compiler will create directory out/ii_files/ for
8692
   # template instantiation
8693
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8694
   $RM out/* && rmdir out
8695
   cd ..
8696
   $RM -r conftest
8697
   $RM conftest*
8698
 
8699
fi
8700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8701
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8702
 
8703
 
8704
 
8705
 
8706
hard_links="nottested"
8707
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8708
  # do not overwrite the value of need_locks provided by the user
8709
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8710
$as_echo_n "checking if we can lock with hard links... " >&6; }
8711
  hard_links=yes
8712
  $RM conftest*
8713
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8714
  touch conftest.a
8715
  ln conftest.a conftest.b 2>&5 || hard_links=no
8716
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8717
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8718
$as_echo "$hard_links" >&6; }
8719
  if test "$hard_links" = no; then
8720
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8721
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8722
    need_locks=warn
8723
  fi
8724
else
8725
  need_locks=no
8726
fi
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8734
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8735
 
8736
  runpath_var=
8737
  allow_undefined_flag=
8738
  always_export_symbols=no
8739
  archive_cmds=
8740
  archive_expsym_cmds=
8741
  compiler_needs_object=no
8742
  enable_shared_with_static_runtimes=no
8743
  export_dynamic_flag_spec=
8744
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8745
  hardcode_automatic=no
8746
  hardcode_direct=no
8747
  hardcode_direct_absolute=no
8748
  hardcode_libdir_flag_spec=
8749
  hardcode_libdir_flag_spec_ld=
8750
  hardcode_libdir_separator=
8751
  hardcode_minus_L=no
8752
  hardcode_shlibpath_var=unsupported
8753
  inherit_rpath=no
8754
  link_all_deplibs=unknown
8755
  module_cmds=
8756
  module_expsym_cmds=
8757
  old_archive_from_new_cmds=
8758
  old_archive_from_expsyms_cmds=
8759
  thread_safe_flag_spec=
8760
  whole_archive_flag_spec=
8761
  # include_expsyms should be a list of space-separated symbols to be *always*
8762
  # included in the symbol list
8763
  include_expsyms=
8764
  # exclude_expsyms can be an extended regexp of symbols to exclude
8765
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8766
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8767
  # as well as any symbol that contains `d'.
8768
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8769
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8770
  # platforms (ab)use it in PIC code, but their linkers get confused if
8771
  # the symbol is explicitly referenced.  Since portable code cannot
8772
  # rely on this symbol name, it's probably fine to never include it in
8773
  # preloaded symbol tables.
8774
  # Exclude shared library initialization/finalization symbols.
8775
  extract_expsyms_cmds=
8776
 
8777
  case $host_os in
8778
  cygwin* | mingw* | pw32* | cegcc*)
8779
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8780
    # When not using gcc, we currently assume that we are using
8781
    # Microsoft Visual C++.
8782
    if test "$GCC" != yes; then
8783
      with_gnu_ld=no
8784
    fi
8785
    ;;
8786
  interix*)
8787
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8788
    with_gnu_ld=yes
8789
    ;;
8790
  openbsd*)
8791
    with_gnu_ld=no
8792
    ;;
8793
  esac
8794
 
8795
  ld_shlibs=yes
8796
  if test "$with_gnu_ld" = yes; then
8797
    # If archive_cmds runs LD, not CC, wlarc should be empty
8798
    wlarc='${wl}'
8799
 
8800
    # Set some defaults for GNU ld with shared library support. These
8801
    # are reset later if shared libraries are not supported. Putting them
8802
    # here allows them to be overridden if necessary.
8803
    runpath_var=LD_RUN_PATH
8804
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805
    export_dynamic_flag_spec='${wl}--export-dynamic'
8806
    # ancient GNU ld didn't support --whole-archive et. al.
8807
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8808
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8809
    else
8810
      whole_archive_flag_spec=
8811
    fi
8812
    supports_anon_versioning=no
8813
    case `$LD -v 2>&1` in
8814
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8815
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8816
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8817
      *\ 2.11.*) ;; # other 2.11 versions
8818
      *) supports_anon_versioning=yes ;;
8819
    esac
8820
 
8821
    # See if GNU ld supports shared libraries.
8822
    case $host_os in
8823
    aix[3-9]*)
8824
      # On AIX/PPC, the GNU linker is very broken
8825
      if test "$host_cpu" != ia64; then
8826
        ld_shlibs=no
8827
        cat <<_LT_EOF 1>&2
8828
 
8829
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8830
*** to be unable to reliably create shared libraries on AIX.
8831
*** Therefore, libtool is disabling shared libraries support.  If you
8832
*** really care for shared libraries, you may want to modify your PATH
8833
*** so that a non-GNU linker is found, and then restart.
8834
 
8835
_LT_EOF
8836
      fi
8837
      ;;
8838
 
8839
    amigaos*)
8840
      case $host_cpu in
8841
      powerpc)
8842
            # see comment about AmigaOS4 .so support
8843
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844
            archive_expsym_cmds=''
8845
        ;;
8846
      m68k)
8847
            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)'
8848
            hardcode_libdir_flag_spec='-L$libdir'
8849
            hardcode_minus_L=yes
8850
        ;;
8851
      esac
8852
      ;;
8853
 
8854
    beos*)
8855
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8856
        allow_undefined_flag=unsupported
8857
        # Joseph Beckenbach  says some releases of gcc
8858
        # support --undefined.  This deserves some investigation.  FIXME
8859
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860
      else
8861
        ld_shlibs=no
8862
      fi
8863
      ;;
8864
 
8865
    cygwin* | mingw* | pw32* | cegcc*)
8866
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8867
      # as there is no search path for DLLs.
8868
      hardcode_libdir_flag_spec='-L$libdir'
8869
      allow_undefined_flag=unsupported
8870
      always_export_symbols=no
8871
      enable_shared_with_static_runtimes=yes
8872
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8873
 
8874
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8875
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876
        # If the export-symbols file already is a .def file (1st line
8877
        # is EXPORTS), use it as is; otherwise, prepend...
8878
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8879
          cp $export_symbols $output_objdir/$soname.def;
8880
        else
8881
          echo EXPORTS > $output_objdir/$soname.def;
8882
          cat $export_symbols >> $output_objdir/$soname.def;
8883
        fi~
8884
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8885
      else
8886
        ld_shlibs=no
8887
      fi
8888
      ;;
8889
 
8890
    interix[3-9]*)
8891
      hardcode_direct=no
8892
      hardcode_shlibpath_var=no
8893
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8894
      export_dynamic_flag_spec='${wl}-E'
8895
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8896
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8897
      # default) and relocated if they conflict, which is a slow very memory
8898
      # consuming and fragmenting process.  To avoid this, we pick a random,
8899
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8900
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8901
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8902
      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'
8903
      ;;
8904
 
8905
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8906
      tmp_diet=no
8907
      if test "$host_os" = linux-dietlibc; then
8908
        case $cc_basename in
8909
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8910
        esac
8911
      fi
8912
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8913
         && test "$tmp_diet" = no
8914
      then
8915
        tmp_addflag=
8916
        tmp_sharedflag='-shared'
8917
        case $cc_basename,$host_cpu in
8918
        pgcc*)                          # Portland Group C compiler
8919
          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'
8920
          tmp_addflag=' $pic_flag'
8921
          ;;
8922
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8923
          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'
8924
          tmp_addflag=' $pic_flag -Mnomain' ;;
8925
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8926
          tmp_addflag=' -i_dynamic' ;;
8927
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8928
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8929
        ifc* | ifort*)                  # Intel Fortran compiler
8930
          tmp_addflag=' -nofor_main' ;;
8931
        lf95*)                          # Lahey Fortran 8.1
8932
          whole_archive_flag_spec=
8933
          tmp_sharedflag='--shared' ;;
8934
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8935
          tmp_sharedflag='-qmkshrobj'
8936
          tmp_addflag= ;;
8937
        esac
8938
        case `$CC -V 2>&1 | sed 5q` in
8939
        *Sun\ C*)                       # Sun C 5.9
8940
          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'
8941
          compiler_needs_object=yes
8942
          tmp_sharedflag='-G' ;;
8943
        *Sun\ F*)                       # Sun Fortran 8.3
8944
          tmp_sharedflag='-G' ;;
8945
        esac
8946
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947
 
8948
        if test "x$supports_anon_versioning" = xyes; then
8949
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8950
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951
            echo "local: *; };" >> $output_objdir/$libname.ver~
8952
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8953
        fi
8954
 
8955
        case $cc_basename in
8956
        xlf*)
8957
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8958
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8959
          hardcode_libdir_flag_spec=
8960
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8961
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8962
          if test "x$supports_anon_versioning" = xyes; then
8963
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8964
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8965
              echo "local: *; };" >> $output_objdir/$libname.ver~
8966
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8967
          fi
8968
          ;;
8969
        esac
8970
      else
8971
        ld_shlibs=no
8972
      fi
8973
      ;;
8974
 
8975
    netbsd*)
8976
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8977
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8978
        wlarc=
8979
      else
8980
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982
      fi
8983
      ;;
8984
 
8985
    solaris*)
8986
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8987
        ld_shlibs=no
8988
        cat <<_LT_EOF 1>&2
8989
 
8990
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8991
*** create shared libraries on Solaris systems.  Therefore, libtool
8992
*** is disabling shared libraries support.  We urge you to upgrade GNU
8993
*** binutils to release 2.9.1 or newer.  Another option is to modify
8994
*** your PATH or compiler configuration so that the native linker is
8995
*** used, and then restart.
8996
 
8997
_LT_EOF
8998
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9001
      else
9002
        ld_shlibs=no
9003
      fi
9004
      ;;
9005
 
9006
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9007
      case `$LD -v 2>&1` in
9008
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9009
        ld_shlibs=no
9010
        cat <<_LT_EOF 1>&2
9011
 
9012
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9013
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9014
*** is disabling shared libraries support.  We urge you to upgrade GNU
9015
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9016
*** your PATH or compiler configuration so that the native linker is
9017
*** used, and then restart.
9018
 
9019
_LT_EOF
9020
        ;;
9021
        *)
9022
          # For security reasons, it is highly recommended that you always
9023
          # use absolute paths for naming shared libraries, and exclude the
9024
          # DT_RUNPATH tag from executables and libraries.  But doing so
9025
          # requires that you compile everything twice, which is a pain.
9026
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9028
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030
          else
9031
            ld_shlibs=no
9032
          fi
9033
        ;;
9034
      esac
9035
      ;;
9036
 
9037
    sunos4*)
9038
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9039
      wlarc=
9040
      hardcode_direct=yes
9041
      hardcode_shlibpath_var=no
9042
      ;;
9043
 
9044
    *)
9045
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9048
      else
9049
        ld_shlibs=no
9050
      fi
9051
      ;;
9052
    esac
9053
 
9054
    if test "$ld_shlibs" = no; then
9055
      runpath_var=
9056
      hardcode_libdir_flag_spec=
9057
      export_dynamic_flag_spec=
9058
      whole_archive_flag_spec=
9059
    fi
9060
  else
9061
    # PORTME fill in a description of your system's linker (not GNU ld)
9062
    case $host_os in
9063
    aix3*)
9064
      allow_undefined_flag=unsupported
9065
      always_export_symbols=yes
9066
      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'
9067
      # Note: this linker hardcodes the directories in LIBPATH if there
9068
      # are no directories specified by -L.
9069
      hardcode_minus_L=yes
9070
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9071
        # Neither direct hardcoding nor static linking is supported with a
9072
        # broken collect2.
9073
        hardcode_direct=unsupported
9074
      fi
9075
      ;;
9076
 
9077
    aix[4-9]*)
9078
      if test "$host_cpu" = ia64; then
9079
        # On IA64, the linker does run time linking by default, so we don't
9080
        # have to do anything special.
9081
        aix_use_runtimelinking=no
9082
        exp_sym_flag='-Bexport'
9083
        no_entry_flag=""
9084
      else
9085
        # If we're using GNU nm, then we don't want the "-C" option.
9086
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9087
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9088
          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'
9089
        else
9090
          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'
9091
        fi
9092
        aix_use_runtimelinking=no
9093
 
9094
        # Test if we are trying to use run time linking or normal
9095
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9096
        # need to do runtime linking.
9097
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9098
          for ld_flag in $LDFLAGS; do
9099
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9100
            aix_use_runtimelinking=yes
9101
            break
9102
          fi
9103
          done
9104
          ;;
9105
        esac
9106
 
9107
        exp_sym_flag='-bexport'
9108
        no_entry_flag='-bnoentry'
9109
      fi
9110
 
9111
      # When large executables or shared objects are built, AIX ld can
9112
      # have problems creating the table of contents.  If linking a library
9113
      # or program results in "error TOC overflow" add -mminimal-toc to
9114
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9115
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9116
 
9117
      archive_cmds=''
9118
      hardcode_direct=yes
9119
      hardcode_direct_absolute=yes
9120
      hardcode_libdir_separator=':'
9121
      link_all_deplibs=yes
9122
      file_list_spec='${wl}-f,'
9123
 
9124
      if test "$GCC" = yes; then
9125
        case $host_os in aix4.[012]|aix4.[012].*)
9126
        # We only want to do this on AIX 4.2 and lower, the check
9127
        # below for broken collect2 doesn't work under 4.3+
9128
          collect2name=`${CC} -print-prog-name=collect2`
9129
          if test -f "$collect2name" &&
9130
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9131
          then
9132
          # We have reworked collect2
9133
          :
9134
          else
9135
          # We have old collect2
9136
          hardcode_direct=unsupported
9137
          # It fails to find uninstalled libraries when the uninstalled
9138
          # path is not listed in the libpath.  Setting hardcode_minus_L
9139
          # to unsupported forces relinking
9140
          hardcode_minus_L=yes
9141
          hardcode_libdir_flag_spec='-L$libdir'
9142
          hardcode_libdir_separator=
9143
          fi
9144
          ;;
9145
        esac
9146
        shared_flag='-shared'
9147
        if test "$aix_use_runtimelinking" = yes; then
9148
          shared_flag="$shared_flag "'${wl}-G'
9149
        fi
9150
      else
9151
        # not using gcc
9152
        if test "$host_cpu" = ia64; then
9153
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9154
        # chokes on -Wl,-G. The following line is correct:
9155
          shared_flag='-G'
9156
        else
9157
          if test "$aix_use_runtimelinking" = yes; then
9158
            shared_flag='${wl}-G'
9159
          else
9160
            shared_flag='${wl}-bM:SRE'
9161
          fi
9162
        fi
9163
      fi
9164
 
9165
      export_dynamic_flag_spec='${wl}-bexpall'
9166
      # It seems that -bexpall does not export symbols beginning with
9167
      # underscore (_), so it is better to generate a list of symbols to export.
9168
      always_export_symbols=yes
9169
      if test "$aix_use_runtimelinking" = yes; then
9170
        # Warning - without using the other runtime loading flags (-brtl),
9171
        # -berok will link without error, but may produce a broken library.
9172
        allow_undefined_flag='-berok'
9173
        # Determine the default libpath from the value encoded in an
9174
        # empty executable.
9175
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176
/* end confdefs.h.  */
9177
 
9178
int
9179
main ()
9180
{
9181
 
9182
  ;
9183
  return 0;
9184
}
9185
_ACEOF
9186
if ac_fn_c_try_link "$LINENO"; then :
9187
 
9188
lt_aix_libpath_sed='
9189
    /Import File Strings/,/^$/ {
9190
        /^0/ {
9191
            s/^0  *\(.*\)$/\1/
9192
            p
9193
        }
9194
    }'
9195
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196
# Check for a 64-bit object if we didn't find anything.
9197
if test -z "$aix_libpath"; then
9198
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199
fi
9200
fi
9201
rm -f core conftest.err conftest.$ac_objext \
9202
    conftest$ac_exeext conftest.$ac_ext
9203
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9204
 
9205
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9206
        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"
9207
      else
9208
        if test "$host_cpu" = ia64; then
9209
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9210
          allow_undefined_flag="-z nodefs"
9211
          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"
9212
        else
9213
         # Determine the default libpath from the value encoded in an
9214
         # empty executable.
9215
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216
/* end confdefs.h.  */
9217
 
9218
int
9219
main ()
9220
{
9221
 
9222
  ;
9223
  return 0;
9224
}
9225
_ACEOF
9226
if ac_fn_c_try_link "$LINENO"; then :
9227
 
9228
lt_aix_libpath_sed='
9229
    /Import File Strings/,/^$/ {
9230
        /^0/ {
9231
            s/^0  *\(.*\)$/\1/
9232
            p
9233
        }
9234
    }'
9235
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236
# Check for a 64-bit object if we didn't find anything.
9237
if test -z "$aix_libpath"; then
9238
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239
fi
9240
fi
9241
rm -f core conftest.err conftest.$ac_objext \
9242
    conftest$ac_exeext conftest.$ac_ext
9243
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9244
 
9245
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9246
          # Warning - without using the other run time loading flags,
9247
          # -berok will link without error, but may produce a broken library.
9248
          no_undefined_flag=' ${wl}-bernotok'
9249
          allow_undefined_flag=' ${wl}-berok'
9250
          # Exported symbols can be pulled into shared objects from archives
9251
          whole_archive_flag_spec='$convenience'
9252
          archive_cmds_need_lc=yes
9253
          # This is similar to how AIX traditionally builds its shared libraries.
9254
          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'
9255
        fi
9256
      fi
9257
      ;;
9258
 
9259
    amigaos*)
9260
      case $host_cpu in
9261
      powerpc)
9262
            # see comment about AmigaOS4 .so support
9263
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264
            archive_expsym_cmds=''
9265
        ;;
9266
      m68k)
9267
            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)'
9268
            hardcode_libdir_flag_spec='-L$libdir'
9269
            hardcode_minus_L=yes
9270
        ;;
9271
      esac
9272
      ;;
9273
 
9274
    bsdi[45]*)
9275
      export_dynamic_flag_spec=-rdynamic
9276
      ;;
9277
 
9278
    cygwin* | mingw* | pw32* | cegcc*)
9279
      # When not using gcc, we currently assume that we are using
9280
      # Microsoft Visual C++.
9281
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9282
      # no search path for DLLs.
9283
      hardcode_libdir_flag_spec=' '
9284
      allow_undefined_flag=unsupported
9285
      # Tell ltmain to make .lib files, not .a files.
9286
      libext=lib
9287
      # Tell ltmain to make .dll files, not .so files.
9288
      shrext_cmds=".dll"
9289
      # FIXME: Setting linknames here is a bad hack.
9290
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9291
      # The linker will automatically build a .lib file if we build a DLL.
9292
      old_archive_from_new_cmds='true'
9293
      # FIXME: Should let the user specify the lib program.
9294
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9295
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9296
      enable_shared_with_static_runtimes=yes
9297
      ;;
9298
 
9299
    darwin* | rhapsody*)
9300
 
9301
 
9302
  archive_cmds_need_lc=no
9303
  hardcode_direct=no
9304
  hardcode_automatic=yes
9305
  hardcode_shlibpath_var=unsupported
9306
  whole_archive_flag_spec=''
9307
  link_all_deplibs=yes
9308
  allow_undefined_flag="$_lt_dar_allow_undefined"
9309
  case $cc_basename in
9310
     ifort*) _lt_dar_can_shared=yes ;;
9311
     *) _lt_dar_can_shared=$GCC ;;
9312
  esac
9313
  if test "$_lt_dar_can_shared" = "yes"; then
9314
    output_verbose_link_cmd=echo
9315
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9316
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9317
    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}"
9318
    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}"
9319
 
9320
  else
9321
  ld_shlibs=no
9322
  fi
9323
 
9324
      ;;
9325
 
9326
    dgux*)
9327
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328
      hardcode_libdir_flag_spec='-L$libdir'
9329
      hardcode_shlibpath_var=no
9330
      ;;
9331
 
9332
    freebsd1*)
9333
      ld_shlibs=no
9334
      ;;
9335
 
9336
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9337
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9338
    # does not break anything, and helps significantly (at the cost of a little
9339
    # extra space).
9340
    freebsd2.2*)
9341
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9342
      hardcode_libdir_flag_spec='-R$libdir'
9343
      hardcode_direct=yes
9344
      hardcode_shlibpath_var=no
9345
      ;;
9346
 
9347
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9348
    freebsd2*)
9349
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350
      hardcode_direct=yes
9351
      hardcode_minus_L=yes
9352
      hardcode_shlibpath_var=no
9353
      ;;
9354
 
9355
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9356
    freebsd* | dragonfly*)
9357
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9358
      hardcode_libdir_flag_spec='-R$libdir'
9359
      hardcode_direct=yes
9360
      hardcode_shlibpath_var=no
9361
      ;;
9362
 
9363
    hpux9*)
9364
      if test "$GCC" = yes; then
9365
        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'
9366
      else
9367
        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'
9368
      fi
9369
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370
      hardcode_libdir_separator=:
9371
      hardcode_direct=yes
9372
 
9373
      # hardcode_minus_L: Not really in the search PATH,
9374
      # but as the default location of the library.
9375
      hardcode_minus_L=yes
9376
      export_dynamic_flag_spec='${wl}-E'
9377
      ;;
9378
 
9379
    hpux10*)
9380
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9381
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9382
      else
9383
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9384
      fi
9385
      if test "$with_gnu_ld" = no; then
9386
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9387
        hardcode_libdir_flag_spec_ld='+b $libdir'
9388
        hardcode_libdir_separator=:
9389
        hardcode_direct=yes
9390
        hardcode_direct_absolute=yes
9391
        export_dynamic_flag_spec='${wl}-E'
9392
        # hardcode_minus_L: Not really in the search PATH,
9393
        # but as the default location of the library.
9394
        hardcode_minus_L=yes
9395
      fi
9396
      ;;
9397
 
9398
    hpux11*)
9399
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9400
        case $host_cpu in
9401
        hppa*64*)
9402
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403
          ;;
9404
        ia64*)
9405
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406
          ;;
9407
        *)
9408
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9409
          ;;
9410
        esac
9411
      else
9412
        case $host_cpu in
9413
        hppa*64*)
9414
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415
          ;;
9416
        ia64*)
9417
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9418
          ;;
9419
        *)
9420
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421
          ;;
9422
        esac
9423
      fi
9424
      if test "$with_gnu_ld" = no; then
9425
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426
        hardcode_libdir_separator=:
9427
 
9428
        case $host_cpu in
9429
        hppa*64*|ia64*)
9430
          hardcode_direct=no
9431
          hardcode_shlibpath_var=no
9432
          ;;
9433
        *)
9434
          hardcode_direct=yes
9435
          hardcode_direct_absolute=yes
9436
          export_dynamic_flag_spec='${wl}-E'
9437
 
9438
          # hardcode_minus_L: Not really in the search PATH,
9439
          # but as the default location of the library.
9440
          hardcode_minus_L=yes
9441
          ;;
9442
        esac
9443
      fi
9444
      ;;
9445
 
9446
    irix5* | irix6* | nonstopux*)
9447
      if test "$GCC" = yes; then
9448
        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'
9449
        # Try to use the -exported_symbol ld option, if it does not
9450
        # work, assume that -exports_file does not work either and
9451
        # implicitly export all symbols.
9452
        save_LDFLAGS="$LDFLAGS"
9453
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9454
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455
/* end confdefs.h.  */
9456
int foo(void) {}
9457
_ACEOF
9458
if ac_fn_c_try_link "$LINENO"; then :
9459
  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'
9460
 
9461
fi
9462
rm -f core conftest.err conftest.$ac_objext \
9463
    conftest$ac_exeext conftest.$ac_ext
9464
        LDFLAGS="$save_LDFLAGS"
9465
      else
9466
        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'
9467
        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'
9468
      fi
9469
      archive_cmds_need_lc='no'
9470
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471
      hardcode_libdir_separator=:
9472
      inherit_rpath=yes
9473
      link_all_deplibs=yes
9474
      ;;
9475
 
9476
    netbsd*)
9477
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9478
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9479
      else
9480
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9481
      fi
9482
      hardcode_libdir_flag_spec='-R$libdir'
9483
      hardcode_direct=yes
9484
      hardcode_shlibpath_var=no
9485
      ;;
9486
 
9487
    newsos6)
9488
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489
      hardcode_direct=yes
9490
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9491
      hardcode_libdir_separator=:
9492
      hardcode_shlibpath_var=no
9493
      ;;
9494
 
9495
    *nto* | *qnx*)
9496
      ;;
9497
 
9498
    openbsd*)
9499
      if test -f /usr/libexec/ld.so; then
9500
        hardcode_direct=yes
9501
        hardcode_shlibpath_var=no
9502
        hardcode_direct_absolute=yes
9503
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9504
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9505
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9506
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9507
          export_dynamic_flag_spec='${wl}-E'
9508
        else
9509
          case $host_os in
9510
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9511
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9512
             hardcode_libdir_flag_spec='-R$libdir'
9513
             ;;
9514
           *)
9515
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9516
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9517
             ;;
9518
          esac
9519
        fi
9520
      else
9521
        ld_shlibs=no
9522
      fi
9523
      ;;
9524
 
9525
    os2*)
9526
      hardcode_libdir_flag_spec='-L$libdir'
9527
      hardcode_minus_L=yes
9528
      allow_undefined_flag=unsupported
9529
      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'
9530
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9531
      ;;
9532
 
9533
    osf3*)
9534
      if test "$GCC" = yes; then
9535
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9536
        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'
9537
      else
9538
        allow_undefined_flag=' -expect_unresolved \*'
9539
        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'
9540
      fi
9541
      archive_cmds_need_lc='no'
9542
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543
      hardcode_libdir_separator=:
9544
      ;;
9545
 
9546
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9547
      if test "$GCC" = yes; then
9548
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9549
        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'
9550
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551
      else
9552
        allow_undefined_flag=' -expect_unresolved \*'
9553
        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'
9554
        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~
9555
        $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'
9556
 
9557
        # Both c and cxx compiler support -rpath directly
9558
        hardcode_libdir_flag_spec='-rpath $libdir'
9559
      fi
9560
      archive_cmds_need_lc='no'
9561
      hardcode_libdir_separator=:
9562
      ;;
9563
 
9564
    solaris*)
9565
      no_undefined_flag=' -z defs'
9566
      if test "$GCC" = yes; then
9567
        wlarc='${wl}'
9568
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9569
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9570
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9571
      else
9572
        case `$CC -V 2>&1` in
9573
        *"Compilers 5.0"*)
9574
          wlarc=''
9575
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9578
          ;;
9579
        *)
9580
          wlarc='${wl}'
9581
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9582
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9583
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9584
          ;;
9585
        esac
9586
      fi
9587
      hardcode_libdir_flag_spec='-R$libdir'
9588
      hardcode_shlibpath_var=no
9589
      case $host_os in
9590
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9591
      *)
9592
        # The compiler driver will combine and reorder linker options,
9593
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9594
        # but is careful enough not to reorder.
9595
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9596
        if test "$GCC" = yes; then
9597
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9598
        else
9599
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9600
        fi
9601
        ;;
9602
      esac
9603
      link_all_deplibs=yes
9604
      ;;
9605
 
9606
    sunos4*)
9607
      if test "x$host_vendor" = xsequent; then
9608
        # Use $CC to link under sequent, because it throws in some extra .o
9609
        # files that make .init and .fini sections work.
9610
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611
      else
9612
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9613
      fi
9614
      hardcode_libdir_flag_spec='-L$libdir'
9615
      hardcode_direct=yes
9616
      hardcode_minus_L=yes
9617
      hardcode_shlibpath_var=no
9618
      ;;
9619
 
9620
    sysv4)
9621
      case $host_vendor in
9622
        sni)
9623
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624
          hardcode_direct=yes # is this really true???
9625
        ;;
9626
        siemens)
9627
          ## LD is ld it makes a PLAMLIB
9628
          ## CC just makes a GrossModule.
9629
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9630
          reload_cmds='$CC -r -o $output$reload_objs'
9631
          hardcode_direct=no
9632
        ;;
9633
        motorola)
9634
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9636
        ;;
9637
      esac
9638
      runpath_var='LD_RUN_PATH'
9639
      hardcode_shlibpath_var=no
9640
      ;;
9641
 
9642
    sysv4.3*)
9643
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644
      hardcode_shlibpath_var=no
9645
      export_dynamic_flag_spec='-Bexport'
9646
      ;;
9647
 
9648
    sysv4*MP*)
9649
      if test -d /usr/nec; then
9650
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651
        hardcode_shlibpath_var=no
9652
        runpath_var=LD_RUN_PATH
9653
        hardcode_runpath_var=yes
9654
        ld_shlibs=yes
9655
      fi
9656
      ;;
9657
 
9658
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9659
      no_undefined_flag='${wl}-z,text'
9660
      archive_cmds_need_lc=no
9661
      hardcode_shlibpath_var=no
9662
      runpath_var='LD_RUN_PATH'
9663
 
9664
      if test "$GCC" = yes; then
9665
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667
      else
9668
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670
      fi
9671
      ;;
9672
 
9673
    sysv5* | sco3.2v5* | sco5v6*)
9674
      # Note: We can NOT use -z defs as we might desire, because we do not
9675
      # link with -lc, and that would cause any symbols used from libc to
9676
      # always be unresolved, which means just about no library would
9677
      # ever link correctly.  If we're not using GNU ld we use -z text
9678
      # though, which does catch some bad symbols but isn't as heavy-handed
9679
      # as -z defs.
9680
      no_undefined_flag='${wl}-z,text'
9681
      allow_undefined_flag='${wl}-z,nodefs'
9682
      archive_cmds_need_lc=no
9683
      hardcode_shlibpath_var=no
9684
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9685
      hardcode_libdir_separator=':'
9686
      link_all_deplibs=yes
9687
      export_dynamic_flag_spec='${wl}-Bexport'
9688
      runpath_var='LD_RUN_PATH'
9689
 
9690
      if test "$GCC" = yes; then
9691
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693
      else
9694
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696
      fi
9697
      ;;
9698
 
9699
    uts4*)
9700
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701
      hardcode_libdir_flag_spec='-L$libdir'
9702
      hardcode_shlibpath_var=no
9703
      ;;
9704
 
9705
    *)
9706
      ld_shlibs=no
9707
      ;;
9708
    esac
9709
 
9710
    if test x$host_vendor = xsni; then
9711
      case $host in
9712
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9713
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9714
        ;;
9715
      esac
9716
    fi
9717
  fi
9718
 
9719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9720
$as_echo "$ld_shlibs" >&6; }
9721
test "$ld_shlibs" = no && can_build_shared=no
9722
 
9723
with_gnu_ld=$with_gnu_ld
9724
 
9725
 
9726
 
9727
 
9728
 
9729
 
9730
 
9731
 
9732
 
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
#
9740
# Do we need to explicitly link libc?
9741
#
9742
case "x$archive_cmds_need_lc" in
9743
x|xyes)
9744
  # Assume -lc should be added
9745
  archive_cmds_need_lc=yes
9746
 
9747
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9748
    case $archive_cmds in
9749
    *'~'*)
9750
      # FIXME: we may have to deal with multi-command sequences.
9751
      ;;
9752
    '$CC '*)
9753
      # Test whether the compiler implicitly links with -lc since on some
9754
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9755
      # to ld, don't add -lc before -lgcc.
9756
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9757
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9758
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9759
  $as_echo_n "(cached) " >&6
9760
else
9761
  $RM conftest*
9762
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763
 
9764
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9765
  (eval $ac_compile) 2>&5
9766
  ac_status=$?
9767
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9768
  test $ac_status = 0; } 2>conftest.err; then
9769
          soname=conftest
9770
          lib=conftest
9771
          libobjs=conftest.$ac_objext
9772
          deplibs=
9773
          wl=$lt_prog_compiler_wl
9774
          pic_flag=$lt_prog_compiler_pic
9775
          compiler_flags=-v
9776
          linker_flags=-v
9777
          verstring=
9778
          output_objdir=.
9779
          libname=conftest
9780
          lt_save_allow_undefined_flag=$allow_undefined_flag
9781
          allow_undefined_flag=
9782
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9783
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9784
  ac_status=$?
9785
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786
  test $ac_status = 0; }
9787
          then
9788
            lt_cv_archive_cmds_need_lc=no
9789
          else
9790
            lt_cv_archive_cmds_need_lc=yes
9791
          fi
9792
          allow_undefined_flag=$lt_save_allow_undefined_flag
9793
        else
9794
          cat conftest.err 1>&5
9795
        fi
9796
        $RM conftest*
9797
 
9798
fi
9799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9800
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9801
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9802
      ;;
9803
    esac
9804
  fi
9805
  ;;
9806
esac
9807
 
9808
 
9809
 
9810
 
9811
 
9812
 
9813
 
9814
 
9815
 
9816
 
9817
 
9818
 
9819
 
9820
 
9821
 
9822
 
9823
 
9824
 
9825
 
9826
 
9827
 
9828
 
9829
 
9830
 
9831
 
9832
 
9833
 
9834
 
9835
 
9836
 
9837
 
9838
 
9839
 
9840
 
9841
 
9842
 
9843
 
9844
 
9845
 
9846
 
9847
 
9848
 
9849
 
9850
 
9851
 
9852
 
9853
 
9854
 
9855
 
9856
 
9857
 
9858
 
9859
 
9860
 
9861
 
9862
 
9863
 
9864
 
9865
 
9866
 
9867
 
9868
 
9869
 
9870
 
9871
 
9872
 
9873
 
9874
 
9875
 
9876
 
9877
 
9878
 
9879
 
9880
 
9881
 
9882
 
9883
 
9884
 
9885
 
9886
 
9887
 
9888
 
9889
 
9890
 
9891
 
9892
 
9893
 
9894
 
9895
 
9896
 
9897
 
9898
 
9899
 
9900
 
9901
 
9902
 
9903
 
9904
 
9905
 
9906
 
9907
 
9908
 
9909
 
9910
 
9911
 
9912
 
9913
 
9914
 
9915
 
9916
 
9917
 
9918
 
9919
 
9920
 
9921
 
9922
 
9923
 
9924
 
9925
 
9926
 
9927
 
9928
 
9929
 
9930
 
9931
 
9932
 
9933
 
9934
 
9935
 
9936
 
9937
 
9938
 
9939
 
9940
 
9941
 
9942
 
9943
 
9944
 
9945
 
9946
 
9947
 
9948
 
9949
 
9950
 
9951
 
9952
 
9953
 
9954
 
9955
 
9956
 
9957
 
9958
 
9959
 
9960
 
9961
 
9962
 
9963
 
9964
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9965
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9966
 
9967
if test "$GCC" = yes; then
9968
  case $host_os in
9969
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9970
    *) lt_awk_arg="/^libraries:/" ;;
9971
  esac
9972
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9973
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9974
    # if the path contains ";" then we assume it to be the separator
9975
    # otherwise default to the standard path separator (i.e. ":") - it is
9976
    # assumed that no part of a normal pathname contains ";" but that should
9977
    # okay in the real world where ";" in dirpaths is itself problematic.
9978
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9979
  else
9980
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9981
  fi
9982
  # Ok, now we have the path, separated by spaces, we can step through it
9983
  # and add multilib dir if necessary.
9984
  lt_tmp_lt_search_path_spec=
9985
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9986
  for lt_sys_path in $lt_search_path_spec; do
9987
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9988
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9989
    else
9990
      test -d "$lt_sys_path" && \
9991
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9992
    fi
9993
  done
9994
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9995
BEGIN {RS=" "; FS="/|\n";} {
9996
  lt_foo="";
9997
  lt_count=0;
9998
  for (lt_i = NF; lt_i > 0; lt_i--) {
9999
    if ($lt_i != "" && $lt_i != ".") {
10000
      if ($lt_i == "..") {
10001
        lt_count++;
10002
      } else {
10003
        if (lt_count == 0) {
10004
          lt_foo="/" $lt_i lt_foo;
10005
        } else {
10006
          lt_count--;
10007
        }
10008
      }
10009
    }
10010
  }
10011
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10012
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10013
}'`
10014
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10015
else
10016
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10017
fi
10018
library_names_spec=
10019
libname_spec='lib$name'
10020
soname_spec=
10021
shrext_cmds=".so"
10022
postinstall_cmds=
10023
postuninstall_cmds=
10024
finish_cmds=
10025
finish_eval=
10026
shlibpath_var=
10027
shlibpath_overrides_runpath=unknown
10028
version_type=none
10029
dynamic_linker="$host_os ld.so"
10030
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10031
need_lib_prefix=unknown
10032
hardcode_into_libs=no
10033
 
10034
# when you set need_version to no, make sure it does not cause -set_version
10035
# flags to be left without arguments
10036
need_version=unknown
10037
 
10038
case $host_os in
10039
aix3*)
10040
  version_type=linux
10041
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10042
  shlibpath_var=LIBPATH
10043
 
10044
  # AIX 3 has no versioning support, so we append a major version to the name.
10045
  soname_spec='${libname}${release}${shared_ext}$major'
10046
  ;;
10047
 
10048
aix[4-9]*)
10049
  version_type=linux
10050
  need_lib_prefix=no
10051
  need_version=no
10052
  hardcode_into_libs=yes
10053
  if test "$host_cpu" = ia64; then
10054
    # AIX 5 supports IA64
10055
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10056
    shlibpath_var=LD_LIBRARY_PATH
10057
  else
10058
    # With GCC up to 2.95.x, collect2 would create an import file
10059
    # for dependence libraries.  The import file would start with
10060
    # the line `#! .'.  This would cause the generated library to
10061
    # depend on `.', always an invalid library.  This was fixed in
10062
    # development snapshots of GCC prior to 3.0.
10063
    case $host_os in
10064
      aix4 | aix4.[01] | aix4.[01].*)
10065
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10066
           echo ' yes '
10067
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10068
        :
10069
      else
10070
        can_build_shared=no
10071
      fi
10072
      ;;
10073
    esac
10074
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10075
    # soname into executable. Probably we can add versioning support to
10076
    # collect2, so additional links can be useful in future.
10077
    if test "$aix_use_runtimelinking" = yes; then
10078
      # If using run time linking (on AIX 4.2 or later) use lib.so
10079
      # instead of lib.a to let people know that these are not
10080
      # typical AIX shared libraries.
10081
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082
    else
10083
      # We preserve .a as extension for shared libraries through AIX4.2
10084
      # and later when we are not doing run time linking.
10085
      library_names_spec='${libname}${release}.a $libname.a'
10086
      soname_spec='${libname}${release}${shared_ext}$major'
10087
    fi
10088
    shlibpath_var=LIBPATH
10089
  fi
10090
  ;;
10091
 
10092
amigaos*)
10093
  case $host_cpu in
10094
  powerpc)
10095
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10096
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10097
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098
    ;;
10099
  m68k)
10100
    library_names_spec='$libname.ixlibrary $libname.a'
10101
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10102
    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'
10103
    ;;
10104
  esac
10105
  ;;
10106
 
10107
beos*)
10108
  library_names_spec='${libname}${shared_ext}'
10109
  dynamic_linker="$host_os ld.so"
10110
  shlibpath_var=LIBRARY_PATH
10111
  ;;
10112
 
10113
bsdi[45]*)
10114
  version_type=linux
10115
  need_version=no
10116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117
  soname_spec='${libname}${release}${shared_ext}$major'
10118
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10119
  shlibpath_var=LD_LIBRARY_PATH
10120
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10121
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10122
  # the default ld.so.conf also contains /usr/contrib/lib and
10123
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10124
  # libtool to hard-code these into programs
10125
  ;;
10126
 
10127
cygwin* | mingw* | pw32* | cegcc*)
10128
  version_type=windows
10129
  shrext_cmds=".dll"
10130
  need_version=no
10131
  need_lib_prefix=no
10132
 
10133
  case $GCC,$host_os in
10134
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10135
    library_names_spec='$libname.dll.a'
10136
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10137
    postinstall_cmds='base_file=`basename \${file}`~
10138
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10139
      dldir=$destdir/`dirname \$dlpath`~
10140
      test -d \$dldir || mkdir -p \$dldir~
10141
      $install_prog $dir/$dlname \$dldir/$dlname~
10142
      chmod a+x \$dldir/$dlname~
10143
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10144
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10145
      fi'
10146
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10147
      dlpath=$dir/\$dldll~
10148
       $RM \$dlpath'
10149
    shlibpath_overrides_runpath=yes
10150
 
10151
    case $host_os in
10152
    cygwin*)
10153
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10154
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10155
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10156
      ;;
10157
    mingw* | cegcc*)
10158
      # MinGW DLLs use traditional 'lib' prefix
10159
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10160
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10161
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10162
        # It is most probably a Windows format PATH printed by
10163
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10164
        # path with ; separators, and with drive letters. We can handle the
10165
        # drive letters (cygwin fileutils understands them), so leave them,
10166
        # especially as we might pass files found there to a mingw objdump,
10167
        # which wouldn't understand a cygwinified path. Ahh.
10168
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10169
      else
10170
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10171
      fi
10172
      ;;
10173
    pw32*)
10174
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10175
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10176
      ;;
10177
    esac
10178
    ;;
10179
 
10180
  *)
10181
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10182
    ;;
10183
  esac
10184
  dynamic_linker='Win32 ld.exe'
10185
  # FIXME: first we should search . and the directory the executable is in
10186
  shlibpath_var=PATH
10187
  ;;
10188
 
10189
darwin* | rhapsody*)
10190
  dynamic_linker="$host_os dyld"
10191
  version_type=darwin
10192
  need_lib_prefix=no
10193
  need_version=no
10194
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10195
  soname_spec='${libname}${release}${major}$shared_ext'
10196
  shlibpath_overrides_runpath=yes
10197
  shlibpath_var=DYLD_LIBRARY_PATH
10198
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10199
 
10200
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10201
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10202
  ;;
10203
 
10204
dgux*)
10205
  version_type=linux
10206
  need_lib_prefix=no
10207
  need_version=no
10208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10209
  soname_spec='${libname}${release}${shared_ext}$major'
10210
  shlibpath_var=LD_LIBRARY_PATH
10211
  ;;
10212
 
10213
freebsd1*)
10214
  dynamic_linker=no
10215
  ;;
10216
 
10217
freebsd* | dragonfly*)
10218
  # DragonFly does not have aout.  When/if they implement a new
10219
  # versioning mechanism, adjust this.
10220
  if test -x /usr/bin/objformat; then
10221
    objformat=`/usr/bin/objformat`
10222
  else
10223
    case $host_os in
10224
    freebsd[123]*) objformat=aout ;;
10225
    *) objformat=elf ;;
10226
    esac
10227
  fi
10228
  version_type=freebsd-$objformat
10229
  case $version_type in
10230
    freebsd-elf*)
10231
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10232
      need_version=no
10233
      need_lib_prefix=no
10234
      ;;
10235
    freebsd-*)
10236
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10237
      need_version=yes
10238
      ;;
10239
  esac
10240
  shlibpath_var=LD_LIBRARY_PATH
10241
  case $host_os in
10242
  freebsd2*)
10243
    shlibpath_overrides_runpath=yes
10244
    ;;
10245
  freebsd3.[01]* | freebsdelf3.[01]*)
10246
    shlibpath_overrides_runpath=yes
10247
    hardcode_into_libs=yes
10248
    ;;
10249
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10250
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10251
    shlibpath_overrides_runpath=no
10252
    hardcode_into_libs=yes
10253
    ;;
10254
  *) # from 4.6 on, and DragonFly
10255
    shlibpath_overrides_runpath=yes
10256
    hardcode_into_libs=yes
10257
    ;;
10258
  esac
10259
  ;;
10260
 
10261
gnu*)
10262
  version_type=linux
10263
  need_lib_prefix=no
10264
  need_version=no
10265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10266
  soname_spec='${libname}${release}${shared_ext}$major'
10267
  shlibpath_var=LD_LIBRARY_PATH
10268
  hardcode_into_libs=yes
10269
  ;;
10270
 
10271
hpux9* | hpux10* | hpux11*)
10272
  # Give a soname corresponding to the major version so that dld.sl refuses to
10273
  # link against other versions.
10274
  version_type=sunos
10275
  need_lib_prefix=no
10276
  need_version=no
10277
  case $host_cpu in
10278
  ia64*)
10279
    shrext_cmds='.so'
10280
    hardcode_into_libs=yes
10281
    dynamic_linker="$host_os dld.so"
10282
    shlibpath_var=LD_LIBRARY_PATH
10283
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10284
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285
    soname_spec='${libname}${release}${shared_ext}$major'
10286
    if test "X$HPUX_IA64_MODE" = X32; then
10287
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10288
    else
10289
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10290
    fi
10291
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10292
    ;;
10293
  hppa*64*)
10294
    shrext_cmds='.sl'
10295
    hardcode_into_libs=yes
10296
    dynamic_linker="$host_os dld.sl"
10297
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10298
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10299
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300
    soname_spec='${libname}${release}${shared_ext}$major'
10301
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10302
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10303
    ;;
10304
  *)
10305
    shrext_cmds='.sl'
10306
    dynamic_linker="$host_os dld.sl"
10307
    shlibpath_var=SHLIB_PATH
10308
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10309
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310
    soname_spec='${libname}${release}${shared_ext}$major'
10311
    ;;
10312
  esac
10313
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10314
  postinstall_cmds='chmod 555 $lib'
10315
  ;;
10316
 
10317
interix[3-9]*)
10318
  version_type=linux
10319
  need_lib_prefix=no
10320
  need_version=no
10321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10322
  soname_spec='${libname}${release}${shared_ext}$major'
10323
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10324
  shlibpath_var=LD_LIBRARY_PATH
10325
  shlibpath_overrides_runpath=no
10326
  hardcode_into_libs=yes
10327
  ;;
10328
 
10329
irix5* | irix6* | nonstopux*)
10330
  case $host_os in
10331
    nonstopux*) version_type=nonstopux ;;
10332
    *)
10333
        if test "$lt_cv_prog_gnu_ld" = yes; then
10334
                version_type=linux
10335
        else
10336
                version_type=irix
10337
        fi ;;
10338
  esac
10339
  need_lib_prefix=no
10340
  need_version=no
10341
  soname_spec='${libname}${release}${shared_ext}$major'
10342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10343
  case $host_os in
10344
  irix5* | nonstopux*)
10345
    libsuff= shlibsuff=
10346
    ;;
10347
  *)
10348
    case $LD in # libtool.m4 will add one of these switches to LD
10349
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10350
      libsuff= shlibsuff= libmagic=32-bit;;
10351
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10352
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10353
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10354
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10355
    *) libsuff= shlibsuff= libmagic=never-match;;
10356
    esac
10357
    ;;
10358
  esac
10359
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10360
  shlibpath_overrides_runpath=no
10361
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10362
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10363
  hardcode_into_libs=yes
10364
  ;;
10365
 
10366
# No shared lib support for Linux oldld, aout, or coff.
10367
linux*oldld* | linux*aout* | linux*coff*)
10368
  dynamic_linker=no
10369
  ;;
10370
 
10371
# This must be Linux ELF.
10372
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10373
  version_type=linux
10374
  need_lib_prefix=no
10375
  need_version=no
10376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377
  soname_spec='${libname}${release}${shared_ext}$major'
10378
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10379
  shlibpath_var=LD_LIBRARY_PATH
10380
  shlibpath_overrides_runpath=no
10381
 
10382
  # Some binutils ld are patched to set DT_RUNPATH
10383
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10384
  $as_echo_n "(cached) " >&6
10385
else
10386
  lt_cv_shlibpath_overrides_runpath=no
10387
    save_LDFLAGS=$LDFLAGS
10388
    save_libdir=$libdir
10389
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10390
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10391
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392
/* end confdefs.h.  */
10393
 
10394
int
10395
main ()
10396
{
10397
 
10398
  ;
10399
  return 0;
10400
}
10401
_ACEOF
10402
if ac_fn_c_try_link "$LINENO"; then :
10403
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10404
  lt_cv_shlibpath_overrides_runpath=yes
10405
fi
10406
fi
10407
rm -f core conftest.err conftest.$ac_objext \
10408
    conftest$ac_exeext conftest.$ac_ext
10409
    LDFLAGS=$save_LDFLAGS
10410
    libdir=$save_libdir
10411
 
10412
fi
10413
 
10414
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10415
 
10416
  # This implies no fast_install, which is unacceptable.
10417
  # Some rework will be needed to allow for fast_install
10418
  # before this can be enabled.
10419
  hardcode_into_libs=yes
10420
 
10421
  # Append ld.so.conf contents to the search path
10422
  if test -f /etc/ld.so.conf; then
10423
    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' ' '`
10424
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10425
  fi
10426
 
10427
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10428
  # powerpc, because MkLinux only supported shared libraries with the
10429
  # GNU dynamic linker.  Since this was broken with cross compilers,
10430
  # most powerpc-linux boxes support dynamic linking these days and
10431
  # people can always --disable-shared, the test was removed, and we
10432
  # assume the GNU/Linux dynamic linker is in use.
10433
  dynamic_linker='GNU/Linux ld.so'
10434
  ;;
10435
 
10436
netbsd*)
10437
  version_type=sunos
10438
  need_lib_prefix=no
10439
  need_version=no
10440
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10441
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10442
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10443
    dynamic_linker='NetBSD (a.out) ld.so'
10444
  else
10445
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10446
    soname_spec='${libname}${release}${shared_ext}$major'
10447
    dynamic_linker='NetBSD ld.elf_so'
10448
  fi
10449
  shlibpath_var=LD_LIBRARY_PATH
10450
  shlibpath_overrides_runpath=yes
10451
  hardcode_into_libs=yes
10452
  ;;
10453
 
10454
newsos6)
10455
  version_type=linux
10456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457
  shlibpath_var=LD_LIBRARY_PATH
10458
  shlibpath_overrides_runpath=yes
10459
  ;;
10460
 
10461
*nto* | *qnx*)
10462
  version_type=qnx
10463
  need_lib_prefix=no
10464
  need_version=no
10465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466
  soname_spec='${libname}${release}${shared_ext}$major'
10467
  shlibpath_var=LD_LIBRARY_PATH
10468
  shlibpath_overrides_runpath=no
10469
  hardcode_into_libs=yes
10470
  dynamic_linker='ldqnx.so'
10471
  ;;
10472
 
10473
openbsd*)
10474
  version_type=sunos
10475
  sys_lib_dlsearch_path_spec="/usr/lib"
10476
  need_lib_prefix=no
10477
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10478
  case $host_os in
10479
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10480
    *)                          need_version=no  ;;
10481
  esac
10482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10484
  shlibpath_var=LD_LIBRARY_PATH
10485
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10486
    case $host_os in
10487
      openbsd2.[89] | openbsd2.[89].*)
10488
        shlibpath_overrides_runpath=no
10489
        ;;
10490
      *)
10491
        shlibpath_overrides_runpath=yes
10492
        ;;
10493
      esac
10494
  else
10495
    shlibpath_overrides_runpath=yes
10496
  fi
10497
  ;;
10498
 
10499
os2*)
10500
  libname_spec='$name'
10501
  shrext_cmds=".dll"
10502
  need_lib_prefix=no
10503
  library_names_spec='$libname${shared_ext} $libname.a'
10504
  dynamic_linker='OS/2 ld.exe'
10505
  shlibpath_var=LIBPATH
10506
  ;;
10507
 
10508
osf3* | osf4* | osf5*)
10509
  version_type=osf
10510
  need_lib_prefix=no
10511
  need_version=no
10512
  soname_spec='${libname}${release}${shared_ext}$major'
10513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514
  shlibpath_var=LD_LIBRARY_PATH
10515
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10516
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10517
  ;;
10518
 
10519
rdos*)
10520
  dynamic_linker=no
10521
  ;;
10522
 
10523
solaris*)
10524
  version_type=linux
10525
  need_lib_prefix=no
10526
  need_version=no
10527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528
  soname_spec='${libname}${release}${shared_ext}$major'
10529
  shlibpath_var=LD_LIBRARY_PATH
10530
  shlibpath_overrides_runpath=yes
10531
  hardcode_into_libs=yes
10532
  # ldd complains unless libraries are executable
10533
  postinstall_cmds='chmod +x $lib'
10534
  ;;
10535
 
10536
sunos4*)
10537
  version_type=sunos
10538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10539
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10540
  shlibpath_var=LD_LIBRARY_PATH
10541
  shlibpath_overrides_runpath=yes
10542
  if test "$with_gnu_ld" = yes; then
10543
    need_lib_prefix=no
10544
  fi
10545
  need_version=yes
10546
  ;;
10547
 
10548
sysv4 | sysv4.3*)
10549
  version_type=linux
10550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551
  soname_spec='${libname}${release}${shared_ext}$major'
10552
  shlibpath_var=LD_LIBRARY_PATH
10553
  case $host_vendor in
10554
    sni)
10555
      shlibpath_overrides_runpath=no
10556
      need_lib_prefix=no
10557
      runpath_var=LD_RUN_PATH
10558
      ;;
10559
    siemens)
10560
      need_lib_prefix=no
10561
      ;;
10562
    motorola)
10563
      need_lib_prefix=no
10564
      need_version=no
10565
      shlibpath_overrides_runpath=no
10566
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10567
      ;;
10568
  esac
10569
  ;;
10570
 
10571
sysv4*MP*)
10572
  if test -d /usr/nec ;then
10573
    version_type=linux
10574
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10575
    soname_spec='$libname${shared_ext}.$major'
10576
    shlibpath_var=LD_LIBRARY_PATH
10577
  fi
10578
  ;;
10579
 
10580
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10581
  version_type=freebsd-elf
10582
  need_lib_prefix=no
10583
  need_version=no
10584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10585
  soname_spec='${libname}${release}${shared_ext}$major'
10586
  shlibpath_var=LD_LIBRARY_PATH
10587
  shlibpath_overrides_runpath=yes
10588
  hardcode_into_libs=yes
10589
  if test "$with_gnu_ld" = yes; then
10590
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10591
  else
10592
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10593
    case $host_os in
10594
      sco3.2v5*)
10595
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10596
        ;;
10597
    esac
10598
  fi
10599
  sys_lib_dlsearch_path_spec='/usr/lib'
10600
  ;;
10601
 
10602
tpf*)
10603
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10604
  version_type=linux
10605
  need_lib_prefix=no
10606
  need_version=no
10607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608
  shlibpath_var=LD_LIBRARY_PATH
10609
  shlibpath_overrides_runpath=no
10610
  hardcode_into_libs=yes
10611
  ;;
10612
 
10613
uts4*)
10614
  version_type=linux
10615
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616
  soname_spec='${libname}${release}${shared_ext}$major'
10617
  shlibpath_var=LD_LIBRARY_PATH
10618
  ;;
10619
 
10620
*)
10621
  dynamic_linker=no
10622
  ;;
10623
esac
10624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10625
$as_echo "$dynamic_linker" >&6; }
10626
test "$dynamic_linker" = no && can_build_shared=no
10627
 
10628
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10629
if test "$GCC" = yes; then
10630
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10631
fi
10632
 
10633
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10634
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10635
fi
10636
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10637
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10638
fi
10639
 
10640
 
10641
 
10642
 
10643
 
10644
 
10645
 
10646
 
10647
 
10648
 
10649
 
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
 
10664
 
10665
 
10666
 
10667
 
10668
 
10669
 
10670
 
10671
 
10672
 
10673
 
10674
 
10675
 
10676
 
10677
 
10678
 
10679
 
10680
 
10681
 
10682
 
10683
 
10684
 
10685
 
10686
 
10687
 
10688
 
10689
 
10690
 
10691
 
10692
 
10693
 
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708
 
10709
 
10710
 
10711
 
10712
 
10713
 
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10727
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10728
hardcode_action=
10729
if test -n "$hardcode_libdir_flag_spec" ||
10730
   test -n "$runpath_var" ||
10731
   test "X$hardcode_automatic" = "Xyes" ; then
10732
 
10733
  # We can hardcode non-existent directories.
10734
  if test "$hardcode_direct" != no &&
10735
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10736
     # have to relink, otherwise we might link with an installed library
10737
     # when we should be linking with a yet-to-be-installed one
10738
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10739
     test "$hardcode_minus_L" != no; then
10740
    # Linking always hardcodes the temporary library directory.
10741
    hardcode_action=relink
10742
  else
10743
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10744
    hardcode_action=immediate
10745
  fi
10746
else
10747
  # We cannot hardcode anything, or else we can only hardcode existing
10748
  # directories.
10749
  hardcode_action=unsupported
10750
fi
10751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10752
$as_echo "$hardcode_action" >&6; }
10753
 
10754
if test "$hardcode_action" = relink ||
10755
   test "$inherit_rpath" = yes; then
10756
  # Fast installation is not supported
10757
  enable_fast_install=no
10758
elif test "$shlibpath_overrides_runpath" = yes ||
10759
     test "$enable_shared" = no; then
10760
  # Fast installation is not necessary
10761
  enable_fast_install=needless
10762
fi
10763
 
10764
 
10765
 
10766
 
10767
 
10768
 
10769
  if test "x$enable_dlopen" != xyes; then
10770
  enable_dlopen=unknown
10771
  enable_dlopen_self=unknown
10772
  enable_dlopen_self_static=unknown
10773
else
10774
  lt_cv_dlopen=no
10775
  lt_cv_dlopen_libs=
10776
 
10777
  case $host_os in
10778
  beos*)
10779
    lt_cv_dlopen="load_add_on"
10780
    lt_cv_dlopen_libs=
10781
    lt_cv_dlopen_self=yes
10782
    ;;
10783
 
10784
  mingw* | pw32* | cegcc*)
10785
    lt_cv_dlopen="LoadLibrary"
10786
    lt_cv_dlopen_libs=
10787
    ;;
10788
 
10789
  cygwin*)
10790
    lt_cv_dlopen="dlopen"
10791
    lt_cv_dlopen_libs=
10792
    ;;
10793
 
10794
  darwin*)
10795
  # if libdl is installed we need to link against it
10796
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10797
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10798
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10799
  $as_echo_n "(cached) " >&6
10800
else
10801
  ac_check_lib_save_LIBS=$LIBS
10802
LIBS="-ldl  $LIBS"
10803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804
/* end confdefs.h.  */
10805
 
10806
/* Override any GCC internal prototype to avoid an error.
10807
   Use char because int might match the return type of a GCC
10808
   builtin and then its argument prototype would still apply.  */
10809
#ifdef __cplusplus
10810
extern "C"
10811
#endif
10812
char dlopen ();
10813
int
10814
main ()
10815
{
10816
return dlopen ();
10817
  ;
10818
  return 0;
10819
}
10820
_ACEOF
10821
if ac_fn_c_try_link "$LINENO"; then :
10822
  ac_cv_lib_dl_dlopen=yes
10823
else
10824
  ac_cv_lib_dl_dlopen=no
10825
fi
10826
rm -f core conftest.err conftest.$ac_objext \
10827
    conftest$ac_exeext conftest.$ac_ext
10828
LIBS=$ac_check_lib_save_LIBS
10829
fi
10830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10831
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10832
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10833
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10834
else
10835
 
10836
    lt_cv_dlopen="dyld"
10837
    lt_cv_dlopen_libs=
10838
    lt_cv_dlopen_self=yes
10839
 
10840
fi
10841
 
10842
    ;;
10843
 
10844
  *)
10845
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10846
if test "x$ac_cv_func_shl_load" = x""yes; then :
10847
  lt_cv_dlopen="shl_load"
10848
else
10849
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10850
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10851
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10852
  $as_echo_n "(cached) " >&6
10853
else
10854
  ac_check_lib_save_LIBS=$LIBS
10855
LIBS="-ldld  $LIBS"
10856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857
/* end confdefs.h.  */
10858
 
10859
/* Override any GCC internal prototype to avoid an error.
10860
   Use char because int might match the return type of a GCC
10861
   builtin and then its argument prototype would still apply.  */
10862
#ifdef __cplusplus
10863
extern "C"
10864
#endif
10865
char shl_load ();
10866
int
10867
main ()
10868
{
10869
return shl_load ();
10870
  ;
10871
  return 0;
10872
}
10873
_ACEOF
10874
if ac_fn_c_try_link "$LINENO"; then :
10875
  ac_cv_lib_dld_shl_load=yes
10876
else
10877
  ac_cv_lib_dld_shl_load=no
10878
fi
10879
rm -f core conftest.err conftest.$ac_objext \
10880
    conftest$ac_exeext conftest.$ac_ext
10881
LIBS=$ac_check_lib_save_LIBS
10882
fi
10883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10884
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10885
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10886
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10887
else
10888
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10889
if test "x$ac_cv_func_dlopen" = x""yes; then :
10890
  lt_cv_dlopen="dlopen"
10891
else
10892
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10893
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10894
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10895
  $as_echo_n "(cached) " >&6
10896
else
10897
  ac_check_lib_save_LIBS=$LIBS
10898
LIBS="-ldl  $LIBS"
10899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900
/* end confdefs.h.  */
10901
 
10902
/* Override any GCC internal prototype to avoid an error.
10903
   Use char because int might match the return type of a GCC
10904
   builtin and then its argument prototype would still apply.  */
10905
#ifdef __cplusplus
10906
extern "C"
10907
#endif
10908
char dlopen ();
10909
int
10910
main ()
10911
{
10912
return dlopen ();
10913
  ;
10914
  return 0;
10915
}
10916
_ACEOF
10917
if ac_fn_c_try_link "$LINENO"; then :
10918
  ac_cv_lib_dl_dlopen=yes
10919
else
10920
  ac_cv_lib_dl_dlopen=no
10921
fi
10922
rm -f core conftest.err conftest.$ac_objext \
10923
    conftest$ac_exeext conftest.$ac_ext
10924
LIBS=$ac_check_lib_save_LIBS
10925
fi
10926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10927
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10928
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10929
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10930
else
10931
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10932
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10933
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10934
  $as_echo_n "(cached) " >&6
10935
else
10936
  ac_check_lib_save_LIBS=$LIBS
10937
LIBS="-lsvld  $LIBS"
10938
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939
/* end confdefs.h.  */
10940
 
10941
/* Override any GCC internal prototype to avoid an error.
10942
   Use char because int might match the return type of a GCC
10943
   builtin and then its argument prototype would still apply.  */
10944
#ifdef __cplusplus
10945
extern "C"
10946
#endif
10947
char dlopen ();
10948
int
10949
main ()
10950
{
10951
return dlopen ();
10952
  ;
10953
  return 0;
10954
}
10955
_ACEOF
10956
if ac_fn_c_try_link "$LINENO"; then :
10957
  ac_cv_lib_svld_dlopen=yes
10958
else
10959
  ac_cv_lib_svld_dlopen=no
10960
fi
10961
rm -f core conftest.err conftest.$ac_objext \
10962
    conftest$ac_exeext conftest.$ac_ext
10963
LIBS=$ac_check_lib_save_LIBS
10964
fi
10965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10966
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10967
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10968
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10969
else
10970
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10971
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10972
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10973
  $as_echo_n "(cached) " >&6
10974
else
10975
  ac_check_lib_save_LIBS=$LIBS
10976
LIBS="-ldld  $LIBS"
10977
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978
/* end confdefs.h.  */
10979
 
10980
/* Override any GCC internal prototype to avoid an error.
10981
   Use char because int might match the return type of a GCC
10982
   builtin and then its argument prototype would still apply.  */
10983
#ifdef __cplusplus
10984
extern "C"
10985
#endif
10986
char dld_link ();
10987
int
10988
main ()
10989
{
10990
return dld_link ();
10991
  ;
10992
  return 0;
10993
}
10994
_ACEOF
10995
if ac_fn_c_try_link "$LINENO"; then :
10996
  ac_cv_lib_dld_dld_link=yes
10997
else
10998
  ac_cv_lib_dld_dld_link=no
10999
fi
11000
rm -f core conftest.err conftest.$ac_objext \
11001
    conftest$ac_exeext conftest.$ac_ext
11002
LIBS=$ac_check_lib_save_LIBS
11003
fi
11004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11005
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11006
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11007
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11008
fi
11009
 
11010
 
11011
fi
11012
 
11013
 
11014
fi
11015
 
11016
 
11017
fi
11018
 
11019
 
11020
fi
11021
 
11022
 
11023
fi
11024
 
11025
    ;;
11026
  esac
11027
 
11028
  if test "x$lt_cv_dlopen" != xno; then
11029
    enable_dlopen=yes
11030
  else
11031
    enable_dlopen=no
11032
  fi
11033
 
11034
  case $lt_cv_dlopen in
11035
  dlopen)
11036
    save_CPPFLAGS="$CPPFLAGS"
11037
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11038
 
11039
    save_LDFLAGS="$LDFLAGS"
11040
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11041
 
11042
    save_LIBS="$LIBS"
11043
    LIBS="$lt_cv_dlopen_libs $LIBS"
11044
 
11045
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11046
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11047
if test "${lt_cv_dlopen_self+set}" = set; then :
11048
  $as_echo_n "(cached) " >&6
11049
else
11050
          if test "$cross_compiling" = yes; then :
11051
  lt_cv_dlopen_self=cross
11052
else
11053
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11054
  lt_status=$lt_dlunknown
11055
  cat > conftest.$ac_ext <<_LT_EOF
11056
#line 11056 "configure"
11057
#include "confdefs.h"
11058
 
11059
#if HAVE_DLFCN_H
11060
#include 
11061
#endif
11062
 
11063
#include 
11064
 
11065
#ifdef RTLD_GLOBAL
11066
#  define LT_DLGLOBAL           RTLD_GLOBAL
11067
#else
11068
#  ifdef DL_GLOBAL
11069
#    define LT_DLGLOBAL         DL_GLOBAL
11070
#  else
11071
#    define LT_DLGLOBAL         0
11072
#  endif
11073
#endif
11074
 
11075
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11076
   find out it does not work in some platform. */
11077
#ifndef LT_DLLAZY_OR_NOW
11078
#  ifdef RTLD_LAZY
11079
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11080
#  else
11081
#    ifdef DL_LAZY
11082
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11083
#    else
11084
#      ifdef RTLD_NOW
11085
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11086
#      else
11087
#        ifdef DL_NOW
11088
#          define LT_DLLAZY_OR_NOW      DL_NOW
11089
#        else
11090
#          define LT_DLLAZY_OR_NOW      0
11091
#        endif
11092
#      endif
11093
#    endif
11094
#  endif
11095
#endif
11096
 
11097
void fnord() { int i=42;}
11098
int main ()
11099
{
11100
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11101
  int status = $lt_dlunknown;
11102
 
11103
  if (self)
11104
    {
11105
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11106
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11107
      /* dlclose (self); */
11108
    }
11109
  else
11110
    puts (dlerror ());
11111
 
11112
  return status;
11113
}
11114
_LT_EOF
11115
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11116
  (eval $ac_link) 2>&5
11117
  ac_status=$?
11118
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11119
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11120
    (./conftest; exit; ) >&5 2>/dev/null
11121
    lt_status=$?
11122
    case x$lt_status in
11123
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11124
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11125
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11126
    esac
11127
  else :
11128
    # compilation failed
11129
    lt_cv_dlopen_self=no
11130
  fi
11131
fi
11132
rm -fr conftest*
11133
 
11134
 
11135
fi
11136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11137
$as_echo "$lt_cv_dlopen_self" >&6; }
11138
 
11139
    if test "x$lt_cv_dlopen_self" = xyes; then
11140
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11141
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11142
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11143
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11144
  $as_echo_n "(cached) " >&6
11145
else
11146
          if test "$cross_compiling" = yes; then :
11147
  lt_cv_dlopen_self_static=cross
11148
else
11149
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11150
  lt_status=$lt_dlunknown
11151
  cat > conftest.$ac_ext <<_LT_EOF
11152
#line 11152 "configure"
11153
#include "confdefs.h"
11154
 
11155
#if HAVE_DLFCN_H
11156
#include 
11157
#endif
11158
 
11159
#include 
11160
 
11161
#ifdef RTLD_GLOBAL
11162
#  define LT_DLGLOBAL           RTLD_GLOBAL
11163
#else
11164
#  ifdef DL_GLOBAL
11165
#    define LT_DLGLOBAL         DL_GLOBAL
11166
#  else
11167
#    define LT_DLGLOBAL         0
11168
#  endif
11169
#endif
11170
 
11171
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11172
   find out it does not work in some platform. */
11173
#ifndef LT_DLLAZY_OR_NOW
11174
#  ifdef RTLD_LAZY
11175
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11176
#  else
11177
#    ifdef DL_LAZY
11178
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11179
#    else
11180
#      ifdef RTLD_NOW
11181
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11182
#      else
11183
#        ifdef DL_NOW
11184
#          define LT_DLLAZY_OR_NOW      DL_NOW
11185
#        else
11186
#          define LT_DLLAZY_OR_NOW      0
11187
#        endif
11188
#      endif
11189
#    endif
11190
#  endif
11191
#endif
11192
 
11193
void fnord() { int i=42;}
11194
int main ()
11195
{
11196
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11197
  int status = $lt_dlunknown;
11198
 
11199
  if (self)
11200
    {
11201
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11202
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11203
      /* dlclose (self); */
11204
    }
11205
  else
11206
    puts (dlerror ());
11207
 
11208
  return status;
11209
}
11210
_LT_EOF
11211
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11212
  (eval $ac_link) 2>&5
11213
  ac_status=$?
11214
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11216
    (./conftest; exit; ) >&5 2>/dev/null
11217
    lt_status=$?
11218
    case x$lt_status in
11219
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11220
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11221
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11222
    esac
11223
  else :
11224
    # compilation failed
11225
    lt_cv_dlopen_self_static=no
11226
  fi
11227
fi
11228
rm -fr conftest*
11229
 
11230
 
11231
fi
11232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11233
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11234
    fi
11235
 
11236
    CPPFLAGS="$save_CPPFLAGS"
11237
    LDFLAGS="$save_LDFLAGS"
11238
    LIBS="$save_LIBS"
11239
    ;;
11240
  esac
11241
 
11242
  case $lt_cv_dlopen_self in
11243
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11244
  *) enable_dlopen_self=unknown ;;
11245
  esac
11246
 
11247
  case $lt_cv_dlopen_self_static in
11248
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11249
  *) enable_dlopen_self_static=unknown ;;
11250
  esac
11251
fi
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
 
11260
 
11261
 
11262
 
11263
 
11264
 
11265
 
11266
 
11267
 
11268
 
11269
striplib=
11270
old_striplib=
11271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11272
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11273
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11274
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11275
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11277
$as_echo "yes" >&6; }
11278
else
11279
# FIXME - insert some real tests, host_os isn't really good enough
11280
  case $host_os in
11281
  darwin*)
11282
    if test -n "$STRIP" ; then
11283
      striplib="$STRIP -x"
11284
      old_striplib="$STRIP -S"
11285
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11286
$as_echo "yes" >&6; }
11287
    else
11288
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289
$as_echo "no" >&6; }
11290
    fi
11291
    ;;
11292
  *)
11293
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294
$as_echo "no" >&6; }
11295
    ;;
11296
  esac
11297
fi
11298
 
11299
 
11300
 
11301
 
11302
 
11303
 
11304
 
11305
 
11306
 
11307
 
11308
 
11309
 
11310
  # Report which library types will actually be built
11311
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11312
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11314
$as_echo "$can_build_shared" >&6; }
11315
 
11316
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11317
$as_echo_n "checking whether to build shared libraries... " >&6; }
11318
  test "$can_build_shared" = "no" && enable_shared=no
11319
 
11320
  # On AIX, shared libraries and static libraries use the same namespace, and
11321
  # are all built from PIC.
11322
  case $host_os in
11323
  aix3*)
11324
    test "$enable_shared" = yes && enable_static=no
11325
    if test -n "$RANLIB"; then
11326
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11327
      postinstall_cmds='$RANLIB $lib'
11328
    fi
11329
    ;;
11330
 
11331
  aix[4-9]*)
11332
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11333
      test "$enable_shared" = yes && enable_static=no
11334
    fi
11335
    ;;
11336
  esac
11337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11338
$as_echo "$enable_shared" >&6; }
11339
 
11340
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11341
$as_echo_n "checking whether to build static libraries... " >&6; }
11342
  # Make sure either enable_shared or enable_static is yes.
11343
  test "$enable_shared" = yes || enable_static=yes
11344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11345
$as_echo "$enable_static" >&6; }
11346
 
11347
 
11348
 
11349
 
11350
fi
11351
ac_ext=c
11352
ac_cpp='$CPP $CPPFLAGS'
11353
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11354
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11355
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11356
 
11357
CC="$lt_save_CC"
11358
 
11359
 
11360
 
11361
 
11362
 
11363
 
11364
 
11365
 
11366
 
11367
 
11368
 
11369
 
11370
 
11371
        ac_config_commands="$ac_config_commands libtool"
11372
 
11373
 
11374
 
11375
 
11376
# Only expand once:
11377
 
11378
 
11379
 
11380
# Check whether --enable-targets was given.
11381
if test "${enable_targets+set}" = set; then :
11382
  enableval=$enable_targets; case "${enableval}" in
11383
  yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11384
            ;;
11385
  no)       enable_targets= ;;
11386
  *)        enable_targets=$enableval ;;
11387
esac
11388
fi
11389
 
11390
ac_checking=yes
11391
if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11392
  ac_checking=
11393
fi
11394
# Check whether --enable-checking was given.
11395
if test "${enable_checking+set}" = set; then :
11396
  enableval=$enable_checking; case "${enableval}" in
11397
  no|none)  ac_checking= ;;
11398
  *)        ac_checking=yes ;;
11399
esac
11400
fi
11401
if test x$ac_checking != x ; then
11402
 
11403
$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11404
 
11405
fi
11406
 
11407
using_cgen=no
11408
 
11409
 
11410
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11411
 
11412
# Check whether --enable-werror was given.
11413
if test "${enable_werror+set}" = set; then :
11414
  enableval=$enable_werror; case "${enableval}" in
11415
     yes | y) ERROR_ON_WARNING="yes" ;;
11416
     no | n)  ERROR_ON_WARNING="no" ;;
11417
     *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11418
   esac
11419
fi
11420
 
11421
 
11422
# Enable -Wno-format by default when using gcc on mingw
11423
case "${host}" in
11424
  *-*-mingw32*)
11425
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11426
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11427
    fi
11428
    ;;
11429
  *) ;;
11430
esac
11431
 
11432
# Enable -Werror by default when using gcc
11433
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11434
    ERROR_ON_WARNING=yes
11435
fi
11436
 
11437
NO_WERROR=
11438
if test "${ERROR_ON_WARNING}" = yes ; then
11439
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11440
    NO_WERROR="-Wno-error"
11441
fi
11442
 
11443
if test "${GCC}" = yes ; then
11444
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11445
fi
11446
 
11447
# Check whether --enable-build-warnings was given.
11448
if test "${enable_build_warnings+set}" = set; then :
11449
  enableval=$enable_build_warnings; case "${enableval}" in
11450
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11451
  no)   if test "${GCC}" = yes ; then
11452
          WARN_CFLAGS="-w"
11453
        fi;;
11454
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11455
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11456
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11457
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11458
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11459
esac
11460
fi
11461
 
11462
 
11463
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11464
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11465
fi
11466
 
11467
 
11468
 
11469
 
11470
 
11471
# Generate a header file
11472
ac_config_headers="$ac_config_headers config.h:config.in"
11473
 
11474
 
11475
# If we are on a DOS filesystem, we must use gdb.ini rather than
11476
# .gdbinit.
11477
case "${host}" in
11478
  *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11479
    GDBINIT="gdb.ini"
11480
    ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11481
 
11482
    ;;
11483
  *)
11484
    GDBINIT=".gdbinit"
11485
    ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11486
 
11487
    ;;
11488
esac
11489
 
11490
 
11491
#We need this for the host.  BOUT header is in host order.
11492
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11493
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11494
if test "${ac_cv_c_bigendian+set}" = set; then :
11495
  $as_echo_n "(cached) " >&6
11496
else
11497
  ac_cv_c_bigendian=unknown
11498
    # See if we're dealing with a universal compiler.
11499
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500
/* end confdefs.h.  */
11501
#ifndef __APPLE_CC__
11502
               not a universal capable compiler
11503
             #endif
11504
             typedef int dummy;
11505
 
11506
_ACEOF
11507
if ac_fn_c_try_compile "$LINENO"; then :
11508
 
11509
        # Check for potential -arch flags.  It is not universal unless
11510
        # there are at least two -arch flags with different values.
11511
        ac_arch=
11512
        ac_prev=
11513
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11514
         if test -n "$ac_prev"; then
11515
           case $ac_word in
11516
             i?86 | x86_64 | ppc | ppc64)
11517
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11518
                 ac_arch=$ac_word
11519
               else
11520
                 ac_cv_c_bigendian=universal
11521
                 break
11522
               fi
11523
               ;;
11524
           esac
11525
           ac_prev=
11526
         elif test "x$ac_word" = "x-arch"; then
11527
           ac_prev=arch
11528
         fi
11529
       done
11530
fi
11531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532
    if test $ac_cv_c_bigendian = unknown; then
11533
      # See if sys/param.h defines the BYTE_ORDER macro.
11534
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535
/* end confdefs.h.  */
11536
#include 
11537
             #include 
11538
 
11539
int
11540
main ()
11541
{
11542
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11543
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11544
                     && LITTLE_ENDIAN)
11545
              bogus endian macros
11546
             #endif
11547
 
11548
  ;
11549
  return 0;
11550
}
11551
_ACEOF
11552
if ac_fn_c_try_compile "$LINENO"; then :
11553
  # It does; now see whether it defined to BIG_ENDIAN or not.
11554
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555
/* end confdefs.h.  */
11556
#include 
11557
                #include 
11558
 
11559
int
11560
main ()
11561
{
11562
#if BYTE_ORDER != BIG_ENDIAN
11563
                 not big endian
11564
                #endif
11565
 
11566
  ;
11567
  return 0;
11568
}
11569
_ACEOF
11570
if ac_fn_c_try_compile "$LINENO"; then :
11571
  ac_cv_c_bigendian=yes
11572
else
11573
  ac_cv_c_bigendian=no
11574
fi
11575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576
fi
11577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578
    fi
11579
    if test $ac_cv_c_bigendian = unknown; then
11580
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11581
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582
/* end confdefs.h.  */
11583
#include 
11584
 
11585
int
11586
main ()
11587
{
11588
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11589
              bogus endian macros
11590
             #endif
11591
 
11592
  ;
11593
  return 0;
11594
}
11595
_ACEOF
11596
if ac_fn_c_try_compile "$LINENO"; then :
11597
  # It does; now see whether it defined to _BIG_ENDIAN or not.
11598
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599
/* end confdefs.h.  */
11600
#include 
11601
 
11602
int
11603
main ()
11604
{
11605
#ifndef _BIG_ENDIAN
11606
                 not big endian
11607
                #endif
11608
 
11609
  ;
11610
  return 0;
11611
}
11612
_ACEOF
11613
if ac_fn_c_try_compile "$LINENO"; then :
11614
  ac_cv_c_bigendian=yes
11615
else
11616
  ac_cv_c_bigendian=no
11617
fi
11618
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619
fi
11620
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621
    fi
11622
    if test $ac_cv_c_bigendian = unknown; then
11623
      # Compile a test program.
11624
      if test "$cross_compiling" = yes; then :
11625
  # Try to guess by grepping values from an object file.
11626
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627
/* end confdefs.h.  */
11628
short int ascii_mm[] =
11629
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11630
                short int ascii_ii[] =
11631
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11632
                int use_ascii (int i) {
11633
                  return ascii_mm[i] + ascii_ii[i];
11634
                }
11635
                short int ebcdic_ii[] =
11636
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11637
                short int ebcdic_mm[] =
11638
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11639
                int use_ebcdic (int i) {
11640
                  return ebcdic_mm[i] + ebcdic_ii[i];
11641
                }
11642
                extern int foo;
11643
 
11644
int
11645
main ()
11646
{
11647
return use_ascii (foo) == use_ebcdic (foo);
11648
  ;
11649
  return 0;
11650
}
11651
_ACEOF
11652
if ac_fn_c_try_compile "$LINENO"; then :
11653
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11654
              ac_cv_c_bigendian=yes
11655
            fi
11656
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11657
              if test "$ac_cv_c_bigendian" = unknown; then
11658
                ac_cv_c_bigendian=no
11659
              else
11660
                # finding both strings is unlikely to happen, but who knows?
11661
                ac_cv_c_bigendian=unknown
11662
              fi
11663
            fi
11664
fi
11665
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666
else
11667
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668
/* end confdefs.h.  */
11669
$ac_includes_default
11670
int
11671
main ()
11672
{
11673
 
11674
             /* Are we little or big endian?  From Harbison&Steele.  */
11675
             union
11676
             {
11677
               long int l;
11678
               char c[sizeof (long int)];
11679
             } u;
11680
             u.l = 1;
11681
             return u.c[sizeof (long int) - 1] == 1;
11682
 
11683
  ;
11684
  return 0;
11685
}
11686
_ACEOF
11687
if ac_fn_c_try_run "$LINENO"; then :
11688
  ac_cv_c_bigendian=no
11689
else
11690
  ac_cv_c_bigendian=yes
11691
fi
11692
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11693
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11694
fi
11695
 
11696
    fi
11697
fi
11698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11699
$as_echo "$ac_cv_c_bigendian" >&6; }
11700
 case $ac_cv_c_bigendian in #(
11701
   yes)
11702
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11703
;; #(
11704
   no)
11705
      ;; #(
11706
   universal)
11707
 
11708
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11709
 
11710
     ;; #(
11711
   *)
11712
     as_fn_error "unknown endianness
11713
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11714
 esac
11715
 
11716
 
11717
te_file=generic
11718
 
11719
# Makefile target for installing gas in $(tooldir)/bin.
11720
install_tooldir=install-exec-tooldir
11721
 
11722
canon_targets=""
11723
all_targets=no
11724
if test -n "$enable_targets" ; then
11725
  for t in `echo $enable_targets | sed 's/,/ /g'`; do
11726
    if test $t = "all"; then
11727
      all_targets=yes
11728
      continue
11729
    fi
11730
    result=`$ac_config_sub $t 2>/dev/null`
11731
    if test -n "$result" ; then
11732
      canon_targets="$canon_targets $result"
11733
#    else
11734
#      # Permit "all", etc.  We don't support it yet though.
11735
#      canon_targets="$canon_targets $t"
11736
    fi
11737
  done
11738
  _gas_uniq_list="$canon_targets"
11739
_gas_uniq_newlist=""
11740
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11741
  case $_gas_uniq_i in
11742
  _gas_uniq_dummy) ;;
11743
  *) case " $_gas_uniq_newlist " in
11744
       *" $_gas_uniq_i "*) ;;
11745
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11746
     esac ;;
11747
  esac
11748
done
11749
canon_targets=$_gas_uniq_newlist
11750
 
11751
fi
11752
 
11753
emulations=""
11754
 
11755
for this_target in $target $canon_targets ; do
11756
 
11757
    targ=${this_target}
11758
    . ${srcdir}/configure.tgt
11759
 
11760
    case ${target_cpu} in
11761
      crisv32)
11762
 
11763
cat >>confdefs.h <<_ACEOF
11764
#define DEFAULT_CRIS_ARCH $arch
11765
_ACEOF
11766
 
11767
        ;;
11768
    esac
11769
 
11770
    if test ${this_target} = $target ; then
11771
      target_cpu_type=${cpu_type}
11772
    elif test ${target_cpu_type} != ${cpu_type} ; then
11773
      continue
11774
    fi
11775
 
11776
    generic_target=${cpu_type}-${target_vendor}-${target_os}
11777
    case ${generic_target} in
11778
      i386-*-sco3.2v5*)
11779
        if test ${this_target} = $target; then
11780
 
11781
$as_echo "#define SCO_ELF 1" >>confdefs.h
11782
 
11783
        fi
11784
        ;;
11785
 
11786
      i386-*-msdosdjgpp* \
11787
      | i386-*-go32* \
11788
      | i386-go32-rtems*)
11789
 
11790
$as_echo "#define STRICTCOFF 1" >>confdefs.h
11791
 
11792
        ;;
11793
 
11794
      i860-*-*)
11795
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
11796
$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
11797
        ;;
11798
 
11799
      microblaze*)
11800
        ;;
11801
 
11802
      mips-sony-bsd*)
11803
        ;;
11804
      mips-*-bsd*)
11805
        as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
11806
        ;;
11807
 
11808
      ppc-*-aix[5-9].*)
11809
 
11810
$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
11811
 
11812
        ;;
11813
      ppc-*-linux-*)
11814
        case "$endian" in
11815
          big)  ;;
11816
          *)    as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
11817
        esac
11818
        ;;
11819
      ppc-*-solaris*)
11820
        if test ${this_target} = $target; then
11821
 
11822
$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
11823
 
11824
        fi
11825
        if test x${endian} = xbig; then
11826
          as_fn_error "Solaris must be configured little endian" "$LINENO" 5
11827
        fi
11828
        ;;
11829
 
11830
      sh*-*-symbianelf*)
11831
 
11832
$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
11833
 
11834
        ;;
11835
    esac
11836
 
11837
    if test ${this_target} = $target ; then
11838
      endian_def=
11839
      if test x${endian} = xbig; then
11840
        endian_def=1
11841
      elif test x${endian} = xlittle; then
11842
        endian_def=0
11843
      fi
11844
      if test x${endian_def} != x; then
11845
 
11846
cat >>confdefs.h <<_ACEOF
11847
#define TARGET_BYTES_BIG_ENDIAN $endian_def
11848
_ACEOF
11849
 
11850
      fi
11851
    fi
11852
 
11853
# Other random stuff.
11854
 
11855
    case ${cpu_type} in
11856
      mips)
11857
        # Set mips_cpu to the name of the default CPU.
11858
        case ${target_cpu} in
11859
          mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11860
            mips_cpu=from-abi
11861
            ;;
11862
          mipsisa32 | mipsisa32el)
11863
            mips_cpu=mips32
11864
            ;;
11865
          mipsisa32r2 | mipsisa32r2el)
11866
            mips_cpu=mips32r2
11867
            ;;
11868
          mipsisa64 | mipsisa64el)
11869
            mips_cpu=mips64
11870
            ;;
11871
          mipsisa64r2 | mipsisa64r2el)
11872
            mips_cpu=mips64r2
11873
            ;;
11874
          mipstx39 | mipstx39el)
11875
            mips_cpu=r3900
11876
            ;;
11877
          mips64vr | mips64vrel)
11878
            mips_cpu=vr4100
11879
            ;;
11880
          mipsisa32r2* | mipsisa64r2*)
11881
            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11882
            ;;
11883
          mips64* | mipsisa64* | mipsisa32*)
11884
            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11885
            ;;
11886
          *)
11887
            as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
11888
            ;;
11889
        esac
11890
        # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11891
        # binaries.  It's a GNU extension that some OSes don't understand.
11892
        # The value only matters on ELF targets.
11893
        case ${target} in
11894
          *-*-irix*)
11895
            use_e_mips_abi_o32=0
11896
            ;;
11897
          *)
11898
            use_e_mips_abi_o32=1
11899
            ;;
11900
        esac
11901
        # Decide whether to generate 32-bit or 64-bit code by default.
11902
        # Used to resolve -march=from-abi when an embedded ABI is selected.
11903
        case ${target} in
11904
          mips64*-*-* | mipsisa64*-*-*)
11905
            mips_default_64bit=1
11906
            ;;
11907
          *)
11908
            mips_default_64bit=0
11909
            ;;
11910
        esac
11911
        # Decide which ABI to target by default.
11912
        case ${target} in
11913
          mips64*-linux* | mips-sgi-irix6*)
11914
            mips_default_abi=N32_ABI
11915
            ;;
11916
          mips*-linux*)
11917
            mips_default_abi=O32_ABI
11918
            ;;
11919
          mips64*-openbsd*)
11920
            mips_default_abi=N64_ABI
11921
            ;;
11922
          *)
11923
            mips_default_abi=NO_ABI
11924
            ;;
11925
        esac
11926
 
11927
cat >>confdefs.h <<_ACEOF
11928
#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11929
_ACEOF
11930
 
11931
 
11932
cat >>confdefs.h <<_ACEOF
11933
#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11934
_ACEOF
11935
 
11936
 
11937
cat >>confdefs.h <<_ACEOF
11938
#define MIPS_DEFAULT_64BIT $mips_default_64bit
11939
_ACEOF
11940
 
11941
 
11942
cat >>confdefs.h <<_ACEOF
11943
#define MIPS_DEFAULT_ABI $mips_default_abi
11944
_ACEOF
11945
 
11946
        ;;
11947
    esac
11948
 
11949
    # Do we need the opcodes library?
11950
    case ${cpu_type} in
11951
      vax | tic30)
11952
        ;;
11953
 
11954
      *)
11955
        need_opcodes=yes
11956
 
11957
        case "${enable_shared}" in
11958
        yes) shared_opcodes=true ;;
11959
        *opcodes*) shared_opcodes=true ;;
11960
        *) shared_opcodes=false ;;
11961
        esac
11962
        ;;
11963
    esac
11964
 
11965
    # Any other special object files needed ?
11966
    case ${cpu_type} in
11967
 
11968
      bfin)
11969
        echo ${extra_objects} | grep -s "bfin-parse.o"
11970
        if test $? -ne 0 ; then
11971
          extra_objects="$extra_objects bfin-parse.o"
11972
        fi
11973
 
11974
        echo ${extra_objects} | grep -s "bfin-lex.o"
11975
        if test $? -ne 0 ; then
11976
          extra_objects="$extra_objects bfin-lex.o"
11977
        fi
11978
        ;;
11979
 
11980
      fr30 | ip2k | iq2000 | lm32 | m32r)
11981
        using_cgen=yes
11982
        ;;
11983
 
11984
      m32c)
11985
        using_cgen=yes
11986
        ;;
11987
      frv)
11988
        using_cgen=yes
11989
        ;;
11990
      m68k)
11991
        case ${extra_objects} in
11992
        *m68k-parse.o*) ;;
11993
        *) extra_objects="$extra_objects m68k-parse.o" ;;
11994
        esac
11995
        ;;
11996
 
11997
      mep)
11998
        using_cgen=yes
11999
        ;;
12000
 
12001
      mips)
12002
        echo ${extra_objects} | grep -s "itbl-parse.o"
12003
        if test $? -ne 0 ; then
12004
          extra_objects="$extra_objects itbl-parse.o"
12005
        fi
12006
 
12007
        echo ${extra_objects} | grep -s "itbl-lex.o"
12008
        if test $? -ne 0 ; then
12009
          extra_objects="$extra_objects itbl-lex.o"
12010
        fi
12011
 
12012
        echo ${extra_objects} | grep -s "itbl-ops.o"
12013
        if test $? -ne 0 ; then
12014
          extra_objects="$extra_objects itbl-ops.o"
12015
        fi
12016
        ;;
12017
 
12018
      mt)
12019
        using_cgen=yes
12020
        ;;
12021
 
12022
      i386 | s390 | sparc)
12023
        if test $this_target = $target ; then
12024
 
12025
cat >>confdefs.h <<_ACEOF
12026
#define DEFAULT_ARCH "${arch}"
12027
_ACEOF
12028
 
12029
        fi
12030
        ;;
12031
 
12032
      xstormy16)
12033
        using_cgen=yes
12034
        ;;
12035
 
12036
      xc16x)
12037
        using_cgen=yes
12038
        ;;
12039
 
12040
      xtensa)
12041
        echo ${extra_objects} | grep -s "xtensa-relax.o"
12042
        if test $? -ne 0 ; then
12043
          extra_objects="$extra_objects xtensa-relax.o"
12044
        fi
12045
        ;;
12046
 
12047
      *)
12048
        ;;
12049
    esac
12050
 
12051
    if test $using_cgen = yes ; then
12052
        case "x${extra_objects}" in
12053
        *cgen.o*) ;;
12054
        *) extra_objects="$extra_objects cgen.o" ;;
12055
        esac
12056
    fi
12057
 
12058
# See if we really can support this configuration with the emulation code.
12059
 
12060
    if test $this_target = $target ; then
12061
      obj_format=$fmt
12062
      te_file=$em
12063
    fi
12064
 
12065
   case ${te_file} in
12066
      vms) extra_objects="$extra_objects te-vms.o" ;;
12067
   esac
12068
 
12069
# From target name and format, produce a list of supported emulations.
12070
 
12071
    case ${generic_target}-${fmt} in
12072
      mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12073
      mips*-*-linux*-*) case "$endian" in
12074
                        big)    emulation="mipsbelf mipslelf mipself" ;;
12075
                        *)      emulation="mipslelf mipsbelf mipself" ;;
12076
                        esac ;;
12077
      mips-*-lnews*-ecoff) ;;
12078
      mips-*-*-ecoff)   case "$endian" in
12079
                        big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
12080
                        *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
12081
                        esac ;;
12082
      mips-*-*-elf)     case "$endian" in
12083
                        big)    emulation="mipsbelf mipslelf mipself" ;;
12084
                        *)      emulation="mipslelf mipsbelf mipself" ;;
12085
                        esac ;;
12086
      mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12087
      # i386-pc-pe-coff != i386-pc-coff.
12088
      i386-*-pe-coff)   ;;
12089
      # Uncommenting the next line will turn on support for i386 AOUT
12090
      # for the default linux configuration
12091
      # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12092
      #
12093
      i386-*-aout)      emulation="i386aout" ;;
12094
      i386-*-coff)      emulation="i386coff" ;;
12095
      i386-*-elf)       emulation="i386elf" ;;
12096
 
12097
      # Always all formats.  The first stated emulation becomes the default.
12098
      cris-*-*aout*)    emulation="crisaout criself" ;;
12099
      cris-*-*)         emulation="criself crisaout" ;;
12100
    esac
12101
 
12102
    emulations="$emulations $emulation"
12103
 
12104
done
12105
 
12106
# Turn on all targets if possible
12107
if test ${all_targets} = "yes"; then
12108
  case ${target_cpu_type} in
12109
  i386)
12110
    case ${obj_format} in
12111
    aout)
12112
      emulations="$emulations i386coff i386elf"
12113
      ;;
12114
    coff)
12115
      emulations="$emulations i386aout i386elf"
12116
    ;;
12117
    elf)
12118
      emulations="$emulations i386aout i386coff"
12119
      ;;
12120
    esac
12121
  ;;
12122
  x86_64)
12123
    case ${obj_format} in
12124
    aout)
12125
      emulations="$emulations i386coff i386elf"
12126
      ;;
12127
    coff)
12128
      emulations="$emulations i386aout i386elf"
12129
    ;;
12130
    elf)
12131
      emulations="$emulations i386aout i386coff"
12132
      ;;
12133
    esac
12134
  ;;
12135
  esac
12136
fi
12137
 
12138
# Assign floating point type.  Most processors with FP support
12139
# IEEE FP.  On those that don't support FP at all, usually IEEE
12140
# is emulated.
12141
case ${target_cpu} in
12142
  vax | pdp11 ) atof=vax ;;
12143
  *)            atof=ieee ;;
12144
esac
12145
 
12146
case "${obj_format}" in
12147
  "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12148
esac
12149
 
12150
# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12151
cgen_cpu_prefix=""
12152
if test $using_cgen = yes ; then
12153
  case ${target_cpu} in
12154
    *) cgen_cpu_prefix=${target_cpu} ;;
12155
  esac
12156
 
12157
 
12158
$as_echo "#define USING_CGEN 1" >>confdefs.h
12159
 
12160
fi
12161
 
12162
 
12163
if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12164
  as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12165
fi
12166
 
12167
if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12168
  as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12169
fi
12170
 
12171
# Some COFF configurations want these random other flags set.
12172
case ${obj_format} in
12173
  coff)
12174
    case ${target_cpu_type} in
12175
      i386)
12176
$as_echo "#define I386COFF 1" >>confdefs.h
12177
 ;;
12178
      m68k)
12179
$as_echo "#define M68KCOFF 1" >>confdefs.h
12180
 ;;
12181
      m88k)
12182
$as_echo "#define M88KCOFF 1" >>confdefs.h
12183
 ;;
12184
      x86_64)
12185
$as_echo "#define I386COFF 1" >>confdefs.h
12186
 ;;
12187
    esac
12188
    ;;
12189
esac
12190
 
12191
# Getting this done right is going to be a bitch.  Each configuration specified
12192
# with --enable-targets=... should be checked for environment, format, cpu
12193
# setting.
12194
#
12195
# For each configuration, the necessary object file support code must be linked
12196
# in.  This might be only one, it might be up to four.  The necessary emulation
12197
# code needs to be provided, too.
12198
#
12199
# And then there's "--enable-targets=all"....
12200
#
12201
# For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh.
12202
 
12203
formats="${obj_format}"
12204
emfiles=""
12205
EMULATIONS=""
12206
_gas_uniq_list="$emulations"
12207
_gas_uniq_newlist=""
12208
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12209
  case $_gas_uniq_i in
12210
  _gas_uniq_dummy) ;;
12211
  *) case " $_gas_uniq_newlist " in
12212
       *" $_gas_uniq_i "*) ;;
12213
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12214
     esac ;;
12215
  esac
12216
done
12217
emulations=$_gas_uniq_newlist
12218
 
12219
for em in . $emulations ; do
12220
  case $em in
12221
    .)  continue ;;
12222
    mipsbelf | mipslelf | mipself)
12223
        fmt=elf   file=mipself ;;
12224
    mipsbecoff | mipslecoff | mipsecoff)
12225
        fmt=ecoff file=mipsecoff ;;
12226
    *coff)
12227
        fmt=coff  file=$em ;;
12228
    *aout)
12229
        fmt=aout file=$em ;;
12230
    *elf)
12231
        fmt=elf file=$em ;;
12232
  esac
12233
  formats="$formats $fmt"
12234
  emfiles="$emfiles e-$file.o"
12235
  EMULATIONS="$EMULATIONS &$em,"
12236
done
12237
_gas_uniq_list="$formats"
12238
_gas_uniq_newlist=""
12239
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12240
  case $_gas_uniq_i in
12241
  _gas_uniq_dummy) ;;
12242
  *) case " $_gas_uniq_newlist " in
12243
       *" $_gas_uniq_i "*) ;;
12244
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12245
     esac ;;
12246
  esac
12247
done
12248
formats=$_gas_uniq_newlist
12249
 
12250
_gas_uniq_list="$emfiles"
12251
_gas_uniq_newlist=""
12252
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12253
  case $_gas_uniq_i in
12254
  _gas_uniq_dummy) ;;
12255
  *) case " $_gas_uniq_newlist " in
12256
       *" $_gas_uniq_i "*) ;;
12257
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12258
     esac ;;
12259
  esac
12260
done
12261
emfiles=$_gas_uniq_newlist
12262
 
12263
if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12264
  for fmt in $formats ; do
12265
    case $fmt in
12266
      aout)
12267
$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12268
   ;;
12269
      bout)
12270
$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12271
   ;;
12272
      coff)
12273
$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12274
    ;;
12275
      ecoff)
12276
$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12277
   ;;
12278
      elf)
12279
$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12280
     ;;
12281
      generic)
12282
$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12283
 ;;
12284
      som)
12285
$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12286
     ;;
12287
    esac
12288
    extra_objects="$extra_objects obj-$fmt.o"
12289
  done
12290
  obj_format=multi
12291
fi
12292
if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12293
  DEFAULT_EMULATION=`set . $emulations ; echo $2`
12294
  # e-mips* has more than one emulation per file, e-i386* has just one at the
12295
  # moment.  If only one emulation is specified, then don't define
12296
  # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12297
  case "${obj_format}${emfiles}" in
12298
    multi* | *mips*)
12299
      extra_objects="$extra_objects $emfiles"
12300
 
12301
$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12302
 ;;
12303
  esac
12304
fi
12305
 
12306
 
12307
cat >>confdefs.h <<_ACEOF
12308
#define EMULATIONS $EMULATIONS
12309
_ACEOF
12310
 
12311
 
12312
cat >>confdefs.h <<_ACEOF
12313
#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12314
_ACEOF
12315
 
12316
 
12317
reject_dev_configs=yes
12318
 
12319
case ${reject_dev_configs}-${dev} in
12320
  yes-yes) # Oops.
12321
    as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12322
    ;;
12323
esac
12324
 
12325
 
12326
 
12327
 
12328
 
12329
 
12330
 
12331
# do we need the opcodes library?
12332
case "${need_opcodes}" in
12333
yes)
12334
  OPCODES_LIB=../opcodes/libopcodes.la
12335
  ;;
12336
esac
12337
 
12338
 
12339
 
12340
 
12341
cat >>confdefs.h <<_ACEOF
12342
#define TARGET_ALIAS "${target_alias}"
12343
_ACEOF
12344
 
12345
 
12346
cat >>confdefs.h <<_ACEOF
12347
#define TARGET_CANONICAL "${target}"
12348
_ACEOF
12349
 
12350
 
12351
cat >>confdefs.h <<_ACEOF
12352
#define TARGET_CPU "${target_cpu}"
12353
_ACEOF
12354
 
12355
 
12356
cat >>confdefs.h <<_ACEOF
12357
#define TARGET_VENDOR "${target_vendor}"
12358
_ACEOF
12359
 
12360
 
12361
cat >>confdefs.h <<_ACEOF
12362
#define TARGET_OS "${target_os}"
12363
_ACEOF
12364
 
12365
 
12366
for ac_prog in 'bison -y' byacc
12367
do
12368
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12369
set dummy $ac_prog; ac_word=$2
12370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371
$as_echo_n "checking for $ac_word... " >&6; }
12372
if test "${ac_cv_prog_YACC+set}" = set; then :
12373
  $as_echo_n "(cached) " >&6
12374
else
12375
  if test -n "$YACC"; then
12376
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12377
else
12378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379
for as_dir in $PATH
12380
do
12381
  IFS=$as_save_IFS
12382
  test -z "$as_dir" && as_dir=.
12383
    for ac_exec_ext in '' $ac_executable_extensions; do
12384
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12385
    ac_cv_prog_YACC="$ac_prog"
12386
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12387
    break 2
12388
  fi
12389
done
12390
  done
12391
IFS=$as_save_IFS
12392
 
12393
fi
12394
fi
12395
YACC=$ac_cv_prog_YACC
12396
if test -n "$YACC"; then
12397
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12398
$as_echo "$YACC" >&6; }
12399
else
12400
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401
$as_echo "no" >&6; }
12402
fi
12403
 
12404
 
12405
  test -n "$YACC" && break
12406
done
12407
test -n "$YACC" || YACC="yacc"
12408
 
12409
for ac_prog in flex lex
12410
do
12411
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12412
set dummy $ac_prog; ac_word=$2
12413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414
$as_echo_n "checking for $ac_word... " >&6; }
12415
if test "${ac_cv_prog_LEX+set}" = set; then :
12416
  $as_echo_n "(cached) " >&6
12417
else
12418
  if test -n "$LEX"; then
12419
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12420
else
12421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422
for as_dir in $PATH
12423
do
12424
  IFS=$as_save_IFS
12425
  test -z "$as_dir" && as_dir=.
12426
    for ac_exec_ext in '' $ac_executable_extensions; do
12427
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428
    ac_cv_prog_LEX="$ac_prog"
12429
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430
    break 2
12431
  fi
12432
done
12433
  done
12434
IFS=$as_save_IFS
12435
 
12436
fi
12437
fi
12438
LEX=$ac_cv_prog_LEX
12439
if test -n "$LEX"; then
12440
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12441
$as_echo "$LEX" >&6; }
12442
else
12443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444
$as_echo "no" >&6; }
12445
fi
12446
 
12447
 
12448
  test -n "$LEX" && break
12449
done
12450
test -n "$LEX" || LEX=":"
12451
 
12452
if test "x$LEX" != "x:"; then
12453
  cat >conftest.l <<_ACEOF
12454
%%
12455
a { ECHO; }
12456
b { REJECT; }
12457
c { yymore (); }
12458
d { yyless (1); }
12459
e { yyless (input () != 0); }
12460
f { unput (yytext[0]); }
12461
. { BEGIN INITIAL; }
12462
%%
12463
#ifdef YYTEXT_POINTER
12464
extern char *yytext;
12465
#endif
12466
int
12467
main (void)
12468
{
12469
  return ! yylex () + ! yywrap ();
12470
}
12471
_ACEOF
12472
{ { ac_try="$LEX conftest.l"
12473
case "(($ac_try" in
12474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475
  *) ac_try_echo=$ac_try;;
12476
esac
12477
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12478
$as_echo "$ac_try_echo"; } >&5
12479
  (eval "$LEX conftest.l") 2>&5
12480
  ac_status=$?
12481
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12482
  test $ac_status = 0; }
12483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12484
$as_echo_n "checking lex output file root... " >&6; }
12485
if test "${ac_cv_prog_lex_root+set}" = set; then :
12486
  $as_echo_n "(cached) " >&6
12487
else
12488
 
12489
if test -f lex.yy.c; then
12490
  ac_cv_prog_lex_root=lex.yy
12491
elif test -f lexyy.c; then
12492
  ac_cv_prog_lex_root=lexyy
12493
else
12494
  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12495
fi
12496
fi
12497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12498
$as_echo "$ac_cv_prog_lex_root" >&6; }
12499
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12500
 
12501
if test -z "${LEXLIB+set}"; then
12502
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12503
$as_echo_n "checking lex library... " >&6; }
12504
if test "${ac_cv_lib_lex+set}" = set; then :
12505
  $as_echo_n "(cached) " >&6
12506
else
12507
 
12508
    ac_save_LIBS=$LIBS
12509
    ac_cv_lib_lex='none needed'
12510
    for ac_lib in '' -lfl -ll; do
12511
      LIBS="$ac_lib $ac_save_LIBS"
12512
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513
/* end confdefs.h.  */
12514
`cat $LEX_OUTPUT_ROOT.c`
12515
_ACEOF
12516
if ac_fn_c_try_link "$LINENO"; then :
12517
  ac_cv_lib_lex=$ac_lib
12518
fi
12519
rm -f core conftest.err conftest.$ac_objext \
12520
    conftest$ac_exeext conftest.$ac_ext
12521
      test "$ac_cv_lib_lex" != 'none needed' && break
12522
    done
12523
    LIBS=$ac_save_LIBS
12524
 
12525
fi
12526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12527
$as_echo "$ac_cv_lib_lex" >&6; }
12528
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12529
fi
12530
 
12531
 
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12533
$as_echo_n "checking whether yytext is a pointer... " >&6; }
12534
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12535
  $as_echo_n "(cached) " >&6
12536
else
12537
  # POSIX says lex can declare yytext either as a pointer or an array; the
12538
# default is implementation-dependent.  Figure out which it is, since
12539
# not all implementations provide the %pointer and %array declarations.
12540
ac_cv_prog_lex_yytext_pointer=no
12541
ac_save_LIBS=$LIBS
12542
LIBS="$LEXLIB $ac_save_LIBS"
12543
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544
/* end confdefs.h.  */
12545
#define YYTEXT_POINTER 1
12546
`cat $LEX_OUTPUT_ROOT.c`
12547
_ACEOF
12548
if ac_fn_c_try_link "$LINENO"; then :
12549
  ac_cv_prog_lex_yytext_pointer=yes
12550
fi
12551
rm -f core conftest.err conftest.$ac_objext \
12552
    conftest$ac_exeext conftest.$ac_ext
12553
LIBS=$ac_save_LIBS
12554
 
12555
fi
12556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12557
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12558
if test $ac_cv_prog_lex_yytext_pointer = yes; then
12559
 
12560
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12561
 
12562
fi
12563
rm -f conftest.l $LEX_OUTPUT_ROOT.c
12564
 
12565
fi
12566
if test "$LEX" = :; then
12567
  LEX=${am_missing_run}flex
12568
fi
12569
 
12570
ALL_LINGUAS="fr tr es rw id"
12571
# If we haven't got the data from the intl directory,
12572
# assume NLS is disabled.
12573
USE_NLS=no
12574
LIBINTL=
12575
LIBINTL_DEP=
12576
INCINTL=
12577
XGETTEXT=
12578
GMSGFMT=
12579
POSUB=
12580
 
12581
if test -f  ../intl/config.intl; then
12582
  .  ../intl/config.intl
12583
fi
12584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12585
$as_echo_n "checking whether NLS is requested... " >&6; }
12586
if test x"$USE_NLS" != xyes; then
12587
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588
$as_echo "no" >&6; }
12589
else
12590
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591
$as_echo "yes" >&6; }
12592
 
12593
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12594
 
12595
 
12596
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12597
$as_echo_n "checking for catalogs to be installed... " >&6; }
12598
  # Look for .po and .gmo files in the source directory.
12599
  CATALOGS=
12600
  XLINGUAS=
12601
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12602
    # If there aren't any .gmo files the shell will give us the
12603
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12604
    # weeded out.
12605
    case "$cat" in *\**)
12606
      continue;;
12607
    esac
12608
    # The quadruple backslash is collapsed to a double backslash
12609
    # by the backticks, then collapsed again by the double quotes,
12610
    # leaving us with one backslash in the sed expression (right
12611
    # before the dot that mustn't act as a wildcard).
12612
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12613
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12614
    # The user is allowed to set LINGUAS to a list of languages to
12615
    # install catalogs for.  If it's empty that means "all of them."
12616
    if test "x$LINGUAS" = x; then
12617
      CATALOGS="$CATALOGS $cat"
12618
      XLINGUAS="$XLINGUAS $lang"
12619
    else
12620
      case "$LINGUAS" in *$lang*)
12621
        CATALOGS="$CATALOGS $cat"
12622
        XLINGUAS="$XLINGUAS $lang"
12623
        ;;
12624
      esac
12625
    fi
12626
  done
12627
  LINGUAS="$XLINGUAS"
12628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12629
$as_echo "$LINGUAS" >&6; }
12630
 
12631
 
12632
    DATADIRNAME=share
12633
 
12634
  INSTOBJEXT=.mo
12635
 
12636
  GENCAT=gencat
12637
 
12638
  CATOBJEXT=.gmo
12639
 
12640
fi
12641
 
12642
        MKINSTALLDIRS=
12643
  if test -n "$ac_aux_dir"; then
12644
    case "$ac_aux_dir" in
12645
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12646
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12647
    esac
12648
  fi
12649
  if test -z "$MKINSTALLDIRS"; then
12650
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12651
  fi
12652
 
12653
 
12654
 
12655
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12656
$as_echo_n "checking whether NLS is requested... " >&6; }
12657
    # Check whether --enable-nls was given.
12658
if test "${enable_nls+set}" = set; then :
12659
  enableval=$enable_nls; USE_NLS=$enableval
12660
else
12661
  USE_NLS=yes
12662
fi
12663
 
12664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12665
$as_echo "$USE_NLS" >&6; }
12666
 
12667
 
12668
 
12669
 
12670
 
12671
 
12672
# Prepare PATH_SEPARATOR.
12673
# The user is always right.
12674
if test "${PATH_SEPARATOR+set}" != set; then
12675
  echo "#! /bin/sh" >conf$$.sh
12676
  echo  "exit 0"   >>conf$$.sh
12677
  chmod +x conf$$.sh
12678
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12679
    PATH_SEPARATOR=';'
12680
  else
12681
    PATH_SEPARATOR=:
12682
  fi
12683
  rm -f conf$$.sh
12684
fi
12685
 
12686
# Find out how to test for executable files. Don't use a zero-byte file,
12687
# as systems may use methods other than mode bits to determine executability.
12688
cat >conf$$.file <<_ASEOF
12689
#! /bin/sh
12690
exit 0
12691
_ASEOF
12692
chmod +x conf$$.file
12693
if test -x conf$$.file >/dev/null 2>&1; then
12694
  ac_executable_p="test -x"
12695
else
12696
  ac_executable_p="test -f"
12697
fi
12698
rm -f conf$$.file
12699
 
12700
# Extract the first word of "msgfmt", so it can be a program name with args.
12701
set dummy msgfmt; ac_word=$2
12702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703
$as_echo_n "checking for $ac_word... " >&6; }
12704
if test "${ac_cv_path_MSGFMT+set}" = set; then :
12705
  $as_echo_n "(cached) " >&6
12706
else
12707
  case "$MSGFMT" in
12708
  [\\/]* | ?:[\\/]*)
12709
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12710
    ;;
12711
  *)
12712
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12713
    for ac_dir in $PATH; do
12714
      IFS="$ac_save_IFS"
12715
      test -z "$ac_dir" && ac_dir=.
12716
      for ac_exec_ext in '' $ac_executable_extensions; do
12717
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12718
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12719
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12720
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12721
            break 2
12722
          fi
12723
        fi
12724
      done
12725
    done
12726
    IFS="$ac_save_IFS"
12727
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12728
    ;;
12729
esac
12730
fi
12731
MSGFMT="$ac_cv_path_MSGFMT"
12732
if test "$MSGFMT" != ":"; then
12733
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12734
$as_echo "$MSGFMT" >&6; }
12735
else
12736
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737
$as_echo "no" >&6; }
12738
fi
12739
 
12740
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12741
set dummy gmsgfmt; ac_word=$2
12742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743
$as_echo_n "checking for $ac_word... " >&6; }
12744
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12745
  $as_echo_n "(cached) " >&6
12746
else
12747
  case $GMSGFMT in
12748
  [\\/]* | ?:[\\/]*)
12749
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12750
  ;;
12751
  *)
12752
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753
for as_dir in $PATH
12754
do
12755
  IFS=$as_save_IFS
12756
  test -z "$as_dir" && as_dir=.
12757
    for ac_exec_ext in '' $ac_executable_extensions; do
12758
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12760
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761
    break 2
12762
  fi
12763
done
12764
  done
12765
IFS=$as_save_IFS
12766
 
12767
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12768
  ;;
12769
esac
12770
fi
12771
GMSGFMT=$ac_cv_path_GMSGFMT
12772
if test -n "$GMSGFMT"; then
12773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12774
$as_echo "$GMSGFMT" >&6; }
12775
else
12776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777
$as_echo "no" >&6; }
12778
fi
12779
 
12780
 
12781
 
12782
 
12783
# Prepare PATH_SEPARATOR.
12784
# The user is always right.
12785
if test "${PATH_SEPARATOR+set}" != set; then
12786
  echo "#! /bin/sh" >conf$$.sh
12787
  echo  "exit 0"   >>conf$$.sh
12788
  chmod +x conf$$.sh
12789
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12790
    PATH_SEPARATOR=';'
12791
  else
12792
    PATH_SEPARATOR=:
12793
  fi
12794
  rm -f conf$$.sh
12795
fi
12796
 
12797
# Find out how to test for executable files. Don't use a zero-byte file,
12798
# as systems may use methods other than mode bits to determine executability.
12799
cat >conf$$.file <<_ASEOF
12800
#! /bin/sh
12801
exit 0
12802
_ASEOF
12803
chmod +x conf$$.file
12804
if test -x conf$$.file >/dev/null 2>&1; then
12805
  ac_executable_p="test -x"
12806
else
12807
  ac_executable_p="test -f"
12808
fi
12809
rm -f conf$$.file
12810
 
12811
# Extract the first word of "xgettext", so it can be a program name with args.
12812
set dummy xgettext; ac_word=$2
12813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814
$as_echo_n "checking for $ac_word... " >&6; }
12815
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12816
  $as_echo_n "(cached) " >&6
12817
else
12818
  case "$XGETTEXT" in
12819
  [\\/]* | ?:[\\/]*)
12820
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12821
    ;;
12822
  *)
12823
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12824
    for ac_dir in $PATH; do
12825
      IFS="$ac_save_IFS"
12826
      test -z "$ac_dir" && ac_dir=.
12827
      for ac_exec_ext in '' $ac_executable_extensions; do
12828
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12829
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12830
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12831
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12832
            break 2
12833
          fi
12834
        fi
12835
      done
12836
    done
12837
    IFS="$ac_save_IFS"
12838
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12839
    ;;
12840
esac
12841
fi
12842
XGETTEXT="$ac_cv_path_XGETTEXT"
12843
if test "$XGETTEXT" != ":"; then
12844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12845
$as_echo "$XGETTEXT" >&6; }
12846
else
12847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848
$as_echo "no" >&6; }
12849
fi
12850
 
12851
    rm -f messages.po
12852
 
12853
 
12854
# Prepare PATH_SEPARATOR.
12855
# The user is always right.
12856
if test "${PATH_SEPARATOR+set}" != set; then
12857
  echo "#! /bin/sh" >conf$$.sh
12858
  echo  "exit 0"   >>conf$$.sh
12859
  chmod +x conf$$.sh
12860
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12861
    PATH_SEPARATOR=';'
12862
  else
12863
    PATH_SEPARATOR=:
12864
  fi
12865
  rm -f conf$$.sh
12866
fi
12867
 
12868
# Find out how to test for executable files. Don't use a zero-byte file,
12869
# as systems may use methods other than mode bits to determine executability.
12870
cat >conf$$.file <<_ASEOF
12871
#! /bin/sh
12872
exit 0
12873
_ASEOF
12874
chmod +x conf$$.file
12875
if test -x conf$$.file >/dev/null 2>&1; then
12876
  ac_executable_p="test -x"
12877
else
12878
  ac_executable_p="test -f"
12879
fi
12880
rm -f conf$$.file
12881
 
12882
# Extract the first word of "msgmerge", so it can be a program name with args.
12883
set dummy msgmerge; ac_word=$2
12884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885
$as_echo_n "checking for $ac_word... " >&6; }
12886
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12887
  $as_echo_n "(cached) " >&6
12888
else
12889
  case "$MSGMERGE" in
12890
  [\\/]* | ?:[\\/]*)
12891
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12892
    ;;
12893
  *)
12894
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12895
    for ac_dir in $PATH; do
12896
      IFS="$ac_save_IFS"
12897
      test -z "$ac_dir" && ac_dir=.
12898
      for ac_exec_ext in '' $ac_executable_extensions; do
12899
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12900
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12901
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12902
            break 2
12903
          fi
12904
        fi
12905
      done
12906
    done
12907
    IFS="$ac_save_IFS"
12908
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12909
    ;;
12910
esac
12911
fi
12912
MSGMERGE="$ac_cv_path_MSGMERGE"
12913
if test "$MSGMERGE" != ":"; then
12914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12915
$as_echo "$MSGMERGE" >&6; }
12916
else
12917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918
$as_echo "no" >&6; }
12919
fi
12920
 
12921
 
12922
      if test "$GMSGFMT" != ":"; then
12923
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12924
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12925
      : ;
12926
    else
12927
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12928
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12929
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12930
      GMSGFMT=":"
12931
    fi
12932
  fi
12933
 
12934
      if test "$XGETTEXT" != ":"; then
12935
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12936
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12937
      : ;
12938
    else
12939
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12940
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12941
      XGETTEXT=":"
12942
    fi
12943
        rm -f messages.po
12944
  fi
12945
 
12946
  ac_config_commands="$ac_config_commands default-1"
12947
 
12948
 
12949
 
12950
 
12951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12952
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12953
    # Check whether --enable-maintainer-mode was given.
12954
if test "${enable_maintainer_mode+set}" = set; then :
12955
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12956
else
12957
  USE_MAINTAINER_MODE=no
12958
fi
12959
 
12960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12961
$as_echo "$USE_MAINTAINER_MODE" >&6; }
12962
   if test $USE_MAINTAINER_MODE = yes; then
12963
  MAINTAINER_MODE_TRUE=
12964
  MAINTAINER_MODE_FALSE='#'
12965
else
12966
  MAINTAINER_MODE_TRUE='#'
12967
  MAINTAINER_MODE_FALSE=
12968
fi
12969
 
12970
  MAINT=$MAINTAINER_MODE_TRUE
12971
 
12972
 
12973
 if false; then
12974
  GENINSRC_NEVER_TRUE=
12975
  GENINSRC_NEVER_FALSE='#'
12976
else
12977
  GENINSRC_NEVER_TRUE='#'
12978
  GENINSRC_NEVER_FALSE=
12979
fi
12980
 
12981
 
12982
 
12983
for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h time.h sys/stat.h
12984
do :
12985
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12986
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12987
eval as_val=\$$as_ac_Header
12988
   if test "x$as_val" = x""yes; then :
12989
  cat >>confdefs.h <<_ACEOF
12990
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12991
_ACEOF
12992
 
12993
fi
12994
 
12995
done
12996
 
12997
 
12998
# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12999
# people who are not cross-compiling but are compiling cross-assemblers.
13000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13001
$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13002
if test "${host}" = "${target}"; then
13003
  cross_gas=no
13004
else
13005
  cross_gas=yes
13006
 
13007
$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13008
 
13009
fi
13010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13011
$as_echo "$cross_gas" >&6; }
13012
 
13013
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13014
# for constant arguments.  Useless!
13015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13016
$as_echo_n "checking for working alloca.h... " >&6; }
13017
if test "${ac_cv_working_alloca_h+set}" = set; then :
13018
  $as_echo_n "(cached) " >&6
13019
else
13020
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021
/* end confdefs.h.  */
13022
#include 
13023
int
13024
main ()
13025
{
13026
char *p = (char *) alloca (2 * sizeof (int));
13027
                          if (p) return 0;
13028
  ;
13029
  return 0;
13030
}
13031
_ACEOF
13032
if ac_fn_c_try_link "$LINENO"; then :
13033
  ac_cv_working_alloca_h=yes
13034
else
13035
  ac_cv_working_alloca_h=no
13036
fi
13037
rm -f core conftest.err conftest.$ac_objext \
13038
    conftest$ac_exeext conftest.$ac_ext
13039
fi
13040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13041
$as_echo "$ac_cv_working_alloca_h" >&6; }
13042
if test $ac_cv_working_alloca_h = yes; then
13043
 
13044
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13045
 
13046
fi
13047
 
13048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13049
$as_echo_n "checking for alloca... " >&6; }
13050
if test "${ac_cv_func_alloca_works+set}" = set; then :
13051
  $as_echo_n "(cached) " >&6
13052
else
13053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054
/* end confdefs.h.  */
13055
#ifdef __GNUC__
13056
# define alloca __builtin_alloca
13057
#else
13058
# ifdef _MSC_VER
13059
#  include 
13060
#  define alloca _alloca
13061
# else
13062
#  ifdef HAVE_ALLOCA_H
13063
#   include 
13064
#  else
13065
#   ifdef _AIX
13066
 #pragma alloca
13067
#   else
13068
#    ifndef alloca /* predefined by HP cc +Olibcalls */
13069
char *alloca ();
13070
#    endif
13071
#   endif
13072
#  endif
13073
# endif
13074
#endif
13075
 
13076
int
13077
main ()
13078
{
13079
char *p = (char *) alloca (1);
13080
                                    if (p) return 0;
13081
  ;
13082
  return 0;
13083
}
13084
_ACEOF
13085
if ac_fn_c_try_link "$LINENO"; then :
13086
  ac_cv_func_alloca_works=yes
13087
else
13088
  ac_cv_func_alloca_works=no
13089
fi
13090
rm -f core conftest.err conftest.$ac_objext \
13091
    conftest$ac_exeext conftest.$ac_ext
13092
fi
13093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13094
$as_echo "$ac_cv_func_alloca_works" >&6; }
13095
 
13096
if test $ac_cv_func_alloca_works = yes; then
13097
 
13098
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13099
 
13100
else
13101
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13102
# that cause trouble.  Some versions do not even contain alloca or
13103
# contain a buggy version.  If you still want to use their alloca,
13104
# use ar to extract alloca.o from them instead of compiling alloca.c.
13105
 
13106
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13107
 
13108
$as_echo "#define C_ALLOCA 1" >>confdefs.h
13109
 
13110
 
13111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13112
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13113
if test "${ac_cv_os_cray+set}" = set; then :
13114
  $as_echo_n "(cached) " >&6
13115
else
13116
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117
/* end confdefs.h.  */
13118
#if defined CRAY && ! defined CRAY2
13119
webecray
13120
#else
13121
wenotbecray
13122
#endif
13123
 
13124
_ACEOF
13125
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13126
  $EGREP "webecray" >/dev/null 2>&1; then :
13127
  ac_cv_os_cray=yes
13128
else
13129
  ac_cv_os_cray=no
13130
fi
13131
rm -f conftest*
13132
 
13133
fi
13134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13135
$as_echo "$ac_cv_os_cray" >&6; }
13136
if test $ac_cv_os_cray = yes; then
13137
  for ac_func in _getb67 GETB67 getb67; do
13138
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13139
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13140
eval as_val=\$$as_ac_var
13141
   if test "x$as_val" = x""yes; then :
13142
 
13143
cat >>confdefs.h <<_ACEOF
13144
#define CRAY_STACKSEG_END $ac_func
13145
_ACEOF
13146
 
13147
    break
13148
fi
13149
 
13150
  done
13151
fi
13152
 
13153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13154
$as_echo_n "checking stack direction for C alloca... " >&6; }
13155
if test "${ac_cv_c_stack_direction+set}" = set; then :
13156
  $as_echo_n "(cached) " >&6
13157
else
13158
  if test "$cross_compiling" = yes; then :
13159
  ac_cv_c_stack_direction=0
13160
else
13161
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162
/* end confdefs.h.  */
13163
$ac_includes_default
13164
int
13165
find_stack_direction ()
13166
{
13167
  static char *addr = 0;
13168
  auto char dummy;
13169
  if (addr == 0)
13170
    {
13171
      addr = &dummy;
13172
      return find_stack_direction ();
13173
    }
13174
  else
13175
    return (&dummy > addr) ? 1 : -1;
13176
}
13177
 
13178
int
13179
main ()
13180
{
13181
  return find_stack_direction () < 0;
13182
}
13183
_ACEOF
13184
if ac_fn_c_try_run "$LINENO"; then :
13185
  ac_cv_c_stack_direction=1
13186
else
13187
  ac_cv_c_stack_direction=-1
13188
fi
13189
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13190
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13191
fi
13192
 
13193
fi
13194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13195
$as_echo "$ac_cv_c_stack_direction" >&6; }
13196
cat >>confdefs.h <<_ACEOF
13197
#define STACK_DIRECTION $ac_cv_c_stack_direction
13198
_ACEOF
13199
 
13200
 
13201
fi
13202
 
13203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13204
$as_echo_n "checking for inline... " >&6; }
13205
if test "${ac_cv_c_inline+set}" = set; then :
13206
  $as_echo_n "(cached) " >&6
13207
else
13208
  ac_cv_c_inline=no
13209
for ac_kw in inline __inline__ __inline; do
13210
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211
/* end confdefs.h.  */
13212
#ifndef __cplusplus
13213
typedef int foo_t;
13214
static $ac_kw foo_t static_foo () {return 0; }
13215
$ac_kw foo_t foo () {return 0; }
13216
#endif
13217
 
13218
_ACEOF
13219
if ac_fn_c_try_compile "$LINENO"; then :
13220
  ac_cv_c_inline=$ac_kw
13221
fi
13222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223
  test "$ac_cv_c_inline" != no && break
13224
done
13225
 
13226
fi
13227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13228
$as_echo "$ac_cv_c_inline" >&6; }
13229
 
13230
case $ac_cv_c_inline in
13231
  inline | yes) ;;
13232
  *)
13233
    case $ac_cv_c_inline in
13234
      no) ac_val=;;
13235
      *) ac_val=$ac_cv_c_inline;;
13236
    esac
13237
    cat >>confdefs.h <<_ACEOF
13238
#ifndef __cplusplus
13239
#define inline $ac_val
13240
#endif
13241
_ACEOF
13242
    ;;
13243
esac
13244
 
13245
 
13246
# VMS doesn't have unlink.
13247
for ac_func in unlink remove
13248
do :
13249
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13250
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13251
eval as_val=\$$as_ac_var
13252
   if test "x$as_val" = x""yes; then :
13253
  cat >>confdefs.h <<_ACEOF
13254
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13255
_ACEOF
13256
 break
13257
fi
13258
done
13259
 
13260
 
13261
# Some systems don't have sbrk().
13262
for ac_func in sbrk
13263
do :
13264
  ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
13265
if test "x$ac_cv_func_sbrk" = x""yes; then :
13266
  cat >>confdefs.h <<_ACEOF
13267
#define HAVE_SBRK 1
13268
_ACEOF
13269
 
13270
fi
13271
done
13272
 
13273
 
13274
# do we need the math library?
13275
case "${need_libm}" in
13276
yes)
13277
  LIBM=
13278
case $host in
13279
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13280
  # These system don't have libm, or don't need it
13281
  ;;
13282
*-ncr-sysv4.3*)
13283
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13284
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13285
if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13286
  $as_echo_n "(cached) " >&6
13287
else
13288
  ac_check_lib_save_LIBS=$LIBS
13289
LIBS="-lmw  $LIBS"
13290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291
/* end confdefs.h.  */
13292
 
13293
/* Override any GCC internal prototype to avoid an error.
13294
   Use char because int might match the return type of a GCC
13295
   builtin and then its argument prototype would still apply.  */
13296
#ifdef __cplusplus
13297
extern "C"
13298
#endif
13299
char _mwvalidcheckl ();
13300
int
13301
main ()
13302
{
13303
return _mwvalidcheckl ();
13304
  ;
13305
  return 0;
13306
}
13307
_ACEOF
13308
if ac_fn_c_try_link "$LINENO"; then :
13309
  ac_cv_lib_mw__mwvalidcheckl=yes
13310
else
13311
  ac_cv_lib_mw__mwvalidcheckl=no
13312
fi
13313
rm -f core conftest.err conftest.$ac_objext \
13314
    conftest$ac_exeext conftest.$ac_ext
13315
LIBS=$ac_check_lib_save_LIBS
13316
fi
13317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13318
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13319
if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13320
  LIBM="-lmw"
13321
fi
13322
 
13323
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13324
$as_echo_n "checking for cos in -lm... " >&6; }
13325
if test "${ac_cv_lib_m_cos+set}" = set; then :
13326
  $as_echo_n "(cached) " >&6
13327
else
13328
  ac_check_lib_save_LIBS=$LIBS
13329
LIBS="-lm  $LIBS"
13330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331
/* end confdefs.h.  */
13332
 
13333
/* Override any GCC internal prototype to avoid an error.
13334
   Use char because int might match the return type of a GCC
13335
   builtin and then its argument prototype would still apply.  */
13336
#ifdef __cplusplus
13337
extern "C"
13338
#endif
13339
char cos ();
13340
int
13341
main ()
13342
{
13343
return cos ();
13344
  ;
13345
  return 0;
13346
}
13347
_ACEOF
13348
if ac_fn_c_try_link "$LINENO"; then :
13349
  ac_cv_lib_m_cos=yes
13350
else
13351
  ac_cv_lib_m_cos=no
13352
fi
13353
rm -f core conftest.err conftest.$ac_objext \
13354
    conftest$ac_exeext conftest.$ac_ext
13355
LIBS=$ac_check_lib_save_LIBS
13356
fi
13357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13358
$as_echo "$ac_cv_lib_m_cos" >&6; }
13359
if test "x$ac_cv_lib_m_cos" = x""yes; then :
13360
  LIBM="$LIBM -lm"
13361
fi
13362
 
13363
  ;;
13364
*)
13365
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13366
$as_echo_n "checking for cos in -lm... " >&6; }
13367
if test "${ac_cv_lib_m_cos+set}" = set; then :
13368
  $as_echo_n "(cached) " >&6
13369
else
13370
  ac_check_lib_save_LIBS=$LIBS
13371
LIBS="-lm  $LIBS"
13372
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373
/* end confdefs.h.  */
13374
 
13375
/* Override any GCC internal prototype to avoid an error.
13376
   Use char because int might match the return type of a GCC
13377
   builtin and then its argument prototype would still apply.  */
13378
#ifdef __cplusplus
13379
extern "C"
13380
#endif
13381
char cos ();
13382
int
13383
main ()
13384
{
13385
return cos ();
13386
  ;
13387
  return 0;
13388
}
13389
_ACEOF
13390
if ac_fn_c_try_link "$LINENO"; then :
13391
  ac_cv_lib_m_cos=yes
13392
else
13393
  ac_cv_lib_m_cos=no
13394
fi
13395
rm -f core conftest.err conftest.$ac_objext \
13396
    conftest$ac_exeext conftest.$ac_ext
13397
LIBS=$ac_check_lib_save_LIBS
13398
fi
13399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13400
$as_echo "$ac_cv_lib_m_cos" >&6; }
13401
if test "x$ac_cv_lib_m_cos" = x""yes; then :
13402
  LIBM="-lm"
13403
fi
13404
 
13405
  ;;
13406
esac
13407
 
13408
 
13409
 
13410
  ;;
13411
esac
13412
 
13413
# Some non-ANSI preprocessors botch requoting inside strings.  That's bad
13414
# enough, but on some of those systems, the assert macro relies on requoting
13415
# working properly!
13416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13417
$as_echo_n "checking for working assert macro... " >&6; }
13418
if test "${gas_cv_assert_ok+set}" = set; then :
13419
  $as_echo_n "(cached) " >&6
13420
else
13421
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422
/* end confdefs.h.  */
13423
#include 
13424
#include 
13425
int
13426
main ()
13427
{
13428
 
13429
/* check for requoting problems */
13430
static int a, b, c, d;
13431
static char *s;
13432
assert (!strcmp(s, "foo bar baz quux"));
13433
/* check for newline handling */
13434
assert (a == b
13435
        || c == d);
13436
 
13437
  ;
13438
  return 0;
13439
}
13440
_ACEOF
13441
if ac_fn_c_try_link "$LINENO"; then :
13442
  gas_cv_assert_ok=yes
13443
else
13444
  gas_cv_assert_ok=no
13445
fi
13446
rm -f core conftest.err conftest.$ac_objext \
13447
    conftest$ac_exeext conftest.$ac_ext
13448
fi
13449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13450
$as_echo "$gas_cv_assert_ok" >&6; }
13451
test $gas_cv_assert_ok = yes ||
13452
$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13453
 
13454
 
13455
 
13456
# On some systems, the system header files may not declare malloc, realloc,
13457
# and free.  There are places where gas needs these functions to have been
13458
# declared -- such as when taking their addresses.
13459
gas_test_headers="
13460
#ifdef HAVE_MEMORY_H
13461
#include 
13462
#endif
13463
#ifdef HAVE_STRING_H
13464
#include 
13465
#else
13466
#ifdef HAVE_STRINGS_H
13467
#include 
13468
#endif
13469
#endif
13470
#ifdef HAVE_STDLIB_H
13471
#include 
13472
#endif
13473
#ifdef HAVE_UNISTD_H
13474
#include 
13475
#endif
13476
"
13477
 
13478
# Does errno.h declare errno, or do we have to add a separate declaration
13479
# for it?
13480
 
13481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13482
$as_echo_n "checking whether declaration is required for errno... " >&6; }
13483
if test "${gas_cv_decl_needed_errno+set}" = set; then :
13484
  $as_echo_n "(cached) " >&6
13485
else
13486
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487
/* end confdefs.h.  */
13488
 
13489
#ifdef HAVE_ERRNO_H
13490
#include 
13491
#endif
13492
 
13493
int
13494
main ()
13495
{
13496
 
13497
typedef int f;
13498
f x;
13499
x = (f) errno;
13500
 
13501
  ;
13502
  return 0;
13503
}
13504
_ACEOF
13505
if ac_fn_c_try_link "$LINENO"; then :
13506
  gas_cv_decl_needed_errno=no
13507
else
13508
  gas_cv_decl_needed_errno=yes
13509
fi
13510
rm -f core conftest.err conftest.$ac_objext \
13511
    conftest$ac_exeext conftest.$ac_ext
13512
fi
13513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13514
$as_echo "$gas_cv_decl_needed_errno" >&6; }
13515
if test $gas_cv_decl_needed_errno = yes; then
13516
 
13517
$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13518
 
13519
fi
13520
 
13521
 
13522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13523
$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13524
if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13525
  $as_echo_n "(cached) " >&6
13526
else
13527
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528
/* end confdefs.h.  */
13529
#include 
13530
int
13531
main ()
13532
{
13533
extern int getopt (int, char *const*, const char *);
13534
  ;
13535
  return 0;
13536
}
13537
_ACEOF
13538
if ac_fn_c_try_compile "$LINENO"; then :
13539
  gas_cv_decl_getopt_unistd_h=yes
13540
else
13541
  gas_cv_decl_getopt_unistd_h=no
13542
fi
13543
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544
fi
13545
 
13546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13547
$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13548
if test $gas_cv_decl_getopt_unistd_h = yes; then
13549
 
13550
$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13551
 
13552
fi
13553
 
13554
 
13555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13556
$as_echo_n "checking whether declaration is required for environ... " >&6; }
13557
if test "${gas_cv_decl_needed_environ+set}" = set; then :
13558
  $as_echo_n "(cached) " >&6
13559
else
13560
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561
/* end confdefs.h.  */
13562
$gas_test_headers
13563
int
13564
main ()
13565
{
13566
 
13567
typedef char **f;
13568
f x;
13569
x = (f) environ;
13570
 
13571
  ;
13572
  return 0;
13573
}
13574
_ACEOF
13575
if ac_fn_c_try_link "$LINENO"; then :
13576
  gas_cv_decl_needed_environ=no
13577
else
13578
  gas_cv_decl_needed_environ=yes
13579
fi
13580
rm -f core conftest.err conftest.$ac_objext \
13581
    conftest$ac_exeext conftest.$ac_ext
13582
fi
13583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13584
$as_echo "$gas_cv_decl_needed_environ" >&6; }
13585
if test $gas_cv_decl_needed_environ = yes; then
13586
 
13587
$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13588
 
13589
fi
13590
 
13591
 
13592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13593
$as_echo_n "checking whether declaration is required for ffs... " >&6; }
13594
if test "${gas_cv_decl_needed_ffs+set}" = set; then :
13595
  $as_echo_n "(cached) " >&6
13596
else
13597
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598
/* end confdefs.h.  */
13599
$gas_test_headers
13600
int
13601
main ()
13602
{
13603
 
13604
typedef int (*f)(int);
13605
f x;
13606
x = (f) ffs;
13607
 
13608
  ;
13609
  return 0;
13610
}
13611
_ACEOF
13612
if ac_fn_c_try_link "$LINENO"; then :
13613
  gas_cv_decl_needed_ffs=no
13614
else
13615
  gas_cv_decl_needed_ffs=yes
13616
fi
13617
rm -f core conftest.err conftest.$ac_objext \
13618
    conftest$ac_exeext conftest.$ac_ext
13619
fi
13620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13621
$as_echo "$gas_cv_decl_needed_ffs" >&6; }
13622
if test $gas_cv_decl_needed_ffs = yes; then
13623
 
13624
$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13625
 
13626
fi
13627
 
13628
 
13629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
13630
$as_echo_n "checking whether declaration is required for free... " >&6; }
13631
if test "${gas_cv_decl_needed_free+set}" = set; then :
13632
  $as_echo_n "(cached) " >&6
13633
else
13634
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635
/* end confdefs.h.  */
13636
$gas_test_headers
13637
int
13638
main ()
13639
{
13640
 
13641
typedef void (*f)();
13642
f x;
13643
x = (f) free;
13644
 
13645
  ;
13646
  return 0;
13647
}
13648
_ACEOF
13649
if ac_fn_c_try_link "$LINENO"; then :
13650
  gas_cv_decl_needed_free=no
13651
else
13652
  gas_cv_decl_needed_free=yes
13653
fi
13654
rm -f core conftest.err conftest.$ac_objext \
13655
    conftest$ac_exeext conftest.$ac_ext
13656
fi
13657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
13658
$as_echo "$gas_cv_decl_needed_free" >&6; }
13659
if test $gas_cv_decl_needed_free = yes; then
13660
 
13661
$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13662
 
13663
fi
13664
 
13665
 
13666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
13667
$as_echo_n "checking whether declaration is required for malloc... " >&6; }
13668
if test "${gas_cv_decl_needed_malloc+set}" = set; then :
13669
  $as_echo_n "(cached) " >&6
13670
else
13671
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672
/* end confdefs.h.  */
13673
$gas_test_headers
13674
int
13675
main ()
13676
{
13677
 
13678
typedef char *(*f)();
13679
f x;
13680
x = (f) malloc;
13681
 
13682
  ;
13683
  return 0;
13684
}
13685
_ACEOF
13686
if ac_fn_c_try_link "$LINENO"; then :
13687
  gas_cv_decl_needed_malloc=no
13688
else
13689
  gas_cv_decl_needed_malloc=yes
13690
fi
13691
rm -f core conftest.err conftest.$ac_objext \
13692
    conftest$ac_exeext conftest.$ac_ext
13693
fi
13694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
13695
$as_echo "$gas_cv_decl_needed_malloc" >&6; }
13696
if test $gas_cv_decl_needed_malloc = yes; then
13697
 
13698
$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13699
 
13700
fi
13701
 
13702
 
13703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
13704
$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
13705
if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
13706
  $as_echo_n "(cached) " >&6
13707
else
13708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709
/* end confdefs.h.  */
13710
$gas_test_headers
13711
int
13712
main ()
13713
{
13714
 
13715
typedef char *(*f)();
13716
f x;
13717
x = (f) sbrk;
13718
 
13719
  ;
13720
  return 0;
13721
}
13722
_ACEOF
13723
if ac_fn_c_try_link "$LINENO"; then :
13724
  gas_cv_decl_needed_sbrk=no
13725
else
13726
  gas_cv_decl_needed_sbrk=yes
13727
fi
13728
rm -f core conftest.err conftest.$ac_objext \
13729
    conftest$ac_exeext conftest.$ac_ext
13730
fi
13731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
13732
$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
13733
if test $gas_cv_decl_needed_sbrk = yes; then
13734
 
13735
$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13736
 
13737
fi
13738
 
13739
 
13740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
13741
$as_echo_n "checking whether declaration is required for strstr... " >&6; }
13742
if test "${gas_cv_decl_needed_strstr+set}" = set; then :
13743
  $as_echo_n "(cached) " >&6
13744
else
13745
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746
/* end confdefs.h.  */
13747
$gas_test_headers
13748
int
13749
main ()
13750
{
13751
 
13752
typedef char *(*f)();
13753
f x;
13754
x = (f) strstr;
13755
 
13756
  ;
13757
  return 0;
13758
}
13759
_ACEOF
13760
if ac_fn_c_try_link "$LINENO"; then :
13761
  gas_cv_decl_needed_strstr=no
13762
else
13763
  gas_cv_decl_needed_strstr=yes
13764
fi
13765
rm -f core conftest.err conftest.$ac_objext \
13766
    conftest$ac_exeext conftest.$ac_ext
13767
fi
13768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
13769
$as_echo "$gas_cv_decl_needed_strstr" >&6; }
13770
if test $gas_cv_decl_needed_strstr = yes; then
13771
 
13772
$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13773
 
13774
fi
13775
 
13776
 
13777
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13778
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13779
  ac_have_decl=1
13780
else
13781
  ac_have_decl=0
13782
fi
13783
 
13784
cat >>confdefs.h <<_ACEOF
13785
#define HAVE_DECL_VSNPRINTF $ac_have_decl
13786
_ACEOF
13787
 
13788
 
13789
 
13790
case "${host}" in
13791
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13792
 
13793
$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13794
 ;;
13795
esac
13796
 
13797
# Support for VMS timestamps via cross compile
13798
 
13799
if test "$ac_cv_header_time_h" = yes; then
13800
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13801
$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13802
 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
13803
  $as_echo_n "(cached) " >&6
13804
else
13805
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806
/* end confdefs.h.  */
13807
 
13808
#define _BSD_SOURCE 1
13809
#include 
13810
int
13811
main ()
13812
{
13813
struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13814
  ;
13815
  return 0;
13816
}
13817
_ACEOF
13818
if ac_fn_c_try_compile "$LINENO"; then :
13819
  gas_cv_have_time_type_member_tm_gmtoff=yes
13820
else
13821
  gas_cv_have_time_type_member_tm_gmtoff=no
13822
 
13823
fi
13824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825
fi
13826
 
13827
 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
13828
 
13829
$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
13830
 
13831
 fi
13832
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
13833
$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
13834
 
13835
fi
13836
 
13837
if test "$ac_cv_header_sys_stat_h" = yes; then
13838
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
13839
$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
13840
 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
13841
  $as_echo_n "(cached) " >&6
13842
else
13843
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844
/* end confdefs.h.  */
13845
 
13846
#define _BSD_SOURCE 1
13847
#include 
13848
int
13849
main ()
13850
{
13851
struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
13852
  ;
13853
  return 0;
13854
}
13855
_ACEOF
13856
if ac_fn_c_try_compile "$LINENO"; then :
13857
  gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
13858
else
13859
  gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
13860
 
13861
fi
13862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863
fi
13864
 
13865
 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
13866
 
13867
$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
13868
 
13869
 fi
13870
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
13871
$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
13872
 
13873
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
13874
$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
13875
 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
13876
  $as_echo_n "(cached) " >&6
13877
else
13878
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879
/* end confdefs.h.  */
13880
 
13881
#define _BSD_SOURCE 1
13882
#include 
13883
int
13884
main ()
13885
{
13886
struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
13887
  ;
13888
  return 0;
13889
}
13890
_ACEOF
13891
if ac_fn_c_try_compile "$LINENO"; then :
13892
  gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
13893
else
13894
  gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
13895
 
13896
fi
13897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898
fi
13899
 
13900
 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
13901
 
13902
$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
13903
 
13904
 fi
13905
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
13906
$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
13907
 
13908
fi
13909
 
13910
 
13911
 
13912
 
13913
 
13914
 
13915
 
13916
 
13917
 
13918
ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13919
 
13920
ac_config_commands="$ac_config_commands default"
13921
 
13922
 
13923
cat >confcache <<\_ACEOF
13924
# This file is a shell script that caches the results of configure
13925
# tests run on this system so they can be shared between configure
13926
# scripts and configure runs, see configure's option --config-cache.
13927
# It is not useful on other systems.  If it contains results you don't
13928
# want to keep, you may remove or edit it.
13929
#
13930
# config.status only pays attention to the cache file if you give it
13931
# the --recheck option to rerun configure.
13932
#
13933
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13934
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13935
# following values.
13936
 
13937
_ACEOF
13938
 
13939
# The following way of writing the cache mishandles newlines in values,
13940
# but we know of no workaround that is simple, portable, and efficient.
13941
# So, we kill variables containing newlines.
13942
# Ultrix sh set writes to stderr and can't be redirected directly,
13943
# and sets the high bit in the cache file unless we assign to the vars.
13944
(
13945
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13946
    eval ac_val=\$$ac_var
13947
    case $ac_val in #(
13948
    *${as_nl}*)
13949
      case $ac_var in #(
13950
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13951
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13952
      esac
13953
      case $ac_var in #(
13954
      _ | IFS | as_nl) ;; #(
13955
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13956
      *) { eval $ac_var=; unset $ac_var;} ;;
13957
      esac ;;
13958
    esac
13959
  done
13960
 
13961
  (set) 2>&1 |
13962
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13963
    *${as_nl}ac_space=\ *)
13964
      # `set' does not quote correctly, so add quotes: double-quote
13965
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13966
      sed -n \
13967
        "s/'/'\\\\''/g;
13968
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13969
      ;; #(
13970
    *)
13971
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13972
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13973
      ;;
13974
    esac |
13975
    sort
13976
) |
13977
  sed '
13978
     /^ac_cv_env_/b end
13979
     t clear
13980
     :clear
13981
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13982
     t end
13983
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13984
     :end' >>confcache
13985
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13986
  if test -w "$cache_file"; then
13987
    test "x$cache_file" != "x/dev/null" &&
13988
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13989
$as_echo "$as_me: updating cache $cache_file" >&6;}
13990
    cat confcache >$cache_file
13991
  else
13992
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13993
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13994
  fi
13995
fi
13996
rm -f confcache
13997
 
13998
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13999
# Let make expand exec_prefix.
14000
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14001
 
14002
DEFS=-DHAVE_CONFIG_H
14003
 
14004
ac_libobjs=
14005
ac_ltlibobjs=
14006
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14007
  # 1. Remove the extension, and $U if already installed.
14008
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14009
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14010
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14011
  #    will be set to the directory where LIBOBJS objects are built.
14012
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14013
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14014
done
14015
LIBOBJS=$ac_libobjs
14016
 
14017
LTLIBOBJS=$ac_ltlibobjs
14018
 
14019
 
14020
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14021
  as_fn_error "conditional \"AMDEP\" was never defined.
14022
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14023
fi
14024
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14025
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14026
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14027
fi
14028
 if test -n "$EXEEXT"; then
14029
  am__EXEEXT_TRUE=
14030
  am__EXEEXT_FALSE='#'
14031
else
14032
  am__EXEEXT_TRUE='#'
14033
  am__EXEEXT_FALSE=
14034
fi
14035
 
14036
 
14037
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14038
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14039
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14040
fi
14041
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14042
  as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14043
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14044
fi
14045
 
14046
: ${CONFIG_STATUS=./config.status}
14047
ac_write_fail=0
14048
ac_clean_files_save=$ac_clean_files
14049
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14050
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14051
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14052
as_write_fail=0
14053
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14054
#! $SHELL
14055
# Generated by $as_me.
14056
# Run this file to recreate the current configuration.
14057
# Compiler output produced by configure, useful for debugging
14058
# configure, is in config.log if it exists.
14059
 
14060
debug=false
14061
ac_cs_recheck=false
14062
ac_cs_silent=false
14063
 
14064
SHELL=\${CONFIG_SHELL-$SHELL}
14065
export SHELL
14066
_ASEOF
14067
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14068
## -------------------- ##
14069
## M4sh Initialization. ##
14070
## -------------------- ##
14071
 
14072
# Be more Bourne compatible
14073
DUALCASE=1; export DUALCASE # for MKS sh
14074
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14075
  emulate sh
14076
  NULLCMD=:
14077
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14078
  # is contrary to our usage.  Disable this feature.
14079
  alias -g '${1+"$@"}'='"$@"'
14080
  setopt NO_GLOB_SUBST
14081
else
14082
  case `(set -o) 2>/dev/null` in #(
14083
  *posix*) :
14084
    set -o posix ;; #(
14085
  *) :
14086
     ;;
14087
esac
14088
fi
14089
 
14090
 
14091
as_nl='
14092
'
14093
export as_nl
14094
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14095
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14096
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14097
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14098
# Prefer a ksh shell builtin over an external printf program on Solaris,
14099
# but without wasting forks for bash or zsh.
14100
if test -z "$BASH_VERSION$ZSH_VERSION" \
14101
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14102
  as_echo='print -r --'
14103
  as_echo_n='print -rn --'
14104
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14105
  as_echo='printf %s\n'
14106
  as_echo_n='printf %s'
14107
else
14108
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14109
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14110
    as_echo_n='/usr/ucb/echo -n'
14111
  else
14112
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14113
    as_echo_n_body='eval
14114
      arg=$1;
14115
      case $arg in #(
14116
      *"$as_nl"*)
14117
        expr "X$arg" : "X\\(.*\\)$as_nl";
14118
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14119
      esac;
14120
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14121
    '
14122
    export as_echo_n_body
14123
    as_echo_n='sh -c $as_echo_n_body as_echo'
14124
  fi
14125
  export as_echo_body
14126
  as_echo='sh -c $as_echo_body as_echo'
14127
fi
14128
 
14129
# The user is always right.
14130
if test "${PATH_SEPARATOR+set}" != set; then
14131
  PATH_SEPARATOR=:
14132
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14133
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14134
      PATH_SEPARATOR=';'
14135
  }
14136
fi
14137
 
14138
 
14139
# IFS
14140
# We need space, tab and new line, in precisely that order.  Quoting is
14141
# there to prevent editors from complaining about space-tab.
14142
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14143
# splitting by setting IFS to empty value.)
14144
IFS=" ""        $as_nl"
14145
 
14146
# Find who we are.  Look in the path if we contain no directory separator.
14147
case $0 in #((
14148
  *[\\/]* ) as_myself=$0 ;;
14149
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150
for as_dir in $PATH
14151
do
14152
  IFS=$as_save_IFS
14153
  test -z "$as_dir" && as_dir=.
14154
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14155
  done
14156
IFS=$as_save_IFS
14157
 
14158
     ;;
14159
esac
14160
# We did not find ourselves, most probably we were run as `sh COMMAND'
14161
# in which case we are not to be found in the path.
14162
if test "x$as_myself" = x; then
14163
  as_myself=$0
14164
fi
14165
if test ! -f "$as_myself"; then
14166
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14167
  exit 1
14168
fi
14169
 
14170
# Unset variables that we do not need and which cause bugs (e.g. in
14171
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14172
# suppresses any "Segmentation fault" message there.  '((' could
14173
# trigger a bug in pdksh 5.2.14.
14174
for as_var in BASH_ENV ENV MAIL MAILPATH
14175
do eval test x\${$as_var+set} = xset \
14176
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14177
done
14178
PS1='$ '
14179
PS2='> '
14180
PS4='+ '
14181
 
14182
# NLS nuisances.
14183
LC_ALL=C
14184
export LC_ALL
14185
LANGUAGE=C
14186
export LANGUAGE
14187
 
14188
# CDPATH.
14189
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14190
 
14191
 
14192
# as_fn_error ERROR [LINENO LOG_FD]
14193
# ---------------------------------
14194
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14195
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14196
# script with status $?, using 1 if that was 0.
14197
as_fn_error ()
14198
{
14199
  as_status=$?; test $as_status -eq 0 && as_status=1
14200
  if test "$3"; then
14201
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14202
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14203
  fi
14204
  $as_echo "$as_me: error: $1" >&2
14205
  as_fn_exit $as_status
14206
} # as_fn_error
14207
 
14208
 
14209
# as_fn_set_status STATUS
14210
# -----------------------
14211
# Set $? to STATUS, without forking.
14212
as_fn_set_status ()
14213
{
14214
  return $1
14215
} # as_fn_set_status
14216
 
14217
# as_fn_exit STATUS
14218
# -----------------
14219
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14220
as_fn_exit ()
14221
{
14222
  set +e
14223
  as_fn_set_status $1
14224
  exit $1
14225
} # as_fn_exit
14226
 
14227
# as_fn_unset VAR
14228
# ---------------
14229
# Portably unset VAR.
14230
as_fn_unset ()
14231
{
14232
  { eval $1=; unset $1;}
14233
}
14234
as_unset=as_fn_unset
14235
# as_fn_append VAR VALUE
14236
# ----------------------
14237
# Append the text in VALUE to the end of the definition contained in VAR. Take
14238
# advantage of any shell optimizations that allow amortized linear growth over
14239
# repeated appends, instead of the typical quadratic growth present in naive
14240
# implementations.
14241
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14242
  eval 'as_fn_append ()
14243
  {
14244
    eval $1+=\$2
14245
  }'
14246
else
14247
  as_fn_append ()
14248
  {
14249
    eval $1=\$$1\$2
14250
  }
14251
fi # as_fn_append
14252
 
14253
# as_fn_arith ARG...
14254
# ------------------
14255
# Perform arithmetic evaluation on the ARGs, and store the result in the
14256
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14257
# must be portable across $(()) and expr.
14258
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14259
  eval 'as_fn_arith ()
14260
  {
14261
    as_val=$(( $* ))
14262
  }'
14263
else
14264
  as_fn_arith ()
14265
  {
14266
    as_val=`expr "$@" || test $? -eq 1`
14267
  }
14268
fi # as_fn_arith
14269
 
14270
 
14271
if expr a : '\(a\)' >/dev/null 2>&1 &&
14272
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14273
  as_expr=expr
14274
else
14275
  as_expr=false
14276
fi
14277
 
14278
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14279
  as_basename=basename
14280
else
14281
  as_basename=false
14282
fi
14283
 
14284
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14285
  as_dirname=dirname
14286
else
14287
  as_dirname=false
14288
fi
14289
 
14290
as_me=`$as_basename -- "$0" ||
14291
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14292
         X"$0" : 'X\(//\)$' \| \
14293
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14294
$as_echo X/"$0" |
14295
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14296
            s//\1/
14297
            q
14298
          }
14299
          /^X\/\(\/\/\)$/{
14300
            s//\1/
14301
            q
14302
          }
14303
          /^X\/\(\/\).*/{
14304
            s//\1/
14305
            q
14306
          }
14307
          s/.*/./; q'`
14308
 
14309
# Avoid depending upon Character Ranges.
14310
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14311
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14312
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14313
as_cr_digits='0123456789'
14314
as_cr_alnum=$as_cr_Letters$as_cr_digits
14315
 
14316
ECHO_C= ECHO_N= ECHO_T=
14317
case `echo -n x` in #(((((
14318
-n*)
14319
  case `echo 'xy\c'` in
14320
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14321
  xy)  ECHO_C='\c';;
14322
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14323
       ECHO_T=' ';;
14324
  esac;;
14325
*)
14326
  ECHO_N='-n';;
14327
esac
14328
 
14329
rm -f conf$$ conf$$.exe conf$$.file
14330
if test -d conf$$.dir; then
14331
  rm -f conf$$.dir/conf$$.file
14332
else
14333
  rm -f conf$$.dir
14334
  mkdir conf$$.dir 2>/dev/null
14335
fi
14336
if (echo >conf$$.file) 2>/dev/null; then
14337
  if ln -s conf$$.file conf$$ 2>/dev/null; then
14338
    as_ln_s='ln -s'
14339
    # ... but there are two gotchas:
14340
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14341
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14342
    # In both cases, we have to default to `cp -p'.
14343
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14344
      as_ln_s='cp -p'
14345
  elif ln conf$$.file conf$$ 2>/dev/null; then
14346
    as_ln_s=ln
14347
  else
14348
    as_ln_s='cp -p'
14349
  fi
14350
else
14351
  as_ln_s='cp -p'
14352
fi
14353
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14354
rmdir conf$$.dir 2>/dev/null
14355
 
14356
 
14357
# as_fn_mkdir_p
14358
# -------------
14359
# Create "$as_dir" as a directory, including parents if necessary.
14360
as_fn_mkdir_p ()
14361
{
14362
 
14363
  case $as_dir in #(
14364
  -*) as_dir=./$as_dir;;
14365
  esac
14366
  test -d "$as_dir" || eval $as_mkdir_p || {
14367
    as_dirs=
14368
    while :; do
14369
      case $as_dir in #(
14370
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14371
      *) as_qdir=$as_dir;;
14372
      esac
14373
      as_dirs="'$as_qdir' $as_dirs"
14374
      as_dir=`$as_dirname -- "$as_dir" ||
14375
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14376
         X"$as_dir" : 'X\(//\)[^/]' \| \
14377
         X"$as_dir" : 'X\(//\)$' \| \
14378
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14379
$as_echo X"$as_dir" |
14380
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14381
            s//\1/
14382
            q
14383
          }
14384
          /^X\(\/\/\)[^/].*/{
14385
            s//\1/
14386
            q
14387
          }
14388
          /^X\(\/\/\)$/{
14389
            s//\1/
14390
            q
14391
          }
14392
          /^X\(\/\).*/{
14393
            s//\1/
14394
            q
14395
          }
14396
          s/.*/./; q'`
14397
      test -d "$as_dir" && break
14398
    done
14399
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14400
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14401
 
14402
 
14403
} # as_fn_mkdir_p
14404
if mkdir -p . 2>/dev/null; then
14405
  as_mkdir_p='mkdir -p "$as_dir"'
14406
else
14407
  test -d ./-p && rmdir ./-p
14408
  as_mkdir_p=false
14409
fi
14410
 
14411
if test -x / >/dev/null 2>&1; then
14412
  as_test_x='test -x'
14413
else
14414
  if ls -dL / >/dev/null 2>&1; then
14415
    as_ls_L_option=L
14416
  else
14417
    as_ls_L_option=
14418
  fi
14419
  as_test_x='
14420
    eval sh -c '\''
14421
      if test -d "$1"; then
14422
        test -d "$1/.";
14423
      else
14424
        case $1 in #(
14425
        -*)set "./$1";;
14426
        esac;
14427
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14428
        ???[sx]*):;;*)false;;esac;fi
14429
    '\'' sh
14430
  '
14431
fi
14432
as_executable_p=$as_test_x
14433
 
14434
# Sed expression to map a string onto a valid CPP name.
14435
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14436
 
14437
# Sed expression to map a string onto a valid variable name.
14438
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14439
 
14440
 
14441
exec 6>&1
14442
## ----------------------------------- ##
14443
## Main body of $CONFIG_STATUS script. ##
14444
## ----------------------------------- ##
14445
_ASEOF
14446
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14447
 
14448
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14449
# Save the log message, to keep $0 and so on meaningful, and to
14450
# report actual input values of CONFIG_FILES etc. instead of their
14451
# values after options handling.
14452
ac_log="
14453
This file was extended by $as_me, which was
14454
generated by GNU Autoconf 2.64.  Invocation command line was
14455
 
14456
  CONFIG_FILES    = $CONFIG_FILES
14457
  CONFIG_HEADERS  = $CONFIG_HEADERS
14458
  CONFIG_LINKS    = $CONFIG_LINKS
14459
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14460
  $ $0 $@
14461
 
14462
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14463
"
14464
 
14465
_ACEOF
14466
 
14467
case $ac_config_files in *"
14468
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14469
esac
14470
 
14471
case $ac_config_headers in *"
14472
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14473
esac
14474
 
14475
 
14476
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14477
# Files that config.status was made for.
14478
config_files="$ac_config_files"
14479
config_headers="$ac_config_headers"
14480
config_commands="$ac_config_commands"
14481
 
14482
_ACEOF
14483
 
14484
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14485
ac_cs_usage="\
14486
\`$as_me' instantiates files and other configuration actions
14487
from templates according to the current configuration.  Unless the files
14488
and actions are specified as TAGs, all are instantiated by default.
14489
 
14490
Usage: $0 [OPTION]... [TAG]...
14491
 
14492
  -h, --help       print this help, then exit
14493
  -V, --version    print version number and configuration settings, then exit
14494
  -q, --quiet, --silent
14495
                   do not print progress messages
14496
  -d, --debug      don't remove temporary files
14497
      --recheck    update $as_me by reconfiguring in the same conditions
14498
      --file=FILE[:TEMPLATE]
14499
                   instantiate the configuration file FILE
14500
      --header=FILE[:TEMPLATE]
14501
                   instantiate the configuration header FILE
14502
 
14503
Configuration files:
14504
$config_files
14505
 
14506
Configuration headers:
14507
$config_headers
14508
 
14509
Configuration commands:
14510
$config_commands
14511
 
14512
Report bugs to the package provider."
14513
 
14514
_ACEOF
14515
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14516
ac_cs_version="\\
14517
config.status
14518
configured by $0, generated by GNU Autoconf 2.64,
14519
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14520
 
14521
Copyright (C) 2009 Free Software Foundation, Inc.
14522
This config.status script is free software; the Free Software Foundation
14523
gives unlimited permission to copy, distribute and modify it."
14524
 
14525
ac_pwd='$ac_pwd'
14526
srcdir='$srcdir'
14527
INSTALL='$INSTALL'
14528
MKDIR_P='$MKDIR_P'
14529
AWK='$AWK'
14530
test -n "\$AWK" || AWK=awk
14531
_ACEOF
14532
 
14533
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534
# The default lists apply if the user does not specify any file.
14535
ac_need_defaults=:
14536
while test $# != 0
14537
do
14538
  case $1 in
14539
  --*=*)
14540
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14541
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14542
    ac_shift=:
14543
    ;;
14544
  *)
14545
    ac_option=$1
14546
    ac_optarg=$2
14547
    ac_shift=shift
14548
    ;;
14549
  esac
14550
 
14551
  case $ac_option in
14552
  # Handling of the options.
14553
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14554
    ac_cs_recheck=: ;;
14555
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14556
    $as_echo "$ac_cs_version"; exit ;;
14557
  --debug | --debu | --deb | --de | --d | -d )
14558
    debug=: ;;
14559
  --file | --fil | --fi | --f )
14560
    $ac_shift
14561
    case $ac_optarg in
14562
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14563
    esac
14564
    as_fn_append CONFIG_FILES " '$ac_optarg'"
14565
    ac_need_defaults=false;;
14566
  --header | --heade | --head | --hea )
14567
    $ac_shift
14568
    case $ac_optarg in
14569
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14570
    esac
14571
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14572
    ac_need_defaults=false;;
14573
  --he | --h)
14574
    # Conflict between --help and --header
14575
    as_fn_error "ambiguous option: \`$1'
14576
Try \`$0 --help' for more information.";;
14577
  --help | --hel | -h )
14578
    $as_echo "$ac_cs_usage"; exit ;;
14579
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14580
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14581
    ac_cs_silent=: ;;
14582
 
14583
  # This is an error.
14584
  -*) as_fn_error "unrecognized option: \`$1'
14585
Try \`$0 --help' for more information." ;;
14586
 
14587
  *) as_fn_append ac_config_targets " $1"
14588
     ac_need_defaults=false ;;
14589
 
14590
  esac
14591
  shift
14592
done
14593
 
14594
ac_configure_extra_args=
14595
 
14596
if $ac_cs_silent; then
14597
  exec 6>/dev/null
14598
  ac_configure_extra_args="$ac_configure_extra_args --silent"
14599
fi
14600
 
14601
_ACEOF
14602
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603
if \$ac_cs_recheck; then
14604
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14605
  shift
14606
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14607
  CONFIG_SHELL='$SHELL'
14608
  export CONFIG_SHELL
14609
  exec "\$@"
14610
fi
14611
 
14612
_ACEOF
14613
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14614
exec 5>>config.log
14615
{
14616
  echo
14617
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14618
## Running $as_me. ##
14619
_ASBOX
14620
  $as_echo "$ac_log"
14621
} >&5
14622
 
14623
_ACEOF
14624
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14625
#
14626
# INIT-COMMANDS
14627
#
14628
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14629
 
14630
 
14631
# The HP-UX ksh and POSIX shell print the target directory to stdout
14632
# if CDPATH is set.
14633
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14634
 
14635
sed_quote_subst='$sed_quote_subst'
14636
double_quote_subst='$double_quote_subst'
14637
delay_variable_subst='$delay_variable_subst'
14638
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14639
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14640
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14641
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14642
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14643
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14644
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14645
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14646
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14647
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14648
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14649
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14650
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14651
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14652
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14653
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14654
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14655
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14656
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14657
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14658
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14659
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14660
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14661
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14662
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14663
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14664
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14665
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14666
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14667
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14668
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14669
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14670
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14671
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14672
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14673
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14674
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14675
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14676
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14677
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14678
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14679
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14680
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14681
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14682
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"`'
14683
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"`'
14684
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14685
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14686
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14687
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14688
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14689
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14690
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14691
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14692
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14693
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14694
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14695
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14696
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14697
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14698
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14699
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14700
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14701
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14702
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14703
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14704
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14705
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14706
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14707
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14710
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14711
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14712
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14713
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14714
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14715
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14716
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14717
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14718
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14719
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14720
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14721
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14722
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14723
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14724
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14725
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14726
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14727
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14728
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14729
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14730
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14731
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14732
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14733
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14734
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14735
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14736
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14737
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14738
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14739
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14740
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14741
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14742
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14743
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14744
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14745
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14746
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14747
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14748
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14749
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14750
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14751
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14752
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14753
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14754
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14755
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14756
 
14757
LTCC='$LTCC'
14758
LTCFLAGS='$LTCFLAGS'
14759
compiler='$compiler_DEFAULT'
14760
 
14761
# Quote evaled strings.
14762
for var in SED \
14763
GREP \
14764
EGREP \
14765
FGREP \
14766
LD \
14767
NM \
14768
LN_S \
14769
lt_SP2NL \
14770
lt_NL2SP \
14771
reload_flag \
14772
OBJDUMP \
14773
deplibs_check_method \
14774
file_magic_cmd \
14775
AR \
14776
AR_FLAGS \
14777
STRIP \
14778
RANLIB \
14779
CC \
14780
CFLAGS \
14781
compiler \
14782
lt_cv_sys_global_symbol_pipe \
14783
lt_cv_sys_global_symbol_to_cdecl \
14784
lt_cv_sys_global_symbol_to_c_name_address \
14785
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14786
SHELL \
14787
ECHO \
14788
lt_prog_compiler_no_builtin_flag \
14789
lt_prog_compiler_wl \
14790
lt_prog_compiler_pic \
14791
lt_prog_compiler_static \
14792
lt_cv_prog_compiler_c_o \
14793
need_locks \
14794
DSYMUTIL \
14795
NMEDIT \
14796
LIPO \
14797
OTOOL \
14798
OTOOL64 \
14799
shrext_cmds \
14800
export_dynamic_flag_spec \
14801
whole_archive_flag_spec \
14802
compiler_needs_object \
14803
with_gnu_ld \
14804
allow_undefined_flag \
14805
no_undefined_flag \
14806
hardcode_libdir_flag_spec \
14807
hardcode_libdir_flag_spec_ld \
14808
hardcode_libdir_separator \
14809
fix_srcfile_path \
14810
exclude_expsyms \
14811
include_expsyms \
14812
file_list_spec \
14813
variables_saved_for_relink \
14814
libname_spec \
14815
library_names_spec \
14816
soname_spec \
14817
finish_eval \
14818
old_striplib \
14819
striplib; do
14820
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14821
    *[\\\\\\\`\\"\\\$]*)
14822
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14823
      ;;
14824
    *)
14825
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14826
      ;;
14827
    esac
14828
done
14829
 
14830
# Double-quote double-evaled strings.
14831
for var in reload_cmds \
14832
old_postinstall_cmds \
14833
old_postuninstall_cmds \
14834
old_archive_cmds \
14835
extract_expsyms_cmds \
14836
old_archive_from_new_cmds \
14837
old_archive_from_expsyms_cmds \
14838
archive_cmds \
14839
archive_expsym_cmds \
14840
module_cmds \
14841
module_expsym_cmds \
14842
export_symbols_cmds \
14843
prelink_cmds \
14844
postinstall_cmds \
14845
postuninstall_cmds \
14846
finish_cmds \
14847
sys_lib_search_path_spec \
14848
sys_lib_dlsearch_path_spec; do
14849
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14850
    *[\\\\\\\`\\"\\\$]*)
14851
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14852
      ;;
14853
    *)
14854
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14855
      ;;
14856
    esac
14857
done
14858
 
14859
# Fix-up fallback echo if it was mangled by the above quoting rules.
14860
case \$lt_ECHO in
14861
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14862
  ;;
14863
esac
14864
 
14865
ac_aux_dir='$ac_aux_dir'
14866
xsi_shell='$xsi_shell'
14867
lt_shell_append='$lt_shell_append'
14868
 
14869
# See if we are running on zsh, and set the options which allow our
14870
# commands through without removal of \ escapes INIT.
14871
if test -n "\${ZSH_VERSION+set}" ; then
14872
   setopt NO_GLOB_SUBST
14873
fi
14874
 
14875
 
14876
    PACKAGE='$PACKAGE'
14877
    VERSION='$VERSION'
14878
    TIMESTAMP='$TIMESTAMP'
14879
    RM='$RM'
14880
    ofile='$ofile'
14881
 
14882
 
14883
 
14884
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14885
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14886
    # from automake.
14887
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14888
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14889
    LINGUAS="${LINGUAS-%UNSET%}"
14890
 
14891
target_cpu_type=${target_cpu_type}
14892
 cgen_cpu_prefix=${cgen_cpu_prefix}
14893
 obj_format=${obj_format}
14894
 te_file=${te_file}
14895
 
14896
_ACEOF
14897
 
14898
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14899
 
14900
# Handling of arguments.
14901
for ac_config_target in $ac_config_targets
14902
do
14903
  case $ac_config_target in
14904
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14905
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14906
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14907
    "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14908
    ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14909
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14910
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14911
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14912
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14913
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14914
 
14915
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14916
  esac
14917
done
14918
 
14919
 
14920
# If the user did not use the arguments to specify the items to instantiate,
14921
# then the envvar interface is used.  Set only those that are not.
14922
# We use the long form for the default assignment because of an extremely
14923
# bizarre bug on SunOS 4.1.3.
14924
if $ac_need_defaults; then
14925
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14926
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14927
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14928
fi
14929
 
14930
# Have a temporary directory for convenience.  Make it in the build tree
14931
# simply because there is no reason against having it here, and in addition,
14932
# creating and moving files from /tmp can sometimes cause problems.
14933
# Hook for its removal unless debugging.
14934
# Note that there is a small window in which the directory will not be cleaned:
14935
# after its creation but before its name has been assigned to `$tmp'.
14936
$debug ||
14937
{
14938
  tmp=
14939
  trap 'exit_status=$?
14940
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14941
' 0
14942
  trap 'as_fn_exit 1' 1 2 13 15
14943
}
14944
# Create a (secure) tmp directory for tmp files.
14945
 
14946
{
14947
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14948
  test -n "$tmp" && test -d "$tmp"
14949
}  ||
14950
{
14951
  tmp=./conf$$-$RANDOM
14952
  (umask 077 && mkdir "$tmp")
14953
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14954
 
14955
# Set up the scripts for CONFIG_FILES section.
14956
# No need to generate them if there are no CONFIG_FILES.
14957
# This happens for instance with `./config.status config.h'.
14958
if test -n "$CONFIG_FILES"; then
14959
 
14960
 
14961
ac_cr=`echo X | tr X '\015'`
14962
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14963
# But we know of no other shell where ac_cr would be empty at this
14964
# point, so we can use a bashism as a fallback.
14965
if test "x$ac_cr" = x; then
14966
  eval ac_cr=\$\'\\r\'
14967
fi
14968
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14969
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14970
  ac_cs_awk_cr='\r'
14971
else
14972
  ac_cs_awk_cr=$ac_cr
14973
fi
14974
 
14975
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14976
_ACEOF
14977
 
14978
 
14979
{
14980
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14981
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14982
  echo "_ACEOF"
14983
} >conf$$subs.sh ||
14984
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14985
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14986
ac_delim='%!_!# '
14987
for ac_last_try in false false false false false :; do
14988
  . ./conf$$subs.sh ||
14989
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14990
 
14991
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14992
  if test $ac_delim_n = $ac_delim_num; then
14993
    break
14994
  elif $ac_last_try; then
14995
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14996
  else
14997
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14998
  fi
14999
done
15000
rm -f conf$$subs.sh
15001
 
15002
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15003
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15004
_ACEOF
15005
sed -n '
15006
h
15007
s/^/S["/; s/!.*/"]=/
15008
p
15009
g
15010
s/^[^!]*!//
15011
:repl
15012
t repl
15013
s/'"$ac_delim"'$//
15014
t delim
15015
:nl
15016
h
15017
s/\(.\{148\}\).*/\1/
15018
t more1
15019
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15020
p
15021
n
15022
b repl
15023
:more1
15024
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15025
p
15026
g
15027
s/.\{148\}//
15028
t nl
15029
:delim
15030
h
15031
s/\(.\{148\}\).*/\1/
15032
t more2
15033
s/["\\]/\\&/g; s/^/"/; s/$/"/
15034
p
15035
b
15036
:more2
15037
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15038
p
15039
g
15040
s/.\{148\}//
15041
t delim
15042
' 
15043
/^[^""]/{
15044
  N
15045
  s/\n//
15046
}
15047
' >>$CONFIG_STATUS || ac_write_fail=1
15048
rm -f conf$$subs.awk
15049
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15050
_ACAWK
15051
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15052
  for (key in S) S_is_set[key] = 1
15053
  FS = ""
15054
 
15055
}
15056
{
15057
  line = $ 0
15058
  nfields = split(line, field, "@")
15059
  substed = 0
15060
  len = length(field[1])
15061
  for (i = 2; i < nfields; i++) {
15062
    key = field[i]
15063
    keylen = length(key)
15064
    if (S_is_set[key]) {
15065
      value = S[key]
15066
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15067
      len += length(value) + length(field[++i])
15068
      substed = 1
15069
    } else
15070
      len += 1 + keylen
15071
  }
15072
 
15073
  print line
15074
}
15075
 
15076
_ACAWK
15077
_ACEOF
15078
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15079
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15080
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15081
else
15082
  cat
15083
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15084
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15085
_ACEOF
15086
 
15087
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15088
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15089
# trailing colons and then remove the whole line if VPATH becomes empty
15090
# (actually we leave an empty line to preserve line numbers).
15091
if test "x$srcdir" = x.; then
15092
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
15093
s/:*\$(srcdir):*/:/
15094
s/:*\${srcdir}:*/:/
15095
s/:*@srcdir@:*/:/
15096
s/^\([^=]*=[     ]*\):*/\1/
15097
s/:*$//
15098
s/^[^=]*=[       ]*$//
15099
}'
15100
fi
15101
 
15102
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15103
fi # test -n "$CONFIG_FILES"
15104
 
15105
# Set up the scripts for CONFIG_HEADERS section.
15106
# No need to generate them if there are no CONFIG_HEADERS.
15107
# This happens for instance with `./config.status Makefile'.
15108
if test -n "$CONFIG_HEADERS"; then
15109
cat >"$tmp/defines.awk" <<\_ACAWK ||
15110
BEGIN {
15111
_ACEOF
15112
 
15113
# Transform confdefs.h into an awk script `defines.awk', embedded as
15114
# here-document in config.status, that substitutes the proper values into
15115
# config.h.in to produce config.h.
15116
 
15117
# Create a delimiter string that does not exist in confdefs.h, to ease
15118
# handling of long lines.
15119
ac_delim='%!_!# '
15120
for ac_last_try in false false :; do
15121
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15122
  if test -z "$ac_t"; then
15123
    break
15124
  elif $ac_last_try; then
15125
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15126
  else
15127
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15128
  fi
15129
done
15130
 
15131
# For the awk script, D is an array of macro values keyed by name,
15132
# likewise P contains macro parameters if any.  Preserve backslash
15133
# newline sequences.
15134
 
15135
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15136
sed -n '
15137
s/.\{148\}/&'"$ac_delim"'/g
15138
t rset
15139
:rset
15140
s/^[     ]*#[    ]*define[       ][      ]*/ /
15141
t def
15142
d
15143
:def
15144
s/\\$//
15145
t bsnl
15146
s/["\\]/\\&/g
15147
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15148
D["\1"]=" \3"/p
15149
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15150
d
15151
:bsnl
15152
s/["\\]/\\&/g
15153
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15154
D["\1"]=" \3\\\\\\n"\\/p
15155
t cont
15156
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15157
t cont
15158
d
15159
:cont
15160
n
15161
s/.\{148\}/&'"$ac_delim"'/g
15162
t clear
15163
:clear
15164
s/\\$//
15165
t bsnlc
15166
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15167
d
15168
:bsnlc
15169
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15170
b cont
15171
' 
15172
s/'"$ac_delim"'/"\\\
15173
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15174
 
15175
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15176
  for (key in D) D_is_set[key] = 1
15177
  FS = ""
15178
}
15179
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15180
  line = \$ 0
15181
  split(line, arg, " ")
15182
  if (arg[1] == "#") {
15183
    defundef = arg[2]
15184
    mac1 = arg[3]
15185
  } else {
15186
    defundef = substr(arg[1], 2)
15187
    mac1 = arg[2]
15188
  }
15189
  split(mac1, mac2, "(") #)
15190
  macro = mac2[1]
15191
  prefix = substr(line, 1, index(line, defundef) - 1)
15192
  if (D_is_set[macro]) {
15193
    # Preserve the white space surrounding the "#".
15194
    print prefix "define", macro P[macro] D[macro]
15195
    next
15196
  } else {
15197
    # Replace #undef with comments.  This is necessary, for example,
15198
    # in the case of _POSIX_SOURCE, which is predefined and required
15199
    # on some systems where configure will not decide to define it.
15200
    if (defundef == "undef") {
15201
      print "/*", prefix defundef, macro, "*/"
15202
      next
15203
    }
15204
  }
15205
}
15206
{ print }
15207
_ACAWK
15208
_ACEOF
15209
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15211
fi # test -n "$CONFIG_HEADERS"
15212
 
15213
 
15214
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15215
shift
15216
for ac_tag
15217
do
15218
  case $ac_tag in
15219
  :[FHLC]) ac_mode=$ac_tag; continue;;
15220
  esac
15221
  case $ac_mode$ac_tag in
15222
  :[FHL]*:*);;
15223
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15224
  :[FH]-) ac_tag=-:-;;
15225
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15226
  esac
15227
  ac_save_IFS=$IFS
15228
  IFS=:
15229
  set x $ac_tag
15230
  IFS=$ac_save_IFS
15231
  shift
15232
  ac_file=$1
15233
  shift
15234
 
15235
  case $ac_mode in
15236
  :L) ac_source=$1;;
15237
  :[FH])
15238
    ac_file_inputs=
15239
    for ac_f
15240
    do
15241
      case $ac_f in
15242
      -) ac_f="$tmp/stdin";;
15243
      *) # Look for the file first in the build tree, then in the source tree
15244
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
15245
         # because $ac_f cannot contain `:'.
15246
         test -f "$ac_f" ||
15247
           case $ac_f in
15248
           [\\/$]*) false;;
15249
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15250
           esac ||
15251
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15252
      esac
15253
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15254
      as_fn_append ac_file_inputs " '$ac_f'"
15255
    done
15256
 
15257
    # Let's still pretend it is `configure' which instantiates (i.e., don't
15258
    # use $as_me), people would be surprised to read:
15259
    #    /* config.h.  Generated by config.status.  */
15260
    configure_input='Generated from '`
15261
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15262
        `' by configure.'
15263
    if test x"$ac_file" != x-; then
15264
      configure_input="$ac_file.  $configure_input"
15265
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15266
$as_echo "$as_me: creating $ac_file" >&6;}
15267
    fi
15268
    # Neutralize special characters interpreted by sed in replacement strings.
15269
    case $configure_input in #(
15270
    *\&* | *\|* | *\\* )
15271
       ac_sed_conf_input=`$as_echo "$configure_input" |
15272
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15273
    *) ac_sed_conf_input=$configure_input;;
15274
    esac
15275
 
15276
    case $ac_tag in
15277
    *:-:* | *:-) cat >"$tmp/stdin" \
15278
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15279
    esac
15280
    ;;
15281
  esac
15282
 
15283
  ac_dir=`$as_dirname -- "$ac_file" ||
15284
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15285
         X"$ac_file" : 'X\(//\)[^/]' \| \
15286
         X"$ac_file" : 'X\(//\)$' \| \
15287
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15288
$as_echo X"$ac_file" |
15289
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15290
            s//\1/
15291
            q
15292
          }
15293
          /^X\(\/\/\)[^/].*/{
15294
            s//\1/
15295
            q
15296
          }
15297
          /^X\(\/\/\)$/{
15298
            s//\1/
15299
            q
15300
          }
15301
          /^X\(\/\).*/{
15302
            s//\1/
15303
            q
15304
          }
15305
          s/.*/./; q'`
15306
  as_dir="$ac_dir"; as_fn_mkdir_p
15307
  ac_builddir=.
15308
 
15309
case "$ac_dir" in
15310
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15311
*)
15312
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15313
  # A ".." for each directory in $ac_dir_suffix.
15314
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15315
  case $ac_top_builddir_sub in
15316
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15317
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15318
  esac ;;
15319
esac
15320
ac_abs_top_builddir=$ac_pwd
15321
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15322
# for backward compatibility:
15323
ac_top_builddir=$ac_top_build_prefix
15324
 
15325
case $srcdir in
15326
  .)  # We are building in place.
15327
    ac_srcdir=.
15328
    ac_top_srcdir=$ac_top_builddir_sub
15329
    ac_abs_top_srcdir=$ac_pwd ;;
15330
  [\\/]* | ?:[\\/]* )  # Absolute name.
15331
    ac_srcdir=$srcdir$ac_dir_suffix;
15332
    ac_top_srcdir=$srcdir
15333
    ac_abs_top_srcdir=$srcdir ;;
15334
  *) # Relative name.
15335
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15336
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15337
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15338
esac
15339
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15340
 
15341
 
15342
  case $ac_mode in
15343
  :F)
15344
  #
15345
  # CONFIG_FILE
15346
  #
15347
 
15348
  case $INSTALL in
15349
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15350
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15351
  esac
15352
  ac_MKDIR_P=$MKDIR_P
15353
  case $MKDIR_P in
15354
  [\\/$]* | ?:[\\/]* ) ;;
15355
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15356
  esac
15357
_ACEOF
15358
 
15359
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15360
# If the template does not know about datarootdir, expand it.
15361
# FIXME: This hack should be removed a few years after 2.60.
15362
ac_datarootdir_hack=; ac_datarootdir_seen=
15363
ac_sed_dataroot='
15364
/datarootdir/ {
15365
  p
15366
  q
15367
}
15368
/@datadir@/p
15369
/@docdir@/p
15370
/@infodir@/p
15371
/@localedir@/p
15372
/@mandir@/p'
15373
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15374
*datarootdir*) ac_datarootdir_seen=yes;;
15375
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15376
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15377
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15378
_ACEOF
15379
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15380
  ac_datarootdir_hack='
15381
  s&@datadir@&$datadir&g
15382
  s&@docdir@&$docdir&g
15383
  s&@infodir@&$infodir&g
15384
  s&@localedir@&$localedir&g
15385
  s&@mandir@&$mandir&g
15386
  s&\\\${datarootdir}&$datarootdir&g' ;;
15387
esac
15388
_ACEOF
15389
 
15390
# Neutralize VPATH when `$srcdir' = `.'.
15391
# Shell code in configure.ac might set extrasub.
15392
# FIXME: do we really want to maintain this feature?
15393
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15394
ac_sed_extra="$ac_vpsub
15395
$extrasub
15396
_ACEOF
15397
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15398
:t
15399
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15400
s|@configure_input@|$ac_sed_conf_input|;t t
15401
s&@top_builddir@&$ac_top_builddir_sub&;t t
15402
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15403
s&@srcdir@&$ac_srcdir&;t t
15404
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15405
s&@top_srcdir@&$ac_top_srcdir&;t t
15406
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15407
s&@builddir@&$ac_builddir&;t t
15408
s&@abs_builddir@&$ac_abs_builddir&;t t
15409
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15410
s&@INSTALL@&$ac_INSTALL&;t t
15411
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15412
$ac_datarootdir_hack
15413
"
15414
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15415
  || as_fn_error "could not create $ac_file" "$LINENO" 5
15416
 
15417
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15418
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15419
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15420
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15421
which seems to be undefined.  Please make sure it is defined." >&5
15422
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15423
which seems to be undefined.  Please make sure it is defined." >&2;}
15424
 
15425
  rm -f "$tmp/stdin"
15426
  case $ac_file in
15427
  -) cat "$tmp/out" && rm -f "$tmp/out";;
15428
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15429
  esac \
15430
  || as_fn_error "could not create $ac_file" "$LINENO" 5
15431
 ;;
15432
  :H)
15433
  #
15434
  # CONFIG_HEADER
15435
  #
15436
  if test x"$ac_file" != x-; then
15437
    {
15438
      $as_echo "/* $configure_input  */" \
15439
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15440
    } >"$tmp/config.h" \
15441
      || as_fn_error "could not create $ac_file" "$LINENO" 5
15442
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15443
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15444
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15445
    else
15446
      rm -f "$ac_file"
15447
      mv "$tmp/config.h" "$ac_file" \
15448
        || as_fn_error "could not create $ac_file" "$LINENO" 5
15449
    fi
15450
  else
15451
    $as_echo "/* $configure_input  */" \
15452
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15453
      || as_fn_error "could not create -" "$LINENO" 5
15454
  fi
15455
# Compute "$ac_file"'s index in $config_headers.
15456
_am_arg="$ac_file"
15457
_am_stamp_count=1
15458
for _am_header in $config_headers :; do
15459
  case $_am_header in
15460
    $_am_arg | $_am_arg:* )
15461
      break ;;
15462
    * )
15463
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15464
  esac
15465
done
15466
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15467
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15468
         X"$_am_arg" : 'X\(//\)[^/]' \| \
15469
         X"$_am_arg" : 'X\(//\)$' \| \
15470
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15471
$as_echo X"$_am_arg" |
15472
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15473
            s//\1/
15474
            q
15475
          }
15476
          /^X\(\/\/\)[^/].*/{
15477
            s//\1/
15478
            q
15479
          }
15480
          /^X\(\/\/\)$/{
15481
            s//\1/
15482
            q
15483
          }
15484
          /^X\(\/\).*/{
15485
            s//\1/
15486
            q
15487
          }
15488
          s/.*/./; q'`/stamp-h$_am_stamp_count
15489
 ;;
15490
 
15491
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15492
$as_echo "$as_me: executing $ac_file commands" >&6;}
15493
 ;;
15494
  esac
15495
 
15496
 
15497
  case $ac_file$ac_mode in
15498
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15499
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15500
  # are listed without --file.  Let's play safe and only enable the eval
15501
  # if we detect the quoting.
15502
  case $CONFIG_FILES in
15503
  *\'*) eval set x "$CONFIG_FILES" ;;
15504
  *)   set x $CONFIG_FILES ;;
15505
  esac
15506
  shift
15507
  for mf
15508
  do
15509
    # Strip MF so we end up with the name of the file.
15510
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15511
    # Check whether this is an Automake generated Makefile or not.
15512
    # We used to match only the files named `Makefile.in', but
15513
    # some people rename them; so instead we look at the file content.
15514
    # Grep'ing the first line is not enough: some people post-process
15515
    # each Makefile.in and add a new line on top of each file to say so.
15516
    # Grep'ing the whole file is not good either: AIX grep has a line
15517
    # limit of 2048, but all sed's we know have understand at least 4000.
15518
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15519
      dirpart=`$as_dirname -- "$mf" ||
15520
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15521
         X"$mf" : 'X\(//\)[^/]' \| \
15522
         X"$mf" : 'X\(//\)$' \| \
15523
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15524
$as_echo X"$mf" |
15525
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15526
            s//\1/
15527
            q
15528
          }
15529
          /^X\(\/\/\)[^/].*/{
15530
            s//\1/
15531
            q
15532
          }
15533
          /^X\(\/\/\)$/{
15534
            s//\1/
15535
            q
15536
          }
15537
          /^X\(\/\).*/{
15538
            s//\1/
15539
            q
15540
          }
15541
          s/.*/./; q'`
15542
    else
15543
      continue
15544
    fi
15545
    # Extract the definition of DEPDIR, am__include, and am__quote
15546
    # from the Makefile without running `make'.
15547
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15548
    test -z "$DEPDIR" && continue
15549
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15550
    test -z "am__include" && continue
15551
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15552
    # When using ansi2knr, U may be empty or an underscore; expand it
15553
    U=`sed -n 's/^U = //p' < "$mf"`
15554
    # Find all dependency output files, they are included files with
15555
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15556
    # simplest approach to changing $(DEPDIR) to its actual value in the
15557
    # expansion.
15558
    for file in `sed -n "
15559
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15560
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15561
      # Make sure the directory exists.
15562
      test -f "$dirpart/$file" && continue
15563
      fdir=`$as_dirname -- "$file" ||
15564
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15565
         X"$file" : 'X\(//\)[^/]' \| \
15566
         X"$file" : 'X\(//\)$' \| \
15567
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15568
$as_echo X"$file" |
15569
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15570
            s//\1/
15571
            q
15572
          }
15573
          /^X\(\/\/\)[^/].*/{
15574
            s//\1/
15575
            q
15576
          }
15577
          /^X\(\/\/\)$/{
15578
            s//\1/
15579
            q
15580
          }
15581
          /^X\(\/\).*/{
15582
            s//\1/
15583
            q
15584
          }
15585
          s/.*/./; q'`
15586
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15587
      # echo "creating $dirpart/$file"
15588
      echo '# dummy' > "$dirpart/$file"
15589
    done
15590
  done
15591
}
15592
 ;;
15593
    "libtool":C)
15594
 
15595
    # See if we are running on zsh, and set the options which allow our
15596
    # commands through without removal of \ escapes.
15597
    if test -n "${ZSH_VERSION+set}" ; then
15598
      setopt NO_GLOB_SUBST
15599
    fi
15600
 
15601
    cfgfile="${ofile}T"
15602
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15603
    $RM "$cfgfile"
15604
 
15605
    cat <<_LT_EOF >> "$cfgfile"
15606
#! $SHELL
15607
 
15608
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15609
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15610
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15611
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15612
#
15613
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15614
#                 2006, 2007, 2008 Free Software Foundation, Inc.
15615
#   Written by Gordon Matzigkeit, 1996
15616
#
15617
#   This file is part of GNU Libtool.
15618
#
15619
# GNU Libtool is free software; you can redistribute it and/or
15620
# modify it under the terms of the GNU General Public License as
15621
# published by the Free Software Foundation; either version 2 of
15622
# the License, or (at your option) any later version.
15623
#
15624
# As a special exception to the GNU General Public License,
15625
# if you distribute this file as part of a program or library that
15626
# is built using GNU Libtool, you may include this file under the
15627
# same distribution terms that you use for the rest of that program.
15628
#
15629
# GNU Libtool is distributed in the hope that it will be useful,
15630
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15631
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15632
# GNU General Public License for more details.
15633
#
15634
# You should have received a copy of the GNU General Public License
15635
# along with GNU Libtool; see the file COPYING.  If not, a copy
15636
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15637
# obtained by writing to the Free Software Foundation, Inc.,
15638
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15639
 
15640
 
15641
# The names of the tagged configurations supported by this script.
15642
available_tags=""
15643
 
15644
# ### BEGIN LIBTOOL CONFIG
15645
 
15646
# Which release of libtool.m4 was used?
15647
macro_version=$macro_version
15648
macro_revision=$macro_revision
15649
 
15650
# Whether or not to build shared libraries.
15651
build_libtool_libs=$enable_shared
15652
 
15653
# Whether or not to build static libraries.
15654
build_old_libs=$enable_static
15655
 
15656
# What type of objects to build.
15657
pic_mode=$pic_mode
15658
 
15659
# Whether or not to optimize for fast installation.
15660
fast_install=$enable_fast_install
15661
 
15662
# The host system.
15663
host_alias=$host_alias
15664
host=$host
15665
host_os=$host_os
15666
 
15667
# The build system.
15668
build_alias=$build_alias
15669
build=$build
15670
build_os=$build_os
15671
 
15672
# A sed program that does not truncate output.
15673
SED=$lt_SED
15674
 
15675
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15676
Xsed="\$SED -e 1s/^X//"
15677
 
15678
# A grep program that handles long lines.
15679
GREP=$lt_GREP
15680
 
15681
# An ERE matcher.
15682
EGREP=$lt_EGREP
15683
 
15684
# A literal string matcher.
15685
FGREP=$lt_FGREP
15686
 
15687
# A BSD- or MS-compatible name lister.
15688
NM=$lt_NM
15689
 
15690
# Whether we need soft or hard links.
15691
LN_S=$lt_LN_S
15692
 
15693
# What is the maximum length of a command?
15694
max_cmd_len=$max_cmd_len
15695
 
15696
# Object file suffix (normally "o").
15697
objext=$ac_objext
15698
 
15699
# Executable file suffix (normally "").
15700
exeext=$exeext
15701
 
15702
# whether the shell understands "unset".
15703
lt_unset=$lt_unset
15704
 
15705
# turn spaces into newlines.
15706
SP2NL=$lt_lt_SP2NL
15707
 
15708
# turn newlines into spaces.
15709
NL2SP=$lt_lt_NL2SP
15710
 
15711
# How to create reloadable object files.
15712
reload_flag=$lt_reload_flag
15713
reload_cmds=$lt_reload_cmds
15714
 
15715
# An object symbol dumper.
15716
OBJDUMP=$lt_OBJDUMP
15717
 
15718
# Method to check whether dependent libraries are shared objects.
15719
deplibs_check_method=$lt_deplibs_check_method
15720
 
15721
# Command to use when deplibs_check_method == "file_magic".
15722
file_magic_cmd=$lt_file_magic_cmd
15723
 
15724
# The archiver.
15725
AR=$lt_AR
15726
AR_FLAGS=$lt_AR_FLAGS
15727
 
15728
# A symbol stripping program.
15729
STRIP=$lt_STRIP
15730
 
15731
# Commands used to install an old-style archive.
15732
RANLIB=$lt_RANLIB
15733
old_postinstall_cmds=$lt_old_postinstall_cmds
15734
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15735
 
15736
# A C compiler.
15737
LTCC=$lt_CC
15738
 
15739
# LTCC compiler flags.
15740
LTCFLAGS=$lt_CFLAGS
15741
 
15742
# Take the output of nm and produce a listing of raw symbols and C names.
15743
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15744
 
15745
# Transform the output of nm in a proper C declaration.
15746
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15747
 
15748
# Transform the output of nm in a C name address pair.
15749
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15750
 
15751
# Transform the output of nm in a C name address pair when lib prefix is needed.
15752
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15753
 
15754
# The name of the directory that contains temporary libtool files.
15755
objdir=$objdir
15756
 
15757
# Shell to use when invoking shell scripts.
15758
SHELL=$lt_SHELL
15759
 
15760
# An echo program that does not interpret backslashes.
15761
ECHO=$lt_ECHO
15762
 
15763
# Used to examine libraries when file_magic_cmd begins with "file".
15764
MAGIC_CMD=$MAGIC_CMD
15765
 
15766
# Must we lock files when doing compilation?
15767
need_locks=$lt_need_locks
15768
 
15769
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15770
DSYMUTIL=$lt_DSYMUTIL
15771
 
15772
# Tool to change global to local symbols on Mac OS X.
15773
NMEDIT=$lt_NMEDIT
15774
 
15775
# Tool to manipulate fat objects and archives on Mac OS X.
15776
LIPO=$lt_LIPO
15777
 
15778
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15779
OTOOL=$lt_OTOOL
15780
 
15781
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15782
OTOOL64=$lt_OTOOL64
15783
 
15784
# Old archive suffix (normally "a").
15785
libext=$libext
15786
 
15787
# Shared library suffix (normally ".so").
15788
shrext_cmds=$lt_shrext_cmds
15789
 
15790
# The commands to extract the exported symbol list from a shared archive.
15791
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15792
 
15793
# Variables whose values should be saved in libtool wrapper scripts and
15794
# restored at link time.
15795
variables_saved_for_relink=$lt_variables_saved_for_relink
15796
 
15797
# Do we need the "lib" prefix for modules?
15798
need_lib_prefix=$need_lib_prefix
15799
 
15800
# Do we need a version for libraries?
15801
need_version=$need_version
15802
 
15803
# Library versioning type.
15804
version_type=$version_type
15805
 
15806
# Shared library runtime path variable.
15807
runpath_var=$runpath_var
15808
 
15809
# Shared library path variable.
15810
shlibpath_var=$shlibpath_var
15811
 
15812
# Is shlibpath searched before the hard-coded library search path?
15813
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15814
 
15815
# Format of library name prefix.
15816
libname_spec=$lt_libname_spec
15817
 
15818
# List of archive names.  First name is the real one, the rest are links.
15819
# The last name is the one that the linker finds with -lNAME
15820
library_names_spec=$lt_library_names_spec
15821
 
15822
# The coded name of the library, if different from the real name.
15823
soname_spec=$lt_soname_spec
15824
 
15825
# Command to use after installation of a shared archive.
15826
postinstall_cmds=$lt_postinstall_cmds
15827
 
15828
# Command to use after uninstallation of a shared archive.
15829
postuninstall_cmds=$lt_postuninstall_cmds
15830
 
15831
# Commands used to finish a libtool library installation in a directory.
15832
finish_cmds=$lt_finish_cmds
15833
 
15834
# As "finish_cmds", except a single script fragment to be evaled but
15835
# not shown.
15836
finish_eval=$lt_finish_eval
15837
 
15838
# Whether we should hardcode library paths into libraries.
15839
hardcode_into_libs=$hardcode_into_libs
15840
 
15841
# Compile-time system search path for libraries.
15842
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15843
 
15844
# Run-time system search path for libraries.
15845
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15846
 
15847
# Whether dlopen is supported.
15848
dlopen_support=$enable_dlopen
15849
 
15850
# Whether dlopen of programs is supported.
15851
dlopen_self=$enable_dlopen_self
15852
 
15853
# Whether dlopen of statically linked programs is supported.
15854
dlopen_self_static=$enable_dlopen_self_static
15855
 
15856
# Commands to strip libraries.
15857
old_striplib=$lt_old_striplib
15858
striplib=$lt_striplib
15859
 
15860
 
15861
# The linker used to build libraries.
15862
LD=$lt_LD
15863
 
15864
# Commands used to build an old-style archive.
15865
old_archive_cmds=$lt_old_archive_cmds
15866
 
15867
# A language specific compiler.
15868
CC=$lt_compiler
15869
 
15870
# Is the compiler the GNU compiler?
15871
with_gcc=$GCC
15872
 
15873
# Compiler flag to turn off builtin functions.
15874
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15875
 
15876
# How to pass a linker flag through the compiler.
15877
wl=$lt_lt_prog_compiler_wl
15878
 
15879
# Additional compiler flags for building library objects.
15880
pic_flag=$lt_lt_prog_compiler_pic
15881
 
15882
# Compiler flag to prevent dynamic linking.
15883
link_static_flag=$lt_lt_prog_compiler_static
15884
 
15885
# Does compiler simultaneously support -c and -o options?
15886
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15887
 
15888
# Whether or not to add -lc for building shared libraries.
15889
build_libtool_need_lc=$archive_cmds_need_lc
15890
 
15891
# Whether or not to disallow shared libs when runtime libs are static.
15892
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15893
 
15894
# Compiler flag to allow reflexive dlopens.
15895
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15896
 
15897
# Compiler flag to generate shared objects directly from archives.
15898
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15899
 
15900
# Whether the compiler copes with passing no objects directly.
15901
compiler_needs_object=$lt_compiler_needs_object
15902
 
15903
# Create an old-style archive from a shared archive.
15904
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15905
 
15906
# Create a temporary old-style archive to link instead of a shared archive.
15907
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15908
 
15909
# Commands used to build a shared archive.
15910
archive_cmds=$lt_archive_cmds
15911
archive_expsym_cmds=$lt_archive_expsym_cmds
15912
 
15913
# Commands used to build a loadable module if different from building
15914
# a shared archive.
15915
module_cmds=$lt_module_cmds
15916
module_expsym_cmds=$lt_module_expsym_cmds
15917
 
15918
# Whether we are building with GNU ld or not.
15919
with_gnu_ld=$lt_with_gnu_ld
15920
 
15921
# Flag that allows shared libraries with undefined symbols to be built.
15922
allow_undefined_flag=$lt_allow_undefined_flag
15923
 
15924
# Flag that enforces no undefined symbols.
15925
no_undefined_flag=$lt_no_undefined_flag
15926
 
15927
# Flag to hardcode \$libdir into a binary during linking.
15928
# This must work even if \$libdir does not exist
15929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15930
 
15931
# If ld is used when linking, flag to hardcode \$libdir into a binary
15932
# during linking.  This must work even if \$libdir does not exist.
15933
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15934
 
15935
# Whether we need a single "-rpath" flag with a separated argument.
15936
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15937
 
15938
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15939
# DIR into the resulting binary.
15940
hardcode_direct=$hardcode_direct
15941
 
15942
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15943
# DIR into the resulting binary and the resulting library dependency is
15944
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15945
# library is relocated.
15946
hardcode_direct_absolute=$hardcode_direct_absolute
15947
 
15948
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15949
# into the resulting binary.
15950
hardcode_minus_L=$hardcode_minus_L
15951
 
15952
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15953
# into the resulting binary.
15954
hardcode_shlibpath_var=$hardcode_shlibpath_var
15955
 
15956
# Set to "yes" if building a shared library automatically hardcodes DIR
15957
# into the library and all subsequent libraries and executables linked
15958
# against it.
15959
hardcode_automatic=$hardcode_automatic
15960
 
15961
# Set to yes if linker adds runtime paths of dependent libraries
15962
# to runtime path list.
15963
inherit_rpath=$inherit_rpath
15964
 
15965
# Whether libtool must link a program against all its dependency libraries.
15966
link_all_deplibs=$link_all_deplibs
15967
 
15968
# Fix the shell variable \$srcfile for the compiler.
15969
fix_srcfile_path=$lt_fix_srcfile_path
15970
 
15971
# Set to "yes" if exported symbols are required.
15972
always_export_symbols=$always_export_symbols
15973
 
15974
# The commands to list exported symbols.
15975
export_symbols_cmds=$lt_export_symbols_cmds
15976
 
15977
# Symbols that should not be listed in the preloaded symbols.
15978
exclude_expsyms=$lt_exclude_expsyms
15979
 
15980
# Symbols that must always be exported.
15981
include_expsyms=$lt_include_expsyms
15982
 
15983
# Commands necessary for linking programs (against libraries) with templates.
15984
prelink_cmds=$lt_prelink_cmds
15985
 
15986
# Specify filename containing input files.
15987
file_list_spec=$lt_file_list_spec
15988
 
15989
# How to hardcode a shared library path into an executable.
15990
hardcode_action=$hardcode_action
15991
 
15992
# ### END LIBTOOL CONFIG
15993
 
15994
_LT_EOF
15995
 
15996
  case $host_os in
15997
  aix3*)
15998
    cat <<\_LT_EOF >> "$cfgfile"
15999
# AIX sometimes has problems with the GCC collect2 program.  For some
16000
# reason, if we set the COLLECT_NAMES environment variable, the problems
16001
# vanish in a puff of smoke.
16002
if test "X${COLLECT_NAMES+set}" != Xset; then
16003
  COLLECT_NAMES=
16004
  export COLLECT_NAMES
16005
fi
16006
_LT_EOF
16007
    ;;
16008
  esac
16009
 
16010
 
16011
ltmain="$ac_aux_dir/ltmain.sh"
16012
 
16013
 
16014
  # We use sed instead of cat because bash on DJGPP gets confused if
16015
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16016
  # text mode, it properly converts lines to CR/LF.  This bash problem
16017
  # is reportedly fixed, but why not run on old versions too?
16018
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16019
    || (rm -f "$cfgfile"; exit 1)
16020
 
16021
  case $xsi_shell in
16022
  yes)
16023
    cat << \_LT_EOF >> "$cfgfile"
16024
 
16025
# func_dirname file append nondir_replacement
16026
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16027
# otherwise set result to NONDIR_REPLACEMENT.
16028
func_dirname ()
16029
{
16030
  case ${1} in
16031
    */*) func_dirname_result="${1%/*}${2}" ;;
16032
    *  ) func_dirname_result="${3}" ;;
16033
  esac
16034
}
16035
 
16036
# func_basename file
16037
func_basename ()
16038
{
16039
  func_basename_result="${1##*/}"
16040
}
16041
 
16042
# func_dirname_and_basename file append nondir_replacement
16043
# perform func_basename and func_dirname in a single function
16044
# call:
16045
#   dirname:  Compute the dirname of FILE.  If nonempty,
16046
#             add APPEND to the result, otherwise set result
16047
#             to NONDIR_REPLACEMENT.
16048
#             value returned in "$func_dirname_result"
16049
#   basename: Compute filename of FILE.
16050
#             value retuned in "$func_basename_result"
16051
# Implementation must be kept synchronized with func_dirname
16052
# and func_basename. For efficiency, we do not delegate to
16053
# those functions but instead duplicate the functionality here.
16054
func_dirname_and_basename ()
16055
{
16056
  case ${1} in
16057
    */*) func_dirname_result="${1%/*}${2}" ;;
16058
    *  ) func_dirname_result="${3}" ;;
16059
  esac
16060
  func_basename_result="${1##*/}"
16061
}
16062
 
16063
# func_stripname prefix suffix name
16064
# strip PREFIX and SUFFIX off of NAME.
16065
# PREFIX and SUFFIX must not contain globbing or regex special
16066
# characters, hashes, percent signs, but SUFFIX may contain a leading
16067
# dot (in which case that matches only a dot).
16068
func_stripname ()
16069
{
16070
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16071
  # positional parameters, so assign one to ordinary parameter first.
16072
  func_stripname_result=${3}
16073
  func_stripname_result=${func_stripname_result#"${1}"}
16074
  func_stripname_result=${func_stripname_result%"${2}"}
16075
}
16076
 
16077
# func_opt_split
16078
func_opt_split ()
16079
{
16080
  func_opt_split_opt=${1%%=*}
16081
  func_opt_split_arg=${1#*=}
16082
}
16083
 
16084
# func_lo2o object
16085
func_lo2o ()
16086
{
16087
  case ${1} in
16088
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16089
    *)    func_lo2o_result=${1} ;;
16090
  esac
16091
}
16092
 
16093
# func_xform libobj-or-source
16094
func_xform ()
16095
{
16096
  func_xform_result=${1%.*}.lo
16097
}
16098
 
16099
# func_arith arithmetic-term...
16100
func_arith ()
16101
{
16102
  func_arith_result=$(( $* ))
16103
}
16104
 
16105
# func_len string
16106
# STRING may not start with a hyphen.
16107
func_len ()
16108
{
16109
  func_len_result=${#1}
16110
}
16111
 
16112
_LT_EOF
16113
    ;;
16114
  *) # Bourne compatible functions.
16115
    cat << \_LT_EOF >> "$cfgfile"
16116
 
16117
# func_dirname file append nondir_replacement
16118
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16119
# otherwise set result to NONDIR_REPLACEMENT.
16120
func_dirname ()
16121
{
16122
  # Extract subdirectory from the argument.
16123
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16124
  if test "X$func_dirname_result" = "X${1}"; then
16125
    func_dirname_result="${3}"
16126
  else
16127
    func_dirname_result="$func_dirname_result${2}"
16128
  fi
16129
}
16130
 
16131
# func_basename file
16132
func_basename ()
16133
{
16134
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16135
}
16136
 
16137
 
16138
# func_stripname prefix suffix name
16139
# strip PREFIX and SUFFIX off of NAME.
16140
# PREFIX and SUFFIX must not contain globbing or regex special
16141
# characters, hashes, percent signs, but SUFFIX may contain a leading
16142
# dot (in which case that matches only a dot).
16143
# func_strip_suffix prefix name
16144
func_stripname ()
16145
{
16146
  case ${2} in
16147
    .*) func_stripname_result=`$ECHO "X${3}" \
16148
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16149
    *)  func_stripname_result=`$ECHO "X${3}" \
16150
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16151
  esac
16152
}
16153
 
16154
# sed scripts:
16155
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16156
my_sed_long_arg='1s/^-[^=]*=//'
16157
 
16158
# func_opt_split
16159
func_opt_split ()
16160
{
16161
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16162
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16163
}
16164
 
16165
# func_lo2o object
16166
func_lo2o ()
16167
{
16168
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16169
}
16170
 
16171
# func_xform libobj-or-source
16172
func_xform ()
16173
{
16174
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16175
}
16176
 
16177
# func_arith arithmetic-term...
16178
func_arith ()
16179
{
16180
  func_arith_result=`expr "$@"`
16181
}
16182
 
16183
# func_len string
16184
# STRING may not start with a hyphen.
16185
func_len ()
16186
{
16187
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16188
}
16189
 
16190
_LT_EOF
16191
esac
16192
 
16193
case $lt_shell_append in
16194
  yes)
16195
    cat << \_LT_EOF >> "$cfgfile"
16196
 
16197
# func_append var value
16198
# Append VALUE to the end of shell variable VAR.
16199
func_append ()
16200
{
16201
  eval "$1+=\$2"
16202
}
16203
_LT_EOF
16204
    ;;
16205
  *)
16206
    cat << \_LT_EOF >> "$cfgfile"
16207
 
16208
# func_append var value
16209
# Append VALUE to the end of shell variable VAR.
16210
func_append ()
16211
{
16212
  eval "$1=\$$1\$2"
16213
}
16214
 
16215
_LT_EOF
16216
    ;;
16217
  esac
16218
 
16219
 
16220
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16221
    || (rm -f "$cfgfile"; exit 1)
16222
 
16223
  mv -f "$cfgfile" "$ofile" ||
16224
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16225
  chmod +x "$ofile"
16226
 
16227
 ;;
16228
    "default-1":C)
16229
    for ac_file in $CONFIG_FILES; do
16230
      # Support "outfile[:infile[:infile...]]"
16231
      case "$ac_file" in
16232
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16233
      esac
16234
      # PO directories have a Makefile.in generated from Makefile.in.in.
16235
      case "$ac_file" in */Makefile.in)
16236
        # Adjust a relative srcdir.
16237
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16238
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16239
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16240
        # In autoconf-2.13 it is called $ac_given_srcdir.
16241
        # In autoconf-2.50 it is called $srcdir.
16242
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16243
        case "$ac_given_srcdir" in
16244
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16245
          /*) top_srcdir="$ac_given_srcdir" ;;
16246
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16247
        esac
16248
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16249
          rm -f "$ac_dir/POTFILES"
16250
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16251
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16252
          POMAKEFILEDEPS="POTFILES.in"
16253
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16254
          # on $ac_dir but don't depend on user-specified configuration
16255
          # parameters.
16256
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16257
            # The LINGUAS file contains the set of available languages.
16258
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
16259
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16260
            fi
16261
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16262
            # Hide the ALL_LINGUAS assigment from automake.
16263
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16264
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16265
          else
16266
            # The set of available languages was given in configure.in.
16267
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16268
          fi
16269
          case "$ac_given_srcdir" in
16270
            .) srcdirpre= ;;
16271
            *) srcdirpre='$(srcdir)/' ;;
16272
          esac
16273
          POFILES=
16274
          GMOFILES=
16275
          UPDATEPOFILES=
16276
          DUMMYPOFILES=
16277
          for lang in $ALL_LINGUAS; do
16278
            POFILES="$POFILES $srcdirpre$lang.po"
16279
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16280
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16281
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16282
          done
16283
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
16284
          # environment variable.
16285
          INST_LINGUAS=
16286
          if test -n "$ALL_LINGUAS"; then
16287
            for presentlang in $ALL_LINGUAS; do
16288
              useit=no
16289
              if test "%UNSET%" != "$LINGUAS"; then
16290
                desiredlanguages="$LINGUAS"
16291
              else
16292
                desiredlanguages="$ALL_LINGUAS"
16293
              fi
16294
              for desiredlang in $desiredlanguages; do
16295
                # Use the presentlang catalog if desiredlang is
16296
                #   a. equal to presentlang, or
16297
                #   b. a variant of presentlang (because in this case,
16298
                #      presentlang can be used as a fallback for messages
16299
                #      which are not translated in the desiredlang catalog).
16300
                case "$desiredlang" in
16301
                  "$presentlang"*) useit=yes;;
16302
                esac
16303
              done
16304
              if test $useit = yes; then
16305
                INST_LINGUAS="$INST_LINGUAS $presentlang"
16306
              fi
16307
            done
16308
          fi
16309
          CATALOGS=
16310
          if test -n "$INST_LINGUAS"; then
16311
            for lang in $INST_LINGUAS; do
16312
              CATALOGS="$CATALOGS $lang.gmo"
16313
            done
16314
          fi
16315
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16316
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16317
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16318
            if test -f "$f"; then
16319
              case "$f" in
16320
                *.orig | *.bak | *~) ;;
16321
                *) cat "$f" >> "$ac_dir/Makefile" ;;
16322
              esac
16323
            fi
16324
          done
16325
        fi
16326
        ;;
16327
      esac
16328
    done ;;
16329
    "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16330
 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16331
 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16332
 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16333
 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16334
 if test "x$cgen_cpu_prefix" != x ; then
16335
   echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16336
 fi ;;
16337
 
16338
  esac
16339
done # for ac_tag
16340
 
16341
 
16342
as_fn_exit 0
16343
_ACEOF
16344
ac_clean_files=$ac_clean_files_save
16345
 
16346
test $ac_write_fail = 0 ||
16347
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16348
 
16349
 
16350
# configure is writing to config.log, and then calls config.status.
16351
# config.status does its own redirection, appending to config.log.
16352
# Unfortunately, on DOS this fails, as config.log is still kept open
16353
# by configure, so config.status won't be able to write to it; its
16354
# output is simply discarded.  So we exec the FD to /dev/null,
16355
# effectively closing config.log, so it can be properly (re)opened and
16356
# appended to by config.status.  When coming back to configure, we
16357
# need to make the FD available again.
16358
if test "$no_create" != yes; then
16359
  ac_cs_success=:
16360
  ac_config_status_args=
16361
  test "$silent" = yes &&
16362
    ac_config_status_args="$ac_config_status_args --quiet"
16363
  exec 5>/dev/null
16364
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16365
  exec 5>>config.log
16366
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16367
  # would make configure fail if this is the last instruction.
16368
  $ac_cs_success || as_fn_exit $?
16369
fi
16370
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16371
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16372
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16373
fi
16374
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.