~ubuntu-branches/ubuntu/karmic/sssd/karmic

« back to all changes in this revision

Viewing changes to common/path_utils/configure

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-08-24 16:35:11 UTC
  • Revision ID: james.westby@ubuntu.com-20090824163511-l20qd53jlb0bv56d
Tags: upstream-0.5.0
ImportĀ upstreamĀ versionĀ 0.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.63 for path_utils 0.1.
 
4
#
 
5
# Report bugs to <jdennis@redhat.com>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
as_nl='
 
43
'
 
44
export as_nl
 
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
# Support unset when possible.
 
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
85
  as_unset=unset
 
86
else
 
87
  as_unset=false
 
88
fi
 
89
 
 
90
 
 
91
# IFS
 
92
# We need space, tab and new line, in precisely that order.  Quoting is
 
93
# there to prevent editors from complaining about space-tab.
 
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
95
# splitting by setting IFS to empty value.)
 
96
IFS=" ""        $as_nl"
 
97
 
 
98
# Find who we are.  Look in the path if we contain no directory separator.
 
99
case $0 in
 
100
  *[\\/]* ) as_myself=$0 ;;
 
101
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
102
for as_dir in $PATH
 
103
do
 
104
  IFS=$as_save_IFS
 
105
  test -z "$as_dir" && as_dir=.
 
106
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
107
done
 
108
IFS=$as_save_IFS
 
109
 
 
110
     ;;
 
111
esac
 
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
113
# in which case we are not to be found in the path.
 
114
if test "x$as_myself" = x; then
 
115
  as_myself=$0
 
116
fi
 
117
if test ! -f "$as_myself"; then
 
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
119
  { (exit 1); exit 1; }
 
120
fi
 
121
 
 
122
# Work around bugs in pre-3.0 UWIN ksh.
 
123
for as_var in ENV MAIL MAILPATH
 
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# Required to use basename.
 
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
138
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
139
  as_expr=expr
 
140
else
 
141
  as_expr=false
 
142
fi
 
143
 
 
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
145
  as_basename=basename
 
146
else
 
147
  as_basename=false
 
148
fi
 
149
 
 
150
 
 
151
# Name of the executable.
 
152
as_me=`$as_basename -- "$0" ||
 
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
154
         X"$0" : 'X\(//\)$' \| \
 
155
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
156
$as_echo X/"$0" |
 
157
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
158
            s//\1/
 
159
            q
 
160
          }
 
161
          /^X\/\(\/\/\)$/{
 
162
            s//\1/
 
163
            q
 
164
          }
 
165
          /^X\/\(\/\).*/{
 
166
            s//\1/
 
167
            q
 
168
          }
 
169
          s/.*/./; q'`
 
170
 
 
171
# CDPATH.
 
172
$as_unset CDPATH
 
173
 
 
174
 
 
175
if test "x$CONFIG_SHELL" = x; then
 
176
  if (eval ":") 2>/dev/null; then
 
177
  as_have_required=yes
 
178
else
 
179
  as_have_required=no
 
180
fi
 
181
 
 
182
  if test $as_have_required = yes &&     (eval ":
 
183
(as_func_return () {
 
184
  (exit \$1)
 
185
}
 
186
as_func_success () {
 
187
  as_func_return 0
 
188
}
 
189
as_func_failure () {
 
190
  as_func_return 1
 
191
}
 
192
as_func_ret_success () {
 
193
  return 0
 
194
}
 
195
as_func_ret_failure () {
 
196
  return 1
 
197
}
 
198
 
 
199
exitcode=0
 
200
if as_func_success; then
 
201
  :
 
202
else
 
203
  exitcode=1
 
204
  echo as_func_success failed.
 
205
fi
 
206
 
 
207
if as_func_failure; then
 
208
  exitcode=1
 
209
  echo as_func_failure succeeded.
 
210
fi
 
211
 
 
212
if as_func_ret_success; then
 
213
  :
 
214
else
 
215
  exitcode=1
 
216
  echo as_func_ret_success failed.
 
217
fi
 
218
 
 
219
if as_func_ret_failure; then
 
220
  exitcode=1
 
221
  echo as_func_ret_failure succeeded.
 
222
fi
 
223
 
 
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
225
  :
 
226
else
 
227
  exitcode=1
 
228
  echo positional parameters were not saved.
 
229
fi
 
230
 
 
231
test \$exitcode = 0) || { (exit 1); exit 1; }
 
232
 
 
233
(
 
234
  as_lineno_1=\$LINENO
 
235
  as_lineno_2=\$LINENO
 
236
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
237
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
238
") 2> /dev/null; then
 
239
  :
 
240
else
 
241
  as_candidate_shells=
 
242
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
244
do
 
245
  IFS=$as_save_IFS
 
246
  test -z "$as_dir" && as_dir=.
 
247
  case $as_dir in
 
248
         /*)
 
249
           for as_base in sh bash ksh sh5; do
 
250
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
251
           done;;
 
252
       esac
 
253
done
 
254
IFS=$as_save_IFS
 
255
 
 
256
 
 
257
      for as_shell in $as_candidate_shells $SHELL; do
 
258
         # Try only shells that exist, to save several forks.
 
259
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
260
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
_ASEOF
 
278
}; then
 
279
  CONFIG_SHELL=$as_shell
 
280
               as_have_required=yes
 
281
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
283
  emulate sh
 
284
  NULLCMD=:
 
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
286
  # is contrary to our usage.  Disable this feature.
 
287
  alias -g '${1+"$@"}'='"$@"'
 
288
  setopt NO_GLOB_SUBST
 
289
else
 
290
  case `(set -o) 2>/dev/null` in
 
291
  *posix*) set -o posix ;;
 
292
esac
 
293
 
 
294
fi
 
295
 
 
296
 
 
297
:
 
298
(as_func_return () {
 
299
  (exit $1)
 
300
}
 
301
as_func_success () {
 
302
  as_func_return 0
 
303
}
 
304
as_func_failure () {
 
305
  as_func_return 1
 
306
}
 
307
as_func_ret_success () {
 
308
  return 0
 
309
}
 
310
as_func_ret_failure () {
 
311
  return 1
 
312
}
 
313
 
 
314
exitcode=0
 
315
if as_func_success; then
 
316
  :
 
317
else
 
318
  exitcode=1
 
319
  echo as_func_success failed.
 
320
fi
 
321
 
 
322
if as_func_failure; then
 
323
  exitcode=1
 
324
  echo as_func_failure succeeded.
 
325
fi
 
326
 
 
327
if as_func_ret_success; then
 
328
  :
 
329
else
 
330
  exitcode=1
 
331
  echo as_func_ret_success failed.
 
332
fi
 
333
 
 
334
if as_func_ret_failure; then
 
335
  exitcode=1
 
336
  echo as_func_ret_failure succeeded.
 
337
fi
 
338
 
 
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
340
  :
 
341
else
 
342
  exitcode=1
 
343
  echo positional parameters were not saved.
 
344
fi
 
345
 
 
346
test $exitcode = 0) || { (exit 1); exit 1; }
 
347
 
 
348
(
 
349
  as_lineno_1=$LINENO
 
350
  as_lineno_2=$LINENO
 
351
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
352
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
353
 
 
354
_ASEOF
 
355
}; then
 
356
  break
 
357
fi
 
358
 
 
359
fi
 
360
 
 
361
      done
 
362
 
 
363
      if test "x$CONFIG_SHELL" != x; then
 
364
  for as_var in BASH_ENV ENV
 
365
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
366
        done
 
367
        export CONFIG_SHELL
 
368
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
369
fi
 
370
 
 
371
 
 
372
    if test $as_have_required = no; then
 
373
  echo This script requires a shell more modern than all the
 
374
      echo shells that I found on your system.  Please install a
 
375
      echo modern shell, or manually run the script under such a
 
376
      echo shell if you do have one.
 
377
      { (exit 1); exit 1; }
 
378
fi
 
379
 
 
380
 
 
381
fi
 
382
 
 
383
fi
 
384
 
 
385
 
 
386
 
 
387
(eval "as_func_return () {
 
388
  (exit \$1)
 
389
}
 
390
as_func_success () {
 
391
  as_func_return 0
 
392
}
 
393
as_func_failure () {
 
394
  as_func_return 1
 
395
}
 
396
as_func_ret_success () {
 
397
  return 0
 
398
}
 
399
as_func_ret_failure () {
 
400
  return 1
 
401
}
 
402
 
 
403
exitcode=0
 
404
if as_func_success; then
 
405
  :
 
406
else
 
407
  exitcode=1
 
408
  echo as_func_success failed.
 
409
fi
 
410
 
 
411
if as_func_failure; then
 
412
  exitcode=1
 
413
  echo as_func_failure succeeded.
 
414
fi
 
415
 
 
416
if as_func_ret_success; then
 
417
  :
 
418
else
 
419
  exitcode=1
 
420
  echo as_func_ret_success failed.
 
421
fi
 
422
 
 
423
if as_func_ret_failure; then
 
424
  exitcode=1
 
425
  echo as_func_ret_failure succeeded.
 
426
fi
 
427
 
 
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
429
  :
 
430
else
 
431
  exitcode=1
 
432
  echo positional parameters were not saved.
 
433
fi
 
434
 
 
435
test \$exitcode = 0") || {
 
436
  echo No shell found that supports shell functions.
 
437
  echo Please tell bug-autoconf@gnu.org about your system,
 
438
  echo including any error possibly output before this message.
 
439
  echo This can help us improve future autoconf versions.
 
440
  echo Configuration will now proceed without shell functions.
 
441
}
 
442
 
 
443
 
 
444
 
 
445
  as_lineno_1=$LINENO
 
446
  as_lineno_2=$LINENO
 
447
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
448
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
449
 
 
450
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
451
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
452
  # line-number line after each line using $LINENO; the second 'sed'
 
453
  # does the real work.  The second script uses 'N' to pair each
 
454
  # line-number line with the line containing $LINENO, and appends
 
455
  # trailing '-' during substitution so that $LINENO is not a special
 
456
  # case at line end.
 
457
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
458
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
459
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
460
  sed -n '
 
461
    p
 
462
    /[$]LINENO/=
 
463
  ' <$as_myself |
 
464
    sed '
 
465
      s/[$]LINENO.*/&-/
 
466
      t lineno
 
467
      b
 
468
      :lineno
 
469
      N
 
470
      :loop
 
471
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
472
      t loop
 
473
      s/-\n.*//
 
474
    ' >$as_me.lineno &&
 
475
  chmod +x "$as_me.lineno" ||
 
476
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
477
   { (exit 1); exit 1; }; }
 
478
 
 
479
  # Don't try to exec as it changes $[0], causing all sort of problems
 
480
  # (the dirname of $[0] is not the place where we might find the
 
481
  # original and so on.  Autoconf is especially sensitive to this).
 
482
  . "./$as_me.lineno"
 
483
  # Exit status is that of the last command.
 
484
  exit
 
485
}
 
486
 
 
487
 
 
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
489
  as_dirname=dirname
 
490
else
 
491
  as_dirname=false
 
492
fi
 
493
 
 
494
ECHO_C= ECHO_N= ECHO_T=
 
495
case `echo -n x` in
 
496
-n*)
 
497
  case `echo 'x\c'` in
 
498
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
499
  *)   ECHO_C='\c';;
 
500
  esac;;
 
501
*)
 
502
  ECHO_N='-n';;
 
503
esac
 
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
505
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
506
  as_expr=expr
 
507
else
 
508
  as_expr=false
 
509
fi
 
510
 
 
511
rm -f conf$$ conf$$.exe conf$$.file
 
512
if test -d conf$$.dir; then
 
513
  rm -f conf$$.dir/conf$$.file
 
514
else
 
515
  rm -f conf$$.dir
 
516
  mkdir conf$$.dir 2>/dev/null
 
517
fi
 
518
if (echo >conf$$.file) 2>/dev/null; then
 
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
520
    as_ln_s='ln -s'
 
521
    # ... but there are two gotchas:
 
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
524
    # In both cases, we have to default to `cp -p'.
 
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
526
      as_ln_s='cp -p'
 
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
528
    as_ln_s=ln
 
529
  else
 
530
    as_ln_s='cp -p'
 
531
  fi
 
532
else
 
533
  as_ln_s='cp -p'
 
534
fi
 
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
536
rmdir conf$$.dir 2>/dev/null
 
537
 
 
538
if mkdir -p . 2>/dev/null; then
 
539
  as_mkdir_p=:
 
540
else
 
541
  test -d ./-p && rmdir ./-p
 
542
  as_mkdir_p=false
 
543
fi
 
544
 
 
545
if test -x / >/dev/null 2>&1; then
 
546
  as_test_x='test -x'
 
547
else
 
548
  if ls -dL / >/dev/null 2>&1; then
 
549
    as_ls_L_option=L
 
550
  else
 
551
    as_ls_L_option=
 
552
  fi
 
553
  as_test_x='
 
554
    eval sh -c '\''
 
555
      if test -d "$1"; then
 
556
        test -d "$1/.";
 
557
      else
 
558
        case $1 in
 
559
        -*)set "./$1";;
 
560
        esac;
 
561
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
562
        ???[sx]*):;;*)false;;esac;fi
 
563
    '\'' sh
 
564
  '
 
565
fi
 
566
as_executable_p=$as_test_x
 
567
 
 
568
# Sed expression to map a string onto a valid CPP name.
 
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
570
 
 
571
# Sed expression to map a string onto a valid variable name.
 
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
573
 
 
574
 
 
575
 
 
576
 
 
577
# Check that we are running under the correct shell.
 
578
SHELL=${CONFIG_SHELL-/bin/sh}
 
579
 
 
580
case X$lt_ECHO in
 
581
X*--fallback-echo)
 
582
  # Remove one level of quotation (which was required for Make).
 
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
584
  ;;
 
585
esac
 
586
 
 
587
ECHO=${lt_ECHO-echo}
 
588
if test "X$1" = X--no-reexec; then
 
589
  # Discard the --no-reexec flag, and continue.
 
590
  shift
 
591
elif test "X$1" = X--fallback-echo; then
 
592
  # Avoid inline document here, it may be left over
 
593
  :
 
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $ECHO works!
 
596
  :
 
597
else
 
598
  # Restart under the correct shell.
 
599
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
600
fi
 
601
 
 
602
if test "X$1" = X--fallback-echo; then
 
603
  # used as fallback echo
 
604
  shift
 
605
  cat <<_LT_EOF
 
606
$*
 
607
_LT_EOF
 
608
  exit 0
 
609
fi
 
610
 
 
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
612
# if CDPATH is set.
 
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
614
 
 
615
if test -z "$lt_ECHO"; then
 
616
  if test "X${echo_test_string+set}" != Xset; then
 
617
    # find a string as large as possible, as long as the shell can cope with it
 
618
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
621
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
622
      then
 
623
        break
 
624
      fi
 
625
    done
 
626
  fi
 
627
 
 
628
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
629
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
630
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
631
    :
 
632
  else
 
633
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
634
    # backslashes.  This makes it impossible to quote backslashes using
 
635
    #   echo "$something" | sed 's/\\/\\\\/g'
 
636
    #
 
637
    # So, first we look for a working echo in the user's PATH.
 
638
 
 
639
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
640
    for dir in $PATH /usr/ucb; do
 
641
      IFS="$lt_save_ifs"
 
642
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
643
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
644
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
645
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
646
        ECHO="$dir/echo"
 
647
        break
 
648
      fi
 
649
    done
 
650
    IFS="$lt_save_ifs"
 
651
 
 
652
    if test "X$ECHO" = Xecho; then
 
653
      # We didn't find a better echo, so look for alternatives.
 
654
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
655
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
656
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
        # This shell has a builtin print -r that does the trick.
 
658
        ECHO='print -r'
 
659
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
660
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
661
        # If we have ksh, try running configure again with it.
 
662
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
663
        export ORIGINAL_CONFIG_SHELL
 
664
        CONFIG_SHELL=/bin/ksh
 
665
        export CONFIG_SHELL
 
666
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
667
      else
 
668
        # Try using printf.
 
669
        ECHO='printf %s\n'
 
670
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
671
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
672
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
673
          # Cool, printf works
 
674
          :
 
675
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
676
             test "X$echo_testing_string" = 'X\t' &&
 
677
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
678
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
679
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
680
          export CONFIG_SHELL
 
681
          SHELL="$CONFIG_SHELL"
 
682
          export SHELL
 
683
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
684
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
685
             test "X$echo_testing_string" = 'X\t' &&
 
686
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
687
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
688
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
689
        else
 
690
          # maybe with a smaller string...
 
691
          prev=:
 
692
 
 
693
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
694
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
695
            then
 
696
              break
 
697
            fi
 
698
            prev="$cmd"
 
699
          done
 
700
 
 
701
          if test "$prev" != 'sed 50q "$0"'; then
 
702
            echo_test_string=`eval $prev`
 
703
            export echo_test_string
 
704
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
705
          else
 
706
            # Oops.  We lost completely, so just stick with echo.
 
707
            ECHO=echo
 
708
          fi
 
709
        fi
 
710
      fi
 
711
    fi
 
712
  fi
 
713
fi
 
714
 
 
715
# Copy echo and quote the copy suitably for passing to libtool from
 
716
# the Makefile, instead of quoting the original, which is used later.
 
717
lt_ECHO=$ECHO
 
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
719
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
720
fi
 
721
 
 
722
 
 
723
 
 
724
 
 
725
exec 7<&0 </dev/null 6>&1
 
726
 
 
727
# Name of the host.
 
728
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
729
# so uname gets run too.
 
730
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
731
 
 
732
#
 
733
# Initializations.
 
734
#
 
735
ac_default_prefix=/usr/local
 
736
ac_clean_files=
 
737
ac_config_libobj_dir=.
 
738
LIBOBJS=
 
739
cross_compiling=no
 
740
subdirs=
 
741
MFLAGS=
 
742
MAKEFLAGS=
 
743
SHELL=${CONFIG_SHELL-/bin/sh}
 
744
 
 
745
# Identity of this package.
 
746
PACKAGE_NAME='path_utils'
 
747
PACKAGE_TARNAME='path_utils'
 
748
PACKAGE_VERSION='0.1'
 
749
PACKAGE_STRING='path_utils 0.1'
 
750
PACKAGE_BUGREPORT='jdennis@redhat.com'
 
751
 
 
752
ac_unique_file="path_utils.c"
 
753
# Factoring default headers for most tests.
 
754
ac_includes_default="\
 
755
#include <stdio.h>
 
756
#ifdef HAVE_SYS_TYPES_H
 
757
# include <sys/types.h>
 
758
#endif
 
759
#ifdef HAVE_SYS_STAT_H
 
760
# include <sys/stat.h>
 
761
#endif
 
762
#ifdef STDC_HEADERS
 
763
# include <stdlib.h>
 
764
# include <stddef.h>
 
765
#else
 
766
# ifdef HAVE_STDLIB_H
 
767
#  include <stdlib.h>
 
768
# endif
 
769
#endif
 
770
#ifdef HAVE_STRING_H
 
771
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
772
#  include <memory.h>
 
773
# endif
 
774
# include <string.h>
 
775
#endif
 
776
#ifdef HAVE_STRINGS_H
 
777
# include <strings.h>
 
778
#endif
 
779
#ifdef HAVE_INTTYPES_H
 
780
# include <inttypes.h>
 
781
#endif
 
782
#ifdef HAVE_STDINT_H
 
783
# include <stdint.h>
 
784
#endif
 
785
#ifdef HAVE_UNISTD_H
 
786
# include <unistd.h>
 
787
#endif"
 
788
 
 
789
ac_subst_vars='am__EXEEXT_FALSE
 
790
am__EXEEXT_TRUE
 
791
LTLIBOBJS
 
792
LIBOBJS
 
793
AM_BACKSLASH
 
794
AM_DEFAULT_VERBOSITY
 
795
HAVE_GCC_FALSE
 
796
HAVE_GCC_TRUE
 
797
CPP
 
798
OTOOL64
 
799
OTOOL
 
800
LIPO
 
801
NMEDIT
 
802
DSYMUTIL
 
803
lt_ECHO
 
804
RANLIB
 
805
AR
 
806
OBJDUMP
 
807
LN_S
 
808
NM
 
809
ac_ct_DUMPBIN
 
810
DUMPBIN
 
811
LD
 
812
FGREP
 
813
EGREP
 
814
GREP
 
815
SED
 
816
host_os
 
817
host_vendor
 
818
host_cpu
 
819
host
 
820
build_os
 
821
build_vendor
 
822
build_cpu
 
823
build
 
824
LIBTOOL
 
825
am__fastdepCC_FALSE
 
826
am__fastdepCC_TRUE
 
827
CCDEPMODE
 
828
AMDEPBACKSLASH
 
829
AMDEP_FALSE
 
830
AMDEP_TRUE
 
831
am__quote
 
832
am__include
 
833
DEPDIR
 
834
OBJEXT
 
835
EXEEXT
 
836
ac_ct_CC
 
837
CPPFLAGS
 
838
LDFLAGS
 
839
CFLAGS
 
840
CC
 
841
am__untar
 
842
am__tar
 
843
AMTAR
 
844
am__leading_dot
 
845
SET_MAKE
 
846
AWK
 
847
mkdir_p
 
848
MKDIR_P
 
849
INSTALL_STRIP_PROGRAM
 
850
STRIP
 
851
install_sh
 
852
MAKEINFO
 
853
AUTOHEADER
 
854
AUTOMAKE
 
855
AUTOCONF
 
856
ACLOCAL
 
857
VERSION
 
858
PACKAGE
 
859
CYGPATH_W
 
860
am__isrc
 
861
INSTALL_DATA
 
862
INSTALL_SCRIPT
 
863
INSTALL_PROGRAM
 
864
target_alias
 
865
host_alias
 
866
build_alias
 
867
LIBS
 
868
ECHO_T
 
869
ECHO_N
 
870
ECHO_C
 
871
DEFS
 
872
mandir
 
873
localedir
 
874
libdir
 
875
psdir
 
876
pdfdir
 
877
dvidir
 
878
htmldir
 
879
infodir
 
880
docdir
 
881
oldincludedir
 
882
includedir
 
883
localstatedir
 
884
sharedstatedir
 
885
sysconfdir
 
886
datadir
 
887
datarootdir
 
888
libexecdir
 
889
sbindir
 
890
bindir
 
891
program_transform_name
 
892
prefix
 
893
exec_prefix
 
894
PACKAGE_BUGREPORT
 
895
PACKAGE_STRING
 
896
PACKAGE_VERSION
 
897
PACKAGE_TARNAME
 
898
PACKAGE_NAME
 
899
PATH_SEPARATOR
 
900
SHELL'
 
901
ac_subst_files=''
 
902
ac_user_opts='
 
903
enable_option_checking
 
904
enable_dependency_tracking
 
905
enable_shared
 
906
enable_static
 
907
with_pic
 
908
enable_fast_install
 
909
with_gnu_ld
 
910
enable_libtool_lock
 
911
enable_silent_rules
 
912
'
 
913
      ac_precious_vars='build_alias
 
914
host_alias
 
915
target_alias
 
916
CC
 
917
CFLAGS
 
918
LDFLAGS
 
919
LIBS
 
920
CPPFLAGS
 
921
CPP'
 
922
 
 
923
 
 
924
# Initialize some variables set by options.
 
925
ac_init_help=
 
926
ac_init_version=false
 
927
ac_unrecognized_opts=
 
928
ac_unrecognized_sep=
 
929
# The variables have the same names as the options, with
 
930
# dashes changed to underlines.
 
931
cache_file=/dev/null
 
932
exec_prefix=NONE
 
933
no_create=
 
934
no_recursion=
 
935
prefix=NONE
 
936
program_prefix=NONE
 
937
program_suffix=NONE
 
938
program_transform_name=s,x,x,
 
939
silent=
 
940
site=
 
941
srcdir=
 
942
verbose=
 
943
x_includes=NONE
 
944
x_libraries=NONE
 
945
 
 
946
# Installation directory options.
 
947
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
948
# and all the variables that are supposed to be based on exec_prefix
 
949
# by default will actually change.
 
950
# Use braces instead of parens because sh, perl, etc. also accept them.
 
951
# (The list follows the same order as the GNU Coding Standards.)
 
952
bindir='${exec_prefix}/bin'
 
953
sbindir='${exec_prefix}/sbin'
 
954
libexecdir='${exec_prefix}/libexec'
 
955
datarootdir='${prefix}/share'
 
956
datadir='${datarootdir}'
 
957
sysconfdir='${prefix}/etc'
 
958
sharedstatedir='${prefix}/com'
 
959
localstatedir='${prefix}/var'
 
960
includedir='${prefix}/include'
 
961
oldincludedir='/usr/include'
 
962
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
963
infodir='${datarootdir}/info'
 
964
htmldir='${docdir}'
 
965
dvidir='${docdir}'
 
966
pdfdir='${docdir}'
 
967
psdir='${docdir}'
 
968
libdir='${exec_prefix}/lib'
 
969
localedir='${datarootdir}/locale'
 
970
mandir='${datarootdir}/man'
 
971
 
 
972
ac_prev=
 
973
ac_dashdash=
 
974
for ac_option
 
975
do
 
976
  # If the previous option needs an argument, assign it.
 
977
  if test -n "$ac_prev"; then
 
978
    eval $ac_prev=\$ac_option
 
979
    ac_prev=
 
980
    continue
 
981
  fi
 
982
 
 
983
  case $ac_option in
 
984
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
985
  *)    ac_optarg=yes ;;
 
986
  esac
 
987
 
 
988
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
989
 
 
990
  case $ac_dashdash$ac_option in
 
991
  --)
 
992
    ac_dashdash=yes ;;
 
993
 
 
994
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
995
    ac_prev=bindir ;;
 
996
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
997
    bindir=$ac_optarg ;;
 
998
 
 
999
  -build | --build | --buil | --bui | --bu)
 
1000
    ac_prev=build_alias ;;
 
1001
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1002
    build_alias=$ac_optarg ;;
 
1003
 
 
1004
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1005
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1006
    ac_prev=cache_file ;;
 
1007
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1008
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1009
    cache_file=$ac_optarg ;;
 
1010
 
 
1011
  --config-cache | -C)
 
1012
    cache_file=config.cache ;;
 
1013
 
 
1014
  -datadir | --datadir | --datadi | --datad)
 
1015
    ac_prev=datadir ;;
 
1016
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1017
    datadir=$ac_optarg ;;
 
1018
 
 
1019
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1020
  | --dataroo | --dataro | --datar)
 
1021
    ac_prev=datarootdir ;;
 
1022
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1023
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1024
    datarootdir=$ac_optarg ;;
 
1025
 
 
1026
  -disable-* | --disable-*)
 
1027
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1028
    # Reject names that are not valid shell variable names.
 
1029
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1030
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1031
   { (exit 1); exit 1; }; }
 
1032
    ac_useropt_orig=$ac_useropt
 
1033
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1034
    case $ac_user_opts in
 
1035
      *"
 
1036
"enable_$ac_useropt"
 
1037
"*) ;;
 
1038
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1039
         ac_unrecognized_sep=', ';;
 
1040
    esac
 
1041
    eval enable_$ac_useropt=no ;;
 
1042
 
 
1043
  -docdir | --docdir | --docdi | --doc | --do)
 
1044
    ac_prev=docdir ;;
 
1045
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1046
    docdir=$ac_optarg ;;
 
1047
 
 
1048
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1049
    ac_prev=dvidir ;;
 
1050
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1051
    dvidir=$ac_optarg ;;
 
1052
 
 
1053
  -enable-* | --enable-*)
 
1054
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1055
    # Reject names that are not valid shell variable names.
 
1056
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1057
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1058
   { (exit 1); exit 1; }; }
 
1059
    ac_useropt_orig=$ac_useropt
 
1060
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1061
    case $ac_user_opts in
 
1062
      *"
 
1063
"enable_$ac_useropt"
 
1064
"*) ;;
 
1065
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1066
         ac_unrecognized_sep=', ';;
 
1067
    esac
 
1068
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1069
 
 
1070
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1071
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1072
  | --exec | --exe | --ex)
 
1073
    ac_prev=exec_prefix ;;
 
1074
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1075
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1076
  | --exec=* | --exe=* | --ex=*)
 
1077
    exec_prefix=$ac_optarg ;;
 
1078
 
 
1079
  -gas | --gas | --ga | --g)
 
1080
    # Obsolete; use --with-gas.
 
1081
    with_gas=yes ;;
 
1082
 
 
1083
  -help | --help | --hel | --he | -h)
 
1084
    ac_init_help=long ;;
 
1085
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1086
    ac_init_help=recursive ;;
 
1087
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1088
    ac_init_help=short ;;
 
1089
 
 
1090
  -host | --host | --hos | --ho)
 
1091
    ac_prev=host_alias ;;
 
1092
  -host=* | --host=* | --hos=* | --ho=*)
 
1093
    host_alias=$ac_optarg ;;
 
1094
 
 
1095
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1096
    ac_prev=htmldir ;;
 
1097
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1098
  | --ht=*)
 
1099
    htmldir=$ac_optarg ;;
 
1100
 
 
1101
  -includedir | --includedir | --includedi | --included | --include \
 
1102
  | --includ | --inclu | --incl | --inc)
 
1103
    ac_prev=includedir ;;
 
1104
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1105
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1106
    includedir=$ac_optarg ;;
 
1107
 
 
1108
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1109
    ac_prev=infodir ;;
 
1110
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1111
    infodir=$ac_optarg ;;
 
1112
 
 
1113
  -libdir | --libdir | --libdi | --libd)
 
1114
    ac_prev=libdir ;;
 
1115
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1116
    libdir=$ac_optarg ;;
 
1117
 
 
1118
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1119
  | --libexe | --libex | --libe)
 
1120
    ac_prev=libexecdir ;;
 
1121
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1122
  | --libexe=* | --libex=* | --libe=*)
 
1123
    libexecdir=$ac_optarg ;;
 
1124
 
 
1125
  -localedir | --localedir | --localedi | --localed | --locale)
 
1126
    ac_prev=localedir ;;
 
1127
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1128
    localedir=$ac_optarg ;;
 
1129
 
 
1130
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1131
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1132
    ac_prev=localstatedir ;;
 
1133
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1134
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1135
    localstatedir=$ac_optarg ;;
 
1136
 
 
1137
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1138
    ac_prev=mandir ;;
 
1139
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1140
    mandir=$ac_optarg ;;
 
1141
 
 
1142
  -nfp | --nfp | --nf)
 
1143
    # Obsolete; use --without-fp.
 
1144
    with_fp=no ;;
 
1145
 
 
1146
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1147
  | --no-cr | --no-c | -n)
 
1148
    no_create=yes ;;
 
1149
 
 
1150
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1151
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1152
    no_recursion=yes ;;
 
1153
 
 
1154
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1155
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1156
  | --oldin | --oldi | --old | --ol | --o)
 
1157
    ac_prev=oldincludedir ;;
 
1158
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1159
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1160
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1161
    oldincludedir=$ac_optarg ;;
 
1162
 
 
1163
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1164
    ac_prev=prefix ;;
 
1165
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1166
    prefix=$ac_optarg ;;
 
1167
 
 
1168
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1169
  | --program-pre | --program-pr | --program-p)
 
1170
    ac_prev=program_prefix ;;
 
1171
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1172
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1173
    program_prefix=$ac_optarg ;;
 
1174
 
 
1175
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1176
  | --program-suf | --program-su | --program-s)
 
1177
    ac_prev=program_suffix ;;
 
1178
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1179
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1180
    program_suffix=$ac_optarg ;;
 
1181
 
 
1182
  -program-transform-name | --program-transform-name \
 
1183
  | --program-transform-nam | --program-transform-na \
 
1184
  | --program-transform-n | --program-transform- \
 
1185
  | --program-transform | --program-transfor \
 
1186
  | --program-transfo | --program-transf \
 
1187
  | --program-trans | --program-tran \
 
1188
  | --progr-tra | --program-tr | --program-t)
 
1189
    ac_prev=program_transform_name ;;
 
1190
  -program-transform-name=* | --program-transform-name=* \
 
1191
  | --program-transform-nam=* | --program-transform-na=* \
 
1192
  | --program-transform-n=* | --program-transform-=* \
 
1193
  | --program-transform=* | --program-transfor=* \
 
1194
  | --program-transfo=* | --program-transf=* \
 
1195
  | --program-trans=* | --program-tran=* \
 
1196
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1197
    program_transform_name=$ac_optarg ;;
 
1198
 
 
1199
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1200
    ac_prev=pdfdir ;;
 
1201
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1202
    pdfdir=$ac_optarg ;;
 
1203
 
 
1204
  -psdir | --psdir | --psdi | --psd | --ps)
 
1205
    ac_prev=psdir ;;
 
1206
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1207
    psdir=$ac_optarg ;;
 
1208
 
 
1209
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1210
  | -silent | --silent | --silen | --sile | --sil)
 
1211
    silent=yes ;;
 
1212
 
 
1213
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1214
    ac_prev=sbindir ;;
 
1215
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1216
  | --sbi=* | --sb=*)
 
1217
    sbindir=$ac_optarg ;;
 
1218
 
 
1219
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1220
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1221
  | --sharedst | --shareds | --shared | --share | --shar \
 
1222
  | --sha | --sh)
 
1223
    ac_prev=sharedstatedir ;;
 
1224
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1225
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1226
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1227
  | --sha=* | --sh=*)
 
1228
    sharedstatedir=$ac_optarg ;;
 
1229
 
 
1230
  -site | --site | --sit)
 
1231
    ac_prev=site ;;
 
1232
  -site=* | --site=* | --sit=*)
 
1233
    site=$ac_optarg ;;
 
1234
 
 
1235
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1236
    ac_prev=srcdir ;;
 
1237
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1238
    srcdir=$ac_optarg ;;
 
1239
 
 
1240
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1241
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1242
    ac_prev=sysconfdir ;;
 
1243
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1244
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1245
    sysconfdir=$ac_optarg ;;
 
1246
 
 
1247
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1248
    ac_prev=target_alias ;;
 
1249
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1250
    target_alias=$ac_optarg ;;
 
1251
 
 
1252
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1253
    verbose=yes ;;
 
1254
 
 
1255
  -version | --version | --versio | --versi | --vers | -V)
 
1256
    ac_init_version=: ;;
 
1257
 
 
1258
  -with-* | --with-*)
 
1259
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1260
    # Reject names that are not valid shell variable names.
 
1261
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1262
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1263
   { (exit 1); exit 1; }; }
 
1264
    ac_useropt_orig=$ac_useropt
 
1265
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1266
    case $ac_user_opts in
 
1267
      *"
 
1268
"with_$ac_useropt"
 
1269
"*) ;;
 
1270
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1271
         ac_unrecognized_sep=', ';;
 
1272
    esac
 
1273
    eval with_$ac_useropt=\$ac_optarg ;;
 
1274
 
 
1275
  -without-* | --without-*)
 
1276
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1277
    # Reject names that are not valid shell variable names.
 
1278
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1279
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1280
   { (exit 1); exit 1; }; }
 
1281
    ac_useropt_orig=$ac_useropt
 
1282
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1283
    case $ac_user_opts in
 
1284
      *"
 
1285
"with_$ac_useropt"
 
1286
"*) ;;
 
1287
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1288
         ac_unrecognized_sep=', ';;
 
1289
    esac
 
1290
    eval with_$ac_useropt=no ;;
 
1291
 
 
1292
  --x)
 
1293
    # Obsolete; use --with-x.
 
1294
    with_x=yes ;;
 
1295
 
 
1296
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1297
  | --x-incl | --x-inc | --x-in | --x-i)
 
1298
    ac_prev=x_includes ;;
 
1299
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1300
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1301
    x_includes=$ac_optarg ;;
 
1302
 
 
1303
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1304
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1305
    ac_prev=x_libraries ;;
 
1306
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1307
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1308
    x_libraries=$ac_optarg ;;
 
1309
 
 
1310
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1311
Try \`$0 --help' for more information." >&2
 
1312
   { (exit 1); exit 1; }; }
 
1313
    ;;
 
1314
 
 
1315
  *=*)
 
1316
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1317
    # Reject names that are not valid shell variable names.
 
1318
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1319
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1320
   { (exit 1); exit 1; }; }
 
1321
    eval $ac_envvar=\$ac_optarg
 
1322
    export $ac_envvar ;;
 
1323
 
 
1324
  *)
 
1325
    # FIXME: should be removed in autoconf 3.0.
 
1326
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1327
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1328
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1329
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1330
    ;;
 
1331
 
 
1332
  esac
 
1333
done
 
1334
 
 
1335
if test -n "$ac_prev"; then
 
1336
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1337
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1338
   { (exit 1); exit 1; }; }
 
1339
fi
 
1340
 
 
1341
if test -n "$ac_unrecognized_opts"; then
 
1342
  case $enable_option_checking in
 
1343
    no) ;;
 
1344
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1345
   { (exit 1); exit 1; }; } ;;
 
1346
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1347
  esac
 
1348
fi
 
1349
 
 
1350
# Check all directory arguments for consistency.
 
1351
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1352
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1353
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1354
                libdir localedir mandir
 
1355
do
 
1356
  eval ac_val=\$$ac_var
 
1357
  # Remove trailing slashes.
 
1358
  case $ac_val in
 
1359
    */ )
 
1360
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1361
      eval $ac_var=\$ac_val;;
 
1362
  esac
 
1363
  # Be sure to have absolute directory names.
 
1364
  case $ac_val in
 
1365
    [\\/$]* | ?:[\\/]* )  continue;;
 
1366
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1367
  esac
 
1368
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1369
   { (exit 1); exit 1; }; }
 
1370
done
 
1371
 
 
1372
# There might be people who depend on the old broken behavior: `$host'
 
1373
# used to hold the argument of --host etc.
 
1374
# FIXME: To remove some day.
 
1375
build=$build_alias
 
1376
host=$host_alias
 
1377
target=$target_alias
 
1378
 
 
1379
# FIXME: To remove some day.
 
1380
if test "x$host_alias" != x; then
 
1381
  if test "x$build_alias" = x; then
 
1382
    cross_compiling=maybe
 
1383
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1384
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1385
  elif test "x$build_alias" != "x$host_alias"; then
 
1386
    cross_compiling=yes
 
1387
  fi
 
1388
fi
 
1389
 
 
1390
ac_tool_prefix=
 
1391
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1392
 
 
1393
test "$silent" = yes && exec 6>/dev/null
 
1394
 
 
1395
 
 
1396
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1397
ac_ls_di=`ls -di .` &&
 
1398
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1399
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1400
   { (exit 1); exit 1; }; }
 
1401
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1402
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1403
   { (exit 1); exit 1; }; }
 
1404
 
 
1405
 
 
1406
# Find the source files, if location was not specified.
 
1407
if test -z "$srcdir"; then
 
1408
  ac_srcdir_defaulted=yes
 
1409
  # Try the directory containing this script, then the parent directory.
 
1410
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1411
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1412
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1413
         X"$as_myself" : 'X\(//\)$' \| \
 
1414
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1415
$as_echo X"$as_myself" |
 
1416
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1417
            s//\1/
 
1418
            q
 
1419
          }
 
1420
          /^X\(\/\/\)[^/].*/{
 
1421
            s//\1/
 
1422
            q
 
1423
          }
 
1424
          /^X\(\/\/\)$/{
 
1425
            s//\1/
 
1426
            q
 
1427
          }
 
1428
          /^X\(\/\).*/{
 
1429
            s//\1/
 
1430
            q
 
1431
          }
 
1432
          s/.*/./; q'`
 
1433
  srcdir=$ac_confdir
 
1434
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1435
    srcdir=..
 
1436
  fi
 
1437
else
 
1438
  ac_srcdir_defaulted=no
 
1439
fi
 
1440
if test ! -r "$srcdir/$ac_unique_file"; then
 
1441
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1442
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1443
   { (exit 1); exit 1; }; }
 
1444
fi
 
1445
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1446
ac_abs_confdir=`(
 
1447
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1448
   { (exit 1); exit 1; }; }
 
1449
        pwd)`
 
1450
# When building in place, set srcdir=.
 
1451
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1452
  srcdir=.
 
1453
fi
 
1454
# Remove unnecessary trailing slashes from srcdir.
 
1455
# Double slashes in file names in object file debugging info
 
1456
# mess up M-x gdb in Emacs.
 
1457
case $srcdir in
 
1458
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1459
esac
 
1460
for ac_var in $ac_precious_vars; do
 
1461
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1462
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1463
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1464
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1465
done
 
1466
 
 
1467
#
 
1468
# Report the --help message.
 
1469
#
 
1470
if test "$ac_init_help" = "long"; then
 
1471
  # Omit some internal or obsolete options to make the list less imposing.
 
1472
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1473
  cat <<_ACEOF
 
1474
\`configure' configures path_utils 0.1 to adapt to many kinds of systems.
 
1475
 
 
1476
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1477
 
 
1478
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1479
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1480
 
 
1481
Defaults for the options are specified in brackets.
 
1482
 
 
1483
Configuration:
 
1484
  -h, --help              display this help and exit
 
1485
      --help=short        display options specific to this package
 
1486
      --help=recursive    display the short help of all the included packages
 
1487
  -V, --version           display version information and exit
 
1488
  -q, --quiet, --silent   do not print \`checking...' messages
 
1489
      --cache-file=FILE   cache test results in FILE [disabled]
 
1490
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1491
  -n, --no-create         do not create output files
 
1492
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1493
 
 
1494
Installation directories:
 
1495
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1496
                          [$ac_default_prefix]
 
1497
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1498
                          [PREFIX]
 
1499
 
 
1500
By default, \`make install' will install all the files in
 
1501
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1502
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1503
for instance \`--prefix=\$HOME'.
 
1504
 
 
1505
For better control, use the options below.
 
1506
 
 
1507
Fine tuning of the installation directories:
 
1508
  --bindir=DIR            user executables [EPREFIX/bin]
 
1509
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1510
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1511
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1512
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1513
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1514
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1515
  --includedir=DIR        C header files [PREFIX/include]
 
1516
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1517
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1518
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1519
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1520
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1521
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1522
  --docdir=DIR            documentation root [DATAROOTDIR/doc/path_utils]
 
1523
  --htmldir=DIR           html documentation [DOCDIR]
 
1524
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1525
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1526
  --psdir=DIR             ps documentation [DOCDIR]
 
1527
_ACEOF
 
1528
 
 
1529
  cat <<\_ACEOF
 
1530
 
 
1531
Program names:
 
1532
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1533
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1534
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1535
 
 
1536
System types:
 
1537
  --build=BUILD     configure for building on BUILD [guessed]
 
1538
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1539
_ACEOF
 
1540
fi
 
1541
 
 
1542
if test -n "$ac_init_help"; then
 
1543
  case $ac_init_help in
 
1544
     short | recursive ) echo "Configuration of path_utils 0.1:";;
 
1545
   esac
 
1546
  cat <<\_ACEOF
 
1547
 
 
1548
Optional Features:
 
1549
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1550
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1551
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1552
  --disable-dependency-tracking  speeds up one-time build
 
1553
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1554
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1555
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1556
  --enable-fast-install[=PKGS]
 
1557
                          optimize for fast installation [default=yes]
 
1558
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1559
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1560
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1561
 
 
1562
Optional Packages:
 
1563
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1564
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1565
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1566
                          both]
 
1567
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1568
 
 
1569
Some influential environment variables:
 
1570
  CC          C compiler command
 
1571
  CFLAGS      C compiler flags
 
1572
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1573
              nonstandard directory <lib dir>
 
1574
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1575
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1576
              you have headers in a nonstandard directory <include dir>
 
1577
  CPP         C preprocessor
 
1578
 
 
1579
Use these variables to override the choices made by `configure' or to help
 
1580
it to find libraries and programs with nonstandard names/locations.
 
1581
 
 
1582
Report bugs to <jdennis@redhat.com>.
 
1583
_ACEOF
 
1584
ac_status=$?
 
1585
fi
 
1586
 
 
1587
if test "$ac_init_help" = "recursive"; then
 
1588
  # If there are subdirs, report their specific --help.
 
1589
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1590
    test -d "$ac_dir" ||
 
1591
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1592
      continue
 
1593
    ac_builddir=.
 
1594
 
 
1595
case "$ac_dir" in
 
1596
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1597
*)
 
1598
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1599
  # A ".." for each directory in $ac_dir_suffix.
 
1600
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1601
  case $ac_top_builddir_sub in
 
1602
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1603
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1604
  esac ;;
 
1605
esac
 
1606
ac_abs_top_builddir=$ac_pwd
 
1607
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1608
# for backward compatibility:
 
1609
ac_top_builddir=$ac_top_build_prefix
 
1610
 
 
1611
case $srcdir in
 
1612
  .)  # We are building in place.
 
1613
    ac_srcdir=.
 
1614
    ac_top_srcdir=$ac_top_builddir_sub
 
1615
    ac_abs_top_srcdir=$ac_pwd ;;
 
1616
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1617
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1618
    ac_top_srcdir=$srcdir
 
1619
    ac_abs_top_srcdir=$srcdir ;;
 
1620
  *) # Relative name.
 
1621
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1622
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1623
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1624
esac
 
1625
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1626
 
 
1627
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1628
    # Check for guested configure.
 
1629
    if test -f "$ac_srcdir/configure.gnu"; then
 
1630
      echo &&
 
1631
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1632
    elif test -f "$ac_srcdir/configure"; then
 
1633
      echo &&
 
1634
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1635
    else
 
1636
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1637
    fi || ac_status=$?
 
1638
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1639
  done
 
1640
fi
 
1641
 
 
1642
test -n "$ac_init_help" && exit $ac_status
 
1643
if $ac_init_version; then
 
1644
  cat <<\_ACEOF
 
1645
path_utils configure 0.1
 
1646
generated by GNU Autoconf 2.63
 
1647
 
 
1648
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1649
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1650
This configure script is free software; the Free Software Foundation
 
1651
gives unlimited permission to copy, distribute and modify it.
 
1652
_ACEOF
 
1653
  exit
 
1654
fi
 
1655
cat >config.log <<_ACEOF
 
1656
This file contains any messages produced by compilers while
 
1657
running configure, to aid debugging if configure makes a mistake.
 
1658
 
 
1659
It was created by path_utils $as_me 0.1, which was
 
1660
generated by GNU Autoconf 2.63.  Invocation command line was
 
1661
 
 
1662
  $ $0 $@
 
1663
 
 
1664
_ACEOF
 
1665
exec 5>>config.log
 
1666
{
 
1667
cat <<_ASUNAME
 
1668
## --------- ##
 
1669
## Platform. ##
 
1670
## --------- ##
 
1671
 
 
1672
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1673
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1674
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1675
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1676
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1677
 
 
1678
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1679
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1680
 
 
1681
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1682
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1683
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1684
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1685
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1686
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1687
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1688
 
 
1689
_ASUNAME
 
1690
 
 
1691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1692
for as_dir in $PATH
 
1693
do
 
1694
  IFS=$as_save_IFS
 
1695
  test -z "$as_dir" && as_dir=.
 
1696
  $as_echo "PATH: $as_dir"
 
1697
done
 
1698
IFS=$as_save_IFS
 
1699
 
 
1700
} >&5
 
1701
 
 
1702
cat >&5 <<_ACEOF
 
1703
 
 
1704
 
 
1705
## ----------- ##
 
1706
## Core tests. ##
 
1707
## ----------- ##
 
1708
 
 
1709
_ACEOF
 
1710
 
 
1711
 
 
1712
# Keep a trace of the command line.
 
1713
# Strip out --no-create and --no-recursion so they do not pile up.
 
1714
# Strip out --silent because we don't want to record it for future runs.
 
1715
# Also quote any args containing shell meta-characters.
 
1716
# Make two passes to allow for proper duplicate-argument suppression.
 
1717
ac_configure_args=
 
1718
ac_configure_args0=
 
1719
ac_configure_args1=
 
1720
ac_must_keep_next=false
 
1721
for ac_pass in 1 2
 
1722
do
 
1723
  for ac_arg
 
1724
  do
 
1725
    case $ac_arg in
 
1726
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1727
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1728
    | -silent | --silent | --silen | --sile | --sil)
 
1729
      continue ;;
 
1730
    *\'*)
 
1731
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1732
    esac
 
1733
    case $ac_pass in
 
1734
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1735
    2)
 
1736
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1737
      if test $ac_must_keep_next = true; then
 
1738
        ac_must_keep_next=false # Got value, back to normal.
 
1739
      else
 
1740
        case $ac_arg in
 
1741
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1742
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1743
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1744
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1745
            case "$ac_configure_args0 " in
 
1746
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1747
            esac
 
1748
            ;;
 
1749
          -* ) ac_must_keep_next=true ;;
 
1750
        esac
 
1751
      fi
 
1752
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1753
      ;;
 
1754
    esac
 
1755
  done
 
1756
done
 
1757
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1758
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1759
 
 
1760
# When interrupted or exit'd, cleanup temporary files, and complete
 
1761
# config.log.  We remove comments because anyway the quotes in there
 
1762
# would cause problems or look ugly.
 
1763
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1764
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1765
trap 'exit_status=$?
 
1766
  # Save into config.log some information that might help in debugging.
 
1767
  {
 
1768
    echo
 
1769
 
 
1770
    cat <<\_ASBOX
 
1771
## ---------------- ##
 
1772
## Cache variables. ##
 
1773
## ---------------- ##
 
1774
_ASBOX
 
1775
    echo
 
1776
    # The following way of writing the cache mishandles newlines in values,
 
1777
(
 
1778
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1779
    eval ac_val=\$$ac_var
 
1780
    case $ac_val in #(
 
1781
    *${as_nl}*)
 
1782
      case $ac_var in #(
 
1783
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1784
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1785
      esac
 
1786
      case $ac_var in #(
 
1787
      _ | IFS | as_nl) ;; #(
 
1788
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1789
      *) $as_unset $ac_var ;;
 
1790
      esac ;;
 
1791
    esac
 
1792
  done
 
1793
  (set) 2>&1 |
 
1794
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1795
    *${as_nl}ac_space=\ *)
 
1796
      sed -n \
 
1797
        "s/'\''/'\''\\\\'\'''\''/g;
 
1798
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1799
      ;; #(
 
1800
    *)
 
1801
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1802
      ;;
 
1803
    esac |
 
1804
    sort
 
1805
)
 
1806
    echo
 
1807
 
 
1808
    cat <<\_ASBOX
 
1809
## ----------------- ##
 
1810
## Output variables. ##
 
1811
## ----------------- ##
 
1812
_ASBOX
 
1813
    echo
 
1814
    for ac_var in $ac_subst_vars
 
1815
    do
 
1816
      eval ac_val=\$$ac_var
 
1817
      case $ac_val in
 
1818
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1819
      esac
 
1820
      $as_echo "$ac_var='\''$ac_val'\''"
 
1821
    done | sort
 
1822
    echo
 
1823
 
 
1824
    if test -n "$ac_subst_files"; then
 
1825
      cat <<\_ASBOX
 
1826
## ------------------- ##
 
1827
## File substitutions. ##
 
1828
## ------------------- ##
 
1829
_ASBOX
 
1830
      echo
 
1831
      for ac_var in $ac_subst_files
 
1832
      do
 
1833
        eval ac_val=\$$ac_var
 
1834
        case $ac_val in
 
1835
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1836
        esac
 
1837
        $as_echo "$ac_var='\''$ac_val'\''"
 
1838
      done | sort
 
1839
      echo
 
1840
    fi
 
1841
 
 
1842
    if test -s confdefs.h; then
 
1843
      cat <<\_ASBOX
 
1844
## ----------- ##
 
1845
## confdefs.h. ##
 
1846
## ----------- ##
 
1847
_ASBOX
 
1848
      echo
 
1849
      cat confdefs.h
 
1850
      echo
 
1851
    fi
 
1852
    test "$ac_signal" != 0 &&
 
1853
      $as_echo "$as_me: caught signal $ac_signal"
 
1854
    $as_echo "$as_me: exit $exit_status"
 
1855
  } >&5
 
1856
  rm -f core *.core core.conftest.* &&
 
1857
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1858
    exit $exit_status
 
1859
' 0
 
1860
for ac_signal in 1 2 13 15; do
 
1861
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1862
done
 
1863
ac_signal=0
 
1864
 
 
1865
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1866
rm -f -r conftest* confdefs.h
 
1867
 
 
1868
# Predefined preprocessor variables.
 
1869
 
 
1870
cat >>confdefs.h <<_ACEOF
 
1871
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1872
_ACEOF
 
1873
 
 
1874
 
 
1875
cat >>confdefs.h <<_ACEOF
 
1876
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1877
_ACEOF
 
1878
 
 
1879
 
 
1880
cat >>confdefs.h <<_ACEOF
 
1881
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1882
_ACEOF
 
1883
 
 
1884
 
 
1885
cat >>confdefs.h <<_ACEOF
 
1886
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1887
_ACEOF
 
1888
 
 
1889
 
 
1890
cat >>confdefs.h <<_ACEOF
 
1891
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1892
_ACEOF
 
1893
 
 
1894
 
 
1895
# Let the site file select an alternate cache file if it wants to.
 
1896
# Prefer an explicitly selected file to automatically selected ones.
 
1897
ac_site_file1=NONE
 
1898
ac_site_file2=NONE
 
1899
if test -n "$CONFIG_SITE"; then
 
1900
  ac_site_file1=$CONFIG_SITE
 
1901
elif test "x$prefix" != xNONE; then
 
1902
  ac_site_file1=$prefix/share/config.site
 
1903
  ac_site_file2=$prefix/etc/config.site
 
1904
else
 
1905
  ac_site_file1=$ac_default_prefix/share/config.site
 
1906
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1907
fi
 
1908
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1909
do
 
1910
  test "x$ac_site_file" = xNONE && continue
 
1911
  if test -r "$ac_site_file"; then
 
1912
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1913
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1914
    sed 's/^/| /' "$ac_site_file" >&5
 
1915
    . "$ac_site_file"
 
1916
  fi
 
1917
done
 
1918
 
 
1919
if test -r "$cache_file"; then
 
1920
  # Some versions of bash will fail to source /dev/null (special
 
1921
  # files actually), so we avoid doing that.
 
1922
  if test -f "$cache_file"; then
 
1923
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1924
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1925
    case $cache_file in
 
1926
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1927
      *)                      . "./$cache_file";;
 
1928
    esac
 
1929
  fi
 
1930
else
 
1931
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1932
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1933
  >$cache_file
 
1934
fi
 
1935
 
 
1936
# Check that the precious variables saved in the cache have kept the same
 
1937
# value.
 
1938
ac_cache_corrupted=false
 
1939
for ac_var in $ac_precious_vars; do
 
1940
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1941
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1942
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1943
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1944
  case $ac_old_set,$ac_new_set in
 
1945
    set,)
 
1946
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1947
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1948
      ac_cache_corrupted=: ;;
 
1949
    ,set)
 
1950
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1951
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1952
      ac_cache_corrupted=: ;;
 
1953
    ,);;
 
1954
    *)
 
1955
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1956
        # differences in whitespace do not lead to failure.
 
1957
        ac_old_val_w=`echo x $ac_old_val`
 
1958
        ac_new_val_w=`echo x $ac_new_val`
 
1959
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
1960
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1961
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1962
          ac_cache_corrupted=:
 
1963
        else
 
1964
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
1965
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
1966
          eval $ac_var=\$ac_old_val
 
1967
        fi
 
1968
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
1969
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
1970
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
1971
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
1972
      fi;;
 
1973
  esac
 
1974
  # Pass precious variables to config.status.
 
1975
  if test "$ac_new_set" = set; then
 
1976
    case $ac_new_val in
 
1977
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1978
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1979
    esac
 
1980
    case " $ac_configure_args " in
 
1981
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1982
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1983
    esac
 
1984
  fi
 
1985
done
 
1986
if $ac_cache_corrupted; then
 
1987
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
1988
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
1989
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1990
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1991
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1992
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1993
   { (exit 1); exit 1; }; }
 
1994
fi
 
1995
 
 
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
 
 
2003
 
 
2004
 
 
2005
 
 
2006
 
 
2007
 
 
2008
 
 
2009
 
 
2010
 
 
2011
 
 
2012
 
 
2013
 
 
2014
 
 
2015
 
 
2016
 
 
2017
 
 
2018
 
 
2019
 
 
2020
ac_ext=c
 
2021
ac_cpp='$CPP $CPPFLAGS'
 
2022
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2023
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2024
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2025
 
 
2026
 
 
2027
 
 
2028
ac_aux_dir=
 
2029
for ac_dir in build "$srcdir"/build; do
 
2030
  if test -f "$ac_dir/install-sh"; then
 
2031
    ac_aux_dir=$ac_dir
 
2032
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2033
    break
 
2034
  elif test -f "$ac_dir/install.sh"; then
 
2035
    ac_aux_dir=$ac_dir
 
2036
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2037
    break
 
2038
  elif test -f "$ac_dir/shtool"; then
 
2039
    ac_aux_dir=$ac_dir
 
2040
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2041
    break
 
2042
  fi
 
2043
done
 
2044
if test -z "$ac_aux_dir"; then
 
2045
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
 
2046
$as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
 
2047
   { (exit 1); exit 1; }; }
 
2048
fi
 
2049
 
 
2050
# These three variables are undocumented and unsupported,
 
2051
# and are intended to be withdrawn in a future Autoconf release.
 
2052
# They can cause serious problems if a builder's source tree is in a directory
 
2053
# whose full name contains unusual characters.
 
2054
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2055
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2056
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2057
 
 
2058
 
 
2059
am__api_version='1.11'
 
2060
 
 
2061
# Find a good install program.  We prefer a C program (faster),
 
2062
# so one script is as good as another.  But avoid the broken or
 
2063
# incompatible versions:
 
2064
# SysV /etc/install, /usr/sbin/install
 
2065
# SunOS /usr/etc/install
 
2066
# IRIX /sbin/install
 
2067
# AIX /bin/install
 
2068
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2069
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2070
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2071
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2072
# OS/2's system install, which has a completely different semantic
 
2073
# ./install, which can be erroneously created by make from ./install.sh.
 
2074
# Reject install programs that cannot install multiple files.
 
2075
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2076
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2077
if test -z "$INSTALL"; then
 
2078
if test "${ac_cv_path_install+set}" = set; then
 
2079
  $as_echo_n "(cached) " >&6
 
2080
else
 
2081
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2082
for as_dir in $PATH
 
2083
do
 
2084
  IFS=$as_save_IFS
 
2085
  test -z "$as_dir" && as_dir=.
 
2086
  # Account for people who put trailing slashes in PATH elements.
 
2087
case $as_dir/ in
 
2088
  ./ | .// | /cC/* | \
 
2089
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2090
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2091
  /usr/ucb/* ) ;;
 
2092
  *)
 
2093
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2094
    # Don't use installbsd from OSF since it installs stuff as root
 
2095
    # by default.
 
2096
    for ac_prog in ginstall scoinst install; do
 
2097
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2098
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2099
          if test $ac_prog = install &&
 
2100
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2101
            # AIX install.  It has an incompatible calling convention.
 
2102
            :
 
2103
          elif test $ac_prog = install &&
 
2104
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2105
            # program-specific install script used by HP pwplus--don't use.
 
2106
            :
 
2107
          else
 
2108
            rm -rf conftest.one conftest.two conftest.dir
 
2109
            echo one > conftest.one
 
2110
            echo two > conftest.two
 
2111
            mkdir conftest.dir
 
2112
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2113
              test -s conftest.one && test -s conftest.two &&
 
2114
              test -s conftest.dir/conftest.one &&
 
2115
              test -s conftest.dir/conftest.two
 
2116
            then
 
2117
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2118
              break 3
 
2119
            fi
 
2120
          fi
 
2121
        fi
 
2122
      done
 
2123
    done
 
2124
    ;;
 
2125
esac
 
2126
 
 
2127
done
 
2128
IFS=$as_save_IFS
 
2129
 
 
2130
rm -rf conftest.one conftest.two conftest.dir
 
2131
 
 
2132
fi
 
2133
  if test "${ac_cv_path_install+set}" = set; then
 
2134
    INSTALL=$ac_cv_path_install
 
2135
  else
 
2136
    # As a last resort, use the slow shell script.  Don't cache a
 
2137
    # value for INSTALL within a source directory, because that will
 
2138
    # break other packages using the cache if that directory is
 
2139
    # removed, or if the value is a relative name.
 
2140
    INSTALL=$ac_install_sh
 
2141
  fi
 
2142
fi
 
2143
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2144
$as_echo "$INSTALL" >&6; }
 
2145
 
 
2146
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2147
# It thinks the first close brace ends the variable substitution.
 
2148
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2149
 
 
2150
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2151
 
 
2152
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2153
 
 
2154
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2155
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2156
# Just in case
 
2157
sleep 1
 
2158
echo timestamp > conftest.file
 
2159
# Reject unsafe characters in $srcdir or the absolute working directory
 
2160
# name.  Accept space and tab only in the latter.
 
2161
am_lf='
 
2162
'
 
2163
case `pwd` in
 
2164
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2165
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2166
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2167
   { (exit 1); exit 1; }; };;
 
2168
esac
 
2169
case $srcdir in
 
2170
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2171
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2172
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2173
   { (exit 1); exit 1; }; };;
 
2174
esac
 
2175
 
 
2176
# Do `set' in a subshell so we don't clobber the current shell's
 
2177
# arguments.  Must try -L first in case configure is actually a
 
2178
# symlink; some systems play weird games with the mod time of symlinks
 
2179
# (eg FreeBSD returns the mod time of the symlink's containing
 
2180
# directory).
 
2181
if (
 
2182
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2183
   if test "$*" = "X"; then
 
2184
      # -L didn't work.
 
2185
      set X `ls -t "$srcdir/configure" conftest.file`
 
2186
   fi
 
2187
   rm -f conftest.file
 
2188
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2189
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2190
 
 
2191
      # If neither matched, then we have a broken ls.  This can happen
 
2192
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2193
      # broken ls alias from the environment.  This has actually
 
2194
      # happened.  Such a system could not be considered "sane".
 
2195
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2196
alias in your environment" >&5
 
2197
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2198
alias in your environment" >&2;}
 
2199
   { (exit 1); exit 1; }; }
 
2200
   fi
 
2201
 
 
2202
   test "$2" = conftest.file
 
2203
   )
 
2204
then
 
2205
   # Ok.
 
2206
   :
 
2207
else
 
2208
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2209
Check your system clock" >&5
 
2210
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2211
Check your system clock" >&2;}
 
2212
   { (exit 1); exit 1; }; }
 
2213
fi
 
2214
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2215
$as_echo "yes" >&6; }
 
2216
test "$program_prefix" != NONE &&
 
2217
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2218
# Use a double $ so make ignores it.
 
2219
test "$program_suffix" != NONE &&
 
2220
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2221
# Double any \ or $.
 
2222
# By default was `s,x,x', remove it if useless.
 
2223
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2224
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2225
 
 
2226
# expand $ac_aux_dir to an absolute path
 
2227
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2228
 
 
2229
if test x"${MISSING+set}" != xset; then
 
2230
  case $am_aux_dir in
 
2231
  *\ * | *\     *)
 
2232
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2233
  *)
 
2234
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2235
  esac
 
2236
fi
 
2237
# Use eval to expand $SHELL
 
2238
if eval "$MISSING --run true"; then
 
2239
  am_missing_run="$MISSING --run "
 
2240
else
 
2241
  am_missing_run=
 
2242
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2243
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2244
fi
 
2245
 
 
2246
if test x"${install_sh}" != xset; then
 
2247
  case $am_aux_dir in
 
2248
  *\ * | *\     *)
 
2249
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2250
  *)
 
2251
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2252
  esac
 
2253
fi
 
2254
 
 
2255
# Installed binaries are usually stripped using `strip' when the user
 
2256
# run `make install-strip'.  However `strip' might not be the right
 
2257
# tool to use in cross-compilation environments, therefore Automake
 
2258
# will honor the `STRIP' environment variable to overrule this program.
 
2259
if test "$cross_compiling" != no; then
 
2260
  if test -n "$ac_tool_prefix"; then
 
2261
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2262
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2263
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2264
$as_echo_n "checking for $ac_word... " >&6; }
 
2265
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2266
  $as_echo_n "(cached) " >&6
 
2267
else
 
2268
  if test -n "$STRIP"; then
 
2269
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2270
else
 
2271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2272
for as_dir in $PATH
 
2273
do
 
2274
  IFS=$as_save_IFS
 
2275
  test -z "$as_dir" && as_dir=.
 
2276
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2277
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2278
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2279
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2280
    break 2
 
2281
  fi
 
2282
done
 
2283
done
 
2284
IFS=$as_save_IFS
 
2285
 
 
2286
fi
 
2287
fi
 
2288
STRIP=$ac_cv_prog_STRIP
 
2289
if test -n "$STRIP"; then
 
2290
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2291
$as_echo "$STRIP" >&6; }
 
2292
else
 
2293
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2294
$as_echo "no" >&6; }
 
2295
fi
 
2296
 
 
2297
 
 
2298
fi
 
2299
if test -z "$ac_cv_prog_STRIP"; then
 
2300
  ac_ct_STRIP=$STRIP
 
2301
  # Extract the first word of "strip", so it can be a program name with args.
 
2302
set dummy strip; ac_word=$2
 
2303
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2304
$as_echo_n "checking for $ac_word... " >&6; }
 
2305
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2306
  $as_echo_n "(cached) " >&6
 
2307
else
 
2308
  if test -n "$ac_ct_STRIP"; then
 
2309
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2310
else
 
2311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2312
for as_dir in $PATH
 
2313
do
 
2314
  IFS=$as_save_IFS
 
2315
  test -z "$as_dir" && as_dir=.
 
2316
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2317
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2318
    ac_cv_prog_ac_ct_STRIP="strip"
 
2319
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2320
    break 2
 
2321
  fi
 
2322
done
 
2323
done
 
2324
IFS=$as_save_IFS
 
2325
 
 
2326
fi
 
2327
fi
 
2328
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2329
if test -n "$ac_ct_STRIP"; then
 
2330
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2331
$as_echo "$ac_ct_STRIP" >&6; }
 
2332
else
 
2333
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2334
$as_echo "no" >&6; }
 
2335
fi
 
2336
 
 
2337
  if test "x$ac_ct_STRIP" = x; then
 
2338
    STRIP=":"
 
2339
  else
 
2340
    case $cross_compiling:$ac_tool_warned in
 
2341
yes:)
 
2342
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2343
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2344
ac_tool_warned=yes ;;
 
2345
esac
 
2346
    STRIP=$ac_ct_STRIP
 
2347
  fi
 
2348
else
 
2349
  STRIP="$ac_cv_prog_STRIP"
 
2350
fi
 
2351
 
 
2352
fi
 
2353
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2354
 
 
2355
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2356
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2357
if test -z "$MKDIR_P"; then
 
2358
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2359
  $as_echo_n "(cached) " >&6
 
2360
else
 
2361
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2362
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2363
do
 
2364
  IFS=$as_save_IFS
 
2365
  test -z "$as_dir" && as_dir=.
 
2366
  for ac_prog in mkdir gmkdir; do
 
2367
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2368
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2369
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2370
             'mkdir (GNU coreutils) '* | \
 
2371
             'mkdir (coreutils) '* | \
 
2372
             'mkdir (fileutils) '4.1*)
 
2373
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2374
               break 3;;
 
2375
           esac
 
2376
         done
 
2377
       done
 
2378
done
 
2379
IFS=$as_save_IFS
 
2380
 
 
2381
fi
 
2382
 
 
2383
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2384
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2385
  else
 
2386
    # As a last resort, use the slow shell script.  Don't cache a
 
2387
    # value for MKDIR_P within a source directory, because that will
 
2388
    # break other packages using the cache if that directory is
 
2389
    # removed, or if the value is a relative name.
 
2390
    test -d ./--version && rmdir ./--version
 
2391
    MKDIR_P="$ac_install_sh -d"
 
2392
  fi
 
2393
fi
 
2394
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2395
$as_echo "$MKDIR_P" >&6; }
 
2396
 
 
2397
mkdir_p="$MKDIR_P"
 
2398
case $mkdir_p in
 
2399
  [\\/$]* | ?:[\\/]*) ;;
 
2400
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2401
esac
 
2402
 
 
2403
for ac_prog in gawk mawk nawk awk
 
2404
do
 
2405
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2406
set dummy $ac_prog; ac_word=$2
 
2407
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2408
$as_echo_n "checking for $ac_word... " >&6; }
 
2409
if test "${ac_cv_prog_AWK+set}" = set; then
 
2410
  $as_echo_n "(cached) " >&6
 
2411
else
 
2412
  if test -n "$AWK"; then
 
2413
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2414
else
 
2415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2416
for as_dir in $PATH
 
2417
do
 
2418
  IFS=$as_save_IFS
 
2419
  test -z "$as_dir" && as_dir=.
 
2420
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2422
    ac_cv_prog_AWK="$ac_prog"
 
2423
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2424
    break 2
 
2425
  fi
 
2426
done
 
2427
done
 
2428
IFS=$as_save_IFS
 
2429
 
 
2430
fi
 
2431
fi
 
2432
AWK=$ac_cv_prog_AWK
 
2433
if test -n "$AWK"; then
 
2434
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2435
$as_echo "$AWK" >&6; }
 
2436
else
 
2437
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2438
$as_echo "no" >&6; }
 
2439
fi
 
2440
 
 
2441
 
 
2442
  test -n "$AWK" && break
 
2443
done
 
2444
 
 
2445
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2446
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2447
set x ${MAKE-make}
 
2448
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2449
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2450
  $as_echo_n "(cached) " >&6
 
2451
else
 
2452
  cat >conftest.make <<\_ACEOF
 
2453
SHELL = /bin/sh
 
2454
all:
 
2455
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2456
_ACEOF
 
2457
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2458
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2459
  *@@@%%%=?*=@@@%%%*)
 
2460
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2461
  *)
 
2462
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2463
esac
 
2464
rm -f conftest.make
 
2465
fi
 
2466
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2467
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2468
$as_echo "yes" >&6; }
 
2469
  SET_MAKE=
 
2470
else
 
2471
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2472
$as_echo "no" >&6; }
 
2473
  SET_MAKE="MAKE=${MAKE-make}"
 
2474
fi
 
2475
 
 
2476
rm -rf .tst 2>/dev/null
 
2477
mkdir .tst 2>/dev/null
 
2478
if test -d .tst; then
 
2479
  am__leading_dot=.
 
2480
else
 
2481
  am__leading_dot=_
 
2482
fi
 
2483
rmdir .tst 2>/dev/null
 
2484
 
 
2485
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2486
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2487
  # is not polluted with repeated "-I."
 
2488
  am__isrc=' -I$(srcdir)'
 
2489
  # test to see if srcdir already configured
 
2490
  if test -f $srcdir/config.status; then
 
2491
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2492
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2493
   { (exit 1); exit 1; }; }
 
2494
  fi
 
2495
fi
 
2496
 
 
2497
# test whether we have cygpath
 
2498
if test -z "$CYGPATH_W"; then
 
2499
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2500
    CYGPATH_W='cygpath -w'
 
2501
  else
 
2502
    CYGPATH_W=echo
 
2503
  fi
 
2504
fi
 
2505
 
 
2506
 
 
2507
# Define the identity of the package.
 
2508
 PACKAGE='path_utils'
 
2509
 VERSION='0.1'
 
2510
 
 
2511
 
 
2512
cat >>confdefs.h <<_ACEOF
 
2513
#define PACKAGE "$PACKAGE"
 
2514
_ACEOF
 
2515
 
 
2516
 
 
2517
cat >>confdefs.h <<_ACEOF
 
2518
#define VERSION "$VERSION"
 
2519
_ACEOF
 
2520
 
 
2521
# Some tools Automake needs.
 
2522
 
 
2523
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2524
 
 
2525
 
 
2526
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2527
 
 
2528
 
 
2529
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2530
 
 
2531
 
 
2532
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2533
 
 
2534
 
 
2535
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2536
 
 
2537
# We need awk for the "check" target.  The system "awk" is bad on
 
2538
# some platforms.
 
2539
# Always define AMTAR for backward compatibility.
 
2540
 
 
2541
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2542
 
 
2543
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2544
 
 
2545
 
 
2546
 
 
2547
 
 
2548
 
 
2549
ac_ext=c
 
2550
ac_cpp='$CPP $CPPFLAGS'
 
2551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2554
if test -n "$ac_tool_prefix"; then
 
2555
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2556
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2557
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2558
$as_echo_n "checking for $ac_word... " >&6; }
 
2559
if test "${ac_cv_prog_CC+set}" = set; then
 
2560
  $as_echo_n "(cached) " >&6
 
2561
else
 
2562
  if test -n "$CC"; then
 
2563
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2564
else
 
2565
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2566
for as_dir in $PATH
 
2567
do
 
2568
  IFS=$as_save_IFS
 
2569
  test -z "$as_dir" && as_dir=.
 
2570
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2571
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2572
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2573
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2574
    break 2
 
2575
  fi
 
2576
done
 
2577
done
 
2578
IFS=$as_save_IFS
 
2579
 
 
2580
fi
 
2581
fi
 
2582
CC=$ac_cv_prog_CC
 
2583
if test -n "$CC"; then
 
2584
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2585
$as_echo "$CC" >&6; }
 
2586
else
 
2587
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2588
$as_echo "no" >&6; }
 
2589
fi
 
2590
 
 
2591
 
 
2592
fi
 
2593
if test -z "$ac_cv_prog_CC"; then
 
2594
  ac_ct_CC=$CC
 
2595
  # Extract the first word of "gcc", so it can be a program name with args.
 
2596
set dummy gcc; ac_word=$2
 
2597
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2598
$as_echo_n "checking for $ac_word... " >&6; }
 
2599
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2600
  $as_echo_n "(cached) " >&6
 
2601
else
 
2602
  if test -n "$ac_ct_CC"; then
 
2603
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2604
else
 
2605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2606
for as_dir in $PATH
 
2607
do
 
2608
  IFS=$as_save_IFS
 
2609
  test -z "$as_dir" && as_dir=.
 
2610
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2611
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2612
    ac_cv_prog_ac_ct_CC="gcc"
 
2613
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2614
    break 2
 
2615
  fi
 
2616
done
 
2617
done
 
2618
IFS=$as_save_IFS
 
2619
 
 
2620
fi
 
2621
fi
 
2622
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2623
if test -n "$ac_ct_CC"; then
 
2624
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2625
$as_echo "$ac_ct_CC" >&6; }
 
2626
else
 
2627
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2628
$as_echo "no" >&6; }
 
2629
fi
 
2630
 
 
2631
  if test "x$ac_ct_CC" = x; then
 
2632
    CC=""
 
2633
  else
 
2634
    case $cross_compiling:$ac_tool_warned in
 
2635
yes:)
 
2636
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2637
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2638
ac_tool_warned=yes ;;
 
2639
esac
 
2640
    CC=$ac_ct_CC
 
2641
  fi
 
2642
else
 
2643
  CC="$ac_cv_prog_CC"
 
2644
fi
 
2645
 
 
2646
if test -z "$CC"; then
 
2647
          if test -n "$ac_tool_prefix"; then
 
2648
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2649
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2650
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2651
$as_echo_n "checking for $ac_word... " >&6; }
 
2652
if test "${ac_cv_prog_CC+set}" = set; then
 
2653
  $as_echo_n "(cached) " >&6
 
2654
else
 
2655
  if test -n "$CC"; then
 
2656
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2657
else
 
2658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2659
for as_dir in $PATH
 
2660
do
 
2661
  IFS=$as_save_IFS
 
2662
  test -z "$as_dir" && as_dir=.
 
2663
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2664
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2665
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2666
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2667
    break 2
 
2668
  fi
 
2669
done
 
2670
done
 
2671
IFS=$as_save_IFS
 
2672
 
 
2673
fi
 
2674
fi
 
2675
CC=$ac_cv_prog_CC
 
2676
if test -n "$CC"; then
 
2677
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2678
$as_echo "$CC" >&6; }
 
2679
else
 
2680
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2681
$as_echo "no" >&6; }
 
2682
fi
 
2683
 
 
2684
 
 
2685
  fi
 
2686
fi
 
2687
if test -z "$CC"; then
 
2688
  # Extract the first word of "cc", so it can be a program name with args.
 
2689
set dummy cc; ac_word=$2
 
2690
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2691
$as_echo_n "checking for $ac_word... " >&6; }
 
2692
if test "${ac_cv_prog_CC+set}" = set; then
 
2693
  $as_echo_n "(cached) " >&6
 
2694
else
 
2695
  if test -n "$CC"; then
 
2696
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2697
else
 
2698
  ac_prog_rejected=no
 
2699
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2700
for as_dir in $PATH
 
2701
do
 
2702
  IFS=$as_save_IFS
 
2703
  test -z "$as_dir" && as_dir=.
 
2704
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2705
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2706
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2707
       ac_prog_rejected=yes
 
2708
       continue
 
2709
     fi
 
2710
    ac_cv_prog_CC="cc"
 
2711
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2712
    break 2
 
2713
  fi
 
2714
done
 
2715
done
 
2716
IFS=$as_save_IFS
 
2717
 
 
2718
if test $ac_prog_rejected = yes; then
 
2719
  # We found a bogon in the path, so make sure we never use it.
 
2720
  set dummy $ac_cv_prog_CC
 
2721
  shift
 
2722
  if test $# != 0; then
 
2723
    # We chose a different compiler from the bogus one.
 
2724
    # However, it has the same basename, so the bogon will be chosen
 
2725
    # first if we set CC to just the basename; use the full file name.
 
2726
    shift
 
2727
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2728
  fi
 
2729
fi
 
2730
fi
 
2731
fi
 
2732
CC=$ac_cv_prog_CC
 
2733
if test -n "$CC"; then
 
2734
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2735
$as_echo "$CC" >&6; }
 
2736
else
 
2737
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2738
$as_echo "no" >&6; }
 
2739
fi
 
2740
 
 
2741
 
 
2742
fi
 
2743
if test -z "$CC"; then
 
2744
  if test -n "$ac_tool_prefix"; then
 
2745
  for ac_prog in cl.exe
 
2746
  do
 
2747
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2748
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2749
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2750
$as_echo_n "checking for $ac_word... " >&6; }
 
2751
if test "${ac_cv_prog_CC+set}" = set; then
 
2752
  $as_echo_n "(cached) " >&6
 
2753
else
 
2754
  if test -n "$CC"; then
 
2755
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2756
else
 
2757
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2758
for as_dir in $PATH
 
2759
do
 
2760
  IFS=$as_save_IFS
 
2761
  test -z "$as_dir" && as_dir=.
 
2762
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2763
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2764
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2765
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2766
    break 2
 
2767
  fi
 
2768
done
 
2769
done
 
2770
IFS=$as_save_IFS
 
2771
 
 
2772
fi
 
2773
fi
 
2774
CC=$ac_cv_prog_CC
 
2775
if test -n "$CC"; then
 
2776
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2777
$as_echo "$CC" >&6; }
 
2778
else
 
2779
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2780
$as_echo "no" >&6; }
 
2781
fi
 
2782
 
 
2783
 
 
2784
    test -n "$CC" && break
 
2785
  done
 
2786
fi
 
2787
if test -z "$CC"; then
 
2788
  ac_ct_CC=$CC
 
2789
  for ac_prog in cl.exe
 
2790
do
 
2791
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2792
set dummy $ac_prog; ac_word=$2
 
2793
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2794
$as_echo_n "checking for $ac_word... " >&6; }
 
2795
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2796
  $as_echo_n "(cached) " >&6
 
2797
else
 
2798
  if test -n "$ac_ct_CC"; then
 
2799
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2800
else
 
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2802
for as_dir in $PATH
 
2803
do
 
2804
  IFS=$as_save_IFS
 
2805
  test -z "$as_dir" && as_dir=.
 
2806
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2807
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2808
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2809
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2810
    break 2
 
2811
  fi
 
2812
done
 
2813
done
 
2814
IFS=$as_save_IFS
 
2815
 
 
2816
fi
 
2817
fi
 
2818
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2819
if test -n "$ac_ct_CC"; then
 
2820
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2821
$as_echo "$ac_ct_CC" >&6; }
 
2822
else
 
2823
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2824
$as_echo "no" >&6; }
 
2825
fi
 
2826
 
 
2827
 
 
2828
  test -n "$ac_ct_CC" && break
 
2829
done
 
2830
 
 
2831
  if test "x$ac_ct_CC" = x; then
 
2832
    CC=""
 
2833
  else
 
2834
    case $cross_compiling:$ac_tool_warned in
 
2835
yes:)
 
2836
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2837
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2838
ac_tool_warned=yes ;;
 
2839
esac
 
2840
    CC=$ac_ct_CC
 
2841
  fi
 
2842
fi
 
2843
 
 
2844
fi
 
2845
 
 
2846
 
 
2847
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2848
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2849
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2850
See \`config.log' for more details." >&5
 
2851
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2852
See \`config.log' for more details." >&2;}
 
2853
   { (exit 1); exit 1; }; }; }
 
2854
 
 
2855
# Provide some information about the compiler.
 
2856
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2857
set X $ac_compile
 
2858
ac_compiler=$2
 
2859
{ (ac_try="$ac_compiler --version >&5"
 
2860
case "(($ac_try" in
 
2861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2862
  *) ac_try_echo=$ac_try;;
 
2863
esac
 
2864
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2865
$as_echo "$ac_try_echo") >&5
 
2866
  (eval "$ac_compiler --version >&5") 2>&5
 
2867
  ac_status=$?
 
2868
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2869
  (exit $ac_status); }
 
2870
{ (ac_try="$ac_compiler -v >&5"
 
2871
case "(($ac_try" in
 
2872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2873
  *) ac_try_echo=$ac_try;;
 
2874
esac
 
2875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2876
$as_echo "$ac_try_echo") >&5
 
2877
  (eval "$ac_compiler -v >&5") 2>&5
 
2878
  ac_status=$?
 
2879
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2880
  (exit $ac_status); }
 
2881
{ (ac_try="$ac_compiler -V >&5"
 
2882
case "(($ac_try" in
 
2883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2884
  *) ac_try_echo=$ac_try;;
 
2885
esac
 
2886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2887
$as_echo "$ac_try_echo") >&5
 
2888
  (eval "$ac_compiler -V >&5") 2>&5
 
2889
  ac_status=$?
 
2890
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2891
  (exit $ac_status); }
 
2892
 
 
2893
cat >conftest.$ac_ext <<_ACEOF
 
2894
/* confdefs.h.  */
 
2895
_ACEOF
 
2896
cat confdefs.h >>conftest.$ac_ext
 
2897
cat >>conftest.$ac_ext <<_ACEOF
 
2898
/* end confdefs.h.  */
 
2899
 
 
2900
int
 
2901
main ()
 
2902
{
 
2903
 
 
2904
  ;
 
2905
  return 0;
 
2906
}
 
2907
_ACEOF
 
2908
ac_clean_files_save=$ac_clean_files
 
2909
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2910
# Try to create an executable without -o first, disregard a.out.
 
2911
# It will help us diagnose broken compilers, and finding out an intuition
 
2912
# of exeext.
 
2913
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2914
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2915
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2916
 
 
2917
# The possible output files:
 
2918
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2919
 
 
2920
ac_rmfiles=
 
2921
for ac_file in $ac_files
 
2922
do
 
2923
  case $ac_file in
 
2924
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2925
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2926
  esac
 
2927
done
 
2928
rm -f $ac_rmfiles
 
2929
 
 
2930
if { (ac_try="$ac_link_default"
 
2931
case "(($ac_try" in
 
2932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2933
  *) ac_try_echo=$ac_try;;
 
2934
esac
 
2935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2936
$as_echo "$ac_try_echo") >&5
 
2937
  (eval "$ac_link_default") 2>&5
 
2938
  ac_status=$?
 
2939
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2940
  (exit $ac_status); }; then
 
2941
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2942
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2943
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2944
# so that the user can short-circuit this test for compilers unknown to
 
2945
# Autoconf.
 
2946
for ac_file in $ac_files ''
 
2947
do
 
2948
  test -f "$ac_file" || continue
 
2949
  case $ac_file in
 
2950
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2951
        ;;
 
2952
    [ab].out )
 
2953
        # We found the default executable, but exeext='' is most
 
2954
        # certainly right.
 
2955
        break;;
 
2956
    *.* )
 
2957
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2958
        then :; else
 
2959
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2960
        fi
 
2961
        # We set ac_cv_exeext here because the later test for it is not
 
2962
        # safe: cross compilers may not add the suffix if given an `-o'
 
2963
        # argument, so we may need to know it at that point already.
 
2964
        # Even if this section looks crufty: it has the advantage of
 
2965
        # actually working.
 
2966
        break;;
 
2967
    * )
 
2968
        break;;
 
2969
  esac
 
2970
done
 
2971
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2972
 
 
2973
else
 
2974
  ac_file=''
 
2975
fi
 
2976
 
 
2977
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
2978
$as_echo "$ac_file" >&6; }
 
2979
if test -z "$ac_file"; then
 
2980
  $as_echo "$as_me: failed program was:" >&5
 
2981
sed 's/^/| /' conftest.$ac_ext >&5
 
2982
 
 
2983
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2984
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2985
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2986
See \`config.log' for more details." >&5
 
2987
$as_echo "$as_me: error: C compiler cannot create executables
 
2988
See \`config.log' for more details." >&2;}
 
2989
   { (exit 77); exit 77; }; }; }
 
2990
fi
 
2991
 
 
2992
ac_exeext=$ac_cv_exeext
 
2993
 
 
2994
# Check that the compiler produces executables we can run.  If not, either
 
2995
# the compiler is broken, or we cross compile.
 
2996
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2997
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2998
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2999
# If not cross compiling, check that we can run a simple program.
 
3000
if test "$cross_compiling" != yes; then
 
3001
  if { ac_try='./$ac_file'
 
3002
  { (case "(($ac_try" in
 
3003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3004
  *) ac_try_echo=$ac_try;;
 
3005
esac
 
3006
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3007
$as_echo "$ac_try_echo") >&5
 
3008
  (eval "$ac_try") 2>&5
 
3009
  ac_status=$?
 
3010
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3011
  (exit $ac_status); }; }; then
 
3012
    cross_compiling=no
 
3013
  else
 
3014
    if test "$cross_compiling" = maybe; then
 
3015
        cross_compiling=yes
 
3016
    else
 
3017
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3018
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3019
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3020
If you meant to cross compile, use \`--host'.
 
3021
See \`config.log' for more details." >&5
 
3022
$as_echo "$as_me: error: cannot run C compiled programs.
 
3023
If you meant to cross compile, use \`--host'.
 
3024
See \`config.log' for more details." >&2;}
 
3025
   { (exit 1); exit 1; }; }; }
 
3026
    fi
 
3027
  fi
 
3028
fi
 
3029
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3030
$as_echo "yes" >&6; }
 
3031
 
 
3032
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3033
ac_clean_files=$ac_clean_files_save
 
3034
# Check that the compiler produces executables we can run.  If not, either
 
3035
# the compiler is broken, or we cross compile.
 
3036
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3037
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3038
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3039
$as_echo "$cross_compiling" >&6; }
 
3040
 
 
3041
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3042
$as_echo_n "checking for suffix of executables... " >&6; }
 
3043
if { (ac_try="$ac_link"
 
3044
case "(($ac_try" in
 
3045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3046
  *) ac_try_echo=$ac_try;;
 
3047
esac
 
3048
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3049
$as_echo "$ac_try_echo") >&5
 
3050
  (eval "$ac_link") 2>&5
 
3051
  ac_status=$?
 
3052
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3053
  (exit $ac_status); }; then
 
3054
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3055
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3056
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3057
# `rm'.
 
3058
for ac_file in conftest.exe conftest conftest.*; do
 
3059
  test -f "$ac_file" || continue
 
3060
  case $ac_file in
 
3061
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3062
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3063
          break;;
 
3064
    * ) break;;
 
3065
  esac
 
3066
done
 
3067
else
 
3068
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3069
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3070
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3071
See \`config.log' for more details." >&5
 
3072
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3073
See \`config.log' for more details." >&2;}
 
3074
   { (exit 1); exit 1; }; }; }
 
3075
fi
 
3076
 
 
3077
rm -f conftest$ac_cv_exeext
 
3078
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3079
$as_echo "$ac_cv_exeext" >&6; }
 
3080
 
 
3081
rm -f conftest.$ac_ext
 
3082
EXEEXT=$ac_cv_exeext
 
3083
ac_exeext=$EXEEXT
 
3084
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3085
$as_echo_n "checking for suffix of object files... " >&6; }
 
3086
if test "${ac_cv_objext+set}" = set; then
 
3087
  $as_echo_n "(cached) " >&6
 
3088
else
 
3089
  cat >conftest.$ac_ext <<_ACEOF
 
3090
/* confdefs.h.  */
 
3091
_ACEOF
 
3092
cat confdefs.h >>conftest.$ac_ext
 
3093
cat >>conftest.$ac_ext <<_ACEOF
 
3094
/* end confdefs.h.  */
 
3095
 
 
3096
int
 
3097
main ()
 
3098
{
 
3099
 
 
3100
  ;
 
3101
  return 0;
 
3102
}
 
3103
_ACEOF
 
3104
rm -f conftest.o conftest.obj
 
3105
if { (ac_try="$ac_compile"
 
3106
case "(($ac_try" in
 
3107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3108
  *) ac_try_echo=$ac_try;;
 
3109
esac
 
3110
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3111
$as_echo "$ac_try_echo") >&5
 
3112
  (eval "$ac_compile") 2>&5
 
3113
  ac_status=$?
 
3114
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3115
  (exit $ac_status); }; then
 
3116
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3117
  test -f "$ac_file" || continue;
 
3118
  case $ac_file in
 
3119
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3120
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3121
       break;;
 
3122
  esac
 
3123
done
 
3124
else
 
3125
  $as_echo "$as_me: failed program was:" >&5
 
3126
sed 's/^/| /' conftest.$ac_ext >&5
 
3127
 
 
3128
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3129
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3130
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3131
See \`config.log' for more details." >&5
 
3132
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3133
See \`config.log' for more details." >&2;}
 
3134
   { (exit 1); exit 1; }; }; }
 
3135
fi
 
3136
 
 
3137
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3138
fi
 
3139
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3140
$as_echo "$ac_cv_objext" >&6; }
 
3141
OBJEXT=$ac_cv_objext
 
3142
ac_objext=$OBJEXT
 
3143
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3144
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3145
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3146
  $as_echo_n "(cached) " >&6
 
3147
else
 
3148
  cat >conftest.$ac_ext <<_ACEOF
 
3149
/* confdefs.h.  */
 
3150
_ACEOF
 
3151
cat confdefs.h >>conftest.$ac_ext
 
3152
cat >>conftest.$ac_ext <<_ACEOF
 
3153
/* end confdefs.h.  */
 
3154
 
 
3155
int
 
3156
main ()
 
3157
{
 
3158
#ifndef __GNUC__
 
3159
       choke me
 
3160
#endif
 
3161
 
 
3162
  ;
 
3163
  return 0;
 
3164
}
 
3165
_ACEOF
 
3166
rm -f conftest.$ac_objext
 
3167
if { (ac_try="$ac_compile"
 
3168
case "(($ac_try" in
 
3169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3170
  *) ac_try_echo=$ac_try;;
 
3171
esac
 
3172
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3173
$as_echo "$ac_try_echo") >&5
 
3174
  (eval "$ac_compile") 2>conftest.er1
 
3175
  ac_status=$?
 
3176
  grep -v '^ *+' conftest.er1 >conftest.err
 
3177
  rm -f conftest.er1
 
3178
  cat conftest.err >&5
 
3179
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3180
  (exit $ac_status); } && {
 
3181
         test -z "$ac_c_werror_flag" ||
 
3182
         test ! -s conftest.err
 
3183
       } && test -s conftest.$ac_objext; then
 
3184
  ac_compiler_gnu=yes
 
3185
else
 
3186
  $as_echo "$as_me: failed program was:" >&5
 
3187
sed 's/^/| /' conftest.$ac_ext >&5
 
3188
 
 
3189
        ac_compiler_gnu=no
 
3190
fi
 
3191
 
 
3192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3193
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3194
 
 
3195
fi
 
3196
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3197
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3198
if test $ac_compiler_gnu = yes; then
 
3199
  GCC=yes
 
3200
else
 
3201
  GCC=
 
3202
fi
 
3203
ac_test_CFLAGS=${CFLAGS+set}
 
3204
ac_save_CFLAGS=$CFLAGS
 
3205
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3206
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3207
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3208
  $as_echo_n "(cached) " >&6
 
3209
else
 
3210
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3211
   ac_c_werror_flag=yes
 
3212
   ac_cv_prog_cc_g=no
 
3213
   CFLAGS="-g"
 
3214
   cat >conftest.$ac_ext <<_ACEOF
 
3215
/* confdefs.h.  */
 
3216
_ACEOF
 
3217
cat confdefs.h >>conftest.$ac_ext
 
3218
cat >>conftest.$ac_ext <<_ACEOF
 
3219
/* end confdefs.h.  */
 
3220
 
 
3221
int
 
3222
main ()
 
3223
{
 
3224
 
 
3225
  ;
 
3226
  return 0;
 
3227
}
 
3228
_ACEOF
 
3229
rm -f conftest.$ac_objext
 
3230
if { (ac_try="$ac_compile"
 
3231
case "(($ac_try" in
 
3232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3233
  *) ac_try_echo=$ac_try;;
 
3234
esac
 
3235
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3236
$as_echo "$ac_try_echo") >&5
 
3237
  (eval "$ac_compile") 2>conftest.er1
 
3238
  ac_status=$?
 
3239
  grep -v '^ *+' conftest.er1 >conftest.err
 
3240
  rm -f conftest.er1
 
3241
  cat conftest.err >&5
 
3242
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3243
  (exit $ac_status); } && {
 
3244
         test -z "$ac_c_werror_flag" ||
 
3245
         test ! -s conftest.err
 
3246
       } && test -s conftest.$ac_objext; then
 
3247
  ac_cv_prog_cc_g=yes
 
3248
else
 
3249
  $as_echo "$as_me: failed program was:" >&5
 
3250
sed 's/^/| /' conftest.$ac_ext >&5
 
3251
 
 
3252
        CFLAGS=""
 
3253
      cat >conftest.$ac_ext <<_ACEOF
 
3254
/* confdefs.h.  */
 
3255
_ACEOF
 
3256
cat confdefs.h >>conftest.$ac_ext
 
3257
cat >>conftest.$ac_ext <<_ACEOF
 
3258
/* end confdefs.h.  */
 
3259
 
 
3260
int
 
3261
main ()
 
3262
{
 
3263
 
 
3264
  ;
 
3265
  return 0;
 
3266
}
 
3267
_ACEOF
 
3268
rm -f conftest.$ac_objext
 
3269
if { (ac_try="$ac_compile"
 
3270
case "(($ac_try" in
 
3271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3272
  *) ac_try_echo=$ac_try;;
 
3273
esac
 
3274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3275
$as_echo "$ac_try_echo") >&5
 
3276
  (eval "$ac_compile") 2>conftest.er1
 
3277
  ac_status=$?
 
3278
  grep -v '^ *+' conftest.er1 >conftest.err
 
3279
  rm -f conftest.er1
 
3280
  cat conftest.err >&5
 
3281
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3282
  (exit $ac_status); } && {
 
3283
         test -z "$ac_c_werror_flag" ||
 
3284
         test ! -s conftest.err
 
3285
       } && test -s conftest.$ac_objext; then
 
3286
  :
 
3287
else
 
3288
  $as_echo "$as_me: failed program was:" >&5
 
3289
sed 's/^/| /' conftest.$ac_ext >&5
 
3290
 
 
3291
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3292
         CFLAGS="-g"
 
3293
         cat >conftest.$ac_ext <<_ACEOF
 
3294
/* confdefs.h.  */
 
3295
_ACEOF
 
3296
cat confdefs.h >>conftest.$ac_ext
 
3297
cat >>conftest.$ac_ext <<_ACEOF
 
3298
/* end confdefs.h.  */
 
3299
 
 
3300
int
 
3301
main ()
 
3302
{
 
3303
 
 
3304
  ;
 
3305
  return 0;
 
3306
}
 
3307
_ACEOF
 
3308
rm -f conftest.$ac_objext
 
3309
if { (ac_try="$ac_compile"
 
3310
case "(($ac_try" in
 
3311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3312
  *) ac_try_echo=$ac_try;;
 
3313
esac
 
3314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3315
$as_echo "$ac_try_echo") >&5
 
3316
  (eval "$ac_compile") 2>conftest.er1
 
3317
  ac_status=$?
 
3318
  grep -v '^ *+' conftest.er1 >conftest.err
 
3319
  rm -f conftest.er1
 
3320
  cat conftest.err >&5
 
3321
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3322
  (exit $ac_status); } && {
 
3323
         test -z "$ac_c_werror_flag" ||
 
3324
         test ! -s conftest.err
 
3325
       } && test -s conftest.$ac_objext; then
 
3326
  ac_cv_prog_cc_g=yes
 
3327
else
 
3328
  $as_echo "$as_me: failed program was:" >&5
 
3329
sed 's/^/| /' conftest.$ac_ext >&5
 
3330
 
 
3331
 
 
3332
fi
 
3333
 
 
3334
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3335
fi
 
3336
 
 
3337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3338
fi
 
3339
 
 
3340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3341
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3342
fi
 
3343
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3344
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3345
if test "$ac_test_CFLAGS" = set; then
 
3346
  CFLAGS=$ac_save_CFLAGS
 
3347
elif test $ac_cv_prog_cc_g = yes; then
 
3348
  if test "$GCC" = yes; then
 
3349
    CFLAGS="-g -O2"
 
3350
  else
 
3351
    CFLAGS="-g"
 
3352
  fi
 
3353
else
 
3354
  if test "$GCC" = yes; then
 
3355
    CFLAGS="-O2"
 
3356
  else
 
3357
    CFLAGS=
 
3358
  fi
 
3359
fi
 
3360
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3361
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3362
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3363
  $as_echo_n "(cached) " >&6
 
3364
else
 
3365
  ac_cv_prog_cc_c89=no
 
3366
ac_save_CC=$CC
 
3367
cat >conftest.$ac_ext <<_ACEOF
 
3368
/* confdefs.h.  */
 
3369
_ACEOF
 
3370
cat confdefs.h >>conftest.$ac_ext
 
3371
cat >>conftest.$ac_ext <<_ACEOF
 
3372
/* end confdefs.h.  */
 
3373
#include <stdarg.h>
 
3374
#include <stdio.h>
 
3375
#include <sys/types.h>
 
3376
#include <sys/stat.h>
 
3377
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3378
struct buf { int x; };
 
3379
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3380
static char *e (p, i)
 
3381
     char **p;
 
3382
     int i;
 
3383
{
 
3384
  return p[i];
 
3385
}
 
3386
static char *f (char * (*g) (char **, int), char **p, ...)
 
3387
{
 
3388
  char *s;
 
3389
  va_list v;
 
3390
  va_start (v,p);
 
3391
  s = g (p, va_arg (v,int));
 
3392
  va_end (v);
 
3393
  return s;
 
3394
}
 
3395
 
 
3396
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3397
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3398
   These don't provoke an error unfortunately, instead are silently treated
 
3399
   as 'x'.  The following induces an error, until -std is added to get
 
3400
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3401
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3402
   that's true only with -std.  */
 
3403
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3404
 
 
3405
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3406
   inside strings and character constants.  */
 
3407
#define FOO(x) 'x'
 
3408
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3409
 
 
3410
int test (int i, double x);
 
3411
struct s1 {int (*f) (int a);};
 
3412
struct s2 {int (*f) (double a);};
 
3413
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3414
int argc;
 
3415
char **argv;
 
3416
int
 
3417
main ()
 
3418
{
 
3419
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3420
  ;
 
3421
  return 0;
 
3422
}
 
3423
_ACEOF
 
3424
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3425
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3426
do
 
3427
  CC="$ac_save_CC $ac_arg"
 
3428
  rm -f conftest.$ac_objext
 
3429
if { (ac_try="$ac_compile"
 
3430
case "(($ac_try" in
 
3431
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3432
  *) ac_try_echo=$ac_try;;
 
3433
esac
 
3434
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3435
$as_echo "$ac_try_echo") >&5
 
3436
  (eval "$ac_compile") 2>conftest.er1
 
3437
  ac_status=$?
 
3438
  grep -v '^ *+' conftest.er1 >conftest.err
 
3439
  rm -f conftest.er1
 
3440
  cat conftest.err >&5
 
3441
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3442
  (exit $ac_status); } && {
 
3443
         test -z "$ac_c_werror_flag" ||
 
3444
         test ! -s conftest.err
 
3445
       } && test -s conftest.$ac_objext; then
 
3446
  ac_cv_prog_cc_c89=$ac_arg
 
3447
else
 
3448
  $as_echo "$as_me: failed program was:" >&5
 
3449
sed 's/^/| /' conftest.$ac_ext >&5
 
3450
 
 
3451
 
 
3452
fi
 
3453
 
 
3454
rm -f core conftest.err conftest.$ac_objext
 
3455
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3456
done
 
3457
rm -f conftest.$ac_ext
 
3458
CC=$ac_save_CC
 
3459
 
 
3460
fi
 
3461
# AC_CACHE_VAL
 
3462
case "x$ac_cv_prog_cc_c89" in
 
3463
  x)
 
3464
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3465
$as_echo "none needed" >&6; } ;;
 
3466
  xno)
 
3467
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3468
$as_echo "unsupported" >&6; } ;;
 
3469
  *)
 
3470
    CC="$CC $ac_cv_prog_cc_c89"
 
3471
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3472
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3473
esac
 
3474
 
 
3475
 
 
3476
ac_ext=c
 
3477
ac_cpp='$CPP $CPPFLAGS'
 
3478
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3479
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3480
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3481
DEPDIR="${am__leading_dot}deps"
 
3482
 
 
3483
ac_config_commands="$ac_config_commands depfiles"
 
3484
 
 
3485
 
 
3486
am_make=${MAKE-make}
 
3487
cat > confinc << 'END'
 
3488
am__doit:
 
3489
        @echo this is the am__doit target
 
3490
.PHONY: am__doit
 
3491
END
 
3492
# If we don't find an include directive, just comment out the code.
 
3493
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3494
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3495
am__include="#"
 
3496
am__quote=
 
3497
_am_result=none
 
3498
# First try GNU make style include.
 
3499
echo "include confinc" > confmf
 
3500
# Ignore all kinds of additional output from `make'.
 
3501
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3502
*the\ am__doit\ target*)
 
3503
  am__include=include
 
3504
  am__quote=
 
3505
  _am_result=GNU
 
3506
  ;;
 
3507
esac
 
3508
# Now try BSD make style include.
 
3509
if test "$am__include" = "#"; then
 
3510
   echo '.include "confinc"' > confmf
 
3511
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3512
   *the\ am__doit\ target*)
 
3513
     am__include=.include
 
3514
     am__quote="\""
 
3515
     _am_result=BSD
 
3516
     ;;
 
3517
   esac
 
3518
fi
 
3519
 
 
3520
 
 
3521
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
3522
$as_echo "$_am_result" >&6; }
 
3523
rm -f confinc confmf
 
3524
 
 
3525
# Check whether --enable-dependency-tracking was given.
 
3526
if test "${enable_dependency_tracking+set}" = set; then
 
3527
  enableval=$enable_dependency_tracking;
 
3528
fi
 
3529
 
 
3530
if test "x$enable_dependency_tracking" != xno; then
 
3531
  am_depcomp="$ac_aux_dir/depcomp"
 
3532
  AMDEPBACKSLASH='\'
 
3533
fi
 
3534
 if test "x$enable_dependency_tracking" != xno; then
 
3535
  AMDEP_TRUE=
 
3536
  AMDEP_FALSE='#'
 
3537
else
 
3538
  AMDEP_TRUE='#'
 
3539
  AMDEP_FALSE=
 
3540
fi
 
3541
 
 
3542
 
 
3543
 
 
3544
depcc="$CC"   am_compiler_list=
 
3545
 
 
3546
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3547
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3548
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3549
  $as_echo_n "(cached) " >&6
 
3550
else
 
3551
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3552
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3553
  # making bogus files that we don't know about and never remove.  For
 
3554
  # instance it was reported that on HP-UX the gcc test will end up
 
3555
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3556
  # in D'.
 
3557
  mkdir conftest.dir
 
3558
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3559
  # using a relative directory.
 
3560
  cp "$am_depcomp" conftest.dir
 
3561
  cd conftest.dir
 
3562
  # We will build objects and dependencies in a subdirectory because
 
3563
  # it helps to detect inapplicable dependency modes.  For instance
 
3564
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3565
  # side effect of compilation, but ICC will put the dependencies in
 
3566
  # the current directory while Tru64 will put them in the object
 
3567
  # directory.
 
3568
  mkdir sub
 
3569
 
 
3570
  am_cv_CC_dependencies_compiler_type=none
 
3571
  if test "$am_compiler_list" = ""; then
 
3572
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3573
  fi
 
3574
  am__universal=false
 
3575
  case " $depcc " in #(
 
3576
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3577
     esac
 
3578
 
 
3579
  for depmode in $am_compiler_list; do
 
3580
    # Setup a source with many dependencies, because some compilers
 
3581
    # like to wrap large dependency lists on column 80 (with \), and
 
3582
    # we should not choose a depcomp mode which is confused by this.
 
3583
    #
 
3584
    # We need to recreate these files for each test, as the compiler may
 
3585
    # overwrite some of them when testing with obscure command lines.
 
3586
    # This happens at least with the AIX C compiler.
 
3587
    : > sub/conftest.c
 
3588
    for i in 1 2 3 4 5 6; do
 
3589
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3590
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3591
      # Solaris 8's {/usr,}/bin/sh.
 
3592
      touch sub/conftst$i.h
 
3593
    done
 
3594
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3595
 
 
3596
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3597
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3598
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3599
    # versions had trouble with output in subdirs
 
3600
    am__obj=sub/conftest.${OBJEXT-o}
 
3601
    am__minus_obj="-o $am__obj"
 
3602
    case $depmode in
 
3603
    gcc)
 
3604
      # This depmode causes a compiler race in universal mode.
 
3605
      test "$am__universal" = false || continue
 
3606
      ;;
 
3607
    nosideeffect)
 
3608
      # after this tag, mechanisms are not by side-effect, so they'll
 
3609
      # only be used when explicitly requested
 
3610
      if test "x$enable_dependency_tracking" = xyes; then
 
3611
        continue
 
3612
      else
 
3613
        break
 
3614
      fi
 
3615
      ;;
 
3616
    msvisualcpp | msvcmsys)
 
3617
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3618
      # not run yet.  These depmodes are late enough in the game, and
 
3619
      # so weak that their functioning should not be impacted.
 
3620
      am__obj=conftest.${OBJEXT-o}
 
3621
      am__minus_obj=
 
3622
      ;;
 
3623
    none) break ;;
 
3624
    esac
 
3625
    if depmode=$depmode \
 
3626
       source=sub/conftest.c object=$am__obj \
 
3627
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3628
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3629
         >/dev/null 2>conftest.err &&
 
3630
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3631
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3632
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3633
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3634
      # icc doesn't choke on unknown options, it will just issue warnings
 
3635
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3636
      # that says an option was ignored or not supported.
 
3637
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3638
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3639
      # The diagnosis changed in icc 8.0:
 
3640
      #   icc: Command line remark: option '-MP' not supported
 
3641
      if (grep 'ignoring option' conftest.err ||
 
3642
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3643
        am_cv_CC_dependencies_compiler_type=$depmode
 
3644
        break
 
3645
      fi
 
3646
    fi
 
3647
  done
 
3648
 
 
3649
  cd ..
 
3650
  rm -rf conftest.dir
 
3651
else
 
3652
  am_cv_CC_dependencies_compiler_type=none
 
3653
fi
 
3654
 
 
3655
fi
 
3656
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3657
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3658
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3659
 
 
3660
 if
 
3661
  test "x$enable_dependency_tracking" != xno \
 
3662
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3663
  am__fastdepCC_TRUE=
 
3664
  am__fastdepCC_FALSE='#'
 
3665
else
 
3666
  am__fastdepCC_TRUE='#'
 
3667
  am__fastdepCC_FALSE=
 
3668
fi
 
3669
 
 
3670
 
 
3671
case `pwd` in
 
3672
  *\ * | *\     *)
 
3673
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3674
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3675
esac
 
3676
 
 
3677
 
 
3678
 
 
3679
macro_version='2.2.6'
 
3680
macro_revision='1.3012'
 
3681
 
 
3682
 
 
3683
 
 
3684
 
 
3685
 
 
3686
 
 
3687
 
 
3688
 
 
3689
 
 
3690
 
 
3691
 
 
3692
 
 
3693
 
 
3694
ltmain="$ac_aux_dir/ltmain.sh"
 
3695
 
 
3696
# Make sure we can run config.sub.
 
3697
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3698
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3699
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3700
   { (exit 1); exit 1; }; }
 
3701
 
 
3702
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
3703
$as_echo_n "checking build system type... " >&6; }
 
3704
if test "${ac_cv_build+set}" = set; then
 
3705
  $as_echo_n "(cached) " >&6
 
3706
else
 
3707
  ac_build_alias=$build_alias
 
3708
test "x$ac_build_alias" = x &&
 
3709
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3710
test "x$ac_build_alias" = x &&
 
3711
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3712
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3713
   { (exit 1); exit 1; }; }
 
3714
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3715
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3716
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3717
   { (exit 1); exit 1; }; }
 
3718
 
 
3719
fi
 
3720
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3721
$as_echo "$ac_cv_build" >&6; }
 
3722
case $ac_cv_build in
 
3723
*-*-*) ;;
 
3724
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3725
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
3726
   { (exit 1); exit 1; }; };;
 
3727
esac
 
3728
build=$ac_cv_build
 
3729
ac_save_IFS=$IFS; IFS='-'
 
3730
set x $ac_cv_build
 
3731
shift
 
3732
build_cpu=$1
 
3733
build_vendor=$2
 
3734
shift; shift
 
3735
# Remember, the first character of IFS is used to create $*,
 
3736
# except with old shells:
 
3737
build_os=$*
 
3738
IFS=$ac_save_IFS
 
3739
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3740
 
 
3741
 
 
3742
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
3743
$as_echo_n "checking host system type... " >&6; }
 
3744
if test "${ac_cv_host+set}" = set; then
 
3745
  $as_echo_n "(cached) " >&6
 
3746
else
 
3747
  if test "x$host_alias" = x; then
 
3748
  ac_cv_host=$ac_cv_build
 
3749
else
 
3750
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3751
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3752
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3753
   { (exit 1); exit 1; }; }
 
3754
fi
 
3755
 
 
3756
fi
 
3757
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3758
$as_echo "$ac_cv_host" >&6; }
 
3759
case $ac_cv_host in
 
3760
*-*-*) ;;
 
3761
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3762
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
3763
   { (exit 1); exit 1; }; };;
 
3764
esac
 
3765
host=$ac_cv_host
 
3766
ac_save_IFS=$IFS; IFS='-'
 
3767
set x $ac_cv_host
 
3768
shift
 
3769
host_cpu=$1
 
3770
host_vendor=$2
 
3771
shift; shift
 
3772
# Remember, the first character of IFS is used to create $*,
 
3773
# except with old shells:
 
3774
host_os=$*
 
3775
IFS=$ac_save_IFS
 
3776
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3777
 
 
3778
 
 
3779
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3780
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3781
if test "${ac_cv_path_SED+set}" = set; then
 
3782
  $as_echo_n "(cached) " >&6
 
3783
else
 
3784
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3785
     for ac_i in 1 2 3 4 5 6 7; do
 
3786
       ac_script="$ac_script$as_nl$ac_script"
 
3787
     done
 
3788
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3789
     $as_unset ac_script || ac_script=
 
3790
     if test -z "$SED"; then
 
3791
  ac_path_SED_found=false
 
3792
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3793
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3794
for as_dir in $PATH
 
3795
do
 
3796
  IFS=$as_save_IFS
 
3797
  test -z "$as_dir" && as_dir=.
 
3798
  for ac_prog in sed gsed; do
 
3799
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3800
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3801
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3802
# Check for GNU ac_path_SED and select it if it is found.
 
3803
  # Check for GNU $ac_path_SED
 
3804
case `"$ac_path_SED" --version 2>&1` in
 
3805
*GNU*)
 
3806
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3807
*)
 
3808
  ac_count=0
 
3809
  $as_echo_n 0123456789 >"conftest.in"
 
3810
  while :
 
3811
  do
 
3812
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3813
    mv "conftest.tmp" "conftest.in"
 
3814
    cp "conftest.in" "conftest.nl"
 
3815
    $as_echo '' >> "conftest.nl"
 
3816
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3817
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3818
    ac_count=`expr $ac_count + 1`
 
3819
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3820
      # Best one so far, save it but keep looking for a better one
 
3821
      ac_cv_path_SED="$ac_path_SED"
 
3822
      ac_path_SED_max=$ac_count
 
3823
    fi
 
3824
    # 10*(2^10) chars as input seems more than enough
 
3825
    test $ac_count -gt 10 && break
 
3826
  done
 
3827
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3828
esac
 
3829
 
 
3830
      $ac_path_SED_found && break 3
 
3831
    done
 
3832
  done
 
3833
done
 
3834
IFS=$as_save_IFS
 
3835
  if test -z "$ac_cv_path_SED"; then
 
3836
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
3837
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
3838
   { (exit 1); exit 1; }; }
 
3839
  fi
 
3840
else
 
3841
  ac_cv_path_SED=$SED
 
3842
fi
 
3843
 
 
3844
fi
 
3845
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
3846
$as_echo "$ac_cv_path_SED" >&6; }
 
3847
 SED="$ac_cv_path_SED"
 
3848
  rm -f conftest.sed
 
3849
 
 
3850
test -z "$SED" && SED=sed
 
3851
Xsed="$SED -e 1s/^X//"
 
3852
 
 
3853
 
 
3854
 
 
3855
 
 
3856
 
 
3857
 
 
3858
 
 
3859
 
 
3860
 
 
3861
 
 
3862
 
 
3863
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3864
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3865
if test "${ac_cv_path_GREP+set}" = set; then
 
3866
  $as_echo_n "(cached) " >&6
 
3867
else
 
3868
  if test -z "$GREP"; then
 
3869
  ac_path_GREP_found=false
 
3870
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3871
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3872
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3873
do
 
3874
  IFS=$as_save_IFS
 
3875
  test -z "$as_dir" && as_dir=.
 
3876
  for ac_prog in grep ggrep; do
 
3877
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3878
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3879
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3880
# Check for GNU ac_path_GREP and select it if it is found.
 
3881
  # Check for GNU $ac_path_GREP
 
3882
case `"$ac_path_GREP" --version 2>&1` in
 
3883
*GNU*)
 
3884
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3885
*)
 
3886
  ac_count=0
 
3887
  $as_echo_n 0123456789 >"conftest.in"
 
3888
  while :
 
3889
  do
 
3890
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3891
    mv "conftest.tmp" "conftest.in"
 
3892
    cp "conftest.in" "conftest.nl"
 
3893
    $as_echo 'GREP' >> "conftest.nl"
 
3894
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3895
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3896
    ac_count=`expr $ac_count + 1`
 
3897
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3898
      # Best one so far, save it but keep looking for a better one
 
3899
      ac_cv_path_GREP="$ac_path_GREP"
 
3900
      ac_path_GREP_max=$ac_count
 
3901
    fi
 
3902
    # 10*(2^10) chars as input seems more than enough
 
3903
    test $ac_count -gt 10 && break
 
3904
  done
 
3905
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3906
esac
 
3907
 
 
3908
      $ac_path_GREP_found && break 3
 
3909
    done
 
3910
  done
 
3911
done
 
3912
IFS=$as_save_IFS
 
3913
  if test -z "$ac_cv_path_GREP"; then
 
3914
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3915
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3916
   { (exit 1); exit 1; }; }
 
3917
  fi
 
3918
else
 
3919
  ac_cv_path_GREP=$GREP
 
3920
fi
 
3921
 
 
3922
fi
 
3923
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3924
$as_echo "$ac_cv_path_GREP" >&6; }
 
3925
 GREP="$ac_cv_path_GREP"
 
3926
 
 
3927
 
 
3928
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3929
$as_echo_n "checking for egrep... " >&6; }
 
3930
if test "${ac_cv_path_EGREP+set}" = set; then
 
3931
  $as_echo_n "(cached) " >&6
 
3932
else
 
3933
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3934
   then ac_cv_path_EGREP="$GREP -E"
 
3935
   else
 
3936
     if test -z "$EGREP"; then
 
3937
  ac_path_EGREP_found=false
 
3938
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3939
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3940
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3941
do
 
3942
  IFS=$as_save_IFS
 
3943
  test -z "$as_dir" && as_dir=.
 
3944
  for ac_prog in egrep; do
 
3945
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3946
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3947
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3948
# Check for GNU ac_path_EGREP and select it if it is found.
 
3949
  # Check for GNU $ac_path_EGREP
 
3950
case `"$ac_path_EGREP" --version 2>&1` in
 
3951
*GNU*)
 
3952
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3953
*)
 
3954
  ac_count=0
 
3955
  $as_echo_n 0123456789 >"conftest.in"
 
3956
  while :
 
3957
  do
 
3958
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3959
    mv "conftest.tmp" "conftest.in"
 
3960
    cp "conftest.in" "conftest.nl"
 
3961
    $as_echo 'EGREP' >> "conftest.nl"
 
3962
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3963
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3964
    ac_count=`expr $ac_count + 1`
 
3965
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3966
      # Best one so far, save it but keep looking for a better one
 
3967
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3968
      ac_path_EGREP_max=$ac_count
 
3969
    fi
 
3970
    # 10*(2^10) chars as input seems more than enough
 
3971
    test $ac_count -gt 10 && break
 
3972
  done
 
3973
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3974
esac
 
3975
 
 
3976
      $ac_path_EGREP_found && break 3
 
3977
    done
 
3978
  done
 
3979
done
 
3980
IFS=$as_save_IFS
 
3981
  if test -z "$ac_cv_path_EGREP"; then
 
3982
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3983
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3984
   { (exit 1); exit 1; }; }
 
3985
  fi
 
3986
else
 
3987
  ac_cv_path_EGREP=$EGREP
 
3988
fi
 
3989
 
 
3990
   fi
 
3991
fi
 
3992
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3993
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3994
 EGREP="$ac_cv_path_EGREP"
 
3995
 
 
3996
 
 
3997
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
3998
$as_echo_n "checking for fgrep... " >&6; }
 
3999
if test "${ac_cv_path_FGREP+set}" = set; then
 
4000
  $as_echo_n "(cached) " >&6
 
4001
else
 
4002
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4003
   then ac_cv_path_FGREP="$GREP -F"
 
4004
   else
 
4005
     if test -z "$FGREP"; then
 
4006
  ac_path_FGREP_found=false
 
4007
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4008
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4010
do
 
4011
  IFS=$as_save_IFS
 
4012
  test -z "$as_dir" && as_dir=.
 
4013
  for ac_prog in fgrep; do
 
4014
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4015
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4016
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4017
# Check for GNU ac_path_FGREP and select it if it is found.
 
4018
  # Check for GNU $ac_path_FGREP
 
4019
case `"$ac_path_FGREP" --version 2>&1` in
 
4020
*GNU*)
 
4021
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4022
*)
 
4023
  ac_count=0
 
4024
  $as_echo_n 0123456789 >"conftest.in"
 
4025
  while :
 
4026
  do
 
4027
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4028
    mv "conftest.tmp" "conftest.in"
 
4029
    cp "conftest.in" "conftest.nl"
 
4030
    $as_echo 'FGREP' >> "conftest.nl"
 
4031
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4032
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4033
    ac_count=`expr $ac_count + 1`
 
4034
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4035
      # Best one so far, save it but keep looking for a better one
 
4036
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4037
      ac_path_FGREP_max=$ac_count
 
4038
    fi
 
4039
    # 10*(2^10) chars as input seems more than enough
 
4040
    test $ac_count -gt 10 && break
 
4041
  done
 
4042
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4043
esac
 
4044
 
 
4045
      $ac_path_FGREP_found && break 3
 
4046
    done
 
4047
  done
 
4048
done
 
4049
IFS=$as_save_IFS
 
4050
  if test -z "$ac_cv_path_FGREP"; then
 
4051
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4052
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4053
   { (exit 1); exit 1; }; }
 
4054
  fi
 
4055
else
 
4056
  ac_cv_path_FGREP=$FGREP
 
4057
fi
 
4058
 
 
4059
   fi
 
4060
fi
 
4061
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4062
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4063
 FGREP="$ac_cv_path_FGREP"
 
4064
 
 
4065
 
 
4066
test -z "$GREP" && GREP=grep
 
4067
 
 
4068
 
 
4069
 
 
4070
 
 
4071
 
 
4072
 
 
4073
 
 
4074
 
 
4075
 
 
4076
 
 
4077
 
 
4078
 
 
4079
 
 
4080
 
 
4081
 
 
4082
 
 
4083
 
 
4084
 
 
4085
 
 
4086
# Check whether --with-gnu-ld was given.
 
4087
if test "${with_gnu_ld+set}" = set; then
 
4088
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4089
else
 
4090
  with_gnu_ld=no
 
4091
fi
 
4092
 
 
4093
ac_prog=ld
 
4094
if test "$GCC" = yes; then
 
4095
  # Check if gcc -print-prog-name=ld gives a path.
 
4096
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4097
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4098
  case $host in
 
4099
  *-*-mingw*)
 
4100
    # gcc leaves a trailing carriage return which upsets mingw
 
4101
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4102
  *)
 
4103
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4104
  esac
 
4105
  case $ac_prog in
 
4106
    # Accept absolute paths.
 
4107
    [\\/]* | ?:[\\/]*)
 
4108
      re_direlt='/[^/][^/]*/\.\./'
 
4109
      # Canonicalize the pathname of ld
 
4110
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4111
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4112
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4113
      done
 
4114
      test -z "$LD" && LD="$ac_prog"
 
4115
      ;;
 
4116
  "")
 
4117
    # If it fails, then pretend we aren't using GCC.
 
4118
    ac_prog=ld
 
4119
    ;;
 
4120
  *)
 
4121
    # If it is relative, then search for the first ld in PATH.
 
4122
    with_gnu_ld=unknown
 
4123
    ;;
 
4124
  esac
 
4125
elif test "$with_gnu_ld" = yes; then
 
4126
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4127
$as_echo_n "checking for GNU ld... " >&6; }
 
4128
else
 
4129
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4130
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4131
fi
 
4132
if test "${lt_cv_path_LD+set}" = set; then
 
4133
  $as_echo_n "(cached) " >&6
 
4134
else
 
4135
  if test -z "$LD"; then
 
4136
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4137
  for ac_dir in $PATH; do
 
4138
    IFS="$lt_save_ifs"
 
4139
    test -z "$ac_dir" && ac_dir=.
 
4140
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4141
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4142
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4143
      # but apparently some variants of GNU ld only accept -v.
 
4144
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4145
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4146
      *GNU* | *'with BFD'*)
 
4147
        test "$with_gnu_ld" != no && break
 
4148
        ;;
 
4149
      *)
 
4150
        test "$with_gnu_ld" != yes && break
 
4151
        ;;
 
4152
      esac
 
4153
    fi
 
4154
  done
 
4155
  IFS="$lt_save_ifs"
 
4156
else
 
4157
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4158
fi
 
4159
fi
 
4160
 
 
4161
LD="$lt_cv_path_LD"
 
4162
if test -n "$LD"; then
 
4163
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4164
$as_echo "$LD" >&6; }
 
4165
else
 
4166
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4167
$as_echo "no" >&6; }
 
4168
fi
 
4169
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4170
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4171
   { (exit 1); exit 1; }; }
 
4172
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4173
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4174
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4175
  $as_echo_n "(cached) " >&6
 
4176
else
 
4177
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4178
case `$LD -v 2>&1 </dev/null` in
 
4179
*GNU* | *'with BFD'*)
 
4180
  lt_cv_prog_gnu_ld=yes
 
4181
  ;;
 
4182
*)
 
4183
  lt_cv_prog_gnu_ld=no
 
4184
  ;;
 
4185
esac
 
4186
fi
 
4187
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4188
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4189
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4190
 
 
4191
 
 
4192
 
 
4193
 
 
4194
 
 
4195
 
 
4196
 
 
4197
 
 
4198
 
 
4199
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4200
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4201
if test "${lt_cv_path_NM+set}" = set; then
 
4202
  $as_echo_n "(cached) " >&6
 
4203
else
 
4204
  if test -n "$NM"; then
 
4205
  # Let the user override the test.
 
4206
  lt_cv_path_NM="$NM"
 
4207
else
 
4208
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4209
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4210
    lt_nm_to_check="$lt_nm_to_check nm"
 
4211
  fi
 
4212
  for lt_tmp_nm in $lt_nm_to_check; do
 
4213
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4214
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4215
      IFS="$lt_save_ifs"
 
4216
      test -z "$ac_dir" && ac_dir=.
 
4217
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4218
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4219
        # Check to see if the nm accepts a BSD-compat flag.
 
4220
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4221
        #   nm: unknown option "B" ignored
 
4222
        # Tru64's nm complains that /dev/null is an invalid object file
 
4223
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4224
        */dev/null* | *'Invalid file or object type'*)
 
4225
          lt_cv_path_NM="$tmp_nm -B"
 
4226
          break
 
4227
          ;;
 
4228
        *)
 
4229
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4230
          */dev/null*)
 
4231
            lt_cv_path_NM="$tmp_nm -p"
 
4232
            break
 
4233
            ;;
 
4234
          *)
 
4235
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4236
            continue # so that we can try to find one that supports BSD flags
 
4237
            ;;
 
4238
          esac
 
4239
          ;;
 
4240
        esac
 
4241
      fi
 
4242
    done
 
4243
    IFS="$lt_save_ifs"
 
4244
  done
 
4245
  : ${lt_cv_path_NM=no}
 
4246
fi
 
4247
fi
 
4248
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4249
$as_echo "$lt_cv_path_NM" >&6; }
 
4250
if test "$lt_cv_path_NM" != "no"; then
 
4251
  NM="$lt_cv_path_NM"
 
4252
else
 
4253
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4254
  if test -n "$ac_tool_prefix"; then
 
4255
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4256
  do
 
4257
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4258
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4259
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4260
$as_echo_n "checking for $ac_word... " >&6; }
 
4261
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4262
  $as_echo_n "(cached) " >&6
 
4263
else
 
4264
  if test -n "$DUMPBIN"; then
 
4265
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4266
else
 
4267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4268
for as_dir in $PATH
 
4269
do
 
4270
  IFS=$as_save_IFS
 
4271
  test -z "$as_dir" && as_dir=.
 
4272
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4273
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4274
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4275
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4276
    break 2
 
4277
  fi
 
4278
done
 
4279
done
 
4280
IFS=$as_save_IFS
 
4281
 
 
4282
fi
 
4283
fi
 
4284
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4285
if test -n "$DUMPBIN"; then
 
4286
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4287
$as_echo "$DUMPBIN" >&6; }
 
4288
else
 
4289
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4290
$as_echo "no" >&6; }
 
4291
fi
 
4292
 
 
4293
 
 
4294
    test -n "$DUMPBIN" && break
 
4295
  done
 
4296
fi
 
4297
if test -z "$DUMPBIN"; then
 
4298
  ac_ct_DUMPBIN=$DUMPBIN
 
4299
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4300
do
 
4301
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4302
set dummy $ac_prog; ac_word=$2
 
4303
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4304
$as_echo_n "checking for $ac_word... " >&6; }
 
4305
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4306
  $as_echo_n "(cached) " >&6
 
4307
else
 
4308
  if test -n "$ac_ct_DUMPBIN"; then
 
4309
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4310
else
 
4311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4312
for as_dir in $PATH
 
4313
do
 
4314
  IFS=$as_save_IFS
 
4315
  test -z "$as_dir" && as_dir=.
 
4316
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4317
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4318
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4319
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4320
    break 2
 
4321
  fi
 
4322
done
 
4323
done
 
4324
IFS=$as_save_IFS
 
4325
 
 
4326
fi
 
4327
fi
 
4328
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4329
if test -n "$ac_ct_DUMPBIN"; then
 
4330
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4331
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4332
else
 
4333
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4334
$as_echo "no" >&6; }
 
4335
fi
 
4336
 
 
4337
 
 
4338
  test -n "$ac_ct_DUMPBIN" && break
 
4339
done
 
4340
 
 
4341
  if test "x$ac_ct_DUMPBIN" = x; then
 
4342
    DUMPBIN=":"
 
4343
  else
 
4344
    case $cross_compiling:$ac_tool_warned in
 
4345
yes:)
 
4346
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4347
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4348
ac_tool_warned=yes ;;
 
4349
esac
 
4350
    DUMPBIN=$ac_ct_DUMPBIN
 
4351
  fi
 
4352
fi
 
4353
 
 
4354
 
 
4355
  if test "$DUMPBIN" != ":"; then
 
4356
    NM="$DUMPBIN"
 
4357
  fi
 
4358
fi
 
4359
test -z "$NM" && NM=nm
 
4360
 
 
4361
 
 
4362
 
 
4363
 
 
4364
 
 
4365
 
 
4366
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4367
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4368
if test "${lt_cv_nm_interface+set}" = set; then
 
4369
  $as_echo_n "(cached) " >&6
 
4370
else
 
4371
  lt_cv_nm_interface="BSD nm"
 
4372
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4373
  (eval echo "\"\$as_me:4373: $ac_compile\"" >&5)
 
4374
  (eval "$ac_compile" 2>conftest.err)
 
4375
  cat conftest.err >&5
 
4376
  (eval echo "\"\$as_me:4376: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4377
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4378
  cat conftest.err >&5
 
4379
  (eval echo "\"\$as_me:4379: output\"" >&5)
 
4380
  cat conftest.out >&5
 
4381
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4382
    lt_cv_nm_interface="MS dumpbin"
 
4383
  fi
 
4384
  rm -f conftest*
 
4385
fi
 
4386
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4387
$as_echo "$lt_cv_nm_interface" >&6; }
 
4388
 
 
4389
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4390
$as_echo_n "checking whether ln -s works... " >&6; }
 
4391
LN_S=$as_ln_s
 
4392
if test "$LN_S" = "ln -s"; then
 
4393
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4394
$as_echo "yes" >&6; }
 
4395
else
 
4396
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4397
$as_echo "no, using $LN_S" >&6; }
 
4398
fi
 
4399
 
 
4400
# find the maximum length of command line arguments
 
4401
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4402
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4403
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4404
  $as_echo_n "(cached) " >&6
 
4405
else
 
4406
    i=0
 
4407
  teststring="ABCD"
 
4408
 
 
4409
  case $build_os in
 
4410
  msdosdjgpp*)
 
4411
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4412
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4413
    # during glob expansion).  Even if it were fixed, the result of this
 
4414
    # check would be larger than it should be.
 
4415
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4416
    ;;
 
4417
 
 
4418
  gnu*)
 
4419
    # Under GNU Hurd, this test is not required because there is
 
4420
    # no limit to the length of command line arguments.
 
4421
    # Libtool will interpret -1 as no limit whatsoever
 
4422
    lt_cv_sys_max_cmd_len=-1;
 
4423
    ;;
 
4424
 
 
4425
  cygwin* | mingw* | cegcc*)
 
4426
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4427
    # about 5 minutes as the teststring grows exponentially.
 
4428
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4429
    # you end up with a "frozen" computer, even though with patience
 
4430
    # the test eventually succeeds (with a max line length of 256k).
 
4431
    # Instead, let's just punt: use the minimum linelength reported by
 
4432
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4433
    lt_cv_sys_max_cmd_len=8192;
 
4434
    ;;
 
4435
 
 
4436
  amigaos*)
 
4437
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4438
    # So we just punt and use a minimum line length of 8192.
 
4439
    lt_cv_sys_max_cmd_len=8192;
 
4440
    ;;
 
4441
 
 
4442
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4443
    # This has been around since 386BSD, at least.  Likely further.
 
4444
    if test -x /sbin/sysctl; then
 
4445
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4446
    elif test -x /usr/sbin/sysctl; then
 
4447
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4448
    else
 
4449
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4450
    fi
 
4451
    # And add a safety zone
 
4452
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4453
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4454
    ;;
 
4455
 
 
4456
  interix*)
 
4457
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4458
    lt_cv_sys_max_cmd_len=196608
 
4459
    ;;
 
4460
 
 
4461
  osf*)
 
4462
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4463
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4464
    # nice to cause kernel panics so lets avoid the loop below.
 
4465
    # First set a reasonable default.
 
4466
    lt_cv_sys_max_cmd_len=16384
 
4467
    #
 
4468
    if test -x /sbin/sysconfig; then
 
4469
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4470
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4471
      esac
 
4472
    fi
 
4473
    ;;
 
4474
  sco3.2v5*)
 
4475
    lt_cv_sys_max_cmd_len=102400
 
4476
    ;;
 
4477
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4478
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4479
    if test -n "$kargmax"; then
 
4480
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4481
    else
 
4482
      lt_cv_sys_max_cmd_len=32768
 
4483
    fi
 
4484
    ;;
 
4485
  *)
 
4486
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4487
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4488
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4489
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4490
    else
 
4491
      # Make teststring a little bigger before we do anything with it.
 
4492
      # a 1K string should be a reasonable start.
 
4493
      for i in 1 2 3 4 5 6 7 8 ; do
 
4494
        teststring=$teststring$teststring
 
4495
      done
 
4496
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4497
      # If test is not a shell built-in, we'll probably end up computing a
 
4498
      # maximum length that is only half of the actual maximum length, but
 
4499
      # we can't tell.
 
4500
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4501
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4502
              test $i != 17 # 1/2 MB should be enough
 
4503
      do
 
4504
        i=`expr $i + 1`
 
4505
        teststring=$teststring$teststring
 
4506
      done
 
4507
      # Only check the string length outside the loop.
 
4508
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4509
      teststring=
 
4510
      # Add a significant safety factor because C++ compilers can tack on
 
4511
      # massive amounts of additional arguments before passing them to the
 
4512
      # linker.  It appears as though 1/2 is a usable value.
 
4513
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4514
    fi
 
4515
    ;;
 
4516
  esac
 
4517
 
 
4518
fi
 
4519
 
 
4520
if test -n $lt_cv_sys_max_cmd_len ; then
 
4521
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4522
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4523
else
 
4524
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
4525
$as_echo "none" >&6; }
 
4526
fi
 
4527
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4528
 
 
4529
 
 
4530
 
 
4531
 
 
4532
 
 
4533
 
 
4534
: ${CP="cp -f"}
 
4535
: ${MV="mv -f"}
 
4536
: ${RM="rm -f"}
 
4537
 
 
4538
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
4539
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4540
# Try some XSI features
 
4541
xsi_shell=no
 
4542
( _lt_dummy="a/b/c"
 
4543
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4544
      = c,a/b,, \
 
4545
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4546
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4547
  && xsi_shell=yes
 
4548
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
4549
$as_echo "$xsi_shell" >&6; }
 
4550
 
 
4551
 
 
4552
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
4553
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4554
lt_shell_append=no
 
4555
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4556
    >/dev/null 2>&1 \
 
4557
  && lt_shell_append=yes
 
4558
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
4559
$as_echo "$lt_shell_append" >&6; }
 
4560
 
 
4561
 
 
4562
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4563
  lt_unset=unset
 
4564
else
 
4565
  lt_unset=false
 
4566
fi
 
4567
 
 
4568
 
 
4569
 
 
4570
 
 
4571
 
 
4572
# test EBCDIC or ASCII
 
4573
case `echo X|tr X '\101'` in
 
4574
 A) # ASCII based system
 
4575
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4576
  lt_SP2NL='tr \040 \012'
 
4577
  lt_NL2SP='tr \015\012 \040\040'
 
4578
  ;;
 
4579
 *) # EBCDIC based system
 
4580
  lt_SP2NL='tr \100 \n'
 
4581
  lt_NL2SP='tr \r\n \100\100'
 
4582
  ;;
 
4583
esac
 
4584
 
 
4585
 
 
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
 
 
4592
 
 
4593
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4594
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4595
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4596
  $as_echo_n "(cached) " >&6
 
4597
else
 
4598
  lt_cv_ld_reload_flag='-r'
 
4599
fi
 
4600
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4601
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4602
reload_flag=$lt_cv_ld_reload_flag
 
4603
case $reload_flag in
 
4604
"" | " "*) ;;
 
4605
*) reload_flag=" $reload_flag" ;;
 
4606
esac
 
4607
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4608
case $host_os in
 
4609
  darwin*)
 
4610
    if test "$GCC" = yes; then
 
4611
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4612
    else
 
4613
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4614
    fi
 
4615
    ;;
 
4616
esac
 
4617
 
 
4618
 
 
4619
 
 
4620
 
 
4621
 
 
4622
 
 
4623
 
 
4624
 
 
4625
 
 
4626
if test -n "$ac_tool_prefix"; then
 
4627
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4628
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4629
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4630
$as_echo_n "checking for $ac_word... " >&6; }
 
4631
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4632
  $as_echo_n "(cached) " >&6
 
4633
else
 
4634
  if test -n "$OBJDUMP"; then
 
4635
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4636
else
 
4637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4638
for as_dir in $PATH
 
4639
do
 
4640
  IFS=$as_save_IFS
 
4641
  test -z "$as_dir" && as_dir=.
 
4642
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4643
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4644
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4645
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4646
    break 2
 
4647
  fi
 
4648
done
 
4649
done
 
4650
IFS=$as_save_IFS
 
4651
 
 
4652
fi
 
4653
fi
 
4654
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4655
if test -n "$OBJDUMP"; then
 
4656
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4657
$as_echo "$OBJDUMP" >&6; }
 
4658
else
 
4659
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4660
$as_echo "no" >&6; }
 
4661
fi
 
4662
 
 
4663
 
 
4664
fi
 
4665
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4666
  ac_ct_OBJDUMP=$OBJDUMP
 
4667
  # Extract the first word of "objdump", so it can be a program name with args.
 
4668
set dummy objdump; ac_word=$2
 
4669
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4670
$as_echo_n "checking for $ac_word... " >&6; }
 
4671
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4672
  $as_echo_n "(cached) " >&6
 
4673
else
 
4674
  if test -n "$ac_ct_OBJDUMP"; then
 
4675
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4676
else
 
4677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4678
for as_dir in $PATH
 
4679
do
 
4680
  IFS=$as_save_IFS
 
4681
  test -z "$as_dir" && as_dir=.
 
4682
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4683
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4684
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4685
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4686
    break 2
 
4687
  fi
 
4688
done
 
4689
done
 
4690
IFS=$as_save_IFS
 
4691
 
 
4692
fi
 
4693
fi
 
4694
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4695
if test -n "$ac_ct_OBJDUMP"; then
 
4696
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4697
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4698
else
 
4699
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4700
$as_echo "no" >&6; }
 
4701
fi
 
4702
 
 
4703
  if test "x$ac_ct_OBJDUMP" = x; then
 
4704
    OBJDUMP="false"
 
4705
  else
 
4706
    case $cross_compiling:$ac_tool_warned in
 
4707
yes:)
 
4708
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4709
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4710
ac_tool_warned=yes ;;
 
4711
esac
 
4712
    OBJDUMP=$ac_ct_OBJDUMP
 
4713
  fi
 
4714
else
 
4715
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4716
fi
 
4717
 
 
4718
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
 
4725
 
 
4726
 
 
4727
 
 
4728
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4729
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4730
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4731
  $as_echo_n "(cached) " >&6
 
4732
else
 
4733
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4734
lt_cv_file_magic_test_file=
 
4735
lt_cv_deplibs_check_method='unknown'
 
4736
# Need to set the preceding variable on all platforms that support
 
4737
# interlibrary dependencies.
 
4738
# 'none' -- dependencies not supported.
 
4739
# `unknown' -- same as none, but documents that we really don't know.
 
4740
# 'pass_all' -- all dependencies passed with no checks.
 
4741
# 'test_compile' -- check by making test program.
 
4742
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4743
# which responds to the $file_magic_cmd with a given extended regex.
 
4744
# If you have `file' or equivalent on your system and you're not sure
 
4745
# whether `pass_all' will *always* work, you probably want this one.
 
4746
 
 
4747
case $host_os in
 
4748
aix[4-9]*)
 
4749
  lt_cv_deplibs_check_method=pass_all
 
4750
  ;;
 
4751
 
 
4752
beos*)
 
4753
  lt_cv_deplibs_check_method=pass_all
 
4754
  ;;
 
4755
 
 
4756
bsdi[45]*)
 
4757
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4758
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4759
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4760
  ;;
 
4761
 
 
4762
cygwin*)
 
4763
  # func_win32_libid is a shell function defined in ltmain.sh
 
4764
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4765
  lt_cv_file_magic_cmd='func_win32_libid'
 
4766
  ;;
 
4767
 
 
4768
mingw* | pw32*)
 
4769
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4770
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4771
  # unless we find 'file', for example because we are cross-compiling.
 
4772
  if ( file / ) >/dev/null 2>&1; then
 
4773
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4774
    lt_cv_file_magic_cmd='func_win32_libid'
 
4775
  else
 
4776
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4777
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4778
  fi
 
4779
  ;;
 
4780
 
 
4781
cegcc)
 
4782
  # use the weaker test based on 'objdump'. See mingw*.
 
4783
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4784
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4785
  ;;
 
4786
 
 
4787
darwin* | rhapsody*)
 
4788
  lt_cv_deplibs_check_method=pass_all
 
4789
  ;;
 
4790
 
 
4791
freebsd* | dragonfly*)
 
4792
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4793
    case $host_cpu in
 
4794
    i*86 )
 
4795
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4796
      # Let's accept both of them until this is cleared up.
 
4797
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4798
      lt_cv_file_magic_cmd=/usr/bin/file
 
4799
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4800
      ;;
 
4801
    esac
 
4802
  else
 
4803
    lt_cv_deplibs_check_method=pass_all
 
4804
  fi
 
4805
  ;;
 
4806
 
 
4807
gnu*)
 
4808
  lt_cv_deplibs_check_method=pass_all
 
4809
  ;;
 
4810
 
 
4811
hpux10.20* | hpux11*)
 
4812
  lt_cv_file_magic_cmd=/usr/bin/file
 
4813
  case $host_cpu in
 
4814
  ia64*)
 
4815
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4816
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4817
    ;;
 
4818
  hppa*64*)
 
4819
    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]'
 
4820
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4821
    ;;
 
4822
  *)
 
4823
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4824
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4825
    ;;
 
4826
  esac
 
4827
  ;;
 
4828
 
 
4829
interix[3-9]*)
 
4830
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4831
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4832
  ;;
 
4833
 
 
4834
irix5* | irix6* | nonstopux*)
 
4835
  case $LD in
 
4836
  *-32|*"-32 ") libmagic=32-bit;;
 
4837
  *-n32|*"-n32 ") libmagic=N32;;
 
4838
  *-64|*"-64 ") libmagic=64-bit;;
 
4839
  *) libmagic=never-match;;
 
4840
  esac
 
4841
  lt_cv_deplibs_check_method=pass_all
 
4842
  ;;
 
4843
 
 
4844
# This must be Linux ELF.
 
4845
linux* | k*bsd*-gnu)
 
4846
  lt_cv_deplibs_check_method=pass_all
 
4847
  ;;
 
4848
 
 
4849
netbsd*)
 
4850
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4851
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4852
  else
 
4853
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4854
  fi
 
4855
  ;;
 
4856
 
 
4857
newos6*)
 
4858
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4859
  lt_cv_file_magic_cmd=/usr/bin/file
 
4860
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4861
  ;;
 
4862
 
 
4863
*nto* | *qnx*)
 
4864
  lt_cv_deplibs_check_method=pass_all
 
4865
  ;;
 
4866
 
 
4867
openbsd*)
 
4868
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4869
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4870
  else
 
4871
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4872
  fi
 
4873
  ;;
 
4874
 
 
4875
osf3* | osf4* | osf5*)
 
4876
  lt_cv_deplibs_check_method=pass_all
 
4877
  ;;
 
4878
 
 
4879
rdos*)
 
4880
  lt_cv_deplibs_check_method=pass_all
 
4881
  ;;
 
4882
 
 
4883
solaris*)
 
4884
  lt_cv_deplibs_check_method=pass_all
 
4885
  ;;
 
4886
 
 
4887
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4888
  lt_cv_deplibs_check_method=pass_all
 
4889
  ;;
 
4890
 
 
4891
sysv4 | sysv4.3*)
 
4892
  case $host_vendor in
 
4893
  motorola)
 
4894
    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]'
 
4895
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4896
    ;;
 
4897
  ncr)
 
4898
    lt_cv_deplibs_check_method=pass_all
 
4899
    ;;
 
4900
  sequent)
 
4901
    lt_cv_file_magic_cmd='/bin/file'
 
4902
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4903
    ;;
 
4904
  sni)
 
4905
    lt_cv_file_magic_cmd='/bin/file'
 
4906
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4907
    lt_cv_file_magic_test_file=/lib/libc.so
 
4908
    ;;
 
4909
  siemens)
 
4910
    lt_cv_deplibs_check_method=pass_all
 
4911
    ;;
 
4912
  pc)
 
4913
    lt_cv_deplibs_check_method=pass_all
 
4914
    ;;
 
4915
  esac
 
4916
  ;;
 
4917
 
 
4918
tpf*)
 
4919
  lt_cv_deplibs_check_method=pass_all
 
4920
  ;;
 
4921
esac
 
4922
 
 
4923
fi
 
4924
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4925
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4926
file_magic_cmd=$lt_cv_file_magic_cmd
 
4927
deplibs_check_method=$lt_cv_deplibs_check_method
 
4928
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4929
 
 
4930
 
 
4931
 
 
4932
 
 
4933
 
 
4934
 
 
4935
 
 
4936
 
 
4937
 
 
4938
 
 
4939
 
 
4940
 
 
4941
if test -n "$ac_tool_prefix"; then
 
4942
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
4943
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
4944
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4945
$as_echo_n "checking for $ac_word... " >&6; }
 
4946
if test "${ac_cv_prog_AR+set}" = set; then
 
4947
  $as_echo_n "(cached) " >&6
 
4948
else
 
4949
  if test -n "$AR"; then
 
4950
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4951
else
 
4952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4953
for as_dir in $PATH
 
4954
do
 
4955
  IFS=$as_save_IFS
 
4956
  test -z "$as_dir" && as_dir=.
 
4957
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4958
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4959
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
4960
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4961
    break 2
 
4962
  fi
 
4963
done
 
4964
done
 
4965
IFS=$as_save_IFS
 
4966
 
 
4967
fi
 
4968
fi
 
4969
AR=$ac_cv_prog_AR
 
4970
if test -n "$AR"; then
 
4971
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
4972
$as_echo "$AR" >&6; }
 
4973
else
 
4974
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4975
$as_echo "no" >&6; }
 
4976
fi
 
4977
 
 
4978
 
 
4979
fi
 
4980
if test -z "$ac_cv_prog_AR"; then
 
4981
  ac_ct_AR=$AR
 
4982
  # Extract the first word of "ar", so it can be a program name with args.
 
4983
set dummy ar; ac_word=$2
 
4984
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4985
$as_echo_n "checking for $ac_word... " >&6; }
 
4986
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
4987
  $as_echo_n "(cached) " >&6
 
4988
else
 
4989
  if test -n "$ac_ct_AR"; then
 
4990
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
4991
else
 
4992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4993
for as_dir in $PATH
 
4994
do
 
4995
  IFS=$as_save_IFS
 
4996
  test -z "$as_dir" && as_dir=.
 
4997
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4998
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4999
    ac_cv_prog_ac_ct_AR="ar"
 
5000
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5001
    break 2
 
5002
  fi
 
5003
done
 
5004
done
 
5005
IFS=$as_save_IFS
 
5006
 
 
5007
fi
 
5008
fi
 
5009
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5010
if test -n "$ac_ct_AR"; then
 
5011
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5012
$as_echo "$ac_ct_AR" >&6; }
 
5013
else
 
5014
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5015
$as_echo "no" >&6; }
 
5016
fi
 
5017
 
 
5018
  if test "x$ac_ct_AR" = x; then
 
5019
    AR="false"
 
5020
  else
 
5021
    case $cross_compiling:$ac_tool_warned in
 
5022
yes:)
 
5023
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5024
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5025
ac_tool_warned=yes ;;
 
5026
esac
 
5027
    AR=$ac_ct_AR
 
5028
  fi
 
5029
else
 
5030
  AR="$ac_cv_prog_AR"
 
5031
fi
 
5032
 
 
5033
test -z "$AR" && AR=ar
 
5034
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5035
 
 
5036
 
 
5037
 
 
5038
 
 
5039
 
 
5040
 
 
5041
 
 
5042
 
 
5043
 
 
5044
 
 
5045
 
 
5046
if test -n "$ac_tool_prefix"; then
 
5047
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5048
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5049
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5050
$as_echo_n "checking for $ac_word... " >&6; }
 
5051
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5052
  $as_echo_n "(cached) " >&6
 
5053
else
 
5054
  if test -n "$STRIP"; then
 
5055
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5056
else
 
5057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5058
for as_dir in $PATH
 
5059
do
 
5060
  IFS=$as_save_IFS
 
5061
  test -z "$as_dir" && as_dir=.
 
5062
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5063
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5064
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5065
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5066
    break 2
 
5067
  fi
 
5068
done
 
5069
done
 
5070
IFS=$as_save_IFS
 
5071
 
 
5072
fi
 
5073
fi
 
5074
STRIP=$ac_cv_prog_STRIP
 
5075
if test -n "$STRIP"; then
 
5076
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
5077
$as_echo "$STRIP" >&6; }
 
5078
else
 
5079
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5080
$as_echo "no" >&6; }
 
5081
fi
 
5082
 
 
5083
 
 
5084
fi
 
5085
if test -z "$ac_cv_prog_STRIP"; then
 
5086
  ac_ct_STRIP=$STRIP
 
5087
  # Extract the first word of "strip", so it can be a program name with args.
 
5088
set dummy strip; ac_word=$2
 
5089
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5090
$as_echo_n "checking for $ac_word... " >&6; }
 
5091
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5092
  $as_echo_n "(cached) " >&6
 
5093
else
 
5094
  if test -n "$ac_ct_STRIP"; then
 
5095
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5096
else
 
5097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5098
for as_dir in $PATH
 
5099
do
 
5100
  IFS=$as_save_IFS
 
5101
  test -z "$as_dir" && as_dir=.
 
5102
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5103
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5104
    ac_cv_prog_ac_ct_STRIP="strip"
 
5105
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5106
    break 2
 
5107
  fi
 
5108
done
 
5109
done
 
5110
IFS=$as_save_IFS
 
5111
 
 
5112
fi
 
5113
fi
 
5114
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5115
if test -n "$ac_ct_STRIP"; then
 
5116
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5117
$as_echo "$ac_ct_STRIP" >&6; }
 
5118
else
 
5119
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5120
$as_echo "no" >&6; }
 
5121
fi
 
5122
 
 
5123
  if test "x$ac_ct_STRIP" = x; then
 
5124
    STRIP=":"
 
5125
  else
 
5126
    case $cross_compiling:$ac_tool_warned in
 
5127
yes:)
 
5128
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5129
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5130
ac_tool_warned=yes ;;
 
5131
esac
 
5132
    STRIP=$ac_ct_STRIP
 
5133
  fi
 
5134
else
 
5135
  STRIP="$ac_cv_prog_STRIP"
 
5136
fi
 
5137
 
 
5138
test -z "$STRIP" && STRIP=:
 
5139
 
 
5140
 
 
5141
 
 
5142
 
 
5143
 
 
5144
 
 
5145
if test -n "$ac_tool_prefix"; then
 
5146
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5147
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5148
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5149
$as_echo_n "checking for $ac_word... " >&6; }
 
5150
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5151
  $as_echo_n "(cached) " >&6
 
5152
else
 
5153
  if test -n "$RANLIB"; then
 
5154
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5155
else
 
5156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5157
for as_dir in $PATH
 
5158
do
 
5159
  IFS=$as_save_IFS
 
5160
  test -z "$as_dir" && as_dir=.
 
5161
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5162
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5163
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5164
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5165
    break 2
 
5166
  fi
 
5167
done
 
5168
done
 
5169
IFS=$as_save_IFS
 
5170
 
 
5171
fi
 
5172
fi
 
5173
RANLIB=$ac_cv_prog_RANLIB
 
5174
if test -n "$RANLIB"; then
 
5175
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5176
$as_echo "$RANLIB" >&6; }
 
5177
else
 
5178
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5179
$as_echo "no" >&6; }
 
5180
fi
 
5181
 
 
5182
 
 
5183
fi
 
5184
if test -z "$ac_cv_prog_RANLIB"; then
 
5185
  ac_ct_RANLIB=$RANLIB
 
5186
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5187
set dummy ranlib; ac_word=$2
 
5188
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5189
$as_echo_n "checking for $ac_word... " >&6; }
 
5190
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5191
  $as_echo_n "(cached) " >&6
 
5192
else
 
5193
  if test -n "$ac_ct_RANLIB"; then
 
5194
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5195
else
 
5196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5197
for as_dir in $PATH
 
5198
do
 
5199
  IFS=$as_save_IFS
 
5200
  test -z "$as_dir" && as_dir=.
 
5201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5202
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5203
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5204
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5205
    break 2
 
5206
  fi
 
5207
done
 
5208
done
 
5209
IFS=$as_save_IFS
 
5210
 
 
5211
fi
 
5212
fi
 
5213
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5214
if test -n "$ac_ct_RANLIB"; then
 
5215
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5216
$as_echo "$ac_ct_RANLIB" >&6; }
 
5217
else
 
5218
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5219
$as_echo "no" >&6; }
 
5220
fi
 
5221
 
 
5222
  if test "x$ac_ct_RANLIB" = x; then
 
5223
    RANLIB=":"
 
5224
  else
 
5225
    case $cross_compiling:$ac_tool_warned in
 
5226
yes:)
 
5227
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5228
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5229
ac_tool_warned=yes ;;
 
5230
esac
 
5231
    RANLIB=$ac_ct_RANLIB
 
5232
  fi
 
5233
else
 
5234
  RANLIB="$ac_cv_prog_RANLIB"
 
5235
fi
 
5236
 
 
5237
test -z "$RANLIB" && RANLIB=:
 
5238
 
 
5239
 
 
5240
 
 
5241
 
 
5242
 
 
5243
 
 
5244
# Determine commands to create old-style static archives.
 
5245
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5246
old_postinstall_cmds='chmod 644 $oldlib'
 
5247
old_postuninstall_cmds=
 
5248
 
 
5249
if test -n "$RANLIB"; then
 
5250
  case $host_os in
 
5251
  openbsd*)
 
5252
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5253
    ;;
 
5254
  *)
 
5255
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5256
    ;;
 
5257
  esac
 
5258
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5259
fi
 
5260
 
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
 
5266
 
 
5267
 
 
5268
 
 
5269
 
 
5270
 
 
5271
 
 
5272
 
 
5273
 
 
5274
 
 
5275
 
 
5276
 
 
5277
 
 
5278
 
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
 
 
5288
 
 
5289
 
 
5290
 
 
5291
 
 
5292
 
 
5293
 
 
5294
# If no C compiler was specified, use CC.
 
5295
LTCC=${LTCC-"$CC"}
 
5296
 
 
5297
# If no C compiler flags were specified, use CFLAGS.
 
5298
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5299
 
 
5300
# Allow CC to be a program name with arguments.
 
5301
compiler=$CC
 
5302
 
 
5303
 
 
5304
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5305
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5306
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5307
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5308
  $as_echo_n "(cached) " >&6
 
5309
else
 
5310
 
 
5311
# These are sane defaults that work on at least a few old systems.
 
5312
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5313
 
 
5314
# Character class describing NM global symbol codes.
 
5315
symcode='[BCDEGRST]'
 
5316
 
 
5317
# Regexp to match symbols that can be accessed directly from C.
 
5318
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5319
 
 
5320
# Define system-specific variables.
 
5321
case $host_os in
 
5322
aix*)
 
5323
  symcode='[BCDT]'
 
5324
  ;;
 
5325
cygwin* | mingw* | pw32* | cegcc*)
 
5326
  symcode='[ABCDGISTW]'
 
5327
  ;;
 
5328
hpux*)
 
5329
  if test "$host_cpu" = ia64; then
 
5330
    symcode='[ABCDEGRST]'
 
5331
  fi
 
5332
  ;;
 
5333
irix* | nonstopux*)
 
5334
  symcode='[BCDEGRST]'
 
5335
  ;;
 
5336
osf*)
 
5337
  symcode='[BCDEGQRST]'
 
5338
  ;;
 
5339
solaris*)
 
5340
  symcode='[BDRT]'
 
5341
  ;;
 
5342
sco3.2v5*)
 
5343
  symcode='[DT]'
 
5344
  ;;
 
5345
sysv4.2uw2*)
 
5346
  symcode='[DT]'
 
5347
  ;;
 
5348
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5349
  symcode='[ABDT]'
 
5350
  ;;
 
5351
sysv4)
 
5352
  symcode='[DFNSTU]'
 
5353
  ;;
 
5354
esac
 
5355
 
 
5356
# If we're using GNU nm, then use its standard symbol codes.
 
5357
case `$NM -V 2>&1` in
 
5358
*GNU* | *'with BFD'*)
 
5359
  symcode='[ABCDGIRSTW]' ;;
 
5360
esac
 
5361
 
 
5362
# Transform an extracted symbol line into a proper C declaration.
 
5363
# Some systems (esp. on ia64) link data and code symbols differently,
 
5364
# so use this general approach.
 
5365
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5366
 
 
5367
# Transform an extracted symbol line into symbol name and symbol address
 
5368
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5369
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5370
 
 
5371
# Handle CRLF in mingw tool chain
 
5372
opt_cr=
 
5373
case $build_os in
 
5374
mingw*)
 
5375
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5376
  ;;
 
5377
esac
 
5378
 
 
5379
# Try without a prefix underscore, then with it.
 
5380
for ac_symprfx in "" "_"; do
 
5381
 
 
5382
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5383
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5384
 
 
5385
  # Write the raw and C identifiers.
 
5386
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5387
    # Fake it for dumpbin and say T for any non-static function
 
5388
    # and D for any global variable.
 
5389
    # Also find C++ and __fastcall symbols from MSVC++,
 
5390
    # which start with @ or ?.
 
5391
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5392
"     {last_section=section; section=\$ 3};"\
 
5393
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5394
"     \$ 0!~/External *\|/{next};"\
 
5395
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5396
"     {if(hide[section]) next};"\
 
5397
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5398
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5399
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5400
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5401
"     ' prfx=^$ac_symprfx"
 
5402
  else
 
5403
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5404
  fi
 
5405
 
 
5406
  # Check to see that the pipe works correctly.
 
5407
  pipe_works=no
 
5408
 
 
5409
  rm -f conftest*
 
5410
  cat > conftest.$ac_ext <<_LT_EOF
 
5411
#ifdef __cplusplus
 
5412
extern "C" {
 
5413
#endif
 
5414
char nm_test_var;
 
5415
void nm_test_func(void);
 
5416
void nm_test_func(void){}
 
5417
#ifdef __cplusplus
 
5418
}
 
5419
#endif
 
5420
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5421
_LT_EOF
 
5422
 
 
5423
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5424
  (eval $ac_compile) 2>&5
 
5425
  ac_status=$?
 
5426
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5427
  (exit $ac_status); }; then
 
5428
    # Now try to grab the symbols.
 
5429
    nlist=conftest.nm
 
5430
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5431
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5432
  ac_status=$?
 
5433
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5434
  (exit $ac_status); } && test -s "$nlist"; then
 
5435
      # Try sorting and uniquifying the output.
 
5436
      if sort "$nlist" | uniq > "$nlist"T; then
 
5437
        mv -f "$nlist"T "$nlist"
 
5438
      else
 
5439
        rm -f "$nlist"T
 
5440
      fi
 
5441
 
 
5442
      # Make sure that we snagged all the symbols we need.
 
5443
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5444
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5445
          cat <<_LT_EOF > conftest.$ac_ext
 
5446
#ifdef __cplusplus
 
5447
extern "C" {
 
5448
#endif
 
5449
 
 
5450
_LT_EOF
 
5451
          # Now generate the symbol file.
 
5452
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5453
 
 
5454
          cat <<_LT_EOF >> conftest.$ac_ext
 
5455
 
 
5456
/* The mapping between symbol names and symbols.  */
 
5457
const struct {
 
5458
  const char *name;
 
5459
  void       *address;
 
5460
}
 
5461
lt__PROGRAM__LTX_preloaded_symbols[] =
 
5462
{
 
5463
  { "@PROGRAM@", (void *) 0 },
 
5464
_LT_EOF
 
5465
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5466
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5467
  {0, (void *) 0}
 
5468
};
 
5469
 
 
5470
/* This works around a problem in FreeBSD linker */
 
5471
#ifdef FREEBSD_WORKAROUND
 
5472
static const void *lt_preloaded_setup() {
 
5473
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5474
}
 
5475
#endif
 
5476
 
 
5477
#ifdef __cplusplus
 
5478
}
 
5479
#endif
 
5480
_LT_EOF
 
5481
          # Now try linking the two files.
 
5482
          mv conftest.$ac_objext conftstm.$ac_objext
 
5483
          lt_save_LIBS="$LIBS"
 
5484
          lt_save_CFLAGS="$CFLAGS"
 
5485
          LIBS="conftstm.$ac_objext"
 
5486
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5487
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5488
  (eval $ac_link) 2>&5
 
5489
  ac_status=$?
 
5490
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5491
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5492
            pipe_works=yes
 
5493
          fi
 
5494
          LIBS="$lt_save_LIBS"
 
5495
          CFLAGS="$lt_save_CFLAGS"
 
5496
        else
 
5497
          echo "cannot find nm_test_func in $nlist" >&5
 
5498
        fi
 
5499
      else
 
5500
        echo "cannot find nm_test_var in $nlist" >&5
 
5501
      fi
 
5502
    else
 
5503
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5504
    fi
 
5505
  else
 
5506
    echo "$progname: failed program was:" >&5
 
5507
    cat conftest.$ac_ext >&5
 
5508
  fi
 
5509
  rm -rf conftest* conftst*
 
5510
 
 
5511
  # Do not use the global_symbol_pipe unless it works.
 
5512
  if test "$pipe_works" = yes; then
 
5513
    break
 
5514
  else
 
5515
    lt_cv_sys_global_symbol_pipe=
 
5516
  fi
 
5517
done
 
5518
 
 
5519
fi
 
5520
 
 
5521
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5522
  lt_cv_sys_global_symbol_to_cdecl=
 
5523
fi
 
5524
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5525
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
5526
$as_echo "failed" >&6; }
 
5527
else
 
5528
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
5529
$as_echo "ok" >&6; }
 
5530
fi
 
5531
 
 
5532
 
 
5533
 
 
5534
 
 
5535
 
 
5536
 
 
5537
 
 
5538
 
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
 
 
5545
 
 
5546
 
 
5547
 
 
5548
 
 
5549
 
 
5550
 
 
5551
 
 
5552
 
 
5553
 
 
5554
# Check whether --enable-libtool-lock was given.
 
5555
if test "${enable_libtool_lock+set}" = set; then
 
5556
  enableval=$enable_libtool_lock;
 
5557
fi
 
5558
 
 
5559
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5560
 
 
5561
# Some flags need to be propagated to the compiler or linker for good
 
5562
# libtool support.
 
5563
case $host in
 
5564
ia64-*-hpux*)
 
5565
  # Find out which ABI we are using.
 
5566
  echo 'int i;' > conftest.$ac_ext
 
5567
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5568
  (eval $ac_compile) 2>&5
 
5569
  ac_status=$?
 
5570
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5571
  (exit $ac_status); }; then
 
5572
    case `/usr/bin/file conftest.$ac_objext` in
 
5573
      *ELF-32*)
 
5574
        HPUX_IA64_MODE="32"
 
5575
        ;;
 
5576
      *ELF-64*)
 
5577
        HPUX_IA64_MODE="64"
 
5578
        ;;
 
5579
    esac
 
5580
  fi
 
5581
  rm -rf conftest*
 
5582
  ;;
 
5583
*-*-irix6*)
 
5584
  # Find out which ABI we are using.
 
5585
  echo '#line 5585 "configure"' > conftest.$ac_ext
 
5586
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5587
  (eval $ac_compile) 2>&5
 
5588
  ac_status=$?
 
5589
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5590
  (exit $ac_status); }; then
 
5591
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5592
      case `/usr/bin/file conftest.$ac_objext` in
 
5593
        *32-bit*)
 
5594
          LD="${LD-ld} -melf32bsmip"
 
5595
          ;;
 
5596
        *N32*)
 
5597
          LD="${LD-ld} -melf32bmipn32"
 
5598
          ;;
 
5599
        *64-bit*)
 
5600
          LD="${LD-ld} -melf64bmip"
 
5601
        ;;
 
5602
      esac
 
5603
    else
 
5604
      case `/usr/bin/file conftest.$ac_objext` in
 
5605
        *32-bit*)
 
5606
          LD="${LD-ld} -32"
 
5607
          ;;
 
5608
        *N32*)
 
5609
          LD="${LD-ld} -n32"
 
5610
          ;;
 
5611
        *64-bit*)
 
5612
          LD="${LD-ld} -64"
 
5613
          ;;
 
5614
      esac
 
5615
    fi
 
5616
  fi
 
5617
  rm -rf conftest*
 
5618
  ;;
 
5619
 
 
5620
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5621
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5622
  # Find out which ABI we are using.
 
5623
  echo 'int i;' > conftest.$ac_ext
 
5624
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5625
  (eval $ac_compile) 2>&5
 
5626
  ac_status=$?
 
5627
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5628
  (exit $ac_status); }; then
 
5629
    case `/usr/bin/file conftest.o` in
 
5630
      *32-bit*)
 
5631
        case $host in
 
5632
          x86_64-*kfreebsd*-gnu)
 
5633
            LD="${LD-ld} -m elf_i386_fbsd"
 
5634
            ;;
 
5635
          x86_64-*linux*)
 
5636
            LD="${LD-ld} -m elf_i386"
 
5637
            ;;
 
5638
          ppc64-*linux*|powerpc64-*linux*)
 
5639
            LD="${LD-ld} -m elf32ppclinux"
 
5640
            ;;
 
5641
          s390x-*linux*)
 
5642
            LD="${LD-ld} -m elf_s390"
 
5643
            ;;
 
5644
          sparc64-*linux*)
 
5645
            LD="${LD-ld} -m elf32_sparc"
 
5646
            ;;
 
5647
        esac
 
5648
        ;;
 
5649
      *64-bit*)
 
5650
        case $host in
 
5651
          x86_64-*kfreebsd*-gnu)
 
5652
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5653
            ;;
 
5654
          x86_64-*linux*)
 
5655
            LD="${LD-ld} -m elf_x86_64"
 
5656
            ;;
 
5657
          ppc*-*linux*|powerpc*-*linux*)
 
5658
            LD="${LD-ld} -m elf64ppc"
 
5659
            ;;
 
5660
          s390*-*linux*|s390*-*tpf*)
 
5661
            LD="${LD-ld} -m elf64_s390"
 
5662
            ;;
 
5663
          sparc*-*linux*)
 
5664
            LD="${LD-ld} -m elf64_sparc"
 
5665
            ;;
 
5666
        esac
 
5667
        ;;
 
5668
    esac
 
5669
  fi
 
5670
  rm -rf conftest*
 
5671
  ;;
 
5672
 
 
5673
*-*-sco3.2v5*)
 
5674
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5675
  SAVE_CFLAGS="$CFLAGS"
 
5676
  CFLAGS="$CFLAGS -belf"
 
5677
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5678
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5679
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5680
  $as_echo_n "(cached) " >&6
 
5681
else
 
5682
  ac_ext=c
 
5683
ac_cpp='$CPP $CPPFLAGS'
 
5684
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5685
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5686
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5687
 
 
5688
     cat >conftest.$ac_ext <<_ACEOF
 
5689
/* confdefs.h.  */
 
5690
_ACEOF
 
5691
cat confdefs.h >>conftest.$ac_ext
 
5692
cat >>conftest.$ac_ext <<_ACEOF
 
5693
/* end confdefs.h.  */
 
5694
 
 
5695
int
 
5696
main ()
 
5697
{
 
5698
 
 
5699
  ;
 
5700
  return 0;
 
5701
}
 
5702
_ACEOF
 
5703
rm -f conftest.$ac_objext conftest$ac_exeext
 
5704
if { (ac_try="$ac_link"
 
5705
case "(($ac_try" in
 
5706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5707
  *) ac_try_echo=$ac_try;;
 
5708
esac
 
5709
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5710
$as_echo "$ac_try_echo") >&5
 
5711
  (eval "$ac_link") 2>conftest.er1
 
5712
  ac_status=$?
 
5713
  grep -v '^ *+' conftest.er1 >conftest.err
 
5714
  rm -f conftest.er1
 
5715
  cat conftest.err >&5
 
5716
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5717
  (exit $ac_status); } && {
 
5718
         test -z "$ac_c_werror_flag" ||
 
5719
         test ! -s conftest.err
 
5720
       } && test -s conftest$ac_exeext && {
 
5721
         test "$cross_compiling" = yes ||
 
5722
         $as_test_x conftest$ac_exeext
 
5723
       }; then
 
5724
  lt_cv_cc_needs_belf=yes
 
5725
else
 
5726
  $as_echo "$as_me: failed program was:" >&5
 
5727
sed 's/^/| /' conftest.$ac_ext >&5
 
5728
 
 
5729
        lt_cv_cc_needs_belf=no
 
5730
fi
 
5731
 
 
5732
rm -rf conftest.dSYM
 
5733
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5734
      conftest$ac_exeext conftest.$ac_ext
 
5735
     ac_ext=c
 
5736
ac_cpp='$CPP $CPPFLAGS'
 
5737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5740
 
 
5741
fi
 
5742
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5743
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5744
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5745
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5746
    CFLAGS="$SAVE_CFLAGS"
 
5747
  fi
 
5748
  ;;
 
5749
sparc*-*solaris*)
 
5750
  # Find out which ABI we are using.
 
5751
  echo 'int i;' > conftest.$ac_ext
 
5752
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5753
  (eval $ac_compile) 2>&5
 
5754
  ac_status=$?
 
5755
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5756
  (exit $ac_status); }; then
 
5757
    case `/usr/bin/file conftest.o` in
 
5758
    *64-bit*)
 
5759
      case $lt_cv_prog_gnu_ld in
 
5760
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5761
      *)
 
5762
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5763
          LD="${LD-ld} -64"
 
5764
        fi
 
5765
        ;;
 
5766
      esac
 
5767
      ;;
 
5768
    esac
 
5769
  fi
 
5770
  rm -rf conftest*
 
5771
  ;;
 
5772
esac
 
5773
 
 
5774
need_locks="$enable_libtool_lock"
 
5775
 
 
5776
 
 
5777
  case $host_os in
 
5778
    rhapsody* | darwin*)
 
5779
    if test -n "$ac_tool_prefix"; then
 
5780
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
5781
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
5782
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5783
$as_echo_n "checking for $ac_word... " >&6; }
 
5784
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
5785
  $as_echo_n "(cached) " >&6
 
5786
else
 
5787
  if test -n "$DSYMUTIL"; then
 
5788
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
5789
else
 
5790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5791
for as_dir in $PATH
 
5792
do
 
5793
  IFS=$as_save_IFS
 
5794
  test -z "$as_dir" && as_dir=.
 
5795
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5796
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5797
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
5798
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5799
    break 2
 
5800
  fi
 
5801
done
 
5802
done
 
5803
IFS=$as_save_IFS
 
5804
 
 
5805
fi
 
5806
fi
 
5807
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
5808
if test -n "$DSYMUTIL"; then
 
5809
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
5810
$as_echo "$DSYMUTIL" >&6; }
 
5811
else
 
5812
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5813
$as_echo "no" >&6; }
 
5814
fi
 
5815
 
 
5816
 
 
5817
fi
 
5818
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
5819
  ac_ct_DSYMUTIL=$DSYMUTIL
 
5820
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
5821
set dummy dsymutil; ac_word=$2
 
5822
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5823
$as_echo_n "checking for $ac_word... " >&6; }
 
5824
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
5825
  $as_echo_n "(cached) " >&6
 
5826
else
 
5827
  if test -n "$ac_ct_DSYMUTIL"; then
 
5828
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
5829
else
 
5830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5831
for as_dir in $PATH
 
5832
do
 
5833
  IFS=$as_save_IFS
 
5834
  test -z "$as_dir" && as_dir=.
 
5835
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5836
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5837
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
5838
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5839
    break 2
 
5840
  fi
 
5841
done
 
5842
done
 
5843
IFS=$as_save_IFS
 
5844
 
 
5845
fi
 
5846
fi
 
5847
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
5848
if test -n "$ac_ct_DSYMUTIL"; then
 
5849
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
5850
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
5851
else
 
5852
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5853
$as_echo "no" >&6; }
 
5854
fi
 
5855
 
 
5856
  if test "x$ac_ct_DSYMUTIL" = x; then
 
5857
    DSYMUTIL=":"
 
5858
  else
 
5859
    case $cross_compiling:$ac_tool_warned in
 
5860
yes:)
 
5861
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5862
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5863
ac_tool_warned=yes ;;
 
5864
esac
 
5865
    DSYMUTIL=$ac_ct_DSYMUTIL
 
5866
  fi
 
5867
else
 
5868
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
5869
fi
 
5870
 
 
5871
    if test -n "$ac_tool_prefix"; then
 
5872
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
5873
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
5874
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5875
$as_echo_n "checking for $ac_word... " >&6; }
 
5876
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
5877
  $as_echo_n "(cached) " >&6
 
5878
else
 
5879
  if test -n "$NMEDIT"; then
 
5880
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
5881
else
 
5882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5883
for as_dir in $PATH
 
5884
do
 
5885
  IFS=$as_save_IFS
 
5886
  test -z "$as_dir" && as_dir=.
 
5887
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5888
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5889
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
5890
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5891
    break 2
 
5892
  fi
 
5893
done
 
5894
done
 
5895
IFS=$as_save_IFS
 
5896
 
 
5897
fi
 
5898
fi
 
5899
NMEDIT=$ac_cv_prog_NMEDIT
 
5900
if test -n "$NMEDIT"; then
 
5901
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
5902
$as_echo "$NMEDIT" >&6; }
 
5903
else
 
5904
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5905
$as_echo "no" >&6; }
 
5906
fi
 
5907
 
 
5908
 
 
5909
fi
 
5910
if test -z "$ac_cv_prog_NMEDIT"; then
 
5911
  ac_ct_NMEDIT=$NMEDIT
 
5912
  # Extract the first word of "nmedit", so it can be a program name with args.
 
5913
set dummy nmedit; ac_word=$2
 
5914
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5915
$as_echo_n "checking for $ac_word... " >&6; }
 
5916
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
5917
  $as_echo_n "(cached) " >&6
 
5918
else
 
5919
  if test -n "$ac_ct_NMEDIT"; then
 
5920
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
5921
else
 
5922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5923
for as_dir in $PATH
 
5924
do
 
5925
  IFS=$as_save_IFS
 
5926
  test -z "$as_dir" && as_dir=.
 
5927
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5928
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5929
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
5930
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5931
    break 2
 
5932
  fi
 
5933
done
 
5934
done
 
5935
IFS=$as_save_IFS
 
5936
 
 
5937
fi
 
5938
fi
 
5939
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
5940
if test -n "$ac_ct_NMEDIT"; then
 
5941
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
5942
$as_echo "$ac_ct_NMEDIT" >&6; }
 
5943
else
 
5944
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5945
$as_echo "no" >&6; }
 
5946
fi
 
5947
 
 
5948
  if test "x$ac_ct_NMEDIT" = x; then
 
5949
    NMEDIT=":"
 
5950
  else
 
5951
    case $cross_compiling:$ac_tool_warned in
 
5952
yes:)
 
5953
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5954
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5955
ac_tool_warned=yes ;;
 
5956
esac
 
5957
    NMEDIT=$ac_ct_NMEDIT
 
5958
  fi
 
5959
else
 
5960
  NMEDIT="$ac_cv_prog_NMEDIT"
 
5961
fi
 
5962
 
 
5963
    if test -n "$ac_tool_prefix"; then
 
5964
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
5965
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
5966
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5967
$as_echo_n "checking for $ac_word... " >&6; }
 
5968
if test "${ac_cv_prog_LIPO+set}" = set; then
 
5969
  $as_echo_n "(cached) " >&6
 
5970
else
 
5971
  if test -n "$LIPO"; then
 
5972
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
5973
else
 
5974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5975
for as_dir in $PATH
 
5976
do
 
5977
  IFS=$as_save_IFS
 
5978
  test -z "$as_dir" && as_dir=.
 
5979
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5980
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5981
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
5982
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5983
    break 2
 
5984
  fi
 
5985
done
 
5986
done
 
5987
IFS=$as_save_IFS
 
5988
 
 
5989
fi
 
5990
fi
 
5991
LIPO=$ac_cv_prog_LIPO
 
5992
if test -n "$LIPO"; then
 
5993
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
5994
$as_echo "$LIPO" >&6; }
 
5995
else
 
5996
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5997
$as_echo "no" >&6; }
 
5998
fi
 
5999
 
 
6000
 
 
6001
fi
 
6002
if test -z "$ac_cv_prog_LIPO"; then
 
6003
  ac_ct_LIPO=$LIPO
 
6004
  # Extract the first word of "lipo", so it can be a program name with args.
 
6005
set dummy lipo; ac_word=$2
 
6006
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6007
$as_echo_n "checking for $ac_word... " >&6; }
 
6008
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6009
  $as_echo_n "(cached) " >&6
 
6010
else
 
6011
  if test -n "$ac_ct_LIPO"; then
 
6012
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6013
else
 
6014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6015
for as_dir in $PATH
 
6016
do
 
6017
  IFS=$as_save_IFS
 
6018
  test -z "$as_dir" && as_dir=.
 
6019
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6020
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6021
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6022
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6023
    break 2
 
6024
  fi
 
6025
done
 
6026
done
 
6027
IFS=$as_save_IFS
 
6028
 
 
6029
fi
 
6030
fi
 
6031
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6032
if test -n "$ac_ct_LIPO"; then
 
6033
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6034
$as_echo "$ac_ct_LIPO" >&6; }
 
6035
else
 
6036
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6037
$as_echo "no" >&6; }
 
6038
fi
 
6039
 
 
6040
  if test "x$ac_ct_LIPO" = x; then
 
6041
    LIPO=":"
 
6042
  else
 
6043
    case $cross_compiling:$ac_tool_warned in
 
6044
yes:)
 
6045
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6047
ac_tool_warned=yes ;;
 
6048
esac
 
6049
    LIPO=$ac_ct_LIPO
 
6050
  fi
 
6051
else
 
6052
  LIPO="$ac_cv_prog_LIPO"
 
6053
fi
 
6054
 
 
6055
    if test -n "$ac_tool_prefix"; then
 
6056
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6057
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6059
$as_echo_n "checking for $ac_word... " >&6; }
 
6060
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6061
  $as_echo_n "(cached) " >&6
 
6062
else
 
6063
  if test -n "$OTOOL"; then
 
6064
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6065
else
 
6066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6067
for as_dir in $PATH
 
6068
do
 
6069
  IFS=$as_save_IFS
 
6070
  test -z "$as_dir" && as_dir=.
 
6071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6072
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6073
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6074
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6075
    break 2
 
6076
  fi
 
6077
done
 
6078
done
 
6079
IFS=$as_save_IFS
 
6080
 
 
6081
fi
 
6082
fi
 
6083
OTOOL=$ac_cv_prog_OTOOL
 
6084
if test -n "$OTOOL"; then
 
6085
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6086
$as_echo "$OTOOL" >&6; }
 
6087
else
 
6088
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6089
$as_echo "no" >&6; }
 
6090
fi
 
6091
 
 
6092
 
 
6093
fi
 
6094
if test -z "$ac_cv_prog_OTOOL"; then
 
6095
  ac_ct_OTOOL=$OTOOL
 
6096
  # Extract the first word of "otool", so it can be a program name with args.
 
6097
set dummy otool; ac_word=$2
 
6098
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6099
$as_echo_n "checking for $ac_word... " >&6; }
 
6100
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6101
  $as_echo_n "(cached) " >&6
 
6102
else
 
6103
  if test -n "$ac_ct_OTOOL"; then
 
6104
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6105
else
 
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6107
for as_dir in $PATH
 
6108
do
 
6109
  IFS=$as_save_IFS
 
6110
  test -z "$as_dir" && as_dir=.
 
6111
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6112
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6113
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6114
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6115
    break 2
 
6116
  fi
 
6117
done
 
6118
done
 
6119
IFS=$as_save_IFS
 
6120
 
 
6121
fi
 
6122
fi
 
6123
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6124
if test -n "$ac_ct_OTOOL"; then
 
6125
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6126
$as_echo "$ac_ct_OTOOL" >&6; }
 
6127
else
 
6128
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6129
$as_echo "no" >&6; }
 
6130
fi
 
6131
 
 
6132
  if test "x$ac_ct_OTOOL" = x; then
 
6133
    OTOOL=":"
 
6134
  else
 
6135
    case $cross_compiling:$ac_tool_warned in
 
6136
yes:)
 
6137
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6138
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6139
ac_tool_warned=yes ;;
 
6140
esac
 
6141
    OTOOL=$ac_ct_OTOOL
 
6142
  fi
 
6143
else
 
6144
  OTOOL="$ac_cv_prog_OTOOL"
 
6145
fi
 
6146
 
 
6147
    if test -n "$ac_tool_prefix"; then
 
6148
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6149
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6150
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6151
$as_echo_n "checking for $ac_word... " >&6; }
 
6152
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6153
  $as_echo_n "(cached) " >&6
 
6154
else
 
6155
  if test -n "$OTOOL64"; then
 
6156
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6157
else
 
6158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6159
for as_dir in $PATH
 
6160
do
 
6161
  IFS=$as_save_IFS
 
6162
  test -z "$as_dir" && as_dir=.
 
6163
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6165
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6166
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6167
    break 2
 
6168
  fi
 
6169
done
 
6170
done
 
6171
IFS=$as_save_IFS
 
6172
 
 
6173
fi
 
6174
fi
 
6175
OTOOL64=$ac_cv_prog_OTOOL64
 
6176
if test -n "$OTOOL64"; then
 
6177
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6178
$as_echo "$OTOOL64" >&6; }
 
6179
else
 
6180
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6181
$as_echo "no" >&6; }
 
6182
fi
 
6183
 
 
6184
 
 
6185
fi
 
6186
if test -z "$ac_cv_prog_OTOOL64"; then
 
6187
  ac_ct_OTOOL64=$OTOOL64
 
6188
  # Extract the first word of "otool64", so it can be a program name with args.
 
6189
set dummy otool64; ac_word=$2
 
6190
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6191
$as_echo_n "checking for $ac_word... " >&6; }
 
6192
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6193
  $as_echo_n "(cached) " >&6
 
6194
else
 
6195
  if test -n "$ac_ct_OTOOL64"; then
 
6196
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6197
else
 
6198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6199
for as_dir in $PATH
 
6200
do
 
6201
  IFS=$as_save_IFS
 
6202
  test -z "$as_dir" && as_dir=.
 
6203
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6204
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6205
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6206
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6207
    break 2
 
6208
  fi
 
6209
done
 
6210
done
 
6211
IFS=$as_save_IFS
 
6212
 
 
6213
fi
 
6214
fi
 
6215
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6216
if test -n "$ac_ct_OTOOL64"; then
 
6217
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6218
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6219
else
 
6220
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6221
$as_echo "no" >&6; }
 
6222
fi
 
6223
 
 
6224
  if test "x$ac_ct_OTOOL64" = x; then
 
6225
    OTOOL64=":"
 
6226
  else
 
6227
    case $cross_compiling:$ac_tool_warned in
 
6228
yes:)
 
6229
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6230
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6231
ac_tool_warned=yes ;;
 
6232
esac
 
6233
    OTOOL64=$ac_ct_OTOOL64
 
6234
  fi
 
6235
else
 
6236
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6237
fi
 
6238
 
 
6239
 
 
6240
 
 
6241
 
 
6242
 
 
6243
 
 
6244
 
 
6245
 
 
6246
 
 
6247
 
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
 
 
6254
 
 
6255
 
 
6256
 
 
6257
 
 
6258
 
 
6259
 
 
6260
 
 
6261
 
 
6262
 
 
6263
 
 
6264
 
 
6265
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
6266
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6267
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
6268
  $as_echo_n "(cached) " >&6
 
6269
else
 
6270
  lt_cv_apple_cc_single_mod=no
 
6271
      if test -z "${LT_MULTI_MODULE}"; then
 
6272
        # By default we will add the -single_module flag. You can override
 
6273
        # by either setting the environment variable LT_MULTI_MODULE
 
6274
        # non-empty at configure time, or by adding -multi_module to the
 
6275
        # link flags.
 
6276
        rm -rf libconftest.dylib*
 
6277
        echo "int foo(void){return 1;}" > conftest.c
 
6278
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6279
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6280
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6281
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6282
        _lt_result=$?
 
6283
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6284
          lt_cv_apple_cc_single_mod=yes
 
6285
        else
 
6286
          cat conftest.err >&5
 
6287
        fi
 
6288
        rm -rf libconftest.dylib*
 
6289
        rm -f conftest.*
 
6290
      fi
 
6291
fi
 
6292
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
6293
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6294
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
6295
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6296
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
6297
  $as_echo_n "(cached) " >&6
 
6298
else
 
6299
  lt_cv_ld_exported_symbols_list=no
 
6300
      save_LDFLAGS=$LDFLAGS
 
6301
      echo "_main" > conftest.sym
 
6302
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6303
      cat >conftest.$ac_ext <<_ACEOF
 
6304
/* confdefs.h.  */
 
6305
_ACEOF
 
6306
cat confdefs.h >>conftest.$ac_ext
 
6307
cat >>conftest.$ac_ext <<_ACEOF
 
6308
/* end confdefs.h.  */
 
6309
 
 
6310
int
 
6311
main ()
 
6312
{
 
6313
 
 
6314
  ;
 
6315
  return 0;
 
6316
}
 
6317
_ACEOF
 
6318
rm -f conftest.$ac_objext conftest$ac_exeext
 
6319
if { (ac_try="$ac_link"
 
6320
case "(($ac_try" in
 
6321
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6322
  *) ac_try_echo=$ac_try;;
 
6323
esac
 
6324
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6325
$as_echo "$ac_try_echo") >&5
 
6326
  (eval "$ac_link") 2>conftest.er1
 
6327
  ac_status=$?
 
6328
  grep -v '^ *+' conftest.er1 >conftest.err
 
6329
  rm -f conftest.er1
 
6330
  cat conftest.err >&5
 
6331
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6332
  (exit $ac_status); } && {
 
6333
         test -z "$ac_c_werror_flag" ||
 
6334
         test ! -s conftest.err
 
6335
       } && test -s conftest$ac_exeext && {
 
6336
         test "$cross_compiling" = yes ||
 
6337
         $as_test_x conftest$ac_exeext
 
6338
       }; then
 
6339
  lt_cv_ld_exported_symbols_list=yes
 
6340
else
 
6341
  $as_echo "$as_me: failed program was:" >&5
 
6342
sed 's/^/| /' conftest.$ac_ext >&5
 
6343
 
 
6344
        lt_cv_ld_exported_symbols_list=no
 
6345
fi
 
6346
 
 
6347
rm -rf conftest.dSYM
 
6348
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6349
      conftest$ac_exeext conftest.$ac_ext
 
6350
        LDFLAGS="$save_LDFLAGS"
 
6351
 
 
6352
fi
 
6353
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
6354
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6355
    case $host_os in
 
6356
    rhapsody* | darwin1.[012])
 
6357
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6358
    darwin1.*)
 
6359
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6360
    darwin*) # darwin 5.x on
 
6361
      # if running on 10.5 or later, the deployment target defaults
 
6362
      # to the OS version, if on x86, and 10.4, the deployment
 
6363
      # target defaults to 10.4. Don't you love it?
 
6364
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6365
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6366
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6367
        10.[012]*)
 
6368
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6369
        10.*)
 
6370
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6371
      esac
 
6372
    ;;
 
6373
  esac
 
6374
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6375
      _lt_dar_single_mod='$single_module'
 
6376
    fi
 
6377
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6378
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6379
    else
 
6380
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6381
    fi
 
6382
    if test "$DSYMUTIL" != ":"; then
 
6383
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6384
    else
 
6385
      _lt_dsymutil=
 
6386
    fi
 
6387
    ;;
 
6388
  esac
 
6389
 
 
6390
ac_ext=c
 
6391
ac_cpp='$CPP $CPPFLAGS'
 
6392
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6393
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6394
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6395
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6396
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6397
# On Suns, sometimes $CPP names a directory.
 
6398
if test -n "$CPP" && test -d "$CPP"; then
 
6399
  CPP=
 
6400
fi
 
6401
if test -z "$CPP"; then
 
6402
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6403
  $as_echo_n "(cached) " >&6
 
6404
else
 
6405
      # Double quotes because CPP needs to be expanded
 
6406
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6407
    do
 
6408
      ac_preproc_ok=false
 
6409
for ac_c_preproc_warn_flag in '' yes
 
6410
do
 
6411
  # Use a header file that comes with gcc, so configuring glibc
 
6412
  # with a fresh cross-compiler works.
 
6413
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6414
  # <limits.h> exists even on freestanding compilers.
 
6415
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6416
  # not just through cpp. "Syntax error" is here to catch this case.
 
6417
  cat >conftest.$ac_ext <<_ACEOF
 
6418
/* confdefs.h.  */
 
6419
_ACEOF
 
6420
cat confdefs.h >>conftest.$ac_ext
 
6421
cat >>conftest.$ac_ext <<_ACEOF
 
6422
/* end confdefs.h.  */
 
6423
#ifdef __STDC__
 
6424
# include <limits.h>
 
6425
#else
 
6426
# include <assert.h>
 
6427
#endif
 
6428
                     Syntax error
 
6429
_ACEOF
 
6430
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6431
case "(($ac_try" in
 
6432
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6433
  *) ac_try_echo=$ac_try;;
 
6434
esac
 
6435
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6436
$as_echo "$ac_try_echo") >&5
 
6437
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6438
  ac_status=$?
 
6439
  grep -v '^ *+' conftest.er1 >conftest.err
 
6440
  rm -f conftest.er1
 
6441
  cat conftest.err >&5
 
6442
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6443
  (exit $ac_status); } >/dev/null && {
 
6444
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6445
         test ! -s conftest.err
 
6446
       }; then
 
6447
  :
 
6448
else
 
6449
  $as_echo "$as_me: failed program was:" >&5
 
6450
sed 's/^/| /' conftest.$ac_ext >&5
 
6451
 
 
6452
  # Broken: fails on valid input.
 
6453
continue
 
6454
fi
 
6455
 
 
6456
rm -f conftest.err conftest.$ac_ext
 
6457
 
 
6458
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6459
  # can be detected and how.
 
6460
  cat >conftest.$ac_ext <<_ACEOF
 
6461
/* confdefs.h.  */
 
6462
_ACEOF
 
6463
cat confdefs.h >>conftest.$ac_ext
 
6464
cat >>conftest.$ac_ext <<_ACEOF
 
6465
/* end confdefs.h.  */
 
6466
#include <ac_nonexistent.h>
 
6467
_ACEOF
 
6468
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6469
case "(($ac_try" in
 
6470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6471
  *) ac_try_echo=$ac_try;;
 
6472
esac
 
6473
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6474
$as_echo "$ac_try_echo") >&5
 
6475
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6476
  ac_status=$?
 
6477
  grep -v '^ *+' conftest.er1 >conftest.err
 
6478
  rm -f conftest.er1
 
6479
  cat conftest.err >&5
 
6480
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6481
  (exit $ac_status); } >/dev/null && {
 
6482
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6483
         test ! -s conftest.err
 
6484
       }; then
 
6485
  # Broken: success on invalid input.
 
6486
continue
 
6487
else
 
6488
  $as_echo "$as_me: failed program was:" >&5
 
6489
sed 's/^/| /' conftest.$ac_ext >&5
 
6490
 
 
6491
  # Passes both tests.
 
6492
ac_preproc_ok=:
 
6493
break
 
6494
fi
 
6495
 
 
6496
rm -f conftest.err conftest.$ac_ext
 
6497
 
 
6498
done
 
6499
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6500
rm -f conftest.err conftest.$ac_ext
 
6501
if $ac_preproc_ok; then
 
6502
  break
 
6503
fi
 
6504
 
 
6505
    done
 
6506
    ac_cv_prog_CPP=$CPP
 
6507
 
 
6508
fi
 
6509
  CPP=$ac_cv_prog_CPP
 
6510
else
 
6511
  ac_cv_prog_CPP=$CPP
 
6512
fi
 
6513
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
6514
$as_echo "$CPP" >&6; }
 
6515
ac_preproc_ok=false
 
6516
for ac_c_preproc_warn_flag in '' yes
 
6517
do
 
6518
  # Use a header file that comes with gcc, so configuring glibc
 
6519
  # with a fresh cross-compiler works.
 
6520
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6521
  # <limits.h> exists even on freestanding compilers.
 
6522
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6523
  # not just through cpp. "Syntax error" is here to catch this case.
 
6524
  cat >conftest.$ac_ext <<_ACEOF
 
6525
/* confdefs.h.  */
 
6526
_ACEOF
 
6527
cat confdefs.h >>conftest.$ac_ext
 
6528
cat >>conftest.$ac_ext <<_ACEOF
 
6529
/* end confdefs.h.  */
 
6530
#ifdef __STDC__
 
6531
# include <limits.h>
 
6532
#else
 
6533
# include <assert.h>
 
6534
#endif
 
6535
                     Syntax error
 
6536
_ACEOF
 
6537
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6538
case "(($ac_try" in
 
6539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6540
  *) ac_try_echo=$ac_try;;
 
6541
esac
 
6542
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6543
$as_echo "$ac_try_echo") >&5
 
6544
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6545
  ac_status=$?
 
6546
  grep -v '^ *+' conftest.er1 >conftest.err
 
6547
  rm -f conftest.er1
 
6548
  cat conftest.err >&5
 
6549
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6550
  (exit $ac_status); } >/dev/null && {
 
6551
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6552
         test ! -s conftest.err
 
6553
       }; then
 
6554
  :
 
6555
else
 
6556
  $as_echo "$as_me: failed program was:" >&5
 
6557
sed 's/^/| /' conftest.$ac_ext >&5
 
6558
 
 
6559
  # Broken: fails on valid input.
 
6560
continue
 
6561
fi
 
6562
 
 
6563
rm -f conftest.err conftest.$ac_ext
 
6564
 
 
6565
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6566
  # can be detected and how.
 
6567
  cat >conftest.$ac_ext <<_ACEOF
 
6568
/* confdefs.h.  */
 
6569
_ACEOF
 
6570
cat confdefs.h >>conftest.$ac_ext
 
6571
cat >>conftest.$ac_ext <<_ACEOF
 
6572
/* end confdefs.h.  */
 
6573
#include <ac_nonexistent.h>
 
6574
_ACEOF
 
6575
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6576
case "(($ac_try" in
 
6577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6578
  *) ac_try_echo=$ac_try;;
 
6579
esac
 
6580
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6581
$as_echo "$ac_try_echo") >&5
 
6582
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6583
  ac_status=$?
 
6584
  grep -v '^ *+' conftest.er1 >conftest.err
 
6585
  rm -f conftest.er1
 
6586
  cat conftest.err >&5
 
6587
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6588
  (exit $ac_status); } >/dev/null && {
 
6589
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6590
         test ! -s conftest.err
 
6591
       }; then
 
6592
  # Broken: success on invalid input.
 
6593
continue
 
6594
else
 
6595
  $as_echo "$as_me: failed program was:" >&5
 
6596
sed 's/^/| /' conftest.$ac_ext >&5
 
6597
 
 
6598
  # Passes both tests.
 
6599
ac_preproc_ok=:
 
6600
break
 
6601
fi
 
6602
 
 
6603
rm -f conftest.err conftest.$ac_ext
 
6604
 
 
6605
done
 
6606
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6607
rm -f conftest.err conftest.$ac_ext
 
6608
if $ac_preproc_ok; then
 
6609
  :
 
6610
else
 
6611
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6612
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6613
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
6614
See \`config.log' for more details." >&5
 
6615
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
6616
See \`config.log' for more details." >&2;}
 
6617
   { (exit 1); exit 1; }; }; }
 
6618
fi
 
6619
 
 
6620
ac_ext=c
 
6621
ac_cpp='$CPP $CPPFLAGS'
 
6622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6625
 
 
6626
 
 
6627
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6628
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6629
if test "${ac_cv_header_stdc+set}" = set; then
 
6630
  $as_echo_n "(cached) " >&6
 
6631
else
 
6632
  cat >conftest.$ac_ext <<_ACEOF
 
6633
/* confdefs.h.  */
 
6634
_ACEOF
 
6635
cat confdefs.h >>conftest.$ac_ext
 
6636
cat >>conftest.$ac_ext <<_ACEOF
 
6637
/* end confdefs.h.  */
 
6638
#include <stdlib.h>
 
6639
#include <stdarg.h>
 
6640
#include <string.h>
 
6641
#include <float.h>
 
6642
 
 
6643
int
 
6644
main ()
 
6645
{
 
6646
 
 
6647
  ;
 
6648
  return 0;
 
6649
}
 
6650
_ACEOF
 
6651
rm -f conftest.$ac_objext
 
6652
if { (ac_try="$ac_compile"
 
6653
case "(($ac_try" in
 
6654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6655
  *) ac_try_echo=$ac_try;;
 
6656
esac
 
6657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6658
$as_echo "$ac_try_echo") >&5
 
6659
  (eval "$ac_compile") 2>conftest.er1
 
6660
  ac_status=$?
 
6661
  grep -v '^ *+' conftest.er1 >conftest.err
 
6662
  rm -f conftest.er1
 
6663
  cat conftest.err >&5
 
6664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6665
  (exit $ac_status); } && {
 
6666
         test -z "$ac_c_werror_flag" ||
 
6667
         test ! -s conftest.err
 
6668
       } && test -s conftest.$ac_objext; then
 
6669
  ac_cv_header_stdc=yes
 
6670
else
 
6671
  $as_echo "$as_me: failed program was:" >&5
 
6672
sed 's/^/| /' conftest.$ac_ext >&5
 
6673
 
 
6674
        ac_cv_header_stdc=no
 
6675
fi
 
6676
 
 
6677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6678
 
 
6679
if test $ac_cv_header_stdc = yes; then
 
6680
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6681
  cat >conftest.$ac_ext <<_ACEOF
 
6682
/* confdefs.h.  */
 
6683
_ACEOF
 
6684
cat confdefs.h >>conftest.$ac_ext
 
6685
cat >>conftest.$ac_ext <<_ACEOF
 
6686
/* end confdefs.h.  */
 
6687
#include <string.h>
 
6688
 
 
6689
_ACEOF
 
6690
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6691
  $EGREP "memchr" >/dev/null 2>&1; then
 
6692
  :
 
6693
else
 
6694
  ac_cv_header_stdc=no
 
6695
fi
 
6696
rm -f conftest*
 
6697
 
 
6698
fi
 
6699
 
 
6700
if test $ac_cv_header_stdc = yes; then
 
6701
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6702
  cat >conftest.$ac_ext <<_ACEOF
 
6703
/* confdefs.h.  */
 
6704
_ACEOF
 
6705
cat confdefs.h >>conftest.$ac_ext
 
6706
cat >>conftest.$ac_ext <<_ACEOF
 
6707
/* end confdefs.h.  */
 
6708
#include <stdlib.h>
 
6709
 
 
6710
_ACEOF
 
6711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6712
  $EGREP "free" >/dev/null 2>&1; then
 
6713
  :
 
6714
else
 
6715
  ac_cv_header_stdc=no
 
6716
fi
 
6717
rm -f conftest*
 
6718
 
 
6719
fi
 
6720
 
 
6721
if test $ac_cv_header_stdc = yes; then
 
6722
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6723
  if test "$cross_compiling" = yes; then
 
6724
  :
 
6725
else
 
6726
  cat >conftest.$ac_ext <<_ACEOF
 
6727
/* confdefs.h.  */
 
6728
_ACEOF
 
6729
cat confdefs.h >>conftest.$ac_ext
 
6730
cat >>conftest.$ac_ext <<_ACEOF
 
6731
/* end confdefs.h.  */
 
6732
#include <ctype.h>
 
6733
#include <stdlib.h>
 
6734
#if ((' ' & 0x0FF) == 0x020)
 
6735
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6736
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6737
#else
 
6738
# define ISLOWER(c) \
 
6739
                   (('a' <= (c) && (c) <= 'i') \
 
6740
                     || ('j' <= (c) && (c) <= 'r') \
 
6741
                     || ('s' <= (c) && (c) <= 'z'))
 
6742
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6743
#endif
 
6744
 
 
6745
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6746
int
 
6747
main ()
 
6748
{
 
6749
  int i;
 
6750
  for (i = 0; i < 256; i++)
 
6751
    if (XOR (islower (i), ISLOWER (i))
 
6752
        || toupper (i) != TOUPPER (i))
 
6753
      return 2;
 
6754
  return 0;
 
6755
}
 
6756
_ACEOF
 
6757
rm -f conftest$ac_exeext
 
6758
if { (ac_try="$ac_link"
 
6759
case "(($ac_try" in
 
6760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6761
  *) ac_try_echo=$ac_try;;
 
6762
esac
 
6763
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6764
$as_echo "$ac_try_echo") >&5
 
6765
  (eval "$ac_link") 2>&5
 
6766
  ac_status=$?
 
6767
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6768
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6769
  { (case "(($ac_try" in
 
6770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6771
  *) ac_try_echo=$ac_try;;
 
6772
esac
 
6773
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6774
$as_echo "$ac_try_echo") >&5
 
6775
  (eval "$ac_try") 2>&5
 
6776
  ac_status=$?
 
6777
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6778
  (exit $ac_status); }; }; then
 
6779
  :
 
6780
else
 
6781
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6782
$as_echo "$as_me: failed program was:" >&5
 
6783
sed 's/^/| /' conftest.$ac_ext >&5
 
6784
 
 
6785
( exit $ac_status )
 
6786
ac_cv_header_stdc=no
 
6787
fi
 
6788
rm -rf conftest.dSYM
 
6789
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6790
fi
 
6791
 
 
6792
 
 
6793
fi
 
6794
fi
 
6795
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6796
$as_echo "$ac_cv_header_stdc" >&6; }
 
6797
if test $ac_cv_header_stdc = yes; then
 
6798
 
 
6799
cat >>confdefs.h <<\_ACEOF
 
6800
#define STDC_HEADERS 1
 
6801
_ACEOF
 
6802
 
 
6803
fi
 
6804
 
 
6805
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6806
 
 
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
 
6815
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6816
                  inttypes.h stdint.h unistd.h
 
6817
do
 
6818
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6819
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6820
$as_echo_n "checking for $ac_header... " >&6; }
 
6821
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6822
  $as_echo_n "(cached) " >&6
 
6823
else
 
6824
  cat >conftest.$ac_ext <<_ACEOF
 
6825
/* confdefs.h.  */
 
6826
_ACEOF
 
6827
cat confdefs.h >>conftest.$ac_ext
 
6828
cat >>conftest.$ac_ext <<_ACEOF
 
6829
/* end confdefs.h.  */
 
6830
$ac_includes_default
 
6831
 
 
6832
#include <$ac_header>
 
6833
_ACEOF
 
6834
rm -f conftest.$ac_objext
 
6835
if { (ac_try="$ac_compile"
 
6836
case "(($ac_try" in
 
6837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6838
  *) ac_try_echo=$ac_try;;
 
6839
esac
 
6840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6841
$as_echo "$ac_try_echo") >&5
 
6842
  (eval "$ac_compile") 2>conftest.er1
 
6843
  ac_status=$?
 
6844
  grep -v '^ *+' conftest.er1 >conftest.err
 
6845
  rm -f conftest.er1
 
6846
  cat conftest.err >&5
 
6847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6848
  (exit $ac_status); } && {
 
6849
         test -z "$ac_c_werror_flag" ||
 
6850
         test ! -s conftest.err
 
6851
       } && test -s conftest.$ac_objext; then
 
6852
  eval "$as_ac_Header=yes"
 
6853
else
 
6854
  $as_echo "$as_me: failed program was:" >&5
 
6855
sed 's/^/| /' conftest.$ac_ext >&5
 
6856
 
 
6857
        eval "$as_ac_Header=no"
 
6858
fi
 
6859
 
 
6860
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6861
fi
 
6862
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6863
                 $as_echo "$as_val"'`
 
6864
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6865
$as_echo "$ac_res" >&6; }
 
6866
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6867
                 $as_echo "$as_val"'`
 
6868
   if test "x$as_val" = x""yes; then
 
6869
  cat >>confdefs.h <<_ACEOF
 
6870
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6871
_ACEOF
 
6872
 
 
6873
fi
 
6874
 
 
6875
done
 
6876
 
 
6877
 
 
6878
 
 
6879
for ac_header in dlfcn.h
 
6880
do
 
6881
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6882
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6883
$as_echo_n "checking for $ac_header... " >&6; }
 
6884
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6885
  $as_echo_n "(cached) " >&6
 
6886
else
 
6887
  cat >conftest.$ac_ext <<_ACEOF
 
6888
/* confdefs.h.  */
 
6889
_ACEOF
 
6890
cat confdefs.h >>conftest.$ac_ext
 
6891
cat >>conftest.$ac_ext <<_ACEOF
 
6892
/* end confdefs.h.  */
 
6893
$ac_includes_default
 
6894
 
 
6895
#include <$ac_header>
 
6896
_ACEOF
 
6897
rm -f conftest.$ac_objext
 
6898
if { (ac_try="$ac_compile"
 
6899
case "(($ac_try" in
 
6900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6901
  *) ac_try_echo=$ac_try;;
 
6902
esac
 
6903
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6904
$as_echo "$ac_try_echo") >&5
 
6905
  (eval "$ac_compile") 2>conftest.er1
 
6906
  ac_status=$?
 
6907
  grep -v '^ *+' conftest.er1 >conftest.err
 
6908
  rm -f conftest.er1
 
6909
  cat conftest.err >&5
 
6910
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6911
  (exit $ac_status); } && {
 
6912
         test -z "$ac_c_werror_flag" ||
 
6913
         test ! -s conftest.err
 
6914
       } && test -s conftest.$ac_objext; then
 
6915
  eval "$as_ac_Header=yes"
 
6916
else
 
6917
  $as_echo "$as_me: failed program was:" >&5
 
6918
sed 's/^/| /' conftest.$ac_ext >&5
 
6919
 
 
6920
        eval "$as_ac_Header=no"
 
6921
fi
 
6922
 
 
6923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6924
fi
 
6925
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6926
                 $as_echo "$as_val"'`
 
6927
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6928
$as_echo "$ac_res" >&6; }
 
6929
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6930
                 $as_echo "$as_val"'`
 
6931
   if test "x$as_val" = x""yes; then
 
6932
  cat >>confdefs.h <<_ACEOF
 
6933
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6934
_ACEOF
 
6935
 
 
6936
fi
 
6937
 
 
6938
done
 
6939
 
 
6940
 
 
6941
 
 
6942
# Set options
 
6943
 
 
6944
 
 
6945
 
 
6946
        enable_dlopen=no
 
6947
 
 
6948
 
 
6949
  enable_win32_dll=no
 
6950
 
 
6951
 
 
6952
            # Check whether --enable-shared was given.
 
6953
if test "${enable_shared+set}" = set; then
 
6954
  enableval=$enable_shared; p=${PACKAGE-default}
 
6955
    case $enableval in
 
6956
    yes) enable_shared=yes ;;
 
6957
    no) enable_shared=no ;;
 
6958
    *)
 
6959
      enable_shared=no
 
6960
      # Look at the argument we got.  We use all the common list separators.
 
6961
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6962
      for pkg in $enableval; do
 
6963
        IFS="$lt_save_ifs"
 
6964
        if test "X$pkg" = "X$p"; then
 
6965
          enable_shared=yes
 
6966
        fi
 
6967
      done
 
6968
      IFS="$lt_save_ifs"
 
6969
      ;;
 
6970
    esac
 
6971
else
 
6972
  enable_shared=yes
 
6973
fi
 
6974
 
 
6975
 
 
6976
 
 
6977
 
 
6978
 
 
6979
 
 
6980
 
 
6981
 
 
6982
 
 
6983
  # Check whether --enable-static was given.
 
6984
if test "${enable_static+set}" = set; then
 
6985
  enableval=$enable_static; p=${PACKAGE-default}
 
6986
    case $enableval in
 
6987
    yes) enable_static=yes ;;
 
6988
    no) enable_static=no ;;
 
6989
    *)
 
6990
     enable_static=no
 
6991
      # Look at the argument we got.  We use all the common list separators.
 
6992
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6993
      for pkg in $enableval; do
 
6994
        IFS="$lt_save_ifs"
 
6995
        if test "X$pkg" = "X$p"; then
 
6996
          enable_static=yes
 
6997
        fi
 
6998
      done
 
6999
      IFS="$lt_save_ifs"
 
7000
      ;;
 
7001
    esac
 
7002
else
 
7003
  enable_static=yes
 
7004
fi
 
7005
 
 
7006
 
 
7007
 
 
7008
 
 
7009
 
 
7010
 
 
7011
 
 
7012
 
 
7013
 
 
7014
 
 
7015
# Check whether --with-pic was given.
 
7016
if test "${with_pic+set}" = set; then
 
7017
  withval=$with_pic; pic_mode="$withval"
 
7018
else
 
7019
  pic_mode=default
 
7020
fi
 
7021
 
 
7022
 
 
7023
test -z "$pic_mode" && pic_mode=default
 
7024
 
 
7025
 
 
7026
 
 
7027
 
 
7028
 
 
7029
 
 
7030
 
 
7031
  # Check whether --enable-fast-install was given.
 
7032
if test "${enable_fast_install+set}" = set; then
 
7033
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7034
    case $enableval in
 
7035
    yes) enable_fast_install=yes ;;
 
7036
    no) enable_fast_install=no ;;
 
7037
    *)
 
7038
      enable_fast_install=no
 
7039
      # Look at the argument we got.  We use all the common list separators.
 
7040
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7041
      for pkg in $enableval; do
 
7042
        IFS="$lt_save_ifs"
 
7043
        if test "X$pkg" = "X$p"; then
 
7044
          enable_fast_install=yes
 
7045
        fi
 
7046
      done
 
7047
      IFS="$lt_save_ifs"
 
7048
      ;;
 
7049
    esac
 
7050
else
 
7051
  enable_fast_install=yes
 
7052
fi
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
 
7060
 
 
7061
 
 
7062
 
 
7063
 
 
7064
# This can be used to rebuild libtool when needed
 
7065
LIBTOOL_DEPS="$ltmain"
 
7066
 
 
7067
# Always use our own libtool.
 
7068
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7069
 
 
7070
 
 
7071
 
 
7072
 
 
7073
 
 
7074
 
 
7075
 
 
7076
 
 
7077
 
 
7078
 
 
7079
 
 
7080
 
 
7081
 
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
 
7088
 
 
7089
 
 
7090
 
 
7091
 
 
7092
 
 
7093
 
 
7094
test -z "$LN_S" && LN_S="ln -s"
 
7095
 
 
7096
 
 
7097
 
 
7098
 
 
7099
 
 
7100
 
 
7101
 
 
7102
 
 
7103
 
 
7104
 
 
7105
 
 
7106
 
 
7107
 
 
7108
 
 
7109
if test -n "${ZSH_VERSION+set}" ; then
 
7110
   setopt NO_GLOB_SUBST
 
7111
fi
 
7112
 
 
7113
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7114
$as_echo_n "checking for objdir... " >&6; }
 
7115
if test "${lt_cv_objdir+set}" = set; then
 
7116
  $as_echo_n "(cached) " >&6
 
7117
else
 
7118
  rm -f .libs 2>/dev/null
 
7119
mkdir .libs 2>/dev/null
 
7120
if test -d .libs; then
 
7121
  lt_cv_objdir=.libs
 
7122
else
 
7123
  # MS-DOS does not allow filenames that begin with a dot.
 
7124
  lt_cv_objdir=_libs
 
7125
fi
 
7126
rmdir .libs 2>/dev/null
 
7127
fi
 
7128
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7129
$as_echo "$lt_cv_objdir" >&6; }
 
7130
objdir=$lt_cv_objdir
 
7131
 
 
7132
 
 
7133
 
 
7134
 
 
7135
 
 
7136
cat >>confdefs.h <<_ACEOF
 
7137
#define LT_OBJDIR "$lt_cv_objdir/"
 
7138
_ACEOF
 
7139
 
 
7140
 
 
7141
 
 
7142
 
 
7143
 
 
7144
 
 
7145
 
 
7146
 
 
7147
 
 
7148
 
 
7149
 
 
7150
 
 
7151
 
 
7152
 
 
7153
 
 
7154
 
 
7155
 
 
7156
case $host_os in
 
7157
aix3*)
 
7158
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7159
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7160
  # vanish in a puff of smoke.
 
7161
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7162
    COLLECT_NAMES=
 
7163
    export COLLECT_NAMES
 
7164
  fi
 
7165
  ;;
 
7166
esac
 
7167
 
 
7168
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7169
# metacharacters that are still active within double-quoted strings.
 
7170
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7171
 
 
7172
# Same as above, but do not quote variable references.
 
7173
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7174
 
 
7175
# Sed substitution to delay expansion of an escaped shell variable in a
 
7176
# double_quote_subst'ed string.
 
7177
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7178
 
 
7179
# Sed substitution to delay expansion of an escaped single quote.
 
7180
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7181
 
 
7182
# Sed substitution to avoid accidental globbing in evaled expressions
 
7183
no_glob_subst='s/\*/\\\*/g'
 
7184
 
 
7185
# Global variables:
 
7186
ofile=libtool
 
7187
can_build_shared=yes
 
7188
 
 
7189
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7190
# which needs '.lib').
 
7191
libext=a
 
7192
 
 
7193
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7194
 
 
7195
old_CC="$CC"
 
7196
old_CFLAGS="$CFLAGS"
 
7197
 
 
7198
# Set sane defaults for various variables
 
7199
test -z "$CC" && CC=cc
 
7200
test -z "$LTCC" && LTCC=$CC
 
7201
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7202
test -z "$LD" && LD=ld
 
7203
test -z "$ac_objext" && ac_objext=o
 
7204
 
 
7205
for cc_temp in $compiler""; do
 
7206
  case $cc_temp in
 
7207
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7208
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7209
    \-*) ;;
 
7210
    *) break;;
 
7211
  esac
 
7212
done
 
7213
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7214
 
 
7215
 
 
7216
# Only perform the check for file, if the check method requires it
 
7217
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7218
case $deplibs_check_method in
 
7219
file_magic*)
 
7220
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7221
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7222
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7223
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7224
  $as_echo_n "(cached) " >&6
 
7225
else
 
7226
  case $MAGIC_CMD in
 
7227
[\\/*] |  ?:[\\/]*)
 
7228
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7229
  ;;
 
7230
*)
 
7231
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7232
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7233
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7234
  for ac_dir in $ac_dummy; do
 
7235
    IFS="$lt_save_ifs"
 
7236
    test -z "$ac_dir" && ac_dir=.
 
7237
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7238
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7239
      if test -n "$file_magic_test_file"; then
 
7240
        case $deplibs_check_method in
 
7241
        "file_magic "*)
 
7242
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7243
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7244
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7245
            $EGREP "$file_magic_regex" > /dev/null; then
 
7246
            :
 
7247
          else
 
7248
            cat <<_LT_EOF 1>&2
 
7249
 
 
7250
*** Warning: the command libtool uses to detect shared libraries,
 
7251
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7252
*** The result is that libtool may fail to recognize shared libraries
 
7253
*** as such.  This will affect the creation of libtool libraries that
 
7254
*** depend on shared libraries, but programs linked with such libtool
 
7255
*** libraries will work regardless of this problem.  Nevertheless, you
 
7256
*** may want to report the problem to your system manager and/or to
 
7257
*** bug-libtool@gnu.org
 
7258
 
 
7259
_LT_EOF
 
7260
          fi ;;
 
7261
        esac
 
7262
      fi
 
7263
      break
 
7264
    fi
 
7265
  done
 
7266
  IFS="$lt_save_ifs"
 
7267
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7268
  ;;
 
7269
esac
 
7270
fi
 
7271
 
 
7272
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7273
if test -n "$MAGIC_CMD"; then
 
7274
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7275
$as_echo "$MAGIC_CMD" >&6; }
 
7276
else
 
7277
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7278
$as_echo "no" >&6; }
 
7279
fi
 
7280
 
 
7281
 
 
7282
 
 
7283
 
 
7284
 
 
7285
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7286
  if test -n "$ac_tool_prefix"; then
 
7287
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7288
$as_echo_n "checking for file... " >&6; }
 
7289
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7290
  $as_echo_n "(cached) " >&6
 
7291
else
 
7292
  case $MAGIC_CMD in
 
7293
[\\/*] |  ?:[\\/]*)
 
7294
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7295
  ;;
 
7296
*)
 
7297
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7298
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7299
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7300
  for ac_dir in $ac_dummy; do
 
7301
    IFS="$lt_save_ifs"
 
7302
    test -z "$ac_dir" && ac_dir=.
 
7303
    if test -f $ac_dir/file; then
 
7304
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7305
      if test -n "$file_magic_test_file"; then
 
7306
        case $deplibs_check_method in
 
7307
        "file_magic "*)
 
7308
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7309
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7310
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7311
            $EGREP "$file_magic_regex" > /dev/null; then
 
7312
            :
 
7313
          else
 
7314
            cat <<_LT_EOF 1>&2
 
7315
 
 
7316
*** Warning: the command libtool uses to detect shared libraries,
 
7317
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7318
*** The result is that libtool may fail to recognize shared libraries
 
7319
*** as such.  This will affect the creation of libtool libraries that
 
7320
*** depend on shared libraries, but programs linked with such libtool
 
7321
*** libraries will work regardless of this problem.  Nevertheless, you
 
7322
*** may want to report the problem to your system manager and/or to
 
7323
*** bug-libtool@gnu.org
 
7324
 
 
7325
_LT_EOF
 
7326
          fi ;;
 
7327
        esac
 
7328
      fi
 
7329
      break
 
7330
    fi
 
7331
  done
 
7332
  IFS="$lt_save_ifs"
 
7333
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7334
  ;;
 
7335
esac
 
7336
fi
 
7337
 
 
7338
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7339
if test -n "$MAGIC_CMD"; then
 
7340
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7341
$as_echo "$MAGIC_CMD" >&6; }
 
7342
else
 
7343
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7344
$as_echo "no" >&6; }
 
7345
fi
 
7346
 
 
7347
 
 
7348
  else
 
7349
    MAGIC_CMD=:
 
7350
  fi
 
7351
fi
 
7352
 
 
7353
  fi
 
7354
  ;;
 
7355
esac
 
7356
 
 
7357
# Use C for the default configuration in the libtool script
 
7358
 
 
7359
lt_save_CC="$CC"
 
7360
ac_ext=c
 
7361
ac_cpp='$CPP $CPPFLAGS'
 
7362
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7363
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7364
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7365
 
 
7366
 
 
7367
# Source file extension for C test sources.
 
7368
ac_ext=c
 
7369
 
 
7370
# Object file extension for compiled C test sources.
 
7371
objext=o
 
7372
objext=$objext
 
7373
 
 
7374
# Code to be used in simple compile tests
 
7375
lt_simple_compile_test_code="int some_variable = 0;"
 
7376
 
 
7377
# Code to be used in simple link tests
 
7378
lt_simple_link_test_code='int main(){return(0);}'
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
 
 
7386
# If no C compiler was specified, use CC.
 
7387
LTCC=${LTCC-"$CC"}
 
7388
 
 
7389
# If no C compiler flags were specified, use CFLAGS.
 
7390
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7391
 
 
7392
# Allow CC to be a program name with arguments.
 
7393
compiler=$CC
 
7394
 
 
7395
# Save the default compiler, since it gets overwritten when the other
 
7396
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7397
compiler_DEFAULT=$CC
 
7398
 
 
7399
# save warnings/boilerplate of simple test code
 
7400
ac_outfile=conftest.$ac_objext
 
7401
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7402
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7403
_lt_compiler_boilerplate=`cat conftest.err`
 
7404
$RM conftest*
 
7405
 
 
7406
ac_outfile=conftest.$ac_objext
 
7407
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7408
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7409
_lt_linker_boilerplate=`cat conftest.err`
 
7410
$RM -r conftest*
 
7411
 
 
7412
 
 
7413
## CAVEAT EMPTOR:
 
7414
## There is no encapsulation within the following macros, do not change
 
7415
## the running order or otherwise move them around unless you know exactly
 
7416
## what you are doing...
 
7417
if test -n "$compiler"; then
 
7418
 
 
7419
lt_prog_compiler_no_builtin_flag=
 
7420
 
 
7421
if test "$GCC" = yes; then
 
7422
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7423
 
 
7424
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7425
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7426
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7427
  $as_echo_n "(cached) " >&6
 
7428
else
 
7429
  lt_cv_prog_compiler_rtti_exceptions=no
 
7430
   ac_outfile=conftest.$ac_objext
 
7431
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7432
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7433
   # Insert the option either (1) after the last *FLAGS variable, or
 
7434
   # (2) before a word containing "conftest.", or (3) at the end.
 
7435
   # Note that $ac_compile itself does not contain backslashes and begins
 
7436
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7437
   # The option is referenced via a variable to avoid confusing sed.
 
7438
   lt_compile=`echo "$ac_compile" | $SED \
 
7439
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7440
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7441
   -e 's:$: $lt_compiler_flag:'`
 
7442
   (eval echo "\"\$as_me:7442: $lt_compile\"" >&5)
 
7443
   (eval "$lt_compile" 2>conftest.err)
 
7444
   ac_status=$?
 
7445
   cat conftest.err >&5
 
7446
   echo "$as_me:7446: \$? = $ac_status" >&5
 
7447
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7448
     # The compiler can only warn and ignore the option if not recognized
 
7449
     # So say no if there are warnings other than the usual output.
 
7450
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7451
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7452
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7453
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7454
     fi
 
7455
   fi
 
7456
   $RM conftest*
 
7457
 
 
7458
fi
 
7459
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7460
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7461
 
 
7462
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7463
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7464
else
 
7465
    :
 
7466
fi
 
7467
 
 
7468
fi
 
7469
 
 
7470
 
 
7471
 
 
7472
 
 
7473
 
 
7474
 
 
7475
  lt_prog_compiler_wl=
 
7476
lt_prog_compiler_pic=
 
7477
lt_prog_compiler_static=
 
7478
 
 
7479
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7480
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7481
 
 
7482
  if test "$GCC" = yes; then
 
7483
    lt_prog_compiler_wl='-Wl,'
 
7484
    lt_prog_compiler_static='-static'
 
7485
 
 
7486
    case $host_os in
 
7487
      aix*)
 
7488
      # All AIX code is PIC.
 
7489
      if test "$host_cpu" = ia64; then
 
7490
        # AIX 5 now supports IA64 processor
 
7491
        lt_prog_compiler_static='-Bstatic'
 
7492
      fi
 
7493
      ;;
 
7494
 
 
7495
    amigaos*)
 
7496
      case $host_cpu in
 
7497
      powerpc)
 
7498
            # see comment about AmigaOS4 .so support
 
7499
            lt_prog_compiler_pic='-fPIC'
 
7500
        ;;
 
7501
      m68k)
 
7502
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7503
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7504
            # like `-m68040'.
 
7505
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7506
        ;;
 
7507
      esac
 
7508
      ;;
 
7509
 
 
7510
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7511
      # PIC is the default for these OSes.
 
7512
      ;;
 
7513
 
 
7514
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7515
      # This hack is so that the source file can tell whether it is being
 
7516
      # built for inclusion in a dll (and should export symbols for example).
 
7517
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7518
      # (--disable-auto-import) libraries
 
7519
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7520
      ;;
 
7521
 
 
7522
    darwin* | rhapsody*)
 
7523
      # PIC is the default on this platform
 
7524
      # Common symbols not allowed in MH_DYLIB files
 
7525
      lt_prog_compiler_pic='-fno-common'
 
7526
      ;;
 
7527
 
 
7528
    hpux*)
 
7529
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7530
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7531
      # sets the default TLS model and affects inlining.
 
7532
      case $host_cpu in
 
7533
      hppa*64*)
 
7534
        # +Z the default
 
7535
        ;;
 
7536
      *)
 
7537
        lt_prog_compiler_pic='-fPIC'
 
7538
        ;;
 
7539
      esac
 
7540
      ;;
 
7541
 
 
7542
    interix[3-9]*)
 
7543
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7544
      # Instead, we relocate shared libraries at runtime.
 
7545
      ;;
 
7546
 
 
7547
    msdosdjgpp*)
 
7548
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7549
      # on systems that don't support them.
 
7550
      lt_prog_compiler_can_build_shared=no
 
7551
      enable_shared=no
 
7552
      ;;
 
7553
 
 
7554
    *nto* | *qnx*)
 
7555
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7556
      # it will coredump.
 
7557
      lt_prog_compiler_pic='-fPIC -shared'
 
7558
      ;;
 
7559
 
 
7560
    sysv4*MP*)
 
7561
      if test -d /usr/nec; then
 
7562
        lt_prog_compiler_pic=-Kconform_pic
 
7563
      fi
 
7564
      ;;
 
7565
 
 
7566
    *)
 
7567
      lt_prog_compiler_pic='-fPIC'
 
7568
      ;;
 
7569
    esac
 
7570
  else
 
7571
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7572
    case $host_os in
 
7573
    aix*)
 
7574
      lt_prog_compiler_wl='-Wl,'
 
7575
      if test "$host_cpu" = ia64; then
 
7576
        # AIX 5 now supports IA64 processor
 
7577
        lt_prog_compiler_static='-Bstatic'
 
7578
      else
 
7579
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7580
      fi
 
7581
      ;;
 
7582
 
 
7583
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7584
      # This hack is so that the source file can tell whether it is being
 
7585
      # built for inclusion in a dll (and should export symbols for example).
 
7586
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7587
      ;;
 
7588
 
 
7589
    hpux9* | hpux10* | hpux11*)
 
7590
      lt_prog_compiler_wl='-Wl,'
 
7591
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7592
      # not for PA HP-UX.
 
7593
      case $host_cpu in
 
7594
      hppa*64*|ia64*)
 
7595
        # +Z the default
 
7596
        ;;
 
7597
      *)
 
7598
        lt_prog_compiler_pic='+Z'
 
7599
        ;;
 
7600
      esac
 
7601
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7602
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7603
      ;;
 
7604
 
 
7605
    irix5* | irix6* | nonstopux*)
 
7606
      lt_prog_compiler_wl='-Wl,'
 
7607
      # PIC (with -KPIC) is the default.
 
7608
      lt_prog_compiler_static='-non_shared'
 
7609
      ;;
 
7610
 
 
7611
    linux* | k*bsd*-gnu)
 
7612
      case $cc_basename in
 
7613
      # old Intel for x86_64 which still supported -KPIC.
 
7614
      ecc*)
 
7615
        lt_prog_compiler_wl='-Wl,'
 
7616
        lt_prog_compiler_pic='-KPIC'
 
7617
        lt_prog_compiler_static='-static'
 
7618
        ;;
 
7619
      # icc used to be incompatible with GCC.
 
7620
      # ICC 10 doesn't accept -KPIC any more.
 
7621
      icc* | ifort*)
 
7622
        lt_prog_compiler_wl='-Wl,'
 
7623
        lt_prog_compiler_pic='-fPIC'
 
7624
        lt_prog_compiler_static='-static'
 
7625
        ;;
 
7626
      # Lahey Fortran 8.1.
 
7627
      lf95*)
 
7628
        lt_prog_compiler_wl='-Wl,'
 
7629
        lt_prog_compiler_pic='--shared'
 
7630
        lt_prog_compiler_static='--static'
 
7631
        ;;
 
7632
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7633
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7634
        # which looks to be a dead project)
 
7635
        lt_prog_compiler_wl='-Wl,'
 
7636
        lt_prog_compiler_pic='-fpic'
 
7637
        lt_prog_compiler_static='-Bstatic'
 
7638
        ;;
 
7639
      ccc*)
 
7640
        lt_prog_compiler_wl='-Wl,'
 
7641
        # All Alpha code is PIC.
 
7642
        lt_prog_compiler_static='-non_shared'
 
7643
        ;;
 
7644
      xl*)
 
7645
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7646
        lt_prog_compiler_wl='-Wl,'
 
7647
        lt_prog_compiler_pic='-qpic'
 
7648
        lt_prog_compiler_static='-qstaticlink'
 
7649
        ;;
 
7650
      *)
 
7651
        case `$CC -V 2>&1 | sed 5q` in
 
7652
        *Sun\ C*)
 
7653
          # Sun C 5.9
 
7654
          lt_prog_compiler_pic='-KPIC'
 
7655
          lt_prog_compiler_static='-Bstatic'
 
7656
          lt_prog_compiler_wl='-Wl,'
 
7657
          ;;
 
7658
        *Sun\ F*)
 
7659
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7660
          lt_prog_compiler_pic='-KPIC'
 
7661
          lt_prog_compiler_static='-Bstatic'
 
7662
          lt_prog_compiler_wl=''
 
7663
          ;;
 
7664
        esac
 
7665
        ;;
 
7666
      esac
 
7667
      ;;
 
7668
 
 
7669
    newsos6)
 
7670
      lt_prog_compiler_pic='-KPIC'
 
7671
      lt_prog_compiler_static='-Bstatic'
 
7672
      ;;
 
7673
 
 
7674
    *nto* | *qnx*)
 
7675
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7676
      # it will coredump.
 
7677
      lt_prog_compiler_pic='-fPIC -shared'
 
7678
      ;;
 
7679
 
 
7680
    osf3* | osf4* | osf5*)
 
7681
      lt_prog_compiler_wl='-Wl,'
 
7682
      # All OSF/1 code is PIC.
 
7683
      lt_prog_compiler_static='-non_shared'
 
7684
      ;;
 
7685
 
 
7686
    rdos*)
 
7687
      lt_prog_compiler_static='-non_shared'
 
7688
      ;;
 
7689
 
 
7690
    solaris*)
 
7691
      lt_prog_compiler_pic='-KPIC'
 
7692
      lt_prog_compiler_static='-Bstatic'
 
7693
      case $cc_basename in
 
7694
      f77* | f90* | f95*)
 
7695
        lt_prog_compiler_wl='-Qoption ld ';;
 
7696
      *)
 
7697
        lt_prog_compiler_wl='-Wl,';;
 
7698
      esac
 
7699
      ;;
 
7700
 
 
7701
    sunos4*)
 
7702
      lt_prog_compiler_wl='-Qoption ld '
 
7703
      lt_prog_compiler_pic='-PIC'
 
7704
      lt_prog_compiler_static='-Bstatic'
 
7705
      ;;
 
7706
 
 
7707
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7708
      lt_prog_compiler_wl='-Wl,'
 
7709
      lt_prog_compiler_pic='-KPIC'
 
7710
      lt_prog_compiler_static='-Bstatic'
 
7711
      ;;
 
7712
 
 
7713
    sysv4*MP*)
 
7714
      if test -d /usr/nec ;then
 
7715
        lt_prog_compiler_pic='-Kconform_pic'
 
7716
        lt_prog_compiler_static='-Bstatic'
 
7717
      fi
 
7718
      ;;
 
7719
 
 
7720
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7721
      lt_prog_compiler_wl='-Wl,'
 
7722
      lt_prog_compiler_pic='-KPIC'
 
7723
      lt_prog_compiler_static='-Bstatic'
 
7724
      ;;
 
7725
 
 
7726
    unicos*)
 
7727
      lt_prog_compiler_wl='-Wl,'
 
7728
      lt_prog_compiler_can_build_shared=no
 
7729
      ;;
 
7730
 
 
7731
    uts4*)
 
7732
      lt_prog_compiler_pic='-pic'
 
7733
      lt_prog_compiler_static='-Bstatic'
 
7734
      ;;
 
7735
 
 
7736
    *)
 
7737
      lt_prog_compiler_can_build_shared=no
 
7738
      ;;
 
7739
    esac
 
7740
  fi
 
7741
 
 
7742
case $host_os in
 
7743
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7744
  *djgpp*)
 
7745
    lt_prog_compiler_pic=
 
7746
    ;;
 
7747
  *)
 
7748
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7749
    ;;
 
7750
esac
 
7751
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7752
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7753
 
 
7754
 
 
7755
 
 
7756
 
 
7757
 
 
7758
 
 
7759
#
 
7760
# Check to make sure the PIC flag actually works.
 
7761
#
 
7762
if test -n "$lt_prog_compiler_pic"; then
 
7763
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7764
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7765
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7766
  $as_echo_n "(cached) " >&6
 
7767
else
 
7768
  lt_cv_prog_compiler_pic_works=no
 
7769
   ac_outfile=conftest.$ac_objext
 
7770
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7771
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7772
   # Insert the option either (1) after the last *FLAGS variable, or
 
7773
   # (2) before a word containing "conftest.", or (3) at the end.
 
7774
   # Note that $ac_compile itself does not contain backslashes and begins
 
7775
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7776
   # The option is referenced via a variable to avoid confusing sed.
 
7777
   lt_compile=`echo "$ac_compile" | $SED \
 
7778
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7779
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7780
   -e 's:$: $lt_compiler_flag:'`
 
7781
   (eval echo "\"\$as_me:7781: $lt_compile\"" >&5)
 
7782
   (eval "$lt_compile" 2>conftest.err)
 
7783
   ac_status=$?
 
7784
   cat conftest.err >&5
 
7785
   echo "$as_me:7785: \$? = $ac_status" >&5
 
7786
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7787
     # The compiler can only warn and ignore the option if not recognized
 
7788
     # So say no if there are warnings other than the usual output.
 
7789
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7790
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7791
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7792
       lt_cv_prog_compiler_pic_works=yes
 
7793
     fi
 
7794
   fi
 
7795
   $RM conftest*
 
7796
 
 
7797
fi
 
7798
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7799
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7800
 
 
7801
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7802
    case $lt_prog_compiler_pic in
 
7803
     "" | " "*) ;;
 
7804
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7805
     esac
 
7806
else
 
7807
    lt_prog_compiler_pic=
 
7808
     lt_prog_compiler_can_build_shared=no
 
7809
fi
 
7810
 
 
7811
fi
 
7812
 
 
7813
 
 
7814
 
 
7815
 
 
7816
 
 
7817
 
 
7818
#
 
7819
# Check to make sure the static flag actually works.
 
7820
#
 
7821
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7822
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7823
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7824
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
7825
  $as_echo_n "(cached) " >&6
 
7826
else
 
7827
  lt_cv_prog_compiler_static_works=no
 
7828
   save_LDFLAGS="$LDFLAGS"
 
7829
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7830
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7831
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7832
     # The linker can only warn and ignore the option if not recognized
 
7833
     # So say no if there are warnings
 
7834
     if test -s conftest.err; then
 
7835
       # Append any errors to the config.log.
 
7836
       cat conftest.err 1>&5
 
7837
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7838
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7839
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7840
         lt_cv_prog_compiler_static_works=yes
 
7841
       fi
 
7842
     else
 
7843
       lt_cv_prog_compiler_static_works=yes
 
7844
     fi
 
7845
   fi
 
7846
   $RM -r conftest*
 
7847
   LDFLAGS="$save_LDFLAGS"
 
7848
 
 
7849
fi
 
7850
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7851
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7852
 
 
7853
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7854
    :
 
7855
else
 
7856
    lt_prog_compiler_static=
 
7857
fi
 
7858
 
 
7859
 
 
7860
 
 
7861
 
 
7862
 
 
7863
 
 
7864
 
 
7865
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7866
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7867
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7868
  $as_echo_n "(cached) " >&6
 
7869
else
 
7870
  lt_cv_prog_compiler_c_o=no
 
7871
   $RM -r conftest 2>/dev/null
 
7872
   mkdir conftest
 
7873
   cd conftest
 
7874
   mkdir out
 
7875
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7876
 
 
7877
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7878
   # Insert the option either (1) after the last *FLAGS variable, or
 
7879
   # (2) before a word containing "conftest.", or (3) at the end.
 
7880
   # Note that $ac_compile itself does not contain backslashes and begins
 
7881
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7882
   lt_compile=`echo "$ac_compile" | $SED \
 
7883
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7884
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7885
   -e 's:$: $lt_compiler_flag:'`
 
7886
   (eval echo "\"\$as_me:7886: $lt_compile\"" >&5)
 
7887
   (eval "$lt_compile" 2>out/conftest.err)
 
7888
   ac_status=$?
 
7889
   cat out/conftest.err >&5
 
7890
   echo "$as_me:7890: \$? = $ac_status" >&5
 
7891
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7892
   then
 
7893
     # The compiler can only warn and ignore the option if not recognized
 
7894
     # So say no if there are warnings
 
7895
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7896
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7897
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7898
       lt_cv_prog_compiler_c_o=yes
 
7899
     fi
 
7900
   fi
 
7901
   chmod u+w . 2>&5
 
7902
   $RM conftest*
 
7903
   # SGI C++ compiler will create directory out/ii_files/ for
 
7904
   # template instantiation
 
7905
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
7906
   $RM out/* && rmdir out
 
7907
   cd ..
 
7908
   $RM -r conftest
 
7909
   $RM conftest*
 
7910
 
 
7911
fi
 
7912
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7913
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7914
 
 
7915
 
 
7916
 
 
7917
 
 
7918
 
 
7919
 
 
7920
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7921
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7922
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7923
  $as_echo_n "(cached) " >&6
 
7924
else
 
7925
  lt_cv_prog_compiler_c_o=no
 
7926
   $RM -r conftest 2>/dev/null
 
7927
   mkdir conftest
 
7928
   cd conftest
 
7929
   mkdir out
 
7930
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7931
 
 
7932
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7933
   # Insert the option either (1) after the last *FLAGS variable, or
 
7934
   # (2) before a word containing "conftest.", or (3) at the end.
 
7935
   # Note that $ac_compile itself does not contain backslashes and begins
 
7936
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7937
   lt_compile=`echo "$ac_compile" | $SED \
 
7938
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7939
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7940
   -e 's:$: $lt_compiler_flag:'`
 
7941
   (eval echo "\"\$as_me:7941: $lt_compile\"" >&5)
 
7942
   (eval "$lt_compile" 2>out/conftest.err)
 
7943
   ac_status=$?
 
7944
   cat out/conftest.err >&5
 
7945
   echo "$as_me:7945: \$? = $ac_status" >&5
 
7946
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7947
   then
 
7948
     # The compiler can only warn and ignore the option if not recognized
 
7949
     # So say no if there are warnings
 
7950
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7951
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7952
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7953
       lt_cv_prog_compiler_c_o=yes
 
7954
     fi
 
7955
   fi
 
7956
   chmod u+w . 2>&5
 
7957
   $RM conftest*
 
7958
   # SGI C++ compiler will create directory out/ii_files/ for
 
7959
   # template instantiation
 
7960
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
7961
   $RM out/* && rmdir out
 
7962
   cd ..
 
7963
   $RM -r conftest
 
7964
   $RM conftest*
 
7965
 
 
7966
fi
 
7967
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7968
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7969
 
 
7970
 
 
7971
 
 
7972
 
 
7973
hard_links="nottested"
 
7974
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7975
  # do not overwrite the value of need_locks provided by the user
 
7976
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7977
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
7978
  hard_links=yes
 
7979
  $RM conftest*
 
7980
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7981
  touch conftest.a
 
7982
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7983
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7984
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
7985
$as_echo "$hard_links" >&6; }
 
7986
  if test "$hard_links" = no; then
 
7987
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7988
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7989
    need_locks=warn
 
7990
  fi
 
7991
else
 
7992
  need_locks=no
 
7993
fi
 
7994
 
 
7995
 
 
7996
 
 
7997
 
 
7998
 
 
7999
 
 
8000
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8001
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8002
 
 
8003
  runpath_var=
 
8004
  allow_undefined_flag=
 
8005
  always_export_symbols=no
 
8006
  archive_cmds=
 
8007
  archive_expsym_cmds=
 
8008
  compiler_needs_object=no
 
8009
  enable_shared_with_static_runtimes=no
 
8010
  export_dynamic_flag_spec=
 
8011
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8012
  hardcode_automatic=no
 
8013
  hardcode_direct=no
 
8014
  hardcode_direct_absolute=no
 
8015
  hardcode_libdir_flag_spec=
 
8016
  hardcode_libdir_flag_spec_ld=
 
8017
  hardcode_libdir_separator=
 
8018
  hardcode_minus_L=no
 
8019
  hardcode_shlibpath_var=unsupported
 
8020
  inherit_rpath=no
 
8021
  link_all_deplibs=unknown
 
8022
  module_cmds=
 
8023
  module_expsym_cmds=
 
8024
  old_archive_from_new_cmds=
 
8025
  old_archive_from_expsyms_cmds=
 
8026
  thread_safe_flag_spec=
 
8027
  whole_archive_flag_spec=
 
8028
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8029
  # included in the symbol list
 
8030
  include_expsyms=
 
8031
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8032
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8033
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8034
  # as well as any symbol that contains `d'.
 
8035
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8036
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8037
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8038
  # the symbol is explicitly referenced.  Since portable code cannot
 
8039
  # rely on this symbol name, it's probably fine to never include it in
 
8040
  # preloaded symbol tables.
 
8041
  # Exclude shared library initialization/finalization symbols.
 
8042
  extract_expsyms_cmds=
 
8043
 
 
8044
  case $host_os in
 
8045
  cygwin* | mingw* | pw32* | cegcc*)
 
8046
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8047
    # When not using gcc, we currently assume that we are using
 
8048
    # Microsoft Visual C++.
 
8049
    if test "$GCC" != yes; then
 
8050
      with_gnu_ld=no
 
8051
    fi
 
8052
    ;;
 
8053
  interix*)
 
8054
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8055
    with_gnu_ld=yes
 
8056
    ;;
 
8057
  openbsd*)
 
8058
    with_gnu_ld=no
 
8059
    ;;
 
8060
  esac
 
8061
 
 
8062
  ld_shlibs=yes
 
8063
  if test "$with_gnu_ld" = yes; then
 
8064
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8065
    wlarc='${wl}'
 
8066
 
 
8067
    # Set some defaults for GNU ld with shared library support. These
 
8068
    # are reset later if shared libraries are not supported. Putting them
 
8069
    # here allows them to be overridden if necessary.
 
8070
    runpath_var=LD_RUN_PATH
 
8071
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8072
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8073
    # ancient GNU ld didn't support --whole-archive et. al.
 
8074
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8075
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8076
    else
 
8077
      whole_archive_flag_spec=
 
8078
    fi
 
8079
    supports_anon_versioning=no
 
8080
    case `$LD -v 2>&1` in
 
8081
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8082
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8083
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8084
      *\ 2.11.*) ;; # other 2.11 versions
 
8085
      *) supports_anon_versioning=yes ;;
 
8086
    esac
 
8087
 
 
8088
    # See if GNU ld supports shared libraries.
 
8089
    case $host_os in
 
8090
    aix[3-9]*)
 
8091
      # On AIX/PPC, the GNU linker is very broken
 
8092
      if test "$host_cpu" != ia64; then
 
8093
        ld_shlibs=no
 
8094
        cat <<_LT_EOF 1>&2
 
8095
 
 
8096
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8097
*** to be unable to reliably create shared libraries on AIX.
 
8098
*** Therefore, libtool is disabling shared libraries support.  If you
 
8099
*** really care for shared libraries, you may want to modify your PATH
 
8100
*** so that a non-GNU linker is found, and then restart.
 
8101
 
 
8102
_LT_EOF
 
8103
      fi
 
8104
      ;;
 
8105
 
 
8106
    amigaos*)
 
8107
      case $host_cpu in
 
8108
      powerpc)
 
8109
            # see comment about AmigaOS4 .so support
 
8110
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8111
            archive_expsym_cmds=''
 
8112
        ;;
 
8113
      m68k)
 
8114
            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)'
 
8115
            hardcode_libdir_flag_spec='-L$libdir'
 
8116
            hardcode_minus_L=yes
 
8117
        ;;
 
8118
      esac
 
8119
      ;;
 
8120
 
 
8121
    beos*)
 
8122
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8123
        allow_undefined_flag=unsupported
 
8124
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8125
        # support --undefined.  This deserves some investigation.  FIXME
 
8126
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8127
      else
 
8128
        ld_shlibs=no
 
8129
      fi
 
8130
      ;;
 
8131
 
 
8132
    cygwin* | mingw* | pw32* | cegcc*)
 
8133
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8134
      # as there is no search path for DLLs.
 
8135
      hardcode_libdir_flag_spec='-L$libdir'
 
8136
      allow_undefined_flag=unsupported
 
8137
      always_export_symbols=no
 
8138
      enable_shared_with_static_runtimes=yes
 
8139
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8140
 
 
8141
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8142
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8143
        # If the export-symbols file already is a .def file (1st line
 
8144
        # is EXPORTS), use it as is; otherwise, prepend...
 
8145
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8146
          cp $export_symbols $output_objdir/$soname.def;
 
8147
        else
 
8148
          echo EXPORTS > $output_objdir/$soname.def;
 
8149
          cat $export_symbols >> $output_objdir/$soname.def;
 
8150
        fi~
 
8151
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8152
      else
 
8153
        ld_shlibs=no
 
8154
      fi
 
8155
      ;;
 
8156
 
 
8157
    interix[3-9]*)
 
8158
      hardcode_direct=no
 
8159
      hardcode_shlibpath_var=no
 
8160
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8161
      export_dynamic_flag_spec='${wl}-E'
 
8162
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8163
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8164
      # default) and relocated if they conflict, which is a slow very memory
 
8165
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8166
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8167
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8168
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8169
      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'
 
8170
      ;;
 
8171
 
 
8172
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8173
      tmp_diet=no
 
8174
      if test "$host_os" = linux-dietlibc; then
 
8175
        case $cc_basename in
 
8176
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8177
        esac
 
8178
      fi
 
8179
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8180
         && test "$tmp_diet" = no
 
8181
      then
 
8182
        tmp_addflag=
 
8183
        tmp_sharedflag='-shared'
 
8184
        case $cc_basename,$host_cpu in
 
8185
        pgcc*)                          # Portland Group C compiler
 
8186
          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'
 
8187
          tmp_addflag=' $pic_flag'
 
8188
          ;;
 
8189
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8190
          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'
 
8191
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8192
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8193
          tmp_addflag=' -i_dynamic' ;;
 
8194
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8195
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8196
        ifc* | ifort*)                  # Intel Fortran compiler
 
8197
          tmp_addflag=' -nofor_main' ;;
 
8198
        lf95*)                          # Lahey Fortran 8.1
 
8199
          whole_archive_flag_spec=
 
8200
          tmp_sharedflag='--shared' ;;
 
8201
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8202
          tmp_sharedflag='-qmkshrobj'
 
8203
          tmp_addflag= ;;
 
8204
        esac
 
8205
        case `$CC -V 2>&1 | sed 5q` in
 
8206
        *Sun\ C*)                       # Sun C 5.9
 
8207
          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'
 
8208
          compiler_needs_object=yes
 
8209
          tmp_sharedflag='-G' ;;
 
8210
        *Sun\ F*)                       # Sun Fortran 8.3
 
8211
          tmp_sharedflag='-G' ;;
 
8212
        esac
 
8213
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8214
 
 
8215
        if test "x$supports_anon_versioning" = xyes; then
 
8216
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8217
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8218
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8219
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8220
        fi
 
8221
 
 
8222
        case $cc_basename in
 
8223
        xlf*)
 
8224
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8225
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8226
          hardcode_libdir_flag_spec=
 
8227
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8228
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8229
          if test "x$supports_anon_versioning" = xyes; then
 
8230
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8231
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8232
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8233
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8234
          fi
 
8235
          ;;
 
8236
        esac
 
8237
      else
 
8238
        ld_shlibs=no
 
8239
      fi
 
8240
      ;;
 
8241
 
 
8242
    netbsd*)
 
8243
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8244
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8245
        wlarc=
 
8246
      else
 
8247
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8248
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8249
      fi
 
8250
      ;;
 
8251
 
 
8252
    solaris*)
 
8253
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8254
        ld_shlibs=no
 
8255
        cat <<_LT_EOF 1>&2
 
8256
 
 
8257
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8258
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8259
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8260
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8261
*** your PATH or compiler configuration so that the native linker is
 
8262
*** used, and then restart.
 
8263
 
 
8264
_LT_EOF
 
8265
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8266
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8267
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8268
      else
 
8269
        ld_shlibs=no
 
8270
      fi
 
8271
      ;;
 
8272
 
 
8273
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8274
      case `$LD -v 2>&1` in
 
8275
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8276
        ld_shlibs=no
 
8277
        cat <<_LT_EOF 1>&2
 
8278
 
 
8279
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8280
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8281
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8282
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8283
*** your PATH or compiler configuration so that the native linker is
 
8284
*** used, and then restart.
 
8285
 
 
8286
_LT_EOF
 
8287
        ;;
 
8288
        *)
 
8289
          # For security reasons, it is highly recommended that you always
 
8290
          # use absolute paths for naming shared libraries, and exclude the
 
8291
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8292
          # requires that you compile everything twice, which is a pain.
 
8293
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8294
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8295
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8296
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8297
          else
 
8298
            ld_shlibs=no
 
8299
          fi
 
8300
        ;;
 
8301
      esac
 
8302
      ;;
 
8303
 
 
8304
    sunos4*)
 
8305
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8306
      wlarc=
 
8307
      hardcode_direct=yes
 
8308
      hardcode_shlibpath_var=no
 
8309
      ;;
 
8310
 
 
8311
    *)
 
8312
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8313
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8314
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8315
      else
 
8316
        ld_shlibs=no
 
8317
      fi
 
8318
      ;;
 
8319
    esac
 
8320
 
 
8321
    if test "$ld_shlibs" = no; then
 
8322
      runpath_var=
 
8323
      hardcode_libdir_flag_spec=
 
8324
      export_dynamic_flag_spec=
 
8325
      whole_archive_flag_spec=
 
8326
    fi
 
8327
  else
 
8328
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8329
    case $host_os in
 
8330
    aix3*)
 
8331
      allow_undefined_flag=unsupported
 
8332
      always_export_symbols=yes
 
8333
      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'
 
8334
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8335
      # are no directories specified by -L.
 
8336
      hardcode_minus_L=yes
 
8337
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8338
        # Neither direct hardcoding nor static linking is supported with a
 
8339
        # broken collect2.
 
8340
        hardcode_direct=unsupported
 
8341
      fi
 
8342
      ;;
 
8343
 
 
8344
    aix[4-9]*)
 
8345
      if test "$host_cpu" = ia64; then
 
8346
        # On IA64, the linker does run time linking by default, so we don't
 
8347
        # have to do anything special.
 
8348
        aix_use_runtimelinking=no
 
8349
        exp_sym_flag='-Bexport'
 
8350
        no_entry_flag=""
 
8351
      else
 
8352
        # If we're using GNU nm, then we don't want the "-C" option.
 
8353
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8354
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8355
          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'
 
8356
        else
 
8357
          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'
 
8358
        fi
 
8359
        aix_use_runtimelinking=no
 
8360
 
 
8361
        # Test if we are trying to use run time linking or normal
 
8362
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8363
        # need to do runtime linking.
 
8364
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8365
          for ld_flag in $LDFLAGS; do
 
8366
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8367
            aix_use_runtimelinking=yes
 
8368
            break
 
8369
          fi
 
8370
          done
 
8371
          ;;
 
8372
        esac
 
8373
 
 
8374
        exp_sym_flag='-bexport'
 
8375
        no_entry_flag='-bnoentry'
 
8376
      fi
 
8377
 
 
8378
      # When large executables or shared objects are built, AIX ld can
 
8379
      # have problems creating the table of contents.  If linking a library
 
8380
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8381
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8382
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8383
 
 
8384
      archive_cmds=''
 
8385
      hardcode_direct=yes
 
8386
      hardcode_direct_absolute=yes
 
8387
      hardcode_libdir_separator=':'
 
8388
      link_all_deplibs=yes
 
8389
      file_list_spec='${wl}-f,'
 
8390
 
 
8391
      if test "$GCC" = yes; then
 
8392
        case $host_os in aix4.[012]|aix4.[012].*)
 
8393
        # We only want to do this on AIX 4.2 and lower, the check
 
8394
        # below for broken collect2 doesn't work under 4.3+
 
8395
          collect2name=`${CC} -print-prog-name=collect2`
 
8396
          if test -f "$collect2name" &&
 
8397
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8398
          then
 
8399
          # We have reworked collect2
 
8400
          :
 
8401
          else
 
8402
          # We have old collect2
 
8403
          hardcode_direct=unsupported
 
8404
          # It fails to find uninstalled libraries when the uninstalled
 
8405
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8406
          # to unsupported forces relinking
 
8407
          hardcode_minus_L=yes
 
8408
          hardcode_libdir_flag_spec='-L$libdir'
 
8409
          hardcode_libdir_separator=
 
8410
          fi
 
8411
          ;;
 
8412
        esac
 
8413
        shared_flag='-shared'
 
8414
        if test "$aix_use_runtimelinking" = yes; then
 
8415
          shared_flag="$shared_flag "'${wl}-G'
 
8416
        fi
 
8417
      else
 
8418
        # not using gcc
 
8419
        if test "$host_cpu" = ia64; then
 
8420
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8421
        # chokes on -Wl,-G. The following line is correct:
 
8422
          shared_flag='-G'
 
8423
        else
 
8424
          if test "$aix_use_runtimelinking" = yes; then
 
8425
            shared_flag='${wl}-G'
 
8426
          else
 
8427
            shared_flag='${wl}-bM:SRE'
 
8428
          fi
 
8429
        fi
 
8430
      fi
 
8431
 
 
8432
      export_dynamic_flag_spec='${wl}-bexpall'
 
8433
      # It seems that -bexpall does not export symbols beginning with
 
8434
      # underscore (_), so it is better to generate a list of symbols to export.
 
8435
      always_export_symbols=yes
 
8436
      if test "$aix_use_runtimelinking" = yes; then
 
8437
        # Warning - without using the other runtime loading flags (-brtl),
 
8438
        # -berok will link without error, but may produce a broken library.
 
8439
        allow_undefined_flag='-berok'
 
8440
        # Determine the default libpath from the value encoded in an
 
8441
        # empty executable.
 
8442
        cat >conftest.$ac_ext <<_ACEOF
 
8443
/* confdefs.h.  */
 
8444
_ACEOF
 
8445
cat confdefs.h >>conftest.$ac_ext
 
8446
cat >>conftest.$ac_ext <<_ACEOF
 
8447
/* end confdefs.h.  */
 
8448
 
 
8449
int
 
8450
main ()
 
8451
{
 
8452
 
 
8453
  ;
 
8454
  return 0;
 
8455
}
 
8456
_ACEOF
 
8457
rm -f conftest.$ac_objext conftest$ac_exeext
 
8458
if { (ac_try="$ac_link"
 
8459
case "(($ac_try" in
 
8460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8461
  *) ac_try_echo=$ac_try;;
 
8462
esac
 
8463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8464
$as_echo "$ac_try_echo") >&5
 
8465
  (eval "$ac_link") 2>conftest.er1
 
8466
  ac_status=$?
 
8467
  grep -v '^ *+' conftest.er1 >conftest.err
 
8468
  rm -f conftest.er1
 
8469
  cat conftest.err >&5
 
8470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8471
  (exit $ac_status); } && {
 
8472
         test -z "$ac_c_werror_flag" ||
 
8473
         test ! -s conftest.err
 
8474
       } && test -s conftest$ac_exeext && {
 
8475
         test "$cross_compiling" = yes ||
 
8476
         $as_test_x conftest$ac_exeext
 
8477
       }; then
 
8478
 
 
8479
lt_aix_libpath_sed='
 
8480
    /Import File Strings/,/^$/ {
 
8481
        /^0/ {
 
8482
            s/^0  *\(.*\)$/\1/
 
8483
            p
 
8484
        }
 
8485
    }'
 
8486
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8487
# Check for a 64-bit object if we didn't find anything.
 
8488
if test -z "$aix_libpath"; then
 
8489
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8490
fi
 
8491
else
 
8492
  $as_echo "$as_me: failed program was:" >&5
 
8493
sed 's/^/| /' conftest.$ac_ext >&5
 
8494
 
 
8495
 
 
8496
fi
 
8497
 
 
8498
rm -rf conftest.dSYM
 
8499
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8500
      conftest$ac_exeext conftest.$ac_ext
 
8501
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8502
 
 
8503
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8504
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8505
      else
 
8506
        if test "$host_cpu" = ia64; then
 
8507
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8508
          allow_undefined_flag="-z nodefs"
 
8509
          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"
 
8510
        else
 
8511
         # Determine the default libpath from the value encoded in an
 
8512
         # empty executable.
 
8513
         cat >conftest.$ac_ext <<_ACEOF
 
8514
/* confdefs.h.  */
 
8515
_ACEOF
 
8516
cat confdefs.h >>conftest.$ac_ext
 
8517
cat >>conftest.$ac_ext <<_ACEOF
 
8518
/* end confdefs.h.  */
 
8519
 
 
8520
int
 
8521
main ()
 
8522
{
 
8523
 
 
8524
  ;
 
8525
  return 0;
 
8526
}
 
8527
_ACEOF
 
8528
rm -f conftest.$ac_objext conftest$ac_exeext
 
8529
if { (ac_try="$ac_link"
 
8530
case "(($ac_try" in
 
8531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8532
  *) ac_try_echo=$ac_try;;
 
8533
esac
 
8534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8535
$as_echo "$ac_try_echo") >&5
 
8536
  (eval "$ac_link") 2>conftest.er1
 
8537
  ac_status=$?
 
8538
  grep -v '^ *+' conftest.er1 >conftest.err
 
8539
  rm -f conftest.er1
 
8540
  cat conftest.err >&5
 
8541
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8542
  (exit $ac_status); } && {
 
8543
         test -z "$ac_c_werror_flag" ||
 
8544
         test ! -s conftest.err
 
8545
       } && test -s conftest$ac_exeext && {
 
8546
         test "$cross_compiling" = yes ||
 
8547
         $as_test_x conftest$ac_exeext
 
8548
       }; then
 
8549
 
 
8550
lt_aix_libpath_sed='
 
8551
    /Import File Strings/,/^$/ {
 
8552
        /^0/ {
 
8553
            s/^0  *\(.*\)$/\1/
 
8554
            p
 
8555
        }
 
8556
    }'
 
8557
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8558
# Check for a 64-bit object if we didn't find anything.
 
8559
if test -z "$aix_libpath"; then
 
8560
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8561
fi
 
8562
else
 
8563
  $as_echo "$as_me: failed program was:" >&5
 
8564
sed 's/^/| /' conftest.$ac_ext >&5
 
8565
 
 
8566
 
 
8567
fi
 
8568
 
 
8569
rm -rf conftest.dSYM
 
8570
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8571
      conftest$ac_exeext conftest.$ac_ext
 
8572
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8573
 
 
8574
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8575
          # Warning - without using the other run time loading flags,
 
8576
          # -berok will link without error, but may produce a broken library.
 
8577
          no_undefined_flag=' ${wl}-bernotok'
 
8578
          allow_undefined_flag=' ${wl}-berok'
 
8579
          # Exported symbols can be pulled into shared objects from archives
 
8580
          whole_archive_flag_spec='$convenience'
 
8581
          archive_cmds_need_lc=yes
 
8582
          # This is similar to how AIX traditionally builds its shared libraries.
 
8583
          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'
 
8584
        fi
 
8585
      fi
 
8586
      ;;
 
8587
 
 
8588
    amigaos*)
 
8589
      case $host_cpu in
 
8590
      powerpc)
 
8591
            # see comment about AmigaOS4 .so support
 
8592
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8593
            archive_expsym_cmds=''
 
8594
        ;;
 
8595
      m68k)
 
8596
            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)'
 
8597
            hardcode_libdir_flag_spec='-L$libdir'
 
8598
            hardcode_minus_L=yes
 
8599
        ;;
 
8600
      esac
 
8601
      ;;
 
8602
 
 
8603
    bsdi[45]*)
 
8604
      export_dynamic_flag_spec=-rdynamic
 
8605
      ;;
 
8606
 
 
8607
    cygwin* | mingw* | pw32* | cegcc*)
 
8608
      # When not using gcc, we currently assume that we are using
 
8609
      # Microsoft Visual C++.
 
8610
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8611
      # no search path for DLLs.
 
8612
      hardcode_libdir_flag_spec=' '
 
8613
      allow_undefined_flag=unsupported
 
8614
      # Tell ltmain to make .lib files, not .a files.
 
8615
      libext=lib
 
8616
      # Tell ltmain to make .dll files, not .so files.
 
8617
      shrext_cmds=".dll"
 
8618
      # FIXME: Setting linknames here is a bad hack.
 
8619
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8620
      # The linker will automatically build a .lib file if we build a DLL.
 
8621
      old_archive_from_new_cmds='true'
 
8622
      # FIXME: Should let the user specify the lib program.
 
8623
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8624
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8625
      enable_shared_with_static_runtimes=yes
 
8626
      ;;
 
8627
 
 
8628
    darwin* | rhapsody*)
 
8629
 
 
8630
 
 
8631
  archive_cmds_need_lc=no
 
8632
  hardcode_direct=no
 
8633
  hardcode_automatic=yes
 
8634
  hardcode_shlibpath_var=unsupported
 
8635
  whole_archive_flag_spec=''
 
8636
  link_all_deplibs=yes
 
8637
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8638
  case $cc_basename in
 
8639
     ifort*) _lt_dar_can_shared=yes ;;
 
8640
     *) _lt_dar_can_shared=$GCC ;;
 
8641
  esac
 
8642
  if test "$_lt_dar_can_shared" = "yes"; then
 
8643
    output_verbose_link_cmd=echo
 
8644
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8645
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8646
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8647
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8648
 
 
8649
  else
 
8650
  ld_shlibs=no
 
8651
  fi
 
8652
 
 
8653
      ;;
 
8654
 
 
8655
    dgux*)
 
8656
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8657
      hardcode_libdir_flag_spec='-L$libdir'
 
8658
      hardcode_shlibpath_var=no
 
8659
      ;;
 
8660
 
 
8661
    freebsd1*)
 
8662
      ld_shlibs=no
 
8663
      ;;
 
8664
 
 
8665
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8666
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8667
    # does not break anything, and helps significantly (at the cost of a little
 
8668
    # extra space).
 
8669
    freebsd2.2*)
 
8670
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8671
      hardcode_libdir_flag_spec='-R$libdir'
 
8672
      hardcode_direct=yes
 
8673
      hardcode_shlibpath_var=no
 
8674
      ;;
 
8675
 
 
8676
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8677
    freebsd2*)
 
8678
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8679
      hardcode_direct=yes
 
8680
      hardcode_minus_L=yes
 
8681
      hardcode_shlibpath_var=no
 
8682
      ;;
 
8683
 
 
8684
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8685
    freebsd* | dragonfly*)
 
8686
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8687
      hardcode_libdir_flag_spec='-R$libdir'
 
8688
      hardcode_direct=yes
 
8689
      hardcode_shlibpath_var=no
 
8690
      ;;
 
8691
 
 
8692
    hpux9*)
 
8693
      if test "$GCC" = yes; then
 
8694
        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'
 
8695
      else
 
8696
        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'
 
8697
      fi
 
8698
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8699
      hardcode_libdir_separator=:
 
8700
      hardcode_direct=yes
 
8701
 
 
8702
      # hardcode_minus_L: Not really in the search PATH,
 
8703
      # but as the default location of the library.
 
8704
      hardcode_minus_L=yes
 
8705
      export_dynamic_flag_spec='${wl}-E'
 
8706
      ;;
 
8707
 
 
8708
    hpux10*)
 
8709
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8710
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8711
      else
 
8712
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8713
      fi
 
8714
      if test "$with_gnu_ld" = no; then
 
8715
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8716
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
8717
        hardcode_libdir_separator=:
 
8718
        hardcode_direct=yes
 
8719
        hardcode_direct_absolute=yes
 
8720
        export_dynamic_flag_spec='${wl}-E'
 
8721
        # hardcode_minus_L: Not really in the search PATH,
 
8722
        # but as the default location of the library.
 
8723
        hardcode_minus_L=yes
 
8724
      fi
 
8725
      ;;
 
8726
 
 
8727
    hpux11*)
 
8728
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8729
        case $host_cpu in
 
8730
        hppa*64*)
 
8731
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8732
          ;;
 
8733
        ia64*)
 
8734
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8735
          ;;
 
8736
        *)
 
8737
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8738
          ;;
 
8739
        esac
 
8740
      else
 
8741
        case $host_cpu in
 
8742
        hppa*64*)
 
8743
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8744
          ;;
 
8745
        ia64*)
 
8746
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8747
          ;;
 
8748
        *)
 
8749
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8750
          ;;
 
8751
        esac
 
8752
      fi
 
8753
      if test "$with_gnu_ld" = no; then
 
8754
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8755
        hardcode_libdir_separator=:
 
8756
 
 
8757
        case $host_cpu in
 
8758
        hppa*64*|ia64*)
 
8759
          hardcode_direct=no
 
8760
          hardcode_shlibpath_var=no
 
8761
          ;;
 
8762
        *)
 
8763
          hardcode_direct=yes
 
8764
          hardcode_direct_absolute=yes
 
8765
          export_dynamic_flag_spec='${wl}-E'
 
8766
 
 
8767
          # hardcode_minus_L: Not really in the search PATH,
 
8768
          # but as the default location of the library.
 
8769
          hardcode_minus_L=yes
 
8770
          ;;
 
8771
        esac
 
8772
      fi
 
8773
      ;;
 
8774
 
 
8775
    irix5* | irix6* | nonstopux*)
 
8776
      if test "$GCC" = yes; then
 
8777
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8778
        # Try to use the -exported_symbol ld option, if it does not
 
8779
        # work, assume that -exports_file does not work either and
 
8780
        # implicitly export all symbols.
 
8781
        save_LDFLAGS="$LDFLAGS"
 
8782
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
8783
        cat >conftest.$ac_ext <<_ACEOF
 
8784
int foo(void) {}
 
8785
_ACEOF
 
8786
rm -f conftest.$ac_objext conftest$ac_exeext
 
8787
if { (ac_try="$ac_link"
 
8788
case "(($ac_try" in
 
8789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8790
  *) ac_try_echo=$ac_try;;
 
8791
esac
 
8792
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8793
$as_echo "$ac_try_echo") >&5
 
8794
  (eval "$ac_link") 2>conftest.er1
 
8795
  ac_status=$?
 
8796
  grep -v '^ *+' conftest.er1 >conftest.err
 
8797
  rm -f conftest.er1
 
8798
  cat conftest.err >&5
 
8799
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8800
  (exit $ac_status); } && {
 
8801
         test -z "$ac_c_werror_flag" ||
 
8802
         test ! -s conftest.err
 
8803
       } && test -s conftest$ac_exeext && {
 
8804
         test "$cross_compiling" = yes ||
 
8805
         $as_test_x conftest$ac_exeext
 
8806
       }; then
 
8807
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
8808
 
 
8809
else
 
8810
  $as_echo "$as_me: failed program was:" >&5
 
8811
sed 's/^/| /' conftest.$ac_ext >&5
 
8812
 
 
8813
 
 
8814
fi
 
8815
 
 
8816
rm -rf conftest.dSYM
 
8817
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8818
      conftest$ac_exeext conftest.$ac_ext
 
8819
        LDFLAGS="$save_LDFLAGS"
 
8820
      else
 
8821
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8822
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
8823
      fi
 
8824
      archive_cmds_need_lc='no'
 
8825
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8826
      hardcode_libdir_separator=:
 
8827
      inherit_rpath=yes
 
8828
      link_all_deplibs=yes
 
8829
      ;;
 
8830
 
 
8831
    netbsd*)
 
8832
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8833
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8834
      else
 
8835
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8836
      fi
 
8837
      hardcode_libdir_flag_spec='-R$libdir'
 
8838
      hardcode_direct=yes
 
8839
      hardcode_shlibpath_var=no
 
8840
      ;;
 
8841
 
 
8842
    newsos6)
 
8843
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8844
      hardcode_direct=yes
 
8845
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8846
      hardcode_libdir_separator=:
 
8847
      hardcode_shlibpath_var=no
 
8848
      ;;
 
8849
 
 
8850
    *nto* | *qnx*)
 
8851
      ;;
 
8852
 
 
8853
    openbsd*)
 
8854
      if test -f /usr/libexec/ld.so; then
 
8855
        hardcode_direct=yes
 
8856
        hardcode_shlibpath_var=no
 
8857
        hardcode_direct_absolute=yes
 
8858
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8859
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8860
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8861
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8862
          export_dynamic_flag_spec='${wl}-E'
 
8863
        else
 
8864
          case $host_os in
 
8865
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8866
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8867
             hardcode_libdir_flag_spec='-R$libdir'
 
8868
             ;;
 
8869
           *)
 
8870
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8871
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8872
             ;;
 
8873
          esac
 
8874
        fi
 
8875
      else
 
8876
        ld_shlibs=no
 
8877
      fi
 
8878
      ;;
 
8879
 
 
8880
    os2*)
 
8881
      hardcode_libdir_flag_spec='-L$libdir'
 
8882
      hardcode_minus_L=yes
 
8883
      allow_undefined_flag=unsupported
 
8884
      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'
 
8885
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8886
      ;;
 
8887
 
 
8888
    osf3*)
 
8889
      if test "$GCC" = yes; then
 
8890
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8891
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8892
      else
 
8893
        allow_undefined_flag=' -expect_unresolved \*'
 
8894
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8895
      fi
 
8896
      archive_cmds_need_lc='no'
 
8897
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8898
      hardcode_libdir_separator=:
 
8899
      ;;
 
8900
 
 
8901
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8902
      if test "$GCC" = yes; then
 
8903
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8904
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8905
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8906
      else
 
8907
        allow_undefined_flag=' -expect_unresolved \*'
 
8908
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8909
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
8910
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
8911
 
 
8912
        # Both c and cxx compiler support -rpath directly
 
8913
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8914
      fi
 
8915
      archive_cmds_need_lc='no'
 
8916
      hardcode_libdir_separator=:
 
8917
      ;;
 
8918
 
 
8919
    solaris*)
 
8920
      no_undefined_flag=' -z defs'
 
8921
      if test "$GCC" = yes; then
 
8922
        wlarc='${wl}'
 
8923
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8924
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8925
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8926
      else
 
8927
        case `$CC -V 2>&1` in
 
8928
        *"Compilers 5.0"*)
 
8929
          wlarc=''
 
8930
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8931
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8932
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
8933
          ;;
 
8934
        *)
 
8935
          wlarc='${wl}'
 
8936
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8937
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8938
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8939
          ;;
 
8940
        esac
 
8941
      fi
 
8942
      hardcode_libdir_flag_spec='-R$libdir'
 
8943
      hardcode_shlibpath_var=no
 
8944
      case $host_os in
 
8945
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8946
      *)
 
8947
        # The compiler driver will combine and reorder linker options,
 
8948
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8949
        # but is careful enough not to reorder.
 
8950
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8951
        if test "$GCC" = yes; then
 
8952
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8953
        else
 
8954
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8955
        fi
 
8956
        ;;
 
8957
      esac
 
8958
      link_all_deplibs=yes
 
8959
      ;;
 
8960
 
 
8961
    sunos4*)
 
8962
      if test "x$host_vendor" = xsequent; then
 
8963
        # Use $CC to link under sequent, because it throws in some extra .o
 
8964
        # files that make .init and .fini sections work.
 
8965
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8966
      else
 
8967
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8968
      fi
 
8969
      hardcode_libdir_flag_spec='-L$libdir'
 
8970
      hardcode_direct=yes
 
8971
      hardcode_minus_L=yes
 
8972
      hardcode_shlibpath_var=no
 
8973
      ;;
 
8974
 
 
8975
    sysv4)
 
8976
      case $host_vendor in
 
8977
        sni)
 
8978
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8979
          hardcode_direct=yes # is this really true???
 
8980
        ;;
 
8981
        siemens)
 
8982
          ## LD is ld it makes a PLAMLIB
 
8983
          ## CC just makes a GrossModule.
 
8984
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8985
          reload_cmds='$CC -r -o $output$reload_objs'
 
8986
          hardcode_direct=no
 
8987
        ;;
 
8988
        motorola)
 
8989
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8990
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8991
        ;;
 
8992
      esac
 
8993
      runpath_var='LD_RUN_PATH'
 
8994
      hardcode_shlibpath_var=no
 
8995
      ;;
 
8996
 
 
8997
    sysv4.3*)
 
8998
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8999
      hardcode_shlibpath_var=no
 
9000
      export_dynamic_flag_spec='-Bexport'
 
9001
      ;;
 
9002
 
 
9003
    sysv4*MP*)
 
9004
      if test -d /usr/nec; then
 
9005
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9006
        hardcode_shlibpath_var=no
 
9007
        runpath_var=LD_RUN_PATH
 
9008
        hardcode_runpath_var=yes
 
9009
        ld_shlibs=yes
 
9010
      fi
 
9011
      ;;
 
9012
 
 
9013
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9014
      no_undefined_flag='${wl}-z,text'
 
9015
      archive_cmds_need_lc=no
 
9016
      hardcode_shlibpath_var=no
 
9017
      runpath_var='LD_RUN_PATH'
 
9018
 
 
9019
      if test "$GCC" = yes; then
 
9020
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9021
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9022
      else
 
9023
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9024
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9025
      fi
 
9026
      ;;
 
9027
 
 
9028
    sysv5* | sco3.2v5* | sco5v6*)
 
9029
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9030
      # link with -lc, and that would cause any symbols used from libc to
 
9031
      # always be unresolved, which means just about no library would
 
9032
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9033
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9034
      # as -z defs.
 
9035
      no_undefined_flag='${wl}-z,text'
 
9036
      allow_undefined_flag='${wl}-z,nodefs'
 
9037
      archive_cmds_need_lc=no
 
9038
      hardcode_shlibpath_var=no
 
9039
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9040
      hardcode_libdir_separator=':'
 
9041
      link_all_deplibs=yes
 
9042
      export_dynamic_flag_spec='${wl}-Bexport'
 
9043
      runpath_var='LD_RUN_PATH'
 
9044
 
 
9045
      if test "$GCC" = yes; then
 
9046
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9047
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9048
      else
 
9049
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9050
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9051
      fi
 
9052
      ;;
 
9053
 
 
9054
    uts4*)
 
9055
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9056
      hardcode_libdir_flag_spec='-L$libdir'
 
9057
      hardcode_shlibpath_var=no
 
9058
      ;;
 
9059
 
 
9060
    *)
 
9061
      ld_shlibs=no
 
9062
      ;;
 
9063
    esac
 
9064
 
 
9065
    if test x$host_vendor = xsni; then
 
9066
      case $host in
 
9067
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9068
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9069
        ;;
 
9070
      esac
 
9071
    fi
 
9072
  fi
 
9073
 
 
9074
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9075
$as_echo "$ld_shlibs" >&6; }
 
9076
test "$ld_shlibs" = no && can_build_shared=no
 
9077
 
 
9078
with_gnu_ld=$with_gnu_ld
 
9079
 
 
9080
 
 
9081
 
 
9082
 
 
9083
 
 
9084
 
 
9085
 
 
9086
 
 
9087
 
 
9088
 
 
9089
 
 
9090
 
 
9091
 
 
9092
 
 
9093
 
 
9094
#
 
9095
# Do we need to explicitly link libc?
 
9096
#
 
9097
case "x$archive_cmds_need_lc" in
 
9098
x|xyes)
 
9099
  # Assume -lc should be added
 
9100
  archive_cmds_need_lc=yes
 
9101
 
 
9102
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9103
    case $archive_cmds in
 
9104
    *'~'*)
 
9105
      # FIXME: we may have to deal with multi-command sequences.
 
9106
      ;;
 
9107
    '$CC '*)
 
9108
      # Test whether the compiler implicitly links with -lc since on some
 
9109
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9110
      # to ld, don't add -lc before -lgcc.
 
9111
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9112
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9113
      $RM conftest*
 
9114
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9115
 
 
9116
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9117
  (eval $ac_compile) 2>&5
 
9118
  ac_status=$?
 
9119
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9120
  (exit $ac_status); } 2>conftest.err; then
 
9121
        soname=conftest
 
9122
        lib=conftest
 
9123
        libobjs=conftest.$ac_objext
 
9124
        deplibs=
 
9125
        wl=$lt_prog_compiler_wl
 
9126
        pic_flag=$lt_prog_compiler_pic
 
9127
        compiler_flags=-v
 
9128
        linker_flags=-v
 
9129
        verstring=
 
9130
        output_objdir=.
 
9131
        libname=conftest
 
9132
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9133
        allow_undefined_flag=
 
9134
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9135
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9136
  ac_status=$?
 
9137
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9138
  (exit $ac_status); }
 
9139
        then
 
9140
          archive_cmds_need_lc=no
 
9141
        else
 
9142
          archive_cmds_need_lc=yes
 
9143
        fi
 
9144
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9145
      else
 
9146
        cat conftest.err 1>&5
 
9147
      fi
 
9148
      $RM conftest*
 
9149
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9150
$as_echo "$archive_cmds_need_lc" >&6; }
 
9151
      ;;
 
9152
    esac
 
9153
  fi
 
9154
  ;;
 
9155
esac
 
9156
 
 
9157
 
 
9158
 
 
9159
 
 
9160
 
 
9161
 
 
9162
 
 
9163
 
 
9164
 
 
9165
 
 
9166
 
 
9167
 
 
9168
 
 
9169
 
 
9170
 
 
9171
 
 
9172
 
 
9173
 
 
9174
 
 
9175
 
 
9176
 
 
9177
 
 
9178
 
 
9179
 
 
9180
 
 
9181
 
 
9182
 
 
9183
 
 
9184
 
 
9185
 
 
9186
 
 
9187
 
 
9188
 
 
9189
 
 
9190
 
 
9191
 
 
9192
 
 
9193
 
 
9194
 
 
9195
 
 
9196
 
 
9197
 
 
9198
 
 
9199
 
 
9200
 
 
9201
 
 
9202
 
 
9203
 
 
9204
 
 
9205
 
 
9206
 
 
9207
 
 
9208
 
 
9209
 
 
9210
 
 
9211
 
 
9212
 
 
9213
 
 
9214
 
 
9215
 
 
9216
 
 
9217
 
 
9218
 
 
9219
 
 
9220
 
 
9221
 
 
9222
 
 
9223
 
 
9224
 
 
9225
 
 
9226
 
 
9227
 
 
9228
 
 
9229
 
 
9230
 
 
9231
 
 
9232
 
 
9233
 
 
9234
 
 
9235
 
 
9236
 
 
9237
 
 
9238
 
 
9239
 
 
9240
 
 
9241
 
 
9242
 
 
9243
 
 
9244
 
 
9245
 
 
9246
 
 
9247
 
 
9248
 
 
9249
 
 
9250
 
 
9251
 
 
9252
 
 
9253
 
 
9254
 
 
9255
 
 
9256
 
 
9257
 
 
9258
 
 
9259
 
 
9260
 
 
9261
 
 
9262
 
 
9263
 
 
9264
 
 
9265
 
 
9266
 
 
9267
 
 
9268
 
 
9269
 
 
9270
 
 
9271
 
 
9272
 
 
9273
 
 
9274
 
 
9275
 
 
9276
 
 
9277
 
 
9278
 
 
9279
 
 
9280
 
 
9281
 
 
9282
 
 
9283
 
 
9284
 
 
9285
 
 
9286
 
 
9287
 
 
9288
 
 
9289
 
 
9290
 
 
9291
 
 
9292
 
 
9293
 
 
9294
 
 
9295
 
 
9296
 
 
9297
 
 
9298
 
 
9299
 
 
9300
 
 
9301
 
 
9302
 
 
9303
 
 
9304
 
 
9305
 
 
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
9311
 
 
9312
 
 
9313
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9314
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9315
 
 
9316
if test "$GCC" = yes; then
 
9317
  case $host_os in
 
9318
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9319
    *) lt_awk_arg="/^libraries:/" ;;
 
9320
  esac
 
9321
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9322
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9323
    # if the path contains ";" then we assume it to be the separator
 
9324
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9325
    # assumed that no part of a normal pathname contains ";" but that should
 
9326
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9327
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9328
  else
 
9329
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9330
  fi
 
9331
  # Ok, now we have the path, separated by spaces, we can step through it
 
9332
  # and add multilib dir if necessary.
 
9333
  lt_tmp_lt_search_path_spec=
 
9334
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9335
  for lt_sys_path in $lt_search_path_spec; do
 
9336
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9337
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9338
    else
 
9339
      test -d "$lt_sys_path" && \
 
9340
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9341
    fi
 
9342
  done
 
9343
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9344
BEGIN {RS=" "; FS="/|\n";} {
 
9345
  lt_foo="";
 
9346
  lt_count=0;
 
9347
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9348
    if ($lt_i != "" && $lt_i != ".") {
 
9349
      if ($lt_i == "..") {
 
9350
        lt_count++;
 
9351
      } else {
 
9352
        if (lt_count == 0) {
 
9353
          lt_foo="/" $lt_i lt_foo;
 
9354
        } else {
 
9355
          lt_count--;
 
9356
        }
 
9357
      }
 
9358
    }
 
9359
  }
 
9360
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9361
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9362
}'`
 
9363
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9364
else
 
9365
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9366
fi
 
9367
library_names_spec=
 
9368
libname_spec='lib$name'
 
9369
soname_spec=
 
9370
shrext_cmds=".so"
 
9371
postinstall_cmds=
 
9372
postuninstall_cmds=
 
9373
finish_cmds=
 
9374
finish_eval=
 
9375
shlibpath_var=
 
9376
shlibpath_overrides_runpath=unknown
 
9377
version_type=none
 
9378
dynamic_linker="$host_os ld.so"
 
9379
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9380
need_lib_prefix=unknown
 
9381
hardcode_into_libs=no
 
9382
 
 
9383
# when you set need_version to no, make sure it does not cause -set_version
 
9384
# flags to be left without arguments
 
9385
need_version=unknown
 
9386
 
 
9387
case $host_os in
 
9388
aix3*)
 
9389
  version_type=linux
 
9390
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9391
  shlibpath_var=LIBPATH
 
9392
 
 
9393
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9394
  soname_spec='${libname}${release}${shared_ext}$major'
 
9395
  ;;
 
9396
 
 
9397
aix[4-9]*)
 
9398
  version_type=linux
 
9399
  need_lib_prefix=no
 
9400
  need_version=no
 
9401
  hardcode_into_libs=yes
 
9402
  if test "$host_cpu" = ia64; then
 
9403
    # AIX 5 supports IA64
 
9404
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9405
    shlibpath_var=LD_LIBRARY_PATH
 
9406
  else
 
9407
    # With GCC up to 2.95.x, collect2 would create an import file
 
9408
    # for dependence libraries.  The import file would start with
 
9409
    # the line `#! .'.  This would cause the generated library to
 
9410
    # depend on `.', always an invalid library.  This was fixed in
 
9411
    # development snapshots of GCC prior to 3.0.
 
9412
    case $host_os in
 
9413
      aix4 | aix4.[01] | aix4.[01].*)
 
9414
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9415
           echo ' yes '
 
9416
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9417
        :
 
9418
      else
 
9419
        can_build_shared=no
 
9420
      fi
 
9421
      ;;
 
9422
    esac
 
9423
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9424
    # soname into executable. Probably we can add versioning support to
 
9425
    # collect2, so additional links can be useful in future.
 
9426
    if test "$aix_use_runtimelinking" = yes; then
 
9427
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9428
      # instead of lib<name>.a to let people know that these are not
 
9429
      # typical AIX shared libraries.
 
9430
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9431
    else
 
9432
      # We preserve .a as extension for shared libraries through AIX4.2
 
9433
      # and later when we are not doing run time linking.
 
9434
      library_names_spec='${libname}${release}.a $libname.a'
 
9435
      soname_spec='${libname}${release}${shared_ext}$major'
 
9436
    fi
 
9437
    shlibpath_var=LIBPATH
 
9438
  fi
 
9439
  ;;
 
9440
 
 
9441
amigaos*)
 
9442
  case $host_cpu in
 
9443
  powerpc)
 
9444
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9445
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9446
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9447
    ;;
 
9448
  m68k)
 
9449
    library_names_spec='$libname.ixlibrary $libname.a'
 
9450
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9451
    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'
 
9452
    ;;
 
9453
  esac
 
9454
  ;;
 
9455
 
 
9456
beos*)
 
9457
  library_names_spec='${libname}${shared_ext}'
 
9458
  dynamic_linker="$host_os ld.so"
 
9459
  shlibpath_var=LIBRARY_PATH
 
9460
  ;;
 
9461
 
 
9462
bsdi[45]*)
 
9463
  version_type=linux
 
9464
  need_version=no
 
9465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9466
  soname_spec='${libname}${release}${shared_ext}$major'
 
9467
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9468
  shlibpath_var=LD_LIBRARY_PATH
 
9469
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9470
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9471
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9472
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9473
  # libtool to hard-code these into programs
 
9474
  ;;
 
9475
 
 
9476
cygwin* | mingw* | pw32* | cegcc*)
 
9477
  version_type=windows
 
9478
  shrext_cmds=".dll"
 
9479
  need_version=no
 
9480
  need_lib_prefix=no
 
9481
 
 
9482
  case $GCC,$host_os in
 
9483
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9484
    library_names_spec='$libname.dll.a'
 
9485
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9486
    postinstall_cmds='base_file=`basename \${file}`~
 
9487
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9488
      dldir=$destdir/`dirname \$dlpath`~
 
9489
      test -d \$dldir || mkdir -p \$dldir~
 
9490
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9491
      chmod a+x \$dldir/$dlname~
 
9492
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9493
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9494
      fi'
 
9495
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9496
      dlpath=$dir/\$dldll~
 
9497
       $RM \$dlpath'
 
9498
    shlibpath_overrides_runpath=yes
 
9499
 
 
9500
    case $host_os in
 
9501
    cygwin*)
 
9502
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9503
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9504
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9505
      ;;
 
9506
    mingw* | cegcc*)
 
9507
      # MinGW DLLs use traditional 'lib' prefix
 
9508
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9509
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9510
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9511
        # It is most probably a Windows format PATH printed by
 
9512
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9513
        # path with ; separators, and with drive letters. We can handle the
 
9514
        # drive letters (cygwin fileutils understands them), so leave them,
 
9515
        # especially as we might pass files found there to a mingw objdump,
 
9516
        # which wouldn't understand a cygwinified path. Ahh.
 
9517
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9518
      else
 
9519
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9520
      fi
 
9521
      ;;
 
9522
    pw32*)
 
9523
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9524
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9525
      ;;
 
9526
    esac
 
9527
    ;;
 
9528
 
 
9529
  *)
 
9530
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9531
    ;;
 
9532
  esac
 
9533
  dynamic_linker='Win32 ld.exe'
 
9534
  # FIXME: first we should search . and the directory the executable is in
 
9535
  shlibpath_var=PATH
 
9536
  ;;
 
9537
 
 
9538
darwin* | rhapsody*)
 
9539
  dynamic_linker="$host_os dyld"
 
9540
  version_type=darwin
 
9541
  need_lib_prefix=no
 
9542
  need_version=no
 
9543
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9544
  soname_spec='${libname}${release}${major}$shared_ext'
 
9545
  shlibpath_overrides_runpath=yes
 
9546
  shlibpath_var=DYLD_LIBRARY_PATH
 
9547
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9548
 
 
9549
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9550
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9551
  ;;
 
9552
 
 
9553
dgux*)
 
9554
  version_type=linux
 
9555
  need_lib_prefix=no
 
9556
  need_version=no
 
9557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9558
  soname_spec='${libname}${release}${shared_ext}$major'
 
9559
  shlibpath_var=LD_LIBRARY_PATH
 
9560
  ;;
 
9561
 
 
9562
freebsd1*)
 
9563
  dynamic_linker=no
 
9564
  ;;
 
9565
 
 
9566
freebsd* | dragonfly*)
 
9567
  # DragonFly does not have aout.  When/if they implement a new
 
9568
  # versioning mechanism, adjust this.
 
9569
  if test -x /usr/bin/objformat; then
 
9570
    objformat=`/usr/bin/objformat`
 
9571
  else
 
9572
    case $host_os in
 
9573
    freebsd[123]*) objformat=aout ;;
 
9574
    *) objformat=elf ;;
 
9575
    esac
 
9576
  fi
 
9577
  version_type=freebsd-$objformat
 
9578
  case $version_type in
 
9579
    freebsd-elf*)
 
9580
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9581
      need_version=no
 
9582
      need_lib_prefix=no
 
9583
      ;;
 
9584
    freebsd-*)
 
9585
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9586
      need_version=yes
 
9587
      ;;
 
9588
  esac
 
9589
  shlibpath_var=LD_LIBRARY_PATH
 
9590
  case $host_os in
 
9591
  freebsd2*)
 
9592
    shlibpath_overrides_runpath=yes
 
9593
    ;;
 
9594
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9595
    shlibpath_overrides_runpath=yes
 
9596
    hardcode_into_libs=yes
 
9597
    ;;
 
9598
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9599
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9600
    shlibpath_overrides_runpath=no
 
9601
    hardcode_into_libs=yes
 
9602
    ;;
 
9603
  *) # from 4.6 on, and DragonFly
 
9604
    shlibpath_overrides_runpath=yes
 
9605
    hardcode_into_libs=yes
 
9606
    ;;
 
9607
  esac
 
9608
  ;;
 
9609
 
 
9610
gnu*)
 
9611
  version_type=linux
 
9612
  need_lib_prefix=no
 
9613
  need_version=no
 
9614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9615
  soname_spec='${libname}${release}${shared_ext}$major'
 
9616
  shlibpath_var=LD_LIBRARY_PATH
 
9617
  hardcode_into_libs=yes
 
9618
  ;;
 
9619
 
 
9620
hpux9* | hpux10* | hpux11*)
 
9621
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9622
  # link against other versions.
 
9623
  version_type=sunos
 
9624
  need_lib_prefix=no
 
9625
  need_version=no
 
9626
  case $host_cpu in
 
9627
  ia64*)
 
9628
    shrext_cmds='.so'
 
9629
    hardcode_into_libs=yes
 
9630
    dynamic_linker="$host_os dld.so"
 
9631
    shlibpath_var=LD_LIBRARY_PATH
 
9632
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9633
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9634
    soname_spec='${libname}${release}${shared_ext}$major'
 
9635
    if test "X$HPUX_IA64_MODE" = X32; then
 
9636
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9637
    else
 
9638
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9639
    fi
 
9640
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9641
    ;;
 
9642
  hppa*64*)
 
9643
    shrext_cmds='.sl'
 
9644
    hardcode_into_libs=yes
 
9645
    dynamic_linker="$host_os dld.sl"
 
9646
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9647
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9648
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9649
    soname_spec='${libname}${release}${shared_ext}$major'
 
9650
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9651
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9652
    ;;
 
9653
  *)
 
9654
    shrext_cmds='.sl'
 
9655
    dynamic_linker="$host_os dld.sl"
 
9656
    shlibpath_var=SHLIB_PATH
 
9657
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9658
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9659
    soname_spec='${libname}${release}${shared_ext}$major'
 
9660
    ;;
 
9661
  esac
 
9662
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9663
  postinstall_cmds='chmod 555 $lib'
 
9664
  ;;
 
9665
 
 
9666
interix[3-9]*)
 
9667
  version_type=linux
 
9668
  need_lib_prefix=no
 
9669
  need_version=no
 
9670
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9671
  soname_spec='${libname}${release}${shared_ext}$major'
 
9672
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9673
  shlibpath_var=LD_LIBRARY_PATH
 
9674
  shlibpath_overrides_runpath=no
 
9675
  hardcode_into_libs=yes
 
9676
  ;;
 
9677
 
 
9678
irix5* | irix6* | nonstopux*)
 
9679
  case $host_os in
 
9680
    nonstopux*) version_type=nonstopux ;;
 
9681
    *)
 
9682
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9683
                version_type=linux
 
9684
        else
 
9685
                version_type=irix
 
9686
        fi ;;
 
9687
  esac
 
9688
  need_lib_prefix=no
 
9689
  need_version=no
 
9690
  soname_spec='${libname}${release}${shared_ext}$major'
 
9691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9692
  case $host_os in
 
9693
  irix5* | nonstopux*)
 
9694
    libsuff= shlibsuff=
 
9695
    ;;
 
9696
  *)
 
9697
    case $LD in # libtool.m4 will add one of these switches to LD
 
9698
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9699
      libsuff= shlibsuff= libmagic=32-bit;;
 
9700
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9701
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9702
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9703
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9704
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9705
    esac
 
9706
    ;;
 
9707
  esac
 
9708
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9709
  shlibpath_overrides_runpath=no
 
9710
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9711
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9712
  hardcode_into_libs=yes
 
9713
  ;;
 
9714
 
 
9715
# No shared lib support for Linux oldld, aout, or coff.
 
9716
linux*oldld* | linux*aout* | linux*coff*)
 
9717
  dynamic_linker=no
 
9718
  ;;
 
9719
 
 
9720
# This must be Linux ELF.
 
9721
linux* | k*bsd*-gnu)
 
9722
  version_type=linux
 
9723
  need_lib_prefix=no
 
9724
  need_version=no
 
9725
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9726
  soname_spec='${libname}${release}${shared_ext}$major'
 
9727
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9728
  shlibpath_var=LD_LIBRARY_PATH
 
9729
  shlibpath_overrides_runpath=no
 
9730
  # Some binutils ld are patched to set DT_RUNPATH
 
9731
  save_LDFLAGS=$LDFLAGS
 
9732
  save_libdir=$libdir
 
9733
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
9734
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
9735
  cat >conftest.$ac_ext <<_ACEOF
 
9736
/* confdefs.h.  */
 
9737
_ACEOF
 
9738
cat confdefs.h >>conftest.$ac_ext
 
9739
cat >>conftest.$ac_ext <<_ACEOF
 
9740
/* end confdefs.h.  */
 
9741
 
 
9742
int
 
9743
main ()
 
9744
{
 
9745
 
 
9746
  ;
 
9747
  return 0;
 
9748
}
 
9749
_ACEOF
 
9750
rm -f conftest.$ac_objext conftest$ac_exeext
 
9751
if { (ac_try="$ac_link"
 
9752
case "(($ac_try" in
 
9753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9754
  *) ac_try_echo=$ac_try;;
 
9755
esac
 
9756
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9757
$as_echo "$ac_try_echo") >&5
 
9758
  (eval "$ac_link") 2>conftest.er1
 
9759
  ac_status=$?
 
9760
  grep -v '^ *+' conftest.er1 >conftest.err
 
9761
  rm -f conftest.er1
 
9762
  cat conftest.err >&5
 
9763
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9764
  (exit $ac_status); } && {
 
9765
         test -z "$ac_c_werror_flag" ||
 
9766
         test ! -s conftest.err
 
9767
       } && test -s conftest$ac_exeext && {
 
9768
         test "$cross_compiling" = yes ||
 
9769
         $as_test_x conftest$ac_exeext
 
9770
       }; then
 
9771
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
9772
  shlibpath_overrides_runpath=yes
 
9773
fi
 
9774
 
 
9775
else
 
9776
  $as_echo "$as_me: failed program was:" >&5
 
9777
sed 's/^/| /' conftest.$ac_ext >&5
 
9778
 
 
9779
 
 
9780
fi
 
9781
 
 
9782
rm -rf conftest.dSYM
 
9783
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9784
      conftest$ac_exeext conftest.$ac_ext
 
9785
  LDFLAGS=$save_LDFLAGS
 
9786
  libdir=$save_libdir
 
9787
 
 
9788
  # This implies no fast_install, which is unacceptable.
 
9789
  # Some rework will be needed to allow for fast_install
 
9790
  # before this can be enabled.
 
9791
  hardcode_into_libs=yes
 
9792
 
 
9793
  # Add ABI-specific directories to the system library path.
 
9794
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
9795
 
 
9796
  # Append ld.so.conf contents to the search path
 
9797
  if test -f /etc/ld.so.conf; then
 
9798
    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' ' '`
 
9799
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9800
  fi
 
9801
 
 
9802
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9803
  # powerpc, because MkLinux only supported shared libraries with the
 
9804
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9805
  # most powerpc-linux boxes support dynamic linking these days and
 
9806
  # people can always --disable-shared, the test was removed, and we
 
9807
  # assume the GNU/Linux dynamic linker is in use.
 
9808
  dynamic_linker='GNU/Linux ld.so'
 
9809
  ;;
 
9810
 
 
9811
netbsd*)
 
9812
  version_type=sunos
 
9813
  need_lib_prefix=no
 
9814
  need_version=no
 
9815
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9816
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9817
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9818
    dynamic_linker='NetBSD (a.out) ld.so'
 
9819
  else
 
9820
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9821
    soname_spec='${libname}${release}${shared_ext}$major'
 
9822
    dynamic_linker='NetBSD ld.elf_so'
 
9823
  fi
 
9824
  shlibpath_var=LD_LIBRARY_PATH
 
9825
  shlibpath_overrides_runpath=yes
 
9826
  hardcode_into_libs=yes
 
9827
  ;;
 
9828
 
 
9829
newsos6)
 
9830
  version_type=linux
 
9831
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9832
  shlibpath_var=LD_LIBRARY_PATH
 
9833
  shlibpath_overrides_runpath=yes
 
9834
  ;;
 
9835
 
 
9836
*nto* | *qnx*)
 
9837
  version_type=qnx
 
9838
  need_lib_prefix=no
 
9839
  need_version=no
 
9840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9841
  soname_spec='${libname}${release}${shared_ext}$major'
 
9842
  shlibpath_var=LD_LIBRARY_PATH
 
9843
  shlibpath_overrides_runpath=no
 
9844
  hardcode_into_libs=yes
 
9845
  dynamic_linker='ldqnx.so'
 
9846
  ;;
 
9847
 
 
9848
openbsd*)
 
9849
  version_type=sunos
 
9850
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9851
  need_lib_prefix=no
 
9852
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9853
  case $host_os in
 
9854
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
9855
    *)                          need_version=no  ;;
 
9856
  esac
 
9857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9858
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9859
  shlibpath_var=LD_LIBRARY_PATH
 
9860
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9861
    case $host_os in
 
9862
      openbsd2.[89] | openbsd2.[89].*)
 
9863
        shlibpath_overrides_runpath=no
 
9864
        ;;
 
9865
      *)
 
9866
        shlibpath_overrides_runpath=yes
 
9867
        ;;
 
9868
      esac
 
9869
  else
 
9870
    shlibpath_overrides_runpath=yes
 
9871
  fi
 
9872
  ;;
 
9873
 
 
9874
os2*)
 
9875
  libname_spec='$name'
 
9876
  shrext_cmds=".dll"
 
9877
  need_lib_prefix=no
 
9878
  library_names_spec='$libname${shared_ext} $libname.a'
 
9879
  dynamic_linker='OS/2 ld.exe'
 
9880
  shlibpath_var=LIBPATH
 
9881
  ;;
 
9882
 
 
9883
osf3* | osf4* | osf5*)
 
9884
  version_type=osf
 
9885
  need_lib_prefix=no
 
9886
  need_version=no
 
9887
  soname_spec='${libname}${release}${shared_ext}$major'
 
9888
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9889
  shlibpath_var=LD_LIBRARY_PATH
 
9890
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9891
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9892
  ;;
 
9893
 
 
9894
rdos*)
 
9895
  dynamic_linker=no
 
9896
  ;;
 
9897
 
 
9898
solaris*)
 
9899
  version_type=linux
 
9900
  need_lib_prefix=no
 
9901
  need_version=no
 
9902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9903
  soname_spec='${libname}${release}${shared_ext}$major'
 
9904
  shlibpath_var=LD_LIBRARY_PATH
 
9905
  shlibpath_overrides_runpath=yes
 
9906
  hardcode_into_libs=yes
 
9907
  # ldd complains unless libraries are executable
 
9908
  postinstall_cmds='chmod +x $lib'
 
9909
  ;;
 
9910
 
 
9911
sunos4*)
 
9912
  version_type=sunos
 
9913
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9914
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9915
  shlibpath_var=LD_LIBRARY_PATH
 
9916
  shlibpath_overrides_runpath=yes
 
9917
  if test "$with_gnu_ld" = yes; then
 
9918
    need_lib_prefix=no
 
9919
  fi
 
9920
  need_version=yes
 
9921
  ;;
 
9922
 
 
9923
sysv4 | sysv4.3*)
 
9924
  version_type=linux
 
9925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9926
  soname_spec='${libname}${release}${shared_ext}$major'
 
9927
  shlibpath_var=LD_LIBRARY_PATH
 
9928
  case $host_vendor in
 
9929
    sni)
 
9930
      shlibpath_overrides_runpath=no
 
9931
      need_lib_prefix=no
 
9932
      runpath_var=LD_RUN_PATH
 
9933
      ;;
 
9934
    siemens)
 
9935
      need_lib_prefix=no
 
9936
      ;;
 
9937
    motorola)
 
9938
      need_lib_prefix=no
 
9939
      need_version=no
 
9940
      shlibpath_overrides_runpath=no
 
9941
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9942
      ;;
 
9943
  esac
 
9944
  ;;
 
9945
 
 
9946
sysv4*MP*)
 
9947
  if test -d /usr/nec ;then
 
9948
    version_type=linux
 
9949
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9950
    soname_spec='$libname${shared_ext}.$major'
 
9951
    shlibpath_var=LD_LIBRARY_PATH
 
9952
  fi
 
9953
  ;;
 
9954
 
 
9955
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9956
  version_type=freebsd-elf
 
9957
  need_lib_prefix=no
 
9958
  need_version=no
 
9959
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9960
  soname_spec='${libname}${release}${shared_ext}$major'
 
9961
  shlibpath_var=LD_LIBRARY_PATH
 
9962
  shlibpath_overrides_runpath=yes
 
9963
  hardcode_into_libs=yes
 
9964
  if test "$with_gnu_ld" = yes; then
 
9965
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9966
  else
 
9967
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9968
    case $host_os in
 
9969
      sco3.2v5*)
 
9970
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9971
        ;;
 
9972
    esac
 
9973
  fi
 
9974
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9975
  ;;
 
9976
 
 
9977
tpf*)
 
9978
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
9979
  version_type=linux
 
9980
  need_lib_prefix=no
 
9981
  need_version=no
 
9982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9983
  shlibpath_var=LD_LIBRARY_PATH
 
9984
  shlibpath_overrides_runpath=no
 
9985
  hardcode_into_libs=yes
 
9986
  ;;
 
9987
 
 
9988
uts4*)
 
9989
  version_type=linux
 
9990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9991
  soname_spec='${libname}${release}${shared_ext}$major'
 
9992
  shlibpath_var=LD_LIBRARY_PATH
 
9993
  ;;
 
9994
 
 
9995
*)
 
9996
  dynamic_linker=no
 
9997
  ;;
 
9998
esac
 
9999
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10000
$as_echo "$dynamic_linker" >&6; }
 
10001
test "$dynamic_linker" = no && can_build_shared=no
 
10002
 
 
10003
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10004
if test "$GCC" = yes; then
 
10005
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10006
fi
 
10007
 
 
10008
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10009
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10010
fi
 
10011
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10012
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10013
fi
 
10014
 
 
10015
 
 
10016
 
 
10017
 
 
10018
 
 
10019
 
 
10020
 
 
10021
 
 
10022
 
 
10023
 
 
10024
 
 
10025
 
 
10026
 
 
10027
 
 
10028
 
 
10029
 
 
10030
 
 
10031
 
 
10032
 
 
10033
 
 
10034
 
 
10035
 
 
10036
 
 
10037
 
 
10038
 
 
10039
 
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
 
10047
 
 
10048
 
 
10049
 
 
10050
 
 
10051
 
 
10052
 
 
10053
 
 
10054
 
 
10055
 
 
10056
 
 
10057
 
 
10058
 
 
10059
 
 
10060
 
 
10061
 
 
10062
 
 
10063
 
 
10064
 
 
10065
 
 
10066
 
 
10067
 
 
10068
 
 
10069
 
 
10070
 
 
10071
 
 
10072
 
 
10073
 
 
10074
 
 
10075
 
 
10076
 
 
10077
 
 
10078
 
 
10079
 
 
10080
 
 
10081
 
 
10082
 
 
10083
 
 
10084
 
 
10085
 
 
10086
 
 
10087
 
 
10088
 
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
 
10094
 
 
10095
 
 
10096
 
 
10097
 
 
10098
 
 
10099
 
 
10100
 
 
10101
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10102
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10103
hardcode_action=
 
10104
if test -n "$hardcode_libdir_flag_spec" ||
 
10105
   test -n "$runpath_var" ||
 
10106
   test "X$hardcode_automatic" = "Xyes" ; then
 
10107
 
 
10108
  # We can hardcode non-existent directories.
 
10109
  if test "$hardcode_direct" != no &&
 
10110
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10111
     # have to relink, otherwise we might link with an installed library
 
10112
     # when we should be linking with a yet-to-be-installed one
 
10113
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10114
     test "$hardcode_minus_L" != no; then
 
10115
    # Linking always hardcodes the temporary library directory.
 
10116
    hardcode_action=relink
 
10117
  else
 
10118
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10119
    hardcode_action=immediate
 
10120
  fi
 
10121
else
 
10122
  # We cannot hardcode anything, or else we can only hardcode existing
 
10123
  # directories.
 
10124
  hardcode_action=unsupported
 
10125
fi
 
10126
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10127
$as_echo "$hardcode_action" >&6; }
 
10128
 
 
10129
if test "$hardcode_action" = relink ||
 
10130
   test "$inherit_rpath" = yes; then
 
10131
  # Fast installation is not supported
 
10132
  enable_fast_install=no
 
10133
elif test "$shlibpath_overrides_runpath" = yes ||
 
10134
     test "$enable_shared" = no; then
 
10135
  # Fast installation is not necessary
 
10136
  enable_fast_install=needless
 
10137
fi
 
10138
 
 
10139
 
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
  if test "x$enable_dlopen" != xyes; then
 
10145
  enable_dlopen=unknown
 
10146
  enable_dlopen_self=unknown
 
10147
  enable_dlopen_self_static=unknown
 
10148
else
 
10149
  lt_cv_dlopen=no
 
10150
  lt_cv_dlopen_libs=
 
10151
 
 
10152
  case $host_os in
 
10153
  beos*)
 
10154
    lt_cv_dlopen="load_add_on"
 
10155
    lt_cv_dlopen_libs=
 
10156
    lt_cv_dlopen_self=yes
 
10157
    ;;
 
10158
 
 
10159
  mingw* | pw32* | cegcc*)
 
10160
    lt_cv_dlopen="LoadLibrary"
 
10161
    lt_cv_dlopen_libs=
 
10162
    ;;
 
10163
 
 
10164
  cygwin*)
 
10165
    lt_cv_dlopen="dlopen"
 
10166
    lt_cv_dlopen_libs=
 
10167
    ;;
 
10168
 
 
10169
  darwin*)
 
10170
  # if libdl is installed we need to link against it
 
10171
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10172
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10173
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10174
  $as_echo_n "(cached) " >&6
 
10175
else
 
10176
  ac_check_lib_save_LIBS=$LIBS
 
10177
LIBS="-ldl  $LIBS"
 
10178
cat >conftest.$ac_ext <<_ACEOF
 
10179
/* confdefs.h.  */
 
10180
_ACEOF
 
10181
cat confdefs.h >>conftest.$ac_ext
 
10182
cat >>conftest.$ac_ext <<_ACEOF
 
10183
/* end confdefs.h.  */
 
10184
 
 
10185
/* Override any GCC internal prototype to avoid an error.
 
10186
   Use char because int might match the return type of a GCC
 
10187
   builtin and then its argument prototype would still apply.  */
 
10188
#ifdef __cplusplus
 
10189
extern "C"
 
10190
#endif
 
10191
char dlopen ();
 
10192
int
 
10193
main ()
 
10194
{
 
10195
return dlopen ();
 
10196
  ;
 
10197
  return 0;
 
10198
}
 
10199
_ACEOF
 
10200
rm -f conftest.$ac_objext conftest$ac_exeext
 
10201
if { (ac_try="$ac_link"
 
10202
case "(($ac_try" in
 
10203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10204
  *) ac_try_echo=$ac_try;;
 
10205
esac
 
10206
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10207
$as_echo "$ac_try_echo") >&5
 
10208
  (eval "$ac_link") 2>conftest.er1
 
10209
  ac_status=$?
 
10210
  grep -v '^ *+' conftest.er1 >conftest.err
 
10211
  rm -f conftest.er1
 
10212
  cat conftest.err >&5
 
10213
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10214
  (exit $ac_status); } && {
 
10215
         test -z "$ac_c_werror_flag" ||
 
10216
         test ! -s conftest.err
 
10217
       } && test -s conftest$ac_exeext && {
 
10218
         test "$cross_compiling" = yes ||
 
10219
         $as_test_x conftest$ac_exeext
 
10220
       }; then
 
10221
  ac_cv_lib_dl_dlopen=yes
 
10222
else
 
10223
  $as_echo "$as_me: failed program was:" >&5
 
10224
sed 's/^/| /' conftest.$ac_ext >&5
 
10225
 
 
10226
        ac_cv_lib_dl_dlopen=no
 
10227
fi
 
10228
 
 
10229
rm -rf conftest.dSYM
 
10230
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10231
      conftest$ac_exeext conftest.$ac_ext
 
10232
LIBS=$ac_check_lib_save_LIBS
 
10233
fi
 
10234
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10235
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10236
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10237
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10238
else
 
10239
 
 
10240
    lt_cv_dlopen="dyld"
 
10241
    lt_cv_dlopen_libs=
 
10242
    lt_cv_dlopen_self=yes
 
10243
 
 
10244
fi
 
10245
 
 
10246
    ;;
 
10247
 
 
10248
  *)
 
10249
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
10250
$as_echo_n "checking for shl_load... " >&6; }
 
10251
if test "${ac_cv_func_shl_load+set}" = set; then
 
10252
  $as_echo_n "(cached) " >&6
 
10253
else
 
10254
  cat >conftest.$ac_ext <<_ACEOF
 
10255
/* confdefs.h.  */
 
10256
_ACEOF
 
10257
cat confdefs.h >>conftest.$ac_ext
 
10258
cat >>conftest.$ac_ext <<_ACEOF
 
10259
/* end confdefs.h.  */
 
10260
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10261
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10262
#define shl_load innocuous_shl_load
 
10263
 
 
10264
/* System header to define __stub macros and hopefully few prototypes,
 
10265
    which can conflict with char shl_load (); below.
 
10266
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10267
    <limits.h> exists even on freestanding compilers.  */
 
10268
 
 
10269
#ifdef __STDC__
 
10270
# include <limits.h>
 
10271
#else
 
10272
# include <assert.h>
 
10273
#endif
 
10274
 
 
10275
#undef shl_load
 
10276
 
 
10277
/* Override any GCC internal prototype to avoid an error.
 
10278
   Use char because int might match the return type of a GCC
 
10279
   builtin and then its argument prototype would still apply.  */
 
10280
#ifdef __cplusplus
 
10281
extern "C"
 
10282
#endif
 
10283
char shl_load ();
 
10284
/* The GNU C library defines this for functions which it implements
 
10285
    to always fail with ENOSYS.  Some functions are actually named
 
10286
    something starting with __ and the normal name is an alias.  */
 
10287
#if defined __stub_shl_load || defined __stub___shl_load
 
10288
choke me
 
10289
#endif
 
10290
 
 
10291
int
 
10292
main ()
 
10293
{
 
10294
return shl_load ();
 
10295
  ;
 
10296
  return 0;
 
10297
}
 
10298
_ACEOF
 
10299
rm -f conftest.$ac_objext conftest$ac_exeext
 
10300
if { (ac_try="$ac_link"
 
10301
case "(($ac_try" in
 
10302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10303
  *) ac_try_echo=$ac_try;;
 
10304
esac
 
10305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10306
$as_echo "$ac_try_echo") >&5
 
10307
  (eval "$ac_link") 2>conftest.er1
 
10308
  ac_status=$?
 
10309
  grep -v '^ *+' conftest.er1 >conftest.err
 
10310
  rm -f conftest.er1
 
10311
  cat conftest.err >&5
 
10312
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10313
  (exit $ac_status); } && {
 
10314
         test -z "$ac_c_werror_flag" ||
 
10315
         test ! -s conftest.err
 
10316
       } && test -s conftest$ac_exeext && {
 
10317
         test "$cross_compiling" = yes ||
 
10318
         $as_test_x conftest$ac_exeext
 
10319
       }; then
 
10320
  ac_cv_func_shl_load=yes
 
10321
else
 
10322
  $as_echo "$as_me: failed program was:" >&5
 
10323
sed 's/^/| /' conftest.$ac_ext >&5
 
10324
 
 
10325
        ac_cv_func_shl_load=no
 
10326
fi
 
10327
 
 
10328
rm -rf conftest.dSYM
 
10329
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10330
      conftest$ac_exeext conftest.$ac_ext
 
10331
fi
 
10332
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10333
$as_echo "$ac_cv_func_shl_load" >&6; }
 
10334
if test "x$ac_cv_func_shl_load" = x""yes; then
 
10335
  lt_cv_dlopen="shl_load"
 
10336
else
 
10337
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10338
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10339
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10340
  $as_echo_n "(cached) " >&6
 
10341
else
 
10342
  ac_check_lib_save_LIBS=$LIBS
 
10343
LIBS="-ldld  $LIBS"
 
10344
cat >conftest.$ac_ext <<_ACEOF
 
10345
/* confdefs.h.  */
 
10346
_ACEOF
 
10347
cat confdefs.h >>conftest.$ac_ext
 
10348
cat >>conftest.$ac_ext <<_ACEOF
 
10349
/* end confdefs.h.  */
 
10350
 
 
10351
/* Override any GCC internal prototype to avoid an error.
 
10352
   Use char because int might match the return type of a GCC
 
10353
   builtin and then its argument prototype would still apply.  */
 
10354
#ifdef __cplusplus
 
10355
extern "C"
 
10356
#endif
 
10357
char shl_load ();
 
10358
int
 
10359
main ()
 
10360
{
 
10361
return shl_load ();
 
10362
  ;
 
10363
  return 0;
 
10364
}
 
10365
_ACEOF
 
10366
rm -f conftest.$ac_objext conftest$ac_exeext
 
10367
if { (ac_try="$ac_link"
 
10368
case "(($ac_try" in
 
10369
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10370
  *) ac_try_echo=$ac_try;;
 
10371
esac
 
10372
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10373
$as_echo "$ac_try_echo") >&5
 
10374
  (eval "$ac_link") 2>conftest.er1
 
10375
  ac_status=$?
 
10376
  grep -v '^ *+' conftest.er1 >conftest.err
 
10377
  rm -f conftest.er1
 
10378
  cat conftest.err >&5
 
10379
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10380
  (exit $ac_status); } && {
 
10381
         test -z "$ac_c_werror_flag" ||
 
10382
         test ! -s conftest.err
 
10383
       } && test -s conftest$ac_exeext && {
 
10384
         test "$cross_compiling" = yes ||
 
10385
         $as_test_x conftest$ac_exeext
 
10386
       }; then
 
10387
  ac_cv_lib_dld_shl_load=yes
 
10388
else
 
10389
  $as_echo "$as_me: failed program was:" >&5
 
10390
sed 's/^/| /' conftest.$ac_ext >&5
 
10391
 
 
10392
        ac_cv_lib_dld_shl_load=no
 
10393
fi
 
10394
 
 
10395
rm -rf conftest.dSYM
 
10396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10397
      conftest$ac_exeext conftest.$ac_ext
 
10398
LIBS=$ac_check_lib_save_LIBS
 
10399
fi
 
10400
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10401
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10402
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10403
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10404
else
 
10405
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10406
$as_echo_n "checking for dlopen... " >&6; }
 
10407
if test "${ac_cv_func_dlopen+set}" = set; then
 
10408
  $as_echo_n "(cached) " >&6
 
10409
else
 
10410
  cat >conftest.$ac_ext <<_ACEOF
 
10411
/* confdefs.h.  */
 
10412
_ACEOF
 
10413
cat confdefs.h >>conftest.$ac_ext
 
10414
cat >>conftest.$ac_ext <<_ACEOF
 
10415
/* end confdefs.h.  */
 
10416
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10417
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10418
#define dlopen innocuous_dlopen
 
10419
 
 
10420
/* System header to define __stub macros and hopefully few prototypes,
 
10421
    which can conflict with char dlopen (); below.
 
10422
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10423
    <limits.h> exists even on freestanding compilers.  */
 
10424
 
 
10425
#ifdef __STDC__
 
10426
# include <limits.h>
 
10427
#else
 
10428
# include <assert.h>
 
10429
#endif
 
10430
 
 
10431
#undef dlopen
 
10432
 
 
10433
/* Override any GCC internal prototype to avoid an error.
 
10434
   Use char because int might match the return type of a GCC
 
10435
   builtin and then its argument prototype would still apply.  */
 
10436
#ifdef __cplusplus
 
10437
extern "C"
 
10438
#endif
 
10439
char dlopen ();
 
10440
/* The GNU C library defines this for functions which it implements
 
10441
    to always fail with ENOSYS.  Some functions are actually named
 
10442
    something starting with __ and the normal name is an alias.  */
 
10443
#if defined __stub_dlopen || defined __stub___dlopen
 
10444
choke me
 
10445
#endif
 
10446
 
 
10447
int
 
10448
main ()
 
10449
{
 
10450
return dlopen ();
 
10451
  ;
 
10452
  return 0;
 
10453
}
 
10454
_ACEOF
 
10455
rm -f conftest.$ac_objext conftest$ac_exeext
 
10456
if { (ac_try="$ac_link"
 
10457
case "(($ac_try" in
 
10458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10459
  *) ac_try_echo=$ac_try;;
 
10460
esac
 
10461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10462
$as_echo "$ac_try_echo") >&5
 
10463
  (eval "$ac_link") 2>conftest.er1
 
10464
  ac_status=$?
 
10465
  grep -v '^ *+' conftest.er1 >conftest.err
 
10466
  rm -f conftest.er1
 
10467
  cat conftest.err >&5
 
10468
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10469
  (exit $ac_status); } && {
 
10470
         test -z "$ac_c_werror_flag" ||
 
10471
         test ! -s conftest.err
 
10472
       } && test -s conftest$ac_exeext && {
 
10473
         test "$cross_compiling" = yes ||
 
10474
         $as_test_x conftest$ac_exeext
 
10475
       }; then
 
10476
  ac_cv_func_dlopen=yes
 
10477
else
 
10478
  $as_echo "$as_me: failed program was:" >&5
 
10479
sed 's/^/| /' conftest.$ac_ext >&5
 
10480
 
 
10481
        ac_cv_func_dlopen=no
 
10482
fi
 
10483
 
 
10484
rm -rf conftest.dSYM
 
10485
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10486
      conftest$ac_exeext conftest.$ac_ext
 
10487
fi
 
10488
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10489
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10490
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10491
  lt_cv_dlopen="dlopen"
 
10492
else
 
10493
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10494
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10495
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10496
  $as_echo_n "(cached) " >&6
 
10497
else
 
10498
  ac_check_lib_save_LIBS=$LIBS
 
10499
LIBS="-ldl  $LIBS"
 
10500
cat >conftest.$ac_ext <<_ACEOF
 
10501
/* confdefs.h.  */
 
10502
_ACEOF
 
10503
cat confdefs.h >>conftest.$ac_ext
 
10504
cat >>conftest.$ac_ext <<_ACEOF
 
10505
/* end confdefs.h.  */
 
10506
 
 
10507
/* Override any GCC internal prototype to avoid an error.
 
10508
   Use char because int might match the return type of a GCC
 
10509
   builtin and then its argument prototype would still apply.  */
 
10510
#ifdef __cplusplus
 
10511
extern "C"
 
10512
#endif
 
10513
char dlopen ();
 
10514
int
 
10515
main ()
 
10516
{
 
10517
return dlopen ();
 
10518
  ;
 
10519
  return 0;
 
10520
}
 
10521
_ACEOF
 
10522
rm -f conftest.$ac_objext conftest$ac_exeext
 
10523
if { (ac_try="$ac_link"
 
10524
case "(($ac_try" in
 
10525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10526
  *) ac_try_echo=$ac_try;;
 
10527
esac
 
10528
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10529
$as_echo "$ac_try_echo") >&5
 
10530
  (eval "$ac_link") 2>conftest.er1
 
10531
  ac_status=$?
 
10532
  grep -v '^ *+' conftest.er1 >conftest.err
 
10533
  rm -f conftest.er1
 
10534
  cat conftest.err >&5
 
10535
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10536
  (exit $ac_status); } && {
 
10537
         test -z "$ac_c_werror_flag" ||
 
10538
         test ! -s conftest.err
 
10539
       } && test -s conftest$ac_exeext && {
 
10540
         test "$cross_compiling" = yes ||
 
10541
         $as_test_x conftest$ac_exeext
 
10542
       }; then
 
10543
  ac_cv_lib_dl_dlopen=yes
 
10544
else
 
10545
  $as_echo "$as_me: failed program was:" >&5
 
10546
sed 's/^/| /' conftest.$ac_ext >&5
 
10547
 
 
10548
        ac_cv_lib_dl_dlopen=no
 
10549
fi
 
10550
 
 
10551
rm -rf conftest.dSYM
 
10552
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10553
      conftest$ac_exeext conftest.$ac_ext
 
10554
LIBS=$ac_check_lib_save_LIBS
 
10555
fi
 
10556
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10557
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10558
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10559
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10560
else
 
10561
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10562
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10563
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10564
  $as_echo_n "(cached) " >&6
 
10565
else
 
10566
  ac_check_lib_save_LIBS=$LIBS
 
10567
LIBS="-lsvld  $LIBS"
 
10568
cat >conftest.$ac_ext <<_ACEOF
 
10569
/* confdefs.h.  */
 
10570
_ACEOF
 
10571
cat confdefs.h >>conftest.$ac_ext
 
10572
cat >>conftest.$ac_ext <<_ACEOF
 
10573
/* end confdefs.h.  */
 
10574
 
 
10575
/* Override any GCC internal prototype to avoid an error.
 
10576
   Use char because int might match the return type of a GCC
 
10577
   builtin and then its argument prototype would still apply.  */
 
10578
#ifdef __cplusplus
 
10579
extern "C"
 
10580
#endif
 
10581
char dlopen ();
 
10582
int
 
10583
main ()
 
10584
{
 
10585
return dlopen ();
 
10586
  ;
 
10587
  return 0;
 
10588
}
 
10589
_ACEOF
 
10590
rm -f conftest.$ac_objext conftest$ac_exeext
 
10591
if { (ac_try="$ac_link"
 
10592
case "(($ac_try" in
 
10593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10594
  *) ac_try_echo=$ac_try;;
 
10595
esac
 
10596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10597
$as_echo "$ac_try_echo") >&5
 
10598
  (eval "$ac_link") 2>conftest.er1
 
10599
  ac_status=$?
 
10600
  grep -v '^ *+' conftest.er1 >conftest.err
 
10601
  rm -f conftest.er1
 
10602
  cat conftest.err >&5
 
10603
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10604
  (exit $ac_status); } && {
 
10605
         test -z "$ac_c_werror_flag" ||
 
10606
         test ! -s conftest.err
 
10607
       } && test -s conftest$ac_exeext && {
 
10608
         test "$cross_compiling" = yes ||
 
10609
         $as_test_x conftest$ac_exeext
 
10610
       }; then
 
10611
  ac_cv_lib_svld_dlopen=yes
 
10612
else
 
10613
  $as_echo "$as_me: failed program was:" >&5
 
10614
sed 's/^/| /' conftest.$ac_ext >&5
 
10615
 
 
10616
        ac_cv_lib_svld_dlopen=no
 
10617
fi
 
10618
 
 
10619
rm -rf conftest.dSYM
 
10620
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10621
      conftest$ac_exeext conftest.$ac_ext
 
10622
LIBS=$ac_check_lib_save_LIBS
 
10623
fi
 
10624
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10625
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10626
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10627
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10628
else
 
10629
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10630
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10631
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10632
  $as_echo_n "(cached) " >&6
 
10633
else
 
10634
  ac_check_lib_save_LIBS=$LIBS
 
10635
LIBS="-ldld  $LIBS"
 
10636
cat >conftest.$ac_ext <<_ACEOF
 
10637
/* confdefs.h.  */
 
10638
_ACEOF
 
10639
cat confdefs.h >>conftest.$ac_ext
 
10640
cat >>conftest.$ac_ext <<_ACEOF
 
10641
/* end confdefs.h.  */
 
10642
 
 
10643
/* Override any GCC internal prototype to avoid an error.
 
10644
   Use char because int might match the return type of a GCC
 
10645
   builtin and then its argument prototype would still apply.  */
 
10646
#ifdef __cplusplus
 
10647
extern "C"
 
10648
#endif
 
10649
char dld_link ();
 
10650
int
 
10651
main ()
 
10652
{
 
10653
return dld_link ();
 
10654
  ;
 
10655
  return 0;
 
10656
}
 
10657
_ACEOF
 
10658
rm -f conftest.$ac_objext conftest$ac_exeext
 
10659
if { (ac_try="$ac_link"
 
10660
case "(($ac_try" in
 
10661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10662
  *) ac_try_echo=$ac_try;;
 
10663
esac
 
10664
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10665
$as_echo "$ac_try_echo") >&5
 
10666
  (eval "$ac_link") 2>conftest.er1
 
10667
  ac_status=$?
 
10668
  grep -v '^ *+' conftest.er1 >conftest.err
 
10669
  rm -f conftest.er1
 
10670
  cat conftest.err >&5
 
10671
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10672
  (exit $ac_status); } && {
 
10673
         test -z "$ac_c_werror_flag" ||
 
10674
         test ! -s conftest.err
 
10675
       } && test -s conftest$ac_exeext && {
 
10676
         test "$cross_compiling" = yes ||
 
10677
         $as_test_x conftest$ac_exeext
 
10678
       }; then
 
10679
  ac_cv_lib_dld_dld_link=yes
 
10680
else
 
10681
  $as_echo "$as_me: failed program was:" >&5
 
10682
sed 's/^/| /' conftest.$ac_ext >&5
 
10683
 
 
10684
        ac_cv_lib_dld_dld_link=no
 
10685
fi
 
10686
 
 
10687
rm -rf conftest.dSYM
 
10688
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10689
      conftest$ac_exeext conftest.$ac_ext
 
10690
LIBS=$ac_check_lib_save_LIBS
 
10691
fi
 
10692
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10693
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10694
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10695
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10696
fi
 
10697
 
 
10698
 
 
10699
fi
 
10700
 
 
10701
 
 
10702
fi
 
10703
 
 
10704
 
 
10705
fi
 
10706
 
 
10707
 
 
10708
fi
 
10709
 
 
10710
 
 
10711
fi
 
10712
 
 
10713
    ;;
 
10714
  esac
 
10715
 
 
10716
  if test "x$lt_cv_dlopen" != xno; then
 
10717
    enable_dlopen=yes
 
10718
  else
 
10719
    enable_dlopen=no
 
10720
  fi
 
10721
 
 
10722
  case $lt_cv_dlopen in
 
10723
  dlopen)
 
10724
    save_CPPFLAGS="$CPPFLAGS"
 
10725
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10726
 
 
10727
    save_LDFLAGS="$LDFLAGS"
 
10728
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10729
 
 
10730
    save_LIBS="$LIBS"
 
10731
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10732
 
 
10733
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10734
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10735
if test "${lt_cv_dlopen_self+set}" = set; then
 
10736
  $as_echo_n "(cached) " >&6
 
10737
else
 
10738
          if test "$cross_compiling" = yes; then :
 
10739
  lt_cv_dlopen_self=cross
 
10740
else
 
10741
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10742
  lt_status=$lt_dlunknown
 
10743
  cat > conftest.$ac_ext <<_LT_EOF
 
10744
#line 10744 "configure"
 
10745
#include "confdefs.h"
 
10746
 
 
10747
#if HAVE_DLFCN_H
 
10748
#include <dlfcn.h>
 
10749
#endif
 
10750
 
 
10751
#include <stdio.h>
 
10752
 
 
10753
#ifdef RTLD_GLOBAL
 
10754
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10755
#else
 
10756
#  ifdef DL_GLOBAL
 
10757
#    define LT_DLGLOBAL         DL_GLOBAL
 
10758
#  else
 
10759
#    define LT_DLGLOBAL         0
 
10760
#  endif
 
10761
#endif
 
10762
 
 
10763
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10764
   find out it does not work in some platform. */
 
10765
#ifndef LT_DLLAZY_OR_NOW
 
10766
#  ifdef RTLD_LAZY
 
10767
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10768
#  else
 
10769
#    ifdef DL_LAZY
 
10770
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10771
#    else
 
10772
#      ifdef RTLD_NOW
 
10773
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10774
#      else
 
10775
#        ifdef DL_NOW
 
10776
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10777
#        else
 
10778
#          define LT_DLLAZY_OR_NOW      0
 
10779
#        endif
 
10780
#      endif
 
10781
#    endif
 
10782
#  endif
 
10783
#endif
 
10784
 
 
10785
void fnord() { int i=42;}
 
10786
int main ()
 
10787
{
 
10788
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10789
  int status = $lt_dlunknown;
 
10790
 
 
10791
  if (self)
 
10792
    {
 
10793
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10794
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10795
      /* dlclose (self); */
 
10796
    }
 
10797
  else
 
10798
    puts (dlerror ());
 
10799
 
 
10800
  return status;
 
10801
}
 
10802
_LT_EOF
 
10803
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10804
  (eval $ac_link) 2>&5
 
10805
  ac_status=$?
 
10806
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10807
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10808
    (./conftest; exit; ) >&5 2>/dev/null
 
10809
    lt_status=$?
 
10810
    case x$lt_status in
 
10811
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10812
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10813
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10814
    esac
 
10815
  else :
 
10816
    # compilation failed
 
10817
    lt_cv_dlopen_self=no
 
10818
  fi
 
10819
fi
 
10820
rm -fr conftest*
 
10821
 
 
10822
 
 
10823
fi
 
10824
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10825
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10826
 
 
10827
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10828
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10829
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10830
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10831
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10832
  $as_echo_n "(cached) " >&6
 
10833
else
 
10834
          if test "$cross_compiling" = yes; then :
 
10835
  lt_cv_dlopen_self_static=cross
 
10836
else
 
10837
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10838
  lt_status=$lt_dlunknown
 
10839
  cat > conftest.$ac_ext <<_LT_EOF
 
10840
#line 10840 "configure"
 
10841
#include "confdefs.h"
 
10842
 
 
10843
#if HAVE_DLFCN_H
 
10844
#include <dlfcn.h>
 
10845
#endif
 
10846
 
 
10847
#include <stdio.h>
 
10848
 
 
10849
#ifdef RTLD_GLOBAL
 
10850
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10851
#else
 
10852
#  ifdef DL_GLOBAL
 
10853
#    define LT_DLGLOBAL         DL_GLOBAL
 
10854
#  else
 
10855
#    define LT_DLGLOBAL         0
 
10856
#  endif
 
10857
#endif
 
10858
 
 
10859
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10860
   find out it does not work in some platform. */
 
10861
#ifndef LT_DLLAZY_OR_NOW
 
10862
#  ifdef RTLD_LAZY
 
10863
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10864
#  else
 
10865
#    ifdef DL_LAZY
 
10866
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10867
#    else
 
10868
#      ifdef RTLD_NOW
 
10869
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10870
#      else
 
10871
#        ifdef DL_NOW
 
10872
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10873
#        else
 
10874
#          define LT_DLLAZY_OR_NOW      0
 
10875
#        endif
 
10876
#      endif
 
10877
#    endif
 
10878
#  endif
 
10879
#endif
 
10880
 
 
10881
void fnord() { int i=42;}
 
10882
int main ()
 
10883
{
 
10884
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10885
  int status = $lt_dlunknown;
 
10886
 
 
10887
  if (self)
 
10888
    {
 
10889
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10890
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10891
      /* dlclose (self); */
 
10892
    }
 
10893
  else
 
10894
    puts (dlerror ());
 
10895
 
 
10896
  return status;
 
10897
}
 
10898
_LT_EOF
 
10899
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10900
  (eval $ac_link) 2>&5
 
10901
  ac_status=$?
 
10902
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10903
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10904
    (./conftest; exit; ) >&5 2>/dev/null
 
10905
    lt_status=$?
 
10906
    case x$lt_status in
 
10907
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10908
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10909
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10910
    esac
 
10911
  else :
 
10912
    # compilation failed
 
10913
    lt_cv_dlopen_self_static=no
 
10914
  fi
 
10915
fi
 
10916
rm -fr conftest*
 
10917
 
 
10918
 
 
10919
fi
 
10920
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10921
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10922
    fi
 
10923
 
 
10924
    CPPFLAGS="$save_CPPFLAGS"
 
10925
    LDFLAGS="$save_LDFLAGS"
 
10926
    LIBS="$save_LIBS"
 
10927
    ;;
 
10928
  esac
 
10929
 
 
10930
  case $lt_cv_dlopen_self in
 
10931
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10932
  *) enable_dlopen_self=unknown ;;
 
10933
  esac
 
10934
 
 
10935
  case $lt_cv_dlopen_self_static in
 
10936
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10937
  *) enable_dlopen_self_static=unknown ;;
 
10938
  esac
 
10939
fi
 
10940
 
 
10941
 
 
10942
 
 
10943
 
 
10944
 
 
10945
 
 
10946
 
 
10947
 
 
10948
 
 
10949
 
 
10950
 
 
10951
 
 
10952
 
 
10953
 
 
10954
 
 
10955
 
 
10956
 
 
10957
striplib=
 
10958
old_striplib=
 
10959
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10960
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10961
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
10962
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10963
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10964
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10965
$as_echo "yes" >&6; }
 
10966
else
 
10967
# FIXME - insert some real tests, host_os isn't really good enough
 
10968
  case $host_os in
 
10969
  darwin*)
 
10970
    if test -n "$STRIP" ; then
 
10971
      striplib="$STRIP -x"
 
10972
      old_striplib="$STRIP -S"
 
10973
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10974
$as_echo "yes" >&6; }
 
10975
    else
 
10976
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
10977
$as_echo "no" >&6; }
 
10978
    fi
 
10979
    ;;
 
10980
  *)
 
10981
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
10982
$as_echo "no" >&6; }
 
10983
    ;;
 
10984
  esac
 
10985
fi
 
10986
 
 
10987
 
 
10988
 
 
10989
 
 
10990
 
 
10991
 
 
10992
 
 
10993
 
 
10994
 
 
10995
 
 
10996
 
 
10997
 
 
10998
  # Report which library types will actually be built
 
10999
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11000
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11001
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11002
$as_echo "$can_build_shared" >&6; }
 
11003
 
 
11004
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11005
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11006
  test "$can_build_shared" = "no" && enable_shared=no
 
11007
 
 
11008
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11009
  # are all built from PIC.
 
11010
  case $host_os in
 
11011
  aix3*)
 
11012
    test "$enable_shared" = yes && enable_static=no
 
11013
    if test -n "$RANLIB"; then
 
11014
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11015
      postinstall_cmds='$RANLIB $lib'
 
11016
    fi
 
11017
    ;;
 
11018
 
 
11019
  aix[4-9]*)
 
11020
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11021
      test "$enable_shared" = yes && enable_static=no
 
11022
    fi
 
11023
    ;;
 
11024
  esac
 
11025
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11026
$as_echo "$enable_shared" >&6; }
 
11027
 
 
11028
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11029
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11030
  # Make sure either enable_shared or enable_static is yes.
 
11031
  test "$enable_shared" = yes || enable_static=yes
 
11032
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11033
$as_echo "$enable_static" >&6; }
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
fi
 
11039
ac_ext=c
 
11040
ac_cpp='$CPP $CPPFLAGS'
 
11041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11044
 
 
11045
CC="$lt_save_CC"
 
11046
 
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
        ac_config_commands="$ac_config_commands libtool"
 
11060
 
 
11061
 
 
11062
 
 
11063
 
 
11064
# Only expand once:
 
11065
 
 
11066
 
 
11067
 
 
11068
# Find a good install program.  We prefer a C program (faster),
 
11069
# so one script is as good as another.  But avoid the broken or
 
11070
# incompatible versions:
 
11071
# SysV /etc/install, /usr/sbin/install
 
11072
# SunOS /usr/etc/install
 
11073
# IRIX /sbin/install
 
11074
# AIX /bin/install
 
11075
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
11076
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
11077
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
11078
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
11079
# OS/2's system install, which has a completely different semantic
 
11080
# ./install, which can be erroneously created by make from ./install.sh.
 
11081
# Reject install programs that cannot install multiple files.
 
11082
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
11083
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
11084
if test -z "$INSTALL"; then
 
11085
if test "${ac_cv_path_install+set}" = set; then
 
11086
  $as_echo_n "(cached) " >&6
 
11087
else
 
11088
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11089
for as_dir in $PATH
 
11090
do
 
11091
  IFS=$as_save_IFS
 
11092
  test -z "$as_dir" && as_dir=.
 
11093
  # Account for people who put trailing slashes in PATH elements.
 
11094
case $as_dir/ in
 
11095
  ./ | .// | /cC/* | \
 
11096
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
11097
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
11098
  /usr/ucb/* ) ;;
 
11099
  *)
 
11100
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
11101
    # Don't use installbsd from OSF since it installs stuff as root
 
11102
    # by default.
 
11103
    for ac_prog in ginstall scoinst install; do
 
11104
      for ac_exec_ext in '' $ac_executable_extensions; do
 
11105
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
11106
          if test $ac_prog = install &&
 
11107
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
11108
            # AIX install.  It has an incompatible calling convention.
 
11109
            :
 
11110
          elif test $ac_prog = install &&
 
11111
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
11112
            # program-specific install script used by HP pwplus--don't use.
 
11113
            :
 
11114
          else
 
11115
            rm -rf conftest.one conftest.two conftest.dir
 
11116
            echo one > conftest.one
 
11117
            echo two > conftest.two
 
11118
            mkdir conftest.dir
 
11119
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
11120
              test -s conftest.one && test -s conftest.two &&
 
11121
              test -s conftest.dir/conftest.one &&
 
11122
              test -s conftest.dir/conftest.two
 
11123
            then
 
11124
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
11125
              break 3
 
11126
            fi
 
11127
          fi
 
11128
        fi
 
11129
      done
 
11130
    done
 
11131
    ;;
 
11132
esac
 
11133
 
 
11134
done
 
11135
IFS=$as_save_IFS
 
11136
 
 
11137
rm -rf conftest.one conftest.two conftest.dir
 
11138
 
 
11139
fi
 
11140
  if test "${ac_cv_path_install+set}" = set; then
 
11141
    INSTALL=$ac_cv_path_install
 
11142
  else
 
11143
    # As a last resort, use the slow shell script.  Don't cache a
 
11144
    # value for INSTALL within a source directory, because that will
 
11145
    # break other packages using the cache if that directory is
 
11146
    # removed, or if the value is a relative name.
 
11147
    INSTALL=$ac_install_sh
 
11148
  fi
 
11149
fi
 
11150
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
11151
$as_echo "$INSTALL" >&6; }
 
11152
 
 
11153
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
11154
# It thinks the first close brace ends the variable substitution.
 
11155
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
11156
 
 
11157
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
11158
 
 
11159
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
11160
 
 
11161
 
 
11162
 if test "$ac_cv_c_compiler_gnu" = yes; then
 
11163
  HAVE_GCC_TRUE=
 
11164
  HAVE_GCC_FALSE='#'
 
11165
else
 
11166
  HAVE_GCC_TRUE='#'
 
11167
  HAVE_GCC_FALSE=
 
11168
fi
 
11169
 
 
11170
 
 
11171
 
 
11172
# Check whether --enable-silent-rules was given.
 
11173
if test "${enable_silent_rules+set}" = set; then
 
11174
  enableval=$enable_silent_rules;
 
11175
fi
 
11176
 
 
11177
case $enable_silent_rules in
 
11178
yes) AM_DEFAULT_VERBOSITY=0;;
 
11179
no)  AM_DEFAULT_VERBOSITY=1;;
 
11180
*)   AM_DEFAULT_VERBOSITY=1;;
 
11181
esac
 
11182
AM_BACKSLASH='\'
 
11183
 
 
11184
 
 
11185
ac_config_headers="$ac_config_headers config.h"
 
11186
 
 
11187
 
 
11188
ac_config_files="$ac_config_files Makefile path_utils.pc"
 
11189
 
 
11190
cat >confcache <<\_ACEOF
 
11191
# This file is a shell script that caches the results of configure
 
11192
# tests run on this system so they can be shared between configure
 
11193
# scripts and configure runs, see configure's option --config-cache.
 
11194
# It is not useful on other systems.  If it contains results you don't
 
11195
# want to keep, you may remove or edit it.
 
11196
#
 
11197
# config.status only pays attention to the cache file if you give it
 
11198
# the --recheck option to rerun configure.
 
11199
#
 
11200
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
11201
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
11202
# following values.
 
11203
 
 
11204
_ACEOF
 
11205
 
 
11206
# The following way of writing the cache mishandles newlines in values,
 
11207
# but we know of no workaround that is simple, portable, and efficient.
 
11208
# So, we kill variables containing newlines.
 
11209
# Ultrix sh set writes to stderr and can't be redirected directly,
 
11210
# and sets the high bit in the cache file unless we assign to the vars.
 
11211
(
 
11212
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
11213
    eval ac_val=\$$ac_var
 
11214
    case $ac_val in #(
 
11215
    *${as_nl}*)
 
11216
      case $ac_var in #(
 
11217
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
11218
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
11219
      esac
 
11220
      case $ac_var in #(
 
11221
      _ | IFS | as_nl) ;; #(
 
11222
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
11223
      *) $as_unset $ac_var ;;
 
11224
      esac ;;
 
11225
    esac
 
11226
  done
 
11227
 
 
11228
  (set) 2>&1 |
 
11229
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
11230
    *${as_nl}ac_space=\ *)
 
11231
      # `set' does not quote correctly, so add quotes (double-quote
 
11232
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
11233
      sed -n \
 
11234
        "s/'/'\\\\''/g;
 
11235
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
11236
      ;; #(
 
11237
    *)
 
11238
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
11239
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
11240
      ;;
 
11241
    esac |
 
11242
    sort
 
11243
) |
 
11244
  sed '
 
11245
     /^ac_cv_env_/b end
 
11246
     t clear
 
11247
     :clear
 
11248
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
11249
     t end
 
11250
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
11251
     :end' >>confcache
 
11252
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
11253
  if test -w "$cache_file"; then
 
11254
    test "x$cache_file" != "x/dev/null" &&
 
11255
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
11256
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
11257
    cat confcache >$cache_file
 
11258
  else
 
11259
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
11260
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
11261
  fi
 
11262
fi
 
11263
rm -f confcache
 
11264
 
 
11265
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
11266
# Let make expand exec_prefix.
 
11267
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
11268
 
 
11269
DEFS=-DHAVE_CONFIG_H
 
11270
 
 
11271
ac_libobjs=
 
11272
ac_ltlibobjs=
 
11273
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
11274
  # 1. Remove the extension, and $U if already installed.
 
11275
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
11276
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
11277
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
11278
  #    will be set to the directory where LIBOBJS objects are built.
 
11279
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
11280
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
11281
done
 
11282
LIBOBJS=$ac_libobjs
 
11283
 
 
11284
LTLIBOBJS=$ac_ltlibobjs
 
11285
 
 
11286
 
 
11287
 if test -n "$EXEEXT"; then
 
11288
  am__EXEEXT_TRUE=
 
11289
  am__EXEEXT_FALSE='#'
 
11290
else
 
11291
  am__EXEEXT_TRUE='#'
 
11292
  am__EXEEXT_FALSE=
 
11293
fi
 
11294
 
 
11295
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
11296
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
11297
Usually this means the macro was only invoked conditionally." >&5
 
11298
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
11299
Usually this means the macro was only invoked conditionally." >&2;}
 
11300
   { (exit 1); exit 1; }; }
 
11301
fi
 
11302
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
11303
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
11304
Usually this means the macro was only invoked conditionally." >&5
 
11305
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
11306
Usually this means the macro was only invoked conditionally." >&2;}
 
11307
   { (exit 1); exit 1; }; }
 
11308
fi
 
11309
if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
 
11310
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GCC\" was never defined.
 
11311
Usually this means the macro was only invoked conditionally." >&5
 
11312
$as_echo "$as_me: error: conditional \"HAVE_GCC\" was never defined.
 
11313
Usually this means the macro was only invoked conditionally." >&2;}
 
11314
   { (exit 1); exit 1; }; }
 
11315
fi
 
11316
 
 
11317
: ${CONFIG_STATUS=./config.status}
 
11318
ac_write_fail=0
 
11319
ac_clean_files_save=$ac_clean_files
 
11320
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
11321
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
11322
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
11323
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11324
#! $SHELL
 
11325
# Generated by $as_me.
 
11326
# Run this file to recreate the current configuration.
 
11327
# Compiler output produced by configure, useful for debugging
 
11328
# configure, is in config.log if it exists.
 
11329
 
 
11330
debug=false
 
11331
ac_cs_recheck=false
 
11332
ac_cs_silent=false
 
11333
SHELL=\${CONFIG_SHELL-$SHELL}
 
11334
_ACEOF
 
11335
 
 
11336
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11337
## --------------------- ##
 
11338
## M4sh Initialization.  ##
 
11339
## --------------------- ##
 
11340
 
 
11341
# Be more Bourne compatible
 
11342
DUALCASE=1; export DUALCASE # for MKS sh
 
11343
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
11344
  emulate sh
 
11345
  NULLCMD=:
 
11346
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
11347
  # is contrary to our usage.  Disable this feature.
 
11348
  alias -g '${1+"$@"}'='"$@"'
 
11349
  setopt NO_GLOB_SUBST
 
11350
else
 
11351
  case `(set -o) 2>/dev/null` in
 
11352
  *posix*) set -o posix ;;
 
11353
esac
 
11354
 
 
11355
fi
 
11356
 
 
11357
 
 
11358
 
 
11359
 
 
11360
# PATH needs CR
 
11361
# Avoid depending upon Character Ranges.
 
11362
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
11363
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
11364
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
11365
as_cr_digits='0123456789'
 
11366
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
11367
 
 
11368
as_nl='
 
11369
'
 
11370
export as_nl
 
11371
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
11372
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
11373
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
11374
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
11375
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
11376
  as_echo='printf %s\n'
 
11377
  as_echo_n='printf %s'
 
11378
else
 
11379
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
11380
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
11381
    as_echo_n='/usr/ucb/echo -n'
 
11382
  else
 
11383
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
11384
    as_echo_n_body='eval
 
11385
      arg=$1;
 
11386
      case $arg in
 
11387
      *"$as_nl"*)
 
11388
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
11389
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
11390
      esac;
 
11391
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
11392
    '
 
11393
    export as_echo_n_body
 
11394
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
11395
  fi
 
11396
  export as_echo_body
 
11397
  as_echo='sh -c $as_echo_body as_echo'
 
11398
fi
 
11399
 
 
11400
# The user is always right.
 
11401
if test "${PATH_SEPARATOR+set}" != set; then
 
11402
  PATH_SEPARATOR=:
 
11403
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
11404
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
11405
      PATH_SEPARATOR=';'
 
11406
  }
 
11407
fi
 
11408
 
 
11409
# Support unset when possible.
 
11410
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
11411
  as_unset=unset
 
11412
else
 
11413
  as_unset=false
 
11414
fi
 
11415
 
 
11416
 
 
11417
# IFS
 
11418
# We need space, tab and new line, in precisely that order.  Quoting is
 
11419
# there to prevent editors from complaining about space-tab.
 
11420
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
11421
# splitting by setting IFS to empty value.)
 
11422
IFS=" ""        $as_nl"
 
11423
 
 
11424
# Find who we are.  Look in the path if we contain no directory separator.
 
11425
case $0 in
 
11426
  *[\\/]* ) as_myself=$0 ;;
 
11427
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11428
for as_dir in $PATH
 
11429
do
 
11430
  IFS=$as_save_IFS
 
11431
  test -z "$as_dir" && as_dir=.
 
11432
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
11433
done
 
11434
IFS=$as_save_IFS
 
11435
 
 
11436
     ;;
 
11437
esac
 
11438
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
11439
# in which case we are not to be found in the path.
 
11440
if test "x$as_myself" = x; then
 
11441
  as_myself=$0
 
11442
fi
 
11443
if test ! -f "$as_myself"; then
 
11444
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
11445
  { (exit 1); exit 1; }
 
11446
fi
 
11447
 
 
11448
# Work around bugs in pre-3.0 UWIN ksh.
 
11449
for as_var in ENV MAIL MAILPATH
 
11450
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
11451
done
 
11452
PS1='$ '
 
11453
PS2='> '
 
11454
PS4='+ '
 
11455
 
 
11456
# NLS nuisances.
 
11457
LC_ALL=C
 
11458
export LC_ALL
 
11459
LANGUAGE=C
 
11460
export LANGUAGE
 
11461
 
 
11462
# Required to use basename.
 
11463
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
11464
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
11465
  as_expr=expr
 
11466
else
 
11467
  as_expr=false
 
11468
fi
 
11469
 
 
11470
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
11471
  as_basename=basename
 
11472
else
 
11473
  as_basename=false
 
11474
fi
 
11475
 
 
11476
 
 
11477
# Name of the executable.
 
11478
as_me=`$as_basename -- "$0" ||
 
11479
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
11480
         X"$0" : 'X\(//\)$' \| \
 
11481
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
11482
$as_echo X/"$0" |
 
11483
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
11484
            s//\1/
 
11485
            q
 
11486
          }
 
11487
          /^X\/\(\/\/\)$/{
 
11488
            s//\1/
 
11489
            q
 
11490
          }
 
11491
          /^X\/\(\/\).*/{
 
11492
            s//\1/
 
11493
            q
 
11494
          }
 
11495
          s/.*/./; q'`
 
11496
 
 
11497
# CDPATH.
 
11498
$as_unset CDPATH
 
11499
 
 
11500
 
 
11501
 
 
11502
  as_lineno_1=$LINENO
 
11503
  as_lineno_2=$LINENO
 
11504
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
11505
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
11506
 
 
11507
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
11508
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
11509
  # line-number line after each line using $LINENO; the second 'sed'
 
11510
  # does the real work.  The second script uses 'N' to pair each
 
11511
  # line-number line with the line containing $LINENO, and appends
 
11512
  # trailing '-' during substitution so that $LINENO is not a special
 
11513
  # case at line end.
 
11514
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
11515
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
11516
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
11517
  sed -n '
 
11518
    p
 
11519
    /[$]LINENO/=
 
11520
  ' <$as_myself |
 
11521
    sed '
 
11522
      s/[$]LINENO.*/&-/
 
11523
      t lineno
 
11524
      b
 
11525
      :lineno
 
11526
      N
 
11527
      :loop
 
11528
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
11529
      t loop
 
11530
      s/-\n.*//
 
11531
    ' >$as_me.lineno &&
 
11532
  chmod +x "$as_me.lineno" ||
 
11533
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
11534
   { (exit 1); exit 1; }; }
 
11535
 
 
11536
  # Don't try to exec as it changes $[0], causing all sort of problems
 
11537
  # (the dirname of $[0] is not the place where we might find the
 
11538
  # original and so on.  Autoconf is especially sensitive to this).
 
11539
  . "./$as_me.lineno"
 
11540
  # Exit status is that of the last command.
 
11541
  exit
 
11542
}
 
11543
 
 
11544
 
 
11545
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
11546
  as_dirname=dirname
 
11547
else
 
11548
  as_dirname=false
 
11549
fi
 
11550
 
 
11551
ECHO_C= ECHO_N= ECHO_T=
 
11552
case `echo -n x` in
 
11553
-n*)
 
11554
  case `echo 'x\c'` in
 
11555
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
11556
  *)   ECHO_C='\c';;
 
11557
  esac;;
 
11558
*)
 
11559
  ECHO_N='-n';;
 
11560
esac
 
11561
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
11562
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
11563
  as_expr=expr
 
11564
else
 
11565
  as_expr=false
 
11566
fi
 
11567
 
 
11568
rm -f conf$$ conf$$.exe conf$$.file
 
11569
if test -d conf$$.dir; then
 
11570
  rm -f conf$$.dir/conf$$.file
 
11571
else
 
11572
  rm -f conf$$.dir
 
11573
  mkdir conf$$.dir 2>/dev/null
 
11574
fi
 
11575
if (echo >conf$$.file) 2>/dev/null; then
 
11576
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
11577
    as_ln_s='ln -s'
 
11578
    # ... but there are two gotchas:
 
11579
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
11580
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
11581
    # In both cases, we have to default to `cp -p'.
 
11582
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
11583
      as_ln_s='cp -p'
 
11584
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
11585
    as_ln_s=ln
 
11586
  else
 
11587
    as_ln_s='cp -p'
 
11588
  fi
 
11589
else
 
11590
  as_ln_s='cp -p'
 
11591
fi
 
11592
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
11593
rmdir conf$$.dir 2>/dev/null
 
11594
 
 
11595
if mkdir -p . 2>/dev/null; then
 
11596
  as_mkdir_p=:
 
11597
else
 
11598
  test -d ./-p && rmdir ./-p
 
11599
  as_mkdir_p=false
 
11600
fi
 
11601
 
 
11602
if test -x / >/dev/null 2>&1; then
 
11603
  as_test_x='test -x'
 
11604
else
 
11605
  if ls -dL / >/dev/null 2>&1; then
 
11606
    as_ls_L_option=L
 
11607
  else
 
11608
    as_ls_L_option=
 
11609
  fi
 
11610
  as_test_x='
 
11611
    eval sh -c '\''
 
11612
      if test -d "$1"; then
 
11613
        test -d "$1/.";
 
11614
      else
 
11615
        case $1 in
 
11616
        -*)set "./$1";;
 
11617
        esac;
 
11618
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
11619
        ???[sx]*):;;*)false;;esac;fi
 
11620
    '\'' sh
 
11621
  '
 
11622
fi
 
11623
as_executable_p=$as_test_x
 
11624
 
 
11625
# Sed expression to map a string onto a valid CPP name.
 
11626
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
11627
 
 
11628
# Sed expression to map a string onto a valid variable name.
 
11629
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
11630
 
 
11631
 
 
11632
exec 6>&1
 
11633
 
 
11634
# Save the log message, to keep $[0] and so on meaningful, and to
 
11635
# report actual input values of CONFIG_FILES etc. instead of their
 
11636
# values after options handling.
 
11637
ac_log="
 
11638
This file was extended by path_utils $as_me 0.1, which was
 
11639
generated by GNU Autoconf 2.63.  Invocation command line was
 
11640
 
 
11641
  CONFIG_FILES    = $CONFIG_FILES
 
11642
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
11643
  CONFIG_LINKS    = $CONFIG_LINKS
 
11644
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
11645
  $ $0 $@
 
11646
 
 
11647
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
11648
"
 
11649
 
 
11650
_ACEOF
 
11651
 
 
11652
case $ac_config_files in *"
 
11653
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
11654
esac
 
11655
 
 
11656
case $ac_config_headers in *"
 
11657
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
11658
esac
 
11659
 
 
11660
 
 
11661
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11662
# Files that config.status was made for.
 
11663
config_files="$ac_config_files"
 
11664
config_headers="$ac_config_headers"
 
11665
config_commands="$ac_config_commands"
 
11666
 
 
11667
_ACEOF
 
11668
 
 
11669
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11670
ac_cs_usage="\
 
11671
\`$as_me' instantiates files from templates according to the
 
11672
current configuration.
 
11673
 
 
11674
Usage: $0 [OPTION]... [FILE]...
 
11675
 
 
11676
  -h, --help       print this help, then exit
 
11677
  -V, --version    print version number and configuration settings, then exit
 
11678
  -q, --quiet, --silent
 
11679
                   do not print progress messages
 
11680
  -d, --debug      don't remove temporary files
 
11681
      --recheck    update $as_me by reconfiguring in the same conditions
 
11682
      --file=FILE[:TEMPLATE]
 
11683
                   instantiate the configuration file FILE
 
11684
      --header=FILE[:TEMPLATE]
 
11685
                   instantiate the configuration header FILE
 
11686
 
 
11687
Configuration files:
 
11688
$config_files
 
11689
 
 
11690
Configuration headers:
 
11691
$config_headers
 
11692
 
 
11693
Configuration commands:
 
11694
$config_commands
 
11695
 
 
11696
Report bugs to <bug-autoconf@gnu.org>."
 
11697
 
 
11698
_ACEOF
 
11699
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11700
ac_cs_version="\\
 
11701
path_utils config.status 0.1
 
11702
configured by $0, generated by GNU Autoconf 2.63,
 
11703
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
11704
 
 
11705
Copyright (C) 2008 Free Software Foundation, Inc.
 
11706
This config.status script is free software; the Free Software Foundation
 
11707
gives unlimited permission to copy, distribute and modify it."
 
11708
 
 
11709
ac_pwd='$ac_pwd'
 
11710
srcdir='$srcdir'
 
11711
INSTALL='$INSTALL'
 
11712
MKDIR_P='$MKDIR_P'
 
11713
AWK='$AWK'
 
11714
test -n "\$AWK" || AWK=awk
 
11715
_ACEOF
 
11716
 
 
11717
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11718
# The default lists apply if the user does not specify any file.
 
11719
ac_need_defaults=:
 
11720
while test $# != 0
 
11721
do
 
11722
  case $1 in
 
11723
  --*=*)
 
11724
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
11725
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
11726
    ac_shift=:
 
11727
    ;;
 
11728
  *)
 
11729
    ac_option=$1
 
11730
    ac_optarg=$2
 
11731
    ac_shift=shift
 
11732
    ;;
 
11733
  esac
 
11734
 
 
11735
  case $ac_option in
 
11736
  # Handling of the options.
 
11737
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
11738
    ac_cs_recheck=: ;;
 
11739
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
11740
    $as_echo "$ac_cs_version"; exit ;;
 
11741
  --debug | --debu | --deb | --de | --d | -d )
 
11742
    debug=: ;;
 
11743
  --file | --fil | --fi | --f )
 
11744
    $ac_shift
 
11745
    case $ac_optarg in
 
11746
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
11747
    esac
 
11748
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
11749
    ac_need_defaults=false;;
 
11750
  --header | --heade | --head | --hea )
 
11751
    $ac_shift
 
11752
    case $ac_optarg in
 
11753
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
11754
    esac
 
11755
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
11756
    ac_need_defaults=false;;
 
11757
  --he | --h)
 
11758
    # Conflict between --help and --header
 
11759
    { $as_echo "$as_me: error: ambiguous option: $1
 
11760
Try \`$0 --help' for more information." >&2
 
11761
   { (exit 1); exit 1; }; };;
 
11762
  --help | --hel | -h )
 
11763
    $as_echo "$ac_cs_usage"; exit ;;
 
11764
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
11765
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
11766
    ac_cs_silent=: ;;
 
11767
 
 
11768
  # This is an error.
 
11769
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
11770
Try \`$0 --help' for more information." >&2
 
11771
   { (exit 1); exit 1; }; } ;;
 
11772
 
 
11773
  *) ac_config_targets="$ac_config_targets $1"
 
11774
     ac_need_defaults=false ;;
 
11775
 
 
11776
  esac
 
11777
  shift
 
11778
done
 
11779
 
 
11780
ac_configure_extra_args=
 
11781
 
 
11782
if $ac_cs_silent; then
 
11783
  exec 6>/dev/null
 
11784
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
11785
fi
 
11786
 
 
11787
_ACEOF
 
11788
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11789
if \$ac_cs_recheck; then
 
11790
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
11791
  shift
 
11792
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
11793
  CONFIG_SHELL='$SHELL'
 
11794
  export CONFIG_SHELL
 
11795
  exec "\$@"
 
11796
fi
 
11797
 
 
11798
_ACEOF
 
11799
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11800
exec 5>>config.log
 
11801
{
 
11802
  echo
 
11803
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
11804
## Running $as_me. ##
 
11805
_ASBOX
 
11806
  $as_echo "$ac_log"
 
11807
} >&5
 
11808
 
 
11809
_ACEOF
 
11810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11811
#
 
11812
# INIT-COMMANDS
 
11813
#
 
11814
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
11815
 
 
11816
 
 
11817
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11818
# if CDPATH is set.
 
11819
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11820
 
 
11821
sed_quote_subst='$sed_quote_subst'
 
11822
double_quote_subst='$double_quote_subst'
 
11823
delay_variable_subst='$delay_variable_subst'
 
11824
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
11825
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
11826
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
11827
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
11828
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
11829
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
11830
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
11831
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
11832
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
11833
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
11834
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
11835
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
11836
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
11837
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
11838
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
11839
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
11840
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
11841
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
11842
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
11843
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
11844
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
11845
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
11846
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
11847
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
11848
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
11849
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
11850
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11851
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11852
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
11853
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
11854
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
11855
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
11856
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
11857
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
11858
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
11859
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11860
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11861
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11862
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
11863
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
11864
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
11865
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
11866
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
11867
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
11868
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
11869
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
11870
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
11871
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
11872
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
11873
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
11874
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11875
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
11876
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
11877
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
11878
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
11879
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
11880
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
11881
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
11882
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
11883
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
11884
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
11885
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
11886
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11887
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11888
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
11889
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
11890
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11891
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11892
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
11893
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11894
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11895
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11896
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11897
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11898
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11899
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
11900
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11901
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11902
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11903
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
11904
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
11905
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
11906
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
11907
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
11908
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
11909
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
11910
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
11911
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
11912
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
11913
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
11914
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11915
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
11916
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
11917
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11918
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11919
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
11920
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
11921
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
11922
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
11923
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
11924
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
11925
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
11926
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11927
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11928
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11929
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11930
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11931
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11932
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
11933
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
11934
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11935
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11936
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
11937
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
11938
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
11939
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
11940
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
11941
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
11942
 
 
11943
LTCC='$LTCC'
 
11944
LTCFLAGS='$LTCFLAGS'
 
11945
compiler='$compiler_DEFAULT'
 
11946
 
 
11947
# Quote evaled strings.
 
11948
for var in SED \
 
11949
GREP \
 
11950
EGREP \
 
11951
FGREP \
 
11952
LD \
 
11953
NM \
 
11954
LN_S \
 
11955
lt_SP2NL \
 
11956
lt_NL2SP \
 
11957
reload_flag \
 
11958
OBJDUMP \
 
11959
deplibs_check_method \
 
11960
file_magic_cmd \
 
11961
AR \
 
11962
AR_FLAGS \
 
11963
STRIP \
 
11964
RANLIB \
 
11965
CC \
 
11966
CFLAGS \
 
11967
compiler \
 
11968
lt_cv_sys_global_symbol_pipe \
 
11969
lt_cv_sys_global_symbol_to_cdecl \
 
11970
lt_cv_sys_global_symbol_to_c_name_address \
 
11971
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
11972
SHELL \
 
11973
ECHO \
 
11974
lt_prog_compiler_no_builtin_flag \
 
11975
lt_prog_compiler_wl \
 
11976
lt_prog_compiler_pic \
 
11977
lt_prog_compiler_static \
 
11978
lt_cv_prog_compiler_c_o \
 
11979
need_locks \
 
11980
DSYMUTIL \
 
11981
NMEDIT \
 
11982
LIPO \
 
11983
OTOOL \
 
11984
OTOOL64 \
 
11985
shrext_cmds \
 
11986
export_dynamic_flag_spec \
 
11987
whole_archive_flag_spec \
 
11988
compiler_needs_object \
 
11989
with_gnu_ld \
 
11990
allow_undefined_flag \
 
11991
no_undefined_flag \
 
11992
hardcode_libdir_flag_spec \
 
11993
hardcode_libdir_flag_spec_ld \
 
11994
hardcode_libdir_separator \
 
11995
fix_srcfile_path \
 
11996
exclude_expsyms \
 
11997
include_expsyms \
 
11998
file_list_spec \
 
11999
variables_saved_for_relink \
 
12000
libname_spec \
 
12001
library_names_spec \
 
12002
soname_spec \
 
12003
finish_eval \
 
12004
old_striplib \
 
12005
striplib; do
 
12006
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
12007
    *[\\\\\\\`\\"\\\$]*)
 
12008
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
12009
      ;;
 
12010
    *)
 
12011
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
12012
      ;;
 
12013
    esac
 
12014
done
 
12015
 
 
12016
# Double-quote double-evaled strings.
 
12017
for var in reload_cmds \
 
12018
old_postinstall_cmds \
 
12019
old_postuninstall_cmds \
 
12020
old_archive_cmds \
 
12021
extract_expsyms_cmds \
 
12022
old_archive_from_new_cmds \
 
12023
old_archive_from_expsyms_cmds \
 
12024
archive_cmds \
 
12025
archive_expsym_cmds \
 
12026
module_cmds \
 
12027
module_expsym_cmds \
 
12028
export_symbols_cmds \
 
12029
prelink_cmds \
 
12030
postinstall_cmds \
 
12031
postuninstall_cmds \
 
12032
finish_cmds \
 
12033
sys_lib_search_path_spec \
 
12034
sys_lib_dlsearch_path_spec; do
 
12035
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
12036
    *[\\\\\\\`\\"\\\$]*)
 
12037
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
12038
      ;;
 
12039
    *)
 
12040
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
12041
      ;;
 
12042
    esac
 
12043
done
 
12044
 
 
12045
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
12046
case \$lt_ECHO in
 
12047
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
12048
  ;;
 
12049
esac
 
12050
 
 
12051
ac_aux_dir='$ac_aux_dir'
 
12052
xsi_shell='$xsi_shell'
 
12053
lt_shell_append='$lt_shell_append'
 
12054
 
 
12055
# See if we are running on zsh, and set the options which allow our
 
12056
# commands through without removal of \ escapes INIT.
 
12057
if test -n "\${ZSH_VERSION+set}" ; then
 
12058
   setopt NO_GLOB_SUBST
 
12059
fi
 
12060
 
 
12061
 
 
12062
    PACKAGE='$PACKAGE'
 
12063
    VERSION='$VERSION'
 
12064
    TIMESTAMP='$TIMESTAMP'
 
12065
    RM='$RM'
 
12066
    ofile='$ofile'
 
12067
 
 
12068
 
 
12069
 
 
12070
 
 
12071
_ACEOF
 
12072
 
 
12073
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12074
 
 
12075
# Handling of arguments.
 
12076
for ac_config_target in $ac_config_targets
 
12077
do
 
12078
  case $ac_config_target in
 
12079
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
12080
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
12081
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
12082
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
12083
    "path_utils.pc") CONFIG_FILES="$CONFIG_FILES path_utils.pc" ;;
 
12084
 
 
12085
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
12086
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
12087
   { (exit 1); exit 1; }; };;
 
12088
  esac
 
12089
done
 
12090
 
 
12091
 
 
12092
# If the user did not use the arguments to specify the items to instantiate,
 
12093
# then the envvar interface is used.  Set only those that are not.
 
12094
# We use the long form for the default assignment because of an extremely
 
12095
# bizarre bug on SunOS 4.1.3.
 
12096
if $ac_need_defaults; then
 
12097
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
12098
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
12099
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
12100
fi
 
12101
 
 
12102
# Have a temporary directory for convenience.  Make it in the build tree
 
12103
# simply because there is no reason against having it here, and in addition,
 
12104
# creating and moving files from /tmp can sometimes cause problems.
 
12105
# Hook for its removal unless debugging.
 
12106
# Note that there is a small window in which the directory will not be cleaned:
 
12107
# after its creation but before its name has been assigned to `$tmp'.
 
12108
$debug ||
 
12109
{
 
12110
  tmp=
 
12111
  trap 'exit_status=$?
 
12112
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
12113
' 0
 
12114
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
12115
}
 
12116
# Create a (secure) tmp directory for tmp files.
 
12117
 
 
12118
{
 
12119
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
12120
  test -n "$tmp" && test -d "$tmp"
 
12121
}  ||
 
12122
{
 
12123
  tmp=./conf$$-$RANDOM
 
12124
  (umask 077 && mkdir "$tmp")
 
12125
} ||
 
12126
{
 
12127
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
12128
   { (exit 1); exit 1; }
 
12129
}
 
12130
 
 
12131
# Set up the scripts for CONFIG_FILES section.
 
12132
# No need to generate them if there are no CONFIG_FILES.
 
12133
# This happens for instance with `./config.status config.h'.
 
12134
if test -n "$CONFIG_FILES"; then
 
12135
 
 
12136
 
 
12137
ac_cr='
 
 
b"'"
 
12138
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
12139
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
12140
  ac_cs_awk_cr='\\r'
 
12141
else
 
12142
  ac_cs_awk_cr=$ac_cr
 
12143
fi
 
12144
 
 
12145
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
12146
_ACEOF
 
12147
 
 
12148
 
 
12149
{
 
12150
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
12151
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
12152
  echo "_ACEOF"
 
12153
} >conf$$subs.sh ||
 
12154
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
12155
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
12156
   { (exit 1); exit 1; }; }
 
12157
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
12158
ac_delim='%!_!# '
 
12159
for ac_last_try in false false false false false :; do
 
12160
  . ./conf$$subs.sh ||
 
12161
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
12162
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
12163
   { (exit 1); exit 1; }; }
 
12164
 
 
12165
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
12166
  if test $ac_delim_n = $ac_delim_num; then
 
12167
    break
 
12168
  elif $ac_last_try; then
 
12169
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
12170
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
12171
   { (exit 1); exit 1; }; }
 
12172
  else
 
12173
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
12174
  fi
 
12175
done
 
12176
rm -f conf$$subs.sh
 
12177
 
 
12178
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12179
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
12180
_ACEOF
 
12181
sed -n '
 
12182
h
 
12183
s/^/S["/; s/!.*/"]=/
 
12184
p
 
12185
g
 
12186
s/^[^!]*!//
 
12187
:repl
 
12188
t repl
 
12189
s/'"$ac_delim"'$//
 
12190
t delim
 
12191
:nl
 
12192
h
 
12193
s/\(.\{148\}\).*/\1/
 
12194
t more1
 
12195
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
12196
p
 
12197
n
 
12198
b repl
 
12199
:more1
 
12200
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
12201
p
 
12202
g
 
12203
s/.\{148\}//
 
12204
t nl
 
12205
:delim
 
12206
h
 
12207
s/\(.\{148\}\).*/\1/
 
12208
t more2
 
12209
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
12210
p
 
12211
b
 
12212
:more2
 
12213
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
12214
p
 
12215
g
 
12216
s/.\{148\}//
 
12217
t delim
 
12218
' <conf$$subs.awk | sed '
 
12219
/^[^""]/{
 
12220
  N
 
12221
  s/\n//
 
12222
}
 
12223
' >>$CONFIG_STATUS || ac_write_fail=1
 
12224
rm -f conf$$subs.awk
 
12225
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12226
_ACAWK
 
12227
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
12228
  for (key in S) S_is_set[key] = 1
 
12229
  FS = ""
 
12230
 
 
12231
}
 
12232
{
 
12233
  line = $ 0
 
12234
  nfields = split(line, field, "@")
 
12235
  substed = 0
 
12236
  len = length(field[1])
 
12237
  for (i = 2; i < nfields; i++) {
 
12238
    key = field[i]
 
12239
    keylen = length(key)
 
12240
    if (S_is_set[key]) {
 
12241
      value = S[key]
 
12242
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
12243
      len += length(value) + length(field[++i])
 
12244
      substed = 1
 
12245
    } else
 
12246
      len += 1 + keylen
 
12247
  }
 
12248
 
 
12249
  print line
 
12250
}
 
12251
 
 
12252
_ACAWK
 
12253
_ACEOF
 
12254
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12255
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
12256
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
12257
else
 
12258
  cat
 
12259
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
12260
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
12261
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
12262
   { (exit 1); exit 1; }; }
 
12263
_ACEOF
 
12264
 
 
12265
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
12266
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
12267
# trailing colons and then remove the whole line if VPATH becomes empty
 
12268
# (actually we leave an empty line to preserve line numbers).
 
12269
if test "x$srcdir" = x.; then
 
12270
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
12271
s/:*\$(srcdir):*/:/
 
12272
s/:*\${srcdir}:*/:/
 
12273
s/:*@srcdir@:*/:/
 
12274
s/^\([^=]*=[     ]*\):*/\1/
 
12275
s/:*$//
 
12276
s/^[^=]*=[       ]*$//
 
12277
}'
 
12278
fi
 
12279
 
 
12280
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12281
fi # test -n "$CONFIG_FILES"
 
12282
 
 
12283
# Set up the scripts for CONFIG_HEADERS section.
 
12284
# No need to generate them if there are no CONFIG_HEADERS.
 
12285
# This happens for instance with `./config.status Makefile'.
 
12286
if test -n "$CONFIG_HEADERS"; then
 
12287
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
12288
BEGIN {
 
12289
_ACEOF
 
12290
 
 
12291
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
12292
# here-document in config.status, that substitutes the proper values into
 
12293
# config.h.in to produce config.h.
 
12294
 
 
12295
# Create a delimiter string that does not exist in confdefs.h, to ease
 
12296
# handling of long lines.
 
12297
ac_delim='%!_!# '
 
12298
for ac_last_try in false false :; do
 
12299
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
12300
  if test -z "$ac_t"; then
 
12301
    break
 
12302
  elif $ac_last_try; then
 
12303
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
12304
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
12305
   { (exit 1); exit 1; }; }
 
12306
  else
 
12307
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
12308
  fi
 
12309
done
 
12310
 
 
12311
# For the awk script, D is an array of macro values keyed by name,
 
12312
# likewise P contains macro parameters if any.  Preserve backslash
 
12313
# newline sequences.
 
12314
 
 
12315
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
12316
sed -n '
 
12317
s/.\{148\}/&'"$ac_delim"'/g
 
12318
t rset
 
12319
:rset
 
12320
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
12321
t def
 
12322
d
 
12323
:def
 
12324
s/\\$//
 
12325
t bsnl
 
12326
s/["\\]/\\&/g
 
12327
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
12328
D["\1"]=" \3"/p
 
12329
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
12330
d
 
12331
:bsnl
 
12332
s/["\\]/\\&/g
 
12333
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
12334
D["\1"]=" \3\\\\\\n"\\/p
 
12335
t cont
 
12336
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
12337
t cont
 
12338
d
 
12339
:cont
 
12340
n
 
12341
s/.\{148\}/&'"$ac_delim"'/g
 
12342
t clear
 
12343
:clear
 
12344
s/\\$//
 
12345
t bsnlc
 
12346
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
12347
d
 
12348
:bsnlc
 
12349
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
12350
b cont
 
12351
' <confdefs.h | sed '
 
12352
s/'"$ac_delim"'/"\\\
 
12353
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
12354
 
 
12355
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12356
  for (key in D) D_is_set[key] = 1
 
12357
  FS = ""
 
12358
}
 
12359
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
12360
  line = \$ 0
 
12361
  split(line, arg, " ")
 
12362
  if (arg[1] == "#") {
 
12363
    defundef = arg[2]
 
12364
    mac1 = arg[3]
 
12365
  } else {
 
12366
    defundef = substr(arg[1], 2)
 
12367
    mac1 = arg[2]
 
12368
  }
 
12369
  split(mac1, mac2, "(") #)
 
12370
  macro = mac2[1]
 
12371
  prefix = substr(line, 1, index(line, defundef) - 1)
 
12372
  if (D_is_set[macro]) {
 
12373
    # Preserve the white space surrounding the "#".
 
12374
    print prefix "define", macro P[macro] D[macro]
 
12375
    next
 
12376
  } else {
 
12377
    # Replace #undef with comments.  This is necessary, for example,
 
12378
    # in the case of _POSIX_SOURCE, which is predefined and required
 
12379
    # on some systems where configure will not decide to define it.
 
12380
    if (defundef == "undef") {
 
12381
      print "/*", prefix defundef, macro, "*/"
 
12382
      next
 
12383
    }
 
12384
  }
 
12385
}
 
12386
{ print }
 
12387
_ACAWK
 
12388
_ACEOF
 
12389
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12390
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
12391
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
12392
   { (exit 1); exit 1; }; }
 
12393
fi # test -n "$CONFIG_HEADERS"
 
12394
 
 
12395
 
 
12396
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
12397
shift
 
12398
for ac_tag
 
12399
do
 
12400
  case $ac_tag in
 
12401
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
12402
  esac
 
12403
  case $ac_mode$ac_tag in
 
12404
  :[FHL]*:*);;
 
12405
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
12406
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
12407
   { (exit 1); exit 1; }; };;
 
12408
  :[FH]-) ac_tag=-:-;;
 
12409
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
12410
  esac
 
12411
  ac_save_IFS=$IFS
 
12412
  IFS=:
 
12413
  set x $ac_tag
 
12414
  IFS=$ac_save_IFS
 
12415
  shift
 
12416
  ac_file=$1
 
12417
  shift
 
12418
 
 
12419
  case $ac_mode in
 
12420
  :L) ac_source=$1;;
 
12421
  :[FH])
 
12422
    ac_file_inputs=
 
12423
    for ac_f
 
12424
    do
 
12425
      case $ac_f in
 
12426
      -) ac_f="$tmp/stdin";;
 
12427
      *) # Look for the file first in the build tree, then in the source tree
 
12428
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
12429
         # because $ac_f cannot contain `:'.
 
12430
         test -f "$ac_f" ||
 
12431
           case $ac_f in
 
12432
           [\\/$]*) false;;
 
12433
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
12434
           esac ||
 
12435
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
12436
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
12437
   { (exit 1); exit 1; }; };;
 
12438
      esac
 
12439
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
12440
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
12441
    done
 
12442
 
 
12443
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
12444
    # use $as_me), people would be surprised to read:
 
12445
    #    /* config.h.  Generated by config.status.  */
 
12446
    configure_input='Generated from '`
 
12447
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
12448
        `' by configure.'
 
12449
    if test x"$ac_file" != x-; then
 
12450
      configure_input="$ac_file.  $configure_input"
 
12451
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
12452
$as_echo "$as_me: creating $ac_file" >&6;}
 
12453
    fi
 
12454
    # Neutralize special characters interpreted by sed in replacement strings.
 
12455
    case $configure_input in #(
 
12456
    *\&* | *\|* | *\\* )
 
12457
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
12458
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
12459
    *) ac_sed_conf_input=$configure_input;;
 
12460
    esac
 
12461
 
 
12462
    case $ac_tag in
 
12463
    *:-:* | *:-) cat >"$tmp/stdin" \
 
12464
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
12465
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
12466
   { (exit 1); exit 1; }; } ;;
 
12467
    esac
 
12468
    ;;
 
12469
  esac
 
12470
 
 
12471
  ac_dir=`$as_dirname -- "$ac_file" ||
 
12472
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12473
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
12474
         X"$ac_file" : 'X\(//\)$' \| \
 
12475
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
12476
$as_echo X"$ac_file" |
 
12477
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12478
            s//\1/
 
12479
            q
 
12480
          }
 
12481
          /^X\(\/\/\)[^/].*/{
 
12482
            s//\1/
 
12483
            q
 
12484
          }
 
12485
          /^X\(\/\/\)$/{
 
12486
            s//\1/
 
12487
            q
 
12488
          }
 
12489
          /^X\(\/\).*/{
 
12490
            s//\1/
 
12491
            q
 
12492
          }
 
12493
          s/.*/./; q'`
 
12494
  { as_dir="$ac_dir"
 
12495
  case $as_dir in #(
 
12496
  -*) as_dir=./$as_dir;;
 
12497
  esac
 
12498
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
12499
    as_dirs=
 
12500
    while :; do
 
12501
      case $as_dir in #(
 
12502
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
12503
      *) as_qdir=$as_dir;;
 
12504
      esac
 
12505
      as_dirs="'$as_qdir' $as_dirs"
 
12506
      as_dir=`$as_dirname -- "$as_dir" ||
 
12507
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12508
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
12509
         X"$as_dir" : 'X\(//\)$' \| \
 
12510
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
12511
$as_echo X"$as_dir" |
 
12512
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12513
            s//\1/
 
12514
            q
 
12515
          }
 
12516
          /^X\(\/\/\)[^/].*/{
 
12517
            s//\1/
 
12518
            q
 
12519
          }
 
12520
          /^X\(\/\/\)$/{
 
12521
            s//\1/
 
12522
            q
 
12523
          }
 
12524
          /^X\(\/\).*/{
 
12525
            s//\1/
 
12526
            q
 
12527
          }
 
12528
          s/.*/./; q'`
 
12529
      test -d "$as_dir" && break
 
12530
    done
 
12531
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
12532
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
12533
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
12534
   { (exit 1); exit 1; }; }; }
 
12535
  ac_builddir=.
 
12536
 
 
12537
case "$ac_dir" in
 
12538
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
12539
*)
 
12540
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
12541
  # A ".." for each directory in $ac_dir_suffix.
 
12542
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
12543
  case $ac_top_builddir_sub in
 
12544
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
12545
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
12546
  esac ;;
 
12547
esac
 
12548
ac_abs_top_builddir=$ac_pwd
 
12549
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
12550
# for backward compatibility:
 
12551
ac_top_builddir=$ac_top_build_prefix
 
12552
 
 
12553
case $srcdir in
 
12554
  .)  # We are building in place.
 
12555
    ac_srcdir=.
 
12556
    ac_top_srcdir=$ac_top_builddir_sub
 
12557
    ac_abs_top_srcdir=$ac_pwd ;;
 
12558
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
12559
    ac_srcdir=$srcdir$ac_dir_suffix;
 
12560
    ac_top_srcdir=$srcdir
 
12561
    ac_abs_top_srcdir=$srcdir ;;
 
12562
  *) # Relative name.
 
12563
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
12564
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
12565
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
12566
esac
 
12567
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
12568
 
 
12569
 
 
12570
  case $ac_mode in
 
12571
  :F)
 
12572
  #
 
12573
  # CONFIG_FILE
 
12574
  #
 
12575
 
 
12576
  case $INSTALL in
 
12577
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
12578
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
12579
  esac
 
12580
  ac_MKDIR_P=$MKDIR_P
 
12581
  case $MKDIR_P in
 
12582
  [\\/$]* | ?:[\\/]* ) ;;
 
12583
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
12584
  esac
 
12585
_ACEOF
 
12586
 
 
12587
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12588
# If the template does not know about datarootdir, expand it.
 
12589
# FIXME: This hack should be removed a few years after 2.60.
 
12590
ac_datarootdir_hack=; ac_datarootdir_seen=
 
12591
 
 
12592
ac_sed_dataroot='
 
12593
/datarootdir/ {
 
12594
  p
 
12595
  q
 
12596
}
 
12597
/@datadir@/p
 
12598
/@docdir@/p
 
12599
/@infodir@/p
 
12600
/@localedir@/p
 
12601
/@mandir@/p
 
12602
'
 
12603
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
12604
*datarootdir*) ac_datarootdir_seen=yes;;
 
12605
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
12606
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
12607
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
12608
_ACEOF
 
12609
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12610
  ac_datarootdir_hack='
 
12611
  s&@datadir@&$datadir&g
 
12612
  s&@docdir@&$docdir&g
 
12613
  s&@infodir@&$infodir&g
 
12614
  s&@localedir@&$localedir&g
 
12615
  s&@mandir@&$mandir&g
 
12616
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
12617
esac
 
12618
_ACEOF
 
12619
 
 
12620
# Neutralize VPATH when `$srcdir' = `.'.
 
12621
# Shell code in configure.ac might set extrasub.
 
12622
# FIXME: do we really want to maintain this feature?
 
12623
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12624
ac_sed_extra="$ac_vpsub
 
12625
$extrasub
 
12626
_ACEOF
 
12627
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12628
:t
 
12629
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
12630
s|@configure_input@|$ac_sed_conf_input|;t t
 
12631
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
12632
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
12633
s&@srcdir@&$ac_srcdir&;t t
 
12634
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
12635
s&@top_srcdir@&$ac_top_srcdir&;t t
 
12636
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
12637
s&@builddir@&$ac_builddir&;t t
 
12638
s&@abs_builddir@&$ac_abs_builddir&;t t
 
12639
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
12640
s&@INSTALL@&$ac_INSTALL&;t t
 
12641
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
12642
$ac_datarootdir_hack
 
12643
"
 
12644
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
12645
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
12646
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
12647
   { (exit 1); exit 1; }; }
 
12648
 
 
12649
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
12650
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
12651
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
12652
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
12653
which seems to be undefined.  Please make sure it is defined." >&5
 
12654
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
12655
which seems to be undefined.  Please make sure it is defined." >&2;}
 
12656
 
 
12657
  rm -f "$tmp/stdin"
 
12658
  case $ac_file in
 
12659
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
12660
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
12661
  esac \
 
12662
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
12663
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
12664
   { (exit 1); exit 1; }; }
 
12665
 ;;
 
12666
  :H)
 
12667
  #
 
12668
  # CONFIG_HEADER
 
12669
  #
 
12670
  if test x"$ac_file" != x-; then
 
12671
    {
 
12672
      $as_echo "/* $configure_input  */" \
 
12673
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
12674
    } >"$tmp/config.h" \
 
12675
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
12676
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
12677
   { (exit 1); exit 1; }; }
 
12678
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
12679
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
12680
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
12681
    else
 
12682
      rm -f "$ac_file"
 
12683
      mv "$tmp/config.h" "$ac_file" \
 
12684
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
12685
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
12686
   { (exit 1); exit 1; }; }
 
12687
    fi
 
12688
  else
 
12689
    $as_echo "/* $configure_input  */" \
 
12690
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
12691
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
12692
$as_echo "$as_me: error: could not create -" >&2;}
 
12693
   { (exit 1); exit 1; }; }
 
12694
  fi
 
12695
# Compute "$ac_file"'s index in $config_headers.
 
12696
_am_arg="$ac_file"
 
12697
_am_stamp_count=1
 
12698
for _am_header in $config_headers :; do
 
12699
  case $_am_header in
 
12700
    $_am_arg | $_am_arg:* )
 
12701
      break ;;
 
12702
    * )
 
12703
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
12704
  esac
 
12705
done
 
12706
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
12707
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12708
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
12709
         X"$_am_arg" : 'X\(//\)$' \| \
 
12710
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
12711
$as_echo X"$_am_arg" |
 
12712
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12713
            s//\1/
 
12714
            q
 
12715
          }
 
12716
          /^X\(\/\/\)[^/].*/{
 
12717
            s//\1/
 
12718
            q
 
12719
          }
 
12720
          /^X\(\/\/\)$/{
 
12721
            s//\1/
 
12722
            q
 
12723
          }
 
12724
          /^X\(\/\).*/{
 
12725
            s//\1/
 
12726
            q
 
12727
          }
 
12728
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
12729
 ;;
 
12730
 
 
12731
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
12732
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
12733
 ;;
 
12734
  esac
 
12735
 
 
12736
 
 
12737
  case $ac_file$ac_mode in
 
12738
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
12739
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
12740
  # are listed without --file.  Let's play safe and only enable the eval
 
12741
  # if we detect the quoting.
 
12742
  case $CONFIG_FILES in
 
12743
  *\'*) eval set x "$CONFIG_FILES" ;;
 
12744
  *)   set x $CONFIG_FILES ;;
 
12745
  esac
 
12746
  shift
 
12747
  for mf
 
12748
  do
 
12749
    # Strip MF so we end up with the name of the file.
 
12750
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
12751
    # Check whether this is an Automake generated Makefile or not.
 
12752
    # We used to match only the files named `Makefile.in', but
 
12753
    # some people rename them; so instead we look at the file content.
 
12754
    # Grep'ing the first line is not enough: some people post-process
 
12755
    # each Makefile.in and add a new line on top of each file to say so.
 
12756
    # Grep'ing the whole file is not good either: AIX grep has a line
 
12757
    # limit of 2048, but all sed's we know have understand at least 4000.
 
12758
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
12759
      dirpart=`$as_dirname -- "$mf" ||
 
12760
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12761
         X"$mf" : 'X\(//\)[^/]' \| \
 
12762
         X"$mf" : 'X\(//\)$' \| \
 
12763
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
12764
$as_echo X"$mf" |
 
12765
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12766
            s//\1/
 
12767
            q
 
12768
          }
 
12769
          /^X\(\/\/\)[^/].*/{
 
12770
            s//\1/
 
12771
            q
 
12772
          }
 
12773
          /^X\(\/\/\)$/{
 
12774
            s//\1/
 
12775
            q
 
12776
          }
 
12777
          /^X\(\/\).*/{
 
12778
            s//\1/
 
12779
            q
 
12780
          }
 
12781
          s/.*/./; q'`
 
12782
    else
 
12783
      continue
 
12784
    fi
 
12785
    # Extract the definition of DEPDIR, am__include, and am__quote
 
12786
    # from the Makefile without running `make'.
 
12787
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
12788
    test -z "$DEPDIR" && continue
 
12789
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
12790
    test -z "am__include" && continue
 
12791
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
12792
    # When using ansi2knr, U may be empty or an underscore; expand it
 
12793
    U=`sed -n 's/^U = //p' < "$mf"`
 
12794
    # Find all dependency output files, they are included files with
 
12795
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
12796
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
12797
    # expansion.
 
12798
    for file in `sed -n "
 
12799
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
12800
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
12801
      # Make sure the directory exists.
 
12802
      test -f "$dirpart/$file" && continue
 
12803
      fdir=`$as_dirname -- "$file" ||
 
12804
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12805
         X"$file" : 'X\(//\)[^/]' \| \
 
12806
         X"$file" : 'X\(//\)$' \| \
 
12807
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
12808
$as_echo X"$file" |
 
12809
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12810
            s//\1/
 
12811
            q
 
12812
          }
 
12813
          /^X\(\/\/\)[^/].*/{
 
12814
            s//\1/
 
12815
            q
 
12816
          }
 
12817
          /^X\(\/\/\)$/{
 
12818
            s//\1/
 
12819
            q
 
12820
          }
 
12821
          /^X\(\/\).*/{
 
12822
            s//\1/
 
12823
            q
 
12824
          }
 
12825
          s/.*/./; q'`
 
12826
      { as_dir=$dirpart/$fdir
 
12827
  case $as_dir in #(
 
12828
  -*) as_dir=./$as_dir;;
 
12829
  esac
 
12830
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
12831
    as_dirs=
 
12832
    while :; do
 
12833
      case $as_dir in #(
 
12834
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
12835
      *) as_qdir=$as_dir;;
 
12836
      esac
 
12837
      as_dirs="'$as_qdir' $as_dirs"
 
12838
      as_dir=`$as_dirname -- "$as_dir" ||
 
12839
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12840
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
12841
         X"$as_dir" : 'X\(//\)$' \| \
 
12842
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
12843
$as_echo X"$as_dir" |
 
12844
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12845
            s//\1/
 
12846
            q
 
12847
          }
 
12848
          /^X\(\/\/\)[^/].*/{
 
12849
            s//\1/
 
12850
            q
 
12851
          }
 
12852
          /^X\(\/\/\)$/{
 
12853
            s//\1/
 
12854
            q
 
12855
          }
 
12856
          /^X\(\/\).*/{
 
12857
            s//\1/
 
12858
            q
 
12859
          }
 
12860
          s/.*/./; q'`
 
12861
      test -d "$as_dir" && break
 
12862
    done
 
12863
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
12864
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
12865
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
12866
   { (exit 1); exit 1; }; }; }
 
12867
      # echo "creating $dirpart/$file"
 
12868
      echo '# dummy' > "$dirpart/$file"
 
12869
    done
 
12870
  done
 
12871
}
 
12872
 ;;
 
12873
    "libtool":C)
 
12874
 
 
12875
    # See if we are running on zsh, and set the options which allow our
 
12876
    # commands through without removal of \ escapes.
 
12877
    if test -n "${ZSH_VERSION+set}" ; then
 
12878
      setopt NO_GLOB_SUBST
 
12879
    fi
 
12880
 
 
12881
    cfgfile="${ofile}T"
 
12882
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
12883
    $RM "$cfgfile"
 
12884
 
 
12885
    cat <<_LT_EOF >> "$cfgfile"
 
12886
#! $SHELL
 
12887
 
 
12888
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
12889
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
12890
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12891
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
12892
#
 
12893
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
12894
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
12895
#   Written by Gordon Matzigkeit, 1996
 
12896
#
 
12897
#   This file is part of GNU Libtool.
 
12898
#
 
12899
# GNU Libtool is free software; you can redistribute it and/or
 
12900
# modify it under the terms of the GNU General Public License as
 
12901
# published by the Free Software Foundation; either version 2 of
 
12902
# the License, or (at your option) any later version.
 
12903
#
 
12904
# As a special exception to the GNU General Public License,
 
12905
# if you distribute this file as part of a program or library that
 
12906
# is built using GNU Libtool, you may include this file under the
 
12907
# same distribution terms that you use for the rest of that program.
 
12908
#
 
12909
# GNU Libtool is distributed in the hope that it will be useful,
 
12910
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12911
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12912
# GNU General Public License for more details.
 
12913
#
 
12914
# You should have received a copy of the GNU General Public License
 
12915
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
12916
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
12917
# obtained by writing to the Free Software Foundation, Inc.,
 
12918
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
12919
 
 
12920
 
 
12921
# The names of the tagged configurations supported by this script.
 
12922
available_tags=""
 
12923
 
 
12924
# ### BEGIN LIBTOOL CONFIG
 
12925
 
 
12926
# Which release of libtool.m4 was used?
 
12927
macro_version=$macro_version
 
12928
macro_revision=$macro_revision
 
12929
 
 
12930
# Whether or not to build shared libraries.
 
12931
build_libtool_libs=$enable_shared
 
12932
 
 
12933
# Whether or not to build static libraries.
 
12934
build_old_libs=$enable_static
 
12935
 
 
12936
# What type of objects to build.
 
12937
pic_mode=$pic_mode
 
12938
 
 
12939
# Whether or not to optimize for fast installation.
 
12940
fast_install=$enable_fast_install
 
12941
 
 
12942
# The host system.
 
12943
host_alias=$host_alias
 
12944
host=$host
 
12945
host_os=$host_os
 
12946
 
 
12947
# The build system.
 
12948
build_alias=$build_alias
 
12949
build=$build
 
12950
build_os=$build_os
 
12951
 
 
12952
# A sed program that does not truncate output.
 
12953
SED=$lt_SED
 
12954
 
 
12955
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
12956
Xsed="\$SED -e 1s/^X//"
 
12957
 
 
12958
# A grep program that handles long lines.
 
12959
GREP=$lt_GREP
 
12960
 
 
12961
# An ERE matcher.
 
12962
EGREP=$lt_EGREP
 
12963
 
 
12964
# A literal string matcher.
 
12965
FGREP=$lt_FGREP
 
12966
 
 
12967
# A BSD- or MS-compatible name lister.
 
12968
NM=$lt_NM
 
12969
 
 
12970
# Whether we need soft or hard links.
 
12971
LN_S=$lt_LN_S
 
12972
 
 
12973
# What is the maximum length of a command?
 
12974
max_cmd_len=$max_cmd_len
 
12975
 
 
12976
# Object file suffix (normally "o").
 
12977
objext=$ac_objext
 
12978
 
 
12979
# Executable file suffix (normally "").
 
12980
exeext=$exeext
 
12981
 
 
12982
# whether the shell understands "unset".
 
12983
lt_unset=$lt_unset
 
12984
 
 
12985
# turn spaces into newlines.
 
12986
SP2NL=$lt_lt_SP2NL
 
12987
 
 
12988
# turn newlines into spaces.
 
12989
NL2SP=$lt_lt_NL2SP
 
12990
 
 
12991
# How to create reloadable object files.
 
12992
reload_flag=$lt_reload_flag
 
12993
reload_cmds=$lt_reload_cmds
 
12994
 
 
12995
# An object symbol dumper.
 
12996
OBJDUMP=$lt_OBJDUMP
 
12997
 
 
12998
# Method to check whether dependent libraries are shared objects.
 
12999
deplibs_check_method=$lt_deplibs_check_method
 
13000
 
 
13001
# Command to use when deplibs_check_method == "file_magic".
 
13002
file_magic_cmd=$lt_file_magic_cmd
 
13003
 
 
13004
# The archiver.
 
13005
AR=$lt_AR
 
13006
AR_FLAGS=$lt_AR_FLAGS
 
13007
 
 
13008
# A symbol stripping program.
 
13009
STRIP=$lt_STRIP
 
13010
 
 
13011
# Commands used to install an old-style archive.
 
13012
RANLIB=$lt_RANLIB
 
13013
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13014
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13015
 
 
13016
# A C compiler.
 
13017
LTCC=$lt_CC
 
13018
 
 
13019
# LTCC compiler flags.
 
13020
LTCFLAGS=$lt_CFLAGS
 
13021
 
 
13022
# Take the output of nm and produce a listing of raw symbols and C names.
 
13023
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13024
 
 
13025
# Transform the output of nm in a proper C declaration.
 
13026
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13027
 
 
13028
# Transform the output of nm in a C name address pair.
 
13029
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13030
 
 
13031
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
13032
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
13033
 
 
13034
# The name of the directory that contains temporary libtool files.
 
13035
objdir=$objdir
 
13036
 
 
13037
# Shell to use when invoking shell scripts.
 
13038
SHELL=$lt_SHELL
 
13039
 
 
13040
# An echo program that does not interpret backslashes.
 
13041
ECHO=$lt_ECHO
 
13042
 
 
13043
# Used to examine libraries when file_magic_cmd begins with "file".
 
13044
MAGIC_CMD=$MAGIC_CMD
 
13045
 
 
13046
# Must we lock files when doing compilation?
 
13047
need_locks=$lt_need_locks
 
13048
 
 
13049
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
13050
DSYMUTIL=$lt_DSYMUTIL
 
13051
 
 
13052
# Tool to change global to local symbols on Mac OS X.
 
13053
NMEDIT=$lt_NMEDIT
 
13054
 
 
13055
# Tool to manipulate fat objects and archives on Mac OS X.
 
13056
LIPO=$lt_LIPO
 
13057
 
 
13058
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
13059
OTOOL=$lt_OTOOL
 
13060
 
 
13061
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
13062
OTOOL64=$lt_OTOOL64
 
13063
 
 
13064
# Old archive suffix (normally "a").
 
13065
libext=$libext
 
13066
 
 
13067
# Shared library suffix (normally ".so").
 
13068
shrext_cmds=$lt_shrext_cmds
 
13069
 
 
13070
# The commands to extract the exported symbol list from a shared archive.
 
13071
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13072
 
 
13073
# Variables whose values should be saved in libtool wrapper scripts and
 
13074
# restored at link time.
 
13075
variables_saved_for_relink=$lt_variables_saved_for_relink
 
13076
 
 
13077
# Do we need the "lib" prefix for modules?
 
13078
need_lib_prefix=$need_lib_prefix
 
13079
 
 
13080
# Do we need a version for libraries?
 
13081
need_version=$need_version
 
13082
 
 
13083
# Library versioning type.
 
13084
version_type=$version_type
 
13085
 
 
13086
# Shared library runtime path variable.
 
13087
runpath_var=$runpath_var
 
13088
 
 
13089
# Shared library path variable.
 
13090
shlibpath_var=$shlibpath_var
 
13091
 
 
13092
# Is shlibpath searched before the hard-coded library search path?
 
13093
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13094
 
 
13095
# Format of library name prefix.
 
13096
libname_spec=$lt_libname_spec
 
13097
 
 
13098
# List of archive names.  First name is the real one, the rest are links.
 
13099
# The last name is the one that the linker finds with -lNAME
 
13100
library_names_spec=$lt_library_names_spec
 
13101
 
 
13102
# The coded name of the library, if different from the real name.
 
13103
soname_spec=$lt_soname_spec
 
13104
 
 
13105
# Command to use after installation of a shared archive.
 
13106
postinstall_cmds=$lt_postinstall_cmds
 
13107
 
 
13108
# Command to use after uninstallation of a shared archive.
 
13109
postuninstall_cmds=$lt_postuninstall_cmds
 
13110
 
 
13111
# Commands used to finish a libtool library installation in a directory.
 
13112
finish_cmds=$lt_finish_cmds
 
13113
 
 
13114
# As "finish_cmds", except a single script fragment to be evaled but
 
13115
# not shown.
 
13116
finish_eval=$lt_finish_eval
 
13117
 
 
13118
# Whether we should hardcode library paths into libraries.
 
13119
hardcode_into_libs=$hardcode_into_libs
 
13120
 
 
13121
# Compile-time system search path for libraries.
 
13122
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13123
 
 
13124
# Run-time system search path for libraries.
 
13125
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13126
 
 
13127
# Whether dlopen is supported.
 
13128
dlopen_support=$enable_dlopen
 
13129
 
 
13130
# Whether dlopen of programs is supported.
 
13131
dlopen_self=$enable_dlopen_self
 
13132
 
 
13133
# Whether dlopen of statically linked programs is supported.
 
13134
dlopen_self_static=$enable_dlopen_self_static
 
13135
 
 
13136
# Commands to strip libraries.
 
13137
old_striplib=$lt_old_striplib
 
13138
striplib=$lt_striplib
 
13139
 
 
13140
 
 
13141
# The linker used to build libraries.
 
13142
LD=$lt_LD
 
13143
 
 
13144
# Commands used to build an old-style archive.
 
13145
old_archive_cmds=$lt_old_archive_cmds
 
13146
 
 
13147
# A language specific compiler.
 
13148
CC=$lt_compiler
 
13149
 
 
13150
# Is the compiler the GNU compiler?
 
13151
with_gcc=$GCC
 
13152
 
 
13153
# Compiler flag to turn off builtin functions.
 
13154
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
13155
 
 
13156
# How to pass a linker flag through the compiler.
 
13157
wl=$lt_lt_prog_compiler_wl
 
13158
 
 
13159
# Additional compiler flags for building library objects.
 
13160
pic_flag=$lt_lt_prog_compiler_pic
 
13161
 
 
13162
# Compiler flag to prevent dynamic linking.
 
13163
link_static_flag=$lt_lt_prog_compiler_static
 
13164
 
 
13165
# Does compiler simultaneously support -c and -o options?
 
13166
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
13167
 
 
13168
# Whether or not to add -lc for building shared libraries.
 
13169
build_libtool_need_lc=$archive_cmds_need_lc
 
13170
 
 
13171
# Whether or not to disallow shared libs when runtime libs are static.
 
13172
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
13173
 
 
13174
# Compiler flag to allow reflexive dlopens.
 
13175
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
13176
 
 
13177
# Compiler flag to generate shared objects directly from archives.
 
13178
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
13179
 
 
13180
# Whether the compiler copes with passing no objects directly.
 
13181
compiler_needs_object=$lt_compiler_needs_object
 
13182
 
 
13183
# Create an old-style archive from a shared archive.
 
13184
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
13185
 
 
13186
# Create a temporary old-style archive to link instead of a shared archive.
 
13187
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
13188
 
 
13189
# Commands used to build a shared archive.
 
13190
archive_cmds=$lt_archive_cmds
 
13191
archive_expsym_cmds=$lt_archive_expsym_cmds
 
13192
 
 
13193
# Commands used to build a loadable module if different from building
 
13194
# a shared archive.
 
13195
module_cmds=$lt_module_cmds
 
13196
module_expsym_cmds=$lt_module_expsym_cmds
 
13197
 
 
13198
# Whether we are building with GNU ld or not.
 
13199
with_gnu_ld=$lt_with_gnu_ld
 
13200
 
 
13201
# Flag that allows shared libraries with undefined symbols to be built.
 
13202
allow_undefined_flag=$lt_allow_undefined_flag
 
13203
 
 
13204
# Flag that enforces no undefined symbols.
 
13205
no_undefined_flag=$lt_no_undefined_flag
 
13206
 
 
13207
# Flag to hardcode \$libdir into a binary during linking.
 
13208
# This must work even if \$libdir does not exist
 
13209
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
13210
 
 
13211
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
13212
# during linking.  This must work even if \$libdir does not exist.
 
13213
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
13214
 
 
13215
# Whether we need a single "-rpath" flag with a separated argument.
 
13216
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
13217
 
 
13218
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
13219
# DIR into the resulting binary.
 
13220
hardcode_direct=$hardcode_direct
 
13221
 
 
13222
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
13223
# DIR into the resulting binary and the resulting library dependency is
 
13224
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
13225
# library is relocated.
 
13226
hardcode_direct_absolute=$hardcode_direct_absolute
 
13227
 
 
13228
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
13229
# into the resulting binary.
 
13230
hardcode_minus_L=$hardcode_minus_L
 
13231
 
 
13232
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
13233
# into the resulting binary.
 
13234
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
13235
 
 
13236
# Set to "yes" if building a shared library automatically hardcodes DIR
 
13237
# into the library and all subsequent libraries and executables linked
 
13238
# against it.
 
13239
hardcode_automatic=$hardcode_automatic
 
13240
 
 
13241
# Set to yes if linker adds runtime paths of dependent libraries
 
13242
# to runtime path list.
 
13243
inherit_rpath=$inherit_rpath
 
13244
 
 
13245
# Whether libtool must link a program against all its dependency libraries.
 
13246
link_all_deplibs=$link_all_deplibs
 
13247
 
 
13248
# Fix the shell variable \$srcfile for the compiler.
 
13249
fix_srcfile_path=$lt_fix_srcfile_path
 
13250
 
 
13251
# Set to "yes" if exported symbols are required.
 
13252
always_export_symbols=$always_export_symbols
 
13253
 
 
13254
# The commands to list exported symbols.
 
13255
export_symbols_cmds=$lt_export_symbols_cmds
 
13256
 
 
13257
# Symbols that should not be listed in the preloaded symbols.
 
13258
exclude_expsyms=$lt_exclude_expsyms
 
13259
 
 
13260
# Symbols that must always be exported.
 
13261
include_expsyms=$lt_include_expsyms
 
13262
 
 
13263
# Commands necessary for linking programs (against libraries) with templates.
 
13264
prelink_cmds=$lt_prelink_cmds
 
13265
 
 
13266
# Specify filename containing input files.
 
13267
file_list_spec=$lt_file_list_spec
 
13268
 
 
13269
# How to hardcode a shared library path into an executable.
 
13270
hardcode_action=$hardcode_action
 
13271
 
 
13272
# ### END LIBTOOL CONFIG
 
13273
 
 
13274
_LT_EOF
 
13275
 
 
13276
  case $host_os in
 
13277
  aix3*)
 
13278
    cat <<\_LT_EOF >> "$cfgfile"
 
13279
# AIX sometimes has problems with the GCC collect2 program.  For some
 
13280
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
13281
# vanish in a puff of smoke.
 
13282
if test "X${COLLECT_NAMES+set}" != Xset; then
 
13283
  COLLECT_NAMES=
 
13284
  export COLLECT_NAMES
 
13285
fi
 
13286
_LT_EOF
 
13287
    ;;
 
13288
  esac
 
13289
 
 
13290
 
 
13291
ltmain="$ac_aux_dir/ltmain.sh"
 
13292
 
 
13293
 
 
13294
  # We use sed instead of cat because bash on DJGPP gets confused if
 
13295
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
13296
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
13297
  # is reportedly fixed, but why not run on old versions too?
 
13298
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
13299
    || (rm -f "$cfgfile"; exit 1)
 
13300
 
 
13301
  case $xsi_shell in
 
13302
  yes)
 
13303
    cat << \_LT_EOF >> "$cfgfile"
 
13304
 
 
13305
# func_dirname file append nondir_replacement
 
13306
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
13307
# otherwise set result to NONDIR_REPLACEMENT.
 
13308
func_dirname ()
 
13309
{
 
13310
  case ${1} in
 
13311
    */*) func_dirname_result="${1%/*}${2}" ;;
 
13312
    *  ) func_dirname_result="${3}" ;;
 
13313
  esac
 
13314
}
 
13315
 
 
13316
# func_basename file
 
13317
func_basename ()
 
13318
{
 
13319
  func_basename_result="${1##*/}"
 
13320
}
 
13321
 
 
13322
# func_dirname_and_basename file append nondir_replacement
 
13323
# perform func_basename and func_dirname in a single function
 
13324
# call:
 
13325
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
13326
#             add APPEND to the result, otherwise set result
 
13327
#             to NONDIR_REPLACEMENT.
 
13328
#             value returned in "$func_dirname_result"
 
13329
#   basename: Compute filename of FILE.
 
13330
#             value retuned in "$func_basename_result"
 
13331
# Implementation must be kept synchronized with func_dirname
 
13332
# and func_basename. For efficiency, we do not delegate to
 
13333
# those functions but instead duplicate the functionality here.
 
13334
func_dirname_and_basename ()
 
13335
{
 
13336
  case ${1} in
 
13337
    */*) func_dirname_result="${1%/*}${2}" ;;
 
13338
    *  ) func_dirname_result="${3}" ;;
 
13339
  esac
 
13340
  func_basename_result="${1##*/}"
 
13341
}
 
13342
 
 
13343
# func_stripname prefix suffix name
 
13344
# strip PREFIX and SUFFIX off of NAME.
 
13345
# PREFIX and SUFFIX must not contain globbing or regex special
 
13346
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
13347
# dot (in which case that matches only a dot).
 
13348
func_stripname ()
 
13349
{
 
13350
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
13351
  # positional parameters, so assign one to ordinary parameter first.
 
13352
  func_stripname_result=${3}
 
13353
  func_stripname_result=${func_stripname_result#"${1}"}
 
13354
  func_stripname_result=${func_stripname_result%"${2}"}
 
13355
}
 
13356
 
 
13357
# func_opt_split
 
13358
func_opt_split ()
 
13359
{
 
13360
  func_opt_split_opt=${1%%=*}
 
13361
  func_opt_split_arg=${1#*=}
 
13362
}
 
13363
 
 
13364
# func_lo2o object
 
13365
func_lo2o ()
 
13366
{
 
13367
  case ${1} in
 
13368
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
13369
    *)    func_lo2o_result=${1} ;;
 
13370
  esac
 
13371
}
 
13372
 
 
13373
# func_xform libobj-or-source
 
13374
func_xform ()
 
13375
{
 
13376
  func_xform_result=${1%.*}.lo
 
13377
}
 
13378
 
 
13379
# func_arith arithmetic-term...
 
13380
func_arith ()
 
13381
{
 
13382
  func_arith_result=$(( $* ))
 
13383
}
 
13384
 
 
13385
# func_len string
 
13386
# STRING may not start with a hyphen.
 
13387
func_len ()
 
13388
{
 
13389
  func_len_result=${#1}
 
13390
}
 
13391
 
 
13392
_LT_EOF
 
13393
    ;;
 
13394
  *) # Bourne compatible functions.
 
13395
    cat << \_LT_EOF >> "$cfgfile"
 
13396
 
 
13397
# func_dirname file append nondir_replacement
 
13398
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
13399
# otherwise set result to NONDIR_REPLACEMENT.
 
13400
func_dirname ()
 
13401
{
 
13402
  # Extract subdirectory from the argument.
 
13403
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
13404
  if test "X$func_dirname_result" = "X${1}"; then
 
13405
    func_dirname_result="${3}"
 
13406
  else
 
13407
    func_dirname_result="$func_dirname_result${2}"
 
13408
  fi
 
13409
}
 
13410
 
 
13411
# func_basename file
 
13412
func_basename ()
 
13413
{
 
13414
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
13415
}
 
13416
 
 
13417
 
 
13418
# func_stripname prefix suffix name
 
13419
# strip PREFIX and SUFFIX off of NAME.
 
13420
# PREFIX and SUFFIX must not contain globbing or regex special
 
13421
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
13422
# dot (in which case that matches only a dot).
 
13423
# func_strip_suffix prefix name
 
13424
func_stripname ()
 
13425
{
 
13426
  case ${2} in
 
13427
    .*) func_stripname_result=`$ECHO "X${3}" \
 
13428
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
13429
    *)  func_stripname_result=`$ECHO "X${3}" \
 
13430
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
13431
  esac
 
13432
}
 
13433
 
 
13434
# sed scripts:
 
13435
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
13436
my_sed_long_arg='1s/^-[^=]*=//'
 
13437
 
 
13438
# func_opt_split
 
13439
func_opt_split ()
 
13440
{
 
13441
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
13442
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
13443
}
 
13444
 
 
13445
# func_lo2o object
 
13446
func_lo2o ()
 
13447
{
 
13448
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
13449
}
 
13450
 
 
13451
# func_xform libobj-or-source
 
13452
func_xform ()
 
13453
{
 
13454
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
13455
}
 
13456
 
 
13457
# func_arith arithmetic-term...
 
13458
func_arith ()
 
13459
{
 
13460
  func_arith_result=`expr "$@"`
 
13461
}
 
13462
 
 
13463
# func_len string
 
13464
# STRING may not start with a hyphen.
 
13465
func_len ()
 
13466
{
 
13467
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
13468
}
 
13469
 
 
13470
_LT_EOF
 
13471
esac
 
13472
 
 
13473
case $lt_shell_append in
 
13474
  yes)
 
13475
    cat << \_LT_EOF >> "$cfgfile"
 
13476
 
 
13477
# func_append var value
 
13478
# Append VALUE to the end of shell variable VAR.
 
13479
func_append ()
 
13480
{
 
13481
  eval "$1+=\$2"
 
13482
}
 
13483
_LT_EOF
 
13484
    ;;
 
13485
  *)
 
13486
    cat << \_LT_EOF >> "$cfgfile"
 
13487
 
 
13488
# func_append var value
 
13489
# Append VALUE to the end of shell variable VAR.
 
13490
func_append ()
 
13491
{
 
13492
  eval "$1=\$$1\$2"
 
13493
}
 
13494
 
 
13495
_LT_EOF
 
13496
    ;;
 
13497
  esac
 
13498
 
 
13499
 
 
13500
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
13501
    || (rm -f "$cfgfile"; exit 1)
 
13502
 
 
13503
  mv -f "$cfgfile" "$ofile" ||
 
13504
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
13505
  chmod +x "$ofile"
 
13506
 
 
13507
 ;;
 
13508
 
 
13509
  esac
 
13510
done # for ac_tag
 
13511
 
 
13512
 
 
13513
{ (exit 0); exit 0; }
 
13514
_ACEOF
 
13515
chmod +x $CONFIG_STATUS
 
13516
ac_clean_files=$ac_clean_files_save
 
13517
 
 
13518
test $ac_write_fail = 0 ||
 
13519
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
13520
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
13521
   { (exit 1); exit 1; }; }
 
13522
 
 
13523
 
 
13524
# configure is writing to config.log, and then calls config.status.
 
13525
# config.status does its own redirection, appending to config.log.
 
13526
# Unfortunately, on DOS this fails, as config.log is still kept open
 
13527
# by configure, so config.status won't be able to write to it; its
 
13528
# output is simply discarded.  So we exec the FD to /dev/null,
 
13529
# effectively closing config.log, so it can be properly (re)opened and
 
13530
# appended to by config.status.  When coming back to configure, we
 
13531
# need to make the FD available again.
 
13532
if test "$no_create" != yes; then
 
13533
  ac_cs_success=:
 
13534
  ac_config_status_args=
 
13535
  test "$silent" = yes &&
 
13536
    ac_config_status_args="$ac_config_status_args --quiet"
 
13537
  exec 5>/dev/null
 
13538
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
13539
  exec 5>>config.log
 
13540
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
13541
  # would make configure fail if this is the last instruction.
 
13542
  $ac_cs_success || { (exit 1); exit 1; }
 
13543
fi
 
13544
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
13545
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
13546
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
13547
fi
 
13548