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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [autom4te.cache/] [output.3] - Blame information for rev 483

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

Line No. Rev Author Line
1 19 jeremybenn
@%:@! /bin/sh
2
@%:@ From configure.ac Id: configure.ac,v 1.1 2008/10/12 17:27:52 jeremybennett Exp  using automake version AC_ACVERSION.
3
@%:@ Guess values for system-dependent variables and create Makefiles.
4
@%:@ Generated by GNU Autoconf 2.61 for or1ksim 0.3.0rc1.
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.0rc1'
733
PACKAGE_STRING='or1ksim 0.3.0rc1'
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
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
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.0rc1 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.0rc1:";;
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
  --enable-debug          enable library debugging symbols
1513
 
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.0rc1
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.0rc1, 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
      libsuff=64
3836
      case $host in
3837
        x86_64-*kfreebsd*-gnu)
3838
          LD="${LD-ld} -m elf_x86_64_fbsd"
3839
          ;;
3840
        x86_64-*linux*)
3841
          LD="${LD-ld} -m elf_x86_64"
3842
          ;;
3843
        ppc*-*linux*|powerpc*-*linux*)
3844
          LD="${LD-ld} -m elf64ppc"
3845
          ;;
3846
        s390*-*linux*)
3847
          LD="${LD-ld} -m elf64_s390"
3848
          ;;
3849
        sparc*-*linux*)
3850
          LD="${LD-ld} -m elf64_sparc"
3851
          ;;
3852
      esac
3853
      ;;
3854
    esac
3855
  fi
3856
  rm -rf conftest*
3857
  ;;
3858
 
3859
*-*-sco3.2v5*)
3860
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3861
  SAVE_CFLAGS="$CFLAGS"
3862
  CFLAGS="$CFLAGS -belf"
3863
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3864
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3865
if test "${lt_cv_cc_needs_belf+set}" = set; then
3866
  echo $ECHO_N "(cached) $ECHO_C" >&6
3867
else
3868
  ac_ext=c
3869
ac_cpp='$CPP $CPPFLAGS'
3870
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
 
3874
     cat >conftest.$ac_ext <<_ACEOF
3875
/* confdefs.h.  */
3876
_ACEOF
3877
cat confdefs.h >>conftest.$ac_ext
3878
cat >>conftest.$ac_ext <<_ACEOF
3879
/* end confdefs.h.  */
3880
 
3881
int
3882
main ()
3883
{
3884
 
3885
  ;
3886
  return 0;
3887
}
3888
_ACEOF
3889
rm -f conftest.$ac_objext conftest$ac_exeext
3890
if { (ac_try="$ac_link"
3891
case "(($ac_try" in
3892
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893
  *) ac_try_echo=$ac_try;;
3894
esac
3895
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896
  (eval "$ac_link") 2>conftest.er1
3897
  ac_status=$?
3898
  grep -v '^ *+' conftest.er1 >conftest.err
3899
  rm -f conftest.er1
3900
  cat conftest.err >&5
3901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902
  (exit $ac_status); } && {
3903
         test -z "$ac_c_werror_flag" ||
3904
         test ! -s conftest.err
3905
       } && test -s conftest$ac_exeext &&
3906
       $as_test_x conftest$ac_exeext; then
3907
  lt_cv_cc_needs_belf=yes
3908
else
3909
  echo "$as_me: failed program was:" >&5
3910
sed 's/^/| /' conftest.$ac_ext >&5
3911
 
3912
        lt_cv_cc_needs_belf=no
3913
fi
3914
 
3915
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3916
      conftest$ac_exeext conftest.$ac_ext
3917
     ac_ext=c
3918
ac_cpp='$CPP $CPPFLAGS'
3919
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
 
3923
fi
3924
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3925
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3926
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3927
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3928
    CFLAGS="$SAVE_CFLAGS"
3929
  fi
3930
  ;;
3931
sparc*-*solaris*)
3932
  # Find out which ABI we are using.
3933
  echo 'int i;' > conftest.$ac_ext
3934
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935
  (eval $ac_compile) 2>&5
3936
  ac_status=$?
3937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938
  (exit $ac_status); }; then
3939
    case `/usr/bin/file conftest.o` in
3940
    *64-bit*)
3941
      case $lt_cv_prog_gnu_ld in
3942
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3943
      *)    LD="${LD-ld} -64" ;;
3944
      esac
3945
      ;;
3946
    esac
3947
  fi
3948
  rm -rf conftest*
3949
  ;;
3950
 
3951
 
3952
esac
3953
 
3954
need_locks="$enable_libtool_lock"
3955
 
3956
 
3957
ac_ext=c
3958
ac_cpp='$CPP $CPPFLAGS'
3959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3963
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3964
# On Suns, sometimes $CPP names a directory.
3965
if test -n "$CPP" && test -d "$CPP"; then
3966
  CPP=
3967
fi
3968
if test -z "$CPP"; then
3969
  if test "${ac_cv_prog_CPP+set}" = set; then
3970
  echo $ECHO_N "(cached) $ECHO_C" >&6
3971
else
3972
      # Double quotes because CPP needs to be expanded
3973
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3974
    do
3975
      ac_preproc_ok=false
3976
for ac_c_preproc_warn_flag in '' yes
3977
do
3978
  # Use a header file that comes with gcc, so configuring glibc
3979
  # with a fresh cross-compiler works.
3980
  # Prefer  to  if __STDC__ is defined, since
3981
  #  exists even on freestanding compilers.
3982
  # On the NeXT, cc -E runs the code through the compiler's parser,
3983
  # not just through cpp. "Syntax error" is here to catch this case.
3984
  cat >conftest.$ac_ext <<_ACEOF
3985
/* confdefs.h.  */
3986
_ACEOF
3987
cat confdefs.h >>conftest.$ac_ext
3988
cat >>conftest.$ac_ext <<_ACEOF
3989
/* end confdefs.h.  */
3990
@%:@ifdef __STDC__
3991
@%:@ include 
3992
@%:@else
3993
@%:@ include 
3994
@%:@endif
3995
                     Syntax error
3996
_ACEOF
3997
if { (ac_try="$ac_cpp conftest.$ac_ext"
3998
case "(($ac_try" in
3999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000
  *) ac_try_echo=$ac_try;;
4001
esac
4002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4004
  ac_status=$?
4005
  grep -v '^ *+' conftest.er1 >conftest.err
4006
  rm -f conftest.er1
4007
  cat conftest.err >&5
4008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009
  (exit $ac_status); } >/dev/null && {
4010
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4011
         test ! -s conftest.err
4012
       }; then
4013
  :
4014
else
4015
  echo "$as_me: failed program was:" >&5
4016
sed 's/^/| /' conftest.$ac_ext >&5
4017
 
4018
  # Broken: fails on valid input.
4019
continue
4020
fi
4021
 
4022
rm -f conftest.err conftest.$ac_ext
4023
 
4024
  # OK, works on sane cases.  Now check whether nonexistent headers
4025
  # can be detected and how.
4026
  cat >conftest.$ac_ext <<_ACEOF
4027
/* confdefs.h.  */
4028
_ACEOF
4029
cat confdefs.h >>conftest.$ac_ext
4030
cat >>conftest.$ac_ext <<_ACEOF
4031
/* end confdefs.h.  */
4032
@%:@include 
4033
_ACEOF
4034
if { (ac_try="$ac_cpp conftest.$ac_ext"
4035
case "(($ac_try" in
4036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037
  *) ac_try_echo=$ac_try;;
4038
esac
4039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4041
  ac_status=$?
4042
  grep -v '^ *+' conftest.er1 >conftest.err
4043
  rm -f conftest.er1
4044
  cat conftest.err >&5
4045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046
  (exit $ac_status); } >/dev/null && {
4047
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4048
         test ! -s conftest.err
4049
       }; then
4050
  # Broken: success on invalid input.
4051
continue
4052
else
4053
  echo "$as_me: failed program was:" >&5
4054
sed 's/^/| /' conftest.$ac_ext >&5
4055
 
4056
  # Passes both tests.
4057
ac_preproc_ok=:
4058
break
4059
fi
4060
 
4061
rm -f conftest.err conftest.$ac_ext
4062
 
4063
done
4064
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065
rm -f conftest.err conftest.$ac_ext
4066
if $ac_preproc_ok; then
4067
  break
4068
fi
4069
 
4070
    done
4071
    ac_cv_prog_CPP=$CPP
4072
 
4073
fi
4074
  CPP=$ac_cv_prog_CPP
4075
else
4076
  ac_cv_prog_CPP=$CPP
4077
fi
4078
{ echo "$as_me:$LINENO: result: $CPP" >&5
4079
echo "${ECHO_T}$CPP" >&6; }
4080
ac_preproc_ok=false
4081
for ac_c_preproc_warn_flag in '' yes
4082
do
4083
  # Use a header file that comes with gcc, so configuring glibc
4084
  # with a fresh cross-compiler works.
4085
  # Prefer  to  if __STDC__ is defined, since
4086
  #  exists even on freestanding compilers.
4087
  # On the NeXT, cc -E runs the code through the compiler's parser,
4088
  # not just through cpp. "Syntax error" is here to catch this case.
4089
  cat >conftest.$ac_ext <<_ACEOF
4090
/* confdefs.h.  */
4091
_ACEOF
4092
cat confdefs.h >>conftest.$ac_ext
4093
cat >>conftest.$ac_ext <<_ACEOF
4094
/* end confdefs.h.  */
4095
@%:@ifdef __STDC__
4096
@%:@ include 
4097
@%:@else
4098
@%:@ include 
4099
@%:@endif
4100
                     Syntax error
4101
_ACEOF
4102
if { (ac_try="$ac_cpp conftest.$ac_ext"
4103
case "(($ac_try" in
4104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105
  *) ac_try_echo=$ac_try;;
4106
esac
4107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109
  ac_status=$?
4110
  grep -v '^ *+' conftest.er1 >conftest.err
4111
  rm -f conftest.er1
4112
  cat conftest.err >&5
4113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114
  (exit $ac_status); } >/dev/null && {
4115
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116
         test ! -s conftest.err
4117
       }; then
4118
  :
4119
else
4120
  echo "$as_me: failed program was:" >&5
4121
sed 's/^/| /' conftest.$ac_ext >&5
4122
 
4123
  # Broken: fails on valid input.
4124
continue
4125
fi
4126
 
4127
rm -f conftest.err conftest.$ac_ext
4128
 
4129
  # OK, works on sane cases.  Now check whether nonexistent headers
4130
  # can be detected and how.
4131
  cat >conftest.$ac_ext <<_ACEOF
4132
/* confdefs.h.  */
4133
_ACEOF
4134
cat confdefs.h >>conftest.$ac_ext
4135
cat >>conftest.$ac_ext <<_ACEOF
4136
/* end confdefs.h.  */
4137
@%:@include 
4138
_ACEOF
4139
if { (ac_try="$ac_cpp conftest.$ac_ext"
4140
case "(($ac_try" in
4141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142
  *) ac_try_echo=$ac_try;;
4143
esac
4144
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4146
  ac_status=$?
4147
  grep -v '^ *+' conftest.er1 >conftest.err
4148
  rm -f conftest.er1
4149
  cat conftest.err >&5
4150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
  (exit $ac_status); } >/dev/null && {
4152
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4153
         test ! -s conftest.err
4154
       }; then
4155
  # Broken: success on invalid input.
4156
continue
4157
else
4158
  echo "$as_me: failed program was:" >&5
4159
sed 's/^/| /' conftest.$ac_ext >&5
4160
 
4161
  # Passes both tests.
4162
ac_preproc_ok=:
4163
break
4164
fi
4165
 
4166
rm -f conftest.err conftest.$ac_ext
4167
 
4168
done
4169
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170
rm -f conftest.err conftest.$ac_ext
4171
if $ac_preproc_ok; then
4172
  :
4173
else
4174
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4175
See \`config.log' for more details." >&5
4176
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4177
See \`config.log' for more details." >&2;}
4178
   { (exit 1); exit 1; }; }
4179
fi
4180
 
4181
ac_ext=c
4182
ac_cpp='$CPP $CPPFLAGS'
4183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186
 
4187
 
4188
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4189
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4190
if test "${ac_cv_header_stdc+set}" = set; then
4191
  echo $ECHO_N "(cached) $ECHO_C" >&6
4192
else
4193
  cat >conftest.$ac_ext <<_ACEOF
4194
/* confdefs.h.  */
4195
_ACEOF
4196
cat confdefs.h >>conftest.$ac_ext
4197
cat >>conftest.$ac_ext <<_ACEOF
4198
/* end confdefs.h.  */
4199
#include 
4200
#include 
4201
#include 
4202
#include 
4203
 
4204
int
4205
main ()
4206
{
4207
 
4208
  ;
4209
  return 0;
4210
}
4211
_ACEOF
4212
rm -f conftest.$ac_objext
4213
if { (ac_try="$ac_compile"
4214
case "(($ac_try" in
4215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216
  *) ac_try_echo=$ac_try;;
4217
esac
4218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219
  (eval "$ac_compile") 2>conftest.er1
4220
  ac_status=$?
4221
  grep -v '^ *+' conftest.er1 >conftest.err
4222
  rm -f conftest.er1
4223
  cat conftest.err >&5
4224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225
  (exit $ac_status); } && {
4226
         test -z "$ac_c_werror_flag" ||
4227
         test ! -s conftest.err
4228
       } && test -s conftest.$ac_objext; then
4229
  ac_cv_header_stdc=yes
4230
else
4231
  echo "$as_me: failed program was:" >&5
4232
sed 's/^/| /' conftest.$ac_ext >&5
4233
 
4234
        ac_cv_header_stdc=no
4235
fi
4236
 
4237
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238
 
4239
if test $ac_cv_header_stdc = yes; then
4240
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4241
  cat >conftest.$ac_ext <<_ACEOF
4242
/* confdefs.h.  */
4243
_ACEOF
4244
cat confdefs.h >>conftest.$ac_ext
4245
cat >>conftest.$ac_ext <<_ACEOF
4246
/* end confdefs.h.  */
4247
#include 
4248
 
4249
_ACEOF
4250
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4251
  $EGREP "memchr" >/dev/null 2>&1; then
4252
  :
4253
else
4254
  ac_cv_header_stdc=no
4255
fi
4256
rm -f conftest*
4257
 
4258
fi
4259
 
4260
if test $ac_cv_header_stdc = yes; then
4261
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4262
  cat >conftest.$ac_ext <<_ACEOF
4263
/* confdefs.h.  */
4264
_ACEOF
4265
cat confdefs.h >>conftest.$ac_ext
4266
cat >>conftest.$ac_ext <<_ACEOF
4267
/* end confdefs.h.  */
4268
#include 
4269
 
4270
_ACEOF
4271
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272
  $EGREP "free" >/dev/null 2>&1; then
4273
  :
4274
else
4275
  ac_cv_header_stdc=no
4276
fi
4277
rm -f conftest*
4278
 
4279
fi
4280
 
4281
if test $ac_cv_header_stdc = yes; then
4282
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4283
  if test "$cross_compiling" = yes; then
4284
  :
4285
else
4286
  cat >conftest.$ac_ext <<_ACEOF
4287
/* confdefs.h.  */
4288
_ACEOF
4289
cat confdefs.h >>conftest.$ac_ext
4290
cat >>conftest.$ac_ext <<_ACEOF
4291
/* end confdefs.h.  */
4292
#include 
4293
#include 
4294
#if ((' ' & 0x0FF) == 0x020)
4295
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4296
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4297
#else
4298
# define ISLOWER(c) \
4299
                   (('a' <= (c) && (c) <= 'i') \
4300
                     || ('j' <= (c) && (c) <= 'r') \
4301
                     || ('s' <= (c) && (c) <= 'z'))
4302
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4303
#endif
4304
 
4305
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4306
int
4307
main ()
4308
{
4309
  int i;
4310
  for (i = 0; i < 256; i++)
4311
    if (XOR (islower (i), ISLOWER (i))
4312
        || toupper (i) != TOUPPER (i))
4313
      return 2;
4314
  return 0;
4315
}
4316
_ACEOF
4317
rm -f conftest$ac_exeext
4318
if { (ac_try="$ac_link"
4319
case "(($ac_try" in
4320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321
  *) ac_try_echo=$ac_try;;
4322
esac
4323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324
  (eval "$ac_link") 2>&5
4325
  ac_status=$?
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328
  { (case "(($ac_try" in
4329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330
  *) ac_try_echo=$ac_try;;
4331
esac
4332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333
  (eval "$ac_try") 2>&5
4334
  ac_status=$?
4335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
  (exit $ac_status); }; }; then
4337
  :
4338
else
4339
  echo "$as_me: program exited with status $ac_status" >&5
4340
echo "$as_me: failed program was:" >&5
4341
sed 's/^/| /' conftest.$ac_ext >&5
4342
 
4343
( exit $ac_status )
4344
ac_cv_header_stdc=no
4345
fi
4346
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4347
fi
4348
 
4349
 
4350
fi
4351
fi
4352
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4353
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4354
if test $ac_cv_header_stdc = yes; then
4355
 
4356
cat >>confdefs.h <<\_ACEOF
4357
@%:@define STDC_HEADERS 1
4358
_ACEOF
4359
 
4360
fi
4361
 
4362
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4363
 
4364
 
4365
 
4366
 
4367
 
4368
 
4369
 
4370
 
4371
 
4372
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4373
                  inttypes.h stdint.h unistd.h
4374
do
4375
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4376
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4377
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4378
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4379
  echo $ECHO_N "(cached) $ECHO_C" >&6
4380
else
4381
  cat >conftest.$ac_ext <<_ACEOF
4382
/* confdefs.h.  */
4383
_ACEOF
4384
cat confdefs.h >>conftest.$ac_ext
4385
cat >>conftest.$ac_ext <<_ACEOF
4386
/* end confdefs.h.  */
4387
$ac_includes_default
4388
 
4389
@%:@include <$ac_header>
4390
_ACEOF
4391
rm -f conftest.$ac_objext
4392
if { (ac_try="$ac_compile"
4393
case "(($ac_try" in
4394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395
  *) ac_try_echo=$ac_try;;
4396
esac
4397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398
  (eval "$ac_compile") 2>conftest.er1
4399
  ac_status=$?
4400
  grep -v '^ *+' conftest.er1 >conftest.err
4401
  rm -f conftest.er1
4402
  cat conftest.err >&5
4403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404
  (exit $ac_status); } && {
4405
         test -z "$ac_c_werror_flag" ||
4406
         test ! -s conftest.err
4407
       } && test -s conftest.$ac_objext; then
4408
  eval "$as_ac_Header=yes"
4409
else
4410
  echo "$as_me: failed program was:" >&5
4411
sed 's/^/| /' conftest.$ac_ext >&5
4412
 
4413
        eval "$as_ac_Header=no"
4414
fi
4415
 
4416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417
fi
4418
ac_res=`eval echo '${'$as_ac_Header'}'`
4419
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4420
echo "${ECHO_T}$ac_res" >&6; }
4421
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4422
  cat >>confdefs.h <<_ACEOF
4423
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424
_ACEOF
4425
 
4426
fi
4427
 
4428
done
4429
 
4430
 
4431
 
4432
for ac_header in dlfcn.h
4433
do
4434
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4436
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4437
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4438
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4439
  echo $ECHO_N "(cached) $ECHO_C" >&6
4440
fi
4441
ac_res=`eval echo '${'$as_ac_Header'}'`
4442
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4443
echo "${ECHO_T}$ac_res" >&6; }
4444
else
4445
  # Is the header compilable?
4446
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4447
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4448
cat >conftest.$ac_ext <<_ACEOF
4449
/* confdefs.h.  */
4450
_ACEOF
4451
cat confdefs.h >>conftest.$ac_ext
4452
cat >>conftest.$ac_ext <<_ACEOF
4453
/* end confdefs.h.  */
4454
$ac_includes_default
4455
@%:@include <$ac_header>
4456
_ACEOF
4457
rm -f conftest.$ac_objext
4458
if { (ac_try="$ac_compile"
4459
case "(($ac_try" in
4460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461
  *) ac_try_echo=$ac_try;;
4462
esac
4463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464
  (eval "$ac_compile") 2>conftest.er1
4465
  ac_status=$?
4466
  grep -v '^ *+' conftest.er1 >conftest.err
4467
  rm -f conftest.er1
4468
  cat conftest.err >&5
4469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470
  (exit $ac_status); } && {
4471
         test -z "$ac_c_werror_flag" ||
4472
         test ! -s conftest.err
4473
       } && test -s conftest.$ac_objext; then
4474
  ac_header_compiler=yes
4475
else
4476
  echo "$as_me: failed program was:" >&5
4477
sed 's/^/| /' conftest.$ac_ext >&5
4478
 
4479
        ac_header_compiler=no
4480
fi
4481
 
4482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4484
echo "${ECHO_T}$ac_header_compiler" >&6; }
4485
 
4486
# Is the header present?
4487
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4488
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4489
cat >conftest.$ac_ext <<_ACEOF
4490
/* confdefs.h.  */
4491
_ACEOF
4492
cat confdefs.h >>conftest.$ac_ext
4493
cat >>conftest.$ac_ext <<_ACEOF
4494
/* end confdefs.h.  */
4495
@%:@include <$ac_header>
4496
_ACEOF
4497
if { (ac_try="$ac_cpp conftest.$ac_ext"
4498
case "(($ac_try" in
4499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500
  *) ac_try_echo=$ac_try;;
4501
esac
4502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504
  ac_status=$?
4505
  grep -v '^ *+' conftest.er1 >conftest.err
4506
  rm -f conftest.er1
4507
  cat conftest.err >&5
4508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
  (exit $ac_status); } >/dev/null && {
4510
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511
         test ! -s conftest.err
4512
       }; then
4513
  ac_header_preproc=yes
4514
else
4515
  echo "$as_me: failed program was:" >&5
4516
sed 's/^/| /' conftest.$ac_ext >&5
4517
 
4518
  ac_header_preproc=no
4519
fi
4520
 
4521
rm -f conftest.err conftest.$ac_ext
4522
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4523
echo "${ECHO_T}$ac_header_preproc" >&6; }
4524
 
4525
# So?  What about this header?
4526
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4527
  yes:no: )
4528
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4529
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4530
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4531
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4532
    ac_header_preproc=yes
4533
    ;;
4534
  no:yes:* )
4535
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4536
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4537
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4538
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4539
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4540
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4541
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4542
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4543
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4544
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4545
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4546
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4547
    ( cat <<\_ASBOX
4548
@%:@@%:@ ------------------------------------- @%:@@%:@
4549
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
4550
@%:@@%:@ ------------------------------------- @%:@@%:@
4551
_ASBOX
4552
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4553
    ;;
4554
esac
4555
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4556
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4557
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558
  echo $ECHO_N "(cached) $ECHO_C" >&6
4559
else
4560
  eval "$as_ac_Header=\$ac_header_preproc"
4561
fi
4562
ac_res=`eval echo '${'$as_ac_Header'}'`
4563
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4564
echo "${ECHO_T}$ac_res" >&6; }
4565
 
4566
fi
4567
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4568
  cat >>confdefs.h <<_ACEOF
4569
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570
_ACEOF
4571
 
4572
fi
4573
 
4574
done
4575
 
4576
ac_ext=cpp
4577
ac_cpp='$CXXCPP $CPPFLAGS'
4578
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4581
if test -z "$CXX"; then
4582
  if test -n "$CCC"; then
4583
    CXX=$CCC
4584
  else
4585
    if test -n "$ac_tool_prefix"; then
4586
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4587
  do
4588
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4589
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4590
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592
if test "${ac_cv_prog_CXX+set}" = set; then
4593
  echo $ECHO_N "(cached) $ECHO_C" >&6
4594
else
4595
  if test -n "$CXX"; then
4596
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4597
else
4598
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599
for as_dir in $PATH
4600
do
4601
  IFS=$as_save_IFS
4602
  test -z "$as_dir" && as_dir=.
4603
  for ac_exec_ext in '' $ac_executable_extensions; do
4604
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4606
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607
    break 2
4608
  fi
4609
done
4610
done
4611
IFS=$as_save_IFS
4612
 
4613
fi
4614
fi
4615
CXX=$ac_cv_prog_CXX
4616
if test -n "$CXX"; then
4617
  { echo "$as_me:$LINENO: result: $CXX" >&5
4618
echo "${ECHO_T}$CXX" >&6; }
4619
else
4620
  { echo "$as_me:$LINENO: result: no" >&5
4621
echo "${ECHO_T}no" >&6; }
4622
fi
4623
 
4624
 
4625
    test -n "$CXX" && break
4626
  done
4627
fi
4628
if test -z "$CXX"; then
4629
  ac_ct_CXX=$CXX
4630
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4631
do
4632
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4633
set dummy $ac_prog; ac_word=$2
4634
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4637
  echo $ECHO_N "(cached) $ECHO_C" >&6
4638
else
4639
  if test -n "$ac_ct_CXX"; then
4640
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4641
else
4642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643
for as_dir in $PATH
4644
do
4645
  IFS=$as_save_IFS
4646
  test -z "$as_dir" && as_dir=.
4647
  for ac_exec_ext in '' $ac_executable_extensions; do
4648
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4650
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651
    break 2
4652
  fi
4653
done
4654
done
4655
IFS=$as_save_IFS
4656
 
4657
fi
4658
fi
4659
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4660
if test -n "$ac_ct_CXX"; then
4661
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4662
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4663
else
4664
  { echo "$as_me:$LINENO: result: no" >&5
4665
echo "${ECHO_T}no" >&6; }
4666
fi
4667
 
4668
 
4669
  test -n "$ac_ct_CXX" && break
4670
done
4671
 
4672
  if test "x$ac_ct_CXX" = x; then
4673
    CXX="g++"
4674
  else
4675
    case $cross_compiling:$ac_tool_warned in
4676
yes:)
4677
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4678
whose name does not start with the host triplet.  If you think this
4679
configuration is useful to you, please write to autoconf@gnu.org." >&5
4680
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4681
whose name does not start with the host triplet.  If you think this
4682
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4683
ac_tool_warned=yes ;;
4684
esac
4685
    CXX=$ac_ct_CXX
4686
  fi
4687
fi
4688
 
4689
  fi
4690
fi
4691
# Provide some information about the compiler.
4692
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4693
ac_compiler=`set X $ac_compile; echo $2`
4694
{ (ac_try="$ac_compiler --version >&5"
4695
case "(($ac_try" in
4696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697
  *) ac_try_echo=$ac_try;;
4698
esac
4699
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700
  (eval "$ac_compiler --version >&5") 2>&5
4701
  ac_status=$?
4702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
  (exit $ac_status); }
4704
{ (ac_try="$ac_compiler -v >&5"
4705
case "(($ac_try" in
4706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707
  *) ac_try_echo=$ac_try;;
4708
esac
4709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710
  (eval "$ac_compiler -v >&5") 2>&5
4711
  ac_status=$?
4712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713
  (exit $ac_status); }
4714
{ (ac_try="$ac_compiler -V >&5"
4715
case "(($ac_try" in
4716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717
  *) ac_try_echo=$ac_try;;
4718
esac
4719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720
  (eval "$ac_compiler -V >&5") 2>&5
4721
  ac_status=$?
4722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723
  (exit $ac_status); }
4724
 
4725
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4726
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4727
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4728
  echo $ECHO_N "(cached) $ECHO_C" >&6
4729
else
4730
  cat >conftest.$ac_ext <<_ACEOF
4731
/* confdefs.h.  */
4732
_ACEOF
4733
cat confdefs.h >>conftest.$ac_ext
4734
cat >>conftest.$ac_ext <<_ACEOF
4735
/* end confdefs.h.  */
4736
 
4737
int
4738
main ()
4739
{
4740
#ifndef __GNUC__
4741
       choke me
4742
#endif
4743
 
4744
  ;
4745
  return 0;
4746
}
4747
_ACEOF
4748
rm -f conftest.$ac_objext
4749
if { (ac_try="$ac_compile"
4750
case "(($ac_try" in
4751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752
  *) ac_try_echo=$ac_try;;
4753
esac
4754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755
  (eval "$ac_compile") 2>conftest.er1
4756
  ac_status=$?
4757
  grep -v '^ *+' conftest.er1 >conftest.err
4758
  rm -f conftest.er1
4759
  cat conftest.err >&5
4760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761
  (exit $ac_status); } && {
4762
         test -z "$ac_cxx_werror_flag" ||
4763
         test ! -s conftest.err
4764
       } && test -s conftest.$ac_objext; then
4765
  ac_compiler_gnu=yes
4766
else
4767
  echo "$as_me: failed program was:" >&5
4768
sed 's/^/| /' conftest.$ac_ext >&5
4769
 
4770
        ac_compiler_gnu=no
4771
fi
4772
 
4773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4775
 
4776
fi
4777
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4778
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4779
GXX=`test $ac_compiler_gnu = yes && echo yes`
4780
ac_test_CXXFLAGS=${CXXFLAGS+set}
4781
ac_save_CXXFLAGS=$CXXFLAGS
4782
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4783
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4784
if test "${ac_cv_prog_cxx_g+set}" = set; then
4785
  echo $ECHO_N "(cached) $ECHO_C" >&6
4786
else
4787
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4788
   ac_cxx_werror_flag=yes
4789
   ac_cv_prog_cxx_g=no
4790
   CXXFLAGS="-g"
4791
   cat >conftest.$ac_ext <<_ACEOF
4792
/* confdefs.h.  */
4793
_ACEOF
4794
cat confdefs.h >>conftest.$ac_ext
4795
cat >>conftest.$ac_ext <<_ACEOF
4796
/* end confdefs.h.  */
4797
 
4798
int
4799
main ()
4800
{
4801
 
4802
  ;
4803
  return 0;
4804
}
4805
_ACEOF
4806
rm -f conftest.$ac_objext
4807
if { (ac_try="$ac_compile"
4808
case "(($ac_try" in
4809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810
  *) ac_try_echo=$ac_try;;
4811
esac
4812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813
  (eval "$ac_compile") 2>conftest.er1
4814
  ac_status=$?
4815
  grep -v '^ *+' conftest.er1 >conftest.err
4816
  rm -f conftest.er1
4817
  cat conftest.err >&5
4818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819
  (exit $ac_status); } && {
4820
         test -z "$ac_cxx_werror_flag" ||
4821
         test ! -s conftest.err
4822
       } && test -s conftest.$ac_objext; then
4823
  ac_cv_prog_cxx_g=yes
4824
else
4825
  echo "$as_me: failed program was:" >&5
4826
sed 's/^/| /' conftest.$ac_ext >&5
4827
 
4828
        CXXFLAGS=""
4829
      cat >conftest.$ac_ext <<_ACEOF
4830
/* confdefs.h.  */
4831
_ACEOF
4832
cat confdefs.h >>conftest.$ac_ext
4833
cat >>conftest.$ac_ext <<_ACEOF
4834
/* end confdefs.h.  */
4835
 
4836
int
4837
main ()
4838
{
4839
 
4840
  ;
4841
  return 0;
4842
}
4843
_ACEOF
4844
rm -f conftest.$ac_objext
4845
if { (ac_try="$ac_compile"
4846
case "(($ac_try" in
4847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848
  *) ac_try_echo=$ac_try;;
4849
esac
4850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851
  (eval "$ac_compile") 2>conftest.er1
4852
  ac_status=$?
4853
  grep -v '^ *+' conftest.er1 >conftest.err
4854
  rm -f conftest.er1
4855
  cat conftest.err >&5
4856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857
  (exit $ac_status); } && {
4858
         test -z "$ac_cxx_werror_flag" ||
4859
         test ! -s conftest.err
4860
       } && test -s conftest.$ac_objext; then
4861
  :
4862
else
4863
  echo "$as_me: failed program was:" >&5
4864
sed 's/^/| /' conftest.$ac_ext >&5
4865
 
4866
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4867
         CXXFLAGS="-g"
4868
         cat >conftest.$ac_ext <<_ACEOF
4869
/* confdefs.h.  */
4870
_ACEOF
4871
cat confdefs.h >>conftest.$ac_ext
4872
cat >>conftest.$ac_ext <<_ACEOF
4873
/* end confdefs.h.  */
4874
 
4875
int
4876
main ()
4877
{
4878
 
4879
  ;
4880
  return 0;
4881
}
4882
_ACEOF
4883
rm -f conftest.$ac_objext
4884
if { (ac_try="$ac_compile"
4885
case "(($ac_try" in
4886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887
  *) ac_try_echo=$ac_try;;
4888
esac
4889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890
  (eval "$ac_compile") 2>conftest.er1
4891
  ac_status=$?
4892
  grep -v '^ *+' conftest.er1 >conftest.err
4893
  rm -f conftest.er1
4894
  cat conftest.err >&5
4895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
  (exit $ac_status); } && {
4897
         test -z "$ac_cxx_werror_flag" ||
4898
         test ! -s conftest.err
4899
       } && test -s conftest.$ac_objext; then
4900
  ac_cv_prog_cxx_g=yes
4901
else
4902
  echo "$as_me: failed program was:" >&5
4903
sed 's/^/| /' conftest.$ac_ext >&5
4904
 
4905
 
4906
fi
4907
 
4908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909
fi
4910
 
4911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912
fi
4913
 
4914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4916
fi
4917
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4918
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4919
if test "$ac_test_CXXFLAGS" = set; then
4920
  CXXFLAGS=$ac_save_CXXFLAGS
4921
elif test $ac_cv_prog_cxx_g = yes; then
4922
  if test "$GXX" = yes; then
4923
    CXXFLAGS="-g -O2"
4924
  else
4925
    CXXFLAGS="-g"
4926
  fi
4927
else
4928
  if test "$GXX" = yes; then
4929
    CXXFLAGS="-O2"
4930
  else
4931
    CXXFLAGS=
4932
  fi
4933
fi
4934
ac_ext=cpp
4935
ac_cpp='$CXXCPP $CPPFLAGS'
4936
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4939
 
4940
 
4941
 
4942
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4943
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4944
    (test "X$CXX" != "Xg++"))) ; then
4945
  ac_ext=cpp
4946
ac_cpp='$CXXCPP $CPPFLAGS'
4947
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4950
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4951
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4952
if test -z "$CXXCPP"; then
4953
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4954
  echo $ECHO_N "(cached) $ECHO_C" >&6
4955
else
4956
      # Double quotes because CXXCPP needs to be expanded
4957
    for CXXCPP in "$CXX -E" "/lib/cpp"
4958
    do
4959
      ac_preproc_ok=false
4960
for ac_cxx_preproc_warn_flag in '' yes
4961
do
4962
  # Use a header file that comes with gcc, so configuring glibc
4963
  # with a fresh cross-compiler works.
4964
  # Prefer  to  if __STDC__ is defined, since
4965
  #  exists even on freestanding compilers.
4966
  # On the NeXT, cc -E runs the code through the compiler's parser,
4967
  # not just through cpp. "Syntax error" is here to catch this case.
4968
  cat >conftest.$ac_ext <<_ACEOF
4969
/* confdefs.h.  */
4970
_ACEOF
4971
cat confdefs.h >>conftest.$ac_ext
4972
cat >>conftest.$ac_ext <<_ACEOF
4973
/* end confdefs.h.  */
4974
@%:@ifdef __STDC__
4975
@%:@ include 
4976
@%:@else
4977
@%:@ include 
4978
@%:@endif
4979
                     Syntax error
4980
_ACEOF
4981
if { (ac_try="$ac_cpp conftest.$ac_ext"
4982
case "(($ac_try" in
4983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984
  *) ac_try_echo=$ac_try;;
4985
esac
4986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4988
  ac_status=$?
4989
  grep -v '^ *+' conftest.er1 >conftest.err
4990
  rm -f conftest.er1
4991
  cat conftest.err >&5
4992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993
  (exit $ac_status); } >/dev/null && {
4994
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4995
         test ! -s conftest.err
4996
       }; then
4997
  :
4998
else
4999
  echo "$as_me: failed program was:" >&5
5000
sed 's/^/| /' conftest.$ac_ext >&5
5001
 
5002
  # Broken: fails on valid input.
5003
continue
5004
fi
5005
 
5006
rm -f conftest.err conftest.$ac_ext
5007
 
5008
  # OK, works on sane cases.  Now check whether nonexistent headers
5009
  # can be detected and how.
5010
  cat >conftest.$ac_ext <<_ACEOF
5011
/* confdefs.h.  */
5012
_ACEOF
5013
cat confdefs.h >>conftest.$ac_ext
5014
cat >>conftest.$ac_ext <<_ACEOF
5015
/* end confdefs.h.  */
5016
@%:@include 
5017
_ACEOF
5018
if { (ac_try="$ac_cpp conftest.$ac_ext"
5019
case "(($ac_try" in
5020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021
  *) ac_try_echo=$ac_try;;
5022
esac
5023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5025
  ac_status=$?
5026
  grep -v '^ *+' conftest.er1 >conftest.err
5027
  rm -f conftest.er1
5028
  cat conftest.err >&5
5029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030
  (exit $ac_status); } >/dev/null && {
5031
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5032
         test ! -s conftest.err
5033
       }; then
5034
  # Broken: success on invalid input.
5035
continue
5036
else
5037
  echo "$as_me: failed program was:" >&5
5038
sed 's/^/| /' conftest.$ac_ext >&5
5039
 
5040
  # Passes both tests.
5041
ac_preproc_ok=:
5042
break
5043
fi
5044
 
5045
rm -f conftest.err conftest.$ac_ext
5046
 
5047
done
5048
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049
rm -f conftest.err conftest.$ac_ext
5050
if $ac_preproc_ok; then
5051
  break
5052
fi
5053
 
5054
    done
5055
    ac_cv_prog_CXXCPP=$CXXCPP
5056
 
5057
fi
5058
  CXXCPP=$ac_cv_prog_CXXCPP
5059
else
5060
  ac_cv_prog_CXXCPP=$CXXCPP
5061
fi
5062
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5063
echo "${ECHO_T}$CXXCPP" >&6; }
5064
ac_preproc_ok=false
5065
for ac_cxx_preproc_warn_flag in '' yes
5066
do
5067
  # Use a header file that comes with gcc, so configuring glibc
5068
  # with a fresh cross-compiler works.
5069
  # Prefer  to  if __STDC__ is defined, since
5070
  #  exists even on freestanding compilers.
5071
  # On the NeXT, cc -E runs the code through the compiler's parser,
5072
  # not just through cpp. "Syntax error" is here to catch this case.
5073
  cat >conftest.$ac_ext <<_ACEOF
5074
/* confdefs.h.  */
5075
_ACEOF
5076
cat confdefs.h >>conftest.$ac_ext
5077
cat >>conftest.$ac_ext <<_ACEOF
5078
/* end confdefs.h.  */
5079
@%:@ifdef __STDC__
5080
@%:@ include 
5081
@%:@else
5082
@%:@ include 
5083
@%:@endif
5084
                     Syntax error
5085
_ACEOF
5086
if { (ac_try="$ac_cpp conftest.$ac_ext"
5087
case "(($ac_try" in
5088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089
  *) ac_try_echo=$ac_try;;
5090
esac
5091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093
  ac_status=$?
5094
  grep -v '^ *+' conftest.er1 >conftest.err
5095
  rm -f conftest.er1
5096
  cat conftest.err >&5
5097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098
  (exit $ac_status); } >/dev/null && {
5099
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5100
         test ! -s conftest.err
5101
       }; then
5102
  :
5103
else
5104
  echo "$as_me: failed program was:" >&5
5105
sed 's/^/| /' conftest.$ac_ext >&5
5106
 
5107
  # Broken: fails on valid input.
5108
continue
5109
fi
5110
 
5111
rm -f conftest.err conftest.$ac_ext
5112
 
5113
  # OK, works on sane cases.  Now check whether nonexistent headers
5114
  # can be detected and how.
5115
  cat >conftest.$ac_ext <<_ACEOF
5116
/* confdefs.h.  */
5117
_ACEOF
5118
cat confdefs.h >>conftest.$ac_ext
5119
cat >>conftest.$ac_ext <<_ACEOF
5120
/* end confdefs.h.  */
5121
@%:@include 
5122
_ACEOF
5123
if { (ac_try="$ac_cpp conftest.$ac_ext"
5124
case "(($ac_try" in
5125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126
  *) ac_try_echo=$ac_try;;
5127
esac
5128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130
  ac_status=$?
5131
  grep -v '^ *+' conftest.er1 >conftest.err
5132
  rm -f conftest.er1
5133
  cat conftest.err >&5
5134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135
  (exit $ac_status); } >/dev/null && {
5136
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5137
         test ! -s conftest.err
5138
       }; then
5139
  # Broken: success on invalid input.
5140
continue
5141
else
5142
  echo "$as_me: failed program was:" >&5
5143
sed 's/^/| /' conftest.$ac_ext >&5
5144
 
5145
  # Passes both tests.
5146
ac_preproc_ok=:
5147
break
5148
fi
5149
 
5150
rm -f conftest.err conftest.$ac_ext
5151
 
5152
done
5153
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154
rm -f conftest.err conftest.$ac_ext
5155
if $ac_preproc_ok; then
5156
  :
5157
else
5158
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159
See \`config.log' for more details." >&5
5160
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5161
See \`config.log' for more details." >&2;}
5162
   { (exit 1); exit 1; }; }
5163
fi
5164
 
5165
ac_ext=cpp
5166
ac_cpp='$CXXCPP $CPPFLAGS'
5167
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170
 
5171
fi
5172
 
5173
 
5174
ac_ext=f
5175
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5176
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5178
if test -n "$ac_tool_prefix"; then
5179
  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
5180
  do
5181
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5184
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185
if test "${ac_cv_prog_F77+set}" = set; then
5186
  echo $ECHO_N "(cached) $ECHO_C" >&6
5187
else
5188
  if test -n "$F77"; then
5189
  ac_cv_prog_F77="$F77" # Let the user override the test.
5190
else
5191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192
for as_dir in $PATH
5193
do
5194
  IFS=$as_save_IFS
5195
  test -z "$as_dir" && as_dir=.
5196
  for ac_exec_ext in '' $ac_executable_extensions; do
5197
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5199
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200
    break 2
5201
  fi
5202
done
5203
done
5204
IFS=$as_save_IFS
5205
 
5206
fi
5207
fi
5208
F77=$ac_cv_prog_F77
5209
if test -n "$F77"; then
5210
  { echo "$as_me:$LINENO: result: $F77" >&5
5211
echo "${ECHO_T}$F77" >&6; }
5212
else
5213
  { echo "$as_me:$LINENO: result: no" >&5
5214
echo "${ECHO_T}no" >&6; }
5215
fi
5216
 
5217
 
5218
    test -n "$F77" && break
5219
  done
5220
fi
5221
if test -z "$F77"; then
5222
  ac_ct_F77=$F77
5223
  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
5224
do
5225
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5226
set dummy $ac_prog; ac_word=$2
5227
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5230
  echo $ECHO_N "(cached) $ECHO_C" >&6
5231
else
5232
  if test -n "$ac_ct_F77"; then
5233
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5234
else
5235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236
for as_dir in $PATH
5237
do
5238
  IFS=$as_save_IFS
5239
  test -z "$as_dir" && as_dir=.
5240
  for ac_exec_ext in '' $ac_executable_extensions; do
5241
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242
    ac_cv_prog_ac_ct_F77="$ac_prog"
5243
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244
    break 2
5245
  fi
5246
done
5247
done
5248
IFS=$as_save_IFS
5249
 
5250
fi
5251
fi
5252
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5253
if test -n "$ac_ct_F77"; then
5254
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5255
echo "${ECHO_T}$ac_ct_F77" >&6; }
5256
else
5257
  { echo "$as_me:$LINENO: result: no" >&5
5258
echo "${ECHO_T}no" >&6; }
5259
fi
5260
 
5261
 
5262
  test -n "$ac_ct_F77" && break
5263
done
5264
 
5265
  if test "x$ac_ct_F77" = x; then
5266
    F77=""
5267
  else
5268
    case $cross_compiling:$ac_tool_warned in
5269
yes:)
5270
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5271
whose name does not start with the host triplet.  If you think this
5272
configuration is useful to you, please write to autoconf@gnu.org." >&5
5273
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5274
whose name does not start with the host triplet.  If you think this
5275
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5276
ac_tool_warned=yes ;;
5277
esac
5278
    F77=$ac_ct_F77
5279
  fi
5280
fi
5281
 
5282
 
5283
# Provide some information about the compiler.
5284
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5285
ac_compiler=`set X $ac_compile; echo $2`
5286
{ (ac_try="$ac_compiler --version >&5"
5287
case "(($ac_try" in
5288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289
  *) ac_try_echo=$ac_try;;
5290
esac
5291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292
  (eval "$ac_compiler --version >&5") 2>&5
5293
  ac_status=$?
5294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
  (exit $ac_status); }
5296
{ (ac_try="$ac_compiler -v >&5"
5297
case "(($ac_try" in
5298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299
  *) ac_try_echo=$ac_try;;
5300
esac
5301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302
  (eval "$ac_compiler -v >&5") 2>&5
5303
  ac_status=$?
5304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
  (exit $ac_status); }
5306
{ (ac_try="$ac_compiler -V >&5"
5307
case "(($ac_try" in
5308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309
  *) ac_try_echo=$ac_try;;
5310
esac
5311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312
  (eval "$ac_compiler -V >&5") 2>&5
5313
  ac_status=$?
5314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315
  (exit $ac_status); }
5316
rm -f a.out
5317
 
5318
# If we don't use `.F' as extension, the preprocessor is not run on the
5319
# input file.  (Note that this only needs to work for GNU compilers.)
5320
ac_save_ext=$ac_ext
5321
ac_ext=F
5322
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5323
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5324
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5325
  echo $ECHO_N "(cached) $ECHO_C" >&6
5326
else
5327
  cat >conftest.$ac_ext <<_ACEOF
5328
      program main
5329
#ifndef __GNUC__
5330
       choke me
5331
#endif
5332
 
5333
      end
5334
_ACEOF
5335
rm -f conftest.$ac_objext
5336
if { (ac_try="$ac_compile"
5337
case "(($ac_try" in
5338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339
  *) ac_try_echo=$ac_try;;
5340
esac
5341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342
  (eval "$ac_compile") 2>conftest.er1
5343
  ac_status=$?
5344
  grep -v '^ *+' conftest.er1 >conftest.err
5345
  rm -f conftest.er1
5346
  cat conftest.err >&5
5347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348
  (exit $ac_status); } && {
5349
         test -z "$ac_f77_werror_flag" ||
5350
         test ! -s conftest.err
5351
       } && test -s conftest.$ac_objext; then
5352
  ac_compiler_gnu=yes
5353
else
5354
  echo "$as_me: failed program was:" >&5
5355
sed 's/^/| /' conftest.$ac_ext >&5
5356
 
5357
        ac_compiler_gnu=no
5358
fi
5359
 
5360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5362
 
5363
fi
5364
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5365
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5366
ac_ext=$ac_save_ext
5367
ac_test_FFLAGS=${FFLAGS+set}
5368
ac_save_FFLAGS=$FFLAGS
5369
FFLAGS=
5370
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5371
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5372
if test "${ac_cv_prog_f77_g+set}" = set; then
5373
  echo $ECHO_N "(cached) $ECHO_C" >&6
5374
else
5375
  FFLAGS=-g
5376
cat >conftest.$ac_ext <<_ACEOF
5377
      program main
5378
 
5379
      end
5380
_ACEOF
5381
rm -f conftest.$ac_objext
5382
if { (ac_try="$ac_compile"
5383
case "(($ac_try" in
5384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385
  *) ac_try_echo=$ac_try;;
5386
esac
5387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388
  (eval "$ac_compile") 2>conftest.er1
5389
  ac_status=$?
5390
  grep -v '^ *+' conftest.er1 >conftest.err
5391
  rm -f conftest.er1
5392
  cat conftest.err >&5
5393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394
  (exit $ac_status); } && {
5395
         test -z "$ac_f77_werror_flag" ||
5396
         test ! -s conftest.err
5397
       } && test -s conftest.$ac_objext; then
5398
  ac_cv_prog_f77_g=yes
5399
else
5400
  echo "$as_me: failed program was:" >&5
5401
sed 's/^/| /' conftest.$ac_ext >&5
5402
 
5403
        ac_cv_prog_f77_g=no
5404
fi
5405
 
5406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407
 
5408
fi
5409
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5410
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5411
if test "$ac_test_FFLAGS" = set; then
5412
  FFLAGS=$ac_save_FFLAGS
5413
elif test $ac_cv_prog_f77_g = yes; then
5414
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5415
    FFLAGS="-g -O2"
5416
  else
5417
    FFLAGS="-g"
5418
  fi
5419
else
5420
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5421
    FFLAGS="-O2"
5422
  else
5423
    FFLAGS=
5424
  fi
5425
fi
5426
 
5427
G77=`test $ac_compiler_gnu = yes && echo yes`
5428
ac_ext=c
5429
ac_cpp='$CPP $CPPFLAGS'
5430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433
 
5434
 
5435
 
5436
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5437
 
5438
# find the maximum length of command line arguments
5439
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5440
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5441
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5442
  echo $ECHO_N "(cached) $ECHO_C" >&6
5443
else
5444
    i=0
5445
  teststring="ABCD"
5446
 
5447
  case $build_os in
5448
  msdosdjgpp*)
5449
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5450
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5451
    # during glob expansion).  Even if it were fixed, the result of this
5452
    # check would be larger than it should be.
5453
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5454
    ;;
5455
 
5456
  gnu*)
5457
    # Under GNU Hurd, this test is not required because there is
5458
    # no limit to the length of command line arguments.
5459
    # Libtool will interpret -1 as no limit whatsoever
5460
    lt_cv_sys_max_cmd_len=-1;
5461
    ;;
5462
 
5463
  cygwin* | mingw*)
5464
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5465
    # about 5 minutes as the teststring grows exponentially.
5466
    # Worse, since 9x/ME are not pre-emptively multitasking,
5467
    # you end up with a "frozen" computer, even though with patience
5468
    # the test eventually succeeds (with a max line length of 256k).
5469
    # Instead, let's just punt: use the minimum linelength reported by
5470
    # all of the supported platforms: 8192 (on NT/2K/XP).
5471
    lt_cv_sys_max_cmd_len=8192;
5472
    ;;
5473
 
5474
  amigaos*)
5475
    # On AmigaOS with pdksh, this test takes hours, literally.
5476
    # So we just punt and use a minimum line length of 8192.
5477
    lt_cv_sys_max_cmd_len=8192;
5478
    ;;
5479
 
5480
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5481
    # This has been around since 386BSD, at least.  Likely further.
5482
    if test -x /sbin/sysctl; then
5483
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5484
    elif test -x /usr/sbin/sysctl; then
5485
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5486
    else
5487
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5488
    fi
5489
    # And add a safety zone
5490
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5491
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5492
    ;;
5493
 
5494
  interix*)
5495
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5496
    lt_cv_sys_max_cmd_len=196608
5497
    ;;
5498
 
5499
  osf*)
5500
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5501
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5502
    # nice to cause kernel panics so lets avoid the loop below.
5503
    # First set a reasonable default.
5504
    lt_cv_sys_max_cmd_len=16384
5505
    #
5506
    if test -x /sbin/sysconfig; then
5507
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5508
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5509
      esac
5510
    fi
5511
    ;;
5512
  sco3.2v5*)
5513
    lt_cv_sys_max_cmd_len=102400
5514
    ;;
5515
  sysv5* | sco5v6* | sysv4.2uw2*)
5516
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5517
    if test -n "$kargmax"; then
5518
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5519
    else
5520
      lt_cv_sys_max_cmd_len=32768
5521
    fi
5522
    ;;
5523
  *)
5524
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5525
    if test -n "$lt_cv_sys_max_cmd_len"; then
5526
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5527
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5528
    else
5529
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531
               = "XX$teststring") >/dev/null 2>&1 &&
5532
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533
              lt_cv_sys_max_cmd_len=$new_result &&
5534
              test $i != 17 # 1/2 MB should be enough
5535
      do
5536
        i=`expr $i + 1`
5537
        teststring=$teststring$teststring
5538
      done
5539
      teststring=
5540
      # Add a significant safety factor because C++ compilers can tack on massive
5541
      # amounts of additional arguments before passing them to the linker.
5542
      # It appears as though 1/2 is a usable value.
5543
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5544
    fi
5545
    ;;
5546
  esac
5547
 
5548
fi
5549
 
5550
if test -n $lt_cv_sys_max_cmd_len ; then
5551
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5552
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5553
else
5554
  { echo "$as_me:$LINENO: result: none" >&5
5555
echo "${ECHO_T}none" >&6; }
5556
fi
5557
 
5558
 
5559
 
5560
 
5561
 
5562
# Check for command to grab the raw symbol name followed by C symbol from nm.
5563
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5564
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5565
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5566
  echo $ECHO_N "(cached) $ECHO_C" >&6
5567
else
5568
 
5569
# These are sane defaults that work on at least a few old systems.
5570
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5571
 
5572
# Character class describing NM global symbol codes.
5573
symcode='[BCDEGRST]'
5574
 
5575
# Regexp to match symbols that can be accessed directly from C.
5576
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5577
 
5578
# Transform an extracted symbol line into a proper C declaration
5579
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5580
 
5581
# Transform an extracted symbol line into symbol name and symbol address
5582
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'"
5583
 
5584
# Define system-specific variables.
5585
case $host_os in
5586
aix*)
5587
  symcode='[BCDT]'
5588
  ;;
5589
cygwin* | mingw* | pw32*)
5590
  symcode='[ABCDGISTW]'
5591
  ;;
5592
hpux*) # Its linker distinguishes data from code symbols
5593
  if test "$host_cpu" = ia64; then
5594
    symcode='[ABCDEGRST]'
5595
  fi
5596
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5597
  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'"
5598
  ;;
5599
linux* | k*bsd*-gnu)
5600
  if test "$host_cpu" = ia64; then
5601
    symcode='[ABCDGIRSTW]'
5602
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5603
    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'"
5604
  fi
5605
  ;;
5606
irix* | nonstopux*)
5607
  symcode='[BCDEGRST]'
5608
  ;;
5609
osf*)
5610
  symcode='[BCDEGQRST]'
5611
  ;;
5612
solaris*)
5613
  symcode='[BDRT]'
5614
  ;;
5615
sco3.2v5*)
5616
  symcode='[DT]'
5617
  ;;
5618
sysv4.2uw2*)
5619
  symcode='[DT]'
5620
  ;;
5621
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5622
  symcode='[ABDT]'
5623
  ;;
5624
sysv4)
5625
  symcode='[DFNSTU]'
5626
  ;;
5627
esac
5628
 
5629
# Handle CRLF in mingw tool chain
5630
opt_cr=
5631
case $build_os in
5632
mingw*)
5633
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5634
  ;;
5635
esac
5636
 
5637
# If we're using GNU nm, then use its standard symbol codes.
5638
case `$NM -V 2>&1` in
5639
*GNU* | *'with BFD'*)
5640
  symcode='[ABCDGIRSTW]' ;;
5641
esac
5642
 
5643
# Try without a prefix undercore, then with it.
5644
for ac_symprfx in "" "_"; do
5645
 
5646
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5647
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5648
 
5649
  # Write the raw and C identifiers.
5650
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5651
 
5652
  # Check to see that the pipe works correctly.
5653
  pipe_works=no
5654
 
5655
  rm -f conftest*
5656
  cat > conftest.$ac_ext <
5657
#ifdef __cplusplus
5658
extern "C" {
5659
#endif
5660
char nm_test_var;
5661
void nm_test_func(){}
5662
#ifdef __cplusplus
5663
}
5664
#endif
5665
int main(){nm_test_var='a';nm_test_func();return(0);}
5666
EOF
5667
 
5668
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669
  (eval $ac_compile) 2>&5
5670
  ac_status=$?
5671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672
  (exit $ac_status); }; then
5673
    # Now try to grab the symbols.
5674
    nlist=conftest.nm
5675
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5676
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5677
  ac_status=$?
5678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679
  (exit $ac_status); } && test -s "$nlist"; then
5680
      # Try sorting and uniquifying the output.
5681
      if sort "$nlist" | uniq > "$nlist"T; then
5682
        mv -f "$nlist"T "$nlist"
5683
      else
5684
        rm -f "$nlist"T
5685
      fi
5686
 
5687
      # Make sure that we snagged all the symbols we need.
5688
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5689
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5690
          cat < conftest.$ac_ext
5691
#ifdef __cplusplus
5692
extern "C" {
5693
#endif
5694
 
5695
EOF
5696
          # Now generate the symbol file.
5697
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5698
 
5699
          cat <> conftest.$ac_ext
5700
#if defined (__STDC__) && __STDC__
5701
# define lt_ptr_t void *
5702
#else
5703
# define lt_ptr_t char *
5704
# define const
5705
#endif
5706
 
5707
/* The mapping between symbol names and symbols. */
5708
const struct {
5709
  const char *name;
5710
  lt_ptr_t address;
5711
}
5712
lt_preloaded_symbols[] =
5713
{
5714
EOF
5715
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5716
          cat <<\EOF >> conftest.$ac_ext
5717
  {0, (lt_ptr_t) 0}
5718
};
5719
 
5720
#ifdef __cplusplus
5721
}
5722
#endif
5723
EOF
5724
          # Now try linking the two files.
5725
          mv conftest.$ac_objext conftstm.$ac_objext
5726
          lt_save_LIBS="$LIBS"
5727
          lt_save_CFLAGS="$CFLAGS"
5728
          LIBS="conftstm.$ac_objext"
5729
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5730
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731
  (eval $ac_link) 2>&5
5732
  ac_status=$?
5733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5735
            pipe_works=yes
5736
          fi
5737
          LIBS="$lt_save_LIBS"
5738
          CFLAGS="$lt_save_CFLAGS"
5739
        else
5740
          echo "cannot find nm_test_func in $nlist" >&5
5741
        fi
5742
      else
5743
        echo "cannot find nm_test_var in $nlist" >&5
5744
      fi
5745
    else
5746
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5747
    fi
5748
  else
5749
    echo "$progname: failed program was:" >&5
5750
    cat conftest.$ac_ext >&5
5751
  fi
5752
  rm -f conftest* conftst*
5753
 
5754
  # Do not use the global_symbol_pipe unless it works.
5755
  if test "$pipe_works" = yes; then
5756
    break
5757
  else
5758
    lt_cv_sys_global_symbol_pipe=
5759
  fi
5760
done
5761
 
5762
fi
5763
 
5764
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5765
  lt_cv_sys_global_symbol_to_cdecl=
5766
fi
5767
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5768
  { echo "$as_me:$LINENO: result: failed" >&5
5769
echo "${ECHO_T}failed" >&6; }
5770
else
5771
  { echo "$as_me:$LINENO: result: ok" >&5
5772
echo "${ECHO_T}ok" >&6; }
5773
fi
5774
 
5775
{ echo "$as_me:$LINENO: checking for objdir" >&5
5776
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5777
if test "${lt_cv_objdir+set}" = set; then
5778
  echo $ECHO_N "(cached) $ECHO_C" >&6
5779
else
5780
  rm -f .libs 2>/dev/null
5781
mkdir .libs 2>/dev/null
5782
if test -d .libs; then
5783
  lt_cv_objdir=.libs
5784
else
5785
  # MS-DOS does not allow filenames that begin with a dot.
5786
  lt_cv_objdir=_libs
5787
fi
5788
rmdir .libs 2>/dev/null
5789
fi
5790
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5791
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5792
objdir=$lt_cv_objdir
5793
 
5794
 
5795
 
5796
 
5797
 
5798
case $host_os in
5799
aix3*)
5800
  # AIX sometimes has problems with the GCC collect2 program.  For some
5801
  # reason, if we set the COLLECT_NAMES environment variable, the problems
5802
  # vanish in a puff of smoke.
5803
  if test "X${COLLECT_NAMES+set}" != Xset; then
5804
    COLLECT_NAMES=
5805
    export COLLECT_NAMES
5806
  fi
5807
  ;;
5808
esac
5809
 
5810
# Sed substitution that helps us do robust quoting.  It backslashifies
5811
# metacharacters that are still active within double-quoted strings.
5812
Xsed='sed -e 1s/^X//'
5813
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5814
 
5815
# Same as above, but do not quote variable references.
5816
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5817
 
5818
# Sed substitution to delay expansion of an escaped shell variable in a
5819
# double_quote_subst'ed string.
5820
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5821
 
5822
# Sed substitution to avoid accidental globbing in evaled expressions
5823
no_glob_subst='s/\*/\\\*/g'
5824
 
5825
# Constants:
5826
rm="rm -f"
5827
 
5828
# Global variables:
5829
default_ofile=libtool
5830
can_build_shared=yes
5831
 
5832
# All known linkers require a `.a' archive for static linking (except MSVC,
5833
# which needs '.lib').
5834
libext=a
5835
ltmain="$ac_aux_dir/ltmain.sh"
5836
ofile="$default_ofile"
5837
with_gnu_ld="$lt_cv_prog_gnu_ld"
5838
 
5839
if test -n "$ac_tool_prefix"; then
5840
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5841
set dummy ${ac_tool_prefix}ar; ac_word=$2
5842
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5843
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844
if test "${ac_cv_prog_AR+set}" = set; then
5845
  echo $ECHO_N "(cached) $ECHO_C" >&6
5846
else
5847
  if test -n "$AR"; then
5848
  ac_cv_prog_AR="$AR" # Let the user override the test.
5849
else
5850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851
for as_dir in $PATH
5852
do
5853
  IFS=$as_save_IFS
5854
  test -z "$as_dir" && as_dir=.
5855
  for ac_exec_ext in '' $ac_executable_extensions; do
5856
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5858
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859
    break 2
5860
  fi
5861
done
5862
done
5863
IFS=$as_save_IFS
5864
 
5865
fi
5866
fi
5867
AR=$ac_cv_prog_AR
5868
if test -n "$AR"; then
5869
  { echo "$as_me:$LINENO: result: $AR" >&5
5870
echo "${ECHO_T}$AR" >&6; }
5871
else
5872
  { echo "$as_me:$LINENO: result: no" >&5
5873
echo "${ECHO_T}no" >&6; }
5874
fi
5875
 
5876
 
5877
fi
5878
if test -z "$ac_cv_prog_AR"; then
5879
  ac_ct_AR=$AR
5880
  # Extract the first word of "ar", so it can be a program name with args.
5881
set dummy ar; ac_word=$2
5882
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5885
  echo $ECHO_N "(cached) $ECHO_C" >&6
5886
else
5887
  if test -n "$ac_ct_AR"; then
5888
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5889
else
5890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891
for as_dir in $PATH
5892
do
5893
  IFS=$as_save_IFS
5894
  test -z "$as_dir" && as_dir=.
5895
  for ac_exec_ext in '' $ac_executable_extensions; do
5896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897
    ac_cv_prog_ac_ct_AR="ar"
5898
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899
    break 2
5900
  fi
5901
done
5902
done
5903
IFS=$as_save_IFS
5904
 
5905
fi
5906
fi
5907
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908
if test -n "$ac_ct_AR"; then
5909
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5910
echo "${ECHO_T}$ac_ct_AR" >&6; }
5911
else
5912
  { echo "$as_me:$LINENO: result: no" >&5
5913
echo "${ECHO_T}no" >&6; }
5914
fi
5915
 
5916
  if test "x$ac_ct_AR" = x; then
5917
    AR="false"
5918
  else
5919
    case $cross_compiling:$ac_tool_warned in
5920
yes:)
5921
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5922
whose name does not start with the host triplet.  If you think this
5923
configuration is useful to you, please write to autoconf@gnu.org." >&5
5924
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5925
whose name does not start with the host triplet.  If you think this
5926
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5927
ac_tool_warned=yes ;;
5928
esac
5929
    AR=$ac_ct_AR
5930
  fi
5931
else
5932
  AR="$ac_cv_prog_AR"
5933
fi
5934
 
5935
if test -n "$ac_tool_prefix"; then
5936
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5937
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5938
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5940
if test "${ac_cv_prog_RANLIB+set}" = set; then
5941
  echo $ECHO_N "(cached) $ECHO_C" >&6
5942
else
5943
  if test -n "$RANLIB"; then
5944
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5945
else
5946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947
for as_dir in $PATH
5948
do
5949
  IFS=$as_save_IFS
5950
  test -z "$as_dir" && as_dir=.
5951
  for ac_exec_ext in '' $ac_executable_extensions; do
5952
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5954
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955
    break 2
5956
  fi
5957
done
5958
done
5959
IFS=$as_save_IFS
5960
 
5961
fi
5962
fi
5963
RANLIB=$ac_cv_prog_RANLIB
5964
if test -n "$RANLIB"; then
5965
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5966
echo "${ECHO_T}$RANLIB" >&6; }
5967
else
5968
  { echo "$as_me:$LINENO: result: no" >&5
5969
echo "${ECHO_T}no" >&6; }
5970
fi
5971
 
5972
 
5973
fi
5974
if test -z "$ac_cv_prog_RANLIB"; then
5975
  ac_ct_RANLIB=$RANLIB
5976
  # Extract the first word of "ranlib", so it can be a program name with args.
5977
set dummy ranlib; ac_word=$2
5978
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5979
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5981
  echo $ECHO_N "(cached) $ECHO_C" >&6
5982
else
5983
  if test -n "$ac_ct_RANLIB"; then
5984
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5985
else
5986
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987
for as_dir in $PATH
5988
do
5989
  IFS=$as_save_IFS
5990
  test -z "$as_dir" && as_dir=.
5991
  for ac_exec_ext in '' $ac_executable_extensions; do
5992
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5994
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995
    break 2
5996
  fi
5997
done
5998
done
5999
IFS=$as_save_IFS
6000
 
6001
fi
6002
fi
6003
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6004
if test -n "$ac_ct_RANLIB"; then
6005
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6006
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6007
else
6008
  { echo "$as_me:$LINENO: result: no" >&5
6009
echo "${ECHO_T}no" >&6; }
6010
fi
6011
 
6012
  if test "x$ac_ct_RANLIB" = x; then
6013
    RANLIB=":"
6014
  else
6015
    case $cross_compiling:$ac_tool_warned in
6016
yes:)
6017
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6018
whose name does not start with the host triplet.  If you think this
6019
configuration is useful to you, please write to autoconf@gnu.org." >&5
6020
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6021
whose name does not start with the host triplet.  If you think this
6022
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6023
ac_tool_warned=yes ;;
6024
esac
6025
    RANLIB=$ac_ct_RANLIB
6026
  fi
6027
else
6028
  RANLIB="$ac_cv_prog_RANLIB"
6029
fi
6030
 
6031
if test -n "$ac_tool_prefix"; then
6032
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6033
set dummy ${ac_tool_prefix}strip; ac_word=$2
6034
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6035
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036
if test "${ac_cv_prog_STRIP+set}" = set; then
6037
  echo $ECHO_N "(cached) $ECHO_C" >&6
6038
else
6039
  if test -n "$STRIP"; then
6040
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6041
else
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043
for as_dir in $PATH
6044
do
6045
  IFS=$as_save_IFS
6046
  test -z "$as_dir" && as_dir=.
6047
  for ac_exec_ext in '' $ac_executable_extensions; do
6048
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6050
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051
    break 2
6052
  fi
6053
done
6054
done
6055
IFS=$as_save_IFS
6056
 
6057
fi
6058
fi
6059
STRIP=$ac_cv_prog_STRIP
6060
if test -n "$STRIP"; then
6061
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6062
echo "${ECHO_T}$STRIP" >&6; }
6063
else
6064
  { echo "$as_me:$LINENO: result: no" >&5
6065
echo "${ECHO_T}no" >&6; }
6066
fi
6067
 
6068
 
6069
fi
6070
if test -z "$ac_cv_prog_STRIP"; then
6071
  ac_ct_STRIP=$STRIP
6072
  # Extract the first word of "strip", so it can be a program name with args.
6073
set dummy strip; ac_word=$2
6074
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6076
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6077
  echo $ECHO_N "(cached) $ECHO_C" >&6
6078
else
6079
  if test -n "$ac_ct_STRIP"; then
6080
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6081
else
6082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083
for as_dir in $PATH
6084
do
6085
  IFS=$as_save_IFS
6086
  test -z "$as_dir" && as_dir=.
6087
  for ac_exec_ext in '' $ac_executable_extensions; do
6088
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089
    ac_cv_prog_ac_ct_STRIP="strip"
6090
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091
    break 2
6092
  fi
6093
done
6094
done
6095
IFS=$as_save_IFS
6096
 
6097
fi
6098
fi
6099
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6100
if test -n "$ac_ct_STRIP"; then
6101
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6102
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6103
else
6104
  { echo "$as_me:$LINENO: result: no" >&5
6105
echo "${ECHO_T}no" >&6; }
6106
fi
6107
 
6108
  if test "x$ac_ct_STRIP" = x; then
6109
    STRIP=":"
6110
  else
6111
    case $cross_compiling:$ac_tool_warned in
6112
yes:)
6113
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6114
whose name does not start with the host triplet.  If you think this
6115
configuration is useful to you, please write to autoconf@gnu.org." >&5
6116
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6117
whose name does not start with the host triplet.  If you think this
6118
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6119
ac_tool_warned=yes ;;
6120
esac
6121
    STRIP=$ac_ct_STRIP
6122
  fi
6123
else
6124
  STRIP="$ac_cv_prog_STRIP"
6125
fi
6126
 
6127
 
6128
old_CC="$CC"
6129
old_CFLAGS="$CFLAGS"
6130
 
6131
# Set sane defaults for various variables
6132
test -z "$AR" && AR=ar
6133
test -z "$AR_FLAGS" && AR_FLAGS=cru
6134
test -z "$AS" && AS=as
6135
test -z "$CC" && CC=cc
6136
test -z "$LTCC" && LTCC=$CC
6137
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6138
test -z "$DLLTOOL" && DLLTOOL=dlltool
6139
test -z "$LD" && LD=ld
6140
test -z "$LN_S" && LN_S="ln -s"
6141
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6142
test -z "$NM" && NM=nm
6143
test -z "$SED" && SED=sed
6144
test -z "$OBJDUMP" && OBJDUMP=objdump
6145
test -z "$RANLIB" && RANLIB=:
6146
test -z "$STRIP" && STRIP=:
6147
test -z "$ac_objext" && ac_objext=o
6148
 
6149
# Determine commands to create old-style static archives.
6150
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6151
old_postinstall_cmds='chmod 644 $oldlib'
6152
old_postuninstall_cmds=
6153
 
6154
if test -n "$RANLIB"; then
6155
  case $host_os in
6156
  openbsd*)
6157
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6158
    ;;
6159
  *)
6160
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6161
    ;;
6162
  esac
6163
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6164
fi
6165
 
6166
for cc_temp in $compiler""; do
6167
  case $cc_temp in
6168
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6169
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6170
    \-*) ;;
6171
    *) break;;
6172
  esac
6173
done
6174
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6175
 
6176
 
6177
# Only perform the check for file, if the check method requires it
6178
case $deplibs_check_method in
6179
file_magic*)
6180
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6181
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6182
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6183
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6184
  echo $ECHO_N "(cached) $ECHO_C" >&6
6185
else
6186
  case $MAGIC_CMD in
6187
[\\/*] |  ?:[\\/]*)
6188
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6189
  ;;
6190
*)
6191
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6192
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6193
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6194
  for ac_dir in $ac_dummy; do
6195
    IFS="$lt_save_ifs"
6196
    test -z "$ac_dir" && ac_dir=.
6197
    if test -f $ac_dir/${ac_tool_prefix}file; then
6198
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6199
      if test -n "$file_magic_test_file"; then
6200
        case $deplibs_check_method in
6201
        "file_magic "*)
6202
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6203
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6204
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6205
            $EGREP "$file_magic_regex" > /dev/null; then
6206
            :
6207
          else
6208
            cat <&2
6209
 
6210
*** Warning: the command libtool uses to detect shared libraries,
6211
*** $file_magic_cmd, produces output that libtool cannot recognize.
6212
*** The result is that libtool may fail to recognize shared libraries
6213
*** as such.  This will affect the creation of libtool libraries that
6214
*** depend on shared libraries, but programs linked with such libtool
6215
*** libraries will work regardless of this problem.  Nevertheless, you
6216
*** may want to report the problem to your system manager and/or to
6217
*** bug-libtool@gnu.org
6218
 
6219
EOF
6220
          fi ;;
6221
        esac
6222
      fi
6223
      break
6224
    fi
6225
  done
6226
  IFS="$lt_save_ifs"
6227
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6228
  ;;
6229
esac
6230
fi
6231
 
6232
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6233
if test -n "$MAGIC_CMD"; then
6234
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6235
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6236
else
6237
  { echo "$as_me:$LINENO: result: no" >&5
6238
echo "${ECHO_T}no" >&6; }
6239
fi
6240
 
6241
if test -z "$lt_cv_path_MAGIC_CMD"; then
6242
  if test -n "$ac_tool_prefix"; then
6243
    { echo "$as_me:$LINENO: checking for file" >&5
6244
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6245
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6246
  echo $ECHO_N "(cached) $ECHO_C" >&6
6247
else
6248
  case $MAGIC_CMD in
6249
[\\/*] |  ?:[\\/]*)
6250
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6251
  ;;
6252
*)
6253
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6254
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6255
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6256
  for ac_dir in $ac_dummy; do
6257
    IFS="$lt_save_ifs"
6258
    test -z "$ac_dir" && ac_dir=.
6259
    if test -f $ac_dir/file; then
6260
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6261
      if test -n "$file_magic_test_file"; then
6262
        case $deplibs_check_method in
6263
        "file_magic "*)
6264
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6265
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6266
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6267
            $EGREP "$file_magic_regex" > /dev/null; then
6268
            :
6269
          else
6270
            cat <&2
6271
 
6272
*** Warning: the command libtool uses to detect shared libraries,
6273
*** $file_magic_cmd, produces output that libtool cannot recognize.
6274
*** The result is that libtool may fail to recognize shared libraries
6275
*** as such.  This will affect the creation of libtool libraries that
6276
*** depend on shared libraries, but programs linked with such libtool
6277
*** libraries will work regardless of this problem.  Nevertheless, you
6278
*** may want to report the problem to your system manager and/or to
6279
*** bug-libtool@gnu.org
6280
 
6281
EOF
6282
          fi ;;
6283
        esac
6284
      fi
6285
      break
6286
    fi
6287
  done
6288
  IFS="$lt_save_ifs"
6289
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6290
  ;;
6291
esac
6292
fi
6293
 
6294
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6295
if test -n "$MAGIC_CMD"; then
6296
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6297
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6298
else
6299
  { echo "$as_me:$LINENO: result: no" >&5
6300
echo "${ECHO_T}no" >&6; }
6301
fi
6302
 
6303
  else
6304
    MAGIC_CMD=:
6305
  fi
6306
fi
6307
 
6308
  fi
6309
  ;;
6310
esac
6311
 
6312
enable_dlopen=no
6313
enable_win32_dll=no
6314
 
6315
# Check whether --enable-libtool-lock was given.
6316
if test "${enable_libtool_lock+set}" = set; then
6317
  enableval=$enable_libtool_lock;
6318
fi
6319
 
6320
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6321
 
6322
 
6323
# Check whether --with-pic was given.
6324
if test "${with_pic+set}" = set; then
6325
  withval=$with_pic; pic_mode="$withval"
6326
else
6327
  pic_mode=default
6328
fi
6329
 
6330
test -z "$pic_mode" && pic_mode=default
6331
 
6332
# Use C for the default configuration in the libtool script
6333
tagname=
6334
lt_save_CC="$CC"
6335
ac_ext=c
6336
ac_cpp='$CPP $CPPFLAGS'
6337
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
 
6341
 
6342
# Source file extension for C test sources.
6343
ac_ext=c
6344
 
6345
# Object file extension for compiled C test sources.
6346
objext=o
6347
objext=$objext
6348
 
6349
# Code to be used in simple compile tests
6350
lt_simple_compile_test_code="int some_variable = 0;"
6351
 
6352
# Code to be used in simple link tests
6353
lt_simple_link_test_code='int main(){return(0);}'
6354
 
6355
 
6356
# If no C compiler was specified, use CC.
6357
LTCC=${LTCC-"$CC"}
6358
 
6359
# If no C compiler flags were specified, use CFLAGS.
6360
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6361
 
6362
# Allow CC to be a program name with arguments.
6363
compiler=$CC
6364
 
6365
 
6366
# save warnings/boilerplate of simple test code
6367
ac_outfile=conftest.$ac_objext
6368
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6369
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6370
_lt_compiler_boilerplate=`cat conftest.err`
6371
$rm conftest*
6372
 
6373
ac_outfile=conftest.$ac_objext
6374
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6375
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6376
_lt_linker_boilerplate=`cat conftest.err`
6377
$rm conftest*
6378
 
6379
 
6380
 
6381
lt_prog_compiler_no_builtin_flag=
6382
 
6383
if test "$GCC" = yes; then
6384
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6385
 
6386
 
6387
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6388
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6389
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6390
  echo $ECHO_N "(cached) $ECHO_C" >&6
6391
else
6392
  lt_cv_prog_compiler_rtti_exceptions=no
6393
  ac_outfile=conftest.$ac_objext
6394
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6395
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6396
   # Insert the option either (1) after the last *FLAGS variable, or
6397
   # (2) before a word containing "conftest.", or (3) at the end.
6398
   # Note that $ac_compile itself does not contain backslashes and begins
6399
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6400
   # The option is referenced via a variable to avoid confusing sed.
6401
   lt_compile=`echo "$ac_compile" | $SED \
6402
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6403
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6404
   -e 's:$: $lt_compiler_flag:'`
6405
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6406
   (eval "$lt_compile" 2>conftest.err)
6407
   ac_status=$?
6408
   cat conftest.err >&5
6409
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6410
   if (exit $ac_status) && test -s "$ac_outfile"; then
6411
     # The compiler can only warn and ignore the option if not recognized
6412
     # So say no if there are warnings other than the usual output.
6413
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6414
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6415
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6416
       lt_cv_prog_compiler_rtti_exceptions=yes
6417
     fi
6418
   fi
6419
   $rm conftest*
6420
 
6421
fi
6422
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6423
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6424
 
6425
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6426
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6427
else
6428
    :
6429
fi
6430
 
6431
fi
6432
 
6433
lt_prog_compiler_wl=
6434
lt_prog_compiler_pic=
6435
lt_prog_compiler_static=
6436
 
6437
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6438
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6439
 
6440
  if test "$GCC" = yes; then
6441
    lt_prog_compiler_wl='-Wl,'
6442
    lt_prog_compiler_static='-static'
6443
 
6444
    case $host_os in
6445
      aix*)
6446
      # All AIX code is PIC.
6447
      if test "$host_cpu" = ia64; then
6448
        # AIX 5 now supports IA64 processor
6449
        lt_prog_compiler_static='-Bstatic'
6450
      fi
6451
      ;;
6452
 
6453
    amigaos*)
6454
      # FIXME: we need at least 68020 code to build shared libraries, but
6455
      # adding the `-m68020' flag to GCC prevents building anything better,
6456
      # like `-m68040'.
6457
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6458
      ;;
6459
 
6460
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6461
      # PIC is the default for these OSes.
6462
      ;;
6463
 
6464
    mingw* | cygwin* | pw32* | os2*)
6465
      # This hack is so that the source file can tell whether it is being
6466
      # built for inclusion in a dll (and should export symbols for example).
6467
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6468
      # (--disable-auto-import) libraries
6469
      lt_prog_compiler_pic='-DDLL_EXPORT'
6470
      ;;
6471
 
6472
    darwin* | rhapsody*)
6473
      # PIC is the default on this platform
6474
      # Common symbols not allowed in MH_DYLIB files
6475
      lt_prog_compiler_pic='-fno-common'
6476
      ;;
6477
 
6478
    interix[3-9]*)
6479
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6480
      # Instead, we relocate shared libraries at runtime.
6481
      ;;
6482
 
6483
    msdosdjgpp*)
6484
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6485
      # on systems that don't support them.
6486
      lt_prog_compiler_can_build_shared=no
6487
      enable_shared=no
6488
      ;;
6489
 
6490
    sysv4*MP*)
6491
      if test -d /usr/nec; then
6492
        lt_prog_compiler_pic=-Kconform_pic
6493
      fi
6494
      ;;
6495
 
6496
    hpux*)
6497
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6498
      # not for PA HP-UX.
6499
      case $host_cpu in
6500
      hppa*64*|ia64*)
6501
        # +Z the default
6502
        ;;
6503
      *)
6504
        lt_prog_compiler_pic='-fPIC'
6505
        ;;
6506
      esac
6507
      ;;
6508
 
6509
    *)
6510
      lt_prog_compiler_pic='-fPIC'
6511
      ;;
6512
    esac
6513
  else
6514
    # PORTME Check for flag to pass linker flags through the system compiler.
6515
    case $host_os in
6516
    aix*)
6517
      lt_prog_compiler_wl='-Wl,'
6518
      if test "$host_cpu" = ia64; then
6519
        # AIX 5 now supports IA64 processor
6520
        lt_prog_compiler_static='-Bstatic'
6521
      else
6522
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6523
      fi
6524
      ;;
6525
      darwin*)
6526
        # PIC is the default on this platform
6527
        # Common symbols not allowed in MH_DYLIB files
6528
       case $cc_basename in
6529
         xlc*)
6530
         lt_prog_compiler_pic='-qnocommon'
6531
         lt_prog_compiler_wl='-Wl,'
6532
         ;;
6533
       esac
6534
       ;;
6535
 
6536
    mingw* | cygwin* | pw32* | os2*)
6537
      # This hack is so that the source file can tell whether it is being
6538
      # built for inclusion in a dll (and should export symbols for example).
6539
      lt_prog_compiler_pic='-DDLL_EXPORT'
6540
      ;;
6541
 
6542
    hpux9* | hpux10* | hpux11*)
6543
      lt_prog_compiler_wl='-Wl,'
6544
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6545
      # not for PA HP-UX.
6546
      case $host_cpu in
6547
      hppa*64*|ia64*)
6548
        # +Z the default
6549
        ;;
6550
      *)
6551
        lt_prog_compiler_pic='+Z'
6552
        ;;
6553
      esac
6554
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6555
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6556
      ;;
6557
 
6558
    irix5* | irix6* | nonstopux*)
6559
      lt_prog_compiler_wl='-Wl,'
6560
      # PIC (with -KPIC) is the default.
6561
      lt_prog_compiler_static='-non_shared'
6562
      ;;
6563
 
6564
    newsos6)
6565
      lt_prog_compiler_pic='-KPIC'
6566
      lt_prog_compiler_static='-Bstatic'
6567
      ;;
6568
 
6569
    linux* | k*bsd*-gnu)
6570
      case $cc_basename in
6571
      icc* | ecc*)
6572
        lt_prog_compiler_wl='-Wl,'
6573
        lt_prog_compiler_pic='-KPIC'
6574
        lt_prog_compiler_static='-static'
6575
        ;;
6576
      pgcc* | pgf77* | pgf90* | pgf95*)
6577
        # Portland Group compilers (*not* the Pentium gcc compiler,
6578
        # which looks to be a dead project)
6579
        lt_prog_compiler_wl='-Wl,'
6580
        lt_prog_compiler_pic='-fpic'
6581
        lt_prog_compiler_static='-Bstatic'
6582
        ;;
6583
      ccc*)
6584
        lt_prog_compiler_wl='-Wl,'
6585
        # All Alpha code is PIC.
6586
        lt_prog_compiler_static='-non_shared'
6587
        ;;
6588
      *)
6589
        case `$CC -V 2>&1 | sed 5q` in
6590
        *Sun\ C*)
6591
          # Sun C 5.9
6592
          lt_prog_compiler_pic='-KPIC'
6593
          lt_prog_compiler_static='-Bstatic'
6594
          lt_prog_compiler_wl='-Wl,'
6595
          ;;
6596
        *Sun\ F*)
6597
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6598
          lt_prog_compiler_pic='-KPIC'
6599
          lt_prog_compiler_static='-Bstatic'
6600
          lt_prog_compiler_wl=''
6601
          ;;
6602
        esac
6603
        ;;
6604
      esac
6605
      ;;
6606
 
6607
    osf3* | osf4* | osf5*)
6608
      lt_prog_compiler_wl='-Wl,'
6609
      # All OSF/1 code is PIC.
6610
      lt_prog_compiler_static='-non_shared'
6611
      ;;
6612
 
6613
    rdos*)
6614
      lt_prog_compiler_static='-non_shared'
6615
      ;;
6616
 
6617
    solaris*)
6618
      lt_prog_compiler_pic='-KPIC'
6619
      lt_prog_compiler_static='-Bstatic'
6620
      case $cc_basename in
6621
      f77* | f90* | f95*)
6622
        lt_prog_compiler_wl='-Qoption ld ';;
6623
      *)
6624
        lt_prog_compiler_wl='-Wl,';;
6625
      esac
6626
      ;;
6627
 
6628
    sunos4*)
6629
      lt_prog_compiler_wl='-Qoption ld '
6630
      lt_prog_compiler_pic='-PIC'
6631
      lt_prog_compiler_static='-Bstatic'
6632
      ;;
6633
 
6634
    sysv4 | sysv4.2uw2* | sysv4.3*)
6635
      lt_prog_compiler_wl='-Wl,'
6636
      lt_prog_compiler_pic='-KPIC'
6637
      lt_prog_compiler_static='-Bstatic'
6638
      ;;
6639
 
6640
    sysv4*MP*)
6641
      if test -d /usr/nec ;then
6642
        lt_prog_compiler_pic='-Kconform_pic'
6643
        lt_prog_compiler_static='-Bstatic'
6644
      fi
6645
      ;;
6646
 
6647
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6648
      lt_prog_compiler_wl='-Wl,'
6649
      lt_prog_compiler_pic='-KPIC'
6650
      lt_prog_compiler_static='-Bstatic'
6651
      ;;
6652
 
6653
    unicos*)
6654
      lt_prog_compiler_wl='-Wl,'
6655
      lt_prog_compiler_can_build_shared=no
6656
      ;;
6657
 
6658
    uts4*)
6659
      lt_prog_compiler_pic='-pic'
6660
      lt_prog_compiler_static='-Bstatic'
6661
      ;;
6662
 
6663
    *)
6664
      lt_prog_compiler_can_build_shared=no
6665
      ;;
6666
    esac
6667
  fi
6668
 
6669
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6670
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6671
 
6672
#
6673
# Check to make sure the PIC flag actually works.
6674
#
6675
if test -n "$lt_prog_compiler_pic"; then
6676
 
6677
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6678
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6679
if test "${lt_prog_compiler_pic_works+set}" = set; then
6680
  echo $ECHO_N "(cached) $ECHO_C" >&6
6681
else
6682
  lt_prog_compiler_pic_works=no
6683
  ac_outfile=conftest.$ac_objext
6684
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6685
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6686
   # Insert the option either (1) after the last *FLAGS variable, or
6687
   # (2) before a word containing "conftest.", or (3) at the end.
6688
   # Note that $ac_compile itself does not contain backslashes and begins
6689
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6690
   # The option is referenced via a variable to avoid confusing sed.
6691
   lt_compile=`echo "$ac_compile" | $SED \
6692
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6693
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6694
   -e 's:$: $lt_compiler_flag:'`
6695
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6696
   (eval "$lt_compile" 2>conftest.err)
6697
   ac_status=$?
6698
   cat conftest.err >&5
6699
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6700
   if (exit $ac_status) && test -s "$ac_outfile"; then
6701
     # The compiler can only warn and ignore the option if not recognized
6702
     # So say no if there are warnings other than the usual output.
6703
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6704
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6705
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6706
       lt_prog_compiler_pic_works=yes
6707
     fi
6708
   fi
6709
   $rm conftest*
6710
 
6711
fi
6712
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6713
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6714
 
6715
if test x"$lt_prog_compiler_pic_works" = xyes; then
6716
    case $lt_prog_compiler_pic in
6717
     "" | " "*) ;;
6718
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6719
     esac
6720
else
6721
    lt_prog_compiler_pic=
6722
     lt_prog_compiler_can_build_shared=no
6723
fi
6724
 
6725
fi
6726
case $host_os in
6727
  # For platforms which do not support PIC, -DPIC is meaningless:
6728
  *djgpp*)
6729
    lt_prog_compiler_pic=
6730
    ;;
6731
  *)
6732
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6733
    ;;
6734
esac
6735
 
6736
#
6737
# Check to make sure the static flag actually works.
6738
#
6739
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6740
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6741
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6742
if test "${lt_prog_compiler_static_works+set}" = set; then
6743
  echo $ECHO_N "(cached) $ECHO_C" >&6
6744
else
6745
  lt_prog_compiler_static_works=no
6746
   save_LDFLAGS="$LDFLAGS"
6747
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6748
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6749
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6750
     # The linker can only warn and ignore the option if not recognized
6751
     # So say no if there are warnings
6752
     if test -s conftest.err; then
6753
       # Append any errors to the config.log.
6754
       cat conftest.err 1>&5
6755
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6756
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6757
       if diff conftest.exp conftest.er2 >/dev/null; then
6758
         lt_prog_compiler_static_works=yes
6759
       fi
6760
     else
6761
       lt_prog_compiler_static_works=yes
6762
     fi
6763
   fi
6764
   $rm conftest*
6765
   LDFLAGS="$save_LDFLAGS"
6766
 
6767
fi
6768
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6769
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6770
 
6771
if test x"$lt_prog_compiler_static_works" = xyes; then
6772
    :
6773
else
6774
    lt_prog_compiler_static=
6775
fi
6776
 
6777
 
6778
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6779
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6780
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6781
  echo $ECHO_N "(cached) $ECHO_C" >&6
6782
else
6783
  lt_cv_prog_compiler_c_o=no
6784
   $rm -r conftest 2>/dev/null
6785
   mkdir conftest
6786
   cd conftest
6787
   mkdir out
6788
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6789
 
6790
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6791
   # Insert the option either (1) after the last *FLAGS variable, or
6792
   # (2) before a word containing "conftest.", or (3) at the end.
6793
   # Note that $ac_compile itself does not contain backslashes and begins
6794
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6795
   lt_compile=`echo "$ac_compile" | $SED \
6796
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6797
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6798
   -e 's:$: $lt_compiler_flag:'`
6799
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6800
   (eval "$lt_compile" 2>out/conftest.err)
6801
   ac_status=$?
6802
   cat out/conftest.err >&5
6803
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6804
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6805
   then
6806
     # The compiler can only warn and ignore the option if not recognized
6807
     # So say no if there are warnings
6808
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6809
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6810
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6811
       lt_cv_prog_compiler_c_o=yes
6812
     fi
6813
   fi
6814
   chmod u+w . 2>&5
6815
   $rm conftest*
6816
   # SGI C++ compiler will create directory out/ii_files/ for
6817
   # template instantiation
6818
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6819
   $rm out/* && rmdir out
6820
   cd ..
6821
   rmdir conftest
6822
   $rm conftest*
6823
 
6824
fi
6825
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6826
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6827
 
6828
 
6829
hard_links="nottested"
6830
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6831
  # do not overwrite the value of need_locks provided by the user
6832
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6833
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6834
  hard_links=yes
6835
  $rm conftest*
6836
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6837
  touch conftest.a
6838
  ln conftest.a conftest.b 2>&5 || hard_links=no
6839
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6840
  { echo "$as_me:$LINENO: result: $hard_links" >&5
6841
echo "${ECHO_T}$hard_links" >&6; }
6842
  if test "$hard_links" = no; then
6843
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6844
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6845
    need_locks=warn
6846
  fi
6847
else
6848
  need_locks=no
6849
fi
6850
 
6851
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6852
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6853
 
6854
  runpath_var=
6855
  allow_undefined_flag=
6856
  enable_shared_with_static_runtimes=no
6857
  archive_cmds=
6858
  archive_expsym_cmds=
6859
  old_archive_From_new_cmds=
6860
  old_archive_from_expsyms_cmds=
6861
  export_dynamic_flag_spec=
6862
  whole_archive_flag_spec=
6863
  thread_safe_flag_spec=
6864
  hardcode_libdir_flag_spec=
6865
  hardcode_libdir_flag_spec_ld=
6866
  hardcode_libdir_separator=
6867
  hardcode_direct=no
6868
  hardcode_minus_L=no
6869
  hardcode_shlibpath_var=unsupported
6870
  link_all_deplibs=unknown
6871
  hardcode_automatic=no
6872
  module_cmds=
6873
  module_expsym_cmds=
6874
  always_export_symbols=no
6875
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6876
  # include_expsyms should be a list of space-separated symbols to be *always*
6877
  # included in the symbol list
6878
  include_expsyms=
6879
  # exclude_expsyms can be an extended regexp of symbols to exclude
6880
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6881
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6882
  # as well as any symbol that contains `d'.
6883
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6884
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6885
  # platforms (ab)use it in PIC code, but their linkers get confused if
6886
  # the symbol is explicitly referenced.  Since portable code cannot
6887
  # rely on this symbol name, it's probably fine to never include it in
6888
  # preloaded symbol tables.
6889
  extract_expsyms_cmds=
6890
  # Just being paranoid about ensuring that cc_basename is set.
6891
  for cc_temp in $compiler""; do
6892
  case $cc_temp in
6893
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6894
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6895
    \-*) ;;
6896
    *) break;;
6897
  esac
6898
done
6899
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6900
 
6901
  case $host_os in
6902
  cygwin* | mingw* | pw32*)
6903
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6904
    # When not using gcc, we currently assume that we are using
6905
    # Microsoft Visual C++.
6906
    if test "$GCC" != yes; then
6907
      with_gnu_ld=no
6908
    fi
6909
    ;;
6910
  interix*)
6911
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6912
    with_gnu_ld=yes
6913
    ;;
6914
  openbsd*)
6915
    with_gnu_ld=no
6916
    ;;
6917
  esac
6918
 
6919
  ld_shlibs=yes
6920
  if test "$with_gnu_ld" = yes; then
6921
    # If archive_cmds runs LD, not CC, wlarc should be empty
6922
    wlarc='${wl}'
6923
 
6924
    # Set some defaults for GNU ld with shared library support. These
6925
    # are reset later if shared libraries are not supported. Putting them
6926
    # here allows them to be overridden if necessary.
6927
    runpath_var=LD_RUN_PATH
6928
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6929
    export_dynamic_flag_spec='${wl}--export-dynamic'
6930
    # ancient GNU ld didn't support --whole-archive et. al.
6931
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6932
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6933
      else
6934
        whole_archive_flag_spec=
6935
    fi
6936
    supports_anon_versioning=no
6937
    case `$LD -v 2>/dev/null` in
6938
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6939
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6940
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6941
      *\ 2.11.*) ;; # other 2.11 versions
6942
      *) supports_anon_versioning=yes ;;
6943
    esac
6944
 
6945
    # See if GNU ld supports shared libraries.
6946
    case $host_os in
6947
    aix3* | aix4* | aix5*)
6948
      # On AIX/PPC, the GNU linker is very broken
6949
      if test "$host_cpu" != ia64; then
6950
        ld_shlibs=no
6951
        cat <&2
6952
 
6953
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6954
*** to be unable to reliably create shared libraries on AIX.
6955
*** Therefore, libtool is disabling shared libraries support.  If you
6956
*** really care for shared libraries, you may want to modify your PATH
6957
*** so that a non-GNU linker is found, and then restart.
6958
 
6959
EOF
6960
      fi
6961
      ;;
6962
 
6963
    amigaos*)
6964
      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)'
6965
      hardcode_libdir_flag_spec='-L$libdir'
6966
      hardcode_minus_L=yes
6967
 
6968
      # Samuel A. Falvo II  reports
6969
      # that the semantics of dynamic libraries on AmigaOS, at least up
6970
      # to version 4, is to share data among multiple programs linked
6971
      # with the same dynamic library.  Since this doesn't match the
6972
      # behavior of shared libraries on other platforms, we can't use
6973
      # them.
6974
      ld_shlibs=no
6975
      ;;
6976
 
6977
    beos*)
6978
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6979
        allow_undefined_flag=unsupported
6980
        # Joseph Beckenbach  says some releases of gcc
6981
        # support --undefined.  This deserves some investigation.  FIXME
6982
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983
      else
6984
        ld_shlibs=no
6985
      fi
6986
      ;;
6987
 
6988
    cygwin* | mingw* | pw32*)
6989
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6990
      # as there is no search path for DLLs.
6991
      hardcode_libdir_flag_spec='-L$libdir'
6992
      allow_undefined_flag=unsupported
6993
      always_export_symbols=no
6994
      enable_shared_with_static_runtimes=yes
6995
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6996
 
6997
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6998
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6999
        # If the export-symbols file already is a .def file (1st line
7000
        # is EXPORTS), use it as is; otherwise, prepend...
7001
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7002
          cp $export_symbols $output_objdir/$soname.def;
7003
        else
7004
          echo EXPORTS > $output_objdir/$soname.def;
7005
          cat $export_symbols >> $output_objdir/$soname.def;
7006
        fi~
7007
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7008
      else
7009
        ld_shlibs=no
7010
      fi
7011
      ;;
7012
 
7013
    interix[3-9]*)
7014
      hardcode_direct=no
7015
      hardcode_shlibpath_var=no
7016
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7017
      export_dynamic_flag_spec='${wl}-E'
7018
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7019
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7020
      # default) and relocated if they conflict, which is a slow very memory
7021
      # consuming and fragmenting process.  To avoid this, we pick a random,
7022
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7023
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7024
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7025
      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'
7026
      ;;
7027
 
7028
    gnu* | linux* | k*bsd*-gnu)
7029
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7030
        tmp_addflag=
7031
        case $cc_basename,$host_cpu in
7032
        pgcc*)                          # Portland Group C compiler
7033
          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'
7034
          tmp_addflag=' $pic_flag'
7035
          ;;
7036
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7037
          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'
7038
          tmp_addflag=' $pic_flag -Mnomain' ;;
7039
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7040
          tmp_addflag=' -i_dynamic' ;;
7041
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7042
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7043
        ifc* | ifort*)                  # Intel Fortran compiler
7044
          tmp_addflag=' -nofor_main' ;;
7045
        esac
7046
        case `$CC -V 2>&1 | sed 5q` in
7047
        *Sun\ C*)                       # Sun C 5.9
7048
          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'
7049
          tmp_sharedflag='-G' ;;
7050
        *Sun\ F*)                       # Sun Fortran 8.3
7051
          tmp_sharedflag='-G' ;;
7052
        *)
7053
          tmp_sharedflag='-shared' ;;
7054
        esac
7055
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7056
 
7057
        if test $supports_anon_versioning = yes; then
7058
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7059
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7060
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7061
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7062
        fi
7063
      else
7064
        ld_shlibs=no
7065
      fi
7066
      ;;
7067
 
7068
    netbsd*)
7069
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7070
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7071
        wlarc=
7072
      else
7073
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7074
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7075
      fi
7076
      ;;
7077
 
7078
    solaris*)
7079
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7080
        ld_shlibs=no
7081
        cat <&2
7082
 
7083
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7084
*** create shared libraries on Solaris systems.  Therefore, libtool
7085
*** is disabling shared libraries support.  We urge you to upgrade GNU
7086
*** binutils to release 2.9.1 or newer.  Another option is to modify
7087
*** your PATH or compiler configuration so that the native linker is
7088
*** used, and then restart.
7089
 
7090
EOF
7091
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7092
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7093
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7094
      else
7095
        ld_shlibs=no
7096
      fi
7097
      ;;
7098
 
7099
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7100
      case `$LD -v 2>&1` in
7101
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7102
        ld_shlibs=no
7103
        cat <<_LT_EOF 1>&2
7104
 
7105
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7106
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7107
*** is disabling shared libraries support.  We urge you to upgrade GNU
7108
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7109
*** your PATH or compiler configuration so that the native linker is
7110
*** used, and then restart.
7111
 
7112
_LT_EOF
7113
        ;;
7114
        *)
7115
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7116
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7117
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7118
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7119
          else
7120
            ld_shlibs=no
7121
          fi
7122
        ;;
7123
      esac
7124
      ;;
7125
 
7126
    sunos4*)
7127
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7128
      wlarc=
7129
      hardcode_direct=yes
7130
      hardcode_shlibpath_var=no
7131
      ;;
7132
 
7133
    *)
7134
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7135
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7136
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7137
      else
7138
        ld_shlibs=no
7139
      fi
7140
      ;;
7141
    esac
7142
 
7143
    if test "$ld_shlibs" = no; then
7144
      runpath_var=
7145
      hardcode_libdir_flag_spec=
7146
      export_dynamic_flag_spec=
7147
      whole_archive_flag_spec=
7148
    fi
7149
  else
7150
    # PORTME fill in a description of your system's linker (not GNU ld)
7151
    case $host_os in
7152
    aix3*)
7153
      allow_undefined_flag=unsupported
7154
      always_export_symbols=yes
7155
      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'
7156
      # Note: this linker hardcodes the directories in LIBPATH if there
7157
      # are no directories specified by -L.
7158
      hardcode_minus_L=yes
7159
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7160
        # Neither direct hardcoding nor static linking is supported with a
7161
        # broken collect2.
7162
        hardcode_direct=unsupported
7163
      fi
7164
      ;;
7165
 
7166
    aix4* | aix5*)
7167
      if test "$host_cpu" = ia64; then
7168
        # On IA64, the linker does run time linking by default, so we don't
7169
        # have to do anything special.
7170
        aix_use_runtimelinking=no
7171
        exp_sym_flag='-Bexport'
7172
        no_entry_flag=""
7173
      else
7174
        # If we're using GNU nm, then we don't want the "-C" option.
7175
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7176
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7177
          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'
7178
        else
7179
          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'
7180
        fi
7181
        aix_use_runtimelinking=no
7182
 
7183
        # Test if we are trying to use run time linking or normal
7184
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7185
        # need to do runtime linking.
7186
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7187
          for ld_flag in $LDFLAGS; do
7188
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7189
            aix_use_runtimelinking=yes
7190
            break
7191
          fi
7192
          done
7193
          ;;
7194
        esac
7195
 
7196
        exp_sym_flag='-bexport'
7197
        no_entry_flag='-bnoentry'
7198
      fi
7199
 
7200
      # When large executables or shared objects are built, AIX ld can
7201
      # have problems creating the table of contents.  If linking a library
7202
      # or program results in "error TOC overflow" add -mminimal-toc to
7203
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7204
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7205
 
7206
      archive_cmds=''
7207
      hardcode_direct=yes
7208
      hardcode_libdir_separator=':'
7209
      link_all_deplibs=yes
7210
 
7211
      if test "$GCC" = yes; then
7212
        case $host_os in aix4.[012]|aix4.[012].*)
7213
        # We only want to do this on AIX 4.2 and lower, the check
7214
        # below for broken collect2 doesn't work under 4.3+
7215
          collect2name=`${CC} -print-prog-name=collect2`
7216
          if test -f "$collect2name" && \
7217
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7218
          then
7219
          # We have reworked collect2
7220
          :
7221
          else
7222
          # We have old collect2
7223
          hardcode_direct=unsupported
7224
          # It fails to find uninstalled libraries when the uninstalled
7225
          # path is not listed in the libpath.  Setting hardcode_minus_L
7226
          # to unsupported forces relinking
7227
          hardcode_minus_L=yes
7228
          hardcode_libdir_flag_spec='-L$libdir'
7229
          hardcode_libdir_separator=
7230
          fi
7231
          ;;
7232
        esac
7233
        shared_flag='-shared'
7234
        if test "$aix_use_runtimelinking" = yes; then
7235
          shared_flag="$shared_flag "'${wl}-G'
7236
        fi
7237
      else
7238
        # not using gcc
7239
        if test "$host_cpu" = ia64; then
7240
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7241
        # chokes on -Wl,-G. The following line is correct:
7242
          shared_flag='-G'
7243
        else
7244
          if test "$aix_use_runtimelinking" = yes; then
7245
            shared_flag='${wl}-G'
7246
          else
7247
            shared_flag='${wl}-bM:SRE'
7248
          fi
7249
        fi
7250
      fi
7251
 
7252
      # It seems that -bexpall does not export symbols beginning with
7253
      # underscore (_), so it is better to generate a list of symbols to export.
7254
      always_export_symbols=yes
7255
      if test "$aix_use_runtimelinking" = yes; then
7256
        # Warning - without using the other runtime loading flags (-brtl),
7257
        # -berok will link without error, but may produce a broken library.
7258
        allow_undefined_flag='-berok'
7259
       # Determine the default libpath from the value encoded in an empty executable.
7260
       cat >conftest.$ac_ext <<_ACEOF
7261
/* confdefs.h.  */
7262
_ACEOF
7263
cat confdefs.h >>conftest.$ac_ext
7264
cat >>conftest.$ac_ext <<_ACEOF
7265
/* end confdefs.h.  */
7266
 
7267
int
7268
main ()
7269
{
7270
 
7271
  ;
7272
  return 0;
7273
}
7274
_ACEOF
7275
rm -f conftest.$ac_objext conftest$ac_exeext
7276
if { (ac_try="$ac_link"
7277
case "(($ac_try" in
7278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279
  *) ac_try_echo=$ac_try;;
7280
esac
7281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282
  (eval "$ac_link") 2>conftest.er1
7283
  ac_status=$?
7284
  grep -v '^ *+' conftest.er1 >conftest.err
7285
  rm -f conftest.er1
7286
  cat conftest.err >&5
7287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288
  (exit $ac_status); } && {
7289
         test -z "$ac_c_werror_flag" ||
7290
         test ! -s conftest.err
7291
       } && test -s conftest$ac_exeext &&
7292
       $as_test_x conftest$ac_exeext; then
7293
 
7294
lt_aix_libpath_sed='
7295
    /Import File Strings/,/^$/ {
7296
        /^0/ {
7297
            s/^0  *\(.*\)$/\1/
7298
            p
7299
        }
7300
    }'
7301
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7302
# Check for a 64-bit object if we didn't find anything.
7303
if test -z "$aix_libpath"; then
7304
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7305
fi
7306
else
7307
  echo "$as_me: failed program was:" >&5
7308
sed 's/^/| /' conftest.$ac_ext >&5
7309
 
7310
 
7311
fi
7312
 
7313
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7314
      conftest$ac_exeext conftest.$ac_ext
7315
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7316
 
7317
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7318
        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"
7319
       else
7320
        if test "$host_cpu" = ia64; then
7321
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7322
          allow_undefined_flag="-z nodefs"
7323
          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"
7324
        else
7325
         # Determine the default libpath from the value encoded in an empty executable.
7326
         cat >conftest.$ac_ext <<_ACEOF
7327
/* confdefs.h.  */
7328
_ACEOF
7329
cat confdefs.h >>conftest.$ac_ext
7330
cat >>conftest.$ac_ext <<_ACEOF
7331
/* end confdefs.h.  */
7332
 
7333
int
7334
main ()
7335
{
7336
 
7337
  ;
7338
  return 0;
7339
}
7340
_ACEOF
7341
rm -f conftest.$ac_objext conftest$ac_exeext
7342
if { (ac_try="$ac_link"
7343
case "(($ac_try" in
7344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345
  *) ac_try_echo=$ac_try;;
7346
esac
7347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348
  (eval "$ac_link") 2>conftest.er1
7349
  ac_status=$?
7350
  grep -v '^ *+' conftest.er1 >conftest.err
7351
  rm -f conftest.er1
7352
  cat conftest.err >&5
7353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354
  (exit $ac_status); } && {
7355
         test -z "$ac_c_werror_flag" ||
7356
         test ! -s conftest.err
7357
       } && test -s conftest$ac_exeext &&
7358
       $as_test_x conftest$ac_exeext; then
7359
 
7360
lt_aix_libpath_sed='
7361
    /Import File Strings/,/^$/ {
7362
        /^0/ {
7363
            s/^0  *\(.*\)$/\1/
7364
            p
7365
        }
7366
    }'
7367
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7368
# Check for a 64-bit object if we didn't find anything.
7369
if test -z "$aix_libpath"; then
7370
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7371
fi
7372
else
7373
  echo "$as_me: failed program was:" >&5
7374
sed 's/^/| /' conftest.$ac_ext >&5
7375
 
7376
 
7377
fi
7378
 
7379
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7380
      conftest$ac_exeext conftest.$ac_ext
7381
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7382
 
7383
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7384
          # Warning - without using the other run time loading flags,
7385
          # -berok will link without error, but may produce a broken library.
7386
          no_undefined_flag=' ${wl}-bernotok'
7387
          allow_undefined_flag=' ${wl}-berok'
7388
          # Exported symbols can be pulled into shared objects from archives
7389
          whole_archive_flag_spec='$convenience'
7390
          archive_cmds_need_lc=yes
7391
          # This is similar to how AIX traditionally builds its shared libraries.
7392
          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'
7393
        fi
7394
      fi
7395
      ;;
7396
 
7397
    amigaos*)
7398
      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)'
7399
      hardcode_libdir_flag_spec='-L$libdir'
7400
      hardcode_minus_L=yes
7401
      # see comment about different semantics on the GNU ld section
7402
      ld_shlibs=no
7403
      ;;
7404
 
7405
    bsdi[45]*)
7406
      export_dynamic_flag_spec=-rdynamic
7407
      ;;
7408
 
7409
    cygwin* | mingw* | pw32*)
7410
      # When not using gcc, we currently assume that we are using
7411
      # Microsoft Visual C++.
7412
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7413
      # no search path for DLLs.
7414
      hardcode_libdir_flag_spec=' '
7415
      allow_undefined_flag=unsupported
7416
      # Tell ltmain to make .lib files, not .a files.
7417
      libext=lib
7418
      # Tell ltmain to make .dll files, not .so files.
7419
      shrext_cmds=".dll"
7420
      # FIXME: Setting linknames here is a bad hack.
7421
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7422
      # The linker will automatically build a .lib file if we build a DLL.
7423
      old_archive_From_new_cmds='true'
7424
      # FIXME: Should let the user specify the lib program.
7425
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7426
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7427
      enable_shared_with_static_runtimes=yes
7428
      ;;
7429
 
7430
    darwin* | rhapsody*)
7431
      case $host_os in
7432
        rhapsody* | darwin1.[012])
7433
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7434
         ;;
7435
       *) # Darwin 1.3 on
7436
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7437
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7438
         else
7439
           case ${MACOSX_DEPLOYMENT_TARGET} in
7440
             10.[012])
7441
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7442
               ;;
7443
             10.*)
7444
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7445
               ;;
7446
           esac
7447
         fi
7448
         ;;
7449
      esac
7450
      archive_cmds_need_lc=no
7451
      hardcode_direct=no
7452
      hardcode_automatic=yes
7453
      hardcode_shlibpath_var=unsupported
7454
      whole_archive_flag_spec=''
7455
      link_all_deplibs=yes
7456
    if test "$GCC" = yes ; then
7457
        output_verbose_link_cmd='echo'
7458
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7459
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7460
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7461
      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}'
7462
      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}'
7463
    else
7464
      case $cc_basename in
7465
        xlc*)
7466
         output_verbose_link_cmd='echo'
7467
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7468
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7469
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7470
         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}'
7471
          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}'
7472
          ;;
7473
       *)
7474
         ld_shlibs=no
7475
          ;;
7476
      esac
7477
    fi
7478
      ;;
7479
 
7480
    dgux*)
7481
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482
      hardcode_libdir_flag_spec='-L$libdir'
7483
      hardcode_shlibpath_var=no
7484
      ;;
7485
 
7486
    freebsd1*)
7487
      ld_shlibs=no
7488
      ;;
7489
 
7490
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7491
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7492
    # does not break anything, and helps significantly (at the cost of a little
7493
    # extra space).
7494
    freebsd2.2*)
7495
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7496
      hardcode_libdir_flag_spec='-R$libdir'
7497
      hardcode_direct=yes
7498
      hardcode_shlibpath_var=no
7499
      ;;
7500
 
7501
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7502
    freebsd2*)
7503
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7504
      hardcode_direct=yes
7505
      hardcode_minus_L=yes
7506
      hardcode_shlibpath_var=no
7507
      ;;
7508
 
7509
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7510
    freebsd* | dragonfly*)
7511
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7512
      hardcode_libdir_flag_spec='-R$libdir'
7513
      hardcode_direct=yes
7514
      hardcode_shlibpath_var=no
7515
      ;;
7516
 
7517
    hpux9*)
7518
      if test "$GCC" = yes; then
7519
        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'
7520
      else
7521
        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'
7522
      fi
7523
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7524
      hardcode_libdir_separator=:
7525
      hardcode_direct=yes
7526
 
7527
      # hardcode_minus_L: Not really in the search PATH,
7528
      # but as the default location of the library.
7529
      hardcode_minus_L=yes
7530
      export_dynamic_flag_spec='${wl}-E'
7531
      ;;
7532
 
7533
    hpux10*)
7534
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7535
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7536
      else
7537
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7538
      fi
7539
      if test "$with_gnu_ld" = no; then
7540
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7541
        hardcode_libdir_separator=:
7542
 
7543
        hardcode_direct=yes
7544
        export_dynamic_flag_spec='${wl}-E'
7545
 
7546
        # hardcode_minus_L: Not really in the search PATH,
7547
        # but as the default location of the library.
7548
        hardcode_minus_L=yes
7549
      fi
7550
      ;;
7551
 
7552
    hpux11*)
7553
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7554
        case $host_cpu in
7555
        hppa*64*)
7556
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7557
          ;;
7558
        ia64*)
7559
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7560
          ;;
7561
        *)
7562
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7563
          ;;
7564
        esac
7565
      else
7566
        case $host_cpu in
7567
        hppa*64*)
7568
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7569
          ;;
7570
        ia64*)
7571
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7572
          ;;
7573
        *)
7574
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7575
          ;;
7576
        esac
7577
      fi
7578
      if test "$with_gnu_ld" = no; then
7579
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7580
        hardcode_libdir_separator=:
7581
 
7582
        case $host_cpu in
7583
        hppa*64*|ia64*)
7584
          hardcode_libdir_flag_spec_ld='+b $libdir'
7585
          hardcode_direct=no
7586
          hardcode_shlibpath_var=no
7587
          ;;
7588
        *)
7589
          hardcode_direct=yes
7590
          export_dynamic_flag_spec='${wl}-E'
7591
 
7592
          # hardcode_minus_L: Not really in the search PATH,
7593
          # but as the default location of the library.
7594
          hardcode_minus_L=yes
7595
          ;;
7596
        esac
7597
      fi
7598
      ;;
7599
 
7600
    irix5* | irix6* | nonstopux*)
7601
      if test "$GCC" = yes; then
7602
        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'
7603
      else
7604
        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'
7605
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7606
      fi
7607
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7608
      hardcode_libdir_separator=:
7609
      link_all_deplibs=yes
7610
      ;;
7611
 
7612
    netbsd*)
7613
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7614
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7615
      else
7616
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7617
      fi
7618
      hardcode_libdir_flag_spec='-R$libdir'
7619
      hardcode_direct=yes
7620
      hardcode_shlibpath_var=no
7621
      ;;
7622
 
7623
    newsos6)
7624
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625
      hardcode_direct=yes
7626
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7627
      hardcode_libdir_separator=:
7628
      hardcode_shlibpath_var=no
7629
      ;;
7630
 
7631
    openbsd*)
7632
      if test -f /usr/libexec/ld.so; then
7633
        hardcode_direct=yes
7634
        hardcode_shlibpath_var=no
7635
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7636
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7637
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7638
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7639
          export_dynamic_flag_spec='${wl}-E'
7640
        else
7641
          case $host_os in
7642
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7643
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7644
             hardcode_libdir_flag_spec='-R$libdir'
7645
             ;;
7646
           *)
7647
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7648
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7649
             ;;
7650
          esac
7651
        fi
7652
      else
7653
        ld_shlibs=no
7654
      fi
7655
      ;;
7656
 
7657
    os2*)
7658
      hardcode_libdir_flag_spec='-L$libdir'
7659
      hardcode_minus_L=yes
7660
      allow_undefined_flag=unsupported
7661
      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'
7662
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7663
      ;;
7664
 
7665
    osf3*)
7666
      if test "$GCC" = yes; then
7667
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7668
        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'
7669
      else
7670
        allow_undefined_flag=' -expect_unresolved \*'
7671
        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'
7672
      fi
7673
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7674
      hardcode_libdir_separator=:
7675
      ;;
7676
 
7677
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7678
      if test "$GCC" = yes; then
7679
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7680
        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'
7681
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7682
      else
7683
        allow_undefined_flag=' -expect_unresolved \*'
7684
        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'
7685
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7686
        $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'
7687
 
7688
        # Both c and cxx compiler support -rpath directly
7689
        hardcode_libdir_flag_spec='-rpath $libdir'
7690
      fi
7691
      hardcode_libdir_separator=:
7692
      ;;
7693
 
7694
    solaris*)
7695
      no_undefined_flag=' -z text'
7696
      if test "$GCC" = yes; then
7697
        wlarc='${wl}'
7698
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7699
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7700
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7701
      else
7702
        wlarc=''
7703
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7704
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7705
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7706
      fi
7707
      hardcode_libdir_flag_spec='-R$libdir'
7708
      hardcode_shlibpath_var=no
7709
      case $host_os in
7710
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7711
      *)
7712
        # The compiler driver will combine and reorder linker options,
7713
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7714
        # but is careful enough not to reorder.
7715
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7716
        if test "$GCC" = yes; then
7717
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7718
        else
7719
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7720
        fi
7721
        ;;
7722
      esac
7723
      link_all_deplibs=yes
7724
      ;;
7725
 
7726
    sunos4*)
7727
      if test "x$host_vendor" = xsequent; then
7728
        # Use $CC to link under sequent, because it throws in some extra .o
7729
        # files that make .init and .fini sections work.
7730
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7731
      else
7732
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7733
      fi
7734
      hardcode_libdir_flag_spec='-L$libdir'
7735
      hardcode_direct=yes
7736
      hardcode_minus_L=yes
7737
      hardcode_shlibpath_var=no
7738
      ;;
7739
 
7740
    sysv4)
7741
      case $host_vendor in
7742
        sni)
7743
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7744
          hardcode_direct=yes # is this really true???
7745
        ;;
7746
        siemens)
7747
          ## LD is ld it makes a PLAMLIB
7748
          ## CC just makes a GrossModule.
7749
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7750
          reload_cmds='$CC -r -o $output$reload_objs'
7751
          hardcode_direct=no
7752
        ;;
7753
        motorola)
7754
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7755
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7756
        ;;
7757
      esac
7758
      runpath_var='LD_RUN_PATH'
7759
      hardcode_shlibpath_var=no
7760
      ;;
7761
 
7762
    sysv4.3*)
7763
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7764
      hardcode_shlibpath_var=no
7765
      export_dynamic_flag_spec='-Bexport'
7766
      ;;
7767
 
7768
    sysv4*MP*)
7769
      if test -d /usr/nec; then
7770
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7771
        hardcode_shlibpath_var=no
7772
        runpath_var=LD_RUN_PATH
7773
        hardcode_runpath_var=yes
7774
        ld_shlibs=yes
7775
      fi
7776
      ;;
7777
 
7778
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7779
      no_undefined_flag='${wl}-z,text'
7780
      archive_cmds_need_lc=no
7781
      hardcode_shlibpath_var=no
7782
      runpath_var='LD_RUN_PATH'
7783
 
7784
      if test "$GCC" = yes; then
7785
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7786
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7787
      else
7788
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7789
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7790
      fi
7791
      ;;
7792
 
7793
    sysv5* | sco3.2v5* | sco5v6*)
7794
      # Note: We can NOT use -z defs as we might desire, because we do not
7795
      # link with -lc, and that would cause any symbols used from libc to
7796
      # always be unresolved, which means just about no library would
7797
      # ever link correctly.  If we're not using GNU ld we use -z text
7798
      # though, which does catch some bad symbols but isn't as heavy-handed
7799
      # as -z defs.
7800
      no_undefined_flag='${wl}-z,text'
7801
      allow_undefined_flag='${wl}-z,nodefs'
7802
      archive_cmds_need_lc=no
7803
      hardcode_shlibpath_var=no
7804
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7805
      hardcode_libdir_separator=':'
7806
      link_all_deplibs=yes
7807
      export_dynamic_flag_spec='${wl}-Bexport'
7808
      runpath_var='LD_RUN_PATH'
7809
 
7810
      if test "$GCC" = yes; then
7811
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7812
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7813
      else
7814
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7816
      fi
7817
      ;;
7818
 
7819
    uts4*)
7820
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7821
      hardcode_libdir_flag_spec='-L$libdir'
7822
      hardcode_shlibpath_var=no
7823
      ;;
7824
 
7825
    *)
7826
      ld_shlibs=no
7827
      ;;
7828
    esac
7829
  fi
7830
 
7831
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7832
echo "${ECHO_T}$ld_shlibs" >&6; }
7833
test "$ld_shlibs" = no && can_build_shared=no
7834
 
7835
#
7836
# Do we need to explicitly link libc?
7837
#
7838
case "x$archive_cmds_need_lc" in
7839
x|xyes)
7840
  # Assume -lc should be added
7841
  archive_cmds_need_lc=yes
7842
 
7843
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7844
    case $archive_cmds in
7845
    *'~'*)
7846
      # FIXME: we may have to deal with multi-command sequences.
7847
      ;;
7848
    '$CC '*)
7849
      # Test whether the compiler implicitly links with -lc since on some
7850
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7851
      # to ld, don't add -lc before -lgcc.
7852
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7853
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7854
      $rm conftest*
7855
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7856
 
7857
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858
  (eval $ac_compile) 2>&5
7859
  ac_status=$?
7860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861
  (exit $ac_status); } 2>conftest.err; then
7862
        soname=conftest
7863
        lib=conftest
7864
        libobjs=conftest.$ac_objext
7865
        deplibs=
7866
        wl=$lt_prog_compiler_wl
7867
        pic_flag=$lt_prog_compiler_pic
7868
        compiler_flags=-v
7869
        linker_flags=-v
7870
        verstring=
7871
        output_objdir=.
7872
        libname=conftest
7873
        lt_save_allow_undefined_flag=$allow_undefined_flag
7874
        allow_undefined_flag=
7875
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7876
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7877
  ac_status=$?
7878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879
  (exit $ac_status); }
7880
        then
7881
          archive_cmds_need_lc=no
7882
        else
7883
          archive_cmds_need_lc=yes
7884
        fi
7885
        allow_undefined_flag=$lt_save_allow_undefined_flag
7886
      else
7887
        cat conftest.err 1>&5
7888
      fi
7889
      $rm conftest*
7890
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7891
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7892
      ;;
7893
    esac
7894
  fi
7895
  ;;
7896
esac
7897
 
7898
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7899
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7900
library_names_spec=
7901
libname_spec='lib$name'
7902
soname_spec=
7903
shrext_cmds=".so"
7904
postinstall_cmds=
7905
postuninstall_cmds=
7906
finish_cmds=
7907
finish_eval=
7908
shlibpath_var=
7909
shlibpath_overrides_runpath=unknown
7910
version_type=none
7911
dynamic_linker="$host_os ld.so"
7912
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7913
 
7914
if test "$GCC" = yes; then
7915
  case $host_os in
7916
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7917
    *) lt_awk_arg="/^libraries:/" ;;
7918
  esac
7919
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7920
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7921
    # if the path contains ";" then we assume it to be the separator
7922
    # otherwise default to the standard path separator (i.e. ":") - it is
7923
    # assumed that no part of a normal pathname contains ";" but that should
7924
    # okay in the real world where ";" in dirpaths is itself problematic.
7925
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7926
  else
7927
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7928
  fi
7929
  # Ok, now we have the path, separated by spaces, we can step through it
7930
  # and add multilib dir if necessary.
7931
  lt_tmp_lt_search_path_spec=
7932
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7933
  for lt_sys_path in $lt_search_path_spec; do
7934
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7935
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7936
    else
7937
      test -d "$lt_sys_path" && \
7938
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7939
    fi
7940
  done
7941
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7942
BEGIN {RS=" "; FS="/|\n";} {
7943
  lt_foo="";
7944
  lt_count=0;
7945
  for (lt_i = NF; lt_i > 0; lt_i--) {
7946
    if ($lt_i != "" && $lt_i != ".") {
7947
      if ($lt_i == "..") {
7948
        lt_count++;
7949
      } else {
7950
        if (lt_count == 0) {
7951
          lt_foo="/" $lt_i lt_foo;
7952
        } else {
7953
          lt_count--;
7954
        }
7955
      }
7956
    }
7957
  }
7958
  if (lt_foo != "") { lt_freq[lt_foo]++; }
7959
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
7960
}'`
7961
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
7962
else
7963
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7964
fi
7965
need_lib_prefix=unknown
7966
hardcode_into_libs=no
7967
 
7968
# when you set need_version to no, make sure it does not cause -set_version
7969
# flags to be left without arguments
7970
need_version=unknown
7971
 
7972
case $host_os in
7973
aix3*)
7974
  version_type=linux
7975
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7976
  shlibpath_var=LIBPATH
7977
 
7978
  # AIX 3 has no versioning support, so we append a major version to the name.
7979
  soname_spec='${libname}${release}${shared_ext}$major'
7980
  ;;
7981
 
7982
aix4* | aix5*)
7983
  version_type=linux
7984
  need_lib_prefix=no
7985
  need_version=no
7986
  hardcode_into_libs=yes
7987
  if test "$host_cpu" = ia64; then
7988
    # AIX 5 supports IA64
7989
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7990
    shlibpath_var=LD_LIBRARY_PATH
7991
  else
7992
    # With GCC up to 2.95.x, collect2 would create an import file
7993
    # for dependence libraries.  The import file would start with
7994
    # the line `#! .'.  This would cause the generated library to
7995
    # depend on `.', always an invalid library.  This was fixed in
7996
    # development snapshots of GCC prior to 3.0.
7997
    case $host_os in
7998
      aix4 | aix4.[01] | aix4.[01].*)
7999
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8000
           echo ' yes '
8001
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8002
        :
8003
      else
8004
        can_build_shared=no
8005
      fi
8006
      ;;
8007
    esac
8008
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8009
    # soname into executable. Probably we can add versioning support to
8010
    # collect2, so additional links can be useful in future.
8011
    if test "$aix_use_runtimelinking" = yes; then
8012
      # If using run time linking (on AIX 4.2 or later) use lib.so
8013
      # instead of lib.a to let people know that these are not
8014
      # typical AIX shared libraries.
8015
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016
    else
8017
      # We preserve .a as extension for shared libraries through AIX4.2
8018
      # and later when we are not doing run time linking.
8019
      library_names_spec='${libname}${release}.a $libname.a'
8020
      soname_spec='${libname}${release}${shared_ext}$major'
8021
    fi
8022
    shlibpath_var=LIBPATH
8023
  fi
8024
  ;;
8025
 
8026
amigaos*)
8027
  library_names_spec='$libname.ixlibrary $libname.a'
8028
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8029
  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'
8030
  ;;
8031
 
8032
beos*)
8033
  library_names_spec='${libname}${shared_ext}'
8034
  dynamic_linker="$host_os ld.so"
8035
  shlibpath_var=LIBRARY_PATH
8036
  ;;
8037
 
8038
bsdi[45]*)
8039
  version_type=linux
8040
  need_version=no
8041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042
  soname_spec='${libname}${release}${shared_ext}$major'
8043
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8044
  shlibpath_var=LD_LIBRARY_PATH
8045
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8046
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8047
  # the default ld.so.conf also contains /usr/contrib/lib and
8048
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8049
  # libtool to hard-code these into programs
8050
  ;;
8051
 
8052
cygwin* | mingw* | pw32*)
8053
  version_type=windows
8054
  shrext_cmds=".dll"
8055
  need_version=no
8056
  need_lib_prefix=no
8057
 
8058
  case $GCC,$host_os in
8059
  yes,cygwin* | yes,mingw* | yes,pw32*)
8060
    library_names_spec='$libname.dll.a'
8061
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8062
    postinstall_cmds='base_file=`basename \${file}`~
8063
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8064
      dldir=$destdir/`dirname \$dlpath`~
8065
      test -d \$dldir || mkdir -p \$dldir~
8066
      $install_prog $dir/$dlname \$dldir/$dlname~
8067
      chmod a+x \$dldir/$dlname'
8068
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8069
      dlpath=$dir/\$dldll~
8070
       $rm \$dlpath'
8071
    shlibpath_overrides_runpath=yes
8072
 
8073
    case $host_os in
8074
    cygwin*)
8075
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8076
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8077
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8078
      ;;
8079
    mingw*)
8080
      # MinGW DLLs use traditional 'lib' prefix
8081
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8082
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8083
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8084
        # It is most probably a Windows format PATH printed by
8085
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8086
        # path with ; separators, and with drive letters. We can handle the
8087
        # drive letters (cygwin fileutils understands them), so leave them,
8088
        # especially as we might pass files found there to a mingw objdump,
8089
        # which wouldn't understand a cygwinified path. Ahh.
8090
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8091
      else
8092
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8093
      fi
8094
      ;;
8095
    pw32*)
8096
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8097
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8098
      ;;
8099
    esac
8100
    ;;
8101
 
8102
  *)
8103
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8104
    ;;
8105
  esac
8106
  dynamic_linker='Win32 ld.exe'
8107
  # FIXME: first we should search . and the directory the executable is in
8108
  shlibpath_var=PATH
8109
  ;;
8110
 
8111
darwin* | rhapsody*)
8112
  dynamic_linker="$host_os dyld"
8113
  version_type=darwin
8114
  need_lib_prefix=no
8115
  need_version=no
8116
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8117
  soname_spec='${libname}${release}${major}$shared_ext'
8118
  shlibpath_overrides_runpath=yes
8119
  shlibpath_var=DYLD_LIBRARY_PATH
8120
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8121
 
8122
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8123
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8124
  ;;
8125
 
8126
dgux*)
8127
  version_type=linux
8128
  need_lib_prefix=no
8129
  need_version=no
8130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8131
  soname_spec='${libname}${release}${shared_ext}$major'
8132
  shlibpath_var=LD_LIBRARY_PATH
8133
  ;;
8134
 
8135
freebsd1*)
8136
  dynamic_linker=no
8137
  ;;
8138
 
8139
freebsd* | dragonfly*)
8140
  # DragonFly does not have aout.  When/if they implement a new
8141
  # versioning mechanism, adjust this.
8142
  if test -x /usr/bin/objformat; then
8143
    objformat=`/usr/bin/objformat`
8144
  else
8145
    case $host_os in
8146
    freebsd[123]*) objformat=aout ;;
8147
    *) objformat=elf ;;
8148
    esac
8149
  fi
8150
  version_type=freebsd-$objformat
8151
  case $version_type in
8152
    freebsd-elf*)
8153
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8154
      need_version=no
8155
      need_lib_prefix=no
8156
      ;;
8157
    freebsd-*)
8158
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8159
      need_version=yes
8160
      ;;
8161
  esac
8162
  shlibpath_var=LD_LIBRARY_PATH
8163
  case $host_os in
8164
  freebsd2*)
8165
    shlibpath_overrides_runpath=yes
8166
    ;;
8167
  freebsd3.[01]* | freebsdelf3.[01]*)
8168
    shlibpath_overrides_runpath=yes
8169
    hardcode_into_libs=yes
8170
    ;;
8171
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8172
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8173
    shlibpath_overrides_runpath=no
8174
    hardcode_into_libs=yes
8175
    ;;
8176
  *) # from 4.6 on, and DragonFly
8177
    shlibpath_overrides_runpath=yes
8178
    hardcode_into_libs=yes
8179
    ;;
8180
  esac
8181
  ;;
8182
 
8183
gnu*)
8184
  version_type=linux
8185
  need_lib_prefix=no
8186
  need_version=no
8187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8188
  soname_spec='${libname}${release}${shared_ext}$major'
8189
  shlibpath_var=LD_LIBRARY_PATH
8190
  hardcode_into_libs=yes
8191
  ;;
8192
 
8193
hpux9* | hpux10* | hpux11*)
8194
  # Give a soname corresponding to the major version so that dld.sl refuses to
8195
  # link against other versions.
8196
  version_type=sunos
8197
  need_lib_prefix=no
8198
  need_version=no
8199
  case $host_cpu in
8200
  ia64*)
8201
    shrext_cmds='.so'
8202
    hardcode_into_libs=yes
8203
    dynamic_linker="$host_os dld.so"
8204
    shlibpath_var=LD_LIBRARY_PATH
8205
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8206
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8207
    soname_spec='${libname}${release}${shared_ext}$major'
8208
    if test "X$HPUX_IA64_MODE" = X32; then
8209
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8210
    else
8211
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8212
    fi
8213
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8214
    ;;
8215
   hppa*64*)
8216
     shrext_cmds='.sl'
8217
     hardcode_into_libs=yes
8218
     dynamic_linker="$host_os dld.sl"
8219
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8220
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8221
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8222
     soname_spec='${libname}${release}${shared_ext}$major'
8223
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8224
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8225
     ;;
8226
   *)
8227
    shrext_cmds='.sl'
8228
    dynamic_linker="$host_os dld.sl"
8229
    shlibpath_var=SHLIB_PATH
8230
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8231
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8232
    soname_spec='${libname}${release}${shared_ext}$major'
8233
    ;;
8234
  esac
8235
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8236
  postinstall_cmds='chmod 555 $lib'
8237
  ;;
8238
 
8239
interix[3-9]*)
8240
  version_type=linux
8241
  need_lib_prefix=no
8242
  need_version=no
8243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8244
  soname_spec='${libname}${release}${shared_ext}$major'
8245
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8246
  shlibpath_var=LD_LIBRARY_PATH
8247
  shlibpath_overrides_runpath=no
8248
  hardcode_into_libs=yes
8249
  ;;
8250
 
8251
irix5* | irix6* | nonstopux*)
8252
  case $host_os in
8253
    nonstopux*) version_type=nonstopux ;;
8254
    *)
8255
        if test "$lt_cv_prog_gnu_ld" = yes; then
8256
                version_type=linux
8257
        else
8258
                version_type=irix
8259
        fi ;;
8260
  esac
8261
  need_lib_prefix=no
8262
  need_version=no
8263
  soname_spec='${libname}${release}${shared_ext}$major'
8264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8265
  case $host_os in
8266
  irix5* | nonstopux*)
8267
    libsuff= shlibsuff=
8268
    ;;
8269
  *)
8270
    case $LD in # libtool.m4 will add one of these switches to LD
8271
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8272
      libsuff= shlibsuff= libmagic=32-bit;;
8273
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8274
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8275
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8276
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8277
    *) libsuff= shlibsuff= libmagic=never-match;;
8278
    esac
8279
    ;;
8280
  esac
8281
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8282
  shlibpath_overrides_runpath=no
8283
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8284
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8285
  hardcode_into_libs=yes
8286
  ;;
8287
 
8288
# No shared lib support for Linux oldld, aout, or coff.
8289
linux*oldld* | linux*aout* | linux*coff*)
8290
  dynamic_linker=no
8291
  ;;
8292
 
8293
# This must be Linux ELF.
8294
linux* | k*bsd*-gnu)
8295
  version_type=linux
8296
  need_lib_prefix=no
8297
  need_version=no
8298
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299
  soname_spec='${libname}${release}${shared_ext}$major'
8300
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8301
  shlibpath_var=LD_LIBRARY_PATH
8302
  shlibpath_overrides_runpath=no
8303
  # This implies no fast_install, which is unacceptable.
8304
  # Some rework will be needed to allow for fast_install
8305
  # before this can be enabled.
8306
  hardcode_into_libs=yes
8307
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8308
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8309
 
8310
  # Append ld.so.conf contents to the search path
8311
  if test -f /etc/ld.so.conf; then
8312
    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' ' '`
8313
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8314
  fi
8315
 
8316
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8317
  # powerpc, because MkLinux only supported shared libraries with the
8318
  # GNU dynamic linker.  Since this was broken with cross compilers,
8319
  # most powerpc-linux boxes support dynamic linking these days and
8320
  # people can always --disable-shared, the test was removed, and we
8321
  # assume the GNU/Linux dynamic linker is in use.
8322
  dynamic_linker='GNU/Linux ld.so'
8323
  ;;
8324
 
8325
netbsd*)
8326
  version_type=sunos
8327
  need_lib_prefix=no
8328
  need_version=no
8329
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8330
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8331
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8332
    dynamic_linker='NetBSD (a.out) ld.so'
8333
  else
8334
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8335
    soname_spec='${libname}${release}${shared_ext}$major'
8336
    dynamic_linker='NetBSD ld.elf_so'
8337
  fi
8338
  shlibpath_var=LD_LIBRARY_PATH
8339
  shlibpath_overrides_runpath=yes
8340
  hardcode_into_libs=yes
8341
  ;;
8342
 
8343
newsos6)
8344
  version_type=linux
8345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346
  shlibpath_var=LD_LIBRARY_PATH
8347
  shlibpath_overrides_runpath=yes
8348
  ;;
8349
 
8350
nto-qnx*)
8351
  version_type=linux
8352
  need_lib_prefix=no
8353
  need_version=no
8354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8355
  soname_spec='${libname}${release}${shared_ext}$major'
8356
  shlibpath_var=LD_LIBRARY_PATH
8357
  shlibpath_overrides_runpath=yes
8358
  ;;
8359
 
8360
openbsd*)
8361
  version_type=sunos
8362
  sys_lib_dlsearch_path_spec="/usr/lib"
8363
  need_lib_prefix=no
8364
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8365
  case $host_os in
8366
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8367
    *)                         need_version=no  ;;
8368
  esac
8369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8370
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8371
  shlibpath_var=LD_LIBRARY_PATH
8372
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8373
    case $host_os in
8374
      openbsd2.[89] | openbsd2.[89].*)
8375
        shlibpath_overrides_runpath=no
8376
        ;;
8377
      *)
8378
        shlibpath_overrides_runpath=yes
8379
        ;;
8380
      esac
8381
  else
8382
    shlibpath_overrides_runpath=yes
8383
  fi
8384
  ;;
8385
 
8386
os2*)
8387
  libname_spec='$name'
8388
  shrext_cmds=".dll"
8389
  need_lib_prefix=no
8390
  library_names_spec='$libname${shared_ext} $libname.a'
8391
  dynamic_linker='OS/2 ld.exe'
8392
  shlibpath_var=LIBPATH
8393
  ;;
8394
 
8395
osf3* | osf4* | osf5*)
8396
  version_type=osf
8397
  need_lib_prefix=no
8398
  need_version=no
8399
  soname_spec='${libname}${release}${shared_ext}$major'
8400
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8401
  shlibpath_var=LD_LIBRARY_PATH
8402
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8403
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8404
  ;;
8405
 
8406
rdos*)
8407
  dynamic_linker=no
8408
  ;;
8409
 
8410
solaris*)
8411
  version_type=linux
8412
  need_lib_prefix=no
8413
  need_version=no
8414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8415
  soname_spec='${libname}${release}${shared_ext}$major'
8416
  shlibpath_var=LD_LIBRARY_PATH
8417
  shlibpath_overrides_runpath=yes
8418
  hardcode_into_libs=yes
8419
  # ldd complains unless libraries are executable
8420
  postinstall_cmds='chmod +x $lib'
8421
  ;;
8422
 
8423
sunos4*)
8424
  version_type=sunos
8425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8426
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8427
  shlibpath_var=LD_LIBRARY_PATH
8428
  shlibpath_overrides_runpath=yes
8429
  if test "$with_gnu_ld" = yes; then
8430
    need_lib_prefix=no
8431
  fi
8432
  need_version=yes
8433
  ;;
8434
 
8435
sysv4 | sysv4.3*)
8436
  version_type=linux
8437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8438
  soname_spec='${libname}${release}${shared_ext}$major'
8439
  shlibpath_var=LD_LIBRARY_PATH
8440
  case $host_vendor in
8441
    sni)
8442
      shlibpath_overrides_runpath=no
8443
      need_lib_prefix=no
8444
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8445
      runpath_var=LD_RUN_PATH
8446
      ;;
8447
    siemens)
8448
      need_lib_prefix=no
8449
      ;;
8450
    motorola)
8451
      need_lib_prefix=no
8452
      need_version=no
8453
      shlibpath_overrides_runpath=no
8454
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8455
      ;;
8456
  esac
8457
  ;;
8458
 
8459
sysv4*MP*)
8460
  if test -d /usr/nec ;then
8461
    version_type=linux
8462
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8463
    soname_spec='$libname${shared_ext}.$major'
8464
    shlibpath_var=LD_LIBRARY_PATH
8465
  fi
8466
  ;;
8467
 
8468
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8469
  version_type=freebsd-elf
8470
  need_lib_prefix=no
8471
  need_version=no
8472
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8473
  soname_spec='${libname}${release}${shared_ext}$major'
8474
  shlibpath_var=LD_LIBRARY_PATH
8475
  hardcode_into_libs=yes
8476
  if test "$with_gnu_ld" = yes; then
8477
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8478
    shlibpath_overrides_runpath=no
8479
  else
8480
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8481
    shlibpath_overrides_runpath=yes
8482
    case $host_os in
8483
      sco3.2v5*)
8484
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8485
        ;;
8486
    esac
8487
  fi
8488
  sys_lib_dlsearch_path_spec='/usr/lib'
8489
  ;;
8490
 
8491
uts4*)
8492
  version_type=linux
8493
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494
  soname_spec='${libname}${release}${shared_ext}$major'
8495
  shlibpath_var=LD_LIBRARY_PATH
8496
  ;;
8497
 
8498
*)
8499
  dynamic_linker=no
8500
  ;;
8501
esac
8502
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8503
echo "${ECHO_T}$dynamic_linker" >&6; }
8504
test "$dynamic_linker" = no && can_build_shared=no
8505
 
8506
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8507
if test "$GCC" = yes; then
8508
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8509
fi
8510
 
8511
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8512
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8513
hardcode_action=
8514
if test -n "$hardcode_libdir_flag_spec" || \
8515
   test -n "$runpath_var" || \
8516
   test "X$hardcode_automatic" = "Xyes" ; then
8517
 
8518
  # We can hardcode non-existant directories.
8519
  if test "$hardcode_direct" != no &&
8520
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8521
     # have to relink, otherwise we might link with an installed library
8522
     # when we should be linking with a yet-to-be-installed one
8523
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8524
     test "$hardcode_minus_L" != no; then
8525
    # Linking always hardcodes the temporary library directory.
8526
    hardcode_action=relink
8527
  else
8528
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8529
    hardcode_action=immediate
8530
  fi
8531
else
8532
  # We cannot hardcode anything, or else we can only hardcode existing
8533
  # directories.
8534
  hardcode_action=unsupported
8535
fi
8536
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8537
echo "${ECHO_T}$hardcode_action" >&6; }
8538
 
8539
if test "$hardcode_action" = relink; then
8540
  # Fast installation is not supported
8541
  enable_fast_install=no
8542
elif test "$shlibpath_overrides_runpath" = yes ||
8543
     test "$enable_shared" = no; then
8544
  # Fast installation is not necessary
8545
  enable_fast_install=needless
8546
fi
8547
 
8548
striplib=
8549
old_striplib=
8550
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8551
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8552
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8553
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8554
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8555
  { echo "$as_me:$LINENO: result: yes" >&5
8556
echo "${ECHO_T}yes" >&6; }
8557
else
8558
# FIXME - insert some real tests, host_os isn't really good enough
8559
  case $host_os in
8560
   darwin*)
8561
       if test -n "$STRIP" ; then
8562
         striplib="$STRIP -x"
8563
         old_striplib="$STRIP -S"
8564
         { echo "$as_me:$LINENO: result: yes" >&5
8565
echo "${ECHO_T}yes" >&6; }
8566
       else
8567
  { echo "$as_me:$LINENO: result: no" >&5
8568
echo "${ECHO_T}no" >&6; }
8569
fi
8570
       ;;
8571
   *)
8572
  { echo "$as_me:$LINENO: result: no" >&5
8573
echo "${ECHO_T}no" >&6; }
8574
    ;;
8575
  esac
8576
fi
8577
 
8578
if test "x$enable_dlopen" != xyes; then
8579
  enable_dlopen=unknown
8580
  enable_dlopen_self=unknown
8581
  enable_dlopen_self_static=unknown
8582
else
8583
  lt_cv_dlopen=no
8584
  lt_cv_dlopen_libs=
8585
 
8586
  case $host_os in
8587
  beos*)
8588
    lt_cv_dlopen="load_add_on"
8589
    lt_cv_dlopen_libs=
8590
    lt_cv_dlopen_self=yes
8591
    ;;
8592
 
8593
  mingw* | pw32*)
8594
    lt_cv_dlopen="LoadLibrary"
8595
    lt_cv_dlopen_libs=
8596
   ;;
8597
 
8598
  cygwin*)
8599
    lt_cv_dlopen="dlopen"
8600
    lt_cv_dlopen_libs=
8601
   ;;
8602
 
8603
  darwin*)
8604
  # if libdl is installed we need to link against it
8605
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8606
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8607
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8608
  echo $ECHO_N "(cached) $ECHO_C" >&6
8609
else
8610
  ac_check_lib_save_LIBS=$LIBS
8611
LIBS="-ldl  $LIBS"
8612
cat >conftest.$ac_ext <<_ACEOF
8613
/* confdefs.h.  */
8614
_ACEOF
8615
cat confdefs.h >>conftest.$ac_ext
8616
cat >>conftest.$ac_ext <<_ACEOF
8617
/* end confdefs.h.  */
8618
 
8619
/* Override any GCC internal prototype to avoid an error.
8620
   Use char because int might match the return type of a GCC
8621
   builtin and then its argument prototype would still apply.  */
8622
#ifdef __cplusplus
8623
extern "C"
8624
#endif
8625
char dlopen ();
8626
int
8627
main ()
8628
{
8629
return dlopen ();
8630
  ;
8631
  return 0;
8632
}
8633
_ACEOF
8634
rm -f conftest.$ac_objext conftest$ac_exeext
8635
if { (ac_try="$ac_link"
8636
case "(($ac_try" in
8637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638
  *) ac_try_echo=$ac_try;;
8639
esac
8640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641
  (eval "$ac_link") 2>conftest.er1
8642
  ac_status=$?
8643
  grep -v '^ *+' conftest.er1 >conftest.err
8644
  rm -f conftest.er1
8645
  cat conftest.err >&5
8646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
  (exit $ac_status); } && {
8648
         test -z "$ac_c_werror_flag" ||
8649
         test ! -s conftest.err
8650
       } && test -s conftest$ac_exeext &&
8651
       $as_test_x conftest$ac_exeext; then
8652
  ac_cv_lib_dl_dlopen=yes
8653
else
8654
  echo "$as_me: failed program was:" >&5
8655
sed 's/^/| /' conftest.$ac_ext >&5
8656
 
8657
        ac_cv_lib_dl_dlopen=no
8658
fi
8659
 
8660
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8661
      conftest$ac_exeext conftest.$ac_ext
8662
LIBS=$ac_check_lib_save_LIBS
8663
fi
8664
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8665
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8666
if test $ac_cv_lib_dl_dlopen = yes; then
8667
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8668
else
8669
 
8670
    lt_cv_dlopen="dyld"
8671
    lt_cv_dlopen_libs=
8672
    lt_cv_dlopen_self=yes
8673
 
8674
fi
8675
 
8676
   ;;
8677
 
8678
  *)
8679
    { echo "$as_me:$LINENO: checking for shl_load" >&5
8680
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8681
if test "${ac_cv_func_shl_load+set}" = set; then
8682
  echo $ECHO_N "(cached) $ECHO_C" >&6
8683
else
8684
  cat >conftest.$ac_ext <<_ACEOF
8685
/* confdefs.h.  */
8686
_ACEOF
8687
cat confdefs.h >>conftest.$ac_ext
8688
cat >>conftest.$ac_ext <<_ACEOF
8689
/* end confdefs.h.  */
8690
/* Define shl_load to an innocuous variant, in case  declares shl_load.
8691
   For example, HP-UX 11i  declares gettimeofday.  */
8692
#define shl_load innocuous_shl_load
8693
 
8694
/* System header to define __stub macros and hopefully few prototypes,
8695
    which can conflict with char shl_load (); below.
8696
    Prefer  to  if __STDC__ is defined, since
8697
     exists even on freestanding compilers.  */
8698
 
8699
#ifdef __STDC__
8700
# include 
8701
#else
8702
# include 
8703
#endif
8704
 
8705
#undef shl_load
8706
 
8707
/* Override any GCC internal prototype to avoid an error.
8708
   Use char because int might match the return type of a GCC
8709
   builtin and then its argument prototype would still apply.  */
8710
#ifdef __cplusplus
8711
extern "C"
8712
#endif
8713
char shl_load ();
8714
/* The GNU C library defines this for functions which it implements
8715
    to always fail with ENOSYS.  Some functions are actually named
8716
    something starting with __ and the normal name is an alias.  */
8717
#if defined __stub_shl_load || defined __stub___shl_load
8718
choke me
8719
#endif
8720
 
8721
int
8722
main ()
8723
{
8724
return shl_load ();
8725
  ;
8726
  return 0;
8727
}
8728
_ACEOF
8729
rm -f conftest.$ac_objext conftest$ac_exeext
8730
if { (ac_try="$ac_link"
8731
case "(($ac_try" in
8732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733
  *) ac_try_echo=$ac_try;;
8734
esac
8735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736
  (eval "$ac_link") 2>conftest.er1
8737
  ac_status=$?
8738
  grep -v '^ *+' conftest.er1 >conftest.err
8739
  rm -f conftest.er1
8740
  cat conftest.err >&5
8741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742
  (exit $ac_status); } && {
8743
         test -z "$ac_c_werror_flag" ||
8744
         test ! -s conftest.err
8745
       } && test -s conftest$ac_exeext &&
8746
       $as_test_x conftest$ac_exeext; then
8747
  ac_cv_func_shl_load=yes
8748
else
8749
  echo "$as_me: failed program was:" >&5
8750
sed 's/^/| /' conftest.$ac_ext >&5
8751
 
8752
        ac_cv_func_shl_load=no
8753
fi
8754
 
8755
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8756
      conftest$ac_exeext conftest.$ac_ext
8757
fi
8758
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8759
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8760
if test $ac_cv_func_shl_load = yes; then
8761
  lt_cv_dlopen="shl_load"
8762
else
8763
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8764
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8765
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8766
  echo $ECHO_N "(cached) $ECHO_C" >&6
8767
else
8768
  ac_check_lib_save_LIBS=$LIBS
8769
LIBS="-ldld  $LIBS"
8770
cat >conftest.$ac_ext <<_ACEOF
8771
/* confdefs.h.  */
8772
_ACEOF
8773
cat confdefs.h >>conftest.$ac_ext
8774
cat >>conftest.$ac_ext <<_ACEOF
8775
/* end confdefs.h.  */
8776
 
8777
/* Override any GCC internal prototype to avoid an error.
8778
   Use char because int might match the return type of a GCC
8779
   builtin and then its argument prototype would still apply.  */
8780
#ifdef __cplusplus
8781
extern "C"
8782
#endif
8783
char shl_load ();
8784
int
8785
main ()
8786
{
8787
return shl_load ();
8788
  ;
8789
  return 0;
8790
}
8791
_ACEOF
8792
rm -f conftest.$ac_objext conftest$ac_exeext
8793
if { (ac_try="$ac_link"
8794
case "(($ac_try" in
8795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796
  *) ac_try_echo=$ac_try;;
8797
esac
8798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799
  (eval "$ac_link") 2>conftest.er1
8800
  ac_status=$?
8801
  grep -v '^ *+' conftest.er1 >conftest.err
8802
  rm -f conftest.er1
8803
  cat conftest.err >&5
8804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805
  (exit $ac_status); } && {
8806
         test -z "$ac_c_werror_flag" ||
8807
         test ! -s conftest.err
8808
       } && test -s conftest$ac_exeext &&
8809
       $as_test_x conftest$ac_exeext; then
8810
  ac_cv_lib_dld_shl_load=yes
8811
else
8812
  echo "$as_me: failed program was:" >&5
8813
sed 's/^/| /' conftest.$ac_ext >&5
8814
 
8815
        ac_cv_lib_dld_shl_load=no
8816
fi
8817
 
8818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8819
      conftest$ac_exeext conftest.$ac_ext
8820
LIBS=$ac_check_lib_save_LIBS
8821
fi
8822
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8823
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8824
if test $ac_cv_lib_dld_shl_load = yes; then
8825
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8826
else
8827
  { echo "$as_me:$LINENO: checking for dlopen" >&5
8828
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8829
if test "${ac_cv_func_dlopen+set}" = set; then
8830
  echo $ECHO_N "(cached) $ECHO_C" >&6
8831
else
8832
  cat >conftest.$ac_ext <<_ACEOF
8833
/* confdefs.h.  */
8834
_ACEOF
8835
cat confdefs.h >>conftest.$ac_ext
8836
cat >>conftest.$ac_ext <<_ACEOF
8837
/* end confdefs.h.  */
8838
/* Define dlopen to an innocuous variant, in case  declares dlopen.
8839
   For example, HP-UX 11i  declares gettimeofday.  */
8840
#define dlopen innocuous_dlopen
8841
 
8842
/* System header to define __stub macros and hopefully few prototypes,
8843
    which can conflict with char dlopen (); below.
8844
    Prefer  to  if __STDC__ is defined, since
8845
     exists even on freestanding compilers.  */
8846
 
8847
#ifdef __STDC__
8848
# include 
8849
#else
8850
# include 
8851
#endif
8852
 
8853
#undef dlopen
8854
 
8855
/* Override any GCC internal prototype to avoid an error.
8856
   Use char because int might match the return type of a GCC
8857
   builtin and then its argument prototype would still apply.  */
8858
#ifdef __cplusplus
8859
extern "C"
8860
#endif
8861
char dlopen ();
8862
/* The GNU C library defines this for functions which it implements
8863
    to always fail with ENOSYS.  Some functions are actually named
8864
    something starting with __ and the normal name is an alias.  */
8865
#if defined __stub_dlopen || defined __stub___dlopen
8866
choke me
8867
#endif
8868
 
8869
int
8870
main ()
8871
{
8872
return dlopen ();
8873
  ;
8874
  return 0;
8875
}
8876
_ACEOF
8877
rm -f conftest.$ac_objext conftest$ac_exeext
8878
if { (ac_try="$ac_link"
8879
case "(($ac_try" in
8880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881
  *) ac_try_echo=$ac_try;;
8882
esac
8883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884
  (eval "$ac_link") 2>conftest.er1
8885
  ac_status=$?
8886
  grep -v '^ *+' conftest.er1 >conftest.err
8887
  rm -f conftest.er1
8888
  cat conftest.err >&5
8889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890
  (exit $ac_status); } && {
8891
         test -z "$ac_c_werror_flag" ||
8892
         test ! -s conftest.err
8893
       } && test -s conftest$ac_exeext &&
8894
       $as_test_x conftest$ac_exeext; then
8895
  ac_cv_func_dlopen=yes
8896
else
8897
  echo "$as_me: failed program was:" >&5
8898
sed 's/^/| /' conftest.$ac_ext >&5
8899
 
8900
        ac_cv_func_dlopen=no
8901
fi
8902
 
8903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8904
      conftest$ac_exeext conftest.$ac_ext
8905
fi
8906
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8907
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8908
if test $ac_cv_func_dlopen = yes; then
8909
  lt_cv_dlopen="dlopen"
8910
else
8911
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8912
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8913
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8914
  echo $ECHO_N "(cached) $ECHO_C" >&6
8915
else
8916
  ac_check_lib_save_LIBS=$LIBS
8917
LIBS="-ldl  $LIBS"
8918
cat >conftest.$ac_ext <<_ACEOF
8919
/* confdefs.h.  */
8920
_ACEOF
8921
cat confdefs.h >>conftest.$ac_ext
8922
cat >>conftest.$ac_ext <<_ACEOF
8923
/* end confdefs.h.  */
8924
 
8925
/* Override any GCC internal prototype to avoid an error.
8926
   Use char because int might match the return type of a GCC
8927
   builtin and then its argument prototype would still apply.  */
8928
#ifdef __cplusplus
8929
extern "C"
8930
#endif
8931
char dlopen ();
8932
int
8933
main ()
8934
{
8935
return dlopen ();
8936
  ;
8937
  return 0;
8938
}
8939
_ACEOF
8940
rm -f conftest.$ac_objext conftest$ac_exeext
8941
if { (ac_try="$ac_link"
8942
case "(($ac_try" in
8943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944
  *) ac_try_echo=$ac_try;;
8945
esac
8946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947
  (eval "$ac_link") 2>conftest.er1
8948
  ac_status=$?
8949
  grep -v '^ *+' conftest.er1 >conftest.err
8950
  rm -f conftest.er1
8951
  cat conftest.err >&5
8952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953
  (exit $ac_status); } && {
8954
         test -z "$ac_c_werror_flag" ||
8955
         test ! -s conftest.err
8956
       } && test -s conftest$ac_exeext &&
8957
       $as_test_x conftest$ac_exeext; then
8958
  ac_cv_lib_dl_dlopen=yes
8959
else
8960
  echo "$as_me: failed program was:" >&5
8961
sed 's/^/| /' conftest.$ac_ext >&5
8962
 
8963
        ac_cv_lib_dl_dlopen=no
8964
fi
8965
 
8966
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8967
      conftest$ac_exeext conftest.$ac_ext
8968
LIBS=$ac_check_lib_save_LIBS
8969
fi
8970
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8971
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8972
if test $ac_cv_lib_dl_dlopen = yes; then
8973
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8974
else
8975
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8976
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8977
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8978
  echo $ECHO_N "(cached) $ECHO_C" >&6
8979
else
8980
  ac_check_lib_save_LIBS=$LIBS
8981
LIBS="-lsvld  $LIBS"
8982
cat >conftest.$ac_ext <<_ACEOF
8983
/* confdefs.h.  */
8984
_ACEOF
8985
cat confdefs.h >>conftest.$ac_ext
8986
cat >>conftest.$ac_ext <<_ACEOF
8987
/* end confdefs.h.  */
8988
 
8989
/* Override any GCC internal prototype to avoid an error.
8990
   Use char because int might match the return type of a GCC
8991
   builtin and then its argument prototype would still apply.  */
8992
#ifdef __cplusplus
8993
extern "C"
8994
#endif
8995
char dlopen ();
8996
int
8997
main ()
8998
{
8999
return dlopen ();
9000
  ;
9001
  return 0;
9002
}
9003
_ACEOF
9004
rm -f conftest.$ac_objext conftest$ac_exeext
9005
if { (ac_try="$ac_link"
9006
case "(($ac_try" in
9007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008
  *) ac_try_echo=$ac_try;;
9009
esac
9010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011
  (eval "$ac_link") 2>conftest.er1
9012
  ac_status=$?
9013
  grep -v '^ *+' conftest.er1 >conftest.err
9014
  rm -f conftest.er1
9015
  cat conftest.err >&5
9016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017
  (exit $ac_status); } && {
9018
         test -z "$ac_c_werror_flag" ||
9019
         test ! -s conftest.err
9020
       } && test -s conftest$ac_exeext &&
9021
       $as_test_x conftest$ac_exeext; then
9022
  ac_cv_lib_svld_dlopen=yes
9023
else
9024
  echo "$as_me: failed program was:" >&5
9025
sed 's/^/| /' conftest.$ac_ext >&5
9026
 
9027
        ac_cv_lib_svld_dlopen=no
9028
fi
9029
 
9030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9031
      conftest$ac_exeext conftest.$ac_ext
9032
LIBS=$ac_check_lib_save_LIBS
9033
fi
9034
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9035
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9036
if test $ac_cv_lib_svld_dlopen = yes; then
9037
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9038
else
9039
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9040
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9041
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9042
  echo $ECHO_N "(cached) $ECHO_C" >&6
9043
else
9044
  ac_check_lib_save_LIBS=$LIBS
9045
LIBS="-ldld  $LIBS"
9046
cat >conftest.$ac_ext <<_ACEOF
9047
/* confdefs.h.  */
9048
_ACEOF
9049
cat confdefs.h >>conftest.$ac_ext
9050
cat >>conftest.$ac_ext <<_ACEOF
9051
/* end confdefs.h.  */
9052
 
9053
/* Override any GCC internal prototype to avoid an error.
9054
   Use char because int might match the return type of a GCC
9055
   builtin and then its argument prototype would still apply.  */
9056
#ifdef __cplusplus
9057
extern "C"
9058
#endif
9059
char dld_link ();
9060
int
9061
main ()
9062
{
9063
return dld_link ();
9064
  ;
9065
  return 0;
9066
}
9067
_ACEOF
9068
rm -f conftest.$ac_objext conftest$ac_exeext
9069
if { (ac_try="$ac_link"
9070
case "(($ac_try" in
9071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072
  *) ac_try_echo=$ac_try;;
9073
esac
9074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075
  (eval "$ac_link") 2>conftest.er1
9076
  ac_status=$?
9077
  grep -v '^ *+' conftest.er1 >conftest.err
9078
  rm -f conftest.er1
9079
  cat conftest.err >&5
9080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081
  (exit $ac_status); } && {
9082
         test -z "$ac_c_werror_flag" ||
9083
         test ! -s conftest.err
9084
       } && test -s conftest$ac_exeext &&
9085
       $as_test_x conftest$ac_exeext; then
9086
  ac_cv_lib_dld_dld_link=yes
9087
else
9088
  echo "$as_me: failed program was:" >&5
9089
sed 's/^/| /' conftest.$ac_ext >&5
9090
 
9091
        ac_cv_lib_dld_dld_link=no
9092
fi
9093
 
9094
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9095
      conftest$ac_exeext conftest.$ac_ext
9096
LIBS=$ac_check_lib_save_LIBS
9097
fi
9098
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9099
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9100
if test $ac_cv_lib_dld_dld_link = yes; then
9101
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9102
fi
9103
 
9104
 
9105
fi
9106
 
9107
 
9108
fi
9109
 
9110
 
9111
fi
9112
 
9113
 
9114
fi
9115
 
9116
 
9117
fi
9118
 
9119
    ;;
9120
  esac
9121
 
9122
  if test "x$lt_cv_dlopen" != xno; then
9123
    enable_dlopen=yes
9124
  else
9125
    enable_dlopen=no
9126
  fi
9127
 
9128
  case $lt_cv_dlopen in
9129
  dlopen)
9130
    save_CPPFLAGS="$CPPFLAGS"
9131
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9132
 
9133
    save_LDFLAGS="$LDFLAGS"
9134
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9135
 
9136
    save_LIBS="$LIBS"
9137
    LIBS="$lt_cv_dlopen_libs $LIBS"
9138
 
9139
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9140
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9141
if test "${lt_cv_dlopen_self+set}" = set; then
9142
  echo $ECHO_N "(cached) $ECHO_C" >&6
9143
else
9144
          if test "$cross_compiling" = yes; then :
9145
  lt_cv_dlopen_self=cross
9146
else
9147
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9148
  lt_status=$lt_dlunknown
9149
  cat > conftest.$ac_ext <
9150
#line __oline__ "configure"
9151
#include "confdefs.h"
9152
 
9153
#if HAVE_DLFCN_H
9154
#include 
9155
#endif
9156
 
9157
#include 
9158
 
9159
#ifdef RTLD_GLOBAL
9160
#  define LT_DLGLOBAL           RTLD_GLOBAL
9161
#else
9162
#  ifdef DL_GLOBAL
9163
#    define LT_DLGLOBAL         DL_GLOBAL
9164
#  else
9165
#    define LT_DLGLOBAL         0
9166
#  endif
9167
#endif
9168
 
9169
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9170
   find out it does not work in some platform. */
9171
#ifndef LT_DLLAZY_OR_NOW
9172
#  ifdef RTLD_LAZY
9173
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9174
#  else
9175
#    ifdef DL_LAZY
9176
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9177
#    else
9178
#      ifdef RTLD_NOW
9179
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9180
#      else
9181
#        ifdef DL_NOW
9182
#          define LT_DLLAZY_OR_NOW      DL_NOW
9183
#        else
9184
#          define LT_DLLAZY_OR_NOW      0
9185
#        endif
9186
#      endif
9187
#    endif
9188
#  endif
9189
#endif
9190
 
9191
#ifdef __cplusplus
9192
extern "C" void exit (int);
9193
#endif
9194
 
9195
void fnord() { int i=42;}
9196
int main ()
9197
{
9198
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9199
  int status = $lt_dlunknown;
9200
 
9201
  if (self)
9202
    {
9203
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9204
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9205
      /* dlclose (self); */
9206
    }
9207
  else
9208
    puts (dlerror ());
9209
 
9210
    exit (status);
9211
}
9212
EOF
9213
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9214
  (eval $ac_link) 2>&5
9215
  ac_status=$?
9216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9218
    (./conftest; exit; ) >&5 2>/dev/null
9219
    lt_status=$?
9220
    case x$lt_status in
9221
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9222
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9223
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9224
    esac
9225
  else :
9226
    # compilation failed
9227
    lt_cv_dlopen_self=no
9228
  fi
9229
fi
9230
rm -fr conftest*
9231
 
9232
 
9233
fi
9234
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9235
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9236
 
9237
    if test "x$lt_cv_dlopen_self" = xyes; then
9238
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9239
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9240
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9241
if test "${lt_cv_dlopen_self_static+set}" = set; then
9242
  echo $ECHO_N "(cached) $ECHO_C" >&6
9243
else
9244
          if test "$cross_compiling" = yes; then :
9245
  lt_cv_dlopen_self_static=cross
9246
else
9247
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9248
  lt_status=$lt_dlunknown
9249
  cat > conftest.$ac_ext <
9250
#line __oline__ "configure"
9251
#include "confdefs.h"
9252
 
9253
#if HAVE_DLFCN_H
9254
#include 
9255
#endif
9256
 
9257
#include 
9258
 
9259
#ifdef RTLD_GLOBAL
9260
#  define LT_DLGLOBAL           RTLD_GLOBAL
9261
#else
9262
#  ifdef DL_GLOBAL
9263
#    define LT_DLGLOBAL         DL_GLOBAL
9264
#  else
9265
#    define LT_DLGLOBAL         0
9266
#  endif
9267
#endif
9268
 
9269
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9270
   find out it does not work in some platform. */
9271
#ifndef LT_DLLAZY_OR_NOW
9272
#  ifdef RTLD_LAZY
9273
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9274
#  else
9275
#    ifdef DL_LAZY
9276
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9277
#    else
9278
#      ifdef RTLD_NOW
9279
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9280
#      else
9281
#        ifdef DL_NOW
9282
#          define LT_DLLAZY_OR_NOW      DL_NOW
9283
#        else
9284
#          define LT_DLLAZY_OR_NOW      0
9285
#        endif
9286
#      endif
9287
#    endif
9288
#  endif
9289
#endif
9290
 
9291
#ifdef __cplusplus
9292
extern "C" void exit (int);
9293
#endif
9294
 
9295
void fnord() { int i=42;}
9296
int main ()
9297
{
9298
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9299
  int status = $lt_dlunknown;
9300
 
9301
  if (self)
9302
    {
9303
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9304
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9305
      /* dlclose (self); */
9306
    }
9307
  else
9308
    puts (dlerror ());
9309
 
9310
    exit (status);
9311
}
9312
EOF
9313
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314
  (eval $ac_link) 2>&5
9315
  ac_status=$?
9316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9318
    (./conftest; exit; ) >&5 2>/dev/null
9319
    lt_status=$?
9320
    case x$lt_status in
9321
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9322
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9323
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9324
    esac
9325
  else :
9326
    # compilation failed
9327
    lt_cv_dlopen_self_static=no
9328
  fi
9329
fi
9330
rm -fr conftest*
9331
 
9332
 
9333
fi
9334
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9335
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9336
    fi
9337
 
9338
    CPPFLAGS="$save_CPPFLAGS"
9339
    LDFLAGS="$save_LDFLAGS"
9340
    LIBS="$save_LIBS"
9341
    ;;
9342
  esac
9343
 
9344
  case $lt_cv_dlopen_self in
9345
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9346
  *) enable_dlopen_self=unknown ;;
9347
  esac
9348
 
9349
  case $lt_cv_dlopen_self_static in
9350
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9351
  *) enable_dlopen_self_static=unknown ;;
9352
  esac
9353
fi
9354
 
9355
 
9356
# Report which library types will actually be built
9357
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9358
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9359
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9360
echo "${ECHO_T}$can_build_shared" >&6; }
9361
 
9362
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9363
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9364
test "$can_build_shared" = "no" && enable_shared=no
9365
 
9366
# On AIX, shared libraries and static libraries use the same namespace, and
9367
# are all built from PIC.
9368
case $host_os in
9369
aix3*)
9370
  test "$enable_shared" = yes && enable_static=no
9371
  if test -n "$RANLIB"; then
9372
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9373
    postinstall_cmds='$RANLIB $lib'
9374
  fi
9375
  ;;
9376
 
9377
aix4* | aix5*)
9378
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9379
    test "$enable_shared" = yes && enable_static=no
9380
  fi
9381
    ;;
9382
esac
9383
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9384
echo "${ECHO_T}$enable_shared" >&6; }
9385
 
9386
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9387
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9388
# Make sure either enable_shared or enable_static is yes.
9389
test "$enable_shared" = yes || enable_static=yes
9390
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9391
echo "${ECHO_T}$enable_static" >&6; }
9392
 
9393
# The else clause should only fire when bootstrapping the
9394
# libtool distribution, otherwise you forgot to ship ltmain.sh
9395
# with your package, and you will get complaints that there are
9396
# no rules to generate ltmain.sh.
9397
if test -f "$ltmain"; then
9398
  # See if we are running on zsh, and set the options which allow our commands through
9399
  # without removal of \ escapes.
9400
  if test -n "${ZSH_VERSION+set}" ; then
9401
    setopt NO_GLOB_SUBST
9402
  fi
9403
  # Now quote all the things that may contain metacharacters while being
9404
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9405
  # variables and quote the copies for generation of the libtool script.
9406
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9407
    SED SHELL STRIP \
9408
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9409
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9410
    deplibs_check_method reload_flag reload_cmds need_locks \
9411
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9412
    lt_cv_sys_global_symbol_to_c_name_address \
9413
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9414
    old_postinstall_cmds old_postuninstall_cmds \
9415
    compiler \
9416
    CC \
9417
    LD \
9418
    lt_prog_compiler_wl \
9419
    lt_prog_compiler_pic \
9420
    lt_prog_compiler_static \
9421
    lt_prog_compiler_no_builtin_flag \
9422
    export_dynamic_flag_spec \
9423
    thread_safe_flag_spec \
9424
    whole_archive_flag_spec \
9425
    enable_shared_with_static_runtimes \
9426
    old_archive_cmds \
9427
    old_archive_from_new_cmds \
9428
    predep_objects \
9429
    postdep_objects \
9430
    predeps \
9431
    postdeps \
9432
    compiler_lib_search_path \
9433
    archive_cmds \
9434
    archive_expsym_cmds \
9435
    postinstall_cmds \
9436
    postuninstall_cmds \
9437
    old_archive_from_expsyms_cmds \
9438
    allow_undefined_flag \
9439
    no_undefined_flag \
9440
    export_symbols_cmds \
9441
    hardcode_libdir_flag_spec \
9442
    hardcode_libdir_flag_spec_ld \
9443
    hardcode_libdir_separator \
9444
    hardcode_automatic \
9445
    module_cmds \
9446
    module_expsym_cmds \
9447
    lt_cv_prog_compiler_c_o \
9448
    fix_srcfile_path \
9449
    exclude_expsyms \
9450
    include_expsyms; do
9451
 
9452
    case $var in
9453
    old_archive_cmds | \
9454
    old_archive_from_new_cmds | \
9455
    archive_cmds | \
9456
    archive_expsym_cmds | \
9457
    module_cmds | \
9458
    module_expsym_cmds | \
9459
    old_archive_from_expsyms_cmds | \
9460
    export_symbols_cmds | \
9461
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9462
    postinstall_cmds | postuninstall_cmds | \
9463
    old_postinstall_cmds | old_postuninstall_cmds | \
9464
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9465
      # Double-quote double-evaled strings.
9466
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9467
      ;;
9468
    *)
9469
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9470
      ;;
9471
    esac
9472
  done
9473
 
9474
  case $lt_echo in
9475
  *'\$0 --fallback-echo"')
9476
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9477
    ;;
9478
  esac
9479
 
9480
cfgfile="${ofile}T"
9481
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9482
  $rm -f "$cfgfile"
9483
  { echo "$as_me:$LINENO: creating $ofile" >&5
9484
echo "$as_me: creating $ofile" >&6;}
9485
 
9486
  cat <<__EOF__ >> "$cfgfile"
9487
#! $SHELL
9488
 
9489
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9490
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9491
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9492
#
9493
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9494
# Free Software Foundation, Inc.
9495
#
9496
# This file is part of GNU Libtool:
9497
# Originally by Gordon Matzigkeit , 1996
9498
#
9499
# This program is free software; you can redistribute it and/or modify
9500
# it under the terms of the GNU General Public License as published by
9501
# the Free Software Foundation; either version 2 of the License, or
9502
# (at your option) any later version.
9503
#
9504
# This program is distributed in the hope that it will be useful, but
9505
# WITHOUT ANY WARRANTY; without even the implied warranty of
9506
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9507
# General Public License for more details.
9508
#
9509
# You should have received a copy of the GNU General Public License
9510
# along with this program; if not, write to the Free Software
9511
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9512
#
9513
# As a special exception to the GNU General Public License, if you
9514
# distribute this file as part of a program that contains a
9515
# configuration script generated by Autoconf, you may include it under
9516
# the same distribution terms that you use for the rest of that program.
9517
 
9518
# A sed program that does not truncate output.
9519
SED=$lt_SED
9520
 
9521
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9522
Xsed="$SED -e 1s/^X//"
9523
 
9524
# The HP-UX ksh and POSIX shell print the target directory to stdout
9525
# if CDPATH is set.
9526
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9527
 
9528
# The names of the tagged configurations supported by this script.
9529
available_tags=
9530
 
9531
# ### BEGIN LIBTOOL CONFIG
9532
 
9533
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9534
 
9535
# Shell to use when invoking shell scripts.
9536
SHELL=$lt_SHELL
9537
 
9538
# Whether or not to build shared libraries.
9539
build_libtool_libs=$enable_shared
9540
 
9541
# Whether or not to build static libraries.
9542
build_old_libs=$enable_static
9543
 
9544
# Whether or not to add -lc for building shared libraries.
9545
build_libtool_need_lc=$archive_cmds_need_lc
9546
 
9547
# Whether or not to disallow shared libs when runtime libs are static
9548
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9549
 
9550
# Whether or not to optimize for fast installation.
9551
fast_install=$enable_fast_install
9552
 
9553
# The host system.
9554
host_alias=$host_alias
9555
host=$host
9556
host_os=$host_os
9557
 
9558
# The build system.
9559
build_alias=$build_alias
9560
build=$build
9561
build_os=$build_os
9562
 
9563
# An echo program that does not interpret backslashes.
9564
echo=$lt_echo
9565
 
9566
# The archiver.
9567
AR=$lt_AR
9568
AR_FLAGS=$lt_AR_FLAGS
9569
 
9570
# A C compiler.
9571
LTCC=$lt_LTCC
9572
 
9573
# LTCC compiler flags.
9574
LTCFLAGS=$lt_LTCFLAGS
9575
 
9576
# A language-specific compiler.
9577
CC=$lt_compiler
9578
 
9579
# Is the compiler the GNU C compiler?
9580
with_gcc=$GCC
9581
 
9582
# An ERE matcher.
9583
EGREP=$lt_EGREP
9584
 
9585
# The linker used to build libraries.
9586
LD=$lt_LD
9587
 
9588
# Whether we need hard or soft links.
9589
LN_S=$lt_LN_S
9590
 
9591
# A BSD-compatible nm program.
9592
NM=$lt_NM
9593
 
9594
# A symbol stripping program
9595
STRIP=$lt_STRIP
9596
 
9597
# Used to examine libraries when file_magic_cmd begins "file"
9598
MAGIC_CMD=$MAGIC_CMD
9599
 
9600
# Used on cygwin: DLL creation program.
9601
DLLTOOL="$DLLTOOL"
9602
 
9603
# Used on cygwin: object dumper.
9604
OBJDUMP="$OBJDUMP"
9605
 
9606
# Used on cygwin: assembler.
9607
AS="$AS"
9608
 
9609
# The name of the directory that contains temporary libtool files.
9610
objdir=$objdir
9611
 
9612
# How to create reloadable object files.
9613
reload_flag=$lt_reload_flag
9614
reload_cmds=$lt_reload_cmds
9615
 
9616
# How to pass a linker flag through the compiler.
9617
wl=$lt_lt_prog_compiler_wl
9618
 
9619
# Object file suffix (normally "o").
9620
objext="$ac_objext"
9621
 
9622
# Old archive suffix (normally "a").
9623
libext="$libext"
9624
 
9625
# Shared library suffix (normally ".so").
9626
shrext_cmds='$shrext_cmds'
9627
 
9628
# Executable file suffix (normally "").
9629
exeext="$exeext"
9630
 
9631
# Additional compiler flags for building library objects.
9632
pic_flag=$lt_lt_prog_compiler_pic
9633
pic_mode=$pic_mode
9634
 
9635
# What is the maximum length of a command?
9636
max_cmd_len=$lt_cv_sys_max_cmd_len
9637
 
9638
# Does compiler simultaneously support -c and -o options?
9639
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9640
 
9641
# Must we lock files when doing compilation?
9642
need_locks=$lt_need_locks
9643
 
9644
# Do we need the lib prefix for modules?
9645
need_lib_prefix=$need_lib_prefix
9646
 
9647
# Do we need a version for libraries?
9648
need_version=$need_version
9649
 
9650
# Whether dlopen is supported.
9651
dlopen_support=$enable_dlopen
9652
 
9653
# Whether dlopen of programs is supported.
9654
dlopen_self=$enable_dlopen_self
9655
 
9656
# Whether dlopen of statically linked programs is supported.
9657
dlopen_self_static=$enable_dlopen_self_static
9658
 
9659
# Compiler flag to prevent dynamic linking.
9660
link_static_flag=$lt_lt_prog_compiler_static
9661
 
9662
# Compiler flag to turn off builtin functions.
9663
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9664
 
9665
# Compiler flag to allow reflexive dlopens.
9666
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9667
 
9668
# Compiler flag to generate shared objects directly from archives.
9669
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9670
 
9671
# Compiler flag to generate thread-safe objects.
9672
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9673
 
9674
# Library versioning type.
9675
version_type=$version_type
9676
 
9677
# Format of library name prefix.
9678
libname_spec=$lt_libname_spec
9679
 
9680
# List of archive names.  First name is the real one, the rest are links.
9681
# The last name is the one that the linker finds with -lNAME.
9682
library_names_spec=$lt_library_names_spec
9683
 
9684
# The coded name of the library, if different from the real name.
9685
soname_spec=$lt_soname_spec
9686
 
9687
# Commands used to build and install an old-style archive.
9688
RANLIB=$lt_RANLIB
9689
old_archive_cmds=$lt_old_archive_cmds
9690
old_postinstall_cmds=$lt_old_postinstall_cmds
9691
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9692
 
9693
# Create an old-style archive from a shared archive.
9694
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9695
 
9696
# Create a temporary old-style archive to link instead of a shared archive.
9697
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9698
 
9699
# Commands used to build and install a shared archive.
9700
archive_cmds=$lt_archive_cmds
9701
archive_expsym_cmds=$lt_archive_expsym_cmds
9702
postinstall_cmds=$lt_postinstall_cmds
9703
postuninstall_cmds=$lt_postuninstall_cmds
9704
 
9705
# Commands used to build a loadable module (assumed same as above if empty)
9706
module_cmds=$lt_module_cmds
9707
module_expsym_cmds=$lt_module_expsym_cmds
9708
 
9709
# Commands to strip libraries.
9710
old_striplib=$lt_old_striplib
9711
striplib=$lt_striplib
9712
 
9713
# Dependencies to place before the objects being linked to create a
9714
# shared library.
9715
predep_objects=$lt_predep_objects
9716
 
9717
# Dependencies to place after the objects being linked to create a
9718
# shared library.
9719
postdep_objects=$lt_postdep_objects
9720
 
9721
# Dependencies to place before the objects being linked to create a
9722
# shared library.
9723
predeps=$lt_predeps
9724
 
9725
# Dependencies to place after the objects being linked to create a
9726
# shared library.
9727
postdeps=$lt_postdeps
9728
 
9729
# The library search path used internally by the compiler when linking
9730
# a shared library.
9731
compiler_lib_search_path=$lt_compiler_lib_search_path
9732
 
9733
# Method to check whether dependent libraries are shared objects.
9734
deplibs_check_method=$lt_deplibs_check_method
9735
 
9736
# Command to use when deplibs_check_method == file_magic.
9737
file_magic_cmd=$lt_file_magic_cmd
9738
 
9739
# Flag that allows shared libraries with undefined symbols to be built.
9740
allow_undefined_flag=$lt_allow_undefined_flag
9741
 
9742
# Flag that forces no undefined symbols.
9743
no_undefined_flag=$lt_no_undefined_flag
9744
 
9745
# Commands used to finish a libtool library installation in a directory.
9746
finish_cmds=$lt_finish_cmds
9747
 
9748
# Same as above, but a single script fragment to be evaled but not shown.
9749
finish_eval=$lt_finish_eval
9750
 
9751
# Take the output of nm and produce a listing of raw symbols and C names.
9752
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9753
 
9754
# Transform the output of nm in a proper C declaration
9755
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9756
 
9757
# Transform the output of nm in a C name address pair
9758
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9759
 
9760
# This is the shared library runtime path variable.
9761
runpath_var=$runpath_var
9762
 
9763
# This is the shared library path variable.
9764
shlibpath_var=$shlibpath_var
9765
 
9766
# Is shlibpath searched before the hard-coded library search path?
9767
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9768
 
9769
# How to hardcode a shared library path into an executable.
9770
hardcode_action=$hardcode_action
9771
 
9772
# Whether we should hardcode library paths into libraries.
9773
hardcode_into_libs=$hardcode_into_libs
9774
 
9775
# Flag to hardcode \$libdir into a binary during linking.
9776
# This must work even if \$libdir does not exist.
9777
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9778
 
9779
# If ld is used when linking, flag to hardcode \$libdir into
9780
# a binary during linking. This must work even if \$libdir does
9781
# not exist.
9782
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9783
 
9784
# Whether we need a single -rpath flag with a separated argument.
9785
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9786
 
9787
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9788
# resulting binary.
9789
hardcode_direct=$hardcode_direct
9790
 
9791
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9792
# resulting binary.
9793
hardcode_minus_L=$hardcode_minus_L
9794
 
9795
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9796
# the resulting binary.
9797
hardcode_shlibpath_var=$hardcode_shlibpath_var
9798
 
9799
# Set to yes if building a shared library automatically hardcodes DIR into the library
9800
# and all subsequent libraries and executables linked against it.
9801
hardcode_automatic=$hardcode_automatic
9802
 
9803
# Variables whose values should be saved in libtool wrapper scripts and
9804
# restored at relink time.
9805
variables_saved_for_relink="$variables_saved_for_relink"
9806
 
9807
# Whether libtool must link a program against all its dependency libraries.
9808
link_all_deplibs=$link_all_deplibs
9809
 
9810
# Compile-time system search path for libraries
9811
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9812
 
9813
# Run-time system search path for libraries
9814
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9815
 
9816
# Fix the shell variable \$srcfile for the compiler.
9817
fix_srcfile_path=$lt_fix_srcfile_path
9818
 
9819
# Set to yes if exported symbols are required.
9820
always_export_symbols=$always_export_symbols
9821
 
9822
# The commands to list exported symbols.
9823
export_symbols_cmds=$lt_export_symbols_cmds
9824
 
9825
# The commands to extract the exported symbol list from a shared archive.
9826
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9827
 
9828
# Symbols that should not be listed in the preloaded symbols.
9829
exclude_expsyms=$lt_exclude_expsyms
9830
 
9831
# Symbols that must always be exported.
9832
include_expsyms=$lt_include_expsyms
9833
 
9834
# ### END LIBTOOL CONFIG
9835
 
9836
__EOF__
9837
 
9838
 
9839
  case $host_os in
9840
  aix3*)
9841
    cat <<\EOF >> "$cfgfile"
9842
 
9843
# AIX sometimes has problems with the GCC collect2 program.  For some
9844
# reason, if we set the COLLECT_NAMES environment variable, the problems
9845
# vanish in a puff of smoke.
9846
if test "X${COLLECT_NAMES+set}" != Xset; then
9847
  COLLECT_NAMES=
9848
  export COLLECT_NAMES
9849
fi
9850
EOF
9851
    ;;
9852
  esac
9853
 
9854
  # We use sed instead of cat because bash on DJGPP gets confused if
9855
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9856
  # text mode, it properly converts lines to CR/LF.  This bash problem
9857
  # is reportedly fixed, but why not run on old versions too?
9858
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9859
 
9860
  mv -f "$cfgfile" "$ofile" || \
9861
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9862
  chmod +x "$ofile"
9863
 
9864
else
9865
  # If there is no Makefile yet, we rely on a make rule to execute
9866
  # `config.status --recheck' to rerun these tests and create the
9867
  # libtool script then.
9868
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9869
  if test -f "$ltmain_in"; then
9870
    test -f Makefile && make "$ltmain"
9871
  fi
9872
fi
9873
 
9874
 
9875
ac_ext=c
9876
ac_cpp='$CPP $CPPFLAGS'
9877
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9878
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9879
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9880
 
9881
CC="$lt_save_CC"
9882
 
9883
 
9884
# Check whether --with-tags was given.
9885
if test "${with_tags+set}" = set; then
9886
  withval=$with_tags; tagnames="$withval"
9887
fi
9888
 
9889
 
9890
if test -f "$ltmain" && test -n "$tagnames"; then
9891
  if test ! -f "${ofile}"; then
9892
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9893
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9894
  fi
9895
 
9896
  if test -z "$LTCC"; then
9897
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9898
    if test -z "$LTCC"; then
9899
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9900
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9901
    else
9902
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9903
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9904
    fi
9905
  fi
9906
  if test -z "$LTCFLAGS"; then
9907
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9908
  fi
9909
 
9910
  # Extract list of available tagged configurations in $ofile.
9911
  # Note that this assumes the entire list is on one line.
9912
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9913
 
9914
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9915
  for tagname in $tagnames; do
9916
    IFS="$lt_save_ifs"
9917
    # Check whether tagname contains only valid characters
9918
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9919
    "") ;;
9920
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9921
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9922
   { (exit 1); exit 1; }; }
9923
        ;;
9924
    esac
9925
 
9926
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9927
    then
9928
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9929
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9930
   { (exit 1); exit 1; }; }
9931
    fi
9932
 
9933
    # Update the list of available tags.
9934
    if test -n "$tagname"; then
9935
      echo appending configuration tag \"$tagname\" to $ofile
9936
 
9937
      case $tagname in
9938
      CXX)
9939
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9940
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9941
            (test "X$CXX" != "Xg++"))) ; then
9942
          ac_ext=cpp
9943
ac_cpp='$CXXCPP $CPPFLAGS'
9944
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9945
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9946
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9947
 
9948
 
9949
 
9950
 
9951
archive_cmds_need_lc_CXX=no
9952
allow_undefined_flag_CXX=
9953
always_export_symbols_CXX=no
9954
archive_expsym_cmds_CXX=
9955
export_dynamic_flag_spec_CXX=
9956
hardcode_direct_CXX=no
9957
hardcode_libdir_flag_spec_CXX=
9958
hardcode_libdir_flag_spec_ld_CXX=
9959
hardcode_libdir_separator_CXX=
9960
hardcode_minus_L_CXX=no
9961
hardcode_shlibpath_var_CXX=unsupported
9962
hardcode_automatic_CXX=no
9963
module_cmds_CXX=
9964
module_expsym_cmds_CXX=
9965
link_all_deplibs_CXX=unknown
9966
old_archive_cmds_CXX=$old_archive_cmds
9967
no_undefined_flag_CXX=
9968
whole_archive_flag_spec_CXX=
9969
enable_shared_with_static_runtimes_CXX=no
9970
 
9971
# Dependencies to place before and after the object being linked:
9972
predep_objects_CXX=
9973
postdep_objects_CXX=
9974
predeps_CXX=
9975
postdeps_CXX=
9976
compiler_lib_search_path_CXX=
9977
 
9978
# Source file extension for C++ test sources.
9979
ac_ext=cpp
9980
 
9981
# Object file extension for compiled C++ test sources.
9982
objext=o
9983
objext_CXX=$objext
9984
 
9985
# Code to be used in simple compile tests
9986
lt_simple_compile_test_code="int some_variable = 0;"
9987
 
9988
# Code to be used in simple link tests
9989
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9990
 
9991
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9992
 
9993
# If no C compiler was specified, use CC.
9994
LTCC=${LTCC-"$CC"}
9995
 
9996
# If no C compiler flags were specified, use CFLAGS.
9997
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9998
 
9999
# Allow CC to be a program name with arguments.
10000
compiler=$CC
10001
 
10002
 
10003
# save warnings/boilerplate of simple test code
10004
ac_outfile=conftest.$ac_objext
10005
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10006
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10007
_lt_compiler_boilerplate=`cat conftest.err`
10008
$rm conftest*
10009
 
10010
ac_outfile=conftest.$ac_objext
10011
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10012
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10013
_lt_linker_boilerplate=`cat conftest.err`
10014
$rm conftest*
10015
 
10016
 
10017
# Allow CC to be a program name with arguments.
10018
lt_save_CC=$CC
10019
lt_save_LD=$LD
10020
lt_save_GCC=$GCC
10021
GCC=$GXX
10022
lt_save_with_gnu_ld=$with_gnu_ld
10023
lt_save_path_LD=$lt_cv_path_LD
10024
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10025
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10026
else
10027
  $as_unset lt_cv_prog_gnu_ld
10028
fi
10029
if test -n "${lt_cv_path_LDCXX+set}"; then
10030
  lt_cv_path_LD=$lt_cv_path_LDCXX
10031
else
10032
  $as_unset lt_cv_path_LD
10033
fi
10034
test -z "${LDCXX+set}" || LD=$LDCXX
10035
CC=${CXX-"c++"}
10036
compiler=$CC
10037
compiler_CXX=$CC
10038
for cc_temp in $compiler""; do
10039
  case $cc_temp in
10040
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10041
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10042
    \-*) ;;
10043
    *) break;;
10044
  esac
10045
done
10046
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10047
 
10048
 
10049
# We don't want -fno-exception wen compiling C++ code, so set the
10050
# no_builtin_flag separately
10051
if test "$GXX" = yes; then
10052
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10053
else
10054
  lt_prog_compiler_no_builtin_flag_CXX=
10055
fi
10056
 
10057
if test "$GXX" = yes; then
10058
  # Set up default GNU C++ configuration
10059
 
10060
 
10061
# Check whether --with-gnu-ld was given.
10062
if test "${with_gnu_ld+set}" = set; then
10063
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10064
else
10065
  with_gnu_ld=no
10066
fi
10067
 
10068
ac_prog=ld
10069
if test "$GCC" = yes; then
10070
  # Check if gcc -print-prog-name=ld gives a path.
10071
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10072
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10073
  case $host in
10074
  *-*-mingw*)
10075
    # gcc leaves a trailing carriage return which upsets mingw
10076
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10077
  *)
10078
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10079
  esac
10080
  case $ac_prog in
10081
    # Accept absolute paths.
10082
    [\\/]* | ?:[\\/]*)
10083
      re_direlt='/[^/][^/]*/\.\./'
10084
      # Canonicalize the pathname of ld
10085
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10086
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10087
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10088
      done
10089
      test -z "$LD" && LD="$ac_prog"
10090
      ;;
10091
  "")
10092
    # If it fails, then pretend we aren't using GCC.
10093
    ac_prog=ld
10094
    ;;
10095
  *)
10096
    # If it is relative, then search for the first ld in PATH.
10097
    with_gnu_ld=unknown
10098
    ;;
10099
  esac
10100
elif test "$with_gnu_ld" = yes; then
10101
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10102
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10103
else
10104
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10105
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10106
fi
10107
if test "${lt_cv_path_LD+set}" = set; then
10108
  echo $ECHO_N "(cached) $ECHO_C" >&6
10109
else
10110
  if test -z "$LD"; then
10111
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10112
  for ac_dir in $PATH; do
10113
    IFS="$lt_save_ifs"
10114
    test -z "$ac_dir" && ac_dir=.
10115
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10116
      lt_cv_path_LD="$ac_dir/$ac_prog"
10117
      # Check to see if the program is GNU ld.  I'd rather use --version,
10118
      # but apparently some variants of GNU ld only accept -v.
10119
      # Break only if it was the GNU/non-GNU ld that we prefer.
10120
      case `"$lt_cv_path_LD" -v 2>&1 
10121
      *GNU* | *'with BFD'*)
10122
        test "$with_gnu_ld" != no && break
10123
        ;;
10124
      *)
10125
        test "$with_gnu_ld" != yes && break
10126
        ;;
10127
      esac
10128
    fi
10129
  done
10130
  IFS="$lt_save_ifs"
10131
else
10132
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10133
fi
10134
fi
10135
 
10136
LD="$lt_cv_path_LD"
10137
if test -n "$LD"; then
10138
  { echo "$as_me:$LINENO: result: $LD" >&5
10139
echo "${ECHO_T}$LD" >&6; }
10140
else
10141
  { echo "$as_me:$LINENO: result: no" >&5
10142
echo "${ECHO_T}no" >&6; }
10143
fi
10144
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10145
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10146
   { (exit 1); exit 1; }; }
10147
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10148
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10149
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10150
  echo $ECHO_N "(cached) $ECHO_C" >&6
10151
else
10152
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10153
case `$LD -v 2>&1 
10154
*GNU* | *'with BFD'*)
10155
  lt_cv_prog_gnu_ld=yes
10156
  ;;
10157
*)
10158
  lt_cv_prog_gnu_ld=no
10159
  ;;
10160
esac
10161
fi
10162
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10163
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10164
with_gnu_ld=$lt_cv_prog_gnu_ld
10165
 
10166
 
10167
 
10168
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10169
  # archiving commands below assume that GNU ld is being used.
10170
  if test "$with_gnu_ld" = yes; then
10171
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10172
    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'
10173
 
10174
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10175
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10176
 
10177
    # If archive_cmds runs LD, not CC, wlarc should be empty
10178
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10179
    #     investigate it a little bit more. (MM)
10180
    wlarc='${wl}'
10181
 
10182
    # ancient GNU ld didn't support --whole-archive et. al.
10183
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10184
        grep 'no-whole-archive' > /dev/null; then
10185
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10186
    else
10187
      whole_archive_flag_spec_CXX=
10188
    fi
10189
  else
10190
    with_gnu_ld=no
10191
    wlarc=
10192
 
10193
    # A generic and very simple default shared library creation
10194
    # command for GNU C++ for the case where it uses the native
10195
    # linker, instead of GNU ld.  If possible, this setting should
10196
    # overridden to take advantage of the native linker features on
10197
    # the platform it is being used on.
10198
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10199
  fi
10200
 
10201
  # Commands to make compiler produce verbose output that lists
10202
  # what "hidden" libraries, object files and flags are used when
10203
  # linking a shared library.
10204
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10205
 
10206
else
10207
  GXX=no
10208
  with_gnu_ld=no
10209
  wlarc=
10210
fi
10211
 
10212
# PORTME: fill in a description of your system's C++ link characteristics
10213
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10214
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10215
ld_shlibs_CXX=yes
10216
case $host_os in
10217
  aix3*)
10218
    # FIXME: insert proper C++ library support
10219
    ld_shlibs_CXX=no
10220
    ;;
10221
  aix4* | aix5*)
10222
    if test "$host_cpu" = ia64; then
10223
      # On IA64, the linker does run time linking by default, so we don't
10224
      # have to do anything special.
10225
      aix_use_runtimelinking=no
10226
      exp_sym_flag='-Bexport'
10227
      no_entry_flag=""
10228
    else
10229
      aix_use_runtimelinking=no
10230
 
10231
      # Test if we are trying to use run time linking or normal
10232
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10233
      # need to do runtime linking.
10234
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10235
        for ld_flag in $LDFLAGS; do
10236
          case $ld_flag in
10237
          *-brtl*)
10238
            aix_use_runtimelinking=yes
10239
            break
10240
            ;;
10241
          esac
10242
        done
10243
        ;;
10244
      esac
10245
 
10246
      exp_sym_flag='-bexport'
10247
      no_entry_flag='-bnoentry'
10248
    fi
10249
 
10250
    # When large executables or shared objects are built, AIX ld can
10251
    # have problems creating the table of contents.  If linking a library
10252
    # or program results in "error TOC overflow" add -mminimal-toc to
10253
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10254
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10255
 
10256
    archive_cmds_CXX=''
10257
    hardcode_direct_CXX=yes
10258
    hardcode_libdir_separator_CXX=':'
10259
    link_all_deplibs_CXX=yes
10260
 
10261
    if test "$GXX" = yes; then
10262
      case $host_os in aix4.[012]|aix4.[012].*)
10263
      # We only want to do this on AIX 4.2 and lower, the check
10264
      # below for broken collect2 doesn't work under 4.3+
10265
        collect2name=`${CC} -print-prog-name=collect2`
10266
        if test -f "$collect2name" && \
10267
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10268
        then
10269
          # We have reworked collect2
10270
          :
10271
        else
10272
          # We have old collect2
10273
          hardcode_direct_CXX=unsupported
10274
          # It fails to find uninstalled libraries when the uninstalled
10275
          # path is not listed in the libpath.  Setting hardcode_minus_L
10276
          # to unsupported forces relinking
10277
          hardcode_minus_L_CXX=yes
10278
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10279
          hardcode_libdir_separator_CXX=
10280
        fi
10281
        ;;
10282
      esac
10283
      shared_flag='-shared'
10284
      if test "$aix_use_runtimelinking" = yes; then
10285
        shared_flag="$shared_flag "'${wl}-G'
10286
      fi
10287
    else
10288
      # not using gcc
10289
      if test "$host_cpu" = ia64; then
10290
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10291
        # chokes on -Wl,-G. The following line is correct:
10292
        shared_flag='-G'
10293
      else
10294
        if test "$aix_use_runtimelinking" = yes; then
10295
          shared_flag='${wl}-G'
10296
        else
10297
          shared_flag='${wl}-bM:SRE'
10298
        fi
10299
      fi
10300
    fi
10301
 
10302
    # It seems that -bexpall does not export symbols beginning with
10303
    # underscore (_), so it is better to generate a list of symbols to export.
10304
    always_export_symbols_CXX=yes
10305
    if test "$aix_use_runtimelinking" = yes; then
10306
      # Warning - without using the other runtime loading flags (-brtl),
10307
      # -berok will link without error, but may produce a broken library.
10308
      allow_undefined_flag_CXX='-berok'
10309
      # Determine the default libpath from the value encoded in an empty executable.
10310
      cat >conftest.$ac_ext <<_ACEOF
10311
/* confdefs.h.  */
10312
_ACEOF
10313
cat confdefs.h >>conftest.$ac_ext
10314
cat >>conftest.$ac_ext <<_ACEOF
10315
/* end confdefs.h.  */
10316
 
10317
int
10318
main ()
10319
{
10320
 
10321
  ;
10322
  return 0;
10323
}
10324
_ACEOF
10325
rm -f conftest.$ac_objext conftest$ac_exeext
10326
if { (ac_try="$ac_link"
10327
case "(($ac_try" in
10328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329
  *) ac_try_echo=$ac_try;;
10330
esac
10331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332
  (eval "$ac_link") 2>conftest.er1
10333
  ac_status=$?
10334
  grep -v '^ *+' conftest.er1 >conftest.err
10335
  rm -f conftest.er1
10336
  cat conftest.err >&5
10337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338
  (exit $ac_status); } && {
10339
         test -z "$ac_cxx_werror_flag" ||
10340
         test ! -s conftest.err
10341
       } && test -s conftest$ac_exeext &&
10342
       $as_test_x conftest$ac_exeext; then
10343
 
10344
lt_aix_libpath_sed='
10345
    /Import File Strings/,/^$/ {
10346
        /^0/ {
10347
            s/^0  *\(.*\)$/\1/
10348
            p
10349
        }
10350
    }'
10351
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10352
# Check for a 64-bit object if we didn't find anything.
10353
if test -z "$aix_libpath"; then
10354
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10355
fi
10356
else
10357
  echo "$as_me: failed program was:" >&5
10358
sed 's/^/| /' conftest.$ac_ext >&5
10359
 
10360
 
10361
fi
10362
 
10363
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364
      conftest$ac_exeext conftest.$ac_ext
10365
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10366
 
10367
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10368
 
10369
      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"
10370
     else
10371
      if test "$host_cpu" = ia64; then
10372
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10373
        allow_undefined_flag_CXX="-z nodefs"
10374
        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"
10375
      else
10376
        # Determine the default libpath from the value encoded in an empty executable.
10377
        cat >conftest.$ac_ext <<_ACEOF
10378
/* confdefs.h.  */
10379
_ACEOF
10380
cat confdefs.h >>conftest.$ac_ext
10381
cat >>conftest.$ac_ext <<_ACEOF
10382
/* end confdefs.h.  */
10383
 
10384
int
10385
main ()
10386
{
10387
 
10388
  ;
10389
  return 0;
10390
}
10391
_ACEOF
10392
rm -f conftest.$ac_objext conftest$ac_exeext
10393
if { (ac_try="$ac_link"
10394
case "(($ac_try" in
10395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396
  *) ac_try_echo=$ac_try;;
10397
esac
10398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399
  (eval "$ac_link") 2>conftest.er1
10400
  ac_status=$?
10401
  grep -v '^ *+' conftest.er1 >conftest.err
10402
  rm -f conftest.er1
10403
  cat conftest.err >&5
10404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405
  (exit $ac_status); } && {
10406
         test -z "$ac_cxx_werror_flag" ||
10407
         test ! -s conftest.err
10408
       } && test -s conftest$ac_exeext &&
10409
       $as_test_x conftest$ac_exeext; then
10410
 
10411
lt_aix_libpath_sed='
10412
    /Import File Strings/,/^$/ {
10413
        /^0/ {
10414
            s/^0  *\(.*\)$/\1/
10415
            p
10416
        }
10417
    }'
10418
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10419
# Check for a 64-bit object if we didn't find anything.
10420
if test -z "$aix_libpath"; then
10421
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422
fi
10423
else
10424
  echo "$as_me: failed program was:" >&5
10425
sed 's/^/| /' conftest.$ac_ext >&5
10426
 
10427
 
10428
fi
10429
 
10430
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10431
      conftest$ac_exeext conftest.$ac_ext
10432
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10433
 
10434
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10435
        # Warning - without using the other run time loading flags,
10436
        # -berok will link without error, but may produce a broken library.
10437
        no_undefined_flag_CXX=' ${wl}-bernotok'
10438
        allow_undefined_flag_CXX=' ${wl}-berok'
10439
        # Exported symbols can be pulled into shared objects from archives
10440
        whole_archive_flag_spec_CXX='$convenience'
10441
        archive_cmds_need_lc_CXX=yes
10442
        # This is similar to how AIX traditionally builds its shared libraries.
10443
        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'
10444
      fi
10445
    fi
10446
    ;;
10447
 
10448
  beos*)
10449
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10450
      allow_undefined_flag_CXX=unsupported
10451
      # Joseph Beckenbach  says some releases of gcc
10452
      # support --undefined.  This deserves some investigation.  FIXME
10453
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454
    else
10455
      ld_shlibs_CXX=no
10456
    fi
10457
    ;;
10458
 
10459
  chorus*)
10460
    case $cc_basename in
10461
      *)
10462
        # FIXME: insert proper C++ library support
10463
        ld_shlibs_CXX=no
10464
        ;;
10465
    esac
10466
    ;;
10467
 
10468
  cygwin* | mingw* | pw32*)
10469
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10470
    # as there is no search path for DLLs.
10471
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10472
    allow_undefined_flag_CXX=unsupported
10473
    always_export_symbols_CXX=no
10474
    enable_shared_with_static_runtimes_CXX=yes
10475
 
10476
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10477
      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'
10478
      # If the export-symbols file already is a .def file (1st line
10479
      # is EXPORTS), use it as is; otherwise, prepend...
10480
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10481
        cp $export_symbols $output_objdir/$soname.def;
10482
      else
10483
        echo EXPORTS > $output_objdir/$soname.def;
10484
        cat $export_symbols >> $output_objdir/$soname.def;
10485
      fi~
10486
      $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'
10487
    else
10488
      ld_shlibs_CXX=no
10489
    fi
10490
  ;;
10491
      darwin* | rhapsody*)
10492
        case $host_os in
10493
        rhapsody* | darwin1.[012])
10494
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10495
         ;;
10496
       *) # Darwin 1.3 on
10497
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10498
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10499
         else
10500
           case ${MACOSX_DEPLOYMENT_TARGET} in
10501
             10.[012])
10502
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10503
               ;;
10504
             10.*)
10505
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10506
               ;;
10507
           esac
10508
         fi
10509
         ;;
10510
        esac
10511
      archive_cmds_need_lc_CXX=no
10512
      hardcode_direct_CXX=no
10513
      hardcode_automatic_CXX=yes
10514
      hardcode_shlibpath_var_CXX=unsupported
10515
      whole_archive_flag_spec_CXX=''
10516
      link_all_deplibs_CXX=yes
10517
 
10518
    if test "$GXX" = yes ; then
10519
      lt_int_apple_cc_single_mod=no
10520
      output_verbose_link_cmd='echo'
10521
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10522
       lt_int_apple_cc_single_mod=yes
10523
      fi
10524
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10525
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10526
      else
10527
          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'
10528
        fi
10529
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10530
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10531
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10532
            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}'
10533
          else
10534
            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}'
10535
          fi
10536
            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}'
10537
      else
10538
      case $cc_basename in
10539
        xlc*)
10540
         output_verbose_link_cmd='echo'
10541
          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'
10542
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10543
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10544
          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}'
10545
          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}'
10546
          ;;
10547
       *)
10548
         ld_shlibs_CXX=no
10549
          ;;
10550
      esac
10551
      fi
10552
        ;;
10553
 
10554
  dgux*)
10555
    case $cc_basename in
10556
      ec++*)
10557
        # FIXME: insert proper C++ library support
10558
        ld_shlibs_CXX=no
10559
        ;;
10560
      ghcx*)
10561
        # Green Hills C++ Compiler
10562
        # FIXME: insert proper C++ library support
10563
        ld_shlibs_CXX=no
10564
        ;;
10565
      *)
10566
        # FIXME: insert proper C++ library support
10567
        ld_shlibs_CXX=no
10568
        ;;
10569
    esac
10570
    ;;
10571
  freebsd[12]*)
10572
    # C++ shared libraries reported to be fairly broken before switch to ELF
10573
    ld_shlibs_CXX=no
10574
    ;;
10575
  freebsd-elf*)
10576
    archive_cmds_need_lc_CXX=no
10577
    ;;
10578
  freebsd* | dragonfly*)
10579
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10580
    # conventions
10581
    ld_shlibs_CXX=yes
10582
    ;;
10583
  gnu*)
10584
    ;;
10585
  hpux9*)
10586
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10587
    hardcode_libdir_separator_CXX=:
10588
    export_dynamic_flag_spec_CXX='${wl}-E'
10589
    hardcode_direct_CXX=yes
10590
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10591
                                # but as the default
10592
                                # location of the library.
10593
 
10594
    case $cc_basename in
10595
    CC*)
10596
      # FIXME: insert proper C++ library support
10597
      ld_shlibs_CXX=no
10598
      ;;
10599
    aCC*)
10600
      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'
10601
      # Commands to make compiler produce verbose output that lists
10602
      # what "hidden" libraries, object files and flags are used when
10603
      # linking a shared library.
10604
      #
10605
      # There doesn't appear to be a way to prevent this compiler from
10606
      # explicitly linking system object files so we need to strip them
10607
      # from the output so that they don't get included in the library
10608
      # dependencies.
10609
      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'
10610
      ;;
10611
    *)
10612
      if test "$GXX" = yes; then
10613
        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'
10614
      else
10615
        # FIXME: insert proper C++ library support
10616
        ld_shlibs_CXX=no
10617
      fi
10618
      ;;
10619
    esac
10620
    ;;
10621
  hpux10*|hpux11*)
10622
    if test $with_gnu_ld = no; then
10623
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10624
      hardcode_libdir_separator_CXX=:
10625
 
10626
      case $host_cpu in
10627
      hppa*64*|ia64*) ;;
10628
      *)
10629
        export_dynamic_flag_spec_CXX='${wl}-E'
10630
        ;;
10631
      esac
10632
    fi
10633
    case $host_cpu in
10634
    hppa*64*|ia64*)
10635
      hardcode_direct_CXX=no
10636
      hardcode_shlibpath_var_CXX=no
10637
      ;;
10638
    *)
10639
      hardcode_direct_CXX=yes
10640
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10641
                                              # but as the default
10642
                                              # location of the library.
10643
      ;;
10644
    esac
10645
 
10646
    case $cc_basename in
10647
      CC*)
10648
        # FIXME: insert proper C++ library support
10649
        ld_shlibs_CXX=no
10650
        ;;
10651
      aCC*)
10652
        case $host_cpu in
10653
        hppa*64*)
10654
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10655
          ;;
10656
        ia64*)
10657
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10658
          ;;
10659
        *)
10660
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10661
          ;;
10662
        esac
10663
        # Commands to make compiler produce verbose output that lists
10664
        # what "hidden" libraries, object files and flags are used when
10665
        # linking a shared library.
10666
        #
10667
        # There doesn't appear to be a way to prevent this compiler from
10668
        # explicitly linking system object files so we need to strip them
10669
        # from the output so that they don't get included in the library
10670
        # dependencies.
10671
        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'
10672
        ;;
10673
      *)
10674
        if test "$GXX" = yes; then
10675
          if test $with_gnu_ld = no; then
10676
            case $host_cpu in
10677
            hppa*64*)
10678
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10679
              ;;
10680
            ia64*)
10681
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10682
              ;;
10683
            *)
10684
              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'
10685
              ;;
10686
            esac
10687
          fi
10688
        else
10689
          # FIXME: insert proper C++ library support
10690
          ld_shlibs_CXX=no
10691
        fi
10692
        ;;
10693
    esac
10694
    ;;
10695
  interix[3-9]*)
10696
    hardcode_direct_CXX=no
10697
    hardcode_shlibpath_var_CXX=no
10698
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10699
    export_dynamic_flag_spec_CXX='${wl}-E'
10700
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10701
    # Instead, shared libraries are loaded at an image base (0x10000000 by
10702
    # default) and relocated if they conflict, which is a slow very memory
10703
    # consuming and fragmenting process.  To avoid this, we pick a random,
10704
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10705
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10706
    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'
10707
    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'
10708
    ;;
10709
  irix5* | irix6*)
10710
    case $cc_basename in
10711
      CC*)
10712
        # SGI C++
10713
        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'
10714
 
10715
        # Archives containing C++ object files must be created using
10716
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10717
        # necessary to make sure instantiated templates are included
10718
        # in the archive.
10719
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10720
        ;;
10721
      *)
10722
        if test "$GXX" = yes; then
10723
          if test "$with_gnu_ld" = no; then
10724
            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'
10725
          else
10726
            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'
10727
          fi
10728
        fi
10729
        link_all_deplibs_CXX=yes
10730
        ;;
10731
    esac
10732
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10733
    hardcode_libdir_separator_CXX=:
10734
    ;;
10735
  linux* | k*bsd*-gnu)
10736
    case $cc_basename in
10737
      KCC*)
10738
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10739
 
10740
        # KCC will only create a shared library if the output file
10741
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10742
        # to its proper name (with version) after linking.
10743
        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'
10744
        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'
10745
        # Commands to make compiler produce verbose output that lists
10746
        # what "hidden" libraries, object files and flags are used when
10747
        # linking a shared library.
10748
        #
10749
        # There doesn't appear to be a way to prevent this compiler from
10750
        # explicitly linking system object files so we need to strip them
10751
        # from the output so that they don't get included in the library
10752
        # dependencies.
10753
        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'
10754
 
10755
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10756
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10757
 
10758
        # Archives containing C++ object files must be created using
10759
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10760
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10761
        ;;
10762
      icpc*)
10763
        # Intel C++
10764
        with_gnu_ld=yes
10765
        # version 8.0 and above of icpc choke on multiply defined symbols
10766
        # if we add $predep_objects and $postdep_objects, however 7.1 and
10767
        # earlier do not add the objects themselves.
10768
        case `$CC -V 2>&1` in
10769
        *"Version 7."*)
10770
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10771
          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'
10772
          ;;
10773
        *)  # Version 8.0 or newer
10774
          tmp_idyn=
10775
          case $host_cpu in
10776
            ia64*) tmp_idyn=' -i_dynamic';;
10777
          esac
10778
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10779
          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'
10780
          ;;
10781
        esac
10782
        archive_cmds_need_lc_CXX=no
10783
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10784
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10785
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10786
        ;;
10787
      pgCC*)
10788
        # Portland Group C++ compiler
10789
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10790
        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'
10791
 
10792
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10793
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10794
        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'
10795
        ;;
10796
      cxx*)
10797
        # Compaq C++
10798
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10799
        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'
10800
 
10801
        runpath_var=LD_RUN_PATH
10802
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10803
        hardcode_libdir_separator_CXX=:
10804
 
10805
        # Commands to make compiler produce verbose output that lists
10806
        # what "hidden" libraries, object files and flags are used when
10807
        # linking a shared library.
10808
        #
10809
        # There doesn't appear to be a way to prevent this compiler from
10810
        # explicitly linking system object files so we need to strip them
10811
        # from the output so that they don't get included in the library
10812
        # dependencies.
10813
        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'
10814
        ;;
10815
      *)
10816
        case `$CC -V 2>&1 | sed 5q` in
10817
        *Sun\ C*)
10818
          # Sun C++ 5.9
10819
          no_undefined_flag_CXX=' -zdefs'
10820
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10821
          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'
10822
          hardcode_libdir_flag_spec_CXX='-R$libdir'
10823
          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'
10824
 
10825
          # Not sure whether something based on
10826
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10827
          # would be better.
10828
          output_verbose_link_cmd='echo'
10829
 
10830
          # Archives containing C++ object files must be created using
10831
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10832
          # necessary to make sure instantiated templates are included
10833
          # in the archive.
10834
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10835
          ;;
10836
        esac
10837
        ;;
10838
    esac
10839
    ;;
10840
  lynxos*)
10841
    # FIXME: insert proper C++ library support
10842
    ld_shlibs_CXX=no
10843
    ;;
10844
  m88k*)
10845
    # FIXME: insert proper C++ library support
10846
    ld_shlibs_CXX=no
10847
    ;;
10848
  mvs*)
10849
    case $cc_basename in
10850
      cxx*)
10851
        # FIXME: insert proper C++ library support
10852
        ld_shlibs_CXX=no
10853
        ;;
10854
      *)
10855
        # FIXME: insert proper C++ library support
10856
        ld_shlibs_CXX=no
10857
        ;;
10858
    esac
10859
    ;;
10860
  netbsd*)
10861
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10862
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10863
      wlarc=
10864
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10865
      hardcode_direct_CXX=yes
10866
      hardcode_shlibpath_var_CXX=no
10867
    fi
10868
    # Workaround some broken pre-1.5 toolchains
10869
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10870
    ;;
10871
  openbsd2*)
10872
    # C++ shared libraries are fairly broken
10873
    ld_shlibs_CXX=no
10874
    ;;
10875
  openbsd*)
10876
    if test -f /usr/libexec/ld.so; then
10877
      hardcode_direct_CXX=yes
10878
      hardcode_shlibpath_var_CXX=no
10879
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10880
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10881
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10882
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10883
        export_dynamic_flag_spec_CXX='${wl}-E'
10884
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10885
      fi
10886
      output_verbose_link_cmd='echo'
10887
    else
10888
      ld_shlibs_CXX=no
10889
    fi
10890
    ;;
10891
  osf3*)
10892
    case $cc_basename in
10893
      KCC*)
10894
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10895
 
10896
        # KCC will only create a shared library if the output file
10897
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10898
        # to its proper name (with version) after linking.
10899
        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'
10900
 
10901
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10902
        hardcode_libdir_separator_CXX=:
10903
 
10904
        # Archives containing C++ object files must be created using
10905
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10906
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10907
 
10908
        ;;
10909
      RCC*)
10910
        # Rational C++ 2.4.1
10911
        # FIXME: insert proper C++ library support
10912
        ld_shlibs_CXX=no
10913
        ;;
10914
      cxx*)
10915
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10916
        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'
10917
 
10918
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10919
        hardcode_libdir_separator_CXX=:
10920
 
10921
        # Commands to make compiler produce verbose output that lists
10922
        # what "hidden" libraries, object files and flags are used when
10923
        # linking a shared library.
10924
        #
10925
        # There doesn't appear to be a way to prevent this compiler from
10926
        # explicitly linking system object files so we need to strip them
10927
        # from the output so that they don't get included in the library
10928
        # dependencies.
10929
        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'
10930
        ;;
10931
      *)
10932
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10933
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10934
          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'
10935
 
10936
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10937
          hardcode_libdir_separator_CXX=:
10938
 
10939
          # Commands to make compiler produce verbose output that lists
10940
          # what "hidden" libraries, object files and flags are used when
10941
          # linking a shared library.
10942
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10943
 
10944
        else
10945
          # FIXME: insert proper C++ library support
10946
          ld_shlibs_CXX=no
10947
        fi
10948
        ;;
10949
    esac
10950
    ;;
10951
  osf4* | osf5*)
10952
    case $cc_basename in
10953
      KCC*)
10954
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10955
 
10956
        # KCC will only create a shared library if the output file
10957
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10958
        # to its proper name (with version) after linking.
10959
        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'
10960
 
10961
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10962
        hardcode_libdir_separator_CXX=:
10963
 
10964
        # Archives containing C++ object files must be created using
10965
        # the KAI C++ compiler.
10966
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10967
        ;;
10968
      RCC*)
10969
        # Rational C++ 2.4.1
10970
        # FIXME: insert proper C++ library support
10971
        ld_shlibs_CXX=no
10972
        ;;
10973
      cxx*)
10974
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10975
        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'
10976
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10977
          echo "-hidden">> $lib.exp~
10978
          $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~
10979
          $rm $lib.exp'
10980
 
10981
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10982
        hardcode_libdir_separator_CXX=:
10983
 
10984
        # Commands to make compiler produce verbose output that lists
10985
        # what "hidden" libraries, object files and flags are used when
10986
        # linking a shared library.
10987
        #
10988
        # There doesn't appear to be a way to prevent this compiler from
10989
        # explicitly linking system object files so we need to strip them
10990
        # from the output so that they don't get included in the library
10991
        # dependencies.
10992
        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'
10993
        ;;
10994
      *)
10995
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10996
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10997
         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'
10998
 
10999
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11000
          hardcode_libdir_separator_CXX=:
11001
 
11002
          # Commands to make compiler produce verbose output that lists
11003
          # what "hidden" libraries, object files and flags are used when
11004
          # linking a shared library.
11005
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11006
 
11007
        else
11008
          # FIXME: insert proper C++ library support
11009
          ld_shlibs_CXX=no
11010
        fi
11011
        ;;
11012
    esac
11013
    ;;
11014
  psos*)
11015
    # FIXME: insert proper C++ library support
11016
    ld_shlibs_CXX=no
11017
    ;;
11018
  sunos4*)
11019
    case $cc_basename in
11020
      CC*)
11021
        # Sun C++ 4.x
11022
        # FIXME: insert proper C++ library support
11023
        ld_shlibs_CXX=no
11024
        ;;
11025
      lcc*)
11026
        # Lucid
11027
        # FIXME: insert proper C++ library support
11028
        ld_shlibs_CXX=no
11029
        ;;
11030
      *)
11031
        # FIXME: insert proper C++ library support
11032
        ld_shlibs_CXX=no
11033
        ;;
11034
    esac
11035
    ;;
11036
  solaris*)
11037
    case $cc_basename in
11038
      CC*)
11039
        # Sun C++ 4.2, 5.x and Centerline C++
11040
        archive_cmds_need_lc_CXX=yes
11041
        no_undefined_flag_CXX=' -zdefs'
11042
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11043
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11044
        $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'
11045
 
11046
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11047
        hardcode_shlibpath_var_CXX=no
11048
        case $host_os in
11049
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11050
          *)
11051
            # The compiler driver will combine and reorder linker options,
11052
            # but understands `-z linker_flag'.
11053
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11054
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11055
            ;;
11056
        esac
11057
        link_all_deplibs_CXX=yes
11058
 
11059
        output_verbose_link_cmd='echo'
11060
 
11061
        # Archives containing C++ object files must be created using
11062
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11063
        # necessary to make sure instantiated templates are included
11064
        # in the archive.
11065
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11066
        ;;
11067
      gcx*)
11068
        # Green Hills C++ Compiler
11069
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11070
 
11071
        # The C++ compiler must be used to create the archive.
11072
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11073
        ;;
11074
      *)
11075
        # GNU C++ compiler with Solaris linker
11076
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11077
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11078
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11079
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11080
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11081
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11082
 
11083
            # Commands to make compiler produce verbose output that lists
11084
            # what "hidden" libraries, object files and flags are used when
11085
            # linking a shared library.
11086
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11087
          else
11088
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11089
            # platform.
11090
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11091
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11092
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11093
 
11094
            # Commands to make compiler produce verbose output that lists
11095
            # what "hidden" libraries, object files and flags are used when
11096
            # linking a shared library.
11097
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11098
          fi
11099
 
11100
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11101
          case $host_os in
11102
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11103
          *)
11104
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11105
            ;;
11106
          esac
11107
        fi
11108
        ;;
11109
    esac
11110
    ;;
11111
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11112
    no_undefined_flag_CXX='${wl}-z,text'
11113
    archive_cmds_need_lc_CXX=no
11114
    hardcode_shlibpath_var_CXX=no
11115
    runpath_var='LD_RUN_PATH'
11116
 
11117
    case $cc_basename in
11118
      CC*)
11119
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11120
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11121
        ;;
11122
      *)
11123
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125
        ;;
11126
    esac
11127
    ;;
11128
  sysv5* | sco3.2v5* | sco5v6*)
11129
    # Note: We can NOT use -z defs as we might desire, because we do not
11130
    # link with -lc, and that would cause any symbols used from libc to
11131
    # always be unresolved, which means just about no library would
11132
    # ever link correctly.  If we're not using GNU ld we use -z text
11133
    # though, which does catch some bad symbols but isn't as heavy-handed
11134
    # as -z defs.
11135
    # For security reasons, it is highly recommended that you always
11136
    # use absolute paths for naming shared libraries, and exclude the
11137
    # DT_RUNPATH tag from executables and libraries.  But doing so
11138
    # requires that you compile everything twice, which is a pain.
11139
    # So that behaviour is only enabled if SCOABSPATH is set to a
11140
    # non-empty value in the environment.  Most likely only useful for
11141
    # creating official distributions of packages.
11142
    # This is a hack until libtool officially supports absolute path
11143
    # names for shared libraries.
11144
    no_undefined_flag_CXX='${wl}-z,text'
11145
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11146
    archive_cmds_need_lc_CXX=no
11147
    hardcode_shlibpath_var_CXX=no
11148
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11149
    hardcode_libdir_separator_CXX=':'
11150
    link_all_deplibs_CXX=yes
11151
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11152
    runpath_var='LD_RUN_PATH'
11153
 
11154
    case $cc_basename in
11155
      CC*)
11156
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11157
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11158
        ;;
11159
      *)
11160
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11161
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11162
        ;;
11163
    esac
11164
    ;;
11165
  tandem*)
11166
    case $cc_basename in
11167
      NCC*)
11168
        # NonStop-UX NCC 3.20
11169
        # FIXME: insert proper C++ library support
11170
        ld_shlibs_CXX=no
11171
        ;;
11172
      *)
11173
        # FIXME: insert proper C++ library support
11174
        ld_shlibs_CXX=no
11175
        ;;
11176
    esac
11177
    ;;
11178
  vxworks*)
11179
    # FIXME: insert proper C++ library support
11180
    ld_shlibs_CXX=no
11181
    ;;
11182
  *)
11183
    # FIXME: insert proper C++ library support
11184
    ld_shlibs_CXX=no
11185
    ;;
11186
esac
11187
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11188
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11189
test "$ld_shlibs_CXX" = no && can_build_shared=no
11190
 
11191
GCC_CXX="$GXX"
11192
LD_CXX="$LD"
11193
 
11194
 
11195
cat > conftest.$ac_ext <
11196
class Foo
11197
{
11198
public:
11199
  Foo (void) { a = 0; }
11200
private:
11201
  int a;
11202
};
11203
EOF
11204
 
11205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206
  (eval $ac_compile) 2>&5
11207
  ac_status=$?
11208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209
  (exit $ac_status); }; then
11210
  # Parse the compiler output and extract the necessary
11211
  # objects, libraries and library flags.
11212
 
11213
  # Sentinel used to keep track of whether or not we are before
11214
  # the conftest object file.
11215
  pre_test_object_deps_done=no
11216
 
11217
  # The `*' in the case matches for architectures that use `case' in
11218
  # $output_verbose_cmd can trigger glob expansion during the loop
11219
  # eval without this substitution.
11220
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11221
 
11222
  for p in `eval $output_verbose_link_cmd`; do
11223
    case $p in
11224
 
11225
    -L* | -R* | -l*)
11226
       # Some compilers place space between "-{L,R}" and the path.
11227
       # Remove the space.
11228
       if test $p = "-L" \
11229
          || test $p = "-R"; then
11230
         prev=$p
11231
         continue
11232
       else
11233
         prev=
11234
       fi
11235
 
11236
       if test "$pre_test_object_deps_done" = no; then
11237
         case $p in
11238
         -L* | -R*)
11239
           # Internal compiler library paths should come after those
11240
           # provided the user.  The postdeps already come after the
11241
           # user supplied libs so there is no need to process them.
11242
           if test -z "$compiler_lib_search_path_CXX"; then
11243
             compiler_lib_search_path_CXX="${prev}${p}"
11244
           else
11245
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11246
           fi
11247
           ;;
11248
         # The "-l" case would never come before the object being
11249
         # linked, so don't bother handling this case.
11250
         esac
11251
       else
11252
         if test -z "$postdeps_CXX"; then
11253
           postdeps_CXX="${prev}${p}"
11254
         else
11255
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11256
         fi
11257
       fi
11258
       ;;
11259
 
11260
    *.$objext)
11261
       # This assumes that the test object file only shows up
11262
       # once in the compiler output.
11263
       if test "$p" = "conftest.$objext"; then
11264
         pre_test_object_deps_done=yes
11265
         continue
11266
       fi
11267
 
11268
       if test "$pre_test_object_deps_done" = no; then
11269
         if test -z "$predep_objects_CXX"; then
11270
           predep_objects_CXX="$p"
11271
         else
11272
           predep_objects_CXX="$predep_objects_CXX $p"
11273
         fi
11274
       else
11275
         if test -z "$postdep_objects_CXX"; then
11276
           postdep_objects_CXX="$p"
11277
         else
11278
           postdep_objects_CXX="$postdep_objects_CXX $p"
11279
         fi
11280
       fi
11281
       ;;
11282
 
11283
    *) ;; # Ignore the rest.
11284
 
11285
    esac
11286
  done
11287
 
11288
  # Clean up.
11289
  rm -f a.out a.exe
11290
else
11291
  echo "libtool.m4: error: problem compiling CXX test program"
11292
fi
11293
 
11294
$rm -f confest.$objext
11295
 
11296
# PORTME: override above test on systems where it is broken
11297
case $host_os in
11298
interix[3-9]*)
11299
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11300
  # hack all around it, let's just trust "g++" to DTRT.
11301
  predep_objects_CXX=
11302
  postdep_objects_CXX=
11303
  postdeps_CXX=
11304
  ;;
11305
 
11306
linux*)
11307
  case `$CC -V 2>&1 | sed 5q` in
11308
  *Sun\ C*)
11309
    # Sun C++ 5.9
11310
    #
11311
    # The more standards-conforming stlport4 library is
11312
    # incompatible with the Cstd library. Avoid specifying
11313
    # it if it's in CXXFLAGS. Ignore libCrun as
11314
    # -library=stlport4 depends on it.
11315
    case " $CXX $CXXFLAGS " in
11316
    *" -library=stlport4 "*)
11317
      solaris_use_stlport4=yes
11318
      ;;
11319
    esac
11320
    if test "$solaris_use_stlport4" != yes; then
11321
      postdeps_CXX='-library=Cstd -library=Crun'
11322
    fi
11323
    ;;
11324
  esac
11325
  ;;
11326
 
11327
solaris*)
11328
  case $cc_basename in
11329
  CC*)
11330
    # The more standards-conforming stlport4 library is
11331
    # incompatible with the Cstd library. Avoid specifying
11332
    # it if it's in CXXFLAGS. Ignore libCrun as
11333
    # -library=stlport4 depends on it.
11334
    case " $CXX $CXXFLAGS " in
11335
    *" -library=stlport4 "*)
11336
      solaris_use_stlport4=yes
11337
      ;;
11338
    esac
11339
 
11340
    # Adding this requires a known-good setup of shared libraries for
11341
    # Sun compiler versions before 5.6, else PIC objects from an old
11342
    # archive will be linked into the output, leading to subtle bugs.
11343
    if test "$solaris_use_stlport4" != yes; then
11344
      postdeps_CXX='-library=Cstd -library=Crun'
11345
    fi
11346
    ;;
11347
  esac
11348
  ;;
11349
esac
11350
 
11351
 
11352
case " $postdeps_CXX " in
11353
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11354
esac
11355
 
11356
lt_prog_compiler_wl_CXX=
11357
lt_prog_compiler_pic_CXX=
11358
lt_prog_compiler_static_CXX=
11359
 
11360
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11361
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11362
 
11363
  # C++ specific cases for pic, static, wl, etc.
11364
  if test "$GXX" = yes; then
11365
    lt_prog_compiler_wl_CXX='-Wl,'
11366
    lt_prog_compiler_static_CXX='-static'
11367
 
11368
    case $host_os in
11369
    aix*)
11370
      # All AIX code is PIC.
11371
      if test "$host_cpu" = ia64; then
11372
        # AIX 5 now supports IA64 processor
11373
        lt_prog_compiler_static_CXX='-Bstatic'
11374
      fi
11375
      ;;
11376
    amigaos*)
11377
      # FIXME: we need at least 68020 code to build shared libraries, but
11378
      # adding the `-m68020' flag to GCC prevents building anything better,
11379
      # like `-m68040'.
11380
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11381
      ;;
11382
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11383
      # PIC is the default for these OSes.
11384
      ;;
11385
    mingw* | cygwin* | os2* | pw32*)
11386
      # This hack is so that the source file can tell whether it is being
11387
      # built for inclusion in a dll (and should export symbols for example).
11388
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11389
      # (--disable-auto-import) libraries
11390
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11391
      ;;
11392
    darwin* | rhapsody*)
11393
      # PIC is the default on this platform
11394
      # Common symbols not allowed in MH_DYLIB files
11395
      lt_prog_compiler_pic_CXX='-fno-common'
11396
      ;;
11397
    *djgpp*)
11398
      # DJGPP does not support shared libraries at all
11399
      lt_prog_compiler_pic_CXX=
11400
      ;;
11401
    interix[3-9]*)
11402
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11403
      # Instead, we relocate shared libraries at runtime.
11404
      ;;
11405
    sysv4*MP*)
11406
      if test -d /usr/nec; then
11407
        lt_prog_compiler_pic_CXX=-Kconform_pic
11408
      fi
11409
      ;;
11410
    hpux*)
11411
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11412
      # not for PA HP-UX.
11413
      case $host_cpu in
11414
      hppa*64*|ia64*)
11415
        ;;
11416
      *)
11417
        lt_prog_compiler_pic_CXX='-fPIC'
11418
        ;;
11419
      esac
11420
      ;;
11421
    *)
11422
      lt_prog_compiler_pic_CXX='-fPIC'
11423
      ;;
11424
    esac
11425
  else
11426
    case $host_os in
11427
      aix4* | aix5*)
11428
        # All AIX code is PIC.
11429
        if test "$host_cpu" = ia64; then
11430
          # AIX 5 now supports IA64 processor
11431
          lt_prog_compiler_static_CXX='-Bstatic'
11432
        else
11433
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11434
        fi
11435
        ;;
11436
      chorus*)
11437
        case $cc_basename in
11438
        cxch68*)
11439
          # Green Hills C++ Compiler
11440
          # _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"
11441
          ;;
11442
        esac
11443
        ;;
11444
       darwin*)
11445
         # PIC is the default on this platform
11446
         # Common symbols not allowed in MH_DYLIB files
11447
         case $cc_basename in
11448
           xlc*)
11449
           lt_prog_compiler_pic_CXX='-qnocommon'
11450
           lt_prog_compiler_wl_CXX='-Wl,'
11451
           ;;
11452
         esac
11453
       ;;
11454
      dgux*)
11455
        case $cc_basename in
11456
          ec++*)
11457
            lt_prog_compiler_pic_CXX='-KPIC'
11458
            ;;
11459
          ghcx*)
11460
            # Green Hills C++ Compiler
11461
            lt_prog_compiler_pic_CXX='-pic'
11462
            ;;
11463
          *)
11464
            ;;
11465
        esac
11466
        ;;
11467
      freebsd* | dragonfly*)
11468
        # FreeBSD uses GNU C++
11469
        ;;
11470
      hpux9* | hpux10* | hpux11*)
11471
        case $cc_basename in
11472
          CC*)
11473
            lt_prog_compiler_wl_CXX='-Wl,'
11474
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11475
            if test "$host_cpu" != ia64; then
11476
              lt_prog_compiler_pic_CXX='+Z'
11477
            fi
11478
            ;;
11479
          aCC*)
11480
            lt_prog_compiler_wl_CXX='-Wl,'
11481
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11482
            case $host_cpu in
11483
            hppa*64*|ia64*)
11484
              # +Z the default
11485
              ;;
11486
            *)
11487
              lt_prog_compiler_pic_CXX='+Z'
11488
              ;;
11489
            esac
11490
            ;;
11491
          *)
11492
            ;;
11493
        esac
11494
        ;;
11495
      interix*)
11496
        # This is c89, which is MS Visual C++ (no shared libs)
11497
        # Anyone wants to do a port?
11498
        ;;
11499
      irix5* | irix6* | nonstopux*)
11500
        case $cc_basename in
11501
          CC*)
11502
            lt_prog_compiler_wl_CXX='-Wl,'
11503
            lt_prog_compiler_static_CXX='-non_shared'
11504
            # CC pic flag -KPIC is the default.
11505
            ;;
11506
          *)
11507
            ;;
11508
        esac
11509
        ;;
11510
      linux* | k*bsd*-gnu)
11511
        case $cc_basename in
11512
          KCC*)
11513
            # KAI C++ Compiler
11514
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11515
            lt_prog_compiler_pic_CXX='-fPIC'
11516
            ;;
11517
          icpc* | ecpc*)
11518
            # Intel C++
11519
            lt_prog_compiler_wl_CXX='-Wl,'
11520
            lt_prog_compiler_pic_CXX='-KPIC'
11521
            lt_prog_compiler_static_CXX='-static'
11522
            ;;
11523
          pgCC*)
11524
            # Portland Group C++ compiler.
11525
            lt_prog_compiler_wl_CXX='-Wl,'
11526
            lt_prog_compiler_pic_CXX='-fpic'
11527
            lt_prog_compiler_static_CXX='-Bstatic'
11528
            ;;
11529
          cxx*)
11530
            # Compaq C++
11531
            # Make sure the PIC flag is empty.  It appears that all Alpha
11532
            # Linux and Compaq Tru64 Unix objects are PIC.
11533
            lt_prog_compiler_pic_CXX=
11534
            lt_prog_compiler_static_CXX='-non_shared'
11535
            ;;
11536
          *)
11537
            case `$CC -V 2>&1 | sed 5q` in
11538
            *Sun\ C*)
11539
              # Sun C++ 5.9
11540
              lt_prog_compiler_pic_CXX='-KPIC'
11541
              lt_prog_compiler_static_CXX='-Bstatic'
11542
              lt_prog_compiler_wl_CXX='-Qoption ld '
11543
              ;;
11544
            esac
11545
            ;;
11546
        esac
11547
        ;;
11548
      lynxos*)
11549
        ;;
11550
      m88k*)
11551
        ;;
11552
      mvs*)
11553
        case $cc_basename in
11554
          cxx*)
11555
            lt_prog_compiler_pic_CXX='-W c,exportall'
11556
            ;;
11557
          *)
11558
            ;;
11559
        esac
11560
        ;;
11561
      netbsd*)
11562
        ;;
11563
      osf3* | osf4* | osf5*)
11564
        case $cc_basename in
11565
          KCC*)
11566
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11567
            ;;
11568
          RCC*)
11569
            # Rational C++ 2.4.1
11570
            lt_prog_compiler_pic_CXX='-pic'
11571
            ;;
11572
          cxx*)
11573
            # Digital/Compaq C++
11574
            lt_prog_compiler_wl_CXX='-Wl,'
11575
            # Make sure the PIC flag is empty.  It appears that all Alpha
11576
            # Linux and Compaq Tru64 Unix objects are PIC.
11577
            lt_prog_compiler_pic_CXX=
11578
            lt_prog_compiler_static_CXX='-non_shared'
11579
            ;;
11580
          *)
11581
            ;;
11582
        esac
11583
        ;;
11584
      psos*)
11585
        ;;
11586
      solaris*)
11587
        case $cc_basename in
11588
          CC*)
11589
            # Sun C++ 4.2, 5.x and Centerline C++
11590
            lt_prog_compiler_pic_CXX='-KPIC'
11591
            lt_prog_compiler_static_CXX='-Bstatic'
11592
            lt_prog_compiler_wl_CXX='-Qoption ld '
11593
            ;;
11594
          gcx*)
11595
            # Green Hills C++ Compiler
11596
            lt_prog_compiler_pic_CXX='-PIC'
11597
            ;;
11598
          *)
11599
            ;;
11600
        esac
11601
        ;;
11602
      sunos4*)
11603
        case $cc_basename in
11604
          CC*)
11605
            # Sun C++ 4.x
11606
            lt_prog_compiler_pic_CXX='-pic'
11607
            lt_prog_compiler_static_CXX='-Bstatic'
11608
            ;;
11609
          lcc*)
11610
            # Lucid
11611
            lt_prog_compiler_pic_CXX='-pic'
11612
            ;;
11613
          *)
11614
            ;;
11615
        esac
11616
        ;;
11617
      tandem*)
11618
        case $cc_basename in
11619
          NCC*)
11620
            # NonStop-UX NCC 3.20
11621
            lt_prog_compiler_pic_CXX='-KPIC'
11622
            ;;
11623
          *)
11624
            ;;
11625
        esac
11626
        ;;
11627
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11628
        case $cc_basename in
11629
          CC*)
11630
            lt_prog_compiler_wl_CXX='-Wl,'
11631
            lt_prog_compiler_pic_CXX='-KPIC'
11632
            lt_prog_compiler_static_CXX='-Bstatic'
11633
            ;;
11634
        esac
11635
        ;;
11636
      vxworks*)
11637
        ;;
11638
      *)
11639
        lt_prog_compiler_can_build_shared_CXX=no
11640
        ;;
11641
    esac
11642
  fi
11643
 
11644
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11645
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11646
 
11647
#
11648
# Check to make sure the PIC flag actually works.
11649
#
11650
if test -n "$lt_prog_compiler_pic_CXX"; then
11651
 
11652
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11653
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11654
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11655
  echo $ECHO_N "(cached) $ECHO_C" >&6
11656
else
11657
  lt_prog_compiler_pic_works_CXX=no
11658
  ac_outfile=conftest.$ac_objext
11659
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11660
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11661
   # Insert the option either (1) after the last *FLAGS variable, or
11662
   # (2) before a word containing "conftest.", or (3) at the end.
11663
   # Note that $ac_compile itself does not contain backslashes and begins
11664
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11665
   # The option is referenced via a variable to avoid confusing sed.
11666
   lt_compile=`echo "$ac_compile" | $SED \
11667
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11668
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11669
   -e 's:$: $lt_compiler_flag:'`
11670
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11671
   (eval "$lt_compile" 2>conftest.err)
11672
   ac_status=$?
11673
   cat conftest.err >&5
11674
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11675
   if (exit $ac_status) && test -s "$ac_outfile"; then
11676
     # The compiler can only warn and ignore the option if not recognized
11677
     # So say no if there are warnings other than the usual output.
11678
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11679
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11680
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11681
       lt_prog_compiler_pic_works_CXX=yes
11682
     fi
11683
   fi
11684
   $rm conftest*
11685
 
11686
fi
11687
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11688
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11689
 
11690
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11691
    case $lt_prog_compiler_pic_CXX in
11692
     "" | " "*) ;;
11693
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11694
     esac
11695
else
11696
    lt_prog_compiler_pic_CXX=
11697
     lt_prog_compiler_can_build_shared_CXX=no
11698
fi
11699
 
11700
fi
11701
case $host_os in
11702
  # For platforms which do not support PIC, -DPIC is meaningless:
11703
  *djgpp*)
11704
    lt_prog_compiler_pic_CXX=
11705
    ;;
11706
  *)
11707
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11708
    ;;
11709
esac
11710
 
11711
#
11712
# Check to make sure the static flag actually works.
11713
#
11714
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11715
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11716
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11717
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11718
  echo $ECHO_N "(cached) $ECHO_C" >&6
11719
else
11720
  lt_prog_compiler_static_works_CXX=no
11721
   save_LDFLAGS="$LDFLAGS"
11722
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11723
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11724
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11725
     # The linker can only warn and ignore the option if not recognized
11726
     # So say no if there are warnings
11727
     if test -s conftest.err; then
11728
       # Append any errors to the config.log.
11729
       cat conftest.err 1>&5
11730
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11731
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11732
       if diff conftest.exp conftest.er2 >/dev/null; then
11733
         lt_prog_compiler_static_works_CXX=yes
11734
       fi
11735
     else
11736
       lt_prog_compiler_static_works_CXX=yes
11737
     fi
11738
   fi
11739
   $rm conftest*
11740
   LDFLAGS="$save_LDFLAGS"
11741
 
11742
fi
11743
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11744
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11745
 
11746
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11747
    :
11748
else
11749
    lt_prog_compiler_static_CXX=
11750
fi
11751
 
11752
 
11753
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11754
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11755
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11756
  echo $ECHO_N "(cached) $ECHO_C" >&6
11757
else
11758
  lt_cv_prog_compiler_c_o_CXX=no
11759
   $rm -r conftest 2>/dev/null
11760
   mkdir conftest
11761
   cd conftest
11762
   mkdir out
11763
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11764
 
11765
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11766
   # Insert the option either (1) after the last *FLAGS variable, or
11767
   # (2) before a word containing "conftest.", or (3) at the end.
11768
   # Note that $ac_compile itself does not contain backslashes and begins
11769
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11770
   lt_compile=`echo "$ac_compile" | $SED \
11771
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11772
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11773
   -e 's:$: $lt_compiler_flag:'`
11774
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11775
   (eval "$lt_compile" 2>out/conftest.err)
11776
   ac_status=$?
11777
   cat out/conftest.err >&5
11778
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11779
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11780
   then
11781
     # The compiler can only warn and ignore the option if not recognized
11782
     # So say no if there are warnings
11783
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11784
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11785
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11786
       lt_cv_prog_compiler_c_o_CXX=yes
11787
     fi
11788
   fi
11789
   chmod u+w . 2>&5
11790
   $rm conftest*
11791
   # SGI C++ compiler will create directory out/ii_files/ for
11792
   # template instantiation
11793
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11794
   $rm out/* && rmdir out
11795
   cd ..
11796
   rmdir conftest
11797
   $rm conftest*
11798
 
11799
fi
11800
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11801
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11802
 
11803
 
11804
hard_links="nottested"
11805
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11806
  # do not overwrite the value of need_locks provided by the user
11807
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11808
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11809
  hard_links=yes
11810
  $rm conftest*
11811
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11812
  touch conftest.a
11813
  ln conftest.a conftest.b 2>&5 || hard_links=no
11814
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11815
  { echo "$as_me:$LINENO: result: $hard_links" >&5
11816
echo "${ECHO_T}$hard_links" >&6; }
11817
  if test "$hard_links" = no; then
11818
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11819
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11820
    need_locks=warn
11821
  fi
11822
else
11823
  need_locks=no
11824
fi
11825
 
11826
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11827
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11828
 
11829
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11830
  case $host_os in
11831
  aix4* | aix5*)
11832
    # If we're using GNU nm, then we don't want the "-C" option.
11833
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11834
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11835
      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'
11836
    else
11837
      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'
11838
    fi
11839
    ;;
11840
  pw32*)
11841
    export_symbols_cmds_CXX="$ltdll_cmds"
11842
  ;;
11843
  cygwin* | mingw*)
11844
    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'
11845
  ;;
11846
  *)
11847
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11848
  ;;
11849
  esac
11850
 
11851
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11852
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11853
test "$ld_shlibs_CXX" = no && can_build_shared=no
11854
 
11855
#
11856
# Do we need to explicitly link libc?
11857
#
11858
case "x$archive_cmds_need_lc_CXX" in
11859
x|xyes)
11860
  # Assume -lc should be added
11861
  archive_cmds_need_lc_CXX=yes
11862
 
11863
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11864
    case $archive_cmds_CXX in
11865
    *'~'*)
11866
      # FIXME: we may have to deal with multi-command sequences.
11867
      ;;
11868
    '$CC '*)
11869
      # Test whether the compiler implicitly links with -lc since on some
11870
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11871
      # to ld, don't add -lc before -lgcc.
11872
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11873
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11874
      $rm conftest*
11875
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11876
 
11877
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11878
  (eval $ac_compile) 2>&5
11879
  ac_status=$?
11880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881
  (exit $ac_status); } 2>conftest.err; then
11882
        soname=conftest
11883
        lib=conftest
11884
        libobjs=conftest.$ac_objext
11885
        deplibs=
11886
        wl=$lt_prog_compiler_wl_CXX
11887
        pic_flag=$lt_prog_compiler_pic_CXX
11888
        compiler_flags=-v
11889
        linker_flags=-v
11890
        verstring=
11891
        output_objdir=.
11892
        libname=conftest
11893
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11894
        allow_undefined_flag_CXX=
11895
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11896
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11897
  ac_status=$?
11898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899
  (exit $ac_status); }
11900
        then
11901
          archive_cmds_need_lc_CXX=no
11902
        else
11903
          archive_cmds_need_lc_CXX=yes
11904
        fi
11905
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11906
      else
11907
        cat conftest.err 1>&5
11908
      fi
11909
      $rm conftest*
11910
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11911
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11912
      ;;
11913
    esac
11914
  fi
11915
  ;;
11916
esac
11917
 
11918
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11919
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11920
library_names_spec=
11921
libname_spec='lib$name'
11922
soname_spec=
11923
shrext_cmds=".so"
11924
postinstall_cmds=
11925
postuninstall_cmds=
11926
finish_cmds=
11927
finish_eval=
11928
shlibpath_var=
11929
shlibpath_overrides_runpath=unknown
11930
version_type=none
11931
dynamic_linker="$host_os ld.so"
11932
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11933
 
11934
need_lib_prefix=unknown
11935
hardcode_into_libs=no
11936
 
11937
# when you set need_version to no, make sure it does not cause -set_version
11938
# flags to be left without arguments
11939
need_version=unknown
11940
 
11941
case $host_os in
11942
aix3*)
11943
  version_type=linux
11944
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11945
  shlibpath_var=LIBPATH
11946
 
11947
  # AIX 3 has no versioning support, so we append a major version to the name.
11948
  soname_spec='${libname}${release}${shared_ext}$major'
11949
  ;;
11950
 
11951
aix4* | aix5*)
11952
  version_type=linux
11953
  need_lib_prefix=no
11954
  need_version=no
11955
  hardcode_into_libs=yes
11956
  if test "$host_cpu" = ia64; then
11957
    # AIX 5 supports IA64
11958
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11959
    shlibpath_var=LD_LIBRARY_PATH
11960
  else
11961
    # With GCC up to 2.95.x, collect2 would create an import file
11962
    # for dependence libraries.  The import file would start with
11963
    # the line `#! .'.  This would cause the generated library to
11964
    # depend on `.', always an invalid library.  This was fixed in
11965
    # development snapshots of GCC prior to 3.0.
11966
    case $host_os in
11967
      aix4 | aix4.[01] | aix4.[01].*)
11968
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11969
           echo ' yes '
11970
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11971
        :
11972
      else
11973
        can_build_shared=no
11974
      fi
11975
      ;;
11976
    esac
11977
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11978
    # soname into executable. Probably we can add versioning support to
11979
    # collect2, so additional links can be useful in future.
11980
    if test "$aix_use_runtimelinking" = yes; then
11981
      # If using run time linking (on AIX 4.2 or later) use lib.so
11982
      # instead of lib.a to let people know that these are not
11983
      # typical AIX shared libraries.
11984
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985
    else
11986
      # We preserve .a as extension for shared libraries through AIX4.2
11987
      # and later when we are not doing run time linking.
11988
      library_names_spec='${libname}${release}.a $libname.a'
11989
      soname_spec='${libname}${release}${shared_ext}$major'
11990
    fi
11991
    shlibpath_var=LIBPATH
11992
  fi
11993
  ;;
11994
 
11995
amigaos*)
11996
  library_names_spec='$libname.ixlibrary $libname.a'
11997
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11998
  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'
11999
  ;;
12000
 
12001
beos*)
12002
  library_names_spec='${libname}${shared_ext}'
12003
  dynamic_linker="$host_os ld.so"
12004
  shlibpath_var=LIBRARY_PATH
12005
  ;;
12006
 
12007
bsdi[45]*)
12008
  version_type=linux
12009
  need_version=no
12010
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011
  soname_spec='${libname}${release}${shared_ext}$major'
12012
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12013
  shlibpath_var=LD_LIBRARY_PATH
12014
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12015
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12016
  # the default ld.so.conf also contains /usr/contrib/lib and
12017
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12018
  # libtool to hard-code these into programs
12019
  ;;
12020
 
12021
cygwin* | mingw* | pw32*)
12022
  version_type=windows
12023
  shrext_cmds=".dll"
12024
  need_version=no
12025
  need_lib_prefix=no
12026
 
12027
  case $GCC,$host_os in
12028
  yes,cygwin* | yes,mingw* | yes,pw32*)
12029
    library_names_spec='$libname.dll.a'
12030
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12031
    postinstall_cmds='base_file=`basename \${file}`~
12032
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12033
      dldir=$destdir/`dirname \$dlpath`~
12034
      test -d \$dldir || mkdir -p \$dldir~
12035
      $install_prog $dir/$dlname \$dldir/$dlname~
12036
      chmod a+x \$dldir/$dlname'
12037
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12038
      dlpath=$dir/\$dldll~
12039
       $rm \$dlpath'
12040
    shlibpath_overrides_runpath=yes
12041
 
12042
    case $host_os in
12043
    cygwin*)
12044
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12045
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12046
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12047
      ;;
12048
    mingw*)
12049
      # MinGW DLLs use traditional 'lib' prefix
12050
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12051
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12052
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12053
        # It is most probably a Windows format PATH printed by
12054
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12055
        # path with ; separators, and with drive letters. We can handle the
12056
        # drive letters (cygwin fileutils understands them), so leave them,
12057
        # especially as we might pass files found there to a mingw objdump,
12058
        # which wouldn't understand a cygwinified path. Ahh.
12059
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12060
      else
12061
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12062
      fi
12063
      ;;
12064
    pw32*)
12065
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12066
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12067
      ;;
12068
    esac
12069
    ;;
12070
 
12071
  *)
12072
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12073
    ;;
12074
  esac
12075
  dynamic_linker='Win32 ld.exe'
12076
  # FIXME: first we should search . and the directory the executable is in
12077
  shlibpath_var=PATH
12078
  ;;
12079
 
12080
darwin* | rhapsody*)
12081
  dynamic_linker="$host_os dyld"
12082
  version_type=darwin
12083
  need_lib_prefix=no
12084
  need_version=no
12085
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12086
  soname_spec='${libname}${release}${major}$shared_ext'
12087
  shlibpath_overrides_runpath=yes
12088
  shlibpath_var=DYLD_LIBRARY_PATH
12089
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12090
 
12091
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12092
  ;;
12093
 
12094
dgux*)
12095
  version_type=linux
12096
  need_lib_prefix=no
12097
  need_version=no
12098
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12099
  soname_spec='${libname}${release}${shared_ext}$major'
12100
  shlibpath_var=LD_LIBRARY_PATH
12101
  ;;
12102
 
12103
freebsd1*)
12104
  dynamic_linker=no
12105
  ;;
12106
 
12107
freebsd* | dragonfly*)
12108
  # DragonFly does not have aout.  When/if they implement a new
12109
  # versioning mechanism, adjust this.
12110
  if test -x /usr/bin/objformat; then
12111
    objformat=`/usr/bin/objformat`
12112
  else
12113
    case $host_os in
12114
    freebsd[123]*) objformat=aout ;;
12115
    *) objformat=elf ;;
12116
    esac
12117
  fi
12118
  version_type=freebsd-$objformat
12119
  case $version_type in
12120
    freebsd-elf*)
12121
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12122
      need_version=no
12123
      need_lib_prefix=no
12124
      ;;
12125
    freebsd-*)
12126
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12127
      need_version=yes
12128
      ;;
12129
  esac
12130
  shlibpath_var=LD_LIBRARY_PATH
12131
  case $host_os in
12132
  freebsd2*)
12133
    shlibpath_overrides_runpath=yes
12134
    ;;
12135
  freebsd3.[01]* | freebsdelf3.[01]*)
12136
    shlibpath_overrides_runpath=yes
12137
    hardcode_into_libs=yes
12138
    ;;
12139
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12140
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12141
    shlibpath_overrides_runpath=no
12142
    hardcode_into_libs=yes
12143
    ;;
12144
  *) # from 4.6 on, and DragonFly
12145
    shlibpath_overrides_runpath=yes
12146
    hardcode_into_libs=yes
12147
    ;;
12148
  esac
12149
  ;;
12150
 
12151
gnu*)
12152
  version_type=linux
12153
  need_lib_prefix=no
12154
  need_version=no
12155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12156
  soname_spec='${libname}${release}${shared_ext}$major'
12157
  shlibpath_var=LD_LIBRARY_PATH
12158
  hardcode_into_libs=yes
12159
  ;;
12160
 
12161
hpux9* | hpux10* | hpux11*)
12162
  # Give a soname corresponding to the major version so that dld.sl refuses to
12163
  # link against other versions.
12164
  version_type=sunos
12165
  need_lib_prefix=no
12166
  need_version=no
12167
  case $host_cpu in
12168
  ia64*)
12169
    shrext_cmds='.so'
12170
    hardcode_into_libs=yes
12171
    dynamic_linker="$host_os dld.so"
12172
    shlibpath_var=LD_LIBRARY_PATH
12173
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12174
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12175
    soname_spec='${libname}${release}${shared_ext}$major'
12176
    if test "X$HPUX_IA64_MODE" = X32; then
12177
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12178
    else
12179
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12180
    fi
12181
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12182
    ;;
12183
   hppa*64*)
12184
     shrext_cmds='.sl'
12185
     hardcode_into_libs=yes
12186
     dynamic_linker="$host_os dld.sl"
12187
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12188
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12189
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190
     soname_spec='${libname}${release}${shared_ext}$major'
12191
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12192
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12193
     ;;
12194
   *)
12195
    shrext_cmds='.sl'
12196
    dynamic_linker="$host_os dld.sl"
12197
    shlibpath_var=SHLIB_PATH
12198
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12199
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12200
    soname_spec='${libname}${release}${shared_ext}$major'
12201
    ;;
12202
  esac
12203
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12204
  postinstall_cmds='chmod 555 $lib'
12205
  ;;
12206
 
12207
interix[3-9]*)
12208
  version_type=linux
12209
  need_lib_prefix=no
12210
  need_version=no
12211
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12212
  soname_spec='${libname}${release}${shared_ext}$major'
12213
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12214
  shlibpath_var=LD_LIBRARY_PATH
12215
  shlibpath_overrides_runpath=no
12216
  hardcode_into_libs=yes
12217
  ;;
12218
 
12219
irix5* | irix6* | nonstopux*)
12220
  case $host_os in
12221
    nonstopux*) version_type=nonstopux ;;
12222
    *)
12223
        if test "$lt_cv_prog_gnu_ld" = yes; then
12224
                version_type=linux
12225
        else
12226
                version_type=irix
12227
        fi ;;
12228
  esac
12229
  need_lib_prefix=no
12230
  need_version=no
12231
  soname_spec='${libname}${release}${shared_ext}$major'
12232
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12233
  case $host_os in
12234
  irix5* | nonstopux*)
12235
    libsuff= shlibsuff=
12236
    ;;
12237
  *)
12238
    case $LD in # libtool.m4 will add one of these switches to LD
12239
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12240
      libsuff= shlibsuff= libmagic=32-bit;;
12241
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12242
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12243
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12244
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12245
    *) libsuff= shlibsuff= libmagic=never-match;;
12246
    esac
12247
    ;;
12248
  esac
12249
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12250
  shlibpath_overrides_runpath=no
12251
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12252
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12253
  hardcode_into_libs=yes
12254
  ;;
12255
 
12256
# No shared lib support for Linux oldld, aout, or coff.
12257
linux*oldld* | linux*aout* | linux*coff*)
12258
  dynamic_linker=no
12259
  ;;
12260
 
12261
# This must be Linux ELF.
12262
linux* | k*bsd*-gnu)
12263
  version_type=linux
12264
  need_lib_prefix=no
12265
  need_version=no
12266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267
  soname_spec='${libname}${release}${shared_ext}$major'
12268
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12269
  shlibpath_var=LD_LIBRARY_PATH
12270
  shlibpath_overrides_runpath=no
12271
  # This implies no fast_install, which is unacceptable.
12272
  # Some rework will be needed to allow for fast_install
12273
  # before this can be enabled.
12274
  hardcode_into_libs=yes
12275
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12276
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12277
 
12278
  # Append ld.so.conf contents to the search path
12279
  if test -f /etc/ld.so.conf; then
12280
    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' ' '`
12281
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12282
  fi
12283
 
12284
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12285
  # powerpc, because MkLinux only supported shared libraries with the
12286
  # GNU dynamic linker.  Since this was broken with cross compilers,
12287
  # most powerpc-linux boxes support dynamic linking these days and
12288
  # people can always --disable-shared, the test was removed, and we
12289
  # assume the GNU/Linux dynamic linker is in use.
12290
  dynamic_linker='GNU/Linux ld.so'
12291
  ;;
12292
 
12293
netbsd*)
12294
  version_type=sunos
12295
  need_lib_prefix=no
12296
  need_version=no
12297
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12298
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12299
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12300
    dynamic_linker='NetBSD (a.out) ld.so'
12301
  else
12302
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12303
    soname_spec='${libname}${release}${shared_ext}$major'
12304
    dynamic_linker='NetBSD ld.elf_so'
12305
  fi
12306
  shlibpath_var=LD_LIBRARY_PATH
12307
  shlibpath_overrides_runpath=yes
12308
  hardcode_into_libs=yes
12309
  ;;
12310
 
12311
newsos6)
12312
  version_type=linux
12313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314
  shlibpath_var=LD_LIBRARY_PATH
12315
  shlibpath_overrides_runpath=yes
12316
  ;;
12317
 
12318
nto-qnx*)
12319
  version_type=linux
12320
  need_lib_prefix=no
12321
  need_version=no
12322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323
  soname_spec='${libname}${release}${shared_ext}$major'
12324
  shlibpath_var=LD_LIBRARY_PATH
12325
  shlibpath_overrides_runpath=yes
12326
  ;;
12327
 
12328
openbsd*)
12329
  version_type=sunos
12330
  sys_lib_dlsearch_path_spec="/usr/lib"
12331
  need_lib_prefix=no
12332
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12333
  case $host_os in
12334
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12335
    *)                         need_version=no  ;;
12336
  esac
12337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12338
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12339
  shlibpath_var=LD_LIBRARY_PATH
12340
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12341
    case $host_os in
12342
      openbsd2.[89] | openbsd2.[89].*)
12343
        shlibpath_overrides_runpath=no
12344
        ;;
12345
      *)
12346
        shlibpath_overrides_runpath=yes
12347
        ;;
12348
      esac
12349
  else
12350
    shlibpath_overrides_runpath=yes
12351
  fi
12352
  ;;
12353
 
12354
os2*)
12355
  libname_spec='$name'
12356
  shrext_cmds=".dll"
12357
  need_lib_prefix=no
12358
  library_names_spec='$libname${shared_ext} $libname.a'
12359
  dynamic_linker='OS/2 ld.exe'
12360
  shlibpath_var=LIBPATH
12361
  ;;
12362
 
12363
osf3* | osf4* | osf5*)
12364
  version_type=osf
12365
  need_lib_prefix=no
12366
  need_version=no
12367
  soname_spec='${libname}${release}${shared_ext}$major'
12368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12369
  shlibpath_var=LD_LIBRARY_PATH
12370
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12371
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12372
  ;;
12373
 
12374
rdos*)
12375
  dynamic_linker=no
12376
  ;;
12377
 
12378
solaris*)
12379
  version_type=linux
12380
  need_lib_prefix=no
12381
  need_version=no
12382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12383
  soname_spec='${libname}${release}${shared_ext}$major'
12384
  shlibpath_var=LD_LIBRARY_PATH
12385
  shlibpath_overrides_runpath=yes
12386
  hardcode_into_libs=yes
12387
  # ldd complains unless libraries are executable
12388
  postinstall_cmds='chmod +x $lib'
12389
  ;;
12390
 
12391
sunos4*)
12392
  version_type=sunos
12393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12394
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12395
  shlibpath_var=LD_LIBRARY_PATH
12396
  shlibpath_overrides_runpath=yes
12397
  if test "$with_gnu_ld" = yes; then
12398
    need_lib_prefix=no
12399
  fi
12400
  need_version=yes
12401
  ;;
12402
 
12403
sysv4 | sysv4.3*)
12404
  version_type=linux
12405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406
  soname_spec='${libname}${release}${shared_ext}$major'
12407
  shlibpath_var=LD_LIBRARY_PATH
12408
  case $host_vendor in
12409
    sni)
12410
      shlibpath_overrides_runpath=no
12411
      need_lib_prefix=no
12412
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12413
      runpath_var=LD_RUN_PATH
12414
      ;;
12415
    siemens)
12416
      need_lib_prefix=no
12417
      ;;
12418
    motorola)
12419
      need_lib_prefix=no
12420
      need_version=no
12421
      shlibpath_overrides_runpath=no
12422
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12423
      ;;
12424
  esac
12425
  ;;
12426
 
12427
sysv4*MP*)
12428
  if test -d /usr/nec ;then
12429
    version_type=linux
12430
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12431
    soname_spec='$libname${shared_ext}.$major'
12432
    shlibpath_var=LD_LIBRARY_PATH
12433
  fi
12434
  ;;
12435
 
12436
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12437
  version_type=freebsd-elf
12438
  need_lib_prefix=no
12439
  need_version=no
12440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12441
  soname_spec='${libname}${release}${shared_ext}$major'
12442
  shlibpath_var=LD_LIBRARY_PATH
12443
  hardcode_into_libs=yes
12444
  if test "$with_gnu_ld" = yes; then
12445
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12446
    shlibpath_overrides_runpath=no
12447
  else
12448
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12449
    shlibpath_overrides_runpath=yes
12450
    case $host_os in
12451
      sco3.2v5*)
12452
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12453
        ;;
12454
    esac
12455
  fi
12456
  sys_lib_dlsearch_path_spec='/usr/lib'
12457
  ;;
12458
 
12459
uts4*)
12460
  version_type=linux
12461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462
  soname_spec='${libname}${release}${shared_ext}$major'
12463
  shlibpath_var=LD_LIBRARY_PATH
12464
  ;;
12465
 
12466
*)
12467
  dynamic_linker=no
12468
  ;;
12469
esac
12470
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12471
echo "${ECHO_T}$dynamic_linker" >&6; }
12472
test "$dynamic_linker" = no && can_build_shared=no
12473
 
12474
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12475
if test "$GCC" = yes; then
12476
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12477
fi
12478
 
12479
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12480
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12481
hardcode_action_CXX=
12482
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12483
   test -n "$runpath_var_CXX" || \
12484
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12485
 
12486
  # We can hardcode non-existant directories.
12487
  if test "$hardcode_direct_CXX" != no &&
12488
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12489
     # have to relink, otherwise we might link with an installed library
12490
     # when we should be linking with a yet-to-be-installed one
12491
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12492
     test "$hardcode_minus_L_CXX" != no; then
12493
    # Linking always hardcodes the temporary library directory.
12494
    hardcode_action_CXX=relink
12495
  else
12496
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12497
    hardcode_action_CXX=immediate
12498
  fi
12499
else
12500
  # We cannot hardcode anything, or else we can only hardcode existing
12501
  # directories.
12502
  hardcode_action_CXX=unsupported
12503
fi
12504
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12505
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12506
 
12507
if test "$hardcode_action_CXX" = relink; then
12508
  # Fast installation is not supported
12509
  enable_fast_install=no
12510
elif test "$shlibpath_overrides_runpath" = yes ||
12511
     test "$enable_shared" = no; then
12512
  # Fast installation is not necessary
12513
  enable_fast_install=needless
12514
fi
12515
 
12516
 
12517
# The else clause should only fire when bootstrapping the
12518
# libtool distribution, otherwise you forgot to ship ltmain.sh
12519
# with your package, and you will get complaints that there are
12520
# no rules to generate ltmain.sh.
12521
if test -f "$ltmain"; then
12522
  # See if we are running on zsh, and set the options which allow our commands through
12523
  # without removal of \ escapes.
12524
  if test -n "${ZSH_VERSION+set}" ; then
12525
    setopt NO_GLOB_SUBST
12526
  fi
12527
  # Now quote all the things that may contain metacharacters while being
12528
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12529
  # variables and quote the copies for generation of the libtool script.
12530
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12531
    SED SHELL STRIP \
12532
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12533
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12534
    deplibs_check_method reload_flag reload_cmds need_locks \
12535
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12536
    lt_cv_sys_global_symbol_to_c_name_address \
12537
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12538
    old_postinstall_cmds old_postuninstall_cmds \
12539
    compiler_CXX \
12540
    CC_CXX \
12541
    LD_CXX \
12542
    lt_prog_compiler_wl_CXX \
12543
    lt_prog_compiler_pic_CXX \
12544
    lt_prog_compiler_static_CXX \
12545
    lt_prog_compiler_no_builtin_flag_CXX \
12546
    export_dynamic_flag_spec_CXX \
12547
    thread_safe_flag_spec_CXX \
12548
    whole_archive_flag_spec_CXX \
12549
    enable_shared_with_static_runtimes_CXX \
12550
    old_archive_cmds_CXX \
12551
    old_archive_from_new_cmds_CXX \
12552
    predep_objects_CXX \
12553
    postdep_objects_CXX \
12554
    predeps_CXX \
12555
    postdeps_CXX \
12556
    compiler_lib_search_path_CXX \
12557
    archive_cmds_CXX \
12558
    archive_expsym_cmds_CXX \
12559
    postinstall_cmds_CXX \
12560
    postuninstall_cmds_CXX \
12561
    old_archive_from_expsyms_cmds_CXX \
12562
    allow_undefined_flag_CXX \
12563
    no_undefined_flag_CXX \
12564
    export_symbols_cmds_CXX \
12565
    hardcode_libdir_flag_spec_CXX \
12566
    hardcode_libdir_flag_spec_ld_CXX \
12567
    hardcode_libdir_separator_CXX \
12568
    hardcode_automatic_CXX \
12569
    module_cmds_CXX \
12570
    module_expsym_cmds_CXX \
12571
    lt_cv_prog_compiler_c_o_CXX \
12572
    fix_srcfile_path_CXX \
12573
    exclude_expsyms_CXX \
12574
    include_expsyms_CXX; do
12575
 
12576
    case $var in
12577
    old_archive_cmds_CXX | \
12578
    old_archive_from_new_cmds_CXX | \
12579
    archive_cmds_CXX | \
12580
    archive_expsym_cmds_CXX | \
12581
    module_cmds_CXX | \
12582
    module_expsym_cmds_CXX | \
12583
    old_archive_from_expsyms_cmds_CXX | \
12584
    export_symbols_cmds_CXX | \
12585
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12586
    postinstall_cmds | postuninstall_cmds | \
12587
    old_postinstall_cmds | old_postuninstall_cmds | \
12588
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12589
      # Double-quote double-evaled strings.
12590
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12591
      ;;
12592
    *)
12593
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12594
      ;;
12595
    esac
12596
  done
12597
 
12598
  case $lt_echo in
12599
  *'\$0 --fallback-echo"')
12600
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12601
    ;;
12602
  esac
12603
 
12604
cfgfile="$ofile"
12605
 
12606
  cat <<__EOF__ >> "$cfgfile"
12607
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12608
 
12609
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12610
 
12611
# Shell to use when invoking shell scripts.
12612
SHELL=$lt_SHELL
12613
 
12614
# Whether or not to build shared libraries.
12615
build_libtool_libs=$enable_shared
12616
 
12617
# Whether or not to build static libraries.
12618
build_old_libs=$enable_static
12619
 
12620
# Whether or not to add -lc for building shared libraries.
12621
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12622
 
12623
# Whether or not to disallow shared libs when runtime libs are static
12624
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12625
 
12626
# Whether or not to optimize for fast installation.
12627
fast_install=$enable_fast_install
12628
 
12629
# The host system.
12630
host_alias=$host_alias
12631
host=$host
12632
host_os=$host_os
12633
 
12634
# The build system.
12635
build_alias=$build_alias
12636
build=$build
12637
build_os=$build_os
12638
 
12639
# An echo program that does not interpret backslashes.
12640
echo=$lt_echo
12641
 
12642
# The archiver.
12643
AR=$lt_AR
12644
AR_FLAGS=$lt_AR_FLAGS
12645
 
12646
# A C compiler.
12647
LTCC=$lt_LTCC
12648
 
12649
# LTCC compiler flags.
12650
LTCFLAGS=$lt_LTCFLAGS
12651
 
12652
# A language-specific compiler.
12653
CC=$lt_compiler_CXX
12654
 
12655
# Is the compiler the GNU C compiler?
12656
with_gcc=$GCC_CXX
12657
 
12658
# An ERE matcher.
12659
EGREP=$lt_EGREP
12660
 
12661
# The linker used to build libraries.
12662
LD=$lt_LD_CXX
12663
 
12664
# Whether we need hard or soft links.
12665
LN_S=$lt_LN_S
12666
 
12667
# A BSD-compatible nm program.
12668
NM=$lt_NM
12669
 
12670
# A symbol stripping program
12671
STRIP=$lt_STRIP
12672
 
12673
# Used to examine libraries when file_magic_cmd begins "file"
12674
MAGIC_CMD=$MAGIC_CMD
12675
 
12676
# Used on cygwin: DLL creation program.
12677
DLLTOOL="$DLLTOOL"
12678
 
12679
# Used on cygwin: object dumper.
12680
OBJDUMP="$OBJDUMP"
12681
 
12682
# Used on cygwin: assembler.
12683
AS="$AS"
12684
 
12685
# The name of the directory that contains temporary libtool files.
12686
objdir=$objdir
12687
 
12688
# How to create reloadable object files.
12689
reload_flag=$lt_reload_flag
12690
reload_cmds=$lt_reload_cmds
12691
 
12692
# How to pass a linker flag through the compiler.
12693
wl=$lt_lt_prog_compiler_wl_CXX
12694
 
12695
# Object file suffix (normally "o").
12696
objext="$ac_objext"
12697
 
12698
# Old archive suffix (normally "a").
12699
libext="$libext"
12700
 
12701
# Shared library suffix (normally ".so").
12702
shrext_cmds='$shrext_cmds'
12703
 
12704
# Executable file suffix (normally "").
12705
exeext="$exeext"
12706
 
12707
# Additional compiler flags for building library objects.
12708
pic_flag=$lt_lt_prog_compiler_pic_CXX
12709
pic_mode=$pic_mode
12710
 
12711
# What is the maximum length of a command?
12712
max_cmd_len=$lt_cv_sys_max_cmd_len
12713
 
12714
# Does compiler simultaneously support -c and -o options?
12715
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12716
 
12717
# Must we lock files when doing compilation?
12718
need_locks=$lt_need_locks
12719
 
12720
# Do we need the lib prefix for modules?
12721
need_lib_prefix=$need_lib_prefix
12722
 
12723
# Do we need a version for libraries?
12724
need_version=$need_version
12725
 
12726
# Whether dlopen is supported.
12727
dlopen_support=$enable_dlopen
12728
 
12729
# Whether dlopen of programs is supported.
12730
dlopen_self=$enable_dlopen_self
12731
 
12732
# Whether dlopen of statically linked programs is supported.
12733
dlopen_self_static=$enable_dlopen_self_static
12734
 
12735
# Compiler flag to prevent dynamic linking.
12736
link_static_flag=$lt_lt_prog_compiler_static_CXX
12737
 
12738
# Compiler flag to turn off builtin functions.
12739
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12740
 
12741
# Compiler flag to allow reflexive dlopens.
12742
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12743
 
12744
# Compiler flag to generate shared objects directly from archives.
12745
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12746
 
12747
# Compiler flag to generate thread-safe objects.
12748
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12749
 
12750
# Library versioning type.
12751
version_type=$version_type
12752
 
12753
# Format of library name prefix.
12754
libname_spec=$lt_libname_spec
12755
 
12756
# List of archive names.  First name is the real one, the rest are links.
12757
# The last name is the one that the linker finds with -lNAME.
12758
library_names_spec=$lt_library_names_spec
12759
 
12760
# The coded name of the library, if different from the real name.
12761
soname_spec=$lt_soname_spec
12762
 
12763
# Commands used to build and install an old-style archive.
12764
RANLIB=$lt_RANLIB
12765
old_archive_cmds=$lt_old_archive_cmds_CXX
12766
old_postinstall_cmds=$lt_old_postinstall_cmds
12767
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12768
 
12769
# Create an old-style archive from a shared archive.
12770
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12771
 
12772
# Create a temporary old-style archive to link instead of a shared archive.
12773
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12774
 
12775
# Commands used to build and install a shared archive.
12776
archive_cmds=$lt_archive_cmds_CXX
12777
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12778
postinstall_cmds=$lt_postinstall_cmds
12779
postuninstall_cmds=$lt_postuninstall_cmds
12780
 
12781
# Commands used to build a loadable module (assumed same as above if empty)
12782
module_cmds=$lt_module_cmds_CXX
12783
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12784
 
12785
# Commands to strip libraries.
12786
old_striplib=$lt_old_striplib
12787
striplib=$lt_striplib
12788
 
12789
# Dependencies to place before the objects being linked to create a
12790
# shared library.
12791
predep_objects=$lt_predep_objects_CXX
12792
 
12793
# Dependencies to place after the objects being linked to create a
12794
# shared library.
12795
postdep_objects=$lt_postdep_objects_CXX
12796
 
12797
# Dependencies to place before the objects being linked to create a
12798
# shared library.
12799
predeps=$lt_predeps_CXX
12800
 
12801
# Dependencies to place after the objects being linked to create a
12802
# shared library.
12803
postdeps=$lt_postdeps_CXX
12804
 
12805
# The library search path used internally by the compiler when linking
12806
# a shared library.
12807
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12808
 
12809
# Method to check whether dependent libraries are shared objects.
12810
deplibs_check_method=$lt_deplibs_check_method
12811
 
12812
# Command to use when deplibs_check_method == file_magic.
12813
file_magic_cmd=$lt_file_magic_cmd
12814
 
12815
# Flag that allows shared libraries with undefined symbols to be built.
12816
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12817
 
12818
# Flag that forces no undefined symbols.
12819
no_undefined_flag=$lt_no_undefined_flag_CXX
12820
 
12821
# Commands used to finish a libtool library installation in a directory.
12822
finish_cmds=$lt_finish_cmds
12823
 
12824
# Same as above, but a single script fragment to be evaled but not shown.
12825
finish_eval=$lt_finish_eval
12826
 
12827
# Take the output of nm and produce a listing of raw symbols and C names.
12828
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12829
 
12830
# Transform the output of nm in a proper C declaration
12831
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12832
 
12833
# Transform the output of nm in a C name address pair
12834
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12835
 
12836
# This is the shared library runtime path variable.
12837
runpath_var=$runpath_var
12838
 
12839
# This is the shared library path variable.
12840
shlibpath_var=$shlibpath_var
12841
 
12842
# Is shlibpath searched before the hard-coded library search path?
12843
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12844
 
12845
# How to hardcode a shared library path into an executable.
12846
hardcode_action=$hardcode_action_CXX
12847
 
12848
# Whether we should hardcode library paths into libraries.
12849
hardcode_into_libs=$hardcode_into_libs
12850
 
12851
# Flag to hardcode \$libdir into a binary during linking.
12852
# This must work even if \$libdir does not exist.
12853
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12854
 
12855
# If ld is used when linking, flag to hardcode \$libdir into
12856
# a binary during linking. This must work even if \$libdir does
12857
# not exist.
12858
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12859
 
12860
# Whether we need a single -rpath flag with a separated argument.
12861
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12862
 
12863
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12864
# resulting binary.
12865
hardcode_direct=$hardcode_direct_CXX
12866
 
12867
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12868
# resulting binary.
12869
hardcode_minus_L=$hardcode_minus_L_CXX
12870
 
12871
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12872
# the resulting binary.
12873
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12874
 
12875
# Set to yes if building a shared library automatically hardcodes DIR into the library
12876
# and all subsequent libraries and executables linked against it.
12877
hardcode_automatic=$hardcode_automatic_CXX
12878
 
12879
# Variables whose values should be saved in libtool wrapper scripts and
12880
# restored at relink time.
12881
variables_saved_for_relink="$variables_saved_for_relink"
12882
 
12883
# Whether libtool must link a program against all its dependency libraries.
12884
link_all_deplibs=$link_all_deplibs_CXX
12885
 
12886
# Compile-time system search path for libraries
12887
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12888
 
12889
# Run-time system search path for libraries
12890
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12891
 
12892
# Fix the shell variable \$srcfile for the compiler.
12893
fix_srcfile_path=$lt_fix_srcfile_path
12894
 
12895
# Set to yes if exported symbols are required.
12896
always_export_symbols=$always_export_symbols_CXX
12897
 
12898
# The commands to list exported symbols.
12899
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12900
 
12901
# The commands to extract the exported symbol list from a shared archive.
12902
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12903
 
12904
# Symbols that should not be listed in the preloaded symbols.
12905
exclude_expsyms=$lt_exclude_expsyms_CXX
12906
 
12907
# Symbols that must always be exported.
12908
include_expsyms=$lt_include_expsyms_CXX
12909
 
12910
# ### END LIBTOOL TAG CONFIG: $tagname
12911
 
12912
__EOF__
12913
 
12914
 
12915
else
12916
  # If there is no Makefile yet, we rely on a make rule to execute
12917
  # `config.status --recheck' to rerun these tests and create the
12918
  # libtool script then.
12919
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12920
  if test -f "$ltmain_in"; then
12921
    test -f Makefile && make "$ltmain"
12922
  fi
12923
fi
12924
 
12925
 
12926
ac_ext=c
12927
ac_cpp='$CPP $CPPFLAGS'
12928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931
 
12932
CC=$lt_save_CC
12933
LDCXX=$LD
12934
LD=$lt_save_LD
12935
GCC=$lt_save_GCC
12936
with_gnu_ldcxx=$with_gnu_ld
12937
with_gnu_ld=$lt_save_with_gnu_ld
12938
lt_cv_path_LDCXX=$lt_cv_path_LD
12939
lt_cv_path_LD=$lt_save_path_LD
12940
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12941
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12942
 
12943
        else
12944
          tagname=""
12945
        fi
12946
        ;;
12947
 
12948
      F77)
12949
        if test -n "$F77" && test "X$F77" != "Xno"; then
12950
 
12951
ac_ext=f
12952
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12953
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12955
 
12956
 
12957
archive_cmds_need_lc_F77=no
12958
allow_undefined_flag_F77=
12959
always_export_symbols_F77=no
12960
archive_expsym_cmds_F77=
12961
export_dynamic_flag_spec_F77=
12962
hardcode_direct_F77=no
12963
hardcode_libdir_flag_spec_F77=
12964
hardcode_libdir_flag_spec_ld_F77=
12965
hardcode_libdir_separator_F77=
12966
hardcode_minus_L_F77=no
12967
hardcode_automatic_F77=no
12968
module_cmds_F77=
12969
module_expsym_cmds_F77=
12970
link_all_deplibs_F77=unknown
12971
old_archive_cmds_F77=$old_archive_cmds
12972
no_undefined_flag_F77=
12973
whole_archive_flag_spec_F77=
12974
enable_shared_with_static_runtimes_F77=no
12975
 
12976
# Source file extension for f77 test sources.
12977
ac_ext=f
12978
 
12979
# Object file extension for compiled f77 test sources.
12980
objext=o
12981
objext_F77=$objext
12982
 
12983
# Code to be used in simple compile tests
12984
lt_simple_compile_test_code="\
12985
      subroutine t
12986
      return
12987
      end
12988
"
12989
 
12990
# Code to be used in simple link tests
12991
lt_simple_link_test_code="\
12992
      program t
12993
      end
12994
"
12995
 
12996
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12997
 
12998
# If no C compiler was specified, use CC.
12999
LTCC=${LTCC-"$CC"}
13000
 
13001
# If no C compiler flags were specified, use CFLAGS.
13002
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13003
 
13004
# Allow CC to be a program name with arguments.
13005
compiler=$CC
13006
 
13007
 
13008
# save warnings/boilerplate of simple test code
13009
ac_outfile=conftest.$ac_objext
13010
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13011
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13012
_lt_compiler_boilerplate=`cat conftest.err`
13013
$rm conftest*
13014
 
13015
ac_outfile=conftest.$ac_objext
13016
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13017
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13018
_lt_linker_boilerplate=`cat conftest.err`
13019
$rm conftest*
13020
 
13021
 
13022
# Allow CC to be a program name with arguments.
13023
lt_save_CC="$CC"
13024
CC=${F77-"f77"}
13025
compiler=$CC
13026
compiler_F77=$CC
13027
for cc_temp in $compiler""; do
13028
  case $cc_temp in
13029
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13030
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13031
    \-*) ;;
13032
    *) break;;
13033
  esac
13034
done
13035
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13036
 
13037
 
13038
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13039
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13040
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13041
echo "${ECHO_T}$can_build_shared" >&6; }
13042
 
13043
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13044
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13045
test "$can_build_shared" = "no" && enable_shared=no
13046
 
13047
# On AIX, shared libraries and static libraries use the same namespace, and
13048
# are all built from PIC.
13049
case $host_os in
13050
aix3*)
13051
  test "$enable_shared" = yes && enable_static=no
13052
  if test -n "$RANLIB"; then
13053
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13054
    postinstall_cmds='$RANLIB $lib'
13055
  fi
13056
  ;;
13057
aix4* | aix5*)
13058
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13059
    test "$enable_shared" = yes && enable_static=no
13060
  fi
13061
  ;;
13062
esac
13063
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13064
echo "${ECHO_T}$enable_shared" >&6; }
13065
 
13066
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13067
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13068
# Make sure either enable_shared or enable_static is yes.
13069
test "$enable_shared" = yes || enable_static=yes
13070
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13071
echo "${ECHO_T}$enable_static" >&6; }
13072
 
13073
GCC_F77="$G77"
13074
LD_F77="$LD"
13075
 
13076
lt_prog_compiler_wl_F77=
13077
lt_prog_compiler_pic_F77=
13078
lt_prog_compiler_static_F77=
13079
 
13080
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13081
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13082
 
13083
  if test "$GCC" = yes; then
13084
    lt_prog_compiler_wl_F77='-Wl,'
13085
    lt_prog_compiler_static_F77='-static'
13086
 
13087
    case $host_os in
13088
      aix*)
13089
      # All AIX code is PIC.
13090
      if test "$host_cpu" = ia64; then
13091
        # AIX 5 now supports IA64 processor
13092
        lt_prog_compiler_static_F77='-Bstatic'
13093
      fi
13094
      ;;
13095
 
13096
    amigaos*)
13097
      # FIXME: we need at least 68020 code to build shared libraries, but
13098
      # adding the `-m68020' flag to GCC prevents building anything better,
13099
      # like `-m68040'.
13100
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13101
      ;;
13102
 
13103
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13104
      # PIC is the default for these OSes.
13105
      ;;
13106
 
13107
    mingw* | cygwin* | pw32* | os2*)
13108
      # This hack is so that the source file can tell whether it is being
13109
      # built for inclusion in a dll (and should export symbols for example).
13110
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13111
      # (--disable-auto-import) libraries
13112
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13113
      ;;
13114
 
13115
    darwin* | rhapsody*)
13116
      # PIC is the default on this platform
13117
      # Common symbols not allowed in MH_DYLIB files
13118
      lt_prog_compiler_pic_F77='-fno-common'
13119
      ;;
13120
 
13121
    interix[3-9]*)
13122
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13123
      # Instead, we relocate shared libraries at runtime.
13124
      ;;
13125
 
13126
    msdosdjgpp*)
13127
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13128
      # on systems that don't support them.
13129
      lt_prog_compiler_can_build_shared_F77=no
13130
      enable_shared=no
13131
      ;;
13132
 
13133
    sysv4*MP*)
13134
      if test -d /usr/nec; then
13135
        lt_prog_compiler_pic_F77=-Kconform_pic
13136
      fi
13137
      ;;
13138
 
13139
    hpux*)
13140
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13141
      # not for PA HP-UX.
13142
      case $host_cpu in
13143
      hppa*64*|ia64*)
13144
        # +Z the default
13145
        ;;
13146
      *)
13147
        lt_prog_compiler_pic_F77='-fPIC'
13148
        ;;
13149
      esac
13150
      ;;
13151
 
13152
    *)
13153
      lt_prog_compiler_pic_F77='-fPIC'
13154
      ;;
13155
    esac
13156
  else
13157
    # PORTME Check for flag to pass linker flags through the system compiler.
13158
    case $host_os in
13159
    aix*)
13160
      lt_prog_compiler_wl_F77='-Wl,'
13161
      if test "$host_cpu" = ia64; then
13162
        # AIX 5 now supports IA64 processor
13163
        lt_prog_compiler_static_F77='-Bstatic'
13164
      else
13165
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13166
      fi
13167
      ;;
13168
      darwin*)
13169
        # PIC is the default on this platform
13170
        # Common symbols not allowed in MH_DYLIB files
13171
       case $cc_basename in
13172
         xlc*)
13173
         lt_prog_compiler_pic_F77='-qnocommon'
13174
         lt_prog_compiler_wl_F77='-Wl,'
13175
         ;;
13176
       esac
13177
       ;;
13178
 
13179
    mingw* | cygwin* | pw32* | os2*)
13180
      # This hack is so that the source file can tell whether it is being
13181
      # built for inclusion in a dll (and should export symbols for example).
13182
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13183
      ;;
13184
 
13185
    hpux9* | hpux10* | hpux11*)
13186
      lt_prog_compiler_wl_F77='-Wl,'
13187
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13188
      # not for PA HP-UX.
13189
      case $host_cpu in
13190
      hppa*64*|ia64*)
13191
        # +Z the default
13192
        ;;
13193
      *)
13194
        lt_prog_compiler_pic_F77='+Z'
13195
        ;;
13196
      esac
13197
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13198
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13199
      ;;
13200
 
13201
    irix5* | irix6* | nonstopux*)
13202
      lt_prog_compiler_wl_F77='-Wl,'
13203
      # PIC (with -KPIC) is the default.
13204
      lt_prog_compiler_static_F77='-non_shared'
13205
      ;;
13206
 
13207
    newsos6)
13208
      lt_prog_compiler_pic_F77='-KPIC'
13209
      lt_prog_compiler_static_F77='-Bstatic'
13210
      ;;
13211
 
13212
    linux* | k*bsd*-gnu)
13213
      case $cc_basename in
13214
      icc* | ecc*)
13215
        lt_prog_compiler_wl_F77='-Wl,'
13216
        lt_prog_compiler_pic_F77='-KPIC'
13217
        lt_prog_compiler_static_F77='-static'
13218
        ;;
13219
      pgcc* | pgf77* | pgf90* | pgf95*)
13220
        # Portland Group compilers (*not* the Pentium gcc compiler,
13221
        # which looks to be a dead project)
13222
        lt_prog_compiler_wl_F77='-Wl,'
13223
        lt_prog_compiler_pic_F77='-fpic'
13224
        lt_prog_compiler_static_F77='-Bstatic'
13225
        ;;
13226
      ccc*)
13227
        lt_prog_compiler_wl_F77='-Wl,'
13228
        # All Alpha code is PIC.
13229
        lt_prog_compiler_static_F77='-non_shared'
13230
        ;;
13231
      *)
13232
        case `$CC -V 2>&1 | sed 5q` in
13233
        *Sun\ C*)
13234
          # Sun C 5.9
13235
          lt_prog_compiler_pic_F77='-KPIC'
13236
          lt_prog_compiler_static_F77='-Bstatic'
13237
          lt_prog_compiler_wl_F77='-Wl,'
13238
          ;;
13239
        *Sun\ F*)
13240
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
13241
          lt_prog_compiler_pic_F77='-KPIC'
13242
          lt_prog_compiler_static_F77='-Bstatic'
13243
          lt_prog_compiler_wl_F77=''
13244
          ;;
13245
        esac
13246
        ;;
13247
      esac
13248
      ;;
13249
 
13250
    osf3* | osf4* | osf5*)
13251
      lt_prog_compiler_wl_F77='-Wl,'
13252
      # All OSF/1 code is PIC.
13253
      lt_prog_compiler_static_F77='-non_shared'
13254
      ;;
13255
 
13256
    rdos*)
13257
      lt_prog_compiler_static_F77='-non_shared'
13258
      ;;
13259
 
13260
    solaris*)
13261
      lt_prog_compiler_pic_F77='-KPIC'
13262
      lt_prog_compiler_static_F77='-Bstatic'
13263
      case $cc_basename in
13264
      f77* | f90* | f95*)
13265
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13266
      *)
13267
        lt_prog_compiler_wl_F77='-Wl,';;
13268
      esac
13269
      ;;
13270
 
13271
    sunos4*)
13272
      lt_prog_compiler_wl_F77='-Qoption ld '
13273
      lt_prog_compiler_pic_F77='-PIC'
13274
      lt_prog_compiler_static_F77='-Bstatic'
13275
      ;;
13276
 
13277
    sysv4 | sysv4.2uw2* | sysv4.3*)
13278
      lt_prog_compiler_wl_F77='-Wl,'
13279
      lt_prog_compiler_pic_F77='-KPIC'
13280
      lt_prog_compiler_static_F77='-Bstatic'
13281
      ;;
13282
 
13283
    sysv4*MP*)
13284
      if test -d /usr/nec ;then
13285
        lt_prog_compiler_pic_F77='-Kconform_pic'
13286
        lt_prog_compiler_static_F77='-Bstatic'
13287
      fi
13288
      ;;
13289
 
13290
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13291
      lt_prog_compiler_wl_F77='-Wl,'
13292
      lt_prog_compiler_pic_F77='-KPIC'
13293
      lt_prog_compiler_static_F77='-Bstatic'
13294
      ;;
13295
 
13296
    unicos*)
13297
      lt_prog_compiler_wl_F77='-Wl,'
13298
      lt_prog_compiler_can_build_shared_F77=no
13299
      ;;
13300
 
13301
    uts4*)
13302
      lt_prog_compiler_pic_F77='-pic'
13303
      lt_prog_compiler_static_F77='-Bstatic'
13304
      ;;
13305
 
13306
    *)
13307
      lt_prog_compiler_can_build_shared_F77=no
13308
      ;;
13309
    esac
13310
  fi
13311
 
13312
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13313
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13314
 
13315
#
13316
# Check to make sure the PIC flag actually works.
13317
#
13318
if test -n "$lt_prog_compiler_pic_F77"; then
13319
 
13320
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13321
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13322
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13323
  echo $ECHO_N "(cached) $ECHO_C" >&6
13324
else
13325
  lt_prog_compiler_pic_works_F77=no
13326
  ac_outfile=conftest.$ac_objext
13327
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13328
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13329
   # Insert the option either (1) after the last *FLAGS variable, or
13330
   # (2) before a word containing "conftest.", or (3) at the end.
13331
   # Note that $ac_compile itself does not contain backslashes and begins
13332
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13333
   # The option is referenced via a variable to avoid confusing sed.
13334
   lt_compile=`echo "$ac_compile" | $SED \
13335
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13336
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13337
   -e 's:$: $lt_compiler_flag:'`
13338
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13339
   (eval "$lt_compile" 2>conftest.err)
13340
   ac_status=$?
13341
   cat conftest.err >&5
13342
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13343
   if (exit $ac_status) && test -s "$ac_outfile"; then
13344
     # The compiler can only warn and ignore the option if not recognized
13345
     # So say no if there are warnings other than the usual output.
13346
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13347
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13348
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13349
       lt_prog_compiler_pic_works_F77=yes
13350
     fi
13351
   fi
13352
   $rm conftest*
13353
 
13354
fi
13355
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13356
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13357
 
13358
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13359
    case $lt_prog_compiler_pic_F77 in
13360
     "" | " "*) ;;
13361
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13362
     esac
13363
else
13364
    lt_prog_compiler_pic_F77=
13365
     lt_prog_compiler_can_build_shared_F77=no
13366
fi
13367
 
13368
fi
13369
case $host_os in
13370
  # For platforms which do not support PIC, -DPIC is meaningless:
13371
  *djgpp*)
13372
    lt_prog_compiler_pic_F77=
13373
    ;;
13374
  *)
13375
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13376
    ;;
13377
esac
13378
 
13379
#
13380
# Check to make sure the static flag actually works.
13381
#
13382
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13383
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13384
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13385
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13386
  echo $ECHO_N "(cached) $ECHO_C" >&6
13387
else
13388
  lt_prog_compiler_static_works_F77=no
13389
   save_LDFLAGS="$LDFLAGS"
13390
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13391
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13392
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13393
     # The linker can only warn and ignore the option if not recognized
13394
     # So say no if there are warnings
13395
     if test -s conftest.err; then
13396
       # Append any errors to the config.log.
13397
       cat conftest.err 1>&5
13398
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13399
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13400
       if diff conftest.exp conftest.er2 >/dev/null; then
13401
         lt_prog_compiler_static_works_F77=yes
13402
       fi
13403
     else
13404
       lt_prog_compiler_static_works_F77=yes
13405
     fi
13406
   fi
13407
   $rm conftest*
13408
   LDFLAGS="$save_LDFLAGS"
13409
 
13410
fi
13411
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13412
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13413
 
13414
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13415
    :
13416
else
13417
    lt_prog_compiler_static_F77=
13418
fi
13419
 
13420
 
13421
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13422
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13423
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13424
  echo $ECHO_N "(cached) $ECHO_C" >&6
13425
else
13426
  lt_cv_prog_compiler_c_o_F77=no
13427
   $rm -r conftest 2>/dev/null
13428
   mkdir conftest
13429
   cd conftest
13430
   mkdir out
13431
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13432
 
13433
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13434
   # Insert the option either (1) after the last *FLAGS variable, or
13435
   # (2) before a word containing "conftest.", or (3) at the end.
13436
   # Note that $ac_compile itself does not contain backslashes and begins
13437
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13438
   lt_compile=`echo "$ac_compile" | $SED \
13439
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13440
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13441
   -e 's:$: $lt_compiler_flag:'`
13442
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13443
   (eval "$lt_compile" 2>out/conftest.err)
13444
   ac_status=$?
13445
   cat out/conftest.err >&5
13446
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13447
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13448
   then
13449
     # The compiler can only warn and ignore the option if not recognized
13450
     # So say no if there are warnings
13451
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13452
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13453
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13454
       lt_cv_prog_compiler_c_o_F77=yes
13455
     fi
13456
   fi
13457
   chmod u+w . 2>&5
13458
   $rm conftest*
13459
   # SGI C++ compiler will create directory out/ii_files/ for
13460
   # template instantiation
13461
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13462
   $rm out/* && rmdir out
13463
   cd ..
13464
   rmdir conftest
13465
   $rm conftest*
13466
 
13467
fi
13468
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13469
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13470
 
13471
 
13472
hard_links="nottested"
13473
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13474
  # do not overwrite the value of need_locks provided by the user
13475
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13476
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13477
  hard_links=yes
13478
  $rm conftest*
13479
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13480
  touch conftest.a
13481
  ln conftest.a conftest.b 2>&5 || hard_links=no
13482
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13483
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13484
echo "${ECHO_T}$hard_links" >&6; }
13485
  if test "$hard_links" = no; then
13486
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13487
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13488
    need_locks=warn
13489
  fi
13490
else
13491
  need_locks=no
13492
fi
13493
 
13494
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13495
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13496
 
13497
  runpath_var=
13498
  allow_undefined_flag_F77=
13499
  enable_shared_with_static_runtimes_F77=no
13500
  archive_cmds_F77=
13501
  archive_expsym_cmds_F77=
13502
  old_archive_From_new_cmds_F77=
13503
  old_archive_from_expsyms_cmds_F77=
13504
  export_dynamic_flag_spec_F77=
13505
  whole_archive_flag_spec_F77=
13506
  thread_safe_flag_spec_F77=
13507
  hardcode_libdir_flag_spec_F77=
13508
  hardcode_libdir_flag_spec_ld_F77=
13509
  hardcode_libdir_separator_F77=
13510
  hardcode_direct_F77=no
13511
  hardcode_minus_L_F77=no
13512
  hardcode_shlibpath_var_F77=unsupported
13513
  link_all_deplibs_F77=unknown
13514
  hardcode_automatic_F77=no
13515
  module_cmds_F77=
13516
  module_expsym_cmds_F77=
13517
  always_export_symbols_F77=no
13518
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13519
  # include_expsyms should be a list of space-separated symbols to be *always*
13520
  # included in the symbol list
13521
  include_expsyms_F77=
13522
  # exclude_expsyms can be an extended regexp of symbols to exclude
13523
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13524
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13525
  # as well as any symbol that contains `d'.
13526
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13527
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13528
  # platforms (ab)use it in PIC code, but their linkers get confused if
13529
  # the symbol is explicitly referenced.  Since portable code cannot
13530
  # rely on this symbol name, it's probably fine to never include it in
13531
  # preloaded symbol tables.
13532
  extract_expsyms_cmds=
13533
  # Just being paranoid about ensuring that cc_basename is set.
13534
  for cc_temp in $compiler""; do
13535
  case $cc_temp in
13536
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13537
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13538
    \-*) ;;
13539
    *) break;;
13540
  esac
13541
done
13542
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13543
 
13544
  case $host_os in
13545
  cygwin* | mingw* | pw32*)
13546
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13547
    # When not using gcc, we currently assume that we are using
13548
    # Microsoft Visual C++.
13549
    if test "$GCC" != yes; then
13550
      with_gnu_ld=no
13551
    fi
13552
    ;;
13553
  interix*)
13554
    # we just hope/assume this is gcc and not c89 (= MSVC++)
13555
    with_gnu_ld=yes
13556
    ;;
13557
  openbsd*)
13558
    with_gnu_ld=no
13559
    ;;
13560
  esac
13561
 
13562
  ld_shlibs_F77=yes
13563
  if test "$with_gnu_ld" = yes; then
13564
    # If archive_cmds runs LD, not CC, wlarc should be empty
13565
    wlarc='${wl}'
13566
 
13567
    # Set some defaults for GNU ld with shared library support. These
13568
    # are reset later if shared libraries are not supported. Putting them
13569
    # here allows them to be overridden if necessary.
13570
    runpath_var=LD_RUN_PATH
13571
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13572
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13573
    # ancient GNU ld didn't support --whole-archive et. al.
13574
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13575
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13576
      else
13577
        whole_archive_flag_spec_F77=
13578
    fi
13579
    supports_anon_versioning=no
13580
    case `$LD -v 2>/dev/null` in
13581
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13582
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13583
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13584
      *\ 2.11.*) ;; # other 2.11 versions
13585
      *) supports_anon_versioning=yes ;;
13586
    esac
13587
 
13588
    # See if GNU ld supports shared libraries.
13589
    case $host_os in
13590
    aix3* | aix4* | aix5*)
13591
      # On AIX/PPC, the GNU linker is very broken
13592
      if test "$host_cpu" != ia64; then
13593
        ld_shlibs_F77=no
13594
        cat <&2
13595
 
13596
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13597
*** to be unable to reliably create shared libraries on AIX.
13598
*** Therefore, libtool is disabling shared libraries support.  If you
13599
*** really care for shared libraries, you may want to modify your PATH
13600
*** so that a non-GNU linker is found, and then restart.
13601
 
13602
EOF
13603
      fi
13604
      ;;
13605
 
13606
    amigaos*)
13607
      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)'
13608
      hardcode_libdir_flag_spec_F77='-L$libdir'
13609
      hardcode_minus_L_F77=yes
13610
 
13611
      # Samuel A. Falvo II  reports
13612
      # that the semantics of dynamic libraries on AmigaOS, at least up
13613
      # to version 4, is to share data among multiple programs linked
13614
      # with the same dynamic library.  Since this doesn't match the
13615
      # behavior of shared libraries on other platforms, we can't use
13616
      # them.
13617
      ld_shlibs_F77=no
13618
      ;;
13619
 
13620
    beos*)
13621
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13622
        allow_undefined_flag_F77=unsupported
13623
        # Joseph Beckenbach  says some releases of gcc
13624
        # support --undefined.  This deserves some investigation.  FIXME
13625
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626
      else
13627
        ld_shlibs_F77=no
13628
      fi
13629
      ;;
13630
 
13631
    cygwin* | mingw* | pw32*)
13632
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13633
      # as there is no search path for DLLs.
13634
      hardcode_libdir_flag_spec_F77='-L$libdir'
13635
      allow_undefined_flag_F77=unsupported
13636
      always_export_symbols_F77=no
13637
      enable_shared_with_static_runtimes_F77=yes
13638
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13639
 
13640
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13641
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13642
        # If the export-symbols file already is a .def file (1st line
13643
        # is EXPORTS), use it as is; otherwise, prepend...
13644
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13645
          cp $export_symbols $output_objdir/$soname.def;
13646
        else
13647
          echo EXPORTS > $output_objdir/$soname.def;
13648
          cat $export_symbols >> $output_objdir/$soname.def;
13649
        fi~
13650
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13651
      else
13652
        ld_shlibs_F77=no
13653
      fi
13654
      ;;
13655
 
13656
    interix[3-9]*)
13657
      hardcode_direct_F77=no
13658
      hardcode_shlibpath_var_F77=no
13659
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13660
      export_dynamic_flag_spec_F77='${wl}-E'
13661
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13662
      # Instead, shared libraries are loaded at an image base (0x10000000 by
13663
      # default) and relocated if they conflict, which is a slow very memory
13664
      # consuming and fragmenting process.  To avoid this, we pick a random,
13665
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13666
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13667
      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'
13668
      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'
13669
      ;;
13670
 
13671
    gnu* | linux* | k*bsd*-gnu)
13672
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673
        tmp_addflag=
13674
        case $cc_basename,$host_cpu in
13675
        pgcc*)                          # Portland Group C compiler
13676
          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'
13677
          tmp_addflag=' $pic_flag'
13678
          ;;
13679
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13680
          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'
13681
          tmp_addflag=' $pic_flag -Mnomain' ;;
13682
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13683
          tmp_addflag=' -i_dynamic' ;;
13684
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13685
          tmp_addflag=' -i_dynamic -nofor_main' ;;
13686
        ifc* | ifort*)                  # Intel Fortran compiler
13687
          tmp_addflag=' -nofor_main' ;;
13688
        esac
13689
        case `$CC -V 2>&1 | sed 5q` in
13690
        *Sun\ C*)                       # Sun C 5.9
13691
          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'
13692
          tmp_sharedflag='-G' ;;
13693
        *Sun\ F*)                       # Sun Fortran 8.3
13694
          tmp_sharedflag='-G' ;;
13695
        *)
13696
          tmp_sharedflag='-shared' ;;
13697
        esac
13698
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13699
 
13700
        if test $supports_anon_versioning = yes; then
13701
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13702
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13703
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13704
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13705
        fi
13706
      else
13707
        ld_shlibs_F77=no
13708
      fi
13709
      ;;
13710
 
13711
    netbsd*)
13712
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13713
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13714
        wlarc=
13715
      else
13716
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13717
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13718
      fi
13719
      ;;
13720
 
13721
    solaris*)
13722
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13723
        ld_shlibs_F77=no
13724
        cat <&2
13725
 
13726
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13727
*** create shared libraries on Solaris systems.  Therefore, libtool
13728
*** is disabling shared libraries support.  We urge you to upgrade GNU
13729
*** binutils to release 2.9.1 or newer.  Another option is to modify
13730
*** your PATH or compiler configuration so that the native linker is
13731
*** used, and then restart.
13732
 
13733
EOF
13734
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13735
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13736
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13737
      else
13738
        ld_shlibs_F77=no
13739
      fi
13740
      ;;
13741
 
13742
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13743
      case `$LD -v 2>&1` in
13744
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13745
        ld_shlibs_F77=no
13746
        cat <<_LT_EOF 1>&2
13747
 
13748
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13749
*** reliably create shared libraries on SCO systems.  Therefore, libtool
13750
*** is disabling shared libraries support.  We urge you to upgrade GNU
13751
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13752
*** your PATH or compiler configuration so that the native linker is
13753
*** used, and then restart.
13754
 
13755
_LT_EOF
13756
        ;;
13757
        *)
13758
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13759
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13760
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13761
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13762
          else
13763
            ld_shlibs_F77=no
13764
          fi
13765
        ;;
13766
      esac
13767
      ;;
13768
 
13769
    sunos4*)
13770
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13771
      wlarc=
13772
      hardcode_direct_F77=yes
13773
      hardcode_shlibpath_var_F77=no
13774
      ;;
13775
 
13776
    *)
13777
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13778
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13779
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13780
      else
13781
        ld_shlibs_F77=no
13782
      fi
13783
      ;;
13784
    esac
13785
 
13786
    if test "$ld_shlibs_F77" = no; then
13787
      runpath_var=
13788
      hardcode_libdir_flag_spec_F77=
13789
      export_dynamic_flag_spec_F77=
13790
      whole_archive_flag_spec_F77=
13791
    fi
13792
  else
13793
    # PORTME fill in a description of your system's linker (not GNU ld)
13794
    case $host_os in
13795
    aix3*)
13796
      allow_undefined_flag_F77=unsupported
13797
      always_export_symbols_F77=yes
13798
      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'
13799
      # Note: this linker hardcodes the directories in LIBPATH if there
13800
      # are no directories specified by -L.
13801
      hardcode_minus_L_F77=yes
13802
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13803
        # Neither direct hardcoding nor static linking is supported with a
13804
        # broken collect2.
13805
        hardcode_direct_F77=unsupported
13806
      fi
13807
      ;;
13808
 
13809
    aix4* | aix5*)
13810
      if test "$host_cpu" = ia64; then
13811
        # On IA64, the linker does run time linking by default, so we don't
13812
        # have to do anything special.
13813
        aix_use_runtimelinking=no
13814
        exp_sym_flag='-Bexport'
13815
        no_entry_flag=""
13816
      else
13817
        # If we're using GNU nm, then we don't want the "-C" option.
13818
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13819
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13820
          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'
13821
        else
13822
          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'
13823
        fi
13824
        aix_use_runtimelinking=no
13825
 
13826
        # Test if we are trying to use run time linking or normal
13827
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13828
        # need to do runtime linking.
13829
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13830
          for ld_flag in $LDFLAGS; do
13831
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13832
            aix_use_runtimelinking=yes
13833
            break
13834
          fi
13835
          done
13836
          ;;
13837
        esac
13838
 
13839
        exp_sym_flag='-bexport'
13840
        no_entry_flag='-bnoentry'
13841
      fi
13842
 
13843
      # When large executables or shared objects are built, AIX ld can
13844
      # have problems creating the table of contents.  If linking a library
13845
      # or program results in "error TOC overflow" add -mminimal-toc to
13846
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13847
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13848
 
13849
      archive_cmds_F77=''
13850
      hardcode_direct_F77=yes
13851
      hardcode_libdir_separator_F77=':'
13852
      link_all_deplibs_F77=yes
13853
 
13854
      if test "$GCC" = yes; then
13855
        case $host_os in aix4.[012]|aix4.[012].*)
13856
        # We only want to do this on AIX 4.2 and lower, the check
13857
        # below for broken collect2 doesn't work under 4.3+
13858
          collect2name=`${CC} -print-prog-name=collect2`
13859
          if test -f "$collect2name" && \
13860
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13861
          then
13862
          # We have reworked collect2
13863
          :
13864
          else
13865
          # We have old collect2
13866
          hardcode_direct_F77=unsupported
13867
          # It fails to find uninstalled libraries when the uninstalled
13868
          # path is not listed in the libpath.  Setting hardcode_minus_L
13869
          # to unsupported forces relinking
13870
          hardcode_minus_L_F77=yes
13871
          hardcode_libdir_flag_spec_F77='-L$libdir'
13872
          hardcode_libdir_separator_F77=
13873
          fi
13874
          ;;
13875
        esac
13876
        shared_flag='-shared'
13877
        if test "$aix_use_runtimelinking" = yes; then
13878
          shared_flag="$shared_flag "'${wl}-G'
13879
        fi
13880
      else
13881
        # not using gcc
13882
        if test "$host_cpu" = ia64; then
13883
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13884
        # chokes on -Wl,-G. The following line is correct:
13885
          shared_flag='-G'
13886
        else
13887
          if test "$aix_use_runtimelinking" = yes; then
13888
            shared_flag='${wl}-G'
13889
          else
13890
            shared_flag='${wl}-bM:SRE'
13891
          fi
13892
        fi
13893
      fi
13894
 
13895
      # It seems that -bexpall does not export symbols beginning with
13896
      # underscore (_), so it is better to generate a list of symbols to export.
13897
      always_export_symbols_F77=yes
13898
      if test "$aix_use_runtimelinking" = yes; then
13899
        # Warning - without using the other runtime loading flags (-brtl),
13900
        # -berok will link without error, but may produce a broken library.
13901
        allow_undefined_flag_F77='-berok'
13902
       # Determine the default libpath from the value encoded in an empty executable.
13903
       cat >conftest.$ac_ext <<_ACEOF
13904
      program main
13905
 
13906
      end
13907
_ACEOF
13908
rm -f conftest.$ac_objext conftest$ac_exeext
13909
if { (ac_try="$ac_link"
13910
case "(($ac_try" in
13911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912
  *) ac_try_echo=$ac_try;;
13913
esac
13914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915
  (eval "$ac_link") 2>conftest.er1
13916
  ac_status=$?
13917
  grep -v '^ *+' conftest.er1 >conftest.err
13918
  rm -f conftest.er1
13919
  cat conftest.err >&5
13920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921
  (exit $ac_status); } && {
13922
         test -z "$ac_f77_werror_flag" ||
13923
         test ! -s conftest.err
13924
       } && test -s conftest$ac_exeext &&
13925
       $as_test_x conftest$ac_exeext; then
13926
 
13927
lt_aix_libpath_sed='
13928
    /Import File Strings/,/^$/ {
13929
        /^0/ {
13930
            s/^0  *\(.*\)$/\1/
13931
            p
13932
        }
13933
    }'
13934
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13935
# Check for a 64-bit object if we didn't find anything.
13936
if test -z "$aix_libpath"; then
13937
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13938
fi
13939
else
13940
  echo "$as_me: failed program was:" >&5
13941
sed 's/^/| /' conftest.$ac_ext >&5
13942
 
13943
 
13944
fi
13945
 
13946
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13947
      conftest$ac_exeext conftest.$ac_ext
13948
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13949
 
13950
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13951
        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"
13952
       else
13953
        if test "$host_cpu" = ia64; then
13954
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13955
          allow_undefined_flag_F77="-z nodefs"
13956
          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"
13957
        else
13958
         # Determine the default libpath from the value encoded in an empty executable.
13959
         cat >conftest.$ac_ext <<_ACEOF
13960
      program main
13961
 
13962
      end
13963
_ACEOF
13964
rm -f conftest.$ac_objext conftest$ac_exeext
13965
if { (ac_try="$ac_link"
13966
case "(($ac_try" in
13967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968
  *) ac_try_echo=$ac_try;;
13969
esac
13970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971
  (eval "$ac_link") 2>conftest.er1
13972
  ac_status=$?
13973
  grep -v '^ *+' conftest.er1 >conftest.err
13974
  rm -f conftest.er1
13975
  cat conftest.err >&5
13976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977
  (exit $ac_status); } && {
13978
         test -z "$ac_f77_werror_flag" ||
13979
         test ! -s conftest.err
13980
       } && test -s conftest$ac_exeext &&
13981
       $as_test_x conftest$ac_exeext; then
13982
 
13983
lt_aix_libpath_sed='
13984
    /Import File Strings/,/^$/ {
13985
        /^0/ {
13986
            s/^0  *\(.*\)$/\1/
13987
            p
13988
        }
13989
    }'
13990
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13991
# Check for a 64-bit object if we didn't find anything.
13992
if test -z "$aix_libpath"; then
13993
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13994
fi
13995
else
13996
  echo "$as_me: failed program was:" >&5
13997
sed 's/^/| /' conftest.$ac_ext >&5
13998
 
13999
 
14000
fi
14001
 
14002
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14003
      conftest$ac_exeext conftest.$ac_ext
14004
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14005
 
14006
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14007
          # Warning - without using the other run time loading flags,
14008
          # -berok will link without error, but may produce a broken library.
14009
          no_undefined_flag_F77=' ${wl}-bernotok'
14010
          allow_undefined_flag_F77=' ${wl}-berok'
14011
          # Exported symbols can be pulled into shared objects from archives
14012
          whole_archive_flag_spec_F77='$convenience'
14013
          archive_cmds_need_lc_F77=yes
14014
          # This is similar to how AIX traditionally builds its shared libraries.
14015
          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'
14016
        fi
14017
      fi
14018
      ;;
14019
 
14020
    amigaos*)
14021
      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)'
14022
      hardcode_libdir_flag_spec_F77='-L$libdir'
14023
      hardcode_minus_L_F77=yes
14024
      # see comment about different semantics on the GNU ld section
14025
      ld_shlibs_F77=no
14026
      ;;
14027
 
14028
    bsdi[45]*)
14029
      export_dynamic_flag_spec_F77=-rdynamic
14030
      ;;
14031
 
14032
    cygwin* | mingw* | pw32*)
14033
      # When not using gcc, we currently assume that we are using
14034
      # Microsoft Visual C++.
14035
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14036
      # no search path for DLLs.
14037
      hardcode_libdir_flag_spec_F77=' '
14038
      allow_undefined_flag_F77=unsupported
14039
      # Tell ltmain to make .lib files, not .a files.
14040
      libext=lib
14041
      # Tell ltmain to make .dll files, not .so files.
14042
      shrext_cmds=".dll"
14043
      # FIXME: Setting linknames here is a bad hack.
14044
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14045
      # The linker will automatically build a .lib file if we build a DLL.
14046
      old_archive_From_new_cmds_F77='true'
14047
      # FIXME: Should let the user specify the lib program.
14048
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14049
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14050
      enable_shared_with_static_runtimes_F77=yes
14051
      ;;
14052
 
14053
    darwin* | rhapsody*)
14054
      case $host_os in
14055
        rhapsody* | darwin1.[012])
14056
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14057
         ;;
14058
       *) # Darwin 1.3 on
14059
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14060
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14061
         else
14062
           case ${MACOSX_DEPLOYMENT_TARGET} in
14063
             10.[012])
14064
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14065
               ;;
14066
             10.*)
14067
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14068
               ;;
14069
           esac
14070
         fi
14071
         ;;
14072
      esac
14073
      archive_cmds_need_lc_F77=no
14074
      hardcode_direct_F77=no
14075
      hardcode_automatic_F77=yes
14076
      hardcode_shlibpath_var_F77=unsupported
14077
      whole_archive_flag_spec_F77=''
14078
      link_all_deplibs_F77=yes
14079
    if test "$GCC" = yes ; then
14080
        output_verbose_link_cmd='echo'
14081
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14082
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14083
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14084
      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}'
14085
      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}'
14086
    else
14087
      case $cc_basename in
14088
        xlc*)
14089
         output_verbose_link_cmd='echo'
14090
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14091
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14092
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14093
         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}'
14094
          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}'
14095
          ;;
14096
       *)
14097
         ld_shlibs_F77=no
14098
          ;;
14099
      esac
14100
    fi
14101
      ;;
14102
 
14103
    dgux*)
14104
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105
      hardcode_libdir_flag_spec_F77='-L$libdir'
14106
      hardcode_shlibpath_var_F77=no
14107
      ;;
14108
 
14109
    freebsd1*)
14110
      ld_shlibs_F77=no
14111
      ;;
14112
 
14113
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14114
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14115
    # does not break anything, and helps significantly (at the cost of a little
14116
    # extra space).
14117
    freebsd2.2*)
14118
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14119
      hardcode_libdir_flag_spec_F77='-R$libdir'
14120
      hardcode_direct_F77=yes
14121
      hardcode_shlibpath_var_F77=no
14122
      ;;
14123
 
14124
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14125
    freebsd2*)
14126
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14127
      hardcode_direct_F77=yes
14128
      hardcode_minus_L_F77=yes
14129
      hardcode_shlibpath_var_F77=no
14130
      ;;
14131
 
14132
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14133
    freebsd* | dragonfly*)
14134
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14135
      hardcode_libdir_flag_spec_F77='-R$libdir'
14136
      hardcode_direct_F77=yes
14137
      hardcode_shlibpath_var_F77=no
14138
      ;;
14139
 
14140
    hpux9*)
14141
      if test "$GCC" = yes; then
14142
        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'
14143
      else
14144
        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'
14145
      fi
14146
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14147
      hardcode_libdir_separator_F77=:
14148
      hardcode_direct_F77=yes
14149
 
14150
      # hardcode_minus_L: Not really in the search PATH,
14151
      # but as the default location of the library.
14152
      hardcode_minus_L_F77=yes
14153
      export_dynamic_flag_spec_F77='${wl}-E'
14154
      ;;
14155
 
14156
    hpux10*)
14157
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14158
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14159
      else
14160
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14161
      fi
14162
      if test "$with_gnu_ld" = no; then
14163
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14164
        hardcode_libdir_separator_F77=:
14165
 
14166
        hardcode_direct_F77=yes
14167
        export_dynamic_flag_spec_F77='${wl}-E'
14168
 
14169
        # hardcode_minus_L: Not really in the search PATH,
14170
        # but as the default location of the library.
14171
        hardcode_minus_L_F77=yes
14172
      fi
14173
      ;;
14174
 
14175
    hpux11*)
14176
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14177
        case $host_cpu in
14178
        hppa*64*)
14179
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14180
          ;;
14181
        ia64*)
14182
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14183
          ;;
14184
        *)
14185
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14186
          ;;
14187
        esac
14188
      else
14189
        case $host_cpu in
14190
        hppa*64*)
14191
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14192
          ;;
14193
        ia64*)
14194
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14195
          ;;
14196
        *)
14197
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14198
          ;;
14199
        esac
14200
      fi
14201
      if test "$with_gnu_ld" = no; then
14202
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14203
        hardcode_libdir_separator_F77=:
14204
 
14205
        case $host_cpu in
14206
        hppa*64*|ia64*)
14207
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14208
          hardcode_direct_F77=no
14209
          hardcode_shlibpath_var_F77=no
14210
          ;;
14211
        *)
14212
          hardcode_direct_F77=yes
14213
          export_dynamic_flag_spec_F77='${wl}-E'
14214
 
14215
          # hardcode_minus_L: Not really in the search PATH,
14216
          # but as the default location of the library.
14217
          hardcode_minus_L_F77=yes
14218
          ;;
14219
        esac
14220
      fi
14221
      ;;
14222
 
14223
    irix5* | irix6* | nonstopux*)
14224
      if test "$GCC" = yes; then
14225
        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'
14226
      else
14227
        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'
14228
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14229
      fi
14230
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14231
      hardcode_libdir_separator_F77=:
14232
      link_all_deplibs_F77=yes
14233
      ;;
14234
 
14235
    netbsd*)
14236
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14237
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14238
      else
14239
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14240
      fi
14241
      hardcode_libdir_flag_spec_F77='-R$libdir'
14242
      hardcode_direct_F77=yes
14243
      hardcode_shlibpath_var_F77=no
14244
      ;;
14245
 
14246
    newsos6)
14247
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248
      hardcode_direct_F77=yes
14249
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14250
      hardcode_libdir_separator_F77=:
14251
      hardcode_shlibpath_var_F77=no
14252
      ;;
14253
 
14254
    openbsd*)
14255
      if test -f /usr/libexec/ld.so; then
14256
        hardcode_direct_F77=yes
14257
        hardcode_shlibpath_var_F77=no
14258
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14259
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14260
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14261
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14262
          export_dynamic_flag_spec_F77='${wl}-E'
14263
        else
14264
          case $host_os in
14265
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14266
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14267
             hardcode_libdir_flag_spec_F77='-R$libdir'
14268
             ;;
14269
           *)
14270
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14271
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14272
             ;;
14273
          esac
14274
        fi
14275
      else
14276
        ld_shlibs_F77=no
14277
      fi
14278
      ;;
14279
 
14280
    os2*)
14281
      hardcode_libdir_flag_spec_F77='-L$libdir'
14282
      hardcode_minus_L_F77=yes
14283
      allow_undefined_flag_F77=unsupported
14284
      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'
14285
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14286
      ;;
14287
 
14288
    osf3*)
14289
      if test "$GCC" = yes; then
14290
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14291
        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'
14292
      else
14293
        allow_undefined_flag_F77=' -expect_unresolved \*'
14294
        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'
14295
      fi
14296
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14297
      hardcode_libdir_separator_F77=:
14298
      ;;
14299
 
14300
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14301
      if test "$GCC" = yes; then
14302
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14303
        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'
14304
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14305
      else
14306
        allow_undefined_flag_F77=' -expect_unresolved \*'
14307
        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'
14308
        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~
14309
        $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'
14310
 
14311
        # Both c and cxx compiler support -rpath directly
14312
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14313
      fi
14314
      hardcode_libdir_separator_F77=:
14315
      ;;
14316
 
14317
    solaris*)
14318
      no_undefined_flag_F77=' -z text'
14319
      if test "$GCC" = yes; then
14320
        wlarc='${wl}'
14321
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14322
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14323
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14324
      else
14325
        wlarc=''
14326
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14327
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14328
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14329
      fi
14330
      hardcode_libdir_flag_spec_F77='-R$libdir'
14331
      hardcode_shlibpath_var_F77=no
14332
      case $host_os in
14333
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14334
      *)
14335
        # The compiler driver will combine and reorder linker options,
14336
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
14337
        # but is careful enough not to reorder.
14338
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14339
        if test "$GCC" = yes; then
14340
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14341
        else
14342
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14343
        fi
14344
        ;;
14345
      esac
14346
      link_all_deplibs_F77=yes
14347
      ;;
14348
 
14349
    sunos4*)
14350
      if test "x$host_vendor" = xsequent; then
14351
        # Use $CC to link under sequent, because it throws in some extra .o
14352
        # files that make .init and .fini sections work.
14353
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14354
      else
14355
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14356
      fi
14357
      hardcode_libdir_flag_spec_F77='-L$libdir'
14358
      hardcode_direct_F77=yes
14359
      hardcode_minus_L_F77=yes
14360
      hardcode_shlibpath_var_F77=no
14361
      ;;
14362
 
14363
    sysv4)
14364
      case $host_vendor in
14365
        sni)
14366
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14367
          hardcode_direct_F77=yes # is this really true???
14368
        ;;
14369
        siemens)
14370
          ## LD is ld it makes a PLAMLIB
14371
          ## CC just makes a GrossModule.
14372
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14373
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14374
          hardcode_direct_F77=no
14375
        ;;
14376
        motorola)
14377
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14378
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14379
        ;;
14380
      esac
14381
      runpath_var='LD_RUN_PATH'
14382
      hardcode_shlibpath_var_F77=no
14383
      ;;
14384
 
14385
    sysv4.3*)
14386
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14387
      hardcode_shlibpath_var_F77=no
14388
      export_dynamic_flag_spec_F77='-Bexport'
14389
      ;;
14390
 
14391
    sysv4*MP*)
14392
      if test -d /usr/nec; then
14393
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14394
        hardcode_shlibpath_var_F77=no
14395
        runpath_var=LD_RUN_PATH
14396
        hardcode_runpath_var=yes
14397
        ld_shlibs_F77=yes
14398
      fi
14399
      ;;
14400
 
14401
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14402
      no_undefined_flag_F77='${wl}-z,text'
14403
      archive_cmds_need_lc_F77=no
14404
      hardcode_shlibpath_var_F77=no
14405
      runpath_var='LD_RUN_PATH'
14406
 
14407
      if test "$GCC" = yes; then
14408
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14409
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14410
      else
14411
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14412
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14413
      fi
14414
      ;;
14415
 
14416
    sysv5* | sco3.2v5* | sco5v6*)
14417
      # Note: We can NOT use -z defs as we might desire, because we do not
14418
      # link with -lc, and that would cause any symbols used from libc to
14419
      # always be unresolved, which means just about no library would
14420
      # ever link correctly.  If we're not using GNU ld we use -z text
14421
      # though, which does catch some bad symbols but isn't as heavy-handed
14422
      # as -z defs.
14423
      no_undefined_flag_F77='${wl}-z,text'
14424
      allow_undefined_flag_F77='${wl}-z,nodefs'
14425
      archive_cmds_need_lc_F77=no
14426
      hardcode_shlibpath_var_F77=no
14427
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14428
      hardcode_libdir_separator_F77=':'
14429
      link_all_deplibs_F77=yes
14430
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14431
      runpath_var='LD_RUN_PATH'
14432
 
14433
      if test "$GCC" = yes; then
14434
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14435
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14436
      else
14437
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14438
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14439
      fi
14440
      ;;
14441
 
14442
    uts4*)
14443
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14444
      hardcode_libdir_flag_spec_F77='-L$libdir'
14445
      hardcode_shlibpath_var_F77=no
14446
      ;;
14447
 
14448
    *)
14449
      ld_shlibs_F77=no
14450
      ;;
14451
    esac
14452
  fi
14453
 
14454
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14455
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14456
test "$ld_shlibs_F77" = no && can_build_shared=no
14457
 
14458
#
14459
# Do we need to explicitly link libc?
14460
#
14461
case "x$archive_cmds_need_lc_F77" in
14462
x|xyes)
14463
  # Assume -lc should be added
14464
  archive_cmds_need_lc_F77=yes
14465
 
14466
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14467
    case $archive_cmds_F77 in
14468
    *'~'*)
14469
      # FIXME: we may have to deal with multi-command sequences.
14470
      ;;
14471
    '$CC '*)
14472
      # Test whether the compiler implicitly links with -lc since on some
14473
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14474
      # to ld, don't add -lc before -lgcc.
14475
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14476
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14477
      $rm conftest*
14478
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14479
 
14480
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481
  (eval $ac_compile) 2>&5
14482
  ac_status=$?
14483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484
  (exit $ac_status); } 2>conftest.err; then
14485
        soname=conftest
14486
        lib=conftest
14487
        libobjs=conftest.$ac_objext
14488
        deplibs=
14489
        wl=$lt_prog_compiler_wl_F77
14490
        pic_flag=$lt_prog_compiler_pic_F77
14491
        compiler_flags=-v
14492
        linker_flags=-v
14493
        verstring=
14494
        output_objdir=.
14495
        libname=conftest
14496
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14497
        allow_undefined_flag_F77=
14498
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14499
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14500
  ac_status=$?
14501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502
  (exit $ac_status); }
14503
        then
14504
          archive_cmds_need_lc_F77=no
14505
        else
14506
          archive_cmds_need_lc_F77=yes
14507
        fi
14508
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14509
      else
14510
        cat conftest.err 1>&5
14511
      fi
14512
      $rm conftest*
14513
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14514
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14515
      ;;
14516
    esac
14517
  fi
14518
  ;;
14519
esac
14520
 
14521
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14522
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14523
library_names_spec=
14524
libname_spec='lib$name'
14525
soname_spec=
14526
shrext_cmds=".so"
14527
postinstall_cmds=
14528
postuninstall_cmds=
14529
finish_cmds=
14530
finish_eval=
14531
shlibpath_var=
14532
shlibpath_overrides_runpath=unknown
14533
version_type=none
14534
dynamic_linker="$host_os ld.so"
14535
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14536
 
14537
need_lib_prefix=unknown
14538
hardcode_into_libs=no
14539
 
14540
# when you set need_version to no, make sure it does not cause -set_version
14541
# flags to be left without arguments
14542
need_version=unknown
14543
 
14544
case $host_os in
14545
aix3*)
14546
  version_type=linux
14547
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14548
  shlibpath_var=LIBPATH
14549
 
14550
  # AIX 3 has no versioning support, so we append a major version to the name.
14551
  soname_spec='${libname}${release}${shared_ext}$major'
14552
  ;;
14553
 
14554
aix4* | aix5*)
14555
  version_type=linux
14556
  need_lib_prefix=no
14557
  need_version=no
14558
  hardcode_into_libs=yes
14559
  if test "$host_cpu" = ia64; then
14560
    # AIX 5 supports IA64
14561
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14562
    shlibpath_var=LD_LIBRARY_PATH
14563
  else
14564
    # With GCC up to 2.95.x, collect2 would create an import file
14565
    # for dependence libraries.  The import file would start with
14566
    # the line `#! .'.  This would cause the generated library to
14567
    # depend on `.', always an invalid library.  This was fixed in
14568
    # development snapshots of GCC prior to 3.0.
14569
    case $host_os in
14570
      aix4 | aix4.[01] | aix4.[01].*)
14571
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14572
           echo ' yes '
14573
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14574
        :
14575
      else
14576
        can_build_shared=no
14577
      fi
14578
      ;;
14579
    esac
14580
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14581
    # soname into executable. Probably we can add versioning support to
14582
    # collect2, so additional links can be useful in future.
14583
    if test "$aix_use_runtimelinking" = yes; then
14584
      # If using run time linking (on AIX 4.2 or later) use lib.so
14585
      # instead of lib.a to let people know that these are not
14586
      # typical AIX shared libraries.
14587
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14588
    else
14589
      # We preserve .a as extension for shared libraries through AIX4.2
14590
      # and later when we are not doing run time linking.
14591
      library_names_spec='${libname}${release}.a $libname.a'
14592
      soname_spec='${libname}${release}${shared_ext}$major'
14593
    fi
14594
    shlibpath_var=LIBPATH
14595
  fi
14596
  ;;
14597
 
14598
amigaos*)
14599
  library_names_spec='$libname.ixlibrary $libname.a'
14600
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14601
  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'
14602
  ;;
14603
 
14604
beos*)
14605
  library_names_spec='${libname}${shared_ext}'
14606
  dynamic_linker="$host_os ld.so"
14607
  shlibpath_var=LIBRARY_PATH
14608
  ;;
14609
 
14610
bsdi[45]*)
14611
  version_type=linux
14612
  need_version=no
14613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614
  soname_spec='${libname}${release}${shared_ext}$major'
14615
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14616
  shlibpath_var=LD_LIBRARY_PATH
14617
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14618
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14619
  # the default ld.so.conf also contains /usr/contrib/lib and
14620
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14621
  # libtool to hard-code these into programs
14622
  ;;
14623
 
14624
cygwin* | mingw* | pw32*)
14625
  version_type=windows
14626
  shrext_cmds=".dll"
14627
  need_version=no
14628
  need_lib_prefix=no
14629
 
14630
  case $GCC,$host_os in
14631
  yes,cygwin* | yes,mingw* | yes,pw32*)
14632
    library_names_spec='$libname.dll.a'
14633
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14634
    postinstall_cmds='base_file=`basename \${file}`~
14635
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14636
      dldir=$destdir/`dirname \$dlpath`~
14637
      test -d \$dldir || mkdir -p \$dldir~
14638
      $install_prog $dir/$dlname \$dldir/$dlname~
14639
      chmod a+x \$dldir/$dlname'
14640
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14641
      dlpath=$dir/\$dldll~
14642
       $rm \$dlpath'
14643
    shlibpath_overrides_runpath=yes
14644
 
14645
    case $host_os in
14646
    cygwin*)
14647
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14648
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14649
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14650
      ;;
14651
    mingw*)
14652
      # MinGW DLLs use traditional 'lib' prefix
14653
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14654
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14655
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14656
        # It is most probably a Windows format PATH printed by
14657
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14658
        # path with ; separators, and with drive letters. We can handle the
14659
        # drive letters (cygwin fileutils understands them), so leave them,
14660
        # especially as we might pass files found there to a mingw objdump,
14661
        # which wouldn't understand a cygwinified path. Ahh.
14662
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14663
      else
14664
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14665
      fi
14666
      ;;
14667
    pw32*)
14668
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14669
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14670
      ;;
14671
    esac
14672
    ;;
14673
 
14674
  *)
14675
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14676
    ;;
14677
  esac
14678
  dynamic_linker='Win32 ld.exe'
14679
  # FIXME: first we should search . and the directory the executable is in
14680
  shlibpath_var=PATH
14681
  ;;
14682
 
14683
darwin* | rhapsody*)
14684
  dynamic_linker="$host_os dyld"
14685
  version_type=darwin
14686
  need_lib_prefix=no
14687
  need_version=no
14688
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14689
  soname_spec='${libname}${release}${major}$shared_ext'
14690
  shlibpath_overrides_runpath=yes
14691
  shlibpath_var=DYLD_LIBRARY_PATH
14692
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14693
 
14694
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14695
  ;;
14696
 
14697
dgux*)
14698
  version_type=linux
14699
  need_lib_prefix=no
14700
  need_version=no
14701
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14702
  soname_spec='${libname}${release}${shared_ext}$major'
14703
  shlibpath_var=LD_LIBRARY_PATH
14704
  ;;
14705
 
14706
freebsd1*)
14707
  dynamic_linker=no
14708
  ;;
14709
 
14710
freebsd* | dragonfly*)
14711
  # DragonFly does not have aout.  When/if they implement a new
14712
  # versioning mechanism, adjust this.
14713
  if test -x /usr/bin/objformat; then
14714
    objformat=`/usr/bin/objformat`
14715
  else
14716
    case $host_os in
14717
    freebsd[123]*) objformat=aout ;;
14718
    *) objformat=elf ;;
14719
    esac
14720
  fi
14721
  version_type=freebsd-$objformat
14722
  case $version_type in
14723
    freebsd-elf*)
14724
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14725
      need_version=no
14726
      need_lib_prefix=no
14727
      ;;
14728
    freebsd-*)
14729
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14730
      need_version=yes
14731
      ;;
14732
  esac
14733
  shlibpath_var=LD_LIBRARY_PATH
14734
  case $host_os in
14735
  freebsd2*)
14736
    shlibpath_overrides_runpath=yes
14737
    ;;
14738
  freebsd3.[01]* | freebsdelf3.[01]*)
14739
    shlibpath_overrides_runpath=yes
14740
    hardcode_into_libs=yes
14741
    ;;
14742
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14743
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14744
    shlibpath_overrides_runpath=no
14745
    hardcode_into_libs=yes
14746
    ;;
14747
  *) # from 4.6 on, and DragonFly
14748
    shlibpath_overrides_runpath=yes
14749
    hardcode_into_libs=yes
14750
    ;;
14751
  esac
14752
  ;;
14753
 
14754
gnu*)
14755
  version_type=linux
14756
  need_lib_prefix=no
14757
  need_version=no
14758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14759
  soname_spec='${libname}${release}${shared_ext}$major'
14760
  shlibpath_var=LD_LIBRARY_PATH
14761
  hardcode_into_libs=yes
14762
  ;;
14763
 
14764
hpux9* | hpux10* | hpux11*)
14765
  # Give a soname corresponding to the major version so that dld.sl refuses to
14766
  # link against other versions.
14767
  version_type=sunos
14768
  need_lib_prefix=no
14769
  need_version=no
14770
  case $host_cpu in
14771
  ia64*)
14772
    shrext_cmds='.so'
14773
    hardcode_into_libs=yes
14774
    dynamic_linker="$host_os dld.so"
14775
    shlibpath_var=LD_LIBRARY_PATH
14776
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14777
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778
    soname_spec='${libname}${release}${shared_ext}$major'
14779
    if test "X$HPUX_IA64_MODE" = X32; then
14780
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14781
    else
14782
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14783
    fi
14784
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14785
    ;;
14786
   hppa*64*)
14787
     shrext_cmds='.sl'
14788
     hardcode_into_libs=yes
14789
     dynamic_linker="$host_os dld.sl"
14790
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14791
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14792
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793
     soname_spec='${libname}${release}${shared_ext}$major'
14794
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14795
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14796
     ;;
14797
   *)
14798
    shrext_cmds='.sl'
14799
    dynamic_linker="$host_os dld.sl"
14800
    shlibpath_var=SHLIB_PATH
14801
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14802
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803
    soname_spec='${libname}${release}${shared_ext}$major'
14804
    ;;
14805
  esac
14806
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14807
  postinstall_cmds='chmod 555 $lib'
14808
  ;;
14809
 
14810
interix[3-9]*)
14811
  version_type=linux
14812
  need_lib_prefix=no
14813
  need_version=no
14814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14815
  soname_spec='${libname}${release}${shared_ext}$major'
14816
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14817
  shlibpath_var=LD_LIBRARY_PATH
14818
  shlibpath_overrides_runpath=no
14819
  hardcode_into_libs=yes
14820
  ;;
14821
 
14822
irix5* | irix6* | nonstopux*)
14823
  case $host_os in
14824
    nonstopux*) version_type=nonstopux ;;
14825
    *)
14826
        if test "$lt_cv_prog_gnu_ld" = yes; then
14827
                version_type=linux
14828
        else
14829
                version_type=irix
14830
        fi ;;
14831
  esac
14832
  need_lib_prefix=no
14833
  need_version=no
14834
  soname_spec='${libname}${release}${shared_ext}$major'
14835
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14836
  case $host_os in
14837
  irix5* | nonstopux*)
14838
    libsuff= shlibsuff=
14839
    ;;
14840
  *)
14841
    case $LD in # libtool.m4 will add one of these switches to LD
14842
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14843
      libsuff= shlibsuff= libmagic=32-bit;;
14844
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14845
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14846
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14847
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14848
    *) libsuff= shlibsuff= libmagic=never-match;;
14849
    esac
14850
    ;;
14851
  esac
14852
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14853
  shlibpath_overrides_runpath=no
14854
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14855
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14856
  hardcode_into_libs=yes
14857
  ;;
14858
 
14859
# No shared lib support for Linux oldld, aout, or coff.
14860
linux*oldld* | linux*aout* | linux*coff*)
14861
  dynamic_linker=no
14862
  ;;
14863
 
14864
# This must be Linux ELF.
14865
linux* | k*bsd*-gnu)
14866
  version_type=linux
14867
  need_lib_prefix=no
14868
  need_version=no
14869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870
  soname_spec='${libname}${release}${shared_ext}$major'
14871
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14872
  shlibpath_var=LD_LIBRARY_PATH
14873
  shlibpath_overrides_runpath=no
14874
  # This implies no fast_install, which is unacceptable.
14875
  # Some rework will be needed to allow for fast_install
14876
  # before this can be enabled.
14877
  hardcode_into_libs=yes
14878
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14879
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14880
 
14881
  # Append ld.so.conf contents to the search path
14882
  if test -f /etc/ld.so.conf; then
14883
    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' ' '`
14884
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14885
  fi
14886
 
14887
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14888
  # powerpc, because MkLinux only supported shared libraries with the
14889
  # GNU dynamic linker.  Since this was broken with cross compilers,
14890
  # most powerpc-linux boxes support dynamic linking these days and
14891
  # people can always --disable-shared, the test was removed, and we
14892
  # assume the GNU/Linux dynamic linker is in use.
14893
  dynamic_linker='GNU/Linux ld.so'
14894
  ;;
14895
 
14896
netbsd*)
14897
  version_type=sunos
14898
  need_lib_prefix=no
14899
  need_version=no
14900
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14901
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14902
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14903
    dynamic_linker='NetBSD (a.out) ld.so'
14904
  else
14905
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14906
    soname_spec='${libname}${release}${shared_ext}$major'
14907
    dynamic_linker='NetBSD ld.elf_so'
14908
  fi
14909
  shlibpath_var=LD_LIBRARY_PATH
14910
  shlibpath_overrides_runpath=yes
14911
  hardcode_into_libs=yes
14912
  ;;
14913
 
14914
newsos6)
14915
  version_type=linux
14916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917
  shlibpath_var=LD_LIBRARY_PATH
14918
  shlibpath_overrides_runpath=yes
14919
  ;;
14920
 
14921
nto-qnx*)
14922
  version_type=linux
14923
  need_lib_prefix=no
14924
  need_version=no
14925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926
  soname_spec='${libname}${release}${shared_ext}$major'
14927
  shlibpath_var=LD_LIBRARY_PATH
14928
  shlibpath_overrides_runpath=yes
14929
  ;;
14930
 
14931
openbsd*)
14932
  version_type=sunos
14933
  sys_lib_dlsearch_path_spec="/usr/lib"
14934
  need_lib_prefix=no
14935
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14936
  case $host_os in
14937
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14938
    *)                         need_version=no  ;;
14939
  esac
14940
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14941
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14942
  shlibpath_var=LD_LIBRARY_PATH
14943
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14944
    case $host_os in
14945
      openbsd2.[89] | openbsd2.[89].*)
14946
        shlibpath_overrides_runpath=no
14947
        ;;
14948
      *)
14949
        shlibpath_overrides_runpath=yes
14950
        ;;
14951
      esac
14952
  else
14953
    shlibpath_overrides_runpath=yes
14954
  fi
14955
  ;;
14956
 
14957
os2*)
14958
  libname_spec='$name'
14959
  shrext_cmds=".dll"
14960
  need_lib_prefix=no
14961
  library_names_spec='$libname${shared_ext} $libname.a'
14962
  dynamic_linker='OS/2 ld.exe'
14963
  shlibpath_var=LIBPATH
14964
  ;;
14965
 
14966
osf3* | osf4* | osf5*)
14967
  version_type=osf
14968
  need_lib_prefix=no
14969
  need_version=no
14970
  soname_spec='${libname}${release}${shared_ext}$major'
14971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972
  shlibpath_var=LD_LIBRARY_PATH
14973
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14974
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14975
  ;;
14976
 
14977
rdos*)
14978
  dynamic_linker=no
14979
  ;;
14980
 
14981
solaris*)
14982
  version_type=linux
14983
  need_lib_prefix=no
14984
  need_version=no
14985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986
  soname_spec='${libname}${release}${shared_ext}$major'
14987
  shlibpath_var=LD_LIBRARY_PATH
14988
  shlibpath_overrides_runpath=yes
14989
  hardcode_into_libs=yes
14990
  # ldd complains unless libraries are executable
14991
  postinstall_cmds='chmod +x $lib'
14992
  ;;
14993
 
14994
sunos4*)
14995
  version_type=sunos
14996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14997
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14998
  shlibpath_var=LD_LIBRARY_PATH
14999
  shlibpath_overrides_runpath=yes
15000
  if test "$with_gnu_ld" = yes; then
15001
    need_lib_prefix=no
15002
  fi
15003
  need_version=yes
15004
  ;;
15005
 
15006
sysv4 | sysv4.3*)
15007
  version_type=linux
15008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009
  soname_spec='${libname}${release}${shared_ext}$major'
15010
  shlibpath_var=LD_LIBRARY_PATH
15011
  case $host_vendor in
15012
    sni)
15013
      shlibpath_overrides_runpath=no
15014
      need_lib_prefix=no
15015
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15016
      runpath_var=LD_RUN_PATH
15017
      ;;
15018
    siemens)
15019
      need_lib_prefix=no
15020
      ;;
15021
    motorola)
15022
      need_lib_prefix=no
15023
      need_version=no
15024
      shlibpath_overrides_runpath=no
15025
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15026
      ;;
15027
  esac
15028
  ;;
15029
 
15030
sysv4*MP*)
15031
  if test -d /usr/nec ;then
15032
    version_type=linux
15033
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15034
    soname_spec='$libname${shared_ext}.$major'
15035
    shlibpath_var=LD_LIBRARY_PATH
15036
  fi
15037
  ;;
15038
 
15039
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15040
  version_type=freebsd-elf
15041
  need_lib_prefix=no
15042
  need_version=no
15043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15044
  soname_spec='${libname}${release}${shared_ext}$major'
15045
  shlibpath_var=LD_LIBRARY_PATH
15046
  hardcode_into_libs=yes
15047
  if test "$with_gnu_ld" = yes; then
15048
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15049
    shlibpath_overrides_runpath=no
15050
  else
15051
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15052
    shlibpath_overrides_runpath=yes
15053
    case $host_os in
15054
      sco3.2v5*)
15055
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15056
        ;;
15057
    esac
15058
  fi
15059
  sys_lib_dlsearch_path_spec='/usr/lib'
15060
  ;;
15061
 
15062
uts4*)
15063
  version_type=linux
15064
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15065
  soname_spec='${libname}${release}${shared_ext}$major'
15066
  shlibpath_var=LD_LIBRARY_PATH
15067
  ;;
15068
 
15069
*)
15070
  dynamic_linker=no
15071
  ;;
15072
esac
15073
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15074
echo "${ECHO_T}$dynamic_linker" >&6; }
15075
test "$dynamic_linker" = no && can_build_shared=no
15076
 
15077
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15078
if test "$GCC" = yes; then
15079
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15080
fi
15081
 
15082
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15083
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15084
hardcode_action_F77=
15085
if test -n "$hardcode_libdir_flag_spec_F77" || \
15086
   test -n "$runpath_var_F77" || \
15087
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15088
 
15089
  # We can hardcode non-existant directories.
15090
  if test "$hardcode_direct_F77" != no &&
15091
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15092
     # have to relink, otherwise we might link with an installed library
15093
     # when we should be linking with a yet-to-be-installed one
15094
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15095
     test "$hardcode_minus_L_F77" != no; then
15096
    # Linking always hardcodes the temporary library directory.
15097
    hardcode_action_F77=relink
15098
  else
15099
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15100
    hardcode_action_F77=immediate
15101
  fi
15102
else
15103
  # We cannot hardcode anything, or else we can only hardcode existing
15104
  # directories.
15105
  hardcode_action_F77=unsupported
15106
fi
15107
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15108
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15109
 
15110
if test "$hardcode_action_F77" = relink; then
15111
  # Fast installation is not supported
15112
  enable_fast_install=no
15113
elif test "$shlibpath_overrides_runpath" = yes ||
15114
     test "$enable_shared" = no; then
15115
  # Fast installation is not necessary
15116
  enable_fast_install=needless
15117
fi
15118
 
15119
 
15120
# The else clause should only fire when bootstrapping the
15121
# libtool distribution, otherwise you forgot to ship ltmain.sh
15122
# with your package, and you will get complaints that there are
15123
# no rules to generate ltmain.sh.
15124
if test -f "$ltmain"; then
15125
  # See if we are running on zsh, and set the options which allow our commands through
15126
  # without removal of \ escapes.
15127
  if test -n "${ZSH_VERSION+set}" ; then
15128
    setopt NO_GLOB_SUBST
15129
  fi
15130
  # Now quote all the things that may contain metacharacters while being
15131
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15132
  # variables and quote the copies for generation of the libtool script.
15133
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15134
    SED SHELL STRIP \
15135
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15136
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15137
    deplibs_check_method reload_flag reload_cmds need_locks \
15138
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15139
    lt_cv_sys_global_symbol_to_c_name_address \
15140
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15141
    old_postinstall_cmds old_postuninstall_cmds \
15142
    compiler_F77 \
15143
    CC_F77 \
15144
    LD_F77 \
15145
    lt_prog_compiler_wl_F77 \
15146
    lt_prog_compiler_pic_F77 \
15147
    lt_prog_compiler_static_F77 \
15148
    lt_prog_compiler_no_builtin_flag_F77 \
15149
    export_dynamic_flag_spec_F77 \
15150
    thread_safe_flag_spec_F77 \
15151
    whole_archive_flag_spec_F77 \
15152
    enable_shared_with_static_runtimes_F77 \
15153
    old_archive_cmds_F77 \
15154
    old_archive_from_new_cmds_F77 \
15155
    predep_objects_F77 \
15156
    postdep_objects_F77 \
15157
    predeps_F77 \
15158
    postdeps_F77 \
15159
    compiler_lib_search_path_F77 \
15160
    archive_cmds_F77 \
15161
    archive_expsym_cmds_F77 \
15162
    postinstall_cmds_F77 \
15163
    postuninstall_cmds_F77 \
15164
    old_archive_from_expsyms_cmds_F77 \
15165
    allow_undefined_flag_F77 \
15166
    no_undefined_flag_F77 \
15167
    export_symbols_cmds_F77 \
15168
    hardcode_libdir_flag_spec_F77 \
15169
    hardcode_libdir_flag_spec_ld_F77 \
15170
    hardcode_libdir_separator_F77 \
15171
    hardcode_automatic_F77 \
15172
    module_cmds_F77 \
15173
    module_expsym_cmds_F77 \
15174
    lt_cv_prog_compiler_c_o_F77 \
15175
    fix_srcfile_path_F77 \
15176
    exclude_expsyms_F77 \
15177
    include_expsyms_F77; do
15178
 
15179
    case $var in
15180
    old_archive_cmds_F77 | \
15181
    old_archive_from_new_cmds_F77 | \
15182
    archive_cmds_F77 | \
15183
    archive_expsym_cmds_F77 | \
15184
    module_cmds_F77 | \
15185
    module_expsym_cmds_F77 | \
15186
    old_archive_from_expsyms_cmds_F77 | \
15187
    export_symbols_cmds_F77 | \
15188
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15189
    postinstall_cmds | postuninstall_cmds | \
15190
    old_postinstall_cmds | old_postuninstall_cmds | \
15191
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15192
      # Double-quote double-evaled strings.
15193
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15194
      ;;
15195
    *)
15196
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15197
      ;;
15198
    esac
15199
  done
15200
 
15201
  case $lt_echo in
15202
  *'\$0 --fallback-echo"')
15203
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15204
    ;;
15205
  esac
15206
 
15207
cfgfile="$ofile"
15208
 
15209
  cat <<__EOF__ >> "$cfgfile"
15210
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15211
 
15212
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15213
 
15214
# Shell to use when invoking shell scripts.
15215
SHELL=$lt_SHELL
15216
 
15217
# Whether or not to build shared libraries.
15218
build_libtool_libs=$enable_shared
15219
 
15220
# Whether or not to build static libraries.
15221
build_old_libs=$enable_static
15222
 
15223
# Whether or not to add -lc for building shared libraries.
15224
build_libtool_need_lc=$archive_cmds_need_lc_F77
15225
 
15226
# Whether or not to disallow shared libs when runtime libs are static
15227
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15228
 
15229
# Whether or not to optimize for fast installation.
15230
fast_install=$enable_fast_install
15231
 
15232
# The host system.
15233
host_alias=$host_alias
15234
host=$host
15235
host_os=$host_os
15236
 
15237
# The build system.
15238
build_alias=$build_alias
15239
build=$build
15240
build_os=$build_os
15241
 
15242
# An echo program that does not interpret backslashes.
15243
echo=$lt_echo
15244
 
15245
# The archiver.
15246
AR=$lt_AR
15247
AR_FLAGS=$lt_AR_FLAGS
15248
 
15249
# A C compiler.
15250
LTCC=$lt_LTCC
15251
 
15252
# LTCC compiler flags.
15253
LTCFLAGS=$lt_LTCFLAGS
15254
 
15255
# A language-specific compiler.
15256
CC=$lt_compiler_F77
15257
 
15258
# Is the compiler the GNU C compiler?
15259
with_gcc=$GCC_F77
15260
 
15261
# An ERE matcher.
15262
EGREP=$lt_EGREP
15263
 
15264
# The linker used to build libraries.
15265
LD=$lt_LD_F77
15266
 
15267
# Whether we need hard or soft links.
15268
LN_S=$lt_LN_S
15269
 
15270
# A BSD-compatible nm program.
15271
NM=$lt_NM
15272
 
15273
# A symbol stripping program
15274
STRIP=$lt_STRIP
15275
 
15276
# Used to examine libraries when file_magic_cmd begins "file"
15277
MAGIC_CMD=$MAGIC_CMD
15278
 
15279
# Used on cygwin: DLL creation program.
15280
DLLTOOL="$DLLTOOL"
15281
 
15282
# Used on cygwin: object dumper.
15283
OBJDUMP="$OBJDUMP"
15284
 
15285
# Used on cygwin: assembler.
15286
AS="$AS"
15287
 
15288
# The name of the directory that contains temporary libtool files.
15289
objdir=$objdir
15290
 
15291
# How to create reloadable object files.
15292
reload_flag=$lt_reload_flag
15293
reload_cmds=$lt_reload_cmds
15294
 
15295
# How to pass a linker flag through the compiler.
15296
wl=$lt_lt_prog_compiler_wl_F77
15297
 
15298
# Object file suffix (normally "o").
15299
objext="$ac_objext"
15300
 
15301
# Old archive suffix (normally "a").
15302
libext="$libext"
15303
 
15304
# Shared library suffix (normally ".so").
15305
shrext_cmds='$shrext_cmds'
15306
 
15307
# Executable file suffix (normally "").
15308
exeext="$exeext"
15309
 
15310
# Additional compiler flags for building library objects.
15311
pic_flag=$lt_lt_prog_compiler_pic_F77
15312
pic_mode=$pic_mode
15313
 
15314
# What is the maximum length of a command?
15315
max_cmd_len=$lt_cv_sys_max_cmd_len
15316
 
15317
# Does compiler simultaneously support -c and -o options?
15318
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15319
 
15320
# Must we lock files when doing compilation?
15321
need_locks=$lt_need_locks
15322
 
15323
# Do we need the lib prefix for modules?
15324
need_lib_prefix=$need_lib_prefix
15325
 
15326
# Do we need a version for libraries?
15327
need_version=$need_version
15328
 
15329
# Whether dlopen is supported.
15330
dlopen_support=$enable_dlopen
15331
 
15332
# Whether dlopen of programs is supported.
15333
dlopen_self=$enable_dlopen_self
15334
 
15335
# Whether dlopen of statically linked programs is supported.
15336
dlopen_self_static=$enable_dlopen_self_static
15337
 
15338
# Compiler flag to prevent dynamic linking.
15339
link_static_flag=$lt_lt_prog_compiler_static_F77
15340
 
15341
# Compiler flag to turn off builtin functions.
15342
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15343
 
15344
# Compiler flag to allow reflexive dlopens.
15345
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15346
 
15347
# Compiler flag to generate shared objects directly from archives.
15348
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15349
 
15350
# Compiler flag to generate thread-safe objects.
15351
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15352
 
15353
# Library versioning type.
15354
version_type=$version_type
15355
 
15356
# Format of library name prefix.
15357
libname_spec=$lt_libname_spec
15358
 
15359
# List of archive names.  First name is the real one, the rest are links.
15360
# The last name is the one that the linker finds with -lNAME.
15361
library_names_spec=$lt_library_names_spec
15362
 
15363
# The coded name of the library, if different from the real name.
15364
soname_spec=$lt_soname_spec
15365
 
15366
# Commands used to build and install an old-style archive.
15367
RANLIB=$lt_RANLIB
15368
old_archive_cmds=$lt_old_archive_cmds_F77
15369
old_postinstall_cmds=$lt_old_postinstall_cmds
15370
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15371
 
15372
# Create an old-style archive from a shared archive.
15373
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15374
 
15375
# Create a temporary old-style archive to link instead of a shared archive.
15376
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15377
 
15378
# Commands used to build and install a shared archive.
15379
archive_cmds=$lt_archive_cmds_F77
15380
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15381
postinstall_cmds=$lt_postinstall_cmds
15382
postuninstall_cmds=$lt_postuninstall_cmds
15383
 
15384
# Commands used to build a loadable module (assumed same as above if empty)
15385
module_cmds=$lt_module_cmds_F77
15386
module_expsym_cmds=$lt_module_expsym_cmds_F77
15387
 
15388
# Commands to strip libraries.
15389
old_striplib=$lt_old_striplib
15390
striplib=$lt_striplib
15391
 
15392
# Dependencies to place before the objects being linked to create a
15393
# shared library.
15394
predep_objects=$lt_predep_objects_F77
15395
 
15396
# Dependencies to place after the objects being linked to create a
15397
# shared library.
15398
postdep_objects=$lt_postdep_objects_F77
15399
 
15400
# Dependencies to place before the objects being linked to create a
15401
# shared library.
15402
predeps=$lt_predeps_F77
15403
 
15404
# Dependencies to place after the objects being linked to create a
15405
# shared library.
15406
postdeps=$lt_postdeps_F77
15407
 
15408
# The library search path used internally by the compiler when linking
15409
# a shared library.
15410
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15411
 
15412
# Method to check whether dependent libraries are shared objects.
15413
deplibs_check_method=$lt_deplibs_check_method
15414
 
15415
# Command to use when deplibs_check_method == file_magic.
15416
file_magic_cmd=$lt_file_magic_cmd
15417
 
15418
# Flag that allows shared libraries with undefined symbols to be built.
15419
allow_undefined_flag=$lt_allow_undefined_flag_F77
15420
 
15421
# Flag that forces no undefined symbols.
15422
no_undefined_flag=$lt_no_undefined_flag_F77
15423
 
15424
# Commands used to finish a libtool library installation in a directory.
15425
finish_cmds=$lt_finish_cmds
15426
 
15427
# Same as above, but a single script fragment to be evaled but not shown.
15428
finish_eval=$lt_finish_eval
15429
 
15430
# Take the output of nm and produce a listing of raw symbols and C names.
15431
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15432
 
15433
# Transform the output of nm in a proper C declaration
15434
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15435
 
15436
# Transform the output of nm in a C name address pair
15437
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15438
 
15439
# This is the shared library runtime path variable.
15440
runpath_var=$runpath_var
15441
 
15442
# This is the shared library path variable.
15443
shlibpath_var=$shlibpath_var
15444
 
15445
# Is shlibpath searched before the hard-coded library search path?
15446
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15447
 
15448
# How to hardcode a shared library path into an executable.
15449
hardcode_action=$hardcode_action_F77
15450
 
15451
# Whether we should hardcode library paths into libraries.
15452
hardcode_into_libs=$hardcode_into_libs
15453
 
15454
# Flag to hardcode \$libdir into a binary during linking.
15455
# This must work even if \$libdir does not exist.
15456
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15457
 
15458
# If ld is used when linking, flag to hardcode \$libdir into
15459
# a binary during linking. This must work even if \$libdir does
15460
# not exist.
15461
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15462
 
15463
# Whether we need a single -rpath flag with a separated argument.
15464
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15465
 
15466
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15467
# resulting binary.
15468
hardcode_direct=$hardcode_direct_F77
15469
 
15470
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15471
# resulting binary.
15472
hardcode_minus_L=$hardcode_minus_L_F77
15473
 
15474
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15475
# the resulting binary.
15476
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15477
 
15478
# Set to yes if building a shared library automatically hardcodes DIR into the library
15479
# and all subsequent libraries and executables linked against it.
15480
hardcode_automatic=$hardcode_automatic_F77
15481
 
15482
# Variables whose values should be saved in libtool wrapper scripts and
15483
# restored at relink time.
15484
variables_saved_for_relink="$variables_saved_for_relink"
15485
 
15486
# Whether libtool must link a program against all its dependency libraries.
15487
link_all_deplibs=$link_all_deplibs_F77
15488
 
15489
# Compile-time system search path for libraries
15490
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15491
 
15492
# Run-time system search path for libraries
15493
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15494
 
15495
# Fix the shell variable \$srcfile for the compiler.
15496
fix_srcfile_path=$lt_fix_srcfile_path
15497
 
15498
# Set to yes if exported symbols are required.
15499
always_export_symbols=$always_export_symbols_F77
15500
 
15501
# The commands to list exported symbols.
15502
export_symbols_cmds=$lt_export_symbols_cmds_F77
15503
 
15504
# The commands to extract the exported symbol list from a shared archive.
15505
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15506
 
15507
# Symbols that should not be listed in the preloaded symbols.
15508
exclude_expsyms=$lt_exclude_expsyms_F77
15509
 
15510
# Symbols that must always be exported.
15511
include_expsyms=$lt_include_expsyms_F77
15512
 
15513
# ### END LIBTOOL TAG CONFIG: $tagname
15514
 
15515
__EOF__
15516
 
15517
 
15518
else
15519
  # If there is no Makefile yet, we rely on a make rule to execute
15520
  # `config.status --recheck' to rerun these tests and create the
15521
  # libtool script then.
15522
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15523
  if test -f "$ltmain_in"; then
15524
    test -f Makefile && make "$ltmain"
15525
  fi
15526
fi
15527
 
15528
 
15529
ac_ext=c
15530
ac_cpp='$CPP $CPPFLAGS'
15531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15534
 
15535
CC="$lt_save_CC"
15536
 
15537
        else
15538
          tagname=""
15539
        fi
15540
        ;;
15541
 
15542
      GCJ)
15543
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15544
 
15545
 
15546
# Source file extension for Java test sources.
15547
ac_ext=java
15548
 
15549
# Object file extension for compiled Java test sources.
15550
objext=o
15551
objext_GCJ=$objext
15552
 
15553
# Code to be used in simple compile tests
15554
lt_simple_compile_test_code="class foo {}"
15555
 
15556
# Code to be used in simple link tests
15557
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15558
 
15559
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15560
 
15561
# If no C compiler was specified, use CC.
15562
LTCC=${LTCC-"$CC"}
15563
 
15564
# If no C compiler flags were specified, use CFLAGS.
15565
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15566
 
15567
# Allow CC to be a program name with arguments.
15568
compiler=$CC
15569
 
15570
 
15571
# save warnings/boilerplate of simple test code
15572
ac_outfile=conftest.$ac_objext
15573
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15574
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15575
_lt_compiler_boilerplate=`cat conftest.err`
15576
$rm conftest*
15577
 
15578
ac_outfile=conftest.$ac_objext
15579
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15580
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15581
_lt_linker_boilerplate=`cat conftest.err`
15582
$rm conftest*
15583
 
15584
 
15585
# Allow CC to be a program name with arguments.
15586
lt_save_CC="$CC"
15587
CC=${GCJ-"gcj"}
15588
compiler=$CC
15589
compiler_GCJ=$CC
15590
for cc_temp in $compiler""; do
15591
  case $cc_temp in
15592
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15593
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15594
    \-*) ;;
15595
    *) break;;
15596
  esac
15597
done
15598
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15599
 
15600
 
15601
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15602
archive_cmds_need_lc_GCJ=no
15603
 
15604
old_archive_cmds_GCJ=$old_archive_cmds
15605
 
15606
 
15607
lt_prog_compiler_no_builtin_flag_GCJ=
15608
 
15609
if test "$GCC" = yes; then
15610
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15611
 
15612
 
15613
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15614
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15615
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15616
  echo $ECHO_N "(cached) $ECHO_C" >&6
15617
else
15618
  lt_cv_prog_compiler_rtti_exceptions=no
15619
  ac_outfile=conftest.$ac_objext
15620
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15621
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15622
   # Insert the option either (1) after the last *FLAGS variable, or
15623
   # (2) before a word containing "conftest.", or (3) at the end.
15624
   # Note that $ac_compile itself does not contain backslashes and begins
15625
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15626
   # The option is referenced via a variable to avoid confusing sed.
15627
   lt_compile=`echo "$ac_compile" | $SED \
15628
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15629
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15630
   -e 's:$: $lt_compiler_flag:'`
15631
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15632
   (eval "$lt_compile" 2>conftest.err)
15633
   ac_status=$?
15634
   cat conftest.err >&5
15635
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15636
   if (exit $ac_status) && test -s "$ac_outfile"; then
15637
     # The compiler can only warn and ignore the option if not recognized
15638
     # So say no if there are warnings other than the usual output.
15639
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15640
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15641
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15642
       lt_cv_prog_compiler_rtti_exceptions=yes
15643
     fi
15644
   fi
15645
   $rm conftest*
15646
 
15647
fi
15648
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15649
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15650
 
15651
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15652
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15653
else
15654
    :
15655
fi
15656
 
15657
fi
15658
 
15659
lt_prog_compiler_wl_GCJ=
15660
lt_prog_compiler_pic_GCJ=
15661
lt_prog_compiler_static_GCJ=
15662
 
15663
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15664
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15665
 
15666
  if test "$GCC" = yes; then
15667
    lt_prog_compiler_wl_GCJ='-Wl,'
15668
    lt_prog_compiler_static_GCJ='-static'
15669
 
15670
    case $host_os in
15671
      aix*)
15672
      # All AIX code is PIC.
15673
      if test "$host_cpu" = ia64; then
15674
        # AIX 5 now supports IA64 processor
15675
        lt_prog_compiler_static_GCJ='-Bstatic'
15676
      fi
15677
      ;;
15678
 
15679
    amigaos*)
15680
      # FIXME: we need at least 68020 code to build shared libraries, but
15681
      # adding the `-m68020' flag to GCC prevents building anything better,
15682
      # like `-m68040'.
15683
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15684
      ;;
15685
 
15686
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15687
      # PIC is the default for these OSes.
15688
      ;;
15689
 
15690
    mingw* | cygwin* | pw32* | os2*)
15691
      # This hack is so that the source file can tell whether it is being
15692
      # built for inclusion in a dll (and should export symbols for example).
15693
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15694
      # (--disable-auto-import) libraries
15695
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15696
      ;;
15697
 
15698
    darwin* | rhapsody*)
15699
      # PIC is the default on this platform
15700
      # Common symbols not allowed in MH_DYLIB files
15701
      lt_prog_compiler_pic_GCJ='-fno-common'
15702
      ;;
15703
 
15704
    interix[3-9]*)
15705
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15706
      # Instead, we relocate shared libraries at runtime.
15707
      ;;
15708
 
15709
    msdosdjgpp*)
15710
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15711
      # on systems that don't support them.
15712
      lt_prog_compiler_can_build_shared_GCJ=no
15713
      enable_shared=no
15714
      ;;
15715
 
15716
    sysv4*MP*)
15717
      if test -d /usr/nec; then
15718
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15719
      fi
15720
      ;;
15721
 
15722
    hpux*)
15723
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15724
      # not for PA HP-UX.
15725
      case $host_cpu in
15726
      hppa*64*|ia64*)
15727
        # +Z the default
15728
        ;;
15729
      *)
15730
        lt_prog_compiler_pic_GCJ='-fPIC'
15731
        ;;
15732
      esac
15733
      ;;
15734
 
15735
    *)
15736
      lt_prog_compiler_pic_GCJ='-fPIC'
15737
      ;;
15738
    esac
15739
  else
15740
    # PORTME Check for flag to pass linker flags through the system compiler.
15741
    case $host_os in
15742
    aix*)
15743
      lt_prog_compiler_wl_GCJ='-Wl,'
15744
      if test "$host_cpu" = ia64; then
15745
        # AIX 5 now supports IA64 processor
15746
        lt_prog_compiler_static_GCJ='-Bstatic'
15747
      else
15748
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15749
      fi
15750
      ;;
15751
      darwin*)
15752
        # PIC is the default on this platform
15753
        # Common symbols not allowed in MH_DYLIB files
15754
       case $cc_basename in
15755
         xlc*)
15756
         lt_prog_compiler_pic_GCJ='-qnocommon'
15757
         lt_prog_compiler_wl_GCJ='-Wl,'
15758
         ;;
15759
       esac
15760
       ;;
15761
 
15762
    mingw* | cygwin* | pw32* | os2*)
15763
      # This hack is so that the source file can tell whether it is being
15764
      # built for inclusion in a dll (and should export symbols for example).
15765
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15766
      ;;
15767
 
15768
    hpux9* | hpux10* | hpux11*)
15769
      lt_prog_compiler_wl_GCJ='-Wl,'
15770
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15771
      # not for PA HP-UX.
15772
      case $host_cpu in
15773
      hppa*64*|ia64*)
15774
        # +Z the default
15775
        ;;
15776
      *)
15777
        lt_prog_compiler_pic_GCJ='+Z'
15778
        ;;
15779
      esac
15780
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15781
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15782
      ;;
15783
 
15784
    irix5* | irix6* | nonstopux*)
15785
      lt_prog_compiler_wl_GCJ='-Wl,'
15786
      # PIC (with -KPIC) is the default.
15787
      lt_prog_compiler_static_GCJ='-non_shared'
15788
      ;;
15789
 
15790
    newsos6)
15791
      lt_prog_compiler_pic_GCJ='-KPIC'
15792
      lt_prog_compiler_static_GCJ='-Bstatic'
15793
      ;;
15794
 
15795
    linux* | k*bsd*-gnu)
15796
      case $cc_basename in
15797
      icc* | ecc*)
15798
        lt_prog_compiler_wl_GCJ='-Wl,'
15799
        lt_prog_compiler_pic_GCJ='-KPIC'
15800
        lt_prog_compiler_static_GCJ='-static'
15801
        ;;
15802
      pgcc* | pgf77* | pgf90* | pgf95*)
15803
        # Portland Group compilers (*not* the Pentium gcc compiler,
15804
        # which looks to be a dead project)
15805
        lt_prog_compiler_wl_GCJ='-Wl,'
15806
        lt_prog_compiler_pic_GCJ='-fpic'
15807
        lt_prog_compiler_static_GCJ='-Bstatic'
15808
        ;;
15809
      ccc*)
15810
        lt_prog_compiler_wl_GCJ='-Wl,'
15811
        # All Alpha code is PIC.
15812
        lt_prog_compiler_static_GCJ='-non_shared'
15813
        ;;
15814
      *)
15815
        case `$CC -V 2>&1 | sed 5q` in
15816
        *Sun\ C*)
15817
          # Sun C 5.9
15818
          lt_prog_compiler_pic_GCJ='-KPIC'
15819
          lt_prog_compiler_static_GCJ='-Bstatic'
15820
          lt_prog_compiler_wl_GCJ='-Wl,'
15821
          ;;
15822
        *Sun\ F*)
15823
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
15824
          lt_prog_compiler_pic_GCJ='-KPIC'
15825
          lt_prog_compiler_static_GCJ='-Bstatic'
15826
          lt_prog_compiler_wl_GCJ=''
15827
          ;;
15828
        esac
15829
        ;;
15830
      esac
15831
      ;;
15832
 
15833
    osf3* | osf4* | osf5*)
15834
      lt_prog_compiler_wl_GCJ='-Wl,'
15835
      # All OSF/1 code is PIC.
15836
      lt_prog_compiler_static_GCJ='-non_shared'
15837
      ;;
15838
 
15839
    rdos*)
15840
      lt_prog_compiler_static_GCJ='-non_shared'
15841
      ;;
15842
 
15843
    solaris*)
15844
      lt_prog_compiler_pic_GCJ='-KPIC'
15845
      lt_prog_compiler_static_GCJ='-Bstatic'
15846
      case $cc_basename in
15847
      f77* | f90* | f95*)
15848
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15849
      *)
15850
        lt_prog_compiler_wl_GCJ='-Wl,';;
15851
      esac
15852
      ;;
15853
 
15854
    sunos4*)
15855
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15856
      lt_prog_compiler_pic_GCJ='-PIC'
15857
      lt_prog_compiler_static_GCJ='-Bstatic'
15858
      ;;
15859
 
15860
    sysv4 | sysv4.2uw2* | sysv4.3*)
15861
      lt_prog_compiler_wl_GCJ='-Wl,'
15862
      lt_prog_compiler_pic_GCJ='-KPIC'
15863
      lt_prog_compiler_static_GCJ='-Bstatic'
15864
      ;;
15865
 
15866
    sysv4*MP*)
15867
      if test -d /usr/nec ;then
15868
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15869
        lt_prog_compiler_static_GCJ='-Bstatic'
15870
      fi
15871
      ;;
15872
 
15873
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15874
      lt_prog_compiler_wl_GCJ='-Wl,'
15875
      lt_prog_compiler_pic_GCJ='-KPIC'
15876
      lt_prog_compiler_static_GCJ='-Bstatic'
15877
      ;;
15878
 
15879
    unicos*)
15880
      lt_prog_compiler_wl_GCJ='-Wl,'
15881
      lt_prog_compiler_can_build_shared_GCJ=no
15882
      ;;
15883
 
15884
    uts4*)
15885
      lt_prog_compiler_pic_GCJ='-pic'
15886
      lt_prog_compiler_static_GCJ='-Bstatic'
15887
      ;;
15888
 
15889
    *)
15890
      lt_prog_compiler_can_build_shared_GCJ=no
15891
      ;;
15892
    esac
15893
  fi
15894
 
15895
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15896
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15897
 
15898
#
15899
# Check to make sure the PIC flag actually works.
15900
#
15901
if test -n "$lt_prog_compiler_pic_GCJ"; then
15902
 
15903
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15904
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15905
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15906
  echo $ECHO_N "(cached) $ECHO_C" >&6
15907
else
15908
  lt_prog_compiler_pic_works_GCJ=no
15909
  ac_outfile=conftest.$ac_objext
15910
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15911
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15912
   # Insert the option either (1) after the last *FLAGS variable, or
15913
   # (2) before a word containing "conftest.", or (3) at the end.
15914
   # Note that $ac_compile itself does not contain backslashes and begins
15915
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15916
   # The option is referenced via a variable to avoid confusing sed.
15917
   lt_compile=`echo "$ac_compile" | $SED \
15918
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15919
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15920
   -e 's:$: $lt_compiler_flag:'`
15921
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15922
   (eval "$lt_compile" 2>conftest.err)
15923
   ac_status=$?
15924
   cat conftest.err >&5
15925
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15926
   if (exit $ac_status) && test -s "$ac_outfile"; then
15927
     # The compiler can only warn and ignore the option if not recognized
15928
     # So say no if there are warnings other than the usual output.
15929
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15930
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15931
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15932
       lt_prog_compiler_pic_works_GCJ=yes
15933
     fi
15934
   fi
15935
   $rm conftest*
15936
 
15937
fi
15938
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15939
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15940
 
15941
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15942
    case $lt_prog_compiler_pic_GCJ in
15943
     "" | " "*) ;;
15944
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15945
     esac
15946
else
15947
    lt_prog_compiler_pic_GCJ=
15948
     lt_prog_compiler_can_build_shared_GCJ=no
15949
fi
15950
 
15951
fi
15952
case $host_os in
15953
  # For platforms which do not support PIC, -DPIC is meaningless:
15954
  *djgpp*)
15955
    lt_prog_compiler_pic_GCJ=
15956
    ;;
15957
  *)
15958
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15959
    ;;
15960
esac
15961
 
15962
#
15963
# Check to make sure the static flag actually works.
15964
#
15965
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15966
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15967
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15968
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15969
  echo $ECHO_N "(cached) $ECHO_C" >&6
15970
else
15971
  lt_prog_compiler_static_works_GCJ=no
15972
   save_LDFLAGS="$LDFLAGS"
15973
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15974
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15975
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15976
     # The linker can only warn and ignore the option if not recognized
15977
     # So say no if there are warnings
15978
     if test -s conftest.err; then
15979
       # Append any errors to the config.log.
15980
       cat conftest.err 1>&5
15981
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15982
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15983
       if diff conftest.exp conftest.er2 >/dev/null; then
15984
         lt_prog_compiler_static_works_GCJ=yes
15985
       fi
15986
     else
15987
       lt_prog_compiler_static_works_GCJ=yes
15988
     fi
15989
   fi
15990
   $rm conftest*
15991
   LDFLAGS="$save_LDFLAGS"
15992
 
15993
fi
15994
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15995
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
15996
 
15997
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15998
    :
15999
else
16000
    lt_prog_compiler_static_GCJ=
16001
fi
16002
 
16003
 
16004
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16005
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16006
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16007
  echo $ECHO_N "(cached) $ECHO_C" >&6
16008
else
16009
  lt_cv_prog_compiler_c_o_GCJ=no
16010
   $rm -r conftest 2>/dev/null
16011
   mkdir conftest
16012
   cd conftest
16013
   mkdir out
16014
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16015
 
16016
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16017
   # Insert the option either (1) after the last *FLAGS variable, or
16018
   # (2) before a word containing "conftest.", or (3) at the end.
16019
   # Note that $ac_compile itself does not contain backslashes and begins
16020
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16021
   lt_compile=`echo "$ac_compile" | $SED \
16022
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16023
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16024
   -e 's:$: $lt_compiler_flag:'`
16025
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16026
   (eval "$lt_compile" 2>out/conftest.err)
16027
   ac_status=$?
16028
   cat out/conftest.err >&5
16029
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16030
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16031
   then
16032
     # The compiler can only warn and ignore the option if not recognized
16033
     # So say no if there are warnings
16034
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16035
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16036
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16037
       lt_cv_prog_compiler_c_o_GCJ=yes
16038
     fi
16039
   fi
16040
   chmod u+w . 2>&5
16041
   $rm conftest*
16042
   # SGI C++ compiler will create directory out/ii_files/ for
16043
   # template instantiation
16044
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16045
   $rm out/* && rmdir out
16046
   cd ..
16047
   rmdir conftest
16048
   $rm conftest*
16049
 
16050
fi
16051
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16052
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16053
 
16054
 
16055
hard_links="nottested"
16056
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16057
  # do not overwrite the value of need_locks provided by the user
16058
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16059
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16060
  hard_links=yes
16061
  $rm conftest*
16062
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16063
  touch conftest.a
16064
  ln conftest.a conftest.b 2>&5 || hard_links=no
16065
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16066
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16067
echo "${ECHO_T}$hard_links" >&6; }
16068
  if test "$hard_links" = no; then
16069
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16070
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16071
    need_locks=warn
16072
  fi
16073
else
16074
  need_locks=no
16075
fi
16076
 
16077
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16078
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16079
 
16080
  runpath_var=
16081
  allow_undefined_flag_GCJ=
16082
  enable_shared_with_static_runtimes_GCJ=no
16083
  archive_cmds_GCJ=
16084
  archive_expsym_cmds_GCJ=
16085
  old_archive_From_new_cmds_GCJ=
16086
  old_archive_from_expsyms_cmds_GCJ=
16087
  export_dynamic_flag_spec_GCJ=
16088
  whole_archive_flag_spec_GCJ=
16089
  thread_safe_flag_spec_GCJ=
16090
  hardcode_libdir_flag_spec_GCJ=
16091
  hardcode_libdir_flag_spec_ld_GCJ=
16092
  hardcode_libdir_separator_GCJ=
16093
  hardcode_direct_GCJ=no
16094
  hardcode_minus_L_GCJ=no
16095
  hardcode_shlibpath_var_GCJ=unsupported
16096
  link_all_deplibs_GCJ=unknown
16097
  hardcode_automatic_GCJ=no
16098
  module_cmds_GCJ=
16099
  module_expsym_cmds_GCJ=
16100
  always_export_symbols_GCJ=no
16101
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16102
  # include_expsyms should be a list of space-separated symbols to be *always*
16103
  # included in the symbol list
16104
  include_expsyms_GCJ=
16105
  # exclude_expsyms can be an extended regexp of symbols to exclude
16106
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16107
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16108
  # as well as any symbol that contains `d'.
16109
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16110
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16111
  # platforms (ab)use it in PIC code, but their linkers get confused if
16112
  # the symbol is explicitly referenced.  Since portable code cannot
16113
  # rely on this symbol name, it's probably fine to never include it in
16114
  # preloaded symbol tables.
16115
  extract_expsyms_cmds=
16116
  # Just being paranoid about ensuring that cc_basename is set.
16117
  for cc_temp in $compiler""; do
16118
  case $cc_temp in
16119
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16120
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16121
    \-*) ;;
16122
    *) break;;
16123
  esac
16124
done
16125
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16126
 
16127
  case $host_os in
16128
  cygwin* | mingw* | pw32*)
16129
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16130
    # When not using gcc, we currently assume that we are using
16131
    # Microsoft Visual C++.
16132
    if test "$GCC" != yes; then
16133
      with_gnu_ld=no
16134
    fi
16135
    ;;
16136
  interix*)
16137
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16138
    with_gnu_ld=yes
16139
    ;;
16140
  openbsd*)
16141
    with_gnu_ld=no
16142
    ;;
16143
  esac
16144
 
16145
  ld_shlibs_GCJ=yes
16146
  if test "$with_gnu_ld" = yes; then
16147
    # If archive_cmds runs LD, not CC, wlarc should be empty
16148
    wlarc='${wl}'
16149
 
16150
    # Set some defaults for GNU ld with shared library support. These
16151
    # are reset later if shared libraries are not supported. Putting them
16152
    # here allows them to be overridden if necessary.
16153
    runpath_var=LD_RUN_PATH
16154
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16155
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16156
    # ancient GNU ld didn't support --whole-archive et. al.
16157
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16158
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16159
      else
16160
        whole_archive_flag_spec_GCJ=
16161
    fi
16162
    supports_anon_versioning=no
16163
    case `$LD -v 2>/dev/null` in
16164
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16165
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16166
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16167
      *\ 2.11.*) ;; # other 2.11 versions
16168
      *) supports_anon_versioning=yes ;;
16169
    esac
16170
 
16171
    # See if GNU ld supports shared libraries.
16172
    case $host_os in
16173
    aix3* | aix4* | aix5*)
16174
      # On AIX/PPC, the GNU linker is very broken
16175
      if test "$host_cpu" != ia64; then
16176
        ld_shlibs_GCJ=no
16177
        cat <&2
16178
 
16179
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16180
*** to be unable to reliably create shared libraries on AIX.
16181
*** Therefore, libtool is disabling shared libraries support.  If you
16182
*** really care for shared libraries, you may want to modify your PATH
16183
*** so that a non-GNU linker is found, and then restart.
16184
 
16185
EOF
16186
      fi
16187
      ;;
16188
 
16189
    amigaos*)
16190
      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)'
16191
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16192
      hardcode_minus_L_GCJ=yes
16193
 
16194
      # Samuel A. Falvo II  reports
16195
      # that the semantics of dynamic libraries on AmigaOS, at least up
16196
      # to version 4, is to share data among multiple programs linked
16197
      # with the same dynamic library.  Since this doesn't match the
16198
      # behavior of shared libraries on other platforms, we can't use
16199
      # them.
16200
      ld_shlibs_GCJ=no
16201
      ;;
16202
 
16203
    beos*)
16204
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16205
        allow_undefined_flag_GCJ=unsupported
16206
        # Joseph Beckenbach  says some releases of gcc
16207
        # support --undefined.  This deserves some investigation.  FIXME
16208
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209
      else
16210
        ld_shlibs_GCJ=no
16211
      fi
16212
      ;;
16213
 
16214
    cygwin* | mingw* | pw32*)
16215
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16216
      # as there is no search path for DLLs.
16217
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16218
      allow_undefined_flag_GCJ=unsupported
16219
      always_export_symbols_GCJ=no
16220
      enable_shared_with_static_runtimes_GCJ=yes
16221
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16222
 
16223
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16224
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16225
        # If the export-symbols file already is a .def file (1st line
16226
        # is EXPORTS), use it as is; otherwise, prepend...
16227
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16228
          cp $export_symbols $output_objdir/$soname.def;
16229
        else
16230
          echo EXPORTS > $output_objdir/$soname.def;
16231
          cat $export_symbols >> $output_objdir/$soname.def;
16232
        fi~
16233
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16234
      else
16235
        ld_shlibs_GCJ=no
16236
      fi
16237
      ;;
16238
 
16239
    interix[3-9]*)
16240
      hardcode_direct_GCJ=no
16241
      hardcode_shlibpath_var_GCJ=no
16242
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16243
      export_dynamic_flag_spec_GCJ='${wl}-E'
16244
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16245
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16246
      # default) and relocated if they conflict, which is a slow very memory
16247
      # consuming and fragmenting process.  To avoid this, we pick a random,
16248
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16249
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16250
      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'
16251
      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'
16252
      ;;
16253
 
16254
    gnu* | linux* | k*bsd*-gnu)
16255
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16256
        tmp_addflag=
16257
        case $cc_basename,$host_cpu in
16258
        pgcc*)                          # Portland Group C compiler
16259
          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'
16260
          tmp_addflag=' $pic_flag'
16261
          ;;
16262
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16263
          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'
16264
          tmp_addflag=' $pic_flag -Mnomain' ;;
16265
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16266
          tmp_addflag=' -i_dynamic' ;;
16267
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16268
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16269
        ifc* | ifort*)                  # Intel Fortran compiler
16270
          tmp_addflag=' -nofor_main' ;;
16271
        esac
16272
        case `$CC -V 2>&1 | sed 5q` in
16273
        *Sun\ C*)                       # Sun C 5.9
16274
          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'
16275
          tmp_sharedflag='-G' ;;
16276
        *Sun\ F*)                       # Sun Fortran 8.3
16277
          tmp_sharedflag='-G' ;;
16278
        *)
16279
          tmp_sharedflag='-shared' ;;
16280
        esac
16281
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16282
 
16283
        if test $supports_anon_versioning = yes; then
16284
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16285
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16286
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16287
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16288
        fi
16289
      else
16290
        ld_shlibs_GCJ=no
16291
      fi
16292
      ;;
16293
 
16294
    netbsd*)
16295
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16296
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16297
        wlarc=
16298
      else
16299
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16300
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16301
      fi
16302
      ;;
16303
 
16304
    solaris*)
16305
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16306
        ld_shlibs_GCJ=no
16307
        cat <&2
16308
 
16309
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16310
*** create shared libraries on Solaris systems.  Therefore, libtool
16311
*** is disabling shared libraries support.  We urge you to upgrade GNU
16312
*** binutils to release 2.9.1 or newer.  Another option is to modify
16313
*** your PATH or compiler configuration so that the native linker is
16314
*** used, and then restart.
16315
 
16316
EOF
16317
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16318
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16319
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16320
      else
16321
        ld_shlibs_GCJ=no
16322
      fi
16323
      ;;
16324
 
16325
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16326
      case `$LD -v 2>&1` in
16327
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16328
        ld_shlibs_GCJ=no
16329
        cat <<_LT_EOF 1>&2
16330
 
16331
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16332
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16333
*** is disabling shared libraries support.  We urge you to upgrade GNU
16334
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16335
*** your PATH or compiler configuration so that the native linker is
16336
*** used, and then restart.
16337
 
16338
_LT_EOF
16339
        ;;
16340
        *)
16341
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16342
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16343
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16344
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16345
          else
16346
            ld_shlibs_GCJ=no
16347
          fi
16348
        ;;
16349
      esac
16350
      ;;
16351
 
16352
    sunos4*)
16353
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354
      wlarc=
16355
      hardcode_direct_GCJ=yes
16356
      hardcode_shlibpath_var_GCJ=no
16357
      ;;
16358
 
16359
    *)
16360
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16361
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16363
      else
16364
        ld_shlibs_GCJ=no
16365
      fi
16366
      ;;
16367
    esac
16368
 
16369
    if test "$ld_shlibs_GCJ" = no; then
16370
      runpath_var=
16371
      hardcode_libdir_flag_spec_GCJ=
16372
      export_dynamic_flag_spec_GCJ=
16373
      whole_archive_flag_spec_GCJ=
16374
    fi
16375
  else
16376
    # PORTME fill in a description of your system's linker (not GNU ld)
16377
    case $host_os in
16378
    aix3*)
16379
      allow_undefined_flag_GCJ=unsupported
16380
      always_export_symbols_GCJ=yes
16381
      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'
16382
      # Note: this linker hardcodes the directories in LIBPATH if there
16383
      # are no directories specified by -L.
16384
      hardcode_minus_L_GCJ=yes
16385
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16386
        # Neither direct hardcoding nor static linking is supported with a
16387
        # broken collect2.
16388
        hardcode_direct_GCJ=unsupported
16389
      fi
16390
      ;;
16391
 
16392
    aix4* | aix5*)
16393
      if test "$host_cpu" = ia64; then
16394
        # On IA64, the linker does run time linking by default, so we don't
16395
        # have to do anything special.
16396
        aix_use_runtimelinking=no
16397
        exp_sym_flag='-Bexport'
16398
        no_entry_flag=""
16399
      else
16400
        # If we're using GNU nm, then we don't want the "-C" option.
16401
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16402
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16403
          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'
16404
        else
16405
          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'
16406
        fi
16407
        aix_use_runtimelinking=no
16408
 
16409
        # Test if we are trying to use run time linking or normal
16410
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16411
        # need to do runtime linking.
16412
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16413
          for ld_flag in $LDFLAGS; do
16414
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16415
            aix_use_runtimelinking=yes
16416
            break
16417
          fi
16418
          done
16419
          ;;
16420
        esac
16421
 
16422
        exp_sym_flag='-bexport'
16423
        no_entry_flag='-bnoentry'
16424
      fi
16425
 
16426
      # When large executables or shared objects are built, AIX ld can
16427
      # have problems creating the table of contents.  If linking a library
16428
      # or program results in "error TOC overflow" add -mminimal-toc to
16429
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16430
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16431
 
16432
      archive_cmds_GCJ=''
16433
      hardcode_direct_GCJ=yes
16434
      hardcode_libdir_separator_GCJ=':'
16435
      link_all_deplibs_GCJ=yes
16436
 
16437
      if test "$GCC" = yes; then
16438
        case $host_os in aix4.[012]|aix4.[012].*)
16439
        # We only want to do this on AIX 4.2 and lower, the check
16440
        # below for broken collect2 doesn't work under 4.3+
16441
          collect2name=`${CC} -print-prog-name=collect2`
16442
          if test -f "$collect2name" && \
16443
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16444
          then
16445
          # We have reworked collect2
16446
          :
16447
          else
16448
          # We have old collect2
16449
          hardcode_direct_GCJ=unsupported
16450
          # It fails to find uninstalled libraries when the uninstalled
16451
          # path is not listed in the libpath.  Setting hardcode_minus_L
16452
          # to unsupported forces relinking
16453
          hardcode_minus_L_GCJ=yes
16454
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16455
          hardcode_libdir_separator_GCJ=
16456
          fi
16457
          ;;
16458
        esac
16459
        shared_flag='-shared'
16460
        if test "$aix_use_runtimelinking" = yes; then
16461
          shared_flag="$shared_flag "'${wl}-G'
16462
        fi
16463
      else
16464
        # not using gcc
16465
        if test "$host_cpu" = ia64; then
16466
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16467
        # chokes on -Wl,-G. The following line is correct:
16468
          shared_flag='-G'
16469
        else
16470
          if test "$aix_use_runtimelinking" = yes; then
16471
            shared_flag='${wl}-G'
16472
          else
16473
            shared_flag='${wl}-bM:SRE'
16474
          fi
16475
        fi
16476
      fi
16477
 
16478
      # It seems that -bexpall does not export symbols beginning with
16479
      # underscore (_), so it is better to generate a list of symbols to export.
16480
      always_export_symbols_GCJ=yes
16481
      if test "$aix_use_runtimelinking" = yes; then
16482
        # Warning - without using the other runtime loading flags (-brtl),
16483
        # -berok will link without error, but may produce a broken library.
16484
        allow_undefined_flag_GCJ='-berok'
16485
       # Determine the default libpath from the value encoded in an empty executable.
16486
       cat >conftest.$ac_ext <<_ACEOF
16487
/* confdefs.h.  */
16488
_ACEOF
16489
cat confdefs.h >>conftest.$ac_ext
16490
cat >>conftest.$ac_ext <<_ACEOF
16491
/* end confdefs.h.  */
16492
 
16493
int
16494
main ()
16495
{
16496
 
16497
  ;
16498
  return 0;
16499
}
16500
_ACEOF
16501
rm -f conftest.$ac_objext conftest$ac_exeext
16502
if { (ac_try="$ac_link"
16503
case "(($ac_try" in
16504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505
  *) ac_try_echo=$ac_try;;
16506
esac
16507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508
  (eval "$ac_link") 2>conftest.er1
16509
  ac_status=$?
16510
  grep -v '^ *+' conftest.er1 >conftest.err
16511
  rm -f conftest.er1
16512
  cat conftest.err >&5
16513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514
  (exit $ac_status); } && {
16515
         test -z "$ac_c_werror_flag" ||
16516
         test ! -s conftest.err
16517
       } && test -s conftest$ac_exeext &&
16518
       $as_test_x conftest$ac_exeext; then
16519
 
16520
lt_aix_libpath_sed='
16521
    /Import File Strings/,/^$/ {
16522
        /^0/ {
16523
            s/^0  *\(.*\)$/\1/
16524
            p
16525
        }
16526
    }'
16527
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16528
# Check for a 64-bit object if we didn't find anything.
16529
if test -z "$aix_libpath"; then
16530
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16531
fi
16532
else
16533
  echo "$as_me: failed program was:" >&5
16534
sed 's/^/| /' conftest.$ac_ext >&5
16535
 
16536
 
16537
fi
16538
 
16539
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16540
      conftest$ac_exeext conftest.$ac_ext
16541
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16542
 
16543
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16544
        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"
16545
       else
16546
        if test "$host_cpu" = ia64; then
16547
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16548
          allow_undefined_flag_GCJ="-z nodefs"
16549
          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"
16550
        else
16551
         # Determine the default libpath from the value encoded in an empty executable.
16552
         cat >conftest.$ac_ext <<_ACEOF
16553
/* confdefs.h.  */
16554
_ACEOF
16555
cat confdefs.h >>conftest.$ac_ext
16556
cat >>conftest.$ac_ext <<_ACEOF
16557
/* end confdefs.h.  */
16558
 
16559
int
16560
main ()
16561
{
16562
 
16563
  ;
16564
  return 0;
16565
}
16566
_ACEOF
16567
rm -f conftest.$ac_objext conftest$ac_exeext
16568
if { (ac_try="$ac_link"
16569
case "(($ac_try" in
16570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571
  *) ac_try_echo=$ac_try;;
16572
esac
16573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574
  (eval "$ac_link") 2>conftest.er1
16575
  ac_status=$?
16576
  grep -v '^ *+' conftest.er1 >conftest.err
16577
  rm -f conftest.er1
16578
  cat conftest.err >&5
16579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580
  (exit $ac_status); } && {
16581
         test -z "$ac_c_werror_flag" ||
16582
         test ! -s conftest.err
16583
       } && test -s conftest$ac_exeext &&
16584
       $as_test_x conftest$ac_exeext; then
16585
 
16586
lt_aix_libpath_sed='
16587
    /Import File Strings/,/^$/ {
16588
        /^0/ {
16589
            s/^0  *\(.*\)$/\1/
16590
            p
16591
        }
16592
    }'
16593
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16594
# Check for a 64-bit object if we didn't find anything.
16595
if test -z "$aix_libpath"; then
16596
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16597
fi
16598
else
16599
  echo "$as_me: failed program was:" >&5
16600
sed 's/^/| /' conftest.$ac_ext >&5
16601
 
16602
 
16603
fi
16604
 
16605
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16606
      conftest$ac_exeext conftest.$ac_ext
16607
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16608
 
16609
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16610
          # Warning - without using the other run time loading flags,
16611
          # -berok will link without error, but may produce a broken library.
16612
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16613
          allow_undefined_flag_GCJ=' ${wl}-berok'
16614
          # Exported symbols can be pulled into shared objects from archives
16615
          whole_archive_flag_spec_GCJ='$convenience'
16616
          archive_cmds_need_lc_GCJ=yes
16617
          # This is similar to how AIX traditionally builds its shared libraries.
16618
          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'
16619
        fi
16620
      fi
16621
      ;;
16622
 
16623
    amigaos*)
16624
      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)'
16625
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626
      hardcode_minus_L_GCJ=yes
16627
      # see comment about different semantics on the GNU ld section
16628
      ld_shlibs_GCJ=no
16629
      ;;
16630
 
16631
    bsdi[45]*)
16632
      export_dynamic_flag_spec_GCJ=-rdynamic
16633
      ;;
16634
 
16635
    cygwin* | mingw* | pw32*)
16636
      # When not using gcc, we currently assume that we are using
16637
      # Microsoft Visual C++.
16638
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16639
      # no search path for DLLs.
16640
      hardcode_libdir_flag_spec_GCJ=' '
16641
      allow_undefined_flag_GCJ=unsupported
16642
      # Tell ltmain to make .lib files, not .a files.
16643
      libext=lib
16644
      # Tell ltmain to make .dll files, not .so files.
16645
      shrext_cmds=".dll"
16646
      # FIXME: Setting linknames here is a bad hack.
16647
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16648
      # The linker will automatically build a .lib file if we build a DLL.
16649
      old_archive_From_new_cmds_GCJ='true'
16650
      # FIXME: Should let the user specify the lib program.
16651
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16652
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16653
      enable_shared_with_static_runtimes_GCJ=yes
16654
      ;;
16655
 
16656
    darwin* | rhapsody*)
16657
      case $host_os in
16658
        rhapsody* | darwin1.[012])
16659
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16660
         ;;
16661
       *) # Darwin 1.3 on
16662
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16663
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16664
         else
16665
           case ${MACOSX_DEPLOYMENT_TARGET} in
16666
             10.[012])
16667
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16668
               ;;
16669
             10.*)
16670
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16671
               ;;
16672
           esac
16673
         fi
16674
         ;;
16675
      esac
16676
      archive_cmds_need_lc_GCJ=no
16677
      hardcode_direct_GCJ=no
16678
      hardcode_automatic_GCJ=yes
16679
      hardcode_shlibpath_var_GCJ=unsupported
16680
      whole_archive_flag_spec_GCJ=''
16681
      link_all_deplibs_GCJ=yes
16682
    if test "$GCC" = yes ; then
16683
        output_verbose_link_cmd='echo'
16684
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16685
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16686
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16687
      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}'
16688
      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}'
16689
    else
16690
      case $cc_basename in
16691
        xlc*)
16692
         output_verbose_link_cmd='echo'
16693
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16694
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16695
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16696
         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}'
16697
          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}'
16698
          ;;
16699
       *)
16700
         ld_shlibs_GCJ=no
16701
          ;;
16702
      esac
16703
    fi
16704
      ;;
16705
 
16706
    dgux*)
16707
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16708
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16709
      hardcode_shlibpath_var_GCJ=no
16710
      ;;
16711
 
16712
    freebsd1*)
16713
      ld_shlibs_GCJ=no
16714
      ;;
16715
 
16716
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16717
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16718
    # does not break anything, and helps significantly (at the cost of a little
16719
    # extra space).
16720
    freebsd2.2*)
16721
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16722
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16723
      hardcode_direct_GCJ=yes
16724
      hardcode_shlibpath_var_GCJ=no
16725
      ;;
16726
 
16727
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16728
    freebsd2*)
16729
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16730
      hardcode_direct_GCJ=yes
16731
      hardcode_minus_L_GCJ=yes
16732
      hardcode_shlibpath_var_GCJ=no
16733
      ;;
16734
 
16735
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16736
    freebsd* | dragonfly*)
16737
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16738
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16739
      hardcode_direct_GCJ=yes
16740
      hardcode_shlibpath_var_GCJ=no
16741
      ;;
16742
 
16743
    hpux9*)
16744
      if test "$GCC" = yes; then
16745
        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'
16746
      else
16747
        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'
16748
      fi
16749
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16750
      hardcode_libdir_separator_GCJ=:
16751
      hardcode_direct_GCJ=yes
16752
 
16753
      # hardcode_minus_L: Not really in the search PATH,
16754
      # but as the default location of the library.
16755
      hardcode_minus_L_GCJ=yes
16756
      export_dynamic_flag_spec_GCJ='${wl}-E'
16757
      ;;
16758
 
16759
    hpux10*)
16760
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16761
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16762
      else
16763
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16764
      fi
16765
      if test "$with_gnu_ld" = no; then
16766
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16767
        hardcode_libdir_separator_GCJ=:
16768
 
16769
        hardcode_direct_GCJ=yes
16770
        export_dynamic_flag_spec_GCJ='${wl}-E'
16771
 
16772
        # hardcode_minus_L: Not really in the search PATH,
16773
        # but as the default location of the library.
16774
        hardcode_minus_L_GCJ=yes
16775
      fi
16776
      ;;
16777
 
16778
    hpux11*)
16779
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16780
        case $host_cpu in
16781
        hppa*64*)
16782
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16783
          ;;
16784
        ia64*)
16785
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16786
          ;;
16787
        *)
16788
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16789
          ;;
16790
        esac
16791
      else
16792
        case $host_cpu in
16793
        hppa*64*)
16794
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795
          ;;
16796
        ia64*)
16797
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16798
          ;;
16799
        *)
16800
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16801
          ;;
16802
        esac
16803
      fi
16804
      if test "$with_gnu_ld" = no; then
16805
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16806
        hardcode_libdir_separator_GCJ=:
16807
 
16808
        case $host_cpu in
16809
        hppa*64*|ia64*)
16810
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16811
          hardcode_direct_GCJ=no
16812
          hardcode_shlibpath_var_GCJ=no
16813
          ;;
16814
        *)
16815
          hardcode_direct_GCJ=yes
16816
          export_dynamic_flag_spec_GCJ='${wl}-E'
16817
 
16818
          # hardcode_minus_L: Not really in the search PATH,
16819
          # but as the default location of the library.
16820
          hardcode_minus_L_GCJ=yes
16821
          ;;
16822
        esac
16823
      fi
16824
      ;;
16825
 
16826
    irix5* | irix6* | nonstopux*)
16827
      if test "$GCC" = yes; then
16828
        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'
16829
      else
16830
        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'
16831
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16832
      fi
16833
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16834
      hardcode_libdir_separator_GCJ=:
16835
      link_all_deplibs_GCJ=yes
16836
      ;;
16837
 
16838
    netbsd*)
16839
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16840
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16841
      else
16842
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16843
      fi
16844
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16845
      hardcode_direct_GCJ=yes
16846
      hardcode_shlibpath_var_GCJ=no
16847
      ;;
16848
 
16849
    newsos6)
16850
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16851
      hardcode_direct_GCJ=yes
16852
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16853
      hardcode_libdir_separator_GCJ=:
16854
      hardcode_shlibpath_var_GCJ=no
16855
      ;;
16856
 
16857
    openbsd*)
16858
      if test -f /usr/libexec/ld.so; then
16859
        hardcode_direct_GCJ=yes
16860
        hardcode_shlibpath_var_GCJ=no
16861
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16862
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16863
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16864
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16865
          export_dynamic_flag_spec_GCJ='${wl}-E'
16866
        else
16867
          case $host_os in
16868
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16869
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16870
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
16871
             ;;
16872
           *)
16873
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16874
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16875
             ;;
16876
          esac
16877
        fi
16878
      else
16879
        ld_shlibs_GCJ=no
16880
      fi
16881
      ;;
16882
 
16883
    os2*)
16884
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16885
      hardcode_minus_L_GCJ=yes
16886
      allow_undefined_flag_GCJ=unsupported
16887
      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'
16888
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16889
      ;;
16890
 
16891
    osf3*)
16892
      if test "$GCC" = yes; then
16893
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16894
        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'
16895
      else
16896
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16897
        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'
16898
      fi
16899
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16900
      hardcode_libdir_separator_GCJ=:
16901
      ;;
16902
 
16903
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16904
      if test "$GCC" = yes; then
16905
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16906
        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'
16907
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16908
      else
16909
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16910
        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'
16911
        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~
16912
        $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'
16913
 
16914
        # Both c and cxx compiler support -rpath directly
16915
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16916
      fi
16917
      hardcode_libdir_separator_GCJ=:
16918
      ;;
16919
 
16920
    solaris*)
16921
      no_undefined_flag_GCJ=' -z text'
16922
      if test "$GCC" = yes; then
16923
        wlarc='${wl}'
16924
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16925
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16926
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16927
      else
16928
        wlarc=''
16929
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16930
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16931
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16932
      fi
16933
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16934
      hardcode_shlibpath_var_GCJ=no
16935
      case $host_os in
16936
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16937
      *)
16938
        # The compiler driver will combine and reorder linker options,
16939
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
16940
        # but is careful enough not to reorder.
16941
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16942
        if test "$GCC" = yes; then
16943
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16944
        else
16945
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16946
        fi
16947
        ;;
16948
      esac
16949
      link_all_deplibs_GCJ=yes
16950
      ;;
16951
 
16952
    sunos4*)
16953
      if test "x$host_vendor" = xsequent; then
16954
        # Use $CC to link under sequent, because it throws in some extra .o
16955
        # files that make .init and .fini sections work.
16956
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16957
      else
16958
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16959
      fi
16960
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961
      hardcode_direct_GCJ=yes
16962
      hardcode_minus_L_GCJ=yes
16963
      hardcode_shlibpath_var_GCJ=no
16964
      ;;
16965
 
16966
    sysv4)
16967
      case $host_vendor in
16968
        sni)
16969
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970
          hardcode_direct_GCJ=yes # is this really true???
16971
        ;;
16972
        siemens)
16973
          ## LD is ld it makes a PLAMLIB
16974
          ## CC just makes a GrossModule.
16975
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16976
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16977
          hardcode_direct_GCJ=no
16978
        ;;
16979
        motorola)
16980
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16981
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16982
        ;;
16983
      esac
16984
      runpath_var='LD_RUN_PATH'
16985
      hardcode_shlibpath_var_GCJ=no
16986
      ;;
16987
 
16988
    sysv4.3*)
16989
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16990
      hardcode_shlibpath_var_GCJ=no
16991
      export_dynamic_flag_spec_GCJ='-Bexport'
16992
      ;;
16993
 
16994
    sysv4*MP*)
16995
      if test -d /usr/nec; then
16996
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16997
        hardcode_shlibpath_var_GCJ=no
16998
        runpath_var=LD_RUN_PATH
16999
        hardcode_runpath_var=yes
17000
        ld_shlibs_GCJ=yes
17001
      fi
17002
      ;;
17003
 
17004
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17005
      no_undefined_flag_GCJ='${wl}-z,text'
17006
      archive_cmds_need_lc_GCJ=no
17007
      hardcode_shlibpath_var_GCJ=no
17008
      runpath_var='LD_RUN_PATH'
17009
 
17010
      if test "$GCC" = yes; then
17011
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17012
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17013
      else
17014
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17015
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17016
      fi
17017
      ;;
17018
 
17019
    sysv5* | sco3.2v5* | sco5v6*)
17020
      # Note: We can NOT use -z defs as we might desire, because we do not
17021
      # link with -lc, and that would cause any symbols used from libc to
17022
      # always be unresolved, which means just about no library would
17023
      # ever link correctly.  If we're not using GNU ld we use -z text
17024
      # though, which does catch some bad symbols but isn't as heavy-handed
17025
      # as -z defs.
17026
      no_undefined_flag_GCJ='${wl}-z,text'
17027
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17028
      archive_cmds_need_lc_GCJ=no
17029
      hardcode_shlibpath_var_GCJ=no
17030
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17031
      hardcode_libdir_separator_GCJ=':'
17032
      link_all_deplibs_GCJ=yes
17033
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17034
      runpath_var='LD_RUN_PATH'
17035
 
17036
      if test "$GCC" = yes; then
17037
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17038
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17039
      else
17040
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17041
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17042
      fi
17043
      ;;
17044
 
17045
    uts4*)
17046
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17047
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17048
      hardcode_shlibpath_var_GCJ=no
17049
      ;;
17050
 
17051
    *)
17052
      ld_shlibs_GCJ=no
17053
      ;;
17054
    esac
17055
  fi
17056
 
17057
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17058
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17059
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17060
 
17061
#
17062
# Do we need to explicitly link libc?
17063
#
17064
case "x$archive_cmds_need_lc_GCJ" in
17065
x|xyes)
17066
  # Assume -lc should be added
17067
  archive_cmds_need_lc_GCJ=yes
17068
 
17069
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17070
    case $archive_cmds_GCJ in
17071
    *'~'*)
17072
      # FIXME: we may have to deal with multi-command sequences.
17073
      ;;
17074
    '$CC '*)
17075
      # Test whether the compiler implicitly links with -lc since on some
17076
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17077
      # to ld, don't add -lc before -lgcc.
17078
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17079
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17080
      $rm conftest*
17081
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17082
 
17083
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084
  (eval $ac_compile) 2>&5
17085
  ac_status=$?
17086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087
  (exit $ac_status); } 2>conftest.err; then
17088
        soname=conftest
17089
        lib=conftest
17090
        libobjs=conftest.$ac_objext
17091
        deplibs=
17092
        wl=$lt_prog_compiler_wl_GCJ
17093
        pic_flag=$lt_prog_compiler_pic_GCJ
17094
        compiler_flags=-v
17095
        linker_flags=-v
17096
        verstring=
17097
        output_objdir=.
17098
        libname=conftest
17099
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17100
        allow_undefined_flag_GCJ=
17101
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17102
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17103
  ac_status=$?
17104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105
  (exit $ac_status); }
17106
        then
17107
          archive_cmds_need_lc_GCJ=no
17108
        else
17109
          archive_cmds_need_lc_GCJ=yes
17110
        fi
17111
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17112
      else
17113
        cat conftest.err 1>&5
17114
      fi
17115
      $rm conftest*
17116
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17117
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17118
      ;;
17119
    esac
17120
  fi
17121
  ;;
17122
esac
17123
 
17124
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17125
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17126
library_names_spec=
17127
libname_spec='lib$name'
17128
soname_spec=
17129
shrext_cmds=".so"
17130
postinstall_cmds=
17131
postuninstall_cmds=
17132
finish_cmds=
17133
finish_eval=
17134
shlibpath_var=
17135
shlibpath_overrides_runpath=unknown
17136
version_type=none
17137
dynamic_linker="$host_os ld.so"
17138
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17139
 
17140
need_lib_prefix=unknown
17141
hardcode_into_libs=no
17142
 
17143
# when you set need_version to no, make sure it does not cause -set_version
17144
# flags to be left without arguments
17145
need_version=unknown
17146
 
17147
case $host_os in
17148
aix3*)
17149
  version_type=linux
17150
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17151
  shlibpath_var=LIBPATH
17152
 
17153
  # AIX 3 has no versioning support, so we append a major version to the name.
17154
  soname_spec='${libname}${release}${shared_ext}$major'
17155
  ;;
17156
 
17157
aix4* | aix5*)
17158
  version_type=linux
17159
  need_lib_prefix=no
17160
  need_version=no
17161
  hardcode_into_libs=yes
17162
  if test "$host_cpu" = ia64; then
17163
    # AIX 5 supports IA64
17164
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17165
    shlibpath_var=LD_LIBRARY_PATH
17166
  else
17167
    # With GCC up to 2.95.x, collect2 would create an import file
17168
    # for dependence libraries.  The import file would start with
17169
    # the line `#! .'.  This would cause the generated library to
17170
    # depend on `.', always an invalid library.  This was fixed in
17171
    # development snapshots of GCC prior to 3.0.
17172
    case $host_os in
17173
      aix4 | aix4.[01] | aix4.[01].*)
17174
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17175
           echo ' yes '
17176
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17177
        :
17178
      else
17179
        can_build_shared=no
17180
      fi
17181
      ;;
17182
    esac
17183
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17184
    # soname into executable. Probably we can add versioning support to
17185
    # collect2, so additional links can be useful in future.
17186
    if test "$aix_use_runtimelinking" = yes; then
17187
      # If using run time linking (on AIX 4.2 or later) use lib.so
17188
      # instead of lib.a to let people know that these are not
17189
      # typical AIX shared libraries.
17190
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191
    else
17192
      # We preserve .a as extension for shared libraries through AIX4.2
17193
      # and later when we are not doing run time linking.
17194
      library_names_spec='${libname}${release}.a $libname.a'
17195
      soname_spec='${libname}${release}${shared_ext}$major'
17196
    fi
17197
    shlibpath_var=LIBPATH
17198
  fi
17199
  ;;
17200
 
17201
amigaos*)
17202
  library_names_spec='$libname.ixlibrary $libname.a'
17203
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17204
  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'
17205
  ;;
17206
 
17207
beos*)
17208
  library_names_spec='${libname}${shared_ext}'
17209
  dynamic_linker="$host_os ld.so"
17210
  shlibpath_var=LIBRARY_PATH
17211
  ;;
17212
 
17213
bsdi[45]*)
17214
  version_type=linux
17215
  need_version=no
17216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217
  soname_spec='${libname}${release}${shared_ext}$major'
17218
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17219
  shlibpath_var=LD_LIBRARY_PATH
17220
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17221
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17222
  # the default ld.so.conf also contains /usr/contrib/lib and
17223
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17224
  # libtool to hard-code these into programs
17225
  ;;
17226
 
17227
cygwin* | mingw* | pw32*)
17228
  version_type=windows
17229
  shrext_cmds=".dll"
17230
  need_version=no
17231
  need_lib_prefix=no
17232
 
17233
  case $GCC,$host_os in
17234
  yes,cygwin* | yes,mingw* | yes,pw32*)
17235
    library_names_spec='$libname.dll.a'
17236
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17237
    postinstall_cmds='base_file=`basename \${file}`~
17238
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17239
      dldir=$destdir/`dirname \$dlpath`~
17240
      test -d \$dldir || mkdir -p \$dldir~
17241
      $install_prog $dir/$dlname \$dldir/$dlname~
17242
      chmod a+x \$dldir/$dlname'
17243
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17244
      dlpath=$dir/\$dldll~
17245
       $rm \$dlpath'
17246
    shlibpath_overrides_runpath=yes
17247
 
17248
    case $host_os in
17249
    cygwin*)
17250
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17251
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17252
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17253
      ;;
17254
    mingw*)
17255
      # MinGW DLLs use traditional 'lib' prefix
17256
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17257
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17258
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17259
        # It is most probably a Windows format PATH printed by
17260
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17261
        # path with ; separators, and with drive letters. We can handle the
17262
        # drive letters (cygwin fileutils understands them), so leave them,
17263
        # especially as we might pass files found there to a mingw objdump,
17264
        # which wouldn't understand a cygwinified path. Ahh.
17265
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17266
      else
17267
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17268
      fi
17269
      ;;
17270
    pw32*)
17271
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17272
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17273
      ;;
17274
    esac
17275
    ;;
17276
 
17277
  *)
17278
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17279
    ;;
17280
  esac
17281
  dynamic_linker='Win32 ld.exe'
17282
  # FIXME: first we should search . and the directory the executable is in
17283
  shlibpath_var=PATH
17284
  ;;
17285
 
17286
darwin* | rhapsody*)
17287
  dynamic_linker="$host_os dyld"
17288
  version_type=darwin
17289
  need_lib_prefix=no
17290
  need_version=no
17291
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17292
  soname_spec='${libname}${release}${major}$shared_ext'
17293
  shlibpath_overrides_runpath=yes
17294
  shlibpath_var=DYLD_LIBRARY_PATH
17295
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17296
 
17297
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17298
  ;;
17299
 
17300
dgux*)
17301
  version_type=linux
17302
  need_lib_prefix=no
17303
  need_version=no
17304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17305
  soname_spec='${libname}${release}${shared_ext}$major'
17306
  shlibpath_var=LD_LIBRARY_PATH
17307
  ;;
17308
 
17309
freebsd1*)
17310
  dynamic_linker=no
17311
  ;;
17312
 
17313
freebsd* | dragonfly*)
17314
  # DragonFly does not have aout.  When/if they implement a new
17315
  # versioning mechanism, adjust this.
17316
  if test -x /usr/bin/objformat; then
17317
    objformat=`/usr/bin/objformat`
17318
  else
17319
    case $host_os in
17320
    freebsd[123]*) objformat=aout ;;
17321
    *) objformat=elf ;;
17322
    esac
17323
  fi
17324
  version_type=freebsd-$objformat
17325
  case $version_type in
17326
    freebsd-elf*)
17327
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17328
      need_version=no
17329
      need_lib_prefix=no
17330
      ;;
17331
    freebsd-*)
17332
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17333
      need_version=yes
17334
      ;;
17335
  esac
17336
  shlibpath_var=LD_LIBRARY_PATH
17337
  case $host_os in
17338
  freebsd2*)
17339
    shlibpath_overrides_runpath=yes
17340
    ;;
17341
  freebsd3.[01]* | freebsdelf3.[01]*)
17342
    shlibpath_overrides_runpath=yes
17343
    hardcode_into_libs=yes
17344
    ;;
17345
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17346
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17347
    shlibpath_overrides_runpath=no
17348
    hardcode_into_libs=yes
17349
    ;;
17350
  *) # from 4.6 on, and DragonFly
17351
    shlibpath_overrides_runpath=yes
17352
    hardcode_into_libs=yes
17353
    ;;
17354
  esac
17355
  ;;
17356
 
17357
gnu*)
17358
  version_type=linux
17359
  need_lib_prefix=no
17360
  need_version=no
17361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17362
  soname_spec='${libname}${release}${shared_ext}$major'
17363
  shlibpath_var=LD_LIBRARY_PATH
17364
  hardcode_into_libs=yes
17365
  ;;
17366
 
17367
hpux9* | hpux10* | hpux11*)
17368
  # Give a soname corresponding to the major version so that dld.sl refuses to
17369
  # link against other versions.
17370
  version_type=sunos
17371
  need_lib_prefix=no
17372
  need_version=no
17373
  case $host_cpu in
17374
  ia64*)
17375
    shrext_cmds='.so'
17376
    hardcode_into_libs=yes
17377
    dynamic_linker="$host_os dld.so"
17378
    shlibpath_var=LD_LIBRARY_PATH
17379
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17380
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381
    soname_spec='${libname}${release}${shared_ext}$major'
17382
    if test "X$HPUX_IA64_MODE" = X32; then
17383
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17384
    else
17385
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17386
    fi
17387
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17388
    ;;
17389
   hppa*64*)
17390
     shrext_cmds='.sl'
17391
     hardcode_into_libs=yes
17392
     dynamic_linker="$host_os dld.sl"
17393
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17394
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17395
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396
     soname_spec='${libname}${release}${shared_ext}$major'
17397
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17398
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17399
     ;;
17400
   *)
17401
    shrext_cmds='.sl'
17402
    dynamic_linker="$host_os dld.sl"
17403
    shlibpath_var=SHLIB_PATH
17404
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17405
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406
    soname_spec='${libname}${release}${shared_ext}$major'
17407
    ;;
17408
  esac
17409
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17410
  postinstall_cmds='chmod 555 $lib'
17411
  ;;
17412
 
17413
interix[3-9]*)
17414
  version_type=linux
17415
  need_lib_prefix=no
17416
  need_version=no
17417
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418
  soname_spec='${libname}${release}${shared_ext}$major'
17419
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17420
  shlibpath_var=LD_LIBRARY_PATH
17421
  shlibpath_overrides_runpath=no
17422
  hardcode_into_libs=yes
17423
  ;;
17424
 
17425
irix5* | irix6* | nonstopux*)
17426
  case $host_os in
17427
    nonstopux*) version_type=nonstopux ;;
17428
    *)
17429
        if test "$lt_cv_prog_gnu_ld" = yes; then
17430
                version_type=linux
17431
        else
17432
                version_type=irix
17433
        fi ;;
17434
  esac
17435
  need_lib_prefix=no
17436
  need_version=no
17437
  soname_spec='${libname}${release}${shared_ext}$major'
17438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17439
  case $host_os in
17440
  irix5* | nonstopux*)
17441
    libsuff= shlibsuff=
17442
    ;;
17443
  *)
17444
    case $LD in # libtool.m4 will add one of these switches to LD
17445
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17446
      libsuff= shlibsuff= libmagic=32-bit;;
17447
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17448
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17449
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17450
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17451
    *) libsuff= shlibsuff= libmagic=never-match;;
17452
    esac
17453
    ;;
17454
  esac
17455
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17456
  shlibpath_overrides_runpath=no
17457
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17458
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17459
  hardcode_into_libs=yes
17460
  ;;
17461
 
17462
# No shared lib support for Linux oldld, aout, or coff.
17463
linux*oldld* | linux*aout* | linux*coff*)
17464
  dynamic_linker=no
17465
  ;;
17466
 
17467
# This must be Linux ELF.
17468
linux* | k*bsd*-gnu)
17469
  version_type=linux
17470
  need_lib_prefix=no
17471
  need_version=no
17472
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473
  soname_spec='${libname}${release}${shared_ext}$major'
17474
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17475
  shlibpath_var=LD_LIBRARY_PATH
17476
  shlibpath_overrides_runpath=no
17477
  # This implies no fast_install, which is unacceptable.
17478
  # Some rework will be needed to allow for fast_install
17479
  # before this can be enabled.
17480
  hardcode_into_libs=yes
17481
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17482
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17483
 
17484
  # Append ld.so.conf contents to the search path
17485
  if test -f /etc/ld.so.conf; then
17486
    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' ' '`
17487
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17488
  fi
17489
 
17490
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17491
  # powerpc, because MkLinux only supported shared libraries with the
17492
  # GNU dynamic linker.  Since this was broken with cross compilers,
17493
  # most powerpc-linux boxes support dynamic linking these days and
17494
  # people can always --disable-shared, the test was removed, and we
17495
  # assume the GNU/Linux dynamic linker is in use.
17496
  dynamic_linker='GNU/Linux ld.so'
17497
  ;;
17498
 
17499
netbsd*)
17500
  version_type=sunos
17501
  need_lib_prefix=no
17502
  need_version=no
17503
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17504
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17505
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17506
    dynamic_linker='NetBSD (a.out) ld.so'
17507
  else
17508
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17509
    soname_spec='${libname}${release}${shared_ext}$major'
17510
    dynamic_linker='NetBSD ld.elf_so'
17511
  fi
17512
  shlibpath_var=LD_LIBRARY_PATH
17513
  shlibpath_overrides_runpath=yes
17514
  hardcode_into_libs=yes
17515
  ;;
17516
 
17517
newsos6)
17518
  version_type=linux
17519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520
  shlibpath_var=LD_LIBRARY_PATH
17521
  shlibpath_overrides_runpath=yes
17522
  ;;
17523
 
17524
nto-qnx*)
17525
  version_type=linux
17526
  need_lib_prefix=no
17527
  need_version=no
17528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529
  soname_spec='${libname}${release}${shared_ext}$major'
17530
  shlibpath_var=LD_LIBRARY_PATH
17531
  shlibpath_overrides_runpath=yes
17532
  ;;
17533
 
17534
openbsd*)
17535
  version_type=sunos
17536
  sys_lib_dlsearch_path_spec="/usr/lib"
17537
  need_lib_prefix=no
17538
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17539
  case $host_os in
17540
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17541
    *)                         need_version=no  ;;
17542
  esac
17543
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17544
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17545
  shlibpath_var=LD_LIBRARY_PATH
17546
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17547
    case $host_os in
17548
      openbsd2.[89] | openbsd2.[89].*)
17549
        shlibpath_overrides_runpath=no
17550
        ;;
17551
      *)
17552
        shlibpath_overrides_runpath=yes
17553
        ;;
17554
      esac
17555
  else
17556
    shlibpath_overrides_runpath=yes
17557
  fi
17558
  ;;
17559
 
17560
os2*)
17561
  libname_spec='$name'
17562
  shrext_cmds=".dll"
17563
  need_lib_prefix=no
17564
  library_names_spec='$libname${shared_ext} $libname.a'
17565
  dynamic_linker='OS/2 ld.exe'
17566
  shlibpath_var=LIBPATH
17567
  ;;
17568
 
17569
osf3* | osf4* | osf5*)
17570
  version_type=osf
17571
  need_lib_prefix=no
17572
  need_version=no
17573
  soname_spec='${libname}${release}${shared_ext}$major'
17574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575
  shlibpath_var=LD_LIBRARY_PATH
17576
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17577
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17578
  ;;
17579
 
17580
rdos*)
17581
  dynamic_linker=no
17582
  ;;
17583
 
17584
solaris*)
17585
  version_type=linux
17586
  need_lib_prefix=no
17587
  need_version=no
17588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589
  soname_spec='${libname}${release}${shared_ext}$major'
17590
  shlibpath_var=LD_LIBRARY_PATH
17591
  shlibpath_overrides_runpath=yes
17592
  hardcode_into_libs=yes
17593
  # ldd complains unless libraries are executable
17594
  postinstall_cmds='chmod +x $lib'
17595
  ;;
17596
 
17597
sunos4*)
17598
  version_type=sunos
17599
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17600
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17601
  shlibpath_var=LD_LIBRARY_PATH
17602
  shlibpath_overrides_runpath=yes
17603
  if test "$with_gnu_ld" = yes; then
17604
    need_lib_prefix=no
17605
  fi
17606
  need_version=yes
17607
  ;;
17608
 
17609
sysv4 | sysv4.3*)
17610
  version_type=linux
17611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612
  soname_spec='${libname}${release}${shared_ext}$major'
17613
  shlibpath_var=LD_LIBRARY_PATH
17614
  case $host_vendor in
17615
    sni)
17616
      shlibpath_overrides_runpath=no
17617
      need_lib_prefix=no
17618
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17619
      runpath_var=LD_RUN_PATH
17620
      ;;
17621
    siemens)
17622
      need_lib_prefix=no
17623
      ;;
17624
    motorola)
17625
      need_lib_prefix=no
17626
      need_version=no
17627
      shlibpath_overrides_runpath=no
17628
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17629
      ;;
17630
  esac
17631
  ;;
17632
 
17633
sysv4*MP*)
17634
  if test -d /usr/nec ;then
17635
    version_type=linux
17636
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17637
    soname_spec='$libname${shared_ext}.$major'
17638
    shlibpath_var=LD_LIBRARY_PATH
17639
  fi
17640
  ;;
17641
 
17642
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17643
  version_type=freebsd-elf
17644
  need_lib_prefix=no
17645
  need_version=no
17646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17647
  soname_spec='${libname}${release}${shared_ext}$major'
17648
  shlibpath_var=LD_LIBRARY_PATH
17649
  hardcode_into_libs=yes
17650
  if test "$with_gnu_ld" = yes; then
17651
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17652
    shlibpath_overrides_runpath=no
17653
  else
17654
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17655
    shlibpath_overrides_runpath=yes
17656
    case $host_os in
17657
      sco3.2v5*)
17658
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17659
        ;;
17660
    esac
17661
  fi
17662
  sys_lib_dlsearch_path_spec='/usr/lib'
17663
  ;;
17664
 
17665
uts4*)
17666
  version_type=linux
17667
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668
  soname_spec='${libname}${release}${shared_ext}$major'
17669
  shlibpath_var=LD_LIBRARY_PATH
17670
  ;;
17671
 
17672
*)
17673
  dynamic_linker=no
17674
  ;;
17675
esac
17676
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17677
echo "${ECHO_T}$dynamic_linker" >&6; }
17678
test "$dynamic_linker" = no && can_build_shared=no
17679
 
17680
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17681
if test "$GCC" = yes; then
17682
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17683
fi
17684
 
17685
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17686
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17687
hardcode_action_GCJ=
17688
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17689
   test -n "$runpath_var_GCJ" || \
17690
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17691
 
17692
  # We can hardcode non-existant directories.
17693
  if test "$hardcode_direct_GCJ" != no &&
17694
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17695
     # have to relink, otherwise we might link with an installed library
17696
     # when we should be linking with a yet-to-be-installed one
17697
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17698
     test "$hardcode_minus_L_GCJ" != no; then
17699
    # Linking always hardcodes the temporary library directory.
17700
    hardcode_action_GCJ=relink
17701
  else
17702
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17703
    hardcode_action_GCJ=immediate
17704
  fi
17705
else
17706
  # We cannot hardcode anything, or else we can only hardcode existing
17707
  # directories.
17708
  hardcode_action_GCJ=unsupported
17709
fi
17710
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17711
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17712
 
17713
if test "$hardcode_action_GCJ" = relink; then
17714
  # Fast installation is not supported
17715
  enable_fast_install=no
17716
elif test "$shlibpath_overrides_runpath" = yes ||
17717
     test "$enable_shared" = no; then
17718
  # Fast installation is not necessary
17719
  enable_fast_install=needless
17720
fi
17721
 
17722
 
17723
# The else clause should only fire when bootstrapping the
17724
# libtool distribution, otherwise you forgot to ship ltmain.sh
17725
# with your package, and you will get complaints that there are
17726
# no rules to generate ltmain.sh.
17727
if test -f "$ltmain"; then
17728
  # See if we are running on zsh, and set the options which allow our commands through
17729
  # without removal of \ escapes.
17730
  if test -n "${ZSH_VERSION+set}" ; then
17731
    setopt NO_GLOB_SUBST
17732
  fi
17733
  # Now quote all the things that may contain metacharacters while being
17734
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17735
  # variables and quote the copies for generation of the libtool script.
17736
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17737
    SED SHELL STRIP \
17738
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17739
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17740
    deplibs_check_method reload_flag reload_cmds need_locks \
17741
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17742
    lt_cv_sys_global_symbol_to_c_name_address \
17743
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17744
    old_postinstall_cmds old_postuninstall_cmds \
17745
    compiler_GCJ \
17746
    CC_GCJ \
17747
    LD_GCJ \
17748
    lt_prog_compiler_wl_GCJ \
17749
    lt_prog_compiler_pic_GCJ \
17750
    lt_prog_compiler_static_GCJ \
17751
    lt_prog_compiler_no_builtin_flag_GCJ \
17752
    export_dynamic_flag_spec_GCJ \
17753
    thread_safe_flag_spec_GCJ \
17754
    whole_archive_flag_spec_GCJ \
17755
    enable_shared_with_static_runtimes_GCJ \
17756
    old_archive_cmds_GCJ \
17757
    old_archive_from_new_cmds_GCJ \
17758
    predep_objects_GCJ \
17759
    postdep_objects_GCJ \
17760
    predeps_GCJ \
17761
    postdeps_GCJ \
17762
    compiler_lib_search_path_GCJ \
17763
    archive_cmds_GCJ \
17764
    archive_expsym_cmds_GCJ \
17765
    postinstall_cmds_GCJ \
17766
    postuninstall_cmds_GCJ \
17767
    old_archive_from_expsyms_cmds_GCJ \
17768
    allow_undefined_flag_GCJ \
17769
    no_undefined_flag_GCJ \
17770
    export_symbols_cmds_GCJ \
17771
    hardcode_libdir_flag_spec_GCJ \
17772
    hardcode_libdir_flag_spec_ld_GCJ \
17773
    hardcode_libdir_separator_GCJ \
17774
    hardcode_automatic_GCJ \
17775
    module_cmds_GCJ \
17776
    module_expsym_cmds_GCJ \
17777
    lt_cv_prog_compiler_c_o_GCJ \
17778
    fix_srcfile_path_GCJ \
17779
    exclude_expsyms_GCJ \
17780
    include_expsyms_GCJ; do
17781
 
17782
    case $var in
17783
    old_archive_cmds_GCJ | \
17784
    old_archive_from_new_cmds_GCJ | \
17785
    archive_cmds_GCJ | \
17786
    archive_expsym_cmds_GCJ | \
17787
    module_cmds_GCJ | \
17788
    module_expsym_cmds_GCJ | \
17789
    old_archive_from_expsyms_cmds_GCJ | \
17790
    export_symbols_cmds_GCJ | \
17791
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17792
    postinstall_cmds | postuninstall_cmds | \
17793
    old_postinstall_cmds | old_postuninstall_cmds | \
17794
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17795
      # Double-quote double-evaled strings.
17796
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17797
      ;;
17798
    *)
17799
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17800
      ;;
17801
    esac
17802
  done
17803
 
17804
  case $lt_echo in
17805
  *'\$0 --fallback-echo"')
17806
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17807
    ;;
17808
  esac
17809
 
17810
cfgfile="$ofile"
17811
 
17812
  cat <<__EOF__ >> "$cfgfile"
17813
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17814
 
17815
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17816
 
17817
# Shell to use when invoking shell scripts.
17818
SHELL=$lt_SHELL
17819
 
17820
# Whether or not to build shared libraries.
17821
build_libtool_libs=$enable_shared
17822
 
17823
# Whether or not to build static libraries.
17824
build_old_libs=$enable_static
17825
 
17826
# Whether or not to add -lc for building shared libraries.
17827
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17828
 
17829
# Whether or not to disallow shared libs when runtime libs are static
17830
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17831
 
17832
# Whether or not to optimize for fast installation.
17833
fast_install=$enable_fast_install
17834
 
17835
# The host system.
17836
host_alias=$host_alias
17837
host=$host
17838
host_os=$host_os
17839
 
17840
# The build system.
17841
build_alias=$build_alias
17842
build=$build
17843
build_os=$build_os
17844
 
17845
# An echo program that does not interpret backslashes.
17846
echo=$lt_echo
17847
 
17848
# The archiver.
17849
AR=$lt_AR
17850
AR_FLAGS=$lt_AR_FLAGS
17851
 
17852
# A C compiler.
17853
LTCC=$lt_LTCC
17854
 
17855
# LTCC compiler flags.
17856
LTCFLAGS=$lt_LTCFLAGS
17857
 
17858
# A language-specific compiler.
17859
CC=$lt_compiler_GCJ
17860
 
17861
# Is the compiler the GNU C compiler?
17862
with_gcc=$GCC_GCJ
17863
 
17864
# An ERE matcher.
17865
EGREP=$lt_EGREP
17866
 
17867
# The linker used to build libraries.
17868
LD=$lt_LD_GCJ
17869
 
17870
# Whether we need hard or soft links.
17871
LN_S=$lt_LN_S
17872
 
17873
# A BSD-compatible nm program.
17874
NM=$lt_NM
17875
 
17876
# A symbol stripping program
17877
STRIP=$lt_STRIP
17878
 
17879
# Used to examine libraries when file_magic_cmd begins "file"
17880
MAGIC_CMD=$MAGIC_CMD
17881
 
17882
# Used on cygwin: DLL creation program.
17883
DLLTOOL="$DLLTOOL"
17884
 
17885
# Used on cygwin: object dumper.
17886
OBJDUMP="$OBJDUMP"
17887
 
17888
# Used on cygwin: assembler.
17889
AS="$AS"
17890
 
17891
# The name of the directory that contains temporary libtool files.
17892
objdir=$objdir
17893
 
17894
# How to create reloadable object files.
17895
reload_flag=$lt_reload_flag
17896
reload_cmds=$lt_reload_cmds
17897
 
17898
# How to pass a linker flag through the compiler.
17899
wl=$lt_lt_prog_compiler_wl_GCJ
17900
 
17901
# Object file suffix (normally "o").
17902
objext="$ac_objext"
17903
 
17904
# Old archive suffix (normally "a").
17905
libext="$libext"
17906
 
17907
# Shared library suffix (normally ".so").
17908
shrext_cmds='$shrext_cmds'
17909
 
17910
# Executable file suffix (normally "").
17911
exeext="$exeext"
17912
 
17913
# Additional compiler flags for building library objects.
17914
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17915
pic_mode=$pic_mode
17916
 
17917
# What is the maximum length of a command?
17918
max_cmd_len=$lt_cv_sys_max_cmd_len
17919
 
17920
# Does compiler simultaneously support -c and -o options?
17921
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17922
 
17923
# Must we lock files when doing compilation?
17924
need_locks=$lt_need_locks
17925
 
17926
# Do we need the lib prefix for modules?
17927
need_lib_prefix=$need_lib_prefix
17928
 
17929
# Do we need a version for libraries?
17930
need_version=$need_version
17931
 
17932
# Whether dlopen is supported.
17933
dlopen_support=$enable_dlopen
17934
 
17935
# Whether dlopen of programs is supported.
17936
dlopen_self=$enable_dlopen_self
17937
 
17938
# Whether dlopen of statically linked programs is supported.
17939
dlopen_self_static=$enable_dlopen_self_static
17940
 
17941
# Compiler flag to prevent dynamic linking.
17942
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17943
 
17944
# Compiler flag to turn off builtin functions.
17945
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17946
 
17947
# Compiler flag to allow reflexive dlopens.
17948
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17949
 
17950
# Compiler flag to generate shared objects directly from archives.
17951
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17952
 
17953
# Compiler flag to generate thread-safe objects.
17954
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17955
 
17956
# Library versioning type.
17957
version_type=$version_type
17958
 
17959
# Format of library name prefix.
17960
libname_spec=$lt_libname_spec
17961
 
17962
# List of archive names.  First name is the real one, the rest are links.
17963
# The last name is the one that the linker finds with -lNAME.
17964
library_names_spec=$lt_library_names_spec
17965
 
17966
# The coded name of the library, if different from the real name.
17967
soname_spec=$lt_soname_spec
17968
 
17969
# Commands used to build and install an old-style archive.
17970
RANLIB=$lt_RANLIB
17971
old_archive_cmds=$lt_old_archive_cmds_GCJ
17972
old_postinstall_cmds=$lt_old_postinstall_cmds
17973
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17974
 
17975
# Create an old-style archive from a shared archive.
17976
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17977
 
17978
# Create a temporary old-style archive to link instead of a shared archive.
17979
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17980
 
17981
# Commands used to build and install a shared archive.
17982
archive_cmds=$lt_archive_cmds_GCJ
17983
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17984
postinstall_cmds=$lt_postinstall_cmds
17985
postuninstall_cmds=$lt_postuninstall_cmds
17986
 
17987
# Commands used to build a loadable module (assumed same as above if empty)
17988
module_cmds=$lt_module_cmds_GCJ
17989
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17990
 
17991
# Commands to strip libraries.
17992
old_striplib=$lt_old_striplib
17993
striplib=$lt_striplib
17994
 
17995
# Dependencies to place before the objects being linked to create a
17996
# shared library.
17997
predep_objects=$lt_predep_objects_GCJ
17998
 
17999
# Dependencies to place after the objects being linked to create a
18000
# shared library.
18001
postdep_objects=$lt_postdep_objects_GCJ
18002
 
18003
# Dependencies to place before the objects being linked to create a
18004
# shared library.
18005
predeps=$lt_predeps_GCJ
18006
 
18007
# Dependencies to place after the objects being linked to create a
18008
# shared library.
18009
postdeps=$lt_postdeps_GCJ
18010
 
18011
# The library search path used internally by the compiler when linking
18012
# a shared library.
18013
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18014
 
18015
# Method to check whether dependent libraries are shared objects.
18016
deplibs_check_method=$lt_deplibs_check_method
18017
 
18018
# Command to use when deplibs_check_method == file_magic.
18019
file_magic_cmd=$lt_file_magic_cmd
18020
 
18021
# Flag that allows shared libraries with undefined symbols to be built.
18022
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18023
 
18024
# Flag that forces no undefined symbols.
18025
no_undefined_flag=$lt_no_undefined_flag_GCJ
18026
 
18027
# Commands used to finish a libtool library installation in a directory.
18028
finish_cmds=$lt_finish_cmds
18029
 
18030
# Same as above, but a single script fragment to be evaled but not shown.
18031
finish_eval=$lt_finish_eval
18032
 
18033
# Take the output of nm and produce a listing of raw symbols and C names.
18034
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18035
 
18036
# Transform the output of nm in a proper C declaration
18037
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18038
 
18039
# Transform the output of nm in a C name address pair
18040
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18041
 
18042
# This is the shared library runtime path variable.
18043
runpath_var=$runpath_var
18044
 
18045
# This is the shared library path variable.
18046
shlibpath_var=$shlibpath_var
18047
 
18048
# Is shlibpath searched before the hard-coded library search path?
18049
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18050
 
18051
# How to hardcode a shared library path into an executable.
18052
hardcode_action=$hardcode_action_GCJ
18053
 
18054
# Whether we should hardcode library paths into libraries.
18055
hardcode_into_libs=$hardcode_into_libs
18056
 
18057
# Flag to hardcode \$libdir into a binary during linking.
18058
# This must work even if \$libdir does not exist.
18059
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18060
 
18061
# If ld is used when linking, flag to hardcode \$libdir into
18062
# a binary during linking. This must work even if \$libdir does
18063
# not exist.
18064
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18065
 
18066
# Whether we need a single -rpath flag with a separated argument.
18067
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18068
 
18069
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18070
# resulting binary.
18071
hardcode_direct=$hardcode_direct_GCJ
18072
 
18073
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18074
# resulting binary.
18075
hardcode_minus_L=$hardcode_minus_L_GCJ
18076
 
18077
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18078
# the resulting binary.
18079
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18080
 
18081
# Set to yes if building a shared library automatically hardcodes DIR into the library
18082
# and all subsequent libraries and executables linked against it.
18083
hardcode_automatic=$hardcode_automatic_GCJ
18084
 
18085
# Variables whose values should be saved in libtool wrapper scripts and
18086
# restored at relink time.
18087
variables_saved_for_relink="$variables_saved_for_relink"
18088
 
18089
# Whether libtool must link a program against all its dependency libraries.
18090
link_all_deplibs=$link_all_deplibs_GCJ
18091
 
18092
# Compile-time system search path for libraries
18093
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18094
 
18095
# Run-time system search path for libraries
18096
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18097
 
18098
# Fix the shell variable \$srcfile for the compiler.
18099
fix_srcfile_path=$lt_fix_srcfile_path
18100
 
18101
# Set to yes if exported symbols are required.
18102
always_export_symbols=$always_export_symbols_GCJ
18103
 
18104
# The commands to list exported symbols.
18105
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18106
 
18107
# The commands to extract the exported symbol list from a shared archive.
18108
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18109
 
18110
# Symbols that should not be listed in the preloaded symbols.
18111
exclude_expsyms=$lt_exclude_expsyms_GCJ
18112
 
18113
# Symbols that must always be exported.
18114
include_expsyms=$lt_include_expsyms_GCJ
18115
 
18116
# ### END LIBTOOL TAG CONFIG: $tagname
18117
 
18118
__EOF__
18119
 
18120
 
18121
else
18122
  # If there is no Makefile yet, we rely on a make rule to execute
18123
  # `config.status --recheck' to rerun these tests and create the
18124
  # libtool script then.
18125
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18126
  if test -f "$ltmain_in"; then
18127
    test -f Makefile && make "$ltmain"
18128
  fi
18129
fi
18130
 
18131
 
18132
ac_ext=c
18133
ac_cpp='$CPP $CPPFLAGS'
18134
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18135
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18136
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18137
 
18138
CC="$lt_save_CC"
18139
 
18140
        else
18141
          tagname=""
18142
        fi
18143
        ;;
18144
 
18145
      RC)
18146
 
18147
 
18148
# Source file extension for RC test sources.
18149
ac_ext=rc
18150
 
18151
# Object file extension for compiled RC test sources.
18152
objext=o
18153
objext_RC=$objext
18154
 
18155
# Code to be used in simple compile tests
18156
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18157
 
18158
# Code to be used in simple link tests
18159
lt_simple_link_test_code="$lt_simple_compile_test_code"
18160
 
18161
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18162
 
18163
# If no C compiler was specified, use CC.
18164
LTCC=${LTCC-"$CC"}
18165
 
18166
# If no C compiler flags were specified, use CFLAGS.
18167
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18168
 
18169
# Allow CC to be a program name with arguments.
18170
compiler=$CC
18171
 
18172
 
18173
# save warnings/boilerplate of simple test code
18174
ac_outfile=conftest.$ac_objext
18175
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18176
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18177
_lt_compiler_boilerplate=`cat conftest.err`
18178
$rm conftest*
18179
 
18180
ac_outfile=conftest.$ac_objext
18181
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18182
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18183
_lt_linker_boilerplate=`cat conftest.err`
18184
$rm conftest*
18185
 
18186
 
18187
# Allow CC to be a program name with arguments.
18188
lt_save_CC="$CC"
18189
CC=${RC-"windres"}
18190
compiler=$CC
18191
compiler_RC=$CC
18192
for cc_temp in $compiler""; do
18193
  case $cc_temp in
18194
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18195
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18196
    \-*) ;;
18197
    *) break;;
18198
  esac
18199
done
18200
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18201
 
18202
lt_cv_prog_compiler_c_o_RC=yes
18203
 
18204
# The else clause should only fire when bootstrapping the
18205
# libtool distribution, otherwise you forgot to ship ltmain.sh
18206
# with your package, and you will get complaints that there are
18207
# no rules to generate ltmain.sh.
18208
if test -f "$ltmain"; then
18209
  # See if we are running on zsh, and set the options which allow our commands through
18210
  # without removal of \ escapes.
18211
  if test -n "${ZSH_VERSION+set}" ; then
18212
    setopt NO_GLOB_SUBST
18213
  fi
18214
  # Now quote all the things that may contain metacharacters while being
18215
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18216
  # variables and quote the copies for generation of the libtool script.
18217
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18218
    SED SHELL STRIP \
18219
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18220
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18221
    deplibs_check_method reload_flag reload_cmds need_locks \
18222
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18223
    lt_cv_sys_global_symbol_to_c_name_address \
18224
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18225
    old_postinstall_cmds old_postuninstall_cmds \
18226
    compiler_RC \
18227
    CC_RC \
18228
    LD_RC \
18229
    lt_prog_compiler_wl_RC \
18230
    lt_prog_compiler_pic_RC \
18231
    lt_prog_compiler_static_RC \
18232
    lt_prog_compiler_no_builtin_flag_RC \
18233
    export_dynamic_flag_spec_RC \
18234
    thread_safe_flag_spec_RC \
18235
    whole_archive_flag_spec_RC \
18236
    enable_shared_with_static_runtimes_RC \
18237
    old_archive_cmds_RC \
18238
    old_archive_from_new_cmds_RC \
18239
    predep_objects_RC \
18240
    postdep_objects_RC \
18241
    predeps_RC \
18242
    postdeps_RC \
18243
    compiler_lib_search_path_RC \
18244
    archive_cmds_RC \
18245
    archive_expsym_cmds_RC \
18246
    postinstall_cmds_RC \
18247
    postuninstall_cmds_RC \
18248
    old_archive_from_expsyms_cmds_RC \
18249
    allow_undefined_flag_RC \
18250
    no_undefined_flag_RC \
18251
    export_symbols_cmds_RC \
18252
    hardcode_libdir_flag_spec_RC \
18253
    hardcode_libdir_flag_spec_ld_RC \
18254
    hardcode_libdir_separator_RC \
18255
    hardcode_automatic_RC \
18256
    module_cmds_RC \
18257
    module_expsym_cmds_RC \
18258
    lt_cv_prog_compiler_c_o_RC \
18259
    fix_srcfile_path_RC \
18260
    exclude_expsyms_RC \
18261
    include_expsyms_RC; do
18262
 
18263
    case $var in
18264
    old_archive_cmds_RC | \
18265
    old_archive_from_new_cmds_RC | \
18266
    archive_cmds_RC | \
18267
    archive_expsym_cmds_RC | \
18268
    module_cmds_RC | \
18269
    module_expsym_cmds_RC | \
18270
    old_archive_from_expsyms_cmds_RC | \
18271
    export_symbols_cmds_RC | \
18272
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18273
    postinstall_cmds | postuninstall_cmds | \
18274
    old_postinstall_cmds | old_postuninstall_cmds | \
18275
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18276
      # Double-quote double-evaled strings.
18277
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18278
      ;;
18279
    *)
18280
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18281
      ;;
18282
    esac
18283
  done
18284
 
18285
  case $lt_echo in
18286
  *'\$0 --fallback-echo"')
18287
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18288
    ;;
18289
  esac
18290
 
18291
cfgfile="$ofile"
18292
 
18293
  cat <<__EOF__ >> "$cfgfile"
18294
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18295
 
18296
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18297
 
18298
# Shell to use when invoking shell scripts.
18299
SHELL=$lt_SHELL
18300
 
18301
# Whether or not to build shared libraries.
18302
build_libtool_libs=$enable_shared
18303
 
18304
# Whether or not to build static libraries.
18305
build_old_libs=$enable_static
18306
 
18307
# Whether or not to add -lc for building shared libraries.
18308
build_libtool_need_lc=$archive_cmds_need_lc_RC
18309
 
18310
# Whether or not to disallow shared libs when runtime libs are static
18311
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18312
 
18313
# Whether or not to optimize for fast installation.
18314
fast_install=$enable_fast_install
18315
 
18316
# The host system.
18317
host_alias=$host_alias
18318
host=$host
18319
host_os=$host_os
18320
 
18321
# The build system.
18322
build_alias=$build_alias
18323
build=$build
18324
build_os=$build_os
18325
 
18326
# An echo program that does not interpret backslashes.
18327
echo=$lt_echo
18328
 
18329
# The archiver.
18330
AR=$lt_AR
18331
AR_FLAGS=$lt_AR_FLAGS
18332
 
18333
# A C compiler.
18334
LTCC=$lt_LTCC
18335
 
18336
# LTCC compiler flags.
18337
LTCFLAGS=$lt_LTCFLAGS
18338
 
18339
# A language-specific compiler.
18340
CC=$lt_compiler_RC
18341
 
18342
# Is the compiler the GNU C compiler?
18343
with_gcc=$GCC_RC
18344
 
18345
# An ERE matcher.
18346
EGREP=$lt_EGREP
18347
 
18348
# The linker used to build libraries.
18349
LD=$lt_LD_RC
18350
 
18351
# Whether we need hard or soft links.
18352
LN_S=$lt_LN_S
18353
 
18354
# A BSD-compatible nm program.
18355
NM=$lt_NM
18356
 
18357
# A symbol stripping program
18358
STRIP=$lt_STRIP
18359
 
18360
# Used to examine libraries when file_magic_cmd begins "file"
18361
MAGIC_CMD=$MAGIC_CMD
18362
 
18363
# Used on cygwin: DLL creation program.
18364
DLLTOOL="$DLLTOOL"
18365
 
18366
# Used on cygwin: object dumper.
18367
OBJDUMP="$OBJDUMP"
18368
 
18369
# Used on cygwin: assembler.
18370
AS="$AS"
18371
 
18372
# The name of the directory that contains temporary libtool files.
18373
objdir=$objdir
18374
 
18375
# How to create reloadable object files.
18376
reload_flag=$lt_reload_flag
18377
reload_cmds=$lt_reload_cmds
18378
 
18379
# How to pass a linker flag through the compiler.
18380
wl=$lt_lt_prog_compiler_wl_RC
18381
 
18382
# Object file suffix (normally "o").
18383
objext="$ac_objext"
18384
 
18385
# Old archive suffix (normally "a").
18386
libext="$libext"
18387
 
18388
# Shared library suffix (normally ".so").
18389
shrext_cmds='$shrext_cmds'
18390
 
18391
# Executable file suffix (normally "").
18392
exeext="$exeext"
18393
 
18394
# Additional compiler flags for building library objects.
18395
pic_flag=$lt_lt_prog_compiler_pic_RC
18396
pic_mode=$pic_mode
18397
 
18398
# What is the maximum length of a command?
18399
max_cmd_len=$lt_cv_sys_max_cmd_len
18400
 
18401
# Does compiler simultaneously support -c and -o options?
18402
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18403
 
18404
# Must we lock files when doing compilation?
18405
need_locks=$lt_need_locks
18406
 
18407
# Do we need the lib prefix for modules?
18408
need_lib_prefix=$need_lib_prefix
18409
 
18410
# Do we need a version for libraries?
18411
need_version=$need_version
18412
 
18413
# Whether dlopen is supported.
18414
dlopen_support=$enable_dlopen
18415
 
18416
# Whether dlopen of programs is supported.
18417
dlopen_self=$enable_dlopen_self
18418
 
18419
# Whether dlopen of statically linked programs is supported.
18420
dlopen_self_static=$enable_dlopen_self_static
18421
 
18422
# Compiler flag to prevent dynamic linking.
18423
link_static_flag=$lt_lt_prog_compiler_static_RC
18424
 
18425
# Compiler flag to turn off builtin functions.
18426
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18427
 
18428
# Compiler flag to allow reflexive dlopens.
18429
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18430
 
18431
# Compiler flag to generate shared objects directly from archives.
18432
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18433
 
18434
# Compiler flag to generate thread-safe objects.
18435
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18436
 
18437
# Library versioning type.
18438
version_type=$version_type
18439
 
18440
# Format of library name prefix.
18441
libname_spec=$lt_libname_spec
18442
 
18443
# List of archive names.  First name is the real one, the rest are links.
18444
# The last name is the one that the linker finds with -lNAME.
18445
library_names_spec=$lt_library_names_spec
18446
 
18447
# The coded name of the library, if different from the real name.
18448
soname_spec=$lt_soname_spec
18449
 
18450
# Commands used to build and install an old-style archive.
18451
RANLIB=$lt_RANLIB
18452
old_archive_cmds=$lt_old_archive_cmds_RC
18453
old_postinstall_cmds=$lt_old_postinstall_cmds
18454
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18455
 
18456
# Create an old-style archive from a shared archive.
18457
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18458
 
18459
# Create a temporary old-style archive to link instead of a shared archive.
18460
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18461
 
18462
# Commands used to build and install a shared archive.
18463
archive_cmds=$lt_archive_cmds_RC
18464
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18465
postinstall_cmds=$lt_postinstall_cmds
18466
postuninstall_cmds=$lt_postuninstall_cmds
18467
 
18468
# Commands used to build a loadable module (assumed same as above if empty)
18469
module_cmds=$lt_module_cmds_RC
18470
module_expsym_cmds=$lt_module_expsym_cmds_RC
18471
 
18472
# Commands to strip libraries.
18473
old_striplib=$lt_old_striplib
18474
striplib=$lt_striplib
18475
 
18476
# Dependencies to place before the objects being linked to create a
18477
# shared library.
18478
predep_objects=$lt_predep_objects_RC
18479
 
18480
# Dependencies to place after the objects being linked to create a
18481
# shared library.
18482
postdep_objects=$lt_postdep_objects_RC
18483
 
18484
# Dependencies to place before the objects being linked to create a
18485
# shared library.
18486
predeps=$lt_predeps_RC
18487
 
18488
# Dependencies to place after the objects being linked to create a
18489
# shared library.
18490
postdeps=$lt_postdeps_RC
18491
 
18492
# The library search path used internally by the compiler when linking
18493
# a shared library.
18494
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18495
 
18496
# Method to check whether dependent libraries are shared objects.
18497
deplibs_check_method=$lt_deplibs_check_method
18498
 
18499
# Command to use when deplibs_check_method == file_magic.
18500
file_magic_cmd=$lt_file_magic_cmd
18501
 
18502
# Flag that allows shared libraries with undefined symbols to be built.
18503
allow_undefined_flag=$lt_allow_undefined_flag_RC
18504
 
18505
# Flag that forces no undefined symbols.
18506
no_undefined_flag=$lt_no_undefined_flag_RC
18507
 
18508
# Commands used to finish a libtool library installation in a directory.
18509
finish_cmds=$lt_finish_cmds
18510
 
18511
# Same as above, but a single script fragment to be evaled but not shown.
18512
finish_eval=$lt_finish_eval
18513
 
18514
# Take the output of nm and produce a listing of raw symbols and C names.
18515
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18516
 
18517
# Transform the output of nm in a proper C declaration
18518
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18519
 
18520
# Transform the output of nm in a C name address pair
18521
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18522
 
18523
# This is the shared library runtime path variable.
18524
runpath_var=$runpath_var
18525
 
18526
# This is the shared library path variable.
18527
shlibpath_var=$shlibpath_var
18528
 
18529
# Is shlibpath searched before the hard-coded library search path?
18530
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18531
 
18532
# How to hardcode a shared library path into an executable.
18533
hardcode_action=$hardcode_action_RC
18534
 
18535
# Whether we should hardcode library paths into libraries.
18536
hardcode_into_libs=$hardcode_into_libs
18537
 
18538
# Flag to hardcode \$libdir into a binary during linking.
18539
# This must work even if \$libdir does not exist.
18540
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18541
 
18542
# If ld is used when linking, flag to hardcode \$libdir into
18543
# a binary during linking. This must work even if \$libdir does
18544
# not exist.
18545
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18546
 
18547
# Whether we need a single -rpath flag with a separated argument.
18548
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18549
 
18550
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18551
# resulting binary.
18552
hardcode_direct=$hardcode_direct_RC
18553
 
18554
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18555
# resulting binary.
18556
hardcode_minus_L=$hardcode_minus_L_RC
18557
 
18558
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18559
# the resulting binary.
18560
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18561
 
18562
# Set to yes if building a shared library automatically hardcodes DIR into the library
18563
# and all subsequent libraries and executables linked against it.
18564
hardcode_automatic=$hardcode_automatic_RC
18565
 
18566
# Variables whose values should be saved in libtool wrapper scripts and
18567
# restored at relink time.
18568
variables_saved_for_relink="$variables_saved_for_relink"
18569
 
18570
# Whether libtool must link a program against all its dependency libraries.
18571
link_all_deplibs=$link_all_deplibs_RC
18572
 
18573
# Compile-time system search path for libraries
18574
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18575
 
18576
# Run-time system search path for libraries
18577
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18578
 
18579
# Fix the shell variable \$srcfile for the compiler.
18580
fix_srcfile_path=$lt_fix_srcfile_path
18581
 
18582
# Set to yes if exported symbols are required.
18583
always_export_symbols=$always_export_symbols_RC
18584
 
18585
# The commands to list exported symbols.
18586
export_symbols_cmds=$lt_export_symbols_cmds_RC
18587
 
18588
# The commands to extract the exported symbol list from a shared archive.
18589
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18590
 
18591
# Symbols that should not be listed in the preloaded symbols.
18592
exclude_expsyms=$lt_exclude_expsyms_RC
18593
 
18594
# Symbols that must always be exported.
18595
include_expsyms=$lt_include_expsyms_RC
18596
 
18597
# ### END LIBTOOL TAG CONFIG: $tagname
18598
 
18599
__EOF__
18600
 
18601
 
18602
else
18603
  # If there is no Makefile yet, we rely on a make rule to execute
18604
  # `config.status --recheck' to rerun these tests and create the
18605
  # libtool script then.
18606
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18607
  if test -f "$ltmain_in"; then
18608
    test -f Makefile && make "$ltmain"
18609
  fi
18610
fi
18611
 
18612
 
18613
ac_ext=c
18614
ac_cpp='$CPP $CPPFLAGS'
18615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18618
 
18619
CC="$lt_save_CC"
18620
 
18621
        ;;
18622
 
18623
      *)
18624
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18625
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18626
   { (exit 1); exit 1; }; }
18627
        ;;
18628
      esac
18629
 
18630
      # Append the new tag name to the list of available tags.
18631
      if test -n "$tagname" ; then
18632
      available_tags="$available_tags $tagname"
18633
    fi
18634
    fi
18635
  done
18636
  IFS="$lt_save_ifs"
18637
 
18638
  # Now substitute the updated list of available tags.
18639
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18640
    mv "${ofile}T" "$ofile"
18641
    chmod +x "$ofile"
18642
  else
18643
    rm -f "${ofile}T"
18644
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18645
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18646
   { (exit 1); exit 1; }; }
18647
  fi
18648
fi
18649
 
18650
 
18651
 
18652
# This can be used to rebuild libtool when needed
18653
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18654
 
18655
# Always use our own libtool.
18656
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18657
 
18658
# Prevent multiple expansion
18659
 
18660
 
18661
 
18662
 
18663
 
18664
 
18665
 
18666
 
18667
 
18668
 
18669
 
18670
 
18671
 
18672
 
18673
 
18674
 
18675
 
18676
 
18677
 
18678
 
18679
am__api_version='1.10'
18680
 
18681
# Find a good install program.  We prefer a C program (faster),
18682
# so one script is as good as another.  But avoid the broken or
18683
# incompatible versions:
18684
# SysV /etc/install, /usr/sbin/install
18685
# SunOS /usr/etc/install
18686
# IRIX /sbin/install
18687
# AIX /bin/install
18688
# AmigaOS /C/install, which installs bootblocks on floppy discs
18689
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18690
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18691
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18692
# OS/2's system install, which has a completely different semantic
18693
# ./install, which can be erroneously created by make from ./install.sh.
18694
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18695
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18696
if test -z "$INSTALL"; then
18697
if test "${ac_cv_path_install+set}" = set; then
18698
  echo $ECHO_N "(cached) $ECHO_C" >&6
18699
else
18700
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18701
for as_dir in $PATH
18702
do
18703
  IFS=$as_save_IFS
18704
  test -z "$as_dir" && as_dir=.
18705
  # Account for people who put trailing slashes in PATH elements.
18706
case $as_dir/ in
18707
  ./ | .// | /cC/* | \
18708
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18709
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18710
  /usr/ucb/* ) ;;
18711
  *)
18712
    # OSF1 and SCO ODT 3.0 have their own names for install.
18713
    # Don't use installbsd from OSF since it installs stuff as root
18714
    # by default.
18715
    for ac_prog in ginstall scoinst install; do
18716
      for ac_exec_ext in '' $ac_executable_extensions; do
18717
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18718
          if test $ac_prog = install &&
18719
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18720
            # AIX install.  It has an incompatible calling convention.
18721
            :
18722
          elif test $ac_prog = install &&
18723
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18724
            # program-specific install script used by HP pwplus--don't use.
18725
            :
18726
          else
18727
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18728
            break 3
18729
          fi
18730
        fi
18731
      done
18732
    done
18733
    ;;
18734
esac
18735
done
18736
IFS=$as_save_IFS
18737
 
18738
 
18739
fi
18740
  if test "${ac_cv_path_install+set}" = set; then
18741
    INSTALL=$ac_cv_path_install
18742
  else
18743
    # As a last resort, use the slow shell script.  Don't cache a
18744
    # value for INSTALL within a source directory, because that will
18745
    # break other packages using the cache if that directory is
18746
    # removed, or if the value is a relative name.
18747
    INSTALL=$ac_install_sh
18748
  fi
18749
fi
18750
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18751
echo "${ECHO_T}$INSTALL" >&6; }
18752
 
18753
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18754
# It thinks the first close brace ends the variable substitution.
18755
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18756
 
18757
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18758
 
18759
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18760
 
18761
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18762
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18763
# Just in case
18764
sleep 1
18765
echo timestamp > conftest.file
18766
# Do `set' in a subshell so we don't clobber the current shell's
18767
# arguments.  Must try -L first in case configure is actually a
18768
# symlink; some systems play weird games with the mod time of symlinks
18769
# (eg FreeBSD returns the mod time of the symlink's containing
18770
# directory).
18771
if (
18772
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18773
   if test "$*" = "X"; then
18774
      # -L didn't work.
18775
      set X `ls -t $srcdir/configure conftest.file`
18776
   fi
18777
   rm -f conftest.file
18778
   if test "$*" != "X $srcdir/configure conftest.file" \
18779
      && test "$*" != "X conftest.file $srcdir/configure"; then
18780
 
18781
      # If neither matched, then we have a broken ls.  This can happen
18782
      # if, for instance, CONFIG_SHELL is bash and it inherits a
18783
      # broken ls alias from the environment.  This has actually
18784
      # happened.  Such a system could not be considered "sane".
18785
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18786
alias in your environment" >&5
18787
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18788
alias in your environment" >&2;}
18789
   { (exit 1); exit 1; }; }
18790
   fi
18791
 
18792
   test "$2" = conftest.file
18793
   )
18794
then
18795
   # Ok.
18796
   :
18797
else
18798
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18799
Check your system clock" >&5
18800
echo "$as_me: error: newly created file is older than distributed files!
18801
Check your system clock" >&2;}
18802
   { (exit 1); exit 1; }; }
18803
fi
18804
{ echo "$as_me:$LINENO: result: yes" >&5
18805
echo "${ECHO_T}yes" >&6; }
18806
test "$program_prefix" != NONE &&
18807
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
18808
# Use a double $ so make ignores it.
18809
test "$program_suffix" != NONE &&
18810
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18811
# Double any \ or $.  echo might interpret backslashes.
18812
# By default was `s,x,x', remove it if useless.
18813
cat <<\_ACEOF >conftest.sed
18814
s/[\\$]/&&/g;s/;s,x,x,$//
18815
_ACEOF
18816
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18817
rm -f conftest.sed
18818
 
18819
# expand $ac_aux_dir to an absolute path
18820
am_aux_dir=`cd $ac_aux_dir && pwd`
18821
 
18822
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18823
# Use eval to expand $SHELL
18824
if eval "$MISSING --run true"; then
18825
  am_missing_run="$MISSING --run "
18826
else
18827
  am_missing_run=
18828
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18829
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18830
fi
18831
 
18832
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18833
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18834
if test -z "$MKDIR_P"; then
18835
  if test "${ac_cv_path_mkdir+set}" = set; then
18836
  echo $ECHO_N "(cached) $ECHO_C" >&6
18837
else
18838
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18839
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18840
do
18841
  IFS=$as_save_IFS
18842
  test -z "$as_dir" && as_dir=.
18843
  for ac_prog in mkdir gmkdir; do
18844
         for ac_exec_ext in '' $ac_executable_extensions; do
18845
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18846
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18847
             'mkdir (GNU coreutils) '* | \
18848
             'mkdir (coreutils) '* | \
18849
             'mkdir (fileutils) '4.1*)
18850
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18851
               break 3;;
18852
           esac
18853
         done
18854
       done
18855
done
18856
IFS=$as_save_IFS
18857
 
18858
fi
18859
 
18860
  if test "${ac_cv_path_mkdir+set}" = set; then
18861
    MKDIR_P="$ac_cv_path_mkdir -p"
18862
  else
18863
    # As a last resort, use the slow shell script.  Don't cache a
18864
    # value for MKDIR_P within a source directory, because that will
18865
    # break other packages using the cache if that directory is
18866
    # removed, or if the value is a relative name.
18867
    test -d ./--version && rmdir ./--version
18868
    MKDIR_P="$ac_install_sh -d"
18869
  fi
18870
fi
18871
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18872
echo "${ECHO_T}$MKDIR_P" >&6; }
18873
 
18874
mkdir_p="$MKDIR_P"
18875
case $mkdir_p in
18876
  [\\/$]* | ?:[\\/]*) ;;
18877
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18878
esac
18879
 
18880
for ac_prog in gawk mawk nawk awk
18881
do
18882
  # Extract the first word of "$ac_prog", so it can be a program name with args.
18883
set dummy $ac_prog; ac_word=$2
18884
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18886
if test "${ac_cv_prog_AWK+set}" = set; then
18887
  echo $ECHO_N "(cached) $ECHO_C" >&6
18888
else
18889
  if test -n "$AWK"; then
18890
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18891
else
18892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18893
for as_dir in $PATH
18894
do
18895
  IFS=$as_save_IFS
18896
  test -z "$as_dir" && as_dir=.
18897
  for ac_exec_ext in '' $ac_executable_extensions; do
18898
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18899
    ac_cv_prog_AWK="$ac_prog"
18900
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18901
    break 2
18902
  fi
18903
done
18904
done
18905
IFS=$as_save_IFS
18906
 
18907
fi
18908
fi
18909
AWK=$ac_cv_prog_AWK
18910
if test -n "$AWK"; then
18911
  { echo "$as_me:$LINENO: result: $AWK" >&5
18912
echo "${ECHO_T}$AWK" >&6; }
18913
else
18914
  { echo "$as_me:$LINENO: result: no" >&5
18915
echo "${ECHO_T}no" >&6; }
18916
fi
18917
 
18918
 
18919
  test -n "$AWK" && break
18920
done
18921
 
18922
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18923
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18924
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18925
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18926
  echo $ECHO_N "(cached) $ECHO_C" >&6
18927
else
18928
  cat >conftest.make <<\_ACEOF
18929
SHELL = /bin/sh
18930
all:
18931
        @echo '@@@%%%=$(MAKE)=@@@%%%'
18932
_ACEOF
18933
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18934
case `${MAKE-make} -f conftest.make 2>/dev/null` in
18935
  *@@@%%%=?*=@@@%%%*)
18936
    eval ac_cv_prog_make_${ac_make}_set=yes;;
18937
  *)
18938
    eval ac_cv_prog_make_${ac_make}_set=no;;
18939
esac
18940
rm -f conftest.make
18941
fi
18942
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18943
  { echo "$as_me:$LINENO: result: yes" >&5
18944
echo "${ECHO_T}yes" >&6; }
18945
  SET_MAKE=
18946
else
18947
  { echo "$as_me:$LINENO: result: no" >&5
18948
echo "${ECHO_T}no" >&6; }
18949
  SET_MAKE="MAKE=${MAKE-make}"
18950
fi
18951
 
18952
rm -rf .tst 2>/dev/null
18953
mkdir .tst 2>/dev/null
18954
if test -d .tst; then
18955
  am__leading_dot=.
18956
else
18957
  am__leading_dot=_
18958
fi
18959
rmdir .tst 2>/dev/null
18960
 
18961
DEPDIR="${am__leading_dot}deps"
18962
 
18963
ac_config_commands="$ac_config_commands depfiles"
18964
 
18965
 
18966
am_make=${MAKE-make}
18967
cat > confinc << 'END'
18968
am__doit:
18969
        @echo done
18970
.PHONY: am__doit
18971
END
18972
# If we don't find an include directive, just comment out the code.
18973
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18974
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
18975
am__include="#"
18976
am__quote=
18977
_am_result=none
18978
# First try GNU make style include.
18979
echo "include confinc" > confmf
18980
# We grep out `Entering directory' and `Leaving directory'
18981
# messages which can occur if `w' ends up in MAKEFLAGS.
18982
# In particular we don't look at `^make:' because GNU make might
18983
# be invoked under some other name (usually "gmake"), in which
18984
# case it prints its new name instead of `make'.
18985
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18986
   am__include=include
18987
   am__quote=
18988
   _am_result=GNU
18989
fi
18990
# Now try BSD make style include.
18991
if test "$am__include" = "#"; then
18992
   echo '.include "confinc"' > confmf
18993
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18994
      am__include=.include
18995
      am__quote="\""
18996
      _am_result=BSD
18997
   fi
18998
fi
18999
 
19000
 
19001
{ echo "$as_me:$LINENO: result: $_am_result" >&5
19002
echo "${ECHO_T}$_am_result" >&6; }
19003
rm -f confinc confmf
19004
 
19005
# Check whether --enable-dependency-tracking was given.
19006
if test "${enable_dependency_tracking+set}" = set; then
19007
  enableval=$enable_dependency_tracking;
19008
fi
19009
 
19010
if test "x$enable_dependency_tracking" != xno; then
19011
  am_depcomp="$ac_aux_dir/depcomp"
19012
  AMDEPBACKSLASH='\'
19013
fi
19014
 if test "x$enable_dependency_tracking" != xno; then
19015
  AMDEP_TRUE=
19016
  AMDEP_FALSE='#'
19017
else
19018
  AMDEP_TRUE='#'
19019
  AMDEP_FALSE=
19020
fi
19021
 
19022
 
19023
if test "`cd $srcdir && pwd`" != "`pwd`"; then
19024
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19025
  # is not polluted with repeated "-I."
19026
  am__isrc=' -I$(srcdir)'
19027
  # test to see if srcdir already configured
19028
  if test -f $srcdir/config.status; then
19029
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19030
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19031
   { (exit 1); exit 1; }; }
19032
  fi
19033
fi
19034
 
19035
# test whether we have cygpath
19036
if test -z "$CYGPATH_W"; then
19037
  if (cygpath --version) >/dev/null 2>/dev/null; then
19038
    CYGPATH_W='cygpath -w'
19039
  else
19040
    CYGPATH_W=echo
19041
  fi
19042
fi
19043
 
19044
 
19045
# Define the identity of the package.
19046
 PACKAGE='or1ksim'
19047
 VERSION='0.3.0rc1'
19048
 
19049
 
19050
cat >>confdefs.h <<_ACEOF
19051
@%:@define PACKAGE "$PACKAGE"
19052
_ACEOF
19053
 
19054
 
19055
cat >>confdefs.h <<_ACEOF
19056
@%:@define VERSION "$VERSION"
19057
_ACEOF
19058
 
19059
# Some tools Automake needs.
19060
 
19061
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19062
 
19063
 
19064
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19065
 
19066
 
19067
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19068
 
19069
 
19070
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19071
 
19072
 
19073
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19074
 
19075
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19076
 
19077
# Installed binaries are usually stripped using `strip' when the user
19078
# run `make install-strip'.  However `strip' might not be the right
19079
# tool to use in cross-compilation environments, therefore Automake
19080
# will honor the `STRIP' environment variable to overrule this program.
19081
if test "$cross_compiling" != no; then
19082
  if test -n "$ac_tool_prefix"; then
19083
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19084
set dummy ${ac_tool_prefix}strip; ac_word=$2
19085
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19086
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19087
if test "${ac_cv_prog_STRIP+set}" = set; then
19088
  echo $ECHO_N "(cached) $ECHO_C" >&6
19089
else
19090
  if test -n "$STRIP"; then
19091
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19092
else
19093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19094
for as_dir in $PATH
19095
do
19096
  IFS=$as_save_IFS
19097
  test -z "$as_dir" && as_dir=.
19098
  for ac_exec_ext in '' $ac_executable_extensions; do
19099
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19100
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19101
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19102
    break 2
19103
  fi
19104
done
19105
done
19106
IFS=$as_save_IFS
19107
 
19108
fi
19109
fi
19110
STRIP=$ac_cv_prog_STRIP
19111
if test -n "$STRIP"; then
19112
  { echo "$as_me:$LINENO: result: $STRIP" >&5
19113
echo "${ECHO_T}$STRIP" >&6; }
19114
else
19115
  { echo "$as_me:$LINENO: result: no" >&5
19116
echo "${ECHO_T}no" >&6; }
19117
fi
19118
 
19119
 
19120
fi
19121
if test -z "$ac_cv_prog_STRIP"; then
19122
  ac_ct_STRIP=$STRIP
19123
  # Extract the first word of "strip", so it can be a program name with args.
19124
set dummy strip; ac_word=$2
19125
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19127
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19128
  echo $ECHO_N "(cached) $ECHO_C" >&6
19129
else
19130
  if test -n "$ac_ct_STRIP"; then
19131
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19132
else
19133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19134
for as_dir in $PATH
19135
do
19136
  IFS=$as_save_IFS
19137
  test -z "$as_dir" && as_dir=.
19138
  for ac_exec_ext in '' $ac_executable_extensions; do
19139
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19140
    ac_cv_prog_ac_ct_STRIP="strip"
19141
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19142
    break 2
19143
  fi
19144
done
19145
done
19146
IFS=$as_save_IFS
19147
 
19148
fi
19149
fi
19150
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19151
if test -n "$ac_ct_STRIP"; then
19152
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19153
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19154
else
19155
  { echo "$as_me:$LINENO: result: no" >&5
19156
echo "${ECHO_T}no" >&6; }
19157
fi
19158
 
19159
  if test "x$ac_ct_STRIP" = x; then
19160
    STRIP=":"
19161
  else
19162
    case $cross_compiling:$ac_tool_warned in
19163
yes:)
19164
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19165
whose name does not start with the host triplet.  If you think this
19166
configuration is useful to you, please write to autoconf@gnu.org." >&5
19167
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19168
whose name does not start with the host triplet.  If you think this
19169
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19170
ac_tool_warned=yes ;;
19171
esac
19172
    STRIP=$ac_ct_STRIP
19173
  fi
19174
else
19175
  STRIP="$ac_cv_prog_STRIP"
19176
fi
19177
 
19178
fi
19179
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19180
 
19181
# We need awk for the "check" target.  The system "awk" is bad on
19182
# some platforms.
19183
# Always define AMTAR for backward compatibility.
19184
 
19185
AMTAR=${AMTAR-"${am_missing_run}tar"}
19186
 
19187
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19188
 
19189
 
19190
 
19191
 
19192
depcc="$CC"   am_compiler_list=
19193
 
19194
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19195
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19196
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19197
  echo $ECHO_N "(cached) $ECHO_C" >&6
19198
else
19199
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19200
  # We make a subdir and do the tests there.  Otherwise we can end up
19201
  # making bogus files that we don't know about and never remove.  For
19202
  # instance it was reported that on HP-UX the gcc test will end up
19203
  # making a dummy file named `D' -- because `-MD' means `put the output
19204
  # in D'.
19205
  mkdir conftest.dir
19206
  # Copy depcomp to subdir because otherwise we won't find it if we're
19207
  # using a relative directory.
19208
  cp "$am_depcomp" conftest.dir
19209
  cd conftest.dir
19210
  # We will build objects and dependencies in a subdirectory because
19211
  # it helps to detect inapplicable dependency modes.  For instance
19212
  # both Tru64's cc and ICC support -MD to output dependencies as a
19213
  # side effect of compilation, but ICC will put the dependencies in
19214
  # the current directory while Tru64 will put them in the object
19215
  # directory.
19216
  mkdir sub
19217
 
19218
  am_cv_CC_dependencies_compiler_type=none
19219
  if test "$am_compiler_list" = ""; then
19220
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19221
  fi
19222
  for depmode in $am_compiler_list; do
19223
    # Setup a source with many dependencies, because some compilers
19224
    # like to wrap large dependency lists on column 80 (with \), and
19225
    # we should not choose a depcomp mode which is confused by this.
19226
    #
19227
    # We need to recreate these files for each test, as the compiler may
19228
    # overwrite some of them when testing with obscure command lines.
19229
    # This happens at least with the AIX C compiler.
19230
    : > sub/conftest.c
19231
    for i in 1 2 3 4 5 6; do
19232
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19233
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19234
      # Solaris 8's {/usr,}/bin/sh.
19235
      touch sub/conftst$i.h
19236
    done
19237
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19238
 
19239
    case $depmode in
19240
    nosideeffect)
19241
      # after this tag, mechanisms are not by side-effect, so they'll
19242
      # only be used when explicitly requested
19243
      if test "x$enable_dependency_tracking" = xyes; then
19244
        continue
19245
      else
19246
        break
19247
      fi
19248
      ;;
19249
    none) break ;;
19250
    esac
19251
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19252
    # mode.  It turns out that the SunPro C++ compiler does not properly
19253
    # handle `-M -o', and we need to detect this.
19254
    if depmode=$depmode \
19255
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19256
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19257
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19258
         >/dev/null 2>conftest.err &&
19259
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19260
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19261
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19262
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19263
      # icc doesn't choke on unknown options, it will just issue warnings
19264
      # or remarks (even with -Werror).  So we grep stderr for any message
19265
      # that says an option was ignored or not supported.
19266
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19267
      #   icc: Command line warning: ignoring option '-M'; no argument required
19268
      # The diagnosis changed in icc 8.0:
19269
      #   icc: Command line remark: option '-MP' not supported
19270
      if (grep 'ignoring option' conftest.err ||
19271
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19272
        am_cv_CC_dependencies_compiler_type=$depmode
19273
        break
19274
      fi
19275
    fi
19276
  done
19277
 
19278
  cd ..
19279
  rm -rf conftest.dir
19280
else
19281
  am_cv_CC_dependencies_compiler_type=none
19282
fi
19283
 
19284
fi
19285
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19286
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19287
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19288
 
19289
 if
19290
  test "x$enable_dependency_tracking" != xno \
19291
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19292
  am__fastdepCC_TRUE=
19293
  am__fastdepCC_FALSE='#'
19294
else
19295
  am__fastdepCC_TRUE='#'
19296
  am__fastdepCC_FALSE=
19297
fi
19298
 
19299
 
19300
depcc="$CXX"  am_compiler_list=
19301
 
19302
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19303
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19304
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19305
  echo $ECHO_N "(cached) $ECHO_C" >&6
19306
else
19307
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19308
  # We make a subdir and do the tests there.  Otherwise we can end up
19309
  # making bogus files that we don't know about and never remove.  For
19310
  # instance it was reported that on HP-UX the gcc test will end up
19311
  # making a dummy file named `D' -- because `-MD' means `put the output
19312
  # in D'.
19313
  mkdir conftest.dir
19314
  # Copy depcomp to subdir because otherwise we won't find it if we're
19315
  # using a relative directory.
19316
  cp "$am_depcomp" conftest.dir
19317
  cd conftest.dir
19318
  # We will build objects and dependencies in a subdirectory because
19319
  # it helps to detect inapplicable dependency modes.  For instance
19320
  # both Tru64's cc and ICC support -MD to output dependencies as a
19321
  # side effect of compilation, but ICC will put the dependencies in
19322
  # the current directory while Tru64 will put them in the object
19323
  # directory.
19324
  mkdir sub
19325
 
19326
  am_cv_CXX_dependencies_compiler_type=none
19327
  if test "$am_compiler_list" = ""; then
19328
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19329
  fi
19330
  for depmode in $am_compiler_list; do
19331
    # Setup a source with many dependencies, because some compilers
19332
    # like to wrap large dependency lists on column 80 (with \), and
19333
    # we should not choose a depcomp mode which is confused by this.
19334
    #
19335
    # We need to recreate these files for each test, as the compiler may
19336
    # overwrite some of them when testing with obscure command lines.
19337
    # This happens at least with the AIX C compiler.
19338
    : > sub/conftest.c
19339
    for i in 1 2 3 4 5 6; do
19340
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19341
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19342
      # Solaris 8's {/usr,}/bin/sh.
19343
      touch sub/conftst$i.h
19344
    done
19345
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19346
 
19347
    case $depmode in
19348
    nosideeffect)
19349
      # after this tag, mechanisms are not by side-effect, so they'll
19350
      # only be used when explicitly requested
19351
      if test "x$enable_dependency_tracking" = xyes; then
19352
        continue
19353
      else
19354
        break
19355
      fi
19356
      ;;
19357
    none) break ;;
19358
    esac
19359
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19360
    # mode.  It turns out that the SunPro C++ compiler does not properly
19361
    # handle `-M -o', and we need to detect this.
19362
    if depmode=$depmode \
19363
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19364
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19365
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19366
         >/dev/null 2>conftest.err &&
19367
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19368
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19369
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19370
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19371
      # icc doesn't choke on unknown options, it will just issue warnings
19372
      # or remarks (even with -Werror).  So we grep stderr for any message
19373
      # that says an option was ignored or not supported.
19374
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19375
      #   icc: Command line warning: ignoring option '-M'; no argument required
19376
      # The diagnosis changed in icc 8.0:
19377
      #   icc: Command line remark: option '-MP' not supported
19378
      if (grep 'ignoring option' conftest.err ||
19379
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19380
        am_cv_CXX_dependencies_compiler_type=$depmode
19381
        break
19382
      fi
19383
    fi
19384
  done
19385
 
19386
  cd ..
19387
  rm -rf conftest.dir
19388
else
19389
  am_cv_CXX_dependencies_compiler_type=none
19390
fi
19391
 
19392
fi
19393
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19394
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19395
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19396
 
19397
 if
19398
  test "x$enable_dependency_tracking" != xno \
19399
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19400
  am__fastdepCXX_TRUE=
19401
  am__fastdepCXX_FALSE='#'
19402
else
19403
  am__fastdepCXX_TRUE='#'
19404
  am__fastdepCXX_FALSE=
19405
fi
19406
 
19407
 
19408
 
19409
ac_config_headers="$ac_config_headers config.h"
19410
 
19411
 
19412
 
19413
 
19414
# make sure we are using a recent autoconf version
19415
 
19416
 
19417
# yuck
19418
case "$target_cpu" in
19419
or32*)  CPU_ARCH=or32;
19420
        ARCH_ISA=OR32;
19421
 
19422
cat >>confdefs.h <<\_ACEOF
19423
@%:@define OR32_TYPES 1
19424
_ACEOF
19425
;;
19426
dlx*)   CPU_ARCH=dlx;
19427
        ARCH_ISA=DLX;;
19428
*)      { echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
19429
echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
19430
        CPU_ARCH=or32;
19431
        ARCH_ISA=OR32;
19432
 
19433
cat >>confdefs.h <<\_ACEOF
19434
@%:@define OR32_TYPES 1
19435
_ACEOF
19436
;;
19437
esac
19438
 
19439
 
19440
 
19441
# We want these before the checks, so the checks can modify their values.
19442
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
19443
 
19444
ac_ext=c
19445
ac_cpp='$CPP $CPPFLAGS'
19446
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19449
if test -n "$ac_tool_prefix"; then
19450
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19451
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19452
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19453
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19454
if test "${ac_cv_prog_CC+set}" = set; then
19455
  echo $ECHO_N "(cached) $ECHO_C" >&6
19456
else
19457
  if test -n "$CC"; then
19458
  ac_cv_prog_CC="$CC" # Let the user override the test.
19459
else
19460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461
for as_dir in $PATH
19462
do
19463
  IFS=$as_save_IFS
19464
  test -z "$as_dir" && as_dir=.
19465
  for ac_exec_ext in '' $ac_executable_extensions; do
19466
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19467
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19468
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19469
    break 2
19470
  fi
19471
done
19472
done
19473
IFS=$as_save_IFS
19474
 
19475
fi
19476
fi
19477
CC=$ac_cv_prog_CC
19478
if test -n "$CC"; then
19479
  { echo "$as_me:$LINENO: result: $CC" >&5
19480
echo "${ECHO_T}$CC" >&6; }
19481
else
19482
  { echo "$as_me:$LINENO: result: no" >&5
19483
echo "${ECHO_T}no" >&6; }
19484
fi
19485
 
19486
 
19487
fi
19488
if test -z "$ac_cv_prog_CC"; then
19489
  ac_ct_CC=$CC
19490
  # Extract the first word of "gcc", so it can be a program name with args.
19491
set dummy gcc; ac_word=$2
19492
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19494
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19495
  echo $ECHO_N "(cached) $ECHO_C" >&6
19496
else
19497
  if test -n "$ac_ct_CC"; then
19498
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19499
else
19500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19501
for as_dir in $PATH
19502
do
19503
  IFS=$as_save_IFS
19504
  test -z "$as_dir" && as_dir=.
19505
  for ac_exec_ext in '' $ac_executable_extensions; do
19506
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19507
    ac_cv_prog_ac_ct_CC="gcc"
19508
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19509
    break 2
19510
  fi
19511
done
19512
done
19513
IFS=$as_save_IFS
19514
 
19515
fi
19516
fi
19517
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19518
if test -n "$ac_ct_CC"; then
19519
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19520
echo "${ECHO_T}$ac_ct_CC" >&6; }
19521
else
19522
  { echo "$as_me:$LINENO: result: no" >&5
19523
echo "${ECHO_T}no" >&6; }
19524
fi
19525
 
19526
  if test "x$ac_ct_CC" = x; then
19527
    CC=""
19528
  else
19529
    case $cross_compiling:$ac_tool_warned in
19530
yes:)
19531
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19532
whose name does not start with the host triplet.  If you think this
19533
configuration is useful to you, please write to autoconf@gnu.org." >&5
19534
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19535
whose name does not start with the host triplet.  If you think this
19536
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19537
ac_tool_warned=yes ;;
19538
esac
19539
    CC=$ac_ct_CC
19540
  fi
19541
else
19542
  CC="$ac_cv_prog_CC"
19543
fi
19544
 
19545
if test -z "$CC"; then
19546
          if test -n "$ac_tool_prefix"; then
19547
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19548
set dummy ${ac_tool_prefix}cc; ac_word=$2
19549
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19551
if test "${ac_cv_prog_CC+set}" = set; then
19552
  echo $ECHO_N "(cached) $ECHO_C" >&6
19553
else
19554
  if test -n "$CC"; then
19555
  ac_cv_prog_CC="$CC" # Let the user override the test.
19556
else
19557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19558
for as_dir in $PATH
19559
do
19560
  IFS=$as_save_IFS
19561
  test -z "$as_dir" && as_dir=.
19562
  for ac_exec_ext in '' $ac_executable_extensions; do
19563
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19564
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19565
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19566
    break 2
19567
  fi
19568
done
19569
done
19570
IFS=$as_save_IFS
19571
 
19572
fi
19573
fi
19574
CC=$ac_cv_prog_CC
19575
if test -n "$CC"; then
19576
  { echo "$as_me:$LINENO: result: $CC" >&5
19577
echo "${ECHO_T}$CC" >&6; }
19578
else
19579
  { echo "$as_me:$LINENO: result: no" >&5
19580
echo "${ECHO_T}no" >&6; }
19581
fi
19582
 
19583
 
19584
  fi
19585
fi
19586
if test -z "$CC"; then
19587
  # Extract the first word of "cc", so it can be a program name with args.
19588
set dummy cc; ac_word=$2
19589
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19590
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19591
if test "${ac_cv_prog_CC+set}" = set; then
19592
  echo $ECHO_N "(cached) $ECHO_C" >&6
19593
else
19594
  if test -n "$CC"; then
19595
  ac_cv_prog_CC="$CC" # Let the user override the test.
19596
else
19597
  ac_prog_rejected=no
19598
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19599
for as_dir in $PATH
19600
do
19601
  IFS=$as_save_IFS
19602
  test -z "$as_dir" && as_dir=.
19603
  for ac_exec_ext in '' $ac_executable_extensions; do
19604
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19605
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19606
       ac_prog_rejected=yes
19607
       continue
19608
     fi
19609
    ac_cv_prog_CC="cc"
19610
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19611
    break 2
19612
  fi
19613
done
19614
done
19615
IFS=$as_save_IFS
19616
 
19617
if test $ac_prog_rejected = yes; then
19618
  # We found a bogon in the path, so make sure we never use it.
19619
  set dummy $ac_cv_prog_CC
19620
  shift
19621
  if test $@%:@ != 0; then
19622
    # We chose a different compiler from the bogus one.
19623
    # However, it has the same basename, so the bogon will be chosen
19624
    # first if we set CC to just the basename; use the full file name.
19625
    shift
19626
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19627
  fi
19628
fi
19629
fi
19630
fi
19631
CC=$ac_cv_prog_CC
19632
if test -n "$CC"; then
19633
  { echo "$as_me:$LINENO: result: $CC" >&5
19634
echo "${ECHO_T}$CC" >&6; }
19635
else
19636
  { echo "$as_me:$LINENO: result: no" >&5
19637
echo "${ECHO_T}no" >&6; }
19638
fi
19639
 
19640
 
19641
fi
19642
if test -z "$CC"; then
19643
  if test -n "$ac_tool_prefix"; then
19644
  for ac_prog in cl.exe
19645
  do
19646
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19647
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19648
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19649
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19650
if test "${ac_cv_prog_CC+set}" = set; then
19651
  echo $ECHO_N "(cached) $ECHO_C" >&6
19652
else
19653
  if test -n "$CC"; then
19654
  ac_cv_prog_CC="$CC" # Let the user override the test.
19655
else
19656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19657
for as_dir in $PATH
19658
do
19659
  IFS=$as_save_IFS
19660
  test -z "$as_dir" && as_dir=.
19661
  for ac_exec_ext in '' $ac_executable_extensions; do
19662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19663
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19664
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19665
    break 2
19666
  fi
19667
done
19668
done
19669
IFS=$as_save_IFS
19670
 
19671
fi
19672
fi
19673
CC=$ac_cv_prog_CC
19674
if test -n "$CC"; then
19675
  { echo "$as_me:$LINENO: result: $CC" >&5
19676
echo "${ECHO_T}$CC" >&6; }
19677
else
19678
  { echo "$as_me:$LINENO: result: no" >&5
19679
echo "${ECHO_T}no" >&6; }
19680
fi
19681
 
19682
 
19683
    test -n "$CC" && break
19684
  done
19685
fi
19686
if test -z "$CC"; then
19687
  ac_ct_CC=$CC
19688
  for ac_prog in cl.exe
19689
do
19690
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19691
set dummy $ac_prog; ac_word=$2
19692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19694
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19695
  echo $ECHO_N "(cached) $ECHO_C" >&6
19696
else
19697
  if test -n "$ac_ct_CC"; then
19698
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19699
else
19700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19701
for as_dir in $PATH
19702
do
19703
  IFS=$as_save_IFS
19704
  test -z "$as_dir" && as_dir=.
19705
  for ac_exec_ext in '' $ac_executable_extensions; do
19706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19707
    ac_cv_prog_ac_ct_CC="$ac_prog"
19708
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19709
    break 2
19710
  fi
19711
done
19712
done
19713
IFS=$as_save_IFS
19714
 
19715
fi
19716
fi
19717
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19718
if test -n "$ac_ct_CC"; then
19719
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19720
echo "${ECHO_T}$ac_ct_CC" >&6; }
19721
else
19722
  { echo "$as_me:$LINENO: result: no" >&5
19723
echo "${ECHO_T}no" >&6; }
19724
fi
19725
 
19726
 
19727
  test -n "$ac_ct_CC" && break
19728
done
19729
 
19730
  if test "x$ac_ct_CC" = x; then
19731
    CC=""
19732
  else
19733
    case $cross_compiling:$ac_tool_warned in
19734
yes:)
19735
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19736
whose name does not start with the host triplet.  If you think this
19737
configuration is useful to you, please write to autoconf@gnu.org." >&5
19738
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19739
whose name does not start with the host triplet.  If you think this
19740
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19741
ac_tool_warned=yes ;;
19742
esac
19743
    CC=$ac_ct_CC
19744
  fi
19745
fi
19746
 
19747
fi
19748
 
19749
 
19750
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19751
See \`config.log' for more details." >&5
19752
echo "$as_me: error: no acceptable C compiler found in \$PATH
19753
See \`config.log' for more details." >&2;}
19754
   { (exit 1); exit 1; }; }
19755
 
19756
# Provide some information about the compiler.
19757
echo "$as_me:$LINENO: checking for C compiler version" >&5
19758
ac_compiler=`set X $ac_compile; echo $2`
19759
{ (ac_try="$ac_compiler --version >&5"
19760
case "(($ac_try" in
19761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762
  *) ac_try_echo=$ac_try;;
19763
esac
19764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765
  (eval "$ac_compiler --version >&5") 2>&5
19766
  ac_status=$?
19767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768
  (exit $ac_status); }
19769
{ (ac_try="$ac_compiler -v >&5"
19770
case "(($ac_try" in
19771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772
  *) ac_try_echo=$ac_try;;
19773
esac
19774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775
  (eval "$ac_compiler -v >&5") 2>&5
19776
  ac_status=$?
19777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778
  (exit $ac_status); }
19779
{ (ac_try="$ac_compiler -V >&5"
19780
case "(($ac_try" in
19781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782
  *) ac_try_echo=$ac_try;;
19783
esac
19784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785
  (eval "$ac_compiler -V >&5") 2>&5
19786
  ac_status=$?
19787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788
  (exit $ac_status); }
19789
 
19790
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19791
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19792
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19793
  echo $ECHO_N "(cached) $ECHO_C" >&6
19794
else
19795
  cat >conftest.$ac_ext <<_ACEOF
19796
/* confdefs.h.  */
19797
_ACEOF
19798
cat confdefs.h >>conftest.$ac_ext
19799
cat >>conftest.$ac_ext <<_ACEOF
19800
/* end confdefs.h.  */
19801
 
19802
int
19803
main ()
19804
{
19805
#ifndef __GNUC__
19806
       choke me
19807
#endif
19808
 
19809
  ;
19810
  return 0;
19811
}
19812
_ACEOF
19813
rm -f conftest.$ac_objext
19814
if { (ac_try="$ac_compile"
19815
case "(($ac_try" in
19816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817
  *) ac_try_echo=$ac_try;;
19818
esac
19819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820
  (eval "$ac_compile") 2>conftest.er1
19821
  ac_status=$?
19822
  grep -v '^ *+' conftest.er1 >conftest.err
19823
  rm -f conftest.er1
19824
  cat conftest.err >&5
19825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826
  (exit $ac_status); } && {
19827
         test -z "$ac_c_werror_flag" ||
19828
         test ! -s conftest.err
19829
       } && test -s conftest.$ac_objext; then
19830
  ac_compiler_gnu=yes
19831
else
19832
  echo "$as_me: failed program was:" >&5
19833
sed 's/^/| /' conftest.$ac_ext >&5
19834
 
19835
        ac_compiler_gnu=no
19836
fi
19837
 
19838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19840
 
19841
fi
19842
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19843
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19844
GCC=`test $ac_compiler_gnu = yes && echo yes`
19845
ac_test_CFLAGS=${CFLAGS+set}
19846
ac_save_CFLAGS=$CFLAGS
19847
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19848
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19849
if test "${ac_cv_prog_cc_g+set}" = set; then
19850
  echo $ECHO_N "(cached) $ECHO_C" >&6
19851
else
19852
  ac_save_c_werror_flag=$ac_c_werror_flag
19853
   ac_c_werror_flag=yes
19854
   ac_cv_prog_cc_g=no
19855
   CFLAGS="-g"
19856
   cat >conftest.$ac_ext <<_ACEOF
19857
/* confdefs.h.  */
19858
_ACEOF
19859
cat confdefs.h >>conftest.$ac_ext
19860
cat >>conftest.$ac_ext <<_ACEOF
19861
/* end confdefs.h.  */
19862
 
19863
int
19864
main ()
19865
{
19866
 
19867
  ;
19868
  return 0;
19869
}
19870
_ACEOF
19871
rm -f conftest.$ac_objext
19872
if { (ac_try="$ac_compile"
19873
case "(($ac_try" in
19874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875
  *) ac_try_echo=$ac_try;;
19876
esac
19877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878
  (eval "$ac_compile") 2>conftest.er1
19879
  ac_status=$?
19880
  grep -v '^ *+' conftest.er1 >conftest.err
19881
  rm -f conftest.er1
19882
  cat conftest.err >&5
19883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884
  (exit $ac_status); } && {
19885
         test -z "$ac_c_werror_flag" ||
19886
         test ! -s conftest.err
19887
       } && test -s conftest.$ac_objext; then
19888
  ac_cv_prog_cc_g=yes
19889
else
19890
  echo "$as_me: failed program was:" >&5
19891
sed 's/^/| /' conftest.$ac_ext >&5
19892
 
19893
        CFLAGS=""
19894
      cat >conftest.$ac_ext <<_ACEOF
19895
/* confdefs.h.  */
19896
_ACEOF
19897
cat confdefs.h >>conftest.$ac_ext
19898
cat >>conftest.$ac_ext <<_ACEOF
19899
/* end confdefs.h.  */
19900
 
19901
int
19902
main ()
19903
{
19904
 
19905
  ;
19906
  return 0;
19907
}
19908
_ACEOF
19909
rm -f conftest.$ac_objext
19910
if { (ac_try="$ac_compile"
19911
case "(($ac_try" in
19912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913
  *) ac_try_echo=$ac_try;;
19914
esac
19915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916
  (eval "$ac_compile") 2>conftest.er1
19917
  ac_status=$?
19918
  grep -v '^ *+' conftest.er1 >conftest.err
19919
  rm -f conftest.er1
19920
  cat conftest.err >&5
19921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922
  (exit $ac_status); } && {
19923
         test -z "$ac_c_werror_flag" ||
19924
         test ! -s conftest.err
19925
       } && test -s conftest.$ac_objext; then
19926
  :
19927
else
19928
  echo "$as_me: failed program was:" >&5
19929
sed 's/^/| /' conftest.$ac_ext >&5
19930
 
19931
        ac_c_werror_flag=$ac_save_c_werror_flag
19932
         CFLAGS="-g"
19933
         cat >conftest.$ac_ext <<_ACEOF
19934
/* confdefs.h.  */
19935
_ACEOF
19936
cat confdefs.h >>conftest.$ac_ext
19937
cat >>conftest.$ac_ext <<_ACEOF
19938
/* end confdefs.h.  */
19939
 
19940
int
19941
main ()
19942
{
19943
 
19944
  ;
19945
  return 0;
19946
}
19947
_ACEOF
19948
rm -f conftest.$ac_objext
19949
if { (ac_try="$ac_compile"
19950
case "(($ac_try" in
19951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952
  *) ac_try_echo=$ac_try;;
19953
esac
19954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955
  (eval "$ac_compile") 2>conftest.er1
19956
  ac_status=$?
19957
  grep -v '^ *+' conftest.er1 >conftest.err
19958
  rm -f conftest.er1
19959
  cat conftest.err >&5
19960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961
  (exit $ac_status); } && {
19962
         test -z "$ac_c_werror_flag" ||
19963
         test ! -s conftest.err
19964
       } && test -s conftest.$ac_objext; then
19965
  ac_cv_prog_cc_g=yes
19966
else
19967
  echo "$as_me: failed program was:" >&5
19968
sed 's/^/| /' conftest.$ac_ext >&5
19969
 
19970
 
19971
fi
19972
 
19973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974
fi
19975
 
19976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977
fi
19978
 
19979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980
   ac_c_werror_flag=$ac_save_c_werror_flag
19981
fi
19982
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19983
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19984
if test "$ac_test_CFLAGS" = set; then
19985
  CFLAGS=$ac_save_CFLAGS
19986
elif test $ac_cv_prog_cc_g = yes; then
19987
  if test "$GCC" = yes; then
19988
    CFLAGS="-g -O2"
19989
  else
19990
    CFLAGS="-g"
19991
  fi
19992
else
19993
  if test "$GCC" = yes; then
19994
    CFLAGS="-O2"
19995
  else
19996
    CFLAGS=
19997
  fi
19998
fi
19999
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20000
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20001
if test "${ac_cv_prog_cc_c89+set}" = set; then
20002
  echo $ECHO_N "(cached) $ECHO_C" >&6
20003
else
20004
  ac_cv_prog_cc_c89=no
20005
ac_save_CC=$CC
20006
cat >conftest.$ac_ext <<_ACEOF
20007
/* confdefs.h.  */
20008
_ACEOF
20009
cat confdefs.h >>conftest.$ac_ext
20010
cat >>conftest.$ac_ext <<_ACEOF
20011
/* end confdefs.h.  */
20012
#include 
20013
#include 
20014
#include 
20015
#include 
20016
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20017
struct buf { int x; };
20018
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20019
static char *e (p, i)
20020
     char **p;
20021
     int i;
20022
{
20023
  return p[i];
20024
}
20025
static char *f (char * (*g) (char **, int), char **p, ...)
20026
{
20027
  char *s;
20028
  va_list v;
20029
  va_start (v,p);
20030
  s = g (p, va_arg (v,int));
20031
  va_end (v);
20032
  return s;
20033
}
20034
 
20035
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20036
   function prototypes and stuff, but not '\xHH' hex character constants.
20037
   These don't provoke an error unfortunately, instead are silently treated
20038
   as 'x'.  The following induces an error, until -std is added to get
20039
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20040
   array size at least.  It's necessary to write '\x00'==0 to get something
20041
   that's true only with -std.  */
20042
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20043
 
20044
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20045
   inside strings and character constants.  */
20046
#define FOO(x) 'x'
20047
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20048
 
20049
int test (int i, double x);
20050
struct s1 {int (*f) (int a);};
20051
struct s2 {int (*f) (double a);};
20052
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20053
int argc;
20054
char **argv;
20055
int
20056
main ()
20057
{
20058
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20059
  ;
20060
  return 0;
20061
}
20062
_ACEOF
20063
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20064
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20065
do
20066
  CC="$ac_save_CC $ac_arg"
20067
  rm -f conftest.$ac_objext
20068
if { (ac_try="$ac_compile"
20069
case "(($ac_try" in
20070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071
  *) ac_try_echo=$ac_try;;
20072
esac
20073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074
  (eval "$ac_compile") 2>conftest.er1
20075
  ac_status=$?
20076
  grep -v '^ *+' conftest.er1 >conftest.err
20077
  rm -f conftest.er1
20078
  cat conftest.err >&5
20079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080
  (exit $ac_status); } && {
20081
         test -z "$ac_c_werror_flag" ||
20082
         test ! -s conftest.err
20083
       } && test -s conftest.$ac_objext; then
20084
  ac_cv_prog_cc_c89=$ac_arg
20085
else
20086
  echo "$as_me: failed program was:" >&5
20087
sed 's/^/| /' conftest.$ac_ext >&5
20088
 
20089
 
20090
fi
20091
 
20092
rm -f core conftest.err conftest.$ac_objext
20093
  test "x$ac_cv_prog_cc_c89" != "xno" && break
20094
done
20095
rm -f conftest.$ac_ext
20096
CC=$ac_save_CC
20097
 
20098
fi
20099
# AC_CACHE_VAL
20100
case "x$ac_cv_prog_cc_c89" in
20101
  x)
20102
    { echo "$as_me:$LINENO: result: none needed" >&5
20103
echo "${ECHO_T}none needed" >&6; } ;;
20104
  xno)
20105
    { echo "$as_me:$LINENO: result: unsupported" >&5
20106
echo "${ECHO_T}unsupported" >&6; } ;;
20107
  *)
20108
    CC="$CC $ac_cv_prog_cc_c89"
20109
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20110
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20111
esac
20112
 
20113
 
20114
ac_ext=c
20115
ac_cpp='$CPP $CPPFLAGS'
20116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20119
 
20120
if test "x$CC" != xcc; then
20121
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20122
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20123
else
20124
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20125
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20126
fi
20127
set dummy $CC; ac_cc=`echo $2 |
20128
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20129
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20130
  echo $ECHO_N "(cached) $ECHO_C" >&6
20131
else
20132
  cat >conftest.$ac_ext <<_ACEOF
20133
/* confdefs.h.  */
20134
_ACEOF
20135
cat confdefs.h >>conftest.$ac_ext
20136
cat >>conftest.$ac_ext <<_ACEOF
20137
/* end confdefs.h.  */
20138
 
20139
int
20140
main ()
20141
{
20142
 
20143
  ;
20144
  return 0;
20145
}
20146
_ACEOF
20147
# Make sure it works both with $CC and with simple cc.
20148
# We do the test twice because some compilers refuse to overwrite an
20149
# existing .o file with -o, though they will create one.
20150
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20151
rm -f conftest2.*
20152
if { (case "(($ac_try" in
20153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154
  *) ac_try_echo=$ac_try;;
20155
esac
20156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157
  (eval "$ac_try") 2>&5
20158
  ac_status=$?
20159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160
  (exit $ac_status); } &&
20161
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163
  *) ac_try_echo=$ac_try;;
20164
esac
20165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166
  (eval "$ac_try") 2>&5
20167
  ac_status=$?
20168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169
  (exit $ac_status); };
20170
then
20171
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20172
  if test "x$CC" != xcc; then
20173
    # Test first that cc exists at all.
20174
    if { ac_try='cc -c conftest.$ac_ext >&5'
20175
  { (case "(($ac_try" in
20176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177
  *) ac_try_echo=$ac_try;;
20178
esac
20179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180
  (eval "$ac_try") 2>&5
20181
  ac_status=$?
20182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183
  (exit $ac_status); }; }; then
20184
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20185
      rm -f conftest2.*
20186
      if { (case "(($ac_try" in
20187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188
  *) ac_try_echo=$ac_try;;
20189
esac
20190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191
  (eval "$ac_try") 2>&5
20192
  ac_status=$?
20193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194
  (exit $ac_status); } &&
20195
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
20196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197
  *) ac_try_echo=$ac_try;;
20198
esac
20199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200
  (eval "$ac_try") 2>&5
20201
  ac_status=$?
20202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203
  (exit $ac_status); };
20204
      then
20205
        # cc works too.
20206
        :
20207
      else
20208
        # cc exists but doesn't like -o.
20209
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
20210
      fi
20211
    fi
20212
  fi
20213
else
20214
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20215
fi
20216
rm -f core conftest*
20217
 
20218
fi
20219
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20220
  { echo "$as_me:$LINENO: result: yes" >&5
20221
echo "${ECHO_T}yes" >&6; }
20222
else
20223
  { echo "$as_me:$LINENO: result: no" >&5
20224
echo "${ECHO_T}no" >&6; }
20225
 
20226
cat >>confdefs.h <<\_ACEOF
20227
@%:@define NO_MINUS_C_MINUS_O 1
20228
_ACEOF
20229
 
20230
fi
20231
 
20232
# FIXME: we rely on the cache variable name because
20233
# there is no other way.
20234
set dummy $CC
20235
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20236
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20237
   # Losing compiler, so override with the script.
20238
   # FIXME: It is wrong to rewrite CC.
20239
   # But if we don't then we get into trouble of one sort or another.
20240
   # A longer-term fix would be to have automake use am__CC in this case,
20241
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20242
   CC="$am_aux_dir/compile $CC"
20243
fi
20244
 
20245
 
20246
 
20247
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20248
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20249
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20250
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20251
  echo $ECHO_N "(cached) $ECHO_C" >&6
20252
else
20253
  cat >conftest.make <<\_ACEOF
20254
SHELL = /bin/sh
20255
all:
20256
        @echo '@@@%%%=$(MAKE)=@@@%%%'
20257
_ACEOF
20258
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20259
case `${MAKE-make} -f conftest.make 2>/dev/null` in
20260
  *@@@%%%=?*=@@@%%%*)
20261
    eval ac_cv_prog_make_${ac_make}_set=yes;;
20262
  *)
20263
    eval ac_cv_prog_make_${ac_make}_set=no;;
20264
esac
20265
rm -f conftest.make
20266
fi
20267
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20268
  { echo "$as_me:$LINENO: result: yes" >&5
20269
echo "${ECHO_T}yes" >&6; }
20270
  SET_MAKE=
20271
else
20272
  { echo "$as_me:$LINENO: result: no" >&5
20273
echo "${ECHO_T}no" >&6; }
20274
  SET_MAKE="MAKE=${MAKE-make}"
20275
fi
20276
 
20277
 
20278
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
20279
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
20280
 
20281
if test $ac_cv_c_compiler_gnu = yes; then
20282
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20283
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20284
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20285
  echo $ECHO_N "(cached) $ECHO_C" >&6
20286
else
20287
    ac_pattern="Autoconf.*'x'"
20288
  cat >conftest.$ac_ext <<_ACEOF
20289
/* confdefs.h.  */
20290
_ACEOF
20291
cat confdefs.h >>conftest.$ac_ext
20292
cat >>conftest.$ac_ext <<_ACEOF
20293
/* end confdefs.h.  */
20294
#include 
20295
Autoconf TIOCGETP
20296
_ACEOF
20297
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20298
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20299
  ac_cv_prog_gcc_traditional=yes
20300
else
20301
  ac_cv_prog_gcc_traditional=no
20302
fi
20303
rm -f conftest*
20304
 
20305
 
20306
  if test $ac_cv_prog_gcc_traditional = no; then
20307
    cat >conftest.$ac_ext <<_ACEOF
20308
/* confdefs.h.  */
20309
_ACEOF
20310
cat confdefs.h >>conftest.$ac_ext
20311
cat >>conftest.$ac_ext <<_ACEOF
20312
/* end confdefs.h.  */
20313
#include 
20314
Autoconf TCGETA
20315
_ACEOF
20316
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20317
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20318
  ac_cv_prog_gcc_traditional=yes
20319
fi
20320
rm -f conftest*
20321
 
20322
  fi
20323
fi
20324
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20325
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20326
  if test $ac_cv_prog_gcc_traditional = yes; then
20327
    CC="$CC -traditional"
20328
  fi
20329
fi
20330
 
20331
# Find a good install program.  We prefer a C program (faster),
20332
# so one script is as good as another.  But avoid the broken or
20333
# incompatible versions:
20334
# SysV /etc/install, /usr/sbin/install
20335
# SunOS /usr/etc/install
20336
# IRIX /sbin/install
20337
# AIX /bin/install
20338
# AmigaOS /C/install, which installs bootblocks on floppy discs
20339
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20340
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20341
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20342
# OS/2's system install, which has a completely different semantic
20343
# ./install, which can be erroneously created by make from ./install.sh.
20344
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20345
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20346
if test -z "$INSTALL"; then
20347
if test "${ac_cv_path_install+set}" = set; then
20348
  echo $ECHO_N "(cached) $ECHO_C" >&6
20349
else
20350
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20351
for as_dir in $PATH
20352
do
20353
  IFS=$as_save_IFS
20354
  test -z "$as_dir" && as_dir=.
20355
  # Account for people who put trailing slashes in PATH elements.
20356
case $as_dir/ in
20357
  ./ | .// | /cC/* | \
20358
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20359
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20360
  /usr/ucb/* ) ;;
20361
  *)
20362
    # OSF1 and SCO ODT 3.0 have their own names for install.
20363
    # Don't use installbsd from OSF since it installs stuff as root
20364
    # by default.
20365
    for ac_prog in ginstall scoinst install; do
20366
      for ac_exec_ext in '' $ac_executable_extensions; do
20367
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20368
          if test $ac_prog = install &&
20369
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20370
            # AIX install.  It has an incompatible calling convention.
20371
            :
20372
          elif test $ac_prog = install &&
20373
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20374
            # program-specific install script used by HP pwplus--don't use.
20375
            :
20376
          else
20377
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20378
            break 3
20379
          fi
20380
        fi
20381
      done
20382
    done
20383
    ;;
20384
esac
20385
done
20386
IFS=$as_save_IFS
20387
 
20388
 
20389
fi
20390
  if test "${ac_cv_path_install+set}" = set; then
20391
    INSTALL=$ac_cv_path_install
20392
  else
20393
    # As a last resort, use the slow shell script.  Don't cache a
20394
    # value for INSTALL within a source directory, because that will
20395
    # break other packages using the cache if that directory is
20396
    # removed, or if the value is a relative name.
20397
    INSTALL=$ac_install_sh
20398
  fi
20399
fi
20400
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20401
echo "${ECHO_T}$INSTALL" >&6; }
20402
 
20403
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20404
# It thinks the first close brace ends the variable substitution.
20405
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20406
 
20407
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20408
 
20409
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20410
 
20411
# Extract the first word of "ar", so it can be a program name with args.
20412
set dummy ar; ac_word=$2
20413
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20414
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20415
if test "${ac_cv_prog_AR+set}" = set; then
20416
  echo $ECHO_N "(cached) $ECHO_C" >&6
20417
else
20418
  if test -n "$AR"; then
20419
  ac_cv_prog_AR="$AR" # Let the user override the test.
20420
else
20421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20422
for as_dir in $PATH
20423
do
20424
  IFS=$as_save_IFS
20425
  test -z "$as_dir" && as_dir=.
20426
  for ac_exec_ext in '' $ac_executable_extensions; do
20427
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20428
    ac_cv_prog_AR="ar"
20429
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20430
    break 2
20431
  fi
20432
done
20433
done
20434
IFS=$as_save_IFS
20435
 
20436
fi
20437
fi
20438
AR=$ac_cv_prog_AR
20439
if test -n "$AR"; then
20440
  { echo "$as_me:$LINENO: result: $AR" >&5
20441
echo "${ECHO_T}$AR" >&6; }
20442
else
20443
  { echo "$as_me:$LINENO: result: no" >&5
20444
echo "${ECHO_T}no" >&6; }
20445
fi
20446
 
20447
 
20448
 
20449
# This is GNU compliant source and uses GNU libraries
20450
 
20451
cat >>confdefs.h <<\_ACEOF
20452
@%:@define _GNU_SOURCE 1
20453
_ACEOF
20454
 
20455
 
20456
# Set default for ARFLAGS, since autoconf does not have a macro for it.
20457
# This allows people to set it when running configure or make
20458
test -n "$ARFLAGS" || ARFLAGS="cr"
20459
 
20460
MAKE_SHELL=/bin/sh
20461
 
20462
 
20463
 
20464
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20465
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20466
if test "${ac_cv_type_signal+set}" = set; then
20467
  echo $ECHO_N "(cached) $ECHO_C" >&6
20468
else
20469
  cat >conftest.$ac_ext <<_ACEOF
20470
/* confdefs.h.  */
20471
_ACEOF
20472
cat confdefs.h >>conftest.$ac_ext
20473
cat >>conftest.$ac_ext <<_ACEOF
20474
/* end confdefs.h.  */
20475
#include 
20476
#include 
20477
 
20478
int
20479
main ()
20480
{
20481
return *(signal (0, 0)) (0) == 1;
20482
  ;
20483
  return 0;
20484
}
20485
_ACEOF
20486
rm -f conftest.$ac_objext
20487
if { (ac_try="$ac_compile"
20488
case "(($ac_try" in
20489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490
  *) ac_try_echo=$ac_try;;
20491
esac
20492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493
  (eval "$ac_compile") 2>conftest.er1
20494
  ac_status=$?
20495
  grep -v '^ *+' conftest.er1 >conftest.err
20496
  rm -f conftest.er1
20497
  cat conftest.err >&5
20498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499
  (exit $ac_status); } && {
20500
         test -z "$ac_c_werror_flag" ||
20501
         test ! -s conftest.err
20502
       } && test -s conftest.$ac_objext; then
20503
  ac_cv_type_signal=int
20504
else
20505
  echo "$as_me: failed program was:" >&5
20506
sed 's/^/| /' conftest.$ac_ext >&5
20507
 
20508
        ac_cv_type_signal=void
20509
fi
20510
 
20511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512
fi
20513
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20514
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20515
 
20516
cat >>confdefs.h <<_ACEOF
20517
@%:@define RETSIGTYPE $ac_cv_type_signal
20518
_ACEOF
20519
 
20520
 
20521
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20522
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20523
if test "${ac_cv_header_stat_broken+set}" = set; then
20524
  echo $ECHO_N "(cached) $ECHO_C" >&6
20525
else
20526
  cat >conftest.$ac_ext <<_ACEOF
20527
/* confdefs.h.  */
20528
_ACEOF
20529
cat confdefs.h >>conftest.$ac_ext
20530
cat >>conftest.$ac_ext <<_ACEOF
20531
/* end confdefs.h.  */
20532
#include 
20533
#include 
20534
 
20535
#if defined S_ISBLK && defined S_IFDIR
20536
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20537
#endif
20538
 
20539
#if defined S_ISBLK && defined S_IFCHR
20540
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20541
#endif
20542
 
20543
#if defined S_ISLNK && defined S_IFREG
20544
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20545
#endif
20546
 
20547
#if defined S_ISSOCK && defined S_IFREG
20548
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20549
#endif
20550
 
20551
_ACEOF
20552
rm -f conftest.$ac_objext
20553
if { (ac_try="$ac_compile"
20554
case "(($ac_try" in
20555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556
  *) ac_try_echo=$ac_try;;
20557
esac
20558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559
  (eval "$ac_compile") 2>conftest.er1
20560
  ac_status=$?
20561
  grep -v '^ *+' conftest.er1 >conftest.err
20562
  rm -f conftest.er1
20563
  cat conftest.err >&5
20564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565
  (exit $ac_status); } && {
20566
         test -z "$ac_c_werror_flag" ||
20567
         test ! -s conftest.err
20568
       } && test -s conftest.$ac_objext; then
20569
  ac_cv_header_stat_broken=no
20570
else
20571
  echo "$as_me: failed program was:" >&5
20572
sed 's/^/| /' conftest.$ac_ext >&5
20573
 
20574
        ac_cv_header_stat_broken=yes
20575
fi
20576
 
20577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578
fi
20579
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20580
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20581
if test $ac_cv_header_stat_broken = yes; then
20582
 
20583
cat >>confdefs.h <<\_ACEOF
20584
@%:@define STAT_MACROS_BROKEN 1
20585
_ACEOF
20586
 
20587
fi
20588
 
20589
 
20590
 
20591
 
20592
 
20593
 
20594
ac_header_dirent=no
20595
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20596
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20597
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20598
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20599
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600
  echo $ECHO_N "(cached) $ECHO_C" >&6
20601
else
20602
  cat >conftest.$ac_ext <<_ACEOF
20603
/* confdefs.h.  */
20604
_ACEOF
20605
cat confdefs.h >>conftest.$ac_ext
20606
cat >>conftest.$ac_ext <<_ACEOF
20607
/* end confdefs.h.  */
20608
#include 
20609
#include <$ac_hdr>
20610
 
20611
int
20612
main ()
20613
{
20614
if ((DIR *) 0)
20615
return 0;
20616
  ;
20617
  return 0;
20618
}
20619
_ACEOF
20620
rm -f conftest.$ac_objext
20621
if { (ac_try="$ac_compile"
20622
case "(($ac_try" in
20623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624
  *) ac_try_echo=$ac_try;;
20625
esac
20626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627
  (eval "$ac_compile") 2>conftest.er1
20628
  ac_status=$?
20629
  grep -v '^ *+' conftest.er1 >conftest.err
20630
  rm -f conftest.er1
20631
  cat conftest.err >&5
20632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633
  (exit $ac_status); } && {
20634
         test -z "$ac_c_werror_flag" ||
20635
         test ! -s conftest.err
20636
       } && test -s conftest.$ac_objext; then
20637
  eval "$as_ac_Header=yes"
20638
else
20639
  echo "$as_me: failed program was:" >&5
20640
sed 's/^/| /' conftest.$ac_ext >&5
20641
 
20642
        eval "$as_ac_Header=no"
20643
fi
20644
 
20645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20646
fi
20647
ac_res=`eval echo '${'$as_ac_Header'}'`
20648
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20649
echo "${ECHO_T}$ac_res" >&6; }
20650
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20651
  cat >>confdefs.h <<_ACEOF
20652
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20653
_ACEOF
20654
 
20655
ac_header_dirent=$ac_hdr; break
20656
fi
20657
 
20658
done
20659
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20660
if test $ac_header_dirent = dirent.h; then
20661
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20662
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20663
if test "${ac_cv_search_opendir+set}" = set; then
20664
  echo $ECHO_N "(cached) $ECHO_C" >&6
20665
else
20666
  ac_func_search_save_LIBS=$LIBS
20667
cat >conftest.$ac_ext <<_ACEOF
20668
/* confdefs.h.  */
20669
_ACEOF
20670
cat confdefs.h >>conftest.$ac_ext
20671
cat >>conftest.$ac_ext <<_ACEOF
20672
/* end confdefs.h.  */
20673
 
20674
/* Override any GCC internal prototype to avoid an error.
20675
   Use char because int might match the return type of a GCC
20676
   builtin and then its argument prototype would still apply.  */
20677
#ifdef __cplusplus
20678
extern "C"
20679
#endif
20680
char opendir ();
20681
int
20682
main ()
20683
{
20684
return opendir ();
20685
  ;
20686
  return 0;
20687
}
20688
_ACEOF
20689
for ac_lib in '' dir; do
20690
  if test -z "$ac_lib"; then
20691
    ac_res="none required"
20692
  else
20693
    ac_res=-l$ac_lib
20694
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20695
  fi
20696
  rm -f conftest.$ac_objext conftest$ac_exeext
20697
if { (ac_try="$ac_link"
20698
case "(($ac_try" in
20699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700
  *) ac_try_echo=$ac_try;;
20701
esac
20702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703
  (eval "$ac_link") 2>conftest.er1
20704
  ac_status=$?
20705
  grep -v '^ *+' conftest.er1 >conftest.err
20706
  rm -f conftest.er1
20707
  cat conftest.err >&5
20708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709
  (exit $ac_status); } && {
20710
         test -z "$ac_c_werror_flag" ||
20711
         test ! -s conftest.err
20712
       } && test -s conftest$ac_exeext &&
20713
       $as_test_x conftest$ac_exeext; then
20714
  ac_cv_search_opendir=$ac_res
20715
else
20716
  echo "$as_me: failed program was:" >&5
20717
sed 's/^/| /' conftest.$ac_ext >&5
20718
 
20719
 
20720
fi
20721
 
20722
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723
      conftest$ac_exeext
20724
  if test "${ac_cv_search_opendir+set}" = set; then
20725
  break
20726
fi
20727
done
20728
if test "${ac_cv_search_opendir+set}" = set; then
20729
  :
20730
else
20731
  ac_cv_search_opendir=no
20732
fi
20733
rm conftest.$ac_ext
20734
LIBS=$ac_func_search_save_LIBS
20735
fi
20736
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20737
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20738
ac_res=$ac_cv_search_opendir
20739
if test "$ac_res" != no; then
20740
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20741
 
20742
fi
20743
 
20744
else
20745
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20746
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20747
if test "${ac_cv_search_opendir+set}" = set; then
20748
  echo $ECHO_N "(cached) $ECHO_C" >&6
20749
else
20750
  ac_func_search_save_LIBS=$LIBS
20751
cat >conftest.$ac_ext <<_ACEOF
20752
/* confdefs.h.  */
20753
_ACEOF
20754
cat confdefs.h >>conftest.$ac_ext
20755
cat >>conftest.$ac_ext <<_ACEOF
20756
/* end confdefs.h.  */
20757
 
20758
/* Override any GCC internal prototype to avoid an error.
20759
   Use char because int might match the return type of a GCC
20760
   builtin and then its argument prototype would still apply.  */
20761
#ifdef __cplusplus
20762
extern "C"
20763
#endif
20764
char opendir ();
20765
int
20766
main ()
20767
{
20768
return opendir ();
20769
  ;
20770
  return 0;
20771
}
20772
_ACEOF
20773
for ac_lib in '' x; do
20774
  if test -z "$ac_lib"; then
20775
    ac_res="none required"
20776
  else
20777
    ac_res=-l$ac_lib
20778
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20779
  fi
20780
  rm -f conftest.$ac_objext conftest$ac_exeext
20781
if { (ac_try="$ac_link"
20782
case "(($ac_try" in
20783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784
  *) ac_try_echo=$ac_try;;
20785
esac
20786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787
  (eval "$ac_link") 2>conftest.er1
20788
  ac_status=$?
20789
  grep -v '^ *+' conftest.er1 >conftest.err
20790
  rm -f conftest.er1
20791
  cat conftest.err >&5
20792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793
  (exit $ac_status); } && {
20794
         test -z "$ac_c_werror_flag" ||
20795
         test ! -s conftest.err
20796
       } && test -s conftest$ac_exeext &&
20797
       $as_test_x conftest$ac_exeext; then
20798
  ac_cv_search_opendir=$ac_res
20799
else
20800
  echo "$as_me: failed program was:" >&5
20801
sed 's/^/| /' conftest.$ac_ext >&5
20802
 
20803
 
20804
fi
20805
 
20806
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20807
      conftest$ac_exeext
20808
  if test "${ac_cv_search_opendir+set}" = set; then
20809
  break
20810
fi
20811
done
20812
if test "${ac_cv_search_opendir+set}" = set; then
20813
  :
20814
else
20815
  ac_cv_search_opendir=no
20816
fi
20817
rm conftest.$ac_ext
20818
LIBS=$ac_func_search_save_LIBS
20819
fi
20820
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20821
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20822
ac_res=$ac_cv_search_opendir
20823
if test "$ac_res" != no; then
20824
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20825
 
20826
fi
20827
 
20828
fi
20829
 
20830
 
20831
 
20832
 
20833
 
20834
 
20835
 
20836
 
20837
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
20838
do
20839
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20840
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20841
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20842
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20843
  echo $ECHO_N "(cached) $ECHO_C" >&6
20844
else
20845
  cat >conftest.$ac_ext <<_ACEOF
20846
/* confdefs.h.  */
20847
_ACEOF
20848
cat confdefs.h >>conftest.$ac_ext
20849
cat >>conftest.$ac_ext <<_ACEOF
20850
/* end confdefs.h.  */
20851
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20852
   For example, HP-UX 11i  declares gettimeofday.  */
20853
#define $ac_func innocuous_$ac_func
20854
 
20855
/* System header to define __stub macros and hopefully few prototypes,
20856
    which can conflict with char $ac_func (); below.
20857
    Prefer  to  if __STDC__ is defined, since
20858
     exists even on freestanding compilers.  */
20859
 
20860
#ifdef __STDC__
20861
# include 
20862
#else
20863
# include 
20864
#endif
20865
 
20866
#undef $ac_func
20867
 
20868
/* Override any GCC internal prototype to avoid an error.
20869
   Use char because int might match the return type of a GCC
20870
   builtin and then its argument prototype would still apply.  */
20871
#ifdef __cplusplus
20872
extern "C"
20873
#endif
20874
char $ac_func ();
20875
/* The GNU C library defines this for functions which it implements
20876
    to always fail with ENOSYS.  Some functions are actually named
20877
    something starting with __ and the normal name is an alias.  */
20878
#if defined __stub_$ac_func || defined __stub___$ac_func
20879
choke me
20880
#endif
20881
 
20882
int
20883
main ()
20884
{
20885
return $ac_func ();
20886
  ;
20887
  return 0;
20888
}
20889
_ACEOF
20890
rm -f conftest.$ac_objext conftest$ac_exeext
20891
if { (ac_try="$ac_link"
20892
case "(($ac_try" in
20893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894
  *) ac_try_echo=$ac_try;;
20895
esac
20896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897
  (eval "$ac_link") 2>conftest.er1
20898
  ac_status=$?
20899
  grep -v '^ *+' conftest.er1 >conftest.err
20900
  rm -f conftest.er1
20901
  cat conftest.err >&5
20902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903
  (exit $ac_status); } && {
20904
         test -z "$ac_c_werror_flag" ||
20905
         test ! -s conftest.err
20906
       } && test -s conftest$ac_exeext &&
20907
       $as_test_x conftest$ac_exeext; then
20908
  eval "$as_ac_var=yes"
20909
else
20910
  echo "$as_me: failed program was:" >&5
20911
sed 's/^/| /' conftest.$ac_ext >&5
20912
 
20913
        eval "$as_ac_var=no"
20914
fi
20915
 
20916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20917
      conftest$ac_exeext conftest.$ac_ext
20918
fi
20919
ac_res=`eval echo '${'$as_ac_var'}'`
20920
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20921
echo "${ECHO_T}$ac_res" >&6; }
20922
if test `eval echo '${'$as_ac_var'}'` = yes; then
20923
  cat >>confdefs.h <<_ACEOF
20924
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20925
_ACEOF
20926
 
20927
fi
20928
done
20929
 
20930
 
20931
 
20932
 
20933
 
20934
 
20935
 
20936
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
20937
do
20938
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20939
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20940
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20941
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20942
  echo $ECHO_N "(cached) $ECHO_C" >&6
20943
else
20944
  cat >conftest.$ac_ext <<_ACEOF
20945
/* confdefs.h.  */
20946
_ACEOF
20947
cat confdefs.h >>conftest.$ac_ext
20948
cat >>conftest.$ac_ext <<_ACEOF
20949
/* end confdefs.h.  */
20950
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20951
   For example, HP-UX 11i  declares gettimeofday.  */
20952
#define $ac_func innocuous_$ac_func
20953
 
20954
/* System header to define __stub macros and hopefully few prototypes,
20955
    which can conflict with char $ac_func (); below.
20956
    Prefer  to  if __STDC__ is defined, since
20957
     exists even on freestanding compilers.  */
20958
 
20959
#ifdef __STDC__
20960
# include 
20961
#else
20962
# include 
20963
#endif
20964
 
20965
#undef $ac_func
20966
 
20967
/* Override any GCC internal prototype to avoid an error.
20968
   Use char because int might match the return type of a GCC
20969
   builtin and then its argument prototype would still apply.  */
20970
#ifdef __cplusplus
20971
extern "C"
20972
#endif
20973
char $ac_func ();
20974
/* The GNU C library defines this for functions which it implements
20975
    to always fail with ENOSYS.  Some functions are actually named
20976
    something starting with __ and the normal name is an alias.  */
20977
#if defined __stub_$ac_func || defined __stub___$ac_func
20978
choke me
20979
#endif
20980
 
20981
int
20982
main ()
20983
{
20984
return $ac_func ();
20985
  ;
20986
  return 0;
20987
}
20988
_ACEOF
20989
rm -f conftest.$ac_objext conftest$ac_exeext
20990
if { (ac_try="$ac_link"
20991
case "(($ac_try" in
20992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993
  *) ac_try_echo=$ac_try;;
20994
esac
20995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996
  (eval "$ac_link") 2>conftest.er1
20997
  ac_status=$?
20998
  grep -v '^ *+' conftest.er1 >conftest.err
20999
  rm -f conftest.er1
21000
  cat conftest.err >&5
21001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002
  (exit $ac_status); } && {
21003
         test -z "$ac_c_werror_flag" ||
21004
         test ! -s conftest.err
21005
       } && test -s conftest$ac_exeext &&
21006
       $as_test_x conftest$ac_exeext; then
21007
  eval "$as_ac_var=yes"
21008
else
21009
  echo "$as_me: failed program was:" >&5
21010
sed 's/^/| /' conftest.$ac_ext >&5
21011
 
21012
        eval "$as_ac_var=no"
21013
fi
21014
 
21015
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016
      conftest$ac_exeext conftest.$ac_ext
21017
fi
21018
ac_res=`eval echo '${'$as_ac_var'}'`
21019
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21020
echo "${ECHO_T}$ac_res" >&6; }
21021
if test `eval echo '${'$as_ac_var'}'` = yes; then
21022
  cat >>confdefs.h <<_ACEOF
21023
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21024
_ACEOF
21025
 
21026
fi
21027
done
21028
 
21029
 
21030
for ac_func in basename
21031
do
21032
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21033
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21034
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21035
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21036
  echo $ECHO_N "(cached) $ECHO_C" >&6
21037
else
21038
  cat >conftest.$ac_ext <<_ACEOF
21039
/* confdefs.h.  */
21040
_ACEOF
21041
cat confdefs.h >>conftest.$ac_ext
21042
cat >>conftest.$ac_ext <<_ACEOF
21043
/* end confdefs.h.  */
21044
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21045
   For example, HP-UX 11i  declares gettimeofday.  */
21046
#define $ac_func innocuous_$ac_func
21047
 
21048
/* System header to define __stub macros and hopefully few prototypes,
21049
    which can conflict with char $ac_func (); below.
21050
    Prefer  to  if __STDC__ is defined, since
21051
     exists even on freestanding compilers.  */
21052
 
21053
#ifdef __STDC__
21054
# include 
21055
#else
21056
# include 
21057
#endif
21058
 
21059
#undef $ac_func
21060
 
21061
/* Override any GCC internal prototype to avoid an error.
21062
   Use char because int might match the return type of a GCC
21063
   builtin and then its argument prototype would still apply.  */
21064
#ifdef __cplusplus
21065
extern "C"
21066
#endif
21067
char $ac_func ();
21068
/* The GNU C library defines this for functions which it implements
21069
    to always fail with ENOSYS.  Some functions are actually named
21070
    something starting with __ and the normal name is an alias.  */
21071
#if defined __stub_$ac_func || defined __stub___$ac_func
21072
choke me
21073
#endif
21074
 
21075
int
21076
main ()
21077
{
21078
return $ac_func ();
21079
  ;
21080
  return 0;
21081
}
21082
_ACEOF
21083
rm -f conftest.$ac_objext conftest$ac_exeext
21084
if { (ac_try="$ac_link"
21085
case "(($ac_try" in
21086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087
  *) ac_try_echo=$ac_try;;
21088
esac
21089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090
  (eval "$ac_link") 2>conftest.er1
21091
  ac_status=$?
21092
  grep -v '^ *+' conftest.er1 >conftest.err
21093
  rm -f conftest.er1
21094
  cat conftest.err >&5
21095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096
  (exit $ac_status); } && {
21097
         test -z "$ac_c_werror_flag" ||
21098
         test ! -s conftest.err
21099
       } && test -s conftest$ac_exeext &&
21100
       $as_test_x conftest$ac_exeext; then
21101
  eval "$as_ac_var=yes"
21102
else
21103
  echo "$as_me: failed program was:" >&5
21104
sed 's/^/| /' conftest.$ac_ext >&5
21105
 
21106
        eval "$as_ac_var=no"
21107
fi
21108
 
21109
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21110
      conftest$ac_exeext conftest.$ac_ext
21111
fi
21112
ac_res=`eval echo '${'$as_ac_var'}'`
21113
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21114
echo "${ECHO_T}$ac_res" >&6; }
21115
if test `eval echo '${'$as_ac_var'}'` = yes; then
21116
  cat >>confdefs.h <<_ACEOF
21117
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21118
_ACEOF
21119
 
21120
fi
21121
done
21122
 
21123
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
21124
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
21125
if test "${ac_cv_func_strcoll_works+set}" = set; then
21126
  echo $ECHO_N "(cached) $ECHO_C" >&6
21127
else
21128
  if test "$cross_compiling" = yes; then
21129
  ac_cv_func_strcoll_works=no
21130
else
21131
  cat >conftest.$ac_ext <<_ACEOF
21132
/* confdefs.h.  */
21133
_ACEOF
21134
cat confdefs.h >>conftest.$ac_ext
21135
cat >>conftest.$ac_ext <<_ACEOF
21136
/* end confdefs.h.  */
21137
$ac_includes_default
21138
int
21139
main ()
21140
{
21141
return (strcoll ("abc", "def") >= 0 ||
21142
         strcoll ("ABC", "DEF") >= 0 ||
21143
         strcoll ("123", "456") >= 0)
21144
  ;
21145
  return 0;
21146
}
21147
_ACEOF
21148
rm -f conftest$ac_exeext
21149
if { (ac_try="$ac_link"
21150
case "(($ac_try" in
21151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152
  *) ac_try_echo=$ac_try;;
21153
esac
21154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155
  (eval "$ac_link") 2>&5
21156
  ac_status=$?
21157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21159
  { (case "(($ac_try" in
21160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161
  *) ac_try_echo=$ac_try;;
21162
esac
21163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164
  (eval "$ac_try") 2>&5
21165
  ac_status=$?
21166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167
  (exit $ac_status); }; }; then
21168
  ac_cv_func_strcoll_works=yes
21169
else
21170
  echo "$as_me: program exited with status $ac_status" >&5
21171
echo "$as_me: failed program was:" >&5
21172
sed 's/^/| /' conftest.$ac_ext >&5
21173
 
21174
( exit $ac_status )
21175
ac_cv_func_strcoll_works=no
21176
fi
21177
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21178
fi
21179
 
21180
 
21181
fi
21182
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
21183
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
21184
if test $ac_cv_func_strcoll_works = yes; then
21185
 
21186
cat >>confdefs.h <<\_ACEOF
21187
@%:@define HAVE_STRCOLL 1
21188
_ACEOF
21189
 
21190
fi
21191
 
21192
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21193
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21194
if test "${ac_cv_header_stdc+set}" = set; then
21195
  echo $ECHO_N "(cached) $ECHO_C" >&6
21196
else
21197
  cat >conftest.$ac_ext <<_ACEOF
21198
/* confdefs.h.  */
21199
_ACEOF
21200
cat confdefs.h >>conftest.$ac_ext
21201
cat >>conftest.$ac_ext <<_ACEOF
21202
/* end confdefs.h.  */
21203
#include 
21204
#include 
21205
#include 
21206
#include 
21207
 
21208
int
21209
main ()
21210
{
21211
 
21212
  ;
21213
  return 0;
21214
}
21215
_ACEOF
21216
rm -f conftest.$ac_objext
21217
if { (ac_try="$ac_compile"
21218
case "(($ac_try" in
21219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220
  *) ac_try_echo=$ac_try;;
21221
esac
21222
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223
  (eval "$ac_compile") 2>conftest.er1
21224
  ac_status=$?
21225
  grep -v '^ *+' conftest.er1 >conftest.err
21226
  rm -f conftest.er1
21227
  cat conftest.err >&5
21228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229
  (exit $ac_status); } && {
21230
         test -z "$ac_c_werror_flag" ||
21231
         test ! -s conftest.err
21232
       } && test -s conftest.$ac_objext; then
21233
  ac_cv_header_stdc=yes
21234
else
21235
  echo "$as_me: failed program was:" >&5
21236
sed 's/^/| /' conftest.$ac_ext >&5
21237
 
21238
        ac_cv_header_stdc=no
21239
fi
21240
 
21241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242
 
21243
if test $ac_cv_header_stdc = yes; then
21244
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21245
  cat >conftest.$ac_ext <<_ACEOF
21246
/* confdefs.h.  */
21247
_ACEOF
21248
cat confdefs.h >>conftest.$ac_ext
21249
cat >>conftest.$ac_ext <<_ACEOF
21250
/* end confdefs.h.  */
21251
#include 
21252
 
21253
_ACEOF
21254
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21255
  $EGREP "memchr" >/dev/null 2>&1; then
21256
  :
21257
else
21258
  ac_cv_header_stdc=no
21259
fi
21260
rm -f conftest*
21261
 
21262
fi
21263
 
21264
if test $ac_cv_header_stdc = yes; then
21265
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21266
  cat >conftest.$ac_ext <<_ACEOF
21267
/* confdefs.h.  */
21268
_ACEOF
21269
cat confdefs.h >>conftest.$ac_ext
21270
cat >>conftest.$ac_ext <<_ACEOF
21271
/* end confdefs.h.  */
21272
#include 
21273
 
21274
_ACEOF
21275
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21276
  $EGREP "free" >/dev/null 2>&1; then
21277
  :
21278
else
21279
  ac_cv_header_stdc=no
21280
fi
21281
rm -f conftest*
21282
 
21283
fi
21284
 
21285
if test $ac_cv_header_stdc = yes; then
21286
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21287
  if test "$cross_compiling" = yes; then
21288
  :
21289
else
21290
  cat >conftest.$ac_ext <<_ACEOF
21291
/* confdefs.h.  */
21292
_ACEOF
21293
cat confdefs.h >>conftest.$ac_ext
21294
cat >>conftest.$ac_ext <<_ACEOF
21295
/* end confdefs.h.  */
21296
#include 
21297
#include 
21298
#if ((' ' & 0x0FF) == 0x020)
21299
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21300
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21301
#else
21302
# define ISLOWER(c) \
21303
                   (('a' <= (c) && (c) <= 'i') \
21304
                     || ('j' <= (c) && (c) <= 'r') \
21305
                     || ('s' <= (c) && (c) <= 'z'))
21306
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21307
#endif
21308
 
21309
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21310
int
21311
main ()
21312
{
21313
  int i;
21314
  for (i = 0; i < 256; i++)
21315
    if (XOR (islower (i), ISLOWER (i))
21316
        || toupper (i) != TOUPPER (i))
21317
      return 2;
21318
  return 0;
21319
}
21320
_ACEOF
21321
rm -f conftest$ac_exeext
21322
if { (ac_try="$ac_link"
21323
case "(($ac_try" in
21324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325
  *) ac_try_echo=$ac_try;;
21326
esac
21327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328
  (eval "$ac_link") 2>&5
21329
  ac_status=$?
21330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21332
  { (case "(($ac_try" in
21333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334
  *) ac_try_echo=$ac_try;;
21335
esac
21336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337
  (eval "$ac_try") 2>&5
21338
  ac_status=$?
21339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340
  (exit $ac_status); }; }; then
21341
  :
21342
else
21343
  echo "$as_me: program exited with status $ac_status" >&5
21344
echo "$as_me: failed program was:" >&5
21345
sed 's/^/| /' conftest.$ac_ext >&5
21346
 
21347
( exit $ac_status )
21348
ac_cv_header_stdc=no
21349
fi
21350
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21351
fi
21352
 
21353
 
21354
fi
21355
fi
21356
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21357
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21358
if test $ac_cv_header_stdc = yes; then
21359
 
21360
cat >>confdefs.h <<\_ACEOF
21361
@%:@define STDC_HEADERS 1
21362
_ACEOF
21363
 
21364
fi
21365
 
21366
 
21367
 
21368
 
21369
 
21370
 
21371
 
21372
 
21373
 
21374
 
21375
 
21376
 
21377
 
21378
 
21379
 
21380
 
21381
 
21382
 
21383
 
21384
 
21385
 
21386
 
21387
 
21388
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
21389
                sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
21390
                termcap.h termios.h termio.h sys/file.h locale.h getopt.h \
21391
                net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
21392
do
21393
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21396
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21397
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398
  echo $ECHO_N "(cached) $ECHO_C" >&6
21399
fi
21400
ac_res=`eval echo '${'$as_ac_Header'}'`
21401
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21402
echo "${ECHO_T}$ac_res" >&6; }
21403
else
21404
  # Is the header compilable?
21405
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21406
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21407
cat >conftest.$ac_ext <<_ACEOF
21408
/* confdefs.h.  */
21409
_ACEOF
21410
cat confdefs.h >>conftest.$ac_ext
21411
cat >>conftest.$ac_ext <<_ACEOF
21412
/* end confdefs.h.  */
21413
$ac_includes_default
21414
@%:@include <$ac_header>
21415
_ACEOF
21416
rm -f conftest.$ac_objext
21417
if { (ac_try="$ac_compile"
21418
case "(($ac_try" in
21419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420
  *) ac_try_echo=$ac_try;;
21421
esac
21422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423
  (eval "$ac_compile") 2>conftest.er1
21424
  ac_status=$?
21425
  grep -v '^ *+' conftest.er1 >conftest.err
21426
  rm -f conftest.er1
21427
  cat conftest.err >&5
21428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429
  (exit $ac_status); } && {
21430
         test -z "$ac_c_werror_flag" ||
21431
         test ! -s conftest.err
21432
       } && test -s conftest.$ac_objext; then
21433
  ac_header_compiler=yes
21434
else
21435
  echo "$as_me: failed program was:" >&5
21436
sed 's/^/| /' conftest.$ac_ext >&5
21437
 
21438
        ac_header_compiler=no
21439
fi
21440
 
21441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21443
echo "${ECHO_T}$ac_header_compiler" >&6; }
21444
 
21445
# Is the header present?
21446
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21447
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21448
cat >conftest.$ac_ext <<_ACEOF
21449
/* confdefs.h.  */
21450
_ACEOF
21451
cat confdefs.h >>conftest.$ac_ext
21452
cat >>conftest.$ac_ext <<_ACEOF
21453
/* end confdefs.h.  */
21454
@%:@include <$ac_header>
21455
_ACEOF
21456
if { (ac_try="$ac_cpp conftest.$ac_ext"
21457
case "(($ac_try" in
21458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459
  *) ac_try_echo=$ac_try;;
21460
esac
21461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21463
  ac_status=$?
21464
  grep -v '^ *+' conftest.er1 >conftest.err
21465
  rm -f conftest.er1
21466
  cat conftest.err >&5
21467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468
  (exit $ac_status); } >/dev/null && {
21469
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21470
         test ! -s conftest.err
21471
       }; then
21472
  ac_header_preproc=yes
21473
else
21474
  echo "$as_me: failed program was:" >&5
21475
sed 's/^/| /' conftest.$ac_ext >&5
21476
 
21477
  ac_header_preproc=no
21478
fi
21479
 
21480
rm -f conftest.err conftest.$ac_ext
21481
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21482
echo "${ECHO_T}$ac_header_preproc" >&6; }
21483
 
21484
# So?  What about this header?
21485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21486
  yes:no: )
21487
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21488
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21489
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21490
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21491
    ac_header_preproc=yes
21492
    ;;
21493
  no:yes:* )
21494
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21495
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21496
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21497
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21498
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21499
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21500
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21501
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21502
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21503
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21504
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21505
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21506
    ( cat <<\_ASBOX
21507
@%:@@%:@ ------------------------------------- @%:@@%:@
21508
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
21509
@%:@@%:@ ------------------------------------- @%:@@%:@
21510
_ASBOX
21511
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21512
    ;;
21513
esac
21514
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21517
  echo $ECHO_N "(cached) $ECHO_C" >&6
21518
else
21519
  eval "$as_ac_Header=\$ac_header_preproc"
21520
fi
21521
ac_res=`eval echo '${'$as_ac_Header'}'`
21522
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21523
echo "${ECHO_T}$ac_res" >&6; }
21524
 
21525
fi
21526
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21527
  cat >>confdefs.h <<_ACEOF
21528
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21529
_ACEOF
21530
 
21531
fi
21532
 
21533
done
21534
 
21535
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21536
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21537
if test "${ac_cv_c_bigendian+set}" = set; then
21538
  echo $ECHO_N "(cached) $ECHO_C" >&6
21539
else
21540
  # See if sys/param.h defines the BYTE_ORDER macro.
21541
cat >conftest.$ac_ext <<_ACEOF
21542
/* confdefs.h.  */
21543
_ACEOF
21544
cat confdefs.h >>conftest.$ac_ext
21545
cat >>conftest.$ac_ext <<_ACEOF
21546
/* end confdefs.h.  */
21547
#include 
21548
#include 
21549
 
21550
int
21551
main ()
21552
{
21553
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21554
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21555
 bogus endian macros
21556
#endif
21557
 
21558
  ;
21559
  return 0;
21560
}
21561
_ACEOF
21562
rm -f conftest.$ac_objext
21563
if { (ac_try="$ac_compile"
21564
case "(($ac_try" in
21565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566
  *) ac_try_echo=$ac_try;;
21567
esac
21568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569
  (eval "$ac_compile") 2>conftest.er1
21570
  ac_status=$?
21571
  grep -v '^ *+' conftest.er1 >conftest.err
21572
  rm -f conftest.er1
21573
  cat conftest.err >&5
21574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575
  (exit $ac_status); } && {
21576
         test -z "$ac_c_werror_flag" ||
21577
         test ! -s conftest.err
21578
       } && test -s conftest.$ac_objext; then
21579
  # It does; now see whether it defined to BIG_ENDIAN or not.
21580
cat >conftest.$ac_ext <<_ACEOF
21581
/* confdefs.h.  */
21582
_ACEOF
21583
cat confdefs.h >>conftest.$ac_ext
21584
cat >>conftest.$ac_ext <<_ACEOF
21585
/* end confdefs.h.  */
21586
#include 
21587
#include 
21588
 
21589
int
21590
main ()
21591
{
21592
#if BYTE_ORDER != BIG_ENDIAN
21593
 not big endian
21594
#endif
21595
 
21596
  ;
21597
  return 0;
21598
}
21599
_ACEOF
21600
rm -f conftest.$ac_objext
21601
if { (ac_try="$ac_compile"
21602
case "(($ac_try" in
21603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604
  *) ac_try_echo=$ac_try;;
21605
esac
21606
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607
  (eval "$ac_compile") 2>conftest.er1
21608
  ac_status=$?
21609
  grep -v '^ *+' conftest.er1 >conftest.err
21610
  rm -f conftest.er1
21611
  cat conftest.err >&5
21612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613
  (exit $ac_status); } && {
21614
         test -z "$ac_c_werror_flag" ||
21615
         test ! -s conftest.err
21616
       } && test -s conftest.$ac_objext; then
21617
  ac_cv_c_bigendian=yes
21618
else
21619
  echo "$as_me: failed program was:" >&5
21620
sed 's/^/| /' conftest.$ac_ext >&5
21621
 
21622
        ac_cv_c_bigendian=no
21623
fi
21624
 
21625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626
else
21627
  echo "$as_me: failed program was:" >&5
21628
sed 's/^/| /' conftest.$ac_ext >&5
21629
 
21630
        # It does not; compile a test program.
21631
if test "$cross_compiling" = yes; then
21632
  # try to guess the endianness by grepping values into an object file
21633
  ac_cv_c_bigendian=unknown
21634
  cat >conftest.$ac_ext <<_ACEOF
21635
/* confdefs.h.  */
21636
_ACEOF
21637
cat confdefs.h >>conftest.$ac_ext
21638
cat >>conftest.$ac_ext <<_ACEOF
21639
/* end confdefs.h.  */
21640
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21641
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21642
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21643
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21644
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21645
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21646
int
21647
main ()
21648
{
21649
 _ascii (); _ebcdic ();
21650
  ;
21651
  return 0;
21652
}
21653
_ACEOF
21654
rm -f conftest.$ac_objext
21655
if { (ac_try="$ac_compile"
21656
case "(($ac_try" in
21657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658
  *) ac_try_echo=$ac_try;;
21659
esac
21660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661
  (eval "$ac_compile") 2>conftest.er1
21662
  ac_status=$?
21663
  grep -v '^ *+' conftest.er1 >conftest.err
21664
  rm -f conftest.er1
21665
  cat conftest.err >&5
21666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667
  (exit $ac_status); } && {
21668
         test -z "$ac_c_werror_flag" ||
21669
         test ! -s conftest.err
21670
       } && test -s conftest.$ac_objext; then
21671
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21672
  ac_cv_c_bigendian=yes
21673
fi
21674
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21675
  if test "$ac_cv_c_bigendian" = unknown; then
21676
    ac_cv_c_bigendian=no
21677
  else
21678
    # finding both strings is unlikely to happen, but who knows?
21679
    ac_cv_c_bigendian=unknown
21680
  fi
21681
fi
21682
else
21683
  echo "$as_me: failed program was:" >&5
21684
sed 's/^/| /' conftest.$ac_ext >&5
21685
 
21686
 
21687
fi
21688
 
21689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21690
else
21691
  cat >conftest.$ac_ext <<_ACEOF
21692
/* confdefs.h.  */
21693
_ACEOF
21694
cat confdefs.h >>conftest.$ac_ext
21695
cat >>conftest.$ac_ext <<_ACEOF
21696
/* end confdefs.h.  */
21697
$ac_includes_default
21698
int
21699
main ()
21700
{
21701
 
21702
  /* Are we little or big endian?  From Harbison&Steele.  */
21703
  union
21704
  {
21705
    long int l;
21706
    char c[sizeof (long int)];
21707
  } u;
21708
  u.l = 1;
21709
  return u.c[sizeof (long int) - 1] == 1;
21710
 
21711
  ;
21712
  return 0;
21713
}
21714
_ACEOF
21715
rm -f conftest$ac_exeext
21716
if { (ac_try="$ac_link"
21717
case "(($ac_try" in
21718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719
  *) ac_try_echo=$ac_try;;
21720
esac
21721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722
  (eval "$ac_link") 2>&5
21723
  ac_status=$?
21724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21726
  { (case "(($ac_try" in
21727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728
  *) ac_try_echo=$ac_try;;
21729
esac
21730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731
  (eval "$ac_try") 2>&5
21732
  ac_status=$?
21733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734
  (exit $ac_status); }; }; then
21735
  ac_cv_c_bigendian=no
21736
else
21737
  echo "$as_me: program exited with status $ac_status" >&5
21738
echo "$as_me: failed program was:" >&5
21739
sed 's/^/| /' conftest.$ac_ext >&5
21740
 
21741
( exit $ac_status )
21742
ac_cv_c_bigendian=yes
21743
fi
21744
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21745
fi
21746
 
21747
 
21748
fi
21749
 
21750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21751
fi
21752
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21753
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21754
case $ac_cv_c_bigendian in
21755
  yes)
21756
 
21757
cat >>confdefs.h <<\_ACEOF
21758
@%:@define WORDS_BIGENDIAN 1
21759
_ACEOF
21760
 ;;
21761
  no)
21762
     ;;
21763
  *)
21764
    { { echo "$as_me:$LINENO: error: unknown endianness
21765
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21766
echo "$as_me: error: unknown endianness
21767
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21768
   { (exit 1); exit 1; }; } ;;
21769
esac
21770
 
21771
 
21772
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
21773
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21774
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21775
if test "${ac_cv_c_const+set}" = set; then
21776
  echo $ECHO_N "(cached) $ECHO_C" >&6
21777
else
21778
  cat >conftest.$ac_ext <<_ACEOF
21779
/* confdefs.h.  */
21780
_ACEOF
21781
cat confdefs.h >>conftest.$ac_ext
21782
cat >>conftest.$ac_ext <<_ACEOF
21783
/* end confdefs.h.  */
21784
 
21785
int
21786
main ()
21787
{
21788
/* FIXME: Include the comments suggested by Paul. */
21789
#ifndef __cplusplus
21790
  /* Ultrix mips cc rejects this.  */
21791
  typedef int charset[2];
21792
  const charset cs;
21793
  /* SunOS 4.1.1 cc rejects this.  */
21794
  char const *const *pcpcc;
21795
  char **ppc;
21796
  /* NEC SVR4.0.2 mips cc rejects this.  */
21797
  struct point {int x, y;};
21798
  static struct point const zero = {0,0};
21799
  /* AIX XL C 1.02.0.0 rejects this.
21800
     It does not let you subtract one const X* pointer from another in
21801
     an arm of an if-expression whose if-part is not a constant
21802
     expression */
21803
  const char *g = "string";
21804
  pcpcc = &g + (g ? g-g : 0);
21805
  /* HPUX 7.0 cc rejects these. */
21806
  ++pcpcc;
21807
  ppc = (char**) pcpcc;
21808
  pcpcc = (char const *const *) ppc;
21809
  { /* SCO 3.2v4 cc rejects this.  */
21810
    char *t;
21811
    char const *s = 0 ? (char *) 0 : (char const *) 0;
21812
 
21813
    *t++ = 0;
21814
    if (s) return 0;
21815
  }
21816
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21817
    int x[] = {25, 17};
21818
    const int *foo = &x[0];
21819
    ++foo;
21820
  }
21821
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21822
    typedef const int *iptr;
21823
    iptr p = 0;
21824
    ++p;
21825
  }
21826
  { /* AIX XL C 1.02.0.0 rejects this saying
21827
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21828
    struct s { int j; const int *ap[3]; };
21829
    struct s *b; b->j = 5;
21830
  }
21831
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21832
    const int foo = 10;
21833
    if (!foo) return 0;
21834
  }
21835
  return !cs[0] && !zero.x;
21836
#endif
21837
 
21838
  ;
21839
  return 0;
21840
}
21841
_ACEOF
21842
rm -f conftest.$ac_objext
21843
if { (ac_try="$ac_compile"
21844
case "(($ac_try" in
21845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846
  *) ac_try_echo=$ac_try;;
21847
esac
21848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849
  (eval "$ac_compile") 2>conftest.er1
21850
  ac_status=$?
21851
  grep -v '^ *+' conftest.er1 >conftest.err
21852
  rm -f conftest.er1
21853
  cat conftest.err >&5
21854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855
  (exit $ac_status); } && {
21856
         test -z "$ac_c_werror_flag" ||
21857
         test ! -s conftest.err
21858
       } && test -s conftest.$ac_objext; then
21859
  ac_cv_c_const=yes
21860
else
21861
  echo "$as_me: failed program was:" >&5
21862
sed 's/^/| /' conftest.$ac_ext >&5
21863
 
21864
        ac_cv_c_const=no
21865
fi
21866
 
21867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868
fi
21869
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21870
echo "${ECHO_T}$ac_cv_c_const" >&6; }
21871
if test $ac_cv_c_const = no; then
21872
 
21873
cat >>confdefs.h <<\_ACEOF
21874
@%:@define const
21875
_ACEOF
21876
 
21877
fi
21878
 
21879
{ echo "$as_me:$LINENO: checking for size_t" >&5
21880
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21881
if test "${ac_cv_type_size_t+set}" = set; then
21882
  echo $ECHO_N "(cached) $ECHO_C" >&6
21883
else
21884
  cat >conftest.$ac_ext <<_ACEOF
21885
/* confdefs.h.  */
21886
_ACEOF
21887
cat confdefs.h >>conftest.$ac_ext
21888
cat >>conftest.$ac_ext <<_ACEOF
21889
/* end confdefs.h.  */
21890
$ac_includes_default
21891
typedef size_t ac__type_new_;
21892
int
21893
main ()
21894
{
21895
if ((ac__type_new_ *) 0)
21896
  return 0;
21897
if (sizeof (ac__type_new_))
21898
  return 0;
21899
  ;
21900
  return 0;
21901
}
21902
_ACEOF
21903
rm -f conftest.$ac_objext
21904
if { (ac_try="$ac_compile"
21905
case "(($ac_try" in
21906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907
  *) ac_try_echo=$ac_try;;
21908
esac
21909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910
  (eval "$ac_compile") 2>conftest.er1
21911
  ac_status=$?
21912
  grep -v '^ *+' conftest.er1 >conftest.err
21913
  rm -f conftest.er1
21914
  cat conftest.err >&5
21915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916
  (exit $ac_status); } && {
21917
         test -z "$ac_c_werror_flag" ||
21918
         test ! -s conftest.err
21919
       } && test -s conftest.$ac_objext; then
21920
  ac_cv_type_size_t=yes
21921
else
21922
  echo "$as_me: failed program was:" >&5
21923
sed 's/^/| /' conftest.$ac_ext >&5
21924
 
21925
        ac_cv_type_size_t=no
21926
fi
21927
 
21928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929
fi
21930
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21931
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21932
if test $ac_cv_type_size_t = yes; then
21933
  :
21934
else
21935
 
21936
cat >>confdefs.h <<_ACEOF
21937
@%:@define size_t unsigned int
21938
_ACEOF
21939
 
21940
fi
21941
 
21942
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21943
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21944
if test "${ac_cv_struct_tm+set}" = set; then
21945
  echo $ECHO_N "(cached) $ECHO_C" >&6
21946
else
21947
  cat >conftest.$ac_ext <<_ACEOF
21948
/* confdefs.h.  */
21949
_ACEOF
21950
cat confdefs.h >>conftest.$ac_ext
21951
cat >>conftest.$ac_ext <<_ACEOF
21952
/* end confdefs.h.  */
21953
#include 
21954
#include 
21955
 
21956
int
21957
main ()
21958
{
21959
struct tm tm;
21960
                                     int *p = &tm.tm_sec;
21961
                                     return !p;
21962
  ;
21963
  return 0;
21964
}
21965
_ACEOF
21966
rm -f conftest.$ac_objext
21967
if { (ac_try="$ac_compile"
21968
case "(($ac_try" in
21969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970
  *) ac_try_echo=$ac_try;;
21971
esac
21972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973
  (eval "$ac_compile") 2>conftest.er1
21974
  ac_status=$?
21975
  grep -v '^ *+' conftest.er1 >conftest.err
21976
  rm -f conftest.er1
21977
  cat conftest.err >&5
21978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979
  (exit $ac_status); } && {
21980
         test -z "$ac_c_werror_flag" ||
21981
         test ! -s conftest.err
21982
       } && test -s conftest.$ac_objext; then
21983
  ac_cv_struct_tm=time.h
21984
else
21985
  echo "$as_me: failed program was:" >&5
21986
sed 's/^/| /' conftest.$ac_ext >&5
21987
 
21988
        ac_cv_struct_tm=sys/time.h
21989
fi
21990
 
21991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21992
fi
21993
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21994
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21995
if test $ac_cv_struct_tm = sys/time.h; then
21996
 
21997
cat >>confdefs.h <<\_ACEOF
21998
@%:@define TM_IN_SYS_TIME 1
21999
_ACEOF
22000
 
22001
fi
22002
 
22003
 
22004
# Checks for library functions (for argtable2).
22005
 
22006
for ac_header in stdlib.h
22007
do
22008
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22009
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22010
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22011
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22012
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22013
  echo $ECHO_N "(cached) $ECHO_C" >&6
22014
fi
22015
ac_res=`eval echo '${'$as_ac_Header'}'`
22016
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22017
echo "${ECHO_T}$ac_res" >&6; }
22018
else
22019
  # Is the header compilable?
22020
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22021
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22022
cat >conftest.$ac_ext <<_ACEOF
22023
/* confdefs.h.  */
22024
_ACEOF
22025
cat confdefs.h >>conftest.$ac_ext
22026
cat >>conftest.$ac_ext <<_ACEOF
22027
/* end confdefs.h.  */
22028
$ac_includes_default
22029
@%:@include <$ac_header>
22030
_ACEOF
22031
rm -f conftest.$ac_objext
22032
if { (ac_try="$ac_compile"
22033
case "(($ac_try" in
22034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035
  *) ac_try_echo=$ac_try;;
22036
esac
22037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038
  (eval "$ac_compile") 2>conftest.er1
22039
  ac_status=$?
22040
  grep -v '^ *+' conftest.er1 >conftest.err
22041
  rm -f conftest.er1
22042
  cat conftest.err >&5
22043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044
  (exit $ac_status); } && {
22045
         test -z "$ac_c_werror_flag" ||
22046
         test ! -s conftest.err
22047
       } && test -s conftest.$ac_objext; then
22048
  ac_header_compiler=yes
22049
else
22050
  echo "$as_me: failed program was:" >&5
22051
sed 's/^/| /' conftest.$ac_ext >&5
22052
 
22053
        ac_header_compiler=no
22054
fi
22055
 
22056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22058
echo "${ECHO_T}$ac_header_compiler" >&6; }
22059
 
22060
# Is the header present?
22061
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22062
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22063
cat >conftest.$ac_ext <<_ACEOF
22064
/* confdefs.h.  */
22065
_ACEOF
22066
cat confdefs.h >>conftest.$ac_ext
22067
cat >>conftest.$ac_ext <<_ACEOF
22068
/* end confdefs.h.  */
22069
@%:@include <$ac_header>
22070
_ACEOF
22071
if { (ac_try="$ac_cpp conftest.$ac_ext"
22072
case "(($ac_try" in
22073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074
  *) ac_try_echo=$ac_try;;
22075
esac
22076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22078
  ac_status=$?
22079
  grep -v '^ *+' conftest.er1 >conftest.err
22080
  rm -f conftest.er1
22081
  cat conftest.err >&5
22082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083
  (exit $ac_status); } >/dev/null && {
22084
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22085
         test ! -s conftest.err
22086
       }; then
22087
  ac_header_preproc=yes
22088
else
22089
  echo "$as_me: failed program was:" >&5
22090
sed 's/^/| /' conftest.$ac_ext >&5
22091
 
22092
  ac_header_preproc=no
22093
fi
22094
 
22095
rm -f conftest.err conftest.$ac_ext
22096
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22097
echo "${ECHO_T}$ac_header_preproc" >&6; }
22098
 
22099
# So?  What about this header?
22100
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22101
  yes:no: )
22102
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22103
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22104
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22105
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22106
    ac_header_preproc=yes
22107
    ;;
22108
  no:yes:* )
22109
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22110
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22111
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22112
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22113
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22114
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22115
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22116
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22117
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22118
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22119
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22120
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22121
    ( cat <<\_ASBOX
22122
@%:@@%:@ ------------------------------------- @%:@@%:@
22123
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
22124
@%:@@%:@ ------------------------------------- @%:@@%:@
22125
_ASBOX
22126
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22127
    ;;
22128
esac
22129
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22131
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22132
  echo $ECHO_N "(cached) $ECHO_C" >&6
22133
else
22134
  eval "$as_ac_Header=\$ac_header_preproc"
22135
fi
22136
ac_res=`eval echo '${'$as_ac_Header'}'`
22137
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22138
echo "${ECHO_T}$ac_res" >&6; }
22139
 
22140
fi
22141
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22142
  cat >>confdefs.h <<_ACEOF
22143
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22144
_ACEOF
22145
 
22146
fi
22147
 
22148
done
22149
 
22150
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22151
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22152
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22153
  echo $ECHO_N "(cached) $ECHO_C" >&6
22154
else
22155
  if test "$cross_compiling" = yes; then
22156
  ac_cv_func_malloc_0_nonnull=no
22157
else
22158
  cat >conftest.$ac_ext <<_ACEOF
22159
/* confdefs.h.  */
22160
_ACEOF
22161
cat confdefs.h >>conftest.$ac_ext
22162
cat >>conftest.$ac_ext <<_ACEOF
22163
/* end confdefs.h.  */
22164
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22165
# include 
22166
#else
22167
char *malloc ();
22168
#endif
22169
 
22170
int
22171
main ()
22172
{
22173
return ! malloc (0);
22174
  ;
22175
  return 0;
22176
}
22177
_ACEOF
22178
rm -f conftest$ac_exeext
22179
if { (ac_try="$ac_link"
22180
case "(($ac_try" in
22181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182
  *) ac_try_echo=$ac_try;;
22183
esac
22184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185
  (eval "$ac_link") 2>&5
22186
  ac_status=$?
22187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22189
  { (case "(($ac_try" in
22190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191
  *) ac_try_echo=$ac_try;;
22192
esac
22193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194
  (eval "$ac_try") 2>&5
22195
  ac_status=$?
22196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197
  (exit $ac_status); }; }; then
22198
  ac_cv_func_malloc_0_nonnull=yes
22199
else
22200
  echo "$as_me: program exited with status $ac_status" >&5
22201
echo "$as_me: failed program was:" >&5
22202
sed 's/^/| /' conftest.$ac_ext >&5
22203
 
22204
( exit $ac_status )
22205
ac_cv_func_malloc_0_nonnull=no
22206
fi
22207
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22208
fi
22209
 
22210
 
22211
fi
22212
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22213
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22214
if test $ac_cv_func_malloc_0_nonnull = yes; then
22215
 
22216
cat >>confdefs.h <<\_ACEOF
22217
@%:@define HAVE_MALLOC 1
22218
_ACEOF
22219
 
22220
else
22221
  cat >>confdefs.h <<\_ACEOF
22222
@%:@define HAVE_MALLOC 0
22223
_ACEOF
22224
 
22225
   case " $LIB@&t@OBJS " in
22226
  *" malloc.$ac_objext "* ) ;;
22227
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
22228
 ;;
22229
esac
22230
 
22231
 
22232
cat >>confdefs.h <<\_ACEOF
22233
@%:@define malloc rpl_malloc
22234
_ACEOF
22235
 
22236
fi
22237
 
22238
 
22239
 
22240
 
22241
for ac_func in strftime
22242
do
22243
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22244
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22245
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22246
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22247
  echo $ECHO_N "(cached) $ECHO_C" >&6
22248
else
22249
  cat >conftest.$ac_ext <<_ACEOF
22250
/* confdefs.h.  */
22251
_ACEOF
22252
cat confdefs.h >>conftest.$ac_ext
22253
cat >>conftest.$ac_ext <<_ACEOF
22254
/* end confdefs.h.  */
22255
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22256
   For example, HP-UX 11i  declares gettimeofday.  */
22257
#define $ac_func innocuous_$ac_func
22258
 
22259
/* System header to define __stub macros and hopefully few prototypes,
22260
    which can conflict with char $ac_func (); below.
22261
    Prefer  to  if __STDC__ is defined, since
22262
     exists even on freestanding compilers.  */
22263
 
22264
#ifdef __STDC__
22265
# include 
22266
#else
22267
# include 
22268
#endif
22269
 
22270
#undef $ac_func
22271
 
22272
/* Override any GCC internal prototype to avoid an error.
22273
   Use char because int might match the return type of a GCC
22274
   builtin and then its argument prototype would still apply.  */
22275
#ifdef __cplusplus
22276
extern "C"
22277
#endif
22278
char $ac_func ();
22279
/* The GNU C library defines this for functions which it implements
22280
    to always fail with ENOSYS.  Some functions are actually named
22281
    something starting with __ and the normal name is an alias.  */
22282
#if defined __stub_$ac_func || defined __stub___$ac_func
22283
choke me
22284
#endif
22285
 
22286
int
22287
main ()
22288
{
22289
return $ac_func ();
22290
  ;
22291
  return 0;
22292
}
22293
_ACEOF
22294
rm -f conftest.$ac_objext conftest$ac_exeext
22295
if { (ac_try="$ac_link"
22296
case "(($ac_try" in
22297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298
  *) ac_try_echo=$ac_try;;
22299
esac
22300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301
  (eval "$ac_link") 2>conftest.er1
22302
  ac_status=$?
22303
  grep -v '^ *+' conftest.er1 >conftest.err
22304
  rm -f conftest.er1
22305
  cat conftest.err >&5
22306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307
  (exit $ac_status); } && {
22308
         test -z "$ac_c_werror_flag" ||
22309
         test ! -s conftest.err
22310
       } && test -s conftest$ac_exeext &&
22311
       $as_test_x conftest$ac_exeext; then
22312
  eval "$as_ac_var=yes"
22313
else
22314
  echo "$as_me: failed program was:" >&5
22315
sed 's/^/| /' conftest.$ac_ext >&5
22316
 
22317
        eval "$as_ac_var=no"
22318
fi
22319
 
22320
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22321
      conftest$ac_exeext conftest.$ac_ext
22322
fi
22323
ac_res=`eval echo '${'$as_ac_var'}'`
22324
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22325
echo "${ECHO_T}$ac_res" >&6; }
22326
if test `eval echo '${'$as_ac_var'}'` = yes; then
22327
  cat >>confdefs.h <<_ACEOF
22328
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22329
_ACEOF
22330
 
22331
else
22332
  # strftime is in -lintl on SCO UNIX.
22333
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22334
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22335
if test "${ac_cv_lib_intl_strftime+set}" = set; then
22336
  echo $ECHO_N "(cached) $ECHO_C" >&6
22337
else
22338
  ac_check_lib_save_LIBS=$LIBS
22339
LIBS="-lintl  $LIBS"
22340
cat >conftest.$ac_ext <<_ACEOF
22341
/* confdefs.h.  */
22342
_ACEOF
22343
cat confdefs.h >>conftest.$ac_ext
22344
cat >>conftest.$ac_ext <<_ACEOF
22345
/* end confdefs.h.  */
22346
 
22347
/* Override any GCC internal prototype to avoid an error.
22348
   Use char because int might match the return type of a GCC
22349
   builtin and then its argument prototype would still apply.  */
22350
#ifdef __cplusplus
22351
extern "C"
22352
#endif
22353
char strftime ();
22354
int
22355
main ()
22356
{
22357
return strftime ();
22358
  ;
22359
  return 0;
22360
}
22361
_ACEOF
22362
rm -f conftest.$ac_objext conftest$ac_exeext
22363
if { (ac_try="$ac_link"
22364
case "(($ac_try" in
22365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366
  *) ac_try_echo=$ac_try;;
22367
esac
22368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369
  (eval "$ac_link") 2>conftest.er1
22370
  ac_status=$?
22371
  grep -v '^ *+' conftest.er1 >conftest.err
22372
  rm -f conftest.er1
22373
  cat conftest.err >&5
22374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375
  (exit $ac_status); } && {
22376
         test -z "$ac_c_werror_flag" ||
22377
         test ! -s conftest.err
22378
       } && test -s conftest$ac_exeext &&
22379
       $as_test_x conftest$ac_exeext; then
22380
  ac_cv_lib_intl_strftime=yes
22381
else
22382
  echo "$as_me: failed program was:" >&5
22383
sed 's/^/| /' conftest.$ac_ext >&5
22384
 
22385
        ac_cv_lib_intl_strftime=no
22386
fi
22387
 
22388
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22389
      conftest$ac_exeext conftest.$ac_ext
22390
LIBS=$ac_check_lib_save_LIBS
22391
fi
22392
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22393
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22394
if test $ac_cv_lib_intl_strftime = yes; then
22395
  cat >>confdefs.h <<\_ACEOF
22396
@%:@define HAVE_STRFTIME 1
22397
_ACEOF
22398
 
22399
LIBS="-lintl $LIBS"
22400
fi
22401
 
22402
fi
22403
done
22404
 
22405
{ echo "$as_me:$LINENO: checking for working strtod" >&5
22406
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
22407
if test "${ac_cv_func_strtod+set}" = set; then
22408
  echo $ECHO_N "(cached) $ECHO_C" >&6
22409
else
22410
  if test "$cross_compiling" = yes; then
22411
  ac_cv_func_strtod=no
22412
else
22413
  cat >conftest.$ac_ext <<_ACEOF
22414
/* confdefs.h.  */
22415
_ACEOF
22416
cat confdefs.h >>conftest.$ac_ext
22417
cat >>conftest.$ac_ext <<_ACEOF
22418
/* end confdefs.h.  */
22419
 
22420
$ac_includes_default
22421
#ifndef strtod
22422
double strtod ();
22423
#endif
22424
int
22425
main()
22426
{
22427
  {
22428
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22429
    char *string = " +69";
22430
    char *term;
22431
    double value;
22432
    value = strtod (string, &term);
22433
    if (value != 69 || term != (string + 4))
22434
      return 1;
22435
  }
22436
 
22437
  {
22438
    /* Under Solaris 2.4, strtod returns the wrong value for the
22439
       terminating character under some conditions.  */
22440
    char *string = "NaN";
22441
    char *term;
22442
    strtod (string, &term);
22443
    if (term != string && *(term - 1) == 0)
22444
      return 1;
22445
  }
22446
  return 0;
22447
}
22448
 
22449
_ACEOF
22450
rm -f conftest$ac_exeext
22451
if { (ac_try="$ac_link"
22452
case "(($ac_try" in
22453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454
  *) ac_try_echo=$ac_try;;
22455
esac
22456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457
  (eval "$ac_link") 2>&5
22458
  ac_status=$?
22459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22461
  { (case "(($ac_try" in
22462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463
  *) ac_try_echo=$ac_try;;
22464
esac
22465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466
  (eval "$ac_try") 2>&5
22467
  ac_status=$?
22468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469
  (exit $ac_status); }; }; then
22470
  ac_cv_func_strtod=yes
22471
else
22472
  echo "$as_me: program exited with status $ac_status" >&5
22473
echo "$as_me: failed program was:" >&5
22474
sed 's/^/| /' conftest.$ac_ext >&5
22475
 
22476
( exit $ac_status )
22477
ac_cv_func_strtod=no
22478
fi
22479
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22480
fi
22481
 
22482
 
22483
fi
22484
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
22485
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
22486
if test $ac_cv_func_strtod = no; then
22487
  case " $LIB@&t@OBJS " in
22488
  *" strtod.$ac_objext "* ) ;;
22489
  *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
22490
 ;;
22491
esac
22492
 
22493
{ echo "$as_me:$LINENO: checking for pow" >&5
22494
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
22495
if test "${ac_cv_func_pow+set}" = set; then
22496
  echo $ECHO_N "(cached) $ECHO_C" >&6
22497
else
22498
  cat >conftest.$ac_ext <<_ACEOF
22499
/* confdefs.h.  */
22500
_ACEOF
22501
cat confdefs.h >>conftest.$ac_ext
22502
cat >>conftest.$ac_ext <<_ACEOF
22503
/* end confdefs.h.  */
22504
/* Define pow to an innocuous variant, in case  declares pow.
22505
   For example, HP-UX 11i  declares gettimeofday.  */
22506
#define pow innocuous_pow
22507
 
22508
/* System header to define __stub macros and hopefully few prototypes,
22509
    which can conflict with char pow (); below.
22510
    Prefer  to  if __STDC__ is defined, since
22511
     exists even on freestanding compilers.  */
22512
 
22513
#ifdef __STDC__
22514
# include 
22515
#else
22516
# include 
22517
#endif
22518
 
22519
#undef pow
22520
 
22521
/* Override any GCC internal prototype to avoid an error.
22522
   Use char because int might match the return type of a GCC
22523
   builtin and then its argument prototype would still apply.  */
22524
#ifdef __cplusplus
22525
extern "C"
22526
#endif
22527
char pow ();
22528
/* The GNU C library defines this for functions which it implements
22529
    to always fail with ENOSYS.  Some functions are actually named
22530
    something starting with __ and the normal name is an alias.  */
22531
#if defined __stub_pow || defined __stub___pow
22532
choke me
22533
#endif
22534
 
22535
int
22536
main ()
22537
{
22538
return pow ();
22539
  ;
22540
  return 0;
22541
}
22542
_ACEOF
22543
rm -f conftest.$ac_objext conftest$ac_exeext
22544
if { (ac_try="$ac_link"
22545
case "(($ac_try" in
22546
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547
  *) ac_try_echo=$ac_try;;
22548
esac
22549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550
  (eval "$ac_link") 2>conftest.er1
22551
  ac_status=$?
22552
  grep -v '^ *+' conftest.er1 >conftest.err
22553
  rm -f conftest.er1
22554
  cat conftest.err >&5
22555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556
  (exit $ac_status); } && {
22557
         test -z "$ac_c_werror_flag" ||
22558
         test ! -s conftest.err
22559
       } && test -s conftest$ac_exeext &&
22560
       $as_test_x conftest$ac_exeext; then
22561
  ac_cv_func_pow=yes
22562
else
22563
  echo "$as_me: failed program was:" >&5
22564
sed 's/^/| /' conftest.$ac_ext >&5
22565
 
22566
        ac_cv_func_pow=no
22567
fi
22568
 
22569
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22570
      conftest$ac_exeext conftest.$ac_ext
22571
fi
22572
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
22573
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
22574
 
22575
if test $ac_cv_func_pow = no; then
22576
  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
22577
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
22578
if test "${ac_cv_lib_m_pow+set}" = set; then
22579
  echo $ECHO_N "(cached) $ECHO_C" >&6
22580
else
22581
  ac_check_lib_save_LIBS=$LIBS
22582
LIBS="-lm  $LIBS"
22583
cat >conftest.$ac_ext <<_ACEOF
22584
/* confdefs.h.  */
22585
_ACEOF
22586
cat confdefs.h >>conftest.$ac_ext
22587
cat >>conftest.$ac_ext <<_ACEOF
22588
/* end confdefs.h.  */
22589
 
22590
/* Override any GCC internal prototype to avoid an error.
22591
   Use char because int might match the return type of a GCC
22592
   builtin and then its argument prototype would still apply.  */
22593
#ifdef __cplusplus
22594
extern "C"
22595
#endif
22596
char pow ();
22597
int
22598
main ()
22599
{
22600
return pow ();
22601
  ;
22602
  return 0;
22603
}
22604
_ACEOF
22605
rm -f conftest.$ac_objext conftest$ac_exeext
22606
if { (ac_try="$ac_link"
22607
case "(($ac_try" in
22608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609
  *) ac_try_echo=$ac_try;;
22610
esac
22611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22612
  (eval "$ac_link") 2>conftest.er1
22613
  ac_status=$?
22614
  grep -v '^ *+' conftest.er1 >conftest.err
22615
  rm -f conftest.er1
22616
  cat conftest.err >&5
22617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618
  (exit $ac_status); } && {
22619
         test -z "$ac_c_werror_flag" ||
22620
         test ! -s conftest.err
22621
       } && test -s conftest$ac_exeext &&
22622
       $as_test_x conftest$ac_exeext; then
22623
  ac_cv_lib_m_pow=yes
22624
else
22625
  echo "$as_me: failed program was:" >&5
22626
sed 's/^/| /' conftest.$ac_ext >&5
22627
 
22628
        ac_cv_lib_m_pow=no
22629
fi
22630
 
22631
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22632
      conftest$ac_exeext conftest.$ac_ext
22633
LIBS=$ac_check_lib_save_LIBS
22634
fi
22635
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
22636
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
22637
if test $ac_cv_lib_m_pow = yes; then
22638
  POW_LIB=-lm
22639
else
22640
  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
22641
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22642
fi
22643
 
22644
fi
22645
 
22646
fi
22647
 
22648
 
22649
 
22650
 
22651
 
22652
 
22653
for ac_func in bzero strchr strcspn strrchr strtol
22654
do
22655
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22656
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22657
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22658
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22659
  echo $ECHO_N "(cached) $ECHO_C" >&6
22660
else
22661
  cat >conftest.$ac_ext <<_ACEOF
22662
/* confdefs.h.  */
22663
_ACEOF
22664
cat confdefs.h >>conftest.$ac_ext
22665
cat >>conftest.$ac_ext <<_ACEOF
22666
/* end confdefs.h.  */
22667
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22668
   For example, HP-UX 11i  declares gettimeofday.  */
22669
#define $ac_func innocuous_$ac_func
22670
 
22671
/* System header to define __stub macros and hopefully few prototypes,
22672
    which can conflict with char $ac_func (); below.
22673
    Prefer  to  if __STDC__ is defined, since
22674
     exists even on freestanding compilers.  */
22675
 
22676
#ifdef __STDC__
22677
# include 
22678
#else
22679
# include 
22680
#endif
22681
 
22682
#undef $ac_func
22683
 
22684
/* Override any GCC internal prototype to avoid an error.
22685
   Use char because int might match the return type of a GCC
22686
   builtin and then its argument prototype would still apply.  */
22687
#ifdef __cplusplus
22688
extern "C"
22689
#endif
22690
char $ac_func ();
22691
/* The GNU C library defines this for functions which it implements
22692
    to always fail with ENOSYS.  Some functions are actually named
22693
    something starting with __ and the normal name is an alias.  */
22694
#if defined __stub_$ac_func || defined __stub___$ac_func
22695
choke me
22696
#endif
22697
 
22698
int
22699
main ()
22700
{
22701
return $ac_func ();
22702
  ;
22703
  return 0;
22704
}
22705
_ACEOF
22706
rm -f conftest.$ac_objext conftest$ac_exeext
22707
if { (ac_try="$ac_link"
22708
case "(($ac_try" in
22709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710
  *) ac_try_echo=$ac_try;;
22711
esac
22712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713
  (eval "$ac_link") 2>conftest.er1
22714
  ac_status=$?
22715
  grep -v '^ *+' conftest.er1 >conftest.err
22716
  rm -f conftest.er1
22717
  cat conftest.err >&5
22718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719
  (exit $ac_status); } && {
22720
         test -z "$ac_c_werror_flag" ||
22721
         test ! -s conftest.err
22722
       } && test -s conftest$ac_exeext &&
22723
       $as_test_x conftest$ac_exeext; then
22724
  eval "$as_ac_var=yes"
22725
else
22726
  echo "$as_me: failed program was:" >&5
22727
sed 's/^/| /' conftest.$ac_ext >&5
22728
 
22729
        eval "$as_ac_var=no"
22730
fi
22731
 
22732
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22733
      conftest$ac_exeext conftest.$ac_ext
22734
fi
22735
ac_res=`eval echo '${'$as_ac_var'}'`
22736
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22737
echo "${ECHO_T}$ac_res" >&6; }
22738
if test `eval echo '${'$as_ac_var'}'` = yes; then
22739
  cat >>confdefs.h <<_ACEOF
22740
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22741
_ACEOF
22742
 
22743
fi
22744
done
22745
 
22746
{ echo "$as_me:$LINENO: checking for getopt_long" >&5
22747
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
22748
if test "${ac_cv_func_getopt_long+set}" = set; then
22749
  echo $ECHO_N "(cached) $ECHO_C" >&6
22750
else
22751
  cat >conftest.$ac_ext <<_ACEOF
22752
/* confdefs.h.  */
22753
_ACEOF
22754
cat confdefs.h >>conftest.$ac_ext
22755
cat >>conftest.$ac_ext <<_ACEOF
22756
/* end confdefs.h.  */
22757
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
22758
   For example, HP-UX 11i  declares gettimeofday.  */
22759
#define getopt_long innocuous_getopt_long
22760
 
22761
/* System header to define __stub macros and hopefully few prototypes,
22762
    which can conflict with char getopt_long (); below.
22763
    Prefer  to  if __STDC__ is defined, since
22764
     exists even on freestanding compilers.  */
22765
 
22766
#ifdef __STDC__
22767
# include 
22768
#else
22769
# include 
22770
#endif
22771
 
22772
#undef getopt_long
22773
 
22774
/* Override any GCC internal prototype to avoid an error.
22775
   Use char because int might match the return type of a GCC
22776
   builtin and then its argument prototype would still apply.  */
22777
#ifdef __cplusplus
22778
extern "C"
22779
#endif
22780
char getopt_long ();
22781
/* The GNU C library defines this for functions which it implements
22782
    to always fail with ENOSYS.  Some functions are actually named
22783
    something starting with __ and the normal name is an alias.  */
22784
#if defined __stub_getopt_long || defined __stub___getopt_long
22785
choke me
22786
#endif
22787
 
22788
int
22789
main ()
22790
{
22791
return getopt_long ();
22792
  ;
22793
  return 0;
22794
}
22795
_ACEOF
22796
rm -f conftest.$ac_objext conftest$ac_exeext
22797
if { (ac_try="$ac_link"
22798
case "(($ac_try" in
22799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800
  *) ac_try_echo=$ac_try;;
22801
esac
22802
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803
  (eval "$ac_link") 2>conftest.er1
22804
  ac_status=$?
22805
  grep -v '^ *+' conftest.er1 >conftest.err
22806
  rm -f conftest.er1
22807
  cat conftest.err >&5
22808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809
  (exit $ac_status); } && {
22810
         test -z "$ac_c_werror_flag" ||
22811
         test ! -s conftest.err
22812
       } && test -s conftest$ac_exeext &&
22813
       $as_test_x conftest$ac_exeext; then
22814
  ac_cv_func_getopt_long=yes
22815
else
22816
  echo "$as_me: failed program was:" >&5
22817
sed 's/^/| /' conftest.$ac_ext >&5
22818
 
22819
        ac_cv_func_getopt_long=no
22820
fi
22821
 
22822
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22823
      conftest$ac_exeext conftest.$ac_ext
22824
fi
22825
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
22826
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
22827
if test $ac_cv_func_getopt_long = yes; then
22828
  SYS_GETOPTLONG=1
22829
else
22830
  SYS_GETOPTLONG=0
22831
fi
22832
 
22833
{ echo "$as_me:$LINENO: checking for regcomp" >&5
22834
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
22835
if test "${ac_cv_func_regcomp+set}" = set; then
22836
  echo $ECHO_N "(cached) $ECHO_C" >&6
22837
else
22838
  cat >conftest.$ac_ext <<_ACEOF
22839
/* confdefs.h.  */
22840
_ACEOF
22841
cat confdefs.h >>conftest.$ac_ext
22842
cat >>conftest.$ac_ext <<_ACEOF
22843
/* end confdefs.h.  */
22844
/* Define regcomp to an innocuous variant, in case  declares regcomp.
22845
   For example, HP-UX 11i  declares gettimeofday.  */
22846
#define regcomp innocuous_regcomp
22847
 
22848
/* System header to define __stub macros and hopefully few prototypes,
22849
    which can conflict with char regcomp (); below.
22850
    Prefer  to  if __STDC__ is defined, since
22851
     exists even on freestanding compilers.  */
22852
 
22853
#ifdef __STDC__
22854
# include 
22855
#else
22856
# include 
22857
#endif
22858
 
22859
#undef regcomp
22860
 
22861
/* Override any GCC internal prototype to avoid an error.
22862
   Use char because int might match the return type of a GCC
22863
   builtin and then its argument prototype would still apply.  */
22864
#ifdef __cplusplus
22865
extern "C"
22866
#endif
22867
char regcomp ();
22868
/* The GNU C library defines this for functions which it implements
22869
    to always fail with ENOSYS.  Some functions are actually named
22870
    something starting with __ and the normal name is an alias.  */
22871
#if defined __stub_regcomp || defined __stub___regcomp
22872
choke me
22873
#endif
22874
 
22875
int
22876
main ()
22877
{
22878
return regcomp ();
22879
  ;
22880
  return 0;
22881
}
22882
_ACEOF
22883
rm -f conftest.$ac_objext conftest$ac_exeext
22884
if { (ac_try="$ac_link"
22885
case "(($ac_try" in
22886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887
  *) ac_try_echo=$ac_try;;
22888
esac
22889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890
  (eval "$ac_link") 2>conftest.er1
22891
  ac_status=$?
22892
  grep -v '^ *+' conftest.er1 >conftest.err
22893
  rm -f conftest.er1
22894
  cat conftest.err >&5
22895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896
  (exit $ac_status); } && {
22897
         test -z "$ac_c_werror_flag" ||
22898
         test ! -s conftest.err
22899
       } && test -s conftest$ac_exeext &&
22900
       $as_test_x conftest$ac_exeext; then
22901
  ac_cv_func_regcomp=yes
22902
else
22903
  echo "$as_me: failed program was:" >&5
22904
sed 's/^/| /' conftest.$ac_ext >&5
22905
 
22906
        ac_cv_func_regcomp=no
22907
fi
22908
 
22909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22910
      conftest$ac_exeext conftest.$ac_ext
22911
fi
22912
{ echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
22913
echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
22914
if test $ac_cv_func_regcomp = yes; then
22915
  SYS_REGEX=1
22916
else
22917
  SYS_REGEX=0
22918
fi
22919
 
22920
{ echo "$as_me:$LINENO: checking for strptime" >&5
22921
echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
22922
if test "${ac_cv_func_strptime+set}" = set; then
22923
  echo $ECHO_N "(cached) $ECHO_C" >&6
22924
else
22925
  cat >conftest.$ac_ext <<_ACEOF
22926
/* confdefs.h.  */
22927
_ACEOF
22928
cat confdefs.h >>conftest.$ac_ext
22929
cat >>conftest.$ac_ext <<_ACEOF
22930
/* end confdefs.h.  */
22931
/* Define strptime to an innocuous variant, in case  declares strptime.
22932
   For example, HP-UX 11i  declares gettimeofday.  */
22933
#define strptime innocuous_strptime
22934
 
22935
/* System header to define __stub macros and hopefully few prototypes,
22936
    which can conflict with char strptime (); below.
22937
    Prefer  to  if __STDC__ is defined, since
22938
     exists even on freestanding compilers.  */
22939
 
22940
#ifdef __STDC__
22941
# include 
22942
#else
22943
# include 
22944
#endif
22945
 
22946
#undef strptime
22947
 
22948
/* Override any GCC internal prototype to avoid an error.
22949
   Use char because int might match the return type of a GCC
22950
   builtin and then its argument prototype would still apply.  */
22951
#ifdef __cplusplus
22952
extern "C"
22953
#endif
22954
char strptime ();
22955
/* The GNU C library defines this for functions which it implements
22956
    to always fail with ENOSYS.  Some functions are actually named
22957
    something starting with __ and the normal name is an alias.  */
22958
#if defined __stub_strptime || defined __stub___strptime
22959
choke me
22960
#endif
22961
 
22962
int
22963
main ()
22964
{
22965
return strptime ();
22966
  ;
22967
  return 0;
22968
}
22969
_ACEOF
22970
rm -f conftest.$ac_objext conftest$ac_exeext
22971
if { (ac_try="$ac_link"
22972
case "(($ac_try" in
22973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974
  *) ac_try_echo=$ac_try;;
22975
esac
22976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977
  (eval "$ac_link") 2>conftest.er1
22978
  ac_status=$?
22979
  grep -v '^ *+' conftest.er1 >conftest.err
22980
  rm -f conftest.er1
22981
  cat conftest.err >&5
22982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983
  (exit $ac_status); } && {
22984
         test -z "$ac_c_werror_flag" ||
22985
         test ! -s conftest.err
22986
       } && test -s conftest$ac_exeext &&
22987
       $as_test_x conftest$ac_exeext; then
22988
  ac_cv_func_strptime=yes
22989
else
22990
  echo "$as_me: failed program was:" >&5
22991
sed 's/^/| /' conftest.$ac_ext >&5
22992
 
22993
        ac_cv_func_strptime=no
22994
fi
22995
 
22996
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22997
      conftest$ac_exeext conftest.$ac_ext
22998
fi
22999
{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
23000
echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
23001
if test $ac_cv_func_strptime = yes; then
23002
  SYS_STRPTIME=1
23003
else
23004
  SYS_STRPTIME=0
23005
fi
23006
 
23007
 
23008
# Define automake conditionals (for argtable2)
23009
 if test "$SYS_GETOPTLONG" = "1"; then
23010
  USE_SYS_GETOPTLONG_TRUE=
23011
  USE_SYS_GETOPTLONG_FALSE='#'
23012
else
23013
  USE_SYS_GETOPTLONG_TRUE='#'
23014
  USE_SYS_GETOPTLONG_FALSE=
23015
fi
23016
 
23017
 if test "$SYS_REGEX" = "1"; then
23018
  USE_ARGREX_TRUE=
23019
  USE_ARGREX_FALSE='#'
23020
else
23021
  USE_ARGREX_TRUE='#'
23022
  USE_ARGREX_FALSE=
23023
fi
23024
 
23025
 if test "$SYS_STRPTIME" = "1"; then
23026
  USE_ARGDATE_TRUE=
23027
  USE_ARGDATE_FALSE='#'
23028
else
23029
  USE_ARGDATE_TRUE='#'
23030
  USE_ARGDATE_FALSE=
23031
fi
23032
 
23033
 
23034
# check for "long long" (added by Erez)
23035
cat >conftest.$ac_ext <<_ACEOF
23036
/* confdefs.h.  */
23037
_ACEOF
23038
cat confdefs.h >>conftest.$ac_ext
23039
cat >>conftest.$ac_ext <<_ACEOF
23040
/* end confdefs.h.  */
23041
 
23042
int
23043
main ()
23044
{
23045
long long ll; unsigned long long ull;
23046
  ;
23047
  return 0;
23048
}
23049
_ACEOF
23050
rm -f conftest.$ac_objext
23051
if { (ac_try="$ac_compile"
23052
case "(($ac_try" in
23053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054
  *) ac_try_echo=$ac_try;;
23055
esac
23056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057
  (eval "$ac_compile") 2>conftest.er1
23058
  ac_status=$?
23059
  grep -v '^ *+' conftest.er1 >conftest.err
23060
  rm -f conftest.er1
23061
  cat conftest.err >&5
23062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063
  (exit $ac_status); } && {
23064
         test -z "$ac_c_werror_flag" ||
23065
         test ! -s conftest.err
23066
       } && test -s conftest.$ac_objext; then
23067
 
23068
cat >>confdefs.h <<\_ACEOF
23069
@%:@define CC_HAS_LONG_LONG 1
23070
_ACEOF
23071
 
23072
else
23073
  echo "$as_me: failed program was:" >&5
23074
sed 's/^/| /' conftest.$ac_ext >&5
23075
 
23076
 
23077
fi
23078
 
23079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080
 
23081
# check for {u,}int{8,16,32}_t in inttypes.h.
23082
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
23083
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23084
if test "${ac_cv_type_uint8_t+set}" = set; then
23085
  echo $ECHO_N "(cached) $ECHO_C" >&6
23086
else
23087
  cat >conftest.$ac_ext <<_ACEOF
23088
/* confdefs.h.  */
23089
_ACEOF
23090
cat confdefs.h >>conftest.$ac_ext
23091
cat >>conftest.$ac_ext <<_ACEOF
23092
/* end confdefs.h.  */
23093
#include 
23094
 
23095
typedef uint8_t ac__type_new_;
23096
int
23097
main ()
23098
{
23099
if ((ac__type_new_ *) 0)
23100
  return 0;
23101
if (sizeof (ac__type_new_))
23102
  return 0;
23103
  ;
23104
  return 0;
23105
}
23106
_ACEOF
23107
rm -f conftest.$ac_objext
23108
if { (ac_try="$ac_compile"
23109
case "(($ac_try" in
23110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111
  *) ac_try_echo=$ac_try;;
23112
esac
23113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114
  (eval "$ac_compile") 2>conftest.er1
23115
  ac_status=$?
23116
  grep -v '^ *+' conftest.er1 >conftest.err
23117
  rm -f conftest.er1
23118
  cat conftest.err >&5
23119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120
  (exit $ac_status); } && {
23121
         test -z "$ac_c_werror_flag" ||
23122
         test ! -s conftest.err
23123
       } && test -s conftest.$ac_objext; then
23124
  ac_cv_type_uint8_t=yes
23125
else
23126
  echo "$as_me: failed program was:" >&5
23127
sed 's/^/| /' conftest.$ac_ext >&5
23128
 
23129
        ac_cv_type_uint8_t=no
23130
fi
23131
 
23132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133
fi
23134
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23135
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23136
if test $ac_cv_type_uint8_t = yes; then
23137
 
23138
cat >>confdefs.h <<_ACEOF
23139
@%:@define HAVE_UINT8_T 1
23140
_ACEOF
23141
 
23142
 
23143
fi
23144
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
23145
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23146
if test "${ac_cv_type_uint16_t+set}" = set; then
23147
  echo $ECHO_N "(cached) $ECHO_C" >&6
23148
else
23149
  cat >conftest.$ac_ext <<_ACEOF
23150
/* confdefs.h.  */
23151
_ACEOF
23152
cat confdefs.h >>conftest.$ac_ext
23153
cat >>conftest.$ac_ext <<_ACEOF
23154
/* end confdefs.h.  */
23155
#include 
23156
 
23157
typedef uint16_t ac__type_new_;
23158
int
23159
main ()
23160
{
23161
if ((ac__type_new_ *) 0)
23162
  return 0;
23163
if (sizeof (ac__type_new_))
23164
  return 0;
23165
  ;
23166
  return 0;
23167
}
23168
_ACEOF
23169
rm -f conftest.$ac_objext
23170
if { (ac_try="$ac_compile"
23171
case "(($ac_try" in
23172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173
  *) ac_try_echo=$ac_try;;
23174
esac
23175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176
  (eval "$ac_compile") 2>conftest.er1
23177
  ac_status=$?
23178
  grep -v '^ *+' conftest.er1 >conftest.err
23179
  rm -f conftest.er1
23180
  cat conftest.err >&5
23181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182
  (exit $ac_status); } && {
23183
         test -z "$ac_c_werror_flag" ||
23184
         test ! -s conftest.err
23185
       } && test -s conftest.$ac_objext; then
23186
  ac_cv_type_uint16_t=yes
23187
else
23188
  echo "$as_me: failed program was:" >&5
23189
sed 's/^/| /' conftest.$ac_ext >&5
23190
 
23191
        ac_cv_type_uint16_t=no
23192
fi
23193
 
23194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23195
fi
23196
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23197
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23198
if test $ac_cv_type_uint16_t = yes; then
23199
 
23200
cat >>confdefs.h <<_ACEOF
23201
@%:@define HAVE_UINT16_T 1
23202
_ACEOF
23203
 
23204
 
23205
fi
23206
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
23207
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23208
if test "${ac_cv_type_uint32_t+set}" = set; then
23209
  echo $ECHO_N "(cached) $ECHO_C" >&6
23210
else
23211
  cat >conftest.$ac_ext <<_ACEOF
23212
/* confdefs.h.  */
23213
_ACEOF
23214
cat confdefs.h >>conftest.$ac_ext
23215
cat >>conftest.$ac_ext <<_ACEOF
23216
/* end confdefs.h.  */
23217
#include 
23218
 
23219
typedef uint32_t ac__type_new_;
23220
int
23221
main ()
23222
{
23223
if ((ac__type_new_ *) 0)
23224
  return 0;
23225
if (sizeof (ac__type_new_))
23226
  return 0;
23227
  ;
23228
  return 0;
23229
}
23230
_ACEOF
23231
rm -f conftest.$ac_objext
23232
if { (ac_try="$ac_compile"
23233
case "(($ac_try" in
23234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235
  *) ac_try_echo=$ac_try;;
23236
esac
23237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238
  (eval "$ac_compile") 2>conftest.er1
23239
  ac_status=$?
23240
  grep -v '^ *+' conftest.er1 >conftest.err
23241
  rm -f conftest.er1
23242
  cat conftest.err >&5
23243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244
  (exit $ac_status); } && {
23245
         test -z "$ac_c_werror_flag" ||
23246
         test ! -s conftest.err
23247
       } && test -s conftest.$ac_objext; then
23248
  ac_cv_type_uint32_t=yes
23249
else
23250
  echo "$as_me: failed program was:" >&5
23251
sed 's/^/| /' conftest.$ac_ext >&5
23252
 
23253
        ac_cv_type_uint32_t=no
23254
fi
23255
 
23256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23257
fi
23258
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23259
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23260
if test $ac_cv_type_uint32_t = yes; then
23261
 
23262
cat >>confdefs.h <<_ACEOF
23263
@%:@define HAVE_UINT32_T 1
23264
_ACEOF
23265
 
23266
 
23267
fi
23268
 
23269
{ echo "$as_me:$LINENO: checking for int8_t" >&5
23270
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
23271
if test "${ac_cv_type_int8_t+set}" = set; then
23272
  echo $ECHO_N "(cached) $ECHO_C" >&6
23273
else
23274
  cat >conftest.$ac_ext <<_ACEOF
23275
/* confdefs.h.  */
23276
_ACEOF
23277
cat confdefs.h >>conftest.$ac_ext
23278
cat >>conftest.$ac_ext <<_ACEOF
23279
/* end confdefs.h.  */
23280
#include 
23281
 
23282
typedef int8_t ac__type_new_;
23283
int
23284
main ()
23285
{
23286
if ((ac__type_new_ *) 0)
23287
  return 0;
23288
if (sizeof (ac__type_new_))
23289
  return 0;
23290
  ;
23291
  return 0;
23292
}
23293
_ACEOF
23294
rm -f conftest.$ac_objext
23295
if { (ac_try="$ac_compile"
23296
case "(($ac_try" in
23297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298
  *) ac_try_echo=$ac_try;;
23299
esac
23300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301
  (eval "$ac_compile") 2>conftest.er1
23302
  ac_status=$?
23303
  grep -v '^ *+' conftest.er1 >conftest.err
23304
  rm -f conftest.er1
23305
  cat conftest.err >&5
23306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307
  (exit $ac_status); } && {
23308
         test -z "$ac_c_werror_flag" ||
23309
         test ! -s conftest.err
23310
       } && test -s conftest.$ac_objext; then
23311
  ac_cv_type_int8_t=yes
23312
else
23313
  echo "$as_me: failed program was:" >&5
23314
sed 's/^/| /' conftest.$ac_ext >&5
23315
 
23316
        ac_cv_type_int8_t=no
23317
fi
23318
 
23319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23320
fi
23321
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
23322
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
23323
if test $ac_cv_type_int8_t = yes; then
23324
 
23325
cat >>confdefs.h <<_ACEOF
23326
@%:@define HAVE_INT8_T 1
23327
_ACEOF
23328
 
23329
 
23330
fi
23331
{ echo "$as_me:$LINENO: checking for int16_t" >&5
23332
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
23333
if test "${ac_cv_type_int16_t+set}" = set; then
23334
  echo $ECHO_N "(cached) $ECHO_C" >&6
23335
else
23336
  cat >conftest.$ac_ext <<_ACEOF
23337
/* confdefs.h.  */
23338
_ACEOF
23339
cat confdefs.h >>conftest.$ac_ext
23340
cat >>conftest.$ac_ext <<_ACEOF
23341
/* end confdefs.h.  */
23342
#include 
23343
 
23344
typedef int16_t ac__type_new_;
23345
int
23346
main ()
23347
{
23348
if ((ac__type_new_ *) 0)
23349
  return 0;
23350
if (sizeof (ac__type_new_))
23351
  return 0;
23352
  ;
23353
  return 0;
23354
}
23355
_ACEOF
23356
rm -f conftest.$ac_objext
23357
if { (ac_try="$ac_compile"
23358
case "(($ac_try" in
23359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360
  *) ac_try_echo=$ac_try;;
23361
esac
23362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23363
  (eval "$ac_compile") 2>conftest.er1
23364
  ac_status=$?
23365
  grep -v '^ *+' conftest.er1 >conftest.err
23366
  rm -f conftest.er1
23367
  cat conftest.err >&5
23368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369
  (exit $ac_status); } && {
23370
         test -z "$ac_c_werror_flag" ||
23371
         test ! -s conftest.err
23372
       } && test -s conftest.$ac_objext; then
23373
  ac_cv_type_int16_t=yes
23374
else
23375
  echo "$as_me: failed program was:" >&5
23376
sed 's/^/| /' conftest.$ac_ext >&5
23377
 
23378
        ac_cv_type_int16_t=no
23379
fi
23380
 
23381
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382
fi
23383
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
23384
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
23385
if test $ac_cv_type_int16_t = yes; then
23386
 
23387
cat >>confdefs.h <<_ACEOF
23388
@%:@define HAVE_INT16_T 1
23389
_ACEOF
23390
 
23391
 
23392
fi
23393
{ echo "$as_me:$LINENO: checking for int32_t" >&5
23394
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
23395
if test "${ac_cv_type_int32_t+set}" = set; then
23396
  echo $ECHO_N "(cached) $ECHO_C" >&6
23397
else
23398
  cat >conftest.$ac_ext <<_ACEOF
23399
/* confdefs.h.  */
23400
_ACEOF
23401
cat confdefs.h >>conftest.$ac_ext
23402
cat >>conftest.$ac_ext <<_ACEOF
23403
/* end confdefs.h.  */
23404
#include 
23405
 
23406
typedef int32_t ac__type_new_;
23407
int
23408
main ()
23409
{
23410
if ((ac__type_new_ *) 0)
23411
  return 0;
23412
if (sizeof (ac__type_new_))
23413
  return 0;
23414
  ;
23415
  return 0;
23416
}
23417
_ACEOF
23418
rm -f conftest.$ac_objext
23419
if { (ac_try="$ac_compile"
23420
case "(($ac_try" in
23421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422
  *) ac_try_echo=$ac_try;;
23423
esac
23424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425
  (eval "$ac_compile") 2>conftest.er1
23426
  ac_status=$?
23427
  grep -v '^ *+' conftest.er1 >conftest.err
23428
  rm -f conftest.er1
23429
  cat conftest.err >&5
23430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431
  (exit $ac_status); } && {
23432
         test -z "$ac_c_werror_flag" ||
23433
         test ! -s conftest.err
23434
       } && test -s conftest.$ac_objext; then
23435
  ac_cv_type_int32_t=yes
23436
else
23437
  echo "$as_me: failed program was:" >&5
23438
sed 's/^/| /' conftest.$ac_ext >&5
23439
 
23440
        ac_cv_type_int32_t=no
23441
fi
23442
 
23443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23444
fi
23445
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23446
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23447
if test $ac_cv_type_int32_t = yes; then
23448
 
23449
cat >>confdefs.h <<_ACEOF
23450
@%:@define HAVE_INT32_T 1
23451
_ACEOF
23452
 
23453
 
23454
fi
23455
 
23456
 
23457
{ echo "$as_me:$LINENO: checking for char" >&5
23458
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23459
if test "${ac_cv_type_char+set}" = set; then
23460
  echo $ECHO_N "(cached) $ECHO_C" >&6
23461
else
23462
  cat >conftest.$ac_ext <<_ACEOF
23463
/* confdefs.h.  */
23464
_ACEOF
23465
cat confdefs.h >>conftest.$ac_ext
23466
cat >>conftest.$ac_ext <<_ACEOF
23467
/* end confdefs.h.  */
23468
$ac_includes_default
23469
typedef char ac__type_new_;
23470
int
23471
main ()
23472
{
23473
if ((ac__type_new_ *) 0)
23474
  return 0;
23475
if (sizeof (ac__type_new_))
23476
  return 0;
23477
  ;
23478
  return 0;
23479
}
23480
_ACEOF
23481
rm -f conftest.$ac_objext
23482
if { (ac_try="$ac_compile"
23483
case "(($ac_try" in
23484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485
  *) ac_try_echo=$ac_try;;
23486
esac
23487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488
  (eval "$ac_compile") 2>conftest.er1
23489
  ac_status=$?
23490
  grep -v '^ *+' conftest.er1 >conftest.err
23491
  rm -f conftest.er1
23492
  cat conftest.err >&5
23493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494
  (exit $ac_status); } && {
23495
         test -z "$ac_c_werror_flag" ||
23496
         test ! -s conftest.err
23497
       } && test -s conftest.$ac_objext; then
23498
  ac_cv_type_char=yes
23499
else
23500
  echo "$as_me: failed program was:" >&5
23501
sed 's/^/| /' conftest.$ac_ext >&5
23502
 
23503
        ac_cv_type_char=no
23504
fi
23505
 
23506
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23507
fi
23508
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23509
echo "${ECHO_T}$ac_cv_type_char" >&6; }
23510
 
23511
# The cast to long int works around a bug in the HP C Compiler
23512
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23513
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23514
# This bug is HP SR number 8606223364.
23515
{ echo "$as_me:$LINENO: checking size of char" >&5
23516
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23517
if test "${ac_cv_sizeof_char+set}" = set; then
23518
  echo $ECHO_N "(cached) $ECHO_C" >&6
23519
else
23520
  if test "$cross_compiling" = yes; then
23521
  # Depending upon the size, compute the lo and hi bounds.
23522
cat >conftest.$ac_ext <<_ACEOF
23523
/* confdefs.h.  */
23524
_ACEOF
23525
cat confdefs.h >>conftest.$ac_ext
23526
cat >>conftest.$ac_ext <<_ACEOF
23527
/* end confdefs.h.  */
23528
$ac_includes_default
23529
   typedef char ac__type_sizeof_;
23530
int
23531
main ()
23532
{
23533
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23534
test_array @<:@0@:>@ = 0
23535
 
23536
  ;
23537
  return 0;
23538
}
23539
_ACEOF
23540
rm -f conftest.$ac_objext
23541
if { (ac_try="$ac_compile"
23542
case "(($ac_try" in
23543
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544
  *) ac_try_echo=$ac_try;;
23545
esac
23546
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547
  (eval "$ac_compile") 2>conftest.er1
23548
  ac_status=$?
23549
  grep -v '^ *+' conftest.er1 >conftest.err
23550
  rm -f conftest.er1
23551
  cat conftest.err >&5
23552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553
  (exit $ac_status); } && {
23554
         test -z "$ac_c_werror_flag" ||
23555
         test ! -s conftest.err
23556
       } && test -s conftest.$ac_objext; then
23557
  ac_lo=0 ac_mid=0
23558
  while :; do
23559
    cat >conftest.$ac_ext <<_ACEOF
23560
/* confdefs.h.  */
23561
_ACEOF
23562
cat confdefs.h >>conftest.$ac_ext
23563
cat >>conftest.$ac_ext <<_ACEOF
23564
/* end confdefs.h.  */
23565
$ac_includes_default
23566
   typedef char ac__type_sizeof_;
23567
int
23568
main ()
23569
{
23570
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23571
test_array @<:@0@:>@ = 0
23572
 
23573
  ;
23574
  return 0;
23575
}
23576
_ACEOF
23577
rm -f conftest.$ac_objext
23578
if { (ac_try="$ac_compile"
23579
case "(($ac_try" in
23580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581
  *) ac_try_echo=$ac_try;;
23582
esac
23583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584
  (eval "$ac_compile") 2>conftest.er1
23585
  ac_status=$?
23586
  grep -v '^ *+' conftest.er1 >conftest.err
23587
  rm -f conftest.er1
23588
  cat conftest.err >&5
23589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590
  (exit $ac_status); } && {
23591
         test -z "$ac_c_werror_flag" ||
23592
         test ! -s conftest.err
23593
       } && test -s conftest.$ac_objext; then
23594
  ac_hi=$ac_mid; break
23595
else
23596
  echo "$as_me: failed program was:" >&5
23597
sed 's/^/| /' conftest.$ac_ext >&5
23598
 
23599
        ac_lo=`expr $ac_mid + 1`
23600
                        if test $ac_lo -le $ac_mid; then
23601
                          ac_lo= ac_hi=
23602
                          break
23603
                        fi
23604
                        ac_mid=`expr 2 '*' $ac_mid + 1`
23605
fi
23606
 
23607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23608
  done
23609
else
23610
  echo "$as_me: failed program was:" >&5
23611
sed 's/^/| /' conftest.$ac_ext >&5
23612
 
23613
        cat >conftest.$ac_ext <<_ACEOF
23614
/* confdefs.h.  */
23615
_ACEOF
23616
cat confdefs.h >>conftest.$ac_ext
23617
cat >>conftest.$ac_ext <<_ACEOF
23618
/* end confdefs.h.  */
23619
$ac_includes_default
23620
   typedef char ac__type_sizeof_;
23621
int
23622
main ()
23623
{
23624
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23625
test_array @<:@0@:>@ = 0
23626
 
23627
  ;
23628
  return 0;
23629
}
23630
_ACEOF
23631
rm -f conftest.$ac_objext
23632
if { (ac_try="$ac_compile"
23633
case "(($ac_try" in
23634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635
  *) ac_try_echo=$ac_try;;
23636
esac
23637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638
  (eval "$ac_compile") 2>conftest.er1
23639
  ac_status=$?
23640
  grep -v '^ *+' conftest.er1 >conftest.err
23641
  rm -f conftest.er1
23642
  cat conftest.err >&5
23643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644
  (exit $ac_status); } && {
23645
         test -z "$ac_c_werror_flag" ||
23646
         test ! -s conftest.err
23647
       } && test -s conftest.$ac_objext; then
23648
  ac_hi=-1 ac_mid=-1
23649
  while :; do
23650
    cat >conftest.$ac_ext <<_ACEOF
23651
/* confdefs.h.  */
23652
_ACEOF
23653
cat confdefs.h >>conftest.$ac_ext
23654
cat >>conftest.$ac_ext <<_ACEOF
23655
/* end confdefs.h.  */
23656
$ac_includes_default
23657
   typedef char ac__type_sizeof_;
23658
int
23659
main ()
23660
{
23661
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23662
test_array @<:@0@:>@ = 0
23663
 
23664
  ;
23665
  return 0;
23666
}
23667
_ACEOF
23668
rm -f conftest.$ac_objext
23669
if { (ac_try="$ac_compile"
23670
case "(($ac_try" in
23671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672
  *) ac_try_echo=$ac_try;;
23673
esac
23674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675
  (eval "$ac_compile") 2>conftest.er1
23676
  ac_status=$?
23677
  grep -v '^ *+' conftest.er1 >conftest.err
23678
  rm -f conftest.er1
23679
  cat conftest.err >&5
23680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681
  (exit $ac_status); } && {
23682
         test -z "$ac_c_werror_flag" ||
23683
         test ! -s conftest.err
23684
       } && test -s conftest.$ac_objext; then
23685
  ac_lo=$ac_mid; break
23686
else
23687
  echo "$as_me: failed program was:" >&5
23688
sed 's/^/| /' conftest.$ac_ext >&5
23689
 
23690
        ac_hi=`expr '(' $ac_mid ')' - 1`
23691
                        if test $ac_mid -le $ac_hi; then
23692
                          ac_lo= ac_hi=
23693
                          break
23694
                        fi
23695
                        ac_mid=`expr 2 '*' $ac_mid`
23696
fi
23697
 
23698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23699
  done
23700
else
23701
  echo "$as_me: failed program was:" >&5
23702
sed 's/^/| /' conftest.$ac_ext >&5
23703
 
23704
        ac_lo= ac_hi=
23705
fi
23706
 
23707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708
fi
23709
 
23710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711
# Binary search between lo and hi bounds.
23712
while test "x$ac_lo" != "x$ac_hi"; do
23713
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23714
  cat >conftest.$ac_ext <<_ACEOF
23715
/* confdefs.h.  */
23716
_ACEOF
23717
cat confdefs.h >>conftest.$ac_ext
23718
cat >>conftest.$ac_ext <<_ACEOF
23719
/* end confdefs.h.  */
23720
$ac_includes_default
23721
   typedef char ac__type_sizeof_;
23722
int
23723
main ()
23724
{
23725
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23726
test_array @<:@0@:>@ = 0
23727
 
23728
  ;
23729
  return 0;
23730
}
23731
_ACEOF
23732
rm -f conftest.$ac_objext
23733
if { (ac_try="$ac_compile"
23734
case "(($ac_try" in
23735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736
  *) ac_try_echo=$ac_try;;
23737
esac
23738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739
  (eval "$ac_compile") 2>conftest.er1
23740
  ac_status=$?
23741
  grep -v '^ *+' conftest.er1 >conftest.err
23742
  rm -f conftest.er1
23743
  cat conftest.err >&5
23744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745
  (exit $ac_status); } && {
23746
         test -z "$ac_c_werror_flag" ||
23747
         test ! -s conftest.err
23748
       } && test -s conftest.$ac_objext; then
23749
  ac_hi=$ac_mid
23750
else
23751
  echo "$as_me: failed program was:" >&5
23752
sed 's/^/| /' conftest.$ac_ext >&5
23753
 
23754
        ac_lo=`expr '(' $ac_mid ')' + 1`
23755
fi
23756
 
23757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758
done
23759
case $ac_lo in
23760
?*) ac_cv_sizeof_char=$ac_lo;;
23761
'') if test "$ac_cv_type_char" = yes; then
23762
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23763
See \`config.log' for more details." >&5
23764
echo "$as_me: error: cannot compute sizeof (char)
23765
See \`config.log' for more details." >&2;}
23766
   { (exit 77); exit 77; }; }
23767
   else
23768
     ac_cv_sizeof_char=0
23769
   fi ;;
23770
esac
23771
else
23772
  cat >conftest.$ac_ext <<_ACEOF
23773
/* confdefs.h.  */
23774
_ACEOF
23775
cat confdefs.h >>conftest.$ac_ext
23776
cat >>conftest.$ac_ext <<_ACEOF
23777
/* end confdefs.h.  */
23778
$ac_includes_default
23779
   typedef char ac__type_sizeof_;
23780
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23781
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23782
@%:@include 
23783
@%:@include 
23784
int
23785
main ()
23786
{
23787
 
23788
  FILE *f = fopen ("conftest.val", "w");
23789
  if (! f)
23790
    return 1;
23791
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23792
    {
23793
      long int i = longval ();
23794
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23795
        return 1;
23796
      fprintf (f, "%ld\n", i);
23797
    }
23798
  else
23799
    {
23800
      unsigned long int i = ulongval ();
23801
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23802
        return 1;
23803
      fprintf (f, "%lu\n", i);
23804
    }
23805
  return ferror (f) || fclose (f) != 0;
23806
 
23807
  ;
23808
  return 0;
23809
}
23810
_ACEOF
23811
rm -f conftest$ac_exeext
23812
if { (ac_try="$ac_link"
23813
case "(($ac_try" in
23814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815
  *) ac_try_echo=$ac_try;;
23816
esac
23817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818
  (eval "$ac_link") 2>&5
23819
  ac_status=$?
23820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23822
  { (case "(($ac_try" in
23823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824
  *) ac_try_echo=$ac_try;;
23825
esac
23826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827
  (eval "$ac_try") 2>&5
23828
  ac_status=$?
23829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830
  (exit $ac_status); }; }; then
23831
  ac_cv_sizeof_char=`cat conftest.val`
23832
else
23833
  echo "$as_me: program exited with status $ac_status" >&5
23834
echo "$as_me: failed program was:" >&5
23835
sed 's/^/| /' conftest.$ac_ext >&5
23836
 
23837
( exit $ac_status )
23838
if test "$ac_cv_type_char" = yes; then
23839
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23840
See \`config.log' for more details." >&5
23841
echo "$as_me: error: cannot compute sizeof (char)
23842
See \`config.log' for more details." >&2;}
23843
   { (exit 77); exit 77; }; }
23844
   else
23845
     ac_cv_sizeof_char=0
23846
   fi
23847
fi
23848
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23849
fi
23850
rm -f conftest.val
23851
fi
23852
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23853
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23854
 
23855
 
23856
 
23857
cat >>confdefs.h <<_ACEOF
23858
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
23859
_ACEOF
23860
 
23861
 
23862
{ echo "$as_me:$LINENO: checking for short" >&5
23863
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
23864
if test "${ac_cv_type_short+set}" = set; then
23865
  echo $ECHO_N "(cached) $ECHO_C" >&6
23866
else
23867
  cat >conftest.$ac_ext <<_ACEOF
23868
/* confdefs.h.  */
23869
_ACEOF
23870
cat confdefs.h >>conftest.$ac_ext
23871
cat >>conftest.$ac_ext <<_ACEOF
23872
/* end confdefs.h.  */
23873
$ac_includes_default
23874
typedef short ac__type_new_;
23875
int
23876
main ()
23877
{
23878
if ((ac__type_new_ *) 0)
23879
  return 0;
23880
if (sizeof (ac__type_new_))
23881
  return 0;
23882
  ;
23883
  return 0;
23884
}
23885
_ACEOF
23886
rm -f conftest.$ac_objext
23887
if { (ac_try="$ac_compile"
23888
case "(($ac_try" in
23889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23890
  *) ac_try_echo=$ac_try;;
23891
esac
23892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23893
  (eval "$ac_compile") 2>conftest.er1
23894
  ac_status=$?
23895
  grep -v '^ *+' conftest.er1 >conftest.err
23896
  rm -f conftest.er1
23897
  cat conftest.err >&5
23898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899
  (exit $ac_status); } && {
23900
         test -z "$ac_c_werror_flag" ||
23901
         test ! -s conftest.err
23902
       } && test -s conftest.$ac_objext; then
23903
  ac_cv_type_short=yes
23904
else
23905
  echo "$as_me: failed program was:" >&5
23906
sed 's/^/| /' conftest.$ac_ext >&5
23907
 
23908
        ac_cv_type_short=no
23909
fi
23910
 
23911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912
fi
23913
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
23914
echo "${ECHO_T}$ac_cv_type_short" >&6; }
23915
 
23916
# The cast to long int works around a bug in the HP C Compiler
23917
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23918
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23919
# This bug is HP SR number 8606223364.
23920
{ echo "$as_me:$LINENO: checking size of short" >&5
23921
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
23922
if test "${ac_cv_sizeof_short+set}" = set; then
23923
  echo $ECHO_N "(cached) $ECHO_C" >&6
23924
else
23925
  if test "$cross_compiling" = yes; then
23926
  # Depending upon the size, compute the lo and hi bounds.
23927
cat >conftest.$ac_ext <<_ACEOF
23928
/* confdefs.h.  */
23929
_ACEOF
23930
cat confdefs.h >>conftest.$ac_ext
23931
cat >>conftest.$ac_ext <<_ACEOF
23932
/* end confdefs.h.  */
23933
$ac_includes_default
23934
   typedef short ac__type_sizeof_;
23935
int
23936
main ()
23937
{
23938
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23939
test_array @<:@0@:>@ = 0
23940
 
23941
  ;
23942
  return 0;
23943
}
23944
_ACEOF
23945
rm -f conftest.$ac_objext
23946
if { (ac_try="$ac_compile"
23947
case "(($ac_try" in
23948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949
  *) ac_try_echo=$ac_try;;
23950
esac
23951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952
  (eval "$ac_compile") 2>conftest.er1
23953
  ac_status=$?
23954
  grep -v '^ *+' conftest.er1 >conftest.err
23955
  rm -f conftest.er1
23956
  cat conftest.err >&5
23957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958
  (exit $ac_status); } && {
23959
         test -z "$ac_c_werror_flag" ||
23960
         test ! -s conftest.err
23961
       } && test -s conftest.$ac_objext; then
23962
  ac_lo=0 ac_mid=0
23963
  while :; do
23964
    cat >conftest.$ac_ext <<_ACEOF
23965
/* confdefs.h.  */
23966
_ACEOF
23967
cat confdefs.h >>conftest.$ac_ext
23968
cat >>conftest.$ac_ext <<_ACEOF
23969
/* end confdefs.h.  */
23970
$ac_includes_default
23971
   typedef short ac__type_sizeof_;
23972
int
23973
main ()
23974
{
23975
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23976
test_array @<:@0@:>@ = 0
23977
 
23978
  ;
23979
  return 0;
23980
}
23981
_ACEOF
23982
rm -f conftest.$ac_objext
23983
if { (ac_try="$ac_compile"
23984
case "(($ac_try" in
23985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986
  *) ac_try_echo=$ac_try;;
23987
esac
23988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23989
  (eval "$ac_compile") 2>conftest.er1
23990
  ac_status=$?
23991
  grep -v '^ *+' conftest.er1 >conftest.err
23992
  rm -f conftest.er1
23993
  cat conftest.err >&5
23994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995
  (exit $ac_status); } && {
23996
         test -z "$ac_c_werror_flag" ||
23997
         test ! -s conftest.err
23998
       } && test -s conftest.$ac_objext; then
23999
  ac_hi=$ac_mid; break
24000
else
24001
  echo "$as_me: failed program was:" >&5
24002
sed 's/^/| /' conftest.$ac_ext >&5
24003
 
24004
        ac_lo=`expr $ac_mid + 1`
24005
                        if test $ac_lo -le $ac_mid; then
24006
                          ac_lo= ac_hi=
24007
                          break
24008
                        fi
24009
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24010
fi
24011
 
24012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013
  done
24014
else
24015
  echo "$as_me: failed program was:" >&5
24016
sed 's/^/| /' conftest.$ac_ext >&5
24017
 
24018
        cat >conftest.$ac_ext <<_ACEOF
24019
/* confdefs.h.  */
24020
_ACEOF
24021
cat confdefs.h >>conftest.$ac_ext
24022
cat >>conftest.$ac_ext <<_ACEOF
24023
/* end confdefs.h.  */
24024
$ac_includes_default
24025
   typedef short ac__type_sizeof_;
24026
int
24027
main ()
24028
{
24029
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24030
test_array @<:@0@:>@ = 0
24031
 
24032
  ;
24033
  return 0;
24034
}
24035
_ACEOF
24036
rm -f conftest.$ac_objext
24037
if { (ac_try="$ac_compile"
24038
case "(($ac_try" in
24039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040
  *) ac_try_echo=$ac_try;;
24041
esac
24042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043
  (eval "$ac_compile") 2>conftest.er1
24044
  ac_status=$?
24045
  grep -v '^ *+' conftest.er1 >conftest.err
24046
  rm -f conftest.er1
24047
  cat conftest.err >&5
24048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049
  (exit $ac_status); } && {
24050
         test -z "$ac_c_werror_flag" ||
24051
         test ! -s conftest.err
24052
       } && test -s conftest.$ac_objext; then
24053
  ac_hi=-1 ac_mid=-1
24054
  while :; do
24055
    cat >conftest.$ac_ext <<_ACEOF
24056
/* confdefs.h.  */
24057
_ACEOF
24058
cat confdefs.h >>conftest.$ac_ext
24059
cat >>conftest.$ac_ext <<_ACEOF
24060
/* end confdefs.h.  */
24061
$ac_includes_default
24062
   typedef short ac__type_sizeof_;
24063
int
24064
main ()
24065
{
24066
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24067
test_array @<:@0@:>@ = 0
24068
 
24069
  ;
24070
  return 0;
24071
}
24072
_ACEOF
24073
rm -f conftest.$ac_objext
24074
if { (ac_try="$ac_compile"
24075
case "(($ac_try" in
24076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077
  *) ac_try_echo=$ac_try;;
24078
esac
24079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080
  (eval "$ac_compile") 2>conftest.er1
24081
  ac_status=$?
24082
  grep -v '^ *+' conftest.er1 >conftest.err
24083
  rm -f conftest.er1
24084
  cat conftest.err >&5
24085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086
  (exit $ac_status); } && {
24087
         test -z "$ac_c_werror_flag" ||
24088
         test ! -s conftest.err
24089
       } && test -s conftest.$ac_objext; then
24090
  ac_lo=$ac_mid; break
24091
else
24092
  echo "$as_me: failed program was:" >&5
24093
sed 's/^/| /' conftest.$ac_ext >&5
24094
 
24095
        ac_hi=`expr '(' $ac_mid ')' - 1`
24096
                        if test $ac_mid -le $ac_hi; then
24097
                          ac_lo= ac_hi=
24098
                          break
24099
                        fi
24100
                        ac_mid=`expr 2 '*' $ac_mid`
24101
fi
24102
 
24103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104
  done
24105
else
24106
  echo "$as_me: failed program was:" >&5
24107
sed 's/^/| /' conftest.$ac_ext >&5
24108
 
24109
        ac_lo= ac_hi=
24110
fi
24111
 
24112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113
fi
24114
 
24115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24116
# Binary search between lo and hi bounds.
24117
while test "x$ac_lo" != "x$ac_hi"; do
24118
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24119
  cat >conftest.$ac_ext <<_ACEOF
24120
/* confdefs.h.  */
24121
_ACEOF
24122
cat confdefs.h >>conftest.$ac_ext
24123
cat >>conftest.$ac_ext <<_ACEOF
24124
/* end confdefs.h.  */
24125
$ac_includes_default
24126
   typedef short ac__type_sizeof_;
24127
int
24128
main ()
24129
{
24130
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24131
test_array @<:@0@:>@ = 0
24132
 
24133
  ;
24134
  return 0;
24135
}
24136
_ACEOF
24137
rm -f conftest.$ac_objext
24138
if { (ac_try="$ac_compile"
24139
case "(($ac_try" in
24140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141
  *) ac_try_echo=$ac_try;;
24142
esac
24143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144
  (eval "$ac_compile") 2>conftest.er1
24145
  ac_status=$?
24146
  grep -v '^ *+' conftest.er1 >conftest.err
24147
  rm -f conftest.er1
24148
  cat conftest.err >&5
24149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150
  (exit $ac_status); } && {
24151
         test -z "$ac_c_werror_flag" ||
24152
         test ! -s conftest.err
24153
       } && test -s conftest.$ac_objext; then
24154
  ac_hi=$ac_mid
24155
else
24156
  echo "$as_me: failed program was:" >&5
24157
sed 's/^/| /' conftest.$ac_ext >&5
24158
 
24159
        ac_lo=`expr '(' $ac_mid ')' + 1`
24160
fi
24161
 
24162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163
done
24164
case $ac_lo in
24165
?*) ac_cv_sizeof_short=$ac_lo;;
24166
'') if test "$ac_cv_type_short" = yes; then
24167
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24168
See \`config.log' for more details." >&5
24169
echo "$as_me: error: cannot compute sizeof (short)
24170
See \`config.log' for more details." >&2;}
24171
   { (exit 77); exit 77; }; }
24172
   else
24173
     ac_cv_sizeof_short=0
24174
   fi ;;
24175
esac
24176
else
24177
  cat >conftest.$ac_ext <<_ACEOF
24178
/* confdefs.h.  */
24179
_ACEOF
24180
cat confdefs.h >>conftest.$ac_ext
24181
cat >>conftest.$ac_ext <<_ACEOF
24182
/* end confdefs.h.  */
24183
$ac_includes_default
24184
   typedef short ac__type_sizeof_;
24185
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24186
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24187
@%:@include 
24188
@%:@include 
24189
int
24190
main ()
24191
{
24192
 
24193
  FILE *f = fopen ("conftest.val", "w");
24194
  if (! f)
24195
    return 1;
24196
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24197
    {
24198
      long int i = longval ();
24199
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24200
        return 1;
24201
      fprintf (f, "%ld\n", i);
24202
    }
24203
  else
24204
    {
24205
      unsigned long int i = ulongval ();
24206
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24207
        return 1;
24208
      fprintf (f, "%lu\n", i);
24209
    }
24210
  return ferror (f) || fclose (f) != 0;
24211
 
24212
  ;
24213
  return 0;
24214
}
24215
_ACEOF
24216
rm -f conftest$ac_exeext
24217
if { (ac_try="$ac_link"
24218
case "(($ac_try" in
24219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220
  *) ac_try_echo=$ac_try;;
24221
esac
24222
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223
  (eval "$ac_link") 2>&5
24224
  ac_status=$?
24225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24227
  { (case "(($ac_try" in
24228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229
  *) ac_try_echo=$ac_try;;
24230
esac
24231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24232
  (eval "$ac_try") 2>&5
24233
  ac_status=$?
24234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235
  (exit $ac_status); }; }; then
24236
  ac_cv_sizeof_short=`cat conftest.val`
24237
else
24238
  echo "$as_me: program exited with status $ac_status" >&5
24239
echo "$as_me: failed program was:" >&5
24240
sed 's/^/| /' conftest.$ac_ext >&5
24241
 
24242
( exit $ac_status )
24243
if test "$ac_cv_type_short" = yes; then
24244
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24245
See \`config.log' for more details." >&5
24246
echo "$as_me: error: cannot compute sizeof (short)
24247
See \`config.log' for more details." >&2;}
24248
   { (exit 77); exit 77; }; }
24249
   else
24250
     ac_cv_sizeof_short=0
24251
   fi
24252
fi
24253
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24254
fi
24255
rm -f conftest.val
24256
fi
24257
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
24258
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
24259
 
24260
 
24261
 
24262
cat >>confdefs.h <<_ACEOF
24263
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
24264
_ACEOF
24265
 
24266
 
24267
{ echo "$as_me:$LINENO: checking for int" >&5
24268
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24269
if test "${ac_cv_type_int+set}" = set; then
24270
  echo $ECHO_N "(cached) $ECHO_C" >&6
24271
else
24272
  cat >conftest.$ac_ext <<_ACEOF
24273
/* confdefs.h.  */
24274
_ACEOF
24275
cat confdefs.h >>conftest.$ac_ext
24276
cat >>conftest.$ac_ext <<_ACEOF
24277
/* end confdefs.h.  */
24278
$ac_includes_default
24279
typedef int ac__type_new_;
24280
int
24281
main ()
24282
{
24283
if ((ac__type_new_ *) 0)
24284
  return 0;
24285
if (sizeof (ac__type_new_))
24286
  return 0;
24287
  ;
24288
  return 0;
24289
}
24290
_ACEOF
24291
rm -f conftest.$ac_objext
24292
if { (ac_try="$ac_compile"
24293
case "(($ac_try" in
24294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295
  *) ac_try_echo=$ac_try;;
24296
esac
24297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298
  (eval "$ac_compile") 2>conftest.er1
24299
  ac_status=$?
24300
  grep -v '^ *+' conftest.er1 >conftest.err
24301
  rm -f conftest.er1
24302
  cat conftest.err >&5
24303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304
  (exit $ac_status); } && {
24305
         test -z "$ac_c_werror_flag" ||
24306
         test ! -s conftest.err
24307
       } && test -s conftest.$ac_objext; then
24308
  ac_cv_type_int=yes
24309
else
24310
  echo "$as_me: failed program was:" >&5
24311
sed 's/^/| /' conftest.$ac_ext >&5
24312
 
24313
        ac_cv_type_int=no
24314
fi
24315
 
24316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317
fi
24318
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24319
echo "${ECHO_T}$ac_cv_type_int" >&6; }
24320
 
24321
# The cast to long int works around a bug in the HP C Compiler
24322
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24323
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24324
# This bug is HP SR number 8606223364.
24325
{ echo "$as_me:$LINENO: checking size of int" >&5
24326
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24327
if test "${ac_cv_sizeof_int+set}" = set; then
24328
  echo $ECHO_N "(cached) $ECHO_C" >&6
24329
else
24330
  if test "$cross_compiling" = yes; then
24331
  # Depending upon the size, compute the lo and hi bounds.
24332
cat >conftest.$ac_ext <<_ACEOF
24333
/* confdefs.h.  */
24334
_ACEOF
24335
cat confdefs.h >>conftest.$ac_ext
24336
cat >>conftest.$ac_ext <<_ACEOF
24337
/* end confdefs.h.  */
24338
$ac_includes_default
24339
   typedef int ac__type_sizeof_;
24340
int
24341
main ()
24342
{
24343
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24344
test_array @<:@0@:>@ = 0
24345
 
24346
  ;
24347
  return 0;
24348
}
24349
_ACEOF
24350
rm -f conftest.$ac_objext
24351
if { (ac_try="$ac_compile"
24352
case "(($ac_try" in
24353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354
  *) ac_try_echo=$ac_try;;
24355
esac
24356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357
  (eval "$ac_compile") 2>conftest.er1
24358
  ac_status=$?
24359
  grep -v '^ *+' conftest.er1 >conftest.err
24360
  rm -f conftest.er1
24361
  cat conftest.err >&5
24362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363
  (exit $ac_status); } && {
24364
         test -z "$ac_c_werror_flag" ||
24365
         test ! -s conftest.err
24366
       } && test -s conftest.$ac_objext; then
24367
  ac_lo=0 ac_mid=0
24368
  while :; do
24369
    cat >conftest.$ac_ext <<_ACEOF
24370
/* confdefs.h.  */
24371
_ACEOF
24372
cat confdefs.h >>conftest.$ac_ext
24373
cat >>conftest.$ac_ext <<_ACEOF
24374
/* end confdefs.h.  */
24375
$ac_includes_default
24376
   typedef int ac__type_sizeof_;
24377
int
24378
main ()
24379
{
24380
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24381
test_array @<:@0@:>@ = 0
24382
 
24383
  ;
24384
  return 0;
24385
}
24386
_ACEOF
24387
rm -f conftest.$ac_objext
24388
if { (ac_try="$ac_compile"
24389
case "(($ac_try" in
24390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391
  *) ac_try_echo=$ac_try;;
24392
esac
24393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24394
  (eval "$ac_compile") 2>conftest.er1
24395
  ac_status=$?
24396
  grep -v '^ *+' conftest.er1 >conftest.err
24397
  rm -f conftest.er1
24398
  cat conftest.err >&5
24399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400
  (exit $ac_status); } && {
24401
         test -z "$ac_c_werror_flag" ||
24402
         test ! -s conftest.err
24403
       } && test -s conftest.$ac_objext; then
24404
  ac_hi=$ac_mid; break
24405
else
24406
  echo "$as_me: failed program was:" >&5
24407
sed 's/^/| /' conftest.$ac_ext >&5
24408
 
24409
        ac_lo=`expr $ac_mid + 1`
24410
                        if test $ac_lo -le $ac_mid; then
24411
                          ac_lo= ac_hi=
24412
                          break
24413
                        fi
24414
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24415
fi
24416
 
24417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24418
  done
24419
else
24420
  echo "$as_me: failed program was:" >&5
24421
sed 's/^/| /' conftest.$ac_ext >&5
24422
 
24423
        cat >conftest.$ac_ext <<_ACEOF
24424
/* confdefs.h.  */
24425
_ACEOF
24426
cat confdefs.h >>conftest.$ac_ext
24427
cat >>conftest.$ac_ext <<_ACEOF
24428
/* end confdefs.h.  */
24429
$ac_includes_default
24430
   typedef int ac__type_sizeof_;
24431
int
24432
main ()
24433
{
24434
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24435
test_array @<:@0@:>@ = 0
24436
 
24437
  ;
24438
  return 0;
24439
}
24440
_ACEOF
24441
rm -f conftest.$ac_objext
24442
if { (ac_try="$ac_compile"
24443
case "(($ac_try" in
24444
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445
  *) ac_try_echo=$ac_try;;
24446
esac
24447
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448
  (eval "$ac_compile") 2>conftest.er1
24449
  ac_status=$?
24450
  grep -v '^ *+' conftest.er1 >conftest.err
24451
  rm -f conftest.er1
24452
  cat conftest.err >&5
24453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454
  (exit $ac_status); } && {
24455
         test -z "$ac_c_werror_flag" ||
24456
         test ! -s conftest.err
24457
       } && test -s conftest.$ac_objext; then
24458
  ac_hi=-1 ac_mid=-1
24459
  while :; do
24460
    cat >conftest.$ac_ext <<_ACEOF
24461
/* confdefs.h.  */
24462
_ACEOF
24463
cat confdefs.h >>conftest.$ac_ext
24464
cat >>conftest.$ac_ext <<_ACEOF
24465
/* end confdefs.h.  */
24466
$ac_includes_default
24467
   typedef int ac__type_sizeof_;
24468
int
24469
main ()
24470
{
24471
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24472
test_array @<:@0@:>@ = 0
24473
 
24474
  ;
24475
  return 0;
24476
}
24477
_ACEOF
24478
rm -f conftest.$ac_objext
24479
if { (ac_try="$ac_compile"
24480
case "(($ac_try" in
24481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482
  *) ac_try_echo=$ac_try;;
24483
esac
24484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485
  (eval "$ac_compile") 2>conftest.er1
24486
  ac_status=$?
24487
  grep -v '^ *+' conftest.er1 >conftest.err
24488
  rm -f conftest.er1
24489
  cat conftest.err >&5
24490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491
  (exit $ac_status); } && {
24492
         test -z "$ac_c_werror_flag" ||
24493
         test ! -s conftest.err
24494
       } && test -s conftest.$ac_objext; then
24495
  ac_lo=$ac_mid; break
24496
else
24497
  echo "$as_me: failed program was:" >&5
24498
sed 's/^/| /' conftest.$ac_ext >&5
24499
 
24500
        ac_hi=`expr '(' $ac_mid ')' - 1`
24501
                        if test $ac_mid -le $ac_hi; then
24502
                          ac_lo= ac_hi=
24503
                          break
24504
                        fi
24505
                        ac_mid=`expr 2 '*' $ac_mid`
24506
fi
24507
 
24508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24509
  done
24510
else
24511
  echo "$as_me: failed program was:" >&5
24512
sed 's/^/| /' conftest.$ac_ext >&5
24513
 
24514
        ac_lo= ac_hi=
24515
fi
24516
 
24517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518
fi
24519
 
24520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24521
# Binary search between lo and hi bounds.
24522
while test "x$ac_lo" != "x$ac_hi"; do
24523
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24524
  cat >conftest.$ac_ext <<_ACEOF
24525
/* confdefs.h.  */
24526
_ACEOF
24527
cat confdefs.h >>conftest.$ac_ext
24528
cat >>conftest.$ac_ext <<_ACEOF
24529
/* end confdefs.h.  */
24530
$ac_includes_default
24531
   typedef int ac__type_sizeof_;
24532
int
24533
main ()
24534
{
24535
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24536
test_array @<:@0@:>@ = 0
24537
 
24538
  ;
24539
  return 0;
24540
}
24541
_ACEOF
24542
rm -f conftest.$ac_objext
24543
if { (ac_try="$ac_compile"
24544
case "(($ac_try" in
24545
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546
  *) ac_try_echo=$ac_try;;
24547
esac
24548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549
  (eval "$ac_compile") 2>conftest.er1
24550
  ac_status=$?
24551
  grep -v '^ *+' conftest.er1 >conftest.err
24552
  rm -f conftest.er1
24553
  cat conftest.err >&5
24554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555
  (exit $ac_status); } && {
24556
         test -z "$ac_c_werror_flag" ||
24557
         test ! -s conftest.err
24558
       } && test -s conftest.$ac_objext; then
24559
  ac_hi=$ac_mid
24560
else
24561
  echo "$as_me: failed program was:" >&5
24562
sed 's/^/| /' conftest.$ac_ext >&5
24563
 
24564
        ac_lo=`expr '(' $ac_mid ')' + 1`
24565
fi
24566
 
24567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568
done
24569
case $ac_lo in
24570
?*) ac_cv_sizeof_int=$ac_lo;;
24571
'') if test "$ac_cv_type_int" = yes; then
24572
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24573
See \`config.log' for more details." >&5
24574
echo "$as_me: error: cannot compute sizeof (int)
24575
See \`config.log' for more details." >&2;}
24576
   { (exit 77); exit 77; }; }
24577
   else
24578
     ac_cv_sizeof_int=0
24579
   fi ;;
24580
esac
24581
else
24582
  cat >conftest.$ac_ext <<_ACEOF
24583
/* confdefs.h.  */
24584
_ACEOF
24585
cat confdefs.h >>conftest.$ac_ext
24586
cat >>conftest.$ac_ext <<_ACEOF
24587
/* end confdefs.h.  */
24588
$ac_includes_default
24589
   typedef int ac__type_sizeof_;
24590
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24591
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24592
@%:@include 
24593
@%:@include 
24594
int
24595
main ()
24596
{
24597
 
24598
  FILE *f = fopen ("conftest.val", "w");
24599
  if (! f)
24600
    return 1;
24601
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24602
    {
24603
      long int i = longval ();
24604
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24605
        return 1;
24606
      fprintf (f, "%ld\n", i);
24607
    }
24608
  else
24609
    {
24610
      unsigned long int i = ulongval ();
24611
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24612
        return 1;
24613
      fprintf (f, "%lu\n", i);
24614
    }
24615
  return ferror (f) || fclose (f) != 0;
24616
 
24617
  ;
24618
  return 0;
24619
}
24620
_ACEOF
24621
rm -f conftest$ac_exeext
24622
if { (ac_try="$ac_link"
24623
case "(($ac_try" in
24624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625
  *) ac_try_echo=$ac_try;;
24626
esac
24627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628
  (eval "$ac_link") 2>&5
24629
  ac_status=$?
24630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24632
  { (case "(($ac_try" in
24633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634
  *) ac_try_echo=$ac_try;;
24635
esac
24636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637
  (eval "$ac_try") 2>&5
24638
  ac_status=$?
24639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640
  (exit $ac_status); }; }; then
24641
  ac_cv_sizeof_int=`cat conftest.val`
24642
else
24643
  echo "$as_me: program exited with status $ac_status" >&5
24644
echo "$as_me: failed program was:" >&5
24645
sed 's/^/| /' conftest.$ac_ext >&5
24646
 
24647
( exit $ac_status )
24648
if test "$ac_cv_type_int" = yes; then
24649
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24650
See \`config.log' for more details." >&5
24651
echo "$as_me: error: cannot compute sizeof (int)
24652
See \`config.log' for more details." >&2;}
24653
   { (exit 77); exit 77; }; }
24654
   else
24655
     ac_cv_sizeof_int=0
24656
   fi
24657
fi
24658
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24659
fi
24660
rm -f conftest.val
24661
fi
24662
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24663
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24664
 
24665
 
24666
 
24667
cat >>confdefs.h <<_ACEOF
24668
@%:@define SIZEOF_INT $ac_cv_sizeof_int
24669
_ACEOF
24670
 
24671
 
24672
{ echo "$as_me:$LINENO: checking for long" >&5
24673
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
24674
if test "${ac_cv_type_long+set}" = set; then
24675
  echo $ECHO_N "(cached) $ECHO_C" >&6
24676
else
24677
  cat >conftest.$ac_ext <<_ACEOF
24678
/* confdefs.h.  */
24679
_ACEOF
24680
cat confdefs.h >>conftest.$ac_ext
24681
cat >>conftest.$ac_ext <<_ACEOF
24682
/* end confdefs.h.  */
24683
$ac_includes_default
24684
typedef long ac__type_new_;
24685
int
24686
main ()
24687
{
24688
if ((ac__type_new_ *) 0)
24689
  return 0;
24690
if (sizeof (ac__type_new_))
24691
  return 0;
24692
  ;
24693
  return 0;
24694
}
24695
_ACEOF
24696
rm -f conftest.$ac_objext
24697
if { (ac_try="$ac_compile"
24698
case "(($ac_try" in
24699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700
  *) ac_try_echo=$ac_try;;
24701
esac
24702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703
  (eval "$ac_compile") 2>conftest.er1
24704
  ac_status=$?
24705
  grep -v '^ *+' conftest.er1 >conftest.err
24706
  rm -f conftest.er1
24707
  cat conftest.err >&5
24708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709
  (exit $ac_status); } && {
24710
         test -z "$ac_c_werror_flag" ||
24711
         test ! -s conftest.err
24712
       } && test -s conftest.$ac_objext; then
24713
  ac_cv_type_long=yes
24714
else
24715
  echo "$as_me: failed program was:" >&5
24716
sed 's/^/| /' conftest.$ac_ext >&5
24717
 
24718
        ac_cv_type_long=no
24719
fi
24720
 
24721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722
fi
24723
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
24724
echo "${ECHO_T}$ac_cv_type_long" >&6; }
24725
 
24726
# The cast to long int works around a bug in the HP C Compiler
24727
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24728
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24729
# This bug is HP SR number 8606223364.
24730
{ echo "$as_me:$LINENO: checking size of long" >&5
24731
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
24732
if test "${ac_cv_sizeof_long+set}" = set; then
24733
  echo $ECHO_N "(cached) $ECHO_C" >&6
24734
else
24735
  if test "$cross_compiling" = yes; then
24736
  # Depending upon the size, compute the lo and hi bounds.
24737
cat >conftest.$ac_ext <<_ACEOF
24738
/* confdefs.h.  */
24739
_ACEOF
24740
cat confdefs.h >>conftest.$ac_ext
24741
cat >>conftest.$ac_ext <<_ACEOF
24742
/* end confdefs.h.  */
24743
$ac_includes_default
24744
   typedef long ac__type_sizeof_;
24745
int
24746
main ()
24747
{
24748
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24749
test_array @<:@0@:>@ = 0
24750
 
24751
  ;
24752
  return 0;
24753
}
24754
_ACEOF
24755
rm -f conftest.$ac_objext
24756
if { (ac_try="$ac_compile"
24757
case "(($ac_try" in
24758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759
  *) ac_try_echo=$ac_try;;
24760
esac
24761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762
  (eval "$ac_compile") 2>conftest.er1
24763
  ac_status=$?
24764
  grep -v '^ *+' conftest.er1 >conftest.err
24765
  rm -f conftest.er1
24766
  cat conftest.err >&5
24767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768
  (exit $ac_status); } && {
24769
         test -z "$ac_c_werror_flag" ||
24770
         test ! -s conftest.err
24771
       } && test -s conftest.$ac_objext; then
24772
  ac_lo=0 ac_mid=0
24773
  while :; do
24774
    cat >conftest.$ac_ext <<_ACEOF
24775
/* confdefs.h.  */
24776
_ACEOF
24777
cat confdefs.h >>conftest.$ac_ext
24778
cat >>conftest.$ac_ext <<_ACEOF
24779
/* end confdefs.h.  */
24780
$ac_includes_default
24781
   typedef long ac__type_sizeof_;
24782
int
24783
main ()
24784
{
24785
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24786
test_array @<:@0@:>@ = 0
24787
 
24788
  ;
24789
  return 0;
24790
}
24791
_ACEOF
24792
rm -f conftest.$ac_objext
24793
if { (ac_try="$ac_compile"
24794
case "(($ac_try" in
24795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24796
  *) ac_try_echo=$ac_try;;
24797
esac
24798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24799
  (eval "$ac_compile") 2>conftest.er1
24800
  ac_status=$?
24801
  grep -v '^ *+' conftest.er1 >conftest.err
24802
  rm -f conftest.er1
24803
  cat conftest.err >&5
24804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805
  (exit $ac_status); } && {
24806
         test -z "$ac_c_werror_flag" ||
24807
         test ! -s conftest.err
24808
       } && test -s conftest.$ac_objext; then
24809
  ac_hi=$ac_mid; break
24810
else
24811
  echo "$as_me: failed program was:" >&5
24812
sed 's/^/| /' conftest.$ac_ext >&5
24813
 
24814
        ac_lo=`expr $ac_mid + 1`
24815
                        if test $ac_lo -le $ac_mid; then
24816
                          ac_lo= ac_hi=
24817
                          break
24818
                        fi
24819
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24820
fi
24821
 
24822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24823
  done
24824
else
24825
  echo "$as_me: failed program was:" >&5
24826
sed 's/^/| /' conftest.$ac_ext >&5
24827
 
24828
        cat >conftest.$ac_ext <<_ACEOF
24829
/* confdefs.h.  */
24830
_ACEOF
24831
cat confdefs.h >>conftest.$ac_ext
24832
cat >>conftest.$ac_ext <<_ACEOF
24833
/* end confdefs.h.  */
24834
$ac_includes_default
24835
   typedef long ac__type_sizeof_;
24836
int
24837
main ()
24838
{
24839
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24840
test_array @<:@0@:>@ = 0
24841
 
24842
  ;
24843
  return 0;
24844
}
24845
_ACEOF
24846
rm -f conftest.$ac_objext
24847
if { (ac_try="$ac_compile"
24848
case "(($ac_try" in
24849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850
  *) ac_try_echo=$ac_try;;
24851
esac
24852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853
  (eval "$ac_compile") 2>conftest.er1
24854
  ac_status=$?
24855
  grep -v '^ *+' conftest.er1 >conftest.err
24856
  rm -f conftest.er1
24857
  cat conftest.err >&5
24858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859
  (exit $ac_status); } && {
24860
         test -z "$ac_c_werror_flag" ||
24861
         test ! -s conftest.err
24862
       } && test -s conftest.$ac_objext; then
24863
  ac_hi=-1 ac_mid=-1
24864
  while :; do
24865
    cat >conftest.$ac_ext <<_ACEOF
24866
/* confdefs.h.  */
24867
_ACEOF
24868
cat confdefs.h >>conftest.$ac_ext
24869
cat >>conftest.$ac_ext <<_ACEOF
24870
/* end confdefs.h.  */
24871
$ac_includes_default
24872
   typedef long ac__type_sizeof_;
24873
int
24874
main ()
24875
{
24876
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24877
test_array @<:@0@:>@ = 0
24878
 
24879
  ;
24880
  return 0;
24881
}
24882
_ACEOF
24883
rm -f conftest.$ac_objext
24884
if { (ac_try="$ac_compile"
24885
case "(($ac_try" in
24886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887
  *) ac_try_echo=$ac_try;;
24888
esac
24889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890
  (eval "$ac_compile") 2>conftest.er1
24891
  ac_status=$?
24892
  grep -v '^ *+' conftest.er1 >conftest.err
24893
  rm -f conftest.er1
24894
  cat conftest.err >&5
24895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896
  (exit $ac_status); } && {
24897
         test -z "$ac_c_werror_flag" ||
24898
         test ! -s conftest.err
24899
       } && test -s conftest.$ac_objext; then
24900
  ac_lo=$ac_mid; break
24901
else
24902
  echo "$as_me: failed program was:" >&5
24903
sed 's/^/| /' conftest.$ac_ext >&5
24904
 
24905
        ac_hi=`expr '(' $ac_mid ')' - 1`
24906
                        if test $ac_mid -le $ac_hi; then
24907
                          ac_lo= ac_hi=
24908
                          break
24909
                        fi
24910
                        ac_mid=`expr 2 '*' $ac_mid`
24911
fi
24912
 
24913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914
  done
24915
else
24916
  echo "$as_me: failed program was:" >&5
24917
sed 's/^/| /' conftest.$ac_ext >&5
24918
 
24919
        ac_lo= ac_hi=
24920
fi
24921
 
24922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24923
fi
24924
 
24925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24926
# Binary search between lo and hi bounds.
24927
while test "x$ac_lo" != "x$ac_hi"; do
24928
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24929
  cat >conftest.$ac_ext <<_ACEOF
24930
/* confdefs.h.  */
24931
_ACEOF
24932
cat confdefs.h >>conftest.$ac_ext
24933
cat >>conftest.$ac_ext <<_ACEOF
24934
/* end confdefs.h.  */
24935
$ac_includes_default
24936
   typedef long ac__type_sizeof_;
24937
int
24938
main ()
24939
{
24940
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24941
test_array @<:@0@:>@ = 0
24942
 
24943
  ;
24944
  return 0;
24945
}
24946
_ACEOF
24947
rm -f conftest.$ac_objext
24948
if { (ac_try="$ac_compile"
24949
case "(($ac_try" in
24950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951
  *) ac_try_echo=$ac_try;;
24952
esac
24953
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954
  (eval "$ac_compile") 2>conftest.er1
24955
  ac_status=$?
24956
  grep -v '^ *+' conftest.er1 >conftest.err
24957
  rm -f conftest.er1
24958
  cat conftest.err >&5
24959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960
  (exit $ac_status); } && {
24961
         test -z "$ac_c_werror_flag" ||
24962
         test ! -s conftest.err
24963
       } && test -s conftest.$ac_objext; then
24964
  ac_hi=$ac_mid
24965
else
24966
  echo "$as_me: failed program was:" >&5
24967
sed 's/^/| /' conftest.$ac_ext >&5
24968
 
24969
        ac_lo=`expr '(' $ac_mid ')' + 1`
24970
fi
24971
 
24972
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24973
done
24974
case $ac_lo in
24975
?*) ac_cv_sizeof_long=$ac_lo;;
24976
'') if test "$ac_cv_type_long" = yes; then
24977
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24978
See \`config.log' for more details." >&5
24979
echo "$as_me: error: cannot compute sizeof (long)
24980
See \`config.log' for more details." >&2;}
24981
   { (exit 77); exit 77; }; }
24982
   else
24983
     ac_cv_sizeof_long=0
24984
   fi ;;
24985
esac
24986
else
24987
  cat >conftest.$ac_ext <<_ACEOF
24988
/* confdefs.h.  */
24989
_ACEOF
24990
cat confdefs.h >>conftest.$ac_ext
24991
cat >>conftest.$ac_ext <<_ACEOF
24992
/* end confdefs.h.  */
24993
$ac_includes_default
24994
   typedef long ac__type_sizeof_;
24995
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24996
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24997
@%:@include 
24998
@%:@include 
24999
int
25000
main ()
25001
{
25002
 
25003
  FILE *f = fopen ("conftest.val", "w");
25004
  if (! f)
25005
    return 1;
25006
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25007
    {
25008
      long int i = longval ();
25009
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25010
        return 1;
25011
      fprintf (f, "%ld\n", i);
25012
    }
25013
  else
25014
    {
25015
      unsigned long int i = ulongval ();
25016
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25017
        return 1;
25018
      fprintf (f, "%lu\n", i);
25019
    }
25020
  return ferror (f) || fclose (f) != 0;
25021
 
25022
  ;
25023
  return 0;
25024
}
25025
_ACEOF
25026
rm -f conftest$ac_exeext
25027
if { (ac_try="$ac_link"
25028
case "(($ac_try" in
25029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030
  *) ac_try_echo=$ac_try;;
25031
esac
25032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033
  (eval "$ac_link") 2>&5
25034
  ac_status=$?
25035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25037
  { (case "(($ac_try" in
25038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039
  *) ac_try_echo=$ac_try;;
25040
esac
25041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042
  (eval "$ac_try") 2>&5
25043
  ac_status=$?
25044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045
  (exit $ac_status); }; }; then
25046
  ac_cv_sizeof_long=`cat conftest.val`
25047
else
25048
  echo "$as_me: program exited with status $ac_status" >&5
25049
echo "$as_me: failed program was:" >&5
25050
sed 's/^/| /' conftest.$ac_ext >&5
25051
 
25052
( exit $ac_status )
25053
if test "$ac_cv_type_long" = yes; then
25054
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25055
See \`config.log' for more details." >&5
25056
echo "$as_me: error: cannot compute sizeof (long)
25057
See \`config.log' for more details." >&2;}
25058
   { (exit 77); exit 77; }; }
25059
   else
25060
     ac_cv_sizeof_long=0
25061
   fi
25062
fi
25063
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25064
fi
25065
rm -f conftest.val
25066
fi
25067
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25068
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
25069
 
25070
 
25071
 
25072
cat >>confdefs.h <<_ACEOF
25073
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
25074
_ACEOF
25075
 
25076
 
25077
 
25078
# check for GNU readline
25079
 
25080
{ echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
25081
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6; }
25082
if test "${ac_cv_lib_readline_add_history+set}" = set; then
25083
  echo $ECHO_N "(cached) $ECHO_C" >&6
25084
else
25085
  ac_check_lib_save_LIBS=$LIBS
25086
LIBS="-lreadline  $LIBS"
25087
cat >conftest.$ac_ext <<_ACEOF
25088
/* confdefs.h.  */
25089
_ACEOF
25090
cat confdefs.h >>conftest.$ac_ext
25091
cat >>conftest.$ac_ext <<_ACEOF
25092
/* end confdefs.h.  */
25093
 
25094
/* Override any GCC internal prototype to avoid an error.
25095
   Use char because int might match the return type of a GCC
25096
   builtin and then its argument prototype would still apply.  */
25097
#ifdef __cplusplus
25098
extern "C"
25099
#endif
25100
char add_history ();
25101
int
25102
main ()
25103
{
25104
return add_history ();
25105
  ;
25106
  return 0;
25107
}
25108
_ACEOF
25109
rm -f conftest.$ac_objext conftest$ac_exeext
25110
if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25117
  ac_status=$?
25118
  grep -v '^ *+' conftest.er1 >conftest.err
25119
  rm -f conftest.er1
25120
  cat conftest.err >&5
25121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122
  (exit $ac_status); } && {
25123
         test -z "$ac_c_werror_flag" ||
25124
         test ! -s conftest.err
25125
       } && test -s conftest$ac_exeext &&
25126
       $as_test_x conftest$ac_exeext; then
25127
  ac_cv_lib_readline_add_history=yes
25128
else
25129
  echo "$as_me: failed program was:" >&5
25130
sed 's/^/| /' conftest.$ac_ext >&5
25131
 
25132
        ac_cv_lib_readline_add_history=no
25133
fi
25134
 
25135
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25136
      conftest$ac_exeext conftest.$ac_ext
25137
LIBS=$ac_check_lib_save_LIBS
25138
fi
25139
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
25140
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6; }
25141
if test $ac_cv_lib_readline_add_history = yes; then
25142
  cat >>confdefs.h <<_ACEOF
25143
@%:@define HAVE_LIBREADLINE 1
25144
_ACEOF
25145
 
25146
  LIBS="-lreadline $LIBS"
25147
 
25148
fi
25149
 
25150
 
25151
# yuck
25152
case "$host_os" in
25153
aix*)   prefer_curses=yes ;;
25154
esac
25155
 
25156
case "$host_cpu" in
25157
*cray*) LOCAL_CFLAGS=-DCRAY ;;
25158
esac
25159
 
25160
case "$host_os" in
25161
isc*)   LOCAL_CFLAGS=-Disc386 ;;
25162
esac
25163
 
25164
case "$host_os" in
25165
solaris*) LIBS="-lsocket -lnsl" ;;
25166
esac
25167
 
25168
# define options
25169
 
25170
{ echo "$as_me:$LINENO: checking whether to enable profiling" >&5
25171
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6; }
25172
# Check whether --enable-profiling was given.
25173
if test "${enable_profiling+set}" = set; then
25174
  enableval=$enable_profiling;
25175
    case "$enableval" in
25176
        yes) profile="-pg -a" ;;
25177
    esac
25178
 
25179
fi
25180
 
25181
{ echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
25182
echo "${ECHO_T}${enable_profiling-no}" >&6; }
25183
 
25184
execution="1"
25185
 
25186
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25187
{ echo "$as_me:$LINENO: checking which execution style to use" >&5
25188
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6; }
25189
# Check whether --enable-execution was given.
25190
if test "${enable_execution+set}" = set; then
25191
  enableval=$enable_execution;
25192
    case "$enableval" in
25193
    simple)
25194
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25195
      execution="0"
25196
      { echo "$as_me:$LINENO: result: simple" >&5
25197
echo "${ECHO_T}simple" >&6; }
25198
      ;;
25199
    complex)
25200
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25201
      execution="1"
25202
      { echo "$as_me:$LINENO: result: complex" >&5
25203
echo "${ECHO_T}complex" >&6; }
25204
      ;;
25205
    dynamic)
25206
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25207
      execution="2"
25208
      { echo "$as_me:$LINENO: result: dynamic" >&5
25209
echo "${ECHO_T}dynamic" >&6; }
25210
      ;;
25211
    *)
25212
      { { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
25213
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
25214
   { (exit 1); exit 1; }; }
25215
      ;;
25216
    esac
25217
 
25218
else
25219
 
25220
      { echo "$as_me:$LINENO: result: complex" >&5
25221
echo "${ECHO_T}complex" >&6; }
25222
 
25223
fi
25224
 
25225
 
25226
eth_phy="0"
25227
{ echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
25228
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6; }
25229
# Check whether --enable-ethphy was given.
25230
if test "${enable_ethphy+set}" = set; then
25231
  enableval=$enable_ethphy;
25232
    case "$enableval" in
25233
  no)  eth_phy="0" ;;
25234
        yes) eth_phy="1" ;;
25235
    esac
25236
 
25237
fi
25238
 
25239
{ echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
25240
echo "${ECHO_T}${enable_eth_phy-no}" >&6; }
25241
 
25242
 
25243
raw_range_stats="0"
25244
{ echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
25245
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6; }
25246
# Check whether --enable-range_stats was given.
25247
if test "${enable_range_stats+set}" = set; then
25248
  enableval=$enable_range_stats;
25249
    case "$enableval" in
25250
  no)  raw_range_stats="0" ;;
25251
        yes) raw_range_stats="1" simple_execution="1" ;;
25252
    esac
25253
 
25254
fi
25255
 
25256
{ echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
25257
echo "${ECHO_T}${enable_range_stats-no}" >&6; }
25258
 
25259
set_ov_flag="0"
25260
{ echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
25261
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6; }
25262
# Check whether --enable-ov_flag was given.
25263
if test "${enable_ov_flag+set}" = set; then
25264
  enableval=$enable_ov_flag;
25265
    case "$enableval" in
25266
  no)  set_ov_flag="0" ;;
25267
        yes) set_ov_flag="1" ;;
25268
    esac
25269
 
25270
fi
25271
 
25272
{ echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
25273
echo "${ECHO_T}${enable_ov_flag-no}" >&6; }
25274
 
25275
set_arith_flag="0"
25276
{ echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
25277
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6; }
25278
# Check whether --enable-arith_flag was given.
25279
if test "${enable_arith_flag+set}" = set; then
25280
  enableval=$enable_arith_flag;
25281
    case "$enableval" in
25282
  no)  set_arith_flag="0" ;;
25283
        yes) set_arith_flag="1" ;;
25284
    esac
25285
 
25286
fi
25287
 
25288
{ echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
25289
echo "${ECHO_T}${enable_arith_flag-no}" >&6; }
25290
 
25291
# check for --enable-debug argument (for argtable2)
25292
# Check whether --enable-debug was given.
25293
if test "${enable_debug+set}" = set; then
25294
  enableval=$enable_debug;
25295
       case $enableval in
25296
          yes) echo "enabling debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
25297
          no)  echo "disabling debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
25298
          *)   echo "illegal argument to --enable-debug" & exit 1;;
25299
       esac
25300
 
25301
else
25302
  DEBUGFLAGS="-DNDEBUG"
25303
 
25304
fi
25305
 
25306
 
25307
 
25308
 
25309
cat >>confdefs.h <<_ACEOF
25310
@%:@define RAW_RANGE_STATS $raw_range_stats
25311
_ACEOF
25312
 
25313
 
25314
cat >>confdefs.h <<_ACEOF
25315
@%:@define SET_OV_FLAG $set_ov_flag
25316
_ACEOF
25317
 
25318
 
25319
cat >>confdefs.h <<_ACEOF
25320
@%:@define ARITH_SET_FLAG $set_arith_flag
25321
_ACEOF
25322
 
25323
 
25324
cat >>confdefs.h <<_ACEOF
25325
@%:@define HAVE_ETH_PHY $eth_phy
25326
_ACEOF
25327
 
25328
 
25329
cat >>confdefs.h <<_ACEOF
25330
@%:@define SIMPLE_EXECUTION $execution == 0
25331
_ACEOF
25332
 
25333
 
25334
cat >>confdefs.h <<_ACEOF
25335
@%:@define COMPLEX_EXECUTION $execution == 1
25336
_ACEOF
25337
 
25338
 
25339
cat >>confdefs.h <<_ACEOF
25340
@%:@define DYNAMIC_EXECUTION $execution == 2
25341
_ACEOF
25342
 
25343
 if test x$execution = x1; then
25344
  GENERATE_NEEDED_TRUE=
25345
  GENERATE_NEEDED_FALSE='#'
25346
else
25347
  GENERATE_NEEDED_TRUE='#'
25348
  GENERATE_NEEDED_FALSE=
25349
fi
25350
 
25351
 if test x$execution = x2; then
25352
  DYNAMIC_EXECUTION_TRUE=
25353
  DYNAMIC_EXECUTION_FALSE='#'
25354
else
25355
  DYNAMIC_EXECUTION_TRUE='#'
25356
  DYNAMIC_EXECUTION_FALSE=
25357
fi
25358
 
25359
 
25360
 
25361
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
25362
# CFLAGS="$CFLAGS -O4"
25363
 
25364
BUILD_DIR=`pwd`
25365
 
25366
 
25367
 
25368
 
25369
 
25370
 
25371
 
25372
 
25373
 
25374
 
25375
 
25376
 
25377
 
25378
 
25379
 
25380
 
25381
 
25382
 
25383
cat >>confdefs.h <<\_ACEOF
25384
@%:@define HAVE_EXECUTION 1
25385
_ACEOF
25386
 
25387
 
25388
# yuck
25389
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
25390
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
25391
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
25392
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
25393
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
25394
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
25395
 
25396
 
25397
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"
25398
 
25399
 
25400
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
25401
case "$CPU_ARCH" in
25402
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
25403
;;
25404
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
25405
;;
25406
esac
25407
 
25408
# Makefile uses this timestamp file to record whether config.h is up to date.
25409
# AC_CONFIG_COMMANDS([default],[[
25410
# echo > stamp-h
25411
# ]],[[]])
25412
cat >confcache <<\_ACEOF
25413
# This file is a shell script that caches the results of configure
25414
# tests run on this system so they can be shared between configure
25415
# scripts and configure runs, see configure's option --config-cache.
25416
# It is not useful on other systems.  If it contains results you don't
25417
# want to keep, you may remove or edit it.
25418
#
25419
# config.status only pays attention to the cache file if you give it
25420
# the --recheck option to rerun configure.
25421
#
25422
# `ac_cv_env_foo' variables (set or unset) will be overridden when
25423
# loading this file, other *unset* `ac_cv_foo' will be assigned the
25424
# following values.
25425
 
25426
_ACEOF
25427
 
25428
# The following way of writing the cache mishandles newlines in values,
25429
# but we know of no workaround that is simple, portable, and efficient.
25430
# So, we kill variables containing newlines.
25431
# Ultrix sh set writes to stderr and can't be redirected directly,
25432
# and sets the high bit in the cache file unless we assign to the vars.
25433
(
25434
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25435
    eval ac_val=\$$ac_var
25436
    case $ac_val in #(
25437
    *${as_nl}*)
25438
      case $ac_var in #(
25439
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25440
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25441
      esac
25442
      case $ac_var in #(
25443
      _ | IFS | as_nl) ;; #(
25444
      *) $as_unset $ac_var ;;
25445
      esac ;;
25446
    esac
25447
  done
25448
 
25449
  (set) 2>&1 |
25450
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25451
    *${as_nl}ac_space=\ *)
25452
      # `set' does not quote correctly, so add quotes (double-quote
25453
      # substitution turns \\\\ into \\, and sed turns \\ into \).
25454
      sed -n \
25455
        "s/'/'\\\\''/g;
25456
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25457
      ;; #(
25458
    *)
25459
      # `set' quotes correctly as required by POSIX, so do not add quotes.
25460
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25461
      ;;
25462
    esac |
25463
    sort
25464
) |
25465
  sed '
25466
     /^ac_cv_env_/b end
25467
     t clear
25468
     :clear
25469
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25470
     t end
25471
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25472
     :end' >>confcache
25473
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25474
  if test -w "$cache_file"; then
25475
    test "x$cache_file" != "x/dev/null" &&
25476
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25477
echo "$as_me: updating cache $cache_file" >&6;}
25478
    cat confcache >$cache_file
25479
  else
25480
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25481
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25482
  fi
25483
fi
25484
rm -f confcache
25485
 
25486
test "x$prefix" = xNONE && prefix=$ac_default_prefix
25487
# Let make expand exec_prefix.
25488
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25489
 
25490
DEFS=-DHAVE_CONFIG_H
25491
 
25492
ac_libobjs=
25493
ac_ltlibobjs=
25494
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
25495
  # 1. Remove the extension, and $U if already installed.
25496
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25497
  ac_i=`echo "$ac_i" | sed "$ac_script"`
25498
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25499
  #    will be set to the directory where LIBOBJS objects are built.
25500
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25501
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25502
done
25503
LIB@&t@OBJS=$ac_libobjs
25504
 
25505
LTLIBOBJS=$ac_ltlibobjs
25506
 
25507
 
25508
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25509
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25510
Usually this means the macro was only invoked conditionally." >&5
25511
echo "$as_me: error: conditional \"AMDEP\" was never defined.
25512
Usually this means the macro was only invoked conditionally." >&2;}
25513
   { (exit 1); exit 1; }; }
25514
fi
25515
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25516
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25517
Usually this means the macro was only invoked conditionally." >&5
25518
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25519
Usually this means the macro was only invoked conditionally." >&2;}
25520
   { (exit 1); exit 1; }; }
25521
fi
25522
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25523
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25524
Usually this means the macro was only invoked conditionally." >&5
25525
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25526
Usually this means the macro was only invoked conditionally." >&2;}
25527
   { (exit 1); exit 1; }; }
25528
fi
25529
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
25530
  { { echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25531
Usually this means the macro was only invoked conditionally." >&5
25532
echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25533
Usually this means the macro was only invoked conditionally." >&2;}
25534
   { (exit 1); exit 1; }; }
25535
fi
25536
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
25537
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
25538
Usually this means the macro was only invoked conditionally." >&5
25539
echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
25540
Usually this means the macro was only invoked conditionally." >&2;}
25541
   { (exit 1); exit 1; }; }
25542
fi
25543
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
25544
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
25545
Usually this means the macro was only invoked conditionally." >&5
25546
echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
25547
Usually this means the macro was only invoked conditionally." >&2;}
25548
   { (exit 1); exit 1; }; }
25549
fi
25550
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
25551
  { { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
25552
Usually this means the macro was only invoked conditionally." >&5
25553
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
25554
Usually this means the macro was only invoked conditionally." >&2;}
25555
   { (exit 1); exit 1; }; }
25556
fi
25557
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
25558
  { { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25559
Usually this means the macro was only invoked conditionally." >&5
25560
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25561
Usually this means the macro was only invoked conditionally." >&2;}
25562
   { (exit 1); exit 1; }; }
25563
fi
25564
 
25565
: ${CONFIG_STATUS=./config.status}
25566
ac_clean_files_save=$ac_clean_files
25567
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25568
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25569
echo "$as_me: creating $CONFIG_STATUS" >&6;}
25570
cat >$CONFIG_STATUS <<_ACEOF
25571
#! $SHELL
25572
# Generated by $as_me.
25573
# Run this file to recreate the current configuration.
25574
# Compiler output produced by configure, useful for debugging
25575
# configure, is in config.log if it exists.
25576
 
25577
debug=false
25578
ac_cs_recheck=false
25579
ac_cs_silent=false
25580
SHELL=\${CONFIG_SHELL-$SHELL}
25581
_ACEOF
25582
 
25583
cat >>$CONFIG_STATUS <<\_ACEOF
25584
## --------------------- ##
25585
## M4sh Initialization.  ##
25586
## --------------------- ##
25587
 
25588
# Be more Bourne compatible
25589
DUALCASE=1; export DUALCASE # for MKS sh
25590
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25591
  emulate sh
25592
  NULLCMD=:
25593
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25594
  # is contrary to our usage.  Disable this feature.
25595
  alias -g '${1+"$@"}'='"$@"'
25596
  setopt NO_GLOB_SUBST
25597
else
25598
  case `(set -o) 2>/dev/null` in
25599
  *posix*) set -o posix ;;
25600
esac
25601
 
25602
fi
25603
 
25604
 
25605
 
25606
 
25607
# PATH needs CR
25608
# Avoid depending upon Character Ranges.
25609
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25610
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25611
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25612
as_cr_digits='0123456789'
25613
as_cr_alnum=$as_cr_Letters$as_cr_digits
25614
 
25615
# The user is always right.
25616
if test "${PATH_SEPARATOR+set}" != set; then
25617
  echo "#! /bin/sh" >conf$$.sh
25618
  echo  "exit 0"   >>conf$$.sh
25619
  chmod +x conf$$.sh
25620
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25621
    PATH_SEPARATOR=';'
25622
  else
25623
    PATH_SEPARATOR=:
25624
  fi
25625
  rm -f conf$$.sh
25626
fi
25627
 
25628
# Support unset when possible.
25629
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25630
  as_unset=unset
25631
else
25632
  as_unset=false
25633
fi
25634
 
25635
 
25636
# IFS
25637
# We need space, tab and new line, in precisely that order.  Quoting is
25638
# there to prevent editors from complaining about space-tab.
25639
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25640
# splitting by setting IFS to empty value.)
25641
as_nl='
25642
'
25643
IFS=" ""        $as_nl"
25644
 
25645
# Find who we are.  Look in the path if we contain no directory separator.
25646
case $0 in
25647
  *[\\/]* ) as_myself=$0 ;;
25648
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25649
for as_dir in $PATH
25650
do
25651
  IFS=$as_save_IFS
25652
  test -z "$as_dir" && as_dir=.
25653
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25654
done
25655
IFS=$as_save_IFS
25656
 
25657
     ;;
25658
esac
25659
# We did not find ourselves, most probably we were run as `sh COMMAND'
25660
# in which case we are not to be found in the path.
25661
if test "x$as_myself" = x; then
25662
  as_myself=$0
25663
fi
25664
if test ! -f "$as_myself"; then
25665
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25666
  { (exit 1); exit 1; }
25667
fi
25668
 
25669
# Work around bugs in pre-3.0 UWIN ksh.
25670
for as_var in ENV MAIL MAILPATH
25671
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25672
done
25673
PS1='$ '
25674
PS2='> '
25675
PS4='+ '
25676
 
25677
# NLS nuisances.
25678
for as_var in \
25679
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25680
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25681
  LC_TELEPHONE LC_TIME
25682
do
25683
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25684
    eval $as_var=C; export $as_var
25685
  else
25686
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25687
  fi
25688
done
25689
 
25690
# Required to use basename.
25691
if expr a : '\(a\)' >/dev/null 2>&1 &&
25692
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25693
  as_expr=expr
25694
else
25695
  as_expr=false
25696
fi
25697
 
25698
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25699
  as_basename=basename
25700
else
25701
  as_basename=false
25702
fi
25703
 
25704
 
25705
# Name of the executable.
25706
as_me=`$as_basename -- "$0" ||
25707
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25708
         X"$0" : 'X\(//\)$' \| \
25709
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25710
echo X/"$0" |
25711
    sed '/^.*\/\([^/][^/]*\)\/*$/{
25712
            s//\1/
25713
            q
25714
          }
25715
          /^X\/\(\/\/\)$/{
25716
            s//\1/
25717
            q
25718
          }
25719
          /^X\/\(\/\).*/{
25720
            s//\1/
25721
            q
25722
          }
25723
          s/.*/./; q'`
25724
 
25725
# CDPATH.
25726
$as_unset CDPATH
25727
 
25728
 
25729
 
25730
  as_lineno_1=$LINENO
25731
  as_lineno_2=$LINENO
25732
  test "x$as_lineno_1" != "x$as_lineno_2" &&
25733
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25734
 
25735
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25736
  # uniformly replaced by the line number.  The first 'sed' inserts a
25737
  # line-number line after each line using $LINENO; the second 'sed'
25738
  # does the real work.  The second script uses 'N' to pair each
25739
  # line-number line with the line containing $LINENO, and appends
25740
  # trailing '-' during substitution so that $LINENO is not a special
25741
  # case at line end.
25742
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25743
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
25744
  # E. McMahon (1931-1989) for sed's syntax.  :-)
25745
  sed -n '
25746
    p
25747
    /[$]LINENO/=
25748
  ' <$as_myself |
25749
    sed '
25750
      s/[$]LINENO.*/&-/
25751
      t lineno
25752
      b
25753
      :lineno
25754
      N
25755
      :loop
25756
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25757
      t loop
25758
      s/-\n.*//
25759
    ' >$as_me.lineno &&
25760
  chmod +x "$as_me.lineno" ||
25761
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25762
   { (exit 1); exit 1; }; }
25763
 
25764
  # Don't try to exec as it changes $[0], causing all sort of problems
25765
  # (the dirname of $[0] is not the place where we might find the
25766
  # original and so on.  Autoconf is especially sensitive to this).
25767
  . "./$as_me.lineno"
25768
  # Exit status is that of the last command.
25769
  exit
25770
}
25771
 
25772
 
25773
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25774
  as_dirname=dirname
25775
else
25776
  as_dirname=false
25777
fi
25778
 
25779
ECHO_C= ECHO_N= ECHO_T=
25780
case `echo -n x` in
25781
-n*)
25782
  case `echo 'x\c'` in
25783
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25784
  *)   ECHO_C='\c';;
25785
  esac;;
25786
*)
25787
  ECHO_N='-n';;
25788
esac
25789
 
25790
if expr a : '\(a\)' >/dev/null 2>&1 &&
25791
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25792
  as_expr=expr
25793
else
25794
  as_expr=false
25795
fi
25796
 
25797
rm -f conf$$ conf$$.exe conf$$.file
25798
if test -d conf$$.dir; then
25799
  rm -f conf$$.dir/conf$$.file
25800
else
25801
  rm -f conf$$.dir
25802
  mkdir conf$$.dir
25803
fi
25804
echo >conf$$.file
25805
if ln -s conf$$.file conf$$ 2>/dev/null; then
25806
  as_ln_s='ln -s'
25807
  # ... but there are two gotchas:
25808
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25809
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25810
  # In both cases, we have to default to `cp -p'.
25811
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25812
    as_ln_s='cp -p'
25813
elif ln conf$$.file conf$$ 2>/dev/null; then
25814
  as_ln_s=ln
25815
else
25816
  as_ln_s='cp -p'
25817
fi
25818
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25819
rmdir conf$$.dir 2>/dev/null
25820
 
25821
if mkdir -p . 2>/dev/null; then
25822
  as_mkdir_p=:
25823
else
25824
  test -d ./-p && rmdir ./-p
25825
  as_mkdir_p=false
25826
fi
25827
 
25828
if test -x / >/dev/null 2>&1; then
25829
  as_test_x='test -x'
25830
else
25831
  if ls -dL / >/dev/null 2>&1; then
25832
    as_ls_L_option=L
25833
  else
25834
    as_ls_L_option=
25835
  fi
25836
  as_test_x='
25837
    eval sh -c '\''
25838
      if test -d "$1"; then
25839
        test -d "$1/.";
25840
      else
25841
        case $1 in
25842
        -*)set "./$1";;
25843
        esac;
25844
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25845
        ???[sx]*):;;*)false;;esac;fi
25846
    '\'' sh
25847
  '
25848
fi
25849
as_executable_p=$as_test_x
25850
 
25851
# Sed expression to map a string onto a valid CPP name.
25852
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25853
 
25854
# Sed expression to map a string onto a valid variable name.
25855
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25856
 
25857
 
25858
exec 6>&1
25859
 
25860
# Save the log message, to keep $[0] and so on meaningful, and to
25861
# report actual input values of CONFIG_FILES etc. instead of their
25862
# values after options handling.
25863
ac_log="
25864
This file was extended by or1ksim $as_me 0.3.0rc1, which was
25865
generated by GNU Autoconf 2.61.  Invocation command line was
25866
 
25867
  CONFIG_FILES    = $CONFIG_FILES
25868
  CONFIG_HEADERS  = $CONFIG_HEADERS
25869
  CONFIG_LINKS    = $CONFIG_LINKS
25870
  CONFIG_COMMANDS = $CONFIG_COMMANDS
25871
  $ $0 $@
25872
 
25873
on `(hostname || uname -n) 2>/dev/null | sed 1q`
25874
"
25875
 
25876
_ACEOF
25877
 
25878
cat >>$CONFIG_STATUS <<_ACEOF
25879
# Files that config.status was made for.
25880
config_files="$ac_config_files"
25881
config_headers="$ac_config_headers"
25882
config_commands="$ac_config_commands"
25883
 
25884
_ACEOF
25885
 
25886
cat >>$CONFIG_STATUS <<\_ACEOF
25887
ac_cs_usage="\
25888
\`$as_me' instantiates files from templates according to the
25889
current configuration.
25890
 
25891
Usage: $0 [OPTIONS] [FILE]...
25892
 
25893
  -h, --help       print this help, then exit
25894
  -V, --version    print version number and configuration settings, then exit
25895
  -q, --quiet      do not print progress messages
25896
  -d, --debug      don't remove temporary files
25897
      --recheck    update $as_me by reconfiguring in the same conditions
25898
  --file=FILE[:TEMPLATE]
25899
                   instantiate the configuration file FILE
25900
  --header=FILE[:TEMPLATE]
25901
                   instantiate the configuration header FILE
25902
 
25903
Configuration files:
25904
$config_files
25905
 
25906
Configuration headers:
25907
$config_headers
25908
 
25909
Configuration commands:
25910
$config_commands
25911
 
25912
Report bugs to ."
25913
 
25914
_ACEOF
25915
cat >>$CONFIG_STATUS <<_ACEOF
25916
ac_cs_version="\\
25917
or1ksim config.status 0.3.0rc1
25918
configured by $0, generated by GNU Autoconf 2.61,
25919
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25920
 
25921
Copyright (C) 2006 Free Software Foundation, Inc.
25922
This config.status script is free software; the Free Software Foundation
25923
gives unlimited permission to copy, distribute and modify it."
25924
 
25925
ac_pwd='$ac_pwd'
25926
srcdir='$srcdir'
25927
INSTALL='$INSTALL'
25928
MKDIR_P='$MKDIR_P'
25929
_ACEOF
25930
 
25931
cat >>$CONFIG_STATUS <<\_ACEOF
25932
# If no file are specified by the user, then we need to provide default
25933
# value.  By we need to know if files were specified by the user.
25934
ac_need_defaults=:
25935
while test $# != 0
25936
do
25937
  case $1 in
25938
  --*=*)
25939
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25940
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25941
    ac_shift=:
25942
    ;;
25943
  *)
25944
    ac_option=$1
25945
    ac_optarg=$2
25946
    ac_shift=shift
25947
    ;;
25948
  esac
25949
 
25950
  case $ac_option in
25951
  # Handling of the options.
25952
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25953
    ac_cs_recheck=: ;;
25954
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25955
    echo "$ac_cs_version"; exit ;;
25956
  --debug | --debu | --deb | --de | --d | -d )
25957
    debug=: ;;
25958
  --file | --fil | --fi | --f )
25959
    $ac_shift
25960
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25961
    ac_need_defaults=false;;
25962
  --header | --heade | --head | --hea )
25963
    $ac_shift
25964
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25965
    ac_need_defaults=false;;
25966
  --he | --h)
25967
    # Conflict between --help and --header
25968
    { echo "$as_me: error: ambiguous option: $1
25969
Try \`$0 --help' for more information." >&2
25970
   { (exit 1); exit 1; }; };;
25971
  --help | --hel | -h )
25972
    echo "$ac_cs_usage"; exit ;;
25973
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25974
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25975
    ac_cs_silent=: ;;
25976
 
25977
  # This is an error.
25978
  -*) { echo "$as_me: error: unrecognized option: $1
25979
Try \`$0 --help' for more information." >&2
25980
   { (exit 1); exit 1; }; } ;;
25981
 
25982
  *) ac_config_targets="$ac_config_targets $1"
25983
     ac_need_defaults=false ;;
25984
 
25985
  esac
25986
  shift
25987
done
25988
 
25989
ac_configure_extra_args=
25990
 
25991
if $ac_cs_silent; then
25992
  exec 6>/dev/null
25993
  ac_configure_extra_args="$ac_configure_extra_args --silent"
25994
fi
25995
 
25996
_ACEOF
25997
cat >>$CONFIG_STATUS <<_ACEOF
25998
if \$ac_cs_recheck; then
25999
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26000
  CONFIG_SHELL=$SHELL
26001
  export CONFIG_SHELL
26002
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26003
fi
26004
 
26005
_ACEOF
26006
cat >>$CONFIG_STATUS <<\_ACEOF
26007
exec 5>>config.log
26008
{
26009
  echo
26010
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
26011
@%:@@%:@ Running $as_me. @%:@@%:@
26012
_ASBOX
26013
  echo "$ac_log"
26014
} >&5
26015
 
26016
_ACEOF
26017
cat >>$CONFIG_STATUS <<_ACEOF
26018
#
26019
# INIT-COMMANDS
26020
#
26021
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26022
 
26023
_ACEOF
26024
 
26025
cat >>$CONFIG_STATUS <<\_ACEOF
26026
 
26027
# Handling of arguments.
26028
for ac_config_target in $ac_config_targets
26029
do
26030
  case $ac_config_target in
26031
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26032
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26033
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26034
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
26035
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
26036
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
26037
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
26038
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
26039
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
26040
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
26041
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
26042
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26043
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
26044
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
26045
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
26046
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
26047
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
26048
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
26049
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
26050
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
26051
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
26052
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
26053
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
26054
 
26055
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26056
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26057
   { (exit 1); exit 1; }; };;
26058
  esac
26059
done
26060
 
26061
 
26062
# If the user did not use the arguments to specify the items to instantiate,
26063
# then the envvar interface is used.  Set only those that are not.
26064
# We use the long form for the default assignment because of an extremely
26065
# bizarre bug on SunOS 4.1.3.
26066
if $ac_need_defaults; then
26067
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26068
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26069
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26070
fi
26071
 
26072
# Have a temporary directory for convenience.  Make it in the build tree
26073
# simply because there is no reason against having it here, and in addition,
26074
# creating and moving files from /tmp can sometimes cause problems.
26075
# Hook for its removal unless debugging.
26076
# Note that there is a small window in which the directory will not be cleaned:
26077
# after its creation but before its name has been assigned to `$tmp'.
26078
$debug ||
26079
{
26080
  tmp=
26081
  trap 'exit_status=$?
26082
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26083
' 0
26084
  trap '{ (exit 1); exit 1; }' 1 2 13 15
26085
}
26086
# Create a (secure) tmp directory for tmp files.
26087
 
26088
{
26089
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26090
  test -n "$tmp" && test -d "$tmp"
26091
}  ||
26092
{
26093
  tmp=./conf$$-$RANDOM
26094
  (umask 077 && mkdir "$tmp")
26095
} ||
26096
{
26097
   echo "$me: cannot create a temporary directory in ." >&2
26098
   { (exit 1); exit 1; }
26099
}
26100
 
26101
#
26102
# Set up the sed scripts for CONFIG_FILES section.
26103
#
26104
 
26105
# No need to generate the scripts if there are no CONFIG_FILES.
26106
# This happens for instance when ./config.status config.h
26107
if test -n "$CONFIG_FILES"; then
26108
 
26109
_ACEOF
26110
 
26111
 
26112
 
26113
ac_delim='%!_!# '
26114
for ac_last_try in false false false false false :; do
26115
  cat >conf$$subs.sed <<_ACEOF
26116
SHELL!$SHELL$ac_delim
26117
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26118
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26119
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26120
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26121
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26122
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26123
exec_prefix!$exec_prefix$ac_delim
26124
prefix!$prefix$ac_delim
26125
program_transform_name!$program_transform_name$ac_delim
26126
bindir!$bindir$ac_delim
26127
sbindir!$sbindir$ac_delim
26128
libexecdir!$libexecdir$ac_delim
26129
datarootdir!$datarootdir$ac_delim
26130
datadir!$datadir$ac_delim
26131
sysconfdir!$sysconfdir$ac_delim
26132
sharedstatedir!$sharedstatedir$ac_delim
26133
localstatedir!$localstatedir$ac_delim
26134
includedir!$includedir$ac_delim
26135
oldincludedir!$oldincludedir$ac_delim
26136
docdir!$docdir$ac_delim
26137
infodir!$infodir$ac_delim
26138
htmldir!$htmldir$ac_delim
26139
dvidir!$dvidir$ac_delim
26140
pdfdir!$pdfdir$ac_delim
26141
psdir!$psdir$ac_delim
26142
libdir!$libdir$ac_delim
26143
localedir!$localedir$ac_delim
26144
mandir!$mandir$ac_delim
26145
DEFS!$DEFS$ac_delim
26146
ECHO_C!$ECHO_C$ac_delim
26147
ECHO_N!$ECHO_N$ac_delim
26148
ECHO_T!$ECHO_T$ac_delim
26149
LIBS!$LIBS$ac_delim
26150
build_alias!$build_alias$ac_delim
26151
host_alias!$host_alias$ac_delim
26152
target_alias!$target_alias$ac_delim
26153
build!$build$ac_delim
26154
build_cpu!$build_cpu$ac_delim
26155
build_vendor!$build_vendor$ac_delim
26156
build_os!$build_os$ac_delim
26157
host!$host$ac_delim
26158
host_cpu!$host_cpu$ac_delim
26159
host_vendor!$host_vendor$ac_delim
26160
host_os!$host_os$ac_delim
26161
target!$target$ac_delim
26162
target_cpu!$target_cpu$ac_delim
26163
target_vendor!$target_vendor$ac_delim
26164
target_os!$target_os$ac_delim
26165
CC!$CC$ac_delim
26166
CFLAGS!$CFLAGS$ac_delim
26167
LDFLAGS!$LDFLAGS$ac_delim
26168
CPPFLAGS!$CPPFLAGS$ac_delim
26169
ac_ct_CC!$ac_ct_CC$ac_delim
26170
EXEEXT!$EXEEXT$ac_delim
26171
OBJEXT!$OBJEXT$ac_delim
26172
SED!$SED$ac_delim
26173
GREP!$GREP$ac_delim
26174
EGREP!$EGREP$ac_delim
26175
LN_S!$LN_S$ac_delim
26176
ECHO!$ECHO$ac_delim
26177
AR!$AR$ac_delim
26178
RANLIB!$RANLIB$ac_delim
26179
STRIP!$STRIP$ac_delim
26180
CPP!$CPP$ac_delim
26181
CXX!$CXX$ac_delim
26182
CXXFLAGS!$CXXFLAGS$ac_delim
26183
ac_ct_CXX!$ac_ct_CXX$ac_delim
26184
CXXCPP!$CXXCPP$ac_delim
26185
F77!$F77$ac_delim
26186
FFLAGS!$FFLAGS$ac_delim
26187
ac_ct_F77!$ac_ct_F77$ac_delim
26188
LIBTOOL!$LIBTOOL$ac_delim
26189
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26190
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26191
INSTALL_DATA!$INSTALL_DATA$ac_delim
26192
am__isrc!$am__isrc$ac_delim
26193
CYGPATH_W!$CYGPATH_W$ac_delim
26194
PACKAGE!$PACKAGE$ac_delim
26195
VERSION!$VERSION$ac_delim
26196
ACLOCAL!$ACLOCAL$ac_delim
26197
AUTOCONF!$AUTOCONF$ac_delim
26198
AUTOMAKE!$AUTOMAKE$ac_delim
26199
AUTOHEADER!$AUTOHEADER$ac_delim
26200
MAKEINFO!$MAKEINFO$ac_delim
26201
install_sh!$install_sh$ac_delim
26202
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26203
mkdir_p!$mkdir_p$ac_delim
26204
AWK!$AWK$ac_delim
26205
SET_MAKE!$SET_MAKE$ac_delim
26206
am__leading_dot!$am__leading_dot$ac_delim
26207
AMTAR!$AMTAR$ac_delim
26208
am__tar!$am__tar$ac_delim
26209
am__untar!$am__untar$ac_delim
26210
DEPDIR!$DEPDIR$ac_delim
26211
am__include!$am__include$ac_delim
26212
am__quote!$am__quote$ac_delim
26213
_ACEOF
26214
 
26215
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26216
    break
26217
  elif $ac_last_try; then
26218
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26219
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26220
   { (exit 1); exit 1; }; }
26221
  else
26222
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26223
  fi
26224
done
26225
 
26226
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26227
if test -n "$ac_eof"; then
26228
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26229
  ac_eof=`expr $ac_eof + 1`
26230
fi
26231
 
26232
cat >>$CONFIG_STATUS <<_ACEOF
26233
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26234
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26235
_ACEOF
26236
sed '
26237
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26238
s/^/s,@/; s/!/@,|#_!!_#|/
26239
:n
26240
t n
26241
s/'"$ac_delim"'$/,g/; t
26242
s/$/\\/; p
26243
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26244
' >>$CONFIG_STATUS 
26245
rm -f conf$$subs.sed
26246
cat >>$CONFIG_STATUS <<_ACEOF
26247
CEOF$ac_eof
26248
_ACEOF
26249
 
26250
 
26251
ac_delim='%!_!# '
26252
for ac_last_try in false false false false false :; do
26253
  cat >conf$$subs.sed <<_ACEOF
26254
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26255
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26256
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26257
CCDEPMODE!$CCDEPMODE$ac_delim
26258
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26259
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26260
CXXDEPMODE!$CXXDEPMODE$ac_delim
26261
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26262
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26263
CPU_ARCH!$CPU_ARCH$ac_delim
26264
MAKE_SHELL!$MAKE_SHELL$ac_delim
26265
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
26266
POW_LIB!$POW_LIB$ac_delim
26267
USE_SYS_GETOPTLONG_TRUE!$USE_SYS_GETOPTLONG_TRUE$ac_delim
26268
USE_SYS_GETOPTLONG_FALSE!$USE_SYS_GETOPTLONG_FALSE$ac_delim
26269
USE_ARGREX_TRUE!$USE_ARGREX_TRUE$ac_delim
26270
USE_ARGREX_FALSE!$USE_ARGREX_FALSE$ac_delim
26271
USE_ARGDATE_TRUE!$USE_ARGDATE_TRUE$ac_delim
26272
USE_ARGDATE_FALSE!$USE_ARGDATE_FALSE$ac_delim
26273
DEBUGFLAGS!$DEBUGFLAGS$ac_delim
26274
GENERATE_NEEDED_TRUE!$GENERATE_NEEDED_TRUE$ac_delim
26275
GENERATE_NEEDED_FALSE!$GENERATE_NEEDED_FALSE$ac_delim
26276
DYNAMIC_EXECUTION_TRUE!$DYNAMIC_EXECUTION_TRUE$ac_delim
26277
DYNAMIC_EXECUTION_FALSE!$DYNAMIC_EXECUTION_FALSE$ac_delim
26278
BUILD_DIR!$BUILD_DIR$ac_delim
26279
LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
26280
LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
26281
LOCAL_DEFS!$LOCAL_DEFS$ac_delim
26282
ARFLAGS!$ARFLAGS$ac_delim
26283
SUMVERSION!$SUMVERSION$ac_delim
26284
TERMCAP_LIB!$TERMCAP_LIB$ac_delim
26285
INCLUDES!$INCLUDES$ac_delim
26286
LTLIBOBJS!$LTLIBOBJS$ac_delim
26287
_ACEOF
26288
 
26289
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
26290
    break
26291
  elif $ac_last_try; then
26292
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26293
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26294
   { (exit 1); exit 1; }; }
26295
  else
26296
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26297
  fi
26298
done
26299
 
26300
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26301
if test -n "$ac_eof"; then
26302
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26303
  ac_eof=`expr $ac_eof + 1`
26304
fi
26305
 
26306
cat >>$CONFIG_STATUS <<_ACEOF
26307
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26308
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26309
_ACEOF
26310
sed '
26311
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26312
s/^/s,@/; s/!/@,|#_!!_#|/
26313
:n
26314
t n
26315
s/'"$ac_delim"'$/,g/; t
26316
s/$/\\/; p
26317
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26318
' >>$CONFIG_STATUS 
26319
rm -f conf$$subs.sed
26320
cat >>$CONFIG_STATUS <<_ACEOF
26321
:end
26322
s/|#_!!_#|//g
26323
CEOF$ac_eof
26324
_ACEOF
26325
 
26326
 
26327
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26328
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26329
# trailing colons and then remove the whole line if VPATH becomes empty
26330
# (actually we leave an empty line to preserve line numbers).
26331
if test "x$srcdir" = x.; then
26332
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
26333
s/:*\$(srcdir):*/:/
26334
s/:*\${srcdir}:*/:/
26335
s/:*@srcdir@:*/:/
26336
s/^\([^=]*=[     ]*\):*/\1/
26337
s/:*$//
26338
s/^[^=]*=[       ]*$//
26339
}'
26340
fi
26341
 
26342
cat >>$CONFIG_STATUS <<\_ACEOF
26343
fi # test -n "$CONFIG_FILES"
26344
 
26345
 
26346
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26347
do
26348
  case $ac_tag in
26349
  :[FHLC]) ac_mode=$ac_tag; continue;;
26350
  esac
26351
  case $ac_mode$ac_tag in
26352
  :[FHL]*:*);;
26353
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26354
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26355
   { (exit 1); exit 1; }; };;
26356
  :[FH]-) ac_tag=-:-;;
26357
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26358
  esac
26359
  ac_save_IFS=$IFS
26360
  IFS=:
26361
  set x $ac_tag
26362
  IFS=$ac_save_IFS
26363
  shift
26364
  ac_file=$1
26365
  shift
26366
 
26367
  case $ac_mode in
26368
  :L) ac_source=$1;;
26369
  :[FH])
26370
    ac_file_inputs=
26371
    for ac_f
26372
    do
26373
      case $ac_f in
26374
      -) ac_f="$tmp/stdin";;
26375
      *) # Look for the file first in the build tree, then in the source tree
26376
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
26377
         # because $ac_f cannot contain `:'.
26378
         test -f "$ac_f" ||
26379
           case $ac_f in
26380
           [\\/$]*) false;;
26381
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26382
           esac ||
26383
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26384
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26385
   { (exit 1); exit 1; }; };;
26386
      esac
26387
      ac_file_inputs="$ac_file_inputs $ac_f"
26388
    done
26389
 
26390
    # Let's still pretend it is `configure' which instantiates (i.e., don't
26391
    # use $as_me), people would be surprised to read:
26392
    #    /* config.h.  Generated by config.status.  */
26393
    configure_input="Generated from "`IFS=:
26394
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26395
    if test x"$ac_file" != x-; then
26396
      configure_input="$ac_file.  $configure_input"
26397
      { echo "$as_me:$LINENO: creating $ac_file" >&5
26398
echo "$as_me: creating $ac_file" >&6;}
26399
    fi
26400
 
26401
    case $ac_tag in
26402
    *:-:* | *:-) cat >"$tmp/stdin";;
26403
    esac
26404
    ;;
26405
  esac
26406
 
26407
  ac_dir=`$as_dirname -- "$ac_file" ||
26408
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26409
         X"$ac_file" : 'X\(//\)[^/]' \| \
26410
         X"$ac_file" : 'X\(//\)$' \| \
26411
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26412
echo X"$ac_file" |
26413
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26414
            s//\1/
26415
            q
26416
          }
26417
          /^X\(\/\/\)[^/].*/{
26418
            s//\1/
26419
            q
26420
          }
26421
          /^X\(\/\/\)$/{
26422
            s//\1/
26423
            q
26424
          }
26425
          /^X\(\/\).*/{
26426
            s//\1/
26427
            q
26428
          }
26429
          s/.*/./; q'`
26430
  { as_dir="$ac_dir"
26431
  case $as_dir in #(
26432
  -*) as_dir=./$as_dir;;
26433
  esac
26434
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26435
    as_dirs=
26436
    while :; do
26437
      case $as_dir in #(
26438
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26439
      *) as_qdir=$as_dir;;
26440
      esac
26441
      as_dirs="'$as_qdir' $as_dirs"
26442
      as_dir=`$as_dirname -- "$as_dir" ||
26443
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26444
         X"$as_dir" : 'X\(//\)[^/]' \| \
26445
         X"$as_dir" : 'X\(//\)$' \| \
26446
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26447
echo X"$as_dir" |
26448
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26449
            s//\1/
26450
            q
26451
          }
26452
          /^X\(\/\/\)[^/].*/{
26453
            s//\1/
26454
            q
26455
          }
26456
          /^X\(\/\/\)$/{
26457
            s//\1/
26458
            q
26459
          }
26460
          /^X\(\/\).*/{
26461
            s//\1/
26462
            q
26463
          }
26464
          s/.*/./; q'`
26465
      test -d "$as_dir" && break
26466
    done
26467
    test -z "$as_dirs" || eval "mkdir $as_dirs"
26468
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26469
echo "$as_me: error: cannot create directory $as_dir" >&2;}
26470
   { (exit 1); exit 1; }; }; }
26471
  ac_builddir=.
26472
 
26473
case "$ac_dir" in
26474
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26475
*)
26476
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26477
  # A ".." for each directory in $ac_dir_suffix.
26478
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26479
  case $ac_top_builddir_sub in
26480
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26481
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26482
  esac ;;
26483
esac
26484
ac_abs_top_builddir=$ac_pwd
26485
ac_abs_builddir=$ac_pwd$ac_dir_suffix
26486
# for backward compatibility:
26487
ac_top_builddir=$ac_top_build_prefix
26488
 
26489
case $srcdir in
26490
  .)  # We are building in place.
26491
    ac_srcdir=.
26492
    ac_top_srcdir=$ac_top_builddir_sub
26493
    ac_abs_top_srcdir=$ac_pwd ;;
26494
  [\\/]* | ?:[\\/]* )  # Absolute name.
26495
    ac_srcdir=$srcdir$ac_dir_suffix;
26496
    ac_top_srcdir=$srcdir
26497
    ac_abs_top_srcdir=$srcdir ;;
26498
  *) # Relative name.
26499
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26500
    ac_top_srcdir=$ac_top_build_prefix$srcdir
26501
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26502
esac
26503
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26504
 
26505
 
26506
  case $ac_mode in
26507
  :F)
26508
  #
26509
  # CONFIG_FILE
26510
  #
26511
 
26512
  case $INSTALL in
26513
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26514
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26515
  esac
26516
  ac_MKDIR_P=$MKDIR_P
26517
  case $MKDIR_P in
26518
  [\\/$]* | ?:[\\/]* ) ;;
26519
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26520
  esac
26521
_ACEOF
26522
 
26523
cat >>$CONFIG_STATUS <<\_ACEOF
26524
# If the template does not know about datarootdir, expand it.
26525
# FIXME: This hack should be removed a few years after 2.60.
26526
ac_datarootdir_hack=; ac_datarootdir_seen=
26527
 
26528
case `sed -n '/datarootdir/ {
26529
  p
26530
  q
26531
}
26532
/@datadir@/p
26533
/@docdir@/p
26534
/@infodir@/p
26535
/@localedir@/p
26536
/@mandir@/p
26537
' $ac_file_inputs` in
26538
*datarootdir*) ac_datarootdir_seen=yes;;
26539
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26540
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26541
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26542
_ACEOF
26543
cat >>$CONFIG_STATUS <<_ACEOF
26544
  ac_datarootdir_hack='
26545
  s&@datadir@&$datadir&g
26546
  s&@docdir@&$docdir&g
26547
  s&@infodir@&$infodir&g
26548
  s&@localedir@&$localedir&g
26549
  s&@mandir@&$mandir&g
26550
    s&\\\${datarootdir}&$datarootdir&g' ;;
26551
esac
26552
_ACEOF
26553
 
26554
# Neutralize VPATH when `$srcdir' = `.'.
26555
# Shell code in configure.ac might set extrasub.
26556
# FIXME: do we really want to maintain this feature?
26557
cat >>$CONFIG_STATUS <<_ACEOF
26558
  sed "$ac_vpsub
26559
$extrasub
26560
_ACEOF
26561
cat >>$CONFIG_STATUS <<\_ACEOF
26562
:t
26563
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26564
s&@configure_input@&$configure_input&;t t
26565
s&@top_builddir@&$ac_top_builddir_sub&;t t
26566
s&@srcdir@&$ac_srcdir&;t t
26567
s&@abs_srcdir@&$ac_abs_srcdir&;t t
26568
s&@top_srcdir@&$ac_top_srcdir&;t t
26569
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26570
s&@builddir@&$ac_builddir&;t t
26571
s&@abs_builddir@&$ac_abs_builddir&;t t
26572
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26573
s&@INSTALL@&$ac_INSTALL&;t t
26574
s&@MKDIR_P@&$ac_MKDIR_P&;t t
26575
$ac_datarootdir_hack
26576
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26577
 
26578
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26579
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26580
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26581
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26582
which seems to be undefined.  Please make sure it is defined." >&5
26583
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26584
which seems to be undefined.  Please make sure it is defined." >&2;}
26585
 
26586
  rm -f "$tmp/stdin"
26587
  case $ac_file in
26588
  -) cat "$tmp/out"; rm -f "$tmp/out";;
26589
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26590
  esac
26591
 ;;
26592
  :H)
26593
  #
26594
  # CONFIG_HEADER
26595
  #
26596
_ACEOF
26597
 
26598
# Transform confdefs.h into a sed script `conftest.defines', that
26599
# substitutes the proper values into config.h.in to produce config.h.
26600
rm -f conftest.defines conftest.tail
26601
# First, append a space to every undef/define line, to ease matching.
26602
echo 's/$/ /' >conftest.defines
26603
# Then, protect against being on the right side of a sed subst, or in
26604
# an unquoted here document, in config.status.  If some macros were
26605
# called several times there might be several #defines for the same
26606
# symbol, which is useless.  But do not sort them, since the last
26607
# AC_DEFINE must be honored.
26608
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26609
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26610
# NAME is the cpp macro being defined, VALUE is the value it is being given.
26611
# PARAMS is the parameter list in the macro definition--in most cases, it's
26612
# just an empty string.
26613
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26614
ac_dB='\\)[      (].*,\\1define\\2'
26615
ac_dC=' '
26616
ac_dD=' ,'
26617
 
26618
uniq confdefs.h |
26619
  sed -n '
26620
        t rset
26621
        :rset
26622
        s/^[     ]*#[    ]*define[       ][      ]*//
26623
        t ok
26624
        d
26625
        :ok
26626
        s/[\\&,]/\\&/g
26627
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26628
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26629
  ' >>conftest.defines
26630
 
26631
# Remove the space that was appended to ease matching.
26632
# Then replace #undef with comments.  This is necessary, for
26633
# example, in the case of _POSIX_SOURCE, which is predefined and required
26634
# on some systems where configure will not decide to define it.
26635
# (The regexp can be short, since the line contains either #define or #undef.)
26636
echo 's/ $//
26637
s,^[     #]*u.*,/* & */,' >>conftest.defines
26638
 
26639
# Break up conftest.defines:
26640
ac_max_sed_lines=50
26641
 
26642
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26643
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26644
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26645
# et cetera.
26646
ac_in='$ac_file_inputs'
26647
ac_out='"$tmp/out1"'
26648
ac_nxt='"$tmp/out2"'
26649
 
26650
while :
26651
do
26652
  # Write a here document:
26653
    cat >>$CONFIG_STATUS <<_ACEOF
26654
    # First, check the format of the line:
26655
    cat >"\$tmp/defines.sed" <<\\CEOF
26656
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26657
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26658
b
26659
:def
26660
_ACEOF
26661
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26662
  echo 'CEOF
26663
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26664
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26665
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26666
  grep . conftest.tail >/dev/null || break
26667
  rm -f conftest.defines
26668
  mv conftest.tail conftest.defines
26669
done
26670
rm -f conftest.defines conftest.tail
26671
 
26672
echo "ac_result=$ac_in" >>$CONFIG_STATUS
26673
cat >>$CONFIG_STATUS <<\_ACEOF
26674
  if test x"$ac_file" != x-; then
26675
    echo "/* $configure_input  */" >"$tmp/config.h"
26676
    cat "$ac_result" >>"$tmp/config.h"
26677
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26678
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26679
echo "$as_me: $ac_file is unchanged" >&6;}
26680
    else
26681
      rm -f $ac_file
26682
      mv "$tmp/config.h" $ac_file
26683
    fi
26684
  else
26685
    echo "/* $configure_input  */"
26686
    cat "$ac_result"
26687
  fi
26688
  rm -f "$tmp/out12"
26689
# Compute $ac_file's index in $config_headers.
26690
_am_arg=$ac_file
26691
_am_stamp_count=1
26692
for _am_header in $config_headers :; do
26693
  case $_am_header in
26694
    $_am_arg | $_am_arg:* )
26695
      break ;;
26696
    * )
26697
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26698
  esac
26699
done
26700
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26701
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26702
         X"$_am_arg" : 'X\(//\)[^/]' \| \
26703
         X"$_am_arg" : 'X\(//\)$' \| \
26704
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26705
echo X"$_am_arg" |
26706
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26707
            s//\1/
26708
            q
26709
          }
26710
          /^X\(\/\/\)[^/].*/{
26711
            s//\1/
26712
            q
26713
          }
26714
          /^X\(\/\/\)$/{
26715
            s//\1/
26716
            q
26717
          }
26718
          /^X\(\/\).*/{
26719
            s//\1/
26720
            q
26721
          }
26722
          s/.*/./; q'`/stamp-h$_am_stamp_count
26723
 ;;
26724
 
26725
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26726
echo "$as_me: executing $ac_file commands" >&6;}
26727
 ;;
26728
  esac
26729
 
26730
 
26731
  case $ac_file$ac_mode in
26732
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26733
  # Strip MF so we end up with the name of the file.
26734
  mf=`echo "$mf" | sed -e 's/:.*$//'`
26735
  # Check whether this is an Automake generated Makefile or not.
26736
  # We used to match only the files named `Makefile.in', but
26737
  # some people rename them; so instead we look at the file content.
26738
  # Grep'ing the first line is not enough: some people post-process
26739
  # each Makefile.in and add a new line on top of each file to say so.
26740
  # Grep'ing the whole file is not good either: AIX grep has a line
26741
  # limit of 2048, but all sed's we know have understand at least 4000.
26742
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26743
    dirpart=`$as_dirname -- "$mf" ||
26744
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26745
         X"$mf" : 'X\(//\)[^/]' \| \
26746
         X"$mf" : 'X\(//\)$' \| \
26747
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26748
echo X"$mf" |
26749
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26750
            s//\1/
26751
            q
26752
          }
26753
          /^X\(\/\/\)[^/].*/{
26754
            s//\1/
26755
            q
26756
          }
26757
          /^X\(\/\/\)$/{
26758
            s//\1/
26759
            q
26760
          }
26761
          /^X\(\/\).*/{
26762
            s//\1/
26763
            q
26764
          }
26765
          s/.*/./; q'`
26766
  else
26767
    continue
26768
  fi
26769
  # Extract the definition of DEPDIR, am__include, and am__quote
26770
  # from the Makefile without running `make'.
26771
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26772
  test -z "$DEPDIR" && continue
26773
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
26774
  test -z "am__include" && continue
26775
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26776
  # When using ansi2knr, U may be empty or an underscore; expand it
26777
  U=`sed -n 's/^U = //p' < "$mf"`
26778
  # Find all dependency output files, they are included files with
26779
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
26780
  # simplest approach to changing $(DEPDIR) to its actual value in the
26781
  # expansion.
26782
  for file in `sed -n "
26783
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26784
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26785
    # Make sure the directory exists.
26786
    test -f "$dirpart/$file" && continue
26787
    fdir=`$as_dirname -- "$file" ||
26788
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26789
         X"$file" : 'X\(//\)[^/]' \| \
26790
         X"$file" : 'X\(//\)$' \| \
26791
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26792
echo X"$file" |
26793
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26794
            s//\1/
26795
            q
26796
          }
26797
          /^X\(\/\/\)[^/].*/{
26798
            s//\1/
26799
            q
26800
          }
26801
          /^X\(\/\/\)$/{
26802
            s//\1/
26803
            q
26804
          }
26805
          /^X\(\/\).*/{
26806
            s//\1/
26807
            q
26808
          }
26809
          s/.*/./; q'`
26810
    { as_dir=$dirpart/$fdir
26811
  case $as_dir in #(
26812
  -*) as_dir=./$as_dir;;
26813
  esac
26814
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26815
    as_dirs=
26816
    while :; do
26817
      case $as_dir in #(
26818
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26819
      *) as_qdir=$as_dir;;
26820
      esac
26821
      as_dirs="'$as_qdir' $as_dirs"
26822
      as_dir=`$as_dirname -- "$as_dir" ||
26823
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26824
         X"$as_dir" : 'X\(//\)[^/]' \| \
26825
         X"$as_dir" : 'X\(//\)$' \| \
26826
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26827
echo X"$as_dir" |
26828
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26829
            s//\1/
26830
            q
26831
          }
26832
          /^X\(\/\/\)[^/].*/{
26833
            s//\1/
26834
            q
26835
          }
26836
          /^X\(\/\/\)$/{
26837
            s//\1/
26838
            q
26839
          }
26840
          /^X\(\/\).*/{
26841
            s//\1/
26842
            q
26843
          }
26844
          s/.*/./; q'`
26845
      test -d "$as_dir" && break
26846
    done
26847
    test -z "$as_dirs" || eval "mkdir $as_dirs"
26848
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26849
echo "$as_me: error: cannot create directory $as_dir" >&2;}
26850
   { (exit 1); exit 1; }; }; }
26851
    # echo "creating $dirpart/$file"
26852
    echo '# dummy' > "$dirpart/$file"
26853
  done
26854
done
26855
 ;;
26856
 
26857
  esac
26858
done # for ac_tag
26859
 
26860
 
26861
{ (exit 0); exit 0; }
26862
_ACEOF
26863
chmod +x $CONFIG_STATUS
26864
ac_clean_files=$ac_clean_files_save
26865
 
26866
 
26867
# configure is writing to config.log, and then calls config.status.
26868
# config.status does its own redirection, appending to config.log.
26869
# Unfortunately, on DOS this fails, as config.log is still kept open
26870
# by configure, so config.status won't be able to write to it; its
26871
# output is simply discarded.  So we exec the FD to /dev/null,
26872
# effectively closing config.log, so it can be properly (re)opened and
26873
# appended to by config.status.  When coming back to configure, we
26874
# need to make the FD available again.
26875
if test "$no_create" != yes; then
26876
  ac_cs_success=:
26877
  ac_config_status_args=
26878
  test "$silent" = yes &&
26879
    ac_config_status_args="$ac_config_status_args --quiet"
26880
  exec 5>/dev/null
26881
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26882
  exec 5>>config.log
26883
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26884
  # would make configure fail if this is the last instruction.
26885
  $ac_cs_success || { (exit 1); exit 1; }
26886
fi
26887
 

powered by: WebSVN 2.1.0

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