Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 ashish 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for thrift 0.2.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (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
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""	$as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184
do
185
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in #(
189
	 /*)
190
	   for as_base in sh bash ksh sh5; do
191
	     # Try only shells that exist, to save several forks.
192
	     as_shell=$as_dir/$as_base
193
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
	   done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
	# neutralization value for shells without unset; and this also
214
	# works around shells that cannot unset nonexistent variables.
215
	BASH_ENV=/dev/null
216
	ENV=/dev/null
217
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
	export CONFIG_SHELL
219
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
  else
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233
  fi
234
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243
 
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
# as_fn_unset VAR
248
# ---------------
249
# Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
# as_fn_set_status STATUS
257
# -----------------------
258
# Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} # as_fn_set_status
263
 
264
# as_fn_exit STATUS
265
# -----------------
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} # as_fn_exit
273
 
274
# as_fn_mkdir_p
275
# -------------
276
# Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
	 X"$as_dir" : 'X\(//\)[^/]' \| \
294
	 X"$as_dir" : 'X\(//\)$' \| \
295
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
	    s//\1/
299
	    q
300
	  }
301
	  /^X\(\/\/\)[^/].*/{
302
	    s//\1/
303
	    q
304
	  }
305
	  /^X\(\/\/\)$/{
306
	    s//\1/
307
	    q
308
	  }
309
	  /^X\(\/\).*/{
310
	    s//\1/
311
	    q
312
	  }
313
	  s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} # as_fn_mkdir_p
321
# as_fn_append VAR VALUE
322
# ----------------------
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
324
# advantage of any shell optimizations that allow amortized linear growth over
325
# repeated appends, instead of the typical quadratic growth present in naive
326
# implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
# as_fn_arith ARG...
340
# ------------------
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
343
# must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
# as_fn_error ERROR [LINENO LOG_FD]
358
# ---------------------------------
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
# script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} # as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391
 
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
	 X"$0" : 'X\(//\)$' \| \
395
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
	    s//\1/
399
	    q
400
	  }
401
	  /^X\/\(\/\/\)$/{
402
	    s//\1/
403
	    q
404
	  }
405
	  /^X\/\(\/\).*/{
406
	    s//\1/
407
	    q
408
	  }
409
	  s/.*/./; q'`
410
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428
    sed '
429
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433
      N
434
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436
      t loop
437
      s/-\n.*//
438
    ' >$as_me.lineno &&
439
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in #(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T='	';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461
esac
462
 
463
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466
else
467
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469
fi
470
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489
 
490
if mkdir -p . 2>/dev/null; then
491
  as_mkdir_p='mkdir -p "$as_dir"'
492
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
	test -d "$1/.";
509
      else
510
	case $1 in #(
511
	-*)set "./$1";;
512
	esac;
513
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514
	???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527
 
528
# Check that we are running under the correct shell.
529
SHELL=${CONFIG_SHELL-/bin/sh}
530
 
531
case X$lt_ECHO in
532
X*--fallback-echo)
533
  # Remove one level of quotation (which was required for Make).
534
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535
  ;;
536
esac
537
 
538
ECHO=${lt_ECHO-echo}
539
if test "X$1" = X--no-reexec; then
540
  # Discard the --no-reexec flag, and continue.
541
  shift
542
elif test "X$1" = X--fallback-echo; then
543
  # Avoid inline document here, it may be left over
544
  :
545
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546
  # Yippee, $ECHO works!
547
  :
548
else
549
  # Restart under the correct shell.
550
  exec $SHELL "$0" --no-reexec ${1+"$@"}
551
fi
552
 
553
if test "X$1" = X--fallback-echo; then
554
  # used as fallback echo
555
  shift
556
  cat <<_LT_EOF
557
$*
558
_LT_EOF
559
  exit 0
560
fi
561
 
562
# The HP-UX ksh and POSIX shell print the target directory to stdout
563
# if CDPATH is set.
564
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
 
566
if test -z "$lt_ECHO"; then
567
  if test "X${echo_test_string+set}" != Xset; then
568
    # find a string as large as possible, as long as the shell can cope with it
569
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573
      then
574
        break
575
      fi
576
    done
577
  fi
578
 
579
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581
     test "X$echo_testing_string" = "X$echo_test_string"; then
582
    :
583
  else
584
    # The Solaris, AIX, and Digital Unix default echo programs unquote
585
    # backslashes.  This makes it impossible to quote backslashes using
586
    #   echo "$something" | sed 's/\\/\\\\/g'
587
    #
588
    # So, first we look for a working echo in the user's PATH.
589
 
590
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591
    for dir in $PATH /usr/ucb; do
592
      IFS="$lt_save_ifs"
593
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596
         test "X$echo_testing_string" = "X$echo_test_string"; then
597
        ECHO="$dir/echo"
598
        break
599
      fi
600
    done
601
    IFS="$lt_save_ifs"
602
 
603
    if test "X$ECHO" = Xecho; then
604
      # We didn't find a better echo, so look for alternatives.
605
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607
         test "X$echo_testing_string" = "X$echo_test_string"; then
608
        # This shell has a builtin print -r that does the trick.
609
        ECHO='print -r'
610
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
612
        # If we have ksh, try running configure again with it.
613
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614
        export ORIGINAL_CONFIG_SHELL
615
        CONFIG_SHELL=/bin/ksh
616
        export CONFIG_SHELL
617
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618
      else
619
        # Try using printf.
620
        ECHO='printf %s\n'
621
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623
	   test "X$echo_testing_string" = "X$echo_test_string"; then
624
	  # Cool, printf works
625
	  :
626
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627
	     test "X$echo_testing_string" = 'X\t' &&
628
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629
	     test "X$echo_testing_string" = "X$echo_test_string"; then
630
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631
	  export CONFIG_SHELL
632
	  SHELL="$CONFIG_SHELL"
633
	  export SHELL
634
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
635
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636
	     test "X$echo_testing_string" = 'X\t' &&
637
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638
	     test "X$echo_testing_string" = "X$echo_test_string"; then
639
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
        else
641
	  # maybe with a smaller string...
642
	  prev=:
643
 
644
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646
	    then
647
	      break
648
	    fi
649
	    prev="$cmd"
650
	  done
651
 
652
	  if test "$prev" != 'sed 50q "$0"'; then
653
	    echo_test_string=`eval $prev`
654
	    export echo_test_string
655
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656
	  else
657
	    # Oops.  We lost completely, so just stick with echo.
658
	    ECHO=echo
659
	  fi
660
        fi
661
      fi
662
    fi
663
  fi
664
fi
665
 
666
# Copy echo and quote the copy suitably for passing to libtool from
667
# the Makefile, instead of quoting the original, which is used later.
668
lt_ECHO=$ECHO
669
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671
fi
672
 
673
 
674
 
675
 
676
exec 7<&0 </dev/null 6>&1
677
 
678
# Name of the host.
679
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680
# so uname gets run too.
681
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
 
683
#
684
# Initializations.
685
#
686
ac_default_prefix=/usr/local
687
ac_clean_files=
688
ac_config_libobj_dir=.
689
LIBOBJS=
690
cross_compiling=no
691
subdirs=
692
MFLAGS=
693
MAKEFLAGS=
694
 
695
# Identity of this package.
696
PACKAGE_NAME='thrift'
697
PACKAGE_TARNAME='thrift'
698
PACKAGE_VERSION='0.2.0'
699
PACKAGE_STRING='thrift 0.2.0'
700
PACKAGE_BUGREPORT=''
701
PACKAGE_URL=''
702
 
703
# Factoring default headers for most tests.
704
ac_includes_default="\
705
#include <stdio.h>
706
#ifdef HAVE_SYS_TYPES_H
707
# include <sys/types.h>
708
#endif
709
#ifdef HAVE_SYS_STAT_H
710
# include <sys/stat.h>
711
#endif
712
#ifdef STDC_HEADERS
713
# include <stdlib.h>
714
# include <stddef.h>
715
#else
716
# ifdef HAVE_STDLIB_H
717
#  include <stdlib.h>
718
# endif
719
#endif
720
#ifdef HAVE_STRING_H
721
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722
#  include <memory.h>
723
# endif
724
# include <string.h>
725
#endif
726
#ifdef HAVE_STRINGS_H
727
# include <strings.h>
728
#endif
729
#ifdef HAVE_INTTYPES_H
730
# include <inttypes.h>
731
#endif
732
#ifdef HAVE_STDINT_H
733
# include <stdint.h>
734
#endif
735
#ifdef HAVE_UNISTD_H
736
# include <unistd.h>
737
#endif"
738
 
739
ac_subst_vars='am__EXEEXT_FALSE
740
am__EXEEXT_TRUE
741
LTLIBOBJS
742
THRIFT_GEN_html_FALSE
743
THRIFT_GEN_html_TRUE
744
THRIFT_GEN_xsd_FALSE
745
THRIFT_GEN_xsd_TRUE
746
THRIFT_GEN_hs_FALSE
747
THRIFT_GEN_hs_TRUE
748
THRIFT_GEN_ocaml_FALSE
749
THRIFT_GEN_ocaml_TRUE
750
THRIFT_GEN_st_FALSE
751
THRIFT_GEN_st_TRUE
752
THRIFT_GEN_cocoa_FALSE
753
THRIFT_GEN_cocoa_TRUE
754
THRIFT_GEN_erl_FALSE
755
THRIFT_GEN_erl_TRUE
756
THRIFT_GEN_php_FALSE
757
THRIFT_GEN_php_TRUE
758
THRIFT_GEN_perl_FALSE
759
THRIFT_GEN_perl_TRUE
760
THRIFT_GEN_rb_FALSE
761
THRIFT_GEN_rb_TRUE
762
THRIFT_GEN_py_FALSE
763
THRIFT_GEN_py_TRUE
764
THRIFT_GEN_csharp_FALSE
765
THRIFT_GEN_csharp_TRUE
766
THRIFT_GEN_java_FALSE
767
THRIFT_GEN_java_TRUE
768
THRIFT_GEN_cpp_FALSE
769
THRIFT_GEN_cpp_TRUE
770
LIBOBJS
771
ALLOCA
772
HAVE_RSPEC_FALSE
773
HAVE_RSPEC_TRUE
774
WITH_RUBY_FALSE
775
WITH_RUBY_TRUE
776
RSPEC
777
RUBY
778
WITH_PERL_FALSE
779
WITH_PERL_TRUE
780
PERL
781
WITH_PYTHON_FALSE
782
WITH_PYTHON_TRUE
783
pkgpyexecdir
784
pyexecdir
785
pkgpythondir
786
pythondir
787
PYTHON_PLATFORM
788
PYTHON_EXEC_PREFIX
789
PYTHON_PREFIX
790
PYTHON_VERSION
791
PYTHON
792
WITH_ERLANG_FALSE
793
WITH_ERLANG_TRUE
794
ERLC
795
WITH_JAVA_FALSE
796
WITH_JAVA_TRUE
797
ANT_FLAGS
798
CLASSPATH
799
ANT
800
NET_2_0_FALSE
801
NET_2_0_TRUE
802
WITH_MONO_FALSE
803
WITH_MONO_TRUE
804
MONO_LIBS
805
MONO_CFLAGS
806
PKG_CONFIG
807
AMX_HAVE_ZLIB_FALSE
808
AMX_HAVE_ZLIB_TRUE
809
ZLIB_LIBS
810
ZLIB_LDFLAGS
811
ZLIB_CPPFLAGS
812
AMX_HAVE_LIBEVENT_FALSE
813
AMX_HAVE_LIBEVENT_TRUE
814
LIBEVENT_LIBS
815
LIBEVENT_LDFLAGS
816
LIBEVENT_CPPFLAGS
817
BOOST_LDFLAGS
818
BOOST_CPPFLAGS
819
LEXLIB
820
LEX_OUTPUT_ROOT
821
LEX
822
YFLAGS
823
YACC
824
CXXCPP
825
OTOOL64
826
OTOOL
827
LIPO
828
NMEDIT
829
DSYMUTIL
830
lt_ECHO
831
RANLIB
832
AR
833
OBJDUMP
834
LN_S
835
NM
836
ac_ct_DUMPBIN
837
DUMPBIN
838
LD
839
FGREP
840
EGREP
841
GREP
842
SED
843
host_os
844
host_vendor
845
host_cpu
846
host
847
build_os
848
build_vendor
849
build_cpu
850
build
851
LIBTOOL
852
am__fastdepCXX_FALSE
853
am__fastdepCXX_TRUE
854
CXXDEPMODE
855
ac_ct_CXX
856
CXXFLAGS
857
CXX
858
CPP
859
am__fastdepCC_FALSE
860
am__fastdepCC_TRUE
861
CCDEPMODE
862
AMDEPBACKSLASH
863
AMDEP_FALSE
864
AMDEP_TRUE
865
am__quote
866
am__include
867
DEPDIR
868
OBJEXT
869
EXEEXT
870
ac_ct_CC
871
CPPFLAGS
872
LDFLAGS
873
CFLAGS
874
CC
875
JAVA_PREFIX
876
PY_PREFIX
877
am__untar
878
am__tar
879
AMTAR
880
am__leading_dot
881
SET_MAKE
882
AWK
883
mkdir_p
884
MKDIR_P
885
INSTALL_STRIP_PROGRAM
886
STRIP
887
install_sh
888
MAKEINFO
889
AUTOHEADER
890
AUTOMAKE
891
AUTOCONF
892
ACLOCAL
893
VERSION
894
PACKAGE
895
CYGPATH_W
896
am__isrc
897
INSTALL_DATA
898
INSTALL_SCRIPT
899
INSTALL_PROGRAM
900
target_alias
901
host_alias
902
build_alias
903
LIBS
904
ECHO_T
905
ECHO_N
906
ECHO_C
907
DEFS
908
mandir
909
localedir
910
libdir
911
psdir
912
pdfdir
913
dvidir
914
htmldir
915
infodir
916
docdir
917
oldincludedir
918
includedir
919
localstatedir
920
sharedstatedir
921
sysconfdir
922
datadir
923
datarootdir
924
libexecdir
925
sbindir
926
bindir
927
program_transform_name
928
prefix
929
exec_prefix
930
PACKAGE_URL
931
PACKAGE_BUGREPORT
932
PACKAGE_STRING
933
PACKAGE_VERSION
934
PACKAGE_TARNAME
935
PACKAGE_NAME
936
PATH_SEPARATOR
937
SHELL'
938
ac_subst_files=''
939
ac_user_opts='
940
enable_option_checking
941
enable_dependency_tracking
942
enable_shared
943
enable_static
944
with_pic
945
enable_fast_install
946
with_gnu_ld
947
enable_libtool_lock
948
with_boost
949
with_libevent
950
with_zlib
951
with_csharp
952
with_java
953
with_erlang
954
with_py
955
with_perl
956
with_ruby
957
enable_gen_cpp
958
enable_gen_java
959
enable_gen_csharp
960
enable_gen_py
961
enable_gen_rb
962
enable_gen_perl
963
enable_gen_php
964
enable_gen_erl
965
enable_gen_cocoa
966
enable_gen_st
967
enable_gen_ocaml
968
enable_gen_hs
969
enable_gen_xsd
970
enable_gen_html
971
'
972
      ac_precious_vars='build_alias
973
host_alias
974
target_alias
975
PY_PREFIX
976
JAVA_PREFIX
977
CC
978
CFLAGS
979
LDFLAGS
980
LIBS
981
CPPFLAGS
982
CPP
983
CXX
984
CXXFLAGS
985
CCC
986
CXXCPP
987
YACC
988
YFLAGS
989
PKG_CONFIG
990
MONO_CFLAGS
991
MONO_LIBS'
992
 
993
 
994
# Initialize some variables set by options.
995
ac_init_help=
996
ac_init_version=false
997
ac_unrecognized_opts=
998
ac_unrecognized_sep=
999
# The variables have the same names as the options, with
1000
# dashes changed to underlines.
1001
cache_file=/dev/null
1002
exec_prefix=NONE
1003
no_create=
1004
no_recursion=
1005
prefix=NONE
1006
program_prefix=NONE
1007
program_suffix=NONE
1008
program_transform_name=s,x,x,
1009
silent=
1010
site=
1011
srcdir=
1012
verbose=
1013
x_includes=NONE
1014
x_libraries=NONE
1015
 
1016
# Installation directory options.
1017
# These are left unexpanded so users can "make install exec_prefix=/foo"
1018
# and all the variables that are supposed to be based on exec_prefix
1019
# by default will actually change.
1020
# Use braces instead of parens because sh, perl, etc. also accept them.
1021
# (The list follows the same order as the GNU Coding Standards.)
1022
bindir='${exec_prefix}/bin'
1023
sbindir='${exec_prefix}/sbin'
1024
libexecdir='${exec_prefix}/libexec'
1025
datarootdir='${prefix}/share'
1026
datadir='${datarootdir}'
1027
sysconfdir='${prefix}/etc'
1028
sharedstatedir='${prefix}/com'
1029
localstatedir='${prefix}/var'
1030
includedir='${prefix}/include'
1031
oldincludedir='/usr/include'
1032
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033
infodir='${datarootdir}/info'
1034
htmldir='${docdir}'
1035
dvidir='${docdir}'
1036
pdfdir='${docdir}'
1037
psdir='${docdir}'
1038
libdir='${exec_prefix}/lib'
1039
localedir='${datarootdir}/locale'
1040
mandir='${datarootdir}/man'
1041
 
1042
ac_prev=
1043
ac_dashdash=
1044
for ac_option
1045
do
1046
  # If the previous option needs an argument, assign it.
1047
  if test -n "$ac_prev"; then
1048
    eval $ac_prev=\$ac_option
1049
    ac_prev=
1050
    continue
1051
  fi
1052
 
1053
  case $ac_option in
1054
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055
  *)	ac_optarg=yes ;;
1056
  esac
1057
 
1058
  # Accept the important Cygnus configure options, so we can diagnose typos.
1059
 
1060
  case $ac_dashdash$ac_option in
1061
  --)
1062
    ac_dashdash=yes ;;
1063
 
1064
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065
    ac_prev=bindir ;;
1066
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067
    bindir=$ac_optarg ;;
1068
 
1069
  -build | --build | --buil | --bui | --bu)
1070
    ac_prev=build_alias ;;
1071
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072
    build_alias=$ac_optarg ;;
1073
 
1074
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1075
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076
    ac_prev=cache_file ;;
1077
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079
    cache_file=$ac_optarg ;;
1080
 
1081
  --config-cache | -C)
1082
    cache_file=config.cache ;;
1083
 
1084
  -datadir | --datadir | --datadi | --datad)
1085
    ac_prev=datadir ;;
1086
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087
    datadir=$ac_optarg ;;
1088
 
1089
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090
  | --dataroo | --dataro | --datar)
1091
    ac_prev=datarootdir ;;
1092
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094
    datarootdir=$ac_optarg ;;
1095
 
1096
  -disable-* | --disable-*)
1097
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098
    # Reject names that are not valid shell variable names.
1099
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100
      as_fn_error "invalid feature name: $ac_useropt"
1101
    ac_useropt_orig=$ac_useropt
1102
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103
    case $ac_user_opts in
1104
      *"
1105
"enable_$ac_useropt"
1106
"*) ;;
1107
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108
	 ac_unrecognized_sep=', ';;
1109
    esac
1110
    eval enable_$ac_useropt=no ;;
1111
 
1112
  -docdir | --docdir | --docdi | --doc | --do)
1113
    ac_prev=docdir ;;
1114
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115
    docdir=$ac_optarg ;;
1116
 
1117
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118
    ac_prev=dvidir ;;
1119
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120
    dvidir=$ac_optarg ;;
1121
 
1122
  -enable-* | --enable-*)
1123
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124
    # Reject names that are not valid shell variable names.
1125
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126
      as_fn_error "invalid feature name: $ac_useropt"
1127
    ac_useropt_orig=$ac_useropt
1128
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129
    case $ac_user_opts in
1130
      *"
1131
"enable_$ac_useropt"
1132
"*) ;;
1133
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134
	 ac_unrecognized_sep=', ';;
1135
    esac
1136
    eval enable_$ac_useropt=\$ac_optarg ;;
1137
 
1138
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140
  | --exec | --exe | --ex)
1141
    ac_prev=exec_prefix ;;
1142
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144
  | --exec=* | --exe=* | --ex=*)
1145
    exec_prefix=$ac_optarg ;;
1146
 
1147
  -gas | --gas | --ga | --g)
1148
    # Obsolete; use --with-gas.
1149
    with_gas=yes ;;
1150
 
1151
  -help | --help | --hel | --he | -h)
1152
    ac_init_help=long ;;
1153
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154
    ac_init_help=recursive ;;
1155
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156
    ac_init_help=short ;;
1157
 
1158
  -host | --host | --hos | --ho)
1159
    ac_prev=host_alias ;;
1160
  -host=* | --host=* | --hos=* | --ho=*)
1161
    host_alias=$ac_optarg ;;
1162
 
1163
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164
    ac_prev=htmldir ;;
1165
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166
  | --ht=*)
1167
    htmldir=$ac_optarg ;;
1168
 
1169
  -includedir | --includedir | --includedi | --included | --include \
1170
  | --includ | --inclu | --incl | --inc)
1171
    ac_prev=includedir ;;
1172
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1174
    includedir=$ac_optarg ;;
1175
 
1176
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1177
    ac_prev=infodir ;;
1178
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179
    infodir=$ac_optarg ;;
1180
 
1181
  -libdir | --libdir | --libdi | --libd)
1182
    ac_prev=libdir ;;
1183
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184
    libdir=$ac_optarg ;;
1185
 
1186
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187
  | --libexe | --libex | --libe)
1188
    ac_prev=libexecdir ;;
1189
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190
  | --libexe=* | --libex=* | --libe=*)
1191
    libexecdir=$ac_optarg ;;
1192
 
1193
  -localedir | --localedir | --localedi | --localed | --locale)
1194
    ac_prev=localedir ;;
1195
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196
    localedir=$ac_optarg ;;
1197
 
1198
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1199
  | --localstate | --localstat | --localsta | --localst | --locals)
1200
    ac_prev=localstatedir ;;
1201
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203
    localstatedir=$ac_optarg ;;
1204
 
1205
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206
    ac_prev=mandir ;;
1207
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208
    mandir=$ac_optarg ;;
1209
 
1210
  -nfp | --nfp | --nf)
1211
    # Obsolete; use --without-fp.
1212
    with_fp=no ;;
1213
 
1214
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215
  | --no-cr | --no-c | -n)
1216
    no_create=yes ;;
1217
 
1218
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220
    no_recursion=yes ;;
1221
 
1222
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224
  | --oldin | --oldi | --old | --ol | --o)
1225
    ac_prev=oldincludedir ;;
1226
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229
    oldincludedir=$ac_optarg ;;
1230
 
1231
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232
    ac_prev=prefix ;;
1233
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234
    prefix=$ac_optarg ;;
1235
 
1236
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237
  | --program-pre | --program-pr | --program-p)
1238
    ac_prev=program_prefix ;;
1239
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241
    program_prefix=$ac_optarg ;;
1242
 
1243
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244
  | --program-suf | --program-su | --program-s)
1245
    ac_prev=program_suffix ;;
1246
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248
    program_suffix=$ac_optarg ;;
1249
 
1250
  -program-transform-name | --program-transform-name \
1251
  | --program-transform-nam | --program-transform-na \
1252
  | --program-transform-n | --program-transform- \
1253
  | --program-transform | --program-transfor \
1254
  | --program-transfo | --program-transf \
1255
  | --program-trans | --program-tran \
1256
  | --progr-tra | --program-tr | --program-t)
1257
    ac_prev=program_transform_name ;;
1258
  -program-transform-name=* | --program-transform-name=* \
1259
  | --program-transform-nam=* | --program-transform-na=* \
1260
  | --program-transform-n=* | --program-transform-=* \
1261
  | --program-transform=* | --program-transfor=* \
1262
  | --program-transfo=* | --program-transf=* \
1263
  | --program-trans=* | --program-tran=* \
1264
  | --progr-tra=* | --program-tr=* | --program-t=*)
1265
    program_transform_name=$ac_optarg ;;
1266
 
1267
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268
    ac_prev=pdfdir ;;
1269
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270
    pdfdir=$ac_optarg ;;
1271
 
1272
  -psdir | --psdir | --psdi | --psd | --ps)
1273
    ac_prev=psdir ;;
1274
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275
    psdir=$ac_optarg ;;
1276
 
1277
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278
  | -silent | --silent | --silen | --sile | --sil)
1279
    silent=yes ;;
1280
 
1281
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282
    ac_prev=sbindir ;;
1283
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284
  | --sbi=* | --sb=*)
1285
    sbindir=$ac_optarg ;;
1286
 
1287
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289
  | --sharedst | --shareds | --shared | --share | --shar \
1290
  | --sha | --sh)
1291
    ac_prev=sharedstatedir ;;
1292
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295
  | --sha=* | --sh=*)
1296
    sharedstatedir=$ac_optarg ;;
1297
 
1298
  -site | --site | --sit)
1299
    ac_prev=site ;;
1300
  -site=* | --site=* | --sit=*)
1301
    site=$ac_optarg ;;
1302
 
1303
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304
    ac_prev=srcdir ;;
1305
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306
    srcdir=$ac_optarg ;;
1307
 
1308
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309
  | --syscon | --sysco | --sysc | --sys | --sy)
1310
    ac_prev=sysconfdir ;;
1311
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313
    sysconfdir=$ac_optarg ;;
1314
 
1315
  -target | --target | --targe | --targ | --tar | --ta | --t)
1316
    ac_prev=target_alias ;;
1317
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318
    target_alias=$ac_optarg ;;
1319
 
1320
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321
    verbose=yes ;;
1322
 
1323
  -version | --version | --versio | --versi | --vers | -V)
1324
    ac_init_version=: ;;
1325
 
1326
  -with-* | --with-*)
1327
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328
    # Reject names that are not valid shell variable names.
1329
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330
      as_fn_error "invalid package name: $ac_useropt"
1331
    ac_useropt_orig=$ac_useropt
1332
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333
    case $ac_user_opts in
1334
      *"
1335
"with_$ac_useropt"
1336
"*) ;;
1337
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338
	 ac_unrecognized_sep=', ';;
1339
    esac
1340
    eval with_$ac_useropt=\$ac_optarg ;;
1341
 
1342
  -without-* | --without-*)
1343
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344
    # Reject names that are not valid shell variable names.
1345
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346
      as_fn_error "invalid package name: $ac_useropt"
1347
    ac_useropt_orig=$ac_useropt
1348
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349
    case $ac_user_opts in
1350
      *"
1351
"with_$ac_useropt"
1352
"*) ;;
1353
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354
	 ac_unrecognized_sep=', ';;
1355
    esac
1356
    eval with_$ac_useropt=no ;;
1357
 
1358
  --x)
1359
    # Obsolete; use --with-x.
1360
    with_x=yes ;;
1361
 
1362
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1363
  | --x-incl | --x-inc | --x-in | --x-i)
1364
    ac_prev=x_includes ;;
1365
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1366
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1367
    x_includes=$ac_optarg ;;
1368
 
1369
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1370
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1371
    ac_prev=x_libraries ;;
1372
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1373
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1374
    x_libraries=$ac_optarg ;;
1375
 
1376
  -*) as_fn_error "unrecognized option: \`$ac_option'
1377
Try \`$0 --help' for more information."
1378
    ;;
1379
 
1380
  *=*)
1381
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1382
    # Reject names that are not valid shell variable names.
1383
    case $ac_envvar in #(
1384
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1385
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1386
    esac
1387
    eval $ac_envvar=\$ac_optarg
1388
    export $ac_envvar ;;
1389
 
1390
  *)
1391
    # FIXME: should be removed in autoconf 3.0.
1392
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1394
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1396
    ;;
1397
 
1398
  esac
1399
done
1400
 
1401
if test -n "$ac_prev"; then
1402
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1403
  as_fn_error "missing argument to $ac_option"
1404
fi
1405
 
1406
if test -n "$ac_unrecognized_opts"; then
1407
  case $enable_option_checking in
1408
    no) ;;
1409
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1410
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411
  esac
1412
fi
1413
 
1414
# Check all directory arguments for consistency.
1415
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416
		datadir sysconfdir sharedstatedir localstatedir includedir \
1417
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418
		libdir localedir mandir
1419
do
1420
  eval ac_val=\$$ac_var
1421
  # Remove trailing slashes.
1422
  case $ac_val in
1423
    */ )
1424
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425
      eval $ac_var=\$ac_val;;
1426
  esac
1427
  # Be sure to have absolute directory names.
1428
  case $ac_val in
1429
    [\\/$]* | ?:[\\/]* )  continue;;
1430
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431
  esac
1432
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1433
done
1434
 
1435
# There might be people who depend on the old broken behavior: `$host'
1436
# used to hold the argument of --host etc.
1437
# FIXME: To remove some day.
1438
build=$build_alias
1439
host=$host_alias
1440
target=$target_alias
1441
 
1442
# FIXME: To remove some day.
1443
if test "x$host_alias" != x; then
1444
  if test "x$build_alias" = x; then
1445
    cross_compiling=maybe
1446
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1447
    If a cross compiler is detected then cross compile mode will be used." >&2
1448
  elif test "x$build_alias" != "x$host_alias"; then
1449
    cross_compiling=yes
1450
  fi
1451
fi
1452
 
1453
ac_tool_prefix=
1454
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455
 
1456
test "$silent" = yes && exec 6>/dev/null
1457
 
1458
 
1459
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1460
ac_ls_di=`ls -di .` &&
1461
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1462
  as_fn_error "working directory cannot be determined"
1463
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464
  as_fn_error "pwd does not report name of working directory"
1465
 
1466
 
1467
# Find the source files, if location was not specified.
1468
if test -z "$srcdir"; then
1469
  ac_srcdir_defaulted=yes
1470
  # Try the directory containing this script, then the parent directory.
1471
  ac_confdir=`$as_dirname -- "$as_myself" ||
1472
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1473
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1474
	 X"$as_myself" : 'X\(//\)$' \| \
1475
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1476
$as_echo X"$as_myself" |
1477
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478
	    s//\1/
1479
	    q
1480
	  }
1481
	  /^X\(\/\/\)[^/].*/{
1482
	    s//\1/
1483
	    q
1484
	  }
1485
	  /^X\(\/\/\)$/{
1486
	    s//\1/
1487
	    q
1488
	  }
1489
	  /^X\(\/\).*/{
1490
	    s//\1/
1491
	    q
1492
	  }
1493
	  s/.*/./; q'`
1494
  srcdir=$ac_confdir
1495
  if test ! -r "$srcdir/$ac_unique_file"; then
1496
    srcdir=..
1497
  fi
1498
else
1499
  ac_srcdir_defaulted=no
1500
fi
1501
if test ! -r "$srcdir/$ac_unique_file"; then
1502
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1503
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1504
fi
1505
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506
ac_abs_confdir=`(
1507
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1508
	pwd)`
1509
# When building in place, set srcdir=.
1510
if test "$ac_abs_confdir" = "$ac_pwd"; then
1511
  srcdir=.
1512
fi
1513
# Remove unnecessary trailing slashes from srcdir.
1514
# Double slashes in file names in object file debugging info
1515
# mess up M-x gdb in Emacs.
1516
case $srcdir in
1517
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518
esac
1519
for ac_var in $ac_precious_vars; do
1520
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1521
  eval ac_env_${ac_var}_value=\$${ac_var}
1522
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1523
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524
done
1525
 
1526
#
1527
# Report the --help message.
1528
#
1529
if test "$ac_init_help" = "long"; then
1530
  # Omit some internal or obsolete options to make the list less imposing.
1531
  # This message is too long to be a string in the A/UX 3.1 sh.
1532
  cat <<_ACEOF
1533
\`configure' configures thrift 0.2.0 to adapt to many kinds of systems.
1534
 
1535
Usage: $0 [OPTION]... [VAR=VALUE]...
1536
 
1537
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538
VAR=VALUE.  See below for descriptions of some of the useful variables.
1539
 
1540
Defaults for the options are specified in brackets.
1541
 
1542
Configuration:
1543
  -h, --help              display this help and exit
1544
      --help=short        display options specific to this package
1545
      --help=recursive    display the short help of all the included packages
1546
  -V, --version           display version information and exit
1547
  -q, --quiet, --silent   do not print \`checking...' messages
1548
      --cache-file=FILE   cache test results in FILE [disabled]
1549
  -C, --config-cache      alias for \`--cache-file=config.cache'
1550
  -n, --no-create         do not create output files
1551
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1552
 
1553
Installation directories:
1554
  --prefix=PREFIX         install architecture-independent files in PREFIX
1555
                          [$ac_default_prefix]
1556
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1557
                          [PREFIX]
1558
 
1559
By default, \`make install' will install all the files in
1560
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1561
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562
for instance \`--prefix=\$HOME'.
1563
 
1564
For better control, use the options below.
1565
 
1566
Fine tuning of the installation directories:
1567
  --bindir=DIR            user executables [EPREFIX/bin]
1568
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1569
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1570
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1571
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1572
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1573
  --libdir=DIR            object code libraries [EPREFIX/lib]
1574
  --includedir=DIR        C header files [PREFIX/include]
1575
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1576
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1577
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1578
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1579
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1580
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1581
  --docdir=DIR            documentation root [DATAROOTDIR/doc/thrift]
1582
  --htmldir=DIR           html documentation [DOCDIR]
1583
  --dvidir=DIR            dvi documentation [DOCDIR]
1584
  --pdfdir=DIR            pdf documentation [DOCDIR]
1585
  --psdir=DIR             ps documentation [DOCDIR]
1586
_ACEOF
1587
 
1588
  cat <<\_ACEOF
1589
 
1590
Program names:
1591
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1592
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1593
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1594
 
1595
System types:
1596
  --build=BUILD     configure for building on BUILD [guessed]
1597
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1598
_ACEOF
1599
fi
1600
 
1601
if test -n "$ac_init_help"; then
1602
  case $ac_init_help in
1603
     short | recursive ) echo "Configuration of thrift 0.2.0:";;
1604
   esac
1605
  cat <<\_ACEOF
1606
 
1607
Optional Features:
1608
  --disable-option-checking  ignore unrecognized --enable/--with options
1609
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1610
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1611
  --disable-dependency-tracking  speeds up one-time build
1612
  --enable-dependency-tracking   do not reject slow dependency extractors
1613
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1614
  --enable-static[=PKGS]  build static libraries [default=yes]
1615
  --enable-fast-install[=PKGS]
1616
                          optimize for fast installation [default=yes]
1617
  --disable-libtool-lock  avoid locking (might break parallel builds)
1618
  --enable-gen-cpp        enable the C++ compiler [default=yes]
1619
  --enable-gen-java       enable the Java compiler [default=yes]
1620
  --enable-gen-csharp     enable the C# compiler [default=yes]
1621
  --enable-gen-py         enable the Python compiler [default=yes]
1622
  --enable-gen-rb         enable the Ruby compiler [default=yes]
1623
  --enable-gen-perl       enable the Perl compiler [default=yes]
1624
  --enable-gen-php        enable the PHP compiler [default=yes]
1625
  --enable-gen-erl        enable the Erlang compiler [default=yes]
1626
  --enable-gen-cocoa      enable the Cocoa compiler [default=yes]
1627
  --enable-gen-st         enable the Smalltalk compiler [default=yes]
1628
  --enable-gen-ocaml      enable the OCaml compiler [default=yes]
1629
  --enable-gen-hs         enable the Haskell compiler [default=yes]
1630
  --enable-gen-xsd        enable the XSD compiler [default=yes]
1631
  --enable-gen-html       enable the HTML compiler [default=yes]
1632
 
1633
Optional Packages:
1634
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636
  --with-pic              try to use only PIC/non-PIC objects [default=use
1637
                          both]
1638
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1639
  --with-boost[=DIR]      use boost (default is yes) - it is possible to
1640
                          specify the root directory for boost (optional)
1641
  --with-libevent[=DIR]   use libevent (default is yes) - it is possible to
1642
                          specify an alternate root directory for libevent
1643
  --with-zlib[=DIR]       use zlib (default is yes) - it is possible to
1644
                          specify an alternate root directory for zlib
1645
  --with-csharp           build the C# library [default=yes]
1646
  --with-java             build the Java library [default=yes]
1647
  --with-erlang           build the Erlang library [default=yes]
1648
  --with-py               build the Python library [default=yes]
1649
  --with-perl             build the Perl library [default=yes]
1650
  --with-ruby             build the Ruby library [default=yes]
1651
 
1652
Some influential environment variables:
1653
  PY_PREFIX   Prefix for installing Python modules. (Normal --prefix is
1654
              ignored for Python because Python has different conventions.)
1655
              Default = "/usr"
1656
  JAVA_PREFIX Prefix for installing the Java lib jar. (Normal --prefix is
1657
              ignored for Java because Java has different conevntions.)
1658
              Default = "/usr/local/lib"
1659
  CC          C compiler command
1660
  CFLAGS      C compiler flags
1661
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1662
              nonstandard directory <lib dir>
1663
  LIBS        libraries to pass to the linker, e.g. -l<library>
1664
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1665
              you have headers in a nonstandard directory <include dir>
1666
  CPP         C preprocessor
1667
  CXX         C++ compiler command
1668
  CXXFLAGS    C++ compiler flags
1669
  CXXCPP      C++ preprocessor
1670
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1671
              the first program found out of: `bison -y', `byacc', `yacc'.
1672
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1673
              This script will default YFLAGS to the empty string to avoid a
1674
              default value of `-d' given by some make applications.
1675
  PKG_CONFIG  path to pkg-config utility
1676
  MONO_CFLAGS C compiler flags for MONO, overriding pkg-config
1677
  MONO_LIBS   linker flags for MONO, overriding pkg-config
1678
 
1679
Use these variables to override the choices made by `configure' or to help
1680
it to find libraries and programs with nonstandard names/locations.
1681
 
1682
Report bugs to the package provider.
1683
_ACEOF
1684
ac_status=$?
1685
fi
1686
 
1687
if test "$ac_init_help" = "recursive"; then
1688
  # If there are subdirs, report their specific --help.
1689
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690
    test -d "$ac_dir" ||
1691
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692
      continue
1693
    ac_builddir=.
1694
 
1695
case "$ac_dir" in
1696
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697
*)
1698
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699
  # A ".." for each directory in $ac_dir_suffix.
1700
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701
  case $ac_top_builddir_sub in
1702
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704
  esac ;;
1705
esac
1706
ac_abs_top_builddir=$ac_pwd
1707
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708
# for backward compatibility:
1709
ac_top_builddir=$ac_top_build_prefix
1710
 
1711
case $srcdir in
1712
  .)  # We are building in place.
1713
    ac_srcdir=.
1714
    ac_top_srcdir=$ac_top_builddir_sub
1715
    ac_abs_top_srcdir=$ac_pwd ;;
1716
  [\\/]* | ?:[\\/]* )  # Absolute name.
1717
    ac_srcdir=$srcdir$ac_dir_suffix;
1718
    ac_top_srcdir=$srcdir
1719
    ac_abs_top_srcdir=$srcdir ;;
1720
  *) # Relative name.
1721
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1723
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724
esac
1725
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726
 
1727
    cd "$ac_dir" || { ac_status=$?; continue; }
1728
    # Check for guested configure.
1729
    if test -f "$ac_srcdir/configure.gnu"; then
1730
      echo &&
1731
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732
    elif test -f "$ac_srcdir/configure"; then
1733
      echo &&
1734
      $SHELL "$ac_srcdir/configure" --help=recursive
1735
    else
1736
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737
    fi || ac_status=$?
1738
    cd "$ac_pwd" || { ac_status=$?; break; }
1739
  done
1740
fi
1741
 
1742
test -n "$ac_init_help" && exit $ac_status
1743
if $ac_init_version; then
1744
  cat <<\_ACEOF
1745
thrift configure 0.2.0
1746
generated by GNU Autoconf 2.64
1747
 
1748
Copyright (C) 2009 Free Software Foundation, Inc.
1749
This configure script is free software; the Free Software Foundation
1750
gives unlimited permission to copy, distribute and modify it.
1751
_ACEOF
1752
  exit
1753
fi
1754
 
1755
## ------------------------ ##
1756
## Autoconf initialization. ##
1757
## ------------------------ ##
1758
 
1759
# ac_fn_c_try_compile LINENO
1760
# --------------------------
1761
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1762
ac_fn_c_try_compile ()
1763
{
1764
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765
  rm -f conftest.$ac_objext
1766
  if { { ac_try="$ac_compile"
1767
case "(($ac_try" in
1768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769
  *) ac_try_echo=$ac_try;;
1770
esac
1771
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772
$as_echo "$ac_try_echo"; } >&5
1773
  (eval "$ac_compile") 2>conftest.err
1774
  ac_status=$?
1775
  if test -s conftest.err; then
1776
    grep -v '^ *+' conftest.err >conftest.er1
1777
    cat conftest.er1 >&5
1778
    mv -f conftest.er1 conftest.err
1779
  fi
1780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781
  test $ac_status = 0; } && {
1782
	 test -z "$ac_c_werror_flag" ||
1783
	 test ! -s conftest.err
1784
       } && test -s conftest.$ac_objext; then :
1785
  ac_retval=0
1786
else
1787
  $as_echo "$as_me: failed program was:" >&5
1788
sed 's/^/| /' conftest.$ac_ext >&5
1789
 
1790
	ac_retval=1
1791
fi
1792
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793
  return $ac_retval
1794
 
1795
} # ac_fn_c_try_compile
1796
 
1797
# ac_fn_c_try_cpp LINENO
1798
# ----------------------
1799
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800
ac_fn_c_try_cpp ()
1801
{
1802
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1804
case "(($ac_try" in
1805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806
  *) ac_try_echo=$ac_try;;
1807
esac
1808
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809
$as_echo "$ac_try_echo"; } >&5
1810
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811
  ac_status=$?
1812
  if test -s conftest.err; then
1813
    grep -v '^ *+' conftest.err >conftest.er1
1814
    cat conftest.er1 >&5
1815
    mv -f conftest.er1 conftest.err
1816
  fi
1817
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818
  test $ac_status = 0; } >/dev/null && {
1819
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820
	 test ! -s conftest.err
1821
       }; then :
1822
  ac_retval=0
1823
else
1824
  $as_echo "$as_me: failed program was:" >&5
1825
sed 's/^/| /' conftest.$ac_ext >&5
1826
 
1827
    ac_retval=1
1828
fi
1829
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
  return $ac_retval
1831
 
1832
} # ac_fn_c_try_cpp
1833
 
1834
# ac_fn_cxx_try_compile LINENO
1835
# ----------------------------
1836
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1837
ac_fn_cxx_try_compile ()
1838
{
1839
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840
  rm -f conftest.$ac_objext
1841
  if { { ac_try="$ac_compile"
1842
case "(($ac_try" in
1843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844
  *) ac_try_echo=$ac_try;;
1845
esac
1846
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847
$as_echo "$ac_try_echo"; } >&5
1848
  (eval "$ac_compile") 2>conftest.err
1849
  ac_status=$?
1850
  if test -s conftest.err; then
1851
    grep -v '^ *+' conftest.err >conftest.er1
1852
    cat conftest.er1 >&5
1853
    mv -f conftest.er1 conftest.err
1854
  fi
1855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856
  test $ac_status = 0; } && {
1857
	 test -z "$ac_cxx_werror_flag" ||
1858
	 test ! -s conftest.err
1859
       } && test -s conftest.$ac_objext; then :
1860
  ac_retval=0
1861
else
1862
  $as_echo "$as_me: failed program was:" >&5
1863
sed 's/^/| /' conftest.$ac_ext >&5
1864
 
1865
	ac_retval=1
1866
fi
1867
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
  return $ac_retval
1869
 
1870
} # ac_fn_cxx_try_compile
1871
 
1872
# ac_fn_c_try_link LINENO
1873
# -----------------------
1874
# Try to link conftest.$ac_ext, and return whether this succeeded.
1875
ac_fn_c_try_link ()
1876
{
1877
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878
  rm -f conftest.$ac_objext conftest$ac_exeext
1879
  if { { ac_try="$ac_link"
1880
case "(($ac_try" in
1881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882
  *) ac_try_echo=$ac_try;;
1883
esac
1884
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885
$as_echo "$ac_try_echo"; } >&5
1886
  (eval "$ac_link") 2>conftest.err
1887
  ac_status=$?
1888
  if test -s conftest.err; then
1889
    grep -v '^ *+' conftest.err >conftest.er1
1890
    cat conftest.er1 >&5
1891
    mv -f conftest.er1 conftest.err
1892
  fi
1893
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894
  test $ac_status = 0; } && {
1895
	 test -z "$ac_c_werror_flag" ||
1896
	 test ! -s conftest.err
1897
       } && test -s conftest$ac_exeext && {
1898
	 test "$cross_compiling" = yes ||
1899
	 $as_test_x conftest$ac_exeext
1900
       }; then :
1901
  ac_retval=0
1902
else
1903
  $as_echo "$as_me: failed program was:" >&5
1904
sed 's/^/| /' conftest.$ac_ext >&5
1905
 
1906
	ac_retval=1
1907
fi
1908
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910
  # interfere with the next link command; also delete a directory that is
1911
  # left behind by Apple's compiler.  We do this before executing the actions.
1912
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
  return $ac_retval
1915
 
1916
} # ac_fn_c_try_link
1917
 
1918
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919
# -------------------------------------------------------
1920
# Tests whether HEADER exists and can be compiled using the include files in
1921
# INCLUDES, setting the cache variable VAR accordingly.
1922
ac_fn_c_check_header_compile ()
1923
{
1924
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926
$as_echo_n "checking for $2... " >&6; }
1927
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928
  $as_echo_n "(cached) " >&6
1929
else
1930
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931
/* end confdefs.h.  */
1932
$4
1933
#include <$2>
1934
_ACEOF
1935
if ac_fn_c_try_compile "$LINENO"; then :
1936
  eval "$3=yes"
1937
else
1938
  eval "$3=no"
1939
fi
1940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941
fi
1942
eval ac_res=\$$3
1943
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944
$as_echo "$ac_res" >&6; }
1945
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
 
1947
} # ac_fn_c_check_header_compile
1948
 
1949
# ac_fn_c_try_run LINENO
1950
# ----------------------
1951
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1952
# that executables *can* be run.
1953
ac_fn_c_try_run ()
1954
{
1955
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956
  if { { ac_try="$ac_link"
1957
case "(($ac_try" in
1958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959
  *) ac_try_echo=$ac_try;;
1960
esac
1961
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962
$as_echo "$ac_try_echo"; } >&5
1963
  (eval "$ac_link") 2>&5
1964
  ac_status=$?
1965
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1967
  { { case "(($ac_try" in
1968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969
  *) ac_try_echo=$ac_try;;
1970
esac
1971
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972
$as_echo "$ac_try_echo"; } >&5
1973
  (eval "$ac_try") 2>&5
1974
  ac_status=$?
1975
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976
  test $ac_status = 0; }; }; then :
1977
  ac_retval=0
1978
else
1979
  $as_echo "$as_me: program exited with status $ac_status" >&5
1980
       $as_echo "$as_me: failed program was:" >&5
1981
sed 's/^/| /' conftest.$ac_ext >&5
1982
 
1983
       ac_retval=$ac_status
1984
fi
1985
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987
  return $ac_retval
1988
 
1989
} # ac_fn_c_try_run
1990
 
1991
# ac_fn_c_check_func LINENO FUNC VAR
1992
# ----------------------------------
1993
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1994
ac_fn_c_check_func ()
1995
{
1996
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998
$as_echo_n "checking for $2... " >&6; }
1999
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000
  $as_echo_n "(cached) " >&6
2001
else
2002
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003
/* end confdefs.h.  */
2004
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2006
#define $2 innocuous_$2
2007
 
2008
/* System header to define __stub macros and hopefully few prototypes,
2009
    which can conflict with char $2 (); below.
2010
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011
    <limits.h> exists even on freestanding compilers.  */
2012
 
2013
#ifdef __STDC__
2014
# include <limits.h>
2015
#else
2016
# include <assert.h>
2017
#endif
2018
 
2019
#undef $2
2020
 
2021
/* Override any GCC internal prototype to avoid an error.
2022
   Use char because int might match the return type of a GCC
2023
   builtin and then its argument prototype would still apply.  */
2024
#ifdef __cplusplus
2025
extern "C"
2026
#endif
2027
char $2 ();
2028
/* The GNU C library defines this for functions which it implements
2029
    to always fail with ENOSYS.  Some functions are actually named
2030
    something starting with __ and the normal name is an alias.  */
2031
#if defined __stub_$2 || defined __stub___$2
2032
choke me
2033
#endif
2034
 
2035
int
2036
main ()
2037
{
2038
return $2 ();
2039
  ;
2040
  return 0;
2041
}
2042
_ACEOF
2043
if ac_fn_c_try_link "$LINENO"; then :
2044
  eval "$3=yes"
2045
else
2046
  eval "$3=no"
2047
fi
2048
rm -f core conftest.err conftest.$ac_objext \
2049
    conftest$ac_exeext conftest.$ac_ext
2050
fi
2051
eval ac_res=\$$3
2052
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053
$as_echo "$ac_res" >&6; }
2054
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
 
2056
} # ac_fn_c_check_func
2057
 
2058
# ac_fn_cxx_try_cpp LINENO
2059
# ------------------------
2060
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2061
ac_fn_cxx_try_cpp ()
2062
{
2063
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2065
case "(($ac_try" in
2066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067
  *) ac_try_echo=$ac_try;;
2068
esac
2069
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070
$as_echo "$ac_try_echo"; } >&5
2071
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2072
  ac_status=$?
2073
  if test -s conftest.err; then
2074
    grep -v '^ *+' conftest.err >conftest.er1
2075
    cat conftest.er1 >&5
2076
    mv -f conftest.er1 conftest.err
2077
  fi
2078
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079
  test $ac_status = 0; } >/dev/null && {
2080
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2081
	 test ! -s conftest.err
2082
       }; then :
2083
  ac_retval=0
2084
else
2085
  $as_echo "$as_me: failed program was:" >&5
2086
sed 's/^/| /' conftest.$ac_ext >&5
2087
 
2088
    ac_retval=1
2089
fi
2090
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091
  return $ac_retval
2092
 
2093
} # ac_fn_cxx_try_cpp
2094
 
2095
# ac_fn_cxx_try_link LINENO
2096
# -------------------------
2097
# Try to link conftest.$ac_ext, and return whether this succeeded.
2098
ac_fn_cxx_try_link ()
2099
{
2100
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101
  rm -f conftest.$ac_objext conftest$ac_exeext
2102
  if { { ac_try="$ac_link"
2103
case "(($ac_try" in
2104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105
  *) ac_try_echo=$ac_try;;
2106
esac
2107
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108
$as_echo "$ac_try_echo"; } >&5
2109
  (eval "$ac_link") 2>conftest.err
2110
  ac_status=$?
2111
  if test -s conftest.err; then
2112
    grep -v '^ *+' conftest.err >conftest.er1
2113
    cat conftest.er1 >&5
2114
    mv -f conftest.er1 conftest.err
2115
  fi
2116
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117
  test $ac_status = 0; } && {
2118
	 test -z "$ac_cxx_werror_flag" ||
2119
	 test ! -s conftest.err
2120
       } && test -s conftest$ac_exeext && {
2121
	 test "$cross_compiling" = yes ||
2122
	 $as_test_x conftest$ac_exeext
2123
       }; then :
2124
  ac_retval=0
2125
else
2126
  $as_echo "$as_me: failed program was:" >&5
2127
sed 's/^/| /' conftest.$ac_ext >&5
2128
 
2129
	ac_retval=1
2130
fi
2131
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2132
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2133
  # interfere with the next link command; also delete a directory that is
2134
  # left behind by Apple's compiler.  We do this before executing the actions.
2135
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2136
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
  return $ac_retval
2138
 
2139
} # ac_fn_cxx_try_link
2140
 
2141
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2142
# ---------------------------------------------
2143
# Tests whether TYPE exists after having included INCLUDES, setting cache
2144
# variable VAR accordingly.
2145
ac_fn_cxx_check_type ()
2146
{
2147
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149
$as_echo_n "checking for $2... " >&6; }
2150
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2151
  $as_echo_n "(cached) " >&6
2152
else
2153
  eval "$3=no"
2154
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155
/* end confdefs.h.  */
2156
$4
2157
int
2158
main ()
2159
{
2160
if (sizeof ($2))
2161
	 return 0;
2162
  ;
2163
  return 0;
2164
}
2165
_ACEOF
2166
if ac_fn_cxx_try_compile "$LINENO"; then :
2167
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168
/* end confdefs.h.  */
2169
$4
2170
int
2171
main ()
2172
{
2173
if (sizeof (($2)))
2174
	    return 0;
2175
  ;
2176
  return 0;
2177
}
2178
_ACEOF
2179
if ac_fn_cxx_try_compile "$LINENO"; then :
2180
 
2181
else
2182
  eval "$3=yes"
2183
fi
2184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
fi
2186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187
fi
2188
eval ac_res=\$$3
2189
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190
$as_echo "$ac_res" >&6; }
2191
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192
 
2193
} # ac_fn_cxx_check_type
2194
 
2195
# ac_fn_cxx_try_run LINENO
2196
# ------------------------
2197
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2198
# that executables *can* be run.
2199
ac_fn_cxx_try_run ()
2200
{
2201
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202
  if { { ac_try="$ac_link"
2203
case "(($ac_try" in
2204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205
  *) ac_try_echo=$ac_try;;
2206
esac
2207
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208
$as_echo "$ac_try_echo"; } >&5
2209
  (eval "$ac_link") 2>&5
2210
  ac_status=$?
2211
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2213
  { { case "(($ac_try" in
2214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215
  *) ac_try_echo=$ac_try;;
2216
esac
2217
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218
$as_echo "$ac_try_echo"; } >&5
2219
  (eval "$ac_try") 2>&5
2220
  ac_status=$?
2221
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222
  test $ac_status = 0; }; }; then :
2223
  ac_retval=0
2224
else
2225
  $as_echo "$as_me: program exited with status $ac_status" >&5
2226
       $as_echo "$as_me: failed program was:" >&5
2227
sed 's/^/| /' conftest.$ac_ext >&5
2228
 
2229
       ac_retval=$ac_status
2230
fi
2231
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2232
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233
  return $ac_retval
2234
 
2235
} # ac_fn_cxx_try_run
2236
 
2237
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2238
# ---------------------------------------------------------
2239
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2240
# the include files in INCLUDES and setting the cache variable VAR
2241
# accordingly.
2242
ac_fn_cxx_check_header_mongrel ()
2243
{
2244
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247
$as_echo_n "checking for $2... " >&6; }
2248
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249
  $as_echo_n "(cached) " >&6
2250
fi
2251
eval ac_res=\$$3
2252
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253
$as_echo "$ac_res" >&6; }
2254
else
2255
  # Is the header compilable?
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2257
$as_echo_n "checking $2 usability... " >&6; }
2258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259
/* end confdefs.h.  */
2260
$4
2261
#include <$2>
2262
_ACEOF
2263
if ac_fn_cxx_try_compile "$LINENO"; then :
2264
  ac_header_compiler=yes
2265
else
2266
  ac_header_compiler=no
2267
fi
2268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2270
$as_echo "$ac_header_compiler" >&6; }
2271
 
2272
# Is the header present?
2273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2274
$as_echo_n "checking $2 presence... " >&6; }
2275
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276
/* end confdefs.h.  */
2277
#include <$2>
2278
_ACEOF
2279
if ac_fn_cxx_try_cpp "$LINENO"; then :
2280
  ac_header_preproc=yes
2281
else
2282
  ac_header_preproc=no
2283
fi
2284
rm -f conftest.err conftest.$ac_ext
2285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2286
$as_echo "$ac_header_preproc" >&6; }
2287
 
2288
# So?  What about this header?
2289
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2290
  yes:no: )
2291
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2292
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2293
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2294
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295
    ;;
2296
  no:yes:* )
2297
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2298
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2299
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2300
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2301
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2302
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2303
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2304
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2305
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2307
    ;;
2308
esac
2309
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310
$as_echo_n "checking for $2... " >&6; }
2311
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312
  $as_echo_n "(cached) " >&6
2313
else
2314
  eval "$3=\$ac_header_compiler"
2315
fi
2316
eval ac_res=\$$3
2317
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318
$as_echo "$ac_res" >&6; }
2319
fi
2320
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321
 
2322
} # ac_fn_cxx_check_header_mongrel
2323
 
2324
# ac_fn_c_find_intX_t LINENO BITS VAR
2325
# -----------------------------------
2326
# Finds a signed integer type with width BITS, setting cache variable VAR
2327
# accordingly.
2328
ac_fn_c_find_intX_t ()
2329
{
2330
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2332
$as_echo_n "checking for int$2_t... " >&6; }
2333
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334
  $as_echo_n "(cached) " >&6
2335
else
2336
  eval "$3=no"
2337
     for ac_type in int$2_t 'int' 'long int' \
2338
	 'long long int' 'short int' 'signed char'; do
2339
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340
/* end confdefs.h.  */
2341
$ac_includes_default
2342
int
2343
main ()
2344
{
2345
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2346
test_array [0] = 0
2347
 
2348
  ;
2349
  return 0;
2350
}
2351
_ACEOF
2352
if ac_fn_cxx_try_compile "$LINENO"; then :
2353
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354
/* end confdefs.h.  */
2355
$ac_includes_default
2356
int
2357
main ()
2358
{
2359
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2360
		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2361
test_array [0] = 0
2362
 
2363
  ;
2364
  return 0;
2365
}
2366
_ACEOF
2367
if ac_fn_cxx_try_compile "$LINENO"; then :
2368
 
2369
else
2370
  case $ac_type in #(
2371
  int$2_t) :
2372
    eval "$3=yes" ;; #(
2373
  *) :
2374
    eval "$3=\$ac_type" ;;
2375
esac
2376
fi
2377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378
fi
2379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380
       eval as_val=\$$3
2381
   if test "x$as_val" = x""no; then :
2382
 
2383
else
2384
  break
2385
fi
2386
     done
2387
fi
2388
eval ac_res=\$$3
2389
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390
$as_echo "$ac_res" >&6; }
2391
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392
 
2393
} # ac_fn_c_find_intX_t
2394
 
2395
# ac_fn_c_find_uintX_t LINENO BITS VAR
2396
# ------------------------------------
2397
# Finds an unsigned integer type with width BITS, setting cache variable VAR
2398
# accordingly.
2399
ac_fn_c_find_uintX_t ()
2400
{
2401
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403
$as_echo_n "checking for uint$2_t... " >&6; }
2404
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405
  $as_echo_n "(cached) " >&6
2406
else
2407
  eval "$3=no"
2408
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409
	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411
/* end confdefs.h.  */
2412
$ac_includes_default
2413
int
2414
main ()
2415
{
2416
static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417
test_array [0] = 0
2418
 
2419
  ;
2420
  return 0;
2421
}
2422
_ACEOF
2423
if ac_fn_cxx_try_compile "$LINENO"; then :
2424
  case $ac_type in #(
2425
  uint$2_t) :
2426
    eval "$3=yes" ;; #(
2427
  *) :
2428
    eval "$3=\$ac_type" ;;
2429
esac
2430
fi
2431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432
       eval as_val=\$$3
2433
   if test "x$as_val" = x""no; then :
2434
 
2435
else
2436
  break
2437
fi
2438
     done
2439
fi
2440
eval ac_res=\$$3
2441
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442
$as_echo "$ac_res" >&6; }
2443
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
 
2445
} # ac_fn_c_find_uintX_t
2446
 
2447
# ac_fn_cxx_check_decl LINENO SYMBOL VAR
2448
# --------------------------------------
2449
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2450
ac_fn_cxx_check_decl ()
2451
{
2452
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2454
$as_echo_n "checking whether $2 is declared... " >&6; }
2455
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456
  $as_echo_n "(cached) " >&6
2457
else
2458
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459
/* end confdefs.h.  */
2460
$4
2461
int
2462
main ()
2463
{
2464
#ifndef $2
2465
  (void) $2;
2466
#endif
2467
 
2468
  ;
2469
  return 0;
2470
}
2471
_ACEOF
2472
if ac_fn_cxx_try_compile "$LINENO"; then :
2473
  eval "$3=yes"
2474
else
2475
  eval "$3=no"
2476
fi
2477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478
fi
2479
eval ac_res=\$$3
2480
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481
$as_echo "$ac_res" >&6; }
2482
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483
 
2484
} # ac_fn_cxx_check_decl
2485
 
2486
# ac_fn_cxx_check_func LINENO FUNC VAR
2487
# ------------------------------------
2488
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2489
ac_fn_cxx_check_func ()
2490
{
2491
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493
$as_echo_n "checking for $2... " >&6; }
2494
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2495
  $as_echo_n "(cached) " >&6
2496
else
2497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498
/* end confdefs.h.  */
2499
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2500
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2501
#define $2 innocuous_$2
2502
 
2503
/* System header to define __stub macros and hopefully few prototypes,
2504
    which can conflict with char $2 (); below.
2505
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2506
    <limits.h> exists even on freestanding compilers.  */
2507
 
2508
#ifdef __STDC__
2509
# include <limits.h>
2510
#else
2511
# include <assert.h>
2512
#endif
2513
 
2514
#undef $2
2515
 
2516
/* Override any GCC internal prototype to avoid an error.
2517
   Use char because int might match the return type of a GCC
2518
   builtin and then its argument prototype would still apply.  */
2519
#ifdef __cplusplus
2520
extern "C"
2521
#endif
2522
char $2 ();
2523
/* The GNU C library defines this for functions which it implements
2524
    to always fail with ENOSYS.  Some functions are actually named
2525
    something starting with __ and the normal name is an alias.  */
2526
#if defined __stub_$2 || defined __stub___$2
2527
choke me
2528
#endif
2529
 
2530
int
2531
main ()
2532
{
2533
return $2 ();
2534
  ;
2535
  return 0;
2536
}
2537
_ACEOF
2538
if ac_fn_cxx_try_link "$LINENO"; then :
2539
  eval "$3=yes"
2540
else
2541
  eval "$3=no"
2542
fi
2543
rm -f core conftest.err conftest.$ac_objext \
2544
    conftest$ac_exeext conftest.$ac_ext
2545
fi
2546
eval ac_res=\$$3
2547
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548
$as_echo "$ac_res" >&6; }
2549
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550
 
2551
} # ac_fn_cxx_check_func
2552
cat >config.log <<_ACEOF
2553
This file contains any messages produced by compilers while
2554
running configure, to aid debugging if configure makes a mistake.
2555
 
2556
It was created by thrift $as_me 0.2.0, which was
2557
generated by GNU Autoconf 2.64.  Invocation command line was
2558
 
2559
  $ $0 $@
2560
 
2561
_ACEOF
2562
exec 5>>config.log
2563
{
2564
cat <<_ASUNAME
2565
## --------- ##
2566
## Platform. ##
2567
## --------- ##
2568
 
2569
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2570
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2571
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2572
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2573
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2574
 
2575
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2576
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2577
 
2578
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2579
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2580
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2581
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2582
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2583
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2584
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2585
 
2586
_ASUNAME
2587
 
2588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589
for as_dir in $PATH
2590
do
2591
  IFS=$as_save_IFS
2592
  test -z "$as_dir" && as_dir=.
2593
    $as_echo "PATH: $as_dir"
2594
  done
2595
IFS=$as_save_IFS
2596
 
2597
} >&5
2598
 
2599
cat >&5 <<_ACEOF
2600
 
2601
 
2602
## ----------- ##
2603
## Core tests. ##
2604
## ----------- ##
2605
 
2606
_ACEOF
2607
 
2608
 
2609
# Keep a trace of the command line.
2610
# Strip out --no-create and --no-recursion so they do not pile up.
2611
# Strip out --silent because we don't want to record it for future runs.
2612
# Also quote any args containing shell meta-characters.
2613
# Make two passes to allow for proper duplicate-argument suppression.
2614
ac_configure_args=
2615
ac_configure_args0=
2616
ac_configure_args1=
2617
ac_must_keep_next=false
2618
for ac_pass in 1 2
2619
do
2620
  for ac_arg
2621
  do
2622
    case $ac_arg in
2623
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2624
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2625
    | -silent | --silent | --silen | --sile | --sil)
2626
      continue ;;
2627
    *\'*)
2628
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2629
    esac
2630
    case $ac_pass in
2631
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2632
    2)
2633
      as_fn_append ac_configure_args1 " '$ac_arg'"
2634
      if test $ac_must_keep_next = true; then
2635
	ac_must_keep_next=false # Got value, back to normal.
2636
      else
2637
	case $ac_arg in
2638
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2639
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2640
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2641
	  | -with-* | --with-* | -without-* | --without-* | --x)
2642
	    case "$ac_configure_args0 " in
2643
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2644
	    esac
2645
	    ;;
2646
	  -* ) ac_must_keep_next=true ;;
2647
	esac
2648
      fi
2649
      as_fn_append ac_configure_args " '$ac_arg'"
2650
      ;;
2651
    esac
2652
  done
2653
done
2654
{ ac_configure_args0=; unset ac_configure_args0;}
2655
{ ac_configure_args1=; unset ac_configure_args1;}
2656
 
2657
# When interrupted or exit'd, cleanup temporary files, and complete
2658
# config.log.  We remove comments because anyway the quotes in there
2659
# would cause problems or look ugly.
2660
# WARNING: Use '\'' to represent an apostrophe within the trap.
2661
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2662
trap 'exit_status=$?
2663
  # Save into config.log some information that might help in debugging.
2664
  {
2665
    echo
2666
 
2667
    cat <<\_ASBOX
2668
## ---------------- ##
2669
## Cache variables. ##
2670
## ---------------- ##
2671
_ASBOX
2672
    echo
2673
    # The following way of writing the cache mishandles newlines in values,
2674
(
2675
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2676
    eval ac_val=\$$ac_var
2677
    case $ac_val in #(
2678
    *${as_nl}*)
2679
      case $ac_var in #(
2680
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2681
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2682
      esac
2683
      case $ac_var in #(
2684
      _ | IFS | as_nl) ;; #(
2685
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2686
      *) { eval $ac_var=; unset $ac_var;} ;;
2687
      esac ;;
2688
    esac
2689
  done
2690
  (set) 2>&1 |
2691
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2692
    *${as_nl}ac_space=\ *)
2693
      sed -n \
2694
	"s/'\''/'\''\\\\'\'''\''/g;
2695
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2696
      ;; #(
2697
    *)
2698
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2699
      ;;
2700
    esac |
2701
    sort
2702
)
2703
    echo
2704
 
2705
    cat <<\_ASBOX
2706
## ----------------- ##
2707
## Output variables. ##
2708
## ----------------- ##
2709
_ASBOX
2710
    echo
2711
    for ac_var in $ac_subst_vars
2712
    do
2713
      eval ac_val=\$$ac_var
2714
      case $ac_val in
2715
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2716
      esac
2717
      $as_echo "$ac_var='\''$ac_val'\''"
2718
    done | sort
2719
    echo
2720
 
2721
    if test -n "$ac_subst_files"; then
2722
      cat <<\_ASBOX
2723
## ------------------- ##
2724
## File substitutions. ##
2725
## ------------------- ##
2726
_ASBOX
2727
      echo
2728
      for ac_var in $ac_subst_files
2729
      do
2730
	eval ac_val=\$$ac_var
2731
	case $ac_val in
2732
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2733
	esac
2734
	$as_echo "$ac_var='\''$ac_val'\''"
2735
      done | sort
2736
      echo
2737
    fi
2738
 
2739
    if test -s confdefs.h; then
2740
      cat <<\_ASBOX
2741
## ----------- ##
2742
## confdefs.h. ##
2743
## ----------- ##
2744
_ASBOX
2745
      echo
2746
      cat confdefs.h
2747
      echo
2748
    fi
2749
    test "$ac_signal" != 0 &&
2750
      $as_echo "$as_me: caught signal $ac_signal"
2751
    $as_echo "$as_me: exit $exit_status"
2752
  } >&5
2753
  rm -f core *.core core.conftest.* &&
2754
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2755
    exit $exit_status
2756
' 0
2757
for ac_signal in 1 2 13 15; do
2758
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2759
done
2760
ac_signal=0
2761
 
2762
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2763
rm -f -r conftest* confdefs.h
2764
 
2765
$as_echo "/* confdefs.h */" > confdefs.h
2766
 
2767
# Predefined preprocessor variables.
2768
 
2769
cat >>confdefs.h <<_ACEOF
2770
#define PACKAGE_NAME "$PACKAGE_NAME"
2771
_ACEOF
2772
 
2773
cat >>confdefs.h <<_ACEOF
2774
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2775
_ACEOF
2776
 
2777
cat >>confdefs.h <<_ACEOF
2778
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2779
_ACEOF
2780
 
2781
cat >>confdefs.h <<_ACEOF
2782
#define PACKAGE_STRING "$PACKAGE_STRING"
2783
_ACEOF
2784
 
2785
cat >>confdefs.h <<_ACEOF
2786
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2787
_ACEOF
2788
 
2789
cat >>confdefs.h <<_ACEOF
2790
#define PACKAGE_URL "$PACKAGE_URL"
2791
_ACEOF
2792
 
2793
 
2794
# Let the site file select an alternate cache file if it wants to.
2795
# Prefer an explicitly selected file to automatically selected ones.
2796
ac_site_file1=NONE
2797
ac_site_file2=NONE
2798
if test -n "$CONFIG_SITE"; then
2799
  ac_site_file1=$CONFIG_SITE
2800
elif test "x$prefix" != xNONE; then
2801
  ac_site_file1=$prefix/share/config.site
2802
  ac_site_file2=$prefix/etc/config.site
2803
else
2804
  ac_site_file1=$ac_default_prefix/share/config.site
2805
  ac_site_file2=$ac_default_prefix/etc/config.site
2806
fi
2807
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2808
do
2809
  test "x$ac_site_file" = xNONE && continue
2810
  if test -r "$ac_site_file"; then
2811
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2812
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2813
    sed 's/^/| /' "$ac_site_file" >&5
2814
    . "$ac_site_file"
2815
  fi
2816
done
2817
 
2818
if test -r "$cache_file"; then
2819
  # Some versions of bash will fail to source /dev/null (special
2820
  # files actually), so we avoid doing that.
2821
  if test -f "$cache_file"; then
2822
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2823
$as_echo "$as_me: loading cache $cache_file" >&6;}
2824
    case $cache_file in
2825
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2826
      *)                      . "./$cache_file";;
2827
    esac
2828
  fi
2829
else
2830
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2831
$as_echo "$as_me: creating cache $cache_file" >&6;}
2832
  >$cache_file
2833
fi
2834
 
2835
# Check that the precious variables saved in the cache have kept the same
2836
# value.
2837
ac_cache_corrupted=false
2838
for ac_var in $ac_precious_vars; do
2839
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2840
  eval ac_new_set=\$ac_env_${ac_var}_set
2841
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2842
  eval ac_new_val=\$ac_env_${ac_var}_value
2843
  case $ac_old_set,$ac_new_set in
2844
    set,)
2845
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2846
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2847
      ac_cache_corrupted=: ;;
2848
    ,set)
2849
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2850
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2851
      ac_cache_corrupted=: ;;
2852
    ,);;
2853
    *)
2854
      if test "x$ac_old_val" != "x$ac_new_val"; then
2855
	# differences in whitespace do not lead to failure.
2856
	ac_old_val_w=`echo x $ac_old_val`
2857
	ac_new_val_w=`echo x $ac_new_val`
2858
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2859
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2860
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2861
	  ac_cache_corrupted=:
2862
	else
2863
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2864
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2865
	  eval $ac_var=\$ac_old_val
2866
	fi
2867
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2868
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2869
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2870
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2871
      fi;;
2872
  esac
2873
  # Pass precious variables to config.status.
2874
  if test "$ac_new_set" = set; then
2875
    case $ac_new_val in
2876
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2877
    *) ac_arg=$ac_var=$ac_new_val ;;
2878
    esac
2879
    case " $ac_configure_args " in
2880
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2881
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2882
    esac
2883
  fi
2884
done
2885
if $ac_cache_corrupted; then
2886
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2889
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2890
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2891
fi
2892
## -------------------- ##
2893
## Main body of script. ##
2894
## -------------------- ##
2895
 
2896
ac_ext=c
2897
ac_cpp='$CPP $CPPFLAGS'
2898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901
 
2902
 
2903
 
2904
ac_aux_dir=
2905
for ac_dir in . "$srcdir"/.; do
2906
  for ac_t in install-sh install.sh shtool; do
2907
    if test -f "$ac_dir/$ac_t"; then
2908
      ac_aux_dir=$ac_dir
2909
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2910
      break 2
2911
    fi
2912
  done
2913
done
2914
if test -z "$ac_aux_dir"; then
2915
  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2916
fi
2917
 
2918
# These three variables are undocumented and unsupported,
2919
# and are intended to be withdrawn in a future Autoconf release.
2920
# They can cause serious problems if a builder's source tree is in a directory
2921
# whose full name contains unusual characters.
2922
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2923
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2924
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2925
 
2926
 
2927
 
2928
am__api_version='1.11'
2929
 
2930
# Find a good install program.  We prefer a C program (faster),
2931
# so one script is as good as another.  But avoid the broken or
2932
# incompatible versions:
2933
# SysV /etc/install, /usr/sbin/install
2934
# SunOS /usr/etc/install
2935
# IRIX /sbin/install
2936
# AIX /bin/install
2937
# AmigaOS /C/install, which installs bootblocks on floppy discs
2938
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941
# OS/2's system install, which has a completely different semantic
2942
# ./install, which can be erroneously created by make from ./install.sh.
2943
# Reject install programs that cannot install multiple files.
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2945
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2946
if test -z "$INSTALL"; then
2947
if test "${ac_cv_path_install+set}" = set; then :
2948
  $as_echo_n "(cached) " >&6
2949
else
2950
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951
for as_dir in $PATH
2952
do
2953
  IFS=$as_save_IFS
2954
  test -z "$as_dir" && as_dir=.
2955
    # Account for people who put trailing slashes in PATH elements.
2956
case $as_dir/ in #((
2957
  ./ | .// | /[cC]/* | \
2958
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2960
  /usr/ucb/* ) ;;
2961
  *)
2962
    # OSF1 and SCO ODT 3.0 have their own names for install.
2963
    # Don't use installbsd from OSF since it installs stuff as root
2964
    # by default.
2965
    for ac_prog in ginstall scoinst install; do
2966
      for ac_exec_ext in '' $ac_executable_extensions; do
2967
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2968
	  if test $ac_prog = install &&
2969
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970
	    # AIX install.  It has an incompatible calling convention.
2971
	    :
2972
	  elif test $ac_prog = install &&
2973
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974
	    # program-specific install script used by HP pwplus--don't use.
2975
	    :
2976
	  else
2977
	    rm -rf conftest.one conftest.two conftest.dir
2978
	    echo one > conftest.one
2979
	    echo two > conftest.two
2980
	    mkdir conftest.dir
2981
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2982
	      test -s conftest.one && test -s conftest.two &&
2983
	      test -s conftest.dir/conftest.one &&
2984
	      test -s conftest.dir/conftest.two
2985
	    then
2986
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2987
	      break 3
2988
	    fi
2989
	  fi
2990
	fi
2991
      done
2992
    done
2993
    ;;
2994
esac
2995
 
2996
  done
2997
IFS=$as_save_IFS
2998
 
2999
rm -rf conftest.one conftest.two conftest.dir
3000
 
3001
fi
3002
  if test "${ac_cv_path_install+set}" = set; then
3003
    INSTALL=$ac_cv_path_install
3004
  else
3005
    # As a last resort, use the slow shell script.  Don't cache a
3006
    # value for INSTALL within a source directory, because that will
3007
    # break other packages using the cache if that directory is
3008
    # removed, or if the value is a relative name.
3009
    INSTALL=$ac_install_sh
3010
  fi
3011
fi
3012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3013
$as_echo "$INSTALL" >&6; }
3014
 
3015
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016
# It thinks the first close brace ends the variable substitution.
3017
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3018
 
3019
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3020
 
3021
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022
 
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3024
$as_echo_n "checking whether build environment is sane... " >&6; }
3025
# Just in case
3026
sleep 1
3027
echo timestamp > conftest.file
3028
# Reject unsafe characters in $srcdir or the absolute working directory
3029
# name.  Accept space and tab only in the latter.
3030
am_lf='
3031
'
3032
case `pwd` in
3033
  *[\\\"\#\$\&\'\`$am_lf]*)
3034
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3035
esac
3036
case $srcdir in
3037
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3038
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3039
esac
3040
 
3041
# Do `set' in a subshell so we don't clobber the current shell's
3042
# arguments.  Must try -L first in case configure is actually a
3043
# symlink; some systems play weird games with the mod time of symlinks
3044
# (eg FreeBSD returns the mod time of the symlink's containing
3045
# directory).
3046
if (
3047
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3048
   if test "$*" = "X"; then
3049
      # -L didn't work.
3050
      set X `ls -t "$srcdir/configure" conftest.file`
3051
   fi
3052
   rm -f conftest.file
3053
   if test "$*" != "X $srcdir/configure conftest.file" \
3054
      && test "$*" != "X conftest.file $srcdir/configure"; then
3055
 
3056
      # If neither matched, then we have a broken ls.  This can happen
3057
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3058
      # broken ls alias from the environment.  This has actually
3059
      # happened.  Such a system could not be considered "sane".
3060
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3061
alias in your environment" "$LINENO" 5
3062
   fi
3063
 
3064
   test "$2" = conftest.file
3065
   )
3066
then
3067
   # Ok.
3068
   :
3069
else
3070
   as_fn_error "newly created file is older than distributed files!
3071
Check your system clock" "$LINENO" 5
3072
fi
3073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074
$as_echo "yes" >&6; }
3075
test "$program_prefix" != NONE &&
3076
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3077
# Use a double $ so make ignores it.
3078
test "$program_suffix" != NONE &&
3079
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3080
# Double any \ or $.
3081
# By default was `s,x,x', remove it if useless.
3082
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3083
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3084
 
3085
# expand $ac_aux_dir to an absolute path
3086
am_aux_dir=`cd $ac_aux_dir && pwd`
3087
 
3088
if test x"${MISSING+set}" != xset; then
3089
  case $am_aux_dir in
3090
  *\ * | *\	*)
3091
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3092
  *)
3093
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3094
  esac
3095
fi
3096
# Use eval to expand $SHELL
3097
if eval "$MISSING --run true"; then
3098
  am_missing_run="$MISSING --run "
3099
else
3100
  am_missing_run=
3101
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3102
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103
fi
3104
 
3105
if test x"${install_sh}" != xset; then
3106
  case $am_aux_dir in
3107
  *\ * | *\	*)
3108
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3109
  *)
3110
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3111
  esac
3112
fi
3113
 
3114
# Installed binaries are usually stripped using `strip' when the user
3115
# run `make install-strip'.  However `strip' might not be the right
3116
# tool to use in cross-compilation environments, therefore Automake
3117
# will honor the `STRIP' environment variable to overrule this program.
3118
if test "$cross_compiling" != no; then
3119
  if test -n "$ac_tool_prefix"; then
3120
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3121
set dummy ${ac_tool_prefix}strip; ac_word=$2
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123
$as_echo_n "checking for $ac_word... " >&6; }
3124
if test "${ac_cv_prog_STRIP+set}" = set; then :
3125
  $as_echo_n "(cached) " >&6
3126
else
3127
  if test -n "$STRIP"; then
3128
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3129
else
3130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131
for as_dir in $PATH
3132
do
3133
  IFS=$as_save_IFS
3134
  test -z "$as_dir" && as_dir=.
3135
    for ac_exec_ext in '' $ac_executable_extensions; do
3136
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3138
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139
    break 2
3140
  fi
3141
done
3142
  done
3143
IFS=$as_save_IFS
3144
 
3145
fi
3146
fi
3147
STRIP=$ac_cv_prog_STRIP
3148
if test -n "$STRIP"; then
3149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3150
$as_echo "$STRIP" >&6; }
3151
else
3152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153
$as_echo "no" >&6; }
3154
fi
3155
 
3156
 
3157
fi
3158
if test -z "$ac_cv_prog_STRIP"; then
3159
  ac_ct_STRIP=$STRIP
3160
  # Extract the first word of "strip", so it can be a program name with args.
3161
set dummy strip; ac_word=$2
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163
$as_echo_n "checking for $ac_word... " >&6; }
3164
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3165
  $as_echo_n "(cached) " >&6
3166
else
3167
  if test -n "$ac_ct_STRIP"; then
3168
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3169
else
3170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171
for as_dir in $PATH
3172
do
3173
  IFS=$as_save_IFS
3174
  test -z "$as_dir" && as_dir=.
3175
    for ac_exec_ext in '' $ac_executable_extensions; do
3176
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177
    ac_cv_prog_ac_ct_STRIP="strip"
3178
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179
    break 2
3180
  fi
3181
done
3182
  done
3183
IFS=$as_save_IFS
3184
 
3185
fi
3186
fi
3187
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3188
if test -n "$ac_ct_STRIP"; then
3189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3190
$as_echo "$ac_ct_STRIP" >&6; }
3191
else
3192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193
$as_echo "no" >&6; }
3194
fi
3195
 
3196
  if test "x$ac_ct_STRIP" = x; then
3197
    STRIP=":"
3198
  else
3199
    case $cross_compiling:$ac_tool_warned in
3200
yes:)
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203
ac_tool_warned=yes ;;
3204
esac
3205
    STRIP=$ac_ct_STRIP
3206
  fi
3207
else
3208
  STRIP="$ac_cv_prog_STRIP"
3209
fi
3210
 
3211
fi
3212
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3213
 
3214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3215
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3216
if test -z "$MKDIR_P"; then
3217
  if test "${ac_cv_path_mkdir+set}" = set; then :
3218
  $as_echo_n "(cached) " >&6
3219
else
3220
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3222
do
3223
  IFS=$as_save_IFS
3224
  test -z "$as_dir" && as_dir=.
3225
    for ac_prog in mkdir gmkdir; do
3226
	 for ac_exec_ext in '' $ac_executable_extensions; do
3227
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3228
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3229
	     'mkdir (GNU coreutils) '* | \
3230
	     'mkdir (coreutils) '* | \
3231
	     'mkdir (fileutils) '4.1*)
3232
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3233
	       break 3;;
3234
	   esac
3235
	 done
3236
       done
3237
  done
3238
IFS=$as_save_IFS
3239
 
3240
fi
3241
 
3242
  if test "${ac_cv_path_mkdir+set}" = set; then
3243
    MKDIR_P="$ac_cv_path_mkdir -p"
3244
  else
3245
    # As a last resort, use the slow shell script.  Don't cache a
3246
    # value for MKDIR_P within a source directory, because that will
3247
    # break other packages using the cache if that directory is
3248
    # removed, or if the value is a relative name.
3249
    test -d ./--version && rmdir ./--version
3250
    MKDIR_P="$ac_install_sh -d"
3251
  fi
3252
fi
3253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3254
$as_echo "$MKDIR_P" >&6; }
3255
 
3256
mkdir_p="$MKDIR_P"
3257
case $mkdir_p in
3258
  [\\/$]* | ?:[\\/]*) ;;
3259
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3260
esac
3261
 
3262
for ac_prog in gawk mawk nawk awk
3263
do
3264
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3265
set dummy $ac_prog; ac_word=$2
3266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267
$as_echo_n "checking for $ac_word... " >&6; }
3268
if test "${ac_cv_prog_AWK+set}" = set; then :
3269
  $as_echo_n "(cached) " >&6
3270
else
3271
  if test -n "$AWK"; then
3272
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3273
else
3274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275
for as_dir in $PATH
3276
do
3277
  IFS=$as_save_IFS
3278
  test -z "$as_dir" && as_dir=.
3279
    for ac_exec_ext in '' $ac_executable_extensions; do
3280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281
    ac_cv_prog_AWK="$ac_prog"
3282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283
    break 2
3284
  fi
3285
done
3286
  done
3287
IFS=$as_save_IFS
3288
 
3289
fi
3290
fi
3291
AWK=$ac_cv_prog_AWK
3292
if test -n "$AWK"; then
3293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294
$as_echo "$AWK" >&6; }
3295
else
3296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297
$as_echo "no" >&6; }
3298
fi
3299
 
3300
 
3301
  test -n "$AWK" && break
3302
done
3303
 
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306
set x ${MAKE-make}
3307
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3309
  $as_echo_n "(cached) " >&6
3310
else
3311
  cat >conftest.make <<\_ACEOF
3312
SHELL = /bin/sh
3313
all:
3314
	@echo '@@@%%%=$(MAKE)=@@@%%%'
3315
_ACEOF
3316
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3317
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3318
  *@@@%%%=?*=@@@%%%*)
3319
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3320
  *)
3321
    eval ac_cv_prog_make_${ac_make}_set=no;;
3322
esac
3323
rm -f conftest.make
3324
fi
3325
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327
$as_echo "yes" >&6; }
3328
  SET_MAKE=
3329
else
3330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331
$as_echo "no" >&6; }
3332
  SET_MAKE="MAKE=${MAKE-make}"
3333
fi
3334
 
3335
rm -rf .tst 2>/dev/null
3336
mkdir .tst 2>/dev/null
3337
if test -d .tst; then
3338
  am__leading_dot=.
3339
else
3340
  am__leading_dot=_
3341
fi
3342
rmdir .tst 2>/dev/null
3343
 
3344
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3345
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3346
  # is not polluted with repeated "-I."
3347
  am__isrc=' -I$(srcdir)'
3348
  # test to see if srcdir already configured
3349
  if test -f $srcdir/config.status; then
3350
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3351
  fi
3352
fi
3353
 
3354
# test whether we have cygpath
3355
if test -z "$CYGPATH_W"; then
3356
  if (cygpath --version) >/dev/null 2>/dev/null; then
3357
    CYGPATH_W='cygpath -w'
3358
  else
3359
    CYGPATH_W=echo
3360
  fi
3361
fi
3362
 
3363
 
3364
# Define the identity of the package.
3365
 PACKAGE='thrift'
3366
 VERSION='0.2.0'
3367
 
3368
 
3369
cat >>confdefs.h <<_ACEOF
3370
#define PACKAGE "$PACKAGE"
3371
_ACEOF
3372
 
3373
 
3374
cat >>confdefs.h <<_ACEOF
3375
#define VERSION "$VERSION"
3376
_ACEOF
3377
 
3378
# Some tools Automake needs.
3379
 
3380
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3381
 
3382
 
3383
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3384
 
3385
 
3386
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3387
 
3388
 
3389
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3390
 
3391
 
3392
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3393
 
3394
# We need awk for the "check" target.  The system "awk" is bad on
3395
# some platforms.
3396
# Always define AMTAR for backward compatibility.
3397
 
3398
AMTAR=${AMTAR-"${am_missing_run}tar"}
3399
 
3400
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3401
 
3402
 
3403
 
3404
 
3405
 
3406
 
3407
 
3408
if test "x$PY_PREFIX" = x; then :
3409
  PY_PREFIX="/usr"
3410
fi
3411
 
3412
 
3413
if test "x$JAVA_PREFIX" = x; then :
3414
  JAVA_PREFIX="/usr/local/lib"
3415
fi
3416
 
3417
ac_ext=c
3418
ac_cpp='$CPP $CPPFLAGS'
3419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
if test -n "$ac_tool_prefix"; then
3423
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3424
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426
$as_echo_n "checking for $ac_word... " >&6; }
3427
if test "${ac_cv_prog_CC+set}" = set; then :
3428
  $as_echo_n "(cached) " >&6
3429
else
3430
  if test -n "$CC"; then
3431
  ac_cv_prog_CC="$CC" # Let the user override the test.
3432
else
3433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434
for as_dir in $PATH
3435
do
3436
  IFS=$as_save_IFS
3437
  test -z "$as_dir" && as_dir=.
3438
    for ac_exec_ext in '' $ac_executable_extensions; do
3439
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3441
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442
    break 2
3443
  fi
3444
done
3445
  done
3446
IFS=$as_save_IFS
3447
 
3448
fi
3449
fi
3450
CC=$ac_cv_prog_CC
3451
if test -n "$CC"; then
3452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453
$as_echo "$CC" >&6; }
3454
else
3455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456
$as_echo "no" >&6; }
3457
fi
3458
 
3459
 
3460
fi
3461
if test -z "$ac_cv_prog_CC"; then
3462
  ac_ct_CC=$CC
3463
  # Extract the first word of "gcc", so it can be a program name with args.
3464
set dummy gcc; ac_word=$2
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466
$as_echo_n "checking for $ac_word... " >&6; }
3467
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3468
  $as_echo_n "(cached) " >&6
3469
else
3470
  if test -n "$ac_ct_CC"; then
3471
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472
else
3473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474
for as_dir in $PATH
3475
do
3476
  IFS=$as_save_IFS
3477
  test -z "$as_dir" && as_dir=.
3478
    for ac_exec_ext in '' $ac_executable_extensions; do
3479
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480
    ac_cv_prog_ac_ct_CC="gcc"
3481
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482
    break 2
3483
  fi
3484
done
3485
  done
3486
IFS=$as_save_IFS
3487
 
3488
fi
3489
fi
3490
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491
if test -n "$ac_ct_CC"; then
3492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493
$as_echo "$ac_ct_CC" >&6; }
3494
else
3495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496
$as_echo "no" >&6; }
3497
fi
3498
 
3499
  if test "x$ac_ct_CC" = x; then
3500
    CC=""
3501
  else
3502
    case $cross_compiling:$ac_tool_warned in
3503
yes:)
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506
ac_tool_warned=yes ;;
3507
esac
3508
    CC=$ac_ct_CC
3509
  fi
3510
else
3511
  CC="$ac_cv_prog_CC"
3512
fi
3513
 
3514
if test -z "$CC"; then
3515
          if test -n "$ac_tool_prefix"; then
3516
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3517
set dummy ${ac_tool_prefix}cc; ac_word=$2
3518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519
$as_echo_n "checking for $ac_word... " >&6; }
3520
if test "${ac_cv_prog_CC+set}" = set; then :
3521
  $as_echo_n "(cached) " >&6
3522
else
3523
  if test -n "$CC"; then
3524
  ac_cv_prog_CC="$CC" # Let the user override the test.
3525
else
3526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527
for as_dir in $PATH
3528
do
3529
  IFS=$as_save_IFS
3530
  test -z "$as_dir" && as_dir=.
3531
    for ac_exec_ext in '' $ac_executable_extensions; do
3532
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3534
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535
    break 2
3536
  fi
3537
done
3538
  done
3539
IFS=$as_save_IFS
3540
 
3541
fi
3542
fi
3543
CC=$ac_cv_prog_CC
3544
if test -n "$CC"; then
3545
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3546
$as_echo "$CC" >&6; }
3547
else
3548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549
$as_echo "no" >&6; }
3550
fi
3551
 
3552
 
3553
  fi
3554
fi
3555
if test -z "$CC"; then
3556
  # Extract the first word of "cc", so it can be a program name with args.
3557
set dummy cc; ac_word=$2
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559
$as_echo_n "checking for $ac_word... " >&6; }
3560
if test "${ac_cv_prog_CC+set}" = set; then :
3561
  $as_echo_n "(cached) " >&6
3562
else
3563
  if test -n "$CC"; then
3564
  ac_cv_prog_CC="$CC" # Let the user override the test.
3565
else
3566
  ac_prog_rejected=no
3567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568
for as_dir in $PATH
3569
do
3570
  IFS=$as_save_IFS
3571
  test -z "$as_dir" && as_dir=.
3572
    for ac_exec_ext in '' $ac_executable_extensions; do
3573
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3575
       ac_prog_rejected=yes
3576
       continue
3577
     fi
3578
    ac_cv_prog_CC="cc"
3579
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580
    break 2
3581
  fi
3582
done
3583
  done
3584
IFS=$as_save_IFS
3585
 
3586
if test $ac_prog_rejected = yes; then
3587
  # We found a bogon in the path, so make sure we never use it.
3588
  set dummy $ac_cv_prog_CC
3589
  shift
3590
  if test $# != 0; then
3591
    # We chose a different compiler from the bogus one.
3592
    # However, it has the same basename, so the bogon will be chosen
3593
    # first if we set CC to just the basename; use the full file name.
3594
    shift
3595
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3596
  fi
3597
fi
3598
fi
3599
fi
3600
CC=$ac_cv_prog_CC
3601
if test -n "$CC"; then
3602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603
$as_echo "$CC" >&6; }
3604
else
3605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606
$as_echo "no" >&6; }
3607
fi
3608
 
3609
 
3610
fi
3611
if test -z "$CC"; then
3612
  if test -n "$ac_tool_prefix"; then
3613
  for ac_prog in cl.exe
3614
  do
3615
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3616
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618
$as_echo_n "checking for $ac_word... " >&6; }
3619
if test "${ac_cv_prog_CC+set}" = set; then :
3620
  $as_echo_n "(cached) " >&6
3621
else
3622
  if test -n "$CC"; then
3623
  ac_cv_prog_CC="$CC" # Let the user override the test.
3624
else
3625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626
for as_dir in $PATH
3627
do
3628
  IFS=$as_save_IFS
3629
  test -z "$as_dir" && as_dir=.
3630
    for ac_exec_ext in '' $ac_executable_extensions; do
3631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3633
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634
    break 2
3635
  fi
3636
done
3637
  done
3638
IFS=$as_save_IFS
3639
 
3640
fi
3641
fi
3642
CC=$ac_cv_prog_CC
3643
if test -n "$CC"; then
3644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3645
$as_echo "$CC" >&6; }
3646
else
3647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648
$as_echo "no" >&6; }
3649
fi
3650
 
3651
 
3652
    test -n "$CC" && break
3653
  done
3654
fi
3655
if test -z "$CC"; then
3656
  ac_ct_CC=$CC
3657
  for ac_prog in cl.exe
3658
do
3659
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3660
set dummy $ac_prog; ac_word=$2
3661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662
$as_echo_n "checking for $ac_word... " >&6; }
3663
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3664
  $as_echo_n "(cached) " >&6
3665
else
3666
  if test -n "$ac_ct_CC"; then
3667
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668
else
3669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670
for as_dir in $PATH
3671
do
3672
  IFS=$as_save_IFS
3673
  test -z "$as_dir" && as_dir=.
3674
    for ac_exec_ext in '' $ac_executable_extensions; do
3675
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676
    ac_cv_prog_ac_ct_CC="$ac_prog"
3677
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678
    break 2
3679
  fi
3680
done
3681
  done
3682
IFS=$as_save_IFS
3683
 
3684
fi
3685
fi
3686
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3687
if test -n "$ac_ct_CC"; then
3688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3689
$as_echo "$ac_ct_CC" >&6; }
3690
else
3691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692
$as_echo "no" >&6; }
3693
fi
3694
 
3695
 
3696
  test -n "$ac_ct_CC" && break
3697
done
3698
 
3699
  if test "x$ac_ct_CC" = x; then
3700
    CC=""
3701
  else
3702
    case $cross_compiling:$ac_tool_warned in
3703
yes:)
3704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706
ac_tool_warned=yes ;;
3707
esac
3708
    CC=$ac_ct_CC
3709
  fi
3710
fi
3711
 
3712
fi
3713
 
3714
 
3715
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717
as_fn_error "no acceptable C compiler found in \$PATH
3718
See \`config.log' for more details." "$LINENO" 5; }
3719
 
3720
# Provide some information about the compiler.
3721
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3722
set X $ac_compile
3723
ac_compiler=$2
3724
for ac_option in --version -v -V -qversion; do
3725
  { { ac_try="$ac_compiler $ac_option >&5"
3726
case "(($ac_try" in
3727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728
  *) ac_try_echo=$ac_try;;
3729
esac
3730
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731
$as_echo "$ac_try_echo"; } >&5
3732
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3733
  ac_status=$?
3734
  if test -s conftest.err; then
3735
    sed '10a\
3736
... rest of stderr output deleted ...
3737
         10q' conftest.err >conftest.er1
3738
    cat conftest.er1 >&5
3739
    rm -f conftest.er1 conftest.err
3740
  fi
3741
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742
  test $ac_status = 0; }
3743
done
3744
 
3745
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746
/* end confdefs.h.  */
3747
#include <stdio.h>
3748
int
3749
main ()
3750
{
3751
FILE *f = fopen ("conftest.out", "w");
3752
 return ferror (f) || fclose (f) != 0;
3753
 
3754
  ;
3755
  return 0;
3756
}
3757
_ACEOF
3758
ac_clean_files_save=$ac_clean_files
3759
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3760
# Try to create an executable without -o first, disregard a.out.
3761
# It will help us diagnose broken compilers, and finding out an intuition
3762
# of exeext.
3763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764
$as_echo_n "checking for C compiler default output file name... " >&6; }
3765
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3766
 
3767
# The possible output files:
3768
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3769
 
3770
ac_rmfiles=
3771
for ac_file in $ac_files
3772
do
3773
  case $ac_file in
3774
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3776
  esac
3777
done
3778
rm -f $ac_rmfiles
3779
 
3780
if { { ac_try="$ac_link_default"
3781
case "(($ac_try" in
3782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783
  *) ac_try_echo=$ac_try;;
3784
esac
3785
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786
$as_echo "$ac_try_echo"; } >&5
3787
  (eval "$ac_link_default") 2>&5
3788
  ac_status=$?
3789
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790
  test $ac_status = 0; }; then :
3791
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3792
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3793
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3794
# so that the user can short-circuit this test for compilers unknown to
3795
# Autoconf.
3796
for ac_file in $ac_files ''
3797
do
3798
  test -f "$ac_file" || continue
3799
  case $ac_file in
3800
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3801
	;;
3802
    [ab].out )
3803
	# We found the default executable, but exeext='' is most
3804
	# certainly right.
3805
	break;;
3806
    *.* )
3807
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3808
	then :; else
3809
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3810
	fi
3811
	# We set ac_cv_exeext here because the later test for it is not
3812
	# safe: cross compilers may not add the suffix if given an `-o'
3813
	# argument, so we may need to know it at that point already.
3814
	# Even if this section looks crufty: it has the advantage of
3815
	# actually working.
3816
	break;;
3817
    * )
3818
	break;;
3819
  esac
3820
done
3821
test "$ac_cv_exeext" = no && ac_cv_exeext=
3822
 
3823
else
3824
  ac_file=''
3825
fi
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827
$as_echo "$ac_file" >&6; }
3828
if test -z "$ac_file"; then :
3829
  $as_echo "$as_me: failed program was:" >&5
3830
sed 's/^/| /' conftest.$ac_ext >&5
3831
 
3832
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834
{ as_fn_set_status 77
3835
as_fn_error "C compiler cannot create executables
3836
See \`config.log' for more details." "$LINENO" 5; }; }
3837
fi
3838
ac_exeext=$ac_cv_exeext
3839
 
3840
# Check that the compiler produces executables we can run.  If not, either
3841
# the compiler is broken, or we cross compile.
3842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3843
$as_echo_n "checking whether the C compiler works... " >&6; }
3844
# If not cross compiling, check that we can run a simple program.
3845
if test "$cross_compiling" != yes; then
3846
  if { ac_try='./$ac_file'
3847
  { { case "(($ac_try" in
3848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849
  *) ac_try_echo=$ac_try;;
3850
esac
3851
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852
$as_echo "$ac_try_echo"; } >&5
3853
  (eval "$ac_try") 2>&5
3854
  ac_status=$?
3855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856
  test $ac_status = 0; }; }; then
3857
    cross_compiling=no
3858
  else
3859
    if test "$cross_compiling" = maybe; then
3860
	cross_compiling=yes
3861
    else
3862
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864
as_fn_error "cannot run C compiled programs.
3865
If you meant to cross compile, use \`--host'.
3866
See \`config.log' for more details." "$LINENO" 5; }
3867
    fi
3868
  fi
3869
fi
3870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871
$as_echo "yes" >&6; }
3872
 
3873
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3874
ac_clean_files=$ac_clean_files_save
3875
# Check that the compiler produces executables we can run.  If not, either
3876
# the compiler is broken, or we cross compile.
3877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878
$as_echo_n "checking whether we are cross compiling... " >&6; }
3879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3880
$as_echo "$cross_compiling" >&6; }
3881
 
3882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883
$as_echo_n "checking for suffix of executables... " >&6; }
3884
if { { ac_try="$ac_link"
3885
case "(($ac_try" in
3886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887
  *) ac_try_echo=$ac_try;;
3888
esac
3889
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890
$as_echo "$ac_try_echo"; } >&5
3891
  (eval "$ac_link") 2>&5
3892
  ac_status=$?
3893
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894
  test $ac_status = 0; }; then :
3895
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3897
# work properly (i.e., refer to `conftest.exe'), while it won't with
3898
# `rm'.
3899
for ac_file in conftest.exe conftest conftest.*; do
3900
  test -f "$ac_file" || continue
3901
  case $ac_file in
3902
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904
	  break;;
3905
    * ) break;;
3906
  esac
3907
done
3908
else
3909
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911
as_fn_error "cannot compute suffix of executables: cannot compile and link
3912
See \`config.log' for more details." "$LINENO" 5; }
3913
fi
3914
rm -f conftest$ac_cv_exeext
3915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916
$as_echo "$ac_cv_exeext" >&6; }
3917
 
3918
rm -f conftest.$ac_ext
3919
EXEEXT=$ac_cv_exeext
3920
ac_exeext=$EXEEXT
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922
$as_echo_n "checking for suffix of object files... " >&6; }
3923
if test "${ac_cv_objext+set}" = set; then :
3924
  $as_echo_n "(cached) " >&6
3925
else
3926
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927
/* end confdefs.h.  */
3928
 
3929
int
3930
main ()
3931
{
3932
 
3933
  ;
3934
  return 0;
3935
}
3936
_ACEOF
3937
rm -f conftest.o conftest.obj
3938
if { { ac_try="$ac_compile"
3939
case "(($ac_try" in
3940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941
  *) ac_try_echo=$ac_try;;
3942
esac
3943
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944
$as_echo "$ac_try_echo"; } >&5
3945
  (eval "$ac_compile") 2>&5
3946
  ac_status=$?
3947
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948
  test $ac_status = 0; }; then :
3949
  for ac_file in conftest.o conftest.obj conftest.*; do
3950
  test -f "$ac_file" || continue;
3951
  case $ac_file in
3952
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3953
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3954
       break;;
3955
  esac
3956
done
3957
else
3958
  $as_echo "$as_me: failed program was:" >&5
3959
sed 's/^/| /' conftest.$ac_ext >&5
3960
 
3961
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963
as_fn_error "cannot compute suffix of object files: cannot compile
3964
See \`config.log' for more details." "$LINENO" 5; }
3965
fi
3966
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3967
fi
3968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3969
$as_echo "$ac_cv_objext" >&6; }
3970
OBJEXT=$ac_cv_objext
3971
ac_objext=$OBJEXT
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3973
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3974
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3975
  $as_echo_n "(cached) " >&6
3976
else
3977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978
/* end confdefs.h.  */
3979
 
3980
int
3981
main ()
3982
{
3983
#ifndef __GNUC__
3984
       choke me
3985
#endif
3986
 
3987
  ;
3988
  return 0;
3989
}
3990
_ACEOF
3991
if ac_fn_c_try_compile "$LINENO"; then :
3992
  ac_compiler_gnu=yes
3993
else
3994
  ac_compiler_gnu=no
3995
fi
3996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3998
 
3999
fi
4000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002
if test $ac_compiler_gnu = yes; then
4003
  GCC=yes
4004
else
4005
  GCC=
4006
fi
4007
ac_test_CFLAGS=${CFLAGS+set}
4008
ac_save_CFLAGS=$CFLAGS
4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4010
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4011
if test "${ac_cv_prog_cc_g+set}" = set; then :
4012
  $as_echo_n "(cached) " >&6
4013
else
4014
  ac_save_c_werror_flag=$ac_c_werror_flag
4015
   ac_c_werror_flag=yes
4016
   ac_cv_prog_cc_g=no
4017
   CFLAGS="-g"
4018
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019
/* end confdefs.h.  */
4020
 
4021
int
4022
main ()
4023
{
4024
 
4025
  ;
4026
  return 0;
4027
}
4028
_ACEOF
4029
if ac_fn_c_try_compile "$LINENO"; then :
4030
  ac_cv_prog_cc_g=yes
4031
else
4032
  CFLAGS=""
4033
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034
/* end confdefs.h.  */
4035
 
4036
int
4037
main ()
4038
{
4039
 
4040
  ;
4041
  return 0;
4042
}
4043
_ACEOF
4044
if ac_fn_c_try_compile "$LINENO"; then :
4045
 
4046
else
4047
  ac_c_werror_flag=$ac_save_c_werror_flag
4048
	 CFLAGS="-g"
4049
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050
/* end confdefs.h.  */
4051
 
4052
int
4053
main ()
4054
{
4055
 
4056
  ;
4057
  return 0;
4058
}
4059
_ACEOF
4060
if ac_fn_c_try_compile "$LINENO"; then :
4061
  ac_cv_prog_cc_g=yes
4062
fi
4063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064
fi
4065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066
fi
4067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068
   ac_c_werror_flag=$ac_save_c_werror_flag
4069
fi
4070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071
$as_echo "$ac_cv_prog_cc_g" >&6; }
4072
if test "$ac_test_CFLAGS" = set; then
4073
  CFLAGS=$ac_save_CFLAGS
4074
elif test $ac_cv_prog_cc_g = yes; then
4075
  if test "$GCC" = yes; then
4076
    CFLAGS="-g -O2"
4077
  else
4078
    CFLAGS="-g"
4079
  fi
4080
else
4081
  if test "$GCC" = yes; then
4082
    CFLAGS="-O2"
4083
  else
4084
    CFLAGS=
4085
  fi
4086
fi
4087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4088
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4089
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4090
  $as_echo_n "(cached) " >&6
4091
else
4092
  ac_cv_prog_cc_c89=no
4093
ac_save_CC=$CC
4094
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095
/* end confdefs.h.  */
4096
#include <stdarg.h>
4097
#include <stdio.h>
4098
#include <sys/types.h>
4099
#include <sys/stat.h>
4100
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4101
struct buf { int x; };
4102
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4103
static char *e (p, i)
4104
     char **p;
4105
     int i;
4106
{
4107
  return p[i];
4108
}
4109
static char *f (char * (*g) (char **, int), char **p, ...)
4110
{
4111
  char *s;
4112
  va_list v;
4113
  va_start (v,p);
4114
  s = g (p, va_arg (v,int));
4115
  va_end (v);
4116
  return s;
4117
}
4118
 
4119
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4120
   function prototypes and stuff, but not '\xHH' hex character constants.
4121
   These don't provoke an error unfortunately, instead are silently treated
4122
   as 'x'.  The following induces an error, until -std is added to get
4123
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4124
   array size at least.  It's necessary to write '\x00'==0 to get something
4125
   that's true only with -std.  */
4126
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4127
 
4128
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4129
   inside strings and character constants.  */
4130
#define FOO(x) 'x'
4131
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4132
 
4133
int test (int i, double x);
4134
struct s1 {int (*f) (int a);};
4135
struct s2 {int (*f) (double a);};
4136
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4137
int argc;
4138
char **argv;
4139
int
4140
main ()
4141
{
4142
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4143
  ;
4144
  return 0;
4145
}
4146
_ACEOF
4147
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4148
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4149
do
4150
  CC="$ac_save_CC $ac_arg"
4151
  if ac_fn_c_try_compile "$LINENO"; then :
4152
  ac_cv_prog_cc_c89=$ac_arg
4153
fi
4154
rm -f core conftest.err conftest.$ac_objext
4155
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4156
done
4157
rm -f conftest.$ac_ext
4158
CC=$ac_save_CC
4159
 
4160
fi
4161
# AC_CACHE_VAL
4162
case "x$ac_cv_prog_cc_c89" in
4163
  x)
4164
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165
$as_echo "none needed" >&6; } ;;
4166
  xno)
4167
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168
$as_echo "unsupported" >&6; } ;;
4169
  *)
4170
    CC="$CC $ac_cv_prog_cc_c89"
4171
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4172
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4173
esac
4174
if test "x$ac_cv_prog_cc_c89" != xno; then :
4175
 
4176
fi
4177
 
4178
ac_ext=c
4179
ac_cpp='$CPP $CPPFLAGS'
4180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183
DEPDIR="${am__leading_dot}deps"
4184
 
4185
ac_config_commands="$ac_config_commands depfiles"
4186
 
4187
 
4188
am_make=${MAKE-make}
4189
cat > confinc << 'END'
4190
am__doit:
4191
	@echo this is the am__doit target
4192
.PHONY: am__doit
4193
END
4194
# If we don't find an include directive, just comment out the code.
4195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4196
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4197
am__include="#"
4198
am__quote=
4199
_am_result=none
4200
# First try GNU make style include.
4201
echo "include confinc" > confmf
4202
# Ignore all kinds of additional output from `make'.
4203
case `$am_make -s -f confmf 2> /dev/null` in #(
4204
*the\ am__doit\ target*)
4205
  am__include=include
4206
  am__quote=
4207
  _am_result=GNU
4208
  ;;
4209
esac
4210
# Now try BSD make style include.
4211
if test "$am__include" = "#"; then
4212
   echo '.include "confinc"' > confmf
4213
   case `$am_make -s -f confmf 2> /dev/null` in #(
4214
   *the\ am__doit\ target*)
4215
     am__include=.include
4216
     am__quote="\""
4217
     _am_result=BSD
4218
     ;;
4219
   esac
4220
fi
4221
 
4222
 
4223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4224
$as_echo "$_am_result" >&6; }
4225
rm -f confinc confmf
4226
 
4227
# Check whether --enable-dependency-tracking was given.
4228
if test "${enable_dependency_tracking+set}" = set; then :
4229
  enableval=$enable_dependency_tracking;
4230
fi
4231
 
4232
if test "x$enable_dependency_tracking" != xno; then
4233
  am_depcomp="$ac_aux_dir/depcomp"
4234
  AMDEPBACKSLASH='\'
4235
fi
4236
 if test "x$enable_dependency_tracking" != xno; then
4237
  AMDEP_TRUE=
4238
  AMDEP_FALSE='#'
4239
else
4240
  AMDEP_TRUE='#'
4241
  AMDEP_FALSE=
4242
fi
4243
 
4244
 
4245
 
4246
depcc="$CC"   am_compiler_list=
4247
 
4248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4249
$as_echo_n "checking dependency style of $depcc... " >&6; }
4250
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4251
  $as_echo_n "(cached) " >&6
4252
else
4253
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4254
  # We make a subdir and do the tests there.  Otherwise we can end up
4255
  # making bogus files that we don't know about and never remove.  For
4256
  # instance it was reported that on HP-UX the gcc test will end up
4257
  # making a dummy file named `D' -- because `-MD' means `put the output
4258
  # in D'.
4259
  mkdir conftest.dir
4260
  # Copy depcomp to subdir because otherwise we won't find it if we're
4261
  # using a relative directory.
4262
  cp "$am_depcomp" conftest.dir
4263
  cd conftest.dir
4264
  # We will build objects and dependencies in a subdirectory because
4265
  # it helps to detect inapplicable dependency modes.  For instance
4266
  # both Tru64's cc and ICC support -MD to output dependencies as a
4267
  # side effect of compilation, but ICC will put the dependencies in
4268
  # the current directory while Tru64 will put them in the object
4269
  # directory.
4270
  mkdir sub
4271
 
4272
  am_cv_CC_dependencies_compiler_type=none
4273
  if test "$am_compiler_list" = ""; then
4274
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4275
  fi
4276
  am__universal=false
4277
  case " $depcc " in #(
4278
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4279
     esac
4280
 
4281
  for depmode in $am_compiler_list; do
4282
    # Setup a source with many dependencies, because some compilers
4283
    # like to wrap large dependency lists on column 80 (with \), and
4284
    # we should not choose a depcomp mode which is confused by this.
4285
    #
4286
    # We need to recreate these files for each test, as the compiler may
4287
    # overwrite some of them when testing with obscure command lines.
4288
    # This happens at least with the AIX C compiler.
4289
    : > sub/conftest.c
4290
    for i in 1 2 3 4 5 6; do
4291
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4292
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4293
      # Solaris 8's {/usr,}/bin/sh.
4294
      touch sub/conftst$i.h
4295
    done
4296
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4297
 
4298
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4299
    # mode.  It turns out that the SunPro C++ compiler does not properly
4300
    # handle `-M -o', and we need to detect this.  Also, some Intel
4301
    # versions had trouble with output in subdirs
4302
    am__obj=sub/conftest.${OBJEXT-o}
4303
    am__minus_obj="-o $am__obj"
4304
    case $depmode in
4305
    gcc)
4306
      # This depmode causes a compiler race in universal mode.
4307
      test "$am__universal" = false || continue
4308
      ;;
4309
    nosideeffect)
4310
      # after this tag, mechanisms are not by side-effect, so they'll
4311
      # only be used when explicitly requested
4312
      if test "x$enable_dependency_tracking" = xyes; then
4313
	continue
4314
      else
4315
	break
4316
      fi
4317
      ;;
4318
    msvisualcpp | msvcmsys)
4319
      # This compiler won't grok `-c -o', but also, the minuso test has
4320
      # not run yet.  These depmodes are late enough in the game, and
4321
      # so weak that their functioning should not be impacted.
4322
      am__obj=conftest.${OBJEXT-o}
4323
      am__minus_obj=
4324
      ;;
4325
    none) break ;;
4326
    esac
4327
    if depmode=$depmode \
4328
       source=sub/conftest.c object=$am__obj \
4329
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4330
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4331
         >/dev/null 2>conftest.err &&
4332
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4333
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4334
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4335
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4336
      # icc doesn't choke on unknown options, it will just issue warnings
4337
      # or remarks (even with -Werror).  So we grep stderr for any message
4338
      # that says an option was ignored or not supported.
4339
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4340
      #   icc: Command line warning: ignoring option '-M'; no argument required
4341
      # The diagnosis changed in icc 8.0:
4342
      #   icc: Command line remark: option '-MP' not supported
4343
      if (grep 'ignoring option' conftest.err ||
4344
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4345
        am_cv_CC_dependencies_compiler_type=$depmode
4346
        break
4347
      fi
4348
    fi
4349
  done
4350
 
4351
  cd ..
4352
  rm -rf conftest.dir
4353
else
4354
  am_cv_CC_dependencies_compiler_type=none
4355
fi
4356
 
4357
fi
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4359
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4360
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4361
 
4362
 if
4363
  test "x$enable_dependency_tracking" != xno \
4364
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4365
  am__fastdepCC_TRUE=
4366
  am__fastdepCC_FALSE='#'
4367
else
4368
  am__fastdepCC_TRUE='#'
4369
  am__fastdepCC_FALSE=
4370
fi
4371
 
4372
 
4373
ac_ext=c
4374
ac_cpp='$CPP $CPPFLAGS'
4375
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4379
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4380
# On Suns, sometimes $CPP names a directory.
4381
if test -n "$CPP" && test -d "$CPP"; then
4382
  CPP=
4383
fi
4384
if test -z "$CPP"; then
4385
  if test "${ac_cv_prog_CPP+set}" = set; then :
4386
  $as_echo_n "(cached) " >&6
4387
else
4388
      # Double quotes because CPP needs to be expanded
4389
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4390
    do
4391
      ac_preproc_ok=false
4392
for ac_c_preproc_warn_flag in '' yes
4393
do
4394
  # Use a header file that comes with gcc, so configuring glibc
4395
  # with a fresh cross-compiler works.
4396
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397
  # <limits.h> exists even on freestanding compilers.
4398
  # On the NeXT, cc -E runs the code through the compiler's parser,
4399
  # not just through cpp. "Syntax error" is here to catch this case.
4400
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401
/* end confdefs.h.  */
4402
#ifdef __STDC__
4403
# include <limits.h>
4404
#else
4405
# include <assert.h>
4406
#endif
4407
		     Syntax error
4408
_ACEOF
4409
if ac_fn_c_try_cpp "$LINENO"; then :
4410
 
4411
else
4412
  # Broken: fails on valid input.
4413
continue
4414
fi
4415
rm -f conftest.err conftest.$ac_ext
4416
 
4417
  # OK, works on sane cases.  Now check whether nonexistent headers
4418
  # can be detected and how.
4419
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420
/* end confdefs.h.  */
4421
#include <ac_nonexistent.h>
4422
_ACEOF
4423
if ac_fn_c_try_cpp "$LINENO"; then :
4424
  # Broken: success on invalid input.
4425
continue
4426
else
4427
  # Passes both tests.
4428
ac_preproc_ok=:
4429
break
4430
fi
4431
rm -f conftest.err conftest.$ac_ext
4432
 
4433
done
4434
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4435
rm -f conftest.err conftest.$ac_ext
4436
if $ac_preproc_ok; then :
4437
  break
4438
fi
4439
 
4440
    done
4441
    ac_cv_prog_CPP=$CPP
4442
 
4443
fi
4444
  CPP=$ac_cv_prog_CPP
4445
else
4446
  ac_cv_prog_CPP=$CPP
4447
fi
4448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4449
$as_echo "$CPP" >&6; }
4450
ac_preproc_ok=false
4451
for ac_c_preproc_warn_flag in '' yes
4452
do
4453
  # Use a header file that comes with gcc, so configuring glibc
4454
  # with a fresh cross-compiler works.
4455
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4456
  # <limits.h> exists even on freestanding compilers.
4457
  # On the NeXT, cc -E runs the code through the compiler's parser,
4458
  # not just through cpp. "Syntax error" is here to catch this case.
4459
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460
/* end confdefs.h.  */
4461
#ifdef __STDC__
4462
# include <limits.h>
4463
#else
4464
# include <assert.h>
4465
#endif
4466
		     Syntax error
4467
_ACEOF
4468
if ac_fn_c_try_cpp "$LINENO"; then :
4469
 
4470
else
4471
  # Broken: fails on valid input.
4472
continue
4473
fi
4474
rm -f conftest.err conftest.$ac_ext
4475
 
4476
  # OK, works on sane cases.  Now check whether nonexistent headers
4477
  # can be detected and how.
4478
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479
/* end confdefs.h.  */
4480
#include <ac_nonexistent.h>
4481
_ACEOF
4482
if ac_fn_c_try_cpp "$LINENO"; then :
4483
  # Broken: success on invalid input.
4484
continue
4485
else
4486
  # Passes both tests.
4487
ac_preproc_ok=:
4488
break
4489
fi
4490
rm -f conftest.err conftest.$ac_ext
4491
 
4492
done
4493
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4494
rm -f conftest.err conftest.$ac_ext
4495
if $ac_preproc_ok; then :
4496
 
4497
else
4498
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4500
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4501
See \`config.log' for more details." "$LINENO" 5; }
4502
fi
4503
 
4504
ac_ext=c
4505
ac_cpp='$CPP $CPPFLAGS'
4506
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
 
4510
ac_ext=cpp
4511
ac_cpp='$CXXCPP $CPPFLAGS'
4512
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4515
if test -z "$CXX"; then
4516
  if test -n "$CCC"; then
4517
    CXX=$CCC
4518
  else
4519
    if test -n "$ac_tool_prefix"; then
4520
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4521
  do
4522
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525
$as_echo_n "checking for $ac_word... " >&6; }
4526
if test "${ac_cv_prog_CXX+set}" = set; then :
4527
  $as_echo_n "(cached) " >&6
4528
else
4529
  if test -n "$CXX"; then
4530
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4531
else
4532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533
for as_dir in $PATH
4534
do
4535
  IFS=$as_save_IFS
4536
  test -z "$as_dir" && as_dir=.
4537
    for ac_exec_ext in '' $ac_executable_extensions; do
4538
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4540
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541
    break 2
4542
  fi
4543
done
4544
  done
4545
IFS=$as_save_IFS
4546
 
4547
fi
4548
fi
4549
CXX=$ac_cv_prog_CXX
4550
if test -n "$CXX"; then
4551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4552
$as_echo "$CXX" >&6; }
4553
else
4554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555
$as_echo "no" >&6; }
4556
fi
4557
 
4558
 
4559
    test -n "$CXX" && break
4560
  done
4561
fi
4562
if test -z "$CXX"; then
4563
  ac_ct_CXX=$CXX
4564
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4565
do
4566
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4567
set dummy $ac_prog; ac_word=$2
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569
$as_echo_n "checking for $ac_word... " >&6; }
4570
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4571
  $as_echo_n "(cached) " >&6
4572
else
4573
  if test -n "$ac_ct_CXX"; then
4574
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4575
else
4576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577
for as_dir in $PATH
4578
do
4579
  IFS=$as_save_IFS
4580
  test -z "$as_dir" && as_dir=.
4581
    for ac_exec_ext in '' $ac_executable_extensions; do
4582
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4584
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585
    break 2
4586
  fi
4587
done
4588
  done
4589
IFS=$as_save_IFS
4590
 
4591
fi
4592
fi
4593
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4594
if test -n "$ac_ct_CXX"; then
4595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4596
$as_echo "$ac_ct_CXX" >&6; }
4597
else
4598
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599
$as_echo "no" >&6; }
4600
fi
4601
 
4602
 
4603
  test -n "$ac_ct_CXX" && break
4604
done
4605
 
4606
  if test "x$ac_ct_CXX" = x; then
4607
    CXX="g++"
4608
  else
4609
    case $cross_compiling:$ac_tool_warned in
4610
yes:)
4611
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4612
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4613
ac_tool_warned=yes ;;
4614
esac
4615
    CXX=$ac_ct_CXX
4616
  fi
4617
fi
4618
 
4619
  fi
4620
fi
4621
# Provide some information about the compiler.
4622
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4623
set X $ac_compile
4624
ac_compiler=$2
4625
for ac_option in --version -v -V -qversion; do
4626
  { { ac_try="$ac_compiler $ac_option >&5"
4627
case "(($ac_try" in
4628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629
  *) ac_try_echo=$ac_try;;
4630
esac
4631
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632
$as_echo "$ac_try_echo"; } >&5
4633
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4634
  ac_status=$?
4635
  if test -s conftest.err; then
4636
    sed '10a\
4637
... rest of stderr output deleted ...
4638
         10q' conftest.err >conftest.er1
4639
    cat conftest.er1 >&5
4640
    rm -f conftest.er1 conftest.err
4641
  fi
4642
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643
  test $ac_status = 0; }
4644
done
4645
 
4646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4647
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4648
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4649
  $as_echo_n "(cached) " >&6
4650
else
4651
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652
/* end confdefs.h.  */
4653
 
4654
int
4655
main ()
4656
{
4657
#ifndef __GNUC__
4658
       choke me
4659
#endif
4660
 
4661
  ;
4662
  return 0;
4663
}
4664
_ACEOF
4665
if ac_fn_cxx_try_compile "$LINENO"; then :
4666
  ac_compiler_gnu=yes
4667
else
4668
  ac_compiler_gnu=no
4669
fi
4670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4672
 
4673
fi
4674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4675
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4676
if test $ac_compiler_gnu = yes; then
4677
  GXX=yes
4678
else
4679
  GXX=
4680
fi
4681
ac_test_CXXFLAGS=${CXXFLAGS+set}
4682
ac_save_CXXFLAGS=$CXXFLAGS
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4684
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4685
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4686
  $as_echo_n "(cached) " >&6
4687
else
4688
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4689
   ac_cxx_werror_flag=yes
4690
   ac_cv_prog_cxx_g=no
4691
   CXXFLAGS="-g"
4692
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693
/* end confdefs.h.  */
4694
 
4695
int
4696
main ()
4697
{
4698
 
4699
  ;
4700
  return 0;
4701
}
4702
_ACEOF
4703
if ac_fn_cxx_try_compile "$LINENO"; then :
4704
  ac_cv_prog_cxx_g=yes
4705
else
4706
  CXXFLAGS=""
4707
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708
/* end confdefs.h.  */
4709
 
4710
int
4711
main ()
4712
{
4713
 
4714
  ;
4715
  return 0;
4716
}
4717
_ACEOF
4718
if ac_fn_cxx_try_compile "$LINENO"; then :
4719
 
4720
else
4721
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4722
	 CXXFLAGS="-g"
4723
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724
/* end confdefs.h.  */
4725
 
4726
int
4727
main ()
4728
{
4729
 
4730
  ;
4731
  return 0;
4732
}
4733
_ACEOF
4734
if ac_fn_cxx_try_compile "$LINENO"; then :
4735
  ac_cv_prog_cxx_g=yes
4736
fi
4737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738
fi
4739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
fi
4741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4743
fi
4744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4745
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4746
if test "$ac_test_CXXFLAGS" = set; then
4747
  CXXFLAGS=$ac_save_CXXFLAGS
4748
elif test $ac_cv_prog_cxx_g = yes; then
4749
  if test "$GXX" = yes; then
4750
    CXXFLAGS="-g -O2"
4751
  else
4752
    CXXFLAGS="-g"
4753
  fi
4754
else
4755
  if test "$GXX" = yes; then
4756
    CXXFLAGS="-O2"
4757
  else
4758
    CXXFLAGS=
4759
  fi
4760
fi
4761
ac_ext=c
4762
ac_cpp='$CPP $CPPFLAGS'
4763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766
 
4767
depcc="$CXX"  am_compiler_list=
4768
 
4769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4770
$as_echo_n "checking dependency style of $depcc... " >&6; }
4771
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4772
  $as_echo_n "(cached) " >&6
4773
else
4774
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4775
  # We make a subdir and do the tests there.  Otherwise we can end up
4776
  # making bogus files that we don't know about and never remove.  For
4777
  # instance it was reported that on HP-UX the gcc test will end up
4778
  # making a dummy file named `D' -- because `-MD' means `put the output
4779
  # in D'.
4780
  mkdir conftest.dir
4781
  # Copy depcomp to subdir because otherwise we won't find it if we're
4782
  # using a relative directory.
4783
  cp "$am_depcomp" conftest.dir
4784
  cd conftest.dir
4785
  # We will build objects and dependencies in a subdirectory because
4786
  # it helps to detect inapplicable dependency modes.  For instance
4787
  # both Tru64's cc and ICC support -MD to output dependencies as a
4788
  # side effect of compilation, but ICC will put the dependencies in
4789
  # the current directory while Tru64 will put them in the object
4790
  # directory.
4791
  mkdir sub
4792
 
4793
  am_cv_CXX_dependencies_compiler_type=none
4794
  if test "$am_compiler_list" = ""; then
4795
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4796
  fi
4797
  am__universal=false
4798
  case " $depcc " in #(
4799
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4800
     esac
4801
 
4802
  for depmode in $am_compiler_list; do
4803
    # Setup a source with many dependencies, because some compilers
4804
    # like to wrap large dependency lists on column 80 (with \), and
4805
    # we should not choose a depcomp mode which is confused by this.
4806
    #
4807
    # We need to recreate these files for each test, as the compiler may
4808
    # overwrite some of them when testing with obscure command lines.
4809
    # This happens at least with the AIX C compiler.
4810
    : > sub/conftest.c
4811
    for i in 1 2 3 4 5 6; do
4812
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4813
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4814
      # Solaris 8's {/usr,}/bin/sh.
4815
      touch sub/conftst$i.h
4816
    done
4817
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4818
 
4819
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4820
    # mode.  It turns out that the SunPro C++ compiler does not properly
4821
    # handle `-M -o', and we need to detect this.  Also, some Intel
4822
    # versions had trouble with output in subdirs
4823
    am__obj=sub/conftest.${OBJEXT-o}
4824
    am__minus_obj="-o $am__obj"
4825
    case $depmode in
4826
    gcc)
4827
      # This depmode causes a compiler race in universal mode.
4828
      test "$am__universal" = false || continue
4829
      ;;
4830
    nosideeffect)
4831
      # after this tag, mechanisms are not by side-effect, so they'll
4832
      # only be used when explicitly requested
4833
      if test "x$enable_dependency_tracking" = xyes; then
4834
	continue
4835
      else
4836
	break
4837
      fi
4838
      ;;
4839
    msvisualcpp | msvcmsys)
4840
      # This compiler won't grok `-c -o', but also, the minuso test has
4841
      # not run yet.  These depmodes are late enough in the game, and
4842
      # so weak that their functioning should not be impacted.
4843
      am__obj=conftest.${OBJEXT-o}
4844
      am__minus_obj=
4845
      ;;
4846
    none) break ;;
4847
    esac
4848
    if depmode=$depmode \
4849
       source=sub/conftest.c object=$am__obj \
4850
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4851
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4852
         >/dev/null 2>conftest.err &&
4853
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4854
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4855
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4856
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4857
      # icc doesn't choke on unknown options, it will just issue warnings
4858
      # or remarks (even with -Werror).  So we grep stderr for any message
4859
      # that says an option was ignored or not supported.
4860
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4861
      #   icc: Command line warning: ignoring option '-M'; no argument required
4862
      # The diagnosis changed in icc 8.0:
4863
      #   icc: Command line remark: option '-MP' not supported
4864
      if (grep 'ignoring option' conftest.err ||
4865
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4866
        am_cv_CXX_dependencies_compiler_type=$depmode
4867
        break
4868
      fi
4869
    fi
4870
  done
4871
 
4872
  cd ..
4873
  rm -rf conftest.dir
4874
else
4875
  am_cv_CXX_dependencies_compiler_type=none
4876
fi
4877
 
4878
fi
4879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4880
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4881
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4882
 
4883
 if
4884
  test "x$enable_dependency_tracking" != xno \
4885
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4886
  am__fastdepCXX_TRUE=
4887
  am__fastdepCXX_FALSE='#'
4888
else
4889
  am__fastdepCXX_TRUE='#'
4890
  am__fastdepCXX_FALSE=
4891
fi
4892
 
4893
 
4894
 
4895
case `pwd` in
4896
  *\ * | *\	*)
4897
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4898
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4899
esac
4900
 
4901
 
4902
 
4903
macro_version='2.2.6'
4904
macro_revision='1.3012'
4905
 
4906
 
4907
 
4908
 
4909
 
4910
 
4911
 
4912
 
4913
 
4914
 
4915
 
4916
 
4917
 
4918
ltmain="$ac_aux_dir/ltmain.sh"
4919
 
4920
# Make sure we can run config.sub.
4921
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4922
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4923
 
4924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4925
$as_echo_n "checking build system type... " >&6; }
4926
if test "${ac_cv_build+set}" = set; then :
4927
  $as_echo_n "(cached) " >&6
4928
else
4929
  ac_build_alias=$build_alias
4930
test "x$ac_build_alias" = x &&
4931
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4932
test "x$ac_build_alias" = x &&
4933
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4934
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4935
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4936
 
4937
fi
4938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4939
$as_echo "$ac_cv_build" >&6; }
4940
case $ac_cv_build in
4941
*-*-*) ;;
4942
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4943
esac
4944
build=$ac_cv_build
4945
ac_save_IFS=$IFS; IFS='-'
4946
set x $ac_cv_build
4947
shift
4948
build_cpu=$1
4949
build_vendor=$2
4950
shift; shift
4951
# Remember, the first character of IFS is used to create $*,
4952
# except with old shells:
4953
build_os=$*
4954
IFS=$ac_save_IFS
4955
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4956
 
4957
 
4958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4959
$as_echo_n "checking host system type... " >&6; }
4960
if test "${ac_cv_host+set}" = set; then :
4961
  $as_echo_n "(cached) " >&6
4962
else
4963
  if test "x$host_alias" = x; then
4964
  ac_cv_host=$ac_cv_build
4965
else
4966
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4967
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4968
fi
4969
 
4970
fi
4971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4972
$as_echo "$ac_cv_host" >&6; }
4973
case $ac_cv_host in
4974
*-*-*) ;;
4975
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4976
esac
4977
host=$ac_cv_host
4978
ac_save_IFS=$IFS; IFS='-'
4979
set x $ac_cv_host
4980
shift
4981
host_cpu=$1
4982
host_vendor=$2
4983
shift; shift
4984
# Remember, the first character of IFS is used to create $*,
4985
# except with old shells:
4986
host_os=$*
4987
IFS=$ac_save_IFS
4988
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4989
 
4990
 
4991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4992
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4993
if test "${ac_cv_path_SED+set}" = set; then :
4994
  $as_echo_n "(cached) " >&6
4995
else
4996
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4997
     for ac_i in 1 2 3 4 5 6 7; do
4998
       ac_script="$ac_script$as_nl$ac_script"
4999
     done
5000
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5001
     { ac_script=; unset ac_script;}
5002
     if test -z "$SED"; then
5003
  ac_path_SED_found=false
5004
  # Loop through the user's path and test for each of PROGNAME-LIST
5005
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006
for as_dir in $PATH
5007
do
5008
  IFS=$as_save_IFS
5009
  test -z "$as_dir" && as_dir=.
5010
    for ac_prog in sed gsed; do
5011
    for ac_exec_ext in '' $ac_executable_extensions; do
5012
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5013
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5014
# Check for GNU ac_path_SED and select it if it is found.
5015
  # Check for GNU $ac_path_SED
5016
case `"$ac_path_SED" --version 2>&1` in
5017
*GNU*)
5018
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5019
*)
5020
  ac_count=0
5021
  $as_echo_n 0123456789 >"conftest.in"
5022
  while :
5023
  do
5024
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5025
    mv "conftest.tmp" "conftest.in"
5026
    cp "conftest.in" "conftest.nl"
5027
    $as_echo '' >> "conftest.nl"
5028
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5031
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5032
      # Best one so far, save it but keep looking for a better one
5033
      ac_cv_path_SED="$ac_path_SED"
5034
      ac_path_SED_max=$ac_count
5035
    fi
5036
    # 10*(2^10) chars as input seems more than enough
5037
    test $ac_count -gt 10 && break
5038
  done
5039
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5040
esac
5041
 
5042
      $ac_path_SED_found && break 3
5043
    done
5044
  done
5045
  done
5046
IFS=$as_save_IFS
5047
  if test -z "$ac_cv_path_SED"; then
5048
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5049
  fi
5050
else
5051
  ac_cv_path_SED=$SED
5052
fi
5053
 
5054
fi
5055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5056
$as_echo "$ac_cv_path_SED" >&6; }
5057
 SED="$ac_cv_path_SED"
5058
  rm -f conftest.sed
5059
 
5060
test -z "$SED" && SED=sed
5061
Xsed="$SED -e 1s/^X//"
5062
 
5063
 
5064
 
5065
 
5066
 
5067
 
5068
 
5069
 
5070
 
5071
 
5072
 
5073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5074
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5075
if test "${ac_cv_path_GREP+set}" = set; then :
5076
  $as_echo_n "(cached) " >&6
5077
else
5078
  if test -z "$GREP"; then
5079
  ac_path_GREP_found=false
5080
  # Loop through the user's path and test for each of PROGNAME-LIST
5081
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5083
do
5084
  IFS=$as_save_IFS
5085
  test -z "$as_dir" && as_dir=.
5086
    for ac_prog in grep ggrep; do
5087
    for ac_exec_ext in '' $ac_executable_extensions; do
5088
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5089
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5090
# Check for GNU ac_path_GREP and select it if it is found.
5091
  # Check for GNU $ac_path_GREP
5092
case `"$ac_path_GREP" --version 2>&1` in
5093
*GNU*)
5094
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5095
*)
5096
  ac_count=0
5097
  $as_echo_n 0123456789 >"conftest.in"
5098
  while :
5099
  do
5100
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5101
    mv "conftest.tmp" "conftest.in"
5102
    cp "conftest.in" "conftest.nl"
5103
    $as_echo 'GREP' >> "conftest.nl"
5104
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5105
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5106
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5107
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5108
      # Best one so far, save it but keep looking for a better one
5109
      ac_cv_path_GREP="$ac_path_GREP"
5110
      ac_path_GREP_max=$ac_count
5111
    fi
5112
    # 10*(2^10) chars as input seems more than enough
5113
    test $ac_count -gt 10 && break
5114
  done
5115
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5116
esac
5117
 
5118
      $ac_path_GREP_found && break 3
5119
    done
5120
  done
5121
  done
5122
IFS=$as_save_IFS
5123
  if test -z "$ac_cv_path_GREP"; then
5124
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5125
  fi
5126
else
5127
  ac_cv_path_GREP=$GREP
5128
fi
5129
 
5130
fi
5131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5132
$as_echo "$ac_cv_path_GREP" >&6; }
5133
 GREP="$ac_cv_path_GREP"
5134
 
5135
 
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5137
$as_echo_n "checking for egrep... " >&6; }
5138
if test "${ac_cv_path_EGREP+set}" = set; then :
5139
  $as_echo_n "(cached) " >&6
5140
else
5141
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5142
   then ac_cv_path_EGREP="$GREP -E"
5143
   else
5144
     if test -z "$EGREP"; then
5145
  ac_path_EGREP_found=false
5146
  # Loop through the user's path and test for each of PROGNAME-LIST
5147
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5149
do
5150
  IFS=$as_save_IFS
5151
  test -z "$as_dir" && as_dir=.
5152
    for ac_prog in egrep; do
5153
    for ac_exec_ext in '' $ac_executable_extensions; do
5154
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5155
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5156
# Check for GNU ac_path_EGREP and select it if it is found.
5157
  # Check for GNU $ac_path_EGREP
5158
case `"$ac_path_EGREP" --version 2>&1` in
5159
*GNU*)
5160
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5161
*)
5162
  ac_count=0
5163
  $as_echo_n 0123456789 >"conftest.in"
5164
  while :
5165
  do
5166
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5167
    mv "conftest.tmp" "conftest.in"
5168
    cp "conftest.in" "conftest.nl"
5169
    $as_echo 'EGREP' >> "conftest.nl"
5170
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5171
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5172
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5173
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5174
      # Best one so far, save it but keep looking for a better one
5175
      ac_cv_path_EGREP="$ac_path_EGREP"
5176
      ac_path_EGREP_max=$ac_count
5177
    fi
5178
    # 10*(2^10) chars as input seems more than enough
5179
    test $ac_count -gt 10 && break
5180
  done
5181
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5182
esac
5183
 
5184
      $ac_path_EGREP_found && break 3
5185
    done
5186
  done
5187
  done
5188
IFS=$as_save_IFS
5189
  if test -z "$ac_cv_path_EGREP"; then
5190
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5191
  fi
5192
else
5193
  ac_cv_path_EGREP=$EGREP
5194
fi
5195
 
5196
   fi
5197
fi
5198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5199
$as_echo "$ac_cv_path_EGREP" >&6; }
5200
 EGREP="$ac_cv_path_EGREP"
5201
 
5202
 
5203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5204
$as_echo_n "checking for fgrep... " >&6; }
5205
if test "${ac_cv_path_FGREP+set}" = set; then :
5206
  $as_echo_n "(cached) " >&6
5207
else
5208
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5209
   then ac_cv_path_FGREP="$GREP -F"
5210
   else
5211
     if test -z "$FGREP"; then
5212
  ac_path_FGREP_found=false
5213
  # Loop through the user's path and test for each of PROGNAME-LIST
5214
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216
do
5217
  IFS=$as_save_IFS
5218
  test -z "$as_dir" && as_dir=.
5219
    for ac_prog in fgrep; do
5220
    for ac_exec_ext in '' $ac_executable_extensions; do
5221
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5222
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5223
# Check for GNU ac_path_FGREP and select it if it is found.
5224
  # Check for GNU $ac_path_FGREP
5225
case `"$ac_path_FGREP" --version 2>&1` in
5226
*GNU*)
5227
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5228
*)
5229
  ac_count=0
5230
  $as_echo_n 0123456789 >"conftest.in"
5231
  while :
5232
  do
5233
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5234
    mv "conftest.tmp" "conftest.in"
5235
    cp "conftest.in" "conftest.nl"
5236
    $as_echo 'FGREP' >> "conftest.nl"
5237
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5240
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5241
      # Best one so far, save it but keep looking for a better one
5242
      ac_cv_path_FGREP="$ac_path_FGREP"
5243
      ac_path_FGREP_max=$ac_count
5244
    fi
5245
    # 10*(2^10) chars as input seems more than enough
5246
    test $ac_count -gt 10 && break
5247
  done
5248
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249
esac
5250
 
5251
      $ac_path_FGREP_found && break 3
5252
    done
5253
  done
5254
  done
5255
IFS=$as_save_IFS
5256
  if test -z "$ac_cv_path_FGREP"; then
5257
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5258
  fi
5259
else
5260
  ac_cv_path_FGREP=$FGREP
5261
fi
5262
 
5263
   fi
5264
fi
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5266
$as_echo "$ac_cv_path_FGREP" >&6; }
5267
 FGREP="$ac_cv_path_FGREP"
5268
 
5269
 
5270
test -z "$GREP" && GREP=grep
5271
 
5272
 
5273
 
5274
 
5275
 
5276
 
5277
 
5278
 
5279
 
5280
 
5281
 
5282
 
5283
 
5284
 
5285
 
5286
 
5287
 
5288
 
5289
 
5290
# Check whether --with-gnu-ld was given.
5291
if test "${with_gnu_ld+set}" = set; then :
5292
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5293
else
5294
  with_gnu_ld=no
5295
fi
5296
 
5297
ac_prog=ld
5298
if test "$GCC" = yes; then
5299
  # Check if gcc -print-prog-name=ld gives a path.
5300
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5301
$as_echo_n "checking for ld used by $CC... " >&6; }
5302
  case $host in
5303
  *-*-mingw*)
5304
    # gcc leaves a trailing carriage return which upsets mingw
5305
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5306
  *)
5307
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5308
  esac
5309
  case $ac_prog in
5310
    # Accept absolute paths.
5311
    [\\/]* | ?:[\\/]*)
5312
      re_direlt='/[^/][^/]*/\.\./'
5313
      # Canonicalize the pathname of ld
5314
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5315
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5316
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5317
      done
5318
      test -z "$LD" && LD="$ac_prog"
5319
      ;;
5320
  "")
5321
    # If it fails, then pretend we aren't using GCC.
5322
    ac_prog=ld
5323
    ;;
5324
  *)
5325
    # If it is relative, then search for the first ld in PATH.
5326
    with_gnu_ld=unknown
5327
    ;;
5328
  esac
5329
elif test "$with_gnu_ld" = yes; then
5330
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5331
$as_echo_n "checking for GNU ld... " >&6; }
5332
else
5333
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5334
$as_echo_n "checking for non-GNU ld... " >&6; }
5335
fi
5336
if test "${lt_cv_path_LD+set}" = set; then :
5337
  $as_echo_n "(cached) " >&6
5338
else
5339
  if test -z "$LD"; then
5340
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341
  for ac_dir in $PATH; do
5342
    IFS="$lt_save_ifs"
5343
    test -z "$ac_dir" && ac_dir=.
5344
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5345
      lt_cv_path_LD="$ac_dir/$ac_prog"
5346
      # Check to see if the program is GNU ld.  I'd rather use --version,
5347
      # but apparently some variants of GNU ld only accept -v.
5348
      # Break only if it was the GNU/non-GNU ld that we prefer.
5349
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5350
      *GNU* | *'with BFD'*)
5351
	test "$with_gnu_ld" != no && break
5352
	;;
5353
      *)
5354
	test "$with_gnu_ld" != yes && break
5355
	;;
5356
      esac
5357
    fi
5358
  done
5359
  IFS="$lt_save_ifs"
5360
else
5361
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5362
fi
5363
fi
5364
 
5365
LD="$lt_cv_path_LD"
5366
if test -n "$LD"; then
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5368
$as_echo "$LD" >&6; }
5369
else
5370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371
$as_echo "no" >&6; }
5372
fi
5373
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5375
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5376
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5377
  $as_echo_n "(cached) " >&6
5378
else
5379
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5380
case `$LD -v 2>&1 </dev/null` in
5381
*GNU* | *'with BFD'*)
5382
  lt_cv_prog_gnu_ld=yes
5383
  ;;
5384
*)
5385
  lt_cv_prog_gnu_ld=no
5386
  ;;
5387
esac
5388
fi
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5390
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5391
with_gnu_ld=$lt_cv_prog_gnu_ld
5392
 
5393
 
5394
 
5395
 
5396
 
5397
 
5398
 
5399
 
5400
 
5401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5402
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5403
if test "${lt_cv_path_NM+set}" = set; then :
5404
  $as_echo_n "(cached) " >&6
5405
else
5406
  if test -n "$NM"; then
5407
  # Let the user override the test.
5408
  lt_cv_path_NM="$NM"
5409
else
5410
  lt_nm_to_check="${ac_tool_prefix}nm"
5411
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5412
    lt_nm_to_check="$lt_nm_to_check nm"
5413
  fi
5414
  for lt_tmp_nm in $lt_nm_to_check; do
5415
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5417
      IFS="$lt_save_ifs"
5418
      test -z "$ac_dir" && ac_dir=.
5419
      tmp_nm="$ac_dir/$lt_tmp_nm"
5420
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5421
	# Check to see if the nm accepts a BSD-compat flag.
5422
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5423
	#   nm: unknown option "B" ignored
5424
	# Tru64's nm complains that /dev/null is an invalid object file
5425
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5426
	*/dev/null* | *'Invalid file or object type'*)
5427
	  lt_cv_path_NM="$tmp_nm -B"
5428
	  break
5429
	  ;;
5430
	*)
5431
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5432
	  */dev/null*)
5433
	    lt_cv_path_NM="$tmp_nm -p"
5434
	    break
5435
	    ;;
5436
	  *)
5437
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5438
	    continue # so that we can try to find one that supports BSD flags
5439
	    ;;
5440
	  esac
5441
	  ;;
5442
	esac
5443
      fi
5444
    done
5445
    IFS="$lt_save_ifs"
5446
  done
5447
  : ${lt_cv_path_NM=no}
5448
fi
5449
fi
5450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5451
$as_echo "$lt_cv_path_NM" >&6; }
5452
if test "$lt_cv_path_NM" != "no"; then
5453
  NM="$lt_cv_path_NM"
5454
else
5455
  # Didn't find any BSD compatible name lister, look for dumpbin.
5456
  if test -n "$ac_tool_prefix"; then
5457
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5458
  do
5459
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5460
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462
$as_echo_n "checking for $ac_word... " >&6; }
5463
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5464
  $as_echo_n "(cached) " >&6
5465
else
5466
  if test -n "$DUMPBIN"; then
5467
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5468
else
5469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470
for as_dir in $PATH
5471
do
5472
  IFS=$as_save_IFS
5473
  test -z "$as_dir" && as_dir=.
5474
    for ac_exec_ext in '' $ac_executable_extensions; do
5475
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5477
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478
    break 2
5479
  fi
5480
done
5481
  done
5482
IFS=$as_save_IFS
5483
 
5484
fi
5485
fi
5486
DUMPBIN=$ac_cv_prog_DUMPBIN
5487
if test -n "$DUMPBIN"; then
5488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5489
$as_echo "$DUMPBIN" >&6; }
5490
else
5491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492
$as_echo "no" >&6; }
5493
fi
5494
 
5495
 
5496
    test -n "$DUMPBIN" && break
5497
  done
5498
fi
5499
if test -z "$DUMPBIN"; then
5500
  ac_ct_DUMPBIN=$DUMPBIN
5501
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5502
do
5503
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5504
set dummy $ac_prog; ac_word=$2
5505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506
$as_echo_n "checking for $ac_word... " >&6; }
5507
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5508
  $as_echo_n "(cached) " >&6
5509
else
5510
  if test -n "$ac_ct_DUMPBIN"; then
5511
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5512
else
5513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514
for as_dir in $PATH
5515
do
5516
  IFS=$as_save_IFS
5517
  test -z "$as_dir" && as_dir=.
5518
    for ac_exec_ext in '' $ac_executable_extensions; do
5519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5521
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522
    break 2
5523
  fi
5524
done
5525
  done
5526
IFS=$as_save_IFS
5527
 
5528
fi
5529
fi
5530
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5531
if test -n "$ac_ct_DUMPBIN"; then
5532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5533
$as_echo "$ac_ct_DUMPBIN" >&6; }
5534
else
5535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536
$as_echo "no" >&6; }
5537
fi
5538
 
5539
 
5540
  test -n "$ac_ct_DUMPBIN" && break
5541
done
5542
 
5543
  if test "x$ac_ct_DUMPBIN" = x; then
5544
    DUMPBIN=":"
5545
  else
5546
    case $cross_compiling:$ac_tool_warned in
5547
yes:)
5548
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550
ac_tool_warned=yes ;;
5551
esac
5552
    DUMPBIN=$ac_ct_DUMPBIN
5553
  fi
5554
fi
5555
 
5556
 
5557
  if test "$DUMPBIN" != ":"; then
5558
    NM="$DUMPBIN"
5559
  fi
5560
fi
5561
test -z "$NM" && NM=nm
5562
 
5563
 
5564
 
5565
 
5566
 
5567
 
5568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5569
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5570
if test "${lt_cv_nm_interface+set}" = set; then :
5571
  $as_echo_n "(cached) " >&6
5572
else
5573
  lt_cv_nm_interface="BSD nm"
5574
  echo "int some_variable = 0;" > conftest.$ac_ext
5575
  (eval echo "\"\$as_me:5575: $ac_compile\"" >&5)
5576
  (eval "$ac_compile" 2>conftest.err)
5577
  cat conftest.err >&5
5578
  (eval echo "\"\$as_me:5578: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5579
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5580
  cat conftest.err >&5
5581
  (eval echo "\"\$as_me:5581: output\"" >&5)
5582
  cat conftest.out >&5
5583
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5584
    lt_cv_nm_interface="MS dumpbin"
5585
  fi
5586
  rm -f conftest*
5587
fi
5588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5589
$as_echo "$lt_cv_nm_interface" >&6; }
5590
 
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5592
$as_echo_n "checking whether ln -s works... " >&6; }
5593
LN_S=$as_ln_s
5594
if test "$LN_S" = "ln -s"; then
5595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596
$as_echo "yes" >&6; }
5597
else
5598
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5599
$as_echo "no, using $LN_S" >&6; }
5600
fi
5601
 
5602
# find the maximum length of command line arguments
5603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5604
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5605
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5606
  $as_echo_n "(cached) " >&6
5607
else
5608
    i=0
5609
  teststring="ABCD"
5610
 
5611
  case $build_os in
5612
  msdosdjgpp*)
5613
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5614
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5615
    # during glob expansion).  Even if it were fixed, the result of this
5616
    # check would be larger than it should be.
5617
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5618
    ;;
5619
 
5620
  gnu*)
5621
    # Under GNU Hurd, this test is not required because there is
5622
    # no limit to the length of command line arguments.
5623
    # Libtool will interpret -1 as no limit whatsoever
5624
    lt_cv_sys_max_cmd_len=-1;
5625
    ;;
5626
 
5627
  cygwin* | mingw* | cegcc*)
5628
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5629
    # about 5 minutes as the teststring grows exponentially.
5630
    # Worse, since 9x/ME are not pre-emptively multitasking,
5631
    # you end up with a "frozen" computer, even though with patience
5632
    # the test eventually succeeds (with a max line length of 256k).
5633
    # Instead, let's just punt: use the minimum linelength reported by
5634
    # all of the supported platforms: 8192 (on NT/2K/XP).
5635
    lt_cv_sys_max_cmd_len=8192;
5636
    ;;
5637
 
5638
  amigaos*)
5639
    # On AmigaOS with pdksh, this test takes hours, literally.
5640
    # So we just punt and use a minimum line length of 8192.
5641
    lt_cv_sys_max_cmd_len=8192;
5642
    ;;
5643
 
5644
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5645
    # This has been around since 386BSD, at least.  Likely further.
5646
    if test -x /sbin/sysctl; then
5647
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5648
    elif test -x /usr/sbin/sysctl; then
5649
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5650
    else
5651
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5652
    fi
5653
    # And add a safety zone
5654
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5655
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5656
    ;;
5657
 
5658
  interix*)
5659
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5660
    lt_cv_sys_max_cmd_len=196608
5661
    ;;
5662
 
5663
  osf*)
5664
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5665
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5666
    # nice to cause kernel panics so lets avoid the loop below.
5667
    # First set a reasonable default.
5668
    lt_cv_sys_max_cmd_len=16384
5669
    #
5670
    if test -x /sbin/sysconfig; then
5671
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5672
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5673
      esac
5674
    fi
5675
    ;;
5676
  sco3.2v5*)
5677
    lt_cv_sys_max_cmd_len=102400
5678
    ;;
5679
  sysv5* | sco5v6* | sysv4.2uw2*)
5680
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5681
    if test -n "$kargmax"; then
5682
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5683
    else
5684
      lt_cv_sys_max_cmd_len=32768
5685
    fi
5686
    ;;
5687
  *)
5688
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5689
    if test -n "$lt_cv_sys_max_cmd_len"; then
5690
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5691
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5692
    else
5693
      # Make teststring a little bigger before we do anything with it.
5694
      # a 1K string should be a reasonable start.
5695
      for i in 1 2 3 4 5 6 7 8 ; do
5696
        teststring=$teststring$teststring
5697
      done
5698
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5699
      # If test is not a shell built-in, we'll probably end up computing a
5700
      # maximum length that is only half of the actual maximum length, but
5701
      # we can't tell.
5702
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5703
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5704
	      test $i != 17 # 1/2 MB should be enough
5705
      do
5706
        i=`expr $i + 1`
5707
        teststring=$teststring$teststring
5708
      done
5709
      # Only check the string length outside the loop.
5710
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5711
      teststring=
5712
      # Add a significant safety factor because C++ compilers can tack on
5713
      # massive amounts of additional arguments before passing them to the
5714
      # linker.  It appears as though 1/2 is a usable value.
5715
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5716
    fi
5717
    ;;
5718
  esac
5719
 
5720
fi
5721
 
5722
if test -n $lt_cv_sys_max_cmd_len ; then
5723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5724
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5725
else
5726
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5727
$as_echo "none" >&6; }
5728
fi
5729
max_cmd_len=$lt_cv_sys_max_cmd_len
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
: ${CP="cp -f"}
5737
: ${MV="mv -f"}
5738
: ${RM="rm -f"}
5739
 
5740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5741
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5742
# Try some XSI features
5743
xsi_shell=no
5744
( _lt_dummy="a/b/c"
5745
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5746
      = c,a/b,, \
5747
    && eval 'test $(( 1 + 1 )) -eq 2 \
5748
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5749
  && xsi_shell=yes
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5751
$as_echo "$xsi_shell" >&6; }
5752
 
5753
 
5754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5755
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5756
lt_shell_append=no
5757
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5758
    >/dev/null 2>&1 \
5759
  && lt_shell_append=yes
5760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5761
$as_echo "$lt_shell_append" >&6; }
5762
 
5763
 
5764
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5765
  lt_unset=unset
5766
else
5767
  lt_unset=false
5768
fi
5769
 
5770
 
5771
 
5772
 
5773
 
5774
# test EBCDIC or ASCII
5775
case `echo X|tr X '\101'` in
5776
 A) # ASCII based system
5777
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5778
  lt_SP2NL='tr \040 \012'
5779
  lt_NL2SP='tr \015\012 \040\040'
5780
  ;;
5781
 *) # EBCDIC based system
5782
  lt_SP2NL='tr \100 \n'
5783
  lt_NL2SP='tr \r\n \100\100'
5784
  ;;
5785
esac
5786
 
5787
 
5788
 
5789
 
5790
 
5791
 
5792
 
5793
 
5794
 
5795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5796
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5797
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5798
  $as_echo_n "(cached) " >&6
5799
else
5800
  lt_cv_ld_reload_flag='-r'
5801
fi
5802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5803
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5804
reload_flag=$lt_cv_ld_reload_flag
5805
case $reload_flag in
5806
"" | " "*) ;;
5807
*) reload_flag=" $reload_flag" ;;
5808
esac
5809
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5810
case $host_os in
5811
  darwin*)
5812
    if test "$GCC" = yes; then
5813
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5814
    else
5815
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5816
    fi
5817
    ;;
5818
esac
5819
 
5820
 
5821
 
5822
 
5823
 
5824
 
5825
 
5826
 
5827
 
5828
if test -n "$ac_tool_prefix"; then
5829
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5830
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832
$as_echo_n "checking for $ac_word... " >&6; }
5833
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5834
  $as_echo_n "(cached) " >&6
5835
else
5836
  if test -n "$OBJDUMP"; then
5837
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5838
else
5839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840
for as_dir in $PATH
5841
do
5842
  IFS=$as_save_IFS
5843
  test -z "$as_dir" && as_dir=.
5844
    for ac_exec_ext in '' $ac_executable_extensions; do
5845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5847
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848
    break 2
5849
  fi
5850
done
5851
  done
5852
IFS=$as_save_IFS
5853
 
5854
fi
5855
fi
5856
OBJDUMP=$ac_cv_prog_OBJDUMP
5857
if test -n "$OBJDUMP"; then
5858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5859
$as_echo "$OBJDUMP" >&6; }
5860
else
5861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862
$as_echo "no" >&6; }
5863
fi
5864
 
5865
 
5866
fi
5867
if test -z "$ac_cv_prog_OBJDUMP"; then
5868
  ac_ct_OBJDUMP=$OBJDUMP
5869
  # Extract the first word of "objdump", so it can be a program name with args.
5870
set dummy objdump; ac_word=$2
5871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872
$as_echo_n "checking for $ac_word... " >&6; }
5873
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5874
  $as_echo_n "(cached) " >&6
5875
else
5876
  if test -n "$ac_ct_OBJDUMP"; then
5877
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5878
else
5879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880
for as_dir in $PATH
5881
do
5882
  IFS=$as_save_IFS
5883
  test -z "$as_dir" && as_dir=.
5884
    for ac_exec_ext in '' $ac_executable_extensions; do
5885
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5887
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888
    break 2
5889
  fi
5890
done
5891
  done
5892
IFS=$as_save_IFS
5893
 
5894
fi
5895
fi
5896
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5897
if test -n "$ac_ct_OBJDUMP"; then
5898
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5899
$as_echo "$ac_ct_OBJDUMP" >&6; }
5900
else
5901
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902
$as_echo "no" >&6; }
5903
fi
5904
 
5905
  if test "x$ac_ct_OBJDUMP" = x; then
5906
    OBJDUMP="false"
5907
  else
5908
    case $cross_compiling:$ac_tool_warned in
5909
yes:)
5910
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912
ac_tool_warned=yes ;;
5913
esac
5914
    OBJDUMP=$ac_ct_OBJDUMP
5915
  fi
5916
else
5917
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5918
fi
5919
 
5920
test -z "$OBJDUMP" && OBJDUMP=objdump
5921
 
5922
 
5923
 
5924
 
5925
 
5926
 
5927
 
5928
 
5929
 
5930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5931
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5932
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5933
  $as_echo_n "(cached) " >&6
5934
else
5935
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5936
lt_cv_file_magic_test_file=
5937
lt_cv_deplibs_check_method='unknown'
5938
# Need to set the preceding variable on all platforms that support
5939
# interlibrary dependencies.
5940
# 'none' -- dependencies not supported.
5941
# `unknown' -- same as none, but documents that we really don't know.
5942
# 'pass_all' -- all dependencies passed with no checks.
5943
# 'test_compile' -- check by making test program.
5944
# 'file_magic [[regex]]' -- check by looking for files in library path
5945
# which responds to the $file_magic_cmd with a given extended regex.
5946
# If you have `file' or equivalent on your system and you're not sure
5947
# whether `pass_all' will *always* work, you probably want this one.
5948
 
5949
case $host_os in
5950
aix[4-9]*)
5951
  lt_cv_deplibs_check_method=pass_all
5952
  ;;
5953
 
5954
beos*)
5955
  lt_cv_deplibs_check_method=pass_all
5956
  ;;
5957
 
5958
bsdi[45]*)
5959
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5960
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5961
  lt_cv_file_magic_test_file=/shlib/libc.so
5962
  ;;
5963
 
5964
cygwin*)
5965
  # func_win32_libid is a shell function defined in ltmain.sh
5966
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5967
  lt_cv_file_magic_cmd='func_win32_libid'
5968
  ;;
5969
 
5970
mingw* | pw32*)
5971
  # Base MSYS/MinGW do not provide the 'file' command needed by
5972
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5973
  # unless we find 'file', for example because we are cross-compiling.
5974
  if ( file / ) >/dev/null 2>&1; then
5975
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5976
    lt_cv_file_magic_cmd='func_win32_libid'
5977
  else
5978
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5979
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5980
  fi
5981
  ;;
5982
 
5983
cegcc)
5984
  # use the weaker test based on 'objdump'. See mingw*.
5985
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5986
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5987
  ;;
5988
 
5989
darwin* | rhapsody*)
5990
  lt_cv_deplibs_check_method=pass_all
5991
  ;;
5992
 
5993
freebsd* | dragonfly*)
5994
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5995
    case $host_cpu in
5996
    i*86 )
5997
      # Not sure whether the presence of OpenBSD here was a mistake.
5998
      # Let's accept both of them until this is cleared up.
5999
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6000
      lt_cv_file_magic_cmd=/usr/bin/file
6001
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6002
      ;;
6003
    esac
6004
  else
6005
    lt_cv_deplibs_check_method=pass_all
6006
  fi
6007
  ;;
6008
 
6009
gnu*)
6010
  lt_cv_deplibs_check_method=pass_all
6011
  ;;
6012
 
6013
hpux10.20* | hpux11*)
6014
  lt_cv_file_magic_cmd=/usr/bin/file
6015
  case $host_cpu in
6016
  ia64*)
6017
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6018
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6019
    ;;
6020
  hppa*64*)
6021
    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]'
6022
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6023
    ;;
6024
  *)
6025
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6026
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6027
    ;;
6028
  esac
6029
  ;;
6030
 
6031
interix[3-9]*)
6032
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6033
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6034
  ;;
6035
 
6036
irix5* | irix6* | nonstopux*)
6037
  case $LD in
6038
  *-32|*"-32 ") libmagic=32-bit;;
6039
  *-n32|*"-n32 ") libmagic=N32;;
6040
  *-64|*"-64 ") libmagic=64-bit;;
6041
  *) libmagic=never-match;;
6042
  esac
6043
  lt_cv_deplibs_check_method=pass_all
6044
  ;;
6045
 
6046
# This must be Linux ELF.
6047
linux* | k*bsd*-gnu)
6048
  lt_cv_deplibs_check_method=pass_all
6049
  ;;
6050
 
6051
netbsd* | netbsdelf*-gnu)
6052
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6053
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6054
  else
6055
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6056
  fi
6057
  ;;
6058
 
6059
newos6*)
6060
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6061
  lt_cv_file_magic_cmd=/usr/bin/file
6062
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6063
  ;;
6064
 
6065
*nto* | *qnx*)
6066
  lt_cv_deplibs_check_method=pass_all
6067
  ;;
6068
 
6069
openbsd*)
6070
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6071
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6072
  else
6073
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6074
  fi
6075
  ;;
6076
 
6077
osf3* | osf4* | osf5*)
6078
  lt_cv_deplibs_check_method=pass_all
6079
  ;;
6080
 
6081
rdos*)
6082
  lt_cv_deplibs_check_method=pass_all
6083
  ;;
6084
 
6085
solaris*)
6086
  lt_cv_deplibs_check_method=pass_all
6087
  ;;
6088
 
6089
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6090
  lt_cv_deplibs_check_method=pass_all
6091
  ;;
6092
 
6093
sysv4 | sysv4.3*)
6094
  case $host_vendor in
6095
  motorola)
6096
    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]'
6097
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6098
    ;;
6099
  ncr)
6100
    lt_cv_deplibs_check_method=pass_all
6101
    ;;
6102
  sequent)
6103
    lt_cv_file_magic_cmd='/bin/file'
6104
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6105
    ;;
6106
  sni)
6107
    lt_cv_file_magic_cmd='/bin/file'
6108
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6109
    lt_cv_file_magic_test_file=/lib/libc.so
6110
    ;;
6111
  siemens)
6112
    lt_cv_deplibs_check_method=pass_all
6113
    ;;
6114
  pc)
6115
    lt_cv_deplibs_check_method=pass_all
6116
    ;;
6117
  esac
6118
  ;;
6119
 
6120
tpf*)
6121
  lt_cv_deplibs_check_method=pass_all
6122
  ;;
6123
esac
6124
 
6125
fi
6126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6127
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6128
file_magic_cmd=$lt_cv_file_magic_cmd
6129
deplibs_check_method=$lt_cv_deplibs_check_method
6130
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6131
 
6132
 
6133
 
6134
 
6135
 
6136
 
6137
 
6138
 
6139
 
6140
 
6141
 
6142
 
6143
if test -n "$ac_tool_prefix"; then
6144
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6145
set dummy ${ac_tool_prefix}ar; ac_word=$2
6146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147
$as_echo_n "checking for $ac_word... " >&6; }
6148
if test "${ac_cv_prog_AR+set}" = set; then :
6149
  $as_echo_n "(cached) " >&6
6150
else
6151
  if test -n "$AR"; then
6152
  ac_cv_prog_AR="$AR" # Let the user override the test.
6153
else
6154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155
for as_dir in $PATH
6156
do
6157
  IFS=$as_save_IFS
6158
  test -z "$as_dir" && as_dir=.
6159
    for ac_exec_ext in '' $ac_executable_extensions; do
6160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163
    break 2
6164
  fi
6165
done
6166
  done
6167
IFS=$as_save_IFS
6168
 
6169
fi
6170
fi
6171
AR=$ac_cv_prog_AR
6172
if test -n "$AR"; then
6173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6174
$as_echo "$AR" >&6; }
6175
else
6176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177
$as_echo "no" >&6; }
6178
fi
6179
 
6180
 
6181
fi
6182
if test -z "$ac_cv_prog_AR"; then
6183
  ac_ct_AR=$AR
6184
  # Extract the first word of "ar", so it can be a program name with args.
6185
set dummy ar; ac_word=$2
6186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187
$as_echo_n "checking for $ac_word... " >&6; }
6188
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6189
  $as_echo_n "(cached) " >&6
6190
else
6191
  if test -n "$ac_ct_AR"; then
6192
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6193
else
6194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195
for as_dir in $PATH
6196
do
6197
  IFS=$as_save_IFS
6198
  test -z "$as_dir" && as_dir=.
6199
    for ac_exec_ext in '' $ac_executable_extensions; do
6200
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201
    ac_cv_prog_ac_ct_AR="ar"
6202
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203
    break 2
6204
  fi
6205
done
6206
  done
6207
IFS=$as_save_IFS
6208
 
6209
fi
6210
fi
6211
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6212
if test -n "$ac_ct_AR"; then
6213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6214
$as_echo "$ac_ct_AR" >&6; }
6215
else
6216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217
$as_echo "no" >&6; }
6218
fi
6219
 
6220
  if test "x$ac_ct_AR" = x; then
6221
    AR="false"
6222
  else
6223
    case $cross_compiling:$ac_tool_warned in
6224
yes:)
6225
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227
ac_tool_warned=yes ;;
6228
esac
6229
    AR=$ac_ct_AR
6230
  fi
6231
else
6232
  AR="$ac_cv_prog_AR"
6233
fi
6234
 
6235
test -z "$AR" && AR=ar
6236
test -z "$AR_FLAGS" && AR_FLAGS=cru
6237
 
6238
 
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
if test -n "$ac_tool_prefix"; then
6249
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6250
set dummy ${ac_tool_prefix}strip; ac_word=$2
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252
$as_echo_n "checking for $ac_word... " >&6; }
6253
if test "${ac_cv_prog_STRIP+set}" = set; then :
6254
  $as_echo_n "(cached) " >&6
6255
else
6256
  if test -n "$STRIP"; then
6257
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6258
else
6259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260
for as_dir in $PATH
6261
do
6262
  IFS=$as_save_IFS
6263
  test -z "$as_dir" && as_dir=.
6264
    for ac_exec_ext in '' $ac_executable_extensions; do
6265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268
    break 2
6269
  fi
6270
done
6271
  done
6272
IFS=$as_save_IFS
6273
 
6274
fi
6275
fi
6276
STRIP=$ac_cv_prog_STRIP
6277
if test -n "$STRIP"; then
6278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6279
$as_echo "$STRIP" >&6; }
6280
else
6281
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282
$as_echo "no" >&6; }
6283
fi
6284
 
6285
 
6286
fi
6287
if test -z "$ac_cv_prog_STRIP"; then
6288
  ac_ct_STRIP=$STRIP
6289
  # Extract the first word of "strip", so it can be a program name with args.
6290
set dummy strip; ac_word=$2
6291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292
$as_echo_n "checking for $ac_word... " >&6; }
6293
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6294
  $as_echo_n "(cached) " >&6
6295
else
6296
  if test -n "$ac_ct_STRIP"; then
6297
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6298
else
6299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300
for as_dir in $PATH
6301
do
6302
  IFS=$as_save_IFS
6303
  test -z "$as_dir" && as_dir=.
6304
    for ac_exec_ext in '' $ac_executable_extensions; do
6305
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306
    ac_cv_prog_ac_ct_STRIP="strip"
6307
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308
    break 2
6309
  fi
6310
done
6311
  done
6312
IFS=$as_save_IFS
6313
 
6314
fi
6315
fi
6316
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6317
if test -n "$ac_ct_STRIP"; then
6318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6319
$as_echo "$ac_ct_STRIP" >&6; }
6320
else
6321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322
$as_echo "no" >&6; }
6323
fi
6324
 
6325
  if test "x$ac_ct_STRIP" = x; then
6326
    STRIP=":"
6327
  else
6328
    case $cross_compiling:$ac_tool_warned in
6329
yes:)
6330
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332
ac_tool_warned=yes ;;
6333
esac
6334
    STRIP=$ac_ct_STRIP
6335
  fi
6336
else
6337
  STRIP="$ac_cv_prog_STRIP"
6338
fi
6339
 
6340
test -z "$STRIP" && STRIP=:
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
if test -n "$ac_tool_prefix"; then
6348
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6349
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351
$as_echo_n "checking for $ac_word... " >&6; }
6352
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6353
  $as_echo_n "(cached) " >&6
6354
else
6355
  if test -n "$RANLIB"; then
6356
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6357
else
6358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359
for as_dir in $PATH
6360
do
6361
  IFS=$as_save_IFS
6362
  test -z "$as_dir" && as_dir=.
6363
    for ac_exec_ext in '' $ac_executable_extensions; do
6364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6366
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367
    break 2
6368
  fi
6369
done
6370
  done
6371
IFS=$as_save_IFS
6372
 
6373
fi
6374
fi
6375
RANLIB=$ac_cv_prog_RANLIB
6376
if test -n "$RANLIB"; then
6377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6378
$as_echo "$RANLIB" >&6; }
6379
else
6380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381
$as_echo "no" >&6; }
6382
fi
6383
 
6384
 
6385
fi
6386
if test -z "$ac_cv_prog_RANLIB"; then
6387
  ac_ct_RANLIB=$RANLIB
6388
  # Extract the first word of "ranlib", so it can be a program name with args.
6389
set dummy ranlib; ac_word=$2
6390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391
$as_echo_n "checking for $ac_word... " >&6; }
6392
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6393
  $as_echo_n "(cached) " >&6
6394
else
6395
  if test -n "$ac_ct_RANLIB"; then
6396
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6397
else
6398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399
for as_dir in $PATH
6400
do
6401
  IFS=$as_save_IFS
6402
  test -z "$as_dir" && as_dir=.
6403
    for ac_exec_ext in '' $ac_executable_extensions; do
6404
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6406
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407
    break 2
6408
  fi
6409
done
6410
  done
6411
IFS=$as_save_IFS
6412
 
6413
fi
6414
fi
6415
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6416
if test -n "$ac_ct_RANLIB"; then
6417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6418
$as_echo "$ac_ct_RANLIB" >&6; }
6419
else
6420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421
$as_echo "no" >&6; }
6422
fi
6423
 
6424
  if test "x$ac_ct_RANLIB" = x; then
6425
    RANLIB=":"
6426
  else
6427
    case $cross_compiling:$ac_tool_warned in
6428
yes:)
6429
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431
ac_tool_warned=yes ;;
6432
esac
6433
    RANLIB=$ac_ct_RANLIB
6434
  fi
6435
else
6436
  RANLIB="$ac_cv_prog_RANLIB"
6437
fi
6438
 
6439
test -z "$RANLIB" && RANLIB=:
6440
 
6441
 
6442
 
6443
 
6444
 
6445
 
6446
# Determine commands to create old-style static archives.
6447
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6448
old_postinstall_cmds='chmod 644 $oldlib'
6449
old_postuninstall_cmds=
6450
 
6451
if test -n "$RANLIB"; then
6452
  case $host_os in
6453
  openbsd*)
6454
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6455
    ;;
6456
  *)
6457
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6458
    ;;
6459
  esac
6460
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6461
fi
6462
 
6463
 
6464
 
6465
 
6466
 
6467
 
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
 
6479
 
6480
 
6481
 
6482
 
6483
 
6484
 
6485
 
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493
 
6494
 
6495
 
6496
# If no C compiler was specified, use CC.
6497
LTCC=${LTCC-"$CC"}
6498
 
6499
# If no C compiler flags were specified, use CFLAGS.
6500
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6501
 
6502
# Allow CC to be a program name with arguments.
6503
compiler=$CC
6504
 
6505
 
6506
# Check for command to grab the raw symbol name followed by C symbol from nm.
6507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6508
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6509
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6510
  $as_echo_n "(cached) " >&6
6511
else
6512
 
6513
# These are sane defaults that work on at least a few old systems.
6514
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6515
 
6516
# Character class describing NM global symbol codes.
6517
symcode='[BCDEGRST]'
6518
 
6519
# Regexp to match symbols that can be accessed directly from C.
6520
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6521
 
6522
# Define system-specific variables.
6523
case $host_os in
6524
aix*)
6525
  symcode='[BCDT]'
6526
  ;;
6527
cygwin* | mingw* | pw32* | cegcc*)
6528
  symcode='[ABCDGISTW]'
6529
  ;;
6530
hpux*)
6531
  if test "$host_cpu" = ia64; then
6532
    symcode='[ABCDEGRST]'
6533
  fi
6534
  ;;
6535
irix* | nonstopux*)
6536
  symcode='[BCDEGRST]'
6537
  ;;
6538
osf*)
6539
  symcode='[BCDEGQRST]'
6540
  ;;
6541
solaris*)
6542
  symcode='[BDRT]'
6543
  ;;
6544
sco3.2v5*)
6545
  symcode='[DT]'
6546
  ;;
6547
sysv4.2uw2*)
6548
  symcode='[DT]'
6549
  ;;
6550
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6551
  symcode='[ABDT]'
6552
  ;;
6553
sysv4)
6554
  symcode='[DFNSTU]'
6555
  ;;
6556
esac
6557
 
6558
# If we're using GNU nm, then use its standard symbol codes.
6559
case `$NM -V 2>&1` in
6560
*GNU* | *'with BFD'*)
6561
  symcode='[ABCDGIRSTW]' ;;
6562
esac
6563
 
6564
# Transform an extracted symbol line into a proper C declaration.
6565
# Some systems (esp. on ia64) link data and code symbols differently,
6566
# so use this general approach.
6567
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6568
 
6569
# Transform an extracted symbol line into symbol name and symbol address
6570
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6571
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'"
6572
 
6573
# Handle CRLF in mingw tool chain
6574
opt_cr=
6575
case $build_os in
6576
mingw*)
6577
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6578
  ;;
6579
esac
6580
 
6581
# Try without a prefix underscore, then with it.
6582
for ac_symprfx in "" "_"; do
6583
 
6584
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6585
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6586
 
6587
  # Write the raw and C identifiers.
6588
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6589
    # Fake it for dumpbin and say T for any non-static function
6590
    # and D for any global variable.
6591
    # Also find C++ and __fastcall symbols from MSVC++,
6592
    # which start with @ or ?.
6593
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6594
"     {last_section=section; section=\$ 3};"\
6595
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6596
"     \$ 0!~/External *\|/{next};"\
6597
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6598
"     {if(hide[section]) next};"\
6599
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6600
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6601
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6602
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6603
"     ' prfx=^$ac_symprfx"
6604
  else
6605
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6606
  fi
6607
 
6608
  # Check to see that the pipe works correctly.
6609
  pipe_works=no
6610
 
6611
  rm -f conftest*
6612
  cat > conftest.$ac_ext <<_LT_EOF
6613
#ifdef __cplusplus
6614
extern "C" {
6615
#endif
6616
char nm_test_var;
6617
void nm_test_func(void);
6618
void nm_test_func(void){}
6619
#ifdef __cplusplus
6620
}
6621
#endif
6622
int main(){nm_test_var='a';nm_test_func();return(0);}
6623
_LT_EOF
6624
 
6625
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6626
  (eval $ac_compile) 2>&5
6627
  ac_status=$?
6628
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629
  test $ac_status = 0; }; then
6630
    # Now try to grab the symbols.
6631
    nlist=conftest.nm
6632
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6633
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6634
  ac_status=$?
6635
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636
  test $ac_status = 0; } && test -s "$nlist"; then
6637
      # Try sorting and uniquifying the output.
6638
      if sort "$nlist" | uniq > "$nlist"T; then
6639
	mv -f "$nlist"T "$nlist"
6640
      else
6641
	rm -f "$nlist"T
6642
      fi
6643
 
6644
      # Make sure that we snagged all the symbols we need.
6645
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6646
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6647
	  cat <<_LT_EOF > conftest.$ac_ext
6648
#ifdef __cplusplus
6649
extern "C" {
6650
#endif
6651
 
6652
_LT_EOF
6653
	  # Now generate the symbol file.
6654
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6655
 
6656
	  cat <<_LT_EOF >> conftest.$ac_ext
6657
 
6658
/* The mapping between symbol names and symbols.  */
6659
const struct {
6660
  const char *name;
6661
  void       *address;
6662
}
6663
lt__PROGRAM__LTX_preloaded_symbols[] =
6664
{
6665
  { "@PROGRAM@", (void *) 0 },
6666
_LT_EOF
6667
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6668
	  cat <<\_LT_EOF >> conftest.$ac_ext
6669
  {0, (void *) 0}
6670
};
6671
 
6672
/* This works around a problem in FreeBSD linker */
6673
#ifdef FREEBSD_WORKAROUND
6674
static const void *lt_preloaded_setup() {
6675
  return lt__PROGRAM__LTX_preloaded_symbols;
6676
}
6677
#endif
6678
 
6679
#ifdef __cplusplus
6680
}
6681
#endif
6682
_LT_EOF
6683
	  # Now try linking the two files.
6684
	  mv conftest.$ac_objext conftstm.$ac_objext
6685
	  lt_save_LIBS="$LIBS"
6686
	  lt_save_CFLAGS="$CFLAGS"
6687
	  LIBS="conftstm.$ac_objext"
6688
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6689
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6690
  (eval $ac_link) 2>&5
6691
  ac_status=$?
6692
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6694
	    pipe_works=yes
6695
	  fi
6696
	  LIBS="$lt_save_LIBS"
6697
	  CFLAGS="$lt_save_CFLAGS"
6698
	else
6699
	  echo "cannot find nm_test_func in $nlist" >&5
6700
	fi
6701
      else
6702
	echo "cannot find nm_test_var in $nlist" >&5
6703
      fi
6704
    else
6705
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6706
    fi
6707
  else
6708
    echo "$progname: failed program was:" >&5
6709
    cat conftest.$ac_ext >&5
6710
  fi
6711
  rm -rf conftest* conftst*
6712
 
6713
  # Do not use the global_symbol_pipe unless it works.
6714
  if test "$pipe_works" = yes; then
6715
    break
6716
  else
6717
    lt_cv_sys_global_symbol_pipe=
6718
  fi
6719
done
6720
 
6721
fi
6722
 
6723
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6724
  lt_cv_sys_global_symbol_to_cdecl=
6725
fi
6726
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6728
$as_echo "failed" >&6; }
6729
else
6730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6731
$as_echo "ok" >&6; }
6732
fi
6733
 
6734
 
6735
 
6736
 
6737
 
6738
 
6739
 
6740
 
6741
 
6742
 
6743
 
6744
 
6745
 
6746
 
6747
 
6748
 
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
# Check whether --enable-libtool-lock was given.
6757
if test "${enable_libtool_lock+set}" = set; then :
6758
  enableval=$enable_libtool_lock;
6759
fi
6760
 
6761
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6762
 
6763
# Some flags need to be propagated to the compiler or linker for good
6764
# libtool support.
6765
case $host in
6766
ia64-*-hpux*)
6767
  # Find out which ABI we are using.
6768
  echo 'int i;' > conftest.$ac_ext
6769
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770
  (eval $ac_compile) 2>&5
6771
  ac_status=$?
6772
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773
  test $ac_status = 0; }; then
6774
    case `/usr/bin/file conftest.$ac_objext` in
6775
      *ELF-32*)
6776
	HPUX_IA64_MODE="32"
6777
	;;
6778
      *ELF-64*)
6779
	HPUX_IA64_MODE="64"
6780
	;;
6781
    esac
6782
  fi
6783
  rm -rf conftest*
6784
  ;;
6785
*-*-irix6*)
6786
  # Find out which ABI we are using.
6787
  echo '#line 6787 "configure"' > conftest.$ac_ext
6788
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6789
  (eval $ac_compile) 2>&5
6790
  ac_status=$?
6791
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792
  test $ac_status = 0; }; then
6793
    if test "$lt_cv_prog_gnu_ld" = yes; then
6794
      case `/usr/bin/file conftest.$ac_objext` in
6795
	*32-bit*)
6796
	  LD="${LD-ld} -melf32bsmip"
6797
	  ;;
6798
	*N32*)
6799
	  LD="${LD-ld} -melf32bmipn32"
6800
	  ;;
6801
	*64-bit*)
6802
	  LD="${LD-ld} -melf64bmip"
6803
	;;
6804
      esac
6805
    else
6806
      case `/usr/bin/file conftest.$ac_objext` in
6807
	*32-bit*)
6808
	  LD="${LD-ld} -32"
6809
	  ;;
6810
	*N32*)
6811
	  LD="${LD-ld} -n32"
6812
	  ;;
6813
	*64-bit*)
6814
	  LD="${LD-ld} -64"
6815
	  ;;
6816
      esac
6817
    fi
6818
  fi
6819
  rm -rf conftest*
6820
  ;;
6821
 
6822
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6823
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824
  # Find out which ABI we are using.
6825
  echo 'int i;' > conftest.$ac_ext
6826
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827
  (eval $ac_compile) 2>&5
6828
  ac_status=$?
6829
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830
  test $ac_status = 0; }; then
6831
    case `/usr/bin/file conftest.o` in
6832
      *32-bit*)
6833
	case $host in
6834
	  x86_64-*kfreebsd*-gnu)
6835
	    LD="${LD-ld} -m elf_i386_fbsd"
6836
	    ;;
6837
	  x86_64-*linux*)
6838
	    LD="${LD-ld} -m elf_i386"
6839
	    ;;
6840
	  ppc64-*linux*|powerpc64-*linux*)
6841
	    LD="${LD-ld} -m elf32ppclinux"
6842
	    ;;
6843
	  s390x-*linux*)
6844
	    LD="${LD-ld} -m elf_s390"
6845
	    ;;
6846
	  sparc64-*linux*)
6847
	    LD="${LD-ld} -m elf32_sparc"
6848
	    ;;
6849
	esac
6850
	;;
6851
      *64-bit*)
6852
	case $host in
6853
	  x86_64-*kfreebsd*-gnu)
6854
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6855
	    ;;
6856
	  x86_64-*linux*)
6857
	    LD="${LD-ld} -m elf_x86_64"
6858
	    ;;
6859
	  ppc*-*linux*|powerpc*-*linux*)
6860
	    LD="${LD-ld} -m elf64ppc"
6861
	    ;;
6862
	  s390*-*linux*|s390*-*tpf*)
6863
	    LD="${LD-ld} -m elf64_s390"
6864
	    ;;
6865
	  sparc*-*linux*)
6866
	    LD="${LD-ld} -m elf64_sparc"
6867
	    ;;
6868
	esac
6869
	;;
6870
    esac
6871
  fi
6872
  rm -rf conftest*
6873
  ;;
6874
 
6875
*-*-sco3.2v5*)
6876
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6877
  SAVE_CFLAGS="$CFLAGS"
6878
  CFLAGS="$CFLAGS -belf"
6879
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6880
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6881
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6882
  $as_echo_n "(cached) " >&6
6883
else
6884
  ac_ext=c
6885
ac_cpp='$CPP $CPPFLAGS'
6886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889
 
6890
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891
/* end confdefs.h.  */
6892
 
6893
int
6894
main ()
6895
{
6896
 
6897
  ;
6898
  return 0;
6899
}
6900
_ACEOF
6901
if ac_fn_c_try_link "$LINENO"; then :
6902
  lt_cv_cc_needs_belf=yes
6903
else
6904
  lt_cv_cc_needs_belf=no
6905
fi
6906
rm -f core conftest.err conftest.$ac_objext \
6907
    conftest$ac_exeext conftest.$ac_ext
6908
     ac_ext=c
6909
ac_cpp='$CPP $CPPFLAGS'
6910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6913
 
6914
fi
6915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6916
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6917
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6918
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6919
    CFLAGS="$SAVE_CFLAGS"
6920
  fi
6921
  ;;
6922
sparc*-*solaris*)
6923
  # Find out which ABI we are using.
6924
  echo 'int i;' > conftest.$ac_ext
6925
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6926
  (eval $ac_compile) 2>&5
6927
  ac_status=$?
6928
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929
  test $ac_status = 0; }; then
6930
    case `/usr/bin/file conftest.o` in
6931
    *64-bit*)
6932
      case $lt_cv_prog_gnu_ld in
6933
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6934
      *)
6935
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6936
	  LD="${LD-ld} -64"
6937
	fi
6938
	;;
6939
      esac
6940
      ;;
6941
    esac
6942
  fi
6943
  rm -rf conftest*
6944
  ;;
6945
esac
6946
 
6947
need_locks="$enable_libtool_lock"
6948
 
6949
 
6950
  case $host_os in
6951
    rhapsody* | darwin*)
6952
    if test -n "$ac_tool_prefix"; then
6953
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6954
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956
$as_echo_n "checking for $ac_word... " >&6; }
6957
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6958
  $as_echo_n "(cached) " >&6
6959
else
6960
  if test -n "$DSYMUTIL"; then
6961
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6962
else
6963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964
for as_dir in $PATH
6965
do
6966
  IFS=$as_save_IFS
6967
  test -z "$as_dir" && as_dir=.
6968
    for ac_exec_ext in '' $ac_executable_extensions; do
6969
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972
    break 2
6973
  fi
6974
done
6975
  done
6976
IFS=$as_save_IFS
6977
 
6978
fi
6979
fi
6980
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6981
if test -n "$DSYMUTIL"; then
6982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6983
$as_echo "$DSYMUTIL" >&6; }
6984
else
6985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986
$as_echo "no" >&6; }
6987
fi
6988
 
6989
 
6990
fi
6991
if test -z "$ac_cv_prog_DSYMUTIL"; then
6992
  ac_ct_DSYMUTIL=$DSYMUTIL
6993
  # Extract the first word of "dsymutil", so it can be a program name with args.
6994
set dummy dsymutil; ac_word=$2
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996
$as_echo_n "checking for $ac_word... " >&6; }
6997
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6998
  $as_echo_n "(cached) " >&6
6999
else
7000
  if test -n "$ac_ct_DSYMUTIL"; then
7001
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7002
else
7003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004
for as_dir in $PATH
7005
do
7006
  IFS=$as_save_IFS
7007
  test -z "$as_dir" && as_dir=.
7008
    for ac_exec_ext in '' $ac_executable_extensions; do
7009
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7011
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012
    break 2
7013
  fi
7014
done
7015
  done
7016
IFS=$as_save_IFS
7017
 
7018
fi
7019
fi
7020
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7021
if test -n "$ac_ct_DSYMUTIL"; then
7022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7023
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7024
else
7025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026
$as_echo "no" >&6; }
7027
fi
7028
 
7029
  if test "x$ac_ct_DSYMUTIL" = x; then
7030
    DSYMUTIL=":"
7031
  else
7032
    case $cross_compiling:$ac_tool_warned in
7033
yes:)
7034
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036
ac_tool_warned=yes ;;
7037
esac
7038
    DSYMUTIL=$ac_ct_DSYMUTIL
7039
  fi
7040
else
7041
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7042
fi
7043
 
7044
    if test -n "$ac_tool_prefix"; then
7045
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7046
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048
$as_echo_n "checking for $ac_word... " >&6; }
7049
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7050
  $as_echo_n "(cached) " >&6
7051
else
7052
  if test -n "$NMEDIT"; then
7053
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7054
else
7055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056
for as_dir in $PATH
7057
do
7058
  IFS=$as_save_IFS
7059
  test -z "$as_dir" && as_dir=.
7060
    for ac_exec_ext in '' $ac_executable_extensions; do
7061
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7063
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064
    break 2
7065
  fi
7066
done
7067
  done
7068
IFS=$as_save_IFS
7069
 
7070
fi
7071
fi
7072
NMEDIT=$ac_cv_prog_NMEDIT
7073
if test -n "$NMEDIT"; then
7074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7075
$as_echo "$NMEDIT" >&6; }
7076
else
7077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078
$as_echo "no" >&6; }
7079
fi
7080
 
7081
 
7082
fi
7083
if test -z "$ac_cv_prog_NMEDIT"; then
7084
  ac_ct_NMEDIT=$NMEDIT
7085
  # Extract the first word of "nmedit", so it can be a program name with args.
7086
set dummy nmedit; ac_word=$2
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088
$as_echo_n "checking for $ac_word... " >&6; }
7089
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7090
  $as_echo_n "(cached) " >&6
7091
else
7092
  if test -n "$ac_ct_NMEDIT"; then
7093
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7094
else
7095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096
for as_dir in $PATH
7097
do
7098
  IFS=$as_save_IFS
7099
  test -z "$as_dir" && as_dir=.
7100
    for ac_exec_ext in '' $ac_executable_extensions; do
7101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7103
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104
    break 2
7105
  fi
7106
done
7107
  done
7108
IFS=$as_save_IFS
7109
 
7110
fi
7111
fi
7112
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7113
if test -n "$ac_ct_NMEDIT"; then
7114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7115
$as_echo "$ac_ct_NMEDIT" >&6; }
7116
else
7117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118
$as_echo "no" >&6; }
7119
fi
7120
 
7121
  if test "x$ac_ct_NMEDIT" = x; then
7122
    NMEDIT=":"
7123
  else
7124
    case $cross_compiling:$ac_tool_warned in
7125
yes:)
7126
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128
ac_tool_warned=yes ;;
7129
esac
7130
    NMEDIT=$ac_ct_NMEDIT
7131
  fi
7132
else
7133
  NMEDIT="$ac_cv_prog_NMEDIT"
7134
fi
7135
 
7136
    if test -n "$ac_tool_prefix"; then
7137
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7138
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140
$as_echo_n "checking for $ac_word... " >&6; }
7141
if test "${ac_cv_prog_LIPO+set}" = set; then :
7142
  $as_echo_n "(cached) " >&6
7143
else
7144
  if test -n "$LIPO"; then
7145
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7146
else
7147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148
for as_dir in $PATH
7149
do
7150
  IFS=$as_save_IFS
7151
  test -z "$as_dir" && as_dir=.
7152
    for ac_exec_ext in '' $ac_executable_extensions; do
7153
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7155
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156
    break 2
7157
  fi
7158
done
7159
  done
7160
IFS=$as_save_IFS
7161
 
7162
fi
7163
fi
7164
LIPO=$ac_cv_prog_LIPO
7165
if test -n "$LIPO"; then
7166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7167
$as_echo "$LIPO" >&6; }
7168
else
7169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170
$as_echo "no" >&6; }
7171
fi
7172
 
7173
 
7174
fi
7175
if test -z "$ac_cv_prog_LIPO"; then
7176
  ac_ct_LIPO=$LIPO
7177
  # Extract the first word of "lipo", so it can be a program name with args.
7178
set dummy lipo; ac_word=$2
7179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180
$as_echo_n "checking for $ac_word... " >&6; }
7181
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7182
  $as_echo_n "(cached) " >&6
7183
else
7184
  if test -n "$ac_ct_LIPO"; then
7185
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7186
else
7187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188
for as_dir in $PATH
7189
do
7190
  IFS=$as_save_IFS
7191
  test -z "$as_dir" && as_dir=.
7192
    for ac_exec_ext in '' $ac_executable_extensions; do
7193
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194
    ac_cv_prog_ac_ct_LIPO="lipo"
7195
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196
    break 2
7197
  fi
7198
done
7199
  done
7200
IFS=$as_save_IFS
7201
 
7202
fi
7203
fi
7204
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7205
if test -n "$ac_ct_LIPO"; then
7206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7207
$as_echo "$ac_ct_LIPO" >&6; }
7208
else
7209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210
$as_echo "no" >&6; }
7211
fi
7212
 
7213
  if test "x$ac_ct_LIPO" = x; then
7214
    LIPO=":"
7215
  else
7216
    case $cross_compiling:$ac_tool_warned in
7217
yes:)
7218
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7219
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7220
ac_tool_warned=yes ;;
7221
esac
7222
    LIPO=$ac_ct_LIPO
7223
  fi
7224
else
7225
  LIPO="$ac_cv_prog_LIPO"
7226
fi
7227
 
7228
    if test -n "$ac_tool_prefix"; then
7229
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7230
set dummy ${ac_tool_prefix}otool; ac_word=$2
7231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232
$as_echo_n "checking for $ac_word... " >&6; }
7233
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7234
  $as_echo_n "(cached) " >&6
7235
else
7236
  if test -n "$OTOOL"; then
7237
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7238
else
7239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240
for as_dir in $PATH
7241
do
7242
  IFS=$as_save_IFS
7243
  test -z "$as_dir" && as_dir=.
7244
    for ac_exec_ext in '' $ac_executable_extensions; do
7245
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7247
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248
    break 2
7249
  fi
7250
done
7251
  done
7252
IFS=$as_save_IFS
7253
 
7254
fi
7255
fi
7256
OTOOL=$ac_cv_prog_OTOOL
7257
if test -n "$OTOOL"; then
7258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7259
$as_echo "$OTOOL" >&6; }
7260
else
7261
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262
$as_echo "no" >&6; }
7263
fi
7264
 
7265
 
7266
fi
7267
if test -z "$ac_cv_prog_OTOOL"; then
7268
  ac_ct_OTOOL=$OTOOL
7269
  # Extract the first word of "otool", so it can be a program name with args.
7270
set dummy otool; ac_word=$2
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272
$as_echo_n "checking for $ac_word... " >&6; }
7273
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7274
  $as_echo_n "(cached) " >&6
7275
else
7276
  if test -n "$ac_ct_OTOOL"; then
7277
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7278
else
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280
for as_dir in $PATH
7281
do
7282
  IFS=$as_save_IFS
7283
  test -z "$as_dir" && as_dir=.
7284
    for ac_exec_ext in '' $ac_executable_extensions; do
7285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286
    ac_cv_prog_ac_ct_OTOOL="otool"
7287
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288
    break 2
7289
  fi
7290
done
7291
  done
7292
IFS=$as_save_IFS
7293
 
7294
fi
7295
fi
7296
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7297
if test -n "$ac_ct_OTOOL"; then
7298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7299
$as_echo "$ac_ct_OTOOL" >&6; }
7300
else
7301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302
$as_echo "no" >&6; }
7303
fi
7304
 
7305
  if test "x$ac_ct_OTOOL" = x; then
7306
    OTOOL=":"
7307
  else
7308
    case $cross_compiling:$ac_tool_warned in
7309
yes:)
7310
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7311
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7312
ac_tool_warned=yes ;;
7313
esac
7314
    OTOOL=$ac_ct_OTOOL
7315
  fi
7316
else
7317
  OTOOL="$ac_cv_prog_OTOOL"
7318
fi
7319
 
7320
    if test -n "$ac_tool_prefix"; then
7321
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7322
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324
$as_echo_n "checking for $ac_word... " >&6; }
7325
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7326
  $as_echo_n "(cached) " >&6
7327
else
7328
  if test -n "$OTOOL64"; then
7329
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7330
else
7331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332
for as_dir in $PATH
7333
do
7334
  IFS=$as_save_IFS
7335
  test -z "$as_dir" && as_dir=.
7336
    for ac_exec_ext in '' $ac_executable_extensions; do
7337
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7339
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340
    break 2
7341
  fi
7342
done
7343
  done
7344
IFS=$as_save_IFS
7345
 
7346
fi
7347
fi
7348
OTOOL64=$ac_cv_prog_OTOOL64
7349
if test -n "$OTOOL64"; then
7350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7351
$as_echo "$OTOOL64" >&6; }
7352
else
7353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354
$as_echo "no" >&6; }
7355
fi
7356
 
7357
 
7358
fi
7359
if test -z "$ac_cv_prog_OTOOL64"; then
7360
  ac_ct_OTOOL64=$OTOOL64
7361
  # Extract the first word of "otool64", so it can be a program name with args.
7362
set dummy otool64; ac_word=$2
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364
$as_echo_n "checking for $ac_word... " >&6; }
7365
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7366
  $as_echo_n "(cached) " >&6
7367
else
7368
  if test -n "$ac_ct_OTOOL64"; then
7369
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7370
else
7371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372
for as_dir in $PATH
7373
do
7374
  IFS=$as_save_IFS
7375
  test -z "$as_dir" && as_dir=.
7376
    for ac_exec_ext in '' $ac_executable_extensions; do
7377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7379
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380
    break 2
7381
  fi
7382
done
7383
  done
7384
IFS=$as_save_IFS
7385
 
7386
fi
7387
fi
7388
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7389
if test -n "$ac_ct_OTOOL64"; then
7390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7391
$as_echo "$ac_ct_OTOOL64" >&6; }
7392
else
7393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394
$as_echo "no" >&6; }
7395
fi
7396
 
7397
  if test "x$ac_ct_OTOOL64" = x; then
7398
    OTOOL64=":"
7399
  else
7400
    case $cross_compiling:$ac_tool_warned in
7401
yes:)
7402
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7403
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404
ac_tool_warned=yes ;;
7405
esac
7406
    OTOOL64=$ac_ct_OTOOL64
7407
  fi
7408
else
7409
  OTOOL64="$ac_cv_prog_OTOOL64"
7410
fi
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
 
7419
 
7420
 
7421
 
7422
 
7423
 
7424
 
7425
 
7426
 
7427
 
7428
 
7429
 
7430
 
7431
 
7432
 
7433
 
7434
 
7435
 
7436
 
7437
 
7438
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7439
$as_echo_n "checking for -single_module linker flag... " >&6; }
7440
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7441
  $as_echo_n "(cached) " >&6
7442
else
7443
  lt_cv_apple_cc_single_mod=no
7444
      if test -z "${LT_MULTI_MODULE}"; then
7445
	# By default we will add the -single_module flag. You can override
7446
	# by either setting the environment variable LT_MULTI_MODULE
7447
	# non-empty at configure time, or by adding -multi_module to the
7448
	# link flags.
7449
	rm -rf libconftest.dylib*
7450
	echo "int foo(void){return 1;}" > conftest.c
7451
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7452
-dynamiclib -Wl,-single_module conftest.c" >&5
7453
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7454
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7455
        _lt_result=$?
7456
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7457
	  lt_cv_apple_cc_single_mod=yes
7458
	else
7459
	  cat conftest.err >&5
7460
	fi
7461
	rm -rf libconftest.dylib*
7462
	rm -f conftest.*
7463
      fi
7464
fi
7465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7466
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7467
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7468
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7469
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7470
  $as_echo_n "(cached) " >&6
7471
else
7472
  lt_cv_ld_exported_symbols_list=no
7473
      save_LDFLAGS=$LDFLAGS
7474
      echo "_main" > conftest.sym
7475
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7476
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477
/* end confdefs.h.  */
7478
 
7479
int
7480
main ()
7481
{
7482
 
7483
  ;
7484
  return 0;
7485
}
7486
_ACEOF
7487
if ac_fn_c_try_link "$LINENO"; then :
7488
  lt_cv_ld_exported_symbols_list=yes
7489
else
7490
  lt_cv_ld_exported_symbols_list=no
7491
fi
7492
rm -f core conftest.err conftest.$ac_objext \
7493
    conftest$ac_exeext conftest.$ac_ext
7494
	LDFLAGS="$save_LDFLAGS"
7495
 
7496
fi
7497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7498
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7499
    case $host_os in
7500
    rhapsody* | darwin1.[012])
7501
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7502
    darwin1.*)
7503
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7504
    darwin*) # darwin 5.x on
7505
      # if running on 10.5 or later, the deployment target defaults
7506
      # to the OS version, if on x86, and 10.4, the deployment
7507
      # target defaults to 10.4. Don't you love it?
7508
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7509
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7510
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7511
	10.[012]*)
7512
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7513
	10.*)
7514
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7515
      esac
7516
    ;;
7517
  esac
7518
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7519
      _lt_dar_single_mod='$single_module'
7520
    fi
7521
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7522
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7523
    else
7524
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7525
    fi
7526
    if test "$DSYMUTIL" != ":"; then
7527
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7528
    else
7529
      _lt_dsymutil=
7530
    fi
7531
    ;;
7532
  esac
7533
 
7534
 
7535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7536
$as_echo_n "checking for ANSI C header files... " >&6; }
7537
if test "${ac_cv_header_stdc+set}" = set; then :
7538
  $as_echo_n "(cached) " >&6
7539
else
7540
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541
/* end confdefs.h.  */
7542
#include <stdlib.h>
7543
#include <stdarg.h>
7544
#include <string.h>
7545
#include <float.h>
7546
 
7547
int
7548
main ()
7549
{
7550
 
7551
  ;
7552
  return 0;
7553
}
7554
_ACEOF
7555
if ac_fn_c_try_compile "$LINENO"; then :
7556
  ac_cv_header_stdc=yes
7557
else
7558
  ac_cv_header_stdc=no
7559
fi
7560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561
 
7562
if test $ac_cv_header_stdc = yes; then
7563
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7564
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565
/* end confdefs.h.  */
7566
#include <string.h>
7567
 
7568
_ACEOF
7569
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7570
  $EGREP "memchr" >/dev/null 2>&1; then :
7571
 
7572
else
7573
  ac_cv_header_stdc=no
7574
fi
7575
rm -f conftest*
7576
 
7577
fi
7578
 
7579
if test $ac_cv_header_stdc = yes; then
7580
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582
/* end confdefs.h.  */
7583
#include <stdlib.h>
7584
 
7585
_ACEOF
7586
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7587
  $EGREP "free" >/dev/null 2>&1; then :
7588
 
7589
else
7590
  ac_cv_header_stdc=no
7591
fi
7592
rm -f conftest*
7593
 
7594
fi
7595
 
7596
if test $ac_cv_header_stdc = yes; then
7597
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7598
  if test "$cross_compiling" = yes; then :
7599
  :
7600
else
7601
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602
/* end confdefs.h.  */
7603
#include <ctype.h>
7604
#include <stdlib.h>
7605
#if ((' ' & 0x0FF) == 0x020)
7606
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7607
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7608
#else
7609
# define ISLOWER(c) \
7610
		   (('a' <= (c) && (c) <= 'i') \
7611
		     || ('j' <= (c) && (c) <= 'r') \
7612
		     || ('s' <= (c) && (c) <= 'z'))
7613
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7614
#endif
7615
 
7616
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7617
int
7618
main ()
7619
{
7620
  int i;
7621
  for (i = 0; i < 256; i++)
7622
    if (XOR (islower (i), ISLOWER (i))
7623
	|| toupper (i) != TOUPPER (i))
7624
      return 2;
7625
  return 0;
7626
}
7627
_ACEOF
7628
if ac_fn_c_try_run "$LINENO"; then :
7629
 
7630
else
7631
  ac_cv_header_stdc=no
7632
fi
7633
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7634
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7635
fi
7636
 
7637
fi
7638
fi
7639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7640
$as_echo "$ac_cv_header_stdc" >&6; }
7641
if test $ac_cv_header_stdc = yes; then
7642
 
7643
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7644
 
7645
fi
7646
 
7647
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7648
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7649
		  inttypes.h stdint.h unistd.h
7650
do :
7651
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7652
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7653
"
7654
eval as_val=\$$as_ac_Header
7655
   if test "x$as_val" = x""yes; then :
7656
  cat >>confdefs.h <<_ACEOF
7657
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7658
_ACEOF
7659
 
7660
fi
7661
 
7662
done
7663
 
7664
 
7665
for ac_header in dlfcn.h
7666
do :
7667
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7668
"
7669
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7670
  cat >>confdefs.h <<_ACEOF
7671
#define HAVE_DLFCN_H 1
7672
_ACEOF
7673
 
7674
fi
7675
 
7676
done
7677
 
7678
 
7679
 
7680
ac_ext=cpp
7681
ac_cpp='$CXXCPP $CPPFLAGS'
7682
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7683
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7684
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7685
if test -z "$CXX"; then
7686
  if test -n "$CCC"; then
7687
    CXX=$CCC
7688
  else
7689
    if test -n "$ac_tool_prefix"; then
7690
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7691
  do
7692
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7693
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695
$as_echo_n "checking for $ac_word... " >&6; }
7696
if test "${ac_cv_prog_CXX+set}" = set; then :
7697
  $as_echo_n "(cached) " >&6
7698
else
7699
  if test -n "$CXX"; then
7700
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7701
else
7702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703
for as_dir in $PATH
7704
do
7705
  IFS=$as_save_IFS
7706
  test -z "$as_dir" && as_dir=.
7707
    for ac_exec_ext in '' $ac_executable_extensions; do
7708
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7710
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711
    break 2
7712
  fi
7713
done
7714
  done
7715
IFS=$as_save_IFS
7716
 
7717
fi
7718
fi
7719
CXX=$ac_cv_prog_CXX
7720
if test -n "$CXX"; then
7721
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7722
$as_echo "$CXX" >&6; }
7723
else
7724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725
$as_echo "no" >&6; }
7726
fi
7727
 
7728
 
7729
    test -n "$CXX" && break
7730
  done
7731
fi
7732
if test -z "$CXX"; then
7733
  ac_ct_CXX=$CXX
7734
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7735
do
7736
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7737
set dummy $ac_prog; ac_word=$2
7738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739
$as_echo_n "checking for $ac_word... " >&6; }
7740
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7741
  $as_echo_n "(cached) " >&6
7742
else
7743
  if test -n "$ac_ct_CXX"; then
7744
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7745
else
7746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747
for as_dir in $PATH
7748
do
7749
  IFS=$as_save_IFS
7750
  test -z "$as_dir" && as_dir=.
7751
    for ac_exec_ext in '' $ac_executable_extensions; do
7752
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753
    ac_cv_prog_ac_ct_CXX="$ac_prog"
7754
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755
    break 2
7756
  fi
7757
done
7758
  done
7759
IFS=$as_save_IFS
7760
 
7761
fi
7762
fi
7763
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7764
if test -n "$ac_ct_CXX"; then
7765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7766
$as_echo "$ac_ct_CXX" >&6; }
7767
else
7768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769
$as_echo "no" >&6; }
7770
fi
7771
 
7772
 
7773
  test -n "$ac_ct_CXX" && break
7774
done
7775
 
7776
  if test "x$ac_ct_CXX" = x; then
7777
    CXX="g++"
7778
  else
7779
    case $cross_compiling:$ac_tool_warned in
7780
yes:)
7781
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783
ac_tool_warned=yes ;;
7784
esac
7785
    CXX=$ac_ct_CXX
7786
  fi
7787
fi
7788
 
7789
  fi
7790
fi
7791
# Provide some information about the compiler.
7792
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7793
set X $ac_compile
7794
ac_compiler=$2
7795
for ac_option in --version -v -V -qversion; do
7796
  { { ac_try="$ac_compiler $ac_option >&5"
7797
case "(($ac_try" in
7798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799
  *) ac_try_echo=$ac_try;;
7800
esac
7801
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7802
$as_echo "$ac_try_echo"; } >&5
7803
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7804
  ac_status=$?
7805
  if test -s conftest.err; then
7806
    sed '10a\
7807
... rest of stderr output deleted ...
7808
         10q' conftest.err >conftest.er1
7809
    cat conftest.er1 >&5
7810
    rm -f conftest.er1 conftest.err
7811
  fi
7812
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813
  test $ac_status = 0; }
7814
done
7815
 
7816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7817
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7818
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7819
  $as_echo_n "(cached) " >&6
7820
else
7821
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822
/* end confdefs.h.  */
7823
 
7824
int
7825
main ()
7826
{
7827
#ifndef __GNUC__
7828
       choke me
7829
#endif
7830
 
7831
  ;
7832
  return 0;
7833
}
7834
_ACEOF
7835
if ac_fn_cxx_try_compile "$LINENO"; then :
7836
  ac_compiler_gnu=yes
7837
else
7838
  ac_compiler_gnu=no
7839
fi
7840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7842
 
7843
fi
7844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7845
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7846
if test $ac_compiler_gnu = yes; then
7847
  GXX=yes
7848
else
7849
  GXX=
7850
fi
7851
ac_test_CXXFLAGS=${CXXFLAGS+set}
7852
ac_save_CXXFLAGS=$CXXFLAGS
7853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7854
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7855
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7856
  $as_echo_n "(cached) " >&6
7857
else
7858
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7859
   ac_cxx_werror_flag=yes
7860
   ac_cv_prog_cxx_g=no
7861
   CXXFLAGS="-g"
7862
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863
/* end confdefs.h.  */
7864
 
7865
int
7866
main ()
7867
{
7868
 
7869
  ;
7870
  return 0;
7871
}
7872
_ACEOF
7873
if ac_fn_cxx_try_compile "$LINENO"; then :
7874
  ac_cv_prog_cxx_g=yes
7875
else
7876
  CXXFLAGS=""
7877
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878
/* end confdefs.h.  */
7879
 
7880
int
7881
main ()
7882
{
7883
 
7884
  ;
7885
  return 0;
7886
}
7887
_ACEOF
7888
if ac_fn_cxx_try_compile "$LINENO"; then :
7889
 
7890
else
7891
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7892
	 CXXFLAGS="-g"
7893
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894
/* end confdefs.h.  */
7895
 
7896
int
7897
main ()
7898
{
7899
 
7900
  ;
7901
  return 0;
7902
}
7903
_ACEOF
7904
if ac_fn_cxx_try_compile "$LINENO"; then :
7905
  ac_cv_prog_cxx_g=yes
7906
fi
7907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
fi
7909
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910
fi
7911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7913
fi
7914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7915
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7916
if test "$ac_test_CXXFLAGS" = set; then
7917
  CXXFLAGS=$ac_save_CXXFLAGS
7918
elif test $ac_cv_prog_cxx_g = yes; then
7919
  if test "$GXX" = yes; then
7920
    CXXFLAGS="-g -O2"
7921
  else
7922
    CXXFLAGS="-g"
7923
  fi
7924
else
7925
  if test "$GXX" = yes; then
7926
    CXXFLAGS="-O2"
7927
  else
7928
    CXXFLAGS=
7929
  fi
7930
fi
7931
ac_ext=c
7932
ac_cpp='$CPP $CPPFLAGS'
7933
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
 
7937
depcc="$CXX"  am_compiler_list=
7938
 
7939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7940
$as_echo_n "checking dependency style of $depcc... " >&6; }
7941
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7942
  $as_echo_n "(cached) " >&6
7943
else
7944
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7945
  # We make a subdir and do the tests there.  Otherwise we can end up
7946
  # making bogus files that we don't know about and never remove.  For
7947
  # instance it was reported that on HP-UX the gcc test will end up
7948
  # making a dummy file named `D' -- because `-MD' means `put the output
7949
  # in D'.
7950
  mkdir conftest.dir
7951
  # Copy depcomp to subdir because otherwise we won't find it if we're
7952
  # using a relative directory.
7953
  cp "$am_depcomp" conftest.dir
7954
  cd conftest.dir
7955
  # We will build objects and dependencies in a subdirectory because
7956
  # it helps to detect inapplicable dependency modes.  For instance
7957
  # both Tru64's cc and ICC support -MD to output dependencies as a
7958
  # side effect of compilation, but ICC will put the dependencies in
7959
  # the current directory while Tru64 will put them in the object
7960
  # directory.
7961
  mkdir sub
7962
 
7963
  am_cv_CXX_dependencies_compiler_type=none
7964
  if test "$am_compiler_list" = ""; then
7965
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7966
  fi
7967
  am__universal=false
7968
  case " $depcc " in #(
7969
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7970
     esac
7971
 
7972
  for depmode in $am_compiler_list; do
7973
    # Setup a source with many dependencies, because some compilers
7974
    # like to wrap large dependency lists on column 80 (with \), and
7975
    # we should not choose a depcomp mode which is confused by this.
7976
    #
7977
    # We need to recreate these files for each test, as the compiler may
7978
    # overwrite some of them when testing with obscure command lines.
7979
    # This happens at least with the AIX C compiler.
7980
    : > sub/conftest.c
7981
    for i in 1 2 3 4 5 6; do
7982
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7983
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7984
      # Solaris 8's {/usr,}/bin/sh.
7985
      touch sub/conftst$i.h
7986
    done
7987
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7988
 
7989
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7990
    # mode.  It turns out that the SunPro C++ compiler does not properly
7991
    # handle `-M -o', and we need to detect this.  Also, some Intel
7992
    # versions had trouble with output in subdirs
7993
    am__obj=sub/conftest.${OBJEXT-o}
7994
    am__minus_obj="-o $am__obj"
7995
    case $depmode in
7996
    gcc)
7997
      # This depmode causes a compiler race in universal mode.
7998
      test "$am__universal" = false || continue
7999
      ;;
8000
    nosideeffect)
8001
      # after this tag, mechanisms are not by side-effect, so they'll
8002
      # only be used when explicitly requested
8003
      if test "x$enable_dependency_tracking" = xyes; then
8004
	continue
8005
      else
8006
	break
8007
      fi
8008
      ;;
8009
    msvisualcpp | msvcmsys)
8010
      # This compiler won't grok `-c -o', but also, the minuso test has
8011
      # not run yet.  These depmodes are late enough in the game, and
8012
      # so weak that their functioning should not be impacted.
8013
      am__obj=conftest.${OBJEXT-o}
8014
      am__minus_obj=
8015
      ;;
8016
    none) break ;;
8017
    esac
8018
    if depmode=$depmode \
8019
       source=sub/conftest.c object=$am__obj \
8020
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8021
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8022
         >/dev/null 2>conftest.err &&
8023
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8024
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8025
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8026
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8027
      # icc doesn't choke on unknown options, it will just issue warnings
8028
      # or remarks (even with -Werror).  So we grep stderr for any message
8029
      # that says an option was ignored or not supported.
8030
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8031
      #   icc: Command line warning: ignoring option '-M'; no argument required
8032
      # The diagnosis changed in icc 8.0:
8033
      #   icc: Command line remark: option '-MP' not supported
8034
      if (grep 'ignoring option' conftest.err ||
8035
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8036
        am_cv_CXX_dependencies_compiler_type=$depmode
8037
        break
8038
      fi
8039
    fi
8040
  done
8041
 
8042
  cd ..
8043
  rm -rf conftest.dir
8044
else
8045
  am_cv_CXX_dependencies_compiler_type=none
8046
fi
8047
 
8048
fi
8049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8050
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8051
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8052
 
8053
 if
8054
  test "x$enable_dependency_tracking" != xno \
8055
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8056
  am__fastdepCXX_TRUE=
8057
  am__fastdepCXX_FALSE='#'
8058
else
8059
  am__fastdepCXX_TRUE='#'
8060
  am__fastdepCXX_FALSE=
8061
fi
8062
 
8063
 
8064
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8065
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8066
    (test "X$CXX" != "Xg++"))) ; then
8067
  ac_ext=cpp
8068
ac_cpp='$CXXCPP $CPPFLAGS'
8069
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8073
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8074
if test -z "$CXXCPP"; then
8075
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8076
  $as_echo_n "(cached) " >&6
8077
else
8078
      # Double quotes because CXXCPP needs to be expanded
8079
    for CXXCPP in "$CXX -E" "/lib/cpp"
8080
    do
8081
      ac_preproc_ok=false
8082
for ac_cxx_preproc_warn_flag in '' yes
8083
do
8084
  # Use a header file that comes with gcc, so configuring glibc
8085
  # with a fresh cross-compiler works.
8086
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087
  # <limits.h> exists even on freestanding compilers.
8088
  # On the NeXT, cc -E runs the code through the compiler's parser,
8089
  # not just through cpp. "Syntax error" is here to catch this case.
8090
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091
/* end confdefs.h.  */
8092
#ifdef __STDC__
8093
# include <limits.h>
8094
#else
8095
# include <assert.h>
8096
#endif
8097
		     Syntax error
8098
_ACEOF
8099
if ac_fn_cxx_try_cpp "$LINENO"; then :
8100
 
8101
else
8102
  # Broken: fails on valid input.
8103
continue
8104
fi
8105
rm -f conftest.err conftest.$ac_ext
8106
 
8107
  # OK, works on sane cases.  Now check whether nonexistent headers
8108
  # can be detected and how.
8109
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110
/* end confdefs.h.  */
8111
#include <ac_nonexistent.h>
8112
_ACEOF
8113
if ac_fn_cxx_try_cpp "$LINENO"; then :
8114
  # Broken: success on invalid input.
8115
continue
8116
else
8117
  # Passes both tests.
8118
ac_preproc_ok=:
8119
break
8120
fi
8121
rm -f conftest.err conftest.$ac_ext
8122
 
8123
done
8124
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8125
rm -f conftest.err conftest.$ac_ext
8126
if $ac_preproc_ok; then :
8127
  break
8128
fi
8129
 
8130
    done
8131
    ac_cv_prog_CXXCPP=$CXXCPP
8132
 
8133
fi
8134
  CXXCPP=$ac_cv_prog_CXXCPP
8135
else
8136
  ac_cv_prog_CXXCPP=$CXXCPP
8137
fi
8138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8139
$as_echo "$CXXCPP" >&6; }
8140
ac_preproc_ok=false
8141
for ac_cxx_preproc_warn_flag in '' yes
8142
do
8143
  # Use a header file that comes with gcc, so configuring glibc
8144
  # with a fresh cross-compiler works.
8145
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8146
  # <limits.h> exists even on freestanding compilers.
8147
  # On the NeXT, cc -E runs the code through the compiler's parser,
8148
  # not just through cpp. "Syntax error" is here to catch this case.
8149
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150
/* end confdefs.h.  */
8151
#ifdef __STDC__
8152
# include <limits.h>
8153
#else
8154
# include <assert.h>
8155
#endif
8156
		     Syntax error
8157
_ACEOF
8158
if ac_fn_cxx_try_cpp "$LINENO"; then :
8159
 
8160
else
8161
  # Broken: fails on valid input.
8162
continue
8163
fi
8164
rm -f conftest.err conftest.$ac_ext
8165
 
8166
  # OK, works on sane cases.  Now check whether nonexistent headers
8167
  # can be detected and how.
8168
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169
/* end confdefs.h.  */
8170
#include <ac_nonexistent.h>
8171
_ACEOF
8172
if ac_fn_cxx_try_cpp "$LINENO"; then :
8173
  # Broken: success on invalid input.
8174
continue
8175
else
8176
  # Passes both tests.
8177
ac_preproc_ok=:
8178
break
8179
fi
8180
rm -f conftest.err conftest.$ac_ext
8181
 
8182
done
8183
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8184
rm -f conftest.err conftest.$ac_ext
8185
if $ac_preproc_ok; then :
8186
 
8187
else
8188
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8189
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8190
_lt_caught_CXX_error=yes; }
8191
fi
8192
 
8193
ac_ext=c
8194
ac_cpp='$CPP $CPPFLAGS'
8195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198
 
8199
else
8200
  _lt_caught_CXX_error=yes
8201
fi
8202
 
8203
 
8204
 
8205
 
8206
 
8207
# Set options
8208
 
8209
 
8210
 
8211
        enable_dlopen=no
8212
 
8213
 
8214
  enable_win32_dll=no
8215
 
8216
 
8217
            # Check whether --enable-shared was given.
8218
if test "${enable_shared+set}" = set; then :
8219
  enableval=$enable_shared; p=${PACKAGE-default}
8220
    case $enableval in
8221
    yes) enable_shared=yes ;;
8222
    no) enable_shared=no ;;
8223
    *)
8224
      enable_shared=no
8225
      # Look at the argument we got.  We use all the common list separators.
8226
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8227
      for pkg in $enableval; do
8228
	IFS="$lt_save_ifs"
8229
	if test "X$pkg" = "X$p"; then
8230
	  enable_shared=yes
8231
	fi
8232
      done
8233
      IFS="$lt_save_ifs"
8234
      ;;
8235
    esac
8236
else
8237
  enable_shared=yes
8238
fi
8239
 
8240
 
8241
 
8242
 
8243
 
8244
 
8245
 
8246
 
8247
 
8248
  # Check whether --enable-static was given.
8249
if test "${enable_static+set}" = set; then :
8250
  enableval=$enable_static; p=${PACKAGE-default}
8251
    case $enableval in
8252
    yes) enable_static=yes ;;
8253
    no) enable_static=no ;;
8254
    *)
8255
     enable_static=no
8256
      # Look at the argument we got.  We use all the common list separators.
8257
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8258
      for pkg in $enableval; do
8259
	IFS="$lt_save_ifs"
8260
	if test "X$pkg" = "X$p"; then
8261
	  enable_static=yes
8262
	fi
8263
      done
8264
      IFS="$lt_save_ifs"
8265
      ;;
8266
    esac
8267
else
8268
  enable_static=yes
8269
fi
8270
 
8271
 
8272
 
8273
 
8274
 
8275
 
8276
 
8277
 
8278
 
8279
 
8280
# Check whether --with-pic was given.
8281
if test "${with_pic+set}" = set; then :
8282
  withval=$with_pic; pic_mode="$withval"
8283
else
8284
  pic_mode=default
8285
fi
8286
 
8287
 
8288
test -z "$pic_mode" && pic_mode=default
8289
 
8290
 
8291
 
8292
 
8293
 
8294
 
8295
 
8296
  # Check whether --enable-fast-install was given.
8297
if test "${enable_fast_install+set}" = set; then :
8298
  enableval=$enable_fast_install; p=${PACKAGE-default}
8299
    case $enableval in
8300
    yes) enable_fast_install=yes ;;
8301
    no) enable_fast_install=no ;;
8302
    *)
8303
      enable_fast_install=no
8304
      # Look at the argument we got.  We use all the common list separators.
8305
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306
      for pkg in $enableval; do
8307
	IFS="$lt_save_ifs"
8308
	if test "X$pkg" = "X$p"; then
8309
	  enable_fast_install=yes
8310
	fi
8311
      done
8312
      IFS="$lt_save_ifs"
8313
      ;;
8314
    esac
8315
else
8316
  enable_fast_install=yes
8317
fi
8318
 
8319
 
8320
 
8321
 
8322
 
8323
 
8324
 
8325
 
8326
 
8327
 
8328
 
8329
# This can be used to rebuild libtool when needed
8330
LIBTOOL_DEPS="$ltmain"
8331
 
8332
# Always use our own libtool.
8333
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8334
 
8335
 
8336
 
8337
 
8338
 
8339
 
8340
 
8341
 
8342
 
8343
 
8344
 
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
 
8354
 
8355
 
8356
 
8357
 
8358
 
8359
test -z "$LN_S" && LN_S="ln -s"
8360
 
8361
 
8362
 
8363
 
8364
 
8365
 
8366
 
8367
 
8368
 
8369
 
8370
 
8371
 
8372
 
8373
 
8374
if test -n "${ZSH_VERSION+set}" ; then
8375
   setopt NO_GLOB_SUBST
8376
fi
8377
 
8378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8379
$as_echo_n "checking for objdir... " >&6; }
8380
if test "${lt_cv_objdir+set}" = set; then :
8381
  $as_echo_n "(cached) " >&6
8382
else
8383
  rm -f .libs 2>/dev/null
8384
mkdir .libs 2>/dev/null
8385
if test -d .libs; then
8386
  lt_cv_objdir=.libs
8387
else
8388
  # MS-DOS does not allow filenames that begin with a dot.
8389
  lt_cv_objdir=_libs
8390
fi
8391
rmdir .libs 2>/dev/null
8392
fi
8393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8394
$as_echo "$lt_cv_objdir" >&6; }
8395
objdir=$lt_cv_objdir
8396
 
8397
 
8398
 
8399
 
8400
 
8401
cat >>confdefs.h <<_ACEOF
8402
#define LT_OBJDIR "$lt_cv_objdir/"
8403
_ACEOF
8404
 
8405
 
8406
 
8407
 
8408
 
8409
 
8410
 
8411
 
8412
 
8413
 
8414
 
8415
 
8416
 
8417
 
8418
 
8419
 
8420
 
8421
case $host_os in
8422
aix3*)
8423
  # AIX sometimes has problems with the GCC collect2 program.  For some
8424
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8425
  # vanish in a puff of smoke.
8426
  if test "X${COLLECT_NAMES+set}" != Xset; then
8427
    COLLECT_NAMES=
8428
    export COLLECT_NAMES
8429
  fi
8430
  ;;
8431
esac
8432
 
8433
# Sed substitution that helps us do robust quoting.  It backslashifies
8434
# metacharacters that are still active within double-quoted strings.
8435
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8436
 
8437
# Same as above, but do not quote variable references.
8438
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8439
 
8440
# Sed substitution to delay expansion of an escaped shell variable in a
8441
# double_quote_subst'ed string.
8442
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8443
 
8444
# Sed substitution to delay expansion of an escaped single quote.
8445
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8446
 
8447
# Sed substitution to avoid accidental globbing in evaled expressions
8448
no_glob_subst='s/\*/\\\*/g'
8449
 
8450
# Global variables:
8451
ofile=libtool
8452
can_build_shared=yes
8453
 
8454
# All known linkers require a `.a' archive for static linking (except MSVC,
8455
# which needs '.lib').
8456
libext=a
8457
 
8458
with_gnu_ld="$lt_cv_prog_gnu_ld"
8459
 
8460
old_CC="$CC"
8461
old_CFLAGS="$CFLAGS"
8462
 
8463
# Set sane defaults for various variables
8464
test -z "$CC" && CC=cc
8465
test -z "$LTCC" && LTCC=$CC
8466
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8467
test -z "$LD" && LD=ld
8468
test -z "$ac_objext" && ac_objext=o
8469
 
8470
for cc_temp in $compiler""; do
8471
  case $cc_temp in
8472
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8473
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8474
    \-*) ;;
8475
    *) break;;
8476
  esac
8477
done
8478
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8479
 
8480
 
8481
# Only perform the check for file, if the check method requires it
8482
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8483
case $deplibs_check_method in
8484
file_magic*)
8485
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8486
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8487
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8488
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8489
  $as_echo_n "(cached) " >&6
8490
else
8491
  case $MAGIC_CMD in
8492
[\\/*] |  ?:[\\/]*)
8493
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8494
  ;;
8495
*)
8496
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8497
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8498
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499
  for ac_dir in $ac_dummy; do
8500
    IFS="$lt_save_ifs"
8501
    test -z "$ac_dir" && ac_dir=.
8502
    if test -f $ac_dir/${ac_tool_prefix}file; then
8503
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8504
      if test -n "$file_magic_test_file"; then
8505
	case $deplibs_check_method in
8506
	"file_magic "*)
8507
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510
	    $EGREP "$file_magic_regex" > /dev/null; then
8511
	    :
8512
	  else
8513
	    cat <<_LT_EOF 1>&2
8514
 
8515
*** Warning: the command libtool uses to detect shared libraries,
8516
*** $file_magic_cmd, produces output that libtool cannot recognize.
8517
*** The result is that libtool may fail to recognize shared libraries
8518
*** as such.  This will affect the creation of libtool libraries that
8519
*** depend on shared libraries, but programs linked with such libtool
8520
*** libraries will work regardless of this problem.  Nevertheless, you
8521
*** may want to report the problem to your system manager and/or to
8522
*** bug-libtool@gnu.org
8523
 
8524
_LT_EOF
8525
	  fi ;;
8526
	esac
8527
      fi
8528
      break
8529
    fi
8530
  done
8531
  IFS="$lt_save_ifs"
8532
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8533
  ;;
8534
esac
8535
fi
8536
 
8537
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538
if test -n "$MAGIC_CMD"; then
8539
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8540
$as_echo "$MAGIC_CMD" >&6; }
8541
else
8542
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543
$as_echo "no" >&6; }
8544
fi
8545
 
8546
 
8547
 
8548
 
8549
 
8550
if test -z "$lt_cv_path_MAGIC_CMD"; then
8551
  if test -n "$ac_tool_prefix"; then
8552
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8553
$as_echo_n "checking for file... " >&6; }
8554
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8555
  $as_echo_n "(cached) " >&6
8556
else
8557
  case $MAGIC_CMD in
8558
[\\/*] |  ?:[\\/]*)
8559
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8560
  ;;
8561
*)
8562
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8563
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8564
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8565
  for ac_dir in $ac_dummy; do
8566
    IFS="$lt_save_ifs"
8567
    test -z "$ac_dir" && ac_dir=.
8568
    if test -f $ac_dir/file; then
8569
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8570
      if test -n "$file_magic_test_file"; then
8571
	case $deplibs_check_method in
8572
	"file_magic "*)
8573
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8574
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8575
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8576
	    $EGREP "$file_magic_regex" > /dev/null; then
8577
	    :
8578
	  else
8579
	    cat <<_LT_EOF 1>&2
8580
 
8581
*** Warning: the command libtool uses to detect shared libraries,
8582
*** $file_magic_cmd, produces output that libtool cannot recognize.
8583
*** The result is that libtool may fail to recognize shared libraries
8584
*** as such.  This will affect the creation of libtool libraries that
8585
*** depend on shared libraries, but programs linked with such libtool
8586
*** libraries will work regardless of this problem.  Nevertheless, you
8587
*** may want to report the problem to your system manager and/or to
8588
*** bug-libtool@gnu.org
8589
 
8590
_LT_EOF
8591
	  fi ;;
8592
	esac
8593
      fi
8594
      break
8595
    fi
8596
  done
8597
  IFS="$lt_save_ifs"
8598
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8599
  ;;
8600
esac
8601
fi
8602
 
8603
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8604
if test -n "$MAGIC_CMD"; then
8605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8606
$as_echo "$MAGIC_CMD" >&6; }
8607
else
8608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609
$as_echo "no" >&6; }
8610
fi
8611
 
8612
 
8613
  else
8614
    MAGIC_CMD=:
8615
  fi
8616
fi
8617
 
8618
  fi
8619
  ;;
8620
esac
8621
 
8622
# Use C for the default configuration in the libtool script
8623
 
8624
lt_save_CC="$CC"
8625
ac_ext=c
8626
ac_cpp='$CPP $CPPFLAGS'
8627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8630
 
8631
 
8632
# Source file extension for C test sources.
8633
ac_ext=c
8634
 
8635
# Object file extension for compiled C test sources.
8636
objext=o
8637
objext=$objext
8638
 
8639
# Code to be used in simple compile tests
8640
lt_simple_compile_test_code="int some_variable = 0;"
8641
 
8642
# Code to be used in simple link tests
8643
lt_simple_link_test_code='int main(){return(0);}'
8644
 
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
# If no C compiler was specified, use CC.
8652
LTCC=${LTCC-"$CC"}
8653
 
8654
# If no C compiler flags were specified, use CFLAGS.
8655
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8656
 
8657
# Allow CC to be a program name with arguments.
8658
compiler=$CC
8659
 
8660
# Save the default compiler, since it gets overwritten when the other
8661
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8662
compiler_DEFAULT=$CC
8663
 
8664
# save warnings/boilerplate of simple test code
8665
ac_outfile=conftest.$ac_objext
8666
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8667
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8668
_lt_compiler_boilerplate=`cat conftest.err`
8669
$RM conftest*
8670
 
8671
ac_outfile=conftest.$ac_objext
8672
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8673
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8674
_lt_linker_boilerplate=`cat conftest.err`
8675
$RM -r conftest*
8676
 
8677
 
8678
if test -n "$compiler"; then
8679
 
8680
lt_prog_compiler_no_builtin_flag=
8681
 
8682
if test "$GCC" = yes; then
8683
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8684
 
8685
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8686
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8687
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8688
  $as_echo_n "(cached) " >&6
8689
else
8690
  lt_cv_prog_compiler_rtti_exceptions=no
8691
   ac_outfile=conftest.$ac_objext
8692
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8693
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8694
   # Insert the option either (1) after the last *FLAGS variable, or
8695
   # (2) before a word containing "conftest.", or (3) at the end.
8696
   # Note that $ac_compile itself does not contain backslashes and begins
8697
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8698
   # The option is referenced via a variable to avoid confusing sed.
8699
   lt_compile=`echo "$ac_compile" | $SED \
8700
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8701
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8702
   -e 's:$: $lt_compiler_flag:'`
8703
   (eval echo "\"\$as_me:8703: $lt_compile\"" >&5)
8704
   (eval "$lt_compile" 2>conftest.err)
8705
   ac_status=$?
8706
   cat conftest.err >&5
8707
   echo "$as_me:8707: \$? = $ac_status" >&5
8708
   if (exit $ac_status) && test -s "$ac_outfile"; then
8709
     # The compiler can only warn and ignore the option if not recognized
8710
     # So say no if there are warnings other than the usual output.
8711
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8712
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8713
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8714
       lt_cv_prog_compiler_rtti_exceptions=yes
8715
     fi
8716
   fi
8717
   $RM conftest*
8718
 
8719
fi
8720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8721
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8722
 
8723
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8724
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8725
else
8726
    :
8727
fi
8728
 
8729
fi
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
  lt_prog_compiler_wl=
8737
lt_prog_compiler_pic=
8738
lt_prog_compiler_static=
8739
 
8740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8741
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8742
 
8743
  if test "$GCC" = yes; then
8744
    lt_prog_compiler_wl='-Wl,'
8745
    lt_prog_compiler_static='-static'
8746
 
8747
    case $host_os in
8748
      aix*)
8749
      # All AIX code is PIC.
8750
      if test "$host_cpu" = ia64; then
8751
	# AIX 5 now supports IA64 processor
8752
	lt_prog_compiler_static='-Bstatic'
8753
      fi
8754
      ;;
8755
 
8756
    amigaos*)
8757
      case $host_cpu in
8758
      powerpc)
8759
            # see comment about AmigaOS4 .so support
8760
            lt_prog_compiler_pic='-fPIC'
8761
        ;;
8762
      m68k)
8763
            # FIXME: we need at least 68020 code to build shared libraries, but
8764
            # adding the `-m68020' flag to GCC prevents building anything better,
8765
            # like `-m68040'.
8766
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8767
        ;;
8768
      esac
8769
      ;;
8770
 
8771
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8772
      # PIC is the default for these OSes.
8773
      ;;
8774
 
8775
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8776
      # This hack is so that the source file can tell whether it is being
8777
      # built for inclusion in a dll (and should export symbols for example).
8778
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8779
      # (--disable-auto-import) libraries
8780
      lt_prog_compiler_pic='-DDLL_EXPORT'
8781
      ;;
8782
 
8783
    darwin* | rhapsody*)
8784
      # PIC is the default on this platform
8785
      # Common symbols not allowed in MH_DYLIB files
8786
      lt_prog_compiler_pic='-fno-common'
8787
      ;;
8788
 
8789
    hpux*)
8790
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8791
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8792
      # sets the default TLS model and affects inlining.
8793
      case $host_cpu in
8794
      hppa*64*)
8795
	# +Z the default
8796
	;;
8797
      *)
8798
	lt_prog_compiler_pic='-fPIC'
8799
	;;
8800
      esac
8801
      ;;
8802
 
8803
    interix[3-9]*)
8804
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8805
      # Instead, we relocate shared libraries at runtime.
8806
      ;;
8807
 
8808
    msdosdjgpp*)
8809
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8810
      # on systems that don't support them.
8811
      lt_prog_compiler_can_build_shared=no
8812
      enable_shared=no
8813
      ;;
8814
 
8815
    *nto* | *qnx*)
8816
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8817
      # it will coredump.
8818
      lt_prog_compiler_pic='-fPIC -shared'
8819
      ;;
8820
 
8821
    sysv4*MP*)
8822
      if test -d /usr/nec; then
8823
	lt_prog_compiler_pic=-Kconform_pic
8824
      fi
8825
      ;;
8826
 
8827
    *)
8828
      lt_prog_compiler_pic='-fPIC'
8829
      ;;
8830
    esac
8831
  else
8832
    # PORTME Check for flag to pass linker flags through the system compiler.
8833
    case $host_os in
8834
    aix*)
8835
      lt_prog_compiler_wl='-Wl,'
8836
      if test "$host_cpu" = ia64; then
8837
	# AIX 5 now supports IA64 processor
8838
	lt_prog_compiler_static='-Bstatic'
8839
      else
8840
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8841
      fi
8842
      ;;
8843
 
8844
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8845
      # This hack is so that the source file can tell whether it is being
8846
      # built for inclusion in a dll (and should export symbols for example).
8847
      lt_prog_compiler_pic='-DDLL_EXPORT'
8848
      ;;
8849
 
8850
    hpux9* | hpux10* | hpux11*)
8851
      lt_prog_compiler_wl='-Wl,'
8852
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8853
      # not for PA HP-UX.
8854
      case $host_cpu in
8855
      hppa*64*|ia64*)
8856
	# +Z the default
8857
	;;
8858
      *)
8859
	lt_prog_compiler_pic='+Z'
8860
	;;
8861
      esac
8862
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8863
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8864
      ;;
8865
 
8866
    irix5* | irix6* | nonstopux*)
8867
      lt_prog_compiler_wl='-Wl,'
8868
      # PIC (with -KPIC) is the default.
8869
      lt_prog_compiler_static='-non_shared'
8870
      ;;
8871
 
8872
    linux* | k*bsd*-gnu)
8873
      case $cc_basename in
8874
      # old Intel for x86_64 which still supported -KPIC.
8875
      ecc*)
8876
	lt_prog_compiler_wl='-Wl,'
8877
	lt_prog_compiler_pic='-KPIC'
8878
	lt_prog_compiler_static='-static'
8879
        ;;
8880
      # icc used to be incompatible with GCC.
8881
      # ICC 10 doesn't accept -KPIC any more.
8882
      icc* | ifort*)
8883
	lt_prog_compiler_wl='-Wl,'
8884
	lt_prog_compiler_pic='-fPIC'
8885
	lt_prog_compiler_static='-static'
8886
        ;;
8887
      # Lahey Fortran 8.1.
8888
      lf95*)
8889
	lt_prog_compiler_wl='-Wl,'
8890
	lt_prog_compiler_pic='--shared'
8891
	lt_prog_compiler_static='--static'
8892
	;;
8893
      pgcc* | pgf77* | pgf90* | pgf95*)
8894
        # Portland Group compilers (*not* the Pentium gcc compiler,
8895
	# which looks to be a dead project)
8896
	lt_prog_compiler_wl='-Wl,'
8897
	lt_prog_compiler_pic='-fpic'
8898
	lt_prog_compiler_static='-Bstatic'
8899
        ;;
8900
      ccc*)
8901
        lt_prog_compiler_wl='-Wl,'
8902
        # All Alpha code is PIC.
8903
        lt_prog_compiler_static='-non_shared'
8904
        ;;
8905
      xl*)
8906
	# IBM XL C 8.0/Fortran 10.1 on PPC
8907
	lt_prog_compiler_wl='-Wl,'
8908
	lt_prog_compiler_pic='-qpic'
8909
	lt_prog_compiler_static='-qstaticlink'
8910
	;;
8911
      *)
8912
	case `$CC -V 2>&1 | sed 5q` in
8913
	*Sun\ C*)
8914
	  # Sun C 5.9
8915
	  lt_prog_compiler_pic='-KPIC'
8916
	  lt_prog_compiler_static='-Bstatic'
8917
	  lt_prog_compiler_wl='-Wl,'
8918
	  ;;
8919
	*Sun\ F*)
8920
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8921
	  lt_prog_compiler_pic='-KPIC'
8922
	  lt_prog_compiler_static='-Bstatic'
8923
	  lt_prog_compiler_wl=''
8924
	  ;;
8925
	esac
8926
	;;
8927
      esac
8928
      ;;
8929
 
8930
    newsos6)
8931
      lt_prog_compiler_pic='-KPIC'
8932
      lt_prog_compiler_static='-Bstatic'
8933
      ;;
8934
 
8935
    *nto* | *qnx*)
8936
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8937
      # it will coredump.
8938
      lt_prog_compiler_pic='-fPIC -shared'
8939
      ;;
8940
 
8941
    osf3* | osf4* | osf5*)
8942
      lt_prog_compiler_wl='-Wl,'
8943
      # All OSF/1 code is PIC.
8944
      lt_prog_compiler_static='-non_shared'
8945
      ;;
8946
 
8947
    rdos*)
8948
      lt_prog_compiler_static='-non_shared'
8949
      ;;
8950
 
8951
    solaris*)
8952
      lt_prog_compiler_pic='-KPIC'
8953
      lt_prog_compiler_static='-Bstatic'
8954
      case $cc_basename in
8955
      f77* | f90* | f95*)
8956
	lt_prog_compiler_wl='-Qoption ld ';;
8957
      *)
8958
	lt_prog_compiler_wl='-Wl,';;
8959
      esac
8960
      ;;
8961
 
8962
    sunos4*)
8963
      lt_prog_compiler_wl='-Qoption ld '
8964
      lt_prog_compiler_pic='-PIC'
8965
      lt_prog_compiler_static='-Bstatic'
8966
      ;;
8967
 
8968
    sysv4 | sysv4.2uw2* | sysv4.3*)
8969
      lt_prog_compiler_wl='-Wl,'
8970
      lt_prog_compiler_pic='-KPIC'
8971
      lt_prog_compiler_static='-Bstatic'
8972
      ;;
8973
 
8974
    sysv4*MP*)
8975
      if test -d /usr/nec ;then
8976
	lt_prog_compiler_pic='-Kconform_pic'
8977
	lt_prog_compiler_static='-Bstatic'
8978
      fi
8979
      ;;
8980
 
8981
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8982
      lt_prog_compiler_wl='-Wl,'
8983
      lt_prog_compiler_pic='-KPIC'
8984
      lt_prog_compiler_static='-Bstatic'
8985
      ;;
8986
 
8987
    unicos*)
8988
      lt_prog_compiler_wl='-Wl,'
8989
      lt_prog_compiler_can_build_shared=no
8990
      ;;
8991
 
8992
    uts4*)
8993
      lt_prog_compiler_pic='-pic'
8994
      lt_prog_compiler_static='-Bstatic'
8995
      ;;
8996
 
8997
    *)
8998
      lt_prog_compiler_can_build_shared=no
8999
      ;;
9000
    esac
9001
  fi
9002
 
9003
case $host_os in
9004
  # For platforms which do not support PIC, -DPIC is meaningless:
9005
  *djgpp*)
9006
    lt_prog_compiler_pic=
9007
    ;;
9008
  *)
9009
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9010
    ;;
9011
esac
9012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9013
$as_echo "$lt_prog_compiler_pic" >&6; }
9014
 
9015
 
9016
 
9017
 
9018
 
9019
 
9020
#
9021
# Check to make sure the PIC flag actually works.
9022
#
9023
if test -n "$lt_prog_compiler_pic"; then
9024
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9025
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9026
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9027
  $as_echo_n "(cached) " >&6
9028
else
9029
  lt_cv_prog_compiler_pic_works=no
9030
   ac_outfile=conftest.$ac_objext
9031
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9033
   # Insert the option either (1) after the last *FLAGS variable, or
9034
   # (2) before a word containing "conftest.", or (3) at the end.
9035
   # Note that $ac_compile itself does not contain backslashes and begins
9036
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9037
   # The option is referenced via a variable to avoid confusing sed.
9038
   lt_compile=`echo "$ac_compile" | $SED \
9039
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9040
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9041
   -e 's:$: $lt_compiler_flag:'`
9042
   (eval echo "\"\$as_me:9042: $lt_compile\"" >&5)
9043
   (eval "$lt_compile" 2>conftest.err)
9044
   ac_status=$?
9045
   cat conftest.err >&5
9046
   echo "$as_me:9046: \$? = $ac_status" >&5
9047
   if (exit $ac_status) && test -s "$ac_outfile"; then
9048
     # The compiler can only warn and ignore the option if not recognized
9049
     # So say no if there are warnings other than the usual output.
9050
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9051
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9052
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9053
       lt_cv_prog_compiler_pic_works=yes
9054
     fi
9055
   fi
9056
   $RM conftest*
9057
 
9058
fi
9059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9060
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9061
 
9062
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9063
    case $lt_prog_compiler_pic in
9064
     "" | " "*) ;;
9065
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9066
     esac
9067
else
9068
    lt_prog_compiler_pic=
9069
     lt_prog_compiler_can_build_shared=no
9070
fi
9071
 
9072
fi
9073
 
9074
 
9075
 
9076
 
9077
 
9078
 
9079
#
9080
# Check to make sure the static flag actually works.
9081
#
9082
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9084
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9085
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9086
  $as_echo_n "(cached) " >&6
9087
else
9088
  lt_cv_prog_compiler_static_works=no
9089
   save_LDFLAGS="$LDFLAGS"
9090
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9091
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9092
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9093
     # The linker can only warn and ignore the option if not recognized
9094
     # So say no if there are warnings
9095
     if test -s conftest.err; then
9096
       # Append any errors to the config.log.
9097
       cat conftest.err 1>&5
9098
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9099
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100
       if diff conftest.exp conftest.er2 >/dev/null; then
9101
         lt_cv_prog_compiler_static_works=yes
9102
       fi
9103
     else
9104
       lt_cv_prog_compiler_static_works=yes
9105
     fi
9106
   fi
9107
   $RM -r conftest*
9108
   LDFLAGS="$save_LDFLAGS"
9109
 
9110
fi
9111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9112
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9113
 
9114
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9115
    :
9116
else
9117
    lt_prog_compiler_static=
9118
fi
9119
 
9120
 
9121
 
9122
 
9123
 
9124
 
9125
 
9126
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9127
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9128
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9129
  $as_echo_n "(cached) " >&6
9130
else
9131
  lt_cv_prog_compiler_c_o=no
9132
   $RM -r conftest 2>/dev/null
9133
   mkdir conftest
9134
   cd conftest
9135
   mkdir out
9136
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9137
 
9138
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9139
   # Insert the option either (1) after the last *FLAGS variable, or
9140
   # (2) before a word containing "conftest.", or (3) at the end.
9141
   # Note that $ac_compile itself does not contain backslashes and begins
9142
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9143
   lt_compile=`echo "$ac_compile" | $SED \
9144
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9145
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9146
   -e 's:$: $lt_compiler_flag:'`
9147
   (eval echo "\"\$as_me:9147: $lt_compile\"" >&5)
9148
   (eval "$lt_compile" 2>out/conftest.err)
9149
   ac_status=$?
9150
   cat out/conftest.err >&5
9151
   echo "$as_me:9151: \$? = $ac_status" >&5
9152
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9153
   then
9154
     # The compiler can only warn and ignore the option if not recognized
9155
     # So say no if there are warnings
9156
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9157
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9158
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9159
       lt_cv_prog_compiler_c_o=yes
9160
     fi
9161
   fi
9162
   chmod u+w . 2>&5
9163
   $RM conftest*
9164
   # SGI C++ compiler will create directory out/ii_files/ for
9165
   # template instantiation
9166
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9167
   $RM out/* && rmdir out
9168
   cd ..
9169
   $RM -r conftest
9170
   $RM conftest*
9171
 
9172
fi
9173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9174
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9175
 
9176
 
9177
 
9178
 
9179
 
9180
 
9181
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9182
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9183
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9184
  $as_echo_n "(cached) " >&6
9185
else
9186
  lt_cv_prog_compiler_c_o=no
9187
   $RM -r conftest 2>/dev/null
9188
   mkdir conftest
9189
   cd conftest
9190
   mkdir out
9191
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9192
 
9193
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9194
   # Insert the option either (1) after the last *FLAGS variable, or
9195
   # (2) before a word containing "conftest.", or (3) at the end.
9196
   # Note that $ac_compile itself does not contain backslashes and begins
9197
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9198
   lt_compile=`echo "$ac_compile" | $SED \
9199
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9200
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9201
   -e 's:$: $lt_compiler_flag:'`
9202
   (eval echo "\"\$as_me:9202: $lt_compile\"" >&5)
9203
   (eval "$lt_compile" 2>out/conftest.err)
9204
   ac_status=$?
9205
   cat out/conftest.err >&5
9206
   echo "$as_me:9206: \$? = $ac_status" >&5
9207
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9208
   then
9209
     # The compiler can only warn and ignore the option if not recognized
9210
     # So say no if there are warnings
9211
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9212
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9213
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9214
       lt_cv_prog_compiler_c_o=yes
9215
     fi
9216
   fi
9217
   chmod u+w . 2>&5
9218
   $RM conftest*
9219
   # SGI C++ compiler will create directory out/ii_files/ for
9220
   # template instantiation
9221
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9222
   $RM out/* && rmdir out
9223
   cd ..
9224
   $RM -r conftest
9225
   $RM conftest*
9226
 
9227
fi
9228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9229
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9230
 
9231
 
9232
 
9233
 
9234
hard_links="nottested"
9235
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9236
  # do not overwrite the value of need_locks provided by the user
9237
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9238
$as_echo_n "checking if we can lock with hard links... " >&6; }
9239
  hard_links=yes
9240
  $RM conftest*
9241
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9242
  touch conftest.a
9243
  ln conftest.a conftest.b 2>&5 || hard_links=no
9244
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9246
$as_echo "$hard_links" >&6; }
9247
  if test "$hard_links" = no; then
9248
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9249
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9250
    need_locks=warn
9251
  fi
9252
else
9253
  need_locks=no
9254
fi
9255
 
9256
 
9257
 
9258
 
9259
 
9260
 
9261
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9262
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9263
 
9264
  runpath_var=
9265
  allow_undefined_flag=
9266
  always_export_symbols=no
9267
  archive_cmds=
9268
  archive_expsym_cmds=
9269
  compiler_needs_object=no
9270
  enable_shared_with_static_runtimes=no
9271
  export_dynamic_flag_spec=
9272
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9273
  hardcode_automatic=no
9274
  hardcode_direct=no
9275
  hardcode_direct_absolute=no
9276
  hardcode_libdir_flag_spec=
9277
  hardcode_libdir_flag_spec_ld=
9278
  hardcode_libdir_separator=
9279
  hardcode_minus_L=no
9280
  hardcode_shlibpath_var=unsupported
9281
  inherit_rpath=no
9282
  link_all_deplibs=unknown
9283
  module_cmds=
9284
  module_expsym_cmds=
9285
  old_archive_from_new_cmds=
9286
  old_archive_from_expsyms_cmds=
9287
  thread_safe_flag_spec=
9288
  whole_archive_flag_spec=
9289
  # include_expsyms should be a list of space-separated symbols to be *always*
9290
  # included in the symbol list
9291
  include_expsyms=
9292
  # exclude_expsyms can be an extended regexp of symbols to exclude
9293
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9294
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9295
  # as well as any symbol that contains `d'.
9296
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9297
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9298
  # platforms (ab)use it in PIC code, but their linkers get confused if
9299
  # the symbol is explicitly referenced.  Since portable code cannot
9300
  # rely on this symbol name, it's probably fine to never include it in
9301
  # preloaded symbol tables.
9302
  # Exclude shared library initialization/finalization symbols.
9303
  extract_expsyms_cmds=
9304
 
9305
  case $host_os in
9306
  cygwin* | mingw* | pw32* | cegcc*)
9307
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9308
    # When not using gcc, we currently assume that we are using
9309
    # Microsoft Visual C++.
9310
    if test "$GCC" != yes; then
9311
      with_gnu_ld=no
9312
    fi
9313
    ;;
9314
  interix*)
9315
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9316
    with_gnu_ld=yes
9317
    ;;
9318
  openbsd*)
9319
    with_gnu_ld=no
9320
    ;;
9321
  linux* | k*bsd*-gnu)
9322
    link_all_deplibs=no
9323
    ;;
9324
  esac
9325
 
9326
  ld_shlibs=yes
9327
  if test "$with_gnu_ld" = yes; then
9328
    # If archive_cmds runs LD, not CC, wlarc should be empty
9329
    wlarc='${wl}'
9330
 
9331
    # Set some defaults for GNU ld with shared library support. These
9332
    # are reset later if shared libraries are not supported. Putting them
9333
    # here allows them to be overridden if necessary.
9334
    runpath_var=LD_RUN_PATH
9335
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336
    export_dynamic_flag_spec='${wl}--export-dynamic'
9337
    # ancient GNU ld didn't support --whole-archive et. al.
9338
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9339
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9340
    else
9341
      whole_archive_flag_spec=
9342
    fi
9343
    supports_anon_versioning=no
9344
    case `$LD -v 2>&1` in
9345
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9346
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9347
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9348
      *\ 2.11.*) ;; # other 2.11 versions
9349
      *) supports_anon_versioning=yes ;;
9350
    esac
9351
 
9352
    # See if GNU ld supports shared libraries.
9353
    case $host_os in
9354
    aix[3-9]*)
9355
      # On AIX/PPC, the GNU linker is very broken
9356
      if test "$host_cpu" != ia64; then
9357
	ld_shlibs=no
9358
	cat <<_LT_EOF 1>&2
9359
 
9360
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9361
*** to be unable to reliably create shared libraries on AIX.
9362
*** Therefore, libtool is disabling shared libraries support.  If you
9363
*** really care for shared libraries, you may want to modify your PATH
9364
*** so that a non-GNU linker is found, and then restart.
9365
 
9366
_LT_EOF
9367
      fi
9368
      ;;
9369
 
9370
    amigaos*)
9371
      case $host_cpu in
9372
      powerpc)
9373
            # see comment about AmigaOS4 .so support
9374
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375
            archive_expsym_cmds=''
9376
        ;;
9377
      m68k)
9378
            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)'
9379
            hardcode_libdir_flag_spec='-L$libdir'
9380
            hardcode_minus_L=yes
9381
        ;;
9382
      esac
9383
      ;;
9384
 
9385
    beos*)
9386
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9387
	allow_undefined_flag=unsupported
9388
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9389
	# support --undefined.  This deserves some investigation.  FIXME
9390
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391
      else
9392
	ld_shlibs=no
9393
      fi
9394
      ;;
9395
 
9396
    cygwin* | mingw* | pw32* | cegcc*)
9397
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9398
      # as there is no search path for DLLs.
9399
      hardcode_libdir_flag_spec='-L$libdir'
9400
      allow_undefined_flag=unsupported
9401
      always_export_symbols=no
9402
      enable_shared_with_static_runtimes=yes
9403
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9404
 
9405
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9406
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9407
	# If the export-symbols file already is a .def file (1st line
9408
	# is EXPORTS), use it as is; otherwise, prepend...
9409
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9410
	  cp $export_symbols $output_objdir/$soname.def;
9411
	else
9412
	  echo EXPORTS > $output_objdir/$soname.def;
9413
	  cat $export_symbols >> $output_objdir/$soname.def;
9414
	fi~
9415
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9416
      else
9417
	ld_shlibs=no
9418
      fi
9419
      ;;
9420
 
9421
    interix[3-9]*)
9422
      hardcode_direct=no
9423
      hardcode_shlibpath_var=no
9424
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9425
      export_dynamic_flag_spec='${wl}-E'
9426
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9427
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9428
      # default) and relocated if they conflict, which is a slow very memory
9429
      # consuming and fragmenting process.  To avoid this, we pick a random,
9430
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9431
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9432
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9433
      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'
9434
      ;;
9435
 
9436
    gnu* | linux* | tpf* | k*bsd*-gnu)
9437
      tmp_diet=no
9438
      if test "$host_os" = linux-dietlibc; then
9439
	case $cc_basename in
9440
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9441
	esac
9442
      fi
9443
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9444
	 && test "$tmp_diet" = no
9445
      then
9446
	tmp_addflag=
9447
	tmp_sharedflag='-shared'
9448
	case $cc_basename,$host_cpu in
9449
        pgcc*)				# Portland Group C compiler
9450
	  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'
9451
	  tmp_addflag=' $pic_flag'
9452
	  ;;
9453
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9454
	  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'
9455
	  tmp_addflag=' $pic_flag -Mnomain' ;;
9456
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9457
	  tmp_addflag=' -i_dynamic' ;;
9458
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9459
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9460
	ifc* | ifort*)			# Intel Fortran compiler
9461
	  tmp_addflag=' -nofor_main' ;;
9462
	lf95*)				# Lahey Fortran 8.1
9463
	  whole_archive_flag_spec=
9464
	  tmp_sharedflag='--shared' ;;
9465
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9466
	  tmp_sharedflag='-qmkshrobj'
9467
	  tmp_addflag= ;;
9468
	esac
9469
	case `$CC -V 2>&1 | sed 5q` in
9470
	*Sun\ C*)			# Sun C 5.9
9471
	  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'
9472
	  compiler_needs_object=yes
9473
	  tmp_sharedflag='-G' ;;
9474
	*Sun\ F*)			# Sun Fortran 8.3
9475
	  tmp_sharedflag='-G' ;;
9476
	esac
9477
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478
 
9479
        if test "x$supports_anon_versioning" = xyes; then
9480
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9481
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9482
	    echo "local: *; };" >> $output_objdir/$libname.ver~
9483
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9484
        fi
9485
 
9486
	case $cc_basename in
9487
	xlf*)
9488
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9489
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9490
	  hardcode_libdir_flag_spec=
9491
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9492
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9493
	  if test "x$supports_anon_versioning" = xyes; then
9494
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9495
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9496
	      echo "local: *; };" >> $output_objdir/$libname.ver~
9497
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9498
	  fi
9499
	  ;;
9500
	esac
9501
      else
9502
        ld_shlibs=no
9503
      fi
9504
      ;;
9505
 
9506
    netbsd* | netbsdelf*-gnu)
9507
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9508
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9509
	wlarc=
9510
      else
9511
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9513
      fi
9514
      ;;
9515
 
9516
    solaris*)
9517
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9518
	ld_shlibs=no
9519
	cat <<_LT_EOF 1>&2
9520
 
9521
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9522
*** create shared libraries on Solaris systems.  Therefore, libtool
9523
*** is disabling shared libraries support.  We urge you to upgrade GNU
9524
*** binutils to release 2.9.1 or newer.  Another option is to modify
9525
*** your PATH or compiler configuration so that the native linker is
9526
*** used, and then restart.
9527
 
9528
_LT_EOF
9529
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532
      else
9533
	ld_shlibs=no
9534
      fi
9535
      ;;
9536
 
9537
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9538
      case `$LD -v 2>&1` in
9539
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9540
	ld_shlibs=no
9541
	cat <<_LT_EOF 1>&2
9542
 
9543
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9544
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9545
*** is disabling shared libraries support.  We urge you to upgrade GNU
9546
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9547
*** your PATH or compiler configuration so that the native linker is
9548
*** used, and then restart.
9549
 
9550
_LT_EOF
9551
	;;
9552
	*)
9553
	  # For security reasons, it is highly recommended that you always
9554
	  # use absolute paths for naming shared libraries, and exclude the
9555
	  # DT_RUNPATH tag from executables and libraries.  But doing so
9556
	  # requires that you compile everything twice, which is a pain.
9557
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9561
	  else
9562
	    ld_shlibs=no
9563
	  fi
9564
	;;
9565
      esac
9566
      ;;
9567
 
9568
    sunos4*)
9569
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570
      wlarc=
9571
      hardcode_direct=yes
9572
      hardcode_shlibpath_var=no
9573
      ;;
9574
 
9575
    *)
9576
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9577
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579
      else
9580
	ld_shlibs=no
9581
      fi
9582
      ;;
9583
    esac
9584
 
9585
    if test "$ld_shlibs" = no; then
9586
      runpath_var=
9587
      hardcode_libdir_flag_spec=
9588
      export_dynamic_flag_spec=
9589
      whole_archive_flag_spec=
9590
    fi
9591
  else
9592
    # PORTME fill in a description of your system's linker (not GNU ld)
9593
    case $host_os in
9594
    aix3*)
9595
      allow_undefined_flag=unsupported
9596
      always_export_symbols=yes
9597
      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'
9598
      # Note: this linker hardcodes the directories in LIBPATH if there
9599
      # are no directories specified by -L.
9600
      hardcode_minus_L=yes
9601
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9602
	# Neither direct hardcoding nor static linking is supported with a
9603
	# broken collect2.
9604
	hardcode_direct=unsupported
9605
      fi
9606
      ;;
9607
 
9608
    aix[4-9]*)
9609
      if test "$host_cpu" = ia64; then
9610
	# On IA64, the linker does run time linking by default, so we don't
9611
	# have to do anything special.
9612
	aix_use_runtimelinking=no
9613
	exp_sym_flag='-Bexport'
9614
	no_entry_flag=""
9615
      else
9616
	# If we're using GNU nm, then we don't want the "-C" option.
9617
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9618
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9619
	  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'
9620
	else
9621
	  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'
9622
	fi
9623
	aix_use_runtimelinking=no
9624
 
9625
	# Test if we are trying to use run time linking or normal
9626
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9627
	# need to do runtime linking.
9628
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9629
	  for ld_flag in $LDFLAGS; do
9630
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9631
	    aix_use_runtimelinking=yes
9632
	    break
9633
	  fi
9634
	  done
9635
	  ;;
9636
	esac
9637
 
9638
	exp_sym_flag='-bexport'
9639
	no_entry_flag='-bnoentry'
9640
      fi
9641
 
9642
      # When large executables or shared objects are built, AIX ld can
9643
      # have problems creating the table of contents.  If linking a library
9644
      # or program results in "error TOC overflow" add -mminimal-toc to
9645
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9646
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9647
 
9648
      archive_cmds=''
9649
      hardcode_direct=yes
9650
      hardcode_direct_absolute=yes
9651
      hardcode_libdir_separator=':'
9652
      link_all_deplibs=yes
9653
      file_list_spec='${wl}-f,'
9654
 
9655
      if test "$GCC" = yes; then
9656
	case $host_os in aix4.[012]|aix4.[012].*)
9657
	# We only want to do this on AIX 4.2 and lower, the check
9658
	# below for broken collect2 doesn't work under 4.3+
9659
	  collect2name=`${CC} -print-prog-name=collect2`
9660
	  if test -f "$collect2name" &&
9661
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9662
	  then
9663
	  # We have reworked collect2
9664
	  :
9665
	  else
9666
	  # We have old collect2
9667
	  hardcode_direct=unsupported
9668
	  # It fails to find uninstalled libraries when the uninstalled
9669
	  # path is not listed in the libpath.  Setting hardcode_minus_L
9670
	  # to unsupported forces relinking
9671
	  hardcode_minus_L=yes
9672
	  hardcode_libdir_flag_spec='-L$libdir'
9673
	  hardcode_libdir_separator=
9674
	  fi
9675
	  ;;
9676
	esac
9677
	shared_flag='-shared'
9678
	if test "$aix_use_runtimelinking" = yes; then
9679
	  shared_flag="$shared_flag "'${wl}-G'
9680
	fi
9681
	link_all_deplibs=no
9682
      else
9683
	# not using gcc
9684
	if test "$host_cpu" = ia64; then
9685
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9686
	# chokes on -Wl,-G. The following line is correct:
9687
	  shared_flag='-G'
9688
	else
9689
	  if test "$aix_use_runtimelinking" = yes; then
9690
	    shared_flag='${wl}-G'
9691
	  else
9692
	    shared_flag='${wl}-bM:SRE'
9693
	  fi
9694
	fi
9695
      fi
9696
 
9697
      export_dynamic_flag_spec='${wl}-bexpall'
9698
      # It seems that -bexpall does not export symbols beginning with
9699
      # underscore (_), so it is better to generate a list of symbols to export.
9700
      always_export_symbols=yes
9701
      if test "$aix_use_runtimelinking" = yes; then
9702
	# Warning - without using the other runtime loading flags (-brtl),
9703
	# -berok will link without error, but may produce a broken library.
9704
	allow_undefined_flag='-berok'
9705
        # Determine the default libpath from the value encoded in an
9706
        # empty executable.
9707
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708
/* end confdefs.h.  */
9709
 
9710
int
9711
main ()
9712
{
9713
 
9714
  ;
9715
  return 0;
9716
}
9717
_ACEOF
9718
if ac_fn_c_try_link "$LINENO"; then :
9719
 
9720
lt_aix_libpath_sed='
9721
    /Import File Strings/,/^$/ {
9722
	/^0/ {
9723
	    s/^0  *\(.*\)$/\1/
9724
	    p
9725
	}
9726
    }'
9727
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728
# Check for a 64-bit object if we didn't find anything.
9729
if test -z "$aix_libpath"; then
9730
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731
fi
9732
fi
9733
rm -f core conftest.err conftest.$ac_objext \
9734
    conftest$ac_exeext conftest.$ac_ext
9735
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9736
 
9737
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9738
        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"
9739
      else
9740
	if test "$host_cpu" = ia64; then
9741
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9742
	  allow_undefined_flag="-z nodefs"
9743
	  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"
9744
	else
9745
	 # Determine the default libpath from the value encoded in an
9746
	 # empty executable.
9747
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748
/* end confdefs.h.  */
9749
 
9750
int
9751
main ()
9752
{
9753
 
9754
  ;
9755
  return 0;
9756
}
9757
_ACEOF
9758
if ac_fn_c_try_link "$LINENO"; then :
9759
 
9760
lt_aix_libpath_sed='
9761
    /Import File Strings/,/^$/ {
9762
	/^0/ {
9763
	    s/^0  *\(.*\)$/\1/
9764
	    p
9765
	}
9766
    }'
9767
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768
# Check for a 64-bit object if we didn't find anything.
9769
if test -z "$aix_libpath"; then
9770
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9771
fi
9772
fi
9773
rm -f core conftest.err conftest.$ac_objext \
9774
    conftest$ac_exeext conftest.$ac_ext
9775
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9776
 
9777
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9778
	  # Warning - without using the other run time loading flags,
9779
	  # -berok will link without error, but may produce a broken library.
9780
	  no_undefined_flag=' ${wl}-bernotok'
9781
	  allow_undefined_flag=' ${wl}-berok'
9782
	  # Exported symbols can be pulled into shared objects from archives
9783
	  whole_archive_flag_spec='$convenience'
9784
	  archive_cmds_need_lc=yes
9785
	  # This is similar to how AIX traditionally builds its shared libraries.
9786
	  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'
9787
	fi
9788
      fi
9789
      ;;
9790
 
9791
    amigaos*)
9792
      case $host_cpu in
9793
      powerpc)
9794
            # see comment about AmigaOS4 .so support
9795
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796
            archive_expsym_cmds=''
9797
        ;;
9798
      m68k)
9799
            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)'
9800
            hardcode_libdir_flag_spec='-L$libdir'
9801
            hardcode_minus_L=yes
9802
        ;;
9803
      esac
9804
      ;;
9805
 
9806
    bsdi[45]*)
9807
      export_dynamic_flag_spec=-rdynamic
9808
      ;;
9809
 
9810
    cygwin* | mingw* | pw32* | cegcc*)
9811
      # When not using gcc, we currently assume that we are using
9812
      # Microsoft Visual C++.
9813
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9814
      # no search path for DLLs.
9815
      hardcode_libdir_flag_spec=' '
9816
      allow_undefined_flag=unsupported
9817
      # Tell ltmain to make .lib files, not .a files.
9818
      libext=lib
9819
      # Tell ltmain to make .dll files, not .so files.
9820
      shrext_cmds=".dll"
9821
      # FIXME: Setting linknames here is a bad hack.
9822
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9823
      # The linker will automatically build a .lib file if we build a DLL.
9824
      old_archive_from_new_cmds='true'
9825
      # FIXME: Should let the user specify the lib program.
9826
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9827
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9828
      enable_shared_with_static_runtimes=yes
9829
      ;;
9830
 
9831
    darwin* | rhapsody*)
9832
 
9833
 
9834
  archive_cmds_need_lc=no
9835
  hardcode_direct=no
9836
  hardcode_automatic=yes
9837
  hardcode_shlibpath_var=unsupported
9838
  whole_archive_flag_spec=''
9839
  link_all_deplibs=yes
9840
  allow_undefined_flag="$_lt_dar_allow_undefined"
9841
  case $cc_basename in
9842
     ifort*) _lt_dar_can_shared=yes ;;
9843
     *) _lt_dar_can_shared=$GCC ;;
9844
  esac
9845
  if test "$_lt_dar_can_shared" = "yes"; then
9846
    output_verbose_link_cmd=echo
9847
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9848
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9849
    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}"
9850
    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}"
9851
 
9852
  else
9853
  ld_shlibs=no
9854
  fi
9855
 
9856
      ;;
9857
 
9858
    dgux*)
9859
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860
      hardcode_libdir_flag_spec='-L$libdir'
9861
      hardcode_shlibpath_var=no
9862
      ;;
9863
 
9864
    freebsd1*)
9865
      ld_shlibs=no
9866
      ;;
9867
 
9868
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9869
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9870
    # does not break anything, and helps significantly (at the cost of a little
9871
    # extra space).
9872
    freebsd2.2*)
9873
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9874
      hardcode_libdir_flag_spec='-R$libdir'
9875
      hardcode_direct=yes
9876
      hardcode_shlibpath_var=no
9877
      ;;
9878
 
9879
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9880
    freebsd2*)
9881
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882
      hardcode_direct=yes
9883
      hardcode_minus_L=yes
9884
      hardcode_shlibpath_var=no
9885
      ;;
9886
 
9887
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9888
    freebsd* | dragonfly*)
9889
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9890
      hardcode_libdir_flag_spec='-R$libdir'
9891
      hardcode_direct=yes
9892
      hardcode_shlibpath_var=no
9893
      ;;
9894
 
9895
    hpux9*)
9896
      if test "$GCC" = yes; then
9897
	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'
9898
      else
9899
	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'
9900
      fi
9901
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902
      hardcode_libdir_separator=:
9903
      hardcode_direct=yes
9904
 
9905
      # hardcode_minus_L: Not really in the search PATH,
9906
      # but as the default location of the library.
9907
      hardcode_minus_L=yes
9908
      export_dynamic_flag_spec='${wl}-E'
9909
      ;;
9910
 
9911
    hpux10*)
9912
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9913
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914
      else
9915
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9916
      fi
9917
      if test "$with_gnu_ld" = no; then
9918
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919
	hardcode_libdir_flag_spec_ld='+b $libdir'
9920
	hardcode_libdir_separator=:
9921
	hardcode_direct=yes
9922
	hardcode_direct_absolute=yes
9923
	export_dynamic_flag_spec='${wl}-E'
9924
	# hardcode_minus_L: Not really in the search PATH,
9925
	# but as the default location of the library.
9926
	hardcode_minus_L=yes
9927
      fi
9928
      ;;
9929
 
9930
    hpux11*)
9931
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9932
	case $host_cpu in
9933
	hppa*64*)
9934
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935
	  ;;
9936
	ia64*)
9937
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938
	  ;;
9939
	*)
9940
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941
	  ;;
9942
	esac
9943
      else
9944
	case $host_cpu in
9945
	hppa*64*)
9946
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947
	  ;;
9948
	ia64*)
9949
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950
	  ;;
9951
	*)
9952
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9953
	  ;;
9954
	esac
9955
      fi
9956
      if test "$with_gnu_ld" = no; then
9957
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9958
	hardcode_libdir_separator=:
9959
 
9960
	case $host_cpu in
9961
	hppa*64*|ia64*)
9962
	  hardcode_direct=no
9963
	  hardcode_shlibpath_var=no
9964
	  ;;
9965
	*)
9966
	  hardcode_direct=yes
9967
	  hardcode_direct_absolute=yes
9968
	  export_dynamic_flag_spec='${wl}-E'
9969
 
9970
	  # hardcode_minus_L: Not really in the search PATH,
9971
	  # but as the default location of the library.
9972
	  hardcode_minus_L=yes
9973
	  ;;
9974
	esac
9975
      fi
9976
      ;;
9977
 
9978
    irix5* | irix6* | nonstopux*)
9979
      if test "$GCC" = yes; then
9980
	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'
9981
	# Try to use the -exported_symbol ld option, if it does not
9982
	# work, assume that -exports_file does not work either and
9983
	# implicitly export all symbols.
9984
        save_LDFLAGS="$LDFLAGS"
9985
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9986
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987
/* end confdefs.h.  */
9988
int foo(void) {}
9989
_ACEOF
9990
if ac_fn_c_try_link "$LINENO"; then :
9991
  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'
9992
 
9993
fi
9994
rm -f core conftest.err conftest.$ac_objext \
9995
    conftest$ac_exeext conftest.$ac_ext
9996
        LDFLAGS="$save_LDFLAGS"
9997
      else
9998
	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'
9999
	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'
10000
      fi
10001
      archive_cmds_need_lc='no'
10002
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003
      hardcode_libdir_separator=:
10004
      inherit_rpath=yes
10005
      link_all_deplibs=yes
10006
      ;;
10007
 
10008
    netbsd* | netbsdelf*-gnu)
10009
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10010
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10011
      else
10012
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10013
      fi
10014
      hardcode_libdir_flag_spec='-R$libdir'
10015
      hardcode_direct=yes
10016
      hardcode_shlibpath_var=no
10017
      ;;
10018
 
10019
    newsos6)
10020
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021
      hardcode_direct=yes
10022
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023
      hardcode_libdir_separator=:
10024
      hardcode_shlibpath_var=no
10025
      ;;
10026
 
10027
    *nto* | *qnx*)
10028
      ;;
10029
 
10030
    openbsd*)
10031
      if test -f /usr/libexec/ld.so; then
10032
	hardcode_direct=yes
10033
	hardcode_shlibpath_var=no
10034
	hardcode_direct_absolute=yes
10035
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10036
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10037
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10038
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10039
	  export_dynamic_flag_spec='${wl}-E'
10040
	else
10041
	  case $host_os in
10042
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10043
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10044
	     hardcode_libdir_flag_spec='-R$libdir'
10045
	     ;;
10046
	   *)
10047
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10048
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10049
	     ;;
10050
	  esac
10051
	fi
10052
      else
10053
	ld_shlibs=no
10054
      fi
10055
      ;;
10056
 
10057
    os2*)
10058
      hardcode_libdir_flag_spec='-L$libdir'
10059
      hardcode_minus_L=yes
10060
      allow_undefined_flag=unsupported
10061
      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'
10062
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10063
      ;;
10064
 
10065
    osf3*)
10066
      if test "$GCC" = yes; then
10067
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10068
	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'
10069
      else
10070
	allow_undefined_flag=' -expect_unresolved \*'
10071
	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'
10072
      fi
10073
      archive_cmds_need_lc='no'
10074
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10075
      hardcode_libdir_separator=:
10076
      ;;
10077
 
10078
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10079
      if test "$GCC" = yes; then
10080
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10081
	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'
10082
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10083
      else
10084
	allow_undefined_flag=' -expect_unresolved \*'
10085
	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'
10086
	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~
10087
	$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'
10088
 
10089
	# Both c and cxx compiler support -rpath directly
10090
	hardcode_libdir_flag_spec='-rpath $libdir'
10091
      fi
10092
      archive_cmds_need_lc='no'
10093
      hardcode_libdir_separator=:
10094
      ;;
10095
 
10096
    solaris*)
10097
      no_undefined_flag=' -z defs'
10098
      if test "$GCC" = yes; then
10099
	wlarc='${wl}'
10100
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10101
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10102
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10103
      else
10104
	case `$CC -V 2>&1` in
10105
	*"Compilers 5.0"*)
10106
	  wlarc=''
10107
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10110
	  ;;
10111
	*)
10112
	  wlarc='${wl}'
10113
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10114
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10115
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10116
	  ;;
10117
	esac
10118
      fi
10119
      hardcode_libdir_flag_spec='-R$libdir'
10120
      hardcode_shlibpath_var=no
10121
      case $host_os in
10122
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10123
      *)
10124
	# The compiler driver will combine and reorder linker options,
10125
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10126
	# but is careful enough not to reorder.
10127
	# Supported since Solaris 2.6 (maybe 2.5.1?)
10128
	if test "$GCC" = yes; then
10129
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10130
	else
10131
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10132
	fi
10133
	;;
10134
      esac
10135
      link_all_deplibs=yes
10136
      ;;
10137
 
10138
    sunos4*)
10139
      if test "x$host_vendor" = xsequent; then
10140
	# Use $CC to link under sequent, because it throws in some extra .o
10141
	# files that make .init and .fini sections work.
10142
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10143
      else
10144
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10145
      fi
10146
      hardcode_libdir_flag_spec='-L$libdir'
10147
      hardcode_direct=yes
10148
      hardcode_minus_L=yes
10149
      hardcode_shlibpath_var=no
10150
      ;;
10151
 
10152
    sysv4)
10153
      case $host_vendor in
10154
	sni)
10155
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156
	  hardcode_direct=yes # is this really true???
10157
	;;
10158
	siemens)
10159
	  ## LD is ld it makes a PLAMLIB
10160
	  ## CC just makes a GrossModule.
10161
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10162
	  reload_cmds='$CC -r -o $output$reload_objs'
10163
	  hardcode_direct=no
10164
        ;;
10165
	motorola)
10166
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10168
	;;
10169
      esac
10170
      runpath_var='LD_RUN_PATH'
10171
      hardcode_shlibpath_var=no
10172
      ;;
10173
 
10174
    sysv4.3*)
10175
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176
      hardcode_shlibpath_var=no
10177
      export_dynamic_flag_spec='-Bexport'
10178
      ;;
10179
 
10180
    sysv4*MP*)
10181
      if test -d /usr/nec; then
10182
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183
	hardcode_shlibpath_var=no
10184
	runpath_var=LD_RUN_PATH
10185
	hardcode_runpath_var=yes
10186
	ld_shlibs=yes
10187
      fi
10188
      ;;
10189
 
10190
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10191
      no_undefined_flag='${wl}-z,text'
10192
      archive_cmds_need_lc=no
10193
      hardcode_shlibpath_var=no
10194
      runpath_var='LD_RUN_PATH'
10195
 
10196
      if test "$GCC" = yes; then
10197
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10199
      else
10200
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10201
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10202
      fi
10203
      ;;
10204
 
10205
    sysv5* | sco3.2v5* | sco5v6*)
10206
      # Note: We can NOT use -z defs as we might desire, because we do not
10207
      # link with -lc, and that would cause any symbols used from libc to
10208
      # always be unresolved, which means just about no library would
10209
      # ever link correctly.  If we're not using GNU ld we use -z text
10210
      # though, which does catch some bad symbols but isn't as heavy-handed
10211
      # as -z defs.
10212
      no_undefined_flag='${wl}-z,text'
10213
      allow_undefined_flag='${wl}-z,nodefs'
10214
      archive_cmds_need_lc=no
10215
      hardcode_shlibpath_var=no
10216
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10217
      hardcode_libdir_separator=':'
10218
      link_all_deplibs=yes
10219
      export_dynamic_flag_spec='${wl}-Bexport'
10220
      runpath_var='LD_RUN_PATH'
10221
 
10222
      if test "$GCC" = yes; then
10223
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10224
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10225
      else
10226
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10227
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10228
      fi
10229
      ;;
10230
 
10231
    uts4*)
10232
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233
      hardcode_libdir_flag_spec='-L$libdir'
10234
      hardcode_shlibpath_var=no
10235
      ;;
10236
 
10237
    *)
10238
      ld_shlibs=no
10239
      ;;
10240
    esac
10241
 
10242
    if test x$host_vendor = xsni; then
10243
      case $host in
10244
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10245
	export_dynamic_flag_spec='${wl}-Blargedynsym'
10246
	;;
10247
      esac
10248
    fi
10249
  fi
10250
 
10251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10252
$as_echo "$ld_shlibs" >&6; }
10253
test "$ld_shlibs" = no && can_build_shared=no
10254
 
10255
with_gnu_ld=$with_gnu_ld
10256
 
10257
 
10258
 
10259
 
10260
 
10261
 
10262
 
10263
 
10264
 
10265
 
10266
 
10267
 
10268
 
10269
 
10270
 
10271
#
10272
# Do we need to explicitly link libc?
10273
#
10274
case "x$archive_cmds_need_lc" in
10275
x|xyes)
10276
  # Assume -lc should be added
10277
  archive_cmds_need_lc=yes
10278
 
10279
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10280
    case $archive_cmds in
10281
    *'~'*)
10282
      # FIXME: we may have to deal with multi-command sequences.
10283
      ;;
10284
    '$CC '*)
10285
      # Test whether the compiler implicitly links with -lc since on some
10286
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10287
      # to ld, don't add -lc before -lgcc.
10288
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10289
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10290
      $RM conftest*
10291
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10292
 
10293
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10294
  (eval $ac_compile) 2>&5
10295
  ac_status=$?
10296
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10297
  test $ac_status = 0; } 2>conftest.err; then
10298
        soname=conftest
10299
        lib=conftest
10300
        libobjs=conftest.$ac_objext
10301
        deplibs=
10302
        wl=$lt_prog_compiler_wl
10303
	pic_flag=$lt_prog_compiler_pic
10304
        compiler_flags=-v
10305
        linker_flags=-v
10306
        verstring=
10307
        output_objdir=.
10308
        libname=conftest
10309
        lt_save_allow_undefined_flag=$allow_undefined_flag
10310
        allow_undefined_flag=
10311
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10312
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10313
  ac_status=$?
10314
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10315
  test $ac_status = 0; }
10316
        then
10317
	  archive_cmds_need_lc=no
10318
        else
10319
	  archive_cmds_need_lc=yes
10320
        fi
10321
        allow_undefined_flag=$lt_save_allow_undefined_flag
10322
      else
10323
        cat conftest.err 1>&5
10324
      fi
10325
      $RM conftest*
10326
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10327
$as_echo "$archive_cmds_need_lc" >&6; }
10328
      ;;
10329
    esac
10330
  fi
10331
  ;;
10332
esac
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
 
10393
 
10394
 
10395
 
10396
 
10397
 
10398
 
10399
 
10400
 
10401
 
10402
 
10403
 
10404
 
10405
 
10406
 
10407
 
10408
 
10409
 
10410
 
10411
 
10412
 
10413
 
10414
 
10415
 
10416
 
10417
 
10418
 
10419
 
10420
 
10421
 
10422
 
10423
 
10424
 
10425
 
10426
 
10427
 
10428
 
10429
 
10430
 
10431
 
10432
 
10433
 
10434
 
10435
 
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
 
10443
 
10444
 
10445
 
10446
 
10447
 
10448
 
10449
 
10450
 
10451
 
10452
 
10453
 
10454
 
10455
 
10456
 
10457
 
10458
 
10459
 
10460
 
10461
 
10462
 
10463
 
10464
 
10465
 
10466
 
10467
 
10468
 
10469
 
10470
 
10471
 
10472
 
10473
 
10474
 
10475
 
10476
 
10477
 
10478
 
10479
 
10480
 
10481
 
10482
 
10483
 
10484
 
10485
 
10486
 
10487
 
10488
 
10489
 
10490
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10491
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10492
 
10493
if test "$GCC" = yes; then
10494
  case $host_os in
10495
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10496
    *) lt_awk_arg="/^libraries:/" ;;
10497
  esac
10498
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10499
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10500
    # if the path contains ";" then we assume it to be the separator
10501
    # otherwise default to the standard path separator (i.e. ":") - it is
10502
    # assumed that no part of a normal pathname contains ";" but that should
10503
    # okay in the real world where ";" in dirpaths is itself problematic.
10504
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10505
  else
10506
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10507
  fi
10508
  # Ok, now we have the path, separated by spaces, we can step through it
10509
  # and add multilib dir if necessary.
10510
  lt_tmp_lt_search_path_spec=
10511
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10512
  for lt_sys_path in $lt_search_path_spec; do
10513
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10514
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10515
    else
10516
      test -d "$lt_sys_path" && \
10517
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10518
    fi
10519
  done
10520
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10521
BEGIN {RS=" "; FS="/|\n";} {
10522
  lt_foo="";
10523
  lt_count=0;
10524
  for (lt_i = NF; lt_i > 0; lt_i--) {
10525
    if ($lt_i != "" && $lt_i != ".") {
10526
      if ($lt_i == "..") {
10527
        lt_count++;
10528
      } else {
10529
        if (lt_count == 0) {
10530
          lt_foo="/" $lt_i lt_foo;
10531
        } else {
10532
          lt_count--;
10533
        }
10534
      }
10535
    }
10536
  }
10537
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10538
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10539
}'`
10540
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10541
else
10542
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10543
fi
10544
library_names_spec=
10545
libname_spec='lib$name'
10546
soname_spec=
10547
shrext_cmds=".so"
10548
postinstall_cmds=
10549
postuninstall_cmds=
10550
finish_cmds=
10551
finish_eval=
10552
shlibpath_var=
10553
shlibpath_overrides_runpath=unknown
10554
version_type=none
10555
dynamic_linker="$host_os ld.so"
10556
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10557
need_lib_prefix=unknown
10558
hardcode_into_libs=no
10559
 
10560
# when you set need_version to no, make sure it does not cause -set_version
10561
# flags to be left without arguments
10562
need_version=unknown
10563
 
10564
case $host_os in
10565
aix3*)
10566
  version_type=linux
10567
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10568
  shlibpath_var=LIBPATH
10569
 
10570
  # AIX 3 has no versioning support, so we append a major version to the name.
10571
  soname_spec='${libname}${release}${shared_ext}$major'
10572
  ;;
10573
 
10574
aix[4-9]*)
10575
  version_type=linux
10576
  need_lib_prefix=no
10577
  need_version=no
10578
  hardcode_into_libs=yes
10579
  if test "$host_cpu" = ia64; then
10580
    # AIX 5 supports IA64
10581
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10582
    shlibpath_var=LD_LIBRARY_PATH
10583
  else
10584
    # With GCC up to 2.95.x, collect2 would create an import file
10585
    # for dependence libraries.  The import file would start with
10586
    # the line `#! .'.  This would cause the generated library to
10587
    # depend on `.', always an invalid library.  This was fixed in
10588
    # development snapshots of GCC prior to 3.0.
10589
    case $host_os in
10590
      aix4 | aix4.[01] | aix4.[01].*)
10591
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10592
	   echo ' yes '
10593
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10594
	:
10595
      else
10596
	can_build_shared=no
10597
      fi
10598
      ;;
10599
    esac
10600
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10601
    # soname into executable. Probably we can add versioning support to
10602
    # collect2, so additional links can be useful in future.
10603
    if test "$aix_use_runtimelinking" = yes; then
10604
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10605
      # instead of lib<name>.a to let people know that these are not
10606
      # typical AIX shared libraries.
10607
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608
    else
10609
      # We preserve .a as extension for shared libraries through AIX4.2
10610
      # and later when we are not doing run time linking.
10611
      library_names_spec='${libname}${release}.a $libname.a'
10612
      soname_spec='${libname}${release}${shared_ext}$major'
10613
    fi
10614
    shlibpath_var=LIBPATH
10615
  fi
10616
  ;;
10617
 
10618
amigaos*)
10619
  case $host_cpu in
10620
  powerpc)
10621
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10622
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10623
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624
    ;;
10625
  m68k)
10626
    library_names_spec='$libname.ixlibrary $libname.a'
10627
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10628
    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'
10629
    ;;
10630
  esac
10631
  ;;
10632
 
10633
beos*)
10634
  library_names_spec='${libname}${shared_ext}'
10635
  dynamic_linker="$host_os ld.so"
10636
  shlibpath_var=LIBRARY_PATH
10637
  ;;
10638
 
10639
bsdi[45]*)
10640
  version_type=linux
10641
  need_version=no
10642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643
  soname_spec='${libname}${release}${shared_ext}$major'
10644
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10645
  shlibpath_var=LD_LIBRARY_PATH
10646
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10647
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10648
  # the default ld.so.conf also contains /usr/contrib/lib and
10649
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10650
  # libtool to hard-code these into programs
10651
  ;;
10652
 
10653
cygwin* | mingw* | pw32* | cegcc*)
10654
  version_type=windows
10655
  shrext_cmds=".dll"
10656
  need_version=no
10657
  need_lib_prefix=no
10658
 
10659
  case $GCC,$host_os in
10660
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10661
    library_names_spec='$libname.dll.a'
10662
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10663
    postinstall_cmds='base_file=`basename \${file}`~
10664
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10665
      dldir=$destdir/`dirname \$dlpath`~
10666
      test -d \$dldir || mkdir -p \$dldir~
10667
      $install_prog $dir/$dlname \$dldir/$dlname~
10668
      chmod a+x \$dldir/$dlname~
10669
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10670
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10671
      fi'
10672
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10673
      dlpath=$dir/\$dldll~
10674
       $RM \$dlpath'
10675
    shlibpath_overrides_runpath=yes
10676
 
10677
    case $host_os in
10678
    cygwin*)
10679
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10680
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10681
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10682
      ;;
10683
    mingw* | cegcc*)
10684
      # MinGW DLLs use traditional 'lib' prefix
10685
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10686
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10687
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10688
        # It is most probably a Windows format PATH printed by
10689
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10690
        # path with ; separators, and with drive letters. We can handle the
10691
        # drive letters (cygwin fileutils understands them), so leave them,
10692
        # especially as we might pass files found there to a mingw objdump,
10693
        # which wouldn't understand a cygwinified path. Ahh.
10694
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10695
      else
10696
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10697
      fi
10698
      ;;
10699
    pw32*)
10700
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10701
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10702
      ;;
10703
    esac
10704
    ;;
10705
 
10706
  *)
10707
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10708
    ;;
10709
  esac
10710
  dynamic_linker='Win32 ld.exe'
10711
  # FIXME: first we should search . and the directory the executable is in
10712
  shlibpath_var=PATH
10713
  ;;
10714
 
10715
darwin* | rhapsody*)
10716
  dynamic_linker="$host_os dyld"
10717
  version_type=darwin
10718
  need_lib_prefix=no
10719
  need_version=no
10720
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10721
  soname_spec='${libname}${release}${major}$shared_ext'
10722
  shlibpath_overrides_runpath=yes
10723
  shlibpath_var=DYLD_LIBRARY_PATH
10724
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10725
 
10726
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10727
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10728
  ;;
10729
 
10730
dgux*)
10731
  version_type=linux
10732
  need_lib_prefix=no
10733
  need_version=no
10734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10735
  soname_spec='${libname}${release}${shared_ext}$major'
10736
  shlibpath_var=LD_LIBRARY_PATH
10737
  ;;
10738
 
10739
freebsd1*)
10740
  dynamic_linker=no
10741
  ;;
10742
 
10743
freebsd* | dragonfly*)
10744
  # DragonFly does not have aout.  When/if they implement a new
10745
  # versioning mechanism, adjust this.
10746
  if test -x /usr/bin/objformat; then
10747
    objformat=`/usr/bin/objformat`
10748
  else
10749
    case $host_os in
10750
    freebsd[123]*) objformat=aout ;;
10751
    *) objformat=elf ;;
10752
    esac
10753
  fi
10754
  version_type=freebsd-$objformat
10755
  case $version_type in
10756
    freebsd-elf*)
10757
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758
      need_version=no
10759
      need_lib_prefix=no
10760
      ;;
10761
    freebsd-*)
10762
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10763
      need_version=yes
10764
      ;;
10765
  esac
10766
  shlibpath_var=LD_LIBRARY_PATH
10767
  case $host_os in
10768
  freebsd2*)
10769
    shlibpath_overrides_runpath=yes
10770
    ;;
10771
  freebsd3.[01]* | freebsdelf3.[01]*)
10772
    shlibpath_overrides_runpath=yes
10773
    hardcode_into_libs=yes
10774
    ;;
10775
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10776
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10777
    shlibpath_overrides_runpath=no
10778
    hardcode_into_libs=yes
10779
    ;;
10780
  *) # from 4.6 on, and DragonFly
10781
    shlibpath_overrides_runpath=yes
10782
    hardcode_into_libs=yes
10783
    ;;
10784
  esac
10785
  ;;
10786
 
10787
gnu*)
10788
  version_type=linux
10789
  need_lib_prefix=no
10790
  need_version=no
10791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10792
  soname_spec='${libname}${release}${shared_ext}$major'
10793
  shlibpath_var=LD_LIBRARY_PATH
10794
  hardcode_into_libs=yes
10795
  ;;
10796
 
10797
hpux9* | hpux10* | hpux11*)
10798
  # Give a soname corresponding to the major version so that dld.sl refuses to
10799
  # link against other versions.
10800
  version_type=sunos
10801
  need_lib_prefix=no
10802
  need_version=no
10803
  case $host_cpu in
10804
  ia64*)
10805
    shrext_cmds='.so'
10806
    hardcode_into_libs=yes
10807
    dynamic_linker="$host_os dld.so"
10808
    shlibpath_var=LD_LIBRARY_PATH
10809
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10810
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811
    soname_spec='${libname}${release}${shared_ext}$major'
10812
    if test "X$HPUX_IA64_MODE" = X32; then
10813
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10814
    else
10815
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10816
    fi
10817
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10818
    ;;
10819
  hppa*64*)
10820
    shrext_cmds='.sl'
10821
    hardcode_into_libs=yes
10822
    dynamic_linker="$host_os dld.sl"
10823
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10824
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10825
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826
    soname_spec='${libname}${release}${shared_ext}$major'
10827
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10828
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10829
    ;;
10830
  *)
10831
    shrext_cmds='.sl'
10832
    dynamic_linker="$host_os dld.sl"
10833
    shlibpath_var=SHLIB_PATH
10834
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10835
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836
    soname_spec='${libname}${release}${shared_ext}$major'
10837
    ;;
10838
  esac
10839
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10840
  postinstall_cmds='chmod 555 $lib'
10841
  ;;
10842
 
10843
interix[3-9]*)
10844
  version_type=linux
10845
  need_lib_prefix=no
10846
  need_version=no
10847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10848
  soname_spec='${libname}${release}${shared_ext}$major'
10849
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10850
  shlibpath_var=LD_LIBRARY_PATH
10851
  shlibpath_overrides_runpath=no
10852
  hardcode_into_libs=yes
10853
  ;;
10854
 
10855
irix5* | irix6* | nonstopux*)
10856
  case $host_os in
10857
    nonstopux*) version_type=nonstopux ;;
10858
    *)
10859
	if test "$lt_cv_prog_gnu_ld" = yes; then
10860
		version_type=linux
10861
	else
10862
		version_type=irix
10863
	fi ;;
10864
  esac
10865
  need_lib_prefix=no
10866
  need_version=no
10867
  soname_spec='${libname}${release}${shared_ext}$major'
10868
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10869
  case $host_os in
10870
  irix5* | nonstopux*)
10871
    libsuff= shlibsuff=
10872
    ;;
10873
  *)
10874
    case $LD in # libtool.m4 will add one of these switches to LD
10875
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10876
      libsuff= shlibsuff= libmagic=32-bit;;
10877
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10878
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10879
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10880
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10881
    *) libsuff= shlibsuff= libmagic=never-match;;
10882
    esac
10883
    ;;
10884
  esac
10885
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10886
  shlibpath_overrides_runpath=no
10887
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10888
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10889
  hardcode_into_libs=yes
10890
  ;;
10891
 
10892
# No shared lib support for Linux oldld, aout, or coff.
10893
linux*oldld* | linux*aout* | linux*coff*)
10894
  dynamic_linker=no
10895
  ;;
10896
 
10897
# This must be Linux ELF.
10898
linux* | k*bsd*-gnu)
10899
  version_type=linux
10900
  need_lib_prefix=no
10901
  need_version=no
10902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903
  soname_spec='${libname}${release}${shared_ext}$major'
10904
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10905
  shlibpath_var=LD_LIBRARY_PATH
10906
  shlibpath_overrides_runpath=no
10907
  # Some binutils ld are patched to set DT_RUNPATH
10908
  save_LDFLAGS=$LDFLAGS
10909
  save_libdir=$libdir
10910
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10911
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10912
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913
/* end confdefs.h.  */
10914
 
10915
int
10916
main ()
10917
{
10918
 
10919
  ;
10920
  return 0;
10921
}
10922
_ACEOF
10923
if ac_fn_c_try_link "$LINENO"; then :
10924
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10925
  shlibpath_overrides_runpath=yes
10926
fi
10927
fi
10928
rm -f core conftest.err conftest.$ac_objext \
10929
    conftest$ac_exeext conftest.$ac_ext
10930
  LDFLAGS=$save_LDFLAGS
10931
  libdir=$save_libdir
10932
 
10933
  # This implies no fast_install, which is unacceptable.
10934
  # Some rework will be needed to allow for fast_install
10935
  # before this can be enabled.
10936
  hardcode_into_libs=yes
10937
 
10938
  # Append ld.so.conf contents to the search path
10939
  if test -f /etc/ld.so.conf; then
10940
    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' ' '`
10941
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10942
  fi
10943
 
10944
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10945
  # powerpc, because MkLinux only supported shared libraries with the
10946
  # GNU dynamic linker.  Since this was broken with cross compilers,
10947
  # most powerpc-linux boxes support dynamic linking these days and
10948
  # people can always --disable-shared, the test was removed, and we
10949
  # assume the GNU/Linux dynamic linker is in use.
10950
  dynamic_linker='GNU/Linux ld.so'
10951
  ;;
10952
 
10953
netbsdelf*-gnu)
10954
  version_type=linux
10955
  need_lib_prefix=no
10956
  need_version=no
10957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10958
  soname_spec='${libname}${release}${shared_ext}$major'
10959
  shlibpath_var=LD_LIBRARY_PATH
10960
  shlibpath_overrides_runpath=no
10961
  hardcode_into_libs=yes
10962
  dynamic_linker='NetBSD ld.elf_so'
10963
  ;;
10964
 
10965
netbsd*)
10966
  version_type=sunos
10967
  need_lib_prefix=no
10968
  need_version=no
10969
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10970
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10972
    dynamic_linker='NetBSD (a.out) ld.so'
10973
  else
10974
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10975
    soname_spec='${libname}${release}${shared_ext}$major'
10976
    dynamic_linker='NetBSD ld.elf_so'
10977
  fi
10978
  shlibpath_var=LD_LIBRARY_PATH
10979
  shlibpath_overrides_runpath=yes
10980
  hardcode_into_libs=yes
10981
  ;;
10982
 
10983
newsos6)
10984
  version_type=linux
10985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986
  shlibpath_var=LD_LIBRARY_PATH
10987
  shlibpath_overrides_runpath=yes
10988
  ;;
10989
 
10990
*nto* | *qnx*)
10991
  version_type=qnx
10992
  need_lib_prefix=no
10993
  need_version=no
10994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995
  soname_spec='${libname}${release}${shared_ext}$major'
10996
  shlibpath_var=LD_LIBRARY_PATH
10997
  shlibpath_overrides_runpath=no
10998
  hardcode_into_libs=yes
10999
  dynamic_linker='ldqnx.so'
11000
  ;;
11001
 
11002
openbsd*)
11003
  version_type=sunos
11004
  sys_lib_dlsearch_path_spec="/usr/lib"
11005
  need_lib_prefix=no
11006
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11007
  case $host_os in
11008
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11009
    *)				need_version=no  ;;
11010
  esac
11011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11012
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11013
  shlibpath_var=LD_LIBRARY_PATH
11014
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11015
    case $host_os in
11016
      openbsd2.[89] | openbsd2.[89].*)
11017
	shlibpath_overrides_runpath=no
11018
	;;
11019
      *)
11020
	shlibpath_overrides_runpath=yes
11021
	;;
11022
      esac
11023
  else
11024
    shlibpath_overrides_runpath=yes
11025
  fi
11026
  ;;
11027
 
11028
os2*)
11029
  libname_spec='$name'
11030
  shrext_cmds=".dll"
11031
  need_lib_prefix=no
11032
  library_names_spec='$libname${shared_ext} $libname.a'
11033
  dynamic_linker='OS/2 ld.exe'
11034
  shlibpath_var=LIBPATH
11035
  ;;
11036
 
11037
osf3* | osf4* | osf5*)
11038
  version_type=osf
11039
  need_lib_prefix=no
11040
  need_version=no
11041
  soname_spec='${libname}${release}${shared_ext}$major'
11042
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043
  shlibpath_var=LD_LIBRARY_PATH
11044
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11045
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11046
  ;;
11047
 
11048
rdos*)
11049
  dynamic_linker=no
11050
  ;;
11051
 
11052
solaris*)
11053
  version_type=linux
11054
  need_lib_prefix=no
11055
  need_version=no
11056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057
  soname_spec='${libname}${release}${shared_ext}$major'
11058
  shlibpath_var=LD_LIBRARY_PATH
11059
  shlibpath_overrides_runpath=yes
11060
  hardcode_into_libs=yes
11061
  # ldd complains unless libraries are executable
11062
  postinstall_cmds='chmod +x $lib'
11063
  ;;
11064
 
11065
sunos4*)
11066
  version_type=sunos
11067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11068
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11069
  shlibpath_var=LD_LIBRARY_PATH
11070
  shlibpath_overrides_runpath=yes
11071
  if test "$with_gnu_ld" = yes; then
11072
    need_lib_prefix=no
11073
  fi
11074
  need_version=yes
11075
  ;;
11076
 
11077
sysv4 | sysv4.3*)
11078
  version_type=linux
11079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080
  soname_spec='${libname}${release}${shared_ext}$major'
11081
  shlibpath_var=LD_LIBRARY_PATH
11082
  case $host_vendor in
11083
    sni)
11084
      shlibpath_overrides_runpath=no
11085
      need_lib_prefix=no
11086
      runpath_var=LD_RUN_PATH
11087
      ;;
11088
    siemens)
11089
      need_lib_prefix=no
11090
      ;;
11091
    motorola)
11092
      need_lib_prefix=no
11093
      need_version=no
11094
      shlibpath_overrides_runpath=no
11095
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11096
      ;;
11097
  esac
11098
  ;;
11099
 
11100
sysv4*MP*)
11101
  if test -d /usr/nec ;then
11102
    version_type=linux
11103
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11104
    soname_spec='$libname${shared_ext}.$major'
11105
    shlibpath_var=LD_LIBRARY_PATH
11106
  fi
11107
  ;;
11108
 
11109
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11110
  version_type=freebsd-elf
11111
  need_lib_prefix=no
11112
  need_version=no
11113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11114
  soname_spec='${libname}${release}${shared_ext}$major'
11115
  shlibpath_var=LD_LIBRARY_PATH
11116
  shlibpath_overrides_runpath=yes
11117
  hardcode_into_libs=yes
11118
  if test "$with_gnu_ld" = yes; then
11119
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11120
  else
11121
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11122
    case $host_os in
11123
      sco3.2v5*)
11124
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11125
	;;
11126
    esac
11127
  fi
11128
  sys_lib_dlsearch_path_spec='/usr/lib'
11129
  ;;
11130
 
11131
tpf*)
11132
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11133
  version_type=linux
11134
  need_lib_prefix=no
11135
  need_version=no
11136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137
  shlibpath_var=LD_LIBRARY_PATH
11138
  shlibpath_overrides_runpath=no
11139
  hardcode_into_libs=yes
11140
  ;;
11141
 
11142
uts4*)
11143
  version_type=linux
11144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145
  soname_spec='${libname}${release}${shared_ext}$major'
11146
  shlibpath_var=LD_LIBRARY_PATH
11147
  ;;
11148
 
11149
*)
11150
  dynamic_linker=no
11151
  ;;
11152
esac
11153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11154
$as_echo "$dynamic_linker" >&6; }
11155
test "$dynamic_linker" = no && can_build_shared=no
11156
 
11157
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11158
if test "$GCC" = yes; then
11159
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11160
fi
11161
 
11162
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11163
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11164
fi
11165
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11166
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11167
fi
11168
 
11169
 
11170
 
11171
 
11172
 
11173
 
11174
 
11175
 
11176
 
11177
 
11178
 
11179
 
11180
 
11181
 
11182
 
11183
 
11184
 
11185
 
11186
 
11187
 
11188
 
11189
 
11190
 
11191
 
11192
 
11193
 
11194
 
11195
 
11196
 
11197
 
11198
 
11199
 
11200
 
11201
 
11202
 
11203
 
11204
 
11205
 
11206
 
11207
 
11208
 
11209
 
11210
 
11211
 
11212
 
11213
 
11214
 
11215
 
11216
 
11217
 
11218
 
11219
 
11220
 
11221
 
11222
 
11223
 
11224
 
11225
 
11226
 
11227
 
11228
 
11229
 
11230
 
11231
 
11232
 
11233
 
11234
 
11235
 
11236
 
11237
 
11238
 
11239
 
11240
 
11241
 
11242
 
11243
 
11244
 
11245
 
11246
 
11247
 
11248
 
11249
 
11250
 
11251
 
11252
 
11253
 
11254
 
11255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11256
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11257
hardcode_action=
11258
if test -n "$hardcode_libdir_flag_spec" ||
11259
   test -n "$runpath_var" ||
11260
   test "X$hardcode_automatic" = "Xyes" ; then
11261
 
11262
  # We can hardcode non-existent directories.
11263
  if test "$hardcode_direct" != no &&
11264
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11265
     # have to relink, otherwise we might link with an installed library
11266
     # when we should be linking with a yet-to-be-installed one
11267
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11268
     test "$hardcode_minus_L" != no; then
11269
    # Linking always hardcodes the temporary library directory.
11270
    hardcode_action=relink
11271
  else
11272
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11273
    hardcode_action=immediate
11274
  fi
11275
else
11276
  # We cannot hardcode anything, or else we can only hardcode existing
11277
  # directories.
11278
  hardcode_action=unsupported
11279
fi
11280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11281
$as_echo "$hardcode_action" >&6; }
11282
 
11283
if test "$hardcode_action" = relink ||
11284
   test "$inherit_rpath" = yes; then
11285
  # Fast installation is not supported
11286
  enable_fast_install=no
11287
elif test "$shlibpath_overrides_runpath" = yes ||
11288
     test "$enable_shared" = no; then
11289
  # Fast installation is not necessary
11290
  enable_fast_install=needless
11291
fi
11292
 
11293
 
11294
 
11295
 
11296
 
11297
 
11298
  if test "x$enable_dlopen" != xyes; then
11299
  enable_dlopen=unknown
11300
  enable_dlopen_self=unknown
11301
  enable_dlopen_self_static=unknown
11302
else
11303
  lt_cv_dlopen=no
11304
  lt_cv_dlopen_libs=
11305
 
11306
  case $host_os in
11307
  beos*)
11308
    lt_cv_dlopen="load_add_on"
11309
    lt_cv_dlopen_libs=
11310
    lt_cv_dlopen_self=yes
11311
    ;;
11312
 
11313
  mingw* | pw32* | cegcc*)
11314
    lt_cv_dlopen="LoadLibrary"
11315
    lt_cv_dlopen_libs=
11316
    ;;
11317
 
11318
  cygwin*)
11319
    lt_cv_dlopen="dlopen"
11320
    lt_cv_dlopen_libs=
11321
    ;;
11322
 
11323
  darwin*)
11324
  # if libdl is installed we need to link against it
11325
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11326
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11327
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11328
  $as_echo_n "(cached) " >&6
11329
else
11330
  ac_check_lib_save_LIBS=$LIBS
11331
LIBS="-ldl  $LIBS"
11332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333
/* end confdefs.h.  */
11334
 
11335
/* Override any GCC internal prototype to avoid an error.
11336
   Use char because int might match the return type of a GCC
11337
   builtin and then its argument prototype would still apply.  */
11338
#ifdef __cplusplus
11339
extern "C"
11340
#endif
11341
char dlopen ();
11342
int
11343
main ()
11344
{
11345
return dlopen ();
11346
  ;
11347
  return 0;
11348
}
11349
_ACEOF
11350
if ac_fn_c_try_link "$LINENO"; then :
11351
  ac_cv_lib_dl_dlopen=yes
11352
else
11353
  ac_cv_lib_dl_dlopen=no
11354
fi
11355
rm -f core conftest.err conftest.$ac_objext \
11356
    conftest$ac_exeext conftest.$ac_ext
11357
LIBS=$ac_check_lib_save_LIBS
11358
fi
11359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11360
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11361
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11362
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11363
else
11364
 
11365
    lt_cv_dlopen="dyld"
11366
    lt_cv_dlopen_libs=
11367
    lt_cv_dlopen_self=yes
11368
 
11369
fi
11370
 
11371
    ;;
11372
 
11373
  *)
11374
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11375
if test "x$ac_cv_func_shl_load" = x""yes; then :
11376
  lt_cv_dlopen="shl_load"
11377
else
11378
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11379
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11380
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11381
  $as_echo_n "(cached) " >&6
11382
else
11383
  ac_check_lib_save_LIBS=$LIBS
11384
LIBS="-ldld  $LIBS"
11385
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386
/* end confdefs.h.  */
11387
 
11388
/* Override any GCC internal prototype to avoid an error.
11389
   Use char because int might match the return type of a GCC
11390
   builtin and then its argument prototype would still apply.  */
11391
#ifdef __cplusplus
11392
extern "C"
11393
#endif
11394
char shl_load ();
11395
int
11396
main ()
11397
{
11398
return shl_load ();
11399
  ;
11400
  return 0;
11401
}
11402
_ACEOF
11403
if ac_fn_c_try_link "$LINENO"; then :
11404
  ac_cv_lib_dld_shl_load=yes
11405
else
11406
  ac_cv_lib_dld_shl_load=no
11407
fi
11408
rm -f core conftest.err conftest.$ac_objext \
11409
    conftest$ac_exeext conftest.$ac_ext
11410
LIBS=$ac_check_lib_save_LIBS
11411
fi
11412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11413
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11414
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11415
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11416
else
11417
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11418
if test "x$ac_cv_func_dlopen" = x""yes; then :
11419
  lt_cv_dlopen="dlopen"
11420
else
11421
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11422
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11423
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11424
  $as_echo_n "(cached) " >&6
11425
else
11426
  ac_check_lib_save_LIBS=$LIBS
11427
LIBS="-ldl  $LIBS"
11428
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429
/* end confdefs.h.  */
11430
 
11431
/* Override any GCC internal prototype to avoid an error.
11432
   Use char because int might match the return type of a GCC
11433
   builtin and then its argument prototype would still apply.  */
11434
#ifdef __cplusplus
11435
extern "C"
11436
#endif
11437
char dlopen ();
11438
int
11439
main ()
11440
{
11441
return dlopen ();
11442
  ;
11443
  return 0;
11444
}
11445
_ACEOF
11446
if ac_fn_c_try_link "$LINENO"; then :
11447
  ac_cv_lib_dl_dlopen=yes
11448
else
11449
  ac_cv_lib_dl_dlopen=no
11450
fi
11451
rm -f core conftest.err conftest.$ac_objext \
11452
    conftest$ac_exeext conftest.$ac_ext
11453
LIBS=$ac_check_lib_save_LIBS
11454
fi
11455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11456
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11457
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11458
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11459
else
11460
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11461
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11462
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11463
  $as_echo_n "(cached) " >&6
11464
else
11465
  ac_check_lib_save_LIBS=$LIBS
11466
LIBS="-lsvld  $LIBS"
11467
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468
/* end confdefs.h.  */
11469
 
11470
/* Override any GCC internal prototype to avoid an error.
11471
   Use char because int might match the return type of a GCC
11472
   builtin and then its argument prototype would still apply.  */
11473
#ifdef __cplusplus
11474
extern "C"
11475
#endif
11476
char dlopen ();
11477
int
11478
main ()
11479
{
11480
return dlopen ();
11481
  ;
11482
  return 0;
11483
}
11484
_ACEOF
11485
if ac_fn_c_try_link "$LINENO"; then :
11486
  ac_cv_lib_svld_dlopen=yes
11487
else
11488
  ac_cv_lib_svld_dlopen=no
11489
fi
11490
rm -f core conftest.err conftest.$ac_objext \
11491
    conftest$ac_exeext conftest.$ac_ext
11492
LIBS=$ac_check_lib_save_LIBS
11493
fi
11494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11495
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11496
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11497
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11498
else
11499
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11500
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11501
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11502
  $as_echo_n "(cached) " >&6
11503
else
11504
  ac_check_lib_save_LIBS=$LIBS
11505
LIBS="-ldld  $LIBS"
11506
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507
/* end confdefs.h.  */
11508
 
11509
/* Override any GCC internal prototype to avoid an error.
11510
   Use char because int might match the return type of a GCC
11511
   builtin and then its argument prototype would still apply.  */
11512
#ifdef __cplusplus
11513
extern "C"
11514
#endif
11515
char dld_link ();
11516
int
11517
main ()
11518
{
11519
return dld_link ();
11520
  ;
11521
  return 0;
11522
}
11523
_ACEOF
11524
if ac_fn_c_try_link "$LINENO"; then :
11525
  ac_cv_lib_dld_dld_link=yes
11526
else
11527
  ac_cv_lib_dld_dld_link=no
11528
fi
11529
rm -f core conftest.err conftest.$ac_objext \
11530
    conftest$ac_exeext conftest.$ac_ext
11531
LIBS=$ac_check_lib_save_LIBS
11532
fi
11533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11534
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11535
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11536
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11537
fi
11538
 
11539
 
11540
fi
11541
 
11542
 
11543
fi
11544
 
11545
 
11546
fi
11547
 
11548
 
11549
fi
11550
 
11551
 
11552
fi
11553
 
11554
    ;;
11555
  esac
11556
 
11557
  if test "x$lt_cv_dlopen" != xno; then
11558
    enable_dlopen=yes
11559
  else
11560
    enable_dlopen=no
11561
  fi
11562
 
11563
  case $lt_cv_dlopen in
11564
  dlopen)
11565
    save_CPPFLAGS="$CPPFLAGS"
11566
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11567
 
11568
    save_LDFLAGS="$LDFLAGS"
11569
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11570
 
11571
    save_LIBS="$LIBS"
11572
    LIBS="$lt_cv_dlopen_libs $LIBS"
11573
 
11574
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11575
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11576
if test "${lt_cv_dlopen_self+set}" = set; then :
11577
  $as_echo_n "(cached) " >&6
11578
else
11579
  	  if test "$cross_compiling" = yes; then :
11580
  lt_cv_dlopen_self=cross
11581
else
11582
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11583
  lt_status=$lt_dlunknown
11584
  cat > conftest.$ac_ext <<_LT_EOF
11585
#line 11585 "configure"
11586
#include "confdefs.h"
11587
 
11588
#if HAVE_DLFCN_H
11589
#include <dlfcn.h>
11590
#endif
11591
 
11592
#include <stdio.h>
11593
 
11594
#ifdef RTLD_GLOBAL
11595
#  define LT_DLGLOBAL		RTLD_GLOBAL
11596
#else
11597
#  ifdef DL_GLOBAL
11598
#    define LT_DLGLOBAL		DL_GLOBAL
11599
#  else
11600
#    define LT_DLGLOBAL		0
11601
#  endif
11602
#endif
11603
 
11604
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11605
   find out it does not work in some platform. */
11606
#ifndef LT_DLLAZY_OR_NOW
11607
#  ifdef RTLD_LAZY
11608
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11609
#  else
11610
#    ifdef DL_LAZY
11611
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11612
#    else
11613
#      ifdef RTLD_NOW
11614
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11615
#      else
11616
#        ifdef DL_NOW
11617
#          define LT_DLLAZY_OR_NOW	DL_NOW
11618
#        else
11619
#          define LT_DLLAZY_OR_NOW	0
11620
#        endif
11621
#      endif
11622
#    endif
11623
#  endif
11624
#endif
11625
 
11626
void fnord() { int i=42;}
11627
int main ()
11628
{
11629
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11630
  int status = $lt_dlunknown;
11631
 
11632
  if (self)
11633
    {
11634
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11635
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11636
      /* dlclose (self); */
11637
    }
11638
  else
11639
    puts (dlerror ());
11640
 
11641
  return status;
11642
}
11643
_LT_EOF
11644
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11645
  (eval $ac_link) 2>&5
11646
  ac_status=$?
11647
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11649
    (./conftest; exit; ) >&5 2>/dev/null
11650
    lt_status=$?
11651
    case x$lt_status in
11652
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11653
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11654
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11655
    esac
11656
  else :
11657
    # compilation failed
11658
    lt_cv_dlopen_self=no
11659
  fi
11660
fi
11661
rm -fr conftest*
11662
 
11663
 
11664
fi
11665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11666
$as_echo "$lt_cv_dlopen_self" >&6; }
11667
 
11668
    if test "x$lt_cv_dlopen_self" = xyes; then
11669
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11670
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11671
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11672
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11673
  $as_echo_n "(cached) " >&6
11674
else
11675
  	  if test "$cross_compiling" = yes; then :
11676
  lt_cv_dlopen_self_static=cross
11677
else
11678
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11679
  lt_status=$lt_dlunknown
11680
  cat > conftest.$ac_ext <<_LT_EOF
11681
#line 11681 "configure"
11682
#include "confdefs.h"
11683
 
11684
#if HAVE_DLFCN_H
11685
#include <dlfcn.h>
11686
#endif
11687
 
11688
#include <stdio.h>
11689
 
11690
#ifdef RTLD_GLOBAL
11691
#  define LT_DLGLOBAL		RTLD_GLOBAL
11692
#else
11693
#  ifdef DL_GLOBAL
11694
#    define LT_DLGLOBAL		DL_GLOBAL
11695
#  else
11696
#    define LT_DLGLOBAL		0
11697
#  endif
11698
#endif
11699
 
11700
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11701
   find out it does not work in some platform. */
11702
#ifndef LT_DLLAZY_OR_NOW
11703
#  ifdef RTLD_LAZY
11704
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11705
#  else
11706
#    ifdef DL_LAZY
11707
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11708
#    else
11709
#      ifdef RTLD_NOW
11710
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11711
#      else
11712
#        ifdef DL_NOW
11713
#          define LT_DLLAZY_OR_NOW	DL_NOW
11714
#        else
11715
#          define LT_DLLAZY_OR_NOW	0
11716
#        endif
11717
#      endif
11718
#    endif
11719
#  endif
11720
#endif
11721
 
11722
void fnord() { int i=42;}
11723
int main ()
11724
{
11725
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11726
  int status = $lt_dlunknown;
11727
 
11728
  if (self)
11729
    {
11730
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11731
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11732
      /* dlclose (self); */
11733
    }
11734
  else
11735
    puts (dlerror ());
11736
 
11737
  return status;
11738
}
11739
_LT_EOF
11740
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11741
  (eval $ac_link) 2>&5
11742
  ac_status=$?
11743
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11744
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11745
    (./conftest; exit; ) >&5 2>/dev/null
11746
    lt_status=$?
11747
    case x$lt_status in
11748
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11749
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11750
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11751
    esac
11752
  else :
11753
    # compilation failed
11754
    lt_cv_dlopen_self_static=no
11755
  fi
11756
fi
11757
rm -fr conftest*
11758
 
11759
 
11760
fi
11761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11762
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11763
    fi
11764
 
11765
    CPPFLAGS="$save_CPPFLAGS"
11766
    LDFLAGS="$save_LDFLAGS"
11767
    LIBS="$save_LIBS"
11768
    ;;
11769
  esac
11770
 
11771
  case $lt_cv_dlopen_self in
11772
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11773
  *) enable_dlopen_self=unknown ;;
11774
  esac
11775
 
11776
  case $lt_cv_dlopen_self_static in
11777
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11778
  *) enable_dlopen_self_static=unknown ;;
11779
  esac
11780
fi
11781
 
11782
 
11783
 
11784
 
11785
 
11786
 
11787
 
11788
 
11789
 
11790
 
11791
 
11792
 
11793
 
11794
 
11795
 
11796
 
11797
 
11798
striplib=
11799
old_striplib=
11800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11801
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11802
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11803
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11804
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806
$as_echo "yes" >&6; }
11807
else
11808
# FIXME - insert some real tests, host_os isn't really good enough
11809
  case $host_os in
11810
  darwin*)
11811
    if test -n "$STRIP" ; then
11812
      striplib="$STRIP -x"
11813
      old_striplib="$STRIP -S"
11814
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11815
$as_echo "yes" >&6; }
11816
    else
11817
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818
$as_echo "no" >&6; }
11819
    fi
11820
    ;;
11821
  *)
11822
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823
$as_echo "no" >&6; }
11824
    ;;
11825
  esac
11826
fi
11827
 
11828
 
11829
 
11830
 
11831
 
11832
 
11833
 
11834
 
11835
 
11836
 
11837
 
11838
 
11839
  # Report which library types will actually be built
11840
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11841
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11842
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11843
$as_echo "$can_build_shared" >&6; }
11844
 
11845
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11846
$as_echo_n "checking whether to build shared libraries... " >&6; }
11847
  test "$can_build_shared" = "no" && enable_shared=no
11848
 
11849
  # On AIX, shared libraries and static libraries use the same namespace, and
11850
  # are all built from PIC.
11851
  case $host_os in
11852
  aix3*)
11853
    test "$enable_shared" = yes && enable_static=no
11854
    if test -n "$RANLIB"; then
11855
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11856
      postinstall_cmds='$RANLIB $lib'
11857
    fi
11858
    ;;
11859
 
11860
  aix[4-9]*)
11861
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11862
      test "$enable_shared" = yes && enable_static=no
11863
    fi
11864
    ;;
11865
  esac
11866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11867
$as_echo "$enable_shared" >&6; }
11868
 
11869
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11870
$as_echo_n "checking whether to build static libraries... " >&6; }
11871
  # Make sure either enable_shared or enable_static is yes.
11872
  test "$enable_shared" = yes || enable_static=yes
11873
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11874
$as_echo "$enable_static" >&6; }
11875
 
11876
 
11877
 
11878
 
11879
fi
11880
ac_ext=c
11881
ac_cpp='$CPP $CPPFLAGS'
11882
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
 
11886
CC="$lt_save_CC"
11887
 
11888
 
11889
ac_ext=cpp
11890
ac_cpp='$CXXCPP $CPPFLAGS'
11891
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11892
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11893
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11894
 
11895
archive_cmds_need_lc_CXX=no
11896
allow_undefined_flag_CXX=
11897
always_export_symbols_CXX=no
11898
archive_expsym_cmds_CXX=
11899
compiler_needs_object_CXX=no
11900
export_dynamic_flag_spec_CXX=
11901
hardcode_direct_CXX=no
11902
hardcode_direct_absolute_CXX=no
11903
hardcode_libdir_flag_spec_CXX=
11904
hardcode_libdir_flag_spec_ld_CXX=
11905
hardcode_libdir_separator_CXX=
11906
hardcode_minus_L_CXX=no
11907
hardcode_shlibpath_var_CXX=unsupported
11908
hardcode_automatic_CXX=no
11909
inherit_rpath_CXX=no
11910
module_cmds_CXX=
11911
module_expsym_cmds_CXX=
11912
link_all_deplibs_CXX=unknown
11913
old_archive_cmds_CXX=$old_archive_cmds
11914
no_undefined_flag_CXX=
11915
whole_archive_flag_spec_CXX=
11916
enable_shared_with_static_runtimes_CXX=no
11917
 
11918
# Source file extension for C++ test sources.
11919
ac_ext=cpp
11920
 
11921
# Object file extension for compiled C++ test sources.
11922
objext=o
11923
objext_CXX=$objext
11924
 
11925
# No sense in running all these tests if we already determined that
11926
# the CXX compiler isn't working.  Some variables (like enable_shared)
11927
# are currently assumed to apply to all compilers on this platform,
11928
# and will be corrupted by setting them based on a non-working compiler.
11929
if test "$_lt_caught_CXX_error" != yes; then
11930
  # Code to be used in simple compile tests
11931
  lt_simple_compile_test_code="int some_variable = 0;"
11932
 
11933
  # Code to be used in simple link tests
11934
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11935
 
11936
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11937
 
11938
 
11939
 
11940
 
11941
 
11942
 
11943
# If no C compiler was specified, use CC.
11944
LTCC=${LTCC-"$CC"}
11945
 
11946
# If no C compiler flags were specified, use CFLAGS.
11947
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11948
 
11949
# Allow CC to be a program name with arguments.
11950
compiler=$CC
11951
 
11952
 
11953
  # save warnings/boilerplate of simple test code
11954
  ac_outfile=conftest.$ac_objext
11955
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11956
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11957
_lt_compiler_boilerplate=`cat conftest.err`
11958
$RM conftest*
11959
 
11960
  ac_outfile=conftest.$ac_objext
11961
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11962
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11963
_lt_linker_boilerplate=`cat conftest.err`
11964
$RM -r conftest*
11965
 
11966
 
11967
  # Allow CC to be a program name with arguments.
11968
  lt_save_CC=$CC
11969
  lt_save_LD=$LD
11970
  lt_save_GCC=$GCC
11971
  GCC=$GXX
11972
  lt_save_with_gnu_ld=$with_gnu_ld
11973
  lt_save_path_LD=$lt_cv_path_LD
11974
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11975
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11976
  else
11977
    $as_unset lt_cv_prog_gnu_ld
11978
  fi
11979
  if test -n "${lt_cv_path_LDCXX+set}"; then
11980
    lt_cv_path_LD=$lt_cv_path_LDCXX
11981
  else
11982
    $as_unset lt_cv_path_LD
11983
  fi
11984
  test -z "${LDCXX+set}" || LD=$LDCXX
11985
  CC=${CXX-"c++"}
11986
  compiler=$CC
11987
  compiler_CXX=$CC
11988
  for cc_temp in $compiler""; do
11989
  case $cc_temp in
11990
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11991
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11992
    \-*) ;;
11993
    *) break;;
11994
  esac
11995
done
11996
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11997
 
11998
 
11999
  if test -n "$compiler"; then
12000
    # We don't want -fno-exception when compiling C++ code, so set the
12001
    # no_builtin_flag separately
12002
    if test "$GXX" = yes; then
12003
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12004
    else
12005
      lt_prog_compiler_no_builtin_flag_CXX=
12006
    fi
12007
 
12008
    if test "$GXX" = yes; then
12009
      # Set up default GNU C++ configuration
12010
 
12011
 
12012
 
12013
# Check whether --with-gnu-ld was given.
12014
if test "${with_gnu_ld+set}" = set; then :
12015
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12016
else
12017
  with_gnu_ld=no
12018
fi
12019
 
12020
ac_prog=ld
12021
if test "$GCC" = yes; then
12022
  # Check if gcc -print-prog-name=ld gives a path.
12023
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12024
$as_echo_n "checking for ld used by $CC... " >&6; }
12025
  case $host in
12026
  *-*-mingw*)
12027
    # gcc leaves a trailing carriage return which upsets mingw
12028
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12029
  *)
12030
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12031
  esac
12032
  case $ac_prog in
12033
    # Accept absolute paths.
12034
    [\\/]* | ?:[\\/]*)
12035
      re_direlt='/[^/][^/]*/\.\./'
12036
      # Canonicalize the pathname of ld
12037
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12038
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12039
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12040
      done
12041
      test -z "$LD" && LD="$ac_prog"
12042
      ;;
12043
  "")
12044
    # If it fails, then pretend we aren't using GCC.
12045
    ac_prog=ld
12046
    ;;
12047
  *)
12048
    # If it is relative, then search for the first ld in PATH.
12049
    with_gnu_ld=unknown
12050
    ;;
12051
  esac
12052
elif test "$with_gnu_ld" = yes; then
12053
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12054
$as_echo_n "checking for GNU ld... " >&6; }
12055
else
12056
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12057
$as_echo_n "checking for non-GNU ld... " >&6; }
12058
fi
12059
if test "${lt_cv_path_LD+set}" = set; then :
12060
  $as_echo_n "(cached) " >&6
12061
else
12062
  if test -z "$LD"; then
12063
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12064
  for ac_dir in $PATH; do
12065
    IFS="$lt_save_ifs"
12066
    test -z "$ac_dir" && ac_dir=.
12067
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12068
      lt_cv_path_LD="$ac_dir/$ac_prog"
12069
      # Check to see if the program is GNU ld.  I'd rather use --version,
12070
      # but apparently some variants of GNU ld only accept -v.
12071
      # Break only if it was the GNU/non-GNU ld that we prefer.
12072
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12073
      *GNU* | *'with BFD'*)
12074
	test "$with_gnu_ld" != no && break
12075
	;;
12076
      *)
12077
	test "$with_gnu_ld" != yes && break
12078
	;;
12079
      esac
12080
    fi
12081
  done
12082
  IFS="$lt_save_ifs"
12083
else
12084
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12085
fi
12086
fi
12087
 
12088
LD="$lt_cv_path_LD"
12089
if test -n "$LD"; then
12090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12091
$as_echo "$LD" >&6; }
12092
else
12093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094
$as_echo "no" >&6; }
12095
fi
12096
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12098
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12099
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12100
  $as_echo_n "(cached) " >&6
12101
else
12102
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12103
case `$LD -v 2>&1 </dev/null` in
12104
*GNU* | *'with BFD'*)
12105
  lt_cv_prog_gnu_ld=yes
12106
  ;;
12107
*)
12108
  lt_cv_prog_gnu_ld=no
12109
  ;;
12110
esac
12111
fi
12112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12113
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12114
with_gnu_ld=$lt_cv_prog_gnu_ld
12115
 
12116
 
12117
 
12118
 
12119
 
12120
 
12121
 
12122
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12123
      # archiving commands below assume that GNU ld is being used.
12124
      if test "$with_gnu_ld" = yes; then
12125
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12126
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12127
 
12128
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12129
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12130
 
12131
        # If archive_cmds runs LD, not CC, wlarc should be empty
12132
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12133
        #     investigate it a little bit more. (MM)
12134
        wlarc='${wl}'
12135
 
12136
        # ancient GNU ld didn't support --whole-archive et. al.
12137
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12138
	  $GREP 'no-whole-archive' > /dev/null; then
12139
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12140
        else
12141
          whole_archive_flag_spec_CXX=
12142
        fi
12143
      else
12144
        with_gnu_ld=no
12145
        wlarc=
12146
 
12147
        # A generic and very simple default shared library creation
12148
        # command for GNU C++ for the case where it uses the native
12149
        # linker, instead of GNU ld.  If possible, this setting should
12150
        # overridden to take advantage of the native linker features on
12151
        # the platform it is being used on.
12152
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12153
      fi
12154
 
12155
      # Commands to make compiler produce verbose output that lists
12156
      # what "hidden" libraries, object files and flags are used when
12157
      # linking a shared library.
12158
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12159
 
12160
    else
12161
      GXX=no
12162
      with_gnu_ld=no
12163
      wlarc=
12164
    fi
12165
 
12166
    # PORTME: fill in a description of your system's C++ link characteristics
12167
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12168
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12169
    ld_shlibs_CXX=yes
12170
    case $host_os in
12171
      aix3*)
12172
        # FIXME: insert proper C++ library support
12173
        ld_shlibs_CXX=no
12174
        ;;
12175
      aix[4-9]*)
12176
        if test "$host_cpu" = ia64; then
12177
          # On IA64, the linker does run time linking by default, so we don't
12178
          # have to do anything special.
12179
          aix_use_runtimelinking=no
12180
          exp_sym_flag='-Bexport'
12181
          no_entry_flag=""
12182
        else
12183
          aix_use_runtimelinking=no
12184
 
12185
          # Test if we are trying to use run time linking or normal
12186
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12187
          # need to do runtime linking.
12188
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12189
	    for ld_flag in $LDFLAGS; do
12190
	      case $ld_flag in
12191
	      *-brtl*)
12192
	        aix_use_runtimelinking=yes
12193
	        break
12194
	        ;;
12195
	      esac
12196
	    done
12197
	    ;;
12198
          esac
12199
 
12200
          exp_sym_flag='-bexport'
12201
          no_entry_flag='-bnoentry'
12202
        fi
12203
 
12204
        # When large executables or shared objects are built, AIX ld can
12205
        # have problems creating the table of contents.  If linking a library
12206
        # or program results in "error TOC overflow" add -mminimal-toc to
12207
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12208
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12209
 
12210
        archive_cmds_CXX=''
12211
        hardcode_direct_CXX=yes
12212
        hardcode_direct_absolute_CXX=yes
12213
        hardcode_libdir_separator_CXX=':'
12214
        link_all_deplibs_CXX=yes
12215
        file_list_spec_CXX='${wl}-f,'
12216
 
12217
        if test "$GXX" = yes; then
12218
          case $host_os in aix4.[012]|aix4.[012].*)
12219
          # We only want to do this on AIX 4.2 and lower, the check
12220
          # below for broken collect2 doesn't work under 4.3+
12221
	  collect2name=`${CC} -print-prog-name=collect2`
12222
	  if test -f "$collect2name" &&
12223
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12224
	  then
12225
	    # We have reworked collect2
12226
	    :
12227
	  else
12228
	    # We have old collect2
12229
	    hardcode_direct_CXX=unsupported
12230
	    # It fails to find uninstalled libraries when the uninstalled
12231
	    # path is not listed in the libpath.  Setting hardcode_minus_L
12232
	    # to unsupported forces relinking
12233
	    hardcode_minus_L_CXX=yes
12234
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12235
	    hardcode_libdir_separator_CXX=
12236
	  fi
12237
          esac
12238
          shared_flag='-shared'
12239
	  if test "$aix_use_runtimelinking" = yes; then
12240
	    shared_flag="$shared_flag "'${wl}-G'
12241
	  fi
12242
        else
12243
          # not using gcc
12244
          if test "$host_cpu" = ia64; then
12245
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12246
	  # chokes on -Wl,-G. The following line is correct:
12247
	  shared_flag='-G'
12248
          else
12249
	    if test "$aix_use_runtimelinking" = yes; then
12250
	      shared_flag='${wl}-G'
12251
	    else
12252
	      shared_flag='${wl}-bM:SRE'
12253
	    fi
12254
          fi
12255
        fi
12256
 
12257
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12258
        # It seems that -bexpall does not export symbols beginning with
12259
        # underscore (_), so it is better to generate a list of symbols to
12260
	# export.
12261
        always_export_symbols_CXX=yes
12262
        if test "$aix_use_runtimelinking" = yes; then
12263
          # Warning - without using the other runtime loading flags (-brtl),
12264
          # -berok will link without error, but may produce a broken library.
12265
          allow_undefined_flag_CXX='-berok'
12266
          # Determine the default libpath from the value encoded in an empty
12267
          # executable.
12268
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269
/* end confdefs.h.  */
12270
 
12271
int
12272
main ()
12273
{
12274
 
12275
  ;
12276
  return 0;
12277
}
12278
_ACEOF
12279
if ac_fn_cxx_try_link "$LINENO"; then :
12280
 
12281
lt_aix_libpath_sed='
12282
    /Import File Strings/,/^$/ {
12283
	/^0/ {
12284
	    s/^0  *\(.*\)$/\1/
12285
	    p
12286
	}
12287
    }'
12288
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12289
# Check for a 64-bit object if we didn't find anything.
12290
if test -z "$aix_libpath"; then
12291
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12292
fi
12293
fi
12294
rm -f core conftest.err conftest.$ac_objext \
12295
    conftest$ac_exeext conftest.$ac_ext
12296
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12297
 
12298
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12299
 
12300
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12301
        else
12302
          if test "$host_cpu" = ia64; then
12303
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12304
	    allow_undefined_flag_CXX="-z nodefs"
12305
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12306
          else
12307
	    # Determine the default libpath from the value encoded in an
12308
	    # empty executable.
12309
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310
/* end confdefs.h.  */
12311
 
12312
int
12313
main ()
12314
{
12315
 
12316
  ;
12317
  return 0;
12318
}
12319
_ACEOF
12320
if ac_fn_cxx_try_link "$LINENO"; then :
12321
 
12322
lt_aix_libpath_sed='
12323
    /Import File Strings/,/^$/ {
12324
	/^0/ {
12325
	    s/^0  *\(.*\)$/\1/
12326
	    p
12327
	}
12328
    }'
12329
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12330
# Check for a 64-bit object if we didn't find anything.
12331
if test -z "$aix_libpath"; then
12332
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12333
fi
12334
fi
12335
rm -f core conftest.err conftest.$ac_objext \
12336
    conftest$ac_exeext conftest.$ac_ext
12337
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12338
 
12339
	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12340
	    # Warning - without using the other run time loading flags,
12341
	    # -berok will link without error, but may produce a broken library.
12342
	    no_undefined_flag_CXX=' ${wl}-bernotok'
12343
	    allow_undefined_flag_CXX=' ${wl}-berok'
12344
	    # Exported symbols can be pulled into shared objects from archives
12345
	    whole_archive_flag_spec_CXX='$convenience'
12346
	    archive_cmds_need_lc_CXX=yes
12347
	    # This is similar to how AIX traditionally builds its shared
12348
	    # libraries.
12349
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12350
          fi
12351
        fi
12352
        ;;
12353
 
12354
      beos*)
12355
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12356
	  allow_undefined_flag_CXX=unsupported
12357
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12358
	  # support --undefined.  This deserves some investigation.  FIXME
12359
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12360
	else
12361
	  ld_shlibs_CXX=no
12362
	fi
12363
	;;
12364
 
12365
      chorus*)
12366
        case $cc_basename in
12367
          *)
12368
	  # FIXME: insert proper C++ library support
12369
	  ld_shlibs_CXX=no
12370
	  ;;
12371
        esac
12372
        ;;
12373
 
12374
      cygwin* | mingw* | pw32* | cegcc*)
12375
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12376
        # as there is no search path for DLLs.
12377
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12378
        allow_undefined_flag_CXX=unsupported
12379
        always_export_symbols_CXX=no
12380
        enable_shared_with_static_runtimes_CXX=yes
12381
 
12382
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12383
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12384
          # If the export-symbols file already is a .def file (1st line
12385
          # is EXPORTS), use it as is; otherwise, prepend...
12386
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12387
	    cp $export_symbols $output_objdir/$soname.def;
12388
          else
12389
	    echo EXPORTS > $output_objdir/$soname.def;
12390
	    cat $export_symbols >> $output_objdir/$soname.def;
12391
          fi~
12392
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12393
        else
12394
          ld_shlibs_CXX=no
12395
        fi
12396
        ;;
12397
      darwin* | rhapsody*)
12398
 
12399
 
12400
  archive_cmds_need_lc_CXX=no
12401
  hardcode_direct_CXX=no
12402
  hardcode_automatic_CXX=yes
12403
  hardcode_shlibpath_var_CXX=unsupported
12404
  whole_archive_flag_spec_CXX=''
12405
  link_all_deplibs_CXX=yes
12406
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12407
  case $cc_basename in
12408
     ifort*) _lt_dar_can_shared=yes ;;
12409
     *) _lt_dar_can_shared=$GCC ;;
12410
  esac
12411
  if test "$_lt_dar_can_shared" = "yes"; then
12412
    output_verbose_link_cmd=echo
12413
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12414
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12415
    archive_expsym_cmds_CXX="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}"
12416
    module_expsym_cmds_CXX="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}"
12417
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12418
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12419
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12420
    fi
12421
 
12422
  else
12423
  ld_shlibs_CXX=no
12424
  fi
12425
 
12426
	;;
12427
 
12428
      dgux*)
12429
        case $cc_basename in
12430
          ec++*)
12431
	    # FIXME: insert proper C++ library support
12432
	    ld_shlibs_CXX=no
12433
	    ;;
12434
          ghcx*)
12435
	    # Green Hills C++ Compiler
12436
	    # FIXME: insert proper C++ library support
12437
	    ld_shlibs_CXX=no
12438
	    ;;
12439
          *)
12440
	    # FIXME: insert proper C++ library support
12441
	    ld_shlibs_CXX=no
12442
	    ;;
12443
        esac
12444
        ;;
12445
 
12446
      freebsd[12]*)
12447
        # C++ shared libraries reported to be fairly broken before
12448
	# switch to ELF
12449
        ld_shlibs_CXX=no
12450
        ;;
12451
 
12452
      freebsd-elf*)
12453
        archive_cmds_need_lc_CXX=no
12454
        ;;
12455
 
12456
      freebsd* | dragonfly*)
12457
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12458
        # conventions
12459
        ld_shlibs_CXX=yes
12460
        ;;
12461
 
12462
      gnu*)
12463
        ;;
12464
 
12465
      hpux9*)
12466
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12467
        hardcode_libdir_separator_CXX=:
12468
        export_dynamic_flag_spec_CXX='${wl}-E'
12469
        hardcode_direct_CXX=yes
12470
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12471
				             # but as the default
12472
				             # location of the library.
12473
 
12474
        case $cc_basename in
12475
          CC*)
12476
            # FIXME: insert proper C++ library support
12477
            ld_shlibs_CXX=no
12478
            ;;
12479
          aCC*)
12480
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12481
            # Commands to make compiler produce verbose output that lists
12482
            # what "hidden" libraries, object files and flags are used when
12483
            # linking a shared library.
12484
            #
12485
            # There doesn't appear to be a way to prevent this compiler from
12486
            # explicitly linking system object files so we need to strip them
12487
            # from the output so that they don't get included in the library
12488
            # dependencies.
12489
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12490
            ;;
12491
          *)
12492
            if test "$GXX" = yes; then
12493
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12494
            else
12495
              # FIXME: insert proper C++ library support
12496
              ld_shlibs_CXX=no
12497
            fi
12498
            ;;
12499
        esac
12500
        ;;
12501
 
12502
      hpux10*|hpux11*)
12503
        if test $with_gnu_ld = no; then
12504
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12505
	  hardcode_libdir_separator_CXX=:
12506
 
12507
          case $host_cpu in
12508
            hppa*64*|ia64*)
12509
              ;;
12510
            *)
12511
	      export_dynamic_flag_spec_CXX='${wl}-E'
12512
              ;;
12513
          esac
12514
        fi
12515
        case $host_cpu in
12516
          hppa*64*|ia64*)
12517
            hardcode_direct_CXX=no
12518
            hardcode_shlibpath_var_CXX=no
12519
            ;;
12520
          *)
12521
            hardcode_direct_CXX=yes
12522
            hardcode_direct_absolute_CXX=yes
12523
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12524
					         # but as the default
12525
					         # location of the library.
12526
            ;;
12527
        esac
12528
 
12529
        case $cc_basename in
12530
          CC*)
12531
	    # FIXME: insert proper C++ library support
12532
	    ld_shlibs_CXX=no
12533
	    ;;
12534
          aCC*)
12535
	    case $host_cpu in
12536
	      hppa*64*)
12537
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12538
	        ;;
12539
	      ia64*)
12540
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12541
	        ;;
12542
	      *)
12543
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12544
	        ;;
12545
	    esac
12546
	    # Commands to make compiler produce verbose output that lists
12547
	    # what "hidden" libraries, object files and flags are used when
12548
	    # linking a shared library.
12549
	    #
12550
	    # There doesn't appear to be a way to prevent this compiler from
12551
	    # explicitly linking system object files so we need to strip them
12552
	    # from the output so that they don't get included in the library
12553
	    # dependencies.
12554
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12555
	    ;;
12556
          *)
12557
	    if test "$GXX" = yes; then
12558
	      if test $with_gnu_ld = no; then
12559
	        case $host_cpu in
12560
	          hppa*64*)
12561
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12562
	            ;;
12563
	          ia64*)
12564
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12565
	            ;;
12566
	          *)
12567
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12568
	            ;;
12569
	        esac
12570
	      fi
12571
	    else
12572
	      # FIXME: insert proper C++ library support
12573
	      ld_shlibs_CXX=no
12574
	    fi
12575
	    ;;
12576
        esac
12577
        ;;
12578
 
12579
      interix[3-9]*)
12580
	hardcode_direct_CXX=no
12581
	hardcode_shlibpath_var_CXX=no
12582
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12583
	export_dynamic_flag_spec_CXX='${wl}-E'
12584
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12585
	# Instead, shared libraries are loaded at an image base (0x10000000 by
12586
	# default) and relocated if they conflict, which is a slow very memory
12587
	# consuming and fragmenting process.  To avoid this, we pick a random,
12588
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12589
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12590
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12591
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12592
	;;
12593
      irix5* | irix6*)
12594
        case $cc_basename in
12595
          CC*)
12596
	    # SGI C++
12597
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12598
 
12599
	    # Archives containing C++ object files must be created using
12600
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12601
	    # necessary to make sure instantiated templates are included
12602
	    # in the archive.
12603
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12604
	    ;;
12605
          *)
12606
	    if test "$GXX" = yes; then
12607
	      if test "$with_gnu_ld" = no; then
12608
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12609
	      else
12610
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12611
	      fi
12612
	    fi
12613
	    link_all_deplibs_CXX=yes
12614
	    ;;
12615
        esac
12616
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12617
        hardcode_libdir_separator_CXX=:
12618
        inherit_rpath_CXX=yes
12619
        ;;
12620
 
12621
      linux* | k*bsd*-gnu)
12622
        case $cc_basename in
12623
          KCC*)
12624
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12625
 
12626
	    # KCC will only create a shared library if the output file
12627
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12628
	    # to its proper name (with version) after linking.
12629
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12630
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12631
	    # Commands to make compiler produce verbose output that lists
12632
	    # what "hidden" libraries, object files and flags are used when
12633
	    # linking a shared library.
12634
	    #
12635
	    # There doesn't appear to be a way to prevent this compiler from
12636
	    # explicitly linking system object files so we need to strip them
12637
	    # from the output so that they don't get included in the library
12638
	    # dependencies.
12639
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12640
 
12641
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12642
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12643
 
12644
	    # Archives containing C++ object files must be created using
12645
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12646
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12647
	    ;;
12648
	  icpc* | ecpc* )
12649
	    # Intel C++
12650
	    with_gnu_ld=yes
12651
	    # version 8.0 and above of icpc choke on multiply defined symbols
12652
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12653
	    # earlier do not add the objects themselves.
12654
	    case `$CC -V 2>&1` in
12655
	      *"Version 7."*)
12656
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12658
		;;
12659
	      *)  # Version 8.0 or newer
12660
	        tmp_idyn=
12661
	        case $host_cpu in
12662
		  ia64*) tmp_idyn=' -i_dynamic';;
12663
		esac
12664
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12665
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12666
		;;
12667
	    esac
12668
	    archive_cmds_need_lc_CXX=no
12669
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12670
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12671
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12672
	    ;;
12673
          pgCC* | pgcpp*)
12674
            # Portland Group C++ compiler
12675
	    case `$CC -V` in
12676
	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12677
	      prelink_cmds_CXX='tpldir=Template.dir~
12678
		rm -rf $tpldir~
12679
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12680
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12681
	      old_archive_cmds_CXX='tpldir=Template.dir~
12682
		rm -rf $tpldir~
12683
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12684
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12685
		$RANLIB $oldlib'
12686
	      archive_cmds_CXX='tpldir=Template.dir~
12687
		rm -rf $tpldir~
12688
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12689
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12690
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12691
		rm -rf $tpldir~
12692
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12693
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12694
	      ;;
12695
	    *) # Version 6 will use weak symbols
12696
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12697
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12698
	      ;;
12699
	    esac
12700
 
12701
	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12702
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12703
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12704
            ;;
12705
	  cxx*)
12706
	    # Compaq C++
12707
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12708
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12709
 
12710
	    runpath_var=LD_RUN_PATH
12711
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12712
	    hardcode_libdir_separator_CXX=:
12713
 
12714
	    # Commands to make compiler produce verbose output that lists
12715
	    # what "hidden" libraries, object files and flags are used when
12716
	    # linking a shared library.
12717
	    #
12718
	    # There doesn't appear to be a way to prevent this compiler from
12719
	    # explicitly linking system object files so we need to strip them
12720
	    # from the output so that they don't get included in the library
12721
	    # dependencies.
12722
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12723
	    ;;
12724
	  xl*)
12725
	    # IBM XL 8.0 on PPC, with GNU ld
12726
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12727
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12728
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12729
	    if test "x$supports_anon_versioning" = xyes; then
12730
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12731
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12732
		echo "local: *; };" >> $output_objdir/$libname.ver~
12733
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12734
	    fi
12735
	    ;;
12736
	  *)
12737
	    case `$CC -V 2>&1 | sed 5q` in
12738
	    *Sun\ C*)
12739
	      # Sun C++ 5.9
12740
	      no_undefined_flag_CXX=' -zdefs'
12741
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12742
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12743
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12744
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12745
	      compiler_needs_object_CXX=yes
12746
 
12747
	      # Not sure whether something based on
12748
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12749
	      # would be better.
12750
	      output_verbose_link_cmd='echo'
12751
 
12752
	      # Archives containing C++ object files must be created using
12753
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12754
	      # necessary to make sure instantiated templates are included
12755
	      # in the archive.
12756
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12757
	      ;;
12758
	    esac
12759
	    ;;
12760
	esac
12761
	;;
12762
 
12763
      lynxos*)
12764
        # FIXME: insert proper C++ library support
12765
	ld_shlibs_CXX=no
12766
	;;
12767
 
12768
      m88k*)
12769
        # FIXME: insert proper C++ library support
12770
        ld_shlibs_CXX=no
12771
	;;
12772
 
12773
      mvs*)
12774
        case $cc_basename in
12775
          cxx*)
12776
	    # FIXME: insert proper C++ library support
12777
	    ld_shlibs_CXX=no
12778
	    ;;
12779
	  *)
12780
	    # FIXME: insert proper C++ library support
12781
	    ld_shlibs_CXX=no
12782
	    ;;
12783
	esac
12784
	;;
12785
 
12786
      netbsd*)
12787
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12788
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12789
	  wlarc=
12790
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12791
	  hardcode_direct_CXX=yes
12792
	  hardcode_shlibpath_var_CXX=no
12793
	fi
12794
	# Workaround some broken pre-1.5 toolchains
12795
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12796
	;;
12797
 
12798
      *nto* | *qnx*)
12799
        ld_shlibs_CXX=yes
12800
	;;
12801
 
12802
      openbsd2*)
12803
        # C++ shared libraries are fairly broken
12804
	ld_shlibs_CXX=no
12805
	;;
12806
 
12807
      openbsd*)
12808
	if test -f /usr/libexec/ld.so; then
12809
	  hardcode_direct_CXX=yes
12810
	  hardcode_shlibpath_var_CXX=no
12811
	  hardcode_direct_absolute_CXX=yes
12812
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12813
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12814
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12815
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12816
	    export_dynamic_flag_spec_CXX='${wl}-E'
12817
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12818
	  fi
12819
	  output_verbose_link_cmd=echo
12820
	else
12821
	  ld_shlibs_CXX=no
12822
	fi
12823
	;;
12824
 
12825
      osf3* | osf4* | osf5*)
12826
        case $cc_basename in
12827
          KCC*)
12828
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12829
 
12830
	    # KCC will only create a shared library if the output file
12831
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12832
	    # to its proper name (with version) after linking.
12833
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12834
 
12835
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12836
	    hardcode_libdir_separator_CXX=:
12837
 
12838
	    # Archives containing C++ object files must be created using
12839
	    # the KAI C++ compiler.
12840
	    case $host in
12841
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12842
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12843
	    esac
12844
	    ;;
12845
          RCC*)
12846
	    # Rational C++ 2.4.1
12847
	    # FIXME: insert proper C++ library support
12848
	    ld_shlibs_CXX=no
12849
	    ;;
12850
          cxx*)
12851
	    case $host in
12852
	      osf3*)
12853
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12854
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12855
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12856
		;;
12857
	      *)
12858
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12859
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12860
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12861
	          echo "-hidden">> $lib.exp~
12862
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12863
	          $RM $lib.exp'
12864
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12865
		;;
12866
	    esac
12867
 
12868
	    hardcode_libdir_separator_CXX=:
12869
 
12870
	    # Commands to make compiler produce verbose output that lists
12871
	    # what "hidden" libraries, object files and flags are used when
12872
	    # linking a shared library.
12873
	    #
12874
	    # There doesn't appear to be a way to prevent this compiler from
12875
	    # explicitly linking system object files so we need to strip them
12876
	    # from the output so that they don't get included in the library
12877
	    # dependencies.
12878
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12879
	    ;;
12880
	  *)
12881
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12882
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12883
	      case $host in
12884
	        osf3*)
12885
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12886
		  ;;
12887
	        *)
12888
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12889
		  ;;
12890
	      esac
12891
 
12892
	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12893
	      hardcode_libdir_separator_CXX=:
12894
 
12895
	      # Commands to make compiler produce verbose output that lists
12896
	      # what "hidden" libraries, object files and flags are used when
12897
	      # linking a shared library.
12898
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12899
 
12900
	    else
12901
	      # FIXME: insert proper C++ library support
12902
	      ld_shlibs_CXX=no
12903
	    fi
12904
	    ;;
12905
        esac
12906
        ;;
12907
 
12908
      psos*)
12909
        # FIXME: insert proper C++ library support
12910
        ld_shlibs_CXX=no
12911
        ;;
12912
 
12913
      sunos4*)
12914
        case $cc_basename in
12915
          CC*)
12916
	    # Sun C++ 4.x
12917
	    # FIXME: insert proper C++ library support
12918
	    ld_shlibs_CXX=no
12919
	    ;;
12920
          lcc*)
12921
	    # Lucid
12922
	    # FIXME: insert proper C++ library support
12923
	    ld_shlibs_CXX=no
12924
	    ;;
12925
          *)
12926
	    # FIXME: insert proper C++ library support
12927
	    ld_shlibs_CXX=no
12928
	    ;;
12929
        esac
12930
        ;;
12931
 
12932
      solaris*)
12933
        case $cc_basename in
12934
          CC*)
12935
	    # Sun C++ 4.2, 5.x and Centerline C++
12936
            archive_cmds_need_lc_CXX=yes
12937
	    no_undefined_flag_CXX=' -zdefs'
12938
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12939
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12940
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12941
 
12942
	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12943
	    hardcode_shlibpath_var_CXX=no
12944
	    case $host_os in
12945
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12946
	      *)
12947
		# The compiler driver will combine and reorder linker options,
12948
		# but understands `-z linker_flag'.
12949
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12950
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12951
	        ;;
12952
	    esac
12953
	    link_all_deplibs_CXX=yes
12954
 
12955
	    output_verbose_link_cmd='echo'
12956
 
12957
	    # Archives containing C++ object files must be created using
12958
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12959
	    # necessary to make sure instantiated templates are included
12960
	    # in the archive.
12961
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12962
	    ;;
12963
          gcx*)
12964
	    # Green Hills C++ Compiler
12965
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12966
 
12967
	    # The C++ compiler must be used to create the archive.
12968
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12969
	    ;;
12970
          *)
12971
	    # GNU C++ compiler with Solaris linker
12972
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12973
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12974
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12975
	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12976
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12977
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12978
 
12979
	        # Commands to make compiler produce verbose output that lists
12980
	        # what "hidden" libraries, object files and flags are used when
12981
	        # linking a shared library.
12982
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12983
	      else
12984
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12985
	        # platform.
12986
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12987
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12989
 
12990
	        # Commands to make compiler produce verbose output that lists
12991
	        # what "hidden" libraries, object files and flags are used when
12992
	        # linking a shared library.
12993
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12994
	      fi
12995
 
12996
	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12997
	      case $host_os in
12998
		solaris2.[0-5] | solaris2.[0-5].*) ;;
12999
		*)
13000
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13001
		  ;;
13002
	      esac
13003
	    fi
13004
	    ;;
13005
        esac
13006
        ;;
13007
 
13008
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13009
      no_undefined_flag_CXX='${wl}-z,text'
13010
      archive_cmds_need_lc_CXX=no
13011
      hardcode_shlibpath_var_CXX=no
13012
      runpath_var='LD_RUN_PATH'
13013
 
13014
      case $cc_basename in
13015
        CC*)
13016
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13017
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13018
	  ;;
13019
	*)
13020
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13021
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13022
	  ;;
13023
      esac
13024
      ;;
13025
 
13026
      sysv5* | sco3.2v5* | sco5v6*)
13027
	# Note: We can NOT use -z defs as we might desire, because we do not
13028
	# link with -lc, and that would cause any symbols used from libc to
13029
	# always be unresolved, which means just about no library would
13030
	# ever link correctly.  If we're not using GNU ld we use -z text
13031
	# though, which does catch some bad symbols but isn't as heavy-handed
13032
	# as -z defs.
13033
	no_undefined_flag_CXX='${wl}-z,text'
13034
	allow_undefined_flag_CXX='${wl}-z,nodefs'
13035
	archive_cmds_need_lc_CXX=no
13036
	hardcode_shlibpath_var_CXX=no
13037
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13038
	hardcode_libdir_separator_CXX=':'
13039
	link_all_deplibs_CXX=yes
13040
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13041
	runpath_var='LD_RUN_PATH'
13042
 
13043
	case $cc_basename in
13044
          CC*)
13045
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13047
	    ;;
13048
	  *)
13049
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13050
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13051
	    ;;
13052
	esac
13053
      ;;
13054
 
13055
      tandem*)
13056
        case $cc_basename in
13057
          NCC*)
13058
	    # NonStop-UX NCC 3.20
13059
	    # FIXME: insert proper C++ library support
13060
	    ld_shlibs_CXX=no
13061
	    ;;
13062
          *)
13063
	    # FIXME: insert proper C++ library support
13064
	    ld_shlibs_CXX=no
13065
	    ;;
13066
        esac
13067
        ;;
13068
 
13069
      vxworks*)
13070
        # FIXME: insert proper C++ library support
13071
        ld_shlibs_CXX=no
13072
        ;;
13073
 
13074
      *)
13075
        # FIXME: insert proper C++ library support
13076
        ld_shlibs_CXX=no
13077
        ;;
13078
    esac
13079
 
13080
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13081
$as_echo "$ld_shlibs_CXX" >&6; }
13082
    test "$ld_shlibs_CXX" = no && can_build_shared=no
13083
 
13084
    GCC_CXX="$GXX"
13085
    LD_CXX="$LD"
13086
 
13087
    ## CAVEAT EMPTOR:
13088
    ## There is no encapsulation within the following macros, do not change
13089
    ## the running order or otherwise move them around unless you know exactly
13090
    ## what you are doing...
13091
    # Dependencies to place before and after the object being linked:
13092
predep_objects_CXX=
13093
postdep_objects_CXX=
13094
predeps_CXX=
13095
postdeps_CXX=
13096
compiler_lib_search_path_CXX=
13097
 
13098
cat > conftest.$ac_ext <<_LT_EOF
13099
class Foo
13100
{
13101
public:
13102
  Foo (void) { a = 0; }
13103
private:
13104
  int a;
13105
};
13106
_LT_EOF
13107
 
13108
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13109
  (eval $ac_compile) 2>&5
13110
  ac_status=$?
13111
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13112
  test $ac_status = 0; }; then
13113
  # Parse the compiler output and extract the necessary
13114
  # objects, libraries and library flags.
13115
 
13116
  # Sentinel used to keep track of whether or not we are before
13117
  # the conftest object file.
13118
  pre_test_object_deps_done=no
13119
 
13120
  for p in `eval "$output_verbose_link_cmd"`; do
13121
    case $p in
13122
 
13123
    -L* | -R* | -l*)
13124
       # Some compilers place space between "-{L,R}" and the path.
13125
       # Remove the space.
13126
       if test $p = "-L" ||
13127
          test $p = "-R"; then
13128
	 prev=$p
13129
	 continue
13130
       else
13131
	 prev=
13132
       fi
13133
 
13134
       if test "$pre_test_object_deps_done" = no; then
13135
	 case $p in
13136
	 -L* | -R*)
13137
	   # Internal compiler library paths should come after those
13138
	   # provided the user.  The postdeps already come after the
13139
	   # user supplied libs so there is no need to process them.
13140
	   if test -z "$compiler_lib_search_path_CXX"; then
13141
	     compiler_lib_search_path_CXX="${prev}${p}"
13142
	   else
13143
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13144
	   fi
13145
	   ;;
13146
	 # The "-l" case would never come before the object being
13147
	 # linked, so don't bother handling this case.
13148
	 esac
13149
       else
13150
	 if test -z "$postdeps_CXX"; then
13151
	   postdeps_CXX="${prev}${p}"
13152
	 else
13153
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13154
	 fi
13155
       fi
13156
       ;;
13157
 
13158
    *.$objext)
13159
       # This assumes that the test object file only shows up
13160
       # once in the compiler output.
13161
       if test "$p" = "conftest.$objext"; then
13162
	 pre_test_object_deps_done=yes
13163
	 continue
13164
       fi
13165
 
13166
       if test "$pre_test_object_deps_done" = no; then
13167
	 if test -z "$predep_objects_CXX"; then
13168
	   predep_objects_CXX="$p"
13169
	 else
13170
	   predep_objects_CXX="$predep_objects_CXX $p"
13171
	 fi
13172
       else
13173
	 if test -z "$postdep_objects_CXX"; then
13174
	   postdep_objects_CXX="$p"
13175
	 else
13176
	   postdep_objects_CXX="$postdep_objects_CXX $p"
13177
	 fi
13178
       fi
13179
       ;;
13180
 
13181
    *) ;; # Ignore the rest.
13182
 
13183
    esac
13184
  done
13185
 
13186
  # Clean up.
13187
  rm -f a.out a.exe
13188
else
13189
  echo "libtool.m4: error: problem compiling CXX test program"
13190
fi
13191
 
13192
$RM -f confest.$objext
13193
 
13194
# PORTME: override above test on systems where it is broken
13195
case $host_os in
13196
interix[3-9]*)
13197
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13198
  # hack all around it, let's just trust "g++" to DTRT.
13199
  predep_objects_CXX=
13200
  postdep_objects_CXX=
13201
  postdeps_CXX=
13202
  ;;
13203
 
13204
linux*)
13205
  case `$CC -V 2>&1 | sed 5q` in
13206
  *Sun\ C*)
13207
    # Sun C++ 5.9
13208
 
13209
    # The more standards-conforming stlport4 library is
13210
    # incompatible with the Cstd library. Avoid specifying
13211
    # it if it's in CXXFLAGS. Ignore libCrun as
13212
    # -library=stlport4 depends on it.
13213
    case " $CXX $CXXFLAGS " in
13214
    *" -library=stlport4 "*)
13215
      solaris_use_stlport4=yes
13216
      ;;
13217
    esac
13218
 
13219
    if test "$solaris_use_stlport4" != yes; then
13220
      postdeps_CXX='-library=Cstd -library=Crun'
13221
    fi
13222
    ;;
13223
  esac
13224
  ;;
13225
 
13226
solaris*)
13227
  case $cc_basename in
13228
  CC*)
13229
    # The more standards-conforming stlport4 library is
13230
    # incompatible with the Cstd library. Avoid specifying
13231
    # it if it's in CXXFLAGS. Ignore libCrun as
13232
    # -library=stlport4 depends on it.
13233
    case " $CXX $CXXFLAGS " in
13234
    *" -library=stlport4 "*)
13235
      solaris_use_stlport4=yes
13236
      ;;
13237
    esac
13238
 
13239
    # Adding this requires a known-good setup of shared libraries for
13240
    # Sun compiler versions before 5.6, else PIC objects from an old
13241
    # archive will be linked into the output, leading to subtle bugs.
13242
    if test "$solaris_use_stlport4" != yes; then
13243
      postdeps_CXX='-library=Cstd -library=Crun'
13244
    fi
13245
    ;;
13246
  esac
13247
  ;;
13248
esac
13249
 
13250
 
13251
case " $postdeps_CXX " in
13252
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13253
esac
13254
 compiler_lib_search_dirs_CXX=
13255
if test -n "${compiler_lib_search_path_CXX}"; then
13256
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13257
fi
13258
 
13259
 
13260
 
13261
 
13262
 
13263
 
13264
 
13265
 
13266
 
13267
 
13268
 
13269
 
13270
 
13271
 
13272
 
13273
 
13274
 
13275
 
13276
 
13277
 
13278
 
13279
 
13280
 
13281
 
13282
 
13283
 
13284
 
13285
 
13286
 
13287
 
13288
 
13289
    lt_prog_compiler_wl_CXX=
13290
lt_prog_compiler_pic_CXX=
13291
lt_prog_compiler_static_CXX=
13292
 
13293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13294
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13295
 
13296
  # C++ specific cases for pic, static, wl, etc.
13297
  if test "$GXX" = yes; then
13298
    lt_prog_compiler_wl_CXX='-Wl,'
13299
    lt_prog_compiler_static_CXX='-static'
13300
 
13301
    case $host_os in
13302
    aix*)
13303
      # All AIX code is PIC.
13304
      if test "$host_cpu" = ia64; then
13305
	# AIX 5 now supports IA64 processor
13306
	lt_prog_compiler_static_CXX='-Bstatic'
13307
      fi
13308
      ;;
13309
 
13310
    amigaos*)
13311
      case $host_cpu in
13312
      powerpc)
13313
            # see comment about AmigaOS4 .so support
13314
            lt_prog_compiler_pic_CXX='-fPIC'
13315
        ;;
13316
      m68k)
13317
            # FIXME: we need at least 68020 code to build shared libraries, but
13318
            # adding the `-m68020' flag to GCC prevents building anything better,
13319
            # like `-m68040'.
13320
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13321
        ;;
13322
      esac
13323
      ;;
13324
 
13325
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13326
      # PIC is the default for these OSes.
13327
      ;;
13328
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13329
      # This hack is so that the source file can tell whether it is being
13330
      # built for inclusion in a dll (and should export symbols for example).
13331
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13332
      # (--disable-auto-import) libraries
13333
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13334
      ;;
13335
    darwin* | rhapsody*)
13336
      # PIC is the default on this platform
13337
      # Common symbols not allowed in MH_DYLIB files
13338
      lt_prog_compiler_pic_CXX='-fno-common'
13339
      ;;
13340
    *djgpp*)
13341
      # DJGPP does not support shared libraries at all
13342
      lt_prog_compiler_pic_CXX=
13343
      ;;
13344
    interix[3-9]*)
13345
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13346
      # Instead, we relocate shared libraries at runtime.
13347
      ;;
13348
    sysv4*MP*)
13349
      if test -d /usr/nec; then
13350
	lt_prog_compiler_pic_CXX=-Kconform_pic
13351
      fi
13352
      ;;
13353
    hpux*)
13354
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13355
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13356
      # sets the default TLS model and affects inlining.
13357
      case $host_cpu in
13358
      hppa*64*)
13359
	;;
13360
      *)
13361
	lt_prog_compiler_pic_CXX='-fPIC'
13362
	;;
13363
      esac
13364
      ;;
13365
    *qnx* | *nto*)
13366
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13367
      # it will coredump.
13368
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13369
      ;;
13370
    *)
13371
      lt_prog_compiler_pic_CXX='-fPIC'
13372
      ;;
13373
    esac
13374
  else
13375
    case $host_os in
13376
      aix[4-9]*)
13377
	# All AIX code is PIC.
13378
	if test "$host_cpu" = ia64; then
13379
	  # AIX 5 now supports IA64 processor
13380
	  lt_prog_compiler_static_CXX='-Bstatic'
13381
	else
13382
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13383
	fi
13384
	;;
13385
      chorus*)
13386
	case $cc_basename in
13387
	cxch68*)
13388
	  # Green Hills C++ Compiler
13389
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13390
	  ;;
13391
	esac
13392
	;;
13393
      dgux*)
13394
	case $cc_basename in
13395
	  ec++*)
13396
	    lt_prog_compiler_pic_CXX='-KPIC'
13397
	    ;;
13398
	  ghcx*)
13399
	    # Green Hills C++ Compiler
13400
	    lt_prog_compiler_pic_CXX='-pic'
13401
	    ;;
13402
	  *)
13403
	    ;;
13404
	esac
13405
	;;
13406
      freebsd* | dragonfly*)
13407
	# FreeBSD uses GNU C++
13408
	;;
13409
      hpux9* | hpux10* | hpux11*)
13410
	case $cc_basename in
13411
	  CC*)
13412
	    lt_prog_compiler_wl_CXX='-Wl,'
13413
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13414
	    if test "$host_cpu" != ia64; then
13415
	      lt_prog_compiler_pic_CXX='+Z'
13416
	    fi
13417
	    ;;
13418
	  aCC*)
13419
	    lt_prog_compiler_wl_CXX='-Wl,'
13420
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13421
	    case $host_cpu in
13422
	    hppa*64*|ia64*)
13423
	      # +Z the default
13424
	      ;;
13425
	    *)
13426
	      lt_prog_compiler_pic_CXX='+Z'
13427
	      ;;
13428
	    esac
13429
	    ;;
13430
	  *)
13431
	    ;;
13432
	esac
13433
	;;
13434
      interix*)
13435
	# This is c89, which is MS Visual C++ (no shared libs)
13436
	# Anyone wants to do a port?
13437
	;;
13438
      irix5* | irix6* | nonstopux*)
13439
	case $cc_basename in
13440
	  CC*)
13441
	    lt_prog_compiler_wl_CXX='-Wl,'
13442
	    lt_prog_compiler_static_CXX='-non_shared'
13443
	    # CC pic flag -KPIC is the default.
13444
	    ;;
13445
	  *)
13446
	    ;;
13447
	esac
13448
	;;
13449
      linux* | k*bsd*-gnu)
13450
	case $cc_basename in
13451
	  KCC*)
13452
	    # KAI C++ Compiler
13453
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13454
	    lt_prog_compiler_pic_CXX='-fPIC'
13455
	    ;;
13456
	  ecpc* )
13457
	    # old Intel C++ for x86_64 which still supported -KPIC.
13458
	    lt_prog_compiler_wl_CXX='-Wl,'
13459
	    lt_prog_compiler_pic_CXX='-KPIC'
13460
	    lt_prog_compiler_static_CXX='-static'
13461
	    ;;
13462
	  icpc* )
13463
	    # Intel C++, used to be incompatible with GCC.
13464
	    # ICC 10 doesn't accept -KPIC any more.
13465
	    lt_prog_compiler_wl_CXX='-Wl,'
13466
	    lt_prog_compiler_pic_CXX='-fPIC'
13467
	    lt_prog_compiler_static_CXX='-static'
13468
	    ;;
13469
	  pgCC* | pgcpp*)
13470
	    # Portland Group C++ compiler
13471
	    lt_prog_compiler_wl_CXX='-Wl,'
13472
	    lt_prog_compiler_pic_CXX='-fpic'
13473
	    lt_prog_compiler_static_CXX='-Bstatic'
13474
	    ;;
13475
	  cxx*)
13476
	    # Compaq C++
13477
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13478
	    # Linux and Compaq Tru64 Unix objects are PIC.
13479
	    lt_prog_compiler_pic_CXX=
13480
	    lt_prog_compiler_static_CXX='-non_shared'
13481
	    ;;
13482
	  xlc* | xlC*)
13483
	    # IBM XL 8.0 on PPC
13484
	    lt_prog_compiler_wl_CXX='-Wl,'
13485
	    lt_prog_compiler_pic_CXX='-qpic'
13486
	    lt_prog_compiler_static_CXX='-qstaticlink'
13487
	    ;;
13488
	  *)
13489
	    case `$CC -V 2>&1 | sed 5q` in
13490
	    *Sun\ C*)
13491
	      # Sun C++ 5.9
13492
	      lt_prog_compiler_pic_CXX='-KPIC'
13493
	      lt_prog_compiler_static_CXX='-Bstatic'
13494
	      lt_prog_compiler_wl_CXX='-Qoption ld '
13495
	      ;;
13496
	    esac
13497
	    ;;
13498
	esac
13499
	;;
13500
      lynxos*)
13501
	;;
13502
      m88k*)
13503
	;;
13504
      mvs*)
13505
	case $cc_basename in
13506
	  cxx*)
13507
	    lt_prog_compiler_pic_CXX='-W c,exportall'
13508
	    ;;
13509
	  *)
13510
	    ;;
13511
	esac
13512
	;;
13513
      netbsd* | netbsdelf*-gnu)
13514
	;;
13515
      *qnx* | *nto*)
13516
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13517
        # it will coredump.
13518
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13519
        ;;
13520
      osf3* | osf4* | osf5*)
13521
	case $cc_basename in
13522
	  KCC*)
13523
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13524
	    ;;
13525
	  RCC*)
13526
	    # Rational C++ 2.4.1
13527
	    lt_prog_compiler_pic_CXX='-pic'
13528
	    ;;
13529
	  cxx*)
13530
	    # Digital/Compaq C++
13531
	    lt_prog_compiler_wl_CXX='-Wl,'
13532
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13533
	    # Linux and Compaq Tru64 Unix objects are PIC.
13534
	    lt_prog_compiler_pic_CXX=
13535
	    lt_prog_compiler_static_CXX='-non_shared'
13536
	    ;;
13537
	  *)
13538
	    ;;
13539
	esac
13540
	;;
13541
      psos*)
13542
	;;
13543
      solaris*)
13544
	case $cc_basename in
13545
	  CC*)
13546
	    # Sun C++ 4.2, 5.x and Centerline C++
13547
	    lt_prog_compiler_pic_CXX='-KPIC'
13548
	    lt_prog_compiler_static_CXX='-Bstatic'
13549
	    lt_prog_compiler_wl_CXX='-Qoption ld '
13550
	    ;;
13551
	  gcx*)
13552
	    # Green Hills C++ Compiler
13553
	    lt_prog_compiler_pic_CXX='-PIC'
13554
	    ;;
13555
	  *)
13556
	    ;;
13557
	esac
13558
	;;
13559
      sunos4*)
13560
	case $cc_basename in
13561
	  CC*)
13562
	    # Sun C++ 4.x
13563
	    lt_prog_compiler_pic_CXX='-pic'
13564
	    lt_prog_compiler_static_CXX='-Bstatic'
13565
	    ;;
13566
	  lcc*)
13567
	    # Lucid
13568
	    lt_prog_compiler_pic_CXX='-pic'
13569
	    ;;
13570
	  *)
13571
	    ;;
13572
	esac
13573
	;;
13574
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13575
	case $cc_basename in
13576
	  CC*)
13577
	    lt_prog_compiler_wl_CXX='-Wl,'
13578
	    lt_prog_compiler_pic_CXX='-KPIC'
13579
	    lt_prog_compiler_static_CXX='-Bstatic'
13580
	    ;;
13581
	esac
13582
	;;
13583
      tandem*)
13584
	case $cc_basename in
13585
	  NCC*)
13586
	    # NonStop-UX NCC 3.20
13587
	    lt_prog_compiler_pic_CXX='-KPIC'
13588
	    ;;
13589
	  *)
13590
	    ;;
13591
	esac
13592
	;;
13593
      vxworks*)
13594
	;;
13595
      *)
13596
	lt_prog_compiler_can_build_shared_CXX=no
13597
	;;
13598
    esac
13599
  fi
13600
 
13601
case $host_os in
13602
  # For platforms which do not support PIC, -DPIC is meaningless:
13603
  *djgpp*)
13604
    lt_prog_compiler_pic_CXX=
13605
    ;;
13606
  *)
13607
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13608
    ;;
13609
esac
13610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13611
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13612
 
13613
 
13614
 
13615
#
13616
# Check to make sure the PIC flag actually works.
13617
#
13618
if test -n "$lt_prog_compiler_pic_CXX"; then
13619
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13620
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13621
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13622
  $as_echo_n "(cached) " >&6
13623
else
13624
  lt_cv_prog_compiler_pic_works_CXX=no
13625
   ac_outfile=conftest.$ac_objext
13626
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13627
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13628
   # Insert the option either (1) after the last *FLAGS variable, or
13629
   # (2) before a word containing "conftest.", or (3) at the end.
13630
   # Note that $ac_compile itself does not contain backslashes and begins
13631
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13632
   # The option is referenced via a variable to avoid confusing sed.
13633
   lt_compile=`echo "$ac_compile" | $SED \
13634
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13635
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13636
   -e 's:$: $lt_compiler_flag:'`
13637
   (eval echo "\"\$as_me:13637: $lt_compile\"" >&5)
13638
   (eval "$lt_compile" 2>conftest.err)
13639
   ac_status=$?
13640
   cat conftest.err >&5
13641
   echo "$as_me:13641: \$? = $ac_status" >&5
13642
   if (exit $ac_status) && test -s "$ac_outfile"; then
13643
     # The compiler can only warn and ignore the option if not recognized
13644
     # So say no if there are warnings other than the usual output.
13645
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13646
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13647
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13648
       lt_cv_prog_compiler_pic_works_CXX=yes
13649
     fi
13650
   fi
13651
   $RM conftest*
13652
 
13653
fi
13654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13655
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13656
 
13657
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13658
    case $lt_prog_compiler_pic_CXX in
13659
     "" | " "*) ;;
13660
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13661
     esac
13662
else
13663
    lt_prog_compiler_pic_CXX=
13664
     lt_prog_compiler_can_build_shared_CXX=no
13665
fi
13666
 
13667
fi
13668
 
13669
 
13670
 
13671
#
13672
# Check to make sure the static flag actually works.
13673
#
13674
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13676
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13677
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13678
  $as_echo_n "(cached) " >&6
13679
else
13680
  lt_cv_prog_compiler_static_works_CXX=no
13681
   save_LDFLAGS="$LDFLAGS"
13682
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13683
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13684
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13685
     # The linker can only warn and ignore the option if not recognized
13686
     # So say no if there are warnings
13687
     if test -s conftest.err; then
13688
       # Append any errors to the config.log.
13689
       cat conftest.err 1>&5
13690
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13691
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13692
       if diff conftest.exp conftest.er2 >/dev/null; then
13693
         lt_cv_prog_compiler_static_works_CXX=yes
13694
       fi
13695
     else
13696
       lt_cv_prog_compiler_static_works_CXX=yes
13697
     fi
13698
   fi
13699
   $RM -r conftest*
13700
   LDFLAGS="$save_LDFLAGS"
13701
 
13702
fi
13703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13704
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13705
 
13706
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13707
    :
13708
else
13709
    lt_prog_compiler_static_CXX=
13710
fi
13711
 
13712
 
13713
 
13714
 
13715
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13716
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13717
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13718
  $as_echo_n "(cached) " >&6
13719
else
13720
  lt_cv_prog_compiler_c_o_CXX=no
13721
   $RM -r conftest 2>/dev/null
13722
   mkdir conftest
13723
   cd conftest
13724
   mkdir out
13725
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13726
 
13727
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13728
   # Insert the option either (1) after the last *FLAGS variable, or
13729
   # (2) before a word containing "conftest.", or (3) at the end.
13730
   # Note that $ac_compile itself does not contain backslashes and begins
13731
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13732
   lt_compile=`echo "$ac_compile" | $SED \
13733
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13734
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13735
   -e 's:$: $lt_compiler_flag:'`
13736
   (eval echo "\"\$as_me:13736: $lt_compile\"" >&5)
13737
   (eval "$lt_compile" 2>out/conftest.err)
13738
   ac_status=$?
13739
   cat out/conftest.err >&5
13740
   echo "$as_me:13740: \$? = $ac_status" >&5
13741
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13742
   then
13743
     # The compiler can only warn and ignore the option if not recognized
13744
     # So say no if there are warnings
13745
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13746
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13747
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13748
       lt_cv_prog_compiler_c_o_CXX=yes
13749
     fi
13750
   fi
13751
   chmod u+w . 2>&5
13752
   $RM conftest*
13753
   # SGI C++ compiler will create directory out/ii_files/ for
13754
   # template instantiation
13755
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13756
   $RM out/* && rmdir out
13757
   cd ..
13758
   $RM -r conftest
13759
   $RM conftest*
13760
 
13761
fi
13762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13763
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13764
 
13765
 
13766
 
13767
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13768
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13769
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13770
  $as_echo_n "(cached) " >&6
13771
else
13772
  lt_cv_prog_compiler_c_o_CXX=no
13773
   $RM -r conftest 2>/dev/null
13774
   mkdir conftest
13775
   cd conftest
13776
   mkdir out
13777
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13778
 
13779
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13780
   # Insert the option either (1) after the last *FLAGS variable, or
13781
   # (2) before a word containing "conftest.", or (3) at the end.
13782
   # Note that $ac_compile itself does not contain backslashes and begins
13783
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13784
   lt_compile=`echo "$ac_compile" | $SED \
13785
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13786
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13787
   -e 's:$: $lt_compiler_flag:'`
13788
   (eval echo "\"\$as_me:13788: $lt_compile\"" >&5)
13789
   (eval "$lt_compile" 2>out/conftest.err)
13790
   ac_status=$?
13791
   cat out/conftest.err >&5
13792
   echo "$as_me:13792: \$? = $ac_status" >&5
13793
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13794
   then
13795
     # The compiler can only warn and ignore the option if not recognized
13796
     # So say no if there are warnings
13797
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13798
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13799
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13800
       lt_cv_prog_compiler_c_o_CXX=yes
13801
     fi
13802
   fi
13803
   chmod u+w . 2>&5
13804
   $RM conftest*
13805
   # SGI C++ compiler will create directory out/ii_files/ for
13806
   # template instantiation
13807
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13808
   $RM out/* && rmdir out
13809
   cd ..
13810
   $RM -r conftest
13811
   $RM conftest*
13812
 
13813
fi
13814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13815
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13816
 
13817
 
13818
 
13819
 
13820
hard_links="nottested"
13821
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13822
  # do not overwrite the value of need_locks provided by the user
13823
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13824
$as_echo_n "checking if we can lock with hard links... " >&6; }
13825
  hard_links=yes
13826
  $RM conftest*
13827
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13828
  touch conftest.a
13829
  ln conftest.a conftest.b 2>&5 || hard_links=no
13830
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13832
$as_echo "$hard_links" >&6; }
13833
  if test "$hard_links" = no; then
13834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13835
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13836
    need_locks=warn
13837
  fi
13838
else
13839
  need_locks=no
13840
fi
13841
 
13842
 
13843
 
13844
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13845
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13846
 
13847
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13848
  case $host_os in
13849
  aix[4-9]*)
13850
    # If we're using GNU nm, then we don't want the "-C" option.
13851
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13852
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13853
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13854
    else
13855
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13856
    fi
13857
    ;;
13858
  pw32*)
13859
    export_symbols_cmds_CXX="$ltdll_cmds"
13860
  ;;
13861
  cygwin* | mingw* | cegcc*)
13862
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13863
  ;;
13864
  linux* | k*bsd*-gnu)
13865
    link_all_deplibs_CXX=no
13866
  ;;
13867
  *)
13868
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13869
  ;;
13870
  esac
13871
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13872
 
13873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13874
$as_echo "$ld_shlibs_CXX" >&6; }
13875
test "$ld_shlibs_CXX" = no && can_build_shared=no
13876
 
13877
with_gnu_ld_CXX=$with_gnu_ld
13878
 
13879
 
13880
 
13881
 
13882
 
13883
 
13884
#
13885
# Do we need to explicitly link libc?
13886
#
13887
case "x$archive_cmds_need_lc_CXX" in
13888
x|xyes)
13889
  # Assume -lc should be added
13890
  archive_cmds_need_lc_CXX=yes
13891
 
13892
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13893
    case $archive_cmds_CXX in
13894
    *'~'*)
13895
      # FIXME: we may have to deal with multi-command sequences.
13896
      ;;
13897
    '$CC '*)
13898
      # Test whether the compiler implicitly links with -lc since on some
13899
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13900
      # to ld, don't add -lc before -lgcc.
13901
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13902
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13903
      $RM conftest*
13904
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13905
 
13906
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13907
  (eval $ac_compile) 2>&5
13908
  ac_status=$?
13909
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13910
  test $ac_status = 0; } 2>conftest.err; then
13911
        soname=conftest
13912
        lib=conftest
13913
        libobjs=conftest.$ac_objext
13914
        deplibs=
13915
        wl=$lt_prog_compiler_wl_CXX
13916
	pic_flag=$lt_prog_compiler_pic_CXX
13917
        compiler_flags=-v
13918
        linker_flags=-v
13919
        verstring=
13920
        output_objdir=.
13921
        libname=conftest
13922
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13923
        allow_undefined_flag_CXX=
13924
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13925
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13926
  ac_status=$?
13927
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928
  test $ac_status = 0; }
13929
        then
13930
	  archive_cmds_need_lc_CXX=no
13931
        else
13932
	  archive_cmds_need_lc_CXX=yes
13933
        fi
13934
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13935
      else
13936
        cat conftest.err 1>&5
13937
      fi
13938
      $RM conftest*
13939
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13940
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13941
      ;;
13942
    esac
13943
  fi
13944
  ;;
13945
esac
13946
 
13947
 
13948
 
13949
 
13950
 
13951
 
13952
 
13953
 
13954
 
13955
 
13956
 
13957
 
13958
 
13959
 
13960
 
13961
 
13962
 
13963
 
13964
 
13965
 
13966
 
13967
 
13968
 
13969
 
13970
 
13971
 
13972
 
13973
 
13974
 
13975
 
13976
 
13977
 
13978
 
13979
 
13980
 
13981
 
13982
 
13983
 
13984
 
13985
 
13986
 
13987
 
13988
 
13989
 
13990
 
13991
 
13992
 
13993
 
13994
 
13995
 
13996
 
13997
 
13998
 
13999
 
14000
 
14001
 
14002
 
14003
 
14004
 
14005
 
14006
 
14007
 
14008
 
14009
 
14010
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14011
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14012
 
14013
library_names_spec=
14014
libname_spec='lib$name'
14015
soname_spec=
14016
shrext_cmds=".so"
14017
postinstall_cmds=
14018
postuninstall_cmds=
14019
finish_cmds=
14020
finish_eval=
14021
shlibpath_var=
14022
shlibpath_overrides_runpath=unknown
14023
version_type=none
14024
dynamic_linker="$host_os ld.so"
14025
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14026
need_lib_prefix=unknown
14027
hardcode_into_libs=no
14028
 
14029
# when you set need_version to no, make sure it does not cause -set_version
14030
# flags to be left without arguments
14031
need_version=unknown
14032
 
14033
case $host_os in
14034
aix3*)
14035
  version_type=linux
14036
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14037
  shlibpath_var=LIBPATH
14038
 
14039
  # AIX 3 has no versioning support, so we append a major version to the name.
14040
  soname_spec='${libname}${release}${shared_ext}$major'
14041
  ;;
14042
 
14043
aix[4-9]*)
14044
  version_type=linux
14045
  need_lib_prefix=no
14046
  need_version=no
14047
  hardcode_into_libs=yes
14048
  if test "$host_cpu" = ia64; then
14049
    # AIX 5 supports IA64
14050
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14051
    shlibpath_var=LD_LIBRARY_PATH
14052
  else
14053
    # With GCC up to 2.95.x, collect2 would create an import file
14054
    # for dependence libraries.  The import file would start with
14055
    # the line `#! .'.  This would cause the generated library to
14056
    # depend on `.', always an invalid library.  This was fixed in
14057
    # development snapshots of GCC prior to 3.0.
14058
    case $host_os in
14059
      aix4 | aix4.[01] | aix4.[01].*)
14060
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14061
	   echo ' yes '
14062
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14063
	:
14064
      else
14065
	can_build_shared=no
14066
      fi
14067
      ;;
14068
    esac
14069
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14070
    # soname into executable. Probably we can add versioning support to
14071
    # collect2, so additional links can be useful in future.
14072
    if test "$aix_use_runtimelinking" = yes; then
14073
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14074
      # instead of lib<name>.a to let people know that these are not
14075
      # typical AIX shared libraries.
14076
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077
    else
14078
      # We preserve .a as extension for shared libraries through AIX4.2
14079
      # and later when we are not doing run time linking.
14080
      library_names_spec='${libname}${release}.a $libname.a'
14081
      soname_spec='${libname}${release}${shared_ext}$major'
14082
    fi
14083
    shlibpath_var=LIBPATH
14084
  fi
14085
  ;;
14086
 
14087
amigaos*)
14088
  case $host_cpu in
14089
  powerpc)
14090
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14091
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14092
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093
    ;;
14094
  m68k)
14095
    library_names_spec='$libname.ixlibrary $libname.a'
14096
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14097
    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'
14098
    ;;
14099
  esac
14100
  ;;
14101
 
14102
beos*)
14103
  library_names_spec='${libname}${shared_ext}'
14104
  dynamic_linker="$host_os ld.so"
14105
  shlibpath_var=LIBRARY_PATH
14106
  ;;
14107
 
14108
bsdi[45]*)
14109
  version_type=linux
14110
  need_version=no
14111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112
  soname_spec='${libname}${release}${shared_ext}$major'
14113
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14114
  shlibpath_var=LD_LIBRARY_PATH
14115
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14116
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14117
  # the default ld.so.conf also contains /usr/contrib/lib and
14118
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14119
  # libtool to hard-code these into programs
14120
  ;;
14121
 
14122
cygwin* | mingw* | pw32* | cegcc*)
14123
  version_type=windows
14124
  shrext_cmds=".dll"
14125
  need_version=no
14126
  need_lib_prefix=no
14127
 
14128
  case $GCC,$host_os in
14129
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14130
    library_names_spec='$libname.dll.a'
14131
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14132
    postinstall_cmds='base_file=`basename \${file}`~
14133
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14134
      dldir=$destdir/`dirname \$dlpath`~
14135
      test -d \$dldir || mkdir -p \$dldir~
14136
      $install_prog $dir/$dlname \$dldir/$dlname~
14137
      chmod a+x \$dldir/$dlname~
14138
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14139
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14140
      fi'
14141
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14142
      dlpath=$dir/\$dldll~
14143
       $RM \$dlpath'
14144
    shlibpath_overrides_runpath=yes
14145
 
14146
    case $host_os in
14147
    cygwin*)
14148
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14149
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14150
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14151
      ;;
14152
    mingw* | cegcc*)
14153
      # MinGW DLLs use traditional 'lib' prefix
14154
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14155
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14156
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14157
        # It is most probably a Windows format PATH printed by
14158
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14159
        # path with ; separators, and with drive letters. We can handle the
14160
        # drive letters (cygwin fileutils understands them), so leave them,
14161
        # especially as we might pass files found there to a mingw objdump,
14162
        # which wouldn't understand a cygwinified path. Ahh.
14163
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14164
      else
14165
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14166
      fi
14167
      ;;
14168
    pw32*)
14169
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14170
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14171
      ;;
14172
    esac
14173
    ;;
14174
 
14175
  *)
14176
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14177
    ;;
14178
  esac
14179
  dynamic_linker='Win32 ld.exe'
14180
  # FIXME: first we should search . and the directory the executable is in
14181
  shlibpath_var=PATH
14182
  ;;
14183
 
14184
darwin* | rhapsody*)
14185
  dynamic_linker="$host_os dyld"
14186
  version_type=darwin
14187
  need_lib_prefix=no
14188
  need_version=no
14189
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14190
  soname_spec='${libname}${release}${major}$shared_ext'
14191
  shlibpath_overrides_runpath=yes
14192
  shlibpath_var=DYLD_LIBRARY_PATH
14193
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14194
 
14195
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14196
  ;;
14197
 
14198
dgux*)
14199
  version_type=linux
14200
  need_lib_prefix=no
14201
  need_version=no
14202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14203
  soname_spec='${libname}${release}${shared_ext}$major'
14204
  shlibpath_var=LD_LIBRARY_PATH
14205
  ;;
14206
 
14207
freebsd1*)
14208
  dynamic_linker=no
14209
  ;;
14210
 
14211
freebsd* | dragonfly*)
14212
  # DragonFly does not have aout.  When/if they implement a new
14213
  # versioning mechanism, adjust this.
14214
  if test -x /usr/bin/objformat; then
14215
    objformat=`/usr/bin/objformat`
14216
  else
14217
    case $host_os in
14218
    freebsd[123]*) objformat=aout ;;
14219
    *) objformat=elf ;;
14220
    esac
14221
  fi
14222
  version_type=freebsd-$objformat
14223
  case $version_type in
14224
    freebsd-elf*)
14225
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14226
      need_version=no
14227
      need_lib_prefix=no
14228
      ;;
14229
    freebsd-*)
14230
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14231
      need_version=yes
14232
      ;;
14233
  esac
14234
  shlibpath_var=LD_LIBRARY_PATH
14235
  case $host_os in
14236
  freebsd2*)
14237
    shlibpath_overrides_runpath=yes
14238
    ;;
14239
  freebsd3.[01]* | freebsdelf3.[01]*)
14240
    shlibpath_overrides_runpath=yes
14241
    hardcode_into_libs=yes
14242
    ;;
14243
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14244
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14245
    shlibpath_overrides_runpath=no
14246
    hardcode_into_libs=yes
14247
    ;;
14248
  *) # from 4.6 on, and DragonFly
14249
    shlibpath_overrides_runpath=yes
14250
    hardcode_into_libs=yes
14251
    ;;
14252
  esac
14253
  ;;
14254
 
14255
gnu*)
14256
  version_type=linux
14257
  need_lib_prefix=no
14258
  need_version=no
14259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14260
  soname_spec='${libname}${release}${shared_ext}$major'
14261
  shlibpath_var=LD_LIBRARY_PATH
14262
  hardcode_into_libs=yes
14263
  ;;
14264
 
14265
hpux9* | hpux10* | hpux11*)
14266
  # Give a soname corresponding to the major version so that dld.sl refuses to
14267
  # link against other versions.
14268
  version_type=sunos
14269
  need_lib_prefix=no
14270
  need_version=no
14271
  case $host_cpu in
14272
  ia64*)
14273
    shrext_cmds='.so'
14274
    hardcode_into_libs=yes
14275
    dynamic_linker="$host_os dld.so"
14276
    shlibpath_var=LD_LIBRARY_PATH
14277
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14278
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14279
    soname_spec='${libname}${release}${shared_ext}$major'
14280
    if test "X$HPUX_IA64_MODE" = X32; then
14281
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14282
    else
14283
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14284
    fi
14285
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14286
    ;;
14287
  hppa*64*)
14288
    shrext_cmds='.sl'
14289
    hardcode_into_libs=yes
14290
    dynamic_linker="$host_os dld.sl"
14291
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14292
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14293
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14294
    soname_spec='${libname}${release}${shared_ext}$major'
14295
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14296
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14297
    ;;
14298
  *)
14299
    shrext_cmds='.sl'
14300
    dynamic_linker="$host_os dld.sl"
14301
    shlibpath_var=SHLIB_PATH
14302
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14303
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14304
    soname_spec='${libname}${release}${shared_ext}$major'
14305
    ;;
14306
  esac
14307
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14308
  postinstall_cmds='chmod 555 $lib'
14309
  ;;
14310
 
14311
interix[3-9]*)
14312
  version_type=linux
14313
  need_lib_prefix=no
14314
  need_version=no
14315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14316
  soname_spec='${libname}${release}${shared_ext}$major'
14317
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14318
  shlibpath_var=LD_LIBRARY_PATH
14319
  shlibpath_overrides_runpath=no
14320
  hardcode_into_libs=yes
14321
  ;;
14322
 
14323
irix5* | irix6* | nonstopux*)
14324
  case $host_os in
14325
    nonstopux*) version_type=nonstopux ;;
14326
    *)
14327
	if test "$lt_cv_prog_gnu_ld" = yes; then
14328
		version_type=linux
14329
	else
14330
		version_type=irix
14331
	fi ;;
14332
  esac
14333
  need_lib_prefix=no
14334
  need_version=no
14335
  soname_spec='${libname}${release}${shared_ext}$major'
14336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14337
  case $host_os in
14338
  irix5* | nonstopux*)
14339
    libsuff= shlibsuff=
14340
    ;;
14341
  *)
14342
    case $LD in # libtool.m4 will add one of these switches to LD
14343
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14344
      libsuff= shlibsuff= libmagic=32-bit;;
14345
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14346
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14347
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14348
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14349
    *) libsuff= shlibsuff= libmagic=never-match;;
14350
    esac
14351
    ;;
14352
  esac
14353
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14354
  shlibpath_overrides_runpath=no
14355
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14356
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14357
  hardcode_into_libs=yes
14358
  ;;
14359
 
14360
# No shared lib support for Linux oldld, aout, or coff.
14361
linux*oldld* | linux*aout* | linux*coff*)
14362
  dynamic_linker=no
14363
  ;;
14364
 
14365
# This must be Linux ELF.
14366
linux* | k*bsd*-gnu)
14367
  version_type=linux
14368
  need_lib_prefix=no
14369
  need_version=no
14370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371
  soname_spec='${libname}${release}${shared_ext}$major'
14372
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14373
  shlibpath_var=LD_LIBRARY_PATH
14374
  shlibpath_overrides_runpath=no
14375
  # Some binutils ld are patched to set DT_RUNPATH
14376
  save_LDFLAGS=$LDFLAGS
14377
  save_libdir=$libdir
14378
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14379
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14380
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381
/* end confdefs.h.  */
14382
 
14383
int
14384
main ()
14385
{
14386
 
14387
  ;
14388
  return 0;
14389
}
14390
_ACEOF
14391
if ac_fn_cxx_try_link "$LINENO"; then :
14392
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14393
  shlibpath_overrides_runpath=yes
14394
fi
14395
fi
14396
rm -f core conftest.err conftest.$ac_objext \
14397
    conftest$ac_exeext conftest.$ac_ext
14398
  LDFLAGS=$save_LDFLAGS
14399
  libdir=$save_libdir
14400
 
14401
  # This implies no fast_install, which is unacceptable.
14402
  # Some rework will be needed to allow for fast_install
14403
  # before this can be enabled.
14404
  hardcode_into_libs=yes
14405
 
14406
  # Append ld.so.conf contents to the search path
14407
  if test -f /etc/ld.so.conf; then
14408
    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' ' '`
14409
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14410
  fi
14411
 
14412
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14413
  # powerpc, because MkLinux only supported shared libraries with the
14414
  # GNU dynamic linker.  Since this was broken with cross compilers,
14415
  # most powerpc-linux boxes support dynamic linking these days and
14416
  # people can always --disable-shared, the test was removed, and we
14417
  # assume the GNU/Linux dynamic linker is in use.
14418
  dynamic_linker='GNU/Linux ld.so'
14419
  ;;
14420
 
14421
netbsdelf*-gnu)
14422
  version_type=linux
14423
  need_lib_prefix=no
14424
  need_version=no
14425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14426
  soname_spec='${libname}${release}${shared_ext}$major'
14427
  shlibpath_var=LD_LIBRARY_PATH
14428
  shlibpath_overrides_runpath=no
14429
  hardcode_into_libs=yes
14430
  dynamic_linker='NetBSD ld.elf_so'
14431
  ;;
14432
 
14433
netbsd*)
14434
  version_type=sunos
14435
  need_lib_prefix=no
14436
  need_version=no
14437
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14438
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14439
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14440
    dynamic_linker='NetBSD (a.out) ld.so'
14441
  else
14442
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14443
    soname_spec='${libname}${release}${shared_ext}$major'
14444
    dynamic_linker='NetBSD ld.elf_so'
14445
  fi
14446
  shlibpath_var=LD_LIBRARY_PATH
14447
  shlibpath_overrides_runpath=yes
14448
  hardcode_into_libs=yes
14449
  ;;
14450
 
14451
newsos6)
14452
  version_type=linux
14453
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454
  shlibpath_var=LD_LIBRARY_PATH
14455
  shlibpath_overrides_runpath=yes
14456
  ;;
14457
 
14458
*nto* | *qnx*)
14459
  version_type=qnx
14460
  need_lib_prefix=no
14461
  need_version=no
14462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463
  soname_spec='${libname}${release}${shared_ext}$major'
14464
  shlibpath_var=LD_LIBRARY_PATH
14465
  shlibpath_overrides_runpath=no
14466
  hardcode_into_libs=yes
14467
  dynamic_linker='ldqnx.so'
14468
  ;;
14469
 
14470
openbsd*)
14471
  version_type=sunos
14472
  sys_lib_dlsearch_path_spec="/usr/lib"
14473
  need_lib_prefix=no
14474
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14475
  case $host_os in
14476
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14477
    *)				need_version=no  ;;
14478
  esac
14479
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14480
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14481
  shlibpath_var=LD_LIBRARY_PATH
14482
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14483
    case $host_os in
14484
      openbsd2.[89] | openbsd2.[89].*)
14485
	shlibpath_overrides_runpath=no
14486
	;;
14487
      *)
14488
	shlibpath_overrides_runpath=yes
14489
	;;
14490
      esac
14491
  else
14492
    shlibpath_overrides_runpath=yes
14493
  fi
14494
  ;;
14495
 
14496
os2*)
14497
  libname_spec='$name'
14498
  shrext_cmds=".dll"
14499
  need_lib_prefix=no
14500
  library_names_spec='$libname${shared_ext} $libname.a'
14501
  dynamic_linker='OS/2 ld.exe'
14502
  shlibpath_var=LIBPATH
14503
  ;;
14504
 
14505
osf3* | osf4* | osf5*)
14506
  version_type=osf
14507
  need_lib_prefix=no
14508
  need_version=no
14509
  soname_spec='${libname}${release}${shared_ext}$major'
14510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511
  shlibpath_var=LD_LIBRARY_PATH
14512
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14513
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14514
  ;;
14515
 
14516
rdos*)
14517
  dynamic_linker=no
14518
  ;;
14519
 
14520
solaris*)
14521
  version_type=linux
14522
  need_lib_prefix=no
14523
  need_version=no
14524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525
  soname_spec='${libname}${release}${shared_ext}$major'
14526
  shlibpath_var=LD_LIBRARY_PATH
14527
  shlibpath_overrides_runpath=yes
14528
  hardcode_into_libs=yes
14529
  # ldd complains unless libraries are executable
14530
  postinstall_cmds='chmod +x $lib'
14531
  ;;
14532
 
14533
sunos4*)
14534
  version_type=sunos
14535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14536
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14537
  shlibpath_var=LD_LIBRARY_PATH
14538
  shlibpath_overrides_runpath=yes
14539
  if test "$with_gnu_ld" = yes; then
14540
    need_lib_prefix=no
14541
  fi
14542
  need_version=yes
14543
  ;;
14544
 
14545
sysv4 | sysv4.3*)
14546
  version_type=linux
14547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548
  soname_spec='${libname}${release}${shared_ext}$major'
14549
  shlibpath_var=LD_LIBRARY_PATH
14550
  case $host_vendor in
14551
    sni)
14552
      shlibpath_overrides_runpath=no
14553
      need_lib_prefix=no
14554
      runpath_var=LD_RUN_PATH
14555
      ;;
14556
    siemens)
14557
      need_lib_prefix=no
14558
      ;;
14559
    motorola)
14560
      need_lib_prefix=no
14561
      need_version=no
14562
      shlibpath_overrides_runpath=no
14563
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14564
      ;;
14565
  esac
14566
  ;;
14567
 
14568
sysv4*MP*)
14569
  if test -d /usr/nec ;then
14570
    version_type=linux
14571
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14572
    soname_spec='$libname${shared_ext}.$major'
14573
    shlibpath_var=LD_LIBRARY_PATH
14574
  fi
14575
  ;;
14576
 
14577
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14578
  version_type=freebsd-elf
14579
  need_lib_prefix=no
14580
  need_version=no
14581
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14582
  soname_spec='${libname}${release}${shared_ext}$major'
14583
  shlibpath_var=LD_LIBRARY_PATH
14584
  shlibpath_overrides_runpath=yes
14585
  hardcode_into_libs=yes
14586
  if test "$with_gnu_ld" = yes; then
14587
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14588
  else
14589
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14590
    case $host_os in
14591
      sco3.2v5*)
14592
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14593
	;;
14594
    esac
14595
  fi
14596
  sys_lib_dlsearch_path_spec='/usr/lib'
14597
  ;;
14598
 
14599
tpf*)
14600
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14601
  version_type=linux
14602
  need_lib_prefix=no
14603
  need_version=no
14604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605
  shlibpath_var=LD_LIBRARY_PATH
14606
  shlibpath_overrides_runpath=no
14607
  hardcode_into_libs=yes
14608
  ;;
14609
 
14610
uts4*)
14611
  version_type=linux
14612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613
  soname_spec='${libname}${release}${shared_ext}$major'
14614
  shlibpath_var=LD_LIBRARY_PATH
14615
  ;;
14616
 
14617
*)
14618
  dynamic_linker=no
14619
  ;;
14620
esac
14621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14622
$as_echo "$dynamic_linker" >&6; }
14623
test "$dynamic_linker" = no && can_build_shared=no
14624
 
14625
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14626
if test "$GCC" = yes; then
14627
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14628
fi
14629
 
14630
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14631
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14632
fi
14633
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14634
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14635
fi
14636
 
14637
 
14638
 
14639
 
14640
 
14641
 
14642
 
14643
 
14644
 
14645
 
14646
 
14647
 
14648
 
14649
 
14650
 
14651
 
14652
 
14653
 
14654
 
14655
 
14656
 
14657
 
14658
 
14659
 
14660
 
14661
 
14662
 
14663
 
14664
 
14665
 
14666
 
14667
 
14668
 
14669
 
14670
 
14671
 
14672
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14673
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14674
hardcode_action_CXX=
14675
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14676
   test -n "$runpath_var_CXX" ||
14677
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14678
 
14679
  # We can hardcode non-existent directories.
14680
  if test "$hardcode_direct_CXX" != no &&
14681
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14682
     # have to relink, otherwise we might link with an installed library
14683
     # when we should be linking with a yet-to-be-installed one
14684
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14685
     test "$hardcode_minus_L_CXX" != no; then
14686
    # Linking always hardcodes the temporary library directory.
14687
    hardcode_action_CXX=relink
14688
  else
14689
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14690
    hardcode_action_CXX=immediate
14691
  fi
14692
else
14693
  # We cannot hardcode anything, or else we can only hardcode existing
14694
  # directories.
14695
  hardcode_action_CXX=unsupported
14696
fi
14697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14698
$as_echo "$hardcode_action_CXX" >&6; }
14699
 
14700
if test "$hardcode_action_CXX" = relink ||
14701
   test "$inherit_rpath_CXX" = yes; then
14702
  # Fast installation is not supported
14703
  enable_fast_install=no
14704
elif test "$shlibpath_overrides_runpath" = yes ||
14705
     test "$enable_shared" = no; then
14706
  # Fast installation is not necessary
14707
  enable_fast_install=needless
14708
fi
14709
 
14710
 
14711
 
14712
 
14713
 
14714
 
14715
 
14716
  fi # test -n "$compiler"
14717
 
14718
  CC=$lt_save_CC
14719
  LDCXX=$LD
14720
  LD=$lt_save_LD
14721
  GCC=$lt_save_GCC
14722
  with_gnu_ld=$lt_save_with_gnu_ld
14723
  lt_cv_path_LDCXX=$lt_cv_path_LD
14724
  lt_cv_path_LD=$lt_save_path_LD
14725
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14726
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14727
fi # test "$_lt_caught_CXX_error" != yes
14728
 
14729
ac_ext=c
14730
ac_cpp='$CPP $CPPFLAGS'
14731
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14732
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14733
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14734
 
14735
 
14736
 
14737
 
14738
 
14739
 
14740
 
14741
 
14742
 
14743
 
14744
 
14745
 
14746
 
14747
        ac_config_commands="$ac_config_commands libtool"
14748
 
14749
 
14750
 
14751
 
14752
# Only expand once:
14753
 
14754
 
14755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14756
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14757
set x ${MAKE-make}
14758
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14759
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14760
  $as_echo_n "(cached) " >&6
14761
else
14762
  cat >conftest.make <<\_ACEOF
14763
SHELL = /bin/sh
14764
all:
14765
	@echo '@@@%%%=$(MAKE)=@@@%%%'
14766
_ACEOF
14767
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14768
case `${MAKE-make} -f conftest.make 2>/dev/null` in
14769
  *@@@%%%=?*=@@@%%%*)
14770
    eval ac_cv_prog_make_${ac_make}_set=yes;;
14771
  *)
14772
    eval ac_cv_prog_make_${ac_make}_set=no;;
14773
esac
14774
rm -f conftest.make
14775
fi
14776
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14778
$as_echo "yes" >&6; }
14779
  SET_MAKE=
14780
else
14781
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782
$as_echo "no" >&6; }
14783
  SET_MAKE="MAKE=${MAKE-make}"
14784
fi
14785
 
14786
for ac_prog in 'bison -y' byacc
14787
do
14788
  # Extract the first word of "$ac_prog", so it can be a program name with args.
14789
set dummy $ac_prog; ac_word=$2
14790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14791
$as_echo_n "checking for $ac_word... " >&6; }
14792
if test "${ac_cv_prog_YACC+set}" = set; then :
14793
  $as_echo_n "(cached) " >&6
14794
else
14795
  if test -n "$YACC"; then
14796
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
14797
else
14798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14799
for as_dir in $PATH
14800
do
14801
  IFS=$as_save_IFS
14802
  test -z "$as_dir" && as_dir=.
14803
    for ac_exec_ext in '' $ac_executable_extensions; do
14804
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14805
    ac_cv_prog_YACC="$ac_prog"
14806
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14807
    break 2
14808
  fi
14809
done
14810
  done
14811
IFS=$as_save_IFS
14812
 
14813
fi
14814
fi
14815
YACC=$ac_cv_prog_YACC
14816
if test -n "$YACC"; then
14817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14818
$as_echo "$YACC" >&6; }
14819
else
14820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821
$as_echo "no" >&6; }
14822
fi
14823
 
14824
 
14825
  test -n "$YACC" && break
14826
done
14827
test -n "$YACC" || YACC="yacc"
14828
 
14829
for ac_prog in flex lex
14830
do
14831
  # Extract the first word of "$ac_prog", so it can be a program name with args.
14832
set dummy $ac_prog; ac_word=$2
14833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14834
$as_echo_n "checking for $ac_word... " >&6; }
14835
if test "${ac_cv_prog_LEX+set}" = set; then :
14836
  $as_echo_n "(cached) " >&6
14837
else
14838
  if test -n "$LEX"; then
14839
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
14840
else
14841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14842
for as_dir in $PATH
14843
do
14844
  IFS=$as_save_IFS
14845
  test -z "$as_dir" && as_dir=.
14846
    for ac_exec_ext in '' $ac_executable_extensions; do
14847
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14848
    ac_cv_prog_LEX="$ac_prog"
14849
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14850
    break 2
14851
  fi
14852
done
14853
  done
14854
IFS=$as_save_IFS
14855
 
14856
fi
14857
fi
14858
LEX=$ac_cv_prog_LEX
14859
if test -n "$LEX"; then
14860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14861
$as_echo "$LEX" >&6; }
14862
else
14863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14864
$as_echo "no" >&6; }
14865
fi
14866
 
14867
 
14868
  test -n "$LEX" && break
14869
done
14870
test -n "$LEX" || LEX=":"
14871
 
14872
if test "x$LEX" != "x:"; then
14873
  cat >conftest.l <<_ACEOF
14874
%%
14875
a { ECHO; }
14876
b { REJECT; }
14877
c { yymore (); }
14878
d { yyless (1); }
14879
e { yyless (input () != 0); }
14880
f { unput (yytext[0]); }
14881
. { BEGIN INITIAL; }
14882
%%
14883
#ifdef YYTEXT_POINTER
14884
extern char *yytext;
14885
#endif
14886
int
14887
main (void)
14888
{
14889
  return ! yylex () + ! yywrap ();
14890
}
14891
_ACEOF
14892
{ { ac_try="$LEX conftest.l"
14893
case "(($ac_try" in
14894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895
  *) ac_try_echo=$ac_try;;
14896
esac
14897
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14898
$as_echo "$ac_try_echo"; } >&5
14899
  (eval "$LEX conftest.l") 2>&5
14900
  ac_status=$?
14901
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14902
  test $ac_status = 0; }
14903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14904
$as_echo_n "checking lex output file root... " >&6; }
14905
if test "${ac_cv_prog_lex_root+set}" = set; then :
14906
  $as_echo_n "(cached) " >&6
14907
else
14908
 
14909
if test -f lex.yy.c; then
14910
  ac_cv_prog_lex_root=lex.yy
14911
elif test -f lexyy.c; then
14912
  ac_cv_prog_lex_root=lexyy
14913
else
14914
  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
14915
fi
14916
fi
14917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14918
$as_echo "$ac_cv_prog_lex_root" >&6; }
14919
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14920
 
14921
if test -z "${LEXLIB+set}"; then
14922
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14923
$as_echo_n "checking lex library... " >&6; }
14924
if test "${ac_cv_lib_lex+set}" = set; then :
14925
  $as_echo_n "(cached) " >&6
14926
else
14927
 
14928
    ac_save_LIBS=$LIBS
14929
    ac_cv_lib_lex='none needed'
14930
    for ac_lib in '' -lfl -ll; do
14931
      LIBS="$ac_lib $ac_save_LIBS"
14932
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933
/* end confdefs.h.  */
14934
`cat $LEX_OUTPUT_ROOT.c`
14935
_ACEOF
14936
if ac_fn_c_try_link "$LINENO"; then :
14937
  ac_cv_lib_lex=$ac_lib
14938
fi
14939
rm -f core conftest.err conftest.$ac_objext \
14940
    conftest$ac_exeext conftest.$ac_ext
14941
      test "$ac_cv_lib_lex" != 'none needed' && break
14942
    done
14943
    LIBS=$ac_save_LIBS
14944
 
14945
fi
14946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14947
$as_echo "$ac_cv_lib_lex" >&6; }
14948
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14949
fi
14950
 
14951
 
14952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14953
$as_echo_n "checking whether yytext is a pointer... " >&6; }
14954
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
14955
  $as_echo_n "(cached) " >&6
14956
else
14957
  # POSIX says lex can declare yytext either as a pointer or an array; the
14958
# default is implementation-dependent.  Figure out which it is, since
14959
# not all implementations provide the %pointer and %array declarations.
14960
ac_cv_prog_lex_yytext_pointer=no
14961
ac_save_LIBS=$LIBS
14962
LIBS="$LEXLIB $ac_save_LIBS"
14963
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964
/* end confdefs.h.  */
14965
#define YYTEXT_POINTER 1
14966
`cat $LEX_OUTPUT_ROOT.c`
14967
_ACEOF
14968
if ac_fn_c_try_link "$LINENO"; then :
14969
  ac_cv_prog_lex_yytext_pointer=yes
14970
fi
14971
rm -f core conftest.err conftest.$ac_objext \
14972
    conftest$ac_exeext conftest.$ac_ext
14973
LIBS=$ac_save_LIBS
14974
 
14975
fi
14976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14977
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14978
if test $ac_cv_prog_lex_yytext_pointer = yes; then
14979
 
14980
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14981
 
14982
fi
14983
rm -f conftest.l $LEX_OUTPUT_ROOT.c
14984
 
14985
fi
14986
if test "$LEX" = :; then
14987
  LEX=${am_missing_run}flex
14988
fi
14989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14990
$as_echo_n "checking whether ln -s works... " >&6; }
14991
LN_S=$as_ln_s
14992
if test "$LN_S" = "ln -s"; then
14993
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14994
$as_echo "yes" >&6; }
14995
else
14996
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14997
$as_echo "no, using $LN_S" >&6; }
14998
fi
14999
 
15000
 
15001
 
15002
ac_ext=cpp
15003
ac_cpp='$CXXCPP $CPPFLAGS'
15004
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15005
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15006
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15007
 
15008
 
15009
 
15010
# Check whether --with-boost was given.
15011
if test "${with_boost+set}" = set; then :
15012
  withval=$with_boost;
15013
    if test "$withval" = "no"; then
15014
		want_boost="no"
15015
    elif test "$withval" = "yes"; then
15016
        want_boost="yes"
15017
        ac_boost_path=""
15018
    else
15019
	    want_boost="yes"
15020
        ac_boost_path="$withval"
15021
	fi
15022
 
15023
else
15024
  want_boost="yes"
15025
fi
15026
 
15027
 
15028
if test "x$want_boost" = "xyes"; then
15029
	boost_lib_version_req=1.33.1
15030
	boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
15031
	boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
15032
	boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
15033
	boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15034
	if test "x$boost_lib_version_req_sub_minor" = "x" ; then
15035
		boost_lib_version_req_sub_minor="0"
15036
    	fi
15037
	WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
15038
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
15039
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
15040
	succeeded=no
15041
 
15042
				if test "$ac_boost_path" != ""; then
15043
		BOOST_LDFLAGS="-L$ac_boost_path/lib"
15044
		BOOST_CPPFLAGS="-I$ac_boost_path/include"
15045
	else
15046
		for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
15047
			if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
15048
				BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
15049
				BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
15050
				break;
15051
			fi
15052
		done
15053
	fi
15054
 
15055
	CPPFLAGS_SAVED="$CPPFLAGS"
15056
	CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15057
	export CPPFLAGS
15058
 
15059
	LDFLAGS_SAVED="$LDFLAGS"
15060
	LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15061
	export LDFLAGS
15062
 
15063
	ac_ext=cpp
15064
ac_cpp='$CXXCPP $CPPFLAGS'
15065
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15068
 
15069
     	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070
/* end confdefs.h.  */
15071
 
15072
	#include <boost/version.hpp>
15073
 
15074
int
15075
main ()
15076
{
15077
 
15078
	#if BOOST_VERSION >= $WANT_BOOST_VERSION
15079
	// Everything is okay
15080
	#else
15081
	#  error Boost version is too old
15082
	#endif
15083
 
15084
  ;
15085
  return 0;
15086
}
15087
_ACEOF
15088
if ac_fn_cxx_try_compile "$LINENO"; then :
15089
 
15090
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15091
$as_echo "yes" >&6; }
15092
	succeeded=yes
15093
	found_system=yes
15094
 
15095
fi
15096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097
	ac_ext=cpp
15098
ac_cpp='$CXXCPP $CPPFLAGS'
15099
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15100
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15102
 
15103
 
15104
 
15105
 
15106
			if test "x$succeeded" != "xyes"; then
15107
		_version=0
15108
		if test "$ac_boost_path" != ""; then
15109
               		BOOST_LDFLAGS="-L$ac_boost_path/lib"
15110
			if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15111
				for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15112
					_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15113
					V_CHECK=`expr $_version_tmp \> $_version`
15114
					if test "$V_CHECK" = "1" ; then
15115
						_version=$_version_tmp
15116
					fi
15117
					VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15118
					BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
15119
				done
15120
			fi
15121
		else
15122
			for ac_boost_path in /usr /usr/local /opt /opt/local ; do
15123
				if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15124
					for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15125
						_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15126
						V_CHECK=`expr $_version_tmp \> $_version`
15127
						if test "$V_CHECK" = "1" ; then
15128
							_version=$_version_tmp
15129
	               					best_path=$ac_boost_path
15130
						fi
15131
					done
15132
				fi
15133
			done
15134
 
15135
			VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15136
			BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
15137
			BOOST_LDFLAGS="-L$best_path/lib"
15138
 
15139
	    		if test "x$BOOST_ROOT" != "x"; then
15140
				if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
15141
					version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
15142
					stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
15143
			        	stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
15144
					V_CHECK=`expr $stage_version_shorten \>\= $_version`
15145
				        if test "$V_CHECK" = "1" ; then
15146
						{ $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
15147
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
15148
						BOOST_CPPFLAGS="-I$BOOST_ROOT"
15149
						BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
15150
					fi
15151
				fi
15152
	    		fi
15153
		fi
15154
 
15155
		CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15156
		export CPPFLAGS
15157
		LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15158
		export LDFLAGS
15159
 
15160
		ac_ext=cpp
15161
ac_cpp='$CXXCPP $CPPFLAGS'
15162
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15163
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15164
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15165
 
15166
	     	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167
/* end confdefs.h.  */
15168
 
15169
		#include <boost/version.hpp>
15170
 
15171
int
15172
main ()
15173
{
15174
 
15175
		#if BOOST_VERSION >= $WANT_BOOST_VERSION
15176
		// Everything is okay
15177
		#else
15178
		#  error Boost version is too old
15179
		#endif
15180
 
15181
  ;
15182
  return 0;
15183
}
15184
_ACEOF
15185
if ac_fn_cxx_try_compile "$LINENO"; then :
15186
 
15187
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15188
$as_echo "yes" >&6; }
15189
		succeeded=yes
15190
		found_system=yes
15191
 
15192
fi
15193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194
		ac_ext=cpp
15195
ac_cpp='$CXXCPP $CPPFLAGS'
15196
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15197
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15198
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15199
 
15200
	fi
15201
 
15202
	if test "$succeeded" != "yes" ; then
15203
		if test "$_version" = "0" ; then
15204
			as_fn_error "We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." "$LINENO" 5
15205
		else
15206
			{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
15207
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
15208
		fi
15209
	else
15210
 
15211
 
15212
 
15213
$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
15214
 
15215
	fi
15216
 
15217
        CPPFLAGS="$CPPFLAGS_SAVED"
15218
       	LDFLAGS="$LDFLAGS_SAVED"
15219
fi
15220
 
15221
 
15222
 
15223
 
15224
 
15225
 
15226
# Check whether --with-libevent was given.
15227
if test "${with_libevent+set}" = set; then :
15228
  withval=$with_libevent;
15229
                       if test "x$withval" = "xno"; then
15230
                         want_libevent="no"
15231
                       elif test "x$withval" = "xyes"; then
15232
                         want_libevent="yes"
15233
                         ax_libevent_path=""
15234
                       else
15235
                         want_libevent="yes"
15236
                         ax_libevent_path="$withval"
15237
                       fi
15238
 
15239
else
15240
   want_libevent="yes" ; ax_libevent_path=""
15241
fi
15242
 
15243
 
15244
 
15245
          if test "$want_libevent" = "yes"; then
15246
            WANT_LIBEVENT_VERSION=1.0
15247
 
15248
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent >= $WANT_LIBEVENT_VERSION" >&5
15249
$as_echo_n "checking for libevent >= $WANT_LIBEVENT_VERSION... " >&6; }
15250
 
15251
            # Run tests.
15252
            if test -n "$ax_libevent_path"; then
15253
 
15254
          # Save our flags.
15255
          CPPFLAGS_SAVED="$CPPFLAGS"
15256
          LDFLAGS_SAVED="$LDFLAGS"
15257
          LIBS_SAVED="$LIBS"
15258
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15259
 
15260
          # Set our flags if we are checking a specific directory.
15261
          if test -n "$ax_libevent_path" ; then
15262
            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
15263
            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
15264
            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
15265
          else
15266
            LIBEVENT_CPPFLAGS=""
15267
            LIBEVENT_LDFLAGS=""
15268
          fi
15269
 
15270
          # Required flag for libevent.
15271
          LIBEVENT_LIBS="-levent"
15272
 
15273
          # Prepare the environment for compilation.
15274
          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
15275
          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
15276
          LIBS="$LIBS $LIBEVENT_LIBS"
15277
          export CPPFLAGS
15278
          export LDFLAGS
15279
          export LIBS
15280
          export LD_LIBRARY_PATH
15281
 
15282
          success=no
15283
 
15284
          # Compile, link, and run the program.  This checks:
15285
          # - event.h is available for including.
15286
          # - event_get_version() is available for linking.
15287
          # - The event version string is lexicographically greater
15288
          #   than the required version.
15289
          ac_ext=c
15290
ac_cpp='$CPP $CPPFLAGS'
15291
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15292
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15293
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15294
 
15295
                              if test "$cross_compiling" = yes; then :
15296
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15297
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15298
as_fn_error "cannot run test program while cross compiling
15299
See \`config.log' for more details." "$LINENO" 5; }
15300
else
15301
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302
/* end confdefs.h.  */
15303
 
15304
          #include <sys/types.h>
15305
          #include <event.h>
15306
 
15307
int
15308
main ()
15309
{
15310
 
15311
          const char* lib_version = event_get_version();
15312
          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
15313
          for (;;) {
15314
            /* If we reached the end of the want version.  We have it. */
15315
            if (*wnt_version == '\0' || *wnt_version == '-') {
15316
              return 0;
15317
            }
15318
            /* If the want version continues but the lib version does not, */
15319
            /* we are missing a letter.  We don't have it. */
15320
            if (*lib_version == '\0' || *lib_version == '-') {
15321
              return 1;
15322
            }
15323
            /* In the 1.4 version numbering style, if there are more digits */
15324
            /* in one version than the other, that one is higher. */
15325
            int lib_digits;
15326
            for (lib_digits = 0;
15327
                lib_version[lib_digits] >= '0' &&
15328
                lib_version[lib_digits] <= '9';
15329
                lib_digits++)
15330
              ;
15331
            int wnt_digits;
15332
            for (wnt_digits = 0;
15333
                wnt_version[wnt_digits] >= '0' &&
15334
                wnt_version[wnt_digits] <= '9';
15335
                wnt_digits++)
15336
              ;
15337
            if (lib_digits > wnt_digits) {
15338
              return 0;
15339
            }
15340
            if (lib_digits < wnt_digits) {
15341
              return 1;
15342
            }
15343
            /* If we have greater than what we want.  We have it. */
15344
            if (*lib_version > *wnt_version) {
15345
              return 0;
15346
            }
15347
            /* If we have less, we don't. */
15348
            if (*lib_version < *wnt_version) {
15349
              return 1;
15350
            }
15351
            lib_version++;
15352
            wnt_version++;
15353
          }
15354
          return 0;
15355
 
15356
  ;
15357
  return 0;
15358
}
15359
_ACEOF
15360
if ac_fn_c_try_run "$LINENO"; then :
15361
 
15362
          success=yes
15363
 
15364
fi
15365
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15366
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15367
fi
15368
 
15369
          ac_ext=cpp
15370
ac_cpp='$CXXCPP $CPPFLAGS'
15371
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15372
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15373
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15374
 
15375
 
15376
          # Restore flags.
15377
          CPPFLAGS="$CPPFLAGS_SAVED"
15378
          LDFLAGS="$LDFLAGS_SAVED"
15379
          LIBS="$LIBS_SAVED"
15380
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15381
 
15382
            else
15383
              for ax_libevent_path in "" /usr /usr/local /opt /opt/local /opt/libevent "$LIBEVENT_ROOT" ; do
15384
 
15385
          # Save our flags.
15386
          CPPFLAGS_SAVED="$CPPFLAGS"
15387
          LDFLAGS_SAVED="$LDFLAGS"
15388
          LIBS_SAVED="$LIBS"
15389
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15390
 
15391
          # Set our flags if we are checking a specific directory.
15392
          if test -n "$ax_libevent_path" ; then
15393
            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
15394
            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
15395
            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
15396
          else
15397
            LIBEVENT_CPPFLAGS=""
15398
            LIBEVENT_LDFLAGS=""
15399
          fi
15400
 
15401
          # Required flag for libevent.
15402
          LIBEVENT_LIBS="-levent"
15403
 
15404
          # Prepare the environment for compilation.
15405
          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
15406
          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
15407
          LIBS="$LIBS $LIBEVENT_LIBS"
15408
          export CPPFLAGS
15409
          export LDFLAGS
15410
          export LIBS
15411
          export LD_LIBRARY_PATH
15412
 
15413
          success=no
15414
 
15415
          # Compile, link, and run the program.  This checks:
15416
          # - event.h is available for including.
15417
          # - event_get_version() is available for linking.
15418
          # - The event version string is lexicographically greater
15419
          #   than the required version.
15420
          ac_ext=c
15421
ac_cpp='$CPP $CPPFLAGS'
15422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15425
 
15426
                              if test "$cross_compiling" = yes; then :
15427
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15428
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15429
as_fn_error "cannot run test program while cross compiling
15430
See \`config.log' for more details." "$LINENO" 5; }
15431
else
15432
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433
/* end confdefs.h.  */
15434
 
15435
          #include <sys/types.h>
15436
          #include <event.h>
15437
 
15438
int
15439
main ()
15440
{
15441
 
15442
          const char* lib_version = event_get_version();
15443
          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
15444
          for (;;) {
15445
            /* If we reached the end of the want version.  We have it. */
15446
            if (*wnt_version == '\0' || *wnt_version == '-') {
15447
              return 0;
15448
            }
15449
            /* If the want version continues but the lib version does not, */
15450
            /* we are missing a letter.  We don't have it. */
15451
            if (*lib_version == '\0' || *lib_version == '-') {
15452
              return 1;
15453
            }
15454
            /* In the 1.4 version numbering style, if there are more digits */
15455
            /* in one version than the other, that one is higher. */
15456
            int lib_digits;
15457
            for (lib_digits = 0;
15458
                lib_version[lib_digits] >= '0' &&
15459
                lib_version[lib_digits] <= '9';
15460
                lib_digits++)
15461
              ;
15462
            int wnt_digits;
15463
            for (wnt_digits = 0;
15464
                wnt_version[wnt_digits] >= '0' &&
15465
                wnt_version[wnt_digits] <= '9';
15466
                wnt_digits++)
15467
              ;
15468
            if (lib_digits > wnt_digits) {
15469
              return 0;
15470
            }
15471
            if (lib_digits < wnt_digits) {
15472
              return 1;
15473
            }
15474
            /* If we have greater than what we want.  We have it. */
15475
            if (*lib_version > *wnt_version) {
15476
              return 0;
15477
            }
15478
            /* If we have less, we don't. */
15479
            if (*lib_version < *wnt_version) {
15480
              return 1;
15481
            }
15482
            lib_version++;
15483
            wnt_version++;
15484
          }
15485
          return 0;
15486
 
15487
  ;
15488
  return 0;
15489
}
15490
_ACEOF
15491
if ac_fn_c_try_run "$LINENO"; then :
15492
 
15493
          success=yes
15494
 
15495
fi
15496
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15497
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15498
fi
15499
 
15500
          ac_ext=cpp
15501
ac_cpp='$CXXCPP $CPPFLAGS'
15502
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15503
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15504
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15505
 
15506
 
15507
          # Restore flags.
15508
          CPPFLAGS="$CPPFLAGS_SAVED"
15509
          LDFLAGS="$LDFLAGS_SAVED"
15510
          LIBS="$LIBS_SAVED"
15511
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15512
 
15513
                if test "$success" = "yes"; then
15514
                  break;
15515
                fi
15516
              done
15517
            fi
15518
 
15519
            if test "$success" != "yes" ; then
15520
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521
$as_echo "no" >&6; }
15522
              LIBEVENT_CPPFLAGS=""
15523
              LIBEVENT_LDFLAGS=""
15524
              LIBEVENT_LIBS=""
15525
            else
15526
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15527
$as_echo "yes" >&6; }
15528
 
15529
$as_echo "#define HAVE_LIBEVENT /**/" >>confdefs.h
15530
 
15531
              ax_have_libevent_1_0="yes"
15532
            fi
15533
 
15534
            ax_have_libevent="$success"
15535
 
15536
 
15537
 
15538
 
15539
          fi
15540
 
15541
 
15542
 if test "$success" = "yes"; then
15543
  AMX_HAVE_LIBEVENT_TRUE=
15544
  AMX_HAVE_LIBEVENT_FALSE='#'
15545
else
15546
  AMX_HAVE_LIBEVENT_TRUE='#'
15547
  AMX_HAVE_LIBEVENT_FALSE=
15548
fi
15549
 
15550
 
15551
 
15552
 
15553
 
15554
# Check whether --with-zlib was given.
15555
if test "${with_zlib+set}" = set; then :
15556
  withval=$with_zlib;
15557
                       if test "x$withval" = "xno"; then
15558
                         want_zlib="no"
15559
                       elif test "x$withval" = "xyes"; then
15560
                         want_zlib="yes"
15561
                         ax_zlib_path=""
15562
                       else
15563
                         want_zlib="yes"
15564
                         ax_zlib_path="$withval"
15565
                       fi
15566
 
15567
else
15568
  want_zlib="yes" ; ax_zlib_path=""
15569
fi
15570
 
15571
 
15572
 
15573
          if test "$want_zlib" = "yes"; then
15574
            # Parse out the version.
15575
            zlib_version_req=1.2.3
15576
            zlib_version_req_major=`expr $zlib_version_req : '\([0-9]*\)'`
15577
            zlib_version_req_minor=`expr $zlib_version_req : '[0-9]*\.\([0-9]*\)'`
15578
            zlib_version_req_patch=`expr $zlib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15579
            if test -z "$zlib_version_req_patch" ; then
15580
              zlib_version_req_patch="0"
15581
            fi
15582
            WANT_ZLIB_VERSION=`expr $zlib_version_req_major \* 1000 \+  $zlib_version_req_minor \* 100 \+ $zlib_version_req_patch \* 10`
15583
 
15584
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= $zlib_version_req" >&5
15585
$as_echo_n "checking for zlib >= $zlib_version_req... " >&6; }
15586
 
15587
            # Run tests.
15588
            if test -n "$ax_zlib_path"; then
15589
 
15590
          # Save our flags.
15591
          CPPFLAGS_SAVED="$CPPFLAGS"
15592
          LDFLAGS_SAVED="$LDFLAGS"
15593
          LIBS_SAVED="$LIBS"
15594
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15595
 
15596
          # Set our flags if we are checking a specific directory.
15597
          if test -n "$ax_zlib_path" ; then
15598
            ZLIB_CPPFLAGS="-I$ax_zlib_path/include"
15599
            ZLIB_LDFLAGS="-L$ax_zlib_path/lib"
15600
            LD_LIBRARY_PATH="$ax_zlib_path/lib:$LD_LIBRARY_PATH"
15601
          else
15602
            ZLIB_CPPFLAGS=""
15603
            ZLIB_LDFLAGS=""
15604
          fi
15605
 
15606
          # Required flag for zlib.
15607
          ZLIB_LIBS="-lz"
15608
 
15609
          # Prepare the environment for compilation.
15610
          CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
15611
          LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
15612
          LIBS="$LIBS $ZLIB_LIBS"
15613
          export CPPFLAGS
15614
          export LDFLAGS
15615
          export LIBS
15616
          export LD_LIBRARY_PATH
15617
 
15618
          success=no
15619
 
15620
          # Compile, link, and run the program.  This checks:
15621
          # - zlib.h is available for including.
15622
          # - zlibVersion() is available for linking.
15623
          # - ZLIB_VERNUM is greater than or equal to the desired version.
15624
          # - ZLIB_VERSION (defined in zlib.h) matches zlibVersion()
15625
          #   (defined in the library).
15626
          ac_ext=c
15627
ac_cpp='$CPP $CPPFLAGS'
15628
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15629
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15630
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15631
 
15632
                    if test "$cross_compiling" = yes; then :
15633
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15634
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15635
as_fn_error "cannot run test program while cross compiling
15636
See \`config.log' for more details." "$LINENO" 5; }
15637
else
15638
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639
/* end confdefs.h.  */
15640
 
15641
          #include <zlib.h>
15642
          #if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
15643
          #else
15644
          # error zlib is too old
15645
          #endif
15646
 
15647
int
15648
main ()
15649
{
15650
 
15651
          const char* lib_version = zlibVersion();
15652
          const char* hdr_version = ZLIB_VERSION;
15653
          for (;;) {
15654
            if (*lib_version != *hdr_version) {
15655
              /* If this happens, your zlib header doesn't match your zlib */
15656
              /* library.  That is really bad. */
15657
              return 1;
15658
            }
15659
            if (*lib_version == '\0') {
15660
              break;
15661
            }
15662
            lib_version++;
15663
            hdr_version++;
15664
          }
15665
          return 0;
15666
 
15667
  ;
15668
  return 0;
15669
}
15670
_ACEOF
15671
if ac_fn_c_try_run "$LINENO"; then :
15672
 
15673
          success=yes
15674
 
15675
fi
15676
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15677
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15678
fi
15679
 
15680
          ac_ext=cpp
15681
ac_cpp='$CXXCPP $CPPFLAGS'
15682
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15685
 
15686
 
15687
          # Restore flags.
15688
          CPPFLAGS="$CPPFLAGS_SAVED"
15689
          LDFLAGS="$LDFLAGS_SAVED"
15690
          LIBS="$LIBS_SAVED"
15691
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15692
 
15693
            else
15694
              for ax_zlib_path in "" /usr /usr/local /opt /opt/zlib "$ZLIB_ROOT" ; do
15695
 
15696
          # Save our flags.
15697
          CPPFLAGS_SAVED="$CPPFLAGS"
15698
          LDFLAGS_SAVED="$LDFLAGS"
15699
          LIBS_SAVED="$LIBS"
15700
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15701
 
15702
          # Set our flags if we are checking a specific directory.
15703
          if test -n "$ax_zlib_path" ; then
15704
            ZLIB_CPPFLAGS="-I$ax_zlib_path/include"
15705
            ZLIB_LDFLAGS="-L$ax_zlib_path/lib"
15706
            LD_LIBRARY_PATH="$ax_zlib_path/lib:$LD_LIBRARY_PATH"
15707
          else
15708
            ZLIB_CPPFLAGS=""
15709
            ZLIB_LDFLAGS=""
15710
          fi
15711
 
15712
          # Required flag for zlib.
15713
          ZLIB_LIBS="-lz"
15714
 
15715
          # Prepare the environment for compilation.
15716
          CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
15717
          LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
15718
          LIBS="$LIBS $ZLIB_LIBS"
15719
          export CPPFLAGS
15720
          export LDFLAGS
15721
          export LIBS
15722
          export LD_LIBRARY_PATH
15723
 
15724
          success=no
15725
 
15726
          # Compile, link, and run the program.  This checks:
15727
          # - zlib.h is available for including.
15728
          # - zlibVersion() is available for linking.
15729
          # - ZLIB_VERNUM is greater than or equal to the desired version.
15730
          # - ZLIB_VERSION (defined in zlib.h) matches zlibVersion()
15731
          #   (defined in the library).
15732
          ac_ext=c
15733
ac_cpp='$CPP $CPPFLAGS'
15734
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15735
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15736
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15737
 
15738
                    if test "$cross_compiling" = yes; then :
15739
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15740
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15741
as_fn_error "cannot run test program while cross compiling
15742
See \`config.log' for more details." "$LINENO" 5; }
15743
else
15744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745
/* end confdefs.h.  */
15746
 
15747
          #include <zlib.h>
15748
          #if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
15749
          #else
15750
          # error zlib is too old
15751
          #endif
15752
 
15753
int
15754
main ()
15755
{
15756
 
15757
          const char* lib_version = zlibVersion();
15758
          const char* hdr_version = ZLIB_VERSION;
15759
          for (;;) {
15760
            if (*lib_version != *hdr_version) {
15761
              /* If this happens, your zlib header doesn't match your zlib */
15762
              /* library.  That is really bad. */
15763
              return 1;
15764
            }
15765
            if (*lib_version == '\0') {
15766
              break;
15767
            }
15768
            lib_version++;
15769
            hdr_version++;
15770
          }
15771
          return 0;
15772
 
15773
  ;
15774
  return 0;
15775
}
15776
_ACEOF
15777
if ac_fn_c_try_run "$LINENO"; then :
15778
 
15779
          success=yes
15780
 
15781
fi
15782
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15783
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15784
fi
15785
 
15786
          ac_ext=cpp
15787
ac_cpp='$CXXCPP $CPPFLAGS'
15788
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15789
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15790
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15791
 
15792
 
15793
          # Restore flags.
15794
          CPPFLAGS="$CPPFLAGS_SAVED"
15795
          LDFLAGS="$LDFLAGS_SAVED"
15796
          LIBS="$LIBS_SAVED"
15797
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15798
 
15799
                if test "$success" = "yes"; then
15800
                  break;
15801
                fi
15802
              done
15803
            fi
15804
 
15805
            if test "$success" != "yes" ; then
15806
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807
$as_echo "no" >&6; }
15808
              ZLIB_CPPFLAGS=""
15809
              ZLIB_LDFLAGS=""
15810
              ZLIB_LIBS=""
15811
            else
15812
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813
$as_echo "yes" >&6; }
15814
 
15815
$as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
15816
 
15817
            fi
15818
 
15819
            ax_have_zlib="$success"
15820
 
15821
 
15822
 
15823
 
15824
          fi
15825
 
15826
 
15827
 if test "$success" = "yes"; then
15828
  AMX_HAVE_ZLIB_TRUE=
15829
  AMX_HAVE_ZLIB_FALSE='#'
15830
else
15831
  AMX_HAVE_ZLIB_TRUE='#'
15832
  AMX_HAVE_ZLIB_FALSE=
15833
fi
15834
 
15835
 
15836
 
15837
 
15838
# Check whether --with-csharp was given.
15839
if test "${with_csharp+set}" = set; then :
15840
  withval=$with_csharp; with_csharp="$withval"
15841
else
15842
  with_csharp=yes
15843
 
15844
fi
15845
 
15846
 
15847
if test "$with_csharp" = "yes";  then
15848
 
15849
 
15850
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15851
	if test -n "$ac_tool_prefix"; then
15852
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15853
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15855
$as_echo_n "checking for $ac_word... " >&6; }
15856
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15857
  $as_echo_n "(cached) " >&6
15858
else
15859
  case $PKG_CONFIG in
15860
  [\\/]* | ?:[\\/]*)
15861
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15862
  ;;
15863
  *)
15864
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15865
for as_dir in $PATH
15866
do
15867
  IFS=$as_save_IFS
15868
  test -z "$as_dir" && as_dir=.
15869
    for ac_exec_ext in '' $ac_executable_extensions; do
15870
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15871
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15872
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15873
    break 2
15874
  fi
15875
done
15876
  done
15877
IFS=$as_save_IFS
15878
 
15879
  ;;
15880
esac
15881
fi
15882
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15883
if test -n "$PKG_CONFIG"; then
15884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15885
$as_echo "$PKG_CONFIG" >&6; }
15886
else
15887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15888
$as_echo "no" >&6; }
15889
fi
15890
 
15891
 
15892
fi
15893
if test -z "$ac_cv_path_PKG_CONFIG"; then
15894
  ac_pt_PKG_CONFIG=$PKG_CONFIG
15895
  # Extract the first word of "pkg-config", so it can be a program name with args.
15896
set dummy pkg-config; ac_word=$2
15897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898
$as_echo_n "checking for $ac_word... " >&6; }
15899
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15900
  $as_echo_n "(cached) " >&6
15901
else
15902
  case $ac_pt_PKG_CONFIG in
15903
  [\\/]* | ?:[\\/]*)
15904
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15905
  ;;
15906
  *)
15907
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908
for as_dir in $PATH
15909
do
15910
  IFS=$as_save_IFS
15911
  test -z "$as_dir" && as_dir=.
15912
    for ac_exec_ext in '' $ac_executable_extensions; do
15913
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15914
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15915
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15916
    break 2
15917
  fi
15918
done
15919
  done
15920
IFS=$as_save_IFS
15921
 
15922
  ;;
15923
esac
15924
fi
15925
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15926
if test -n "$ac_pt_PKG_CONFIG"; then
15927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15928
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15929
else
15930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931
$as_echo "no" >&6; }
15932
fi
15933
 
15934
  if test "x$ac_pt_PKG_CONFIG" = x; then
15935
    PKG_CONFIG=""
15936
  else
15937
    case $cross_compiling:$ac_tool_warned in
15938
yes:)
15939
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15940
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15941
ac_tool_warned=yes ;;
15942
esac
15943
    PKG_CONFIG=$ac_pt_PKG_CONFIG
15944
  fi
15945
else
15946
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15947
fi
15948
 
15949
fi
15950
if test -n "$PKG_CONFIG"; then
15951
	_pkg_min_version=0.9.0
15952
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15953
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15954
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15955
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15956
$as_echo "yes" >&6; }
15957
	else
15958
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959
$as_echo "no" >&6; }
15960
		PKG_CONFIG=""
15961
	fi
15962
 
15963
fi
15964
 
15965
pkg_failed=no
15966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO" >&5
15967
$as_echo_n "checking for MONO... " >&6; }
15968
 
15969
if test -n "$PKG_CONFIG"; then
15970
    if test -n "$MONO_CFLAGS"; then
15971
        pkg_cv_MONO_CFLAGS="$MONO_CFLAGS"
15972
    else
15973
        if test -n "$PKG_CONFIG" && \
15974
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 2.0.0\""; } >&5
15975
  ($PKG_CONFIG --exists --print-errors "mono >= 2.0.0") 2>&5
15976
  ac_status=$?
15977
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15978
  test $ac_status = 0; }; then
15979
  pkg_cv_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono >= 2.0.0" 2>/dev/null`
15980
else
15981
  pkg_failed=yes
15982
fi
15983
    fi
15984
else
15985
	pkg_failed=untried
15986
fi
15987
if test -n "$PKG_CONFIG"; then
15988
    if test -n "$MONO_LIBS"; then
15989
        pkg_cv_MONO_LIBS="$MONO_LIBS"
15990
    else
15991
        if test -n "$PKG_CONFIG" && \
15992
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 2.0.0\""; } >&5
15993
  ($PKG_CONFIG --exists --print-errors "mono >= 2.0.0") 2>&5
15994
  ac_status=$?
15995
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15996
  test $ac_status = 0; }; then
15997
  pkg_cv_MONO_LIBS=`$PKG_CONFIG --libs "mono >= 2.0.0" 2>/dev/null`
15998
else
15999
  pkg_failed=yes
16000
fi
16001
    fi
16002
else
16003
	pkg_failed=untried
16004
fi
16005
 
16006
 
16007
 
16008
if test $pkg_failed = yes; then
16009
 
16010
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16011
        _pkg_short_errors_supported=yes
16012
else
16013
        _pkg_short_errors_supported=no
16014
fi
16015
        if test $_pkg_short_errors_supported = yes; then
16016
	        MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mono >= 2.0.0"`
16017
        else
16018
	        MONO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mono >= 2.0.0"`
16019
        fi
16020
	# Put the nasty error message in config.log where it belongs
16021
	echo "$MONO_PKG_ERRORS" >&5
16022
 
16023
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024
$as_echo "no" >&6; }
16025
                net_3_5=no
16026
elif test $pkg_failed = untried; then
16027
	net_3_5=no
16028
else
16029
	MONO_CFLAGS=$pkg_cv_MONO_CFLAGS
16030
	MONO_LIBS=$pkg_cv_MONO_LIBS
16031
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16032
$as_echo "yes" >&6; }
16033
	net_3_5=yes
16034
fi
16035
 
16036
pkg_failed=no
16037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO" >&5
16038
$as_echo_n "checking for MONO... " >&6; }
16039
 
16040
if test -n "$PKG_CONFIG"; then
16041
    if test -n "$MONO_CFLAGS"; then
16042
        pkg_cv_MONO_CFLAGS="$MONO_CFLAGS"
16043
    else
16044
        if test -n "$PKG_CONFIG" && \
16045
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 1.2.4\""; } >&5
16046
  ($PKG_CONFIG --exists --print-errors "mono >= 1.2.4") 2>&5
16047
  ac_status=$?
16048
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16049
  test $ac_status = 0; }; then
16050
  pkg_cv_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono >= 1.2.4" 2>/dev/null`
16051
else
16052
  pkg_failed=yes
16053
fi
16054
    fi
16055
else
16056
	pkg_failed=untried
16057
fi
16058
if test -n "$PKG_CONFIG"; then
16059
    if test -n "$MONO_LIBS"; then
16060
        pkg_cv_MONO_LIBS="$MONO_LIBS"
16061
    else
16062
        if test -n "$PKG_CONFIG" && \
16063
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 1.2.4\""; } >&5
16064
  ($PKG_CONFIG --exists --print-errors "mono >= 1.2.4") 2>&5
16065
  ac_status=$?
16066
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16067
  test $ac_status = 0; }; then
16068
  pkg_cv_MONO_LIBS=`$PKG_CONFIG --libs "mono >= 1.2.4" 2>/dev/null`
16069
else
16070
  pkg_failed=yes
16071
fi
16072
    fi
16073
else
16074
	pkg_failed=untried
16075
fi
16076
 
16077
 
16078
 
16079
if test $pkg_failed = yes; then
16080
 
16081
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16082
        _pkg_short_errors_supported=yes
16083
else
16084
        _pkg_short_errors_supported=no
16085
fi
16086
        if test $_pkg_short_errors_supported = yes; then
16087
	        MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mono >= 1.2.4"`
16088
        else
16089
	        MONO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mono >= 1.2.4"`
16090
        fi
16091
	# Put the nasty error message in config.log where it belongs
16092
	echo "$MONO_PKG_ERRORS" >&5
16093
 
16094
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095
$as_echo "no" >&6; }
16096
                have_mono=no
16097
elif test $pkg_failed = untried; then
16098
	have_mono=no
16099
else
16100
	MONO_CFLAGS=$pkg_cv_MONO_CFLAGS
16101
	MONO_LIBS=$pkg_cv_MONO_LIBS
16102
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103
$as_echo "yes" >&6; }
16104
	have_mono=yes
16105
fi
16106
fi
16107
 if test "$have_mono" = "yes"; then
16108
  WITH_MONO_TRUE=
16109
  WITH_MONO_FALSE='#'
16110
else
16111
  WITH_MONO_TRUE='#'
16112
  WITH_MONO_FALSE=
16113
fi
16114
 
16115
 if test "$net_3_5" = "no"; then
16116
  NET_2_0_TRUE=
16117
  NET_2_0_FALSE='#'
16118
else
16119
  NET_2_0_TRUE='#'
16120
  NET_2_0_FALSE=
16121
fi
16122
 
16123
 
16124
 
16125
 
16126
# Check whether --with-java was given.
16127
if test "${with_java+set}" = set; then :
16128
  withval=$with_java; with_java="$withval"
16129
else
16130
  with_java=yes
16131
 
16132
fi
16133
 
16134
 
16135
if test "$with_java" = "yes";  then
16136
 
16137
 
16138
                    JAVAC_PROGS="javac,jikes,gcj -C"
16139
          JAVA_PROGS="java,kaffe"
16140
 
16141
                    if test -n "$JAVAC" ; then
16142
            JAVAC_PROGS="$JAVAC"
16143
          fi
16144
          if test -n "$JAVA" ; then
16145
            JAVA_PROGS="$JAVA"
16146
          fi
16147
 
16148
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac and java" >&5
16149
$as_echo_n "checking for javac and java... " >&6; }
16150
 
16151
          echo "public class configtest_ax_javac_and_java { public static void main(String args[]) { } }" > configtest_ax_javac_and_java.java
16152
          success=no
16153
          oIFS="$IFS"
16154
 
16155
          IFS=","
16156
          for JAVAC in $JAVAC_PROGS ; do
16157
            IFS="$oIFS"
16158
 
16159
            echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16160
            if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16161
 
16162
              IFS=","
16163
              for JAVA in $JAVA_PROGS ; do
16164
                IFS="$oIFS"
16165
 
16166
                echo "Running \"$JAVA configtest_ax_javac_and_java\"" >&5
16167
                if $JAVA configtest_ax_javac_and_java >&5 2>&1 ; then
16168
                  success=yes
16169
                  break 2
16170
                fi
16171
 
16172
              done
16173
 
16174
            fi
16175
 
16176
          done
16177
 
16178
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16179
 
16180
          if test "$success" != "yes" ; then
16181
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182
$as_echo "no" >&6; }
16183
            JAVAC=""
16184
            JAVA=""
16185
          else
16186
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16187
$as_echo "yes" >&6; }
16188
          fi
16189
 
16190
          ax_javac_and_java="$success"
16191
 
16192
 
16193
  # Extract the first word of "ant", so it can be a program name with args.
16194
set dummy ant; ac_word=$2
16195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16196
$as_echo_n "checking for $ac_word... " >&6; }
16197
if test "${ac_cv_path_ANT+set}" = set; then :
16198
  $as_echo_n "(cached) " >&6
16199
else
16200
  case $ANT in
16201
  [\\/]* | ?:[\\/]*)
16202
  ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
16203
  ;;
16204
  *)
16205
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206
for as_dir in $PATH
16207
do
16208
  IFS=$as_save_IFS
16209
  test -z "$as_dir" && as_dir=.
16210
    for ac_exec_ext in '' $ac_executable_extensions; do
16211
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16212
    ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
16213
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16214
    break 2
16215
  fi
16216
done
16217
  done
16218
IFS=$as_save_IFS
16219
 
16220
  ;;
16221
esac
16222
fi
16223
ANT=$ac_cv_path_ANT
16224
if test -n "$ANT"; then
16225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
16226
$as_echo "$ANT" >&6; }
16227
else
16228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229
$as_echo "no" >&6; }
16230
fi
16231
 
16232
 
16233
 
16234
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java class org.slf4j.Logger" >&5
16235
$as_echo_n "checking for Java class org.slf4j.Logger... " >&6; }
16236
 
16237
          echo "import org.slf4j.Logger; public class configtest_ax_javac_and_java { public static void main(String args[]) { } }" > configtest_ax_javac_and_java.java
16238
 
16239
          echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16240
          if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16241
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16242
$as_echo "yes" >&6; }
16243
            success=yes
16244
          else
16245
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16246
$as_echo "no" >&6; }
16247
            success=no
16248
          fi
16249
 
16250
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16251
 
16252
  have_slf4j="$success"
16253
 
16254
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java class org.slf4j.impl.SimpleLogger" >&5
16255
$as_echo_n "checking for Java class org.slf4j.impl.SimpleLogger... " >&6; }
16256
 
16257
          echo "import org.slf4j.impl.SimpleLogger; public class configtest_ax_javac_and_java { public static void main(String args[]) { } }" > configtest_ax_javac_and_java.java
16258
 
16259
          echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16260
          if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16261
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16262
$as_echo "yes" >&6; }
16263
            success=yes
16264
          else
16265
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266
$as_echo "no" >&6; }
16267
            success=no
16268
          fi
16269
 
16270
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16271
 
16272
  have_slf4j_simple="$success"
16273
 
16274
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java class org.apache.commons.lang.builder.HashCodeBuilder" >&5
16275
$as_echo_n "checking for Java class org.apache.commons.lang.builder.HashCodeBuilder... " >&6; }
16276
 
16277
          echo "import org.apache.commons.lang.builder.HashCodeBuilder; public class configtest_ax_javac_and_java { public static void main(String args[]) { } }" > configtest_ax_javac_and_java.java
16278
 
16279
          echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16280
          if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16281
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16282
$as_echo "yes" >&6; }
16283
            success=yes
16284
          else
16285
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286
$as_echo "no" >&6; }
16287
            success=no
16288
          fi
16289
 
16290
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16291
 
16292
  have_hashcode="$success"
16293
  if test "x$have_slf4j_simple" = "xyes" && test "x$have_slf4j" = "xyes" && test "x$have_hashcode" = "xyes" ; then
16294
    ANT_FLAGS="$ANT_FLAGS -Dnoivy="
16295
  fi
16296
 
16297
 
16298
fi
16299
 if test -n "$ANT" -a -n "$JAVA" -a -n "$JAVAC"; then
16300
  WITH_JAVA_TRUE=
16301
  WITH_JAVA_FALSE='#'
16302
else
16303
  WITH_JAVA_TRUE='#'
16304
  WITH_JAVA_FALSE=
16305
fi
16306
 
16307
 
16308
 
16309
 
16310
# Check whether --with-erlang was given.
16311
if test "${with_erlang+set}" = set; then :
16312
  withval=$with_erlang; with_erlang="$withval"
16313
else
16314
  with_erlang=yes
16315
 
16316
fi
16317
 
16318
 
16319
if test "$with_erlang" = "yes";  then
16320
  # Extract the first word of "erlc", so it can be a program name with args.
16321
set dummy erlc; ac_word=$2
16322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16323
$as_echo_n "checking for $ac_word... " >&6; }
16324
if test "${ac_cv_path_ERLC+set}" = set; then :
16325
  $as_echo_n "(cached) " >&6
16326
else
16327
  case $ERLC in
16328
  [\\/]* | ?:[\\/]*)
16329
  ac_cv_path_ERLC="$ERLC" # Let the user override the test with a path.
16330
  ;;
16331
  *)
16332
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333
for as_dir in $PATH
16334
do
16335
  IFS=$as_save_IFS
16336
  test -z "$as_dir" && as_dir=.
16337
    for ac_exec_ext in '' $ac_executable_extensions; do
16338
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16339
    ac_cv_path_ERLC="$as_dir/$ac_word$ac_exec_ext"
16340
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16341
    break 2
16342
  fi
16343
done
16344
  done
16345
IFS=$as_save_IFS
16346
 
16347
  ;;
16348
esac
16349
fi
16350
ERLC=$ac_cv_path_ERLC
16351
if test -n "$ERLC"; then
16352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
16353
$as_echo "$ERLC" >&6; }
16354
else
16355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356
$as_echo "no" >&6; }
16357
fi
16358
 
16359
 
16360
fi
16361
 if test -n "$ERLC"; then
16362
  WITH_ERLANG_TRUE=
16363
  WITH_ERLANG_FALSE='#'
16364
else
16365
  WITH_ERLANG_TRUE='#'
16366
  WITH_ERLANG_FALSE=
16367
fi
16368
 
16369
 
16370
 
16371
 
16372
# Check whether --with-py was given.
16373
if test "${with_py+set}" = set; then :
16374
  withval=$with_py; with_py="$withval"
16375
else
16376
  with_py=yes
16377
 
16378
fi
16379
 
16380
 
16381
if test "$with_py" = "yes";  then
16382
 
16383
 
16384
 
16385
 
16386
        if test -n "$PYTHON"; then
16387
      # If the user set $PYTHON, use it and don't search something else.
16388
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
16389
$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
16390
      prog="import sys
16391
# split strings by '.' and convert to numeric.  Append some zeros
16392
# because we need at least 4 digits for the hex conversion.
16393
# map returns an iterator in Python 3.0 and a list in 2.x
16394
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
16395
minverhex = 0
16396
# xrange is not present in Python 3.0 and range returns an iterator
16397
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16398
sys.exit(sys.hexversion < minverhex)"
16399
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16400
   ($PYTHON -c "$prog") >&5 2>&5
16401
   ac_status=$?
16402
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403
   (exit $ac_status); }; then :
16404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16405
$as_echo "yes" >&6; }
16406
else
16407
  as_fn_error "too old" "$LINENO" 5
16408
fi
16409
      am_display_PYTHON=$PYTHON
16410
    else
16411
      # Otherwise, try each interpreter until we find one that satisfies
16412
      # VERSION.
16413
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
16414
$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
16415
if test "${am_cv_pathless_PYTHON+set}" = set; then :
16416
  $as_echo_n "(cached) " >&6
16417
else
16418
 
16419
	for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
16420
	  test "$am_cv_pathless_PYTHON" = none && break
16421
	  prog="import sys
16422
# split strings by '.' and convert to numeric.  Append some zeros
16423
# because we need at least 4 digits for the hex conversion.
16424
# map returns an iterator in Python 3.0 and a list in 2.x
16425
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
16426
minverhex = 0
16427
# xrange is not present in Python 3.0 and range returns an iterator
16428
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16429
sys.exit(sys.hexversion < minverhex)"
16430
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16431
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16432
   ac_status=$?
16433
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434
   (exit $ac_status); }; then :
16435
  break
16436
fi
16437
	done
16438
fi
16439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16440
$as_echo "$am_cv_pathless_PYTHON" >&6; }
16441
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16442
      if test "$am_cv_pathless_PYTHON" = none; then
16443
	PYTHON=:
16444
      else
16445
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16446
set dummy $am_cv_pathless_PYTHON; ac_word=$2
16447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16448
$as_echo_n "checking for $ac_word... " >&6; }
16449
if test "${ac_cv_path_PYTHON+set}" = set; then :
16450
  $as_echo_n "(cached) " >&6
16451
else
16452
  case $PYTHON in
16453
  [\\/]* | ?:[\\/]*)
16454
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16455
  ;;
16456
  *)
16457
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458
for as_dir in $PATH
16459
do
16460
  IFS=$as_save_IFS
16461
  test -z "$as_dir" && as_dir=.
16462
    for ac_exec_ext in '' $ac_executable_extensions; do
16463
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16464
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16465
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16466
    break 2
16467
  fi
16468
done
16469
  done
16470
IFS=$as_save_IFS
16471
 
16472
  ;;
16473
esac
16474
fi
16475
PYTHON=$ac_cv_path_PYTHON
16476
if test -n "$PYTHON"; then
16477
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16478
$as_echo "$PYTHON" >&6; }
16479
else
16480
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481
$as_echo "no" >&6; }
16482
fi
16483
 
16484
 
16485
      fi
16486
      am_display_PYTHON=$am_cv_pathless_PYTHON
16487
    fi
16488
 
16489
 
16490
  if test "$PYTHON" = :; then
16491
      :
16492
  else
16493
 
16494
 
16495
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16496
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16497
if test "${am_cv_python_version+set}" = set; then :
16498
  $as_echo_n "(cached) " >&6
16499
else
16500
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16501
fi
16502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16503
$as_echo "$am_cv_python_version" >&6; }
16504
  PYTHON_VERSION=$am_cv_python_version
16505
 
16506
 
16507
 
16508
  PYTHON_PREFIX='${prefix}'
16509
 
16510
  PYTHON_EXEC_PREFIX='${exec_prefix}'
16511
 
16512
 
16513
 
16514
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16515
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16516
if test "${am_cv_python_platform+set}" = set; then :
16517
  $as_echo_n "(cached) " >&6
16518
else
16519
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16520
fi
16521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16522
$as_echo "$am_cv_python_platform" >&6; }
16523
  PYTHON_PLATFORM=$am_cv_python_platform
16524
 
16525
 
16526
 
16527
 
16528
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16529
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16530
if test "${am_cv_python_pythondir+set}" = set; then :
16531
  $as_echo_n "(cached) " >&6
16532
else
16533
  if test "x$prefix" = xNONE
16534
     then
16535
       am_py_prefix=$ac_default_prefix
16536
     else
16537
       am_py_prefix=$prefix
16538
     fi
16539
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
16540
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
16541
     case $am_cv_python_pythondir in
16542
     $am_py_prefix*)
16543
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16544
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16545
       ;;
16546
     esac
16547
 
16548
fi
16549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16550
$as_echo "$am_cv_python_pythondir" >&6; }
16551
  pythondir=$am_cv_python_pythondir
16552
 
16553
 
16554
 
16555
  pkgpythondir=\${pythondir}/$PACKAGE
16556
 
16557
 
16558
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16559
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16560
if test "${am_cv_python_pyexecdir+set}" = set; then :
16561
  $as_echo_n "(cached) " >&6
16562
else
16563
  if test "x$exec_prefix" = xNONE
16564
     then
16565
       am_py_exec_prefix=$am_py_prefix
16566
     else
16567
       am_py_exec_prefix=$exec_prefix
16568
     fi
16569
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
16570
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
16571
     case $am_cv_python_pyexecdir in
16572
     $am_py_exec_prefix*)
16573
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16574
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16575
       ;;
16576
     esac
16577
 
16578
fi
16579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16580
$as_echo "$am_cv_python_pyexecdir" >&6; }
16581
  pyexecdir=$am_cv_python_pyexecdir
16582
 
16583
 
16584
 
16585
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
16586
 
16587
 
16588
 
16589
  fi
16590
 
16591
 
16592
fi
16593
 if test -n "$PYTHON" -a "$PYTHON" != ":"; then
16594
  WITH_PYTHON_TRUE=
16595
  WITH_PYTHON_FALSE='#'
16596
else
16597
  WITH_PYTHON_TRUE='#'
16598
  WITH_PYTHON_FALSE=
16599
fi
16600
 
16601
 
16602
 
16603
 
16604
# Check whether --with-perl was given.
16605
if test "${with_perl+set}" = set; then :
16606
  withval=$with_perl; with_perl="$withval"
16607
else
16608
  with_perl=yes
16609
 
16610
fi
16611
 
16612
 
16613
if test "$with_perl" = "yes"; then
16614
  # Extract the first word of "perl", so it can be a program name with args.
16615
set dummy perl; ac_word=$2
16616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16617
$as_echo_n "checking for $ac_word... " >&6; }
16618
if test "${ac_cv_path_PERL+set}" = set; then :
16619
  $as_echo_n "(cached) " >&6
16620
else
16621
  case $PERL in
16622
  [\\/]* | ?:[\\/]*)
16623
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16624
  ;;
16625
  *)
16626
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16627
for as_dir in $PATH
16628
do
16629
  IFS=$as_save_IFS
16630
  test -z "$as_dir" && as_dir=.
16631
    for ac_exec_ext in '' $ac_executable_extensions; do
16632
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16633
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16634
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16635
    break 2
16636
  fi
16637
done
16638
  done
16639
IFS=$as_save_IFS
16640
 
16641
  ;;
16642
esac
16643
fi
16644
PERL=$ac_cv_path_PERL
16645
if test -n "$PERL"; then
16646
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16647
$as_echo "$PERL" >&6; }
16648
else
16649
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650
$as_echo "no" >&6; }
16651
fi
16652
 
16653
 
16654
fi
16655
 if test -n "$PERL"; then
16656
  WITH_PERL_TRUE=
16657
  WITH_PERL_FALSE='#'
16658
else
16659
  WITH_PERL_TRUE='#'
16660
  WITH_PERL_FALSE=
16661
fi
16662
 
16663
 
16664
 
16665
 
16666
# Check whether --with-ruby was given.
16667
if test "${with_ruby+set}" = set; then :
16668
  withval=$with_ruby; with_ruby="$withval"
16669
else
16670
  with_ruby=yes
16671
 
16672
fi
16673
 
16674
 
16675
if test "$with_ruby" = "yes"; then
16676
  # Extract the first word of "ruby", so it can be a program name with args.
16677
set dummy ruby; ac_word=$2
16678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16679
$as_echo_n "checking for $ac_word... " >&6; }
16680
if test "${ac_cv_path_RUBY+set}" = set; then :
16681
  $as_echo_n "(cached) " >&6
16682
else
16683
  case $RUBY in
16684
  [\\/]* | ?:[\\/]*)
16685
  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
16686
  ;;
16687
  *)
16688
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16689
for as_dir in $PATH
16690
do
16691
  IFS=$as_save_IFS
16692
  test -z "$as_dir" && as_dir=.
16693
    for ac_exec_ext in '' $ac_executable_extensions; do
16694
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16695
    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
16696
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16697
    break 2
16698
  fi
16699
done
16700
  done
16701
IFS=$as_save_IFS
16702
 
16703
  ;;
16704
esac
16705
fi
16706
RUBY=$ac_cv_path_RUBY
16707
if test -n "$RUBY"; then
16708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
16709
$as_echo "$RUBY" >&6; }
16710
else
16711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712
$as_echo "no" >&6; }
16713
fi
16714
 
16715
 
16716
  # Extract the first word of "spec", so it can be a program name with args.
16717
set dummy spec; ac_word=$2
16718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719
$as_echo_n "checking for $ac_word... " >&6; }
16720
if test "${ac_cv_path_RSPEC+set}" = set; then :
16721
  $as_echo_n "(cached) " >&6
16722
else
16723
  case $RSPEC in
16724
  [\\/]* | ?:[\\/]*)
16725
  ac_cv_path_RSPEC="$RSPEC" # Let the user override the test with a path.
16726
  ;;
16727
  *)
16728
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16729
for as_dir in $PATH
16730
do
16731
  IFS=$as_save_IFS
16732
  test -z "$as_dir" && as_dir=.
16733
    for ac_exec_ext in '' $ac_executable_extensions; do
16734
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16735
    ac_cv_path_RSPEC="$as_dir/$ac_word$ac_exec_ext"
16736
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16737
    break 2
16738
  fi
16739
done
16740
  done
16741
IFS=$as_save_IFS
16742
 
16743
  ;;
16744
esac
16745
fi
16746
RSPEC=$ac_cv_path_RSPEC
16747
if test -n "$RSPEC"; then
16748
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSPEC" >&5
16749
$as_echo "$RSPEC" >&6; }
16750
else
16751
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16752
$as_echo "no" >&6; }
16753
fi
16754
 
16755
 
16756
fi
16757
 if test -n "$RUBY"; then
16758
  WITH_RUBY_TRUE=
16759
  WITH_RUBY_FALSE='#'
16760
else
16761
  WITH_RUBY_TRUE='#'
16762
  WITH_RUBY_FALSE=
16763
fi
16764
 
16765
 if test -n "$RSPEC"; then
16766
  HAVE_RSPEC_TRUE=
16767
  HAVE_RSPEC_FALSE='#'
16768
else
16769
  HAVE_RSPEC_TRUE='#'
16770
  HAVE_RSPEC_FALSE=
16771
fi
16772
 
16773
 
16774
 
16775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16776
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16777
if test "${ac_cv_c_const+set}" = set; then :
16778
  $as_echo_n "(cached) " >&6
16779
else
16780
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781
/* end confdefs.h.  */
16782
 
16783
int
16784
main ()
16785
{
16786
/* FIXME: Include the comments suggested by Paul. */
16787
#ifndef __cplusplus
16788
  /* Ultrix mips cc rejects this.  */
16789
  typedef int charset[2];
16790
  const charset cs;
16791
  /* SunOS 4.1.1 cc rejects this.  */
16792
  char const *const *pcpcc;
16793
  char **ppc;
16794
  /* NEC SVR4.0.2 mips cc rejects this.  */
16795
  struct point {int x, y;};
16796
  static struct point const zero = {0,0};
16797
  /* AIX XL C 1.02.0.0 rejects this.
16798
     It does not let you subtract one const X* pointer from another in
16799
     an arm of an if-expression whose if-part is not a constant
16800
     expression */
16801
  const char *g = "string";
16802
  pcpcc = &g + (g ? g-g : 0);
16803
  /* HPUX 7.0 cc rejects these. */
16804
  ++pcpcc;
16805
  ppc = (char**) pcpcc;
16806
  pcpcc = (char const *const *) ppc;
16807
  { /* SCO 3.2v4 cc rejects this.  */
16808
    char *t;
16809
    char const *s = 0 ? (char *) 0 : (char const *) 0;
16810
 
16811
    *t++ = 0;
16812
    if (s) return 0;
16813
  }
16814
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16815
    int x[] = {25, 17};
16816
    const int *foo = &x[0];
16817
    ++foo;
16818
  }
16819
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16820
    typedef const int *iptr;
16821
    iptr p = 0;
16822
    ++p;
16823
  }
16824
  { /* AIX XL C 1.02.0.0 rejects this saying
16825
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16826
    struct s { int j; const int *ap[3]; };
16827
    struct s *b; b->j = 5;
16828
  }
16829
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16830
    const int foo = 10;
16831
    if (!foo) return 0;
16832
  }
16833
  return !cs[0] && !zero.x;
16834
#endif
16835
 
16836
  ;
16837
  return 0;
16838
}
16839
_ACEOF
16840
if ac_fn_cxx_try_compile "$LINENO"; then :
16841
  ac_cv_c_const=yes
16842
else
16843
  ac_cv_c_const=no
16844
fi
16845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846
fi
16847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16848
$as_echo "$ac_cv_c_const" >&6; }
16849
if test $ac_cv_c_const = no; then
16850
 
16851
$as_echo "#define const /**/" >>confdefs.h
16852
 
16853
fi
16854
 
16855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16856
$as_echo_n "checking for inline... " >&6; }
16857
if test "${ac_cv_c_inline+set}" = set; then :
16858
  $as_echo_n "(cached) " >&6
16859
else
16860
  ac_cv_c_inline=no
16861
for ac_kw in inline __inline__ __inline; do
16862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863
/* end confdefs.h.  */
16864
#ifndef __cplusplus
16865
typedef int foo_t;
16866
static $ac_kw foo_t static_foo () {return 0; }
16867
$ac_kw foo_t foo () {return 0; }
16868
#endif
16869
 
16870
_ACEOF
16871
if ac_fn_cxx_try_compile "$LINENO"; then :
16872
  ac_cv_c_inline=$ac_kw
16873
fi
16874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875
  test "$ac_cv_c_inline" != no && break
16876
done
16877
 
16878
fi
16879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16880
$as_echo "$ac_cv_c_inline" >&6; }
16881
 
16882
case $ac_cv_c_inline in
16883
  inline | yes) ;;
16884
  *)
16885
    case $ac_cv_c_inline in
16886
      no) ac_val=;;
16887
      *) ac_val=$ac_cv_c_inline;;
16888
    esac
16889
    cat >>confdefs.h <<_ACEOF
16890
#ifndef __cplusplus
16891
#define inline $ac_val
16892
#endif
16893
_ACEOF
16894
    ;;
16895
esac
16896
 
16897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16898
$as_echo_n "checking for working volatile... " >&6; }
16899
if test "${ac_cv_c_volatile+set}" = set; then :
16900
  $as_echo_n "(cached) " >&6
16901
else
16902
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16903
/* end confdefs.h.  */
16904
 
16905
int
16906
main ()
16907
{
16908
 
16909
volatile int x;
16910
int * volatile y = (int *) 0;
16911
return !x && !y;
16912
  ;
16913
  return 0;
16914
}
16915
_ACEOF
16916
if ac_fn_cxx_try_compile "$LINENO"; then :
16917
  ac_cv_c_volatile=yes
16918
else
16919
  ac_cv_c_volatile=no
16920
fi
16921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922
fi
16923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16924
$as_echo "$ac_cv_c_volatile" >&6; }
16925
if test $ac_cv_c_volatile = no; then
16926
 
16927
$as_echo "#define volatile /**/" >>confdefs.h
16928
 
16929
fi
16930
 
16931
 
16932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16933
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16934
if test "${ac_cv_header_stdbool_h+set}" = set; then :
16935
  $as_echo_n "(cached) " >&6
16936
else
16937
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938
/* end confdefs.h.  */
16939
 
16940
#include <stdbool.h>
16941
#ifndef bool
16942
 "error: bool is not defined"
16943
#endif
16944
#ifndef false
16945
 "error: false is not defined"
16946
#endif
16947
#if false
16948
 "error: false is not 0"
16949
#endif
16950
#ifndef true
16951
 "error: true is not defined"
16952
#endif
16953
#if true != 1
16954
 "error: true is not 1"
16955
#endif
16956
#ifndef __bool_true_false_are_defined
16957
 "error: __bool_true_false_are_defined is not defined"
16958
#endif
16959
 
16960
	struct s { _Bool s: 1; _Bool t; } s;
16961
 
16962
	char a[true == 1 ? 1 : -1];
16963
	char b[false == 0 ? 1 : -1];
16964
	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16965
	char d[(bool) 0.5 == true ? 1 : -1];
16966
	bool e = &s;
16967
	char f[(_Bool) 0.0 == false ? 1 : -1];
16968
	char g[true];
16969
	char h[sizeof (_Bool)];
16970
	char i[sizeof s.t];
16971
	enum { j = false, k = true, l = false * true, m = true * 256 };
16972
	/* The following fails for
16973
	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16974
	_Bool n[m];
16975
	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16976
	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16977
#	if defined __xlc__ || defined __GNUC__
16978
	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16979
	    reported by James Lemley on 2005-10-05; see
16980
	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16981
	    This test is not quite right, since xlc is allowed to
16982
	    reject this program, as the initializer for xlcbug is
16983
	    not one of the forms that C requires support for.
16984
	    However, doing the test right would require a runtime
16985
	    test, and that would make cross-compilation harder.
16986
	    Let us hope that IBM fixes the xlc bug, and also adds
16987
	    support for this kind of constant expression.  In the
16988
	    meantime, this test will reject xlc, which is OK, since
16989
	    our stdbool.h substitute should suffice.  We also test
16990
	    this with GCC, where it should work, to detect more
16991
	    quickly whether someone messes up the test in the
16992
	    future.  */
16993
	 char digs[] = "0123456789";
16994
	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16995
#	endif
16996
	/* Catch a bug in an HP-UX C compiler.  See
16997
	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16998
	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16999
	 */
17000
	_Bool q = true;
17001
	_Bool *pq = &q;
17002
 
17003
int
17004
main ()
17005
{
17006
 
17007
	*pq |= q;
17008
	*pq |= ! q;
17009
	/* Refer to every declared value, to avoid compiler optimizations.  */
17010
	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17011
		+ !m + !n + !o + !p + !q + !pq);
17012
 
17013
  ;
17014
  return 0;
17015
}
17016
_ACEOF
17017
if ac_fn_cxx_try_compile "$LINENO"; then :
17018
  ac_cv_header_stdbool_h=yes
17019
else
17020
  ac_cv_header_stdbool_h=no
17021
fi
17022
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023
fi
17024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17025
$as_echo "$ac_cv_header_stdbool_h" >&6; }
17026
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17027
if test "x$ac_cv_type__Bool" = x""yes; then :
17028
 
17029
cat >>confdefs.h <<_ACEOF
17030
#define HAVE__BOOL 1
17031
_ACEOF
17032
 
17033
 
17034
fi
17035
 
17036
if test $ac_cv_header_stdbool_h = yes; then
17037
 
17038
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17039
 
17040
fi
17041
 
17042
 
17043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17044
$as_echo_n "checking for ANSI C header files... " >&6; }
17045
if test "${ac_cv_header_stdc+set}" = set; then :
17046
  $as_echo_n "(cached) " >&6
17047
else
17048
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049
/* end confdefs.h.  */
17050
#include <stdlib.h>
17051
#include <stdarg.h>
17052
#include <string.h>
17053
#include <float.h>
17054
 
17055
int
17056
main ()
17057
{
17058
 
17059
  ;
17060
  return 0;
17061
}
17062
_ACEOF
17063
if ac_fn_cxx_try_compile "$LINENO"; then :
17064
  ac_cv_header_stdc=yes
17065
else
17066
  ac_cv_header_stdc=no
17067
fi
17068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069
 
17070
if test $ac_cv_header_stdc = yes; then
17071
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17072
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073
/* end confdefs.h.  */
17074
#include <string.h>
17075
 
17076
_ACEOF
17077
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17078
  $EGREP "memchr" >/dev/null 2>&1; then :
17079
 
17080
else
17081
  ac_cv_header_stdc=no
17082
fi
17083
rm -f conftest*
17084
 
17085
fi
17086
 
17087
if test $ac_cv_header_stdc = yes; then
17088
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090
/* end confdefs.h.  */
17091
#include <stdlib.h>
17092
 
17093
_ACEOF
17094
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17095
  $EGREP "free" >/dev/null 2>&1; then :
17096
 
17097
else
17098
  ac_cv_header_stdc=no
17099
fi
17100
rm -f conftest*
17101
 
17102
fi
17103
 
17104
if test $ac_cv_header_stdc = yes; then
17105
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17106
  if test "$cross_compiling" = yes; then :
17107
  :
17108
else
17109
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110
/* end confdefs.h.  */
17111
#include <ctype.h>
17112
#include <stdlib.h>
17113
#if ((' ' & 0x0FF) == 0x020)
17114
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17115
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17116
#else
17117
# define ISLOWER(c) \
17118
		   (('a' <= (c) && (c) <= 'i') \
17119
		     || ('j' <= (c) && (c) <= 'r') \
17120
		     || ('s' <= (c) && (c) <= 'z'))
17121
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17122
#endif
17123
 
17124
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17125
int
17126
main ()
17127
{
17128
  int i;
17129
  for (i = 0; i < 256; i++)
17130
    if (XOR (islower (i), ISLOWER (i))
17131
	|| toupper (i) != TOUPPER (i))
17132
      return 2;
17133
  return 0;
17134
}
17135
_ACEOF
17136
if ac_fn_cxx_try_run "$LINENO"; then :
17137
 
17138
else
17139
  ac_cv_header_stdc=no
17140
fi
17141
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17142
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17143
fi
17144
 
17145
fi
17146
fi
17147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17148
$as_echo "$ac_cv_header_stdc" >&6; }
17149
if test $ac_cv_header_stdc = yes; then
17150
 
17151
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17152
 
17153
fi
17154
 
17155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17156
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17157
if test "${ac_cv_header_time+set}" = set; then :
17158
  $as_echo_n "(cached) " >&6
17159
else
17160
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161
/* end confdefs.h.  */
17162
#include <sys/types.h>
17163
#include <sys/time.h>
17164
#include <time.h>
17165
 
17166
int
17167
main ()
17168
{
17169
if ((struct tm *) 0)
17170
return 0;
17171
  ;
17172
  return 0;
17173
}
17174
_ACEOF
17175
if ac_fn_cxx_try_compile "$LINENO"; then :
17176
  ac_cv_header_time=yes
17177
else
17178
  ac_cv_header_time=no
17179
fi
17180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181
fi
17182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17183
$as_echo "$ac_cv_header_time" >&6; }
17184
if test $ac_cv_header_time = yes; then
17185
 
17186
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17187
 
17188
fi
17189
 
17190
for ac_header in arpa/inet.h
17191
do :
17192
  ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
17193
if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
17194
  cat >>confdefs.h <<_ACEOF
17195
#define HAVE_ARPA_INET_H 1
17196
_ACEOF
17197
 
17198
fi
17199
 
17200
done
17201
 
17202
for ac_header in endian.h
17203
do :
17204
  ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
17205
if test "x$ac_cv_header_endian_h" = x""yes; then :
17206
  cat >>confdefs.h <<_ACEOF
17207
#define HAVE_ENDIAN_H 1
17208
_ACEOF
17209
 
17210
fi
17211
 
17212
done
17213
 
17214
for ac_header in fcntl.h
17215
do :
17216
  ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17217
if test "x$ac_cv_header_fcntl_h" = x""yes; then :
17218
  cat >>confdefs.h <<_ACEOF
17219
#define HAVE_FCNTL_H 1
17220
_ACEOF
17221
 
17222
fi
17223
 
17224
done
17225
 
17226
for ac_header in inttypes.h
17227
do :
17228
  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
17229
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
17230
  cat >>confdefs.h <<_ACEOF
17231
#define HAVE_INTTYPES_H 1
17232
_ACEOF
17233
 
17234
fi
17235
 
17236
done
17237
 
17238
for ac_header in limits.h
17239
do :
17240
  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
17241
if test "x$ac_cv_header_limits_h" = x""yes; then :
17242
  cat >>confdefs.h <<_ACEOF
17243
#define HAVE_LIMITS_H 1
17244
_ACEOF
17245
 
17246
fi
17247
 
17248
done
17249
 
17250
for ac_header in netdb.h
17251
do :
17252
  ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
17253
if test "x$ac_cv_header_netdb_h" = x""yes; then :
17254
  cat >>confdefs.h <<_ACEOF
17255
#define HAVE_NETDB_H 1
17256
_ACEOF
17257
 
17258
fi
17259
 
17260
done
17261
 
17262
for ac_header in netinet/in.h
17263
do :
17264
  ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
17265
if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
17266
  cat >>confdefs.h <<_ACEOF
17267
#define HAVE_NETINET_IN_H 1
17268
_ACEOF
17269
 
17270
fi
17271
 
17272
done
17273
 
17274
for ac_header in pthread.h
17275
do :
17276
  ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17277
if test "x$ac_cv_header_pthread_h" = x""yes; then :
17278
  cat >>confdefs.h <<_ACEOF
17279
#define HAVE_PTHREAD_H 1
17280
_ACEOF
17281
 
17282
fi
17283
 
17284
done
17285
 
17286
for ac_header in stddef.h
17287
do :
17288
  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
17289
if test "x$ac_cv_header_stddef_h" = x""yes; then :
17290
  cat >>confdefs.h <<_ACEOF
17291
#define HAVE_STDDEF_H 1
17292
_ACEOF
17293
 
17294
fi
17295
 
17296
done
17297
 
17298
for ac_header in stdlib.h
17299
do :
17300
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17301
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
17302
  cat >>confdefs.h <<_ACEOF
17303
#define HAVE_STDLIB_H 1
17304
_ACEOF
17305
 
17306
fi
17307
 
17308
done
17309
 
17310
for ac_header in sys/socket.h
17311
do :
17312
  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
17313
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
17314
  cat >>confdefs.h <<_ACEOF
17315
#define HAVE_SYS_SOCKET_H 1
17316
_ACEOF
17317
 
17318
fi
17319
 
17320
done
17321
 
17322
for ac_header in sys/time.h
17323
do :
17324
  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
17325
if test "x$ac_cv_header_sys_time_h" = x""yes; then :
17326
  cat >>confdefs.h <<_ACEOF
17327
#define HAVE_SYS_TIME_H 1
17328
_ACEOF
17329
 
17330
fi
17331
 
17332
done
17333
 
17334
for ac_header in unistd.h
17335
do :
17336
  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17337
if test "x$ac_cv_header_unistd_h" = x""yes; then :
17338
  cat >>confdefs.h <<_ACEOF
17339
#define HAVE_UNISTD_H 1
17340
_ACEOF
17341
 
17342
fi
17343
 
17344
done
17345
 
17346
for ac_header in libintl.h
17347
do :
17348
  ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17349
if test "x$ac_cv_header_libintl_h" = x""yes; then :
17350
  cat >>confdefs.h <<_ACEOF
17351
#define HAVE_LIBINTL_H 1
17352
_ACEOF
17353
 
17354
fi
17355
 
17356
done
17357
 
17358
for ac_header in malloc.h
17359
do :
17360
  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
17361
if test "x$ac_cv_header_malloc_h" = x""yes; then :
17362
  cat >>confdefs.h <<_ACEOF
17363
#define HAVE_MALLOC_H 1
17364
_ACEOF
17365
 
17366
fi
17367
 
17368
done
17369
 
17370
 
17371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17372
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17373
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
17374
  $as_echo_n "(cached) " >&6
17375
else
17376
  ac_check_lib_save_LIBS=$LIBS
17377
LIBS="-lpthread  $LIBS"
17378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379
/* end confdefs.h.  */
17380
 
17381
/* Override any GCC internal prototype to avoid an error.
17382
   Use char because int might match the return type of a GCC
17383
   builtin and then its argument prototype would still apply.  */
17384
#ifdef __cplusplus
17385
extern "C"
17386
#endif
17387
char pthread_create ();
17388
int
17389
main ()
17390
{
17391
return pthread_create ();
17392
  ;
17393
  return 0;
17394
}
17395
_ACEOF
17396
if ac_fn_cxx_try_link "$LINENO"; then :
17397
  ac_cv_lib_pthread_pthread_create=yes
17398
else
17399
  ac_cv_lib_pthread_pthread_create=no
17400
fi
17401
rm -f core conftest.err conftest.$ac_objext \
17402
    conftest$ac_exeext conftest.$ac_ext
17403
LIBS=$ac_check_lib_save_LIBS
17404
fi
17405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17406
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17407
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
17408
  cat >>confdefs.h <<_ACEOF
17409
#define HAVE_LIBPTHREAD 1
17410
_ACEOF
17411
 
17412
  LIBS="-lpthread $LIBS"
17413
 
17414
fi
17415
 
17416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17417
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17418
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
17419
  $as_echo_n "(cached) " >&6
17420
else
17421
  ac_check_lib_save_LIBS=$LIBS
17422
LIBS="-lrt  $LIBS"
17423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424
/* end confdefs.h.  */
17425
 
17426
/* Override any GCC internal prototype to avoid an error.
17427
   Use char because int might match the return type of a GCC
17428
   builtin and then its argument prototype would still apply.  */
17429
#ifdef __cplusplus
17430
extern "C"
17431
#endif
17432
char clock_gettime ();
17433
int
17434
main ()
17435
{
17436
return clock_gettime ();
17437
  ;
17438
  return 0;
17439
}
17440
_ACEOF
17441
if ac_fn_cxx_try_link "$LINENO"; then :
17442
  ac_cv_lib_rt_clock_gettime=yes
17443
else
17444
  ac_cv_lib_rt_clock_gettime=no
17445
fi
17446
rm -f core conftest.err conftest.$ac_objext \
17447
    conftest$ac_exeext conftest.$ac_ext
17448
LIBS=$ac_check_lib_save_LIBS
17449
fi
17450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17451
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17452
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
17453
  cat >>confdefs.h <<_ACEOF
17454
#define HAVE_LIBRT 1
17455
_ACEOF
17456
 
17457
  LIBS="-lrt $LIBS"
17458
 
17459
fi
17460
 
17461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
17462
$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
17463
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
17464
  $as_echo_n "(cached) " >&6
17465
else
17466
  ac_check_lib_save_LIBS=$LIBS
17467
LIBS="-lsocket  $LIBS"
17468
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469
/* end confdefs.h.  */
17470
 
17471
/* Override any GCC internal prototype to avoid an error.
17472
   Use char because int might match the return type of a GCC
17473
   builtin and then its argument prototype would still apply.  */
17474
#ifdef __cplusplus
17475
extern "C"
17476
#endif
17477
char setsockopt ();
17478
int
17479
main ()
17480
{
17481
return setsockopt ();
17482
  ;
17483
  return 0;
17484
}
17485
_ACEOF
17486
if ac_fn_cxx_try_link "$LINENO"; then :
17487
  ac_cv_lib_socket_setsockopt=yes
17488
else
17489
  ac_cv_lib_socket_setsockopt=no
17490
fi
17491
rm -f core conftest.err conftest.$ac_objext \
17492
    conftest$ac_exeext conftest.$ac_ext
17493
LIBS=$ac_check_lib_save_LIBS
17494
fi
17495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
17496
$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
17497
if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
17498
  cat >>confdefs.h <<_ACEOF
17499
#define HAVE_LIBSOCKET 1
17500
_ACEOF
17501
 
17502
  LIBS="-lsocket $LIBS"
17503
 
17504
fi
17505
 
17506
 
17507
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
17508
case $ac_cv_c_int16_t in #(
17509
  no|yes) ;; #(
17510
  *)
17511
 
17512
cat >>confdefs.h <<_ACEOF
17513
#define int16_t $ac_cv_c_int16_t
17514
_ACEOF
17515
;;
17516
esac
17517
 
17518
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
17519
case $ac_cv_c_int32_t in #(
17520
  no|yes) ;; #(
17521
  *)
17522
 
17523
cat >>confdefs.h <<_ACEOF
17524
#define int32_t $ac_cv_c_int32_t
17525
_ACEOF
17526
;;
17527
esac
17528
 
17529
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
17530
case $ac_cv_c_int64_t in #(
17531
  no|yes) ;; #(
17532
  *)
17533
 
17534
cat >>confdefs.h <<_ACEOF
17535
#define int64_t $ac_cv_c_int64_t
17536
_ACEOF
17537
;;
17538
esac
17539
 
17540
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
17541
case $ac_cv_c_int8_t in #(
17542
  no|yes) ;; #(
17543
  *)
17544
 
17545
cat >>confdefs.h <<_ACEOF
17546
#define int8_t $ac_cv_c_int8_t
17547
_ACEOF
17548
;;
17549
esac
17550
 
17551
ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17552
if test "x$ac_cv_type_mode_t" = x""yes; then :
17553
 
17554
else
17555
 
17556
cat >>confdefs.h <<_ACEOF
17557
#define mode_t int
17558
_ACEOF
17559
 
17560
fi
17561
 
17562
ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17563
if test "x$ac_cv_type_off_t" = x""yes; then :
17564
 
17565
else
17566
 
17567
cat >>confdefs.h <<_ACEOF
17568
#define off_t long int
17569
_ACEOF
17570
 
17571
fi
17572
 
17573
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17574
if test "x$ac_cv_type_size_t" = x""yes; then :
17575
 
17576
else
17577
 
17578
cat >>confdefs.h <<_ACEOF
17579
#define size_t unsigned int
17580
_ACEOF
17581
 
17582
fi
17583
 
17584
ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17585
if test "x$ac_cv_type_ssize_t" = x""yes; then :
17586
 
17587
else
17588
 
17589
cat >>confdefs.h <<_ACEOF
17590
#define ssize_t int
17591
_ACEOF
17592
 
17593
fi
17594
 
17595
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17596
case $ac_cv_c_uint16_t in #(
17597
  no|yes) ;; #(
17598
  *)
17599
 
17600
 
17601
cat >>confdefs.h <<_ACEOF
17602
#define uint16_t $ac_cv_c_uint16_t
17603
_ACEOF
17604
;;
17605
  esac
17606
 
17607
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17608
case $ac_cv_c_uint32_t in #(
17609
  no|yes) ;; #(
17610
  *)
17611
 
17612
$as_echo "#define _UINT32_T 1" >>confdefs.h
17613
 
17614
 
17615
cat >>confdefs.h <<_ACEOF
17616
#define uint32_t $ac_cv_c_uint32_t
17617
_ACEOF
17618
;;
17619
  esac
17620
 
17621
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17622
case $ac_cv_c_uint64_t in #(
17623
  no|yes) ;; #(
17624
  *)
17625
 
17626
$as_echo "#define _UINT64_T 1" >>confdefs.h
17627
 
17628
 
17629
cat >>confdefs.h <<_ACEOF
17630
#define uint64_t $ac_cv_c_uint64_t
17631
_ACEOF
17632
;;
17633
  esac
17634
 
17635
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17636
case $ac_cv_c_uint8_t in #(
17637
  no|yes) ;; #(
17638
  *)
17639
 
17640
$as_echo "#define _UINT8_T 1" >>confdefs.h
17641
 
17642
 
17643
cat >>confdefs.h <<_ACEOF
17644
#define uint8_t $ac_cv_c_uint8_t
17645
_ACEOF
17646
;;
17647
  esac
17648
 
17649
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17650
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
17651
 
17652
cat >>confdefs.h <<_ACEOF
17653
#define HAVE_PTRDIFF_T 1
17654
_ACEOF
17655
 
17656
 
17657
else
17658
  exit 1
17659
fi
17660
 
17661
 
17662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17663
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17664
if test "${ac_cv_struct_tm+set}" = set; then :
17665
  $as_echo_n "(cached) " >&6
17666
else
17667
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668
/* end confdefs.h.  */
17669
#include <sys/types.h>
17670
#include <time.h>
17671
 
17672
int
17673
main ()
17674
{
17675
struct tm tm;
17676
				     int *p = &tm.tm_sec;
17677
				     return !p;
17678
  ;
17679
  return 0;
17680
}
17681
_ACEOF
17682
if ac_fn_cxx_try_compile "$LINENO"; then :
17683
  ac_cv_struct_tm=time.h
17684
else
17685
  ac_cv_struct_tm=sys/time.h
17686
fi
17687
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688
fi
17689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17690
$as_echo "$ac_cv_struct_tm" >&6; }
17691
if test $ac_cv_struct_tm = sys/time.h; then
17692
 
17693
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17694
 
17695
fi
17696
 
17697
 
17698
ac_fn_cxx_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" "
17699
  #include <sys/types.h>
17700
  #include <sys/socket.h>
17701
  #include <netdb.h>
17702
 
17703
"
17704
if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then :
17705
 
17706
else
17707
 
17708
$as_echo "#define AI_ADDRCONFIG 0" >>confdefs.h
17709
 
17710
fi
17711
 
17712
 
17713
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17714
# for constant arguments.  Useless!
17715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17716
$as_echo_n "checking for working alloca.h... " >&6; }
17717
if test "${ac_cv_working_alloca_h+set}" = set; then :
17718
  $as_echo_n "(cached) " >&6
17719
else
17720
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721
/* end confdefs.h.  */
17722
#include <alloca.h>
17723
int
17724
main ()
17725
{
17726
char *p = (char *) alloca (2 * sizeof (int));
17727
			  if (p) return 0;
17728
  ;
17729
  return 0;
17730
}
17731
_ACEOF
17732
if ac_fn_cxx_try_link "$LINENO"; then :
17733
  ac_cv_working_alloca_h=yes
17734
else
17735
  ac_cv_working_alloca_h=no
17736
fi
17737
rm -f core conftest.err conftest.$ac_objext \
17738
    conftest$ac_exeext conftest.$ac_ext
17739
fi
17740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17741
$as_echo "$ac_cv_working_alloca_h" >&6; }
17742
if test $ac_cv_working_alloca_h = yes; then
17743
 
17744
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17745
 
17746
fi
17747
 
17748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17749
$as_echo_n "checking for alloca... " >&6; }
17750
if test "${ac_cv_func_alloca_works+set}" = set; then :
17751
  $as_echo_n "(cached) " >&6
17752
else
17753
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754
/* end confdefs.h.  */
17755
#ifdef __GNUC__
17756
# define alloca __builtin_alloca
17757
#else
17758
# ifdef _MSC_VER
17759
#  include <malloc.h>
17760
#  define alloca _alloca
17761
# else
17762
#  ifdef HAVE_ALLOCA_H
17763
#   include <alloca.h>
17764
#  else
17765
#   ifdef _AIX
17766
 #pragma alloca
17767
#   else
17768
#    ifndef alloca /* predefined by HP cc +Olibcalls */
17769
char *alloca ();
17770
#    endif
17771
#   endif
17772
#  endif
17773
# endif
17774
#endif
17775
 
17776
int
17777
main ()
17778
{
17779
char *p = (char *) alloca (1);
17780
				    if (p) return 0;
17781
  ;
17782
  return 0;
17783
}
17784
_ACEOF
17785
if ac_fn_cxx_try_link "$LINENO"; then :
17786
  ac_cv_func_alloca_works=yes
17787
else
17788
  ac_cv_func_alloca_works=no
17789
fi
17790
rm -f core conftest.err conftest.$ac_objext \
17791
    conftest$ac_exeext conftest.$ac_ext
17792
fi
17793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17794
$as_echo "$ac_cv_func_alloca_works" >&6; }
17795
 
17796
if test $ac_cv_func_alloca_works = yes; then
17797
 
17798
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17799
 
17800
else
17801
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17802
# that cause trouble.  Some versions do not even contain alloca or
17803
# contain a buggy version.  If you still want to use their alloca,
17804
# use ar to extract alloca.o from them instead of compiling alloca.c.
17805
 
17806
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17807
 
17808
$as_echo "#define C_ALLOCA 1" >>confdefs.h
17809
 
17810
 
17811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17812
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17813
if test "${ac_cv_os_cray+set}" = set; then :
17814
  $as_echo_n "(cached) " >&6
17815
else
17816
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817
/* end confdefs.h.  */
17818
#if defined CRAY && ! defined CRAY2
17819
webecray
17820
#else
17821
wenotbecray
17822
#endif
17823
 
17824
_ACEOF
17825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17826
  $EGREP "webecray" >/dev/null 2>&1; then :
17827
  ac_cv_os_cray=yes
17828
else
17829
  ac_cv_os_cray=no
17830
fi
17831
rm -f conftest*
17832
 
17833
fi
17834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17835
$as_echo "$ac_cv_os_cray" >&6; }
17836
if test $ac_cv_os_cray = yes; then
17837
  for ac_func in _getb67 GETB67 getb67; do
17838
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17839
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
17840
eval as_val=\$$as_ac_var
17841
   if test "x$as_val" = x""yes; then :
17842
 
17843
cat >>confdefs.h <<_ACEOF
17844
#define CRAY_STACKSEG_END $ac_func
17845
_ACEOF
17846
 
17847
    break
17848
fi
17849
 
17850
  done
17851
fi
17852
 
17853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17854
$as_echo_n "checking stack direction for C alloca... " >&6; }
17855
if test "${ac_cv_c_stack_direction+set}" = set; then :
17856
  $as_echo_n "(cached) " >&6
17857
else
17858
  if test "$cross_compiling" = yes; then :
17859
  ac_cv_c_stack_direction=0
17860
else
17861
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862
/* end confdefs.h.  */
17863
$ac_includes_default
17864
int
17865
find_stack_direction ()
17866
{
17867
  static char *addr = 0;
17868
  auto char dummy;
17869
  if (addr == 0)
17870
    {
17871
      addr = &dummy;
17872
      return find_stack_direction ();
17873
    }
17874
  else
17875
    return (&dummy > addr) ? 1 : -1;
17876
}
17877
 
17878
int
17879
main ()
17880
{
17881
  return find_stack_direction () < 0;
17882
}
17883
_ACEOF
17884
if ac_fn_cxx_try_run "$LINENO"; then :
17885
  ac_cv_c_stack_direction=1
17886
else
17887
  ac_cv_c_stack_direction=-1
17888
fi
17889
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17890
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17891
fi
17892
 
17893
fi
17894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17895
$as_echo "$ac_cv_c_stack_direction" >&6; }
17896
cat >>confdefs.h <<_ACEOF
17897
#define STACK_DIRECTION $ac_cv_c_stack_direction
17898
_ACEOF
17899
 
17900
 
17901
fi
17902
 
17903
for ac_header in stdlib.h
17904
do :
17905
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17906
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
17907
  cat >>confdefs.h <<_ACEOF
17908
#define HAVE_STDLIB_H 1
17909
_ACEOF
17910
 
17911
fi
17912
 
17913
done
17914
 
17915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17916
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17917
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
17918
  $as_echo_n "(cached) " >&6
17919
else
17920
  if test "$cross_compiling" = yes; then :
17921
  ac_cv_func_malloc_0_nonnull=no
17922
else
17923
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924
/* end confdefs.h.  */
17925
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
17926
# include <stdlib.h>
17927
#else
17928
char *malloc ();
17929
#endif
17930
 
17931
int
17932
main ()
17933
{
17934
return ! malloc (0);
17935
  ;
17936
  return 0;
17937
}
17938
_ACEOF
17939
if ac_fn_cxx_try_run "$LINENO"; then :
17940
  ac_cv_func_malloc_0_nonnull=yes
17941
else
17942
  ac_cv_func_malloc_0_nonnull=no
17943
fi
17944
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17945
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17946
fi
17947
 
17948
fi
17949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17950
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17951
if test $ac_cv_func_malloc_0_nonnull = yes; then :
17952
 
17953
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
17954
 
17955
else
17956
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
17957
 
17958
   case " $LIBOBJS " in
17959
  *" malloc.$ac_objext "* ) ;;
17960
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
17961
 ;;
17962
esac
17963
 
17964
 
17965
$as_echo "#define malloc rpl_malloc" >>confdefs.h
17966
 
17967
fi
17968
 
17969
 
17970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
17971
$as_echo_n "checking for working memcmp... " >&6; }
17972
if test "${ac_cv_func_memcmp_working+set}" = set; then :
17973
  $as_echo_n "(cached) " >&6
17974
else
17975
  if test "$cross_compiling" = yes; then :
17976
  ac_cv_func_memcmp_working=no
17977
else
17978
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979
/* end confdefs.h.  */
17980
$ac_includes_default
17981
int
17982
main ()
17983
{
17984
 
17985
  /* Some versions of memcmp are not 8-bit clean.  */
17986
  char c0 = '\100', c1 = '\200', c2 = '\201';
17987
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17988
    return 1;
17989
 
17990
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17991
     or more and with at least one buffer not starting on a 4-byte boundary.
17992
     William Lewis provided this test program.   */
17993
  {
17994
    char foo[21];
17995
    char bar[21];
17996
    int i;
17997
    for (i = 0; i < 4; i++)
17998
      {
17999
	char *a = foo + i;
18000
	char *b = bar + i;
18001
	strcpy (a, "--------01111111");
18002
	strcpy (b, "--------10000000");
18003
	if (memcmp (a, b, 16) >= 0)
18004
	  return 1;
18005
      }
18006
    return 0;
18007
  }
18008
 
18009
  ;
18010
  return 0;
18011
}
18012
_ACEOF
18013
if ac_fn_cxx_try_run "$LINENO"; then :
18014
  ac_cv_func_memcmp_working=yes
18015
else
18016
  ac_cv_func_memcmp_working=no
18017
fi
18018
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18019
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18020
fi
18021
 
18022
fi
18023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18024
$as_echo "$ac_cv_func_memcmp_working" >&6; }
18025
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18026
  *" memcmp.$ac_objext "* ) ;;
18027
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18028
 ;;
18029
esac
18030
 
18031
 
18032
for ac_header in stdlib.h
18033
do :
18034
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18035
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
18036
  cat >>confdefs.h <<_ACEOF
18037
#define HAVE_STDLIB_H 1
18038
_ACEOF
18039
 
18040
fi
18041
 
18042
done
18043
 
18044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
18045
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
18046
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
18047
  $as_echo_n "(cached) " >&6
18048
else
18049
  if test "$cross_compiling" = yes; then :
18050
  ac_cv_func_realloc_0_nonnull=no
18051
else
18052
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053
/* end confdefs.h.  */
18054
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
18055
# include <stdlib.h>
18056
#else
18057
char *realloc ();
18058
#endif
18059
 
18060
int
18061
main ()
18062
{
18063
return ! realloc (0, 0);
18064
  ;
18065
  return 0;
18066
}
18067
_ACEOF
18068
if ac_fn_cxx_try_run "$LINENO"; then :
18069
  ac_cv_func_realloc_0_nonnull=yes
18070
else
18071
  ac_cv_func_realloc_0_nonnull=no
18072
fi
18073
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18074
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18075
fi
18076
 
18077
fi
18078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
18079
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
18080
if test $ac_cv_func_realloc_0_nonnull = yes; then :
18081
 
18082
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
18083
 
18084
else
18085
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
18086
 
18087
   case " $LIBOBJS " in
18088
  *" realloc.$ac_objext "* ) ;;
18089
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
18090
 ;;
18091
esac
18092
 
18093
 
18094
$as_echo "#define realloc rpl_realloc" >>confdefs.h
18095
 
18096
fi
18097
 
18098
 
18099
for ac_header in sys/select.h sys/socket.h
18100
do :
18101
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18102
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18103
eval as_val=\$$as_ac_Header
18104
   if test "x$as_val" = x""yes; then :
18105
  cat >>confdefs.h <<_ACEOF
18106
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18107
_ACEOF
18108
 
18109
fi
18110
 
18111
done
18112
 
18113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18114
$as_echo_n "checking types of arguments for select... " >&6; }
18115
if test "${ac_cv_func_select_args+set}" = set; then :
18116
  $as_echo_n "(cached) " >&6
18117
else
18118
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18119
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18120
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18121
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122
/* end confdefs.h.  */
18123
$ac_includes_default
18124
#ifdef HAVE_SYS_SELECT_H
18125
# include <sys/select.h>
18126
#endif
18127
#ifdef HAVE_SYS_SOCKET_H
18128
# include <sys/socket.h>
18129
#endif
18130
 
18131
int
18132
main ()
18133
{
18134
extern int select ($ac_arg1,
18135
					    $ac_arg234, $ac_arg234, $ac_arg234,
18136
					    $ac_arg5);
18137
  ;
18138
  return 0;
18139
}
18140
_ACEOF
18141
if ac_fn_cxx_try_compile "$LINENO"; then :
18142
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
18143
fi
18144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145
  done
18146
 done
18147
done
18148
# Provide a safe default value.
18149
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
18150
 
18151
fi
18152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
18153
$as_echo "$ac_cv_func_select_args" >&6; }
18154
ac_save_IFS=$IFS; IFS=','
18155
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
18156
IFS=$ac_save_IFS
18157
shift
18158
 
18159
cat >>confdefs.h <<_ACEOF
18160
#define SELECT_TYPE_ARG1 $1
18161
_ACEOF
18162
 
18163
 
18164
cat >>confdefs.h <<_ACEOF
18165
#define SELECT_TYPE_ARG234 ($2)
18166
_ACEOF
18167
 
18168
 
18169
cat >>confdefs.h <<_ACEOF
18170
#define SELECT_TYPE_ARG5 ($3)
18171
_ACEOF
18172
 
18173
rm -f conftest*
18174
 
18175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
18176
$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
18177
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18178
  $as_echo_n "(cached) " >&6
18179
else
18180
  rm -f conftest.sym conftest.file
18181
echo >conftest.file
18182
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18183
  if test "$cross_compiling" = yes; then :
18184
  ac_cv_func_lstat_dereferences_slashed_symlink=no
18185
else
18186
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187
/* end confdefs.h.  */
18188
$ac_includes_default
18189
int
18190
main ()
18191
{
18192
struct stat sbuf;
18193
     /* Linux will dereference the symlink and fail.
18194
	That is better in the sense that it means we will not
18195
	have to compile and use the lstat wrapper.  */
18196
     return lstat ("conftest.sym/", &sbuf) == 0;
18197
  ;
18198
  return 0;
18199
}
18200
_ACEOF
18201
if ac_fn_cxx_try_run "$LINENO"; then :
18202
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
18203
else
18204
  ac_cv_func_lstat_dereferences_slashed_symlink=no
18205
fi
18206
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18207
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18208
fi
18209
 
18210
else
18211
  # If the `ln -s' command failed, then we probably don't even
18212
  # have an lstat function.
18213
  ac_cv_func_lstat_dereferences_slashed_symlink=no
18214
fi
18215
rm -f conftest.sym conftest.file
18216
 
18217
fi
18218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18219
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18220
 
18221
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18222
 
18223
cat >>confdefs.h <<_ACEOF
18224
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18225
_ACEOF
18226
 
18227
 
18228
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
18229
  case " $LIBOBJS " in
18230
  *" lstat.$ac_objext "* ) ;;
18231
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18232
 ;;
18233
esac
18234
 
18235
fi
18236
 
18237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
18238
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
18239
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
18240
  $as_echo_n "(cached) " >&6
18241
else
18242
  if test "$cross_compiling" = yes; then :
18243
  ac_cv_func_stat_empty_string_bug=yes
18244
else
18245
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246
/* end confdefs.h.  */
18247
$ac_includes_default
18248
int
18249
main ()
18250
{
18251
struct stat sbuf;
18252
  return stat ("", &sbuf) == 0;
18253
  ;
18254
  return 0;
18255
}
18256
_ACEOF
18257
if ac_fn_cxx_try_run "$LINENO"; then :
18258
  ac_cv_func_stat_empty_string_bug=no
18259
else
18260
  ac_cv_func_stat_empty_string_bug=yes
18261
fi
18262
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18263
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18264
fi
18265
 
18266
fi
18267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
18268
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
18269
if test $ac_cv_func_stat_empty_string_bug = yes; then
18270
  case " $LIBOBJS " in
18271
  *" stat.$ac_objext "* ) ;;
18272
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
18273
 ;;
18274
esac
18275
 
18276
 
18277
cat >>confdefs.h <<_ACEOF
18278
#define HAVE_STAT_EMPTY_STRING_BUG 1
18279
_ACEOF
18280
 
18281
fi
18282
 
18283
ac_fn_cxx_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
18284
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
18285
  ac_have_decl=1
18286
else
18287
  ac_have_decl=0
18288
fi
18289
 
18290
cat >>confdefs.h <<_ACEOF
18291
#define HAVE_DECL_STRERROR_R $ac_have_decl
18292
_ACEOF
18293
 
18294
for ac_func in strerror_r
18295
do :
18296
  ac_fn_cxx_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18297
if test "x$ac_cv_func_strerror_r" = x""yes; then :
18298
  cat >>confdefs.h <<_ACEOF
18299
#define HAVE_STRERROR_R 1
18300
_ACEOF
18301
 
18302
fi
18303
done
18304
 
18305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
18306
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
18307
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
18308
  $as_echo_n "(cached) " >&6
18309
else
18310
 
18311
    ac_cv_func_strerror_r_char_p=no
18312
    if test $ac_cv_have_decl_strerror_r = yes; then
18313
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314
/* end confdefs.h.  */
18315
$ac_includes_default
18316
int
18317
main ()
18318
{
18319
 
18320
	  char buf[100];
18321
	  char x = *strerror_r (0, buf, sizeof buf);
18322
	  char *p = strerror_r (0, buf, sizeof buf);
18323
	  return !p || x;
18324
 
18325
  ;
18326
  return 0;
18327
}
18328
_ACEOF
18329
if ac_fn_cxx_try_compile "$LINENO"; then :
18330
  ac_cv_func_strerror_r_char_p=yes
18331
fi
18332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333
    else
18334
      # strerror_r is not declared.  Choose between
18335
      # systems that have relatively inaccessible declarations for the
18336
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
18337
      # former has a strerror_r that returns char*, while the latter
18338
      # has a strerror_r that returns `int'.
18339
      # This test should segfault on the DEC system.
18340
      if test "$cross_compiling" = yes; then :
18341
  :
18342
else
18343
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344
/* end confdefs.h.  */
18345
$ac_includes_default
18346
	extern char *strerror_r ();
18347
int
18348
main ()
18349
{
18350
char buf[100];
18351
	  char x = *strerror_r (0, buf, sizeof buf);
18352
	  return ! isalpha (x);
18353
  ;
18354
  return 0;
18355
}
18356
_ACEOF
18357
if ac_fn_cxx_try_run "$LINENO"; then :
18358
  ac_cv_func_strerror_r_char_p=yes
18359
fi
18360
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18361
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18362
fi
18363
 
18364
    fi
18365
 
18366
fi
18367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
18368
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
18369
if test $ac_cv_func_strerror_r_char_p = yes; then
18370
 
18371
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
18372
 
18373
fi
18374
 
18375
for ac_func in strftime
18376
do :
18377
  ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
18378
if test "x$ac_cv_func_strftime" = x""yes; then :
18379
  cat >>confdefs.h <<_ACEOF
18380
#define HAVE_STRFTIME 1
18381
_ACEOF
18382
 
18383
else
18384
  # strftime is in -lintl on SCO UNIX.
18385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
18386
$as_echo_n "checking for strftime in -lintl... " >&6; }
18387
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
18388
  $as_echo_n "(cached) " >&6
18389
else
18390
  ac_check_lib_save_LIBS=$LIBS
18391
LIBS="-lintl  $LIBS"
18392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393
/* end confdefs.h.  */
18394
 
18395
/* Override any GCC internal prototype to avoid an error.
18396
   Use char because int might match the return type of a GCC
18397
   builtin and then its argument prototype would still apply.  */
18398
#ifdef __cplusplus
18399
extern "C"
18400
#endif
18401
char strftime ();
18402
int
18403
main ()
18404
{
18405
return strftime ();
18406
  ;
18407
  return 0;
18408
}
18409
_ACEOF
18410
if ac_fn_cxx_try_link "$LINENO"; then :
18411
  ac_cv_lib_intl_strftime=yes
18412
else
18413
  ac_cv_lib_intl_strftime=no
18414
fi
18415
rm -f core conftest.err conftest.$ac_objext \
18416
    conftest$ac_exeext conftest.$ac_ext
18417
LIBS=$ac_check_lib_save_LIBS
18418
fi
18419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
18420
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
18421
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
18422
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
18423
 
18424
LIBS="-lintl $LIBS"
18425
fi
18426
 
18427
fi
18428
done
18429
 
18430
for ac_func in vprintf
18431
do :
18432
  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
18433
if test "x$ac_cv_func_vprintf" = x""yes; then :
18434
  cat >>confdefs.h <<_ACEOF
18435
#define HAVE_VPRINTF 1
18436
_ACEOF
18437
 
18438
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18439
if test "x$ac_cv_func__doprnt" = x""yes; then :
18440
 
18441
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
18442
 
18443
fi
18444
 
18445
fi
18446
done
18447
 
18448
 
18449
for ac_func in strtoul
18450
do :
18451
  ac_fn_cxx_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
18452
if test "x$ac_cv_func_strtoul" = x""yes; then :
18453
  cat >>confdefs.h <<_ACEOF
18454
#define HAVE_STRTOUL 1
18455
_ACEOF
18456
 
18457
fi
18458
done
18459
 
18460
for ac_func in bzero
18461
do :
18462
  ac_fn_cxx_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
18463
if test "x$ac_cv_func_bzero" = x""yes; then :
18464
  cat >>confdefs.h <<_ACEOF
18465
#define HAVE_BZERO 1
18466
_ACEOF
18467
 
18468
fi
18469
done
18470
 
18471
for ac_func in ftruncate
18472
do :
18473
  ac_fn_cxx_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18474
if test "x$ac_cv_func_ftruncate" = x""yes; then :
18475
  cat >>confdefs.h <<_ACEOF
18476
#define HAVE_FTRUNCATE 1
18477
_ACEOF
18478
 
18479
fi
18480
done
18481
 
18482
for ac_func in gethostbyname
18483
do :
18484
  ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18485
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
18486
  cat >>confdefs.h <<_ACEOF
18487
#define HAVE_GETHOSTBYNAME 1
18488
_ACEOF
18489
 
18490
fi
18491
done
18492
 
18493
for ac_func in gettimeofday
18494
do :
18495
  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18496
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
18497
  cat >>confdefs.h <<_ACEOF
18498
#define HAVE_GETTIMEOFDAY 1
18499
_ACEOF
18500
 
18501
fi
18502
done
18503
 
18504
for ac_func in memmove
18505
do :
18506
  ac_fn_cxx_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18507
if test "x$ac_cv_func_memmove" = x""yes; then :
18508
  cat >>confdefs.h <<_ACEOF
18509
#define HAVE_MEMMOVE 1
18510
_ACEOF
18511
 
18512
fi
18513
done
18514
 
18515
for ac_func in memset
18516
do :
18517
  ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
18518
if test "x$ac_cv_func_memset" = x""yes; then :
18519
  cat >>confdefs.h <<_ACEOF
18520
#define HAVE_MEMSET 1
18521
_ACEOF
18522
 
18523
fi
18524
done
18525
 
18526
for ac_func in mkdir
18527
do :
18528
  ac_fn_cxx_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
18529
if test "x$ac_cv_func_mkdir" = x""yes; then :
18530
  cat >>confdefs.h <<_ACEOF
18531
#define HAVE_MKDIR 1
18532
_ACEOF
18533
 
18534
fi
18535
done
18536
 
18537
for ac_func in realpath
18538
do :
18539
  ac_fn_cxx_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
18540
if test "x$ac_cv_func_realpath" = x""yes; then :
18541
  cat >>confdefs.h <<_ACEOF
18542
#define HAVE_REALPATH 1
18543
_ACEOF
18544
 
18545
fi
18546
done
18547
 
18548
for ac_func in select
18549
do :
18550
  ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
18551
if test "x$ac_cv_func_select" = x""yes; then :
18552
  cat >>confdefs.h <<_ACEOF
18553
#define HAVE_SELECT 1
18554
_ACEOF
18555
 
18556
fi
18557
done
18558
 
18559
for ac_func in socket
18560
do :
18561
  ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
18562
if test "x$ac_cv_func_socket" = x""yes; then :
18563
  cat >>confdefs.h <<_ACEOF
18564
#define HAVE_SOCKET 1
18565
_ACEOF
18566
 
18567
fi
18568
done
18569
 
18570
for ac_func in strchr
18571
do :
18572
  ac_fn_cxx_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
18573
if test "x$ac_cv_func_strchr" = x""yes; then :
18574
  cat >>confdefs.h <<_ACEOF
18575
#define HAVE_STRCHR 1
18576
_ACEOF
18577
 
18578
fi
18579
done
18580
 
18581
for ac_func in strdup
18582
do :
18583
  ac_fn_cxx_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
18584
if test "x$ac_cv_func_strdup" = x""yes; then :
18585
  cat >>confdefs.h <<_ACEOF
18586
#define HAVE_STRDUP 1
18587
_ACEOF
18588
 
18589
fi
18590
done
18591
 
18592
for ac_func in strerror
18593
do :
18594
  ac_fn_cxx_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18595
if test "x$ac_cv_func_strerror" = x""yes; then :
18596
  cat >>confdefs.h <<_ACEOF
18597
#define HAVE_STRERROR 1
18598
_ACEOF
18599
 
18600
fi
18601
done
18602
 
18603
for ac_func in strstr
18604
do :
18605
  ac_fn_cxx_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
18606
if test "x$ac_cv_func_strstr" = x""yes; then :
18607
  cat >>confdefs.h <<_ACEOF
18608
#define HAVE_STRSTR 1
18609
_ACEOF
18610
 
18611
fi
18612
done
18613
 
18614
for ac_func in strtol
18615
do :
18616
  ac_fn_cxx_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
18617
if test "x$ac_cv_func_strtol" = x""yes; then :
18618
  cat >>confdefs.h <<_ACEOF
18619
#define HAVE_STRTOL 1
18620
_ACEOF
18621
 
18622
fi
18623
done
18624
 
18625
for ac_func in sqrt
18626
do :
18627
  ac_fn_cxx_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
18628
if test "x$ac_cv_func_sqrt" = x""yes; then :
18629
  cat >>confdefs.h <<_ACEOF
18630
#define HAVE_SQRT 1
18631
_ACEOF
18632
 
18633
fi
18634
done
18635
 
18636
for ac_func in clock_gettime
18637
do :
18638
  ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
18639
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
18640
  cat >>confdefs.h <<_ACEOF
18641
#define HAVE_CLOCK_GETTIME 1
18642
_ACEOF
18643
 
18644
fi
18645
done
18646
 
18647
for ac_func in sched_get_priority_min
18648
do :
18649
  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_min" "ac_cv_func_sched_get_priority_min"
18650
if test "x$ac_cv_func_sched_get_priority_min" = x""yes; then :
18651
  cat >>confdefs.h <<_ACEOF
18652
#define HAVE_SCHED_GET_PRIORITY_MIN 1
18653
_ACEOF
18654
 
18655
fi
18656
done
18657
 
18658
for ac_func in sched_get_priority_max
18659
do :
18660
  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
18661
if test "x$ac_cv_func_sched_get_priority_max" = x""yes; then :
18662
  cat >>confdefs.h <<_ACEOF
18663
#define HAVE_SCHED_GET_PRIORITY_MAX 1
18664
_ACEOF
18665
 
18666
fi
18667
done
18668
 
18669
 
18670
 
18671
 
18672
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking the behavior of a signed right shift" >&5
18673
$as_echo_n "checking the behavior of a signed right shift... " >&6; }
18674
 
18675
          success_arithmetic=no
18676
          if test "$cross_compiling" = yes; then :
18677
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18678
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18679
as_fn_error "cannot run test program while cross compiling
18680
See \`config.log' for more details." "$LINENO" 5; }
18681
else
18682
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683
/* end confdefs.h.  */
18684
 
18685
int
18686
main ()
18687
{
18688
 
18689
          return
18690
            /* 0xffffffff */
18691
            -1 >>  1 != -1 ||
18692
            -1 >>  2 != -1 ||
18693
            -1 >>  3 != -1 ||
18694
            -1 >>  4 != -1 ||
18695
            -1 >>  8 != -1 ||
18696
            -1 >> 16 != -1 ||
18697
            -1 >> 24 != -1 ||
18698
            -1 >> 31 != -1 ||
18699
            /* 0x80000000 */
18700
            (-2147483647 - 1) >>  1 != -1073741824 ||
18701
            (-2147483647 - 1) >>  2 != -536870912  ||
18702
            (-2147483647 - 1) >>  3 != -268435456  ||
18703
            (-2147483647 - 1) >>  4 != -134217728  ||
18704
            (-2147483647 - 1) >>  8 != -8388608    ||
18705
            (-2147483647 - 1) >> 16 != -32768      ||
18706
            (-2147483647 - 1) >> 24 != -128        ||
18707
            (-2147483647 - 1) >> 31 != -1          ||
18708
            /* 0x90800000 */
18709
            -1870659584 >>  1 != -935329792 ||
18710
            -1870659584 >>  2 != -467664896 ||
18711
            -1870659584 >>  3 != -233832448 ||
18712
            -1870659584 >>  4 != -116916224 ||
18713
            -1870659584 >>  8 != -7307264   ||
18714
            -1870659584 >> 16 != -28544     ||
18715
            -1870659584 >> 24 != -112       ||
18716
            -1870659584 >> 31 != -1         ||
18717
            0;
18718
 
18719
  ;
18720
  return 0;
18721
}
18722
_ACEOF
18723
if ac_fn_cxx_try_run "$LINENO"; then :
18724
 
18725
          success_arithmetic=yes
18726
 
18727
fi
18728
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18729
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18730
fi
18731
 
18732
 
18733
 
18734
          success_logical=no
18735
          if test "$cross_compiling" = yes; then :
18736
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18737
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18738
as_fn_error "cannot run test program while cross compiling
18739
See \`config.log' for more details." "$LINENO" 5; }
18740
else
18741
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742
/* end confdefs.h.  */
18743
 
18744
int
18745
main ()
18746
{
18747
 
18748
          return
18749
            /* 0xffffffff */
18750
            -1 >>  1 != (signed)((unsigned)-1 >>  1) ||
18751
            -1 >>  2 != (signed)((unsigned)-1 >>  2) ||
18752
            -1 >>  3 != (signed)((unsigned)-1 >>  3) ||
18753
            -1 >>  4 != (signed)((unsigned)-1 >>  4) ||
18754
            -1 >>  8 != (signed)((unsigned)-1 >>  8) ||
18755
            -1 >> 16 != (signed)((unsigned)-1 >> 16) ||
18756
            -1 >> 24 != (signed)((unsigned)-1 >> 24) ||
18757
            -1 >> 31 != (signed)((unsigned)-1 >> 31) ||
18758
            /* 0x80000000 */
18759
            (-2147483647 - 1) >>  1 != (signed)((unsigned)(-2147483647 - 1) >>  1) ||
18760
            (-2147483647 - 1) >>  2 != (signed)((unsigned)(-2147483647 - 1) >>  2) ||
18761
            (-2147483647 - 1) >>  3 != (signed)((unsigned)(-2147483647 - 1) >>  3) ||
18762
            (-2147483647 - 1) >>  4 != (signed)((unsigned)(-2147483647 - 1) >>  4) ||
18763
            (-2147483647 - 1) >>  8 != (signed)((unsigned)(-2147483647 - 1) >>  8) ||
18764
            (-2147483647 - 1) >> 16 != (signed)((unsigned)(-2147483647 - 1) >> 16) ||
18765
            (-2147483647 - 1) >> 24 != (signed)((unsigned)(-2147483647 - 1) >> 24) ||
18766
            (-2147483647 - 1) >> 31 != (signed)((unsigned)(-2147483647 - 1) >> 31) ||
18767
            /* 0x90800000 */
18768
            -1870659584 >>  1 != (signed)((unsigned)-1870659584 >>  1) ||
18769
            -1870659584 >>  2 != (signed)((unsigned)-1870659584 >>  2) ||
18770
            -1870659584 >>  3 != (signed)((unsigned)-1870659584 >>  3) ||
18771
            -1870659584 >>  4 != (signed)((unsigned)-1870659584 >>  4) ||
18772
            -1870659584 >>  8 != (signed)((unsigned)-1870659584 >>  8) ||
18773
            -1870659584 >> 16 != (signed)((unsigned)-1870659584 >> 16) ||
18774
            -1870659584 >> 24 != (signed)((unsigned)-1870659584 >> 24) ||
18775
            -1870659584 >> 31 != (signed)((unsigned)-1870659584 >> 31) ||
18776
            0;
18777
 
18778
  ;
18779
  return 0;
18780
}
18781
_ACEOF
18782
if ac_fn_cxx_try_run "$LINENO"; then :
18783
 
18784
          success_logical=yes
18785
 
18786
fi
18787
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18788
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18789
fi
18790
 
18791
 
18792
 
18793
 
18794
$as_echo "#define ARITHMETIC_RIGHT_SHIFT 1" >>confdefs.h
18795
 
18796
 
18797
$as_echo "#define LOGICAL_RIGHT_SHIFT 2" >>confdefs.h
18798
 
18799
 
18800
$as_echo "#define UNKNOWN_RIGHT_SHIFT 3" >>confdefs.h
18801
 
18802
 
18803
          if test "$success_arithmetic" = "yes" && test "$success_logica" = "yes" ; then
18804
            as_fn_error "\"Right shift appears to be both arithmetic and logical!\"" "$LINENO" 5
18805
          elif test "$success_arithmetic" = "yes" ; then
18806
            ax_signed_right_shift=arithmetic
18807
 
18808
$as_echo "#define SIGNED_RIGHT_SHIFT_IS 1" >>confdefs.h
18809
 
18810
          elif test "$success_logical" = "yes" ; then
18811
            ax_signed_right_shift=logical
18812
 
18813
$as_echo "#define SIGNED_RIGHT_SHIFT_IS 2" >>confdefs.h
18814
 
18815
          else
18816
            ax_signed_right_shift=unknown
18817
 
18818
$as_echo "#define SIGNED_RIGHT_SHIFT_IS 3" >>confdefs.h
18819
 
18820
          fi
18821
 
18822
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_signed_right_shift" >&5
18823
$as_echo "$ax_signed_right_shift" >&6; }
18824
 
18825
 
18826
 
18827
          # Check whether --enable-gen-cpp was given.
18828
if test "${enable_gen_cpp+set}" = set; then :
18829
  enableval=$enable_gen_cpp; ax_thrift_gen_cpp="$enableval"
18830
else
18831
  ax_thrift_gen_cpp=yes
18832
 
18833
fi
18834
 
18835
 
18836
 if test "$ax_thrift_gen_cpp" = "yes"; then
18837
  THRIFT_GEN_cpp_TRUE=
18838
  THRIFT_GEN_cpp_FALSE='#'
18839
else
18840
  THRIFT_GEN_cpp_TRUE='#'
18841
  THRIFT_GEN_cpp_FALSE=
18842
fi
18843
 
18844
 
18845
          # Check whether --enable-gen-java was given.
18846
if test "${enable_gen_java+set}" = set; then :
18847
  enableval=$enable_gen_java; ax_thrift_gen_java="$enableval"
18848
else
18849
  ax_thrift_gen_java=yes
18850
 
18851
fi
18852
 
18853
 
18854
 if test "$ax_thrift_gen_java" = "yes"; then
18855
  THRIFT_GEN_java_TRUE=
18856
  THRIFT_GEN_java_FALSE='#'
18857
else
18858
  THRIFT_GEN_java_TRUE='#'
18859
  THRIFT_GEN_java_FALSE=
18860
fi
18861
 
18862
 
18863
          # Check whether --enable-gen-csharp was given.
18864
if test "${enable_gen_csharp+set}" = set; then :
18865
  enableval=$enable_gen_csharp; ax_thrift_gen_csharp="$enableval"
18866
else
18867
  ax_thrift_gen_csharp=yes
18868
 
18869
fi
18870
 
18871
 
18872
 if test "$ax_thrift_gen_csharp" = "yes"; then
18873
  THRIFT_GEN_csharp_TRUE=
18874
  THRIFT_GEN_csharp_FALSE='#'
18875
else
18876
  THRIFT_GEN_csharp_TRUE='#'
18877
  THRIFT_GEN_csharp_FALSE=
18878
fi
18879
 
18880
 
18881
          # Check whether --enable-gen-py was given.
18882
if test "${enable_gen_py+set}" = set; then :
18883
  enableval=$enable_gen_py; ax_thrift_gen_py="$enableval"
18884
else
18885
  ax_thrift_gen_py=yes
18886
 
18887
fi
18888
 
18889
 
18890
 if test "$ax_thrift_gen_py" = "yes"; then
18891
  THRIFT_GEN_py_TRUE=
18892
  THRIFT_GEN_py_FALSE='#'
18893
else
18894
  THRIFT_GEN_py_TRUE='#'
18895
  THRIFT_GEN_py_FALSE=
18896
fi
18897
 
18898
 
18899
          # Check whether --enable-gen-rb was given.
18900
if test "${enable_gen_rb+set}" = set; then :
18901
  enableval=$enable_gen_rb; ax_thrift_gen_rb="$enableval"
18902
else
18903
  ax_thrift_gen_rb=yes
18904
 
18905
fi
18906
 
18907
 
18908
 if test "$ax_thrift_gen_rb" = "yes"; then
18909
  THRIFT_GEN_rb_TRUE=
18910
  THRIFT_GEN_rb_FALSE='#'
18911
else
18912
  THRIFT_GEN_rb_TRUE='#'
18913
  THRIFT_GEN_rb_FALSE=
18914
fi
18915
 
18916
 
18917
          # Check whether --enable-gen-perl was given.
18918
if test "${enable_gen_perl+set}" = set; then :
18919
  enableval=$enable_gen_perl; ax_thrift_gen_perl="$enableval"
18920
else
18921
  ax_thrift_gen_perl=yes
18922
 
18923
fi
18924
 
18925
 
18926
 if test "$ax_thrift_gen_perl" = "yes"; then
18927
  THRIFT_GEN_perl_TRUE=
18928
  THRIFT_GEN_perl_FALSE='#'
18929
else
18930
  THRIFT_GEN_perl_TRUE='#'
18931
  THRIFT_GEN_perl_FALSE=
18932
fi
18933
 
18934
 
18935
          # Check whether --enable-gen-php was given.
18936
if test "${enable_gen_php+set}" = set; then :
18937
  enableval=$enable_gen_php; ax_thrift_gen_php="$enableval"
18938
else
18939
  ax_thrift_gen_php=yes
18940
 
18941
fi
18942
 
18943
 
18944
 if test "$ax_thrift_gen_php" = "yes"; then
18945
  THRIFT_GEN_php_TRUE=
18946
  THRIFT_GEN_php_FALSE='#'
18947
else
18948
  THRIFT_GEN_php_TRUE='#'
18949
  THRIFT_GEN_php_FALSE=
18950
fi
18951
 
18952
 
18953
          # Check whether --enable-gen-erl was given.
18954
if test "${enable_gen_erl+set}" = set; then :
18955
  enableval=$enable_gen_erl; ax_thrift_gen_erl="$enableval"
18956
else
18957
  ax_thrift_gen_erl=yes
18958
 
18959
fi
18960
 
18961
 
18962
 if test "$ax_thrift_gen_erl" = "yes"; then
18963
  THRIFT_GEN_erl_TRUE=
18964
  THRIFT_GEN_erl_FALSE='#'
18965
else
18966
  THRIFT_GEN_erl_TRUE='#'
18967
  THRIFT_GEN_erl_FALSE=
18968
fi
18969
 
18970
 
18971
          # Check whether --enable-gen-cocoa was given.
18972
if test "${enable_gen_cocoa+set}" = set; then :
18973
  enableval=$enable_gen_cocoa; ax_thrift_gen_cocoa="$enableval"
18974
else
18975
  ax_thrift_gen_cocoa=yes
18976
 
18977
fi
18978
 
18979
 
18980
 if test "$ax_thrift_gen_cocoa" = "yes"; then
18981
  THRIFT_GEN_cocoa_TRUE=
18982
  THRIFT_GEN_cocoa_FALSE='#'
18983
else
18984
  THRIFT_GEN_cocoa_TRUE='#'
18985
  THRIFT_GEN_cocoa_FALSE=
18986
fi
18987
 
18988
 
18989
          # Check whether --enable-gen-st was given.
18990
if test "${enable_gen_st+set}" = set; then :
18991
  enableval=$enable_gen_st; ax_thrift_gen_st="$enableval"
18992
else
18993
  ax_thrift_gen_st=yes
18994
 
18995
fi
18996
 
18997
 
18998
 if test "$ax_thrift_gen_st" = "yes"; then
18999
  THRIFT_GEN_st_TRUE=
19000
  THRIFT_GEN_st_FALSE='#'
19001
else
19002
  THRIFT_GEN_st_TRUE='#'
19003
  THRIFT_GEN_st_FALSE=
19004
fi
19005
 
19006
 
19007
          # Check whether --enable-gen-ocaml was given.
19008
if test "${enable_gen_ocaml+set}" = set; then :
19009
  enableval=$enable_gen_ocaml; ax_thrift_gen_ocaml="$enableval"
19010
else
19011
  ax_thrift_gen_ocaml=yes
19012
 
19013
fi
19014
 
19015
 
19016
 if test "$ax_thrift_gen_ocaml" = "yes"; then
19017
  THRIFT_GEN_ocaml_TRUE=
19018
  THRIFT_GEN_ocaml_FALSE='#'
19019
else
19020
  THRIFT_GEN_ocaml_TRUE='#'
19021
  THRIFT_GEN_ocaml_FALSE=
19022
fi
19023
 
19024
 
19025
          # Check whether --enable-gen-hs was given.
19026
if test "${enable_gen_hs+set}" = set; then :
19027
  enableval=$enable_gen_hs; ax_thrift_gen_hs="$enableval"
19028
else
19029
  ax_thrift_gen_hs=yes
19030
 
19031
fi
19032
 
19033
 
19034
 if test "$ax_thrift_gen_hs" = "yes"; then
19035
  THRIFT_GEN_hs_TRUE=
19036
  THRIFT_GEN_hs_FALSE='#'
19037
else
19038
  THRIFT_GEN_hs_TRUE='#'
19039
  THRIFT_GEN_hs_FALSE=
19040
fi
19041
 
19042
 
19043
          # Check whether --enable-gen-xsd was given.
19044
if test "${enable_gen_xsd+set}" = set; then :
19045
  enableval=$enable_gen_xsd; ax_thrift_gen_xsd="$enableval"
19046
else
19047
  ax_thrift_gen_xsd=yes
19048
 
19049
fi
19050
 
19051
 
19052
 if test "$ax_thrift_gen_xsd" = "yes"; then
19053
  THRIFT_GEN_xsd_TRUE=
19054
  THRIFT_GEN_xsd_FALSE='#'
19055
else
19056
  THRIFT_GEN_xsd_TRUE='#'
19057
  THRIFT_GEN_xsd_FALSE=
19058
fi
19059
 
19060
 
19061
          # Check whether --enable-gen-html was given.
19062
if test "${enable_gen_html+set}" = set; then :
19063
  enableval=$enable_gen_html; ax_thrift_gen_html="$enableval"
19064
else
19065
  ax_thrift_gen_html=yes
19066
 
19067
fi
19068
 
19069
 
19070
 if test "$ax_thrift_gen_html" = "yes"; then
19071
  THRIFT_GEN_html_TRUE=
19072
  THRIFT_GEN_html_FALSE='#'
19073
else
19074
  THRIFT_GEN_html_TRUE='#'
19075
  THRIFT_GEN_html_FALSE=
19076
fi
19077
 
19078
 
19079
ac_config_headers="$ac_config_headers config.h:config.hin"
19080
 
19081
 
19082
ac_config_files="$ac_config_files Makefile compiler/cpp/Makefile lib/Makefile lib/cpp/Makefile lib/cpp/thrift.pc lib/cpp/thrift-nb.pc lib/cpp/thrift-z.pc lib/csharp/Makefile lib/java/Makefile lib/perl/Makefile lib/perl/test/Makefile lib/py/Makefile lib/rb/Makefile test/Makefile test/py/Makefile test/rb/Makefile"
19083
 
19084
 
19085
cat >confcache <<\_ACEOF
19086
# This file is a shell script that caches the results of configure
19087
# tests run on this system so they can be shared between configure
19088
# scripts and configure runs, see configure's option --config-cache.
19089
# It is not useful on other systems.  If it contains results you don't
19090
# want to keep, you may remove or edit it.
19091
#
19092
# config.status only pays attention to the cache file if you give it
19093
# the --recheck option to rerun configure.
19094
#
19095
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19096
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19097
# following values.
19098
 
19099
_ACEOF
19100
 
19101
# The following way of writing the cache mishandles newlines in values,
19102
# but we know of no workaround that is simple, portable, and efficient.
19103
# So, we kill variables containing newlines.
19104
# Ultrix sh set writes to stderr and can't be redirected directly,
19105
# and sets the high bit in the cache file unless we assign to the vars.
19106
(
19107
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19108
    eval ac_val=\$$ac_var
19109
    case $ac_val in #(
19110
    *${as_nl}*)
19111
      case $ac_var in #(
19112
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19113
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19114
      esac
19115
      case $ac_var in #(
19116
      _ | IFS | as_nl) ;; #(
19117
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19118
      *) { eval $ac_var=; unset $ac_var;} ;;
19119
      esac ;;
19120
    esac
19121
  done
19122
 
19123
  (set) 2>&1 |
19124
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19125
    *${as_nl}ac_space=\ *)
19126
      # `set' does not quote correctly, so add quotes: double-quote
19127
      # substitution turns \\\\ into \\, and sed turns \\ into \.
19128
      sed -n \
19129
	"s/'/'\\\\''/g;
19130
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19131
      ;; #(
19132
    *)
19133
      # `set' quotes correctly as required by POSIX, so do not add quotes.
19134
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19135
      ;;
19136
    esac |
19137
    sort
19138
) |
19139
  sed '
19140
     /^ac_cv_env_/b end
19141
     t clear
19142
     :clear
19143
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19144
     t end
19145
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19146
     :end' >>confcache
19147
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19148
  if test -w "$cache_file"; then
19149
    test "x$cache_file" != "x/dev/null" &&
19150
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19151
$as_echo "$as_me: updating cache $cache_file" >&6;}
19152
    cat confcache >$cache_file
19153
  else
19154
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19155
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19156
  fi
19157
fi
19158
rm -f confcache
19159
 
19160
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19161
# Let make expand exec_prefix.
19162
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19163
 
19164
DEFS=-DHAVE_CONFIG_H
19165
 
19166
ac_libobjs=
19167
ac_ltlibobjs=
19168
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19169
  # 1. Remove the extension, and $U if already installed.
19170
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19171
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19172
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19173
  #    will be set to the directory where LIBOBJS objects are built.
19174
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19175
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19176
done
19177
LIBOBJS=$ac_libobjs
19178
 
19179
LTLIBOBJS=$ac_ltlibobjs
19180
 
19181
 
19182
 if test -n "$EXEEXT"; then
19183
  am__EXEEXT_TRUE=
19184
  am__EXEEXT_FALSE='#'
19185
else
19186
  am__EXEEXT_TRUE='#'
19187
  am__EXEEXT_FALSE=
19188
fi
19189
 
19190
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19191
  as_fn_error "conditional \"AMDEP\" was never defined.
19192
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19193
fi
19194
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19195
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
19196
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19197
fi
19198
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19199
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19200
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19201
fi
19202
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19203
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19204
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19205
fi
19206
if test -z "${AMX_HAVE_LIBEVENT_TRUE}" && test -z "${AMX_HAVE_LIBEVENT_FALSE}"; then
19207
  as_fn_error "conditional \"AMX_HAVE_LIBEVENT\" was never defined.
19208
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19209
fi
19210
if test -z "${AMX_HAVE_ZLIB_TRUE}" && test -z "${AMX_HAVE_ZLIB_FALSE}"; then
19211
  as_fn_error "conditional \"AMX_HAVE_ZLIB\" was never defined.
19212
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19213
fi
19214
if test -z "${WITH_MONO_TRUE}" && test -z "${WITH_MONO_FALSE}"; then
19215
  as_fn_error "conditional \"WITH_MONO\" was never defined.
19216
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19217
fi
19218
if test -z "${NET_2_0_TRUE}" && test -z "${NET_2_0_FALSE}"; then
19219
  as_fn_error "conditional \"NET_2_0\" was never defined.
19220
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19221
fi
19222
if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
19223
  as_fn_error "conditional \"WITH_JAVA\" was never defined.
19224
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19225
fi
19226
if test -z "${WITH_ERLANG_TRUE}" && test -z "${WITH_ERLANG_FALSE}"; then
19227
  as_fn_error "conditional \"WITH_ERLANG\" was never defined.
19228
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19229
fi
19230
if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
19231
  as_fn_error "conditional \"WITH_PYTHON\" was never defined.
19232
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19233
fi
19234
if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
19235
  as_fn_error "conditional \"WITH_PERL\" was never defined.
19236
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19237
fi
19238
if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
19239
  as_fn_error "conditional \"WITH_RUBY\" was never defined.
19240
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19241
fi
19242
if test -z "${HAVE_RSPEC_TRUE}" && test -z "${HAVE_RSPEC_FALSE}"; then
19243
  as_fn_error "conditional \"HAVE_RSPEC\" was never defined.
19244
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19245
fi
19246
if test -z "${THRIFT_GEN_cpp_TRUE}" && test -z "${THRIFT_GEN_cpp_FALSE}"; then
19247
  as_fn_error "conditional \"THRIFT_GEN_cpp\" was never defined.
19248
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19249
fi
19250
if test -z "${THRIFT_GEN_java_TRUE}" && test -z "${THRIFT_GEN_java_FALSE}"; then
19251
  as_fn_error "conditional \"THRIFT_GEN_java\" was never defined.
19252
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19253
fi
19254
if test -z "${THRIFT_GEN_csharp_TRUE}" && test -z "${THRIFT_GEN_csharp_FALSE}"; then
19255
  as_fn_error "conditional \"THRIFT_GEN_csharp\" was never defined.
19256
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19257
fi
19258
if test -z "${THRIFT_GEN_py_TRUE}" && test -z "${THRIFT_GEN_py_FALSE}"; then
19259
  as_fn_error "conditional \"THRIFT_GEN_py\" was never defined.
19260
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19261
fi
19262
if test -z "${THRIFT_GEN_rb_TRUE}" && test -z "${THRIFT_GEN_rb_FALSE}"; then
19263
  as_fn_error "conditional \"THRIFT_GEN_rb\" was never defined.
19264
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19265
fi
19266
if test -z "${THRIFT_GEN_perl_TRUE}" && test -z "${THRIFT_GEN_perl_FALSE}"; then
19267
  as_fn_error "conditional \"THRIFT_GEN_perl\" was never defined.
19268
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19269
fi
19270
if test -z "${THRIFT_GEN_php_TRUE}" && test -z "${THRIFT_GEN_php_FALSE}"; then
19271
  as_fn_error "conditional \"THRIFT_GEN_php\" was never defined.
19272
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19273
fi
19274
if test -z "${THRIFT_GEN_erl_TRUE}" && test -z "${THRIFT_GEN_erl_FALSE}"; then
19275
  as_fn_error "conditional \"THRIFT_GEN_erl\" was never defined.
19276
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19277
fi
19278
if test -z "${THRIFT_GEN_cocoa_TRUE}" && test -z "${THRIFT_GEN_cocoa_FALSE}"; then
19279
  as_fn_error "conditional \"THRIFT_GEN_cocoa\" was never defined.
19280
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19281
fi
19282
if test -z "${THRIFT_GEN_st_TRUE}" && test -z "${THRIFT_GEN_st_FALSE}"; then
19283
  as_fn_error "conditional \"THRIFT_GEN_st\" was never defined.
19284
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19285
fi
19286
if test -z "${THRIFT_GEN_ocaml_TRUE}" && test -z "${THRIFT_GEN_ocaml_FALSE}"; then
19287
  as_fn_error "conditional \"THRIFT_GEN_ocaml\" was never defined.
19288
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19289
fi
19290
if test -z "${THRIFT_GEN_hs_TRUE}" && test -z "${THRIFT_GEN_hs_FALSE}"; then
19291
  as_fn_error "conditional \"THRIFT_GEN_hs\" was never defined.
19292
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19293
fi
19294
if test -z "${THRIFT_GEN_xsd_TRUE}" && test -z "${THRIFT_GEN_xsd_FALSE}"; then
19295
  as_fn_error "conditional \"THRIFT_GEN_xsd\" was never defined.
19296
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19297
fi
19298
if test -z "${THRIFT_GEN_html_TRUE}" && test -z "${THRIFT_GEN_html_FALSE}"; then
19299
  as_fn_error "conditional \"THRIFT_GEN_html\" was never defined.
19300
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19301
fi
19302
 
19303
: ${CONFIG_STATUS=./config.status}
19304
ac_write_fail=0
19305
ac_clean_files_save=$ac_clean_files
19306
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19307
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19308
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19309
as_write_fail=0
19310
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19311
#! $SHELL
19312
# Generated by $as_me.
19313
# Run this file to recreate the current configuration.
19314
# Compiler output produced by configure, useful for debugging
19315
# configure, is in config.log if it exists.
19316
 
19317
debug=false
19318
ac_cs_recheck=false
19319
ac_cs_silent=false
19320
 
19321
SHELL=\${CONFIG_SHELL-$SHELL}
19322
export SHELL
19323
_ASEOF
19324
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19325
## -------------------- ##
19326
## M4sh Initialization. ##
19327
## -------------------- ##
19328
 
19329
# Be more Bourne compatible
19330
DUALCASE=1; export DUALCASE # for MKS sh
19331
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19332
  emulate sh
19333
  NULLCMD=:
19334
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19335
  # is contrary to our usage.  Disable this feature.
19336
  alias -g '${1+"$@"}'='"$@"'
19337
  setopt NO_GLOB_SUBST
19338
else
19339
  case `(set -o) 2>/dev/null` in #(
19340
  *posix*) :
19341
    set -o posix ;; #(
19342
  *) :
19343
     ;;
19344
esac
19345
fi
19346
 
19347
 
19348
as_nl='
19349
'
19350
export as_nl
19351
# Printing a long string crashes Solaris 7 /usr/bin/printf.
19352
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19353
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19354
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19355
# Prefer a ksh shell builtin over an external printf program on Solaris,
19356
# but without wasting forks for bash or zsh.
19357
if test -z "$BASH_VERSION$ZSH_VERSION" \
19358
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19359
  as_echo='print -r --'
19360
  as_echo_n='print -rn --'
19361
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19362
  as_echo='printf %s\n'
19363
  as_echo_n='printf %s'
19364
else
19365
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19366
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19367
    as_echo_n='/usr/ucb/echo -n'
19368
  else
19369
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19370
    as_echo_n_body='eval
19371
      arg=$1;
19372
      case $arg in #(
19373
      *"$as_nl"*)
19374
	expr "X$arg" : "X\\(.*\\)$as_nl";
19375
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19376
      esac;
19377
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19378
    '
19379
    export as_echo_n_body
19380
    as_echo_n='sh -c $as_echo_n_body as_echo'
19381
  fi
19382
  export as_echo_body
19383
  as_echo='sh -c $as_echo_body as_echo'
19384
fi
19385
 
19386
# The user is always right.
19387
if test "${PATH_SEPARATOR+set}" != set; then
19388
  PATH_SEPARATOR=:
19389
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19390
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19391
      PATH_SEPARATOR=';'
19392
  }
19393
fi
19394
 
19395
 
19396
# IFS
19397
# We need space, tab and new line, in precisely that order.  Quoting is
19398
# there to prevent editors from complaining about space-tab.
19399
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19400
# splitting by setting IFS to empty value.)
19401
IFS=" ""	$as_nl"
19402
 
19403
# Find who we are.  Look in the path if we contain no directory separator.
19404
case $0 in #((
19405
  *[\\/]* ) as_myself=$0 ;;
19406
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19407
for as_dir in $PATH
19408
do
19409
  IFS=$as_save_IFS
19410
  test -z "$as_dir" && as_dir=.
19411
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19412
  done
19413
IFS=$as_save_IFS
19414
 
19415
     ;;
19416
esac
19417
# We did not find ourselves, most probably we were run as `sh COMMAND'
19418
# in which case we are not to be found in the path.
19419
if test "x$as_myself" = x; then
19420
  as_myself=$0
19421
fi
19422
if test ! -f "$as_myself"; then
19423
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19424
  exit 1
19425
fi
19426
 
19427
# Unset variables that we do not need and which cause bugs (e.g. in
19428
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19429
# suppresses any "Segmentation fault" message there.  '((' could
19430
# trigger a bug in pdksh 5.2.14.
19431
for as_var in BASH_ENV ENV MAIL MAILPATH
19432
do eval test x\${$as_var+set} = xset \
19433
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19434
done
19435
PS1='$ '
19436
PS2='> '
19437
PS4='+ '
19438
 
19439
# NLS nuisances.
19440
LC_ALL=C
19441
export LC_ALL
19442
LANGUAGE=C
19443
export LANGUAGE
19444
 
19445
# CDPATH.
19446
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19447
 
19448
 
19449
# as_fn_error ERROR [LINENO LOG_FD]
19450
# ---------------------------------
19451
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19452
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19453
# script with status $?, using 1 if that was 0.
19454
as_fn_error ()
19455
{
19456
  as_status=$?; test $as_status -eq 0 && as_status=1
19457
  if test "$3"; then
19458
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19459
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19460
  fi
19461
  $as_echo "$as_me: error: $1" >&2
19462
  as_fn_exit $as_status
19463
} # as_fn_error
19464
 
19465
 
19466
# as_fn_set_status STATUS
19467
# -----------------------
19468
# Set $? to STATUS, without forking.
19469
as_fn_set_status ()
19470
{
19471
  return $1
19472
} # as_fn_set_status
19473
 
19474
# as_fn_exit STATUS
19475
# -----------------
19476
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19477
as_fn_exit ()
19478
{
19479
  set +e
19480
  as_fn_set_status $1
19481
  exit $1
19482
} # as_fn_exit
19483
 
19484
# as_fn_unset VAR
19485
# ---------------
19486
# Portably unset VAR.
19487
as_fn_unset ()
19488
{
19489
  { eval $1=; unset $1;}
19490
}
19491
as_unset=as_fn_unset
19492
# as_fn_append VAR VALUE
19493
# ----------------------
19494
# Append the text in VALUE to the end of the definition contained in VAR. Take
19495
# advantage of any shell optimizations that allow amortized linear growth over
19496
# repeated appends, instead of the typical quadratic growth present in naive
19497
# implementations.
19498
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19499
  eval 'as_fn_append ()
19500
  {
19501
    eval $1+=\$2
19502
  }'
19503
else
19504
  as_fn_append ()
19505
  {
19506
    eval $1=\$$1\$2
19507
  }
19508
fi # as_fn_append
19509
 
19510
# as_fn_arith ARG...
19511
# ------------------
19512
# Perform arithmetic evaluation on the ARGs, and store the result in the
19513
# global $as_val. Take advantage of shells that can avoid forks. The arguments
19514
# must be portable across $(()) and expr.
19515
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19516
  eval 'as_fn_arith ()
19517
  {
19518
    as_val=$(( $* ))
19519
  }'
19520
else
19521
  as_fn_arith ()
19522
  {
19523
    as_val=`expr "$@" || test $? -eq 1`
19524
  }
19525
fi # as_fn_arith
19526
 
19527
 
19528
if expr a : '\(a\)' >/dev/null 2>&1 &&
19529
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19530
  as_expr=expr
19531
else
19532
  as_expr=false
19533
fi
19534
 
19535
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19536
  as_basename=basename
19537
else
19538
  as_basename=false
19539
fi
19540
 
19541
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19542
  as_dirname=dirname
19543
else
19544
  as_dirname=false
19545
fi
19546
 
19547
as_me=`$as_basename -- "$0" ||
19548
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19549
	 X"$0" : 'X\(//\)$' \| \
19550
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19551
$as_echo X/"$0" |
19552
    sed '/^.*\/\([^/][^/]*\)\/*$/{
19553
	    s//\1/
19554
	    q
19555
	  }
19556
	  /^X\/\(\/\/\)$/{
19557
	    s//\1/
19558
	    q
19559
	  }
19560
	  /^X\/\(\/\).*/{
19561
	    s//\1/
19562
	    q
19563
	  }
19564
	  s/.*/./; q'`
19565
 
19566
# Avoid depending upon Character Ranges.
19567
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19568
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19569
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19570
as_cr_digits='0123456789'
19571
as_cr_alnum=$as_cr_Letters$as_cr_digits
19572
 
19573
ECHO_C= ECHO_N= ECHO_T=
19574
case `echo -n x` in #(((((
19575
-n*)
19576
  case `echo 'xy\c'` in
19577
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19578
  xy)  ECHO_C='\c';;
19579
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19580
       ECHO_T='	';;
19581
  esac;;
19582
*)
19583
  ECHO_N='-n';;
19584
esac
19585
 
19586
rm -f conf$$ conf$$.exe conf$$.file
19587
if test -d conf$$.dir; then
19588
  rm -f conf$$.dir/conf$$.file
19589
else
19590
  rm -f conf$$.dir
19591
  mkdir conf$$.dir 2>/dev/null
19592
fi
19593
if (echo >conf$$.file) 2>/dev/null; then
19594
  if ln -s conf$$.file conf$$ 2>/dev/null; then
19595
    as_ln_s='ln -s'
19596
    # ... but there are two gotchas:
19597
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19598
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19599
    # In both cases, we have to default to `cp -p'.
19600
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19601
      as_ln_s='cp -p'
19602
  elif ln conf$$.file conf$$ 2>/dev/null; then
19603
    as_ln_s=ln
19604
  else
19605
    as_ln_s='cp -p'
19606
  fi
19607
else
19608
  as_ln_s='cp -p'
19609
fi
19610
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19611
rmdir conf$$.dir 2>/dev/null
19612
 
19613
 
19614
# as_fn_mkdir_p
19615
# -------------
19616
# Create "$as_dir" as a directory, including parents if necessary.
19617
as_fn_mkdir_p ()
19618
{
19619
 
19620
  case $as_dir in #(
19621
  -*) as_dir=./$as_dir;;
19622
  esac
19623
  test -d "$as_dir" || eval $as_mkdir_p || {
19624
    as_dirs=
19625
    while :; do
19626
      case $as_dir in #(
19627
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19628
      *) as_qdir=$as_dir;;
19629
      esac
19630
      as_dirs="'$as_qdir' $as_dirs"
19631
      as_dir=`$as_dirname -- "$as_dir" ||
19632
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19633
	 X"$as_dir" : 'X\(//\)[^/]' \| \
19634
	 X"$as_dir" : 'X\(//\)$' \| \
19635
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19636
$as_echo X"$as_dir" |
19637
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19638
	    s//\1/
19639
	    q
19640
	  }
19641
	  /^X\(\/\/\)[^/].*/{
19642
	    s//\1/
19643
	    q
19644
	  }
19645
	  /^X\(\/\/\)$/{
19646
	    s//\1/
19647
	    q
19648
	  }
19649
	  /^X\(\/\).*/{
19650
	    s//\1/
19651
	    q
19652
	  }
19653
	  s/.*/./; q'`
19654
      test -d "$as_dir" && break
19655
    done
19656
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19657
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19658
 
19659
 
19660
} # as_fn_mkdir_p
19661
if mkdir -p . 2>/dev/null; then
19662
  as_mkdir_p='mkdir -p "$as_dir"'
19663
else
19664
  test -d ./-p && rmdir ./-p
19665
  as_mkdir_p=false
19666
fi
19667
 
19668
if test -x / >/dev/null 2>&1; then
19669
  as_test_x='test -x'
19670
else
19671
  if ls -dL / >/dev/null 2>&1; then
19672
    as_ls_L_option=L
19673
  else
19674
    as_ls_L_option=
19675
  fi
19676
  as_test_x='
19677
    eval sh -c '\''
19678
      if test -d "$1"; then
19679
	test -d "$1/.";
19680
      else
19681
	case $1 in #(
19682
	-*)set "./$1";;
19683
	esac;
19684
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19685
	???[sx]*):;;*)false;;esac;fi
19686
    '\'' sh
19687
  '
19688
fi
19689
as_executable_p=$as_test_x
19690
 
19691
# Sed expression to map a string onto a valid CPP name.
19692
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19693
 
19694
# Sed expression to map a string onto a valid variable name.
19695
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19696
 
19697
 
19698
exec 6>&1
19699
## ----------------------------------- ##
19700
## Main body of $CONFIG_STATUS script. ##
19701
## ----------------------------------- ##
19702
_ASEOF
19703
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19704
 
19705
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19706
# Save the log message, to keep $0 and so on meaningful, and to
19707
# report actual input values of CONFIG_FILES etc. instead of their
19708
# values after options handling.
19709
ac_log="
19710
This file was extended by thrift $as_me 0.2.0, which was
19711
generated by GNU Autoconf 2.64.  Invocation command line was
19712
 
19713
  CONFIG_FILES    = $CONFIG_FILES
19714
  CONFIG_HEADERS  = $CONFIG_HEADERS
19715
  CONFIG_LINKS    = $CONFIG_LINKS
19716
  CONFIG_COMMANDS = $CONFIG_COMMANDS
19717
  $ $0 $@
19718
 
19719
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19720
"
19721
 
19722
_ACEOF
19723
 
19724
case $ac_config_files in *"
19725
"*) set x $ac_config_files; shift; ac_config_files=$*;;
19726
esac
19727
 
19728
case $ac_config_headers in *"
19729
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19730
esac
19731
 
19732
 
19733
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19734
# Files that config.status was made for.
19735
config_files="$ac_config_files"
19736
config_headers="$ac_config_headers"
19737
config_commands="$ac_config_commands"
19738
 
19739
_ACEOF
19740
 
19741
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19742
ac_cs_usage="\
19743
\`$as_me' instantiates files and other configuration actions
19744
from templates according to the current configuration.  Unless the files
19745
and actions are specified as TAGs, all are instantiated by default.
19746
 
19747
Usage: $0 [OPTION]... [TAG]...
19748
 
19749
  -h, --help       print this help, then exit
19750
  -V, --version    print version number and configuration settings, then exit
19751
  -q, --quiet, --silent
19752
                   do not print progress messages
19753
  -d, --debug      don't remove temporary files
19754
      --recheck    update $as_me by reconfiguring in the same conditions
19755
      --file=FILE[:TEMPLATE]
19756
                   instantiate the configuration file FILE
19757
      --header=FILE[:TEMPLATE]
19758
                   instantiate the configuration header FILE
19759
 
19760
Configuration files:
19761
$config_files
19762
 
19763
Configuration headers:
19764
$config_headers
19765
 
19766
Configuration commands:
19767
$config_commands
19768
 
19769
Report bugs to the package provider."
19770
 
19771
_ACEOF
19772
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19773
ac_cs_version="\\
19774
thrift config.status 0.2.0
19775
configured by $0, generated by GNU Autoconf 2.64,
19776
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19777
 
19778
Copyright (C) 2009 Free Software Foundation, Inc.
19779
This config.status script is free software; the Free Software Foundation
19780
gives unlimited permission to copy, distribute and modify it."
19781
 
19782
ac_pwd='$ac_pwd'
19783
srcdir='$srcdir'
19784
INSTALL='$INSTALL'
19785
MKDIR_P='$MKDIR_P'
19786
AWK='$AWK'
19787
test -n "\$AWK" || AWK=awk
19788
_ACEOF
19789
 
19790
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19791
# The default lists apply if the user does not specify any file.
19792
ac_need_defaults=:
19793
while test $# != 0
19794
do
19795
  case $1 in
19796
  --*=*)
19797
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19798
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19799
    ac_shift=:
19800
    ;;
19801
  *)
19802
    ac_option=$1
19803
    ac_optarg=$2
19804
    ac_shift=shift
19805
    ;;
19806
  esac
19807
 
19808
  case $ac_option in
19809
  # Handling of the options.
19810
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19811
    ac_cs_recheck=: ;;
19812
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19813
    $as_echo "$ac_cs_version"; exit ;;
19814
  --debug | --debu | --deb | --de | --d | -d )
19815
    debug=: ;;
19816
  --file | --fil | --fi | --f )
19817
    $ac_shift
19818
    case $ac_optarg in
19819
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19820
    esac
19821
    as_fn_append CONFIG_FILES " '$ac_optarg'"
19822
    ac_need_defaults=false;;
19823
  --header | --heade | --head | --hea )
19824
    $ac_shift
19825
    case $ac_optarg in
19826
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19827
    esac
19828
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19829
    ac_need_defaults=false;;
19830
  --he | --h)
19831
    # Conflict between --help and --header
19832
    as_fn_error "ambiguous option: \`$1'
19833
Try \`$0 --help' for more information.";;
19834
  --help | --hel | -h )
19835
    $as_echo "$ac_cs_usage"; exit ;;
19836
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19837
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19838
    ac_cs_silent=: ;;
19839
 
19840
  # This is an error.
19841
  -*) as_fn_error "unrecognized option: \`$1'
19842
Try \`$0 --help' for more information." ;;
19843
 
19844
  *) as_fn_append ac_config_targets " $1"
19845
     ac_need_defaults=false ;;
19846
 
19847
  esac
19848
  shift
19849
done
19850
 
19851
ac_configure_extra_args=
19852
 
19853
if $ac_cs_silent; then
19854
  exec 6>/dev/null
19855
  ac_configure_extra_args="$ac_configure_extra_args --silent"
19856
fi
19857
 
19858
_ACEOF
19859
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19860
if \$ac_cs_recheck; then
19861
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19862
  shift
19863
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19864
  CONFIG_SHELL='$SHELL'
19865
  export CONFIG_SHELL
19866
  exec "\$@"
19867
fi
19868
 
19869
_ACEOF
19870
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19871
exec 5>>config.log
19872
{
19873
  echo
19874
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19875
## Running $as_me. ##
19876
_ASBOX
19877
  $as_echo "$ac_log"
19878
} >&5
19879
 
19880
_ACEOF
19881
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19882
#
19883
# INIT-COMMANDS
19884
#
19885
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19886
 
19887
 
19888
# The HP-UX ksh and POSIX shell print the target directory to stdout
19889
# if CDPATH is set.
19890
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19891
 
19892
sed_quote_subst='$sed_quote_subst'
19893
double_quote_subst='$double_quote_subst'
19894
delay_variable_subst='$delay_variable_subst'
19895
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19896
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19897
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19898
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19899
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19900
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19901
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19902
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19903
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19904
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19905
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19906
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19907
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19908
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19909
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19910
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19911
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19912
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19913
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19914
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19915
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19916
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19917
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19918
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19919
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19920
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19921
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19922
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19923
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19924
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19925
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19926
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19927
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19928
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19929
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19930
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19931
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19932
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19933
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19934
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19935
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19936
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19937
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19938
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19939
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"`'
19940
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"`'
19941
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19942
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19943
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19944
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19945
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19946
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19947
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19948
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19949
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19950
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19951
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19952
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19953
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19954
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19955
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19956
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19957
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19958
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19959
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19960
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19961
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19962
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19963
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19964
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19965
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19966
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19967
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19968
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19969
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19970
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19971
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19972
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19973
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19974
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19975
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19976
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19977
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19978
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19979
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19980
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19981
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19982
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19983
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19984
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19985
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19986
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19987
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19988
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19989
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19990
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19991
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19992
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19993
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19994
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19995
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19996
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19997
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19998
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19999
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20000
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20001
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20002
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20003
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20004
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20005
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20006
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20007
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20008
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20009
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20010
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20011
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20012
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20013
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20014
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20015
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20016
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20017
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20018
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20019
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20020
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20021
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20022
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20023
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20024
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20025
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20026
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20027
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20028
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20029
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20030
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20031
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20032
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20033
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20034
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20035
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20036
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20037
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20038
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20039
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20040
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20041
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20042
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20043
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20044
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20045
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20046
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20047
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20048
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20049
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20050
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20051
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20052
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20053
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20054
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20055
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20056
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20057
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20058
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20059
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20060
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20061
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20062
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20063
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20064
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20065
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20066
 
20067
LTCC='$LTCC'
20068
LTCFLAGS='$LTCFLAGS'
20069
compiler='$compiler_DEFAULT'
20070
 
20071
# Quote evaled strings.
20072
for var in SED \
20073
GREP \
20074
EGREP \
20075
FGREP \
20076
LD \
20077
NM \
20078
LN_S \
20079
lt_SP2NL \
20080
lt_NL2SP \
20081
reload_flag \
20082
OBJDUMP \
20083
deplibs_check_method \
20084
file_magic_cmd \
20085
AR \
20086
AR_FLAGS \
20087
STRIP \
20088
RANLIB \
20089
CC \
20090
CFLAGS \
20091
compiler \
20092
lt_cv_sys_global_symbol_pipe \
20093
lt_cv_sys_global_symbol_to_cdecl \
20094
lt_cv_sys_global_symbol_to_c_name_address \
20095
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20096
SHELL \
20097
ECHO \
20098
lt_prog_compiler_no_builtin_flag \
20099
lt_prog_compiler_wl \
20100
lt_prog_compiler_pic \
20101
lt_prog_compiler_static \
20102
lt_cv_prog_compiler_c_o \
20103
need_locks \
20104
DSYMUTIL \
20105
NMEDIT \
20106
LIPO \
20107
OTOOL \
20108
OTOOL64 \
20109
shrext_cmds \
20110
export_dynamic_flag_spec \
20111
whole_archive_flag_spec \
20112
compiler_needs_object \
20113
with_gnu_ld \
20114
allow_undefined_flag \
20115
no_undefined_flag \
20116
hardcode_libdir_flag_spec \
20117
hardcode_libdir_flag_spec_ld \
20118
hardcode_libdir_separator \
20119
fix_srcfile_path \
20120
exclude_expsyms \
20121
include_expsyms \
20122
file_list_spec \
20123
variables_saved_for_relink \
20124
libname_spec \
20125
library_names_spec \
20126
soname_spec \
20127
finish_eval \
20128
old_striplib \
20129
striplib \
20130
compiler_lib_search_dirs \
20131
predep_objects \
20132
postdep_objects \
20133
predeps \
20134
postdeps \
20135
compiler_lib_search_path \
20136
LD_CXX \
20137
compiler_CXX \
20138
lt_prog_compiler_no_builtin_flag_CXX \
20139
lt_prog_compiler_wl_CXX \
20140
lt_prog_compiler_pic_CXX \
20141
lt_prog_compiler_static_CXX \
20142
lt_cv_prog_compiler_c_o_CXX \
20143
export_dynamic_flag_spec_CXX \
20144
whole_archive_flag_spec_CXX \
20145
compiler_needs_object_CXX \
20146
with_gnu_ld_CXX \
20147
allow_undefined_flag_CXX \
20148
no_undefined_flag_CXX \
20149
hardcode_libdir_flag_spec_CXX \
20150
hardcode_libdir_flag_spec_ld_CXX \
20151
hardcode_libdir_separator_CXX \
20152
fix_srcfile_path_CXX \
20153
exclude_expsyms_CXX \
20154
include_expsyms_CXX \
20155
file_list_spec_CXX \
20156
compiler_lib_search_dirs_CXX \
20157
predep_objects_CXX \
20158
postdep_objects_CXX \
20159
predeps_CXX \
20160
postdeps_CXX \
20161
compiler_lib_search_path_CXX; do
20162
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20163
    *[\\\\\\\`\\"\\\$]*)
20164
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20165
      ;;
20166
    *)
20167
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20168
      ;;
20169
    esac
20170
done
20171
 
20172
# Double-quote double-evaled strings.
20173
for var in reload_cmds \
20174
old_postinstall_cmds \
20175
old_postuninstall_cmds \
20176
old_archive_cmds \
20177
extract_expsyms_cmds \
20178
old_archive_from_new_cmds \
20179
old_archive_from_expsyms_cmds \
20180
archive_cmds \
20181
archive_expsym_cmds \
20182
module_cmds \
20183
module_expsym_cmds \
20184
export_symbols_cmds \
20185
prelink_cmds \
20186
postinstall_cmds \
20187
postuninstall_cmds \
20188
finish_cmds \
20189
sys_lib_search_path_spec \
20190
sys_lib_dlsearch_path_spec \
20191
old_archive_cmds_CXX \
20192
old_archive_from_new_cmds_CXX \
20193
old_archive_from_expsyms_cmds_CXX \
20194
archive_cmds_CXX \
20195
archive_expsym_cmds_CXX \
20196
module_cmds_CXX \
20197
module_expsym_cmds_CXX \
20198
export_symbols_cmds_CXX \
20199
prelink_cmds_CXX; do
20200
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20201
    *[\\\\\\\`\\"\\\$]*)
20202
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20203
      ;;
20204
    *)
20205
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20206
      ;;
20207
    esac
20208
done
20209
 
20210
# Fix-up fallback echo if it was mangled by the above quoting rules.
20211
case \$lt_ECHO in
20212
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20213
  ;;
20214
esac
20215
 
20216
ac_aux_dir='$ac_aux_dir'
20217
xsi_shell='$xsi_shell'
20218
lt_shell_append='$lt_shell_append'
20219
 
20220
# See if we are running on zsh, and set the options which allow our
20221
# commands through without removal of \ escapes INIT.
20222
if test -n "\${ZSH_VERSION+set}" ; then
20223
   setopt NO_GLOB_SUBST
20224
fi
20225
 
20226
 
20227
    PACKAGE='$PACKAGE'
20228
    VERSION='$VERSION'
20229
    TIMESTAMP='$TIMESTAMP'
20230
    RM='$RM'
20231
    ofile='$ofile'
20232
 
20233
 
20234
 
20235
 
20236
 
20237
 
20238
_ACEOF
20239
 
20240
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20241
 
20242
# Handling of arguments.
20243
for ac_config_target in $ac_config_targets
20244
do
20245
  case $ac_config_target in
20246
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20247
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20248
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
20249
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20250
    "compiler/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES compiler/cpp/Makefile" ;;
20251
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20252
    "lib/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/Makefile" ;;
20253
    "lib/cpp/thrift.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift.pc" ;;
20254
    "lib/cpp/thrift-nb.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-nb.pc" ;;
20255
    "lib/cpp/thrift-z.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-z.pc" ;;
20256
    "lib/csharp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/csharp/Makefile" ;;
20257
    "lib/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/Makefile" ;;
20258
    "lib/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/Makefile" ;;
20259
    "lib/perl/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/test/Makefile" ;;
20260
    "lib/py/Makefile") CONFIG_FILES="$CONFIG_FILES lib/py/Makefile" ;;
20261
    "lib/rb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rb/Makefile" ;;
20262
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20263
    "test/py/Makefile") CONFIG_FILES="$CONFIG_FILES test/py/Makefile" ;;
20264
    "test/rb/Makefile") CONFIG_FILES="$CONFIG_FILES test/rb/Makefile" ;;
20265
 
20266
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20267
  esac
20268
done
20269
 
20270
 
20271
# If the user did not use the arguments to specify the items to instantiate,
20272
# then the envvar interface is used.  Set only those that are not.
20273
# We use the long form for the default assignment because of an extremely
20274
# bizarre bug on SunOS 4.1.3.
20275
if $ac_need_defaults; then
20276
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20277
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20278
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20279
fi
20280
 
20281
# Have a temporary directory for convenience.  Make it in the build tree
20282
# simply because there is no reason against having it here, and in addition,
20283
# creating and moving files from /tmp can sometimes cause problems.
20284
# Hook for its removal unless debugging.
20285
# Note that there is a small window in which the directory will not be cleaned:
20286
# after its creation but before its name has been assigned to `$tmp'.
20287
$debug ||
20288
{
20289
  tmp=
20290
  trap 'exit_status=$?
20291
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20292
' 0
20293
  trap 'as_fn_exit 1' 1 2 13 15
20294
}
20295
# Create a (secure) tmp directory for tmp files.
20296
 
20297
{
20298
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20299
  test -n "$tmp" && test -d "$tmp"
20300
}  ||
20301
{
20302
  tmp=./conf$$-$RANDOM
20303
  (umask 077 && mkdir "$tmp")
20304
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20305
 
20306
# Set up the scripts for CONFIG_FILES section.
20307
# No need to generate them if there are no CONFIG_FILES.
20308
# This happens for instance with `./config.status config.h'.
20309
if test -n "$CONFIG_FILES"; then
20310
 
20311
 
20312
ac_cr=`echo X | tr X '\015'`
20313
# On cygwin, bash can eat \r inside `` if the user requested igncr.
20314
# But we know of no other shell where ac_cr would be empty at this
20315
# point, so we can use a bashism as a fallback.
20316
if test "x$ac_cr" = x; then
20317
  eval ac_cr=\$\'\\r\'
20318
fi
20319
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20320
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20321
  ac_cs_awk_cr='\r'
20322
else
20323
  ac_cs_awk_cr=$ac_cr
20324
fi
20325
 
20326
echo 'BEGIN {' >"$tmp/subs1.awk" &&
20327
_ACEOF
20328
 
20329
 
20330
{
20331
  echo "cat >conf$$subs.awk <<_ACEOF" &&
20332
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20333
  echo "_ACEOF"
20334
} >conf$$subs.sh ||
20335
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20336
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20337
ac_delim='%!_!# '
20338
for ac_last_try in false false false false false :; do
20339
  . ./conf$$subs.sh ||
20340
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20341
 
20342
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20343
  if test $ac_delim_n = $ac_delim_num; then
20344
    break
20345
  elif $ac_last_try; then
20346
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20347
  else
20348
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20349
  fi
20350
done
20351
rm -f conf$$subs.sh
20352
 
20353
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20354
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20355
_ACEOF
20356
sed -n '
20357
h
20358
s/^/S["/; s/!.*/"]=/
20359
p
20360
g
20361
s/^[^!]*!//
20362
:repl
20363
t repl
20364
s/'"$ac_delim"'$//
20365
t delim
20366
:nl
20367
h
20368
s/\(.\{148\}\).*/\1/
20369
t more1
20370
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20371
p
20372
n
20373
b repl
20374
:more1
20375
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20376
p
20377
g
20378
s/.\{148\}//
20379
t nl
20380
:delim
20381
h
20382
s/\(.\{148\}\).*/\1/
20383
t more2
20384
s/["\\]/\\&/g; s/^/"/; s/$/"/
20385
p
20386
b
20387
:more2
20388
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20389
p
20390
g
20391
s/.\{148\}//
20392
t delim
20393
' <conf$$subs.awk | sed '
20394
/^[^""]/{
20395
  N
20396
  s/\n//
20397
}
20398
' >>$CONFIG_STATUS || ac_write_fail=1
20399
rm -f conf$$subs.awk
20400
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20401
_ACAWK
20402
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20403
  for (key in S) S_is_set[key] = 1
20404
  FS = ""
20405
 
20406
}
20407
{
20408
  line = $ 0
20409
  nfields = split(line, field, "@")
20410
  substed = 0
20411
  len = length(field[1])
20412
  for (i = 2; i < nfields; i++) {
20413
    key = field[i]
20414
    keylen = length(key)
20415
    if (S_is_set[key]) {
20416
      value = S[key]
20417
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20418
      len += length(value) + length(field[++i])
20419
      substed = 1
20420
    } else
20421
      len += 1 + keylen
20422
  }
20423
 
20424
  print line
20425
}
20426
 
20427
_ACAWK
20428
_ACEOF
20429
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20430
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20431
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20432
else
20433
  cat
20434
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20435
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
20436
_ACEOF
20437
 
20438
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20439
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20440
# trailing colons and then remove the whole line if VPATH becomes empty
20441
# (actually we leave an empty line to preserve line numbers).
20442
if test "x$srcdir" = x.; then
20443
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20444
s/:*\$(srcdir):*/:/
20445
s/:*\${srcdir}:*/:/
20446
s/:*@srcdir@:*/:/
20447
s/^\([^=]*=[	 ]*\):*/\1/
20448
s/:*$//
20449
s/^[^=]*=[	 ]*$//
20450
}'
20451
fi
20452
 
20453
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20454
fi # test -n "$CONFIG_FILES"
20455
 
20456
# Set up the scripts for CONFIG_HEADERS section.
20457
# No need to generate them if there are no CONFIG_HEADERS.
20458
# This happens for instance with `./config.status Makefile'.
20459
if test -n "$CONFIG_HEADERS"; then
20460
cat >"$tmp/defines.awk" <<\_ACAWK ||
20461
BEGIN {
20462
_ACEOF
20463
 
20464
# Transform confdefs.h into an awk script `defines.awk', embedded as
20465
# here-document in config.status, that substitutes the proper values into
20466
# config.h.in to produce config.h.
20467
 
20468
# Create a delimiter string that does not exist in confdefs.h, to ease
20469
# handling of long lines.
20470
ac_delim='%!_!# '
20471
for ac_last_try in false false :; do
20472
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20473
  if test -z "$ac_t"; then
20474
    break
20475
  elif $ac_last_try; then
20476
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20477
  else
20478
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20479
  fi
20480
done
20481
 
20482
# For the awk script, D is an array of macro values keyed by name,
20483
# likewise P contains macro parameters if any.  Preserve backslash
20484
# newline sequences.
20485
 
20486
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20487
sed -n '
20488
s/.\{148\}/&'"$ac_delim"'/g
20489
t rset
20490
:rset
20491
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20492
t def
20493
d
20494
:def
20495
s/\\$//
20496
t bsnl
20497
s/["\\]/\\&/g
20498
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20499
D["\1"]=" \3"/p
20500
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20501
d
20502
:bsnl
20503
s/["\\]/\\&/g
20504
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20505
D["\1"]=" \3\\\\\\n"\\/p
20506
t cont
20507
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20508
t cont
20509
d
20510
:cont
20511
n
20512
s/.\{148\}/&'"$ac_delim"'/g
20513
t clear
20514
:clear
20515
s/\\$//
20516
t bsnlc
20517
s/["\\]/\\&/g; s/^/"/; s/$/"/p
20518
d
20519
:bsnlc
20520
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20521
b cont
20522
' <confdefs.h | sed '
20523
s/'"$ac_delim"'/"\\\
20524
"/g' >>$CONFIG_STATUS || ac_write_fail=1
20525
 
20526
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20527
  for (key in D) D_is_set[key] = 1
20528
  FS = ""
20529
}
20530
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20531
  line = \$ 0
20532
  split(line, arg, " ")
20533
  if (arg[1] == "#") {
20534
    defundef = arg[2]
20535
    mac1 = arg[3]
20536
  } else {
20537
    defundef = substr(arg[1], 2)
20538
    mac1 = arg[2]
20539
  }
20540
  split(mac1, mac2, "(") #)
20541
  macro = mac2[1]
20542
  prefix = substr(line, 1, index(line, defundef) - 1)
20543
  if (D_is_set[macro]) {
20544
    # Preserve the white space surrounding the "#".
20545
    print prefix "define", macro P[macro] D[macro]
20546
    next
20547
  } else {
20548
    # Replace #undef with comments.  This is necessary, for example,
20549
    # in the case of _POSIX_SOURCE, which is predefined and required
20550
    # on some systems where configure will not decide to define it.
20551
    if (defundef == "undef") {
20552
      print "/*", prefix defundef, macro, "*/"
20553
      next
20554
    }
20555
  }
20556
}
20557
{ print }
20558
_ACAWK
20559
_ACEOF
20560
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20561
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
20562
fi # test -n "$CONFIG_HEADERS"
20563
 
20564
 
20565
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20566
shift
20567
for ac_tag
20568
do
20569
  case $ac_tag in
20570
  :[FHLC]) ac_mode=$ac_tag; continue;;
20571
  esac
20572
  case $ac_mode$ac_tag in
20573
  :[FHL]*:*);;
20574
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20575
  :[FH]-) ac_tag=-:-;;
20576
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20577
  esac
20578
  ac_save_IFS=$IFS
20579
  IFS=:
20580
  set x $ac_tag
20581
  IFS=$ac_save_IFS
20582
  shift
20583
  ac_file=$1
20584
  shift
20585
 
20586
  case $ac_mode in
20587
  :L) ac_source=$1;;
20588
  :[FH])
20589
    ac_file_inputs=
20590
    for ac_f
20591
    do
20592
      case $ac_f in
20593
      -) ac_f="$tmp/stdin";;
20594
      *) # Look for the file first in the build tree, then in the source tree
20595
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20596
	 # because $ac_f cannot contain `:'.
20597
	 test -f "$ac_f" ||
20598
	   case $ac_f in
20599
	   [\\/$]*) false;;
20600
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20601
	   esac ||
20602
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20603
      esac
20604
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20605
      as_fn_append ac_file_inputs " '$ac_f'"
20606
    done
20607
 
20608
    # Let's still pretend it is `configure' which instantiates (i.e., don't
20609
    # use $as_me), people would be surprised to read:
20610
    #    /* config.h.  Generated by config.status.  */
20611
    configure_input='Generated from '`
20612
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20613
	`' by configure.'
20614
    if test x"$ac_file" != x-; then
20615
      configure_input="$ac_file.  $configure_input"
20616
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20617
$as_echo "$as_me: creating $ac_file" >&6;}
20618
    fi
20619
    # Neutralize special characters interpreted by sed in replacement strings.
20620
    case $configure_input in #(
20621
    *\&* | *\|* | *\\* )
20622
       ac_sed_conf_input=`$as_echo "$configure_input" |
20623
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20624
    *) ac_sed_conf_input=$configure_input;;
20625
    esac
20626
 
20627
    case $ac_tag in
20628
    *:-:* | *:-) cat >"$tmp/stdin" \
20629
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20630
    esac
20631
    ;;
20632
  esac
20633
 
20634
  ac_dir=`$as_dirname -- "$ac_file" ||
20635
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20636
	 X"$ac_file" : 'X\(//\)[^/]' \| \
20637
	 X"$ac_file" : 'X\(//\)$' \| \
20638
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20639
$as_echo X"$ac_file" |
20640
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20641
	    s//\1/
20642
	    q
20643
	  }
20644
	  /^X\(\/\/\)[^/].*/{
20645
	    s//\1/
20646
	    q
20647
	  }
20648
	  /^X\(\/\/\)$/{
20649
	    s//\1/
20650
	    q
20651
	  }
20652
	  /^X\(\/\).*/{
20653
	    s//\1/
20654
	    q
20655
	  }
20656
	  s/.*/./; q'`
20657
  as_dir="$ac_dir"; as_fn_mkdir_p
20658
  ac_builddir=.
20659
 
20660
case "$ac_dir" in
20661
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20662
*)
20663
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20664
  # A ".." for each directory in $ac_dir_suffix.
20665
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20666
  case $ac_top_builddir_sub in
20667
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20668
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20669
  esac ;;
20670
esac
20671
ac_abs_top_builddir=$ac_pwd
20672
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20673
# for backward compatibility:
20674
ac_top_builddir=$ac_top_build_prefix
20675
 
20676
case $srcdir in
20677
  .)  # We are building in place.
20678
    ac_srcdir=.
20679
    ac_top_srcdir=$ac_top_builddir_sub
20680
    ac_abs_top_srcdir=$ac_pwd ;;
20681
  [\\/]* | ?:[\\/]* )  # Absolute name.
20682
    ac_srcdir=$srcdir$ac_dir_suffix;
20683
    ac_top_srcdir=$srcdir
20684
    ac_abs_top_srcdir=$srcdir ;;
20685
  *) # Relative name.
20686
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20687
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20688
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20689
esac
20690
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20691
 
20692
 
20693
  case $ac_mode in
20694
  :F)
20695
  #
20696
  # CONFIG_FILE
20697
  #
20698
 
20699
  case $INSTALL in
20700
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20701
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20702
  esac
20703
  ac_MKDIR_P=$MKDIR_P
20704
  case $MKDIR_P in
20705
  [\\/$]* | ?:[\\/]* ) ;;
20706
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20707
  esac
20708
_ACEOF
20709
 
20710
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20711
# If the template does not know about datarootdir, expand it.
20712
# FIXME: This hack should be removed a few years after 2.60.
20713
ac_datarootdir_hack=; ac_datarootdir_seen=
20714
ac_sed_dataroot='
20715
/datarootdir/ {
20716
  p
20717
  q
20718
}
20719
/@datadir@/p
20720
/@docdir@/p
20721
/@infodir@/p
20722
/@localedir@/p
20723
/@mandir@/p'
20724
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20725
*datarootdir*) ac_datarootdir_seen=yes;;
20726
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20727
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20728
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20729
_ACEOF
20730
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20731
  ac_datarootdir_hack='
20732
  s&@datadir@&$datadir&g
20733
  s&@docdir@&$docdir&g
20734
  s&@infodir@&$infodir&g
20735
  s&@localedir@&$localedir&g
20736
  s&@mandir@&$mandir&g
20737
  s&\\\${datarootdir}&$datarootdir&g' ;;
20738
esac
20739
_ACEOF
20740
 
20741
# Neutralize VPATH when `$srcdir' = `.'.
20742
# Shell code in configure.ac might set extrasub.
20743
# FIXME: do we really want to maintain this feature?
20744
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20745
ac_sed_extra="$ac_vpsub
20746
$extrasub
20747
_ACEOF
20748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20749
:t
20750
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20751
s|@configure_input@|$ac_sed_conf_input|;t t
20752
s&@top_builddir@&$ac_top_builddir_sub&;t t
20753
s&@top_build_prefix@&$ac_top_build_prefix&;t t
20754
s&@srcdir@&$ac_srcdir&;t t
20755
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20756
s&@top_srcdir@&$ac_top_srcdir&;t t
20757
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20758
s&@builddir@&$ac_builddir&;t t
20759
s&@abs_builddir@&$ac_abs_builddir&;t t
20760
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20761
s&@INSTALL@&$ac_INSTALL&;t t
20762
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20763
$ac_datarootdir_hack
20764
"
20765
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20766
  || as_fn_error "could not create $ac_file" "$LINENO" 5
20767
 
20768
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20769
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20770
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20771
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20772
which seems to be undefined.  Please make sure it is defined." >&5
20773
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20774
which seems to be undefined.  Please make sure it is defined." >&2;}
20775
 
20776
  rm -f "$tmp/stdin"
20777
  case $ac_file in
20778
  -) cat "$tmp/out" && rm -f "$tmp/out";;
20779
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20780
  esac \
20781
  || as_fn_error "could not create $ac_file" "$LINENO" 5
20782
 ;;
20783
  :H)
20784
  #
20785
  # CONFIG_HEADER
20786
  #
20787
  if test x"$ac_file" != x-; then
20788
    {
20789
      $as_echo "/* $configure_input  */" \
20790
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20791
    } >"$tmp/config.h" \
20792
      || as_fn_error "could not create $ac_file" "$LINENO" 5
20793
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20794
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20795
$as_echo "$as_me: $ac_file is unchanged" >&6;}
20796
    else
20797
      rm -f "$ac_file"
20798
      mv "$tmp/config.h" "$ac_file" \
20799
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
20800
    fi
20801
  else
20802
    $as_echo "/* $configure_input  */" \
20803
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20804
      || as_fn_error "could not create -" "$LINENO" 5
20805
  fi
20806
# Compute "$ac_file"'s index in $config_headers.
20807
_am_arg="$ac_file"
20808
_am_stamp_count=1
20809
for _am_header in $config_headers :; do
20810
  case $_am_header in
20811
    $_am_arg | $_am_arg:* )
20812
      break ;;
20813
    * )
20814
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20815
  esac
20816
done
20817
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20818
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20819
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20820
	 X"$_am_arg" : 'X\(//\)$' \| \
20821
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20822
$as_echo X"$_am_arg" |
20823
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20824
	    s//\1/
20825
	    q
20826
	  }
20827
	  /^X\(\/\/\)[^/].*/{
20828
	    s//\1/
20829
	    q
20830
	  }
20831
	  /^X\(\/\/\)$/{
20832
	    s//\1/
20833
	    q
20834
	  }
20835
	  /^X\(\/\).*/{
20836
	    s//\1/
20837
	    q
20838
	  }
20839
	  s/.*/./; q'`/stamp-h$_am_stamp_count
20840
 ;;
20841
 
20842
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20843
$as_echo "$as_me: executing $ac_file commands" >&6;}
20844
 ;;
20845
  esac
20846
 
20847
 
20848
  case $ac_file$ac_mode in
20849
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20850
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20851
  # are listed without --file.  Let's play safe and only enable the eval
20852
  # if we detect the quoting.
20853
  case $CONFIG_FILES in
20854
  *\'*) eval set x "$CONFIG_FILES" ;;
20855
  *)   set x $CONFIG_FILES ;;
20856
  esac
20857
  shift
20858
  for mf
20859
  do
20860
    # Strip MF so we end up with the name of the file.
20861
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20862
    # Check whether this is an Automake generated Makefile or not.
20863
    # We used to match only the files named `Makefile.in', but
20864
    # some people rename them; so instead we look at the file content.
20865
    # Grep'ing the first line is not enough: some people post-process
20866
    # each Makefile.in and add a new line on top of each file to say so.
20867
    # Grep'ing the whole file is not good either: AIX grep has a line
20868
    # limit of 2048, but all sed's we know have understand at least 4000.
20869
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20870
      dirpart=`$as_dirname -- "$mf" ||
20871
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20872
	 X"$mf" : 'X\(//\)[^/]' \| \
20873
	 X"$mf" : 'X\(//\)$' \| \
20874
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20875
$as_echo X"$mf" |
20876
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20877
	    s//\1/
20878
	    q
20879
	  }
20880
	  /^X\(\/\/\)[^/].*/{
20881
	    s//\1/
20882
	    q
20883
	  }
20884
	  /^X\(\/\/\)$/{
20885
	    s//\1/
20886
	    q
20887
	  }
20888
	  /^X\(\/\).*/{
20889
	    s//\1/
20890
	    q
20891
	  }
20892
	  s/.*/./; q'`
20893
    else
20894
      continue
20895
    fi
20896
    # Extract the definition of DEPDIR, am__include, and am__quote
20897
    # from the Makefile without running `make'.
20898
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20899
    test -z "$DEPDIR" && continue
20900
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20901
    test -z "am__include" && continue
20902
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20903
    # When using ansi2knr, U may be empty or an underscore; expand it
20904
    U=`sed -n 's/^U = //p' < "$mf"`
20905
    # Find all dependency output files, they are included files with
20906
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20907
    # simplest approach to changing $(DEPDIR) to its actual value in the
20908
    # expansion.
20909
    for file in `sed -n "
20910
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20911
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20912
      # Make sure the directory exists.
20913
      test -f "$dirpart/$file" && continue
20914
      fdir=`$as_dirname -- "$file" ||
20915
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20916
	 X"$file" : 'X\(//\)[^/]' \| \
20917
	 X"$file" : 'X\(//\)$' \| \
20918
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20919
$as_echo X"$file" |
20920
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20921
	    s//\1/
20922
	    q
20923
	  }
20924
	  /^X\(\/\/\)[^/].*/{
20925
	    s//\1/
20926
	    q
20927
	  }
20928
	  /^X\(\/\/\)$/{
20929
	    s//\1/
20930
	    q
20931
	  }
20932
	  /^X\(\/\).*/{
20933
	    s//\1/
20934
	    q
20935
	  }
20936
	  s/.*/./; q'`
20937
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20938
      # echo "creating $dirpart/$file"
20939
      echo '# dummy' > "$dirpart/$file"
20940
    done
20941
  done
20942
}
20943
 ;;
20944
    "libtool":C)
20945
 
20946
    # See if we are running on zsh, and set the options which allow our
20947
    # commands through without removal of \ escapes.
20948
    if test -n "${ZSH_VERSION+set}" ; then
20949
      setopt NO_GLOB_SUBST
20950
    fi
20951
 
20952
    cfgfile="${ofile}T"
20953
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20954
    $RM "$cfgfile"
20955
 
20956
    cat <<_LT_EOF >> "$cfgfile"
20957
#! $SHELL
20958
 
20959
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20960
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20961
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20962
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20963
#
20964
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20965
#                 2006, 2007, 2008 Free Software Foundation, Inc.
20966
#   Written by Gordon Matzigkeit, 1996
20967
#
20968
#   This file is part of GNU Libtool.
20969
#
20970
# GNU Libtool is free software; you can redistribute it and/or
20971
# modify it under the terms of the GNU General Public License as
20972
# published by the Free Software Foundation; either version 2 of
20973
# the License, or (at your option) any later version.
20974
#
20975
# As a special exception to the GNU General Public License,
20976
# if you distribute this file as part of a program or library that
20977
# is built using GNU Libtool, you may include this file under the
20978
# same distribution terms that you use for the rest of that program.
20979
#
20980
# GNU Libtool is distributed in the hope that it will be useful,
20981
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20982
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20983
# GNU General Public License for more details.
20984
#
20985
# You should have received a copy of the GNU General Public License
20986
# along with GNU Libtool; see the file COPYING.  If not, a copy
20987
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20988
# obtained by writing to the Free Software Foundation, Inc.,
20989
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20990
 
20991
 
20992
# The names of the tagged configurations supported by this script.
20993
available_tags="CXX "
20994
 
20995
# ### BEGIN LIBTOOL CONFIG
20996
 
20997
# Which release of libtool.m4 was used?
20998
macro_version=$macro_version
20999
macro_revision=$macro_revision
21000
 
21001
# Whether or not to build shared libraries.
21002
build_libtool_libs=$enable_shared
21003
 
21004
# Whether or not to build static libraries.
21005
build_old_libs=$enable_static
21006
 
21007
# What type of objects to build.
21008
pic_mode=$pic_mode
21009
 
21010
# Whether or not to optimize for fast installation.
21011
fast_install=$enable_fast_install
21012
 
21013
# The host system.
21014
host_alias=$host_alias
21015
host=$host
21016
host_os=$host_os
21017
 
21018
# The build system.
21019
build_alias=$build_alias
21020
build=$build
21021
build_os=$build_os
21022
 
21023
# A sed program that does not truncate output.
21024
SED=$lt_SED
21025
 
21026
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21027
Xsed="\$SED -e 1s/^X//"
21028
 
21029
# A grep program that handles long lines.
21030
GREP=$lt_GREP
21031
 
21032
# An ERE matcher.
21033
EGREP=$lt_EGREP
21034
 
21035
# A literal string matcher.
21036
FGREP=$lt_FGREP
21037
 
21038
# A BSD- or MS-compatible name lister.
21039
NM=$lt_NM
21040
 
21041
# Whether we need soft or hard links.
21042
LN_S=$lt_LN_S
21043
 
21044
# What is the maximum length of a command?
21045
max_cmd_len=$max_cmd_len
21046
 
21047
# Object file suffix (normally "o").
21048
objext=$ac_objext
21049
 
21050
# Executable file suffix (normally "").
21051
exeext=$exeext
21052
 
21053
# whether the shell understands "unset".
21054
lt_unset=$lt_unset
21055
 
21056
# turn spaces into newlines.
21057
SP2NL=$lt_lt_SP2NL
21058
 
21059
# turn newlines into spaces.
21060
NL2SP=$lt_lt_NL2SP
21061
 
21062
# How to create reloadable object files.
21063
reload_flag=$lt_reload_flag
21064
reload_cmds=$lt_reload_cmds
21065
 
21066
# An object symbol dumper.
21067
OBJDUMP=$lt_OBJDUMP
21068
 
21069
# Method to check whether dependent libraries are shared objects.
21070
deplibs_check_method=$lt_deplibs_check_method
21071
 
21072
# Command to use when deplibs_check_method == "file_magic".
21073
file_magic_cmd=$lt_file_magic_cmd
21074
 
21075
# The archiver.
21076
AR=$lt_AR
21077
AR_FLAGS=$lt_AR_FLAGS
21078
 
21079
# A symbol stripping program.
21080
STRIP=$lt_STRIP
21081
 
21082
# Commands used to install an old-style archive.
21083
RANLIB=$lt_RANLIB
21084
old_postinstall_cmds=$lt_old_postinstall_cmds
21085
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21086
 
21087
# A C compiler.
21088
LTCC=$lt_CC
21089
 
21090
# LTCC compiler flags.
21091
LTCFLAGS=$lt_CFLAGS
21092
 
21093
# Take the output of nm and produce a listing of raw symbols and C names.
21094
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21095
 
21096
# Transform the output of nm in a proper C declaration.
21097
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21098
 
21099
# Transform the output of nm in a C name address pair.
21100
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21101
 
21102
# Transform the output of nm in a C name address pair when lib prefix is needed.
21103
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21104
 
21105
# The name of the directory that contains temporary libtool files.
21106
objdir=$objdir
21107
 
21108
# Shell to use when invoking shell scripts.
21109
SHELL=$lt_SHELL
21110
 
21111
# An echo program that does not interpret backslashes.
21112
ECHO=$lt_ECHO
21113
 
21114
# Used to examine libraries when file_magic_cmd begins with "file".
21115
MAGIC_CMD=$MAGIC_CMD
21116
 
21117
# Must we lock files when doing compilation?
21118
need_locks=$lt_need_locks
21119
 
21120
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21121
DSYMUTIL=$lt_DSYMUTIL
21122
 
21123
# Tool to change global to local symbols on Mac OS X.
21124
NMEDIT=$lt_NMEDIT
21125
 
21126
# Tool to manipulate fat objects and archives on Mac OS X.
21127
LIPO=$lt_LIPO
21128
 
21129
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21130
OTOOL=$lt_OTOOL
21131
 
21132
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21133
OTOOL64=$lt_OTOOL64
21134
 
21135
# Old archive suffix (normally "a").
21136
libext=$libext
21137
 
21138
# Shared library suffix (normally ".so").
21139
shrext_cmds=$lt_shrext_cmds
21140
 
21141
# The commands to extract the exported symbol list from a shared archive.
21142
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21143
 
21144
# Variables whose values should be saved in libtool wrapper scripts and
21145
# restored at link time.
21146
variables_saved_for_relink=$lt_variables_saved_for_relink
21147
 
21148
# Do we need the "lib" prefix for modules?
21149
need_lib_prefix=$need_lib_prefix
21150
 
21151
# Do we need a version for libraries?
21152
need_version=$need_version
21153
 
21154
# Library versioning type.
21155
version_type=$version_type
21156
 
21157
# Shared library runtime path variable.
21158
runpath_var=$runpath_var
21159
 
21160
# Shared library path variable.
21161
shlibpath_var=$shlibpath_var
21162
 
21163
# Is shlibpath searched before the hard-coded library search path?
21164
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21165
 
21166
# Format of library name prefix.
21167
libname_spec=$lt_libname_spec
21168
 
21169
# List of archive names.  First name is the real one, the rest are links.
21170
# The last name is the one that the linker finds with -lNAME
21171
library_names_spec=$lt_library_names_spec
21172
 
21173
# The coded name of the library, if different from the real name.
21174
soname_spec=$lt_soname_spec
21175
 
21176
# Command to use after installation of a shared archive.
21177
postinstall_cmds=$lt_postinstall_cmds
21178
 
21179
# Command to use after uninstallation of a shared archive.
21180
postuninstall_cmds=$lt_postuninstall_cmds
21181
 
21182
# Commands used to finish a libtool library installation in a directory.
21183
finish_cmds=$lt_finish_cmds
21184
 
21185
# As "finish_cmds", except a single script fragment to be evaled but
21186
# not shown.
21187
finish_eval=$lt_finish_eval
21188
 
21189
# Whether we should hardcode library paths into libraries.
21190
hardcode_into_libs=$hardcode_into_libs
21191
 
21192
# Compile-time system search path for libraries.
21193
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21194
 
21195
# Run-time system search path for libraries.
21196
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21197
 
21198
# Whether dlopen is supported.
21199
dlopen_support=$enable_dlopen
21200
 
21201
# Whether dlopen of programs is supported.
21202
dlopen_self=$enable_dlopen_self
21203
 
21204
# Whether dlopen of statically linked programs is supported.
21205
dlopen_self_static=$enable_dlopen_self_static
21206
 
21207
# Commands to strip libraries.
21208
old_striplib=$lt_old_striplib
21209
striplib=$lt_striplib
21210
 
21211
 
21212
# The linker used to build libraries.
21213
LD=$lt_LD
21214
 
21215
# Commands used to build an old-style archive.
21216
old_archive_cmds=$lt_old_archive_cmds
21217
 
21218
# A language specific compiler.
21219
CC=$lt_compiler
21220
 
21221
# Is the compiler the GNU compiler?
21222
with_gcc=$GCC
21223
 
21224
# Compiler flag to turn off builtin functions.
21225
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21226
 
21227
# How to pass a linker flag through the compiler.
21228
wl=$lt_lt_prog_compiler_wl
21229
 
21230
# Additional compiler flags for building library objects.
21231
pic_flag=$lt_lt_prog_compiler_pic
21232
 
21233
# Compiler flag to prevent dynamic linking.
21234
link_static_flag=$lt_lt_prog_compiler_static
21235
 
21236
# Does compiler simultaneously support -c and -o options?
21237
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21238
 
21239
# Whether or not to add -lc for building shared libraries.
21240
build_libtool_need_lc=$archive_cmds_need_lc
21241
 
21242
# Whether or not to disallow shared libs when runtime libs are static.
21243
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21244
 
21245
# Compiler flag to allow reflexive dlopens.
21246
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21247
 
21248
# Compiler flag to generate shared objects directly from archives.
21249
whole_archive_flag_spec=$lt_whole_archive_flag_spec
21250
 
21251
# Whether the compiler copes with passing no objects directly.
21252
compiler_needs_object=$lt_compiler_needs_object
21253
 
21254
# Create an old-style archive from a shared archive.
21255
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21256
 
21257
# Create a temporary old-style archive to link instead of a shared archive.
21258
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21259
 
21260
# Commands used to build a shared archive.
21261
archive_cmds=$lt_archive_cmds
21262
archive_expsym_cmds=$lt_archive_expsym_cmds
21263
 
21264
# Commands used to build a loadable module if different from building
21265
# a shared archive.
21266
module_cmds=$lt_module_cmds
21267
module_expsym_cmds=$lt_module_expsym_cmds
21268
 
21269
# Whether we are building with GNU ld or not.
21270
with_gnu_ld=$lt_with_gnu_ld
21271
 
21272
# Flag that allows shared libraries with undefined symbols to be built.
21273
allow_undefined_flag=$lt_allow_undefined_flag
21274
 
21275
# Flag that enforces no undefined symbols.
21276
no_undefined_flag=$lt_no_undefined_flag
21277
 
21278
# Flag to hardcode \$libdir into a binary during linking.
21279
# This must work even if \$libdir does not exist
21280
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21281
 
21282
# If ld is used when linking, flag to hardcode \$libdir into a binary
21283
# during linking.  This must work even if \$libdir does not exist.
21284
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21285
 
21286
# Whether we need a single "-rpath" flag with a separated argument.
21287
hardcode_libdir_separator=$lt_hardcode_libdir_separator
21288
 
21289
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21290
# DIR into the resulting binary.
21291
hardcode_direct=$hardcode_direct
21292
 
21293
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21294
# DIR into the resulting binary and the resulting library dependency is
21295
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21296
# library is relocated.
21297
hardcode_direct_absolute=$hardcode_direct_absolute
21298
 
21299
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21300
# into the resulting binary.
21301
hardcode_minus_L=$hardcode_minus_L
21302
 
21303
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21304
# into the resulting binary.
21305
hardcode_shlibpath_var=$hardcode_shlibpath_var
21306
 
21307
# Set to "yes" if building a shared library automatically hardcodes DIR
21308
# into the library and all subsequent libraries and executables linked
21309
# against it.
21310
hardcode_automatic=$hardcode_automatic
21311
 
21312
# Set to yes if linker adds runtime paths of dependent libraries
21313
# to runtime path list.
21314
inherit_rpath=$inherit_rpath
21315
 
21316
# Whether libtool must link a program against all its dependency libraries.
21317
link_all_deplibs=$link_all_deplibs
21318
 
21319
# Fix the shell variable \$srcfile for the compiler.
21320
fix_srcfile_path=$lt_fix_srcfile_path
21321
 
21322
# Set to "yes" if exported symbols are required.
21323
always_export_symbols=$always_export_symbols
21324
 
21325
# The commands to list exported symbols.
21326
export_symbols_cmds=$lt_export_symbols_cmds
21327
 
21328
# Symbols that should not be listed in the preloaded symbols.
21329
exclude_expsyms=$lt_exclude_expsyms
21330
 
21331
# Symbols that must always be exported.
21332
include_expsyms=$lt_include_expsyms
21333
 
21334
# Commands necessary for linking programs (against libraries) with templates.
21335
prelink_cmds=$lt_prelink_cmds
21336
 
21337
# Specify filename containing input files.
21338
file_list_spec=$lt_file_list_spec
21339
 
21340
# How to hardcode a shared library path into an executable.
21341
hardcode_action=$hardcode_action
21342
 
21343
# The directories searched by this compiler when creating a shared library.
21344
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21345
 
21346
# Dependencies to place before and after the objects being linked to
21347
# create a shared library.
21348
predep_objects=$lt_predep_objects
21349
postdep_objects=$lt_postdep_objects
21350
predeps=$lt_predeps
21351
postdeps=$lt_postdeps
21352
 
21353
# The library search path used internally by the compiler when linking
21354
# a shared library.
21355
compiler_lib_search_path=$lt_compiler_lib_search_path
21356
 
21357
# ### END LIBTOOL CONFIG
21358
 
21359
_LT_EOF
21360
 
21361
  case $host_os in
21362
  aix3*)
21363
    cat <<\_LT_EOF >> "$cfgfile"
21364
# AIX sometimes has problems with the GCC collect2 program.  For some
21365
# reason, if we set the COLLECT_NAMES environment variable, the problems
21366
# vanish in a puff of smoke.
21367
if test "X${COLLECT_NAMES+set}" != Xset; then
21368
  COLLECT_NAMES=
21369
  export COLLECT_NAMES
21370
fi
21371
_LT_EOF
21372
    ;;
21373
  esac
21374
 
21375
 
21376
ltmain="$ac_aux_dir/ltmain.sh"
21377
 
21378
 
21379
  # We use sed instead of cat because bash on DJGPP gets confused if
21380
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21381
  # text mode, it properly converts lines to CR/LF.  This bash problem
21382
  # is reportedly fixed, but why not run on old versions too?
21383
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21384
    || (rm -f "$cfgfile"; exit 1)
21385
 
21386
  case $xsi_shell in
21387
  yes)
21388
    cat << \_LT_EOF >> "$cfgfile"
21389
 
21390
# func_dirname file append nondir_replacement
21391
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21392
# otherwise set result to NONDIR_REPLACEMENT.
21393
func_dirname ()
21394
{
21395
  case ${1} in
21396
    */*) func_dirname_result="${1%/*}${2}" ;;
21397
    *  ) func_dirname_result="${3}" ;;
21398
  esac
21399
}
21400
 
21401
# func_basename file
21402
func_basename ()
21403
{
21404
  func_basename_result="${1##*/}"
21405
}
21406
 
21407
# func_dirname_and_basename file append nondir_replacement
21408
# perform func_basename and func_dirname in a single function
21409
# call:
21410
#   dirname:  Compute the dirname of FILE.  If nonempty,
21411
#             add APPEND to the result, otherwise set result
21412
#             to NONDIR_REPLACEMENT.
21413
#             value returned in "$func_dirname_result"
21414
#   basename: Compute filename of FILE.
21415
#             value retuned in "$func_basename_result"
21416
# Implementation must be kept synchronized with func_dirname
21417
# and func_basename. For efficiency, we do not delegate to
21418
# those functions but instead duplicate the functionality here.
21419
func_dirname_and_basename ()
21420
{
21421
  case ${1} in
21422
    */*) func_dirname_result="${1%/*}${2}" ;;
21423
    *  ) func_dirname_result="${3}" ;;
21424
  esac
21425
  func_basename_result="${1##*/}"
21426
}
21427
 
21428
# func_stripname prefix suffix name
21429
# strip PREFIX and SUFFIX off of NAME.
21430
# PREFIX and SUFFIX must not contain globbing or regex special
21431
# characters, hashes, percent signs, but SUFFIX may contain a leading
21432
# dot (in which case that matches only a dot).
21433
func_stripname ()
21434
{
21435
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21436
  # positional parameters, so assign one to ordinary parameter first.
21437
  func_stripname_result=${3}
21438
  func_stripname_result=${func_stripname_result#"${1}"}
21439
  func_stripname_result=${func_stripname_result%"${2}"}
21440
}
21441
 
21442
# func_opt_split
21443
func_opt_split ()
21444
{
21445
  func_opt_split_opt=${1%%=*}
21446
  func_opt_split_arg=${1#*=}
21447
}
21448
 
21449
# func_lo2o object
21450
func_lo2o ()
21451
{
21452
  case ${1} in
21453
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21454
    *)    func_lo2o_result=${1} ;;
21455
  esac
21456
}
21457
 
21458
# func_xform libobj-or-source
21459
func_xform ()
21460
{
21461
  func_xform_result=${1%.*}.lo
21462
}
21463
 
21464
# func_arith arithmetic-term...
21465
func_arith ()
21466
{
21467
  func_arith_result=$(( $* ))
21468
}
21469
 
21470
# func_len string
21471
# STRING may not start with a hyphen.
21472
func_len ()
21473
{
21474
  func_len_result=${#1}
21475
}
21476
 
21477
_LT_EOF
21478
    ;;
21479
  *) # Bourne compatible functions.
21480
    cat << \_LT_EOF >> "$cfgfile"
21481
 
21482
# func_dirname file append nondir_replacement
21483
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21484
# otherwise set result to NONDIR_REPLACEMENT.
21485
func_dirname ()
21486
{
21487
  # Extract subdirectory from the argument.
21488
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21489
  if test "X$func_dirname_result" = "X${1}"; then
21490
    func_dirname_result="${3}"
21491
  else
21492
    func_dirname_result="$func_dirname_result${2}"
21493
  fi
21494
}
21495
 
21496
# func_basename file
21497
func_basename ()
21498
{
21499
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21500
}
21501
 
21502
 
21503
# func_stripname prefix suffix name
21504
# strip PREFIX and SUFFIX off of NAME.
21505
# PREFIX and SUFFIX must not contain globbing or regex special
21506
# characters, hashes, percent signs, but SUFFIX may contain a leading
21507
# dot (in which case that matches only a dot).
21508
# func_strip_suffix prefix name
21509
func_stripname ()
21510
{
21511
  case ${2} in
21512
    .*) func_stripname_result=`$ECHO "X${3}" \
21513
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21514
    *)  func_stripname_result=`$ECHO "X${3}" \
21515
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21516
  esac
21517
}
21518
 
21519
# sed scripts:
21520
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21521
my_sed_long_arg='1s/^-[^=]*=//'
21522
 
21523
# func_opt_split
21524
func_opt_split ()
21525
{
21526
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21527
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21528
}
21529
 
21530
# func_lo2o object
21531
func_lo2o ()
21532
{
21533
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21534
}
21535
 
21536
# func_xform libobj-or-source
21537
func_xform ()
21538
{
21539
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21540
}
21541
 
21542
# func_arith arithmetic-term...
21543
func_arith ()
21544
{
21545
  func_arith_result=`expr "$@"`
21546
}
21547
 
21548
# func_len string
21549
# STRING may not start with a hyphen.
21550
func_len ()
21551
{
21552
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21553
}
21554
 
21555
_LT_EOF
21556
esac
21557
 
21558
case $lt_shell_append in
21559
  yes)
21560
    cat << \_LT_EOF >> "$cfgfile"
21561
 
21562
# func_append var value
21563
# Append VALUE to the end of shell variable VAR.
21564
func_append ()
21565
{
21566
  eval "$1+=\$2"
21567
}
21568
_LT_EOF
21569
    ;;
21570
  *)
21571
    cat << \_LT_EOF >> "$cfgfile"
21572
 
21573
# func_append var value
21574
# Append VALUE to the end of shell variable VAR.
21575
func_append ()
21576
{
21577
  eval "$1=\$$1\$2"
21578
}
21579
 
21580
_LT_EOF
21581
    ;;
21582
  esac
21583
 
21584
 
21585
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21586
    || (rm -f "$cfgfile"; exit 1)
21587
 
21588
  mv -f "$cfgfile" "$ofile" ||
21589
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21590
  chmod +x "$ofile"
21591
 
21592
 
21593
    cat <<_LT_EOF >> "$ofile"
21594
 
21595
# ### BEGIN LIBTOOL TAG CONFIG: CXX
21596
 
21597
# The linker used to build libraries.
21598
LD=$lt_LD_CXX
21599
 
21600
# Commands used to build an old-style archive.
21601
old_archive_cmds=$lt_old_archive_cmds_CXX
21602
 
21603
# A language specific compiler.
21604
CC=$lt_compiler_CXX
21605
 
21606
# Is the compiler the GNU compiler?
21607
with_gcc=$GCC_CXX
21608
 
21609
# Compiler flag to turn off builtin functions.
21610
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21611
 
21612
# How to pass a linker flag through the compiler.
21613
wl=$lt_lt_prog_compiler_wl_CXX
21614
 
21615
# Additional compiler flags for building library objects.
21616
pic_flag=$lt_lt_prog_compiler_pic_CXX
21617
 
21618
# Compiler flag to prevent dynamic linking.
21619
link_static_flag=$lt_lt_prog_compiler_static_CXX
21620
 
21621
# Does compiler simultaneously support -c and -o options?
21622
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21623
 
21624
# Whether or not to add -lc for building shared libraries.
21625
build_libtool_need_lc=$archive_cmds_need_lc_CXX
21626
 
21627
# Whether or not to disallow shared libs when runtime libs are static.
21628
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21629
 
21630
# Compiler flag to allow reflexive dlopens.
21631
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21632
 
21633
# Compiler flag to generate shared objects directly from archives.
21634
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21635
 
21636
# Whether the compiler copes with passing no objects directly.
21637
compiler_needs_object=$lt_compiler_needs_object_CXX
21638
 
21639
# Create an old-style archive from a shared archive.
21640
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21641
 
21642
# Create a temporary old-style archive to link instead of a shared archive.
21643
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21644
 
21645
# Commands used to build a shared archive.
21646
archive_cmds=$lt_archive_cmds_CXX
21647
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21648
 
21649
# Commands used to build a loadable module if different from building
21650
# a shared archive.
21651
module_cmds=$lt_module_cmds_CXX
21652
module_expsym_cmds=$lt_module_expsym_cmds_CXX
21653
 
21654
# Whether we are building with GNU ld or not.
21655
with_gnu_ld=$lt_with_gnu_ld_CXX
21656
 
21657
# Flag that allows shared libraries with undefined symbols to be built.
21658
allow_undefined_flag=$lt_allow_undefined_flag_CXX
21659
 
21660
# Flag that enforces no undefined symbols.
21661
no_undefined_flag=$lt_no_undefined_flag_CXX
21662
 
21663
# Flag to hardcode \$libdir into a binary during linking.
21664
# This must work even if \$libdir does not exist
21665
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21666
 
21667
# If ld is used when linking, flag to hardcode \$libdir into a binary
21668
# during linking.  This must work even if \$libdir does not exist.
21669
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21670
 
21671
# Whether we need a single "-rpath" flag with a separated argument.
21672
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21673
 
21674
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21675
# DIR into the resulting binary.
21676
hardcode_direct=$hardcode_direct_CXX
21677
 
21678
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21679
# DIR into the resulting binary and the resulting library dependency is
21680
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21681
# library is relocated.
21682
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21683
 
21684
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21685
# into the resulting binary.
21686
hardcode_minus_L=$hardcode_minus_L_CXX
21687
 
21688
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21689
# into the resulting binary.
21690
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21691
 
21692
# Set to "yes" if building a shared library automatically hardcodes DIR
21693
# into the library and all subsequent libraries and executables linked
21694
# against it.
21695
hardcode_automatic=$hardcode_automatic_CXX
21696
 
21697
# Set to yes if linker adds runtime paths of dependent libraries
21698
# to runtime path list.
21699
inherit_rpath=$inherit_rpath_CXX
21700
 
21701
# Whether libtool must link a program against all its dependency libraries.
21702
link_all_deplibs=$link_all_deplibs_CXX
21703
 
21704
# Fix the shell variable \$srcfile for the compiler.
21705
fix_srcfile_path=$lt_fix_srcfile_path_CXX
21706
 
21707
# Set to "yes" if exported symbols are required.
21708
always_export_symbols=$always_export_symbols_CXX
21709
 
21710
# The commands to list exported symbols.
21711
export_symbols_cmds=$lt_export_symbols_cmds_CXX
21712
 
21713
# Symbols that should not be listed in the preloaded symbols.
21714
exclude_expsyms=$lt_exclude_expsyms_CXX
21715
 
21716
# Symbols that must always be exported.
21717
include_expsyms=$lt_include_expsyms_CXX
21718
 
21719
# Commands necessary for linking programs (against libraries) with templates.
21720
prelink_cmds=$lt_prelink_cmds_CXX
21721
 
21722
# Specify filename containing input files.
21723
file_list_spec=$lt_file_list_spec_CXX
21724
 
21725
# How to hardcode a shared library path into an executable.
21726
hardcode_action=$hardcode_action_CXX
21727
 
21728
# The directories searched by this compiler when creating a shared library.
21729
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21730
 
21731
# Dependencies to place before and after the objects being linked to
21732
# create a shared library.
21733
predep_objects=$lt_predep_objects_CXX
21734
postdep_objects=$lt_postdep_objects_CXX
21735
predeps=$lt_predeps_CXX
21736
postdeps=$lt_postdeps_CXX
21737
 
21738
# The library search path used internally by the compiler when linking
21739
# a shared library.
21740
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21741
 
21742
# ### END LIBTOOL TAG CONFIG: CXX
21743
_LT_EOF
21744
 
21745
 ;;
21746
 
21747
  esac
21748
done # for ac_tag
21749
 
21750
 
21751
as_fn_exit 0
21752
_ACEOF
21753
ac_clean_files=$ac_clean_files_save
21754
 
21755
test $ac_write_fail = 0 ||
21756
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21757
 
21758
 
21759
# configure is writing to config.log, and then calls config.status.
21760
# config.status does its own redirection, appending to config.log.
21761
# Unfortunately, on DOS this fails, as config.log is still kept open
21762
# by configure, so config.status won't be able to write to it; its
21763
# output is simply discarded.  So we exec the FD to /dev/null,
21764
# effectively closing config.log, so it can be properly (re)opened and
21765
# appended to by config.status.  When coming back to configure, we
21766
# need to make the FD available again.
21767
if test "$no_create" != yes; then
21768
  ac_cs_success=:
21769
  ac_config_status_args=
21770
  test "$silent" = yes &&
21771
    ac_config_status_args="$ac_config_status_args --quiet"
21772
  exec 5>/dev/null
21773
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21774
  exec 5>>config.log
21775
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21776
  # would make configure fail if this is the last instruction.
21777
  $ac_cs_success || as_fn_exit $?
21778
fi
21779
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21780
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21781
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21782
fi
21783