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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [or1ksim/] [configure] - Blame information for rev 1760

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

Line No. Rev Author Line
1 7 jrydberg
#! /bin/sh
2 1757 jeremybenn
# From configure.ac Id: configure.ac 318 2009-02-24 16:00:03Z jeremy  using automake version AC_ACVERSION.
3 7 jrydberg
# Guess values for system-dependent variables and create Makefiles.
4 1760 jeremybenn
# Generated by GNU Autoconf 2.61 for or1ksim 0.3.0.
5 7 jrydberg
#
6 1745 jeremybenn
# Report bugs to .
7
#
8 1743 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 7 jrydberg
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
12 1576 phoenix
## --------------------- ##
13
## M4sh Initialization.  ##
14
## --------------------- ##
15 7 jrydberg
 
16 1743 jeremybenn
# Be more Bourne compatible
17
DUALCASE=1; export DUALCASE # for MKS sh
18 1576 phoenix
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 1743 jeremybenn
  setopt NO_GLOB_SUBST
25
else
26
  case `(set -o) 2>/dev/null` in
27
  *posix*) set -o posix ;;
28
esac
29
 
30 1576 phoenix
fi
31
 
32 1743 jeremybenn
 
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 1576 phoenix
# 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 1743 jeremybenn
# 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 1576 phoenix
# Work around bugs in pre-3.0 UWIN ksh.
98 1743 jeremybenn
for as_var in ENV MAIL MAILPATH
99
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100
done
101 1576 phoenix
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 1743 jeremybenn
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 1576 phoenix
  fi
116
done
117
 
118
# Required to use basename.
119 1743 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
120
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 1576 phoenix
  as_expr=expr
122
else
123
  as_expr=false
124
fi
125
 
126 1743 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 1576 phoenix
  as_basename=basename
128
else
129
  as_basename=false
130
fi
131
 
132
 
133
# Name of the executable.
134 1743 jeremybenn
as_me=`$as_basename -- "$0" ||
135 1576 phoenix
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136
         X"$0" : 'X\(//\)$' \| \
137 1743 jeremybenn
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 1576 phoenix
echo X/"$0" |
139 1743 jeremybenn
    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 1576 phoenix
 
153 1743 jeremybenn
# CDPATH.
154
$as_unset CDPATH
155 1576 phoenix
 
156 1242 hpanther
 
157 1743 jeremybenn
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 1576 phoenix
fi
163 1242 hpanther
 
164 1743 jeremybenn
  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 1242 hpanther
 
181 1743 jeremybenn
exitcode=0
182
if as_func_success; then
183
  :
184
else
185
  exitcode=1
186
  echo as_func_success failed.
187
fi
188 1242 hpanther
 
189 1743 jeremybenn
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 1576 phoenix
    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 1743 jeremybenn
  case $as_dir in
230 1576 phoenix
         /*)
231 1743 jeremybenn
           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 1576 phoenix
  as_lineno_1=$LINENO
332
  as_lineno_2=$LINENO
333
  test "x$as_lineno_1" != "x$as_lineno_2" &&
334 1743 jeremybenn
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 1242 hpanther
 
336 1743 jeremybenn
_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 1576 phoenix
  # 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 1743 jeremybenn
  # 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 1576 phoenix
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 1743 jeremybenn
  # 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 1576 phoenix
    sed '
446 1743 jeremybenn
      s/[$]LINENO.*/&-/
447
      t lineno
448
      b
449
      :lineno
450 1576 phoenix
      N
451 1743 jeremybenn
      :loop
452
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 1576 phoenix
      t loop
454 1743 jeremybenn
      s/-\n.*//
455 1576 phoenix
    ' >$as_me.lineno &&
456 1743 jeremybenn
  chmod +x "$as_me.lineno" ||
457 1576 phoenix
    { 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 1743 jeremybenn
  # original and so on.  Autoconf is especially sensitive to this).
463
  . "./$as_me.lineno"
464 1576 phoenix
  # Exit status is that of the last command.
465
  exit
466
}
467
 
468
 
469 1743 jeremybenn
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 1576 phoenix
esac
485
 
486 1743 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
487
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 1242 hpanther
  as_expr=expr
489
else
490
  as_expr=false
491
fi
492
 
493
rm -f conf$$ conf$$.exe conf$$.file
494 1743 jeremybenn
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 1242 hpanther
echo >conf$$.file
501
if ln -s conf$$.file conf$$ 2>/dev/null; then
502 1743 jeremybenn
  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 1242 hpanther
    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 1743 jeremybenn
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515
rmdir conf$$.dir 2>/dev/null
516 1242 hpanther
 
517 1576 phoenix
if mkdir -p . 2>/dev/null; then
518
  as_mkdir_p=:
519 1242 hpanther
else
520 1576 phoenix
  test -d ./-p && rmdir ./-p
521
  as_mkdir_p=false
522 1242 hpanther
fi
523
 
524 1743 jeremybenn
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 1242 hpanther
 
547 1576 phoenix
# 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 1242 hpanther
 
555 1745 jeremybenn
 
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 1743 jeremybenn
exec 7<&0 &1
710 1242 hpanther
 
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 7 jrydberg
ac_default_prefix=/usr/local
720 1743 jeremybenn
ac_clean_files=
721 1576 phoenix
ac_config_libobj_dir=.
722 1743 jeremybenn
LIBOBJS=
723 1242 hpanther
cross_compiling=no
724
subdirs=
725 1576 phoenix
MFLAGS=
726
MAKEFLAGS=
727 1242 hpanther
SHELL=${CONFIG_SHELL-/bin/sh}
728 7 jrydberg
 
729 1576 phoenix
# Identity of this package.
730 1745 jeremybenn
PACKAGE_NAME='or1ksim'
731
PACKAGE_TARNAME='or1ksim'
732 1760 jeremybenn
PACKAGE_VERSION='0.3.0'
733
PACKAGE_STRING='or1ksim 0.3.0'
734 1745 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
735 1576 phoenix
 
736 1242 hpanther
ac_unique_file="cpu/or32/execute.c"
737
# Factoring default headers for most tests.
738
ac_includes_default="\
739
#include 
740 1743 jeremybenn
#ifdef HAVE_SYS_TYPES_H
741 1242 hpanther
# include 
742
#endif
743 1743 jeremybenn
#ifdef HAVE_SYS_STAT_H
744 1242 hpanther
# include 
745
#endif
746 1743 jeremybenn
#ifdef STDC_HEADERS
747 1242 hpanther
# include 
748
# include 
749
#else
750 1743 jeremybenn
# ifdef HAVE_STDLIB_H
751 1242 hpanther
#  include 
752
# endif
753
#endif
754 1743 jeremybenn
#ifdef HAVE_STRING_H
755
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 1242 hpanther
#  include 
757
# endif
758
# include 
759
#endif
760 1743 jeremybenn
#ifdef HAVE_STRINGS_H
761 1242 hpanther
# include 
762
#endif
763 1743 jeremybenn
#ifdef HAVE_INTTYPES_H
764 1242 hpanther
# include 
765
#endif
766 1743 jeremybenn
#ifdef HAVE_STDINT_H
767
# include 
768
#endif
769
#ifdef HAVE_UNISTD_H
770 1242 hpanther
# include 
771
#endif"
772
 
773 1743 jeremybenn
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 1745 jeremybenn
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 1743 jeremybenn
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 1745 jeremybenn
CXXDEPMODE
877
am__fastdepCXX_TRUE
878
am__fastdepCXX_FALSE
879
CPU_ARCH
880 1743 jeremybenn
MAKE_SHELL
881 1748 jeremybenn
LIBOBJS
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 1743 jeremybenn
GENERATE_NEEDED_TRUE
891
GENERATE_NEEDED_FALSE
892
DYNAMIC_EXECUTION_TRUE
893
DYNAMIC_EXECUTION_FALSE
894
BUILD_DIR
895
LOCAL_CFLAGS
896
LOCAL_LDFLAGS
897
LOCAL_DEFS
898
ARFLAGS
899
SUMVERSION
900
TERMCAP_LIB
901
INCLUDES
902
LTLIBOBJS'
903 1576 phoenix
ac_subst_files=''
904 1743 jeremybenn
      ac_precious_vars='build_alias
905
host_alias
906
target_alias
907
CC
908
CFLAGS
909
LDFLAGS
910
LIBS
911
CPPFLAGS
912 1745 jeremybenn
CPP
913
CXX
914
CXXFLAGS
915
CCC
916
CXXCPP
917
F77
918
FFLAGS'
919 1576 phoenix
 
920 1743 jeremybenn
 
921 7 jrydberg
# Initialize some variables set by options.
922 1242 hpanther
ac_init_help=
923
ac_init_version=false
924 7 jrydberg
# The variables have the same names as the options, with
925
# dashes changed to underlines.
926 1242 hpanther
cache_file=/dev/null
927 7 jrydberg
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 1242 hpanther
 
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 1743 jeremybenn
# (The list follows the same order as the GNU Coding Standards.)
947 7 jrydberg
bindir='${exec_prefix}/bin'
948
sbindir='${exec_prefix}/sbin'
949
libexecdir='${exec_prefix}/libexec'
950 1743 jeremybenn
datarootdir='${prefix}/share'
951
datadir='${datarootdir}'
952 7 jrydberg
sysconfdir='${prefix}/etc'
953
sharedstatedir='${prefix}/com'
954
localstatedir='${prefix}/var'
955
includedir='${prefix}/include'
956
oldincludedir='/usr/include'
957 1745 jeremybenn
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 1743 jeremybenn
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 7 jrydberg
 
967
ac_prev=
968 1743 jeremybenn
ac_dashdash=
969 7 jrydberg
for ac_option
970
do
971
  # If the previous option needs an argument, assign it.
972
  if test -n "$ac_prev"; then
973 1743 jeremybenn
    eval $ac_prev=\$ac_option
974 7 jrydberg
    ac_prev=
975
    continue
976
  fi
977
 
978 1743 jeremybenn
  case $ac_option in
979
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980
  *)    ac_optarg=yes ;;
981
  esac
982 7 jrydberg
 
983
  # Accept the important Cygnus configure options, so we can diagnose typos.
984
 
985 1743 jeremybenn
  case $ac_dashdash$ac_option in
986
  --)
987
    ac_dashdash=yes ;;
988 7 jrydberg
 
989
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
990
    ac_prev=bindir ;;
991
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 1242 hpanther
    bindir=$ac_optarg ;;
993 7 jrydberg
 
994
  -build | --build | --buil | --bui | --bu)
995 1242 hpanther
    ac_prev=build_alias ;;
996 7 jrydberg
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 1242 hpanther
    build_alias=$ac_optarg ;;
998 7 jrydberg
 
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 1242 hpanther
    cache_file=$ac_optarg ;;
1005 7 jrydberg
 
1006 1242 hpanther
  --config-cache | -C)
1007
    cache_file=config.cache ;;
1008
 
1009 1743 jeremybenn
  -datadir | --datadir | --datadi | --datad)
1010 7 jrydberg
    ac_prev=datadir ;;
1011 1743 jeremybenn
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 1242 hpanther
    datadir=$ac_optarg ;;
1013 7 jrydberg
 
1014 1743 jeremybenn
  -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 7 jrydberg
  -disable-* | --disable-*)
1022 1242 hpanther
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 7 jrydberg
    # Reject names that are not valid shell variable names.
1024 1743 jeremybenn
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 1242 hpanther
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026
   { (exit 1); exit 1; }; }
1027 1743 jeremybenn
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028
    eval enable_$ac_feature=no ;;
1029 7 jrydberg
 
1030 1743 jeremybenn
  -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 7 jrydberg
  -enable-* | --enable-*)
1041 1242 hpanther
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 7 jrydberg
    # Reject names that are not valid shell variable names.
1043 1743 jeremybenn
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 1242 hpanther
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045
   { (exit 1); exit 1; }; }
1046 1743 jeremybenn
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047
    eval enable_$ac_feature=\$ac_optarg ;;
1048 7 jrydberg
 
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 1242 hpanther
    exec_prefix=$ac_optarg ;;
1057 7 jrydberg
 
1058
  -gas | --gas | --ga | --g)
1059
    # Obsolete; use --with-gas.
1060
    with_gas=yes ;;
1061
 
1062 1242 hpanther
  -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 7 jrydberg
 
1069
  -host | --host | --hos | --ho)
1070 1242 hpanther
    ac_prev=host_alias ;;
1071 7 jrydberg
  -host=* | --host=* | --hos=* | --ho=*)
1072 1242 hpanther
    host_alias=$ac_optarg ;;
1073 7 jrydberg
 
1074 1743 jeremybenn
  -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 7 jrydberg
  -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 1242 hpanther
    includedir=$ac_optarg ;;
1086 7 jrydberg
 
1087
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1088
    ac_prev=infodir ;;
1089
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 1242 hpanther
    infodir=$ac_optarg ;;
1091 7 jrydberg
 
1092
  -libdir | --libdir | --libdi | --libd)
1093
    ac_prev=libdir ;;
1094
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 1242 hpanther
    libdir=$ac_optarg ;;
1096 7 jrydberg
 
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 1242 hpanther
    libexecdir=$ac_optarg ;;
1103 7 jrydberg
 
1104 1743 jeremybenn
  -localedir | --localedir | --localedi | --localed | --locale)
1105
    ac_prev=localedir ;;
1106
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107
    localedir=$ac_optarg ;;
1108
 
1109 7 jrydberg
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 1743 jeremybenn
  | --localstate | --localstat | --localsta | --localst | --locals)
1111 7 jrydberg
    ac_prev=localstatedir ;;
1112
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 1743 jeremybenn
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 1242 hpanther
    localstatedir=$ac_optarg ;;
1115 7 jrydberg
 
1116
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117
    ac_prev=mandir ;;
1118
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 1242 hpanther
    mandir=$ac_optarg ;;
1120 7 jrydberg
 
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 1576 phoenix
  | --no-cr | --no-c | -n)
1127 7 jrydberg
    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 1242 hpanther
    oldincludedir=$ac_optarg ;;
1141 7 jrydberg
 
1142
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143
    ac_prev=prefix ;;
1144
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 1242 hpanther
    prefix=$ac_optarg ;;
1146 7 jrydberg
 
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 1242 hpanther
    program_prefix=$ac_optarg ;;
1153 7 jrydberg
 
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 1242 hpanther
    program_suffix=$ac_optarg ;;
1160 7 jrydberg
 
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 1242 hpanther
    program_transform_name=$ac_optarg ;;
1177 7 jrydberg
 
1178 1743 jeremybenn
  -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 7 jrydberg
  -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 1242 hpanther
    sbindir=$ac_optarg ;;
1197 7 jrydberg
 
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 1242 hpanther
    sharedstatedir=$ac_optarg ;;
1208 7 jrydberg
 
1209
  -site | --site | --sit)
1210
    ac_prev=site ;;
1211
  -site=* | --site=* | --sit=*)
1212 1242 hpanther
    site=$ac_optarg ;;
1213 7 jrydberg
 
1214
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215
    ac_prev=srcdir ;;
1216
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 1242 hpanther
    srcdir=$ac_optarg ;;
1218 7 jrydberg
 
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 1242 hpanther
    sysconfdir=$ac_optarg ;;
1225 7 jrydberg
 
1226
  -target | --target | --targe | --targ | --tar | --ta | --t)
1227 1242 hpanther
    ac_prev=target_alias ;;
1228 7 jrydberg
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 1242 hpanther
    target_alias=$ac_optarg ;;
1230 7 jrydberg
 
1231
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232
    verbose=yes ;;
1233
 
1234 1242 hpanther
  -version | --version | --versio | --versi | --vers | -V)
1235
    ac_init_version=: ;;
1236 7 jrydberg
 
1237
  -with-* | --with-*)
1238 1242 hpanther
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 7 jrydberg
    # Reject names that are not valid shell variable names.
1240 1743 jeremybenn
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 1242 hpanther
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1242
   { (exit 1); exit 1; }; }
1243 1743 jeremybenn
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244
    eval with_$ac_package=\$ac_optarg ;;
1245 7 jrydberg
 
1246
  -without-* | --without-*)
1247 1242 hpanther
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 7 jrydberg
    # Reject names that are not valid shell variable names.
1249 1743 jeremybenn
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 1242 hpanther
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251
   { (exit 1); exit 1; }; }
1252 1743 jeremybenn
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253
    eval with_$ac_package=no ;;
1254 7 jrydberg
 
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 1242 hpanther
    x_includes=$ac_optarg ;;
1265 7 jrydberg
 
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 1242 hpanther
    x_libraries=$ac_optarg ;;
1272 7 jrydberg
 
1273 1242 hpanther
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1274
Try \`$0 --help' for more information." >&2
1275
   { (exit 1); exit 1; }; }
1276 7 jrydberg
    ;;
1277
 
1278 1242 hpanther
  *=*)
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 1743 jeremybenn
    eval $ac_envvar=\$ac_optarg
1285 1242 hpanther
    export $ac_envvar ;;
1286
 
1287 7 jrydberg
  *)
1288 1242 hpanther
    # 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 7 jrydberg
    ;;
1294
 
1295
  esac
1296
done
1297
 
1298
if test -n "$ac_prev"; then
1299 1242 hpanther
  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 7 jrydberg
fi
1303
 
1304 1743 jeremybenn
# 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 1242 hpanther
do
1310 1743 jeremybenn
  eval ac_val=\$$ac_var
1311 1242 hpanther
  case $ac_val in
1312 1743 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1313
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 1242 hpanther
  esac
1315 1743 jeremybenn
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316
   { (exit 1); exit 1; }; }
1317 1242 hpanther
done
1318 7 jrydberg
 
1319 1242 hpanther
# There might be people who depend on the old broken behavior: `$host'
1320
# used to hold the argument of --host etc.
1321 1576 phoenix
# FIXME: To remove some day.
1322 1242 hpanther
build=$build_alias
1323
host=$host_alias
1324
target=$target_alias
1325 7 jrydberg
 
1326 1576 phoenix
# FIXME: To remove some day.
1327 1242 hpanther
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 7 jrydberg
 
1337 1242 hpanther
ac_tool_prefix=
1338
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339 7 jrydberg
 
1340 1242 hpanther
test "$silent" = yes && exec 6>/dev/null
1341
 
1342 1576 phoenix
 
1343 1743 jeremybenn
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 7 jrydberg
# Find the source files, if location was not specified.
1354
if test -z "$srcdir"; then
1355
  ac_srcdir_defaulted=yes
1356 1743 jeremybenn
  # Try the directory containing this script, then the parent directory.
1357
  ac_confdir=`$as_dirname -- "$0" ||
1358 1576 phoenix
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359
         X"$0" : 'X\(//\)[^/]' \| \
1360
         X"$0" : 'X\(//\)$' \| \
1361 1743 jeremybenn
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362 1576 phoenix
echo X"$0" |
1363 1743 jeremybenn
    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 7 jrydberg
  srcdir=$ac_confdir
1381 1743 jeremybenn
  if test ! -r "$srcdir/$ac_unique_file"; then
1382 7 jrydberg
    srcdir=..
1383
  fi
1384
else
1385
  ac_srcdir_defaulted=no
1386
fi
1387 1743 jeremybenn
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 1242 hpanther
   { (exit 1); exit 1; }; }
1391 1743 jeremybenn
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 1242 hpanther
   { (exit 1); exit 1; }; }
1396 1743 jeremybenn
        pwd)`
1397
# When building in place, set srcdir=.
1398
if test "$ac_abs_confdir" = "$ac_pwd"; then
1399
  srcdir=.
1400 7 jrydberg
fi
1401 1743 jeremybenn
# 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 7 jrydberg
 
1414 1242 hpanther
#
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 1576 phoenix
  cat <<_ACEOF
1421 1760 jeremybenn
\`configure' configures or1ksim 0.3.0 to adapt to many kinds of systems.
1422 1242 hpanther
 
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 1576 phoenix
                          [$ac_default_prefix]
1444 1242 hpanther
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445 1576 phoenix
                          [PREFIX]
1446 1242 hpanther
 
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 1743 jeremybenn
  --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 1745 jeremybenn
  --docdir=DIR           documentation root [DATAROOTDIR/doc/or1ksim]
1470 1743 jeremybenn
  --htmldir=DIR          html documentation [DOCDIR]
1471
  --dvidir=DIR           dvi documentation [DOCDIR]
1472
  --pdfdir=DIR           pdf documentation [DOCDIR]
1473
  --psdir=DIR            ps documentation [DOCDIR]
1474 1576 phoenix
_ACEOF
1475 1242 hpanther
 
1476 1576 phoenix
  cat <<\_ACEOF
1477 1242 hpanther
 
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 1576 phoenix
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486 1242 hpanther
  --target=TARGET   configure for building compilers for TARGET [HOST]
1487 1576 phoenix
_ACEOF
1488 1242 hpanther
fi
1489
 
1490
if test -n "$ac_init_help"; then
1491 1745 jeremybenn
  case $ac_init_help in
1492 1760 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 0.3.0:";;
1493 1745 jeremybenn
   esac
1494 1576 phoenix
  cat <<\_ACEOF
1495 1242 hpanther
 
1496
Optional Features:
1497
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499 1745 jeremybenn
  --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 1576 phoenix
  --disable-dependency-tracking  speeds up one-time build
1505
  --enable-dependency-tracking   do not reject slow dependency extractors
1506 1242 hpanther
  --enable-profiling      generate profiling code
1507 1576 phoenix
  --enable-execution Execution style to use (simple/complex/dynamic)
1508 1242 hpanther
  --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 1748 jeremybenn
  --enable-debug          enable library debugging symbols
1513 1242 hpanther
 
1514 1745 jeremybenn
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 1242 hpanther
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 1743 jeremybenn
  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 1242 hpanther
  CPP         C preprocessor
1531 1745 jeremybenn
  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 1242 hpanther
 
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 1745 jeremybenn
Report bugs to .
1541 1576 phoenix
_ACEOF
1542 1743 jeremybenn
ac_status=$?
1543 1242 hpanther
fi
1544
 
1545
if test "$ac_init_help" = "recursive"; then
1546
  # If there are subdirs, report their specific --help.
1547 1576 phoenix
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 1743 jeremybenn
    test -d "$ac_dir" || continue
1549 1576 phoenix
    ac_builddir=.
1550 1242 hpanther
 
1551 1743 jeremybenn
case "$ac_dir" in
1552
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553
*)
1554 1576 phoenix
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1555 1743 jeremybenn
  # 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 1242 hpanther
 
1567 1576 phoenix
case $srcdir in
1568 1743 jeremybenn
  .)  # We are building in place.
1569 1576 phoenix
    ac_srcdir=.
1570 1743 jeremybenn
    ac_top_srcdir=$ac_top_builddir_sub
1571
    ac_abs_top_srcdir=$ac_pwd ;;
1572
  [\\/]* | ?:[\\/]* )  # Absolute name.
1573 1576 phoenix
    ac_srcdir=$srcdir$ac_dir_suffix;
1574 1743 jeremybenn
    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 1576 phoenix
esac
1581 1743 jeremybenn
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 1576 phoenix
 
1583 1743 jeremybenn
    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 1242 hpanther
    else
1592 1576 phoenix
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 1743 jeremybenn
    fi || ac_status=$?
1594
    cd "$ac_pwd" || { ac_status=$?; break; }
1595 1242 hpanther
  done
1596
fi
1597
 
1598 1743 jeremybenn
test -n "$ac_init_help" && exit $ac_status
1599 1242 hpanther
if $ac_init_version; then
1600 1576 phoenix
  cat <<\_ACEOF
1601 1760 jeremybenn
or1ksim configure 0.3.0
1602 1743 jeremybenn
generated by GNU Autoconf 2.61
1603 1242 hpanther
 
1604 1743 jeremybenn
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1605
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1606 1242 hpanther
This configure script is free software; the Free Software Foundation
1607
gives unlimited permission to copy, distribute and modify it.
1608 1576 phoenix
_ACEOF
1609 1743 jeremybenn
  exit
1610 1242 hpanther
fi
1611 1743 jeremybenn
cat >config.log <<_ACEOF
1612 1242 hpanther
This file contains any messages produced by compilers while
1613
running configure, to aid debugging if configure makes a mistake.
1614
 
1615 1760 jeremybenn
It was created by or1ksim $as_me 0.3.0, which was
1616 1743 jeremybenn
generated by GNU Autoconf 2.61.  Invocation command line was
1617 1242 hpanther
 
1618
  $ $0 $@
1619
 
1620 1576 phoenix
_ACEOF
1621 1743 jeremybenn
exec 5>>config.log
1622 1242 hpanther
{
1623
cat <<_ASUNAME
1624 1576 phoenix
## --------- ##
1625
## Platform. ##
1626
## --------- ##
1627 1242 hpanther
 
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 1743 jeremybenn
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1641 1242 hpanther
/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 1576 phoenix
_ASUNAME
1646 1249 lampret
 
1647 1576 phoenix
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 1743 jeremybenn
IFS=$as_save_IFS
1655 1576 phoenix
 
1656 1242 hpanther
} >&5
1657
 
1658 1576 phoenix
cat >&5 <<_ACEOF
1659 1242 hpanther
 
1660
 
1661 1576 phoenix
## ----------- ##
1662
## Core tests. ##
1663
## ----------- ##
1664
 
1665
_ACEOF
1666
 
1667
 
1668 1242 hpanther
# Keep a trace of the command line.
1669
# Strip out --no-create and --no-recursion so they do not pile up.
1670 1576 phoenix
# Strip out --silent because we don't want to record it for future runs.
1671 1242 hpanther
# Also quote any args containing shell meta-characters.
1672 1576 phoenix
# Make two passes to allow for proper duplicate-argument suppression.
1673 1242 hpanther
ac_configure_args=
1674 1576 phoenix
ac_configure_args0=
1675
ac_configure_args1=
1676
ac_must_keep_next=false
1677
for ac_pass in 1 2
1678 1242 hpanther
do
1679 1576 phoenix
  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 1743 jeremybenn
    *\'*)
1687 1576 phoenix
      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 1743 jeremybenn
      ac_configure_args="$ac_configure_args '$ac_arg'"
1709 1576 phoenix
      ;;
1710
    esac
1711
  done
1712 1242 hpanther
done
1713 1576 phoenix
$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 1242 hpanther
 
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 1743 jeremybenn
# 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 1242 hpanther
trap 'exit_status=$?
1722
  # Save into config.log some information that might help in debugging.
1723 1576 phoenix
  {
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 1743 jeremybenn
(
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 1242 hpanther
  (set) 2>&1 |
1749 1743 jeremybenn
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750
    *${as_nl}ac_space=\ *)
1751 1242 hpanther
      sed -n \
1752 1743 jeremybenn
        "s/'\''/'\''\\\\'\'''\''/g;
1753
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754
      ;; #(
1755 1242 hpanther
    *)
1756 1743 jeremybenn
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 1242 hpanther
      ;;
1758 1743 jeremybenn
    esac |
1759
    sort
1760
)
1761 1576 phoenix
    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 1743 jeremybenn
      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 1576 phoenix
    done | sort
1777
    echo
1778
 
1779
    if test -n "$ac_subst_files"; then
1780
      cat <<\_ASBOX
1781 1743 jeremybenn
## ------------------- ##
1782
## File substitutions. ##
1783
## ------------------- ##
1784 1576 phoenix
_ASBOX
1785
      echo
1786
      for ac_var in $ac_subst_files
1787
      do
1788 1743 jeremybenn
        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 1576 phoenix
      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 1743 jeremybenn
      cat confdefs.h
1805 1576 phoenix
      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 1743 jeremybenn
  rm -f core *.core core.conftest.* &&
1812
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 1242 hpanther
    exit $exit_status
1814 1743 jeremybenn
' 0
1815 1242 hpanther
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 1743 jeremybenn
rm -f -r conftest* confdefs.h
1822 1242 hpanther
 
1823 1576 phoenix
# 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 1242 hpanther
# Let the site file select an alternate cache file if it wants to.
1851 7 jrydberg
# Prefer explicitly selected file to automatically selected ones.
1852 1743 jeremybenn
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 7 jrydberg
fi
1860 1743 jeremybenn
shift
1861
for ac_site_file
1862
do
1863 7 jrydberg
  if test -r "$ac_site_file"; then
1864 1576 phoenix
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 1242 hpanther
echo "$as_me: loading site script $ac_site_file" >&6;}
1866 1576 phoenix
    sed 's/^/| /' "$ac_site_file" >&5
1867 7 jrydberg
    . "$ac_site_file"
1868
  fi
1869
done
1870
 
1871
if test -r "$cache_file"; then
1872 1242 hpanther
  # 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 1576 phoenix
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 1242 hpanther
echo "$as_me: loading cache $cache_file" >&6;}
1877
    case $cache_file in
1878 1743 jeremybenn
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879
      *)                      . "./$cache_file";;
1880 1242 hpanther
    esac
1881
  fi
1882 7 jrydberg
else
1883 1576 phoenix
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 1242 hpanther
echo "$as_me: creating cache $cache_file" >&6;}
1885
  >$cache_file
1886 7 jrydberg
fi
1887
 
1888 1242 hpanther
# Check that the precious variables saved in the cache have kept the same
1889
# value.
1890
ac_cache_corrupted=false
1891 1743 jeremybenn
for ac_var in $ac_precious_vars; do
1892 1242 hpanther
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893
  eval ac_new_set=\$ac_env_${ac_var}_set
1894 1743 jeremybenn
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895
  eval ac_new_val=\$ac_env_${ac_var}_value
1896 1242 hpanther
  case $ac_old_set,$ac_new_set in
1897
    set,)
1898 1576 phoenix
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 1242 hpanther
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900
      ac_cache_corrupted=: ;;
1901
    ,set)
1902 1576 phoenix
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 1242 hpanther
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 1576 phoenix
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 1242 hpanther
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910 1576 phoenix
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1911 1242 hpanther
echo "$as_me:   former value:  $ac_old_val" >&2;}
1912 1576 phoenix
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1913 1242 hpanther
echo "$as_me:   current value: $ac_new_val" >&2;}
1914 1576 phoenix
        ac_cache_corrupted=:
1915 1242 hpanther
      fi;;
1916
  esac
1917 1576 phoenix
  # Pass precious variables to config.status.
1918 1242 hpanther
  if test "$ac_new_set" = set; then
1919
    case $ac_new_val in
1920 1743 jeremybenn
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 1576 phoenix
    *) ac_arg=$ac_var=$ac_new_val ;;
1922 1242 hpanther
    esac
1923 1576 phoenix
    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 1242 hpanther
  fi
1928
done
1929
if $ac_cache_corrupted; then
1930 1576 phoenix
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931 1242 hpanther
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932 1576 phoenix
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933 1242 hpanther
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 7 jrydberg
 
1938
 
1939 1576 phoenix
 
1940
 
1941
 
1942
 
1943
 
1944
 
1945
 
1946
 
1947
 
1948
 
1949
 
1950
 
1951
 
1952
 
1953 1745 jeremybenn
 
1954
 
1955
 
1956
 
1957
 
1958
 
1959
 
1960
 
1961 1743 jeremybenn
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 1576 phoenix
 
1967
 
1968
 
1969 7 jrydberg
ac_aux_dir=
1970 1743 jeremybenn
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1971
  if test -f "$ac_dir/install-sh"; then
1972 7 jrydberg
    ac_aux_dir=$ac_dir
1973
    ac_install_sh="$ac_aux_dir/install-sh -c"
1974
    break
1975 1743 jeremybenn
  elif test -f "$ac_dir/install.sh"; then
1976 7 jrydberg
    ac_aux_dir=$ac_dir
1977
    ac_install_sh="$ac_aux_dir/install.sh -c"
1978
    break
1979 1743 jeremybenn
  elif test -f "$ac_dir/shtool"; then
1980 1242 hpanther
    ac_aux_dir=$ac_dir
1981
    ac_install_sh="$ac_aux_dir/shtool install -c"
1982
    break
1983 7 jrydberg
  fi
1984
done
1985
if test -z "$ac_aux_dir"; then
1986 1743 jeremybenn
  { { 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 1242 hpanther
   { (exit 1); exit 1; }; }
1989 7 jrydberg
fi
1990
 
1991 1743 jeremybenn
# 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 1242 hpanther
# Make sure we can run config.sub.
2001 1743 jeremybenn
$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 1242 hpanther
   { (exit 1); exit 1; }; }
2005 11 jrydberg
 
2006 1743 jeremybenn
{ echo "$as_me:$LINENO: checking build system type" >&5
2007
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2008 1242 hpanther
if test "${ac_cv_build+set}" = set; then
2009
  echo $ECHO_N "(cached) $ECHO_C" >&6
2010
else
2011 1743 jeremybenn
  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 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016 1242 hpanther
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017
   { (exit 1); exit 1; }; }
2018 1743 jeremybenn
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 1242 hpanther
   { (exit 1); exit 1; }; }
2022 11 jrydberg
 
2023
fi
2024 1743 jeremybenn
{ 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 1242 hpanther
build=$ac_cv_build
2033 1743 jeremybenn
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 11 jrydberg
 
2045 1576 phoenix
 
2046 1743 jeremybenn
{ echo "$as_me:$LINENO: checking host system type" >&5
2047
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2048 1242 hpanther
if test "${ac_cv_host+set}" = set; then
2049
  echo $ECHO_N "(cached) $ECHO_C" >&6
2050
else
2051 1743 jeremybenn
  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 1242 hpanther
   { (exit 1); exit 1; }; }
2058 1743 jeremybenn
fi
2059 11 jrydberg
 
2060 1242 hpanther
fi
2061 1743 jeremybenn
{ 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 1242 hpanther
host=$ac_cv_host
2070 1743 jeremybenn
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 11 jrydberg
 
2082 1576 phoenix
 
2083 1743 jeremybenn
{ echo "$as_me:$LINENO: checking target system type" >&5
2084
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2085 1242 hpanther
if test "${ac_cv_target+set}" = set; then
2086
  echo $ECHO_N "(cached) $ECHO_C" >&6
2087
else
2088 1743 jeremybenn
  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 1242 hpanther
   { (exit 1); exit 1; }; }
2095 1743 jeremybenn
fi
2096 11 jrydberg
 
2097 1242 hpanther
fi
2098 1743 jeremybenn
{ 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 1242 hpanther
target=$ac_cv_target
2107 1743 jeremybenn
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 11 jrydberg
 
2119 1576 phoenix
 
2120 1242 hpanther
# The aliases save the names the user supplied, while $host etc.
2121
# will get canonicalized.
2122
test -n "$target_alias" &&
2123 11 jrydberg
  test "$program_prefix$program_suffix$program_transform_name" = \
2124
    NONENONEs,x,x, &&
2125
  program_prefix=${target_alias}-
2126 1745 jeremybenn
# 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 1249 lampret
        fi
2141 7 jrydberg
      done
2142 1745 jeremybenn
      IFS="$lt_save_ifs"
2143
      ;;
2144
    esac
2145 7 jrydberg
else
2146 1745 jeremybenn
  enable_shared=yes
2147 7 jrydberg
fi
2148
 
2149 1242 hpanther
 
2150 1745 jeremybenn
# 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 7 jrydberg
else
2170 1745 jeremybenn
  enable_static=yes
2171 1242 hpanther
fi
2172
 
2173 1743 jeremybenn
 
2174 1745 jeremybenn
# 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 1242 hpanther
else
2194 1745 jeremybenn
  enable_fast_install=yes
2195 1242 hpanther
fi
2196
 
2197 1743 jeremybenn
 
2198 1242 hpanther
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 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 1242 hpanther
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 1576 phoenix
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 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 1576 phoenix
    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 1242 hpanther
done
2226 1576 phoenix
done
2227 1743 jeremybenn
IFS=$as_save_IFS
2228 1242 hpanther
 
2229
fi
2230
fi
2231
CC=$ac_cv_prog_CC
2232
if test -n "$CC"; then
2233 1743 jeremybenn
  { echo "$as_me:$LINENO: result: $CC" >&5
2234
echo "${ECHO_T}$CC" >&6; }
2235 1242 hpanther
else
2236 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
2237
echo "${ECHO_T}no" >&6; }
2238 1242 hpanther
fi
2239
 
2240 1743 jeremybenn
 
2241 1242 hpanther
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 7 jrydberg
set dummy gcc; ac_word=$2
2246 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 1242 hpanther
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2249
  echo $ECHO_N "(cached) $ECHO_C" >&6
2250 7 jrydberg
else
2251 1242 hpanther
  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 1576 phoenix
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 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261 1576 phoenix
    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 1242 hpanther
done
2266 1576 phoenix
done
2267 1743 jeremybenn
IFS=$as_save_IFS
2268 1242 hpanther
 
2269
fi
2270
fi
2271
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272
if test -n "$ac_ct_CC"; then
2273 1743 jeremybenn
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2274
echo "${ECHO_T}$ac_ct_CC" >&6; }
2275 1242 hpanther
else
2276 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
2277
echo "${ECHO_T}no" >&6; }
2278 1242 hpanther
fi
2279
 
2280 1743 jeremybenn
  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 1242 hpanther
else
2296
  CC="$ac_cv_prog_CC"
2297
fi
2298
 
2299
if test -z "$CC"; then
2300 1743 jeremybenn
          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 1242 hpanther
set dummy ${ac_tool_prefix}cc; ac_word=$2
2303 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2304
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 1242 hpanther
if test "${ac_cv_prog_CC+set}" = set; then
2306
  echo $ECHO_N "(cached) $ECHO_C" >&6
2307
else
2308 7 jrydberg
  if test -n "$CC"; then
2309
  ac_cv_prog_CC="$CC" # Let the user override the test.
2310
else
2311 1576 phoenix
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 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 1576 phoenix
    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 1242 hpanther
done
2323 1576 phoenix
done
2324 1743 jeremybenn
IFS=$as_save_IFS
2325 1242 hpanther
 
2326 7 jrydberg
fi
2327
fi
2328 1242 hpanther
CC=$ac_cv_prog_CC
2329 7 jrydberg
if test -n "$CC"; then
2330 1743 jeremybenn
  { echo "$as_me:$LINENO: result: $CC" >&5
2331
echo "${ECHO_T}$CC" >&6; }
2332 7 jrydberg
else
2333 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
2334
echo "${ECHO_T}no" >&6; }
2335 7 jrydberg
fi
2336
 
2337 1743 jeremybenn
 
2338 1576 phoenix
  fi
2339 1242 hpanther
fi
2340 7 jrydberg
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 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 1242 hpanther
if test "${ac_cv_prog_CC+set}" = set; then
2346
  echo $ECHO_N "(cached) $ECHO_C" >&6
2347 7 jrydberg
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 1576 phoenix
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 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 1576 phoenix
    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 1242 hpanther
done
2368 1576 phoenix
done
2369 1743 jeremybenn
IFS=$as_save_IFS
2370 1242 hpanther
 
2371 7 jrydberg
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 1242 hpanther
  if test $# != 0; then
2376 7 jrydberg
    # 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 1576 phoenix
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2381 7 jrydberg
  fi
2382
fi
2383
fi
2384
fi
2385 1242 hpanther
CC=$ac_cv_prog_CC
2386 7 jrydberg
if test -n "$CC"; then
2387 1743 jeremybenn
  { echo "$as_me:$LINENO: result: $CC" >&5
2388
echo "${ECHO_T}$CC" >&6; }
2389 7 jrydberg
else
2390 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
2391
echo "${ECHO_T}no" >&6; }
2392 7 jrydberg
fi
2393
 
2394 1743 jeremybenn
 
2395 1242 hpanther
fi
2396
if test -z "$CC"; then
2397
  if test -n "$ac_tool_prefix"; then
2398 1743 jeremybenn
  for ac_prog in cl.exe
2399 1242 hpanther
  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 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2403
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 1242 hpanther
if test "${ac_cv_prog_CC+set}" = set; then
2405
  echo $ECHO_N "(cached) $ECHO_C" >&6
2406 7 jrydberg
else
2407
  if test -n "$CC"; then
2408
  ac_cv_prog_CC="$CC" # Let the user override the test.
2409
else
2410 1576 phoenix
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 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 1576 phoenix
    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 1242 hpanther
done
2422 1576 phoenix
done
2423 1743 jeremybenn
IFS=$as_save_IFS
2424 1242 hpanther
 
2425 7 jrydberg
fi
2426
fi
2427 1242 hpanther
CC=$ac_cv_prog_CC
2428 7 jrydberg
if test -n "$CC"; then
2429 1743 jeremybenn
  { echo "$as_me:$LINENO: result: $CC" >&5
2430
echo "${ECHO_T}$CC" >&6; }
2431 7 jrydberg
else
2432 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
2433
echo "${ECHO_T}no" >&6; }
2434 7 jrydberg
fi
2435 1242 hpanther
 
2436 1743 jeremybenn
 
2437 1242 hpanther
    test -n "$CC" && break
2438
  done
2439
fi
2440
if test -z "$CC"; then
2441
  ac_ct_CC=$CC
2442 1743 jeremybenn
  for ac_prog in cl.exe
2443 1242 hpanther
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 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 1242 hpanther
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 1576 phoenix
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 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 1576 phoenix
    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 1242 hpanther
done
2466 1576 phoenix
done
2467 1743 jeremybenn
IFS=$as_save_IFS
2468 1242 hpanther
 
2469 7 jrydberg
fi
2470 1242 hpanther
fi
2471
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472
if test -n "$ac_ct_CC"; then
2473 1743 jeremybenn
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474
echo "${ECHO_T}$ac_ct_CC" >&6; }
2475 1242 hpanther
else
2476 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
2477
echo "${ECHO_T}no" >&6; }
2478 1242 hpanther
fi
2479 7 jrydberg
 
2480 1743 jeremybenn
 
2481 1242 hpanther
  test -n "$ac_ct_CC" && break
2482
done
2483 7 jrydberg
 
2484 1743 jeremybenn
  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 1242 hpanther
fi
2500 7 jrydberg
 
2501 1242 hpanther
fi
2502 7 jrydberg
 
2503 1576 phoenix
 
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 1242 hpanther
   { (exit 1); exit 1; }; }
2509
 
2510
# Provide some information about the compiler.
2511 1743 jeremybenn
echo "$as_me:$LINENO: checking for C compiler version" >&5
2512 1242 hpanther
ac_compiler=`set X $ac_compile; echo $2`
2513 1743 jeremybenn
{ (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 1242 hpanther
  ac_status=$?
2521 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 1242 hpanther
  (exit $ac_status); }
2523 1743 jeremybenn
{ (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 1242 hpanther
  ac_status=$?
2531 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 1242 hpanther
  (exit $ac_status); }
2533 1743 jeremybenn
{ (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 1242 hpanther
  ac_status=$?
2541 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 1242 hpanther
  (exit $ac_status); }
2543
 
2544
cat >conftest.$ac_ext <<_ACEOF
2545 1576 phoenix
/* confdefs.h.  */
2546
_ACEOF
2547
cat confdefs.h >>conftest.$ac_ext
2548
cat >>conftest.$ac_ext <<_ACEOF
2549
/* end confdefs.h.  */
2550 1242 hpanther
 
2551
int
2552
main ()
2553
{
2554
 
2555
  ;
2556
  return 0;
2557
}
2558
_ACEOF
2559
ac_clean_files_save=$ac_clean_files
2560 1576 phoenix
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2561 1242 hpanther
# 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 1743 jeremybenn
{ 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 1242 hpanther
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2567 1743 jeremybenn
#
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 1242 hpanther
  ac_status=$?
2594 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 1242 hpanther
  (exit $ac_status); }; then
2596 1743 jeremybenn
  # 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 1576 phoenix
do
2603
  test -f "$ac_file" || continue
2604 1242 hpanther
  case $ac_file in
2605 1743 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2606 1576 phoenix
        ;;
2607
    [ab].out )
2608
        # We found the default executable, but exeext='' is most
2609
        # certainly right.
2610
        break;;
2611
    *.* )
2612 1743 jeremybenn
        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 1576 phoenix
        break;;
2622
    * )
2623
        break;;
2624 1242 hpanther
  esac
2625
done
2626 1743 jeremybenn
test "$ac_cv_exeext" = no && ac_cv_exeext=
2627
 
2628 1242 hpanther
else
2629 1743 jeremybenn
  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 1242 hpanther
  echo "$as_me: failed program was:" >&5
2636 1576 phoenix
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 1242 hpanther
   { (exit 77); exit 77; }; }
2643
fi
2644
 
2645
ac_exeext=$ac_cv_exeext
2646
 
2647 1743 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2648 1242 hpanther
# the compiler is broken, or we cross compile.
2649 1743 jeremybenn
{ 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 1242 hpanther
# 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 1743 jeremybenn
  { (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 1242 hpanther
  ac_status=$?
2662 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 1242 hpanther
  (exit $ac_status); }; }; then
2664
    cross_compiling=no
2665 7 jrydberg
  else
2666 1242 hpanther
    if test "$cross_compiling" = maybe; then
2667
        cross_compiling=yes
2668
    else
2669 1576 phoenix
        { { 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 1242 hpanther
echo "$as_me: error: cannot run C compiled programs.
2673 1576 phoenix
If you meant to cross compile, use \`--host'.
2674
See \`config.log' for more details." >&2;}
2675 1242 hpanther
   { (exit 1); exit 1; }; }
2676
    fi
2677 7 jrydberg
  fi
2678
fi
2679 1743 jeremybenn
{ echo "$as_me:$LINENO: result: yes" >&5
2680
echo "${ECHO_T}yes" >&6; }
2681 7 jrydberg
 
2682 1576 phoenix
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2683 1242 hpanther
ac_clean_files=$ac_clean_files_save
2684 1743 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2685 1242 hpanther
# the compiler is broken, or we cross compile.
2686 1743 jeremybenn
{ 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 1242 hpanther
 
2691 1743 jeremybenn
{ 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 1242 hpanther
  ac_status=$?
2701 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 1242 hpanther
  (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 1576 phoenix
for ac_file in conftest.exe conftest conftest.*; do
2708
  test -f "$ac_file" || continue
2709 1242 hpanther
  case $ac_file in
2710 1743 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2711 1242 hpanther
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2712 1576 phoenix
          break;;
2713 1242 hpanther
    * ) break;;
2714
  esac
2715
done
2716
else
2717 1576 phoenix
  { { 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 1242 hpanther
   { (exit 1); exit 1; }; }
2722 7 jrydberg
fi
2723
 
2724 1242 hpanther
rm -f conftest$ac_cv_exeext
2725 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2726
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2727 1242 hpanther
 
2728
rm -f conftest.$ac_ext
2729
EXEEXT=$ac_cv_exeext
2730
ac_exeext=$EXEEXT
2731 1743 jeremybenn
{ 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 1242 hpanther
if test "${ac_cv_objext+set}" = set; then
2734
  echo $ECHO_N "(cached) $ECHO_C" >&6
2735 7 jrydberg
else
2736 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
2737 1576 phoenix
/* confdefs.h.  */
2738
_ACEOF
2739
cat confdefs.h >>conftest.$ac_ext
2740
cat >>conftest.$ac_ext <<_ACEOF
2741
/* end confdefs.h.  */
2742 1242 hpanther
 
2743
int
2744
main ()
2745
{
2746
 
2747
  ;
2748
  return 0;
2749
}
2750
_ACEOF
2751
rm -f conftest.o conftest.obj
2752 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
2760 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 1242 hpanther
  (exit $ac_status); }; then
2762 1743 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
2763
  test -f "$ac_file" || continue;
2764 1242 hpanther
  case $ac_file in
2765 1743 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2766 1242 hpanther
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767
       break;;
2768
  esac
2769
done
2770 7 jrydberg
else
2771 1242 hpanther
  echo "$as_me: failed program was:" >&5
2772 1576 phoenix
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 1242 hpanther
   { (exit 1); exit 1; }; }
2779 7 jrydberg
fi
2780 1242 hpanther
 
2781
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2782 7 jrydberg
fi
2783 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2784
echo "${ECHO_T}$ac_cv_objext" >&6; }
2785 1242 hpanther
OBJEXT=$ac_cv_objext
2786
ac_objext=$OBJEXT
2787 1743 jeremybenn
{ 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 1242 hpanther
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 1576 phoenix
/* confdefs.h.  */
2794
_ACEOF
2795
cat confdefs.h >>conftest.$ac_ext
2796
cat >>conftest.$ac_ext <<_ACEOF
2797
/* end confdefs.h.  */
2798 7 jrydberg
 
2799 1242 hpanther
int
2800
main ()
2801
{
2802
#ifndef __GNUC__
2803
       choke me
2804
#endif
2805 7 jrydberg
 
2806 1242 hpanther
  ;
2807
  return 0;
2808
}
2809
_ACEOF
2810
rm -f conftest.$ac_objext
2811 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
2819 1576 phoenix
  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 1743 jeremybenn
  (exit $ac_status); } && {
2824
         test -z "$ac_c_werror_flag" ||
2825
         test ! -s conftest.err
2826
       } && test -s conftest.$ac_objext; then
2827 1242 hpanther
  ac_compiler_gnu=yes
2828 7 jrydberg
else
2829 1242 hpanther
  echo "$as_me: failed program was:" >&5
2830 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2831
 
2832 1743 jeremybenn
        ac_compiler_gnu=no
2833 7 jrydberg
fi
2834 1743 jeremybenn
 
2835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 1242 hpanther
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2837 7 jrydberg
 
2838 1242 hpanther
fi
2839 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2840
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2841 1242 hpanther
GCC=`test $ac_compiler_gnu = yes && echo yes`
2842
ac_test_CFLAGS=${CFLAGS+set}
2843
ac_save_CFLAGS=$CFLAGS
2844 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2845
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2846 1242 hpanther
if test "${ac_cv_prog_cc_g+set}" = set; then
2847
  echo $ECHO_N "(cached) $ECHO_C" >&6
2848 7 jrydberg
else
2849 1743 jeremybenn
  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 1576 phoenix
/* confdefs.h.  */
2855
_ACEOF
2856
cat confdefs.h >>conftest.$ac_ext
2857
cat >>conftest.$ac_ext <<_ACEOF
2858
/* end confdefs.h.  */
2859 1242 hpanther
 
2860
int
2861
main ()
2862
{
2863
 
2864
  ;
2865
  return 0;
2866
}
2867
_ACEOF
2868
rm -f conftest.$ac_objext
2869 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
2877 1576 phoenix
  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 1743 jeremybenn
  (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 1242 hpanther
  ac_status=$?
2915 1743 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
2916
  rm -f conftest.er1
2917
  cat conftest.err >&5
2918 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 1743 jeremybenn
  (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 1576 phoenix
  ac_status=$?
2954 1743 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
2955
  rm -f conftest.er1
2956
  cat conftest.err >&5
2957 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 1743 jeremybenn
  (exit $ac_status); } && {
2959
         test -z "$ac_c_werror_flag" ||
2960
         test ! -s conftest.err
2961
       } && test -s conftest.$ac_objext; then
2962 7 jrydberg
  ac_cv_prog_cc_g=yes
2963
else
2964 1242 hpanther
  echo "$as_me: failed program was:" >&5
2965 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2966
 
2967 1743 jeremybenn
 
2968 7 jrydberg
fi
2969 1743 jeremybenn
 
2970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 1242 hpanther
fi
2972 1743 jeremybenn
 
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 7 jrydberg
if test "$ac_test_CFLAGS" = set; then
2982 1242 hpanther
  CFLAGS=$ac_save_CFLAGS
2983 7 jrydberg
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 1743 jeremybenn
{ 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 1576 phoenix
  echo $ECHO_N "(cached) $ECHO_C" >&6
3000
else
3001 1743 jeremybenn
  ac_cv_prog_cc_c89=no
3002 1576 phoenix
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 1743 jeremybenn
   as 'x'.  The following induces an error, until -std is added to get
3036 1576 phoenix
   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 1743 jeremybenn
   that's true only with -std.  */
3039 1576 phoenix
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3040
 
3041 1743 jeremybenn
/* 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 1576 phoenix
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 1743 jeremybenn
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3061
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062 1576 phoenix
do
3063
  CC="$ac_save_CC $ac_arg"
3064
  rm -f conftest.$ac_objext
3065 1743 jeremybenn
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 1576 phoenix
  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 1743 jeremybenn
  (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 1576 phoenix
else
3083
  echo "$as_me: failed program was:" >&5
3084
sed 's/^/| /' conftest.$ac_ext >&5
3085
 
3086 1743 jeremybenn
 
3087 1576 phoenix
fi
3088 1743 jeremybenn
 
3089
rm -f core conftest.err conftest.$ac_objext
3090
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3091 1576 phoenix
done
3092 1743 jeremybenn
rm -f conftest.$ac_ext
3093 1576 phoenix
CC=$ac_save_CC
3094
 
3095
fi
3096 1743 jeremybenn
# 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 1576 phoenix
  *)
3105 1743 jeremybenn
    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 1576 phoenix
esac
3109
 
3110
 
3111 1242 hpanther
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 1745 jeremybenn
{ 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 1242 hpanther
 
3169 1745 jeremybenn
fi
3170 1576 phoenix
 
3171 1745 jeremybenn
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 1242 hpanther
fi
3236 1745 jeremybenn
 
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 1242 hpanther
   fi
3332
fi
3333 1745 jeremybenn
{ 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 1242 hpanther
 
3337 1576 phoenix
 
3338 1242 hpanther
 
3339 1745 jeremybenn
# 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 1743 jeremybenn
fi
3345 1242 hpanther
 
3346 1745 jeremybenn
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 1242 hpanther
fi
3385 1745 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then
3386
  echo $ECHO_N "(cached) $ECHO_C" >&6
3387 1242 hpanther
else
3388 1745 jeremybenn
  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 1242 hpanther
fi
3412 1745 jeremybenn
fi
3413 1242 hpanther
 
3414 1745 jeremybenn
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 1576 phoenix
 
3444
 
3445 1745 jeremybenn
{ 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 1242 hpanther
 
3470 1745 jeremybenn
{ 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 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
3474
else
3475 1745 jeremybenn
  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 1242 hpanther
  fi
3483 1745 jeremybenn
  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 1576 phoenix
    done
3514 1745 jeremybenn
    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 1242 hpanther
 
3523 1745 jeremybenn
{ 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 1242 hpanther
      ;;
3601
    esac
3602 1745 jeremybenn
  else
3603
    lt_cv_deplibs_check_method=pass_all
3604
  fi
3605
  ;;
3606 1242 hpanther
 
3607 1745 jeremybenn
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 1242 hpanther
fi
3720 1745 jeremybenn
{ 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 1242 hpanther
 
3726 1745 jeremybenn
 
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 1242 hpanther
fi
3743
 
3744 1745 jeremybenn
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 1748 jeremybenn
  echo '#line 3770 "configure"' > conftest.$ac_ext
3771 1745 jeremybenn
  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 1576 phoenix
else
3868 1745 jeremybenn
  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 1576 phoenix
fi
3914
 
3915 1745 jeremybenn
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 1576 phoenix
 
3923 1745 jeremybenn
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 1576 phoenix
 
3951 1745 jeremybenn
 
3952
esac
3953
 
3954
need_locks="$enable_libtool_lock"
3955
 
3956
 
3957 1242 hpanther
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 1743 jeremybenn
{ 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 7 jrydberg
# 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 1242 hpanther
  if test "${ac_cv_prog_CPP+set}" = set; then
3970
  echo $ECHO_N "(cached) $ECHO_C" >&6
3971 7 jrydberg
else
3972 1242 hpanther
      # 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 1576 phoenix
  # Prefer  to  if __STDC__ is defined, since
3981
  #  exists even on freestanding compilers.
3982 7 jrydberg
  # On the NeXT, cc -E runs the code through the compiler's parser,
3983 1242 hpanther
  # not just through cpp. "Syntax error" is here to catch this case.
3984
  cat >conftest.$ac_ext <<_ACEOF
3985 1576 phoenix
/* confdefs.h.  */
3986 1242 hpanther
_ACEOF
3987 1576 phoenix
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 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
4005 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4006 1242 hpanther
  rm -f conftest.er1
4007
  cat conftest.err >&5
4008 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 1743 jeremybenn
  (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 7 jrydberg
  :
4014
else
4015 1242 hpanther
  echo "$as_me: failed program was:" >&5
4016 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4017
 
4018 1242 hpanther
  # Broken: fails on valid input.
4019
continue
4020
fi
4021 1743 jeremybenn
 
4022 1242 hpanther
rm -f conftest.err conftest.$ac_ext
4023
 
4024 1743 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
4025 1242 hpanther
  # can be detected and how.
4026
  cat >conftest.$ac_ext <<_ACEOF
4027 1576 phoenix
/* confdefs.h.  */
4028
_ACEOF
4029
cat confdefs.h >>conftest.$ac_ext
4030
cat >>conftest.$ac_ext <<_ACEOF
4031
/* end confdefs.h.  */
4032 1242 hpanther
#include 
4033
_ACEOF
4034 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
4042 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4043 1242 hpanther
  rm -f conftest.er1
4044
  cat conftest.err >&5
4045 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 1743 jeremybenn
  (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 1242 hpanther
  # Broken: success on invalid input.
4051
continue
4052
else
4053
  echo "$as_me: failed program was:" >&5
4054 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4055
 
4056 1242 hpanther
  # Passes both tests.
4057
ac_preproc_ok=:
4058
break
4059
fi
4060 1743 jeremybenn
 
4061 1242 hpanther
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 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $CPP" >&5
4079
echo "${ECHO_T}$CPP" >&6; }
4080 1242 hpanther
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 1576 phoenix
  # Prefer  to  if __STDC__ is defined, since
4086
  #  exists even on freestanding compilers.
4087 1242 hpanther
  # 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 1576 phoenix
/* confdefs.h.  */
4091 1242 hpanther
_ACEOF
4092 1576 phoenix
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 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
4110 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4111 1242 hpanther
  rm -f conftest.er1
4112
  cat conftest.err >&5
4113 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 1743 jeremybenn
  (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 7 jrydberg
  :
4119
else
4120 1242 hpanther
  echo "$as_me: failed program was:" >&5
4121 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4122
 
4123 1242 hpanther
  # Broken: fails on valid input.
4124
continue
4125
fi
4126 1743 jeremybenn
 
4127 1242 hpanther
rm -f conftest.err conftest.$ac_ext
4128
 
4129 1743 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
4130 1242 hpanther
  # can be detected and how.
4131
  cat >conftest.$ac_ext <<_ACEOF
4132 1576 phoenix
/* confdefs.h.  */
4133
_ACEOF
4134
cat confdefs.h >>conftest.$ac_ext
4135
cat >>conftest.$ac_ext <<_ACEOF
4136
/* end confdefs.h.  */
4137 1242 hpanther
#include 
4138
_ACEOF
4139 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
4147 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4148 1242 hpanther
  rm -f conftest.er1
4149
  cat conftest.err >&5
4150 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 1743 jeremybenn
  (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 1242 hpanther
  # Broken: success on invalid input.
4156
continue
4157
else
4158
  echo "$as_me: failed program was:" >&5
4159 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4160
 
4161 1242 hpanther
  # Passes both tests.
4162
ac_preproc_ok=:
4163
break
4164
fi
4165 1743 jeremybenn
 
4166 1242 hpanther
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 7 jrydberg
  :
4173
else
4174 1576 phoenix
  { { 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 1242 hpanther
   { (exit 1); exit 1; }; }
4179 7 jrydberg
fi
4180 1242 hpanther
 
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 1576 phoenix
 
4188 1743 jeremybenn
{ 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 1576 phoenix
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 1743 jeremybenn
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 1576 phoenix
  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 1743 jeremybenn
  (exit $ac_status); } && {
4226
         test -z "$ac_c_werror_flag" ||
4227
         test ! -s conftest.err
4228
       } && test -s conftest.$ac_objext; then
4229 1576 phoenix
  ac_cv_header_stdc=yes
4230
else
4231
  echo "$as_me: failed program was:" >&5
4232
sed 's/^/| /' conftest.$ac_ext >&5
4233
 
4234 1743 jeremybenn
        ac_cv_header_stdc=no
4235 1576 phoenix
fi
4236
 
4237 1743 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238
 
4239 1576 phoenix
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 1743 jeremybenn
#include 
4294 1576 phoenix
#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 1743 jeremybenn
      return 2;
4314
  return 0;
4315 1576 phoenix
}
4316
_ACEOF
4317
rm -f conftest$ac_exeext
4318 1743 jeremybenn
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 1576 phoenix
  ac_status=$?
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328 1743 jeremybenn
  { (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 1576 phoenix
  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 1743 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4347 1576 phoenix
fi
4348 1743 jeremybenn
 
4349
 
4350 1576 phoenix
fi
4351
fi
4352 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4353
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4354 1576 phoenix
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 1743 jeremybenn
{ 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 1576 phoenix
  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 1743 jeremybenn
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 1576 phoenix
  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 1743 jeremybenn
  (exit $ac_status); } && {
4405
         test -z "$ac_c_werror_flag" ||
4406
         test ! -s conftest.err
4407
       } && test -s conftest.$ac_objext; then
4408 1576 phoenix
  eval "$as_ac_Header=yes"
4409
else
4410
  echo "$as_me: failed program was:" >&5
4411
sed 's/^/| /' conftest.$ac_ext >&5
4412
 
4413 1743 jeremybenn
        eval "$as_ac_Header=no"
4414 1576 phoenix
fi
4415 1743 jeremybenn
 
4416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 1576 phoenix
fi
4418 1743 jeremybenn
ac_res=`eval echo '${'$as_ac_Header'}'`
4419
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4420
echo "${ECHO_T}$ac_res" >&6; }
4421 1576 phoenix
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 1745 jeremybenn
 
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 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
4440 1576 phoenix
fi
4441 1745 jeremybenn
ac_res=`eval echo '${'$as_ac_Header'}'`
4442
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4443
echo "${ECHO_T}$ac_res" >&6; }
4444 1242 hpanther
else
4445 1576 phoenix
  # Is the header compilable?
4446 1745 jeremybenn
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4447
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4448 1576 phoenix
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 1745 jeremybenn
#include <$ac_header>
4456 1242 hpanther
_ACEOF
4457 1576 phoenix
rm -f conftest.$ac_objext
4458 1743 jeremybenn
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 1576 phoenix
  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 1743 jeremybenn
  (exit $ac_status); } && {
4471
         test -z "$ac_c_werror_flag" ||
4472
         test ! -s conftest.err
4473
       } && test -s conftest.$ac_objext; then
4474 1576 phoenix
  ac_header_compiler=yes
4475
else
4476
  echo "$as_me: failed program was:" >&5
4477
sed 's/^/| /' conftest.$ac_ext >&5
4478
 
4479 1743 jeremybenn
        ac_header_compiler=no
4480 1576 phoenix
fi
4481
 
4482 1743 jeremybenn
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 1576 phoenix
# Is the header present?
4487 1745 jeremybenn
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4488
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4489 1576 phoenix
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 1745 jeremybenn
#include <$ac_header>
4496 1576 phoenix
_ACEOF
4497 1743 jeremybenn
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 1242 hpanther
  ac_status=$?
4505 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4506 1242 hpanther
  rm -f conftest.er1
4507
  cat conftest.err >&5
4508 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 1743 jeremybenn
  (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 1576 phoenix
  ac_header_preproc=yes
4514 1242 hpanther
else
4515
  echo "$as_me: failed program was:" >&5
4516 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4517
 
4518
  ac_header_preproc=no
4519 1242 hpanther
fi
4520 1743 jeremybenn
 
4521 1242 hpanther
rm -f conftest.err conftest.$ac_ext
4522 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4523
echo "${ECHO_T}$ac_header_preproc" >&6; }
4524 1576 phoenix
 
4525
# So?  What about this header?
4526
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4527
  yes:no: )
4528 1745 jeremybenn
    { 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 1576 phoenix
    ac_header_preproc=yes
4533
    ;;
4534
  no:yes:* )
4535 1745 jeremybenn
    { 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 1576 phoenix
    ;;
4554
esac
4555 1745 jeremybenn
{ 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 1576 phoenix
  echo $ECHO_N "(cached) $ECHO_C" >&6
4559
else
4560 1745 jeremybenn
  eval "$as_ac_Header=\$ac_header_preproc"
4561 1242 hpanther
fi
4562 1745 jeremybenn
ac_res=`eval echo '${'$as_ac_Header'}'`
4563
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4564
echo "${ECHO_T}$ac_res" >&6; }
4565 1576 phoenix
 
4566
fi
4567 1745 jeremybenn
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 7 jrydberg
else
4595 1745 jeremybenn
  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 7 jrydberg
fi
4614 1745 jeremybenn
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 7 jrydberg
 
4624 1576 phoenix
 
4625 1745 jeremybenn
    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 1242 hpanther
 
4657 1745 jeremybenn
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 1576 phoenix
_ACEOF
4733 1745 jeremybenn
cat confdefs.h >>conftest.$ac_ext
4734
cat >>conftest.$ac_ext <<_ACEOF
4735
/* end confdefs.h.  */
4736 7 jrydberg
 
4737 1745 jeremybenn
int
4738
main ()
4739
{
4740
#ifndef __GNUC__
4741
       choke me
4742
#endif
4743 1576 phoenix
 
4744 1745 jeremybenn
  ;
4745
  return 0;
4746
}
4747 1576 phoenix
_ACEOF
4748 1745 jeremybenn
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 7 jrydberg
 
4770 1745 jeremybenn
        ac_compiler_gnu=no
4771
fi
4772 1576 phoenix
 
4773 1745 jeremybenn
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 1576 phoenix
_ACEOF
4794 1745 jeremybenn
cat confdefs.h >>conftest.$ac_ext
4795
cat >>conftest.$ac_ext <<_ACEOF
4796
/* end confdefs.h.  */
4797 7 jrydberg
 
4798 1745 jeremybenn
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 7 jrydberg
fi
4907
 
4908 1745 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909
fi
4910 1576 phoenix
 
4911 1745 jeremybenn
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 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
4955 7 jrydberg
else
4956 1745 jeremybenn
      # 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 1576 phoenix
_ACEOF
4971 1745 jeremybenn
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 1743 jeremybenn
  *)
5524 1745 jeremybenn
    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 1743 jeremybenn
esac
5628 1745 jeremybenn
 
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 7 jrydberg
fi
5763 1745 jeremybenn
 
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 1748 jeremybenn
   (eval echo "\"\$as_me:6405: $lt_compile\"" >&5)
6406 1745 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6407
   ac_status=$?
6408
   cat conftest.err >&5
6409 1748 jeremybenn
   echo "$as_me:6409: \$? = $ac_status" >&5
6410 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:6695: $lt_compile\"" >&5)
6696 1745 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6697
   ac_status=$?
6698
   cat conftest.err >&5
6699 1748 jeremybenn
   echo "$as_me:6699: \$? = $ac_status" >&5
6700 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:6799: $lt_compile\"" >&5)
6800 1745 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
6801
   ac_status=$?
6802
   cat out/conftest.err >&5
6803 1748 jeremybenn
   echo "$as_me:6803: \$? = $ac_status" >&5
6804 1745 jeremybenn
   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 1743 jeremybenn
  { echo "$as_me:$LINENO: result: yes" >&5
8556
echo "${ECHO_T}yes" >&6; }
8557 7 jrydberg
else
8558 1745 jeremybenn
# 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 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
8568
echo "${ECHO_T}no" >&6; }
8569 7 jrydberg
fi
8570 1745 jeremybenn
       ;;
8571
   *)
8572
  { echo "$as_me:$LINENO: result: no" >&5
8573
echo "${ECHO_T}no" >&6; }
8574
    ;;
8575
  esac
8576
fi
8577 7 jrydberg
 
8578 1745 jeremybenn
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 1576 phoenix
 
8586 1745 jeremybenn
  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 7 jrydberg
 
8593 1745 jeremybenn
  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 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
8609 7 jrydberg
else
8610 1745 jeremybenn
  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 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
8685 1576 phoenix
/* confdefs.h.  */
8686
_ACEOF
8687
cat confdefs.h >>conftest.$ac_ext
8688
cat >>conftest.$ac_ext <<_ACEOF
8689
/* end confdefs.h.  */
8690 1745 jeremybenn
/* 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 1242 hpanther
_ACEOF
8729 1745 jeremybenn
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 7 jrydberg
else
8749 1745 jeremybenn
  echo "$as_me: failed program was:" >&5
8750
sed 's/^/| /' conftest.$ac_ext >&5
8751
 
8752
        ac_cv_func_shl_load=no
8753 7 jrydberg
fi
8754
 
8755 1745 jeremybenn
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 1576 phoenix
 
8777 1745 jeremybenn
/* 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 1576 phoenix
/* confdefs.h.  */
8834
_ACEOF
8835
cat confdefs.h >>conftest.$ac_ext
8836
cat >>conftest.$ac_ext <<_ACEOF
8837
/* end confdefs.h.  */
8838 1745 jeremybenn
/* 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 1242 hpanther
_ACEOF
8877 1745 jeremybenn
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 7 jrydberg
fi
8902
 
8903 1745 jeremybenn
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 7 jrydberg
  fi
9127 1745 jeremybenn
 
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 1748 jeremybenn
#line 9150 "configure"
9151 1745 jeremybenn
#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 7 jrydberg
fi
9230 1745 jeremybenn
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 1748 jeremybenn
#line 9250 "configure"
9251 1745 jeremybenn
#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 7 jrydberg
  fi
9329
fi
9330 1745 jeremybenn
rm -fr conftest*
9331 7 jrydberg
 
9332 1745 jeremybenn
 
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 1748 jeremybenn
   (eval echo "\"\$as_me:11670: $lt_compile\"" >&5)
11671 1745 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
11672
   ac_status=$?
11673
   cat conftest.err >&5
11674 1748 jeremybenn
   echo "$as_me:11674: \$? = $ac_status" >&5
11675 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:11774: $lt_compile\"" >&5)
11775 1745 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
11776
   ac_status=$?
11777
   cat out/conftest.err >&5
11778 1748 jeremybenn
   echo "$as_me:11778: \$? = $ac_status" >&5
11779 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:13338: $lt_compile\"" >&5)
13339 1745 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
13340
   ac_status=$?
13341
   cat conftest.err >&5
13342 1748 jeremybenn
   echo "$as_me:13342: \$? = $ac_status" >&5
13343 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:13442: $lt_compile\"" >&5)
13443 1745 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
13444
   ac_status=$?
13445
   cat out/conftest.err >&5
13446 1748 jeremybenn
   echo "$as_me:13446: \$? = $ac_status" >&5
13447 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:15631: $lt_compile\"" >&5)
15632 1745 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
15633
   ac_status=$?
15634
   cat conftest.err >&5
15635 1748 jeremybenn
   echo "$as_me:15635: \$? = $ac_status" >&5
15636 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:15921: $lt_compile\"" >&5)
15922 1745 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
15923
   ac_status=$?
15924
   cat conftest.err >&5
15925 1748 jeremybenn
   echo "$as_me:15925: \$? = $ac_status" >&5
15926 1745 jeremybenn
   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 1748 jeremybenn
   (eval echo "\"\$as_me:16025: $lt_compile\"" >&5)
16026 1745 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
16027
   ac_status=$?
16028
   cat out/conftest.err >&5
16029 1748 jeremybenn
   echo "$as_me:16029: \$? = $ac_status" >&5
16030 1745 jeremybenn
   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 7 jrydberg
# 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 1242 hpanther
# AmigaOS /C/install, which installs bootblocks on floppy discs
18689 7 jrydberg
# 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 1576 phoenix
# OS/2's system install, which has a completely different semantic
18693 7 jrydberg
# ./install, which can be erroneously created by make from ./install.sh.
18694 1743 jeremybenn
{ 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 7 jrydberg
if test -z "$INSTALL"; then
18697 1242 hpanther
if test "${ac_cv_path_install+set}" = set; then
18698
  echo $ECHO_N "(cached) $ECHO_C" >&6
18699 7 jrydberg
else
18700 1576 phoenix
  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 1743 jeremybenn
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18718 1249 lampret
          if test $ac_prog = install &&
18719 1576 phoenix
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18720 1249 lampret
            # AIX install.  It has an incompatible calling convention.
18721
            :
18722
          elif test $ac_prog = install &&
18723 1576 phoenix
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18724 1249 lampret
            # program-specific install script used by HP pwplus--don't use.
18725
            :
18726
          else
18727 1576 phoenix
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18728
            break 3
18729 1249 lampret
          fi
18730
        fi
18731 7 jrydberg
      done
18732 1576 phoenix
    done
18733
    ;;
18734
esac
18735
done
18736 1743 jeremybenn
IFS=$as_save_IFS
18737 7 jrydberg
 
18738 1576 phoenix
 
18739 7 jrydberg
fi
18740
  if test "${ac_cv_path_install+set}" = set; then
18741 1242 hpanther
    INSTALL=$ac_cv_path_install
18742 7 jrydberg
  else
18743 1743 jeremybenn
    # 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 7 jrydberg
    # break other packages using the cache if that directory is
18746 1743 jeremybenn
    # removed, or if the value is a relative name.
18747 1242 hpanther
    INSTALL=$ac_install_sh
18748 7 jrydberg
  fi
18749
fi
18750 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18751
echo "${ECHO_T}$INSTALL" >&6; }
18752 7 jrydberg
 
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 1242 hpanther
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18758 7 jrydberg
 
18759
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18760
 
18761 1745 jeremybenn
{ 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 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18886 1745 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
18887 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
18888 7 jrydberg
else
18889 1745 jeremybenn
  if test -n "$AWK"; then
18890
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18891 7 jrydberg
else
18892 1576 phoenix
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 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18899 1745 jeremybenn
    ac_cv_prog_AWK="$ac_prog"
18900 1576 phoenix
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18901
    break 2
18902
  fi
18903 1242 hpanther
done
18904 1576 phoenix
done
18905 1743 jeremybenn
IFS=$as_save_IFS
18906 1242 hpanther
 
18907 7 jrydberg
fi
18908
fi
18909 1745 jeremybenn
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 7 jrydberg
else
18914 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
18915
echo "${ECHO_T}no" >&6; }
18916 7 jrydberg
fi
18917
 
18918 1743 jeremybenn
 
18919 1745 jeremybenn
  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 1760 jeremybenn
 VERSION='0.3.0'
19048 1745 jeremybenn
 
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 1751 jeremybenn
# yuck.
19418 1745 jeremybenn
case "$target_cpu" in
19419
or32*)  CPU_ARCH=or32;
19420 1748 jeremybenn
        ARCH_ISA=OR32;
19421
 
19422
cat >>confdefs.h <<\_ACEOF
19423
#define OR32_TYPES 1
19424
_ACEOF
19425
;;
19426 1745 jeremybenn
dlx*)   CPU_ARCH=dlx;
19427
        ARCH_ISA=DLX;;
19428 1748 jeremybenn
*)      { 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 1745 jeremybenn
esac
19438
 
19439 1751 jeremybenn
# determine endianism from target CPU name. If it has "little" in the name,
19440
# then its litte endian, otherwise its big endian (default for OR1K)
19441
case "$target_cpu" in
19442
*little*)
19443
cat >>confdefs.h <<\_ACEOF
19444
#define OR32_LITTLE_ENDIAN 1
19445
_ACEOF
19446
;;
19447
       *)
19448
cat >>confdefs.h <<\_ACEOF
19449
#define OR32_BIG_ENDIAN 1
19450
_ACEOF
19451
;;
19452
esac
19453 1745 jeremybenn
 
19454 1748 jeremybenn
 
19455 1751 jeremybenn
 
19456 1745 jeremybenn
# We want these before the checks, so the checks can modify their values.
19457
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
19458
 
19459
ac_ext=c
19460
ac_cpp='$CPP $CPPFLAGS'
19461
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19462
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19463
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19464 1242 hpanther
if test -n "$ac_tool_prefix"; then
19465 1745 jeremybenn
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19466
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19467 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19469 1745 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
19470 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
19471 7 jrydberg
else
19472 1745 jeremybenn
  if test -n "$CC"; then
19473
  ac_cv_prog_CC="$CC" # Let the user override the test.
19474 7 jrydberg
else
19475 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19476
for as_dir in $PATH
19477
do
19478
  IFS=$as_save_IFS
19479
  test -z "$as_dir" && as_dir=.
19480
  for ac_exec_ext in '' $ac_executable_extensions; do
19481 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19482 1745 jeremybenn
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19483 1576 phoenix
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19484
    break 2
19485
  fi
19486 1242 hpanther
done
19487 1576 phoenix
done
19488 1743 jeremybenn
IFS=$as_save_IFS
19489 1242 hpanther
 
19490 7 jrydberg
fi
19491
fi
19492 1745 jeremybenn
CC=$ac_cv_prog_CC
19493
if test -n "$CC"; then
19494
  { echo "$as_me:$LINENO: result: $CC" >&5
19495
echo "${ECHO_T}$CC" >&6; }
19496 7 jrydberg
else
19497 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
19498
echo "${ECHO_T}no" >&6; }
19499 7 jrydberg
fi
19500
 
19501 1743 jeremybenn
 
19502 1242 hpanther
fi
19503 1745 jeremybenn
if test -z "$ac_cv_prog_CC"; then
19504
  ac_ct_CC=$CC
19505
  # Extract the first word of "gcc", so it can be a program name with args.
19506
set dummy gcc; ac_word=$2
19507 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19509 1745 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19510 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
19511
else
19512 1745 jeremybenn
  if test -n "$ac_ct_CC"; then
19513
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19514 1242 hpanther
else
19515 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19516
for as_dir in $PATH
19517
do
19518
  IFS=$as_save_IFS
19519
  test -z "$as_dir" && as_dir=.
19520
  for ac_exec_ext in '' $ac_executable_extensions; do
19521 1743 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19522 1745 jeremybenn
    ac_cv_prog_ac_ct_CC="gcc"
19523 1576 phoenix
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19524
    break 2
19525
  fi
19526 1242 hpanther
done
19527 1576 phoenix
done
19528 1743 jeremybenn
IFS=$as_save_IFS
19529 7 jrydberg
 
19530 1242 hpanther
fi
19531
fi
19532 1745 jeremybenn
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19533
if test -n "$ac_ct_CC"; then
19534
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19535
echo "${ECHO_T}$ac_ct_CC" >&6; }
19536 1242 hpanther
else
19537 1743 jeremybenn
  { echo "$as_me:$LINENO: result: no" >&5
19538
echo "${ECHO_T}no" >&6; }
19539 1242 hpanther
fi
19540
 
19541 1745 jeremybenn
  if test "x$ac_ct_CC" = x; then
19542
    CC=""
19543 1743 jeremybenn
  else
19544
    case $cross_compiling:$ac_tool_warned in
19545
yes:)
19546
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19547
whose name does not start with the host triplet.  If you think this
19548
configuration is useful to you, please write to autoconf@gnu.org." >&5
19549
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19550
whose name does not start with the host triplet.  If you think this
19551
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19552
ac_tool_warned=yes ;;
19553
esac
19554 1745 jeremybenn
    CC=$ac_ct_CC
19555 1743 jeremybenn
  fi
19556 1242 hpanther
else
19557 1745 jeremybenn
  CC="$ac_cv_prog_CC"
19558 1242 hpanther
fi
19559
 
19560 1745 jeremybenn
if test -z "$CC"; then
19561
          if test -n "$ac_tool_prefix"; then
19562
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19563
set dummy ${ac_tool_prefix}cc; ac_word=$2
19564
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19565
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19566
if test "${ac_cv_prog_CC+set}" = set; then
19567
  echo $ECHO_N "(cached) $ECHO_C" >&6
19568
else
19569
  if test -n "$CC"; then
19570
  ac_cv_prog_CC="$CC" # Let the user override the test.
19571
else
19572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19573
for as_dir in $PATH
19574
do
19575
  IFS=$as_save_IFS
19576
  test -z "$as_dir" && as_dir=.
19577
  for ac_exec_ext in '' $ac_executable_extensions; do
19578
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19579
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19580
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19581
    break 2
19582
  fi
19583
done
19584
done
19585
IFS=$as_save_IFS
19586 1576 phoenix
 
19587 1745 jeremybenn
fi
19588
fi
19589
CC=$ac_cv_prog_CC
19590
if test -n "$CC"; then
19591
  { echo "$as_me:$LINENO: result: $CC" >&5
19592
echo "${ECHO_T}$CC" >&6; }
19593
else
19594
  { echo "$as_me:$LINENO: result: no" >&5
19595
echo "${ECHO_T}no" >&6; }
19596
fi
19597
 
19598
 
19599
  fi
19600
fi
19601
if test -z "$CC"; then
19602
  # Extract the first word of "cc", so it can be a program name with args.
19603
set dummy cc; ac_word=$2
19604
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19605
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19606
if test "${ac_cv_prog_CC+set}" = set; then
19607
  echo $ECHO_N "(cached) $ECHO_C" >&6
19608
else
19609
  if test -n "$CC"; then
19610
  ac_cv_prog_CC="$CC" # Let the user override the test.
19611
else
19612
  ac_prog_rejected=no
19613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19614
for as_dir in $PATH
19615
do
19616
  IFS=$as_save_IFS
19617
  test -z "$as_dir" && as_dir=.
19618
  for ac_exec_ext in '' $ac_executable_extensions; do
19619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19620
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19621
       ac_prog_rejected=yes
19622
       continue
19623
     fi
19624
    ac_cv_prog_CC="cc"
19625
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19626
    break 2
19627
  fi
19628
done
19629
done
19630
IFS=$as_save_IFS
19631
 
19632
if test $ac_prog_rejected = yes; then
19633
  # We found a bogon in the path, so make sure we never use it.
19634
  set dummy $ac_cv_prog_CC
19635
  shift
19636
  if test $# != 0; then
19637
    # We chose a different compiler from the bogus one.
19638
    # However, it has the same basename, so the bogon will be chosen
19639
    # first if we set CC to just the basename; use the full file name.
19640
    shift
19641
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19642
  fi
19643
fi
19644
fi
19645
fi
19646
CC=$ac_cv_prog_CC
19647
if test -n "$CC"; then
19648
  { echo "$as_me:$LINENO: result: $CC" >&5
19649
echo "${ECHO_T}$CC" >&6; }
19650
else
19651
  { echo "$as_me:$LINENO: result: no" >&5
19652
echo "${ECHO_T}no" >&6; }
19653
fi
19654
 
19655
 
19656
fi
19657
if test -z "$CC"; then
19658
  if test -n "$ac_tool_prefix"; then
19659
  for ac_prog in cl.exe
19660
  do
19661
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19662
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19663
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19665
if test "${ac_cv_prog_CC+set}" = set; then
19666
  echo $ECHO_N "(cached) $ECHO_C" >&6
19667
else
19668
  if test -n "$CC"; then
19669
  ac_cv_prog_CC="$CC" # Let the user override the test.
19670
else
19671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19672
for as_dir in $PATH
19673
do
19674
  IFS=$as_save_IFS
19675
  test -z "$as_dir" && as_dir=.
19676
  for ac_exec_ext in '' $ac_executable_extensions; do
19677
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19678
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19679
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19680
    break 2
19681
  fi
19682
done
19683
done
19684
IFS=$as_save_IFS
19685
 
19686
fi
19687
fi
19688
CC=$ac_cv_prog_CC
19689
if test -n "$CC"; then
19690
  { echo "$as_me:$LINENO: result: $CC" >&5
19691
echo "${ECHO_T}$CC" >&6; }
19692
else
19693
  { echo "$as_me:$LINENO: result: no" >&5
19694
echo "${ECHO_T}no" >&6; }
19695
fi
19696
 
19697
 
19698
    test -n "$CC" && break
19699
  done
19700
fi
19701
if test -z "$CC"; then
19702
  ac_ct_CC=$CC
19703
  for ac_prog in cl.exe
19704
do
19705
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19706
set dummy $ac_prog; ac_word=$2
19707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19709
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19710
  echo $ECHO_N "(cached) $ECHO_C" >&6
19711
else
19712
  if test -n "$ac_ct_CC"; then
19713
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19714
else
19715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19716
for as_dir in $PATH
19717
do
19718
  IFS=$as_save_IFS
19719
  test -z "$as_dir" && as_dir=.
19720
  for ac_exec_ext in '' $ac_executable_extensions; do
19721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19722
    ac_cv_prog_ac_ct_CC="$ac_prog"
19723
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19724
    break 2
19725
  fi
19726
done
19727
done
19728
IFS=$as_save_IFS
19729
 
19730
fi
19731
fi
19732
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19733
if test -n "$ac_ct_CC"; then
19734
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19735
echo "${ECHO_T}$ac_ct_CC" >&6; }
19736
else
19737
  { echo "$as_me:$LINENO: result: no" >&5
19738
echo "${ECHO_T}no" >&6; }
19739
fi
19740
 
19741
 
19742
  test -n "$ac_ct_CC" && break
19743
done
19744
 
19745
  if test "x$ac_ct_CC" = x; then
19746
    CC=""
19747
  else
19748
    case $cross_compiling:$ac_tool_warned in
19749
yes:)
19750
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19751
whose name does not start with the host triplet.  If you think this
19752
configuration is useful to you, please write to autoconf@gnu.org." >&5
19753
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19754
whose name does not start with the host triplet.  If you think this
19755
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19756
ac_tool_warned=yes ;;
19757
esac
19758
    CC=$ac_ct_CC
19759
  fi
19760
fi
19761
 
19762
fi
19763
 
19764
 
19765
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19766
See \`config.log' for more details." >&5
19767
echo "$as_me: error: no acceptable C compiler found in \$PATH
19768
See \`config.log' for more details." >&2;}
19769
   { (exit 1); exit 1; }; }
19770
 
19771
# Provide some information about the compiler.
19772
echo "$as_me:$LINENO: checking for C compiler version" >&5
19773
ac_compiler=`set X $ac_compile; echo $2`
19774
{ (ac_try="$ac_compiler --version >&5"
19775
case "(($ac_try" in
19776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777
  *) ac_try_echo=$ac_try;;
19778
esac
19779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780
  (eval "$ac_compiler --version >&5") 2>&5
19781
  ac_status=$?
19782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783
  (exit $ac_status); }
19784
{ (ac_try="$ac_compiler -v >&5"
19785
case "(($ac_try" in
19786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787
  *) ac_try_echo=$ac_try;;
19788
esac
19789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790
  (eval "$ac_compiler -v >&5") 2>&5
19791
  ac_status=$?
19792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793
  (exit $ac_status); }
19794
{ (ac_try="$ac_compiler -V >&5"
19795
case "(($ac_try" in
19796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797
  *) ac_try_echo=$ac_try;;
19798
esac
19799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800
  (eval "$ac_compiler -V >&5") 2>&5
19801
  ac_status=$?
19802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803
  (exit $ac_status); }
19804
 
19805
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19806
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19807
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19808
  echo $ECHO_N "(cached) $ECHO_C" >&6
19809
else
19810
  cat >conftest.$ac_ext <<_ACEOF
19811
/* confdefs.h.  */
19812
_ACEOF
19813
cat confdefs.h >>conftest.$ac_ext
19814
cat >>conftest.$ac_ext <<_ACEOF
19815
/* end confdefs.h.  */
19816
 
19817
int
19818
main ()
19819
{
19820
#ifndef __GNUC__
19821
       choke me
19822
#endif
19823
 
19824
  ;
19825
  return 0;
19826
}
19827
_ACEOF
19828
rm -f conftest.$ac_objext
19829
if { (ac_try="$ac_compile"
19830
case "(($ac_try" in
19831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832
  *) ac_try_echo=$ac_try;;
19833
esac
19834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835
  (eval "$ac_compile") 2>conftest.er1
19836
  ac_status=$?
19837
  grep -v '^ *+' conftest.er1 >conftest.err
19838
  rm -f conftest.er1
19839
  cat conftest.err >&5
19840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841
  (exit $ac_status); } && {
19842
         test -z "$ac_c_werror_flag" ||
19843
         test ! -s conftest.err
19844
       } && test -s conftest.$ac_objext; then
19845
  ac_compiler_gnu=yes
19846
else
19847
  echo "$as_me: failed program was:" >&5
19848
sed 's/^/| /' conftest.$ac_ext >&5
19849
 
19850
        ac_compiler_gnu=no
19851
fi
19852
 
19853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19854
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19855
 
19856
fi
19857
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19858
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19859
GCC=`test $ac_compiler_gnu = yes && echo yes`
19860
ac_test_CFLAGS=${CFLAGS+set}
19861
ac_save_CFLAGS=$CFLAGS
19862
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19863
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19864
if test "${ac_cv_prog_cc_g+set}" = set; then
19865
  echo $ECHO_N "(cached) $ECHO_C" >&6
19866
else
19867
  ac_save_c_werror_flag=$ac_c_werror_flag
19868
   ac_c_werror_flag=yes
19869
   ac_cv_prog_cc_g=no
19870
   CFLAGS="-g"
19871
   cat >conftest.$ac_ext <<_ACEOF
19872
/* confdefs.h.  */
19873
_ACEOF
19874
cat confdefs.h >>conftest.$ac_ext
19875
cat >>conftest.$ac_ext <<_ACEOF
19876
/* end confdefs.h.  */
19877
 
19878
int
19879
main ()
19880
{
19881
 
19882
  ;
19883
  return 0;
19884
}
19885
_ACEOF
19886
rm -f conftest.$ac_objext
19887
if { (ac_try="$ac_compile"
19888
case "(($ac_try" in
19889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890
  *) ac_try_echo=$ac_try;;
19891
esac
19892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893
  (eval "$ac_compile") 2>conftest.er1
19894
  ac_status=$?
19895
  grep -v '^ *+' conftest.er1 >conftest.err
19896
  rm -f conftest.er1
19897
  cat conftest.err >&5
19898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899
  (exit $ac_status); } && {
19900
         test -z "$ac_c_werror_flag" ||
19901
         test ! -s conftest.err
19902
       } && test -s conftest.$ac_objext; then
19903
  ac_cv_prog_cc_g=yes
19904
else
19905
  echo "$as_me: failed program was:" >&5
19906
sed 's/^/| /' conftest.$ac_ext >&5
19907
 
19908
        CFLAGS=""
19909
      cat >conftest.$ac_ext <<_ACEOF
19910
/* confdefs.h.  */
19911
_ACEOF
19912
cat confdefs.h >>conftest.$ac_ext
19913
cat >>conftest.$ac_ext <<_ACEOF
19914
/* end confdefs.h.  */
19915
 
19916
int
19917
main ()
19918
{
19919
 
19920
  ;
19921
  return 0;
19922
}
19923
_ACEOF
19924
rm -f conftest.$ac_objext
19925
if { (ac_try="$ac_compile"
19926
case "(($ac_try" in
19927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928
  *) ac_try_echo=$ac_try;;
19929
esac
19930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931
  (eval "$ac_compile") 2>conftest.er1
19932
  ac_status=$?
19933
  grep -v '^ *+' conftest.er1 >conftest.err
19934
  rm -f conftest.er1
19935
  cat conftest.err >&5
19936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937
  (exit $ac_status); } && {
19938
         test -z "$ac_c_werror_flag" ||
19939
         test ! -s conftest.err
19940
       } && test -s conftest.$ac_objext; then
19941
  :
19942
else
19943
  echo "$as_me: failed program was:" >&5
19944
sed 's/^/| /' conftest.$ac_ext >&5
19945
 
19946
        ac_c_werror_flag=$ac_save_c_werror_flag
19947
         CFLAGS="-g"
19948
         cat >conftest.$ac_ext <<_ACEOF
19949
/* confdefs.h.  */
19950
_ACEOF
19951
cat confdefs.h >>conftest.$ac_ext
19952
cat >>conftest.$ac_ext <<_ACEOF
19953
/* end confdefs.h.  */
19954
 
19955
int
19956
main ()
19957
{
19958
 
19959
  ;
19960
  return 0;
19961
}
19962
_ACEOF
19963
rm -f conftest.$ac_objext
19964
if { (ac_try="$ac_compile"
19965
case "(($ac_try" in
19966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967
  *) ac_try_echo=$ac_try;;
19968
esac
19969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970
  (eval "$ac_compile") 2>conftest.er1
19971
  ac_status=$?
19972
  grep -v '^ *+' conftest.er1 >conftest.err
19973
  rm -f conftest.er1
19974
  cat conftest.err >&5
19975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976
  (exit $ac_status); } && {
19977
         test -z "$ac_c_werror_flag" ||
19978
         test ! -s conftest.err
19979
       } && test -s conftest.$ac_objext; then
19980
  ac_cv_prog_cc_g=yes
19981
else
19982
  echo "$as_me: failed program was:" >&5
19983
sed 's/^/| /' conftest.$ac_ext >&5
19984
 
19985
 
19986
fi
19987
 
19988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989
fi
19990
 
19991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19992
fi
19993
 
19994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19995
   ac_c_werror_flag=$ac_save_c_werror_flag
19996
fi
19997
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19998
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19999
if test "$ac_test_CFLAGS" = set; then
20000
  CFLAGS=$ac_save_CFLAGS
20001
elif test $ac_cv_prog_cc_g = yes; then
20002
  if test "$GCC" = yes; then
20003
    CFLAGS="-g -O2"
20004
  else
20005
    CFLAGS="-g"
20006
  fi
20007
else
20008
  if test "$GCC" = yes; then
20009
    CFLAGS="-O2"
20010
  else
20011
    CFLAGS=
20012
  fi
20013
fi
20014
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20015
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20016
if test "${ac_cv_prog_cc_c89+set}" = set; then
20017
  echo $ECHO_N "(cached) $ECHO_C" >&6
20018
else
20019
  ac_cv_prog_cc_c89=no
20020
ac_save_CC=$CC
20021
cat >conftest.$ac_ext <<_ACEOF
20022
/* confdefs.h.  */
20023
_ACEOF
20024
cat confdefs.h >>conftest.$ac_ext
20025
cat >>conftest.$ac_ext <<_ACEOF
20026
/* end confdefs.h.  */
20027
#include 
20028
#include 
20029
#include 
20030
#include 
20031
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20032
struct buf { int x; };
20033
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20034
static char *e (p, i)
20035
     char **p;
20036
     int i;
20037
{
20038
  return p[i];
20039
}
20040
static char *f (char * (*g) (char **, int), char **p, ...)
20041
{
20042
  char *s;
20043
  va_list v;
20044
  va_start (v,p);
20045
  s = g (p, va_arg (v,int));
20046
  va_end (v);
20047
  return s;
20048
}
20049
 
20050
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20051
   function prototypes and stuff, but not '\xHH' hex character constants.
20052
   These don't provoke an error unfortunately, instead are silently treated
20053
   as 'x'.  The following induces an error, until -std is added to get
20054
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20055
   array size at least.  It's necessary to write '\x00'==0 to get something
20056
   that's true only with -std.  */
20057
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20058
 
20059
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20060
   inside strings and character constants.  */
20061
#define FOO(x) 'x'
20062
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20063
 
20064
int test (int i, double x);
20065
struct s1 {int (*f) (int a);};
20066
struct s2 {int (*f) (double a);};
20067
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20068
int argc;
20069
char **argv;
20070
int
20071
main ()
20072
{
20073
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20074
  ;
20075
  return 0;
20076
}
20077
_ACEOF
20078
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20079
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20080
do
20081
  CC="$ac_save_CC $ac_arg"
20082
  rm -f conftest.$ac_objext
20083
if { (ac_try="$ac_compile"
20084
case "(($ac_try" in
20085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086
  *) ac_try_echo=$ac_try;;
20087
esac
20088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089
  (eval "$ac_compile") 2>conftest.er1
20090
  ac_status=$?
20091
  grep -v '^ *+' conftest.er1 >conftest.err
20092
  rm -f conftest.er1
20093
  cat conftest.err >&5
20094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095
  (exit $ac_status); } && {
20096
         test -z "$ac_c_werror_flag" ||
20097
         test ! -s conftest.err
20098
       } && test -s conftest.$ac_objext; then
20099
  ac_cv_prog_cc_c89=$ac_arg
20100
else
20101
  echo "$as_me: failed program was:" >&5
20102
sed 's/^/| /' conftest.$ac_ext >&5
20103
 
20104
 
20105
fi
20106
 
20107
rm -f core conftest.err conftest.$ac_objext
20108
  test "x$ac_cv_prog_cc_c89" != "xno" && break
20109
done
20110
rm -f conftest.$ac_ext
20111
CC=$ac_save_CC
20112
 
20113
fi
20114
# AC_CACHE_VAL
20115
case "x$ac_cv_prog_cc_c89" in
20116
  x)
20117
    { echo "$as_me:$LINENO: result: none needed" >&5
20118
echo "${ECHO_T}none needed" >&6; } ;;
20119
  xno)
20120
    { echo "$as_me:$LINENO: result: unsupported" >&5
20121
echo "${ECHO_T}unsupported" >&6; } ;;
20122
  *)
20123
    CC="$CC $ac_cv_prog_cc_c89"
20124
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20125
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20126
esac
20127
 
20128
 
20129
ac_ext=c
20130
ac_cpp='$CPP $CPPFLAGS'
20131
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20134
 
20135
if test "x$CC" != xcc; then
20136
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20137
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20138
else
20139
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20140
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20141
fi
20142
set dummy $CC; ac_cc=`echo $2 |
20143
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20144
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20145
  echo $ECHO_N "(cached) $ECHO_C" >&6
20146
else
20147
  cat >conftest.$ac_ext <<_ACEOF
20148
/* confdefs.h.  */
20149
_ACEOF
20150
cat confdefs.h >>conftest.$ac_ext
20151
cat >>conftest.$ac_ext <<_ACEOF
20152
/* end confdefs.h.  */
20153
 
20154
int
20155
main ()
20156
{
20157
 
20158
  ;
20159
  return 0;
20160
}
20161
_ACEOF
20162
# Make sure it works both with $CC and with simple cc.
20163
# We do the test twice because some compilers refuse to overwrite an
20164
# existing .o file with -o, though they will create one.
20165
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20166
rm -f conftest2.*
20167
if { (case "(($ac_try" in
20168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169
  *) ac_try_echo=$ac_try;;
20170
esac
20171
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172
  (eval "$ac_try") 2>&5
20173
  ac_status=$?
20174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175
  (exit $ac_status); } &&
20176
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178
  *) ac_try_echo=$ac_try;;
20179
esac
20180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181
  (eval "$ac_try") 2>&5
20182
  ac_status=$?
20183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184
  (exit $ac_status); };
20185
then
20186
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20187
  if test "x$CC" != xcc; then
20188
    # Test first that cc exists at all.
20189
    if { ac_try='cc -c conftest.$ac_ext >&5'
20190
  { (case "(($ac_try" in
20191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192
  *) ac_try_echo=$ac_try;;
20193
esac
20194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195
  (eval "$ac_try") 2>&5
20196
  ac_status=$?
20197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198
  (exit $ac_status); }; }; then
20199
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20200
      rm -f conftest2.*
20201
      if { (case "(($ac_try" in
20202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203
  *) ac_try_echo=$ac_try;;
20204
esac
20205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206
  (eval "$ac_try") 2>&5
20207
  ac_status=$?
20208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209
  (exit $ac_status); } &&
20210
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
20211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212
  *) ac_try_echo=$ac_try;;
20213
esac
20214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215
  (eval "$ac_try") 2>&5
20216
  ac_status=$?
20217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218
  (exit $ac_status); };
20219
      then
20220
        # cc works too.
20221
        :
20222
      else
20223
        # cc exists but doesn't like -o.
20224
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
20225
      fi
20226
    fi
20227
  fi
20228
else
20229
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20230
fi
20231
rm -f core conftest*
20232
 
20233
fi
20234
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20235
  { echo "$as_me:$LINENO: result: yes" >&5
20236
echo "${ECHO_T}yes" >&6; }
20237
else
20238
  { echo "$as_me:$LINENO: result: no" >&5
20239
echo "${ECHO_T}no" >&6; }
20240
 
20241
cat >>confdefs.h <<\_ACEOF
20242
#define NO_MINUS_C_MINUS_O 1
20243
_ACEOF
20244
 
20245
fi
20246
 
20247
# FIXME: we rely on the cache variable name because
20248
# there is no other way.
20249
set dummy $CC
20250
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20251
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20252
   # Losing compiler, so override with the script.
20253
   # FIXME: It is wrong to rewrite CC.
20254
   # But if we don't then we get into trouble of one sort or another.
20255
   # A longer-term fix would be to have automake use am__CC in this case,
20256
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20257
   CC="$am_aux_dir/compile $CC"
20258
fi
20259
 
20260
 
20261
 
20262
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20263
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20264
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20265
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20266
  echo $ECHO_N "(cached) $ECHO_C" >&6
20267
else
20268
  cat >conftest.make <<\_ACEOF
20269
SHELL = /bin/sh
20270
all:
20271
        @echo '@@@%%%=$(MAKE)=@@@%%%'
20272
_ACEOF
20273
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20274
case `${MAKE-make} -f conftest.make 2>/dev/null` in
20275
  *@@@%%%=?*=@@@%%%*)
20276
    eval ac_cv_prog_make_${ac_make}_set=yes;;
20277
  *)
20278
    eval ac_cv_prog_make_${ac_make}_set=no;;
20279
esac
20280
rm -f conftest.make
20281
fi
20282
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20283
  { echo "$as_me:$LINENO: result: yes" >&5
20284
echo "${ECHO_T}yes" >&6; }
20285
  SET_MAKE=
20286
else
20287
  { echo "$as_me:$LINENO: result: no" >&5
20288
echo "${ECHO_T}no" >&6; }
20289
  SET_MAKE="MAKE=${MAKE-make}"
20290
fi
20291
 
20292
 
20293
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
20294
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
20295
 
20296
if test $ac_cv_c_compiler_gnu = yes; then
20297
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20298
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20299
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20300
  echo $ECHO_N "(cached) $ECHO_C" >&6
20301
else
20302
    ac_pattern="Autoconf.*'x'"
20303
  cat >conftest.$ac_ext <<_ACEOF
20304
/* confdefs.h.  */
20305
_ACEOF
20306
cat confdefs.h >>conftest.$ac_ext
20307
cat >>conftest.$ac_ext <<_ACEOF
20308
/* end confdefs.h.  */
20309
#include 
20310
Autoconf TIOCGETP
20311
_ACEOF
20312
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20313
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20314
  ac_cv_prog_gcc_traditional=yes
20315
else
20316
  ac_cv_prog_gcc_traditional=no
20317
fi
20318
rm -f conftest*
20319
 
20320
 
20321
  if test $ac_cv_prog_gcc_traditional = no; then
20322
    cat >conftest.$ac_ext <<_ACEOF
20323
/* confdefs.h.  */
20324
_ACEOF
20325
cat confdefs.h >>conftest.$ac_ext
20326
cat >>conftest.$ac_ext <<_ACEOF
20327
/* end confdefs.h.  */
20328
#include 
20329
Autoconf TCGETA
20330
_ACEOF
20331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20332
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20333
  ac_cv_prog_gcc_traditional=yes
20334
fi
20335
rm -f conftest*
20336
 
20337
  fi
20338
fi
20339
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20340
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20341
  if test $ac_cv_prog_gcc_traditional = yes; then
20342
    CC="$CC -traditional"
20343
  fi
20344
fi
20345
 
20346
# Find a good install program.  We prefer a C program (faster),
20347
# so one script is as good as another.  But avoid the broken or
20348
# incompatible versions:
20349
# SysV /etc/install, /usr/sbin/install
20350
# SunOS /usr/etc/install
20351
# IRIX /sbin/install
20352
# AIX /bin/install
20353
# AmigaOS /C/install, which installs bootblocks on floppy discs
20354
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20355
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20356
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20357
# OS/2's system install, which has a completely different semantic
20358
# ./install, which can be erroneously created by make from ./install.sh.
20359
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20360
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20361
if test -z "$INSTALL"; then
20362
if test "${ac_cv_path_install+set}" = set; then
20363
  echo $ECHO_N "(cached) $ECHO_C" >&6
20364
else
20365
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20366
for as_dir in $PATH
20367
do
20368
  IFS=$as_save_IFS
20369
  test -z "$as_dir" && as_dir=.
20370
  # Account for people who put trailing slashes in PATH elements.
20371
case $as_dir/ in
20372
  ./ | .// | /cC/* | \
20373
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20374
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20375
  /usr/ucb/* ) ;;
20376
  *)
20377
    # OSF1 and SCO ODT 3.0 have their own names for install.
20378
    # Don't use installbsd from OSF since it installs stuff as root
20379
    # by default.
20380
    for ac_prog in ginstall scoinst install; do
20381
      for ac_exec_ext in '' $ac_executable_extensions; do
20382
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20383
          if test $ac_prog = install &&
20384
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20385
            # AIX install.  It has an incompatible calling convention.
20386
            :
20387
          elif test $ac_prog = install &&
20388
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20389
            # program-specific install script used by HP pwplus--don't use.
20390
            :
20391
          else
20392
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20393
            break 3
20394
          fi
20395
        fi
20396
      done
20397
    done
20398
    ;;
20399
esac
20400
done
20401
IFS=$as_save_IFS
20402
 
20403
 
20404
fi
20405
  if test "${ac_cv_path_install+set}" = set; then
20406
    INSTALL=$ac_cv_path_install
20407
  else
20408
    # As a last resort, use the slow shell script.  Don't cache a
20409
    # value for INSTALL within a source directory, because that will
20410
    # break other packages using the cache if that directory is
20411
    # removed, or if the value is a relative name.
20412
    INSTALL=$ac_install_sh
20413
  fi
20414
fi
20415
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20416
echo "${ECHO_T}$INSTALL" >&6; }
20417
 
20418
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20419
# It thinks the first close brace ends the variable substitution.
20420
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20421
 
20422
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20423
 
20424
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20425
 
20426
# Extract the first word of "ar", so it can be a program name with args.
20427
set dummy ar; ac_word=$2
20428
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20429
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20430
if test "${ac_cv_prog_AR+set}" = set; then
20431
  echo $ECHO_N "(cached) $ECHO_C" >&6
20432
else
20433
  if test -n "$AR"; then
20434
  ac_cv_prog_AR="$AR" # Let the user override the test.
20435
else
20436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20437
for as_dir in $PATH
20438
do
20439
  IFS=$as_save_IFS
20440
  test -z "$as_dir" && as_dir=.
20441
  for ac_exec_ext in '' $ac_executable_extensions; do
20442
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20443
    ac_cv_prog_AR="ar"
20444
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20445
    break 2
20446
  fi
20447
done
20448
done
20449
IFS=$as_save_IFS
20450
 
20451
fi
20452
fi
20453
AR=$ac_cv_prog_AR
20454
if test -n "$AR"; then
20455
  { echo "$as_me:$LINENO: result: $AR" >&5
20456
echo "${ECHO_T}$AR" >&6; }
20457
else
20458
  { echo "$as_me:$LINENO: result: no" >&5
20459
echo "${ECHO_T}no" >&6; }
20460
fi
20461
 
20462
 
20463 1748 jeremybenn
 
20464
# This is GNU compliant source and uses GNU libraries
20465
 
20466
cat >>confdefs.h <<\_ACEOF
20467
#define _GNU_SOURCE 1
20468
_ACEOF
20469
 
20470
 
20471 1745 jeremybenn
# Set default for ARFLAGS, since autoconf does not have a macro for it.
20472
# This allows people to set it when running configure or make
20473
test -n "$ARFLAGS" || ARFLAGS="cr"
20474
 
20475 7 jrydberg
MAKE_SHELL=/bin/sh
20476
 
20477 1576 phoenix
 
20478
 
20479 1743 jeremybenn
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20480
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20481 1242 hpanther
if test "${ac_cv_type_signal+set}" = set; then
20482
  echo $ECHO_N "(cached) $ECHO_C" >&6
20483 7 jrydberg
else
20484 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
20485 1576 phoenix
/* confdefs.h.  */
20486
_ACEOF
20487
cat confdefs.h >>conftest.$ac_ext
20488
cat >>conftest.$ac_ext <<_ACEOF
20489
/* end confdefs.h.  */
20490 7 jrydberg
#include 
20491
#include 
20492
 
20493 1242 hpanther
int
20494
main ()
20495
{
20496 1743 jeremybenn
return *(signal (0, 0)) (0) == 1;
20497 1242 hpanther
  ;
20498
  return 0;
20499
}
20500
_ACEOF
20501
rm -f conftest.$ac_objext
20502 1743 jeremybenn
if { (ac_try="$ac_compile"
20503
case "(($ac_try" in
20504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505
  *) ac_try_echo=$ac_try;;
20506
esac
20507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508
  (eval "$ac_compile") 2>conftest.er1
20509 1242 hpanther
  ac_status=$?
20510 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
20511
  rm -f conftest.er1
20512
  cat conftest.err >&5
20513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 1743 jeremybenn
  (exit $ac_status); } && {
20515
         test -z "$ac_c_werror_flag" ||
20516
         test ! -s conftest.err
20517
       } && test -s conftest.$ac_objext; then
20518
  ac_cv_type_signal=int
20519 7 jrydberg
else
20520 1242 hpanther
  echo "$as_me: failed program was:" >&5
20521 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
20522
 
20523 1743 jeremybenn
        ac_cv_type_signal=void
20524 7 jrydberg
fi
20525 1743 jeremybenn
 
20526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527 7 jrydberg
fi
20528 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20529
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20530 7 jrydberg
 
20531 1576 phoenix
cat >>confdefs.h <<_ACEOF
20532 7 jrydberg
#define RETSIGTYPE $ac_cv_type_signal
20533 1576 phoenix
_ACEOF
20534 7 jrydberg
 
20535 1576 phoenix
 
20536 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20537
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20538 1242 hpanther
if test "${ac_cv_header_stat_broken+set}" = set; then
20539
  echo $ECHO_N "(cached) $ECHO_C" >&6
20540 7 jrydberg
else
20541 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
20542 1576 phoenix
/* confdefs.h.  */
20543
_ACEOF
20544
cat confdefs.h >>conftest.$ac_ext
20545
cat >>conftest.$ac_ext <<_ACEOF
20546
/* end confdefs.h.  */
20547 7 jrydberg
#include 
20548
#include 
20549
 
20550 1743 jeremybenn
#if defined S_ISBLK && defined S_IFDIR
20551
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20552 7 jrydberg
#endif
20553
 
20554 1743 jeremybenn
#if defined S_ISBLK && defined S_IFCHR
20555
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20556 7 jrydberg
#endif
20557
 
20558 1743 jeremybenn
#if defined S_ISLNK && defined S_IFREG
20559
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20560 7 jrydberg
#endif
20561
 
20562 1743 jeremybenn
#if defined S_ISSOCK && defined S_IFREG
20563
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20564 7 jrydberg
#endif
20565
 
20566 1242 hpanther
_ACEOF
20567 1743 jeremybenn
rm -f conftest.$ac_objext
20568
if { (ac_try="$ac_compile"
20569
case "(($ac_try" in
20570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571
  *) ac_try_echo=$ac_try;;
20572
esac
20573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574
  (eval "$ac_compile") 2>conftest.er1
20575
  ac_status=$?
20576
  grep -v '^ *+' conftest.er1 >conftest.err
20577
  rm -f conftest.er1
20578
  cat conftest.err >&5
20579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580
  (exit $ac_status); } && {
20581
         test -z "$ac_c_werror_flag" ||
20582
         test ! -s conftest.err
20583
       } && test -s conftest.$ac_objext; then
20584
  ac_cv_header_stat_broken=no
20585 7 jrydberg
else
20586 1743 jeremybenn
  echo "$as_me: failed program was:" >&5
20587
sed 's/^/| /' conftest.$ac_ext >&5
20588
 
20589
        ac_cv_header_stat_broken=yes
20590 7 jrydberg
fi
20591
 
20592 1743 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 7 jrydberg
fi
20594 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20595
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20596 1242 hpanther
if test $ac_cv_header_stat_broken = yes; then
20597 7 jrydberg
 
20598 1576 phoenix
cat >>confdefs.h <<\_ACEOF
20599 7 jrydberg
#define STAT_MACROS_BROKEN 1
20600 1576 phoenix
_ACEOF
20601 7 jrydberg
 
20602
fi
20603
 
20604 1576 phoenix
 
20605
 
20606
 
20607
 
20608
 
20609 7 jrydberg
ac_header_dirent=no
20610 1242 hpanther
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20611
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20612 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20613
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20614
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20615 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
20616 7 jrydberg
else
20617 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
20618 1576 phoenix
/* confdefs.h.  */
20619
_ACEOF
20620
cat confdefs.h >>conftest.$ac_ext
20621
cat >>conftest.$ac_ext <<_ACEOF
20622
/* end confdefs.h.  */
20623 7 jrydberg
#include 
20624
#include <$ac_hdr>
20625 1242 hpanther
 
20626
int
20627
main ()
20628
{
20629
if ((DIR *) 0)
20630
return 0;
20631
  ;
20632
  return 0;
20633
}
20634
_ACEOF
20635
rm -f conftest.$ac_objext
20636 1743 jeremybenn
if { (ac_try="$ac_compile"
20637
case "(($ac_try" in
20638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639
  *) ac_try_echo=$ac_try;;
20640
esac
20641
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642
  (eval "$ac_compile") 2>conftest.er1
20643 1242 hpanther
  ac_status=$?
20644 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
20645
  rm -f conftest.er1
20646
  cat conftest.err >&5
20647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 1743 jeremybenn
  (exit $ac_status); } && {
20649
         test -z "$ac_c_werror_flag" ||
20650
         test ! -s conftest.err
20651
       } && test -s conftest.$ac_objext; then
20652 1242 hpanther
  eval "$as_ac_Header=yes"
20653 7 jrydberg
else
20654 1242 hpanther
  echo "$as_me: failed program was:" >&5
20655 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
20656
 
20657 1743 jeremybenn
        eval "$as_ac_Header=no"
20658 7 jrydberg
fi
20659 1743 jeremybenn
 
20660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 7 jrydberg
fi
20662 1743 jeremybenn
ac_res=`eval echo '${'$as_ac_Header'}'`
20663
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20664
echo "${ECHO_T}$ac_res" >&6; }
20665 1242 hpanther
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20666 1576 phoenix
  cat >>confdefs.h <<_ACEOF
20667 1242 hpanther
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20668 1576 phoenix
_ACEOF
20669 1242 hpanther
 
20670
ac_header_dirent=$ac_hdr; break
20671 7 jrydberg
fi
20672 1242 hpanther
 
20673 7 jrydberg
done
20674
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20675
if test $ac_header_dirent = dirent.h; then
20676 1743 jeremybenn
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20677
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20678 1576 phoenix
if test "${ac_cv_search_opendir+set}" = set; then
20679 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
20680 7 jrydberg
else
20681 1576 phoenix
  ac_func_search_save_LIBS=$LIBS
20682 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
20683 1576 phoenix
/* confdefs.h.  */
20684
_ACEOF
20685
cat confdefs.h >>conftest.$ac_ext
20686
cat >>conftest.$ac_ext <<_ACEOF
20687
/* end confdefs.h.  */
20688 1242 hpanther
 
20689 1743 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20690
   Use char because int might match the return type of a GCC
20691
   builtin and then its argument prototype would still apply.  */
20692 1242 hpanther
#ifdef __cplusplus
20693
extern "C"
20694
#endif
20695
char opendir ();
20696
int
20697
main ()
20698
{
20699 1743 jeremybenn
return opendir ();
20700 1242 hpanther
  ;
20701
  return 0;
20702
}
20703
_ACEOF
20704 1743 jeremybenn
for ac_lib in '' dir; do
20705
  if test -z "$ac_lib"; then
20706
    ac_res="none required"
20707
  else
20708
    ac_res=-l$ac_lib
20709
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20710
  fi
20711
  rm -f conftest.$ac_objext conftest$ac_exeext
20712
if { (ac_try="$ac_link"
20713
case "(($ac_try" in
20714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715
  *) ac_try_echo=$ac_try;;
20716
esac
20717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718
  (eval "$ac_link") 2>conftest.er1
20719 1242 hpanther
  ac_status=$?
20720 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
20721
  rm -f conftest.er1
20722
  cat conftest.err >&5
20723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 1743 jeremybenn
  (exit $ac_status); } && {
20725
         test -z "$ac_c_werror_flag" ||
20726
         test ! -s conftest.err
20727
       } && test -s conftest$ac_exeext &&
20728
       $as_test_x conftest$ac_exeext; then
20729
  ac_cv_search_opendir=$ac_res
20730 1242 hpanther
else
20731
  echo "$as_me: failed program was:" >&5
20732 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
20733
 
20734 1743 jeremybenn
 
20735 7 jrydberg
fi
20736 1576 phoenix
 
20737 1743 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20738
      conftest$ac_exeext
20739
  if test "${ac_cv_search_opendir+set}" = set; then
20740
  break
20741
fi
20742
done
20743
if test "${ac_cv_search_opendir+set}" = set; then
20744
  :
20745 1576 phoenix
else
20746 1743 jeremybenn
  ac_cv_search_opendir=no
20747 1249 lampret
fi
20748 1743 jeremybenn
rm conftest.$ac_ext
20749 1576 phoenix
LIBS=$ac_func_search_save_LIBS
20750
fi
20751 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20752
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20753
ac_res=$ac_cv_search_opendir
20754
if test "$ac_res" != no; then
20755
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20756 7 jrydberg
 
20757 1576 phoenix
fi
20758
 
20759 1249 lampret
else
20760 1743 jeremybenn
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20761
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20762 1576 phoenix
if test "${ac_cv_search_opendir+set}" = set; then
20763 1249 lampret
  echo $ECHO_N "(cached) $ECHO_C" >&6
20764
else
20765 1576 phoenix
  ac_func_search_save_LIBS=$LIBS
20766 1249 lampret
cat >conftest.$ac_ext <<_ACEOF
20767 1576 phoenix
/* confdefs.h.  */
20768
_ACEOF
20769
cat confdefs.h >>conftest.$ac_ext
20770
cat >>conftest.$ac_ext <<_ACEOF
20771
/* end confdefs.h.  */
20772 1249 lampret
 
20773 1743 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20774
   Use char because int might match the return type of a GCC
20775
   builtin and then its argument prototype would still apply.  */
20776 1242 hpanther
#ifdef __cplusplus
20777
extern "C"
20778
#endif
20779
char opendir ();
20780
int
20781
main ()
20782
{
20783 1743 jeremybenn
return opendir ();
20784 1242 hpanther
  ;
20785
  return 0;
20786
}
20787
_ACEOF
20788 1743 jeremybenn
for ac_lib in '' x; do
20789
  if test -z "$ac_lib"; then
20790
    ac_res="none required"
20791
  else
20792
    ac_res=-l$ac_lib
20793
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20794
  fi
20795
  rm -f conftest.$ac_objext conftest$ac_exeext
20796
if { (ac_try="$ac_link"
20797
case "(($ac_try" in
20798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799
  *) ac_try_echo=$ac_try;;
20800
esac
20801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802
  (eval "$ac_link") 2>conftest.er1
20803 1242 hpanther
  ac_status=$?
20804 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
20805
  rm -f conftest.er1
20806
  cat conftest.err >&5
20807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 1743 jeremybenn
  (exit $ac_status); } && {
20809
         test -z "$ac_c_werror_flag" ||
20810
         test ! -s conftest.err
20811
       } && test -s conftest$ac_exeext &&
20812
       $as_test_x conftest$ac_exeext; then
20813
  ac_cv_search_opendir=$ac_res
20814 7 jrydberg
else
20815 1242 hpanther
  echo "$as_me: failed program was:" >&5
20816 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
20817 7 jrydberg
 
20818 1743 jeremybenn
 
20819 1242 hpanther
fi
20820
 
20821 1743 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20822
      conftest$ac_exeext
20823
  if test "${ac_cv_search_opendir+set}" = set; then
20824
  break
20825
fi
20826
done
20827
if test "${ac_cv_search_opendir+set}" = set; then
20828
  :
20829 7 jrydberg
else
20830 1743 jeremybenn
  ac_cv_search_opendir=no
20831 7 jrydberg
fi
20832 1743 jeremybenn
rm conftest.$ac_ext
20833 1576 phoenix
LIBS=$ac_func_search_save_LIBS
20834
fi
20835 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20836
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20837
ac_res=$ac_cv_search_opendir
20838
if test "$ac_res" != no; then
20839
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20840 7 jrydberg
 
20841
fi
20842
 
20843 1576 phoenix
fi
20844
 
20845
 
20846
 
20847
 
20848
 
20849
 
20850
 
20851
 
20852
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
20853 7 jrydberg
do
20854 1242 hpanther
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20855 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20856
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20857
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20858 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
20859 7 jrydberg
else
20860 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
20861 1576 phoenix
/* confdefs.h.  */
20862
_ACEOF
20863
cat confdefs.h >>conftest.$ac_ext
20864
cat >>conftest.$ac_ext <<_ACEOF
20865
/* end confdefs.h.  */
20866
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20867
   For example, HP-UX 11i  declares gettimeofday.  */
20868
#define $ac_func innocuous_$ac_func
20869
 
20870 7 jrydberg
/* System header to define __stub macros and hopefully few prototypes,
20871 1576 phoenix
    which can conflict with char $ac_func (); below.
20872
    Prefer  to  if __STDC__ is defined, since
20873
     exists even on freestanding compilers.  */
20874
 
20875
#ifdef __STDC__
20876
# include 
20877
#else
20878
# include 
20879
#endif
20880
 
20881
#undef $ac_func
20882
 
20883 1743 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20884
   Use char because int might match the return type of a GCC
20885
   builtin and then its argument prototype would still apply.  */
20886 1242 hpanther
#ifdef __cplusplus
20887
extern "C"
20888
#endif
20889
char $ac_func ();
20890
/* The GNU C library defines this for functions which it implements
20891
    to always fail with ENOSYS.  Some functions are actually named
20892
    something starting with __ and the normal name is an alias.  */
20893 1743 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20894 1242 hpanther
choke me
20895
#endif
20896 7 jrydberg
 
20897 1576 phoenix
int
20898
main ()
20899
{
20900 1743 jeremybenn
return $ac_func ();
20901 1242 hpanther
  ;
20902
  return 0;
20903
}
20904
_ACEOF
20905
rm -f conftest.$ac_objext conftest$ac_exeext
20906 1743 jeremybenn
if { (ac_try="$ac_link"
20907
case "(($ac_try" in
20908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909
  *) ac_try_echo=$ac_try;;
20910
esac
20911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912
  (eval "$ac_link") 2>conftest.er1
20913 1242 hpanther
  ac_status=$?
20914 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
20915
  rm -f conftest.er1
20916
  cat conftest.err >&5
20917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 1743 jeremybenn
  (exit $ac_status); } && {
20919
         test -z "$ac_c_werror_flag" ||
20920
         test ! -s conftest.err
20921
       } && test -s conftest$ac_exeext &&
20922
       $as_test_x conftest$ac_exeext; then
20923 1242 hpanther
  eval "$as_ac_var=yes"
20924
else
20925
  echo "$as_me: failed program was:" >&5
20926 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
20927
 
20928 1743 jeremybenn
        eval "$as_ac_var=no"
20929 1242 hpanther
fi
20930 1743 jeremybenn
 
20931
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20932 1576 phoenix
      conftest$ac_exeext conftest.$ac_ext
20933 1242 hpanther
fi
20934 1743 jeremybenn
ac_res=`eval echo '${'$as_ac_var'}'`
20935
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20936
echo "${ECHO_T}$ac_res" >&6; }
20937 1242 hpanther
if test `eval echo '${'$as_ac_var'}'` = yes; then
20938 1576 phoenix
  cat >>confdefs.h <<_ACEOF
20939 1242 hpanther
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20940 1576 phoenix
_ACEOF
20941 1242 hpanther
 
20942
fi
20943
done
20944
 
20945
 
20946
 
20947
 
20948
 
20949
 
20950 1576 phoenix
 
20951
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
20952
do
20953
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20954 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20955
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20956
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20957 1576 phoenix
  echo $ECHO_N "(cached) $ECHO_C" >&6
20958
else
20959 1249 lampret
  cat >conftest.$ac_ext <<_ACEOF
20960 1576 phoenix
/* confdefs.h.  */
20961 1249 lampret
_ACEOF
20962 1576 phoenix
cat confdefs.h >>conftest.$ac_ext
20963
cat >>conftest.$ac_ext <<_ACEOF
20964
/* end confdefs.h.  */
20965
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20966
   For example, HP-UX 11i  declares gettimeofday.  */
20967
#define $ac_func innocuous_$ac_func
20968 1249 lampret
 
20969 1576 phoenix
/* System header to define __stub macros and hopefully few prototypes,
20970
    which can conflict with char $ac_func (); below.
20971
    Prefer  to  if __STDC__ is defined, since
20972
     exists even on freestanding compilers.  */
20973 1249 lampret
 
20974 1576 phoenix
#ifdef __STDC__
20975
# include 
20976 1242 hpanther
#else
20977 1576 phoenix
# include 
20978 1242 hpanther
#endif
20979 7 jrydberg
 
20980 1576 phoenix
#undef $ac_func
20981
 
20982 1743 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20983
   Use char because int might match the return type of a GCC
20984
   builtin and then its argument prototype would still apply.  */
20985 1576 phoenix
#ifdef __cplusplus
20986
extern "C"
20987
#endif
20988
char $ac_func ();
20989
/* The GNU C library defines this for functions which it implements
20990
    to always fail with ENOSYS.  Some functions are actually named
20991
    something starting with __ and the normal name is an alias.  */
20992 1743 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20993 1576 phoenix
choke me
20994
#endif
20995
 
20996 1242 hpanther
int
20997
main ()
20998
{
20999 1743 jeremybenn
return $ac_func ();
21000 1576 phoenix
  ;
21001
  return 0;
21002 1242 hpanther
}
21003
_ACEOF
21004 1576 phoenix
rm -f conftest.$ac_objext conftest$ac_exeext
21005 1743 jeremybenn
if { (ac_try="$ac_link"
21006
case "(($ac_try" in
21007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008
  *) ac_try_echo=$ac_try;;
21009
esac
21010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011
  (eval "$ac_link") 2>conftest.er1
21012 1242 hpanther
  ac_status=$?
21013 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
21014
  rm -f conftest.er1
21015
  cat conftest.err >&5
21016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 1743 jeremybenn
  (exit $ac_status); } && {
21018
         test -z "$ac_c_werror_flag" ||
21019
         test ! -s conftest.err
21020
       } && test -s conftest$ac_exeext &&
21021
       $as_test_x conftest$ac_exeext; then
21022 1576 phoenix
  eval "$as_ac_var=yes"
21023 7 jrydberg
else
21024 1242 hpanther
  echo "$as_me: failed program was:" >&5
21025 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
21026
 
21027 1743 jeremybenn
        eval "$as_ac_var=no"
21028 7 jrydberg
fi
21029 1743 jeremybenn
 
21030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21031 1576 phoenix
      conftest$ac_exeext conftest.$ac_ext
21032 7 jrydberg
fi
21033 1743 jeremybenn
ac_res=`eval echo '${'$as_ac_var'}'`
21034
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21035
echo "${ECHO_T}$ac_res" >&6; }
21036 1576 phoenix
if test `eval echo '${'$as_ac_var'}'` = yes; then
21037
  cat >>confdefs.h <<_ACEOF
21038
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21039
_ACEOF
21040 7 jrydberg
 
21041
fi
21042
done
21043
 
21044 1748 jeremybenn
 
21045
for ac_func in basename
21046
do
21047
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21048
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21049
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21050
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21051
  echo $ECHO_N "(cached) $ECHO_C" >&6
21052
else
21053
  cat >conftest.$ac_ext <<_ACEOF
21054
/* confdefs.h.  */
21055
_ACEOF
21056
cat confdefs.h >>conftest.$ac_ext
21057
cat >>conftest.$ac_ext <<_ACEOF
21058
/* end confdefs.h.  */
21059
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21060
   For example, HP-UX 11i  declares gettimeofday.  */
21061
#define $ac_func innocuous_$ac_func
21062
 
21063
/* System header to define __stub macros and hopefully few prototypes,
21064
    which can conflict with char $ac_func (); below.
21065
    Prefer  to  if __STDC__ is defined, since
21066
     exists even on freestanding compilers.  */
21067
 
21068
#ifdef __STDC__
21069
# include 
21070
#else
21071
# include 
21072
#endif
21073
 
21074
#undef $ac_func
21075
 
21076
/* Override any GCC internal prototype to avoid an error.
21077
   Use char because int might match the return type of a GCC
21078
   builtin and then its argument prototype would still apply.  */
21079
#ifdef __cplusplus
21080
extern "C"
21081
#endif
21082
char $ac_func ();
21083
/* The GNU C library defines this for functions which it implements
21084
    to always fail with ENOSYS.  Some functions are actually named
21085
    something starting with __ and the normal name is an alias.  */
21086
#if defined __stub_$ac_func || defined __stub___$ac_func
21087
choke me
21088
#endif
21089
 
21090
int
21091
main ()
21092
{
21093
return $ac_func ();
21094
  ;
21095
  return 0;
21096
}
21097
_ACEOF
21098
rm -f conftest.$ac_objext conftest$ac_exeext
21099
if { (ac_try="$ac_link"
21100
case "(($ac_try" in
21101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102
  *) ac_try_echo=$ac_try;;
21103
esac
21104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105
  (eval "$ac_link") 2>conftest.er1
21106
  ac_status=$?
21107
  grep -v '^ *+' conftest.er1 >conftest.err
21108
  rm -f conftest.er1
21109
  cat conftest.err >&5
21110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111
  (exit $ac_status); } && {
21112
         test -z "$ac_c_werror_flag" ||
21113
         test ! -s conftest.err
21114
       } && test -s conftest$ac_exeext &&
21115
       $as_test_x conftest$ac_exeext; then
21116
  eval "$as_ac_var=yes"
21117
else
21118
  echo "$as_me: failed program was:" >&5
21119
sed 's/^/| /' conftest.$ac_ext >&5
21120
 
21121
        eval "$as_ac_var=no"
21122
fi
21123
 
21124
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21125
      conftest$ac_exeext conftest.$ac_ext
21126
fi
21127
ac_res=`eval echo '${'$as_ac_var'}'`
21128
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21129
echo "${ECHO_T}$ac_res" >&6; }
21130
if test `eval echo '${'$as_ac_var'}'` = yes; then
21131
  cat >>confdefs.h <<_ACEOF
21132
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21133
_ACEOF
21134
 
21135
fi
21136
done
21137
 
21138 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
21139
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
21140 1242 hpanther
if test "${ac_cv_func_strcoll_works+set}" = set; then
21141
  echo $ECHO_N "(cached) $ECHO_C" >&6
21142 7 jrydberg
else
21143
  if test "$cross_compiling" = yes; then
21144
  ac_cv_func_strcoll_works=no
21145
else
21146 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
21147 1576 phoenix
/* confdefs.h.  */
21148
_ACEOF
21149
cat confdefs.h >>conftest.$ac_ext
21150
cat >>conftest.$ac_ext <<_ACEOF
21151
/* end confdefs.h.  */
21152 1242 hpanther
$ac_includes_default
21153
int
21154 7 jrydberg
main ()
21155
{
21156 1743 jeremybenn
return (strcoll ("abc", "def") >= 0 ||
21157 1242 hpanther
         strcoll ("ABC", "DEF") >= 0 ||
21158
         strcoll ("123", "456") >= 0)
21159
  ;
21160
  return 0;
21161 7 jrydberg
}
21162 1242 hpanther
_ACEOF
21163
rm -f conftest$ac_exeext
21164 1743 jeremybenn
if { (ac_try="$ac_link"
21165
case "(($ac_try" in
21166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167
  *) ac_try_echo=$ac_try;;
21168
esac
21169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170
  (eval "$ac_link") 2>&5
21171 1242 hpanther
  ac_status=$?
21172 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 1242 hpanther
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21174 1743 jeremybenn
  { (case "(($ac_try" in
21175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176
  *) ac_try_echo=$ac_try;;
21177
esac
21178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179
  (eval "$ac_try") 2>&5
21180 1242 hpanther
  ac_status=$?
21181 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 1242 hpanther
  (exit $ac_status); }; }; then
21183 7 jrydberg
  ac_cv_func_strcoll_works=yes
21184
else
21185 1242 hpanther
  echo "$as_me: program exited with status $ac_status" >&5
21186
echo "$as_me: failed program was:" >&5
21187 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
21188
 
21189
( exit $ac_status )
21190 1242 hpanther
ac_cv_func_strcoll_works=no
21191 7 jrydberg
fi
21192 1743 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21193 7 jrydberg
fi
21194 1743 jeremybenn
 
21195
 
21196 7 jrydberg
fi
21197 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
21198
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
21199 1242 hpanther
if test $ac_cv_func_strcoll_works = yes; then
21200 7 jrydberg
 
21201 1576 phoenix
cat >>confdefs.h <<\_ACEOF
21202 7 jrydberg
#define HAVE_STRCOLL 1
21203 1576 phoenix
_ACEOF
21204 7 jrydberg
 
21205
fi
21206
 
21207 1748 jeremybenn
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21208
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21209
if test "${ac_cv_header_stdc+set}" = set; then
21210
  echo $ECHO_N "(cached) $ECHO_C" >&6
21211
else
21212
  cat >conftest.$ac_ext <<_ACEOF
21213
/* confdefs.h.  */
21214
_ACEOF
21215
cat confdefs.h >>conftest.$ac_ext
21216
cat >>conftest.$ac_ext <<_ACEOF
21217
/* end confdefs.h.  */
21218
#include 
21219
#include 
21220
#include 
21221
#include 
21222 1576 phoenix
 
21223 1748 jeremybenn
int
21224
main ()
21225
{
21226 1576 phoenix
 
21227 1748 jeremybenn
  ;
21228
  return 0;
21229
}
21230
_ACEOF
21231
rm -f conftest.$ac_objext
21232
if { (ac_try="$ac_compile"
21233
case "(($ac_try" in
21234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235
  *) ac_try_echo=$ac_try;;
21236
esac
21237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238
  (eval "$ac_compile") 2>conftest.er1
21239
  ac_status=$?
21240
  grep -v '^ *+' conftest.er1 >conftest.err
21241
  rm -f conftest.er1
21242
  cat conftest.err >&5
21243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244
  (exit $ac_status); } && {
21245
         test -z "$ac_c_werror_flag" ||
21246
         test ! -s conftest.err
21247
       } && test -s conftest.$ac_objext; then
21248
  ac_cv_header_stdc=yes
21249
else
21250
  echo "$as_me: failed program was:" >&5
21251
sed 's/^/| /' conftest.$ac_ext >&5
21252 1576 phoenix
 
21253 1748 jeremybenn
        ac_cv_header_stdc=no
21254
fi
21255 1576 phoenix
 
21256 1748 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 1576 phoenix
 
21258 1748 jeremybenn
if test $ac_cv_header_stdc = yes; then
21259
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21260
  cat >conftest.$ac_ext <<_ACEOF
21261
/* confdefs.h.  */
21262
_ACEOF
21263
cat confdefs.h >>conftest.$ac_ext
21264
cat >>conftest.$ac_ext <<_ACEOF
21265
/* end confdefs.h.  */
21266
#include 
21267 1576 phoenix
 
21268 1748 jeremybenn
_ACEOF
21269
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21270
  $EGREP "memchr" >/dev/null 2>&1; then
21271
  :
21272
else
21273
  ac_cv_header_stdc=no
21274
fi
21275
rm -f conftest*
21276 1576 phoenix
 
21277 1748 jeremybenn
fi
21278 1576 phoenix
 
21279 1748 jeremybenn
if test $ac_cv_header_stdc = yes; then
21280
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21281
  cat >conftest.$ac_ext <<_ACEOF
21282
/* confdefs.h.  */
21283
_ACEOF
21284
cat confdefs.h >>conftest.$ac_ext
21285
cat >>conftest.$ac_ext <<_ACEOF
21286
/* end confdefs.h.  */
21287
#include 
21288 1576 phoenix
 
21289 1748 jeremybenn
_ACEOF
21290
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21291
  $EGREP "free" >/dev/null 2>&1; then
21292
  :
21293
else
21294
  ac_cv_header_stdc=no
21295
fi
21296
rm -f conftest*
21297 1576 phoenix
 
21298 1748 jeremybenn
fi
21299 1576 phoenix
 
21300 1748 jeremybenn
if test $ac_cv_header_stdc = yes; then
21301
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21302
  if test "$cross_compiling" = yes; then
21303
  :
21304
else
21305
  cat >conftest.$ac_ext <<_ACEOF
21306
/* confdefs.h.  */
21307
_ACEOF
21308
cat confdefs.h >>conftest.$ac_ext
21309
cat >>conftest.$ac_ext <<_ACEOF
21310
/* end confdefs.h.  */
21311
#include 
21312
#include 
21313
#if ((' ' & 0x0FF) == 0x020)
21314
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21315
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21316
#else
21317
# define ISLOWER(c) \
21318
                   (('a' <= (c) && (c) <= 'i') \
21319
                     || ('j' <= (c) && (c) <= 'r') \
21320
                     || ('s' <= (c) && (c) <= 'z'))
21321
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21322
#endif
21323 1576 phoenix
 
21324 1748 jeremybenn
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21325
int
21326
main ()
21327
{
21328
  int i;
21329
  for (i = 0; i < 256; i++)
21330
    if (XOR (islower (i), ISLOWER (i))
21331
        || toupper (i) != TOUPPER (i))
21332
      return 2;
21333
  return 0;
21334
}
21335
_ACEOF
21336
rm -f conftest$ac_exeext
21337
if { (ac_try="$ac_link"
21338
case "(($ac_try" in
21339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340
  *) ac_try_echo=$ac_try;;
21341
esac
21342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21343
  (eval "$ac_link") 2>&5
21344
  ac_status=$?
21345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21347
  { (case "(($ac_try" in
21348
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349
  *) ac_try_echo=$ac_try;;
21350
esac
21351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352
  (eval "$ac_try") 2>&5
21353
  ac_status=$?
21354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355
  (exit $ac_status); }; }; then
21356
  :
21357
else
21358
  echo "$as_me: program exited with status $ac_status" >&5
21359
echo "$as_me: failed program was:" >&5
21360
sed 's/^/| /' conftest.$ac_ext >&5
21361 1576 phoenix
 
21362 1748 jeremybenn
( exit $ac_status )
21363
ac_cv_header_stdc=no
21364
fi
21365
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21366
fi
21367 1576 phoenix
 
21368
 
21369 1748 jeremybenn
fi
21370
fi
21371
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21372
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21373
if test $ac_cv_header_stdc = yes; then
21374 1576 phoenix
 
21375 1748 jeremybenn
cat >>confdefs.h <<\_ACEOF
21376
#define STDC_HEADERS 1
21377
_ACEOF
21378 1576 phoenix
 
21379 1748 jeremybenn
fi
21380 1576 phoenix
 
21381
 
21382 1748 jeremybenn
 
21383
 
21384
 
21385
 
21386
 
21387
 
21388
 
21389
 
21390
 
21391
 
21392
 
21393
 
21394
 
21395
 
21396
 
21397
 
21398
 
21399
 
21400
 
21401
 
21402
 
21403
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
21404 1242 hpanther
                sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
21405 1748 jeremybenn
                termcap.h termios.h termio.h sys/file.h locale.h getopt.h \
21406
                net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
21407 7 jrydberg
do
21408 1242 hpanther
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21409 1743 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21410
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21411
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21412
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21413 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
21414 1576 phoenix
fi
21415 1743 jeremybenn
ac_res=`eval echo '${'$as_ac_Header'}'`
21416
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21417
echo "${ECHO_T}$ac_res" >&6; }
21418 7 jrydberg
else
21419 1576 phoenix
  # Is the header compilable?
21420 1743 jeremybenn
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21421
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21422 1576 phoenix
cat >conftest.$ac_ext <<_ACEOF
21423
/* confdefs.h.  */
21424
_ACEOF
21425
cat confdefs.h >>conftest.$ac_ext
21426
cat >>conftest.$ac_ext <<_ACEOF
21427
/* end confdefs.h.  */
21428
$ac_includes_default
21429 1242 hpanther
#include <$ac_header>
21430
_ACEOF
21431 1576 phoenix
rm -f conftest.$ac_objext
21432 1743 jeremybenn
if { (ac_try="$ac_compile"
21433
case "(($ac_try" in
21434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435
  *) ac_try_echo=$ac_try;;
21436
esac
21437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438
  (eval "$ac_compile") 2>conftest.er1
21439 1576 phoenix
  ac_status=$?
21440
  grep -v '^ *+' conftest.er1 >conftest.err
21441
  rm -f conftest.er1
21442
  cat conftest.err >&5
21443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 1743 jeremybenn
  (exit $ac_status); } && {
21445
         test -z "$ac_c_werror_flag" ||
21446
         test ! -s conftest.err
21447
       } && test -s conftest.$ac_objext; then
21448 1576 phoenix
  ac_header_compiler=yes
21449
else
21450
  echo "$as_me: failed program was:" >&5
21451
sed 's/^/| /' conftest.$ac_ext >&5
21452
 
21453 1743 jeremybenn
        ac_header_compiler=no
21454 1576 phoenix
fi
21455
 
21456 1743 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21458
echo "${ECHO_T}$ac_header_compiler" >&6; }
21459
 
21460 1576 phoenix
# Is the header present?
21461 1743 jeremybenn
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21462
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21463 1576 phoenix
cat >conftest.$ac_ext <<_ACEOF
21464
/* confdefs.h.  */
21465
_ACEOF
21466
cat confdefs.h >>conftest.$ac_ext
21467
cat >>conftest.$ac_ext <<_ACEOF
21468
/* end confdefs.h.  */
21469
#include <$ac_header>
21470
_ACEOF
21471 1743 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
21472
case "(($ac_try" in
21473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474
  *) ac_try_echo=$ac_try;;
21475
esac
21476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21478 1242 hpanther
  ac_status=$?
21479 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
21480 1242 hpanther
  rm -f conftest.er1
21481
  cat conftest.err >&5
21482 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 1743 jeremybenn
  (exit $ac_status); } >/dev/null && {
21484
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21485
         test ! -s conftest.err
21486
       }; then
21487 1576 phoenix
  ac_header_preproc=yes
21488 7 jrydberg
else
21489 1242 hpanther
  echo "$as_me: failed program was:" >&5
21490 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
21491
 
21492
  ac_header_preproc=no
21493 7 jrydberg
fi
21494 1743 jeremybenn
 
21495 1242 hpanther
rm -f conftest.err conftest.$ac_ext
21496 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21497
echo "${ECHO_T}$ac_header_preproc" >&6; }
21498 1576 phoenix
 
21499
# So?  What about this header?
21500
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21501
  yes:no: )
21502
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21503
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21504
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21505
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21506
    ac_header_preproc=yes
21507
    ;;
21508
  no:yes:* )
21509
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21510
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21511
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21512
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21513
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21514
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21515
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21516
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21517
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21518
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21519
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21520
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21521 1745 jeremybenn
    ( cat <<\_ASBOX
21522
## ------------------------------------- ##
21523
## Report this to openrisc@opencores.org ##
21524
## ------------------------------------- ##
21525
_ASBOX
21526
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21527 1576 phoenix
    ;;
21528
esac
21529 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21530
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21531
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21532 1576 phoenix
  echo $ECHO_N "(cached) $ECHO_C" >&6
21533
else
21534
  eval "$as_ac_Header=\$ac_header_preproc"
21535 1242 hpanther
fi
21536 1743 jeremybenn
ac_res=`eval echo '${'$as_ac_Header'}'`
21537
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21538
echo "${ECHO_T}$ac_res" >&6; }
21539 1576 phoenix
 
21540
fi
21541 1242 hpanther
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21542 1576 phoenix
  cat >>confdefs.h <<_ACEOF
21543 1242 hpanther
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21544 1576 phoenix
_ACEOF
21545 1242 hpanther
 
21546
fi
21547 1576 phoenix
 
21548 7 jrydberg
done
21549
 
21550 1751 jeremybenn
{ echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
21551
echo $ECHO_N "checking whether I_PUSH is declared... $ECHO_C" >&6; }
21552
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
21553
  echo $ECHO_N "(cached) $ECHO_C" >&6
21554
else
21555
  cat >conftest.$ac_ext <<_ACEOF
21556
/* confdefs.h.  */
21557
_ACEOF
21558
cat confdefs.h >>conftest.$ac_ext
21559
cat >>conftest.$ac_ext <<_ACEOF
21560
/* end confdefs.h.  */
21561
$ac_includes_default
21562
int
21563
main ()
21564
{
21565
#ifndef I_PUSH
21566
  (void) I_PUSH;
21567
#endif
21568
 
21569
  ;
21570
  return 0;
21571
}
21572
_ACEOF
21573
rm -f conftest.$ac_objext
21574
if { (ac_try="$ac_compile"
21575
case "(($ac_try" in
21576
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577
  *) ac_try_echo=$ac_try;;
21578
esac
21579
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580
  (eval "$ac_compile") 2>conftest.er1
21581
  ac_status=$?
21582
  grep -v '^ *+' conftest.er1 >conftest.err
21583
  rm -f conftest.er1
21584
  cat conftest.err >&5
21585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586
  (exit $ac_status); } && {
21587
         test -z "$ac_c_werror_flag" ||
21588
         test ! -s conftest.err
21589
       } && test -s conftest.$ac_objext; then
21590
  ac_cv_have_decl_I_PUSH=yes
21591
else
21592
  echo "$as_me: failed program was:" >&5
21593
sed 's/^/| /' conftest.$ac_ext >&5
21594
 
21595
        ac_cv_have_decl_I_PUSH=no
21596
fi
21597
 
21598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599
fi
21600
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
21601
echo "${ECHO_T}$ac_cv_have_decl_I_PUSH" >&6; }
21602
if test $ac_cv_have_decl_I_PUSH = yes; then
21603
 
21604
cat >>confdefs.h <<_ACEOF
21605
#define HAVE_DECL_I_PUSH 1
21606
_ACEOF
21607
 
21608
 
21609
else
21610
  cat >>confdefs.h <<_ACEOF
21611
#define HAVE_DECL_I_PUSH 0
21612
_ACEOF
21613
 
21614
 
21615
fi
21616
 
21617
 
21618 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21619
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21620 1242 hpanther
if test "${ac_cv_c_bigendian+set}" = set; then
21621
  echo $ECHO_N "(cached) $ECHO_C" >&6
21622
else
21623 1576 phoenix
  # See if sys/param.h defines the BYTE_ORDER macro.
21624 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
21625 1576 phoenix
/* confdefs.h.  */
21626
_ACEOF
21627
cat confdefs.h >>conftest.$ac_ext
21628
cat >>conftest.$ac_ext <<_ACEOF
21629
/* end confdefs.h.  */
21630 1242 hpanther
#include 
21631
#include 
21632 7 jrydberg
 
21633 1242 hpanther
int
21634
main ()
21635
{
21636 1743 jeremybenn
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21637
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21638 1242 hpanther
 bogus endian macros
21639
#endif
21640 202 erez
 
21641 1242 hpanther
  ;
21642
  return 0;
21643
}
21644
_ACEOF
21645
rm -f conftest.$ac_objext
21646 1743 jeremybenn
if { (ac_try="$ac_compile"
21647
case "(($ac_try" in
21648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649
  *) ac_try_echo=$ac_try;;
21650
esac
21651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652
  (eval "$ac_compile") 2>conftest.er1
21653 1242 hpanther
  ac_status=$?
21654 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
21655
  rm -f conftest.er1
21656
  cat conftest.err >&5
21657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 1743 jeremybenn
  (exit $ac_status); } && {
21659
         test -z "$ac_c_werror_flag" ||
21660
         test ! -s conftest.err
21661
       } && test -s conftest.$ac_objext; then
21662 1242 hpanther
  # It does; now see whether it defined to BIG_ENDIAN or not.
21663
cat >conftest.$ac_ext <<_ACEOF
21664 1576 phoenix
/* confdefs.h.  */
21665
_ACEOF
21666
cat confdefs.h >>conftest.$ac_ext
21667
cat >>conftest.$ac_ext <<_ACEOF
21668
/* end confdefs.h.  */
21669 1242 hpanther
#include 
21670
#include 
21671
 
21672
int
21673
main ()
21674
{
21675
#if BYTE_ORDER != BIG_ENDIAN
21676
 not big endian
21677
#endif
21678
 
21679
  ;
21680
  return 0;
21681
}
21682
_ACEOF
21683
rm -f conftest.$ac_objext
21684 1743 jeremybenn
if { (ac_try="$ac_compile"
21685
case "(($ac_try" in
21686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687
  *) ac_try_echo=$ac_try;;
21688
esac
21689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690
  (eval "$ac_compile") 2>conftest.er1
21691 1242 hpanther
  ac_status=$?
21692 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
21693
  rm -f conftest.er1
21694
  cat conftest.err >&5
21695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 1743 jeremybenn
  (exit $ac_status); } && {
21697
         test -z "$ac_c_werror_flag" ||
21698
         test ! -s conftest.err
21699
       } && test -s conftest.$ac_objext; then
21700 1242 hpanther
  ac_cv_c_bigendian=yes
21701
else
21702
  echo "$as_me: failed program was:" >&5
21703 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
21704
 
21705 1743 jeremybenn
        ac_cv_c_bigendian=no
21706 1242 hpanther
fi
21707 1743 jeremybenn
 
21708
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709 1242 hpanther
else
21710
  echo "$as_me: failed program was:" >&5
21711 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
21712
 
21713 1743 jeremybenn
        # It does not; compile a test program.
21714 1576 phoenix
if test "$cross_compiling" = yes; then
21715
  # try to guess the endianness by grepping values into an object file
21716
  ac_cv_c_bigendian=unknown
21717
  cat >conftest.$ac_ext <<_ACEOF
21718
/* confdefs.h.  */
21719
_ACEOF
21720
cat confdefs.h >>conftest.$ac_ext
21721
cat >>conftest.$ac_ext <<_ACEOF
21722
/* end confdefs.h.  */
21723 1743 jeremybenn
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21724
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21725 1576 phoenix
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21726 1743 jeremybenn
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21727
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21728 1576 phoenix
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21729
int
21730
main ()
21731
{
21732
 _ascii (); _ebcdic ();
21733
  ;
21734
  return 0;
21735
}
21736
_ACEOF
21737
rm -f conftest.$ac_objext
21738 1743 jeremybenn
if { (ac_try="$ac_compile"
21739
case "(($ac_try" in
21740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741
  *) ac_try_echo=$ac_try;;
21742
esac
21743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744
  (eval "$ac_compile") 2>conftest.er1
21745 1576 phoenix
  ac_status=$?
21746
  grep -v '^ *+' conftest.er1 >conftest.err
21747
  rm -f conftest.er1
21748
  cat conftest.err >&5
21749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 1743 jeremybenn
  (exit $ac_status); } && {
21751
         test -z "$ac_c_werror_flag" ||
21752
         test ! -s conftest.err
21753
       } && test -s conftest.$ac_objext; then
21754 1576 phoenix
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21755
  ac_cv_c_bigendian=yes
21756 1242 hpanther
fi
21757 1576 phoenix
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21758
  if test "$ac_cv_c_bigendian" = unknown; then
21759
    ac_cv_c_bigendian=no
21760
  else
21761
    # finding both strings is unlikely to happen, but who knows?
21762
    ac_cv_c_bigendian=unknown
21763
  fi
21764
fi
21765 1242 hpanther
else
21766 1576 phoenix
  echo "$as_me: failed program was:" >&5
21767
sed 's/^/| /' conftest.$ac_ext >&5
21768
 
21769 1743 jeremybenn
 
21770 1576 phoenix
fi
21771 1743 jeremybenn
 
21772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 1576 phoenix
else
21774 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
21775 1576 phoenix
/* confdefs.h.  */
21776
_ACEOF
21777
cat confdefs.h >>conftest.$ac_ext
21778
cat >>conftest.$ac_ext <<_ACEOF
21779
/* end confdefs.h.  */
21780 1743 jeremybenn
$ac_includes_default
21781 1242 hpanther
int
21782
main ()
21783
{
21784 1743 jeremybenn
 
21785 1242 hpanther
  /* Are we little or big endian?  From Harbison&Steele.  */
21786
  union
21787
  {
21788 1743 jeremybenn
    long int l;
21789
    char c[sizeof (long int)];
21790 1242 hpanther
  } u;
21791
  u.l = 1;
21792 1743 jeremybenn
  return u.c[sizeof (long int) - 1] == 1;
21793
 
21794
  ;
21795
  return 0;
21796 1242 hpanther
}
21797
_ACEOF
21798
rm -f conftest$ac_exeext
21799 1743 jeremybenn
if { (ac_try="$ac_link"
21800
case "(($ac_try" in
21801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802
  *) ac_try_echo=$ac_try;;
21803
esac
21804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805
  (eval "$ac_link") 2>&5
21806 1242 hpanther
  ac_status=$?
21807 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 1242 hpanther
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21809 1743 jeremybenn
  { (case "(($ac_try" in
21810
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811
  *) ac_try_echo=$ac_try;;
21812
esac
21813
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814
  (eval "$ac_try") 2>&5
21815 1242 hpanther
  ac_status=$?
21816 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 1242 hpanther
  (exit $ac_status); }; }; then
21818
  ac_cv_c_bigendian=no
21819
else
21820
  echo "$as_me: program exited with status $ac_status" >&5
21821
echo "$as_me: failed program was:" >&5
21822 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
21823
 
21824
( exit $ac_status )
21825 1242 hpanther
ac_cv_c_bigendian=yes
21826
fi
21827 1743 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21828 1242 hpanther
fi
21829 1743 jeremybenn
 
21830
 
21831 1242 hpanther
fi
21832 1743 jeremybenn
 
21833
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21834 1242 hpanther
fi
21835 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21836
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21837 1576 phoenix
case $ac_cv_c_bigendian in
21838
  yes)
21839 1242 hpanther
 
21840 1576 phoenix
cat >>confdefs.h <<\_ACEOF
21841 1242 hpanther
#define WORDS_BIGENDIAN 1
21842 1576 phoenix
_ACEOF
21843
 ;;
21844
  no)
21845
     ;;
21846
  *)
21847
    { { echo "$as_me:$LINENO: error: unknown endianness
21848
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21849
echo "$as_me: error: unknown endianness
21850
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21851
   { (exit 1); exit 1; }; } ;;
21852
esac
21853 1242 hpanther
 
21854
 
21855 1748 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
21856
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21857
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21858
if test "${ac_cv_c_const+set}" = set; then
21859
  echo $ECHO_N "(cached) $ECHO_C" >&6
21860
else
21861
  cat >conftest.$ac_ext <<_ACEOF
21862
/* confdefs.h.  */
21863
_ACEOF
21864
cat confdefs.h >>conftest.$ac_ext
21865
cat >>conftest.$ac_ext <<_ACEOF
21866
/* end confdefs.h.  */
21867
 
21868
int
21869
main ()
21870
{
21871
/* FIXME: Include the comments suggested by Paul. */
21872
#ifndef __cplusplus
21873
  /* Ultrix mips cc rejects this.  */
21874
  typedef int charset[2];
21875
  const charset cs;
21876
  /* SunOS 4.1.1 cc rejects this.  */
21877
  char const *const *pcpcc;
21878
  char **ppc;
21879
  /* NEC SVR4.0.2 mips cc rejects this.  */
21880
  struct point {int x, y;};
21881
  static struct point const zero = {0,0};
21882
  /* AIX XL C 1.02.0.0 rejects this.
21883
     It does not let you subtract one const X* pointer from another in
21884
     an arm of an if-expression whose if-part is not a constant
21885
     expression */
21886
  const char *g = "string";
21887
  pcpcc = &g + (g ? g-g : 0);
21888
  /* HPUX 7.0 cc rejects these. */
21889
  ++pcpcc;
21890
  ppc = (char**) pcpcc;
21891
  pcpcc = (char const *const *) ppc;
21892
  { /* SCO 3.2v4 cc rejects this.  */
21893
    char *t;
21894
    char const *s = 0 ? (char *) 0 : (char const *) 0;
21895
 
21896
    *t++ = 0;
21897
    if (s) return 0;
21898
  }
21899
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21900
    int x[] = {25, 17};
21901
    const int *foo = &x[0];
21902
    ++foo;
21903
  }
21904
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21905
    typedef const int *iptr;
21906
    iptr p = 0;
21907
    ++p;
21908
  }
21909
  { /* AIX XL C 1.02.0.0 rejects this saying
21910
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21911
    struct s { int j; const int *ap[3]; };
21912
    struct s *b; b->j = 5;
21913
  }
21914
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21915
    const int foo = 10;
21916
    if (!foo) return 0;
21917
  }
21918
  return !cs[0] && !zero.x;
21919
#endif
21920
 
21921
  ;
21922
  return 0;
21923
}
21924
_ACEOF
21925
rm -f conftest.$ac_objext
21926
if { (ac_try="$ac_compile"
21927
case "(($ac_try" in
21928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929
  *) ac_try_echo=$ac_try;;
21930
esac
21931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932
  (eval "$ac_compile") 2>conftest.er1
21933
  ac_status=$?
21934
  grep -v '^ *+' conftest.er1 >conftest.err
21935
  rm -f conftest.er1
21936
  cat conftest.err >&5
21937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938
  (exit $ac_status); } && {
21939
         test -z "$ac_c_werror_flag" ||
21940
         test ! -s conftest.err
21941
       } && test -s conftest.$ac_objext; then
21942
  ac_cv_c_const=yes
21943
else
21944
  echo "$as_me: failed program was:" >&5
21945
sed 's/^/| /' conftest.$ac_ext >&5
21946
 
21947
        ac_cv_c_const=no
21948
fi
21949
 
21950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21951
fi
21952
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21953
echo "${ECHO_T}$ac_cv_c_const" >&6; }
21954
if test $ac_cv_c_const = no; then
21955
 
21956
cat >>confdefs.h <<\_ACEOF
21957
#define const
21958
_ACEOF
21959
 
21960
fi
21961
 
21962
{ echo "$as_me:$LINENO: checking for size_t" >&5
21963
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21964
if test "${ac_cv_type_size_t+set}" = set; then
21965
  echo $ECHO_N "(cached) $ECHO_C" >&6
21966
else
21967
  cat >conftest.$ac_ext <<_ACEOF
21968
/* confdefs.h.  */
21969
_ACEOF
21970
cat confdefs.h >>conftest.$ac_ext
21971
cat >>conftest.$ac_ext <<_ACEOF
21972
/* end confdefs.h.  */
21973
$ac_includes_default
21974
typedef size_t ac__type_new_;
21975
int
21976
main ()
21977
{
21978
if ((ac__type_new_ *) 0)
21979
  return 0;
21980
if (sizeof (ac__type_new_))
21981
  return 0;
21982
  ;
21983
  return 0;
21984
}
21985
_ACEOF
21986
rm -f conftest.$ac_objext
21987
if { (ac_try="$ac_compile"
21988
case "(($ac_try" in
21989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990
  *) ac_try_echo=$ac_try;;
21991
esac
21992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993
  (eval "$ac_compile") 2>conftest.er1
21994
  ac_status=$?
21995
  grep -v '^ *+' conftest.er1 >conftest.err
21996
  rm -f conftest.er1
21997
  cat conftest.err >&5
21998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999
  (exit $ac_status); } && {
22000
         test -z "$ac_c_werror_flag" ||
22001
         test ! -s conftest.err
22002
       } && test -s conftest.$ac_objext; then
22003
  ac_cv_type_size_t=yes
22004
else
22005
  echo "$as_me: failed program was:" >&5
22006
sed 's/^/| /' conftest.$ac_ext >&5
22007
 
22008
        ac_cv_type_size_t=no
22009
fi
22010
 
22011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012
fi
22013
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22014
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22015
if test $ac_cv_type_size_t = yes; then
22016
  :
22017
else
22018
 
22019
cat >>confdefs.h <<_ACEOF
22020
#define size_t unsigned int
22021
_ACEOF
22022
 
22023
fi
22024
 
22025
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22026
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22027
if test "${ac_cv_struct_tm+set}" = set; then
22028
  echo $ECHO_N "(cached) $ECHO_C" >&6
22029
else
22030
  cat >conftest.$ac_ext <<_ACEOF
22031
/* confdefs.h.  */
22032
_ACEOF
22033
cat confdefs.h >>conftest.$ac_ext
22034
cat >>conftest.$ac_ext <<_ACEOF
22035
/* end confdefs.h.  */
22036
#include 
22037
#include 
22038
 
22039
int
22040
main ()
22041
{
22042
struct tm tm;
22043
                                     int *p = &tm.tm_sec;
22044
                                     return !p;
22045
  ;
22046
  return 0;
22047
}
22048
_ACEOF
22049
rm -f conftest.$ac_objext
22050
if { (ac_try="$ac_compile"
22051
case "(($ac_try" in
22052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053
  *) ac_try_echo=$ac_try;;
22054
esac
22055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056
  (eval "$ac_compile") 2>conftest.er1
22057
  ac_status=$?
22058
  grep -v '^ *+' conftest.er1 >conftest.err
22059
  rm -f conftest.er1
22060
  cat conftest.err >&5
22061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062
  (exit $ac_status); } && {
22063
         test -z "$ac_c_werror_flag" ||
22064
         test ! -s conftest.err
22065
       } && test -s conftest.$ac_objext; then
22066
  ac_cv_struct_tm=time.h
22067
else
22068
  echo "$as_me: failed program was:" >&5
22069
sed 's/^/| /' conftest.$ac_ext >&5
22070
 
22071
        ac_cv_struct_tm=sys/time.h
22072
fi
22073
 
22074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075
fi
22076
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22077
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22078
if test $ac_cv_struct_tm = sys/time.h; then
22079
 
22080
cat >>confdefs.h <<\_ACEOF
22081
#define TM_IN_SYS_TIME 1
22082
_ACEOF
22083
 
22084
fi
22085
 
22086
 
22087
# Checks for library functions (for argtable2).
22088
 
22089
for ac_header in stdlib.h
22090
do
22091
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22092
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22093
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22094
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22095
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096
  echo $ECHO_N "(cached) $ECHO_C" >&6
22097
fi
22098
ac_res=`eval echo '${'$as_ac_Header'}'`
22099
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22100
echo "${ECHO_T}$ac_res" >&6; }
22101
else
22102
  # Is the header compilable?
22103
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22104
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22105
cat >conftest.$ac_ext <<_ACEOF
22106
/* confdefs.h.  */
22107
_ACEOF
22108
cat confdefs.h >>conftest.$ac_ext
22109
cat >>conftest.$ac_ext <<_ACEOF
22110
/* end confdefs.h.  */
22111
$ac_includes_default
22112
#include <$ac_header>
22113
_ACEOF
22114
rm -f conftest.$ac_objext
22115
if { (ac_try="$ac_compile"
22116
case "(($ac_try" in
22117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118
  *) ac_try_echo=$ac_try;;
22119
esac
22120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121
  (eval "$ac_compile") 2>conftest.er1
22122
  ac_status=$?
22123
  grep -v '^ *+' conftest.er1 >conftest.err
22124
  rm -f conftest.er1
22125
  cat conftest.err >&5
22126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127
  (exit $ac_status); } && {
22128
         test -z "$ac_c_werror_flag" ||
22129
         test ! -s conftest.err
22130
       } && test -s conftest.$ac_objext; then
22131
  ac_header_compiler=yes
22132
else
22133
  echo "$as_me: failed program was:" >&5
22134
sed 's/^/| /' conftest.$ac_ext >&5
22135
 
22136
        ac_header_compiler=no
22137
fi
22138
 
22139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22141
echo "${ECHO_T}$ac_header_compiler" >&6; }
22142
 
22143
# Is the header present?
22144
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22145
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22146
cat >conftest.$ac_ext <<_ACEOF
22147
/* confdefs.h.  */
22148
_ACEOF
22149
cat confdefs.h >>conftest.$ac_ext
22150
cat >>conftest.$ac_ext <<_ACEOF
22151
/* end confdefs.h.  */
22152
#include <$ac_header>
22153
_ACEOF
22154
if { (ac_try="$ac_cpp conftest.$ac_ext"
22155
case "(($ac_try" in
22156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157
  *) ac_try_echo=$ac_try;;
22158
esac
22159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22161
  ac_status=$?
22162
  grep -v '^ *+' conftest.er1 >conftest.err
22163
  rm -f conftest.er1
22164
  cat conftest.err >&5
22165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166
  (exit $ac_status); } >/dev/null && {
22167
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22168
         test ! -s conftest.err
22169
       }; then
22170
  ac_header_preproc=yes
22171
else
22172
  echo "$as_me: failed program was:" >&5
22173
sed 's/^/| /' conftest.$ac_ext >&5
22174
 
22175
  ac_header_preproc=no
22176
fi
22177
 
22178
rm -f conftest.err conftest.$ac_ext
22179
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22180
echo "${ECHO_T}$ac_header_preproc" >&6; }
22181
 
22182
# So?  What about this header?
22183
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22184
  yes:no: )
22185
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22186
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22187
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22188
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22189
    ac_header_preproc=yes
22190
    ;;
22191
  no:yes:* )
22192
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22193
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22194
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22195
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22196
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22197
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22198
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22199
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22200
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22201
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22202
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22203
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22204
    ( cat <<\_ASBOX
22205
## ------------------------------------- ##
22206
## Report this to openrisc@opencores.org ##
22207
## ------------------------------------- ##
22208
_ASBOX
22209
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22210
    ;;
22211
esac
22212
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22213
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22214
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22215
  echo $ECHO_N "(cached) $ECHO_C" >&6
22216
else
22217
  eval "$as_ac_Header=\$ac_header_preproc"
22218
fi
22219
ac_res=`eval echo '${'$as_ac_Header'}'`
22220
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22221
echo "${ECHO_T}$ac_res" >&6; }
22222
 
22223
fi
22224
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22225
  cat >>confdefs.h <<_ACEOF
22226
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227
_ACEOF
22228
 
22229
fi
22230
 
22231
done
22232
 
22233
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22234
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22235
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22236
  echo $ECHO_N "(cached) $ECHO_C" >&6
22237
else
22238
  if test "$cross_compiling" = yes; then
22239
  ac_cv_func_malloc_0_nonnull=no
22240
else
22241
  cat >conftest.$ac_ext <<_ACEOF
22242
/* confdefs.h.  */
22243
_ACEOF
22244
cat confdefs.h >>conftest.$ac_ext
22245
cat >>conftest.$ac_ext <<_ACEOF
22246
/* end confdefs.h.  */
22247
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22248
# include 
22249
#else
22250
char *malloc ();
22251
#endif
22252
 
22253
int
22254
main ()
22255
{
22256
return ! malloc (0);
22257
  ;
22258
  return 0;
22259
}
22260
_ACEOF
22261
rm -f conftest$ac_exeext
22262
if { (ac_try="$ac_link"
22263
case "(($ac_try" in
22264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265
  *) ac_try_echo=$ac_try;;
22266
esac
22267
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268
  (eval "$ac_link") 2>&5
22269
  ac_status=$?
22270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22272
  { (case "(($ac_try" in
22273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274
  *) ac_try_echo=$ac_try;;
22275
esac
22276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277
  (eval "$ac_try") 2>&5
22278
  ac_status=$?
22279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280
  (exit $ac_status); }; }; then
22281
  ac_cv_func_malloc_0_nonnull=yes
22282
else
22283
  echo "$as_me: program exited with status $ac_status" >&5
22284
echo "$as_me: failed program was:" >&5
22285
sed 's/^/| /' conftest.$ac_ext >&5
22286
 
22287
( exit $ac_status )
22288
ac_cv_func_malloc_0_nonnull=no
22289
fi
22290
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22291
fi
22292
 
22293
 
22294
fi
22295
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22296
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22297
if test $ac_cv_func_malloc_0_nonnull = yes; then
22298
 
22299
cat >>confdefs.h <<\_ACEOF
22300
#define HAVE_MALLOC 1
22301
_ACEOF
22302
 
22303
else
22304
  cat >>confdefs.h <<\_ACEOF
22305
#define HAVE_MALLOC 0
22306
_ACEOF
22307
 
22308
   case " $LIBOBJS " in
22309
  *" malloc.$ac_objext "* ) ;;
22310
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22311
 ;;
22312
esac
22313
 
22314
 
22315
cat >>confdefs.h <<\_ACEOF
22316
#define malloc rpl_malloc
22317
_ACEOF
22318
 
22319
fi
22320
 
22321
 
22322
 
22323
 
22324
for ac_func in strftime
22325
do
22326
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22327
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22328
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22329
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22330
  echo $ECHO_N "(cached) $ECHO_C" >&6
22331
else
22332
  cat >conftest.$ac_ext <<_ACEOF
22333
/* confdefs.h.  */
22334
_ACEOF
22335
cat confdefs.h >>conftest.$ac_ext
22336
cat >>conftest.$ac_ext <<_ACEOF
22337
/* end confdefs.h.  */
22338
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22339
   For example, HP-UX 11i  declares gettimeofday.  */
22340
#define $ac_func innocuous_$ac_func
22341
 
22342
/* System header to define __stub macros and hopefully few prototypes,
22343
    which can conflict with char $ac_func (); below.
22344
    Prefer  to  if __STDC__ is defined, since
22345
     exists even on freestanding compilers.  */
22346
 
22347
#ifdef __STDC__
22348
# include 
22349
#else
22350
# include 
22351
#endif
22352
 
22353
#undef $ac_func
22354
 
22355
/* Override any GCC internal prototype to avoid an error.
22356
   Use char because int might match the return type of a GCC
22357
   builtin and then its argument prototype would still apply.  */
22358
#ifdef __cplusplus
22359
extern "C"
22360
#endif
22361
char $ac_func ();
22362
/* The GNU C library defines this for functions which it implements
22363
    to always fail with ENOSYS.  Some functions are actually named
22364
    something starting with __ and the normal name is an alias.  */
22365
#if defined __stub_$ac_func || defined __stub___$ac_func
22366
choke me
22367
#endif
22368
 
22369
int
22370
main ()
22371
{
22372
return $ac_func ();
22373
  ;
22374
  return 0;
22375
}
22376
_ACEOF
22377
rm -f conftest.$ac_objext conftest$ac_exeext
22378
if { (ac_try="$ac_link"
22379
case "(($ac_try" in
22380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381
  *) ac_try_echo=$ac_try;;
22382
esac
22383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384
  (eval "$ac_link") 2>conftest.er1
22385
  ac_status=$?
22386
  grep -v '^ *+' conftest.er1 >conftest.err
22387
  rm -f conftest.er1
22388
  cat conftest.err >&5
22389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390
  (exit $ac_status); } && {
22391
         test -z "$ac_c_werror_flag" ||
22392
         test ! -s conftest.err
22393
       } && test -s conftest$ac_exeext &&
22394
       $as_test_x conftest$ac_exeext; then
22395
  eval "$as_ac_var=yes"
22396
else
22397
  echo "$as_me: failed program was:" >&5
22398
sed 's/^/| /' conftest.$ac_ext >&5
22399
 
22400
        eval "$as_ac_var=no"
22401
fi
22402
 
22403
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404
      conftest$ac_exeext conftest.$ac_ext
22405
fi
22406
ac_res=`eval echo '${'$as_ac_var'}'`
22407
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22408
echo "${ECHO_T}$ac_res" >&6; }
22409
if test `eval echo '${'$as_ac_var'}'` = yes; then
22410
  cat >>confdefs.h <<_ACEOF
22411
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22412
_ACEOF
22413
 
22414
else
22415
  # strftime is in -lintl on SCO UNIX.
22416
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22417
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22418
if test "${ac_cv_lib_intl_strftime+set}" = set; then
22419
  echo $ECHO_N "(cached) $ECHO_C" >&6
22420
else
22421
  ac_check_lib_save_LIBS=$LIBS
22422
LIBS="-lintl  $LIBS"
22423
cat >conftest.$ac_ext <<_ACEOF
22424
/* confdefs.h.  */
22425
_ACEOF
22426
cat confdefs.h >>conftest.$ac_ext
22427
cat >>conftest.$ac_ext <<_ACEOF
22428
/* end confdefs.h.  */
22429
 
22430
/* Override any GCC internal prototype to avoid an error.
22431
   Use char because int might match the return type of a GCC
22432
   builtin and then its argument prototype would still apply.  */
22433
#ifdef __cplusplus
22434
extern "C"
22435
#endif
22436
char strftime ();
22437
int
22438
main ()
22439
{
22440
return strftime ();
22441
  ;
22442
  return 0;
22443
}
22444
_ACEOF
22445
rm -f conftest.$ac_objext conftest$ac_exeext
22446
if { (ac_try="$ac_link"
22447
case "(($ac_try" in
22448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449
  *) ac_try_echo=$ac_try;;
22450
esac
22451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452
  (eval "$ac_link") 2>conftest.er1
22453
  ac_status=$?
22454
  grep -v '^ *+' conftest.er1 >conftest.err
22455
  rm -f conftest.er1
22456
  cat conftest.err >&5
22457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458
  (exit $ac_status); } && {
22459
         test -z "$ac_c_werror_flag" ||
22460
         test ! -s conftest.err
22461
       } && test -s conftest$ac_exeext &&
22462
       $as_test_x conftest$ac_exeext; then
22463
  ac_cv_lib_intl_strftime=yes
22464
else
22465
  echo "$as_me: failed program was:" >&5
22466
sed 's/^/| /' conftest.$ac_ext >&5
22467
 
22468
        ac_cv_lib_intl_strftime=no
22469
fi
22470
 
22471
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22472
      conftest$ac_exeext conftest.$ac_ext
22473
LIBS=$ac_check_lib_save_LIBS
22474
fi
22475
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22476
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22477
if test $ac_cv_lib_intl_strftime = yes; then
22478
  cat >>confdefs.h <<\_ACEOF
22479
#define HAVE_STRFTIME 1
22480
_ACEOF
22481
 
22482
LIBS="-lintl $LIBS"
22483
fi
22484
 
22485
fi
22486
done
22487
 
22488
{ echo "$as_me:$LINENO: checking for working strtod" >&5
22489
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
22490
if test "${ac_cv_func_strtod+set}" = set; then
22491
  echo $ECHO_N "(cached) $ECHO_C" >&6
22492
else
22493
  if test "$cross_compiling" = yes; then
22494
  ac_cv_func_strtod=no
22495
else
22496
  cat >conftest.$ac_ext <<_ACEOF
22497
/* confdefs.h.  */
22498
_ACEOF
22499
cat confdefs.h >>conftest.$ac_ext
22500
cat >>conftest.$ac_ext <<_ACEOF
22501
/* end confdefs.h.  */
22502
 
22503
$ac_includes_default
22504
#ifndef strtod
22505
double strtod ();
22506
#endif
22507
int
22508
main()
22509
{
22510
  {
22511
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22512
    char *string = " +69";
22513
    char *term;
22514
    double value;
22515
    value = strtod (string, &term);
22516
    if (value != 69 || term != (string + 4))
22517
      return 1;
22518
  }
22519
 
22520
  {
22521
    /* Under Solaris 2.4, strtod returns the wrong value for the
22522
       terminating character under some conditions.  */
22523
    char *string = "NaN";
22524
    char *term;
22525
    strtod (string, &term);
22526
    if (term != string && *(term - 1) == 0)
22527
      return 1;
22528
  }
22529
  return 0;
22530
}
22531
 
22532
_ACEOF
22533
rm -f conftest$ac_exeext
22534
if { (ac_try="$ac_link"
22535
case "(($ac_try" in
22536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537
  *) ac_try_echo=$ac_try;;
22538
esac
22539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540
  (eval "$ac_link") 2>&5
22541
  ac_status=$?
22542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22544
  { (case "(($ac_try" in
22545
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546
  *) ac_try_echo=$ac_try;;
22547
esac
22548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549
  (eval "$ac_try") 2>&5
22550
  ac_status=$?
22551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552
  (exit $ac_status); }; }; then
22553
  ac_cv_func_strtod=yes
22554
else
22555
  echo "$as_me: program exited with status $ac_status" >&5
22556
echo "$as_me: failed program was:" >&5
22557
sed 's/^/| /' conftest.$ac_ext >&5
22558
 
22559
( exit $ac_status )
22560
ac_cv_func_strtod=no
22561
fi
22562
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22563
fi
22564
 
22565
 
22566
fi
22567
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
22568
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
22569
if test $ac_cv_func_strtod = no; then
22570
  case " $LIBOBJS " in
22571
  *" strtod.$ac_objext "* ) ;;
22572
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22573
 ;;
22574
esac
22575
 
22576
{ echo "$as_me:$LINENO: checking for pow" >&5
22577
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
22578
if test "${ac_cv_func_pow+set}" = set; then
22579
  echo $ECHO_N "(cached) $ECHO_C" >&6
22580
else
22581
  cat >conftest.$ac_ext <<_ACEOF
22582
/* confdefs.h.  */
22583
_ACEOF
22584
cat confdefs.h >>conftest.$ac_ext
22585
cat >>conftest.$ac_ext <<_ACEOF
22586
/* end confdefs.h.  */
22587
/* Define pow to an innocuous variant, in case  declares pow.
22588
   For example, HP-UX 11i  declares gettimeofday.  */
22589
#define pow innocuous_pow
22590
 
22591
/* System header to define __stub macros and hopefully few prototypes,
22592
    which can conflict with char pow (); below.
22593
    Prefer  to  if __STDC__ is defined, since
22594
     exists even on freestanding compilers.  */
22595
 
22596
#ifdef __STDC__
22597
# include 
22598
#else
22599
# include 
22600
#endif
22601
 
22602
#undef pow
22603
 
22604
/* Override any GCC internal prototype to avoid an error.
22605
   Use char because int might match the return type of a GCC
22606
   builtin and then its argument prototype would still apply.  */
22607
#ifdef __cplusplus
22608
extern "C"
22609
#endif
22610
char pow ();
22611
/* The GNU C library defines this for functions which it implements
22612
    to always fail with ENOSYS.  Some functions are actually named
22613
    something starting with __ and the normal name is an alias.  */
22614
#if defined __stub_pow || defined __stub___pow
22615
choke me
22616
#endif
22617
 
22618
int
22619
main ()
22620
{
22621
return pow ();
22622
  ;
22623
  return 0;
22624
}
22625
_ACEOF
22626
rm -f conftest.$ac_objext conftest$ac_exeext
22627
if { (ac_try="$ac_link"
22628
case "(($ac_try" in
22629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630
  *) ac_try_echo=$ac_try;;
22631
esac
22632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633
  (eval "$ac_link") 2>conftest.er1
22634
  ac_status=$?
22635
  grep -v '^ *+' conftest.er1 >conftest.err
22636
  rm -f conftest.er1
22637
  cat conftest.err >&5
22638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639
  (exit $ac_status); } && {
22640
         test -z "$ac_c_werror_flag" ||
22641
         test ! -s conftest.err
22642
       } && test -s conftest$ac_exeext &&
22643
       $as_test_x conftest$ac_exeext; then
22644
  ac_cv_func_pow=yes
22645
else
22646
  echo "$as_me: failed program was:" >&5
22647
sed 's/^/| /' conftest.$ac_ext >&5
22648
 
22649
        ac_cv_func_pow=no
22650
fi
22651
 
22652
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22653
      conftest$ac_exeext conftest.$ac_ext
22654
fi
22655
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
22656
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
22657
 
22658
if test $ac_cv_func_pow = no; then
22659
  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
22660
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
22661
if test "${ac_cv_lib_m_pow+set}" = set; then
22662
  echo $ECHO_N "(cached) $ECHO_C" >&6
22663
else
22664
  ac_check_lib_save_LIBS=$LIBS
22665
LIBS="-lm  $LIBS"
22666
cat >conftest.$ac_ext <<_ACEOF
22667
/* confdefs.h.  */
22668
_ACEOF
22669
cat confdefs.h >>conftest.$ac_ext
22670
cat >>conftest.$ac_ext <<_ACEOF
22671
/* end confdefs.h.  */
22672
 
22673
/* Override any GCC internal prototype to avoid an error.
22674
   Use char because int might match the return type of a GCC
22675
   builtin and then its argument prototype would still apply.  */
22676
#ifdef __cplusplus
22677
extern "C"
22678
#endif
22679
char pow ();
22680
int
22681
main ()
22682
{
22683
return pow ();
22684
  ;
22685
  return 0;
22686
}
22687
_ACEOF
22688
rm -f conftest.$ac_objext conftest$ac_exeext
22689
if { (ac_try="$ac_link"
22690
case "(($ac_try" in
22691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692
  *) ac_try_echo=$ac_try;;
22693
esac
22694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695
  (eval "$ac_link") 2>conftest.er1
22696
  ac_status=$?
22697
  grep -v '^ *+' conftest.er1 >conftest.err
22698
  rm -f conftest.er1
22699
  cat conftest.err >&5
22700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701
  (exit $ac_status); } && {
22702
         test -z "$ac_c_werror_flag" ||
22703
         test ! -s conftest.err
22704
       } && test -s conftest$ac_exeext &&
22705
       $as_test_x conftest$ac_exeext; then
22706
  ac_cv_lib_m_pow=yes
22707
else
22708
  echo "$as_me: failed program was:" >&5
22709
sed 's/^/| /' conftest.$ac_ext >&5
22710
 
22711
        ac_cv_lib_m_pow=no
22712
fi
22713
 
22714
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22715
      conftest$ac_exeext conftest.$ac_ext
22716
LIBS=$ac_check_lib_save_LIBS
22717
fi
22718
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
22719
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
22720
if test $ac_cv_lib_m_pow = yes; then
22721
  POW_LIB=-lm
22722
else
22723
  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
22724
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22725
fi
22726
 
22727
fi
22728
 
22729
fi
22730
 
22731
 
22732
 
22733
 
22734
 
22735
 
22736
for ac_func in bzero strchr strcspn strrchr strtol
22737
do
22738
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22739
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22740
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22741
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22742
  echo $ECHO_N "(cached) $ECHO_C" >&6
22743
else
22744
  cat >conftest.$ac_ext <<_ACEOF
22745
/* confdefs.h.  */
22746
_ACEOF
22747
cat confdefs.h >>conftest.$ac_ext
22748
cat >>conftest.$ac_ext <<_ACEOF
22749
/* end confdefs.h.  */
22750
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22751
   For example, HP-UX 11i  declares gettimeofday.  */
22752
#define $ac_func innocuous_$ac_func
22753
 
22754
/* System header to define __stub macros and hopefully few prototypes,
22755
    which can conflict with char $ac_func (); below.
22756
    Prefer  to  if __STDC__ is defined, since
22757
     exists even on freestanding compilers.  */
22758
 
22759
#ifdef __STDC__
22760
# include 
22761
#else
22762
# include 
22763
#endif
22764
 
22765
#undef $ac_func
22766
 
22767
/* Override any GCC internal prototype to avoid an error.
22768
   Use char because int might match the return type of a GCC
22769
   builtin and then its argument prototype would still apply.  */
22770
#ifdef __cplusplus
22771
extern "C"
22772
#endif
22773
char $ac_func ();
22774
/* The GNU C library defines this for functions which it implements
22775
    to always fail with ENOSYS.  Some functions are actually named
22776
    something starting with __ and the normal name is an alias.  */
22777
#if defined __stub_$ac_func || defined __stub___$ac_func
22778
choke me
22779
#endif
22780
 
22781
int
22782
main ()
22783
{
22784
return $ac_func ();
22785
  ;
22786
  return 0;
22787
}
22788
_ACEOF
22789
rm -f conftest.$ac_objext conftest$ac_exeext
22790
if { (ac_try="$ac_link"
22791
case "(($ac_try" in
22792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793
  *) ac_try_echo=$ac_try;;
22794
esac
22795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796
  (eval "$ac_link") 2>conftest.er1
22797
  ac_status=$?
22798
  grep -v '^ *+' conftest.er1 >conftest.err
22799
  rm -f conftest.er1
22800
  cat conftest.err >&5
22801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802
  (exit $ac_status); } && {
22803
         test -z "$ac_c_werror_flag" ||
22804
         test ! -s conftest.err
22805
       } && test -s conftest$ac_exeext &&
22806
       $as_test_x conftest$ac_exeext; then
22807
  eval "$as_ac_var=yes"
22808
else
22809
  echo "$as_me: failed program was:" >&5
22810
sed 's/^/| /' conftest.$ac_ext >&5
22811
 
22812
        eval "$as_ac_var=no"
22813
fi
22814
 
22815
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22816
      conftest$ac_exeext conftest.$ac_ext
22817
fi
22818
ac_res=`eval echo '${'$as_ac_var'}'`
22819
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22820
echo "${ECHO_T}$ac_res" >&6; }
22821
if test `eval echo '${'$as_ac_var'}'` = yes; then
22822
  cat >>confdefs.h <<_ACEOF
22823
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22824
_ACEOF
22825
 
22826
fi
22827
done
22828
 
22829
{ echo "$as_me:$LINENO: checking for getopt_long" >&5
22830
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
22831
if test "${ac_cv_func_getopt_long+set}" = set; then
22832
  echo $ECHO_N "(cached) $ECHO_C" >&6
22833
else
22834
  cat >conftest.$ac_ext <<_ACEOF
22835
/* confdefs.h.  */
22836
_ACEOF
22837
cat confdefs.h >>conftest.$ac_ext
22838
cat >>conftest.$ac_ext <<_ACEOF
22839
/* end confdefs.h.  */
22840
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
22841
   For example, HP-UX 11i  declares gettimeofday.  */
22842
#define getopt_long innocuous_getopt_long
22843
 
22844
/* System header to define __stub macros and hopefully few prototypes,
22845
    which can conflict with char getopt_long (); below.
22846
    Prefer  to  if __STDC__ is defined, since
22847
     exists even on freestanding compilers.  */
22848
 
22849
#ifdef __STDC__
22850
# include 
22851
#else
22852
# include 
22853
#endif
22854
 
22855
#undef getopt_long
22856
 
22857
/* Override any GCC internal prototype to avoid an error.
22858
   Use char because int might match the return type of a GCC
22859
   builtin and then its argument prototype would still apply.  */
22860
#ifdef __cplusplus
22861
extern "C"
22862
#endif
22863
char getopt_long ();
22864
/* The GNU C library defines this for functions which it implements
22865
    to always fail with ENOSYS.  Some functions are actually named
22866
    something starting with __ and the normal name is an alias.  */
22867
#if defined __stub_getopt_long || defined __stub___getopt_long
22868
choke me
22869
#endif
22870
 
22871
int
22872
main ()
22873
{
22874
return getopt_long ();
22875
  ;
22876
  return 0;
22877
}
22878
_ACEOF
22879
rm -f conftest.$ac_objext conftest$ac_exeext
22880
if { (ac_try="$ac_link"
22881
case "(($ac_try" in
22882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883
  *) ac_try_echo=$ac_try;;
22884
esac
22885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886
  (eval "$ac_link") 2>conftest.er1
22887
  ac_status=$?
22888
  grep -v '^ *+' conftest.er1 >conftest.err
22889
  rm -f conftest.er1
22890
  cat conftest.err >&5
22891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892
  (exit $ac_status); } && {
22893
         test -z "$ac_c_werror_flag" ||
22894
         test ! -s conftest.err
22895
       } && test -s conftest$ac_exeext &&
22896
       $as_test_x conftest$ac_exeext; then
22897
  ac_cv_func_getopt_long=yes
22898
else
22899
  echo "$as_me: failed program was:" >&5
22900
sed 's/^/| /' conftest.$ac_ext >&5
22901
 
22902
        ac_cv_func_getopt_long=no
22903
fi
22904
 
22905
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906
      conftest$ac_exeext conftest.$ac_ext
22907
fi
22908
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
22909
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
22910
if test $ac_cv_func_getopt_long = yes; then
22911
  SYS_GETOPTLONG=1
22912
else
22913
  SYS_GETOPTLONG=0
22914
fi
22915
 
22916
{ echo "$as_me:$LINENO: checking for regcomp" >&5
22917
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
22918
if test "${ac_cv_func_regcomp+set}" = set; then
22919
  echo $ECHO_N "(cached) $ECHO_C" >&6
22920
else
22921
  cat >conftest.$ac_ext <<_ACEOF
22922
/* confdefs.h.  */
22923
_ACEOF
22924
cat confdefs.h >>conftest.$ac_ext
22925
cat >>conftest.$ac_ext <<_ACEOF
22926
/* end confdefs.h.  */
22927
/* Define regcomp to an innocuous variant, in case  declares regcomp.
22928
   For example, HP-UX 11i  declares gettimeofday.  */
22929
#define regcomp innocuous_regcomp
22930
 
22931
/* System header to define __stub macros and hopefully few prototypes,
22932
    which can conflict with char regcomp (); below.
22933
    Prefer  to  if __STDC__ is defined, since
22934
     exists even on freestanding compilers.  */
22935
 
22936
#ifdef __STDC__
22937
# include 
22938
#else
22939
# include 
22940
#endif
22941
 
22942
#undef regcomp
22943
 
22944
/* Override any GCC internal prototype to avoid an error.
22945
   Use char because int might match the return type of a GCC
22946
   builtin and then its argument prototype would still apply.  */
22947
#ifdef __cplusplus
22948
extern "C"
22949
#endif
22950
char regcomp ();
22951
/* The GNU C library defines this for functions which it implements
22952
    to always fail with ENOSYS.  Some functions are actually named
22953
    something starting with __ and the normal name is an alias.  */
22954
#if defined __stub_regcomp || defined __stub___regcomp
22955
choke me
22956
#endif
22957
 
22958
int
22959
main ()
22960
{
22961
return regcomp ();
22962
  ;
22963
  return 0;
22964
}
22965
_ACEOF
22966
rm -f conftest.$ac_objext conftest$ac_exeext
22967
if { (ac_try="$ac_link"
22968
case "(($ac_try" in
22969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970
  *) ac_try_echo=$ac_try;;
22971
esac
22972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973
  (eval "$ac_link") 2>conftest.er1
22974
  ac_status=$?
22975
  grep -v '^ *+' conftest.er1 >conftest.err
22976
  rm -f conftest.er1
22977
  cat conftest.err >&5
22978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979
  (exit $ac_status); } && {
22980
         test -z "$ac_c_werror_flag" ||
22981
         test ! -s conftest.err
22982
       } && test -s conftest$ac_exeext &&
22983
       $as_test_x conftest$ac_exeext; then
22984
  ac_cv_func_regcomp=yes
22985
else
22986
  echo "$as_me: failed program was:" >&5
22987
sed 's/^/| /' conftest.$ac_ext >&5
22988
 
22989
        ac_cv_func_regcomp=no
22990
fi
22991
 
22992
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22993
      conftest$ac_exeext conftest.$ac_ext
22994
fi
22995
{ echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
22996
echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
22997
if test $ac_cv_func_regcomp = yes; then
22998
  SYS_REGEX=1
22999
else
23000
  SYS_REGEX=0
23001
fi
23002
 
23003
{ echo "$as_me:$LINENO: checking for strptime" >&5
23004
echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
23005
if test "${ac_cv_func_strptime+set}" = set; then
23006
  echo $ECHO_N "(cached) $ECHO_C" >&6
23007
else
23008
  cat >conftest.$ac_ext <<_ACEOF
23009
/* confdefs.h.  */
23010
_ACEOF
23011
cat confdefs.h >>conftest.$ac_ext
23012
cat >>conftest.$ac_ext <<_ACEOF
23013
/* end confdefs.h.  */
23014
/* Define strptime to an innocuous variant, in case  declares strptime.
23015
   For example, HP-UX 11i  declares gettimeofday.  */
23016
#define strptime innocuous_strptime
23017
 
23018
/* System header to define __stub macros and hopefully few prototypes,
23019
    which can conflict with char strptime (); below.
23020
    Prefer  to  if __STDC__ is defined, since
23021
     exists even on freestanding compilers.  */
23022
 
23023
#ifdef __STDC__
23024
# include 
23025
#else
23026
# include 
23027
#endif
23028
 
23029
#undef strptime
23030
 
23031
/* Override any GCC internal prototype to avoid an error.
23032
   Use char because int might match the return type of a GCC
23033
   builtin and then its argument prototype would still apply.  */
23034
#ifdef __cplusplus
23035
extern "C"
23036
#endif
23037
char strptime ();
23038
/* The GNU C library defines this for functions which it implements
23039
    to always fail with ENOSYS.  Some functions are actually named
23040
    something starting with __ and the normal name is an alias.  */
23041
#if defined __stub_strptime || defined __stub___strptime
23042
choke me
23043
#endif
23044
 
23045
int
23046
main ()
23047
{
23048
return strptime ();
23049
  ;
23050
  return 0;
23051
}
23052
_ACEOF
23053
rm -f conftest.$ac_objext conftest$ac_exeext
23054
if { (ac_try="$ac_link"
23055
case "(($ac_try" in
23056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057
  *) ac_try_echo=$ac_try;;
23058
esac
23059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060
  (eval "$ac_link") 2>conftest.er1
23061
  ac_status=$?
23062
  grep -v '^ *+' conftest.er1 >conftest.err
23063
  rm -f conftest.er1
23064
  cat conftest.err >&5
23065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066
  (exit $ac_status); } && {
23067
         test -z "$ac_c_werror_flag" ||
23068
         test ! -s conftest.err
23069
       } && test -s conftest$ac_exeext &&
23070
       $as_test_x conftest$ac_exeext; then
23071
  ac_cv_func_strptime=yes
23072
else
23073
  echo "$as_me: failed program was:" >&5
23074
sed 's/^/| /' conftest.$ac_ext >&5
23075
 
23076
        ac_cv_func_strptime=no
23077
fi
23078
 
23079
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23080
      conftest$ac_exeext conftest.$ac_ext
23081
fi
23082
{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
23083
echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
23084
if test $ac_cv_func_strptime = yes; then
23085
  SYS_STRPTIME=1
23086
else
23087
  SYS_STRPTIME=0
23088
fi
23089
 
23090
 
23091
# Define automake conditionals (for argtable2)
23092
 if test "$SYS_GETOPTLONG" = "1"; then
23093
  USE_SYS_GETOPTLONG_TRUE=
23094
  USE_SYS_GETOPTLONG_FALSE='#'
23095
else
23096
  USE_SYS_GETOPTLONG_TRUE='#'
23097
  USE_SYS_GETOPTLONG_FALSE=
23098
fi
23099
 
23100
 if test "$SYS_REGEX" = "1"; then
23101
  USE_ARGREX_TRUE=
23102
  USE_ARGREX_FALSE='#'
23103
else
23104
  USE_ARGREX_TRUE='#'
23105
  USE_ARGREX_FALSE=
23106
fi
23107
 
23108
 if test "$SYS_STRPTIME" = "1"; then
23109
  USE_ARGDATE_TRUE=
23110
  USE_ARGDATE_FALSE='#'
23111
else
23112
  USE_ARGDATE_TRUE='#'
23113
  USE_ARGDATE_FALSE=
23114
fi
23115
 
23116
 
23117 1745 jeremybenn
# check for "long long" (added by Erez)
23118 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
23119 1576 phoenix
/* confdefs.h.  */
23120
_ACEOF
23121
cat confdefs.h >>conftest.$ac_ext
23122
cat >>conftest.$ac_ext <<_ACEOF
23123
/* end confdefs.h.  */
23124 1242 hpanther
 
23125
int
23126
main ()
23127
{
23128 202 erez
long long ll; unsigned long long ull;
23129 1242 hpanther
  ;
23130
  return 0;
23131
}
23132
_ACEOF
23133
rm -f conftest.$ac_objext
23134 1743 jeremybenn
if { (ac_try="$ac_compile"
23135
case "(($ac_try" in
23136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137
  *) ac_try_echo=$ac_try;;
23138
esac
23139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140
  (eval "$ac_compile") 2>conftest.er1
23141 1242 hpanther
  ac_status=$?
23142 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23143
  rm -f conftest.er1
23144
  cat conftest.err >&5
23145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 1743 jeremybenn
  (exit $ac_status); } && {
23147
         test -z "$ac_c_werror_flag" ||
23148
         test ! -s conftest.err
23149
       } && test -s conftest.$ac_objext; then
23150 1576 phoenix
 
23151
cat >>confdefs.h <<\_ACEOF
23152 202 erez
#define CC_HAS_LONG_LONG 1
23153 1576 phoenix
_ACEOF
23154 202 erez
 
23155
else
23156 1242 hpanther
  echo "$as_me: failed program was:" >&5
23157 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23158
 
23159 1743 jeremybenn
 
23160 202 erez
fi
23161
 
23162 1743 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163
 
23164 1748 jeremybenn
# check for {u,}int{8,16,32}_t in inttypes.h.
23165 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
23166
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23167 1376 phoenix
if test "${ac_cv_type_uint8_t+set}" = set; then
23168
  echo $ECHO_N "(cached) $ECHO_C" >&6
23169
else
23170
  cat >conftest.$ac_ext <<_ACEOF
23171 1576 phoenix
/* confdefs.h.  */
23172
_ACEOF
23173
cat confdefs.h >>conftest.$ac_ext
23174
cat >>conftest.$ac_ext <<_ACEOF
23175
/* end confdefs.h.  */
23176 1376 phoenix
#include 
23177
 
23178 1743 jeremybenn
typedef uint8_t ac__type_new_;
23179 1376 phoenix
int
23180
main ()
23181
{
23182 1743 jeremybenn
if ((ac__type_new_ *) 0)
23183 1376 phoenix
  return 0;
23184 1743 jeremybenn
if (sizeof (ac__type_new_))
23185 1376 phoenix
  return 0;
23186
  ;
23187
  return 0;
23188
}
23189
_ACEOF
23190
rm -f conftest.$ac_objext
23191 1743 jeremybenn
if { (ac_try="$ac_compile"
23192
case "(($ac_try" in
23193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194
  *) ac_try_echo=$ac_try;;
23195
esac
23196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197
  (eval "$ac_compile") 2>conftest.er1
23198 1376 phoenix
  ac_status=$?
23199 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23200
  rm -f conftest.er1
23201
  cat conftest.err >&5
23202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 1743 jeremybenn
  (exit $ac_status); } && {
23204
         test -z "$ac_c_werror_flag" ||
23205
         test ! -s conftest.err
23206
       } && test -s conftest.$ac_objext; then
23207 1376 phoenix
  ac_cv_type_uint8_t=yes
23208
else
23209
  echo "$as_me: failed program was:" >&5
23210 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23211
 
23212 1743 jeremybenn
        ac_cv_type_uint8_t=no
23213 1376 phoenix
fi
23214 1743 jeremybenn
 
23215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23216 1376 phoenix
fi
23217 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23218
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23219 1376 phoenix
if test $ac_cv_type_uint8_t = yes; then
23220
 
23221 1576 phoenix
cat >>confdefs.h <<_ACEOF
23222 1376 phoenix
#define HAVE_UINT8_T 1
23223 1576 phoenix
_ACEOF
23224 1376 phoenix
 
23225 1576 phoenix
 
23226 1376 phoenix
fi
23227 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
23228
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23229 1376 phoenix
if test "${ac_cv_type_uint16_t+set}" = set; then
23230
  echo $ECHO_N "(cached) $ECHO_C" >&6
23231
else
23232
  cat >conftest.$ac_ext <<_ACEOF
23233 1576 phoenix
/* confdefs.h.  */
23234
_ACEOF
23235
cat confdefs.h >>conftest.$ac_ext
23236
cat >>conftest.$ac_ext <<_ACEOF
23237
/* end confdefs.h.  */
23238 1376 phoenix
#include 
23239
 
23240 1743 jeremybenn
typedef uint16_t ac__type_new_;
23241 1376 phoenix
int
23242
main ()
23243
{
23244 1743 jeremybenn
if ((ac__type_new_ *) 0)
23245 1376 phoenix
  return 0;
23246 1743 jeremybenn
if (sizeof (ac__type_new_))
23247 1376 phoenix
  return 0;
23248
  ;
23249
  return 0;
23250
}
23251
_ACEOF
23252
rm -f conftest.$ac_objext
23253 1743 jeremybenn
if { (ac_try="$ac_compile"
23254
case "(($ac_try" in
23255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256
  *) ac_try_echo=$ac_try;;
23257
esac
23258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259
  (eval "$ac_compile") 2>conftest.er1
23260 1376 phoenix
  ac_status=$?
23261 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23262
  rm -f conftest.er1
23263
  cat conftest.err >&5
23264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 1743 jeremybenn
  (exit $ac_status); } && {
23266
         test -z "$ac_c_werror_flag" ||
23267
         test ! -s conftest.err
23268
       } && test -s conftest.$ac_objext; then
23269 1376 phoenix
  ac_cv_type_uint16_t=yes
23270
else
23271
  echo "$as_me: failed program was:" >&5
23272 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23273
 
23274 1743 jeremybenn
        ac_cv_type_uint16_t=no
23275 1376 phoenix
fi
23276 1743 jeremybenn
 
23277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23278 1376 phoenix
fi
23279 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23280
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23281 1376 phoenix
if test $ac_cv_type_uint16_t = yes; then
23282
 
23283 1576 phoenix
cat >>confdefs.h <<_ACEOF
23284 1376 phoenix
#define HAVE_UINT16_T 1
23285 1576 phoenix
_ACEOF
23286 1376 phoenix
 
23287 1576 phoenix
 
23288 1376 phoenix
fi
23289 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
23290
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23291 1376 phoenix
if test "${ac_cv_type_uint32_t+set}" = set; then
23292
  echo $ECHO_N "(cached) $ECHO_C" >&6
23293
else
23294
  cat >conftest.$ac_ext <<_ACEOF
23295 1576 phoenix
/* confdefs.h.  */
23296
_ACEOF
23297
cat confdefs.h >>conftest.$ac_ext
23298
cat >>conftest.$ac_ext <<_ACEOF
23299
/* end confdefs.h.  */
23300 1376 phoenix
#include 
23301
 
23302 1743 jeremybenn
typedef uint32_t ac__type_new_;
23303 1376 phoenix
int
23304
main ()
23305
{
23306 1743 jeremybenn
if ((ac__type_new_ *) 0)
23307 1376 phoenix
  return 0;
23308 1743 jeremybenn
if (sizeof (ac__type_new_))
23309 1376 phoenix
  return 0;
23310
  ;
23311
  return 0;
23312
}
23313
_ACEOF
23314
rm -f conftest.$ac_objext
23315 1743 jeremybenn
if { (ac_try="$ac_compile"
23316
case "(($ac_try" in
23317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318
  *) ac_try_echo=$ac_try;;
23319
esac
23320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321
  (eval "$ac_compile") 2>conftest.er1
23322 1376 phoenix
  ac_status=$?
23323 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23324
  rm -f conftest.er1
23325
  cat conftest.err >&5
23326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 1743 jeremybenn
  (exit $ac_status); } && {
23328
         test -z "$ac_c_werror_flag" ||
23329
         test ! -s conftest.err
23330
       } && test -s conftest.$ac_objext; then
23331 1376 phoenix
  ac_cv_type_uint32_t=yes
23332
else
23333
  echo "$as_me: failed program was:" >&5
23334 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23335
 
23336 1743 jeremybenn
        ac_cv_type_uint32_t=no
23337 1376 phoenix
fi
23338 1743 jeremybenn
 
23339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23340 1376 phoenix
fi
23341 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23342
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23343 1376 phoenix
if test $ac_cv_type_uint32_t = yes; then
23344
 
23345 1576 phoenix
cat >>confdefs.h <<_ACEOF
23346 1376 phoenix
#define HAVE_UINT32_T 1
23347 1576 phoenix
_ACEOF
23348 1376 phoenix
 
23349 1576 phoenix
 
23350 1376 phoenix
fi
23351
 
23352 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for int8_t" >&5
23353
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
23354 1376 phoenix
if test "${ac_cv_type_int8_t+set}" = set; then
23355
  echo $ECHO_N "(cached) $ECHO_C" >&6
23356
else
23357
  cat >conftest.$ac_ext <<_ACEOF
23358 1576 phoenix
/* confdefs.h.  */
23359
_ACEOF
23360
cat confdefs.h >>conftest.$ac_ext
23361
cat >>conftest.$ac_ext <<_ACEOF
23362
/* end confdefs.h.  */
23363 1376 phoenix
#include 
23364
 
23365 1743 jeremybenn
typedef int8_t ac__type_new_;
23366 1376 phoenix
int
23367
main ()
23368
{
23369 1743 jeremybenn
if ((ac__type_new_ *) 0)
23370 1376 phoenix
  return 0;
23371 1743 jeremybenn
if (sizeof (ac__type_new_))
23372 1376 phoenix
  return 0;
23373
  ;
23374
  return 0;
23375
}
23376
_ACEOF
23377
rm -f conftest.$ac_objext
23378 1743 jeremybenn
if { (ac_try="$ac_compile"
23379
case "(($ac_try" in
23380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381
  *) ac_try_echo=$ac_try;;
23382
esac
23383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384
  (eval "$ac_compile") 2>conftest.er1
23385 1376 phoenix
  ac_status=$?
23386 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23387
  rm -f conftest.er1
23388
  cat conftest.err >&5
23389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 1743 jeremybenn
  (exit $ac_status); } && {
23391
         test -z "$ac_c_werror_flag" ||
23392
         test ! -s conftest.err
23393
       } && test -s conftest.$ac_objext; then
23394 1376 phoenix
  ac_cv_type_int8_t=yes
23395
else
23396
  echo "$as_me: failed program was:" >&5
23397 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23398
 
23399 1743 jeremybenn
        ac_cv_type_int8_t=no
23400 1376 phoenix
fi
23401 1743 jeremybenn
 
23402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23403 1376 phoenix
fi
23404 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
23405
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
23406 1376 phoenix
if test $ac_cv_type_int8_t = yes; then
23407
 
23408 1576 phoenix
cat >>confdefs.h <<_ACEOF
23409 1376 phoenix
#define HAVE_INT8_T 1
23410 1576 phoenix
_ACEOF
23411 1376 phoenix
 
23412 1576 phoenix
 
23413 1376 phoenix
fi
23414 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for int16_t" >&5
23415
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
23416 1376 phoenix
if test "${ac_cv_type_int16_t+set}" = set; then
23417
  echo $ECHO_N "(cached) $ECHO_C" >&6
23418
else
23419
  cat >conftest.$ac_ext <<_ACEOF
23420 1576 phoenix
/* confdefs.h.  */
23421
_ACEOF
23422
cat confdefs.h >>conftest.$ac_ext
23423
cat >>conftest.$ac_ext <<_ACEOF
23424
/* end confdefs.h.  */
23425 1376 phoenix
#include 
23426
 
23427 1743 jeremybenn
typedef int16_t ac__type_new_;
23428 1376 phoenix
int
23429
main ()
23430
{
23431 1743 jeremybenn
if ((ac__type_new_ *) 0)
23432 1376 phoenix
  return 0;
23433 1743 jeremybenn
if (sizeof (ac__type_new_))
23434 1376 phoenix
  return 0;
23435
  ;
23436
  return 0;
23437
}
23438
_ACEOF
23439
rm -f conftest.$ac_objext
23440 1743 jeremybenn
if { (ac_try="$ac_compile"
23441
case "(($ac_try" in
23442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443
  *) ac_try_echo=$ac_try;;
23444
esac
23445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446
  (eval "$ac_compile") 2>conftest.er1
23447 1376 phoenix
  ac_status=$?
23448 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23449
  rm -f conftest.er1
23450
  cat conftest.err >&5
23451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 1743 jeremybenn
  (exit $ac_status); } && {
23453
         test -z "$ac_c_werror_flag" ||
23454
         test ! -s conftest.err
23455
       } && test -s conftest.$ac_objext; then
23456 1376 phoenix
  ac_cv_type_int16_t=yes
23457
else
23458
  echo "$as_me: failed program was:" >&5
23459 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23460
 
23461 1743 jeremybenn
        ac_cv_type_int16_t=no
23462 1376 phoenix
fi
23463 1743 jeremybenn
 
23464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23465 1376 phoenix
fi
23466 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
23467
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
23468 1376 phoenix
if test $ac_cv_type_int16_t = yes; then
23469
 
23470 1576 phoenix
cat >>confdefs.h <<_ACEOF
23471 1376 phoenix
#define HAVE_INT16_T 1
23472 1576 phoenix
_ACEOF
23473 1376 phoenix
 
23474 1576 phoenix
 
23475 1376 phoenix
fi
23476 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for int32_t" >&5
23477
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
23478 1376 phoenix
if test "${ac_cv_type_int32_t+set}" = set; then
23479
  echo $ECHO_N "(cached) $ECHO_C" >&6
23480
else
23481
  cat >conftest.$ac_ext <<_ACEOF
23482 1576 phoenix
/* confdefs.h.  */
23483
_ACEOF
23484
cat confdefs.h >>conftest.$ac_ext
23485
cat >>conftest.$ac_ext <<_ACEOF
23486
/* end confdefs.h.  */
23487 1376 phoenix
#include 
23488
 
23489 1743 jeremybenn
typedef int32_t ac__type_new_;
23490 1376 phoenix
int
23491
main ()
23492
{
23493 1743 jeremybenn
if ((ac__type_new_ *) 0)
23494 1376 phoenix
  return 0;
23495 1743 jeremybenn
if (sizeof (ac__type_new_))
23496 1376 phoenix
  return 0;
23497
  ;
23498
  return 0;
23499
}
23500
_ACEOF
23501
rm -f conftest.$ac_objext
23502 1743 jeremybenn
if { (ac_try="$ac_compile"
23503
case "(($ac_try" in
23504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505
  *) ac_try_echo=$ac_try;;
23506
esac
23507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508
  (eval "$ac_compile") 2>conftest.er1
23509 1376 phoenix
  ac_status=$?
23510 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23511
  rm -f conftest.er1
23512
  cat conftest.err >&5
23513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 1743 jeremybenn
  (exit $ac_status); } && {
23515
         test -z "$ac_c_werror_flag" ||
23516
         test ! -s conftest.err
23517
       } && test -s conftest.$ac_objext; then
23518 1376 phoenix
  ac_cv_type_int32_t=yes
23519
else
23520
  echo "$as_me: failed program was:" >&5
23521 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23522
 
23523 1743 jeremybenn
        ac_cv_type_int32_t=no
23524 1376 phoenix
fi
23525 1743 jeremybenn
 
23526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23527 1376 phoenix
fi
23528 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23529
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23530 1376 phoenix
if test $ac_cv_type_int32_t = yes; then
23531
 
23532 1576 phoenix
cat >>confdefs.h <<_ACEOF
23533 1376 phoenix
#define HAVE_INT32_T 1
23534 1576 phoenix
_ACEOF
23535 1376 phoenix
 
23536 1576 phoenix
 
23537 1376 phoenix
fi
23538
 
23539 1576 phoenix
 
23540 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for char" >&5
23541
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23542 1376 phoenix
if test "${ac_cv_type_char+set}" = set; then
23543
  echo $ECHO_N "(cached) $ECHO_C" >&6
23544
else
23545
  cat >conftest.$ac_ext <<_ACEOF
23546 1576 phoenix
/* confdefs.h.  */
23547
_ACEOF
23548
cat confdefs.h >>conftest.$ac_ext
23549
cat >>conftest.$ac_ext <<_ACEOF
23550
/* end confdefs.h.  */
23551 1376 phoenix
$ac_includes_default
23552 1743 jeremybenn
typedef char ac__type_new_;
23553 1376 phoenix
int
23554
main ()
23555
{
23556 1743 jeremybenn
if ((ac__type_new_ *) 0)
23557 1376 phoenix
  return 0;
23558 1743 jeremybenn
if (sizeof (ac__type_new_))
23559 1376 phoenix
  return 0;
23560
  ;
23561
  return 0;
23562
}
23563
_ACEOF
23564
rm -f conftest.$ac_objext
23565 1743 jeremybenn
if { (ac_try="$ac_compile"
23566
case "(($ac_try" in
23567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568
  *) ac_try_echo=$ac_try;;
23569
esac
23570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571
  (eval "$ac_compile") 2>conftest.er1
23572 1376 phoenix
  ac_status=$?
23573 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23574
  rm -f conftest.er1
23575
  cat conftest.err >&5
23576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 1743 jeremybenn
  (exit $ac_status); } && {
23578
         test -z "$ac_c_werror_flag" ||
23579
         test ! -s conftest.err
23580
       } && test -s conftest.$ac_objext; then
23581 1376 phoenix
  ac_cv_type_char=yes
23582
else
23583
  echo "$as_me: failed program was:" >&5
23584 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23585
 
23586 1743 jeremybenn
        ac_cv_type_char=no
23587 1376 phoenix
fi
23588 1743 jeremybenn
 
23589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 1376 phoenix
fi
23591 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23592
echo "${ECHO_T}$ac_cv_type_char" >&6; }
23593 1376 phoenix
 
23594 1743 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
23595
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23596
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23597
# This bug is HP SR number 8606223364.
23598
{ echo "$as_me:$LINENO: checking size of char" >&5
23599
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23600 1376 phoenix
if test "${ac_cv_sizeof_char+set}" = set; then
23601
  echo $ECHO_N "(cached) $ECHO_C" >&6
23602
else
23603
  if test "$cross_compiling" = yes; then
23604
  # Depending upon the size, compute the lo and hi bounds.
23605
cat >conftest.$ac_ext <<_ACEOF
23606 1576 phoenix
/* confdefs.h.  */
23607
_ACEOF
23608
cat confdefs.h >>conftest.$ac_ext
23609
cat >>conftest.$ac_ext <<_ACEOF
23610
/* end confdefs.h.  */
23611 1376 phoenix
$ac_includes_default
23612 1743 jeremybenn
   typedef char ac__type_sizeof_;
23613 1376 phoenix
int
23614
main ()
23615
{
23616 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23617 1576 phoenix
test_array [0] = 0
23618
 
23619 1376 phoenix
  ;
23620
  return 0;
23621
}
23622
_ACEOF
23623
rm -f conftest.$ac_objext
23624 1743 jeremybenn
if { (ac_try="$ac_compile"
23625
case "(($ac_try" in
23626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627
  *) ac_try_echo=$ac_try;;
23628
esac
23629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630
  (eval "$ac_compile") 2>conftest.er1
23631 1376 phoenix
  ac_status=$?
23632 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23633
  rm -f conftest.er1
23634
  cat conftest.err >&5
23635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 1743 jeremybenn
  (exit $ac_status); } && {
23637
         test -z "$ac_c_werror_flag" ||
23638
         test ! -s conftest.err
23639
       } && test -s conftest.$ac_objext; then
23640 1376 phoenix
  ac_lo=0 ac_mid=0
23641
  while :; do
23642
    cat >conftest.$ac_ext <<_ACEOF
23643 1576 phoenix
/* confdefs.h.  */
23644
_ACEOF
23645
cat confdefs.h >>conftest.$ac_ext
23646
cat >>conftest.$ac_ext <<_ACEOF
23647
/* end confdefs.h.  */
23648 1376 phoenix
$ac_includes_default
23649 1743 jeremybenn
   typedef char ac__type_sizeof_;
23650 1376 phoenix
int
23651
main ()
23652
{
23653 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23654 1576 phoenix
test_array [0] = 0
23655
 
23656 1376 phoenix
  ;
23657
  return 0;
23658
}
23659
_ACEOF
23660
rm -f conftest.$ac_objext
23661 1743 jeremybenn
if { (ac_try="$ac_compile"
23662
case "(($ac_try" in
23663
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664
  *) ac_try_echo=$ac_try;;
23665
esac
23666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667
  (eval "$ac_compile") 2>conftest.er1
23668 1376 phoenix
  ac_status=$?
23669 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23670
  rm -f conftest.er1
23671
  cat conftest.err >&5
23672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 1743 jeremybenn
  (exit $ac_status); } && {
23674
         test -z "$ac_c_werror_flag" ||
23675
         test ! -s conftest.err
23676
       } && test -s conftest.$ac_objext; then
23677 1376 phoenix
  ac_hi=$ac_mid; break
23678
else
23679
  echo "$as_me: failed program was:" >&5
23680 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23681
 
23682 1743 jeremybenn
        ac_lo=`expr $ac_mid + 1`
23683
                        if test $ac_lo -le $ac_mid; then
23684
                          ac_lo= ac_hi=
23685
                          break
23686
                        fi
23687
                        ac_mid=`expr 2 '*' $ac_mid + 1`
23688 1376 phoenix
fi
23689 1743 jeremybenn
 
23690
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23691 1376 phoenix
  done
23692
else
23693
  echo "$as_me: failed program was:" >&5
23694 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23695
 
23696 1743 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
23697 1576 phoenix
/* confdefs.h.  */
23698
_ACEOF
23699
cat confdefs.h >>conftest.$ac_ext
23700
cat >>conftest.$ac_ext <<_ACEOF
23701
/* end confdefs.h.  */
23702
$ac_includes_default
23703 1743 jeremybenn
   typedef char ac__type_sizeof_;
23704 1576 phoenix
int
23705
main ()
23706
{
23707 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23708 1576 phoenix
test_array [0] = 0
23709
 
23710
  ;
23711
  return 0;
23712
}
23713
_ACEOF
23714
rm -f conftest.$ac_objext
23715 1743 jeremybenn
if { (ac_try="$ac_compile"
23716
case "(($ac_try" in
23717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718
  *) ac_try_echo=$ac_try;;
23719
esac
23720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721
  (eval "$ac_compile") 2>conftest.er1
23722 1576 phoenix
  ac_status=$?
23723
  grep -v '^ *+' conftest.er1 >conftest.err
23724
  rm -f conftest.er1
23725
  cat conftest.err >&5
23726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 1743 jeremybenn
  (exit $ac_status); } && {
23728
         test -z "$ac_c_werror_flag" ||
23729
         test ! -s conftest.err
23730
       } && test -s conftest.$ac_objext; then
23731 1576 phoenix
  ac_hi=-1 ac_mid=-1
23732 1376 phoenix
  while :; do
23733
    cat >conftest.$ac_ext <<_ACEOF
23734 1576 phoenix
/* confdefs.h.  */
23735
_ACEOF
23736
cat confdefs.h >>conftest.$ac_ext
23737
cat >>conftest.$ac_ext <<_ACEOF
23738
/* end confdefs.h.  */
23739 1376 phoenix
$ac_includes_default
23740 1743 jeremybenn
   typedef char ac__type_sizeof_;
23741 1376 phoenix
int
23742
main ()
23743
{
23744 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23745 1576 phoenix
test_array [0] = 0
23746
 
23747 1376 phoenix
  ;
23748
  return 0;
23749
}
23750
_ACEOF
23751
rm -f conftest.$ac_objext
23752 1743 jeremybenn
if { (ac_try="$ac_compile"
23753
case "(($ac_try" in
23754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755
  *) ac_try_echo=$ac_try;;
23756
esac
23757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23758
  (eval "$ac_compile") 2>conftest.er1
23759 1376 phoenix
  ac_status=$?
23760 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23761
  rm -f conftest.er1
23762
  cat conftest.err >&5
23763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 1743 jeremybenn
  (exit $ac_status); } && {
23765
         test -z "$ac_c_werror_flag" ||
23766
         test ! -s conftest.err
23767
       } && test -s conftest.$ac_objext; then
23768 1376 phoenix
  ac_lo=$ac_mid; break
23769
else
23770
  echo "$as_me: failed program was:" >&5
23771 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23772
 
23773 1743 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
23774
                        if test $ac_mid -le $ac_hi; then
23775
                          ac_lo= ac_hi=
23776
                          break
23777
                        fi
23778
                        ac_mid=`expr 2 '*' $ac_mid`
23779 1376 phoenix
fi
23780 1743 jeremybenn
 
23781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 1376 phoenix
  done
23783 1576 phoenix
else
23784
  echo "$as_me: failed program was:" >&5
23785
sed 's/^/| /' conftest.$ac_ext >&5
23786
 
23787 1743 jeremybenn
        ac_lo= ac_hi=
23788 1376 phoenix
fi
23789 1743 jeremybenn
 
23790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791 1576 phoenix
fi
23792 1743 jeremybenn
 
23793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 1376 phoenix
# Binary search between lo and hi bounds.
23795
while test "x$ac_lo" != "x$ac_hi"; do
23796
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23797
  cat >conftest.$ac_ext <<_ACEOF
23798 1576 phoenix
/* confdefs.h.  */
23799
_ACEOF
23800
cat confdefs.h >>conftest.$ac_ext
23801
cat >>conftest.$ac_ext <<_ACEOF
23802
/* end confdefs.h.  */
23803 1376 phoenix
$ac_includes_default
23804 1743 jeremybenn
   typedef char ac__type_sizeof_;
23805 1376 phoenix
int
23806
main ()
23807
{
23808 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23809 1576 phoenix
test_array [0] = 0
23810
 
23811 1376 phoenix
  ;
23812
  return 0;
23813
}
23814
_ACEOF
23815
rm -f conftest.$ac_objext
23816 1743 jeremybenn
if { (ac_try="$ac_compile"
23817
case "(($ac_try" in
23818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23819
  *) ac_try_echo=$ac_try;;
23820
esac
23821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23822
  (eval "$ac_compile") 2>conftest.er1
23823 1376 phoenix
  ac_status=$?
23824 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23825
  rm -f conftest.er1
23826
  cat conftest.err >&5
23827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 1743 jeremybenn
  (exit $ac_status); } && {
23829
         test -z "$ac_c_werror_flag" ||
23830
         test ! -s conftest.err
23831
       } && test -s conftest.$ac_objext; then
23832 1376 phoenix
  ac_hi=$ac_mid
23833
else
23834
  echo "$as_me: failed program was:" >&5
23835 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23836
 
23837 1743 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
23838 1376 phoenix
fi
23839 1743 jeremybenn
 
23840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841 1376 phoenix
done
23842 1576 phoenix
case $ac_lo in
23843
?*) ac_cv_sizeof_char=$ac_lo;;
23844 1743 jeremybenn
'') if test "$ac_cv_type_char" = yes; then
23845
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23846 1576 phoenix
See \`config.log' for more details." >&5
23847 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (char)
23848 1576 phoenix
See \`config.log' for more details." >&2;}
23849 1743 jeremybenn
   { (exit 77); exit 77; }; }
23850
   else
23851
     ac_cv_sizeof_char=0
23852
   fi ;;
23853 1576 phoenix
esac
23854 1376 phoenix
else
23855
  cat >conftest.$ac_ext <<_ACEOF
23856 1576 phoenix
/* confdefs.h.  */
23857
_ACEOF
23858
cat confdefs.h >>conftest.$ac_ext
23859
cat >>conftest.$ac_ext <<_ACEOF
23860
/* end confdefs.h.  */
23861 1376 phoenix
$ac_includes_default
23862 1743 jeremybenn
   typedef char ac__type_sizeof_;
23863
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23864
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23865 1576 phoenix
#include 
23866
#include 
23867 1376 phoenix
int
23868
main ()
23869
{
23870 1576 phoenix
 
23871
  FILE *f = fopen ("conftest.val", "w");
23872
  if (! f)
23873 1743 jeremybenn
    return 1;
23874
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23875 1576 phoenix
    {
23876 1743 jeremybenn
      long int i = longval ();
23877
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23878
        return 1;
23879 1576 phoenix
      fprintf (f, "%ld\n", i);
23880
    }
23881
  else
23882
    {
23883 1743 jeremybenn
      unsigned long int i = ulongval ();
23884
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23885
        return 1;
23886 1576 phoenix
      fprintf (f, "%lu\n", i);
23887
    }
23888 1743 jeremybenn
  return ferror (f) || fclose (f) != 0;
23889 1576 phoenix
 
23890 1376 phoenix
  ;
23891
  return 0;
23892
}
23893
_ACEOF
23894
rm -f conftest$ac_exeext
23895 1743 jeremybenn
if { (ac_try="$ac_link"
23896
case "(($ac_try" in
23897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898
  *) ac_try_echo=$ac_try;;
23899
esac
23900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901
  (eval "$ac_link") 2>&5
23902 1376 phoenix
  ac_status=$?
23903 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23905 1743 jeremybenn
  { (case "(($ac_try" in
23906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907
  *) ac_try_echo=$ac_try;;
23908
esac
23909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910
  (eval "$ac_try") 2>&5
23911 1376 phoenix
  ac_status=$?
23912 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 1376 phoenix
  (exit $ac_status); }; }; then
23914
  ac_cv_sizeof_char=`cat conftest.val`
23915
else
23916
  echo "$as_me: program exited with status $ac_status" >&5
23917
echo "$as_me: failed program was:" >&5
23918 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23919
 
23920
( exit $ac_status )
23921 1743 jeremybenn
if test "$ac_cv_type_char" = yes; then
23922
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23923 1576 phoenix
See \`config.log' for more details." >&5
23924 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (char)
23925 1576 phoenix
See \`config.log' for more details." >&2;}
23926 1743 jeremybenn
   { (exit 77); exit 77; }; }
23927
   else
23928
     ac_cv_sizeof_char=0
23929
   fi
23930 1376 phoenix
fi
23931 1743 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23932 1376 phoenix
fi
23933
rm -f conftest.val
23934
fi
23935 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23936
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23937
 
23938
 
23939
 
23940 1576 phoenix
cat >>confdefs.h <<_ACEOF
23941 1376 phoenix
#define SIZEOF_CHAR $ac_cv_sizeof_char
23942 1576 phoenix
_ACEOF
23943 1376 phoenix
 
23944 1576 phoenix
 
23945 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for short" >&5
23946
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
23947 1376 phoenix
if test "${ac_cv_type_short+set}" = set; then
23948
  echo $ECHO_N "(cached) $ECHO_C" >&6
23949
else
23950
  cat >conftest.$ac_ext <<_ACEOF
23951 1576 phoenix
/* confdefs.h.  */
23952
_ACEOF
23953
cat confdefs.h >>conftest.$ac_ext
23954
cat >>conftest.$ac_ext <<_ACEOF
23955
/* end confdefs.h.  */
23956 1376 phoenix
$ac_includes_default
23957 1743 jeremybenn
typedef short ac__type_new_;
23958 1376 phoenix
int
23959
main ()
23960
{
23961 1743 jeremybenn
if ((ac__type_new_ *) 0)
23962 1376 phoenix
  return 0;
23963 1743 jeremybenn
if (sizeof (ac__type_new_))
23964 1376 phoenix
  return 0;
23965
  ;
23966
  return 0;
23967
}
23968
_ACEOF
23969
rm -f conftest.$ac_objext
23970 1743 jeremybenn
if { (ac_try="$ac_compile"
23971
case "(($ac_try" in
23972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973
  *) ac_try_echo=$ac_try;;
23974
esac
23975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976
  (eval "$ac_compile") 2>conftest.er1
23977 1376 phoenix
  ac_status=$?
23978 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
23979
  rm -f conftest.er1
23980
  cat conftest.err >&5
23981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 1743 jeremybenn
  (exit $ac_status); } && {
23983
         test -z "$ac_c_werror_flag" ||
23984
         test ! -s conftest.err
23985
       } && test -s conftest.$ac_objext; then
23986 1376 phoenix
  ac_cv_type_short=yes
23987
else
23988
  echo "$as_me: failed program was:" >&5
23989 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
23990
 
23991 1743 jeremybenn
        ac_cv_type_short=no
23992 1376 phoenix
fi
23993 1743 jeremybenn
 
23994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23995 1376 phoenix
fi
23996 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
23997
echo "${ECHO_T}$ac_cv_type_short" >&6; }
23998 1376 phoenix
 
23999 1743 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
24000
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24001
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24002
# This bug is HP SR number 8606223364.
24003
{ echo "$as_me:$LINENO: checking size of short" >&5
24004
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
24005 1376 phoenix
if test "${ac_cv_sizeof_short+set}" = set; then
24006
  echo $ECHO_N "(cached) $ECHO_C" >&6
24007
else
24008
  if test "$cross_compiling" = yes; then
24009
  # Depending upon the size, compute the lo and hi bounds.
24010
cat >conftest.$ac_ext <<_ACEOF
24011 1576 phoenix
/* confdefs.h.  */
24012
_ACEOF
24013
cat confdefs.h >>conftest.$ac_ext
24014
cat >>conftest.$ac_ext <<_ACEOF
24015
/* end confdefs.h.  */
24016 1376 phoenix
$ac_includes_default
24017 1743 jeremybenn
   typedef short ac__type_sizeof_;
24018 1376 phoenix
int
24019
main ()
24020
{
24021 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24022 1576 phoenix
test_array [0] = 0
24023
 
24024 1376 phoenix
  ;
24025
  return 0;
24026
}
24027
_ACEOF
24028
rm -f conftest.$ac_objext
24029 1743 jeremybenn
if { (ac_try="$ac_compile"
24030
case "(($ac_try" in
24031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032
  *) ac_try_echo=$ac_try;;
24033
esac
24034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035
  (eval "$ac_compile") 2>conftest.er1
24036 1376 phoenix
  ac_status=$?
24037 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24038
  rm -f conftest.er1
24039
  cat conftest.err >&5
24040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 1743 jeremybenn
  (exit $ac_status); } && {
24042
         test -z "$ac_c_werror_flag" ||
24043
         test ! -s conftest.err
24044
       } && test -s conftest.$ac_objext; then
24045 1376 phoenix
  ac_lo=0 ac_mid=0
24046
  while :; do
24047
    cat >conftest.$ac_ext <<_ACEOF
24048 1576 phoenix
/* confdefs.h.  */
24049
_ACEOF
24050
cat confdefs.h >>conftest.$ac_ext
24051
cat >>conftest.$ac_ext <<_ACEOF
24052
/* end confdefs.h.  */
24053 1376 phoenix
$ac_includes_default
24054 1743 jeremybenn
   typedef short ac__type_sizeof_;
24055 1376 phoenix
int
24056
main ()
24057
{
24058 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24059 1576 phoenix
test_array [0] = 0
24060
 
24061 1376 phoenix
  ;
24062
  return 0;
24063
}
24064
_ACEOF
24065
rm -f conftest.$ac_objext
24066 1743 jeremybenn
if { (ac_try="$ac_compile"
24067
case "(($ac_try" in
24068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069
  *) ac_try_echo=$ac_try;;
24070
esac
24071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072
  (eval "$ac_compile") 2>conftest.er1
24073 1376 phoenix
  ac_status=$?
24074 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24075
  rm -f conftest.er1
24076
  cat conftest.err >&5
24077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 1743 jeremybenn
  (exit $ac_status); } && {
24079
         test -z "$ac_c_werror_flag" ||
24080
         test ! -s conftest.err
24081
       } && test -s conftest.$ac_objext; then
24082 1376 phoenix
  ac_hi=$ac_mid; break
24083
else
24084
  echo "$as_me: failed program was:" >&5
24085 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24086
 
24087 1743 jeremybenn
        ac_lo=`expr $ac_mid + 1`
24088
                        if test $ac_lo -le $ac_mid; then
24089
                          ac_lo= ac_hi=
24090
                          break
24091
                        fi
24092
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24093 1376 phoenix
fi
24094 1743 jeremybenn
 
24095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24096 1376 phoenix
  done
24097
else
24098
  echo "$as_me: failed program was:" >&5
24099 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24100
 
24101 1743 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
24102 1576 phoenix
/* confdefs.h.  */
24103
_ACEOF
24104
cat confdefs.h >>conftest.$ac_ext
24105
cat >>conftest.$ac_ext <<_ACEOF
24106
/* end confdefs.h.  */
24107
$ac_includes_default
24108 1743 jeremybenn
   typedef short ac__type_sizeof_;
24109 1576 phoenix
int
24110
main ()
24111
{
24112 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24113 1576 phoenix
test_array [0] = 0
24114
 
24115
  ;
24116
  return 0;
24117
}
24118
_ACEOF
24119
rm -f conftest.$ac_objext
24120 1743 jeremybenn
if { (ac_try="$ac_compile"
24121
case "(($ac_try" in
24122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123
  *) ac_try_echo=$ac_try;;
24124
esac
24125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126
  (eval "$ac_compile") 2>conftest.er1
24127 1576 phoenix
  ac_status=$?
24128
  grep -v '^ *+' conftest.er1 >conftest.err
24129
  rm -f conftest.er1
24130
  cat conftest.err >&5
24131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 1743 jeremybenn
  (exit $ac_status); } && {
24133
         test -z "$ac_c_werror_flag" ||
24134
         test ! -s conftest.err
24135
       } && test -s conftest.$ac_objext; then
24136 1576 phoenix
  ac_hi=-1 ac_mid=-1
24137 1376 phoenix
  while :; do
24138
    cat >conftest.$ac_ext <<_ACEOF
24139 1576 phoenix
/* confdefs.h.  */
24140
_ACEOF
24141
cat confdefs.h >>conftest.$ac_ext
24142
cat >>conftest.$ac_ext <<_ACEOF
24143
/* end confdefs.h.  */
24144 1376 phoenix
$ac_includes_default
24145 1743 jeremybenn
   typedef short ac__type_sizeof_;
24146 1376 phoenix
int
24147
main ()
24148
{
24149 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24150 1576 phoenix
test_array [0] = 0
24151
 
24152 1376 phoenix
  ;
24153
  return 0;
24154
}
24155
_ACEOF
24156
rm -f conftest.$ac_objext
24157 1743 jeremybenn
if { (ac_try="$ac_compile"
24158
case "(($ac_try" in
24159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160
  *) ac_try_echo=$ac_try;;
24161
esac
24162
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24163
  (eval "$ac_compile") 2>conftest.er1
24164 1376 phoenix
  ac_status=$?
24165 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24166
  rm -f conftest.er1
24167
  cat conftest.err >&5
24168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 1743 jeremybenn
  (exit $ac_status); } && {
24170
         test -z "$ac_c_werror_flag" ||
24171
         test ! -s conftest.err
24172
       } && test -s conftest.$ac_objext; then
24173 1376 phoenix
  ac_lo=$ac_mid; break
24174
else
24175
  echo "$as_me: failed program was:" >&5
24176 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24177
 
24178 1743 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
24179
                        if test $ac_mid -le $ac_hi; then
24180
                          ac_lo= ac_hi=
24181
                          break
24182
                        fi
24183
                        ac_mid=`expr 2 '*' $ac_mid`
24184 1376 phoenix
fi
24185 1743 jeremybenn
 
24186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187 1376 phoenix
  done
24188 1576 phoenix
else
24189
  echo "$as_me: failed program was:" >&5
24190
sed 's/^/| /' conftest.$ac_ext >&5
24191
 
24192 1743 jeremybenn
        ac_lo= ac_hi=
24193 1376 phoenix
fi
24194 1743 jeremybenn
 
24195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196 1576 phoenix
fi
24197 1743 jeremybenn
 
24198
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199 1376 phoenix
# Binary search between lo and hi bounds.
24200
while test "x$ac_lo" != "x$ac_hi"; do
24201
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24202
  cat >conftest.$ac_ext <<_ACEOF
24203 1576 phoenix
/* confdefs.h.  */
24204
_ACEOF
24205
cat confdefs.h >>conftest.$ac_ext
24206
cat >>conftest.$ac_ext <<_ACEOF
24207
/* end confdefs.h.  */
24208 1376 phoenix
$ac_includes_default
24209 1743 jeremybenn
   typedef short ac__type_sizeof_;
24210 1376 phoenix
int
24211
main ()
24212
{
24213 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24214 1576 phoenix
test_array [0] = 0
24215
 
24216 1376 phoenix
  ;
24217
  return 0;
24218
}
24219
_ACEOF
24220
rm -f conftest.$ac_objext
24221 1743 jeremybenn
if { (ac_try="$ac_compile"
24222
case "(($ac_try" in
24223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224
  *) ac_try_echo=$ac_try;;
24225
esac
24226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24227
  (eval "$ac_compile") 2>conftest.er1
24228 1376 phoenix
  ac_status=$?
24229 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24230
  rm -f conftest.er1
24231
  cat conftest.err >&5
24232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 1743 jeremybenn
  (exit $ac_status); } && {
24234
         test -z "$ac_c_werror_flag" ||
24235
         test ! -s conftest.err
24236
       } && test -s conftest.$ac_objext; then
24237 1376 phoenix
  ac_hi=$ac_mid
24238
else
24239
  echo "$as_me: failed program was:" >&5
24240 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24241
 
24242 1743 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
24243 1376 phoenix
fi
24244 1743 jeremybenn
 
24245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 1376 phoenix
done
24247 1576 phoenix
case $ac_lo in
24248
?*) ac_cv_sizeof_short=$ac_lo;;
24249 1743 jeremybenn
'') if test "$ac_cv_type_short" = yes; then
24250
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24251 1576 phoenix
See \`config.log' for more details." >&5
24252 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (short)
24253 1576 phoenix
See \`config.log' for more details." >&2;}
24254 1743 jeremybenn
   { (exit 77); exit 77; }; }
24255
   else
24256
     ac_cv_sizeof_short=0
24257
   fi ;;
24258 1576 phoenix
esac
24259 1376 phoenix
else
24260
  cat >conftest.$ac_ext <<_ACEOF
24261 1576 phoenix
/* confdefs.h.  */
24262
_ACEOF
24263
cat confdefs.h >>conftest.$ac_ext
24264
cat >>conftest.$ac_ext <<_ACEOF
24265
/* end confdefs.h.  */
24266 1376 phoenix
$ac_includes_default
24267 1743 jeremybenn
   typedef short ac__type_sizeof_;
24268
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24269
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24270 1576 phoenix
#include 
24271
#include 
24272 1376 phoenix
int
24273
main ()
24274
{
24275 1576 phoenix
 
24276
  FILE *f = fopen ("conftest.val", "w");
24277
  if (! f)
24278 1743 jeremybenn
    return 1;
24279
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24280 1576 phoenix
    {
24281 1743 jeremybenn
      long int i = longval ();
24282
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24283
        return 1;
24284 1576 phoenix
      fprintf (f, "%ld\n", i);
24285
    }
24286
  else
24287
    {
24288 1743 jeremybenn
      unsigned long int i = ulongval ();
24289
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24290
        return 1;
24291 1576 phoenix
      fprintf (f, "%lu\n", i);
24292
    }
24293 1743 jeremybenn
  return ferror (f) || fclose (f) != 0;
24294 1576 phoenix
 
24295 1376 phoenix
  ;
24296
  return 0;
24297
}
24298
_ACEOF
24299
rm -f conftest$ac_exeext
24300 1743 jeremybenn
if { (ac_try="$ac_link"
24301
case "(($ac_try" in
24302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303
  *) ac_try_echo=$ac_try;;
24304
esac
24305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306
  (eval "$ac_link") 2>&5
24307 1376 phoenix
  ac_status=$?
24308 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24310 1743 jeremybenn
  { (case "(($ac_try" in
24311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312
  *) ac_try_echo=$ac_try;;
24313
esac
24314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315
  (eval "$ac_try") 2>&5
24316 1376 phoenix
  ac_status=$?
24317 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 1376 phoenix
  (exit $ac_status); }; }; then
24319
  ac_cv_sizeof_short=`cat conftest.val`
24320
else
24321
  echo "$as_me: program exited with status $ac_status" >&5
24322
echo "$as_me: failed program was:" >&5
24323 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24324
 
24325
( exit $ac_status )
24326 1743 jeremybenn
if test "$ac_cv_type_short" = yes; then
24327
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24328 1576 phoenix
See \`config.log' for more details." >&5
24329 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (short)
24330 1576 phoenix
See \`config.log' for more details." >&2;}
24331 1743 jeremybenn
   { (exit 77); exit 77; }; }
24332
   else
24333
     ac_cv_sizeof_short=0
24334
   fi
24335 1376 phoenix
fi
24336 1743 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24337 1376 phoenix
fi
24338
rm -f conftest.val
24339
fi
24340 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
24341
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
24342
 
24343
 
24344
 
24345 1576 phoenix
cat >>confdefs.h <<_ACEOF
24346 1376 phoenix
#define SIZEOF_SHORT $ac_cv_sizeof_short
24347 1576 phoenix
_ACEOF
24348 1376 phoenix
 
24349 1576 phoenix
 
24350 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for int" >&5
24351
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24352 1376 phoenix
if test "${ac_cv_type_int+set}" = set; then
24353
  echo $ECHO_N "(cached) $ECHO_C" >&6
24354
else
24355
  cat >conftest.$ac_ext <<_ACEOF
24356 1576 phoenix
/* confdefs.h.  */
24357
_ACEOF
24358
cat confdefs.h >>conftest.$ac_ext
24359
cat >>conftest.$ac_ext <<_ACEOF
24360
/* end confdefs.h.  */
24361 1376 phoenix
$ac_includes_default
24362 1743 jeremybenn
typedef int ac__type_new_;
24363 1376 phoenix
int
24364
main ()
24365
{
24366 1743 jeremybenn
if ((ac__type_new_ *) 0)
24367 1376 phoenix
  return 0;
24368 1743 jeremybenn
if (sizeof (ac__type_new_))
24369 1376 phoenix
  return 0;
24370
  ;
24371
  return 0;
24372
}
24373
_ACEOF
24374
rm -f conftest.$ac_objext
24375 1743 jeremybenn
if { (ac_try="$ac_compile"
24376
case "(($ac_try" in
24377
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24378
  *) ac_try_echo=$ac_try;;
24379
esac
24380
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24381
  (eval "$ac_compile") 2>conftest.er1
24382 1376 phoenix
  ac_status=$?
24383 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24384
  rm -f conftest.er1
24385
  cat conftest.err >&5
24386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 1743 jeremybenn
  (exit $ac_status); } && {
24388
         test -z "$ac_c_werror_flag" ||
24389
         test ! -s conftest.err
24390
       } && test -s conftest.$ac_objext; then
24391 1376 phoenix
  ac_cv_type_int=yes
24392
else
24393
  echo "$as_me: failed program was:" >&5
24394 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24395
 
24396 1743 jeremybenn
        ac_cv_type_int=no
24397 1376 phoenix
fi
24398 1743 jeremybenn
 
24399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24400 1376 phoenix
fi
24401 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24402
echo "${ECHO_T}$ac_cv_type_int" >&6; }
24403 1376 phoenix
 
24404 1743 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
24405
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24406
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24407
# This bug is HP SR number 8606223364.
24408
{ echo "$as_me:$LINENO: checking size of int" >&5
24409
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24410 1376 phoenix
if test "${ac_cv_sizeof_int+set}" = set; then
24411
  echo $ECHO_N "(cached) $ECHO_C" >&6
24412
else
24413
  if test "$cross_compiling" = yes; then
24414
  # Depending upon the size, compute the lo and hi bounds.
24415
cat >conftest.$ac_ext <<_ACEOF
24416 1576 phoenix
/* confdefs.h.  */
24417
_ACEOF
24418
cat confdefs.h >>conftest.$ac_ext
24419
cat >>conftest.$ac_ext <<_ACEOF
24420
/* end confdefs.h.  */
24421 1376 phoenix
$ac_includes_default
24422 1743 jeremybenn
   typedef int ac__type_sizeof_;
24423 1376 phoenix
int
24424
main ()
24425
{
24426 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24427 1576 phoenix
test_array [0] = 0
24428
 
24429 1376 phoenix
  ;
24430
  return 0;
24431
}
24432
_ACEOF
24433
rm -f conftest.$ac_objext
24434 1743 jeremybenn
if { (ac_try="$ac_compile"
24435
case "(($ac_try" in
24436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437
  *) ac_try_echo=$ac_try;;
24438
esac
24439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440
  (eval "$ac_compile") 2>conftest.er1
24441 1376 phoenix
  ac_status=$?
24442 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24443
  rm -f conftest.er1
24444
  cat conftest.err >&5
24445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 1743 jeremybenn
  (exit $ac_status); } && {
24447
         test -z "$ac_c_werror_flag" ||
24448
         test ! -s conftest.err
24449
       } && test -s conftest.$ac_objext; then
24450 1376 phoenix
  ac_lo=0 ac_mid=0
24451
  while :; do
24452
    cat >conftest.$ac_ext <<_ACEOF
24453 1576 phoenix
/* confdefs.h.  */
24454
_ACEOF
24455
cat confdefs.h >>conftest.$ac_ext
24456
cat >>conftest.$ac_ext <<_ACEOF
24457
/* end confdefs.h.  */
24458 1376 phoenix
$ac_includes_default
24459 1743 jeremybenn
   typedef int ac__type_sizeof_;
24460 1376 phoenix
int
24461
main ()
24462
{
24463 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24464 1576 phoenix
test_array [0] = 0
24465
 
24466 1376 phoenix
  ;
24467
  return 0;
24468
}
24469
_ACEOF
24470
rm -f conftest.$ac_objext
24471 1743 jeremybenn
if { (ac_try="$ac_compile"
24472
case "(($ac_try" in
24473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474
  *) ac_try_echo=$ac_try;;
24475
esac
24476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24477
  (eval "$ac_compile") 2>conftest.er1
24478 1376 phoenix
  ac_status=$?
24479 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24480
  rm -f conftest.er1
24481
  cat conftest.err >&5
24482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 1743 jeremybenn
  (exit $ac_status); } && {
24484
         test -z "$ac_c_werror_flag" ||
24485
         test ! -s conftest.err
24486
       } && test -s conftest.$ac_objext; then
24487 1376 phoenix
  ac_hi=$ac_mid; break
24488
else
24489
  echo "$as_me: failed program was:" >&5
24490 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24491
 
24492 1743 jeremybenn
        ac_lo=`expr $ac_mid + 1`
24493
                        if test $ac_lo -le $ac_mid; then
24494
                          ac_lo= ac_hi=
24495
                          break
24496
                        fi
24497
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24498 1376 phoenix
fi
24499 1743 jeremybenn
 
24500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24501 1376 phoenix
  done
24502
else
24503
  echo "$as_me: failed program was:" >&5
24504 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24505
 
24506 1743 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
24507 1576 phoenix
/* confdefs.h.  */
24508
_ACEOF
24509
cat confdefs.h >>conftest.$ac_ext
24510
cat >>conftest.$ac_ext <<_ACEOF
24511
/* end confdefs.h.  */
24512
$ac_includes_default
24513 1743 jeremybenn
   typedef int ac__type_sizeof_;
24514 1576 phoenix
int
24515
main ()
24516
{
24517 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24518 1576 phoenix
test_array [0] = 0
24519
 
24520
  ;
24521
  return 0;
24522
}
24523
_ACEOF
24524
rm -f conftest.$ac_objext
24525 1743 jeremybenn
if { (ac_try="$ac_compile"
24526
case "(($ac_try" in
24527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528
  *) ac_try_echo=$ac_try;;
24529
esac
24530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531
  (eval "$ac_compile") 2>conftest.er1
24532 1576 phoenix
  ac_status=$?
24533
  grep -v '^ *+' conftest.er1 >conftest.err
24534
  rm -f conftest.er1
24535
  cat conftest.err >&5
24536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 1743 jeremybenn
  (exit $ac_status); } && {
24538
         test -z "$ac_c_werror_flag" ||
24539
         test ! -s conftest.err
24540
       } && test -s conftest.$ac_objext; then
24541 1576 phoenix
  ac_hi=-1 ac_mid=-1
24542 1376 phoenix
  while :; do
24543
    cat >conftest.$ac_ext <<_ACEOF
24544 1576 phoenix
/* confdefs.h.  */
24545
_ACEOF
24546
cat confdefs.h >>conftest.$ac_ext
24547
cat >>conftest.$ac_ext <<_ACEOF
24548
/* end confdefs.h.  */
24549 1376 phoenix
$ac_includes_default
24550 1743 jeremybenn
   typedef int ac__type_sizeof_;
24551 1376 phoenix
int
24552
main ()
24553
{
24554 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24555 1576 phoenix
test_array [0] = 0
24556
 
24557 1376 phoenix
  ;
24558
  return 0;
24559
}
24560
_ACEOF
24561
rm -f conftest.$ac_objext
24562 1743 jeremybenn
if { (ac_try="$ac_compile"
24563
case "(($ac_try" in
24564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24565
  *) ac_try_echo=$ac_try;;
24566
esac
24567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24568
  (eval "$ac_compile") 2>conftest.er1
24569 1376 phoenix
  ac_status=$?
24570 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24571
  rm -f conftest.er1
24572
  cat conftest.err >&5
24573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 1743 jeremybenn
  (exit $ac_status); } && {
24575
         test -z "$ac_c_werror_flag" ||
24576
         test ! -s conftest.err
24577
       } && test -s conftest.$ac_objext; then
24578 1376 phoenix
  ac_lo=$ac_mid; break
24579
else
24580
  echo "$as_me: failed program was:" >&5
24581 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24582
 
24583 1743 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
24584
                        if test $ac_mid -le $ac_hi; then
24585
                          ac_lo= ac_hi=
24586
                          break
24587
                        fi
24588
                        ac_mid=`expr 2 '*' $ac_mid`
24589 1376 phoenix
fi
24590 1743 jeremybenn
 
24591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592 1376 phoenix
  done
24593 1576 phoenix
else
24594
  echo "$as_me: failed program was:" >&5
24595
sed 's/^/| /' conftest.$ac_ext >&5
24596
 
24597 1743 jeremybenn
        ac_lo= ac_hi=
24598 1376 phoenix
fi
24599 1743 jeremybenn
 
24600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24601 1576 phoenix
fi
24602 1743 jeremybenn
 
24603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24604 1376 phoenix
# Binary search between lo and hi bounds.
24605
while test "x$ac_lo" != "x$ac_hi"; do
24606
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24607
  cat >conftest.$ac_ext <<_ACEOF
24608 1576 phoenix
/* confdefs.h.  */
24609
_ACEOF
24610
cat confdefs.h >>conftest.$ac_ext
24611
cat >>conftest.$ac_ext <<_ACEOF
24612
/* end confdefs.h.  */
24613 1376 phoenix
$ac_includes_default
24614 1743 jeremybenn
   typedef int ac__type_sizeof_;
24615 1376 phoenix
int
24616
main ()
24617
{
24618 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24619 1576 phoenix
test_array [0] = 0
24620
 
24621 1376 phoenix
  ;
24622
  return 0;
24623
}
24624
_ACEOF
24625
rm -f conftest.$ac_objext
24626 1743 jeremybenn
if { (ac_try="$ac_compile"
24627
case "(($ac_try" in
24628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629
  *) ac_try_echo=$ac_try;;
24630
esac
24631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24632
  (eval "$ac_compile") 2>conftest.er1
24633 1376 phoenix
  ac_status=$?
24634 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24635
  rm -f conftest.er1
24636
  cat conftest.err >&5
24637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 1743 jeremybenn
  (exit $ac_status); } && {
24639
         test -z "$ac_c_werror_flag" ||
24640
         test ! -s conftest.err
24641
       } && test -s conftest.$ac_objext; then
24642 1376 phoenix
  ac_hi=$ac_mid
24643
else
24644
  echo "$as_me: failed program was:" >&5
24645 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24646
 
24647 1743 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
24648 1376 phoenix
fi
24649 1743 jeremybenn
 
24650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24651 1376 phoenix
done
24652 1576 phoenix
case $ac_lo in
24653
?*) ac_cv_sizeof_int=$ac_lo;;
24654 1743 jeremybenn
'') if test "$ac_cv_type_int" = yes; then
24655
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24656 1576 phoenix
See \`config.log' for more details." >&5
24657 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (int)
24658 1576 phoenix
See \`config.log' for more details." >&2;}
24659 1743 jeremybenn
   { (exit 77); exit 77; }; }
24660
   else
24661
     ac_cv_sizeof_int=0
24662
   fi ;;
24663 1576 phoenix
esac
24664 1376 phoenix
else
24665
  cat >conftest.$ac_ext <<_ACEOF
24666 1576 phoenix
/* confdefs.h.  */
24667
_ACEOF
24668
cat confdefs.h >>conftest.$ac_ext
24669
cat >>conftest.$ac_ext <<_ACEOF
24670
/* end confdefs.h.  */
24671 1376 phoenix
$ac_includes_default
24672 1743 jeremybenn
   typedef int ac__type_sizeof_;
24673
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24674
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24675 1576 phoenix
#include 
24676
#include 
24677 1376 phoenix
int
24678
main ()
24679
{
24680 1576 phoenix
 
24681
  FILE *f = fopen ("conftest.val", "w");
24682
  if (! f)
24683 1743 jeremybenn
    return 1;
24684
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24685 1576 phoenix
    {
24686 1743 jeremybenn
      long int i = longval ();
24687
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24688
        return 1;
24689 1576 phoenix
      fprintf (f, "%ld\n", i);
24690
    }
24691
  else
24692
    {
24693 1743 jeremybenn
      unsigned long int i = ulongval ();
24694
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24695
        return 1;
24696 1576 phoenix
      fprintf (f, "%lu\n", i);
24697
    }
24698 1743 jeremybenn
  return ferror (f) || fclose (f) != 0;
24699 1576 phoenix
 
24700 1376 phoenix
  ;
24701
  return 0;
24702
}
24703
_ACEOF
24704
rm -f conftest$ac_exeext
24705 1743 jeremybenn
if { (ac_try="$ac_link"
24706
case "(($ac_try" in
24707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708
  *) ac_try_echo=$ac_try;;
24709
esac
24710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711
  (eval "$ac_link") 2>&5
24712 1376 phoenix
  ac_status=$?
24713 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24715 1743 jeremybenn
  { (case "(($ac_try" in
24716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717
  *) ac_try_echo=$ac_try;;
24718
esac
24719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720
  (eval "$ac_try") 2>&5
24721 1376 phoenix
  ac_status=$?
24722 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 1376 phoenix
  (exit $ac_status); }; }; then
24724
  ac_cv_sizeof_int=`cat conftest.val`
24725
else
24726
  echo "$as_me: program exited with status $ac_status" >&5
24727
echo "$as_me: failed program was:" >&5
24728 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24729
 
24730
( exit $ac_status )
24731 1743 jeremybenn
if test "$ac_cv_type_int" = yes; then
24732
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24733 1576 phoenix
See \`config.log' for more details." >&5
24734 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (int)
24735 1576 phoenix
See \`config.log' for more details." >&2;}
24736 1743 jeremybenn
   { (exit 77); exit 77; }; }
24737
   else
24738
     ac_cv_sizeof_int=0
24739
   fi
24740 1376 phoenix
fi
24741 1743 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24742 1376 phoenix
fi
24743
rm -f conftest.val
24744
fi
24745 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24746
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24747
 
24748
 
24749
 
24750 1576 phoenix
cat >>confdefs.h <<_ACEOF
24751 1376 phoenix
#define SIZEOF_INT $ac_cv_sizeof_int
24752 1576 phoenix
_ACEOF
24753 1376 phoenix
 
24754 1576 phoenix
 
24755 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for long" >&5
24756
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
24757 1376 phoenix
if test "${ac_cv_type_long+set}" = set; then
24758
  echo $ECHO_N "(cached) $ECHO_C" >&6
24759
else
24760
  cat >conftest.$ac_ext <<_ACEOF
24761 1576 phoenix
/* confdefs.h.  */
24762
_ACEOF
24763
cat confdefs.h >>conftest.$ac_ext
24764
cat >>conftest.$ac_ext <<_ACEOF
24765
/* end confdefs.h.  */
24766 1376 phoenix
$ac_includes_default
24767 1743 jeremybenn
typedef long ac__type_new_;
24768 1376 phoenix
int
24769
main ()
24770
{
24771 1743 jeremybenn
if ((ac__type_new_ *) 0)
24772 1376 phoenix
  return 0;
24773 1743 jeremybenn
if (sizeof (ac__type_new_))
24774 1376 phoenix
  return 0;
24775
  ;
24776
  return 0;
24777
}
24778
_ACEOF
24779
rm -f conftest.$ac_objext
24780 1743 jeremybenn
if { (ac_try="$ac_compile"
24781
case "(($ac_try" in
24782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24783
  *) ac_try_echo=$ac_try;;
24784
esac
24785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24786
  (eval "$ac_compile") 2>conftest.er1
24787 1376 phoenix
  ac_status=$?
24788 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24789
  rm -f conftest.er1
24790
  cat conftest.err >&5
24791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 1743 jeremybenn
  (exit $ac_status); } && {
24793
         test -z "$ac_c_werror_flag" ||
24794
         test ! -s conftest.err
24795
       } && test -s conftest.$ac_objext; then
24796 1376 phoenix
  ac_cv_type_long=yes
24797
else
24798
  echo "$as_me: failed program was:" >&5
24799 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24800
 
24801 1743 jeremybenn
        ac_cv_type_long=no
24802 1376 phoenix
fi
24803 1743 jeremybenn
 
24804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24805 1376 phoenix
fi
24806 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
24807
echo "${ECHO_T}$ac_cv_type_long" >&6; }
24808 1376 phoenix
 
24809 1743 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
24810
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24811
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24812
# This bug is HP SR number 8606223364.
24813
{ echo "$as_me:$LINENO: checking size of long" >&5
24814
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
24815 1376 phoenix
if test "${ac_cv_sizeof_long+set}" = set; then
24816
  echo $ECHO_N "(cached) $ECHO_C" >&6
24817
else
24818
  if test "$cross_compiling" = yes; then
24819
  # Depending upon the size, compute the lo and hi bounds.
24820
cat >conftest.$ac_ext <<_ACEOF
24821 1576 phoenix
/* confdefs.h.  */
24822
_ACEOF
24823
cat confdefs.h >>conftest.$ac_ext
24824
cat >>conftest.$ac_ext <<_ACEOF
24825
/* end confdefs.h.  */
24826 1376 phoenix
$ac_includes_default
24827 1743 jeremybenn
   typedef long ac__type_sizeof_;
24828 1376 phoenix
int
24829
main ()
24830
{
24831 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24832 1576 phoenix
test_array [0] = 0
24833
 
24834 1376 phoenix
  ;
24835
  return 0;
24836
}
24837
_ACEOF
24838
rm -f conftest.$ac_objext
24839 1743 jeremybenn
if { (ac_try="$ac_compile"
24840
case "(($ac_try" in
24841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842
  *) ac_try_echo=$ac_try;;
24843
esac
24844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845
  (eval "$ac_compile") 2>conftest.er1
24846 1376 phoenix
  ac_status=$?
24847 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24848
  rm -f conftest.er1
24849
  cat conftest.err >&5
24850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 1743 jeremybenn
  (exit $ac_status); } && {
24852
         test -z "$ac_c_werror_flag" ||
24853
         test ! -s conftest.err
24854
       } && test -s conftest.$ac_objext; then
24855 1376 phoenix
  ac_lo=0 ac_mid=0
24856
  while :; do
24857
    cat >conftest.$ac_ext <<_ACEOF
24858 1576 phoenix
/* confdefs.h.  */
24859
_ACEOF
24860
cat confdefs.h >>conftest.$ac_ext
24861
cat >>conftest.$ac_ext <<_ACEOF
24862
/* end confdefs.h.  */
24863 1376 phoenix
$ac_includes_default
24864 1743 jeremybenn
   typedef long ac__type_sizeof_;
24865 1376 phoenix
int
24866
main ()
24867
{
24868 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24869 1576 phoenix
test_array [0] = 0
24870
 
24871 1376 phoenix
  ;
24872
  return 0;
24873
}
24874
_ACEOF
24875
rm -f conftest.$ac_objext
24876 1743 jeremybenn
if { (ac_try="$ac_compile"
24877
case "(($ac_try" in
24878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879
  *) ac_try_echo=$ac_try;;
24880
esac
24881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882
  (eval "$ac_compile") 2>conftest.er1
24883 1376 phoenix
  ac_status=$?
24884 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24885
  rm -f conftest.er1
24886
  cat conftest.err >&5
24887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 1743 jeremybenn
  (exit $ac_status); } && {
24889
         test -z "$ac_c_werror_flag" ||
24890
         test ! -s conftest.err
24891
       } && test -s conftest.$ac_objext; then
24892 1376 phoenix
  ac_hi=$ac_mid; break
24893
else
24894
  echo "$as_me: failed program was:" >&5
24895 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24896
 
24897 1743 jeremybenn
        ac_lo=`expr $ac_mid + 1`
24898
                        if test $ac_lo -le $ac_mid; then
24899
                          ac_lo= ac_hi=
24900
                          break
24901
                        fi
24902
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24903 1376 phoenix
fi
24904 1743 jeremybenn
 
24905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24906 1376 phoenix
  done
24907
else
24908
  echo "$as_me: failed program was:" >&5
24909 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24910
 
24911 1743 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
24912 1576 phoenix
/* confdefs.h.  */
24913
_ACEOF
24914
cat confdefs.h >>conftest.$ac_ext
24915
cat >>conftest.$ac_ext <<_ACEOF
24916
/* end confdefs.h.  */
24917
$ac_includes_default
24918 1743 jeremybenn
   typedef long ac__type_sizeof_;
24919 1576 phoenix
int
24920
main ()
24921
{
24922 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24923 1576 phoenix
test_array [0] = 0
24924
 
24925
  ;
24926
  return 0;
24927
}
24928
_ACEOF
24929
rm -f conftest.$ac_objext
24930 1743 jeremybenn
if { (ac_try="$ac_compile"
24931
case "(($ac_try" in
24932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933
  *) ac_try_echo=$ac_try;;
24934
esac
24935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936
  (eval "$ac_compile") 2>conftest.er1
24937 1576 phoenix
  ac_status=$?
24938
  grep -v '^ *+' conftest.er1 >conftest.err
24939
  rm -f conftest.er1
24940
  cat conftest.err >&5
24941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 1743 jeremybenn
  (exit $ac_status); } && {
24943
         test -z "$ac_c_werror_flag" ||
24944
         test ! -s conftest.err
24945
       } && test -s conftest.$ac_objext; then
24946 1576 phoenix
  ac_hi=-1 ac_mid=-1
24947 1376 phoenix
  while :; do
24948
    cat >conftest.$ac_ext <<_ACEOF
24949 1576 phoenix
/* confdefs.h.  */
24950
_ACEOF
24951
cat confdefs.h >>conftest.$ac_ext
24952
cat >>conftest.$ac_ext <<_ACEOF
24953
/* end confdefs.h.  */
24954 1376 phoenix
$ac_includes_default
24955 1743 jeremybenn
   typedef long ac__type_sizeof_;
24956 1376 phoenix
int
24957
main ()
24958
{
24959 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24960 1576 phoenix
test_array [0] = 0
24961
 
24962 1376 phoenix
  ;
24963
  return 0;
24964
}
24965
_ACEOF
24966
rm -f conftest.$ac_objext
24967 1743 jeremybenn
if { (ac_try="$ac_compile"
24968
case "(($ac_try" in
24969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970
  *) ac_try_echo=$ac_try;;
24971
esac
24972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973
  (eval "$ac_compile") 2>conftest.er1
24974 1376 phoenix
  ac_status=$?
24975 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
24976
  rm -f conftest.er1
24977
  cat conftest.err >&5
24978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 1743 jeremybenn
  (exit $ac_status); } && {
24980
         test -z "$ac_c_werror_flag" ||
24981
         test ! -s conftest.err
24982
       } && test -s conftest.$ac_objext; then
24983 1376 phoenix
  ac_lo=$ac_mid; break
24984
else
24985
  echo "$as_me: failed program was:" >&5
24986 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
24987
 
24988 1743 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
24989
                        if test $ac_mid -le $ac_hi; then
24990
                          ac_lo= ac_hi=
24991
                          break
24992
                        fi
24993
                        ac_mid=`expr 2 '*' $ac_mid`
24994 1376 phoenix
fi
24995 1743 jeremybenn
 
24996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997 1376 phoenix
  done
24998 1576 phoenix
else
24999
  echo "$as_me: failed program was:" >&5
25000
sed 's/^/| /' conftest.$ac_ext >&5
25001
 
25002 1743 jeremybenn
        ac_lo= ac_hi=
25003 1376 phoenix
fi
25004 1743 jeremybenn
 
25005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 1576 phoenix
fi
25007 1743 jeremybenn
 
25008
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009 1376 phoenix
# Binary search between lo and hi bounds.
25010
while test "x$ac_lo" != "x$ac_hi"; do
25011
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25012
  cat >conftest.$ac_ext <<_ACEOF
25013 1576 phoenix
/* confdefs.h.  */
25014
_ACEOF
25015
cat confdefs.h >>conftest.$ac_ext
25016
cat >>conftest.$ac_ext <<_ACEOF
25017
/* end confdefs.h.  */
25018 1376 phoenix
$ac_includes_default
25019 1743 jeremybenn
   typedef long ac__type_sizeof_;
25020 1376 phoenix
int
25021
main ()
25022
{
25023 1743 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25024 1576 phoenix
test_array [0] = 0
25025
 
25026 1376 phoenix
  ;
25027
  return 0;
25028
}
25029
_ACEOF
25030
rm -f conftest.$ac_objext
25031 1743 jeremybenn
if { (ac_try="$ac_compile"
25032
case "(($ac_try" in
25033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034
  *) ac_try_echo=$ac_try;;
25035
esac
25036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037
  (eval "$ac_compile") 2>conftest.er1
25038 1376 phoenix
  ac_status=$?
25039 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
25040
  rm -f conftest.er1
25041
  cat conftest.err >&5
25042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 1743 jeremybenn
  (exit $ac_status); } && {
25044
         test -z "$ac_c_werror_flag" ||
25045
         test ! -s conftest.err
25046
       } && test -s conftest.$ac_objext; then
25047 1376 phoenix
  ac_hi=$ac_mid
25048
else
25049
  echo "$as_me: failed program was:" >&5
25050 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
25051
 
25052 1743 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
25053 1376 phoenix
fi
25054 1743 jeremybenn
 
25055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25056 1376 phoenix
done
25057 1576 phoenix
case $ac_lo in
25058
?*) ac_cv_sizeof_long=$ac_lo;;
25059 1743 jeremybenn
'') if test "$ac_cv_type_long" = yes; then
25060
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25061 1576 phoenix
See \`config.log' for more details." >&5
25062 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (long)
25063 1576 phoenix
See \`config.log' for more details." >&2;}
25064 1743 jeremybenn
   { (exit 77); exit 77; }; }
25065
   else
25066
     ac_cv_sizeof_long=0
25067
   fi ;;
25068 1576 phoenix
esac
25069 1376 phoenix
else
25070
  cat >conftest.$ac_ext <<_ACEOF
25071 1576 phoenix
/* confdefs.h.  */
25072
_ACEOF
25073
cat confdefs.h >>conftest.$ac_ext
25074
cat >>conftest.$ac_ext <<_ACEOF
25075
/* end confdefs.h.  */
25076 1376 phoenix
$ac_includes_default
25077 1743 jeremybenn
   typedef long ac__type_sizeof_;
25078
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25079
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25080 1576 phoenix
#include 
25081
#include 
25082 1376 phoenix
int
25083
main ()
25084
{
25085 1576 phoenix
 
25086
  FILE *f = fopen ("conftest.val", "w");
25087
  if (! f)
25088 1743 jeremybenn
    return 1;
25089
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25090 1576 phoenix
    {
25091 1743 jeremybenn
      long int i = longval ();
25092
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25093
        return 1;
25094 1576 phoenix
      fprintf (f, "%ld\n", i);
25095
    }
25096
  else
25097
    {
25098 1743 jeremybenn
      unsigned long int i = ulongval ();
25099
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25100
        return 1;
25101 1576 phoenix
      fprintf (f, "%lu\n", i);
25102
    }
25103 1743 jeremybenn
  return ferror (f) || fclose (f) != 0;
25104 1576 phoenix
 
25105 1376 phoenix
  ;
25106
  return 0;
25107
}
25108
_ACEOF
25109
rm -f conftest$ac_exeext
25110 1743 jeremybenn
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>&5
25117 1376 phoenix
  ac_status=$?
25118 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25120 1743 jeremybenn
  { (case "(($ac_try" in
25121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122
  *) ac_try_echo=$ac_try;;
25123
esac
25124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125
  (eval "$ac_try") 2>&5
25126 1376 phoenix
  ac_status=$?
25127 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 1376 phoenix
  (exit $ac_status); }; }; then
25129
  ac_cv_sizeof_long=`cat conftest.val`
25130
else
25131
  echo "$as_me: program exited with status $ac_status" >&5
25132
echo "$as_me: failed program was:" >&5
25133 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
25134
 
25135
( exit $ac_status )
25136 1743 jeremybenn
if test "$ac_cv_type_long" = yes; then
25137
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25138 1576 phoenix
See \`config.log' for more details." >&5
25139 1743 jeremybenn
echo "$as_me: error: cannot compute sizeof (long)
25140 1576 phoenix
See \`config.log' for more details." >&2;}
25141 1743 jeremybenn
   { (exit 77); exit 77; }; }
25142
   else
25143
     ac_cv_sizeof_long=0
25144
   fi
25145 1376 phoenix
fi
25146 1743 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25147 1376 phoenix
fi
25148
rm -f conftest.val
25149
fi
25150 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25151
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
25152
 
25153
 
25154
 
25155 1576 phoenix
cat >>confdefs.h <<_ACEOF
25156 1376 phoenix
#define SIZEOF_LONG $ac_cv_sizeof_long
25157 1576 phoenix
_ACEOF
25158 1376 phoenix
 
25159 1242 hpanther
 
25160 1576 phoenix
 
25161 1751 jeremybenn
#Check for compare function type for qsort (needed by some Linuxes)
25162
{ echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
25163
echo $ECHO_N "checking for __compar_fn_t... $ECHO_C" >&6; }
25164
if test "${ac_cv_type___compar_fn_t+set}" = set; then
25165
  echo $ECHO_N "(cached) $ECHO_C" >&6
25166
else
25167
  cat >conftest.$ac_ext <<_ACEOF
25168
/* confdefs.h.  */
25169
_ACEOF
25170
cat confdefs.h >>conftest.$ac_ext
25171
cat >>conftest.$ac_ext <<_ACEOF
25172
/* end confdefs.h.  */
25173
$ac_includes_default
25174
typedef __compar_fn_t ac__type_new_;
25175
int
25176
main ()
25177
{
25178
if ((ac__type_new_ *) 0)
25179
  return 0;
25180
if (sizeof (ac__type_new_))
25181
  return 0;
25182
  ;
25183
  return 0;
25184
}
25185
_ACEOF
25186
rm -f conftest.$ac_objext
25187
if { (ac_try="$ac_compile"
25188
case "(($ac_try" in
25189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190
  *) ac_try_echo=$ac_try;;
25191
esac
25192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193
  (eval "$ac_compile") 2>conftest.er1
25194
  ac_status=$?
25195
  grep -v '^ *+' conftest.er1 >conftest.err
25196
  rm -f conftest.er1
25197
  cat conftest.err >&5
25198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199
  (exit $ac_status); } && {
25200
         test -z "$ac_c_werror_flag" ||
25201
         test ! -s conftest.err
25202
       } && test -s conftest.$ac_objext; then
25203
  ac_cv_type___compar_fn_t=yes
25204
else
25205
  echo "$as_me: failed program was:" >&5
25206
sed 's/^/| /' conftest.$ac_ext >&5
25207
 
25208
        ac_cv_type___compar_fn_t=no
25209
fi
25210
 
25211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25212
fi
25213
{ echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
25214
echo "${ECHO_T}$ac_cv_type___compar_fn_t" >&6; }
25215
if test $ac_cv_type___compar_fn_t = yes; then
25216
 
25217
cat >>confdefs.h <<_ACEOF
25218
#define HAVE___COMPAR_FN_T 1
25219
_ACEOF
25220
 
25221
 
25222
fi
25223
 
25224
 
25225 1745 jeremybenn
# check for GNU readline
25226 1576 phoenix
 
25227 1743 jeremybenn
{ echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
25228
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6; }
25229 1242 hpanther
if test "${ac_cv_lib_readline_add_history+set}" = set; then
25230
  echo $ECHO_N "(cached) $ECHO_C" >&6
25231 17 jrydberg
else
25232 1242 hpanther
  ac_check_lib_save_LIBS=$LIBS
25233 17 jrydberg
LIBS="-lreadline  $LIBS"
25234 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
25235 1576 phoenix
/* confdefs.h.  */
25236
_ACEOF
25237
cat confdefs.h >>conftest.$ac_ext
25238
cat >>conftest.$ac_ext <<_ACEOF
25239
/* end confdefs.h.  */
25240 1242 hpanther
 
25241 1743 jeremybenn
/* Override any GCC internal prototype to avoid an error.
25242
   Use char because int might match the return type of a GCC
25243
   builtin and then its argument prototype would still apply.  */
25244 1242 hpanther
#ifdef __cplusplus
25245
extern "C"
25246
#endif
25247
char add_history ();
25248
int
25249
main ()
25250
{
25251 1743 jeremybenn
return add_history ();
25252 1242 hpanther
  ;
25253
  return 0;
25254
}
25255
_ACEOF
25256
rm -f conftest.$ac_objext conftest$ac_exeext
25257 1743 jeremybenn
if { (ac_try="$ac_link"
25258
case "(($ac_try" in
25259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260
  *) ac_try_echo=$ac_try;;
25261
esac
25262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25263
  (eval "$ac_link") 2>conftest.er1
25264 1242 hpanther
  ac_status=$?
25265 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
25266
  rm -f conftest.er1
25267
  cat conftest.err >&5
25268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 1743 jeremybenn
  (exit $ac_status); } && {
25270
         test -z "$ac_c_werror_flag" ||
25271
         test ! -s conftest.err
25272
       } && test -s conftest$ac_exeext &&
25273
       $as_test_x conftest$ac_exeext; then
25274 1242 hpanther
  ac_cv_lib_readline_add_history=yes
25275 17 jrydberg
else
25276 1242 hpanther
  echo "$as_me: failed program was:" >&5
25277 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
25278
 
25279 1743 jeremybenn
        ac_cv_lib_readline_add_history=no
25280 17 jrydberg
fi
25281 1743 jeremybenn
 
25282
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25283 1576 phoenix
      conftest$ac_exeext conftest.$ac_ext
25284 1242 hpanther
LIBS=$ac_check_lib_save_LIBS
25285
fi
25286 1743 jeremybenn
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
25287
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6; }
25288 1242 hpanther
if test $ac_cv_lib_readline_add_history = yes; then
25289 1576 phoenix
  cat >>confdefs.h <<_ACEOF
25290 1242 hpanther
#define HAVE_LIBREADLINE 1
25291 1576 phoenix
_ACEOF
25292 17 jrydberg
 
25293
  LIBS="-lreadline $LIBS"
25294
 
25295
fi
25296
 
25297
 
25298 1745 jeremybenn
# yuck
25299 7 jrydberg
case "$host_os" in
25300
aix*)   prefer_curses=yes ;;
25301
esac
25302
 
25303
case "$host_cpu" in
25304
*cray*) LOCAL_CFLAGS=-DCRAY ;;
25305
esac
25306
 
25307
case "$host_os" in
25308
isc*)   LOCAL_CFLAGS=-Disc386 ;;
25309
esac
25310
 
25311 132 chris
case "$host_os" in
25312
solaris*) LIBS="-lsocket -lnsl" ;;
25313
esac
25314
 
25315 1745 jeremybenn
# define options
25316 1576 phoenix
 
25317 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether to enable profiling" >&5
25318
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6; }
25319
# Check whether --enable-profiling was given.
25320 517 markom
if test "${enable_profiling+set}" = set; then
25321 1743 jeremybenn
  enableval=$enable_profiling;
25322 517 markom
    case "$enableval" in
25323 1751 jeremybenn
        yes) profile="-pg" ;;
25324 517 markom
    esac
25325 167 markom
 
25326 1743 jeremybenn
fi
25327 517 markom
 
25328 1743 jeremybenn
{ echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
25329
echo "${ECHO_T}${enable_profiling-no}" >&6; }
25330
 
25331 1576 phoenix
execution="1"
25332
 
25333 1376 phoenix
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25334 1743 jeremybenn
{ echo "$as_me:$LINENO: checking which execution style to use" >&5
25335
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6; }
25336
# Check whether --enable-execution was given.
25337 1576 phoenix
if test "${enable_execution+set}" = set; then
25338 1743 jeremybenn
  enableval=$enable_execution;
25339 706 markom
    case "$enableval" in
25340 1576 phoenix
    simple)
25341
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25342
      execution="0"
25343 1743 jeremybenn
      { echo "$as_me:$LINENO: result: simple" >&5
25344
echo "${ECHO_T}simple" >&6; }
25345 1576 phoenix
      ;;
25346
    complex)
25347
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25348
      execution="1"
25349 1743 jeremybenn
      { echo "$as_me:$LINENO: result: complex" >&5
25350
echo "${ECHO_T}complex" >&6; }
25351 1576 phoenix
      ;;
25352
    dynamic)
25353
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25354
      execution="2"
25355 1743 jeremybenn
      { echo "$as_me:$LINENO: result: dynamic" >&5
25356
echo "${ECHO_T}dynamic" >&6; }
25357 1576 phoenix
      ;;
25358
    *)
25359
      { { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
25360
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
25361
   { (exit 1); exit 1; }; }
25362
      ;;
25363 706 markom
    esac
25364
 
25365 1576 phoenix
else
25366
 
25367 1743 jeremybenn
      { echo "$as_me:$LINENO: result: complex" >&5
25368
echo "${ECHO_T}complex" >&6; }
25369 1576 phoenix
 
25370 1743 jeremybenn
fi
25371 706 markom
 
25372 1743 jeremybenn
 
25373 849 markom
eth_phy="0"
25374 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
25375
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6; }
25376
# Check whether --enable-ethphy was given.
25377 849 markom
if test "${enable_ethphy+set}" = set; then
25378 1743 jeremybenn
  enableval=$enable_ethphy;
25379 849 markom
    case "$enableval" in
25380
  no)  eth_phy="0" ;;
25381
        yes) eth_phy="1" ;;
25382
    esac
25383
 
25384 1743 jeremybenn
fi
25385 849 markom
 
25386 1743 jeremybenn
{ echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
25387
echo "${ECHO_T}${enable_eth_phy-no}" >&6; }
25388 1576 phoenix
 
25389 1743 jeremybenn
 
25390 721 markom
raw_range_stats="0"
25391 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
25392
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6; }
25393
# Check whether --enable-range_stats was given.
25394 721 markom
if test "${enable_range_stats+set}" = set; then
25395 1743 jeremybenn
  enableval=$enable_range_stats;
25396 721 markom
    case "$enableval" in
25397
  no)  raw_range_stats="0" ;;
25398
        yes) raw_range_stats="1" simple_execution="1" ;;
25399
    esac
25400
 
25401 1743 jeremybenn
fi
25402 721 markom
 
25403 1743 jeremybenn
{ echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
25404
echo "${ECHO_T}${enable_range_stats-no}" >&6; }
25405
 
25406 928 markom
set_ov_flag="0"
25407 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
25408
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6; }
25409
# Check whether --enable-ov_flag was given.
25410 721 markom
if test "${enable_ov_flag+set}" = set; then
25411 1743 jeremybenn
  enableval=$enable_ov_flag;
25412 721 markom
    case "$enableval" in
25413 1751 jeremybenn
    no)  set_ov_flag="0" ;;
25414
    yes) set_ov_flag="1" ;;
25415 721 markom
    esac
25416
 
25417 1743 jeremybenn
fi
25418 721 markom
 
25419 1743 jeremybenn
{ echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
25420
echo "${ECHO_T}${enable_ov_flag-no}" >&6; }
25421
 
25422 928 markom
set_arith_flag="0"
25423 1743 jeremybenn
{ echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
25424
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6; }
25425
# Check whether --enable-arith_flag was given.
25426 721 markom
if test "${enable_arith_flag+set}" = set; then
25427 1743 jeremybenn
  enableval=$enable_arith_flag;
25428 721 markom
    case "$enableval" in
25429
  no)  set_arith_flag="0" ;;
25430
        yes) set_arith_flag="1" ;;
25431
    esac
25432
 
25433 1743 jeremybenn
fi
25434 721 markom
 
25435 1743 jeremybenn
{ echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
25436
echo "${ECHO_T}${enable_arith_flag-no}" >&6; }
25437 1576 phoenix
 
25438 1748 jeremybenn
# check for --enable-debug argument (for argtable2)
25439
# Check whether --enable-debug was given.
25440
if test "${enable_debug+set}" = set; then
25441
  enableval=$enable_debug;
25442
       case $enableval in
25443 1751 jeremybenn
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
25444
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
25445 1748 jeremybenn
          *)   echo "illegal argument to --enable-debug" & exit 1;;
25446
       esac
25447 1743 jeremybenn
 
25448 1748 jeremybenn
else
25449
  DEBUGFLAGS="-DNDEBUG"
25450
 
25451
fi
25452
 
25453
 
25454
 
25455
 
25456 1576 phoenix
cat >>confdefs.h <<_ACEOF
25457 721 markom
#define RAW_RANGE_STATS $raw_range_stats
25458 1576 phoenix
_ACEOF
25459 721 markom
 
25460 1576 phoenix
 
25461
cat >>confdefs.h <<_ACEOF
25462 721 markom
#define SET_OV_FLAG $set_ov_flag
25463 1576 phoenix
_ACEOF
25464 721 markom
 
25465 1576 phoenix
 
25466
cat >>confdefs.h <<_ACEOF
25467 721 markom
#define ARITH_SET_FLAG $set_arith_flag
25468 1576 phoenix
_ACEOF
25469 721 markom
 
25470 1576 phoenix
 
25471
cat >>confdefs.h <<_ACEOF
25472 849 markom
#define HAVE_ETH_PHY $eth_phy
25473 1576 phoenix
_ACEOF
25474 721 markom
 
25475 706 markom
 
25476 1576 phoenix
cat >>confdefs.h <<_ACEOF
25477
#define SIMPLE_EXECUTION $execution == 0
25478
_ACEOF
25479
 
25480
 
25481
cat >>confdefs.h <<_ACEOF
25482
#define COMPLEX_EXECUTION $execution == 1
25483
_ACEOF
25484
 
25485
 
25486
cat >>confdefs.h <<_ACEOF
25487
#define DYNAMIC_EXECUTION $execution == 2
25488
_ACEOF
25489
 
25490 1743 jeremybenn
 if test x$execution = x1; then
25491 1576 phoenix
  GENERATE_NEEDED_TRUE=
25492
  GENERATE_NEEDED_FALSE='#'
25493 706 markom
else
25494 1576 phoenix
  GENERATE_NEEDED_TRUE='#'
25495
  GENERATE_NEEDED_FALSE=
25496 706 markom
fi
25497
 
25498 1743 jeremybenn
 if test x$execution = x2; then
25499 1576 phoenix
  DYNAMIC_EXECUTION_TRUE=
25500
  DYNAMIC_EXECUTION_FALSE='#'
25501
else
25502
  DYNAMIC_EXECUTION_TRUE='#'
25503
  DYNAMIC_EXECUTION_FALSE=
25504 202 erez
fi
25505 517 markom
 
25506 1576 phoenix
 
25507
 
25508 517 markom
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
25509 518 markom
# CFLAGS="$CFLAGS -O4"
25510 202 erez
 
25511 7 jrydberg
BUILD_DIR=`pwd`
25512
 
25513 1576 phoenix
 
25514
 
25515
 
25516
 
25517
 
25518
 
25519
 
25520
 
25521
 
25522
 
25523
 
25524
 
25525
 
25526
 
25527
 
25528
 
25529
 
25530
cat >>confdefs.h <<\_ACEOF
25531 1748 jeremybenn
#define HAVE_EXECUTION 1
25532 1576 phoenix
_ACEOF
25533 7 jrydberg
 
25534 1576 phoenix
 
25535 1745 jeremybenn
# yuck
25536 1376 phoenix
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
25537
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
25538 103 lampret
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
25539 1376 phoenix
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
25540
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
25541 1748 jeremybenn
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
25542 7 jrydberg
 
25543 1576 phoenix
 
25544 1748 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
25545 1576 phoenix
 
25546
 
25547 1748 jeremybenn
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
25548
case "$CPU_ARCH" in
25549
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
25550
;;
25551
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
25552
;;
25553
esac
25554
 
25555
# Makefile uses this timestamp file to record whether config.h is up to date.
25556
# AC_CONFIG_COMMANDS([default],[[
25557
# echo > stamp-h
25558
# ]],[[]])
25559 1242 hpanther
cat >confcache <<\_ACEOF
25560 7 jrydberg
# This file is a shell script that caches the results of configure
25561
# tests run on this system so they can be shared between configure
25562 1242 hpanther
# scripts and configure runs, see configure's option --config-cache.
25563
# It is not useful on other systems.  If it contains results you don't
25564
# want to keep, you may remove or edit it.
25565 7 jrydberg
#
25566 1242 hpanther
# config.status only pays attention to the cache file if you give it
25567
# the --recheck option to rerun configure.
25568 7 jrydberg
#
25569 1576 phoenix
# `ac_cv_env_foo' variables (set or unset) will be overridden when
25570 1242 hpanther
# loading this file, other *unset* `ac_cv_foo' will be assigned the
25571
# following values.
25572
 
25573
_ACEOF
25574
 
25575 7 jrydberg
# The following way of writing the cache mishandles newlines in values,
25576
# but we know of no workaround that is simple, portable, and efficient.
25577 1743 jeremybenn
# So, we kill variables containing newlines.
25578 7 jrydberg
# Ultrix sh set writes to stderr and can't be redirected directly,
25579
# and sets the high bit in the cache file unless we assign to the vars.
25580 1743 jeremybenn
(
25581
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25582
    eval ac_val=\$$ac_var
25583
    case $ac_val in #(
25584
    *${as_nl}*)
25585
      case $ac_var in #(
25586
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25587
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25588
      esac
25589
      case $ac_var in #(
25590
      _ | IFS | as_nl) ;; #(
25591
      *) $as_unset $ac_var ;;
25592
      esac ;;
25593
    esac
25594
  done
25595
 
25596 1242 hpanther
  (set) 2>&1 |
25597 1743 jeremybenn
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25598
    *${as_nl}ac_space=\ *)
25599 1242 hpanther
      # `set' does not quote correctly, so add quotes (double-quote
25600
      # substitution turns \\\\ into \\, and sed turns \\ into \).
25601
      sed -n \
25602 1576 phoenix
        "s/'/'\\\\''/g;
25603
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25604 1743 jeremybenn
      ;; #(
25605 1242 hpanther
    *)
25606
      # `set' quotes correctly as required by POSIX, so do not add quotes.
25607 1743 jeremybenn
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25608 1242 hpanther
      ;;
25609 1743 jeremybenn
    esac |
25610
    sort
25611
) |
25612 1242 hpanther
  sed '
25613 1743 jeremybenn
     /^ac_cv_env_/b end
25614 1242 hpanther
     t clear
25615 1743 jeremybenn
     :clear
25616 1242 hpanther
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25617
     t end
25618 1743 jeremybenn
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25619
     :end' >>confcache
25620
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25621
  if test -w "$cache_file"; then
25622
    test "x$cache_file" != "x/dev/null" &&
25623
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25624
echo "$as_me: updating cache $cache_file" >&6;}
25625 1242 hpanther
    cat confcache >$cache_file
25626 7 jrydberg
  else
25627 1743 jeremybenn
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25628
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25629 7 jrydberg
  fi
25630
fi
25631
rm -f confcache
25632
 
25633
test "x$prefix" = xNONE && prefix=$ac_default_prefix
25634
# Let make expand exec_prefix.
25635
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25636
 
25637
DEFS=-DHAVE_CONFIG_H
25638
 
25639 1576 phoenix
ac_libobjs=
25640
ac_ltlibobjs=
25641
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25642
  # 1. Remove the extension, and $U if already installed.
25643 1743 jeremybenn
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25644
  ac_i=`echo "$ac_i" | sed "$ac_script"`
25645
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25646
  #    will be set to the directory where LIBOBJS objects are built.
25647
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25648
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25649 1576 phoenix
done
25650
LIBOBJS=$ac_libobjs
25651
 
25652
LTLIBOBJS=$ac_ltlibobjs
25653
 
25654
 
25655 1242 hpanther
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25656 1576 phoenix
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25657 1242 hpanther
Usually this means the macro was only invoked conditionally." >&5
25658
echo "$as_me: error: conditional \"AMDEP\" was never defined.
25659
Usually this means the macro was only invoked conditionally." >&2;}
25660
   { (exit 1); exit 1; }; }
25661
fi
25662 1576 phoenix
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25663
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25664 1242 hpanther
Usually this means the macro was only invoked conditionally." >&5
25665 1576 phoenix
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25666 1242 hpanther
Usually this means the macro was only invoked conditionally." >&2;}
25667
   { (exit 1); exit 1; }; }
25668
fi
25669 1745 jeremybenn
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25670
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25671
Usually this means the macro was only invoked conditionally." >&5
25672
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25673
Usually this means the macro was only invoked conditionally." >&2;}
25674
   { (exit 1); exit 1; }; }
25675
fi
25676 1748 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
25677
  { { echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25678
Usually this means the macro was only invoked conditionally." >&5
25679
echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25680
Usually this means the macro was only invoked conditionally." >&2;}
25681
   { (exit 1); exit 1; }; }
25682
fi
25683
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
25684
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
25685
Usually this means the macro was only invoked conditionally." >&5
25686
echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
25687
Usually this means the macro was only invoked conditionally." >&2;}
25688
   { (exit 1); exit 1; }; }
25689
fi
25690
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
25691
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
25692
Usually this means the macro was only invoked conditionally." >&5
25693
echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
25694
Usually this means the macro was only invoked conditionally." >&2;}
25695
   { (exit 1); exit 1; }; }
25696
fi
25697 1576 phoenix
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
25698
  { { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
25699
Usually this means the macro was only invoked conditionally." >&5
25700
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
25701
Usually this means the macro was only invoked conditionally." >&2;}
25702
   { (exit 1); exit 1; }; }
25703
fi
25704
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
25705
  { { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25706
Usually this means the macro was only invoked conditionally." >&5
25707
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25708
Usually this means the macro was only invoked conditionally." >&2;}
25709
   { (exit 1); exit 1; }; }
25710
fi
25711 1242 hpanther
 
25712 7 jrydberg
: ${CONFIG_STATUS=./config.status}
25713 1242 hpanther
ac_clean_files_save=$ac_clean_files
25714
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25715 1576 phoenix
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25716 1242 hpanther
echo "$as_me: creating $CONFIG_STATUS" >&6;}
25717
cat >$CONFIG_STATUS <<_ACEOF
25718
#! $SHELL
25719 1576 phoenix
# Generated by $as_me.
25720 7 jrydberg
# Run this file to recreate the current configuration.
25721
# Compiler output produced by configure, useful for debugging
25722 1242 hpanther
# configure, is in config.log if it exists.
25723 7 jrydberg
 
25724 1242 hpanther
debug=false
25725 1576 phoenix
ac_cs_recheck=false
25726
ac_cs_silent=false
25727 1242 hpanther
SHELL=\${CONFIG_SHELL-$SHELL}
25728
_ACEOF
25729
 
25730
cat >>$CONFIG_STATUS <<\_ACEOF
25731 1576 phoenix
## --------------------- ##
25732
## M4sh Initialization.  ##
25733
## --------------------- ##
25734
 
25735 1743 jeremybenn
# Be more Bourne compatible
25736
DUALCASE=1; export DUALCASE # for MKS sh
25737 1242 hpanther
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25738
  emulate sh
25739
  NULLCMD=:
25740 1576 phoenix
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25741
  # is contrary to our usage.  Disable this feature.
25742
  alias -g '${1+"$@"}'='"$@"'
25743 1743 jeremybenn
  setopt NO_GLOB_SUBST
25744
else
25745
  case `(set -o) 2>/dev/null` in
25746
  *posix*) set -o posix ;;
25747
esac
25748
 
25749 1242 hpanther
fi
25750
 
25751 1743 jeremybenn
 
25752
 
25753
 
25754
# PATH needs CR
25755
# Avoid depending upon Character Ranges.
25756
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25757
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25758
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25759
as_cr_digits='0123456789'
25760
as_cr_alnum=$as_cr_Letters$as_cr_digits
25761
 
25762
# The user is always right.
25763
if test "${PATH_SEPARATOR+set}" != set; then
25764
  echo "#! /bin/sh" >conf$$.sh
25765
  echo  "exit 0"   >>conf$$.sh
25766
  chmod +x conf$$.sh
25767
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25768
    PATH_SEPARATOR=';'
25769
  else
25770
    PATH_SEPARATOR=:
25771
  fi
25772
  rm -f conf$$.sh
25773
fi
25774
 
25775 1576 phoenix
# Support unset when possible.
25776
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25777
  as_unset=unset
25778
else
25779
  as_unset=false
25780
fi
25781
 
25782
 
25783 1743 jeremybenn
# IFS
25784
# We need space, tab and new line, in precisely that order.  Quoting is
25785
# there to prevent editors from complaining about space-tab.
25786
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25787
# splitting by setting IFS to empty value.)
25788
as_nl='
25789
'
25790
IFS=" ""        $as_nl"
25791
 
25792
# Find who we are.  Look in the path if we contain no directory separator.
25793
case $0 in
25794
  *[\\/]* ) as_myself=$0 ;;
25795
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25796
for as_dir in $PATH
25797
do
25798
  IFS=$as_save_IFS
25799
  test -z "$as_dir" && as_dir=.
25800
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25801
done
25802
IFS=$as_save_IFS
25803
 
25804
     ;;
25805
esac
25806
# We did not find ourselves, most probably we were run as `sh COMMAND'
25807
# in which case we are not to be found in the path.
25808
if test "x$as_myself" = x; then
25809
  as_myself=$0
25810
fi
25811
if test ! -f "$as_myself"; then
25812
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25813
  { (exit 1); exit 1; }
25814
fi
25815
 
25816 1576 phoenix
# Work around bugs in pre-3.0 UWIN ksh.
25817 1743 jeremybenn
for as_var in ENV MAIL MAILPATH
25818
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25819
done
25820 1576 phoenix
PS1='$ '
25821
PS2='> '
25822
PS4='+ '
25823
 
25824
# NLS nuisances.
25825
for as_var in \
25826
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25827
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25828
  LC_TELEPHONE LC_TIME
25829
do
25830
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25831
    eval $as_var=C; export $as_var
25832
  else
25833 1743 jeremybenn
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25834 1576 phoenix
  fi
25835
done
25836
 
25837
# Required to use basename.
25838 1743 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
25839
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25840 1576 phoenix
  as_expr=expr
25841
else
25842
  as_expr=false
25843
fi
25844
 
25845 1743 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25846 1576 phoenix
  as_basename=basename
25847
else
25848
  as_basename=false
25849
fi
25850
 
25851
 
25852 1242 hpanther
# Name of the executable.
25853 1743 jeremybenn
as_me=`$as_basename -- "$0" ||
25854 1576 phoenix
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25855
         X"$0" : 'X\(//\)$' \| \
25856 1743 jeremybenn
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25857 1576 phoenix
echo X/"$0" |
25858 1743 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
25859
            s//\1/
25860
            q
25861
          }
25862
          /^X\/\(\/\/\)$/{
25863
            s//\1/
25864
            q
25865
          }
25866
          /^X\/\(\/\).*/{
25867
            s//\1/
25868
            q
25869
          }
25870
          s/.*/./; q'`
25871 7 jrydberg
 
25872 1743 jeremybenn
# CDPATH.
25873
$as_unset CDPATH
25874 1576 phoenix
 
25875
 
25876
 
25877
  as_lineno_1=$LINENO
25878
  as_lineno_2=$LINENO
25879
  test "x$as_lineno_1" != "x$as_lineno_2" &&
25880 1743 jeremybenn
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25881 1576 phoenix
 
25882
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25883
  # uniformly replaced by the line number.  The first 'sed' inserts a
25884 1743 jeremybenn
  # line-number line after each line using $LINENO; the second 'sed'
25885
  # does the real work.  The second script uses 'N' to pair each
25886
  # line-number line with the line containing $LINENO, and appends
25887
  # trailing '-' during substitution so that $LINENO is not a special
25888
  # case at line end.
25889 1576 phoenix
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25890 1743 jeremybenn
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
25891
  # E. McMahon (1931-1989) for sed's syntax.  :-)
25892
  sed -n '
25893
    p
25894
    /[$]LINENO/=
25895
  ' <$as_myself |
25896 1576 phoenix
    sed '
25897 1743 jeremybenn
      s/[$]LINENO.*/&-/
25898
      t lineno
25899
      b
25900
      :lineno
25901 1576 phoenix
      N
25902 1743 jeremybenn
      :loop
25903
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25904 1576 phoenix
      t loop
25905 1743 jeremybenn
      s/-\n.*//
25906 1576 phoenix
    ' >$as_me.lineno &&
25907 1743 jeremybenn
  chmod +x "$as_me.lineno" ||
25908
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25909 1576 phoenix
   { (exit 1); exit 1; }; }
25910
 
25911
  # Don't try to exec as it changes $[0], causing all sort of problems
25912
  # (the dirname of $[0] is not the place where we might find the
25913 1743 jeremybenn
  # original and so on.  Autoconf is especially sensitive to this).
25914
  . "./$as_me.lineno"
25915 1576 phoenix
  # Exit status is that of the last command.
25916
  exit
25917
}
25918
 
25919
 
25920 1743 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25921
  as_dirname=dirname
25922
else
25923
  as_dirname=false
25924
fi
25925
 
25926
ECHO_C= ECHO_N= ECHO_T=
25927
case `echo -n x` in
25928
-n*)
25929
  case `echo 'x\c'` in
25930
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25931
  *)   ECHO_C='\c';;
25932
  esac;;
25933
*)
25934
  ECHO_N='-n';;
25935 1576 phoenix
esac
25936
 
25937 1743 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
25938
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25939 1242 hpanther
  as_expr=expr
25940
else
25941
  as_expr=false
25942
fi
25943
 
25944
rm -f conf$$ conf$$.exe conf$$.file
25945 1743 jeremybenn
if test -d conf$$.dir; then
25946
  rm -f conf$$.dir/conf$$.file
25947
else
25948
  rm -f conf$$.dir
25949
  mkdir conf$$.dir
25950
fi
25951 1242 hpanther
echo >conf$$.file
25952
if ln -s conf$$.file conf$$ 2>/dev/null; then
25953 1743 jeremybenn
  as_ln_s='ln -s'
25954
  # ... but there are two gotchas:
25955
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25956
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25957
  # In both cases, we have to default to `cp -p'.
25958
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25959 1242 hpanther
    as_ln_s='cp -p'
25960
elif ln conf$$.file conf$$ 2>/dev/null; then
25961
  as_ln_s=ln
25962
else
25963
  as_ln_s='cp -p'
25964
fi
25965 1743 jeremybenn
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25966
rmdir conf$$.dir 2>/dev/null
25967 1242 hpanther
 
25968 1576 phoenix
if mkdir -p . 2>/dev/null; then
25969
  as_mkdir_p=:
25970 1242 hpanther
else
25971 1576 phoenix
  test -d ./-p && rmdir ./-p
25972
  as_mkdir_p=false
25973 1242 hpanther
fi
25974
 
25975 1743 jeremybenn
if test -x / >/dev/null 2>&1; then
25976
  as_test_x='test -x'
25977
else
25978
  if ls -dL / >/dev/null 2>&1; then
25979
    as_ls_L_option=L
25980
  else
25981
    as_ls_L_option=
25982
  fi
25983
  as_test_x='
25984
    eval sh -c '\''
25985
      if test -d "$1"; then
25986
        test -d "$1/.";
25987
      else
25988
        case $1 in
25989
        -*)set "./$1";;
25990
        esac;
25991
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25992
        ???[sx]*):;;*)false;;esac;fi
25993
    '\'' sh
25994
  '
25995
fi
25996
as_executable_p=$as_test_x
25997 1242 hpanther
 
25998 1576 phoenix
# Sed expression to map a string onto a valid CPP name.
25999
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26000
 
26001
# Sed expression to map a string onto a valid variable name.
26002
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26003
 
26004
 
26005 1242 hpanther
exec 6>&1
26006
 
26007 1743 jeremybenn
# Save the log message, to keep $[0] and so on meaningful, and to
26008 1576 phoenix
# report actual input values of CONFIG_FILES etc. instead of their
26009 1743 jeremybenn
# values after options handling.
26010
ac_log="
26011 1760 jeremybenn
This file was extended by or1ksim $as_me 0.3.0, which was
26012 1743 jeremybenn
generated by GNU Autoconf 2.61.  Invocation command line was
26013 1576 phoenix
 
26014
  CONFIG_FILES    = $CONFIG_FILES
26015
  CONFIG_HEADERS  = $CONFIG_HEADERS
26016
  CONFIG_LINKS    = $CONFIG_LINKS
26017
  CONFIG_COMMANDS = $CONFIG_COMMANDS
26018
  $ $0 $@
26019
 
26020 1743 jeremybenn
on `(hostname || uname -n) 2>/dev/null | sed 1q`
26021
"
26022
 
26023 1242 hpanther
_ACEOF
26024
 
26025 1743 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF
26026 1242 hpanther
# Files that config.status was made for.
26027 1743 jeremybenn
config_files="$ac_config_files"
26028
config_headers="$ac_config_headers"
26029
config_commands="$ac_config_commands"
26030 1242 hpanther
 
26031 1743 jeremybenn
_ACEOF
26032 1242 hpanther
 
26033 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
26034 1242 hpanther
ac_cs_usage="\
26035
\`$as_me' instantiates files from templates according to the
26036
current configuration.
26037
 
26038
Usage: $0 [OPTIONS] [FILE]...
26039
 
26040
  -h, --help       print this help, then exit
26041 1743 jeremybenn
  -V, --version    print version number and configuration settings, then exit
26042 1576 phoenix
  -q, --quiet      do not print progress messages
26043 1242 hpanther
  -d, --debug      don't remove temporary files
26044
      --recheck    update $as_me by reconfiguring in the same conditions
26045
  --file=FILE[:TEMPLATE]
26046 1576 phoenix
                   instantiate the configuration file FILE
26047 1242 hpanther
  --header=FILE[:TEMPLATE]
26048 1576 phoenix
                   instantiate the configuration header FILE
26049 1242 hpanther
 
26050
Configuration files:
26051
$config_files
26052
 
26053
Configuration headers:
26054
$config_headers
26055
 
26056
Configuration commands:
26057
$config_commands
26058
 
26059
Report bugs to ."
26060 1743 jeremybenn
 
26061 1576 phoenix
_ACEOF
26062
cat >>$CONFIG_STATUS <<_ACEOF
26063 1242 hpanther
ac_cs_version="\\
26064 1760 jeremybenn
or1ksim config.status 0.3.0
26065 1743 jeremybenn
configured by $0, generated by GNU Autoconf 2.61,
26066
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26067 1242 hpanther
 
26068 1743 jeremybenn
Copyright (C) 2006 Free Software Foundation, Inc.
26069 1242 hpanther
This config.status script is free software; the Free Software Foundation
26070
gives unlimited permission to copy, distribute and modify it."
26071 1743 jeremybenn
 
26072
ac_pwd='$ac_pwd'
26073
srcdir='$srcdir'
26074
INSTALL='$INSTALL'
26075
MKDIR_P='$MKDIR_P'
26076 1576 phoenix
_ACEOF
26077 1242 hpanther
 
26078 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
26079 1242 hpanther
# If no file are specified by the user, then we need to provide default
26080
# value.  By we need to know if files were specified by the user.
26081
ac_need_defaults=:
26082
while test $# != 0
26083
do
26084
  case $1 in
26085
  --*=*)
26086 1743 jeremybenn
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26087
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26088 1576 phoenix
    ac_shift=:
26089 1242 hpanther
    ;;
26090 1743 jeremybenn
  *)
26091 1576 phoenix
    ac_option=$1
26092
    ac_optarg=$2
26093
    ac_shift=shift
26094
    ;;
26095 1242 hpanther
  esac
26096
 
26097 1576 phoenix
  case $ac_option in
26098 1242 hpanther
  # Handling of the options.
26099
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26100 1576 phoenix
    ac_cs_recheck=: ;;
26101 1743 jeremybenn
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26102
    echo "$ac_cs_version"; exit ;;
26103
  --debug | --debu | --deb | --de | --d | -d )
26104 1242 hpanther
    debug=: ;;
26105
  --file | --fil | --fi | --f )
26106 1576 phoenix
    $ac_shift
26107
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26108 1242 hpanther
    ac_need_defaults=false;;
26109
  --header | --heade | --head | --hea )
26110 1576 phoenix
    $ac_shift
26111
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26112 1242 hpanther
    ac_need_defaults=false;;
26113 1743 jeremybenn
  --he | --h)
26114
    # Conflict between --help and --header
26115
    { echo "$as_me: error: ambiguous option: $1
26116
Try \`$0 --help' for more information." >&2
26117
   { (exit 1); exit 1; }; };;
26118
  --help | --hel | -h )
26119
    echo "$ac_cs_usage"; exit ;;
26120 1576 phoenix
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26121
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26122
    ac_cs_silent=: ;;
26123 1242 hpanther
 
26124
  # This is an error.
26125 1743 jeremybenn
  -*) { echo "$as_me: error: unrecognized option: $1
26126
Try \`$0 --help' for more information." >&2
26127 1242 hpanther
   { (exit 1); exit 1; }; } ;;
26128
 
26129 1743 jeremybenn
  *) ac_config_targets="$ac_config_targets $1"
26130
     ac_need_defaults=false ;;
26131 1242 hpanther
 
26132
  esac
26133
  shift
26134 7 jrydberg
done
26135 1242 hpanther
 
26136 1576 phoenix
ac_configure_extra_args=
26137 1242 hpanther
 
26138 1576 phoenix
if $ac_cs_silent; then
26139
  exec 6>/dev/null
26140
  ac_configure_extra_args="$ac_configure_extra_args --silent"
26141
fi
26142 7 jrydberg
 
26143 1576 phoenix
_ACEOF
26144
cat >>$CONFIG_STATUS <<_ACEOF
26145
if \$ac_cs_recheck; then
26146 1743 jeremybenn
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26147
  CONFIG_SHELL=$SHELL
26148
  export CONFIG_SHELL
26149
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26150 1576 phoenix
fi
26151 7 jrydberg
 
26152 1242 hpanther
_ACEOF
26153 1743 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26154
exec 5>>config.log
26155
{
26156
  echo
26157
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26158
## Running $as_me. ##
26159
_ASBOX
26160
  echo "$ac_log"
26161
} >&5
26162 1242 hpanther
 
26163 1743 jeremybenn
_ACEOF
26164 1576 phoenix
cat >>$CONFIG_STATUS <<_ACEOF
26165 1242 hpanther
#
26166 1743 jeremybenn
# INIT-COMMANDS
26167 1242 hpanther
#
26168
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26169
 
26170 1576 phoenix
_ACEOF
26171
 
26172 1743 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26173 1576 phoenix
 
26174 1743 jeremybenn
# Handling of arguments.
26175 1242 hpanther
for ac_config_target in $ac_config_targets
26176
do
26177 1743 jeremybenn
  case $ac_config_target in
26178 1745 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26179 1743 jeremybenn
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26180
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26181 1748 jeremybenn
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
26182 1743 jeremybenn
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
26183
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
26184
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
26185
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
26186 1748 jeremybenn
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
26187 1743 jeremybenn
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
26188
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
26189 1748 jeremybenn
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26190 1743 jeremybenn
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
26191
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
26192
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
26193
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
26194
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
26195
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
26196
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
26197
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
26198
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
26199 1748 jeremybenn
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
26200
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
26201 1743 jeremybenn
 
26202 1576 phoenix
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26203 1242 hpanther
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26204
   { (exit 1); exit 1; }; };;
26205 7 jrydberg
  esac
26206 1242 hpanther
done
26207 7 jrydberg
 
26208 1743 jeremybenn
 
26209 1242 hpanther
# If the user did not use the arguments to specify the items to instantiate,
26210
# then the envvar interface is used.  Set only those that are not.
26211
# We use the long form for the default assignment because of an extremely
26212
# bizarre bug on SunOS 4.1.3.
26213
if $ac_need_defaults; then
26214
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26215
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26216
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26217
fi
26218 7 jrydberg
 
26219 1576 phoenix
# Have a temporary directory for convenience.  Make it in the build tree
26220 1743 jeremybenn
# simply because there is no reason against having it here, and in addition,
26221 1576 phoenix
# creating and moving files from /tmp can sometimes cause problems.
26222 1743 jeremybenn
# Hook for its removal unless debugging.
26223
# Note that there is a small window in which the directory will not be cleaned:
26224
# after its creation but before its name has been assigned to `$tmp'.
26225 1242 hpanther
$debug ||
26226
{
26227 1743 jeremybenn
  tmp=
26228
  trap 'exit_status=$?
26229
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26230
' 0
26231 1242 hpanther
  trap '{ (exit 1); exit 1; }' 1 2 13 15
26232
}
26233
# Create a (secure) tmp directory for tmp files.
26234 1576 phoenix
 
26235 1242 hpanther
{
26236 1743 jeremybenn
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26237 1242 hpanther
  test -n "$tmp" && test -d "$tmp"
26238
}  ||
26239
{
26240 1743 jeremybenn
  tmp=./conf$$-$RANDOM
26241
  (umask 077 && mkdir "$tmp")
26242 1242 hpanther
} ||
26243
{
26244 1576 phoenix
   echo "$me: cannot create a temporary directory in ." >&2
26245 1242 hpanther
   { (exit 1); exit 1; }
26246
}
26247
 
26248
#
26249 1743 jeremybenn
# Set up the sed scripts for CONFIG_FILES section.
26250 1242 hpanther
#
26251
 
26252
# No need to generate the scripts if there are no CONFIG_FILES.
26253
# This happens for instance when ./config.status config.h
26254 1743 jeremybenn
if test -n "$CONFIG_FILES"; then
26255 1242 hpanther
 
26256 1576 phoenix
_ACEOF
26257 1242 hpanther
 
26258 1743 jeremybenn
 
26259
 
26260
ac_delim='%!_!# '
26261
for ac_last_try in false false false false false :; do
26262
  cat >conf$$subs.sed <<_ACEOF
26263
SHELL!$SHELL$ac_delim
26264
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26265
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26266
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26267
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26268
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26269
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26270
exec_prefix!$exec_prefix$ac_delim
26271
prefix!$prefix$ac_delim
26272
program_transform_name!$program_transform_name$ac_delim
26273
bindir!$bindir$ac_delim
26274
sbindir!$sbindir$ac_delim
26275
libexecdir!$libexecdir$ac_delim
26276
datarootdir!$datarootdir$ac_delim
26277
datadir!$datadir$ac_delim
26278
sysconfdir!$sysconfdir$ac_delim
26279
sharedstatedir!$sharedstatedir$ac_delim
26280
localstatedir!$localstatedir$ac_delim
26281
includedir!$includedir$ac_delim
26282
oldincludedir!$oldincludedir$ac_delim
26283
docdir!$docdir$ac_delim
26284
infodir!$infodir$ac_delim
26285
htmldir!$htmldir$ac_delim
26286
dvidir!$dvidir$ac_delim
26287
pdfdir!$pdfdir$ac_delim
26288
psdir!$psdir$ac_delim
26289
libdir!$libdir$ac_delim
26290
localedir!$localedir$ac_delim
26291
mandir!$mandir$ac_delim
26292
DEFS!$DEFS$ac_delim
26293
ECHO_C!$ECHO_C$ac_delim
26294
ECHO_N!$ECHO_N$ac_delim
26295
ECHO_T!$ECHO_T$ac_delim
26296
LIBS!$LIBS$ac_delim
26297
build_alias!$build_alias$ac_delim
26298
host_alias!$host_alias$ac_delim
26299
target_alias!$target_alias$ac_delim
26300
build!$build$ac_delim
26301
build_cpu!$build_cpu$ac_delim
26302
build_vendor!$build_vendor$ac_delim
26303
build_os!$build_os$ac_delim
26304
host!$host$ac_delim
26305
host_cpu!$host_cpu$ac_delim
26306
host_vendor!$host_vendor$ac_delim
26307
host_os!$host_os$ac_delim
26308
target!$target$ac_delim
26309
target_cpu!$target_cpu$ac_delim
26310
target_vendor!$target_vendor$ac_delim
26311
target_os!$target_os$ac_delim
26312 1745 jeremybenn
CC!$CC$ac_delim
26313
CFLAGS!$CFLAGS$ac_delim
26314
LDFLAGS!$LDFLAGS$ac_delim
26315
CPPFLAGS!$CPPFLAGS$ac_delim
26316
ac_ct_CC!$ac_ct_CC$ac_delim
26317
EXEEXT!$EXEEXT$ac_delim
26318
OBJEXT!$OBJEXT$ac_delim
26319
SED!$SED$ac_delim
26320
GREP!$GREP$ac_delim
26321
EGREP!$EGREP$ac_delim
26322
LN_S!$LN_S$ac_delim
26323
ECHO!$ECHO$ac_delim
26324
AR!$AR$ac_delim
26325
RANLIB!$RANLIB$ac_delim
26326
STRIP!$STRIP$ac_delim
26327
CPP!$CPP$ac_delim
26328
CXX!$CXX$ac_delim
26329
CXXFLAGS!$CXXFLAGS$ac_delim
26330
ac_ct_CXX!$ac_ct_CXX$ac_delim
26331
CXXCPP!$CXXCPP$ac_delim
26332
F77!$F77$ac_delim
26333
FFLAGS!$FFLAGS$ac_delim
26334
ac_ct_F77!$ac_ct_F77$ac_delim
26335
LIBTOOL!$LIBTOOL$ac_delim
26336 1743 jeremybenn
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26337
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26338
INSTALL_DATA!$INSTALL_DATA$ac_delim
26339
am__isrc!$am__isrc$ac_delim
26340
CYGPATH_W!$CYGPATH_W$ac_delim
26341
PACKAGE!$PACKAGE$ac_delim
26342
VERSION!$VERSION$ac_delim
26343
ACLOCAL!$ACLOCAL$ac_delim
26344
AUTOCONF!$AUTOCONF$ac_delim
26345
AUTOMAKE!$AUTOMAKE$ac_delim
26346
AUTOHEADER!$AUTOHEADER$ac_delim
26347
MAKEINFO!$MAKEINFO$ac_delim
26348
install_sh!$install_sh$ac_delim
26349
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26350
mkdir_p!$mkdir_p$ac_delim
26351
AWK!$AWK$ac_delim
26352
SET_MAKE!$SET_MAKE$ac_delim
26353
am__leading_dot!$am__leading_dot$ac_delim
26354
AMTAR!$AMTAR$ac_delim
26355
am__tar!$am__tar$ac_delim
26356
am__untar!$am__untar$ac_delim
26357
DEPDIR!$DEPDIR$ac_delim
26358
am__include!$am__include$ac_delim
26359
am__quote!$am__quote$ac_delim
26360
_ACEOF
26361
 
26362
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26363
    break
26364
  elif $ac_last_try; then
26365
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26366
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26367
   { (exit 1); exit 1; }; }
26368
  else
26369
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26370 7 jrydberg
  fi
26371 1743 jeremybenn
done
26372 7 jrydberg
 
26373 1743 jeremybenn
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26374
if test -n "$ac_eof"; then
26375
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26376
  ac_eof=`expr $ac_eof + 1`
26377
fi
26378
 
26379
cat >>$CONFIG_STATUS <<_ACEOF
26380
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26381
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26382 1576 phoenix
_ACEOF
26383 1743 jeremybenn
sed '
26384
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26385
s/^/s,@/; s/!/@,|#_!!_#|/
26386
:n
26387
t n
26388
s/'"$ac_delim"'$/,g/; t
26389
s/$/\\/; p
26390
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26391
' >>$CONFIG_STATUS 
26392
rm -f conf$$subs.sed
26393
cat >>$CONFIG_STATUS <<_ACEOF
26394
CEOF$ac_eof
26395
_ACEOF
26396
 
26397
 
26398
ac_delim='%!_!# '
26399
for ac_last_try in false false false false false :; do
26400
  cat >conf$$subs.sed <<_ACEOF
26401 1745 jeremybenn
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26402
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26403
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26404
CCDEPMODE!$CCDEPMODE$ac_delim
26405
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26406
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26407
CXXDEPMODE!$CXXDEPMODE$ac_delim
26408
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26409
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26410
CPU_ARCH!$CPU_ARCH$ac_delim
26411
MAKE_SHELL!$MAKE_SHELL$ac_delim
26412 1748 jeremybenn
LIBOBJS!$LIBOBJS$ac_delim
26413
POW_LIB!$POW_LIB$ac_delim
26414
USE_SYS_GETOPTLONG_TRUE!$USE_SYS_GETOPTLONG_TRUE$ac_delim
26415
USE_SYS_GETOPTLONG_FALSE!$USE_SYS_GETOPTLONG_FALSE$ac_delim
26416
USE_ARGREX_TRUE!$USE_ARGREX_TRUE$ac_delim
26417
USE_ARGREX_FALSE!$USE_ARGREX_FALSE$ac_delim
26418
USE_ARGDATE_TRUE!$USE_ARGDATE_TRUE$ac_delim
26419
USE_ARGDATE_FALSE!$USE_ARGDATE_FALSE$ac_delim
26420
DEBUGFLAGS!$DEBUGFLAGS$ac_delim
26421 1745 jeremybenn
GENERATE_NEEDED_TRUE!$GENERATE_NEEDED_TRUE$ac_delim
26422
GENERATE_NEEDED_FALSE!$GENERATE_NEEDED_FALSE$ac_delim
26423
DYNAMIC_EXECUTION_TRUE!$DYNAMIC_EXECUTION_TRUE$ac_delim
26424 1743 jeremybenn
DYNAMIC_EXECUTION_FALSE!$DYNAMIC_EXECUTION_FALSE$ac_delim
26425
BUILD_DIR!$BUILD_DIR$ac_delim
26426
LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
26427
LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
26428
LOCAL_DEFS!$LOCAL_DEFS$ac_delim
26429
ARFLAGS!$ARFLAGS$ac_delim
26430
SUMVERSION!$SUMVERSION$ac_delim
26431
TERMCAP_LIB!$TERMCAP_LIB$ac_delim
26432
INCLUDES!$INCLUDES$ac_delim
26433
LTLIBOBJS!$LTLIBOBJS$ac_delim
26434
_ACEOF
26435
 
26436 1748 jeremybenn
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
26437 1743 jeremybenn
    break
26438
  elif $ac_last_try; then
26439
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26440
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26441
   { (exit 1); exit 1; }; }
26442
  else
26443
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26444
  fi
26445
done
26446
 
26447
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26448
if test -n "$ac_eof"; then
26449
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26450
  ac_eof=`expr $ac_eof + 1`
26451
fi
26452
 
26453
cat >>$CONFIG_STATUS <<_ACEOF
26454
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26455
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26456
_ACEOF
26457
sed '
26458
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26459
s/^/s,@/; s/!/@,|#_!!_#|/
26460
:n
26461
t n
26462
s/'"$ac_delim"'$/,g/; t
26463
s/$/\\/; p
26464
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26465
' >>$CONFIG_STATUS 
26466
rm -f conf$$subs.sed
26467
cat >>$CONFIG_STATUS <<_ACEOF
26468
:end
26469
s/|#_!!_#|//g
26470
CEOF$ac_eof
26471
_ACEOF
26472
 
26473
 
26474
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26475
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26476
# trailing colons and then remove the whole line if VPATH becomes empty
26477
# (actually we leave an empty line to preserve line numbers).
26478
if test "x$srcdir" = x.; then
26479
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
26480
s/:*\$(srcdir):*/:/
26481
s/:*\${srcdir}:*/:/
26482
s/:*@srcdir@:*/:/
26483
s/^\([^=]*=[     ]*\):*/\1/
26484
s/:*$//
26485
s/^[^=]*=[       ]*$//
26486
}'
26487
fi
26488
 
26489 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
26490 1743 jeremybenn
fi # test -n "$CONFIG_FILES"
26491
 
26492
 
26493
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26494
do
26495
  case $ac_tag in
26496
  :[FHLC]) ac_mode=$ac_tag; continue;;
26497 7 jrydberg
  esac
26498 1743 jeremybenn
  case $ac_mode$ac_tag in
26499
  :[FHL]*:*);;
26500
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26501
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26502
   { (exit 1); exit 1; }; };;
26503
  :[FH]-) ac_tag=-:-;;
26504
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26505
  esac
26506
  ac_save_IFS=$IFS
26507
  IFS=:
26508
  set x $ac_tag
26509
  IFS=$ac_save_IFS
26510
  shift
26511
  ac_file=$1
26512
  shift
26513 7 jrydberg
 
26514 1743 jeremybenn
  case $ac_mode in
26515
  :L) ac_source=$1;;
26516
  :[FH])
26517
    ac_file_inputs=
26518
    for ac_f
26519
    do
26520
      case $ac_f in
26521
      -) ac_f="$tmp/stdin";;
26522
      *) # Look for the file first in the build tree, then in the source tree
26523
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
26524
         # because $ac_f cannot contain `:'.
26525
         test -f "$ac_f" ||
26526
           case $ac_f in
26527
           [\\/$]*) false;;
26528
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26529
           esac ||
26530
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26531
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26532
   { (exit 1); exit 1; }; };;
26533
      esac
26534
      ac_file_inputs="$ac_file_inputs $ac_f"
26535
    done
26536
 
26537
    # Let's still pretend it is `configure' which instantiates (i.e., don't
26538
    # use $as_me), people would be surprised to read:
26539
    #    /* config.h.  Generated by config.status.  */
26540
    configure_input="Generated from "`IFS=:
26541
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26542
    if test x"$ac_file" != x-; then
26543
      configure_input="$ac_file.  $configure_input"
26544
      { echo "$as_me:$LINENO: creating $ac_file" >&5
26545
echo "$as_me: creating $ac_file" >&6;}
26546
    fi
26547
 
26548
    case $ac_tag in
26549
    *:-:* | *:-) cat >"$tmp/stdin";;
26550
    esac
26551
    ;;
26552
  esac
26553
 
26554
  ac_dir=`$as_dirname -- "$ac_file" ||
26555 1576 phoenix
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26556
         X"$ac_file" : 'X\(//\)[^/]' \| \
26557
         X"$ac_file" : 'X\(//\)$' \| \
26558 1743 jeremybenn
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26559 1242 hpanther
echo X"$ac_file" |
26560 1743 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26561
            s//\1/
26562
            q
26563
          }
26564
          /^X\(\/\/\)[^/].*/{
26565
            s//\1/
26566
            q
26567
          }
26568
          /^X\(\/\/\)$/{
26569
            s//\1/
26570
            q
26571
          }
26572
          /^X\(\/\).*/{
26573
            s//\1/
26574
            q
26575
          }
26576
          s/.*/./; q'`
26577
  { as_dir="$ac_dir"
26578
  case $as_dir in #(
26579
  -*) as_dir=./$as_dir;;
26580
  esac
26581
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26582 1576 phoenix
    as_dirs=
26583 1743 jeremybenn
    while :; do
26584
      case $as_dir in #(
26585
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26586
      *) as_qdir=$as_dir;;
26587
      esac
26588
      as_dirs="'$as_qdir' $as_dirs"
26589
      as_dir=`$as_dirname -- "$as_dir" ||
26590 1576 phoenix
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26591
         X"$as_dir" : 'X\(//\)[^/]' \| \
26592
         X"$as_dir" : 'X\(//\)$' \| \
26593 1743 jeremybenn
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26594 1576 phoenix
echo X"$as_dir" |
26595 1743 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26596
            s//\1/
26597
            q
26598
          }
26599
          /^X\(\/\/\)[^/].*/{
26600
            s//\1/
26601
            q
26602
          }
26603
          /^X\(\/\/\)$/{
26604
            s//\1/
26605
            q
26606
          }
26607
          /^X\(\/\).*/{
26608
            s//\1/
26609
            q
26610
          }
26611
          s/.*/./; q'`
26612
      test -d "$as_dir" && break
26613 1576 phoenix
    done
26614 1743 jeremybenn
    test -z "$as_dirs" || eval "mkdir $as_dirs"
26615
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26616
echo "$as_me: error: cannot create directory $as_dir" >&2;}
26617 1576 phoenix
   { (exit 1); exit 1; }; }; }
26618
  ac_builddir=.
26619
 
26620 1743 jeremybenn
case "$ac_dir" in
26621
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26622
*)
26623 1576 phoenix
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26624 1743 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
26625
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26626
  case $ac_top_builddir_sub in
26627
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26628
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26629
  esac ;;
26630
esac
26631
ac_abs_top_builddir=$ac_pwd
26632
ac_abs_builddir=$ac_pwd$ac_dir_suffix
26633
# for backward compatibility:
26634
ac_top_builddir=$ac_top_build_prefix
26635 1576 phoenix
 
26636
case $srcdir in
26637 1743 jeremybenn
  .)  # We are building in place.
26638 1576 phoenix
    ac_srcdir=.
26639 1743 jeremybenn
    ac_top_srcdir=$ac_top_builddir_sub
26640
    ac_abs_top_srcdir=$ac_pwd ;;
26641
  [\\/]* | ?:[\\/]* )  # Absolute name.
26642 1576 phoenix
    ac_srcdir=$srcdir$ac_dir_suffix;
26643 1743 jeremybenn
    ac_top_srcdir=$srcdir
26644
    ac_abs_top_srcdir=$srcdir ;;
26645
  *) # Relative name.
26646
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26647
    ac_top_srcdir=$ac_top_build_prefix$srcdir
26648
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26649 1576 phoenix
esac
26650 1743 jeremybenn
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26651 1242 hpanther
 
26652 1576 phoenix
 
26653 1743 jeremybenn
  case $ac_mode in
26654
  :F)
26655
  #
26656
  # CONFIG_FILE
26657
  #
26658 1576 phoenix
 
26659 1242 hpanther
  case $INSTALL in
26660
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26661 1743 jeremybenn
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26662 7 jrydberg
  esac
26663 1743 jeremybenn
  ac_MKDIR_P=$MKDIR_P
26664
  case $MKDIR_P in
26665
  [\\/$]* | ?:[\\/]* ) ;;
26666
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26667
  esac
26668
_ACEOF
26669 7 jrydberg
 
26670 1743 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26671
# If the template does not know about datarootdir, expand it.
26672
# FIXME: This hack should be removed a few years after 2.60.
26673
ac_datarootdir_hack=; ac_datarootdir_seen=
26674 7 jrydberg
 
26675 1743 jeremybenn
case `sed -n '/datarootdir/ {
26676
  p
26677
  q
26678
}
26679
/@datadir@/p
26680
/@docdir@/p
26681
/@infodir@/p
26682
/@localedir@/p
26683
/@mandir@/p
26684
' $ac_file_inputs` in
26685
*datarootdir*) ac_datarootdir_seen=yes;;
26686
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26687
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26688
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26689 1576 phoenix
_ACEOF
26690
cat >>$CONFIG_STATUS <<_ACEOF
26691 1743 jeremybenn
  ac_datarootdir_hack='
26692
  s&@datadir@&$datadir&g
26693
  s&@docdir@&$docdir&g
26694
  s&@infodir@&$infodir&g
26695
  s&@localedir@&$localedir&g
26696
  s&@mandir@&$mandir&g
26697
    s&\\\${datarootdir}&$datarootdir&g' ;;
26698
esac
26699
_ACEOF
26700
 
26701
# Neutralize VPATH when `$srcdir' = `.'.
26702
# Shell code in configure.ac might set extrasub.
26703
# FIXME: do we really want to maintain this feature?
26704
cat >>$CONFIG_STATUS <<_ACEOF
26705 1242 hpanther
  sed "$ac_vpsub
26706
$extrasub
26707 1576 phoenix
_ACEOF
26708
cat >>$CONFIG_STATUS <<\_ACEOF
26709 1242 hpanther
:t
26710
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26711 1743 jeremybenn
s&@configure_input@&$configure_input&;t t
26712
s&@top_builddir@&$ac_top_builddir_sub&;t t
26713
s&@srcdir@&$ac_srcdir&;t t
26714
s&@abs_srcdir@&$ac_abs_srcdir&;t t
26715
s&@top_srcdir@&$ac_top_srcdir&;t t
26716
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26717
s&@builddir@&$ac_builddir&;t t
26718
s&@abs_builddir@&$ac_abs_builddir&;t t
26719
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26720
s&@INSTALL@&$ac_INSTALL&;t t
26721
s&@MKDIR_P@&$ac_MKDIR_P&;t t
26722
$ac_datarootdir_hack
26723
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26724 1242 hpanther
 
26725 1743 jeremybenn
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26726
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26727
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26728
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26729
which seems to be undefined.  Please make sure it is defined." >&5
26730
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26731
which seems to be undefined.  Please make sure it is defined." >&2;}
26732 1242 hpanther
 
26733 1743 jeremybenn
  rm -f "$tmp/stdin"
26734 1242 hpanther
  case $ac_file in
26735 1743 jeremybenn
  -) cat "$tmp/out"; rm -f "$tmp/out";;
26736
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26737 7 jrydberg
  esac
26738 1743 jeremybenn
 ;;
26739
  :H)
26740
  #
26741
  # CONFIG_HEADER
26742
  #
26743
_ACEOF
26744 7 jrydberg
 
26745 1743 jeremybenn
# Transform confdefs.h into a sed script `conftest.defines', that
26746
# substitutes the proper values into config.h.in to produce config.h.
26747
rm -f conftest.defines conftest.tail
26748
# First, append a space to every undef/define line, to ease matching.
26749
echo 's/$/ /' >conftest.defines
26750
# Then, protect against being on the right side of a sed subst, or in
26751
# an unquoted here document, in config.status.  If some macros were
26752
# called several times there might be several #defines for the same
26753
# symbol, which is useless.  But do not sort them, since the last
26754
# AC_DEFINE must be honored.
26755
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26756
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26757
# NAME is the cpp macro being defined, VALUE is the value it is being given.
26758
# PARAMS is the parameter list in the macro definition--in most cases, it's
26759
# just an empty string.
26760
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26761
ac_dB='\\)[      (].*,\\1define\\2'
26762
ac_dC=' '
26763
ac_dD=' ,'
26764 7 jrydberg
 
26765 1743 jeremybenn
uniq confdefs.h |
26766
  sed -n '
26767
        t rset
26768
        :rset
26769
        s/^[     ]*#[    ]*define[       ][      ]*//
26770
        t ok
26771
        d
26772
        :ok
26773
        s/[\\&,]/\\&/g
26774
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26775
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26776
  ' >>conftest.defines
26777 7 jrydberg
 
26778 1743 jeremybenn
# Remove the space that was appended to ease matching.
26779
# Then replace #undef with comments.  This is necessary, for
26780 7 jrydberg
# example, in the case of _POSIX_SOURCE, which is predefined and required
26781
# on some systems where configure will not decide to define it.
26782 1743 jeremybenn
# (The regexp can be short, since the line contains either #define or #undef.)
26783
echo 's/ $//
26784
s,^[     #]*u.*,/* & */,' >>conftest.defines
26785 7 jrydberg
 
26786 1743 jeremybenn
# Break up conftest.defines:
26787
ac_max_sed_lines=50
26788
 
26789
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26790
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26791
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26792
# et cetera.
26793
ac_in='$ac_file_inputs'
26794
ac_out='"$tmp/out1"'
26795
ac_nxt='"$tmp/out2"'
26796
 
26797
while :
26798 1242 hpanther
do
26799 1743 jeremybenn
  # Write a here document:
26800
    cat >>$CONFIG_STATUS <<_ACEOF
26801
    # First, check the format of the line:
26802
    cat >"\$tmp/defines.sed" <<\\CEOF
26803
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26804
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26805
b
26806
:def
26807
_ACEOF
26808
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26809 1242 hpanther
  echo 'CEOF
26810 1743 jeremybenn
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26811
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26812
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26813
  grep . conftest.tail >/dev/null || break
26814 1242 hpanther
  rm -f conftest.defines
26815
  mv conftest.tail conftest.defines
26816
done
26817 1743 jeremybenn
rm -f conftest.defines conftest.tail
26818 7 jrydberg
 
26819 1743 jeremybenn
echo "ac_result=$ac_in" >>$CONFIG_STATUS
26820 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
26821 1242 hpanther
  if test x"$ac_file" != x-; then
26822 1743 jeremybenn
    echo "/* $configure_input  */" >"$tmp/config.h"
26823
    cat "$ac_result" >>"$tmp/config.h"
26824
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26825 1576 phoenix
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26826 1242 hpanther
echo "$as_me: $ac_file is unchanged" >&6;}
26827
    else
26828
      rm -f $ac_file
26829 1743 jeremybenn
      mv "$tmp/config.h" $ac_file
26830 7 jrydberg
    fi
26831 1242 hpanther
  else
26832 1743 jeremybenn
    echo "/* $configure_input  */"
26833
    cat "$ac_result"
26834 7 jrydberg
  fi
26835 1743 jeremybenn
  rm -f "$tmp/out12"
26836 1576 phoenix
# Compute $ac_file's index in $config_headers.
26837 1743 jeremybenn
_am_arg=$ac_file
26838 1576 phoenix
_am_stamp_count=1
26839
for _am_header in $config_headers :; do
26840
  case $_am_header in
26841 1743 jeremybenn
    $_am_arg | $_am_arg:* )
26842 1576 phoenix
      break ;;
26843
    * )
26844
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26845 1242 hpanther
  esac
26846
done
26847 1743 jeremybenn
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26848
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26849
         X"$_am_arg" : 'X\(//\)[^/]' \| \
26850
         X"$_am_arg" : 'X\(//\)$' \| \
26851
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26852
echo X"$_am_arg" |
26853
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26854
            s//\1/
26855
            q
26856
          }
26857
          /^X\(\/\/\)[^/].*/{
26858
            s//\1/
26859
            q
26860
          }
26861
          /^X\(\/\/\)$/{
26862
            s//\1/
26863
            q
26864
          }
26865
          /^X\(\/\).*/{
26866
            s//\1/
26867
            q
26868
          }
26869
          s/.*/./; q'`/stamp-h$_am_stamp_count
26870
 ;;
26871 7 jrydberg
 
26872 1743 jeremybenn
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26873
echo "$as_me: executing $ac_file commands" >&6;}
26874
 ;;
26875
  esac
26876 7 jrydberg
 
26877 1576 phoenix
 
26878 1743 jeremybenn
  case $ac_file$ac_mode in
26879
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26880 1242 hpanther
  # Strip MF so we end up with the name of the file.
26881
  mf=`echo "$mf" | sed -e 's/:.*$//'`
26882 1376 phoenix
  # Check whether this is an Automake generated Makefile or not.
26883
  # We used to match only the files named `Makefile.in', but
26884
  # some people rename them; so instead we look at the file content.
26885
  # Grep'ing the first line is not enough: some people post-process
26886
  # each Makefile.in and add a new line on top of each file to say so.
26887 1743 jeremybenn
  # Grep'ing the whole file is not good either: AIX grep has a line
26888
  # limit of 2048, but all sed's we know have understand at least 4000.
26889
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26890
    dirpart=`$as_dirname -- "$mf" ||
26891 1576 phoenix
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26892
         X"$mf" : 'X\(//\)[^/]' \| \
26893
         X"$mf" : 'X\(//\)$' \| \
26894 1743 jeremybenn
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26895 1242 hpanther
echo X"$mf" |
26896 1743 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26897
            s//\1/
26898
            q
26899
          }
26900
          /^X\(\/\/\)[^/].*/{
26901
            s//\1/
26902
            q
26903
          }
26904
          /^X\(\/\/\)$/{
26905
            s//\1/
26906
            q
26907
          }
26908
          /^X\(\/\).*/{
26909
            s//\1/
26910
            q
26911
          }
26912
          s/.*/./; q'`
26913 1242 hpanther
  else
26914
    continue
26915
  fi
26916 1576 phoenix
  # Extract the definition of DEPDIR, am__include, and am__quote
26917
  # from the Makefile without running `make'.
26918
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26919 1242 hpanther
  test -z "$DEPDIR" && continue
26920 1576 phoenix
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
26921
  test -z "am__include" && continue
26922
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26923 1242 hpanther
  # When using ansi2knr, U may be empty or an underscore; expand it
26924 1576 phoenix
  U=`sed -n 's/^U = //p' < "$mf"`
26925
  # Find all dependency output files, they are included files with
26926
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
26927
  # simplest approach to changing $(DEPDIR) to its actual value in the
26928
  # expansion.
26929
  for file in `sed -n "
26930
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26931 1242 hpanther
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26932
    # Make sure the directory exists.
26933
    test -f "$dirpart/$file" && continue
26934 1743 jeremybenn
    fdir=`$as_dirname -- "$file" ||
26935 1576 phoenix
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26936
         X"$file" : 'X\(//\)[^/]' \| \
26937
         X"$file" : 'X\(//\)$' \| \
26938 1743 jeremybenn
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26939 1242 hpanther
echo X"$file" |
26940 1743 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26941
            s//\1/
26942
            q
26943
          }
26944
          /^X\(\/\/\)[^/].*/{
26945
            s//\1/
26946
            q
26947
          }
26948
          /^X\(\/\/\)$/{
26949
            s//\1/
26950
            q
26951
          }
26952
          /^X\(\/\).*/{
26953
            s//\1/
26954
            q
26955
          }
26956
          s/.*/./; q'`
26957
    { as_dir=$dirpart/$fdir
26958
  case $as_dir in #(
26959
  -*) as_dir=./$as_dir;;
26960
  esac
26961
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26962 1576 phoenix
    as_dirs=
26963 1743 jeremybenn
    while :; do
26964
      case $as_dir in #(
26965
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26966
      *) as_qdir=$as_dir;;
26967
      esac
26968
      as_dirs="'$as_qdir' $as_dirs"
26969
      as_dir=`$as_dirname -- "$as_dir" ||
26970 1576 phoenix
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26971
         X"$as_dir" : 'X\(//\)[^/]' \| \
26972
         X"$as_dir" : 'X\(//\)$' \| \
26973 1743 jeremybenn
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26974 1576 phoenix
echo X"$as_dir" |
26975 1743 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26976
            s//\1/
26977
            q
26978
          }
26979
          /^X\(\/\/\)[^/].*/{
26980
            s//\1/
26981
            q
26982
          }
26983
          /^X\(\/\/\)$/{
26984
            s//\1/
26985
            q
26986
          }
26987
          /^X\(\/\).*/{
26988
            s//\1/
26989
            q
26990
          }
26991
          s/.*/./; q'`
26992
      test -d "$as_dir" && break
26993 1576 phoenix
    done
26994 1743 jeremybenn
    test -z "$as_dirs" || eval "mkdir $as_dirs"
26995
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26996
echo "$as_me: error: cannot create directory $as_dir" >&2;}
26997 1576 phoenix
   { (exit 1); exit 1; }; }; }
26998 1242 hpanther
    # echo "creating $dirpart/$file"
26999
    echo '# dummy' > "$dirpart/$file"
27000
  done
27001
done
27002
 ;;
27003 1743 jeremybenn
 
27004 1242 hpanther
  esac
27005 1743 jeremybenn
done # for ac_tag
27006 7 jrydberg
 
27007 1242 hpanther
 
27008
{ (exit 0); exit 0; }
27009 1576 phoenix
_ACEOF
27010 7 jrydberg
chmod +x $CONFIG_STATUS
27011 1242 hpanther
ac_clean_files=$ac_clean_files_save
27012 7 jrydberg
 
27013 1576 phoenix
 
27014 1242 hpanther
# configure is writing to config.log, and then calls config.status.
27015
# config.status does its own redirection, appending to config.log.
27016
# Unfortunately, on DOS this fails, as config.log is still kept open
27017
# by configure, so config.status won't be able to write to it; its
27018
# output is simply discarded.  So we exec the FD to /dev/null,
27019
# effectively closing config.log, so it can be properly (re)opened and
27020
# appended to by config.status.  When coming back to configure, we
27021
# need to make the FD available again.
27022
if test "$no_create" != yes; then
27023
  ac_cs_success=:
27024 1576 phoenix
  ac_config_status_args=
27025
  test "$silent" = yes &&
27026
    ac_config_status_args="$ac_config_status_args --quiet"
27027 1242 hpanther
  exec 5>/dev/null
27028 1576 phoenix
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27029 1242 hpanther
  exec 5>>config.log
27030
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27031
  # would make configure fail if this is the last instruction.
27032
  $ac_cs_success || { (exit 1); exit 1; }
27033
fi
27034
 

powered by: WebSVN 2.1.0

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