OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1ksim/] [autom4te.cache/] [output.1] - Blame information for rev 163

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

Line No. Rev Author Line
1 19 jeremybenn
@%:@! /bin/sh
2 60 jeremybenn
@%:@ From configure.ac Id: configure.ac 19 2009-05-25 09:01:28Z jeremybennett  using automake version AC_ACVERSION.
3 19 jeremybenn
@%:@ Guess values for system-dependent variables and create Makefiles.
4
@%:@ Generated by GNU Autoconf 2.61 for or1ksim 0.3.0.
5
@%:@
6
@%:@ Report bugs to .
7
@%:@
8
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10
@%:@ This configure script is free software; the Free Software Foundation
11
@%:@ gives unlimited permission to copy, distribute and modify it.
12
## --------------------- ##
13
## M4sh Initialization.  ##
14
## --------------------- ##
15
 
16
# Be more Bourne compatible
17
DUALCASE=1; export DUALCASE # for MKS sh
18
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
  emulate sh
20
  NULLCMD=:
21
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
  # is contrary to our usage.  Disable this feature.
23
  alias -g '${1+"$@"}'='"$@"'
24
  setopt NO_GLOB_SUBST
25
else
26
  case `(set -o) 2>/dev/null` in
27
  *posix*) set -o posix ;;
28
esac
29
 
30
fi
31
 
32
 
33
 
34
 
35
# PATH needs CR
36
# Avoid depending upon Character Ranges.
37
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40
as_cr_digits='0123456789'
41
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
 
43
# The user is always right.
44
if test "${PATH_SEPARATOR+set}" != set; then
45
  echo "#! /bin/sh" >conf$$.sh
46
  echo  "exit 0"   >>conf$$.sh
47
  chmod +x conf$$.sh
48
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49
    PATH_SEPARATOR=';'
50
  else
51
    PATH_SEPARATOR=:
52
  fi
53
  rm -f conf$$.sh
54
fi
55
 
56
# Support unset when possible.
57
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58
  as_unset=unset
59
else
60
  as_unset=false
61
fi
62
 
63
 
64
# IFS
65
# We need space, tab and new line, in precisely that order.  Quoting is
66
# there to prevent editors from complaining about space-tab.
67
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68
# splitting by setting IFS to empty value.)
69
as_nl='
70
'
71
IFS=" ""        $as_nl"
72
 
73
# Find who we are.  Look in the path if we contain no directory separator.
74
case $0 in
75
  *[\\/]* ) as_myself=$0 ;;
76
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
for as_dir in $PATH
78
do
79
  IFS=$as_save_IFS
80
  test -z "$as_dir" && as_dir=.
81
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82
done
83
IFS=$as_save_IFS
84
 
85
     ;;
86
esac
87
# We did not find ourselves, most probably we were run as `sh COMMAND'
88
# in which case we are not to be found in the path.
89
if test "x$as_myself" = x; then
90
  as_myself=$0
91
fi
92
if test ! -f "$as_myself"; then
93
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
  { (exit 1); exit 1; }
95
fi
96
 
97
# Work around bugs in pre-3.0 UWIN ksh.
98
for as_var in ENV MAIL MAILPATH
99
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100
done
101
PS1='$ '
102
PS2='> '
103
PS4='+ '
104
 
105
# NLS nuisances.
106
for as_var in \
107
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109
  LC_TELEPHONE LC_TIME
110
do
111
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112
    eval $as_var=C; export $as_var
113
  else
114
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
  fi
116
done
117
 
118
# Required to use basename.
119
if expr a : '\(a\)' >/dev/null 2>&1 &&
120
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121
  as_expr=expr
122
else
123
  as_expr=false
124
fi
125
 
126
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127
  as_basename=basename
128
else
129
  as_basename=false
130
fi
131
 
132
 
133
# Name of the executable.
134
as_me=`$as_basename -- "$0" ||
135
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136
         X"$0" : 'X\(//\)$' \| \
137
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
echo X/"$0" |
139
    sed '/^.*\/\([^/][^/]*\)\/*$/{
140
            s//\1/
141
            q
142
          }
143
          /^X\/\(\/\/\)$/{
144
            s//\1/
145
            q
146
          }
147
          /^X\/\(\/\).*/{
148
            s//\1/
149
            q
150
          }
151
          s/.*/./; q'`
152
 
153
# CDPATH.
154
$as_unset CDPATH
155
 
156
 
157
if test "x$CONFIG_SHELL" = x; then
158
  if (eval ":") 2>/dev/null; then
159
  as_have_required=yes
160
else
161
  as_have_required=no
162
fi
163
 
164
  if test $as_have_required = yes &&     (eval ":
165
(as_func_return () {
166
  (exit \$1)
167
}
168
as_func_success () {
169
  as_func_return 0
170
}
171
as_func_failure () {
172
  as_func_return 1
173
}
174
as_func_ret_success () {
175
  return 0
176
}
177
as_func_ret_failure () {
178
  return 1
179
}
180
 
181
exitcode=0
182
if as_func_success; then
183
  :
184
else
185
  exitcode=1
186
  echo as_func_success failed.
187
fi
188
 
189
if as_func_failure; then
190
  exitcode=1
191
  echo as_func_failure succeeded.
192
fi
193
 
194
if as_func_ret_success; then
195
  :
196
else
197
  exitcode=1
198
  echo as_func_ret_success failed.
199
fi
200
 
201
if as_func_ret_failure; then
202
  exitcode=1
203
  echo as_func_ret_failure succeeded.
204
fi
205
 
206
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
  :
208
else
209
  exitcode=1
210
  echo positional parameters were not saved.
211
fi
212
 
213
test \$exitcode = 0) || { (exit 1); exit 1; }
214
 
215
(
216
  as_lineno_1=\$LINENO
217
  as_lineno_2=\$LINENO
218
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220
") 2> /dev/null; then
221
  :
222
else
223
  as_candidate_shells=
224
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226
do
227
  IFS=$as_save_IFS
228
  test -z "$as_dir" && as_dir=.
229
  case $as_dir in
230
         /*)
231
           for as_base in sh bash ksh sh5; do
232
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233
           done;;
234
       esac
235
done
236
IFS=$as_save_IFS
237
 
238
 
239
      for as_shell in $as_candidate_shells $SHELL; do
240
         # Try only shells that exist, to save several forks.
241
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242
                { ("$as_shell") 2> /dev/null <<\_ASEOF
243
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244
  emulate sh
245
  NULLCMD=:
246
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247
  # is contrary to our usage.  Disable this feature.
248
  alias -g '${1+"$@"}'='"$@"'
249
  setopt NO_GLOB_SUBST
250
else
251
  case `(set -o) 2>/dev/null` in
252
  *posix*) set -o posix ;;
253
esac
254
 
255
fi
256
 
257
 
258
:
259
_ASEOF
260
}; then
261
  CONFIG_SHELL=$as_shell
262
               as_have_required=yes
263
               if { "$as_shell" 2> /dev/null <<\_ASEOF
264
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265
  emulate sh
266
  NULLCMD=:
267
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268
  # is contrary to our usage.  Disable this feature.
269
  alias -g '${1+"$@"}'='"$@"'
270
  setopt NO_GLOB_SUBST
271
else
272
  case `(set -o) 2>/dev/null` in
273
  *posix*) set -o posix ;;
274
esac
275
 
276
fi
277
 
278
 
279
:
280
(as_func_return () {
281
  (exit $1)
282
}
283
as_func_success () {
284
  as_func_return 0
285
}
286
as_func_failure () {
287
  as_func_return 1
288
}
289
as_func_ret_success () {
290
  return 0
291
}
292
as_func_ret_failure () {
293
  return 1
294
}
295
 
296
exitcode=0
297
if as_func_success; then
298
  :
299
else
300
  exitcode=1
301
  echo as_func_success failed.
302
fi
303
 
304
if as_func_failure; then
305
  exitcode=1
306
  echo as_func_failure succeeded.
307
fi
308
 
309
if as_func_ret_success; then
310
  :
311
else
312
  exitcode=1
313
  echo as_func_ret_success failed.
314
fi
315
 
316
if as_func_ret_failure; then
317
  exitcode=1
318
  echo as_func_ret_failure succeeded.
319
fi
320
 
321
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
  :
323
else
324
  exitcode=1
325
  echo positional parameters were not saved.
326
fi
327
 
328
test $exitcode = 0) || { (exit 1); exit 1; }
329
 
330
(
331
  as_lineno_1=$LINENO
332
  as_lineno_2=$LINENO
333
  test "x$as_lineno_1" != "x$as_lineno_2" &&
334
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
 
336
_ASEOF
337
}; then
338
  break
339
fi
340
 
341
fi
342
 
343
      done
344
 
345
      if test "x$CONFIG_SHELL" != x; then
346
  for as_var in BASH_ENV ENV
347
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348
        done
349
        export CONFIG_SHELL
350
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
fi
352
 
353
 
354
    if test $as_have_required = no; then
355
  echo This script requires a shell more modern than all the
356
      echo shells that I found on your system.  Please install a
357
      echo modern shell, or manually run the script under such a
358
      echo shell if you do have one.
359
      { (exit 1); exit 1; }
360
fi
361
 
362
 
363
fi
364
 
365
fi
366
 
367
 
368
 
369
(eval "as_func_return () {
370
  (exit \$1)
371
}
372
as_func_success () {
373
  as_func_return 0
374
}
375
as_func_failure () {
376
  as_func_return 1
377
}
378
as_func_ret_success () {
379
  return 0
380
}
381
as_func_ret_failure () {
382
  return 1
383
}
384
 
385
exitcode=0
386
if as_func_success; then
387
  :
388
else
389
  exitcode=1
390
  echo as_func_success failed.
391
fi
392
 
393
if as_func_failure; then
394
  exitcode=1
395
  echo as_func_failure succeeded.
396
fi
397
 
398
if as_func_ret_success; then
399
  :
400
else
401
  exitcode=1
402
  echo as_func_ret_success failed.
403
fi
404
 
405
if as_func_ret_failure; then
406
  exitcode=1
407
  echo as_func_ret_failure succeeded.
408
fi
409
 
410
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
  :
412
else
413
  exitcode=1
414
  echo positional parameters were not saved.
415
fi
416
 
417
test \$exitcode = 0") || {
418
  echo No shell found that supports shell functions.
419
  echo Please tell autoconf@gnu.org about your system,
420
  echo including any error possibly output before this
421
  echo message
422
}
423
 
424
 
425
 
426
  as_lineno_1=$LINENO
427
  as_lineno_2=$LINENO
428
  test "x$as_lineno_1" != "x$as_lineno_2" &&
429
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
 
431
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432
  # uniformly replaced by the line number.  The first 'sed' inserts a
433
  # line-number line after each line using $LINENO; the second 'sed'
434
  # does the real work.  The second script uses 'N' to pair each
435
  # line-number line with the line containing $LINENO, and appends
436
  # trailing '-' during substitution so that $LINENO is not a special
437
  # case at line end.
438
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440
  # E. McMahon (1931-1989) for sed's syntax.  :-)
441
  sed -n '
442
    p
443
    /[$]LINENO/=
444
  ' <$as_myself |
445
    sed '
446
      s/[$]LINENO.*/&-/
447
      t lineno
448
      b
449
      :lineno
450
      N
451
      :loop
452
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
      t loop
454
      s/-\n.*//
455
    ' >$as_me.lineno &&
456
  chmod +x "$as_me.lineno" ||
457
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458
   { (exit 1); exit 1; }; }
459
 
460
  # Don't try to exec as it changes $[0], causing all sort of problems
461
  # (the dirname of $[0] is not the place where we might find the
462
  # original and so on.  Autoconf is especially sensitive to this).
463
  . "./$as_me.lineno"
464
  # Exit status is that of the last command.
465
  exit
466
}
467
 
468
 
469
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470
  as_dirname=dirname
471
else
472
  as_dirname=false
473
fi
474
 
475
ECHO_C= ECHO_N= ECHO_T=
476
case `echo -n x` in
477
-n*)
478
  case `echo 'x\c'` in
479
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480
  *)   ECHO_C='\c';;
481
  esac;;
482
*)
483
  ECHO_N='-n';;
484
esac
485
 
486
if expr a : '\(a\)' >/dev/null 2>&1 &&
487
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488
  as_expr=expr
489
else
490
  as_expr=false
491
fi
492
 
493
rm -f conf$$ conf$$.exe conf$$.file
494
if test -d conf$$.dir; then
495
  rm -f conf$$.dir/conf$$.file
496
else
497
  rm -f conf$$.dir
498
  mkdir conf$$.dir
499
fi
500
echo >conf$$.file
501
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
  as_ln_s='ln -s'
503
  # ... but there are two gotchas:
504
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506
  # In both cases, we have to default to `cp -p'.
507
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
    as_ln_s='cp -p'
509
elif ln conf$$.file conf$$ 2>/dev/null; then
510
  as_ln_s=ln
511
else
512
  as_ln_s='cp -p'
513
fi
514
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515
rmdir conf$$.dir 2>/dev/null
516
 
517
if mkdir -p . 2>/dev/null; then
518
  as_mkdir_p=:
519
else
520
  test -d ./-p && rmdir ./-p
521
  as_mkdir_p=false
522
fi
523
 
524
if test -x / >/dev/null 2>&1; then
525
  as_test_x='test -x'
526
else
527
  if ls -dL / >/dev/null 2>&1; then
528
    as_ls_L_option=L
529
  else
530
    as_ls_L_option=
531
  fi
532
  as_test_x='
533
    eval sh -c '\''
534
      if test -d "$1"; then
535
        test -d "$1/.";
536
      else
537
        case $1 in
538
        -*)set "./$1";;
539
        esac;
540
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541
        ???[sx]*):;;*)false;;esac;fi
542
    '\'' sh
543
  '
544
fi
545
as_executable_p=$as_test_x
546
 
547
# Sed expression to map a string onto a valid CPP name.
548
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
 
550
# Sed expression to map a string onto a valid variable name.
551
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
 
553
 
554
 
555
 
556
# Check that we are running under the correct shell.
557
SHELL=${CONFIG_SHELL-/bin/sh}
558
 
559
case X$ECHO in
560
X*--fallback-echo)
561
  # Remove one level of quotation (which was required for Make).
562
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563
  ;;
564
esac
565
 
566
echo=${ECHO-echo}
567
if test "X$1" = X--no-reexec; then
568
  # Discard the --no-reexec flag, and continue.
569
  shift
570
elif test "X$1" = X--fallback-echo; then
571
  # Avoid inline document here, it may be left over
572
  :
573
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574
  # Yippee, $echo works!
575
  :
576
else
577
  # Restart under the correct shell.
578
  exec $SHELL "$0" --no-reexec ${1+"$@"}
579
fi
580
 
581
if test "X$1" = X--fallback-echo; then
582
  # used as fallback echo
583
  shift
584
  cat <
585
$*
586
EOF
587
  exit 0
588
fi
589
 
590
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
# if CDPATH is set.
592
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
 
594
if test -z "$ECHO"; then
595
if test "X${echo_test_string+set}" != Xset; then
596
# find a string as large as possible, as long as the shell can cope with it
597
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600
       echo_test_string=`eval $cmd` &&
601
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602
    then
603
      break
604
    fi
605
  done
606
fi
607
 
608
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610
   test "X$echo_testing_string" = "X$echo_test_string"; then
611
  :
612
else
613
  # The Solaris, AIX, and Digital Unix default echo programs unquote
614
  # backslashes.  This makes it impossible to quote backslashes using
615
  #   echo "$something" | sed 's/\\/\\\\/g'
616
  #
617
  # So, first we look for a working echo in the user's PATH.
618
 
619
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620
  for dir in $PATH /usr/ucb; do
621
    IFS="$lt_save_ifs"
622
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625
       test "X$echo_testing_string" = "X$echo_test_string"; then
626
      echo="$dir/echo"
627
      break
628
    fi
629
  done
630
  IFS="$lt_save_ifs"
631
 
632
  if test "X$echo" = Xecho; then
633
    # We didn't find a better echo, so look for alternatives.
634
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636
       test "X$echo_testing_string" = "X$echo_test_string"; then
637
      # This shell has a builtin print -r that does the trick.
638
      echo='print -r'
639
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640
         test "X$CONFIG_SHELL" != X/bin/ksh; then
641
      # If we have ksh, try running configure again with it.
642
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643
      export ORIGINAL_CONFIG_SHELL
644
      CONFIG_SHELL=/bin/ksh
645
      export CONFIG_SHELL
646
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
    else
648
      # Try using printf.
649
      echo='printf %s\n'
650
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652
         test "X$echo_testing_string" = "X$echo_test_string"; then
653
        # Cool, printf works
654
        :
655
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656
           test "X$echo_testing_string" = 'X\t' &&
657
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658
           test "X$echo_testing_string" = "X$echo_test_string"; then
659
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
        export CONFIG_SHELL
661
        SHELL="$CONFIG_SHELL"
662
        export SHELL
663
        echo="$CONFIG_SHELL $0 --fallback-echo"
664
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665
           test "X$echo_testing_string" = 'X\t' &&
666
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667
           test "X$echo_testing_string" = "X$echo_test_string"; then
668
        echo="$CONFIG_SHELL $0 --fallback-echo"
669
      else
670
        # maybe with a smaller string...
671
        prev=:
672
 
673
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675
          then
676
            break
677
          fi
678
          prev="$cmd"
679
        done
680
 
681
        if test "$prev" != 'sed 50q "$0"'; then
682
          echo_test_string=`eval $prev`
683
          export echo_test_string
684
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
        else
686
          # Oops.  We lost completely, so just stick with echo.
687
          echo=echo
688
        fi
689
      fi
690
    fi
691
  fi
692
fi
693
fi
694
 
695
# Copy echo and quote the copy suitably for passing to libtool from
696
# the Makefile, instead of quoting the original, which is used later.
697
ECHO=$echo
698
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700
fi
701
 
702
 
703
 
704
 
705
tagnames=${tagnames+${tagnames},}CXX
706
 
707
tagnames=${tagnames+${tagnames},}F77
708
 
709
exec 7<&0 &1
710
 
711
# Name of the host.
712
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713
# so uname gets run too.
714
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
 
716
#
717
# Initializations.
718
#
719
ac_default_prefix=/usr/local
720
ac_clean_files=
721
ac_config_libobj_dir=.
722
LIB@&t@OBJS=
723
cross_compiling=no
724
subdirs=
725
MFLAGS=
726
MAKEFLAGS=
727
SHELL=${CONFIG_SHELL-/bin/sh}
728
 
729
# Identity of this package.
730
PACKAGE_NAME='or1ksim'
731
PACKAGE_TARNAME='or1ksim'
732
PACKAGE_VERSION='0.3.0'
733
PACKAGE_STRING='or1ksim 0.3.0'
734
PACKAGE_BUGREPORT='openrisc@opencores.org'
735
 
736
ac_unique_file="cpu/or32/execute.c"
737
# Factoring default headers for most tests.
738
ac_includes_default="\
739
#include 
740
#ifdef HAVE_SYS_TYPES_H
741
# include 
742
#endif
743
#ifdef HAVE_SYS_STAT_H
744
# include 
745
#endif
746
#ifdef STDC_HEADERS
747
# include 
748
# include 
749
#else
750
# ifdef HAVE_STDLIB_H
751
#  include 
752
# endif
753
#endif
754
#ifdef HAVE_STRING_H
755
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756
#  include 
757
# endif
758
# include 
759
#endif
760
#ifdef HAVE_STRINGS_H
761
# include 
762
#endif
763
#ifdef HAVE_INTTYPES_H
764
# include 
765
#endif
766
#ifdef HAVE_STDINT_H
767
# include 
768
#endif
769
#ifdef HAVE_UNISTD_H
770
# include 
771
#endif"
772
 
773
ac_subst_vars='SHELL
774
PATH_SEPARATOR
775
PACKAGE_NAME
776
PACKAGE_TARNAME
777
PACKAGE_VERSION
778
PACKAGE_STRING
779
PACKAGE_BUGREPORT
780
exec_prefix
781
prefix
782
program_transform_name
783
bindir
784
sbindir
785
libexecdir
786
datarootdir
787
datadir
788
sysconfdir
789
sharedstatedir
790
localstatedir
791
includedir
792
oldincludedir
793
docdir
794
infodir
795
htmldir
796
dvidir
797
pdfdir
798
psdir
799
libdir
800
localedir
801
mandir
802
DEFS
803
ECHO_C
804
ECHO_N
805
ECHO_T
806
LIBS
807
build_alias
808
host_alias
809
target_alias
810
build
811
build_cpu
812
build_vendor
813
build_os
814
host
815
host_cpu
816
host_vendor
817
host_os
818
target
819
target_cpu
820
target_vendor
821
target_os
822
CC
823
CFLAGS
824
LDFLAGS
825
CPPFLAGS
826
ac_ct_CC
827
EXEEXT
828
OBJEXT
829
SED
830
GREP
831
EGREP
832
LN_S
833
ECHO
834
AR
835
RANLIB
836
STRIP
837
CPP
838
CXX
839
CXXFLAGS
840
ac_ct_CXX
841
CXXCPP
842
F77
843
FFLAGS
844
ac_ct_F77
845
LIBTOOL
846
INSTALL_PROGRAM
847
INSTALL_SCRIPT
848
INSTALL_DATA
849
am__isrc
850
CYGPATH_W
851
PACKAGE
852
VERSION
853
ACLOCAL
854
AUTOCONF
855
AUTOMAKE
856
AUTOHEADER
857
MAKEINFO
858
install_sh
859
INSTALL_STRIP_PROGRAM
860
mkdir_p
861
AWK
862
SET_MAKE
863
am__leading_dot
864
AMTAR
865
am__tar
866
am__untar
867
DEPDIR
868
am__include
869
am__quote
870
AMDEP_TRUE
871
AMDEP_FALSE
872
AMDEPBACKSLASH
873
CCDEPMODE
874
am__fastdepCC_TRUE
875
am__fastdepCC_FALSE
876
CXXDEPMODE
877
am__fastdepCXX_TRUE
878
am__fastdepCXX_FALSE
879
CPU_ARCH
880
MAKE_SHELL
881 60 jeremybenn
LIB@&t@OBJS
882
POW_LIB
883
USE_SYS_GETOPTLONG_TRUE
884
USE_SYS_GETOPTLONG_FALSE
885
USE_ARGREX_TRUE
886
USE_ARGREX_FALSE
887
USE_ARGDATE_TRUE
888
USE_ARGDATE_FALSE
889
DEBUGFLAGS
890 19 jeremybenn
GENERATE_NEEDED_TRUE
891
GENERATE_NEEDED_FALSE
892
DYNAMIC_EXECUTION_TRUE
893
DYNAMIC_EXECUTION_FALSE
894
BUILD_DIR
895
LOCAL_CFLAGS
896
LOCAL_LDFLAGS
897
LOCAL_DEFS
898
ARFLAGS
899
SUMVERSION
900
TERMCAP_LIB
901
INCLUDES
902
LTLIBOBJS'
903
ac_subst_files=''
904
      ac_precious_vars='build_alias
905
host_alias
906
target_alias
907
CC
908
CFLAGS
909
LDFLAGS
910
LIBS
911
CPPFLAGS
912
CPP
913
CXX
914
CXXFLAGS
915
CCC
916
CXXCPP
917
F77
918
FFLAGS'
919
 
920
 
921
# Initialize some variables set by options.
922
ac_init_help=
923
ac_init_version=false
924
# The variables have the same names as the options, with
925
# dashes changed to underlines.
926
cache_file=/dev/null
927
exec_prefix=NONE
928
no_create=
929
no_recursion=
930
prefix=NONE
931
program_prefix=NONE
932
program_suffix=NONE
933
program_transform_name=s,x,x,
934
silent=
935
site=
936
srcdir=
937
verbose=
938
x_includes=NONE
939
x_libraries=NONE
940
 
941
# Installation directory options.
942
# These are left unexpanded so users can "make install exec_prefix=/foo"
943
# and all the variables that are supposed to be based on exec_prefix
944
# by default will actually change.
945
# Use braces instead of parens because sh, perl, etc. also accept them.
946
# (The list follows the same order as the GNU Coding Standards.)
947
bindir='${exec_prefix}/bin'
948
sbindir='${exec_prefix}/sbin'
949
libexecdir='${exec_prefix}/libexec'
950
datarootdir='${prefix}/share'
951
datadir='${datarootdir}'
952
sysconfdir='${prefix}/etc'
953
sharedstatedir='${prefix}/com'
954
localstatedir='${prefix}/var'
955
includedir='${prefix}/include'
956
oldincludedir='/usr/include'
957
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958
infodir='${datarootdir}/info'
959
htmldir='${docdir}'
960
dvidir='${docdir}'
961
pdfdir='${docdir}'
962
psdir='${docdir}'
963
libdir='${exec_prefix}/lib'
964
localedir='${datarootdir}/locale'
965
mandir='${datarootdir}/man'
966
 
967
ac_prev=
968
ac_dashdash=
969
for ac_option
970
do
971
  # If the previous option needs an argument, assign it.
972
  if test -n "$ac_prev"; then
973
    eval $ac_prev=\$ac_option
974
    ac_prev=
975
    continue
976
  fi
977
 
978
  case $ac_option in
979
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980
  *)    ac_optarg=yes ;;
981
  esac
982
 
983
  # Accept the important Cygnus configure options, so we can diagnose typos.
984
 
985
  case $ac_dashdash$ac_option in
986
  --)
987
    ac_dashdash=yes ;;
988
 
989
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
990
    ac_prev=bindir ;;
991
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992
    bindir=$ac_optarg ;;
993
 
994
  -build | --build | --buil | --bui | --bu)
995
    ac_prev=build_alias ;;
996
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997
    build_alias=$ac_optarg ;;
998
 
999
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1000
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001
    ac_prev=cache_file ;;
1002
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004
    cache_file=$ac_optarg ;;
1005
 
1006
  --config-cache | -C)
1007
    cache_file=config.cache ;;
1008
 
1009
  -datadir | --datadir | --datadi | --datad)
1010
    ac_prev=datadir ;;
1011
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012
    datadir=$ac_optarg ;;
1013
 
1014
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015
  | --dataroo | --dataro | --datar)
1016
    ac_prev=datarootdir ;;
1017
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019
    datarootdir=$ac_optarg ;;
1020
 
1021
  -disable-* | --disable-*)
1022
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023
    # Reject names that are not valid shell variable names.
1024
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026
   { (exit 1); exit 1; }; }
1027
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028
    eval enable_$ac_feature=no ;;
1029
 
1030
  -docdir | --docdir | --docdi | --doc | --do)
1031
    ac_prev=docdir ;;
1032
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033
    docdir=$ac_optarg ;;
1034
 
1035
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036
    ac_prev=dvidir ;;
1037
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038
    dvidir=$ac_optarg ;;
1039
 
1040
  -enable-* | --enable-*)
1041
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042
    # Reject names that are not valid shell variable names.
1043
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045
   { (exit 1); exit 1; }; }
1046
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047
    eval enable_$ac_feature=\$ac_optarg ;;
1048
 
1049
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051
  | --exec | --exe | --ex)
1052
    ac_prev=exec_prefix ;;
1053
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055
  | --exec=* | --exe=* | --ex=*)
1056
    exec_prefix=$ac_optarg ;;
1057
 
1058
  -gas | --gas | --ga | --g)
1059
    # Obsolete; use --with-gas.
1060
    with_gas=yes ;;
1061
 
1062
  -help | --help | --hel | --he | -h)
1063
    ac_init_help=long ;;
1064
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065
    ac_init_help=recursive ;;
1066
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067
    ac_init_help=short ;;
1068
 
1069
  -host | --host | --hos | --ho)
1070
    ac_prev=host_alias ;;
1071
  -host=* | --host=* | --hos=* | --ho=*)
1072
    host_alias=$ac_optarg ;;
1073
 
1074
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075
    ac_prev=htmldir ;;
1076
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077
  | --ht=*)
1078
    htmldir=$ac_optarg ;;
1079
 
1080
  -includedir | --includedir | --includedi | --included | --include \
1081
  | --includ | --inclu | --incl | --inc)
1082
    ac_prev=includedir ;;
1083
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1085
    includedir=$ac_optarg ;;
1086
 
1087
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1088
    ac_prev=infodir ;;
1089
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090
    infodir=$ac_optarg ;;
1091
 
1092
  -libdir | --libdir | --libdi | --libd)
1093
    ac_prev=libdir ;;
1094
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095
    libdir=$ac_optarg ;;
1096
 
1097
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098
  | --libexe | --libex | --libe)
1099
    ac_prev=libexecdir ;;
1100
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101
  | --libexe=* | --libex=* | --libe=*)
1102
    libexecdir=$ac_optarg ;;
1103
 
1104
  -localedir | --localedir | --localedi | --localed | --locale)
1105
    ac_prev=localedir ;;
1106
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107
    localedir=$ac_optarg ;;
1108
 
1109
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1110
  | --localstate | --localstat | --localsta | --localst | --locals)
1111
    ac_prev=localstatedir ;;
1112
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114
    localstatedir=$ac_optarg ;;
1115
 
1116
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117
    ac_prev=mandir ;;
1118
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119
    mandir=$ac_optarg ;;
1120
 
1121
  -nfp | --nfp | --nf)
1122
    # Obsolete; use --without-fp.
1123
    with_fp=no ;;
1124
 
1125
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126
  | --no-cr | --no-c | -n)
1127
    no_create=yes ;;
1128
 
1129
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131
    no_recursion=yes ;;
1132
 
1133
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135
  | --oldin | --oldi | --old | --ol | --o)
1136
    ac_prev=oldincludedir ;;
1137
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140
    oldincludedir=$ac_optarg ;;
1141
 
1142
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143
    ac_prev=prefix ;;
1144
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145
    prefix=$ac_optarg ;;
1146
 
1147
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148
  | --program-pre | --program-pr | --program-p)
1149
    ac_prev=program_prefix ;;
1150
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152
    program_prefix=$ac_optarg ;;
1153
 
1154
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155
  | --program-suf | --program-su | --program-s)
1156
    ac_prev=program_suffix ;;
1157
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159
    program_suffix=$ac_optarg ;;
1160
 
1161
  -program-transform-name | --program-transform-name \
1162
  | --program-transform-nam | --program-transform-na \
1163
  | --program-transform-n | --program-transform- \
1164
  | --program-transform | --program-transfor \
1165
  | --program-transfo | --program-transf \
1166
  | --program-trans | --program-tran \
1167
  | --progr-tra | --program-tr | --program-t)
1168
    ac_prev=program_transform_name ;;
1169
  -program-transform-name=* | --program-transform-name=* \
1170
  | --program-transform-nam=* | --program-transform-na=* \
1171
  | --program-transform-n=* | --program-transform-=* \
1172
  | --program-transform=* | --program-transfor=* \
1173
  | --program-transfo=* | --program-transf=* \
1174
  | --program-trans=* | --program-tran=* \
1175
  | --progr-tra=* | --program-tr=* | --program-t=*)
1176
    program_transform_name=$ac_optarg ;;
1177
 
1178
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179
    ac_prev=pdfdir ;;
1180
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181
    pdfdir=$ac_optarg ;;
1182
 
1183
  -psdir | --psdir | --psdi | --psd | --ps)
1184
    ac_prev=psdir ;;
1185
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186
    psdir=$ac_optarg ;;
1187
 
1188
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189
  | -silent | --silent | --silen | --sile | --sil)
1190
    silent=yes ;;
1191
 
1192
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193
    ac_prev=sbindir ;;
1194
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195
  | --sbi=* | --sb=*)
1196
    sbindir=$ac_optarg ;;
1197
 
1198
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200
  | --sharedst | --shareds | --shared | --share | --shar \
1201
  | --sha | --sh)
1202
    ac_prev=sharedstatedir ;;
1203
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206
  | --sha=* | --sh=*)
1207
    sharedstatedir=$ac_optarg ;;
1208
 
1209
  -site | --site | --sit)
1210
    ac_prev=site ;;
1211
  -site=* | --site=* | --sit=*)
1212
    site=$ac_optarg ;;
1213
 
1214
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215
    ac_prev=srcdir ;;
1216
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217
    srcdir=$ac_optarg ;;
1218
 
1219
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220
  | --syscon | --sysco | --sysc | --sys | --sy)
1221
    ac_prev=sysconfdir ;;
1222
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224
    sysconfdir=$ac_optarg ;;
1225
 
1226
  -target | --target | --targe | --targ | --tar | --ta | --t)
1227
    ac_prev=target_alias ;;
1228
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229
    target_alias=$ac_optarg ;;
1230
 
1231
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232
    verbose=yes ;;
1233
 
1234
  -version | --version | --versio | --versi | --vers | -V)
1235
    ac_init_version=: ;;
1236
 
1237
  -with-* | --with-*)
1238
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239
    # Reject names that are not valid shell variable names.
1240
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1242
   { (exit 1); exit 1; }; }
1243
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244
    eval with_$ac_package=\$ac_optarg ;;
1245
 
1246
  -without-* | --without-*)
1247
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248
    # Reject names that are not valid shell variable names.
1249
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251
   { (exit 1); exit 1; }; }
1252
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253
    eval with_$ac_package=no ;;
1254
 
1255
  --x)
1256
    # Obsolete; use --with-x.
1257
    with_x=yes ;;
1258
 
1259
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260
  | --x-incl | --x-inc | --x-in | --x-i)
1261
    ac_prev=x_includes ;;
1262
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264
    x_includes=$ac_optarg ;;
1265
 
1266
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268
    ac_prev=x_libraries ;;
1269
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271
    x_libraries=$ac_optarg ;;
1272
 
1273
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1274
Try \`$0 --help' for more information." >&2
1275
   { (exit 1); exit 1; }; }
1276
    ;;
1277
 
1278
  *=*)
1279
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280
    # Reject names that are not valid shell variable names.
1281
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283
   { (exit 1); exit 1; }; }
1284
    eval $ac_envvar=\$ac_optarg
1285
    export $ac_envvar ;;
1286
 
1287
  *)
1288
    # FIXME: should be removed in autoconf 3.0.
1289
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293
    ;;
1294
 
1295
  esac
1296
done
1297
 
1298
if test -n "$ac_prev"; then
1299
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300
  { echo "$as_me: error: missing argument to $ac_option" >&2
1301
   { (exit 1); exit 1; }; }
1302
fi
1303
 
1304
# Be sure to have absolute directory names.
1305
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306
                datadir sysconfdir sharedstatedir localstatedir includedir \
1307
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308
                libdir localedir mandir
1309
do
1310
  eval ac_val=\$$ac_var
1311
  case $ac_val in
1312
    [\\/$]* | ?:[\\/]* )  continue;;
1313
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314
  esac
1315
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316
   { (exit 1); exit 1; }; }
1317
done
1318
 
1319
# There might be people who depend on the old broken behavior: `$host'
1320
# used to hold the argument of --host etc.
1321
# FIXME: To remove some day.
1322
build=$build_alias
1323
host=$host_alias
1324
target=$target_alias
1325
 
1326
# FIXME: To remove some day.
1327
if test "x$host_alias" != x; then
1328
  if test "x$build_alias" = x; then
1329
    cross_compiling=maybe
1330
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331
    If a cross compiler is detected then cross compile mode will be used." >&2
1332
  elif test "x$build_alias" != "x$host_alias"; then
1333
    cross_compiling=yes
1334
  fi
1335
fi
1336
 
1337
ac_tool_prefix=
1338
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
 
1340
test "$silent" = yes && exec 6>/dev/null
1341
 
1342
 
1343
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344
ac_ls_di=`ls -di .` &&
1345
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346
  { echo "$as_me: error: Working directory cannot be determined" >&2
1347
   { (exit 1); exit 1; }; }
1348
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1350
   { (exit 1); exit 1; }; }
1351
 
1352
 
1353
# Find the source files, if location was not specified.
1354
if test -z "$srcdir"; then
1355
  ac_srcdir_defaulted=yes
1356
  # Try the directory containing this script, then the parent directory.
1357
  ac_confdir=`$as_dirname -- "$0" ||
1358
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359
         X"$0" : 'X\(//\)[^/]' \| \
1360
         X"$0" : 'X\(//\)$' \| \
1361
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362
echo X"$0" |
1363
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364
            s//\1/
1365
            q
1366
          }
1367
          /^X\(\/\/\)[^/].*/{
1368
            s//\1/
1369
            q
1370
          }
1371
          /^X\(\/\/\)$/{
1372
            s//\1/
1373
            q
1374
          }
1375
          /^X\(\/\).*/{
1376
            s//\1/
1377
            q
1378
          }
1379
          s/.*/./; q'`
1380
  srcdir=$ac_confdir
1381
  if test ! -r "$srcdir/$ac_unique_file"; then
1382
    srcdir=..
1383
  fi
1384
else
1385
  ac_srcdir_defaulted=no
1386
fi
1387
if test ! -r "$srcdir/$ac_unique_file"; then
1388
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390
   { (exit 1); exit 1; }; }
1391
fi
1392
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393
ac_abs_confdir=`(
1394
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395
   { (exit 1); exit 1; }; }
1396
        pwd)`
1397
# When building in place, set srcdir=.
1398
if test "$ac_abs_confdir" = "$ac_pwd"; then
1399
  srcdir=.
1400
fi
1401
# Remove unnecessary trailing slashes from srcdir.
1402
# Double slashes in file names in object file debugging info
1403
# mess up M-x gdb in Emacs.
1404
case $srcdir in
1405
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406
esac
1407
for ac_var in $ac_precious_vars; do
1408
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409
  eval ac_env_${ac_var}_value=\$${ac_var}
1410
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412
done
1413
 
1414
#
1415
# Report the --help message.
1416
#
1417
if test "$ac_init_help" = "long"; then
1418
  # Omit some internal or obsolete options to make the list less imposing.
1419
  # This message is too long to be a string in the A/UX 3.1 sh.
1420
  cat <<_ACEOF
1421
\`configure' configures or1ksim 0.3.0 to adapt to many kinds of systems.
1422
 
1423
Usage: $0 [OPTION]... [VAR=VALUE]...
1424
 
1425
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426
VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
 
1428
Defaults for the options are specified in brackets.
1429
 
1430
Configuration:
1431
  -h, --help              display this help and exit
1432
      --help=short        display options specific to this package
1433
      --help=recursive    display the short help of all the included packages
1434
  -V, --version           display version information and exit
1435
  -q, --quiet, --silent   do not print \`checking...' messages
1436
      --cache-file=FILE   cache test results in FILE [disabled]
1437
  -C, --config-cache      alias for \`--cache-file=config.cache'
1438
  -n, --no-create         do not create output files
1439
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
 
1441
Installation directories:
1442
  --prefix=PREFIX         install architecture-independent files in PREFIX
1443
                          [$ac_default_prefix]
1444
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445
                          [PREFIX]
1446
 
1447
By default, \`make install' will install all the files in
1448
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450
for instance \`--prefix=\$HOME'.
1451
 
1452
For better control, use the options below.
1453
 
1454
Fine tuning of the installation directories:
1455
  --bindir=DIR           user executables [EPREFIX/bin]
1456
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1457
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1458
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1459
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1460
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1461
  --libdir=DIR           object code libraries [EPREFIX/lib]
1462
  --includedir=DIR       C header files [PREFIX/include]
1463
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1464
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1465
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1466
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1467
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1468
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1469
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/or1ksim@:>@
1470
  --htmldir=DIR          html documentation [DOCDIR]
1471
  --dvidir=DIR           dvi documentation [DOCDIR]
1472
  --pdfdir=DIR           pdf documentation [DOCDIR]
1473
  --psdir=DIR            ps documentation [DOCDIR]
1474
_ACEOF
1475
 
1476
  cat <<\_ACEOF
1477
 
1478
Program names:
1479
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1480
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1481
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
 
1483
System types:
1484
  --build=BUILD     configure for building on BUILD [guessed]
1485
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486
  --target=TARGET   configure for building compilers for TARGET [HOST]
1487
_ACEOF
1488
fi
1489
 
1490
if test -n "$ac_init_help"; then
1491
  case $ac_init_help in
1492
     short | recursive ) echo "Configuration of or1ksim 0.3.0:";;
1493
   esac
1494
  cat <<\_ACEOF
1495
 
1496
Optional Features:
1497
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1500
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1501
  --enable-fast-install@<:@=PKGS@:>@
1502
                          optimize for fast installation @<:@default=yes@:>@
1503
  --disable-libtool-lock  avoid locking (might break parallel builds)
1504
  --disable-dependency-tracking  speeds up one-time build
1505
  --enable-dependency-tracking   do not reject slow dependency extractors
1506
  --enable-profiling      generate profiling code
1507
  --enable-execution Execution style to use (simple/complex/dynamic)
1508
  --enable-ethphy    compiles sim with ethernet phy support
1509
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1510
  --enable-ov-flag      Whether instructions set overflow flag.
1511
  --enable-arith-flag      Whether arithmethic instructions setflag.
1512 60 jeremybenn
  --enable-debug          enable library debugging symbols
1513 19 jeremybenn
 
1514
Optional Packages:
1515
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1518
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1519
                          both@:>@
1520
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1521
 
1522
Some influential environment variables:
1523
  CC          C compiler command
1524
  CFLAGS      C compiler flags
1525
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1526
              nonstandard directory 
1527
  LIBS        libraries to pass to the linker, e.g. -l
1528
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1529
              you have headers in a nonstandard directory 
1530
  CPP         C preprocessor
1531
  CXX         C++ compiler command
1532
  CXXFLAGS    C++ compiler flags
1533
  CXXCPP      C++ preprocessor
1534
  F77         Fortran 77 compiler command
1535
  FFLAGS      Fortran 77 compiler flags
1536
 
1537
Use these variables to override the choices made by `configure' or to help
1538
it to find libraries and programs with nonstandard names/locations.
1539
 
1540
Report bugs to .
1541
_ACEOF
1542
ac_status=$?
1543
fi
1544
 
1545
if test "$ac_init_help" = "recursive"; then
1546
  # If there are subdirs, report their specific --help.
1547
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548
    test -d "$ac_dir" || continue
1549
    ac_builddir=.
1550
 
1551
case "$ac_dir" in
1552
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553
*)
1554
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1555
  # A ".." for each directory in $ac_dir_suffix.
1556
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1557
  case $ac_top_builddir_sub in
1558
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560
  esac ;;
1561
esac
1562
ac_abs_top_builddir=$ac_pwd
1563
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564
# for backward compatibility:
1565
ac_top_builddir=$ac_top_build_prefix
1566
 
1567
case $srcdir in
1568
  .)  # We are building in place.
1569
    ac_srcdir=.
1570
    ac_top_srcdir=$ac_top_builddir_sub
1571
    ac_abs_top_srcdir=$ac_pwd ;;
1572
  [\\/]* | ?:[\\/]* )  # Absolute name.
1573
    ac_srcdir=$srcdir$ac_dir_suffix;
1574
    ac_top_srcdir=$srcdir
1575
    ac_abs_top_srcdir=$srcdir ;;
1576
  *) # Relative name.
1577
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1579
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580
esac
1581
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
 
1583
    cd "$ac_dir" || { ac_status=$?; continue; }
1584
    # Check for guested configure.
1585
    if test -f "$ac_srcdir/configure.gnu"; then
1586
      echo &&
1587
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588
    elif test -f "$ac_srcdir/configure"; then
1589
      echo &&
1590
      $SHELL "$ac_srcdir/configure" --help=recursive
1591
    else
1592
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593
    fi || ac_status=$?
1594
    cd "$ac_pwd" || { ac_status=$?; break; }
1595
  done
1596
fi
1597
 
1598
test -n "$ac_init_help" && exit $ac_status
1599
if $ac_init_version; then
1600
  cat <<\_ACEOF
1601
or1ksim configure 0.3.0
1602
generated by GNU Autoconf 2.61
1603
 
1604
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1605
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1606
This configure script is free software; the Free Software Foundation
1607
gives unlimited permission to copy, distribute and modify it.
1608
_ACEOF
1609
  exit
1610
fi
1611
cat >config.log <<_ACEOF
1612
This file contains any messages produced by compilers while
1613
running configure, to aid debugging if configure makes a mistake.
1614
 
1615
It was created by or1ksim $as_me 0.3.0, which was
1616
generated by GNU Autoconf 2.61.  Invocation command line was
1617
 
1618
  $ $0 $@
1619
 
1620
_ACEOF
1621
exec 5>>config.log
1622
{
1623
cat <<_ASUNAME
1624
@%:@@%:@ --------- @%:@@%:@
1625
@%:@@%:@ Platform. @%:@@%:@
1626
@%:@@%:@ --------- @%:@@%:@
1627
 
1628
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
 
1634
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1636
 
1637
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1638
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1639
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1641
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1642
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1643
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1644
 
1645
_ASUNAME
1646
 
1647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648
for as_dir in $PATH
1649
do
1650
  IFS=$as_save_IFS
1651
  test -z "$as_dir" && as_dir=.
1652
  echo "PATH: $as_dir"
1653
done
1654
IFS=$as_save_IFS
1655
 
1656
} >&5
1657
 
1658
cat >&5 <<_ACEOF
1659
 
1660
 
1661
@%:@@%:@ ----------- @%:@@%:@
1662
@%:@@%:@ Core tests. @%:@@%:@
1663
@%:@@%:@ ----------- @%:@@%:@
1664
 
1665
_ACEOF
1666
 
1667
 
1668
# Keep a trace of the command line.
1669
# Strip out --no-create and --no-recursion so they do not pile up.
1670
# Strip out --silent because we don't want to record it for future runs.
1671
# Also quote any args containing shell meta-characters.
1672
# Make two passes to allow for proper duplicate-argument suppression.
1673
ac_configure_args=
1674
ac_configure_args0=
1675
ac_configure_args1=
1676
ac_must_keep_next=false
1677
for ac_pass in 1 2
1678
do
1679
  for ac_arg
1680
  do
1681
    case $ac_arg in
1682
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684
    | -silent | --silent | --silen | --sile | --sil)
1685
      continue ;;
1686
    *\'*)
1687
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688
    esac
1689
    case $ac_pass in
1690
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691
    2)
1692
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693
      if test $ac_must_keep_next = true; then
1694
        ac_must_keep_next=false # Got value, back to normal.
1695
      else
1696
        case $ac_arg in
1697
          *=* | --config-cache | -C | -disable-* | --disable-* \
1698
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700
          | -with-* | --with-* | -without-* | --without-* | --x)
1701
            case "$ac_configure_args0 " in
1702
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703
            esac
1704
            ;;
1705
          -* ) ac_must_keep_next=true ;;
1706
        esac
1707
      fi
1708
      ac_configure_args="$ac_configure_args '$ac_arg'"
1709
      ;;
1710
    esac
1711
  done
1712
done
1713
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715
 
1716
# When interrupted or exit'd, cleanup temporary files, and complete
1717
# config.log.  We remove comments because anyway the quotes in there
1718
# would cause problems or look ugly.
1719
# WARNING: Use '\'' to represent an apostrophe within the trap.
1720
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721
trap 'exit_status=$?
1722
  # Save into config.log some information that might help in debugging.
1723
  {
1724
    echo
1725
 
1726
    cat <<\_ASBOX
1727
@%:@@%:@ ---------------- @%:@@%:@
1728
@%:@@%:@ Cache variables. @%:@@%:@
1729
@%:@@%:@ ---------------- @%:@@%:@
1730
_ASBOX
1731
    echo
1732
    # The following way of writing the cache mishandles newlines in values,
1733
(
1734
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735
    eval ac_val=\$$ac_var
1736
    case $ac_val in #(
1737
    *${as_nl}*)
1738
      case $ac_var in #(
1739
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741
      esac
1742
      case $ac_var in #(
1743
      _ | IFS | as_nl) ;; #(
1744
      *) $as_unset $ac_var ;;
1745
      esac ;;
1746
    esac
1747
  done
1748
  (set) 2>&1 |
1749
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750
    *${as_nl}ac_space=\ *)
1751
      sed -n \
1752
        "s/'\''/'\''\\\\'\'''\''/g;
1753
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754
      ;; #(
1755
    *)
1756
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757
      ;;
1758
    esac |
1759
    sort
1760
)
1761
    echo
1762
 
1763
    cat <<\_ASBOX
1764
@%:@@%:@ ----------------- @%:@@%:@
1765
@%:@@%:@ Output variables. @%:@@%:@
1766
@%:@@%:@ ----------------- @%:@@%:@
1767
_ASBOX
1768
    echo
1769
    for ac_var in $ac_subst_vars
1770
    do
1771
      eval ac_val=\$$ac_var
1772
      case $ac_val in
1773
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774
      esac
1775
      echo "$ac_var='\''$ac_val'\''"
1776
    done | sort
1777
    echo
1778
 
1779
    if test -n "$ac_subst_files"; then
1780
      cat <<\_ASBOX
1781
@%:@@%:@ ------------------- @%:@@%:@
1782
@%:@@%:@ File substitutions. @%:@@%:@
1783
@%:@@%:@ ------------------- @%:@@%:@
1784
_ASBOX
1785
      echo
1786
      for ac_var in $ac_subst_files
1787
      do
1788
        eval ac_val=\$$ac_var
1789
        case $ac_val in
1790
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791
        esac
1792
        echo "$ac_var='\''$ac_val'\''"
1793
      done | sort
1794
      echo
1795
    fi
1796
 
1797
    if test -s confdefs.h; then
1798
      cat <<\_ASBOX
1799
@%:@@%:@ ----------- @%:@@%:@
1800
@%:@@%:@ confdefs.h. @%:@@%:@
1801
@%:@@%:@ ----------- @%:@@%:@
1802
_ASBOX
1803
      echo
1804
      cat confdefs.h
1805
      echo
1806
    fi
1807
    test "$ac_signal" != 0 &&
1808
      echo "$as_me: caught signal $ac_signal"
1809
    echo "$as_me: exit $exit_status"
1810
  } >&5
1811
  rm -f core *.core core.conftest.* &&
1812
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813
    exit $exit_status
1814
' 0
1815
for ac_signal in 1 2 13 15; do
1816
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817
done
1818
ac_signal=0
1819
 
1820
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1821
rm -f -r conftest* confdefs.h
1822
 
1823
# Predefined preprocessor variables.
1824
 
1825
cat >>confdefs.h <<_ACEOF
1826
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1827
_ACEOF
1828
 
1829
 
1830
cat >>confdefs.h <<_ACEOF
1831
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832
_ACEOF
1833
 
1834
 
1835
cat >>confdefs.h <<_ACEOF
1836
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1837
_ACEOF
1838
 
1839
 
1840
cat >>confdefs.h <<_ACEOF
1841
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1842
_ACEOF
1843
 
1844
 
1845
cat >>confdefs.h <<_ACEOF
1846
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847
_ACEOF
1848
 
1849
 
1850
# Let the site file select an alternate cache file if it wants to.
1851
# Prefer explicitly selected file to automatically selected ones.
1852
if test -n "$CONFIG_SITE"; then
1853
  set x "$CONFIG_SITE"
1854
elif test "x$prefix" != xNONE; then
1855
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856
else
1857
  set x "$ac_default_prefix/share/config.site" \
1858
        "$ac_default_prefix/etc/config.site"
1859
fi
1860
shift
1861
for ac_site_file
1862
do
1863
  if test -r "$ac_site_file"; then
1864
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865
echo "$as_me: loading site script $ac_site_file" >&6;}
1866
    sed 's/^/| /' "$ac_site_file" >&5
1867
    . "$ac_site_file"
1868
  fi
1869
done
1870
 
1871
if test -r "$cache_file"; then
1872
  # Some versions of bash will fail to source /dev/null (special
1873
  # files actually), so we avoid doing that.
1874
  if test -f "$cache_file"; then
1875
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876
echo "$as_me: loading cache $cache_file" >&6;}
1877
    case $cache_file in
1878
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879
      *)                      . "./$cache_file";;
1880
    esac
1881
  fi
1882
else
1883
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884
echo "$as_me: creating cache $cache_file" >&6;}
1885
  >$cache_file
1886
fi
1887
 
1888
# Check that the precious variables saved in the cache have kept the same
1889
# value.
1890
ac_cache_corrupted=false
1891
for ac_var in $ac_precious_vars; do
1892
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893
  eval ac_new_set=\$ac_env_${ac_var}_set
1894
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895
  eval ac_new_val=\$ac_env_${ac_var}_value
1896
  case $ac_old_set,$ac_new_set in
1897
    set,)
1898
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900
      ac_cache_corrupted=: ;;
1901
    ,set)
1902
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904
      ac_cache_corrupted=: ;;
1905
    ,);;
1906
    *)
1907
      if test "x$ac_old_val" != "x$ac_new_val"; then
1908
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1911
echo "$as_me:   former value:  $ac_old_val" >&2;}
1912
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1913
echo "$as_me:   current value: $ac_new_val" >&2;}
1914
        ac_cache_corrupted=:
1915
      fi;;
1916
  esac
1917
  # Pass precious variables to config.status.
1918
  if test "$ac_new_set" = set; then
1919
    case $ac_new_val in
1920
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921
    *) ac_arg=$ac_var=$ac_new_val ;;
1922
    esac
1923
    case " $ac_configure_args " in
1924
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1925
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926
    esac
1927
  fi
1928
done
1929
if $ac_cache_corrupted; then
1930
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934
   { (exit 1); exit 1; }; }
1935
fi
1936
 
1937
 
1938
 
1939
 
1940
 
1941
 
1942
 
1943
 
1944
 
1945
 
1946
 
1947
 
1948
 
1949
 
1950
 
1951
 
1952
 
1953
 
1954
 
1955
 
1956
 
1957
 
1958
 
1959
 
1960
 
1961
ac_ext=c
1962
ac_cpp='$CPP $CPPFLAGS'
1963
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
 
1967
 
1968
 
1969
ac_aux_dir=
1970
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1971
  if test -f "$ac_dir/install-sh"; then
1972
    ac_aux_dir=$ac_dir
1973
    ac_install_sh="$ac_aux_dir/install-sh -c"
1974
    break
1975
  elif test -f "$ac_dir/install.sh"; then
1976
    ac_aux_dir=$ac_dir
1977
    ac_install_sh="$ac_aux_dir/install.sh -c"
1978
    break
1979
  elif test -f "$ac_dir/shtool"; then
1980
    ac_aux_dir=$ac_dir
1981
    ac_install_sh="$ac_aux_dir/shtool install -c"
1982
    break
1983
  fi
1984
done
1985
if test -z "$ac_aux_dir"; then
1986
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1987
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1988
   { (exit 1); exit 1; }; }
1989
fi
1990
 
1991
# These three variables are undocumented and unsupported,
1992
# and are intended to be withdrawn in a future Autoconf release.
1993
# They can cause serious problems if a builder's source tree is in a directory
1994
# whose full name contains unusual characters.
1995
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1996
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1997
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1998
 
1999
 
2000
# Make sure we can run config.sub.
2001
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2002
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2003
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2004
   { (exit 1); exit 1; }; }
2005
 
2006
{ echo "$as_me:$LINENO: checking build system type" >&5
2007
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2008
if test "${ac_cv_build+set}" = set; then
2009
  echo $ECHO_N "(cached) $ECHO_C" >&6
2010
else
2011
  ac_build_alias=$build_alias
2012
test "x$ac_build_alias" = x &&
2013
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2014
test "x$ac_build_alias" = x &&
2015
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017
   { (exit 1); exit 1; }; }
2018
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2019
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2020
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2021
   { (exit 1); exit 1; }; }
2022
 
2023
fi
2024
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2025
echo "${ECHO_T}$ac_cv_build" >&6; }
2026
case $ac_cv_build in
2027
*-*-*) ;;
2028
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2029
echo "$as_me: error: invalid value of canonical build" >&2;}
2030
   { (exit 1); exit 1; }; };;
2031
esac
2032
build=$ac_cv_build
2033
ac_save_IFS=$IFS; IFS='-'
2034
set x $ac_cv_build
2035
shift
2036
build_cpu=$1
2037
build_vendor=$2
2038
shift; shift
2039
# Remember, the first character of IFS is used to create $*,
2040
# except with old shells:
2041
build_os=$*
2042
IFS=$ac_save_IFS
2043
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2044
 
2045
 
2046
{ echo "$as_me:$LINENO: checking host system type" >&5
2047
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2048
if test "${ac_cv_host+set}" = set; then
2049
  echo $ECHO_N "(cached) $ECHO_C" >&6
2050
else
2051
  if test "x$host_alias" = x; then
2052
  ac_cv_host=$ac_cv_build
2053
else
2054
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2055
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2056
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2057
   { (exit 1); exit 1; }; }
2058
fi
2059
 
2060
fi
2061
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2062
echo "${ECHO_T}$ac_cv_host" >&6; }
2063
case $ac_cv_host in
2064
*-*-*) ;;
2065
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2066
echo "$as_me: error: invalid value of canonical host" >&2;}
2067
   { (exit 1); exit 1; }; };;
2068
esac
2069
host=$ac_cv_host
2070
ac_save_IFS=$IFS; IFS='-'
2071
set x $ac_cv_host
2072
shift
2073
host_cpu=$1
2074
host_vendor=$2
2075
shift; shift
2076
# Remember, the first character of IFS is used to create $*,
2077
# except with old shells:
2078
host_os=$*
2079
IFS=$ac_save_IFS
2080
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2081
 
2082
 
2083
{ echo "$as_me:$LINENO: checking target system type" >&5
2084
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2085
if test "${ac_cv_target+set}" = set; then
2086
  echo $ECHO_N "(cached) $ECHO_C" >&6
2087
else
2088
  if test "x$target_alias" = x; then
2089
  ac_cv_target=$ac_cv_host
2090
else
2091
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2092
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2093
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2094
   { (exit 1); exit 1; }; }
2095
fi
2096
 
2097
fi
2098
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2099
echo "${ECHO_T}$ac_cv_target" >&6; }
2100
case $ac_cv_target in
2101
*-*-*) ;;
2102
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2103
echo "$as_me: error: invalid value of canonical target" >&2;}
2104
   { (exit 1); exit 1; }; };;
2105
esac
2106
target=$ac_cv_target
2107
ac_save_IFS=$IFS; IFS='-'
2108
set x $ac_cv_target
2109
shift
2110
target_cpu=$1
2111
target_vendor=$2
2112
shift; shift
2113
# Remember, the first character of IFS is used to create $*,
2114
# except with old shells:
2115
target_os=$*
2116
IFS=$ac_save_IFS
2117
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2118
 
2119
 
2120
# The aliases save the names the user supplied, while $host etc.
2121
# will get canonicalized.
2122
test -n "$target_alias" &&
2123
  test "$program_prefix$program_suffix$program_transform_name" = \
2124
    NONENONEs,x,x, &&
2125
  program_prefix=${target_alias}-
2126
# Check whether --enable-shared was given.
2127
if test "${enable_shared+set}" = set; then
2128
  enableval=$enable_shared; p=${PACKAGE-default}
2129
    case $enableval in
2130
    yes) enable_shared=yes ;;
2131
    no) enable_shared=no ;;
2132
    *)
2133
      enable_shared=no
2134
      # Look at the argument we got.  We use all the common list separators.
2135
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2136
      for pkg in $enableval; do
2137
        IFS="$lt_save_ifs"
2138
        if test "X$pkg" = "X$p"; then
2139
          enable_shared=yes
2140
        fi
2141
      done
2142
      IFS="$lt_save_ifs"
2143
      ;;
2144
    esac
2145
else
2146
  enable_shared=yes
2147
fi
2148
 
2149
 
2150
# Check whether --enable-static was given.
2151
if test "${enable_static+set}" = set; then
2152
  enableval=$enable_static; p=${PACKAGE-default}
2153
    case $enableval in
2154
    yes) enable_static=yes ;;
2155
    no) enable_static=no ;;
2156
    *)
2157
     enable_static=no
2158
      # Look at the argument we got.  We use all the common list separators.
2159
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2160
      for pkg in $enableval; do
2161
        IFS="$lt_save_ifs"
2162
        if test "X$pkg" = "X$p"; then
2163
          enable_static=yes
2164
        fi
2165
      done
2166
      IFS="$lt_save_ifs"
2167
      ;;
2168
    esac
2169
else
2170
  enable_static=yes
2171
fi
2172
 
2173
 
2174
# Check whether --enable-fast-install was given.
2175
if test "${enable_fast_install+set}" = set; then
2176
  enableval=$enable_fast_install; p=${PACKAGE-default}
2177
    case $enableval in
2178
    yes) enable_fast_install=yes ;;
2179
    no) enable_fast_install=no ;;
2180
    *)
2181
      enable_fast_install=no
2182
      # Look at the argument we got.  We use all the common list separators.
2183
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2184
      for pkg in $enableval; do
2185
        IFS="$lt_save_ifs"
2186
        if test "X$pkg" = "X$p"; then
2187
          enable_fast_install=yes
2188
        fi
2189
      done
2190
      IFS="$lt_save_ifs"
2191
      ;;
2192
    esac
2193
else
2194
  enable_fast_install=yes
2195
fi
2196
 
2197
 
2198
ac_ext=c
2199
ac_cpp='$CPP $CPPFLAGS'
2200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
if test -n "$ac_tool_prefix"; then
2204
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2205
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208
if test "${ac_cv_prog_CC+set}" = set; then
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
2210
else
2211
  if test -n "$CC"; then
2212
  ac_cv_prog_CC="$CC" # Let the user override the test.
2213
else
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215
for as_dir in $PATH
2216
do
2217
  IFS=$as_save_IFS
2218
  test -z "$as_dir" && as_dir=.
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
2220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223
    break 2
2224
  fi
2225
done
2226
done
2227
IFS=$as_save_IFS
2228
 
2229
fi
2230
fi
2231
CC=$ac_cv_prog_CC
2232
if test -n "$CC"; then
2233
  { echo "$as_me:$LINENO: result: $CC" >&5
2234
echo "${ECHO_T}$CC" >&6; }
2235
else
2236
  { echo "$as_me:$LINENO: result: no" >&5
2237
echo "${ECHO_T}no" >&6; }
2238
fi
2239
 
2240
 
2241
fi
2242
if test -z "$ac_cv_prog_CC"; then
2243
  ac_ct_CC=$CC
2244
  # Extract the first word of "gcc", so it can be a program name with args.
2245
set dummy gcc; ac_word=$2
2246
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2249
  echo $ECHO_N "(cached) $ECHO_C" >&6
2250
else
2251
  if test -n "$ac_ct_CC"; then
2252
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253
else
2254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255
for as_dir in $PATH
2256
do
2257
  IFS=$as_save_IFS
2258
  test -z "$as_dir" && as_dir=.
2259
  for ac_exec_ext in '' $ac_executable_extensions; do
2260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261
    ac_cv_prog_ac_ct_CC="gcc"
2262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263
    break 2
2264
  fi
2265
done
2266
done
2267
IFS=$as_save_IFS
2268
 
2269
fi
2270
fi
2271
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272
if test -n "$ac_ct_CC"; then
2273
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2274
echo "${ECHO_T}$ac_ct_CC" >&6; }
2275
else
2276
  { echo "$as_me:$LINENO: result: no" >&5
2277
echo "${ECHO_T}no" >&6; }
2278
fi
2279
 
2280
  if test "x$ac_ct_CC" = x; then
2281
    CC=""
2282
  else
2283
    case $cross_compiling:$ac_tool_warned in
2284
yes:)
2285
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2286
whose name does not start with the host triplet.  If you think this
2287
configuration is useful to you, please write to autoconf@gnu.org." >&5
2288
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2289
whose name does not start with the host triplet.  If you think this
2290
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2291
ac_tool_warned=yes ;;
2292
esac
2293
    CC=$ac_ct_CC
2294
  fi
2295
else
2296
  CC="$ac_cv_prog_CC"
2297
fi
2298
 
2299
if test -z "$CC"; then
2300
          if test -n "$ac_tool_prefix"; then
2301
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2302
set dummy ${ac_tool_prefix}cc; ac_word=$2
2303
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2304
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305
if test "${ac_cv_prog_CC+set}" = set; then
2306
  echo $ECHO_N "(cached) $ECHO_C" >&6
2307
else
2308
  if test -n "$CC"; then
2309
  ac_cv_prog_CC="$CC" # Let the user override the test.
2310
else
2311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312
for as_dir in $PATH
2313
do
2314
  IFS=$as_save_IFS
2315
  test -z "$as_dir" && as_dir=.
2316
  for ac_exec_ext in '' $ac_executable_extensions; do
2317
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2318
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2319
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320
    break 2
2321
  fi
2322
done
2323
done
2324
IFS=$as_save_IFS
2325
 
2326
fi
2327
fi
2328
CC=$ac_cv_prog_CC
2329
if test -n "$CC"; then
2330
  { echo "$as_me:$LINENO: result: $CC" >&5
2331
echo "${ECHO_T}$CC" >&6; }
2332
else
2333
  { echo "$as_me:$LINENO: result: no" >&5
2334
echo "${ECHO_T}no" >&6; }
2335
fi
2336
 
2337
 
2338
  fi
2339
fi
2340
if test -z "$CC"; then
2341
  # Extract the first word of "cc", so it can be a program name with args.
2342
set dummy cc; ac_word=$2
2343
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345
if test "${ac_cv_prog_CC+set}" = set; then
2346
  echo $ECHO_N "(cached) $ECHO_C" >&6
2347
else
2348
  if test -n "$CC"; then
2349
  ac_cv_prog_CC="$CC" # Let the user override the test.
2350
else
2351
  ac_prog_rejected=no
2352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353
for as_dir in $PATH
2354
do
2355
  IFS=$as_save_IFS
2356
  test -z "$as_dir" && as_dir=.
2357
  for ac_exec_ext in '' $ac_executable_extensions; do
2358
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2360
       ac_prog_rejected=yes
2361
       continue
2362
     fi
2363
    ac_cv_prog_CC="cc"
2364
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365
    break 2
2366
  fi
2367
done
2368
done
2369
IFS=$as_save_IFS
2370
 
2371
if test $ac_prog_rejected = yes; then
2372
  # We found a bogon in the path, so make sure we never use it.
2373
  set dummy $ac_cv_prog_CC
2374
  shift
2375
  if test $@%:@ != 0; then
2376
    # We chose a different compiler from the bogus one.
2377
    # However, it has the same basename, so the bogon will be chosen
2378
    # first if we set CC to just the basename; use the full file name.
2379
    shift
2380
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2381
  fi
2382
fi
2383
fi
2384
fi
2385
CC=$ac_cv_prog_CC
2386
if test -n "$CC"; then
2387
  { echo "$as_me:$LINENO: result: $CC" >&5
2388
echo "${ECHO_T}$CC" >&6; }
2389
else
2390
  { echo "$as_me:$LINENO: result: no" >&5
2391
echo "${ECHO_T}no" >&6; }
2392
fi
2393
 
2394
 
2395
fi
2396
if test -z "$CC"; then
2397
  if test -n "$ac_tool_prefix"; then
2398
  for ac_prog in cl.exe
2399
  do
2400
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2401
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2402
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2403
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404
if test "${ac_cv_prog_CC+set}" = set; then
2405
  echo $ECHO_N "(cached) $ECHO_C" >&6
2406
else
2407
  if test -n "$CC"; then
2408
  ac_cv_prog_CC="$CC" # Let the user override the test.
2409
else
2410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411
for as_dir in $PATH
2412
do
2413
  IFS=$as_save_IFS
2414
  test -z "$as_dir" && as_dir=.
2415
  for ac_exec_ext in '' $ac_executable_extensions; do
2416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2418
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419
    break 2
2420
  fi
2421
done
2422
done
2423
IFS=$as_save_IFS
2424
 
2425
fi
2426
fi
2427
CC=$ac_cv_prog_CC
2428
if test -n "$CC"; then
2429
  { echo "$as_me:$LINENO: result: $CC" >&5
2430
echo "${ECHO_T}$CC" >&6; }
2431
else
2432
  { echo "$as_me:$LINENO: result: no" >&5
2433
echo "${ECHO_T}no" >&6; }
2434
fi
2435
 
2436
 
2437
    test -n "$CC" && break
2438
  done
2439
fi
2440
if test -z "$CC"; then
2441
  ac_ct_CC=$CC
2442
  for ac_prog in cl.exe
2443
do
2444
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2445
set dummy $ac_prog; ac_word=$2
2446
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449
  echo $ECHO_N "(cached) $ECHO_C" >&6
2450
else
2451
  if test -n "$ac_ct_CC"; then
2452
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453
else
2454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455
for as_dir in $PATH
2456
do
2457
  IFS=$as_save_IFS
2458
  test -z "$as_dir" && as_dir=.
2459
  for ac_exec_ext in '' $ac_executable_extensions; do
2460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461
    ac_cv_prog_ac_ct_CC="$ac_prog"
2462
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463
    break 2
2464
  fi
2465
done
2466
done
2467
IFS=$as_save_IFS
2468
 
2469
fi
2470
fi
2471
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472
if test -n "$ac_ct_CC"; then
2473
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474
echo "${ECHO_T}$ac_ct_CC" >&6; }
2475
else
2476
  { echo "$as_me:$LINENO: result: no" >&5
2477
echo "${ECHO_T}no" >&6; }
2478
fi
2479
 
2480
 
2481
  test -n "$ac_ct_CC" && break
2482
done
2483
 
2484
  if test "x$ac_ct_CC" = x; then
2485
    CC=""
2486
  else
2487
    case $cross_compiling:$ac_tool_warned in
2488
yes:)
2489
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2490
whose name does not start with the host triplet.  If you think this
2491
configuration is useful to you, please write to autoconf@gnu.org." >&5
2492
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2493
whose name does not start with the host triplet.  If you think this
2494
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2495
ac_tool_warned=yes ;;
2496
esac
2497
    CC=$ac_ct_CC
2498
  fi
2499
fi
2500
 
2501
fi
2502
 
2503
 
2504
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2505
See \`config.log' for more details." >&5
2506
echo "$as_me: error: no acceptable C compiler found in \$PATH
2507
See \`config.log' for more details." >&2;}
2508
   { (exit 1); exit 1; }; }
2509
 
2510
# Provide some information about the compiler.
2511
echo "$as_me:$LINENO: checking for C compiler version" >&5
2512
ac_compiler=`set X $ac_compile; echo $2`
2513
{ (ac_try="$ac_compiler --version >&5"
2514
case "(($ac_try" in
2515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516
  *) ac_try_echo=$ac_try;;
2517
esac
2518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519
  (eval "$ac_compiler --version >&5") 2>&5
2520
  ac_status=$?
2521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522
  (exit $ac_status); }
2523
{ (ac_try="$ac_compiler -v >&5"
2524
case "(($ac_try" in
2525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526
  *) ac_try_echo=$ac_try;;
2527
esac
2528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529
  (eval "$ac_compiler -v >&5") 2>&5
2530
  ac_status=$?
2531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532
  (exit $ac_status); }
2533
{ (ac_try="$ac_compiler -V >&5"
2534
case "(($ac_try" in
2535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536
  *) ac_try_echo=$ac_try;;
2537
esac
2538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539
  (eval "$ac_compiler -V >&5") 2>&5
2540
  ac_status=$?
2541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542
  (exit $ac_status); }
2543
 
2544
cat >conftest.$ac_ext <<_ACEOF
2545
/* confdefs.h.  */
2546
_ACEOF
2547
cat confdefs.h >>conftest.$ac_ext
2548
cat >>conftest.$ac_ext <<_ACEOF
2549
/* end confdefs.h.  */
2550
 
2551
int
2552
main ()
2553
{
2554
 
2555
  ;
2556
  return 0;
2557
}
2558
_ACEOF
2559
ac_clean_files_save=$ac_clean_files
2560
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2561
# Try to create an executable without -o first, disregard a.out.
2562
# It will help us diagnose broken compilers, and finding out an intuition
2563
# of exeext.
2564
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2565
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2566
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2567
#
2568
# List of possible output files, starting from the most likely.
2569
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2570
# only as a last resort.  b.out is created by i960 compilers.
2571
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2572
#
2573
# The IRIX 6 linker writes into existing files which may not be
2574
# executable, retaining their permissions.  Remove them first so a
2575
# subsequent execution test works.
2576
ac_rmfiles=
2577
for ac_file in $ac_files
2578
do
2579
  case $ac_file in
2580
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2581
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2582
  esac
2583
done
2584
rm -f $ac_rmfiles
2585
 
2586
if { (ac_try="$ac_link_default"
2587
case "(($ac_try" in
2588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589
  *) ac_try_echo=$ac_try;;
2590
esac
2591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592
  (eval "$ac_link_default") 2>&5
2593
  ac_status=$?
2594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595
  (exit $ac_status); }; then
2596
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2597
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2598
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2599
# so that the user can short-circuit this test for compilers unknown to
2600
# Autoconf.
2601
for ac_file in $ac_files ''
2602
do
2603
  test -f "$ac_file" || continue
2604
  case $ac_file in
2605
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2606
        ;;
2607
    [ab].out )
2608
        # We found the default executable, but exeext='' is most
2609
        # certainly right.
2610
        break;;
2611
    *.* )
2612
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2613
        then :; else
2614
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615
        fi
2616
        # We set ac_cv_exeext here because the later test for it is not
2617
        # safe: cross compilers may not add the suffix if given an `-o'
2618
        # argument, so we may need to know it at that point already.
2619
        # Even if this section looks crufty: it has the advantage of
2620
        # actually working.
2621
        break;;
2622
    * )
2623
        break;;
2624
  esac
2625
done
2626
test "$ac_cv_exeext" = no && ac_cv_exeext=
2627
 
2628
else
2629
  ac_file=''
2630
fi
2631
 
2632
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2633
echo "${ECHO_T}$ac_file" >&6; }
2634
if test -z "$ac_file"; then
2635
  echo "$as_me: failed program was:" >&5
2636
sed 's/^/| /' conftest.$ac_ext >&5
2637
 
2638
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2639
See \`config.log' for more details." >&5
2640
echo "$as_me: error: C compiler cannot create executables
2641
See \`config.log' for more details." >&2;}
2642
   { (exit 77); exit 77; }; }
2643
fi
2644
 
2645
ac_exeext=$ac_cv_exeext
2646
 
2647
# Check that the compiler produces executables we can run.  If not, either
2648
# the compiler is broken, or we cross compile.
2649
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2650
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2651
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2652
# If not cross compiling, check that we can run a simple program.
2653
if test "$cross_compiling" != yes; then
2654
  if { ac_try='./$ac_file'
2655
  { (case "(($ac_try" in
2656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657
  *) ac_try_echo=$ac_try;;
2658
esac
2659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660
  (eval "$ac_try") 2>&5
2661
  ac_status=$?
2662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663
  (exit $ac_status); }; }; then
2664
    cross_compiling=no
2665
  else
2666
    if test "$cross_compiling" = maybe; then
2667
        cross_compiling=yes
2668
    else
2669
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2670
If you meant to cross compile, use \`--host'.
2671
See \`config.log' for more details." >&5
2672
echo "$as_me: error: cannot run C compiled programs.
2673
If you meant to cross compile, use \`--host'.
2674
See \`config.log' for more details." >&2;}
2675
   { (exit 1); exit 1; }; }
2676
    fi
2677
  fi
2678
fi
2679
{ echo "$as_me:$LINENO: result: yes" >&5
2680
echo "${ECHO_T}yes" >&6; }
2681
 
2682
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2683
ac_clean_files=$ac_clean_files_save
2684
# Check that the compiler produces executables we can run.  If not, either
2685
# the compiler is broken, or we cross compile.
2686
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2687
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2688
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2689
echo "${ECHO_T}$cross_compiling" >&6; }
2690
 
2691
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2692
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2693
if { (ac_try="$ac_link"
2694
case "(($ac_try" in
2695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696
  *) ac_try_echo=$ac_try;;
2697
esac
2698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699
  (eval "$ac_link") 2>&5
2700
  ac_status=$?
2701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
  (exit $ac_status); }; then
2703
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2704
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2705
# work properly (i.e., refer to `conftest.exe'), while it won't with
2706
# `rm'.
2707
for ac_file in conftest.exe conftest conftest.*; do
2708
  test -f "$ac_file" || continue
2709
  case $ac_file in
2710
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2711
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2712
          break;;
2713
    * ) break;;
2714
  esac
2715
done
2716
else
2717
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2718
See \`config.log' for more details." >&5
2719
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2720
See \`config.log' for more details." >&2;}
2721
   { (exit 1); exit 1; }; }
2722
fi
2723
 
2724
rm -f conftest$ac_cv_exeext
2725
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2726
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2727
 
2728
rm -f conftest.$ac_ext
2729
EXEEXT=$ac_cv_exeext
2730
ac_exeext=$EXEEXT
2731
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2732
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2733
if test "${ac_cv_objext+set}" = set; then
2734
  echo $ECHO_N "(cached) $ECHO_C" >&6
2735
else
2736
  cat >conftest.$ac_ext <<_ACEOF
2737
/* confdefs.h.  */
2738
_ACEOF
2739
cat confdefs.h >>conftest.$ac_ext
2740
cat >>conftest.$ac_ext <<_ACEOF
2741
/* end confdefs.h.  */
2742
 
2743
int
2744
main ()
2745
{
2746
 
2747
  ;
2748
  return 0;
2749
}
2750
_ACEOF
2751
rm -f conftest.o conftest.obj
2752
if { (ac_try="$ac_compile"
2753
case "(($ac_try" in
2754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755
  *) ac_try_echo=$ac_try;;
2756
esac
2757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758
  (eval "$ac_compile") 2>&5
2759
  ac_status=$?
2760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
  (exit $ac_status); }; then
2762
  for ac_file in conftest.o conftest.obj conftest.*; do
2763
  test -f "$ac_file" || continue;
2764
  case $ac_file in
2765
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2766
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767
       break;;
2768
  esac
2769
done
2770
else
2771
  echo "$as_me: failed program was:" >&5
2772
sed 's/^/| /' conftest.$ac_ext >&5
2773
 
2774
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2775
See \`config.log' for more details." >&5
2776
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2777
See \`config.log' for more details." >&2;}
2778
   { (exit 1); exit 1; }; }
2779
fi
2780
 
2781
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2782
fi
2783
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2784
echo "${ECHO_T}$ac_cv_objext" >&6; }
2785
OBJEXT=$ac_cv_objext
2786
ac_objext=$OBJEXT
2787
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2788
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2789
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2790
  echo $ECHO_N "(cached) $ECHO_C" >&6
2791
else
2792
  cat >conftest.$ac_ext <<_ACEOF
2793
/* confdefs.h.  */
2794
_ACEOF
2795
cat confdefs.h >>conftest.$ac_ext
2796
cat >>conftest.$ac_ext <<_ACEOF
2797
/* end confdefs.h.  */
2798
 
2799
int
2800
main ()
2801
{
2802
#ifndef __GNUC__
2803
       choke me
2804
#endif
2805
 
2806
  ;
2807
  return 0;
2808
}
2809
_ACEOF
2810
rm -f conftest.$ac_objext
2811
if { (ac_try="$ac_compile"
2812
case "(($ac_try" in
2813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814
  *) ac_try_echo=$ac_try;;
2815
esac
2816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817
  (eval "$ac_compile") 2>conftest.er1
2818
  ac_status=$?
2819
  grep -v '^ *+' conftest.er1 >conftest.err
2820
  rm -f conftest.er1
2821
  cat conftest.err >&5
2822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823
  (exit $ac_status); } && {
2824
         test -z "$ac_c_werror_flag" ||
2825
         test ! -s conftest.err
2826
       } && test -s conftest.$ac_objext; then
2827
  ac_compiler_gnu=yes
2828
else
2829
  echo "$as_me: failed program was:" >&5
2830
sed 's/^/| /' conftest.$ac_ext >&5
2831
 
2832
        ac_compiler_gnu=no
2833
fi
2834
 
2835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2837
 
2838
fi
2839
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2840
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2841
GCC=`test $ac_compiler_gnu = yes && echo yes`
2842
ac_test_CFLAGS=${CFLAGS+set}
2843
ac_save_CFLAGS=$CFLAGS
2844
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2845
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2846
if test "${ac_cv_prog_cc_g+set}" = set; then
2847
  echo $ECHO_N "(cached) $ECHO_C" >&6
2848
else
2849
  ac_save_c_werror_flag=$ac_c_werror_flag
2850
   ac_c_werror_flag=yes
2851
   ac_cv_prog_cc_g=no
2852
   CFLAGS="-g"
2853
   cat >conftest.$ac_ext <<_ACEOF
2854
/* confdefs.h.  */
2855
_ACEOF
2856
cat confdefs.h >>conftest.$ac_ext
2857
cat >>conftest.$ac_ext <<_ACEOF
2858
/* end confdefs.h.  */
2859
 
2860
int
2861
main ()
2862
{
2863
 
2864
  ;
2865
  return 0;
2866
}
2867
_ACEOF
2868
rm -f conftest.$ac_objext
2869
if { (ac_try="$ac_compile"
2870
case "(($ac_try" in
2871
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872
  *) ac_try_echo=$ac_try;;
2873
esac
2874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875
  (eval "$ac_compile") 2>conftest.er1
2876
  ac_status=$?
2877
  grep -v '^ *+' conftest.er1 >conftest.err
2878
  rm -f conftest.er1
2879
  cat conftest.err >&5
2880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
  (exit $ac_status); } && {
2882
         test -z "$ac_c_werror_flag" ||
2883
         test ! -s conftest.err
2884
       } && test -s conftest.$ac_objext; then
2885
  ac_cv_prog_cc_g=yes
2886
else
2887
  echo "$as_me: failed program was:" >&5
2888
sed 's/^/| /' conftest.$ac_ext >&5
2889
 
2890
        CFLAGS=""
2891
      cat >conftest.$ac_ext <<_ACEOF
2892
/* confdefs.h.  */
2893
_ACEOF
2894
cat confdefs.h >>conftest.$ac_ext
2895
cat >>conftest.$ac_ext <<_ACEOF
2896
/* end confdefs.h.  */
2897
 
2898
int
2899
main ()
2900
{
2901
 
2902
  ;
2903
  return 0;
2904
}
2905
_ACEOF
2906
rm -f conftest.$ac_objext
2907
if { (ac_try="$ac_compile"
2908
case "(($ac_try" in
2909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910
  *) ac_try_echo=$ac_try;;
2911
esac
2912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913
  (eval "$ac_compile") 2>conftest.er1
2914
  ac_status=$?
2915
  grep -v '^ *+' conftest.er1 >conftest.err
2916
  rm -f conftest.er1
2917
  cat conftest.err >&5
2918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919
  (exit $ac_status); } && {
2920
         test -z "$ac_c_werror_flag" ||
2921
         test ! -s conftest.err
2922
       } && test -s conftest.$ac_objext; then
2923
  :
2924
else
2925
  echo "$as_me: failed program was:" >&5
2926
sed 's/^/| /' conftest.$ac_ext >&5
2927
 
2928
        ac_c_werror_flag=$ac_save_c_werror_flag
2929
         CFLAGS="-g"
2930
         cat >conftest.$ac_ext <<_ACEOF
2931
/* confdefs.h.  */
2932
_ACEOF
2933
cat confdefs.h >>conftest.$ac_ext
2934
cat >>conftest.$ac_ext <<_ACEOF
2935
/* end confdefs.h.  */
2936
 
2937
int
2938
main ()
2939
{
2940
 
2941
  ;
2942
  return 0;
2943
}
2944
_ACEOF
2945
rm -f conftest.$ac_objext
2946
if { (ac_try="$ac_compile"
2947
case "(($ac_try" in
2948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949
  *) ac_try_echo=$ac_try;;
2950
esac
2951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952
  (eval "$ac_compile") 2>conftest.er1
2953
  ac_status=$?
2954
  grep -v '^ *+' conftest.er1 >conftest.err
2955
  rm -f conftest.er1
2956
  cat conftest.err >&5
2957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958
  (exit $ac_status); } && {
2959
         test -z "$ac_c_werror_flag" ||
2960
         test ! -s conftest.err
2961
       } && test -s conftest.$ac_objext; then
2962
  ac_cv_prog_cc_g=yes
2963
else
2964
  echo "$as_me: failed program was:" >&5
2965
sed 's/^/| /' conftest.$ac_ext >&5
2966
 
2967
 
2968
fi
2969
 
2970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971
fi
2972
 
2973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974
fi
2975
 
2976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977
   ac_c_werror_flag=$ac_save_c_werror_flag
2978
fi
2979
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2981
if test "$ac_test_CFLAGS" = set; then
2982
  CFLAGS=$ac_save_CFLAGS
2983
elif test $ac_cv_prog_cc_g = yes; then
2984
  if test "$GCC" = yes; then
2985
    CFLAGS="-g -O2"
2986
  else
2987
    CFLAGS="-g"
2988
  fi
2989
else
2990
  if test "$GCC" = yes; then
2991
    CFLAGS="-O2"
2992
  else
2993
    CFLAGS=
2994
  fi
2995
fi
2996
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2997
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2998
if test "${ac_cv_prog_cc_c89+set}" = set; then
2999
  echo $ECHO_N "(cached) $ECHO_C" >&6
3000
else
3001
  ac_cv_prog_cc_c89=no
3002
ac_save_CC=$CC
3003
cat >conftest.$ac_ext <<_ACEOF
3004
/* confdefs.h.  */
3005
_ACEOF
3006
cat confdefs.h >>conftest.$ac_ext
3007
cat >>conftest.$ac_ext <<_ACEOF
3008
/* end confdefs.h.  */
3009
#include 
3010
#include 
3011
#include 
3012
#include 
3013
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3014
struct buf { int x; };
3015
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3016
static char *e (p, i)
3017
     char **p;
3018
     int i;
3019
{
3020
  return p[i];
3021
}
3022
static char *f (char * (*g) (char **, int), char **p, ...)
3023
{
3024
  char *s;
3025
  va_list v;
3026
  va_start (v,p);
3027
  s = g (p, va_arg (v,int));
3028
  va_end (v);
3029
  return s;
3030
}
3031
 
3032
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3033
   function prototypes and stuff, but not '\xHH' hex character constants.
3034
   These don't provoke an error unfortunately, instead are silently treated
3035
   as 'x'.  The following induces an error, until -std is added to get
3036
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3037
   array size at least.  It's necessary to write '\x00'==0 to get something
3038
   that's true only with -std.  */
3039
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3040
 
3041
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3042
   inside strings and character constants.  */
3043
#define FOO(x) 'x'
3044
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3045
 
3046
int test (int i, double x);
3047
struct s1 {int (*f) (int a);};
3048
struct s2 {int (*f) (double a);};
3049
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3050
int argc;
3051
char **argv;
3052
int
3053
main ()
3054
{
3055
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3056
  ;
3057
  return 0;
3058
}
3059
_ACEOF
3060
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3061
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062
do
3063
  CC="$ac_save_CC $ac_arg"
3064
  rm -f conftest.$ac_objext
3065
if { (ac_try="$ac_compile"
3066
case "(($ac_try" in
3067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068
  *) ac_try_echo=$ac_try;;
3069
esac
3070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071
  (eval "$ac_compile") 2>conftest.er1
3072
  ac_status=$?
3073
  grep -v '^ *+' conftest.er1 >conftest.err
3074
  rm -f conftest.er1
3075
  cat conftest.err >&5
3076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077
  (exit $ac_status); } && {
3078
         test -z "$ac_c_werror_flag" ||
3079
         test ! -s conftest.err
3080
       } && test -s conftest.$ac_objext; then
3081
  ac_cv_prog_cc_c89=$ac_arg
3082
else
3083
  echo "$as_me: failed program was:" >&5
3084
sed 's/^/| /' conftest.$ac_ext >&5
3085
 
3086
 
3087
fi
3088
 
3089
rm -f core conftest.err conftest.$ac_objext
3090
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3091
done
3092
rm -f conftest.$ac_ext
3093
CC=$ac_save_CC
3094
 
3095
fi
3096
# AC_CACHE_VAL
3097
case "x$ac_cv_prog_cc_c89" in
3098
  x)
3099
    { echo "$as_me:$LINENO: result: none needed" >&5
3100
echo "${ECHO_T}none needed" >&6; } ;;
3101
  xno)
3102
    { echo "$as_me:$LINENO: result: unsupported" >&5
3103
echo "${ECHO_T}unsupported" >&6; } ;;
3104
  *)
3105
    CC="$CC $ac_cv_prog_cc_c89"
3106
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3107
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3108
esac
3109
 
3110
 
3111
ac_ext=c
3112
ac_cpp='$CPP $CPPFLAGS'
3113
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
 
3117
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3118
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3119
if test "${lt_cv_path_SED+set}" = set; then
3120
  echo $ECHO_N "(cached) $ECHO_C" >&6
3121
else
3122
  # Loop through the user's path and test for sed and gsed.
3123
# Then use that list of sed's as ones to test for truncation.
3124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125
for as_dir in $PATH
3126
do
3127
  IFS=$as_save_IFS
3128
  test -z "$as_dir" && as_dir=.
3129
  for lt_ac_prog in sed gsed; do
3130
    for ac_exec_ext in '' $ac_executable_extensions; do
3131
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3132
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3133
      fi
3134
    done
3135
  done
3136
done
3137
IFS=$as_save_IFS
3138
lt_ac_max=0
3139
lt_ac_count=0
3140
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3141
# along with /bin/sed that truncates output.
3142
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3143
  test ! -f $lt_ac_sed && continue
3144
  cat /dev/null > conftest.in
3145
  lt_ac_count=0
3146
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3147
  # Check for GNU sed and select it if it is found.
3148
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3149
    lt_cv_path_SED=$lt_ac_sed
3150
    break
3151
  fi
3152
  while true; do
3153
    cat conftest.in conftest.in >conftest.tmp
3154
    mv conftest.tmp conftest.in
3155
    cp conftest.in conftest.nl
3156
    echo >>conftest.nl
3157
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3158
    cmp -s conftest.out conftest.nl || break
3159
    # 10000 chars as input seems more than enough
3160
    test $lt_ac_count -gt 10 && break
3161
    lt_ac_count=`expr $lt_ac_count + 1`
3162
    if test $lt_ac_count -gt $lt_ac_max; then
3163
      lt_ac_max=$lt_ac_count
3164
      lt_cv_path_SED=$lt_ac_sed
3165
    fi
3166
  done
3167
done
3168
 
3169
fi
3170
 
3171
SED=$lt_cv_path_SED
3172
 
3173
{ echo "$as_me:$LINENO: result: $SED" >&5
3174
echo "${ECHO_T}$SED" >&6; }
3175
 
3176
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3177
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3178
if test "${ac_cv_path_GREP+set}" = set; then
3179
  echo $ECHO_N "(cached) $ECHO_C" >&6
3180
else
3181
  # Extract the first word of "grep ggrep" to use in msg output
3182
if test -z "$GREP"; then
3183
set dummy grep ggrep; ac_prog_name=$2
3184
if test "${ac_cv_path_GREP+set}" = set; then
3185
  echo $ECHO_N "(cached) $ECHO_C" >&6
3186
else
3187
  ac_path_GREP_found=false
3188
# Loop through the user's path and test for each of PROGNAME-LIST
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3191
do
3192
  IFS=$as_save_IFS
3193
  test -z "$as_dir" && as_dir=.
3194
  for ac_prog in grep ggrep; do
3195
  for ac_exec_ext in '' $ac_executable_extensions; do
3196
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3197
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3198
    # Check for GNU ac_path_GREP and select it if it is found.
3199
  # Check for GNU $ac_path_GREP
3200
case `"$ac_path_GREP" --version 2>&1` in
3201
*GNU*)
3202
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3203
*)
3204
  ac_count=0
3205
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3206
  while :
3207
  do
3208
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3209
    mv "conftest.tmp" "conftest.in"
3210
    cp "conftest.in" "conftest.nl"
3211
    echo 'GREP' >> "conftest.nl"
3212
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3213
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3214
    ac_count=`expr $ac_count + 1`
3215
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3216
      # Best one so far, save it but keep looking for a better one
3217
      ac_cv_path_GREP="$ac_path_GREP"
3218
      ac_path_GREP_max=$ac_count
3219
    fi
3220
    # 10*(2^10) chars as input seems more than enough
3221
    test $ac_count -gt 10 && break
3222
  done
3223
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3224
esac
3225
 
3226
 
3227
    $ac_path_GREP_found && break 3
3228
  done
3229
done
3230
 
3231
done
3232
IFS=$as_save_IFS
3233
 
3234
 
3235
fi
3236
 
3237
GREP="$ac_cv_path_GREP"
3238
if test -z "$GREP"; then
3239
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3240
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3241
   { (exit 1); exit 1; }; }
3242
fi
3243
 
3244
else
3245
  ac_cv_path_GREP=$GREP
3246
fi
3247
 
3248
 
3249
fi
3250
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3251
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3252
 GREP="$ac_cv_path_GREP"
3253
 
3254
 
3255
{ echo "$as_me:$LINENO: checking for egrep" >&5
3256
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3257
if test "${ac_cv_path_EGREP+set}" = set; then
3258
  echo $ECHO_N "(cached) $ECHO_C" >&6
3259
else
3260
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3261
   then ac_cv_path_EGREP="$GREP -E"
3262
   else
3263
     # Extract the first word of "egrep" to use in msg output
3264
if test -z "$EGREP"; then
3265
set dummy egrep; ac_prog_name=$2
3266
if test "${ac_cv_path_EGREP+set}" = set; then
3267
  echo $ECHO_N "(cached) $ECHO_C" >&6
3268
else
3269
  ac_path_EGREP_found=false
3270
# Loop through the user's path and test for each of PROGNAME-LIST
3271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3273
do
3274
  IFS=$as_save_IFS
3275
  test -z "$as_dir" && as_dir=.
3276
  for ac_prog in egrep; do
3277
  for ac_exec_ext in '' $ac_executable_extensions; do
3278
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3279
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3280
    # Check for GNU ac_path_EGREP and select it if it is found.
3281
  # Check for GNU $ac_path_EGREP
3282
case `"$ac_path_EGREP" --version 2>&1` in
3283
*GNU*)
3284
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3285
*)
3286
  ac_count=0
3287
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3288
  while :
3289
  do
3290
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3291
    mv "conftest.tmp" "conftest.in"
3292
    cp "conftest.in" "conftest.nl"
3293
    echo 'EGREP' >> "conftest.nl"
3294
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3295
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3296
    ac_count=`expr $ac_count + 1`
3297
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3298
      # Best one so far, save it but keep looking for a better one
3299
      ac_cv_path_EGREP="$ac_path_EGREP"
3300
      ac_path_EGREP_max=$ac_count
3301
    fi
3302
    # 10*(2^10) chars as input seems more than enough
3303
    test $ac_count -gt 10 && break
3304
  done
3305
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3306
esac
3307
 
3308
 
3309
    $ac_path_EGREP_found && break 3
3310
  done
3311
done
3312
 
3313
done
3314
IFS=$as_save_IFS
3315
 
3316
 
3317
fi
3318
 
3319
EGREP="$ac_cv_path_EGREP"
3320
if test -z "$EGREP"; then
3321
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3322
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3323
   { (exit 1); exit 1; }; }
3324
fi
3325
 
3326
else
3327
  ac_cv_path_EGREP=$EGREP
3328
fi
3329
 
3330
 
3331
   fi
3332
fi
3333
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3334
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3335
 EGREP="$ac_cv_path_EGREP"
3336
 
3337
 
3338
 
3339
# Check whether --with-gnu-ld was given.
3340
if test "${with_gnu_ld+set}" = set; then
3341
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3342
else
3343
  with_gnu_ld=no
3344
fi
3345
 
3346
ac_prog=ld
3347
if test "$GCC" = yes; then
3348
  # Check if gcc -print-prog-name=ld gives a path.
3349
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3350
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3351
  case $host in
3352
  *-*-mingw*)
3353
    # gcc leaves a trailing carriage return which upsets mingw
3354
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3355
  *)
3356
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3357
  esac
3358
  case $ac_prog in
3359
    # Accept absolute paths.
3360
    [\\/]* | ?:[\\/]*)
3361
      re_direlt='/[^/][^/]*/\.\./'
3362
      # Canonicalize the pathname of ld
3363
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3364
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3365
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3366
      done
3367
      test -z "$LD" && LD="$ac_prog"
3368
      ;;
3369
  "")
3370
    # If it fails, then pretend we aren't using GCC.
3371
    ac_prog=ld
3372
    ;;
3373
  *)
3374
    # If it is relative, then search for the first ld in PATH.
3375
    with_gnu_ld=unknown
3376
    ;;
3377
  esac
3378
elif test "$with_gnu_ld" = yes; then
3379
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3380
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3381
else
3382
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3383
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3384
fi
3385
if test "${lt_cv_path_LD+set}" = set; then
3386
  echo $ECHO_N "(cached) $ECHO_C" >&6
3387
else
3388
  if test -z "$LD"; then
3389
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3390
  for ac_dir in $PATH; do
3391
    IFS="$lt_save_ifs"
3392
    test -z "$ac_dir" && ac_dir=.
3393
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3394
      lt_cv_path_LD="$ac_dir/$ac_prog"
3395
      # Check to see if the program is GNU ld.  I'd rather use --version,
3396
      # but apparently some variants of GNU ld only accept -v.
3397
      # Break only if it was the GNU/non-GNU ld that we prefer.
3398
      case `"$lt_cv_path_LD" -v 2>&1 
3399
      *GNU* | *'with BFD'*)
3400
        test "$with_gnu_ld" != no && break
3401
        ;;
3402
      *)
3403
        test "$with_gnu_ld" != yes && break
3404
        ;;
3405
      esac
3406
    fi
3407
  done
3408
  IFS="$lt_save_ifs"
3409
else
3410
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3411
fi
3412
fi
3413
 
3414
LD="$lt_cv_path_LD"
3415
if test -n "$LD"; then
3416
  { echo "$as_me:$LINENO: result: $LD" >&5
3417
echo "${ECHO_T}$LD" >&6; }
3418
else
3419
  { echo "$as_me:$LINENO: result: no" >&5
3420
echo "${ECHO_T}no" >&6; }
3421
fi
3422
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3423
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3424
   { (exit 1); exit 1; }; }
3425
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3426
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3427
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3428
  echo $ECHO_N "(cached) $ECHO_C" >&6
3429
else
3430
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3431
case `$LD -v 2>&1 
3432
*GNU* | *'with BFD'*)
3433
  lt_cv_prog_gnu_ld=yes
3434
  ;;
3435
*)
3436
  lt_cv_prog_gnu_ld=no
3437
  ;;
3438
esac
3439
fi
3440
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3441
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3442
with_gnu_ld=$lt_cv_prog_gnu_ld
3443
 
3444
 
3445
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3446
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3447
if test "${lt_cv_ld_reload_flag+set}" = set; then
3448
  echo $ECHO_N "(cached) $ECHO_C" >&6
3449
else
3450
  lt_cv_ld_reload_flag='-r'
3451
fi
3452
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3453
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3454
reload_flag=$lt_cv_ld_reload_flag
3455
case $reload_flag in
3456
"" | " "*) ;;
3457
*) reload_flag=" $reload_flag" ;;
3458
esac
3459
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3460
case $host_os in
3461
  darwin*)
3462
    if test "$GCC" = yes; then
3463
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3464
    else
3465
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3466
    fi
3467
    ;;
3468
esac
3469
 
3470
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3471
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3472
if test "${lt_cv_path_NM+set}" = set; then
3473
  echo $ECHO_N "(cached) $ECHO_C" >&6
3474
else
3475
  if test -n "$NM"; then
3476
  # Let the user override the test.
3477
  lt_cv_path_NM="$NM"
3478
else
3479
  lt_nm_to_check="${ac_tool_prefix}nm"
3480
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3481
    lt_nm_to_check="$lt_nm_to_check nm"
3482
  fi
3483
  for lt_tmp_nm in $lt_nm_to_check; do
3484
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3485
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3486
      IFS="$lt_save_ifs"
3487
      test -z "$ac_dir" && ac_dir=.
3488
      tmp_nm="$ac_dir/$lt_tmp_nm"
3489
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3490
        # Check to see if the nm accepts a BSD-compat flag.
3491
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3492
        #   nm: unknown option "B" ignored
3493
        # Tru64's nm complains that /dev/null is an invalid object file
3494
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3495
        */dev/null* | *'Invalid file or object type'*)
3496
          lt_cv_path_NM="$tmp_nm -B"
3497
          break
3498
          ;;
3499
        *)
3500
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3501
          */dev/null*)
3502
            lt_cv_path_NM="$tmp_nm -p"
3503
            break
3504
            ;;
3505
          *)
3506
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3507
            continue # so that we can try to find one that supports BSD flags
3508
            ;;
3509
          esac
3510
          ;;
3511
        esac
3512
      fi
3513
    done
3514
    IFS="$lt_save_ifs"
3515
  done
3516
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3517
fi
3518
fi
3519
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3520
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3521
NM="$lt_cv_path_NM"
3522
 
3523
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3524
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3525
LN_S=$as_ln_s
3526
if test "$LN_S" = "ln -s"; then
3527
  { echo "$as_me:$LINENO: result: yes" >&5
3528
echo "${ECHO_T}yes" >&6; }
3529
else
3530
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3531
echo "${ECHO_T}no, using $LN_S" >&6; }
3532
fi
3533
 
3534
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3535
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3536
if test "${lt_cv_deplibs_check_method+set}" = set; then
3537
  echo $ECHO_N "(cached) $ECHO_C" >&6
3538
else
3539
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3540
lt_cv_file_magic_test_file=
3541
lt_cv_deplibs_check_method='unknown'
3542
# Need to set the preceding variable on all platforms that support
3543
# interlibrary dependencies.
3544
# 'none' -- dependencies not supported.
3545
# `unknown' -- same as none, but documents that we really don't know.
3546
# 'pass_all' -- all dependencies passed with no checks.
3547
# 'test_compile' -- check by making test program.
3548
# 'file_magic [[regex]]' -- check by looking for files in library path
3549
# which responds to the $file_magic_cmd with a given extended regex.
3550
# If you have `file' or equivalent on your system and you're not sure
3551
# whether `pass_all' will *always* work, you probably want this one.
3552
 
3553
case $host_os in
3554
aix4* | aix5*)
3555
  lt_cv_deplibs_check_method=pass_all
3556
  ;;
3557
 
3558
beos*)
3559
  lt_cv_deplibs_check_method=pass_all
3560
  ;;
3561
 
3562
bsdi[45]*)
3563
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3564
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3565
  lt_cv_file_magic_test_file=/shlib/libc.so
3566
  ;;
3567
 
3568
cygwin*)
3569
  # func_win32_libid is a shell function defined in ltmain.sh
3570
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3571
  lt_cv_file_magic_cmd='func_win32_libid'
3572
  ;;
3573
 
3574
mingw* | pw32*)
3575
  # Base MSYS/MinGW do not provide the 'file' command needed by
3576
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3577
  # unless we find 'file', for example because we are cross-compiling.
3578
  if ( file / ) >/dev/null 2>&1; then
3579
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3580
    lt_cv_file_magic_cmd='func_win32_libid'
3581
  else
3582
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3583
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3584
  fi
3585
  ;;
3586
 
3587
darwin* | rhapsody*)
3588
  lt_cv_deplibs_check_method=pass_all
3589
  ;;
3590
 
3591
freebsd* | dragonfly*)
3592
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3593
    case $host_cpu in
3594
    i*86 )
3595
      # Not sure whether the presence of OpenBSD here was a mistake.
3596
      # Let's accept both of them until this is cleared up.
3597
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3598
      lt_cv_file_magic_cmd=/usr/bin/file
3599
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3600
      ;;
3601
    esac
3602
  else
3603
    lt_cv_deplibs_check_method=pass_all
3604
  fi
3605
  ;;
3606
 
3607
gnu*)
3608
  lt_cv_deplibs_check_method=pass_all
3609
  ;;
3610
 
3611
hpux10.20* | hpux11*)
3612
  lt_cv_file_magic_cmd=/usr/bin/file
3613
  case $host_cpu in
3614
  ia64*)
3615
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3616
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3617
    ;;
3618
  hppa*64*)
3619
    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]'
3620
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3621
    ;;
3622
  *)
3623
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3624
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3625
    ;;
3626
  esac
3627
  ;;
3628
 
3629
interix[3-9]*)
3630
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3631
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3632
  ;;
3633
 
3634
irix5* | irix6* | nonstopux*)
3635
  case $LD in
3636
  *-32|*"-32 ") libmagic=32-bit;;
3637
  *-n32|*"-n32 ") libmagic=N32;;
3638
  *-64|*"-64 ") libmagic=64-bit;;
3639
  *) libmagic=never-match;;
3640
  esac
3641
  lt_cv_deplibs_check_method=pass_all
3642
  ;;
3643
 
3644
# This must be Linux ELF.
3645
linux* | k*bsd*-gnu)
3646
  lt_cv_deplibs_check_method=pass_all
3647
  ;;
3648
 
3649
netbsd*)
3650
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3651
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3652
  else
3653
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3654
  fi
3655
  ;;
3656
 
3657
newos6*)
3658
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3659
  lt_cv_file_magic_cmd=/usr/bin/file
3660
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3661
  ;;
3662
 
3663
nto-qnx*)
3664
  lt_cv_deplibs_check_method=unknown
3665
  ;;
3666
 
3667
openbsd*)
3668
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3669
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3670
  else
3671
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3672
  fi
3673
  ;;
3674
 
3675
osf3* | osf4* | osf5*)
3676
  lt_cv_deplibs_check_method=pass_all
3677
  ;;
3678
 
3679
rdos*)
3680
  lt_cv_deplibs_check_method=pass_all
3681
  ;;
3682
 
3683
solaris*)
3684
  lt_cv_deplibs_check_method=pass_all
3685
  ;;
3686
 
3687
sysv4 | sysv4.3*)
3688
  case $host_vendor in
3689
  motorola)
3690
    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]'
3691
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3692
    ;;
3693
  ncr)
3694
    lt_cv_deplibs_check_method=pass_all
3695
    ;;
3696
  sequent)
3697
    lt_cv_file_magic_cmd='/bin/file'
3698
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3699
    ;;
3700
  sni)
3701
    lt_cv_file_magic_cmd='/bin/file'
3702
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3703
    lt_cv_file_magic_test_file=/lib/libc.so
3704
    ;;
3705
  siemens)
3706
    lt_cv_deplibs_check_method=pass_all
3707
    ;;
3708
  pc)
3709
    lt_cv_deplibs_check_method=pass_all
3710
    ;;
3711
  esac
3712
  ;;
3713
 
3714
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3715
  lt_cv_deplibs_check_method=pass_all
3716
  ;;
3717
esac
3718
 
3719
fi
3720
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3721
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3722
file_magic_cmd=$lt_cv_file_magic_cmd
3723
deplibs_check_method=$lt_cv_deplibs_check_method
3724
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3725
 
3726
 
3727
 
3728
 
3729
# If no C compiler was specified, use CC.
3730
LTCC=${LTCC-"$CC"}
3731
 
3732
# If no C compiler flags were specified, use CFLAGS.
3733
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3734
 
3735
# Allow CC to be a program name with arguments.
3736
compiler=$CC
3737
 
3738
 
3739
# Check whether --enable-libtool-lock was given.
3740
if test "${enable_libtool_lock+set}" = set; then
3741
  enableval=$enable_libtool_lock;
3742
fi
3743
 
3744
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3745
 
3746
# Some flags need to be propagated to the compiler or linker for good
3747
# libtool support.
3748
case $host in
3749
ia64-*-hpux*)
3750
  # Find out which ABI we are using.
3751
  echo 'int i;' > conftest.$ac_ext
3752
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753
  (eval $ac_compile) 2>&5
3754
  ac_status=$?
3755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756
  (exit $ac_status); }; then
3757
    case `/usr/bin/file conftest.$ac_objext` in
3758
    *ELF-32*)
3759
      HPUX_IA64_MODE="32"
3760
      ;;
3761
    *ELF-64*)
3762
      HPUX_IA64_MODE="64"
3763
      ;;
3764
    esac
3765
  fi
3766
  rm -rf conftest*
3767
  ;;
3768
*-*-irix6*)
3769
  # Find out which ABI we are using.
3770
  echo '#line __oline__ "configure"' > conftest.$ac_ext
3771
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772
  (eval $ac_compile) 2>&5
3773
  ac_status=$?
3774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775
  (exit $ac_status); }; then
3776
   if test "$lt_cv_prog_gnu_ld" = yes; then
3777
    case `/usr/bin/file conftest.$ac_objext` in
3778
    *32-bit*)
3779
      LD="${LD-ld} -melf32bsmip"
3780
      ;;
3781
    *N32*)
3782
      LD="${LD-ld} -melf32bmipn32"
3783
      ;;
3784
    *64-bit*)
3785
      LD="${LD-ld} -melf64bmip"
3786
      ;;
3787
    esac
3788
   else
3789
    case `/usr/bin/file conftest.$ac_objext` in
3790
    *32-bit*)
3791
      LD="${LD-ld} -32"
3792
      ;;
3793
    *N32*)
3794
      LD="${LD-ld} -n32"
3795
      ;;
3796
    *64-bit*)
3797
      LD="${LD-ld} -64"
3798
      ;;
3799
    esac
3800
   fi
3801
  fi
3802
  rm -rf conftest*
3803
  ;;
3804
 
3805
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3806
s390*-*linux*|sparc*-*linux*)
3807
  # Find out which ABI we are using.
3808
  echo 'int i;' > conftest.$ac_ext
3809
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810
  (eval $ac_compile) 2>&5
3811
  ac_status=$?
3812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
  (exit $ac_status); }; then
3814
    case `/usr/bin/file conftest.o` in
3815
    *32-bit*)
3816
      case $host in
3817
        x86_64-*kfreebsd*-gnu)
3818
          LD="${LD-ld} -m elf_i386_fbsd"
3819
          ;;
3820
        x86_64-*linux*)
3821
          LD="${LD-ld} -m elf_i386"
3822
          ;;
3823
        ppc64-*linux*|powerpc64-*linux*)
3824
          LD="${LD-ld} -m elf32ppclinux"
3825
          ;;
3826
        s390x-*linux*)
3827
          LD="${LD-ld} -m elf_s390"
3828
          ;;
3829
        sparc64-*linux*)
3830
          LD="${LD-ld} -m elf32_sparc"
3831
          ;;
3832
      esac
3833
      ;;
3834
    *64-bit*)
3835
      case $host in
3836
        x86_64-*kfreebsd*-gnu)
3837
          LD="${LD-ld} -m elf_x86_64_fbsd"
3838
          ;;
3839
        x86_64-*linux*)
3840
          LD="${LD-ld} -m elf_x86_64"
3841
          ;;
3842
        ppc*-*linux*|powerpc*-*linux*)
3843
          LD="${LD-ld} -m elf64ppc"
3844
          ;;
3845
        s390*-*linux*)
3846
          LD="${LD-ld} -m elf64_s390"
3847
          ;;
3848
        sparc*-*linux*)
3849
          LD="${LD-ld} -m elf64_sparc"
3850
          ;;
3851
      esac
3852
      ;;
3853
    esac
3854
  fi
3855
  rm -rf conftest*
3856
  ;;
3857
 
3858
*-*-sco3.2v5*)
3859
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3860
  SAVE_CFLAGS="$CFLAGS"
3861
  CFLAGS="$CFLAGS -belf"
3862
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3863
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3864
if test "${lt_cv_cc_needs_belf+set}" = set; then
3865
  echo $ECHO_N "(cached) $ECHO_C" >&6
3866
else
3867
  ac_ext=c
3868
ac_cpp='$CPP $CPPFLAGS'
3869
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
 
3873
     cat >conftest.$ac_ext <<_ACEOF
3874
/* confdefs.h.  */
3875
_ACEOF
3876
cat confdefs.h >>conftest.$ac_ext
3877
cat >>conftest.$ac_ext <<_ACEOF
3878
/* end confdefs.h.  */
3879
 
3880
int
3881
main ()
3882
{
3883
 
3884
  ;
3885
  return 0;
3886
}
3887
_ACEOF
3888
rm -f conftest.$ac_objext conftest$ac_exeext
3889
if { (ac_try="$ac_link"
3890
case "(($ac_try" in
3891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892
  *) ac_try_echo=$ac_try;;
3893
esac
3894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895
  (eval "$ac_link") 2>conftest.er1
3896
  ac_status=$?
3897
  grep -v '^ *+' conftest.er1 >conftest.err
3898
  rm -f conftest.er1
3899
  cat conftest.err >&5
3900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901
  (exit $ac_status); } && {
3902
         test -z "$ac_c_werror_flag" ||
3903
         test ! -s conftest.err
3904
       } && test -s conftest$ac_exeext &&
3905
       $as_test_x conftest$ac_exeext; then
3906
  lt_cv_cc_needs_belf=yes
3907
else
3908
  echo "$as_me: failed program was:" >&5
3909
sed 's/^/| /' conftest.$ac_ext >&5
3910
 
3911
        lt_cv_cc_needs_belf=no
3912
fi
3913
 
3914
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3915
      conftest$ac_exeext conftest.$ac_ext
3916
     ac_ext=c
3917
ac_cpp='$CPP $CPPFLAGS'
3918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
 
3922
fi
3923
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3924
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3925
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3926
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3927
    CFLAGS="$SAVE_CFLAGS"
3928
  fi
3929
  ;;
3930
sparc*-*solaris*)
3931
  # Find out which ABI we are using.
3932
  echo 'int i;' > conftest.$ac_ext
3933
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934
  (eval $ac_compile) 2>&5
3935
  ac_status=$?
3936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937
  (exit $ac_status); }; then
3938
    case `/usr/bin/file conftest.o` in
3939
    *64-bit*)
3940
      case $lt_cv_prog_gnu_ld in
3941
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3942
      *)    LD="${LD-ld} -64" ;;
3943
      esac
3944
      ;;
3945
    esac
3946
  fi
3947
  rm -rf conftest*
3948
  ;;
3949
 
3950
 
3951
esac
3952
 
3953
need_locks="$enable_libtool_lock"
3954
 
3955
 
3956
ac_ext=c
3957
ac_cpp='$CPP $CPPFLAGS'
3958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3962
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3963
# On Suns, sometimes $CPP names a directory.
3964
if test -n "$CPP" && test -d "$CPP"; then
3965
  CPP=
3966
fi
3967
if test -z "$CPP"; then
3968
  if test "${ac_cv_prog_CPP+set}" = set; then
3969
  echo $ECHO_N "(cached) $ECHO_C" >&6
3970
else
3971
      # Double quotes because CPP needs to be expanded
3972
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3973
    do
3974
      ac_preproc_ok=false
3975
for ac_c_preproc_warn_flag in '' yes
3976
do
3977
  # Use a header file that comes with gcc, so configuring glibc
3978
  # with a fresh cross-compiler works.
3979
  # Prefer  to  if __STDC__ is defined, since
3980
  #  exists even on freestanding compilers.
3981
  # On the NeXT, cc -E runs the code through the compiler's parser,
3982
  # not just through cpp. "Syntax error" is here to catch this case.
3983
  cat >conftest.$ac_ext <<_ACEOF
3984
/* confdefs.h.  */
3985
_ACEOF
3986
cat confdefs.h >>conftest.$ac_ext
3987
cat >>conftest.$ac_ext <<_ACEOF
3988
/* end confdefs.h.  */
3989
@%:@ifdef __STDC__
3990
@%:@ include 
3991
@%:@else
3992
@%:@ include 
3993
@%:@endif
3994
                     Syntax error
3995
_ACEOF
3996
if { (ac_try="$ac_cpp conftest.$ac_ext"
3997
case "(($ac_try" in
3998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999
  *) ac_try_echo=$ac_try;;
4000
esac
4001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4003
  ac_status=$?
4004
  grep -v '^ *+' conftest.er1 >conftest.err
4005
  rm -f conftest.er1
4006
  cat conftest.err >&5
4007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
  (exit $ac_status); } >/dev/null && {
4009
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4010
         test ! -s conftest.err
4011
       }; then
4012
  :
4013
else
4014
  echo "$as_me: failed program was:" >&5
4015
sed 's/^/| /' conftest.$ac_ext >&5
4016
 
4017
  # Broken: fails on valid input.
4018
continue
4019
fi
4020
 
4021
rm -f conftest.err conftest.$ac_ext
4022
 
4023
  # OK, works on sane cases.  Now check whether nonexistent headers
4024
  # can be detected and how.
4025
  cat >conftest.$ac_ext <<_ACEOF
4026
/* confdefs.h.  */
4027
_ACEOF
4028
cat confdefs.h >>conftest.$ac_ext
4029
cat >>conftest.$ac_ext <<_ACEOF
4030
/* end confdefs.h.  */
4031
@%:@include 
4032
_ACEOF
4033
if { (ac_try="$ac_cpp conftest.$ac_ext"
4034
case "(($ac_try" in
4035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036
  *) ac_try_echo=$ac_try;;
4037
esac
4038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4040
  ac_status=$?
4041
  grep -v '^ *+' conftest.er1 >conftest.err
4042
  rm -f conftest.er1
4043
  cat conftest.err >&5
4044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045
  (exit $ac_status); } >/dev/null && {
4046
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4047
         test ! -s conftest.err
4048
       }; then
4049
  # Broken: success on invalid input.
4050
continue
4051
else
4052
  echo "$as_me: failed program was:" >&5
4053
sed 's/^/| /' conftest.$ac_ext >&5
4054
 
4055
  # Passes both tests.
4056
ac_preproc_ok=:
4057
break
4058
fi
4059
 
4060
rm -f conftest.err conftest.$ac_ext
4061
 
4062
done
4063
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064
rm -f conftest.err conftest.$ac_ext
4065
if $ac_preproc_ok; then
4066
  break
4067
fi
4068
 
4069
    done
4070
    ac_cv_prog_CPP=$CPP
4071
 
4072
fi
4073
  CPP=$ac_cv_prog_CPP
4074
else
4075
  ac_cv_prog_CPP=$CPP
4076
fi
4077
{ echo "$as_me:$LINENO: result: $CPP" >&5
4078
echo "${ECHO_T}$CPP" >&6; }
4079
ac_preproc_ok=false
4080
for ac_c_preproc_warn_flag in '' yes
4081
do
4082
  # Use a header file that comes with gcc, so configuring glibc
4083
  # with a fresh cross-compiler works.
4084
  # Prefer  to  if __STDC__ is defined, since
4085
  #  exists even on freestanding compilers.
4086
  # On the NeXT, cc -E runs the code through the compiler's parser,
4087
  # not just through cpp. "Syntax error" is here to catch this case.
4088
  cat >conftest.$ac_ext <<_ACEOF
4089
/* confdefs.h.  */
4090
_ACEOF
4091
cat confdefs.h >>conftest.$ac_ext
4092
cat >>conftest.$ac_ext <<_ACEOF
4093
/* end confdefs.h.  */
4094
@%:@ifdef __STDC__
4095
@%:@ include 
4096
@%:@else
4097
@%:@ include 
4098
@%:@endif
4099
                     Syntax error
4100
_ACEOF
4101
if { (ac_try="$ac_cpp conftest.$ac_ext"
4102
case "(($ac_try" in
4103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104
  *) ac_try_echo=$ac_try;;
4105
esac
4106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108
  ac_status=$?
4109
  grep -v '^ *+' conftest.er1 >conftest.err
4110
  rm -f conftest.er1
4111
  cat conftest.err >&5
4112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113
  (exit $ac_status); } >/dev/null && {
4114
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4115
         test ! -s conftest.err
4116
       }; then
4117
  :
4118
else
4119
  echo "$as_me: failed program was:" >&5
4120
sed 's/^/| /' conftest.$ac_ext >&5
4121
 
4122
  # Broken: fails on valid input.
4123
continue
4124
fi
4125
 
4126
rm -f conftest.err conftest.$ac_ext
4127
 
4128
  # OK, works on sane cases.  Now check whether nonexistent headers
4129
  # can be detected and how.
4130
  cat >conftest.$ac_ext <<_ACEOF
4131
/* confdefs.h.  */
4132
_ACEOF
4133
cat confdefs.h >>conftest.$ac_ext
4134
cat >>conftest.$ac_ext <<_ACEOF
4135
/* end confdefs.h.  */
4136
@%:@include 
4137
_ACEOF
4138
if { (ac_try="$ac_cpp conftest.$ac_ext"
4139
case "(($ac_try" in
4140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141
  *) ac_try_echo=$ac_try;;
4142
esac
4143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4145
  ac_status=$?
4146
  grep -v '^ *+' conftest.er1 >conftest.err
4147
  rm -f conftest.er1
4148
  cat conftest.err >&5
4149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150
  (exit $ac_status); } >/dev/null && {
4151
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4152
         test ! -s conftest.err
4153
       }; then
4154
  # Broken: success on invalid input.
4155
continue
4156
else
4157
  echo "$as_me: failed program was:" >&5
4158
sed 's/^/| /' conftest.$ac_ext >&5
4159
 
4160
  # Passes both tests.
4161
ac_preproc_ok=:
4162
break
4163
fi
4164
 
4165
rm -f conftest.err conftest.$ac_ext
4166
 
4167
done
4168
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4169
rm -f conftest.err conftest.$ac_ext
4170
if $ac_preproc_ok; then
4171
  :
4172
else
4173
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4174
See \`config.log' for more details." >&5
4175
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4176
See \`config.log' for more details." >&2;}
4177
   { (exit 1); exit 1; }; }
4178
fi
4179
 
4180
ac_ext=c
4181
ac_cpp='$CPP $CPPFLAGS'
4182
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
 
4186
 
4187
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4188
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4189
if test "${ac_cv_header_stdc+set}" = set; then
4190
  echo $ECHO_N "(cached) $ECHO_C" >&6
4191
else
4192
  cat >conftest.$ac_ext <<_ACEOF
4193
/* confdefs.h.  */
4194
_ACEOF
4195
cat confdefs.h >>conftest.$ac_ext
4196
cat >>conftest.$ac_ext <<_ACEOF
4197
/* end confdefs.h.  */
4198
#include 
4199
#include 
4200
#include 
4201
#include 
4202
 
4203
int
4204
main ()
4205
{
4206
 
4207
  ;
4208
  return 0;
4209
}
4210
_ACEOF
4211
rm -f conftest.$ac_objext
4212
if { (ac_try="$ac_compile"
4213
case "(($ac_try" in
4214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215
  *) ac_try_echo=$ac_try;;
4216
esac
4217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218
  (eval "$ac_compile") 2>conftest.er1
4219
  ac_status=$?
4220
  grep -v '^ *+' conftest.er1 >conftest.err
4221
  rm -f conftest.er1
4222
  cat conftest.err >&5
4223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224
  (exit $ac_status); } && {
4225
         test -z "$ac_c_werror_flag" ||
4226
         test ! -s conftest.err
4227
       } && test -s conftest.$ac_objext; then
4228
  ac_cv_header_stdc=yes
4229
else
4230
  echo "$as_me: failed program was:" >&5
4231
sed 's/^/| /' conftest.$ac_ext >&5
4232
 
4233
        ac_cv_header_stdc=no
4234
fi
4235
 
4236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237
 
4238
if test $ac_cv_header_stdc = yes; then
4239
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240
  cat >conftest.$ac_ext <<_ACEOF
4241
/* confdefs.h.  */
4242
_ACEOF
4243
cat confdefs.h >>conftest.$ac_ext
4244
cat >>conftest.$ac_ext <<_ACEOF
4245
/* end confdefs.h.  */
4246
#include 
4247
 
4248
_ACEOF
4249
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250
  $EGREP "memchr" >/dev/null 2>&1; then
4251
  :
4252
else
4253
  ac_cv_header_stdc=no
4254
fi
4255
rm -f conftest*
4256
 
4257
fi
4258
 
4259
if test $ac_cv_header_stdc = yes; then
4260
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261
  cat >conftest.$ac_ext <<_ACEOF
4262
/* confdefs.h.  */
4263
_ACEOF
4264
cat confdefs.h >>conftest.$ac_ext
4265
cat >>conftest.$ac_ext <<_ACEOF
4266
/* end confdefs.h.  */
4267
#include 
4268
 
4269
_ACEOF
4270
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271
  $EGREP "free" >/dev/null 2>&1; then
4272
  :
4273
else
4274
  ac_cv_header_stdc=no
4275
fi
4276
rm -f conftest*
4277
 
4278
fi
4279
 
4280
if test $ac_cv_header_stdc = yes; then
4281
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4282
  if test "$cross_compiling" = yes; then
4283
  :
4284
else
4285
  cat >conftest.$ac_ext <<_ACEOF
4286
/* confdefs.h.  */
4287
_ACEOF
4288
cat confdefs.h >>conftest.$ac_ext
4289
cat >>conftest.$ac_ext <<_ACEOF
4290
/* end confdefs.h.  */
4291
#include 
4292
#include 
4293
#if ((' ' & 0x0FF) == 0x020)
4294
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4295
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4296
#else
4297
# define ISLOWER(c) \
4298
                   (('a' <= (c) && (c) <= 'i') \
4299
                     || ('j' <= (c) && (c) <= 'r') \
4300
                     || ('s' <= (c) && (c) <= 'z'))
4301
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302
#endif
4303
 
4304
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4305
int
4306
main ()
4307
{
4308
  int i;
4309
  for (i = 0; i < 256; i++)
4310
    if (XOR (islower (i), ISLOWER (i))
4311
        || toupper (i) != TOUPPER (i))
4312
      return 2;
4313
  return 0;
4314
}
4315
_ACEOF
4316
rm -f conftest$ac_exeext
4317
if { (ac_try="$ac_link"
4318
case "(($ac_try" in
4319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320
  *) ac_try_echo=$ac_try;;
4321
esac
4322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323
  (eval "$ac_link") 2>&5
4324
  ac_status=$?
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327
  { (case "(($ac_try" in
4328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329
  *) ac_try_echo=$ac_try;;
4330
esac
4331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332
  (eval "$ac_try") 2>&5
4333
  ac_status=$?
4334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
  (exit $ac_status); }; }; then
4336
  :
4337
else
4338
  echo "$as_me: program exited with status $ac_status" >&5
4339
echo "$as_me: failed program was:" >&5
4340
sed 's/^/| /' conftest.$ac_ext >&5
4341
 
4342
( exit $ac_status )
4343
ac_cv_header_stdc=no
4344
fi
4345
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346
fi
4347
 
4348
 
4349
fi
4350
fi
4351
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4352
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4353
if test $ac_cv_header_stdc = yes; then
4354
 
4355
cat >>confdefs.h <<\_ACEOF
4356
@%:@define STDC_HEADERS 1
4357
_ACEOF
4358
 
4359
fi
4360
 
4361
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4362
 
4363
 
4364
 
4365
 
4366
 
4367
 
4368
 
4369
 
4370
 
4371
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4372
                  inttypes.h stdint.h unistd.h
4373
do
4374
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4375
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4376
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4377
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4378
  echo $ECHO_N "(cached) $ECHO_C" >&6
4379
else
4380
  cat >conftest.$ac_ext <<_ACEOF
4381
/* confdefs.h.  */
4382
_ACEOF
4383
cat confdefs.h >>conftest.$ac_ext
4384
cat >>conftest.$ac_ext <<_ACEOF
4385
/* end confdefs.h.  */
4386
$ac_includes_default
4387
 
4388
@%:@include <$ac_header>
4389
_ACEOF
4390
rm -f conftest.$ac_objext
4391
if { (ac_try="$ac_compile"
4392
case "(($ac_try" in
4393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394
  *) ac_try_echo=$ac_try;;
4395
esac
4396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397
  (eval "$ac_compile") 2>conftest.er1
4398
  ac_status=$?
4399
  grep -v '^ *+' conftest.er1 >conftest.err
4400
  rm -f conftest.er1
4401
  cat conftest.err >&5
4402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
  (exit $ac_status); } && {
4404
         test -z "$ac_c_werror_flag" ||
4405
         test ! -s conftest.err
4406
       } && test -s conftest.$ac_objext; then
4407
  eval "$as_ac_Header=yes"
4408
else
4409
  echo "$as_me: failed program was:" >&5
4410
sed 's/^/| /' conftest.$ac_ext >&5
4411
 
4412
        eval "$as_ac_Header=no"
4413
fi
4414
 
4415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416
fi
4417
ac_res=`eval echo '${'$as_ac_Header'}'`
4418
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4419
echo "${ECHO_T}$ac_res" >&6; }
4420
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421
  cat >>confdefs.h <<_ACEOF
4422
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423
_ACEOF
4424
 
4425
fi
4426
 
4427
done
4428
 
4429
 
4430
 
4431
for ac_header in dlfcn.h
4432
do
4433
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4435
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4436
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4437
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4438
  echo $ECHO_N "(cached) $ECHO_C" >&6
4439
fi
4440
ac_res=`eval echo '${'$as_ac_Header'}'`
4441
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4442
echo "${ECHO_T}$ac_res" >&6; }
4443
else
4444
  # Is the header compilable?
4445
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4446
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4447
cat >conftest.$ac_ext <<_ACEOF
4448
/* confdefs.h.  */
4449
_ACEOF
4450
cat confdefs.h >>conftest.$ac_ext
4451
cat >>conftest.$ac_ext <<_ACEOF
4452
/* end confdefs.h.  */
4453
$ac_includes_default
4454
@%:@include <$ac_header>
4455
_ACEOF
4456
rm -f conftest.$ac_objext
4457
if { (ac_try="$ac_compile"
4458
case "(($ac_try" in
4459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460
  *) ac_try_echo=$ac_try;;
4461
esac
4462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463
  (eval "$ac_compile") 2>conftest.er1
4464
  ac_status=$?
4465
  grep -v '^ *+' conftest.er1 >conftest.err
4466
  rm -f conftest.er1
4467
  cat conftest.err >&5
4468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469
  (exit $ac_status); } && {
4470
         test -z "$ac_c_werror_flag" ||
4471
         test ! -s conftest.err
4472
       } && test -s conftest.$ac_objext; then
4473
  ac_header_compiler=yes
4474
else
4475
  echo "$as_me: failed program was:" >&5
4476
sed 's/^/| /' conftest.$ac_ext >&5
4477
 
4478
        ac_header_compiler=no
4479
fi
4480
 
4481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4483
echo "${ECHO_T}$ac_header_compiler" >&6; }
4484
 
4485
# Is the header present?
4486
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4487
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4488
cat >conftest.$ac_ext <<_ACEOF
4489
/* confdefs.h.  */
4490
_ACEOF
4491
cat confdefs.h >>conftest.$ac_ext
4492
cat >>conftest.$ac_ext <<_ACEOF
4493
/* end confdefs.h.  */
4494
@%:@include <$ac_header>
4495
_ACEOF
4496
if { (ac_try="$ac_cpp conftest.$ac_ext"
4497
case "(($ac_try" in
4498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499
  *) ac_try_echo=$ac_try;;
4500
esac
4501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4503
  ac_status=$?
4504
  grep -v '^ *+' conftest.er1 >conftest.err
4505
  rm -f conftest.er1
4506
  cat conftest.err >&5
4507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508
  (exit $ac_status); } >/dev/null && {
4509
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510
         test ! -s conftest.err
4511
       }; then
4512
  ac_header_preproc=yes
4513
else
4514
  echo "$as_me: failed program was:" >&5
4515
sed 's/^/| /' conftest.$ac_ext >&5
4516
 
4517
  ac_header_preproc=no
4518
fi
4519
 
4520
rm -f conftest.err conftest.$ac_ext
4521
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522
echo "${ECHO_T}$ac_header_preproc" >&6; }
4523
 
4524
# So?  What about this header?
4525
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4526
  yes:no: )
4527
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4528
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4530
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4531
    ac_header_preproc=yes
4532
    ;;
4533
  no:yes:* )
4534
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4535
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4536
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4537
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4538
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4539
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4540
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4541
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4542
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4543
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4544
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4545
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4546
    ( cat <<\_ASBOX
4547
@%:@@%:@ ------------------------------------- @%:@@%:@
4548
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
4549
@%:@@%:@ ------------------------------------- @%:@@%:@
4550
_ASBOX
4551
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4552
    ;;
4553
esac
4554
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4555
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4556
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4557
  echo $ECHO_N "(cached) $ECHO_C" >&6
4558
else
4559
  eval "$as_ac_Header=\$ac_header_preproc"
4560
fi
4561
ac_res=`eval echo '${'$as_ac_Header'}'`
4562
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4563
echo "${ECHO_T}$ac_res" >&6; }
4564
 
4565
fi
4566
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4567
  cat >>confdefs.h <<_ACEOF
4568
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569
_ACEOF
4570
 
4571
fi
4572
 
4573
done
4574
 
4575
ac_ext=cpp
4576
ac_cpp='$CXXCPP $CPPFLAGS'
4577
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4580
if test -z "$CXX"; then
4581
  if test -n "$CCC"; then
4582
    CXX=$CCC
4583
  else
4584
    if test -n "$ac_tool_prefix"; then
4585
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4586
  do
4587
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4589
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4590
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4591
if test "${ac_cv_prog_CXX+set}" = set; then
4592
  echo $ECHO_N "(cached) $ECHO_C" >&6
4593
else
4594
  if test -n "$CXX"; then
4595
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4596
else
4597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598
for as_dir in $PATH
4599
do
4600
  IFS=$as_save_IFS
4601
  test -z "$as_dir" && as_dir=.
4602
  for ac_exec_ext in '' $ac_executable_extensions; do
4603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4605
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606
    break 2
4607
  fi
4608
done
4609
done
4610
IFS=$as_save_IFS
4611
 
4612
fi
4613
fi
4614
CXX=$ac_cv_prog_CXX
4615
if test -n "$CXX"; then
4616
  { echo "$as_me:$LINENO: result: $CXX" >&5
4617
echo "${ECHO_T}$CXX" >&6; }
4618
else
4619
  { echo "$as_me:$LINENO: result: no" >&5
4620
echo "${ECHO_T}no" >&6; }
4621
fi
4622
 
4623
 
4624
    test -n "$CXX" && break
4625
  done
4626
fi
4627
if test -z "$CXX"; then
4628
  ac_ct_CXX=$CXX
4629
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4630
do
4631
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4632
set dummy $ac_prog; ac_word=$2
4633
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4635
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4636
  echo $ECHO_N "(cached) $ECHO_C" >&6
4637
else
4638
  if test -n "$ac_ct_CXX"; then
4639
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4640
else
4641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642
for as_dir in $PATH
4643
do
4644
  IFS=$as_save_IFS
4645
  test -z "$as_dir" && as_dir=.
4646
  for ac_exec_ext in '' $ac_executable_extensions; do
4647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4649
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650
    break 2
4651
  fi
4652
done
4653
done
4654
IFS=$as_save_IFS
4655
 
4656
fi
4657
fi
4658
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4659
if test -n "$ac_ct_CXX"; then
4660
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4661
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4662
else
4663
  { echo "$as_me:$LINENO: result: no" >&5
4664
echo "${ECHO_T}no" >&6; }
4665
fi
4666
 
4667
 
4668
  test -n "$ac_ct_CXX" && break
4669
done
4670
 
4671
  if test "x$ac_ct_CXX" = x; then
4672
    CXX="g++"
4673
  else
4674
    case $cross_compiling:$ac_tool_warned in
4675
yes:)
4676
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4677
whose name does not start with the host triplet.  If you think this
4678
configuration is useful to you, please write to autoconf@gnu.org." >&5
4679
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4680
whose name does not start with the host triplet.  If you think this
4681
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4682
ac_tool_warned=yes ;;
4683
esac
4684
    CXX=$ac_ct_CXX
4685
  fi
4686
fi
4687
 
4688
  fi
4689
fi
4690
# Provide some information about the compiler.
4691
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4692
ac_compiler=`set X $ac_compile; echo $2`
4693
{ (ac_try="$ac_compiler --version >&5"
4694
case "(($ac_try" in
4695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696
  *) ac_try_echo=$ac_try;;
4697
esac
4698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699
  (eval "$ac_compiler --version >&5") 2>&5
4700
  ac_status=$?
4701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
  (exit $ac_status); }
4703
{ (ac_try="$ac_compiler -v >&5"
4704
case "(($ac_try" in
4705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706
  *) ac_try_echo=$ac_try;;
4707
esac
4708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709
  (eval "$ac_compiler -v >&5") 2>&5
4710
  ac_status=$?
4711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712
  (exit $ac_status); }
4713
{ (ac_try="$ac_compiler -V >&5"
4714
case "(($ac_try" in
4715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716
  *) ac_try_echo=$ac_try;;
4717
esac
4718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719
  (eval "$ac_compiler -V >&5") 2>&5
4720
  ac_status=$?
4721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722
  (exit $ac_status); }
4723
 
4724
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4725
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4726
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4727
  echo $ECHO_N "(cached) $ECHO_C" >&6
4728
else
4729
  cat >conftest.$ac_ext <<_ACEOF
4730
/* confdefs.h.  */
4731
_ACEOF
4732
cat confdefs.h >>conftest.$ac_ext
4733
cat >>conftest.$ac_ext <<_ACEOF
4734
/* end confdefs.h.  */
4735
 
4736
int
4737
main ()
4738
{
4739
#ifndef __GNUC__
4740
       choke me
4741
#endif
4742
 
4743
  ;
4744
  return 0;
4745
}
4746
_ACEOF
4747
rm -f conftest.$ac_objext
4748
if { (ac_try="$ac_compile"
4749
case "(($ac_try" in
4750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751
  *) ac_try_echo=$ac_try;;
4752
esac
4753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754
  (eval "$ac_compile") 2>conftest.er1
4755
  ac_status=$?
4756
  grep -v '^ *+' conftest.er1 >conftest.err
4757
  rm -f conftest.er1
4758
  cat conftest.err >&5
4759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760
  (exit $ac_status); } && {
4761
         test -z "$ac_cxx_werror_flag" ||
4762
         test ! -s conftest.err
4763
       } && test -s conftest.$ac_objext; then
4764
  ac_compiler_gnu=yes
4765
else
4766
  echo "$as_me: failed program was:" >&5
4767
sed 's/^/| /' conftest.$ac_ext >&5
4768
 
4769
        ac_compiler_gnu=no
4770
fi
4771
 
4772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4774
 
4775
fi
4776
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4777
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4778
GXX=`test $ac_compiler_gnu = yes && echo yes`
4779
ac_test_CXXFLAGS=${CXXFLAGS+set}
4780
ac_save_CXXFLAGS=$CXXFLAGS
4781
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4782
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4783
if test "${ac_cv_prog_cxx_g+set}" = set; then
4784
  echo $ECHO_N "(cached) $ECHO_C" >&6
4785
else
4786
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4787
   ac_cxx_werror_flag=yes
4788
   ac_cv_prog_cxx_g=no
4789
   CXXFLAGS="-g"
4790
   cat >conftest.$ac_ext <<_ACEOF
4791
/* confdefs.h.  */
4792
_ACEOF
4793
cat confdefs.h >>conftest.$ac_ext
4794
cat >>conftest.$ac_ext <<_ACEOF
4795
/* end confdefs.h.  */
4796
 
4797
int
4798
main ()
4799
{
4800
 
4801
  ;
4802
  return 0;
4803
}
4804
_ACEOF
4805
rm -f conftest.$ac_objext
4806
if { (ac_try="$ac_compile"
4807
case "(($ac_try" in
4808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809
  *) ac_try_echo=$ac_try;;
4810
esac
4811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812
  (eval "$ac_compile") 2>conftest.er1
4813
  ac_status=$?
4814
  grep -v '^ *+' conftest.er1 >conftest.err
4815
  rm -f conftest.er1
4816
  cat conftest.err >&5
4817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818
  (exit $ac_status); } && {
4819
         test -z "$ac_cxx_werror_flag" ||
4820
         test ! -s conftest.err
4821
       } && test -s conftest.$ac_objext; then
4822
  ac_cv_prog_cxx_g=yes
4823
else
4824
  echo "$as_me: failed program was:" >&5
4825
sed 's/^/| /' conftest.$ac_ext >&5
4826
 
4827
        CXXFLAGS=""
4828
      cat >conftest.$ac_ext <<_ACEOF
4829
/* confdefs.h.  */
4830
_ACEOF
4831
cat confdefs.h >>conftest.$ac_ext
4832
cat >>conftest.$ac_ext <<_ACEOF
4833
/* end confdefs.h.  */
4834
 
4835
int
4836
main ()
4837
{
4838
 
4839
  ;
4840
  return 0;
4841
}
4842
_ACEOF
4843
rm -f conftest.$ac_objext
4844
if { (ac_try="$ac_compile"
4845
case "(($ac_try" in
4846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847
  *) ac_try_echo=$ac_try;;
4848
esac
4849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850
  (eval "$ac_compile") 2>conftest.er1
4851
  ac_status=$?
4852
  grep -v '^ *+' conftest.er1 >conftest.err
4853
  rm -f conftest.er1
4854
  cat conftest.err >&5
4855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856
  (exit $ac_status); } && {
4857
         test -z "$ac_cxx_werror_flag" ||
4858
         test ! -s conftest.err
4859
       } && test -s conftest.$ac_objext; then
4860
  :
4861
else
4862
  echo "$as_me: failed program was:" >&5
4863
sed 's/^/| /' conftest.$ac_ext >&5
4864
 
4865
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4866
         CXXFLAGS="-g"
4867
         cat >conftest.$ac_ext <<_ACEOF
4868
/* confdefs.h.  */
4869
_ACEOF
4870
cat confdefs.h >>conftest.$ac_ext
4871
cat >>conftest.$ac_ext <<_ACEOF
4872
/* end confdefs.h.  */
4873
 
4874
int
4875
main ()
4876
{
4877
 
4878
  ;
4879
  return 0;
4880
}
4881
_ACEOF
4882
rm -f conftest.$ac_objext
4883
if { (ac_try="$ac_compile"
4884
case "(($ac_try" in
4885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886
  *) ac_try_echo=$ac_try;;
4887
esac
4888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889
  (eval "$ac_compile") 2>conftest.er1
4890
  ac_status=$?
4891
  grep -v '^ *+' conftest.er1 >conftest.err
4892
  rm -f conftest.er1
4893
  cat conftest.err >&5
4894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
  (exit $ac_status); } && {
4896
         test -z "$ac_cxx_werror_flag" ||
4897
         test ! -s conftest.err
4898
       } && test -s conftest.$ac_objext; then
4899
  ac_cv_prog_cxx_g=yes
4900
else
4901
  echo "$as_me: failed program was:" >&5
4902
sed 's/^/| /' conftest.$ac_ext >&5
4903
 
4904
 
4905
fi
4906
 
4907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908
fi
4909
 
4910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911
fi
4912
 
4913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4915
fi
4916
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4917
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4918
if test "$ac_test_CXXFLAGS" = set; then
4919
  CXXFLAGS=$ac_save_CXXFLAGS
4920
elif test $ac_cv_prog_cxx_g = yes; then
4921
  if test "$GXX" = yes; then
4922
    CXXFLAGS="-g -O2"
4923
  else
4924
    CXXFLAGS="-g"
4925
  fi
4926
else
4927
  if test "$GXX" = yes; then
4928
    CXXFLAGS="-O2"
4929
  else
4930
    CXXFLAGS=
4931
  fi
4932
fi
4933
ac_ext=cpp
4934
ac_cpp='$CXXCPP $CPPFLAGS'
4935
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938
 
4939
 
4940
 
4941
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4942
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4943
    (test "X$CXX" != "Xg++"))) ; then
4944
  ac_ext=cpp
4945
ac_cpp='$CXXCPP $CPPFLAGS'
4946
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4951
if test -z "$CXXCPP"; then
4952
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953
  echo $ECHO_N "(cached) $ECHO_C" >&6
4954
else
4955
      # Double quotes because CXXCPP needs to be expanded
4956
    for CXXCPP in "$CXX -E" "/lib/cpp"
4957
    do
4958
      ac_preproc_ok=false
4959
for ac_cxx_preproc_warn_flag in '' yes
4960
do
4961
  # Use a header file that comes with gcc, so configuring glibc
4962
  # with a fresh cross-compiler works.
4963
  # Prefer  to  if __STDC__ is defined, since
4964
  #  exists even on freestanding compilers.
4965
  # On the NeXT, cc -E runs the code through the compiler's parser,
4966
  # not just through cpp. "Syntax error" is here to catch this case.
4967
  cat >conftest.$ac_ext <<_ACEOF
4968
/* confdefs.h.  */
4969
_ACEOF
4970
cat confdefs.h >>conftest.$ac_ext
4971
cat >>conftest.$ac_ext <<_ACEOF
4972
/* end confdefs.h.  */
4973
@%:@ifdef __STDC__
4974
@%:@ include 
4975
@%:@else
4976
@%:@ include 
4977
@%:@endif
4978
                     Syntax error
4979
_ACEOF
4980
if { (ac_try="$ac_cpp conftest.$ac_ext"
4981
case "(($ac_try" in
4982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983
  *) ac_try_echo=$ac_try;;
4984
esac
4985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4987
  ac_status=$?
4988
  grep -v '^ *+' conftest.er1 >conftest.err
4989
  rm -f conftest.er1
4990
  cat conftest.err >&5
4991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992
  (exit $ac_status); } >/dev/null && {
4993
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4994
         test ! -s conftest.err
4995
       }; then
4996
  :
4997
else
4998
  echo "$as_me: failed program was:" >&5
4999
sed 's/^/| /' conftest.$ac_ext >&5
5000
 
5001
  # Broken: fails on valid input.
5002
continue
5003
fi
5004
 
5005
rm -f conftest.err conftest.$ac_ext
5006
 
5007
  # OK, works on sane cases.  Now check whether nonexistent headers
5008
  # can be detected and how.
5009
  cat >conftest.$ac_ext <<_ACEOF
5010
/* confdefs.h.  */
5011
_ACEOF
5012
cat confdefs.h >>conftest.$ac_ext
5013
cat >>conftest.$ac_ext <<_ACEOF
5014
/* end confdefs.h.  */
5015
@%:@include 
5016
_ACEOF
5017
if { (ac_try="$ac_cpp conftest.$ac_ext"
5018
case "(($ac_try" in
5019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020
  *) ac_try_echo=$ac_try;;
5021
esac
5022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024
  ac_status=$?
5025
  grep -v '^ *+' conftest.er1 >conftest.err
5026
  rm -f conftest.er1
5027
  cat conftest.err >&5
5028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029
  (exit $ac_status); } >/dev/null && {
5030
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5031
         test ! -s conftest.err
5032
       }; then
5033
  # Broken: success on invalid input.
5034
continue
5035
else
5036
  echo "$as_me: failed program was:" >&5
5037
sed 's/^/| /' conftest.$ac_ext >&5
5038
 
5039
  # Passes both tests.
5040
ac_preproc_ok=:
5041
break
5042
fi
5043
 
5044
rm -f conftest.err conftest.$ac_ext
5045
 
5046
done
5047
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048
rm -f conftest.err conftest.$ac_ext
5049
if $ac_preproc_ok; then
5050
  break
5051
fi
5052
 
5053
    done
5054
    ac_cv_prog_CXXCPP=$CXXCPP
5055
 
5056
fi
5057
  CXXCPP=$ac_cv_prog_CXXCPP
5058
else
5059
  ac_cv_prog_CXXCPP=$CXXCPP
5060
fi
5061
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5062
echo "${ECHO_T}$CXXCPP" >&6; }
5063
ac_preproc_ok=false
5064
for ac_cxx_preproc_warn_flag in '' yes
5065
do
5066
  # Use a header file that comes with gcc, so configuring glibc
5067
  # with a fresh cross-compiler works.
5068
  # Prefer  to  if __STDC__ is defined, since
5069
  #  exists even on freestanding compilers.
5070
  # On the NeXT, cc -E runs the code through the compiler's parser,
5071
  # not just through cpp. "Syntax error" is here to catch this case.
5072
  cat >conftest.$ac_ext <<_ACEOF
5073
/* confdefs.h.  */
5074
_ACEOF
5075
cat confdefs.h >>conftest.$ac_ext
5076
cat >>conftest.$ac_ext <<_ACEOF
5077
/* end confdefs.h.  */
5078
@%:@ifdef __STDC__
5079
@%:@ include 
5080
@%:@else
5081
@%:@ include 
5082
@%:@endif
5083
                     Syntax error
5084
_ACEOF
5085
if { (ac_try="$ac_cpp conftest.$ac_ext"
5086
case "(($ac_try" in
5087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088
  *) ac_try_echo=$ac_try;;
5089
esac
5090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092
  ac_status=$?
5093
  grep -v '^ *+' conftest.er1 >conftest.err
5094
  rm -f conftest.er1
5095
  cat conftest.err >&5
5096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097
  (exit $ac_status); } >/dev/null && {
5098
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5099
         test ! -s conftest.err
5100
       }; then
5101
  :
5102
else
5103
  echo "$as_me: failed program was:" >&5
5104
sed 's/^/| /' conftest.$ac_ext >&5
5105
 
5106
  # Broken: fails on valid input.
5107
continue
5108
fi
5109
 
5110
rm -f conftest.err conftest.$ac_ext
5111
 
5112
  # OK, works on sane cases.  Now check whether nonexistent headers
5113
  # can be detected and how.
5114
  cat >conftest.$ac_ext <<_ACEOF
5115
/* confdefs.h.  */
5116
_ACEOF
5117
cat confdefs.h >>conftest.$ac_ext
5118
cat >>conftest.$ac_ext <<_ACEOF
5119
/* end confdefs.h.  */
5120
@%:@include 
5121
_ACEOF
5122
if { (ac_try="$ac_cpp conftest.$ac_ext"
5123
case "(($ac_try" in
5124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125
  *) ac_try_echo=$ac_try;;
5126
esac
5127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5129
  ac_status=$?
5130
  grep -v '^ *+' conftest.er1 >conftest.err
5131
  rm -f conftest.er1
5132
  cat conftest.err >&5
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134
  (exit $ac_status); } >/dev/null && {
5135
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5136
         test ! -s conftest.err
5137
       }; then
5138
  # Broken: success on invalid input.
5139
continue
5140
else
5141
  echo "$as_me: failed program was:" >&5
5142
sed 's/^/| /' conftest.$ac_ext >&5
5143
 
5144
  # Passes both tests.
5145
ac_preproc_ok=:
5146
break
5147
fi
5148
 
5149
rm -f conftest.err conftest.$ac_ext
5150
 
5151
done
5152
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5153
rm -f conftest.err conftest.$ac_ext
5154
if $ac_preproc_ok; then
5155
  :
5156
else
5157
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5158
See \`config.log' for more details." >&5
5159
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5160
See \`config.log' for more details." >&2;}
5161
   { (exit 1); exit 1; }; }
5162
fi
5163
 
5164
ac_ext=cpp
5165
ac_cpp='$CXXCPP $CPPFLAGS'
5166
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5169
 
5170
fi
5171
 
5172
 
5173
ac_ext=f
5174
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5175
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5177
if test -n "$ac_tool_prefix"; then
5178
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5179
  do
5180
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184
if test "${ac_cv_prog_F77+set}" = set; then
5185
  echo $ECHO_N "(cached) $ECHO_C" >&6
5186
else
5187
  if test -n "$F77"; then
5188
  ac_cv_prog_F77="$F77" # Let the user override the test.
5189
else
5190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191
for as_dir in $PATH
5192
do
5193
  IFS=$as_save_IFS
5194
  test -z "$as_dir" && as_dir=.
5195
  for ac_exec_ext in '' $ac_executable_extensions; do
5196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5198
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199
    break 2
5200
  fi
5201
done
5202
done
5203
IFS=$as_save_IFS
5204
 
5205
fi
5206
fi
5207
F77=$ac_cv_prog_F77
5208
if test -n "$F77"; then
5209
  { echo "$as_me:$LINENO: result: $F77" >&5
5210
echo "${ECHO_T}$F77" >&6; }
5211
else
5212
  { echo "$as_me:$LINENO: result: no" >&5
5213
echo "${ECHO_T}no" >&6; }
5214
fi
5215
 
5216
 
5217
    test -n "$F77" && break
5218
  done
5219
fi
5220
if test -z "$F77"; then
5221
  ac_ct_F77=$F77
5222
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5223
do
5224
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5225
set dummy $ac_prog; ac_word=$2
5226
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5228
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229
  echo $ECHO_N "(cached) $ECHO_C" >&6
5230
else
5231
  if test -n "$ac_ct_F77"; then
5232
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5233
else
5234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235
for as_dir in $PATH
5236
do
5237
  IFS=$as_save_IFS
5238
  test -z "$as_dir" && as_dir=.
5239
  for ac_exec_ext in '' $ac_executable_extensions; do
5240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241
    ac_cv_prog_ac_ct_F77="$ac_prog"
5242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243
    break 2
5244
  fi
5245
done
5246
done
5247
IFS=$as_save_IFS
5248
 
5249
fi
5250
fi
5251
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5252
if test -n "$ac_ct_F77"; then
5253
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5254
echo "${ECHO_T}$ac_ct_F77" >&6; }
5255
else
5256
  { echo "$as_me:$LINENO: result: no" >&5
5257
echo "${ECHO_T}no" >&6; }
5258
fi
5259
 
5260
 
5261
  test -n "$ac_ct_F77" && break
5262
done
5263
 
5264
  if test "x$ac_ct_F77" = x; then
5265
    F77=""
5266
  else
5267
    case $cross_compiling:$ac_tool_warned in
5268
yes:)
5269
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5270
whose name does not start with the host triplet.  If you think this
5271
configuration is useful to you, please write to autoconf@gnu.org." >&5
5272
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5273
whose name does not start with the host triplet.  If you think this
5274
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5275
ac_tool_warned=yes ;;
5276
esac
5277
    F77=$ac_ct_F77
5278
  fi
5279
fi
5280
 
5281
 
5282
# Provide some information about the compiler.
5283
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5284
ac_compiler=`set X $ac_compile; echo $2`
5285
{ (ac_try="$ac_compiler --version >&5"
5286
case "(($ac_try" in
5287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288
  *) ac_try_echo=$ac_try;;
5289
esac
5290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291
  (eval "$ac_compiler --version >&5") 2>&5
5292
  ac_status=$?
5293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294
  (exit $ac_status); }
5295
{ (ac_try="$ac_compiler -v >&5"
5296
case "(($ac_try" in
5297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298
  *) ac_try_echo=$ac_try;;
5299
esac
5300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301
  (eval "$ac_compiler -v >&5") 2>&5
5302
  ac_status=$?
5303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304
  (exit $ac_status); }
5305
{ (ac_try="$ac_compiler -V >&5"
5306
case "(($ac_try" in
5307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308
  *) ac_try_echo=$ac_try;;
5309
esac
5310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311
  (eval "$ac_compiler -V >&5") 2>&5
5312
  ac_status=$?
5313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314
  (exit $ac_status); }
5315
rm -f a.out
5316
 
5317
# If we don't use `.F' as extension, the preprocessor is not run on the
5318
# input file.  (Note that this only needs to work for GNU compilers.)
5319
ac_save_ext=$ac_ext
5320
ac_ext=F
5321
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5322
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5323
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5324
  echo $ECHO_N "(cached) $ECHO_C" >&6
5325
else
5326
  cat >conftest.$ac_ext <<_ACEOF
5327
      program main
5328
#ifndef __GNUC__
5329
       choke me
5330
#endif
5331
 
5332
      end
5333
_ACEOF
5334
rm -f conftest.$ac_objext
5335
if { (ac_try="$ac_compile"
5336
case "(($ac_try" in
5337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338
  *) ac_try_echo=$ac_try;;
5339
esac
5340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341
  (eval "$ac_compile") 2>conftest.er1
5342
  ac_status=$?
5343
  grep -v '^ *+' conftest.er1 >conftest.err
5344
  rm -f conftest.er1
5345
  cat conftest.err >&5
5346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347
  (exit $ac_status); } && {
5348
         test -z "$ac_f77_werror_flag" ||
5349
         test ! -s conftest.err
5350
       } && test -s conftest.$ac_objext; then
5351
  ac_compiler_gnu=yes
5352
else
5353
  echo "$as_me: failed program was:" >&5
5354
sed 's/^/| /' conftest.$ac_ext >&5
5355
 
5356
        ac_compiler_gnu=no
5357
fi
5358
 
5359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5361
 
5362
fi
5363
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5364
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5365
ac_ext=$ac_save_ext
5366
ac_test_FFLAGS=${FFLAGS+set}
5367
ac_save_FFLAGS=$FFLAGS
5368
FFLAGS=
5369
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5370
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5371
if test "${ac_cv_prog_f77_g+set}" = set; then
5372
  echo $ECHO_N "(cached) $ECHO_C" >&6
5373
else
5374
  FFLAGS=-g
5375
cat >conftest.$ac_ext <<_ACEOF
5376
      program main
5377
 
5378
      end
5379
_ACEOF
5380
rm -f conftest.$ac_objext
5381
if { (ac_try="$ac_compile"
5382
case "(($ac_try" in
5383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384
  *) ac_try_echo=$ac_try;;
5385
esac
5386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387
  (eval "$ac_compile") 2>conftest.er1
5388
  ac_status=$?
5389
  grep -v '^ *+' conftest.er1 >conftest.err
5390
  rm -f conftest.er1
5391
  cat conftest.err >&5
5392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393
  (exit $ac_status); } && {
5394
         test -z "$ac_f77_werror_flag" ||
5395
         test ! -s conftest.err
5396
       } && test -s conftest.$ac_objext; then
5397
  ac_cv_prog_f77_g=yes
5398
else
5399
  echo "$as_me: failed program was:" >&5
5400
sed 's/^/| /' conftest.$ac_ext >&5
5401
 
5402
        ac_cv_prog_f77_g=no
5403
fi
5404
 
5405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406
 
5407
fi
5408
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5409
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5410
if test "$ac_test_FFLAGS" = set; then
5411
  FFLAGS=$ac_save_FFLAGS
5412
elif test $ac_cv_prog_f77_g = yes; then
5413
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5414
    FFLAGS="-g -O2"
5415
  else
5416
    FFLAGS="-g"
5417
  fi
5418
else
5419
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5420
    FFLAGS="-O2"
5421
  else
5422
    FFLAGS=
5423
  fi
5424
fi
5425
 
5426
G77=`test $ac_compiler_gnu = yes && echo yes`
5427
ac_ext=c
5428
ac_cpp='$CPP $CPPFLAGS'
5429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432
 
5433
 
5434
 
5435
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5436
 
5437
# find the maximum length of command line arguments
5438
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5439
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5440
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5441
  echo $ECHO_N "(cached) $ECHO_C" >&6
5442
else
5443
    i=0
5444
  teststring="ABCD"
5445
 
5446
  case $build_os in
5447
  msdosdjgpp*)
5448
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5449
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5450
    # during glob expansion).  Even if it were fixed, the result of this
5451
    # check would be larger than it should be.
5452
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5453
    ;;
5454
 
5455
  gnu*)
5456
    # Under GNU Hurd, this test is not required because there is
5457
    # no limit to the length of command line arguments.
5458
    # Libtool will interpret -1 as no limit whatsoever
5459
    lt_cv_sys_max_cmd_len=-1;
5460
    ;;
5461
 
5462
  cygwin* | mingw*)
5463
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5464
    # about 5 minutes as the teststring grows exponentially.
5465
    # Worse, since 9x/ME are not pre-emptively multitasking,
5466
    # you end up with a "frozen" computer, even though with patience
5467
    # the test eventually succeeds (with a max line length of 256k).
5468
    # Instead, let's just punt: use the minimum linelength reported by
5469
    # all of the supported platforms: 8192 (on NT/2K/XP).
5470
    lt_cv_sys_max_cmd_len=8192;
5471
    ;;
5472
 
5473
  amigaos*)
5474
    # On AmigaOS with pdksh, this test takes hours, literally.
5475
    # So we just punt and use a minimum line length of 8192.
5476
    lt_cv_sys_max_cmd_len=8192;
5477
    ;;
5478
 
5479
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5480
    # This has been around since 386BSD, at least.  Likely further.
5481
    if test -x /sbin/sysctl; then
5482
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5483
    elif test -x /usr/sbin/sysctl; then
5484
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5485
    else
5486
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5487
    fi
5488
    # And add a safety zone
5489
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5490
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5491
    ;;
5492
 
5493
  interix*)
5494
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5495
    lt_cv_sys_max_cmd_len=196608
5496
    ;;
5497
 
5498
  osf*)
5499
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5500
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5501
    # nice to cause kernel panics so lets avoid the loop below.
5502
    # First set a reasonable default.
5503
    lt_cv_sys_max_cmd_len=16384
5504
    #
5505
    if test -x /sbin/sysconfig; then
5506
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5507
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5508
      esac
5509
    fi
5510
    ;;
5511
  sco3.2v5*)
5512
    lt_cv_sys_max_cmd_len=102400
5513
    ;;
5514
  sysv5* | sco5v6* | sysv4.2uw2*)
5515
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5516
    if test -n "$kargmax"; then
5517
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5518
    else
5519
      lt_cv_sys_max_cmd_len=32768
5520
    fi
5521
    ;;
5522
  *)
5523
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5524
    if test -n "$lt_cv_sys_max_cmd_len"; then
5525
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5526
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5527
    else
5528
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5529
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5530
               = "XX$teststring") >/dev/null 2>&1 &&
5531
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
5532
              lt_cv_sys_max_cmd_len=$new_result &&
5533
              test $i != 17 # 1/2 MB should be enough
5534
      do
5535
        i=`expr $i + 1`
5536
        teststring=$teststring$teststring
5537
      done
5538
      teststring=
5539
      # Add a significant safety factor because C++ compilers can tack on massive
5540
      # amounts of additional arguments before passing them to the linker.
5541
      # It appears as though 1/2 is a usable value.
5542
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5543
    fi
5544
    ;;
5545
  esac
5546
 
5547
fi
5548
 
5549
if test -n $lt_cv_sys_max_cmd_len ; then
5550
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5552
else
5553
  { echo "$as_me:$LINENO: result: none" >&5
5554
echo "${ECHO_T}none" >&6; }
5555
fi
5556
 
5557
 
5558
 
5559
 
5560
 
5561
# Check for command to grab the raw symbol name followed by C symbol from nm.
5562
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5563
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5564
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5565
  echo $ECHO_N "(cached) $ECHO_C" >&6
5566
else
5567
 
5568
# These are sane defaults that work on at least a few old systems.
5569
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5570
 
5571
# Character class describing NM global symbol codes.
5572
symcode='[BCDEGRST]'
5573
 
5574
# Regexp to match symbols that can be accessed directly from C.
5575
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5576
 
5577
# Transform an extracted symbol line into a proper C declaration
5578
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5579
 
5580
# Transform an extracted symbol line into symbol name and symbol address
5581
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5582
 
5583
# Define system-specific variables.
5584
case $host_os in
5585
aix*)
5586
  symcode='[BCDT]'
5587
  ;;
5588
cygwin* | mingw* | pw32*)
5589
  symcode='[ABCDGISTW]'
5590
  ;;
5591
hpux*) # Its linker distinguishes data from code symbols
5592
  if test "$host_cpu" = ia64; then
5593
    symcode='[ABCDEGRST]'
5594
  fi
5595
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5596
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5597
  ;;
5598
linux* | k*bsd*-gnu)
5599
  if test "$host_cpu" = ia64; then
5600
    symcode='[ABCDGIRSTW]'
5601
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5602
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5603
  fi
5604
  ;;
5605
irix* | nonstopux*)
5606
  symcode='[BCDEGRST]'
5607
  ;;
5608
osf*)
5609
  symcode='[BCDEGQRST]'
5610
  ;;
5611
solaris*)
5612
  symcode='[BDRT]'
5613
  ;;
5614
sco3.2v5*)
5615
  symcode='[DT]'
5616
  ;;
5617
sysv4.2uw2*)
5618
  symcode='[DT]'
5619
  ;;
5620
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5621
  symcode='[ABDT]'
5622
  ;;
5623
sysv4)
5624
  symcode='[DFNSTU]'
5625
  ;;
5626
esac
5627
 
5628
# Handle CRLF in mingw tool chain
5629
opt_cr=
5630
case $build_os in
5631
mingw*)
5632
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5633
  ;;
5634
esac
5635
 
5636
# If we're using GNU nm, then use its standard symbol codes.
5637
case `$NM -V 2>&1` in
5638
*GNU* | *'with BFD'*)
5639
  symcode='[ABCDGIRSTW]' ;;
5640
esac
5641
 
5642
# Try without a prefix undercore, then with it.
5643
for ac_symprfx in "" "_"; do
5644
 
5645
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5646
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5647
 
5648
  # Write the raw and C identifiers.
5649
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5650
 
5651
  # Check to see that the pipe works correctly.
5652
  pipe_works=no
5653
 
5654
  rm -f conftest*
5655
  cat > conftest.$ac_ext <
5656
#ifdef __cplusplus
5657
extern "C" {
5658
#endif
5659
char nm_test_var;
5660
void nm_test_func(){}
5661
#ifdef __cplusplus
5662
}
5663
#endif
5664
int main(){nm_test_var='a';nm_test_func();return(0);}
5665
EOF
5666
 
5667
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668
  (eval $ac_compile) 2>&5
5669
  ac_status=$?
5670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671
  (exit $ac_status); }; then
5672
    # Now try to grab the symbols.
5673
    nlist=conftest.nm
5674
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5675
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5676
  ac_status=$?
5677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678
  (exit $ac_status); } && test -s "$nlist"; then
5679
      # Try sorting and uniquifying the output.
5680
      if sort "$nlist" | uniq > "$nlist"T; then
5681
        mv -f "$nlist"T "$nlist"
5682
      else
5683
        rm -f "$nlist"T
5684
      fi
5685
 
5686
      # Make sure that we snagged all the symbols we need.
5687
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5688
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5689
          cat < conftest.$ac_ext
5690
#ifdef __cplusplus
5691
extern "C" {
5692
#endif
5693
 
5694
EOF
5695
          # Now generate the symbol file.
5696
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5697
 
5698
          cat <> conftest.$ac_ext
5699
#if defined (__STDC__) && __STDC__
5700
# define lt_ptr_t void *
5701
#else
5702
# define lt_ptr_t char *
5703
# define const
5704
#endif
5705
 
5706
/* The mapping between symbol names and symbols. */
5707
const struct {
5708
  const char *name;
5709
  lt_ptr_t address;
5710
}
5711
lt_preloaded_symbols[] =
5712
{
5713
EOF
5714
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5715
          cat <<\EOF >> conftest.$ac_ext
5716
  {0, (lt_ptr_t) 0}
5717
};
5718
 
5719
#ifdef __cplusplus
5720
}
5721
#endif
5722
EOF
5723
          # Now try linking the two files.
5724
          mv conftest.$ac_objext conftstm.$ac_objext
5725
          lt_save_LIBS="$LIBS"
5726
          lt_save_CFLAGS="$CFLAGS"
5727
          LIBS="conftstm.$ac_objext"
5728
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5729
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5730
  (eval $ac_link) 2>&5
5731
  ac_status=$?
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5734
            pipe_works=yes
5735
          fi
5736
          LIBS="$lt_save_LIBS"
5737
          CFLAGS="$lt_save_CFLAGS"
5738
        else
5739
          echo "cannot find nm_test_func in $nlist" >&5
5740
        fi
5741
      else
5742
        echo "cannot find nm_test_var in $nlist" >&5
5743
      fi
5744
    else
5745
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5746
    fi
5747
  else
5748
    echo "$progname: failed program was:" >&5
5749
    cat conftest.$ac_ext >&5
5750
  fi
5751
  rm -f conftest* conftst*
5752
 
5753
  # Do not use the global_symbol_pipe unless it works.
5754
  if test "$pipe_works" = yes; then
5755
    break
5756
  else
5757
    lt_cv_sys_global_symbol_pipe=
5758
  fi
5759
done
5760
 
5761
fi
5762
 
5763
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5764
  lt_cv_sys_global_symbol_to_cdecl=
5765
fi
5766
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5767
  { echo "$as_me:$LINENO: result: failed" >&5
5768
echo "${ECHO_T}failed" >&6; }
5769
else
5770
  { echo "$as_me:$LINENO: result: ok" >&5
5771
echo "${ECHO_T}ok" >&6; }
5772
fi
5773
 
5774
{ echo "$as_me:$LINENO: checking for objdir" >&5
5775
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5776
if test "${lt_cv_objdir+set}" = set; then
5777
  echo $ECHO_N "(cached) $ECHO_C" >&6
5778
else
5779
  rm -f .libs 2>/dev/null
5780
mkdir .libs 2>/dev/null
5781
if test -d .libs; then
5782
  lt_cv_objdir=.libs
5783
else
5784
  # MS-DOS does not allow filenames that begin with a dot.
5785
  lt_cv_objdir=_libs
5786
fi
5787
rmdir .libs 2>/dev/null
5788
fi
5789
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5790
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5791
objdir=$lt_cv_objdir
5792
 
5793
 
5794
 
5795
 
5796
 
5797
case $host_os in
5798
aix3*)
5799
  # AIX sometimes has problems with the GCC collect2 program.  For some
5800
  # reason, if we set the COLLECT_NAMES environment variable, the problems
5801
  # vanish in a puff of smoke.
5802
  if test "X${COLLECT_NAMES+set}" != Xset; then
5803
    COLLECT_NAMES=
5804
    export COLLECT_NAMES
5805
  fi
5806
  ;;
5807
esac
5808
 
5809
# Sed substitution that helps us do robust quoting.  It backslashifies
5810
# metacharacters that are still active within double-quoted strings.
5811
Xsed='sed -e 1s/^X//'
5812
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5813
 
5814
# Same as above, but do not quote variable references.
5815
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5816
 
5817
# Sed substitution to delay expansion of an escaped shell variable in a
5818
# double_quote_subst'ed string.
5819
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5820
 
5821
# Sed substitution to avoid accidental globbing in evaled expressions
5822
no_glob_subst='s/\*/\\\*/g'
5823
 
5824
# Constants:
5825
rm="rm -f"
5826
 
5827
# Global variables:
5828
default_ofile=libtool
5829
can_build_shared=yes
5830
 
5831
# All known linkers require a `.a' archive for static linking (except MSVC,
5832
# which needs '.lib').
5833
libext=a
5834
ltmain="$ac_aux_dir/ltmain.sh"
5835
ofile="$default_ofile"
5836
with_gnu_ld="$lt_cv_prog_gnu_ld"
5837
 
5838
if test -n "$ac_tool_prefix"; then
5839
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5840
set dummy ${ac_tool_prefix}ar; ac_word=$2
5841
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5842
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843
if test "${ac_cv_prog_AR+set}" = set; then
5844
  echo $ECHO_N "(cached) $ECHO_C" >&6
5845
else
5846
  if test -n "$AR"; then
5847
  ac_cv_prog_AR="$AR" # Let the user override the test.
5848
else
5849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850
for as_dir in $PATH
5851
do
5852
  IFS=$as_save_IFS
5853
  test -z "$as_dir" && as_dir=.
5854
  for ac_exec_ext in '' $ac_executable_extensions; do
5855
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5857
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858
    break 2
5859
  fi
5860
done
5861
done
5862
IFS=$as_save_IFS
5863
 
5864
fi
5865
fi
5866
AR=$ac_cv_prog_AR
5867
if test -n "$AR"; then
5868
  { echo "$as_me:$LINENO: result: $AR" >&5
5869
echo "${ECHO_T}$AR" >&6; }
5870
else
5871
  { echo "$as_me:$LINENO: result: no" >&5
5872
echo "${ECHO_T}no" >&6; }
5873
fi
5874
 
5875
 
5876
fi
5877
if test -z "$ac_cv_prog_AR"; then
5878
  ac_ct_AR=$AR
5879
  # Extract the first word of "ar", so it can be a program name with args.
5880
set dummy ar; ac_word=$2
5881
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5884
  echo $ECHO_N "(cached) $ECHO_C" >&6
5885
else
5886
  if test -n "$ac_ct_AR"; then
5887
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5888
else
5889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890
for as_dir in $PATH
5891
do
5892
  IFS=$as_save_IFS
5893
  test -z "$as_dir" && as_dir=.
5894
  for ac_exec_ext in '' $ac_executable_extensions; do
5895
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896
    ac_cv_prog_ac_ct_AR="ar"
5897
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898
    break 2
5899
  fi
5900
done
5901
done
5902
IFS=$as_save_IFS
5903
 
5904
fi
5905
fi
5906
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5907
if test -n "$ac_ct_AR"; then
5908
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5909
echo "${ECHO_T}$ac_ct_AR" >&6; }
5910
else
5911
  { echo "$as_me:$LINENO: result: no" >&5
5912
echo "${ECHO_T}no" >&6; }
5913
fi
5914
 
5915
  if test "x$ac_ct_AR" = x; then
5916
    AR="false"
5917
  else
5918
    case $cross_compiling:$ac_tool_warned in
5919
yes:)
5920
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5921
whose name does not start with the host triplet.  If you think this
5922
configuration is useful to you, please write to autoconf@gnu.org." >&5
5923
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5924
whose name does not start with the host triplet.  If you think this
5925
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5926
ac_tool_warned=yes ;;
5927
esac
5928
    AR=$ac_ct_AR
5929
  fi
5930
else
5931
  AR="$ac_cv_prog_AR"
5932
fi
5933
 
5934
if test -n "$ac_tool_prefix"; then
5935
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5936
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5937
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5938
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939
if test "${ac_cv_prog_RANLIB+set}" = set; then
5940
  echo $ECHO_N "(cached) $ECHO_C" >&6
5941
else
5942
  if test -n "$RANLIB"; then
5943
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5944
else
5945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946
for as_dir in $PATH
5947
do
5948
  IFS=$as_save_IFS
5949
  test -z "$as_dir" && as_dir=.
5950
  for ac_exec_ext in '' $ac_executable_extensions; do
5951
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5953
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954
    break 2
5955
  fi
5956
done
5957
done
5958
IFS=$as_save_IFS
5959
 
5960
fi
5961
fi
5962
RANLIB=$ac_cv_prog_RANLIB
5963
if test -n "$RANLIB"; then
5964
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5965
echo "${ECHO_T}$RANLIB" >&6; }
5966
else
5967
  { echo "$as_me:$LINENO: result: no" >&5
5968
echo "${ECHO_T}no" >&6; }
5969
fi
5970
 
5971
 
5972
fi
5973
if test -z "$ac_cv_prog_RANLIB"; then
5974
  ac_ct_RANLIB=$RANLIB
5975
  # Extract the first word of "ranlib", so it can be a program name with args.
5976
set dummy ranlib; ac_word=$2
5977
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5980
  echo $ECHO_N "(cached) $ECHO_C" >&6
5981
else
5982
  if test -n "$ac_ct_RANLIB"; then
5983
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5984
else
5985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986
for as_dir in $PATH
5987
do
5988
  IFS=$as_save_IFS
5989
  test -z "$as_dir" && as_dir=.
5990
  for ac_exec_ext in '' $ac_executable_extensions; do
5991
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994
    break 2
5995
  fi
5996
done
5997
done
5998
IFS=$as_save_IFS
5999
 
6000
fi
6001
fi
6002
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6003
if test -n "$ac_ct_RANLIB"; then
6004
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6005
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6006
else
6007
  { echo "$as_me:$LINENO: result: no" >&5
6008
echo "${ECHO_T}no" >&6; }
6009
fi
6010
 
6011
  if test "x$ac_ct_RANLIB" = x; then
6012
    RANLIB=":"
6013
  else
6014
    case $cross_compiling:$ac_tool_warned in
6015
yes:)
6016
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6017
whose name does not start with the host triplet.  If you think this
6018
configuration is useful to you, please write to autoconf@gnu.org." >&5
6019
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6020
whose name does not start with the host triplet.  If you think this
6021
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6022
ac_tool_warned=yes ;;
6023
esac
6024
    RANLIB=$ac_ct_RANLIB
6025
  fi
6026
else
6027
  RANLIB="$ac_cv_prog_RANLIB"
6028
fi
6029
 
6030
if test -n "$ac_tool_prefix"; then
6031
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032
set dummy ${ac_tool_prefix}strip; ac_word=$2
6033
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035
if test "${ac_cv_prog_STRIP+set}" = set; then
6036
  echo $ECHO_N "(cached) $ECHO_C" >&6
6037
else
6038
  if test -n "$STRIP"; then
6039
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6040
else
6041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042
for as_dir in $PATH
6043
do
6044
  IFS=$as_save_IFS
6045
  test -z "$as_dir" && as_dir=.
6046
  for ac_exec_ext in '' $ac_executable_extensions; do
6047
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050
    break 2
6051
  fi
6052
done
6053
done
6054
IFS=$as_save_IFS
6055
 
6056
fi
6057
fi
6058
STRIP=$ac_cv_prog_STRIP
6059
if test -n "$STRIP"; then
6060
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6061
echo "${ECHO_T}$STRIP" >&6; }
6062
else
6063
  { echo "$as_me:$LINENO: result: no" >&5
6064
echo "${ECHO_T}no" >&6; }
6065
fi
6066
 
6067
 
6068
fi
6069
if test -z "$ac_cv_prog_STRIP"; then
6070
  ac_ct_STRIP=$STRIP
6071
  # Extract the first word of "strip", so it can be a program name with args.
6072
set dummy strip; ac_word=$2
6073
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6076
  echo $ECHO_N "(cached) $ECHO_C" >&6
6077
else
6078
  if test -n "$ac_ct_STRIP"; then
6079
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080
else
6081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082
for as_dir in $PATH
6083
do
6084
  IFS=$as_save_IFS
6085
  test -z "$as_dir" && as_dir=.
6086
  for ac_exec_ext in '' $ac_executable_extensions; do
6087
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088
    ac_cv_prog_ac_ct_STRIP="strip"
6089
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090
    break 2
6091
  fi
6092
done
6093
done
6094
IFS=$as_save_IFS
6095
 
6096
fi
6097
fi
6098
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099
if test -n "$ac_ct_STRIP"; then
6100
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6101
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6102
else
6103
  { echo "$as_me:$LINENO: result: no" >&5
6104
echo "${ECHO_T}no" >&6; }
6105
fi
6106
 
6107
  if test "x$ac_ct_STRIP" = x; then
6108
    STRIP=":"
6109
  else
6110
    case $cross_compiling:$ac_tool_warned in
6111
yes:)
6112
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113
whose name does not start with the host triplet.  If you think this
6114
configuration is useful to you, please write to autoconf@gnu.org." >&5
6115
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116
whose name does not start with the host triplet.  If you think this
6117
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6118
ac_tool_warned=yes ;;
6119
esac
6120
    STRIP=$ac_ct_STRIP
6121
  fi
6122
else
6123
  STRIP="$ac_cv_prog_STRIP"
6124
fi
6125
 
6126
 
6127
old_CC="$CC"
6128
old_CFLAGS="$CFLAGS"
6129
 
6130
# Set sane defaults for various variables
6131
test -z "$AR" && AR=ar
6132
test -z "$AR_FLAGS" && AR_FLAGS=cru
6133
test -z "$AS" && AS=as
6134
test -z "$CC" && CC=cc
6135
test -z "$LTCC" && LTCC=$CC
6136
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6137
test -z "$DLLTOOL" && DLLTOOL=dlltool
6138
test -z "$LD" && LD=ld
6139
test -z "$LN_S" && LN_S="ln -s"
6140
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6141
test -z "$NM" && NM=nm
6142
test -z "$SED" && SED=sed
6143
test -z "$OBJDUMP" && OBJDUMP=objdump
6144
test -z "$RANLIB" && RANLIB=:
6145
test -z "$STRIP" && STRIP=:
6146
test -z "$ac_objext" && ac_objext=o
6147
 
6148
# Determine commands to create old-style static archives.
6149
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6150
old_postinstall_cmds='chmod 644 $oldlib'
6151
old_postuninstall_cmds=
6152
 
6153
if test -n "$RANLIB"; then
6154
  case $host_os in
6155
  openbsd*)
6156
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6157
    ;;
6158
  *)
6159
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6160
    ;;
6161
  esac
6162
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6163
fi
6164
 
6165
for cc_temp in $compiler""; do
6166
  case $cc_temp in
6167
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6168
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6169
    \-*) ;;
6170
    *) break;;
6171
  esac
6172
done
6173
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6174
 
6175
 
6176
# Only perform the check for file, if the check method requires it
6177
case $deplibs_check_method in
6178
file_magic*)
6179
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6180
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6181
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6182
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6183
  echo $ECHO_N "(cached) $ECHO_C" >&6
6184
else
6185
  case $MAGIC_CMD in
6186
[\\/*] |  ?:[\\/]*)
6187
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6188
  ;;
6189
*)
6190
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6191
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6192
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6193
  for ac_dir in $ac_dummy; do
6194
    IFS="$lt_save_ifs"
6195
    test -z "$ac_dir" && ac_dir=.
6196
    if test -f $ac_dir/${ac_tool_prefix}file; then
6197
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6198
      if test -n "$file_magic_test_file"; then
6199
        case $deplibs_check_method in
6200
        "file_magic "*)
6201
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6202
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6203
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6204
            $EGREP "$file_magic_regex" > /dev/null; then
6205
            :
6206
          else
6207
            cat <&2
6208
 
6209
*** Warning: the command libtool uses to detect shared libraries,
6210
*** $file_magic_cmd, produces output that libtool cannot recognize.
6211
*** The result is that libtool may fail to recognize shared libraries
6212
*** as such.  This will affect the creation of libtool libraries that
6213
*** depend on shared libraries, but programs linked with such libtool
6214
*** libraries will work regardless of this problem.  Nevertheless, you
6215
*** may want to report the problem to your system manager and/or to
6216
*** bug-libtool@gnu.org
6217
 
6218
EOF
6219
          fi ;;
6220
        esac
6221
      fi
6222
      break
6223
    fi
6224
  done
6225
  IFS="$lt_save_ifs"
6226
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6227
  ;;
6228
esac
6229
fi
6230
 
6231
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6232
if test -n "$MAGIC_CMD"; then
6233
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6234
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6235
else
6236
  { echo "$as_me:$LINENO: result: no" >&5
6237
echo "${ECHO_T}no" >&6; }
6238
fi
6239
 
6240
if test -z "$lt_cv_path_MAGIC_CMD"; then
6241
  if test -n "$ac_tool_prefix"; then
6242
    { echo "$as_me:$LINENO: checking for file" >&5
6243
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6244
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6245
  echo $ECHO_N "(cached) $ECHO_C" >&6
6246
else
6247
  case $MAGIC_CMD in
6248
[\\/*] |  ?:[\\/]*)
6249
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6250
  ;;
6251
*)
6252
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6253
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6254
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6255
  for ac_dir in $ac_dummy; do
6256
    IFS="$lt_save_ifs"
6257
    test -z "$ac_dir" && ac_dir=.
6258
    if test -f $ac_dir/file; then
6259
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6260
      if test -n "$file_magic_test_file"; then
6261
        case $deplibs_check_method in
6262
        "file_magic "*)
6263
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6264
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6265
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6266
            $EGREP "$file_magic_regex" > /dev/null; then
6267
            :
6268
          else
6269
            cat <&2
6270
 
6271
*** Warning: the command libtool uses to detect shared libraries,
6272
*** $file_magic_cmd, produces output that libtool cannot recognize.
6273
*** The result is that libtool may fail to recognize shared libraries
6274
*** as such.  This will affect the creation of libtool libraries that
6275
*** depend on shared libraries, but programs linked with such libtool
6276
*** libraries will work regardless of this problem.  Nevertheless, you
6277
*** may want to report the problem to your system manager and/or to
6278
*** bug-libtool@gnu.org
6279
 
6280
EOF
6281
          fi ;;
6282
        esac
6283
      fi
6284
      break
6285
    fi
6286
  done
6287
  IFS="$lt_save_ifs"
6288
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6289
  ;;
6290
esac
6291
fi
6292
 
6293
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6294
if test -n "$MAGIC_CMD"; then
6295
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6296
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6297
else
6298
  { echo "$as_me:$LINENO: result: no" >&5
6299
echo "${ECHO_T}no" >&6; }
6300
fi
6301
 
6302
  else
6303
    MAGIC_CMD=:
6304
  fi
6305
fi
6306
 
6307
  fi
6308
  ;;
6309
esac
6310
 
6311
enable_dlopen=no
6312
enable_win32_dll=no
6313
 
6314
# Check whether --enable-libtool-lock was given.
6315
if test "${enable_libtool_lock+set}" = set; then
6316
  enableval=$enable_libtool_lock;
6317
fi
6318
 
6319
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6320
 
6321
 
6322
# Check whether --with-pic was given.
6323
if test "${with_pic+set}" = set; then
6324
  withval=$with_pic; pic_mode="$withval"
6325
else
6326
  pic_mode=default
6327
fi
6328
 
6329
test -z "$pic_mode" && pic_mode=default
6330
 
6331
# Use C for the default configuration in the libtool script
6332
tagname=
6333
lt_save_CC="$CC"
6334
ac_ext=c
6335
ac_cpp='$CPP $CPPFLAGS'
6336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6339
 
6340
 
6341
# Source file extension for C test sources.
6342
ac_ext=c
6343
 
6344
# Object file extension for compiled C test sources.
6345
objext=o
6346
objext=$objext
6347
 
6348
# Code to be used in simple compile tests
6349
lt_simple_compile_test_code="int some_variable = 0;"
6350
 
6351
# Code to be used in simple link tests
6352
lt_simple_link_test_code='int main(){return(0);}'
6353
 
6354
 
6355
# If no C compiler was specified, use CC.
6356
LTCC=${LTCC-"$CC"}
6357
 
6358
# If no C compiler flags were specified, use CFLAGS.
6359
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6360
 
6361
# Allow CC to be a program name with arguments.
6362
compiler=$CC
6363
 
6364
 
6365
# save warnings/boilerplate of simple test code
6366
ac_outfile=conftest.$ac_objext
6367
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6368
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6369
_lt_compiler_boilerplate=`cat conftest.err`
6370
$rm conftest*
6371
 
6372
ac_outfile=conftest.$ac_objext
6373
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6374
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6375
_lt_linker_boilerplate=`cat conftest.err`
6376
$rm conftest*
6377
 
6378
 
6379
 
6380
lt_prog_compiler_no_builtin_flag=
6381
 
6382
if test "$GCC" = yes; then
6383
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6384
 
6385
 
6386
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6387
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6388
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6389
  echo $ECHO_N "(cached) $ECHO_C" >&6
6390
else
6391
  lt_cv_prog_compiler_rtti_exceptions=no
6392
  ac_outfile=conftest.$ac_objext
6393
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6394
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6395
   # Insert the option either (1) after the last *FLAGS variable, or
6396
   # (2) before a word containing "conftest.", or (3) at the end.
6397
   # Note that $ac_compile itself does not contain backslashes and begins
6398
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6399
   # The option is referenced via a variable to avoid confusing sed.
6400
   lt_compile=`echo "$ac_compile" | $SED \
6401
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6402
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6403
   -e 's:$: $lt_compiler_flag:'`
6404
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6405
   (eval "$lt_compile" 2>conftest.err)
6406
   ac_status=$?
6407
   cat conftest.err >&5
6408
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6409
   if (exit $ac_status) && test -s "$ac_outfile"; then
6410
     # The compiler can only warn and ignore the option if not recognized
6411
     # So say no if there are warnings other than the usual output.
6412
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6413
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6414
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6415
       lt_cv_prog_compiler_rtti_exceptions=yes
6416
     fi
6417
   fi
6418
   $rm conftest*
6419
 
6420
fi
6421
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6422
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6423
 
6424
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6425
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6426
else
6427
    :
6428
fi
6429
 
6430
fi
6431
 
6432
lt_prog_compiler_wl=
6433
lt_prog_compiler_pic=
6434
lt_prog_compiler_static=
6435
 
6436
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6437
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6438
 
6439
  if test "$GCC" = yes; then
6440
    lt_prog_compiler_wl='-Wl,'
6441
    lt_prog_compiler_static='-static'
6442
 
6443
    case $host_os in
6444
      aix*)
6445
      # All AIX code is PIC.
6446
      if test "$host_cpu" = ia64; then
6447
        # AIX 5 now supports IA64 processor
6448
        lt_prog_compiler_static='-Bstatic'
6449
      fi
6450
      ;;
6451
 
6452
    amigaos*)
6453
      # FIXME: we need at least 68020 code to build shared libraries, but
6454
      # adding the `-m68020' flag to GCC prevents building anything better,
6455
      # like `-m68040'.
6456
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6457
      ;;
6458
 
6459
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6460
      # PIC is the default for these OSes.
6461
      ;;
6462
 
6463
    mingw* | cygwin* | pw32* | os2*)
6464
      # This hack is so that the source file can tell whether it is being
6465
      # built for inclusion in a dll (and should export symbols for example).
6466
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6467
      # (--disable-auto-import) libraries
6468
      lt_prog_compiler_pic='-DDLL_EXPORT'
6469
      ;;
6470
 
6471
    darwin* | rhapsody*)
6472
      # PIC is the default on this platform
6473
      # Common symbols not allowed in MH_DYLIB files
6474
      lt_prog_compiler_pic='-fno-common'
6475
      ;;
6476
 
6477
    interix[3-9]*)
6478
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6479
      # Instead, we relocate shared libraries at runtime.
6480
      ;;
6481
 
6482
    msdosdjgpp*)
6483
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6484
      # on systems that don't support them.
6485
      lt_prog_compiler_can_build_shared=no
6486
      enable_shared=no
6487
      ;;
6488
 
6489
    sysv4*MP*)
6490
      if test -d /usr/nec; then
6491
        lt_prog_compiler_pic=-Kconform_pic
6492
      fi
6493
      ;;
6494
 
6495
    hpux*)
6496
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6497
      # not for PA HP-UX.
6498
      case $host_cpu in
6499
      hppa*64*|ia64*)
6500
        # +Z the default
6501
        ;;
6502
      *)
6503
        lt_prog_compiler_pic='-fPIC'
6504
        ;;
6505
      esac
6506
      ;;
6507
 
6508
    *)
6509
      lt_prog_compiler_pic='-fPIC'
6510
      ;;
6511
    esac
6512
  else
6513
    # PORTME Check for flag to pass linker flags through the system compiler.
6514
    case $host_os in
6515
    aix*)
6516
      lt_prog_compiler_wl='-Wl,'
6517
      if test "$host_cpu" = ia64; then
6518
        # AIX 5 now supports IA64 processor
6519
        lt_prog_compiler_static='-Bstatic'
6520
      else
6521
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6522
      fi
6523
      ;;
6524
      darwin*)
6525
        # PIC is the default on this platform
6526
        # Common symbols not allowed in MH_DYLIB files
6527
       case $cc_basename in
6528
         xlc*)
6529
         lt_prog_compiler_pic='-qnocommon'
6530
         lt_prog_compiler_wl='-Wl,'
6531
         ;;
6532
       esac
6533
       ;;
6534
 
6535
    mingw* | cygwin* | pw32* | os2*)
6536
      # This hack is so that the source file can tell whether it is being
6537
      # built for inclusion in a dll (and should export symbols for example).
6538
      lt_prog_compiler_pic='-DDLL_EXPORT'
6539
      ;;
6540
 
6541
    hpux9* | hpux10* | hpux11*)
6542
      lt_prog_compiler_wl='-Wl,'
6543
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6544
      # not for PA HP-UX.
6545
      case $host_cpu in
6546
      hppa*64*|ia64*)
6547
        # +Z the default
6548
        ;;
6549
      *)
6550
        lt_prog_compiler_pic='+Z'
6551
        ;;
6552
      esac
6553
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6554
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6555
      ;;
6556
 
6557
    irix5* | irix6* | nonstopux*)
6558
      lt_prog_compiler_wl='-Wl,'
6559
      # PIC (with -KPIC) is the default.
6560
      lt_prog_compiler_static='-non_shared'
6561
      ;;
6562
 
6563
    newsos6)
6564
      lt_prog_compiler_pic='-KPIC'
6565
      lt_prog_compiler_static='-Bstatic'
6566
      ;;
6567
 
6568
    linux* | k*bsd*-gnu)
6569
      case $cc_basename in
6570
      icc* | ecc*)
6571
        lt_prog_compiler_wl='-Wl,'
6572
        lt_prog_compiler_pic='-KPIC'
6573
        lt_prog_compiler_static='-static'
6574
        ;;
6575
      pgcc* | pgf77* | pgf90* | pgf95*)
6576
        # Portland Group compilers (*not* the Pentium gcc compiler,
6577
        # which looks to be a dead project)
6578
        lt_prog_compiler_wl='-Wl,'
6579
        lt_prog_compiler_pic='-fpic'
6580
        lt_prog_compiler_static='-Bstatic'
6581
        ;;
6582
      ccc*)
6583
        lt_prog_compiler_wl='-Wl,'
6584
        # All Alpha code is PIC.
6585
        lt_prog_compiler_static='-non_shared'
6586
        ;;
6587
      *)
6588
        case `$CC -V 2>&1 | sed 5q` in
6589
        *Sun\ C*)
6590
          # Sun C 5.9
6591
          lt_prog_compiler_pic='-KPIC'
6592
          lt_prog_compiler_static='-Bstatic'
6593
          lt_prog_compiler_wl='-Wl,'
6594
          ;;
6595
        *Sun\ F*)
6596
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6597
          lt_prog_compiler_pic='-KPIC'
6598
          lt_prog_compiler_static='-Bstatic'
6599
          lt_prog_compiler_wl=''
6600
          ;;
6601
        esac
6602
        ;;
6603
      esac
6604
      ;;
6605
 
6606
    osf3* | osf4* | osf5*)
6607
      lt_prog_compiler_wl='-Wl,'
6608
      # All OSF/1 code is PIC.
6609
      lt_prog_compiler_static='-non_shared'
6610
      ;;
6611
 
6612
    rdos*)
6613
      lt_prog_compiler_static='-non_shared'
6614
      ;;
6615
 
6616
    solaris*)
6617
      lt_prog_compiler_pic='-KPIC'
6618
      lt_prog_compiler_static='-Bstatic'
6619
      case $cc_basename in
6620
      f77* | f90* | f95*)
6621
        lt_prog_compiler_wl='-Qoption ld ';;
6622
      *)
6623
        lt_prog_compiler_wl='-Wl,';;
6624
      esac
6625
      ;;
6626
 
6627
    sunos4*)
6628
      lt_prog_compiler_wl='-Qoption ld '
6629
      lt_prog_compiler_pic='-PIC'
6630
      lt_prog_compiler_static='-Bstatic'
6631
      ;;
6632
 
6633
    sysv4 | sysv4.2uw2* | sysv4.3*)
6634
      lt_prog_compiler_wl='-Wl,'
6635
      lt_prog_compiler_pic='-KPIC'
6636
      lt_prog_compiler_static='-Bstatic'
6637
      ;;
6638
 
6639
    sysv4*MP*)
6640
      if test -d /usr/nec ;then
6641
        lt_prog_compiler_pic='-Kconform_pic'
6642
        lt_prog_compiler_static='-Bstatic'
6643
      fi
6644
      ;;
6645
 
6646
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6647
      lt_prog_compiler_wl='-Wl,'
6648
      lt_prog_compiler_pic='-KPIC'
6649
      lt_prog_compiler_static='-Bstatic'
6650
      ;;
6651
 
6652
    unicos*)
6653
      lt_prog_compiler_wl='-Wl,'
6654
      lt_prog_compiler_can_build_shared=no
6655
      ;;
6656
 
6657
    uts4*)
6658
      lt_prog_compiler_pic='-pic'
6659
      lt_prog_compiler_static='-Bstatic'
6660
      ;;
6661
 
6662
    *)
6663
      lt_prog_compiler_can_build_shared=no
6664
      ;;
6665
    esac
6666
  fi
6667
 
6668
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6669
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6670
 
6671
#
6672
# Check to make sure the PIC flag actually works.
6673
#
6674
if test -n "$lt_prog_compiler_pic"; then
6675
 
6676
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6677
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6678
if test "${lt_prog_compiler_pic_works+set}" = set; then
6679
  echo $ECHO_N "(cached) $ECHO_C" >&6
6680
else
6681
  lt_prog_compiler_pic_works=no
6682
  ac_outfile=conftest.$ac_objext
6683
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6684
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6685
   # Insert the option either (1) after the last *FLAGS variable, or
6686
   # (2) before a word containing "conftest.", or (3) at the end.
6687
   # Note that $ac_compile itself does not contain backslashes and begins
6688
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6689
   # The option is referenced via a variable to avoid confusing sed.
6690
   lt_compile=`echo "$ac_compile" | $SED \
6691
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6692
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6693
   -e 's:$: $lt_compiler_flag:'`
6694
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6695
   (eval "$lt_compile" 2>conftest.err)
6696
   ac_status=$?
6697
   cat conftest.err >&5
6698
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6699
   if (exit $ac_status) && test -s "$ac_outfile"; then
6700
     # The compiler can only warn and ignore the option if not recognized
6701
     # So say no if there are warnings other than the usual output.
6702
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6703
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6704
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6705
       lt_prog_compiler_pic_works=yes
6706
     fi
6707
   fi
6708
   $rm conftest*
6709
 
6710
fi
6711
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6712
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6713
 
6714
if test x"$lt_prog_compiler_pic_works" = xyes; then
6715
    case $lt_prog_compiler_pic in
6716
     "" | " "*) ;;
6717
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6718
     esac
6719
else
6720
    lt_prog_compiler_pic=
6721
     lt_prog_compiler_can_build_shared=no
6722
fi
6723
 
6724
fi
6725
case $host_os in
6726
  # For platforms which do not support PIC, -DPIC is meaningless:
6727
  *djgpp*)
6728
    lt_prog_compiler_pic=
6729
    ;;
6730
  *)
6731
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6732
    ;;
6733
esac
6734
 
6735
#
6736
# Check to make sure the static flag actually works.
6737
#
6738
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6739
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6740
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6741
if test "${lt_prog_compiler_static_works+set}" = set; then
6742
  echo $ECHO_N "(cached) $ECHO_C" >&6
6743
else
6744
  lt_prog_compiler_static_works=no
6745
   save_LDFLAGS="$LDFLAGS"
6746
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6747
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6748
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6749
     # The linker can only warn and ignore the option if not recognized
6750
     # So say no if there are warnings
6751
     if test -s conftest.err; then
6752
       # Append any errors to the config.log.
6753
       cat conftest.err 1>&5
6754
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6755
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6756
       if diff conftest.exp conftest.er2 >/dev/null; then
6757
         lt_prog_compiler_static_works=yes
6758
       fi
6759
     else
6760
       lt_prog_compiler_static_works=yes
6761
     fi
6762
   fi
6763
   $rm conftest*
6764
   LDFLAGS="$save_LDFLAGS"
6765
 
6766
fi
6767
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6768
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6769
 
6770
if test x"$lt_prog_compiler_static_works" = xyes; then
6771
    :
6772
else
6773
    lt_prog_compiler_static=
6774
fi
6775
 
6776
 
6777
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6778
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6779
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6780
  echo $ECHO_N "(cached) $ECHO_C" >&6
6781
else
6782
  lt_cv_prog_compiler_c_o=no
6783
   $rm -r conftest 2>/dev/null
6784
   mkdir conftest
6785
   cd conftest
6786
   mkdir out
6787
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6788
 
6789
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6790
   # Insert the option either (1) after the last *FLAGS variable, or
6791
   # (2) before a word containing "conftest.", or (3) at the end.
6792
   # Note that $ac_compile itself does not contain backslashes and begins
6793
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6794
   lt_compile=`echo "$ac_compile" | $SED \
6795
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6796
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6797
   -e 's:$: $lt_compiler_flag:'`
6798
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6799
   (eval "$lt_compile" 2>out/conftest.err)
6800
   ac_status=$?
6801
   cat out/conftest.err >&5
6802
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6803
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6804
   then
6805
     # The compiler can only warn and ignore the option if not recognized
6806
     # So say no if there are warnings
6807
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6808
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6809
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6810
       lt_cv_prog_compiler_c_o=yes
6811
     fi
6812
   fi
6813
   chmod u+w . 2>&5
6814
   $rm conftest*
6815
   # SGI C++ compiler will create directory out/ii_files/ for
6816
   # template instantiation
6817
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6818
   $rm out/* && rmdir out
6819
   cd ..
6820
   rmdir conftest
6821
   $rm conftest*
6822
 
6823
fi
6824
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6825
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6826
 
6827
 
6828
hard_links="nottested"
6829
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6830
  # do not overwrite the value of need_locks provided by the user
6831
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6832
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6833
  hard_links=yes
6834
  $rm conftest*
6835
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6836
  touch conftest.a
6837
  ln conftest.a conftest.b 2>&5 || hard_links=no
6838
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6839
  { echo "$as_me:$LINENO: result: $hard_links" >&5
6840
echo "${ECHO_T}$hard_links" >&6; }
6841
  if test "$hard_links" = no; then
6842
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6843
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6844
    need_locks=warn
6845
  fi
6846
else
6847
  need_locks=no
6848
fi
6849
 
6850
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6851
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6852
 
6853
  runpath_var=
6854
  allow_undefined_flag=
6855
  enable_shared_with_static_runtimes=no
6856
  archive_cmds=
6857
  archive_expsym_cmds=
6858
  old_archive_From_new_cmds=
6859
  old_archive_from_expsyms_cmds=
6860
  export_dynamic_flag_spec=
6861
  whole_archive_flag_spec=
6862
  thread_safe_flag_spec=
6863
  hardcode_libdir_flag_spec=
6864
  hardcode_libdir_flag_spec_ld=
6865
  hardcode_libdir_separator=
6866
  hardcode_direct=no
6867
  hardcode_minus_L=no
6868
  hardcode_shlibpath_var=unsupported
6869
  link_all_deplibs=unknown
6870
  hardcode_automatic=no
6871
  module_cmds=
6872
  module_expsym_cmds=
6873
  always_export_symbols=no
6874
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6875
  # include_expsyms should be a list of space-separated symbols to be *always*
6876
  # included in the symbol list
6877
  include_expsyms=
6878
  # exclude_expsyms can be an extended regexp of symbols to exclude
6879
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6880
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6881
  # as well as any symbol that contains `d'.
6882
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6883
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6884
  # platforms (ab)use it in PIC code, but their linkers get confused if
6885
  # the symbol is explicitly referenced.  Since portable code cannot
6886
  # rely on this symbol name, it's probably fine to never include it in
6887
  # preloaded symbol tables.
6888
  extract_expsyms_cmds=
6889
  # Just being paranoid about ensuring that cc_basename is set.
6890
  for cc_temp in $compiler""; do
6891
  case $cc_temp in
6892
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6893
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6894
    \-*) ;;
6895
    *) break;;
6896
  esac
6897
done
6898
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6899
 
6900
  case $host_os in
6901
  cygwin* | mingw* | pw32*)
6902
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6903
    # When not using gcc, we currently assume that we are using
6904
    # Microsoft Visual C++.
6905
    if test "$GCC" != yes; then
6906
      with_gnu_ld=no
6907
    fi
6908
    ;;
6909
  interix*)
6910
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6911
    with_gnu_ld=yes
6912
    ;;
6913
  openbsd*)
6914
    with_gnu_ld=no
6915
    ;;
6916
  esac
6917
 
6918
  ld_shlibs=yes
6919
  if test "$with_gnu_ld" = yes; then
6920
    # If archive_cmds runs LD, not CC, wlarc should be empty
6921
    wlarc='${wl}'
6922
 
6923
    # Set some defaults for GNU ld with shared library support. These
6924
    # are reset later if shared libraries are not supported. Putting them
6925
    # here allows them to be overridden if necessary.
6926
    runpath_var=LD_RUN_PATH
6927
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6928
    export_dynamic_flag_spec='${wl}--export-dynamic'
6929
    # ancient GNU ld didn't support --whole-archive et. al.
6930
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6931
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6932
      else
6933
        whole_archive_flag_spec=
6934
    fi
6935
    supports_anon_versioning=no
6936
    case `$LD -v 2>/dev/null` in
6937
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6938
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6939
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6940
      *\ 2.11.*) ;; # other 2.11 versions
6941
      *) supports_anon_versioning=yes ;;
6942
    esac
6943
 
6944
    # See if GNU ld supports shared libraries.
6945
    case $host_os in
6946
    aix3* | aix4* | aix5*)
6947
      # On AIX/PPC, the GNU linker is very broken
6948
      if test "$host_cpu" != ia64; then
6949
        ld_shlibs=no
6950
        cat <&2
6951
 
6952
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6953
*** to be unable to reliably create shared libraries on AIX.
6954
*** Therefore, libtool is disabling shared libraries support.  If you
6955
*** really care for shared libraries, you may want to modify your PATH
6956
*** so that a non-GNU linker is found, and then restart.
6957
 
6958
EOF
6959
      fi
6960
      ;;
6961
 
6962
    amigaos*)
6963
      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)'
6964
      hardcode_libdir_flag_spec='-L$libdir'
6965
      hardcode_minus_L=yes
6966
 
6967
      # Samuel A. Falvo II  reports
6968
      # that the semantics of dynamic libraries on AmigaOS, at least up
6969
      # to version 4, is to share data among multiple programs linked
6970
      # with the same dynamic library.  Since this doesn't match the
6971
      # behavior of shared libraries on other platforms, we can't use
6972
      # them.
6973
      ld_shlibs=no
6974
      ;;
6975
 
6976
    beos*)
6977
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6978
        allow_undefined_flag=unsupported
6979
        # Joseph Beckenbach  says some releases of gcc
6980
        # support --undefined.  This deserves some investigation.  FIXME
6981
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6982
      else
6983
        ld_shlibs=no
6984
      fi
6985
      ;;
6986
 
6987
    cygwin* | mingw* | pw32*)
6988
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6989
      # as there is no search path for DLLs.
6990
      hardcode_libdir_flag_spec='-L$libdir'
6991
      allow_undefined_flag=unsupported
6992
      always_export_symbols=no
6993
      enable_shared_with_static_runtimes=yes
6994
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6995
 
6996
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6997
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6998
        # If the export-symbols file already is a .def file (1st line
6999
        # is EXPORTS), use it as is; otherwise, prepend...
7000
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7001
          cp $export_symbols $output_objdir/$soname.def;
7002
        else
7003
          echo EXPORTS > $output_objdir/$soname.def;
7004
          cat $export_symbols >> $output_objdir/$soname.def;
7005
        fi~
7006
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7007
      else
7008
        ld_shlibs=no
7009
      fi
7010
      ;;
7011
 
7012
    interix[3-9]*)
7013
      hardcode_direct=no
7014
      hardcode_shlibpath_var=no
7015
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7016
      export_dynamic_flag_spec='${wl}-E'
7017
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7018
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7019
      # default) and relocated if they conflict, which is a slow very memory
7020
      # consuming and fragmenting process.  To avoid this, we pick a random,
7021
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7022
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7023
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7024
      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'
7025
      ;;
7026
 
7027
    gnu* | linux* | k*bsd*-gnu)
7028
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7029
        tmp_addflag=
7030
        case $cc_basename,$host_cpu in
7031
        pgcc*)                          # Portland Group C compiler
7032
          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'
7033
          tmp_addflag=' $pic_flag'
7034
          ;;
7035
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7036
          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'
7037
          tmp_addflag=' $pic_flag -Mnomain' ;;
7038
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7039
          tmp_addflag=' -i_dynamic' ;;
7040
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7041
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7042
        ifc* | ifort*)                  # Intel Fortran compiler
7043
          tmp_addflag=' -nofor_main' ;;
7044
        esac
7045
        case `$CC -V 2>&1 | sed 5q` in
7046
        *Sun\ C*)                       # Sun C 5.9
7047
          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'
7048
          tmp_sharedflag='-G' ;;
7049
        *Sun\ F*)                       # Sun Fortran 8.3
7050
          tmp_sharedflag='-G' ;;
7051
        *)
7052
          tmp_sharedflag='-shared' ;;
7053
        esac
7054
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055
 
7056
        if test $supports_anon_versioning = yes; then
7057
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7058
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7059
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7060
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7061
        fi
7062
      else
7063
        ld_shlibs=no
7064
      fi
7065
      ;;
7066
 
7067
    netbsd*)
7068
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7069
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7070
        wlarc=
7071
      else
7072
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7073
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7074
      fi
7075
      ;;
7076
 
7077
    solaris*)
7078
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7079
        ld_shlibs=no
7080
        cat <&2
7081
 
7082
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7083
*** create shared libraries on Solaris systems.  Therefore, libtool
7084
*** is disabling shared libraries support.  We urge you to upgrade GNU
7085
*** binutils to release 2.9.1 or newer.  Another option is to modify
7086
*** your PATH or compiler configuration so that the native linker is
7087
*** used, and then restart.
7088
 
7089
EOF
7090
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7091
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7092
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7093
      else
7094
        ld_shlibs=no
7095
      fi
7096
      ;;
7097
 
7098
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7099
      case `$LD -v 2>&1` in
7100
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7101
        ld_shlibs=no
7102
        cat <<_LT_EOF 1>&2
7103
 
7104
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7105
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7106
*** is disabling shared libraries support.  We urge you to upgrade GNU
7107
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7108
*** your PATH or compiler configuration so that the native linker is
7109
*** used, and then restart.
7110
 
7111
_LT_EOF
7112
        ;;
7113
        *)
7114
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7115
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7116
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7117
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7118
          else
7119
            ld_shlibs=no
7120
          fi
7121
        ;;
7122
      esac
7123
      ;;
7124
 
7125
    sunos4*)
7126
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7127
      wlarc=
7128
      hardcode_direct=yes
7129
      hardcode_shlibpath_var=no
7130
      ;;
7131
 
7132
    *)
7133
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7134
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7135
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7136
      else
7137
        ld_shlibs=no
7138
      fi
7139
      ;;
7140
    esac
7141
 
7142
    if test "$ld_shlibs" = no; then
7143
      runpath_var=
7144
      hardcode_libdir_flag_spec=
7145
      export_dynamic_flag_spec=
7146
      whole_archive_flag_spec=
7147
    fi
7148
  else
7149
    # PORTME fill in a description of your system's linker (not GNU ld)
7150
    case $host_os in
7151
    aix3*)
7152
      allow_undefined_flag=unsupported
7153
      always_export_symbols=yes
7154
      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'
7155
      # Note: this linker hardcodes the directories in LIBPATH if there
7156
      # are no directories specified by -L.
7157
      hardcode_minus_L=yes
7158
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7159
        # Neither direct hardcoding nor static linking is supported with a
7160
        # broken collect2.
7161
        hardcode_direct=unsupported
7162
      fi
7163
      ;;
7164
 
7165
    aix4* | aix5*)
7166
      if test "$host_cpu" = ia64; then
7167
        # On IA64, the linker does run time linking by default, so we don't
7168
        # have to do anything special.
7169
        aix_use_runtimelinking=no
7170
        exp_sym_flag='-Bexport'
7171
        no_entry_flag=""
7172
      else
7173
        # If we're using GNU nm, then we don't want the "-C" option.
7174
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7175
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7176
          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'
7177
        else
7178
          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'
7179
        fi
7180
        aix_use_runtimelinking=no
7181
 
7182
        # Test if we are trying to use run time linking or normal
7183
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7184
        # need to do runtime linking.
7185
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7186
          for ld_flag in $LDFLAGS; do
7187
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7188
            aix_use_runtimelinking=yes
7189
            break
7190
          fi
7191
          done
7192
          ;;
7193
        esac
7194
 
7195
        exp_sym_flag='-bexport'
7196
        no_entry_flag='-bnoentry'
7197
      fi
7198
 
7199
      # When large executables or shared objects are built, AIX ld can
7200
      # have problems creating the table of contents.  If linking a library
7201
      # or program results in "error TOC overflow" add -mminimal-toc to
7202
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7203
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7204
 
7205
      archive_cmds=''
7206
      hardcode_direct=yes
7207
      hardcode_libdir_separator=':'
7208
      link_all_deplibs=yes
7209
 
7210
      if test "$GCC" = yes; then
7211
        case $host_os in aix4.[012]|aix4.[012].*)
7212
        # We only want to do this on AIX 4.2 and lower, the check
7213
        # below for broken collect2 doesn't work under 4.3+
7214
          collect2name=`${CC} -print-prog-name=collect2`
7215
          if test -f "$collect2name" && \
7216
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7217
          then
7218
          # We have reworked collect2
7219
          :
7220
          else
7221
          # We have old collect2
7222
          hardcode_direct=unsupported
7223
          # It fails to find uninstalled libraries when the uninstalled
7224
          # path is not listed in the libpath.  Setting hardcode_minus_L
7225
          # to unsupported forces relinking
7226
          hardcode_minus_L=yes
7227
          hardcode_libdir_flag_spec='-L$libdir'
7228
          hardcode_libdir_separator=
7229
          fi
7230
          ;;
7231
        esac
7232
        shared_flag='-shared'
7233
        if test "$aix_use_runtimelinking" = yes; then
7234
          shared_flag="$shared_flag "'${wl}-G'
7235
        fi
7236
      else
7237
        # not using gcc
7238
        if test "$host_cpu" = ia64; then
7239
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7240
        # chokes on -Wl,-G. The following line is correct:
7241
          shared_flag='-G'
7242
        else
7243
          if test "$aix_use_runtimelinking" = yes; then
7244
            shared_flag='${wl}-G'
7245
          else
7246
            shared_flag='${wl}-bM:SRE'
7247
          fi
7248
        fi
7249
      fi
7250
 
7251
      # It seems that -bexpall does not export symbols beginning with
7252
      # underscore (_), so it is better to generate a list of symbols to export.
7253
      always_export_symbols=yes
7254
      if test "$aix_use_runtimelinking" = yes; then
7255
        # Warning - without using the other runtime loading flags (-brtl),
7256
        # -berok will link without error, but may produce a broken library.
7257
        allow_undefined_flag='-berok'
7258
       # Determine the default libpath from the value encoded in an empty executable.
7259
       cat >conftest.$ac_ext <<_ACEOF
7260
/* confdefs.h.  */
7261
_ACEOF
7262
cat confdefs.h >>conftest.$ac_ext
7263
cat >>conftest.$ac_ext <<_ACEOF
7264
/* end confdefs.h.  */
7265
 
7266
int
7267
main ()
7268
{
7269
 
7270
  ;
7271
  return 0;
7272
}
7273
_ACEOF
7274
rm -f conftest.$ac_objext conftest$ac_exeext
7275
if { (ac_try="$ac_link"
7276
case "(($ac_try" in
7277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278
  *) ac_try_echo=$ac_try;;
7279
esac
7280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281
  (eval "$ac_link") 2>conftest.er1
7282
  ac_status=$?
7283
  grep -v '^ *+' conftest.er1 >conftest.err
7284
  rm -f conftest.er1
7285
  cat conftest.err >&5
7286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287
  (exit $ac_status); } && {
7288
         test -z "$ac_c_werror_flag" ||
7289
         test ! -s conftest.err
7290
       } && test -s conftest$ac_exeext &&
7291
       $as_test_x conftest$ac_exeext; then
7292
 
7293
lt_aix_libpath_sed='
7294
    /Import File Strings/,/^$/ {
7295
        /^0/ {
7296
            s/^0  *\(.*\)$/\1/
7297
            p
7298
        }
7299
    }'
7300
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7301
# Check for a 64-bit object if we didn't find anything.
7302
if test -z "$aix_libpath"; then
7303
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7304
fi
7305
else
7306
  echo "$as_me: failed program was:" >&5
7307
sed 's/^/| /' conftest.$ac_ext >&5
7308
 
7309
 
7310
fi
7311
 
7312
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7313
      conftest$ac_exeext conftest.$ac_ext
7314
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7315
 
7316
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7317
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7318
       else
7319
        if test "$host_cpu" = ia64; then
7320
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7321
          allow_undefined_flag="-z nodefs"
7322
          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"
7323
        else
7324
         # Determine the default libpath from the value encoded in an empty executable.
7325
         cat >conftest.$ac_ext <<_ACEOF
7326
/* confdefs.h.  */
7327
_ACEOF
7328
cat confdefs.h >>conftest.$ac_ext
7329
cat >>conftest.$ac_ext <<_ACEOF
7330
/* end confdefs.h.  */
7331
 
7332
int
7333
main ()
7334
{
7335
 
7336
  ;
7337
  return 0;
7338
}
7339
_ACEOF
7340
rm -f conftest.$ac_objext conftest$ac_exeext
7341
if { (ac_try="$ac_link"
7342
case "(($ac_try" in
7343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344
  *) ac_try_echo=$ac_try;;
7345
esac
7346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347
  (eval "$ac_link") 2>conftest.er1
7348
  ac_status=$?
7349
  grep -v '^ *+' conftest.er1 >conftest.err
7350
  rm -f conftest.er1
7351
  cat conftest.err >&5
7352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
  (exit $ac_status); } && {
7354
         test -z "$ac_c_werror_flag" ||
7355
         test ! -s conftest.err
7356
       } && test -s conftest$ac_exeext &&
7357
       $as_test_x conftest$ac_exeext; then
7358
 
7359
lt_aix_libpath_sed='
7360
    /Import File Strings/,/^$/ {
7361
        /^0/ {
7362
            s/^0  *\(.*\)$/\1/
7363
            p
7364
        }
7365
    }'
7366
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7367
# Check for a 64-bit object if we didn't find anything.
7368
if test -z "$aix_libpath"; then
7369
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7370
fi
7371
else
7372
  echo "$as_me: failed program was:" >&5
7373
sed 's/^/| /' conftest.$ac_ext >&5
7374
 
7375
 
7376
fi
7377
 
7378
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379
      conftest$ac_exeext conftest.$ac_ext
7380
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7381
 
7382
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7383
          # Warning - without using the other run time loading flags,
7384
          # -berok will link without error, but may produce a broken library.
7385
          no_undefined_flag=' ${wl}-bernotok'
7386
          allow_undefined_flag=' ${wl}-berok'
7387
          # Exported symbols can be pulled into shared objects from archives
7388
          whole_archive_flag_spec='$convenience'
7389
          archive_cmds_need_lc=yes
7390
          # This is similar to how AIX traditionally builds its shared libraries.
7391
          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'
7392
        fi
7393
      fi
7394
      ;;
7395
 
7396
    amigaos*)
7397
      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)'
7398
      hardcode_libdir_flag_spec='-L$libdir'
7399
      hardcode_minus_L=yes
7400
      # see comment about different semantics on the GNU ld section
7401
      ld_shlibs=no
7402
      ;;
7403
 
7404
    bsdi[45]*)
7405
      export_dynamic_flag_spec=-rdynamic
7406
      ;;
7407
 
7408
    cygwin* | mingw* | pw32*)
7409
      # When not using gcc, we currently assume that we are using
7410
      # Microsoft Visual C++.
7411
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7412
      # no search path for DLLs.
7413
      hardcode_libdir_flag_spec=' '
7414
      allow_undefined_flag=unsupported
7415
      # Tell ltmain to make .lib files, not .a files.
7416
      libext=lib
7417
      # Tell ltmain to make .dll files, not .so files.
7418
      shrext_cmds=".dll"
7419
      # FIXME: Setting linknames here is a bad hack.
7420
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7421
      # The linker will automatically build a .lib file if we build a DLL.
7422
      old_archive_From_new_cmds='true'
7423
      # FIXME: Should let the user specify the lib program.
7424
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7425
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7426
      enable_shared_with_static_runtimes=yes
7427
      ;;
7428
 
7429
    darwin* | rhapsody*)
7430
      case $host_os in
7431
        rhapsody* | darwin1.[012])
7432
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7433
         ;;
7434
       *) # Darwin 1.3 on
7435
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7436
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7437
         else
7438
           case ${MACOSX_DEPLOYMENT_TARGET} in
7439
             10.[012])
7440
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7441
               ;;
7442
             10.*)
7443
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7444
               ;;
7445
           esac
7446
         fi
7447
         ;;
7448
      esac
7449
      archive_cmds_need_lc=no
7450
      hardcode_direct=no
7451
      hardcode_automatic=yes
7452
      hardcode_shlibpath_var=unsupported
7453
      whole_archive_flag_spec=''
7454
      link_all_deplibs=yes
7455
    if test "$GCC" = yes ; then
7456
        output_verbose_link_cmd='echo'
7457
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7458
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7459
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7460
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7461
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7462
    else
7463
      case $cc_basename in
7464
        xlc*)
7465
         output_verbose_link_cmd='echo'
7466
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7467
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7468
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7469
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7470
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7471
          ;;
7472
       *)
7473
         ld_shlibs=no
7474
          ;;
7475
      esac
7476
    fi
7477
      ;;
7478
 
7479
    dgux*)
7480
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7481
      hardcode_libdir_flag_spec='-L$libdir'
7482
      hardcode_shlibpath_var=no
7483
      ;;
7484
 
7485
    freebsd1*)
7486
      ld_shlibs=no
7487
      ;;
7488
 
7489
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7490
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7491
    # does not break anything, and helps significantly (at the cost of a little
7492
    # extra space).
7493
    freebsd2.2*)
7494
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7495
      hardcode_libdir_flag_spec='-R$libdir'
7496
      hardcode_direct=yes
7497
      hardcode_shlibpath_var=no
7498
      ;;
7499
 
7500
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7501
    freebsd2*)
7502
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7503
      hardcode_direct=yes
7504
      hardcode_minus_L=yes
7505
      hardcode_shlibpath_var=no
7506
      ;;
7507
 
7508
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7509
    freebsd* | dragonfly*)
7510
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7511
      hardcode_libdir_flag_spec='-R$libdir'
7512
      hardcode_direct=yes
7513
      hardcode_shlibpath_var=no
7514
      ;;
7515
 
7516
    hpux9*)
7517
      if test "$GCC" = yes; then
7518
        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'
7519
      else
7520
        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'
7521
      fi
7522
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7523
      hardcode_libdir_separator=:
7524
      hardcode_direct=yes
7525
 
7526
      # hardcode_minus_L: Not really in the search PATH,
7527
      # but as the default location of the library.
7528
      hardcode_minus_L=yes
7529
      export_dynamic_flag_spec='${wl}-E'
7530
      ;;
7531
 
7532
    hpux10*)
7533
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7534
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7535
      else
7536
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7537
      fi
7538
      if test "$with_gnu_ld" = no; then
7539
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7540
        hardcode_libdir_separator=:
7541
 
7542
        hardcode_direct=yes
7543
        export_dynamic_flag_spec='${wl}-E'
7544
 
7545
        # hardcode_minus_L: Not really in the search PATH,
7546
        # but as the default location of the library.
7547
        hardcode_minus_L=yes
7548
      fi
7549
      ;;
7550
 
7551
    hpux11*)
7552
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7553
        case $host_cpu in
7554
        hppa*64*)
7555
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7556
          ;;
7557
        ia64*)
7558
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7559
          ;;
7560
        *)
7561
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7562
          ;;
7563
        esac
7564
      else
7565
        case $host_cpu in
7566
        hppa*64*)
7567
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7568
          ;;
7569
        ia64*)
7570
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7571
          ;;
7572
        *)
7573
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7574
          ;;
7575
        esac
7576
      fi
7577
      if test "$with_gnu_ld" = no; then
7578
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7579
        hardcode_libdir_separator=:
7580
 
7581
        case $host_cpu in
7582
        hppa*64*|ia64*)
7583
          hardcode_libdir_flag_spec_ld='+b $libdir'
7584
          hardcode_direct=no
7585
          hardcode_shlibpath_var=no
7586
          ;;
7587
        *)
7588
          hardcode_direct=yes
7589
          export_dynamic_flag_spec='${wl}-E'
7590
 
7591
          # hardcode_minus_L: Not really in the search PATH,
7592
          # but as the default location of the library.
7593
          hardcode_minus_L=yes
7594
          ;;
7595
        esac
7596
      fi
7597
      ;;
7598
 
7599
    irix5* | irix6* | nonstopux*)
7600
      if test "$GCC" = yes; then
7601
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7602
      else
7603
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7604
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7605
      fi
7606
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7607
      hardcode_libdir_separator=:
7608
      link_all_deplibs=yes
7609
      ;;
7610
 
7611
    netbsd*)
7612
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7613
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7614
      else
7615
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7616
      fi
7617
      hardcode_libdir_flag_spec='-R$libdir'
7618
      hardcode_direct=yes
7619
      hardcode_shlibpath_var=no
7620
      ;;
7621
 
7622
    newsos6)
7623
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7624
      hardcode_direct=yes
7625
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7626
      hardcode_libdir_separator=:
7627
      hardcode_shlibpath_var=no
7628
      ;;
7629
 
7630
    openbsd*)
7631
      if test -f /usr/libexec/ld.so; then
7632
        hardcode_direct=yes
7633
        hardcode_shlibpath_var=no
7634
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7635
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7636
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7637
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7638
          export_dynamic_flag_spec='${wl}-E'
7639
        else
7640
          case $host_os in
7641
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7642
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7643
             hardcode_libdir_flag_spec='-R$libdir'
7644
             ;;
7645
           *)
7646
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7647
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7648
             ;;
7649
          esac
7650
        fi
7651
      else
7652
        ld_shlibs=no
7653
      fi
7654
      ;;
7655
 
7656
    os2*)
7657
      hardcode_libdir_flag_spec='-L$libdir'
7658
      hardcode_minus_L=yes
7659
      allow_undefined_flag=unsupported
7660
      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'
7661
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7662
      ;;
7663
 
7664
    osf3*)
7665
      if test "$GCC" = yes; then
7666
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7667
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7668
      else
7669
        allow_undefined_flag=' -expect_unresolved \*'
7670
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7671
      fi
7672
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7673
      hardcode_libdir_separator=:
7674
      ;;
7675
 
7676
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7677
      if test "$GCC" = yes; then
7678
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7679
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7680
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7681
      else
7682
        allow_undefined_flag=' -expect_unresolved \*'
7683
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7684
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7685
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7686
 
7687
        # Both c and cxx compiler support -rpath directly
7688
        hardcode_libdir_flag_spec='-rpath $libdir'
7689
      fi
7690
      hardcode_libdir_separator=:
7691
      ;;
7692
 
7693
    solaris*)
7694
      no_undefined_flag=' -z text'
7695
      if test "$GCC" = yes; then
7696
        wlarc='${wl}'
7697
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7698
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7699
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7700
      else
7701
        wlarc=''
7702
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7703
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7704
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7705
      fi
7706
      hardcode_libdir_flag_spec='-R$libdir'
7707
      hardcode_shlibpath_var=no
7708
      case $host_os in
7709
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7710
      *)
7711
        # The compiler driver will combine and reorder linker options,
7712
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7713
        # but is careful enough not to reorder.
7714
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7715
        if test "$GCC" = yes; then
7716
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7717
        else
7718
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7719
        fi
7720
        ;;
7721
      esac
7722
      link_all_deplibs=yes
7723
      ;;
7724
 
7725
    sunos4*)
7726
      if test "x$host_vendor" = xsequent; then
7727
        # Use $CC to link under sequent, because it throws in some extra .o
7728
        # files that make .init and .fini sections work.
7729
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7730
      else
7731
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7732
      fi
7733
      hardcode_libdir_flag_spec='-L$libdir'
7734
      hardcode_direct=yes
7735
      hardcode_minus_L=yes
7736
      hardcode_shlibpath_var=no
7737
      ;;
7738
 
7739
    sysv4)
7740
      case $host_vendor in
7741
        sni)
7742
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7743
          hardcode_direct=yes # is this really true???
7744
        ;;
7745
        siemens)
7746
          ## LD is ld it makes a PLAMLIB
7747
          ## CC just makes a GrossModule.
7748
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7749
          reload_cmds='$CC -r -o $output$reload_objs'
7750
          hardcode_direct=no
7751
        ;;
7752
        motorola)
7753
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7754
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7755
        ;;
7756
      esac
7757
      runpath_var='LD_RUN_PATH'
7758
      hardcode_shlibpath_var=no
7759
      ;;
7760
 
7761
    sysv4.3*)
7762
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7763
      hardcode_shlibpath_var=no
7764
      export_dynamic_flag_spec='-Bexport'
7765
      ;;
7766
 
7767
    sysv4*MP*)
7768
      if test -d /usr/nec; then
7769
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7770
        hardcode_shlibpath_var=no
7771
        runpath_var=LD_RUN_PATH
7772
        hardcode_runpath_var=yes
7773
        ld_shlibs=yes
7774
      fi
7775
      ;;
7776
 
7777
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7778
      no_undefined_flag='${wl}-z,text'
7779
      archive_cmds_need_lc=no
7780
      hardcode_shlibpath_var=no
7781
      runpath_var='LD_RUN_PATH'
7782
 
7783
      if test "$GCC" = yes; then
7784
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7785
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7786
      else
7787
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7788
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7789
      fi
7790
      ;;
7791
 
7792
    sysv5* | sco3.2v5* | sco5v6*)
7793
      # Note: We can NOT use -z defs as we might desire, because we do not
7794
      # link with -lc, and that would cause any symbols used from libc to
7795
      # always be unresolved, which means just about no library would
7796
      # ever link correctly.  If we're not using GNU ld we use -z text
7797
      # though, which does catch some bad symbols but isn't as heavy-handed
7798
      # as -z defs.
7799
      no_undefined_flag='${wl}-z,text'
7800
      allow_undefined_flag='${wl}-z,nodefs'
7801
      archive_cmds_need_lc=no
7802
      hardcode_shlibpath_var=no
7803
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7804
      hardcode_libdir_separator=':'
7805
      link_all_deplibs=yes
7806
      export_dynamic_flag_spec='${wl}-Bexport'
7807
      runpath_var='LD_RUN_PATH'
7808
 
7809
      if test "$GCC" = yes; then
7810
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7811
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7812
      else
7813
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7814
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815
      fi
7816
      ;;
7817
 
7818
    uts4*)
7819
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7820
      hardcode_libdir_flag_spec='-L$libdir'
7821
      hardcode_shlibpath_var=no
7822
      ;;
7823
 
7824
    *)
7825
      ld_shlibs=no
7826
      ;;
7827
    esac
7828
  fi
7829
 
7830
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7831
echo "${ECHO_T}$ld_shlibs" >&6; }
7832
test "$ld_shlibs" = no && can_build_shared=no
7833
 
7834
#
7835
# Do we need to explicitly link libc?
7836
#
7837
case "x$archive_cmds_need_lc" in
7838
x|xyes)
7839
  # Assume -lc should be added
7840
  archive_cmds_need_lc=yes
7841
 
7842
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7843
    case $archive_cmds in
7844
    *'~'*)
7845
      # FIXME: we may have to deal with multi-command sequences.
7846
      ;;
7847
    '$CC '*)
7848
      # Test whether the compiler implicitly links with -lc since on some
7849
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7850
      # to ld, don't add -lc before -lgcc.
7851
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7852
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7853
      $rm conftest*
7854
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7855
 
7856
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7857
  (eval $ac_compile) 2>&5
7858
  ac_status=$?
7859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860
  (exit $ac_status); } 2>conftest.err; then
7861
        soname=conftest
7862
        lib=conftest
7863
        libobjs=conftest.$ac_objext
7864
        deplibs=
7865
        wl=$lt_prog_compiler_wl
7866
        pic_flag=$lt_prog_compiler_pic
7867
        compiler_flags=-v
7868
        linker_flags=-v
7869
        verstring=
7870
        output_objdir=.
7871
        libname=conftest
7872
        lt_save_allow_undefined_flag=$allow_undefined_flag
7873
        allow_undefined_flag=
7874
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7875
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7876
  ac_status=$?
7877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878
  (exit $ac_status); }
7879
        then
7880
          archive_cmds_need_lc=no
7881
        else
7882
          archive_cmds_need_lc=yes
7883
        fi
7884
        allow_undefined_flag=$lt_save_allow_undefined_flag
7885
      else
7886
        cat conftest.err 1>&5
7887
      fi
7888
      $rm conftest*
7889
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7890
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7891
      ;;
7892
    esac
7893
  fi
7894
  ;;
7895
esac
7896
 
7897
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7898
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7899
library_names_spec=
7900
libname_spec='lib$name'
7901
soname_spec=
7902
shrext_cmds=".so"
7903
postinstall_cmds=
7904
postuninstall_cmds=
7905
finish_cmds=
7906
finish_eval=
7907
shlibpath_var=
7908
shlibpath_overrides_runpath=unknown
7909
version_type=none
7910
dynamic_linker="$host_os ld.so"
7911
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7912
 
7913
if test "$GCC" = yes; then
7914
  case $host_os in
7915
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7916
    *) lt_awk_arg="/^libraries:/" ;;
7917
  esac
7918
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7919
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7920
    # if the path contains ";" then we assume it to be the separator
7921
    # otherwise default to the standard path separator (i.e. ":") - it is
7922
    # assumed that no part of a normal pathname contains ";" but that should
7923
    # okay in the real world where ";" in dirpaths is itself problematic.
7924
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7925
  else
7926
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7927
  fi
7928
  # Ok, now we have the path, separated by spaces, we can step through it
7929
  # and add multilib dir if necessary.
7930
  lt_tmp_lt_search_path_spec=
7931
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7932
  for lt_sys_path in $lt_search_path_spec; do
7933
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7934
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7935
    else
7936
      test -d "$lt_sys_path" && \
7937
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7938
    fi
7939
  done
7940
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7941
BEGIN {RS=" "; FS="/|\n";} {
7942
  lt_foo="";
7943
  lt_count=0;
7944
  for (lt_i = NF; lt_i > 0; lt_i--) {
7945
    if ($lt_i != "" && $lt_i != ".") {
7946
      if ($lt_i == "..") {
7947
        lt_count++;
7948
      } else {
7949
        if (lt_count == 0) {
7950
          lt_foo="/" $lt_i lt_foo;
7951
        } else {
7952
          lt_count--;
7953
        }
7954
      }
7955
    }
7956
  }
7957
  if (lt_foo != "") { lt_freq[lt_foo]++; }
7958
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
7959
}'`
7960
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
7961
else
7962
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7963
fi
7964
need_lib_prefix=unknown
7965
hardcode_into_libs=no
7966
 
7967
# when you set need_version to no, make sure it does not cause -set_version
7968
# flags to be left without arguments
7969
need_version=unknown
7970
 
7971
case $host_os in
7972
aix3*)
7973
  version_type=linux
7974
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7975
  shlibpath_var=LIBPATH
7976
 
7977
  # AIX 3 has no versioning support, so we append a major version to the name.
7978
  soname_spec='${libname}${release}${shared_ext}$major'
7979
  ;;
7980
 
7981
aix4* | aix5*)
7982
  version_type=linux
7983
  need_lib_prefix=no
7984
  need_version=no
7985
  hardcode_into_libs=yes
7986
  if test "$host_cpu" = ia64; then
7987
    # AIX 5 supports IA64
7988
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7989
    shlibpath_var=LD_LIBRARY_PATH
7990
  else
7991
    # With GCC up to 2.95.x, collect2 would create an import file
7992
    # for dependence libraries.  The import file would start with
7993
    # the line `#! .'.  This would cause the generated library to
7994
    # depend on `.', always an invalid library.  This was fixed in
7995
    # development snapshots of GCC prior to 3.0.
7996
    case $host_os in
7997
      aix4 | aix4.[01] | aix4.[01].*)
7998
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7999
           echo ' yes '
8000
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8001
        :
8002
      else
8003
        can_build_shared=no
8004
      fi
8005
      ;;
8006
    esac
8007
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8008
    # soname into executable. Probably we can add versioning support to
8009
    # collect2, so additional links can be useful in future.
8010
    if test "$aix_use_runtimelinking" = yes; then
8011
      # If using run time linking (on AIX 4.2 or later) use lib.so
8012
      # instead of lib.a to let people know that these are not
8013
      # typical AIX shared libraries.
8014
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8015
    else
8016
      # We preserve .a as extension for shared libraries through AIX4.2
8017
      # and later when we are not doing run time linking.
8018
      library_names_spec='${libname}${release}.a $libname.a'
8019
      soname_spec='${libname}${release}${shared_ext}$major'
8020
    fi
8021
    shlibpath_var=LIBPATH
8022
  fi
8023
  ;;
8024
 
8025
amigaos*)
8026
  library_names_spec='$libname.ixlibrary $libname.a'
8027
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8028
  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'
8029
  ;;
8030
 
8031
beos*)
8032
  library_names_spec='${libname}${shared_ext}'
8033
  dynamic_linker="$host_os ld.so"
8034
  shlibpath_var=LIBRARY_PATH
8035
  ;;
8036
 
8037
bsdi[45]*)
8038
  version_type=linux
8039
  need_version=no
8040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041
  soname_spec='${libname}${release}${shared_ext}$major'
8042
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8043
  shlibpath_var=LD_LIBRARY_PATH
8044
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8045
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8046
  # the default ld.so.conf also contains /usr/contrib/lib and
8047
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8048
  # libtool to hard-code these into programs
8049
  ;;
8050
 
8051
cygwin* | mingw* | pw32*)
8052
  version_type=windows
8053
  shrext_cmds=".dll"
8054
  need_version=no
8055
  need_lib_prefix=no
8056
 
8057
  case $GCC,$host_os in
8058
  yes,cygwin* | yes,mingw* | yes,pw32*)
8059
    library_names_spec='$libname.dll.a'
8060
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8061
    postinstall_cmds='base_file=`basename \${file}`~
8062
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8063
      dldir=$destdir/`dirname \$dlpath`~
8064
      test -d \$dldir || mkdir -p \$dldir~
8065
      $install_prog $dir/$dlname \$dldir/$dlname~
8066
      chmod a+x \$dldir/$dlname'
8067
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8068
      dlpath=$dir/\$dldll~
8069
       $rm \$dlpath'
8070
    shlibpath_overrides_runpath=yes
8071
 
8072
    case $host_os in
8073
    cygwin*)
8074
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8075
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8076
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8077
      ;;
8078
    mingw*)
8079
      # MinGW DLLs use traditional 'lib' prefix
8080
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8081
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8082
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8083
        # It is most probably a Windows format PATH printed by
8084
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8085
        # path with ; separators, and with drive letters. We can handle the
8086
        # drive letters (cygwin fileutils understands them), so leave them,
8087
        # especially as we might pass files found there to a mingw objdump,
8088
        # which wouldn't understand a cygwinified path. Ahh.
8089
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8090
      else
8091
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8092
      fi
8093
      ;;
8094
    pw32*)
8095
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8096
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8097
      ;;
8098
    esac
8099
    ;;
8100
 
8101
  *)
8102
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8103
    ;;
8104
  esac
8105
  dynamic_linker='Win32 ld.exe'
8106
  # FIXME: first we should search . and the directory the executable is in
8107
  shlibpath_var=PATH
8108
  ;;
8109
 
8110
darwin* | rhapsody*)
8111
  dynamic_linker="$host_os dyld"
8112
  version_type=darwin
8113
  need_lib_prefix=no
8114
  need_version=no
8115
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8116
  soname_spec='${libname}${release}${major}$shared_ext'
8117
  shlibpath_overrides_runpath=yes
8118
  shlibpath_var=DYLD_LIBRARY_PATH
8119
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8120
 
8121
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8122
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8123
  ;;
8124
 
8125
dgux*)
8126
  version_type=linux
8127
  need_lib_prefix=no
8128
  need_version=no
8129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8130
  soname_spec='${libname}${release}${shared_ext}$major'
8131
  shlibpath_var=LD_LIBRARY_PATH
8132
  ;;
8133
 
8134
freebsd1*)
8135
  dynamic_linker=no
8136
  ;;
8137
 
8138
freebsd* | dragonfly*)
8139
  # DragonFly does not have aout.  When/if they implement a new
8140
  # versioning mechanism, adjust this.
8141
  if test -x /usr/bin/objformat; then
8142
    objformat=`/usr/bin/objformat`
8143
  else
8144
    case $host_os in
8145
    freebsd[123]*) objformat=aout ;;
8146
    *) objformat=elf ;;
8147
    esac
8148
  fi
8149
  version_type=freebsd-$objformat
8150
  case $version_type in
8151
    freebsd-elf*)
8152
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8153
      need_version=no
8154
      need_lib_prefix=no
8155
      ;;
8156
    freebsd-*)
8157
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8158
      need_version=yes
8159
      ;;
8160
  esac
8161
  shlibpath_var=LD_LIBRARY_PATH
8162
  case $host_os in
8163
  freebsd2*)
8164
    shlibpath_overrides_runpath=yes
8165
    ;;
8166
  freebsd3.[01]* | freebsdelf3.[01]*)
8167
    shlibpath_overrides_runpath=yes
8168
    hardcode_into_libs=yes
8169
    ;;
8170
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8171
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8172
    shlibpath_overrides_runpath=no
8173
    hardcode_into_libs=yes
8174
    ;;
8175
  *) # from 4.6 on, and DragonFly
8176
    shlibpath_overrides_runpath=yes
8177
    hardcode_into_libs=yes
8178
    ;;
8179
  esac
8180
  ;;
8181
 
8182
gnu*)
8183
  version_type=linux
8184
  need_lib_prefix=no
8185
  need_version=no
8186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8187
  soname_spec='${libname}${release}${shared_ext}$major'
8188
  shlibpath_var=LD_LIBRARY_PATH
8189
  hardcode_into_libs=yes
8190
  ;;
8191
 
8192
hpux9* | hpux10* | hpux11*)
8193
  # Give a soname corresponding to the major version so that dld.sl refuses to
8194
  # link against other versions.
8195
  version_type=sunos
8196
  need_lib_prefix=no
8197
  need_version=no
8198
  case $host_cpu in
8199
  ia64*)
8200
    shrext_cmds='.so'
8201
    hardcode_into_libs=yes
8202
    dynamic_linker="$host_os dld.so"
8203
    shlibpath_var=LD_LIBRARY_PATH
8204
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8205
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8206
    soname_spec='${libname}${release}${shared_ext}$major'
8207
    if test "X$HPUX_IA64_MODE" = X32; then
8208
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8209
    else
8210
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8211
    fi
8212
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8213
    ;;
8214
   hppa*64*)
8215
     shrext_cmds='.sl'
8216
     hardcode_into_libs=yes
8217
     dynamic_linker="$host_os dld.sl"
8218
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8219
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8220
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221
     soname_spec='${libname}${release}${shared_ext}$major'
8222
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8223
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8224
     ;;
8225
   *)
8226
    shrext_cmds='.sl'
8227
    dynamic_linker="$host_os dld.sl"
8228
    shlibpath_var=SHLIB_PATH
8229
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8230
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231
    soname_spec='${libname}${release}${shared_ext}$major'
8232
    ;;
8233
  esac
8234
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8235
  postinstall_cmds='chmod 555 $lib'
8236
  ;;
8237
 
8238
interix[3-9]*)
8239
  version_type=linux
8240
  need_lib_prefix=no
8241
  need_version=no
8242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8243
  soname_spec='${libname}${release}${shared_ext}$major'
8244
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8245
  shlibpath_var=LD_LIBRARY_PATH
8246
  shlibpath_overrides_runpath=no
8247
  hardcode_into_libs=yes
8248
  ;;
8249
 
8250
irix5* | irix6* | nonstopux*)
8251
  case $host_os in
8252
    nonstopux*) version_type=nonstopux ;;
8253
    *)
8254
        if test "$lt_cv_prog_gnu_ld" = yes; then
8255
                version_type=linux
8256
        else
8257
                version_type=irix
8258
        fi ;;
8259
  esac
8260
  need_lib_prefix=no
8261
  need_version=no
8262
  soname_spec='${libname}${release}${shared_ext}$major'
8263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8264
  case $host_os in
8265
  irix5* | nonstopux*)
8266
    libsuff= shlibsuff=
8267
    ;;
8268
  *)
8269
    case $LD in # libtool.m4 will add one of these switches to LD
8270
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8271
      libsuff= shlibsuff= libmagic=32-bit;;
8272
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8273
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8274
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8275
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8276
    *) libsuff= shlibsuff= libmagic=never-match;;
8277
    esac
8278
    ;;
8279
  esac
8280
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8281
  shlibpath_overrides_runpath=no
8282
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8283
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8284
  hardcode_into_libs=yes
8285
  ;;
8286
 
8287
# No shared lib support for Linux oldld, aout, or coff.
8288
linux*oldld* | linux*aout* | linux*coff*)
8289
  dynamic_linker=no
8290
  ;;
8291
 
8292
# This must be Linux ELF.
8293
linux* | k*bsd*-gnu)
8294
  version_type=linux
8295
  need_lib_prefix=no
8296
  need_version=no
8297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298
  soname_spec='${libname}${release}${shared_ext}$major'
8299
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8300
  shlibpath_var=LD_LIBRARY_PATH
8301
  shlibpath_overrides_runpath=no
8302
  # This implies no fast_install, which is unacceptable.
8303
  # Some rework will be needed to allow for fast_install
8304
  # before this can be enabled.
8305
  hardcode_into_libs=yes
8306
 
8307
  # Append ld.so.conf contents to the search path
8308
  if test -f /etc/ld.so.conf; then
8309
    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' ' '`
8310 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8311 19 jeremybenn
  fi
8312
 
8313
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8314
  # powerpc, because MkLinux only supported shared libraries with the
8315
  # GNU dynamic linker.  Since this was broken with cross compilers,
8316
  # most powerpc-linux boxes support dynamic linking these days and
8317
  # people can always --disable-shared, the test was removed, and we
8318
  # assume the GNU/Linux dynamic linker is in use.
8319
  dynamic_linker='GNU/Linux ld.so'
8320
  ;;
8321
 
8322
netbsd*)
8323
  version_type=sunos
8324
  need_lib_prefix=no
8325
  need_version=no
8326
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8327
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8328
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8329
    dynamic_linker='NetBSD (a.out) ld.so'
8330
  else
8331
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8332
    soname_spec='${libname}${release}${shared_ext}$major'
8333
    dynamic_linker='NetBSD ld.elf_so'
8334
  fi
8335
  shlibpath_var=LD_LIBRARY_PATH
8336
  shlibpath_overrides_runpath=yes
8337
  hardcode_into_libs=yes
8338
  ;;
8339
 
8340
newsos6)
8341
  version_type=linux
8342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8343
  shlibpath_var=LD_LIBRARY_PATH
8344
  shlibpath_overrides_runpath=yes
8345
  ;;
8346
 
8347
nto-qnx*)
8348
  version_type=linux
8349
  need_lib_prefix=no
8350
  need_version=no
8351
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8352
  soname_spec='${libname}${release}${shared_ext}$major'
8353
  shlibpath_var=LD_LIBRARY_PATH
8354
  shlibpath_overrides_runpath=yes
8355
  ;;
8356
 
8357
openbsd*)
8358
  version_type=sunos
8359
  sys_lib_dlsearch_path_spec="/usr/lib"
8360
  need_lib_prefix=no
8361
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8362
  case $host_os in
8363
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8364
    *)                         need_version=no  ;;
8365
  esac
8366
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8367
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8368
  shlibpath_var=LD_LIBRARY_PATH
8369
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8370
    case $host_os in
8371
      openbsd2.[89] | openbsd2.[89].*)
8372
        shlibpath_overrides_runpath=no
8373
        ;;
8374
      *)
8375
        shlibpath_overrides_runpath=yes
8376
        ;;
8377
      esac
8378
  else
8379
    shlibpath_overrides_runpath=yes
8380
  fi
8381
  ;;
8382
 
8383
os2*)
8384
  libname_spec='$name'
8385
  shrext_cmds=".dll"
8386
  need_lib_prefix=no
8387
  library_names_spec='$libname${shared_ext} $libname.a'
8388
  dynamic_linker='OS/2 ld.exe'
8389
  shlibpath_var=LIBPATH
8390
  ;;
8391
 
8392
osf3* | osf4* | osf5*)
8393
  version_type=osf
8394
  need_lib_prefix=no
8395
  need_version=no
8396
  soname_spec='${libname}${release}${shared_ext}$major'
8397
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398
  shlibpath_var=LD_LIBRARY_PATH
8399
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8400
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8401
  ;;
8402
 
8403
rdos*)
8404
  dynamic_linker=no
8405
  ;;
8406
 
8407
solaris*)
8408
  version_type=linux
8409
  need_lib_prefix=no
8410
  need_version=no
8411
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412
  soname_spec='${libname}${release}${shared_ext}$major'
8413
  shlibpath_var=LD_LIBRARY_PATH
8414
  shlibpath_overrides_runpath=yes
8415
  hardcode_into_libs=yes
8416
  # ldd complains unless libraries are executable
8417
  postinstall_cmds='chmod +x $lib'
8418
  ;;
8419
 
8420
sunos4*)
8421
  version_type=sunos
8422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8423
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8424
  shlibpath_var=LD_LIBRARY_PATH
8425
  shlibpath_overrides_runpath=yes
8426
  if test "$with_gnu_ld" = yes; then
8427
    need_lib_prefix=no
8428
  fi
8429
  need_version=yes
8430
  ;;
8431
 
8432
sysv4 | sysv4.3*)
8433
  version_type=linux
8434
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8435
  soname_spec='${libname}${release}${shared_ext}$major'
8436
  shlibpath_var=LD_LIBRARY_PATH
8437
  case $host_vendor in
8438
    sni)
8439
      shlibpath_overrides_runpath=no
8440
      need_lib_prefix=no
8441
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8442
      runpath_var=LD_RUN_PATH
8443
      ;;
8444
    siemens)
8445
      need_lib_prefix=no
8446
      ;;
8447
    motorola)
8448
      need_lib_prefix=no
8449
      need_version=no
8450
      shlibpath_overrides_runpath=no
8451
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8452
      ;;
8453
  esac
8454
  ;;
8455
 
8456
sysv4*MP*)
8457
  if test -d /usr/nec ;then
8458
    version_type=linux
8459
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8460
    soname_spec='$libname${shared_ext}.$major'
8461
    shlibpath_var=LD_LIBRARY_PATH
8462
  fi
8463
  ;;
8464
 
8465
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8466
  version_type=freebsd-elf
8467
  need_lib_prefix=no
8468
  need_version=no
8469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8470
  soname_spec='${libname}${release}${shared_ext}$major'
8471
  shlibpath_var=LD_LIBRARY_PATH
8472
  hardcode_into_libs=yes
8473
  if test "$with_gnu_ld" = yes; then
8474
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8475
    shlibpath_overrides_runpath=no
8476
  else
8477
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8478
    shlibpath_overrides_runpath=yes
8479
    case $host_os in
8480
      sco3.2v5*)
8481
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8482
        ;;
8483
    esac
8484
  fi
8485
  sys_lib_dlsearch_path_spec='/usr/lib'
8486
  ;;
8487
 
8488
uts4*)
8489
  version_type=linux
8490
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8491
  soname_spec='${libname}${release}${shared_ext}$major'
8492
  shlibpath_var=LD_LIBRARY_PATH
8493
  ;;
8494
 
8495
*)
8496
  dynamic_linker=no
8497
  ;;
8498
esac
8499
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8500
echo "${ECHO_T}$dynamic_linker" >&6; }
8501
test "$dynamic_linker" = no && can_build_shared=no
8502
 
8503
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8504
if test "$GCC" = yes; then
8505
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8506
fi
8507
 
8508
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8509
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8510
hardcode_action=
8511
if test -n "$hardcode_libdir_flag_spec" || \
8512
   test -n "$runpath_var" || \
8513
   test "X$hardcode_automatic" = "Xyes" ; then
8514
 
8515
  # We can hardcode non-existant directories.
8516
  if test "$hardcode_direct" != no &&
8517
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8518
     # have to relink, otherwise we might link with an installed library
8519
     # when we should be linking with a yet-to-be-installed one
8520
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8521
     test "$hardcode_minus_L" != no; then
8522
    # Linking always hardcodes the temporary library directory.
8523
    hardcode_action=relink
8524
  else
8525
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8526
    hardcode_action=immediate
8527
  fi
8528
else
8529
  # We cannot hardcode anything, or else we can only hardcode existing
8530
  # directories.
8531
  hardcode_action=unsupported
8532
fi
8533
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8534
echo "${ECHO_T}$hardcode_action" >&6; }
8535
 
8536
if test "$hardcode_action" = relink; then
8537
  # Fast installation is not supported
8538
  enable_fast_install=no
8539
elif test "$shlibpath_overrides_runpath" = yes ||
8540
     test "$enable_shared" = no; then
8541
  # Fast installation is not necessary
8542
  enable_fast_install=needless
8543
fi
8544
 
8545
striplib=
8546
old_striplib=
8547
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8548
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8549
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8550
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8551
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8552
  { echo "$as_me:$LINENO: result: yes" >&5
8553
echo "${ECHO_T}yes" >&6; }
8554
else
8555
# FIXME - insert some real tests, host_os isn't really good enough
8556
  case $host_os in
8557
   darwin*)
8558
       if test -n "$STRIP" ; then
8559
         striplib="$STRIP -x"
8560
         old_striplib="$STRIP -S"
8561
         { echo "$as_me:$LINENO: result: yes" >&5
8562
echo "${ECHO_T}yes" >&6; }
8563
       else
8564
  { echo "$as_me:$LINENO: result: no" >&5
8565
echo "${ECHO_T}no" >&6; }
8566
fi
8567
       ;;
8568
   *)
8569
  { echo "$as_me:$LINENO: result: no" >&5
8570
echo "${ECHO_T}no" >&6; }
8571
    ;;
8572
  esac
8573
fi
8574
 
8575
if test "x$enable_dlopen" != xyes; then
8576
  enable_dlopen=unknown
8577
  enable_dlopen_self=unknown
8578
  enable_dlopen_self_static=unknown
8579
else
8580
  lt_cv_dlopen=no
8581
  lt_cv_dlopen_libs=
8582
 
8583
  case $host_os in
8584
  beos*)
8585
    lt_cv_dlopen="load_add_on"
8586
    lt_cv_dlopen_libs=
8587
    lt_cv_dlopen_self=yes
8588
    ;;
8589
 
8590
  mingw* | pw32*)
8591
    lt_cv_dlopen="LoadLibrary"
8592
    lt_cv_dlopen_libs=
8593
   ;;
8594
 
8595
  cygwin*)
8596
    lt_cv_dlopen="dlopen"
8597
    lt_cv_dlopen_libs=
8598
   ;;
8599
 
8600
  darwin*)
8601
  # if libdl is installed we need to link against it
8602
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8603
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8604
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8605
  echo $ECHO_N "(cached) $ECHO_C" >&6
8606
else
8607
  ac_check_lib_save_LIBS=$LIBS
8608
LIBS="-ldl  $LIBS"
8609
cat >conftest.$ac_ext <<_ACEOF
8610
/* confdefs.h.  */
8611
_ACEOF
8612
cat confdefs.h >>conftest.$ac_ext
8613
cat >>conftest.$ac_ext <<_ACEOF
8614
/* end confdefs.h.  */
8615
 
8616
/* Override any GCC internal prototype to avoid an error.
8617
   Use char because int might match the return type of a GCC
8618
   builtin and then its argument prototype would still apply.  */
8619
#ifdef __cplusplus
8620
extern "C"
8621
#endif
8622
char dlopen ();
8623
int
8624
main ()
8625
{
8626
return dlopen ();
8627
  ;
8628
  return 0;
8629
}
8630
_ACEOF
8631
rm -f conftest.$ac_objext conftest$ac_exeext
8632
if { (ac_try="$ac_link"
8633
case "(($ac_try" in
8634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635
  *) ac_try_echo=$ac_try;;
8636
esac
8637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638
  (eval "$ac_link") 2>conftest.er1
8639
  ac_status=$?
8640
  grep -v '^ *+' conftest.er1 >conftest.err
8641
  rm -f conftest.er1
8642
  cat conftest.err >&5
8643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644
  (exit $ac_status); } && {
8645
         test -z "$ac_c_werror_flag" ||
8646
         test ! -s conftest.err
8647
       } && test -s conftest$ac_exeext &&
8648
       $as_test_x conftest$ac_exeext; then
8649
  ac_cv_lib_dl_dlopen=yes
8650
else
8651
  echo "$as_me: failed program was:" >&5
8652
sed 's/^/| /' conftest.$ac_ext >&5
8653
 
8654
        ac_cv_lib_dl_dlopen=no
8655
fi
8656
 
8657
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8658
      conftest$ac_exeext conftest.$ac_ext
8659
LIBS=$ac_check_lib_save_LIBS
8660
fi
8661
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8662
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8663
if test $ac_cv_lib_dl_dlopen = yes; then
8664
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8665
else
8666
 
8667
    lt_cv_dlopen="dyld"
8668
    lt_cv_dlopen_libs=
8669
    lt_cv_dlopen_self=yes
8670
 
8671
fi
8672
 
8673
   ;;
8674
 
8675
  *)
8676
    { echo "$as_me:$LINENO: checking for shl_load" >&5
8677
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8678
if test "${ac_cv_func_shl_load+set}" = set; then
8679
  echo $ECHO_N "(cached) $ECHO_C" >&6
8680
else
8681
  cat >conftest.$ac_ext <<_ACEOF
8682
/* confdefs.h.  */
8683
_ACEOF
8684
cat confdefs.h >>conftest.$ac_ext
8685
cat >>conftest.$ac_ext <<_ACEOF
8686
/* end confdefs.h.  */
8687
/* Define shl_load to an innocuous variant, in case  declares shl_load.
8688
   For example, HP-UX 11i  declares gettimeofday.  */
8689
#define shl_load innocuous_shl_load
8690
 
8691
/* System header to define __stub macros and hopefully few prototypes,
8692
    which can conflict with char shl_load (); below.
8693
    Prefer  to  if __STDC__ is defined, since
8694
     exists even on freestanding compilers.  */
8695
 
8696
#ifdef __STDC__
8697
# include 
8698
#else
8699
# include 
8700
#endif
8701
 
8702
#undef shl_load
8703
 
8704
/* Override any GCC internal prototype to avoid an error.
8705
   Use char because int might match the return type of a GCC
8706
   builtin and then its argument prototype would still apply.  */
8707
#ifdef __cplusplus
8708
extern "C"
8709
#endif
8710
char shl_load ();
8711
/* The GNU C library defines this for functions which it implements
8712
    to always fail with ENOSYS.  Some functions are actually named
8713
    something starting with __ and the normal name is an alias.  */
8714
#if defined __stub_shl_load || defined __stub___shl_load
8715
choke me
8716
#endif
8717
 
8718
int
8719
main ()
8720
{
8721
return shl_load ();
8722
  ;
8723
  return 0;
8724
}
8725
_ACEOF
8726
rm -f conftest.$ac_objext conftest$ac_exeext
8727
if { (ac_try="$ac_link"
8728
case "(($ac_try" in
8729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730
  *) ac_try_echo=$ac_try;;
8731
esac
8732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733
  (eval "$ac_link") 2>conftest.er1
8734
  ac_status=$?
8735
  grep -v '^ *+' conftest.er1 >conftest.err
8736
  rm -f conftest.er1
8737
  cat conftest.err >&5
8738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739
  (exit $ac_status); } && {
8740
         test -z "$ac_c_werror_flag" ||
8741
         test ! -s conftest.err
8742
       } && test -s conftest$ac_exeext &&
8743
       $as_test_x conftest$ac_exeext; then
8744
  ac_cv_func_shl_load=yes
8745
else
8746
  echo "$as_me: failed program was:" >&5
8747
sed 's/^/| /' conftest.$ac_ext >&5
8748
 
8749
        ac_cv_func_shl_load=no
8750
fi
8751
 
8752
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8753
      conftest$ac_exeext conftest.$ac_ext
8754
fi
8755
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8756
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8757
if test $ac_cv_func_shl_load = yes; then
8758
  lt_cv_dlopen="shl_load"
8759
else
8760
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8761
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8762
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8763
  echo $ECHO_N "(cached) $ECHO_C" >&6
8764
else
8765
  ac_check_lib_save_LIBS=$LIBS
8766
LIBS="-ldld  $LIBS"
8767
cat >conftest.$ac_ext <<_ACEOF
8768
/* confdefs.h.  */
8769
_ACEOF
8770
cat confdefs.h >>conftest.$ac_ext
8771
cat >>conftest.$ac_ext <<_ACEOF
8772
/* end confdefs.h.  */
8773
 
8774
/* Override any GCC internal prototype to avoid an error.
8775
   Use char because int might match the return type of a GCC
8776
   builtin and then its argument prototype would still apply.  */
8777
#ifdef __cplusplus
8778
extern "C"
8779
#endif
8780
char shl_load ();
8781
int
8782
main ()
8783
{
8784
return shl_load ();
8785
  ;
8786
  return 0;
8787
}
8788
_ACEOF
8789
rm -f conftest.$ac_objext conftest$ac_exeext
8790
if { (ac_try="$ac_link"
8791
case "(($ac_try" in
8792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793
  *) ac_try_echo=$ac_try;;
8794
esac
8795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796
  (eval "$ac_link") 2>conftest.er1
8797
  ac_status=$?
8798
  grep -v '^ *+' conftest.er1 >conftest.err
8799
  rm -f conftest.er1
8800
  cat conftest.err >&5
8801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802
  (exit $ac_status); } && {
8803
         test -z "$ac_c_werror_flag" ||
8804
         test ! -s conftest.err
8805
       } && test -s conftest$ac_exeext &&
8806
       $as_test_x conftest$ac_exeext; then
8807
  ac_cv_lib_dld_shl_load=yes
8808
else
8809
  echo "$as_me: failed program was:" >&5
8810
sed 's/^/| /' conftest.$ac_ext >&5
8811
 
8812
        ac_cv_lib_dld_shl_load=no
8813
fi
8814
 
8815
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8816
      conftest$ac_exeext conftest.$ac_ext
8817
LIBS=$ac_check_lib_save_LIBS
8818
fi
8819
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8820
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8821
if test $ac_cv_lib_dld_shl_load = yes; then
8822
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8823
else
8824
  { echo "$as_me:$LINENO: checking for dlopen" >&5
8825
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8826
if test "${ac_cv_func_dlopen+set}" = set; then
8827
  echo $ECHO_N "(cached) $ECHO_C" >&6
8828
else
8829
  cat >conftest.$ac_ext <<_ACEOF
8830
/* confdefs.h.  */
8831
_ACEOF
8832
cat confdefs.h >>conftest.$ac_ext
8833
cat >>conftest.$ac_ext <<_ACEOF
8834
/* end confdefs.h.  */
8835
/* Define dlopen to an innocuous variant, in case  declares dlopen.
8836
   For example, HP-UX 11i  declares gettimeofday.  */
8837
#define dlopen innocuous_dlopen
8838
 
8839
/* System header to define __stub macros and hopefully few prototypes,
8840
    which can conflict with char dlopen (); below.
8841
    Prefer  to  if __STDC__ is defined, since
8842
     exists even on freestanding compilers.  */
8843
 
8844
#ifdef __STDC__
8845
# include 
8846
#else
8847
# include 
8848
#endif
8849
 
8850
#undef dlopen
8851
 
8852
/* Override any GCC internal prototype to avoid an error.
8853
   Use char because int might match the return type of a GCC
8854
   builtin and then its argument prototype would still apply.  */
8855
#ifdef __cplusplus
8856
extern "C"
8857
#endif
8858
char dlopen ();
8859
/* The GNU C library defines this for functions which it implements
8860
    to always fail with ENOSYS.  Some functions are actually named
8861
    something starting with __ and the normal name is an alias.  */
8862
#if defined __stub_dlopen || defined __stub___dlopen
8863
choke me
8864
#endif
8865
 
8866
int
8867
main ()
8868
{
8869
return dlopen ();
8870
  ;
8871
  return 0;
8872
}
8873
_ACEOF
8874
rm -f conftest.$ac_objext conftest$ac_exeext
8875
if { (ac_try="$ac_link"
8876
case "(($ac_try" in
8877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878
  *) ac_try_echo=$ac_try;;
8879
esac
8880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881
  (eval "$ac_link") 2>conftest.er1
8882
  ac_status=$?
8883
  grep -v '^ *+' conftest.er1 >conftest.err
8884
  rm -f conftest.er1
8885
  cat conftest.err >&5
8886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887
  (exit $ac_status); } && {
8888
         test -z "$ac_c_werror_flag" ||
8889
         test ! -s conftest.err
8890
       } && test -s conftest$ac_exeext &&
8891
       $as_test_x conftest$ac_exeext; then
8892
  ac_cv_func_dlopen=yes
8893
else
8894
  echo "$as_me: failed program was:" >&5
8895
sed 's/^/| /' conftest.$ac_ext >&5
8896
 
8897
        ac_cv_func_dlopen=no
8898
fi
8899
 
8900
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8901
      conftest$ac_exeext conftest.$ac_ext
8902
fi
8903
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8904
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8905
if test $ac_cv_func_dlopen = yes; then
8906
  lt_cv_dlopen="dlopen"
8907
else
8908
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8909
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8910
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8911
  echo $ECHO_N "(cached) $ECHO_C" >&6
8912
else
8913
  ac_check_lib_save_LIBS=$LIBS
8914
LIBS="-ldl  $LIBS"
8915
cat >conftest.$ac_ext <<_ACEOF
8916
/* confdefs.h.  */
8917
_ACEOF
8918
cat confdefs.h >>conftest.$ac_ext
8919
cat >>conftest.$ac_ext <<_ACEOF
8920
/* end confdefs.h.  */
8921
 
8922
/* Override any GCC internal prototype to avoid an error.
8923
   Use char because int might match the return type of a GCC
8924
   builtin and then its argument prototype would still apply.  */
8925
#ifdef __cplusplus
8926
extern "C"
8927
#endif
8928
char dlopen ();
8929
int
8930
main ()
8931
{
8932
return dlopen ();
8933
  ;
8934
  return 0;
8935
}
8936
_ACEOF
8937
rm -f conftest.$ac_objext conftest$ac_exeext
8938
if { (ac_try="$ac_link"
8939
case "(($ac_try" in
8940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941
  *) ac_try_echo=$ac_try;;
8942
esac
8943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944
  (eval "$ac_link") 2>conftest.er1
8945
  ac_status=$?
8946
  grep -v '^ *+' conftest.er1 >conftest.err
8947
  rm -f conftest.er1
8948
  cat conftest.err >&5
8949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950
  (exit $ac_status); } && {
8951
         test -z "$ac_c_werror_flag" ||
8952
         test ! -s conftest.err
8953
       } && test -s conftest$ac_exeext &&
8954
       $as_test_x conftest$ac_exeext; then
8955
  ac_cv_lib_dl_dlopen=yes
8956
else
8957
  echo "$as_me: failed program was:" >&5
8958
sed 's/^/| /' conftest.$ac_ext >&5
8959
 
8960
        ac_cv_lib_dl_dlopen=no
8961
fi
8962
 
8963
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8964
      conftest$ac_exeext conftest.$ac_ext
8965
LIBS=$ac_check_lib_save_LIBS
8966
fi
8967
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8968
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8969
if test $ac_cv_lib_dl_dlopen = yes; then
8970
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8971
else
8972
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8973
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8974
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8975
  echo $ECHO_N "(cached) $ECHO_C" >&6
8976
else
8977
  ac_check_lib_save_LIBS=$LIBS
8978
LIBS="-lsvld  $LIBS"
8979
cat >conftest.$ac_ext <<_ACEOF
8980
/* confdefs.h.  */
8981
_ACEOF
8982
cat confdefs.h >>conftest.$ac_ext
8983
cat >>conftest.$ac_ext <<_ACEOF
8984
/* end confdefs.h.  */
8985
 
8986
/* Override any GCC internal prototype to avoid an error.
8987
   Use char because int might match the return type of a GCC
8988
   builtin and then its argument prototype would still apply.  */
8989
#ifdef __cplusplus
8990
extern "C"
8991
#endif
8992
char dlopen ();
8993
int
8994
main ()
8995
{
8996
return dlopen ();
8997
  ;
8998
  return 0;
8999
}
9000
_ACEOF
9001
rm -f conftest.$ac_objext conftest$ac_exeext
9002
if { (ac_try="$ac_link"
9003
case "(($ac_try" in
9004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005
  *) ac_try_echo=$ac_try;;
9006
esac
9007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008
  (eval "$ac_link") 2>conftest.er1
9009
  ac_status=$?
9010
  grep -v '^ *+' conftest.er1 >conftest.err
9011
  rm -f conftest.er1
9012
  cat conftest.err >&5
9013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014
  (exit $ac_status); } && {
9015
         test -z "$ac_c_werror_flag" ||
9016
         test ! -s conftest.err
9017
       } && test -s conftest$ac_exeext &&
9018
       $as_test_x conftest$ac_exeext; then
9019
  ac_cv_lib_svld_dlopen=yes
9020
else
9021
  echo "$as_me: failed program was:" >&5
9022
sed 's/^/| /' conftest.$ac_ext >&5
9023
 
9024
        ac_cv_lib_svld_dlopen=no
9025
fi
9026
 
9027
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9028
      conftest$ac_exeext conftest.$ac_ext
9029
LIBS=$ac_check_lib_save_LIBS
9030
fi
9031
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9032
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9033
if test $ac_cv_lib_svld_dlopen = yes; then
9034
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9035
else
9036
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9037
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9038
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9039
  echo $ECHO_N "(cached) $ECHO_C" >&6
9040
else
9041
  ac_check_lib_save_LIBS=$LIBS
9042
LIBS="-ldld  $LIBS"
9043
cat >conftest.$ac_ext <<_ACEOF
9044
/* confdefs.h.  */
9045
_ACEOF
9046
cat confdefs.h >>conftest.$ac_ext
9047
cat >>conftest.$ac_ext <<_ACEOF
9048
/* end confdefs.h.  */
9049
 
9050
/* Override any GCC internal prototype to avoid an error.
9051
   Use char because int might match the return type of a GCC
9052
   builtin and then its argument prototype would still apply.  */
9053
#ifdef __cplusplus
9054
extern "C"
9055
#endif
9056
char dld_link ();
9057
int
9058
main ()
9059
{
9060
return dld_link ();
9061
  ;
9062
  return 0;
9063
}
9064
_ACEOF
9065
rm -f conftest.$ac_objext conftest$ac_exeext
9066
if { (ac_try="$ac_link"
9067
case "(($ac_try" in
9068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069
  *) ac_try_echo=$ac_try;;
9070
esac
9071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072
  (eval "$ac_link") 2>conftest.er1
9073
  ac_status=$?
9074
  grep -v '^ *+' conftest.er1 >conftest.err
9075
  rm -f conftest.er1
9076
  cat conftest.err >&5
9077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078
  (exit $ac_status); } && {
9079
         test -z "$ac_c_werror_flag" ||
9080
         test ! -s conftest.err
9081
       } && test -s conftest$ac_exeext &&
9082
       $as_test_x conftest$ac_exeext; then
9083
  ac_cv_lib_dld_dld_link=yes
9084
else
9085
  echo "$as_me: failed program was:" >&5
9086
sed 's/^/| /' conftest.$ac_ext >&5
9087
 
9088
        ac_cv_lib_dld_dld_link=no
9089
fi
9090
 
9091
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9092
      conftest$ac_exeext conftest.$ac_ext
9093
LIBS=$ac_check_lib_save_LIBS
9094
fi
9095
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9096
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9097
if test $ac_cv_lib_dld_dld_link = yes; then
9098
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9099
fi
9100
 
9101
 
9102
fi
9103
 
9104
 
9105
fi
9106
 
9107
 
9108
fi
9109
 
9110
 
9111
fi
9112
 
9113
 
9114
fi
9115
 
9116
    ;;
9117
  esac
9118
 
9119
  if test "x$lt_cv_dlopen" != xno; then
9120
    enable_dlopen=yes
9121
  else
9122
    enable_dlopen=no
9123
  fi
9124
 
9125
  case $lt_cv_dlopen in
9126
  dlopen)
9127
    save_CPPFLAGS="$CPPFLAGS"
9128
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9129
 
9130
    save_LDFLAGS="$LDFLAGS"
9131
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9132
 
9133
    save_LIBS="$LIBS"
9134
    LIBS="$lt_cv_dlopen_libs $LIBS"
9135
 
9136
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9137
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9138
if test "${lt_cv_dlopen_self+set}" = set; then
9139
  echo $ECHO_N "(cached) $ECHO_C" >&6
9140
else
9141
          if test "$cross_compiling" = yes; then :
9142
  lt_cv_dlopen_self=cross
9143
else
9144
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9145
  lt_status=$lt_dlunknown
9146
  cat > conftest.$ac_ext <
9147
#line __oline__ "configure"
9148
#include "confdefs.h"
9149
 
9150
#if HAVE_DLFCN_H
9151
#include 
9152
#endif
9153
 
9154
#include 
9155
 
9156
#ifdef RTLD_GLOBAL
9157
#  define LT_DLGLOBAL           RTLD_GLOBAL
9158
#else
9159
#  ifdef DL_GLOBAL
9160
#    define LT_DLGLOBAL         DL_GLOBAL
9161
#  else
9162
#    define LT_DLGLOBAL         0
9163
#  endif
9164
#endif
9165
 
9166
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9167
   find out it does not work in some platform. */
9168
#ifndef LT_DLLAZY_OR_NOW
9169
#  ifdef RTLD_LAZY
9170
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9171
#  else
9172
#    ifdef DL_LAZY
9173
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9174
#    else
9175
#      ifdef RTLD_NOW
9176
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9177
#      else
9178
#        ifdef DL_NOW
9179
#          define LT_DLLAZY_OR_NOW      DL_NOW
9180
#        else
9181
#          define LT_DLLAZY_OR_NOW      0
9182
#        endif
9183
#      endif
9184
#    endif
9185
#  endif
9186
#endif
9187
 
9188
#ifdef __cplusplus
9189
extern "C" void exit (int);
9190
#endif
9191
 
9192
void fnord() { int i=42;}
9193
int main ()
9194
{
9195
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9196
  int status = $lt_dlunknown;
9197
 
9198
  if (self)
9199
    {
9200
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9201
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9202
      /* dlclose (self); */
9203
    }
9204
  else
9205
    puts (dlerror ());
9206
 
9207
    exit (status);
9208
}
9209
EOF
9210
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211
  (eval $ac_link) 2>&5
9212
  ac_status=$?
9213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9215
    (./conftest; exit; ) >&5 2>/dev/null
9216
    lt_status=$?
9217
    case x$lt_status in
9218
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9219
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9220
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9221
    esac
9222
  else :
9223
    # compilation failed
9224
    lt_cv_dlopen_self=no
9225
  fi
9226
fi
9227
rm -fr conftest*
9228
 
9229
 
9230
fi
9231
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9232
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9233
 
9234
    if test "x$lt_cv_dlopen_self" = xyes; then
9235
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9236
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9237
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9238
if test "${lt_cv_dlopen_self_static+set}" = set; then
9239
  echo $ECHO_N "(cached) $ECHO_C" >&6
9240
else
9241
          if test "$cross_compiling" = yes; then :
9242
  lt_cv_dlopen_self_static=cross
9243
else
9244
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9245
  lt_status=$lt_dlunknown
9246
  cat > conftest.$ac_ext <
9247
#line __oline__ "configure"
9248
#include "confdefs.h"
9249
 
9250
#if HAVE_DLFCN_H
9251
#include 
9252
#endif
9253
 
9254
#include 
9255
 
9256
#ifdef RTLD_GLOBAL
9257
#  define LT_DLGLOBAL           RTLD_GLOBAL
9258
#else
9259
#  ifdef DL_GLOBAL
9260
#    define LT_DLGLOBAL         DL_GLOBAL
9261
#  else
9262
#    define LT_DLGLOBAL         0
9263
#  endif
9264
#endif
9265
 
9266
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9267
   find out it does not work in some platform. */
9268
#ifndef LT_DLLAZY_OR_NOW
9269
#  ifdef RTLD_LAZY
9270
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9271
#  else
9272
#    ifdef DL_LAZY
9273
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9274
#    else
9275
#      ifdef RTLD_NOW
9276
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9277
#      else
9278
#        ifdef DL_NOW
9279
#          define LT_DLLAZY_OR_NOW      DL_NOW
9280
#        else
9281
#          define LT_DLLAZY_OR_NOW      0
9282
#        endif
9283
#      endif
9284
#    endif
9285
#  endif
9286
#endif
9287
 
9288
#ifdef __cplusplus
9289
extern "C" void exit (int);
9290
#endif
9291
 
9292
void fnord() { int i=42;}
9293
int main ()
9294
{
9295
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9296
  int status = $lt_dlunknown;
9297
 
9298
  if (self)
9299
    {
9300
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9301
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9302
      /* dlclose (self); */
9303
    }
9304
  else
9305
    puts (dlerror ());
9306
 
9307
    exit (status);
9308
}
9309
EOF
9310
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311
  (eval $ac_link) 2>&5
9312
  ac_status=$?
9313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9315
    (./conftest; exit; ) >&5 2>/dev/null
9316
    lt_status=$?
9317
    case x$lt_status in
9318
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9319
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9320
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9321
    esac
9322
  else :
9323
    # compilation failed
9324
    lt_cv_dlopen_self_static=no
9325
  fi
9326
fi
9327
rm -fr conftest*
9328
 
9329
 
9330
fi
9331
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9332
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9333
    fi
9334
 
9335
    CPPFLAGS="$save_CPPFLAGS"
9336
    LDFLAGS="$save_LDFLAGS"
9337
    LIBS="$save_LIBS"
9338
    ;;
9339
  esac
9340
 
9341
  case $lt_cv_dlopen_self in
9342
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9343
  *) enable_dlopen_self=unknown ;;
9344
  esac
9345
 
9346
  case $lt_cv_dlopen_self_static in
9347
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9348
  *) enable_dlopen_self_static=unknown ;;
9349
  esac
9350
fi
9351
 
9352
 
9353
# Report which library types will actually be built
9354
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9355
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9356
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9357
echo "${ECHO_T}$can_build_shared" >&6; }
9358
 
9359
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9360
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9361
test "$can_build_shared" = "no" && enable_shared=no
9362
 
9363
# On AIX, shared libraries and static libraries use the same namespace, and
9364
# are all built from PIC.
9365
case $host_os in
9366
aix3*)
9367
  test "$enable_shared" = yes && enable_static=no
9368
  if test -n "$RANLIB"; then
9369
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9370
    postinstall_cmds='$RANLIB $lib'
9371
  fi
9372
  ;;
9373
 
9374
aix4* | aix5*)
9375
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9376
    test "$enable_shared" = yes && enable_static=no
9377
  fi
9378
    ;;
9379
esac
9380
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9381
echo "${ECHO_T}$enable_shared" >&6; }
9382
 
9383
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9384
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9385
# Make sure either enable_shared or enable_static is yes.
9386
test "$enable_shared" = yes || enable_static=yes
9387
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9388
echo "${ECHO_T}$enable_static" >&6; }
9389
 
9390
# The else clause should only fire when bootstrapping the
9391
# libtool distribution, otherwise you forgot to ship ltmain.sh
9392
# with your package, and you will get complaints that there are
9393
# no rules to generate ltmain.sh.
9394
if test -f "$ltmain"; then
9395
  # See if we are running on zsh, and set the options which allow our commands through
9396
  # without removal of \ escapes.
9397
  if test -n "${ZSH_VERSION+set}" ; then
9398
    setopt NO_GLOB_SUBST
9399
  fi
9400
  # Now quote all the things that may contain metacharacters while being
9401
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9402
  # variables and quote the copies for generation of the libtool script.
9403
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9404
    SED SHELL STRIP \
9405
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9406
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9407
    deplibs_check_method reload_flag reload_cmds need_locks \
9408
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9409
    lt_cv_sys_global_symbol_to_c_name_address \
9410
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9411
    old_postinstall_cmds old_postuninstall_cmds \
9412
    compiler \
9413
    CC \
9414
    LD \
9415
    lt_prog_compiler_wl \
9416
    lt_prog_compiler_pic \
9417
    lt_prog_compiler_static \
9418
    lt_prog_compiler_no_builtin_flag \
9419
    export_dynamic_flag_spec \
9420
    thread_safe_flag_spec \
9421
    whole_archive_flag_spec \
9422
    enable_shared_with_static_runtimes \
9423
    old_archive_cmds \
9424
    old_archive_from_new_cmds \
9425
    predep_objects \
9426
    postdep_objects \
9427
    predeps \
9428
    postdeps \
9429
    compiler_lib_search_path \
9430
    archive_cmds \
9431
    archive_expsym_cmds \
9432
    postinstall_cmds \
9433
    postuninstall_cmds \
9434
    old_archive_from_expsyms_cmds \
9435
    allow_undefined_flag \
9436
    no_undefined_flag \
9437
    export_symbols_cmds \
9438
    hardcode_libdir_flag_spec \
9439
    hardcode_libdir_flag_spec_ld \
9440
    hardcode_libdir_separator \
9441
    hardcode_automatic \
9442
    module_cmds \
9443
    module_expsym_cmds \
9444
    lt_cv_prog_compiler_c_o \
9445
    fix_srcfile_path \
9446
    exclude_expsyms \
9447
    include_expsyms; do
9448
 
9449
    case $var in
9450
    old_archive_cmds | \
9451
    old_archive_from_new_cmds | \
9452
    archive_cmds | \
9453
    archive_expsym_cmds | \
9454
    module_cmds | \
9455
    module_expsym_cmds | \
9456
    old_archive_from_expsyms_cmds | \
9457
    export_symbols_cmds | \
9458
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9459
    postinstall_cmds | postuninstall_cmds | \
9460
    old_postinstall_cmds | old_postuninstall_cmds | \
9461
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9462
      # Double-quote double-evaled strings.
9463
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9464
      ;;
9465
    *)
9466
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9467
      ;;
9468
    esac
9469
  done
9470
 
9471
  case $lt_echo in
9472
  *'\$0 --fallback-echo"')
9473
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9474
    ;;
9475
  esac
9476
 
9477
cfgfile="${ofile}T"
9478
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9479
  $rm -f "$cfgfile"
9480
  { echo "$as_me:$LINENO: creating $ofile" >&5
9481
echo "$as_me: creating $ofile" >&6;}
9482
 
9483
  cat <<__EOF__ >> "$cfgfile"
9484
#! $SHELL
9485
 
9486
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9487
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9488
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9489
#
9490
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9491
# Free Software Foundation, Inc.
9492
#
9493
# This file is part of GNU Libtool:
9494
# Originally by Gordon Matzigkeit , 1996
9495
#
9496
# This program is free software; you can redistribute it and/or modify
9497
# it under the terms of the GNU General Public License as published by
9498
# the Free Software Foundation; either version 2 of the License, or
9499
# (at your option) any later version.
9500
#
9501
# This program is distributed in the hope that it will be useful, but
9502
# WITHOUT ANY WARRANTY; without even the implied warranty of
9503
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9504
# General Public License for more details.
9505
#
9506
# You should have received a copy of the GNU General Public License
9507
# along with this program; if not, write to the Free Software
9508
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9509
#
9510
# As a special exception to the GNU General Public License, if you
9511
# distribute this file as part of a program that contains a
9512
# configuration script generated by Autoconf, you may include it under
9513
# the same distribution terms that you use for the rest of that program.
9514
 
9515
# A sed program that does not truncate output.
9516
SED=$lt_SED
9517
 
9518
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9519
Xsed="$SED -e 1s/^X//"
9520
 
9521
# The HP-UX ksh and POSIX shell print the target directory to stdout
9522
# if CDPATH is set.
9523
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9524
 
9525
# The names of the tagged configurations supported by this script.
9526
available_tags=
9527
 
9528
# ### BEGIN LIBTOOL CONFIG
9529
 
9530
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9531
 
9532
# Shell to use when invoking shell scripts.
9533
SHELL=$lt_SHELL
9534
 
9535
# Whether or not to build shared libraries.
9536
build_libtool_libs=$enable_shared
9537
 
9538
# Whether or not to build static libraries.
9539
build_old_libs=$enable_static
9540
 
9541
# Whether or not to add -lc for building shared libraries.
9542
build_libtool_need_lc=$archive_cmds_need_lc
9543
 
9544
# Whether or not to disallow shared libs when runtime libs are static
9545
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9546
 
9547
# Whether or not to optimize for fast installation.
9548
fast_install=$enable_fast_install
9549
 
9550
# The host system.
9551
host_alias=$host_alias
9552
host=$host
9553
host_os=$host_os
9554
 
9555
# The build system.
9556
build_alias=$build_alias
9557
build=$build
9558
build_os=$build_os
9559
 
9560
# An echo program that does not interpret backslashes.
9561
echo=$lt_echo
9562
 
9563
# The archiver.
9564
AR=$lt_AR
9565
AR_FLAGS=$lt_AR_FLAGS
9566
 
9567
# A C compiler.
9568
LTCC=$lt_LTCC
9569
 
9570
# LTCC compiler flags.
9571
LTCFLAGS=$lt_LTCFLAGS
9572
 
9573
# A language-specific compiler.
9574
CC=$lt_compiler
9575
 
9576
# Is the compiler the GNU C compiler?
9577
with_gcc=$GCC
9578
 
9579
# An ERE matcher.
9580
EGREP=$lt_EGREP
9581
 
9582
# The linker used to build libraries.
9583
LD=$lt_LD
9584
 
9585
# Whether we need hard or soft links.
9586
LN_S=$lt_LN_S
9587
 
9588
# A BSD-compatible nm program.
9589
NM=$lt_NM
9590
 
9591
# A symbol stripping program
9592
STRIP=$lt_STRIP
9593
 
9594
# Used to examine libraries when file_magic_cmd begins "file"
9595
MAGIC_CMD=$MAGIC_CMD
9596
 
9597
# Used on cygwin: DLL creation program.
9598
DLLTOOL="$DLLTOOL"
9599
 
9600
# Used on cygwin: object dumper.
9601
OBJDUMP="$OBJDUMP"
9602
 
9603
# Used on cygwin: assembler.
9604
AS="$AS"
9605
 
9606
# The name of the directory that contains temporary libtool files.
9607
objdir=$objdir
9608
 
9609
# How to create reloadable object files.
9610
reload_flag=$lt_reload_flag
9611
reload_cmds=$lt_reload_cmds
9612
 
9613
# How to pass a linker flag through the compiler.
9614
wl=$lt_lt_prog_compiler_wl
9615
 
9616
# Object file suffix (normally "o").
9617
objext="$ac_objext"
9618
 
9619
# Old archive suffix (normally "a").
9620
libext="$libext"
9621
 
9622
# Shared library suffix (normally ".so").
9623
shrext_cmds='$shrext_cmds'
9624
 
9625
# Executable file suffix (normally "").
9626
exeext="$exeext"
9627
 
9628
# Additional compiler flags for building library objects.
9629
pic_flag=$lt_lt_prog_compiler_pic
9630
pic_mode=$pic_mode
9631
 
9632
# What is the maximum length of a command?
9633
max_cmd_len=$lt_cv_sys_max_cmd_len
9634
 
9635
# Does compiler simultaneously support -c and -o options?
9636
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9637
 
9638
# Must we lock files when doing compilation?
9639
need_locks=$lt_need_locks
9640
 
9641
# Do we need the lib prefix for modules?
9642
need_lib_prefix=$need_lib_prefix
9643
 
9644
# Do we need a version for libraries?
9645
need_version=$need_version
9646
 
9647
# Whether dlopen is supported.
9648
dlopen_support=$enable_dlopen
9649
 
9650
# Whether dlopen of programs is supported.
9651
dlopen_self=$enable_dlopen_self
9652
 
9653
# Whether dlopen of statically linked programs is supported.
9654
dlopen_self_static=$enable_dlopen_self_static
9655
 
9656
# Compiler flag to prevent dynamic linking.
9657
link_static_flag=$lt_lt_prog_compiler_static
9658
 
9659
# Compiler flag to turn off builtin functions.
9660
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9661
 
9662
# Compiler flag to allow reflexive dlopens.
9663
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9664
 
9665
# Compiler flag to generate shared objects directly from archives.
9666
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9667
 
9668
# Compiler flag to generate thread-safe objects.
9669
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9670
 
9671
# Library versioning type.
9672
version_type=$version_type
9673
 
9674
# Format of library name prefix.
9675
libname_spec=$lt_libname_spec
9676
 
9677
# List of archive names.  First name is the real one, the rest are links.
9678
# The last name is the one that the linker finds with -lNAME.
9679
library_names_spec=$lt_library_names_spec
9680
 
9681
# The coded name of the library, if different from the real name.
9682
soname_spec=$lt_soname_spec
9683
 
9684
# Commands used to build and install an old-style archive.
9685
RANLIB=$lt_RANLIB
9686
old_archive_cmds=$lt_old_archive_cmds
9687
old_postinstall_cmds=$lt_old_postinstall_cmds
9688
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9689
 
9690
# Create an old-style archive from a shared archive.
9691
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9692
 
9693
# Create a temporary old-style archive to link instead of a shared archive.
9694
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9695
 
9696
# Commands used to build and install a shared archive.
9697
archive_cmds=$lt_archive_cmds
9698
archive_expsym_cmds=$lt_archive_expsym_cmds
9699
postinstall_cmds=$lt_postinstall_cmds
9700
postuninstall_cmds=$lt_postuninstall_cmds
9701
 
9702
# Commands used to build a loadable module (assumed same as above if empty)
9703
module_cmds=$lt_module_cmds
9704
module_expsym_cmds=$lt_module_expsym_cmds
9705
 
9706
# Commands to strip libraries.
9707
old_striplib=$lt_old_striplib
9708
striplib=$lt_striplib
9709
 
9710
# Dependencies to place before the objects being linked to create a
9711
# shared library.
9712
predep_objects=$lt_predep_objects
9713
 
9714
# Dependencies to place after the objects being linked to create a
9715
# shared library.
9716
postdep_objects=$lt_postdep_objects
9717
 
9718
# Dependencies to place before the objects being linked to create a
9719
# shared library.
9720
predeps=$lt_predeps
9721
 
9722
# Dependencies to place after the objects being linked to create a
9723
# shared library.
9724
postdeps=$lt_postdeps
9725
 
9726
# The library search path used internally by the compiler when linking
9727
# a shared library.
9728
compiler_lib_search_path=$lt_compiler_lib_search_path
9729
 
9730
# Method to check whether dependent libraries are shared objects.
9731
deplibs_check_method=$lt_deplibs_check_method
9732
 
9733
# Command to use when deplibs_check_method == file_magic.
9734
file_magic_cmd=$lt_file_magic_cmd
9735
 
9736
# Flag that allows shared libraries with undefined symbols to be built.
9737
allow_undefined_flag=$lt_allow_undefined_flag
9738
 
9739
# Flag that forces no undefined symbols.
9740
no_undefined_flag=$lt_no_undefined_flag
9741
 
9742
# Commands used to finish a libtool library installation in a directory.
9743
finish_cmds=$lt_finish_cmds
9744
 
9745
# Same as above, but a single script fragment to be evaled but not shown.
9746
finish_eval=$lt_finish_eval
9747
 
9748
# Take the output of nm and produce a listing of raw symbols and C names.
9749
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9750
 
9751
# Transform the output of nm in a proper C declaration
9752
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9753
 
9754
# Transform the output of nm in a C name address pair
9755
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9756
 
9757
# This is the shared library runtime path variable.
9758
runpath_var=$runpath_var
9759
 
9760
# This is the shared library path variable.
9761
shlibpath_var=$shlibpath_var
9762
 
9763
# Is shlibpath searched before the hard-coded library search path?
9764
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9765
 
9766
# How to hardcode a shared library path into an executable.
9767
hardcode_action=$hardcode_action
9768
 
9769
# Whether we should hardcode library paths into libraries.
9770
hardcode_into_libs=$hardcode_into_libs
9771
 
9772
# Flag to hardcode \$libdir into a binary during linking.
9773
# This must work even if \$libdir does not exist.
9774
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9775
 
9776
# If ld is used when linking, flag to hardcode \$libdir into
9777
# a binary during linking. This must work even if \$libdir does
9778
# not exist.
9779
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9780
 
9781
# Whether we need a single -rpath flag with a separated argument.
9782
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9783
 
9784
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9785
# resulting binary.
9786
hardcode_direct=$hardcode_direct
9787
 
9788
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9789
# resulting binary.
9790
hardcode_minus_L=$hardcode_minus_L
9791
 
9792
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9793
# the resulting binary.
9794
hardcode_shlibpath_var=$hardcode_shlibpath_var
9795
 
9796
# Set to yes if building a shared library automatically hardcodes DIR into the library
9797
# and all subsequent libraries and executables linked against it.
9798
hardcode_automatic=$hardcode_automatic
9799
 
9800
# Variables whose values should be saved in libtool wrapper scripts and
9801
# restored at relink time.
9802
variables_saved_for_relink="$variables_saved_for_relink"
9803
 
9804
# Whether libtool must link a program against all its dependency libraries.
9805
link_all_deplibs=$link_all_deplibs
9806
 
9807
# Compile-time system search path for libraries
9808
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9809
 
9810
# Run-time system search path for libraries
9811
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9812
 
9813
# Fix the shell variable \$srcfile for the compiler.
9814
fix_srcfile_path=$lt_fix_srcfile_path
9815
 
9816
# Set to yes if exported symbols are required.
9817
always_export_symbols=$always_export_symbols
9818
 
9819
# The commands to list exported symbols.
9820
export_symbols_cmds=$lt_export_symbols_cmds
9821
 
9822
# The commands to extract the exported symbol list from a shared archive.
9823
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9824
 
9825
# Symbols that should not be listed in the preloaded symbols.
9826
exclude_expsyms=$lt_exclude_expsyms
9827
 
9828
# Symbols that must always be exported.
9829
include_expsyms=$lt_include_expsyms
9830
 
9831
# ### END LIBTOOL CONFIG
9832
 
9833
__EOF__
9834
 
9835
 
9836
  case $host_os in
9837
  aix3*)
9838
    cat <<\EOF >> "$cfgfile"
9839
 
9840
# AIX sometimes has problems with the GCC collect2 program.  For some
9841
# reason, if we set the COLLECT_NAMES environment variable, the problems
9842
# vanish in a puff of smoke.
9843
if test "X${COLLECT_NAMES+set}" != Xset; then
9844
  COLLECT_NAMES=
9845
  export COLLECT_NAMES
9846
fi
9847
EOF
9848
    ;;
9849
  esac
9850
 
9851
  # We use sed instead of cat because bash on DJGPP gets confused if
9852
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9853
  # text mode, it properly converts lines to CR/LF.  This bash problem
9854
  # is reportedly fixed, but why not run on old versions too?
9855
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9856
 
9857
  mv -f "$cfgfile" "$ofile" || \
9858
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9859
  chmod +x "$ofile"
9860
 
9861
else
9862
  # If there is no Makefile yet, we rely on a make rule to execute
9863
  # `config.status --recheck' to rerun these tests and create the
9864
  # libtool script then.
9865
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9866
  if test -f "$ltmain_in"; then
9867
    test -f Makefile && make "$ltmain"
9868
  fi
9869
fi
9870
 
9871
 
9872
ac_ext=c
9873
ac_cpp='$CPP $CPPFLAGS'
9874
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9875
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9876
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9877
 
9878
CC="$lt_save_CC"
9879
 
9880
 
9881
# Check whether --with-tags was given.
9882
if test "${with_tags+set}" = set; then
9883
  withval=$with_tags; tagnames="$withval"
9884
fi
9885
 
9886
 
9887
if test -f "$ltmain" && test -n "$tagnames"; then
9888
  if test ! -f "${ofile}"; then
9889
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9890
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9891
  fi
9892
 
9893
  if test -z "$LTCC"; then
9894
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9895
    if test -z "$LTCC"; then
9896
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9897
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9898
    else
9899
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9900
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9901
    fi
9902
  fi
9903
  if test -z "$LTCFLAGS"; then
9904
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9905
  fi
9906
 
9907
  # Extract list of available tagged configurations in $ofile.
9908
  # Note that this assumes the entire list is on one line.
9909
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9910
 
9911
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9912
  for tagname in $tagnames; do
9913
    IFS="$lt_save_ifs"
9914
    # Check whether tagname contains only valid characters
9915
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9916
    "") ;;
9917
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9918
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9919
   { (exit 1); exit 1; }; }
9920
        ;;
9921
    esac
9922
 
9923
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9924
    then
9925
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9926
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9927
   { (exit 1); exit 1; }; }
9928
    fi
9929
 
9930
    # Update the list of available tags.
9931
    if test -n "$tagname"; then
9932
      echo appending configuration tag \"$tagname\" to $ofile
9933
 
9934
      case $tagname in
9935
      CXX)
9936
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9937
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9938
            (test "X$CXX" != "Xg++"))) ; then
9939
          ac_ext=cpp
9940
ac_cpp='$CXXCPP $CPPFLAGS'
9941
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9942
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9943
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9944
 
9945
 
9946
 
9947
 
9948
archive_cmds_need_lc_CXX=no
9949
allow_undefined_flag_CXX=
9950
always_export_symbols_CXX=no
9951
archive_expsym_cmds_CXX=
9952
export_dynamic_flag_spec_CXX=
9953
hardcode_direct_CXX=no
9954
hardcode_libdir_flag_spec_CXX=
9955
hardcode_libdir_flag_spec_ld_CXX=
9956
hardcode_libdir_separator_CXX=
9957
hardcode_minus_L_CXX=no
9958
hardcode_shlibpath_var_CXX=unsupported
9959
hardcode_automatic_CXX=no
9960
module_cmds_CXX=
9961
module_expsym_cmds_CXX=
9962
link_all_deplibs_CXX=unknown
9963
old_archive_cmds_CXX=$old_archive_cmds
9964
no_undefined_flag_CXX=
9965
whole_archive_flag_spec_CXX=
9966
enable_shared_with_static_runtimes_CXX=no
9967
 
9968
# Dependencies to place before and after the object being linked:
9969
predep_objects_CXX=
9970
postdep_objects_CXX=
9971
predeps_CXX=
9972
postdeps_CXX=
9973
compiler_lib_search_path_CXX=
9974
 
9975
# Source file extension for C++ test sources.
9976
ac_ext=cpp
9977
 
9978
# Object file extension for compiled C++ test sources.
9979
objext=o
9980
objext_CXX=$objext
9981
 
9982
# Code to be used in simple compile tests
9983
lt_simple_compile_test_code="int some_variable = 0;"
9984
 
9985
# Code to be used in simple link tests
9986
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9987
 
9988
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9989
 
9990
# If no C compiler was specified, use CC.
9991
LTCC=${LTCC-"$CC"}
9992
 
9993
# If no C compiler flags were specified, use CFLAGS.
9994
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9995
 
9996
# Allow CC to be a program name with arguments.
9997
compiler=$CC
9998
 
9999
 
10000
# save warnings/boilerplate of simple test code
10001
ac_outfile=conftest.$ac_objext
10002
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10003
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10004
_lt_compiler_boilerplate=`cat conftest.err`
10005
$rm conftest*
10006
 
10007
ac_outfile=conftest.$ac_objext
10008
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10009
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10010
_lt_linker_boilerplate=`cat conftest.err`
10011
$rm conftest*
10012
 
10013
 
10014
# Allow CC to be a program name with arguments.
10015
lt_save_CC=$CC
10016
lt_save_LD=$LD
10017
lt_save_GCC=$GCC
10018
GCC=$GXX
10019
lt_save_with_gnu_ld=$with_gnu_ld
10020
lt_save_path_LD=$lt_cv_path_LD
10021
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10022
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10023
else
10024
  $as_unset lt_cv_prog_gnu_ld
10025
fi
10026
if test -n "${lt_cv_path_LDCXX+set}"; then
10027
  lt_cv_path_LD=$lt_cv_path_LDCXX
10028
else
10029
  $as_unset lt_cv_path_LD
10030
fi
10031
test -z "${LDCXX+set}" || LD=$LDCXX
10032
CC=${CXX-"c++"}
10033
compiler=$CC
10034
compiler_CXX=$CC
10035
for cc_temp in $compiler""; do
10036
  case $cc_temp in
10037
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10038
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10039
    \-*) ;;
10040
    *) break;;
10041
  esac
10042
done
10043
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10044
 
10045
 
10046
# We don't want -fno-exception wen compiling C++ code, so set the
10047
# no_builtin_flag separately
10048
if test "$GXX" = yes; then
10049
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10050
else
10051
  lt_prog_compiler_no_builtin_flag_CXX=
10052
fi
10053
 
10054
if test "$GXX" = yes; then
10055
  # Set up default GNU C++ configuration
10056
 
10057
 
10058
# Check whether --with-gnu-ld was given.
10059
if test "${with_gnu_ld+set}" = set; then
10060
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10061
else
10062
  with_gnu_ld=no
10063
fi
10064
 
10065
ac_prog=ld
10066
if test "$GCC" = yes; then
10067
  # Check if gcc -print-prog-name=ld gives a path.
10068
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10069
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10070
  case $host in
10071
  *-*-mingw*)
10072
    # gcc leaves a trailing carriage return which upsets mingw
10073
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10074
  *)
10075
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10076
  esac
10077
  case $ac_prog in
10078
    # Accept absolute paths.
10079
    [\\/]* | ?:[\\/]*)
10080
      re_direlt='/[^/][^/]*/\.\./'
10081
      # Canonicalize the pathname of ld
10082
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10083
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10084
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10085
      done
10086
      test -z "$LD" && LD="$ac_prog"
10087
      ;;
10088
  "")
10089
    # If it fails, then pretend we aren't using GCC.
10090
    ac_prog=ld
10091
    ;;
10092
  *)
10093
    # If it is relative, then search for the first ld in PATH.
10094
    with_gnu_ld=unknown
10095
    ;;
10096
  esac
10097
elif test "$with_gnu_ld" = yes; then
10098
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10099
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10100
else
10101
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10102
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10103
fi
10104
if test "${lt_cv_path_LD+set}" = set; then
10105
  echo $ECHO_N "(cached) $ECHO_C" >&6
10106
else
10107
  if test -z "$LD"; then
10108
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10109
  for ac_dir in $PATH; do
10110
    IFS="$lt_save_ifs"
10111
    test -z "$ac_dir" && ac_dir=.
10112
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10113
      lt_cv_path_LD="$ac_dir/$ac_prog"
10114
      # Check to see if the program is GNU ld.  I'd rather use --version,
10115
      # but apparently some variants of GNU ld only accept -v.
10116
      # Break only if it was the GNU/non-GNU ld that we prefer.
10117
      case `"$lt_cv_path_LD" -v 2>&1 
10118
      *GNU* | *'with BFD'*)
10119
        test "$with_gnu_ld" != no && break
10120
        ;;
10121
      *)
10122
        test "$with_gnu_ld" != yes && break
10123
        ;;
10124
      esac
10125
    fi
10126
  done
10127
  IFS="$lt_save_ifs"
10128
else
10129
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10130
fi
10131
fi
10132
 
10133
LD="$lt_cv_path_LD"
10134
if test -n "$LD"; then
10135
  { echo "$as_me:$LINENO: result: $LD" >&5
10136
echo "${ECHO_T}$LD" >&6; }
10137
else
10138
  { echo "$as_me:$LINENO: result: no" >&5
10139
echo "${ECHO_T}no" >&6; }
10140
fi
10141
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10142
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10143
   { (exit 1); exit 1; }; }
10144
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10145
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10146
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10147
  echo $ECHO_N "(cached) $ECHO_C" >&6
10148
else
10149
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10150
case `$LD -v 2>&1 
10151
*GNU* | *'with BFD'*)
10152
  lt_cv_prog_gnu_ld=yes
10153
  ;;
10154
*)
10155
  lt_cv_prog_gnu_ld=no
10156
  ;;
10157
esac
10158
fi
10159
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10160
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10161
with_gnu_ld=$lt_cv_prog_gnu_ld
10162
 
10163
 
10164
 
10165
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10166
  # archiving commands below assume that GNU ld is being used.
10167
  if test "$with_gnu_ld" = yes; then
10168
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10169
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10170
 
10171
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10172
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10173
 
10174
    # If archive_cmds runs LD, not CC, wlarc should be empty
10175
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10176
    #     investigate it a little bit more. (MM)
10177
    wlarc='${wl}'
10178
 
10179
    # ancient GNU ld didn't support --whole-archive et. al.
10180
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10181
        grep 'no-whole-archive' > /dev/null; then
10182
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10183
    else
10184
      whole_archive_flag_spec_CXX=
10185
    fi
10186
  else
10187
    with_gnu_ld=no
10188
    wlarc=
10189
 
10190
    # A generic and very simple default shared library creation
10191
    # command for GNU C++ for the case where it uses the native
10192
    # linker, instead of GNU ld.  If possible, this setting should
10193
    # overridden to take advantage of the native linker features on
10194
    # the platform it is being used on.
10195
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10196
  fi
10197
 
10198
  # Commands to make compiler produce verbose output that lists
10199
  # what "hidden" libraries, object files and flags are used when
10200
  # linking a shared library.
10201
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10202
 
10203
else
10204
  GXX=no
10205
  with_gnu_ld=no
10206
  wlarc=
10207
fi
10208
 
10209
# PORTME: fill in a description of your system's C++ link characteristics
10210
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10211
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10212
ld_shlibs_CXX=yes
10213
case $host_os in
10214
  aix3*)
10215
    # FIXME: insert proper C++ library support
10216
    ld_shlibs_CXX=no
10217
    ;;
10218
  aix4* | aix5*)
10219
    if test "$host_cpu" = ia64; then
10220
      # On IA64, the linker does run time linking by default, so we don't
10221
      # have to do anything special.
10222
      aix_use_runtimelinking=no
10223
      exp_sym_flag='-Bexport'
10224
      no_entry_flag=""
10225
    else
10226
      aix_use_runtimelinking=no
10227
 
10228
      # Test if we are trying to use run time linking or normal
10229
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10230
      # need to do runtime linking.
10231
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10232
        for ld_flag in $LDFLAGS; do
10233
          case $ld_flag in
10234
          *-brtl*)
10235
            aix_use_runtimelinking=yes
10236
            break
10237
            ;;
10238
          esac
10239
        done
10240
        ;;
10241
      esac
10242
 
10243
      exp_sym_flag='-bexport'
10244
      no_entry_flag='-bnoentry'
10245
    fi
10246
 
10247
    # When large executables or shared objects are built, AIX ld can
10248
    # have problems creating the table of contents.  If linking a library
10249
    # or program results in "error TOC overflow" add -mminimal-toc to
10250
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10251
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10252
 
10253
    archive_cmds_CXX=''
10254
    hardcode_direct_CXX=yes
10255
    hardcode_libdir_separator_CXX=':'
10256
    link_all_deplibs_CXX=yes
10257
 
10258
    if test "$GXX" = yes; then
10259
      case $host_os in aix4.[012]|aix4.[012].*)
10260
      # We only want to do this on AIX 4.2 and lower, the check
10261
      # below for broken collect2 doesn't work under 4.3+
10262
        collect2name=`${CC} -print-prog-name=collect2`
10263
        if test -f "$collect2name" && \
10264
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10265
        then
10266
          # We have reworked collect2
10267
          :
10268
        else
10269
          # We have old collect2
10270
          hardcode_direct_CXX=unsupported
10271
          # It fails to find uninstalled libraries when the uninstalled
10272
          # path is not listed in the libpath.  Setting hardcode_minus_L
10273
          # to unsupported forces relinking
10274
          hardcode_minus_L_CXX=yes
10275
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10276
          hardcode_libdir_separator_CXX=
10277
        fi
10278
        ;;
10279
      esac
10280
      shared_flag='-shared'
10281
      if test "$aix_use_runtimelinking" = yes; then
10282
        shared_flag="$shared_flag "'${wl}-G'
10283
      fi
10284
    else
10285
      # not using gcc
10286
      if test "$host_cpu" = ia64; then
10287
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10288
        # chokes on -Wl,-G. The following line is correct:
10289
        shared_flag='-G'
10290
      else
10291
        if test "$aix_use_runtimelinking" = yes; then
10292
          shared_flag='${wl}-G'
10293
        else
10294
          shared_flag='${wl}-bM:SRE'
10295
        fi
10296
      fi
10297
    fi
10298
 
10299
    # It seems that -bexpall does not export symbols beginning with
10300
    # underscore (_), so it is better to generate a list of symbols to export.
10301
    always_export_symbols_CXX=yes
10302
    if test "$aix_use_runtimelinking" = yes; then
10303
      # Warning - without using the other runtime loading flags (-brtl),
10304
      # -berok will link without error, but may produce a broken library.
10305
      allow_undefined_flag_CXX='-berok'
10306
      # Determine the default libpath from the value encoded in an empty executable.
10307
      cat >conftest.$ac_ext <<_ACEOF
10308
/* confdefs.h.  */
10309
_ACEOF
10310
cat confdefs.h >>conftest.$ac_ext
10311
cat >>conftest.$ac_ext <<_ACEOF
10312
/* end confdefs.h.  */
10313
 
10314
int
10315
main ()
10316
{
10317
 
10318
  ;
10319
  return 0;
10320
}
10321
_ACEOF
10322
rm -f conftest.$ac_objext conftest$ac_exeext
10323
if { (ac_try="$ac_link"
10324
case "(($ac_try" in
10325
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326
  *) ac_try_echo=$ac_try;;
10327
esac
10328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329
  (eval "$ac_link") 2>conftest.er1
10330
  ac_status=$?
10331
  grep -v '^ *+' conftest.er1 >conftest.err
10332
  rm -f conftest.er1
10333
  cat conftest.err >&5
10334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335
  (exit $ac_status); } && {
10336
         test -z "$ac_cxx_werror_flag" ||
10337
         test ! -s conftest.err
10338
       } && test -s conftest$ac_exeext &&
10339
       $as_test_x conftest$ac_exeext; then
10340
 
10341
lt_aix_libpath_sed='
10342
    /Import File Strings/,/^$/ {
10343
        /^0/ {
10344
            s/^0  *\(.*\)$/\1/
10345
            p
10346
        }
10347
    }'
10348
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10349
# Check for a 64-bit object if we didn't find anything.
10350
if test -z "$aix_libpath"; then
10351
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10352
fi
10353
else
10354
  echo "$as_me: failed program was:" >&5
10355
sed 's/^/| /' conftest.$ac_ext >&5
10356
 
10357
 
10358
fi
10359
 
10360
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10361
      conftest$ac_exeext conftest.$ac_ext
10362
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10363
 
10364
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10365
 
10366
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10367
     else
10368
      if test "$host_cpu" = ia64; then
10369
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10370
        allow_undefined_flag_CXX="-z nodefs"
10371
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10372
      else
10373
        # Determine the default libpath from the value encoded in an empty executable.
10374
        cat >conftest.$ac_ext <<_ACEOF
10375
/* confdefs.h.  */
10376
_ACEOF
10377
cat confdefs.h >>conftest.$ac_ext
10378
cat >>conftest.$ac_ext <<_ACEOF
10379
/* end confdefs.h.  */
10380
 
10381
int
10382
main ()
10383
{
10384
 
10385
  ;
10386
  return 0;
10387
}
10388
_ACEOF
10389
rm -f conftest.$ac_objext conftest$ac_exeext
10390
if { (ac_try="$ac_link"
10391
case "(($ac_try" in
10392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393
  *) ac_try_echo=$ac_try;;
10394
esac
10395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396
  (eval "$ac_link") 2>conftest.er1
10397
  ac_status=$?
10398
  grep -v '^ *+' conftest.er1 >conftest.err
10399
  rm -f conftest.er1
10400
  cat conftest.err >&5
10401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402
  (exit $ac_status); } && {
10403
         test -z "$ac_cxx_werror_flag" ||
10404
         test ! -s conftest.err
10405
       } && test -s conftest$ac_exeext &&
10406
       $as_test_x conftest$ac_exeext; then
10407
 
10408
lt_aix_libpath_sed='
10409
    /Import File Strings/,/^$/ {
10410
        /^0/ {
10411
            s/^0  *\(.*\)$/\1/
10412
            p
10413
        }
10414
    }'
10415
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10416
# Check for a 64-bit object if we didn't find anything.
10417
if test -z "$aix_libpath"; then
10418
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10419
fi
10420
else
10421
  echo "$as_me: failed program was:" >&5
10422
sed 's/^/| /' conftest.$ac_ext >&5
10423
 
10424
 
10425
fi
10426
 
10427
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428
      conftest$ac_exeext conftest.$ac_ext
10429
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10430
 
10431
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10432
        # Warning - without using the other run time loading flags,
10433
        # -berok will link without error, but may produce a broken library.
10434
        no_undefined_flag_CXX=' ${wl}-bernotok'
10435
        allow_undefined_flag_CXX=' ${wl}-berok'
10436
        # Exported symbols can be pulled into shared objects from archives
10437
        whole_archive_flag_spec_CXX='$convenience'
10438
        archive_cmds_need_lc_CXX=yes
10439
        # This is similar to how AIX traditionally builds its shared libraries.
10440
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10441
      fi
10442
    fi
10443
    ;;
10444
 
10445
  beos*)
10446
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10447
      allow_undefined_flag_CXX=unsupported
10448
      # Joseph Beckenbach  says some releases of gcc
10449
      # support --undefined.  This deserves some investigation.  FIXME
10450
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10451
    else
10452
      ld_shlibs_CXX=no
10453
    fi
10454
    ;;
10455
 
10456
  chorus*)
10457
    case $cc_basename in
10458
      *)
10459
        # FIXME: insert proper C++ library support
10460
        ld_shlibs_CXX=no
10461
        ;;
10462
    esac
10463
    ;;
10464
 
10465
  cygwin* | mingw* | pw32*)
10466
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10467
    # as there is no search path for DLLs.
10468
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10469
    allow_undefined_flag_CXX=unsupported
10470
    always_export_symbols_CXX=no
10471
    enable_shared_with_static_runtimes_CXX=yes
10472
 
10473
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10474
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10475
      # If the export-symbols file already is a .def file (1st line
10476
      # is EXPORTS), use it as is; otherwise, prepend...
10477
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10478
        cp $export_symbols $output_objdir/$soname.def;
10479
      else
10480
        echo EXPORTS > $output_objdir/$soname.def;
10481
        cat $export_symbols >> $output_objdir/$soname.def;
10482
      fi~
10483
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10484
    else
10485
      ld_shlibs_CXX=no
10486
    fi
10487
  ;;
10488
      darwin* | rhapsody*)
10489
        case $host_os in
10490
        rhapsody* | darwin1.[012])
10491
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10492
         ;;
10493
       *) # Darwin 1.3 on
10494
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10495
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10496
         else
10497
           case ${MACOSX_DEPLOYMENT_TARGET} in
10498
             10.[012])
10499
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10500
               ;;
10501
             10.*)
10502
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10503
               ;;
10504
           esac
10505
         fi
10506
         ;;
10507
        esac
10508
      archive_cmds_need_lc_CXX=no
10509
      hardcode_direct_CXX=no
10510
      hardcode_automatic_CXX=yes
10511
      hardcode_shlibpath_var_CXX=unsupported
10512
      whole_archive_flag_spec_CXX=''
10513
      link_all_deplibs_CXX=yes
10514
 
10515
    if test "$GXX" = yes ; then
10516
      lt_int_apple_cc_single_mod=no
10517
      output_verbose_link_cmd='echo'
10518
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10519
       lt_int_apple_cc_single_mod=yes
10520
      fi
10521
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10522
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10523
      else
10524
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10525
        fi
10526
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10527
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10528
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10529
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10530
          else
10531
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10532
          fi
10533
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10534
      else
10535
      case $cc_basename in
10536
        xlc*)
10537
         output_verbose_link_cmd='echo'
10538
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10539
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10540
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10541
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10542
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10543
          ;;
10544
       *)
10545
         ld_shlibs_CXX=no
10546
          ;;
10547
      esac
10548
      fi
10549
        ;;
10550
 
10551
  dgux*)
10552
    case $cc_basename in
10553
      ec++*)
10554
        # FIXME: insert proper C++ library support
10555
        ld_shlibs_CXX=no
10556
        ;;
10557
      ghcx*)
10558
        # Green Hills C++ Compiler
10559
        # FIXME: insert proper C++ library support
10560
        ld_shlibs_CXX=no
10561
        ;;
10562
      *)
10563
        # FIXME: insert proper C++ library support
10564
        ld_shlibs_CXX=no
10565
        ;;
10566
    esac
10567
    ;;
10568
  freebsd[12]*)
10569
    # C++ shared libraries reported to be fairly broken before switch to ELF
10570
    ld_shlibs_CXX=no
10571
    ;;
10572
  freebsd-elf*)
10573
    archive_cmds_need_lc_CXX=no
10574
    ;;
10575
  freebsd* | dragonfly*)
10576
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10577
    # conventions
10578
    ld_shlibs_CXX=yes
10579
    ;;
10580
  gnu*)
10581
    ;;
10582
  hpux9*)
10583
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10584
    hardcode_libdir_separator_CXX=:
10585
    export_dynamic_flag_spec_CXX='${wl}-E'
10586
    hardcode_direct_CXX=yes
10587
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10588
                                # but as the default
10589
                                # location of the library.
10590
 
10591
    case $cc_basename in
10592
    CC*)
10593
      # FIXME: insert proper C++ library support
10594
      ld_shlibs_CXX=no
10595
      ;;
10596
    aCC*)
10597
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10598
      # Commands to make compiler produce verbose output that lists
10599
      # what "hidden" libraries, object files and flags are used when
10600
      # linking a shared library.
10601
      #
10602
      # There doesn't appear to be a way to prevent this compiler from
10603
      # explicitly linking system object files so we need to strip them
10604
      # from the output so that they don't get included in the library
10605
      # dependencies.
10606
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10607
      ;;
10608
    *)
10609
      if test "$GXX" = yes; then
10610
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10611
      else
10612
        # FIXME: insert proper C++ library support
10613
        ld_shlibs_CXX=no
10614
      fi
10615
      ;;
10616
    esac
10617
    ;;
10618
  hpux10*|hpux11*)
10619
    if test $with_gnu_ld = no; then
10620
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10621
      hardcode_libdir_separator_CXX=:
10622
 
10623
      case $host_cpu in
10624
      hppa*64*|ia64*) ;;
10625
      *)
10626
        export_dynamic_flag_spec_CXX='${wl}-E'
10627
        ;;
10628
      esac
10629
    fi
10630
    case $host_cpu in
10631
    hppa*64*|ia64*)
10632
      hardcode_direct_CXX=no
10633
      hardcode_shlibpath_var_CXX=no
10634
      ;;
10635
    *)
10636
      hardcode_direct_CXX=yes
10637
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10638
                                              # but as the default
10639
                                              # location of the library.
10640
      ;;
10641
    esac
10642
 
10643
    case $cc_basename in
10644
      CC*)
10645
        # FIXME: insert proper C++ library support
10646
        ld_shlibs_CXX=no
10647
        ;;
10648
      aCC*)
10649
        case $host_cpu in
10650
        hppa*64*)
10651
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10652
          ;;
10653
        ia64*)
10654
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10655
          ;;
10656
        *)
10657
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10658
          ;;
10659
        esac
10660
        # Commands to make compiler produce verbose output that lists
10661
        # what "hidden" libraries, object files and flags are used when
10662
        # linking a shared library.
10663
        #
10664
        # There doesn't appear to be a way to prevent this compiler from
10665
        # explicitly linking system object files so we need to strip them
10666
        # from the output so that they don't get included in the library
10667
        # dependencies.
10668
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10669
        ;;
10670
      *)
10671
        if test "$GXX" = yes; then
10672
          if test $with_gnu_ld = no; then
10673
            case $host_cpu in
10674
            hppa*64*)
10675
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10676
              ;;
10677
            ia64*)
10678
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10679
              ;;
10680
            *)
10681
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10682
              ;;
10683
            esac
10684
          fi
10685
        else
10686
          # FIXME: insert proper C++ library support
10687
          ld_shlibs_CXX=no
10688
        fi
10689
        ;;
10690
    esac
10691
    ;;
10692
  interix[3-9]*)
10693
    hardcode_direct_CXX=no
10694
    hardcode_shlibpath_var_CXX=no
10695
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10696
    export_dynamic_flag_spec_CXX='${wl}-E'
10697
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10698
    # Instead, shared libraries are loaded at an image base (0x10000000 by
10699
    # default) and relocated if they conflict, which is a slow very memory
10700
    # consuming and fragmenting process.  To avoid this, we pick a random,
10701
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10702
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10703
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10704
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10705
    ;;
10706
  irix5* | irix6*)
10707
    case $cc_basename in
10708
      CC*)
10709
        # SGI C++
10710
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10711
 
10712
        # Archives containing C++ object files must be created using
10713
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10714
        # necessary to make sure instantiated templates are included
10715
        # in the archive.
10716
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10717
        ;;
10718
      *)
10719
        if test "$GXX" = yes; then
10720
          if test "$with_gnu_ld" = no; then
10721
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10722
          else
10723
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10724
          fi
10725
        fi
10726
        link_all_deplibs_CXX=yes
10727
        ;;
10728
    esac
10729
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10730
    hardcode_libdir_separator_CXX=:
10731
    ;;
10732
  linux* | k*bsd*-gnu)
10733
    case $cc_basename in
10734
      KCC*)
10735
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10736
 
10737
        # KCC will only create a shared library if the output file
10738
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10739
        # to its proper name (with version) after linking.
10740
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10741
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10742
        # Commands to make compiler produce verbose output that lists
10743
        # what "hidden" libraries, object files and flags are used when
10744
        # linking a shared library.
10745
        #
10746
        # There doesn't appear to be a way to prevent this compiler from
10747
        # explicitly linking system object files so we need to strip them
10748
        # from the output so that they don't get included in the library
10749
        # dependencies.
10750
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10751
 
10752
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10753
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10754
 
10755
        # Archives containing C++ object files must be created using
10756
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10757
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10758
        ;;
10759
      icpc*)
10760
        # Intel C++
10761
        with_gnu_ld=yes
10762
        # version 8.0 and above of icpc choke on multiply defined symbols
10763
        # if we add $predep_objects and $postdep_objects, however 7.1 and
10764
        # earlier do not add the objects themselves.
10765
        case `$CC -V 2>&1` in
10766
        *"Version 7."*)
10767
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10768
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10769
          ;;
10770
        *)  # Version 8.0 or newer
10771
          tmp_idyn=
10772
          case $host_cpu in
10773
            ia64*) tmp_idyn=' -i_dynamic';;
10774
          esac
10775
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10776
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10777
          ;;
10778
        esac
10779
        archive_cmds_need_lc_CXX=no
10780
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10781
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10782
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10783
        ;;
10784
      pgCC*)
10785
        # Portland Group C++ compiler
10786
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10787
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10788
 
10789
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10790
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10791
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10792
        ;;
10793
      cxx*)
10794
        # Compaq C++
10795
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10796
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10797
 
10798
        runpath_var=LD_RUN_PATH
10799
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10800
        hardcode_libdir_separator_CXX=:
10801
 
10802
        # Commands to make compiler produce verbose output that lists
10803
        # what "hidden" libraries, object files and flags are used when
10804
        # linking a shared library.
10805
        #
10806
        # There doesn't appear to be a way to prevent this compiler from
10807
        # explicitly linking system object files so we need to strip them
10808
        # from the output so that they don't get included in the library
10809
        # dependencies.
10810
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10811
        ;;
10812
      *)
10813
        case `$CC -V 2>&1 | sed 5q` in
10814
        *Sun\ C*)
10815
          # Sun C++ 5.9
10816
          no_undefined_flag_CXX=' -zdefs'
10817
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10818
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
10819
          hardcode_libdir_flag_spec_CXX='-R$libdir'
10820
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10821
 
10822
          # Not sure whether something based on
10823
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10824
          # would be better.
10825
          output_verbose_link_cmd='echo'
10826
 
10827
          # Archives containing C++ object files must be created using
10828
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10829
          # necessary to make sure instantiated templates are included
10830
          # in the archive.
10831
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10832
          ;;
10833
        esac
10834
        ;;
10835
    esac
10836
    ;;
10837
  lynxos*)
10838
    # FIXME: insert proper C++ library support
10839
    ld_shlibs_CXX=no
10840
    ;;
10841
  m88k*)
10842
    # FIXME: insert proper C++ library support
10843
    ld_shlibs_CXX=no
10844
    ;;
10845
  mvs*)
10846
    case $cc_basename in
10847
      cxx*)
10848
        # FIXME: insert proper C++ library support
10849
        ld_shlibs_CXX=no
10850
        ;;
10851
      *)
10852
        # FIXME: insert proper C++ library support
10853
        ld_shlibs_CXX=no
10854
        ;;
10855
    esac
10856
    ;;
10857
  netbsd*)
10858
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10859
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10860
      wlarc=
10861
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10862
      hardcode_direct_CXX=yes
10863
      hardcode_shlibpath_var_CXX=no
10864
    fi
10865
    # Workaround some broken pre-1.5 toolchains
10866
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10867
    ;;
10868
  openbsd2*)
10869
    # C++ shared libraries are fairly broken
10870
    ld_shlibs_CXX=no
10871
    ;;
10872
  openbsd*)
10873
    if test -f /usr/libexec/ld.so; then
10874
      hardcode_direct_CXX=yes
10875
      hardcode_shlibpath_var_CXX=no
10876
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10877
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10878
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10879
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10880
        export_dynamic_flag_spec_CXX='${wl}-E'
10881
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10882
      fi
10883
      output_verbose_link_cmd='echo'
10884
    else
10885
      ld_shlibs_CXX=no
10886
    fi
10887
    ;;
10888
  osf3*)
10889
    case $cc_basename in
10890
      KCC*)
10891
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10892
 
10893
        # KCC will only create a shared library if the output file
10894
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10895
        # to its proper name (with version) after linking.
10896
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10897
 
10898
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10899
        hardcode_libdir_separator_CXX=:
10900
 
10901
        # Archives containing C++ object files must be created using
10902
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10903
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10904
 
10905
        ;;
10906
      RCC*)
10907
        # Rational C++ 2.4.1
10908
        # FIXME: insert proper C++ library support
10909
        ld_shlibs_CXX=no
10910
        ;;
10911
      cxx*)
10912
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10913
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10914
 
10915
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10916
        hardcode_libdir_separator_CXX=:
10917
 
10918
        # Commands to make compiler produce verbose output that lists
10919
        # what "hidden" libraries, object files and flags are used when
10920
        # linking a shared library.
10921
        #
10922
        # There doesn't appear to be a way to prevent this compiler from
10923
        # explicitly linking system object files so we need to strip them
10924
        # from the output so that they don't get included in the library
10925
        # dependencies.
10926
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10927
        ;;
10928
      *)
10929
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10930
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10931
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10932
 
10933
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10934
          hardcode_libdir_separator_CXX=:
10935
 
10936
          # Commands to make compiler produce verbose output that lists
10937
          # what "hidden" libraries, object files and flags are used when
10938
          # linking a shared library.
10939
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10940
 
10941
        else
10942
          # FIXME: insert proper C++ library support
10943
          ld_shlibs_CXX=no
10944
        fi
10945
        ;;
10946
    esac
10947
    ;;
10948
  osf4* | osf5*)
10949
    case $cc_basename in
10950
      KCC*)
10951
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10952
 
10953
        # KCC will only create a shared library if the output file
10954
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10955
        # to its proper name (with version) after linking.
10956
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10957
 
10958
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10959
        hardcode_libdir_separator_CXX=:
10960
 
10961
        # Archives containing C++ object files must be created using
10962
        # the KAI C++ compiler.
10963
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10964
        ;;
10965
      RCC*)
10966
        # Rational C++ 2.4.1
10967
        # FIXME: insert proper C++ library support
10968
        ld_shlibs_CXX=no
10969
        ;;
10970
      cxx*)
10971
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10972
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10973
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10974
          echo "-hidden">> $lib.exp~
10975
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10976
          $rm $lib.exp'
10977
 
10978
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10979
        hardcode_libdir_separator_CXX=:
10980
 
10981
        # Commands to make compiler produce verbose output that lists
10982
        # what "hidden" libraries, object files and flags are used when
10983
        # linking a shared library.
10984
        #
10985
        # There doesn't appear to be a way to prevent this compiler from
10986
        # explicitly linking system object files so we need to strip them
10987
        # from the output so that they don't get included in the library
10988
        # dependencies.
10989
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10990
        ;;
10991
      *)
10992
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10993
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10994
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10995
 
10996
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10997
          hardcode_libdir_separator_CXX=:
10998
 
10999
          # Commands to make compiler produce verbose output that lists
11000
          # what "hidden" libraries, object files and flags are used when
11001
          # linking a shared library.
11002
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11003
 
11004
        else
11005
          # FIXME: insert proper C++ library support
11006
          ld_shlibs_CXX=no
11007
        fi
11008
        ;;
11009
    esac
11010
    ;;
11011
  psos*)
11012
    # FIXME: insert proper C++ library support
11013
    ld_shlibs_CXX=no
11014
    ;;
11015
  sunos4*)
11016
    case $cc_basename in
11017
      CC*)
11018
        # Sun C++ 4.x
11019
        # FIXME: insert proper C++ library support
11020
        ld_shlibs_CXX=no
11021
        ;;
11022
      lcc*)
11023
        # Lucid
11024
        # FIXME: insert proper C++ library support
11025
        ld_shlibs_CXX=no
11026
        ;;
11027
      *)
11028
        # FIXME: insert proper C++ library support
11029
        ld_shlibs_CXX=no
11030
        ;;
11031
    esac
11032
    ;;
11033
  solaris*)
11034
    case $cc_basename in
11035
      CC*)
11036
        # Sun C++ 4.2, 5.x and Centerline C++
11037
        archive_cmds_need_lc_CXX=yes
11038
        no_undefined_flag_CXX=' -zdefs'
11039
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11040
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11041
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11042
 
11043
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11044
        hardcode_shlibpath_var_CXX=no
11045
        case $host_os in
11046
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11047
          *)
11048
            # The compiler driver will combine and reorder linker options,
11049
            # but understands `-z linker_flag'.
11050
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11051
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11052
            ;;
11053
        esac
11054
        link_all_deplibs_CXX=yes
11055
 
11056
        output_verbose_link_cmd='echo'
11057
 
11058
        # Archives containing C++ object files must be created using
11059
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11060
        # necessary to make sure instantiated templates are included
11061
        # in the archive.
11062
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11063
        ;;
11064
      gcx*)
11065
        # Green Hills C++ Compiler
11066
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11067
 
11068
        # The C++ compiler must be used to create the archive.
11069
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11070
        ;;
11071
      *)
11072
        # GNU C++ compiler with Solaris linker
11073
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11074
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11075
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11076
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11077
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11078
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11079
 
11080
            # Commands to make compiler produce verbose output that lists
11081
            # what "hidden" libraries, object files and flags are used when
11082
            # linking a shared library.
11083
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11084
          else
11085
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11086
            # platform.
11087
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11088
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11089
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11090
 
11091
            # Commands to make compiler produce verbose output that lists
11092
            # what "hidden" libraries, object files and flags are used when
11093
            # linking a shared library.
11094
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11095
          fi
11096
 
11097
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11098
          case $host_os in
11099
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11100
          *)
11101
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11102
            ;;
11103
          esac
11104
        fi
11105
        ;;
11106
    esac
11107
    ;;
11108
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11109
    no_undefined_flag_CXX='${wl}-z,text'
11110
    archive_cmds_need_lc_CXX=no
11111
    hardcode_shlibpath_var_CXX=no
11112
    runpath_var='LD_RUN_PATH'
11113
 
11114
    case $cc_basename in
11115
      CC*)
11116
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11117
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11118
        ;;
11119
      *)
11120
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11121
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122
        ;;
11123
    esac
11124
    ;;
11125
  sysv5* | sco3.2v5* | sco5v6*)
11126
    # Note: We can NOT use -z defs as we might desire, because we do not
11127
    # link with -lc, and that would cause any symbols used from libc to
11128
    # always be unresolved, which means just about no library would
11129
    # ever link correctly.  If we're not using GNU ld we use -z text
11130
    # though, which does catch some bad symbols but isn't as heavy-handed
11131
    # as -z defs.
11132
    # For security reasons, it is highly recommended that you always
11133
    # use absolute paths for naming shared libraries, and exclude the
11134
    # DT_RUNPATH tag from executables and libraries.  But doing so
11135
    # requires that you compile everything twice, which is a pain.
11136
    # So that behaviour is only enabled if SCOABSPATH is set to a
11137
    # non-empty value in the environment.  Most likely only useful for
11138
    # creating official distributions of packages.
11139
    # This is a hack until libtool officially supports absolute path
11140
    # names for shared libraries.
11141
    no_undefined_flag_CXX='${wl}-z,text'
11142
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11143
    archive_cmds_need_lc_CXX=no
11144
    hardcode_shlibpath_var_CXX=no
11145
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11146
    hardcode_libdir_separator_CXX=':'
11147
    link_all_deplibs_CXX=yes
11148
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11149
    runpath_var='LD_RUN_PATH'
11150
 
11151
    case $cc_basename in
11152
      CC*)
11153
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11154
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11155
        ;;
11156
      *)
11157
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11158
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11159
        ;;
11160
    esac
11161
    ;;
11162
  tandem*)
11163
    case $cc_basename in
11164
      NCC*)
11165
        # NonStop-UX NCC 3.20
11166
        # FIXME: insert proper C++ library support
11167
        ld_shlibs_CXX=no
11168
        ;;
11169
      *)
11170
        # FIXME: insert proper C++ library support
11171
        ld_shlibs_CXX=no
11172
        ;;
11173
    esac
11174
    ;;
11175
  vxworks*)
11176
    # FIXME: insert proper C++ library support
11177
    ld_shlibs_CXX=no
11178
    ;;
11179
  *)
11180
    # FIXME: insert proper C++ library support
11181
    ld_shlibs_CXX=no
11182
    ;;
11183
esac
11184
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11185
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11186
test "$ld_shlibs_CXX" = no && can_build_shared=no
11187
 
11188
GCC_CXX="$GXX"
11189
LD_CXX="$LD"
11190
 
11191
 
11192
cat > conftest.$ac_ext <
11193
class Foo
11194
{
11195
public:
11196
  Foo (void) { a = 0; }
11197
private:
11198
  int a;
11199
};
11200
EOF
11201
 
11202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203
  (eval $ac_compile) 2>&5
11204
  ac_status=$?
11205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206
  (exit $ac_status); }; then
11207
  # Parse the compiler output and extract the necessary
11208
  # objects, libraries and library flags.
11209
 
11210
  # Sentinel used to keep track of whether or not we are before
11211
  # the conftest object file.
11212
  pre_test_object_deps_done=no
11213
 
11214
  # The `*' in the case matches for architectures that use `case' in
11215
  # $output_verbose_cmd can trigger glob expansion during the loop
11216
  # eval without this substitution.
11217
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11218
 
11219
  for p in `eval $output_verbose_link_cmd`; do
11220
    case $p in
11221
 
11222
    -L* | -R* | -l*)
11223
       # Some compilers place space between "-{L,R}" and the path.
11224
       # Remove the space.
11225
       if test $p = "-L" \
11226
          || test $p = "-R"; then
11227
         prev=$p
11228
         continue
11229
       else
11230
         prev=
11231
       fi
11232
 
11233
       if test "$pre_test_object_deps_done" = no; then
11234
         case $p in
11235
         -L* | -R*)
11236
           # Internal compiler library paths should come after those
11237
           # provided the user.  The postdeps already come after the
11238
           # user supplied libs so there is no need to process them.
11239
           if test -z "$compiler_lib_search_path_CXX"; then
11240
             compiler_lib_search_path_CXX="${prev}${p}"
11241
           else
11242
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11243
           fi
11244
           ;;
11245
         # The "-l" case would never come before the object being
11246
         # linked, so don't bother handling this case.
11247
         esac
11248
       else
11249
         if test -z "$postdeps_CXX"; then
11250
           postdeps_CXX="${prev}${p}"
11251
         else
11252
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11253
         fi
11254
       fi
11255
       ;;
11256
 
11257
    *.$objext)
11258
       # This assumes that the test object file only shows up
11259
       # once in the compiler output.
11260
       if test "$p" = "conftest.$objext"; then
11261
         pre_test_object_deps_done=yes
11262
         continue
11263
       fi
11264
 
11265
       if test "$pre_test_object_deps_done" = no; then
11266
         if test -z "$predep_objects_CXX"; then
11267
           predep_objects_CXX="$p"
11268
         else
11269
           predep_objects_CXX="$predep_objects_CXX $p"
11270
         fi
11271
       else
11272
         if test -z "$postdep_objects_CXX"; then
11273
           postdep_objects_CXX="$p"
11274
         else
11275
           postdep_objects_CXX="$postdep_objects_CXX $p"
11276
         fi
11277
       fi
11278
       ;;
11279
 
11280
    *) ;; # Ignore the rest.
11281
 
11282
    esac
11283
  done
11284
 
11285
  # Clean up.
11286
  rm -f a.out a.exe
11287
else
11288
  echo "libtool.m4: error: problem compiling CXX test program"
11289
fi
11290
 
11291
$rm -f confest.$objext
11292
 
11293
# PORTME: override above test on systems where it is broken
11294
case $host_os in
11295
interix[3-9]*)
11296
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11297
  # hack all around it, let's just trust "g++" to DTRT.
11298
  predep_objects_CXX=
11299
  postdep_objects_CXX=
11300
  postdeps_CXX=
11301
  ;;
11302
 
11303
linux*)
11304
  case `$CC -V 2>&1 | sed 5q` in
11305
  *Sun\ C*)
11306
    # Sun C++ 5.9
11307
    #
11308
    # The more standards-conforming stlport4 library is
11309
    # incompatible with the Cstd library. Avoid specifying
11310
    # it if it's in CXXFLAGS. Ignore libCrun as
11311
    # -library=stlport4 depends on it.
11312
    case " $CXX $CXXFLAGS " in
11313
    *" -library=stlport4 "*)
11314
      solaris_use_stlport4=yes
11315
      ;;
11316
    esac
11317
    if test "$solaris_use_stlport4" != yes; then
11318
      postdeps_CXX='-library=Cstd -library=Crun'
11319
    fi
11320
    ;;
11321
  esac
11322
  ;;
11323
 
11324
solaris*)
11325
  case $cc_basename in
11326
  CC*)
11327
    # The more standards-conforming stlport4 library is
11328
    # incompatible with the Cstd library. Avoid specifying
11329
    # it if it's in CXXFLAGS. Ignore libCrun as
11330
    # -library=stlport4 depends on it.
11331
    case " $CXX $CXXFLAGS " in
11332
    *" -library=stlport4 "*)
11333
      solaris_use_stlport4=yes
11334
      ;;
11335
    esac
11336
 
11337
    # Adding this requires a known-good setup of shared libraries for
11338
    # Sun compiler versions before 5.6, else PIC objects from an old
11339
    # archive will be linked into the output, leading to subtle bugs.
11340
    if test "$solaris_use_stlport4" != yes; then
11341
      postdeps_CXX='-library=Cstd -library=Crun'
11342
    fi
11343
    ;;
11344
  esac
11345
  ;;
11346
esac
11347
 
11348
 
11349
case " $postdeps_CXX " in
11350
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11351
esac
11352
 
11353
lt_prog_compiler_wl_CXX=
11354
lt_prog_compiler_pic_CXX=
11355
lt_prog_compiler_static_CXX=
11356
 
11357
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11358
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11359
 
11360
  # C++ specific cases for pic, static, wl, etc.
11361
  if test "$GXX" = yes; then
11362
    lt_prog_compiler_wl_CXX='-Wl,'
11363
    lt_prog_compiler_static_CXX='-static'
11364
 
11365
    case $host_os in
11366
    aix*)
11367
      # All AIX code is PIC.
11368
      if test "$host_cpu" = ia64; then
11369
        # AIX 5 now supports IA64 processor
11370
        lt_prog_compiler_static_CXX='-Bstatic'
11371
      fi
11372
      ;;
11373
    amigaos*)
11374
      # FIXME: we need at least 68020 code to build shared libraries, but
11375
      # adding the `-m68020' flag to GCC prevents building anything better,
11376
      # like `-m68040'.
11377
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11378
      ;;
11379
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11380
      # PIC is the default for these OSes.
11381
      ;;
11382
    mingw* | cygwin* | os2* | pw32*)
11383
      # This hack is so that the source file can tell whether it is being
11384
      # built for inclusion in a dll (and should export symbols for example).
11385
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11386
      # (--disable-auto-import) libraries
11387
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11388
      ;;
11389
    darwin* | rhapsody*)
11390
      # PIC is the default on this platform
11391
      # Common symbols not allowed in MH_DYLIB files
11392
      lt_prog_compiler_pic_CXX='-fno-common'
11393
      ;;
11394
    *djgpp*)
11395
      # DJGPP does not support shared libraries at all
11396
      lt_prog_compiler_pic_CXX=
11397
      ;;
11398
    interix[3-9]*)
11399
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11400
      # Instead, we relocate shared libraries at runtime.
11401
      ;;
11402
    sysv4*MP*)
11403
      if test -d /usr/nec; then
11404
        lt_prog_compiler_pic_CXX=-Kconform_pic
11405
      fi
11406
      ;;
11407
    hpux*)
11408
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11409
      # not for PA HP-UX.
11410
      case $host_cpu in
11411
      hppa*64*|ia64*)
11412
        ;;
11413
      *)
11414
        lt_prog_compiler_pic_CXX='-fPIC'
11415
        ;;
11416
      esac
11417
      ;;
11418
    *)
11419
      lt_prog_compiler_pic_CXX='-fPIC'
11420
      ;;
11421
    esac
11422
  else
11423
    case $host_os in
11424
      aix4* | aix5*)
11425
        # All AIX code is PIC.
11426
        if test "$host_cpu" = ia64; then
11427
          # AIX 5 now supports IA64 processor
11428
          lt_prog_compiler_static_CXX='-Bstatic'
11429
        else
11430
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11431
        fi
11432
        ;;
11433
      chorus*)
11434
        case $cc_basename in
11435
        cxch68*)
11436
          # Green Hills C++ Compiler
11437
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11438
          ;;
11439
        esac
11440
        ;;
11441
       darwin*)
11442
         # PIC is the default on this platform
11443
         # Common symbols not allowed in MH_DYLIB files
11444
         case $cc_basename in
11445
           xlc*)
11446
           lt_prog_compiler_pic_CXX='-qnocommon'
11447
           lt_prog_compiler_wl_CXX='-Wl,'
11448
           ;;
11449
         esac
11450
       ;;
11451
      dgux*)
11452
        case $cc_basename in
11453
          ec++*)
11454
            lt_prog_compiler_pic_CXX='-KPIC'
11455
            ;;
11456
          ghcx*)
11457
            # Green Hills C++ Compiler
11458
            lt_prog_compiler_pic_CXX='-pic'
11459
            ;;
11460
          *)
11461
            ;;
11462
        esac
11463
        ;;
11464
      freebsd* | dragonfly*)
11465
        # FreeBSD uses GNU C++
11466
        ;;
11467
      hpux9* | hpux10* | hpux11*)
11468
        case $cc_basename in
11469
          CC*)
11470
            lt_prog_compiler_wl_CXX='-Wl,'
11471
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11472
            if test "$host_cpu" != ia64; then
11473
              lt_prog_compiler_pic_CXX='+Z'
11474
            fi
11475
            ;;
11476
          aCC*)
11477
            lt_prog_compiler_wl_CXX='-Wl,'
11478
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11479
            case $host_cpu in
11480
            hppa*64*|ia64*)
11481
              # +Z the default
11482
              ;;
11483
            *)
11484
              lt_prog_compiler_pic_CXX='+Z'
11485
              ;;
11486
            esac
11487
            ;;
11488
          *)
11489
            ;;
11490
        esac
11491
        ;;
11492
      interix*)
11493
        # This is c89, which is MS Visual C++ (no shared libs)
11494
        # Anyone wants to do a port?
11495
        ;;
11496
      irix5* | irix6* | nonstopux*)
11497
        case $cc_basename in
11498
          CC*)
11499
            lt_prog_compiler_wl_CXX='-Wl,'
11500
            lt_prog_compiler_static_CXX='-non_shared'
11501
            # CC pic flag -KPIC is the default.
11502
            ;;
11503
          *)
11504
            ;;
11505
        esac
11506
        ;;
11507
      linux* | k*bsd*-gnu)
11508
        case $cc_basename in
11509
          KCC*)
11510
            # KAI C++ Compiler
11511
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11512
            lt_prog_compiler_pic_CXX='-fPIC'
11513
            ;;
11514
          icpc* | ecpc*)
11515
            # Intel C++
11516
            lt_prog_compiler_wl_CXX='-Wl,'
11517
            lt_prog_compiler_pic_CXX='-KPIC'
11518
            lt_prog_compiler_static_CXX='-static'
11519
            ;;
11520
          pgCC*)
11521
            # Portland Group C++ compiler.
11522
            lt_prog_compiler_wl_CXX='-Wl,'
11523
            lt_prog_compiler_pic_CXX='-fpic'
11524
            lt_prog_compiler_static_CXX='-Bstatic'
11525
            ;;
11526
          cxx*)
11527
            # Compaq C++
11528
            # Make sure the PIC flag is empty.  It appears that all Alpha
11529
            # Linux and Compaq Tru64 Unix objects are PIC.
11530
            lt_prog_compiler_pic_CXX=
11531
            lt_prog_compiler_static_CXX='-non_shared'
11532
            ;;
11533
          *)
11534
            case `$CC -V 2>&1 | sed 5q` in
11535
            *Sun\ C*)
11536
              # Sun C++ 5.9
11537
              lt_prog_compiler_pic_CXX='-KPIC'
11538
              lt_prog_compiler_static_CXX='-Bstatic'
11539
              lt_prog_compiler_wl_CXX='-Qoption ld '
11540
              ;;
11541
            esac
11542
            ;;
11543
        esac
11544
        ;;
11545
      lynxos*)
11546
        ;;
11547
      m88k*)
11548
        ;;
11549
      mvs*)
11550
        case $cc_basename in
11551
          cxx*)
11552
            lt_prog_compiler_pic_CXX='-W c,exportall'
11553
            ;;
11554
          *)
11555
            ;;
11556
        esac
11557
        ;;
11558
      netbsd*)
11559
        ;;
11560
      osf3* | osf4* | osf5*)
11561
        case $cc_basename in
11562
          KCC*)
11563
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11564
            ;;
11565
          RCC*)
11566
            # Rational C++ 2.4.1
11567
            lt_prog_compiler_pic_CXX='-pic'
11568
            ;;
11569
          cxx*)
11570
            # Digital/Compaq C++
11571
            lt_prog_compiler_wl_CXX='-Wl,'
11572
            # Make sure the PIC flag is empty.  It appears that all Alpha
11573
            # Linux and Compaq Tru64 Unix objects are PIC.
11574
            lt_prog_compiler_pic_CXX=
11575
            lt_prog_compiler_static_CXX='-non_shared'
11576
            ;;
11577
          *)
11578
            ;;
11579
        esac
11580
        ;;
11581
      psos*)
11582
        ;;
11583
      solaris*)
11584
        case $cc_basename in
11585
          CC*)
11586
            # Sun C++ 4.2, 5.x and Centerline C++
11587
            lt_prog_compiler_pic_CXX='-KPIC'
11588
            lt_prog_compiler_static_CXX='-Bstatic'
11589
            lt_prog_compiler_wl_CXX='-Qoption ld '
11590
            ;;
11591
          gcx*)
11592
            # Green Hills C++ Compiler
11593
            lt_prog_compiler_pic_CXX='-PIC'
11594
            ;;
11595
          *)
11596
            ;;
11597
        esac
11598
        ;;
11599
      sunos4*)
11600
        case $cc_basename in
11601
          CC*)
11602
            # Sun C++ 4.x
11603
            lt_prog_compiler_pic_CXX='-pic'
11604
            lt_prog_compiler_static_CXX='-Bstatic'
11605
            ;;
11606
          lcc*)
11607
            # Lucid
11608
            lt_prog_compiler_pic_CXX='-pic'
11609
            ;;
11610
          *)
11611
            ;;
11612
        esac
11613
        ;;
11614
      tandem*)
11615
        case $cc_basename in
11616
          NCC*)
11617
            # NonStop-UX NCC 3.20
11618
            lt_prog_compiler_pic_CXX='-KPIC'
11619
            ;;
11620
          *)
11621
            ;;
11622
        esac
11623
        ;;
11624
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11625
        case $cc_basename in
11626
          CC*)
11627
            lt_prog_compiler_wl_CXX='-Wl,'
11628
            lt_prog_compiler_pic_CXX='-KPIC'
11629
            lt_prog_compiler_static_CXX='-Bstatic'
11630
            ;;
11631
        esac
11632
        ;;
11633
      vxworks*)
11634
        ;;
11635
      *)
11636
        lt_prog_compiler_can_build_shared_CXX=no
11637
        ;;
11638
    esac
11639
  fi
11640
 
11641
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11642
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11643
 
11644
#
11645
# Check to make sure the PIC flag actually works.
11646
#
11647
if test -n "$lt_prog_compiler_pic_CXX"; then
11648
 
11649
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11650
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11651
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11652
  echo $ECHO_N "(cached) $ECHO_C" >&6
11653
else
11654
  lt_prog_compiler_pic_works_CXX=no
11655
  ac_outfile=conftest.$ac_objext
11656
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11657
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11658
   # Insert the option either (1) after the last *FLAGS variable, or
11659
   # (2) before a word containing "conftest.", or (3) at the end.
11660
   # Note that $ac_compile itself does not contain backslashes and begins
11661
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11662
   # The option is referenced via a variable to avoid confusing sed.
11663
   lt_compile=`echo "$ac_compile" | $SED \
11664
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11665
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11666
   -e 's:$: $lt_compiler_flag:'`
11667
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11668
   (eval "$lt_compile" 2>conftest.err)
11669
   ac_status=$?
11670
   cat conftest.err >&5
11671
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11672
   if (exit $ac_status) && test -s "$ac_outfile"; then
11673
     # The compiler can only warn and ignore the option if not recognized
11674
     # So say no if there are warnings other than the usual output.
11675
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11676
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11677
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11678
       lt_prog_compiler_pic_works_CXX=yes
11679
     fi
11680
   fi
11681
   $rm conftest*
11682
 
11683
fi
11684
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11685
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11686
 
11687
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11688
    case $lt_prog_compiler_pic_CXX in
11689
     "" | " "*) ;;
11690
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11691
     esac
11692
else
11693
    lt_prog_compiler_pic_CXX=
11694
     lt_prog_compiler_can_build_shared_CXX=no
11695
fi
11696
 
11697
fi
11698
case $host_os in
11699
  # For platforms which do not support PIC, -DPIC is meaningless:
11700
  *djgpp*)
11701
    lt_prog_compiler_pic_CXX=
11702
    ;;
11703
  *)
11704
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11705
    ;;
11706
esac
11707
 
11708
#
11709
# Check to make sure the static flag actually works.
11710
#
11711
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11712
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11713
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11714
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11715
  echo $ECHO_N "(cached) $ECHO_C" >&6
11716
else
11717
  lt_prog_compiler_static_works_CXX=no
11718
   save_LDFLAGS="$LDFLAGS"
11719
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11720
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11721
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11722
     # The linker can only warn and ignore the option if not recognized
11723
     # So say no if there are warnings
11724
     if test -s conftest.err; then
11725
       # Append any errors to the config.log.
11726
       cat conftest.err 1>&5
11727
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11728
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11729
       if diff conftest.exp conftest.er2 >/dev/null; then
11730
         lt_prog_compiler_static_works_CXX=yes
11731
       fi
11732
     else
11733
       lt_prog_compiler_static_works_CXX=yes
11734
     fi
11735
   fi
11736
   $rm conftest*
11737
   LDFLAGS="$save_LDFLAGS"
11738
 
11739
fi
11740
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11741
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11742
 
11743
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11744
    :
11745
else
11746
    lt_prog_compiler_static_CXX=
11747
fi
11748
 
11749
 
11750
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11751
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11752
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11753
  echo $ECHO_N "(cached) $ECHO_C" >&6
11754
else
11755
  lt_cv_prog_compiler_c_o_CXX=no
11756
   $rm -r conftest 2>/dev/null
11757
   mkdir conftest
11758
   cd conftest
11759
   mkdir out
11760
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11761
 
11762
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11763
   # Insert the option either (1) after the last *FLAGS variable, or
11764
   # (2) before a word containing "conftest.", or (3) at the end.
11765
   # Note that $ac_compile itself does not contain backslashes and begins
11766
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11767
   lt_compile=`echo "$ac_compile" | $SED \
11768
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11769
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11770
   -e 's:$: $lt_compiler_flag:'`
11771
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11772
   (eval "$lt_compile" 2>out/conftest.err)
11773
   ac_status=$?
11774
   cat out/conftest.err >&5
11775
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11776
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11777
   then
11778
     # The compiler can only warn and ignore the option if not recognized
11779
     # So say no if there are warnings
11780
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11781
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11782
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11783
       lt_cv_prog_compiler_c_o_CXX=yes
11784
     fi
11785
   fi
11786
   chmod u+w . 2>&5
11787
   $rm conftest*
11788
   # SGI C++ compiler will create directory out/ii_files/ for
11789
   # template instantiation
11790
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11791
   $rm out/* && rmdir out
11792
   cd ..
11793
   rmdir conftest
11794
   $rm conftest*
11795
 
11796
fi
11797
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11798
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11799
 
11800
 
11801
hard_links="nottested"
11802
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11803
  # do not overwrite the value of need_locks provided by the user
11804
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11805
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11806
  hard_links=yes
11807
  $rm conftest*
11808
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11809
  touch conftest.a
11810
  ln conftest.a conftest.b 2>&5 || hard_links=no
11811
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11812
  { echo "$as_me:$LINENO: result: $hard_links" >&5
11813
echo "${ECHO_T}$hard_links" >&6; }
11814
  if test "$hard_links" = no; then
11815
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11816
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11817
    need_locks=warn
11818
  fi
11819
else
11820
  need_locks=no
11821
fi
11822
 
11823
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11824
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11825
 
11826
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11827
  case $host_os in
11828
  aix4* | aix5*)
11829
    # If we're using GNU nm, then we don't want the "-C" option.
11830
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11831
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11832
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11833
    else
11834
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11835
    fi
11836
    ;;
11837
  pw32*)
11838
    export_symbols_cmds_CXX="$ltdll_cmds"
11839
  ;;
11840
  cygwin* | mingw*)
11841
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11842
  ;;
11843
  *)
11844
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11845
  ;;
11846
  esac
11847
 
11848
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11849
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11850
test "$ld_shlibs_CXX" = no && can_build_shared=no
11851
 
11852
#
11853
# Do we need to explicitly link libc?
11854
#
11855
case "x$archive_cmds_need_lc_CXX" in
11856
x|xyes)
11857
  # Assume -lc should be added
11858
  archive_cmds_need_lc_CXX=yes
11859
 
11860
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11861
    case $archive_cmds_CXX in
11862
    *'~'*)
11863
      # FIXME: we may have to deal with multi-command sequences.
11864
      ;;
11865
    '$CC '*)
11866
      # Test whether the compiler implicitly links with -lc since on some
11867
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11868
      # to ld, don't add -lc before -lgcc.
11869
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11870
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11871
      $rm conftest*
11872
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11873
 
11874
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875
  (eval $ac_compile) 2>&5
11876
  ac_status=$?
11877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878
  (exit $ac_status); } 2>conftest.err; then
11879
        soname=conftest
11880
        lib=conftest
11881
        libobjs=conftest.$ac_objext
11882
        deplibs=
11883
        wl=$lt_prog_compiler_wl_CXX
11884
        pic_flag=$lt_prog_compiler_pic_CXX
11885
        compiler_flags=-v
11886
        linker_flags=-v
11887
        verstring=
11888
        output_objdir=.
11889
        libname=conftest
11890
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11891
        allow_undefined_flag_CXX=
11892
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11893
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11894
  ac_status=$?
11895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896
  (exit $ac_status); }
11897
        then
11898
          archive_cmds_need_lc_CXX=no
11899
        else
11900
          archive_cmds_need_lc_CXX=yes
11901
        fi
11902
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11903
      else
11904
        cat conftest.err 1>&5
11905
      fi
11906
      $rm conftest*
11907
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11908
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11909
      ;;
11910
    esac
11911
  fi
11912
  ;;
11913
esac
11914
 
11915
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11916
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11917
library_names_spec=
11918
libname_spec='lib$name'
11919
soname_spec=
11920
shrext_cmds=".so"
11921
postinstall_cmds=
11922
postuninstall_cmds=
11923
finish_cmds=
11924
finish_eval=
11925
shlibpath_var=
11926
shlibpath_overrides_runpath=unknown
11927
version_type=none
11928
dynamic_linker="$host_os ld.so"
11929
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11930
 
11931
need_lib_prefix=unknown
11932
hardcode_into_libs=no
11933
 
11934
# when you set need_version to no, make sure it does not cause -set_version
11935
# flags to be left without arguments
11936
need_version=unknown
11937
 
11938
case $host_os in
11939
aix3*)
11940
  version_type=linux
11941
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11942
  shlibpath_var=LIBPATH
11943
 
11944
  # AIX 3 has no versioning support, so we append a major version to the name.
11945
  soname_spec='${libname}${release}${shared_ext}$major'
11946
  ;;
11947
 
11948
aix4* | aix5*)
11949
  version_type=linux
11950
  need_lib_prefix=no
11951
  need_version=no
11952
  hardcode_into_libs=yes
11953
  if test "$host_cpu" = ia64; then
11954
    # AIX 5 supports IA64
11955
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11956
    shlibpath_var=LD_LIBRARY_PATH
11957
  else
11958
    # With GCC up to 2.95.x, collect2 would create an import file
11959
    # for dependence libraries.  The import file would start with
11960
    # the line `#! .'.  This would cause the generated library to
11961
    # depend on `.', always an invalid library.  This was fixed in
11962
    # development snapshots of GCC prior to 3.0.
11963
    case $host_os in
11964
      aix4 | aix4.[01] | aix4.[01].*)
11965
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11966
           echo ' yes '
11967
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11968
        :
11969
      else
11970
        can_build_shared=no
11971
      fi
11972
      ;;
11973
    esac
11974
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11975
    # soname into executable. Probably we can add versioning support to
11976
    # collect2, so additional links can be useful in future.
11977
    if test "$aix_use_runtimelinking" = yes; then
11978
      # If using run time linking (on AIX 4.2 or later) use lib.so
11979
      # instead of lib.a to let people know that these are not
11980
      # typical AIX shared libraries.
11981
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982
    else
11983
      # We preserve .a as extension for shared libraries through AIX4.2
11984
      # and later when we are not doing run time linking.
11985
      library_names_spec='${libname}${release}.a $libname.a'
11986
      soname_spec='${libname}${release}${shared_ext}$major'
11987
    fi
11988
    shlibpath_var=LIBPATH
11989
  fi
11990
  ;;
11991
 
11992
amigaos*)
11993
  library_names_spec='$libname.ixlibrary $libname.a'
11994
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11995
  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'
11996
  ;;
11997
 
11998
beos*)
11999
  library_names_spec='${libname}${shared_ext}'
12000
  dynamic_linker="$host_os ld.so"
12001
  shlibpath_var=LIBRARY_PATH
12002
  ;;
12003
 
12004
bsdi[45]*)
12005
  version_type=linux
12006
  need_version=no
12007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008
  soname_spec='${libname}${release}${shared_ext}$major'
12009
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12010
  shlibpath_var=LD_LIBRARY_PATH
12011
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12012
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12013
  # the default ld.so.conf also contains /usr/contrib/lib and
12014
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12015
  # libtool to hard-code these into programs
12016
  ;;
12017
 
12018
cygwin* | mingw* | pw32*)
12019
  version_type=windows
12020
  shrext_cmds=".dll"
12021
  need_version=no
12022
  need_lib_prefix=no
12023
 
12024
  case $GCC,$host_os in
12025
  yes,cygwin* | yes,mingw* | yes,pw32*)
12026
    library_names_spec='$libname.dll.a'
12027
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12028
    postinstall_cmds='base_file=`basename \${file}`~
12029
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12030
      dldir=$destdir/`dirname \$dlpath`~
12031
      test -d \$dldir || mkdir -p \$dldir~
12032
      $install_prog $dir/$dlname \$dldir/$dlname~
12033
      chmod a+x \$dldir/$dlname'
12034
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12035
      dlpath=$dir/\$dldll~
12036
       $rm \$dlpath'
12037
    shlibpath_overrides_runpath=yes
12038
 
12039
    case $host_os in
12040
    cygwin*)
12041
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12042
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12043
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12044
      ;;
12045
    mingw*)
12046
      # MinGW DLLs use traditional 'lib' prefix
12047
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12048
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12049
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12050
        # It is most probably a Windows format PATH printed by
12051
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12052
        # path with ; separators, and with drive letters. We can handle the
12053
        # drive letters (cygwin fileutils understands them), so leave them,
12054
        # especially as we might pass files found there to a mingw objdump,
12055
        # which wouldn't understand a cygwinified path. Ahh.
12056
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12057
      else
12058
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12059
      fi
12060
      ;;
12061
    pw32*)
12062
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12063
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12064
      ;;
12065
    esac
12066
    ;;
12067
 
12068
  *)
12069
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12070
    ;;
12071
  esac
12072
  dynamic_linker='Win32 ld.exe'
12073
  # FIXME: first we should search . and the directory the executable is in
12074
  shlibpath_var=PATH
12075
  ;;
12076
 
12077
darwin* | rhapsody*)
12078
  dynamic_linker="$host_os dyld"
12079
  version_type=darwin
12080
  need_lib_prefix=no
12081
  need_version=no
12082
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12083
  soname_spec='${libname}${release}${major}$shared_ext'
12084
  shlibpath_overrides_runpath=yes
12085
  shlibpath_var=DYLD_LIBRARY_PATH
12086
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12087
 
12088
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12089
  ;;
12090
 
12091
dgux*)
12092
  version_type=linux
12093
  need_lib_prefix=no
12094
  need_version=no
12095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12096
  soname_spec='${libname}${release}${shared_ext}$major'
12097
  shlibpath_var=LD_LIBRARY_PATH
12098
  ;;
12099
 
12100
freebsd1*)
12101
  dynamic_linker=no
12102
  ;;
12103
 
12104
freebsd* | dragonfly*)
12105
  # DragonFly does not have aout.  When/if they implement a new
12106
  # versioning mechanism, adjust this.
12107
  if test -x /usr/bin/objformat; then
12108
    objformat=`/usr/bin/objformat`
12109
  else
12110
    case $host_os in
12111
    freebsd[123]*) objformat=aout ;;
12112
    *) objformat=elf ;;
12113
    esac
12114
  fi
12115
  version_type=freebsd-$objformat
12116
  case $version_type in
12117
    freebsd-elf*)
12118
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12119
      need_version=no
12120
      need_lib_prefix=no
12121
      ;;
12122
    freebsd-*)
12123
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12124
      need_version=yes
12125
      ;;
12126
  esac
12127
  shlibpath_var=LD_LIBRARY_PATH
12128
  case $host_os in
12129
  freebsd2*)
12130
    shlibpath_overrides_runpath=yes
12131
    ;;
12132
  freebsd3.[01]* | freebsdelf3.[01]*)
12133
    shlibpath_overrides_runpath=yes
12134
    hardcode_into_libs=yes
12135
    ;;
12136
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12137
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12138
    shlibpath_overrides_runpath=no
12139
    hardcode_into_libs=yes
12140
    ;;
12141
  *) # from 4.6 on, and DragonFly
12142
    shlibpath_overrides_runpath=yes
12143
    hardcode_into_libs=yes
12144
    ;;
12145
  esac
12146
  ;;
12147
 
12148
gnu*)
12149
  version_type=linux
12150
  need_lib_prefix=no
12151
  need_version=no
12152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12153
  soname_spec='${libname}${release}${shared_ext}$major'
12154
  shlibpath_var=LD_LIBRARY_PATH
12155
  hardcode_into_libs=yes
12156
  ;;
12157
 
12158
hpux9* | hpux10* | hpux11*)
12159
  # Give a soname corresponding to the major version so that dld.sl refuses to
12160
  # link against other versions.
12161
  version_type=sunos
12162
  need_lib_prefix=no
12163
  need_version=no
12164
  case $host_cpu in
12165
  ia64*)
12166
    shrext_cmds='.so'
12167
    hardcode_into_libs=yes
12168
    dynamic_linker="$host_os dld.so"
12169
    shlibpath_var=LD_LIBRARY_PATH
12170
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12171
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172
    soname_spec='${libname}${release}${shared_ext}$major'
12173
    if test "X$HPUX_IA64_MODE" = X32; then
12174
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12175
    else
12176
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12177
    fi
12178
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12179
    ;;
12180
   hppa*64*)
12181
     shrext_cmds='.sl'
12182
     hardcode_into_libs=yes
12183
     dynamic_linker="$host_os dld.sl"
12184
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12185
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12186
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187
     soname_spec='${libname}${release}${shared_ext}$major'
12188
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12189
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12190
     ;;
12191
   *)
12192
    shrext_cmds='.sl'
12193
    dynamic_linker="$host_os dld.sl"
12194
    shlibpath_var=SHLIB_PATH
12195
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12196
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197
    soname_spec='${libname}${release}${shared_ext}$major'
12198
    ;;
12199
  esac
12200
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12201
  postinstall_cmds='chmod 555 $lib'
12202
  ;;
12203
 
12204
interix[3-9]*)
12205
  version_type=linux
12206
  need_lib_prefix=no
12207
  need_version=no
12208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12209
  soname_spec='${libname}${release}${shared_ext}$major'
12210
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12211
  shlibpath_var=LD_LIBRARY_PATH
12212
  shlibpath_overrides_runpath=no
12213
  hardcode_into_libs=yes
12214
  ;;
12215
 
12216
irix5* | irix6* | nonstopux*)
12217
  case $host_os in
12218
    nonstopux*) version_type=nonstopux ;;
12219
    *)
12220
        if test "$lt_cv_prog_gnu_ld" = yes; then
12221
                version_type=linux
12222
        else
12223
                version_type=irix
12224
        fi ;;
12225
  esac
12226
  need_lib_prefix=no
12227
  need_version=no
12228
  soname_spec='${libname}${release}${shared_ext}$major'
12229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12230
  case $host_os in
12231
  irix5* | nonstopux*)
12232
    libsuff= shlibsuff=
12233
    ;;
12234
  *)
12235
    case $LD in # libtool.m4 will add one of these switches to LD
12236
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12237
      libsuff= shlibsuff= libmagic=32-bit;;
12238
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12239
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12240
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12241
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12242
    *) libsuff= shlibsuff= libmagic=never-match;;
12243
    esac
12244
    ;;
12245
  esac
12246
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12247
  shlibpath_overrides_runpath=no
12248
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12249
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12250
  hardcode_into_libs=yes
12251
  ;;
12252
 
12253
# No shared lib support for Linux oldld, aout, or coff.
12254
linux*oldld* | linux*aout* | linux*coff*)
12255
  dynamic_linker=no
12256
  ;;
12257
 
12258
# This must be Linux ELF.
12259
linux* | k*bsd*-gnu)
12260
  version_type=linux
12261
  need_lib_prefix=no
12262
  need_version=no
12263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264
  soname_spec='${libname}${release}${shared_ext}$major'
12265
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12266
  shlibpath_var=LD_LIBRARY_PATH
12267
  shlibpath_overrides_runpath=no
12268
  # This implies no fast_install, which is unacceptable.
12269
  # Some rework will be needed to allow for fast_install
12270
  # before this can be enabled.
12271
  hardcode_into_libs=yes
12272
 
12273
  # Append ld.so.conf contents to the search path
12274
  if test -f /etc/ld.so.conf; then
12275
    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' ' '`
12276 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12277 19 jeremybenn
  fi
12278
 
12279
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12280
  # powerpc, because MkLinux only supported shared libraries with the
12281
  # GNU dynamic linker.  Since this was broken with cross compilers,
12282
  # most powerpc-linux boxes support dynamic linking these days and
12283
  # people can always --disable-shared, the test was removed, and we
12284
  # assume the GNU/Linux dynamic linker is in use.
12285
  dynamic_linker='GNU/Linux ld.so'
12286
  ;;
12287
 
12288
netbsd*)
12289
  version_type=sunos
12290
  need_lib_prefix=no
12291
  need_version=no
12292
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12293
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12295
    dynamic_linker='NetBSD (a.out) ld.so'
12296
  else
12297
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12298
    soname_spec='${libname}${release}${shared_ext}$major'
12299
    dynamic_linker='NetBSD ld.elf_so'
12300
  fi
12301
  shlibpath_var=LD_LIBRARY_PATH
12302
  shlibpath_overrides_runpath=yes
12303
  hardcode_into_libs=yes
12304
  ;;
12305
 
12306
newsos6)
12307
  version_type=linux
12308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12309
  shlibpath_var=LD_LIBRARY_PATH
12310
  shlibpath_overrides_runpath=yes
12311
  ;;
12312
 
12313
nto-qnx*)
12314
  version_type=linux
12315
  need_lib_prefix=no
12316
  need_version=no
12317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318
  soname_spec='${libname}${release}${shared_ext}$major'
12319
  shlibpath_var=LD_LIBRARY_PATH
12320
  shlibpath_overrides_runpath=yes
12321
  ;;
12322
 
12323
openbsd*)
12324
  version_type=sunos
12325
  sys_lib_dlsearch_path_spec="/usr/lib"
12326
  need_lib_prefix=no
12327
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12328
  case $host_os in
12329
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12330
    *)                         need_version=no  ;;
12331
  esac
12332
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12333
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12334
  shlibpath_var=LD_LIBRARY_PATH
12335
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12336
    case $host_os in
12337
      openbsd2.[89] | openbsd2.[89].*)
12338
        shlibpath_overrides_runpath=no
12339
        ;;
12340
      *)
12341
        shlibpath_overrides_runpath=yes
12342
        ;;
12343
      esac
12344
  else
12345
    shlibpath_overrides_runpath=yes
12346
  fi
12347
  ;;
12348
 
12349
os2*)
12350
  libname_spec='$name'
12351
  shrext_cmds=".dll"
12352
  need_lib_prefix=no
12353
  library_names_spec='$libname${shared_ext} $libname.a'
12354
  dynamic_linker='OS/2 ld.exe'
12355
  shlibpath_var=LIBPATH
12356
  ;;
12357
 
12358
osf3* | osf4* | osf5*)
12359
  version_type=osf
12360
  need_lib_prefix=no
12361
  need_version=no
12362
  soname_spec='${libname}${release}${shared_ext}$major'
12363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364
  shlibpath_var=LD_LIBRARY_PATH
12365
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12366
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12367
  ;;
12368
 
12369
rdos*)
12370
  dynamic_linker=no
12371
  ;;
12372
 
12373
solaris*)
12374
  version_type=linux
12375
  need_lib_prefix=no
12376
  need_version=no
12377
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378
  soname_spec='${libname}${release}${shared_ext}$major'
12379
  shlibpath_var=LD_LIBRARY_PATH
12380
  shlibpath_overrides_runpath=yes
12381
  hardcode_into_libs=yes
12382
  # ldd complains unless libraries are executable
12383
  postinstall_cmds='chmod +x $lib'
12384
  ;;
12385
 
12386
sunos4*)
12387
  version_type=sunos
12388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12389
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12390
  shlibpath_var=LD_LIBRARY_PATH
12391
  shlibpath_overrides_runpath=yes
12392
  if test "$with_gnu_ld" = yes; then
12393
    need_lib_prefix=no
12394
  fi
12395
  need_version=yes
12396
  ;;
12397
 
12398
sysv4 | sysv4.3*)
12399
  version_type=linux
12400
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12401
  soname_spec='${libname}${release}${shared_ext}$major'
12402
  shlibpath_var=LD_LIBRARY_PATH
12403
  case $host_vendor in
12404
    sni)
12405
      shlibpath_overrides_runpath=no
12406
      need_lib_prefix=no
12407
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12408
      runpath_var=LD_RUN_PATH
12409
      ;;
12410
    siemens)
12411
      need_lib_prefix=no
12412
      ;;
12413
    motorola)
12414
      need_lib_prefix=no
12415
      need_version=no
12416
      shlibpath_overrides_runpath=no
12417
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12418
      ;;
12419
  esac
12420
  ;;
12421
 
12422
sysv4*MP*)
12423
  if test -d /usr/nec ;then
12424
    version_type=linux
12425
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12426
    soname_spec='$libname${shared_ext}.$major'
12427
    shlibpath_var=LD_LIBRARY_PATH
12428
  fi
12429
  ;;
12430
 
12431
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12432
  version_type=freebsd-elf
12433
  need_lib_prefix=no
12434
  need_version=no
12435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12436
  soname_spec='${libname}${release}${shared_ext}$major'
12437
  shlibpath_var=LD_LIBRARY_PATH
12438
  hardcode_into_libs=yes
12439
  if test "$with_gnu_ld" = yes; then
12440
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12441
    shlibpath_overrides_runpath=no
12442
  else
12443
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12444
    shlibpath_overrides_runpath=yes
12445
    case $host_os in
12446
      sco3.2v5*)
12447
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12448
        ;;
12449
    esac
12450
  fi
12451
  sys_lib_dlsearch_path_spec='/usr/lib'
12452
  ;;
12453
 
12454
uts4*)
12455
  version_type=linux
12456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12457
  soname_spec='${libname}${release}${shared_ext}$major'
12458
  shlibpath_var=LD_LIBRARY_PATH
12459
  ;;
12460
 
12461
*)
12462
  dynamic_linker=no
12463
  ;;
12464
esac
12465
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12466
echo "${ECHO_T}$dynamic_linker" >&6; }
12467
test "$dynamic_linker" = no && can_build_shared=no
12468
 
12469
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12470
if test "$GCC" = yes; then
12471
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12472
fi
12473
 
12474
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12475
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12476
hardcode_action_CXX=
12477
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12478
   test -n "$runpath_var_CXX" || \
12479
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12480
 
12481
  # We can hardcode non-existant directories.
12482
  if test "$hardcode_direct_CXX" != no &&
12483
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12484
     # have to relink, otherwise we might link with an installed library
12485
     # when we should be linking with a yet-to-be-installed one
12486
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12487
     test "$hardcode_minus_L_CXX" != no; then
12488
    # Linking always hardcodes the temporary library directory.
12489
    hardcode_action_CXX=relink
12490
  else
12491
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12492
    hardcode_action_CXX=immediate
12493
  fi
12494
else
12495
  # We cannot hardcode anything, or else we can only hardcode existing
12496
  # directories.
12497
  hardcode_action_CXX=unsupported
12498
fi
12499
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12500
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12501
 
12502
if test "$hardcode_action_CXX" = relink; then
12503
  # Fast installation is not supported
12504
  enable_fast_install=no
12505
elif test "$shlibpath_overrides_runpath" = yes ||
12506
     test "$enable_shared" = no; then
12507
  # Fast installation is not necessary
12508
  enable_fast_install=needless
12509
fi
12510
 
12511
 
12512
# The else clause should only fire when bootstrapping the
12513
# libtool distribution, otherwise you forgot to ship ltmain.sh
12514
# with your package, and you will get complaints that there are
12515
# no rules to generate ltmain.sh.
12516
if test -f "$ltmain"; then
12517
  # See if we are running on zsh, and set the options which allow our commands through
12518
  # without removal of \ escapes.
12519
  if test -n "${ZSH_VERSION+set}" ; then
12520
    setopt NO_GLOB_SUBST
12521
  fi
12522
  # Now quote all the things that may contain metacharacters while being
12523
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12524
  # variables and quote the copies for generation of the libtool script.
12525
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12526
    SED SHELL STRIP \
12527
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12528
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12529
    deplibs_check_method reload_flag reload_cmds need_locks \
12530
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12531
    lt_cv_sys_global_symbol_to_c_name_address \
12532
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12533
    old_postinstall_cmds old_postuninstall_cmds \
12534
    compiler_CXX \
12535
    CC_CXX \
12536
    LD_CXX \
12537
    lt_prog_compiler_wl_CXX \
12538
    lt_prog_compiler_pic_CXX \
12539
    lt_prog_compiler_static_CXX \
12540
    lt_prog_compiler_no_builtin_flag_CXX \
12541
    export_dynamic_flag_spec_CXX \
12542
    thread_safe_flag_spec_CXX \
12543
    whole_archive_flag_spec_CXX \
12544
    enable_shared_with_static_runtimes_CXX \
12545
    old_archive_cmds_CXX \
12546
    old_archive_from_new_cmds_CXX \
12547
    predep_objects_CXX \
12548
    postdep_objects_CXX \
12549
    predeps_CXX \
12550
    postdeps_CXX \
12551
    compiler_lib_search_path_CXX \
12552
    archive_cmds_CXX \
12553
    archive_expsym_cmds_CXX \
12554
    postinstall_cmds_CXX \
12555
    postuninstall_cmds_CXX \
12556
    old_archive_from_expsyms_cmds_CXX \
12557
    allow_undefined_flag_CXX \
12558
    no_undefined_flag_CXX \
12559
    export_symbols_cmds_CXX \
12560
    hardcode_libdir_flag_spec_CXX \
12561
    hardcode_libdir_flag_spec_ld_CXX \
12562
    hardcode_libdir_separator_CXX \
12563
    hardcode_automatic_CXX \
12564
    module_cmds_CXX \
12565
    module_expsym_cmds_CXX \
12566
    lt_cv_prog_compiler_c_o_CXX \
12567
    fix_srcfile_path_CXX \
12568
    exclude_expsyms_CXX \
12569
    include_expsyms_CXX; do
12570
 
12571
    case $var in
12572
    old_archive_cmds_CXX | \
12573
    old_archive_from_new_cmds_CXX | \
12574
    archive_cmds_CXX | \
12575
    archive_expsym_cmds_CXX | \
12576
    module_cmds_CXX | \
12577
    module_expsym_cmds_CXX | \
12578
    old_archive_from_expsyms_cmds_CXX | \
12579
    export_symbols_cmds_CXX | \
12580
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12581
    postinstall_cmds | postuninstall_cmds | \
12582
    old_postinstall_cmds | old_postuninstall_cmds | \
12583
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12584
      # Double-quote double-evaled strings.
12585
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12586
      ;;
12587
    *)
12588
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12589
      ;;
12590
    esac
12591
  done
12592
 
12593
  case $lt_echo in
12594
  *'\$0 --fallback-echo"')
12595
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12596
    ;;
12597
  esac
12598
 
12599
cfgfile="$ofile"
12600
 
12601
  cat <<__EOF__ >> "$cfgfile"
12602
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12603
 
12604
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12605
 
12606
# Shell to use when invoking shell scripts.
12607
SHELL=$lt_SHELL
12608
 
12609
# Whether or not to build shared libraries.
12610
build_libtool_libs=$enable_shared
12611
 
12612
# Whether or not to build static libraries.
12613
build_old_libs=$enable_static
12614
 
12615
# Whether or not to add -lc for building shared libraries.
12616
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12617
 
12618
# Whether or not to disallow shared libs when runtime libs are static
12619
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12620
 
12621
# Whether or not to optimize for fast installation.
12622
fast_install=$enable_fast_install
12623
 
12624
# The host system.
12625
host_alias=$host_alias
12626
host=$host
12627
host_os=$host_os
12628
 
12629
# The build system.
12630
build_alias=$build_alias
12631
build=$build
12632
build_os=$build_os
12633
 
12634
# An echo program that does not interpret backslashes.
12635
echo=$lt_echo
12636
 
12637
# The archiver.
12638
AR=$lt_AR
12639
AR_FLAGS=$lt_AR_FLAGS
12640
 
12641
# A C compiler.
12642
LTCC=$lt_LTCC
12643
 
12644
# LTCC compiler flags.
12645
LTCFLAGS=$lt_LTCFLAGS
12646
 
12647
# A language-specific compiler.
12648
CC=$lt_compiler_CXX
12649
 
12650
# Is the compiler the GNU C compiler?
12651
with_gcc=$GCC_CXX
12652
 
12653
# An ERE matcher.
12654
EGREP=$lt_EGREP
12655
 
12656
# The linker used to build libraries.
12657
LD=$lt_LD_CXX
12658
 
12659
# Whether we need hard or soft links.
12660
LN_S=$lt_LN_S
12661
 
12662
# A BSD-compatible nm program.
12663
NM=$lt_NM
12664
 
12665
# A symbol stripping program
12666
STRIP=$lt_STRIP
12667
 
12668
# Used to examine libraries when file_magic_cmd begins "file"
12669
MAGIC_CMD=$MAGIC_CMD
12670
 
12671
# Used on cygwin: DLL creation program.
12672
DLLTOOL="$DLLTOOL"
12673
 
12674
# Used on cygwin: object dumper.
12675
OBJDUMP="$OBJDUMP"
12676
 
12677
# Used on cygwin: assembler.
12678
AS="$AS"
12679
 
12680
# The name of the directory that contains temporary libtool files.
12681
objdir=$objdir
12682
 
12683
# How to create reloadable object files.
12684
reload_flag=$lt_reload_flag
12685
reload_cmds=$lt_reload_cmds
12686
 
12687
# How to pass a linker flag through the compiler.
12688
wl=$lt_lt_prog_compiler_wl_CXX
12689
 
12690
# Object file suffix (normally "o").
12691
objext="$ac_objext"
12692
 
12693
# Old archive suffix (normally "a").
12694
libext="$libext"
12695
 
12696
# Shared library suffix (normally ".so").
12697
shrext_cmds='$shrext_cmds'
12698
 
12699
# Executable file suffix (normally "").
12700
exeext="$exeext"
12701
 
12702
# Additional compiler flags for building library objects.
12703
pic_flag=$lt_lt_prog_compiler_pic_CXX
12704
pic_mode=$pic_mode
12705
 
12706
# What is the maximum length of a command?
12707
max_cmd_len=$lt_cv_sys_max_cmd_len
12708
 
12709
# Does compiler simultaneously support -c and -o options?
12710
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12711
 
12712
# Must we lock files when doing compilation?
12713
need_locks=$lt_need_locks
12714
 
12715
# Do we need the lib prefix for modules?
12716
need_lib_prefix=$need_lib_prefix
12717
 
12718
# Do we need a version for libraries?
12719
need_version=$need_version
12720
 
12721
# Whether dlopen is supported.
12722
dlopen_support=$enable_dlopen
12723
 
12724
# Whether dlopen of programs is supported.
12725
dlopen_self=$enable_dlopen_self
12726
 
12727
# Whether dlopen of statically linked programs is supported.
12728
dlopen_self_static=$enable_dlopen_self_static
12729
 
12730
# Compiler flag to prevent dynamic linking.
12731
link_static_flag=$lt_lt_prog_compiler_static_CXX
12732
 
12733
# Compiler flag to turn off builtin functions.
12734
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12735
 
12736
# Compiler flag to allow reflexive dlopens.
12737
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12738
 
12739
# Compiler flag to generate shared objects directly from archives.
12740
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12741
 
12742
# Compiler flag to generate thread-safe objects.
12743
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12744
 
12745
# Library versioning type.
12746
version_type=$version_type
12747
 
12748
# Format of library name prefix.
12749
libname_spec=$lt_libname_spec
12750
 
12751
# List of archive names.  First name is the real one, the rest are links.
12752
# The last name is the one that the linker finds with -lNAME.
12753
library_names_spec=$lt_library_names_spec
12754
 
12755
# The coded name of the library, if different from the real name.
12756
soname_spec=$lt_soname_spec
12757
 
12758
# Commands used to build and install an old-style archive.
12759
RANLIB=$lt_RANLIB
12760
old_archive_cmds=$lt_old_archive_cmds_CXX
12761
old_postinstall_cmds=$lt_old_postinstall_cmds
12762
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12763
 
12764
# Create an old-style archive from a shared archive.
12765
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12766
 
12767
# Create a temporary old-style archive to link instead of a shared archive.
12768
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12769
 
12770
# Commands used to build and install a shared archive.
12771
archive_cmds=$lt_archive_cmds_CXX
12772
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12773
postinstall_cmds=$lt_postinstall_cmds
12774
postuninstall_cmds=$lt_postuninstall_cmds
12775
 
12776
# Commands used to build a loadable module (assumed same as above if empty)
12777
module_cmds=$lt_module_cmds_CXX
12778
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12779
 
12780
# Commands to strip libraries.
12781
old_striplib=$lt_old_striplib
12782
striplib=$lt_striplib
12783
 
12784
# Dependencies to place before the objects being linked to create a
12785
# shared library.
12786
predep_objects=$lt_predep_objects_CXX
12787
 
12788
# Dependencies to place after the objects being linked to create a
12789
# shared library.
12790
postdep_objects=$lt_postdep_objects_CXX
12791
 
12792
# Dependencies to place before the objects being linked to create a
12793
# shared library.
12794
predeps=$lt_predeps_CXX
12795
 
12796
# Dependencies to place after the objects being linked to create a
12797
# shared library.
12798
postdeps=$lt_postdeps_CXX
12799
 
12800
# The library search path used internally by the compiler when linking
12801
# a shared library.
12802
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12803
 
12804
# Method to check whether dependent libraries are shared objects.
12805
deplibs_check_method=$lt_deplibs_check_method
12806
 
12807
# Command to use when deplibs_check_method == file_magic.
12808
file_magic_cmd=$lt_file_magic_cmd
12809
 
12810
# Flag that allows shared libraries with undefined symbols to be built.
12811
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12812
 
12813
# Flag that forces no undefined symbols.
12814
no_undefined_flag=$lt_no_undefined_flag_CXX
12815
 
12816
# Commands used to finish a libtool library installation in a directory.
12817
finish_cmds=$lt_finish_cmds
12818
 
12819
# Same as above, but a single script fragment to be evaled but not shown.
12820
finish_eval=$lt_finish_eval
12821
 
12822
# Take the output of nm and produce a listing of raw symbols and C names.
12823
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12824
 
12825
# Transform the output of nm in a proper C declaration
12826
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12827
 
12828
# Transform the output of nm in a C name address pair
12829
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12830
 
12831
# This is the shared library runtime path variable.
12832
runpath_var=$runpath_var
12833
 
12834
# This is the shared library path variable.
12835
shlibpath_var=$shlibpath_var
12836
 
12837
# Is shlibpath searched before the hard-coded library search path?
12838
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12839
 
12840
# How to hardcode a shared library path into an executable.
12841
hardcode_action=$hardcode_action_CXX
12842
 
12843
# Whether we should hardcode library paths into libraries.
12844
hardcode_into_libs=$hardcode_into_libs
12845
 
12846
# Flag to hardcode \$libdir into a binary during linking.
12847
# This must work even if \$libdir does not exist.
12848
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12849
 
12850
# If ld is used when linking, flag to hardcode \$libdir into
12851
# a binary during linking. This must work even if \$libdir does
12852
# not exist.
12853
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12854
 
12855
# Whether we need a single -rpath flag with a separated argument.
12856
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12857
 
12858
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12859
# resulting binary.
12860
hardcode_direct=$hardcode_direct_CXX
12861
 
12862
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12863
# resulting binary.
12864
hardcode_minus_L=$hardcode_minus_L_CXX
12865
 
12866
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12867
# the resulting binary.
12868
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12869
 
12870
# Set to yes if building a shared library automatically hardcodes DIR into the library
12871
# and all subsequent libraries and executables linked against it.
12872
hardcode_automatic=$hardcode_automatic_CXX
12873
 
12874
# Variables whose values should be saved in libtool wrapper scripts and
12875
# restored at relink time.
12876
variables_saved_for_relink="$variables_saved_for_relink"
12877
 
12878
# Whether libtool must link a program against all its dependency libraries.
12879
link_all_deplibs=$link_all_deplibs_CXX
12880
 
12881
# Compile-time system search path for libraries
12882
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12883
 
12884
# Run-time system search path for libraries
12885
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12886
 
12887
# Fix the shell variable \$srcfile for the compiler.
12888
fix_srcfile_path=$lt_fix_srcfile_path
12889
 
12890
# Set to yes if exported symbols are required.
12891
always_export_symbols=$always_export_symbols_CXX
12892
 
12893
# The commands to list exported symbols.
12894
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12895
 
12896
# The commands to extract the exported symbol list from a shared archive.
12897
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12898
 
12899
# Symbols that should not be listed in the preloaded symbols.
12900
exclude_expsyms=$lt_exclude_expsyms_CXX
12901
 
12902
# Symbols that must always be exported.
12903
include_expsyms=$lt_include_expsyms_CXX
12904
 
12905
# ### END LIBTOOL TAG CONFIG: $tagname
12906
 
12907
__EOF__
12908
 
12909
 
12910
else
12911
  # If there is no Makefile yet, we rely on a make rule to execute
12912
  # `config.status --recheck' to rerun these tests and create the
12913
  # libtool script then.
12914
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12915
  if test -f "$ltmain_in"; then
12916
    test -f Makefile && make "$ltmain"
12917
  fi
12918
fi
12919
 
12920
 
12921
ac_ext=c
12922
ac_cpp='$CPP $CPPFLAGS'
12923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12926
 
12927
CC=$lt_save_CC
12928
LDCXX=$LD
12929
LD=$lt_save_LD
12930
GCC=$lt_save_GCC
12931
with_gnu_ldcxx=$with_gnu_ld
12932
with_gnu_ld=$lt_save_with_gnu_ld
12933
lt_cv_path_LDCXX=$lt_cv_path_LD
12934
lt_cv_path_LD=$lt_save_path_LD
12935
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12936
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12937
 
12938
        else
12939
          tagname=""
12940
        fi
12941
        ;;
12942
 
12943
      F77)
12944
        if test -n "$F77" && test "X$F77" != "Xno"; then
12945
 
12946
ac_ext=f
12947
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12948
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12949
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12950
 
12951
 
12952
archive_cmds_need_lc_F77=no
12953
allow_undefined_flag_F77=
12954
always_export_symbols_F77=no
12955
archive_expsym_cmds_F77=
12956
export_dynamic_flag_spec_F77=
12957
hardcode_direct_F77=no
12958
hardcode_libdir_flag_spec_F77=
12959
hardcode_libdir_flag_spec_ld_F77=
12960
hardcode_libdir_separator_F77=
12961
hardcode_minus_L_F77=no
12962
hardcode_automatic_F77=no
12963
module_cmds_F77=
12964
module_expsym_cmds_F77=
12965
link_all_deplibs_F77=unknown
12966
old_archive_cmds_F77=$old_archive_cmds
12967
no_undefined_flag_F77=
12968
whole_archive_flag_spec_F77=
12969
enable_shared_with_static_runtimes_F77=no
12970
 
12971
# Source file extension for f77 test sources.
12972
ac_ext=f
12973
 
12974
# Object file extension for compiled f77 test sources.
12975
objext=o
12976
objext_F77=$objext
12977
 
12978
# Code to be used in simple compile tests
12979
lt_simple_compile_test_code="\
12980
      subroutine t
12981
      return
12982
      end
12983
"
12984
 
12985
# Code to be used in simple link tests
12986
lt_simple_link_test_code="\
12987
      program t
12988
      end
12989
"
12990
 
12991
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12992
 
12993
# If no C compiler was specified, use CC.
12994
LTCC=${LTCC-"$CC"}
12995
 
12996
# If no C compiler flags were specified, use CFLAGS.
12997
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12998
 
12999
# Allow CC to be a program name with arguments.
13000
compiler=$CC
13001
 
13002
 
13003
# save warnings/boilerplate of simple test code
13004
ac_outfile=conftest.$ac_objext
13005
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007
_lt_compiler_boilerplate=`cat conftest.err`
13008
$rm conftest*
13009
 
13010
ac_outfile=conftest.$ac_objext
13011
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013
_lt_linker_boilerplate=`cat conftest.err`
13014
$rm conftest*
13015
 
13016
 
13017
# Allow CC to be a program name with arguments.
13018
lt_save_CC="$CC"
13019
CC=${F77-"f77"}
13020
compiler=$CC
13021
compiler_F77=$CC
13022
for cc_temp in $compiler""; do
13023
  case $cc_temp in
13024
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13025
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13026
    \-*) ;;
13027
    *) break;;
13028
  esac
13029
done
13030
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13031
 
13032
 
13033
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13034
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13035
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13036
echo "${ECHO_T}$can_build_shared" >&6; }
13037
 
13038
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13039
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13040
test "$can_build_shared" = "no" && enable_shared=no
13041
 
13042
# On AIX, shared libraries and static libraries use the same namespace, and
13043
# are all built from PIC.
13044
case $host_os in
13045
aix3*)
13046
  test "$enable_shared" = yes && enable_static=no
13047
  if test -n "$RANLIB"; then
13048
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13049
    postinstall_cmds='$RANLIB $lib'
13050
  fi
13051
  ;;
13052
aix4* | aix5*)
13053
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13054
    test "$enable_shared" = yes && enable_static=no
13055
  fi
13056
  ;;
13057
esac
13058
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13059
echo "${ECHO_T}$enable_shared" >&6; }
13060
 
13061
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13062
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13063
# Make sure either enable_shared or enable_static is yes.
13064
test "$enable_shared" = yes || enable_static=yes
13065
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13066
echo "${ECHO_T}$enable_static" >&6; }
13067
 
13068
GCC_F77="$G77"
13069
LD_F77="$LD"
13070
 
13071
lt_prog_compiler_wl_F77=
13072
lt_prog_compiler_pic_F77=
13073
lt_prog_compiler_static_F77=
13074
 
13075
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13076
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13077
 
13078
  if test "$GCC" = yes; then
13079
    lt_prog_compiler_wl_F77='-Wl,'
13080
    lt_prog_compiler_static_F77='-static'
13081
 
13082
    case $host_os in
13083
      aix*)
13084
      # All AIX code is PIC.
13085
      if test "$host_cpu" = ia64; then
13086
        # AIX 5 now supports IA64 processor
13087
        lt_prog_compiler_static_F77='-Bstatic'
13088
      fi
13089
      ;;
13090
 
13091
    amigaos*)
13092
      # FIXME: we need at least 68020 code to build shared libraries, but
13093
      # adding the `-m68020' flag to GCC prevents building anything better,
13094
      # like `-m68040'.
13095
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13096
      ;;
13097
 
13098
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13099
      # PIC is the default for these OSes.
13100
      ;;
13101
 
13102
    mingw* | cygwin* | pw32* | os2*)
13103
      # This hack is so that the source file can tell whether it is being
13104
      # built for inclusion in a dll (and should export symbols for example).
13105
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13106
      # (--disable-auto-import) libraries
13107
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13108
      ;;
13109
 
13110
    darwin* | rhapsody*)
13111
      # PIC is the default on this platform
13112
      # Common symbols not allowed in MH_DYLIB files
13113
      lt_prog_compiler_pic_F77='-fno-common'
13114
      ;;
13115
 
13116
    interix[3-9]*)
13117
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13118
      # Instead, we relocate shared libraries at runtime.
13119
      ;;
13120
 
13121
    msdosdjgpp*)
13122
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13123
      # on systems that don't support them.
13124
      lt_prog_compiler_can_build_shared_F77=no
13125
      enable_shared=no
13126
      ;;
13127
 
13128
    sysv4*MP*)
13129
      if test -d /usr/nec; then
13130
        lt_prog_compiler_pic_F77=-Kconform_pic
13131
      fi
13132
      ;;
13133
 
13134
    hpux*)
13135
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13136
      # not for PA HP-UX.
13137
      case $host_cpu in
13138
      hppa*64*|ia64*)
13139
        # +Z the default
13140
        ;;
13141
      *)
13142
        lt_prog_compiler_pic_F77='-fPIC'
13143
        ;;
13144
      esac
13145
      ;;
13146
 
13147
    *)
13148
      lt_prog_compiler_pic_F77='-fPIC'
13149
      ;;
13150
    esac
13151
  else
13152
    # PORTME Check for flag to pass linker flags through the system compiler.
13153
    case $host_os in
13154
    aix*)
13155
      lt_prog_compiler_wl_F77='-Wl,'
13156
      if test "$host_cpu" = ia64; then
13157
        # AIX 5 now supports IA64 processor
13158
        lt_prog_compiler_static_F77='-Bstatic'
13159
      else
13160
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13161
      fi
13162
      ;;
13163
      darwin*)
13164
        # PIC is the default on this platform
13165
        # Common symbols not allowed in MH_DYLIB files
13166
       case $cc_basename in
13167
         xlc*)
13168
         lt_prog_compiler_pic_F77='-qnocommon'
13169
         lt_prog_compiler_wl_F77='-Wl,'
13170
         ;;
13171
       esac
13172
       ;;
13173
 
13174
    mingw* | cygwin* | pw32* | os2*)
13175
      # This hack is so that the source file can tell whether it is being
13176
      # built for inclusion in a dll (and should export symbols for example).
13177
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13178
      ;;
13179
 
13180
    hpux9* | hpux10* | hpux11*)
13181
      lt_prog_compiler_wl_F77='-Wl,'
13182
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13183
      # not for PA HP-UX.
13184
      case $host_cpu in
13185
      hppa*64*|ia64*)
13186
        # +Z the default
13187
        ;;
13188
      *)
13189
        lt_prog_compiler_pic_F77='+Z'
13190
        ;;
13191
      esac
13192
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13193
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13194
      ;;
13195
 
13196
    irix5* | irix6* | nonstopux*)
13197
      lt_prog_compiler_wl_F77='-Wl,'
13198
      # PIC (with -KPIC) is the default.
13199
      lt_prog_compiler_static_F77='-non_shared'
13200
      ;;
13201
 
13202
    newsos6)
13203
      lt_prog_compiler_pic_F77='-KPIC'
13204
      lt_prog_compiler_static_F77='-Bstatic'
13205
      ;;
13206
 
13207
    linux* | k*bsd*-gnu)
13208
      case $cc_basename in
13209
      icc* | ecc*)
13210
        lt_prog_compiler_wl_F77='-Wl,'
13211
        lt_prog_compiler_pic_F77='-KPIC'
13212
        lt_prog_compiler_static_F77='-static'
13213
        ;;
13214
      pgcc* | pgf77* | pgf90* | pgf95*)
13215
        # Portland Group compilers (*not* the Pentium gcc compiler,
13216
        # which looks to be a dead project)
13217
        lt_prog_compiler_wl_F77='-Wl,'
13218
        lt_prog_compiler_pic_F77='-fpic'
13219
        lt_prog_compiler_static_F77='-Bstatic'
13220
        ;;
13221
      ccc*)
13222
        lt_prog_compiler_wl_F77='-Wl,'
13223
        # All Alpha code is PIC.
13224
        lt_prog_compiler_static_F77='-non_shared'
13225
        ;;
13226
      *)
13227
        case `$CC -V 2>&1 | sed 5q` in
13228
        *Sun\ C*)
13229
          # Sun C 5.9
13230
          lt_prog_compiler_pic_F77='-KPIC'
13231
          lt_prog_compiler_static_F77='-Bstatic'
13232
          lt_prog_compiler_wl_F77='-Wl,'
13233
          ;;
13234
        *Sun\ F*)
13235
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
13236
          lt_prog_compiler_pic_F77='-KPIC'
13237
          lt_prog_compiler_static_F77='-Bstatic'
13238
          lt_prog_compiler_wl_F77=''
13239
          ;;
13240
        esac
13241
        ;;
13242
      esac
13243
      ;;
13244
 
13245
    osf3* | osf4* | osf5*)
13246
      lt_prog_compiler_wl_F77='-Wl,'
13247
      # All OSF/1 code is PIC.
13248
      lt_prog_compiler_static_F77='-non_shared'
13249
      ;;
13250
 
13251
    rdos*)
13252
      lt_prog_compiler_static_F77='-non_shared'
13253
      ;;
13254
 
13255
    solaris*)
13256
      lt_prog_compiler_pic_F77='-KPIC'
13257
      lt_prog_compiler_static_F77='-Bstatic'
13258
      case $cc_basename in
13259
      f77* | f90* | f95*)
13260
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13261
      *)
13262
        lt_prog_compiler_wl_F77='-Wl,';;
13263
      esac
13264
      ;;
13265
 
13266
    sunos4*)
13267
      lt_prog_compiler_wl_F77='-Qoption ld '
13268
      lt_prog_compiler_pic_F77='-PIC'
13269
      lt_prog_compiler_static_F77='-Bstatic'
13270
      ;;
13271
 
13272
    sysv4 | sysv4.2uw2* | sysv4.3*)
13273
      lt_prog_compiler_wl_F77='-Wl,'
13274
      lt_prog_compiler_pic_F77='-KPIC'
13275
      lt_prog_compiler_static_F77='-Bstatic'
13276
      ;;
13277
 
13278
    sysv4*MP*)
13279
      if test -d /usr/nec ;then
13280
        lt_prog_compiler_pic_F77='-Kconform_pic'
13281
        lt_prog_compiler_static_F77='-Bstatic'
13282
      fi
13283
      ;;
13284
 
13285
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13286
      lt_prog_compiler_wl_F77='-Wl,'
13287
      lt_prog_compiler_pic_F77='-KPIC'
13288
      lt_prog_compiler_static_F77='-Bstatic'
13289
      ;;
13290
 
13291
    unicos*)
13292
      lt_prog_compiler_wl_F77='-Wl,'
13293
      lt_prog_compiler_can_build_shared_F77=no
13294
      ;;
13295
 
13296
    uts4*)
13297
      lt_prog_compiler_pic_F77='-pic'
13298
      lt_prog_compiler_static_F77='-Bstatic'
13299
      ;;
13300
 
13301
    *)
13302
      lt_prog_compiler_can_build_shared_F77=no
13303
      ;;
13304
    esac
13305
  fi
13306
 
13307
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13308
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13309
 
13310
#
13311
# Check to make sure the PIC flag actually works.
13312
#
13313
if test -n "$lt_prog_compiler_pic_F77"; then
13314
 
13315
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13316
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13317
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13318
  echo $ECHO_N "(cached) $ECHO_C" >&6
13319
else
13320
  lt_prog_compiler_pic_works_F77=no
13321
  ac_outfile=conftest.$ac_objext
13322
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13323
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13324
   # Insert the option either (1) after the last *FLAGS variable, or
13325
   # (2) before a word containing "conftest.", or (3) at the end.
13326
   # Note that $ac_compile itself does not contain backslashes and begins
13327
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13328
   # The option is referenced via a variable to avoid confusing sed.
13329
   lt_compile=`echo "$ac_compile" | $SED \
13330
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13331
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13332
   -e 's:$: $lt_compiler_flag:'`
13333
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13334
   (eval "$lt_compile" 2>conftest.err)
13335
   ac_status=$?
13336
   cat conftest.err >&5
13337
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13338
   if (exit $ac_status) && test -s "$ac_outfile"; then
13339
     # The compiler can only warn and ignore the option if not recognized
13340
     # So say no if there are warnings other than the usual output.
13341
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13342
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13343
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13344
       lt_prog_compiler_pic_works_F77=yes
13345
     fi
13346
   fi
13347
   $rm conftest*
13348
 
13349
fi
13350
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13351
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13352
 
13353
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13354
    case $lt_prog_compiler_pic_F77 in
13355
     "" | " "*) ;;
13356
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13357
     esac
13358
else
13359
    lt_prog_compiler_pic_F77=
13360
     lt_prog_compiler_can_build_shared_F77=no
13361
fi
13362
 
13363
fi
13364
case $host_os in
13365
  # For platforms which do not support PIC, -DPIC is meaningless:
13366
  *djgpp*)
13367
    lt_prog_compiler_pic_F77=
13368
    ;;
13369
  *)
13370
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13371
    ;;
13372
esac
13373
 
13374
#
13375
# Check to make sure the static flag actually works.
13376
#
13377
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13378
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13379
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13380
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13381
  echo $ECHO_N "(cached) $ECHO_C" >&6
13382
else
13383
  lt_prog_compiler_static_works_F77=no
13384
   save_LDFLAGS="$LDFLAGS"
13385
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13386
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13387
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13388
     # The linker can only warn and ignore the option if not recognized
13389
     # So say no if there are warnings
13390
     if test -s conftest.err; then
13391
       # Append any errors to the config.log.
13392
       cat conftest.err 1>&5
13393
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13394
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13395
       if diff conftest.exp conftest.er2 >/dev/null; then
13396
         lt_prog_compiler_static_works_F77=yes
13397
       fi
13398
     else
13399
       lt_prog_compiler_static_works_F77=yes
13400
     fi
13401
   fi
13402
   $rm conftest*
13403
   LDFLAGS="$save_LDFLAGS"
13404
 
13405
fi
13406
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13407
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13408
 
13409
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13410
    :
13411
else
13412
    lt_prog_compiler_static_F77=
13413
fi
13414
 
13415
 
13416
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13417
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13418
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13419
  echo $ECHO_N "(cached) $ECHO_C" >&6
13420
else
13421
  lt_cv_prog_compiler_c_o_F77=no
13422
   $rm -r conftest 2>/dev/null
13423
   mkdir conftest
13424
   cd conftest
13425
   mkdir out
13426
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13427
 
13428
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13429
   # Insert the option either (1) after the last *FLAGS variable, or
13430
   # (2) before a word containing "conftest.", or (3) at the end.
13431
   # Note that $ac_compile itself does not contain backslashes and begins
13432
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13433
   lt_compile=`echo "$ac_compile" | $SED \
13434
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436
   -e 's:$: $lt_compiler_flag:'`
13437
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13438
   (eval "$lt_compile" 2>out/conftest.err)
13439
   ac_status=$?
13440
   cat out/conftest.err >&5
13441
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13442
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13443
   then
13444
     # The compiler can only warn and ignore the option if not recognized
13445
     # So say no if there are warnings
13446
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13447
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13448
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13449
       lt_cv_prog_compiler_c_o_F77=yes
13450
     fi
13451
   fi
13452
   chmod u+w . 2>&5
13453
   $rm conftest*
13454
   # SGI C++ compiler will create directory out/ii_files/ for
13455
   # template instantiation
13456
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13457
   $rm out/* && rmdir out
13458
   cd ..
13459
   rmdir conftest
13460
   $rm conftest*
13461
 
13462
fi
13463
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13464
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13465
 
13466
 
13467
hard_links="nottested"
13468
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13469
  # do not overwrite the value of need_locks provided by the user
13470
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13471
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13472
  hard_links=yes
13473
  $rm conftest*
13474
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13475
  touch conftest.a
13476
  ln conftest.a conftest.b 2>&5 || hard_links=no
13477
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13478
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13479
echo "${ECHO_T}$hard_links" >&6; }
13480
  if test "$hard_links" = no; then
13481
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13482
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13483
    need_locks=warn
13484
  fi
13485
else
13486
  need_locks=no
13487
fi
13488
 
13489
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13490
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13491
 
13492
  runpath_var=
13493
  allow_undefined_flag_F77=
13494
  enable_shared_with_static_runtimes_F77=no
13495
  archive_cmds_F77=
13496
  archive_expsym_cmds_F77=
13497
  old_archive_From_new_cmds_F77=
13498
  old_archive_from_expsyms_cmds_F77=
13499
  export_dynamic_flag_spec_F77=
13500
  whole_archive_flag_spec_F77=
13501
  thread_safe_flag_spec_F77=
13502
  hardcode_libdir_flag_spec_F77=
13503
  hardcode_libdir_flag_spec_ld_F77=
13504
  hardcode_libdir_separator_F77=
13505
  hardcode_direct_F77=no
13506
  hardcode_minus_L_F77=no
13507
  hardcode_shlibpath_var_F77=unsupported
13508
  link_all_deplibs_F77=unknown
13509
  hardcode_automatic_F77=no
13510
  module_cmds_F77=
13511
  module_expsym_cmds_F77=
13512
  always_export_symbols_F77=no
13513
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13514
  # include_expsyms should be a list of space-separated symbols to be *always*
13515
  # included in the symbol list
13516
  include_expsyms_F77=
13517
  # exclude_expsyms can be an extended regexp of symbols to exclude
13518
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13519
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13520
  # as well as any symbol that contains `d'.
13521
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13522
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13523
  # platforms (ab)use it in PIC code, but their linkers get confused if
13524
  # the symbol is explicitly referenced.  Since portable code cannot
13525
  # rely on this symbol name, it's probably fine to never include it in
13526
  # preloaded symbol tables.
13527
  extract_expsyms_cmds=
13528
  # Just being paranoid about ensuring that cc_basename is set.
13529
  for cc_temp in $compiler""; do
13530
  case $cc_temp in
13531
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13532
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13533
    \-*) ;;
13534
    *) break;;
13535
  esac
13536
done
13537
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13538
 
13539
  case $host_os in
13540
  cygwin* | mingw* | pw32*)
13541
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13542
    # When not using gcc, we currently assume that we are using
13543
    # Microsoft Visual C++.
13544
    if test "$GCC" != yes; then
13545
      with_gnu_ld=no
13546
    fi
13547
    ;;
13548
  interix*)
13549
    # we just hope/assume this is gcc and not c89 (= MSVC++)
13550
    with_gnu_ld=yes
13551
    ;;
13552
  openbsd*)
13553
    with_gnu_ld=no
13554
    ;;
13555
  esac
13556
 
13557
  ld_shlibs_F77=yes
13558
  if test "$with_gnu_ld" = yes; then
13559
    # If archive_cmds runs LD, not CC, wlarc should be empty
13560
    wlarc='${wl}'
13561
 
13562
    # Set some defaults for GNU ld with shared library support. These
13563
    # are reset later if shared libraries are not supported. Putting them
13564
    # here allows them to be overridden if necessary.
13565
    runpath_var=LD_RUN_PATH
13566
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13567
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13568
    # ancient GNU ld didn't support --whole-archive et. al.
13569
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13570
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13571
      else
13572
        whole_archive_flag_spec_F77=
13573
    fi
13574
    supports_anon_versioning=no
13575
    case `$LD -v 2>/dev/null` in
13576
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13577
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13578
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13579
      *\ 2.11.*) ;; # other 2.11 versions
13580
      *) supports_anon_versioning=yes ;;
13581
    esac
13582
 
13583
    # See if GNU ld supports shared libraries.
13584
    case $host_os in
13585
    aix3* | aix4* | aix5*)
13586
      # On AIX/PPC, the GNU linker is very broken
13587
      if test "$host_cpu" != ia64; then
13588
        ld_shlibs_F77=no
13589
        cat <&2
13590
 
13591
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13592
*** to be unable to reliably create shared libraries on AIX.
13593
*** Therefore, libtool is disabling shared libraries support.  If you
13594
*** really care for shared libraries, you may want to modify your PATH
13595
*** so that a non-GNU linker is found, and then restart.
13596
 
13597
EOF
13598
      fi
13599
      ;;
13600
 
13601
    amigaos*)
13602
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13603
      hardcode_libdir_flag_spec_F77='-L$libdir'
13604
      hardcode_minus_L_F77=yes
13605
 
13606
      # Samuel A. Falvo II  reports
13607
      # that the semantics of dynamic libraries on AmigaOS, at least up
13608
      # to version 4, is to share data among multiple programs linked
13609
      # with the same dynamic library.  Since this doesn't match the
13610
      # behavior of shared libraries on other platforms, we can't use
13611
      # them.
13612
      ld_shlibs_F77=no
13613
      ;;
13614
 
13615
    beos*)
13616
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617
        allow_undefined_flag_F77=unsupported
13618
        # Joseph Beckenbach  says some releases of gcc
13619
        # support --undefined.  This deserves some investigation.  FIXME
13620
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13621
      else
13622
        ld_shlibs_F77=no
13623
      fi
13624
      ;;
13625
 
13626
    cygwin* | mingw* | pw32*)
13627
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13628
      # as there is no search path for DLLs.
13629
      hardcode_libdir_flag_spec_F77='-L$libdir'
13630
      allow_undefined_flag_F77=unsupported
13631
      always_export_symbols_F77=no
13632
      enable_shared_with_static_runtimes_F77=yes
13633
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13634
 
13635
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13636
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13637
        # If the export-symbols file already is a .def file (1st line
13638
        # is EXPORTS), use it as is; otherwise, prepend...
13639
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13640
          cp $export_symbols $output_objdir/$soname.def;
13641
        else
13642
          echo EXPORTS > $output_objdir/$soname.def;
13643
          cat $export_symbols >> $output_objdir/$soname.def;
13644
        fi~
13645
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13646
      else
13647
        ld_shlibs_F77=no
13648
      fi
13649
      ;;
13650
 
13651
    interix[3-9]*)
13652
      hardcode_direct_F77=no
13653
      hardcode_shlibpath_var_F77=no
13654
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13655
      export_dynamic_flag_spec_F77='${wl}-E'
13656
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13657
      # Instead, shared libraries are loaded at an image base (0x10000000 by
13658
      # default) and relocated if they conflict, which is a slow very memory
13659
      # consuming and fragmenting process.  To avoid this, we pick a random,
13660
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13661
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13662
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13663
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13664
      ;;
13665
 
13666
    gnu* | linux* | k*bsd*-gnu)
13667
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13668
        tmp_addflag=
13669
        case $cc_basename,$host_cpu in
13670
        pgcc*)                          # Portland Group C compiler
13671
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13672
          tmp_addflag=' $pic_flag'
13673
          ;;
13674
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13675
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13676
          tmp_addflag=' $pic_flag -Mnomain' ;;
13677
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13678
          tmp_addflag=' -i_dynamic' ;;
13679
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13680
          tmp_addflag=' -i_dynamic -nofor_main' ;;
13681
        ifc* | ifort*)                  # Intel Fortran compiler
13682
          tmp_addflag=' -nofor_main' ;;
13683
        esac
13684
        case `$CC -V 2>&1 | sed 5q` in
13685
        *Sun\ C*)                       # Sun C 5.9
13686
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13687
          tmp_sharedflag='-G' ;;
13688
        *Sun\ F*)                       # Sun Fortran 8.3
13689
          tmp_sharedflag='-G' ;;
13690
        *)
13691
          tmp_sharedflag='-shared' ;;
13692
        esac
13693
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13694
 
13695
        if test $supports_anon_versioning = yes; then
13696
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13697
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13698
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13699
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13700
        fi
13701
      else
13702
        ld_shlibs_F77=no
13703
      fi
13704
      ;;
13705
 
13706
    netbsd*)
13707
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13708
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13709
        wlarc=
13710
      else
13711
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13712
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13713
      fi
13714
      ;;
13715
 
13716
    solaris*)
13717
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13718
        ld_shlibs_F77=no
13719
        cat <&2
13720
 
13721
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13722
*** create shared libraries on Solaris systems.  Therefore, libtool
13723
*** is disabling shared libraries support.  We urge you to upgrade GNU
13724
*** binutils to release 2.9.1 or newer.  Another option is to modify
13725
*** your PATH or compiler configuration so that the native linker is
13726
*** used, and then restart.
13727
 
13728
EOF
13729
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13730
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13731
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13732
      else
13733
        ld_shlibs_F77=no
13734
      fi
13735
      ;;
13736
 
13737
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13738
      case `$LD -v 2>&1` in
13739
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13740
        ld_shlibs_F77=no
13741
        cat <<_LT_EOF 1>&2
13742
 
13743
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13744
*** reliably create shared libraries on SCO systems.  Therefore, libtool
13745
*** is disabling shared libraries support.  We urge you to upgrade GNU
13746
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13747
*** your PATH or compiler configuration so that the native linker is
13748
*** used, and then restart.
13749
 
13750
_LT_EOF
13751
        ;;
13752
        *)
13753
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13754
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13755
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13756
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13757
          else
13758
            ld_shlibs_F77=no
13759
          fi
13760
        ;;
13761
      esac
13762
      ;;
13763
 
13764
    sunos4*)
13765
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13766
      wlarc=
13767
      hardcode_direct_F77=yes
13768
      hardcode_shlibpath_var_F77=no
13769
      ;;
13770
 
13771
    *)
13772
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13773
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13774
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13775
      else
13776
        ld_shlibs_F77=no
13777
      fi
13778
      ;;
13779
    esac
13780
 
13781
    if test "$ld_shlibs_F77" = no; then
13782
      runpath_var=
13783
      hardcode_libdir_flag_spec_F77=
13784
      export_dynamic_flag_spec_F77=
13785
      whole_archive_flag_spec_F77=
13786
    fi
13787
  else
13788
    # PORTME fill in a description of your system's linker (not GNU ld)
13789
    case $host_os in
13790
    aix3*)
13791
      allow_undefined_flag_F77=unsupported
13792
      always_export_symbols_F77=yes
13793
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13794
      # Note: this linker hardcodes the directories in LIBPATH if there
13795
      # are no directories specified by -L.
13796
      hardcode_minus_L_F77=yes
13797
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13798
        # Neither direct hardcoding nor static linking is supported with a
13799
        # broken collect2.
13800
        hardcode_direct_F77=unsupported
13801
      fi
13802
      ;;
13803
 
13804
    aix4* | aix5*)
13805
      if test "$host_cpu" = ia64; then
13806
        # On IA64, the linker does run time linking by default, so we don't
13807
        # have to do anything special.
13808
        aix_use_runtimelinking=no
13809
        exp_sym_flag='-Bexport'
13810
        no_entry_flag=""
13811
      else
13812
        # If we're using GNU nm, then we don't want the "-C" option.
13813
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13814
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13815
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13816
        else
13817
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13818
        fi
13819
        aix_use_runtimelinking=no
13820
 
13821
        # Test if we are trying to use run time linking or normal
13822
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13823
        # need to do runtime linking.
13824
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13825
          for ld_flag in $LDFLAGS; do
13826
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13827
            aix_use_runtimelinking=yes
13828
            break
13829
          fi
13830
          done
13831
          ;;
13832
        esac
13833
 
13834
        exp_sym_flag='-bexport'
13835
        no_entry_flag='-bnoentry'
13836
      fi
13837
 
13838
      # When large executables or shared objects are built, AIX ld can
13839
      # have problems creating the table of contents.  If linking a library
13840
      # or program results in "error TOC overflow" add -mminimal-toc to
13841
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13842
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13843
 
13844
      archive_cmds_F77=''
13845
      hardcode_direct_F77=yes
13846
      hardcode_libdir_separator_F77=':'
13847
      link_all_deplibs_F77=yes
13848
 
13849
      if test "$GCC" = yes; then
13850
        case $host_os in aix4.[012]|aix4.[012].*)
13851
        # We only want to do this on AIX 4.2 and lower, the check
13852
        # below for broken collect2 doesn't work under 4.3+
13853
          collect2name=`${CC} -print-prog-name=collect2`
13854
          if test -f "$collect2name" && \
13855
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13856
          then
13857
          # We have reworked collect2
13858
          :
13859
          else
13860
          # We have old collect2
13861
          hardcode_direct_F77=unsupported
13862
          # It fails to find uninstalled libraries when the uninstalled
13863
          # path is not listed in the libpath.  Setting hardcode_minus_L
13864
          # to unsupported forces relinking
13865
          hardcode_minus_L_F77=yes
13866
          hardcode_libdir_flag_spec_F77='-L$libdir'
13867
          hardcode_libdir_separator_F77=
13868
          fi
13869
          ;;
13870
        esac
13871
        shared_flag='-shared'
13872
        if test "$aix_use_runtimelinking" = yes; then
13873
          shared_flag="$shared_flag "'${wl}-G'
13874
        fi
13875
      else
13876
        # not using gcc
13877
        if test "$host_cpu" = ia64; then
13878
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13879
        # chokes on -Wl,-G. The following line is correct:
13880
          shared_flag='-G'
13881
        else
13882
          if test "$aix_use_runtimelinking" = yes; then
13883
            shared_flag='${wl}-G'
13884
          else
13885
            shared_flag='${wl}-bM:SRE'
13886
          fi
13887
        fi
13888
      fi
13889
 
13890
      # It seems that -bexpall does not export symbols beginning with
13891
      # underscore (_), so it is better to generate a list of symbols to export.
13892
      always_export_symbols_F77=yes
13893
      if test "$aix_use_runtimelinking" = yes; then
13894
        # Warning - without using the other runtime loading flags (-brtl),
13895
        # -berok will link without error, but may produce a broken library.
13896
        allow_undefined_flag_F77='-berok'
13897
       # Determine the default libpath from the value encoded in an empty executable.
13898
       cat >conftest.$ac_ext <<_ACEOF
13899
      program main
13900
 
13901
      end
13902
_ACEOF
13903
rm -f conftest.$ac_objext conftest$ac_exeext
13904
if { (ac_try="$ac_link"
13905
case "(($ac_try" in
13906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907
  *) ac_try_echo=$ac_try;;
13908
esac
13909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910
  (eval "$ac_link") 2>conftest.er1
13911
  ac_status=$?
13912
  grep -v '^ *+' conftest.er1 >conftest.err
13913
  rm -f conftest.er1
13914
  cat conftest.err >&5
13915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916
  (exit $ac_status); } && {
13917
         test -z "$ac_f77_werror_flag" ||
13918
         test ! -s conftest.err
13919
       } && test -s conftest$ac_exeext &&
13920
       $as_test_x conftest$ac_exeext; then
13921
 
13922
lt_aix_libpath_sed='
13923
    /Import File Strings/,/^$/ {
13924
        /^0/ {
13925
            s/^0  *\(.*\)$/\1/
13926
            p
13927
        }
13928
    }'
13929
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13930
# Check for a 64-bit object if we didn't find anything.
13931
if test -z "$aix_libpath"; then
13932
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13933
fi
13934
else
13935
  echo "$as_me: failed program was:" >&5
13936
sed 's/^/| /' conftest.$ac_ext >&5
13937
 
13938
 
13939
fi
13940
 
13941
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13942
      conftest$ac_exeext conftest.$ac_ext
13943
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13944
 
13945
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13946
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13947
       else
13948
        if test "$host_cpu" = ia64; then
13949
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13950
          allow_undefined_flag_F77="-z nodefs"
13951
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13952
        else
13953
         # Determine the default libpath from the value encoded in an empty executable.
13954
         cat >conftest.$ac_ext <<_ACEOF
13955
      program main
13956
 
13957
      end
13958
_ACEOF
13959
rm -f conftest.$ac_objext conftest$ac_exeext
13960
if { (ac_try="$ac_link"
13961
case "(($ac_try" in
13962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963
  *) ac_try_echo=$ac_try;;
13964
esac
13965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966
  (eval "$ac_link") 2>conftest.er1
13967
  ac_status=$?
13968
  grep -v '^ *+' conftest.er1 >conftest.err
13969
  rm -f conftest.er1
13970
  cat conftest.err >&5
13971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972
  (exit $ac_status); } && {
13973
         test -z "$ac_f77_werror_flag" ||
13974
         test ! -s conftest.err
13975
       } && test -s conftest$ac_exeext &&
13976
       $as_test_x conftest$ac_exeext; then
13977
 
13978
lt_aix_libpath_sed='
13979
    /Import File Strings/,/^$/ {
13980
        /^0/ {
13981
            s/^0  *\(.*\)$/\1/
13982
            p
13983
        }
13984
    }'
13985
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13986
# Check for a 64-bit object if we didn't find anything.
13987
if test -z "$aix_libpath"; then
13988
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13989
fi
13990
else
13991
  echo "$as_me: failed program was:" >&5
13992
sed 's/^/| /' conftest.$ac_ext >&5
13993
 
13994
 
13995
fi
13996
 
13997
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13998
      conftest$ac_exeext conftest.$ac_ext
13999
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14000
 
14001
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14002
          # Warning - without using the other run time loading flags,
14003
          # -berok will link without error, but may produce a broken library.
14004
          no_undefined_flag_F77=' ${wl}-bernotok'
14005
          allow_undefined_flag_F77=' ${wl}-berok'
14006
          # Exported symbols can be pulled into shared objects from archives
14007
          whole_archive_flag_spec_F77='$convenience'
14008
          archive_cmds_need_lc_F77=yes
14009
          # This is similar to how AIX traditionally builds its shared libraries.
14010
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14011
        fi
14012
      fi
14013
      ;;
14014
 
14015
    amigaos*)
14016
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14017
      hardcode_libdir_flag_spec_F77='-L$libdir'
14018
      hardcode_minus_L_F77=yes
14019
      # see comment about different semantics on the GNU ld section
14020
      ld_shlibs_F77=no
14021
      ;;
14022
 
14023
    bsdi[45]*)
14024
      export_dynamic_flag_spec_F77=-rdynamic
14025
      ;;
14026
 
14027
    cygwin* | mingw* | pw32*)
14028
      # When not using gcc, we currently assume that we are using
14029
      # Microsoft Visual C++.
14030
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14031
      # no search path for DLLs.
14032
      hardcode_libdir_flag_spec_F77=' '
14033
      allow_undefined_flag_F77=unsupported
14034
      # Tell ltmain to make .lib files, not .a files.
14035
      libext=lib
14036
      # Tell ltmain to make .dll files, not .so files.
14037
      shrext_cmds=".dll"
14038
      # FIXME: Setting linknames here is a bad hack.
14039
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14040
      # The linker will automatically build a .lib file if we build a DLL.
14041
      old_archive_From_new_cmds_F77='true'
14042
      # FIXME: Should let the user specify the lib program.
14043
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14044
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14045
      enable_shared_with_static_runtimes_F77=yes
14046
      ;;
14047
 
14048
    darwin* | rhapsody*)
14049
      case $host_os in
14050
        rhapsody* | darwin1.[012])
14051
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14052
         ;;
14053
       *) # Darwin 1.3 on
14054
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14055
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14056
         else
14057
           case ${MACOSX_DEPLOYMENT_TARGET} in
14058
             10.[012])
14059
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14060
               ;;
14061
             10.*)
14062
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14063
               ;;
14064
           esac
14065
         fi
14066
         ;;
14067
      esac
14068
      archive_cmds_need_lc_F77=no
14069
      hardcode_direct_F77=no
14070
      hardcode_automatic_F77=yes
14071
      hardcode_shlibpath_var_F77=unsupported
14072
      whole_archive_flag_spec_F77=''
14073
      link_all_deplibs_F77=yes
14074
    if test "$GCC" = yes ; then
14075
        output_verbose_link_cmd='echo'
14076
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14077
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14078
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14079
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14080
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14081
    else
14082
      case $cc_basename in
14083
        xlc*)
14084
         output_verbose_link_cmd='echo'
14085
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14086
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14087
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14088
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14089
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14090
          ;;
14091
       *)
14092
         ld_shlibs_F77=no
14093
          ;;
14094
      esac
14095
    fi
14096
      ;;
14097
 
14098
    dgux*)
14099
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14100
      hardcode_libdir_flag_spec_F77='-L$libdir'
14101
      hardcode_shlibpath_var_F77=no
14102
      ;;
14103
 
14104
    freebsd1*)
14105
      ld_shlibs_F77=no
14106
      ;;
14107
 
14108
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14109
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14110
    # does not break anything, and helps significantly (at the cost of a little
14111
    # extra space).
14112
    freebsd2.2*)
14113
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14114
      hardcode_libdir_flag_spec_F77='-R$libdir'
14115
      hardcode_direct_F77=yes
14116
      hardcode_shlibpath_var_F77=no
14117
      ;;
14118
 
14119
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14120
    freebsd2*)
14121
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14122
      hardcode_direct_F77=yes
14123
      hardcode_minus_L_F77=yes
14124
      hardcode_shlibpath_var_F77=no
14125
      ;;
14126
 
14127
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14128
    freebsd* | dragonfly*)
14129
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14130
      hardcode_libdir_flag_spec_F77='-R$libdir'
14131
      hardcode_direct_F77=yes
14132
      hardcode_shlibpath_var_F77=no
14133
      ;;
14134
 
14135
    hpux9*)
14136
      if test "$GCC" = yes; then
14137
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14138
      else
14139
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14140
      fi
14141
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14142
      hardcode_libdir_separator_F77=:
14143
      hardcode_direct_F77=yes
14144
 
14145
      # hardcode_minus_L: Not really in the search PATH,
14146
      # but as the default location of the library.
14147
      hardcode_minus_L_F77=yes
14148
      export_dynamic_flag_spec_F77='${wl}-E'
14149
      ;;
14150
 
14151
    hpux10*)
14152
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14153
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14154
      else
14155
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14156
      fi
14157
      if test "$with_gnu_ld" = no; then
14158
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14159
        hardcode_libdir_separator_F77=:
14160
 
14161
        hardcode_direct_F77=yes
14162
        export_dynamic_flag_spec_F77='${wl}-E'
14163
 
14164
        # hardcode_minus_L: Not really in the search PATH,
14165
        # but as the default location of the library.
14166
        hardcode_minus_L_F77=yes
14167
      fi
14168
      ;;
14169
 
14170
    hpux11*)
14171
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14172
        case $host_cpu in
14173
        hppa*64*)
14174
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14175
          ;;
14176
        ia64*)
14177
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14178
          ;;
14179
        *)
14180
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14181
          ;;
14182
        esac
14183
      else
14184
        case $host_cpu in
14185
        hppa*64*)
14186
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14187
          ;;
14188
        ia64*)
14189
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14190
          ;;
14191
        *)
14192
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14193
          ;;
14194
        esac
14195
      fi
14196
      if test "$with_gnu_ld" = no; then
14197
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14198
        hardcode_libdir_separator_F77=:
14199
 
14200
        case $host_cpu in
14201
        hppa*64*|ia64*)
14202
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14203
          hardcode_direct_F77=no
14204
          hardcode_shlibpath_var_F77=no
14205
          ;;
14206
        *)
14207
          hardcode_direct_F77=yes
14208
          export_dynamic_flag_spec_F77='${wl}-E'
14209
 
14210
          # hardcode_minus_L: Not really in the search PATH,
14211
          # but as the default location of the library.
14212
          hardcode_minus_L_F77=yes
14213
          ;;
14214
        esac
14215
      fi
14216
      ;;
14217
 
14218
    irix5* | irix6* | nonstopux*)
14219
      if test "$GCC" = yes; then
14220
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14221
      else
14222
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14223
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14224
      fi
14225
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14226
      hardcode_libdir_separator_F77=:
14227
      link_all_deplibs_F77=yes
14228
      ;;
14229
 
14230
    netbsd*)
14231
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14232
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14233
      else
14234
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14235
      fi
14236
      hardcode_libdir_flag_spec_F77='-R$libdir'
14237
      hardcode_direct_F77=yes
14238
      hardcode_shlibpath_var_F77=no
14239
      ;;
14240
 
14241
    newsos6)
14242
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243
      hardcode_direct_F77=yes
14244
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14245
      hardcode_libdir_separator_F77=:
14246
      hardcode_shlibpath_var_F77=no
14247
      ;;
14248
 
14249
    openbsd*)
14250
      if test -f /usr/libexec/ld.so; then
14251
        hardcode_direct_F77=yes
14252
        hardcode_shlibpath_var_F77=no
14253
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14254
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14255
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14256
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14257
          export_dynamic_flag_spec_F77='${wl}-E'
14258
        else
14259
          case $host_os in
14260
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14261
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14262
             hardcode_libdir_flag_spec_F77='-R$libdir'
14263
             ;;
14264
           *)
14265
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14266
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14267
             ;;
14268
          esac
14269
        fi
14270
      else
14271
        ld_shlibs_F77=no
14272
      fi
14273
      ;;
14274
 
14275
    os2*)
14276
      hardcode_libdir_flag_spec_F77='-L$libdir'
14277
      hardcode_minus_L_F77=yes
14278
      allow_undefined_flag_F77=unsupported
14279
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14280
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14281
      ;;
14282
 
14283
    osf3*)
14284
      if test "$GCC" = yes; then
14285
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14286
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14287
      else
14288
        allow_undefined_flag_F77=' -expect_unresolved \*'
14289
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14290
      fi
14291
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14292
      hardcode_libdir_separator_F77=:
14293
      ;;
14294
 
14295
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14296
      if test "$GCC" = yes; then
14297
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14298
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14299
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14300
      else
14301
        allow_undefined_flag_F77=' -expect_unresolved \*'
14302
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14303
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14304
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14305
 
14306
        # Both c and cxx compiler support -rpath directly
14307
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14308
      fi
14309
      hardcode_libdir_separator_F77=:
14310
      ;;
14311
 
14312
    solaris*)
14313
      no_undefined_flag_F77=' -z text'
14314
      if test "$GCC" = yes; then
14315
        wlarc='${wl}'
14316
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14317
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14318
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14319
      else
14320
        wlarc=''
14321
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14322
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14323
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14324
      fi
14325
      hardcode_libdir_flag_spec_F77='-R$libdir'
14326
      hardcode_shlibpath_var_F77=no
14327
      case $host_os in
14328
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14329
      *)
14330
        # The compiler driver will combine and reorder linker options,
14331
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
14332
        # but is careful enough not to reorder.
14333
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14334
        if test "$GCC" = yes; then
14335
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14336
        else
14337
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14338
        fi
14339
        ;;
14340
      esac
14341
      link_all_deplibs_F77=yes
14342
      ;;
14343
 
14344
    sunos4*)
14345
      if test "x$host_vendor" = xsequent; then
14346
        # Use $CC to link under sequent, because it throws in some extra .o
14347
        # files that make .init and .fini sections work.
14348
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14349
      else
14350
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14351
      fi
14352
      hardcode_libdir_flag_spec_F77='-L$libdir'
14353
      hardcode_direct_F77=yes
14354
      hardcode_minus_L_F77=yes
14355
      hardcode_shlibpath_var_F77=no
14356
      ;;
14357
 
14358
    sysv4)
14359
      case $host_vendor in
14360
        sni)
14361
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362
          hardcode_direct_F77=yes # is this really true???
14363
        ;;
14364
        siemens)
14365
          ## LD is ld it makes a PLAMLIB
14366
          ## CC just makes a GrossModule.
14367
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14368
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14369
          hardcode_direct_F77=no
14370
        ;;
14371
        motorola)
14372
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14373
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14374
        ;;
14375
      esac
14376
      runpath_var='LD_RUN_PATH'
14377
      hardcode_shlibpath_var_F77=no
14378
      ;;
14379
 
14380
    sysv4.3*)
14381
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14382
      hardcode_shlibpath_var_F77=no
14383
      export_dynamic_flag_spec_F77='-Bexport'
14384
      ;;
14385
 
14386
    sysv4*MP*)
14387
      if test -d /usr/nec; then
14388
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14389
        hardcode_shlibpath_var_F77=no
14390
        runpath_var=LD_RUN_PATH
14391
        hardcode_runpath_var=yes
14392
        ld_shlibs_F77=yes
14393
      fi
14394
      ;;
14395
 
14396
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14397
      no_undefined_flag_F77='${wl}-z,text'
14398
      archive_cmds_need_lc_F77=no
14399
      hardcode_shlibpath_var_F77=no
14400
      runpath_var='LD_RUN_PATH'
14401
 
14402
      if test "$GCC" = yes; then
14403
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14404
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14405
      else
14406
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14407
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14408
      fi
14409
      ;;
14410
 
14411
    sysv5* | sco3.2v5* | sco5v6*)
14412
      # Note: We can NOT use -z defs as we might desire, because we do not
14413
      # link with -lc, and that would cause any symbols used from libc to
14414
      # always be unresolved, which means just about no library would
14415
      # ever link correctly.  If we're not using GNU ld we use -z text
14416
      # though, which does catch some bad symbols but isn't as heavy-handed
14417
      # as -z defs.
14418
      no_undefined_flag_F77='${wl}-z,text'
14419
      allow_undefined_flag_F77='${wl}-z,nodefs'
14420
      archive_cmds_need_lc_F77=no
14421
      hardcode_shlibpath_var_F77=no
14422
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14423
      hardcode_libdir_separator_F77=':'
14424
      link_all_deplibs_F77=yes
14425
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14426
      runpath_var='LD_RUN_PATH'
14427
 
14428
      if test "$GCC" = yes; then
14429
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14430
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14431
      else
14432
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14433
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14434
      fi
14435
      ;;
14436
 
14437
    uts4*)
14438
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14439
      hardcode_libdir_flag_spec_F77='-L$libdir'
14440
      hardcode_shlibpath_var_F77=no
14441
      ;;
14442
 
14443
    *)
14444
      ld_shlibs_F77=no
14445
      ;;
14446
    esac
14447
  fi
14448
 
14449
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14450
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14451
test "$ld_shlibs_F77" = no && can_build_shared=no
14452
 
14453
#
14454
# Do we need to explicitly link libc?
14455
#
14456
case "x$archive_cmds_need_lc_F77" in
14457
x|xyes)
14458
  # Assume -lc should be added
14459
  archive_cmds_need_lc_F77=yes
14460
 
14461
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14462
    case $archive_cmds_F77 in
14463
    *'~'*)
14464
      # FIXME: we may have to deal with multi-command sequences.
14465
      ;;
14466
    '$CC '*)
14467
      # Test whether the compiler implicitly links with -lc since on some
14468
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14469
      # to ld, don't add -lc before -lgcc.
14470
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14471
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14472
      $rm conftest*
14473
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14474
 
14475
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476
  (eval $ac_compile) 2>&5
14477
  ac_status=$?
14478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479
  (exit $ac_status); } 2>conftest.err; then
14480
        soname=conftest
14481
        lib=conftest
14482
        libobjs=conftest.$ac_objext
14483
        deplibs=
14484
        wl=$lt_prog_compiler_wl_F77
14485
        pic_flag=$lt_prog_compiler_pic_F77
14486
        compiler_flags=-v
14487
        linker_flags=-v
14488
        verstring=
14489
        output_objdir=.
14490
        libname=conftest
14491
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14492
        allow_undefined_flag_F77=
14493
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14494
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14495
  ac_status=$?
14496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497
  (exit $ac_status); }
14498
        then
14499
          archive_cmds_need_lc_F77=no
14500
        else
14501
          archive_cmds_need_lc_F77=yes
14502
        fi
14503
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14504
      else
14505
        cat conftest.err 1>&5
14506
      fi
14507
      $rm conftest*
14508
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14509
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14510
      ;;
14511
    esac
14512
  fi
14513
  ;;
14514
esac
14515
 
14516
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14517
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14518
library_names_spec=
14519
libname_spec='lib$name'
14520
soname_spec=
14521
shrext_cmds=".so"
14522
postinstall_cmds=
14523
postuninstall_cmds=
14524
finish_cmds=
14525
finish_eval=
14526
shlibpath_var=
14527
shlibpath_overrides_runpath=unknown
14528
version_type=none
14529
dynamic_linker="$host_os ld.so"
14530
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14531
 
14532
need_lib_prefix=unknown
14533
hardcode_into_libs=no
14534
 
14535
# when you set need_version to no, make sure it does not cause -set_version
14536
# flags to be left without arguments
14537
need_version=unknown
14538
 
14539
case $host_os in
14540
aix3*)
14541
  version_type=linux
14542
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14543
  shlibpath_var=LIBPATH
14544
 
14545
  # AIX 3 has no versioning support, so we append a major version to the name.
14546
  soname_spec='${libname}${release}${shared_ext}$major'
14547
  ;;
14548
 
14549
aix4* | aix5*)
14550
  version_type=linux
14551
  need_lib_prefix=no
14552
  need_version=no
14553
  hardcode_into_libs=yes
14554
  if test "$host_cpu" = ia64; then
14555
    # AIX 5 supports IA64
14556
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14557
    shlibpath_var=LD_LIBRARY_PATH
14558
  else
14559
    # With GCC up to 2.95.x, collect2 would create an import file
14560
    # for dependence libraries.  The import file would start with
14561
    # the line `#! .'.  This would cause the generated library to
14562
    # depend on `.', always an invalid library.  This was fixed in
14563
    # development snapshots of GCC prior to 3.0.
14564
    case $host_os in
14565
      aix4 | aix4.[01] | aix4.[01].*)
14566
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14567
           echo ' yes '
14568
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14569
        :
14570
      else
14571
        can_build_shared=no
14572
      fi
14573
      ;;
14574
    esac
14575
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14576
    # soname into executable. Probably we can add versioning support to
14577
    # collect2, so additional links can be useful in future.
14578
    if test "$aix_use_runtimelinking" = yes; then
14579
      # If using run time linking (on AIX 4.2 or later) use lib.so
14580
      # instead of lib.a to let people know that these are not
14581
      # typical AIX shared libraries.
14582
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583
    else
14584
      # We preserve .a as extension for shared libraries through AIX4.2
14585
      # and later when we are not doing run time linking.
14586
      library_names_spec='${libname}${release}.a $libname.a'
14587
      soname_spec='${libname}${release}${shared_ext}$major'
14588
    fi
14589
    shlibpath_var=LIBPATH
14590
  fi
14591
  ;;
14592
 
14593
amigaos*)
14594
  library_names_spec='$libname.ixlibrary $libname.a'
14595
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14596
  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'
14597
  ;;
14598
 
14599
beos*)
14600
  library_names_spec='${libname}${shared_ext}'
14601
  dynamic_linker="$host_os ld.so"
14602
  shlibpath_var=LIBRARY_PATH
14603
  ;;
14604
 
14605
bsdi[45]*)
14606
  version_type=linux
14607
  need_version=no
14608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609
  soname_spec='${libname}${release}${shared_ext}$major'
14610
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14611
  shlibpath_var=LD_LIBRARY_PATH
14612
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14613
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14614
  # the default ld.so.conf also contains /usr/contrib/lib and
14615
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14616
  # libtool to hard-code these into programs
14617
  ;;
14618
 
14619
cygwin* | mingw* | pw32*)
14620
  version_type=windows
14621
  shrext_cmds=".dll"
14622
  need_version=no
14623
  need_lib_prefix=no
14624
 
14625
  case $GCC,$host_os in
14626
  yes,cygwin* | yes,mingw* | yes,pw32*)
14627
    library_names_spec='$libname.dll.a'
14628
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14629
    postinstall_cmds='base_file=`basename \${file}`~
14630
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14631
      dldir=$destdir/`dirname \$dlpath`~
14632
      test -d \$dldir || mkdir -p \$dldir~
14633
      $install_prog $dir/$dlname \$dldir/$dlname~
14634
      chmod a+x \$dldir/$dlname'
14635
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14636
      dlpath=$dir/\$dldll~
14637
       $rm \$dlpath'
14638
    shlibpath_overrides_runpath=yes
14639
 
14640
    case $host_os in
14641
    cygwin*)
14642
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14643
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14644
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14645
      ;;
14646
    mingw*)
14647
      # MinGW DLLs use traditional 'lib' prefix
14648
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14649
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14650
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14651
        # It is most probably a Windows format PATH printed by
14652
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14653
        # path with ; separators, and with drive letters. We can handle the
14654
        # drive letters (cygwin fileutils understands them), so leave them,
14655
        # especially as we might pass files found there to a mingw objdump,
14656
        # which wouldn't understand a cygwinified path. Ahh.
14657
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14658
      else
14659
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14660
      fi
14661
      ;;
14662
    pw32*)
14663
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14664
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14665
      ;;
14666
    esac
14667
    ;;
14668
 
14669
  *)
14670
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14671
    ;;
14672
  esac
14673
  dynamic_linker='Win32 ld.exe'
14674
  # FIXME: first we should search . and the directory the executable is in
14675
  shlibpath_var=PATH
14676
  ;;
14677
 
14678
darwin* | rhapsody*)
14679
  dynamic_linker="$host_os dyld"
14680
  version_type=darwin
14681
  need_lib_prefix=no
14682
  need_version=no
14683
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14684
  soname_spec='${libname}${release}${major}$shared_ext'
14685
  shlibpath_overrides_runpath=yes
14686
  shlibpath_var=DYLD_LIBRARY_PATH
14687
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14688
 
14689
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14690
  ;;
14691
 
14692
dgux*)
14693
  version_type=linux
14694
  need_lib_prefix=no
14695
  need_version=no
14696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14697
  soname_spec='${libname}${release}${shared_ext}$major'
14698
  shlibpath_var=LD_LIBRARY_PATH
14699
  ;;
14700
 
14701
freebsd1*)
14702
  dynamic_linker=no
14703
  ;;
14704
 
14705
freebsd* | dragonfly*)
14706
  # DragonFly does not have aout.  When/if they implement a new
14707
  # versioning mechanism, adjust this.
14708
  if test -x /usr/bin/objformat; then
14709
    objformat=`/usr/bin/objformat`
14710
  else
14711
    case $host_os in
14712
    freebsd[123]*) objformat=aout ;;
14713
    *) objformat=elf ;;
14714
    esac
14715
  fi
14716
  version_type=freebsd-$objformat
14717
  case $version_type in
14718
    freebsd-elf*)
14719
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14720
      need_version=no
14721
      need_lib_prefix=no
14722
      ;;
14723
    freebsd-*)
14724
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14725
      need_version=yes
14726
      ;;
14727
  esac
14728
  shlibpath_var=LD_LIBRARY_PATH
14729
  case $host_os in
14730
  freebsd2*)
14731
    shlibpath_overrides_runpath=yes
14732
    ;;
14733
  freebsd3.[01]* | freebsdelf3.[01]*)
14734
    shlibpath_overrides_runpath=yes
14735
    hardcode_into_libs=yes
14736
    ;;
14737
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14738
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14739
    shlibpath_overrides_runpath=no
14740
    hardcode_into_libs=yes
14741
    ;;
14742
  *) # from 4.6 on, and DragonFly
14743
    shlibpath_overrides_runpath=yes
14744
    hardcode_into_libs=yes
14745
    ;;
14746
  esac
14747
  ;;
14748
 
14749
gnu*)
14750
  version_type=linux
14751
  need_lib_prefix=no
14752
  need_version=no
14753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14754
  soname_spec='${libname}${release}${shared_ext}$major'
14755
  shlibpath_var=LD_LIBRARY_PATH
14756
  hardcode_into_libs=yes
14757
  ;;
14758
 
14759
hpux9* | hpux10* | hpux11*)
14760
  # Give a soname corresponding to the major version so that dld.sl refuses to
14761
  # link against other versions.
14762
  version_type=sunos
14763
  need_lib_prefix=no
14764
  need_version=no
14765
  case $host_cpu in
14766
  ia64*)
14767
    shrext_cmds='.so'
14768
    hardcode_into_libs=yes
14769
    dynamic_linker="$host_os dld.so"
14770
    shlibpath_var=LD_LIBRARY_PATH
14771
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14772
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773
    soname_spec='${libname}${release}${shared_ext}$major'
14774
    if test "X$HPUX_IA64_MODE" = X32; then
14775
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14776
    else
14777
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14778
    fi
14779
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14780
    ;;
14781
   hppa*64*)
14782
     shrext_cmds='.sl'
14783
     hardcode_into_libs=yes
14784
     dynamic_linker="$host_os dld.sl"
14785
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14786
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14787
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788
     soname_spec='${libname}${release}${shared_ext}$major'
14789
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14790
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14791
     ;;
14792
   *)
14793
    shrext_cmds='.sl'
14794
    dynamic_linker="$host_os dld.sl"
14795
    shlibpath_var=SHLIB_PATH
14796
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14797
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798
    soname_spec='${libname}${release}${shared_ext}$major'
14799
    ;;
14800
  esac
14801
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14802
  postinstall_cmds='chmod 555 $lib'
14803
  ;;
14804
 
14805
interix[3-9]*)
14806
  version_type=linux
14807
  need_lib_prefix=no
14808
  need_version=no
14809
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14810
  soname_spec='${libname}${release}${shared_ext}$major'
14811
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14812
  shlibpath_var=LD_LIBRARY_PATH
14813
  shlibpath_overrides_runpath=no
14814
  hardcode_into_libs=yes
14815
  ;;
14816
 
14817
irix5* | irix6* | nonstopux*)
14818
  case $host_os in
14819
    nonstopux*) version_type=nonstopux ;;
14820
    *)
14821
        if test "$lt_cv_prog_gnu_ld" = yes; then
14822
                version_type=linux
14823
        else
14824
                version_type=irix
14825
        fi ;;
14826
  esac
14827
  need_lib_prefix=no
14828
  need_version=no
14829
  soname_spec='${libname}${release}${shared_ext}$major'
14830
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14831
  case $host_os in
14832
  irix5* | nonstopux*)
14833
    libsuff= shlibsuff=
14834
    ;;
14835
  *)
14836
    case $LD in # libtool.m4 will add one of these switches to LD
14837
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14838
      libsuff= shlibsuff= libmagic=32-bit;;
14839
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14840
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14841
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14842
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14843
    *) libsuff= shlibsuff= libmagic=never-match;;
14844
    esac
14845
    ;;
14846
  esac
14847
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14848
  shlibpath_overrides_runpath=no
14849
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14850
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14851
  hardcode_into_libs=yes
14852
  ;;
14853
 
14854
# No shared lib support for Linux oldld, aout, or coff.
14855
linux*oldld* | linux*aout* | linux*coff*)
14856
  dynamic_linker=no
14857
  ;;
14858
 
14859
# This must be Linux ELF.
14860
linux* | k*bsd*-gnu)
14861
  version_type=linux
14862
  need_lib_prefix=no
14863
  need_version=no
14864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865
  soname_spec='${libname}${release}${shared_ext}$major'
14866
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14867
  shlibpath_var=LD_LIBRARY_PATH
14868
  shlibpath_overrides_runpath=no
14869
  # This implies no fast_install, which is unacceptable.
14870
  # Some rework will be needed to allow for fast_install
14871
  # before this can be enabled.
14872
  hardcode_into_libs=yes
14873
 
14874
  # Append ld.so.conf contents to the search path
14875
  if test -f /etc/ld.so.conf; then
14876
    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' ' '`
14877 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14878 19 jeremybenn
  fi
14879
 
14880
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14881
  # powerpc, because MkLinux only supported shared libraries with the
14882
  # GNU dynamic linker.  Since this was broken with cross compilers,
14883
  # most powerpc-linux boxes support dynamic linking these days and
14884
  # people can always --disable-shared, the test was removed, and we
14885
  # assume the GNU/Linux dynamic linker is in use.
14886
  dynamic_linker='GNU/Linux ld.so'
14887
  ;;
14888
 
14889
netbsd*)
14890
  version_type=sunos
14891
  need_lib_prefix=no
14892
  need_version=no
14893
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14894
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896
    dynamic_linker='NetBSD (a.out) ld.so'
14897
  else
14898
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14899
    soname_spec='${libname}${release}${shared_ext}$major'
14900
    dynamic_linker='NetBSD ld.elf_so'
14901
  fi
14902
  shlibpath_var=LD_LIBRARY_PATH
14903
  shlibpath_overrides_runpath=yes
14904
  hardcode_into_libs=yes
14905
  ;;
14906
 
14907
newsos6)
14908
  version_type=linux
14909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910
  shlibpath_var=LD_LIBRARY_PATH
14911
  shlibpath_overrides_runpath=yes
14912
  ;;
14913
 
14914
nto-qnx*)
14915
  version_type=linux
14916
  need_lib_prefix=no
14917
  need_version=no
14918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919
  soname_spec='${libname}${release}${shared_ext}$major'
14920
  shlibpath_var=LD_LIBRARY_PATH
14921
  shlibpath_overrides_runpath=yes
14922
  ;;
14923
 
14924
openbsd*)
14925
  version_type=sunos
14926
  sys_lib_dlsearch_path_spec="/usr/lib"
14927
  need_lib_prefix=no
14928
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14929
  case $host_os in
14930
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14931
    *)                         need_version=no  ;;
14932
  esac
14933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14934
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14935
  shlibpath_var=LD_LIBRARY_PATH
14936
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14937
    case $host_os in
14938
      openbsd2.[89] | openbsd2.[89].*)
14939
        shlibpath_overrides_runpath=no
14940
        ;;
14941
      *)
14942
        shlibpath_overrides_runpath=yes
14943
        ;;
14944
      esac
14945
  else
14946
    shlibpath_overrides_runpath=yes
14947
  fi
14948
  ;;
14949
 
14950
os2*)
14951
  libname_spec='$name'
14952
  shrext_cmds=".dll"
14953
  need_lib_prefix=no
14954
  library_names_spec='$libname${shared_ext} $libname.a'
14955
  dynamic_linker='OS/2 ld.exe'
14956
  shlibpath_var=LIBPATH
14957
  ;;
14958
 
14959
osf3* | osf4* | osf5*)
14960
  version_type=osf
14961
  need_lib_prefix=no
14962
  need_version=no
14963
  soname_spec='${libname}${release}${shared_ext}$major'
14964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14965
  shlibpath_var=LD_LIBRARY_PATH
14966
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14967
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14968
  ;;
14969
 
14970
rdos*)
14971
  dynamic_linker=no
14972
  ;;
14973
 
14974
solaris*)
14975
  version_type=linux
14976
  need_lib_prefix=no
14977
  need_version=no
14978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979
  soname_spec='${libname}${release}${shared_ext}$major'
14980
  shlibpath_var=LD_LIBRARY_PATH
14981
  shlibpath_overrides_runpath=yes
14982
  hardcode_into_libs=yes
14983
  # ldd complains unless libraries are executable
14984
  postinstall_cmds='chmod +x $lib'
14985
  ;;
14986
 
14987
sunos4*)
14988
  version_type=sunos
14989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14990
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14991
  shlibpath_var=LD_LIBRARY_PATH
14992
  shlibpath_overrides_runpath=yes
14993
  if test "$with_gnu_ld" = yes; then
14994
    need_lib_prefix=no
14995
  fi
14996
  need_version=yes
14997
  ;;
14998
 
14999
sysv4 | sysv4.3*)
15000
  version_type=linux
15001
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002
  soname_spec='${libname}${release}${shared_ext}$major'
15003
  shlibpath_var=LD_LIBRARY_PATH
15004
  case $host_vendor in
15005
    sni)
15006
      shlibpath_overrides_runpath=no
15007
      need_lib_prefix=no
15008
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15009
      runpath_var=LD_RUN_PATH
15010
      ;;
15011
    siemens)
15012
      need_lib_prefix=no
15013
      ;;
15014
    motorola)
15015
      need_lib_prefix=no
15016
      need_version=no
15017
      shlibpath_overrides_runpath=no
15018
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15019
      ;;
15020
  esac
15021
  ;;
15022
 
15023
sysv4*MP*)
15024
  if test -d /usr/nec ;then
15025
    version_type=linux
15026
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15027
    soname_spec='$libname${shared_ext}.$major'
15028
    shlibpath_var=LD_LIBRARY_PATH
15029
  fi
15030
  ;;
15031
 
15032
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15033
  version_type=freebsd-elf
15034
  need_lib_prefix=no
15035
  need_version=no
15036
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15037
  soname_spec='${libname}${release}${shared_ext}$major'
15038
  shlibpath_var=LD_LIBRARY_PATH
15039
  hardcode_into_libs=yes
15040
  if test "$with_gnu_ld" = yes; then
15041
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15042
    shlibpath_overrides_runpath=no
15043
  else
15044
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15045
    shlibpath_overrides_runpath=yes
15046
    case $host_os in
15047
      sco3.2v5*)
15048
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15049
        ;;
15050
    esac
15051
  fi
15052
  sys_lib_dlsearch_path_spec='/usr/lib'
15053
  ;;
15054
 
15055
uts4*)
15056
  version_type=linux
15057
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058
  soname_spec='${libname}${release}${shared_ext}$major'
15059
  shlibpath_var=LD_LIBRARY_PATH
15060
  ;;
15061
 
15062
*)
15063
  dynamic_linker=no
15064
  ;;
15065
esac
15066
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15067
echo "${ECHO_T}$dynamic_linker" >&6; }
15068
test "$dynamic_linker" = no && can_build_shared=no
15069
 
15070
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15071
if test "$GCC" = yes; then
15072
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15073
fi
15074
 
15075
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15076
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15077
hardcode_action_F77=
15078
if test -n "$hardcode_libdir_flag_spec_F77" || \
15079
   test -n "$runpath_var_F77" || \
15080
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15081
 
15082
  # We can hardcode non-existant directories.
15083
  if test "$hardcode_direct_F77" != no &&
15084
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15085
     # have to relink, otherwise we might link with an installed library
15086
     # when we should be linking with a yet-to-be-installed one
15087
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15088
     test "$hardcode_minus_L_F77" != no; then
15089
    # Linking always hardcodes the temporary library directory.
15090
    hardcode_action_F77=relink
15091
  else
15092
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15093
    hardcode_action_F77=immediate
15094
  fi
15095
else
15096
  # We cannot hardcode anything, or else we can only hardcode existing
15097
  # directories.
15098
  hardcode_action_F77=unsupported
15099
fi
15100
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15101
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15102
 
15103
if test "$hardcode_action_F77" = relink; then
15104
  # Fast installation is not supported
15105
  enable_fast_install=no
15106
elif test "$shlibpath_overrides_runpath" = yes ||
15107
     test "$enable_shared" = no; then
15108
  # Fast installation is not necessary
15109
  enable_fast_install=needless
15110
fi
15111
 
15112
 
15113
# The else clause should only fire when bootstrapping the
15114
# libtool distribution, otherwise you forgot to ship ltmain.sh
15115
# with your package, and you will get complaints that there are
15116
# no rules to generate ltmain.sh.
15117
if test -f "$ltmain"; then
15118
  # See if we are running on zsh, and set the options which allow our commands through
15119
  # without removal of \ escapes.
15120
  if test -n "${ZSH_VERSION+set}" ; then
15121
    setopt NO_GLOB_SUBST
15122
  fi
15123
  # Now quote all the things that may contain metacharacters while being
15124
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15125
  # variables and quote the copies for generation of the libtool script.
15126
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15127
    SED SHELL STRIP \
15128
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15129
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15130
    deplibs_check_method reload_flag reload_cmds need_locks \
15131
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15132
    lt_cv_sys_global_symbol_to_c_name_address \
15133
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15134
    old_postinstall_cmds old_postuninstall_cmds \
15135
    compiler_F77 \
15136
    CC_F77 \
15137
    LD_F77 \
15138
    lt_prog_compiler_wl_F77 \
15139
    lt_prog_compiler_pic_F77 \
15140
    lt_prog_compiler_static_F77 \
15141
    lt_prog_compiler_no_builtin_flag_F77 \
15142
    export_dynamic_flag_spec_F77 \
15143
    thread_safe_flag_spec_F77 \
15144
    whole_archive_flag_spec_F77 \
15145
    enable_shared_with_static_runtimes_F77 \
15146
    old_archive_cmds_F77 \
15147
    old_archive_from_new_cmds_F77 \
15148
    predep_objects_F77 \
15149
    postdep_objects_F77 \
15150
    predeps_F77 \
15151
    postdeps_F77 \
15152
    compiler_lib_search_path_F77 \
15153
    archive_cmds_F77 \
15154
    archive_expsym_cmds_F77 \
15155
    postinstall_cmds_F77 \
15156
    postuninstall_cmds_F77 \
15157
    old_archive_from_expsyms_cmds_F77 \
15158
    allow_undefined_flag_F77 \
15159
    no_undefined_flag_F77 \
15160
    export_symbols_cmds_F77 \
15161
    hardcode_libdir_flag_spec_F77 \
15162
    hardcode_libdir_flag_spec_ld_F77 \
15163
    hardcode_libdir_separator_F77 \
15164
    hardcode_automatic_F77 \
15165
    module_cmds_F77 \
15166
    module_expsym_cmds_F77 \
15167
    lt_cv_prog_compiler_c_o_F77 \
15168
    fix_srcfile_path_F77 \
15169
    exclude_expsyms_F77 \
15170
    include_expsyms_F77; do
15171
 
15172
    case $var in
15173
    old_archive_cmds_F77 | \
15174
    old_archive_from_new_cmds_F77 | \
15175
    archive_cmds_F77 | \
15176
    archive_expsym_cmds_F77 | \
15177
    module_cmds_F77 | \
15178
    module_expsym_cmds_F77 | \
15179
    old_archive_from_expsyms_cmds_F77 | \
15180
    export_symbols_cmds_F77 | \
15181
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15182
    postinstall_cmds | postuninstall_cmds | \
15183
    old_postinstall_cmds | old_postuninstall_cmds | \
15184
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15185
      # Double-quote double-evaled strings.
15186
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15187
      ;;
15188
    *)
15189
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15190
      ;;
15191
    esac
15192
  done
15193
 
15194
  case $lt_echo in
15195
  *'\$0 --fallback-echo"')
15196
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15197
    ;;
15198
  esac
15199
 
15200
cfgfile="$ofile"
15201
 
15202
  cat <<__EOF__ >> "$cfgfile"
15203
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15204
 
15205
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15206
 
15207
# Shell to use when invoking shell scripts.
15208
SHELL=$lt_SHELL
15209
 
15210
# Whether or not to build shared libraries.
15211
build_libtool_libs=$enable_shared
15212
 
15213
# Whether or not to build static libraries.
15214
build_old_libs=$enable_static
15215
 
15216
# Whether or not to add -lc for building shared libraries.
15217
build_libtool_need_lc=$archive_cmds_need_lc_F77
15218
 
15219
# Whether or not to disallow shared libs when runtime libs are static
15220
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15221
 
15222
# Whether or not to optimize for fast installation.
15223
fast_install=$enable_fast_install
15224
 
15225
# The host system.
15226
host_alias=$host_alias
15227
host=$host
15228
host_os=$host_os
15229
 
15230
# The build system.
15231
build_alias=$build_alias
15232
build=$build
15233
build_os=$build_os
15234
 
15235
# An echo program that does not interpret backslashes.
15236
echo=$lt_echo
15237
 
15238
# The archiver.
15239
AR=$lt_AR
15240
AR_FLAGS=$lt_AR_FLAGS
15241
 
15242
# A C compiler.
15243
LTCC=$lt_LTCC
15244
 
15245
# LTCC compiler flags.
15246
LTCFLAGS=$lt_LTCFLAGS
15247
 
15248
# A language-specific compiler.
15249
CC=$lt_compiler_F77
15250
 
15251
# Is the compiler the GNU C compiler?
15252
with_gcc=$GCC_F77
15253
 
15254
# An ERE matcher.
15255
EGREP=$lt_EGREP
15256
 
15257
# The linker used to build libraries.
15258
LD=$lt_LD_F77
15259
 
15260
# Whether we need hard or soft links.
15261
LN_S=$lt_LN_S
15262
 
15263
# A BSD-compatible nm program.
15264
NM=$lt_NM
15265
 
15266
# A symbol stripping program
15267
STRIP=$lt_STRIP
15268
 
15269
# Used to examine libraries when file_magic_cmd begins "file"
15270
MAGIC_CMD=$MAGIC_CMD
15271
 
15272
# Used on cygwin: DLL creation program.
15273
DLLTOOL="$DLLTOOL"
15274
 
15275
# Used on cygwin: object dumper.
15276
OBJDUMP="$OBJDUMP"
15277
 
15278
# Used on cygwin: assembler.
15279
AS="$AS"
15280
 
15281
# The name of the directory that contains temporary libtool files.
15282
objdir=$objdir
15283
 
15284
# How to create reloadable object files.
15285
reload_flag=$lt_reload_flag
15286
reload_cmds=$lt_reload_cmds
15287
 
15288
# How to pass a linker flag through the compiler.
15289
wl=$lt_lt_prog_compiler_wl_F77
15290
 
15291
# Object file suffix (normally "o").
15292
objext="$ac_objext"
15293
 
15294
# Old archive suffix (normally "a").
15295
libext="$libext"
15296
 
15297
# Shared library suffix (normally ".so").
15298
shrext_cmds='$shrext_cmds'
15299
 
15300
# Executable file suffix (normally "").
15301
exeext="$exeext"
15302
 
15303
# Additional compiler flags for building library objects.
15304
pic_flag=$lt_lt_prog_compiler_pic_F77
15305
pic_mode=$pic_mode
15306
 
15307
# What is the maximum length of a command?
15308
max_cmd_len=$lt_cv_sys_max_cmd_len
15309
 
15310
# Does compiler simultaneously support -c and -o options?
15311
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15312
 
15313
# Must we lock files when doing compilation?
15314
need_locks=$lt_need_locks
15315
 
15316
# Do we need the lib prefix for modules?
15317
need_lib_prefix=$need_lib_prefix
15318
 
15319
# Do we need a version for libraries?
15320
need_version=$need_version
15321
 
15322
# Whether dlopen is supported.
15323
dlopen_support=$enable_dlopen
15324
 
15325
# Whether dlopen of programs is supported.
15326
dlopen_self=$enable_dlopen_self
15327
 
15328
# Whether dlopen of statically linked programs is supported.
15329
dlopen_self_static=$enable_dlopen_self_static
15330
 
15331
# Compiler flag to prevent dynamic linking.
15332
link_static_flag=$lt_lt_prog_compiler_static_F77
15333
 
15334
# Compiler flag to turn off builtin functions.
15335
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15336
 
15337
# Compiler flag to allow reflexive dlopens.
15338
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15339
 
15340
# Compiler flag to generate shared objects directly from archives.
15341
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15342
 
15343
# Compiler flag to generate thread-safe objects.
15344
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15345
 
15346
# Library versioning type.
15347
version_type=$version_type
15348
 
15349
# Format of library name prefix.
15350
libname_spec=$lt_libname_spec
15351
 
15352
# List of archive names.  First name is the real one, the rest are links.
15353
# The last name is the one that the linker finds with -lNAME.
15354
library_names_spec=$lt_library_names_spec
15355
 
15356
# The coded name of the library, if different from the real name.
15357
soname_spec=$lt_soname_spec
15358
 
15359
# Commands used to build and install an old-style archive.
15360
RANLIB=$lt_RANLIB
15361
old_archive_cmds=$lt_old_archive_cmds_F77
15362
old_postinstall_cmds=$lt_old_postinstall_cmds
15363
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15364
 
15365
# Create an old-style archive from a shared archive.
15366
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15367
 
15368
# Create a temporary old-style archive to link instead of a shared archive.
15369
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15370
 
15371
# Commands used to build and install a shared archive.
15372
archive_cmds=$lt_archive_cmds_F77
15373
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15374
postinstall_cmds=$lt_postinstall_cmds
15375
postuninstall_cmds=$lt_postuninstall_cmds
15376
 
15377
# Commands used to build a loadable module (assumed same as above if empty)
15378
module_cmds=$lt_module_cmds_F77
15379
module_expsym_cmds=$lt_module_expsym_cmds_F77
15380
 
15381
# Commands to strip libraries.
15382
old_striplib=$lt_old_striplib
15383
striplib=$lt_striplib
15384
 
15385
# Dependencies to place before the objects being linked to create a
15386
# shared library.
15387
predep_objects=$lt_predep_objects_F77
15388
 
15389
# Dependencies to place after the objects being linked to create a
15390
# shared library.
15391
postdep_objects=$lt_postdep_objects_F77
15392
 
15393
# Dependencies to place before the objects being linked to create a
15394
# shared library.
15395
predeps=$lt_predeps_F77
15396
 
15397
# Dependencies to place after the objects being linked to create a
15398
# shared library.
15399
postdeps=$lt_postdeps_F77
15400
 
15401
# The library search path used internally by the compiler when linking
15402
# a shared library.
15403
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15404
 
15405
# Method to check whether dependent libraries are shared objects.
15406
deplibs_check_method=$lt_deplibs_check_method
15407
 
15408
# Command to use when deplibs_check_method == file_magic.
15409
file_magic_cmd=$lt_file_magic_cmd
15410
 
15411
# Flag that allows shared libraries with undefined symbols to be built.
15412
allow_undefined_flag=$lt_allow_undefined_flag_F77
15413
 
15414
# Flag that forces no undefined symbols.
15415
no_undefined_flag=$lt_no_undefined_flag_F77
15416
 
15417
# Commands used to finish a libtool library installation in a directory.
15418
finish_cmds=$lt_finish_cmds
15419
 
15420
# Same as above, but a single script fragment to be evaled but not shown.
15421
finish_eval=$lt_finish_eval
15422
 
15423
# Take the output of nm and produce a listing of raw symbols and C names.
15424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15425
 
15426
# Transform the output of nm in a proper C declaration
15427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15428
 
15429
# Transform the output of nm in a C name address pair
15430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15431
 
15432
# This is the shared library runtime path variable.
15433
runpath_var=$runpath_var
15434
 
15435
# This is the shared library path variable.
15436
shlibpath_var=$shlibpath_var
15437
 
15438
# Is shlibpath searched before the hard-coded library search path?
15439
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15440
 
15441
# How to hardcode a shared library path into an executable.
15442
hardcode_action=$hardcode_action_F77
15443
 
15444
# Whether we should hardcode library paths into libraries.
15445
hardcode_into_libs=$hardcode_into_libs
15446
 
15447
# Flag to hardcode \$libdir into a binary during linking.
15448
# This must work even if \$libdir does not exist.
15449
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15450
 
15451
# If ld is used when linking, flag to hardcode \$libdir into
15452
# a binary during linking. This must work even if \$libdir does
15453
# not exist.
15454
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15455
 
15456
# Whether we need a single -rpath flag with a separated argument.
15457
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15458
 
15459
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15460
# resulting binary.
15461
hardcode_direct=$hardcode_direct_F77
15462
 
15463
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15464
# resulting binary.
15465
hardcode_minus_L=$hardcode_minus_L_F77
15466
 
15467
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15468
# the resulting binary.
15469
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15470
 
15471
# Set to yes if building a shared library automatically hardcodes DIR into the library
15472
# and all subsequent libraries and executables linked against it.
15473
hardcode_automatic=$hardcode_automatic_F77
15474
 
15475
# Variables whose values should be saved in libtool wrapper scripts and
15476
# restored at relink time.
15477
variables_saved_for_relink="$variables_saved_for_relink"
15478
 
15479
# Whether libtool must link a program against all its dependency libraries.
15480
link_all_deplibs=$link_all_deplibs_F77
15481
 
15482
# Compile-time system search path for libraries
15483
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15484
 
15485
# Run-time system search path for libraries
15486
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15487
 
15488
# Fix the shell variable \$srcfile for the compiler.
15489
fix_srcfile_path=$lt_fix_srcfile_path
15490
 
15491
# Set to yes if exported symbols are required.
15492
always_export_symbols=$always_export_symbols_F77
15493
 
15494
# The commands to list exported symbols.
15495
export_symbols_cmds=$lt_export_symbols_cmds_F77
15496
 
15497
# The commands to extract the exported symbol list from a shared archive.
15498
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15499
 
15500
# Symbols that should not be listed in the preloaded symbols.
15501
exclude_expsyms=$lt_exclude_expsyms_F77
15502
 
15503
# Symbols that must always be exported.
15504
include_expsyms=$lt_include_expsyms_F77
15505
 
15506
# ### END LIBTOOL TAG CONFIG: $tagname
15507
 
15508
__EOF__
15509
 
15510
 
15511
else
15512
  # If there is no Makefile yet, we rely on a make rule to execute
15513
  # `config.status --recheck' to rerun these tests and create the
15514
  # libtool script then.
15515
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15516
  if test -f "$ltmain_in"; then
15517
    test -f Makefile && make "$ltmain"
15518
  fi
15519
fi
15520
 
15521
 
15522
ac_ext=c
15523
ac_cpp='$CPP $CPPFLAGS'
15524
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15527
 
15528
CC="$lt_save_CC"
15529
 
15530
        else
15531
          tagname=""
15532
        fi
15533
        ;;
15534
 
15535
      GCJ)
15536
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15537
 
15538
 
15539
# Source file extension for Java test sources.
15540
ac_ext=java
15541
 
15542
# Object file extension for compiled Java test sources.
15543
objext=o
15544
objext_GCJ=$objext
15545
 
15546
# Code to be used in simple compile tests
15547
lt_simple_compile_test_code="class foo {}"
15548
 
15549
# Code to be used in simple link tests
15550
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15551
 
15552
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15553
 
15554
# If no C compiler was specified, use CC.
15555
LTCC=${LTCC-"$CC"}
15556
 
15557
# If no C compiler flags were specified, use CFLAGS.
15558
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15559
 
15560
# Allow CC to be a program name with arguments.
15561
compiler=$CC
15562
 
15563
 
15564
# save warnings/boilerplate of simple test code
15565
ac_outfile=conftest.$ac_objext
15566
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15567
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15568
_lt_compiler_boilerplate=`cat conftest.err`
15569
$rm conftest*
15570
 
15571
ac_outfile=conftest.$ac_objext
15572
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15573
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15574
_lt_linker_boilerplate=`cat conftest.err`
15575
$rm conftest*
15576
 
15577
 
15578
# Allow CC to be a program name with arguments.
15579
lt_save_CC="$CC"
15580
CC=${GCJ-"gcj"}
15581
compiler=$CC
15582
compiler_GCJ=$CC
15583
for cc_temp in $compiler""; do
15584
  case $cc_temp in
15585
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15586
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15587
    \-*) ;;
15588
    *) break;;
15589
  esac
15590
done
15591
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15592
 
15593
 
15594
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15595
archive_cmds_need_lc_GCJ=no
15596
 
15597
old_archive_cmds_GCJ=$old_archive_cmds
15598
 
15599
 
15600
lt_prog_compiler_no_builtin_flag_GCJ=
15601
 
15602
if test "$GCC" = yes; then
15603
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15604
 
15605
 
15606
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15607
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15608
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15609
  echo $ECHO_N "(cached) $ECHO_C" >&6
15610
else
15611
  lt_cv_prog_compiler_rtti_exceptions=no
15612
  ac_outfile=conftest.$ac_objext
15613
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15614
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15615
   # Insert the option either (1) after the last *FLAGS variable, or
15616
   # (2) before a word containing "conftest.", or (3) at the end.
15617
   # Note that $ac_compile itself does not contain backslashes and begins
15618
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15619
   # The option is referenced via a variable to avoid confusing sed.
15620
   lt_compile=`echo "$ac_compile" | $SED \
15621
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15622
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15623
   -e 's:$: $lt_compiler_flag:'`
15624
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15625
   (eval "$lt_compile" 2>conftest.err)
15626
   ac_status=$?
15627
   cat conftest.err >&5
15628
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15629
   if (exit $ac_status) && test -s "$ac_outfile"; then
15630
     # The compiler can only warn and ignore the option if not recognized
15631
     # So say no if there are warnings other than the usual output.
15632
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15633
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15634
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15635
       lt_cv_prog_compiler_rtti_exceptions=yes
15636
     fi
15637
   fi
15638
   $rm conftest*
15639
 
15640
fi
15641
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15642
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15643
 
15644
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15645
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15646
else
15647
    :
15648
fi
15649
 
15650
fi
15651
 
15652
lt_prog_compiler_wl_GCJ=
15653
lt_prog_compiler_pic_GCJ=
15654
lt_prog_compiler_static_GCJ=
15655
 
15656
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15657
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15658
 
15659
  if test "$GCC" = yes; then
15660
    lt_prog_compiler_wl_GCJ='-Wl,'
15661
    lt_prog_compiler_static_GCJ='-static'
15662
 
15663
    case $host_os in
15664
      aix*)
15665
      # All AIX code is PIC.
15666
      if test "$host_cpu" = ia64; then
15667
        # AIX 5 now supports IA64 processor
15668
        lt_prog_compiler_static_GCJ='-Bstatic'
15669
      fi
15670
      ;;
15671
 
15672
    amigaos*)
15673
      # FIXME: we need at least 68020 code to build shared libraries, but
15674
      # adding the `-m68020' flag to GCC prevents building anything better,
15675
      # like `-m68040'.
15676
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15677
      ;;
15678
 
15679
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15680
      # PIC is the default for these OSes.
15681
      ;;
15682
 
15683
    mingw* | cygwin* | pw32* | os2*)
15684
      # This hack is so that the source file can tell whether it is being
15685
      # built for inclusion in a dll (and should export symbols for example).
15686
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15687
      # (--disable-auto-import) libraries
15688
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15689
      ;;
15690
 
15691
    darwin* | rhapsody*)
15692
      # PIC is the default on this platform
15693
      # Common symbols not allowed in MH_DYLIB files
15694
      lt_prog_compiler_pic_GCJ='-fno-common'
15695
      ;;
15696
 
15697
    interix[3-9]*)
15698
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15699
      # Instead, we relocate shared libraries at runtime.
15700
      ;;
15701
 
15702
    msdosdjgpp*)
15703
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15704
      # on systems that don't support them.
15705
      lt_prog_compiler_can_build_shared_GCJ=no
15706
      enable_shared=no
15707
      ;;
15708
 
15709
    sysv4*MP*)
15710
      if test -d /usr/nec; then
15711
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15712
      fi
15713
      ;;
15714
 
15715
    hpux*)
15716
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15717
      # not for PA HP-UX.
15718
      case $host_cpu in
15719
      hppa*64*|ia64*)
15720
        # +Z the default
15721
        ;;
15722
      *)
15723
        lt_prog_compiler_pic_GCJ='-fPIC'
15724
        ;;
15725
      esac
15726
      ;;
15727
 
15728
    *)
15729
      lt_prog_compiler_pic_GCJ='-fPIC'
15730
      ;;
15731
    esac
15732
  else
15733
    # PORTME Check for flag to pass linker flags through the system compiler.
15734
    case $host_os in
15735
    aix*)
15736
      lt_prog_compiler_wl_GCJ='-Wl,'
15737
      if test "$host_cpu" = ia64; then
15738
        # AIX 5 now supports IA64 processor
15739
        lt_prog_compiler_static_GCJ='-Bstatic'
15740
      else
15741
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15742
      fi
15743
      ;;
15744
      darwin*)
15745
        # PIC is the default on this platform
15746
        # Common symbols not allowed in MH_DYLIB files
15747
       case $cc_basename in
15748
         xlc*)
15749
         lt_prog_compiler_pic_GCJ='-qnocommon'
15750
         lt_prog_compiler_wl_GCJ='-Wl,'
15751
         ;;
15752
       esac
15753
       ;;
15754
 
15755
    mingw* | cygwin* | pw32* | os2*)
15756
      # This hack is so that the source file can tell whether it is being
15757
      # built for inclusion in a dll (and should export symbols for example).
15758
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15759
      ;;
15760
 
15761
    hpux9* | hpux10* | hpux11*)
15762
      lt_prog_compiler_wl_GCJ='-Wl,'
15763
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15764
      # not for PA HP-UX.
15765
      case $host_cpu in
15766
      hppa*64*|ia64*)
15767
        # +Z the default
15768
        ;;
15769
      *)
15770
        lt_prog_compiler_pic_GCJ='+Z'
15771
        ;;
15772
      esac
15773
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15774
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15775
      ;;
15776
 
15777
    irix5* | irix6* | nonstopux*)
15778
      lt_prog_compiler_wl_GCJ='-Wl,'
15779
      # PIC (with -KPIC) is the default.
15780
      lt_prog_compiler_static_GCJ='-non_shared'
15781
      ;;
15782
 
15783
    newsos6)
15784
      lt_prog_compiler_pic_GCJ='-KPIC'
15785
      lt_prog_compiler_static_GCJ='-Bstatic'
15786
      ;;
15787
 
15788
    linux* | k*bsd*-gnu)
15789
      case $cc_basename in
15790
      icc* | ecc*)
15791
        lt_prog_compiler_wl_GCJ='-Wl,'
15792
        lt_prog_compiler_pic_GCJ='-KPIC'
15793
        lt_prog_compiler_static_GCJ='-static'
15794
        ;;
15795
      pgcc* | pgf77* | pgf90* | pgf95*)
15796
        # Portland Group compilers (*not* the Pentium gcc compiler,
15797
        # which looks to be a dead project)
15798
        lt_prog_compiler_wl_GCJ='-Wl,'
15799
        lt_prog_compiler_pic_GCJ='-fpic'
15800
        lt_prog_compiler_static_GCJ='-Bstatic'
15801
        ;;
15802
      ccc*)
15803
        lt_prog_compiler_wl_GCJ='-Wl,'
15804
        # All Alpha code is PIC.
15805
        lt_prog_compiler_static_GCJ='-non_shared'
15806
        ;;
15807
      *)
15808
        case `$CC -V 2>&1 | sed 5q` in
15809
        *Sun\ C*)
15810
          # Sun C 5.9
15811
          lt_prog_compiler_pic_GCJ='-KPIC'
15812
          lt_prog_compiler_static_GCJ='-Bstatic'
15813
          lt_prog_compiler_wl_GCJ='-Wl,'
15814
          ;;
15815
        *Sun\ F*)
15816
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
15817
          lt_prog_compiler_pic_GCJ='-KPIC'
15818
          lt_prog_compiler_static_GCJ='-Bstatic'
15819
          lt_prog_compiler_wl_GCJ=''
15820
          ;;
15821
        esac
15822
        ;;
15823
      esac
15824
      ;;
15825
 
15826
    osf3* | osf4* | osf5*)
15827
      lt_prog_compiler_wl_GCJ='-Wl,'
15828
      # All OSF/1 code is PIC.
15829
      lt_prog_compiler_static_GCJ='-non_shared'
15830
      ;;
15831
 
15832
    rdos*)
15833
      lt_prog_compiler_static_GCJ='-non_shared'
15834
      ;;
15835
 
15836
    solaris*)
15837
      lt_prog_compiler_pic_GCJ='-KPIC'
15838
      lt_prog_compiler_static_GCJ='-Bstatic'
15839
      case $cc_basename in
15840
      f77* | f90* | f95*)
15841
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15842
      *)
15843
        lt_prog_compiler_wl_GCJ='-Wl,';;
15844
      esac
15845
      ;;
15846
 
15847
    sunos4*)
15848
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15849
      lt_prog_compiler_pic_GCJ='-PIC'
15850
      lt_prog_compiler_static_GCJ='-Bstatic'
15851
      ;;
15852
 
15853
    sysv4 | sysv4.2uw2* | sysv4.3*)
15854
      lt_prog_compiler_wl_GCJ='-Wl,'
15855
      lt_prog_compiler_pic_GCJ='-KPIC'
15856
      lt_prog_compiler_static_GCJ='-Bstatic'
15857
      ;;
15858
 
15859
    sysv4*MP*)
15860
      if test -d /usr/nec ;then
15861
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15862
        lt_prog_compiler_static_GCJ='-Bstatic'
15863
      fi
15864
      ;;
15865
 
15866
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15867
      lt_prog_compiler_wl_GCJ='-Wl,'
15868
      lt_prog_compiler_pic_GCJ='-KPIC'
15869
      lt_prog_compiler_static_GCJ='-Bstatic'
15870
      ;;
15871
 
15872
    unicos*)
15873
      lt_prog_compiler_wl_GCJ='-Wl,'
15874
      lt_prog_compiler_can_build_shared_GCJ=no
15875
      ;;
15876
 
15877
    uts4*)
15878
      lt_prog_compiler_pic_GCJ='-pic'
15879
      lt_prog_compiler_static_GCJ='-Bstatic'
15880
      ;;
15881
 
15882
    *)
15883
      lt_prog_compiler_can_build_shared_GCJ=no
15884
      ;;
15885
    esac
15886
  fi
15887
 
15888
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15889
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15890
 
15891
#
15892
# Check to make sure the PIC flag actually works.
15893
#
15894
if test -n "$lt_prog_compiler_pic_GCJ"; then
15895
 
15896
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15897
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15898
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15899
  echo $ECHO_N "(cached) $ECHO_C" >&6
15900
else
15901
  lt_prog_compiler_pic_works_GCJ=no
15902
  ac_outfile=conftest.$ac_objext
15903
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15904
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15905
   # Insert the option either (1) after the last *FLAGS variable, or
15906
   # (2) before a word containing "conftest.", or (3) at the end.
15907
   # Note that $ac_compile itself does not contain backslashes and begins
15908
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15909
   # The option is referenced via a variable to avoid confusing sed.
15910
   lt_compile=`echo "$ac_compile" | $SED \
15911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15913
   -e 's:$: $lt_compiler_flag:'`
15914
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15915
   (eval "$lt_compile" 2>conftest.err)
15916
   ac_status=$?
15917
   cat conftest.err >&5
15918
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15919
   if (exit $ac_status) && test -s "$ac_outfile"; then
15920
     # The compiler can only warn and ignore the option if not recognized
15921
     # So say no if there are warnings other than the usual output.
15922
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15923
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15924
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15925
       lt_prog_compiler_pic_works_GCJ=yes
15926
     fi
15927
   fi
15928
   $rm conftest*
15929
 
15930
fi
15931
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15932
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15933
 
15934
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15935
    case $lt_prog_compiler_pic_GCJ in
15936
     "" | " "*) ;;
15937
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15938
     esac
15939
else
15940
    lt_prog_compiler_pic_GCJ=
15941
     lt_prog_compiler_can_build_shared_GCJ=no
15942
fi
15943
 
15944
fi
15945
case $host_os in
15946
  # For platforms which do not support PIC, -DPIC is meaningless:
15947
  *djgpp*)
15948
    lt_prog_compiler_pic_GCJ=
15949
    ;;
15950
  *)
15951
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15952
    ;;
15953
esac
15954
 
15955
#
15956
# Check to make sure the static flag actually works.
15957
#
15958
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15959
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15960
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15961
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15962
  echo $ECHO_N "(cached) $ECHO_C" >&6
15963
else
15964
  lt_prog_compiler_static_works_GCJ=no
15965
   save_LDFLAGS="$LDFLAGS"
15966
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15967
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15968
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15969
     # The linker can only warn and ignore the option if not recognized
15970
     # So say no if there are warnings
15971
     if test -s conftest.err; then
15972
       # Append any errors to the config.log.
15973
       cat conftest.err 1>&5
15974
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15975
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15976
       if diff conftest.exp conftest.er2 >/dev/null; then
15977
         lt_prog_compiler_static_works_GCJ=yes
15978
       fi
15979
     else
15980
       lt_prog_compiler_static_works_GCJ=yes
15981
     fi
15982
   fi
15983
   $rm conftest*
15984
   LDFLAGS="$save_LDFLAGS"
15985
 
15986
fi
15987
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15988
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
15989
 
15990
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15991
    :
15992
else
15993
    lt_prog_compiler_static_GCJ=
15994
fi
15995
 
15996
 
15997
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15998
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15999
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16000
  echo $ECHO_N "(cached) $ECHO_C" >&6
16001
else
16002
  lt_cv_prog_compiler_c_o_GCJ=no
16003
   $rm -r conftest 2>/dev/null
16004
   mkdir conftest
16005
   cd conftest
16006
   mkdir out
16007
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16008
 
16009
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16010
   # Insert the option either (1) after the last *FLAGS variable, or
16011
   # (2) before a word containing "conftest.", or (3) at the end.
16012
   # Note that $ac_compile itself does not contain backslashes and begins
16013
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16014
   lt_compile=`echo "$ac_compile" | $SED \
16015
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16016
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16017
   -e 's:$: $lt_compiler_flag:'`
16018
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16019
   (eval "$lt_compile" 2>out/conftest.err)
16020
   ac_status=$?
16021
   cat out/conftest.err >&5
16022
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16023
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16024
   then
16025
     # The compiler can only warn and ignore the option if not recognized
16026
     # So say no if there are warnings
16027
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16028
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16029
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16030
       lt_cv_prog_compiler_c_o_GCJ=yes
16031
     fi
16032
   fi
16033
   chmod u+w . 2>&5
16034
   $rm conftest*
16035
   # SGI C++ compiler will create directory out/ii_files/ for
16036
   # template instantiation
16037
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16038
   $rm out/* && rmdir out
16039
   cd ..
16040
   rmdir conftest
16041
   $rm conftest*
16042
 
16043
fi
16044
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16045
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16046
 
16047
 
16048
hard_links="nottested"
16049
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16050
  # do not overwrite the value of need_locks provided by the user
16051
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16052
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16053
  hard_links=yes
16054
  $rm conftest*
16055
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16056
  touch conftest.a
16057
  ln conftest.a conftest.b 2>&5 || hard_links=no
16058
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16059
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16060
echo "${ECHO_T}$hard_links" >&6; }
16061
  if test "$hard_links" = no; then
16062
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16063
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16064
    need_locks=warn
16065
  fi
16066
else
16067
  need_locks=no
16068
fi
16069
 
16070
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16071
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16072
 
16073
  runpath_var=
16074
  allow_undefined_flag_GCJ=
16075
  enable_shared_with_static_runtimes_GCJ=no
16076
  archive_cmds_GCJ=
16077
  archive_expsym_cmds_GCJ=
16078
  old_archive_From_new_cmds_GCJ=
16079
  old_archive_from_expsyms_cmds_GCJ=
16080
  export_dynamic_flag_spec_GCJ=
16081
  whole_archive_flag_spec_GCJ=
16082
  thread_safe_flag_spec_GCJ=
16083
  hardcode_libdir_flag_spec_GCJ=
16084
  hardcode_libdir_flag_spec_ld_GCJ=
16085
  hardcode_libdir_separator_GCJ=
16086
  hardcode_direct_GCJ=no
16087
  hardcode_minus_L_GCJ=no
16088
  hardcode_shlibpath_var_GCJ=unsupported
16089
  link_all_deplibs_GCJ=unknown
16090
  hardcode_automatic_GCJ=no
16091
  module_cmds_GCJ=
16092
  module_expsym_cmds_GCJ=
16093
  always_export_symbols_GCJ=no
16094
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16095
  # include_expsyms should be a list of space-separated symbols to be *always*
16096
  # included in the symbol list
16097
  include_expsyms_GCJ=
16098
  # exclude_expsyms can be an extended regexp of symbols to exclude
16099
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16100
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16101
  # as well as any symbol that contains `d'.
16102
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16103
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16104
  # platforms (ab)use it in PIC code, but their linkers get confused if
16105
  # the symbol is explicitly referenced.  Since portable code cannot
16106
  # rely on this symbol name, it's probably fine to never include it in
16107
  # preloaded symbol tables.
16108
  extract_expsyms_cmds=
16109
  # Just being paranoid about ensuring that cc_basename is set.
16110
  for cc_temp in $compiler""; do
16111
  case $cc_temp in
16112
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16113
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16114
    \-*) ;;
16115
    *) break;;
16116
  esac
16117
done
16118
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16119
 
16120
  case $host_os in
16121
  cygwin* | mingw* | pw32*)
16122
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16123
    # When not using gcc, we currently assume that we are using
16124
    # Microsoft Visual C++.
16125
    if test "$GCC" != yes; then
16126
      with_gnu_ld=no
16127
    fi
16128
    ;;
16129
  interix*)
16130
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16131
    with_gnu_ld=yes
16132
    ;;
16133
  openbsd*)
16134
    with_gnu_ld=no
16135
    ;;
16136
  esac
16137
 
16138
  ld_shlibs_GCJ=yes
16139
  if test "$with_gnu_ld" = yes; then
16140
    # If archive_cmds runs LD, not CC, wlarc should be empty
16141
    wlarc='${wl}'
16142
 
16143
    # Set some defaults for GNU ld with shared library support. These
16144
    # are reset later if shared libraries are not supported. Putting them
16145
    # here allows them to be overridden if necessary.
16146
    runpath_var=LD_RUN_PATH
16147
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16148
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16149
    # ancient GNU ld didn't support --whole-archive et. al.
16150
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16151
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16152
      else
16153
        whole_archive_flag_spec_GCJ=
16154
    fi
16155
    supports_anon_versioning=no
16156
    case `$LD -v 2>/dev/null` in
16157
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16158
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16159
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16160
      *\ 2.11.*) ;; # other 2.11 versions
16161
      *) supports_anon_versioning=yes ;;
16162
    esac
16163
 
16164
    # See if GNU ld supports shared libraries.
16165
    case $host_os in
16166
    aix3* | aix4* | aix5*)
16167
      # On AIX/PPC, the GNU linker is very broken
16168
      if test "$host_cpu" != ia64; then
16169
        ld_shlibs_GCJ=no
16170
        cat <&2
16171
 
16172
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16173
*** to be unable to reliably create shared libraries on AIX.
16174
*** Therefore, libtool is disabling shared libraries support.  If you
16175
*** really care for shared libraries, you may want to modify your PATH
16176
*** so that a non-GNU linker is found, and then restart.
16177
 
16178
EOF
16179
      fi
16180
      ;;
16181
 
16182
    amigaos*)
16183
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16184
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16185
      hardcode_minus_L_GCJ=yes
16186
 
16187
      # Samuel A. Falvo II  reports
16188
      # that the semantics of dynamic libraries on AmigaOS, at least up
16189
      # to version 4, is to share data among multiple programs linked
16190
      # with the same dynamic library.  Since this doesn't match the
16191
      # behavior of shared libraries on other platforms, we can't use
16192
      # them.
16193
      ld_shlibs_GCJ=no
16194
      ;;
16195
 
16196
    beos*)
16197
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16198
        allow_undefined_flag_GCJ=unsupported
16199
        # Joseph Beckenbach  says some releases of gcc
16200
        # support --undefined.  This deserves some investigation.  FIXME
16201
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16202
      else
16203
        ld_shlibs_GCJ=no
16204
      fi
16205
      ;;
16206
 
16207
    cygwin* | mingw* | pw32*)
16208
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16209
      # as there is no search path for DLLs.
16210
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16211
      allow_undefined_flag_GCJ=unsupported
16212
      always_export_symbols_GCJ=no
16213
      enable_shared_with_static_runtimes_GCJ=yes
16214
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16215
 
16216
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16217
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16218
        # If the export-symbols file already is a .def file (1st line
16219
        # is EXPORTS), use it as is; otherwise, prepend...
16220
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16221
          cp $export_symbols $output_objdir/$soname.def;
16222
        else
16223
          echo EXPORTS > $output_objdir/$soname.def;
16224
          cat $export_symbols >> $output_objdir/$soname.def;
16225
        fi~
16226
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16227
      else
16228
        ld_shlibs_GCJ=no
16229
      fi
16230
      ;;
16231
 
16232
    interix[3-9]*)
16233
      hardcode_direct_GCJ=no
16234
      hardcode_shlibpath_var_GCJ=no
16235
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16236
      export_dynamic_flag_spec_GCJ='${wl}-E'
16237
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16238
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16239
      # default) and relocated if they conflict, which is a slow very memory
16240
      # consuming and fragmenting process.  To avoid this, we pick a random,
16241
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16242
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16243
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16244
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16245
      ;;
16246
 
16247
    gnu* | linux* | k*bsd*-gnu)
16248
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16249
        tmp_addflag=
16250
        case $cc_basename,$host_cpu in
16251
        pgcc*)                          # Portland Group C compiler
16252
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16253
          tmp_addflag=' $pic_flag'
16254
          ;;
16255
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16256
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16257
          tmp_addflag=' $pic_flag -Mnomain' ;;
16258
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16259
          tmp_addflag=' -i_dynamic' ;;
16260
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16261
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16262
        ifc* | ifort*)                  # Intel Fortran compiler
16263
          tmp_addflag=' -nofor_main' ;;
16264
        esac
16265
        case `$CC -V 2>&1 | sed 5q` in
16266
        *Sun\ C*)                       # Sun C 5.9
16267
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16268
          tmp_sharedflag='-G' ;;
16269
        *Sun\ F*)                       # Sun Fortran 8.3
16270
          tmp_sharedflag='-G' ;;
16271
        *)
16272
          tmp_sharedflag='-shared' ;;
16273
        esac
16274
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275
 
16276
        if test $supports_anon_versioning = yes; then
16277
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16278
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16279
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16280
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16281
        fi
16282
      else
16283
        ld_shlibs_GCJ=no
16284
      fi
16285
      ;;
16286
 
16287
    netbsd*)
16288
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16289
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16290
        wlarc=
16291
      else
16292
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16293
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16294
      fi
16295
      ;;
16296
 
16297
    solaris*)
16298
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16299
        ld_shlibs_GCJ=no
16300
        cat <&2
16301
 
16302
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16303
*** create shared libraries on Solaris systems.  Therefore, libtool
16304
*** is disabling shared libraries support.  We urge you to upgrade GNU
16305
*** binutils to release 2.9.1 or newer.  Another option is to modify
16306
*** your PATH or compiler configuration so that the native linker is
16307
*** used, and then restart.
16308
 
16309
EOF
16310
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16312
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16313
      else
16314
        ld_shlibs_GCJ=no
16315
      fi
16316
      ;;
16317
 
16318
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16319
      case `$LD -v 2>&1` in
16320
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16321
        ld_shlibs_GCJ=no
16322
        cat <<_LT_EOF 1>&2
16323
 
16324
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16325
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16326
*** is disabling shared libraries support.  We urge you to upgrade GNU
16327
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16328
*** your PATH or compiler configuration so that the native linker is
16329
*** used, and then restart.
16330
 
16331
_LT_EOF
16332
        ;;
16333
        *)
16334
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16335
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16336
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16337
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16338
          else
16339
            ld_shlibs_GCJ=no
16340
          fi
16341
        ;;
16342
      esac
16343
      ;;
16344
 
16345
    sunos4*)
16346
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16347
      wlarc=
16348
      hardcode_direct_GCJ=yes
16349
      hardcode_shlibpath_var_GCJ=no
16350
      ;;
16351
 
16352
    *)
16353
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16354
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16355
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16356
      else
16357
        ld_shlibs_GCJ=no
16358
      fi
16359
      ;;
16360
    esac
16361
 
16362
    if test "$ld_shlibs_GCJ" = no; then
16363
      runpath_var=
16364
      hardcode_libdir_flag_spec_GCJ=
16365
      export_dynamic_flag_spec_GCJ=
16366
      whole_archive_flag_spec_GCJ=
16367
    fi
16368
  else
16369
    # PORTME fill in a description of your system's linker (not GNU ld)
16370
    case $host_os in
16371
    aix3*)
16372
      allow_undefined_flag_GCJ=unsupported
16373
      always_export_symbols_GCJ=yes
16374
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16375
      # Note: this linker hardcodes the directories in LIBPATH if there
16376
      # are no directories specified by -L.
16377
      hardcode_minus_L_GCJ=yes
16378
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16379
        # Neither direct hardcoding nor static linking is supported with a
16380
        # broken collect2.
16381
        hardcode_direct_GCJ=unsupported
16382
      fi
16383
      ;;
16384
 
16385
    aix4* | aix5*)
16386
      if test "$host_cpu" = ia64; then
16387
        # On IA64, the linker does run time linking by default, so we don't
16388
        # have to do anything special.
16389
        aix_use_runtimelinking=no
16390
        exp_sym_flag='-Bexport'
16391
        no_entry_flag=""
16392
      else
16393
        # If we're using GNU nm, then we don't want the "-C" option.
16394
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16395
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16396
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16397
        else
16398
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16399
        fi
16400
        aix_use_runtimelinking=no
16401
 
16402
        # Test if we are trying to use run time linking or normal
16403
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16404
        # need to do runtime linking.
16405
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16406
          for ld_flag in $LDFLAGS; do
16407
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16408
            aix_use_runtimelinking=yes
16409
            break
16410
          fi
16411
          done
16412
          ;;
16413
        esac
16414
 
16415
        exp_sym_flag='-bexport'
16416
        no_entry_flag='-bnoentry'
16417
      fi
16418
 
16419
      # When large executables or shared objects are built, AIX ld can
16420
      # have problems creating the table of contents.  If linking a library
16421
      # or program results in "error TOC overflow" add -mminimal-toc to
16422
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16423
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16424
 
16425
      archive_cmds_GCJ=''
16426
      hardcode_direct_GCJ=yes
16427
      hardcode_libdir_separator_GCJ=':'
16428
      link_all_deplibs_GCJ=yes
16429
 
16430
      if test "$GCC" = yes; then
16431
        case $host_os in aix4.[012]|aix4.[012].*)
16432
        # We only want to do this on AIX 4.2 and lower, the check
16433
        # below for broken collect2 doesn't work under 4.3+
16434
          collect2name=`${CC} -print-prog-name=collect2`
16435
          if test -f "$collect2name" && \
16436
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16437
          then
16438
          # We have reworked collect2
16439
          :
16440
          else
16441
          # We have old collect2
16442
          hardcode_direct_GCJ=unsupported
16443
          # It fails to find uninstalled libraries when the uninstalled
16444
          # path is not listed in the libpath.  Setting hardcode_minus_L
16445
          # to unsupported forces relinking
16446
          hardcode_minus_L_GCJ=yes
16447
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16448
          hardcode_libdir_separator_GCJ=
16449
          fi
16450
          ;;
16451
        esac
16452
        shared_flag='-shared'
16453
        if test "$aix_use_runtimelinking" = yes; then
16454
          shared_flag="$shared_flag "'${wl}-G'
16455
        fi
16456
      else
16457
        # not using gcc
16458
        if test "$host_cpu" = ia64; then
16459
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16460
        # chokes on -Wl,-G. The following line is correct:
16461
          shared_flag='-G'
16462
        else
16463
          if test "$aix_use_runtimelinking" = yes; then
16464
            shared_flag='${wl}-G'
16465
          else
16466
            shared_flag='${wl}-bM:SRE'
16467
          fi
16468
        fi
16469
      fi
16470
 
16471
      # It seems that -bexpall does not export symbols beginning with
16472
      # underscore (_), so it is better to generate a list of symbols to export.
16473
      always_export_symbols_GCJ=yes
16474
      if test "$aix_use_runtimelinking" = yes; then
16475
        # Warning - without using the other runtime loading flags (-brtl),
16476
        # -berok will link without error, but may produce a broken library.
16477
        allow_undefined_flag_GCJ='-berok'
16478
       # Determine the default libpath from the value encoded in an empty executable.
16479
       cat >conftest.$ac_ext <<_ACEOF
16480
/* confdefs.h.  */
16481
_ACEOF
16482
cat confdefs.h >>conftest.$ac_ext
16483
cat >>conftest.$ac_ext <<_ACEOF
16484
/* end confdefs.h.  */
16485
 
16486
int
16487
main ()
16488
{
16489
 
16490
  ;
16491
  return 0;
16492
}
16493
_ACEOF
16494
rm -f conftest.$ac_objext conftest$ac_exeext
16495
if { (ac_try="$ac_link"
16496
case "(($ac_try" in
16497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498
  *) ac_try_echo=$ac_try;;
16499
esac
16500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501
  (eval "$ac_link") 2>conftest.er1
16502
  ac_status=$?
16503
  grep -v '^ *+' conftest.er1 >conftest.err
16504
  rm -f conftest.er1
16505
  cat conftest.err >&5
16506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507
  (exit $ac_status); } && {
16508
         test -z "$ac_c_werror_flag" ||
16509
         test ! -s conftest.err
16510
       } && test -s conftest$ac_exeext &&
16511
       $as_test_x conftest$ac_exeext; then
16512
 
16513
lt_aix_libpath_sed='
16514
    /Import File Strings/,/^$/ {
16515
        /^0/ {
16516
            s/^0  *\(.*\)$/\1/
16517
            p
16518
        }
16519
    }'
16520
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16521
# Check for a 64-bit object if we didn't find anything.
16522
if test -z "$aix_libpath"; then
16523
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16524
fi
16525
else
16526
  echo "$as_me: failed program was:" >&5
16527
sed 's/^/| /' conftest.$ac_ext >&5
16528
 
16529
 
16530
fi
16531
 
16532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16533
      conftest$ac_exeext conftest.$ac_ext
16534
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16535
 
16536
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16537
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16538
       else
16539
        if test "$host_cpu" = ia64; then
16540
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16541
          allow_undefined_flag_GCJ="-z nodefs"
16542
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16543
        else
16544
         # Determine the default libpath from the value encoded in an empty executable.
16545
         cat >conftest.$ac_ext <<_ACEOF
16546
/* confdefs.h.  */
16547
_ACEOF
16548
cat confdefs.h >>conftest.$ac_ext
16549
cat >>conftest.$ac_ext <<_ACEOF
16550
/* end confdefs.h.  */
16551
 
16552
int
16553
main ()
16554
{
16555
 
16556
  ;
16557
  return 0;
16558
}
16559
_ACEOF
16560
rm -f conftest.$ac_objext conftest$ac_exeext
16561
if { (ac_try="$ac_link"
16562
case "(($ac_try" in
16563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564
  *) ac_try_echo=$ac_try;;
16565
esac
16566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567
  (eval "$ac_link") 2>conftest.er1
16568
  ac_status=$?
16569
  grep -v '^ *+' conftest.er1 >conftest.err
16570
  rm -f conftest.er1
16571
  cat conftest.err >&5
16572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573
  (exit $ac_status); } && {
16574
         test -z "$ac_c_werror_flag" ||
16575
         test ! -s conftest.err
16576
       } && test -s conftest$ac_exeext &&
16577
       $as_test_x conftest$ac_exeext; then
16578
 
16579
lt_aix_libpath_sed='
16580
    /Import File Strings/,/^$/ {
16581
        /^0/ {
16582
            s/^0  *\(.*\)$/\1/
16583
            p
16584
        }
16585
    }'
16586
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16587
# Check for a 64-bit object if we didn't find anything.
16588
if test -z "$aix_libpath"; then
16589
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16590
fi
16591
else
16592
  echo "$as_me: failed program was:" >&5
16593
sed 's/^/| /' conftest.$ac_ext >&5
16594
 
16595
 
16596
fi
16597
 
16598
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16599
      conftest$ac_exeext conftest.$ac_ext
16600
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16601
 
16602
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16603
          # Warning - without using the other run time loading flags,
16604
          # -berok will link without error, but may produce a broken library.
16605
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16606
          allow_undefined_flag_GCJ=' ${wl}-berok'
16607
          # Exported symbols can be pulled into shared objects from archives
16608
          whole_archive_flag_spec_GCJ='$convenience'
16609
          archive_cmds_need_lc_GCJ=yes
16610
          # This is similar to how AIX traditionally builds its shared libraries.
16611
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16612
        fi
16613
      fi
16614
      ;;
16615
 
16616
    amigaos*)
16617
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16618
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16619
      hardcode_minus_L_GCJ=yes
16620
      # see comment about different semantics on the GNU ld section
16621
      ld_shlibs_GCJ=no
16622
      ;;
16623
 
16624
    bsdi[45]*)
16625
      export_dynamic_flag_spec_GCJ=-rdynamic
16626
      ;;
16627
 
16628
    cygwin* | mingw* | pw32*)
16629
      # When not using gcc, we currently assume that we are using
16630
      # Microsoft Visual C++.
16631
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16632
      # no search path for DLLs.
16633
      hardcode_libdir_flag_spec_GCJ=' '
16634
      allow_undefined_flag_GCJ=unsupported
16635
      # Tell ltmain to make .lib files, not .a files.
16636
      libext=lib
16637
      # Tell ltmain to make .dll files, not .so files.
16638
      shrext_cmds=".dll"
16639
      # FIXME: Setting linknames here is a bad hack.
16640
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16641
      # The linker will automatically build a .lib file if we build a DLL.
16642
      old_archive_From_new_cmds_GCJ='true'
16643
      # FIXME: Should let the user specify the lib program.
16644
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16645
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16646
      enable_shared_with_static_runtimes_GCJ=yes
16647
      ;;
16648
 
16649
    darwin* | rhapsody*)
16650
      case $host_os in
16651
        rhapsody* | darwin1.[012])
16652
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16653
         ;;
16654
       *) # Darwin 1.3 on
16655
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16656
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16657
         else
16658
           case ${MACOSX_DEPLOYMENT_TARGET} in
16659
             10.[012])
16660
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16661
               ;;
16662
             10.*)
16663
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16664
               ;;
16665
           esac
16666
         fi
16667
         ;;
16668
      esac
16669
      archive_cmds_need_lc_GCJ=no
16670
      hardcode_direct_GCJ=no
16671
      hardcode_automatic_GCJ=yes
16672
      hardcode_shlibpath_var_GCJ=unsupported
16673
      whole_archive_flag_spec_GCJ=''
16674
      link_all_deplibs_GCJ=yes
16675
    if test "$GCC" = yes ; then
16676
        output_verbose_link_cmd='echo'
16677
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16678
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16679
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16680
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16681
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16682
    else
16683
      case $cc_basename in
16684
        xlc*)
16685
         output_verbose_link_cmd='echo'
16686
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16687
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16688
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16689
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16690
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16691
          ;;
16692
       *)
16693
         ld_shlibs_GCJ=no
16694
          ;;
16695
      esac
16696
    fi
16697
      ;;
16698
 
16699
    dgux*)
16700
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16702
      hardcode_shlibpath_var_GCJ=no
16703
      ;;
16704
 
16705
    freebsd1*)
16706
      ld_shlibs_GCJ=no
16707
      ;;
16708
 
16709
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16710
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16711
    # does not break anything, and helps significantly (at the cost of a little
16712
    # extra space).
16713
    freebsd2.2*)
16714
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16715
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16716
      hardcode_direct_GCJ=yes
16717
      hardcode_shlibpath_var_GCJ=no
16718
      ;;
16719
 
16720
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16721
    freebsd2*)
16722
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16723
      hardcode_direct_GCJ=yes
16724
      hardcode_minus_L_GCJ=yes
16725
      hardcode_shlibpath_var_GCJ=no
16726
      ;;
16727
 
16728
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16729
    freebsd* | dragonfly*)
16730
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16731
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16732
      hardcode_direct_GCJ=yes
16733
      hardcode_shlibpath_var_GCJ=no
16734
      ;;
16735
 
16736
    hpux9*)
16737
      if test "$GCC" = yes; then
16738
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16739
      else
16740
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16741
      fi
16742
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16743
      hardcode_libdir_separator_GCJ=:
16744
      hardcode_direct_GCJ=yes
16745
 
16746
      # hardcode_minus_L: Not really in the search PATH,
16747
      # but as the default location of the library.
16748
      hardcode_minus_L_GCJ=yes
16749
      export_dynamic_flag_spec_GCJ='${wl}-E'
16750
      ;;
16751
 
16752
    hpux10*)
16753
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16754
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16755
      else
16756
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16757
      fi
16758
      if test "$with_gnu_ld" = no; then
16759
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16760
        hardcode_libdir_separator_GCJ=:
16761
 
16762
        hardcode_direct_GCJ=yes
16763
        export_dynamic_flag_spec_GCJ='${wl}-E'
16764
 
16765
        # hardcode_minus_L: Not really in the search PATH,
16766
        # but as the default location of the library.
16767
        hardcode_minus_L_GCJ=yes
16768
      fi
16769
      ;;
16770
 
16771
    hpux11*)
16772
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16773
        case $host_cpu in
16774
        hppa*64*)
16775
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16776
          ;;
16777
        ia64*)
16778
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16779
          ;;
16780
        *)
16781
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16782
          ;;
16783
        esac
16784
      else
16785
        case $host_cpu in
16786
        hppa*64*)
16787
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788
          ;;
16789
        ia64*)
16790
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16791
          ;;
16792
        *)
16793
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16794
          ;;
16795
        esac
16796
      fi
16797
      if test "$with_gnu_ld" = no; then
16798
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16799
        hardcode_libdir_separator_GCJ=:
16800
 
16801
        case $host_cpu in
16802
        hppa*64*|ia64*)
16803
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16804
          hardcode_direct_GCJ=no
16805
          hardcode_shlibpath_var_GCJ=no
16806
          ;;
16807
        *)
16808
          hardcode_direct_GCJ=yes
16809
          export_dynamic_flag_spec_GCJ='${wl}-E'
16810
 
16811
          # hardcode_minus_L: Not really in the search PATH,
16812
          # but as the default location of the library.
16813
          hardcode_minus_L_GCJ=yes
16814
          ;;
16815
        esac
16816
      fi
16817
      ;;
16818
 
16819
    irix5* | irix6* | nonstopux*)
16820
      if test "$GCC" = yes; then
16821
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16822
      else
16823
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16824
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16825
      fi
16826
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16827
      hardcode_libdir_separator_GCJ=:
16828
      link_all_deplibs_GCJ=yes
16829
      ;;
16830
 
16831
    netbsd*)
16832
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16833
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16834
      else
16835
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16836
      fi
16837
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16838
      hardcode_direct_GCJ=yes
16839
      hardcode_shlibpath_var_GCJ=no
16840
      ;;
16841
 
16842
    newsos6)
16843
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16844
      hardcode_direct_GCJ=yes
16845
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16846
      hardcode_libdir_separator_GCJ=:
16847
      hardcode_shlibpath_var_GCJ=no
16848
      ;;
16849
 
16850
    openbsd*)
16851
      if test -f /usr/libexec/ld.so; then
16852
        hardcode_direct_GCJ=yes
16853
        hardcode_shlibpath_var_GCJ=no
16854
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16855
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16856
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16857
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16858
          export_dynamic_flag_spec_GCJ='${wl}-E'
16859
        else
16860
          case $host_os in
16861
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16862
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16863
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
16864
             ;;
16865
           *)
16866
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16867
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16868
             ;;
16869
          esac
16870
        fi
16871
      else
16872
        ld_shlibs_GCJ=no
16873
      fi
16874
      ;;
16875
 
16876
    os2*)
16877
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878
      hardcode_minus_L_GCJ=yes
16879
      allow_undefined_flag_GCJ=unsupported
16880
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16881
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16882
      ;;
16883
 
16884
    osf3*)
16885
      if test "$GCC" = yes; then
16886
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16887
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16888
      else
16889
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16890
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16891
      fi
16892
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16893
      hardcode_libdir_separator_GCJ=:
16894
      ;;
16895
 
16896
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16897
      if test "$GCC" = yes; then
16898
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16899
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16900
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16901
      else
16902
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16903
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16904
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16905
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16906
 
16907
        # Both c and cxx compiler support -rpath directly
16908
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16909
      fi
16910
      hardcode_libdir_separator_GCJ=:
16911
      ;;
16912
 
16913
    solaris*)
16914
      no_undefined_flag_GCJ=' -z text'
16915
      if test "$GCC" = yes; then
16916
        wlarc='${wl}'
16917
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16918
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16919
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16920
      else
16921
        wlarc=''
16922
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16923
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16924
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16925
      fi
16926
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16927
      hardcode_shlibpath_var_GCJ=no
16928
      case $host_os in
16929
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16930
      *)
16931
        # The compiler driver will combine and reorder linker options,
16932
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
16933
        # but is careful enough not to reorder.
16934
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16935
        if test "$GCC" = yes; then
16936
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16937
        else
16938
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16939
        fi
16940
        ;;
16941
      esac
16942
      link_all_deplibs_GCJ=yes
16943
      ;;
16944
 
16945
    sunos4*)
16946
      if test "x$host_vendor" = xsequent; then
16947
        # Use $CC to link under sequent, because it throws in some extra .o
16948
        # files that make .init and .fini sections work.
16949
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16950
      else
16951
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16952
      fi
16953
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16954
      hardcode_direct_GCJ=yes
16955
      hardcode_minus_L_GCJ=yes
16956
      hardcode_shlibpath_var_GCJ=no
16957
      ;;
16958
 
16959
    sysv4)
16960
      case $host_vendor in
16961
        sni)
16962
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963
          hardcode_direct_GCJ=yes # is this really true???
16964
        ;;
16965
        siemens)
16966
          ## LD is ld it makes a PLAMLIB
16967
          ## CC just makes a GrossModule.
16968
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16969
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16970
          hardcode_direct_GCJ=no
16971
        ;;
16972
        motorola)
16973
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16975
        ;;
16976
      esac
16977
      runpath_var='LD_RUN_PATH'
16978
      hardcode_shlibpath_var_GCJ=no
16979
      ;;
16980
 
16981
    sysv4.3*)
16982
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16983
      hardcode_shlibpath_var_GCJ=no
16984
      export_dynamic_flag_spec_GCJ='-Bexport'
16985
      ;;
16986
 
16987
    sysv4*MP*)
16988
      if test -d /usr/nec; then
16989
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16990
        hardcode_shlibpath_var_GCJ=no
16991
        runpath_var=LD_RUN_PATH
16992
        hardcode_runpath_var=yes
16993
        ld_shlibs_GCJ=yes
16994
      fi
16995
      ;;
16996
 
16997
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16998
      no_undefined_flag_GCJ='${wl}-z,text'
16999
      archive_cmds_need_lc_GCJ=no
17000
      hardcode_shlibpath_var_GCJ=no
17001
      runpath_var='LD_RUN_PATH'
17002
 
17003
      if test "$GCC" = yes; then
17004
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17005
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17006
      else
17007
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17008
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17009
      fi
17010
      ;;
17011
 
17012
    sysv5* | sco3.2v5* | sco5v6*)
17013
      # Note: We can NOT use -z defs as we might desire, because we do not
17014
      # link with -lc, and that would cause any symbols used from libc to
17015
      # always be unresolved, which means just about no library would
17016
      # ever link correctly.  If we're not using GNU ld we use -z text
17017
      # though, which does catch some bad symbols but isn't as heavy-handed
17018
      # as -z defs.
17019
      no_undefined_flag_GCJ='${wl}-z,text'
17020
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17021
      archive_cmds_need_lc_GCJ=no
17022
      hardcode_shlibpath_var_GCJ=no
17023
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17024
      hardcode_libdir_separator_GCJ=':'
17025
      link_all_deplibs_GCJ=yes
17026
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17027
      runpath_var='LD_RUN_PATH'
17028
 
17029
      if test "$GCC" = yes; then
17030
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17031
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17032
      else
17033
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17034
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17035
      fi
17036
      ;;
17037
 
17038
    uts4*)
17039
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17041
      hardcode_shlibpath_var_GCJ=no
17042
      ;;
17043
 
17044
    *)
17045
      ld_shlibs_GCJ=no
17046
      ;;
17047
    esac
17048
  fi
17049
 
17050
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17051
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17052
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17053
 
17054
#
17055
# Do we need to explicitly link libc?
17056
#
17057
case "x$archive_cmds_need_lc_GCJ" in
17058
x|xyes)
17059
  # Assume -lc should be added
17060
  archive_cmds_need_lc_GCJ=yes
17061
 
17062
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17063
    case $archive_cmds_GCJ in
17064
    *'~'*)
17065
      # FIXME: we may have to deal with multi-command sequences.
17066
      ;;
17067
    '$CC '*)
17068
      # Test whether the compiler implicitly links with -lc since on some
17069
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17070
      # to ld, don't add -lc before -lgcc.
17071
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17072
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17073
      $rm conftest*
17074
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17075
 
17076
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077
  (eval $ac_compile) 2>&5
17078
  ac_status=$?
17079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080
  (exit $ac_status); } 2>conftest.err; then
17081
        soname=conftest
17082
        lib=conftest
17083
        libobjs=conftest.$ac_objext
17084
        deplibs=
17085
        wl=$lt_prog_compiler_wl_GCJ
17086
        pic_flag=$lt_prog_compiler_pic_GCJ
17087
        compiler_flags=-v
17088
        linker_flags=-v
17089
        verstring=
17090
        output_objdir=.
17091
        libname=conftest
17092
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17093
        allow_undefined_flag_GCJ=
17094
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17095
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17096
  ac_status=$?
17097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098
  (exit $ac_status); }
17099
        then
17100
          archive_cmds_need_lc_GCJ=no
17101
        else
17102
          archive_cmds_need_lc_GCJ=yes
17103
        fi
17104
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17105
      else
17106
        cat conftest.err 1>&5
17107
      fi
17108
      $rm conftest*
17109
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17110
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17111
      ;;
17112
    esac
17113
  fi
17114
  ;;
17115
esac
17116
 
17117
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17118
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17119
library_names_spec=
17120
libname_spec='lib$name'
17121
soname_spec=
17122
shrext_cmds=".so"
17123
postinstall_cmds=
17124
postuninstall_cmds=
17125
finish_cmds=
17126
finish_eval=
17127
shlibpath_var=
17128
shlibpath_overrides_runpath=unknown
17129
version_type=none
17130
dynamic_linker="$host_os ld.so"
17131
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17132
 
17133
need_lib_prefix=unknown
17134
hardcode_into_libs=no
17135
 
17136
# when you set need_version to no, make sure it does not cause -set_version
17137
# flags to be left without arguments
17138
need_version=unknown
17139
 
17140
case $host_os in
17141
aix3*)
17142
  version_type=linux
17143
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17144
  shlibpath_var=LIBPATH
17145
 
17146
  # AIX 3 has no versioning support, so we append a major version to the name.
17147
  soname_spec='${libname}${release}${shared_ext}$major'
17148
  ;;
17149
 
17150
aix4* | aix5*)
17151
  version_type=linux
17152
  need_lib_prefix=no
17153
  need_version=no
17154
  hardcode_into_libs=yes
17155
  if test "$host_cpu" = ia64; then
17156
    # AIX 5 supports IA64
17157
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17158
    shlibpath_var=LD_LIBRARY_PATH
17159
  else
17160
    # With GCC up to 2.95.x, collect2 would create an import file
17161
    # for dependence libraries.  The import file would start with
17162
    # the line `#! .'.  This would cause the generated library to
17163
    # depend on `.', always an invalid library.  This was fixed in
17164
    # development snapshots of GCC prior to 3.0.
17165
    case $host_os in
17166
      aix4 | aix4.[01] | aix4.[01].*)
17167
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17168
           echo ' yes '
17169
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17170
        :
17171
      else
17172
        can_build_shared=no
17173
      fi
17174
      ;;
17175
    esac
17176
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17177
    # soname into executable. Probably we can add versioning support to
17178
    # collect2, so additional links can be useful in future.
17179
    if test "$aix_use_runtimelinking" = yes; then
17180
      # If using run time linking (on AIX 4.2 or later) use lib.so
17181
      # instead of lib.a to let people know that these are not
17182
      # typical AIX shared libraries.
17183
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184
    else
17185
      # We preserve .a as extension for shared libraries through AIX4.2
17186
      # and later when we are not doing run time linking.
17187
      library_names_spec='${libname}${release}.a $libname.a'
17188
      soname_spec='${libname}${release}${shared_ext}$major'
17189
    fi
17190
    shlibpath_var=LIBPATH
17191
  fi
17192
  ;;
17193
 
17194
amigaos*)
17195
  library_names_spec='$libname.ixlibrary $libname.a'
17196
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17197
  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'
17198
  ;;
17199
 
17200
beos*)
17201
  library_names_spec='${libname}${shared_ext}'
17202
  dynamic_linker="$host_os ld.so"
17203
  shlibpath_var=LIBRARY_PATH
17204
  ;;
17205
 
17206
bsdi[45]*)
17207
  version_type=linux
17208
  need_version=no
17209
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210
  soname_spec='${libname}${release}${shared_ext}$major'
17211
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17212
  shlibpath_var=LD_LIBRARY_PATH
17213
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17214
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17215
  # the default ld.so.conf also contains /usr/contrib/lib and
17216
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17217
  # libtool to hard-code these into programs
17218
  ;;
17219
 
17220
cygwin* | mingw* | pw32*)
17221
  version_type=windows
17222
  shrext_cmds=".dll"
17223
  need_version=no
17224
  need_lib_prefix=no
17225
 
17226
  case $GCC,$host_os in
17227
  yes,cygwin* | yes,mingw* | yes,pw32*)
17228
    library_names_spec='$libname.dll.a'
17229
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17230
    postinstall_cmds='base_file=`basename \${file}`~
17231
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17232
      dldir=$destdir/`dirname \$dlpath`~
17233
      test -d \$dldir || mkdir -p \$dldir~
17234
      $install_prog $dir/$dlname \$dldir/$dlname~
17235
      chmod a+x \$dldir/$dlname'
17236
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17237
      dlpath=$dir/\$dldll~
17238
       $rm \$dlpath'
17239
    shlibpath_overrides_runpath=yes
17240
 
17241
    case $host_os in
17242
    cygwin*)
17243
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17244
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17245
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17246
      ;;
17247
    mingw*)
17248
      # MinGW DLLs use traditional 'lib' prefix
17249
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17250
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17251
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17252
        # It is most probably a Windows format PATH printed by
17253
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17254
        # path with ; separators, and with drive letters. We can handle the
17255
        # drive letters (cygwin fileutils understands them), so leave them,
17256
        # especially as we might pass files found there to a mingw objdump,
17257
        # which wouldn't understand a cygwinified path. Ahh.
17258
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17259
      else
17260
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17261
      fi
17262
      ;;
17263
    pw32*)
17264
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17265
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17266
      ;;
17267
    esac
17268
    ;;
17269
 
17270
  *)
17271
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17272
    ;;
17273
  esac
17274
  dynamic_linker='Win32 ld.exe'
17275
  # FIXME: first we should search . and the directory the executable is in
17276
  shlibpath_var=PATH
17277
  ;;
17278
 
17279
darwin* | rhapsody*)
17280
  dynamic_linker="$host_os dyld"
17281
  version_type=darwin
17282
  need_lib_prefix=no
17283
  need_version=no
17284
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17285
  soname_spec='${libname}${release}${major}$shared_ext'
17286
  shlibpath_overrides_runpath=yes
17287
  shlibpath_var=DYLD_LIBRARY_PATH
17288
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17289
 
17290
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17291
  ;;
17292
 
17293
dgux*)
17294
  version_type=linux
17295
  need_lib_prefix=no
17296
  need_version=no
17297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17298
  soname_spec='${libname}${release}${shared_ext}$major'
17299
  shlibpath_var=LD_LIBRARY_PATH
17300
  ;;
17301
 
17302
freebsd1*)
17303
  dynamic_linker=no
17304
  ;;
17305
 
17306
freebsd* | dragonfly*)
17307
  # DragonFly does not have aout.  When/if they implement a new
17308
  # versioning mechanism, adjust this.
17309
  if test -x /usr/bin/objformat; then
17310
    objformat=`/usr/bin/objformat`
17311
  else
17312
    case $host_os in
17313
    freebsd[123]*) objformat=aout ;;
17314
    *) objformat=elf ;;
17315
    esac
17316
  fi
17317
  version_type=freebsd-$objformat
17318
  case $version_type in
17319
    freebsd-elf*)
17320
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17321
      need_version=no
17322
      need_lib_prefix=no
17323
      ;;
17324
    freebsd-*)
17325
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17326
      need_version=yes
17327
      ;;
17328
  esac
17329
  shlibpath_var=LD_LIBRARY_PATH
17330
  case $host_os in
17331
  freebsd2*)
17332
    shlibpath_overrides_runpath=yes
17333
    ;;
17334
  freebsd3.[01]* | freebsdelf3.[01]*)
17335
    shlibpath_overrides_runpath=yes
17336
    hardcode_into_libs=yes
17337
    ;;
17338
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17339
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17340
    shlibpath_overrides_runpath=no
17341
    hardcode_into_libs=yes
17342
    ;;
17343
  *) # from 4.6 on, and DragonFly
17344
    shlibpath_overrides_runpath=yes
17345
    hardcode_into_libs=yes
17346
    ;;
17347
  esac
17348
  ;;
17349
 
17350
gnu*)
17351
  version_type=linux
17352
  need_lib_prefix=no
17353
  need_version=no
17354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17355
  soname_spec='${libname}${release}${shared_ext}$major'
17356
  shlibpath_var=LD_LIBRARY_PATH
17357
  hardcode_into_libs=yes
17358
  ;;
17359
 
17360
hpux9* | hpux10* | hpux11*)
17361
  # Give a soname corresponding to the major version so that dld.sl refuses to
17362
  # link against other versions.
17363
  version_type=sunos
17364
  need_lib_prefix=no
17365
  need_version=no
17366
  case $host_cpu in
17367
  ia64*)
17368
    shrext_cmds='.so'
17369
    hardcode_into_libs=yes
17370
    dynamic_linker="$host_os dld.so"
17371
    shlibpath_var=LD_LIBRARY_PATH
17372
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17373
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374
    soname_spec='${libname}${release}${shared_ext}$major'
17375
    if test "X$HPUX_IA64_MODE" = X32; then
17376
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17377
    else
17378
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17379
    fi
17380
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17381
    ;;
17382
   hppa*64*)
17383
     shrext_cmds='.sl'
17384
     hardcode_into_libs=yes
17385
     dynamic_linker="$host_os dld.sl"
17386
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17387
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17388
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389
     soname_spec='${libname}${release}${shared_ext}$major'
17390
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17391
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17392
     ;;
17393
   *)
17394
    shrext_cmds='.sl'
17395
    dynamic_linker="$host_os dld.sl"
17396
    shlibpath_var=SHLIB_PATH
17397
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17398
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399
    soname_spec='${libname}${release}${shared_ext}$major'
17400
    ;;
17401
  esac
17402
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17403
  postinstall_cmds='chmod 555 $lib'
17404
  ;;
17405
 
17406
interix[3-9]*)
17407
  version_type=linux
17408
  need_lib_prefix=no
17409
  need_version=no
17410
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17411
  soname_spec='${libname}${release}${shared_ext}$major'
17412
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17413
  shlibpath_var=LD_LIBRARY_PATH
17414
  shlibpath_overrides_runpath=no
17415
  hardcode_into_libs=yes
17416
  ;;
17417
 
17418
irix5* | irix6* | nonstopux*)
17419
  case $host_os in
17420
    nonstopux*) version_type=nonstopux ;;
17421
    *)
17422
        if test "$lt_cv_prog_gnu_ld" = yes; then
17423
                version_type=linux
17424
        else
17425
                version_type=irix
17426
        fi ;;
17427
  esac
17428
  need_lib_prefix=no
17429
  need_version=no
17430
  soname_spec='${libname}${release}${shared_ext}$major'
17431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17432
  case $host_os in
17433
  irix5* | nonstopux*)
17434
    libsuff= shlibsuff=
17435
    ;;
17436
  *)
17437
    case $LD in # libtool.m4 will add one of these switches to LD
17438
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17439
      libsuff= shlibsuff= libmagic=32-bit;;
17440
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17441
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17442
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17443
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17444
    *) libsuff= shlibsuff= libmagic=never-match;;
17445
    esac
17446
    ;;
17447
  esac
17448
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17449
  shlibpath_overrides_runpath=no
17450
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17451
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17452
  hardcode_into_libs=yes
17453
  ;;
17454
 
17455
# No shared lib support for Linux oldld, aout, or coff.
17456
linux*oldld* | linux*aout* | linux*coff*)
17457
  dynamic_linker=no
17458
  ;;
17459
 
17460
# This must be Linux ELF.
17461
linux* | k*bsd*-gnu)
17462
  version_type=linux
17463
  need_lib_prefix=no
17464
  need_version=no
17465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466
  soname_spec='${libname}${release}${shared_ext}$major'
17467
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17468
  shlibpath_var=LD_LIBRARY_PATH
17469
  shlibpath_overrides_runpath=no
17470
  # This implies no fast_install, which is unacceptable.
17471
  # Some rework will be needed to allow for fast_install
17472
  # before this can be enabled.
17473
  hardcode_into_libs=yes
17474
 
17475
  # Append ld.so.conf contents to the search path
17476
  if test -f /etc/ld.so.conf; then
17477
    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' ' '`
17478 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17479 19 jeremybenn
  fi
17480
 
17481
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17482
  # powerpc, because MkLinux only supported shared libraries with the
17483
  # GNU dynamic linker.  Since this was broken with cross compilers,
17484
  # most powerpc-linux boxes support dynamic linking these days and
17485
  # people can always --disable-shared, the test was removed, and we
17486
  # assume the GNU/Linux dynamic linker is in use.
17487
  dynamic_linker='GNU/Linux ld.so'
17488
  ;;
17489
 
17490
netbsd*)
17491
  version_type=sunos
17492
  need_lib_prefix=no
17493
  need_version=no
17494
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17495
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17496
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17497
    dynamic_linker='NetBSD (a.out) ld.so'
17498
  else
17499
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17500
    soname_spec='${libname}${release}${shared_ext}$major'
17501
    dynamic_linker='NetBSD ld.elf_so'
17502
  fi
17503
  shlibpath_var=LD_LIBRARY_PATH
17504
  shlibpath_overrides_runpath=yes
17505
  hardcode_into_libs=yes
17506
  ;;
17507
 
17508
newsos6)
17509
  version_type=linux
17510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511
  shlibpath_var=LD_LIBRARY_PATH
17512
  shlibpath_overrides_runpath=yes
17513
  ;;
17514
 
17515
nto-qnx*)
17516
  version_type=linux
17517
  need_lib_prefix=no
17518
  need_version=no
17519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520
  soname_spec='${libname}${release}${shared_ext}$major'
17521
  shlibpath_var=LD_LIBRARY_PATH
17522
  shlibpath_overrides_runpath=yes
17523
  ;;
17524
 
17525
openbsd*)
17526
  version_type=sunos
17527
  sys_lib_dlsearch_path_spec="/usr/lib"
17528
  need_lib_prefix=no
17529
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17530
  case $host_os in
17531
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17532
    *)                         need_version=no  ;;
17533
  esac
17534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17535
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17536
  shlibpath_var=LD_LIBRARY_PATH
17537
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17538
    case $host_os in
17539
      openbsd2.[89] | openbsd2.[89].*)
17540
        shlibpath_overrides_runpath=no
17541
        ;;
17542
      *)
17543
        shlibpath_overrides_runpath=yes
17544
        ;;
17545
      esac
17546
  else
17547
    shlibpath_overrides_runpath=yes
17548
  fi
17549
  ;;
17550
 
17551
os2*)
17552
  libname_spec='$name'
17553
  shrext_cmds=".dll"
17554
  need_lib_prefix=no
17555
  library_names_spec='$libname${shared_ext} $libname.a'
17556
  dynamic_linker='OS/2 ld.exe'
17557
  shlibpath_var=LIBPATH
17558
  ;;
17559
 
17560
osf3* | osf4* | osf5*)
17561
  version_type=osf
17562
  need_lib_prefix=no
17563
  need_version=no
17564
  soname_spec='${libname}${release}${shared_ext}$major'
17565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17566
  shlibpath_var=LD_LIBRARY_PATH
17567
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17568
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17569
  ;;
17570
 
17571
rdos*)
17572
  dynamic_linker=no
17573
  ;;
17574
 
17575
solaris*)
17576
  version_type=linux
17577
  need_lib_prefix=no
17578
  need_version=no
17579
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580
  soname_spec='${libname}${release}${shared_ext}$major'
17581
  shlibpath_var=LD_LIBRARY_PATH
17582
  shlibpath_overrides_runpath=yes
17583
  hardcode_into_libs=yes
17584
  # ldd complains unless libraries are executable
17585
  postinstall_cmds='chmod +x $lib'
17586
  ;;
17587
 
17588
sunos4*)
17589
  version_type=sunos
17590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17591
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17592
  shlibpath_var=LD_LIBRARY_PATH
17593
  shlibpath_overrides_runpath=yes
17594
  if test "$with_gnu_ld" = yes; then
17595
    need_lib_prefix=no
17596
  fi
17597
  need_version=yes
17598
  ;;
17599
 
17600
sysv4 | sysv4.3*)
17601
  version_type=linux
17602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603
  soname_spec='${libname}${release}${shared_ext}$major'
17604
  shlibpath_var=LD_LIBRARY_PATH
17605
  case $host_vendor in
17606
    sni)
17607
      shlibpath_overrides_runpath=no
17608
      need_lib_prefix=no
17609
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17610
      runpath_var=LD_RUN_PATH
17611
      ;;
17612
    siemens)
17613
      need_lib_prefix=no
17614
      ;;
17615
    motorola)
17616
      need_lib_prefix=no
17617
      need_version=no
17618
      shlibpath_overrides_runpath=no
17619
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17620
      ;;
17621
  esac
17622
  ;;
17623
 
17624
sysv4*MP*)
17625
  if test -d /usr/nec ;then
17626
    version_type=linux
17627
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17628
    soname_spec='$libname${shared_ext}.$major'
17629
    shlibpath_var=LD_LIBRARY_PATH
17630
  fi
17631
  ;;
17632
 
17633
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17634
  version_type=freebsd-elf
17635
  need_lib_prefix=no
17636
  need_version=no
17637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17638
  soname_spec='${libname}${release}${shared_ext}$major'
17639
  shlibpath_var=LD_LIBRARY_PATH
17640
  hardcode_into_libs=yes
17641
  if test "$with_gnu_ld" = yes; then
17642
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17643
    shlibpath_overrides_runpath=no
17644
  else
17645
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17646
    shlibpath_overrides_runpath=yes
17647
    case $host_os in
17648
      sco3.2v5*)
17649
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17650
        ;;
17651
    esac
17652
  fi
17653
  sys_lib_dlsearch_path_spec='/usr/lib'
17654
  ;;
17655
 
17656
uts4*)
17657
  version_type=linux
17658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659
  soname_spec='${libname}${release}${shared_ext}$major'
17660
  shlibpath_var=LD_LIBRARY_PATH
17661
  ;;
17662
 
17663
*)
17664
  dynamic_linker=no
17665
  ;;
17666
esac
17667
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17668
echo "${ECHO_T}$dynamic_linker" >&6; }
17669
test "$dynamic_linker" = no && can_build_shared=no
17670
 
17671
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17672
if test "$GCC" = yes; then
17673
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17674
fi
17675
 
17676
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17677
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17678
hardcode_action_GCJ=
17679
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17680
   test -n "$runpath_var_GCJ" || \
17681
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17682
 
17683
  # We can hardcode non-existant directories.
17684
  if test "$hardcode_direct_GCJ" != no &&
17685
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17686
     # have to relink, otherwise we might link with an installed library
17687
     # when we should be linking with a yet-to-be-installed one
17688
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17689
     test "$hardcode_minus_L_GCJ" != no; then
17690
    # Linking always hardcodes the temporary library directory.
17691
    hardcode_action_GCJ=relink
17692
  else
17693
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17694
    hardcode_action_GCJ=immediate
17695
  fi
17696
else
17697
  # We cannot hardcode anything, or else we can only hardcode existing
17698
  # directories.
17699
  hardcode_action_GCJ=unsupported
17700
fi
17701
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17702
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17703
 
17704
if test "$hardcode_action_GCJ" = relink; then
17705
  # Fast installation is not supported
17706
  enable_fast_install=no
17707
elif test "$shlibpath_overrides_runpath" = yes ||
17708
     test "$enable_shared" = no; then
17709
  # Fast installation is not necessary
17710
  enable_fast_install=needless
17711
fi
17712
 
17713
 
17714
# The else clause should only fire when bootstrapping the
17715
# libtool distribution, otherwise you forgot to ship ltmain.sh
17716
# with your package, and you will get complaints that there are
17717
# no rules to generate ltmain.sh.
17718
if test -f "$ltmain"; then
17719
  # See if we are running on zsh, and set the options which allow our commands through
17720
  # without removal of \ escapes.
17721
  if test -n "${ZSH_VERSION+set}" ; then
17722
    setopt NO_GLOB_SUBST
17723
  fi
17724
  # Now quote all the things that may contain metacharacters while being
17725
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17726
  # variables and quote the copies for generation of the libtool script.
17727
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17728
    SED SHELL STRIP \
17729
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17730
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17731
    deplibs_check_method reload_flag reload_cmds need_locks \
17732
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17733
    lt_cv_sys_global_symbol_to_c_name_address \
17734
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17735
    old_postinstall_cmds old_postuninstall_cmds \
17736
    compiler_GCJ \
17737
    CC_GCJ \
17738
    LD_GCJ \
17739
    lt_prog_compiler_wl_GCJ \
17740
    lt_prog_compiler_pic_GCJ \
17741
    lt_prog_compiler_static_GCJ \
17742
    lt_prog_compiler_no_builtin_flag_GCJ \
17743
    export_dynamic_flag_spec_GCJ \
17744
    thread_safe_flag_spec_GCJ \
17745
    whole_archive_flag_spec_GCJ \
17746
    enable_shared_with_static_runtimes_GCJ \
17747
    old_archive_cmds_GCJ \
17748
    old_archive_from_new_cmds_GCJ \
17749
    predep_objects_GCJ \
17750
    postdep_objects_GCJ \
17751
    predeps_GCJ \
17752
    postdeps_GCJ \
17753
    compiler_lib_search_path_GCJ \
17754
    archive_cmds_GCJ \
17755
    archive_expsym_cmds_GCJ \
17756
    postinstall_cmds_GCJ \
17757
    postuninstall_cmds_GCJ \
17758
    old_archive_from_expsyms_cmds_GCJ \
17759
    allow_undefined_flag_GCJ \
17760
    no_undefined_flag_GCJ \
17761
    export_symbols_cmds_GCJ \
17762
    hardcode_libdir_flag_spec_GCJ \
17763
    hardcode_libdir_flag_spec_ld_GCJ \
17764
    hardcode_libdir_separator_GCJ \
17765
    hardcode_automatic_GCJ \
17766
    module_cmds_GCJ \
17767
    module_expsym_cmds_GCJ \
17768
    lt_cv_prog_compiler_c_o_GCJ \
17769
    fix_srcfile_path_GCJ \
17770
    exclude_expsyms_GCJ \
17771
    include_expsyms_GCJ; do
17772
 
17773
    case $var in
17774
    old_archive_cmds_GCJ | \
17775
    old_archive_from_new_cmds_GCJ | \
17776
    archive_cmds_GCJ | \
17777
    archive_expsym_cmds_GCJ | \
17778
    module_cmds_GCJ | \
17779
    module_expsym_cmds_GCJ | \
17780
    old_archive_from_expsyms_cmds_GCJ | \
17781
    export_symbols_cmds_GCJ | \
17782
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17783
    postinstall_cmds | postuninstall_cmds | \
17784
    old_postinstall_cmds | old_postuninstall_cmds | \
17785
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17786
      # Double-quote double-evaled strings.
17787
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17788
      ;;
17789
    *)
17790
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17791
      ;;
17792
    esac
17793
  done
17794
 
17795
  case $lt_echo in
17796
  *'\$0 --fallback-echo"')
17797
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17798
    ;;
17799
  esac
17800
 
17801
cfgfile="$ofile"
17802
 
17803
  cat <<__EOF__ >> "$cfgfile"
17804
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17805
 
17806
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17807
 
17808
# Shell to use when invoking shell scripts.
17809
SHELL=$lt_SHELL
17810
 
17811
# Whether or not to build shared libraries.
17812
build_libtool_libs=$enable_shared
17813
 
17814
# Whether or not to build static libraries.
17815
build_old_libs=$enable_static
17816
 
17817
# Whether or not to add -lc for building shared libraries.
17818
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17819
 
17820
# Whether or not to disallow shared libs when runtime libs are static
17821
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17822
 
17823
# Whether or not to optimize for fast installation.
17824
fast_install=$enable_fast_install
17825
 
17826
# The host system.
17827
host_alias=$host_alias
17828
host=$host
17829
host_os=$host_os
17830
 
17831
# The build system.
17832
build_alias=$build_alias
17833
build=$build
17834
build_os=$build_os
17835
 
17836
# An echo program that does not interpret backslashes.
17837
echo=$lt_echo
17838
 
17839
# The archiver.
17840
AR=$lt_AR
17841
AR_FLAGS=$lt_AR_FLAGS
17842
 
17843
# A C compiler.
17844
LTCC=$lt_LTCC
17845
 
17846
# LTCC compiler flags.
17847
LTCFLAGS=$lt_LTCFLAGS
17848
 
17849
# A language-specific compiler.
17850
CC=$lt_compiler_GCJ
17851
 
17852
# Is the compiler the GNU C compiler?
17853
with_gcc=$GCC_GCJ
17854
 
17855
# An ERE matcher.
17856
EGREP=$lt_EGREP
17857
 
17858
# The linker used to build libraries.
17859
LD=$lt_LD_GCJ
17860
 
17861
# Whether we need hard or soft links.
17862
LN_S=$lt_LN_S
17863
 
17864
# A BSD-compatible nm program.
17865
NM=$lt_NM
17866
 
17867
# A symbol stripping program
17868
STRIP=$lt_STRIP
17869
 
17870
# Used to examine libraries when file_magic_cmd begins "file"
17871
MAGIC_CMD=$MAGIC_CMD
17872
 
17873
# Used on cygwin: DLL creation program.
17874
DLLTOOL="$DLLTOOL"
17875
 
17876
# Used on cygwin: object dumper.
17877
OBJDUMP="$OBJDUMP"
17878
 
17879
# Used on cygwin: assembler.
17880
AS="$AS"
17881
 
17882
# The name of the directory that contains temporary libtool files.
17883
objdir=$objdir
17884
 
17885
# How to create reloadable object files.
17886
reload_flag=$lt_reload_flag
17887
reload_cmds=$lt_reload_cmds
17888
 
17889
# How to pass a linker flag through the compiler.
17890
wl=$lt_lt_prog_compiler_wl_GCJ
17891
 
17892
# Object file suffix (normally "o").
17893
objext="$ac_objext"
17894
 
17895
# Old archive suffix (normally "a").
17896
libext="$libext"
17897
 
17898
# Shared library suffix (normally ".so").
17899
shrext_cmds='$shrext_cmds'
17900
 
17901
# Executable file suffix (normally "").
17902
exeext="$exeext"
17903
 
17904
# Additional compiler flags for building library objects.
17905
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17906
pic_mode=$pic_mode
17907
 
17908
# What is the maximum length of a command?
17909
max_cmd_len=$lt_cv_sys_max_cmd_len
17910
 
17911
# Does compiler simultaneously support -c and -o options?
17912
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17913
 
17914
# Must we lock files when doing compilation?
17915
need_locks=$lt_need_locks
17916
 
17917
# Do we need the lib prefix for modules?
17918
need_lib_prefix=$need_lib_prefix
17919
 
17920
# Do we need a version for libraries?
17921
need_version=$need_version
17922
 
17923
# Whether dlopen is supported.
17924
dlopen_support=$enable_dlopen
17925
 
17926
# Whether dlopen of programs is supported.
17927
dlopen_self=$enable_dlopen_self
17928
 
17929
# Whether dlopen of statically linked programs is supported.
17930
dlopen_self_static=$enable_dlopen_self_static
17931
 
17932
# Compiler flag to prevent dynamic linking.
17933
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17934
 
17935
# Compiler flag to turn off builtin functions.
17936
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17937
 
17938
# Compiler flag to allow reflexive dlopens.
17939
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17940
 
17941
# Compiler flag to generate shared objects directly from archives.
17942
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17943
 
17944
# Compiler flag to generate thread-safe objects.
17945
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17946
 
17947
# Library versioning type.
17948
version_type=$version_type
17949
 
17950
# Format of library name prefix.
17951
libname_spec=$lt_libname_spec
17952
 
17953
# List of archive names.  First name is the real one, the rest are links.
17954
# The last name is the one that the linker finds with -lNAME.
17955
library_names_spec=$lt_library_names_spec
17956
 
17957
# The coded name of the library, if different from the real name.
17958
soname_spec=$lt_soname_spec
17959
 
17960
# Commands used to build and install an old-style archive.
17961
RANLIB=$lt_RANLIB
17962
old_archive_cmds=$lt_old_archive_cmds_GCJ
17963
old_postinstall_cmds=$lt_old_postinstall_cmds
17964
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17965
 
17966
# Create an old-style archive from a shared archive.
17967
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17968
 
17969
# Create a temporary old-style archive to link instead of a shared archive.
17970
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17971
 
17972
# Commands used to build and install a shared archive.
17973
archive_cmds=$lt_archive_cmds_GCJ
17974
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17975
postinstall_cmds=$lt_postinstall_cmds
17976
postuninstall_cmds=$lt_postuninstall_cmds
17977
 
17978
# Commands used to build a loadable module (assumed same as above if empty)
17979
module_cmds=$lt_module_cmds_GCJ
17980
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17981
 
17982
# Commands to strip libraries.
17983
old_striplib=$lt_old_striplib
17984
striplib=$lt_striplib
17985
 
17986
# Dependencies to place before the objects being linked to create a
17987
# shared library.
17988
predep_objects=$lt_predep_objects_GCJ
17989
 
17990
# Dependencies to place after the objects being linked to create a
17991
# shared library.
17992
postdep_objects=$lt_postdep_objects_GCJ
17993
 
17994
# Dependencies to place before the objects being linked to create a
17995
# shared library.
17996
predeps=$lt_predeps_GCJ
17997
 
17998
# Dependencies to place after the objects being linked to create a
17999
# shared library.
18000
postdeps=$lt_postdeps_GCJ
18001
 
18002
# The library search path used internally by the compiler when linking
18003
# a shared library.
18004
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18005
 
18006
# Method to check whether dependent libraries are shared objects.
18007
deplibs_check_method=$lt_deplibs_check_method
18008
 
18009
# Command to use when deplibs_check_method == file_magic.
18010
file_magic_cmd=$lt_file_magic_cmd
18011
 
18012
# Flag that allows shared libraries with undefined symbols to be built.
18013
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18014
 
18015
# Flag that forces no undefined symbols.
18016
no_undefined_flag=$lt_no_undefined_flag_GCJ
18017
 
18018
# Commands used to finish a libtool library installation in a directory.
18019
finish_cmds=$lt_finish_cmds
18020
 
18021
# Same as above, but a single script fragment to be evaled but not shown.
18022
finish_eval=$lt_finish_eval
18023
 
18024
# Take the output of nm and produce a listing of raw symbols and C names.
18025
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18026
 
18027
# Transform the output of nm in a proper C declaration
18028
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18029
 
18030
# Transform the output of nm in a C name address pair
18031
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18032
 
18033
# This is the shared library runtime path variable.
18034
runpath_var=$runpath_var
18035
 
18036
# This is the shared library path variable.
18037
shlibpath_var=$shlibpath_var
18038
 
18039
# Is shlibpath searched before the hard-coded library search path?
18040
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18041
 
18042
# How to hardcode a shared library path into an executable.
18043
hardcode_action=$hardcode_action_GCJ
18044
 
18045
# Whether we should hardcode library paths into libraries.
18046
hardcode_into_libs=$hardcode_into_libs
18047
 
18048
# Flag to hardcode \$libdir into a binary during linking.
18049
# This must work even if \$libdir does not exist.
18050
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18051
 
18052
# If ld is used when linking, flag to hardcode \$libdir into
18053
# a binary during linking. This must work even if \$libdir does
18054
# not exist.
18055
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18056
 
18057
# Whether we need a single -rpath flag with a separated argument.
18058
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18059
 
18060
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18061
# resulting binary.
18062
hardcode_direct=$hardcode_direct_GCJ
18063
 
18064
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18065
# resulting binary.
18066
hardcode_minus_L=$hardcode_minus_L_GCJ
18067
 
18068
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18069
# the resulting binary.
18070
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18071
 
18072
# Set to yes if building a shared library automatically hardcodes DIR into the library
18073
# and all subsequent libraries and executables linked against it.
18074
hardcode_automatic=$hardcode_automatic_GCJ
18075
 
18076
# Variables whose values should be saved in libtool wrapper scripts and
18077
# restored at relink time.
18078
variables_saved_for_relink="$variables_saved_for_relink"
18079
 
18080
# Whether libtool must link a program against all its dependency libraries.
18081
link_all_deplibs=$link_all_deplibs_GCJ
18082
 
18083
# Compile-time system search path for libraries
18084
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18085
 
18086
# Run-time system search path for libraries
18087
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18088
 
18089
# Fix the shell variable \$srcfile for the compiler.
18090
fix_srcfile_path=$lt_fix_srcfile_path
18091
 
18092
# Set to yes if exported symbols are required.
18093
always_export_symbols=$always_export_symbols_GCJ
18094
 
18095
# The commands to list exported symbols.
18096
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18097
 
18098
# The commands to extract the exported symbol list from a shared archive.
18099
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18100
 
18101
# Symbols that should not be listed in the preloaded symbols.
18102
exclude_expsyms=$lt_exclude_expsyms_GCJ
18103
 
18104
# Symbols that must always be exported.
18105
include_expsyms=$lt_include_expsyms_GCJ
18106
 
18107
# ### END LIBTOOL TAG CONFIG: $tagname
18108
 
18109
__EOF__
18110
 
18111
 
18112
else
18113
  # If there is no Makefile yet, we rely on a make rule to execute
18114
  # `config.status --recheck' to rerun these tests and create the
18115
  # libtool script then.
18116
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18117
  if test -f "$ltmain_in"; then
18118
    test -f Makefile && make "$ltmain"
18119
  fi
18120
fi
18121
 
18122
 
18123
ac_ext=c
18124
ac_cpp='$CPP $CPPFLAGS'
18125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18128
 
18129
CC="$lt_save_CC"
18130
 
18131
        else
18132
          tagname=""
18133
        fi
18134
        ;;
18135
 
18136
      RC)
18137
 
18138
 
18139
# Source file extension for RC test sources.
18140
ac_ext=rc
18141
 
18142
# Object file extension for compiled RC test sources.
18143
objext=o
18144
objext_RC=$objext
18145
 
18146
# Code to be used in simple compile tests
18147
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18148
 
18149
# Code to be used in simple link tests
18150
lt_simple_link_test_code="$lt_simple_compile_test_code"
18151
 
18152
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18153
 
18154
# If no C compiler was specified, use CC.
18155
LTCC=${LTCC-"$CC"}
18156
 
18157
# If no C compiler flags were specified, use CFLAGS.
18158
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18159
 
18160
# Allow CC to be a program name with arguments.
18161
compiler=$CC
18162
 
18163
 
18164
# save warnings/boilerplate of simple test code
18165
ac_outfile=conftest.$ac_objext
18166
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18167
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18168
_lt_compiler_boilerplate=`cat conftest.err`
18169
$rm conftest*
18170
 
18171
ac_outfile=conftest.$ac_objext
18172
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18173
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18174
_lt_linker_boilerplate=`cat conftest.err`
18175
$rm conftest*
18176
 
18177
 
18178
# Allow CC to be a program name with arguments.
18179
lt_save_CC="$CC"
18180
CC=${RC-"windres"}
18181
compiler=$CC
18182
compiler_RC=$CC
18183
for cc_temp in $compiler""; do
18184
  case $cc_temp in
18185
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18186
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18187
    \-*) ;;
18188
    *) break;;
18189
  esac
18190
done
18191
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18192
 
18193
lt_cv_prog_compiler_c_o_RC=yes
18194
 
18195
# The else clause should only fire when bootstrapping the
18196
# libtool distribution, otherwise you forgot to ship ltmain.sh
18197
# with your package, and you will get complaints that there are
18198
# no rules to generate ltmain.sh.
18199
if test -f "$ltmain"; then
18200
  # See if we are running on zsh, and set the options which allow our commands through
18201
  # without removal of \ escapes.
18202
  if test -n "${ZSH_VERSION+set}" ; then
18203
    setopt NO_GLOB_SUBST
18204
  fi
18205
  # Now quote all the things that may contain metacharacters while being
18206
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18207
  # variables and quote the copies for generation of the libtool script.
18208
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18209
    SED SHELL STRIP \
18210
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18211
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18212
    deplibs_check_method reload_flag reload_cmds need_locks \
18213
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18214
    lt_cv_sys_global_symbol_to_c_name_address \
18215
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18216
    old_postinstall_cmds old_postuninstall_cmds \
18217
    compiler_RC \
18218
    CC_RC \
18219
    LD_RC \
18220
    lt_prog_compiler_wl_RC \
18221
    lt_prog_compiler_pic_RC \
18222
    lt_prog_compiler_static_RC \
18223
    lt_prog_compiler_no_builtin_flag_RC \
18224
    export_dynamic_flag_spec_RC \
18225
    thread_safe_flag_spec_RC \
18226
    whole_archive_flag_spec_RC \
18227
    enable_shared_with_static_runtimes_RC \
18228
    old_archive_cmds_RC \
18229
    old_archive_from_new_cmds_RC \
18230
    predep_objects_RC \
18231
    postdep_objects_RC \
18232
    predeps_RC \
18233
    postdeps_RC \
18234
    compiler_lib_search_path_RC \
18235
    archive_cmds_RC \
18236
    archive_expsym_cmds_RC \
18237
    postinstall_cmds_RC \
18238
    postuninstall_cmds_RC \
18239
    old_archive_from_expsyms_cmds_RC \
18240
    allow_undefined_flag_RC \
18241
    no_undefined_flag_RC \
18242
    export_symbols_cmds_RC \
18243
    hardcode_libdir_flag_spec_RC \
18244
    hardcode_libdir_flag_spec_ld_RC \
18245
    hardcode_libdir_separator_RC \
18246
    hardcode_automatic_RC \
18247
    module_cmds_RC \
18248
    module_expsym_cmds_RC \
18249
    lt_cv_prog_compiler_c_o_RC \
18250
    fix_srcfile_path_RC \
18251
    exclude_expsyms_RC \
18252
    include_expsyms_RC; do
18253
 
18254
    case $var in
18255
    old_archive_cmds_RC | \
18256
    old_archive_from_new_cmds_RC | \
18257
    archive_cmds_RC | \
18258
    archive_expsym_cmds_RC | \
18259
    module_cmds_RC | \
18260
    module_expsym_cmds_RC | \
18261
    old_archive_from_expsyms_cmds_RC | \
18262
    export_symbols_cmds_RC | \
18263
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18264
    postinstall_cmds | postuninstall_cmds | \
18265
    old_postinstall_cmds | old_postuninstall_cmds | \
18266
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18267
      # Double-quote double-evaled strings.
18268
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18269
      ;;
18270
    *)
18271
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18272
      ;;
18273
    esac
18274
  done
18275
 
18276
  case $lt_echo in
18277
  *'\$0 --fallback-echo"')
18278
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18279
    ;;
18280
  esac
18281
 
18282
cfgfile="$ofile"
18283
 
18284
  cat <<__EOF__ >> "$cfgfile"
18285
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18286
 
18287
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18288
 
18289
# Shell to use when invoking shell scripts.
18290
SHELL=$lt_SHELL
18291
 
18292
# Whether or not to build shared libraries.
18293
build_libtool_libs=$enable_shared
18294
 
18295
# Whether or not to build static libraries.
18296
build_old_libs=$enable_static
18297
 
18298
# Whether or not to add -lc for building shared libraries.
18299
build_libtool_need_lc=$archive_cmds_need_lc_RC
18300
 
18301
# Whether or not to disallow shared libs when runtime libs are static
18302
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18303
 
18304
# Whether or not to optimize for fast installation.
18305
fast_install=$enable_fast_install
18306
 
18307
# The host system.
18308
host_alias=$host_alias
18309
host=$host
18310
host_os=$host_os
18311
 
18312
# The build system.
18313
build_alias=$build_alias
18314
build=$build
18315
build_os=$build_os
18316
 
18317
# An echo program that does not interpret backslashes.
18318
echo=$lt_echo
18319
 
18320
# The archiver.
18321
AR=$lt_AR
18322
AR_FLAGS=$lt_AR_FLAGS
18323
 
18324
# A C compiler.
18325
LTCC=$lt_LTCC
18326
 
18327
# LTCC compiler flags.
18328
LTCFLAGS=$lt_LTCFLAGS
18329
 
18330
# A language-specific compiler.
18331
CC=$lt_compiler_RC
18332
 
18333
# Is the compiler the GNU C compiler?
18334
with_gcc=$GCC_RC
18335
 
18336
# An ERE matcher.
18337
EGREP=$lt_EGREP
18338
 
18339
# The linker used to build libraries.
18340
LD=$lt_LD_RC
18341
 
18342
# Whether we need hard or soft links.
18343
LN_S=$lt_LN_S
18344
 
18345
# A BSD-compatible nm program.
18346
NM=$lt_NM
18347
 
18348
# A symbol stripping program
18349
STRIP=$lt_STRIP
18350
 
18351
# Used to examine libraries when file_magic_cmd begins "file"
18352
MAGIC_CMD=$MAGIC_CMD
18353
 
18354
# Used on cygwin: DLL creation program.
18355
DLLTOOL="$DLLTOOL"
18356
 
18357
# Used on cygwin: object dumper.
18358
OBJDUMP="$OBJDUMP"
18359
 
18360
# Used on cygwin: assembler.
18361
AS="$AS"
18362
 
18363
# The name of the directory that contains temporary libtool files.
18364
objdir=$objdir
18365
 
18366
# How to create reloadable object files.
18367
reload_flag=$lt_reload_flag
18368
reload_cmds=$lt_reload_cmds
18369
 
18370
# How to pass a linker flag through the compiler.
18371
wl=$lt_lt_prog_compiler_wl_RC
18372
 
18373
# Object file suffix (normally "o").
18374
objext="$ac_objext"
18375
 
18376
# Old archive suffix (normally "a").
18377
libext="$libext"
18378
 
18379
# Shared library suffix (normally ".so").
18380
shrext_cmds='$shrext_cmds'
18381
 
18382
# Executable file suffix (normally "").
18383
exeext="$exeext"
18384
 
18385
# Additional compiler flags for building library objects.
18386
pic_flag=$lt_lt_prog_compiler_pic_RC
18387
pic_mode=$pic_mode
18388
 
18389
# What is the maximum length of a command?
18390
max_cmd_len=$lt_cv_sys_max_cmd_len
18391
 
18392
# Does compiler simultaneously support -c and -o options?
18393
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18394
 
18395
# Must we lock files when doing compilation?
18396
need_locks=$lt_need_locks
18397
 
18398
# Do we need the lib prefix for modules?
18399
need_lib_prefix=$need_lib_prefix
18400
 
18401
# Do we need a version for libraries?
18402
need_version=$need_version
18403
 
18404
# Whether dlopen is supported.
18405
dlopen_support=$enable_dlopen
18406
 
18407
# Whether dlopen of programs is supported.
18408
dlopen_self=$enable_dlopen_self
18409
 
18410
# Whether dlopen of statically linked programs is supported.
18411
dlopen_self_static=$enable_dlopen_self_static
18412
 
18413
# Compiler flag to prevent dynamic linking.
18414
link_static_flag=$lt_lt_prog_compiler_static_RC
18415
 
18416
# Compiler flag to turn off builtin functions.
18417
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18418
 
18419
# Compiler flag to allow reflexive dlopens.
18420
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18421
 
18422
# Compiler flag to generate shared objects directly from archives.
18423
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18424
 
18425
# Compiler flag to generate thread-safe objects.
18426
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18427
 
18428
# Library versioning type.
18429
version_type=$version_type
18430
 
18431
# Format of library name prefix.
18432
libname_spec=$lt_libname_spec
18433
 
18434
# List of archive names.  First name is the real one, the rest are links.
18435
# The last name is the one that the linker finds with -lNAME.
18436
library_names_spec=$lt_library_names_spec
18437
 
18438
# The coded name of the library, if different from the real name.
18439
soname_spec=$lt_soname_spec
18440
 
18441
# Commands used to build and install an old-style archive.
18442
RANLIB=$lt_RANLIB
18443
old_archive_cmds=$lt_old_archive_cmds_RC
18444
old_postinstall_cmds=$lt_old_postinstall_cmds
18445
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18446
 
18447
# Create an old-style archive from a shared archive.
18448
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18449
 
18450
# Create a temporary old-style archive to link instead of a shared archive.
18451
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18452
 
18453
# Commands used to build and install a shared archive.
18454
archive_cmds=$lt_archive_cmds_RC
18455
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18456
postinstall_cmds=$lt_postinstall_cmds
18457
postuninstall_cmds=$lt_postuninstall_cmds
18458
 
18459
# Commands used to build a loadable module (assumed same as above if empty)
18460
module_cmds=$lt_module_cmds_RC
18461
module_expsym_cmds=$lt_module_expsym_cmds_RC
18462
 
18463
# Commands to strip libraries.
18464
old_striplib=$lt_old_striplib
18465
striplib=$lt_striplib
18466
 
18467
# Dependencies to place before the objects being linked to create a
18468
# shared library.
18469
predep_objects=$lt_predep_objects_RC
18470
 
18471
# Dependencies to place after the objects being linked to create a
18472
# shared library.
18473
postdep_objects=$lt_postdep_objects_RC
18474
 
18475
# Dependencies to place before the objects being linked to create a
18476
# shared library.
18477
predeps=$lt_predeps_RC
18478
 
18479
# Dependencies to place after the objects being linked to create a
18480
# shared library.
18481
postdeps=$lt_postdeps_RC
18482
 
18483
# The library search path used internally by the compiler when linking
18484
# a shared library.
18485
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18486
 
18487
# Method to check whether dependent libraries are shared objects.
18488
deplibs_check_method=$lt_deplibs_check_method
18489
 
18490
# Command to use when deplibs_check_method == file_magic.
18491
file_magic_cmd=$lt_file_magic_cmd
18492
 
18493
# Flag that allows shared libraries with undefined symbols to be built.
18494
allow_undefined_flag=$lt_allow_undefined_flag_RC
18495
 
18496
# Flag that forces no undefined symbols.
18497
no_undefined_flag=$lt_no_undefined_flag_RC
18498
 
18499
# Commands used to finish a libtool library installation in a directory.
18500
finish_cmds=$lt_finish_cmds
18501
 
18502
# Same as above, but a single script fragment to be evaled but not shown.
18503
finish_eval=$lt_finish_eval
18504
 
18505
# Take the output of nm and produce a listing of raw symbols and C names.
18506
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18507
 
18508
# Transform the output of nm in a proper C declaration
18509
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18510
 
18511
# Transform the output of nm in a C name address pair
18512
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18513
 
18514
# This is the shared library runtime path variable.
18515
runpath_var=$runpath_var
18516
 
18517
# This is the shared library path variable.
18518
shlibpath_var=$shlibpath_var
18519
 
18520
# Is shlibpath searched before the hard-coded library search path?
18521
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18522
 
18523
# How to hardcode a shared library path into an executable.
18524
hardcode_action=$hardcode_action_RC
18525
 
18526
# Whether we should hardcode library paths into libraries.
18527
hardcode_into_libs=$hardcode_into_libs
18528
 
18529
# Flag to hardcode \$libdir into a binary during linking.
18530
# This must work even if \$libdir does not exist.
18531
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18532
 
18533
# If ld is used when linking, flag to hardcode \$libdir into
18534
# a binary during linking. This must work even if \$libdir does
18535
# not exist.
18536
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18537
 
18538
# Whether we need a single -rpath flag with a separated argument.
18539
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18540
 
18541
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18542
# resulting binary.
18543
hardcode_direct=$hardcode_direct_RC
18544
 
18545
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18546
# resulting binary.
18547
hardcode_minus_L=$hardcode_minus_L_RC
18548
 
18549
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18550
# the resulting binary.
18551
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18552
 
18553
# Set to yes if building a shared library automatically hardcodes DIR into the library
18554
# and all subsequent libraries and executables linked against it.
18555
hardcode_automatic=$hardcode_automatic_RC
18556
 
18557
# Variables whose values should be saved in libtool wrapper scripts and
18558
# restored at relink time.
18559
variables_saved_for_relink="$variables_saved_for_relink"
18560
 
18561
# Whether libtool must link a program against all its dependency libraries.
18562
link_all_deplibs=$link_all_deplibs_RC
18563
 
18564
# Compile-time system search path for libraries
18565
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18566
 
18567
# Run-time system search path for libraries
18568
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18569
 
18570
# Fix the shell variable \$srcfile for the compiler.
18571
fix_srcfile_path=$lt_fix_srcfile_path
18572
 
18573
# Set to yes if exported symbols are required.
18574
always_export_symbols=$always_export_symbols_RC
18575
 
18576
# The commands to list exported symbols.
18577
export_symbols_cmds=$lt_export_symbols_cmds_RC
18578
 
18579
# The commands to extract the exported symbol list from a shared archive.
18580
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18581
 
18582
# Symbols that should not be listed in the preloaded symbols.
18583
exclude_expsyms=$lt_exclude_expsyms_RC
18584
 
18585
# Symbols that must always be exported.
18586
include_expsyms=$lt_include_expsyms_RC
18587
 
18588
# ### END LIBTOOL TAG CONFIG: $tagname
18589
 
18590
__EOF__
18591
 
18592
 
18593
else
18594
  # If there is no Makefile yet, we rely on a make rule to execute
18595
  # `config.status --recheck' to rerun these tests and create the
18596
  # libtool script then.
18597
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18598
  if test -f "$ltmain_in"; then
18599
    test -f Makefile && make "$ltmain"
18600
  fi
18601
fi
18602
 
18603
 
18604
ac_ext=c
18605
ac_cpp='$CPP $CPPFLAGS'
18606
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18609
 
18610
CC="$lt_save_CC"
18611
 
18612
        ;;
18613
 
18614
      *)
18615
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18616
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18617
   { (exit 1); exit 1; }; }
18618
        ;;
18619
      esac
18620
 
18621
      # Append the new tag name to the list of available tags.
18622
      if test -n "$tagname" ; then
18623
      available_tags="$available_tags $tagname"
18624
    fi
18625
    fi
18626
  done
18627
  IFS="$lt_save_ifs"
18628
 
18629
  # Now substitute the updated list of available tags.
18630
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18631
    mv "${ofile}T" "$ofile"
18632
    chmod +x "$ofile"
18633
  else
18634
    rm -f "${ofile}T"
18635
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18636
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18637
   { (exit 1); exit 1; }; }
18638
  fi
18639
fi
18640
 
18641
 
18642
 
18643
# This can be used to rebuild libtool when needed
18644
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18645
 
18646
# Always use our own libtool.
18647
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18648
 
18649
# Prevent multiple expansion
18650
 
18651
 
18652
 
18653
 
18654
 
18655
 
18656
 
18657
 
18658
 
18659
 
18660
 
18661
 
18662
 
18663
 
18664
 
18665
 
18666
 
18667
 
18668
 
18669
 
18670
am__api_version='1.10'
18671
 
18672
# Find a good install program.  We prefer a C program (faster),
18673
# so one script is as good as another.  But avoid the broken or
18674
# incompatible versions:
18675
# SysV /etc/install, /usr/sbin/install
18676
# SunOS /usr/etc/install
18677
# IRIX /sbin/install
18678
# AIX /bin/install
18679
# AmigaOS /C/install, which installs bootblocks on floppy discs
18680
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18681
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18682
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18683
# OS/2's system install, which has a completely different semantic
18684
# ./install, which can be erroneously created by make from ./install.sh.
18685
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18686
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18687
if test -z "$INSTALL"; then
18688
if test "${ac_cv_path_install+set}" = set; then
18689
  echo $ECHO_N "(cached) $ECHO_C" >&6
18690
else
18691
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692
for as_dir in $PATH
18693
do
18694
  IFS=$as_save_IFS
18695
  test -z "$as_dir" && as_dir=.
18696
  # Account for people who put trailing slashes in PATH elements.
18697
case $as_dir/ in
18698
  ./ | .// | /cC/* | \
18699
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18700
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18701
  /usr/ucb/* ) ;;
18702
  *)
18703
    # OSF1 and SCO ODT 3.0 have their own names for install.
18704
    # Don't use installbsd from OSF since it installs stuff as root
18705
    # by default.
18706
    for ac_prog in ginstall scoinst install; do
18707
      for ac_exec_ext in '' $ac_executable_extensions; do
18708
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18709
          if test $ac_prog = install &&
18710
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18711
            # AIX install.  It has an incompatible calling convention.
18712
            :
18713
          elif test $ac_prog = install &&
18714
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18715
            # program-specific install script used by HP pwplus--don't use.
18716
            :
18717
          else
18718
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18719
            break 3
18720
          fi
18721
        fi
18722
      done
18723
    done
18724
    ;;
18725
esac
18726
done
18727
IFS=$as_save_IFS
18728
 
18729
 
18730
fi
18731
  if test "${ac_cv_path_install+set}" = set; then
18732
    INSTALL=$ac_cv_path_install
18733
  else
18734
    # As a last resort, use the slow shell script.  Don't cache a
18735
    # value for INSTALL within a source directory, because that will
18736
    # break other packages using the cache if that directory is
18737
    # removed, or if the value is a relative name.
18738
    INSTALL=$ac_install_sh
18739
  fi
18740
fi
18741
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18742
echo "${ECHO_T}$INSTALL" >&6; }
18743
 
18744
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18745
# It thinks the first close brace ends the variable substitution.
18746
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18747
 
18748
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18749
 
18750
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18751
 
18752
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18753
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18754
# Just in case
18755
sleep 1
18756
echo timestamp > conftest.file
18757
# Do `set' in a subshell so we don't clobber the current shell's
18758
# arguments.  Must try -L first in case configure is actually a
18759
# symlink; some systems play weird games with the mod time of symlinks
18760
# (eg FreeBSD returns the mod time of the symlink's containing
18761
# directory).
18762
if (
18763
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18764
   if test "$*" = "X"; then
18765
      # -L didn't work.
18766
      set X `ls -t $srcdir/configure conftest.file`
18767
   fi
18768
   rm -f conftest.file
18769
   if test "$*" != "X $srcdir/configure conftest.file" \
18770
      && test "$*" != "X conftest.file $srcdir/configure"; then
18771
 
18772
      # If neither matched, then we have a broken ls.  This can happen
18773
      # if, for instance, CONFIG_SHELL is bash and it inherits a
18774
      # broken ls alias from the environment.  This has actually
18775
      # happened.  Such a system could not be considered "sane".
18776
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18777
alias in your environment" >&5
18778
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18779
alias in your environment" >&2;}
18780
   { (exit 1); exit 1; }; }
18781
   fi
18782
 
18783
   test "$2" = conftest.file
18784
   )
18785
then
18786
   # Ok.
18787
   :
18788
else
18789
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18790
Check your system clock" >&5
18791
echo "$as_me: error: newly created file is older than distributed files!
18792
Check your system clock" >&2;}
18793
   { (exit 1); exit 1; }; }
18794
fi
18795
{ echo "$as_me:$LINENO: result: yes" >&5
18796
echo "${ECHO_T}yes" >&6; }
18797
test "$program_prefix" != NONE &&
18798
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
18799
# Use a double $ so make ignores it.
18800
test "$program_suffix" != NONE &&
18801
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18802
# Double any \ or $.  echo might interpret backslashes.
18803
# By default was `s,x,x', remove it if useless.
18804
cat <<\_ACEOF >conftest.sed
18805
s/[\\$]/&&/g;s/;s,x,x,$//
18806
_ACEOF
18807
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18808
rm -f conftest.sed
18809
 
18810
# expand $ac_aux_dir to an absolute path
18811
am_aux_dir=`cd $ac_aux_dir && pwd`
18812
 
18813
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18814
# Use eval to expand $SHELL
18815
if eval "$MISSING --run true"; then
18816
  am_missing_run="$MISSING --run "
18817
else
18818
  am_missing_run=
18819
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18820
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18821
fi
18822
 
18823
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18824
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18825
if test -z "$MKDIR_P"; then
18826
  if test "${ac_cv_path_mkdir+set}" = set; then
18827
  echo $ECHO_N "(cached) $ECHO_C" >&6
18828
else
18829
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18830
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18831
do
18832
  IFS=$as_save_IFS
18833
  test -z "$as_dir" && as_dir=.
18834
  for ac_prog in mkdir gmkdir; do
18835
         for ac_exec_ext in '' $ac_executable_extensions; do
18836
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18837
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18838
             'mkdir (GNU coreutils) '* | \
18839
             'mkdir (coreutils) '* | \
18840
             'mkdir (fileutils) '4.1*)
18841
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18842
               break 3;;
18843
           esac
18844
         done
18845
       done
18846
done
18847
IFS=$as_save_IFS
18848
 
18849
fi
18850
 
18851
  if test "${ac_cv_path_mkdir+set}" = set; then
18852
    MKDIR_P="$ac_cv_path_mkdir -p"
18853
  else
18854
    # As a last resort, use the slow shell script.  Don't cache a
18855
    # value for MKDIR_P within a source directory, because that will
18856
    # break other packages using the cache if that directory is
18857
    # removed, or if the value is a relative name.
18858
    test -d ./--version && rmdir ./--version
18859
    MKDIR_P="$ac_install_sh -d"
18860
  fi
18861
fi
18862
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18863
echo "${ECHO_T}$MKDIR_P" >&6; }
18864
 
18865
mkdir_p="$MKDIR_P"
18866
case $mkdir_p in
18867
  [\\/$]* | ?:[\\/]*) ;;
18868
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18869
esac
18870
 
18871
for ac_prog in gawk mawk nawk awk
18872
do
18873
  # Extract the first word of "$ac_prog", so it can be a program name with args.
18874
set dummy $ac_prog; ac_word=$2
18875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18877
if test "${ac_cv_prog_AWK+set}" = set; then
18878
  echo $ECHO_N "(cached) $ECHO_C" >&6
18879
else
18880
  if test -n "$AWK"; then
18881
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18882
else
18883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884
for as_dir in $PATH
18885
do
18886
  IFS=$as_save_IFS
18887
  test -z "$as_dir" && as_dir=.
18888
  for ac_exec_ext in '' $ac_executable_extensions; do
18889
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18890
    ac_cv_prog_AWK="$ac_prog"
18891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892
    break 2
18893
  fi
18894
done
18895
done
18896
IFS=$as_save_IFS
18897
 
18898
fi
18899
fi
18900
AWK=$ac_cv_prog_AWK
18901
if test -n "$AWK"; then
18902
  { echo "$as_me:$LINENO: result: $AWK" >&5
18903
echo "${ECHO_T}$AWK" >&6; }
18904
else
18905
  { echo "$as_me:$LINENO: result: no" >&5
18906
echo "${ECHO_T}no" >&6; }
18907
fi
18908
 
18909
 
18910
  test -n "$AWK" && break
18911
done
18912
 
18913
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18914
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18915
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18916
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18917
  echo $ECHO_N "(cached) $ECHO_C" >&6
18918
else
18919
  cat >conftest.make <<\_ACEOF
18920
SHELL = /bin/sh
18921
all:
18922
        @echo '@@@%%%=$(MAKE)=@@@%%%'
18923
_ACEOF
18924
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18925
case `${MAKE-make} -f conftest.make 2>/dev/null` in
18926
  *@@@%%%=?*=@@@%%%*)
18927
    eval ac_cv_prog_make_${ac_make}_set=yes;;
18928
  *)
18929
    eval ac_cv_prog_make_${ac_make}_set=no;;
18930
esac
18931
rm -f conftest.make
18932
fi
18933
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18934
  { echo "$as_me:$LINENO: result: yes" >&5
18935
echo "${ECHO_T}yes" >&6; }
18936
  SET_MAKE=
18937
else
18938
  { echo "$as_me:$LINENO: result: no" >&5
18939
echo "${ECHO_T}no" >&6; }
18940
  SET_MAKE="MAKE=${MAKE-make}"
18941
fi
18942
 
18943
rm -rf .tst 2>/dev/null
18944
mkdir .tst 2>/dev/null
18945
if test -d .tst; then
18946
  am__leading_dot=.
18947
else
18948
  am__leading_dot=_
18949
fi
18950
rmdir .tst 2>/dev/null
18951
 
18952
DEPDIR="${am__leading_dot}deps"
18953
 
18954
ac_config_commands="$ac_config_commands depfiles"
18955
 
18956
 
18957
am_make=${MAKE-make}
18958
cat > confinc << 'END'
18959
am__doit:
18960
        @echo done
18961
.PHONY: am__doit
18962
END
18963
# If we don't find an include directive, just comment out the code.
18964
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18965
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
18966
am__include="#"
18967
am__quote=
18968
_am_result=none
18969
# First try GNU make style include.
18970
echo "include confinc" > confmf
18971
# We grep out `Entering directory' and `Leaving directory'
18972
# messages which can occur if `w' ends up in MAKEFLAGS.
18973
# In particular we don't look at `^make:' because GNU make might
18974
# be invoked under some other name (usually "gmake"), in which
18975
# case it prints its new name instead of `make'.
18976
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18977
   am__include=include
18978
   am__quote=
18979
   _am_result=GNU
18980
fi
18981
# Now try BSD make style include.
18982
if test "$am__include" = "#"; then
18983
   echo '.include "confinc"' > confmf
18984
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18985
      am__include=.include
18986
      am__quote="\""
18987
      _am_result=BSD
18988
   fi
18989
fi
18990
 
18991
 
18992
{ echo "$as_me:$LINENO: result: $_am_result" >&5
18993
echo "${ECHO_T}$_am_result" >&6; }
18994
rm -f confinc confmf
18995
 
18996
# Check whether --enable-dependency-tracking was given.
18997
if test "${enable_dependency_tracking+set}" = set; then
18998
  enableval=$enable_dependency_tracking;
18999
fi
19000
 
19001
if test "x$enable_dependency_tracking" != xno; then
19002
  am_depcomp="$ac_aux_dir/depcomp"
19003
  AMDEPBACKSLASH='\'
19004
fi
19005
 if test "x$enable_dependency_tracking" != xno; then
19006
  AMDEP_TRUE=
19007
  AMDEP_FALSE='#'
19008
else
19009
  AMDEP_TRUE='#'
19010
  AMDEP_FALSE=
19011
fi
19012
 
19013
 
19014
if test "`cd $srcdir && pwd`" != "`pwd`"; then
19015
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19016
  # is not polluted with repeated "-I."
19017
  am__isrc=' -I$(srcdir)'
19018
  # test to see if srcdir already configured
19019
  if test -f $srcdir/config.status; then
19020
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19021
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19022
   { (exit 1); exit 1; }; }
19023
  fi
19024
fi
19025
 
19026
# test whether we have cygpath
19027
if test -z "$CYGPATH_W"; then
19028
  if (cygpath --version) >/dev/null 2>/dev/null; then
19029
    CYGPATH_W='cygpath -w'
19030
  else
19031
    CYGPATH_W=echo
19032
  fi
19033
fi
19034
 
19035
 
19036
# Define the identity of the package.
19037
 PACKAGE='or1ksim'
19038
 VERSION='0.3.0'
19039
 
19040
 
19041
cat >>confdefs.h <<_ACEOF
19042
@%:@define PACKAGE "$PACKAGE"
19043
_ACEOF
19044
 
19045
 
19046
cat >>confdefs.h <<_ACEOF
19047
@%:@define VERSION "$VERSION"
19048
_ACEOF
19049
 
19050
# Some tools Automake needs.
19051
 
19052
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19053
 
19054
 
19055
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19056
 
19057
 
19058
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19059
 
19060
 
19061
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19062
 
19063
 
19064
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19065
 
19066
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19067
 
19068
# Installed binaries are usually stripped using `strip' when the user
19069
# run `make install-strip'.  However `strip' might not be the right
19070
# tool to use in cross-compilation environments, therefore Automake
19071
# will honor the `STRIP' environment variable to overrule this program.
19072
if test "$cross_compiling" != no; then
19073
  if test -n "$ac_tool_prefix"; then
19074
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19075
set dummy ${ac_tool_prefix}strip; ac_word=$2
19076
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19078
if test "${ac_cv_prog_STRIP+set}" = set; then
19079
  echo $ECHO_N "(cached) $ECHO_C" >&6
19080
else
19081
  if test -n "$STRIP"; then
19082
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19083
else
19084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19085
for as_dir in $PATH
19086
do
19087
  IFS=$as_save_IFS
19088
  test -z "$as_dir" && as_dir=.
19089
  for ac_exec_ext in '' $ac_executable_extensions; do
19090
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19091
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19092
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19093
    break 2
19094
  fi
19095
done
19096
done
19097
IFS=$as_save_IFS
19098
 
19099
fi
19100
fi
19101
STRIP=$ac_cv_prog_STRIP
19102
if test -n "$STRIP"; then
19103
  { echo "$as_me:$LINENO: result: $STRIP" >&5
19104
echo "${ECHO_T}$STRIP" >&6; }
19105
else
19106
  { echo "$as_me:$LINENO: result: no" >&5
19107
echo "${ECHO_T}no" >&6; }
19108
fi
19109
 
19110
 
19111
fi
19112
if test -z "$ac_cv_prog_STRIP"; then
19113
  ac_ct_STRIP=$STRIP
19114
  # Extract the first word of "strip", so it can be a program name with args.
19115
set dummy strip; ac_word=$2
19116
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19117
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19118
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19119
  echo $ECHO_N "(cached) $ECHO_C" >&6
19120
else
19121
  if test -n "$ac_ct_STRIP"; then
19122
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19123
else
19124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125
for as_dir in $PATH
19126
do
19127
  IFS=$as_save_IFS
19128
  test -z "$as_dir" && as_dir=.
19129
  for ac_exec_ext in '' $ac_executable_extensions; do
19130
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19131
    ac_cv_prog_ac_ct_STRIP="strip"
19132
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19133
    break 2
19134
  fi
19135
done
19136
done
19137
IFS=$as_save_IFS
19138
 
19139
fi
19140
fi
19141
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19142
if test -n "$ac_ct_STRIP"; then
19143
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19144
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19145
else
19146
  { echo "$as_me:$LINENO: result: no" >&5
19147
echo "${ECHO_T}no" >&6; }
19148
fi
19149
 
19150
  if test "x$ac_ct_STRIP" = x; then
19151
    STRIP=":"
19152
  else
19153
    case $cross_compiling:$ac_tool_warned in
19154
yes:)
19155
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19156
whose name does not start with the host triplet.  If you think this
19157
configuration is useful to you, please write to autoconf@gnu.org." >&5
19158
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19159
whose name does not start with the host triplet.  If you think this
19160
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19161
ac_tool_warned=yes ;;
19162
esac
19163
    STRIP=$ac_ct_STRIP
19164
  fi
19165
else
19166
  STRIP="$ac_cv_prog_STRIP"
19167
fi
19168
 
19169
fi
19170
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19171
 
19172
# We need awk for the "check" target.  The system "awk" is bad on
19173
# some platforms.
19174
# Always define AMTAR for backward compatibility.
19175
 
19176
AMTAR=${AMTAR-"${am_missing_run}tar"}
19177
 
19178
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19179
 
19180
 
19181
 
19182
 
19183
depcc="$CC"   am_compiler_list=
19184
 
19185
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19186
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19187
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19188
  echo $ECHO_N "(cached) $ECHO_C" >&6
19189
else
19190
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19191
  # We make a subdir and do the tests there.  Otherwise we can end up
19192
  # making bogus files that we don't know about and never remove.  For
19193
  # instance it was reported that on HP-UX the gcc test will end up
19194
  # making a dummy file named `D' -- because `-MD' means `put the output
19195
  # in D'.
19196
  mkdir conftest.dir
19197
  # Copy depcomp to subdir because otherwise we won't find it if we're
19198
  # using a relative directory.
19199
  cp "$am_depcomp" conftest.dir
19200
  cd conftest.dir
19201
  # We will build objects and dependencies in a subdirectory because
19202
  # it helps to detect inapplicable dependency modes.  For instance
19203
  # both Tru64's cc and ICC support -MD to output dependencies as a
19204
  # side effect of compilation, but ICC will put the dependencies in
19205
  # the current directory while Tru64 will put them in the object
19206
  # directory.
19207
  mkdir sub
19208
 
19209
  am_cv_CC_dependencies_compiler_type=none
19210
  if test "$am_compiler_list" = ""; then
19211
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19212
  fi
19213
  for depmode in $am_compiler_list; do
19214
    # Setup a source with many dependencies, because some compilers
19215
    # like to wrap large dependency lists on column 80 (with \), and
19216
    # we should not choose a depcomp mode which is confused by this.
19217
    #
19218
    # We need to recreate these files for each test, as the compiler may
19219
    # overwrite some of them when testing with obscure command lines.
19220
    # This happens at least with the AIX C compiler.
19221
    : > sub/conftest.c
19222
    for i in 1 2 3 4 5 6; do
19223
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19224
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19225
      # Solaris 8's {/usr,}/bin/sh.
19226
      touch sub/conftst$i.h
19227
    done
19228
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19229
 
19230
    case $depmode in
19231
    nosideeffect)
19232
      # after this tag, mechanisms are not by side-effect, so they'll
19233
      # only be used when explicitly requested
19234
      if test "x$enable_dependency_tracking" = xyes; then
19235
        continue
19236
      else
19237
        break
19238
      fi
19239
      ;;
19240
    none) break ;;
19241
    esac
19242
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19243
    # mode.  It turns out that the SunPro C++ compiler does not properly
19244
    # handle `-M -o', and we need to detect this.
19245
    if depmode=$depmode \
19246
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19247
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19248
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19249
         >/dev/null 2>conftest.err &&
19250
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19251
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19252
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19253
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19254
      # icc doesn't choke on unknown options, it will just issue warnings
19255
      # or remarks (even with -Werror).  So we grep stderr for any message
19256
      # that says an option was ignored or not supported.
19257
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19258
      #   icc: Command line warning: ignoring option '-M'; no argument required
19259
      # The diagnosis changed in icc 8.0:
19260
      #   icc: Command line remark: option '-MP' not supported
19261
      if (grep 'ignoring option' conftest.err ||
19262
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19263
        am_cv_CC_dependencies_compiler_type=$depmode
19264
        break
19265
      fi
19266
    fi
19267
  done
19268
 
19269
  cd ..
19270
  rm -rf conftest.dir
19271
else
19272
  am_cv_CC_dependencies_compiler_type=none
19273
fi
19274
 
19275
fi
19276
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19277
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19278
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19279
 
19280
 if
19281
  test "x$enable_dependency_tracking" != xno \
19282
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19283
  am__fastdepCC_TRUE=
19284
  am__fastdepCC_FALSE='#'
19285
else
19286
  am__fastdepCC_TRUE='#'
19287
  am__fastdepCC_FALSE=
19288
fi
19289
 
19290
 
19291
depcc="$CXX"  am_compiler_list=
19292
 
19293
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19294
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19295
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19296
  echo $ECHO_N "(cached) $ECHO_C" >&6
19297
else
19298
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19299
  # We make a subdir and do the tests there.  Otherwise we can end up
19300
  # making bogus files that we don't know about and never remove.  For
19301
  # instance it was reported that on HP-UX the gcc test will end up
19302
  # making a dummy file named `D' -- because `-MD' means `put the output
19303
  # in D'.
19304
  mkdir conftest.dir
19305
  # Copy depcomp to subdir because otherwise we won't find it if we're
19306
  # using a relative directory.
19307
  cp "$am_depcomp" conftest.dir
19308
  cd conftest.dir
19309
  # We will build objects and dependencies in a subdirectory because
19310
  # it helps to detect inapplicable dependency modes.  For instance
19311
  # both Tru64's cc and ICC support -MD to output dependencies as a
19312
  # side effect of compilation, but ICC will put the dependencies in
19313
  # the current directory while Tru64 will put them in the object
19314
  # directory.
19315
  mkdir sub
19316
 
19317
  am_cv_CXX_dependencies_compiler_type=none
19318
  if test "$am_compiler_list" = ""; then
19319
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19320
  fi
19321
  for depmode in $am_compiler_list; do
19322
    # Setup a source with many dependencies, because some compilers
19323
    # like to wrap large dependency lists on column 80 (with \), and
19324
    # we should not choose a depcomp mode which is confused by this.
19325
    #
19326
    # We need to recreate these files for each test, as the compiler may
19327
    # overwrite some of them when testing with obscure command lines.
19328
    # This happens at least with the AIX C compiler.
19329
    : > sub/conftest.c
19330
    for i in 1 2 3 4 5 6; do
19331
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19332
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19333
      # Solaris 8's {/usr,}/bin/sh.
19334
      touch sub/conftst$i.h
19335
    done
19336
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19337
 
19338
    case $depmode in
19339
    nosideeffect)
19340
      # after this tag, mechanisms are not by side-effect, so they'll
19341
      # only be used when explicitly requested
19342
      if test "x$enable_dependency_tracking" = xyes; then
19343
        continue
19344
      else
19345
        break
19346
      fi
19347
      ;;
19348
    none) break ;;
19349
    esac
19350
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19351
    # mode.  It turns out that the SunPro C++ compiler does not properly
19352
    # handle `-M -o', and we need to detect this.
19353
    if depmode=$depmode \
19354
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19355
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19356
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19357
         >/dev/null 2>conftest.err &&
19358
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19359
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19360
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19361
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19362
      # icc doesn't choke on unknown options, it will just issue warnings
19363
      # or remarks (even with -Werror).  So we grep stderr for any message
19364
      # that says an option was ignored or not supported.
19365
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19366
      #   icc: Command line warning: ignoring option '-M'; no argument required
19367
      # The diagnosis changed in icc 8.0:
19368
      #   icc: Command line remark: option '-MP' not supported
19369
      if (grep 'ignoring option' conftest.err ||
19370
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19371
        am_cv_CXX_dependencies_compiler_type=$depmode
19372
        break
19373
      fi
19374
    fi
19375
  done
19376
 
19377
  cd ..
19378
  rm -rf conftest.dir
19379
else
19380
  am_cv_CXX_dependencies_compiler_type=none
19381
fi
19382
 
19383
fi
19384
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19385
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19386
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19387
 
19388
 if
19389
  test "x$enable_dependency_tracking" != xno \
19390
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19391
  am__fastdepCXX_TRUE=
19392
  am__fastdepCXX_FALSE='#'
19393
else
19394
  am__fastdepCXX_TRUE='#'
19395
  am__fastdepCXX_FALSE=
19396
fi
19397
 
19398
 
19399
 
19400
ac_config_headers="$ac_config_headers config.h"
19401
 
19402
 
19403
 
19404
 
19405
# make sure we are using a recent autoconf version
19406
 
19407
 
19408 60 jeremybenn
# yuck.
19409 19 jeremybenn
case "$target_cpu" in
19410
or32*)  CPU_ARCH=or32;
19411 60 jeremybenn
        ARCH_ISA=OR32;
19412
 
19413
cat >>confdefs.h <<\_ACEOF
19414
@%:@define OR32_TYPES 1
19415
_ACEOF
19416
;;
19417 19 jeremybenn
dlx*)   CPU_ARCH=dlx;
19418
        ARCH_ISA=DLX;;
19419 60 jeremybenn
*)      { echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
19420
echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
19421
        CPU_ARCH=or32;
19422
        ARCH_ISA=OR32;
19423
 
19424
cat >>confdefs.h <<\_ACEOF
19425
@%:@define OR32_TYPES 1
19426
_ACEOF
19427
;;
19428 19 jeremybenn
esac
19429
 
19430 60 jeremybenn
# determine endianism from target CPU name. If it has "little" in the name,
19431
# then its litte endian, otherwise its big endian (default for OR1K)
19432
case "$target_cpu" in
19433
*little*)
19434
cat >>confdefs.h <<\_ACEOF
19435
@%:@define OR32_LITTLE_ENDIAN 1
19436
_ACEOF
19437
;;
19438
       *)
19439
cat >>confdefs.h <<\_ACEOF
19440
@%:@define OR32_BIG_ENDIAN 1
19441
_ACEOF
19442
;;
19443
esac
19444 19 jeremybenn
 
19445 60 jeremybenn
 
19446
 
19447 19 jeremybenn
# We want these before the checks, so the checks can modify their values.
19448
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
19449
 
19450
ac_ext=c
19451
ac_cpp='$CPP $CPPFLAGS'
19452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455
if test -n "$ac_tool_prefix"; then
19456
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19457
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19458
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460
if test "${ac_cv_prog_CC+set}" = set; then
19461
  echo $ECHO_N "(cached) $ECHO_C" >&6
19462
else
19463
  if test -n "$CC"; then
19464
  ac_cv_prog_CC="$CC" # Let the user override the test.
19465
else
19466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467
for as_dir in $PATH
19468
do
19469
  IFS=$as_save_IFS
19470
  test -z "$as_dir" && as_dir=.
19471
  for ac_exec_ext in '' $ac_executable_extensions; do
19472
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19473
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19474
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19475
    break 2
19476
  fi
19477
done
19478
done
19479
IFS=$as_save_IFS
19480
 
19481
fi
19482
fi
19483
CC=$ac_cv_prog_CC
19484
if test -n "$CC"; then
19485
  { echo "$as_me:$LINENO: result: $CC" >&5
19486
echo "${ECHO_T}$CC" >&6; }
19487
else
19488
  { echo "$as_me:$LINENO: result: no" >&5
19489
echo "${ECHO_T}no" >&6; }
19490
fi
19491
 
19492
 
19493
fi
19494
if test -z "$ac_cv_prog_CC"; then
19495
  ac_ct_CC=$CC
19496
  # Extract the first word of "gcc", so it can be a program name with args.
19497
set dummy gcc; ac_word=$2
19498
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19500
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19501
  echo $ECHO_N "(cached) $ECHO_C" >&6
19502
else
19503
  if test -n "$ac_ct_CC"; then
19504
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19505
else
19506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19507
for as_dir in $PATH
19508
do
19509
  IFS=$as_save_IFS
19510
  test -z "$as_dir" && as_dir=.
19511
  for ac_exec_ext in '' $ac_executable_extensions; do
19512
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19513
    ac_cv_prog_ac_ct_CC="gcc"
19514
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19515
    break 2
19516
  fi
19517
done
19518
done
19519
IFS=$as_save_IFS
19520
 
19521
fi
19522
fi
19523
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19524
if test -n "$ac_ct_CC"; then
19525
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19526
echo "${ECHO_T}$ac_ct_CC" >&6; }
19527
else
19528
  { echo "$as_me:$LINENO: result: no" >&5
19529
echo "${ECHO_T}no" >&6; }
19530
fi
19531
 
19532
  if test "x$ac_ct_CC" = x; then
19533
    CC=""
19534
  else
19535
    case $cross_compiling:$ac_tool_warned in
19536
yes:)
19537
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19538
whose name does not start with the host triplet.  If you think this
19539
configuration is useful to you, please write to autoconf@gnu.org." >&5
19540
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19541
whose name does not start with the host triplet.  If you think this
19542
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19543
ac_tool_warned=yes ;;
19544
esac
19545
    CC=$ac_ct_CC
19546
  fi
19547
else
19548
  CC="$ac_cv_prog_CC"
19549
fi
19550
 
19551
if test -z "$CC"; then
19552
          if test -n "$ac_tool_prefix"; then
19553
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19554
set dummy ${ac_tool_prefix}cc; ac_word=$2
19555
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19556
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19557
if test "${ac_cv_prog_CC+set}" = set; then
19558
  echo $ECHO_N "(cached) $ECHO_C" >&6
19559
else
19560
  if test -n "$CC"; then
19561
  ac_cv_prog_CC="$CC" # Let the user override the test.
19562
else
19563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19564
for as_dir in $PATH
19565
do
19566
  IFS=$as_save_IFS
19567
  test -z "$as_dir" && as_dir=.
19568
  for ac_exec_ext in '' $ac_executable_extensions; do
19569
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19570
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19572
    break 2
19573
  fi
19574
done
19575
done
19576
IFS=$as_save_IFS
19577
 
19578
fi
19579
fi
19580
CC=$ac_cv_prog_CC
19581
if test -n "$CC"; then
19582
  { echo "$as_me:$LINENO: result: $CC" >&5
19583
echo "${ECHO_T}$CC" >&6; }
19584
else
19585
  { echo "$as_me:$LINENO: result: no" >&5
19586
echo "${ECHO_T}no" >&6; }
19587
fi
19588
 
19589
 
19590
  fi
19591
fi
19592
if test -z "$CC"; then
19593
  # Extract the first word of "cc", so it can be a program name with args.
19594
set dummy cc; ac_word=$2
19595
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19596
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19597
if test "${ac_cv_prog_CC+set}" = set; then
19598
  echo $ECHO_N "(cached) $ECHO_C" >&6
19599
else
19600
  if test -n "$CC"; then
19601
  ac_cv_prog_CC="$CC" # Let the user override the test.
19602
else
19603
  ac_prog_rejected=no
19604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605
for as_dir in $PATH
19606
do
19607
  IFS=$as_save_IFS
19608
  test -z "$as_dir" && as_dir=.
19609
  for ac_exec_ext in '' $ac_executable_extensions; do
19610
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19611
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19612
       ac_prog_rejected=yes
19613
       continue
19614
     fi
19615
    ac_cv_prog_CC="cc"
19616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19617
    break 2
19618
  fi
19619
done
19620
done
19621
IFS=$as_save_IFS
19622
 
19623
if test $ac_prog_rejected = yes; then
19624
  # We found a bogon in the path, so make sure we never use it.
19625
  set dummy $ac_cv_prog_CC
19626
  shift
19627
  if test $@%:@ != 0; then
19628
    # We chose a different compiler from the bogus one.
19629
    # However, it has the same basename, so the bogon will be chosen
19630
    # first if we set CC to just the basename; use the full file name.
19631
    shift
19632
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19633
  fi
19634
fi
19635
fi
19636
fi
19637
CC=$ac_cv_prog_CC
19638
if test -n "$CC"; then
19639
  { echo "$as_me:$LINENO: result: $CC" >&5
19640
echo "${ECHO_T}$CC" >&6; }
19641
else
19642
  { echo "$as_me:$LINENO: result: no" >&5
19643
echo "${ECHO_T}no" >&6; }
19644
fi
19645
 
19646
 
19647
fi
19648
if test -z "$CC"; then
19649
  if test -n "$ac_tool_prefix"; then
19650
  for ac_prog in cl.exe
19651
  do
19652
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19653
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19654
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19655
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19656
if test "${ac_cv_prog_CC+set}" = set; then
19657
  echo $ECHO_N "(cached) $ECHO_C" >&6
19658
else
19659
  if test -n "$CC"; then
19660
  ac_cv_prog_CC="$CC" # Let the user override the test.
19661
else
19662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19663
for as_dir in $PATH
19664
do
19665
  IFS=$as_save_IFS
19666
  test -z "$as_dir" && as_dir=.
19667
  for ac_exec_ext in '' $ac_executable_extensions; do
19668
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19669
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19670
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19671
    break 2
19672
  fi
19673
done
19674
done
19675
IFS=$as_save_IFS
19676
 
19677
fi
19678
fi
19679
CC=$ac_cv_prog_CC
19680
if test -n "$CC"; then
19681
  { echo "$as_me:$LINENO: result: $CC" >&5
19682
echo "${ECHO_T}$CC" >&6; }
19683
else
19684
  { echo "$as_me:$LINENO: result: no" >&5
19685
echo "${ECHO_T}no" >&6; }
19686
fi
19687
 
19688
 
19689
    test -n "$CC" && break
19690
  done
19691
fi
19692
if test -z "$CC"; then
19693
  ac_ct_CC=$CC
19694
  for ac_prog in cl.exe
19695
do
19696
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19697
set dummy $ac_prog; ac_word=$2
19698
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19700
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19701
  echo $ECHO_N "(cached) $ECHO_C" >&6
19702
else
19703
  if test -n "$ac_ct_CC"; then
19704
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19705
else
19706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19707
for as_dir in $PATH
19708
do
19709
  IFS=$as_save_IFS
19710
  test -z "$as_dir" && as_dir=.
19711
  for ac_exec_ext in '' $ac_executable_extensions; do
19712
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19713
    ac_cv_prog_ac_ct_CC="$ac_prog"
19714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19715
    break 2
19716
  fi
19717
done
19718
done
19719
IFS=$as_save_IFS
19720
 
19721
fi
19722
fi
19723
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19724
if test -n "$ac_ct_CC"; then
19725
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19726
echo "${ECHO_T}$ac_ct_CC" >&6; }
19727
else
19728
  { echo "$as_me:$LINENO: result: no" >&5
19729
echo "${ECHO_T}no" >&6; }
19730
fi
19731
 
19732
 
19733
  test -n "$ac_ct_CC" && break
19734
done
19735
 
19736
  if test "x$ac_ct_CC" = x; then
19737
    CC=""
19738
  else
19739
    case $cross_compiling:$ac_tool_warned in
19740
yes:)
19741
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19742
whose name does not start with the host triplet.  If you think this
19743
configuration is useful to you, please write to autoconf@gnu.org." >&5
19744
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19745
whose name does not start with the host triplet.  If you think this
19746
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19747
ac_tool_warned=yes ;;
19748
esac
19749
    CC=$ac_ct_CC
19750
  fi
19751
fi
19752
 
19753
fi
19754
 
19755
 
19756
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19757
See \`config.log' for more details." >&5
19758
echo "$as_me: error: no acceptable C compiler found in \$PATH
19759
See \`config.log' for more details." >&2;}
19760
   { (exit 1); exit 1; }; }
19761
 
19762
# Provide some information about the compiler.
19763
echo "$as_me:$LINENO: checking for C compiler version" >&5
19764
ac_compiler=`set X $ac_compile; echo $2`
19765
{ (ac_try="$ac_compiler --version >&5"
19766
case "(($ac_try" in
19767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768
  *) ac_try_echo=$ac_try;;
19769
esac
19770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771
  (eval "$ac_compiler --version >&5") 2>&5
19772
  ac_status=$?
19773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774
  (exit $ac_status); }
19775
{ (ac_try="$ac_compiler -v >&5"
19776
case "(($ac_try" in
19777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778
  *) ac_try_echo=$ac_try;;
19779
esac
19780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781
  (eval "$ac_compiler -v >&5") 2>&5
19782
  ac_status=$?
19783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784
  (exit $ac_status); }
19785
{ (ac_try="$ac_compiler -V >&5"
19786
case "(($ac_try" in
19787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788
  *) ac_try_echo=$ac_try;;
19789
esac
19790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791
  (eval "$ac_compiler -V >&5") 2>&5
19792
  ac_status=$?
19793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794
  (exit $ac_status); }
19795
 
19796
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19797
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19798
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19799
  echo $ECHO_N "(cached) $ECHO_C" >&6
19800
else
19801
  cat >conftest.$ac_ext <<_ACEOF
19802
/* confdefs.h.  */
19803
_ACEOF
19804
cat confdefs.h >>conftest.$ac_ext
19805
cat >>conftest.$ac_ext <<_ACEOF
19806
/* end confdefs.h.  */
19807
 
19808
int
19809
main ()
19810
{
19811
#ifndef __GNUC__
19812
       choke me
19813
#endif
19814
 
19815
  ;
19816
  return 0;
19817
}
19818
_ACEOF
19819
rm -f conftest.$ac_objext
19820
if { (ac_try="$ac_compile"
19821
case "(($ac_try" in
19822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823
  *) ac_try_echo=$ac_try;;
19824
esac
19825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826
  (eval "$ac_compile") 2>conftest.er1
19827
  ac_status=$?
19828
  grep -v '^ *+' conftest.er1 >conftest.err
19829
  rm -f conftest.er1
19830
  cat conftest.err >&5
19831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832
  (exit $ac_status); } && {
19833
         test -z "$ac_c_werror_flag" ||
19834
         test ! -s conftest.err
19835
       } && test -s conftest.$ac_objext; then
19836
  ac_compiler_gnu=yes
19837
else
19838
  echo "$as_me: failed program was:" >&5
19839
sed 's/^/| /' conftest.$ac_ext >&5
19840
 
19841
        ac_compiler_gnu=no
19842
fi
19843
 
19844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19846
 
19847
fi
19848
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19849
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19850
GCC=`test $ac_compiler_gnu = yes && echo yes`
19851
ac_test_CFLAGS=${CFLAGS+set}
19852
ac_save_CFLAGS=$CFLAGS
19853
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19854
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19855
if test "${ac_cv_prog_cc_g+set}" = set; then
19856
  echo $ECHO_N "(cached) $ECHO_C" >&6
19857
else
19858
  ac_save_c_werror_flag=$ac_c_werror_flag
19859
   ac_c_werror_flag=yes
19860
   ac_cv_prog_cc_g=no
19861
   CFLAGS="-g"
19862
   cat >conftest.$ac_ext <<_ACEOF
19863
/* confdefs.h.  */
19864
_ACEOF
19865
cat confdefs.h >>conftest.$ac_ext
19866
cat >>conftest.$ac_ext <<_ACEOF
19867
/* end confdefs.h.  */
19868
 
19869
int
19870
main ()
19871
{
19872
 
19873
  ;
19874
  return 0;
19875
}
19876
_ACEOF
19877
rm -f conftest.$ac_objext
19878
if { (ac_try="$ac_compile"
19879
case "(($ac_try" in
19880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881
  *) ac_try_echo=$ac_try;;
19882
esac
19883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884
  (eval "$ac_compile") 2>conftest.er1
19885
  ac_status=$?
19886
  grep -v '^ *+' conftest.er1 >conftest.err
19887
  rm -f conftest.er1
19888
  cat conftest.err >&5
19889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890
  (exit $ac_status); } && {
19891
         test -z "$ac_c_werror_flag" ||
19892
         test ! -s conftest.err
19893
       } && test -s conftest.$ac_objext; then
19894
  ac_cv_prog_cc_g=yes
19895
else
19896
  echo "$as_me: failed program was:" >&5
19897
sed 's/^/| /' conftest.$ac_ext >&5
19898
 
19899
        CFLAGS=""
19900
      cat >conftest.$ac_ext <<_ACEOF
19901
/* confdefs.h.  */
19902
_ACEOF
19903
cat confdefs.h >>conftest.$ac_ext
19904
cat >>conftest.$ac_ext <<_ACEOF
19905
/* end confdefs.h.  */
19906
 
19907
int
19908
main ()
19909
{
19910
 
19911
  ;
19912
  return 0;
19913
}
19914
_ACEOF
19915
rm -f conftest.$ac_objext
19916
if { (ac_try="$ac_compile"
19917
case "(($ac_try" in
19918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919
  *) ac_try_echo=$ac_try;;
19920
esac
19921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922
  (eval "$ac_compile") 2>conftest.er1
19923
  ac_status=$?
19924
  grep -v '^ *+' conftest.er1 >conftest.err
19925
  rm -f conftest.er1
19926
  cat conftest.err >&5
19927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928
  (exit $ac_status); } && {
19929
         test -z "$ac_c_werror_flag" ||
19930
         test ! -s conftest.err
19931
       } && test -s conftest.$ac_objext; then
19932
  :
19933
else
19934
  echo "$as_me: failed program was:" >&5
19935
sed 's/^/| /' conftest.$ac_ext >&5
19936
 
19937
        ac_c_werror_flag=$ac_save_c_werror_flag
19938
         CFLAGS="-g"
19939
         cat >conftest.$ac_ext <<_ACEOF
19940
/* confdefs.h.  */
19941
_ACEOF
19942
cat confdefs.h >>conftest.$ac_ext
19943
cat >>conftest.$ac_ext <<_ACEOF
19944
/* end confdefs.h.  */
19945
 
19946
int
19947
main ()
19948
{
19949
 
19950
  ;
19951
  return 0;
19952
}
19953
_ACEOF
19954
rm -f conftest.$ac_objext
19955
if { (ac_try="$ac_compile"
19956
case "(($ac_try" in
19957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958
  *) ac_try_echo=$ac_try;;
19959
esac
19960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961
  (eval "$ac_compile") 2>conftest.er1
19962
  ac_status=$?
19963
  grep -v '^ *+' conftest.er1 >conftest.err
19964
  rm -f conftest.er1
19965
  cat conftest.err >&5
19966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967
  (exit $ac_status); } && {
19968
         test -z "$ac_c_werror_flag" ||
19969
         test ! -s conftest.err
19970
       } && test -s conftest.$ac_objext; then
19971
  ac_cv_prog_cc_g=yes
19972
else
19973
  echo "$as_me: failed program was:" >&5
19974
sed 's/^/| /' conftest.$ac_ext >&5
19975
 
19976
 
19977
fi
19978
 
19979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980
fi
19981
 
19982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19983
fi
19984
 
19985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986
   ac_c_werror_flag=$ac_save_c_werror_flag
19987
fi
19988
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19989
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19990
if test "$ac_test_CFLAGS" = set; then
19991
  CFLAGS=$ac_save_CFLAGS
19992
elif test $ac_cv_prog_cc_g = yes; then
19993
  if test "$GCC" = yes; then
19994
    CFLAGS="-g -O2"
19995
  else
19996
    CFLAGS="-g"
19997
  fi
19998
else
19999
  if test "$GCC" = yes; then
20000
    CFLAGS="-O2"
20001
  else
20002
    CFLAGS=
20003
  fi
20004
fi
20005
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20006
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20007
if test "${ac_cv_prog_cc_c89+set}" = set; then
20008
  echo $ECHO_N "(cached) $ECHO_C" >&6
20009
else
20010
  ac_cv_prog_cc_c89=no
20011
ac_save_CC=$CC
20012
cat >conftest.$ac_ext <<_ACEOF
20013
/* confdefs.h.  */
20014
_ACEOF
20015
cat confdefs.h >>conftest.$ac_ext
20016
cat >>conftest.$ac_ext <<_ACEOF
20017
/* end confdefs.h.  */
20018
#include 
20019
#include 
20020
#include 
20021
#include 
20022
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20023
struct buf { int x; };
20024
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20025
static char *e (p, i)
20026
     char **p;
20027
     int i;
20028
{
20029
  return p[i];
20030
}
20031
static char *f (char * (*g) (char **, int), char **p, ...)
20032
{
20033
  char *s;
20034
  va_list v;
20035
  va_start (v,p);
20036
  s = g (p, va_arg (v,int));
20037
  va_end (v);
20038
  return s;
20039
}
20040
 
20041
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20042
   function prototypes and stuff, but not '\xHH' hex character constants.
20043
   These don't provoke an error unfortunately, instead are silently treated
20044
   as 'x'.  The following induces an error, until -std is added to get
20045
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20046
   array size at least.  It's necessary to write '\x00'==0 to get something
20047
   that's true only with -std.  */
20048
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20049
 
20050
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20051
   inside strings and character constants.  */
20052
#define FOO(x) 'x'
20053
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20054
 
20055
int test (int i, double x);
20056
struct s1 {int (*f) (int a);};
20057
struct s2 {int (*f) (double a);};
20058
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20059
int argc;
20060
char **argv;
20061
int
20062
main ()
20063
{
20064
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20065
  ;
20066
  return 0;
20067
}
20068
_ACEOF
20069
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20070
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20071
do
20072
  CC="$ac_save_CC $ac_arg"
20073
  rm -f conftest.$ac_objext
20074
if { (ac_try="$ac_compile"
20075
case "(($ac_try" in
20076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077
  *) ac_try_echo=$ac_try;;
20078
esac
20079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080
  (eval "$ac_compile") 2>conftest.er1
20081
  ac_status=$?
20082
  grep -v '^ *+' conftest.er1 >conftest.err
20083
  rm -f conftest.er1
20084
  cat conftest.err >&5
20085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086
  (exit $ac_status); } && {
20087
         test -z "$ac_c_werror_flag" ||
20088
         test ! -s conftest.err
20089
       } && test -s conftest.$ac_objext; then
20090
  ac_cv_prog_cc_c89=$ac_arg
20091
else
20092
  echo "$as_me: failed program was:" >&5
20093
sed 's/^/| /' conftest.$ac_ext >&5
20094
 
20095
 
20096
fi
20097
 
20098
rm -f core conftest.err conftest.$ac_objext
20099
  test "x$ac_cv_prog_cc_c89" != "xno" && break
20100
done
20101
rm -f conftest.$ac_ext
20102
CC=$ac_save_CC
20103
 
20104
fi
20105
# AC_CACHE_VAL
20106
case "x$ac_cv_prog_cc_c89" in
20107
  x)
20108
    { echo "$as_me:$LINENO: result: none needed" >&5
20109
echo "${ECHO_T}none needed" >&6; } ;;
20110
  xno)
20111
    { echo "$as_me:$LINENO: result: unsupported" >&5
20112
echo "${ECHO_T}unsupported" >&6; } ;;
20113
  *)
20114
    CC="$CC $ac_cv_prog_cc_c89"
20115
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20116
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20117
esac
20118
 
20119
 
20120
ac_ext=c
20121
ac_cpp='$CPP $CPPFLAGS'
20122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20125
 
20126
if test "x$CC" != xcc; then
20127
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20128
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20129
else
20130
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20131
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20132
fi
20133
set dummy $CC; ac_cc=`echo $2 |
20134
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20135
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20136
  echo $ECHO_N "(cached) $ECHO_C" >&6
20137
else
20138
  cat >conftest.$ac_ext <<_ACEOF
20139
/* confdefs.h.  */
20140
_ACEOF
20141
cat confdefs.h >>conftest.$ac_ext
20142
cat >>conftest.$ac_ext <<_ACEOF
20143
/* end confdefs.h.  */
20144
 
20145
int
20146
main ()
20147
{
20148
 
20149
  ;
20150
  return 0;
20151
}
20152
_ACEOF
20153
# Make sure it works both with $CC and with simple cc.
20154
# We do the test twice because some compilers refuse to overwrite an
20155
# existing .o file with -o, though they will create one.
20156
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20157
rm -f conftest2.*
20158
if { (case "(($ac_try" in
20159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160
  *) ac_try_echo=$ac_try;;
20161
esac
20162
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163
  (eval "$ac_try") 2>&5
20164
  ac_status=$?
20165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166
  (exit $ac_status); } &&
20167
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169
  *) ac_try_echo=$ac_try;;
20170
esac
20171
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172
  (eval "$ac_try") 2>&5
20173
  ac_status=$?
20174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175
  (exit $ac_status); };
20176
then
20177
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20178
  if test "x$CC" != xcc; then
20179
    # Test first that cc exists at all.
20180
    if { ac_try='cc -c conftest.$ac_ext >&5'
20181
  { (case "(($ac_try" in
20182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183
  *) ac_try_echo=$ac_try;;
20184
esac
20185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186
  (eval "$ac_try") 2>&5
20187
  ac_status=$?
20188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189
  (exit $ac_status); }; }; then
20190
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20191
      rm -f conftest2.*
20192
      if { (case "(($ac_try" in
20193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194
  *) ac_try_echo=$ac_try;;
20195
esac
20196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197
  (eval "$ac_try") 2>&5
20198
  ac_status=$?
20199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200
  (exit $ac_status); } &&
20201
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
20202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203
  *) ac_try_echo=$ac_try;;
20204
esac
20205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206
  (eval "$ac_try") 2>&5
20207
  ac_status=$?
20208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209
  (exit $ac_status); };
20210
      then
20211
        # cc works too.
20212
        :
20213
      else
20214
        # cc exists but doesn't like -o.
20215
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
20216
      fi
20217
    fi
20218
  fi
20219
else
20220
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20221
fi
20222
rm -f core conftest*
20223
 
20224
fi
20225
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20226
  { echo "$as_me:$LINENO: result: yes" >&5
20227
echo "${ECHO_T}yes" >&6; }
20228
else
20229
  { echo "$as_me:$LINENO: result: no" >&5
20230
echo "${ECHO_T}no" >&6; }
20231
 
20232
cat >>confdefs.h <<\_ACEOF
20233
@%:@define NO_MINUS_C_MINUS_O 1
20234
_ACEOF
20235
 
20236
fi
20237
 
20238
# FIXME: we rely on the cache variable name because
20239
# there is no other way.
20240
set dummy $CC
20241
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20242
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20243
   # Losing compiler, so override with the script.
20244
   # FIXME: It is wrong to rewrite CC.
20245
   # But if we don't then we get into trouble of one sort or another.
20246
   # A longer-term fix would be to have automake use am__CC in this case,
20247
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20248
   CC="$am_aux_dir/compile $CC"
20249
fi
20250
 
20251
 
20252
 
20253
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20254
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20255
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20256
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20257
  echo $ECHO_N "(cached) $ECHO_C" >&6
20258
else
20259
  cat >conftest.make <<\_ACEOF
20260
SHELL = /bin/sh
20261
all:
20262
        @echo '@@@%%%=$(MAKE)=@@@%%%'
20263
_ACEOF
20264
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20265
case `${MAKE-make} -f conftest.make 2>/dev/null` in
20266
  *@@@%%%=?*=@@@%%%*)
20267
    eval ac_cv_prog_make_${ac_make}_set=yes;;
20268
  *)
20269
    eval ac_cv_prog_make_${ac_make}_set=no;;
20270
esac
20271
rm -f conftest.make
20272
fi
20273
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20274
  { echo "$as_me:$LINENO: result: yes" >&5
20275
echo "${ECHO_T}yes" >&6; }
20276
  SET_MAKE=
20277
else
20278
  { echo "$as_me:$LINENO: result: no" >&5
20279
echo "${ECHO_T}no" >&6; }
20280
  SET_MAKE="MAKE=${MAKE-make}"
20281
fi
20282
 
20283
 
20284
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
20285
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
20286
 
20287
if test $ac_cv_c_compiler_gnu = yes; then
20288
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20289
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20290
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20291
  echo $ECHO_N "(cached) $ECHO_C" >&6
20292
else
20293
    ac_pattern="Autoconf.*'x'"
20294
  cat >conftest.$ac_ext <<_ACEOF
20295
/* confdefs.h.  */
20296
_ACEOF
20297
cat confdefs.h >>conftest.$ac_ext
20298
cat >>conftest.$ac_ext <<_ACEOF
20299
/* end confdefs.h.  */
20300
#include 
20301
Autoconf TIOCGETP
20302
_ACEOF
20303
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20304
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20305
  ac_cv_prog_gcc_traditional=yes
20306
else
20307
  ac_cv_prog_gcc_traditional=no
20308
fi
20309
rm -f conftest*
20310
 
20311
 
20312
  if test $ac_cv_prog_gcc_traditional = no; then
20313
    cat >conftest.$ac_ext <<_ACEOF
20314
/* confdefs.h.  */
20315
_ACEOF
20316
cat confdefs.h >>conftest.$ac_ext
20317
cat >>conftest.$ac_ext <<_ACEOF
20318
/* end confdefs.h.  */
20319
#include 
20320
Autoconf TCGETA
20321
_ACEOF
20322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20323
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20324
  ac_cv_prog_gcc_traditional=yes
20325
fi
20326
rm -f conftest*
20327
 
20328
  fi
20329
fi
20330
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20331
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20332
  if test $ac_cv_prog_gcc_traditional = yes; then
20333
    CC="$CC -traditional"
20334
  fi
20335
fi
20336
 
20337
# Find a good install program.  We prefer a C program (faster),
20338
# so one script is as good as another.  But avoid the broken or
20339
# incompatible versions:
20340
# SysV /etc/install, /usr/sbin/install
20341
# SunOS /usr/etc/install
20342
# IRIX /sbin/install
20343
# AIX /bin/install
20344
# AmigaOS /C/install, which installs bootblocks on floppy discs
20345
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20346
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20347
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20348
# OS/2's system install, which has a completely different semantic
20349
# ./install, which can be erroneously created by make from ./install.sh.
20350
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20351
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20352
if test -z "$INSTALL"; then
20353
if test "${ac_cv_path_install+set}" = set; then
20354
  echo $ECHO_N "(cached) $ECHO_C" >&6
20355
else
20356
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20357
for as_dir in $PATH
20358
do
20359
  IFS=$as_save_IFS
20360
  test -z "$as_dir" && as_dir=.
20361
  # Account for people who put trailing slashes in PATH elements.
20362
case $as_dir/ in
20363
  ./ | .// | /cC/* | \
20364
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20365
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20366
  /usr/ucb/* ) ;;
20367
  *)
20368
    # OSF1 and SCO ODT 3.0 have their own names for install.
20369
    # Don't use installbsd from OSF since it installs stuff as root
20370
    # by default.
20371
    for ac_prog in ginstall scoinst install; do
20372
      for ac_exec_ext in '' $ac_executable_extensions; do
20373
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20374
          if test $ac_prog = install &&
20375
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20376
            # AIX install.  It has an incompatible calling convention.
20377
            :
20378
          elif test $ac_prog = install &&
20379
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20380
            # program-specific install script used by HP pwplus--don't use.
20381
            :
20382
          else
20383
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20384
            break 3
20385
          fi
20386
        fi
20387
      done
20388
    done
20389
    ;;
20390
esac
20391
done
20392
IFS=$as_save_IFS
20393
 
20394
 
20395
fi
20396
  if test "${ac_cv_path_install+set}" = set; then
20397
    INSTALL=$ac_cv_path_install
20398
  else
20399
    # As a last resort, use the slow shell script.  Don't cache a
20400
    # value for INSTALL within a source directory, because that will
20401
    # break other packages using the cache if that directory is
20402
    # removed, or if the value is a relative name.
20403
    INSTALL=$ac_install_sh
20404
  fi
20405
fi
20406
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20407
echo "${ECHO_T}$INSTALL" >&6; }
20408
 
20409
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20410
# It thinks the first close brace ends the variable substitution.
20411
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20412
 
20413
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20414
 
20415
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20416
 
20417
# Extract the first word of "ar", so it can be a program name with args.
20418
set dummy ar; ac_word=$2
20419
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20421
if test "${ac_cv_prog_AR+set}" = set; then
20422
  echo $ECHO_N "(cached) $ECHO_C" >&6
20423
else
20424
  if test -n "$AR"; then
20425
  ac_cv_prog_AR="$AR" # Let the user override the test.
20426
else
20427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20428
for as_dir in $PATH
20429
do
20430
  IFS=$as_save_IFS
20431
  test -z "$as_dir" && as_dir=.
20432
  for ac_exec_ext in '' $ac_executable_extensions; do
20433
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20434
    ac_cv_prog_AR="ar"
20435
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20436
    break 2
20437
  fi
20438
done
20439
done
20440
IFS=$as_save_IFS
20441
 
20442
fi
20443
fi
20444
AR=$ac_cv_prog_AR
20445
if test -n "$AR"; then
20446
  { echo "$as_me:$LINENO: result: $AR" >&5
20447
echo "${ECHO_T}$AR" >&6; }
20448
else
20449
  { echo "$as_me:$LINENO: result: no" >&5
20450
echo "${ECHO_T}no" >&6; }
20451
fi
20452
 
20453
 
20454 60 jeremybenn
 
20455
# This is GNU compliant source and uses GNU libraries
20456
 
20457
cat >>confdefs.h <<\_ACEOF
20458
@%:@define _GNU_SOURCE 1
20459
_ACEOF
20460
 
20461
 
20462 19 jeremybenn
# Set default for ARFLAGS, since autoconf does not have a macro for it.
20463
# This allows people to set it when running configure or make
20464
test -n "$ARFLAGS" || ARFLAGS="cr"
20465
 
20466
MAKE_SHELL=/bin/sh
20467
 
20468
 
20469
 
20470
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20471
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20472
if test "${ac_cv_type_signal+set}" = set; then
20473
  echo $ECHO_N "(cached) $ECHO_C" >&6
20474
else
20475
  cat >conftest.$ac_ext <<_ACEOF
20476
/* confdefs.h.  */
20477
_ACEOF
20478
cat confdefs.h >>conftest.$ac_ext
20479
cat >>conftest.$ac_ext <<_ACEOF
20480
/* end confdefs.h.  */
20481
#include 
20482
#include 
20483
 
20484
int
20485
main ()
20486
{
20487
return *(signal (0, 0)) (0) == 1;
20488
  ;
20489
  return 0;
20490
}
20491
_ACEOF
20492
rm -f conftest.$ac_objext
20493
if { (ac_try="$ac_compile"
20494
case "(($ac_try" in
20495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496
  *) ac_try_echo=$ac_try;;
20497
esac
20498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499
  (eval "$ac_compile") 2>conftest.er1
20500
  ac_status=$?
20501
  grep -v '^ *+' conftest.er1 >conftest.err
20502
  rm -f conftest.er1
20503
  cat conftest.err >&5
20504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505
  (exit $ac_status); } && {
20506
         test -z "$ac_c_werror_flag" ||
20507
         test ! -s conftest.err
20508
       } && test -s conftest.$ac_objext; then
20509
  ac_cv_type_signal=int
20510
else
20511
  echo "$as_me: failed program was:" >&5
20512
sed 's/^/| /' conftest.$ac_ext >&5
20513
 
20514
        ac_cv_type_signal=void
20515
fi
20516
 
20517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518
fi
20519
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20520
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20521
 
20522
cat >>confdefs.h <<_ACEOF
20523
@%:@define RETSIGTYPE $ac_cv_type_signal
20524
_ACEOF
20525
 
20526
 
20527
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20528
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20529
if test "${ac_cv_header_stat_broken+set}" = set; then
20530
  echo $ECHO_N "(cached) $ECHO_C" >&6
20531
else
20532
  cat >conftest.$ac_ext <<_ACEOF
20533
/* confdefs.h.  */
20534
_ACEOF
20535
cat confdefs.h >>conftest.$ac_ext
20536
cat >>conftest.$ac_ext <<_ACEOF
20537
/* end confdefs.h.  */
20538
#include 
20539
#include 
20540
 
20541
#if defined S_ISBLK && defined S_IFDIR
20542
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20543
#endif
20544
 
20545
#if defined S_ISBLK && defined S_IFCHR
20546
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20547
#endif
20548
 
20549
#if defined S_ISLNK && defined S_IFREG
20550
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20551
#endif
20552
 
20553
#if defined S_ISSOCK && defined S_IFREG
20554
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20555
#endif
20556
 
20557
_ACEOF
20558
rm -f conftest.$ac_objext
20559
if { (ac_try="$ac_compile"
20560
case "(($ac_try" in
20561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562
  *) ac_try_echo=$ac_try;;
20563
esac
20564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565
  (eval "$ac_compile") 2>conftest.er1
20566
  ac_status=$?
20567
  grep -v '^ *+' conftest.er1 >conftest.err
20568
  rm -f conftest.er1
20569
  cat conftest.err >&5
20570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571
  (exit $ac_status); } && {
20572
         test -z "$ac_c_werror_flag" ||
20573
         test ! -s conftest.err
20574
       } && test -s conftest.$ac_objext; then
20575
  ac_cv_header_stat_broken=no
20576
else
20577
  echo "$as_me: failed program was:" >&5
20578
sed 's/^/| /' conftest.$ac_ext >&5
20579
 
20580
        ac_cv_header_stat_broken=yes
20581
fi
20582
 
20583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584
fi
20585
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20586
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20587
if test $ac_cv_header_stat_broken = yes; then
20588
 
20589
cat >>confdefs.h <<\_ACEOF
20590
@%:@define STAT_MACROS_BROKEN 1
20591
_ACEOF
20592
 
20593
fi
20594
 
20595
 
20596
 
20597
 
20598
 
20599
 
20600
ac_header_dirent=no
20601
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20602
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20603
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20604
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20605
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20606
  echo $ECHO_N "(cached) $ECHO_C" >&6
20607
else
20608
  cat >conftest.$ac_ext <<_ACEOF
20609
/* confdefs.h.  */
20610
_ACEOF
20611
cat confdefs.h >>conftest.$ac_ext
20612
cat >>conftest.$ac_ext <<_ACEOF
20613
/* end confdefs.h.  */
20614
#include 
20615
#include <$ac_hdr>
20616
 
20617
int
20618
main ()
20619
{
20620
if ((DIR *) 0)
20621
return 0;
20622
  ;
20623
  return 0;
20624
}
20625
_ACEOF
20626
rm -f conftest.$ac_objext
20627
if { (ac_try="$ac_compile"
20628
case "(($ac_try" in
20629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630
  *) ac_try_echo=$ac_try;;
20631
esac
20632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633
  (eval "$ac_compile") 2>conftest.er1
20634
  ac_status=$?
20635
  grep -v '^ *+' conftest.er1 >conftest.err
20636
  rm -f conftest.er1
20637
  cat conftest.err >&5
20638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639
  (exit $ac_status); } && {
20640
         test -z "$ac_c_werror_flag" ||
20641
         test ! -s conftest.err
20642
       } && test -s conftest.$ac_objext; then
20643
  eval "$as_ac_Header=yes"
20644
else
20645
  echo "$as_me: failed program was:" >&5
20646
sed 's/^/| /' conftest.$ac_ext >&5
20647
 
20648
        eval "$as_ac_Header=no"
20649
fi
20650
 
20651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652
fi
20653
ac_res=`eval echo '${'$as_ac_Header'}'`
20654
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20655
echo "${ECHO_T}$ac_res" >&6; }
20656
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20657
  cat >>confdefs.h <<_ACEOF
20658
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20659
_ACEOF
20660
 
20661
ac_header_dirent=$ac_hdr; break
20662
fi
20663
 
20664
done
20665
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20666
if test $ac_header_dirent = dirent.h; then
20667
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20668
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20669
if test "${ac_cv_search_opendir+set}" = set; then
20670
  echo $ECHO_N "(cached) $ECHO_C" >&6
20671
else
20672
  ac_func_search_save_LIBS=$LIBS
20673
cat >conftest.$ac_ext <<_ACEOF
20674
/* confdefs.h.  */
20675
_ACEOF
20676
cat confdefs.h >>conftest.$ac_ext
20677
cat >>conftest.$ac_ext <<_ACEOF
20678
/* end confdefs.h.  */
20679
 
20680
/* Override any GCC internal prototype to avoid an error.
20681
   Use char because int might match the return type of a GCC
20682
   builtin and then its argument prototype would still apply.  */
20683
#ifdef __cplusplus
20684
extern "C"
20685
#endif
20686
char opendir ();
20687
int
20688
main ()
20689
{
20690
return opendir ();
20691
  ;
20692
  return 0;
20693
}
20694
_ACEOF
20695
for ac_lib in '' dir; do
20696
  if test -z "$ac_lib"; then
20697
    ac_res="none required"
20698
  else
20699
    ac_res=-l$ac_lib
20700
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20701
  fi
20702
  rm -f conftest.$ac_objext conftest$ac_exeext
20703
if { (ac_try="$ac_link"
20704
case "(($ac_try" in
20705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706
  *) ac_try_echo=$ac_try;;
20707
esac
20708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709
  (eval "$ac_link") 2>conftest.er1
20710
  ac_status=$?
20711
  grep -v '^ *+' conftest.er1 >conftest.err
20712
  rm -f conftest.er1
20713
  cat conftest.err >&5
20714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715
  (exit $ac_status); } && {
20716
         test -z "$ac_c_werror_flag" ||
20717
         test ! -s conftest.err
20718
       } && test -s conftest$ac_exeext &&
20719
       $as_test_x conftest$ac_exeext; then
20720
  ac_cv_search_opendir=$ac_res
20721
else
20722
  echo "$as_me: failed program was:" >&5
20723
sed 's/^/| /' conftest.$ac_ext >&5
20724
 
20725
 
20726
fi
20727
 
20728
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20729
      conftest$ac_exeext
20730
  if test "${ac_cv_search_opendir+set}" = set; then
20731
  break
20732
fi
20733
done
20734
if test "${ac_cv_search_opendir+set}" = set; then
20735
  :
20736
else
20737
  ac_cv_search_opendir=no
20738
fi
20739
rm conftest.$ac_ext
20740
LIBS=$ac_func_search_save_LIBS
20741
fi
20742
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20743
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20744
ac_res=$ac_cv_search_opendir
20745
if test "$ac_res" != no; then
20746
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20747
 
20748
fi
20749
 
20750
else
20751
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20752
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20753
if test "${ac_cv_search_opendir+set}" = set; then
20754
  echo $ECHO_N "(cached) $ECHO_C" >&6
20755
else
20756
  ac_func_search_save_LIBS=$LIBS
20757
cat >conftest.$ac_ext <<_ACEOF
20758
/* confdefs.h.  */
20759
_ACEOF
20760
cat confdefs.h >>conftest.$ac_ext
20761
cat >>conftest.$ac_ext <<_ACEOF
20762
/* end confdefs.h.  */
20763
 
20764
/* Override any GCC internal prototype to avoid an error.
20765
   Use char because int might match the return type of a GCC
20766
   builtin and then its argument prototype would still apply.  */
20767
#ifdef __cplusplus
20768
extern "C"
20769
#endif
20770
char opendir ();
20771
int
20772
main ()
20773
{
20774
return opendir ();
20775
  ;
20776
  return 0;
20777
}
20778
_ACEOF
20779
for ac_lib in '' x; do
20780
  if test -z "$ac_lib"; then
20781
    ac_res="none required"
20782
  else
20783
    ac_res=-l$ac_lib
20784
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20785
  fi
20786
  rm -f conftest.$ac_objext conftest$ac_exeext
20787
if { (ac_try="$ac_link"
20788
case "(($ac_try" in
20789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790
  *) ac_try_echo=$ac_try;;
20791
esac
20792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793
  (eval "$ac_link") 2>conftest.er1
20794
  ac_status=$?
20795
  grep -v '^ *+' conftest.er1 >conftest.err
20796
  rm -f conftest.er1
20797
  cat conftest.err >&5
20798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799
  (exit $ac_status); } && {
20800
         test -z "$ac_c_werror_flag" ||
20801
         test ! -s conftest.err
20802
       } && test -s conftest$ac_exeext &&
20803
       $as_test_x conftest$ac_exeext; then
20804
  ac_cv_search_opendir=$ac_res
20805
else
20806
  echo "$as_me: failed program was:" >&5
20807
sed 's/^/| /' conftest.$ac_ext >&5
20808
 
20809
 
20810
fi
20811
 
20812
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20813
      conftest$ac_exeext
20814
  if test "${ac_cv_search_opendir+set}" = set; then
20815
  break
20816
fi
20817
done
20818
if test "${ac_cv_search_opendir+set}" = set; then
20819
  :
20820
else
20821
  ac_cv_search_opendir=no
20822
fi
20823
rm conftest.$ac_ext
20824
LIBS=$ac_func_search_save_LIBS
20825
fi
20826
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20827
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20828
ac_res=$ac_cv_search_opendir
20829
if test "$ac_res" != no; then
20830
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20831
 
20832
fi
20833
 
20834
fi
20835
 
20836
 
20837
 
20838
 
20839
 
20840
 
20841
 
20842
 
20843
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
20844
do
20845
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20846
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20847
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20848
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20849
  echo $ECHO_N "(cached) $ECHO_C" >&6
20850
else
20851
  cat >conftest.$ac_ext <<_ACEOF
20852
/* confdefs.h.  */
20853
_ACEOF
20854
cat confdefs.h >>conftest.$ac_ext
20855
cat >>conftest.$ac_ext <<_ACEOF
20856
/* end confdefs.h.  */
20857
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20858
   For example, HP-UX 11i  declares gettimeofday.  */
20859
#define $ac_func innocuous_$ac_func
20860
 
20861
/* System header to define __stub macros and hopefully few prototypes,
20862
    which can conflict with char $ac_func (); below.
20863
    Prefer  to  if __STDC__ is defined, since
20864
     exists even on freestanding compilers.  */
20865
 
20866
#ifdef __STDC__
20867
# include 
20868
#else
20869
# include 
20870
#endif
20871
 
20872
#undef $ac_func
20873
 
20874
/* Override any GCC internal prototype to avoid an error.
20875
   Use char because int might match the return type of a GCC
20876
   builtin and then its argument prototype would still apply.  */
20877
#ifdef __cplusplus
20878
extern "C"
20879
#endif
20880
char $ac_func ();
20881
/* The GNU C library defines this for functions which it implements
20882
    to always fail with ENOSYS.  Some functions are actually named
20883
    something starting with __ and the normal name is an alias.  */
20884
#if defined __stub_$ac_func || defined __stub___$ac_func
20885
choke me
20886
#endif
20887
 
20888
int
20889
main ()
20890
{
20891
return $ac_func ();
20892
  ;
20893
  return 0;
20894
}
20895
_ACEOF
20896
rm -f conftest.$ac_objext conftest$ac_exeext
20897
if { (ac_try="$ac_link"
20898
case "(($ac_try" in
20899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900
  *) ac_try_echo=$ac_try;;
20901
esac
20902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903
  (eval "$ac_link") 2>conftest.er1
20904
  ac_status=$?
20905
  grep -v '^ *+' conftest.er1 >conftest.err
20906
  rm -f conftest.er1
20907
  cat conftest.err >&5
20908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909
  (exit $ac_status); } && {
20910
         test -z "$ac_c_werror_flag" ||
20911
         test ! -s conftest.err
20912
       } && test -s conftest$ac_exeext &&
20913
       $as_test_x conftest$ac_exeext; then
20914
  eval "$as_ac_var=yes"
20915
else
20916
  echo "$as_me: failed program was:" >&5
20917
sed 's/^/| /' conftest.$ac_ext >&5
20918
 
20919
        eval "$as_ac_var=no"
20920
fi
20921
 
20922
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20923
      conftest$ac_exeext conftest.$ac_ext
20924
fi
20925
ac_res=`eval echo '${'$as_ac_var'}'`
20926
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20927
echo "${ECHO_T}$ac_res" >&6; }
20928
if test `eval echo '${'$as_ac_var'}'` = yes; then
20929
  cat >>confdefs.h <<_ACEOF
20930
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20931
_ACEOF
20932
 
20933
fi
20934
done
20935
 
20936
 
20937
 
20938
 
20939
 
20940
 
20941
 
20942
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
20943
do
20944
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20945
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20946
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20947
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20948
  echo $ECHO_N "(cached) $ECHO_C" >&6
20949
else
20950
  cat >conftest.$ac_ext <<_ACEOF
20951
/* confdefs.h.  */
20952
_ACEOF
20953
cat confdefs.h >>conftest.$ac_ext
20954
cat >>conftest.$ac_ext <<_ACEOF
20955
/* end confdefs.h.  */
20956
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20957
   For example, HP-UX 11i  declares gettimeofday.  */
20958
#define $ac_func innocuous_$ac_func
20959
 
20960
/* System header to define __stub macros and hopefully few prototypes,
20961
    which can conflict with char $ac_func (); below.
20962
    Prefer  to  if __STDC__ is defined, since
20963
     exists even on freestanding compilers.  */
20964
 
20965
#ifdef __STDC__
20966
# include 
20967
#else
20968
# include 
20969
#endif
20970
 
20971
#undef $ac_func
20972
 
20973
/* Override any GCC internal prototype to avoid an error.
20974
   Use char because int might match the return type of a GCC
20975
   builtin and then its argument prototype would still apply.  */
20976
#ifdef __cplusplus
20977
extern "C"
20978
#endif
20979
char $ac_func ();
20980
/* The GNU C library defines this for functions which it implements
20981
    to always fail with ENOSYS.  Some functions are actually named
20982
    something starting with __ and the normal name is an alias.  */
20983
#if defined __stub_$ac_func || defined __stub___$ac_func
20984
choke me
20985
#endif
20986
 
20987
int
20988
main ()
20989
{
20990
return $ac_func ();
20991
  ;
20992
  return 0;
20993
}
20994
_ACEOF
20995
rm -f conftest.$ac_objext conftest$ac_exeext
20996
if { (ac_try="$ac_link"
20997
case "(($ac_try" in
20998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999
  *) ac_try_echo=$ac_try;;
21000
esac
21001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002
  (eval "$ac_link") 2>conftest.er1
21003
  ac_status=$?
21004
  grep -v '^ *+' conftest.er1 >conftest.err
21005
  rm -f conftest.er1
21006
  cat conftest.err >&5
21007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008
  (exit $ac_status); } && {
21009
         test -z "$ac_c_werror_flag" ||
21010
         test ! -s conftest.err
21011
       } && test -s conftest$ac_exeext &&
21012
       $as_test_x conftest$ac_exeext; then
21013
  eval "$as_ac_var=yes"
21014
else
21015
  echo "$as_me: failed program was:" >&5
21016
sed 's/^/| /' conftest.$ac_ext >&5
21017
 
21018
        eval "$as_ac_var=no"
21019
fi
21020
 
21021
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21022
      conftest$ac_exeext conftest.$ac_ext
21023
fi
21024
ac_res=`eval echo '${'$as_ac_var'}'`
21025
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21026
echo "${ECHO_T}$ac_res" >&6; }
21027
if test `eval echo '${'$as_ac_var'}'` = yes; then
21028
  cat >>confdefs.h <<_ACEOF
21029
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21030
_ACEOF
21031
 
21032
fi
21033
done
21034
 
21035 60 jeremybenn
 
21036
for ac_func in basename
21037
do
21038
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21039
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21040
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21041
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21042
  echo $ECHO_N "(cached) $ECHO_C" >&6
21043
else
21044
  cat >conftest.$ac_ext <<_ACEOF
21045
/* confdefs.h.  */
21046
_ACEOF
21047
cat confdefs.h >>conftest.$ac_ext
21048
cat >>conftest.$ac_ext <<_ACEOF
21049
/* end confdefs.h.  */
21050
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21051
   For example, HP-UX 11i  declares gettimeofday.  */
21052
#define $ac_func innocuous_$ac_func
21053
 
21054
/* System header to define __stub macros and hopefully few prototypes,
21055
    which can conflict with char $ac_func (); below.
21056
    Prefer  to  if __STDC__ is defined, since
21057
     exists even on freestanding compilers.  */
21058
 
21059
#ifdef __STDC__
21060
# include 
21061
#else
21062
# include 
21063
#endif
21064
 
21065
#undef $ac_func
21066
 
21067
/* Override any GCC internal prototype to avoid an error.
21068
   Use char because int might match the return type of a GCC
21069
   builtin and then its argument prototype would still apply.  */
21070
#ifdef __cplusplus
21071
extern "C"
21072
#endif
21073
char $ac_func ();
21074
/* The GNU C library defines this for functions which it implements
21075
    to always fail with ENOSYS.  Some functions are actually named
21076
    something starting with __ and the normal name is an alias.  */
21077
#if defined __stub_$ac_func || defined __stub___$ac_func
21078
choke me
21079
#endif
21080
 
21081
int
21082
main ()
21083
{
21084
return $ac_func ();
21085
  ;
21086
  return 0;
21087
}
21088
_ACEOF
21089
rm -f conftest.$ac_objext conftest$ac_exeext
21090
if { (ac_try="$ac_link"
21091
case "(($ac_try" in
21092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093
  *) ac_try_echo=$ac_try;;
21094
esac
21095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096
  (eval "$ac_link") 2>conftest.er1
21097
  ac_status=$?
21098
  grep -v '^ *+' conftest.er1 >conftest.err
21099
  rm -f conftest.er1
21100
  cat conftest.err >&5
21101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102
  (exit $ac_status); } && {
21103
         test -z "$ac_c_werror_flag" ||
21104
         test ! -s conftest.err
21105
       } && test -s conftest$ac_exeext &&
21106
       $as_test_x conftest$ac_exeext; then
21107
  eval "$as_ac_var=yes"
21108
else
21109
  echo "$as_me: failed program was:" >&5
21110
sed 's/^/| /' conftest.$ac_ext >&5
21111
 
21112
        eval "$as_ac_var=no"
21113
fi
21114
 
21115
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21116
      conftest$ac_exeext conftest.$ac_ext
21117
fi
21118
ac_res=`eval echo '${'$as_ac_var'}'`
21119
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21120
echo "${ECHO_T}$ac_res" >&6; }
21121
if test `eval echo '${'$as_ac_var'}'` = yes; then
21122
  cat >>confdefs.h <<_ACEOF
21123
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21124
_ACEOF
21125
 
21126
fi
21127
done
21128
 
21129 19 jeremybenn
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
21130
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
21131
if test "${ac_cv_func_strcoll_works+set}" = set; then
21132
  echo $ECHO_N "(cached) $ECHO_C" >&6
21133
else
21134
  if test "$cross_compiling" = yes; then
21135
  ac_cv_func_strcoll_works=no
21136
else
21137
  cat >conftest.$ac_ext <<_ACEOF
21138
/* confdefs.h.  */
21139
_ACEOF
21140
cat confdefs.h >>conftest.$ac_ext
21141
cat >>conftest.$ac_ext <<_ACEOF
21142
/* end confdefs.h.  */
21143
$ac_includes_default
21144
int
21145
main ()
21146
{
21147
return (strcoll ("abc", "def") >= 0 ||
21148
         strcoll ("ABC", "DEF") >= 0 ||
21149
         strcoll ("123", "456") >= 0)
21150
  ;
21151
  return 0;
21152
}
21153
_ACEOF
21154
rm -f conftest$ac_exeext
21155
if { (ac_try="$ac_link"
21156
case "(($ac_try" in
21157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158
  *) ac_try_echo=$ac_try;;
21159
esac
21160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161
  (eval "$ac_link") 2>&5
21162
  ac_status=$?
21163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21165
  { (case "(($ac_try" in
21166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167
  *) ac_try_echo=$ac_try;;
21168
esac
21169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170
  (eval "$ac_try") 2>&5
21171
  ac_status=$?
21172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173
  (exit $ac_status); }; }; then
21174
  ac_cv_func_strcoll_works=yes
21175
else
21176
  echo "$as_me: program exited with status $ac_status" >&5
21177
echo "$as_me: failed program was:" >&5
21178
sed 's/^/| /' conftest.$ac_ext >&5
21179
 
21180
( exit $ac_status )
21181
ac_cv_func_strcoll_works=no
21182
fi
21183
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21184
fi
21185
 
21186
 
21187
fi
21188
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
21189
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
21190
if test $ac_cv_func_strcoll_works = yes; then
21191
 
21192
cat >>confdefs.h <<\_ACEOF
21193
@%:@define HAVE_STRCOLL 1
21194
_ACEOF
21195
 
21196
fi
21197
 
21198 60 jeremybenn
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21199
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21200
if test "${ac_cv_header_stdc+set}" = set; then
21201
  echo $ECHO_N "(cached) $ECHO_C" >&6
21202
else
21203
  cat >conftest.$ac_ext <<_ACEOF
21204
/* confdefs.h.  */
21205
_ACEOF
21206
cat confdefs.h >>conftest.$ac_ext
21207
cat >>conftest.$ac_ext <<_ACEOF
21208
/* end confdefs.h.  */
21209
#include 
21210
#include 
21211
#include 
21212
#include 
21213 19 jeremybenn
 
21214 60 jeremybenn
int
21215
main ()
21216
{
21217 19 jeremybenn
 
21218 60 jeremybenn
  ;
21219
  return 0;
21220
}
21221
_ACEOF
21222
rm -f conftest.$ac_objext
21223
if { (ac_try="$ac_compile"
21224
case "(($ac_try" in
21225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226
  *) ac_try_echo=$ac_try;;
21227
esac
21228
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229
  (eval "$ac_compile") 2>conftest.er1
21230
  ac_status=$?
21231
  grep -v '^ *+' conftest.er1 >conftest.err
21232
  rm -f conftest.er1
21233
  cat conftest.err >&5
21234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235
  (exit $ac_status); } && {
21236
         test -z "$ac_c_werror_flag" ||
21237
         test ! -s conftest.err
21238
       } && test -s conftest.$ac_objext; then
21239
  ac_cv_header_stdc=yes
21240
else
21241
  echo "$as_me: failed program was:" >&5
21242
sed 's/^/| /' conftest.$ac_ext >&5
21243 19 jeremybenn
 
21244 60 jeremybenn
        ac_cv_header_stdc=no
21245
fi
21246 19 jeremybenn
 
21247 60 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248 19 jeremybenn
 
21249 60 jeremybenn
if test $ac_cv_header_stdc = yes; then
21250
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21251
  cat >conftest.$ac_ext <<_ACEOF
21252
/* confdefs.h.  */
21253
_ACEOF
21254
cat confdefs.h >>conftest.$ac_ext
21255
cat >>conftest.$ac_ext <<_ACEOF
21256
/* end confdefs.h.  */
21257
#include 
21258 19 jeremybenn
 
21259 60 jeremybenn
_ACEOF
21260
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21261
  $EGREP "memchr" >/dev/null 2>&1; then
21262
  :
21263
else
21264
  ac_cv_header_stdc=no
21265
fi
21266
rm -f conftest*
21267 19 jeremybenn
 
21268 60 jeremybenn
fi
21269 19 jeremybenn
 
21270 60 jeremybenn
if test $ac_cv_header_stdc = yes; then
21271
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21272
  cat >conftest.$ac_ext <<_ACEOF
21273
/* confdefs.h.  */
21274
_ACEOF
21275
cat confdefs.h >>conftest.$ac_ext
21276
cat >>conftest.$ac_ext <<_ACEOF
21277
/* end confdefs.h.  */
21278
#include 
21279 19 jeremybenn
 
21280 60 jeremybenn
_ACEOF
21281
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21282
  $EGREP "free" >/dev/null 2>&1; then
21283
  :
21284
else
21285
  ac_cv_header_stdc=no
21286
fi
21287
rm -f conftest*
21288 19 jeremybenn
 
21289 60 jeremybenn
fi
21290 19 jeremybenn
 
21291 60 jeremybenn
if test $ac_cv_header_stdc = yes; then
21292
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21293
  if test "$cross_compiling" = yes; then
21294
  :
21295
else
21296
  cat >conftest.$ac_ext <<_ACEOF
21297
/* confdefs.h.  */
21298
_ACEOF
21299
cat confdefs.h >>conftest.$ac_ext
21300
cat >>conftest.$ac_ext <<_ACEOF
21301
/* end confdefs.h.  */
21302
#include 
21303
#include 
21304
#if ((' ' & 0x0FF) == 0x020)
21305
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21306
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21307
#else
21308
# define ISLOWER(c) \
21309
                   (('a' <= (c) && (c) <= 'i') \
21310
                     || ('j' <= (c) && (c) <= 'r') \
21311
                     || ('s' <= (c) && (c) <= 'z'))
21312
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21313
#endif
21314 19 jeremybenn
 
21315 60 jeremybenn
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21316
int
21317
main ()
21318
{
21319
  int i;
21320
  for (i = 0; i < 256; i++)
21321
    if (XOR (islower (i), ISLOWER (i))
21322
        || toupper (i) != TOUPPER (i))
21323
      return 2;
21324
  return 0;
21325
}
21326
_ACEOF
21327
rm -f conftest$ac_exeext
21328
if { (ac_try="$ac_link"
21329
case "(($ac_try" in
21330
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331
  *) ac_try_echo=$ac_try;;
21332
esac
21333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334
  (eval "$ac_link") 2>&5
21335
  ac_status=$?
21336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338
  { (case "(($ac_try" in
21339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340
  *) ac_try_echo=$ac_try;;
21341
esac
21342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21343
  (eval "$ac_try") 2>&5
21344
  ac_status=$?
21345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346
  (exit $ac_status); }; }; then
21347
  :
21348
else
21349
  echo "$as_me: program exited with status $ac_status" >&5
21350
echo "$as_me: failed program was:" >&5
21351
sed 's/^/| /' conftest.$ac_ext >&5
21352 19 jeremybenn
 
21353 60 jeremybenn
( exit $ac_status )
21354
ac_cv_header_stdc=no
21355
fi
21356
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21357
fi
21358 19 jeremybenn
 
21359
 
21360 60 jeremybenn
fi
21361
fi
21362
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21363
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21364
if test $ac_cv_header_stdc = yes; then
21365
 
21366
cat >>confdefs.h <<\_ACEOF
21367
@%:@define STDC_HEADERS 1
21368
_ACEOF
21369 19 jeremybenn
 
21370 60 jeremybenn
fi
21371 19 jeremybenn
 
21372
 
21373
 
21374 60 jeremybenn
 
21375
 
21376
 
21377
 
21378
 
21379
 
21380
 
21381
 
21382
 
21383
 
21384
 
21385
 
21386
 
21387
 
21388
 
21389
 
21390
 
21391
 
21392
 
21393
 
21394
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
21395 19 jeremybenn
                sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
21396 60 jeremybenn
                termcap.h termios.h termio.h sys/file.h locale.h getopt.h \
21397
                net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
21398 19 jeremybenn
do
21399
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21400
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21402
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21403
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21404
  echo $ECHO_N "(cached) $ECHO_C" >&6
21405
fi
21406
ac_res=`eval echo '${'$as_ac_Header'}'`
21407
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21408
echo "${ECHO_T}$ac_res" >&6; }
21409
else
21410
  # Is the header compilable?
21411
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21412
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21413
cat >conftest.$ac_ext <<_ACEOF
21414
/* confdefs.h.  */
21415
_ACEOF
21416
cat confdefs.h >>conftest.$ac_ext
21417
cat >>conftest.$ac_ext <<_ACEOF
21418
/* end confdefs.h.  */
21419
$ac_includes_default
21420
@%:@include <$ac_header>
21421
_ACEOF
21422
rm -f conftest.$ac_objext
21423
if { (ac_try="$ac_compile"
21424
case "(($ac_try" in
21425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426
  *) ac_try_echo=$ac_try;;
21427
esac
21428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429
  (eval "$ac_compile") 2>conftest.er1
21430
  ac_status=$?
21431
  grep -v '^ *+' conftest.er1 >conftest.err
21432
  rm -f conftest.er1
21433
  cat conftest.err >&5
21434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435
  (exit $ac_status); } && {
21436
         test -z "$ac_c_werror_flag" ||
21437
         test ! -s conftest.err
21438
       } && test -s conftest.$ac_objext; then
21439
  ac_header_compiler=yes
21440
else
21441
  echo "$as_me: failed program was:" >&5
21442
sed 's/^/| /' conftest.$ac_ext >&5
21443
 
21444
        ac_header_compiler=no
21445
fi
21446
 
21447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21449
echo "${ECHO_T}$ac_header_compiler" >&6; }
21450
 
21451
# Is the header present?
21452
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21453
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21454
cat >conftest.$ac_ext <<_ACEOF
21455
/* confdefs.h.  */
21456
_ACEOF
21457
cat confdefs.h >>conftest.$ac_ext
21458
cat >>conftest.$ac_ext <<_ACEOF
21459
/* end confdefs.h.  */
21460
@%:@include <$ac_header>
21461
_ACEOF
21462
if { (ac_try="$ac_cpp conftest.$ac_ext"
21463
case "(($ac_try" in
21464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465
  *) ac_try_echo=$ac_try;;
21466
esac
21467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21469
  ac_status=$?
21470
  grep -v '^ *+' conftest.er1 >conftest.err
21471
  rm -f conftest.er1
21472
  cat conftest.err >&5
21473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474
  (exit $ac_status); } >/dev/null && {
21475
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21476
         test ! -s conftest.err
21477
       }; then
21478
  ac_header_preproc=yes
21479
else
21480
  echo "$as_me: failed program was:" >&5
21481
sed 's/^/| /' conftest.$ac_ext >&5
21482
 
21483
  ac_header_preproc=no
21484
fi
21485
 
21486
rm -f conftest.err conftest.$ac_ext
21487
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21488
echo "${ECHO_T}$ac_header_preproc" >&6; }
21489
 
21490
# So?  What about this header?
21491
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21492
  yes:no: )
21493
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21494
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21495
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21496
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21497
    ac_header_preproc=yes
21498
    ;;
21499
  no:yes:* )
21500
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21501
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21502
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21503
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21504
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21505
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21506
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21507
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21508
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21509
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21510
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21511
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21512
    ( cat <<\_ASBOX
21513
@%:@@%:@ ------------------------------------- @%:@@%:@
21514
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
21515
@%:@@%:@ ------------------------------------- @%:@@%:@
21516
_ASBOX
21517
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21518
    ;;
21519
esac
21520
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21521
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21522
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21523
  echo $ECHO_N "(cached) $ECHO_C" >&6
21524
else
21525
  eval "$as_ac_Header=\$ac_header_preproc"
21526
fi
21527
ac_res=`eval echo '${'$as_ac_Header'}'`
21528
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21529
echo "${ECHO_T}$ac_res" >&6; }
21530
 
21531
fi
21532
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21533
  cat >>confdefs.h <<_ACEOF
21534
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21535
_ACEOF
21536
 
21537
fi
21538
 
21539
done
21540
 
21541 60 jeremybenn
{ echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
21542
echo $ECHO_N "checking whether I_PUSH is declared... $ECHO_C" >&6; }
21543
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
21544
  echo $ECHO_N "(cached) $ECHO_C" >&6
21545
else
21546
  cat >conftest.$ac_ext <<_ACEOF
21547
/* confdefs.h.  */
21548
_ACEOF
21549
cat confdefs.h >>conftest.$ac_ext
21550
cat >>conftest.$ac_ext <<_ACEOF
21551
/* end confdefs.h.  */
21552
$ac_includes_default
21553
int
21554
main ()
21555
{
21556
#ifndef I_PUSH
21557
  (void) I_PUSH;
21558
#endif
21559
 
21560
  ;
21561
  return 0;
21562
}
21563
_ACEOF
21564
rm -f conftest.$ac_objext
21565
if { (ac_try="$ac_compile"
21566
case "(($ac_try" in
21567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568
  *) ac_try_echo=$ac_try;;
21569
esac
21570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571
  (eval "$ac_compile") 2>conftest.er1
21572
  ac_status=$?
21573
  grep -v '^ *+' conftest.er1 >conftest.err
21574
  rm -f conftest.er1
21575
  cat conftest.err >&5
21576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577
  (exit $ac_status); } && {
21578
         test -z "$ac_c_werror_flag" ||
21579
         test ! -s conftest.err
21580
       } && test -s conftest.$ac_objext; then
21581
  ac_cv_have_decl_I_PUSH=yes
21582
else
21583
  echo "$as_me: failed program was:" >&5
21584
sed 's/^/| /' conftest.$ac_ext >&5
21585
 
21586
        ac_cv_have_decl_I_PUSH=no
21587
fi
21588
 
21589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590
fi
21591
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
21592
echo "${ECHO_T}$ac_cv_have_decl_I_PUSH" >&6; }
21593
if test $ac_cv_have_decl_I_PUSH = yes; then
21594
 
21595
cat >>confdefs.h <<_ACEOF
21596
@%:@define HAVE_DECL_I_PUSH 1
21597
_ACEOF
21598
 
21599
 
21600
else
21601
  cat >>confdefs.h <<_ACEOF
21602
@%:@define HAVE_DECL_I_PUSH 0
21603
_ACEOF
21604
 
21605
 
21606
fi
21607
 
21608
 
21609 19 jeremybenn
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21610
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21611
if test "${ac_cv_c_bigendian+set}" = set; then
21612
  echo $ECHO_N "(cached) $ECHO_C" >&6
21613
else
21614
  # See if sys/param.h defines the BYTE_ORDER macro.
21615
cat >conftest.$ac_ext <<_ACEOF
21616
/* confdefs.h.  */
21617
_ACEOF
21618
cat confdefs.h >>conftest.$ac_ext
21619
cat >>conftest.$ac_ext <<_ACEOF
21620
/* end confdefs.h.  */
21621
#include 
21622
#include 
21623
 
21624
int
21625
main ()
21626
{
21627
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21628
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21629
 bogus endian macros
21630
#endif
21631
 
21632
  ;
21633
  return 0;
21634
}
21635
_ACEOF
21636
rm -f conftest.$ac_objext
21637
if { (ac_try="$ac_compile"
21638
case "(($ac_try" in
21639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640
  *) ac_try_echo=$ac_try;;
21641
esac
21642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643
  (eval "$ac_compile") 2>conftest.er1
21644
  ac_status=$?
21645
  grep -v '^ *+' conftest.er1 >conftest.err
21646
  rm -f conftest.er1
21647
  cat conftest.err >&5
21648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649
  (exit $ac_status); } && {
21650
         test -z "$ac_c_werror_flag" ||
21651
         test ! -s conftest.err
21652
       } && test -s conftest.$ac_objext; then
21653
  # It does; now see whether it defined to BIG_ENDIAN or not.
21654
cat >conftest.$ac_ext <<_ACEOF
21655
/* confdefs.h.  */
21656
_ACEOF
21657
cat confdefs.h >>conftest.$ac_ext
21658
cat >>conftest.$ac_ext <<_ACEOF
21659
/* end confdefs.h.  */
21660
#include 
21661
#include 
21662
 
21663
int
21664
main ()
21665
{
21666
#if BYTE_ORDER != BIG_ENDIAN
21667
 not big endian
21668
#endif
21669
 
21670
  ;
21671
  return 0;
21672
}
21673
_ACEOF
21674
rm -f conftest.$ac_objext
21675
if { (ac_try="$ac_compile"
21676
case "(($ac_try" in
21677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678
  *) ac_try_echo=$ac_try;;
21679
esac
21680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681
  (eval "$ac_compile") 2>conftest.er1
21682
  ac_status=$?
21683
  grep -v '^ *+' conftest.er1 >conftest.err
21684
  rm -f conftest.er1
21685
  cat conftest.err >&5
21686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687
  (exit $ac_status); } && {
21688
         test -z "$ac_c_werror_flag" ||
21689
         test ! -s conftest.err
21690
       } && test -s conftest.$ac_objext; then
21691
  ac_cv_c_bigendian=yes
21692
else
21693
  echo "$as_me: failed program was:" >&5
21694
sed 's/^/| /' conftest.$ac_ext >&5
21695
 
21696
        ac_cv_c_bigendian=no
21697
fi
21698
 
21699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700
else
21701
  echo "$as_me: failed program was:" >&5
21702
sed 's/^/| /' conftest.$ac_ext >&5
21703
 
21704
        # It does not; compile a test program.
21705
if test "$cross_compiling" = yes; then
21706
  # try to guess the endianness by grepping values into an object file
21707
  ac_cv_c_bigendian=unknown
21708
  cat >conftest.$ac_ext <<_ACEOF
21709
/* confdefs.h.  */
21710
_ACEOF
21711
cat confdefs.h >>conftest.$ac_ext
21712
cat >>conftest.$ac_ext <<_ACEOF
21713
/* end confdefs.h.  */
21714
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21715
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21716
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21717
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21718
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21719
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21720
int
21721
main ()
21722
{
21723
 _ascii (); _ebcdic ();
21724
  ;
21725
  return 0;
21726
}
21727
_ACEOF
21728
rm -f conftest.$ac_objext
21729
if { (ac_try="$ac_compile"
21730
case "(($ac_try" in
21731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732
  *) ac_try_echo=$ac_try;;
21733
esac
21734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735
  (eval "$ac_compile") 2>conftest.er1
21736
  ac_status=$?
21737
  grep -v '^ *+' conftest.er1 >conftest.err
21738
  rm -f conftest.er1
21739
  cat conftest.err >&5
21740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741
  (exit $ac_status); } && {
21742
         test -z "$ac_c_werror_flag" ||
21743
         test ! -s conftest.err
21744
       } && test -s conftest.$ac_objext; then
21745
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21746
  ac_cv_c_bigendian=yes
21747
fi
21748
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21749
  if test "$ac_cv_c_bigendian" = unknown; then
21750
    ac_cv_c_bigendian=no
21751
  else
21752
    # finding both strings is unlikely to happen, but who knows?
21753
    ac_cv_c_bigendian=unknown
21754
  fi
21755
fi
21756
else
21757
  echo "$as_me: failed program was:" >&5
21758
sed 's/^/| /' conftest.$ac_ext >&5
21759
 
21760
 
21761
fi
21762
 
21763
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21764
else
21765
  cat >conftest.$ac_ext <<_ACEOF
21766
/* confdefs.h.  */
21767
_ACEOF
21768
cat confdefs.h >>conftest.$ac_ext
21769
cat >>conftest.$ac_ext <<_ACEOF
21770
/* end confdefs.h.  */
21771
$ac_includes_default
21772
int
21773
main ()
21774
{
21775
 
21776
  /* Are we little or big endian?  From Harbison&Steele.  */
21777
  union
21778
  {
21779
    long int l;
21780
    char c[sizeof (long int)];
21781
  } u;
21782
  u.l = 1;
21783
  return u.c[sizeof (long int) - 1] == 1;
21784
 
21785
  ;
21786
  return 0;
21787
}
21788
_ACEOF
21789
rm -f conftest$ac_exeext
21790
if { (ac_try="$ac_link"
21791
case "(($ac_try" in
21792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793
  *) ac_try_echo=$ac_try;;
21794
esac
21795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796
  (eval "$ac_link") 2>&5
21797
  ac_status=$?
21798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21800
  { (case "(($ac_try" in
21801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802
  *) ac_try_echo=$ac_try;;
21803
esac
21804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805
  (eval "$ac_try") 2>&5
21806
  ac_status=$?
21807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808
  (exit $ac_status); }; }; then
21809
  ac_cv_c_bigendian=no
21810
else
21811
  echo "$as_me: program exited with status $ac_status" >&5
21812
echo "$as_me: failed program was:" >&5
21813
sed 's/^/| /' conftest.$ac_ext >&5
21814
 
21815
( exit $ac_status )
21816
ac_cv_c_bigendian=yes
21817
fi
21818
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21819
fi
21820
 
21821
 
21822
fi
21823
 
21824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825
fi
21826
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21827
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21828
case $ac_cv_c_bigendian in
21829
  yes)
21830
 
21831
cat >>confdefs.h <<\_ACEOF
21832
@%:@define WORDS_BIGENDIAN 1
21833
_ACEOF
21834
 ;;
21835
  no)
21836
     ;;
21837
  *)
21838
    { { echo "$as_me:$LINENO: error: unknown endianness
21839
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21840
echo "$as_me: error: unknown endianness
21841
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21842
   { (exit 1); exit 1; }; } ;;
21843
esac
21844
 
21845
 
21846 60 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
21847
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21848
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21849
if test "${ac_cv_c_const+set}" = set; then
21850
  echo $ECHO_N "(cached) $ECHO_C" >&6
21851
else
21852
  cat >conftest.$ac_ext <<_ACEOF
21853
/* confdefs.h.  */
21854
_ACEOF
21855
cat confdefs.h >>conftest.$ac_ext
21856
cat >>conftest.$ac_ext <<_ACEOF
21857
/* end confdefs.h.  */
21858
 
21859
int
21860
main ()
21861
{
21862
/* FIXME: Include the comments suggested by Paul. */
21863
#ifndef __cplusplus
21864
  /* Ultrix mips cc rejects this.  */
21865
  typedef int charset[2];
21866
  const charset cs;
21867
  /* SunOS 4.1.1 cc rejects this.  */
21868
  char const *const *pcpcc;
21869
  char **ppc;
21870
  /* NEC SVR4.0.2 mips cc rejects this.  */
21871
  struct point {int x, y;};
21872
  static struct point const zero = {0,0};
21873
  /* AIX XL C 1.02.0.0 rejects this.
21874
     It does not let you subtract one const X* pointer from another in
21875
     an arm of an if-expression whose if-part is not a constant
21876
     expression */
21877
  const char *g = "string";
21878
  pcpcc = &g + (g ? g-g : 0);
21879
  /* HPUX 7.0 cc rejects these. */
21880
  ++pcpcc;
21881
  ppc = (char**) pcpcc;
21882
  pcpcc = (char const *const *) ppc;
21883
  { /* SCO 3.2v4 cc rejects this.  */
21884
    char *t;
21885
    char const *s = 0 ? (char *) 0 : (char const *) 0;
21886
 
21887
    *t++ = 0;
21888
    if (s) return 0;
21889
  }
21890
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21891
    int x[] = {25, 17};
21892
    const int *foo = &x[0];
21893
    ++foo;
21894
  }
21895
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21896
    typedef const int *iptr;
21897
    iptr p = 0;
21898
    ++p;
21899
  }
21900
  { /* AIX XL C 1.02.0.0 rejects this saying
21901
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21902
    struct s { int j; const int *ap[3]; };
21903
    struct s *b; b->j = 5;
21904
  }
21905
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21906
    const int foo = 10;
21907
    if (!foo) return 0;
21908
  }
21909
  return !cs[0] && !zero.x;
21910
#endif
21911
 
21912
  ;
21913
  return 0;
21914
}
21915
_ACEOF
21916
rm -f conftest.$ac_objext
21917
if { (ac_try="$ac_compile"
21918
case "(($ac_try" in
21919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920
  *) ac_try_echo=$ac_try;;
21921
esac
21922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923
  (eval "$ac_compile") 2>conftest.er1
21924
  ac_status=$?
21925
  grep -v '^ *+' conftest.er1 >conftest.err
21926
  rm -f conftest.er1
21927
  cat conftest.err >&5
21928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929
  (exit $ac_status); } && {
21930
         test -z "$ac_c_werror_flag" ||
21931
         test ! -s conftest.err
21932
       } && test -s conftest.$ac_objext; then
21933
  ac_cv_c_const=yes
21934
else
21935
  echo "$as_me: failed program was:" >&5
21936
sed 's/^/| /' conftest.$ac_ext >&5
21937
 
21938
        ac_cv_c_const=no
21939
fi
21940
 
21941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942
fi
21943
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21944
echo "${ECHO_T}$ac_cv_c_const" >&6; }
21945
if test $ac_cv_c_const = no; then
21946
 
21947
cat >>confdefs.h <<\_ACEOF
21948
@%:@define const
21949
_ACEOF
21950
 
21951
fi
21952
 
21953
{ echo "$as_me:$LINENO: checking for size_t" >&5
21954
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21955
if test "${ac_cv_type_size_t+set}" = set; then
21956
  echo $ECHO_N "(cached) $ECHO_C" >&6
21957
else
21958
  cat >conftest.$ac_ext <<_ACEOF
21959
/* confdefs.h.  */
21960
_ACEOF
21961
cat confdefs.h >>conftest.$ac_ext
21962
cat >>conftest.$ac_ext <<_ACEOF
21963
/* end confdefs.h.  */
21964
$ac_includes_default
21965
typedef size_t ac__type_new_;
21966
int
21967
main ()
21968
{
21969
if ((ac__type_new_ *) 0)
21970
  return 0;
21971
if (sizeof (ac__type_new_))
21972
  return 0;
21973
  ;
21974
  return 0;
21975
}
21976
_ACEOF
21977
rm -f conftest.$ac_objext
21978
if { (ac_try="$ac_compile"
21979
case "(($ac_try" in
21980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981
  *) ac_try_echo=$ac_try;;
21982
esac
21983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984
  (eval "$ac_compile") 2>conftest.er1
21985
  ac_status=$?
21986
  grep -v '^ *+' conftest.er1 >conftest.err
21987
  rm -f conftest.er1
21988
  cat conftest.err >&5
21989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990
  (exit $ac_status); } && {
21991
         test -z "$ac_c_werror_flag" ||
21992
         test ! -s conftest.err
21993
       } && test -s conftest.$ac_objext; then
21994
  ac_cv_type_size_t=yes
21995
else
21996
  echo "$as_me: failed program was:" >&5
21997
sed 's/^/| /' conftest.$ac_ext >&5
21998
 
21999
        ac_cv_type_size_t=no
22000
fi
22001
 
22002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003
fi
22004
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22005
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22006
if test $ac_cv_type_size_t = yes; then
22007
  :
22008
else
22009
 
22010
cat >>confdefs.h <<_ACEOF
22011
@%:@define size_t unsigned int
22012
_ACEOF
22013
 
22014
fi
22015
 
22016
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22017
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22018
if test "${ac_cv_struct_tm+set}" = set; then
22019
  echo $ECHO_N "(cached) $ECHO_C" >&6
22020
else
22021
  cat >conftest.$ac_ext <<_ACEOF
22022
/* confdefs.h.  */
22023
_ACEOF
22024
cat confdefs.h >>conftest.$ac_ext
22025
cat >>conftest.$ac_ext <<_ACEOF
22026
/* end confdefs.h.  */
22027
#include 
22028
#include 
22029
 
22030
int
22031
main ()
22032
{
22033
struct tm tm;
22034
                                     int *p = &tm.tm_sec;
22035
                                     return !p;
22036
  ;
22037
  return 0;
22038
}
22039
_ACEOF
22040
rm -f conftest.$ac_objext
22041
if { (ac_try="$ac_compile"
22042
case "(($ac_try" in
22043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044
  *) ac_try_echo=$ac_try;;
22045
esac
22046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047
  (eval "$ac_compile") 2>conftest.er1
22048
  ac_status=$?
22049
  grep -v '^ *+' conftest.er1 >conftest.err
22050
  rm -f conftest.er1
22051
  cat conftest.err >&5
22052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053
  (exit $ac_status); } && {
22054
         test -z "$ac_c_werror_flag" ||
22055
         test ! -s conftest.err
22056
       } && test -s conftest.$ac_objext; then
22057
  ac_cv_struct_tm=time.h
22058
else
22059
  echo "$as_me: failed program was:" >&5
22060
sed 's/^/| /' conftest.$ac_ext >&5
22061
 
22062
        ac_cv_struct_tm=sys/time.h
22063
fi
22064
 
22065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066
fi
22067
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22068
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22069
if test $ac_cv_struct_tm = sys/time.h; then
22070
 
22071
cat >>confdefs.h <<\_ACEOF
22072
@%:@define TM_IN_SYS_TIME 1
22073
_ACEOF
22074
 
22075
fi
22076
 
22077
 
22078
# Checks for library functions (for argtable2).
22079
 
22080
for ac_header in stdlib.h
22081
do
22082
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22083
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22085
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087
  echo $ECHO_N "(cached) $ECHO_C" >&6
22088
fi
22089
ac_res=`eval echo '${'$as_ac_Header'}'`
22090
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22091
echo "${ECHO_T}$ac_res" >&6; }
22092
else
22093
  # Is the header compilable?
22094
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22095
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22096
cat >conftest.$ac_ext <<_ACEOF
22097
/* confdefs.h.  */
22098
_ACEOF
22099
cat confdefs.h >>conftest.$ac_ext
22100
cat >>conftest.$ac_ext <<_ACEOF
22101
/* end confdefs.h.  */
22102
$ac_includes_default
22103
@%:@include <$ac_header>
22104
_ACEOF
22105
rm -f conftest.$ac_objext
22106
if { (ac_try="$ac_compile"
22107
case "(($ac_try" in
22108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109
  *) ac_try_echo=$ac_try;;
22110
esac
22111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112
  (eval "$ac_compile") 2>conftest.er1
22113
  ac_status=$?
22114
  grep -v '^ *+' conftest.er1 >conftest.err
22115
  rm -f conftest.er1
22116
  cat conftest.err >&5
22117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118
  (exit $ac_status); } && {
22119
         test -z "$ac_c_werror_flag" ||
22120
         test ! -s conftest.err
22121
       } && test -s conftest.$ac_objext; then
22122
  ac_header_compiler=yes
22123
else
22124
  echo "$as_me: failed program was:" >&5
22125
sed 's/^/| /' conftest.$ac_ext >&5
22126
 
22127
        ac_header_compiler=no
22128
fi
22129
 
22130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22132
echo "${ECHO_T}$ac_header_compiler" >&6; }
22133
 
22134
# Is the header present?
22135
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22136
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22137
cat >conftest.$ac_ext <<_ACEOF
22138
/* confdefs.h.  */
22139
_ACEOF
22140
cat confdefs.h >>conftest.$ac_ext
22141
cat >>conftest.$ac_ext <<_ACEOF
22142
/* end confdefs.h.  */
22143
@%:@include <$ac_header>
22144
_ACEOF
22145
if { (ac_try="$ac_cpp conftest.$ac_ext"
22146
case "(($ac_try" in
22147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148
  *) ac_try_echo=$ac_try;;
22149
esac
22150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22152
  ac_status=$?
22153
  grep -v '^ *+' conftest.er1 >conftest.err
22154
  rm -f conftest.er1
22155
  cat conftest.err >&5
22156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157
  (exit $ac_status); } >/dev/null && {
22158
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22159
         test ! -s conftest.err
22160
       }; then
22161
  ac_header_preproc=yes
22162
else
22163
  echo "$as_me: failed program was:" >&5
22164
sed 's/^/| /' conftest.$ac_ext >&5
22165
 
22166
  ac_header_preproc=no
22167
fi
22168
 
22169
rm -f conftest.err conftest.$ac_ext
22170
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22171
echo "${ECHO_T}$ac_header_preproc" >&6; }
22172
 
22173
# So?  What about this header?
22174
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22175
  yes:no: )
22176
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22177
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22178
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22179
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22180
    ac_header_preproc=yes
22181
    ;;
22182
  no:yes:* )
22183
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22184
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22185
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22186
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22187
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22188
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22189
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22190
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22191
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22192
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22193
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22194
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22195
    ( cat <<\_ASBOX
22196
@%:@@%:@ ------------------------------------- @%:@@%:@
22197
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
22198
@%:@@%:@ ------------------------------------- @%:@@%:@
22199
_ASBOX
22200
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22201
    ;;
22202
esac
22203
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22204
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22205
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22206
  echo $ECHO_N "(cached) $ECHO_C" >&6
22207
else
22208
  eval "$as_ac_Header=\$ac_header_preproc"
22209
fi
22210
ac_res=`eval echo '${'$as_ac_Header'}'`
22211
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22212
echo "${ECHO_T}$ac_res" >&6; }
22213
 
22214
fi
22215
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22216
  cat >>confdefs.h <<_ACEOF
22217
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22218
_ACEOF
22219
 
22220
fi
22221
 
22222
done
22223
 
22224
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22225
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22226
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22227
  echo $ECHO_N "(cached) $ECHO_C" >&6
22228
else
22229
  if test "$cross_compiling" = yes; then
22230
  ac_cv_func_malloc_0_nonnull=no
22231
else
22232
  cat >conftest.$ac_ext <<_ACEOF
22233
/* confdefs.h.  */
22234
_ACEOF
22235
cat confdefs.h >>conftest.$ac_ext
22236
cat >>conftest.$ac_ext <<_ACEOF
22237
/* end confdefs.h.  */
22238
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22239
# include 
22240
#else
22241
char *malloc ();
22242
#endif
22243
 
22244
int
22245
main ()
22246
{
22247
return ! malloc (0);
22248
  ;
22249
  return 0;
22250
}
22251
_ACEOF
22252
rm -f conftest$ac_exeext
22253
if { (ac_try="$ac_link"
22254
case "(($ac_try" in
22255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256
  *) ac_try_echo=$ac_try;;
22257
esac
22258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259
  (eval "$ac_link") 2>&5
22260
  ac_status=$?
22261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263
  { (case "(($ac_try" in
22264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265
  *) ac_try_echo=$ac_try;;
22266
esac
22267
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268
  (eval "$ac_try") 2>&5
22269
  ac_status=$?
22270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271
  (exit $ac_status); }; }; then
22272
  ac_cv_func_malloc_0_nonnull=yes
22273
else
22274
  echo "$as_me: program exited with status $ac_status" >&5
22275
echo "$as_me: failed program was:" >&5
22276
sed 's/^/| /' conftest.$ac_ext >&5
22277
 
22278
( exit $ac_status )
22279
ac_cv_func_malloc_0_nonnull=no
22280
fi
22281
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22282
fi
22283
 
22284
 
22285
fi
22286
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22287
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22288
if test $ac_cv_func_malloc_0_nonnull = yes; then
22289
 
22290
cat >>confdefs.h <<\_ACEOF
22291
@%:@define HAVE_MALLOC 1
22292
_ACEOF
22293
 
22294
else
22295
  cat >>confdefs.h <<\_ACEOF
22296
@%:@define HAVE_MALLOC 0
22297
_ACEOF
22298
 
22299
   case " $LIB@&t@OBJS " in
22300
  *" malloc.$ac_objext "* ) ;;
22301
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
22302
 ;;
22303
esac
22304
 
22305
 
22306
cat >>confdefs.h <<\_ACEOF
22307
@%:@define malloc rpl_malloc
22308
_ACEOF
22309
 
22310
fi
22311
 
22312
 
22313
 
22314
 
22315
for ac_func in strftime
22316
do
22317
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22318
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22319
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22320
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22321
  echo $ECHO_N "(cached) $ECHO_C" >&6
22322
else
22323
  cat >conftest.$ac_ext <<_ACEOF
22324
/* confdefs.h.  */
22325
_ACEOF
22326
cat confdefs.h >>conftest.$ac_ext
22327
cat >>conftest.$ac_ext <<_ACEOF
22328
/* end confdefs.h.  */
22329
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22330
   For example, HP-UX 11i  declares gettimeofday.  */
22331
#define $ac_func innocuous_$ac_func
22332
 
22333
/* System header to define __stub macros and hopefully few prototypes,
22334
    which can conflict with char $ac_func (); below.
22335
    Prefer  to  if __STDC__ is defined, since
22336
     exists even on freestanding compilers.  */
22337
 
22338
#ifdef __STDC__
22339
# include 
22340
#else
22341
# include 
22342
#endif
22343
 
22344
#undef $ac_func
22345
 
22346
/* Override any GCC internal prototype to avoid an error.
22347
   Use char because int might match the return type of a GCC
22348
   builtin and then its argument prototype would still apply.  */
22349
#ifdef __cplusplus
22350
extern "C"
22351
#endif
22352
char $ac_func ();
22353
/* The GNU C library defines this for functions which it implements
22354
    to always fail with ENOSYS.  Some functions are actually named
22355
    something starting with __ and the normal name is an alias.  */
22356
#if defined __stub_$ac_func || defined __stub___$ac_func
22357
choke me
22358
#endif
22359
 
22360
int
22361
main ()
22362
{
22363
return $ac_func ();
22364
  ;
22365
  return 0;
22366
}
22367
_ACEOF
22368
rm -f conftest.$ac_objext conftest$ac_exeext
22369
if { (ac_try="$ac_link"
22370
case "(($ac_try" in
22371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372
  *) ac_try_echo=$ac_try;;
22373
esac
22374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375
  (eval "$ac_link") 2>conftest.er1
22376
  ac_status=$?
22377
  grep -v '^ *+' conftest.er1 >conftest.err
22378
  rm -f conftest.er1
22379
  cat conftest.err >&5
22380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381
  (exit $ac_status); } && {
22382
         test -z "$ac_c_werror_flag" ||
22383
         test ! -s conftest.err
22384
       } && test -s conftest$ac_exeext &&
22385
       $as_test_x conftest$ac_exeext; then
22386
  eval "$as_ac_var=yes"
22387
else
22388
  echo "$as_me: failed program was:" >&5
22389
sed 's/^/| /' conftest.$ac_ext >&5
22390
 
22391
        eval "$as_ac_var=no"
22392
fi
22393
 
22394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22395
      conftest$ac_exeext conftest.$ac_ext
22396
fi
22397
ac_res=`eval echo '${'$as_ac_var'}'`
22398
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22399
echo "${ECHO_T}$ac_res" >&6; }
22400
if test `eval echo '${'$as_ac_var'}'` = yes; then
22401
  cat >>confdefs.h <<_ACEOF
22402
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22403
_ACEOF
22404
 
22405
else
22406
  # strftime is in -lintl on SCO UNIX.
22407
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22408
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22409
if test "${ac_cv_lib_intl_strftime+set}" = set; then
22410
  echo $ECHO_N "(cached) $ECHO_C" >&6
22411
else
22412
  ac_check_lib_save_LIBS=$LIBS
22413
LIBS="-lintl  $LIBS"
22414
cat >conftest.$ac_ext <<_ACEOF
22415
/* confdefs.h.  */
22416
_ACEOF
22417
cat confdefs.h >>conftest.$ac_ext
22418
cat >>conftest.$ac_ext <<_ACEOF
22419
/* end confdefs.h.  */
22420
 
22421
/* Override any GCC internal prototype to avoid an error.
22422
   Use char because int might match the return type of a GCC
22423
   builtin and then its argument prototype would still apply.  */
22424
#ifdef __cplusplus
22425
extern "C"
22426
#endif
22427
char strftime ();
22428
int
22429
main ()
22430
{
22431
return strftime ();
22432
  ;
22433
  return 0;
22434
}
22435
_ACEOF
22436
rm -f conftest.$ac_objext conftest$ac_exeext
22437
if { (ac_try="$ac_link"
22438
case "(($ac_try" in
22439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22440
  *) ac_try_echo=$ac_try;;
22441
esac
22442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22443
  (eval "$ac_link") 2>conftest.er1
22444
  ac_status=$?
22445
  grep -v '^ *+' conftest.er1 >conftest.err
22446
  rm -f conftest.er1
22447
  cat conftest.err >&5
22448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449
  (exit $ac_status); } && {
22450
         test -z "$ac_c_werror_flag" ||
22451
         test ! -s conftest.err
22452
       } && test -s conftest$ac_exeext &&
22453
       $as_test_x conftest$ac_exeext; then
22454
  ac_cv_lib_intl_strftime=yes
22455
else
22456
  echo "$as_me: failed program was:" >&5
22457
sed 's/^/| /' conftest.$ac_ext >&5
22458
 
22459
        ac_cv_lib_intl_strftime=no
22460
fi
22461
 
22462
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22463
      conftest$ac_exeext conftest.$ac_ext
22464
LIBS=$ac_check_lib_save_LIBS
22465
fi
22466
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22467
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22468
if test $ac_cv_lib_intl_strftime = yes; then
22469
  cat >>confdefs.h <<\_ACEOF
22470
@%:@define HAVE_STRFTIME 1
22471
_ACEOF
22472
 
22473
LIBS="-lintl $LIBS"
22474
fi
22475
 
22476
fi
22477
done
22478
 
22479
{ echo "$as_me:$LINENO: checking for working strtod" >&5
22480
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
22481
if test "${ac_cv_func_strtod+set}" = set; then
22482
  echo $ECHO_N "(cached) $ECHO_C" >&6
22483
else
22484
  if test "$cross_compiling" = yes; then
22485
  ac_cv_func_strtod=no
22486
else
22487
  cat >conftest.$ac_ext <<_ACEOF
22488
/* confdefs.h.  */
22489
_ACEOF
22490
cat confdefs.h >>conftest.$ac_ext
22491
cat >>conftest.$ac_ext <<_ACEOF
22492
/* end confdefs.h.  */
22493
 
22494
$ac_includes_default
22495
#ifndef strtod
22496
double strtod ();
22497
#endif
22498
int
22499
main()
22500
{
22501
  {
22502
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22503
    char *string = " +69";
22504
    char *term;
22505
    double value;
22506
    value = strtod (string, &term);
22507
    if (value != 69 || term != (string + 4))
22508
      return 1;
22509
  }
22510
 
22511
  {
22512
    /* Under Solaris 2.4, strtod returns the wrong value for the
22513
       terminating character under some conditions.  */
22514
    char *string = "NaN";
22515
    char *term;
22516
    strtod (string, &term);
22517
    if (term != string && *(term - 1) == 0)
22518
      return 1;
22519
  }
22520
  return 0;
22521
}
22522
 
22523
_ACEOF
22524
rm -f conftest$ac_exeext
22525
if { (ac_try="$ac_link"
22526
case "(($ac_try" in
22527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528
  *) ac_try_echo=$ac_try;;
22529
esac
22530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531
  (eval "$ac_link") 2>&5
22532
  ac_status=$?
22533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22535
  { (case "(($ac_try" in
22536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537
  *) ac_try_echo=$ac_try;;
22538
esac
22539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540
  (eval "$ac_try") 2>&5
22541
  ac_status=$?
22542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543
  (exit $ac_status); }; }; then
22544
  ac_cv_func_strtod=yes
22545
else
22546
  echo "$as_me: program exited with status $ac_status" >&5
22547
echo "$as_me: failed program was:" >&5
22548
sed 's/^/| /' conftest.$ac_ext >&5
22549
 
22550
( exit $ac_status )
22551
ac_cv_func_strtod=no
22552
fi
22553
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22554
fi
22555
 
22556
 
22557
fi
22558
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
22559
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
22560
if test $ac_cv_func_strtod = no; then
22561
  case " $LIB@&t@OBJS " in
22562
  *" strtod.$ac_objext "* ) ;;
22563
  *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
22564
 ;;
22565
esac
22566
 
22567
{ echo "$as_me:$LINENO: checking for pow" >&5
22568
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
22569
if test "${ac_cv_func_pow+set}" = set; then
22570
  echo $ECHO_N "(cached) $ECHO_C" >&6
22571
else
22572
  cat >conftest.$ac_ext <<_ACEOF
22573
/* confdefs.h.  */
22574
_ACEOF
22575
cat confdefs.h >>conftest.$ac_ext
22576
cat >>conftest.$ac_ext <<_ACEOF
22577
/* end confdefs.h.  */
22578
/* Define pow to an innocuous variant, in case  declares pow.
22579
   For example, HP-UX 11i  declares gettimeofday.  */
22580
#define pow innocuous_pow
22581
 
22582
/* System header to define __stub macros and hopefully few prototypes,
22583
    which can conflict with char pow (); below.
22584
    Prefer  to  if __STDC__ is defined, since
22585
     exists even on freestanding compilers.  */
22586
 
22587
#ifdef __STDC__
22588
# include 
22589
#else
22590
# include 
22591
#endif
22592
 
22593
#undef pow
22594
 
22595
/* Override any GCC internal prototype to avoid an error.
22596
   Use char because int might match the return type of a GCC
22597
   builtin and then its argument prototype would still apply.  */
22598
#ifdef __cplusplus
22599
extern "C"
22600
#endif
22601
char pow ();
22602
/* The GNU C library defines this for functions which it implements
22603
    to always fail with ENOSYS.  Some functions are actually named
22604
    something starting with __ and the normal name is an alias.  */
22605
#if defined __stub_pow || defined __stub___pow
22606
choke me
22607
#endif
22608
 
22609
int
22610
main ()
22611
{
22612
return pow ();
22613
  ;
22614
  return 0;
22615
}
22616
_ACEOF
22617
rm -f conftest.$ac_objext conftest$ac_exeext
22618
if { (ac_try="$ac_link"
22619
case "(($ac_try" in
22620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621
  *) ac_try_echo=$ac_try;;
22622
esac
22623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624
  (eval "$ac_link") 2>conftest.er1
22625
  ac_status=$?
22626
  grep -v '^ *+' conftest.er1 >conftest.err
22627
  rm -f conftest.er1
22628
  cat conftest.err >&5
22629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630
  (exit $ac_status); } && {
22631
         test -z "$ac_c_werror_flag" ||
22632
         test ! -s conftest.err
22633
       } && test -s conftest$ac_exeext &&
22634
       $as_test_x conftest$ac_exeext; then
22635
  ac_cv_func_pow=yes
22636
else
22637
  echo "$as_me: failed program was:" >&5
22638
sed 's/^/| /' conftest.$ac_ext >&5
22639
 
22640
        ac_cv_func_pow=no
22641
fi
22642
 
22643
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22644
      conftest$ac_exeext conftest.$ac_ext
22645
fi
22646
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
22647
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
22648
 
22649
if test $ac_cv_func_pow = no; then
22650
  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
22651
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
22652
if test "${ac_cv_lib_m_pow+set}" = set; then
22653
  echo $ECHO_N "(cached) $ECHO_C" >&6
22654
else
22655
  ac_check_lib_save_LIBS=$LIBS
22656
LIBS="-lm  $LIBS"
22657
cat >conftest.$ac_ext <<_ACEOF
22658
/* confdefs.h.  */
22659
_ACEOF
22660
cat confdefs.h >>conftest.$ac_ext
22661
cat >>conftest.$ac_ext <<_ACEOF
22662
/* end confdefs.h.  */
22663
 
22664
/* Override any GCC internal prototype to avoid an error.
22665
   Use char because int might match the return type of a GCC
22666
   builtin and then its argument prototype would still apply.  */
22667
#ifdef __cplusplus
22668
extern "C"
22669
#endif
22670
char pow ();
22671
int
22672
main ()
22673
{
22674
return pow ();
22675
  ;
22676
  return 0;
22677
}
22678
_ACEOF
22679
rm -f conftest.$ac_objext conftest$ac_exeext
22680
if { (ac_try="$ac_link"
22681
case "(($ac_try" in
22682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683
  *) ac_try_echo=$ac_try;;
22684
esac
22685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22686
  (eval "$ac_link") 2>conftest.er1
22687
  ac_status=$?
22688
  grep -v '^ *+' conftest.er1 >conftest.err
22689
  rm -f conftest.er1
22690
  cat conftest.err >&5
22691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692
  (exit $ac_status); } && {
22693
         test -z "$ac_c_werror_flag" ||
22694
         test ! -s conftest.err
22695
       } && test -s conftest$ac_exeext &&
22696
       $as_test_x conftest$ac_exeext; then
22697
  ac_cv_lib_m_pow=yes
22698
else
22699
  echo "$as_me: failed program was:" >&5
22700
sed 's/^/| /' conftest.$ac_ext >&5
22701
 
22702
        ac_cv_lib_m_pow=no
22703
fi
22704
 
22705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22706
      conftest$ac_exeext conftest.$ac_ext
22707
LIBS=$ac_check_lib_save_LIBS
22708
fi
22709
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
22710
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
22711
if test $ac_cv_lib_m_pow = yes; then
22712
  POW_LIB=-lm
22713
else
22714
  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
22715
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22716
fi
22717
 
22718
fi
22719
 
22720
fi
22721
 
22722
 
22723
 
22724
 
22725
 
22726
 
22727
for ac_func in bzero strchr strcspn strrchr strtol
22728
do
22729
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22730
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22731
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22732
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22733
  echo $ECHO_N "(cached) $ECHO_C" >&6
22734
else
22735
  cat >conftest.$ac_ext <<_ACEOF
22736
/* confdefs.h.  */
22737
_ACEOF
22738
cat confdefs.h >>conftest.$ac_ext
22739
cat >>conftest.$ac_ext <<_ACEOF
22740
/* end confdefs.h.  */
22741
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22742
   For example, HP-UX 11i  declares gettimeofday.  */
22743
#define $ac_func innocuous_$ac_func
22744
 
22745
/* System header to define __stub macros and hopefully few prototypes,
22746
    which can conflict with char $ac_func (); below.
22747
    Prefer  to  if __STDC__ is defined, since
22748
     exists even on freestanding compilers.  */
22749
 
22750
#ifdef __STDC__
22751
# include 
22752
#else
22753
# include 
22754
#endif
22755
 
22756
#undef $ac_func
22757
 
22758
/* Override any GCC internal prototype to avoid an error.
22759
   Use char because int might match the return type of a GCC
22760
   builtin and then its argument prototype would still apply.  */
22761
#ifdef __cplusplus
22762
extern "C"
22763
#endif
22764
char $ac_func ();
22765
/* The GNU C library defines this for functions which it implements
22766
    to always fail with ENOSYS.  Some functions are actually named
22767
    something starting with __ and the normal name is an alias.  */
22768
#if defined __stub_$ac_func || defined __stub___$ac_func
22769
choke me
22770
#endif
22771
 
22772
int
22773
main ()
22774
{
22775
return $ac_func ();
22776
  ;
22777
  return 0;
22778
}
22779
_ACEOF
22780
rm -f conftest.$ac_objext conftest$ac_exeext
22781
if { (ac_try="$ac_link"
22782
case "(($ac_try" in
22783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784
  *) ac_try_echo=$ac_try;;
22785
esac
22786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787
  (eval "$ac_link") 2>conftest.er1
22788
  ac_status=$?
22789
  grep -v '^ *+' conftest.er1 >conftest.err
22790
  rm -f conftest.er1
22791
  cat conftest.err >&5
22792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793
  (exit $ac_status); } && {
22794
         test -z "$ac_c_werror_flag" ||
22795
         test ! -s conftest.err
22796
       } && test -s conftest$ac_exeext &&
22797
       $as_test_x conftest$ac_exeext; then
22798
  eval "$as_ac_var=yes"
22799
else
22800
  echo "$as_me: failed program was:" >&5
22801
sed 's/^/| /' conftest.$ac_ext >&5
22802
 
22803
        eval "$as_ac_var=no"
22804
fi
22805
 
22806
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22807
      conftest$ac_exeext conftest.$ac_ext
22808
fi
22809
ac_res=`eval echo '${'$as_ac_var'}'`
22810
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22811
echo "${ECHO_T}$ac_res" >&6; }
22812
if test `eval echo '${'$as_ac_var'}'` = yes; then
22813
  cat >>confdefs.h <<_ACEOF
22814
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22815
_ACEOF
22816
 
22817
fi
22818
done
22819
 
22820
{ echo "$as_me:$LINENO: checking for getopt_long" >&5
22821
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
22822
if test "${ac_cv_func_getopt_long+set}" = set; then
22823
  echo $ECHO_N "(cached) $ECHO_C" >&6
22824
else
22825
  cat >conftest.$ac_ext <<_ACEOF
22826
/* confdefs.h.  */
22827
_ACEOF
22828
cat confdefs.h >>conftest.$ac_ext
22829
cat >>conftest.$ac_ext <<_ACEOF
22830
/* end confdefs.h.  */
22831
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
22832
   For example, HP-UX 11i  declares gettimeofday.  */
22833
#define getopt_long innocuous_getopt_long
22834
 
22835
/* System header to define __stub macros and hopefully few prototypes,
22836
    which can conflict with char getopt_long (); below.
22837
    Prefer  to  if __STDC__ is defined, since
22838
     exists even on freestanding compilers.  */
22839
 
22840
#ifdef __STDC__
22841
# include 
22842
#else
22843
# include 
22844
#endif
22845
 
22846
#undef getopt_long
22847
 
22848
/* Override any GCC internal prototype to avoid an error.
22849
   Use char because int might match the return type of a GCC
22850
   builtin and then its argument prototype would still apply.  */
22851
#ifdef __cplusplus
22852
extern "C"
22853
#endif
22854
char getopt_long ();
22855
/* The GNU C library defines this for functions which it implements
22856
    to always fail with ENOSYS.  Some functions are actually named
22857
    something starting with __ and the normal name is an alias.  */
22858
#if defined __stub_getopt_long || defined __stub___getopt_long
22859
choke me
22860
#endif
22861
 
22862
int
22863
main ()
22864
{
22865
return getopt_long ();
22866
  ;
22867
  return 0;
22868
}
22869
_ACEOF
22870
rm -f conftest.$ac_objext conftest$ac_exeext
22871
if { (ac_try="$ac_link"
22872
case "(($ac_try" in
22873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874
  *) ac_try_echo=$ac_try;;
22875
esac
22876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877
  (eval "$ac_link") 2>conftest.er1
22878
  ac_status=$?
22879
  grep -v '^ *+' conftest.er1 >conftest.err
22880
  rm -f conftest.er1
22881
  cat conftest.err >&5
22882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883
  (exit $ac_status); } && {
22884
         test -z "$ac_c_werror_flag" ||
22885
         test ! -s conftest.err
22886
       } && test -s conftest$ac_exeext &&
22887
       $as_test_x conftest$ac_exeext; then
22888
  ac_cv_func_getopt_long=yes
22889
else
22890
  echo "$as_me: failed program was:" >&5
22891
sed 's/^/| /' conftest.$ac_ext >&5
22892
 
22893
        ac_cv_func_getopt_long=no
22894
fi
22895
 
22896
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22897
      conftest$ac_exeext conftest.$ac_ext
22898
fi
22899
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
22900
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
22901
if test $ac_cv_func_getopt_long = yes; then
22902
  SYS_GETOPTLONG=1
22903
else
22904
  SYS_GETOPTLONG=0
22905
fi
22906
 
22907
{ echo "$as_me:$LINENO: checking for regcomp" >&5
22908
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
22909
if test "${ac_cv_func_regcomp+set}" = set; then
22910
  echo $ECHO_N "(cached) $ECHO_C" >&6
22911
else
22912
  cat >conftest.$ac_ext <<_ACEOF
22913
/* confdefs.h.  */
22914
_ACEOF
22915
cat confdefs.h >>conftest.$ac_ext
22916
cat >>conftest.$ac_ext <<_ACEOF
22917
/* end confdefs.h.  */
22918
/* Define regcomp to an innocuous variant, in case  declares regcomp.
22919
   For example, HP-UX 11i  declares gettimeofday.  */
22920
#define regcomp innocuous_regcomp
22921
 
22922
/* System header to define __stub macros and hopefully few prototypes,
22923
    which can conflict with char regcomp (); below.
22924
    Prefer  to  if __STDC__ is defined, since
22925
     exists even on freestanding compilers.  */
22926
 
22927
#ifdef __STDC__
22928
# include 
22929
#else
22930
# include 
22931
#endif
22932
 
22933
#undef regcomp
22934
 
22935
/* Override any GCC internal prototype to avoid an error.
22936
   Use char because int might match the return type of a GCC
22937
   builtin and then its argument prototype would still apply.  */
22938
#ifdef __cplusplus
22939
extern "C"
22940
#endif
22941
char regcomp ();
22942
/* The GNU C library defines this for functions which it implements
22943
    to always fail with ENOSYS.  Some functions are actually named
22944
    something starting with __ and the normal name is an alias.  */
22945
#if defined __stub_regcomp || defined __stub___regcomp
22946
choke me
22947
#endif
22948
 
22949
int
22950
main ()
22951
{
22952
return regcomp ();
22953
  ;
22954
  return 0;
22955
}
22956
_ACEOF
22957
rm -f conftest.$ac_objext conftest$ac_exeext
22958
if { (ac_try="$ac_link"
22959
case "(($ac_try" in
22960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961
  *) ac_try_echo=$ac_try;;
22962
esac
22963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964
  (eval "$ac_link") 2>conftest.er1
22965
  ac_status=$?
22966
  grep -v '^ *+' conftest.er1 >conftest.err
22967
  rm -f conftest.er1
22968
  cat conftest.err >&5
22969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970
  (exit $ac_status); } && {
22971
         test -z "$ac_c_werror_flag" ||
22972
         test ! -s conftest.err
22973
       } && test -s conftest$ac_exeext &&
22974
       $as_test_x conftest$ac_exeext; then
22975
  ac_cv_func_regcomp=yes
22976
else
22977
  echo "$as_me: failed program was:" >&5
22978
sed 's/^/| /' conftest.$ac_ext >&5
22979
 
22980
        ac_cv_func_regcomp=no
22981
fi
22982
 
22983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22984
      conftest$ac_exeext conftest.$ac_ext
22985
fi
22986
{ echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
22987
echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
22988
if test $ac_cv_func_regcomp = yes; then
22989
  SYS_REGEX=1
22990
else
22991
  SYS_REGEX=0
22992
fi
22993
 
22994
{ echo "$as_me:$LINENO: checking for strptime" >&5
22995
echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
22996
if test "${ac_cv_func_strptime+set}" = set; then
22997
  echo $ECHO_N "(cached) $ECHO_C" >&6
22998
else
22999
  cat >conftest.$ac_ext <<_ACEOF
23000
/* confdefs.h.  */
23001
_ACEOF
23002
cat confdefs.h >>conftest.$ac_ext
23003
cat >>conftest.$ac_ext <<_ACEOF
23004
/* end confdefs.h.  */
23005
/* Define strptime to an innocuous variant, in case  declares strptime.
23006
   For example, HP-UX 11i  declares gettimeofday.  */
23007
#define strptime innocuous_strptime
23008
 
23009
/* System header to define __stub macros and hopefully few prototypes,
23010
    which can conflict with char strptime (); below.
23011
    Prefer  to  if __STDC__ is defined, since
23012
     exists even on freestanding compilers.  */
23013
 
23014
#ifdef __STDC__
23015
# include 
23016
#else
23017
# include 
23018
#endif
23019
 
23020
#undef strptime
23021
 
23022
/* Override any GCC internal prototype to avoid an error.
23023
   Use char because int might match the return type of a GCC
23024
   builtin and then its argument prototype would still apply.  */
23025
#ifdef __cplusplus
23026
extern "C"
23027
#endif
23028
char strptime ();
23029
/* The GNU C library defines this for functions which it implements
23030
    to always fail with ENOSYS.  Some functions are actually named
23031
    something starting with __ and the normal name is an alias.  */
23032
#if defined __stub_strptime || defined __stub___strptime
23033
choke me
23034
#endif
23035
 
23036
int
23037
main ()
23038
{
23039
return strptime ();
23040
  ;
23041
  return 0;
23042
}
23043
_ACEOF
23044
rm -f conftest.$ac_objext conftest$ac_exeext
23045
if { (ac_try="$ac_link"
23046
case "(($ac_try" in
23047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048
  *) ac_try_echo=$ac_try;;
23049
esac
23050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051
  (eval "$ac_link") 2>conftest.er1
23052
  ac_status=$?
23053
  grep -v '^ *+' conftest.er1 >conftest.err
23054
  rm -f conftest.er1
23055
  cat conftest.err >&5
23056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057
  (exit $ac_status); } && {
23058
         test -z "$ac_c_werror_flag" ||
23059
         test ! -s conftest.err
23060
       } && test -s conftest$ac_exeext &&
23061
       $as_test_x conftest$ac_exeext; then
23062
  ac_cv_func_strptime=yes
23063
else
23064
  echo "$as_me: failed program was:" >&5
23065
sed 's/^/| /' conftest.$ac_ext >&5
23066
 
23067
        ac_cv_func_strptime=no
23068
fi
23069
 
23070
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23071
      conftest$ac_exeext conftest.$ac_ext
23072
fi
23073
{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
23074
echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
23075
if test $ac_cv_func_strptime = yes; then
23076
  SYS_STRPTIME=1
23077
else
23078
  SYS_STRPTIME=0
23079
fi
23080
 
23081
 
23082
# Define automake conditionals (for argtable2)
23083
 if test "$SYS_GETOPTLONG" = "1"; then
23084
  USE_SYS_GETOPTLONG_TRUE=
23085
  USE_SYS_GETOPTLONG_FALSE='#'
23086
else
23087
  USE_SYS_GETOPTLONG_TRUE='#'
23088
  USE_SYS_GETOPTLONG_FALSE=
23089
fi
23090
 
23091
 if test "$SYS_REGEX" = "1"; then
23092
  USE_ARGREX_TRUE=
23093
  USE_ARGREX_FALSE='#'
23094
else
23095
  USE_ARGREX_TRUE='#'
23096
  USE_ARGREX_FALSE=
23097
fi
23098
 
23099
 if test "$SYS_STRPTIME" = "1"; then
23100
  USE_ARGDATE_TRUE=
23101
  USE_ARGDATE_FALSE='#'
23102
else
23103
  USE_ARGDATE_TRUE='#'
23104
  USE_ARGDATE_FALSE=
23105
fi
23106
 
23107
 
23108 19 jeremybenn
# check for "long long" (added by Erez)
23109
cat >conftest.$ac_ext <<_ACEOF
23110
/* confdefs.h.  */
23111
_ACEOF
23112
cat confdefs.h >>conftest.$ac_ext
23113
cat >>conftest.$ac_ext <<_ACEOF
23114
/* end confdefs.h.  */
23115
 
23116
int
23117
main ()
23118
{
23119
long long ll; unsigned long long ull;
23120
  ;
23121
  return 0;
23122
}
23123
_ACEOF
23124
rm -f conftest.$ac_objext
23125
if { (ac_try="$ac_compile"
23126
case "(($ac_try" in
23127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23128
  *) ac_try_echo=$ac_try;;
23129
esac
23130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23131
  (eval "$ac_compile") 2>conftest.er1
23132
  ac_status=$?
23133
  grep -v '^ *+' conftest.er1 >conftest.err
23134
  rm -f conftest.er1
23135
  cat conftest.err >&5
23136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137
  (exit $ac_status); } && {
23138
         test -z "$ac_c_werror_flag" ||
23139
         test ! -s conftest.err
23140
       } && test -s conftest.$ac_objext; then
23141
 
23142
cat >>confdefs.h <<\_ACEOF
23143
@%:@define CC_HAS_LONG_LONG 1
23144
_ACEOF
23145
 
23146
else
23147
  echo "$as_me: failed program was:" >&5
23148
sed 's/^/| /' conftest.$ac_ext >&5
23149
 
23150
 
23151
fi
23152
 
23153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154
 
23155 60 jeremybenn
# check for {u,}int{8,16,32}_t in inttypes.h.
23156 19 jeremybenn
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
23157
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23158
if test "${ac_cv_type_uint8_t+set}" = set; then
23159
  echo $ECHO_N "(cached) $ECHO_C" >&6
23160
else
23161
  cat >conftest.$ac_ext <<_ACEOF
23162
/* confdefs.h.  */
23163
_ACEOF
23164
cat confdefs.h >>conftest.$ac_ext
23165
cat >>conftest.$ac_ext <<_ACEOF
23166
/* end confdefs.h.  */
23167
#include 
23168
 
23169
typedef uint8_t ac__type_new_;
23170
int
23171
main ()
23172
{
23173
if ((ac__type_new_ *) 0)
23174
  return 0;
23175
if (sizeof (ac__type_new_))
23176
  return 0;
23177
  ;
23178
  return 0;
23179
}
23180
_ACEOF
23181
rm -f conftest.$ac_objext
23182
if { (ac_try="$ac_compile"
23183
case "(($ac_try" in
23184
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185
  *) ac_try_echo=$ac_try;;
23186
esac
23187
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23188
  (eval "$ac_compile") 2>conftest.er1
23189
  ac_status=$?
23190
  grep -v '^ *+' conftest.er1 >conftest.err
23191
  rm -f conftest.er1
23192
  cat conftest.err >&5
23193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194
  (exit $ac_status); } && {
23195
         test -z "$ac_c_werror_flag" ||
23196
         test ! -s conftest.err
23197
       } && test -s conftest.$ac_objext; then
23198
  ac_cv_type_uint8_t=yes
23199
else
23200
  echo "$as_me: failed program was:" >&5
23201
sed 's/^/| /' conftest.$ac_ext >&5
23202
 
23203
        ac_cv_type_uint8_t=no
23204
fi
23205
 
23206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207
fi
23208
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23209
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23210
if test $ac_cv_type_uint8_t = yes; then
23211
 
23212
cat >>confdefs.h <<_ACEOF
23213
@%:@define HAVE_UINT8_T 1
23214
_ACEOF
23215
 
23216
 
23217
fi
23218
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
23219
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23220
if test "${ac_cv_type_uint16_t+set}" = set; then
23221
  echo $ECHO_N "(cached) $ECHO_C" >&6
23222
else
23223
  cat >conftest.$ac_ext <<_ACEOF
23224
/* confdefs.h.  */
23225
_ACEOF
23226
cat confdefs.h >>conftest.$ac_ext
23227
cat >>conftest.$ac_ext <<_ACEOF
23228
/* end confdefs.h.  */
23229
#include 
23230
 
23231
typedef uint16_t ac__type_new_;
23232
int
23233
main ()
23234
{
23235
if ((ac__type_new_ *) 0)
23236
  return 0;
23237
if (sizeof (ac__type_new_))
23238
  return 0;
23239
  ;
23240
  return 0;
23241
}
23242
_ACEOF
23243
rm -f conftest.$ac_objext
23244
if { (ac_try="$ac_compile"
23245
case "(($ac_try" in
23246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247
  *) ac_try_echo=$ac_try;;
23248
esac
23249
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23250
  (eval "$ac_compile") 2>conftest.er1
23251
  ac_status=$?
23252
  grep -v '^ *+' conftest.er1 >conftest.err
23253
  rm -f conftest.er1
23254
  cat conftest.err >&5
23255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256
  (exit $ac_status); } && {
23257
         test -z "$ac_c_werror_flag" ||
23258
         test ! -s conftest.err
23259
       } && test -s conftest.$ac_objext; then
23260
  ac_cv_type_uint16_t=yes
23261
else
23262
  echo "$as_me: failed program was:" >&5
23263
sed 's/^/| /' conftest.$ac_ext >&5
23264
 
23265
        ac_cv_type_uint16_t=no
23266
fi
23267
 
23268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23269
fi
23270
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23271
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23272
if test $ac_cv_type_uint16_t = yes; then
23273
 
23274
cat >>confdefs.h <<_ACEOF
23275
@%:@define HAVE_UINT16_T 1
23276
_ACEOF
23277
 
23278
 
23279
fi
23280
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
23281
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23282
if test "${ac_cv_type_uint32_t+set}" = set; then
23283
  echo $ECHO_N "(cached) $ECHO_C" >&6
23284
else
23285
  cat >conftest.$ac_ext <<_ACEOF
23286
/* confdefs.h.  */
23287
_ACEOF
23288
cat confdefs.h >>conftest.$ac_ext
23289
cat >>conftest.$ac_ext <<_ACEOF
23290
/* end confdefs.h.  */
23291
#include 
23292
 
23293
typedef uint32_t ac__type_new_;
23294
int
23295
main ()
23296
{
23297
if ((ac__type_new_ *) 0)
23298
  return 0;
23299
if (sizeof (ac__type_new_))
23300
  return 0;
23301
  ;
23302
  return 0;
23303
}
23304
_ACEOF
23305
rm -f conftest.$ac_objext
23306
if { (ac_try="$ac_compile"
23307
case "(($ac_try" in
23308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309
  *) ac_try_echo=$ac_try;;
23310
esac
23311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312
  (eval "$ac_compile") 2>conftest.er1
23313
  ac_status=$?
23314
  grep -v '^ *+' conftest.er1 >conftest.err
23315
  rm -f conftest.er1
23316
  cat conftest.err >&5
23317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318
  (exit $ac_status); } && {
23319
         test -z "$ac_c_werror_flag" ||
23320
         test ! -s conftest.err
23321
       } && test -s conftest.$ac_objext; then
23322
  ac_cv_type_uint32_t=yes
23323
else
23324
  echo "$as_me: failed program was:" >&5
23325
sed 's/^/| /' conftest.$ac_ext >&5
23326
 
23327
        ac_cv_type_uint32_t=no
23328
fi
23329
 
23330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331
fi
23332
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23333
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23334
if test $ac_cv_type_uint32_t = yes; then
23335
 
23336
cat >>confdefs.h <<_ACEOF
23337
@%:@define HAVE_UINT32_T 1
23338
_ACEOF
23339
 
23340
 
23341
fi
23342
 
23343
{ echo "$as_me:$LINENO: checking for int8_t" >&5
23344
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
23345
if test "${ac_cv_type_int8_t+set}" = set; then
23346
  echo $ECHO_N "(cached) $ECHO_C" >&6
23347
else
23348
  cat >conftest.$ac_ext <<_ACEOF
23349
/* confdefs.h.  */
23350
_ACEOF
23351
cat confdefs.h >>conftest.$ac_ext
23352
cat >>conftest.$ac_ext <<_ACEOF
23353
/* end confdefs.h.  */
23354
#include 
23355
 
23356
typedef int8_t ac__type_new_;
23357
int
23358
main ()
23359
{
23360
if ((ac__type_new_ *) 0)
23361
  return 0;
23362
if (sizeof (ac__type_new_))
23363
  return 0;
23364
  ;
23365
  return 0;
23366
}
23367
_ACEOF
23368
rm -f conftest.$ac_objext
23369
if { (ac_try="$ac_compile"
23370
case "(($ac_try" in
23371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372
  *) ac_try_echo=$ac_try;;
23373
esac
23374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375
  (eval "$ac_compile") 2>conftest.er1
23376
  ac_status=$?
23377
  grep -v '^ *+' conftest.er1 >conftest.err
23378
  rm -f conftest.er1
23379
  cat conftest.err >&5
23380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381
  (exit $ac_status); } && {
23382
         test -z "$ac_c_werror_flag" ||
23383
         test ! -s conftest.err
23384
       } && test -s conftest.$ac_objext; then
23385
  ac_cv_type_int8_t=yes
23386
else
23387
  echo "$as_me: failed program was:" >&5
23388
sed 's/^/| /' conftest.$ac_ext >&5
23389
 
23390
        ac_cv_type_int8_t=no
23391
fi
23392
 
23393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394
fi
23395
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
23396
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
23397
if test $ac_cv_type_int8_t = yes; then
23398
 
23399
cat >>confdefs.h <<_ACEOF
23400
@%:@define HAVE_INT8_T 1
23401
_ACEOF
23402
 
23403
 
23404
fi
23405
{ echo "$as_me:$LINENO: checking for int16_t" >&5
23406
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
23407
if test "${ac_cv_type_int16_t+set}" = set; then
23408
  echo $ECHO_N "(cached) $ECHO_C" >&6
23409
else
23410
  cat >conftest.$ac_ext <<_ACEOF
23411
/* confdefs.h.  */
23412
_ACEOF
23413
cat confdefs.h >>conftest.$ac_ext
23414
cat >>conftest.$ac_ext <<_ACEOF
23415
/* end confdefs.h.  */
23416
#include 
23417
 
23418
typedef int16_t ac__type_new_;
23419
int
23420
main ()
23421
{
23422
if ((ac__type_new_ *) 0)
23423
  return 0;
23424
if (sizeof (ac__type_new_))
23425
  return 0;
23426
  ;
23427
  return 0;
23428
}
23429
_ACEOF
23430
rm -f conftest.$ac_objext
23431
if { (ac_try="$ac_compile"
23432
case "(($ac_try" in
23433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434
  *) ac_try_echo=$ac_try;;
23435
esac
23436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437
  (eval "$ac_compile") 2>conftest.er1
23438
  ac_status=$?
23439
  grep -v '^ *+' conftest.er1 >conftest.err
23440
  rm -f conftest.er1
23441
  cat conftest.err >&5
23442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443
  (exit $ac_status); } && {
23444
         test -z "$ac_c_werror_flag" ||
23445
         test ! -s conftest.err
23446
       } && test -s conftest.$ac_objext; then
23447
  ac_cv_type_int16_t=yes
23448
else
23449
  echo "$as_me: failed program was:" >&5
23450
sed 's/^/| /' conftest.$ac_ext >&5
23451
 
23452
        ac_cv_type_int16_t=no
23453
fi
23454
 
23455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456
fi
23457
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
23458
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
23459
if test $ac_cv_type_int16_t = yes; then
23460
 
23461
cat >>confdefs.h <<_ACEOF
23462
@%:@define HAVE_INT16_T 1
23463
_ACEOF
23464
 
23465
 
23466
fi
23467
{ echo "$as_me:$LINENO: checking for int32_t" >&5
23468
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
23469
if test "${ac_cv_type_int32_t+set}" = set; then
23470
  echo $ECHO_N "(cached) $ECHO_C" >&6
23471
else
23472
  cat >conftest.$ac_ext <<_ACEOF
23473
/* confdefs.h.  */
23474
_ACEOF
23475
cat confdefs.h >>conftest.$ac_ext
23476
cat >>conftest.$ac_ext <<_ACEOF
23477
/* end confdefs.h.  */
23478
#include 
23479
 
23480
typedef int32_t ac__type_new_;
23481
int
23482
main ()
23483
{
23484
if ((ac__type_new_ *) 0)
23485
  return 0;
23486
if (sizeof (ac__type_new_))
23487
  return 0;
23488
  ;
23489
  return 0;
23490
}
23491
_ACEOF
23492
rm -f conftest.$ac_objext
23493
if { (ac_try="$ac_compile"
23494
case "(($ac_try" in
23495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496
  *) ac_try_echo=$ac_try;;
23497
esac
23498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499
  (eval "$ac_compile") 2>conftest.er1
23500
  ac_status=$?
23501
  grep -v '^ *+' conftest.er1 >conftest.err
23502
  rm -f conftest.er1
23503
  cat conftest.err >&5
23504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505
  (exit $ac_status); } && {
23506
         test -z "$ac_c_werror_flag" ||
23507
         test ! -s conftest.err
23508
       } && test -s conftest.$ac_objext; then
23509
  ac_cv_type_int32_t=yes
23510
else
23511
  echo "$as_me: failed program was:" >&5
23512
sed 's/^/| /' conftest.$ac_ext >&5
23513
 
23514
        ac_cv_type_int32_t=no
23515
fi
23516
 
23517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23518
fi
23519
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23520
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23521
if test $ac_cv_type_int32_t = yes; then
23522
 
23523
cat >>confdefs.h <<_ACEOF
23524
@%:@define HAVE_INT32_T 1
23525
_ACEOF
23526
 
23527
 
23528
fi
23529
 
23530
 
23531
{ echo "$as_me:$LINENO: checking for char" >&5
23532
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23533
if test "${ac_cv_type_char+set}" = set; then
23534
  echo $ECHO_N "(cached) $ECHO_C" >&6
23535
else
23536
  cat >conftest.$ac_ext <<_ACEOF
23537
/* confdefs.h.  */
23538
_ACEOF
23539
cat confdefs.h >>conftest.$ac_ext
23540
cat >>conftest.$ac_ext <<_ACEOF
23541
/* end confdefs.h.  */
23542
$ac_includes_default
23543
typedef char ac__type_new_;
23544
int
23545
main ()
23546
{
23547
if ((ac__type_new_ *) 0)
23548
  return 0;
23549
if (sizeof (ac__type_new_))
23550
  return 0;
23551
  ;
23552
  return 0;
23553
}
23554
_ACEOF
23555
rm -f conftest.$ac_objext
23556
if { (ac_try="$ac_compile"
23557
case "(($ac_try" in
23558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559
  *) ac_try_echo=$ac_try;;
23560
esac
23561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562
  (eval "$ac_compile") 2>conftest.er1
23563
  ac_status=$?
23564
  grep -v '^ *+' conftest.er1 >conftest.err
23565
  rm -f conftest.er1
23566
  cat conftest.err >&5
23567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568
  (exit $ac_status); } && {
23569
         test -z "$ac_c_werror_flag" ||
23570
         test ! -s conftest.err
23571
       } && test -s conftest.$ac_objext; then
23572
  ac_cv_type_char=yes
23573
else
23574
  echo "$as_me: failed program was:" >&5
23575
sed 's/^/| /' conftest.$ac_ext >&5
23576
 
23577
        ac_cv_type_char=no
23578
fi
23579
 
23580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581
fi
23582
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23583
echo "${ECHO_T}$ac_cv_type_char" >&6; }
23584
 
23585
# The cast to long int works around a bug in the HP C Compiler
23586
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23587
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23588
# This bug is HP SR number 8606223364.
23589
{ echo "$as_me:$LINENO: checking size of char" >&5
23590
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23591
if test "${ac_cv_sizeof_char+set}" = set; then
23592
  echo $ECHO_N "(cached) $ECHO_C" >&6
23593
else
23594
  if test "$cross_compiling" = yes; then
23595
  # Depending upon the size, compute the lo and hi bounds.
23596
cat >conftest.$ac_ext <<_ACEOF
23597
/* confdefs.h.  */
23598
_ACEOF
23599
cat confdefs.h >>conftest.$ac_ext
23600
cat >>conftest.$ac_ext <<_ACEOF
23601
/* end confdefs.h.  */
23602
$ac_includes_default
23603
   typedef char ac__type_sizeof_;
23604
int
23605
main ()
23606
{
23607
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23608
test_array @<:@0@:>@ = 0
23609
 
23610
  ;
23611
  return 0;
23612
}
23613
_ACEOF
23614
rm -f conftest.$ac_objext
23615
if { (ac_try="$ac_compile"
23616
case "(($ac_try" in
23617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618
  *) ac_try_echo=$ac_try;;
23619
esac
23620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621
  (eval "$ac_compile") 2>conftest.er1
23622
  ac_status=$?
23623
  grep -v '^ *+' conftest.er1 >conftest.err
23624
  rm -f conftest.er1
23625
  cat conftest.err >&5
23626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627
  (exit $ac_status); } && {
23628
         test -z "$ac_c_werror_flag" ||
23629
         test ! -s conftest.err
23630
       } && test -s conftest.$ac_objext; then
23631
  ac_lo=0 ac_mid=0
23632
  while :; do
23633
    cat >conftest.$ac_ext <<_ACEOF
23634
/* confdefs.h.  */
23635
_ACEOF
23636
cat confdefs.h >>conftest.$ac_ext
23637
cat >>conftest.$ac_ext <<_ACEOF
23638
/* end confdefs.h.  */
23639
$ac_includes_default
23640
   typedef char ac__type_sizeof_;
23641
int
23642
main ()
23643
{
23644
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23645
test_array @<:@0@:>@ = 0
23646
 
23647
  ;
23648
  return 0;
23649
}
23650
_ACEOF
23651
rm -f conftest.$ac_objext
23652
if { (ac_try="$ac_compile"
23653
case "(($ac_try" in
23654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655
  *) ac_try_echo=$ac_try;;
23656
esac
23657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658
  (eval "$ac_compile") 2>conftest.er1
23659
  ac_status=$?
23660
  grep -v '^ *+' conftest.er1 >conftest.err
23661
  rm -f conftest.er1
23662
  cat conftest.err >&5
23663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664
  (exit $ac_status); } && {
23665
         test -z "$ac_c_werror_flag" ||
23666
         test ! -s conftest.err
23667
       } && test -s conftest.$ac_objext; then
23668
  ac_hi=$ac_mid; break
23669
else
23670
  echo "$as_me: failed program was:" >&5
23671
sed 's/^/| /' conftest.$ac_ext >&5
23672
 
23673
        ac_lo=`expr $ac_mid + 1`
23674
                        if test $ac_lo -le $ac_mid; then
23675
                          ac_lo= ac_hi=
23676
                          break
23677
                        fi
23678
                        ac_mid=`expr 2 '*' $ac_mid + 1`
23679
fi
23680
 
23681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682
  done
23683
else
23684
  echo "$as_me: failed program was:" >&5
23685
sed 's/^/| /' conftest.$ac_ext >&5
23686
 
23687
        cat >conftest.$ac_ext <<_ACEOF
23688
/* confdefs.h.  */
23689
_ACEOF
23690
cat confdefs.h >>conftest.$ac_ext
23691
cat >>conftest.$ac_ext <<_ACEOF
23692
/* end confdefs.h.  */
23693
$ac_includes_default
23694
   typedef char ac__type_sizeof_;
23695
int
23696
main ()
23697
{
23698
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23699
test_array @<:@0@:>@ = 0
23700
 
23701
  ;
23702
  return 0;
23703
}
23704
_ACEOF
23705
rm -f conftest.$ac_objext
23706
if { (ac_try="$ac_compile"
23707
case "(($ac_try" in
23708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709
  *) ac_try_echo=$ac_try;;
23710
esac
23711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712
  (eval "$ac_compile") 2>conftest.er1
23713
  ac_status=$?
23714
  grep -v '^ *+' conftest.er1 >conftest.err
23715
  rm -f conftest.er1
23716
  cat conftest.err >&5
23717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718
  (exit $ac_status); } && {
23719
         test -z "$ac_c_werror_flag" ||
23720
         test ! -s conftest.err
23721
       } && test -s conftest.$ac_objext; then
23722
  ac_hi=-1 ac_mid=-1
23723
  while :; do
23724
    cat >conftest.$ac_ext <<_ACEOF
23725
/* confdefs.h.  */
23726
_ACEOF
23727
cat confdefs.h >>conftest.$ac_ext
23728
cat >>conftest.$ac_ext <<_ACEOF
23729
/* end confdefs.h.  */
23730
$ac_includes_default
23731
   typedef char ac__type_sizeof_;
23732
int
23733
main ()
23734
{
23735
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23736
test_array @<:@0@:>@ = 0
23737
 
23738
  ;
23739
  return 0;
23740
}
23741
_ACEOF
23742
rm -f conftest.$ac_objext
23743
if { (ac_try="$ac_compile"
23744
case "(($ac_try" in
23745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746
  *) ac_try_echo=$ac_try;;
23747
esac
23748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749
  (eval "$ac_compile") 2>conftest.er1
23750
  ac_status=$?
23751
  grep -v '^ *+' conftest.er1 >conftest.err
23752
  rm -f conftest.er1
23753
  cat conftest.err >&5
23754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755
  (exit $ac_status); } && {
23756
         test -z "$ac_c_werror_flag" ||
23757
         test ! -s conftest.err
23758
       } && test -s conftest.$ac_objext; then
23759
  ac_lo=$ac_mid; break
23760
else
23761
  echo "$as_me: failed program was:" >&5
23762
sed 's/^/| /' conftest.$ac_ext >&5
23763
 
23764
        ac_hi=`expr '(' $ac_mid ')' - 1`
23765
                        if test $ac_mid -le $ac_hi; then
23766
                          ac_lo= ac_hi=
23767
                          break
23768
                        fi
23769
                        ac_mid=`expr 2 '*' $ac_mid`
23770
fi
23771
 
23772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773
  done
23774
else
23775
  echo "$as_me: failed program was:" >&5
23776
sed 's/^/| /' conftest.$ac_ext >&5
23777
 
23778
        ac_lo= ac_hi=
23779
fi
23780
 
23781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782
fi
23783
 
23784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785
# Binary search between lo and hi bounds.
23786
while test "x$ac_lo" != "x$ac_hi"; do
23787
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23788
  cat >conftest.$ac_ext <<_ACEOF
23789
/* confdefs.h.  */
23790
_ACEOF
23791
cat confdefs.h >>conftest.$ac_ext
23792
cat >>conftest.$ac_ext <<_ACEOF
23793
/* end confdefs.h.  */
23794
$ac_includes_default
23795
   typedef char ac__type_sizeof_;
23796
int
23797
main ()
23798
{
23799
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23800
test_array @<:@0@:>@ = 0
23801
 
23802
  ;
23803
  return 0;
23804
}
23805
_ACEOF
23806
rm -f conftest.$ac_objext
23807
if { (ac_try="$ac_compile"
23808
case "(($ac_try" in
23809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810
  *) ac_try_echo=$ac_try;;
23811
esac
23812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813
  (eval "$ac_compile") 2>conftest.er1
23814
  ac_status=$?
23815
  grep -v '^ *+' conftest.er1 >conftest.err
23816
  rm -f conftest.er1
23817
  cat conftest.err >&5
23818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819
  (exit $ac_status); } && {
23820
         test -z "$ac_c_werror_flag" ||
23821
         test ! -s conftest.err
23822
       } && test -s conftest.$ac_objext; then
23823
  ac_hi=$ac_mid
23824
else
23825
  echo "$as_me: failed program was:" >&5
23826
sed 's/^/| /' conftest.$ac_ext >&5
23827
 
23828
        ac_lo=`expr '(' $ac_mid ')' + 1`
23829
fi
23830
 
23831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23832
done
23833
case $ac_lo in
23834
?*) ac_cv_sizeof_char=$ac_lo;;
23835
'') if test "$ac_cv_type_char" = yes; then
23836
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23837
See \`config.log' for more details." >&5
23838
echo "$as_me: error: cannot compute sizeof (char)
23839
See \`config.log' for more details." >&2;}
23840
   { (exit 77); exit 77; }; }
23841
   else
23842
     ac_cv_sizeof_char=0
23843
   fi ;;
23844
esac
23845
else
23846
  cat >conftest.$ac_ext <<_ACEOF
23847
/* confdefs.h.  */
23848
_ACEOF
23849
cat confdefs.h >>conftest.$ac_ext
23850
cat >>conftest.$ac_ext <<_ACEOF
23851
/* end confdefs.h.  */
23852
$ac_includes_default
23853
   typedef char ac__type_sizeof_;
23854
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23855
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23856
@%:@include 
23857
@%:@include 
23858
int
23859
main ()
23860
{
23861
 
23862
  FILE *f = fopen ("conftest.val", "w");
23863
  if (! f)
23864
    return 1;
23865
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23866
    {
23867
      long int i = longval ();
23868
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23869
        return 1;
23870
      fprintf (f, "%ld\n", i);
23871
    }
23872
  else
23873
    {
23874
      unsigned long int i = ulongval ();
23875
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23876
        return 1;
23877
      fprintf (f, "%lu\n", i);
23878
    }
23879
  return ferror (f) || fclose (f) != 0;
23880
 
23881
  ;
23882
  return 0;
23883
}
23884
_ACEOF
23885
rm -f conftest$ac_exeext
23886
if { (ac_try="$ac_link"
23887
case "(($ac_try" in
23888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889
  *) ac_try_echo=$ac_try;;
23890
esac
23891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23892
  (eval "$ac_link") 2>&5
23893
  ac_status=$?
23894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23896
  { (case "(($ac_try" in
23897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898
  *) ac_try_echo=$ac_try;;
23899
esac
23900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901
  (eval "$ac_try") 2>&5
23902
  ac_status=$?
23903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904
  (exit $ac_status); }; }; then
23905
  ac_cv_sizeof_char=`cat conftest.val`
23906
else
23907
  echo "$as_me: program exited with status $ac_status" >&5
23908
echo "$as_me: failed program was:" >&5
23909
sed 's/^/| /' conftest.$ac_ext >&5
23910
 
23911
( exit $ac_status )
23912
if test "$ac_cv_type_char" = yes; then
23913
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23914
See \`config.log' for more details." >&5
23915
echo "$as_me: error: cannot compute sizeof (char)
23916
See \`config.log' for more details." >&2;}
23917
   { (exit 77); exit 77; }; }
23918
   else
23919
     ac_cv_sizeof_char=0
23920
   fi
23921
fi
23922
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23923
fi
23924
rm -f conftest.val
23925
fi
23926
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23927
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23928
 
23929
 
23930
 
23931
cat >>confdefs.h <<_ACEOF
23932
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
23933
_ACEOF
23934
 
23935
 
23936
{ echo "$as_me:$LINENO: checking for short" >&5
23937
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
23938
if test "${ac_cv_type_short+set}" = set; then
23939
  echo $ECHO_N "(cached) $ECHO_C" >&6
23940
else
23941
  cat >conftest.$ac_ext <<_ACEOF
23942
/* confdefs.h.  */
23943
_ACEOF
23944
cat confdefs.h >>conftest.$ac_ext
23945
cat >>conftest.$ac_ext <<_ACEOF
23946
/* end confdefs.h.  */
23947
$ac_includes_default
23948
typedef short ac__type_new_;
23949
int
23950
main ()
23951
{
23952
if ((ac__type_new_ *) 0)
23953
  return 0;
23954
if (sizeof (ac__type_new_))
23955
  return 0;
23956
  ;
23957
  return 0;
23958
}
23959
_ACEOF
23960
rm -f conftest.$ac_objext
23961
if { (ac_try="$ac_compile"
23962
case "(($ac_try" in
23963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964
  *) ac_try_echo=$ac_try;;
23965
esac
23966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967
  (eval "$ac_compile") 2>conftest.er1
23968
  ac_status=$?
23969
  grep -v '^ *+' conftest.er1 >conftest.err
23970
  rm -f conftest.er1
23971
  cat conftest.err >&5
23972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973
  (exit $ac_status); } && {
23974
         test -z "$ac_c_werror_flag" ||
23975
         test ! -s conftest.err
23976
       } && test -s conftest.$ac_objext; then
23977
  ac_cv_type_short=yes
23978
else
23979
  echo "$as_me: failed program was:" >&5
23980
sed 's/^/| /' conftest.$ac_ext >&5
23981
 
23982
        ac_cv_type_short=no
23983
fi
23984
 
23985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986
fi
23987
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
23988
echo "${ECHO_T}$ac_cv_type_short" >&6; }
23989
 
23990
# The cast to long int works around a bug in the HP C Compiler
23991
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23992
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23993
# This bug is HP SR number 8606223364.
23994
{ echo "$as_me:$LINENO: checking size of short" >&5
23995
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
23996
if test "${ac_cv_sizeof_short+set}" = set; then
23997
  echo $ECHO_N "(cached) $ECHO_C" >&6
23998
else
23999
  if test "$cross_compiling" = yes; then
24000
  # Depending upon the size, compute the lo and hi bounds.
24001
cat >conftest.$ac_ext <<_ACEOF
24002
/* confdefs.h.  */
24003
_ACEOF
24004
cat confdefs.h >>conftest.$ac_ext
24005
cat >>conftest.$ac_ext <<_ACEOF
24006
/* end confdefs.h.  */
24007
$ac_includes_default
24008
   typedef short ac__type_sizeof_;
24009
int
24010
main ()
24011
{
24012
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24013
test_array @<:@0@:>@ = 0
24014
 
24015
  ;
24016
  return 0;
24017
}
24018
_ACEOF
24019
rm -f conftest.$ac_objext
24020
if { (ac_try="$ac_compile"
24021
case "(($ac_try" in
24022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023
  *) ac_try_echo=$ac_try;;
24024
esac
24025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24026
  (eval "$ac_compile") 2>conftest.er1
24027
  ac_status=$?
24028
  grep -v '^ *+' conftest.er1 >conftest.err
24029
  rm -f conftest.er1
24030
  cat conftest.err >&5
24031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032
  (exit $ac_status); } && {
24033
         test -z "$ac_c_werror_flag" ||
24034
         test ! -s conftest.err
24035
       } && test -s conftest.$ac_objext; then
24036
  ac_lo=0 ac_mid=0
24037
  while :; do
24038
    cat >conftest.$ac_ext <<_ACEOF
24039
/* confdefs.h.  */
24040
_ACEOF
24041
cat confdefs.h >>conftest.$ac_ext
24042
cat >>conftest.$ac_ext <<_ACEOF
24043
/* end confdefs.h.  */
24044
$ac_includes_default
24045
   typedef short ac__type_sizeof_;
24046
int
24047
main ()
24048
{
24049
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24050
test_array @<:@0@:>@ = 0
24051
 
24052
  ;
24053
  return 0;
24054
}
24055
_ACEOF
24056
rm -f conftest.$ac_objext
24057
if { (ac_try="$ac_compile"
24058
case "(($ac_try" in
24059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060
  *) ac_try_echo=$ac_try;;
24061
esac
24062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24063
  (eval "$ac_compile") 2>conftest.er1
24064
  ac_status=$?
24065
  grep -v '^ *+' conftest.er1 >conftest.err
24066
  rm -f conftest.er1
24067
  cat conftest.err >&5
24068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069
  (exit $ac_status); } && {
24070
         test -z "$ac_c_werror_flag" ||
24071
         test ! -s conftest.err
24072
       } && test -s conftest.$ac_objext; then
24073
  ac_hi=$ac_mid; break
24074
else
24075
  echo "$as_me: failed program was:" >&5
24076
sed 's/^/| /' conftest.$ac_ext >&5
24077
 
24078
        ac_lo=`expr $ac_mid + 1`
24079
                        if test $ac_lo -le $ac_mid; then
24080
                          ac_lo= ac_hi=
24081
                          break
24082
                        fi
24083
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24084
fi
24085
 
24086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24087
  done
24088
else
24089
  echo "$as_me: failed program was:" >&5
24090
sed 's/^/| /' conftest.$ac_ext >&5
24091
 
24092
        cat >conftest.$ac_ext <<_ACEOF
24093
/* confdefs.h.  */
24094
_ACEOF
24095
cat confdefs.h >>conftest.$ac_ext
24096
cat >>conftest.$ac_ext <<_ACEOF
24097
/* end confdefs.h.  */
24098
$ac_includes_default
24099
   typedef short ac__type_sizeof_;
24100
int
24101
main ()
24102
{
24103
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24104
test_array @<:@0@:>@ = 0
24105
 
24106
  ;
24107
  return 0;
24108
}
24109
_ACEOF
24110
rm -f conftest.$ac_objext
24111
if { (ac_try="$ac_compile"
24112
case "(($ac_try" in
24113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114
  *) ac_try_echo=$ac_try;;
24115
esac
24116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117
  (eval "$ac_compile") 2>conftest.er1
24118
  ac_status=$?
24119
  grep -v '^ *+' conftest.er1 >conftest.err
24120
  rm -f conftest.er1
24121
  cat conftest.err >&5
24122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123
  (exit $ac_status); } && {
24124
         test -z "$ac_c_werror_flag" ||
24125
         test ! -s conftest.err
24126
       } && test -s conftest.$ac_objext; then
24127
  ac_hi=-1 ac_mid=-1
24128
  while :; do
24129
    cat >conftest.$ac_ext <<_ACEOF
24130
/* confdefs.h.  */
24131
_ACEOF
24132
cat confdefs.h >>conftest.$ac_ext
24133
cat >>conftest.$ac_ext <<_ACEOF
24134
/* end confdefs.h.  */
24135
$ac_includes_default
24136
   typedef short ac__type_sizeof_;
24137
int
24138
main ()
24139
{
24140
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24141
test_array @<:@0@:>@ = 0
24142
 
24143
  ;
24144
  return 0;
24145
}
24146
_ACEOF
24147
rm -f conftest.$ac_objext
24148
if { (ac_try="$ac_compile"
24149
case "(($ac_try" in
24150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151
  *) ac_try_echo=$ac_try;;
24152
esac
24153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154
  (eval "$ac_compile") 2>conftest.er1
24155
  ac_status=$?
24156
  grep -v '^ *+' conftest.er1 >conftest.err
24157
  rm -f conftest.er1
24158
  cat conftest.err >&5
24159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160
  (exit $ac_status); } && {
24161
         test -z "$ac_c_werror_flag" ||
24162
         test ! -s conftest.err
24163
       } && test -s conftest.$ac_objext; then
24164
  ac_lo=$ac_mid; break
24165
else
24166
  echo "$as_me: failed program was:" >&5
24167
sed 's/^/| /' conftest.$ac_ext >&5
24168
 
24169
        ac_hi=`expr '(' $ac_mid ')' - 1`
24170
                        if test $ac_mid -le $ac_hi; then
24171
                          ac_lo= ac_hi=
24172
                          break
24173
                        fi
24174
                        ac_mid=`expr 2 '*' $ac_mid`
24175
fi
24176
 
24177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178
  done
24179
else
24180
  echo "$as_me: failed program was:" >&5
24181
sed 's/^/| /' conftest.$ac_ext >&5
24182
 
24183
        ac_lo= ac_hi=
24184
fi
24185
 
24186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187
fi
24188
 
24189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24190
# Binary search between lo and hi bounds.
24191
while test "x$ac_lo" != "x$ac_hi"; do
24192
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24193
  cat >conftest.$ac_ext <<_ACEOF
24194
/* confdefs.h.  */
24195
_ACEOF
24196
cat confdefs.h >>conftest.$ac_ext
24197
cat >>conftest.$ac_ext <<_ACEOF
24198
/* end confdefs.h.  */
24199
$ac_includes_default
24200
   typedef short ac__type_sizeof_;
24201
int
24202
main ()
24203
{
24204
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24205
test_array @<:@0@:>@ = 0
24206
 
24207
  ;
24208
  return 0;
24209
}
24210
_ACEOF
24211
rm -f conftest.$ac_objext
24212
if { (ac_try="$ac_compile"
24213
case "(($ac_try" in
24214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215
  *) ac_try_echo=$ac_try;;
24216
esac
24217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218
  (eval "$ac_compile") 2>conftest.er1
24219
  ac_status=$?
24220
  grep -v '^ *+' conftest.er1 >conftest.err
24221
  rm -f conftest.er1
24222
  cat conftest.err >&5
24223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224
  (exit $ac_status); } && {
24225
         test -z "$ac_c_werror_flag" ||
24226
         test ! -s conftest.err
24227
       } && test -s conftest.$ac_objext; then
24228
  ac_hi=$ac_mid
24229
else
24230
  echo "$as_me: failed program was:" >&5
24231
sed 's/^/| /' conftest.$ac_ext >&5
24232
 
24233
        ac_lo=`expr '(' $ac_mid ')' + 1`
24234
fi
24235
 
24236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24237
done
24238
case $ac_lo in
24239
?*) ac_cv_sizeof_short=$ac_lo;;
24240
'') if test "$ac_cv_type_short" = yes; then
24241
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24242
See \`config.log' for more details." >&5
24243
echo "$as_me: error: cannot compute sizeof (short)
24244
See \`config.log' for more details." >&2;}
24245
   { (exit 77); exit 77; }; }
24246
   else
24247
     ac_cv_sizeof_short=0
24248
   fi ;;
24249
esac
24250
else
24251
  cat >conftest.$ac_ext <<_ACEOF
24252
/* confdefs.h.  */
24253
_ACEOF
24254
cat confdefs.h >>conftest.$ac_ext
24255
cat >>conftest.$ac_ext <<_ACEOF
24256
/* end confdefs.h.  */
24257
$ac_includes_default
24258
   typedef short ac__type_sizeof_;
24259
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24260
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24261
@%:@include 
24262
@%:@include 
24263
int
24264
main ()
24265
{
24266
 
24267
  FILE *f = fopen ("conftest.val", "w");
24268
  if (! f)
24269
    return 1;
24270
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24271
    {
24272
      long int i = longval ();
24273
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24274
        return 1;
24275
      fprintf (f, "%ld\n", i);
24276
    }
24277
  else
24278
    {
24279
      unsigned long int i = ulongval ();
24280
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24281
        return 1;
24282
      fprintf (f, "%lu\n", i);
24283
    }
24284
  return ferror (f) || fclose (f) != 0;
24285
 
24286
  ;
24287
  return 0;
24288
}
24289
_ACEOF
24290
rm -f conftest$ac_exeext
24291
if { (ac_try="$ac_link"
24292
case "(($ac_try" in
24293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294
  *) ac_try_echo=$ac_try;;
24295
esac
24296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297
  (eval "$ac_link") 2>&5
24298
  ac_status=$?
24299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24301
  { (case "(($ac_try" in
24302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303
  *) ac_try_echo=$ac_try;;
24304
esac
24305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306
  (eval "$ac_try") 2>&5
24307
  ac_status=$?
24308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309
  (exit $ac_status); }; }; then
24310
  ac_cv_sizeof_short=`cat conftest.val`
24311
else
24312
  echo "$as_me: program exited with status $ac_status" >&5
24313
echo "$as_me: failed program was:" >&5
24314
sed 's/^/| /' conftest.$ac_ext >&5
24315
 
24316
( exit $ac_status )
24317
if test "$ac_cv_type_short" = yes; then
24318
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24319
See \`config.log' for more details." >&5
24320
echo "$as_me: error: cannot compute sizeof (short)
24321
See \`config.log' for more details." >&2;}
24322
   { (exit 77); exit 77; }; }
24323
   else
24324
     ac_cv_sizeof_short=0
24325
   fi
24326
fi
24327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24328
fi
24329
rm -f conftest.val
24330
fi
24331
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
24332
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
24333
 
24334
 
24335
 
24336
cat >>confdefs.h <<_ACEOF
24337
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
24338
_ACEOF
24339
 
24340
 
24341
{ echo "$as_me:$LINENO: checking for int" >&5
24342
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24343
if test "${ac_cv_type_int+set}" = set; then
24344
  echo $ECHO_N "(cached) $ECHO_C" >&6
24345
else
24346
  cat >conftest.$ac_ext <<_ACEOF
24347
/* confdefs.h.  */
24348
_ACEOF
24349
cat confdefs.h >>conftest.$ac_ext
24350
cat >>conftest.$ac_ext <<_ACEOF
24351
/* end confdefs.h.  */
24352
$ac_includes_default
24353
typedef int ac__type_new_;
24354
int
24355
main ()
24356
{
24357
if ((ac__type_new_ *) 0)
24358
  return 0;
24359
if (sizeof (ac__type_new_))
24360
  return 0;
24361
  ;
24362
  return 0;
24363
}
24364
_ACEOF
24365
rm -f conftest.$ac_objext
24366
if { (ac_try="$ac_compile"
24367
case "(($ac_try" in
24368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369
  *) ac_try_echo=$ac_try;;
24370
esac
24371
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372
  (eval "$ac_compile") 2>conftest.er1
24373
  ac_status=$?
24374
  grep -v '^ *+' conftest.er1 >conftest.err
24375
  rm -f conftest.er1
24376
  cat conftest.err >&5
24377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378
  (exit $ac_status); } && {
24379
         test -z "$ac_c_werror_flag" ||
24380
         test ! -s conftest.err
24381
       } && test -s conftest.$ac_objext; then
24382
  ac_cv_type_int=yes
24383
else
24384
  echo "$as_me: failed program was:" >&5
24385
sed 's/^/| /' conftest.$ac_ext >&5
24386
 
24387
        ac_cv_type_int=no
24388
fi
24389
 
24390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391
fi
24392
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24393
echo "${ECHO_T}$ac_cv_type_int" >&6; }
24394
 
24395
# The cast to long int works around a bug in the HP C Compiler
24396
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24397
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24398
# This bug is HP SR number 8606223364.
24399
{ echo "$as_me:$LINENO: checking size of int" >&5
24400
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24401
if test "${ac_cv_sizeof_int+set}" = set; then
24402
  echo $ECHO_N "(cached) $ECHO_C" >&6
24403
else
24404
  if test "$cross_compiling" = yes; then
24405
  # Depending upon the size, compute the lo and hi bounds.
24406
cat >conftest.$ac_ext <<_ACEOF
24407
/* confdefs.h.  */
24408
_ACEOF
24409
cat confdefs.h >>conftest.$ac_ext
24410
cat >>conftest.$ac_ext <<_ACEOF
24411
/* end confdefs.h.  */
24412
$ac_includes_default
24413
   typedef int ac__type_sizeof_;
24414
int
24415
main ()
24416
{
24417
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24418
test_array @<:@0@:>@ = 0
24419
 
24420
  ;
24421
  return 0;
24422
}
24423
_ACEOF
24424
rm -f conftest.$ac_objext
24425
if { (ac_try="$ac_compile"
24426
case "(($ac_try" in
24427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428
  *) ac_try_echo=$ac_try;;
24429
esac
24430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431
  (eval "$ac_compile") 2>conftest.er1
24432
  ac_status=$?
24433
  grep -v '^ *+' conftest.er1 >conftest.err
24434
  rm -f conftest.er1
24435
  cat conftest.err >&5
24436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437
  (exit $ac_status); } && {
24438
         test -z "$ac_c_werror_flag" ||
24439
         test ! -s conftest.err
24440
       } && test -s conftest.$ac_objext; then
24441
  ac_lo=0 ac_mid=0
24442
  while :; do
24443
    cat >conftest.$ac_ext <<_ACEOF
24444
/* confdefs.h.  */
24445
_ACEOF
24446
cat confdefs.h >>conftest.$ac_ext
24447
cat >>conftest.$ac_ext <<_ACEOF
24448
/* end confdefs.h.  */
24449
$ac_includes_default
24450
   typedef int ac__type_sizeof_;
24451
int
24452
main ()
24453
{
24454
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24455
test_array @<:@0@:>@ = 0
24456
 
24457
  ;
24458
  return 0;
24459
}
24460
_ACEOF
24461
rm -f conftest.$ac_objext
24462
if { (ac_try="$ac_compile"
24463
case "(($ac_try" in
24464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465
  *) ac_try_echo=$ac_try;;
24466
esac
24467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24468
  (eval "$ac_compile") 2>conftest.er1
24469
  ac_status=$?
24470
  grep -v '^ *+' conftest.er1 >conftest.err
24471
  rm -f conftest.er1
24472
  cat conftest.err >&5
24473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474
  (exit $ac_status); } && {
24475
         test -z "$ac_c_werror_flag" ||
24476
         test ! -s conftest.err
24477
       } && test -s conftest.$ac_objext; then
24478
  ac_hi=$ac_mid; break
24479
else
24480
  echo "$as_me: failed program was:" >&5
24481
sed 's/^/| /' conftest.$ac_ext >&5
24482
 
24483
        ac_lo=`expr $ac_mid + 1`
24484
                        if test $ac_lo -le $ac_mid; then
24485
                          ac_lo= ac_hi=
24486
                          break
24487
                        fi
24488
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24489
fi
24490
 
24491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492
  done
24493
else
24494
  echo "$as_me: failed program was:" >&5
24495
sed 's/^/| /' conftest.$ac_ext >&5
24496
 
24497
        cat >conftest.$ac_ext <<_ACEOF
24498
/* confdefs.h.  */
24499
_ACEOF
24500
cat confdefs.h >>conftest.$ac_ext
24501
cat >>conftest.$ac_ext <<_ACEOF
24502
/* end confdefs.h.  */
24503
$ac_includes_default
24504
   typedef int ac__type_sizeof_;
24505
int
24506
main ()
24507
{
24508
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24509
test_array @<:@0@:>@ = 0
24510
 
24511
  ;
24512
  return 0;
24513
}
24514
_ACEOF
24515
rm -f conftest.$ac_objext
24516
if { (ac_try="$ac_compile"
24517
case "(($ac_try" in
24518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519
  *) ac_try_echo=$ac_try;;
24520
esac
24521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522
  (eval "$ac_compile") 2>conftest.er1
24523
  ac_status=$?
24524
  grep -v '^ *+' conftest.er1 >conftest.err
24525
  rm -f conftest.er1
24526
  cat conftest.err >&5
24527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528
  (exit $ac_status); } && {
24529
         test -z "$ac_c_werror_flag" ||
24530
         test ! -s conftest.err
24531
       } && test -s conftest.$ac_objext; then
24532
  ac_hi=-1 ac_mid=-1
24533
  while :; do
24534
    cat >conftest.$ac_ext <<_ACEOF
24535
/* confdefs.h.  */
24536
_ACEOF
24537
cat confdefs.h >>conftest.$ac_ext
24538
cat >>conftest.$ac_ext <<_ACEOF
24539
/* end confdefs.h.  */
24540
$ac_includes_default
24541
   typedef int ac__type_sizeof_;
24542
int
24543
main ()
24544
{
24545
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24546
test_array @<:@0@:>@ = 0
24547
 
24548
  ;
24549
  return 0;
24550
}
24551
_ACEOF
24552
rm -f conftest.$ac_objext
24553
if { (ac_try="$ac_compile"
24554
case "(($ac_try" in
24555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556
  *) ac_try_echo=$ac_try;;
24557
esac
24558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559
  (eval "$ac_compile") 2>conftest.er1
24560
  ac_status=$?
24561
  grep -v '^ *+' conftest.er1 >conftest.err
24562
  rm -f conftest.er1
24563
  cat conftest.err >&5
24564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565
  (exit $ac_status); } && {
24566
         test -z "$ac_c_werror_flag" ||
24567
         test ! -s conftest.err
24568
       } && test -s conftest.$ac_objext; then
24569
  ac_lo=$ac_mid; break
24570
else
24571
  echo "$as_me: failed program was:" >&5
24572
sed 's/^/| /' conftest.$ac_ext >&5
24573
 
24574
        ac_hi=`expr '(' $ac_mid ')' - 1`
24575
                        if test $ac_mid -le $ac_hi; then
24576
                          ac_lo= ac_hi=
24577
                          break
24578
                        fi
24579
                        ac_mid=`expr 2 '*' $ac_mid`
24580
fi
24581
 
24582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583
  done
24584
else
24585
  echo "$as_me: failed program was:" >&5
24586
sed 's/^/| /' conftest.$ac_ext >&5
24587
 
24588
        ac_lo= ac_hi=
24589
fi
24590
 
24591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592
fi
24593
 
24594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595
# Binary search between lo and hi bounds.
24596
while test "x$ac_lo" != "x$ac_hi"; do
24597
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24598
  cat >conftest.$ac_ext <<_ACEOF
24599
/* confdefs.h.  */
24600
_ACEOF
24601
cat confdefs.h >>conftest.$ac_ext
24602
cat >>conftest.$ac_ext <<_ACEOF
24603
/* end confdefs.h.  */
24604
$ac_includes_default
24605
   typedef int ac__type_sizeof_;
24606
int
24607
main ()
24608
{
24609
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24610
test_array @<:@0@:>@ = 0
24611
 
24612
  ;
24613
  return 0;
24614
}
24615
_ACEOF
24616
rm -f conftest.$ac_objext
24617
if { (ac_try="$ac_compile"
24618
case "(($ac_try" in
24619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620
  *) ac_try_echo=$ac_try;;
24621
esac
24622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623
  (eval "$ac_compile") 2>conftest.er1
24624
  ac_status=$?
24625
  grep -v '^ *+' conftest.er1 >conftest.err
24626
  rm -f conftest.er1
24627
  cat conftest.err >&5
24628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629
  (exit $ac_status); } && {
24630
         test -z "$ac_c_werror_flag" ||
24631
         test ! -s conftest.err
24632
       } && test -s conftest.$ac_objext; then
24633
  ac_hi=$ac_mid
24634
else
24635
  echo "$as_me: failed program was:" >&5
24636
sed 's/^/| /' conftest.$ac_ext >&5
24637
 
24638
        ac_lo=`expr '(' $ac_mid ')' + 1`
24639
fi
24640
 
24641
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24642
done
24643
case $ac_lo in
24644
?*) ac_cv_sizeof_int=$ac_lo;;
24645
'') if test "$ac_cv_type_int" = yes; then
24646
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24647
See \`config.log' for more details." >&5
24648
echo "$as_me: error: cannot compute sizeof (int)
24649
See \`config.log' for more details." >&2;}
24650
   { (exit 77); exit 77; }; }
24651
   else
24652
     ac_cv_sizeof_int=0
24653
   fi ;;
24654
esac
24655
else
24656
  cat >conftest.$ac_ext <<_ACEOF
24657
/* confdefs.h.  */
24658
_ACEOF
24659
cat confdefs.h >>conftest.$ac_ext
24660
cat >>conftest.$ac_ext <<_ACEOF
24661
/* end confdefs.h.  */
24662
$ac_includes_default
24663
   typedef int ac__type_sizeof_;
24664
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24665
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24666
@%:@include 
24667
@%:@include 
24668
int
24669
main ()
24670
{
24671
 
24672
  FILE *f = fopen ("conftest.val", "w");
24673
  if (! f)
24674
    return 1;
24675
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24676
    {
24677
      long int i = longval ();
24678
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24679
        return 1;
24680
      fprintf (f, "%ld\n", i);
24681
    }
24682
  else
24683
    {
24684
      unsigned long int i = ulongval ();
24685
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24686
        return 1;
24687
      fprintf (f, "%lu\n", i);
24688
    }
24689
  return ferror (f) || fclose (f) != 0;
24690
 
24691
  ;
24692
  return 0;
24693
}
24694
_ACEOF
24695
rm -f conftest$ac_exeext
24696
if { (ac_try="$ac_link"
24697
case "(($ac_try" in
24698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699
  *) ac_try_echo=$ac_try;;
24700
esac
24701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702
  (eval "$ac_link") 2>&5
24703
  ac_status=$?
24704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24706
  { (case "(($ac_try" in
24707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708
  *) ac_try_echo=$ac_try;;
24709
esac
24710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711
  (eval "$ac_try") 2>&5
24712
  ac_status=$?
24713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714
  (exit $ac_status); }; }; then
24715
  ac_cv_sizeof_int=`cat conftest.val`
24716
else
24717
  echo "$as_me: program exited with status $ac_status" >&5
24718
echo "$as_me: failed program was:" >&5
24719
sed 's/^/| /' conftest.$ac_ext >&5
24720
 
24721
( exit $ac_status )
24722
if test "$ac_cv_type_int" = yes; then
24723
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24724
See \`config.log' for more details." >&5
24725
echo "$as_me: error: cannot compute sizeof (int)
24726
See \`config.log' for more details." >&2;}
24727
   { (exit 77); exit 77; }; }
24728
   else
24729
     ac_cv_sizeof_int=0
24730
   fi
24731
fi
24732
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24733
fi
24734
rm -f conftest.val
24735
fi
24736
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24737
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24738
 
24739
 
24740
 
24741
cat >>confdefs.h <<_ACEOF
24742
@%:@define SIZEOF_INT $ac_cv_sizeof_int
24743
_ACEOF
24744
 
24745
 
24746
{ echo "$as_me:$LINENO: checking for long" >&5
24747
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
24748
if test "${ac_cv_type_long+set}" = set; then
24749
  echo $ECHO_N "(cached) $ECHO_C" >&6
24750
else
24751
  cat >conftest.$ac_ext <<_ACEOF
24752
/* confdefs.h.  */
24753
_ACEOF
24754
cat confdefs.h >>conftest.$ac_ext
24755
cat >>conftest.$ac_ext <<_ACEOF
24756
/* end confdefs.h.  */
24757
$ac_includes_default
24758
typedef long ac__type_new_;
24759
int
24760
main ()
24761
{
24762
if ((ac__type_new_ *) 0)
24763
  return 0;
24764
if (sizeof (ac__type_new_))
24765
  return 0;
24766
  ;
24767
  return 0;
24768
}
24769
_ACEOF
24770
rm -f conftest.$ac_objext
24771
if { (ac_try="$ac_compile"
24772
case "(($ac_try" in
24773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774
  *) ac_try_echo=$ac_try;;
24775
esac
24776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777
  (eval "$ac_compile") 2>conftest.er1
24778
  ac_status=$?
24779
  grep -v '^ *+' conftest.er1 >conftest.err
24780
  rm -f conftest.er1
24781
  cat conftest.err >&5
24782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783
  (exit $ac_status); } && {
24784
         test -z "$ac_c_werror_flag" ||
24785
         test ! -s conftest.err
24786
       } && test -s conftest.$ac_objext; then
24787
  ac_cv_type_long=yes
24788
else
24789
  echo "$as_me: failed program was:" >&5
24790
sed 's/^/| /' conftest.$ac_ext >&5
24791
 
24792
        ac_cv_type_long=no
24793
fi
24794
 
24795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796
fi
24797
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
24798
echo "${ECHO_T}$ac_cv_type_long" >&6; }
24799
 
24800
# The cast to long int works around a bug in the HP C Compiler
24801
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24802
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24803
# This bug is HP SR number 8606223364.
24804
{ echo "$as_me:$LINENO: checking size of long" >&5
24805
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
24806
if test "${ac_cv_sizeof_long+set}" = set; then
24807
  echo $ECHO_N "(cached) $ECHO_C" >&6
24808
else
24809
  if test "$cross_compiling" = yes; then
24810
  # Depending upon the size, compute the lo and hi bounds.
24811
cat >conftest.$ac_ext <<_ACEOF
24812
/* confdefs.h.  */
24813
_ACEOF
24814
cat confdefs.h >>conftest.$ac_ext
24815
cat >>conftest.$ac_ext <<_ACEOF
24816
/* end confdefs.h.  */
24817
$ac_includes_default
24818
   typedef long ac__type_sizeof_;
24819
int
24820
main ()
24821
{
24822
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24823
test_array @<:@0@:>@ = 0
24824
 
24825
  ;
24826
  return 0;
24827
}
24828
_ACEOF
24829
rm -f conftest.$ac_objext
24830
if { (ac_try="$ac_compile"
24831
case "(($ac_try" in
24832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833
  *) ac_try_echo=$ac_try;;
24834
esac
24835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24836
  (eval "$ac_compile") 2>conftest.er1
24837
  ac_status=$?
24838
  grep -v '^ *+' conftest.er1 >conftest.err
24839
  rm -f conftest.er1
24840
  cat conftest.err >&5
24841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842
  (exit $ac_status); } && {
24843
         test -z "$ac_c_werror_flag" ||
24844
         test ! -s conftest.err
24845
       } && test -s conftest.$ac_objext; then
24846
  ac_lo=0 ac_mid=0
24847
  while :; do
24848
    cat >conftest.$ac_ext <<_ACEOF
24849
/* confdefs.h.  */
24850
_ACEOF
24851
cat confdefs.h >>conftest.$ac_ext
24852
cat >>conftest.$ac_ext <<_ACEOF
24853
/* end confdefs.h.  */
24854
$ac_includes_default
24855
   typedef long ac__type_sizeof_;
24856
int
24857
main ()
24858
{
24859
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24860
test_array @<:@0@:>@ = 0
24861
 
24862
  ;
24863
  return 0;
24864
}
24865
_ACEOF
24866
rm -f conftest.$ac_objext
24867
if { (ac_try="$ac_compile"
24868
case "(($ac_try" in
24869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870
  *) ac_try_echo=$ac_try;;
24871
esac
24872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873
  (eval "$ac_compile") 2>conftest.er1
24874
  ac_status=$?
24875
  grep -v '^ *+' conftest.er1 >conftest.err
24876
  rm -f conftest.er1
24877
  cat conftest.err >&5
24878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879
  (exit $ac_status); } && {
24880
         test -z "$ac_c_werror_flag" ||
24881
         test ! -s conftest.err
24882
       } && test -s conftest.$ac_objext; then
24883
  ac_hi=$ac_mid; break
24884
else
24885
  echo "$as_me: failed program was:" >&5
24886
sed 's/^/| /' conftest.$ac_ext >&5
24887
 
24888
        ac_lo=`expr $ac_mid + 1`
24889
                        if test $ac_lo -le $ac_mid; then
24890
                          ac_lo= ac_hi=
24891
                          break
24892
                        fi
24893
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24894
fi
24895
 
24896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897
  done
24898
else
24899
  echo "$as_me: failed program was:" >&5
24900
sed 's/^/| /' conftest.$ac_ext >&5
24901
 
24902
        cat >conftest.$ac_ext <<_ACEOF
24903
/* confdefs.h.  */
24904
_ACEOF
24905
cat confdefs.h >>conftest.$ac_ext
24906
cat >>conftest.$ac_ext <<_ACEOF
24907
/* end confdefs.h.  */
24908
$ac_includes_default
24909
   typedef long ac__type_sizeof_;
24910
int
24911
main ()
24912
{
24913
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24914
test_array @<:@0@:>@ = 0
24915
 
24916
  ;
24917
  return 0;
24918
}
24919
_ACEOF
24920
rm -f conftest.$ac_objext
24921
if { (ac_try="$ac_compile"
24922
case "(($ac_try" in
24923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924
  *) ac_try_echo=$ac_try;;
24925
esac
24926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927
  (eval "$ac_compile") 2>conftest.er1
24928
  ac_status=$?
24929
  grep -v '^ *+' conftest.er1 >conftest.err
24930
  rm -f conftest.er1
24931
  cat conftest.err >&5
24932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933
  (exit $ac_status); } && {
24934
         test -z "$ac_c_werror_flag" ||
24935
         test ! -s conftest.err
24936
       } && test -s conftest.$ac_objext; then
24937
  ac_hi=-1 ac_mid=-1
24938
  while :; do
24939
    cat >conftest.$ac_ext <<_ACEOF
24940
/* confdefs.h.  */
24941
_ACEOF
24942
cat confdefs.h >>conftest.$ac_ext
24943
cat >>conftest.$ac_ext <<_ACEOF
24944
/* end confdefs.h.  */
24945
$ac_includes_default
24946
   typedef long ac__type_sizeof_;
24947
int
24948
main ()
24949
{
24950
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24951
test_array @<:@0@:>@ = 0
24952
 
24953
  ;
24954
  return 0;
24955
}
24956
_ACEOF
24957
rm -f conftest.$ac_objext
24958
if { (ac_try="$ac_compile"
24959
case "(($ac_try" in
24960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961
  *) ac_try_echo=$ac_try;;
24962
esac
24963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964
  (eval "$ac_compile") 2>conftest.er1
24965
  ac_status=$?
24966
  grep -v '^ *+' conftest.er1 >conftest.err
24967
  rm -f conftest.er1
24968
  cat conftest.err >&5
24969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970
  (exit $ac_status); } && {
24971
         test -z "$ac_c_werror_flag" ||
24972
         test ! -s conftest.err
24973
       } && test -s conftest.$ac_objext; then
24974
  ac_lo=$ac_mid; break
24975
else
24976
  echo "$as_me: failed program was:" >&5
24977
sed 's/^/| /' conftest.$ac_ext >&5
24978
 
24979
        ac_hi=`expr '(' $ac_mid ')' - 1`
24980
                        if test $ac_mid -le $ac_hi; then
24981
                          ac_lo= ac_hi=
24982
                          break
24983
                        fi
24984
                        ac_mid=`expr 2 '*' $ac_mid`
24985
fi
24986
 
24987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24988
  done
24989
else
24990
  echo "$as_me: failed program was:" >&5
24991
sed 's/^/| /' conftest.$ac_ext >&5
24992
 
24993
        ac_lo= ac_hi=
24994
fi
24995
 
24996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997
fi
24998
 
24999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000
# Binary search between lo and hi bounds.
25001
while test "x$ac_lo" != "x$ac_hi"; do
25002
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25003
  cat >conftest.$ac_ext <<_ACEOF
25004
/* confdefs.h.  */
25005
_ACEOF
25006
cat confdefs.h >>conftest.$ac_ext
25007
cat >>conftest.$ac_ext <<_ACEOF
25008
/* end confdefs.h.  */
25009
$ac_includes_default
25010
   typedef long ac__type_sizeof_;
25011
int
25012
main ()
25013
{
25014
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25015
test_array @<:@0@:>@ = 0
25016
 
25017
  ;
25018
  return 0;
25019
}
25020
_ACEOF
25021
rm -f conftest.$ac_objext
25022
if { (ac_try="$ac_compile"
25023
case "(($ac_try" in
25024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025
  *) ac_try_echo=$ac_try;;
25026
esac
25027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028
  (eval "$ac_compile") 2>conftest.er1
25029
  ac_status=$?
25030
  grep -v '^ *+' conftest.er1 >conftest.err
25031
  rm -f conftest.er1
25032
  cat conftest.err >&5
25033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034
  (exit $ac_status); } && {
25035
         test -z "$ac_c_werror_flag" ||
25036
         test ! -s conftest.err
25037
       } && test -s conftest.$ac_objext; then
25038
  ac_hi=$ac_mid
25039
else
25040
  echo "$as_me: failed program was:" >&5
25041
sed 's/^/| /' conftest.$ac_ext >&5
25042
 
25043
        ac_lo=`expr '(' $ac_mid ')' + 1`
25044
fi
25045
 
25046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047
done
25048
case $ac_lo in
25049
?*) ac_cv_sizeof_long=$ac_lo;;
25050
'') if test "$ac_cv_type_long" = yes; then
25051
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25052
See \`config.log' for more details." >&5
25053
echo "$as_me: error: cannot compute sizeof (long)
25054
See \`config.log' for more details." >&2;}
25055
   { (exit 77); exit 77; }; }
25056
   else
25057
     ac_cv_sizeof_long=0
25058
   fi ;;
25059
esac
25060
else
25061
  cat >conftest.$ac_ext <<_ACEOF
25062
/* confdefs.h.  */
25063
_ACEOF
25064
cat confdefs.h >>conftest.$ac_ext
25065
cat >>conftest.$ac_ext <<_ACEOF
25066
/* end confdefs.h.  */
25067
$ac_includes_default
25068
   typedef long ac__type_sizeof_;
25069
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25070
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25071
@%:@include 
25072
@%:@include 
25073
int
25074
main ()
25075
{
25076
 
25077
  FILE *f = fopen ("conftest.val", "w");
25078
  if (! f)
25079
    return 1;
25080
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25081
    {
25082
      long int i = longval ();
25083
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25084
        return 1;
25085
      fprintf (f, "%ld\n", i);
25086
    }
25087
  else
25088
    {
25089
      unsigned long int i = ulongval ();
25090
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25091
        return 1;
25092
      fprintf (f, "%lu\n", i);
25093
    }
25094
  return ferror (f) || fclose (f) != 0;
25095
 
25096
  ;
25097
  return 0;
25098
}
25099
_ACEOF
25100
rm -f conftest$ac_exeext
25101
if { (ac_try="$ac_link"
25102
case "(($ac_try" in
25103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104
  *) ac_try_echo=$ac_try;;
25105
esac
25106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107
  (eval "$ac_link") 2>&5
25108
  ac_status=$?
25109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25111
  { (case "(($ac_try" in
25112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113
  *) ac_try_echo=$ac_try;;
25114
esac
25115
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116
  (eval "$ac_try") 2>&5
25117
  ac_status=$?
25118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119
  (exit $ac_status); }; }; then
25120
  ac_cv_sizeof_long=`cat conftest.val`
25121
else
25122
  echo "$as_me: program exited with status $ac_status" >&5
25123
echo "$as_me: failed program was:" >&5
25124
sed 's/^/| /' conftest.$ac_ext >&5
25125
 
25126
( exit $ac_status )
25127
if test "$ac_cv_type_long" = yes; then
25128
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25129
See \`config.log' for more details." >&5
25130
echo "$as_me: error: cannot compute sizeof (long)
25131
See \`config.log' for more details." >&2;}
25132
   { (exit 77); exit 77; }; }
25133
   else
25134
     ac_cv_sizeof_long=0
25135
   fi
25136
fi
25137
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25138
fi
25139
rm -f conftest.val
25140
fi
25141
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25142
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
25143
 
25144
 
25145
 
25146
cat >>confdefs.h <<_ACEOF
25147
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
25148
_ACEOF
25149
 
25150
 
25151
 
25152 60 jeremybenn
#Check for compare function type for qsort (needed by some Linuxes)
25153
{ echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
25154
echo $ECHO_N "checking for __compar_fn_t... $ECHO_C" >&6; }
25155
if test "${ac_cv_type___compar_fn_t+set}" = set; then
25156
  echo $ECHO_N "(cached) $ECHO_C" >&6
25157
else
25158
  cat >conftest.$ac_ext <<_ACEOF
25159
/* confdefs.h.  */
25160
_ACEOF
25161
cat confdefs.h >>conftest.$ac_ext
25162
cat >>conftest.$ac_ext <<_ACEOF
25163
/* end confdefs.h.  */
25164
$ac_includes_default
25165
typedef __compar_fn_t ac__type_new_;
25166
int
25167
main ()
25168
{
25169
if ((ac__type_new_ *) 0)
25170
  return 0;
25171
if (sizeof (ac__type_new_))
25172
  return 0;
25173
  ;
25174
  return 0;
25175
}
25176
_ACEOF
25177
rm -f conftest.$ac_objext
25178
if { (ac_try="$ac_compile"
25179
case "(($ac_try" in
25180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181
  *) ac_try_echo=$ac_try;;
25182
esac
25183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184
  (eval "$ac_compile") 2>conftest.er1
25185
  ac_status=$?
25186
  grep -v '^ *+' conftest.er1 >conftest.err
25187
  rm -f conftest.er1
25188
  cat conftest.err >&5
25189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190
  (exit $ac_status); } && {
25191
         test -z "$ac_c_werror_flag" ||
25192
         test ! -s conftest.err
25193
       } && test -s conftest.$ac_objext; then
25194
  ac_cv_type___compar_fn_t=yes
25195
else
25196
  echo "$as_me: failed program was:" >&5
25197
sed 's/^/| /' conftest.$ac_ext >&5
25198
 
25199
        ac_cv_type___compar_fn_t=no
25200
fi
25201
 
25202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25203
fi
25204
{ echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
25205
echo "${ECHO_T}$ac_cv_type___compar_fn_t" >&6; }
25206
if test $ac_cv_type___compar_fn_t = yes; then
25207
 
25208
cat >>confdefs.h <<_ACEOF
25209
@%:@define HAVE___COMPAR_FN_T 1
25210
_ACEOF
25211
 
25212
 
25213
fi
25214
 
25215
 
25216 19 jeremybenn
# check for GNU readline
25217
 
25218
{ echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
25219
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6; }
25220
if test "${ac_cv_lib_readline_add_history+set}" = set; then
25221
  echo $ECHO_N "(cached) $ECHO_C" >&6
25222
else
25223
  ac_check_lib_save_LIBS=$LIBS
25224
LIBS="-lreadline  $LIBS"
25225
cat >conftest.$ac_ext <<_ACEOF
25226
/* confdefs.h.  */
25227
_ACEOF
25228
cat confdefs.h >>conftest.$ac_ext
25229
cat >>conftest.$ac_ext <<_ACEOF
25230
/* end confdefs.h.  */
25231
 
25232
/* Override any GCC internal prototype to avoid an error.
25233
   Use char because int might match the return type of a GCC
25234
   builtin and then its argument prototype would still apply.  */
25235
#ifdef __cplusplus
25236
extern "C"
25237
#endif
25238
char add_history ();
25239
int
25240
main ()
25241
{
25242
return add_history ();
25243
  ;
25244
  return 0;
25245
}
25246
_ACEOF
25247
rm -f conftest.$ac_objext conftest$ac_exeext
25248
if { (ac_try="$ac_link"
25249
case "(($ac_try" in
25250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251
  *) ac_try_echo=$ac_try;;
25252
esac
25253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254
  (eval "$ac_link") 2>conftest.er1
25255
  ac_status=$?
25256
  grep -v '^ *+' conftest.er1 >conftest.err
25257
  rm -f conftest.er1
25258
  cat conftest.err >&5
25259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260
  (exit $ac_status); } && {
25261
         test -z "$ac_c_werror_flag" ||
25262
         test ! -s conftest.err
25263
       } && test -s conftest$ac_exeext &&
25264
       $as_test_x conftest$ac_exeext; then
25265
  ac_cv_lib_readline_add_history=yes
25266
else
25267
  echo "$as_me: failed program was:" >&5
25268
sed 's/^/| /' conftest.$ac_ext >&5
25269
 
25270
        ac_cv_lib_readline_add_history=no
25271
fi
25272
 
25273
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25274
      conftest$ac_exeext conftest.$ac_ext
25275
LIBS=$ac_check_lib_save_LIBS
25276
fi
25277
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
25278
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6; }
25279
if test $ac_cv_lib_readline_add_history = yes; then
25280
  cat >>confdefs.h <<_ACEOF
25281
@%:@define HAVE_LIBREADLINE 1
25282
_ACEOF
25283
 
25284
  LIBS="-lreadline $LIBS"
25285
 
25286
fi
25287
 
25288 60 jeremybenn
# Not all versions of readline have rl_event_hook (e.g., Mac OS X)
25289
{ echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
25290
echo $ECHO_N "checking whether rl_event_hook is declared... $ECHO_C" >&6; }
25291
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
25292
  echo $ECHO_N "(cached) $ECHO_C" >&6
25293
else
25294
  cat >conftest.$ac_ext <<_ACEOF
25295
/* confdefs.h.  */
25296
_ACEOF
25297
cat confdefs.h >>conftest.$ac_ext
25298
cat >>conftest.$ac_ext <<_ACEOF
25299
/* end confdefs.h.  */
25300
#include 
25301 19 jeremybenn
 
25302 60 jeremybenn
int
25303
main ()
25304
{
25305
#ifndef rl_event_hook
25306
  (void) rl_event_hook;
25307
#endif
25308
 
25309
  ;
25310
  return 0;
25311
}
25312
_ACEOF
25313
rm -f conftest.$ac_objext
25314
if { (ac_try="$ac_compile"
25315
case "(($ac_try" in
25316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317
  *) ac_try_echo=$ac_try;;
25318
esac
25319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320
  (eval "$ac_compile") 2>conftest.er1
25321
  ac_status=$?
25322
  grep -v '^ *+' conftest.er1 >conftest.err
25323
  rm -f conftest.er1
25324
  cat conftest.err >&5
25325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326
  (exit $ac_status); } && {
25327
         test -z "$ac_c_werror_flag" ||
25328
         test ! -s conftest.err
25329
       } && test -s conftest.$ac_objext; then
25330
  ac_cv_have_decl_rl_event_hook=yes
25331
else
25332
  echo "$as_me: failed program was:" >&5
25333
sed 's/^/| /' conftest.$ac_ext >&5
25334
 
25335
        ac_cv_have_decl_rl_event_hook=no
25336
fi
25337
 
25338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25339
fi
25340
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
25341
echo "${ECHO_T}$ac_cv_have_decl_rl_event_hook" >&6; }
25342
if test $ac_cv_have_decl_rl_event_hook = yes; then
25343
 
25344
cat >>confdefs.h <<_ACEOF
25345
@%:@define HAVE_DECL_RL_EVENT_HOOK 1
25346
_ACEOF
25347
 
25348
 
25349
else
25350
  cat >>confdefs.h <<_ACEOF
25351
@%:@define HAVE_DECL_RL_EVENT_HOOK 0
25352
_ACEOF
25353
 
25354
 
25355
fi
25356
 
25357
 
25358
 
25359 19 jeremybenn
# yuck
25360
case "$host_os" in
25361
aix*)   prefer_curses=yes ;;
25362
esac
25363
 
25364
case "$host_cpu" in
25365
*cray*) LOCAL_CFLAGS=-DCRAY ;;
25366
esac
25367
 
25368
case "$host_os" in
25369
isc*)   LOCAL_CFLAGS=-Disc386 ;;
25370
esac
25371
 
25372
case "$host_os" in
25373
solaris*) LIBS="-lsocket -lnsl" ;;
25374
esac
25375
 
25376
# define options
25377
 
25378
{ echo "$as_me:$LINENO: checking whether to enable profiling" >&5
25379
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6; }
25380
# Check whether --enable-profiling was given.
25381
if test "${enable_profiling+set}" = set; then
25382
  enableval=$enable_profiling;
25383
    case "$enableval" in
25384 60 jeremybenn
        yes) profile="-pg" ;;
25385 19 jeremybenn
    esac
25386
 
25387
fi
25388
 
25389
{ echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
25390
echo "${ECHO_T}${enable_profiling-no}" >&6; }
25391
 
25392
execution="1"
25393
 
25394
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25395
{ echo "$as_me:$LINENO: checking which execution style to use" >&5
25396
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6; }
25397
# Check whether --enable-execution was given.
25398
if test "${enable_execution+set}" = set; then
25399
  enableval=$enable_execution;
25400
    case "$enableval" in
25401
    simple)
25402
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25403
      execution="0"
25404
      { echo "$as_me:$LINENO: result: simple" >&5
25405
echo "${ECHO_T}simple" >&6; }
25406
      ;;
25407
    complex)
25408
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25409
      execution="1"
25410
      { echo "$as_me:$LINENO: result: complex" >&5
25411
echo "${ECHO_T}complex" >&6; }
25412
      ;;
25413
    dynamic)
25414
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25415
      execution="2"
25416
      { echo "$as_me:$LINENO: result: dynamic" >&5
25417
echo "${ECHO_T}dynamic" >&6; }
25418
      ;;
25419
    *)
25420
      { { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
25421
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
25422
   { (exit 1); exit 1; }; }
25423
      ;;
25424
    esac
25425
 
25426
else
25427
 
25428
      { echo "$as_me:$LINENO: result: complex" >&5
25429
echo "${ECHO_T}complex" >&6; }
25430
 
25431
fi
25432
 
25433
 
25434
eth_phy="0"
25435
{ echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
25436
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6; }
25437
# Check whether --enable-ethphy was given.
25438
if test "${enable_ethphy+set}" = set; then
25439
  enableval=$enable_ethphy;
25440
    case "$enableval" in
25441
  no)  eth_phy="0" ;;
25442
        yes) eth_phy="1" ;;
25443
    esac
25444
 
25445
fi
25446
 
25447
{ echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
25448
echo "${ECHO_T}${enable_eth_phy-no}" >&6; }
25449
 
25450
 
25451
raw_range_stats="0"
25452
{ echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
25453
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6; }
25454
# Check whether --enable-range_stats was given.
25455
if test "${enable_range_stats+set}" = set; then
25456
  enableval=$enable_range_stats;
25457
    case "$enableval" in
25458
  no)  raw_range_stats="0" ;;
25459
        yes) raw_range_stats="1" simple_execution="1" ;;
25460
    esac
25461
 
25462
fi
25463
 
25464
{ echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
25465
echo "${ECHO_T}${enable_range_stats-no}" >&6; }
25466
 
25467
set_ov_flag="0"
25468
{ echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
25469
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6; }
25470
# Check whether --enable-ov_flag was given.
25471
if test "${enable_ov_flag+set}" = set; then
25472
  enableval=$enable_ov_flag;
25473
    case "$enableval" in
25474 60 jeremybenn
    no)  set_ov_flag="0" ;;
25475
    yes) set_ov_flag="1" ;;
25476 19 jeremybenn
    esac
25477
 
25478
fi
25479
 
25480
{ echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
25481
echo "${ECHO_T}${enable_ov_flag-no}" >&6; }
25482
 
25483
set_arith_flag="0"
25484
{ echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
25485
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6; }
25486
# Check whether --enable-arith_flag was given.
25487
if test "${enable_arith_flag+set}" = set; then
25488
  enableval=$enable_arith_flag;
25489
    case "$enableval" in
25490
  no)  set_arith_flag="0" ;;
25491
        yes) set_arith_flag="1" ;;
25492
    esac
25493
 
25494
fi
25495
 
25496
{ echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
25497
echo "${ECHO_T}${enable_arith_flag-no}" >&6; }
25498
 
25499 60 jeremybenn
# check for --enable-debug argument (for argtable2)
25500
# Check whether --enable-debug was given.
25501
if test "${enable_debug+set}" = set; then
25502
  enableval=$enable_debug;
25503
       case $enableval in
25504
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
25505
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
25506
          *)   echo "illegal argument to --enable-debug" & exit 1;;
25507
       esac
25508
 
25509
else
25510
  DEBUGFLAGS="-DNDEBUG"
25511
 
25512
fi
25513 19 jeremybenn
 
25514 60 jeremybenn
 
25515
 
25516
 
25517 19 jeremybenn
cat >>confdefs.h <<_ACEOF
25518
@%:@define RAW_RANGE_STATS $raw_range_stats
25519
_ACEOF
25520
 
25521
 
25522
cat >>confdefs.h <<_ACEOF
25523
@%:@define SET_OV_FLAG $set_ov_flag
25524
_ACEOF
25525
 
25526
 
25527
cat >>confdefs.h <<_ACEOF
25528
@%:@define ARITH_SET_FLAG $set_arith_flag
25529
_ACEOF
25530
 
25531
 
25532
cat >>confdefs.h <<_ACEOF
25533
@%:@define HAVE_ETH_PHY $eth_phy
25534
_ACEOF
25535
 
25536
 
25537
cat >>confdefs.h <<_ACEOF
25538
@%:@define SIMPLE_EXECUTION $execution == 0
25539
_ACEOF
25540
 
25541
 
25542
cat >>confdefs.h <<_ACEOF
25543
@%:@define COMPLEX_EXECUTION $execution == 1
25544
_ACEOF
25545
 
25546
 
25547
cat >>confdefs.h <<_ACEOF
25548
@%:@define DYNAMIC_EXECUTION $execution == 2
25549
_ACEOF
25550
 
25551
 if test x$execution = x1; then
25552
  GENERATE_NEEDED_TRUE=
25553
  GENERATE_NEEDED_FALSE='#'
25554
else
25555
  GENERATE_NEEDED_TRUE='#'
25556
  GENERATE_NEEDED_FALSE=
25557
fi
25558
 
25559
 if test x$execution = x2; then
25560
  DYNAMIC_EXECUTION_TRUE=
25561
  DYNAMIC_EXECUTION_FALSE='#'
25562
else
25563
  DYNAMIC_EXECUTION_TRUE='#'
25564
  DYNAMIC_EXECUTION_FALSE=
25565
fi
25566
 
25567
 
25568
 
25569
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
25570
# CFLAGS="$CFLAGS -O4"
25571
 
25572
BUILD_DIR=`pwd`
25573
 
25574
 
25575
 
25576
 
25577
 
25578
 
25579
 
25580
 
25581
 
25582
 
25583
 
25584
 
25585
 
25586
 
25587
 
25588
 
25589
 
25590
 
25591
cat >>confdefs.h <<\_ACEOF
25592 60 jeremybenn
@%:@define HAVE_EXECUTION 1
25593 19 jeremybenn
_ACEOF
25594
 
25595
 
25596
# yuck
25597
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
25598
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
25599
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
25600
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
25601
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
25602 60 jeremybenn
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
25603 19 jeremybenn
 
25604
 
25605 60 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
25606 19 jeremybenn
 
25607
 
25608 60 jeremybenn
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
25609
case "$CPU_ARCH" in
25610
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
25611
;;
25612
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
25613
;;
25614
esac
25615
 
25616
# Makefile uses this timestamp file to record whether config.h is up to date.
25617
# AC_CONFIG_COMMANDS([default],[[
25618
# echo > stamp-h
25619
# ]],[[]])
25620 19 jeremybenn
cat >confcache <<\_ACEOF
25621
# This file is a shell script that caches the results of configure
25622
# tests run on this system so they can be shared between configure
25623
# scripts and configure runs, see configure's option --config-cache.
25624
# It is not useful on other systems.  If it contains results you don't
25625
# want to keep, you may remove or edit it.
25626
#
25627
# config.status only pays attention to the cache file if you give it
25628
# the --recheck option to rerun configure.
25629
#
25630
# `ac_cv_env_foo' variables (set or unset) will be overridden when
25631
# loading this file, other *unset* `ac_cv_foo' will be assigned the
25632
# following values.
25633
 
25634
_ACEOF
25635
 
25636
# The following way of writing the cache mishandles newlines in values,
25637
# but we know of no workaround that is simple, portable, and efficient.
25638
# So, we kill variables containing newlines.
25639
# Ultrix sh set writes to stderr and can't be redirected directly,
25640
# and sets the high bit in the cache file unless we assign to the vars.
25641
(
25642
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25643
    eval ac_val=\$$ac_var
25644
    case $ac_val in #(
25645
    *${as_nl}*)
25646
      case $ac_var in #(
25647
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25648
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25649
      esac
25650
      case $ac_var in #(
25651
      _ | IFS | as_nl) ;; #(
25652
      *) $as_unset $ac_var ;;
25653
      esac ;;
25654
    esac
25655
  done
25656
 
25657
  (set) 2>&1 |
25658
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25659
    *${as_nl}ac_space=\ *)
25660
      # `set' does not quote correctly, so add quotes (double-quote
25661
      # substitution turns \\\\ into \\, and sed turns \\ into \).
25662
      sed -n \
25663
        "s/'/'\\\\''/g;
25664
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25665
      ;; #(
25666
    *)
25667
      # `set' quotes correctly as required by POSIX, so do not add quotes.
25668
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25669
      ;;
25670
    esac |
25671
    sort
25672
) |
25673
  sed '
25674
     /^ac_cv_env_/b end
25675
     t clear
25676
     :clear
25677
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25678
     t end
25679
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25680
     :end' >>confcache
25681
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25682
  if test -w "$cache_file"; then
25683
    test "x$cache_file" != "x/dev/null" &&
25684
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25685
echo "$as_me: updating cache $cache_file" >&6;}
25686
    cat confcache >$cache_file
25687
  else
25688
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25689
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25690
  fi
25691
fi
25692
rm -f confcache
25693
 
25694
test "x$prefix" = xNONE && prefix=$ac_default_prefix
25695
# Let make expand exec_prefix.
25696
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25697
 
25698
DEFS=-DHAVE_CONFIG_H
25699
 
25700
ac_libobjs=
25701
ac_ltlibobjs=
25702
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
25703
  # 1. Remove the extension, and $U if already installed.
25704
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25705
  ac_i=`echo "$ac_i" | sed "$ac_script"`
25706
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25707
  #    will be set to the directory where LIBOBJS objects are built.
25708
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25709
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25710
done
25711
LIB@&t@OBJS=$ac_libobjs
25712
 
25713
LTLIBOBJS=$ac_ltlibobjs
25714
 
25715
 
25716
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25717
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25718
Usually this means the macro was only invoked conditionally." >&5
25719
echo "$as_me: error: conditional \"AMDEP\" was never defined.
25720
Usually this means the macro was only invoked conditionally." >&2;}
25721
   { (exit 1); exit 1; }; }
25722
fi
25723
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25724
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25725
Usually this means the macro was only invoked conditionally." >&5
25726
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25727
Usually this means the macro was only invoked conditionally." >&2;}
25728
   { (exit 1); exit 1; }; }
25729
fi
25730
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25731
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25732
Usually this means the macro was only invoked conditionally." >&5
25733
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25734
Usually this means the macro was only invoked conditionally." >&2;}
25735
   { (exit 1); exit 1; }; }
25736
fi
25737 60 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
25738
  { { echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25739
Usually this means the macro was only invoked conditionally." >&5
25740
echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25741
Usually this means the macro was only invoked conditionally." >&2;}
25742
   { (exit 1); exit 1; }; }
25743
fi
25744
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
25745
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
25746
Usually this means the macro was only invoked conditionally." >&5
25747
echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
25748
Usually this means the macro was only invoked conditionally." >&2;}
25749
   { (exit 1); exit 1; }; }
25750
fi
25751
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
25752
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
25753
Usually this means the macro was only invoked conditionally." >&5
25754
echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
25755
Usually this means the macro was only invoked conditionally." >&2;}
25756
   { (exit 1); exit 1; }; }
25757
fi
25758 19 jeremybenn
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
25759
  { { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
25760
Usually this means the macro was only invoked conditionally." >&5
25761
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
25762
Usually this means the macro was only invoked conditionally." >&2;}
25763
   { (exit 1); exit 1; }; }
25764
fi
25765
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
25766
  { { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25767
Usually this means the macro was only invoked conditionally." >&5
25768
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25769
Usually this means the macro was only invoked conditionally." >&2;}
25770
   { (exit 1); exit 1; }; }
25771
fi
25772
 
25773
: ${CONFIG_STATUS=./config.status}
25774
ac_clean_files_save=$ac_clean_files
25775
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25776
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25777
echo "$as_me: creating $CONFIG_STATUS" >&6;}
25778
cat >$CONFIG_STATUS <<_ACEOF
25779
#! $SHELL
25780
# Generated by $as_me.
25781
# Run this file to recreate the current configuration.
25782
# Compiler output produced by configure, useful for debugging
25783
# configure, is in config.log if it exists.
25784
 
25785
debug=false
25786
ac_cs_recheck=false
25787
ac_cs_silent=false
25788
SHELL=\${CONFIG_SHELL-$SHELL}
25789
_ACEOF
25790
 
25791
cat >>$CONFIG_STATUS <<\_ACEOF
25792
## --------------------- ##
25793
## M4sh Initialization.  ##
25794
## --------------------- ##
25795
 
25796
# Be more Bourne compatible
25797
DUALCASE=1; export DUALCASE # for MKS sh
25798
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25799
  emulate sh
25800
  NULLCMD=:
25801
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25802
  # is contrary to our usage.  Disable this feature.
25803
  alias -g '${1+"$@"}'='"$@"'
25804
  setopt NO_GLOB_SUBST
25805
else
25806
  case `(set -o) 2>/dev/null` in
25807
  *posix*) set -o posix ;;
25808
esac
25809
 
25810
fi
25811
 
25812
 
25813
 
25814
 
25815
# PATH needs CR
25816
# Avoid depending upon Character Ranges.
25817
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25818
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25819
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25820
as_cr_digits='0123456789'
25821
as_cr_alnum=$as_cr_Letters$as_cr_digits
25822
 
25823
# The user is always right.
25824
if test "${PATH_SEPARATOR+set}" != set; then
25825
  echo "#! /bin/sh" >conf$$.sh
25826
  echo  "exit 0"   >>conf$$.sh
25827
  chmod +x conf$$.sh
25828
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25829
    PATH_SEPARATOR=';'
25830
  else
25831
    PATH_SEPARATOR=:
25832
  fi
25833
  rm -f conf$$.sh
25834
fi
25835
 
25836
# Support unset when possible.
25837
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25838
  as_unset=unset
25839
else
25840
  as_unset=false
25841
fi
25842
 
25843
 
25844
# IFS
25845
# We need space, tab and new line, in precisely that order.  Quoting is
25846
# there to prevent editors from complaining about space-tab.
25847
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25848
# splitting by setting IFS to empty value.)
25849
as_nl='
25850
'
25851
IFS=" ""        $as_nl"
25852
 
25853
# Find who we are.  Look in the path if we contain no directory separator.
25854
case $0 in
25855
  *[\\/]* ) as_myself=$0 ;;
25856
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25857
for as_dir in $PATH
25858
do
25859
  IFS=$as_save_IFS
25860
  test -z "$as_dir" && as_dir=.
25861
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25862
done
25863
IFS=$as_save_IFS
25864
 
25865
     ;;
25866
esac
25867
# We did not find ourselves, most probably we were run as `sh COMMAND'
25868
# in which case we are not to be found in the path.
25869
if test "x$as_myself" = x; then
25870
  as_myself=$0
25871
fi
25872
if test ! -f "$as_myself"; then
25873
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25874
  { (exit 1); exit 1; }
25875
fi
25876
 
25877
# Work around bugs in pre-3.0 UWIN ksh.
25878
for as_var in ENV MAIL MAILPATH
25879
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25880
done
25881
PS1='$ '
25882
PS2='> '
25883
PS4='+ '
25884
 
25885
# NLS nuisances.
25886
for as_var in \
25887
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25888
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25889
  LC_TELEPHONE LC_TIME
25890
do
25891
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25892
    eval $as_var=C; export $as_var
25893
  else
25894
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25895
  fi
25896
done
25897
 
25898
# Required to use basename.
25899
if expr a : '\(a\)' >/dev/null 2>&1 &&
25900
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25901
  as_expr=expr
25902
else
25903
  as_expr=false
25904
fi
25905
 
25906
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25907
  as_basename=basename
25908
else
25909
  as_basename=false
25910
fi
25911
 
25912
 
25913
# Name of the executable.
25914
as_me=`$as_basename -- "$0" ||
25915
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25916
         X"$0" : 'X\(//\)$' \| \
25917
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25918
echo X/"$0" |
25919
    sed '/^.*\/\([^/][^/]*\)\/*$/{
25920
            s//\1/
25921
            q
25922
          }
25923
          /^X\/\(\/\/\)$/{
25924
            s//\1/
25925
            q
25926
          }
25927
          /^X\/\(\/\).*/{
25928
            s//\1/
25929
            q
25930
          }
25931
          s/.*/./; q'`
25932
 
25933
# CDPATH.
25934
$as_unset CDPATH
25935
 
25936
 
25937
 
25938
  as_lineno_1=$LINENO
25939
  as_lineno_2=$LINENO
25940
  test "x$as_lineno_1" != "x$as_lineno_2" &&
25941
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25942
 
25943
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25944
  # uniformly replaced by the line number.  The first 'sed' inserts a
25945
  # line-number line after each line using $LINENO; the second 'sed'
25946
  # does the real work.  The second script uses 'N' to pair each
25947
  # line-number line with the line containing $LINENO, and appends
25948
  # trailing '-' during substitution so that $LINENO is not a special
25949
  # case at line end.
25950
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25951
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
25952
  # E. McMahon (1931-1989) for sed's syntax.  :-)
25953
  sed -n '
25954
    p
25955
    /[$]LINENO/=
25956
  ' <$as_myself |
25957
    sed '
25958
      s/[$]LINENO.*/&-/
25959
      t lineno
25960
      b
25961
      :lineno
25962
      N
25963
      :loop
25964
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25965
      t loop
25966
      s/-\n.*//
25967
    ' >$as_me.lineno &&
25968
  chmod +x "$as_me.lineno" ||
25969
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25970
   { (exit 1); exit 1; }; }
25971
 
25972
  # Don't try to exec as it changes $[0], causing all sort of problems
25973
  # (the dirname of $[0] is not the place where we might find the
25974
  # original and so on.  Autoconf is especially sensitive to this).
25975
  . "./$as_me.lineno"
25976
  # Exit status is that of the last command.
25977
  exit
25978
}
25979
 
25980
 
25981
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25982
  as_dirname=dirname
25983
else
25984
  as_dirname=false
25985
fi
25986
 
25987
ECHO_C= ECHO_N= ECHO_T=
25988
case `echo -n x` in
25989
-n*)
25990
  case `echo 'x\c'` in
25991
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25992
  *)   ECHO_C='\c';;
25993
  esac;;
25994
*)
25995
  ECHO_N='-n';;
25996
esac
25997
 
25998
if expr a : '\(a\)' >/dev/null 2>&1 &&
25999
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26000
  as_expr=expr
26001
else
26002
  as_expr=false
26003
fi
26004
 
26005
rm -f conf$$ conf$$.exe conf$$.file
26006
if test -d conf$$.dir; then
26007
  rm -f conf$$.dir/conf$$.file
26008
else
26009
  rm -f conf$$.dir
26010
  mkdir conf$$.dir
26011
fi
26012
echo >conf$$.file
26013
if ln -s conf$$.file conf$$ 2>/dev/null; then
26014
  as_ln_s='ln -s'
26015
  # ... but there are two gotchas:
26016
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26017
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26018
  # In both cases, we have to default to `cp -p'.
26019
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26020
    as_ln_s='cp -p'
26021
elif ln conf$$.file conf$$ 2>/dev/null; then
26022
  as_ln_s=ln
26023
else
26024
  as_ln_s='cp -p'
26025
fi
26026
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26027
rmdir conf$$.dir 2>/dev/null
26028
 
26029
if mkdir -p . 2>/dev/null; then
26030
  as_mkdir_p=:
26031
else
26032
  test -d ./-p && rmdir ./-p
26033
  as_mkdir_p=false
26034
fi
26035
 
26036
if test -x / >/dev/null 2>&1; then
26037
  as_test_x='test -x'
26038
else
26039
  if ls -dL / >/dev/null 2>&1; then
26040
    as_ls_L_option=L
26041
  else
26042
    as_ls_L_option=
26043
  fi
26044
  as_test_x='
26045
    eval sh -c '\''
26046
      if test -d "$1"; then
26047
        test -d "$1/.";
26048
      else
26049
        case $1 in
26050
        -*)set "./$1";;
26051
        esac;
26052
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26053
        ???[sx]*):;;*)false;;esac;fi
26054
    '\'' sh
26055
  '
26056
fi
26057
as_executable_p=$as_test_x
26058
 
26059
# Sed expression to map a string onto a valid CPP name.
26060
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26061
 
26062
# Sed expression to map a string onto a valid variable name.
26063
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26064
 
26065
 
26066
exec 6>&1
26067
 
26068
# Save the log message, to keep $[0] and so on meaningful, and to
26069
# report actual input values of CONFIG_FILES etc. instead of their
26070
# values after options handling.
26071
ac_log="
26072
This file was extended by or1ksim $as_me 0.3.0, which was
26073
generated by GNU Autoconf 2.61.  Invocation command line was
26074
 
26075
  CONFIG_FILES    = $CONFIG_FILES
26076
  CONFIG_HEADERS  = $CONFIG_HEADERS
26077
  CONFIG_LINKS    = $CONFIG_LINKS
26078
  CONFIG_COMMANDS = $CONFIG_COMMANDS
26079
  $ $0 $@
26080
 
26081
on `(hostname || uname -n) 2>/dev/null | sed 1q`
26082
"
26083
 
26084
_ACEOF
26085
 
26086
cat >>$CONFIG_STATUS <<_ACEOF
26087
# Files that config.status was made for.
26088
config_files="$ac_config_files"
26089
config_headers="$ac_config_headers"
26090
config_commands="$ac_config_commands"
26091
 
26092
_ACEOF
26093
 
26094
cat >>$CONFIG_STATUS <<\_ACEOF
26095
ac_cs_usage="\
26096
\`$as_me' instantiates files from templates according to the
26097
current configuration.
26098
 
26099
Usage: $0 [OPTIONS] [FILE]...
26100
 
26101
  -h, --help       print this help, then exit
26102
  -V, --version    print version number and configuration settings, then exit
26103
  -q, --quiet      do not print progress messages
26104
  -d, --debug      don't remove temporary files
26105
      --recheck    update $as_me by reconfiguring in the same conditions
26106
  --file=FILE[:TEMPLATE]
26107
                   instantiate the configuration file FILE
26108
  --header=FILE[:TEMPLATE]
26109
                   instantiate the configuration header FILE
26110
 
26111
Configuration files:
26112
$config_files
26113
 
26114
Configuration headers:
26115
$config_headers
26116
 
26117
Configuration commands:
26118
$config_commands
26119
 
26120
Report bugs to ."
26121
 
26122
_ACEOF
26123
cat >>$CONFIG_STATUS <<_ACEOF
26124
ac_cs_version="\\
26125
or1ksim config.status 0.3.0
26126
configured by $0, generated by GNU Autoconf 2.61,
26127
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26128
 
26129
Copyright (C) 2006 Free Software Foundation, Inc.
26130
This config.status script is free software; the Free Software Foundation
26131
gives unlimited permission to copy, distribute and modify it."
26132
 
26133
ac_pwd='$ac_pwd'
26134
srcdir='$srcdir'
26135
INSTALL='$INSTALL'
26136
MKDIR_P='$MKDIR_P'
26137
_ACEOF
26138
 
26139
cat >>$CONFIG_STATUS <<\_ACEOF
26140
# If no file are specified by the user, then we need to provide default
26141
# value.  By we need to know if files were specified by the user.
26142
ac_need_defaults=:
26143
while test $# != 0
26144
do
26145
  case $1 in
26146
  --*=*)
26147
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26148
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26149
    ac_shift=:
26150
    ;;
26151
  *)
26152
    ac_option=$1
26153
    ac_optarg=$2
26154
    ac_shift=shift
26155
    ;;
26156
  esac
26157
 
26158
  case $ac_option in
26159
  # Handling of the options.
26160
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26161
    ac_cs_recheck=: ;;
26162
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26163
    echo "$ac_cs_version"; exit ;;
26164
  --debug | --debu | --deb | --de | --d | -d )
26165
    debug=: ;;
26166
  --file | --fil | --fi | --f )
26167
    $ac_shift
26168
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26169
    ac_need_defaults=false;;
26170
  --header | --heade | --head | --hea )
26171
    $ac_shift
26172
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26173
    ac_need_defaults=false;;
26174
  --he | --h)
26175
    # Conflict between --help and --header
26176
    { echo "$as_me: error: ambiguous option: $1
26177
Try \`$0 --help' for more information." >&2
26178
   { (exit 1); exit 1; }; };;
26179
  --help | --hel | -h )
26180
    echo "$ac_cs_usage"; exit ;;
26181
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26182
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26183
    ac_cs_silent=: ;;
26184
 
26185
  # This is an error.
26186
  -*) { echo "$as_me: error: unrecognized option: $1
26187
Try \`$0 --help' for more information." >&2
26188
   { (exit 1); exit 1; }; } ;;
26189
 
26190
  *) ac_config_targets="$ac_config_targets $1"
26191
     ac_need_defaults=false ;;
26192
 
26193
  esac
26194
  shift
26195
done
26196
 
26197
ac_configure_extra_args=
26198
 
26199
if $ac_cs_silent; then
26200
  exec 6>/dev/null
26201
  ac_configure_extra_args="$ac_configure_extra_args --silent"
26202
fi
26203
 
26204
_ACEOF
26205
cat >>$CONFIG_STATUS <<_ACEOF
26206
if \$ac_cs_recheck; then
26207
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26208
  CONFIG_SHELL=$SHELL
26209
  export CONFIG_SHELL
26210
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26211
fi
26212
 
26213
_ACEOF
26214
cat >>$CONFIG_STATUS <<\_ACEOF
26215
exec 5>>config.log
26216
{
26217
  echo
26218
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
26219
@%:@@%:@ Running $as_me. @%:@@%:@
26220
_ASBOX
26221
  echo "$ac_log"
26222
} >&5
26223
 
26224
_ACEOF
26225
cat >>$CONFIG_STATUS <<_ACEOF
26226
#
26227
# INIT-COMMANDS
26228
#
26229
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26230
 
26231
_ACEOF
26232
 
26233
cat >>$CONFIG_STATUS <<\_ACEOF
26234
 
26235
# Handling of arguments.
26236
for ac_config_target in $ac_config_targets
26237
do
26238
  case $ac_config_target in
26239
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26240
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26241
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26242 60 jeremybenn
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
26243 19 jeremybenn
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
26244
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
26245
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
26246
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
26247 60 jeremybenn
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
26248 19 jeremybenn
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
26249
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
26250 60 jeremybenn
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26251 19 jeremybenn
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
26252
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
26253
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
26254
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
26255
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
26256
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
26257
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
26258
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
26259
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
26260 60 jeremybenn
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
26261
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
26262 19 jeremybenn
 
26263
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26264
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26265
   { (exit 1); exit 1; }; };;
26266
  esac
26267
done
26268
 
26269
 
26270
# If the user did not use the arguments to specify the items to instantiate,
26271
# then the envvar interface is used.  Set only those that are not.
26272
# We use the long form for the default assignment because of an extremely
26273
# bizarre bug on SunOS 4.1.3.
26274
if $ac_need_defaults; then
26275
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26276
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26277
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26278
fi
26279
 
26280
# Have a temporary directory for convenience.  Make it in the build tree
26281
# simply because there is no reason against having it here, and in addition,
26282
# creating and moving files from /tmp can sometimes cause problems.
26283
# Hook for its removal unless debugging.
26284
# Note that there is a small window in which the directory will not be cleaned:
26285
# after its creation but before its name has been assigned to `$tmp'.
26286
$debug ||
26287
{
26288
  tmp=
26289
  trap 'exit_status=$?
26290
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26291
' 0
26292
  trap '{ (exit 1); exit 1; }' 1 2 13 15
26293
}
26294
# Create a (secure) tmp directory for tmp files.
26295
 
26296
{
26297
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26298
  test -n "$tmp" && test -d "$tmp"
26299
}  ||
26300
{
26301
  tmp=./conf$$-$RANDOM
26302
  (umask 077 && mkdir "$tmp")
26303
} ||
26304
{
26305
   echo "$me: cannot create a temporary directory in ." >&2
26306
   { (exit 1); exit 1; }
26307
}
26308
 
26309
#
26310
# Set up the sed scripts for CONFIG_FILES section.
26311
#
26312
 
26313
# No need to generate the scripts if there are no CONFIG_FILES.
26314
# This happens for instance when ./config.status config.h
26315
if test -n "$CONFIG_FILES"; then
26316
 
26317
_ACEOF
26318
 
26319
 
26320
 
26321
ac_delim='%!_!# '
26322
for ac_last_try in false false false false false :; do
26323
  cat >conf$$subs.sed <<_ACEOF
26324
SHELL!$SHELL$ac_delim
26325
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26326
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26327
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26328
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26329
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26330
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26331
exec_prefix!$exec_prefix$ac_delim
26332
prefix!$prefix$ac_delim
26333
program_transform_name!$program_transform_name$ac_delim
26334
bindir!$bindir$ac_delim
26335
sbindir!$sbindir$ac_delim
26336
libexecdir!$libexecdir$ac_delim
26337
datarootdir!$datarootdir$ac_delim
26338
datadir!$datadir$ac_delim
26339
sysconfdir!$sysconfdir$ac_delim
26340
sharedstatedir!$sharedstatedir$ac_delim
26341
localstatedir!$localstatedir$ac_delim
26342
includedir!$includedir$ac_delim
26343
oldincludedir!$oldincludedir$ac_delim
26344
docdir!$docdir$ac_delim
26345
infodir!$infodir$ac_delim
26346
htmldir!$htmldir$ac_delim
26347
dvidir!$dvidir$ac_delim
26348
pdfdir!$pdfdir$ac_delim
26349
psdir!$psdir$ac_delim
26350
libdir!$libdir$ac_delim
26351
localedir!$localedir$ac_delim
26352
mandir!$mandir$ac_delim
26353
DEFS!$DEFS$ac_delim
26354
ECHO_C!$ECHO_C$ac_delim
26355
ECHO_N!$ECHO_N$ac_delim
26356
ECHO_T!$ECHO_T$ac_delim
26357
LIBS!$LIBS$ac_delim
26358
build_alias!$build_alias$ac_delim
26359
host_alias!$host_alias$ac_delim
26360
target_alias!$target_alias$ac_delim
26361
build!$build$ac_delim
26362
build_cpu!$build_cpu$ac_delim
26363
build_vendor!$build_vendor$ac_delim
26364
build_os!$build_os$ac_delim
26365
host!$host$ac_delim
26366
host_cpu!$host_cpu$ac_delim
26367
host_vendor!$host_vendor$ac_delim
26368
host_os!$host_os$ac_delim
26369
target!$target$ac_delim
26370
target_cpu!$target_cpu$ac_delim
26371
target_vendor!$target_vendor$ac_delim
26372
target_os!$target_os$ac_delim
26373
CC!$CC$ac_delim
26374
CFLAGS!$CFLAGS$ac_delim
26375
LDFLAGS!$LDFLAGS$ac_delim
26376
CPPFLAGS!$CPPFLAGS$ac_delim
26377
ac_ct_CC!$ac_ct_CC$ac_delim
26378
EXEEXT!$EXEEXT$ac_delim
26379
OBJEXT!$OBJEXT$ac_delim
26380
SED!$SED$ac_delim
26381
GREP!$GREP$ac_delim
26382
EGREP!$EGREP$ac_delim
26383
LN_S!$LN_S$ac_delim
26384
ECHO!$ECHO$ac_delim
26385
AR!$AR$ac_delim
26386
RANLIB!$RANLIB$ac_delim
26387
STRIP!$STRIP$ac_delim
26388
CPP!$CPP$ac_delim
26389
CXX!$CXX$ac_delim
26390
CXXFLAGS!$CXXFLAGS$ac_delim
26391
ac_ct_CXX!$ac_ct_CXX$ac_delim
26392
CXXCPP!$CXXCPP$ac_delim
26393
F77!$F77$ac_delim
26394
FFLAGS!$FFLAGS$ac_delim
26395
ac_ct_F77!$ac_ct_F77$ac_delim
26396
LIBTOOL!$LIBTOOL$ac_delim
26397
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26398
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26399
INSTALL_DATA!$INSTALL_DATA$ac_delim
26400
am__isrc!$am__isrc$ac_delim
26401
CYGPATH_W!$CYGPATH_W$ac_delim
26402
PACKAGE!$PACKAGE$ac_delim
26403
VERSION!$VERSION$ac_delim
26404
ACLOCAL!$ACLOCAL$ac_delim
26405
AUTOCONF!$AUTOCONF$ac_delim
26406
AUTOMAKE!$AUTOMAKE$ac_delim
26407
AUTOHEADER!$AUTOHEADER$ac_delim
26408
MAKEINFO!$MAKEINFO$ac_delim
26409
install_sh!$install_sh$ac_delim
26410
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26411
mkdir_p!$mkdir_p$ac_delim
26412
AWK!$AWK$ac_delim
26413
SET_MAKE!$SET_MAKE$ac_delim
26414
am__leading_dot!$am__leading_dot$ac_delim
26415
AMTAR!$AMTAR$ac_delim
26416
am__tar!$am__tar$ac_delim
26417
am__untar!$am__untar$ac_delim
26418
DEPDIR!$DEPDIR$ac_delim
26419
am__include!$am__include$ac_delim
26420
am__quote!$am__quote$ac_delim
26421
_ACEOF
26422
 
26423
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26424
    break
26425
  elif $ac_last_try; then
26426
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26427
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26428
   { (exit 1); exit 1; }; }
26429
  else
26430
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26431
  fi
26432
done
26433
 
26434
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26435
if test -n "$ac_eof"; then
26436
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26437
  ac_eof=`expr $ac_eof + 1`
26438
fi
26439
 
26440
cat >>$CONFIG_STATUS <<_ACEOF
26441
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26442
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26443
_ACEOF
26444
sed '
26445
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26446
s/^/s,@/; s/!/@,|#_!!_#|/
26447
:n
26448
t n
26449
s/'"$ac_delim"'$/,g/; t
26450
s/$/\\/; p
26451
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26452
' >>$CONFIG_STATUS 
26453
rm -f conf$$subs.sed
26454
cat >>$CONFIG_STATUS <<_ACEOF
26455
CEOF$ac_eof
26456
_ACEOF
26457
 
26458
 
26459
ac_delim='%!_!# '
26460
for ac_last_try in false false false false false :; do
26461
  cat >conf$$subs.sed <<_ACEOF
26462
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26463
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26464
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26465
CCDEPMODE!$CCDEPMODE$ac_delim
26466
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26467
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26468
CXXDEPMODE!$CXXDEPMODE$ac_delim
26469
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26470
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26471
CPU_ARCH!$CPU_ARCH$ac_delim
26472
MAKE_SHELL!$MAKE_SHELL$ac_delim
26473 60 jeremybenn
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
26474
POW_LIB!$POW_LIB$ac_delim
26475
USE_SYS_GETOPTLONG_TRUE!$USE_SYS_GETOPTLONG_TRUE$ac_delim
26476
USE_SYS_GETOPTLONG_FALSE!$USE_SYS_GETOPTLONG_FALSE$ac_delim
26477
USE_ARGREX_TRUE!$USE_ARGREX_TRUE$ac_delim
26478
USE_ARGREX_FALSE!$USE_ARGREX_FALSE$ac_delim
26479
USE_ARGDATE_TRUE!$USE_ARGDATE_TRUE$ac_delim
26480
USE_ARGDATE_FALSE!$USE_ARGDATE_FALSE$ac_delim
26481
DEBUGFLAGS!$DEBUGFLAGS$ac_delim
26482 19 jeremybenn
GENERATE_NEEDED_TRUE!$GENERATE_NEEDED_TRUE$ac_delim
26483
GENERATE_NEEDED_FALSE!$GENERATE_NEEDED_FALSE$ac_delim
26484
DYNAMIC_EXECUTION_TRUE!$DYNAMIC_EXECUTION_TRUE$ac_delim
26485
DYNAMIC_EXECUTION_FALSE!$DYNAMIC_EXECUTION_FALSE$ac_delim
26486
BUILD_DIR!$BUILD_DIR$ac_delim
26487
LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
26488
LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
26489
LOCAL_DEFS!$LOCAL_DEFS$ac_delim
26490
ARFLAGS!$ARFLAGS$ac_delim
26491
SUMVERSION!$SUMVERSION$ac_delim
26492
TERMCAP_LIB!$TERMCAP_LIB$ac_delim
26493
INCLUDES!$INCLUDES$ac_delim
26494
LTLIBOBJS!$LTLIBOBJS$ac_delim
26495
_ACEOF
26496
 
26497 60 jeremybenn
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
26498 19 jeremybenn
    break
26499
  elif $ac_last_try; then
26500
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26501
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26502
   { (exit 1); exit 1; }; }
26503
  else
26504
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26505
  fi
26506
done
26507
 
26508
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26509
if test -n "$ac_eof"; then
26510
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26511
  ac_eof=`expr $ac_eof + 1`
26512
fi
26513
 
26514
cat >>$CONFIG_STATUS <<_ACEOF
26515
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26516
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26517
_ACEOF
26518
sed '
26519
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26520
s/^/s,@/; s/!/@,|#_!!_#|/
26521
:n
26522
t n
26523
s/'"$ac_delim"'$/,g/; t
26524
s/$/\\/; p
26525
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26526
' >>$CONFIG_STATUS 
26527
rm -f conf$$subs.sed
26528
cat >>$CONFIG_STATUS <<_ACEOF
26529
:end
26530
s/|#_!!_#|//g
26531
CEOF$ac_eof
26532
_ACEOF
26533
 
26534
 
26535
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26536
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26537
# trailing colons and then remove the whole line if VPATH becomes empty
26538
# (actually we leave an empty line to preserve line numbers).
26539
if test "x$srcdir" = x.; then
26540
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
26541
s/:*\$(srcdir):*/:/
26542
s/:*\${srcdir}:*/:/
26543
s/:*@srcdir@:*/:/
26544
s/^\([^=]*=[     ]*\):*/\1/
26545
s/:*$//
26546
s/^[^=]*=[       ]*$//
26547
}'
26548
fi
26549
 
26550
cat >>$CONFIG_STATUS <<\_ACEOF
26551
fi # test -n "$CONFIG_FILES"
26552
 
26553
 
26554
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26555
do
26556
  case $ac_tag in
26557
  :[FHLC]) ac_mode=$ac_tag; continue;;
26558
  esac
26559
  case $ac_mode$ac_tag in
26560
  :[FHL]*:*);;
26561
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26562
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26563
   { (exit 1); exit 1; }; };;
26564
  :[FH]-) ac_tag=-:-;;
26565
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26566
  esac
26567
  ac_save_IFS=$IFS
26568
  IFS=:
26569
  set x $ac_tag
26570
  IFS=$ac_save_IFS
26571
  shift
26572
  ac_file=$1
26573
  shift
26574
 
26575
  case $ac_mode in
26576
  :L) ac_source=$1;;
26577
  :[FH])
26578
    ac_file_inputs=
26579
    for ac_f
26580
    do
26581
      case $ac_f in
26582
      -) ac_f="$tmp/stdin";;
26583
      *) # Look for the file first in the build tree, then in the source tree
26584
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
26585
         # because $ac_f cannot contain `:'.
26586
         test -f "$ac_f" ||
26587
           case $ac_f in
26588
           [\\/$]*) false;;
26589
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26590
           esac ||
26591
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26592
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26593
   { (exit 1); exit 1; }; };;
26594
      esac
26595
      ac_file_inputs="$ac_file_inputs $ac_f"
26596
    done
26597
 
26598
    # Let's still pretend it is `configure' which instantiates (i.e., don't
26599
    # use $as_me), people would be surprised to read:
26600
    #    /* config.h.  Generated by config.status.  */
26601
    configure_input="Generated from "`IFS=:
26602
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26603
    if test x"$ac_file" != x-; then
26604
      configure_input="$ac_file.  $configure_input"
26605
      { echo "$as_me:$LINENO: creating $ac_file" >&5
26606
echo "$as_me: creating $ac_file" >&6;}
26607
    fi
26608
 
26609
    case $ac_tag in
26610
    *:-:* | *:-) cat >"$tmp/stdin";;
26611
    esac
26612
    ;;
26613
  esac
26614
 
26615
  ac_dir=`$as_dirname -- "$ac_file" ||
26616
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26617
         X"$ac_file" : 'X\(//\)[^/]' \| \
26618
         X"$ac_file" : 'X\(//\)$' \| \
26619
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26620
echo X"$ac_file" |
26621
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26622
            s//\1/
26623
            q
26624
          }
26625
          /^X\(\/\/\)[^/].*/{
26626
            s//\1/
26627
            q
26628
          }
26629
          /^X\(\/\/\)$/{
26630
            s//\1/
26631
            q
26632
          }
26633
          /^X\(\/\).*/{
26634
            s//\1/
26635
            q
26636
          }
26637
          s/.*/./; q'`
26638
  { as_dir="$ac_dir"
26639
  case $as_dir in #(
26640
  -*) as_dir=./$as_dir;;
26641
  esac
26642
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26643
    as_dirs=
26644
    while :; do
26645
      case $as_dir in #(
26646
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26647
      *) as_qdir=$as_dir;;
26648
      esac
26649
      as_dirs="'$as_qdir' $as_dirs"
26650
      as_dir=`$as_dirname -- "$as_dir" ||
26651
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26652
         X"$as_dir" : 'X\(//\)[^/]' \| \
26653
         X"$as_dir" : 'X\(//\)$' \| \
26654
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26655
echo X"$as_dir" |
26656
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26657
            s//\1/
26658
            q
26659
          }
26660
          /^X\(\/\/\)[^/].*/{
26661
            s//\1/
26662
            q
26663
          }
26664
          /^X\(\/\/\)$/{
26665
            s//\1/
26666
            q
26667
          }
26668
          /^X\(\/\).*/{
26669
            s//\1/
26670
            q
26671
          }
26672
          s/.*/./; q'`
26673
      test -d "$as_dir" && break
26674
    done
26675
    test -z "$as_dirs" || eval "mkdir $as_dirs"
26676
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26677
echo "$as_me: error: cannot create directory $as_dir" >&2;}
26678
   { (exit 1); exit 1; }; }; }
26679
  ac_builddir=.
26680
 
26681
case "$ac_dir" in
26682
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26683
*)
26684
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26685
  # A ".." for each directory in $ac_dir_suffix.
26686
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26687
  case $ac_top_builddir_sub in
26688
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26689
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26690
  esac ;;
26691
esac
26692
ac_abs_top_builddir=$ac_pwd
26693
ac_abs_builddir=$ac_pwd$ac_dir_suffix
26694
# for backward compatibility:
26695
ac_top_builddir=$ac_top_build_prefix
26696
 
26697
case $srcdir in
26698
  .)  # We are building in place.
26699
    ac_srcdir=.
26700
    ac_top_srcdir=$ac_top_builddir_sub
26701
    ac_abs_top_srcdir=$ac_pwd ;;
26702
  [\\/]* | ?:[\\/]* )  # Absolute name.
26703
    ac_srcdir=$srcdir$ac_dir_suffix;
26704
    ac_top_srcdir=$srcdir
26705
    ac_abs_top_srcdir=$srcdir ;;
26706
  *) # Relative name.
26707
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26708
    ac_top_srcdir=$ac_top_build_prefix$srcdir
26709
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26710
esac
26711
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26712
 
26713
 
26714
  case $ac_mode in
26715
  :F)
26716
  #
26717
  # CONFIG_FILE
26718
  #
26719
 
26720
  case $INSTALL in
26721
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26722
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26723
  esac
26724
  ac_MKDIR_P=$MKDIR_P
26725
  case $MKDIR_P in
26726
  [\\/$]* | ?:[\\/]* ) ;;
26727
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26728
  esac
26729
_ACEOF
26730
 
26731
cat >>$CONFIG_STATUS <<\_ACEOF
26732
# If the template does not know about datarootdir, expand it.
26733
# FIXME: This hack should be removed a few years after 2.60.
26734
ac_datarootdir_hack=; ac_datarootdir_seen=
26735
 
26736
case `sed -n '/datarootdir/ {
26737
  p
26738
  q
26739
}
26740
/@datadir@/p
26741
/@docdir@/p
26742
/@infodir@/p
26743
/@localedir@/p
26744
/@mandir@/p
26745
' $ac_file_inputs` in
26746
*datarootdir*) ac_datarootdir_seen=yes;;
26747
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26748
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26749
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26750
_ACEOF
26751
cat >>$CONFIG_STATUS <<_ACEOF
26752
  ac_datarootdir_hack='
26753
  s&@datadir@&$datadir&g
26754
  s&@docdir@&$docdir&g
26755
  s&@infodir@&$infodir&g
26756
  s&@localedir@&$localedir&g
26757
  s&@mandir@&$mandir&g
26758
    s&\\\${datarootdir}&$datarootdir&g' ;;
26759
esac
26760
_ACEOF
26761
 
26762
# Neutralize VPATH when `$srcdir' = `.'.
26763
# Shell code in configure.ac might set extrasub.
26764
# FIXME: do we really want to maintain this feature?
26765
cat >>$CONFIG_STATUS <<_ACEOF
26766
  sed "$ac_vpsub
26767
$extrasub
26768
_ACEOF
26769
cat >>$CONFIG_STATUS <<\_ACEOF
26770
:t
26771
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26772
s&@configure_input@&$configure_input&;t t
26773
s&@top_builddir@&$ac_top_builddir_sub&;t t
26774
s&@srcdir@&$ac_srcdir&;t t
26775
s&@abs_srcdir@&$ac_abs_srcdir&;t t
26776
s&@top_srcdir@&$ac_top_srcdir&;t t
26777
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26778
s&@builddir@&$ac_builddir&;t t
26779
s&@abs_builddir@&$ac_abs_builddir&;t t
26780
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26781
s&@INSTALL@&$ac_INSTALL&;t t
26782
s&@MKDIR_P@&$ac_MKDIR_P&;t t
26783
$ac_datarootdir_hack
26784
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26785
 
26786
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26787
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26788
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26789
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26790
which seems to be undefined.  Please make sure it is defined." >&5
26791
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26792
which seems to be undefined.  Please make sure it is defined." >&2;}
26793
 
26794
  rm -f "$tmp/stdin"
26795
  case $ac_file in
26796
  -) cat "$tmp/out"; rm -f "$tmp/out";;
26797
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26798
  esac
26799
 ;;
26800
  :H)
26801
  #
26802
  # CONFIG_HEADER
26803
  #
26804
_ACEOF
26805
 
26806
# Transform confdefs.h into a sed script `conftest.defines', that
26807
# substitutes the proper values into config.h.in to produce config.h.
26808
rm -f conftest.defines conftest.tail
26809
# First, append a space to every undef/define line, to ease matching.
26810
echo 's/$/ /' >conftest.defines
26811
# Then, protect against being on the right side of a sed subst, or in
26812
# an unquoted here document, in config.status.  If some macros were
26813
# called several times there might be several #defines for the same
26814
# symbol, which is useless.  But do not sort them, since the last
26815
# AC_DEFINE must be honored.
26816
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26817
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26818
# NAME is the cpp macro being defined, VALUE is the value it is being given.
26819
# PARAMS is the parameter list in the macro definition--in most cases, it's
26820
# just an empty string.
26821
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26822
ac_dB='\\)[      (].*,\\1define\\2'
26823
ac_dC=' '
26824
ac_dD=' ,'
26825
 
26826
uniq confdefs.h |
26827
  sed -n '
26828
        t rset
26829
        :rset
26830
        s/^[     ]*#[    ]*define[       ][      ]*//
26831
        t ok
26832
        d
26833
        :ok
26834
        s/[\\&,]/\\&/g
26835
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26836
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26837
  ' >>conftest.defines
26838
 
26839
# Remove the space that was appended to ease matching.
26840
# Then replace #undef with comments.  This is necessary, for
26841
# example, in the case of _POSIX_SOURCE, which is predefined and required
26842
# on some systems where configure will not decide to define it.
26843
# (The regexp can be short, since the line contains either #define or #undef.)
26844
echo 's/ $//
26845
s,^[     #]*u.*,/* & */,' >>conftest.defines
26846
 
26847
# Break up conftest.defines:
26848
ac_max_sed_lines=50
26849
 
26850
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26851
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26852
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26853
# et cetera.
26854
ac_in='$ac_file_inputs'
26855
ac_out='"$tmp/out1"'
26856
ac_nxt='"$tmp/out2"'
26857
 
26858
while :
26859
do
26860
  # Write a here document:
26861
    cat >>$CONFIG_STATUS <<_ACEOF
26862
    # First, check the format of the line:
26863
    cat >"\$tmp/defines.sed" <<\\CEOF
26864
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26865
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26866
b
26867
:def
26868
_ACEOF
26869
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26870
  echo 'CEOF
26871
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26872
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26873
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26874
  grep . conftest.tail >/dev/null || break
26875
  rm -f conftest.defines
26876
  mv conftest.tail conftest.defines
26877
done
26878
rm -f conftest.defines conftest.tail
26879
 
26880
echo "ac_result=$ac_in" >>$CONFIG_STATUS
26881
cat >>$CONFIG_STATUS <<\_ACEOF
26882
  if test x"$ac_file" != x-; then
26883
    echo "/* $configure_input  */" >"$tmp/config.h"
26884
    cat "$ac_result" >>"$tmp/config.h"
26885
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26886
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26887
echo "$as_me: $ac_file is unchanged" >&6;}
26888
    else
26889
      rm -f $ac_file
26890
      mv "$tmp/config.h" $ac_file
26891
    fi
26892
  else
26893
    echo "/* $configure_input  */"
26894
    cat "$ac_result"
26895
  fi
26896
  rm -f "$tmp/out12"
26897
# Compute $ac_file's index in $config_headers.
26898
_am_arg=$ac_file
26899
_am_stamp_count=1
26900
for _am_header in $config_headers :; do
26901
  case $_am_header in
26902
    $_am_arg | $_am_arg:* )
26903
      break ;;
26904
    * )
26905
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26906
  esac
26907
done
26908
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26909
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26910
         X"$_am_arg" : 'X\(//\)[^/]' \| \
26911
         X"$_am_arg" : 'X\(//\)$' \| \
26912
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26913
echo X"$_am_arg" |
26914
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26915
            s//\1/
26916
            q
26917
          }
26918
          /^X\(\/\/\)[^/].*/{
26919
            s//\1/
26920
            q
26921
          }
26922
          /^X\(\/\/\)$/{
26923
            s//\1/
26924
            q
26925
          }
26926
          /^X\(\/\).*/{
26927
            s//\1/
26928
            q
26929
          }
26930
          s/.*/./; q'`/stamp-h$_am_stamp_count
26931
 ;;
26932
 
26933
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26934
echo "$as_me: executing $ac_file commands" >&6;}
26935
 ;;
26936
  esac
26937
 
26938
 
26939
  case $ac_file$ac_mode in
26940
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26941
  # Strip MF so we end up with the name of the file.
26942
  mf=`echo "$mf" | sed -e 's/:.*$//'`
26943
  # Check whether this is an Automake generated Makefile or not.
26944
  # We used to match only the files named `Makefile.in', but
26945
  # some people rename them; so instead we look at the file content.
26946
  # Grep'ing the first line is not enough: some people post-process
26947
  # each Makefile.in and add a new line on top of each file to say so.
26948
  # Grep'ing the whole file is not good either: AIX grep has a line
26949
  # limit of 2048, but all sed's we know have understand at least 4000.
26950
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26951
    dirpart=`$as_dirname -- "$mf" ||
26952
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26953
         X"$mf" : 'X\(//\)[^/]' \| \
26954
         X"$mf" : 'X\(//\)$' \| \
26955
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26956
echo X"$mf" |
26957
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26958
            s//\1/
26959
            q
26960
          }
26961
          /^X\(\/\/\)[^/].*/{
26962
            s//\1/
26963
            q
26964
          }
26965
          /^X\(\/\/\)$/{
26966
            s//\1/
26967
            q
26968
          }
26969
          /^X\(\/\).*/{
26970
            s//\1/
26971
            q
26972
          }
26973
          s/.*/./; q'`
26974
  else
26975
    continue
26976
  fi
26977
  # Extract the definition of DEPDIR, am__include, and am__quote
26978
  # from the Makefile without running `make'.
26979
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26980
  test -z "$DEPDIR" && continue
26981
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
26982
  test -z "am__include" && continue
26983
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26984
  # When using ansi2knr, U may be empty or an underscore; expand it
26985
  U=`sed -n 's/^U = //p' < "$mf"`
26986
  # Find all dependency output files, they are included files with
26987
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
26988
  # simplest approach to changing $(DEPDIR) to its actual value in the
26989
  # expansion.
26990
  for file in `sed -n "
26991
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26992
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26993
    # Make sure the directory exists.
26994
    test -f "$dirpart/$file" && continue
26995
    fdir=`$as_dirname -- "$file" ||
26996
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26997
         X"$file" : 'X\(//\)[^/]' \| \
26998
         X"$file" : 'X\(//\)$' \| \
26999
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27000
echo X"$file" |
27001
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27002
            s//\1/
27003
            q
27004
          }
27005
          /^X\(\/\/\)[^/].*/{
27006
            s//\1/
27007
            q
27008
          }
27009
          /^X\(\/\/\)$/{
27010
            s//\1/
27011
            q
27012
          }
27013
          /^X\(\/\).*/{
27014
            s//\1/
27015
            q
27016
          }
27017
          s/.*/./; q'`
27018
    { as_dir=$dirpart/$fdir
27019
  case $as_dir in #(
27020
  -*) as_dir=./$as_dir;;
27021
  esac
27022
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27023
    as_dirs=
27024
    while :; do
27025
      case $as_dir in #(
27026
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27027
      *) as_qdir=$as_dir;;
27028
      esac
27029
      as_dirs="'$as_qdir' $as_dirs"
27030
      as_dir=`$as_dirname -- "$as_dir" ||
27031
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27032
         X"$as_dir" : 'X\(//\)[^/]' \| \
27033
         X"$as_dir" : 'X\(//\)$' \| \
27034
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27035
echo X"$as_dir" |
27036
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27037
            s//\1/
27038
            q
27039
          }
27040
          /^X\(\/\/\)[^/].*/{
27041
            s//\1/
27042
            q
27043
          }
27044
          /^X\(\/\/\)$/{
27045
            s//\1/
27046
            q
27047
          }
27048
          /^X\(\/\).*/{
27049
            s//\1/
27050
            q
27051
          }
27052
          s/.*/./; q'`
27053
      test -d "$as_dir" && break
27054
    done
27055
    test -z "$as_dirs" || eval "mkdir $as_dirs"
27056
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27057
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27058
   { (exit 1); exit 1; }; }; }
27059
    # echo "creating $dirpart/$file"
27060
    echo '# dummy' > "$dirpart/$file"
27061
  done
27062
done
27063
 ;;
27064
 
27065
  esac
27066
done # for ac_tag
27067
 
27068
 
27069
{ (exit 0); exit 0; }
27070
_ACEOF
27071
chmod +x $CONFIG_STATUS
27072
ac_clean_files=$ac_clean_files_save
27073
 
27074
 
27075
# configure is writing to config.log, and then calls config.status.
27076
# config.status does its own redirection, appending to config.log.
27077
# Unfortunately, on DOS this fails, as config.log is still kept open
27078
# by configure, so config.status won't be able to write to it; its
27079
# output is simply discarded.  So we exec the FD to /dev/null,
27080
# effectively closing config.log, so it can be properly (re)opened and
27081
# appended to by config.status.  When coming back to configure, we
27082
# need to make the FD available again.
27083
if test "$no_create" != yes; then
27084
  ac_cs_success=:
27085
  ac_config_status_args=
27086
  test "$silent" = yes &&
27087
    ac_config_status_args="$ac_config_status_args --quiet"
27088
  exec 5>/dev/null
27089
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27090
  exec 5>>config.log
27091
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27092
  # would make configure fail if this is the last instruction.
27093
  $ac_cs_success || { (exit 1); exit 1; }
27094
fi
27095
 

powered by: WebSVN 2.1.0

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