Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
558 kaklik 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""	$as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
	 X"$0" : 'X\(//\)$' \| \
153
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
	    s//\1/
157
	    q
158
	  }
159
	  /^X\/\(\/\/\)$/{
160
	    s//\1/
161
	    q
162
	  }
163
	  /^X\/\(\/\).*/{
164
	    s//\1/
165
	    q
166
	  }
167
	  s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
180
  if test $as_have_required = yes &&	 (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
	 /*)
247
	   for as_base in sh bash ksh sh5; do
248
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
	   done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
	 # Try only shells that exist, to save several forks.
257
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
	       as_have_required=yes
279
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
	done
365
	export CONFIG_SHELL
366
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
	test -d "$1/.";
555
      else
556
	case $1 in
557
	-*)set "./$1";;
558
	esac;
559
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
	???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
 
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
 
578
case X$lt_ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
 
585
ECHO=${lt_ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $ECHO works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
 
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<_LT_EOF
604
$*
605
_LT_EOF
606
  exit 0
607
fi
608
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
 
613
if test -z "$lt_ECHO"; then
614
  if test "X${echo_test_string+set}" != Xset; then
615
    # find a string as large as possible, as long as the shell can cope with it
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620
      then
621
        break
622
      fi
623
    done
624
  fi
625
 
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
629
    :
630
  else
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
632
    # backslashes.  This makes it impossible to quote backslashes using
633
    #   echo "$something" | sed 's/\\/\\\\/g'
634
    #
635
    # So, first we look for a working echo in the user's PATH.
636
 
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638
    for dir in $PATH /usr/ucb; do
639
      IFS="$lt_save_ifs"
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
644
        ECHO="$dir/echo"
645
        break
646
      fi
647
    done
648
    IFS="$lt_save_ifs"
649
 
650
    if test "X$ECHO" = Xecho; then
651
      # We didn't find a better echo, so look for alternatives.
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
655
        # This shell has a builtin print -r that does the trick.
656
        ECHO='print -r'
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659
        # If we have ksh, try running configure again with it.
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661
        export ORIGINAL_CONFIG_SHELL
662
        CONFIG_SHELL=/bin/ksh
663
        export CONFIG_SHELL
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665
      else
666
        # Try using printf.
667
        ECHO='printf %s\n'
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670
	   test "X$echo_testing_string" = "X$echo_test_string"; then
671
	  # Cool, printf works
672
	  :
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674
	     test "X$echo_testing_string" = 'X\t' &&
675
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676
	     test "X$echo_testing_string" = "X$echo_test_string"; then
677
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678
	  export CONFIG_SHELL
679
	  SHELL="$CONFIG_SHELL"
680
	  export SHELL
681
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683
	     test "X$echo_testing_string" = 'X\t' &&
684
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685
	     test "X$echo_testing_string" = "X$echo_test_string"; then
686
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687
        else
688
	  # maybe with a smaller string...
689
	  prev=:
690
 
691
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693
	    then
694
	      break
695
	    fi
696
	    prev="$cmd"
697
	  done
698
 
699
	  if test "$prev" != 'sed 50q "$0"'; then
700
	    echo_test_string=`eval $prev`
701
	    export echo_test_string
702
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703
	  else
704
	    # Oops.  We lost completely, so just stick with echo.
705
	    ECHO=echo
706
	  fi
707
        fi
708
      fi
709
    fi
710
  fi
711
fi
712
 
713
# Copy echo and quote the copy suitably for passing to libtool from
714
# the Makefile, instead of quoting the original, which is used later.
715
lt_ECHO=$ECHO
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718
fi
719
 
720
 
721
 
722
 
723
exec 7<&0 </dev/null 6>&1
724
 
725
# Name of the host.
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727
# so uname gets run too.
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
 
730
#
731
# Initializations.
732
#
733
ac_default_prefix=/usr/local
734
ac_clean_files=
735
ac_config_libobj_dir=.
736
LIBOBJS=
737
cross_compiling=no
738
subdirs=
739
MFLAGS=
740
MAKEFLAGS=
741
SHELL=${CONFIG_SHELL-/bin/sh}
742
 
743
# Identity of this package.
744
PACKAGE_NAME=
745
PACKAGE_TARNAME=
746
PACKAGE_VERSION=
747
PACKAGE_STRING=
748
PACKAGE_BUGREPORT=
749
 
750
ac_unique_file="configure.in"
751
# Factoring default headers for most tests.
752
ac_includes_default="\
753
#include <stdio.h>
754
#ifdef HAVE_SYS_TYPES_H
755
# include <sys/types.h>
756
#endif
757
#ifdef HAVE_SYS_STAT_H
758
# include <sys/stat.h>
759
#endif
760
#ifdef STDC_HEADERS
761
# include <stdlib.h>
762
# include <stddef.h>
763
#else
764
# ifdef HAVE_STDLIB_H
765
#  include <stdlib.h>
766
# endif
767
#endif
768
#ifdef HAVE_STRING_H
769
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770
#  include <memory.h>
771
# endif
772
# include <string.h>
773
#endif
774
#ifdef HAVE_STRINGS_H
775
# include <strings.h>
776
#endif
777
#ifdef HAVE_INTTYPES_H
778
# include <inttypes.h>
779
#endif
780
#ifdef HAVE_STDINT_H
781
# include <stdint.h>
782
#endif
783
#ifdef HAVE_UNISTD_H
784
# include <unistd.h>
785
#endif"
786
 
787
ac_subst_vars='LTLIBOBJS
788
LIBOBJS
789
CPP
790
OTOOL64
791
OTOOL
792
LIPO
793
NMEDIT
794
DSYMUTIL
795
lt_ECHO
796
RANLIB
797
AR
798
OBJDUMP
799
LN_S
800
NM
801
ac_ct_DUMPBIN
802
DUMPBIN
803
LD
804
FGREP
805
EGREP
806
GREP
807
SED
808
host_os
809
host_vendor
810
host_cpu
811
host
812
build_os
813
build_vendor
814
build_cpu
815
build
816
LIBTOOL
817
am__fastdepCC_FALSE
818
am__fastdepCC_TRUE
819
CCDEPMODE
820
AMDEPBACKSLASH
821
AMDEP_FALSE
822
AMDEP_TRUE
823
am__quote
824
am__include
825
DEPDIR
826
OBJEXT
827
EXEEXT
828
ac_ct_CC
829
CPPFLAGS
830
LDFLAGS
831
CFLAGS
832
CC
833
am__untar
834
am__tar
835
AMTAR
836
am__leading_dot
837
SET_MAKE
838
AWK
839
mkdir_p
840
MKDIR_P
841
INSTALL_STRIP_PROGRAM
842
STRIP
843
install_sh
844
MAKEINFO
845
AUTOHEADER
846
AUTOMAKE
847
AUTOCONF
848
ACLOCAL
849
VERSION
850
PACKAGE
851
CYGPATH_W
852
am__isrc
853
INSTALL_DATA
854
INSTALL_SCRIPT
855
INSTALL_PROGRAM
856
target_alias
857
host_alias
858
build_alias
859
LIBS
860
ECHO_T
861
ECHO_N
862
ECHO_C
863
DEFS
864
mandir
865
localedir
866
libdir
867
psdir
868
pdfdir
869
dvidir
870
htmldir
871
infodir
872
docdir
873
oldincludedir
874
includedir
875
localstatedir
876
sharedstatedir
877
sysconfdir
878
datadir
879
datarootdir
880
libexecdir
881
sbindir
882
bindir
883
program_transform_name
884
prefix
885
exec_prefix
886
PACKAGE_BUGREPORT
887
PACKAGE_STRING
888
PACKAGE_VERSION
889
PACKAGE_TARNAME
890
PACKAGE_NAME
891
PATH_SEPARATOR
892
SHELL'
893
ac_subst_files=''
894
ac_user_opts='
895
enable_option_checking
896
enable_dependency_tracking
897
enable_shared
898
enable_static
899
with_pic
900
enable_fast_install
901
with_gnu_ld
902
enable_libtool_lock
903
'
904
      ac_precious_vars='build_alias
905
host_alias
906
target_alias
907
CC
908
CFLAGS
909
LDFLAGS
910
LIBS
911
CPPFLAGS
912
CPP'
913
 
914
 
915
# Initialize some variables set by options.
916
ac_init_help=
917
ac_init_version=false
918
ac_unrecognized_opts=
919
ac_unrecognized_sep=
920
# The variables have the same names as the options, with
921
# dashes changed to underlines.
922
cache_file=/dev/null
923
exec_prefix=NONE
924
no_create=
925
no_recursion=
926
prefix=NONE
927
program_prefix=NONE
928
program_suffix=NONE
929
program_transform_name=s,x,x,
930
silent=
931
site=
932
srcdir=
933
verbose=
934
x_includes=NONE
935
x_libraries=NONE
936
 
937
# Installation directory options.
938
# These are left unexpanded so users can "make install exec_prefix=/foo"
939
# and all the variables that are supposed to be based on exec_prefix
940
# by default will actually change.
941
# Use braces instead of parens because sh, perl, etc. also accept them.
942
# (The list follows the same order as the GNU Coding Standards.)
943
bindir='${exec_prefix}/bin'
944
sbindir='${exec_prefix}/sbin'
945
libexecdir='${exec_prefix}/libexec'
946
datarootdir='${prefix}/share'
947
datadir='${datarootdir}'
948
sysconfdir='${prefix}/etc'
949
sharedstatedir='${prefix}/com'
950
localstatedir='${prefix}/var'
951
includedir='${prefix}/include'
952
oldincludedir='/usr/include'
953
docdir='${datarootdir}/doc/${PACKAGE}'
954
infodir='${datarootdir}/info'
955
htmldir='${docdir}'
956
dvidir='${docdir}'
957
pdfdir='${docdir}'
958
psdir='${docdir}'
959
libdir='${exec_prefix}/lib'
960
localedir='${datarootdir}/locale'
961
mandir='${datarootdir}/man'
962
 
963
ac_prev=
964
ac_dashdash=
965
for ac_option
966
do
967
  # If the previous option needs an argument, assign it.
968
  if test -n "$ac_prev"; then
969
    eval $ac_prev=\$ac_option
970
    ac_prev=
971
    continue
972
  fi
973
 
974
  case $ac_option in
975
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976
  *)	ac_optarg=yes ;;
977
  esac
978
 
979
  # Accept the important Cygnus configure options, so we can diagnose typos.
980
 
981
  case $ac_dashdash$ac_option in
982
  --)
983
    ac_dashdash=yes ;;
984
 
985
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
986
    ac_prev=bindir ;;
987
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988
    bindir=$ac_optarg ;;
989
 
990
  -build | --build | --buil | --bui | --bu)
991
    ac_prev=build_alias ;;
992
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993
    build_alias=$ac_optarg ;;
994
 
995
  -cache-file | --cache-file | --cache-fil | --cache-fi \
996
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997
    ac_prev=cache_file ;;
998
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000
    cache_file=$ac_optarg ;;
1001
 
1002
  --config-cache | -C)
1003
    cache_file=config.cache ;;
1004
 
1005
  -datadir | --datadir | --datadi | --datad)
1006
    ac_prev=datadir ;;
1007
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008
    datadir=$ac_optarg ;;
1009
 
1010
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011
  | --dataroo | --dataro | --datar)
1012
    ac_prev=datarootdir ;;
1013
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015
    datarootdir=$ac_optarg ;;
1016
 
1017
  -disable-* | --disable-*)
1018
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019
    # Reject names that are not valid shell variable names.
1020
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1022
   { (exit 1); exit 1; }; }
1023
    ac_useropt_orig=$ac_useropt
1024
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025
    case $ac_user_opts in
1026
      *"
1027
"enable_$ac_useropt"
1028
"*) ;;
1029
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030
	 ac_unrecognized_sep=', ';;
1031
    esac
1032
    eval enable_$ac_useropt=no ;;
1033
 
1034
  -docdir | --docdir | --docdi | --doc | --do)
1035
    ac_prev=docdir ;;
1036
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037
    docdir=$ac_optarg ;;
1038
 
1039
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040
    ac_prev=dvidir ;;
1041
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042
    dvidir=$ac_optarg ;;
1043
 
1044
  -enable-* | --enable-*)
1045
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046
    # Reject names that are not valid shell variable names.
1047
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1049
   { (exit 1); exit 1; }; }
1050
    ac_useropt_orig=$ac_useropt
1051
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052
    case $ac_user_opts in
1053
      *"
1054
"enable_$ac_useropt"
1055
"*) ;;
1056
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057
	 ac_unrecognized_sep=', ';;
1058
    esac
1059
    eval enable_$ac_useropt=\$ac_optarg ;;
1060
 
1061
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063
  | --exec | --exe | --ex)
1064
    ac_prev=exec_prefix ;;
1065
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067
  | --exec=* | --exe=* | --ex=*)
1068
    exec_prefix=$ac_optarg ;;
1069
 
1070
  -gas | --gas | --ga | --g)
1071
    # Obsolete; use --with-gas.
1072
    with_gas=yes ;;
1073
 
1074
  -help | --help | --hel | --he | -h)
1075
    ac_init_help=long ;;
1076
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077
    ac_init_help=recursive ;;
1078
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079
    ac_init_help=short ;;
1080
 
1081
  -host | --host | --hos | --ho)
1082
    ac_prev=host_alias ;;
1083
  -host=* | --host=* | --hos=* | --ho=*)
1084
    host_alias=$ac_optarg ;;
1085
 
1086
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087
    ac_prev=htmldir ;;
1088
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089
  | --ht=*)
1090
    htmldir=$ac_optarg ;;
1091
 
1092
  -includedir | --includedir | --includedi | --included | --include \
1093
  | --includ | --inclu | --incl | --inc)
1094
    ac_prev=includedir ;;
1095
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1097
    includedir=$ac_optarg ;;
1098
 
1099
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1100
    ac_prev=infodir ;;
1101
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102
    infodir=$ac_optarg ;;
1103
 
1104
  -libdir | --libdir | --libdi | --libd)
1105
    ac_prev=libdir ;;
1106
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107
    libdir=$ac_optarg ;;
1108
 
1109
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110
  | --libexe | --libex | --libe)
1111
    ac_prev=libexecdir ;;
1112
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113
  | --libexe=* | --libex=* | --libe=*)
1114
    libexecdir=$ac_optarg ;;
1115
 
1116
  -localedir | --localedir | --localedi | --localed | --locale)
1117
    ac_prev=localedir ;;
1118
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119
    localedir=$ac_optarg ;;
1120
 
1121
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1122
  | --localstate | --localstat | --localsta | --localst | --locals)
1123
    ac_prev=localstatedir ;;
1124
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126
    localstatedir=$ac_optarg ;;
1127
 
1128
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129
    ac_prev=mandir ;;
1130
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131
    mandir=$ac_optarg ;;
1132
 
1133
  -nfp | --nfp | --nf)
1134
    # Obsolete; use --without-fp.
1135
    with_fp=no ;;
1136
 
1137
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138
  | --no-cr | --no-c | -n)
1139
    no_create=yes ;;
1140
 
1141
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143
    no_recursion=yes ;;
1144
 
1145
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147
  | --oldin | --oldi | --old | --ol | --o)
1148
    ac_prev=oldincludedir ;;
1149
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152
    oldincludedir=$ac_optarg ;;
1153
 
1154
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155
    ac_prev=prefix ;;
1156
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157
    prefix=$ac_optarg ;;
1158
 
1159
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160
  | --program-pre | --program-pr | --program-p)
1161
    ac_prev=program_prefix ;;
1162
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164
    program_prefix=$ac_optarg ;;
1165
 
1166
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167
  | --program-suf | --program-su | --program-s)
1168
    ac_prev=program_suffix ;;
1169
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171
    program_suffix=$ac_optarg ;;
1172
 
1173
  -program-transform-name | --program-transform-name \
1174
  | --program-transform-nam | --program-transform-na \
1175
  | --program-transform-n | --program-transform- \
1176
  | --program-transform | --program-transfor \
1177
  | --program-transfo | --program-transf \
1178
  | --program-trans | --program-tran \
1179
  | --progr-tra | --program-tr | --program-t)
1180
    ac_prev=program_transform_name ;;
1181
  -program-transform-name=* | --program-transform-name=* \
1182
  | --program-transform-nam=* | --program-transform-na=* \
1183
  | --program-transform-n=* | --program-transform-=* \
1184
  | --program-transform=* | --program-transfor=* \
1185
  | --program-transfo=* | --program-transf=* \
1186
  | --program-trans=* | --program-tran=* \
1187
  | --progr-tra=* | --program-tr=* | --program-t=*)
1188
    program_transform_name=$ac_optarg ;;
1189
 
1190
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191
    ac_prev=pdfdir ;;
1192
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193
    pdfdir=$ac_optarg ;;
1194
 
1195
  -psdir | --psdir | --psdi | --psd | --ps)
1196
    ac_prev=psdir ;;
1197
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198
    psdir=$ac_optarg ;;
1199
 
1200
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201
  | -silent | --silent | --silen | --sile | --sil)
1202
    silent=yes ;;
1203
 
1204
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205
    ac_prev=sbindir ;;
1206
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207
  | --sbi=* | --sb=*)
1208
    sbindir=$ac_optarg ;;
1209
 
1210
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212
  | --sharedst | --shareds | --shared | --share | --shar \
1213
  | --sha | --sh)
1214
    ac_prev=sharedstatedir ;;
1215
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218
  | --sha=* | --sh=*)
1219
    sharedstatedir=$ac_optarg ;;
1220
 
1221
  -site | --site | --sit)
1222
    ac_prev=site ;;
1223
  -site=* | --site=* | --sit=*)
1224
    site=$ac_optarg ;;
1225
 
1226
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227
    ac_prev=srcdir ;;
1228
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229
    srcdir=$ac_optarg ;;
1230
 
1231
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232
  | --syscon | --sysco | --sysc | --sys | --sy)
1233
    ac_prev=sysconfdir ;;
1234
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236
    sysconfdir=$ac_optarg ;;
1237
 
1238
  -target | --target | --targe | --targ | --tar | --ta | --t)
1239
    ac_prev=target_alias ;;
1240
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241
    target_alias=$ac_optarg ;;
1242
 
1243
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244
    verbose=yes ;;
1245
 
1246
  -version | --version | --versio | --versi | --vers | -V)
1247
    ac_init_version=: ;;
1248
 
1249
  -with-* | --with-*)
1250
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251
    # Reject names that are not valid shell variable names.
1252
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1254
   { (exit 1); exit 1; }; }
1255
    ac_useropt_orig=$ac_useropt
1256
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257
    case $ac_user_opts in
1258
      *"
1259
"with_$ac_useropt"
1260
"*) ;;
1261
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262
	 ac_unrecognized_sep=', ';;
1263
    esac
1264
    eval with_$ac_useropt=\$ac_optarg ;;
1265
 
1266
  -without-* | --without-*)
1267
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268
    # Reject names that are not valid shell variable names.
1269
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1271
   { (exit 1); exit 1; }; }
1272
    ac_useropt_orig=$ac_useropt
1273
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274
    case $ac_user_opts in
1275
      *"
1276
"with_$ac_useropt"
1277
"*) ;;
1278
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279
	 ac_unrecognized_sep=', ';;
1280
    esac
1281
    eval with_$ac_useropt=no ;;
1282
 
1283
  --x)
1284
    # Obsolete; use --with-x.
1285
    with_x=yes ;;
1286
 
1287
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288
  | --x-incl | --x-inc | --x-in | --x-i)
1289
    ac_prev=x_includes ;;
1290
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292
    x_includes=$ac_optarg ;;
1293
 
1294
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296
    ac_prev=x_libraries ;;
1297
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299
    x_libraries=$ac_optarg ;;
1300
 
1301
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1302
Try \`$0 --help' for more information." >&2
1303
   { (exit 1); exit 1; }; }
1304
    ;;
1305
 
1306
  *=*)
1307
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308
    # Reject names that are not valid shell variable names.
1309
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1310
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1311
   { (exit 1); exit 1; }; }
1312
    eval $ac_envvar=\$ac_optarg
1313
    export $ac_envvar ;;
1314
 
1315
  *)
1316
    # FIXME: should be removed in autoconf 3.0.
1317
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321
    ;;
1322
 
1323
  esac
1324
done
1325
 
1326
if test -n "$ac_prev"; then
1327
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1329
   { (exit 1); exit 1; }; }
1330
fi
1331
 
1332
if test -n "$ac_unrecognized_opts"; then
1333
  case $enable_option_checking in
1334
    no) ;;
1335
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1336
   { (exit 1); exit 1; }; } ;;
1337
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338
  esac
1339
fi
1340
 
1341
# Check all directory arguments for consistency.
1342
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343
		datadir sysconfdir sharedstatedir localstatedir includedir \
1344
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345
		libdir localedir mandir
1346
do
1347
  eval ac_val=\$$ac_var
1348
  # Remove trailing slashes.
1349
  case $ac_val in
1350
    */ )
1351
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352
      eval $ac_var=\$ac_val;;
1353
  esac
1354
  # Be sure to have absolute directory names.
1355
  case $ac_val in
1356
    [\\/$]* | ?:[\\/]* )  continue;;
1357
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358
  esac
1359
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360
   { (exit 1); exit 1; }; }
1361
done
1362
 
1363
# There might be people who depend on the old broken behavior: `$host'
1364
# used to hold the argument of --host etc.
1365
# FIXME: To remove some day.
1366
build=$build_alias
1367
host=$host_alias
1368
target=$target_alias
1369
 
1370
# FIXME: To remove some day.
1371
if test "x$host_alias" != x; then
1372
  if test "x$build_alias" = x; then
1373
    cross_compiling=maybe
1374
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375
    If a cross compiler is detected then cross compile mode will be used." >&2
1376
  elif test "x$build_alias" != "x$host_alias"; then
1377
    cross_compiling=yes
1378
  fi
1379
fi
1380
 
1381
ac_tool_prefix=
1382
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
 
1384
test "$silent" = yes && exec 6>/dev/null
1385
 
1386
 
1387
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388
ac_ls_di=`ls -di .` &&
1389
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1391
   { (exit 1); exit 1; }; }
1392
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1394
   { (exit 1); exit 1; }; }
1395
 
1396
 
1397
# Find the source files, if location was not specified.
1398
if test -z "$srcdir"; then
1399
  ac_srcdir_defaulted=yes
1400
  # Try the directory containing this script, then the parent directory.
1401
  ac_confdir=`$as_dirname -- "$as_myself" ||
1402
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1404
	 X"$as_myself" : 'X\(//\)$' \| \
1405
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406
$as_echo X"$as_myself" |
1407
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408
	    s//\1/
1409
	    q
1410
	  }
1411
	  /^X\(\/\/\)[^/].*/{
1412
	    s//\1/
1413
	    q
1414
	  }
1415
	  /^X\(\/\/\)$/{
1416
	    s//\1/
1417
	    q
1418
	  }
1419
	  /^X\(\/\).*/{
1420
	    s//\1/
1421
	    q
1422
	  }
1423
	  s/.*/./; q'`
1424
  srcdir=$ac_confdir
1425
  if test ! -r "$srcdir/$ac_unique_file"; then
1426
    srcdir=..
1427
  fi
1428
else
1429
  ac_srcdir_defaulted=no
1430
fi
1431
if test ! -r "$srcdir/$ac_unique_file"; then
1432
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434
   { (exit 1); exit 1; }; }
1435
fi
1436
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437
ac_abs_confdir=`(
1438
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1439
   { (exit 1); exit 1; }; }
1440
	pwd)`
1441
# When building in place, set srcdir=.
1442
if test "$ac_abs_confdir" = "$ac_pwd"; then
1443
  srcdir=.
1444
fi
1445
# Remove unnecessary trailing slashes from srcdir.
1446
# Double slashes in file names in object file debugging info
1447
# mess up M-x gdb in Emacs.
1448
case $srcdir in
1449
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450
esac
1451
for ac_var in $ac_precious_vars; do
1452
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453
  eval ac_env_${ac_var}_value=\$${ac_var}
1454
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456
done
1457
 
1458
#
1459
# Report the --help message.
1460
#
1461
if test "$ac_init_help" = "long"; then
1462
  # Omit some internal or obsolete options to make the list less imposing.
1463
  # This message is too long to be a string in the A/UX 3.1 sh.
1464
  cat <<_ACEOF
1465
\`configure' configures this package to adapt to many kinds of systems.
1466
 
1467
Usage: $0 [OPTION]... [VAR=VALUE]...
1468
 
1469
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470
VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
 
1472
Defaults for the options are specified in brackets.
1473
 
1474
Configuration:
1475
  -h, --help              display this help and exit
1476
      --help=short        display options specific to this package
1477
      --help=recursive    display the short help of all the included packages
1478
  -V, --version           display version information and exit
1479
  -q, --quiet, --silent   do not print \`checking...' messages
1480
      --cache-file=FILE   cache test results in FILE [disabled]
1481
  -C, --config-cache      alias for \`--cache-file=config.cache'
1482
  -n, --no-create         do not create output files
1483
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
 
1485
Installation directories:
1486
  --prefix=PREFIX         install architecture-independent files in PREFIX
1487
                          [$ac_default_prefix]
1488
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489
                          [PREFIX]
1490
 
1491
By default, \`make install' will install all the files in
1492
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494
for instance \`--prefix=\$HOME'.
1495
 
1496
For better control, use the options below.
1497
 
1498
Fine tuning of the installation directories:
1499
  --bindir=DIR            user executables [EPREFIX/bin]
1500
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1501
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1502
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1503
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1504
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1505
  --libdir=DIR            object code libraries [EPREFIX/lib]
1506
  --includedir=DIR        C header files [PREFIX/include]
1507
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1508
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1509
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1510
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1511
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1512
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1513
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1514
  --htmldir=DIR           html documentation [DOCDIR]
1515
  --dvidir=DIR            dvi documentation [DOCDIR]
1516
  --pdfdir=DIR            pdf documentation [DOCDIR]
1517
  --psdir=DIR             ps documentation [DOCDIR]
1518
_ACEOF
1519
 
1520
  cat <<\_ACEOF
1521
 
1522
Program names:
1523
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1524
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1525
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1526
 
1527
System types:
1528
  --build=BUILD     configure for building on BUILD [guessed]
1529
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1530
_ACEOF
1531
fi
1532
 
1533
if test -n "$ac_init_help"; then
1534
 
1535
  cat <<\_ACEOF
1536
 
1537
Optional Features:
1538
  --disable-option-checking  ignore unrecognized --enable/--with options
1539
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541
  --disable-dependency-tracking  speeds up one-time build
1542
  --enable-dependency-tracking   do not reject slow dependency extractors
1543
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1544
  --enable-static[=PKGS]  build static libraries [default=yes]
1545
  --enable-fast-install[=PKGS]
1546
                          optimize for fast installation [default=yes]
1547
  --disable-libtool-lock  avoid locking (might break parallel builds)
1548
 
1549
Optional Packages:
1550
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552
  --with-pic              try to use only PIC/non-PIC objects [default=use
1553
                          both]
1554
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1555
 
1556
Some influential environment variables:
1557
  CC          C compiler command
1558
  CFLAGS      C compiler flags
1559
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560
              nonstandard directory <lib dir>
1561
  LIBS        libraries to pass to the linker, e.g. -l<library>
1562
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563
              you have headers in a nonstandard directory <include dir>
1564
  CPP         C preprocessor
1565
 
1566
Use these variables to override the choices made by `configure' or to help
1567
it to find libraries and programs with nonstandard names/locations.
1568
 
1569
_ACEOF
1570
ac_status=$?
1571
fi
1572
 
1573
if test "$ac_init_help" = "recursive"; then
1574
  # If there are subdirs, report their specific --help.
1575
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576
    test -d "$ac_dir" ||
1577
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578
      continue
1579
    ac_builddir=.
1580
 
1581
case "$ac_dir" in
1582
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583
*)
1584
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585
  # A ".." for each directory in $ac_dir_suffix.
1586
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587
  case $ac_top_builddir_sub in
1588
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590
  esac ;;
1591
esac
1592
ac_abs_top_builddir=$ac_pwd
1593
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594
# for backward compatibility:
1595
ac_top_builddir=$ac_top_build_prefix
1596
 
1597
case $srcdir in
1598
  .)  # We are building in place.
1599
    ac_srcdir=.
1600
    ac_top_srcdir=$ac_top_builddir_sub
1601
    ac_abs_top_srcdir=$ac_pwd ;;
1602
  [\\/]* | ?:[\\/]* )  # Absolute name.
1603
    ac_srcdir=$srcdir$ac_dir_suffix;
1604
    ac_top_srcdir=$srcdir
1605
    ac_abs_top_srcdir=$srcdir ;;
1606
  *) # Relative name.
1607
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1609
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610
esac
1611
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
 
1613
    cd "$ac_dir" || { ac_status=$?; continue; }
1614
    # Check for guested configure.
1615
    if test -f "$ac_srcdir/configure.gnu"; then
1616
      echo &&
1617
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618
    elif test -f "$ac_srcdir/configure"; then
1619
      echo &&
1620
      $SHELL "$ac_srcdir/configure" --help=recursive
1621
    else
1622
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623
    fi || ac_status=$?
1624
    cd "$ac_pwd" || { ac_status=$?; break; }
1625
  done
1626
fi
1627
 
1628
test -n "$ac_init_help" && exit $ac_status
1629
if $ac_init_version; then
1630
  cat <<\_ACEOF
1631
configure
1632
generated by GNU Autoconf 2.63
1633
 
1634
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1636
This configure script is free software; the Free Software Foundation
1637
gives unlimited permission to copy, distribute and modify it.
1638
_ACEOF
1639
  exit
1640
fi
1641
cat >config.log <<_ACEOF
1642
This file contains any messages produced by compilers while
1643
running configure, to aid debugging if configure makes a mistake.
1644
 
1645
It was created by $as_me, which was
1646
generated by GNU Autoconf 2.63.  Invocation command line was
1647
 
1648
  $ $0 $@
1649
 
1650
_ACEOF
1651
exec 5>>config.log
1652
{
1653
cat <<_ASUNAME
1654
## --------- ##
1655
## Platform. ##
1656
## --------- ##
1657
 
1658
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663
 
1664
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1666
 
1667
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1668
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1669
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1671
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1672
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1673
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1674
 
1675
_ASUNAME
1676
 
1677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678
for as_dir in $PATH
1679
do
1680
  IFS=$as_save_IFS
1681
  test -z "$as_dir" && as_dir=.
1682
  $as_echo "PATH: $as_dir"
1683
done
1684
IFS=$as_save_IFS
1685
 
1686
} >&5
1687
 
1688
cat >&5 <<_ACEOF
1689
 
1690
 
1691
## ----------- ##
1692
## Core tests. ##
1693
## ----------- ##
1694
 
1695
_ACEOF
1696
 
1697
 
1698
# Keep a trace of the command line.
1699
# Strip out --no-create and --no-recursion so they do not pile up.
1700
# Strip out --silent because we don't want to record it for future runs.
1701
# Also quote any args containing shell meta-characters.
1702
# Make two passes to allow for proper duplicate-argument suppression.
1703
ac_configure_args=
1704
ac_configure_args0=
1705
ac_configure_args1=
1706
ac_must_keep_next=false
1707
for ac_pass in 1 2
1708
do
1709
  for ac_arg
1710
  do
1711
    case $ac_arg in
1712
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714
    | -silent | --silent | --silen | --sile | --sil)
1715
      continue ;;
1716
    *\'*)
1717
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718
    esac
1719
    case $ac_pass in
1720
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721
    2)
1722
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723
      if test $ac_must_keep_next = true; then
1724
	ac_must_keep_next=false # Got value, back to normal.
1725
      else
1726
	case $ac_arg in
1727
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1728
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730
	  | -with-* | --with-* | -without-* | --without-* | --x)
1731
	    case "$ac_configure_args0 " in
1732
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733
	    esac
1734
	    ;;
1735
	  -* ) ac_must_keep_next=true ;;
1736
	esac
1737
      fi
1738
      ac_configure_args="$ac_configure_args '$ac_arg'"
1739
      ;;
1740
    esac
1741
  done
1742
done
1743
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745
 
1746
# When interrupted or exit'd, cleanup temporary files, and complete
1747
# config.log.  We remove comments because anyway the quotes in there
1748
# would cause problems or look ugly.
1749
# WARNING: Use '\'' to represent an apostrophe within the trap.
1750
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751
trap 'exit_status=$?
1752
  # Save into config.log some information that might help in debugging.
1753
  {
1754
    echo
1755
 
1756
    cat <<\_ASBOX
1757
## ---------------- ##
1758
## Cache variables. ##
1759
## ---------------- ##
1760
_ASBOX
1761
    echo
1762
    # The following way of writing the cache mishandles newlines in values,
1763
(
1764
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765
    eval ac_val=\$$ac_var
1766
    case $ac_val in #(
1767
    *${as_nl}*)
1768
      case $ac_var in #(
1769
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1770
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1771
      esac
1772
      case $ac_var in #(
1773
      _ | IFS | as_nl) ;; #(
1774
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1775
      *) $as_unset $ac_var ;;
1776
      esac ;;
1777
    esac
1778
  done
1779
  (set) 2>&1 |
1780
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781
    *${as_nl}ac_space=\ *)
1782
      sed -n \
1783
	"s/'\''/'\''\\\\'\'''\''/g;
1784
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785
      ;; #(
1786
    *)
1787
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788
      ;;
1789
    esac |
1790
    sort
1791
)
1792
    echo
1793
 
1794
    cat <<\_ASBOX
1795
## ----------------- ##
1796
## Output variables. ##
1797
## ----------------- ##
1798
_ASBOX
1799
    echo
1800
    for ac_var in $ac_subst_vars
1801
    do
1802
      eval ac_val=\$$ac_var
1803
      case $ac_val in
1804
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805
      esac
1806
      $as_echo "$ac_var='\''$ac_val'\''"
1807
    done | sort
1808
    echo
1809
 
1810
    if test -n "$ac_subst_files"; then
1811
      cat <<\_ASBOX
1812
## ------------------- ##
1813
## File substitutions. ##
1814
## ------------------- ##
1815
_ASBOX
1816
      echo
1817
      for ac_var in $ac_subst_files
1818
      do
1819
	eval ac_val=\$$ac_var
1820
	case $ac_val in
1821
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822
	esac
1823
	$as_echo "$ac_var='\''$ac_val'\''"
1824
      done | sort
1825
      echo
1826
    fi
1827
 
1828
    if test -s confdefs.h; then
1829
      cat <<\_ASBOX
1830
## ----------- ##
1831
## confdefs.h. ##
1832
## ----------- ##
1833
_ASBOX
1834
      echo
1835
      cat confdefs.h
1836
      echo
1837
    fi
1838
    test "$ac_signal" != 0 &&
1839
      $as_echo "$as_me: caught signal $ac_signal"
1840
    $as_echo "$as_me: exit $exit_status"
1841
  } >&5
1842
  rm -f core *.core core.conftest.* &&
1843
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844
    exit $exit_status
1845
' 0
1846
for ac_signal in 1 2 13 15; do
1847
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848
done
1849
ac_signal=0
1850
 
1851
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1852
rm -f -r conftest* confdefs.h
1853
 
1854
# Predefined preprocessor variables.
1855
 
1856
cat >>confdefs.h <<_ACEOF
1857
#define PACKAGE_NAME "$PACKAGE_NAME"
1858
_ACEOF
1859
 
1860
 
1861
cat >>confdefs.h <<_ACEOF
1862
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863
_ACEOF
1864
 
1865
 
1866
cat >>confdefs.h <<_ACEOF
1867
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1868
_ACEOF
1869
 
1870
 
1871
cat >>confdefs.h <<_ACEOF
1872
#define PACKAGE_STRING "$PACKAGE_STRING"
1873
_ACEOF
1874
 
1875
 
1876
cat >>confdefs.h <<_ACEOF
1877
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878
_ACEOF
1879
 
1880
 
1881
# Let the site file select an alternate cache file if it wants to.
1882
# Prefer an explicitly selected file to automatically selected ones.
1883
ac_site_file1=NONE
1884
ac_site_file2=NONE
1885
if test -n "$CONFIG_SITE"; then
1886
  ac_site_file1=$CONFIG_SITE
1887
elif test "x$prefix" != xNONE; then
1888
  ac_site_file1=$prefix/share/config.site
1889
  ac_site_file2=$prefix/etc/config.site
1890
else
1891
  ac_site_file1=$ac_default_prefix/share/config.site
1892
  ac_site_file2=$ac_default_prefix/etc/config.site
1893
fi
1894
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1895
do
1896
  test "x$ac_site_file" = xNONE && continue
1897
  if test -r "$ac_site_file"; then
1898
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1900
    sed 's/^/| /' "$ac_site_file" >&5
1901
    . "$ac_site_file"
1902
  fi
1903
done
1904
 
1905
if test -r "$cache_file"; then
1906
  # Some versions of bash will fail to source /dev/null (special
1907
  # files actually), so we avoid doing that.
1908
  if test -f "$cache_file"; then
1909
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910
$as_echo "$as_me: loading cache $cache_file" >&6;}
1911
    case $cache_file in
1912
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913
      *)                      . "./$cache_file";;
1914
    esac
1915
  fi
1916
else
1917
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918
$as_echo "$as_me: creating cache $cache_file" >&6;}
1919
  >$cache_file
1920
fi
1921
 
1922
# Check that the precious variables saved in the cache have kept the same
1923
# value.
1924
ac_cache_corrupted=false
1925
for ac_var in $ac_precious_vars; do
1926
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927
  eval ac_new_set=\$ac_env_${ac_var}_set
1928
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929
  eval ac_new_val=\$ac_env_${ac_var}_value
1930
  case $ac_old_set,$ac_new_set in
1931
    set,)
1932
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934
      ac_cache_corrupted=: ;;
1935
    ,set)
1936
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938
      ac_cache_corrupted=: ;;
1939
    ,);;
1940
    *)
1941
      if test "x$ac_old_val" != "x$ac_new_val"; then
1942
	# differences in whitespace do not lead to failure.
1943
	ac_old_val_w=`echo x $ac_old_val`
1944
	ac_new_val_w=`echo x $ac_new_val`
1945
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1946
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948
	  ac_cache_corrupted=:
1949
	else
1950
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1951
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1952
	  eval $ac_var=\$ac_old_val
1953
	fi
1954
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1955
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1956
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1957
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1958
      fi;;
1959
  esac
1960
  # Pass precious variables to config.status.
1961
  if test "$ac_new_set" = set; then
1962
    case $ac_new_val in
1963
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1964
    *) ac_arg=$ac_var=$ac_new_val ;;
1965
    esac
1966
    case " $ac_configure_args " in
1967
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1968
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1969
    esac
1970
  fi
1971
done
1972
if $ac_cache_corrupted; then
1973
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1974
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1975
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979
   { (exit 1); exit 1; }; }
1980
fi
1981
 
1982
 
1983
 
1984
 
1985
 
1986
 
1987
 
1988
 
1989
 
1990
 
1991
 
1992
 
1993
 
1994
 
1995
 
1996
 
1997
 
1998
ac_ext=c
1999
ac_cpp='$CPP $CPPFLAGS'
2000
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
 
2004
 
2005
 
2006
ac_config_headers="$ac_config_headers config.h"
2007
 
2008
am__api_version='1.10'
2009
 
2010
ac_aux_dir=
2011
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2012
  if test -f "$ac_dir/install-sh"; then
2013
    ac_aux_dir=$ac_dir
2014
    ac_install_sh="$ac_aux_dir/install-sh -c"
2015
    break
2016
  elif test -f "$ac_dir/install.sh"; then
2017
    ac_aux_dir=$ac_dir
2018
    ac_install_sh="$ac_aux_dir/install.sh -c"
2019
    break
2020
  elif test -f "$ac_dir/shtool"; then
2021
    ac_aux_dir=$ac_dir
2022
    ac_install_sh="$ac_aux_dir/shtool install -c"
2023
    break
2024
  fi
2025
done
2026
if test -z "$ac_aux_dir"; then
2027
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2028
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2029
   { (exit 1); exit 1; }; }
2030
fi
2031
 
2032
# These three variables are undocumented and unsupported,
2033
# and are intended to be withdrawn in a future Autoconf release.
2034
# They can cause serious problems if a builder's source tree is in a directory
2035
# whose full name contains unusual characters.
2036
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2037
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2038
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2039
 
2040
 
2041
# Find a good install program.  We prefer a C program (faster),
2042
# so one script is as good as another.  But avoid the broken or
2043
# incompatible versions:
2044
# SysV /etc/install, /usr/sbin/install
2045
# SunOS /usr/etc/install
2046
# IRIX /sbin/install
2047
# AIX /bin/install
2048
# AmigaOS /C/install, which installs bootblocks on floppy discs
2049
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2050
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2051
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2052
# OS/2's system install, which has a completely different semantic
2053
# ./install, which can be erroneously created by make from ./install.sh.
2054
# Reject install programs that cannot install multiple files.
2055
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2056
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2057
if test -z "$INSTALL"; then
2058
if test "${ac_cv_path_install+set}" = set; then
2059
  $as_echo_n "(cached) " >&6
2060
else
2061
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062
for as_dir in $PATH
2063
do
2064
  IFS=$as_save_IFS
2065
  test -z "$as_dir" && as_dir=.
2066
  # Account for people who put trailing slashes in PATH elements.
2067
case $as_dir/ in
2068
  ./ | .// | /cC/* | \
2069
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2070
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2071
  /usr/ucb/* ) ;;
2072
  *)
2073
    # OSF1 and SCO ODT 3.0 have their own names for install.
2074
    # Don't use installbsd from OSF since it installs stuff as root
2075
    # by default.
2076
    for ac_prog in ginstall scoinst install; do
2077
      for ac_exec_ext in '' $ac_executable_extensions; do
2078
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2079
	  if test $ac_prog = install &&
2080
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081
	    # AIX install.  It has an incompatible calling convention.
2082
	    :
2083
	  elif test $ac_prog = install &&
2084
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085
	    # program-specific install script used by HP pwplus--don't use.
2086
	    :
2087
	  else
2088
	    rm -rf conftest.one conftest.two conftest.dir
2089
	    echo one > conftest.one
2090
	    echo two > conftest.two
2091
	    mkdir conftest.dir
2092
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2093
	      test -s conftest.one && test -s conftest.two &&
2094
	      test -s conftest.dir/conftest.one &&
2095
	      test -s conftest.dir/conftest.two
2096
	    then
2097
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2098
	      break 3
2099
	    fi
2100
	  fi
2101
	fi
2102
      done
2103
    done
2104
    ;;
2105
esac
2106
 
2107
done
2108
IFS=$as_save_IFS
2109
 
2110
rm -rf conftest.one conftest.two conftest.dir
2111
 
2112
fi
2113
  if test "${ac_cv_path_install+set}" = set; then
2114
    INSTALL=$ac_cv_path_install
2115
  else
2116
    # As a last resort, use the slow shell script.  Don't cache a
2117
    # value for INSTALL within a source directory, because that will
2118
    # break other packages using the cache if that directory is
2119
    # removed, or if the value is a relative name.
2120
    INSTALL=$ac_install_sh
2121
  fi
2122
fi
2123
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2124
$as_echo "$INSTALL" >&6; }
2125
 
2126
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2127
# It thinks the first close brace ends the variable substitution.
2128
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2129
 
2130
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2131
 
2132
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2133
 
2134
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2135
$as_echo_n "checking whether build environment is sane... " >&6; }
2136
# Just in case
2137
sleep 1
2138
echo timestamp > conftest.file
2139
# Do `set' in a subshell so we don't clobber the current shell's
2140
# arguments.  Must try -L first in case configure is actually a
2141
# symlink; some systems play weird games with the mod time of symlinks
2142
# (eg FreeBSD returns the mod time of the symlink's containing
2143
# directory).
2144
if (
2145
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2146
   if test "$*" = "X"; then
2147
      # -L didn't work.
2148
      set X `ls -t $srcdir/configure conftest.file`
2149
   fi
2150
   rm -f conftest.file
2151
   if test "$*" != "X $srcdir/configure conftest.file" \
2152
      && test "$*" != "X conftest.file $srcdir/configure"; then
2153
 
2154
      # If neither matched, then we have a broken ls.  This can happen
2155
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2156
      # broken ls alias from the environment.  This has actually
2157
      # happened.  Such a system could not be considered "sane".
2158
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2159
alias in your environment" >&5
2160
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2161
alias in your environment" >&2;}
2162
   { (exit 1); exit 1; }; }
2163
   fi
2164
 
2165
   test "$2" = conftest.file
2166
   )
2167
then
2168
   # Ok.
2169
   :
2170
else
2171
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2172
Check your system clock" >&5
2173
$as_echo "$as_me: error: newly created file is older than distributed files!
2174
Check your system clock" >&2;}
2175
   { (exit 1); exit 1; }; }
2176
fi
2177
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2178
$as_echo "yes" >&6; }
2179
test "$program_prefix" != NONE &&
2180
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2181
# Use a double $ so make ignores it.
2182
test "$program_suffix" != NONE &&
2183
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2184
# Double any \ or $.
2185
# By default was `s,x,x', remove it if useless.
2186
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2187
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2188
 
2189
# expand $ac_aux_dir to an absolute path
2190
am_aux_dir=`cd $ac_aux_dir && pwd`
2191
 
2192
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2193
# Use eval to expand $SHELL
2194
if eval "$MISSING --run true"; then
2195
  am_missing_run="$MISSING --run "
2196
else
2197
  am_missing_run=
2198
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2199
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2200
fi
2201
 
2202
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2203
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2204
if test -z "$MKDIR_P"; then
2205
  if test "${ac_cv_path_mkdir+set}" = set; then
2206
  $as_echo_n "(cached) " >&6
2207
else
2208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2210
do
2211
  IFS=$as_save_IFS
2212
  test -z "$as_dir" && as_dir=.
2213
  for ac_prog in mkdir gmkdir; do
2214
	 for ac_exec_ext in '' $ac_executable_extensions; do
2215
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2216
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2217
	     'mkdir (GNU coreutils) '* | \
2218
	     'mkdir (coreutils) '* | \
2219
	     'mkdir (fileutils) '4.1*)
2220
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2221
	       break 3;;
2222
	   esac
2223
	 done
2224
       done
2225
done
2226
IFS=$as_save_IFS
2227
 
2228
fi
2229
 
2230
  if test "${ac_cv_path_mkdir+set}" = set; then
2231
    MKDIR_P="$ac_cv_path_mkdir -p"
2232
  else
2233
    # As a last resort, use the slow shell script.  Don't cache a
2234
    # value for MKDIR_P within a source directory, because that will
2235
    # break other packages using the cache if that directory is
2236
    # removed, or if the value is a relative name.
2237
    test -d ./--version && rmdir ./--version
2238
    MKDIR_P="$ac_install_sh -d"
2239
  fi
2240
fi
2241
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2242
$as_echo "$MKDIR_P" >&6; }
2243
 
2244
mkdir_p="$MKDIR_P"
2245
case $mkdir_p in
2246
  [\\/$]* | ?:[\\/]*) ;;
2247
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2248
esac
2249
 
2250
for ac_prog in gawk mawk nawk awk
2251
do
2252
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2253
set dummy $ac_prog; ac_word=$2
2254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255
$as_echo_n "checking for $ac_word... " >&6; }
2256
if test "${ac_cv_prog_AWK+set}" = set; then
2257
  $as_echo_n "(cached) " >&6
2258
else
2259
  if test -n "$AWK"; then
2260
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2261
else
2262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263
for as_dir in $PATH
2264
do
2265
  IFS=$as_save_IFS
2266
  test -z "$as_dir" && as_dir=.
2267
  for ac_exec_ext in '' $ac_executable_extensions; do
2268
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269
    ac_cv_prog_AWK="$ac_prog"
2270
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271
    break 2
2272
  fi
2273
done
2274
done
2275
IFS=$as_save_IFS
2276
 
2277
fi
2278
fi
2279
AWK=$ac_cv_prog_AWK
2280
if test -n "$AWK"; then
2281
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2282
$as_echo "$AWK" >&6; }
2283
else
2284
  { $as_echo "$as_me:$LINENO: result: no" >&5
2285
$as_echo "no" >&6; }
2286
fi
2287
 
2288
 
2289
  test -n "$AWK" && break
2290
done
2291
 
2292
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2293
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2294
set x ${MAKE-make}
2295
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2296
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2297
  $as_echo_n "(cached) " >&6
2298
else
2299
  cat >conftest.make <<\_ACEOF
2300
SHELL = /bin/sh
2301
all:
2302
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2303
_ACEOF
2304
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2305
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2306
  *@@@%%%=?*=@@@%%%*)
2307
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2308
  *)
2309
    eval ac_cv_prog_make_${ac_make}_set=no;;
2310
esac
2311
rm -f conftest.make
2312
fi
2313
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2314
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2315
$as_echo "yes" >&6; }
2316
  SET_MAKE=
2317
else
2318
  { $as_echo "$as_me:$LINENO: result: no" >&5
2319
$as_echo "no" >&6; }
2320
  SET_MAKE="MAKE=${MAKE-make}"
2321
fi
2322
 
2323
rm -rf .tst 2>/dev/null
2324
mkdir .tst 2>/dev/null
2325
if test -d .tst; then
2326
  am__leading_dot=.
2327
else
2328
  am__leading_dot=_
2329
fi
2330
rmdir .tst 2>/dev/null
2331
 
2332
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2333
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2334
  # is not polluted with repeated "-I."
2335
  am__isrc=' -I$(srcdir)'
2336
  # test to see if srcdir already configured
2337
  if test -f $srcdir/config.status; then
2338
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2339
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2340
   { (exit 1); exit 1; }; }
2341
  fi
2342
fi
2343
 
2344
# test whether we have cygpath
2345
if test -z "$CYGPATH_W"; then
2346
  if (cygpath --version) >/dev/null 2>/dev/null; then
2347
    CYGPATH_W='cygpath -w'
2348
  else
2349
    CYGPATH_W=echo
2350
  fi
2351
fi
2352
 
2353
 
2354
# Define the identity of the package.
2355
 PACKAGE=sonar
2356
 VERSION=0.1
2357
 
2358
 
2359
cat >>confdefs.h <<_ACEOF
2360
#define PACKAGE "$PACKAGE"
2361
_ACEOF
2362
 
2363
 
2364
cat >>confdefs.h <<_ACEOF
2365
#define VERSION "$VERSION"
2366
_ACEOF
2367
 
2368
# Some tools Automake needs.
2369
 
2370
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2371
 
2372
 
2373
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2374
 
2375
 
2376
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2377
 
2378
 
2379
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2380
 
2381
 
2382
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2383
 
2384
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2385
 
2386
# Installed binaries are usually stripped using `strip' when the user
2387
# run `make install-strip'.  However `strip' might not be the right
2388
# tool to use in cross-compilation environments, therefore Automake
2389
# will honor the `STRIP' environment variable to overrule this program.
2390
if test "$cross_compiling" != no; then
2391
  if test -n "$ac_tool_prefix"; then
2392
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2393
set dummy ${ac_tool_prefix}strip; ac_word=$2
2394
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2395
$as_echo_n "checking for $ac_word... " >&6; }
2396
if test "${ac_cv_prog_STRIP+set}" = set; then
2397
  $as_echo_n "(cached) " >&6
2398
else
2399
  if test -n "$STRIP"; then
2400
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2401
else
2402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403
for as_dir in $PATH
2404
do
2405
  IFS=$as_save_IFS
2406
  test -z "$as_dir" && as_dir=.
2407
  for ac_exec_ext in '' $ac_executable_extensions; do
2408
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2410
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411
    break 2
2412
  fi
2413
done
2414
done
2415
IFS=$as_save_IFS
2416
 
2417
fi
2418
fi
2419
STRIP=$ac_cv_prog_STRIP
2420
if test -n "$STRIP"; then
2421
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2422
$as_echo "$STRIP" >&6; }
2423
else
2424
  { $as_echo "$as_me:$LINENO: result: no" >&5
2425
$as_echo "no" >&6; }
2426
fi
2427
 
2428
 
2429
fi
2430
if test -z "$ac_cv_prog_STRIP"; then
2431
  ac_ct_STRIP=$STRIP
2432
  # Extract the first word of "strip", so it can be a program name with args.
2433
set dummy strip; ac_word=$2
2434
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435
$as_echo_n "checking for $ac_word... " >&6; }
2436
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2437
  $as_echo_n "(cached) " >&6
2438
else
2439
  if test -n "$ac_ct_STRIP"; then
2440
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2441
else
2442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443
for as_dir in $PATH
2444
do
2445
  IFS=$as_save_IFS
2446
  test -z "$as_dir" && as_dir=.
2447
  for ac_exec_ext in '' $ac_executable_extensions; do
2448
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449
    ac_cv_prog_ac_ct_STRIP="strip"
2450
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451
    break 2
2452
  fi
2453
done
2454
done
2455
IFS=$as_save_IFS
2456
 
2457
fi
2458
fi
2459
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2460
if test -n "$ac_ct_STRIP"; then
2461
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2462
$as_echo "$ac_ct_STRIP" >&6; }
2463
else
2464
  { $as_echo "$as_me:$LINENO: result: no" >&5
2465
$as_echo "no" >&6; }
2466
fi
2467
 
2468
  if test "x$ac_ct_STRIP" = x; then
2469
    STRIP=":"
2470
  else
2471
    case $cross_compiling:$ac_tool_warned in
2472
yes:)
2473
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2474
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475
ac_tool_warned=yes ;;
2476
esac
2477
    STRIP=$ac_ct_STRIP
2478
  fi
2479
else
2480
  STRIP="$ac_cv_prog_STRIP"
2481
fi
2482
 
2483
fi
2484
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2485
 
2486
# We need awk for the "check" target.  The system "awk" is bad on
2487
# some platforms.
2488
# Always define AMTAR for backward compatibility.
2489
 
2490
AMTAR=${AMTAR-"${am_missing_run}tar"}
2491
 
2492
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2493
 
2494
 
2495
 
2496
 
2497
 
2498
 
2499
ac_ext=c
2500
ac_cpp='$CPP $CPPFLAGS'
2501
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504
 
2505
ac_ext=c
2506
ac_cpp='$CPP $CPPFLAGS'
2507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
if test -n "$ac_tool_prefix"; then
2511
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2512
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2513
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514
$as_echo_n "checking for $ac_word... " >&6; }
2515
if test "${ac_cv_prog_CC+set}" = set; then
2516
  $as_echo_n "(cached) " >&6
2517
else
2518
  if test -n "$CC"; then
2519
  ac_cv_prog_CC="$CC" # Let the user override the test.
2520
else
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
for as_dir in $PATH
2523
do
2524
  IFS=$as_save_IFS
2525
  test -z "$as_dir" && as_dir=.
2526
  for ac_exec_ext in '' $ac_executable_extensions; do
2527
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2529
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530
    break 2
2531
  fi
2532
done
2533
done
2534
IFS=$as_save_IFS
2535
 
2536
fi
2537
fi
2538
CC=$ac_cv_prog_CC
2539
if test -n "$CC"; then
2540
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2541
$as_echo "$CC" >&6; }
2542
else
2543
  { $as_echo "$as_me:$LINENO: result: no" >&5
2544
$as_echo "no" >&6; }
2545
fi
2546
 
2547
 
2548
fi
2549
if test -z "$ac_cv_prog_CC"; then
2550
  ac_ct_CC=$CC
2551
  # Extract the first word of "gcc", so it can be a program name with args.
2552
set dummy gcc; ac_word=$2
2553
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554
$as_echo_n "checking for $ac_word... " >&6; }
2555
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2556
  $as_echo_n "(cached) " >&6
2557
else
2558
  if test -n "$ac_ct_CC"; then
2559
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560
else
2561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562
for as_dir in $PATH
2563
do
2564
  IFS=$as_save_IFS
2565
  test -z "$as_dir" && as_dir=.
2566
  for ac_exec_ext in '' $ac_executable_extensions; do
2567
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568
    ac_cv_prog_ac_ct_CC="gcc"
2569
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570
    break 2
2571
  fi
2572
done
2573
done
2574
IFS=$as_save_IFS
2575
 
2576
fi
2577
fi
2578
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579
if test -n "$ac_ct_CC"; then
2580
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581
$as_echo "$ac_ct_CC" >&6; }
2582
else
2583
  { $as_echo "$as_me:$LINENO: result: no" >&5
2584
$as_echo "no" >&6; }
2585
fi
2586
 
2587
  if test "x$ac_ct_CC" = x; then
2588
    CC=""
2589
  else
2590
    case $cross_compiling:$ac_tool_warned in
2591
yes:)
2592
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2593
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594
ac_tool_warned=yes ;;
2595
esac
2596
    CC=$ac_ct_CC
2597
  fi
2598
else
2599
  CC="$ac_cv_prog_CC"
2600
fi
2601
 
2602
if test -z "$CC"; then
2603
          if test -n "$ac_tool_prefix"; then
2604
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2605
set dummy ${ac_tool_prefix}cc; ac_word=$2
2606
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2607
$as_echo_n "checking for $ac_word... " >&6; }
2608
if test "${ac_cv_prog_CC+set}" = set; then
2609
  $as_echo_n "(cached) " >&6
2610
else
2611
  if test -n "$CC"; then
2612
  ac_cv_prog_CC="$CC" # Let the user override the test.
2613
else
2614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615
for as_dir in $PATH
2616
do
2617
  IFS=$as_save_IFS
2618
  test -z "$as_dir" && as_dir=.
2619
  for ac_exec_ext in '' $ac_executable_extensions; do
2620
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2622
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623
    break 2
2624
  fi
2625
done
2626
done
2627
IFS=$as_save_IFS
2628
 
2629
fi
2630
fi
2631
CC=$ac_cv_prog_CC
2632
if test -n "$CC"; then
2633
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2634
$as_echo "$CC" >&6; }
2635
else
2636
  { $as_echo "$as_me:$LINENO: result: no" >&5
2637
$as_echo "no" >&6; }
2638
fi
2639
 
2640
 
2641
  fi
2642
fi
2643
if test -z "$CC"; then
2644
  # Extract the first word of "cc", so it can be a program name with args.
2645
set dummy cc; ac_word=$2
2646
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647
$as_echo_n "checking for $ac_word... " >&6; }
2648
if test "${ac_cv_prog_CC+set}" = set; then
2649
  $as_echo_n "(cached) " >&6
2650
else
2651
  if test -n "$CC"; then
2652
  ac_cv_prog_CC="$CC" # Let the user override the test.
2653
else
2654
  ac_prog_rejected=no
2655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656
for as_dir in $PATH
2657
do
2658
  IFS=$as_save_IFS
2659
  test -z "$as_dir" && as_dir=.
2660
  for ac_exec_ext in '' $ac_executable_extensions; do
2661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2663
       ac_prog_rejected=yes
2664
       continue
2665
     fi
2666
    ac_cv_prog_CC="cc"
2667
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668
    break 2
2669
  fi
2670
done
2671
done
2672
IFS=$as_save_IFS
2673
 
2674
if test $ac_prog_rejected = yes; then
2675
  # We found a bogon in the path, so make sure we never use it.
2676
  set dummy $ac_cv_prog_CC
2677
  shift
2678
  if test $# != 0; then
2679
    # We chose a different compiler from the bogus one.
2680
    # However, it has the same basename, so the bogon will be chosen
2681
    # first if we set CC to just the basename; use the full file name.
2682
    shift
2683
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2684
  fi
2685
fi
2686
fi
2687
fi
2688
CC=$ac_cv_prog_CC
2689
if test -n "$CC"; then
2690
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2691
$as_echo "$CC" >&6; }
2692
else
2693
  { $as_echo "$as_me:$LINENO: result: no" >&5
2694
$as_echo "no" >&6; }
2695
fi
2696
 
2697
 
2698
fi
2699
if test -z "$CC"; then
2700
  if test -n "$ac_tool_prefix"; then
2701
  for ac_prog in cl.exe
2702
  do
2703
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2704
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2705
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2706
$as_echo_n "checking for $ac_word... " >&6; }
2707
if test "${ac_cv_prog_CC+set}" = set; then
2708
  $as_echo_n "(cached) " >&6
2709
else
2710
  if test -n "$CC"; then
2711
  ac_cv_prog_CC="$CC" # Let the user override the test.
2712
else
2713
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714
for as_dir in $PATH
2715
do
2716
  IFS=$as_save_IFS
2717
  test -z "$as_dir" && as_dir=.
2718
  for ac_exec_ext in '' $ac_executable_extensions; do
2719
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2721
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722
    break 2
2723
  fi
2724
done
2725
done
2726
IFS=$as_save_IFS
2727
 
2728
fi
2729
fi
2730
CC=$ac_cv_prog_CC
2731
if test -n "$CC"; then
2732
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2733
$as_echo "$CC" >&6; }
2734
else
2735
  { $as_echo "$as_me:$LINENO: result: no" >&5
2736
$as_echo "no" >&6; }
2737
fi
2738
 
2739
 
2740
    test -n "$CC" && break
2741
  done
2742
fi
2743
if test -z "$CC"; then
2744
  ac_ct_CC=$CC
2745
  for ac_prog in cl.exe
2746
do
2747
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2748
set dummy $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_ac_ct_CC+set}" = set; then
2752
  $as_echo_n "(cached) " >&6
2753
else
2754
  if test -n "$ac_ct_CC"; then
2755
  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775
if test -n "$ac_ct_CC"; then
2776
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2777
$as_echo "$ac_ct_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 "$ac_ct_CC" && break
2785
done
2786
 
2787
  if test "x$ac_ct_CC" = x; then
2788
    CC=""
2789
  else
2790
    case $cross_compiling:$ac_tool_warned in
2791
yes:)
2792
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2793
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794
ac_tool_warned=yes ;;
2795
esac
2796
    CC=$ac_ct_CC
2797
  fi
2798
fi
2799
 
2800
fi
2801
 
2802
 
2803
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2804
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2806
See \`config.log' for more details." >&5
2807
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2808
See \`config.log' for more details." >&2;}
2809
   { (exit 1); exit 1; }; }; }
2810
 
2811
# Provide some information about the compiler.
2812
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2813
set X $ac_compile
2814
ac_compiler=$2
2815
{ (ac_try="$ac_compiler --version >&5"
2816
case "(($ac_try" in
2817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818
  *) ac_try_echo=$ac_try;;
2819
esac
2820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821
$as_echo "$ac_try_echo") >&5
2822
  (eval "$ac_compiler --version >&5") 2>&5
2823
  ac_status=$?
2824
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825
  (exit $ac_status); }
2826
{ (ac_try="$ac_compiler -v >&5"
2827
case "(($ac_try" in
2828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829
  *) ac_try_echo=$ac_try;;
2830
esac
2831
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2832
$as_echo "$ac_try_echo") >&5
2833
  (eval "$ac_compiler -v >&5") 2>&5
2834
  ac_status=$?
2835
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836
  (exit $ac_status); }
2837
{ (ac_try="$ac_compiler -V >&5"
2838
case "(($ac_try" in
2839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840
  *) ac_try_echo=$ac_try;;
2841
esac
2842
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843
$as_echo "$ac_try_echo") >&5
2844
  (eval "$ac_compiler -V >&5") 2>&5
2845
  ac_status=$?
2846
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847
  (exit $ac_status); }
2848
 
2849
cat >conftest.$ac_ext <<_ACEOF
2850
/* confdefs.h.  */
2851
_ACEOF
2852
cat confdefs.h >>conftest.$ac_ext
2853
cat >>conftest.$ac_ext <<_ACEOF
2854
/* end confdefs.h.  */
2855
 
2856
int
2857
main ()
2858
{
2859
 
2860
  ;
2861
  return 0;
2862
}
2863
_ACEOF
2864
ac_clean_files_save=$ac_clean_files
2865
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2866
# Try to create an executable without -o first, disregard a.out.
2867
# It will help us diagnose broken compilers, and finding out an intuition
2868
# of exeext.
2869
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2870
$as_echo_n "checking for C compiler default output file name... " >&6; }
2871
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2872
 
2873
# The possible output files:
2874
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2875
 
2876
ac_rmfiles=
2877
for ac_file in $ac_files
2878
do
2879
  case $ac_file in
2880
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2881
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2882
  esac
2883
done
2884
rm -f $ac_rmfiles
2885
 
2886
if { (ac_try="$ac_link_default"
2887
case "(($ac_try" in
2888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889
  *) ac_try_echo=$ac_try;;
2890
esac
2891
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892
$as_echo "$ac_try_echo") >&5
2893
  (eval "$ac_link_default") 2>&5
2894
  ac_status=$?
2895
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896
  (exit $ac_status); }; then
2897
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2898
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2899
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2900
# so that the user can short-circuit this test for compilers unknown to
2901
# Autoconf.
2902
for ac_file in $ac_files ''
2903
do
2904
  test -f "$ac_file" || continue
2905
  case $ac_file in
2906
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2907
	;;
2908
    [ab].out )
2909
	# We found the default executable, but exeext='' is most
2910
	# certainly right.
2911
	break;;
2912
    *.* )
2913
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2914
	then :; else
2915
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916
	fi
2917
	# We set ac_cv_exeext here because the later test for it is not
2918
	# safe: cross compilers may not add the suffix if given an `-o'
2919
	# argument, so we may need to know it at that point already.
2920
	# Even if this section looks crufty: it has the advantage of
2921
	# actually working.
2922
	break;;
2923
    * )
2924
	break;;
2925
  esac
2926
done
2927
test "$ac_cv_exeext" = no && ac_cv_exeext=
2928
 
2929
else
2930
  ac_file=''
2931
fi
2932
 
2933
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2934
$as_echo "$ac_file" >&6; }
2935
if test -z "$ac_file"; then
2936
  $as_echo "$as_me: failed program was:" >&5
2937
sed 's/^/| /' conftest.$ac_ext >&5
2938
 
2939
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2940
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2942
See \`config.log' for more details." >&5
2943
$as_echo "$as_me: error: C compiler cannot create executables
2944
See \`config.log' for more details." >&2;}
2945
   { (exit 77); exit 77; }; }; }
2946
fi
2947
 
2948
ac_exeext=$ac_cv_exeext
2949
 
2950
# Check that the compiler produces executables we can run.  If not, either
2951
# the compiler is broken, or we cross compile.
2952
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2953
$as_echo_n "checking whether the C compiler works... " >&6; }
2954
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2955
# If not cross compiling, check that we can run a simple program.
2956
if test "$cross_compiling" != yes; then
2957
  if { ac_try='./$ac_file'
2958
  { (case "(($ac_try" in
2959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960
  *) ac_try_echo=$ac_try;;
2961
esac
2962
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963
$as_echo "$ac_try_echo") >&5
2964
  (eval "$ac_try") 2>&5
2965
  ac_status=$?
2966
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967
  (exit $ac_status); }; }; then
2968
    cross_compiling=no
2969
  else
2970
    if test "$cross_compiling" = maybe; then
2971
	cross_compiling=yes
2972
    else
2973
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2974
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2976
If you meant to cross compile, use \`--host'.
2977
See \`config.log' for more details." >&5
2978
$as_echo "$as_me: error: cannot run C compiled programs.
2979
If you meant to cross compile, use \`--host'.
2980
See \`config.log' for more details." >&2;}
2981
   { (exit 1); exit 1; }; }; }
2982
    fi
2983
  fi
2984
fi
2985
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2986
$as_echo "yes" >&6; }
2987
 
2988
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2989
ac_clean_files=$ac_clean_files_save
2990
# Check that the compiler produces executables we can run.  If not, either
2991
# the compiler is broken, or we cross compile.
2992
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2993
$as_echo_n "checking whether we are cross compiling... " >&6; }
2994
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2995
$as_echo "$cross_compiling" >&6; }
2996
 
2997
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2998
$as_echo_n "checking for suffix of executables... " >&6; }
2999
if { (ac_try="$ac_link"
3000
case "(($ac_try" in
3001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002
  *) ac_try_echo=$ac_try;;
3003
esac
3004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005
$as_echo "$ac_try_echo") >&5
3006
  (eval "$ac_link") 2>&5
3007
  ac_status=$?
3008
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009
  (exit $ac_status); }; then
3010
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3011
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3012
# work properly (i.e., refer to `conftest.exe'), while it won't with
3013
# `rm'.
3014
for ac_file in conftest.exe conftest conftest.*; do
3015
  test -f "$ac_file" || continue
3016
  case $ac_file in
3017
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3018
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019
	  break;;
3020
    * ) break;;
3021
  esac
3022
done
3023
else
3024
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3027
See \`config.log' for more details." >&5
3028
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3029
See \`config.log' for more details." >&2;}
3030
   { (exit 1); exit 1; }; }; }
3031
fi
3032
 
3033
rm -f conftest$ac_cv_exeext
3034
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3035
$as_echo "$ac_cv_exeext" >&6; }
3036
 
3037
rm -f conftest.$ac_ext
3038
EXEEXT=$ac_cv_exeext
3039
ac_exeext=$EXEEXT
3040
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3041
$as_echo_n "checking for suffix of object files... " >&6; }
3042
if test "${ac_cv_objext+set}" = set; then
3043
  $as_echo_n "(cached) " >&6
3044
else
3045
  cat >conftest.$ac_ext <<_ACEOF
3046
/* confdefs.h.  */
3047
_ACEOF
3048
cat confdefs.h >>conftest.$ac_ext
3049
cat >>conftest.$ac_ext <<_ACEOF
3050
/* end confdefs.h.  */
3051
 
3052
int
3053
main ()
3054
{
3055
 
3056
  ;
3057
  return 0;
3058
}
3059
_ACEOF
3060
rm -f conftest.o conftest.obj
3061
if { (ac_try="$ac_compile"
3062
case "(($ac_try" in
3063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064
  *) ac_try_echo=$ac_try;;
3065
esac
3066
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3067
$as_echo "$ac_try_echo") >&5
3068
  (eval "$ac_compile") 2>&5
3069
  ac_status=$?
3070
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071
  (exit $ac_status); }; then
3072
  for ac_file in conftest.o conftest.obj conftest.*; do
3073
  test -f "$ac_file" || continue;
3074
  case $ac_file in
3075
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3076
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3077
       break;;
3078
  esac
3079
done
3080
else
3081
  $as_echo "$as_me: failed program was:" >&5
3082
sed 's/^/| /' conftest.$ac_ext >&5
3083
 
3084
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3085
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3087
See \`config.log' for more details." >&5
3088
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3089
See \`config.log' for more details." >&2;}
3090
   { (exit 1); exit 1; }; }; }
3091
fi
3092
 
3093
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3094
fi
3095
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3096
$as_echo "$ac_cv_objext" >&6; }
3097
OBJEXT=$ac_cv_objext
3098
ac_objext=$OBJEXT
3099
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3100
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3101
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3102
  $as_echo_n "(cached) " >&6
3103
else
3104
  cat >conftest.$ac_ext <<_ACEOF
3105
/* confdefs.h.  */
3106
_ACEOF
3107
cat confdefs.h >>conftest.$ac_ext
3108
cat >>conftest.$ac_ext <<_ACEOF
3109
/* end confdefs.h.  */
3110
 
3111
int
3112
main ()
3113
{
3114
#ifndef __GNUC__
3115
       choke me
3116
#endif
3117
 
3118
  ;
3119
  return 0;
3120
}
3121
_ACEOF
3122
rm -f conftest.$ac_objext
3123
if { (ac_try="$ac_compile"
3124
case "(($ac_try" in
3125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126
  *) ac_try_echo=$ac_try;;
3127
esac
3128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129
$as_echo "$ac_try_echo") >&5
3130
  (eval "$ac_compile") 2>conftest.er1
3131
  ac_status=$?
3132
  grep -v '^ *+' conftest.er1 >conftest.err
3133
  rm -f conftest.er1
3134
  cat conftest.err >&5
3135
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136
  (exit $ac_status); } && {
3137
	 test -z "$ac_c_werror_flag" ||
3138
	 test ! -s conftest.err
3139
       } && test -s conftest.$ac_objext; then
3140
  ac_compiler_gnu=yes
3141
else
3142
  $as_echo "$as_me: failed program was:" >&5
3143
sed 's/^/| /' conftest.$ac_ext >&5
3144
 
3145
	ac_compiler_gnu=no
3146
fi
3147
 
3148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3150
 
3151
fi
3152
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3153
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3154
if test $ac_compiler_gnu = yes; then
3155
  GCC=yes
3156
else
3157
  GCC=
3158
fi
3159
ac_test_CFLAGS=${CFLAGS+set}
3160
ac_save_CFLAGS=$CFLAGS
3161
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3162
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3163
if test "${ac_cv_prog_cc_g+set}" = set; then
3164
  $as_echo_n "(cached) " >&6
3165
else
3166
  ac_save_c_werror_flag=$ac_c_werror_flag
3167
   ac_c_werror_flag=yes
3168
   ac_cv_prog_cc_g=no
3169
   CFLAGS="-g"
3170
   cat >conftest.$ac_ext <<_ACEOF
3171
/* confdefs.h.  */
3172
_ACEOF
3173
cat confdefs.h >>conftest.$ac_ext
3174
cat >>conftest.$ac_ext <<_ACEOF
3175
/* end confdefs.h.  */
3176
 
3177
int
3178
main ()
3179
{
3180
 
3181
  ;
3182
  return 0;
3183
}
3184
_ACEOF
3185
rm -f conftest.$ac_objext
3186
if { (ac_try="$ac_compile"
3187
case "(($ac_try" in
3188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189
  *) ac_try_echo=$ac_try;;
3190
esac
3191
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192
$as_echo "$ac_try_echo") >&5
3193
  (eval "$ac_compile") 2>conftest.er1
3194
  ac_status=$?
3195
  grep -v '^ *+' conftest.er1 >conftest.err
3196
  rm -f conftest.er1
3197
  cat conftest.err >&5
3198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199
  (exit $ac_status); } && {
3200
	 test -z "$ac_c_werror_flag" ||
3201
	 test ! -s conftest.err
3202
       } && test -s conftest.$ac_objext; then
3203
  ac_cv_prog_cc_g=yes
3204
else
3205
  $as_echo "$as_me: failed program was:" >&5
3206
sed 's/^/| /' conftest.$ac_ext >&5
3207
 
3208
	CFLAGS=""
3209
      cat >conftest.$ac_ext <<_ACEOF
3210
/* confdefs.h.  */
3211
_ACEOF
3212
cat confdefs.h >>conftest.$ac_ext
3213
cat >>conftest.$ac_ext <<_ACEOF
3214
/* end confdefs.h.  */
3215
 
3216
int
3217
main ()
3218
{
3219
 
3220
  ;
3221
  return 0;
3222
}
3223
_ACEOF
3224
rm -f conftest.$ac_objext
3225
if { (ac_try="$ac_compile"
3226
case "(($ac_try" in
3227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228
  *) ac_try_echo=$ac_try;;
3229
esac
3230
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231
$as_echo "$ac_try_echo") >&5
3232
  (eval "$ac_compile") 2>conftest.er1
3233
  ac_status=$?
3234
  grep -v '^ *+' conftest.er1 >conftest.err
3235
  rm -f conftest.er1
3236
  cat conftest.err >&5
3237
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238
  (exit $ac_status); } && {
3239
	 test -z "$ac_c_werror_flag" ||
3240
	 test ! -s conftest.err
3241
       } && test -s conftest.$ac_objext; then
3242
  :
3243
else
3244
  $as_echo "$as_me: failed program was:" >&5
3245
sed 's/^/| /' conftest.$ac_ext >&5
3246
 
3247
	ac_c_werror_flag=$ac_save_c_werror_flag
3248
	 CFLAGS="-g"
3249
	 cat >conftest.$ac_ext <<_ACEOF
3250
/* confdefs.h.  */
3251
_ACEOF
3252
cat confdefs.h >>conftest.$ac_ext
3253
cat >>conftest.$ac_ext <<_ACEOF
3254
/* end confdefs.h.  */
3255
 
3256
int
3257
main ()
3258
{
3259
 
3260
  ;
3261
  return 0;
3262
}
3263
_ACEOF
3264
rm -f conftest.$ac_objext
3265
if { (ac_try="$ac_compile"
3266
case "(($ac_try" in
3267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268
  *) ac_try_echo=$ac_try;;
3269
esac
3270
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271
$as_echo "$ac_try_echo") >&5
3272
  (eval "$ac_compile") 2>conftest.er1
3273
  ac_status=$?
3274
  grep -v '^ *+' conftest.er1 >conftest.err
3275
  rm -f conftest.er1
3276
  cat conftest.err >&5
3277
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278
  (exit $ac_status); } && {
3279
	 test -z "$ac_c_werror_flag" ||
3280
	 test ! -s conftest.err
3281
       } && test -s conftest.$ac_objext; then
3282
  ac_cv_prog_cc_g=yes
3283
else
3284
  $as_echo "$as_me: failed program was:" >&5
3285
sed 's/^/| /' conftest.$ac_ext >&5
3286
 
3287
 
3288
fi
3289
 
3290
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291
fi
3292
 
3293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294
fi
3295
 
3296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297
   ac_c_werror_flag=$ac_save_c_werror_flag
3298
fi
3299
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3300
$as_echo "$ac_cv_prog_cc_g" >&6; }
3301
if test "$ac_test_CFLAGS" = set; then
3302
  CFLAGS=$ac_save_CFLAGS
3303
elif test $ac_cv_prog_cc_g = yes; then
3304
  if test "$GCC" = yes; then
3305
    CFLAGS="-g -O2"
3306
  else
3307
    CFLAGS="-g"
3308
  fi
3309
else
3310
  if test "$GCC" = yes; then
3311
    CFLAGS="-O2"
3312
  else
3313
    CFLAGS=
3314
  fi
3315
fi
3316
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3317
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3318
if test "${ac_cv_prog_cc_c89+set}" = set; then
3319
  $as_echo_n "(cached) " >&6
3320
else
3321
  ac_cv_prog_cc_c89=no
3322
ac_save_CC=$CC
3323
cat >conftest.$ac_ext <<_ACEOF
3324
/* confdefs.h.  */
3325
_ACEOF
3326
cat confdefs.h >>conftest.$ac_ext
3327
cat >>conftest.$ac_ext <<_ACEOF
3328
/* end confdefs.h.  */
3329
#include <stdarg.h>
3330
#include <stdio.h>
3331
#include <sys/types.h>
3332
#include <sys/stat.h>
3333
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3334
struct buf { int x; };
3335
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3336
static char *e (p, i)
3337
     char **p;
3338
     int i;
3339
{
3340
  return p[i];
3341
}
3342
static char *f (char * (*g) (char **, int), char **p, ...)
3343
{
3344
  char *s;
3345
  va_list v;
3346
  va_start (v,p);
3347
  s = g (p, va_arg (v,int));
3348
  va_end (v);
3349
  return s;
3350
}
3351
 
3352
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3353
   function prototypes and stuff, but not '\xHH' hex character constants.
3354
   These don't provoke an error unfortunately, instead are silently treated
3355
   as 'x'.  The following induces an error, until -std is added to get
3356
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3357
   array size at least.  It's necessary to write '\x00'==0 to get something
3358
   that's true only with -std.  */
3359
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3360
 
3361
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3362
   inside strings and character constants.  */
3363
#define FOO(x) 'x'
3364
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3365
 
3366
int test (int i, double x);
3367
struct s1 {int (*f) (int a);};
3368
struct s2 {int (*f) (double a);};
3369
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3370
int argc;
3371
char **argv;
3372
int
3373
main ()
3374
{
3375
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3376
  ;
3377
  return 0;
3378
}
3379
_ACEOF
3380
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3381
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3382
do
3383
  CC="$ac_save_CC $ac_arg"
3384
  rm -f conftest.$ac_objext
3385
if { (ac_try="$ac_compile"
3386
case "(($ac_try" in
3387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388
  *) ac_try_echo=$ac_try;;
3389
esac
3390
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391
$as_echo "$ac_try_echo") >&5
3392
  (eval "$ac_compile") 2>conftest.er1
3393
  ac_status=$?
3394
  grep -v '^ *+' conftest.er1 >conftest.err
3395
  rm -f conftest.er1
3396
  cat conftest.err >&5
3397
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
  (exit $ac_status); } && {
3399
	 test -z "$ac_c_werror_flag" ||
3400
	 test ! -s conftest.err
3401
       } && test -s conftest.$ac_objext; then
3402
  ac_cv_prog_cc_c89=$ac_arg
3403
else
3404
  $as_echo "$as_me: failed program was:" >&5
3405
sed 's/^/| /' conftest.$ac_ext >&5
3406
 
3407
 
3408
fi
3409
 
3410
rm -f core conftest.err conftest.$ac_objext
3411
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3412
done
3413
rm -f conftest.$ac_ext
3414
CC=$ac_save_CC
3415
 
3416
fi
3417
# AC_CACHE_VAL
3418
case "x$ac_cv_prog_cc_c89" in
3419
  x)
3420
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3421
$as_echo "none needed" >&6; } ;;
3422
  xno)
3423
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3424
$as_echo "unsupported" >&6; } ;;
3425
  *)
3426
    CC="$CC $ac_cv_prog_cc_c89"
3427
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3428
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3429
esac
3430
 
3431
 
3432
ac_ext=c
3433
ac_cpp='$CPP $CPPFLAGS'
3434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
DEPDIR="${am__leading_dot}deps"
3438
 
3439
ac_config_commands="$ac_config_commands depfiles"
3440
 
3441
 
3442
am_make=${MAKE-make}
3443
cat > confinc << 'END'
3444
am__doit:
3445
	@echo done
3446
.PHONY: am__doit
3447
END
3448
# If we don't find an include directive, just comment out the code.
3449
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3450
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3451
am__include="#"
3452
am__quote=
3453
_am_result=none
3454
# First try GNU make style include.
3455
echo "include confinc" > confmf
3456
# We grep out `Entering directory' and `Leaving directory'
3457
# messages which can occur if `w' ends up in MAKEFLAGS.
3458
# In particular we don't look at `^make:' because GNU make might
3459
# be invoked under some other name (usually "gmake"), in which
3460
# case it prints its new name instead of `make'.
3461
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3462
   am__include=include
3463
   am__quote=
3464
   _am_result=GNU
3465
fi
3466
# Now try BSD make style include.
3467
if test "$am__include" = "#"; then
3468
   echo '.include "confinc"' > confmf
3469
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3470
      am__include=.include
3471
      am__quote="\""
3472
      _am_result=BSD
3473
   fi
3474
fi
3475
 
3476
 
3477
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3478
$as_echo "$_am_result" >&6; }
3479
rm -f confinc confmf
3480
 
3481
# Check whether --enable-dependency-tracking was given.
3482
if test "${enable_dependency_tracking+set}" = set; then
3483
  enableval=$enable_dependency_tracking;
3484
fi
3485
 
3486
if test "x$enable_dependency_tracking" != xno; then
3487
  am_depcomp="$ac_aux_dir/depcomp"
3488
  AMDEPBACKSLASH='\'
3489
fi
3490
 if test "x$enable_dependency_tracking" != xno; then
3491
  AMDEP_TRUE=
3492
  AMDEP_FALSE='#'
3493
else
3494
  AMDEP_TRUE='#'
3495
  AMDEP_FALSE=
3496
fi
3497
 
3498
 
3499
 
3500
depcc="$CC"   am_compiler_list=
3501
 
3502
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3503
$as_echo_n "checking dependency style of $depcc... " >&6; }
3504
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3505
  $as_echo_n "(cached) " >&6
3506
else
3507
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3508
  # We make a subdir and do the tests there.  Otherwise we can end up
3509
  # making bogus files that we don't know about and never remove.  For
3510
  # instance it was reported that on HP-UX the gcc test will end up
3511
  # making a dummy file named `D' -- because `-MD' means `put the output
3512
  # in D'.
3513
  mkdir conftest.dir
3514
  # Copy depcomp to subdir because otherwise we won't find it if we're
3515
  # using a relative directory.
3516
  cp "$am_depcomp" conftest.dir
3517
  cd conftest.dir
3518
  # We will build objects and dependencies in a subdirectory because
3519
  # it helps to detect inapplicable dependency modes.  For instance
3520
  # both Tru64's cc and ICC support -MD to output dependencies as a
3521
  # side effect of compilation, but ICC will put the dependencies in
3522
  # the current directory while Tru64 will put them in the object
3523
  # directory.
3524
  mkdir sub
3525
 
3526
  am_cv_CC_dependencies_compiler_type=none
3527
  if test "$am_compiler_list" = ""; then
3528
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3529
  fi
3530
  for depmode in $am_compiler_list; do
3531
    # Setup a source with many dependencies, because some compilers
3532
    # like to wrap large dependency lists on column 80 (with \), and
3533
    # we should not choose a depcomp mode which is confused by this.
3534
    #
3535
    # We need to recreate these files for each test, as the compiler may
3536
    # overwrite some of them when testing with obscure command lines.
3537
    # This happens at least with the AIX C compiler.
3538
    : > sub/conftest.c
3539
    for i in 1 2 3 4 5 6; do
3540
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3541
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3542
      # Solaris 8's {/usr,}/bin/sh.
3543
      touch sub/conftst$i.h
3544
    done
3545
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3546
 
3547
    case $depmode in
3548
    nosideeffect)
3549
      # after this tag, mechanisms are not by side-effect, so they'll
3550
      # only be used when explicitly requested
3551
      if test "x$enable_dependency_tracking" = xyes; then
3552
	continue
3553
      else
3554
	break
3555
      fi
3556
      ;;
3557
    none) break ;;
3558
    esac
3559
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3560
    # mode.  It turns out that the SunPro C++ compiler does not properly
3561
    # handle `-M -o', and we need to detect this.
3562
    if depmode=$depmode \
3563
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3564
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3565
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3566
         >/dev/null 2>conftest.err &&
3567
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3568
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3569
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3570
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3571
      # icc doesn't choke on unknown options, it will just issue warnings
3572
      # or remarks (even with -Werror).  So we grep stderr for any message
3573
      # that says an option was ignored or not supported.
3574
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3575
      #   icc: Command line warning: ignoring option '-M'; no argument required
3576
      # The diagnosis changed in icc 8.0:
3577
      #   icc: Command line remark: option '-MP' not supported
3578
      if (grep 'ignoring option' conftest.err ||
3579
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3580
        am_cv_CC_dependencies_compiler_type=$depmode
3581
        break
3582
      fi
3583
    fi
3584
  done
3585
 
3586
  cd ..
3587
  rm -rf conftest.dir
3588
else
3589
  am_cv_CC_dependencies_compiler_type=none
3590
fi
3591
 
3592
fi
3593
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3594
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3595
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3596
 
3597
 if
3598
  test "x$enable_dependency_tracking" != xno \
3599
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3600
  am__fastdepCC_TRUE=
3601
  am__fastdepCC_FALSE='#'
3602
else
3603
  am__fastdepCC_TRUE='#'
3604
  am__fastdepCC_FALSE=
3605
fi
3606
 
3607
 
3608
case `pwd` in
3609
  *\ * | *\	*)
3610
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3611
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3612
esac
3613
 
3614
 
3615
 
3616
macro_version='2.2.6'
3617
macro_revision='1.3012'
3618
 
3619
 
3620
 
3621
 
3622
 
3623
 
3624
 
3625
 
3626
 
3627
 
3628
 
3629
 
3630
 
3631
ltmain="$ac_aux_dir/ltmain.sh"
3632
 
3633
# Make sure we can run config.sub.
3634
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3635
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3636
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3637
   { (exit 1); exit 1; }; }
3638
 
3639
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3640
$as_echo_n "checking build system type... " >&6; }
3641
if test "${ac_cv_build+set}" = set; then
3642
  $as_echo_n "(cached) " >&6
3643
else
3644
  ac_build_alias=$build_alias
3645
test "x$ac_build_alias" = x &&
3646
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3647
test "x$ac_build_alias" = x &&
3648
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3649
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3650
   { (exit 1); exit 1; }; }
3651
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3652
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3653
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3654
   { (exit 1); exit 1; }; }
3655
 
3656
fi
3657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3658
$as_echo "$ac_cv_build" >&6; }
3659
case $ac_cv_build in
3660
*-*-*) ;;
3661
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3662
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3663
   { (exit 1); exit 1; }; };;
3664
esac
3665
build=$ac_cv_build
3666
ac_save_IFS=$IFS; IFS='-'
3667
set x $ac_cv_build
3668
shift
3669
build_cpu=$1
3670
build_vendor=$2
3671
shift; shift
3672
# Remember, the first character of IFS is used to create $*,
3673
# except with old shells:
3674
build_os=$*
3675
IFS=$ac_save_IFS
3676
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3677
 
3678
 
3679
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3680
$as_echo_n "checking host system type... " >&6; }
3681
if test "${ac_cv_host+set}" = set; then
3682
  $as_echo_n "(cached) " >&6
3683
else
3684
  if test "x$host_alias" = x; then
3685
  ac_cv_host=$ac_cv_build
3686
else
3687
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3688
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3689
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3690
   { (exit 1); exit 1; }; }
3691
fi
3692
 
3693
fi
3694
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3695
$as_echo "$ac_cv_host" >&6; }
3696
case $ac_cv_host in
3697
*-*-*) ;;
3698
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3699
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3700
   { (exit 1); exit 1; }; };;
3701
esac
3702
host=$ac_cv_host
3703
ac_save_IFS=$IFS; IFS='-'
3704
set x $ac_cv_host
3705
shift
3706
host_cpu=$1
3707
host_vendor=$2
3708
shift; shift
3709
# Remember, the first character of IFS is used to create $*,
3710
# except with old shells:
3711
host_os=$*
3712
IFS=$ac_save_IFS
3713
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3714
 
3715
 
3716
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3717
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3718
if test "${ac_cv_path_SED+set}" = set; then
3719
  $as_echo_n "(cached) " >&6
3720
else
3721
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3722
     for ac_i in 1 2 3 4 5 6 7; do
3723
       ac_script="$ac_script$as_nl$ac_script"
3724
     done
3725
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3726
     $as_unset ac_script || ac_script=
3727
     if test -z "$SED"; then
3728
  ac_path_SED_found=false
3729
  # Loop through the user's path and test for each of PROGNAME-LIST
3730
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731
for as_dir in $PATH
3732
do
3733
  IFS=$as_save_IFS
3734
  test -z "$as_dir" && as_dir=.
3735
  for ac_prog in sed gsed; do
3736
    for ac_exec_ext in '' $ac_executable_extensions; do
3737
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3738
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3739
# Check for GNU ac_path_SED and select it if it is found.
3740
  # Check for GNU $ac_path_SED
3741
case `"$ac_path_SED" --version 2>&1` in
3742
*GNU*)
3743
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3744
*)
3745
  ac_count=0
3746
  $as_echo_n 0123456789 >"conftest.in"
3747
  while :
3748
  do
3749
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3750
    mv "conftest.tmp" "conftest.in"
3751
    cp "conftest.in" "conftest.nl"
3752
    $as_echo '' >> "conftest.nl"
3753
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3754
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3755
    ac_count=`expr $ac_count + 1`
3756
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3757
      # Best one so far, save it but keep looking for a better one
3758
      ac_cv_path_SED="$ac_path_SED"
3759
      ac_path_SED_max=$ac_count
3760
    fi
3761
    # 10*(2^10) chars as input seems more than enough
3762
    test $ac_count -gt 10 && break
3763
  done
3764
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3765
esac
3766
 
3767
      $ac_path_SED_found && break 3
3768
    done
3769
  done
3770
done
3771
IFS=$as_save_IFS
3772
  if test -z "$ac_cv_path_SED"; then
3773
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3774
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3775
   { (exit 1); exit 1; }; }
3776
  fi
3777
else
3778
  ac_cv_path_SED=$SED
3779
fi
3780
 
3781
fi
3782
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3783
$as_echo "$ac_cv_path_SED" >&6; }
3784
 SED="$ac_cv_path_SED"
3785
  rm -f conftest.sed
3786
 
3787
test -z "$SED" && SED=sed
3788
Xsed="$SED -e 1s/^X//"
3789
 
3790
 
3791
 
3792
 
3793
 
3794
 
3795
 
3796
 
3797
 
3798
 
3799
 
3800
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3801
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3802
if test "${ac_cv_path_GREP+set}" = set; then
3803
  $as_echo_n "(cached) " >&6
3804
else
3805
  if test -z "$GREP"; then
3806
  ac_path_GREP_found=false
3807
  # Loop through the user's path and test for each of PROGNAME-LIST
3808
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810
do
3811
  IFS=$as_save_IFS
3812
  test -z "$as_dir" && as_dir=.
3813
  for ac_prog in grep ggrep; do
3814
    for ac_exec_ext in '' $ac_executable_extensions; do
3815
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3816
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3817
# Check for GNU ac_path_GREP and select it if it is found.
3818
  # Check for GNU $ac_path_GREP
3819
case `"$ac_path_GREP" --version 2>&1` in
3820
*GNU*)
3821
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3822
*)
3823
  ac_count=0
3824
  $as_echo_n 0123456789 >"conftest.in"
3825
  while :
3826
  do
3827
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3828
    mv "conftest.tmp" "conftest.in"
3829
    cp "conftest.in" "conftest.nl"
3830
    $as_echo 'GREP' >> "conftest.nl"
3831
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3832
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3833
    ac_count=`expr $ac_count + 1`
3834
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3835
      # Best one so far, save it but keep looking for a better one
3836
      ac_cv_path_GREP="$ac_path_GREP"
3837
      ac_path_GREP_max=$ac_count
3838
    fi
3839
    # 10*(2^10) chars as input seems more than enough
3840
    test $ac_count -gt 10 && break
3841
  done
3842
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3843
esac
3844
 
3845
      $ac_path_GREP_found && break 3
3846
    done
3847
  done
3848
done
3849
IFS=$as_save_IFS
3850
  if test -z "$ac_cv_path_GREP"; then
3851
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3852
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3853
   { (exit 1); exit 1; }; }
3854
  fi
3855
else
3856
  ac_cv_path_GREP=$GREP
3857
fi
3858
 
3859
fi
3860
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3861
$as_echo "$ac_cv_path_GREP" >&6; }
3862
 GREP="$ac_cv_path_GREP"
3863
 
3864
 
3865
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3866
$as_echo_n "checking for egrep... " >&6; }
3867
if test "${ac_cv_path_EGREP+set}" = set; then
3868
  $as_echo_n "(cached) " >&6
3869
else
3870
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3871
   then ac_cv_path_EGREP="$GREP -E"
3872
   else
3873
     if test -z "$EGREP"; then
3874
  ac_path_EGREP_found=false
3875
  # Loop through the user's path and test for each of PROGNAME-LIST
3876
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878
do
3879
  IFS=$as_save_IFS
3880
  test -z "$as_dir" && as_dir=.
3881
  for ac_prog in egrep; do
3882
    for ac_exec_ext in '' $ac_executable_extensions; do
3883
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3885
# Check for GNU ac_path_EGREP and select it if it is found.
3886
  # Check for GNU $ac_path_EGREP
3887
case `"$ac_path_EGREP" --version 2>&1` in
3888
*GNU*)
3889
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3890
*)
3891
  ac_count=0
3892
  $as_echo_n 0123456789 >"conftest.in"
3893
  while :
3894
  do
3895
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3896
    mv "conftest.tmp" "conftest.in"
3897
    cp "conftest.in" "conftest.nl"
3898
    $as_echo 'EGREP' >> "conftest.nl"
3899
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901
    ac_count=`expr $ac_count + 1`
3902
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903
      # Best one so far, save it but keep looking for a better one
3904
      ac_cv_path_EGREP="$ac_path_EGREP"
3905
      ac_path_EGREP_max=$ac_count
3906
    fi
3907
    # 10*(2^10) chars as input seems more than enough
3908
    test $ac_count -gt 10 && break
3909
  done
3910
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911
esac
3912
 
3913
      $ac_path_EGREP_found && break 3
3914
    done
3915
  done
3916
done
3917
IFS=$as_save_IFS
3918
  if test -z "$ac_cv_path_EGREP"; then
3919
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921
   { (exit 1); exit 1; }; }
3922
  fi
3923
else
3924
  ac_cv_path_EGREP=$EGREP
3925
fi
3926
 
3927
   fi
3928
fi
3929
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3930
$as_echo "$ac_cv_path_EGREP" >&6; }
3931
 EGREP="$ac_cv_path_EGREP"
3932
 
3933
 
3934
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3935
$as_echo_n "checking for fgrep... " >&6; }
3936
if test "${ac_cv_path_FGREP+set}" = set; then
3937
  $as_echo_n "(cached) " >&6
3938
else
3939
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3940
   then ac_cv_path_FGREP="$GREP -F"
3941
   else
3942
     if test -z "$FGREP"; then
3943
  ac_path_FGREP_found=false
3944
  # Loop through the user's path and test for each of PROGNAME-LIST
3945
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3947
do
3948
  IFS=$as_save_IFS
3949
  test -z "$as_dir" && as_dir=.
3950
  for ac_prog in fgrep; do
3951
    for ac_exec_ext in '' $ac_executable_extensions; do
3952
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3953
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3954
# Check for GNU ac_path_FGREP and select it if it is found.
3955
  # Check for GNU $ac_path_FGREP
3956
case `"$ac_path_FGREP" --version 2>&1` in
3957
*GNU*)
3958
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3959
*)
3960
  ac_count=0
3961
  $as_echo_n 0123456789 >"conftest.in"
3962
  while :
3963
  do
3964
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3965
    mv "conftest.tmp" "conftest.in"
3966
    cp "conftest.in" "conftest.nl"
3967
    $as_echo 'FGREP' >> "conftest.nl"
3968
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970
    ac_count=`expr $ac_count + 1`
3971
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3972
      # Best one so far, save it but keep looking for a better one
3973
      ac_cv_path_FGREP="$ac_path_FGREP"
3974
      ac_path_FGREP_max=$ac_count
3975
    fi
3976
    # 10*(2^10) chars as input seems more than enough
3977
    test $ac_count -gt 10 && break
3978
  done
3979
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980
esac
3981
 
3982
      $ac_path_FGREP_found && break 3
3983
    done
3984
  done
3985
done
3986
IFS=$as_save_IFS
3987
  if test -z "$ac_cv_path_FGREP"; then
3988
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3989
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3990
   { (exit 1); exit 1; }; }
3991
  fi
3992
else
3993
  ac_cv_path_FGREP=$FGREP
3994
fi
3995
 
3996
   fi
3997
fi
3998
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3999
$as_echo "$ac_cv_path_FGREP" >&6; }
4000
 FGREP="$ac_cv_path_FGREP"
4001
 
4002
 
4003
test -z "$GREP" && GREP=grep
4004
 
4005
 
4006
 
4007
 
4008
 
4009
 
4010
 
4011
 
4012
 
4013
 
4014
 
4015
 
4016
 
4017
 
4018
 
4019
 
4020
 
4021
 
4022
 
4023
# Check whether --with-gnu-ld was given.
4024
if test "${with_gnu_ld+set}" = set; then
4025
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4026
else
4027
  with_gnu_ld=no
4028
fi
4029
 
4030
ac_prog=ld
4031
if test "$GCC" = yes; then
4032
  # Check if gcc -print-prog-name=ld gives a path.
4033
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4034
$as_echo_n "checking for ld used by $CC... " >&6; }
4035
  case $host in
4036
  *-*-mingw*)
4037
    # gcc leaves a trailing carriage return which upsets mingw
4038
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4039
  *)
4040
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4041
  esac
4042
  case $ac_prog in
4043
    # Accept absolute paths.
4044
    [\\/]* | ?:[\\/]*)
4045
      re_direlt='/[^/][^/]*/\.\./'
4046
      # Canonicalize the pathname of ld
4047
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4048
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4049
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4050
      done
4051
      test -z "$LD" && LD="$ac_prog"
4052
      ;;
4053
  "")
4054
    # If it fails, then pretend we aren't using GCC.
4055
    ac_prog=ld
4056
    ;;
4057
  *)
4058
    # If it is relative, then search for the first ld in PATH.
4059
    with_gnu_ld=unknown
4060
    ;;
4061
  esac
4062
elif test "$with_gnu_ld" = yes; then
4063
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4064
$as_echo_n "checking for GNU ld... " >&6; }
4065
else
4066
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4067
$as_echo_n "checking for non-GNU ld... " >&6; }
4068
fi
4069
if test "${lt_cv_path_LD+set}" = set; then
4070
  $as_echo_n "(cached) " >&6
4071
else
4072
  if test -z "$LD"; then
4073
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4074
  for ac_dir in $PATH; do
4075
    IFS="$lt_save_ifs"
4076
    test -z "$ac_dir" && ac_dir=.
4077
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4078
      lt_cv_path_LD="$ac_dir/$ac_prog"
4079
      # Check to see if the program is GNU ld.  I'd rather use --version,
4080
      # but apparently some variants of GNU ld only accept -v.
4081
      # Break only if it was the GNU/non-GNU ld that we prefer.
4082
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4083
      *GNU* | *'with BFD'*)
4084
	test "$with_gnu_ld" != no && break
4085
	;;
4086
      *)
4087
	test "$with_gnu_ld" != yes && break
4088
	;;
4089
      esac
4090
    fi
4091
  done
4092
  IFS="$lt_save_ifs"
4093
else
4094
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4095
fi
4096
fi
4097
 
4098
LD="$lt_cv_path_LD"
4099
if test -n "$LD"; then
4100
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4101
$as_echo "$LD" >&6; }
4102
else
4103
  { $as_echo "$as_me:$LINENO: result: no" >&5
4104
$as_echo "no" >&6; }
4105
fi
4106
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4107
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4108
   { (exit 1); exit 1; }; }
4109
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4110
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4111
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4112
  $as_echo_n "(cached) " >&6
4113
else
4114
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4115
case `$LD -v 2>&1 </dev/null` in
4116
*GNU* | *'with BFD'*)
4117
  lt_cv_prog_gnu_ld=yes
4118
  ;;
4119
*)
4120
  lt_cv_prog_gnu_ld=no
4121
  ;;
4122
esac
4123
fi
4124
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4125
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4126
with_gnu_ld=$lt_cv_prog_gnu_ld
4127
 
4128
 
4129
 
4130
 
4131
 
4132
 
4133
 
4134
 
4135
 
4136
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4137
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4138
if test "${lt_cv_path_NM+set}" = set; then
4139
  $as_echo_n "(cached) " >&6
4140
else
4141
  if test -n "$NM"; then
4142
  # Let the user override the test.
4143
  lt_cv_path_NM="$NM"
4144
else
4145
  lt_nm_to_check="${ac_tool_prefix}nm"
4146
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4147
    lt_nm_to_check="$lt_nm_to_check nm"
4148
  fi
4149
  for lt_tmp_nm in $lt_nm_to_check; do
4150
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4151
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4152
      IFS="$lt_save_ifs"
4153
      test -z "$ac_dir" && ac_dir=.
4154
      tmp_nm="$ac_dir/$lt_tmp_nm"
4155
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4156
	# Check to see if the nm accepts a BSD-compat flag.
4157
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4158
	#   nm: unknown option "B" ignored
4159
	# Tru64's nm complains that /dev/null is an invalid object file
4160
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4161
	*/dev/null* | *'Invalid file or object type'*)
4162
	  lt_cv_path_NM="$tmp_nm -B"
4163
	  break
4164
	  ;;
4165
	*)
4166
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4167
	  */dev/null*)
4168
	    lt_cv_path_NM="$tmp_nm -p"
4169
	    break
4170
	    ;;
4171
	  *)
4172
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4173
	    continue # so that we can try to find one that supports BSD flags
4174
	    ;;
4175
	  esac
4176
	  ;;
4177
	esac
4178
      fi
4179
    done
4180
    IFS="$lt_save_ifs"
4181
  done
4182
  : ${lt_cv_path_NM=no}
4183
fi
4184
fi
4185
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4186
$as_echo "$lt_cv_path_NM" >&6; }
4187
if test "$lt_cv_path_NM" != "no"; then
4188
  NM="$lt_cv_path_NM"
4189
else
4190
  # Didn't find any BSD compatible name lister, look for dumpbin.
4191
  if test -n "$ac_tool_prefix"; then
4192
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4193
  do
4194
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4197
$as_echo_n "checking for $ac_word... " >&6; }
4198
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4199
  $as_echo_n "(cached) " >&6
4200
else
4201
  if test -n "$DUMPBIN"; then
4202
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4203
else
4204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205
for as_dir in $PATH
4206
do
4207
  IFS=$as_save_IFS
4208
  test -z "$as_dir" && as_dir=.
4209
  for ac_exec_ext in '' $ac_executable_extensions; do
4210
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4212
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213
    break 2
4214
  fi
4215
done
4216
done
4217
IFS=$as_save_IFS
4218
 
4219
fi
4220
fi
4221
DUMPBIN=$ac_cv_prog_DUMPBIN
4222
if test -n "$DUMPBIN"; then
4223
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4224
$as_echo "$DUMPBIN" >&6; }
4225
else
4226
  { $as_echo "$as_me:$LINENO: result: no" >&5
4227
$as_echo "no" >&6; }
4228
fi
4229
 
4230
 
4231
    test -n "$DUMPBIN" && break
4232
  done
4233
fi
4234
if test -z "$DUMPBIN"; then
4235
  ac_ct_DUMPBIN=$DUMPBIN
4236
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4237
do
4238
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4239
set dummy $ac_prog; ac_word=$2
4240
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4241
$as_echo_n "checking for $ac_word... " >&6; }
4242
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4243
  $as_echo_n "(cached) " >&6
4244
else
4245
  if test -n "$ac_ct_DUMPBIN"; then
4246
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4247
else
4248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249
for as_dir in $PATH
4250
do
4251
  IFS=$as_save_IFS
4252
  test -z "$as_dir" && as_dir=.
4253
  for ac_exec_ext in '' $ac_executable_extensions; do
4254
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4256
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257
    break 2
4258
  fi
4259
done
4260
done
4261
IFS=$as_save_IFS
4262
 
4263
fi
4264
fi
4265
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4266
if test -n "$ac_ct_DUMPBIN"; then
4267
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4268
$as_echo "$ac_ct_DUMPBIN" >&6; }
4269
else
4270
  { $as_echo "$as_me:$LINENO: result: no" >&5
4271
$as_echo "no" >&6; }
4272
fi
4273
 
4274
 
4275
  test -n "$ac_ct_DUMPBIN" && break
4276
done
4277
 
4278
  if test "x$ac_ct_DUMPBIN" = x; then
4279
    DUMPBIN=":"
4280
  else
4281
    case $cross_compiling:$ac_tool_warned in
4282
yes:)
4283
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4284
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285
ac_tool_warned=yes ;;
4286
esac
4287
    DUMPBIN=$ac_ct_DUMPBIN
4288
  fi
4289
fi
4290
 
4291
 
4292
  if test "$DUMPBIN" != ":"; then
4293
    NM="$DUMPBIN"
4294
  fi
4295
fi
4296
test -z "$NM" && NM=nm
4297
 
4298
 
4299
 
4300
 
4301
 
4302
 
4303
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4304
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4305
if test "${lt_cv_nm_interface+set}" = set; then
4306
  $as_echo_n "(cached) " >&6
4307
else
4308
  lt_cv_nm_interface="BSD nm"
4309
  echo "int some_variable = 0;" > conftest.$ac_ext
4310
  (eval echo "\"\$as_me:4310: $ac_compile\"" >&5)
4311
  (eval "$ac_compile" 2>conftest.err)
4312
  cat conftest.err >&5
4313
  (eval echo "\"\$as_me:4313: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4314
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4315
  cat conftest.err >&5
4316
  (eval echo "\"\$as_me:4316: output\"" >&5)
4317
  cat conftest.out >&5
4318
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4319
    lt_cv_nm_interface="MS dumpbin"
4320
  fi
4321
  rm -f conftest*
4322
fi
4323
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4324
$as_echo "$lt_cv_nm_interface" >&6; }
4325
 
4326
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4327
$as_echo_n "checking whether ln -s works... " >&6; }
4328
LN_S=$as_ln_s
4329
if test "$LN_S" = "ln -s"; then
4330
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4331
$as_echo "yes" >&6; }
4332
else
4333
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4334
$as_echo "no, using $LN_S" >&6; }
4335
fi
4336
 
4337
# find the maximum length of command line arguments
4338
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4339
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4340
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4341
  $as_echo_n "(cached) " >&6
4342
else
4343
    i=0
4344
  teststring="ABCD"
4345
 
4346
  case $build_os in
4347
  msdosdjgpp*)
4348
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4349
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4350
    # during glob expansion).  Even if it were fixed, the result of this
4351
    # check would be larger than it should be.
4352
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4353
    ;;
4354
 
4355
  gnu*)
4356
    # Under GNU Hurd, this test is not required because there is
4357
    # no limit to the length of command line arguments.
4358
    # Libtool will interpret -1 as no limit whatsoever
4359
    lt_cv_sys_max_cmd_len=-1;
4360
    ;;
4361
 
4362
  cygwin* | mingw* | cegcc*)
4363
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4364
    # about 5 minutes as the teststring grows exponentially.
4365
    # Worse, since 9x/ME are not pre-emptively multitasking,
4366
    # you end up with a "frozen" computer, even though with patience
4367
    # the test eventually succeeds (with a max line length of 256k).
4368
    # Instead, let's just punt: use the minimum linelength reported by
4369
    # all of the supported platforms: 8192 (on NT/2K/XP).
4370
    lt_cv_sys_max_cmd_len=8192;
4371
    ;;
4372
 
4373
  amigaos*)
4374
    # On AmigaOS with pdksh, this test takes hours, literally.
4375
    # So we just punt and use a minimum line length of 8192.
4376
    lt_cv_sys_max_cmd_len=8192;
4377
    ;;
4378
 
4379
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4380
    # This has been around since 386BSD, at least.  Likely further.
4381
    if test -x /sbin/sysctl; then
4382
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4383
    elif test -x /usr/sbin/sysctl; then
4384
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4385
    else
4386
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4387
    fi
4388
    # And add a safety zone
4389
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4390
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4391
    ;;
4392
 
4393
  interix*)
4394
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4395
    lt_cv_sys_max_cmd_len=196608
4396
    ;;
4397
 
4398
  osf*)
4399
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4400
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4401
    # nice to cause kernel panics so lets avoid the loop below.
4402
    # First set a reasonable default.
4403
    lt_cv_sys_max_cmd_len=16384
4404
    #
4405
    if test -x /sbin/sysconfig; then
4406
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4407
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4408
      esac
4409
    fi
4410
    ;;
4411
  sco3.2v5*)
4412
    lt_cv_sys_max_cmd_len=102400
4413
    ;;
4414
  sysv5* | sco5v6* | sysv4.2uw2*)
4415
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4416
    if test -n "$kargmax"; then
4417
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4418
    else
4419
      lt_cv_sys_max_cmd_len=32768
4420
    fi
4421
    ;;
4422
  *)
4423
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4424
    if test -n "$lt_cv_sys_max_cmd_len"; then
4425
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4426
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4427
    else
4428
      # Make teststring a little bigger before we do anything with it.
4429
      # a 1K string should be a reasonable start.
4430
      for i in 1 2 3 4 5 6 7 8 ; do
4431
        teststring=$teststring$teststring
4432
      done
4433
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4434
      # If test is not a shell built-in, we'll probably end up computing a
4435
      # maximum length that is only half of the actual maximum length, but
4436
      # we can't tell.
4437
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4438
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4439
	      test $i != 17 # 1/2 MB should be enough
4440
      do
4441
        i=`expr $i + 1`
4442
        teststring=$teststring$teststring
4443
      done
4444
      # Only check the string length outside the loop.
4445
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4446
      teststring=
4447
      # Add a significant safety factor because C++ compilers can tack on
4448
      # massive amounts of additional arguments before passing them to the
4449
      # linker.  It appears as though 1/2 is a usable value.
4450
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4451
    fi
4452
    ;;
4453
  esac
4454
 
4455
fi
4456
 
4457
if test -n $lt_cv_sys_max_cmd_len ; then
4458
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4459
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4460
else
4461
  { $as_echo "$as_me:$LINENO: result: none" >&5
4462
$as_echo "none" >&6; }
4463
fi
4464
max_cmd_len=$lt_cv_sys_max_cmd_len
4465
 
4466
 
4467
 
4468
 
4469
 
4470
 
4471
: ${CP="cp -f"}
4472
: ${MV="mv -f"}
4473
: ${RM="rm -f"}
4474
 
4475
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4476
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4477
# Try some XSI features
4478
xsi_shell=no
4479
( _lt_dummy="a/b/c"
4480
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4481
      = c,a/b,, \
4482
    && eval 'test $(( 1 + 1 )) -eq 2 \
4483
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4484
  && xsi_shell=yes
4485
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4486
$as_echo "$xsi_shell" >&6; }
4487
 
4488
 
4489
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4490
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4491
lt_shell_append=no
4492
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4493
    >/dev/null 2>&1 \
4494
  && lt_shell_append=yes
4495
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4496
$as_echo "$lt_shell_append" >&6; }
4497
 
4498
 
4499
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4500
  lt_unset=unset
4501
else
4502
  lt_unset=false
4503
fi
4504
 
4505
 
4506
 
4507
 
4508
 
4509
# test EBCDIC or ASCII
4510
case `echo X|tr X '\101'` in
4511
 A) # ASCII based system
4512
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4513
  lt_SP2NL='tr \040 \012'
4514
  lt_NL2SP='tr \015\012 \040\040'
4515
  ;;
4516
 *) # EBCDIC based system
4517
  lt_SP2NL='tr \100 \n'
4518
  lt_NL2SP='tr \r\n \100\100'
4519
  ;;
4520
esac
4521
 
4522
 
4523
 
4524
 
4525
 
4526
 
4527
 
4528
 
4529
 
4530
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4531
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4532
if test "${lt_cv_ld_reload_flag+set}" = set; then
4533
  $as_echo_n "(cached) " >&6
4534
else
4535
  lt_cv_ld_reload_flag='-r'
4536
fi
4537
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4538
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4539
reload_flag=$lt_cv_ld_reload_flag
4540
case $reload_flag in
4541
"" | " "*) ;;
4542
*) reload_flag=" $reload_flag" ;;
4543
esac
4544
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4545
case $host_os in
4546
  darwin*)
4547
    if test "$GCC" = yes; then
4548
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4549
    else
4550
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4551
    fi
4552
    ;;
4553
esac
4554
 
4555
 
4556
 
4557
 
4558
 
4559
 
4560
 
4561
 
4562
 
4563
if test -n "$ac_tool_prefix"; then
4564
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4565
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4566
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4567
$as_echo_n "checking for $ac_word... " >&6; }
4568
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4569
  $as_echo_n "(cached) " >&6
4570
else
4571
  if test -n "$OBJDUMP"; then
4572
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4573
else
4574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575
for as_dir in $PATH
4576
do
4577
  IFS=$as_save_IFS
4578
  test -z "$as_dir" && as_dir=.
4579
  for ac_exec_ext in '' $ac_executable_extensions; do
4580
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4582
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583
    break 2
4584
  fi
4585
done
4586
done
4587
IFS=$as_save_IFS
4588
 
4589
fi
4590
fi
4591
OBJDUMP=$ac_cv_prog_OBJDUMP
4592
if test -n "$OBJDUMP"; then
4593
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4594
$as_echo "$OBJDUMP" >&6; }
4595
else
4596
  { $as_echo "$as_me:$LINENO: result: no" >&5
4597
$as_echo "no" >&6; }
4598
fi
4599
 
4600
 
4601
fi
4602
if test -z "$ac_cv_prog_OBJDUMP"; then
4603
  ac_ct_OBJDUMP=$OBJDUMP
4604
  # Extract the first word of "objdump", so it can be a program name with args.
4605
set dummy objdump; ac_word=$2
4606
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4607
$as_echo_n "checking for $ac_word... " >&6; }
4608
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4609
  $as_echo_n "(cached) " >&6
4610
else
4611
  if test -n "$ac_ct_OBJDUMP"; then
4612
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4613
else
4614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615
for as_dir in $PATH
4616
do
4617
  IFS=$as_save_IFS
4618
  test -z "$as_dir" && as_dir=.
4619
  for ac_exec_ext in '' $ac_executable_extensions; do
4620
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4622
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623
    break 2
4624
  fi
4625
done
4626
done
4627
IFS=$as_save_IFS
4628
 
4629
fi
4630
fi
4631
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4632
if test -n "$ac_ct_OBJDUMP"; then
4633
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4634
$as_echo "$ac_ct_OBJDUMP" >&6; }
4635
else
4636
  { $as_echo "$as_me:$LINENO: result: no" >&5
4637
$as_echo "no" >&6; }
4638
fi
4639
 
4640
  if test "x$ac_ct_OBJDUMP" = x; then
4641
    OBJDUMP="false"
4642
  else
4643
    case $cross_compiling:$ac_tool_warned in
4644
yes:)
4645
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4646
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647
ac_tool_warned=yes ;;
4648
esac
4649
    OBJDUMP=$ac_ct_OBJDUMP
4650
  fi
4651
else
4652
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4653
fi
4654
 
4655
test -z "$OBJDUMP" && OBJDUMP=objdump
4656
 
4657
 
4658
 
4659
 
4660
 
4661
 
4662
 
4663
 
4664
 
4665
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4666
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4667
if test "${lt_cv_deplibs_check_method+set}" = set; then
4668
  $as_echo_n "(cached) " >&6
4669
else
4670
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4671
lt_cv_file_magic_test_file=
4672
lt_cv_deplibs_check_method='unknown'
4673
# Need to set the preceding variable on all platforms that support
4674
# interlibrary dependencies.
4675
# 'none' -- dependencies not supported.
4676
# `unknown' -- same as none, but documents that we really don't know.
4677
# 'pass_all' -- all dependencies passed with no checks.
4678
# 'test_compile' -- check by making test program.
4679
# 'file_magic [[regex]]' -- check by looking for files in library path
4680
# which responds to the $file_magic_cmd with a given extended regex.
4681
# If you have `file' or equivalent on your system and you're not sure
4682
# whether `pass_all' will *always* work, you probably want this one.
4683
 
4684
case $host_os in
4685
aix[4-9]*)
4686
  lt_cv_deplibs_check_method=pass_all
4687
  ;;
4688
 
4689
beos*)
4690
  lt_cv_deplibs_check_method=pass_all
4691
  ;;
4692
 
4693
bsdi[45]*)
4694
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4695
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4696
  lt_cv_file_magic_test_file=/shlib/libc.so
4697
  ;;
4698
 
4699
cygwin*)
4700
  # func_win32_libid is a shell function defined in ltmain.sh
4701
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4702
  lt_cv_file_magic_cmd='func_win32_libid'
4703
  ;;
4704
 
4705
mingw* | pw32*)
4706
  # Base MSYS/MinGW do not provide the 'file' command needed by
4707
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4708
  # unless we find 'file', for example because we are cross-compiling.
4709
  if ( file / ) >/dev/null 2>&1; then
4710
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4711
    lt_cv_file_magic_cmd='func_win32_libid'
4712
  else
4713
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4714
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4715
  fi
4716
  ;;
4717
 
4718
cegcc)
4719
  # use the weaker test based on 'objdump'. See mingw*.
4720
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4721
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4722
  ;;
4723
 
4724
darwin* | rhapsody*)
4725
  lt_cv_deplibs_check_method=pass_all
4726
  ;;
4727
 
4728
freebsd* | dragonfly*)
4729
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4730
    case $host_cpu in
4731
    i*86 )
4732
      # Not sure whether the presence of OpenBSD here was a mistake.
4733
      # Let's accept both of them until this is cleared up.
4734
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4735
      lt_cv_file_magic_cmd=/usr/bin/file
4736
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4737
      ;;
4738
    esac
4739
  else
4740
    lt_cv_deplibs_check_method=pass_all
4741
  fi
4742
  ;;
4743
 
4744
gnu*)
4745
  lt_cv_deplibs_check_method=pass_all
4746
  ;;
4747
 
4748
hpux10.20* | hpux11*)
4749
  lt_cv_file_magic_cmd=/usr/bin/file
4750
  case $host_cpu in
4751
  ia64*)
4752
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4753
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4754
    ;;
4755
  hppa*64*)
4756
    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]'
4757
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4758
    ;;
4759
  *)
4760
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4761
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4762
    ;;
4763
  esac
4764
  ;;
4765
 
4766
interix[3-9]*)
4767
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4768
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4769
  ;;
4770
 
4771
irix5* | irix6* | nonstopux*)
4772
  case $LD in
4773
  *-32|*"-32 ") libmagic=32-bit;;
4774
  *-n32|*"-n32 ") libmagic=N32;;
4775
  *-64|*"-64 ") libmagic=64-bit;;
4776
  *) libmagic=never-match;;
4777
  esac
4778
  lt_cv_deplibs_check_method=pass_all
4779
  ;;
4780
 
4781
# This must be Linux ELF.
4782
linux* | k*bsd*-gnu)
4783
  lt_cv_deplibs_check_method=pass_all
4784
  ;;
4785
 
4786
netbsd* | netbsdelf*-gnu)
4787
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4788
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4789
  else
4790
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4791
  fi
4792
  ;;
4793
 
4794
newos6*)
4795
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4796
  lt_cv_file_magic_cmd=/usr/bin/file
4797
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4798
  ;;
4799
 
4800
*nto* | *qnx*)
4801
  lt_cv_deplibs_check_method=pass_all
4802
  ;;
4803
 
4804
openbsd*)
4805
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4806
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4807
  else
4808
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4809
  fi
4810
  ;;
4811
 
4812
osf3* | osf4* | osf5*)
4813
  lt_cv_deplibs_check_method=pass_all
4814
  ;;
4815
 
4816
rdos*)
4817
  lt_cv_deplibs_check_method=pass_all
4818
  ;;
4819
 
4820
solaris*)
4821
  lt_cv_deplibs_check_method=pass_all
4822
  ;;
4823
 
4824
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4825
  lt_cv_deplibs_check_method=pass_all
4826
  ;;
4827
 
4828
sysv4 | sysv4.3*)
4829
  case $host_vendor in
4830
  motorola)
4831
    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]'
4832
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4833
    ;;
4834
  ncr)
4835
    lt_cv_deplibs_check_method=pass_all
4836
    ;;
4837
  sequent)
4838
    lt_cv_file_magic_cmd='/bin/file'
4839
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4840
    ;;
4841
  sni)
4842
    lt_cv_file_magic_cmd='/bin/file'
4843
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4844
    lt_cv_file_magic_test_file=/lib/libc.so
4845
    ;;
4846
  siemens)
4847
    lt_cv_deplibs_check_method=pass_all
4848
    ;;
4849
  pc)
4850
    lt_cv_deplibs_check_method=pass_all
4851
    ;;
4852
  esac
4853
  ;;
4854
 
4855
tpf*)
4856
  lt_cv_deplibs_check_method=pass_all
4857
  ;;
4858
esac
4859
 
4860
fi
4861
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4862
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4863
file_magic_cmd=$lt_cv_file_magic_cmd
4864
deplibs_check_method=$lt_cv_deplibs_check_method
4865
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4866
 
4867
 
4868
 
4869
 
4870
 
4871
 
4872
 
4873
 
4874
 
4875
 
4876
 
4877
 
4878
if test -n "$ac_tool_prefix"; then
4879
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4880
set dummy ${ac_tool_prefix}ar; ac_word=$2
4881
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4882
$as_echo_n "checking for $ac_word... " >&6; }
4883
if test "${ac_cv_prog_AR+set}" = set; then
4884
  $as_echo_n "(cached) " >&6
4885
else
4886
  if test -n "$AR"; then
4887
  ac_cv_prog_AR="$AR" # Let the user override the test.
4888
else
4889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890
for as_dir in $PATH
4891
do
4892
  IFS=$as_save_IFS
4893
  test -z "$as_dir" && as_dir=.
4894
  for ac_exec_ext in '' $ac_executable_extensions; do
4895
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4897
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898
    break 2
4899
  fi
4900
done
4901
done
4902
IFS=$as_save_IFS
4903
 
4904
fi
4905
fi
4906
AR=$ac_cv_prog_AR
4907
if test -n "$AR"; then
4908
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4909
$as_echo "$AR" >&6; }
4910
else
4911
  { $as_echo "$as_me:$LINENO: result: no" >&5
4912
$as_echo "no" >&6; }
4913
fi
4914
 
4915
 
4916
fi
4917
if test -z "$ac_cv_prog_AR"; then
4918
  ac_ct_AR=$AR
4919
  # Extract the first word of "ar", so it can be a program name with args.
4920
set dummy ar; ac_word=$2
4921
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4922
$as_echo_n "checking for $ac_word... " >&6; }
4923
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4924
  $as_echo_n "(cached) " >&6
4925
else
4926
  if test -n "$ac_ct_AR"; then
4927
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4928
else
4929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930
for as_dir in $PATH
4931
do
4932
  IFS=$as_save_IFS
4933
  test -z "$as_dir" && as_dir=.
4934
  for ac_exec_ext in '' $ac_executable_extensions; do
4935
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936
    ac_cv_prog_ac_ct_AR="ar"
4937
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938
    break 2
4939
  fi
4940
done
4941
done
4942
IFS=$as_save_IFS
4943
 
4944
fi
4945
fi
4946
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4947
if test -n "$ac_ct_AR"; then
4948
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4949
$as_echo "$ac_ct_AR" >&6; }
4950
else
4951
  { $as_echo "$as_me:$LINENO: result: no" >&5
4952
$as_echo "no" >&6; }
4953
fi
4954
 
4955
  if test "x$ac_ct_AR" = x; then
4956
    AR="false"
4957
  else
4958
    case $cross_compiling:$ac_tool_warned in
4959
yes:)
4960
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4961
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962
ac_tool_warned=yes ;;
4963
esac
4964
    AR=$ac_ct_AR
4965
  fi
4966
else
4967
  AR="$ac_cv_prog_AR"
4968
fi
4969
 
4970
test -z "$AR" && AR=ar
4971
test -z "$AR_FLAGS" && AR_FLAGS=cru
4972
 
4973
 
4974
 
4975
 
4976
 
4977
 
4978
 
4979
 
4980
 
4981
 
4982
 
4983
if test -n "$ac_tool_prefix"; then
4984
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4985
set dummy ${ac_tool_prefix}strip; ac_word=$2
4986
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4987
$as_echo_n "checking for $ac_word... " >&6; }
4988
if test "${ac_cv_prog_STRIP+set}" = set; then
4989
  $as_echo_n "(cached) " >&6
4990
else
4991
  if test -n "$STRIP"; then
4992
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4993
else
4994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995
for as_dir in $PATH
4996
do
4997
  IFS=$as_save_IFS
4998
  test -z "$as_dir" && as_dir=.
4999
  for ac_exec_ext in '' $ac_executable_extensions; do
5000
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5002
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003
    break 2
5004
  fi
5005
done
5006
done
5007
IFS=$as_save_IFS
5008
 
5009
fi
5010
fi
5011
STRIP=$ac_cv_prog_STRIP
5012
if test -n "$STRIP"; then
5013
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5014
$as_echo "$STRIP" >&6; }
5015
else
5016
  { $as_echo "$as_me:$LINENO: result: no" >&5
5017
$as_echo "no" >&6; }
5018
fi
5019
 
5020
 
5021
fi
5022
if test -z "$ac_cv_prog_STRIP"; then
5023
  ac_ct_STRIP=$STRIP
5024
  # Extract the first word of "strip", so it can be a program name with args.
5025
set dummy strip; ac_word=$2
5026
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5027
$as_echo_n "checking for $ac_word... " >&6; }
5028
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5029
  $as_echo_n "(cached) " >&6
5030
else
5031
  if test -n "$ac_ct_STRIP"; then
5032
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5033
else
5034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035
for as_dir in $PATH
5036
do
5037
  IFS=$as_save_IFS
5038
  test -z "$as_dir" && as_dir=.
5039
  for ac_exec_ext in '' $ac_executable_extensions; do
5040
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041
    ac_cv_prog_ac_ct_STRIP="strip"
5042
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043
    break 2
5044
  fi
5045
done
5046
done
5047
IFS=$as_save_IFS
5048
 
5049
fi
5050
fi
5051
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5052
if test -n "$ac_ct_STRIP"; then
5053
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5054
$as_echo "$ac_ct_STRIP" >&6; }
5055
else
5056
  { $as_echo "$as_me:$LINENO: result: no" >&5
5057
$as_echo "no" >&6; }
5058
fi
5059
 
5060
  if test "x$ac_ct_STRIP" = x; then
5061
    STRIP=":"
5062
  else
5063
    case $cross_compiling:$ac_tool_warned in
5064
yes:)
5065
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5066
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067
ac_tool_warned=yes ;;
5068
esac
5069
    STRIP=$ac_ct_STRIP
5070
  fi
5071
else
5072
  STRIP="$ac_cv_prog_STRIP"
5073
fi
5074
 
5075
test -z "$STRIP" && STRIP=:
5076
 
5077
 
5078
 
5079
 
5080
 
5081
 
5082
if test -n "$ac_tool_prefix"; then
5083
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5084
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5085
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086
$as_echo_n "checking for $ac_word... " >&6; }
5087
if test "${ac_cv_prog_RANLIB+set}" = set; then
5088
  $as_echo_n "(cached) " >&6
5089
else
5090
  if test -n "$RANLIB"; then
5091
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5092
else
5093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094
for as_dir in $PATH
5095
do
5096
  IFS=$as_save_IFS
5097
  test -z "$as_dir" && as_dir=.
5098
  for ac_exec_ext in '' $ac_executable_extensions; do
5099
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5101
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102
    break 2
5103
  fi
5104
done
5105
done
5106
IFS=$as_save_IFS
5107
 
5108
fi
5109
fi
5110
RANLIB=$ac_cv_prog_RANLIB
5111
if test -n "$RANLIB"; then
5112
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5113
$as_echo "$RANLIB" >&6; }
5114
else
5115
  { $as_echo "$as_me:$LINENO: result: no" >&5
5116
$as_echo "no" >&6; }
5117
fi
5118
 
5119
 
5120
fi
5121
if test -z "$ac_cv_prog_RANLIB"; then
5122
  ac_ct_RANLIB=$RANLIB
5123
  # Extract the first word of "ranlib", so it can be a program name with args.
5124
set dummy ranlib; ac_word=$2
5125
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5126
$as_echo_n "checking for $ac_word... " >&6; }
5127
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5128
  $as_echo_n "(cached) " >&6
5129
else
5130
  if test -n "$ac_ct_RANLIB"; then
5131
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5132
else
5133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134
for as_dir in $PATH
5135
do
5136
  IFS=$as_save_IFS
5137
  test -z "$as_dir" && as_dir=.
5138
  for ac_exec_ext in '' $ac_executable_extensions; do
5139
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5141
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142
    break 2
5143
  fi
5144
done
5145
done
5146
IFS=$as_save_IFS
5147
 
5148
fi
5149
fi
5150
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5151
if test -n "$ac_ct_RANLIB"; then
5152
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5153
$as_echo "$ac_ct_RANLIB" >&6; }
5154
else
5155
  { $as_echo "$as_me:$LINENO: result: no" >&5
5156
$as_echo "no" >&6; }
5157
fi
5158
 
5159
  if test "x$ac_ct_RANLIB" = x; then
5160
    RANLIB=":"
5161
  else
5162
    case $cross_compiling:$ac_tool_warned in
5163
yes:)
5164
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5165
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166
ac_tool_warned=yes ;;
5167
esac
5168
    RANLIB=$ac_ct_RANLIB
5169
  fi
5170
else
5171
  RANLIB="$ac_cv_prog_RANLIB"
5172
fi
5173
 
5174
test -z "$RANLIB" && RANLIB=:
5175
 
5176
 
5177
 
5178
 
5179
 
5180
 
5181
# Determine commands to create old-style static archives.
5182
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5183
old_postinstall_cmds='chmod 644 $oldlib'
5184
old_postuninstall_cmds=
5185
 
5186
if test -n "$RANLIB"; then
5187
  case $host_os in
5188
  openbsd*)
5189
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5190
    ;;
5191
  *)
5192
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5193
    ;;
5194
  esac
5195
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5196
fi
5197
 
5198
 
5199
 
5200
 
5201
 
5202
 
5203
 
5204
 
5205
 
5206
 
5207
 
5208
 
5209
 
5210
 
5211
 
5212
 
5213
 
5214
 
5215
 
5216
 
5217
 
5218
 
5219
 
5220
 
5221
 
5222
 
5223
 
5224
 
5225
 
5226
 
5227
 
5228
 
5229
 
5230
 
5231
# If no C compiler was specified, use CC.
5232
LTCC=${LTCC-"$CC"}
5233
 
5234
# If no C compiler flags were specified, use CFLAGS.
5235
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5236
 
5237
# Allow CC to be a program name with arguments.
5238
compiler=$CC
5239
 
5240
 
5241
# Check for command to grab the raw symbol name followed by C symbol from nm.
5242
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5243
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5244
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5245
  $as_echo_n "(cached) " >&6
5246
else
5247
 
5248
# These are sane defaults that work on at least a few old systems.
5249
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5250
 
5251
# Character class describing NM global symbol codes.
5252
symcode='[BCDEGRST]'
5253
 
5254
# Regexp to match symbols that can be accessed directly from C.
5255
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5256
 
5257
# Define system-specific variables.
5258
case $host_os in
5259
aix*)
5260
  symcode='[BCDT]'
5261
  ;;
5262
cygwin* | mingw* | pw32* | cegcc*)
5263
  symcode='[ABCDGISTW]'
5264
  ;;
5265
hpux*)
5266
  if test "$host_cpu" = ia64; then
5267
    symcode='[ABCDEGRST]'
5268
  fi
5269
  ;;
5270
irix* | nonstopux*)
5271
  symcode='[BCDEGRST]'
5272
  ;;
5273
osf*)
5274
  symcode='[BCDEGQRST]'
5275
  ;;
5276
solaris*)
5277
  symcode='[BDRT]'
5278
  ;;
5279
sco3.2v5*)
5280
  symcode='[DT]'
5281
  ;;
5282
sysv4.2uw2*)
5283
  symcode='[DT]'
5284
  ;;
5285
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5286
  symcode='[ABDT]'
5287
  ;;
5288
sysv4)
5289
  symcode='[DFNSTU]'
5290
  ;;
5291
esac
5292
 
5293
# If we're using GNU nm, then use its standard symbol codes.
5294
case `$NM -V 2>&1` in
5295
*GNU* | *'with BFD'*)
5296
  symcode='[ABCDGIRSTW]' ;;
5297
esac
5298
 
5299
# Transform an extracted symbol line into a proper C declaration.
5300
# Some systems (esp. on ia64) link data and code symbols differently,
5301
# so use this general approach.
5302
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5303
 
5304
# Transform an extracted symbol line into symbol name and symbol address
5305
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5306
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'"
5307
 
5308
# Handle CRLF in mingw tool chain
5309
opt_cr=
5310
case $build_os in
5311
mingw*)
5312
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5313
  ;;
5314
esac
5315
 
5316
# Try without a prefix underscore, then with it.
5317
for ac_symprfx in "" "_"; do
5318
 
5319
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5320
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5321
 
5322
  # Write the raw and C identifiers.
5323
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5324
    # Fake it for dumpbin and say T for any non-static function
5325
    # and D for any global variable.
5326
    # Also find C++ and __fastcall symbols from MSVC++,
5327
    # which start with @ or ?.
5328
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5329
"     {last_section=section; section=\$ 3};"\
5330
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5331
"     \$ 0!~/External *\|/{next};"\
5332
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5333
"     {if(hide[section]) next};"\
5334
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5335
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5336
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5337
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5338
"     ' prfx=^$ac_symprfx"
5339
  else
5340
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5341
  fi
5342
 
5343
  # Check to see that the pipe works correctly.
5344
  pipe_works=no
5345
 
5346
  rm -f conftest*
5347
  cat > conftest.$ac_ext <<_LT_EOF
5348
#ifdef __cplusplus
5349
extern "C" {
5350
#endif
5351
char nm_test_var;
5352
void nm_test_func(void);
5353
void nm_test_func(void){}
5354
#ifdef __cplusplus
5355
}
5356
#endif
5357
int main(){nm_test_var='a';nm_test_func();return(0);}
5358
_LT_EOF
5359
 
5360
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361
  (eval $ac_compile) 2>&5
5362
  ac_status=$?
5363
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364
  (exit $ac_status); }; then
5365
    # Now try to grab the symbols.
5366
    nlist=conftest.nm
5367
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5368
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5369
  ac_status=$?
5370
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371
  (exit $ac_status); } && test -s "$nlist"; then
5372
      # Try sorting and uniquifying the output.
5373
      if sort "$nlist" | uniq > "$nlist"T; then
5374
	mv -f "$nlist"T "$nlist"
5375
      else
5376
	rm -f "$nlist"T
5377
      fi
5378
 
5379
      # Make sure that we snagged all the symbols we need.
5380
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5381
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5382
	  cat <<_LT_EOF > conftest.$ac_ext
5383
#ifdef __cplusplus
5384
extern "C" {
5385
#endif
5386
 
5387
_LT_EOF
5388
	  # Now generate the symbol file.
5389
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5390
 
5391
	  cat <<_LT_EOF >> conftest.$ac_ext
5392
 
5393
/* The mapping between symbol names and symbols.  */
5394
const struct {
5395
  const char *name;
5396
  void       *address;
5397
}
5398
lt__PROGRAM__LTX_preloaded_symbols[] =
5399
{
5400
  { "@PROGRAM@", (void *) 0 },
5401
_LT_EOF
5402
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5403
	  cat <<\_LT_EOF >> conftest.$ac_ext
5404
  {0, (void *) 0}
5405
};
5406
 
5407
/* This works around a problem in FreeBSD linker */
5408
#ifdef FREEBSD_WORKAROUND
5409
static const void *lt_preloaded_setup() {
5410
  return lt__PROGRAM__LTX_preloaded_symbols;
5411
}
5412
#endif
5413
 
5414
#ifdef __cplusplus
5415
}
5416
#endif
5417
_LT_EOF
5418
	  # Now try linking the two files.
5419
	  mv conftest.$ac_objext conftstm.$ac_objext
5420
	  lt_save_LIBS="$LIBS"
5421
	  lt_save_CFLAGS="$CFLAGS"
5422
	  LIBS="conftstm.$ac_objext"
5423
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5424
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425
  (eval $ac_link) 2>&5
5426
  ac_status=$?
5427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5429
	    pipe_works=yes
5430
	  fi
5431
	  LIBS="$lt_save_LIBS"
5432
	  CFLAGS="$lt_save_CFLAGS"
5433
	else
5434
	  echo "cannot find nm_test_func in $nlist" >&5
5435
	fi
5436
      else
5437
	echo "cannot find nm_test_var in $nlist" >&5
5438
      fi
5439
    else
5440
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5441
    fi
5442
  else
5443
    echo "$progname: failed program was:" >&5
5444
    cat conftest.$ac_ext >&5
5445
  fi
5446
  rm -rf conftest* conftst*
5447
 
5448
  # Do not use the global_symbol_pipe unless it works.
5449
  if test "$pipe_works" = yes; then
5450
    break
5451
  else
5452
    lt_cv_sys_global_symbol_pipe=
5453
  fi
5454
done
5455
 
5456
fi
5457
 
5458
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5459
  lt_cv_sys_global_symbol_to_cdecl=
5460
fi
5461
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5462
  { $as_echo "$as_me:$LINENO: result: failed" >&5
5463
$as_echo "failed" >&6; }
5464
else
5465
  { $as_echo "$as_me:$LINENO: result: ok" >&5
5466
$as_echo "ok" >&6; }
5467
fi
5468
 
5469
 
5470
 
5471
 
5472
 
5473
 
5474
 
5475
 
5476
 
5477
 
5478
 
5479
 
5480
 
5481
 
5482
 
5483
 
5484
 
5485
 
5486
 
5487
 
5488
 
5489
 
5490
 
5491
# Check whether --enable-libtool-lock was given.
5492
if test "${enable_libtool_lock+set}" = set; then
5493
  enableval=$enable_libtool_lock;
5494
fi
5495
 
5496
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5497
 
5498
# Some flags need to be propagated to the compiler or linker for good
5499
# libtool support.
5500
case $host in
5501
ia64-*-hpux*)
5502
  # Find out which ABI we are using.
5503
  echo 'int i;' > conftest.$ac_ext
5504
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505
  (eval $ac_compile) 2>&5
5506
  ac_status=$?
5507
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508
  (exit $ac_status); }; then
5509
    case `/usr/bin/file conftest.$ac_objext` in
5510
      *ELF-32*)
5511
	HPUX_IA64_MODE="32"
5512
	;;
5513
      *ELF-64*)
5514
	HPUX_IA64_MODE="64"
5515
	;;
5516
    esac
5517
  fi
5518
  rm -rf conftest*
5519
  ;;
5520
*-*-irix6*)
5521
  # Find out which ABI we are using.
5522
  echo '#line 5522 "configure"' > conftest.$ac_ext
5523
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524
  (eval $ac_compile) 2>&5
5525
  ac_status=$?
5526
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527
  (exit $ac_status); }; then
5528
    if test "$lt_cv_prog_gnu_ld" = yes; then
5529
      case `/usr/bin/file conftest.$ac_objext` in
5530
	*32-bit*)
5531
	  LD="${LD-ld} -melf32bsmip"
5532
	  ;;
5533
	*N32*)
5534
	  LD="${LD-ld} -melf32bmipn32"
5535
	  ;;
5536
	*64-bit*)
5537
	  LD="${LD-ld} -melf64bmip"
5538
	;;
5539
      esac
5540
    else
5541
      case `/usr/bin/file conftest.$ac_objext` in
5542
	*32-bit*)
5543
	  LD="${LD-ld} -32"
5544
	  ;;
5545
	*N32*)
5546
	  LD="${LD-ld} -n32"
5547
	  ;;
5548
	*64-bit*)
5549
	  LD="${LD-ld} -64"
5550
	  ;;
5551
      esac
5552
    fi
5553
  fi
5554
  rm -rf conftest*
5555
  ;;
5556
 
5557
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5558
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5559
  # Find out which ABI we are using.
5560
  echo 'int i;' > conftest.$ac_ext
5561
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562
  (eval $ac_compile) 2>&5
5563
  ac_status=$?
5564
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565
  (exit $ac_status); }; then
5566
    case `/usr/bin/file conftest.o` in
5567
      *32-bit*)
5568
	case $host in
5569
	  x86_64-*kfreebsd*-gnu)
5570
	    LD="${LD-ld} -m elf_i386_fbsd"
5571
	    ;;
5572
	  x86_64-*linux*)
5573
	    LD="${LD-ld} -m elf_i386"
5574
	    ;;
5575
	  ppc64-*linux*|powerpc64-*linux*)
5576
	    LD="${LD-ld} -m elf32ppclinux"
5577
	    ;;
5578
	  s390x-*linux*)
5579
	    LD="${LD-ld} -m elf_s390"
5580
	    ;;
5581
	  sparc64-*linux*)
5582
	    LD="${LD-ld} -m elf32_sparc"
5583
	    ;;
5584
	esac
5585
	;;
5586
      *64-bit*)
5587
	case $host in
5588
	  x86_64-*kfreebsd*-gnu)
5589
	    LD="${LD-ld} -m elf_x86_64_fbsd"
5590
	    ;;
5591
	  x86_64-*linux*)
5592
	    LD="${LD-ld} -m elf_x86_64"
5593
	    ;;
5594
	  ppc*-*linux*|powerpc*-*linux*)
5595
	    LD="${LD-ld} -m elf64ppc"
5596
	    ;;
5597
	  s390*-*linux*|s390*-*tpf*)
5598
	    LD="${LD-ld} -m elf64_s390"
5599
	    ;;
5600
	  sparc*-*linux*)
5601
	    LD="${LD-ld} -m elf64_sparc"
5602
	    ;;
5603
	esac
5604
	;;
5605
    esac
5606
  fi
5607
  rm -rf conftest*
5608
  ;;
5609
 
5610
*-*-sco3.2v5*)
5611
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5612
  SAVE_CFLAGS="$CFLAGS"
5613
  CFLAGS="$CFLAGS -belf"
5614
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5615
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5616
if test "${lt_cv_cc_needs_belf+set}" = set; then
5617
  $as_echo_n "(cached) " >&6
5618
else
5619
  ac_ext=c
5620
ac_cpp='$CPP $CPPFLAGS'
5621
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624
 
5625
     cat >conftest.$ac_ext <<_ACEOF
5626
/* confdefs.h.  */
5627
_ACEOF
5628
cat confdefs.h >>conftest.$ac_ext
5629
cat >>conftest.$ac_ext <<_ACEOF
5630
/* end confdefs.h.  */
5631
 
5632
int
5633
main ()
5634
{
5635
 
5636
  ;
5637
  return 0;
5638
}
5639
_ACEOF
5640
rm -f conftest.$ac_objext conftest$ac_exeext
5641
if { (ac_try="$ac_link"
5642
case "(($ac_try" in
5643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644
  *) ac_try_echo=$ac_try;;
5645
esac
5646
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5647
$as_echo "$ac_try_echo") >&5
5648
  (eval "$ac_link") 2>conftest.er1
5649
  ac_status=$?
5650
  grep -v '^ *+' conftest.er1 >conftest.err
5651
  rm -f conftest.er1
5652
  cat conftest.err >&5
5653
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
  (exit $ac_status); } && {
5655
	 test -z "$ac_c_werror_flag" ||
5656
	 test ! -s conftest.err
5657
       } && test -s conftest$ac_exeext && {
5658
	 test "$cross_compiling" = yes ||
5659
	 $as_test_x conftest$ac_exeext
5660
       }; then
5661
  lt_cv_cc_needs_belf=yes
5662
else
5663
  $as_echo "$as_me: failed program was:" >&5
5664
sed 's/^/| /' conftest.$ac_ext >&5
5665
 
5666
	lt_cv_cc_needs_belf=no
5667
fi
5668
 
5669
rm -rf conftest.dSYM
5670
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5671
      conftest$ac_exeext conftest.$ac_ext
5672
     ac_ext=c
5673
ac_cpp='$CPP $CPPFLAGS'
5674
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677
 
5678
fi
5679
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5680
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5681
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5682
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5683
    CFLAGS="$SAVE_CFLAGS"
5684
  fi
5685
  ;;
5686
sparc*-*solaris*)
5687
  # Find out which ABI we are using.
5688
  echo 'int i;' > conftest.$ac_ext
5689
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690
  (eval $ac_compile) 2>&5
5691
  ac_status=$?
5692
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693
  (exit $ac_status); }; then
5694
    case `/usr/bin/file conftest.o` in
5695
    *64-bit*)
5696
      case $lt_cv_prog_gnu_ld in
5697
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5698
      *)
5699
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5700
	  LD="${LD-ld} -64"
5701
	fi
5702
	;;
5703
      esac
5704
      ;;
5705
    esac
5706
  fi
5707
  rm -rf conftest*
5708
  ;;
5709
esac
5710
 
5711
need_locks="$enable_libtool_lock"
5712
 
5713
 
5714
  case $host_os in
5715
    rhapsody* | darwin*)
5716
    if test -n "$ac_tool_prefix"; then
5717
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5718
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5719
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5720
$as_echo_n "checking for $ac_word... " >&6; }
5721
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5722
  $as_echo_n "(cached) " >&6
5723
else
5724
  if test -n "$DSYMUTIL"; then
5725
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5726
else
5727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728
for as_dir in $PATH
5729
do
5730
  IFS=$as_save_IFS
5731
  test -z "$as_dir" && as_dir=.
5732
  for ac_exec_ext in '' $ac_executable_extensions; do
5733
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5735
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736
    break 2
5737
  fi
5738
done
5739
done
5740
IFS=$as_save_IFS
5741
 
5742
fi
5743
fi
5744
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5745
if test -n "$DSYMUTIL"; then
5746
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5747
$as_echo "$DSYMUTIL" >&6; }
5748
else
5749
  { $as_echo "$as_me:$LINENO: result: no" >&5
5750
$as_echo "no" >&6; }
5751
fi
5752
 
5753
 
5754
fi
5755
if test -z "$ac_cv_prog_DSYMUTIL"; then
5756
  ac_ct_DSYMUTIL=$DSYMUTIL
5757
  # Extract the first word of "dsymutil", so it can be a program name with args.
5758
set dummy dsymutil; ac_word=$2
5759
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5760
$as_echo_n "checking for $ac_word... " >&6; }
5761
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5762
  $as_echo_n "(cached) " >&6
5763
else
5764
  if test -n "$ac_ct_DSYMUTIL"; then
5765
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5766
else
5767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768
for as_dir in $PATH
5769
do
5770
  IFS=$as_save_IFS
5771
  test -z "$as_dir" && as_dir=.
5772
  for ac_exec_ext in '' $ac_executable_extensions; do
5773
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5775
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776
    break 2
5777
  fi
5778
done
5779
done
5780
IFS=$as_save_IFS
5781
 
5782
fi
5783
fi
5784
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5785
if test -n "$ac_ct_DSYMUTIL"; then
5786
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5787
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5788
else
5789
  { $as_echo "$as_me:$LINENO: result: no" >&5
5790
$as_echo "no" >&6; }
5791
fi
5792
 
5793
  if test "x$ac_ct_DSYMUTIL" = x; then
5794
    DSYMUTIL=":"
5795
  else
5796
    case $cross_compiling:$ac_tool_warned in
5797
yes:)
5798
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800
ac_tool_warned=yes ;;
5801
esac
5802
    DSYMUTIL=$ac_ct_DSYMUTIL
5803
  fi
5804
else
5805
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5806
fi
5807
 
5808
    if test -n "$ac_tool_prefix"; then
5809
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5810
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5811
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5812
$as_echo_n "checking for $ac_word... " >&6; }
5813
if test "${ac_cv_prog_NMEDIT+set}" = set; then
5814
  $as_echo_n "(cached) " >&6
5815
else
5816
  if test -n "$NMEDIT"; then
5817
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5818
else
5819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820
for as_dir in $PATH
5821
do
5822
  IFS=$as_save_IFS
5823
  test -z "$as_dir" && as_dir=.
5824
  for ac_exec_ext in '' $ac_executable_extensions; do
5825
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5827
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828
    break 2
5829
  fi
5830
done
5831
done
5832
IFS=$as_save_IFS
5833
 
5834
fi
5835
fi
5836
NMEDIT=$ac_cv_prog_NMEDIT
5837
if test -n "$NMEDIT"; then
5838
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5839
$as_echo "$NMEDIT" >&6; }
5840
else
5841
  { $as_echo "$as_me:$LINENO: result: no" >&5
5842
$as_echo "no" >&6; }
5843
fi
5844
 
5845
 
5846
fi
5847
if test -z "$ac_cv_prog_NMEDIT"; then
5848
  ac_ct_NMEDIT=$NMEDIT
5849
  # Extract the first word of "nmedit", so it can be a program name with args.
5850
set dummy nmedit; ac_word=$2
5851
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5852
$as_echo_n "checking for $ac_word... " >&6; }
5853
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5854
  $as_echo_n "(cached) " >&6
5855
else
5856
  if test -n "$ac_ct_NMEDIT"; then
5857
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5858
else
5859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860
for as_dir in $PATH
5861
do
5862
  IFS=$as_save_IFS
5863
  test -z "$as_dir" && as_dir=.
5864
  for ac_exec_ext in '' $ac_executable_extensions; do
5865
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5867
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868
    break 2
5869
  fi
5870
done
5871
done
5872
IFS=$as_save_IFS
5873
 
5874
fi
5875
fi
5876
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5877
if test -n "$ac_ct_NMEDIT"; then
5878
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5879
$as_echo "$ac_ct_NMEDIT" >&6; }
5880
else
5881
  { $as_echo "$as_me:$LINENO: result: no" >&5
5882
$as_echo "no" >&6; }
5883
fi
5884
 
5885
  if test "x$ac_ct_NMEDIT" = x; then
5886
    NMEDIT=":"
5887
  else
5888
    case $cross_compiling:$ac_tool_warned in
5889
yes:)
5890
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5891
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892
ac_tool_warned=yes ;;
5893
esac
5894
    NMEDIT=$ac_ct_NMEDIT
5895
  fi
5896
else
5897
  NMEDIT="$ac_cv_prog_NMEDIT"
5898
fi
5899
 
5900
    if test -n "$ac_tool_prefix"; then
5901
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5902
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5903
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5904
$as_echo_n "checking for $ac_word... " >&6; }
5905
if test "${ac_cv_prog_LIPO+set}" = set; then
5906
  $as_echo_n "(cached) " >&6
5907
else
5908
  if test -n "$LIPO"; then
5909
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5910
else
5911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912
for as_dir in $PATH
5913
do
5914
  IFS=$as_save_IFS
5915
  test -z "$as_dir" && as_dir=.
5916
  for ac_exec_ext in '' $ac_executable_extensions; do
5917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5919
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920
    break 2
5921
  fi
5922
done
5923
done
5924
IFS=$as_save_IFS
5925
 
5926
fi
5927
fi
5928
LIPO=$ac_cv_prog_LIPO
5929
if test -n "$LIPO"; then
5930
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5931
$as_echo "$LIPO" >&6; }
5932
else
5933
  { $as_echo "$as_me:$LINENO: result: no" >&5
5934
$as_echo "no" >&6; }
5935
fi
5936
 
5937
 
5938
fi
5939
if test -z "$ac_cv_prog_LIPO"; then
5940
  ac_ct_LIPO=$LIPO
5941
  # Extract the first word of "lipo", so it can be a program name with args.
5942
set dummy lipo; ac_word=$2
5943
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5944
$as_echo_n "checking for $ac_word... " >&6; }
5945
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5946
  $as_echo_n "(cached) " >&6
5947
else
5948
  if test -n "$ac_ct_LIPO"; then
5949
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5950
else
5951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952
for as_dir in $PATH
5953
do
5954
  IFS=$as_save_IFS
5955
  test -z "$as_dir" && as_dir=.
5956
  for ac_exec_ext in '' $ac_executable_extensions; do
5957
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958
    ac_cv_prog_ac_ct_LIPO="lipo"
5959
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960
    break 2
5961
  fi
5962
done
5963
done
5964
IFS=$as_save_IFS
5965
 
5966
fi
5967
fi
5968
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5969
if test -n "$ac_ct_LIPO"; then
5970
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5971
$as_echo "$ac_ct_LIPO" >&6; }
5972
else
5973
  { $as_echo "$as_me:$LINENO: result: no" >&5
5974
$as_echo "no" >&6; }
5975
fi
5976
 
5977
  if test "x$ac_ct_LIPO" = x; then
5978
    LIPO=":"
5979
  else
5980
    case $cross_compiling:$ac_tool_warned in
5981
yes:)
5982
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5983
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984
ac_tool_warned=yes ;;
5985
esac
5986
    LIPO=$ac_ct_LIPO
5987
  fi
5988
else
5989
  LIPO="$ac_cv_prog_LIPO"
5990
fi
5991
 
5992
    if test -n "$ac_tool_prefix"; then
5993
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5994
set dummy ${ac_tool_prefix}otool; ac_word=$2
5995
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5996
$as_echo_n "checking for $ac_word... " >&6; }
5997
if test "${ac_cv_prog_OTOOL+set}" = set; then
5998
  $as_echo_n "(cached) " >&6
5999
else
6000
  if test -n "$OTOOL"; then
6001
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6002
else
6003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004
for as_dir in $PATH
6005
do
6006
  IFS=$as_save_IFS
6007
  test -z "$as_dir" && as_dir=.
6008
  for ac_exec_ext in '' $ac_executable_extensions; do
6009
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6011
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012
    break 2
6013
  fi
6014
done
6015
done
6016
IFS=$as_save_IFS
6017
 
6018
fi
6019
fi
6020
OTOOL=$ac_cv_prog_OTOOL
6021
if test -n "$OTOOL"; then
6022
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6023
$as_echo "$OTOOL" >&6; }
6024
else
6025
  { $as_echo "$as_me:$LINENO: result: no" >&5
6026
$as_echo "no" >&6; }
6027
fi
6028
 
6029
 
6030
fi
6031
if test -z "$ac_cv_prog_OTOOL"; then
6032
  ac_ct_OTOOL=$OTOOL
6033
  # Extract the first word of "otool", so it can be a program name with args.
6034
set dummy otool; ac_word=$2
6035
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6036
$as_echo_n "checking for $ac_word... " >&6; }
6037
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6038
  $as_echo_n "(cached) " >&6
6039
else
6040
  if test -n "$ac_ct_OTOOL"; then
6041
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6042
else
6043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044
for as_dir in $PATH
6045
do
6046
  IFS=$as_save_IFS
6047
  test -z "$as_dir" && as_dir=.
6048
  for ac_exec_ext in '' $ac_executable_extensions; do
6049
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050
    ac_cv_prog_ac_ct_OTOOL="otool"
6051
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052
    break 2
6053
  fi
6054
done
6055
done
6056
IFS=$as_save_IFS
6057
 
6058
fi
6059
fi
6060
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6061
if test -n "$ac_ct_OTOOL"; then
6062
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6063
$as_echo "$ac_ct_OTOOL" >&6; }
6064
else
6065
  { $as_echo "$as_me:$LINENO: result: no" >&5
6066
$as_echo "no" >&6; }
6067
fi
6068
 
6069
  if test "x$ac_ct_OTOOL" = x; then
6070
    OTOOL=":"
6071
  else
6072
    case $cross_compiling:$ac_tool_warned in
6073
yes:)
6074
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6075
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6076
ac_tool_warned=yes ;;
6077
esac
6078
    OTOOL=$ac_ct_OTOOL
6079
  fi
6080
else
6081
  OTOOL="$ac_cv_prog_OTOOL"
6082
fi
6083
 
6084
    if test -n "$ac_tool_prefix"; then
6085
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6086
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6087
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6088
$as_echo_n "checking for $ac_word... " >&6; }
6089
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6090
  $as_echo_n "(cached) " >&6
6091
else
6092
  if test -n "$OTOOL64"; then
6093
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6094
else
6095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096
for as_dir in $PATH
6097
do
6098
  IFS=$as_save_IFS
6099
  test -z "$as_dir" && as_dir=.
6100
  for ac_exec_ext in '' $ac_executable_extensions; do
6101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6103
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104
    break 2
6105
  fi
6106
done
6107
done
6108
IFS=$as_save_IFS
6109
 
6110
fi
6111
fi
6112
OTOOL64=$ac_cv_prog_OTOOL64
6113
if test -n "$OTOOL64"; then
6114
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6115
$as_echo "$OTOOL64" >&6; }
6116
else
6117
  { $as_echo "$as_me:$LINENO: result: no" >&5
6118
$as_echo "no" >&6; }
6119
fi
6120
 
6121
 
6122
fi
6123
if test -z "$ac_cv_prog_OTOOL64"; then
6124
  ac_ct_OTOOL64=$OTOOL64
6125
  # Extract the first word of "otool64", so it can be a program name with args.
6126
set dummy otool64; ac_word=$2
6127
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6128
$as_echo_n "checking for $ac_word... " >&6; }
6129
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6130
  $as_echo_n "(cached) " >&6
6131
else
6132
  if test -n "$ac_ct_OTOOL64"; then
6133
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6134
else
6135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136
for as_dir in $PATH
6137
do
6138
  IFS=$as_save_IFS
6139
  test -z "$as_dir" && as_dir=.
6140
  for ac_exec_ext in '' $ac_executable_extensions; do
6141
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6143
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144
    break 2
6145
  fi
6146
done
6147
done
6148
IFS=$as_save_IFS
6149
 
6150
fi
6151
fi
6152
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6153
if test -n "$ac_ct_OTOOL64"; then
6154
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6155
$as_echo "$ac_ct_OTOOL64" >&6; }
6156
else
6157
  { $as_echo "$as_me:$LINENO: result: no" >&5
6158
$as_echo "no" >&6; }
6159
fi
6160
 
6161
  if test "x$ac_ct_OTOOL64" = x; then
6162
    OTOOL64=":"
6163
  else
6164
    case $cross_compiling:$ac_tool_warned in
6165
yes:)
6166
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6167
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168
ac_tool_warned=yes ;;
6169
esac
6170
    OTOOL64=$ac_ct_OTOOL64
6171
  fi
6172
else
6173
  OTOOL64="$ac_cv_prog_OTOOL64"
6174
fi
6175
 
6176
 
6177
 
6178
 
6179
 
6180
 
6181
 
6182
 
6183
 
6184
 
6185
 
6186
 
6187
 
6188
 
6189
 
6190
 
6191
 
6192
 
6193
 
6194
 
6195
 
6196
 
6197
 
6198
 
6199
 
6200
 
6201
 
6202
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6203
$as_echo_n "checking for -single_module linker flag... " >&6; }
6204
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6205
  $as_echo_n "(cached) " >&6
6206
else
6207
  lt_cv_apple_cc_single_mod=no
6208
      if test -z "${LT_MULTI_MODULE}"; then
6209
	# By default we will add the -single_module flag. You can override
6210
	# by either setting the environment variable LT_MULTI_MODULE
6211
	# non-empty at configure time, or by adding -multi_module to the
6212
	# link flags.
6213
	rm -rf libconftest.dylib*
6214
	echo "int foo(void){return 1;}" > conftest.c
6215
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6216
-dynamiclib -Wl,-single_module conftest.c" >&5
6217
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6218
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6219
        _lt_result=$?
6220
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6221
	  lt_cv_apple_cc_single_mod=yes
6222
	else
6223
	  cat conftest.err >&5
6224
	fi
6225
	rm -rf libconftest.dylib*
6226
	rm -f conftest.*
6227
      fi
6228
fi
6229
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6230
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6231
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6232
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6233
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6234
  $as_echo_n "(cached) " >&6
6235
else
6236
  lt_cv_ld_exported_symbols_list=no
6237
      save_LDFLAGS=$LDFLAGS
6238
      echo "_main" > conftest.sym
6239
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6240
      cat >conftest.$ac_ext <<_ACEOF
6241
/* confdefs.h.  */
6242
_ACEOF
6243
cat confdefs.h >>conftest.$ac_ext
6244
cat >>conftest.$ac_ext <<_ACEOF
6245
/* end confdefs.h.  */
6246
 
6247
int
6248
main ()
6249
{
6250
 
6251
  ;
6252
  return 0;
6253
}
6254
_ACEOF
6255
rm -f conftest.$ac_objext conftest$ac_exeext
6256
if { (ac_try="$ac_link"
6257
case "(($ac_try" in
6258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259
  *) ac_try_echo=$ac_try;;
6260
esac
6261
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262
$as_echo "$ac_try_echo") >&5
6263
  (eval "$ac_link") 2>conftest.er1
6264
  ac_status=$?
6265
  grep -v '^ *+' conftest.er1 >conftest.err
6266
  rm -f conftest.er1
6267
  cat conftest.err >&5
6268
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269
  (exit $ac_status); } && {
6270
	 test -z "$ac_c_werror_flag" ||
6271
	 test ! -s conftest.err
6272
       } && test -s conftest$ac_exeext && {
6273
	 test "$cross_compiling" = yes ||
6274
	 $as_test_x conftest$ac_exeext
6275
       }; then
6276
  lt_cv_ld_exported_symbols_list=yes
6277
else
6278
  $as_echo "$as_me: failed program was:" >&5
6279
sed 's/^/| /' conftest.$ac_ext >&5
6280
 
6281
	lt_cv_ld_exported_symbols_list=no
6282
fi
6283
 
6284
rm -rf conftest.dSYM
6285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6286
      conftest$ac_exeext conftest.$ac_ext
6287
	LDFLAGS="$save_LDFLAGS"
6288
 
6289
fi
6290
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6291
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6292
    case $host_os in
6293
    rhapsody* | darwin1.[012])
6294
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6295
    darwin1.*)
6296
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6297
    darwin*) # darwin 5.x on
6298
      # if running on 10.5 or later, the deployment target defaults
6299
      # to the OS version, if on x86, and 10.4, the deployment
6300
      # target defaults to 10.4. Don't you love it?
6301
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6302
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6303
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6304
	10.[012]*)
6305
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6306
	10.*)
6307
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6308
      esac
6309
    ;;
6310
  esac
6311
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6312
      _lt_dar_single_mod='$single_module'
6313
    fi
6314
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6315
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6316
    else
6317
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6318
    fi
6319
    if test "$DSYMUTIL" != ":"; then
6320
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6321
    else
6322
      _lt_dsymutil=
6323
    fi
6324
    ;;
6325
  esac
6326
 
6327
ac_ext=c
6328
ac_cpp='$CPP $CPPFLAGS'
6329
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6332
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6333
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6334
# On Suns, sometimes $CPP names a directory.
6335
if test -n "$CPP" && test -d "$CPP"; then
6336
  CPP=
6337
fi
6338
if test -z "$CPP"; then
6339
  if test "${ac_cv_prog_CPP+set}" = set; then
6340
  $as_echo_n "(cached) " >&6
6341
else
6342
      # Double quotes because CPP needs to be expanded
6343
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6344
    do
6345
      ac_preproc_ok=false
6346
for ac_c_preproc_warn_flag in '' yes
6347
do
6348
  # Use a header file that comes with gcc, so configuring glibc
6349
  # with a fresh cross-compiler works.
6350
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6351
  # <limits.h> exists even on freestanding compilers.
6352
  # On the NeXT, cc -E runs the code through the compiler's parser,
6353
  # not just through cpp. "Syntax error" is here to catch this case.
6354
  cat >conftest.$ac_ext <<_ACEOF
6355
/* confdefs.h.  */
6356
_ACEOF
6357
cat confdefs.h >>conftest.$ac_ext
6358
cat >>conftest.$ac_ext <<_ACEOF
6359
/* end confdefs.h.  */
6360
#ifdef __STDC__
6361
# include <limits.h>
6362
#else
6363
# include <assert.h>
6364
#endif
6365
		     Syntax error
6366
_ACEOF
6367
if { (ac_try="$ac_cpp conftest.$ac_ext"
6368
case "(($ac_try" in
6369
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370
  *) ac_try_echo=$ac_try;;
6371
esac
6372
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373
$as_echo "$ac_try_echo") >&5
6374
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6375
  ac_status=$?
6376
  grep -v '^ *+' conftest.er1 >conftest.err
6377
  rm -f conftest.er1
6378
  cat conftest.err >&5
6379
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380
  (exit $ac_status); } >/dev/null && {
6381
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6382
	 test ! -s conftest.err
6383
       }; then
6384
  :
6385
else
6386
  $as_echo "$as_me: failed program was:" >&5
6387
sed 's/^/| /' conftest.$ac_ext >&5
6388
 
6389
  # Broken: fails on valid input.
6390
continue
6391
fi
6392
 
6393
rm -f conftest.err conftest.$ac_ext
6394
 
6395
  # OK, works on sane cases.  Now check whether nonexistent headers
6396
  # can be detected and how.
6397
  cat >conftest.$ac_ext <<_ACEOF
6398
/* confdefs.h.  */
6399
_ACEOF
6400
cat confdefs.h >>conftest.$ac_ext
6401
cat >>conftest.$ac_ext <<_ACEOF
6402
/* end confdefs.h.  */
6403
#include <ac_nonexistent.h>
6404
_ACEOF
6405
if { (ac_try="$ac_cpp conftest.$ac_ext"
6406
case "(($ac_try" in
6407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408
  *) ac_try_echo=$ac_try;;
6409
esac
6410
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6411
$as_echo "$ac_try_echo") >&5
6412
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6413
  ac_status=$?
6414
  grep -v '^ *+' conftest.er1 >conftest.err
6415
  rm -f conftest.er1
6416
  cat conftest.err >&5
6417
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418
  (exit $ac_status); } >/dev/null && {
6419
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6420
	 test ! -s conftest.err
6421
       }; then
6422
  # Broken: success on invalid input.
6423
continue
6424
else
6425
  $as_echo "$as_me: failed program was:" >&5
6426
sed 's/^/| /' conftest.$ac_ext >&5
6427
 
6428
  # Passes both tests.
6429
ac_preproc_ok=:
6430
break
6431
fi
6432
 
6433
rm -f conftest.err conftest.$ac_ext
6434
 
6435
done
6436
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6437
rm -f conftest.err conftest.$ac_ext
6438
if $ac_preproc_ok; then
6439
  break
6440
fi
6441
 
6442
    done
6443
    ac_cv_prog_CPP=$CPP
6444
 
6445
fi
6446
  CPP=$ac_cv_prog_CPP
6447
else
6448
  ac_cv_prog_CPP=$CPP
6449
fi
6450
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6451
$as_echo "$CPP" >&6; }
6452
ac_preproc_ok=false
6453
for ac_c_preproc_warn_flag in '' yes
6454
do
6455
  # Use a header file that comes with gcc, so configuring glibc
6456
  # with a fresh cross-compiler works.
6457
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6458
  # <limits.h> exists even on freestanding compilers.
6459
  # On the NeXT, cc -E runs the code through the compiler's parser,
6460
  # not just through cpp. "Syntax error" is here to catch this case.
6461
  cat >conftest.$ac_ext <<_ACEOF
6462
/* confdefs.h.  */
6463
_ACEOF
6464
cat confdefs.h >>conftest.$ac_ext
6465
cat >>conftest.$ac_ext <<_ACEOF
6466
/* end confdefs.h.  */
6467
#ifdef __STDC__
6468
# include <limits.h>
6469
#else
6470
# include <assert.h>
6471
#endif
6472
		     Syntax error
6473
_ACEOF
6474
if { (ac_try="$ac_cpp conftest.$ac_ext"
6475
case "(($ac_try" in
6476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477
  *) ac_try_echo=$ac_try;;
6478
esac
6479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480
$as_echo "$ac_try_echo") >&5
6481
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6482
  ac_status=$?
6483
  grep -v '^ *+' conftest.er1 >conftest.err
6484
  rm -f conftest.er1
6485
  cat conftest.err >&5
6486
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487
  (exit $ac_status); } >/dev/null && {
6488
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6489
	 test ! -s conftest.err
6490
       }; then
6491
  :
6492
else
6493
  $as_echo "$as_me: failed program was:" >&5
6494
sed 's/^/| /' conftest.$ac_ext >&5
6495
 
6496
  # Broken: fails on valid input.
6497
continue
6498
fi
6499
 
6500
rm -f conftest.err conftest.$ac_ext
6501
 
6502
  # OK, works on sane cases.  Now check whether nonexistent headers
6503
  # can be detected and how.
6504
  cat >conftest.$ac_ext <<_ACEOF
6505
/* confdefs.h.  */
6506
_ACEOF
6507
cat confdefs.h >>conftest.$ac_ext
6508
cat >>conftest.$ac_ext <<_ACEOF
6509
/* end confdefs.h.  */
6510
#include <ac_nonexistent.h>
6511
_ACEOF
6512
if { (ac_try="$ac_cpp conftest.$ac_ext"
6513
case "(($ac_try" in
6514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515
  *) ac_try_echo=$ac_try;;
6516
esac
6517
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518
$as_echo "$ac_try_echo") >&5
6519
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6520
  ac_status=$?
6521
  grep -v '^ *+' conftest.er1 >conftest.err
6522
  rm -f conftest.er1
6523
  cat conftest.err >&5
6524
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525
  (exit $ac_status); } >/dev/null && {
6526
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6527
	 test ! -s conftest.err
6528
       }; then
6529
  # Broken: success on invalid input.
6530
continue
6531
else
6532
  $as_echo "$as_me: failed program was:" >&5
6533
sed 's/^/| /' conftest.$ac_ext >&5
6534
 
6535
  # Passes both tests.
6536
ac_preproc_ok=:
6537
break
6538
fi
6539
 
6540
rm -f conftest.err conftest.$ac_ext
6541
 
6542
done
6543
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6544
rm -f conftest.err conftest.$ac_ext
6545
if $ac_preproc_ok; then
6546
  :
6547
else
6548
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6549
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6550
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6551
See \`config.log' for more details." >&5
6552
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6553
See \`config.log' for more details." >&2;}
6554
   { (exit 1); exit 1; }; }; }
6555
fi
6556
 
6557
ac_ext=c
6558
ac_cpp='$CPP $CPPFLAGS'
6559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
 
6563
 
6564
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6565
$as_echo_n "checking for ANSI C header files... " >&6; }
6566
if test "${ac_cv_header_stdc+set}" = set; then
6567
  $as_echo_n "(cached) " >&6
6568
else
6569
  cat >conftest.$ac_ext <<_ACEOF
6570
/* confdefs.h.  */
6571
_ACEOF
6572
cat confdefs.h >>conftest.$ac_ext
6573
cat >>conftest.$ac_ext <<_ACEOF
6574
/* end confdefs.h.  */
6575
#include <stdlib.h>
6576
#include <stdarg.h>
6577
#include <string.h>
6578
#include <float.h>
6579
 
6580
int
6581
main ()
6582
{
6583
 
6584
  ;
6585
  return 0;
6586
}
6587
_ACEOF
6588
rm -f conftest.$ac_objext
6589
if { (ac_try="$ac_compile"
6590
case "(($ac_try" in
6591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592
  *) ac_try_echo=$ac_try;;
6593
esac
6594
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6595
$as_echo "$ac_try_echo") >&5
6596
  (eval "$ac_compile") 2>conftest.er1
6597
  ac_status=$?
6598
  grep -v '^ *+' conftest.er1 >conftest.err
6599
  rm -f conftest.er1
6600
  cat conftest.err >&5
6601
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602
  (exit $ac_status); } && {
6603
	 test -z "$ac_c_werror_flag" ||
6604
	 test ! -s conftest.err
6605
       } && test -s conftest.$ac_objext; then
6606
  ac_cv_header_stdc=yes
6607
else
6608
  $as_echo "$as_me: failed program was:" >&5
6609
sed 's/^/| /' conftest.$ac_ext >&5
6610
 
6611
	ac_cv_header_stdc=no
6612
fi
6613
 
6614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615
 
6616
if test $ac_cv_header_stdc = yes; then
6617
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6618
  cat >conftest.$ac_ext <<_ACEOF
6619
/* confdefs.h.  */
6620
_ACEOF
6621
cat confdefs.h >>conftest.$ac_ext
6622
cat >>conftest.$ac_ext <<_ACEOF
6623
/* end confdefs.h.  */
6624
#include <string.h>
6625
 
6626
_ACEOF
6627
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628
  $EGREP "memchr" >/dev/null 2>&1; then
6629
  :
6630
else
6631
  ac_cv_header_stdc=no
6632
fi
6633
rm -f conftest*
6634
 
6635
fi
6636
 
6637
if test $ac_cv_header_stdc = yes; then
6638
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6639
  cat >conftest.$ac_ext <<_ACEOF
6640
/* confdefs.h.  */
6641
_ACEOF
6642
cat confdefs.h >>conftest.$ac_ext
6643
cat >>conftest.$ac_ext <<_ACEOF
6644
/* end confdefs.h.  */
6645
#include <stdlib.h>
6646
 
6647
_ACEOF
6648
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649
  $EGREP "free" >/dev/null 2>&1; then
6650
  :
6651
else
6652
  ac_cv_header_stdc=no
6653
fi
6654
rm -f conftest*
6655
 
6656
fi
6657
 
6658
if test $ac_cv_header_stdc = yes; then
6659
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6660
  if test "$cross_compiling" = yes; then
6661
  :
6662
else
6663
  cat >conftest.$ac_ext <<_ACEOF
6664
/* confdefs.h.  */
6665
_ACEOF
6666
cat confdefs.h >>conftest.$ac_ext
6667
cat >>conftest.$ac_ext <<_ACEOF
6668
/* end confdefs.h.  */
6669
#include <ctype.h>
6670
#include <stdlib.h>
6671
#if ((' ' & 0x0FF) == 0x020)
6672
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6673
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6674
#else
6675
# define ISLOWER(c) \
6676
		   (('a' <= (c) && (c) <= 'i') \
6677
		     || ('j' <= (c) && (c) <= 'r') \
6678
		     || ('s' <= (c) && (c) <= 'z'))
6679
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6680
#endif
6681
 
6682
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6683
int
6684
main ()
6685
{
6686
  int i;
6687
  for (i = 0; i < 256; i++)
6688
    if (XOR (islower (i), ISLOWER (i))
6689
	|| toupper (i) != TOUPPER (i))
6690
      return 2;
6691
  return 0;
6692
}
6693
_ACEOF
6694
rm -f conftest$ac_exeext
6695
if { (ac_try="$ac_link"
6696
case "(($ac_try" in
6697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698
  *) ac_try_echo=$ac_try;;
6699
esac
6700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6701
$as_echo "$ac_try_echo") >&5
6702
  (eval "$ac_link") 2>&5
6703
  ac_status=$?
6704
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6706
  { (case "(($ac_try" in
6707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708
  *) ac_try_echo=$ac_try;;
6709
esac
6710
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711
$as_echo "$ac_try_echo") >&5
6712
  (eval "$ac_try") 2>&5
6713
  ac_status=$?
6714
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715
  (exit $ac_status); }; }; then
6716
  :
6717
else
6718
  $as_echo "$as_me: program exited with status $ac_status" >&5
6719
$as_echo "$as_me: failed program was:" >&5
6720
sed 's/^/| /' conftest.$ac_ext >&5
6721
 
6722
( exit $ac_status )
6723
ac_cv_header_stdc=no
6724
fi
6725
rm -rf conftest.dSYM
6726
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6727
fi
6728
 
6729
 
6730
fi
6731
fi
6732
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733
$as_echo "$ac_cv_header_stdc" >&6; }
6734
if test $ac_cv_header_stdc = yes; then
6735
 
6736
cat >>confdefs.h <<\_ACEOF
6737
#define STDC_HEADERS 1
6738
_ACEOF
6739
 
6740
fi
6741
 
6742
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6743
 
6744
 
6745
 
6746
 
6747
 
6748
 
6749
 
6750
 
6751
 
6752
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6753
		  inttypes.h stdint.h unistd.h
6754
do
6755
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6757
$as_echo_n "checking for $ac_header... " >&6; }
6758
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6759
  $as_echo_n "(cached) " >&6
6760
else
6761
  cat >conftest.$ac_ext <<_ACEOF
6762
/* confdefs.h.  */
6763
_ACEOF
6764
cat confdefs.h >>conftest.$ac_ext
6765
cat >>conftest.$ac_ext <<_ACEOF
6766
/* end confdefs.h.  */
6767
$ac_includes_default
6768
 
6769
#include <$ac_header>
6770
_ACEOF
6771
rm -f conftest.$ac_objext
6772
if { (ac_try="$ac_compile"
6773
case "(($ac_try" in
6774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775
  *) ac_try_echo=$ac_try;;
6776
esac
6777
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6778
$as_echo "$ac_try_echo") >&5
6779
  (eval "$ac_compile") 2>conftest.er1
6780
  ac_status=$?
6781
  grep -v '^ *+' conftest.er1 >conftest.err
6782
  rm -f conftest.er1
6783
  cat conftest.err >&5
6784
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785
  (exit $ac_status); } && {
6786
	 test -z "$ac_c_werror_flag" ||
6787
	 test ! -s conftest.err
6788
       } && test -s conftest.$ac_objext; then
6789
  eval "$as_ac_Header=yes"
6790
else
6791
  $as_echo "$as_me: failed program was:" >&5
6792
sed 's/^/| /' conftest.$ac_ext >&5
6793
 
6794
	eval "$as_ac_Header=no"
6795
fi
6796
 
6797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798
fi
6799
ac_res=`eval 'as_val=${'$as_ac_Header'}
6800
		 $as_echo "$as_val"'`
6801
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6802
$as_echo "$ac_res" >&6; }
6803
as_val=`eval 'as_val=${'$as_ac_Header'}
6804
		 $as_echo "$as_val"'`
6805
   if test "x$as_val" = x""yes; then
6806
  cat >>confdefs.h <<_ACEOF
6807
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808
_ACEOF
6809
 
6810
fi
6811
 
6812
done
6813
 
6814
 
6815
 
6816
for ac_header in dlfcn.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
# Set options
6880
 
6881
 
6882
 
6883
        enable_dlopen=no
6884
 
6885
 
6886
  enable_win32_dll=no
6887
 
6888
 
6889
            # Check whether --enable-shared was given.
6890
if test "${enable_shared+set}" = set; then
6891
  enableval=$enable_shared; p=${PACKAGE-default}
6892
    case $enableval in
6893
    yes) enable_shared=yes ;;
6894
    no) enable_shared=no ;;
6895
    *)
6896
      enable_shared=no
6897
      # Look at the argument we got.  We use all the common list separators.
6898
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6899
      for pkg in $enableval; do
6900
	IFS="$lt_save_ifs"
6901
	if test "X$pkg" = "X$p"; then
6902
	  enable_shared=yes
6903
	fi
6904
      done
6905
      IFS="$lt_save_ifs"
6906
      ;;
6907
    esac
6908
else
6909
  enable_shared=yes
6910
fi
6911
 
6912
 
6913
 
6914
 
6915
 
6916
 
6917
 
6918
 
6919
 
6920
  # Check whether --enable-static was given.
6921
if test "${enable_static+set}" = set; then
6922
  enableval=$enable_static; p=${PACKAGE-default}
6923
    case $enableval in
6924
    yes) enable_static=yes ;;
6925
    no) enable_static=no ;;
6926
    *)
6927
     enable_static=no
6928
      # Look at the argument we got.  We use all the common list separators.
6929
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6930
      for pkg in $enableval; do
6931
	IFS="$lt_save_ifs"
6932
	if test "X$pkg" = "X$p"; then
6933
	  enable_static=yes
6934
	fi
6935
      done
6936
      IFS="$lt_save_ifs"
6937
      ;;
6938
    esac
6939
else
6940
  enable_static=yes
6941
fi
6942
 
6943
 
6944
 
6945
 
6946
 
6947
 
6948
 
6949
 
6950
 
6951
 
6952
# Check whether --with-pic was given.
6953
if test "${with_pic+set}" = set; then
6954
  withval=$with_pic; pic_mode="$withval"
6955
else
6956
  pic_mode=default
6957
fi
6958
 
6959
 
6960
test -z "$pic_mode" && pic_mode=default
6961
 
6962
 
6963
 
6964
 
6965
 
6966
 
6967
 
6968
  # Check whether --enable-fast-install was given.
6969
if test "${enable_fast_install+set}" = set; then
6970
  enableval=$enable_fast_install; p=${PACKAGE-default}
6971
    case $enableval in
6972
    yes) enable_fast_install=yes ;;
6973
    no) enable_fast_install=no ;;
6974
    *)
6975
      enable_fast_install=no
6976
      # Look at the argument we got.  We use all the common list separators.
6977
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6978
      for pkg in $enableval; do
6979
	IFS="$lt_save_ifs"
6980
	if test "X$pkg" = "X$p"; then
6981
	  enable_fast_install=yes
6982
	fi
6983
      done
6984
      IFS="$lt_save_ifs"
6985
      ;;
6986
    esac
6987
else
6988
  enable_fast_install=yes
6989
fi
6990
 
6991
 
6992
 
6993
 
6994
 
6995
 
6996
 
6997
 
6998
 
6999
 
7000
 
7001
# This can be used to rebuild libtool when needed
7002
LIBTOOL_DEPS="$ltmain"
7003
 
7004
# Always use our own libtool.
7005
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7006
 
7007
 
7008
 
7009
 
7010
 
7011
 
7012
 
7013
 
7014
 
7015
 
7016
 
7017
 
7018
 
7019
 
7020
 
7021
 
7022
 
7023
 
7024
 
7025
 
7026
 
7027
 
7028
 
7029
 
7030
 
7031
test -z "$LN_S" && LN_S="ln -s"
7032
 
7033
 
7034
 
7035
 
7036
 
7037
 
7038
 
7039
 
7040
 
7041
 
7042
 
7043
 
7044
 
7045
 
7046
if test -n "${ZSH_VERSION+set}" ; then
7047
   setopt NO_GLOB_SUBST
7048
fi
7049
 
7050
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7051
$as_echo_n "checking for objdir... " >&6; }
7052
if test "${lt_cv_objdir+set}" = set; then
7053
  $as_echo_n "(cached) " >&6
7054
else
7055
  rm -f .libs 2>/dev/null
7056
mkdir .libs 2>/dev/null
7057
if test -d .libs; then
7058
  lt_cv_objdir=.libs
7059
else
7060
  # MS-DOS does not allow filenames that begin with a dot.
7061
  lt_cv_objdir=_libs
7062
fi
7063
rmdir .libs 2>/dev/null
7064
fi
7065
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7066
$as_echo "$lt_cv_objdir" >&6; }
7067
objdir=$lt_cv_objdir
7068
 
7069
 
7070
 
7071
 
7072
 
7073
cat >>confdefs.h <<_ACEOF
7074
#define LT_OBJDIR "$lt_cv_objdir/"
7075
_ACEOF
7076
 
7077
 
7078
 
7079
 
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
 
7088
 
7089
 
7090
 
7091
 
7092
 
7093
case $host_os in
7094
aix3*)
7095
  # AIX sometimes has problems with the GCC collect2 program.  For some
7096
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7097
  # vanish in a puff of smoke.
7098
  if test "X${COLLECT_NAMES+set}" != Xset; then
7099
    COLLECT_NAMES=
7100
    export COLLECT_NAMES
7101
  fi
7102
  ;;
7103
esac
7104
 
7105
# Sed substitution that helps us do robust quoting.  It backslashifies
7106
# metacharacters that are still active within double-quoted strings.
7107
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7108
 
7109
# Same as above, but do not quote variable references.
7110
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7111
 
7112
# Sed substitution to delay expansion of an escaped shell variable in a
7113
# double_quote_subst'ed string.
7114
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7115
 
7116
# Sed substitution to delay expansion of an escaped single quote.
7117
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7118
 
7119
# Sed substitution to avoid accidental globbing in evaled expressions
7120
no_glob_subst='s/\*/\\\*/g'
7121
 
7122
# Global variables:
7123
ofile=libtool
7124
can_build_shared=yes
7125
 
7126
# All known linkers require a `.a' archive for static linking (except MSVC,
7127
# which needs '.lib').
7128
libext=a
7129
 
7130
with_gnu_ld="$lt_cv_prog_gnu_ld"
7131
 
7132
old_CC="$CC"
7133
old_CFLAGS="$CFLAGS"
7134
 
7135
# Set sane defaults for various variables
7136
test -z "$CC" && CC=cc
7137
test -z "$LTCC" && LTCC=$CC
7138
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7139
test -z "$LD" && LD=ld
7140
test -z "$ac_objext" && ac_objext=o
7141
 
7142
for cc_temp in $compiler""; do
7143
  case $cc_temp in
7144
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7145
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7146
    \-*) ;;
7147
    *) break;;
7148
  esac
7149
done
7150
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7151
 
7152
 
7153
# Only perform the check for file, if the check method requires it
7154
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7155
case $deplibs_check_method in
7156
file_magic*)
7157
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7158
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7159
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7160
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7161
  $as_echo_n "(cached) " >&6
7162
else
7163
  case $MAGIC_CMD in
7164
[\\/*] |  ?:[\\/]*)
7165
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7166
  ;;
7167
*)
7168
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7169
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7170
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7171
  for ac_dir in $ac_dummy; do
7172
    IFS="$lt_save_ifs"
7173
    test -z "$ac_dir" && ac_dir=.
7174
    if test -f $ac_dir/${ac_tool_prefix}file; then
7175
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7176
      if test -n "$file_magic_test_file"; then
7177
	case $deplibs_check_method in
7178
	"file_magic "*)
7179
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7180
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7182
	    $EGREP "$file_magic_regex" > /dev/null; then
7183
	    :
7184
	  else
7185
	    cat <<_LT_EOF 1>&2
7186
 
7187
*** Warning: the command libtool uses to detect shared libraries,
7188
*** $file_magic_cmd, produces output that libtool cannot recognize.
7189
*** The result is that libtool may fail to recognize shared libraries
7190
*** as such.  This will affect the creation of libtool libraries that
7191
*** depend on shared libraries, but programs linked with such libtool
7192
*** libraries will work regardless of this problem.  Nevertheless, you
7193
*** may want to report the problem to your system manager and/or to
7194
*** bug-libtool@gnu.org
7195
 
7196
_LT_EOF
7197
	  fi ;;
7198
	esac
7199
      fi
7200
      break
7201
    fi
7202
  done
7203
  IFS="$lt_save_ifs"
7204
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7205
  ;;
7206
esac
7207
fi
7208
 
7209
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7210
if test -n "$MAGIC_CMD"; then
7211
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7212
$as_echo "$MAGIC_CMD" >&6; }
7213
else
7214
  { $as_echo "$as_me:$LINENO: result: no" >&5
7215
$as_echo "no" >&6; }
7216
fi
7217
 
7218
 
7219
 
7220
 
7221
 
7222
if test -z "$lt_cv_path_MAGIC_CMD"; then
7223
  if test -n "$ac_tool_prefix"; then
7224
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7225
$as_echo_n "checking for file... " >&6; }
7226
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7227
  $as_echo_n "(cached) " >&6
7228
else
7229
  case $MAGIC_CMD in
7230
[\\/*] |  ?:[\\/]*)
7231
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7232
  ;;
7233
*)
7234
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7235
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7236
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7237
  for ac_dir in $ac_dummy; do
7238
    IFS="$lt_save_ifs"
7239
    test -z "$ac_dir" && ac_dir=.
7240
    if test -f $ac_dir/file; then
7241
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7242
      if test -n "$file_magic_test_file"; then
7243
	case $deplibs_check_method in
7244
	"file_magic "*)
7245
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7246
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7248
	    $EGREP "$file_magic_regex" > /dev/null; then
7249
	    :
7250
	  else
7251
	    cat <<_LT_EOF 1>&2
7252
 
7253
*** Warning: the command libtool uses to detect shared libraries,
7254
*** $file_magic_cmd, produces output that libtool cannot recognize.
7255
*** The result is that libtool may fail to recognize shared libraries
7256
*** as such.  This will affect the creation of libtool libraries that
7257
*** depend on shared libraries, but programs linked with such libtool
7258
*** libraries will work regardless of this problem.  Nevertheless, you
7259
*** may want to report the problem to your system manager and/or to
7260
*** bug-libtool@gnu.org
7261
 
7262
_LT_EOF
7263
	  fi ;;
7264
	esac
7265
      fi
7266
      break
7267
    fi
7268
  done
7269
  IFS="$lt_save_ifs"
7270
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7271
  ;;
7272
esac
7273
fi
7274
 
7275
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7276
if test -n "$MAGIC_CMD"; then
7277
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7278
$as_echo "$MAGIC_CMD" >&6; }
7279
else
7280
  { $as_echo "$as_me:$LINENO: result: no" >&5
7281
$as_echo "no" >&6; }
7282
fi
7283
 
7284
 
7285
  else
7286
    MAGIC_CMD=:
7287
  fi
7288
fi
7289
 
7290
  fi
7291
  ;;
7292
esac
7293
 
7294
# Use C for the default configuration in the libtool script
7295
 
7296
lt_save_CC="$CC"
7297
ac_ext=c
7298
ac_cpp='$CPP $CPPFLAGS'
7299
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302
 
7303
 
7304
# Source file extension for C test sources.
7305
ac_ext=c
7306
 
7307
# Object file extension for compiled C test sources.
7308
objext=o
7309
objext=$objext
7310
 
7311
# Code to be used in simple compile tests
7312
lt_simple_compile_test_code="int some_variable = 0;"
7313
 
7314
# Code to be used in simple link tests
7315
lt_simple_link_test_code='int main(){return(0);}'
7316
 
7317
 
7318
 
7319
 
7320
 
7321
 
7322
 
7323
# If no C compiler was specified, use CC.
7324
LTCC=${LTCC-"$CC"}
7325
 
7326
# If no C compiler flags were specified, use CFLAGS.
7327
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7328
 
7329
# Allow CC to be a program name with arguments.
7330
compiler=$CC
7331
 
7332
# Save the default compiler, since it gets overwritten when the other
7333
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7334
compiler_DEFAULT=$CC
7335
 
7336
# save warnings/boilerplate of simple test code
7337
ac_outfile=conftest.$ac_objext
7338
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7339
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7340
_lt_compiler_boilerplate=`cat conftest.err`
7341
$RM conftest*
7342
 
7343
ac_outfile=conftest.$ac_objext
7344
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7345
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7346
_lt_linker_boilerplate=`cat conftest.err`
7347
$RM -r conftest*
7348
 
7349
 
7350
if test -n "$compiler"; then
7351
 
7352
lt_prog_compiler_no_builtin_flag=
7353
 
7354
if test "$GCC" = yes; then
7355
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7356
 
7357
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7358
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7359
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7360
  $as_echo_n "(cached) " >&6
7361
else
7362
  lt_cv_prog_compiler_rtti_exceptions=no
7363
   ac_outfile=conftest.$ac_objext
7364
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7365
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7366
   # Insert the option either (1) after the last *FLAGS variable, or
7367
   # (2) before a word containing "conftest.", or (3) at the end.
7368
   # Note that $ac_compile itself does not contain backslashes and begins
7369
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7370
   # The option is referenced via a variable to avoid confusing sed.
7371
   lt_compile=`echo "$ac_compile" | $SED \
7372
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7373
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7374
   -e 's:$: $lt_compiler_flag:'`
7375
   (eval echo "\"\$as_me:7375: $lt_compile\"" >&5)
7376
   (eval "$lt_compile" 2>conftest.err)
7377
   ac_status=$?
7378
   cat conftest.err >&5
7379
   echo "$as_me:7379: \$? = $ac_status" >&5
7380
   if (exit $ac_status) && test -s "$ac_outfile"; then
7381
     # The compiler can only warn and ignore the option if not recognized
7382
     # So say no if there are warnings other than the usual output.
7383
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7384
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7385
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7386
       lt_cv_prog_compiler_rtti_exceptions=yes
7387
     fi
7388
   fi
7389
   $RM conftest*
7390
 
7391
fi
7392
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7393
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7394
 
7395
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7396
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7397
else
7398
    :
7399
fi
7400
 
7401
fi
7402
 
7403
 
7404
 
7405
 
7406
 
7407
 
7408
  lt_prog_compiler_wl=
7409
lt_prog_compiler_pic=
7410
lt_prog_compiler_static=
7411
 
7412
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7413
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7414
 
7415
  if test "$GCC" = yes; then
7416
    lt_prog_compiler_wl='-Wl,'
7417
    lt_prog_compiler_static='-static'
7418
 
7419
    case $host_os in
7420
      aix*)
7421
      # All AIX code is PIC.
7422
      if test "$host_cpu" = ia64; then
7423
	# AIX 5 now supports IA64 processor
7424
	lt_prog_compiler_static='-Bstatic'
7425
      fi
7426
      ;;
7427
 
7428
    amigaos*)
7429
      case $host_cpu in
7430
      powerpc)
7431
            # see comment about AmigaOS4 .so support
7432
            lt_prog_compiler_pic='-fPIC'
7433
        ;;
7434
      m68k)
7435
            # FIXME: we need at least 68020 code to build shared libraries, but
7436
            # adding the `-m68020' flag to GCC prevents building anything better,
7437
            # like `-m68040'.
7438
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7439
        ;;
7440
      esac
7441
      ;;
7442
 
7443
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7444
      # PIC is the default for these OSes.
7445
      ;;
7446
 
7447
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7448
      # This hack is so that the source file can tell whether it is being
7449
      # built for inclusion in a dll (and should export symbols for example).
7450
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7451
      # (--disable-auto-import) libraries
7452
      lt_prog_compiler_pic='-DDLL_EXPORT'
7453
      ;;
7454
 
7455
    darwin* | rhapsody*)
7456
      # PIC is the default on this platform
7457
      # Common symbols not allowed in MH_DYLIB files
7458
      lt_prog_compiler_pic='-fno-common'
7459
      ;;
7460
 
7461
    hpux*)
7462
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7463
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7464
      # sets the default TLS model and affects inlining.
7465
      case $host_cpu in
7466
      hppa*64*)
7467
	# +Z the default
7468
	;;
7469
      *)
7470
	lt_prog_compiler_pic='-fPIC'
7471
	;;
7472
      esac
7473
      ;;
7474
 
7475
    interix[3-9]*)
7476
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7477
      # Instead, we relocate shared libraries at runtime.
7478
      ;;
7479
 
7480
    msdosdjgpp*)
7481
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7482
      # on systems that don't support them.
7483
      lt_prog_compiler_can_build_shared=no
7484
      enable_shared=no
7485
      ;;
7486
 
7487
    *nto* | *qnx*)
7488
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7489
      # it will coredump.
7490
      lt_prog_compiler_pic='-fPIC -shared'
7491
      ;;
7492
 
7493
    sysv4*MP*)
7494
      if test -d /usr/nec; then
7495
	lt_prog_compiler_pic=-Kconform_pic
7496
      fi
7497
      ;;
7498
 
7499
    *)
7500
      lt_prog_compiler_pic='-fPIC'
7501
      ;;
7502
    esac
7503
  else
7504
    # PORTME Check for flag to pass linker flags through the system compiler.
7505
    case $host_os in
7506
    aix*)
7507
      lt_prog_compiler_wl='-Wl,'
7508
      if test "$host_cpu" = ia64; then
7509
	# AIX 5 now supports IA64 processor
7510
	lt_prog_compiler_static='-Bstatic'
7511
      else
7512
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7513
      fi
7514
      ;;
7515
 
7516
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7517
      # This hack is so that the source file can tell whether it is being
7518
      # built for inclusion in a dll (and should export symbols for example).
7519
      lt_prog_compiler_pic='-DDLL_EXPORT'
7520
      ;;
7521
 
7522
    hpux9* | hpux10* | hpux11*)
7523
      lt_prog_compiler_wl='-Wl,'
7524
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7525
      # not for PA HP-UX.
7526
      case $host_cpu in
7527
      hppa*64*|ia64*)
7528
	# +Z the default
7529
	;;
7530
      *)
7531
	lt_prog_compiler_pic='+Z'
7532
	;;
7533
      esac
7534
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7535
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7536
      ;;
7537
 
7538
    irix5* | irix6* | nonstopux*)
7539
      lt_prog_compiler_wl='-Wl,'
7540
      # PIC (with -KPIC) is the default.
7541
      lt_prog_compiler_static='-non_shared'
7542
      ;;
7543
 
7544
    linux* | k*bsd*-gnu)
7545
      case $cc_basename in
7546
      # old Intel for x86_64 which still supported -KPIC.
7547
      ecc*)
7548
	lt_prog_compiler_wl='-Wl,'
7549
	lt_prog_compiler_pic='-KPIC'
7550
	lt_prog_compiler_static='-static'
7551
        ;;
7552
      # icc used to be incompatible with GCC.
7553
      # ICC 10 doesn't accept -KPIC any more.
7554
      icc* | ifort*)
7555
	lt_prog_compiler_wl='-Wl,'
7556
	lt_prog_compiler_pic='-fPIC'
7557
	lt_prog_compiler_static='-static'
7558
        ;;
7559
      # Lahey Fortran 8.1.
7560
      lf95*)
7561
	lt_prog_compiler_wl='-Wl,'
7562
	lt_prog_compiler_pic='--shared'
7563
	lt_prog_compiler_static='--static'
7564
	;;
7565
      pgcc* | pgf77* | pgf90* | pgf95*)
7566
        # Portland Group compilers (*not* the Pentium gcc compiler,
7567
	# which looks to be a dead project)
7568
	lt_prog_compiler_wl='-Wl,'
7569
	lt_prog_compiler_pic='-fpic'
7570
	lt_prog_compiler_static='-Bstatic'
7571
        ;;
7572
      ccc*)
7573
        lt_prog_compiler_wl='-Wl,'
7574
        # All Alpha code is PIC.
7575
        lt_prog_compiler_static='-non_shared'
7576
        ;;
7577
      xl*)
7578
	# IBM XL C 8.0/Fortran 10.1 on PPC
7579
	lt_prog_compiler_wl='-Wl,'
7580
	lt_prog_compiler_pic='-qpic'
7581
	lt_prog_compiler_static='-qstaticlink'
7582
	;;
7583
      *)
7584
	case `$CC -V 2>&1 | sed 5q` in
7585
	*Sun\ C*)
7586
	  # Sun C 5.9
7587
	  lt_prog_compiler_pic='-KPIC'
7588
	  lt_prog_compiler_static='-Bstatic'
7589
	  lt_prog_compiler_wl='-Wl,'
7590
	  ;;
7591
	*Sun\ F*)
7592
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7593
	  lt_prog_compiler_pic='-KPIC'
7594
	  lt_prog_compiler_static='-Bstatic'
7595
	  lt_prog_compiler_wl=''
7596
	  ;;
7597
	esac
7598
	;;
7599
      esac
7600
      ;;
7601
 
7602
    newsos6)
7603
      lt_prog_compiler_pic='-KPIC'
7604
      lt_prog_compiler_static='-Bstatic'
7605
      ;;
7606
 
7607
    *nto* | *qnx*)
7608
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7609
      # it will coredump.
7610
      lt_prog_compiler_pic='-fPIC -shared'
7611
      ;;
7612
 
7613
    osf3* | osf4* | osf5*)
7614
      lt_prog_compiler_wl='-Wl,'
7615
      # All OSF/1 code is PIC.
7616
      lt_prog_compiler_static='-non_shared'
7617
      ;;
7618
 
7619
    rdos*)
7620
      lt_prog_compiler_static='-non_shared'
7621
      ;;
7622
 
7623
    solaris*)
7624
      lt_prog_compiler_pic='-KPIC'
7625
      lt_prog_compiler_static='-Bstatic'
7626
      case $cc_basename in
7627
      f77* | f90* | f95*)
7628
	lt_prog_compiler_wl='-Qoption ld ';;
7629
      *)
7630
	lt_prog_compiler_wl='-Wl,';;
7631
      esac
7632
      ;;
7633
 
7634
    sunos4*)
7635
      lt_prog_compiler_wl='-Qoption ld '
7636
      lt_prog_compiler_pic='-PIC'
7637
      lt_prog_compiler_static='-Bstatic'
7638
      ;;
7639
 
7640
    sysv4 | sysv4.2uw2* | sysv4.3*)
7641
      lt_prog_compiler_wl='-Wl,'
7642
      lt_prog_compiler_pic='-KPIC'
7643
      lt_prog_compiler_static='-Bstatic'
7644
      ;;
7645
 
7646
    sysv4*MP*)
7647
      if test -d /usr/nec ;then
7648
	lt_prog_compiler_pic='-Kconform_pic'
7649
	lt_prog_compiler_static='-Bstatic'
7650
      fi
7651
      ;;
7652
 
7653
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7654
      lt_prog_compiler_wl='-Wl,'
7655
      lt_prog_compiler_pic='-KPIC'
7656
      lt_prog_compiler_static='-Bstatic'
7657
      ;;
7658
 
7659
    unicos*)
7660
      lt_prog_compiler_wl='-Wl,'
7661
      lt_prog_compiler_can_build_shared=no
7662
      ;;
7663
 
7664
    uts4*)
7665
      lt_prog_compiler_pic='-pic'
7666
      lt_prog_compiler_static='-Bstatic'
7667
      ;;
7668
 
7669
    *)
7670
      lt_prog_compiler_can_build_shared=no
7671
      ;;
7672
    esac
7673
  fi
7674
 
7675
case $host_os in
7676
  # For platforms which do not support PIC, -DPIC is meaningless:
7677
  *djgpp*)
7678
    lt_prog_compiler_pic=
7679
    ;;
7680
  *)
7681
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7682
    ;;
7683
esac
7684
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7685
$as_echo "$lt_prog_compiler_pic" >&6; }
7686
 
7687
 
7688
 
7689
 
7690
 
7691
 
7692
#
7693
# Check to make sure the PIC flag actually works.
7694
#
7695
if test -n "$lt_prog_compiler_pic"; then
7696
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7697
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7698
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7699
  $as_echo_n "(cached) " >&6
7700
else
7701
  lt_cv_prog_compiler_pic_works=no
7702
   ac_outfile=conftest.$ac_objext
7703
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7704
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7705
   # Insert the option either (1) after the last *FLAGS variable, or
7706
   # (2) before a word containing "conftest.", or (3) at the end.
7707
   # Note that $ac_compile itself does not contain backslashes and begins
7708
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7709
   # The option is referenced via a variable to avoid confusing sed.
7710
   lt_compile=`echo "$ac_compile" | $SED \
7711
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7712
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713
   -e 's:$: $lt_compiler_flag:'`
7714
   (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
7715
   (eval "$lt_compile" 2>conftest.err)
7716
   ac_status=$?
7717
   cat conftest.err >&5
7718
   echo "$as_me:7718: \$? = $ac_status" >&5
7719
   if (exit $ac_status) && test -s "$ac_outfile"; then
7720
     # The compiler can only warn and ignore the option if not recognized
7721
     # So say no if there are warnings other than the usual output.
7722
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7723
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7724
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7725
       lt_cv_prog_compiler_pic_works=yes
7726
     fi
7727
   fi
7728
   $RM conftest*
7729
 
7730
fi
7731
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7732
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7733
 
7734
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7735
    case $lt_prog_compiler_pic in
7736
     "" | " "*) ;;
7737
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7738
     esac
7739
else
7740
    lt_prog_compiler_pic=
7741
     lt_prog_compiler_can_build_shared=no
7742
fi
7743
 
7744
fi
7745
 
7746
 
7747
 
7748
 
7749
 
7750
 
7751
#
7752
# Check to make sure the static flag actually works.
7753
#
7754
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7755
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7756
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7757
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7758
  $as_echo_n "(cached) " >&6
7759
else
7760
  lt_cv_prog_compiler_static_works=no
7761
   save_LDFLAGS="$LDFLAGS"
7762
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7763
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7764
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7765
     # The linker can only warn and ignore the option if not recognized
7766
     # So say no if there are warnings
7767
     if test -s conftest.err; then
7768
       # Append any errors to the config.log.
7769
       cat conftest.err 1>&5
7770
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7771
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7772
       if diff conftest.exp conftest.er2 >/dev/null; then
7773
         lt_cv_prog_compiler_static_works=yes
7774
       fi
7775
     else
7776
       lt_cv_prog_compiler_static_works=yes
7777
     fi
7778
   fi
7779
   $RM -r conftest*
7780
   LDFLAGS="$save_LDFLAGS"
7781
 
7782
fi
7783
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7784
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7785
 
7786
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7787
    :
7788
else
7789
    lt_prog_compiler_static=
7790
fi
7791
 
7792
 
7793
 
7794
 
7795
 
7796
 
7797
 
7798
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7799
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7800
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7801
  $as_echo_n "(cached) " >&6
7802
else
7803
  lt_cv_prog_compiler_c_o=no
7804
   $RM -r conftest 2>/dev/null
7805
   mkdir conftest
7806
   cd conftest
7807
   mkdir out
7808
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7809
 
7810
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7811
   # Insert the option either (1) after the last *FLAGS variable, or
7812
   # (2) before a word containing "conftest.", or (3) at the end.
7813
   # Note that $ac_compile itself does not contain backslashes and begins
7814
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7815
   lt_compile=`echo "$ac_compile" | $SED \
7816
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7817
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7818
   -e 's:$: $lt_compiler_flag:'`
7819
   (eval echo "\"\$as_me:7819: $lt_compile\"" >&5)
7820
   (eval "$lt_compile" 2>out/conftest.err)
7821
   ac_status=$?
7822
   cat out/conftest.err >&5
7823
   echo "$as_me:7823: \$? = $ac_status" >&5
7824
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7825
   then
7826
     # The compiler can only warn and ignore the option if not recognized
7827
     # So say no if there are warnings
7828
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7829
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7830
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7831
       lt_cv_prog_compiler_c_o=yes
7832
     fi
7833
   fi
7834
   chmod u+w . 2>&5
7835
   $RM conftest*
7836
   # SGI C++ compiler will create directory out/ii_files/ for
7837
   # template instantiation
7838
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7839
   $RM out/* && rmdir out
7840
   cd ..
7841
   $RM -r conftest
7842
   $RM conftest*
7843
 
7844
fi
7845
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7846
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7847
 
7848
 
7849
 
7850
 
7851
 
7852
 
7853
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7854
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7855
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7856
  $as_echo_n "(cached) " >&6
7857
else
7858
  lt_cv_prog_compiler_c_o=no
7859
   $RM -r conftest 2>/dev/null
7860
   mkdir conftest
7861
   cd conftest
7862
   mkdir out
7863
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7864
 
7865
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7866
   # Insert the option either (1) after the last *FLAGS variable, or
7867
   # (2) before a word containing "conftest.", or (3) at the end.
7868
   # Note that $ac_compile itself does not contain backslashes and begins
7869
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7870
   lt_compile=`echo "$ac_compile" | $SED \
7871
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7872
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7873
   -e 's:$: $lt_compiler_flag:'`
7874
   (eval echo "\"\$as_me:7874: $lt_compile\"" >&5)
7875
   (eval "$lt_compile" 2>out/conftest.err)
7876
   ac_status=$?
7877
   cat out/conftest.err >&5
7878
   echo "$as_me:7878: \$? = $ac_status" >&5
7879
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7880
   then
7881
     # The compiler can only warn and ignore the option if not recognized
7882
     # So say no if there are warnings
7883
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7884
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7885
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7886
       lt_cv_prog_compiler_c_o=yes
7887
     fi
7888
   fi
7889
   chmod u+w . 2>&5
7890
   $RM conftest*
7891
   # SGI C++ compiler will create directory out/ii_files/ for
7892
   # template instantiation
7893
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7894
   $RM out/* && rmdir out
7895
   cd ..
7896
   $RM -r conftest
7897
   $RM conftest*
7898
 
7899
fi
7900
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7901
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7902
 
7903
 
7904
 
7905
 
7906
hard_links="nottested"
7907
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7908
  # do not overwrite the value of need_locks provided by the user
7909
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7910
$as_echo_n "checking if we can lock with hard links... " >&6; }
7911
  hard_links=yes
7912
  $RM conftest*
7913
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7914
  touch conftest.a
7915
  ln conftest.a conftest.b 2>&5 || hard_links=no
7916
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7917
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7918
$as_echo "$hard_links" >&6; }
7919
  if test "$hard_links" = no; then
7920
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7921
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7922
    need_locks=warn
7923
  fi
7924
else
7925
  need_locks=no
7926
fi
7927
 
7928
 
7929
 
7930
 
7931
 
7932
 
7933
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7934
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7935
 
7936
  runpath_var=
7937
  allow_undefined_flag=
7938
  always_export_symbols=no
7939
  archive_cmds=
7940
  archive_expsym_cmds=
7941
  compiler_needs_object=no
7942
  enable_shared_with_static_runtimes=no
7943
  export_dynamic_flag_spec=
7944
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7945
  hardcode_automatic=no
7946
  hardcode_direct=no
7947
  hardcode_direct_absolute=no
7948
  hardcode_libdir_flag_spec=
7949
  hardcode_libdir_flag_spec_ld=
7950
  hardcode_libdir_separator=
7951
  hardcode_minus_L=no
7952
  hardcode_shlibpath_var=unsupported
7953
  inherit_rpath=no
7954
  link_all_deplibs=unknown
7955
  module_cmds=
7956
  module_expsym_cmds=
7957
  old_archive_from_new_cmds=
7958
  old_archive_from_expsyms_cmds=
7959
  thread_safe_flag_spec=
7960
  whole_archive_flag_spec=
7961
  # include_expsyms should be a list of space-separated symbols to be *always*
7962
  # included in the symbol list
7963
  include_expsyms=
7964
  # exclude_expsyms can be an extended regexp of symbols to exclude
7965
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7966
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7967
  # as well as any symbol that contains `d'.
7968
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7969
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7970
  # platforms (ab)use it in PIC code, but their linkers get confused if
7971
  # the symbol is explicitly referenced.  Since portable code cannot
7972
  # rely on this symbol name, it's probably fine to never include it in
7973
  # preloaded symbol tables.
7974
  # Exclude shared library initialization/finalization symbols.
7975
  extract_expsyms_cmds=
7976
 
7977
  case $host_os in
7978
  cygwin* | mingw* | pw32* | cegcc*)
7979
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7980
    # When not using gcc, we currently assume that we are using
7981
    # Microsoft Visual C++.
7982
    if test "$GCC" != yes; then
7983
      with_gnu_ld=no
7984
    fi
7985
    ;;
7986
  interix*)
7987
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7988
    with_gnu_ld=yes
7989
    ;;
7990
  openbsd*)
7991
    with_gnu_ld=no
7992
    ;;
7993
  esac
7994
 
7995
  ld_shlibs=yes
7996
  if test "$with_gnu_ld" = yes; then
7997
    # If archive_cmds runs LD, not CC, wlarc should be empty
7998
    wlarc='${wl}'
7999
 
8000
    # Set some defaults for GNU ld with shared library support. These
8001
    # are reset later if shared libraries are not supported. Putting them
8002
    # here allows them to be overridden if necessary.
8003
    runpath_var=LD_RUN_PATH
8004
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8005
    export_dynamic_flag_spec='${wl}--export-dynamic'
8006
    # ancient GNU ld didn't support --whole-archive et. al.
8007
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8008
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8009
    else
8010
      whole_archive_flag_spec=
8011
    fi
8012
    supports_anon_versioning=no
8013
    case `$LD -v 2>&1` in
8014
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8015
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8016
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8017
      *\ 2.11.*) ;; # other 2.11 versions
8018
      *) supports_anon_versioning=yes ;;
8019
    esac
8020
 
8021
    # See if GNU ld supports shared libraries.
8022
    case $host_os in
8023
    aix[3-9]*)
8024
      # On AIX/PPC, the GNU linker is very broken
8025
      if test "$host_cpu" != ia64; then
8026
	ld_shlibs=no
8027
	cat <<_LT_EOF 1>&2
8028
 
8029
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8030
*** to be unable to reliably create shared libraries on AIX.
8031
*** Therefore, libtool is disabling shared libraries support.  If you
8032
*** really care for shared libraries, you may want to modify your PATH
8033
*** so that a non-GNU linker is found, and then restart.
8034
 
8035
_LT_EOF
8036
      fi
8037
      ;;
8038
 
8039
    amigaos*)
8040
      case $host_cpu in
8041
      powerpc)
8042
            # see comment about AmigaOS4 .so support
8043
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8044
            archive_expsym_cmds=''
8045
        ;;
8046
      m68k)
8047
            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)'
8048
            hardcode_libdir_flag_spec='-L$libdir'
8049
            hardcode_minus_L=yes
8050
        ;;
8051
      esac
8052
      ;;
8053
 
8054
    beos*)
8055
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8056
	allow_undefined_flag=unsupported
8057
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8058
	# support --undefined.  This deserves some investigation.  FIXME
8059
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8060
      else
8061
	ld_shlibs=no
8062
      fi
8063
      ;;
8064
 
8065
    cygwin* | mingw* | pw32* | cegcc*)
8066
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8067
      # as there is no search path for DLLs.
8068
      hardcode_libdir_flag_spec='-L$libdir'
8069
      allow_undefined_flag=unsupported
8070
      always_export_symbols=no
8071
      enable_shared_with_static_runtimes=yes
8072
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8073
 
8074
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8075
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8076
	# If the export-symbols file already is a .def file (1st line
8077
	# is EXPORTS), use it as is; otherwise, prepend...
8078
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8079
	  cp $export_symbols $output_objdir/$soname.def;
8080
	else
8081
	  echo EXPORTS > $output_objdir/$soname.def;
8082
	  cat $export_symbols >> $output_objdir/$soname.def;
8083
	fi~
8084
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8085
      else
8086
	ld_shlibs=no
8087
      fi
8088
      ;;
8089
 
8090
    interix[3-9]*)
8091
      hardcode_direct=no
8092
      hardcode_shlibpath_var=no
8093
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8094
      export_dynamic_flag_spec='${wl}-E'
8095
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8096
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8097
      # default) and relocated if they conflict, which is a slow very memory
8098
      # consuming and fragmenting process.  To avoid this, we pick a random,
8099
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8100
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8101
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8102
      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'
8103
      ;;
8104
 
8105
    gnu* | linux* | tpf* | k*bsd*-gnu)
8106
      tmp_diet=no
8107
      if test "$host_os" = linux-dietlibc; then
8108
	case $cc_basename in
8109
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8110
	esac
8111
      fi
8112
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8113
	 && test "$tmp_diet" = no
8114
      then
8115
	tmp_addflag=
8116
	tmp_sharedflag='-shared'
8117
	case $cc_basename,$host_cpu in
8118
        pgcc*)				# Portland Group C compiler
8119
	  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'
8120
	  tmp_addflag=' $pic_flag'
8121
	  ;;
8122
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8123
	  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'
8124
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8125
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8126
	  tmp_addflag=' -i_dynamic' ;;
8127
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8128
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8129
	ifc* | ifort*)			# Intel Fortran compiler
8130
	  tmp_addflag=' -nofor_main' ;;
8131
	lf95*)				# Lahey Fortran 8.1
8132
	  whole_archive_flag_spec=
8133
	  tmp_sharedflag='--shared' ;;
8134
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8135
	  tmp_sharedflag='-qmkshrobj'
8136
	  tmp_addflag= ;;
8137
	esac
8138
	case `$CC -V 2>&1 | sed 5q` in
8139
	*Sun\ C*)			# Sun C 5.9
8140
	  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'
8141
	  compiler_needs_object=yes
8142
	  tmp_sharedflag='-G' ;;
8143
	*Sun\ F*)			# Sun Fortran 8.3
8144
	  tmp_sharedflag='-G' ;;
8145
	esac
8146
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8147
 
8148
        if test "x$supports_anon_versioning" = xyes; then
8149
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8150
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8151
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8152
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8153
        fi
8154
 
8155
	case $cc_basename in
8156
	xlf*)
8157
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8158
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8159
	  hardcode_libdir_flag_spec=
8160
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8161
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8162
	  if test "x$supports_anon_versioning" = xyes; then
8163
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8164
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8165
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8166
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8167
	  fi
8168
	  ;;
8169
	esac
8170
      else
8171
        ld_shlibs=no
8172
      fi
8173
      ;;
8174
 
8175
    netbsd* | netbsdelf*-gnu)
8176
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8177
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8178
	wlarc=
8179
      else
8180
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8181
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8182
      fi
8183
      ;;
8184
 
8185
    solaris*)
8186
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8187
	ld_shlibs=no
8188
	cat <<_LT_EOF 1>&2
8189
 
8190
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8191
*** create shared libraries on Solaris systems.  Therefore, libtool
8192
*** is disabling shared libraries support.  We urge you to upgrade GNU
8193
*** binutils to release 2.9.1 or newer.  Another option is to modify
8194
*** your PATH or compiler configuration so that the native linker is
8195
*** used, and then restart.
8196
 
8197
_LT_EOF
8198
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8199
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8201
      else
8202
	ld_shlibs=no
8203
      fi
8204
      ;;
8205
 
8206
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8207
      case `$LD -v 2>&1` in
8208
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8209
	ld_shlibs=no
8210
	cat <<_LT_EOF 1>&2
8211
 
8212
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8213
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8214
*** is disabling shared libraries support.  We urge you to upgrade GNU
8215
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8216
*** your PATH or compiler configuration so that the native linker is
8217
*** used, and then restart.
8218
 
8219
_LT_EOF
8220
	;;
8221
	*)
8222
	  # For security reasons, it is highly recommended that you always
8223
	  # use absolute paths for naming shared libraries, and exclude the
8224
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8225
	  # requires that you compile everything twice, which is a pain.
8226
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8227
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8230
	  else
8231
	    ld_shlibs=no
8232
	  fi
8233
	;;
8234
      esac
8235
      ;;
8236
 
8237
    sunos4*)
8238
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8239
      wlarc=
8240
      hardcode_direct=yes
8241
      hardcode_shlibpath_var=no
8242
      ;;
8243
 
8244
    *)
8245
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8246
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8248
      else
8249
	ld_shlibs=no
8250
      fi
8251
      ;;
8252
    esac
8253
 
8254
    if test "$ld_shlibs" = no; then
8255
      runpath_var=
8256
      hardcode_libdir_flag_spec=
8257
      export_dynamic_flag_spec=
8258
      whole_archive_flag_spec=
8259
    fi
8260
  else
8261
    # PORTME fill in a description of your system's linker (not GNU ld)
8262
    case $host_os in
8263
    aix3*)
8264
      allow_undefined_flag=unsupported
8265
      always_export_symbols=yes
8266
      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'
8267
      # Note: this linker hardcodes the directories in LIBPATH if there
8268
      # are no directories specified by -L.
8269
      hardcode_minus_L=yes
8270
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8271
	# Neither direct hardcoding nor static linking is supported with a
8272
	# broken collect2.
8273
	hardcode_direct=unsupported
8274
      fi
8275
      ;;
8276
 
8277
    aix[4-9]*)
8278
      if test "$host_cpu" = ia64; then
8279
	# On IA64, the linker does run time linking by default, so we don't
8280
	# have to do anything special.
8281
	aix_use_runtimelinking=no
8282
	exp_sym_flag='-Bexport'
8283
	no_entry_flag=""
8284
      else
8285
	# If we're using GNU nm, then we don't want the "-C" option.
8286
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8287
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8288
	  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'
8289
	else
8290
	  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'
8291
	fi
8292
	aix_use_runtimelinking=no
8293
 
8294
	# Test if we are trying to use run time linking or normal
8295
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8296
	# need to do runtime linking.
8297
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8298
	  for ld_flag in $LDFLAGS; do
8299
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8300
	    aix_use_runtimelinking=yes
8301
	    break
8302
	  fi
8303
	  done
8304
	  ;;
8305
	esac
8306
 
8307
	exp_sym_flag='-bexport'
8308
	no_entry_flag='-bnoentry'
8309
      fi
8310
 
8311
      # When large executables or shared objects are built, AIX ld can
8312
      # have problems creating the table of contents.  If linking a library
8313
      # or program results in "error TOC overflow" add -mminimal-toc to
8314
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8315
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8316
 
8317
      archive_cmds=''
8318
      hardcode_direct=yes
8319
      hardcode_direct_absolute=yes
8320
      hardcode_libdir_separator=':'
8321
      link_all_deplibs=yes
8322
      file_list_spec='${wl}-f,'
8323
 
8324
      if test "$GCC" = yes; then
8325
	case $host_os in aix4.[012]|aix4.[012].*)
8326
	# We only want to do this on AIX 4.2 and lower, the check
8327
	# below for broken collect2 doesn't work under 4.3+
8328
	  collect2name=`${CC} -print-prog-name=collect2`
8329
	  if test -f "$collect2name" &&
8330
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8331
	  then
8332
	  # We have reworked collect2
8333
	  :
8334
	  else
8335
	  # We have old collect2
8336
	  hardcode_direct=unsupported
8337
	  # It fails to find uninstalled libraries when the uninstalled
8338
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8339
	  # to unsupported forces relinking
8340
	  hardcode_minus_L=yes
8341
	  hardcode_libdir_flag_spec='-L$libdir'
8342
	  hardcode_libdir_separator=
8343
	  fi
8344
	  ;;
8345
	esac
8346
	shared_flag='-shared'
8347
	if test "$aix_use_runtimelinking" = yes; then
8348
	  shared_flag="$shared_flag "'${wl}-G'
8349
	fi
8350
	link_all_deplibs=no
8351
      else
8352
	# not using gcc
8353
	if test "$host_cpu" = ia64; then
8354
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8355
	# chokes on -Wl,-G. The following line is correct:
8356
	  shared_flag='-G'
8357
	else
8358
	  if test "$aix_use_runtimelinking" = yes; then
8359
	    shared_flag='${wl}-G'
8360
	  else
8361
	    shared_flag='${wl}-bM:SRE'
8362
	  fi
8363
	fi
8364
      fi
8365
 
8366
      export_dynamic_flag_spec='${wl}-bexpall'
8367
      # It seems that -bexpall does not export symbols beginning with
8368
      # underscore (_), so it is better to generate a list of symbols to export.
8369
      always_export_symbols=yes
8370
      if test "$aix_use_runtimelinking" = yes; then
8371
	# Warning - without using the other runtime loading flags (-brtl),
8372
	# -berok will link without error, but may produce a broken library.
8373
	allow_undefined_flag='-berok'
8374
        # Determine the default libpath from the value encoded in an
8375
        # empty executable.
8376
        cat >conftest.$ac_ext <<_ACEOF
8377
/* confdefs.h.  */
8378
_ACEOF
8379
cat confdefs.h >>conftest.$ac_ext
8380
cat >>conftest.$ac_ext <<_ACEOF
8381
/* end confdefs.h.  */
8382
 
8383
int
8384
main ()
8385
{
8386
 
8387
  ;
8388
  return 0;
8389
}
8390
_ACEOF
8391
rm -f conftest.$ac_objext conftest$ac_exeext
8392
if { (ac_try="$ac_link"
8393
case "(($ac_try" in
8394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395
  *) ac_try_echo=$ac_try;;
8396
esac
8397
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8398
$as_echo "$ac_try_echo") >&5
8399
  (eval "$ac_link") 2>conftest.er1
8400
  ac_status=$?
8401
  grep -v '^ *+' conftest.er1 >conftest.err
8402
  rm -f conftest.er1
8403
  cat conftest.err >&5
8404
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405
  (exit $ac_status); } && {
8406
	 test -z "$ac_c_werror_flag" ||
8407
	 test ! -s conftest.err
8408
       } && test -s conftest$ac_exeext && {
8409
	 test "$cross_compiling" = yes ||
8410
	 $as_test_x conftest$ac_exeext
8411
       }; then
8412
 
8413
lt_aix_libpath_sed='
8414
    /Import File Strings/,/^$/ {
8415
	/^0/ {
8416
	    s/^0  *\(.*\)$/\1/
8417
	    p
8418
	}
8419
    }'
8420
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8421
# Check for a 64-bit object if we didn't find anything.
8422
if test -z "$aix_libpath"; then
8423
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424
fi
8425
else
8426
  $as_echo "$as_me: failed program was:" >&5
8427
sed 's/^/| /' conftest.$ac_ext >&5
8428
 
8429
 
8430
fi
8431
 
8432
rm -rf conftest.dSYM
8433
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8434
      conftest$ac_exeext conftest.$ac_ext
8435
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8436
 
8437
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8438
        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"
8439
      else
8440
	if test "$host_cpu" = ia64; then
8441
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8442
	  allow_undefined_flag="-z nodefs"
8443
	  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"
8444
	else
8445
	 # Determine the default libpath from the value encoded in an
8446
	 # empty executable.
8447
	 cat >conftest.$ac_ext <<_ACEOF
8448
/* confdefs.h.  */
8449
_ACEOF
8450
cat confdefs.h >>conftest.$ac_ext
8451
cat >>conftest.$ac_ext <<_ACEOF
8452
/* end confdefs.h.  */
8453
 
8454
int
8455
main ()
8456
{
8457
 
8458
  ;
8459
  return 0;
8460
}
8461
_ACEOF
8462
rm -f conftest.$ac_objext conftest$ac_exeext
8463
if { (ac_try="$ac_link"
8464
case "(($ac_try" in
8465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466
  *) ac_try_echo=$ac_try;;
8467
esac
8468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8469
$as_echo "$ac_try_echo") >&5
8470
  (eval "$ac_link") 2>conftest.er1
8471
  ac_status=$?
8472
  grep -v '^ *+' conftest.er1 >conftest.err
8473
  rm -f conftest.er1
8474
  cat conftest.err >&5
8475
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476
  (exit $ac_status); } && {
8477
	 test -z "$ac_c_werror_flag" ||
8478
	 test ! -s conftest.err
8479
       } && test -s conftest$ac_exeext && {
8480
	 test "$cross_compiling" = yes ||
8481
	 $as_test_x conftest$ac_exeext
8482
       }; then
8483
 
8484
lt_aix_libpath_sed='
8485
    /Import File Strings/,/^$/ {
8486
	/^0/ {
8487
	    s/^0  *\(.*\)$/\1/
8488
	    p
8489
	}
8490
    }'
8491
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492
# Check for a 64-bit object if we didn't find anything.
8493
if test -z "$aix_libpath"; then
8494
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8495
fi
8496
else
8497
  $as_echo "$as_me: failed program was:" >&5
8498
sed 's/^/| /' conftest.$ac_ext >&5
8499
 
8500
 
8501
fi
8502
 
8503
rm -rf conftest.dSYM
8504
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8505
      conftest$ac_exeext conftest.$ac_ext
8506
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507
 
8508
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509
	  # Warning - without using the other run time loading flags,
8510
	  # -berok will link without error, but may produce a broken library.
8511
	  no_undefined_flag=' ${wl}-bernotok'
8512
	  allow_undefined_flag=' ${wl}-berok'
8513
	  # Exported symbols can be pulled into shared objects from archives
8514
	  whole_archive_flag_spec='$convenience'
8515
	  archive_cmds_need_lc=yes
8516
	  # This is similar to how AIX traditionally builds its shared libraries.
8517
	  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'
8518
	fi
8519
      fi
8520
      ;;
8521
 
8522
    amigaos*)
8523
      case $host_cpu in
8524
      powerpc)
8525
            # see comment about AmigaOS4 .so support
8526
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527
            archive_expsym_cmds=''
8528
        ;;
8529
      m68k)
8530
            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)'
8531
            hardcode_libdir_flag_spec='-L$libdir'
8532
            hardcode_minus_L=yes
8533
        ;;
8534
      esac
8535
      ;;
8536
 
8537
    bsdi[45]*)
8538
      export_dynamic_flag_spec=-rdynamic
8539
      ;;
8540
 
8541
    cygwin* | mingw* | pw32* | cegcc*)
8542
      # When not using gcc, we currently assume that we are using
8543
      # Microsoft Visual C++.
8544
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8545
      # no search path for DLLs.
8546
      hardcode_libdir_flag_spec=' '
8547
      allow_undefined_flag=unsupported
8548
      # Tell ltmain to make .lib files, not .a files.
8549
      libext=lib
8550
      # Tell ltmain to make .dll files, not .so files.
8551
      shrext_cmds=".dll"
8552
      # FIXME: Setting linknames here is a bad hack.
8553
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8554
      # The linker will automatically build a .lib file if we build a DLL.
8555
      old_archive_from_new_cmds='true'
8556
      # FIXME: Should let the user specify the lib program.
8557
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8558
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8559
      enable_shared_with_static_runtimes=yes
8560
      ;;
8561
 
8562
    darwin* | rhapsody*)
8563
 
8564
 
8565
  archive_cmds_need_lc=no
8566
  hardcode_direct=no
8567
  hardcode_automatic=yes
8568
  hardcode_shlibpath_var=unsupported
8569
  whole_archive_flag_spec=''
8570
  link_all_deplibs=yes
8571
  allow_undefined_flag="$_lt_dar_allow_undefined"
8572
  case $cc_basename in
8573
     ifort*) _lt_dar_can_shared=yes ;;
8574
     *) _lt_dar_can_shared=$GCC ;;
8575
  esac
8576
  if test "$_lt_dar_can_shared" = "yes"; then
8577
    output_verbose_link_cmd=echo
8578
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8579
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8580
    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}"
8581
    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}"
8582
 
8583
  else
8584
  ld_shlibs=no
8585
  fi
8586
 
8587
      ;;
8588
 
8589
    dgux*)
8590
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591
      hardcode_libdir_flag_spec='-L$libdir'
8592
      hardcode_shlibpath_var=no
8593
      ;;
8594
 
8595
    freebsd1*)
8596
      ld_shlibs=no
8597
      ;;
8598
 
8599
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8600
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8601
    # does not break anything, and helps significantly (at the cost of a little
8602
    # extra space).
8603
    freebsd2.2*)
8604
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8605
      hardcode_libdir_flag_spec='-R$libdir'
8606
      hardcode_direct=yes
8607
      hardcode_shlibpath_var=no
8608
      ;;
8609
 
8610
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8611
    freebsd2*)
8612
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8613
      hardcode_direct=yes
8614
      hardcode_minus_L=yes
8615
      hardcode_shlibpath_var=no
8616
      ;;
8617
 
8618
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8619
    freebsd* | dragonfly*)
8620
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8621
      hardcode_libdir_flag_spec='-R$libdir'
8622
      hardcode_direct=yes
8623
      hardcode_shlibpath_var=no
8624
      ;;
8625
 
8626
    hpux9*)
8627
      if test "$GCC" = yes; then
8628
	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'
8629
      else
8630
	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'
8631
      fi
8632
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8633
      hardcode_libdir_separator=:
8634
      hardcode_direct=yes
8635
 
8636
      # hardcode_minus_L: Not really in the search PATH,
8637
      # but as the default location of the library.
8638
      hardcode_minus_L=yes
8639
      export_dynamic_flag_spec='${wl}-E'
8640
      ;;
8641
 
8642
    hpux10*)
8643
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8644
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8645
      else
8646
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8647
      fi
8648
      if test "$with_gnu_ld" = no; then
8649
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650
	hardcode_libdir_flag_spec_ld='+b $libdir'
8651
	hardcode_libdir_separator=:
8652
	hardcode_direct=yes
8653
	hardcode_direct_absolute=yes
8654
	export_dynamic_flag_spec='${wl}-E'
8655
	# hardcode_minus_L: Not really in the search PATH,
8656
	# but as the default location of the library.
8657
	hardcode_minus_L=yes
8658
      fi
8659
      ;;
8660
 
8661
    hpux11*)
8662
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8663
	case $host_cpu in
8664
	hppa*64*)
8665
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8666
	  ;;
8667
	ia64*)
8668
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8669
	  ;;
8670
	*)
8671
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8672
	  ;;
8673
	esac
8674
      else
8675
	case $host_cpu in
8676
	hppa*64*)
8677
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678
	  ;;
8679
	ia64*)
8680
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8681
	  ;;
8682
	*)
8683
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8684
	  ;;
8685
	esac
8686
      fi
8687
      if test "$with_gnu_ld" = no; then
8688
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8689
	hardcode_libdir_separator=:
8690
 
8691
	case $host_cpu in
8692
	hppa*64*|ia64*)
8693
	  hardcode_direct=no
8694
	  hardcode_shlibpath_var=no
8695
	  ;;
8696
	*)
8697
	  hardcode_direct=yes
8698
	  hardcode_direct_absolute=yes
8699
	  export_dynamic_flag_spec='${wl}-E'
8700
 
8701
	  # hardcode_minus_L: Not really in the search PATH,
8702
	  # but as the default location of the library.
8703
	  hardcode_minus_L=yes
8704
	  ;;
8705
	esac
8706
      fi
8707
      ;;
8708
 
8709
    irix5* | irix6* | nonstopux*)
8710
      if test "$GCC" = yes; then
8711
	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'
8712
	# Try to use the -exported_symbol ld option, if it does not
8713
	# work, assume that -exports_file does not work either and
8714
	# implicitly export all symbols.
8715
        save_LDFLAGS="$LDFLAGS"
8716
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8717
        cat >conftest.$ac_ext <<_ACEOF
8718
int foo(void) {}
8719
_ACEOF
8720
rm -f conftest.$ac_objext conftest$ac_exeext
8721
if { (ac_try="$ac_link"
8722
case "(($ac_try" in
8723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724
  *) ac_try_echo=$ac_try;;
8725
esac
8726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8727
$as_echo "$ac_try_echo") >&5
8728
  (eval "$ac_link") 2>conftest.er1
8729
  ac_status=$?
8730
  grep -v '^ *+' conftest.er1 >conftest.err
8731
  rm -f conftest.er1
8732
  cat conftest.err >&5
8733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734
  (exit $ac_status); } && {
8735
	 test -z "$ac_c_werror_flag" ||
8736
	 test ! -s conftest.err
8737
       } && test -s conftest$ac_exeext && {
8738
	 test "$cross_compiling" = yes ||
8739
	 $as_test_x conftest$ac_exeext
8740
       }; then
8741
  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'
8742
 
8743
else
8744
  $as_echo "$as_me: failed program was:" >&5
8745
sed 's/^/| /' conftest.$ac_ext >&5
8746
 
8747
 
8748
fi
8749
 
8750
rm -rf conftest.dSYM
8751
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8752
      conftest$ac_exeext conftest.$ac_ext
8753
        LDFLAGS="$save_LDFLAGS"
8754
      else
8755
	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'
8756
	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'
8757
      fi
8758
      archive_cmds_need_lc='no'
8759
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760
      hardcode_libdir_separator=:
8761
      inherit_rpath=yes
8762
      link_all_deplibs=yes
8763
      ;;
8764
 
8765
    netbsd* | netbsdelf*-gnu)
8766
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8767
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8768
      else
8769
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8770
      fi
8771
      hardcode_libdir_flag_spec='-R$libdir'
8772
      hardcode_direct=yes
8773
      hardcode_shlibpath_var=no
8774
      ;;
8775
 
8776
    newsos6)
8777
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778
      hardcode_direct=yes
8779
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780
      hardcode_libdir_separator=:
8781
      hardcode_shlibpath_var=no
8782
      ;;
8783
 
8784
    *nto* | *qnx*)
8785
      ;;
8786
 
8787
    openbsd*)
8788
      if test -f /usr/libexec/ld.so; then
8789
	hardcode_direct=yes
8790
	hardcode_shlibpath_var=no
8791
	hardcode_direct_absolute=yes
8792
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8793
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8794
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8795
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8796
	  export_dynamic_flag_spec='${wl}-E'
8797
	else
8798
	  case $host_os in
8799
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8800
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8801
	     hardcode_libdir_flag_spec='-R$libdir'
8802
	     ;;
8803
	   *)
8804
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8805
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806
	     ;;
8807
	  esac
8808
	fi
8809
      else
8810
	ld_shlibs=no
8811
      fi
8812
      ;;
8813
 
8814
    os2*)
8815
      hardcode_libdir_flag_spec='-L$libdir'
8816
      hardcode_minus_L=yes
8817
      allow_undefined_flag=unsupported
8818
      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'
8819
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8820
      ;;
8821
 
8822
    osf3*)
8823
      if test "$GCC" = yes; then
8824
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8825
	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'
8826
      else
8827
	allow_undefined_flag=' -expect_unresolved \*'
8828
	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'
8829
      fi
8830
      archive_cmds_need_lc='no'
8831
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832
      hardcode_libdir_separator=:
8833
      ;;
8834
 
8835
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8836
      if test "$GCC" = yes; then
8837
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8838
	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'
8839
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840
      else
8841
	allow_undefined_flag=' -expect_unresolved \*'
8842
	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'
8843
	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~
8844
	$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'
8845
 
8846
	# Both c and cxx compiler support -rpath directly
8847
	hardcode_libdir_flag_spec='-rpath $libdir'
8848
      fi
8849
      archive_cmds_need_lc='no'
8850
      hardcode_libdir_separator=:
8851
      ;;
8852
 
8853
    solaris*)
8854
      no_undefined_flag=' -z defs'
8855
      if test "$GCC" = yes; then
8856
	wlarc='${wl}'
8857
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8859
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8860
      else
8861
	case `$CC -V 2>&1` in
8862
	*"Compilers 5.0"*)
8863
	  wlarc=''
8864
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8866
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8867
	  ;;
8868
	*)
8869
	  wlarc='${wl}'
8870
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8871
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8872
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8873
	  ;;
8874
	esac
8875
      fi
8876
      hardcode_libdir_flag_spec='-R$libdir'
8877
      hardcode_shlibpath_var=no
8878
      case $host_os in
8879
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8880
      *)
8881
	# The compiler driver will combine and reorder linker options,
8882
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8883
	# but is careful enough not to reorder.
8884
	# Supported since Solaris 2.6 (maybe 2.5.1?)
8885
	if test "$GCC" = yes; then
8886
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8887
	else
8888
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8889
	fi
8890
	;;
8891
      esac
8892
      link_all_deplibs=yes
8893
      ;;
8894
 
8895
    sunos4*)
8896
      if test "x$host_vendor" = xsequent; then
8897
	# Use $CC to link under sequent, because it throws in some extra .o
8898
	# files that make .init and .fini sections work.
8899
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8900
      else
8901
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8902
      fi
8903
      hardcode_libdir_flag_spec='-L$libdir'
8904
      hardcode_direct=yes
8905
      hardcode_minus_L=yes
8906
      hardcode_shlibpath_var=no
8907
      ;;
8908
 
8909
    sysv4)
8910
      case $host_vendor in
8911
	sni)
8912
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913
	  hardcode_direct=yes # is this really true???
8914
	;;
8915
	siemens)
8916
	  ## LD is ld it makes a PLAMLIB
8917
	  ## CC just makes a GrossModule.
8918
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8919
	  reload_cmds='$CC -r -o $output$reload_objs'
8920
	  hardcode_direct=no
8921
        ;;
8922
	motorola)
8923
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8925
	;;
8926
      esac
8927
      runpath_var='LD_RUN_PATH'
8928
      hardcode_shlibpath_var=no
8929
      ;;
8930
 
8931
    sysv4.3*)
8932
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933
      hardcode_shlibpath_var=no
8934
      export_dynamic_flag_spec='-Bexport'
8935
      ;;
8936
 
8937
    sysv4*MP*)
8938
      if test -d /usr/nec; then
8939
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940
	hardcode_shlibpath_var=no
8941
	runpath_var=LD_RUN_PATH
8942
	hardcode_runpath_var=yes
8943
	ld_shlibs=yes
8944
      fi
8945
      ;;
8946
 
8947
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8948
      no_undefined_flag='${wl}-z,text'
8949
      archive_cmds_need_lc=no
8950
      hardcode_shlibpath_var=no
8951
      runpath_var='LD_RUN_PATH'
8952
 
8953
      if test "$GCC" = yes; then
8954
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956
      else
8957
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8958
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8959
      fi
8960
      ;;
8961
 
8962
    sysv5* | sco3.2v5* | sco5v6*)
8963
      # Note: We can NOT use -z defs as we might desire, because we do not
8964
      # link with -lc, and that would cause any symbols used from libc to
8965
      # always be unresolved, which means just about no library would
8966
      # ever link correctly.  If we're not using GNU ld we use -z text
8967
      # though, which does catch some bad symbols but isn't as heavy-handed
8968
      # as -z defs.
8969
      no_undefined_flag='${wl}-z,text'
8970
      allow_undefined_flag='${wl}-z,nodefs'
8971
      archive_cmds_need_lc=no
8972
      hardcode_shlibpath_var=no
8973
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8974
      hardcode_libdir_separator=':'
8975
      link_all_deplibs=yes
8976
      export_dynamic_flag_spec='${wl}-Bexport'
8977
      runpath_var='LD_RUN_PATH'
8978
 
8979
      if test "$GCC" = yes; then
8980
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982
      else
8983
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985
      fi
8986
      ;;
8987
 
8988
    uts4*)
8989
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990
      hardcode_libdir_flag_spec='-L$libdir'
8991
      hardcode_shlibpath_var=no
8992
      ;;
8993
 
8994
    *)
8995
      ld_shlibs=no
8996
      ;;
8997
    esac
8998
 
8999
    if test x$host_vendor = xsni; then
9000
      case $host in
9001
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9002
	export_dynamic_flag_spec='${wl}-Blargedynsym'
9003
	;;
9004
      esac
9005
    fi
9006
  fi
9007
 
9008
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9009
$as_echo "$ld_shlibs" >&6; }
9010
test "$ld_shlibs" = no && can_build_shared=no
9011
 
9012
with_gnu_ld=$with_gnu_ld
9013
 
9014
 
9015
 
9016
 
9017
 
9018
 
9019
 
9020
 
9021
 
9022
 
9023
 
9024
 
9025
 
9026
 
9027
 
9028
#
9029
# Do we need to explicitly link libc?
9030
#
9031
case "x$archive_cmds_need_lc" in
9032
x|xyes)
9033
  # Assume -lc should be added
9034
  archive_cmds_need_lc=yes
9035
 
9036
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9037
    case $archive_cmds in
9038
    *'~'*)
9039
      # FIXME: we may have to deal with multi-command sequences.
9040
      ;;
9041
    '$CC '*)
9042
      # Test whether the compiler implicitly links with -lc since on some
9043
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9044
      # to ld, don't add -lc before -lgcc.
9045
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9046
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9047
      $RM conftest*
9048
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
 
9050
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051
  (eval $ac_compile) 2>&5
9052
  ac_status=$?
9053
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054
  (exit $ac_status); } 2>conftest.err; then
9055
        soname=conftest
9056
        lib=conftest
9057
        libobjs=conftest.$ac_objext
9058
        deplibs=
9059
        wl=$lt_prog_compiler_wl
9060
	pic_flag=$lt_prog_compiler_pic
9061
        compiler_flags=-v
9062
        linker_flags=-v
9063
        verstring=
9064
        output_objdir=.
9065
        libname=conftest
9066
        lt_save_allow_undefined_flag=$allow_undefined_flag
9067
        allow_undefined_flag=
9068
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9069
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9070
  ac_status=$?
9071
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
  (exit $ac_status); }
9073
        then
9074
	  archive_cmds_need_lc=no
9075
        else
9076
	  archive_cmds_need_lc=yes
9077
        fi
9078
        allow_undefined_flag=$lt_save_allow_undefined_flag
9079
      else
9080
        cat conftest.err 1>&5
9081
      fi
9082
      $RM conftest*
9083
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9084
$as_echo "$archive_cmds_need_lc" >&6; }
9085
      ;;
9086
    esac
9087
  fi
9088
  ;;
9089
esac
9090
 
9091
 
9092
 
9093
 
9094
 
9095
 
9096
 
9097
 
9098
 
9099
 
9100
 
9101
 
9102
 
9103
 
9104
 
9105
 
9106
 
9107
 
9108
 
9109
 
9110
 
9111
 
9112
 
9113
 
9114
 
9115
 
9116
 
9117
 
9118
 
9119
 
9120
 
9121
 
9122
 
9123
 
9124
 
9125
 
9126
 
9127
 
9128
 
9129
 
9130
 
9131
 
9132
 
9133
 
9134
 
9135
 
9136
 
9137
 
9138
 
9139
 
9140
 
9141
 
9142
 
9143
 
9144
 
9145
 
9146
 
9147
 
9148
 
9149
 
9150
 
9151
 
9152
 
9153
 
9154
 
9155
 
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
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9248
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9249
 
9250
if test "$GCC" = yes; then
9251
  case $host_os in
9252
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9253
    *) lt_awk_arg="/^libraries:/" ;;
9254
  esac
9255
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9257
    # if the path contains ";" then we assume it to be the separator
9258
    # otherwise default to the standard path separator (i.e. ":") - it is
9259
    # assumed that no part of a normal pathname contains ";" but that should
9260
    # okay in the real world where ";" in dirpaths is itself problematic.
9261
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9262
  else
9263
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9264
  fi
9265
  # Ok, now we have the path, separated by spaces, we can step through it
9266
  # and add multilib dir if necessary.
9267
  lt_tmp_lt_search_path_spec=
9268
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9269
  for lt_sys_path in $lt_search_path_spec; do
9270
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9271
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9272
    else
9273
      test -d "$lt_sys_path" && \
9274
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9275
    fi
9276
  done
9277
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9278
BEGIN {RS=" "; FS="/|\n";} {
9279
  lt_foo="";
9280
  lt_count=0;
9281
  for (lt_i = NF; lt_i > 0; lt_i--) {
9282
    if ($lt_i != "" && $lt_i != ".") {
9283
      if ($lt_i == "..") {
9284
        lt_count++;
9285
      } else {
9286
        if (lt_count == 0) {
9287
          lt_foo="/" $lt_i lt_foo;
9288
        } else {
9289
          lt_count--;
9290
        }
9291
      }
9292
    }
9293
  }
9294
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9295
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9296
}'`
9297
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9298
else
9299
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9300
fi
9301
library_names_spec=
9302
libname_spec='lib$name'
9303
soname_spec=
9304
shrext_cmds=".so"
9305
postinstall_cmds=
9306
postuninstall_cmds=
9307
finish_cmds=
9308
finish_eval=
9309
shlibpath_var=
9310
shlibpath_overrides_runpath=unknown
9311
version_type=none
9312
dynamic_linker="$host_os ld.so"
9313
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9314
need_lib_prefix=unknown
9315
hardcode_into_libs=no
9316
 
9317
# when you set need_version to no, make sure it does not cause -set_version
9318
# flags to be left without arguments
9319
need_version=unknown
9320
 
9321
case $host_os in
9322
aix3*)
9323
  version_type=linux
9324
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9325
  shlibpath_var=LIBPATH
9326
 
9327
  # AIX 3 has no versioning support, so we append a major version to the name.
9328
  soname_spec='${libname}${release}${shared_ext}$major'
9329
  ;;
9330
 
9331
aix[4-9]*)
9332
  version_type=linux
9333
  need_lib_prefix=no
9334
  need_version=no
9335
  hardcode_into_libs=yes
9336
  if test "$host_cpu" = ia64; then
9337
    # AIX 5 supports IA64
9338
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9339
    shlibpath_var=LD_LIBRARY_PATH
9340
  else
9341
    # With GCC up to 2.95.x, collect2 would create an import file
9342
    # for dependence libraries.  The import file would start with
9343
    # the line `#! .'.  This would cause the generated library to
9344
    # depend on `.', always an invalid library.  This was fixed in
9345
    # development snapshots of GCC prior to 3.0.
9346
    case $host_os in
9347
      aix4 | aix4.[01] | aix4.[01].*)
9348
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9349
	   echo ' yes '
9350
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9351
	:
9352
      else
9353
	can_build_shared=no
9354
      fi
9355
      ;;
9356
    esac
9357
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9358
    # soname into executable. Probably we can add versioning support to
9359
    # collect2, so additional links can be useful in future.
9360
    if test "$aix_use_runtimelinking" = yes; then
9361
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9362
      # instead of lib<name>.a to let people know that these are not
9363
      # typical AIX shared libraries.
9364
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365
    else
9366
      # We preserve .a as extension for shared libraries through AIX4.2
9367
      # and later when we are not doing run time linking.
9368
      library_names_spec='${libname}${release}.a $libname.a'
9369
      soname_spec='${libname}${release}${shared_ext}$major'
9370
    fi
9371
    shlibpath_var=LIBPATH
9372
  fi
9373
  ;;
9374
 
9375
amigaos*)
9376
  case $host_cpu in
9377
  powerpc)
9378
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9379
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9380
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381
    ;;
9382
  m68k)
9383
    library_names_spec='$libname.ixlibrary $libname.a'
9384
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9385
    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'
9386
    ;;
9387
  esac
9388
  ;;
9389
 
9390
beos*)
9391
  library_names_spec='${libname}${shared_ext}'
9392
  dynamic_linker="$host_os ld.so"
9393
  shlibpath_var=LIBRARY_PATH
9394
  ;;
9395
 
9396
bsdi[45]*)
9397
  version_type=linux
9398
  need_version=no
9399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400
  soname_spec='${libname}${release}${shared_ext}$major'
9401
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9402
  shlibpath_var=LD_LIBRARY_PATH
9403
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9404
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9405
  # the default ld.so.conf also contains /usr/contrib/lib and
9406
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9407
  # libtool to hard-code these into programs
9408
  ;;
9409
 
9410
cygwin* | mingw* | pw32* | cegcc*)
9411
  version_type=windows
9412
  shrext_cmds=".dll"
9413
  need_version=no
9414
  need_lib_prefix=no
9415
 
9416
  case $GCC,$host_os in
9417
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9418
    library_names_spec='$libname.dll.a'
9419
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9420
    postinstall_cmds='base_file=`basename \${file}`~
9421
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9422
      dldir=$destdir/`dirname \$dlpath`~
9423
      test -d \$dldir || mkdir -p \$dldir~
9424
      $install_prog $dir/$dlname \$dldir/$dlname~
9425
      chmod a+x \$dldir/$dlname~
9426
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9427
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9428
      fi'
9429
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9430
      dlpath=$dir/\$dldll~
9431
       $RM \$dlpath'
9432
    shlibpath_overrides_runpath=yes
9433
 
9434
    case $host_os in
9435
    cygwin*)
9436
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9437
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9438
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9439
      ;;
9440
    mingw* | cegcc*)
9441
      # MinGW DLLs use traditional 'lib' prefix
9442
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9444
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9445
        # It is most probably a Windows format PATH printed by
9446
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9447
        # path with ; separators, and with drive letters. We can handle the
9448
        # drive letters (cygwin fileutils understands them), so leave them,
9449
        # especially as we might pass files found there to a mingw objdump,
9450
        # which wouldn't understand a cygwinified path. Ahh.
9451
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9452
      else
9453
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9454
      fi
9455
      ;;
9456
    pw32*)
9457
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9458
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9459
      ;;
9460
    esac
9461
    ;;
9462
 
9463
  *)
9464
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9465
    ;;
9466
  esac
9467
  dynamic_linker='Win32 ld.exe'
9468
  # FIXME: first we should search . and the directory the executable is in
9469
  shlibpath_var=PATH
9470
  ;;
9471
 
9472
darwin* | rhapsody*)
9473
  dynamic_linker="$host_os dyld"
9474
  version_type=darwin
9475
  need_lib_prefix=no
9476
  need_version=no
9477
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9478
  soname_spec='${libname}${release}${major}$shared_ext'
9479
  shlibpath_overrides_runpath=yes
9480
  shlibpath_var=DYLD_LIBRARY_PATH
9481
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9482
 
9483
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9484
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9485
  ;;
9486
 
9487
dgux*)
9488
  version_type=linux
9489
  need_lib_prefix=no
9490
  need_version=no
9491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9492
  soname_spec='${libname}${release}${shared_ext}$major'
9493
  shlibpath_var=LD_LIBRARY_PATH
9494
  ;;
9495
 
9496
freebsd1*)
9497
  dynamic_linker=no
9498
  ;;
9499
 
9500
freebsd* | dragonfly*)
9501
  # DragonFly does not have aout.  When/if they implement a new
9502
  # versioning mechanism, adjust this.
9503
  if test -x /usr/bin/objformat; then
9504
    objformat=`/usr/bin/objformat`
9505
  else
9506
    case $host_os in
9507
    freebsd[123]*) objformat=aout ;;
9508
    *) objformat=elf ;;
9509
    esac
9510
  fi
9511
  version_type=freebsd-$objformat
9512
  case $version_type in
9513
    freebsd-elf*)
9514
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9515
      need_version=no
9516
      need_lib_prefix=no
9517
      ;;
9518
    freebsd-*)
9519
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9520
      need_version=yes
9521
      ;;
9522
  esac
9523
  shlibpath_var=LD_LIBRARY_PATH
9524
  case $host_os in
9525
  freebsd2*)
9526
    shlibpath_overrides_runpath=yes
9527
    ;;
9528
  freebsd3.[01]* | freebsdelf3.[01]*)
9529
    shlibpath_overrides_runpath=yes
9530
    hardcode_into_libs=yes
9531
    ;;
9532
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9533
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9534
    shlibpath_overrides_runpath=no
9535
    hardcode_into_libs=yes
9536
    ;;
9537
  *) # from 4.6 on, and DragonFly
9538
    shlibpath_overrides_runpath=yes
9539
    hardcode_into_libs=yes
9540
    ;;
9541
  esac
9542
  ;;
9543
 
9544
gnu*)
9545
  version_type=linux
9546
  need_lib_prefix=no
9547
  need_version=no
9548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9549
  soname_spec='${libname}${release}${shared_ext}$major'
9550
  shlibpath_var=LD_LIBRARY_PATH
9551
  hardcode_into_libs=yes
9552
  ;;
9553
 
9554
hpux9* | hpux10* | hpux11*)
9555
  # Give a soname corresponding to the major version so that dld.sl refuses to
9556
  # link against other versions.
9557
  version_type=sunos
9558
  need_lib_prefix=no
9559
  need_version=no
9560
  case $host_cpu in
9561
  ia64*)
9562
    shrext_cmds='.so'
9563
    hardcode_into_libs=yes
9564
    dynamic_linker="$host_os dld.so"
9565
    shlibpath_var=LD_LIBRARY_PATH
9566
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9567
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568
    soname_spec='${libname}${release}${shared_ext}$major'
9569
    if test "X$HPUX_IA64_MODE" = X32; then
9570
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9571
    else
9572
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9573
    fi
9574
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9575
    ;;
9576
  hppa*64*)
9577
    shrext_cmds='.sl'
9578
    hardcode_into_libs=yes
9579
    dynamic_linker="$host_os dld.sl"
9580
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9581
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9582
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583
    soname_spec='${libname}${release}${shared_ext}$major'
9584
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9585
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9586
    ;;
9587
  *)
9588
    shrext_cmds='.sl'
9589
    dynamic_linker="$host_os dld.sl"
9590
    shlibpath_var=SHLIB_PATH
9591
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9592
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593
    soname_spec='${libname}${release}${shared_ext}$major'
9594
    ;;
9595
  esac
9596
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9597
  postinstall_cmds='chmod 555 $lib'
9598
  ;;
9599
 
9600
interix[3-9]*)
9601
  version_type=linux
9602
  need_lib_prefix=no
9603
  need_version=no
9604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605
  soname_spec='${libname}${release}${shared_ext}$major'
9606
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9607
  shlibpath_var=LD_LIBRARY_PATH
9608
  shlibpath_overrides_runpath=no
9609
  hardcode_into_libs=yes
9610
  ;;
9611
 
9612
irix5* | irix6* | nonstopux*)
9613
  case $host_os in
9614
    nonstopux*) version_type=nonstopux ;;
9615
    *)
9616
	if test "$lt_cv_prog_gnu_ld" = yes; then
9617
		version_type=linux
9618
	else
9619
		version_type=irix
9620
	fi ;;
9621
  esac
9622
  need_lib_prefix=no
9623
  need_version=no
9624
  soname_spec='${libname}${release}${shared_ext}$major'
9625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9626
  case $host_os in
9627
  irix5* | nonstopux*)
9628
    libsuff= shlibsuff=
9629
    ;;
9630
  *)
9631
    case $LD in # libtool.m4 will add one of these switches to LD
9632
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9633
      libsuff= shlibsuff= libmagic=32-bit;;
9634
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9635
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9636
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9637
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9638
    *) libsuff= shlibsuff= libmagic=never-match;;
9639
    esac
9640
    ;;
9641
  esac
9642
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9643
  shlibpath_overrides_runpath=no
9644
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9645
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9646
  hardcode_into_libs=yes
9647
  ;;
9648
 
9649
# No shared lib support for Linux oldld, aout, or coff.
9650
linux*oldld* | linux*aout* | linux*coff*)
9651
  dynamic_linker=no
9652
  ;;
9653
 
9654
# This must be Linux ELF.
9655
linux* | k*bsd*-gnu)
9656
  version_type=linux
9657
  need_lib_prefix=no
9658
  need_version=no
9659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660
  soname_spec='${libname}${release}${shared_ext}$major'
9661
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9662
  shlibpath_var=LD_LIBRARY_PATH
9663
  shlibpath_overrides_runpath=no
9664
  # Some binutils ld are patched to set DT_RUNPATH
9665
  save_LDFLAGS=$LDFLAGS
9666
  save_libdir=$libdir
9667
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9668
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9669
  cat >conftest.$ac_ext <<_ACEOF
9670
/* confdefs.h.  */
9671
_ACEOF
9672
cat confdefs.h >>conftest.$ac_ext
9673
cat >>conftest.$ac_ext <<_ACEOF
9674
/* end confdefs.h.  */
9675
 
9676
int
9677
main ()
9678
{
9679
 
9680
  ;
9681
  return 0;
9682
}
9683
_ACEOF
9684
rm -f conftest.$ac_objext conftest$ac_exeext
9685
if { (ac_try="$ac_link"
9686
case "(($ac_try" in
9687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688
  *) ac_try_echo=$ac_try;;
9689
esac
9690
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9691
$as_echo "$ac_try_echo") >&5
9692
  (eval "$ac_link") 2>conftest.er1
9693
  ac_status=$?
9694
  grep -v '^ *+' conftest.er1 >conftest.err
9695
  rm -f conftest.er1
9696
  cat conftest.err >&5
9697
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698
  (exit $ac_status); } && {
9699
	 test -z "$ac_c_werror_flag" ||
9700
	 test ! -s conftest.err
9701
       } && test -s conftest$ac_exeext && {
9702
	 test "$cross_compiling" = yes ||
9703
	 $as_test_x conftest$ac_exeext
9704
       }; then
9705
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9706
  shlibpath_overrides_runpath=yes
9707
fi
9708
 
9709
else
9710
  $as_echo "$as_me: failed program was:" >&5
9711
sed 's/^/| /' conftest.$ac_ext >&5
9712
 
9713
 
9714
fi
9715
 
9716
rm -rf conftest.dSYM
9717
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9718
      conftest$ac_exeext conftest.$ac_ext
9719
  LDFLAGS=$save_LDFLAGS
9720
  libdir=$save_libdir
9721
 
9722
  # This implies no fast_install, which is unacceptable.
9723
  # Some rework will be needed to allow for fast_install
9724
  # before this can be enabled.
9725
  hardcode_into_libs=yes
9726
 
9727
  # Append ld.so.conf contents to the search path
9728
  if test -f /etc/ld.so.conf; then
9729
    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' ' '`
9730
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9731
  fi
9732
 
9733
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9734
  # powerpc, because MkLinux only supported shared libraries with the
9735
  # GNU dynamic linker.  Since this was broken with cross compilers,
9736
  # most powerpc-linux boxes support dynamic linking these days and
9737
  # people can always --disable-shared, the test was removed, and we
9738
  # assume the GNU/Linux dynamic linker is in use.
9739
  dynamic_linker='GNU/Linux ld.so'
9740
  ;;
9741
 
9742
netbsdelf*-gnu)
9743
  version_type=linux
9744
  need_lib_prefix=no
9745
  need_version=no
9746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9747
  soname_spec='${libname}${release}${shared_ext}$major'
9748
  shlibpath_var=LD_LIBRARY_PATH
9749
  shlibpath_overrides_runpath=no
9750
  hardcode_into_libs=yes
9751
  dynamic_linker='NetBSD ld.elf_so'
9752
  ;;
9753
 
9754
netbsd*)
9755
  version_type=sunos
9756
  need_lib_prefix=no
9757
  need_version=no
9758
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9759
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9760
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9761
    dynamic_linker='NetBSD (a.out) ld.so'
9762
  else
9763
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9764
    soname_spec='${libname}${release}${shared_ext}$major'
9765
    dynamic_linker='NetBSD ld.elf_so'
9766
  fi
9767
  shlibpath_var=LD_LIBRARY_PATH
9768
  shlibpath_overrides_runpath=yes
9769
  hardcode_into_libs=yes
9770
  ;;
9771
 
9772
newsos6)
9773
  version_type=linux
9774
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775
  shlibpath_var=LD_LIBRARY_PATH
9776
  shlibpath_overrides_runpath=yes
9777
  ;;
9778
 
9779
*nto* | *qnx*)
9780
  version_type=qnx
9781
  need_lib_prefix=no
9782
  need_version=no
9783
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784
  soname_spec='${libname}${release}${shared_ext}$major'
9785
  shlibpath_var=LD_LIBRARY_PATH
9786
  shlibpath_overrides_runpath=no
9787
  hardcode_into_libs=yes
9788
  dynamic_linker='ldqnx.so'
9789
  ;;
9790
 
9791
openbsd*)
9792
  version_type=sunos
9793
  sys_lib_dlsearch_path_spec="/usr/lib"
9794
  need_lib_prefix=no
9795
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9796
  case $host_os in
9797
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9798
    *)				need_version=no  ;;
9799
  esac
9800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9801
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9802
  shlibpath_var=LD_LIBRARY_PATH
9803
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9804
    case $host_os in
9805
      openbsd2.[89] | openbsd2.[89].*)
9806
	shlibpath_overrides_runpath=no
9807
	;;
9808
      *)
9809
	shlibpath_overrides_runpath=yes
9810
	;;
9811
      esac
9812
  else
9813
    shlibpath_overrides_runpath=yes
9814
  fi
9815
  ;;
9816
 
9817
os2*)
9818
  libname_spec='$name'
9819
  shrext_cmds=".dll"
9820
  need_lib_prefix=no
9821
  library_names_spec='$libname${shared_ext} $libname.a'
9822
  dynamic_linker='OS/2 ld.exe'
9823
  shlibpath_var=LIBPATH
9824
  ;;
9825
 
9826
osf3* | osf4* | osf5*)
9827
  version_type=osf
9828
  need_lib_prefix=no
9829
  need_version=no
9830
  soname_spec='${libname}${release}${shared_ext}$major'
9831
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832
  shlibpath_var=LD_LIBRARY_PATH
9833
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9834
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9835
  ;;
9836
 
9837
rdos*)
9838
  dynamic_linker=no
9839
  ;;
9840
 
9841
solaris*)
9842
  version_type=linux
9843
  need_lib_prefix=no
9844
  need_version=no
9845
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846
  soname_spec='${libname}${release}${shared_ext}$major'
9847
  shlibpath_var=LD_LIBRARY_PATH
9848
  shlibpath_overrides_runpath=yes
9849
  hardcode_into_libs=yes
9850
  # ldd complains unless libraries are executable
9851
  postinstall_cmds='chmod +x $lib'
9852
  ;;
9853
 
9854
sunos4*)
9855
  version_type=sunos
9856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9857
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9858
  shlibpath_var=LD_LIBRARY_PATH
9859
  shlibpath_overrides_runpath=yes
9860
  if test "$with_gnu_ld" = yes; then
9861
    need_lib_prefix=no
9862
  fi
9863
  need_version=yes
9864
  ;;
9865
 
9866
sysv4 | sysv4.3*)
9867
  version_type=linux
9868
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869
  soname_spec='${libname}${release}${shared_ext}$major'
9870
  shlibpath_var=LD_LIBRARY_PATH
9871
  case $host_vendor in
9872
    sni)
9873
      shlibpath_overrides_runpath=no
9874
      need_lib_prefix=no
9875
      runpath_var=LD_RUN_PATH
9876
      ;;
9877
    siemens)
9878
      need_lib_prefix=no
9879
      ;;
9880
    motorola)
9881
      need_lib_prefix=no
9882
      need_version=no
9883
      shlibpath_overrides_runpath=no
9884
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9885
      ;;
9886
  esac
9887
  ;;
9888
 
9889
sysv4*MP*)
9890
  if test -d /usr/nec ;then
9891
    version_type=linux
9892
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9893
    soname_spec='$libname${shared_ext}.$major'
9894
    shlibpath_var=LD_LIBRARY_PATH
9895
  fi
9896
  ;;
9897
 
9898
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9899
  version_type=freebsd-elf
9900
  need_lib_prefix=no
9901
  need_version=no
9902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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
  if test "$with_gnu_ld" = yes; then
9908
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9909
  else
9910
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9911
    case $host_os in
9912
      sco3.2v5*)
9913
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9914
	;;
9915
    esac
9916
  fi
9917
  sys_lib_dlsearch_path_spec='/usr/lib'
9918
  ;;
9919
 
9920
tpf*)
9921
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9922
  version_type=linux
9923
  need_lib_prefix=no
9924
  need_version=no
9925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926
  shlibpath_var=LD_LIBRARY_PATH
9927
  shlibpath_overrides_runpath=no
9928
  hardcode_into_libs=yes
9929
  ;;
9930
 
9931
uts4*)
9932
  version_type=linux
9933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934
  soname_spec='${libname}${release}${shared_ext}$major'
9935
  shlibpath_var=LD_LIBRARY_PATH
9936
  ;;
9937
 
9938
*)
9939
  dynamic_linker=no
9940
  ;;
9941
esac
9942
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9943
$as_echo "$dynamic_linker" >&6; }
9944
test "$dynamic_linker" = no && can_build_shared=no
9945
 
9946
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9947
if test "$GCC" = yes; then
9948
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9949
fi
9950
 
9951
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9952
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9953
fi
9954
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9955
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9956
fi
9957
 
9958
 
9959
 
9960
 
9961
 
9962
 
9963
 
9964
 
9965
 
9966
 
9967
 
9968
 
9969
 
9970
 
9971
 
9972
 
9973
 
9974
 
9975
 
9976
 
9977
 
9978
 
9979
 
9980
 
9981
 
9982
 
9983
 
9984
 
9985
 
9986
 
9987
 
9988
 
9989
 
9990
 
9991
 
9992
 
9993
 
9994
 
9995
 
9996
 
9997
 
9998
 
9999
 
10000
 
10001
 
10002
 
10003
 
10004
 
10005
 
10006
 
10007
 
10008
 
10009
 
10010
 
10011
 
10012
 
10013
 
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
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10045
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10046
hardcode_action=
10047
if test -n "$hardcode_libdir_flag_spec" ||
10048
   test -n "$runpath_var" ||
10049
   test "X$hardcode_automatic" = "Xyes" ; then
10050
 
10051
  # We can hardcode non-existent directories.
10052
  if test "$hardcode_direct" != no &&
10053
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10054
     # have to relink, otherwise we might link with an installed library
10055
     # when we should be linking with a yet-to-be-installed one
10056
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10057
     test "$hardcode_minus_L" != no; then
10058
    # Linking always hardcodes the temporary library directory.
10059
    hardcode_action=relink
10060
  else
10061
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10062
    hardcode_action=immediate
10063
  fi
10064
else
10065
  # We cannot hardcode anything, or else we can only hardcode existing
10066
  # directories.
10067
  hardcode_action=unsupported
10068
fi
10069
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10070
$as_echo "$hardcode_action" >&6; }
10071
 
10072
if test "$hardcode_action" = relink ||
10073
   test "$inherit_rpath" = yes; then
10074
  # Fast installation is not supported
10075
  enable_fast_install=no
10076
elif test "$shlibpath_overrides_runpath" = yes ||
10077
     test "$enable_shared" = no; then
10078
  # Fast installation is not necessary
10079
  enable_fast_install=needless
10080
fi
10081
 
10082
 
10083
 
10084
 
10085
 
10086
 
10087
  if test "x$enable_dlopen" != xyes; then
10088
  enable_dlopen=unknown
10089
  enable_dlopen_self=unknown
10090
  enable_dlopen_self_static=unknown
10091
else
10092
  lt_cv_dlopen=no
10093
  lt_cv_dlopen_libs=
10094
 
10095
  case $host_os in
10096
  beos*)
10097
    lt_cv_dlopen="load_add_on"
10098
    lt_cv_dlopen_libs=
10099
    lt_cv_dlopen_self=yes
10100
    ;;
10101
 
10102
  mingw* | pw32* | cegcc*)
10103
    lt_cv_dlopen="LoadLibrary"
10104
    lt_cv_dlopen_libs=
10105
    ;;
10106
 
10107
  cygwin*)
10108
    lt_cv_dlopen="dlopen"
10109
    lt_cv_dlopen_libs=
10110
    ;;
10111
 
10112
  darwin*)
10113
  # if libdl is installed we need to link against it
10114
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10115
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10116
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10117
  $as_echo_n "(cached) " >&6
10118
else
10119
  ac_check_lib_save_LIBS=$LIBS
10120
LIBS="-ldl  $LIBS"
10121
cat >conftest.$ac_ext <<_ACEOF
10122
/* confdefs.h.  */
10123
_ACEOF
10124
cat confdefs.h >>conftest.$ac_ext
10125
cat >>conftest.$ac_ext <<_ACEOF
10126
/* end confdefs.h.  */
10127
 
10128
/* Override any GCC internal prototype to avoid an error.
10129
   Use char because int might match the return type of a GCC
10130
   builtin and then its argument prototype would still apply.  */
10131
#ifdef __cplusplus
10132
extern "C"
10133
#endif
10134
char dlopen ();
10135
int
10136
main ()
10137
{
10138
return dlopen ();
10139
  ;
10140
  return 0;
10141
}
10142
_ACEOF
10143
rm -f conftest.$ac_objext conftest$ac_exeext
10144
if { (ac_try="$ac_link"
10145
case "(($ac_try" in
10146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147
  *) ac_try_echo=$ac_try;;
10148
esac
10149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10150
$as_echo "$ac_try_echo") >&5
10151
  (eval "$ac_link") 2>conftest.er1
10152
  ac_status=$?
10153
  grep -v '^ *+' conftest.er1 >conftest.err
10154
  rm -f conftest.er1
10155
  cat conftest.err >&5
10156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157
  (exit $ac_status); } && {
10158
	 test -z "$ac_c_werror_flag" ||
10159
	 test ! -s conftest.err
10160
       } && test -s conftest$ac_exeext && {
10161
	 test "$cross_compiling" = yes ||
10162
	 $as_test_x conftest$ac_exeext
10163
       }; then
10164
  ac_cv_lib_dl_dlopen=yes
10165
else
10166
  $as_echo "$as_me: failed program was:" >&5
10167
sed 's/^/| /' conftest.$ac_ext >&5
10168
 
10169
	ac_cv_lib_dl_dlopen=no
10170
fi
10171
 
10172
rm -rf conftest.dSYM
10173
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10174
      conftest$ac_exeext conftest.$ac_ext
10175
LIBS=$ac_check_lib_save_LIBS
10176
fi
10177
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10178
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10179
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10180
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10181
else
10182
 
10183
    lt_cv_dlopen="dyld"
10184
    lt_cv_dlopen_libs=
10185
    lt_cv_dlopen_self=yes
10186
 
10187
fi
10188
 
10189
    ;;
10190
 
10191
  *)
10192
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10193
$as_echo_n "checking for shl_load... " >&6; }
10194
if test "${ac_cv_func_shl_load+set}" = set; then
10195
  $as_echo_n "(cached) " >&6
10196
else
10197
  cat >conftest.$ac_ext <<_ACEOF
10198
/* confdefs.h.  */
10199
_ACEOF
10200
cat confdefs.h >>conftest.$ac_ext
10201
cat >>conftest.$ac_ext <<_ACEOF
10202
/* end confdefs.h.  */
10203
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10204
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10205
#define shl_load innocuous_shl_load
10206
 
10207
/* System header to define __stub macros and hopefully few prototypes,
10208
    which can conflict with char shl_load (); below.
10209
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10210
    <limits.h> exists even on freestanding compilers.  */
10211
 
10212
#ifdef __STDC__
10213
# include <limits.h>
10214
#else
10215
# include <assert.h>
10216
#endif
10217
 
10218
#undef shl_load
10219
 
10220
/* Override any GCC internal prototype to avoid an error.
10221
   Use char because int might match the return type of a GCC
10222
   builtin and then its argument prototype would still apply.  */
10223
#ifdef __cplusplus
10224
extern "C"
10225
#endif
10226
char shl_load ();
10227
/* The GNU C library defines this for functions which it implements
10228
    to always fail with ENOSYS.  Some functions are actually named
10229
    something starting with __ and the normal name is an alias.  */
10230
#if defined __stub_shl_load || defined __stub___shl_load
10231
choke me
10232
#endif
10233
 
10234
int
10235
main ()
10236
{
10237
return shl_load ();
10238
  ;
10239
  return 0;
10240
}
10241
_ACEOF
10242
rm -f conftest.$ac_objext conftest$ac_exeext
10243
if { (ac_try="$ac_link"
10244
case "(($ac_try" in
10245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246
  *) ac_try_echo=$ac_try;;
10247
esac
10248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249
$as_echo "$ac_try_echo") >&5
10250
  (eval "$ac_link") 2>conftest.er1
10251
  ac_status=$?
10252
  grep -v '^ *+' conftest.er1 >conftest.err
10253
  rm -f conftest.er1
10254
  cat conftest.err >&5
10255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256
  (exit $ac_status); } && {
10257
	 test -z "$ac_c_werror_flag" ||
10258
	 test ! -s conftest.err
10259
       } && test -s conftest$ac_exeext && {
10260
	 test "$cross_compiling" = yes ||
10261
	 $as_test_x conftest$ac_exeext
10262
       }; then
10263
  ac_cv_func_shl_load=yes
10264
else
10265
  $as_echo "$as_me: failed program was:" >&5
10266
sed 's/^/| /' conftest.$ac_ext >&5
10267
 
10268
	ac_cv_func_shl_load=no
10269
fi
10270
 
10271
rm -rf conftest.dSYM
10272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10273
      conftest$ac_exeext conftest.$ac_ext
10274
fi
10275
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10276
$as_echo "$ac_cv_func_shl_load" >&6; }
10277
if test "x$ac_cv_func_shl_load" = x""yes; then
10278
  lt_cv_dlopen="shl_load"
10279
else
10280
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10281
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10282
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10283
  $as_echo_n "(cached) " >&6
10284
else
10285
  ac_check_lib_save_LIBS=$LIBS
10286
LIBS="-ldld  $LIBS"
10287
cat >conftest.$ac_ext <<_ACEOF
10288
/* confdefs.h.  */
10289
_ACEOF
10290
cat confdefs.h >>conftest.$ac_ext
10291
cat >>conftest.$ac_ext <<_ACEOF
10292
/* end confdefs.h.  */
10293
 
10294
/* Override any GCC internal prototype to avoid an error.
10295
   Use char because int might match the return type of a GCC
10296
   builtin and then its argument prototype would still apply.  */
10297
#ifdef __cplusplus
10298
extern "C"
10299
#endif
10300
char shl_load ();
10301
int
10302
main ()
10303
{
10304
return shl_load ();
10305
  ;
10306
  return 0;
10307
}
10308
_ACEOF
10309
rm -f conftest.$ac_objext conftest$ac_exeext
10310
if { (ac_try="$ac_link"
10311
case "(($ac_try" in
10312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313
  *) ac_try_echo=$ac_try;;
10314
esac
10315
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10316
$as_echo "$ac_try_echo") >&5
10317
  (eval "$ac_link") 2>conftest.er1
10318
  ac_status=$?
10319
  grep -v '^ *+' conftest.er1 >conftest.err
10320
  rm -f conftest.er1
10321
  cat conftest.err >&5
10322
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323
  (exit $ac_status); } && {
10324
	 test -z "$ac_c_werror_flag" ||
10325
	 test ! -s conftest.err
10326
       } && test -s conftest$ac_exeext && {
10327
	 test "$cross_compiling" = yes ||
10328
	 $as_test_x conftest$ac_exeext
10329
       }; then
10330
  ac_cv_lib_dld_shl_load=yes
10331
else
10332
  $as_echo "$as_me: failed program was:" >&5
10333
sed 's/^/| /' conftest.$ac_ext >&5
10334
 
10335
	ac_cv_lib_dld_shl_load=no
10336
fi
10337
 
10338
rm -rf conftest.dSYM
10339
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10340
      conftest$ac_exeext conftest.$ac_ext
10341
LIBS=$ac_check_lib_save_LIBS
10342
fi
10343
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10344
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10345
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10346
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10347
else
10348
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10349
$as_echo_n "checking for dlopen... " >&6; }
10350
if test "${ac_cv_func_dlopen+set}" = set; then
10351
  $as_echo_n "(cached) " >&6
10352
else
10353
  cat >conftest.$ac_ext <<_ACEOF
10354
/* confdefs.h.  */
10355
_ACEOF
10356
cat confdefs.h >>conftest.$ac_ext
10357
cat >>conftest.$ac_ext <<_ACEOF
10358
/* end confdefs.h.  */
10359
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10360
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10361
#define dlopen innocuous_dlopen
10362
 
10363
/* System header to define __stub macros and hopefully few prototypes,
10364
    which can conflict with char dlopen (); below.
10365
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10366
    <limits.h> exists even on freestanding compilers.  */
10367
 
10368
#ifdef __STDC__
10369
# include <limits.h>
10370
#else
10371
# include <assert.h>
10372
#endif
10373
 
10374
#undef dlopen
10375
 
10376
/* Override any GCC internal prototype to avoid an error.
10377
   Use char because int might match the return type of a GCC
10378
   builtin and then its argument prototype would still apply.  */
10379
#ifdef __cplusplus
10380
extern "C"
10381
#endif
10382
char dlopen ();
10383
/* The GNU C library defines this for functions which it implements
10384
    to always fail with ENOSYS.  Some functions are actually named
10385
    something starting with __ and the normal name is an alias.  */
10386
#if defined __stub_dlopen || defined __stub___dlopen
10387
choke me
10388
#endif
10389
 
10390
int
10391
main ()
10392
{
10393
return dlopen ();
10394
  ;
10395
  return 0;
10396
}
10397
_ACEOF
10398
rm -f conftest.$ac_objext conftest$ac_exeext
10399
if { (ac_try="$ac_link"
10400
case "(($ac_try" in
10401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402
  *) ac_try_echo=$ac_try;;
10403
esac
10404
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10405
$as_echo "$ac_try_echo") >&5
10406
  (eval "$ac_link") 2>conftest.er1
10407
  ac_status=$?
10408
  grep -v '^ *+' conftest.er1 >conftest.err
10409
  rm -f conftest.er1
10410
  cat conftest.err >&5
10411
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412
  (exit $ac_status); } && {
10413
	 test -z "$ac_c_werror_flag" ||
10414
	 test ! -s conftest.err
10415
       } && test -s conftest$ac_exeext && {
10416
	 test "$cross_compiling" = yes ||
10417
	 $as_test_x conftest$ac_exeext
10418
       }; then
10419
  ac_cv_func_dlopen=yes
10420
else
10421
  $as_echo "$as_me: failed program was:" >&5
10422
sed 's/^/| /' conftest.$ac_ext >&5
10423
 
10424
	ac_cv_func_dlopen=no
10425
fi
10426
 
10427
rm -rf conftest.dSYM
10428
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429
      conftest$ac_exeext conftest.$ac_ext
10430
fi
10431
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10432
$as_echo "$ac_cv_func_dlopen" >&6; }
10433
if test "x$ac_cv_func_dlopen" = x""yes; then
10434
  lt_cv_dlopen="dlopen"
10435
else
10436
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10437
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10438
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10439
  $as_echo_n "(cached) " >&6
10440
else
10441
  ac_check_lib_save_LIBS=$LIBS
10442
LIBS="-ldl  $LIBS"
10443
cat >conftest.$ac_ext <<_ACEOF
10444
/* confdefs.h.  */
10445
_ACEOF
10446
cat confdefs.h >>conftest.$ac_ext
10447
cat >>conftest.$ac_ext <<_ACEOF
10448
/* end confdefs.h.  */
10449
 
10450
/* Override any GCC internal prototype to avoid an error.
10451
   Use char because int might match the return type of a GCC
10452
   builtin and then its argument prototype would still apply.  */
10453
#ifdef __cplusplus
10454
extern "C"
10455
#endif
10456
char dlopen ();
10457
int
10458
main ()
10459
{
10460
return dlopen ();
10461
  ;
10462
  return 0;
10463
}
10464
_ACEOF
10465
rm -f conftest.$ac_objext conftest$ac_exeext
10466
if { (ac_try="$ac_link"
10467
case "(($ac_try" in
10468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469
  *) ac_try_echo=$ac_try;;
10470
esac
10471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10472
$as_echo "$ac_try_echo") >&5
10473
  (eval "$ac_link") 2>conftest.er1
10474
  ac_status=$?
10475
  grep -v '^ *+' conftest.er1 >conftest.err
10476
  rm -f conftest.er1
10477
  cat conftest.err >&5
10478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479
  (exit $ac_status); } && {
10480
	 test -z "$ac_c_werror_flag" ||
10481
	 test ! -s conftest.err
10482
       } && test -s conftest$ac_exeext && {
10483
	 test "$cross_compiling" = yes ||
10484
	 $as_test_x conftest$ac_exeext
10485
       }; then
10486
  ac_cv_lib_dl_dlopen=yes
10487
else
10488
  $as_echo "$as_me: failed program was:" >&5
10489
sed 's/^/| /' conftest.$ac_ext >&5
10490
 
10491
	ac_cv_lib_dl_dlopen=no
10492
fi
10493
 
10494
rm -rf conftest.dSYM
10495
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10496
      conftest$ac_exeext conftest.$ac_ext
10497
LIBS=$ac_check_lib_save_LIBS
10498
fi
10499
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10500
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10501
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10502
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10503
else
10504
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10505
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10506
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10507
  $as_echo_n "(cached) " >&6
10508
else
10509
  ac_check_lib_save_LIBS=$LIBS
10510
LIBS="-lsvld  $LIBS"
10511
cat >conftest.$ac_ext <<_ACEOF
10512
/* confdefs.h.  */
10513
_ACEOF
10514
cat confdefs.h >>conftest.$ac_ext
10515
cat >>conftest.$ac_ext <<_ACEOF
10516
/* end confdefs.h.  */
10517
 
10518
/* Override any GCC internal prototype to avoid an error.
10519
   Use char because int might match the return type of a GCC
10520
   builtin and then its argument prototype would still apply.  */
10521
#ifdef __cplusplus
10522
extern "C"
10523
#endif
10524
char dlopen ();
10525
int
10526
main ()
10527
{
10528
return dlopen ();
10529
  ;
10530
  return 0;
10531
}
10532
_ACEOF
10533
rm -f conftest.$ac_objext conftest$ac_exeext
10534
if { (ac_try="$ac_link"
10535
case "(($ac_try" in
10536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537
  *) ac_try_echo=$ac_try;;
10538
esac
10539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10540
$as_echo "$ac_try_echo") >&5
10541
  (eval "$ac_link") 2>conftest.er1
10542
  ac_status=$?
10543
  grep -v '^ *+' conftest.er1 >conftest.err
10544
  rm -f conftest.er1
10545
  cat conftest.err >&5
10546
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547
  (exit $ac_status); } && {
10548
	 test -z "$ac_c_werror_flag" ||
10549
	 test ! -s conftest.err
10550
       } && test -s conftest$ac_exeext && {
10551
	 test "$cross_compiling" = yes ||
10552
	 $as_test_x conftest$ac_exeext
10553
       }; then
10554
  ac_cv_lib_svld_dlopen=yes
10555
else
10556
  $as_echo "$as_me: failed program was:" >&5
10557
sed 's/^/| /' conftest.$ac_ext >&5
10558
 
10559
	ac_cv_lib_svld_dlopen=no
10560
fi
10561
 
10562
rm -rf conftest.dSYM
10563
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10564
      conftest$ac_exeext conftest.$ac_ext
10565
LIBS=$ac_check_lib_save_LIBS
10566
fi
10567
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10568
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10569
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10570
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10571
else
10572
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10573
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10574
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10575
  $as_echo_n "(cached) " >&6
10576
else
10577
  ac_check_lib_save_LIBS=$LIBS
10578
LIBS="-ldld  $LIBS"
10579
cat >conftest.$ac_ext <<_ACEOF
10580
/* confdefs.h.  */
10581
_ACEOF
10582
cat confdefs.h >>conftest.$ac_ext
10583
cat >>conftest.$ac_ext <<_ACEOF
10584
/* end confdefs.h.  */
10585
 
10586
/* Override any GCC internal prototype to avoid an error.
10587
   Use char because int might match the return type of a GCC
10588
   builtin and then its argument prototype would still apply.  */
10589
#ifdef __cplusplus
10590
extern "C"
10591
#endif
10592
char dld_link ();
10593
int
10594
main ()
10595
{
10596
return dld_link ();
10597
  ;
10598
  return 0;
10599
}
10600
_ACEOF
10601
rm -f conftest.$ac_objext conftest$ac_exeext
10602
if { (ac_try="$ac_link"
10603
case "(($ac_try" in
10604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605
  *) ac_try_echo=$ac_try;;
10606
esac
10607
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10608
$as_echo "$ac_try_echo") >&5
10609
  (eval "$ac_link") 2>conftest.er1
10610
  ac_status=$?
10611
  grep -v '^ *+' conftest.er1 >conftest.err
10612
  rm -f conftest.er1
10613
  cat conftest.err >&5
10614
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615
  (exit $ac_status); } && {
10616
	 test -z "$ac_c_werror_flag" ||
10617
	 test ! -s conftest.err
10618
       } && test -s conftest$ac_exeext && {
10619
	 test "$cross_compiling" = yes ||
10620
	 $as_test_x conftest$ac_exeext
10621
       }; then
10622
  ac_cv_lib_dld_dld_link=yes
10623
else
10624
  $as_echo "$as_me: failed program was:" >&5
10625
sed 's/^/| /' conftest.$ac_ext >&5
10626
 
10627
	ac_cv_lib_dld_dld_link=no
10628
fi
10629
 
10630
rm -rf conftest.dSYM
10631
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10632
      conftest$ac_exeext conftest.$ac_ext
10633
LIBS=$ac_check_lib_save_LIBS
10634
fi
10635
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10636
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10637
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10638
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10639
fi
10640
 
10641
 
10642
fi
10643
 
10644
 
10645
fi
10646
 
10647
 
10648
fi
10649
 
10650
 
10651
fi
10652
 
10653
 
10654
fi
10655
 
10656
    ;;
10657
  esac
10658
 
10659
  if test "x$lt_cv_dlopen" != xno; then
10660
    enable_dlopen=yes
10661
  else
10662
    enable_dlopen=no
10663
  fi
10664
 
10665
  case $lt_cv_dlopen in
10666
  dlopen)
10667
    save_CPPFLAGS="$CPPFLAGS"
10668
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10669
 
10670
    save_LDFLAGS="$LDFLAGS"
10671
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10672
 
10673
    save_LIBS="$LIBS"
10674
    LIBS="$lt_cv_dlopen_libs $LIBS"
10675
 
10676
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10677
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10678
if test "${lt_cv_dlopen_self+set}" = set; then
10679
  $as_echo_n "(cached) " >&6
10680
else
10681
  	  if test "$cross_compiling" = yes; then :
10682
  lt_cv_dlopen_self=cross
10683
else
10684
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10685
  lt_status=$lt_dlunknown
10686
  cat > conftest.$ac_ext <<_LT_EOF
10687
#line 10687 "configure"
10688
#include "confdefs.h"
10689
 
10690
#if HAVE_DLFCN_H
10691
#include <dlfcn.h>
10692
#endif
10693
 
10694
#include <stdio.h>
10695
 
10696
#ifdef RTLD_GLOBAL
10697
#  define LT_DLGLOBAL		RTLD_GLOBAL
10698
#else
10699
#  ifdef DL_GLOBAL
10700
#    define LT_DLGLOBAL		DL_GLOBAL
10701
#  else
10702
#    define LT_DLGLOBAL		0
10703
#  endif
10704
#endif
10705
 
10706
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10707
   find out it does not work in some platform. */
10708
#ifndef LT_DLLAZY_OR_NOW
10709
#  ifdef RTLD_LAZY
10710
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10711
#  else
10712
#    ifdef DL_LAZY
10713
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10714
#    else
10715
#      ifdef RTLD_NOW
10716
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10717
#      else
10718
#        ifdef DL_NOW
10719
#          define LT_DLLAZY_OR_NOW	DL_NOW
10720
#        else
10721
#          define LT_DLLAZY_OR_NOW	0
10722
#        endif
10723
#      endif
10724
#    endif
10725
#  endif
10726
#endif
10727
 
10728
void fnord() { int i=42;}
10729
int main ()
10730
{
10731
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10732
  int status = $lt_dlunknown;
10733
 
10734
  if (self)
10735
    {
10736
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10737
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10738
      /* dlclose (self); */
10739
    }
10740
  else
10741
    puts (dlerror ());
10742
 
10743
  return status;
10744
}
10745
_LT_EOF
10746
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747
  (eval $ac_link) 2>&5
10748
  ac_status=$?
10749
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10751
    (./conftest; exit; ) >&5 2>/dev/null
10752
    lt_status=$?
10753
    case x$lt_status in
10754
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10755
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10756
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10757
    esac
10758
  else :
10759
    # compilation failed
10760
    lt_cv_dlopen_self=no
10761
  fi
10762
fi
10763
rm -fr conftest*
10764
 
10765
 
10766
fi
10767
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10768
$as_echo "$lt_cv_dlopen_self" >&6; }
10769
 
10770
    if test "x$lt_cv_dlopen_self" = xyes; then
10771
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10772
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10773
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10774
if test "${lt_cv_dlopen_self_static+set}" = set; then
10775
  $as_echo_n "(cached) " >&6
10776
else
10777
  	  if test "$cross_compiling" = yes; then :
10778
  lt_cv_dlopen_self_static=cross
10779
else
10780
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10781
  lt_status=$lt_dlunknown
10782
  cat > conftest.$ac_ext <<_LT_EOF
10783
#line 10783 "configure"
10784
#include "confdefs.h"
10785
 
10786
#if HAVE_DLFCN_H
10787
#include <dlfcn.h>
10788
#endif
10789
 
10790
#include <stdio.h>
10791
 
10792
#ifdef RTLD_GLOBAL
10793
#  define LT_DLGLOBAL		RTLD_GLOBAL
10794
#else
10795
#  ifdef DL_GLOBAL
10796
#    define LT_DLGLOBAL		DL_GLOBAL
10797
#  else
10798
#    define LT_DLGLOBAL		0
10799
#  endif
10800
#endif
10801
 
10802
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10803
   find out it does not work in some platform. */
10804
#ifndef LT_DLLAZY_OR_NOW
10805
#  ifdef RTLD_LAZY
10806
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10807
#  else
10808
#    ifdef DL_LAZY
10809
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10810
#    else
10811
#      ifdef RTLD_NOW
10812
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10813
#      else
10814
#        ifdef DL_NOW
10815
#          define LT_DLLAZY_OR_NOW	DL_NOW
10816
#        else
10817
#          define LT_DLLAZY_OR_NOW	0
10818
#        endif
10819
#      endif
10820
#    endif
10821
#  endif
10822
#endif
10823
 
10824
void fnord() { int i=42;}
10825
int main ()
10826
{
10827
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828
  int status = $lt_dlunknown;
10829
 
10830
  if (self)
10831
    {
10832
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10833
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10834
      /* dlclose (self); */
10835
    }
10836
  else
10837
    puts (dlerror ());
10838
 
10839
  return status;
10840
}
10841
_LT_EOF
10842
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843
  (eval $ac_link) 2>&5
10844
  ac_status=$?
10845
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10847
    (./conftest; exit; ) >&5 2>/dev/null
10848
    lt_status=$?
10849
    case x$lt_status in
10850
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10851
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10852
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10853
    esac
10854
  else :
10855
    # compilation failed
10856
    lt_cv_dlopen_self_static=no
10857
  fi
10858
fi
10859
rm -fr conftest*
10860
 
10861
 
10862
fi
10863
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10864
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10865
    fi
10866
 
10867
    CPPFLAGS="$save_CPPFLAGS"
10868
    LDFLAGS="$save_LDFLAGS"
10869
    LIBS="$save_LIBS"
10870
    ;;
10871
  esac
10872
 
10873
  case $lt_cv_dlopen_self in
10874
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10875
  *) enable_dlopen_self=unknown ;;
10876
  esac
10877
 
10878
  case $lt_cv_dlopen_self_static in
10879
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10880
  *) enable_dlopen_self_static=unknown ;;
10881
  esac
10882
fi
10883
 
10884
 
10885
 
10886
 
10887
 
10888
 
10889
 
10890
 
10891
 
10892
 
10893
 
10894
 
10895
 
10896
 
10897
 
10898
 
10899
 
10900
striplib=
10901
old_striplib=
10902
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10903
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10904
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10905
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10906
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10907
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10908
$as_echo "yes" >&6; }
10909
else
10910
# FIXME - insert some real tests, host_os isn't really good enough
10911
  case $host_os in
10912
  darwin*)
10913
    if test -n "$STRIP" ; then
10914
      striplib="$STRIP -x"
10915
      old_striplib="$STRIP -S"
10916
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10917
$as_echo "yes" >&6; }
10918
    else
10919
      { $as_echo "$as_me:$LINENO: result: no" >&5
10920
$as_echo "no" >&6; }
10921
    fi
10922
    ;;
10923
  *)
10924
    { $as_echo "$as_me:$LINENO: result: no" >&5
10925
$as_echo "no" >&6; }
10926
    ;;
10927
  esac
10928
fi
10929
 
10930
 
10931
 
10932
 
10933
 
10934
 
10935
 
10936
 
10937
 
10938
 
10939
 
10940
 
10941
  # Report which library types will actually be built
10942
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10943
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10944
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10945
$as_echo "$can_build_shared" >&6; }
10946
 
10947
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10948
$as_echo_n "checking whether to build shared libraries... " >&6; }
10949
  test "$can_build_shared" = "no" && enable_shared=no
10950
 
10951
  # On AIX, shared libraries and static libraries use the same namespace, and
10952
  # are all built from PIC.
10953
  case $host_os in
10954
  aix3*)
10955
    test "$enable_shared" = yes && enable_static=no
10956
    if test -n "$RANLIB"; then
10957
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10958
      postinstall_cmds='$RANLIB $lib'
10959
    fi
10960
    ;;
10961
 
10962
  aix[4-9]*)
10963
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10964
      test "$enable_shared" = yes && enable_static=no
10965
    fi
10966
    ;;
10967
  esac
10968
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10969
$as_echo "$enable_shared" >&6; }
10970
 
10971
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10972
$as_echo_n "checking whether to build static libraries... " >&6; }
10973
  # Make sure either enable_shared or enable_static is yes.
10974
  test "$enable_shared" = yes || enable_static=yes
10975
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10976
$as_echo "$enable_static" >&6; }
10977
 
10978
 
10979
 
10980
 
10981
fi
10982
ac_ext=c
10983
ac_cpp='$CPP $CPPFLAGS'
10984
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10985
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10986
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10987
 
10988
CC="$lt_save_CC"
10989
 
10990
 
10991
 
10992
 
10993
 
10994
 
10995
 
10996
 
10997
 
10998
 
10999
 
11000
 
11001
 
11002
        ac_config_commands="$ac_config_commands libtool"
11003
 
11004
 
11005
 
11006
 
11007
# Only expand once:
11008
 
11009
 
11010
 
11011
ac_config_files="$ac_config_files Makefile src/Makefile"
11012
 
11013
cat >confcache <<\_ACEOF
11014
# This file is a shell script that caches the results of configure
11015
# tests run on this system so they can be shared between configure
11016
# scripts and configure runs, see configure's option --config-cache.
11017
# It is not useful on other systems.  If it contains results you don't
11018
# want to keep, you may remove or edit it.
11019
#
11020
# config.status only pays attention to the cache file if you give it
11021
# the --recheck option to rerun configure.
11022
#
11023
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11024
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11025
# following values.
11026
 
11027
_ACEOF
11028
 
11029
# The following way of writing the cache mishandles newlines in values,
11030
# but we know of no workaround that is simple, portable, and efficient.
11031
# So, we kill variables containing newlines.
11032
# Ultrix sh set writes to stderr and can't be redirected directly,
11033
# and sets the high bit in the cache file unless we assign to the vars.
11034
(
11035
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11036
    eval ac_val=\$$ac_var
11037
    case $ac_val in #(
11038
    *${as_nl}*)
11039
      case $ac_var in #(
11040
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11041
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11042
      esac
11043
      case $ac_var in #(
11044
      _ | IFS | as_nl) ;; #(
11045
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11046
      *) $as_unset $ac_var ;;
11047
      esac ;;
11048
    esac
11049
  done
11050
 
11051
  (set) 2>&1 |
11052
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11053
    *${as_nl}ac_space=\ *)
11054
      # `set' does not quote correctly, so add quotes (double-quote
11055
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11056
      sed -n \
11057
	"s/'/'\\\\''/g;
11058
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11059
      ;; #(
11060
    *)
11061
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11062
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11063
      ;;
11064
    esac |
11065
    sort
11066
) |
11067
  sed '
11068
     /^ac_cv_env_/b end
11069
     t clear
11070
     :clear
11071
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11072
     t end
11073
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11074
     :end' >>confcache
11075
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11076
  if test -w "$cache_file"; then
11077
    test "x$cache_file" != "x/dev/null" &&
11078
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11079
$as_echo "$as_me: updating cache $cache_file" >&6;}
11080
    cat confcache >$cache_file
11081
  else
11082
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11083
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11084
  fi
11085
fi
11086
rm -f confcache
11087
 
11088
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11089
# Let make expand exec_prefix.
11090
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11091
 
11092
DEFS=-DHAVE_CONFIG_H
11093
 
11094
ac_libobjs=
11095
ac_ltlibobjs=
11096
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11097
  # 1. Remove the extension, and $U if already installed.
11098
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11099
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11100
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11101
  #    will be set to the directory where LIBOBJS objects are built.
11102
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11103
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11104
done
11105
LIBOBJS=$ac_libobjs
11106
 
11107
LTLIBOBJS=$ac_ltlibobjs
11108
 
11109
 
11110
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11111
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11112
Usually this means the macro was only invoked conditionally." >&5
11113
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11114
Usually this means the macro was only invoked conditionally." >&2;}
11115
   { (exit 1); exit 1; }; }
11116
fi
11117
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11118
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11119
Usually this means the macro was only invoked conditionally." >&5
11120
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11121
Usually this means the macro was only invoked conditionally." >&2;}
11122
   { (exit 1); exit 1; }; }
11123
fi
11124
 
11125
: ${CONFIG_STATUS=./config.status}
11126
ac_write_fail=0
11127
ac_clean_files_save=$ac_clean_files
11128
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11129
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11130
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11131
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11132
#! $SHELL
11133
# Generated by $as_me.
11134
# Run this file to recreate the current configuration.
11135
# Compiler output produced by configure, useful for debugging
11136
# configure, is in config.log if it exists.
11137
 
11138
debug=false
11139
ac_cs_recheck=false
11140
ac_cs_silent=false
11141
SHELL=\${CONFIG_SHELL-$SHELL}
11142
_ACEOF
11143
 
11144
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11145
## --------------------- ##
11146
## M4sh Initialization.  ##
11147
## --------------------- ##
11148
 
11149
# Be more Bourne compatible
11150
DUALCASE=1; export DUALCASE # for MKS sh
11151
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11152
  emulate sh
11153
  NULLCMD=:
11154
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11155
  # is contrary to our usage.  Disable this feature.
11156
  alias -g '${1+"$@"}'='"$@"'
11157
  setopt NO_GLOB_SUBST
11158
else
11159
  case `(set -o) 2>/dev/null` in
11160
  *posix*) set -o posix ;;
11161
esac
11162
 
11163
fi
11164
 
11165
 
11166
 
11167
 
11168
# PATH needs CR
11169
# Avoid depending upon Character Ranges.
11170
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11171
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11172
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11173
as_cr_digits='0123456789'
11174
as_cr_alnum=$as_cr_Letters$as_cr_digits
11175
 
11176
as_nl='
11177
'
11178
export as_nl
11179
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11180
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11181
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11182
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11183
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11184
  as_echo='printf %s\n'
11185
  as_echo_n='printf %s'
11186
else
11187
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11188
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11189
    as_echo_n='/usr/ucb/echo -n'
11190
  else
11191
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11192
    as_echo_n_body='eval
11193
      arg=$1;
11194
      case $arg in
11195
      *"$as_nl"*)
11196
	expr "X$arg" : "X\\(.*\\)$as_nl";
11197
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11198
      esac;
11199
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11200
    '
11201
    export as_echo_n_body
11202
    as_echo_n='sh -c $as_echo_n_body as_echo'
11203
  fi
11204
  export as_echo_body
11205
  as_echo='sh -c $as_echo_body as_echo'
11206
fi
11207
 
11208
# The user is always right.
11209
if test "${PATH_SEPARATOR+set}" != set; then
11210
  PATH_SEPARATOR=:
11211
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11212
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11213
      PATH_SEPARATOR=';'
11214
  }
11215
fi
11216
 
11217
# Support unset when possible.
11218
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11219
  as_unset=unset
11220
else
11221
  as_unset=false
11222
fi
11223
 
11224
 
11225
# IFS
11226
# We need space, tab and new line, in precisely that order.  Quoting is
11227
# there to prevent editors from complaining about space-tab.
11228
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11229
# splitting by setting IFS to empty value.)
11230
IFS=" ""	$as_nl"
11231
 
11232
# Find who we are.  Look in the path if we contain no directory separator.
11233
case $0 in
11234
  *[\\/]* ) as_myself=$0 ;;
11235
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236
for as_dir in $PATH
11237
do
11238
  IFS=$as_save_IFS
11239
  test -z "$as_dir" && as_dir=.
11240
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11241
done
11242
IFS=$as_save_IFS
11243
 
11244
     ;;
11245
esac
11246
# We did not find ourselves, most probably we were run as `sh COMMAND'
11247
# in which case we are not to be found in the path.
11248
if test "x$as_myself" = x; then
11249
  as_myself=$0
11250
fi
11251
if test ! -f "$as_myself"; then
11252
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11253
  { (exit 1); exit 1; }
11254
fi
11255
 
11256
# Work around bugs in pre-3.0 UWIN ksh.
11257
for as_var in ENV MAIL MAILPATH
11258
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11259
done
11260
PS1='$ '
11261
PS2='> '
11262
PS4='+ '
11263
 
11264
# NLS nuisances.
11265
LC_ALL=C
11266
export LC_ALL
11267
LANGUAGE=C
11268
export LANGUAGE
11269
 
11270
# Required to use basename.
11271
if expr a : '\(a\)' >/dev/null 2>&1 &&
11272
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11273
  as_expr=expr
11274
else
11275
  as_expr=false
11276
fi
11277
 
11278
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11279
  as_basename=basename
11280
else
11281
  as_basename=false
11282
fi
11283
 
11284
 
11285
# Name of the executable.
11286
as_me=`$as_basename -- "$0" ||
11287
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11288
	 X"$0" : 'X\(//\)$' \| \
11289
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11290
$as_echo X/"$0" |
11291
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11292
	    s//\1/
11293
	    q
11294
	  }
11295
	  /^X\/\(\/\/\)$/{
11296
	    s//\1/
11297
	    q
11298
	  }
11299
	  /^X\/\(\/\).*/{
11300
	    s//\1/
11301
	    q
11302
	  }
11303
	  s/.*/./; q'`
11304
 
11305
# CDPATH.
11306
$as_unset CDPATH
11307
 
11308
 
11309
 
11310
  as_lineno_1=$LINENO
11311
  as_lineno_2=$LINENO
11312
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11313
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11314
 
11315
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11316
  # uniformly replaced by the line number.  The first 'sed' inserts a
11317
  # line-number line after each line using $LINENO; the second 'sed'
11318
  # does the real work.  The second script uses 'N' to pair each
11319
  # line-number line with the line containing $LINENO, and appends
11320
  # trailing '-' during substitution so that $LINENO is not a special
11321
  # case at line end.
11322
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11323
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11324
  # E. McMahon (1931-1989) for sed's syntax.  :-)
11325
  sed -n '
11326
    p
11327
    /[$]LINENO/=
11328
  ' <$as_myself |
11329
    sed '
11330
      s/[$]LINENO.*/&-/
11331
      t lineno
11332
      b
11333
      :lineno
11334
      N
11335
      :loop
11336
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11337
      t loop
11338
      s/-\n.*//
11339
    ' >$as_me.lineno &&
11340
  chmod +x "$as_me.lineno" ||
11341
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11342
   { (exit 1); exit 1; }; }
11343
 
11344
  # Don't try to exec as it changes $[0], causing all sort of problems
11345
  # (the dirname of $[0] is not the place where we might find the
11346
  # original and so on.  Autoconf is especially sensitive to this).
11347
  . "./$as_me.lineno"
11348
  # Exit status is that of the last command.
11349
  exit
11350
}
11351
 
11352
 
11353
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11354
  as_dirname=dirname
11355
else
11356
  as_dirname=false
11357
fi
11358
 
11359
ECHO_C= ECHO_N= ECHO_T=
11360
case `echo -n x` in
11361
-n*)
11362
  case `echo 'x\c'` in
11363
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11364
  *)   ECHO_C='\c';;
11365
  esac;;
11366
*)
11367
  ECHO_N='-n';;
11368
esac
11369
if expr a : '\(a\)' >/dev/null 2>&1 &&
11370
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11371
  as_expr=expr
11372
else
11373
  as_expr=false
11374
fi
11375
 
11376
rm -f conf$$ conf$$.exe conf$$.file
11377
if test -d conf$$.dir; then
11378
  rm -f conf$$.dir/conf$$.file
11379
else
11380
  rm -f conf$$.dir
11381
  mkdir conf$$.dir 2>/dev/null
11382
fi
11383
if (echo >conf$$.file) 2>/dev/null; then
11384
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11385
    as_ln_s='ln -s'
11386
    # ... but there are two gotchas:
11387
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11388
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11389
    # In both cases, we have to default to `cp -p'.
11390
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11391
      as_ln_s='cp -p'
11392
  elif ln conf$$.file conf$$ 2>/dev/null; then
11393
    as_ln_s=ln
11394
  else
11395
    as_ln_s='cp -p'
11396
  fi
11397
else
11398
  as_ln_s='cp -p'
11399
fi
11400
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11401
rmdir conf$$.dir 2>/dev/null
11402
 
11403
if mkdir -p . 2>/dev/null; then
11404
  as_mkdir_p=:
11405
else
11406
  test -d ./-p && rmdir ./-p
11407
  as_mkdir_p=false
11408
fi
11409
 
11410
if test -x / >/dev/null 2>&1; then
11411
  as_test_x='test -x'
11412
else
11413
  if ls -dL / >/dev/null 2>&1; then
11414
    as_ls_L_option=L
11415
  else
11416
    as_ls_L_option=
11417
  fi
11418
  as_test_x='
11419
    eval sh -c '\''
11420
      if test -d "$1"; then
11421
	test -d "$1/.";
11422
      else
11423
	case $1 in
11424
	-*)set "./$1";;
11425
	esac;
11426
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11427
	???[sx]*):;;*)false;;esac;fi
11428
    '\'' sh
11429
  '
11430
fi
11431
as_executable_p=$as_test_x
11432
 
11433
# Sed expression to map a string onto a valid CPP name.
11434
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11435
 
11436
# Sed expression to map a string onto a valid variable name.
11437
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11438
 
11439
 
11440
exec 6>&1
11441
 
11442
# Save the log message, to keep $[0] and so on meaningful, and to
11443
# report actual input values of CONFIG_FILES etc. instead of their
11444
# values after options handling.
11445
ac_log="
11446
This file was extended by $as_me, which was
11447
generated by GNU Autoconf 2.63.  Invocation command line was
11448
 
11449
  CONFIG_FILES    = $CONFIG_FILES
11450
  CONFIG_HEADERS  = $CONFIG_HEADERS
11451
  CONFIG_LINKS    = $CONFIG_LINKS
11452
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11453
  $ $0 $@
11454
 
11455
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11456
"
11457
 
11458
_ACEOF
11459
 
11460
case $ac_config_files in *"
11461
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11462
esac
11463
 
11464
case $ac_config_headers in *"
11465
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11466
esac
11467
 
11468
 
11469
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11470
# Files that config.status was made for.
11471
config_files="$ac_config_files"
11472
config_headers="$ac_config_headers"
11473
config_commands="$ac_config_commands"
11474
 
11475
_ACEOF
11476
 
11477
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11478
ac_cs_usage="\
11479
\`$as_me' instantiates files from templates according to the
11480
current configuration.
11481
 
11482
Usage: $0 [OPTION]... [FILE]...
11483
 
11484
  -h, --help       print this help, then exit
11485
  -V, --version    print version number and configuration settings, then exit
11486
  -q, --quiet, --silent
11487
                   do not print progress messages
11488
  -d, --debug      don't remove temporary files
11489
      --recheck    update $as_me by reconfiguring in the same conditions
11490
      --file=FILE[:TEMPLATE]
11491
                   instantiate the configuration file FILE
11492
      --header=FILE[:TEMPLATE]
11493
                   instantiate the configuration header FILE
11494
 
11495
Configuration files:
11496
$config_files
11497
 
11498
Configuration headers:
11499
$config_headers
11500
 
11501
Configuration commands:
11502
$config_commands
11503
 
11504
Report bugs to <bug-autoconf@gnu.org>."
11505
 
11506
_ACEOF
11507
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11508
ac_cs_version="\\
11509
config.status
11510
configured by $0, generated by GNU Autoconf 2.63,
11511
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11512
 
11513
Copyright (C) 2008 Free Software Foundation, Inc.
11514
This config.status script is free software; the Free Software Foundation
11515
gives unlimited permission to copy, distribute and modify it."
11516
 
11517
ac_pwd='$ac_pwd'
11518
srcdir='$srcdir'
11519
INSTALL='$INSTALL'
11520
MKDIR_P='$MKDIR_P'
11521
AWK='$AWK'
11522
test -n "\$AWK" || AWK=awk
11523
_ACEOF
11524
 
11525
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11526
# The default lists apply if the user does not specify any file.
11527
ac_need_defaults=:
11528
while test $# != 0
11529
do
11530
  case $1 in
11531
  --*=*)
11532
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11533
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11534
    ac_shift=:
11535
    ;;
11536
  *)
11537
    ac_option=$1
11538
    ac_optarg=$2
11539
    ac_shift=shift
11540
    ;;
11541
  esac
11542
 
11543
  case $ac_option in
11544
  # Handling of the options.
11545
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11546
    ac_cs_recheck=: ;;
11547
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11548
    $as_echo "$ac_cs_version"; exit ;;
11549
  --debug | --debu | --deb | --de | --d | -d )
11550
    debug=: ;;
11551
  --file | --fil | --fi | --f )
11552
    $ac_shift
11553
    case $ac_optarg in
11554
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11555
    esac
11556
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11557
    ac_need_defaults=false;;
11558
  --header | --heade | --head | --hea )
11559
    $ac_shift
11560
    case $ac_optarg in
11561
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11562
    esac
11563
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11564
    ac_need_defaults=false;;
11565
  --he | --h)
11566
    # Conflict between --help and --header
11567
    { $as_echo "$as_me: error: ambiguous option: $1
11568
Try \`$0 --help' for more information." >&2
11569
   { (exit 1); exit 1; }; };;
11570
  --help | --hel | -h )
11571
    $as_echo "$ac_cs_usage"; exit ;;
11572
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11573
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11574
    ac_cs_silent=: ;;
11575
 
11576
  # This is an error.
11577
  -*) { $as_echo "$as_me: error: unrecognized option: $1
11578
Try \`$0 --help' for more information." >&2
11579
   { (exit 1); exit 1; }; } ;;
11580
 
11581
  *) ac_config_targets="$ac_config_targets $1"
11582
     ac_need_defaults=false ;;
11583
 
11584
  esac
11585
  shift
11586
done
11587
 
11588
ac_configure_extra_args=
11589
 
11590
if $ac_cs_silent; then
11591
  exec 6>/dev/null
11592
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11593
fi
11594
 
11595
_ACEOF
11596
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11597
if \$ac_cs_recheck; then
11598
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11599
  shift
11600
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11601
  CONFIG_SHELL='$SHELL'
11602
  export CONFIG_SHELL
11603
  exec "\$@"
11604
fi
11605
 
11606
_ACEOF
11607
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11608
exec 5>>config.log
11609
{
11610
  echo
11611
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11612
## Running $as_me. ##
11613
_ASBOX
11614
  $as_echo "$ac_log"
11615
} >&5
11616
 
11617
_ACEOF
11618
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11619
#
11620
# INIT-COMMANDS
11621
#
11622
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11623
 
11624
 
11625
# The HP-UX ksh and POSIX shell print the target directory to stdout
11626
# if CDPATH is set.
11627
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11628
 
11629
sed_quote_subst='$sed_quote_subst'
11630
double_quote_subst='$double_quote_subst'
11631
delay_variable_subst='$delay_variable_subst'
11632
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11633
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11634
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11635
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11636
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11637
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11638
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11639
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11640
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11641
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11642
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11643
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11644
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11645
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11646
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11647
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11648
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11649
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11650
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11651
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11652
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11653
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11654
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11655
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11656
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11657
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11658
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11659
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11660
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11661
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11662
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11663
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11664
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11665
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11666
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11667
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11668
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11669
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11670
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11671
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11672
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11673
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11674
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11675
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11676
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"`'
11677
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"`'
11678
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11679
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11680
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11681
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11682
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11683
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11684
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11685
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11686
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11687
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11688
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11689
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11690
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11691
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11692
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11693
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11694
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11695
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11696
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11697
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11698
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11699
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11700
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11701
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11702
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11703
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11704
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11705
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11706
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11707
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11708
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11709
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11710
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11711
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11712
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11713
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11714
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11715
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11716
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11717
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11718
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11719
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11720
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11721
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11722
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11723
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11724
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11725
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11726
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11727
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11728
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11729
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11730
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11731
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11732
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11733
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11734
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11735
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11736
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11737
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11738
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11739
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11740
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11741
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11742
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11743
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11744
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11745
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11746
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11747
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11748
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11749
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11750
 
11751
LTCC='$LTCC'
11752
LTCFLAGS='$LTCFLAGS'
11753
compiler='$compiler_DEFAULT'
11754
 
11755
# Quote evaled strings.
11756
for var in SED \
11757
GREP \
11758
EGREP \
11759
FGREP \
11760
LD \
11761
NM \
11762
LN_S \
11763
lt_SP2NL \
11764
lt_NL2SP \
11765
reload_flag \
11766
OBJDUMP \
11767
deplibs_check_method \
11768
file_magic_cmd \
11769
AR \
11770
AR_FLAGS \
11771
STRIP \
11772
RANLIB \
11773
CC \
11774
CFLAGS \
11775
compiler \
11776
lt_cv_sys_global_symbol_pipe \
11777
lt_cv_sys_global_symbol_to_cdecl \
11778
lt_cv_sys_global_symbol_to_c_name_address \
11779
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11780
SHELL \
11781
ECHO \
11782
lt_prog_compiler_no_builtin_flag \
11783
lt_prog_compiler_wl \
11784
lt_prog_compiler_pic \
11785
lt_prog_compiler_static \
11786
lt_cv_prog_compiler_c_o \
11787
need_locks \
11788
DSYMUTIL \
11789
NMEDIT \
11790
LIPO \
11791
OTOOL \
11792
OTOOL64 \
11793
shrext_cmds \
11794
export_dynamic_flag_spec \
11795
whole_archive_flag_spec \
11796
compiler_needs_object \
11797
with_gnu_ld \
11798
allow_undefined_flag \
11799
no_undefined_flag \
11800
hardcode_libdir_flag_spec \
11801
hardcode_libdir_flag_spec_ld \
11802
hardcode_libdir_separator \
11803
fix_srcfile_path \
11804
exclude_expsyms \
11805
include_expsyms \
11806
file_list_spec \
11807
variables_saved_for_relink \
11808
libname_spec \
11809
library_names_spec \
11810
soname_spec \
11811
finish_eval \
11812
old_striplib \
11813
striplib; do
11814
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11815
    *[\\\\\\\`\\"\\\$]*)
11816
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11817
      ;;
11818
    *)
11819
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11820
      ;;
11821
    esac
11822
done
11823
 
11824
# Double-quote double-evaled strings.
11825
for var in reload_cmds \
11826
old_postinstall_cmds \
11827
old_postuninstall_cmds \
11828
old_archive_cmds \
11829
extract_expsyms_cmds \
11830
old_archive_from_new_cmds \
11831
old_archive_from_expsyms_cmds \
11832
archive_cmds \
11833
archive_expsym_cmds \
11834
module_cmds \
11835
module_expsym_cmds \
11836
export_symbols_cmds \
11837
prelink_cmds \
11838
postinstall_cmds \
11839
postuninstall_cmds \
11840
finish_cmds \
11841
sys_lib_search_path_spec \
11842
sys_lib_dlsearch_path_spec; do
11843
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11844
    *[\\\\\\\`\\"\\\$]*)
11845
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11846
      ;;
11847
    *)
11848
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11849
      ;;
11850
    esac
11851
done
11852
 
11853
# Fix-up fallback echo if it was mangled by the above quoting rules.
11854
case \$lt_ECHO in
11855
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11856
  ;;
11857
esac
11858
 
11859
ac_aux_dir='$ac_aux_dir'
11860
xsi_shell='$xsi_shell'
11861
lt_shell_append='$lt_shell_append'
11862
 
11863
# See if we are running on zsh, and set the options which allow our
11864
# commands through without removal of \ escapes INIT.
11865
if test -n "\${ZSH_VERSION+set}" ; then
11866
   setopt NO_GLOB_SUBST
11867
fi
11868
 
11869
 
11870
    PACKAGE='$PACKAGE'
11871
    VERSION='$VERSION'
11872
    TIMESTAMP='$TIMESTAMP'
11873
    RM='$RM'
11874
    ofile='$ofile'
11875
 
11876
 
11877
 
11878
 
11879
_ACEOF
11880
 
11881
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11882
 
11883
# Handling of arguments.
11884
for ac_config_target in $ac_config_targets
11885
do
11886
  case $ac_config_target in
11887
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11888
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11889
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11890
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11891
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11892
 
11893
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11894
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11895
   { (exit 1); exit 1; }; };;
11896
  esac
11897
done
11898
 
11899
 
11900
# If the user did not use the arguments to specify the items to instantiate,
11901
# then the envvar interface is used.  Set only those that are not.
11902
# We use the long form for the default assignment because of an extremely
11903
# bizarre bug on SunOS 4.1.3.
11904
if $ac_need_defaults; then
11905
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11906
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11907
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11908
fi
11909
 
11910
# Have a temporary directory for convenience.  Make it in the build tree
11911
# simply because there is no reason against having it here, and in addition,
11912
# creating and moving files from /tmp can sometimes cause problems.
11913
# Hook for its removal unless debugging.
11914
# Note that there is a small window in which the directory will not be cleaned:
11915
# after its creation but before its name has been assigned to `$tmp'.
11916
$debug ||
11917
{
11918
  tmp=
11919
  trap 'exit_status=$?
11920
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11921
' 0
11922
  trap '{ (exit 1); exit 1; }' 1 2 13 15
11923
}
11924
# Create a (secure) tmp directory for tmp files.
11925
 
11926
{
11927
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11928
  test -n "$tmp" && test -d "$tmp"
11929
}  ||
11930
{
11931
  tmp=./conf$$-$RANDOM
11932
  (umask 077 && mkdir "$tmp")
11933
} ||
11934
{
11935
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
11936
   { (exit 1); exit 1; }
11937
}
11938
 
11939
# Set up the scripts for CONFIG_FILES section.
11940
# No need to generate them if there are no CONFIG_FILES.
11941
# This happens for instance with `./config.status config.h'.
11942
if test -n "$CONFIG_FILES"; then
11943
 
11944
 
11945
ac_cr='
'
11946
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11947
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11948
  ac_cs_awk_cr='\\r'
11949
else
11950
  ac_cs_awk_cr=$ac_cr
11951
fi
11952
11953
 
11954
_ACEOF
11955
11956
 
11957
 
11958
  echo "cat >conf$$subs.awk <<_ACEOF" &&
11959
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11960
  echo "_ACEOF"
11961
} >conf$$subs.sh ||
11962
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11963
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11964
   { (exit 1); exit 1; }; }
11965
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11966
ac_delim='%!_!# '
11967
for ac_last_try in false false false false false :; do
11968
  . ./conf$$subs.sh ||
11969
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11970
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11971
   { (exit 1); exit 1; }; }
11972
11973
 
11974
  if test $ac_delim_n = $ac_delim_num; then
11975
    break
11976
  elif $ac_last_try; then
11977
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11978
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11979
   { (exit 1); exit 1; }; }
11980
  else
11981
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11982
  fi
11983
done
11984
rm -f conf$$subs.sh
11985
11986
 
11987
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11988
_ACEOF
11989
sed -n '
11990
h
11991
s/^/S["/; s/!.*/"]=/
11992
p
11993
g
11994
s/^[^!]*!//
11995
:repl
11996
t repl
11997
s/'"$ac_delim"'$//
11998
t delim
11999
:nl
12000
h
12001
s/\(.\{148\}\).*/\1/
12002
t more1
12003
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12004
p
12005
n
12006
b repl
12007
:more1
12008
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12009
p
12010
g
12011
s/.\{148\}//
12012
t nl
12013
:delim
12014
h
12015
s/\(.\{148\}\).*/\1/
12016
t more2
12017
s/["\\]/\\&/g; s/^/"/; s/$/"/
12018
p
12019
b
12020
:more2
12021
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12022
p
12023
g
12024
s/.\{148\}//
12025
t delim
12026
' <conf$$subs.awk | sed '
12027
/^[^""]/{
12028
  N
12029
  s/\n//
12030
}
12031
' >>$CONFIG_STATUS || ac_write_fail=1
12032
rm -f conf$$subs.awk
12033
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12034
_ACAWK
12035
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12036
  for (key in S) S_is_set[key] = 1
12037
  FS = ""
12038
12039
 
12040
{
12041
  line = $ 0
12042
  nfields = split(line, field, "@")
12043
  substed = 0
12044
  len = length(field[1])
12045
  for (i = 2; i < nfields; i++) {
12046
    key = field[i]
12047
    keylen = length(key)
12048
    if (S_is_set[key]) {
12049
      value = S[key]
12050
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12051
      len += length(value) + length(field[++i])
12052
      substed = 1
12053
    } else
12054
      len += 1 + keylen
12055
  }
12056
12057
 
12058
}
12059
12060
 
12061
_ACEOF
12062
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12063
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12064
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12065
else
12066
  cat
12067
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12068
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12069
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12070
   { (exit 1); exit 1; }; }
12071
_ACEOF
12072
12073
 
12074
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12075
# trailing colons and then remove the whole line if VPATH becomes empty
12076
# (actually we leave an empty line to preserve line numbers).
12077
if test "x$srcdir" = x.; then
12078
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12079
s/:*\$(srcdir):*/:/
12080
s/:*\${srcdir}:*/:/
12081
s/:*@srcdir@:*/:/
12082
s/^\([^=]*=[	 ]*\):*/\1/
12083
s/:*$//
12084
s/^[^=]*=[	 ]*$//
12085
}'
12086
fi
12087
12088
 
12089
fi # test -n "$CONFIG_FILES"
12090
12091
 
12092
# No need to generate them if there are no CONFIG_HEADERS.
12093
# This happens for instance with `./config.status Makefile'.
12094
if test -n "$CONFIG_HEADERS"; then
12095
cat >"$tmp/defines.awk" <<\_ACAWK ||
12096
BEGIN {
12097
_ACEOF
12098
12099
 
12100
# here-document in config.status, that substitutes the proper values into
12101
# config.h.in to produce config.h.
12102
12103
 
12104
# handling of long lines.
12105
ac_delim='%!_!# '
12106
for ac_last_try in false false :; do
12107
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12108
  if test -z "$ac_t"; then
12109
    break
12110
  elif $ac_last_try; then
12111
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12112
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12113
   { (exit 1); exit 1; }; }
12114
  else
12115
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12116
  fi
12117
done
12118
12119
 
12120
# likewise P contains macro parameters if any.  Preserve backslash
12121
# newline sequences.
12122
12123
 
12124
sed -n '
12125
s/.\{148\}/&'"$ac_delim"'/g
12126
t rset
12127
:rset
12128
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12129
t def
12130
d
12131
:def
12132
s/\\$//
12133
t bsnl
12134
s/["\\]/\\&/g
12135
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12136
D["\1"]=" \3"/p
12137
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12138
d
12139
:bsnl
12140
s/["\\]/\\&/g
12141
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12142
D["\1"]=" \3\\\\\\n"\\/p
12143
t cont
12144
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12145
t cont
12146
d
12147
:cont
12148
n
12149
s/.\{148\}/&'"$ac_delim"'/g
12150
t clear
12151
:clear
12152
s/\\$//
12153
t bsnlc
12154
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12155
d
12156
:bsnlc
12157
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12158
b cont
12159
' <confdefs.h | sed '
12160
s/'"$ac_delim"'/"\\\
12161
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12162
12163
 
12164
  for (key in D) D_is_set[key] = 1
12165
  FS = ""
12166
}
12167
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12168
  line = \$ 0
12169
  split(line, arg, " ")
12170
  if (arg[1] == "#") {
12171
    defundef = arg[2]
12172
    mac1 = arg[3]
12173
  } else {
12174
    defundef = substr(arg[1], 2)
12175
    mac1 = arg[2]
12176
  }
12177
  split(mac1, mac2, "(") #)
12178
  macro = mac2[1]
12179
  prefix = substr(line, 1, index(line, defundef) - 1)
12180
  if (D_is_set[macro]) {
12181
    # Preserve the white space surrounding the "#".
12182
    print prefix "define", macro P[macro] D[macro]
12183
    next
12184
  } else {
12185
    # Replace #undef with comments.  This is necessary, for example,
12186
    # in the case of _POSIX_SOURCE, which is predefined and required
12187
    # on some systems where configure will not decide to define it.
12188
    if (defundef == "undef") {
12189
      print "/*", prefix defundef, macro, "*/"
12190
      next
12191
    }
12192
  }
12193
}
12194
{ print }
12195
_ACAWK
12196
_ACEOF
12197
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12198
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12199
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12200
   { (exit 1); exit 1; }; }
12201
fi # test -n "$CONFIG_HEADERS"
12202
12203
 
12204
 
12205
shift
12206
for ac_tag
12207
do
12208
  case $ac_tag in
12209
  :[FHLC]) ac_mode=$ac_tag; continue;;
12210
  esac
12211
  case $ac_mode$ac_tag in
12212
  :[FHL]*:*);;
12213
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12214
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12215
   { (exit 1); exit 1; }; };;
12216
  :[FH]-) ac_tag=-:-;;
12217
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12218
  esac
12219
  ac_save_IFS=$IFS
12220
  IFS=:
12221
  set x $ac_tag
12222
  IFS=$ac_save_IFS
12223
  shift
12224
  ac_file=$1
12225
  shift
12226
12227
 
12228
  :L) ac_source=$1;;
12229
  :[FH])
12230
    ac_file_inputs=
12231
    for ac_f
12232
    do
12233
      case $ac_f in
12234
      -) ac_f="$tmp/stdin";;
12235
      *) # Look for the file first in the build tree, then in the source tree
12236
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12237
	 # because $ac_f cannot contain `:'.
12238
	 test -f "$ac_f" ||
12239
	   case $ac_f in
12240
	   [\\/$]*) false;;
12241
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12242
	   esac ||
12243
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12244
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12245
   { (exit 1); exit 1; }; };;
12246
      esac
12247
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12248
      ac_file_inputs="$ac_file_inputs '$ac_f'"
12249
    done
12250
12251
 
12252
    # use $as_me), people would be surprised to read:
12253
    #    /* config.h.  Generated by config.status.  */
12254
    configure_input='Generated from '`
12255
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12256
	`' by configure.'
12257
    if test x"$ac_file" != x-; then
12258
      configure_input="$ac_file.  $configure_input"
12259
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12260
$as_echo "$as_me: creating $ac_file" >&6;}
12261
    fi
12262
    # Neutralize special characters interpreted by sed in replacement strings.
12263
    case $configure_input in #(
12264
    *\&* | *\|* | *\\* )
12265
       ac_sed_conf_input=`$as_echo "$configure_input" |
12266
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12267
    *) ac_sed_conf_input=$configure_input;;
12268
    esac
12269
12270
 
12271
    *:-:* | *:-) cat >"$tmp/stdin" \
12272
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12273
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12274
   { (exit 1); exit 1; }; } ;;
12275
    esac
12276
    ;;
12277
  esac
12278
12279
 
12280
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12281
	 X"$ac_file" : 'X\(//\)[^/]' \| \
12282
	 X"$ac_file" : 'X\(//\)$' \| \
12283
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12284
$as_echo X"$ac_file" |
12285
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12286
	    s//\1/
12287
	    q
12288
	  }
12289
	  /^X\(\/\/\)[^/].*/{
12290
	    s//\1/
12291
	    q
12292
	  }
12293
	  /^X\(\/\/\)$/{
12294
	    s//\1/
12295
	    q
12296
	  }
12297
	  /^X\(\/\).*/{
12298
	    s//\1/
12299
	    q
12300
	  }
12301
	  s/.*/./; q'`
12302
  { as_dir="$ac_dir"
12303
  case $as_dir in #(
12304
  -*) as_dir=./$as_dir;;
12305
  esac
12306
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12307
    as_dirs=
12308
    while :; do
12309
      case $as_dir in #(
12310
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12311
      *) as_qdir=$as_dir;;
12312
      esac
12313
      as_dirs="'$as_qdir' $as_dirs"
12314
      as_dir=`$as_dirname -- "$as_dir" ||
12315
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12316
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12317
	 X"$as_dir" : 'X\(//\)$' \| \
12318
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12319
$as_echo X"$as_dir" |
12320
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12321
	    s//\1/
12322
	    q
12323
	  }
12324
	  /^X\(\/\/\)[^/].*/{
12325
	    s//\1/
12326
	    q
12327
	  }
12328
	  /^X\(\/\/\)$/{
12329
	    s//\1/
12330
	    q
12331
	  }
12332
	  /^X\(\/\).*/{
12333
	    s//\1/
12334
	    q
12335
	  }
12336
	  s/.*/./; q'`
12337
      test -d "$as_dir" && break
12338
    done
12339
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12340
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12341
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12342
   { (exit 1); exit 1; }; }; }
12343
  ac_builddir=.
12344
12345
 
12346
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12347
*)
12348
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12349
  # A ".." for each directory in $ac_dir_suffix.
12350
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12351
  case $ac_top_builddir_sub in
12352
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12353
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12354
  esac ;;
12355
esac
12356
ac_abs_top_builddir=$ac_pwd
12357
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12358
# for backward compatibility:
12359
ac_top_builddir=$ac_top_build_prefix
12360
12361
 
12362
  .)  # We are building in place.
12363
    ac_srcdir=.
12364
    ac_top_srcdir=$ac_top_builddir_sub
12365
    ac_abs_top_srcdir=$ac_pwd ;;
12366
  [\\/]* | ?:[\\/]* )  # Absolute name.
12367
    ac_srcdir=$srcdir$ac_dir_suffix;
12368
    ac_top_srcdir=$srcdir
12369
    ac_abs_top_srcdir=$srcdir ;;
12370
  *) # Relative name.
12371
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12372
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12373
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12374
esac
12375
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12376
12377
 
12378
 
12379
  :F)
12380
  #
12381
  # CONFIG_FILE
12382
  #
12383
12384
 
12385
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12386
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12387
  esac
12388
  ac_MKDIR_P=$MKDIR_P
12389
  case $MKDIR_P in
12390
  [\\/$]* | ?:[\\/]* ) ;;
12391
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12392
  esac
12393
_ACEOF
12394
12395
 
12396
# If the template does not know about datarootdir, expand it.
12397
# FIXME: This hack should be removed a few years after 2.60.
12398
ac_datarootdir_hack=; ac_datarootdir_seen=
12399
12400
 
12401
/datarootdir/ {
12402
  p
12403
  q
12404
}
12405
/@datadir@/p
12406
/@docdir@/p
12407
/@infodir@/p
12408
/@localedir@/p
12409
/@mandir@/p
12410
'
12411
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12412
*datarootdir*) ac_datarootdir_seen=yes;;
12413
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12414
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12415
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12416
_ACEOF
12417
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12418
  ac_datarootdir_hack='
12419
  s&@datadir@&$datadir&g
12420
  s&@docdir@&$docdir&g
12421
  s&@infodir@&$infodir&g
12422
  s&@localedir@&$localedir&g
12423
  s&@mandir@&$mandir&g
12424
    s&\\\${datarootdir}&$datarootdir&g' ;;
12425
esac
12426
_ACEOF
12427
12428
 
12429
# Shell code in configure.ac might set extrasub.
12430
# FIXME: do we really want to maintain this feature?
12431
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12432
ac_sed_extra="$ac_vpsub
12433
$extrasub
12434
_ACEOF
12435
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12436
:t
12437
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12438
s|@configure_input@|$ac_sed_conf_input|;t t
12439
s&@top_builddir@&$ac_top_builddir_sub&;t t
12440
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12441
s&@srcdir@&$ac_srcdir&;t t
12442
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12443
s&@top_srcdir@&$ac_top_srcdir&;t t
12444
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12445
s&@builddir@&$ac_builddir&;t t
12446
s&@abs_builddir@&$ac_abs_builddir&;t t
12447
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12448
s&@INSTALL@&$ac_INSTALL&;t t
12449
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12450
$ac_datarootdir_hack
12451
"
12452
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12453
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12454
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12455
   { (exit 1); exit 1; }; }
12456
12457
 
12458
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12459
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12460
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12461
which seems to be undefined.  Please make sure it is defined." >&5
12462
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12463
which seems to be undefined.  Please make sure it is defined." >&2;}
12464
12465
 
12466
  case $ac_file in
12467
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12468
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12469
  esac \
12470
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12471
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12472
   { (exit 1); exit 1; }; }
12473
 ;;
12474
  :H)
12475
  #
12476
  # CONFIG_HEADER
12477
  #
12478
  if test x"$ac_file" != x-; then
12479
    {
12480
      $as_echo "/* $configure_input  */" \
12481
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12482
    } >"$tmp/config.h" \
12483
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12484
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12485
   { (exit 1); exit 1; }; }
12486
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12487
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12488
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12489
    else
12490
      rm -f "$ac_file"
12491
      mv "$tmp/config.h" "$ac_file" \
12492
	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12493
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12494
   { (exit 1); exit 1; }; }
12495
    fi
12496
  else
12497
    $as_echo "/* $configure_input  */" \
12498
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12499
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12500
$as_echo "$as_me: error: could not create -" >&2;}
12501
   { (exit 1); exit 1; }; }
12502
  fi
12503
# Compute "$ac_file"'s index in $config_headers.
12504
_am_arg="$ac_file"
12505
_am_stamp_count=1
12506
for _am_header in $config_headers :; do
12507
  case $_am_header in
12508
    $_am_arg | $_am_arg:* )
12509
      break ;;
12510
    * )
12511
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12512
  esac
12513
done
12514
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12515
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12516
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12517
	 X"$_am_arg" : 'X\(//\)$' \| \
12518
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12519
$as_echo X"$_am_arg" |
12520
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12521
	    s//\1/
12522
	    q
12523
	  }
12524
	  /^X\(\/\/\)[^/].*/{
12525
	    s//\1/
12526
	    q
12527
	  }
12528
	  /^X\(\/\/\)$/{
12529
	    s//\1/
12530
	    q
12531
	  }
12532
	  /^X\(\/\).*/{
12533
	    s//\1/
12534
	    q
12535
	  }
12536
	  s/.*/./; q'`/stamp-h$_am_stamp_count
12537
 ;;
12538
12539
 
12540
$as_echo "$as_me: executing $ac_file commands" >&6;}
12541
 ;;
12542
  esac
12543
12544
 
12545
 
12546
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12547
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12548
  # are listed without --file.  Let's play safe and only enable the eval
12549
  # if we detect the quoting.
12550
  case $CONFIG_FILES in
12551
  *\'*) eval set x "$CONFIG_FILES" ;;
12552
  *)   set x $CONFIG_FILES ;;
12553
  esac
12554
  shift
12555
  for mf
12556
  do
12557
    # Strip MF so we end up with the name of the file.
12558
    mf=`echo "$mf" | sed -e 's/:.*$//'`
12559
    # Check whether this is an Automake generated Makefile or not.
12560
    # We used to match only the files named `Makefile.in', but
12561
    # some people rename them; so instead we look at the file content.
12562
    # Grep'ing the first line is not enough: some people post-process
12563
    # each Makefile.in and add a new line on top of each file to say so.
12564
    # Grep'ing the whole file is not good either: AIX grep has a line
12565
    # limit of 2048, but all sed's we know have understand at least 4000.
12566
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12567
      dirpart=`$as_dirname -- "$mf" ||
12568
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12569
	 X"$mf" : 'X\(//\)[^/]' \| \
12570
	 X"$mf" : 'X\(//\)$' \| \
12571
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12572
$as_echo X"$mf" |
12573
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12574
	    s//\1/
12575
	    q
12576
	  }
12577
	  /^X\(\/\/\)[^/].*/{
12578
	    s//\1/
12579
	    q
12580
	  }
12581
	  /^X\(\/\/\)$/{
12582
	    s//\1/
12583
	    q
12584
	  }
12585
	  /^X\(\/\).*/{
12586
	    s//\1/
12587
	    q
12588
	  }
12589
	  s/.*/./; q'`
12590
    else
12591
      continue
12592
    fi
12593
    # Extract the definition of DEPDIR, am__include, and am__quote
12594
    # from the Makefile without running `make'.
12595
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12596
    test -z "$DEPDIR" && continue
12597
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12598
    test -z "am__include" && continue
12599
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12600
    # When using ansi2knr, U may be empty or an underscore; expand it
12601
    U=`sed -n 's/^U = //p' < "$mf"`
12602
    # Find all dependency output files, they are included files with
12603
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12604
    # simplest approach to changing $(DEPDIR) to its actual value in the
12605
    # expansion.
12606
    for file in `sed -n "
12607
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12608
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12609
      # Make sure the directory exists.
12610
      test -f "$dirpart/$file" && continue
12611
      fdir=`$as_dirname -- "$file" ||
12612
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12613
	 X"$file" : 'X\(//\)[^/]' \| \
12614
	 X"$file" : 'X\(//\)$' \| \
12615
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12616
$as_echo X"$file" |
12617
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12618
	    s//\1/
12619
	    q
12620
	  }
12621
	  /^X\(\/\/\)[^/].*/{
12622
	    s//\1/
12623
	    q
12624
	  }
12625
	  /^X\(\/\/\)$/{
12626
	    s//\1/
12627
	    q
12628
	  }
12629
	  /^X\(\/\).*/{
12630
	    s//\1/
12631
	    q
12632
	  }
12633
	  s/.*/./; q'`
12634
      { as_dir=$dirpart/$fdir
12635
  case $as_dir in #(
12636
  -*) as_dir=./$as_dir;;
12637
  esac
12638
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12639
    as_dirs=
12640
    while :; do
12641
      case $as_dir in #(
12642
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12643
      *) as_qdir=$as_dir;;
12644
      esac
12645
      as_dirs="'$as_qdir' $as_dirs"
12646
      as_dir=`$as_dirname -- "$as_dir" ||
12647
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12648
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12649
	 X"$as_dir" : 'X\(//\)$' \| \
12650
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12651
$as_echo X"$as_dir" |
12652
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12653
	    s//\1/
12654
	    q
12655
	  }
12656
	  /^X\(\/\/\)[^/].*/{
12657
	    s//\1/
12658
	    q
12659
	  }
12660
	  /^X\(\/\/\)$/{
12661
	    s//\1/
12662
	    q
12663
	  }
12664
	  /^X\(\/\).*/{
12665
	    s//\1/
12666
	    q
12667
	  }
12668
	  s/.*/./; q'`
12669
      test -d "$as_dir" && break
12670
    done
12671
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12672
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12673
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12674
   { (exit 1); exit 1; }; }; }
12675
      # echo "creating $dirpart/$file"
12676
      echo '# dummy' > "$dirpart/$file"
12677
    done
12678
  done
12679
}
12680
 ;;
12681
    "libtool":C)
12682
12683
 
12684
    # commands through without removal of \ escapes.
12685
    if test -n "${ZSH_VERSION+set}" ; then
12686
      setopt NO_GLOB_SUBST
12687
    fi
12688
12689
 
12690
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12691
    $RM "$cfgfile"
12692
12693
 
12694
#! $SHELL
12695
12696
 
12697
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12698
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12699
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12700
#
12701
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12702
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12703
#   Written by Gordon Matzigkeit, 1996
12704
#
12705
#   This file is part of GNU Libtool.
12706
#
12707
# GNU Libtool is free software; you can redistribute it and/or
12708
# modify it under the terms of the GNU General Public License as
12709
# published by the Free Software Foundation; either version 2 of
12710
# the License, or (at your option) any later version.
12711
#
12712
# As a special exception to the GNU General Public License,
12713
# if you distribute this file as part of a program or library that
12714
# is built using GNU Libtool, you may include this file under the
12715
# same distribution terms that you use for the rest of that program.
12716
#
12717
# GNU Libtool is distributed in the hope that it will be useful,
12718
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12719
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12720
# GNU General Public License for more details.
12721
#
12722
# You should have received a copy of the GNU General Public License
12723
# along with GNU Libtool; see the file COPYING.  If not, a copy
12724
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12725
# obtained by writing to the Free Software Foundation, Inc.,
12726
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12727
12728
 
12729
 
12730
available_tags=""
12731
12732
 
12733
12734
 
12735
macro_version=$macro_version
12736
macro_revision=$macro_revision
12737
12738
 
12739
build_libtool_libs=$enable_shared
12740
12741
 
12742
build_old_libs=$enable_static
12743
12744
 
12745
pic_mode=$pic_mode
12746
12747
 
12748
fast_install=$enable_fast_install
12749
12750
 
12751
host_alias=$host_alias
12752
host=$host
12753
host_os=$host_os
12754
12755
 
12756
build_alias=$build_alias
12757
build=$build
12758
build_os=$build_os
12759
12760
 
12761
SED=$lt_SED
12762
12763
 
12764
Xsed="\$SED -e 1s/^X//"
12765
12766
 
12767
GREP=$lt_GREP
12768
12769
 
12770
EGREP=$lt_EGREP
12771
12772
 
12773
FGREP=$lt_FGREP
12774
12775
 
12776
NM=$lt_NM
12777
12778
 
12779
LN_S=$lt_LN_S
12780
12781
 
12782
max_cmd_len=$max_cmd_len
12783
12784
 
12785
objext=$ac_objext
12786
12787
 
12788
exeext=$exeext
12789
12790
 
12791
lt_unset=$lt_unset
12792
12793
 
12794
SP2NL=$lt_lt_SP2NL
12795
12796
 
12797
NL2SP=$lt_lt_NL2SP
12798
12799
 
12800
reload_flag=$lt_reload_flag
12801
reload_cmds=$lt_reload_cmds
12802
12803
 
12804
OBJDUMP=$lt_OBJDUMP
12805
12806
 
12807
deplibs_check_method=$lt_deplibs_check_method
12808
12809
 
12810
file_magic_cmd=$lt_file_magic_cmd
12811
12812
 
12813
AR=$lt_AR
12814
AR_FLAGS=$lt_AR_FLAGS
12815
12816
 
12817
STRIP=$lt_STRIP
12818
12819
 
12820
RANLIB=$lt_RANLIB
12821
old_postinstall_cmds=$lt_old_postinstall_cmds
12822
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12823
12824
 
12825
LTCC=$lt_CC
12826
12827
 
12828
LTCFLAGS=$lt_CFLAGS
12829
12830
 
12831
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12832
12833
 
12834
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12835
12836
 
12837
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12838
12839
 
12840
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12841
12842
 
12843
objdir=$objdir
12844
12845
 
12846
SHELL=$lt_SHELL
12847
12848
 
12849
ECHO=$lt_ECHO
12850
12851
 
12852
MAGIC_CMD=$MAGIC_CMD
12853
12854
 
12855
need_locks=$lt_need_locks
12856
12857
 
12858
DSYMUTIL=$lt_DSYMUTIL
12859
12860
 
12861
NMEDIT=$lt_NMEDIT
12862
12863
 
12864
LIPO=$lt_LIPO
12865
12866
 
12867
OTOOL=$lt_OTOOL
12868
12869
 
12870
OTOOL64=$lt_OTOOL64
12871
12872
 
12873
libext=$libext
12874
12875
 
12876
shrext_cmds=$lt_shrext_cmds
12877
12878
 
12879
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12880
12881
 
12882
# restored at link time.
12883
variables_saved_for_relink=$lt_variables_saved_for_relink
12884
12885
 
12886
need_lib_prefix=$need_lib_prefix
12887
12888
 
12889
need_version=$need_version
12890
12891
 
12892
version_type=$version_type
12893
12894
 
12895
runpath_var=$runpath_var
12896
12897
 
12898
shlibpath_var=$shlibpath_var
12899
12900
 
12901
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12902
12903
 
12904
libname_spec=$lt_libname_spec
12905
12906
 
12907
# The last name is the one that the linker finds with -lNAME
12908
library_names_spec=$lt_library_names_spec
12909
12910
 
12911
soname_spec=$lt_soname_spec
12912
12913
 
12914
postinstall_cmds=$lt_postinstall_cmds
12915
12916
 
12917
postuninstall_cmds=$lt_postuninstall_cmds
12918
12919
 
12920
finish_cmds=$lt_finish_cmds
12921
12922
 
12923
# not shown.
12924
finish_eval=$lt_finish_eval
12925
12926
 
12927
hardcode_into_libs=$hardcode_into_libs
12928
12929
 
12930
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12931
12932
 
12933
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12934
12935
 
12936
dlopen_support=$enable_dlopen
12937
12938
 
12939
dlopen_self=$enable_dlopen_self
12940
12941
 
12942
dlopen_self_static=$enable_dlopen_self_static
12943
12944
 
12945
old_striplib=$lt_old_striplib
12946
striplib=$lt_striplib
12947
12948
 
12949
 
12950
LD=$lt_LD
12951
12952
 
12953
old_archive_cmds=$lt_old_archive_cmds
12954
12955
 
12956
CC=$lt_compiler
12957
12958
 
12959
with_gcc=$GCC
12960
12961
 
12962
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12963
12964
 
12965
wl=$lt_lt_prog_compiler_wl
12966
12967
 
12968
pic_flag=$lt_lt_prog_compiler_pic
12969
12970
 
12971
link_static_flag=$lt_lt_prog_compiler_static
12972
12973
 
12974
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12975
12976
 
12977
build_libtool_need_lc=$archive_cmds_need_lc
12978
12979
 
12980
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12981
12982
 
12983
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12984
12985
 
12986
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12987
12988
 
12989
compiler_needs_object=$lt_compiler_needs_object
12990
12991
 
12992
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12993
12994
 
12995
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12996
12997
 
12998
archive_cmds=$lt_archive_cmds
12999
archive_expsym_cmds=$lt_archive_expsym_cmds
13000
13001
 
13002
# a shared archive.
13003
module_cmds=$lt_module_cmds
13004
module_expsym_cmds=$lt_module_expsym_cmds
13005
13006
 
13007
with_gnu_ld=$lt_with_gnu_ld
13008
13009
 
13010
allow_undefined_flag=$lt_allow_undefined_flag
13011
13012
 
13013
no_undefined_flag=$lt_no_undefined_flag
13014
13015
 
13016
# This must work even if \$libdir does not exist
13017
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13018
13019
 
13020
# during linking.  This must work even if \$libdir does not exist.
13021
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13022
13023
 
13024
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13025
13026
 
13027
# DIR into the resulting binary.
13028
hardcode_direct=$hardcode_direct
13029
13030
 
13031
# DIR into the resulting binary and the resulting library dependency is
13032
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13033
# library is relocated.
13034
hardcode_direct_absolute=$hardcode_direct_absolute
13035
13036
 
13037
# into the resulting binary.
13038
hardcode_minus_L=$hardcode_minus_L
13039
13040
 
13041
# into the resulting binary.
13042
hardcode_shlibpath_var=$hardcode_shlibpath_var
13043
13044
 
13045
# into the library and all subsequent libraries and executables linked
13046
# against it.
13047
hardcode_automatic=$hardcode_automatic
13048
13049
 
13050
# to runtime path list.
13051
inherit_rpath=$inherit_rpath
13052
13053
 
13054
link_all_deplibs=$link_all_deplibs
13055
13056
 
13057
fix_srcfile_path=$lt_fix_srcfile_path
13058
13059
 
13060
always_export_symbols=$always_export_symbols
13061
13062
 
13063
export_symbols_cmds=$lt_export_symbols_cmds
13064
13065
 
13066
exclude_expsyms=$lt_exclude_expsyms
13067
13068
 
13069
include_expsyms=$lt_include_expsyms
13070
13071
 
13072
prelink_cmds=$lt_prelink_cmds
13073
13074
 
13075
file_list_spec=$lt_file_list_spec
13076
13077
 
13078
hardcode_action=$hardcode_action
13079
13080
 
13081
13082
 
13083
13084
 
13085
  aix3*)
13086
    cat <<\_LT_EOF >> "$cfgfile"
13087
# AIX sometimes has problems with the GCC collect2 program.  For some
13088
# reason, if we set the COLLECT_NAMES environment variable, the problems
13089
# vanish in a puff of smoke.
13090
if test "X${COLLECT_NAMES+set}" != Xset; then
13091
  COLLECT_NAMES=
13092
  export COLLECT_NAMES
13093
fi
13094
_LT_EOF
13095
    ;;
13096
  esac
13097
13098
 
13099
 
13100
13101
 
13102
 
13103
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13104
  # text mode, it properly converts lines to CR/LF.  This bash problem
13105
  # is reportedly fixed, but why not run on old versions too?
13106
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13107
    || (rm -f "$cfgfile"; exit 1)
13108
13109
 
13110
  yes)
13111
    cat << \_LT_EOF >> "$cfgfile"
13112
13113
 
13114
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13115
# otherwise set result to NONDIR_REPLACEMENT.
13116
func_dirname ()
13117
{
13118
  case ${1} in
13119
    */*) func_dirname_result="${1%/*}${2}" ;;
13120
    *  ) func_dirname_result="${3}" ;;
13121
  esac
13122
}
13123
13124
 
13125
func_basename ()
13126
{
13127
  func_basename_result="${1##*/}"
13128
}
13129
13130
 
13131
# perform func_basename and func_dirname in a single function
13132
# call:
13133
#   dirname:  Compute the dirname of FILE.  If nonempty,
13134
#             add APPEND to the result, otherwise set result
13135
#             to NONDIR_REPLACEMENT.
13136
#             value returned in "$func_dirname_result"
13137
#   basename: Compute filename of FILE.
13138
#             value retuned in "$func_basename_result"
13139
# Implementation must be kept synchronized with func_dirname
13140
# and func_basename. For efficiency, we do not delegate to
13141
# those functions but instead duplicate the functionality here.
13142
func_dirname_and_basename ()
13143
{
13144
  case ${1} in
13145
    */*) func_dirname_result="${1%/*}${2}" ;;
13146
    *  ) func_dirname_result="${3}" ;;
13147
  esac
13148
  func_basename_result="${1##*/}"
13149
}
13150
13151
 
13152
# strip PREFIX and SUFFIX off of NAME.
13153
# PREFIX and SUFFIX must not contain globbing or regex special
13154
# characters, hashes, percent signs, but SUFFIX may contain a leading
13155
# dot (in which case that matches only a dot).
13156
func_stripname ()
13157
{
13158
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13159
  # positional parameters, so assign one to ordinary parameter first.
13160
  func_stripname_result=${3}
13161
  func_stripname_result=${func_stripname_result#"${1}"}
13162
  func_stripname_result=${func_stripname_result%"${2}"}
13163
}
13164
13165
 
13166
func_opt_split ()
13167
{
13168
  func_opt_split_opt=${1%%=*}
13169
  func_opt_split_arg=${1#*=}
13170
}
13171
13172
 
13173
func_lo2o ()
13174
{
13175
  case ${1} in
13176
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13177
    *)    func_lo2o_result=${1} ;;
13178
  esac
13179
}
13180
13181
 
13182
func_xform ()
13183
{
13184
  func_xform_result=${1%.*}.lo
13185
}
13186
13187
 
13188
func_arith ()
13189
{
13190
  func_arith_result=$(( $* ))
13191
}
13192
13193
 
13194
# STRING may not start with a hyphen.
13195
func_len ()
13196
{
13197
  func_len_result=${#1}
13198
}
13199
13200
 
13201
    ;;
13202
  *) # Bourne compatible functions.
13203
    cat << \_LT_EOF >> "$cfgfile"
13204
13205
 
13206
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13207
# otherwise set result to NONDIR_REPLACEMENT.
13208
func_dirname ()
13209
{
13210
  # Extract subdirectory from the argument.
13211
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13212
  if test "X$func_dirname_result" = "X${1}"; then
13213
    func_dirname_result="${3}"
13214
  else
13215
    func_dirname_result="$func_dirname_result${2}"
13216
  fi
13217
}
13218
13219
 
13220
func_basename ()
13221
{
13222
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13223
}
13224
13225
 
13226
 
13227
# strip PREFIX and SUFFIX off of NAME.
13228
# PREFIX and SUFFIX must not contain globbing or regex special
13229
# characters, hashes, percent signs, but SUFFIX may contain a leading
13230
# dot (in which case that matches only a dot).
13231
# func_strip_suffix prefix name
13232
func_stripname ()
13233
{
13234
  case ${2} in
13235
    .*) func_stripname_result=`$ECHO "X${3}" \
13236
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13237
    *)  func_stripname_result=`$ECHO "X${3}" \
13238
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13239
  esac
13240
}
13241
13242
 
13243
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13244
my_sed_long_arg='1s/^-[^=]*=//'
13245
13246
 
13247
func_opt_split ()
13248
{
13249
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13250
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13251
}
13252
13253
 
13254
func_lo2o ()
13255
{
13256
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13257
}
13258
13259
 
13260
func_xform ()
13261
{
13262
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13263
}
13264
13265
 
13266
func_arith ()
13267
{
13268
  func_arith_result=`expr "$@"`
13269
}
13270
13271
 
13272
# STRING may not start with a hyphen.
13273
func_len ()
13274
{
13275
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13276
}
13277
13278
 
13279
esac
13280
13281
 
13282
  yes)
13283
    cat << \_LT_EOF >> "$cfgfile"
13284
13285
 
13286
# Append VALUE to the end of shell variable VAR.
13287
func_append ()
13288
{
13289
  eval "$1+=\$2"
13290
}
13291
_LT_EOF
13292
    ;;
13293
  *)
13294
    cat << \_LT_EOF >> "$cfgfile"
13295
13296
 
13297
# Append VALUE to the end of shell variable VAR.
13298
func_append ()
13299
{
13300
  eval "$1=\$$1\$2"
13301
}
13302
13303
 
13304
    ;;
13305
  esac
13306
13307
 
13308
 
13309
    || (rm -f "$cfgfile"; exit 1)
13310
13311
 
13312
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13313
  chmod +x "$ofile"
13314
13315
 
13316
13317
 
13318
done # for ac_tag
13319
13320
 
13321
 
13322
_ACEOF
13323
chmod +x $CONFIG_STATUS
13324
ac_clean_files=$ac_clean_files_save
13325
13326
 
13327
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13328
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13329
   { (exit 1); exit 1; }; }
13330
13331
 
13332
 
13333
# config.status does its own redirection, appending to config.log.
13334
# Unfortunately, on DOS this fails, as config.log is still kept open
13335
# by configure, so config.status won't be able to write to it; its
13336
# output is simply discarded.  So we exec the FD to /dev/null,
13337
# effectively closing config.log, so it can be properly (re)opened and
13338
# appended to by config.status.  When coming back to configure, we
13339
# need to make the FD available again.
13340
if test "$no_create" != yes; then
13341
  ac_cs_success=:
13342
  ac_config_status_args=
13343
  test "$silent" = yes &&
13344
    ac_config_status_args="$ac_config_status_args --quiet"
13345
  exec 5>/dev/null
13346
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13347
  exec 5>>config.log
13348
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13349
  # would make configure fail if this is the last instruction.
13350
  $ac_cs_success || { (exit 1); exit 1; }
13351
fi
13352
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13353
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13354
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13355
fi
13356
13357